specrails-desktop 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/specrails/batch-implement.md +287 -0
- package/.claude/commands/specrails/compat-check.md +271 -0
- package/.claude/commands/specrails/doctor.md +62 -0
- package/.claude/commands/specrails/enrich.md +1635 -0
- package/.claude/commands/specrails/explore-spec.md +173 -0
- package/.claude/commands/specrails/health-check.md +527 -0
- package/.claude/commands/specrails/implement.md +1457 -0
- package/.claude/commands/specrails/memory-inspect.md +259 -0
- package/.claude/commands/specrails/opsx-diff.md +419 -0
- package/.claude/commands/specrails/propose-spec.md +102 -0
- package/.claude/commands/specrails/reconfig.md +89 -0
- package/.claude/commands/specrails/refactor-recommender.md +212 -0
- package/.claude/commands/specrails/retry.md +363 -0
- package/.claude/commands/specrails/telemetry.md +552 -0
- package/.claude/commands/specrails/why.md +96 -0
- package/LICENSE +21 -0
- package/README.md +290 -0
- package/cli/dist/specrails-desktop.js +1098 -0
- package/client/dist/assets/ActivityFeedPage-Gy4x8dBt.js +1 -0
- package/client/dist/assets/AgentsPage-CPgu--Fb.js +86 -0
- package/client/dist/assets/AnalyticsPage-B5sJEee2.js +1 -0
- package/client/dist/assets/BarChart-7IMQ8HY1.js +33 -0
- package/client/dist/assets/CodePage-CBdFvbwe.js +2 -0
- package/client/dist/assets/DesktopAnalyticsPage-w0rdTq4w.js +1 -0
- package/client/dist/assets/DocsDialog-BZUYM7wm.js +11 -0
- package/client/dist/assets/DocsPage-9QglWl46.js +11 -0
- package/client/dist/assets/ExportDropdown-BLZFXtNi.js +1 -0
- package/client/dist/assets/IntegrationsPage-BxBE4y99.js +3 -0
- package/client/dist/assets/JobDetailPage-DydWx_5S.js +16 -0
- package/client/dist/assets/JobsPage-20ibw0IO.js +1 -0
- package/client/dist/assets/abap-Bw6f2wDG.js +1 -0
- package/client/dist/assets/activity-BEIp_Y1A.js +1 -0
- package/client/dist/assets/activity-BdrPln96.js +1 -0
- package/client/dist/assets/activity-CpkRS8Sx.js +1 -0
- package/client/dist/assets/activity-DKCpESPt.js +1 -0
- package/client/dist/assets/activity-DOUVEjJi.js +1 -0
- package/client/dist/assets/activity-DRwkql_y.js +1 -0
- package/client/dist/assets/activity-DcDQ7tjw.js +1 -0
- package/client/dist/assets/activity-Dv6H7wEr.js +1 -0
- package/client/dist/assets/addon-image-3WCl5Vhd.js +1 -0
- package/client/dist/assets/addon-ligatures-C5OdliKs.js +2 -0
- package/client/dist/assets/addon-webgl-BbX6pSjl.js +44 -0
- package/client/dist/assets/addspec-B5yl4Loj.js +1 -0
- package/client/dist/assets/addspec-BEeF5-zc.js +1 -0
- package/client/dist/assets/addspec-D33ocMxf.js +1 -0
- package/client/dist/assets/addspec-DFswZ0jK.js +1 -0
- package/client/dist/assets/addspec-DRE-jZv7.js +1 -0
- package/client/dist/assets/addspec-DVZ15Jp8.js +1 -0
- package/client/dist/assets/addspec-Fkv91Opc.js +1 -0
- package/client/dist/assets/addspec-GWm4ffKl.js +1 -0
- package/client/dist/assets/agents-1nCDWRmP.js +1 -0
- package/client/dist/assets/agents-Bm9rPqnt.js +1 -0
- package/client/dist/assets/agents-CMxtJMLD.js +1 -0
- package/client/dist/assets/agents-DK-Dlc0i.js +1 -0
- package/client/dist/assets/agents-Q6Ldfpxx.js +1 -0
- package/client/dist/assets/agents-TeOSy-ax.js +1 -0
- package/client/dist/assets/agents-iTqjRajS.js +1 -0
- package/client/dist/assets/agents-s87sMGzL.js +1 -0
- package/client/dist/assets/agentstudio-B6Wb59E7.js +1 -0
- package/client/dist/assets/agentstudio-BADhZ41e.js +1 -0
- package/client/dist/assets/agentstudio-BSnWLR63.js +1 -0
- package/client/dist/assets/agentstudio-BdidyBzZ.js +1 -0
- package/client/dist/assets/agentstudio-CxlUllqI.js +1 -0
- package/client/dist/assets/agentstudio-D3I62TLJ.js +1 -0
- package/client/dist/assets/agentstudio-DuH9TogZ.js +1 -0
- package/client/dist/assets/agentstudio-Kw88_dUF.js +1 -0
- package/client/dist/assets/aiedit-BWxHGsYA.js +1 -0
- package/client/dist/assets/aiedit-D2ji6Qy0.js +1 -0
- package/client/dist/assets/aiedit-DAhZTvtk.js +1 -0
- package/client/dist/assets/aiedit-DJMny-D5.js +1 -0
- package/client/dist/assets/aiedit-DOcxERkU.js +1 -0
- package/client/dist/assets/aiedit-DvrcbwGv.js +1 -0
- package/client/dist/assets/aiedit-TTwzL1TS.js +1 -0
- package/client/dist/assets/aiedit-WBSjT_C1.js +1 -0
- package/client/dist/assets/analytics-BIdr0YfL.js +1 -0
- package/client/dist/assets/analytics-C6EzgtdE.js +1 -0
- package/client/dist/assets/analytics-C9Zc-rkM.js +1 -0
- package/client/dist/assets/analytics-CVx3YOc0.js +1 -0
- package/client/dist/assets/analytics-CYj0tfj7.js +1 -0
- package/client/dist/assets/analytics-CnY4kNG3.js +1 -0
- package/client/dist/assets/analytics-CrPCZRJ-.js +1 -0
- package/client/dist/assets/analytics-DMCto-TF.js +1 -0
- package/client/dist/assets/apex-Cw8_REBo.js +1 -0
- package/client/dist/assets/atom-one-dark-B-oHczHB.css +1 -0
- package/client/dist/assets/attachments-BIsSSnHJ.js +1 -0
- package/client/dist/assets/attachments-BW4L3l2L.js +1 -0
- package/client/dist/assets/attachments-Bcf6BG6V.js +1 -0
- package/client/dist/assets/attachments-Bke8sCU4.js +1 -0
- package/client/dist/assets/attachments-COcrGRFz.js +1 -0
- package/client/dist/assets/attachments-DYHGA2Dj.js +1 -0
- package/client/dist/assets/attachments-Dd92KpUH.js +1 -0
- package/client/dist/assets/attachments-DzdU6DV6.js +1 -0
- package/client/dist/assets/azcli-Cz6HAoOw.js +1 -0
- package/client/dist/assets/bat-CcJ-xyqL.js +1 -0
- package/client/dist/assets/bicep-z1WDCKYz.js +2 -0
- package/client/dist/assets/browser-5ErDlJoR.js +1 -0
- package/client/dist/assets/browser-Bc-YdlVg.js +1 -0
- package/client/dist/assets/browser-BlYF4OOq.js +1 -0
- package/client/dist/assets/browser-CT-ReZGt.js +1 -0
- package/client/dist/assets/browser-DGITz3fC.js +1 -0
- package/client/dist/assets/browser-JsAIGCEW.js +1 -0
- package/client/dist/assets/browser-M5-rbPlw.js +1 -0
- package/client/dist/assets/browser-Qya9cARy.js +1 -0
- package/client/dist/assets/cameligo-BRewOpfa.js +1 -0
- package/client/dist/assets/chat-BEGuC03z.js +1 -0
- package/client/dist/assets/chat-BEW60P_u.js +1 -0
- package/client/dist/assets/chat-BQNMD0PL.js +1 -0
- package/client/dist/assets/chat-BsbNGPW9.js +1 -0
- package/client/dist/assets/chat-CboQguCi.js +1 -0
- package/client/dist/assets/chat-DRCa9pOt.js +1 -0
- package/client/dist/assets/chat-DwUm6W9z.js +1 -0
- package/client/dist/assets/chat-yoXwguQu.js +1 -0
- package/client/dist/assets/chunk-CilyBKbf.js +1 -0
- package/client/dist/assets/clojure-DBjRWN6g.js +1 -0
- package/client/dist/assets/clsx-DnqN-uhr.js +1 -0
- package/client/dist/assets/code-AL1rVIMb.js +1 -0
- package/client/dist/assets/code-C0BKpkht.js +1 -0
- package/client/dist/assets/code-C0FTS3ew.js +1 -0
- package/client/dist/assets/code-CPcHxzxw.js +1 -0
- package/client/dist/assets/code-D3ryDniw.js +1 -0
- package/client/dist/assets/code-D3zVVQTj.js +1 -0
- package/client/dist/assets/code-PCmfS3dn.js +1 -0
- package/client/dist/assets/code-exI0G5Wd.js +1 -0
- package/client/dist/assets/codicon-ngg6Pgfi.ttf +0 -0
- package/client/dist/assets/coffee-Cfk_XHGR.js +1 -0
- package/client/dist/assets/commands-B772IyDa.js +1 -0
- package/client/dist/assets/commands-BDDp6xFG.js +1 -0
- package/client/dist/assets/commands-CJxCry-o.js +1 -0
- package/client/dist/assets/commands-CfgY-_of.js +1 -0
- package/client/dist/assets/commands-DLrvnPNg.js +1 -0
- package/client/dist/assets/commands-IXMOKBYt.js +1 -0
- package/client/dist/assets/commands-UD1NzmwX.js +1 -0
- package/client/dist/assets/commands-sqrqsxyE.js +1 -0
- package/client/dist/assets/common-DCr6VzJ7.js +1 -0
- package/client/dist/assets/common-Dard9UNH.js +1 -0
- package/client/dist/assets/common-DeDELLZJ.js +1 -0
- package/client/dist/assets/common-DltqHaAe.js +1 -0
- package/client/dist/assets/common-Dmm1GhdD.js +1 -0
- package/client/dist/assets/common-DnjcgkPH.js +1 -0
- package/client/dist/assets/common-GbpxfPG8.js +1 -0
- package/client/dist/assets/common-wA36jmj1.js +1 -0
- package/client/dist/assets/cpp-BVob6BaP.js +1 -0
- package/client/dist/assets/csharp-C4fbRuOu.js +1 -0
- package/client/dist/assets/csp-DthFP_vT.js +1 -0
- package/client/dist/assets/css-CGMH0hcW.js +3 -0
- package/client/dist/assets/css.worker-Wv5dxAWO.js +89 -0
- package/client/dist/assets/cssMode-Cc6ozl-J.js +1 -0
- package/client/dist/assets/cypher-Pnf68BRV.js +1 -0
- package/client/dist/assets/dart-PMMOtxZX.js +1 -0
- package/client/dist/assets/dashboard-B4ixDVk8.js +1 -0
- package/client/dist/assets/dashboard-BZBADHSj.js +1 -0
- package/client/dist/assets/dashboard-C1MfeUHs.js +1 -0
- package/client/dist/assets/dashboard-C7SK6xu5.js +1 -0
- package/client/dist/assets/dashboard-CB6Le1yN.js +1 -0
- package/client/dist/assets/dashboard-CoTpMOBM.js +1 -0
- package/client/dist/assets/dashboard-Duo4DDCW.js +1 -0
- package/client/dist/assets/dashboard-I19DXBxw.js +1 -0
- package/client/dist/assets/dist-js-BY-Fv_fg.js +1 -0
- package/client/dist/assets/dist-js-Bakc4uxT.js +1 -0
- package/client/dist/assets/dockerfile-di1nsJCc.js +1 -0
- package/client/dist/assets/ecl-D_WVcB5M.js +1 -0
- package/client/dist/assets/editor-Br_kD0ds.css +1 -0
- package/client/dist/assets/editor.api2-XLGzZfbc.js +872 -0
- package/client/dist/assets/editor.main-CfXxHimg.js +6 -0
- package/client/dist/assets/editor.worker-Bd9IXS8d.js +26 -0
- package/client/dist/assets/elixir-OAdJEMOn.js +1 -0
- package/client/dist/assets/explore-4mFpnrKU.js +1 -0
- package/client/dist/assets/explore-A8Ltoblq.js +1 -0
- package/client/dist/assets/explore-B9A3iN2W.js +1 -0
- package/client/dist/assets/explore-BV5Xxlsn.js +1 -0
- package/client/dist/assets/explore-BrBJvfjP.js +1 -0
- package/client/dist/assets/explore-C3FSE42C.js +1 -0
- package/client/dist/assets/explore-D2EFgt8J.js +1 -0
- package/client/dist/assets/explore-hFc3HFcp.js +1 -0
- package/client/dist/assets/flow9-D3QEZjgn.js +1 -0
- package/client/dist/assets/format-command-CwGuwzGA.js +1 -0
- package/client/dist/assets/freemarker2-DP7J1gG3.js +3 -0
- package/client/dist/assets/fsharp-BF0k_8N8.js +1 -0
- package/client/dist/assets/go-BAQO5Jsz.js +1 -0
- package/client/dist/assets/graphql-hdFVFkiV.js +1 -0
- package/client/dist/assets/handlebars-BjRlucw6.js +1 -0
- package/client/dist/assets/hcl-DWnl1o-X.js +1 -0
- package/client/dist/assets/html-OumBQJ-U.js +1 -0
- package/client/dist/assets/html.worker-CQP8QQsS.js +502 -0
- package/client/dist/assets/htmlMode-CStc3zXM.js +1 -0
- package/client/dist/assets/index-CimDRRi7.css +2 -0
- package/client/dist/assets/index-XGZaKl_u.js +142 -0
- package/client/dist/assets/ini-CB-6OVu3.js +1 -0
- package/client/dist/assets/integrations-C3p12Ms6.js +1 -0
- package/client/dist/assets/integrations-Cr6hH7XR.js +1 -0
- package/client/dist/assets/integrations-Cublz3m6.js +1 -0
- package/client/dist/assets/integrations-D28q1kF6.js +1 -0
- package/client/dist/assets/integrations-DRdbki5W.js +1 -0
- package/client/dist/assets/integrations-DaC4SzzL.js +1 -0
- package/client/dist/assets/integrations-DmQYCUvN.js +1 -0
- package/client/dist/assets/integrations-HIlUxXVs.js +1 -0
- package/client/dist/assets/java-d1CmfiHX.js +1 -0
- package/client/dist/assets/javascript-CMk--e7g.js +1 -0
- package/client/dist/assets/jobs-BE1siB0M.js +1 -0
- package/client/dist/assets/jobs-BHcQ_Faf.js +1 -0
- package/client/dist/assets/jobs-CFfc2dNX.js +1 -0
- package/client/dist/assets/jobs-CSi5n8X_.js +1 -0
- package/client/dist/assets/jobs-Dc3X86PY.js +1 -0
- package/client/dist/assets/jobs-De5tASex.js +1 -0
- package/client/dist/assets/jobs-DsoXEdo7.js +1 -0
- package/client/dist/assets/jobs-Wl-ApPMb.js +1 -0
- package/client/dist/assets/json.worker-DzV-CpCQ.js +58 -0
- package/client/dist/assets/jsonMode-C2h3ZcjZ.js +7 -0
- package/client/dist/assets/julia-Bgv08lKa.js +1 -0
- package/client/dist/assets/kotlin-u98kaVTf.js +1 -0
- package/client/dist/assets/less-CjYwpgg5.js +2 -0
- package/client/dist/assets/lexon-YTjaAFBB.js +1 -0
- package/client/dist/assets/lib-CPxTMOAq.js +7 -0
- package/client/dist/assets/liquid-mI3KJrBE.js +1 -0
- package/client/dist/assets/lspLanguageFeatures-DU09ggWi.js +4 -0
- package/client/dist/assets/lua-BzmkWv27.js +1 -0
- package/client/dist/assets/m3-CFwk9fw0.js +1 -0
- package/client/dist/assets/markdown-CR5iMpSZ.js +1 -0
- package/client/dist/assets/mdx-C41VDTR_.js +1 -0
- package/client/dist/assets/mips-CcEalc17.js +1 -0
- package/client/dist/assets/monaco.contribution-CPObAXMC.js +2 -0
- package/client/dist/assets/msdax-BQbkawnr.js +1 -0
- package/client/dist/assets/mysql-GTlaaW_P.js +1 -0
- package/client/dist/assets/nav-0fwkrgHt.js +1 -0
- package/client/dist/assets/nav-BEL3MTwK.js +1 -0
- package/client/dist/assets/nav-B_G-TJDW.js +1 -0
- package/client/dist/assets/nav-C2YXcbZS.js +1 -0
- package/client/dist/assets/nav-ClzOE4mA.js +1 -0
- package/client/dist/assets/nav-CtYwmMgu.js +1 -0
- package/client/dist/assets/nav-D2bOGSEg.js +1 -0
- package/client/dist/assets/nav-iH1V5j6o.js +1 -0
- package/client/dist/assets/objective-c-Byu1T5if.js +1 -0
- package/client/dist/assets/pascal-BrfzBfRm.js +1 -0
- package/client/dist/assets/pascaligo-BXXKFUeo.js +1 -0
- package/client/dist/assets/perl-B3OikKq-.js +1 -0
- package/client/dist/assets/pgsql-CTsa0Acc.js +1 -0
- package/client/dist/assets/php-DiQh3FUW.js +1 -0
- package/client/dist/assets/pla-92uH8Fzm.js +1 -0
- package/client/dist/assets/postiats-BbeWkKUr.js +1 -0
- package/client/dist/assets/powerquery-DgDMzpsm.js +1 -0
- package/client/dist/assets/powershell-BfdUUzaG.js +1 -0
- package/client/dist/assets/preload-helper-DSXbuxSR.js +1 -0
- package/client/dist/assets/protobuf-BojW2ftW.js +2 -0
- package/client/dist/assets/pug-BxqTg3IU.js +1 -0
- package/client/dist/assets/python-Y27rKQtk.js +1 -0
- package/client/dist/assets/qsharp-BX_A-MW9.js +1 -0
- package/client/dist/assets/r-D9BMnxvJ.js +1 -0
- package/client/dist/assets/razor-Cd5-q9Bp.js +1 -0
- package/client/dist/assets/redis-5cJqEQJJ.js +1 -0
- package/client/dist/assets/redshift-d8BBqiwb.js +1 -0
- package/client/dist/assets/restructuredtext-C8a6yIcZ.js +1 -0
- package/client/dist/assets/ruby-egeh-6KX.js +1 -0
- package/client/dist/assets/rust-a3r9IInB.js +1 -0
- package/client/dist/assets/sb-y8iRIDei.js +1 -0
- package/client/dist/assets/scala-BPDK2AmK.js +1 -0
- package/client/dist/assets/scheme-BIWUEoOs.js +1 -0
- package/client/dist/assets/scss-CA-PSzwg.js +3 -0
- package/client/dist/assets/settings-55oDcbSh.js +1 -0
- package/client/dist/assets/settings-Bd4Tq1RB.js +1 -0
- package/client/dist/assets/settings-CCSM-Fhn.js +1 -0
- package/client/dist/assets/settings-D3e_bDoW.js +1 -0
- package/client/dist/assets/settings-DKbTkbn7.js +1 -0
- package/client/dist/assets/settings-Dxpo6_w7.js +1 -0
- package/client/dist/assets/settings-bt84e3Aa.js +1 -0
- package/client/dist/assets/settings-nu68QukM.js +1 -0
- package/client/dist/assets/setup-BMqwfbW9.js +1 -0
- package/client/dist/assets/setup-Bb5LcG28.js +1 -0
- package/client/dist/assets/setup-BeEx2_da.js +1 -0
- package/client/dist/assets/setup-CCCrB53Q.js +1 -0
- package/client/dist/assets/setup-CJA0ATmd.js +1 -0
- package/client/dist/assets/setup-CeiDbZcb.js +1 -0
- package/client/dist/assets/setup-Cus7TApA.js +1 -0
- package/client/dist/assets/setup-D9qOs2Xo.js +1 -0
- package/client/dist/assets/shell--LiT1Bja.js +1 -0
- package/client/dist/assets/solidity-DdqZccZg.js +1 -0
- package/client/dist/assets/sophia-S6-YxNG_.js +1 -0
- package/client/dist/assets/sparql-BSf5kMp2.js +1 -0
- package/client/dist/assets/specs-BFfu3u-a.js +1 -0
- package/client/dist/assets/specs-B__C8-8a.js +1 -0
- package/client/dist/assets/specs-CZ1PsXsC.js +1 -0
- package/client/dist/assets/specs-D2FzlLn9.js +1 -0
- package/client/dist/assets/specs-DaUTrNF9.js +1 -0
- package/client/dist/assets/specs-Dyc5hYeE.js +1 -0
- package/client/dist/assets/specs-cKEh2LXt.js +1 -0
- package/client/dist/assets/specs-k0PyLDVt.js +1 -0
- package/client/dist/assets/sql-D7KgjR8G.js +1 -0
- package/client/dist/assets/st-BnoDa-Ml.js +1 -0
- package/client/dist/assets/swift-DEUHTkUX.js +1 -0
- package/client/dist/assets/systemverilog-Tqb_KPnW.js +1 -0
- package/client/dist/assets/tcl-BmBFS2qq.js +1 -0
- package/client/dist/assets/terminal-80yDMgMF.js +1 -0
- package/client/dist/assets/terminal-Bje4ziIa.js +1 -0
- package/client/dist/assets/terminal-C2WYcFHF.js +1 -0
- package/client/dist/assets/terminal-CSONJOex.js +1 -0
- package/client/dist/assets/terminal-DEqzGtcr.js +1 -0
- package/client/dist/assets/terminal-DeWzh6ys.js +1 -0
- package/client/dist/assets/terminal-YOlsJCQj.js +1 -0
- package/client/dist/assets/terminal-lkZYR4wJ.js +1 -0
- package/client/dist/assets/tickets-CB7N30gm.js +1 -0
- package/client/dist/assets/tickets-CF2PYelu.js +1 -0
- package/client/dist/assets/tickets-DNOANUXr.js +1 -0
- package/client/dist/assets/tickets-DU1aqsbr.js +1 -0
- package/client/dist/assets/tickets-DYvafSaY.js +1 -0
- package/client/dist/assets/tickets-DlpC_iTg.js +1 -0
- package/client/dist/assets/tickets-DucYgtdl.js +1 -0
- package/client/dist/assets/tickets-clefmXLv.js +1 -0
- package/client/dist/assets/ts.worker-METxwbDZ.js +67719 -0
- package/client/dist/assets/tsMode-B0y_xEci.js +11 -0
- package/client/dist/assets/twig-BQV8igWC.js +1 -0
- package/client/dist/assets/typescript-BzK0OgwW.js +1 -0
- package/client/dist/assets/typespec-DlFroUGY.js +1 -0
- package/client/dist/assets/useProjectCache-DSaiGFjV.js +1 -0
- package/client/dist/assets/vb-BlrJpIMX.js +1 -0
- package/client/dist/assets/wgsl-BWgIc6FZ.js +298 -0
- package/client/dist/assets/workers-rt--R2Qy.js +1 -0
- package/client/dist/assets/xml-eX9QXAmI.js +1 -0
- package/client/dist/assets/yaml-fcsNkpOt.js +1 -0
- package/client/dist/index.html +246 -0
- package/docs/README.md +54 -0
- package/docs/cli.md +198 -0
- package/docs/codex.md +210 -0
- package/docs/creating-specs.md +197 -0
- package/docs/customizing.md +197 -0
- package/docs/getting-started.md +140 -0
- package/docs/internals/README.md +25 -0
- package/docs/internals/adding-a-provider.md +238 -0
- package/docs/internals/api-reference.md +634 -0
- package/docs/internals/architecture.md +332 -0
- package/docs/internals/configuration.md +172 -0
- package/docs/internals/openspec-workflow.md +282 -0
- package/docs/internals/operations-runbook.md +198 -0
- package/docs/internals/profiles.md +152 -0
- package/docs/platforms/macos.md +130 -0
- package/docs/platforms/windows.md +81 -0
- package/docs/running-pipelines.md +240 -0
- package/docs/terminal.md +138 -0
- package/docs/tracking-cost.md +155 -0
- package/package.json +82 -0
- package/server/dist/agent-generator.js +232 -0
- package/server/dist/agent-refine-db.js +124 -0
- package/server/dist/agent-refine-manager.js +526 -0
- package/server/dist/ai-invocations.js +111 -0
- package/server/dist/attachment-manager.js +299 -0
- package/server/dist/auth.js +207 -0
- package/server/dist/binary-probe.js +35 -0
- package/server/dist/browser-capture-manager.js +576 -0
- package/server/dist/browser-capture-types.js +28 -0
- package/server/dist/browser-network.js +149 -0
- package/server/dist/browser-playwright.js +888 -0
- package/server/dist/build-dirs.js +44 -0
- package/server/dist/changes-reader.js +120 -0
- package/server/dist/chat-manager.js +1060 -0
- package/server/dist/chromium-resolver.js +311 -0
- package/server/dist/code-explorer-router.js +788 -0
- package/server/dist/codex-otel-bridge.js +235 -0
- package/server/dist/command-resolver.js +102 -0
- package/server/dist/config.js +306 -0
- package/server/dist/context-budget.js +113 -0
- package/server/dist/context-scope.js +279 -0
- package/server/dist/contract-refine-runner.js +521 -0
- package/server/dist/core-compat.js +207 -0
- package/server/dist/core-package.js +14 -0
- package/server/dist/db.js +1034 -0
- package/server/dist/desktop-analytics.js +156 -0
- package/server/dist/desktop-db.js +456 -0
- package/server/dist/desktop-router.js +735 -0
- package/server/dist/docs-router.js +207 -0
- package/server/dist/explore-contract-refine.js +421 -0
- package/server/dist/explore-cwd-manager.js +242 -0
- package/server/dist/explore-draft-title.js +47 -0
- package/server/dist/explore-smash.js +450 -0
- package/server/dist/feature-flags.js +17 -0
- package/server/dist/file-provenance.js +382 -0
- package/server/dist/file-summary-generator.js +221 -0
- package/server/dist/file-summary-manager.js +689 -0
- package/server/dist/hooks.js +102 -0
- package/server/dist/ids.js +7 -0
- package/server/dist/index.js +586 -0
- package/server/dist/metrics.js +136 -0
- package/server/dist/mobile/index.js +16 -0
- package/server/dist/mobile/mobile-admin-router.js +84 -0
- package/server/dist/mobile/mobile-auth.js +67 -0
- package/server/dist/mobile/mobile-devices.js +80 -0
- package/server/dist/mobile/mobile-event-bus.js +39 -0
- package/server/dist/mobile/mobile-gateway.js +285 -0
- package/server/dist/mobile/mobile-mdns.js +81 -0
- package/server/dist/mobile/mobile-pairing.js +179 -0
- package/server/dist/mobile/mobile-redact.js +53 -0
- package/server/dist/mobile/mobile-router.js +411 -0
- package/server/dist/mobile/mobile-tls.js +86 -0
- package/server/dist/mobile/mobile-types.js +9 -0
- package/server/dist/mobile/mobile-ws.js +275 -0
- package/server/dist/path-resolver.js +298 -0
- package/server/dist/plugin-manager.js +617 -0
- package/server/dist/plugins/claude-approval.js +179 -0
- package/server/dist/plugins/claude-md-mutation.js +146 -0
- package/server/dist/plugins/codex-mcp.js +108 -0
- package/server/dist/plugins/contributors.js +72 -0
- package/server/dist/plugins/drift.js +58 -0
- package/server/dist/plugins/index.js +14 -0
- package/server/dist/plugins/json-mutation.js +120 -0
- package/server/dist/plugins/manager.js +32 -0
- package/server/dist/plugins/ownership.js +86 -0
- package/server/dist/plugins/paths.js +37 -0
- package/server/dist/plugins/prereq-installer.js +104 -0
- package/server/dist/plugins/rail-integration.js +79 -0
- package/server/dist/plugins/serena/index.js +13 -0
- package/server/dist/plugins/serena/install.js +91 -0
- package/server/dist/plugins/serena/instructions-content.js +21 -0
- package/server/dist/plugins/serena/manifest.js +111 -0
- package/server/dist/plugins/serena/verify.js +78 -0
- package/server/dist/plugins-router.js +215 -0
- package/server/dist/pricing.js +89 -0
- package/server/dist/profile-manager.js +310 -0
- package/server/dist/profiles-router.js +759 -0
- package/server/dist/project-registry.js +443 -0
- package/server/dist/project-router.js +4016 -0
- package/server/dist/proposal-manager.js +291 -0
- package/server/dist/provider-selection.js +69 -0
- package/server/dist/providers/claude-adapter.js +281 -0
- package/server/dist/providers/codex-adapter.js +264 -0
- package/server/dist/providers/index.js +23 -0
- package/server/dist/providers/registry.js +37 -0
- package/server/dist/providers/types.js +22 -0
- package/server/dist/queue-manager.js +1511 -0
- package/server/dist/rails-router.js +362 -0
- package/server/dist/rails-store.js +116 -0
- package/server/dist/result-event.js +106 -0
- package/server/dist/schemas/profile.v1.json +151 -0
- package/server/dist/setup-manager.js +1165 -0
- package/server/dist/setup-prerequisites.js +372 -0
- package/server/dist/smash-runner.js +663 -0
- package/server/dist/spec-draft-parser.js +133 -0
- package/server/dist/spec-launcher-manager.js +174 -0
- package/server/dist/spec-models.js +32 -0
- package/server/dist/specrails-tech-client.js +82 -0
- package/server/dist/spending.js +448 -0
- package/server/dist/telemetry-compactor.js +180 -0
- package/server/dist/telemetry-export.js +317 -0
- package/server/dist/telemetry-receiver.js +224 -0
- package/server/dist/terminal-manager.js +633 -0
- package/server/dist/terminal-marks-store.js +117 -0
- package/server/dist/terminal-osc-parser.js +159 -0
- package/server/dist/terminal-settings.js +282 -0
- package/server/dist/terminal-shell-integration.js +196 -0
- package/server/dist/ticket-broadcast.js +47 -0
- package/server/dist/ticket-store.js +397 -0
- package/server/dist/ticket-watcher.js +117 -0
- package/server/dist/types.js +10 -0
- package/server/dist/user-mcp-config.js +117 -0
- package/server/dist/util/cli-prompt.js +181 -0
- package/server/dist/util/secure-fs.js +50 -0
- package/server/dist/util/win-spawn.js +43 -0
- package/server/dist/webhook-manager.js +89 -0
- package/server/dist/ws-routing.js +47 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./chunk-CilyBKbf.js";var t=e(((e,t)=>{t.exports={}})),n=e(((e,n)=>{(function(r,i){typeof e==`object`&&typeof n==`object`?n.exports=i(t(),t(),t(),t()):typeof define==`function`&&define.amd?define([`fs`,`path`,`util`,`stream`],i):typeof e==`object`?e.LigaturesAddon=i(t(),t(),t(),t()):r.LigaturesAddon=i(r.fs,r.path,r.util,r.stream)})(self,((t,n,r,i)=>(()=>{var a={185:(e,t)=>{function n(e){let t={};for(let[n,i]of Object.entries(e.individual))t[n]=r(i);for(let{range:n,entry:i}of e.range){let e=r(i);for(let r=n[0];r<n[1];r++)t[r]=e}return t}function r(e){let t={};return e.forward&&(t.forward=n(e.forward)),e.reverse&&(t.reverse=n(e.reverse)),e.lookup&&(t.lookup=e.lookup),t}Object.defineProperty(t,`__esModule`,{value:!0}),t.default=n},98:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(602),i=n(593),a=n(233),o=n(694),s=n(532),c=n(595),l=n(223),u=n(439),d=n(349),f=n(185);class p{constructor(e,t){this._lookupTrees=[],this._glyphLookups={},this._font=e,t.cacheSize>0&&(this._cache=new i({max:t.cacheSize,length:(e,t)=>t.length}));let n=(this._font.tables.gsub&&this._font.tables.gsub.features.filter((e=>e.tag===`calt`))||[]).reduce(((e,t)=>[...e,...t.feature.lookupListIndexes]),[]),r=this._font.tables.gsub&&this._font.tables.gsub.lookups||[],o=r.filter(((e,t)=>n.some((e=>e===t))));for(let[e,t]of o.entries()){let n=[];switch(t.lookupType){case 6:for(let[e,i]of t.subtables.entries())switch(i.substFormat){case 1:n.push(c.default(i,r,e));break;case 2:n.push(l.default(i,r,e));break;case 3:n.push(u.default(i,r,e))}break;case 8:for(let[e,r]of t.subtables.entries())n.push(d.default(r,e))}let i=f.default(a.default(n));this._lookupTrees.push({tree:i,processForward:t.lookupType!==8});for(let t of Object.keys(i))this._glyphLookups[t]||(this._glyphLookups[t]=[]),this._glyphLookups[t].push(e)}}findLigatures(e){let t=this._cache&&this._cache.get(e);if(t&&!Array.isArray(t))return t;let n=[];for(let t of e)n.push(this._font.charToGlyphIndex(t));if(this._lookupTrees.length===0)return{inputGlyphs:n,outputGlyphs:n,contextRanges:[]};let r=this._findInternal(n.slice()),i={inputGlyphs:n,outputGlyphs:r.sequence,contextRanges:r.ranges};return this._cache&&this._cache.set(e,i),i}findLigatureRanges(e){if(this._lookupTrees.length===0)return[];let t=this._cache&&this._cache.get(e);if(t)return Array.isArray(t)?t:t.contextRanges;let n=[];for(let t of e)n.push(this._font.charToGlyphIndex(t));let r=this._findInternal(n);return this._cache&&this._cache.set(e,r.ranges),r.ranges}_findInternal(e){let t=[],n=this._getNextLookup(e,0);for(;n.index!==null;){let r=this._lookupTrees[n.index];if(r.processForward){let i=n.last;for(let a=n.first;a<i;a++){let n=o.default(r.tree,e,a,a);if(n){for(let t=0;t<n.substitutions.length;t++){let r=n.substitutions[t];r!==null&&(e[a+t]=r)}s.default(t,n.contextRange[0]+a,n.contextRange[1]+a),a+n.length>=i&&(i=a+n.length+1),a+=n.length-1}}}else for(let i=n.last-1;i>=n.first;i--){let n=o.default(r.tree,e,i,i);if(n){for(let t=0;t<n.substitutions.length;t++){let r=n.substitutions[t];r!==null&&(e[i+t]=r)}s.default(t,n.contextRange[0]+i,n.contextRange[1]+i),i-=n.length-1}}n=this._getNextLookup(e,n.index+1)}return{sequence:e,ranges:t}}_getNextLookup(e,t){let n={index:null,first:1/0,last:-1};for(let r=0;r<e.length;r++){let i=this._glyphLookups[e[r]];if(i)for(let e=0;e<i.length;e++){let a=i[e];if(a>=t){(n.index===null||a<=n.index)&&(n.index=a,n.first>r&&(n.first=r),n.last=r+1);break}}}return n}}async function m(e,t){return new p(await Promise.resolve().then((()=>n(269))).then((t=>t.promisify(r.load)(e))),Object.assign({cacheSize:0},t))}t.load=async function(e,t){let[r]=await Promise.resolve().then((()=>n(781))).then((t=>t.listVariants(e)));if(!r)throw Error(`Font ${e} not found`);return m(r.path,t)},t.loadFile=m,t.loadBuffer=function(e,t){return new p(r.parse(e),Object.assign({cacheSize:0},t))}},233:(e,t)=>{function n(e,t){for(let[n,i]of Object.entries(t.individual))if(e.individual[n])r(e.individual[n],i);else{let t=!1;for(let[o,{range:c,entry:l}]of e.range.entries()){let u=a(Number(n),c);if(u.both!==null){t=!0,e.individual[n]=i,r(e.individual[n],s(l)),e.range.splice(o,1);for(let t of u.second)Array.isArray(t)?e.range.push({range:t,entry:s(l)}):e.individual[t]=s(l)}}t||(e.individual[n]=i)}for(let{range:n,entry:o}of t.range){let t=[n];for(let n=0;n<e.range.length;n++){let{range:c,entry:l}=e.range[n];for(let[u,d]of t.entries()){if(!Array.isArray(d)){let i=a(d,c);if(i.both===null)continue;e.individual[d]=s(o),r(e.individual[d],s(l)),e.range.splice(n,1),n--;for(let t of i.second)Array.isArray(t)?e.range.push({range:t,entry:s(l)}):e.individual[t]=s(l);t.splice(u,1,...i.first);break}{let a=i(d,c);if(a.both===null)continue;e.range.splice(n,1),n--;let u=s(l);Array.isArray(a.both)?e.range.push({range:a.both,entry:u}):e.individual[a.both]=u,r(u,s(o));for(let t of a.second)Array.isArray(t)?e.range.push({range:t,entry:s(l)}):e.individual[t]=s(l);t=a.first}}}for(let n of Object.keys(e.individual))for(let[i,c]of t.entries()){if(Array.isArray(c)){let l=a(Number(n),c);if(l.both===null)continue;r(e.individual[n],s(o)),t.splice(i,1,...l.second);break}if(Number(n)===c){r(e.individual[n],s(o));break}}for(let n of t)Array.isArray(n)?e.range.push({range:n,entry:s(o)}):e.individual[n]=s(o)}}function r(e,t){t.lookup&&(!e.lookup||e.lookup.index>t.lookup.index||e.lookup.index===t.lookup.index&&e.lookup.subIndex>t.lookup.subIndex)&&(e.lookup=t.lookup),t.forward&&(e.forward?n(e.forward,t.forward):e.forward=t.forward),t.reverse&&(e.reverse?n(e.reverse,t.reverse):e.reverse=t.reverse)}function i(e,t){let n={first:[],second:[],both:null};if(e[0]<t[1]&&t[0]<e[1]&&(n.both=o(Math.max(e[0],t[0]),Math.min(e[1],t[1]))),e[0]<t[0]){let r=e[0],i=Math.min(t[0],e[1]);n.first.push(o(r,i))}else if(t[0]<e[0]){let r=t[0],i=Math.min(t[1],e[0]);n.second.push(o(r,i))}if(e[1]>t[1]){let r=Math.max(e[0],t[1]),i=e[1];n.first.push(o(r,i))}else if(t[1]>e[1]){let r=Math.max(e[1],t[0]),i=t[1];n.second.push(o(r,i))}return n}function a(e,t){if(e<t[0]||e>t[1])return{first:[e],second:[t],both:null};let n={first:[],second:[],both:e};return t[0]<e&&n.second.push(o(t[0],e)),t[1]>e&&n.second.push(o(e+1,t[1])),n}function o(e,t){return t-e==1?e:[e,t]}function s(e){let t={};return e.forward&&(t.forward=c(e.forward)),e.reverse&&(t.reverse=c(e.reverse)),e.lookup&&(t.lookup={contextRange:e.lookup.contextRange.slice(),index:e.lookup.index,length:e.lookup.length,subIndex:e.lookup.subIndex,substitutions:e.lookup.substitutions.slice()}),t}function c(e){let t={};for(let[n,r]of Object.entries(e.individual))t[n]=s(r);return{individual:t,range:e.range.map((({range:e,entry:t})=>({range:e.slice(),entry:s(t)})))}}Object.defineProperty(t,`__esModule`,{value:!0}),t.default=function(e){let t={individual:{},range:[]};for(let r of e)n(t,r);return t}},532:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.default=function(e,t,n){let r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(r){if(n<=a[0])return e[i-1][1]=n,e;if(n<=a[1])return e[i-1][1]=Math.max(n,a[1]),e.splice(i,1),r=!1,e;e.splice(i,1),i--}else{if(n<=a[0])return e.splice(i,0,[t,n]),e;if(n<=a[1])return a[0]=Math.min(t,a[0]),e;if(!(t<a[1]))continue;a[0]=Math.min(t,a[0]),r=!0}}return r?e[e.length-1][1]=n:e.push([t,n]),e}},595:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(283),i=n(267);t.default=function(e,t,n){let a={individual:{},range:[]},o=r.listGlyphsByIndex(e.coverage);for(let{glyphId:r,index:s}of o){let o=e.chainRuleSets[s];if(o)for(let[e,s]of o.entries()){let o=i.getInputTree(a,s.lookupRecords,t,0,r).map((({entry:e,substitution:t})=>({entry:e,substitutions:[t]})));for(let[e,n]of s.input.entries())o=i.processInputPosition([n],e+1,o,s.lookupRecords,t);for(let e of s.lookahead)o=i.processLookaheadPosition([e],o);for(let e of s.backtrack)o=i.processBacktrackPosition([e],o);for(let{entry:t,substitutions:r}of o)t.lookup={substitutions:r,length:s.input.length+1,index:n,subIndex:e,contextRange:[-1*s.backtrack.length,1+s.input.length+s.lookahead.length]}}}return a}},223:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(233),i=n(283),a=n(91),o=n(267);t.default=function(e,t,n){let s=[],c=i.listGlyphsByIndex(e.coverage);for(let{glyphId:r}of c){let i=a.default(e.inputClassDef,r);for(let[r,c]of i.entries()){if(c===null)continue;let i=e.chainClassSet[c];if(i)for(let[c,l]of i.entries()){let i={individual:{},range:[]},u=o.getInputTree(i,l.lookupRecords,t,0,r).map((({entry:e,substitution:t})=>({entry:e,substitutions:[t]})));for(let[n,r]of l.input.entries())u=o.processInputPosition(a.listClassGlyphs(e.inputClassDef,r),n+1,u,l.lookupRecords,t);for(let t of l.lookahead)u=o.processLookaheadPosition(a.listClassGlyphs(e.lookaheadClassDef,t),u);for(let t of l.backtrack)u=o.processBacktrackPosition(a.listClassGlyphs(e.backtrackClassDef,t),u);for(let{entry:e,substitutions:t}of u)e.lookup={substitutions:t,index:n,subIndex:c,length:l.input.length+1,contextRange:[-1*l.backtrack.length,1+l.input.length+l.lookahead.length]};s.push(i)}}}return r.default(s)}},439:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(283),i=n(267);t.default=function(e,t,n){let a={individual:{},range:[]},o=r.listGlyphsByIndex(e.inputCoverage[0]);for(let{glyphId:s}of o){let o=i.getInputTree(a,e.lookupRecords,t,0,s).map((({entry:e,substitution:t})=>({entry:e,substitutions:[t]})));for(let[n,a]of e.inputCoverage.slice(1).entries())o=i.processInputPosition(r.listGlyphsByIndex(a).map((e=>e.glyphId)),n+1,o,e.lookupRecords,t);for(let t of e.lookaheadCoverage)o=i.processLookaheadPosition(r.listGlyphsByIndex(t).map((e=>e.glyphId)),o);for(let t of e.backtrackCoverage)o=i.processBacktrackPosition(r.listGlyphsByIndex(t).map((e=>e.glyphId)),o);for(let{entry:t,substitutions:r}of o)t.lookup={substitutions:r,index:n,subIndex:0,length:e.inputCoverage.length,contextRange:[-1*e.backtrackCoverage.length,e.inputCoverage.length+e.lookaheadCoverage.length]}}return a}},349:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(283),i=n(267);t.default=function(e,t){let n={individual:{},range:[]},a=r.listGlyphsByIndex(e.coverage);for(let{glyphId:o,index:s}of a){let a={};Array.isArray(o)?n.range.push({entry:a,range:o}):n.individual[o]=a;let c=[{entry:a,substitutions:[e.substitutes[s]]}];for(let t of e.lookaheadCoverage)c=i.processLookaheadPosition(r.listGlyphsByIndex(t).map((e=>e.glyphId)),c);for(let t of e.backtrackCoverage)c=i.processBacktrackPosition(r.listGlyphsByIndex(t).map((e=>e.glyphId)),c);for(let{entry:n,substitutions:r}of c)n.lookup={substitutions:r,index:t,subIndex:0,length:1,contextRange:[-1*e.backtrackCoverage.length,1+e.lookaheadCoverage.length]}}return n}},91:(e,t)=>{function n(e,t){for(let n of e.ranges)if(n.start<=t&&n.end>=t)return n.classId;return null}Object.defineProperty(t,`__esModule`,{value:!0}),t.default=function(e,t){return e.format===2?Array.isArray(t)?function(e,t){let r=t[0],i=n(e,r),a=t[0]+1,o=new Map;for(;a<t[1];)n(e,a)!==i&&(a-r<=1?o.set(r,i):o.set([r,a],i)),a++;return a-r<=1?o.set(r,i):o.set([r,a],i),o}(e,t):new Map([[t,n(e,t)]]):new Map([[t,null]])},t.listClassGlyphs=function(e,t){if(e.format===2){let n=[];for(let r of e.ranges)r.classId===t&&(r.end===r.start?n.push(r.start):n.push([r.start,r.end+1]));return n}return[]}},283:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.default=function(e,t){switch(e.format){case 1:let n=e.glyphs.indexOf(t);return n===-1?null:n;case 2:let r=e.ranges.find((e=>e.start<=t&&e.end>=t));return r?r.index:null}},t.listGlyphsByIndex=function(e){switch(e.format){case 1:return e.glyphs.map(((e,t)=>({glyphId:e,index:t})));case 2:let t=[];for(let[n,r]of e.ranges.entries())r.end===r.start?t.push({glyphId:r.start,index:n}):t.push({glyphId:[r.start,r.end+1],index:n});return t}}},267:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(603);function i(e,t,n,i,o){let s=[];if(Array.isArray(o)){let a=function(e,t,n,i){for(let a of e.filter((e=>e.sequenceIndex===n)))for(let e of t[a.lookupListIndex].subtables){let t=r.getRangeSubstitutionGlyphs(e,i);if(!Array.from(t.values()).every((e=>e!==null)))return t}return new Map([[i,null]])}(t,n,i,o);for(let[t,n]of a){let r={};Array.isArray(t)?e.range.push({range:t,entry:r}):e.individual[t]={},s.push({entry:r,substitution:n})}}else e.individual[o]={},s.push({entry:e.individual[o],substitution:a(t,n,i,o)});return s}function a(e,t,n,i){for(let a of e.filter((e=>e.sequenceIndex===n)))for(let e of t[a.lookupListIndex].subtables){let t=r.getIndividualSubstitutionGlyph(e,i);if(t!==null)return t}return null}t.processInputPosition=function(e,t,n,r,a){let o=[];for(let s of n){s.entry.forward={individual:{},range:[]};for(let n of e)o.push(...i(s.entry.forward,r,a,t,n).map((({entry:e,substitution:t})=>({entry:e,substitutions:[...s.substitutions,t]}))))}return o},t.processLookaheadPosition=function(e,t){let n=[];for(let r of t)for(let t of e){let e={};r.entry.forward||(r.entry.forward={individual:{},range:[]}),n.push({entry:e,substitutions:r.substitutions}),Array.isArray(t)?r.entry.forward.range.push({entry:e,range:t}):r.entry.forward.individual[t]=e}return n},t.processBacktrackPosition=function(e,t){let n=[];for(let r of t)for(let t of e){let e={};r.entry.reverse||(r.entry.reverse={individual:{},range:[]}),n.push({entry:e,substitutions:r.substitutions}),Array.isArray(t)?r.entry.reverse.range.push({entry:e,range:t}):r.entry.reverse.individual[t]=e}return n},t.getInputTree=i},603:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(283);function i(e,t){let n=r.default(e.coverage,t);if(n===null)return null;switch(e.substFormat){case 1:return(t+e.deltaGlyphId)%65536;case 2:return e.substitute[n]==null?null:e.substitute[n]}}t.getRangeSubstitutionGlyphs=function(e,t){let n=t[0],r=i(e,n),a=t[0]+1,o=new Map;for(;a<t[1];)i(e,a)!==r&&(a-n<=1?o.set(n,r):o.set([n,a],r)),a++;return a-n<=1?o.set(n,r):o.set([n,a],r),o},t.getIndividualSubstitutionGlyph=i},694:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.default=function e(t,n,r,i){let a=t[n[i]];if(!a)return;let o=a.lookup;if(a.reverse){let e=function(e,t,n){let r=e[t[--n]],i=r&&r.lookup;for(;r&&((!i&&r.lookup||r.lookup&&i&&i.index>r.lookup.index)&&(i=r.lookup),!(--n<0)&&r.reverse);)r=r.reverse[t[n]];return i}(a.reverse,n,r);(!o&&e||e&&o&&(o.index>e.index||o.index===e.index&&o.subIndex>e.subIndex))&&(o=e)}if(++i>=n.length||!a.forward)return o;let s=e(a.forward,n,r,i);return(!o&&s||s&&o&&(o.index>s.index||o.index===s.index&&o.subIndex>s.subIndex))&&(o=s),o}},814:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(82);var i,a;(function(e){e.Serif=`serif`,e.SansSerif=`sansSerif`,e.Monospace=`monospace`,e.Cursive=`cursive`,e.Unknown=`unknown`})(i=t.Type||={}),function(e){e.Regular=`regular`,e.Italic=`italic`,e.Oblique=`oblique`,e.Bold=`bold`,e.BoldItalic=`boldItalic`,e.BoldOblique=`boldOblique`,e.Other=`other`}(a=t.Style||={});let o=[` Regular`,` Bold`,` Bold Italic`,` Bold Oblique`,` Italic`,` Oblique`];function s(e){if(!e.os2&&!e.head)return a.Other;let t=e.os2?32&e.os2.fsSelection:1&e.head.macStyle,n=e.os2?1&e.os2.fsSelection:e.post?e.post.italicAngle<0:2&e.head.macStyle,r=e.os2?512&e.os2.fsSelection:e.post?e.post.italicAngle>0:0,i=e.os2?320&e.os2.fsSelection:1;return t?r?a.BoldOblique:n?a.BoldItalic:a.Bold:r?a.Oblique:n?a.Italic:i?a.Regular:a.Other}t.name=function(e,t){let n=e.names.preferredFamily&&e.names.preferredFamily[t]?e.names.preferredFamily[t]:e.names.fontFamily[t];if(r.platform()===`win32`){let r=`${n} ${e.names.preferredSubfamily&&e.names.preferredSubfamily[t]?e.names.preferredSubfamily[t]:e.names.fontSubfamily[t]}`,i=-1;for(let e of o){let t=r.lastIndexOf(e);if(t!==-1){i=t;break}}return i===-1?r:r.substring(0,i)}return n},t.type=function(e){if(e.os2)switch(e.os2.panose[0]){case 2:return e.os2.panose[3]===9?i.Monospace:e.os2.panose[1]>=11&&e.os2.panose[1]<=15||e.os2.panose[1]===0?i.SansSerif:i.Serif;case 3:return i.Cursive}else if(e.post&&e.post.isFixedPitch)return i.Monospace;return i.Unknown},t.style=s;let c=[a.Bold,a.BoldItalic,a.BoldOblique];t.weight=function(e){return e.os2?e.os2.usWeightClass:c.includes(s(e))?700:400}},781:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,`__esModule`,{value:!0});let i=n(459),a=n(934),o=n(814);var s=n(814);async function c(e){let t=Object.assign({concurrency:4,language:`en`},e),n=await async function(e,n,r){let i=[],o=0,s=async e=>{i.push(await(async e=>{try{return l(e,await a.default(e),t.language)}catch(e){if([`TypeError`,`SyntaxError`,`ReferenceError`,`RangeError`,`AssertionError`].includes(e.name))throw e}})(n[e])),o<n.length&&await s(o++)},c=[];for(;o<n.length&&o<r;o++)c.push(s(o));return await Promise.all(c),i}(0,await i.default({extensions:[`ttf`,`otf`]}),t.concurrency),o={};for(let e of n.filter((e=>e))){let{name:t}=e,n=r(e,[`name`]);o[t]||(o[t]=[]),o[t].push(n)}return o}function l(e,t,n){return{name:o.name(t,n),path:e,type:o.type(t),weight:o.weight(t),style:o.style(t)}}t.Type=s.Type,t.Style=s.Style,t.list=c,t.listVariants=async function(e,t){return(await c(t))[e]||[]},t.get=async function(e,t){let n=Object.assign({language:`en`},t);return l(e,await a.default(e),n.language)}},934:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(89),i=n(896),a=n(380),o=n(879),s=n(130),c=n(731),l=n(954);var u;(function(e){e[e.TrueType=0]=`TrueType`,e[e.CFF=1]=`CFF`,e[e.Woff=2]=`Woff`})(u||={});let d={name:{tag:Buffer.from(`name`),parse:a.default},ltag:{tag:Buffer.from(`ltag`),parse:o.default},os2:{tag:Buffer.from(`OS/2`),parse:s.default},head:{tag:Buffer.from(`head`),parse:c.default},post:{tag:Buffer.from(`post`),parse:l.default}};t.default=async function(e){return new Promise(((t,n)=>{(async()=>{let t=i.default(),a=r.createReadStream(e),o=!1,s=()=>{o=!0};a.once(`close`,s),a.once(`end`,s),a.once(`error`,(e=>{o=!0,n(e)})),a.pipe(t);try{switch(function(e){if(e.equals(f.one)||e.equals(f.true)||e.equals(f.typ1))return u.TrueType;if(e.equals(f.otto))return u.CFF;if(e.equals(f.woff))return u.Woff;throw Error(`Unsupported signature type: ${e}`)}(await t.read(4))){case u.TrueType:case u.CFF:let n=(await t.read(2)).readUInt16BE(0);await t.skip(6);let r=await async function(e,t){let n={};for(let r=0;r<t;r++){let t=await e.read(4),r=await e.read(12);for(let[e,i]of Object.entries(d))if(t.equals(i.tag)&&(n[e]={offset:r.readUInt32BE(4),length:r.readUInt32BE(8)},n.name&&n.ltag&&n.os2))return n}return n}(t,n),i=Object.entries(r).sort(((e,t)=>e[1].offset-t[1].offset)),a={};for(let[e,n]of i)await t.skip(n.offset-t.offset),a[e]=await t.read(n.length);let o=[];if(a.ltag&&(o=d.ltag.parse(a.ltag)),!a.name)throw Error(`missing required OpenType table 'name' in font file: ${e}`);return{names:d.name.parse(a.name,o),os2:a.os2&&d.os2.parse(a.os2),head:a.head&&d.head.parse(a.head),post:a.post&&d.post.parse(a.post)};case u.Woff:default:throw Error(`provided font type is not supported yet`)}}finally{a.unpipe(t),o||(a.destroy(),t.destroy())}})().then(t,n)}))};let f={one:Buffer.from([0,1,0,0]),otto:Buffer.from(`OTTO`),true:Buffer.from(`true`),typ1:Buffer.from(`typ1`),woff:Buffer.from(`wOFF`)}},731:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(980);t.default=function(e){return{version:r.formatFixed(e.readUInt16BE(0),e.readUInt16BE(2)),fontRevision:r.formatFixed(e.readUInt16BE(4),e.readUInt16BE(6)),checkSumAdjustment:e.readUInt32BE(8),magicNumber:e.readUInt32BE(12),flags:e.readUInt16BE(16),unitsPerEm:e.readUInt16BE(18),created:r.formatLongDateTime(e.readUInt32BE(20),e.readUInt32BE(24)),modified:r.formatLongDateTime(e.readUInt32BE(28),e.readUInt32BE(32)),xMin:e.readInt16BE(36),yMin:e.readInt16BE(38),xMax:e.readInt16BE(40),yMax:e.readInt16BE(42),macStyle:e.readUInt16BE(44),lowestRecPPEM:e.readUInt16BE(46),fontDirectionHint:e.readInt16BE(48),indexToLocFormat:e.readInt16BE(50),glyphDataFormat:e.readInt16BE(52)}}},879:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.default=function(e){if(e.readUInt32BE(0)!==1)throw Error(`Unsupported ltag table version.`);let t=e.readUInt32BE(8),n=[];for(let r=0;r<t;r++){let t=``,i=e.readUInt16BE(12+4*r),a=e.readUInt16BE(14+4*r);for(let n=i;n<i+a;++n)t+=String.fromCharCode(e.readInt8(n));n.push(t)}return n}},380:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0});let n=[`copyright`,`fontFamily`,`fontSubfamily`,`uniqueID`,`fullName`,`version`,`postScriptName`,`trademark`,`manufacturer`,`designer`,`description`,`manufacturerURL`,`designerURL`,`license`,`licenseURL`,`reserved`,`preferredFamily`,`preferredSubfamily`,`compatibleFullName`,`sampleText`,`postScriptFindFontName`,`wwsFamily`,`wwsSubfamily`],r={0:`en`,1:`fr`,2:`de`,3:`it`,4:`nl`,5:`sv`,6:`es`,7:`da`,8:`pt`,9:`no`,10:`he`,11:`ja`,12:`ar`,13:`fi`,14:`el`,15:`is`,16:`mt`,17:`tr`,18:`hr`,19:`zh-Hant`,20:`ur`,21:`hi`,22:`th`,23:`ko`,24:`lt`,25:`pl`,26:`hu`,27:`es`,28:`lv`,29:`se`,30:`fo`,31:`fa`,32:`ru`,33:`zh`,34:`nl-BE`,35:`ga`,36:`sq`,37:`ro`,38:`cz`,39:`sk`,40:`si`,41:`yi`,42:`sr`,43:`mk`,44:`bg`,45:`uk`,46:`be`,47:`uz`,48:`kk`,49:`az-Cyrl`,50:`az-Arab`,51:`hy`,52:`ka`,53:`mo`,54:`ky`,55:`tg`,56:`tk`,57:`mn-CN`,58:`mn`,59:`ps`,60:`ks`,61:`ku`,62:`sd`,63:`bo`,64:`ne`,65:`sa`,66:`mr`,67:`bn`,68:`as`,69:`gu`,70:`pa`,71:`or`,72:`ml`,73:`kn`,74:`ta`,75:`te`,76:`si`,77:`my`,78:`km`,79:`lo`,80:`vi`,81:`id`,82:`tl`,83:`ms`,84:`ms-Arab`,85:`am`,86:`ti`,87:`om`,88:`so`,89:`sw`,90:`rw`,91:`rn`,92:`ny`,93:`mg`,94:`eo`,128:`cy`,129:`eu`,130:`ca`,131:`la`,132:`qu`,133:`gn`,134:`ay`,135:`tt`,136:`ug`,137:`dz`,138:`jv`,139:`su`,140:`gl`,141:`af`,142:`br`,143:`iu`,144:`gd`,145:`gv`,146:`ga`,147:`to`,148:`el-polyton`,149:`kl`,150:`az`,151:`nn`},i={1078:`af`,1052:`sq`,1156:`gsw`,1118:`am`,5121:`ar-DZ`,15361:`ar-BH`,3073:`ar`,2049:`ar-IQ`,11265:`ar-JO`,13313:`ar-KW`,12289:`ar-LB`,4097:`ar-LY`,6145:`ary`,8193:`ar-OM`,16385:`ar-QA`,1025:`ar-SA`,10241:`ar-SY`,7169:`aeb`,14337:`ar-AE`,9217:`ar-YE`,1067:`hy`,1101:`as`,2092:`az-Cyrl`,1068:`az`,1133:`ba`,1069:`eu`,1059:`be`,2117:`bn`,1093:`bn-IN`,8218:`bs-Cyrl`,5146:`bs`,1150:`br`,1026:`bg`,1027:`ca`,3076:`zh-HK`,5124:`zh-MO`,2052:`zh`,4100:`zh-SG`,1028:`zh-TW`,1155:`co`,1050:`hr`,4122:`hr-BA`,1029:`cs`,1030:`da`,1164:`prs`,1125:`dv`,2067:`nl-BE`,1043:`nl`,3081:`en-AU`,10249:`en-BZ`,4105:`en-CA`,9225:`en-029`,16393:`en-IN`,6153:`en-IE`,8201:`en-JM`,17417:`en-MY`,5129:`en-NZ`,13321:`en-PH`,18441:`en-SG`,7177:`en-ZA`,11273:`en-TT`,2057:`en-GB`,1033:`en`,12297:`en-ZW`,1061:`et`,1080:`fo`,1124:`fil`,1035:`fi`,2060:`fr-BE`,3084:`fr-CA`,1036:`fr`,5132:`fr-LU`,6156:`fr-MC`,4108:`fr-CH`,1122:`fy`,1110:`gl`,1079:`ka`,3079:`de-AT`,1031:`de`,5127:`de-LI`,4103:`de-LU`,2055:`de-CH`,1032:`el`,1135:`kl`,1095:`gu`,1128:`ha`,1037:`he`,1081:`hi`,1038:`hu`,1039:`is`,1136:`ig`,1057:`id`,1117:`iu`,2141:`iu-Latn`,2108:`ga`,1076:`xh`,1077:`zu`,1040:`it`,2064:`it-CH`,1041:`ja`,1099:`kn`,1087:`kk`,1107:`km`,1158:`quc`,1159:`rw`,1089:`sw`,1111:`kok`,1042:`ko`,1088:`ky`,1108:`lo`,1062:`lv`,1063:`lt`,2094:`dsb`,1134:`lb`,1071:`mk`,2110:`ms-BN`,1086:`ms`,1100:`ml`,1082:`mt`,1153:`mi`,1146:`arn`,1102:`mr`,1148:`moh`,1104:`mn`,2128:`mn-CN`,1121:`ne`,1044:`nb`,2068:`nn`,1154:`oc`,1096:`or`,1123:`ps`,1045:`pl`,1046:`pt`,2070:`pt-PT`,1094:`pa`,1131:`qu-BO`,2155:`qu-EC`,3179:`qu`,1048:`ro`,1047:`rm`,1049:`ru`,9275:`smn`,4155:`smj-NO`,5179:`smj`,3131:`se-FI`,1083:`se`,2107:`se-SE`,8251:`sms`,6203:`sma-NO`,7227:`sms`,1103:`sa`,7194:`sr-Cyrl-BA`,3098:`sr`,6170:`sr-Latn-BA`,2074:`sr-Latn`,1132:`nso`,1074:`tn`,1115:`si`,1051:`sk`,1060:`sl`,11274:`es-AR`,16394:`es-BO`,13322:`es-CL`,9226:`es-CO`,5130:`es-CR`,7178:`es-DO`,12298:`es-EC`,17418:`es-SV`,4106:`es-GT`,18442:`es-HN`,2058:`es-MX`,19466:`es-NI`,6154:`es-PA`,15370:`es-PY`,10250:`es-PE`,20490:`es-PR`,3082:`es`,1034:`es`,21514:`es-US`,14346:`es-UY`,8202:`es-VE`,2077:`sv-FI`,1053:`sv`,1114:`syr`,1064:`tg`,2143:`tzm`,1097:`ta`,1092:`tt`,1098:`te`,1054:`th`,1105:`bo`,1055:`tr`,1090:`tk`,1152:`ug`,1058:`uk`,1070:`hsb`,1056:`ur`,2115:`uz-Cyrl`,1091:`uz`,1066:`vi`,1106:`cy`,1160:`wo`,1157:`sah`,1144:`ii`,1130:`yo`};function a(e,t,n){switch(e){case 0:if(t===65535)return`und`;if(n)return n[t];break;case 1:return r[t];case 3:return i[t]}}let o=`utf-16`,s={0:`macintosh`,1:`x-mac-japanese`,2:`x-mac-chinesetrad`,3:`x-mac-korean`,6:`x-mac-greek`,7:`x-mac-cyrillic`,9:`x-mac-devanagai`,10:`x-mac-gurmukhi`,11:`x-mac-gujarati`,12:`x-mac-oriya`,13:`x-mac-bengali`,14:`x-mac-tamil`,15:`x-mac-telugu`,16:`x-mac-kannada`,17:`x-mac-malayalam`,18:`x-mac-sinhalese`,19:`x-mac-burmese`,20:`x-mac-khmer`,21:`x-mac-thai`,22:`x-mac-lao`,23:`x-mac-georgian`,24:`x-mac-armenian`,25:`x-mac-chinesesimp`,26:`x-mac-tibetan`,27:`x-mac-mongolian`,28:`x-mac-ethiopic`,29:`x-mac-ce`,30:`x-mac-vietnamese`,31:`x-mac-extarabic`},c={15:`x-mac-icelandic`,17:`x-mac-turkish`,18:`x-mac-croatian`,24:`x-mac-ce`,25:`x-mac-ce`,26:`x-mac-ce`,27:`x-mac-ce`,28:`x-mac-ce`,30:`x-mac-icelandic`,37:`x-mac-romanian`,38:`x-mac-ce`,39:`x-mac-ce`,40:`x-mac-ce`,143:`x-mac-inuit`,146:`x-mac-gaelic`};function l(e,t,n){switch(e){case 0:return o;case 1:return c[n]||s[t];case 3:if(t===1||t===10)return o}}t.default=function(e,t){let r={},i=e.readUInt16BE(2),s=e.readUInt16BE(4),c=6;for(let u=0;u<i;u++){let i=e.readUInt16BE(c+0),u=e.readUInt16BE(c+2),f=e.readUInt16BE(c+4),p=e.readUInt16BE(c+6),m=n[p]||String(p),h=e.readUInt16BE(c+8),g=e.readUInt16BE(c+10),_=a(i,f,t),v=l(i,u,f);if(c+=12,v!==void 0&&_!==void 0){let t;if(v===o){let n=h/2,r=Array(n);for(let t=0;t<n;t++)r[t]=e.readUInt16BE(s+g+2*t);t=String.fromCharCode(...r)}else t=d(e,s+g,h,v);if(t){let e=r[m];e===void 0&&(e=r[m]={}),e[_]=t}}}return r};let u={"x-mac-croatian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ`,"x-mac-cyrillic":`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю`,"x-mac-gaelic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ`,"x-mac-greek":`Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ`,"x-mac-icelandic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-inuit":`ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł`,"x-mac-ce":`ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`,macintosh:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-romanian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-turkish":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ`};function d(e,t,n,r){let i=u[r];if(i===void 0)return;let a=``;for(let r=0;r<n;r++){let n=e.readUInt8(t+r);a+=n<=127?String.fromCharCode(n):i[127&n]}return a}},130:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.default=function(e){let t={version:e.readUInt16BE(0),xAvgCharWidth:e.readUInt16BE(2),usWeightClass:e.readUInt16BE(4),usWidthClass:e.readUInt16BE(6),fsType:e.readUInt16BE(8),ySubscriptXSize:e.readInt16BE(10),ySubscriptYSize:e.readInt16BE(12),ySubscriptXOffset:e.readInt16BE(14),ySubscriptYOffset:e.readInt16BE(16),ySuperscriptXSize:e.readInt16BE(18),ySuperscriptYSize:e.readInt16BE(20),ySuperscriptXOffset:e.readInt16BE(22),ySuperscriptYOffset:e.readInt16BE(24),yStrikeoutSize:e.readInt16BE(26),yStrikeoutPosition:e.readInt16BE(28),sFamilyClass:e.readInt16BE(30),panose:[e.readUInt8(32),e.readUInt8(33),e.readUInt8(34),e.readUInt8(35),e.readUInt8(36),e.readUInt8(37),e.readUInt8(38),e.readUInt8(39),e.readUInt8(40),e.readUInt8(41)],ulUnicodeRange1:e.readUInt32BE(42),ulUnicodeRange2:e.readUInt32BE(46),ulUnicodeRange3:e.readUInt32BE(50),ulUnicodeRange4:e.readUInt32BE(54),achVendID:String.fromCharCode(e.readUInt8(58),e.readUInt8(59),e.readUInt8(60),e.readUInt8(61)),fsSelection:e.readUInt16BE(62),usFirstCharIndex:e.readUInt16BE(64),usLastCharIndex:e.readUInt16BE(66),sTypoAscender:e.readInt16BE(68),sTypoDescender:e.readInt16BE(70),sTypoLineGap:e.readInt16BE(72),usWinAscent:e.readUInt16BE(74),usWinDescent:e.readUInt16BE(76)};return t.version>=1&&(t.ulCodePageRange1=e.readUInt32BE(78),t.ulCodePageRange2=e.readUInt32BE(82)),t.version>=2&&(t.sxHeight=e.readInt16BE(86),t.sCapHeight=e.readInt16BE(88),t.usDefaultChar=e.readUInt16BE(90),t.usBreakChar=e.readUInt16BE(92),t.usMaxContent=e.readUInt16BE(94)),t}},954:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(980);t.default=function(e){return{version:r.formatFixed(e.readUInt16BE(0),e.readUInt16BE(2)),italicAngle:r.formatFixed(e.readUInt16BE(4),e.readUInt16BE(6)),underlinePosition:e.readInt16BE(8),underlineThickness:e.readInt16BE(10),isFixedPitch:e.readUInt32BE(12),minMemType42:e.readUInt32BE(16),maxMemType42:e.readUInt32BE(20),minMemType1:e.readUInt32BE(24),maxMemType1:e.readUInt32BE(28)}}},980:(e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.formatFixed=function(e,t){return e+t/65536},t.formatLongDateTime=function(e,t){return 1e3*(e*2**32+t-2082844800)}},459:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(56),i=n(456),a=n(49),o={win32:()=>({}).WINDIR?[r.join({}.WINDIR,`Fonts`)]:[`C:\\Windows\\Fonts`],darwin:()=>{let e=i.homedir();return[...e?[r.join(e,`/Library/Fonts`)]:[],`/Library/Fonts`,`/Network/Library/Fonts`,`/System/Library/Fonts`,`/System Folder/Fonts`]},linux:()=>{let e=i.homedir();return[`/usr/share/fonts`,`/usr/local/share/fonts`,...e?[r.join(e,`.fonts`),r.join(e,`.local/share/fonts`)]:[]]}};function s(e){let t=Object.assign({extensions:[`ttf`,`otf`,`ttc`,`woff`,`woff2`],additionalFolders:[]},e),n=i.platform(),r=o[n];if(!r)throw Error(`Unsupported platform: ${n}`);let s=r();return a.default([...s,...t.additionalFolders],t.extensions)}e.exports=Object.assign(s,{default:s}),t.default=s},49:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(89),i=n(269),a=n(56),o=i.promisify(r.readdir),s=i.promisify(r.stat);async function c(e,t,n=10){if(n<=0)return[];let r;try{r=await o(e)}catch{return[]}let i=[];return await Promise.all(r.map((async r=>{let o=a.join(e,r),l;try{l=await s(o)}catch{return}l.isFile()&&t.test(o)?i.push(o):l.isDirectory()&&i.push(...await c(o,t,n-1))}))),i}t.default=async function(e,t){let n=new Set;return await Promise.all(e.map((async e=>{let r=await c(a.resolve(e),RegExp(`\\.${t.map((e=>`(?:${e})`)).join(`|`)}$`));for(let e of r)n.add(e)}))),[...n]}},593:(e,t,n)=>{let r=n(411),i=Symbol(`max`),a=Symbol(`length`),o=Symbol(`lengthCalculator`),s=Symbol(`allowStale`),c=Symbol(`maxAge`),l=Symbol(`dispose`),u=Symbol(`noDisposeOnSet`),d=Symbol(`lruList`),f=Symbol(`cache`),p=Symbol(`updateAgeOnGet`),m=()=>1,h=(e,t,n)=>{let r=e[f].get(t);if(r){let t=r.value;if(g(e,t)){if(v(e,r),!e[s])return}else n&&(e[p]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},_=e=>{if(e[a]>e[i])for(let t=e[d].tail;e[a]>e[i]&&t!==null;){let n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){let n=t.value;e[l]&&e[l](n.key,n.value),e[a]-=n.length,e[f].delete(n.key),e[d].removeNode(t)}};class y{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}let b=(e,t,n,r)=>{let i=n.value;g(e,i)&&(v(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if(typeof e==`number`&&(e={max:e}),e||={},e.max&&(typeof e.max!=`number`||e.max<0))throw TypeError(`max must be a non-negative number`);this[i]=e.max||1/0;let t=e.length||m;if(this[o]=typeof t==`function`?t:m,this[s]=e.stale||!1,e.maxAge&&typeof e.maxAge!=`number`)throw TypeError(`maxAge must be a number`);this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!=`number`||e<0)throw TypeError(`max must be a non-negative number`);this[i]=e||1/0,_(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if(typeof e!=`number`)throw TypeError(`maxAge must be a non-negative number`);this[c]=e,_(this)}get maxAge(){return this[c]}set lengthCalculator(e){typeof e!=`function`&&(e=m),e!==this[o]&&(this[o]=e,this[a]=0,this[d].forEach((e=>{e.length=this[o](e.value,e.key),this[a]+=e.length}))),_(this)}get lengthCalculator(){return this[o]}get length(){return this[a]}get itemCount(){return this[d].length}rforEach(e,t){t||=this;for(let n=this[d].tail;n!==null;){let r=n.prev;b(this,e,n,t),n=r}}forEach(e,t){t||=this;for(let n=this[d].head;n!==null;){let r=n.next;b(this,e,n,t),n=r}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[l]&&this[d]&&this[d].length&&this[d].forEach((e=>this[l](e.key,e.value))),this[f]=new Map,this[d]=new r,this[a]=0}dump(){return this[d].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,n){if((n||=this[c])&&typeof n!=`number`)throw TypeError(`maxAge must be a number`);let r=n?Date.now():0,s=this[o](t,e);if(this[f].has(e)){if(s>this[i])return v(this,this[f].get(e)),!1;let o=this[f].get(e).value;return this[l]&&(this[u]||this[l](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[a]+=s-o.length,o.length=s,this.get(e),_(this),!0}let p=new y(e,t,s,r,n);return p.length>this[i]?(this[l]&&this[l](e,t),!1):(this[a]+=p.length,this[d].unshift(p),this[f].set(e,this[d].head),_(this),!0)}has(e){if(!this[f].has(e))return!1;let t=this[f].get(e).value;return!g(this,t)}get(e){return h(this,e,!0)}peek(e){return h(this,e,!1)}pop(){let e=this[d].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[f].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let r=e[n],i=r.e||0;if(i===0)this.set(r.k,r.v);else{let e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[f].forEach(((e,t)=>h(this,t,!1)))}}},602:(t,n,r)=>{r.r(n),r.d(n,{BoundingBox:()=>c,Font:()=>vn,Glyph:()=>Se,Path:()=>u,_parse:()=>L,load:()=>Nn,loadSync:()=>Pn,parse:()=>Mn});var i=r(311),a=r.n(i);function o(e,t,n,r,i){return(1-i)**3*e+3*(1-i)**2*i*t+3*(1-i)*i**2*n+i**3*r}function s(){this.x1=NaN,this.y1=NaN,this.x2=NaN,this.y2=NaN}s.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},s.prototype.addPoint=function(e,t){typeof e==`number`&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t==`number`&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},s.prototype.addX=function(e){this.addPoint(e,null)},s.prototype.addY=function(e){this.addPoint(null,e)},s.prototype.addBezier=function(e,t,n,r,i,a,s,c){let l=[e,t],u=[n,r],d=[i,a],f=[s,c];this.addPoint(e,t),this.addPoint(s,c);for(let e=0;e<=1;e++){let t=6*l[e]-12*u[e]+6*d[e],n=-3*l[e]+9*u[e]-9*d[e]+3*f[e],r=3*u[e]-3*l[e];if(n===0){if(t===0)continue;let n=-r/t;0<n&&n<1&&(e===0&&this.addX(o(l[e],u[e],d[e],f[e],n)),e===1&&this.addY(o(l[e],u[e],d[e],f[e],n)));continue}let i=t**2-4*r*n;if(i<0)continue;let a=(-t+Math.sqrt(i))/(2*n);0<a&&a<1&&(e===0&&this.addX(o(l[e],u[e],d[e],f[e],a)),e===1&&this.addY(o(l[e],u[e],d[e],f[e],a)));let s=(-t-Math.sqrt(i))/(2*n);0<s&&s<1&&(e===0&&this.addX(o(l[e],u[e],d[e],f[e],s)),e===1&&this.addY(o(l[e],u[e],d[e],f[e],s)))}},s.prototype.addQuad=function(e,t,n,r,i,a){let o=e+2/3*(n-e),s=t+2/3*(r-t),c=o+1/3*(i-e),l=s+1/3*(a-t);this.addBezier(e,t,o,s,c,l,i,a)};let c=s;function l(){this.commands=[],this.fill=`black`,this.stroke=null,this.strokeWidth=1}l.prototype.moveTo=function(e,t){this.commands.push({type:`M`,x:e,y:t})},l.prototype.lineTo=function(e,t){this.commands.push({type:`L`,x:e,y:t})},l.prototype.curveTo=l.prototype.bezierCurveTo=function(e,t,n,r,i,a){this.commands.push({type:`C`,x1:e,y1:t,x2:n,y2:r,x:i,y:a})},l.prototype.quadTo=l.prototype.quadraticCurveTo=function(e,t,n,r){this.commands.push({type:`Q`,x1:e,y1:t,x:n,y:r})},l.prototype.close=l.prototype.closePath=function(){this.commands.push({type:`Z`})},l.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof c){let t=e;this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),this.close();return}Array.prototype.push.apply(this.commands,e)},l.prototype.getBoundingBox=function(){let e=new c,t=0,n=0,r=0,i=0;for(let a=0;a<this.commands.length;a++){let o=this.commands[a];switch(o.type){case`M`:e.addPoint(o.x,o.y),t=r=o.x,n=i=o.y;break;case`L`:e.addPoint(o.x,o.y),r=o.x,i=o.y;break;case`Q`:e.addQuad(r,i,o.x1,o.y1,o.x,o.y),r=o.x,i=o.y;break;case`C`:e.addBezier(r,i,o.x1,o.y1,o.x2,o.y2,o.x,o.y),r=o.x,i=o.y;break;case`Z`:r=t,i=n;break;default:throw Error(`Unexpected path command `+o.type)}}return e.isEmpty()&&e.addPoint(0,0),e},l.prototype.draw=function(e){e.beginPath();for(let t=0;t<this.commands.length;t+=1){let n=this.commands[t];n.type===`M`?e.moveTo(n.x,n.y):n.type===`L`?e.lineTo(n.x,n.y):n.type===`C`?e.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y):n.type===`Q`?e.quadraticCurveTo(n.x1,n.y1,n.x,n.y):n.type===`Z`&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},l.prototype.toPathData=function(e){function t(t){return Math.round(t)===t?``+Math.round(t):t.toFixed(e)}function n(){let e=``;for(let n=0;n<arguments.length;n+=1){let r=arguments[n];r>=0&&n>0&&(e+=` `),e+=t(r)}return e}e=e===void 0?2:e;let r=``;for(let e=0;e<this.commands.length;e+=1){let t=this.commands[e];t.type===`M`?r+=`M`+n(t.x,t.y):t.type===`L`?r+=`L`+n(t.x,t.y):t.type===`C`?r+=`C`+n(t.x1,t.y1,t.x2,t.y2,t.x,t.y):t.type===`Q`?r+=`Q`+n(t.x1,t.y1,t.x,t.y):t.type===`Z`&&(r+=`Z`)}return r},l.prototype.toSVG=function(e){let t=`<path d="`;return t+=this.toPathData(e),t+=`"`,this.fill&&this.fill!==`black`&&(this.fill===null?t+=` fill="none"`:t+=` fill="`+this.fill+`"`),this.stroke&&(t+=` stroke="`+this.stroke+`" stroke-width="`+this.strokeWidth+`"`),t+=`/>`,t},l.prototype.toDOMElement=function(e){let t=this.toPathData(e),n=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return n.setAttribute(`d`,t),n};let u=l;function d(e){throw Error(e)}function f(e,t){e||d(t)}let p={fail:d,argument:f,assert:f},m=2147483648,h={},g={},_={};function v(e){return function(){return e}}g.BYTE=function(e){return p.argument(e>=0&&e<=255,`Byte value should be between 0 and 255.`),[e]},_.BYTE=v(1),g.CHAR=function(e){return[e.charCodeAt(0)]},_.CHAR=v(1),g.CHARARRAY=function(e){let t=[];for(let n=0;n<e.length;n+=1)t[n]=e.charCodeAt(n);return t},_.CHARARRAY=function(e){return e.length},g.USHORT=function(e){return[e>>8&255,255&e]},_.USHORT=v(2),g.SHORT=function(e){return e>=32768&&(e=-(65536-e)),[e>>8&255,255&e]},_.SHORT=v(2),g.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},_.UINT24=v(3),g.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},_.ULONG=v(4),g.LONG=function(e){return e>=m&&(e=-(2*m-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},_.LONG=v(4),g.FIXED=g.ULONG,_.FIXED=_.ULONG,g.FWORD=g.SHORT,_.FWORD=_.SHORT,g.UFWORD=g.USHORT,_.UFWORD=_.USHORT,g.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},_.LONGDATETIME=v(8),g.TAG=function(e){return p.argument(e.length===4,`Tag should be exactly 4 ASCII characters.`),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},_.TAG=v(4),g.Card8=g.BYTE,_.Card8=_.BYTE,g.Card16=g.USHORT,_.Card16=_.USHORT,g.OffSize=g.BYTE,_.OffSize=_.BYTE,g.SID=g.USHORT,_.SID=_.USHORT,g.NUMBER=function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?g.NUMBER16(e):g.NUMBER32(e)},_.NUMBER=function(e){return g.NUMBER(e).length},g.NUMBER16=function(e){return[28,e>>8&255,255&e]},_.NUMBER16=v(3),g.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},_.NUMBER32=v(5),g.REAL=function(e){let t=e.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){let r=parseFloat(`1e`+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}let r=``;for(let e=0,n=t.length;e<n;e+=1){let n=t[e];r+=n===`e`?t[++e]===`-`?`c`:`b`:n===`.`?`a`:n===`-`?`e`:n}r+=1&r.length?`f`:`ff`;let i=[30];for(let e=0,t=r.length;e<t;e+=2)i.push(parseInt(r.substr(e,2),16));return i},_.REAL=function(e){return g.REAL(e).length},g.NAME=g.CHARARRAY,_.NAME=_.CHARARRAY,g.STRING=g.CHARARRAY,_.STRING=_.CHARARRAY,h.UTF8=function(e,t,n){let r=[],i=n;for(let n=0;n<i;n++,t+=1)r[n]=e.getUint8(t);return String.fromCharCode.apply(null,r)},h.UTF16=function(e,t,n){let r=[],i=n/2;for(let n=0;n<i;n++,t+=2)r[n]=e.getUint16(t);return String.fromCharCode.apply(null,r)},g.UTF16=function(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);t[t.length]=r>>8&255,t[t.length]=255&r}return t},_.UTF16=function(e){return 2*e.length};let y={"x-mac-croatian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ\xA0ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ`,"x-mac-cyrillic":`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю`,"x-mac-gaelic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»…\xA0ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ`,"x-mac-greek":`Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»…\xA0ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ`,"x-mac-icelandic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-inuit":`ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ…\xA0ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł`,"x-mac-ce":`ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`,macintosh:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-romanian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-turkish":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ`};h.MACSTRING=function(e,t,n,r){let i=y[r];if(i===void 0)return;let a=``;for(let r=0;r<n;r++){let n=e.getUint8(t+r);a+=n<=127?String.fromCharCode(n):i[127&n]}return a};let b=typeof WeakMap==`function`&&new WeakMap,x;function S(e){return e>=-128&&e<=127}function C(e,t,n){let r=0,i=e.length;for(;t<i&&r<64&&e[t]===0;)++t,++r;return n.push(128|r-1),t}function w(e,t,n){let r=0,i=e.length,a=t;for(;a<i&&r<64;){let t=e[a];if(!S(t)||t===0&&a+1<i&&e[a+1]===0)break;++a,++r}n.push(r-1);for(let r=t;r<a;++r)n.push(e[r]+256&255);return a}function T(e,t,n){let r=0,i=e.length,a=t;for(;a<i&&r<64;){let t=e[a];if(t===0||S(t)&&a+1<i&&S(e[a+1]))break;++a,++r}n.push(64|r-1);for(let r=t;r<a;++r){let t=e[r];n.push(t+65536>>8&255,t+256&255)}return a}g.MACSTRING=function(e,t){let n=function(e){if(!x){x={};for(let e in y)x[e]=new String(e)}let t=x[e];if(t===void 0)return;if(b){let e=b.get(t);if(e!==void 0)return e}let n=y[e];if(n===void 0)return;let r={};for(let e=0;e<n.length;e++)r[n.charCodeAt(e)]=e+128;return b&&b.set(t,r),r}(t);if(n===void 0)return;let r=[];for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);if(i>=128&&(i=n[i],i===void 0))return;r[t]=i}return r},_.MACSTRING=function(e,t){let n=g.MACSTRING(e,t);return n===void 0?0:n.length},g.VARDELTAS=function(e){let t=0,n=[];for(;t<e.length;){let r=e[t];t=r===0?C(e,t,n):r>=-128&&r<=127?w(e,t,n):T(e,t,n)}return n},g.INDEX=function(e){let t=1,n=[t],r=[];for(let i=0;i<e.length;i+=1){let a=g.OBJECT(e[i]);Array.prototype.push.apply(r,a),t+=a.length,n.push(t)}if(r.length===0)return[0,0];let i=[],a=1+Math.floor(Math.log(t)/Math.log(2))/8|0,o=[void 0,g.BYTE,g.USHORT,g.UINT24,g.ULONG][a];for(let e=0;e<n.length;e+=1){let t=o(n[e]);Array.prototype.push.apply(i,t)}return Array.prototype.concat(g.Card16(e.length),g.OffSize(a),i,r)},_.INDEX=function(e){return g.INDEX(e).length},g.DICT=function(e){let t=[],n=Object.keys(e),r=n.length;for(let i=0;i<r;i+=1){let r=parseInt(n[i],0),a=e[r];t=t.concat(g.OPERAND(a.value,a.type)),t=t.concat(g.OPERATOR(r))}return t},_.DICT=function(e){return g.DICT(e).length},g.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},g.OPERAND=function(e,t){let n=[];if(Array.isArray(t))for(let r=0;r<t.length;r+=1)p.argument(e.length===t.length,`Not enough arguments given for type`+t),n=n.concat(g.OPERAND(e[r],t[r]));else if(t===`SID`)n=n.concat(g.NUMBER(e));else if(t===`offset`)n=n.concat(g.NUMBER32(e));else if(t===`number`)n=n.concat(g.NUMBER(e));else{if(t!==`real`)throw Error(`Unknown operand type `+t);n=n.concat(g.REAL(e))}return n},g.OP=g.BYTE,_.OP=_.BYTE;let E=typeof WeakMap==`function`&&new WeakMap;function D(e,t,n){for(let e=0;e<t.length;e+=1){let n=t[e];this[n.name]=n.value}if(this.tableName=e,this.fields=t,n){let e=Object.keys(n);for(let t=0;t<e.length;t+=1){let r=e[t],i=n[r];this[r]!==void 0&&(this[r]=i)}}}function O(e,t,n){n===void 0&&(n=t.length);let r=Array(t.length+1);r[0]={name:e+`Count`,type:`USHORT`,value:n};for(let n=0;n<t.length;n++)r[n+1]={name:e+n,type:`USHORT`,value:t[n]};return r}function k(e,t,n){let r=t.length,i=Array(r+1);i[0]={name:e+`Count`,type:`USHORT`,value:r};for(let a=0;a<r;a++)i[a+1]={name:e+a,type:`TABLE`,value:n(t[a],a)};return i}function A(e,t,n){let r=t.length,i=[];i[0]={name:e+`Count`,type:`USHORT`,value:r};for(let e=0;e<r;e++)i=i.concat(n(t[e],e));return i}function j(e){e.format===1?D.call(this,`coverageTable`,[{name:`coverageFormat`,type:`USHORT`,value:1}].concat(O(`glyph`,e.glyphs))):p.assert(!1,`Can't create coverage table format 2 yet.`)}function M(e){D.call(this,`scriptListTable`,A(`scriptRecord`,e,(function(e,t){let n=e.script,r=n.defaultLangSys;return p.assert(!!r,`Unable to write GSUB: script `+e.tag+` has no default language system.`),[{name:`scriptTag`+t,type:`TAG`,value:e.tag},{name:`script`+t,type:`TABLE`,value:new D(`scriptTable`,[{name:`defaultLangSys`,type:`TABLE`,value:new D(`defaultLangSys`,[{name:`lookupOrder`,type:`USHORT`,value:0},{name:`reqFeatureIndex`,type:`USHORT`,value:r.reqFeatureIndex}].concat(O(`featureIndex`,r.featureIndexes)))}].concat(A(`langSys`,n.langSysRecords,(function(e,t){let n=e.langSys;return[{name:`langSysTag`+t,type:`TAG`,value:e.tag},{name:`langSys`+t,type:`TABLE`,value:new D(`langSys`,[{name:`lookupOrder`,type:`USHORT`,value:0},{name:`reqFeatureIndex`,type:`USHORT`,value:n.reqFeatureIndex}].concat(O(`featureIndex`,n.featureIndexes)))}]}))))}]})))}function N(e){D.call(this,`featureListTable`,A(`featureRecord`,e,(function(e,t){let n=e.feature;return[{name:`featureTag`+t,type:`TAG`,value:e.tag},{name:`feature`+t,type:`TABLE`,value:new D(`featureTable`,[{name:`featureParams`,type:`USHORT`,value:n.featureParams}].concat(O(`lookupListIndex`,n.lookupListIndexes)))}]})))}function P(e,t){D.call(this,`lookupListTable`,k(`lookup`,e,(function(e){let n=t[e.lookupType];return p.assert(!!n,`Unable to write GSUB lookup type `+e.lookupType+` tables.`),new D(`lookupTable`,[{name:`lookupType`,type:`USHORT`,value:e.lookupType},{name:`lookupFlag`,type:`USHORT`,value:e.lookupFlag}].concat(k(`subtable`,e.subtables,n)))})))}g.CHARSTRING=function(e){if(E){let t=E.get(e);if(t!==void 0)return t}let t=[],n=e.length;for(let r=0;r<n;r+=1){let n=e[r];t=t.concat(g[n.type](n.value))}return E&&E.set(e,t),t},_.CHARSTRING=function(e){return g.CHARSTRING(e).length},g.OBJECT=function(e){let t=g[e.type];return p.argument(t!==void 0,`No encoding function for type `+e.type),t(e.value)},_.OBJECT=function(e){let t=_[e.type];return p.argument(t!==void 0,`No sizeOf function for type `+e.type),t(e.value)},g.TABLE=function(e){let t=[],n=e.fields.length,r=[],i=[];for(let a=0;a<n;a+=1){let n=e.fields[a],o=g[n.type];p.argument(o!==void 0,`No encoding function for field type `+n.type+` (`+n.name+`)`);let s=e[n.name];s===void 0&&(s=n.value);let c=o(s);n.type===`TABLE`?(i.push(t.length),t=t.concat([0,0]),r.push(c)):t=t.concat(c)}for(let n=0;n<r.length;n+=1){let a=i[n],o=t.length;p.argument(o<65536,`Table `+e.tableName+` too big.`),t[a]=o>>8,t[a+1]=255&o,t=t.concat(r[n])}return t},_.TABLE=function(e){let t=0,n=e.fields.length;for(let r=0;r<n;r+=1){let n=e.fields[r],i=_[n.type];p.argument(i!==void 0,`No sizeOf function for field type `+n.type+` (`+n.name+`)`);let a=e[n.name];a===void 0&&(a=n.value),t+=i(a),n.type===`TABLE`&&(t+=2)}return t},g.RECORD=g.TABLE,_.RECORD=_.TABLE,g.LITERAL=function(e){return e},_.LITERAL=function(e){return e.length},D.prototype.encode=function(){return g.TABLE(this)},D.prototype.sizeOf=function(){return _.TABLE(this)},j.prototype=Object.create(D.prototype),j.prototype.constructor=j,M.prototype=Object.create(D.prototype),M.prototype.constructor=M,N.prototype=Object.create(D.prototype),N.prototype.constructor=N,P.prototype=Object.create(D.prototype),P.prototype.constructor=P;let F={Table:D,Record:D,Coverage:j,ScriptList:M,FeatureList:N,LookupList:P,ushortList:O,tableList:k,recordList:A};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function ne(e,t){return e.getUint32(t,!1)}function re(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}let ie={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function I(e,t){this.data=e,this.offset=t,this.relativeOffset=0}I.prototype.parseByte=function(){let e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},I.prototype.parseChar=function(){let e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},I.prototype.parseCard8=I.prototype.parseByte,I.prototype.parseUShort=function(){let e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},I.prototype.parseCard16=I.prototype.parseUShort,I.prototype.parseSID=I.prototype.parseUShort,I.prototype.parseOffset16=I.prototype.parseUShort,I.prototype.parseShort=function(){let e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},I.prototype.parseF2Dot14=function(){let e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},I.prototype.parseULong=function(){let e=ne(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},I.prototype.parseOffset32=I.prototype.parseULong,I.prototype.parseFixed=function(){let e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},I.prototype.parseString=function(e){let t=this.data,n=this.offset+this.relativeOffset,r=``;this.relativeOffset+=e;for(let i=0;i<e;i++)r+=String.fromCharCode(t.getUint8(n+i));return r},I.prototype.parseTag=function(){return this.parseString(4)},I.prototype.parseLongDateTime=function(){let e=ne(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},I.prototype.parseVersion=function(e){let t=te(this.data,this.offset+this.relativeOffset),n=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,e===void 0&&(e=4096),t+n/e/10},I.prototype.skip=function(e,t){t===void 0&&(t=1),this.relativeOffset+=ie[e]*t},I.prototype.parseULongList=function(e){e===void 0&&(e=this.parseULong());let t=Array(e),n=this.data,r=this.offset+this.relativeOffset;for(let i=0;i<e;i++)t[i]=n.getUint32(r),r+=4;return this.relativeOffset+=4*e,t},I.prototype.parseOffset16List=I.prototype.parseUShortList=function(e){e===void 0&&(e=this.parseUShort());let t=Array(e),n=this.data,r=this.offset+this.relativeOffset;for(let i=0;i<e;i++)t[i]=n.getUint16(r),r+=2;return this.relativeOffset+=2*e,t},I.prototype.parseShortList=function(e){let t=Array(e),n=this.data,r=this.offset+this.relativeOffset;for(let i=0;i<e;i++)t[i]=n.getInt16(r),r+=2;return this.relativeOffset+=2*e,t},I.prototype.parseByteList=function(e){let t=Array(e),n=this.data,r=this.offset+this.relativeOffset;for(let i=0;i<e;i++)t[i]=n.getUint8(r++);return this.relativeOffset+=e,t},I.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());let n=Array(e);for(let r=0;r<e;r++)n[r]=t.call(this);return n},I.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());let n=Array(e);for(let r=0;r<e;r++)n[r]=t.call(this);return n},I.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());let n=Array(e),r=Object.keys(t);for(let i=0;i<e;i++){let e={};for(let n=0;n<r.length;n++){let i=r[n];e[i]=t[i].call(this)}n[i]=e}return n},I.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());let n=Array(e),r=Object.keys(t);for(let i=0;i<e;i++){let e={};for(let n=0;n<r.length;n++){let i=r[n];e[i]=t[i].call(this)}n[i]=e}return n},I.prototype.parseStruct=function(e){if(typeof e==`function`)return e.call(this);{let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];n[i]=e[i].call(this)}return n}},I.prototype.parseValueRecord=function(e){if(e===void 0&&(e=this.parseUShort()),e===0)return;let t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t},I.prototype.parseValueRecordList=function(){let e=this.parseUShort(),t=this.parseUShort(),n=Array(t);for(let r=0;r<t;r++)n[r]=this.parseValueRecord(e);return n},I.prototype.parsePointer=function(e){let t=this.parseOffset16();if(t>0)return new I(this.data,this.offset+t).parseStruct(e)},I.prototype.parsePointer32=function(e){let t=this.parseOffset32();if(t>0)return new I(this.data,this.offset+t).parseStruct(e)},I.prototype.parseListOfLists=function(e){let t=this.parseOffset16List(),n=t.length,r=this.relativeOffset,i=Array(n);for(let r=0;r<n;r++){let n=t[r];if(n!==0)if(this.relativeOffset=n,e){let t=this.parseOffset16List(),a=Array(t.length);for(let r=0;r<t.length;r++)this.relativeOffset=n+t[r],a[r]=e.call(this);i[r]=a}else i[r]=this.parseUShortList();else i[r]=void 0}return this.relativeOffset=r,i},I.prototype.parseCoverage=function(){let e=this.offset+this.relativeOffset,t=this.parseUShort(),n=this.parseUShort();if(t===1)return{format:1,glyphs:this.parseUShortList(n)};if(t===2){let e=Array(n);for(let t=0;t<n;t++)e[t]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:e}}throw Error(`0x`+e.toString(16)+`: Coverage format must be 1 or 2.`)},I.prototype.parseClassDef=function(){let e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(t===2)return{format:2,ranges:this.parseRecordList({start:I.uShort,end:I.uShort,classId:I.uShort})};throw Error(`0x`+e.toString(16)+`: ClassDef format must be 1 or 2.`)},I.list=function(e,t){return function(){return this.parseList(e,t)}},I.list32=function(e,t){return function(){return this.parseList32(e,t)}},I.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},I.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},I.pointer=function(e){return function(){return this.parsePointer(e)}},I.pointer32=function(e){return function(){return this.parsePointer32(e)}},I.tag=I.prototype.parseTag,I.byte=I.prototype.parseByte,I.uShort=I.offset16=I.prototype.parseUShort,I.uShortList=I.prototype.parseUShortList,I.uLong=I.offset32=I.prototype.parseULong,I.uLongList=I.prototype.parseULongList,I.struct=I.prototype.parseStruct,I.coverage=I.prototype.parseCoverage,I.classDef=I.prototype.parseClassDef;let ae={reserved:I.uShort,reqFeatureIndex:I.uShort,featureIndexes:I.uShortList};I.prototype.parseScriptList=function(){return this.parsePointer(I.recordList({tag:I.tag,script:I.pointer({defaultLangSys:I.pointer(ae),langSysRecords:I.recordList({tag:I.tag,langSys:I.pointer(ae)})})}))||[]},I.prototype.parseFeatureList=function(){return this.parsePointer(I.recordList({tag:I.tag,feature:I.pointer({featureParams:I.offset16,lookupListIndexes:I.uShortList})}))||[]},I.prototype.parseLookupList=function(e){return this.parsePointer(I.list(I.pointer((function(){let t=this.parseUShort();p.argument(1<=t&&t<=9,`GPOS/GSUB lookup type `+t+` unknown.`);let n=this.parseUShort(),r=16&n;return{lookupType:t,lookupFlag:n,subtables:this.parseList(I.pointer(e[t])),markFilteringSet:r?this.parseUShort():void 0}}))))||[]},I.prototype.parseFeatureVariationsList=function(){return this.parsePointer32((function(){let e=this.parseUShort(),t=this.parseUShort();return p.argument(e===1&&t<1,`GPOS/GSUB feature variations table unknown.`),this.parseRecordList32({conditionSetOffset:I.offset32,featureTableSubstitutionOffset:I.offset32})}))||[]};let L={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:ne,getFixed:re,getTag:function(e,t){let n=``;for(let r=t;r<t+4;r+=1)n+=String.fromCharCode(e.getInt8(r));return n},getOffset:function(e,t,n){let r=0;for(let i=0;i<n;i+=1)r<<=8,r+=e.getUint8(t+i);return r},getBytes:function(e,t,n){let r=[];for(let i=t;i<n;i+=1)r.push(e.getUint8(i));return r},bytesToString:function(e){let t=``;for(let n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t},Parser:I};function oe(e,t,n){e.segments.push({end:t,start:t,delta:-(t-n),offset:0,glyphIndex:n})}let se={parse:function(e,t){let n={};n.version=L.getUShort(e,t),p.argument(n.version===0,`cmap table version should be 0.`),n.numTables=L.getUShort(e,t+2);let r=-1;for(let i=n.numTables-1;i>=0;--i){let n=L.getUShort(e,t+4+8*i),a=L.getUShort(e,t+4+8*i+2);if(n===3&&(a===0||a===1||a===10)){r=L.getULong(e,t+4+8*i+4);break}}if(r===-1)throw Error(`No valid cmap sub-tables found.`);let i=new L.Parser(e,t+r);if(n.format=i.parseUShort(),n.format===12)(function(e,t){let n;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=n=t.parseULong(),e.glyphIndexMap={};for(let r=0;r<n;r+=1){let n=t.parseULong(),r=t.parseULong(),i=t.parseULong();for(let t=n;t<=r;t+=1)e.glyphIndexMap[t]=i,i++}})(n,i);else{if(n.format!==4)throw Error(`Only format 4 and 12 cmap tables are supported (found format `+n.format+`).`);(function(e,t,n,r,i){let a;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=a=t.parseUShort()>>1,t.skip(`uShort`,3),e.glyphIndexMap={};let o=new L.Parser(n,r+i+14),s=new L.Parser(n,r+i+16+2*a),c=new L.Parser(n,r+i+16+4*a),l=new L.Parser(n,r+i+16+6*a),u=r+i+16+8*a;for(let t=0;t<a-1;t+=1){let t,r=o.parseUShort(),i=s.parseUShort(),a=c.parseShort(),d=l.parseUShort();for(let o=i;o<=r;o+=1)d===0?t=o+a&65535:(u=l.offset+l.relativeOffset-2,u+=d,u+=2*(o-i),t=L.getUShort(n,u),t!==0&&(t=t+a&65535)),e.glyphIndexMap[o]=t}})(n,i,e,t,r)}return n},make:function(e){let t,n=!0;for(t=e.length-1;t>0;--t)if(e.get(t).unicode>65535){console.log(`Adding CMAP format 12 (needed!)`),n=!1;break}let r=[{name:`version`,type:`USHORT`,value:0},{name:`numTables`,type:`USHORT`,value:n?1:2},{name:`platformID`,type:`USHORT`,value:3},{name:`encodingID`,type:`USHORT`,value:1},{name:`offset`,type:`ULONG`,value:n?12:20}];n||(r=r.concat([{name:`cmap12PlatformID`,type:`USHORT`,value:3},{name:`cmap12EncodingID`,type:`USHORT`,value:10},{name:`cmap12Offset`,type:`ULONG`,value:0}])),r=r.concat([{name:`format`,type:`USHORT`,value:4},{name:`cmap4Length`,type:`USHORT`,value:0},{name:`language`,type:`USHORT`,value:0},{name:`segCountX2`,type:`USHORT`,value:0},{name:`searchRange`,type:`USHORT`,value:0},{name:`entrySelector`,type:`USHORT`,value:0},{name:`rangeShift`,type:`USHORT`,value:0}]);let i=new F.Table(`cmap`,r);for(i.segments=[],t=0;t<e.length;t+=1){let n=e.get(t);for(let e=0;e<n.unicodes.length;e+=1)oe(i,n.unicodes[e],t);i.segments=i.segments.sort((function(e,t){return e.start-t.start}))}(function(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})})(i);let a=i.segments.length,o=0,s=[],c=[],l=[],u=[],d=[],f=[];for(t=0;t<a;t+=1){let e=i.segments[t];e.end<=65535&&e.start<=65535?(s=s.concat({name:`end_`+t,type:`USHORT`,value:e.end}),c=c.concat({name:`start_`+t,type:`USHORT`,value:e.start}),l=l.concat({name:`idDelta_`+t,type:`SHORT`,value:e.delta}),u=u.concat({name:`idRangeOffset_`+t,type:`USHORT`,value:e.offset}),e.glyphId!==void 0&&(d=d.concat({name:`glyph_`+t,type:`USHORT`,value:e.glyphId}))):o+=1,n||e.glyphIndex===void 0||(f=f.concat({name:`cmap12Start_`+t,type:`ULONG`,value:e.start}),f=f.concat({name:`cmap12End_`+t,type:`ULONG`,value:e.end}),f=f.concat({name:`cmap12Glyph_`+t,type:`ULONG`,value:e.glyphIndex}))}if(i.segCountX2=2*(a-o),i.searchRange=2*2**Math.floor(Math.log(a-o)/Math.log(2)),i.entrySelector=Math.log(i.searchRange/2)/Math.log(2),i.rangeShift=i.segCountX2-i.searchRange,i.fields=i.fields.concat(s),i.fields.push({name:`reservedPad`,type:`USHORT`,value:0}),i.fields=i.fields.concat(c),i.fields=i.fields.concat(l),i.fields=i.fields.concat(u),i.fields=i.fields.concat(d),i.cmap4Length=14+2*s.length+2+2*c.length+2*l.length+2*u.length+2*d.length,!n){let e=16+4*f.length;i.cmap12Offset=20+i.cmap4Length,i.fields=i.fields.concat([{name:`cmap12Format`,type:`USHORT`,value:12},{name:`cmap12Reserved`,type:`USHORT`,value:0},{name:`cmap12Length`,type:`ULONG`,value:e},{name:`cmap12Language`,type:`ULONG`,value:0},{name:`cmap12nGroups`,type:`ULONG`,value:f.length/3}]),i.fields=i.fields.concat(f)}return i}},ce=`.notdef,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quoteright,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,quoteleft,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,exclamdown,cent,sterling,fraction,yen,florin,section,currency,quotesingle,quotedblleft,guillemotleft,guilsinglleft,guilsinglright,fi,fl,endash,dagger,daggerdbl,periodcentered,paragraph,bullet,quotesinglbase,quotedblbase,quotedblright,guillemotright,ellipsis,perthousand,questiondown,grave,acute,circumflex,tilde,macron,breve,dotaccent,dieresis,ring,cedilla,hungarumlaut,ogonek,caron,emdash,AE,ordfeminine,Lslash,Oslash,OE,ordmasculine,ae,dotlessi,lslash,oslash,oe,germandbls,onesuperior,logicalnot,mu,trademark,Eth,onehalf,plusminus,Thorn,onequarter,divide,brokenbar,degree,thorn,threequarters,twosuperior,registered,minus,eth,multiply,threesuperior,copyright,Aacute,Acircumflex,Adieresis,Agrave,Aring,Atilde,Ccedilla,Eacute,Ecircumflex,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Ntilde,Oacute,Ocircumflex,Odieresis,Ograve,Otilde,Scaron,Uacute,Ucircumflex,Udieresis,Ugrave,Yacute,Ydieresis,Zcaron,aacute,acircumflex,adieresis,agrave,aring,atilde,ccedilla,eacute,ecircumflex,edieresis,egrave,iacute,icircumflex,idieresis,igrave,ntilde,oacute,ocircumflex,odieresis,ograve,otilde,scaron,uacute,ucircumflex,udieresis,ugrave,yacute,ydieresis,zcaron,exclamsmall,Hungarumlautsmall,dollaroldstyle,dollarsuperior,ampersandsmall,Acutesmall,parenleftsuperior,parenrightsuperior,266 ff,onedotenleader,zerooldstyle,oneoldstyle,twooldstyle,threeoldstyle,fouroldstyle,fiveoldstyle,sixoldstyle,sevenoldstyle,eightoldstyle,nineoldstyle,commasuperior,threequartersemdash,periodsuperior,questionsmall,asuperior,bsuperior,centsuperior,dsuperior,esuperior,isuperior,lsuperior,msuperior,nsuperior,osuperior,rsuperior,ssuperior,tsuperior,ff,ffi,ffl,parenleftinferior,parenrightinferior,Circumflexsmall,hyphensuperior,Gravesmall,Asmall,Bsmall,Csmall,Dsmall,Esmall,Fsmall,Gsmall,Hsmall,Ismall,Jsmall,Ksmall,Lsmall,Msmall,Nsmall,Osmall,Psmall,Qsmall,Rsmall,Ssmall,Tsmall,Usmall,Vsmall,Wsmall,Xsmall,Ysmall,Zsmall,colonmonetary,onefitted,rupiah,Tildesmall,exclamdownsmall,centoldstyle,Lslashsmall,Scaronsmall,Zcaronsmall,Dieresissmall,Brevesmall,Caronsmall,Dotaccentsmall,Macronsmall,figuredash,hypheninferior,Ogoneksmall,Ringsmall,Cedillasmall,questiondownsmall,oneeighth,threeeighths,fiveeighths,seveneighths,onethird,twothirds,zerosuperior,foursuperior,fivesuperior,sixsuperior,sevensuperior,eightsuperior,ninesuperior,zeroinferior,oneinferior,twoinferior,threeinferior,fourinferior,fiveinferior,sixinferior,seveninferior,eightinferior,nineinferior,centinferior,dollarinferior,periodinferior,commainferior,Agravesmall,Aacutesmall,Acircumflexsmall,Atildesmall,Adieresissmall,Aringsmall,AEsmall,Ccedillasmall,Egravesmall,Eacutesmall,Ecircumflexsmall,Edieresissmall,Igravesmall,Iacutesmall,Icircumflexsmall,Idieresissmall,Ethsmall,Ntildesmall,Ogravesmall,Oacutesmall,Ocircumflexsmall,Otildesmall,Odieresissmall,OEsmall,Oslashsmall,Ugravesmall,Uacutesmall,Ucircumflexsmall,Udieresissmall,Yacutesmall,Thornsmall,Ydieresissmall,001.000,001.001,001.002,001.003,Black,Bold,Book,Light,Medium,Regular,Roman,Semibold`.split(`,`),le=`................................space.exclam.quotedbl.numbersign.dollar.percent.ampersand.quoteright.parenleft.parenright.asterisk.plus.comma.hyphen.period.slash.zero.one.two.three.four.five.six.seven.eight.nine.colon.semicolon.less.equal.greater.question.at.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.bracketleft.backslash.bracketright.asciicircum.underscore.quoteleft.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.braceleft.bar.braceright.asciitilde...................................exclamdown.cent.sterling.fraction.yen.florin.section.currency.quotesingle.quotedblleft.guillemotleft.guilsinglleft.guilsinglright.fi.fl..endash.dagger.daggerdbl.periodcentered..paragraph.bullet.quotesinglbase.quotedblbase.quotedblright.guillemotright.ellipsis.perthousand..questiondown..grave.acute.circumflex.tilde.macron.breve.dotaccent.dieresis..ring.cedilla..hungarumlaut.ogonek.caron.emdash.................AE..ordfeminine.....Lslash.Oslash.OE.ordmasculine......ae....dotlessi...lslash.oslash.oe.germandbls`.split(`.`),ue=`................................space.exclamsmall.Hungarumlautsmall..dollaroldstyle.dollarsuperior.ampersandsmall.Acutesmall.parenleftsuperior.parenrightsuperior.twodotenleader.onedotenleader.comma.hyphen.period.fraction.zerooldstyle.oneoldstyle.twooldstyle.threeoldstyle.fouroldstyle.fiveoldstyle.sixoldstyle.sevenoldstyle.eightoldstyle.nineoldstyle.colon.semicolon.commasuperior.threequartersemdash.periodsuperior.questionsmall..asuperior.bsuperior.centsuperior.dsuperior.esuperior...isuperior...lsuperior.msuperior.nsuperior.osuperior...rsuperior.ssuperior.tsuperior..ff.fi.fl.ffi.ffl.parenleftinferior..parenrightinferior.Circumflexsmall.hyphensuperior.Gravesmall.Asmall.Bsmall.Csmall.Dsmall.Esmall.Fsmall.Gsmall.Hsmall.Ismall.Jsmall.Ksmall.Lsmall.Msmall.Nsmall.Osmall.Psmall.Qsmall.Rsmall.Ssmall.Tsmall.Usmall.Vsmall.Wsmall.Xsmall.Ysmall.Zsmall.colonmonetary.onefitted.rupiah.Tildesmall...................................exclamdownsmall.centoldstyle.Lslashsmall...Scaronsmall.Zcaronsmall.Dieresissmall.Brevesmall.Caronsmall..Dotaccentsmall...Macronsmall...figuredash.hypheninferior...Ogoneksmall.Ringsmall.Cedillasmall....onequarter.onehalf.threequarters.questiondownsmall.oneeighth.threeeighths.fiveeighths.seveneighths.onethird.twothirds...zerosuperior.onesuperior.twosuperior.threesuperior.foursuperior.fivesuperior.sixsuperior.sevensuperior.eightsuperior.ninesuperior.zeroinferior.oneinferior.twoinferior.threeinferior.fourinferior.fiveinferior.sixinferior.seveninferior.eightinferior.nineinferior.centinferior.dollarinferior.periodinferior.commainferior.Agravesmall.Aacutesmall.Acircumflexsmall.Atildesmall.Adieresissmall.Aringsmall.AEsmall.Ccedillasmall.Egravesmall.Eacutesmall.Ecircumflexsmall.Edieresissmall.Igravesmall.Iacutesmall.Icircumflexsmall.Idieresissmall.Ethsmall.Ntildesmall.Ogravesmall.Oacutesmall.Ocircumflexsmall.Otildesmall.Odieresissmall.OEsmall.Oslashsmall.Ugravesmall.Uacutesmall.Ucircumflexsmall.Udieresissmall.Yacutesmall.Thornsmall.Ydieresissmall`.split(`.`),R=`.notdef,.null,nonmarkingreturn,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quotesingle,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,grave,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,Adieresis,Aring,Ccedilla,Eacute,Ntilde,Odieresis,Udieresis,aacute,agrave,acircumflex,adieresis,atilde,aring,ccedilla,eacute,egrave,ecircumflex,edieresis,iacute,igrave,icircumflex,idieresis,ntilde,oacute,ograve,ocircumflex,odieresis,otilde,uacute,ugrave,ucircumflex,udieresis,dagger,degree,cent,sterling,section,bullet,paragraph,germandbls,registered,copyright,trademark,acute,dieresis,notequal,AE,Oslash,infinity,plusminus,lessequal,greaterequal,yen,mu,partialdiff,summation,product,pi,integral,ordfeminine,ordmasculine,Omega,ae,oslash,questiondown,exclamdown,logicalnot,radical,florin,approxequal,Delta,guillemotleft,guillemotright,ellipsis,nonbreakingspace,Agrave,Atilde,Otilde,OE,oe,endash,emdash,quotedblleft,quotedblright,quoteleft,quoteright,divide,lozenge,ydieresis,Ydieresis,fraction,currency,guilsinglleft,guilsinglright,fi,fl,daggerdbl,periodcentered,quotesinglbase,quotedblbase,perthousand,Acircumflex,Ecircumflex,Aacute,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Oacute,Ocircumflex,apple,Ograve,Uacute,Ucircumflex,Ugrave,dotlessi,circumflex,tilde,macron,breve,dotaccent,ring,cedilla,hungarumlaut,ogonek,caron,Lslash,lslash,Scaron,scaron,Zcaron,zcaron,brokenbar,Eth,eth,Yacute,yacute,Thorn,thorn,minus,multiply,onesuperior,twosuperior,threesuperior,onehalf,onequarter,threequarters,franc,Gbreve,gbreve,Idotaccent,Scedilla,scedilla,Cacute,cacute,Ccaron,ccaron,dcroat`.split(`,`);function de(e){this.font=e}function fe(e){this.cmap=e}function pe(e,t){this.encoding=e,this.charset=t}function me(e){switch(e.version){case 1:this.names=R.slice();break;case 2:this.names=Array(e.numberOfGlyphs);for(let t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<R.length?this.names[t]=R[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-R.length];break;case 2.5:this.names=Array(e.numberOfGlyphs);for(let t=0;t<e.numberOfGlyphs;t++)this.names[t]=R[t+e.glyphNameIndex[t]];break;default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){let t=e.charCodeAt(0),n=this.font.glyphs;if(n)for(let e=0;e<n.length;e+=1){let r=n.get(e);for(let n=0;n<r.unicodes.length;n+=1)if(r.unicodes[n]===t)return e}return null},fe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.charCodeAt(0)]||0},pe.prototype.charToGlyphIndex=function(e){let t=e.charCodeAt(0),n=this.encoding[t];return this.charset.indexOf(n)},me.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},me.prototype.glyphIndexToName=function(e){return this.names[e]};let he=function(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.stroke()};function ge(e,t,n,r,i){let a;return(t&r)>0?(a=e.parseByte(),(t&i)==0&&(a=-a),a=n+a):a=(t&i)>0?n:n+e.parseShort(),a}function _e(e,t,n){let r=new L.Parser(t,n),i,a;if(e.numberOfContours=r.parseShort(),e._xMin=r.parseShort(),e._yMin=r.parseShort(),e._xMax=r.parseShort(),e._yMax=r.parseShort(),e.numberOfContours>0){let t=e.endPointIndices=[];for(let n=0;n<e.numberOfContours;n+=1)t.push(r.parseUShort());e.instructionLength=r.parseUShort(),e.instructions=[];for(let t=0;t<e.instructionLength;t+=1)e.instructions.push(r.parseByte());let n=t[t.length-1]+1;i=[];for(let e=0;e<n;e+=1)if(a=r.parseByte(),i.push(a),(8&a)>0){let t=r.parseByte();for(let n=0;n<t;n+=1)i.push(a),e+=1}if(p.argument(i.length===n,`Bad flags.`),t.length>0){let o=[],s;if(n>0){for(let e=0;e<n;e+=1)a=i[e],s={},s.onCurve=!!(1&a),s.lastPointOfContour=t.indexOf(e)>=0,o.push(s);let e=0;for(let t=0;t<n;t+=1)a=i[t],s=o[t],s.x=ge(r,a,e,2,16),e=s.x;let c=0;for(let e=0;e<n;e+=1)a=i[e],s=o[e],s.y=ge(r,a,c,4,32),c=s.y}e.points=o}else e.points=[]}else if(e.numberOfContours===0)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];let t=!0;for(;t;){i=r.parseUShort();let n={glyphIndex:r.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(1&i)>0?(2&i)>0?(n.dx=r.parseShort(),n.dy=r.parseShort()):n.matchedPoints=[r.parseUShort(),r.parseUShort()]:(2&i)>0?(n.dx=r.parseChar(),n.dy=r.parseChar()):n.matchedPoints=[r.parseByte(),r.parseByte()],(8&i)>0?n.xScale=n.yScale=r.parseF2Dot14():(64&i)>0?(n.xScale=r.parseF2Dot14(),n.yScale=r.parseF2Dot14()):(128&i)>0&&(n.xScale=r.parseF2Dot14(),n.scale01=r.parseF2Dot14(),n.scale10=r.parseF2Dot14(),n.yScale=r.parseF2Dot14()),e.components.push(n),t=!!(32&i)}if(256&i){e.instructionLength=r.parseUShort(),e.instructions=[];for(let t=0;t<e.instructionLength;t+=1)e.instructions.push(r.parseByte())}}}function ve(e,t){let n=[];for(let r=0;r<e.length;r+=1){let i=e[r],a={x:t.xScale*i.x+t.scale01*i.y+t.dx,y:t.scale10*i.x+t.yScale*i.y+t.dy,onCurve:i.onCurve,lastPointOfContour:i.lastPointOfContour};n.push(a)}return n}function ye(e){let t=new u;if(!e)return t;let n=function(e){let t=[],n=[];for(let r=0;r<e.length;r+=1){let i=e[r];n.push(i),i.lastPointOfContour&&(t.push(n),n=[])}return p.argument(n.length===0,`There are still points left in the current contour.`),t}(e);for(let e=0;e<n.length;++e){let r=n[e],i=null,a=r[r.length-1],o=r[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(o.onCurve)t.moveTo(o.x,o.y);else{let e={x:.5*(a.x+o.x),y:.5*(a.y+o.y)};t.moveTo(e.x,e.y)}for(let e=0;e<r.length;++e)if(i=a,a=o,o=r[(e+1)%r.length],a.onCurve)t.lineTo(a.x,a.y);else{let e=i,n=o;i.onCurve||(e={x:.5*(a.x+i.x),y:.5*(a.y+i.y)},t.lineTo(e.x,e.y)),o.onCurve||(n={x:.5*(a.x+o.x),y:.5*(a.y+o.y)}),t.lineTo(e.x,e.y),t.quadraticCurveTo(a.x,a.y,n.x,n.y)}t.closePath()}return t}function be(e,t){if(t.isComposite)for(let n=0;n<t.components.length;n+=1){let r=t.components[n],i=e.get(r.glyphIndex);if(i.getPath(),i.points){let e;if(r.matchedPoints===void 0)e=ve(i.points,r);else{if(r.matchedPoints[0]>t.points.length-1||r.matchedPoints[1]>i.points.length-1)throw Error(`Matched points out of range in `+t.name);let n=t.points[r.matchedPoints[0]],a=i.points[r.matchedPoints[1]],o={xScale:r.xScale,scale01:r.scale01,scale10:r.scale10,yScale:r.yScale,dx:0,dy:0};a=ve([a],o)[0],o.dx=n.x-a.x,o.dy=n.y-a.y,e=ve(i.points,o)}t.points=t.points.concat(e)}}return ye(t.points)}let xe={getPath:ye,parse:function(e,t,n,r){let i=new Te.GlyphSet(r);for(let a=0;a<n.length-1;a+=1){let o=n[a];o===n[a+1]?i.push(a,Te.glyphLoader(r,a)):i.push(a,Te.ttfGlyphLoader(r,a,_e,e,t+o,be))}return i}};function z(e){this.bindConstructorValues(e)}z.prototype.bindConstructorValues=function(e){this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||e.unicode!==void 0?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,`path`,function(e,t){let n=t||new u;return{configurable:!0,get:function(){return typeof n==`function`&&(n=n()),n},set:function(e){n=e}}}(0,e.path))},z.prototype.addUnicode=function(e){this.unicodes.length===0&&(this.unicode=e),this.unicodes.push(e)},z.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},z.prototype.getPath=function(e,t,n,r,i){let a,o;e=e===void 0?0:e,t=t===void 0?0:t,n=n===void 0?72:n,r||={};let s=r.xScale,c=r.yScale;if(r.hinting&&i&&i.hinting&&(o=this.path&&i.hinting.exec(this,n)),o)a=xe.getPath(o).commands,e=Math.round(e),t=Math.round(t),s=c=1;else{a=this.path.commands;let e=1/this.path.unitsPerEm*n;s===void 0&&(s=e),c===void 0&&(c=e)}let l=new u;for(let n=0;n<a.length;n+=1){let r=a[n];r.type===`M`?l.moveTo(e+r.x*s,t+-r.y*c):r.type===`L`?l.lineTo(e+r.x*s,t+-r.y*c):r.type===`Q`?l.quadraticCurveTo(e+r.x1*s,t+-r.y1*c,e+r.x*s,t+-r.y*c):r.type===`C`?l.curveTo(e+r.x1*s,t+-r.y1*c,e+r.x2*s,t+-r.y2*c,e+r.x*s,t+-r.y*c):r.type===`Z`&&l.closePath()}return l},z.prototype.getContours=function(){if(this.points===void 0)return[];let e=[],t=[];for(let n=0;n<this.points.length;n+=1){let r=this.points[n];t.push(r),r.lastPointOfContour&&(e.push(t),t=[])}return p.argument(t.length===0,`There are still points left in the current contour.`),e},z.prototype.getMetrics=function(){let e=this.path.commands,t=[],n=[];for(let r=0;r<e.length;r+=1){let i=e[r];i.type!==`Z`&&(t.push(i.x),n.push(i.y)),i.type!==`Q`&&i.type!==`C`||(t.push(i.x1),n.push(i.y1)),i.type===`C`&&(t.push(i.x2),n.push(i.y2))}let r={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,n),leftSideBearing:this.leftSideBearing};return isFinite(r.xMin)||(r.xMin=0),isFinite(r.xMax)||(r.xMax=this.advanceWidth),isFinite(r.yMin)||(r.yMin=0),isFinite(r.yMax)||(r.yMax=0),r.rightSideBearing=this.advanceWidth-r.leftSideBearing-(r.xMax-r.xMin),r},z.prototype.draw=function(e,t,n,r,i){this.getPath(t,n,r,i).draw(e)},z.prototype.drawPoints=function(e,t,n,r){function i(t,n,r,i){let a=2*Math.PI;e.beginPath();for(let o=0;o<t.length;o+=1)e.moveTo(n+t[o].x*i,r+t[o].y*i),e.arc(n+t[o].x*i,r+t[o].y*i,2,0,a,!1);e.closePath(),e.fill()}t=t===void 0?0:t,n=n===void 0?0:n,r=r===void 0?24:r;let a=1/this.path.unitsPerEm*r,o=[],s=[],c=this.path;for(let e=0;e<c.commands.length;e+=1){let t=c.commands[e];t.x!==void 0&&o.push({x:t.x,y:-t.y}),t.x1!==void 0&&s.push({x:t.x1,y:-t.y1}),t.x2!==void 0&&s.push({x:t.x2,y:-t.y2})}e.fillStyle=`blue`,i(o,t,n,a),e.fillStyle=`red`,i(s,t,n,a)},z.prototype.drawMetrics=function(e,t,n,r){let i;t=t===void 0?0:t,n=n===void 0?0:n,r=r===void 0?24:r,i=1/this.path.unitsPerEm*r,e.lineWidth=1,e.strokeStyle=`black`,he(e,t,-1e4,t,1e4),he(e,-1e4,n,1e4,n);let a=this.xMin||0,o=this.yMin||0,s=this.xMax||0,c=this.yMax||0,l=this.advanceWidth||0;e.strokeStyle=`blue`,he(e,t+a*i,-1e4,t+a*i,1e4),he(e,t+s*i,-1e4,t+s*i,1e4),he(e,-1e4,n+-o*i,1e4,n+-o*i),he(e,-1e4,n+-c*i,1e4,n+-c*i),e.strokeStyle=`green`,he(e,t+l*i,-1e4,t+l*i,1e4)};let Se=z;function Ce(e,t,n){Object.defineProperty(e,t,{get:function(){return e.path,e[n]},set:function(t){e[n]=t},enumerable:!0,configurable:!0})}function we(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(let e=0;e<t.length;e++)this.glyphs[e]=t[e];this.length=t&&t.length||0}we.prototype.get=function(e){return typeof this.glyphs[e]==`function`&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},we.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};let Te={GlyphSet:we,glyphLoader:function(e,t){return new Se({index:t,font:e})},ttfGlyphLoader:function(e,t,n,r,i,a){return function(){let o=new Se({index:t,font:e});return o.path=function(){n(o,r,i);let t=a(e.glyphs,o);return t.unitsPerEm=e.unitsPerEm,t},Ce(o,`xMin`,`_xMin`),Ce(o,`xMax`,`_xMax`),Ce(o,`yMin`,`_yMin`),Ce(o,`yMax`,`_yMax`),o}},cffGlyphLoader:function(e,t,n,r){return function(){let i=new Se({index:t,font:e});return i.path=function(){let t=n(e,i,r);return t.unitsPerEm=e.unitsPerEm,t},i}}};function Ee(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!Ee(e[n],t[n]))return!1;return!0}return!1}function De(e){let t;return t=e.length<1240?107:e.length<33900?1131:32768,t}function B(e,t,n){let r=[],i=[],a=L.getCard16(e,t),o,s;if(a!==0){let n=L.getByte(e,t+2);o=t+(a+1)*n+2;let i=t+3;for(let t=0;t<a+1;t+=1)r.push(L.getOffset(e,i,n)),i+=n;s=o+r[a]}else s=t+2;for(let t=0;t<r.length-1;t+=1){let a=L.getBytes(e,o+r[t],o+r[t+1]);n&&(a=n(a)),i.push(a)}return{objects:i,startOffset:t,endOffset:s}}function Oe(e,t){let n,r,i,a;if(t===28)return n=e.parseByte(),r=e.parseByte(),n<<8|r;if(t===29)return n=e.parseByte(),r=e.parseByte(),i=e.parseByte(),a=e.parseByte(),n<<24|r<<16|i<<8|a;if(t===30)return function(e){let t=``,n=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`.`,`E`,`E-`,null,`-`];for(;;){let r=e.parseByte(),i=r>>4,a=15&r;if(i===15||(t+=n[i],a===15))break;t+=n[a]}return parseFloat(t)}(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return n=e.parseByte(),256*(t-247)+n+108;if(t>=251&&t<=254)return n=e.parseByte(),256*-(t-251)-n-108;throw Error(`Invalid b0 `+t)}function ke(e,t,n){t=t===void 0?0:t;let r=new L.Parser(e,t),i=[],a=[];for(n=n===void 0?e.length:n;r.relativeOffset<n;){let e=r.parseByte();e<=21?(e===12&&(e=1200+r.parseByte()),i.push([e,a]),a=[]):a.push(Oe(r,e))}return function(e){let t={};for(let n=0;n<e.length;n+=1){let r=e[n][0],i=e[n][1],a;if(a=i.length===1?i[0]:i,t.hasOwnProperty(r)&&!isNaN(t[r]))throw Error(`Object `+t+` already has key `+r);t[r]=a}return t}(i)}function Ae(e,t){return t<=390?ce[t]:e[t-391]}function je(e,t,n){let r={},i;for(let a=0;a<t.length;a+=1){let o=t[a];if(Array.isArray(o.type)){let t=[];t.length=o.type.length;for(let r=0;r<o.type.length;r++)i=e[o.op]===void 0?void 0:e[o.op][r],i===void 0&&(i=o.value!==void 0&&o.value[r]!==void 0?o.value[r]:null),o.type[r]===`SID`&&(i=Ae(n,i)),t[r]=i;r[o.name]=t}else i=e[o.op],i===void 0&&(i=o.value===void 0?null:o.value),o.type===`SID`&&(i=Ae(n,i)),r[o.name]=i}return r}let Me=[{name:`version`,op:0,type:`SID`},{name:`notice`,op:1,type:`SID`},{name:`copyright`,op:1200,type:`SID`},{name:`fullName`,op:2,type:`SID`},{name:`familyName`,op:3,type:`SID`},{name:`weight`,op:4,type:`SID`},{name:`isFixedPitch`,op:1201,type:`number`,value:0},{name:`italicAngle`,op:1202,type:`number`,value:0},{name:`underlinePosition`,op:1203,type:`number`,value:-100},{name:`underlineThickness`,op:1204,type:`number`,value:50},{name:`paintType`,op:1205,type:`number`,value:0},{name:`charstringType`,op:1206,type:`number`,value:2},{name:`fontMatrix`,op:1207,type:[`real`,`real`,`real`,`real`,`real`,`real`],value:[.001,0,0,.001,0,0]},{name:`uniqueId`,op:13,type:`number`},{name:`fontBBox`,op:5,type:[`number`,`number`,`number`,`number`],value:[0,0,0,0]},{name:`strokeWidth`,op:1208,type:`number`,value:0},{name:`xuid`,op:14,type:[],value:null},{name:`charset`,op:15,type:`offset`,value:0},{name:`encoding`,op:16,type:`offset`,value:0},{name:`charStrings`,op:17,type:`offset`,value:0},{name:`private`,op:18,type:[`number`,`offset`],value:[0,0]},{name:`ros`,op:1230,type:[`SID`,`SID`,`number`]},{name:`cidFontVersion`,op:1231,type:`number`,value:0},{name:`cidFontRevision`,op:1232,type:`number`,value:0},{name:`cidFontType`,op:1233,type:`number`,value:0},{name:`cidCount`,op:1234,type:`number`,value:8720},{name:`uidBase`,op:1235,type:`number`},{name:`fdArray`,op:1236,type:`offset`},{name:`fdSelect`,op:1237,type:`offset`},{name:`fontName`,op:1238,type:`SID`}],Ne=[{name:`subrs`,op:19,type:`offset`,value:0},{name:`defaultWidthX`,op:20,type:`number`,value:0},{name:`nominalWidthX`,op:21,type:`number`,value:0}];function Pe(e,t){return je(ke(e,0,e.byteLength),Me,t)}function Fe(e,t,n,r){return je(ke(e,t,n),Ne,r)}function Ie(e,t,n,r){let i=[];for(let a=0;a<n.length;a+=1){let o=Pe(new DataView(new Uint8Array(n[a]).buffer),r);o._subrs=[],o._subrsBias=0;let s=o.private[0],c=o.private[1];if(s!==0&&c!==0){let n=Fe(e,c+t,s,r);o._defaultWidthX=n.defaultWidthX,o._nominalWidthX=n.nominalWidthX,n.subrs!==0&&(o._subrs=B(e,c+n.subrs+t).objects,o._subrsBias=De(o._subrs)),o._privateDict=n}i.push(o)}return i}function Le(e,t,n){let r,i,a,o,s=new u,c=[],l,d,f,p,m=0,h=!1,g=!1,_=0,v=0;if(e.isCIDFont){let n=e.tables.cff.topDict._fdSelect[t.index],r=e.tables.cff.topDict._fdArray[n];l=r._subrs,d=r._subrsBias,f=r._defaultWidthX,p=r._nominalWidthX}else l=e.tables.cff.topDict._subrs,d=e.tables.cff.topDict._subrsBias,f=e.tables.cff.topDict._defaultWidthX,p=e.tables.cff.topDict._nominalWidthX;let y=f;function b(e,t){g&&s.closePath(),s.moveTo(e,t),g=!0}function x(){let e;e=c.length%2!=0,e&&!h&&(y=c.shift()+p),m+=c.length>>1,c.length=0,h=!0}return function n(u){let f,S,C,w,T,E,D,O,k,A,j,M,N=0;for(;N<u.length;){let P=u[N];switch(N+=1,P){case 1:case 3:case 18:case 23:x();break;case 4:c.length>1&&!h&&(y=c.shift()+p,h=!0),v+=c.pop(),b(_,v);break;case 5:for(;c.length>0;)_+=c.shift(),v+=c.shift(),s.lineTo(_,v);break;case 6:for(;c.length>0&&(_+=c.shift(),s.lineTo(_,v),c.length!==0);)v+=c.shift(),s.lineTo(_,v);break;case 7:for(;c.length>0&&(v+=c.shift(),s.lineTo(_,v),c.length!==0);)_+=c.shift(),s.lineTo(_,v);break;case 8:for(;c.length>0;)r=_+c.shift(),i=v+c.shift(),a=r+c.shift(),o=i+c.shift(),_=a+c.shift(),v=o+c.shift(),s.curveTo(r,i,a,o,_,v);break;case 10:T=c.pop()+d,E=l[T],E&&n(E);break;case 11:return;case 12:switch(P=u[N],N+=1,P){case 35:r=_+c.shift(),i=v+c.shift(),a=r+c.shift(),o=i+c.shift(),D=a+c.shift(),O=o+c.shift(),k=D+c.shift(),A=O+c.shift(),j=k+c.shift(),M=A+c.shift(),_=j+c.shift(),v=M+c.shift(),c.shift(),s.curveTo(r,i,a,o,D,O),s.curveTo(k,A,j,M,_,v);break;case 34:r=_+c.shift(),i=v,a=r+c.shift(),o=i+c.shift(),D=a+c.shift(),O=o,k=D+c.shift(),A=o,j=k+c.shift(),M=v,_=j+c.shift(),s.curveTo(r,i,a,o,D,O),s.curveTo(k,A,j,M,_,v);break;case 36:r=_+c.shift(),i=v+c.shift(),a=r+c.shift(),o=i+c.shift(),D=a+c.shift(),O=o,k=D+c.shift(),A=o,j=k+c.shift(),M=A+c.shift(),_=j+c.shift(),s.curveTo(r,i,a,o,D,O),s.curveTo(k,A,j,M,_,v);break;case 37:r=_+c.shift(),i=v+c.shift(),a=r+c.shift(),o=i+c.shift(),D=a+c.shift(),O=o+c.shift(),k=D+c.shift(),A=O+c.shift(),j=k+c.shift(),M=A+c.shift(),Math.abs(j-_)>Math.abs(M-v)?_=j+c.shift():v=M+c.shift(),s.curveTo(r,i,a,o,D,O),s.curveTo(k,A,j,M,_,v);break;default:console.log(`Glyph `+t.index+`: unknown operator 1200`+P),c.length=0}break;case 14:c.length>0&&!h&&(y=c.shift()+p,h=!0),g&&=(s.closePath(),!1);break;case 19:case 20:x(),N+=m+7>>3;break;case 21:c.length>2&&!h&&(y=c.shift()+p,h=!0),v+=c.pop(),_+=c.pop(),b(_,v);break;case 22:c.length>1&&!h&&(y=c.shift()+p,h=!0),_+=c.pop(),b(_,v);break;case 24:for(;c.length>2;)r=_+c.shift(),i=v+c.shift(),a=r+c.shift(),o=i+c.shift(),_=a+c.shift(),v=o+c.shift(),s.curveTo(r,i,a,o,_,v);_+=c.shift(),v+=c.shift(),s.lineTo(_,v);break;case 25:for(;c.length>6;)_+=c.shift(),v+=c.shift(),s.lineTo(_,v);r=_+c.shift(),i=v+c.shift(),a=r+c.shift(),o=i+c.shift(),_=a+c.shift(),v=o+c.shift(),s.curveTo(r,i,a,o,_,v);break;case 26:for(c.length%2&&(_+=c.shift());c.length>0;)r=_,i=v+c.shift(),a=r+c.shift(),o=i+c.shift(),_=a,v=o+c.shift(),s.curveTo(r,i,a,o,_,v);break;case 27:for(c.length%2&&(v+=c.shift());c.length>0;)r=_+c.shift(),i=v,a=r+c.shift(),o=i+c.shift(),_=a+c.shift(),v=o,s.curveTo(r,i,a,o,_,v);break;case 28:f=u[N],S=u[N+1],c.push((f<<24|S<<16)>>16),N+=2;break;case 29:T=c.pop()+e.gsubrsBias,E=e.gsubrs[T],E&&n(E);break;case 30:for(;c.length>0&&(r=_,i=v+c.shift(),a=r+c.shift(),o=i+c.shift(),_=a+c.shift(),v=o+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,_,v),c.length!==0);)r=_+c.shift(),i=v,a=r+c.shift(),o=i+c.shift(),v=o+c.shift(),_=a+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,_,v);break;case 31:for(;c.length>0&&(r=_+c.shift(),i=v,a=r+c.shift(),o=i+c.shift(),v=o+c.shift(),_=a+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,_,v),c.length!==0);)r=_,i=v+c.shift(),a=r+c.shift(),o=i+c.shift(),_=a+c.shift(),v=o+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,_,v);break;default:P<32?console.log(`Glyph `+t.index+`: unknown operator `+P):P<247?c.push(P-139):P<251?(f=u[N],N+=1,c.push(256*(P-247)+f+108)):P<255?(f=u[N],N+=1,c.push(256*-(P-251)-f-108)):(f=u[N],S=u[N+1],C=u[N+2],w=u[N+3],N+=4,c.push((f<<24|S<<16|C<<8|w)/65536))}}}(n),t.advanceWidth=y,s}function Re(e,t){let n,r=ce.indexOf(e);return r>=0&&(n=r),r=t.indexOf(e),r>=0?n=r+ce.length:(n=ce.length+t.length,t.push(e)),n}function ze(e,t,n){let r={};for(let i=0;i<e.length;i+=1){let a=e[i],o=t[a.name];o===void 0||Ee(o,a.value)||(a.type===`SID`&&(o=Re(o,n)),r[a.op]={name:a.name,type:a.type,value:o})}return r}function Be(e,t){let n=new F.Record(`Top DICT`,[{name:`dict`,type:`DICT`,value:{}}]);return n.dict=ze(Me,e,t),n}function Ve(e){let t=new F.Record(`Top DICT INDEX`,[{name:`topDicts`,type:`INDEX`,value:[]}]);return t.topDicts=[{name:`topDict_0`,type:`TABLE`,value:e}],t}function He(e){let t=[],n=e.path;t.push({name:`width`,type:`NUMBER`,value:e.advanceWidth});let r=0,i=0;for(let e=0;e<n.commands.length;e+=1){let a,o,s=n.commands[e];if(s.type===`Q`){let e=1/3,t=2/3;s={type:`C`,x:s.x,y:s.y,x1:e*r+t*s.x1,y1:e*i+t*s.y1,x2:e*s.x+t*s.x1,y2:e*s.y+t*s.y1}}if(s.type===`M`)a=Math.round(s.x-r),o=Math.round(s.y-i),t.push({name:`dx`,type:`NUMBER`,value:a}),t.push({name:`dy`,type:`NUMBER`,value:o}),t.push({name:`rmoveto`,type:`OP`,value:21}),r=Math.round(s.x),i=Math.round(s.y);else if(s.type===`L`)a=Math.round(s.x-r),o=Math.round(s.y-i),t.push({name:`dx`,type:`NUMBER`,value:a}),t.push({name:`dy`,type:`NUMBER`,value:o}),t.push({name:`rlineto`,type:`OP`,value:5}),r=Math.round(s.x),i=Math.round(s.y);else if(s.type===`C`){let e=Math.round(s.x1-r),n=Math.round(s.y1-i),c=Math.round(s.x2-s.x1),l=Math.round(s.y2-s.y1);a=Math.round(s.x-s.x2),o=Math.round(s.y-s.y2),t.push({name:`dx1`,type:`NUMBER`,value:e}),t.push({name:`dy1`,type:`NUMBER`,value:n}),t.push({name:`dx2`,type:`NUMBER`,value:c}),t.push({name:`dy2`,type:`NUMBER`,value:l}),t.push({name:`dx`,type:`NUMBER`,value:a}),t.push({name:`dy`,type:`NUMBER`,value:o}),t.push({name:`rrcurveto`,type:`OP`,value:8}),r=Math.round(s.x),i=Math.round(s.y)}}return t.push({name:`endchar`,type:`OP`,value:14}),t}let Ue={parse:function(e,t,n){n.tables.cff={};let r=B(e,B(e,function(e,t){let n={};return n.formatMajor=L.getCard8(e,t),n.formatMinor=L.getCard8(e,t+1),n.size=L.getCard8(e,t+2),n.offsetSize=L.getCard8(e,t+3),n.startOffset=t,n.endOffset=t+4,n}(e,t).endOffset,L.bytesToString).endOffset),i=B(e,r.endOffset,L.bytesToString);n.gsubrs=B(e,i.endOffset).objects,n.gsubrsBias=De(n.gsubrs);let a=Ie(e,t,r.objects,i.objects);if(a.length!==1)throw Error(`CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = `+a.length);let o=a[0];if(n.tables.cff.topDict=o,o._privateDict&&(n.defaultWidthX=o._privateDict.defaultWidthX,n.nominalWidthX=o._privateDict.nominalWidthX),o.ros[0]!==void 0&&o.ros[1]!==void 0&&(n.isCIDFont=!0),n.isCIDFont){let r=o.fdArray,a=o.fdSelect;if(r===0||a===0)throw Error(`Font is marked as a CID font, but FDArray and/or FDSelect information is missing`);r+=t;let s=Ie(e,t,B(e,r).objects,i.objects);o._fdArray=s,a+=t,o._fdSelect=function(e,t,n,r){let i=[],a,o=new L.Parser(e,t),s=o.parseCard8();if(s===0)for(let e=0;e<n;e++){if(a=o.parseCard8(),a>=r)throw Error(`CFF table CID Font FDSelect has bad FD index value `+a+` (FD count `+r+`)`);i.push(a)}else{if(s!==3)throw Error(`CFF Table CID Font FDSelect table has unsupported format `+s);{let e=o.parseCard16(),t,s=o.parseCard16();if(s!==0)throw Error(`CFF Table CID Font FDSelect format 3 range has bad initial GID `+s);for(let c=0;c<e;c++){if(a=o.parseCard8(),t=o.parseCard16(),a>=r)throw Error(`CFF table CID Font FDSelect has bad FD index value `+a+` (FD count `+r+`)`);if(t>n)throw Error(`CFF Table CID Font FDSelect format 3 range has bad GID `+t);for(;s<t;s++)i.push(a);s=t}if(t!==n)throw Error(`CFF Table CID Font FDSelect format 3 range has bad final GID `+t)}}return i}(e,a,n.numGlyphs,s.length)}let s=t+o.private[1],c=Fe(e,s,o.private[0],i.objects);n.defaultWidthX=c.defaultWidthX,n.nominalWidthX=c.nominalWidthX,c.subrs===0?(n.subrs=[],n.subrsBias=0):(n.subrs=B(e,s+c.subrs).objects,n.subrsBias=De(n.subrs));let l=B(e,t+o.charStrings);n.nGlyphs=l.objects.length;let u=function(e,t,n,r){let i,a,o=new L.Parser(e,t);--n;let s=[`.notdef`],c=o.parseCard8();if(c===0)for(let e=0;e<n;e+=1)i=o.parseSID(),s.push(Ae(r,i));else if(c===1)for(;s.length<=n;){i=o.parseSID(),a=o.parseCard8();for(let e=0;e<=a;e+=1)s.push(Ae(r,i)),i+=1}else{if(c!==2)throw Error(`Unknown charset format `+c);for(;s.length<=n;){i=o.parseSID(),a=o.parseCard16();for(let e=0;e<=a;e+=1)s.push(Ae(r,i)),i+=1}}return s}(e,t+o.charset,n.nGlyphs,i.objects);o.encoding===0?n.cffEncoding=new pe(le,u):o.encoding===1?n.cffEncoding=new pe(ue,u):n.cffEncoding=function(e,t,n){let r,i={},a=new L.Parser(e,t),o=a.parseCard8();if(o===0){let e=a.parseCard8();for(let t=0;t<e;t+=1)r=a.parseCard8(),i[r]=t}else{if(o!==1)throw Error(`Unknown encoding format `+o);{let e=a.parseCard8();r=1;for(let t=0;t<e;t+=1){let e=a.parseCard8(),t=a.parseCard8();for(let n=e;n<=e+t;n+=1)i[n]=r,r+=1}}}return new pe(i,n)}(e,t+o.encoding,u),n.encoding=n.encoding||n.cffEncoding,n.glyphs=new Te.GlyphSet(n);for(let e=0;e<n.nGlyphs;e+=1){let t=l.objects[e];n.glyphs.push(e,Te.cffGlyphLoader(n,e,Le,t))}},make:function(e,t){let n=new F.Table(`CFF `,[{name:`header`,type:`RECORD`},{name:`nameIndex`,type:`RECORD`},{name:`topDictIndex`,type:`RECORD`},{name:`stringIndex`,type:`RECORD`},{name:`globalSubrIndex`,type:`RECORD`},{name:`charsets`,type:`RECORD`},{name:`charStringsIndex`,type:`RECORD`},{name:`privateDict`,type:`RECORD`}]),r=1/t.unitsPerEm,i={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[r,0,0,r,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],o;for(let t=1;t<e.length;t+=1)o=e.get(t),a.push(o.name);let s=[];n.header=new F.Record(`Header`,[{name:`major`,type:`Card8`,value:1},{name:`minor`,type:`Card8`,value:0},{name:`hdrSize`,type:`Card8`,value:4},{name:`major`,type:`Card8`,value:1}]),n.nameIndex=function(e){let t=new F.Record(`Name INDEX`,[{name:`names`,type:`INDEX`,value:[]}]);t.names=[];for(let n=0;n<e.length;n+=1)t.names.push({name:`name_`+n,type:`NAME`,value:e[n]});return t}([t.postScriptName]);let c=Be(i,s);return n.topDictIndex=Ve(c),n.globalSubrIndex=new F.Record(`Global Subr INDEX`,[{name:`subrs`,type:`INDEX`,value:[]}]),n.charsets=function(e,t){let n=new F.Record(`Charsets`,[{name:`format`,type:`Card8`,value:0}]);for(let r=0;r<e.length;r+=1){let i=Re(e[r],t);n.fields.push({name:`glyph_`+r,type:`SID`,value:i})}return n}(a,s),n.charStringsIndex=function(e){let t=new F.Record(`CharStrings INDEX`,[{name:`charStrings`,type:`INDEX`,value:[]}]);for(let n=0;n<e.length;n+=1){let r=e.get(n),i=He(r);t.charStrings.push({name:r.name,type:`CHARSTRING`,value:i})}return t}(e),n.privateDict=function(e,t){let n=new F.Record(`Private DICT`,[{name:`dict`,type:`DICT`,value:{}}]);return n.dict=ze(Ne,{},t),n}(0,s),n.stringIndex=function(e){let t=new F.Record(`String INDEX`,[{name:`strings`,type:`INDEX`,value:[]}]);t.strings=[];for(let n=0;n<e.length;n+=1)t.strings.push({name:`string_`+n,type:`STRING`,value:e[n]});return t}(s),i.charset=n.header.sizeOf()+n.nameIndex.sizeOf()+n.topDictIndex.sizeOf()+n.stringIndex.sizeOf()+n.globalSubrIndex.sizeOf(),i.encoding=0,i.charStrings=i.charset+n.charsets.sizeOf(),i.private[1]=i.charStrings+n.charStringsIndex.sizeOf(),c=Be(i,s),n.topDictIndex=Ve(c),n}},We={parse:function(e,t){let n={},r=new L.Parser(e,t);return n.version=r.parseVersion(),n.fontRevision=Math.round(1e3*r.parseFixed())/1e3,n.checkSumAdjustment=r.parseULong(),n.magicNumber=r.parseULong(),p.argument(n.magicNumber===1594834165,`Font header has wrong magic number.`),n.flags=r.parseUShort(),n.unitsPerEm=r.parseUShort(),n.created=r.parseLongDateTime(),n.modified=r.parseLongDateTime(),n.xMin=r.parseShort(),n.yMin=r.parseShort(),n.xMax=r.parseShort(),n.yMax=r.parseShort(),n.macStyle=r.parseUShort(),n.lowestRecPPEM=r.parseUShort(),n.fontDirectionHint=r.parseShort(),n.indexToLocFormat=r.parseShort(),n.glyphDataFormat=r.parseShort(),n},make:function(e){let t=Math.round(new Date().getTime()/1e3)+2082844800,n=t;return e.createdTimestamp&&(n=e.createdTimestamp+2082844800),new F.Table(`head`,[{name:`version`,type:`FIXED`,value:65536},{name:`fontRevision`,type:`FIXED`,value:65536},{name:`checkSumAdjustment`,type:`ULONG`,value:0},{name:`magicNumber`,type:`ULONG`,value:1594834165},{name:`flags`,type:`USHORT`,value:0},{name:`unitsPerEm`,type:`USHORT`,value:1e3},{name:`created`,type:`LONGDATETIME`,value:n},{name:`modified`,type:`LONGDATETIME`,value:t},{name:`xMin`,type:`SHORT`,value:0},{name:`yMin`,type:`SHORT`,value:0},{name:`xMax`,type:`SHORT`,value:0},{name:`yMax`,type:`SHORT`,value:0},{name:`macStyle`,type:`USHORT`,value:0},{name:`lowestRecPPEM`,type:`USHORT`,value:0},{name:`fontDirectionHint`,type:`SHORT`,value:2},{name:`indexToLocFormat`,type:`SHORT`,value:0},{name:`glyphDataFormat`,type:`SHORT`,value:0}],e)}},Ge={parse:function(e,t){let n={},r=new L.Parser(e,t);return n.version=r.parseVersion(),n.ascender=r.parseShort(),n.descender=r.parseShort(),n.lineGap=r.parseShort(),n.advanceWidthMax=r.parseUShort(),n.minLeftSideBearing=r.parseShort(),n.minRightSideBearing=r.parseShort(),n.xMaxExtent=r.parseShort(),n.caretSlopeRise=r.parseShort(),n.caretSlopeRun=r.parseShort(),n.caretOffset=r.parseShort(),r.relativeOffset+=8,n.metricDataFormat=r.parseShort(),n.numberOfHMetrics=r.parseUShort(),n},make:function(e){return new F.Table(`hhea`,[{name:`version`,type:`FIXED`,value:65536},{name:`ascender`,type:`FWORD`,value:0},{name:`descender`,type:`FWORD`,value:0},{name:`lineGap`,type:`FWORD`,value:0},{name:`advanceWidthMax`,type:`UFWORD`,value:0},{name:`minLeftSideBearing`,type:`FWORD`,value:0},{name:`minRightSideBearing`,type:`FWORD`,value:0},{name:`xMaxExtent`,type:`FWORD`,value:0},{name:`caretSlopeRise`,type:`SHORT`,value:1},{name:`caretSlopeRun`,type:`SHORT`,value:0},{name:`caretOffset`,type:`SHORT`,value:0},{name:`reserved1`,type:`SHORT`,value:0},{name:`reserved2`,type:`SHORT`,value:0},{name:`reserved3`,type:`SHORT`,value:0},{name:`reserved4`,type:`SHORT`,value:0},{name:`metricDataFormat`,type:`SHORT`,value:0},{name:`numberOfHMetrics`,type:`USHORT`,value:0}],e)}},Ke={parse:function(e,t,n,r,i){let a,o,s=new L.Parser(e,t);for(let e=0;e<r;e+=1){e<n&&(a=s.parseUShort(),o=s.parseShort());let t=i.get(e);t.advanceWidth=a,t.leftSideBearing=o}},make:function(e){let t=new F.Table(`hmtx`,[]);for(let n=0;n<e.length;n+=1){let r=e.get(n),i=r.advanceWidth||0,a=r.leftSideBearing||0;t.fields.push({name:`advanceWidth_`+n,type:`USHORT`,value:i}),t.fields.push({name:`leftSideBearing_`+n,type:`SHORT`,value:a})}return t}},qe={make:function(e){let t=new F.Table(`ltag`,[{name:`version`,type:`ULONG`,value:1},{name:`flags`,type:`ULONG`,value:0},{name:`numTags`,type:`ULONG`,value:e.length}]),n=``,r=12+4*e.length;for(let i=0;i<e.length;++i){let a=n.indexOf(e[i]);a<0&&(a=n.length,n+=e[i]),t.fields.push({name:`offset `+i,type:`USHORT`,value:r+a}),t.fields.push({name:`length `+i,type:`USHORT`,value:e[i].length})}return t.fields.push({name:`stringPool`,type:`CHARARRAY`,value:n}),t},parse:function(e,t){let n=new L.Parser(e,t),r=n.parseULong();p.argument(r===1,`Unsupported ltag table version.`),n.skip(`uLong`,1);let i=n.parseULong(),a=[];for(let r=0;r<i;r++){let r=``,i=t+n.parseUShort(),o=n.parseUShort();for(let t=i;t<i+o;++t)r+=String.fromCharCode(e.getInt8(t));a.push(r)}return a}},Je={parse:function(e,t){let n={},r=new L.Parser(e,t);return n.version=r.parseVersion(),n.numGlyphs=r.parseUShort(),n.version===1&&(n.maxPoints=r.parseUShort(),n.maxContours=r.parseUShort(),n.maxCompositePoints=r.parseUShort(),n.maxCompositeContours=r.parseUShort(),n.maxZones=r.parseUShort(),n.maxTwilightPoints=r.parseUShort(),n.maxStorage=r.parseUShort(),n.maxFunctionDefs=r.parseUShort(),n.maxInstructionDefs=r.parseUShort(),n.maxStackElements=r.parseUShort(),n.maxSizeOfInstructions=r.parseUShort(),n.maxComponentElements=r.parseUShort(),n.maxComponentDepth=r.parseUShort()),n},make:function(e){return new F.Table(`maxp`,[{name:`version`,type:`FIXED`,value:20480},{name:`numGlyphs`,type:`USHORT`,value:e}])}},Ye=[`copyright`,`fontFamily`,`fontSubfamily`,`uniqueID`,`fullName`,`version`,`postScriptName`,`trademark`,`manufacturer`,`designer`,`description`,`manufacturerURL`,`designerURL`,`license`,`licenseURL`,`reserved`,`preferredFamily`,`preferredSubfamily`,`compatibleFullName`,`sampleText`,`postScriptFindFontName`,`wwsFamily`,`wwsSubfamily`],Xe={0:`en`,1:`fr`,2:`de`,3:`it`,4:`nl`,5:`sv`,6:`es`,7:`da`,8:`pt`,9:`no`,10:`he`,11:`ja`,12:`ar`,13:`fi`,14:`el`,15:`is`,16:`mt`,17:`tr`,18:`hr`,19:`zh-Hant`,20:`ur`,21:`hi`,22:`th`,23:`ko`,24:`lt`,25:`pl`,26:`hu`,27:`es`,28:`lv`,29:`se`,30:`fo`,31:`fa`,32:`ru`,33:`zh`,34:`nl-BE`,35:`ga`,36:`sq`,37:`ro`,38:`cz`,39:`sk`,40:`si`,41:`yi`,42:`sr`,43:`mk`,44:`bg`,45:`uk`,46:`be`,47:`uz`,48:`kk`,49:`az-Cyrl`,50:`az-Arab`,51:`hy`,52:`ka`,53:`mo`,54:`ky`,55:`tg`,56:`tk`,57:`mn-CN`,58:`mn`,59:`ps`,60:`ks`,61:`ku`,62:`sd`,63:`bo`,64:`ne`,65:`sa`,66:`mr`,67:`bn`,68:`as`,69:`gu`,70:`pa`,71:`or`,72:`ml`,73:`kn`,74:`ta`,75:`te`,76:`si`,77:`my`,78:`km`,79:`lo`,80:`vi`,81:`id`,82:`tl`,83:`ms`,84:`ms-Arab`,85:`am`,86:`ti`,87:`om`,88:`so`,89:`sw`,90:`rw`,91:`rn`,92:`ny`,93:`mg`,94:`eo`,128:`cy`,129:`eu`,130:`ca`,131:`la`,132:`qu`,133:`gn`,134:`ay`,135:`tt`,136:`ug`,137:`dz`,138:`jv`,139:`su`,140:`gl`,141:`af`,142:`br`,143:`iu`,144:`gd`,145:`gv`,146:`ga`,147:`to`,148:`el-polyton`,149:`kl`,150:`az`,151:`nn`},Ze={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Qe={1078:`af`,1052:`sq`,1156:`gsw`,1118:`am`,5121:`ar-DZ`,15361:`ar-BH`,3073:`ar`,2049:`ar-IQ`,11265:`ar-JO`,13313:`ar-KW`,12289:`ar-LB`,4097:`ar-LY`,6145:`ary`,8193:`ar-OM`,16385:`ar-QA`,1025:`ar-SA`,10241:`ar-SY`,7169:`aeb`,14337:`ar-AE`,9217:`ar-YE`,1067:`hy`,1101:`as`,2092:`az-Cyrl`,1068:`az`,1133:`ba`,1069:`eu`,1059:`be`,2117:`bn`,1093:`bn-IN`,8218:`bs-Cyrl`,5146:`bs`,1150:`br`,1026:`bg`,1027:`ca`,3076:`zh-HK`,5124:`zh-MO`,2052:`zh`,4100:`zh-SG`,1028:`zh-TW`,1155:`co`,1050:`hr`,4122:`hr-BA`,1029:`cs`,1030:`da`,1164:`prs`,1125:`dv`,2067:`nl-BE`,1043:`nl`,3081:`en-AU`,10249:`en-BZ`,4105:`en-CA`,9225:`en-029`,16393:`en-IN`,6153:`en-IE`,8201:`en-JM`,17417:`en-MY`,5129:`en-NZ`,13321:`en-PH`,18441:`en-SG`,7177:`en-ZA`,11273:`en-TT`,2057:`en-GB`,1033:`en`,12297:`en-ZW`,1061:`et`,1080:`fo`,1124:`fil`,1035:`fi`,2060:`fr-BE`,3084:`fr-CA`,1036:`fr`,5132:`fr-LU`,6156:`fr-MC`,4108:`fr-CH`,1122:`fy`,1110:`gl`,1079:`ka`,3079:`de-AT`,1031:`de`,5127:`de-LI`,4103:`de-LU`,2055:`de-CH`,1032:`el`,1135:`kl`,1095:`gu`,1128:`ha`,1037:`he`,1081:`hi`,1038:`hu`,1039:`is`,1136:`ig`,1057:`id`,1117:`iu`,2141:`iu-Latn`,2108:`ga`,1076:`xh`,1077:`zu`,1040:`it`,2064:`it-CH`,1041:`ja`,1099:`kn`,1087:`kk`,1107:`km`,1158:`quc`,1159:`rw`,1089:`sw`,1111:`kok`,1042:`ko`,1088:`ky`,1108:`lo`,1062:`lv`,1063:`lt`,2094:`dsb`,1134:`lb`,1071:`mk`,2110:`ms-BN`,1086:`ms`,1100:`ml`,1082:`mt`,1153:`mi`,1146:`arn`,1102:`mr`,1148:`moh`,1104:`mn`,2128:`mn-CN`,1121:`ne`,1044:`nb`,2068:`nn`,1154:`oc`,1096:`or`,1123:`ps`,1045:`pl`,1046:`pt`,2070:`pt-PT`,1094:`pa`,1131:`qu-BO`,2155:`qu-EC`,3179:`qu`,1048:`ro`,1047:`rm`,1049:`ru`,9275:`smn`,4155:`smj-NO`,5179:`smj`,3131:`se-FI`,1083:`se`,2107:`se-SE`,8251:`sms`,6203:`sma-NO`,7227:`sms`,1103:`sa`,7194:`sr-Cyrl-BA`,3098:`sr`,6170:`sr-Latn-BA`,2074:`sr-Latn`,1132:`nso`,1074:`tn`,1115:`si`,1051:`sk`,1060:`sl`,11274:`es-AR`,16394:`es-BO`,13322:`es-CL`,9226:`es-CO`,5130:`es-CR`,7178:`es-DO`,12298:`es-EC`,17418:`es-SV`,4106:`es-GT`,18442:`es-HN`,2058:`es-MX`,19466:`es-NI`,6154:`es-PA`,15370:`es-PY`,10250:`es-PE`,20490:`es-PR`,3082:`es`,1034:`es`,21514:`es-US`,14346:`es-UY`,8202:`es-VE`,2077:`sv-FI`,1053:`sv`,1114:`syr`,1064:`tg`,2143:`tzm`,1097:`ta`,1092:`tt`,1098:`te`,1054:`th`,1105:`bo`,1055:`tr`,1090:`tk`,1152:`ug`,1058:`uk`,1070:`hsb`,1056:`ur`,2115:`uz-Cyrl`,1091:`uz`,1066:`vi`,1106:`cy`,1160:`wo`,1157:`sah`,1144:`ii`,1130:`yo`};function $e(e,t,n){switch(e){case 0:if(t===65535)return`und`;if(n)return n[t];break;case 1:return Xe[t];case 3:return Qe[t]}}let et=`utf-16`,tt={0:`macintosh`,1:`x-mac-japanese`,2:`x-mac-chinesetrad`,3:`x-mac-korean`,6:`x-mac-greek`,7:`x-mac-cyrillic`,9:`x-mac-devanagai`,10:`x-mac-gurmukhi`,11:`x-mac-gujarati`,12:`x-mac-oriya`,13:`x-mac-bengali`,14:`x-mac-tamil`,15:`x-mac-telugu`,16:`x-mac-kannada`,17:`x-mac-malayalam`,18:`x-mac-sinhalese`,19:`x-mac-burmese`,20:`x-mac-khmer`,21:`x-mac-thai`,22:`x-mac-lao`,23:`x-mac-georgian`,24:`x-mac-armenian`,25:`x-mac-chinesesimp`,26:`x-mac-tibetan`,27:`x-mac-mongolian`,28:`x-mac-ethiopic`,29:`x-mac-ce`,30:`x-mac-vietnamese`,31:`x-mac-extarabic`},nt={15:`x-mac-icelandic`,17:`x-mac-turkish`,18:`x-mac-croatian`,24:`x-mac-ce`,25:`x-mac-ce`,26:`x-mac-ce`,27:`x-mac-ce`,28:`x-mac-ce`,30:`x-mac-icelandic`,37:`x-mac-romanian`,38:`x-mac-ce`,39:`x-mac-ce`,40:`x-mac-ce`,143:`x-mac-inuit`,146:`x-mac-gaelic`};function rt(e,t,n){switch(e){case 0:return et;case 1:return nt[n]||tt[t];case 3:if(t===1||t===10)return et}}function it(e){let t={};for(let n in e)t[e[n]]=parseInt(n);return t}function at(e,t,n,r,i,a){return new F.Record(`NameRecord`,[{name:`platformID`,type:`USHORT`,value:e},{name:`encodingID`,type:`USHORT`,value:t},{name:`languageID`,type:`USHORT`,value:n},{name:`nameID`,type:`USHORT`,value:r},{name:`length`,type:`USHORT`,value:i},{name:`offset`,type:`USHORT`,value:a}])}function ot(e,t){let n=function(e,t){let n=e.length,r=t.length-n+1;e:for(let i=0;i<r;i++)for(;i<r;i++){for(let r=0;r<n;r++)if(t[i+r]!==e[r])continue e;return i}return-1}(e,t);if(n<0){n=t.length;let r=0,i=e.length;for(;r<i;++r)t.push(e[r])}return n}let st={parse:function(e,t,n){let r={},i=new L.Parser(e,t),a=i.parseUShort(),o=i.parseUShort(),s=i.offset+i.parseUShort();for(let t=0;t<o;t++){let t=i.parseUShort(),a=i.parseUShort(),o=i.parseUShort(),c=i.parseUShort(),l=Ye[c]||c,u=i.parseUShort(),d=i.parseUShort(),f=$e(t,o,n),p=rt(t,a,o);if(p!==void 0&&f!==void 0){let t;if(t=p===et?h.UTF16(e,s+d,u):h.MACSTRING(e,s+d,u,p),t){let e=r[l];e===void 0&&(e=r[l]={}),e[f]=t}}}return a===1&&i.parseUShort(),r},make:function(e,t){let n,r=[],i={},a=it(Ye);for(let t in e){let o=a[t];if(o===void 0&&(o=t),n=parseInt(o),isNaN(n))throw Error(`Name table entry "`+t+`" does not exist, see nameTableNames for complete list.`);i[n]=e[t],r.push(n)}let o=it(Xe),s=it(Qe),c=[],l=[];for(let e=0;e<r.length;e++){n=r[e];let a=i[n];for(let e in a){let r=a[e],i=1,u=o[e],d=Ze[u],f=rt(i,d,u),p=g.MACSTRING(r,f);p===void 0&&(i=0,u=t.indexOf(e),u<0&&(u=t.length,t.push(e)),d=4,p=g.UTF16(r));let m=ot(p,l);c.push(at(i,d,u,n,p.length,m));let h=s[e];if(h!==void 0){let e=g.UTF16(r),t=ot(e,l);c.push(at(3,1,h,n,e.length,t))}}}c.sort((function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID}));let u=new F.Table(`name`,[{name:`format`,type:`USHORT`,value:0},{name:`count`,type:`USHORT`,value:c.length},{name:`stringOffset`,type:`USHORT`,value:6+12*c.length}]);for(let e=0;e<c.length;e++)u.fields.push({name:`record_`+e,type:`RECORD`,value:c[e]});return u.fields.push({name:`strings`,type:`LITERAL`,value:l}),u}},ct=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}],lt={parse:function(e,t){let n={},r=new L.Parser(e,t);n.version=r.parseUShort(),n.xAvgCharWidth=r.parseShort(),n.usWeightClass=r.parseUShort(),n.usWidthClass=r.parseUShort(),n.fsType=r.parseUShort(),n.ySubscriptXSize=r.parseShort(),n.ySubscriptYSize=r.parseShort(),n.ySubscriptXOffset=r.parseShort(),n.ySubscriptYOffset=r.parseShort(),n.ySuperscriptXSize=r.parseShort(),n.ySuperscriptYSize=r.parseShort(),n.ySuperscriptXOffset=r.parseShort(),n.ySuperscriptYOffset=r.parseShort(),n.yStrikeoutSize=r.parseShort(),n.yStrikeoutPosition=r.parseShort(),n.sFamilyClass=r.parseShort(),n.panose=[];for(let e=0;e<10;e++)n.panose[e]=r.parseByte();return n.ulUnicodeRange1=r.parseULong(),n.ulUnicodeRange2=r.parseULong(),n.ulUnicodeRange3=r.parseULong(),n.ulUnicodeRange4=r.parseULong(),n.achVendID=String.fromCharCode(r.parseByte(),r.parseByte(),r.parseByte(),r.parseByte()),n.fsSelection=r.parseUShort(),n.usFirstCharIndex=r.parseUShort(),n.usLastCharIndex=r.parseUShort(),n.sTypoAscender=r.parseShort(),n.sTypoDescender=r.parseShort(),n.sTypoLineGap=r.parseShort(),n.usWinAscent=r.parseUShort(),n.usWinDescent=r.parseUShort(),n.version>=1&&(n.ulCodePageRange1=r.parseULong(),n.ulCodePageRange2=r.parseULong()),n.version>=2&&(n.sxHeight=r.parseShort(),n.sCapHeight=r.parseShort(),n.usDefaultChar=r.parseUShort(),n.usBreakChar=r.parseUShort(),n.usMaxContent=r.parseUShort()),n},make:function(e){return new F.Table(`OS/2`,[{name:`version`,type:`USHORT`,value:3},{name:`xAvgCharWidth`,type:`SHORT`,value:0},{name:`usWeightClass`,type:`USHORT`,value:0},{name:`usWidthClass`,type:`USHORT`,value:0},{name:`fsType`,type:`USHORT`,value:0},{name:`ySubscriptXSize`,type:`SHORT`,value:650},{name:`ySubscriptYSize`,type:`SHORT`,value:699},{name:`ySubscriptXOffset`,type:`SHORT`,value:0},{name:`ySubscriptYOffset`,type:`SHORT`,value:140},{name:`ySuperscriptXSize`,type:`SHORT`,value:650},{name:`ySuperscriptYSize`,type:`SHORT`,value:699},{name:`ySuperscriptXOffset`,type:`SHORT`,value:0},{name:`ySuperscriptYOffset`,type:`SHORT`,value:479},{name:`yStrikeoutSize`,type:`SHORT`,value:49},{name:`yStrikeoutPosition`,type:`SHORT`,value:258},{name:`sFamilyClass`,type:`SHORT`,value:0},{name:`bFamilyType`,type:`BYTE`,value:0},{name:`bSerifStyle`,type:`BYTE`,value:0},{name:`bWeight`,type:`BYTE`,value:0},{name:`bProportion`,type:`BYTE`,value:0},{name:`bContrast`,type:`BYTE`,value:0},{name:`bStrokeVariation`,type:`BYTE`,value:0},{name:`bArmStyle`,type:`BYTE`,value:0},{name:`bLetterform`,type:`BYTE`,value:0},{name:`bMidline`,type:`BYTE`,value:0},{name:`bXHeight`,type:`BYTE`,value:0},{name:`ulUnicodeRange1`,type:`ULONG`,value:0},{name:`ulUnicodeRange2`,type:`ULONG`,value:0},{name:`ulUnicodeRange3`,type:`ULONG`,value:0},{name:`ulUnicodeRange4`,type:`ULONG`,value:0},{name:`achVendID`,type:`CHARARRAY`,value:`XXXX`},{name:`fsSelection`,type:`USHORT`,value:0},{name:`usFirstCharIndex`,type:`USHORT`,value:0},{name:`usLastCharIndex`,type:`USHORT`,value:0},{name:`sTypoAscender`,type:`SHORT`,value:0},{name:`sTypoDescender`,type:`SHORT`,value:0},{name:`sTypoLineGap`,type:`SHORT`,value:0},{name:`usWinAscent`,type:`USHORT`,value:0},{name:`usWinDescent`,type:`USHORT`,value:0},{name:`ulCodePageRange1`,type:`ULONG`,value:0},{name:`ulCodePageRange2`,type:`ULONG`,value:0},{name:`sxHeight`,type:`SHORT`,value:0},{name:`sCapHeight`,type:`SHORT`,value:0},{name:`usDefaultChar`,type:`USHORT`,value:0},{name:`usBreakChar`,type:`USHORT`,value:0},{name:`usMaxContext`,type:`USHORT`,value:0}],e)},unicodeRanges:ct,getUnicodeRange:function(e){for(let t=0;t<ct.length;t+=1){let n=ct[t];if(e>=n.begin&&e<n.end)return t}return-1}},ut={parse:function(e,t){let n={},r=new L.Parser(e,t);switch(n.version=r.parseVersion(),n.italicAngle=r.parseFixed(),n.underlinePosition=r.parseShort(),n.underlineThickness=r.parseShort(),n.isFixedPitch=r.parseULong(),n.minMemType42=r.parseULong(),n.maxMemType42=r.parseULong(),n.minMemType1=r.parseULong(),n.maxMemType1=r.parseULong(),n.version){case 1:n.names=R.slice();break;case 2:n.numberOfGlyphs=r.parseUShort(),n.glyphNameIndex=Array(n.numberOfGlyphs);for(let e=0;e<n.numberOfGlyphs;e++)n.glyphNameIndex[e]=r.parseUShort();n.names=[];for(let e=0;e<n.numberOfGlyphs;e++)if(n.glyphNameIndex[e]>=R.length){let e=r.parseChar();n.names.push(r.parseString(e))}break;case 2.5:n.numberOfGlyphs=r.parseUShort(),n.offset=Array(n.numberOfGlyphs);for(let e=0;e<n.numberOfGlyphs;e++)n.offset[e]=r.parseChar()}return n},make:function(){return new F.Table(`post`,[{name:`version`,type:`FIXED`,value:196608},{name:`italicAngle`,type:`FIXED`,value:0},{name:`underlinePosition`,type:`FWORD`,value:0},{name:`underlineThickness`,type:`FWORD`,value:0},{name:`isFixedPitch`,type:`ULONG`,value:0},{name:`minMemType42`,type:`ULONG`,value:0},{name:`maxMemType42`,type:`ULONG`,value:0},{name:`minMemType1`,type:`ULONG`,value:0},{name:`maxMemType1`,type:`ULONG`,value:0}])}},V=Array(9);V[1]=function(){let e=this.offset+this.relativeOffset,t=this.parseUShort();return t===1?{substFormat:1,coverage:this.parsePointer(I.coverage),deltaGlyphId:this.parseUShort()}:t===2?{substFormat:2,coverage:this.parsePointer(I.coverage),substitute:this.parseOffset16List()}:void p.assert(!1,`0x`+e.toString(16)+`: lookup type 1 format must be 1 or 2.`)},V[2]=function(){let e=this.parseUShort();return p.argument(e===1,`GSUB Multiple Substitution Subtable identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(I.coverage),sequences:this.parseListOfLists()}},V[3]=function(){let e=this.parseUShort();return p.argument(e===1,`GSUB Alternate Substitution Subtable identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(I.coverage),alternateSets:this.parseListOfLists()}},V[4]=function(){let e=this.parseUShort();return p.argument(e===1,`GSUB ligature table identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(I.coverage),ligatureSets:this.parseListOfLists((function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}}))}};let dt={sequenceIndex:I.uShort,lookupListIndex:I.uShort};V[5]=function(){let e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{substFormat:t,coverage:this.parsePointer(I.coverage),ruleSets:this.parseListOfLists((function(){let e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,dt)}}))};if(t===2)return{substFormat:t,coverage:this.parsePointer(I.coverage),classDef:this.parsePointer(I.classDef),classSets:this.parseListOfLists((function(){let e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,dt)}}))};if(t===3){let e=this.parseUShort(),n=this.parseUShort();return{substFormat:t,coverages:this.parseList(e,I.pointer(I.coverage)),lookupRecords:this.parseRecordList(n,dt)}}p.assert(!1,`0x`+e.toString(16)+`: lookup type 5 format must be 1, 2 or 3.`)},V[6]=function(){let e=this.offset+this.relativeOffset,t=this.parseUShort();return t===1?{substFormat:1,coverage:this.parsePointer(I.coverage),chainRuleSets:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(dt)}}))}:t===2?{substFormat:2,coverage:this.parsePointer(I.coverage),backtrackClassDef:this.parsePointer(I.classDef),inputClassDef:this.parsePointer(I.classDef),lookaheadClassDef:this.parsePointer(I.classDef),chainClassSet:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(dt)}}))}:t===3?{substFormat:3,backtrackCoverage:this.parseList(I.pointer(I.coverage)),inputCoverage:this.parseList(I.pointer(I.coverage)),lookaheadCoverage:this.parseList(I.pointer(I.coverage)),lookupRecords:this.parseRecordList(dt)}:void p.assert(!1,`0x`+e.toString(16)+`: lookup type 6 format must be 1, 2 or 3.`)},V[7]=function(){let e=this.parseUShort();p.argument(e===1,`GSUB Extension Substitution subtable identifier-format must be 1`);let t=this.parseUShort(),n=new I(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:V[t].call(n)}},V[8]=function(){let e=this.parseUShort();return p.argument(e===1,`GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(I.coverage),backtrackCoverage:this.parseList(I.pointer(I.coverage)),lookaheadCoverage:this.parseList(I.pointer(I.coverage)),substitutes:this.parseUShortList()}};let ft=Array(9);ft[1]=function(e){return e.substFormat===1?new F.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:1},{name:`coverage`,type:`TABLE`,value:new F.Coverage(e.coverage)},{name:`deltaGlyphID`,type:`USHORT`,value:e.deltaGlyphId}]):new F.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:2},{name:`coverage`,type:`TABLE`,value:new F.Coverage(e.coverage)}].concat(F.ushortList(`substitute`,e.substitute)))},ft[3]=function(e){return p.assert(e.substFormat===1,`Lookup type 3 substFormat must be 1.`),new F.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:1},{name:`coverage`,type:`TABLE`,value:new F.Coverage(e.coverage)}].concat(F.tableList(`altSet`,e.alternateSets,(function(e){return new F.Table(`alternateSetTable`,F.ushortList(`alternate`,e))}))))},ft[4]=function(e){return p.assert(e.substFormat===1,`Lookup type 4 substFormat must be 1.`),new F.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:1},{name:`coverage`,type:`TABLE`,value:new F.Coverage(e.coverage)}].concat(F.tableList(`ligSet`,e.ligatureSets,(function(e){return new F.Table(`ligatureSetTable`,F.tableList(`ligature`,e,(function(e){return new F.Table(`ligatureTable`,[{name:`ligGlyph`,type:`USHORT`,value:e.ligGlyph}].concat(F.ushortList(`component`,e.components,e.components.length+1)))})))}))))};let pt={parse:function(e,t){let n=new I(e,t||=0),r=n.parseVersion(1);return p.argument(r===1||r===1.1,`Unsupported GSUB table version.`),r===1?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(V)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(V),variations:n.parseFeatureVariationsList()}},make:function(e){return new F.Table(`GSUB`,[{name:`version`,type:`ULONG`,value:65536},{name:`scripts`,type:`TABLE`,value:new F.ScriptList(e.scripts)},{name:`features`,type:`TABLE`,value:new F.FeatureList(e.features)},{name:`lookups`,type:`TABLE`,value:new F.LookupList(e.lookups,ft)}])}},mt={parse:function(e,t){let n=new L.Parser(e,t),r=n.parseULong();p.argument(r===1,`Unsupported META table version.`),n.parseULong(),n.parseULong();let i=n.parseULong(),a={};for(let r=0;r<i;r++){let r=n.parseTag(),i=n.parseULong(),o=n.parseULong();a[r]=h.UTF8(e,t+i,o)}return a},make:function(e){let t=Object.keys(e).length,n=``,r=16+12*t,i=new F.Table(`meta`,[{name:`version`,type:`ULONG`,value:1},{name:`flags`,type:`ULONG`,value:0},{name:`offset`,type:`ULONG`,value:r},{name:`numTags`,type:`ULONG`,value:t}]);for(let t in e){let a=n.length;n+=e[t],i.fields.push({name:`tag `+t,type:`TAG`,value:t}),i.fields.push({name:`offset `+t,type:`ULONG`,value:r+a}),i.fields.push({name:`length `+t,type:`ULONG`,value:e[t].length})}return i.fields.push({name:`stringPool`,type:`CHARARRAY`,value:n}),i}};function ht(e){return Math.log(e)/Math.log(2)|0}function gt(e){for(;e.length%4!=0;)e.push(0);let t=0;for(let n=0;n<e.length;n+=4)t+=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];return t%=2**32,t}function _t(e,t,n,r){return new F.Record(`Table Record`,[{name:`tag`,type:`TAG`,value:e===void 0?``:e},{name:`checkSum`,type:`ULONG`,value:t===void 0?0:t},{name:`offset`,type:`ULONG`,value:n===void 0?0:n},{name:`length`,type:`ULONG`,value:r===void 0?0:r}])}function vt(e){let t=new F.Table(`sfnt`,[{name:`version`,type:`TAG`,value:`OTTO`},{name:`numTables`,type:`USHORT`,value:0},{name:`searchRange`,type:`USHORT`,value:0},{name:`entrySelector`,type:`USHORT`,value:0},{name:`rangeShift`,type:`USHORT`,value:0}]);t.tables=e,t.numTables=e.length;let n=2**ht(t.numTables);t.searchRange=16*n,t.entrySelector=ht(n),t.rangeShift=16*t.numTables-t.searchRange;let r=[],i=[],a=t.sizeOf()+_t().sizeOf()*t.numTables;for(;a%4!=0;)a+=1,i.push({name:`padding`,type:`BYTE`,value:0});for(let t=0;t<e.length;t+=1){let n=e[t];p.argument(n.tableName.length===4,`Table name`+n.tableName+` is invalid.`);let o=n.sizeOf(),s=_t(n.tableName,gt(n.encode()),a,o);for(r.push({name:s.tag+` Table Record`,type:`RECORD`,value:s}),i.push({name:n.tableName+` table`,type:`RECORD`,value:n}),a+=o,p.argument(!isNaN(a),`Something went wrong calculating the offset.`);a%4!=0;)a+=1,i.push({name:`padding`,type:`BYTE`,value:0})}return r.sort((function(e,t){return e.value.tag>t.value.tag?1:-1})),t.fields=t.fields.concat(r),t.fields=t.fields.concat(i),t}function yt(e,t,n){for(let n=0;n<t.length;n+=1){let r=e.charToGlyphIndex(t[n]);if(r>0)return e.glyphs.get(r).getMetrics()}return n}function bt(e){let t=0;for(let n=0;n<e.length;n+=1)t+=e[n];return t/e.length}let xt=function(e){let t=[],n=[],r=[],i=[],a=[],o=[],s=[],c,l=0,u=0,d=0,f=0,p=0;for(let m=0;m<e.glyphs.length;m+=1){let h=e.glyphs.get(m),g=0|h.unicode;if(isNaN(h.advanceWidth))throw Error(`Glyph `+h.name+` (`+m+`): advanceWidth is not a number.`);(c>g||c===void 0)&&g>0&&(c=g),l<g&&(l=g);let _=lt.getUnicodeRange(g);if(_<32)u|=1<<_;else if(_<64)d|=1<<_-32;else if(_<96)f|=1<<_-64;else{if(!(_<123))throw Error(`Unicode ranges bits > 123 are reserved for internal usage`);p|=1<<_-96}if(h.name===`.notdef`)continue;let v=h.getMetrics();t.push(v.xMin),n.push(v.yMin),r.push(v.xMax),i.push(v.yMax),o.push(v.leftSideBearing),s.push(v.rightSideBearing),a.push(h.advanceWidth)}let m={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,r),yMax:Math.max.apply(null,i),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:bt(a),minLeftSideBearing:Math.min.apply(null,o),maxLeftSideBearing:Math.max.apply(null,o),minRightSideBearing:Math.min.apply(null,s)};m.ascender=e.ascender,m.descender=e.descender;let h=We.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:m.xMin,yMin:m.yMin,xMax:m.xMax,yMax:m.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),g=Ge.make({ascender:m.ascender,descender:m.descender,advanceWidthMax:m.advanceWidthMax,minLeftSideBearing:m.minLeftSideBearing,minRightSideBearing:m.minRightSideBearing,xMaxExtent:m.maxLeftSideBearing+(m.xMax-m.xMin),numberOfHMetrics:e.glyphs.length}),_=Je.make(e.glyphs.length),v=lt.make({xAvgCharWidth:Math.round(m.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:c,usLastCharIndex:l,ulUnicodeRange1:u,ulUnicodeRange2:d,ulUnicodeRange3:f,ulUnicodeRange4:p,fsSelection:e.tables.os2.fsSelection,sTypoAscender:m.ascender,sTypoDescender:m.descender,sTypoLineGap:0,usWinAscent:m.yMax,usWinDescent:Math.abs(m.yMin),ulCodePageRange1:1,sxHeight:yt(e,`xyvw`,{yMax:Math.round(m.ascender/2)}).yMax,sCapHeight:yt(e,`HIKLEFJMNTZBDPRAGOQSUVWXY`,m).yMax,usDefaultChar:e.hasChar(` `)?32:0,usBreakChar:e.hasChar(` `)?32:0}),y=Ke.make(e.glyphs),b=se.make(e.glyphs),x=e.getEnglishName(`fontFamily`),S=e.getEnglishName(`fontSubfamily`),C=x+` `+S,w=e.getEnglishName(`postScriptName`);w||=x.replace(/\s/g,``)+`-`+S;let T={};for(let t in e.names)T[t]=e.names[t];T.uniqueID||={en:e.getEnglishName(`manufacturer`)+`:`+C},T.postScriptName||={en:w},T.preferredFamily||=e.names.fontFamily,T.preferredSubfamily||=e.names.fontSubfamily;let E=[],D=st.make(T,E),O=E.length>0?qe.make(E):void 0,k=ut.make(),A=Ue.make(e.glyphs,{version:e.getEnglishName(`version`),fullName:C,familyName:x,weightName:S,postScriptName:w,unitsPerEm:e.unitsPerEm,fontBBox:[0,m.yMin,m.ascender,m.advanceWidthMax]}),j=e.metas&&Object.keys(e.metas).length>0?mt.make(e.metas):void 0,M=[h,g,_,v,D,b,k,A,y];O&&M.push(O),e.tables.gsub&&M.push(pt.make(e.tables.gsub)),j&&M.push(j);let N=vt(M),P=gt(N.encode()),F=N.fields,ee=!1;for(let e=0;e<F.length;e+=1)if(F[e].name===`head table`){F[e].value.checkSumAdjustment=2981146554-P,ee=!0;break}if(!ee)throw Error(`Could not find head table with checkSum to adjust.`);return N};function St(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=n+r>>>1,a=e[i].tag;if(a===t)return i;a<t?n=i+1:r=i-1}return-n-1}function Ct(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=n+r>>>1,a=e[i];if(a===t)return i;a<t?n=i+1:r=i-1}return-n-1}function wt(e,t){let n,r=0,i=e.length-1;for(;r<=i;){let a=r+i>>>1;n=e[a];let o=n.start;if(o===t)return n;o<t?r=a+1:i=a-1}if(r>0)return n=e[r-1],t>n.end?0:n}function Tt(e,t){this.font=e,this.tableName=t}Tt.prototype={searchTag:St,binSearch:Ct,getTable:function(e){let t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){let e=this.getTable();return e?e.scripts.map((function(e){return e.tag})):[]},getDefaultScriptName:function(){let e=this.getTable();if(!e)return;let t=!1;for(let n=0;n<e.scripts.length;n++){let r=e.scripts[n].tag;if(r===`DFLT`)return r;r===`latn`&&(t=!0)}return t?`latn`:void 0},getScriptTable:function(e,t){let n=this.getTable(t);if(n){e||=`DFLT`;let r=n.scripts,i=St(n.scripts,e);if(i>=0)return r[i].script;if(t){let t={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return r.splice(-1-i,0,t),t.script}}},getLangSysTable:function(e,t,n){let r=this.getScriptTable(e,n);if(r){if(!t||t===`dflt`||t===`DFLT`)return r.defaultLangSys;let e=St(r.langSysRecords,t);if(e>=0)return r.langSysRecords[e].langSys;if(n){let n={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return r.langSysRecords.splice(-1-e,0,n),n.langSys}}},getFeatureTable:function(e,t,n,r){let i=this.getLangSysTable(e,t,r);if(i){let e,t=i.featureIndexes,a=this.font.tables[this.tableName].features;for(let r=0;r<t.length;r++)if(e=a[t[r]],e.tag===n)return e.feature;if(r){let r=a.length;return p.assert(r===0||n>=a[r-1].tag,`Features must be added in alphabetical order.`),e={tag:n,feature:{params:0,lookupListIndexes:[]}},a.push(e),t.push(r),e.feature}}},getLookupTables:function(e,t,n,r,i){let a=this.getFeatureTable(e,t,n,i),o=[];if(a){let e,t=a.lookupListIndexes,n=this.font.tables[this.tableName].lookups;for(let i=0;i<t.length;i++)e=n[t[i]],e.lookupType===r&&o.push(e);if(o.length===0&&i){e={lookupType:r,lookupFlag:0,subtables:[],markFilteringSet:void 0};let i=n.length;return n.push(e),t.push(i),[e]}}return o},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:let n=wt(e.ranges,t);return n?n.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:let n=Ct(e.glyphs,t);return n>=0?n:-1;case 2:let r=wt(e.ranges,t);return r?r.index+t-r.start:-1}},expandCoverage:function(e){if(e.format===1)return e.glyphs;{let t=[],n=e.ranges;for(let e=0;e<n.length;e++){let r=n[e],i=r.start,a=r.end;for(let e=i;e<=a;e++)t.push(e)}return t}}};let Et=Tt;function Dt(e){Et.call(this,e,`gpos`)}Dt.prototype=Et.prototype,Dt.prototype.getKerningValue=function(e,t,n){for(let r=0;r<e.length;r++){let i=e[r].subtables;for(let e=0;e<i.length;e++){let r=i[e],a=this.getCoverageIndex(r.coverage,t);if(!(a<0))switch(r.posFormat){case 1:let e=r.pairSets[a];for(let t=0;t<e.length;t++){let r=e[t];if(r.secondGlyph===n)return r.value1&&r.value1.xAdvance||0}break;case 2:let i=this.getGlyphClass(r.classDef1,t),o=this.getGlyphClass(r.classDef2,n),s=r.classRecords[i][o];return s.value1&&s.value1.xAdvance||0}}}return 0},Dt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,`kern`,2)};let Ot=Dt;function H(e){Et.call(this,e,`gsub`)}function kt(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function At(e,t,n){let r=e.subtables;for(let e=0;e<r.length;e++){let n=r[e];if(n.substFormat===t)return n}if(n)return r.push(n),n}H.prototype=Et.prototype,H.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:`DFLT`,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},H.prototype.getSingle=function(e,t,n){let r=[],i=this.getLookupTables(t,n,e,1);for(let e=0;e<i.length;e++){let t=i[e].subtables;for(let e=0;e<t.length;e++){let n=t[e],i=this.expandCoverage(n.coverage),a;if(n.substFormat===1){let e=n.deltaGlyphId;for(a=0;a<i.length;a++){let t=i[a];r.push({sub:t,by:t+e})}}else{let e=n.substitute;for(a=0;a<i.length;a++)r.push({sub:i[a],by:e[a]})}}}return r},H.prototype.getAlternates=function(e,t,n){let r=[],i=this.getLookupTables(t,n,e,3);for(let e=0;e<i.length;e++){let t=i[e].subtables;for(let e=0;e<t.length;e++){let n=t[e],i=this.expandCoverage(n.coverage),a=n.alternateSets;for(let e=0;e<i.length;e++)r.push({sub:i[e],by:a[e]})}}return r},H.prototype.getLigatures=function(e,t,n){let r=[],i=this.getLookupTables(t,n,e,4);for(let e=0;e<i.length;e++){let t=i[e].subtables;for(let e=0;e<t.length;e++){let n=t[e],i=this.expandCoverage(n.coverage),a=n.ligatureSets;for(let e=0;e<i.length;e++){let t=i[e],n=a[e];for(let e=0;e<n.length;e++){let i=n[e];r.push({sub:[t].concat(i.components),by:i.ligGlyph})}}}}return r},H.prototype.addSingle=function(e,t,n,r){let i=At(this.getLookupTables(n,r,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});p.assert(i.coverage.format===1,`Ligature: unable to modify coverage table format `+i.coverage.format);let a=t.sub,o=this.binSearch(i.coverage.glyphs,a);o<0&&(o=-1-o,i.coverage.glyphs.splice(o,0,a),i.substitute.splice(o,0,0)),i.substitute[o]=t.by},H.prototype.addAlternate=function(e,t,n,r){let i=At(this.getLookupTables(n,r,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});p.assert(i.coverage.format===1,`Ligature: unable to modify coverage table format `+i.coverage.format);let a=t.sub,o=this.binSearch(i.coverage.glyphs,a);o<0&&(o=-1-o,i.coverage.glyphs.splice(o,0,a),i.alternateSets.splice(o,0,0)),i.alternateSets[o]=t.by},H.prototype.addLigature=function(e,t,n,r){let i=this.getLookupTables(n,r,e,4,!0)[0],a=i.subtables[0];a||(a={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},i.subtables[0]=a),p.assert(a.coverage.format===1,`Ligature: unable to modify coverage table format `+a.coverage.format);let o=t.sub[0],s=t.sub.slice(1),c={ligGlyph:t.by,components:s},l=this.binSearch(a.coverage.glyphs,o);if(l>=0){let e=a.ligatureSets[l];for(let t=0;t<e.length;t++)if(kt(e[t].components,s))return;e.push(c)}else l=-1-l,a.coverage.glyphs.splice(l,0,o),a.ligatureSets.splice(l,0,[c])},H.prototype.getFeature=function(e,t,n){if(/ss\d\d/.test(e))return this.getSingle(e,t,n);switch(e){case`aalt`:case`salt`:return this.getSingle(e,t,n).concat(this.getAlternates(e,t,n));case`dlig`:case`liga`:case`rlig`:return this.getLigatures(e,t,n)}},H.prototype.add=function(e,t,n,r){if(/ss\d\d/.test(e))return this.addSingle(e,t,n,r);switch(e){case`aalt`:case`salt`:return typeof t.by==`number`?this.addSingle(e,t,n,r):this.addAlternate(e,t,n,r);case`dlig`:case`liga`:case`rlig`:return this.addLigature(e,t,n,r)}};let jt=H;function Mt(e){let t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let t=0;t<e.length;++t)n[t]=e[t];return t}function Nt(e,t){if(!e)throw t}let Pt,U,Ft,It;function Lt(e){this.font=e,this._fpgmState=this._prepState=void 0,this._errorState=0}function Rt(e){return e}function zt(e){return Math.sign(e)*Math.round(Math.abs(e))}function Bt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function Ht(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ut(e){return Math.sign(e)*Math.floor(Math.abs(e))}let Wt=function(e){let t=this.srPeriod,n=this.srPhase,r=1;return e<0&&(e=-e,r=-1),e+=this.srThreshold-n,e=Math.trunc(e/t)*t,(e+=n)<0?n*r:e*r},W={x:1,y:0,axis:`x`,distance:function(e,t,n,r){return(n?e.xo:e.x)-(r?t.xo:t.x)},interpolate:function(e,t,n,r){let i,a,o,s,c,l,u;if(!r||r===this)return i=e.xo-t.xo,a=e.xo-n.xo,c=t.x-t.xo,l=n.x-n.xo,o=Math.abs(i),s=Math.abs(a),u=o+s,u===0?void(e.x=e.xo+(c+l)/2):void(e.x=e.xo+(c*s+l*o)/u);i=r.distance(e,t,!0,!0),a=r.distance(e,n,!0,!0),c=r.distance(t,t,!1,!0),l=r.distance(n,n,!1,!0),o=Math.abs(i),s=Math.abs(a),u=o+s,u===0?W.setRelative(e,e,(c+l)/2,r,!0):W.setRelative(e,e,(c*s+l*o)/u,r,!0)},normalSlope:-1/0,setRelative:function(e,t,n,r,i){if(!r||r===this)return void(e.x=(i?t.xo:t.x)+n);let a=i?t.xo:t.x,o=i?t.yo:t.y,s=a+n*r.x,c=o+n*r.y;e.x=s+(e.y-c)/r.normalSlope},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},G={x:0,y:1,axis:`y`,distance:function(e,t,n,r){return(n?e.yo:e.y)-(r?t.yo:t.y)},interpolate:function(e,t,n,r){let i,a,o,s,c,l,u;if(!r||r===this)return i=e.yo-t.yo,a=e.yo-n.yo,c=t.y-t.yo,l=n.y-n.yo,o=Math.abs(i),s=Math.abs(a),u=o+s,u===0?void(e.y=e.yo+(c+l)/2):void(e.y=e.yo+(c*s+l*o)/u);i=r.distance(e,t,!0,!0),a=r.distance(e,n,!0,!0),c=r.distance(t,t,!1,!0),l=r.distance(n,n,!1,!0),o=Math.abs(i),s=Math.abs(a),u=o+s,u===0?G.setRelative(e,e,(c+l)/2,r,!0):G.setRelative(e,e,(c*s+l*o)/u,r,!0)},normalSlope:0,setRelative:function(e,t,n,r,i){if(!r||r===this)return void(e.y=(i?t.yo:t.y)+n);let a=i?t.xo:t.x,o=i?t.yo:t.y,s=a+n*r.x;e.y=o+n*r.y+r.normalSlope*(e.x-s)},slope:1/0,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Gt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Kt(e,t){let n=Math.sqrt(e*e+t*t);return t/=n,(e/=n)==1&&t===0?W:e===0&&t===1?G:new Gt(e,t)}function K(e,t,n,r){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=n,this.onCurve=r,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(W),Object.freeze(G),Gt.prototype.distance=function(e,t,n,r){return this.x*W.distance(e,t,n,r)+this.y*G.distance(e,t,n,r)},Gt.prototype.interpolate=function(e,t,n,r){let i,a,o,s,c,l,u;o=r.distance(e,t,!0,!0),s=r.distance(e,n,!0,!0),i=r.distance(t,t,!1,!0),a=r.distance(n,n,!1,!0),c=Math.abs(o),l=Math.abs(s),u=c+l,u===0?this.setRelative(e,e,(i+a)/2,r,!0):this.setRelative(e,e,(i*l+a*c)/u,r,!0)},Gt.prototype.setRelative=function(e,t,n,r,i){r||=this;let a=i?t.xo:t.x,o=i?t.yo:t.y,s=a+n*r.x,c=o+n*r.y,l=r.normalSlope,u=this.slope,d=e.x,f=e.y;e.x=(u*d-l*s+c-f)/(u-l),e.y=u*(e.x-d)+f},Gt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},K.prototype.nextTouched=function(e){let t=this.nextPointOnContour;for(;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},K.prototype.prevTouched=function(e){let t=this.prevPointOnContour;for(;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};let qt=Object.freeze(new K(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function q(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case`glyf`:this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case`prep`:this.fv=this.pv=this.dpv=W,this.round=zt}}function Yt(e){let t=e.tZone=Array(e.gZone.length);for(let e=0;e<t.length;e++)t[e]=new K(0,0)}function Xt(e,t){let n=e.prog,r,i=e.ip,a=1;do if(r=n[++i],r===88)a++;else if(r===89)a--;else if(r===64)i+=n[i+1]+1;else if(r===65)i+=2*n[i+1]+1;else if(r>=176&&r<=183)i+=r-176+1;else if(r>=184&&r<=191)i+=2*(r-184+1);else if(t&&a===1&&r===27)break;while(a>0);e.ip=i}function Zt(t,n){e.DEBUG&&console.log(n.step,`SVTCA[`+t.axis+`]`),n.fv=n.pv=n.dpv=t}function Qt(t,n){e.DEBUG&&console.log(n.step,`SPVTCA[`+t.axis+`]`),n.pv=n.dpv=t}function $t(t,n){e.DEBUG&&console.log(n.step,`SFVTCA[`+t.axis+`]`),n.fv=t}function en(t,n){let r=n.stack,i=r.pop(),a=r.pop(),o=n.z2[i],s=n.z1[a],c,l;e.DEBUG&&console.log(`SPVTL[`+t+`]`,i,a),t?(c=o.y-s.y,l=s.x-o.x):(c=s.x-o.x,l=s.y-o.y),n.pv=n.dpv=Kt(c,l)}function tn(t,n){let r=n.stack,i=r.pop(),a=r.pop(),o=n.z2[i],s=n.z1[a],c,l;e.DEBUG&&console.log(`SFVTL[`+t+`]`,i,a),t?(c=o.y-s.y,l=s.x-o.x):(c=s.x-o.x,l=s.y-o.y),n.fv=Kt(c,l)}function nn(t){e.DEBUG&&console.log(t.step,`POP[]`),t.stack.pop()}function rn(t,n){let r=n.stack.pop(),i=n.z0[r],a=n.fv,o=n.pv;e.DEBUG&&console.log(n.step,`MDAP[`+t+`]`,r);let s=o.distance(i,qt);t&&(s=n.round(s)),a.setRelative(i,qt,s,o),a.touch(i),n.rp0=n.rp1=r}function an(t,n){let r=n.z2,i=r.length-2,a,o,s;e.DEBUG&&console.log(n.step,`IUP[`+t.axis+`]`);for(let e=0;e<i;e++)a=r[e],t.touched(a)||(o=a.prevTouched(t),o!==a&&(s=a.nextTouched(t),o===s&&t.setRelative(a,a,t.distance(o,o,!1,!0),t,!0),t.interpolate(a,o,s,t)))}function on(t,n){let r=n.stack,i=t?n.rp1:n.rp2,a=(t?n.z0:n.z1)[i],o=n.fv,s=n.pv,c=n.loop,l=n.z2;for(;c--;){let i=r.pop(),u=l[i],d=s.distance(a,a,!1,!0);o.setRelative(u,u,d,s),o.touch(u),e.DEBUG&&console.log(n.step,(n.loop>1?`loop `+(n.loop-c)+`: `:``)+`SHP[`+(t?`rp1`:`rp2`)+`]`,i)}n.loop=1}function sn(t,n){let r=n.stack,i=t?n.rp1:n.rp2,a=(t?n.z0:n.z1)[i],o=n.fv,s=n.pv,c=r.pop(),l=n.z2[n.contours[c]],u=l;e.DEBUG&&console.log(n.step,`SHC[`+t+`]`,c);let d=s.distance(a,a,!1,!0);do u!==a&&o.setRelative(u,u,d,s),u=u.nextPointOnContour;while(u!==l)}function cn(t,n){let r=n.stack,i=t?n.rp1:n.rp2,a=(t?n.z0:n.z1)[i],o=n.fv,s=n.pv,c=r.pop(),l,u;switch(e.DEBUG&&console.log(n.step,`SHZ[`+t+`]`,c),c){case 0:l=n.tZone;break;case 1:l=n.gZone;break;default:throw Error(`Invalid zone`)}let d=s.distance(a,a,!1,!0),f=l.length-2;for(let e=0;e<f;e++)u=l[e],o.setRelative(u,u,d,s)}function ln(t,n){let r=n.stack,i=r.pop()/64,a=r.pop(),o=n.z1[a],s=n.z0[n.rp0],c=n.fv,l=n.pv;c.setRelative(o,s,i,l),c.touch(o),e.DEBUG&&console.log(n.step,`MSIRP[`+t+`]`,i,a),n.rp1=n.rp0,n.rp2=a,t&&(n.rp0=a)}function un(t,n){let r=n.stack,i=r.pop(),a=r.pop(),o=n.z0[a],s=n.fv,c=n.pv,l=n.cvt[i];e.DEBUG&&console.log(n.step,`MIAP[`+t+`]`,i,`(`,l,`)`,a);let u=c.distance(o,qt);t&&(Math.abs(u-l)<n.cvCutIn&&(u=l),u=n.round(u)),s.setRelative(o,qt,u,c),n.zp0===0&&(o.xo=o.x,o.yo=o.y),s.touch(o),n.rp0=n.rp1=a}function dn(t,n){let r=n.stack,i=r.pop(),a=n.z2[i];e.DEBUG&&console.log(n.step,`GC[`+t+`]`,i),r.push(64*n.dpv.distance(a,qt,t,!1))}function fn(t,n){let r=n.stack,i=r.pop(),a=r.pop(),o=n.z1[i],s=n.z0[a],c=n.dpv.distance(s,o,t,t);e.DEBUG&&console.log(n.step,`MD[`+t+`]`,i,a,`->`,c),n.stack.push(Math.round(64*c))}function pn(t,n){let r=n.stack,i=r.pop(),a=n.fv,o=n.pv,s=n.ppem,c=n.deltaBase+16*(t-1),l=n.deltaShift,u=n.z0;e.DEBUG&&console.log(n.step,`DELTAP[`+t+`]`,i,r);for(let t=0;t<i;t++){let t=r.pop(),i=r.pop();if(c+((240&i)>>4)!==s)continue;let d=(15&i)-8;d>=0&&d++,e.DEBUG&&console.log(n.step,`DELTAPFIX`,t,`by`,d*l);let f=u[t];a.setRelative(f,f,d*l,o)}}function mn(t,n){let r=n.stack,i=r.pop();e.DEBUG&&console.log(n.step,`ROUND[]`),r.push(64*n.round(i/64))}function hn(t,n){let r=n.stack,i=r.pop(),a=n.ppem,o=n.deltaBase+16*(t-1),s=n.deltaShift;e.DEBUG&&console.log(n.step,`DELTAC[`+t+`]`,i,r);for(let t=0;t<i;t++){let t=r.pop(),i=r.pop();if(o+((240&i)>>4)!==a)continue;let c=(15&i)-8;c>=0&&c++;let l=c*s;e.DEBUG&&console.log(n.step,`DELTACFIX`,t,`by`,l),n.cvt[t]+=l}}function gn(t,n){let r=n.stack,i=r.pop(),a=r.pop(),o=n.z2[i],s=n.z1[a],c,l;e.DEBUG&&console.log(n.step,`SDPVTL[`+t+`]`,i,a),t?(c=o.y-s.y,l=s.x-o.x):(c=s.x-o.x,l=s.y-o.y),n.dpv=Kt(c,l)}function J(t,n){let r=n.stack,i=n.prog,a=n.ip;e.DEBUG&&console.log(n.step,`PUSHB[`+t+`]`);for(let e=0;e<t;e++)r.push(i[++a]);n.ip=a}function Y(t,n){let r=n.ip,i=n.prog,a=n.stack;e.DEBUG&&console.log(n.ip,`PUSHW[`+t+`]`);for(let e=0;e<t;e++){let e=i[++r]<<8|i[++r];32768&e&&(e=-(1+(65535^e))),a.push(e)}n.ip=r}function X(t,n,r,i,a,o){let s=o.stack,c=t&&s.pop(),l=s.pop(),u=o.rp0,d=o.z0[u],f=o.z1[l],p=o.minDis,m=o.fv,h=o.dpv,g,_,v,y;_=g=h.distance(f,d,!0,!0),v=_>=0?1:-1,_=Math.abs(_),t&&(y=o.cvt[c],i&&Math.abs(_-y)<o.cvCutIn&&(_=y)),r&&_<p&&(_=p),i&&(_=o.round(_)),m.setRelative(f,d,v*_,h),m.touch(f),e.DEBUG&&console.log(o.step,(t?`MIRP[`:`MDRP[`)+(n?`M`:`m`)+(r?`>`:`_`)+(i?`R`:`_`)+(a===0?`Gr`:a===1?`Bl`:a===2?`Wh`:``)+`]`,t?c+`(`+o.cvt[c]+`,`+y+`)`:``,l,`(d =`,g,`->`,v*_,`)`),o.rp1=o.rp0,o.rp2=l,n&&(o.rp0=l)}Lt.prototype.exec=function(t,n){if(typeof n!=`number`)throw Error(`Point size is not a number!`);if(this._errorState>2)return;let r=this.font,i=this._prepState;if(!i||i.ppem!==n){let t=this._fpgmState;if(!t){q.prototype=Jt,t=this._fpgmState=new q(`fpgm`,r.tables.fpgm),t.funcs=[],t.font=r,e.DEBUG&&(console.log(`---EXEC FPGM---`),t.step=-1);try{U(t)}catch(e){console.log(`Hinting error in FPGM:`+e),this._errorState=3;return}}q.prototype=t,i=this._prepState=new q(`prep`,r.tables.prep),i.ppem=n;let a=r.tables.cvt;if(a){let e=i.cvt=Array(a.length),t=n/r.unitsPerEm;for(let n=0;n<a.length;n++)e[n]=a[n]*t}else i.cvt=[];e.DEBUG&&(console.log(`---EXEC PREP---`),i.step=-1);try{U(i)}catch(e){this._errorState<2&&console.log(`Hinting error in PREP:`+e),this._errorState=2}}if(!(this._errorState>1))try{return Ft(t,i)}catch(e){this._errorState<1&&(console.log(`Hinting error:`+e),console.log(`Note: further hinting errors are silenced`)),this._errorState=1;return}},Ft=function(t,n){let r=n.ppem/n.font.unitsPerEm,i=r,a,o,s,c=t.components;if(q.prototype=n,c){let l=n.font;o=[],a=[];for(let t=0;t<c.length;t++){let n=c[t],u=l.glyphs.get(n.glyphIndex);s=new q(`glyf`,u.instructions),e.DEBUG&&(console.log(`---EXEC COMP `+t+`---`),s.step=-1),It(u,s,r,i);let d=Math.round(n.dx*r),f=Math.round(n.dy*i),p=s.gZone,m=s.contours;for(let e=0;e<p.length;e++){let t=p[e];t.xTouched=t.yTouched=!1,t.xo=t.x+=d,t.yo=t.y+=f}let h=o.length;o.push.apply(o,p);for(let e=0;e<m.length;e++)a.push(m[e]+h)}t.instructions&&!s.inhibitGridFit&&(s=new q(`glyf`,t.instructions),s.gZone=s.z0=s.z1=s.z2=o,s.contours=a,o.push(new K(0,0),new K(Math.round(t.advanceWidth*r),0)),e.DEBUG&&(console.log(`---EXEC COMPOSITE---`),s.step=-1),U(s),o.length-=2)}else s=new q(`glyf`,t.instructions),e.DEBUG&&(console.log(`---EXEC GLYPH---`),s.step=-1),It(t,s,r,i),o=s.gZone;return o},It=function(t,n,r,i){let a=t.points||[],o=a.length,s=n.gZone=n.z0=n.z1=n.z2=[],c=n.contours=[],l,u,d;for(let e=0;e<o;e++)l=a[e],s[e]=new K(l.x*r,l.y*i,l.lastPointOfContour,l.onCurve);for(let e=0;e<o;e++)l=s[e],u||(u=l,c.push(e)),l.lastPointOfContour?(l.nextPointOnContour=u,u.prevPointOnContour=l,u=void 0):(d=s[e+1],l.nextPointOnContour=d,d.prevPointOnContour=l);if(!n.inhibitGridFit){if(e.DEBUG){console.log(`PROCESSING GLYPH`,n.stack);for(let e=0;e<o;e++)console.log(e,s[e].x,s[e].y)}if(s.push(new K(0,0),new K(Math.round(t.advanceWidth*r),0)),U(n),s.length-=2,e.DEBUG){console.log(`FINISHED GLYPH`,n.stack);for(let e=0;e<o;e++)console.log(e,s[e].x,s[e].y)}}},U=function(t){let n=t.prog;if(!n)return;let r=n.length,i;for(t.ip=0;t.ip<r;t.ip++){if(e.DEBUG&&t.step++,i=Pt[n[t.ip]],!i)throw Error(`unknown instruction: 0x`+Number(n[t.ip]).toString(16));i(t)}},Pt=[Zt.bind(void 0,G),Zt.bind(void 0,W),Qt.bind(void 0,G),Qt.bind(void 0,W),$t.bind(void 0,G),$t.bind(void 0,W),en.bind(void 0,0),en.bind(void 0,1),tn.bind(void 0,0),tn.bind(void 0,1),function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SPVFS[]`,r,i),t.pv=t.dpv=Kt(i,r)},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SPVFS[]`,r,i),t.fv=Kt(i,r)},function(t){let n=t.stack,r=t.pv;e.DEBUG&&console.log(t.step,`GPV[]`),n.push(16384*r.x),n.push(16384*r.y)},function(t){let n=t.stack,r=t.fv;e.DEBUG&&console.log(t.step,`GFV[]`),n.push(16384*r.x),n.push(16384*r.y)},function(t){t.fv=t.pv,e.DEBUG&&console.log(t.step,`SFVTPV[]`)},function(t){let n=t.stack,r=n.pop(),i=n.pop(),a=n.pop(),o=n.pop(),s=n.pop(),c=t.z0,l=t.z1,u=c[r],d=c[i],f=l[a],p=l[o],m=t.z2[s];e.DEBUG&&console.log(`ISECT[], `,r,i,a,o,s);let h=u.x,g=u.y,_=d.x,v=d.y,y=f.x,b=f.y,x=p.x,S=p.y,C=(h-_)*(b-S)-(g-v)*(y-x),w=h*v-g*_,T=y*S-b*x;m.x=(w*(y-x)-T*(h-_))/C,m.y=(w*(b-S)-T*(g-v))/C},function(t){t.rp0=t.stack.pop(),e.DEBUG&&console.log(t.step,`SRP0[]`,t.rp0)},function(t){t.rp1=t.stack.pop(),e.DEBUG&&console.log(t.step,`SRP1[]`,t.rp1)},function(t){t.rp2=t.stack.pop(),e.DEBUG&&console.log(t.step,`SRP2[]`,t.rp2)},function(t){let n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZP0[]`,n),t.zp0=n,n){case 0:t.tZone||Yt(t),t.z0=t.tZone;break;case 1:t.z0=t.gZone;break;default:throw Error(`Invalid zone pointer`)}},function(t){let n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZP1[]`,n),t.zp1=n,n){case 0:t.tZone||Yt(t),t.z1=t.tZone;break;case 1:t.z1=t.gZone;break;default:throw Error(`Invalid zone pointer`)}},function(t){let n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZP2[]`,n),t.zp2=n,n){case 0:t.tZone||Yt(t),t.z2=t.tZone;break;case 1:t.z2=t.gZone;break;default:throw Error(`Invalid zone pointer`)}},function(t){let n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZPS[]`,n),t.zp0=t.zp1=t.zp2=n,n){case 0:t.tZone||Yt(t),t.z0=t.z1=t.z2=t.tZone;break;case 1:t.z0=t.z1=t.z2=t.gZone;break;default:throw Error(`Invalid zone pointer`)}},function(t){t.loop=t.stack.pop(),e.DEBUG&&console.log(t.step,`SLOOP[]`,t.loop)},function(t){e.DEBUG&&console.log(t.step,`RTG[]`),t.round=zt},function(t){e.DEBUG&&console.log(t.step,`RTHG[]`),t.round=Vt},function(t){let n=t.stack.pop();e.DEBUG&&console.log(t.step,`SMD[]`,n),t.minDis=n/64},function(t){e.DEBUG&&console.log(t.step,`ELSE[]`),Xt(t,!1)},function(t){let n=t.stack.pop();e.DEBUG&&console.log(t.step,`JMPR[]`,n),t.ip+=n-1},function(t){let n=t.stack.pop();e.DEBUG&&console.log(t.step,`SCVTCI[]`,n),t.cvCutIn=n/64},void 0,void 0,function(t){let n=t.stack;e.DEBUG&&console.log(t.step,`DUP[]`),n.push(n[n.length-1])},nn,function(t){e.DEBUG&&console.log(t.step,`CLEAR[]`),t.stack.length=0},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SWAP[]`),n.push(r),n.push(i)},function(t){let n=t.stack;e.DEBUG&&console.log(t.step,`DEPTH[]`),n.push(n.length)},function(t){let n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`CINDEX[]`,r),n.push(n[n.length-r])},function(t){let n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`MINDEX[]`,r),n.push(n.splice(n.length-r,1)[0])},void 0,void 0,void 0,function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`LOOPCALL[]`,r,i);let a=t.ip,o=t.prog;t.prog=t.funcs[r];for(let n=0;n<i;n++)U(t),e.DEBUG&&console.log(++t.step,n+1<i?`next loopcall`:`done loopcall`,n);t.ip=a,t.prog=o},function(t){let n=t.stack.pop();e.DEBUG&&console.log(t.step,`CALL[]`,n);let r=t.ip,i=t.prog;t.prog=t.funcs[n],U(t),t.ip=r,t.prog=i,e.DEBUG&&console.log(++t.step,`returning from`,n)},function(t){if(t.env!==`fpgm`)throw Error(`FDEF not allowed here`);let n=t.stack,r=t.prog,i=t.ip,a=n.pop(),o=i;for(e.DEBUG&&console.log(t.step,`FDEF[]`,a);r[++i]!==45;);t.ip=i,t.funcs[a]=r.slice(o+1,i)},void 0,rn.bind(void 0,0),rn.bind(void 0,1),an.bind(void 0,G),an.bind(void 0,W),on.bind(void 0,0),on.bind(void 0,1),sn.bind(void 0,0),sn.bind(void 0,1),cn.bind(void 0,0),cn.bind(void 0,1),function(t){let n=t.stack,r=t.loop,i=t.fv,a=n.pop()/64,o=t.z2;for(;r--;){let s=n.pop(),c=o[s];e.DEBUG&&console.log(t.step,(t.loop>1?`loop `+(t.loop-r)+`: `:``)+`SHPIX[]`,s,a),i.setRelative(c,c,a),i.touch(c)}t.loop=1},function(t){let n=t.stack,r=t.rp1,i=t.rp2,a=t.loop,o=t.z0[r],s=t.z1[i],c=t.fv,l=t.dpv,u=t.z2;for(;a--;){let d=n.pop(),f=u[d];e.DEBUG&&console.log(t.step,(t.loop>1?`loop `+(t.loop-a)+`: `:``)+`IP[]`,d,r,`<->`,i),c.interpolate(f,o,s,l),c.touch(f)}t.loop=1},ln.bind(void 0,0),ln.bind(void 0,1),function(t){let n=t.stack,r=t.rp0,i=t.z0[r],a=t.loop,o=t.fv,s=t.pv,c=t.z1;for(;a--;){let r=n.pop(),l=c[r];e.DEBUG&&console.log(t.step,(t.loop>1?`loop `+(t.loop-a)+`: `:``)+`ALIGNRP[]`,r),o.setRelative(l,i,0,s),o.touch(l)}t.loop=1},function(t){e.DEBUG&&console.log(t.step,`RTDG[]`),t.round=Bt},un.bind(void 0,0),un.bind(void 0,1),function(t){let n=t.prog,r=t.ip,i=t.stack,a=n[++r];e.DEBUG&&console.log(t.step,`NPUSHB[]`,a);for(let e=0;e<a;e++)i.push(n[++r]);t.ip=r},function(t){let n=t.ip,r=t.prog,i=t.stack,a=r[++n];e.DEBUG&&console.log(t.step,`NPUSHW[]`,a);for(let e=0;e<a;e++){let e=r[++n]<<8|r[++n];32768&e&&(e=-(1+(65535^e))),i.push(e)}t.ip=n},function(t){let n=t.stack,r=t.store;r||=t.store=[];let i=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,`WS`,i,a),r[a]=i},function(t){let n=t.stack,r=t.store,i=n.pop();e.DEBUG&&console.log(t.step,`RS`,i);let a=r&&r[i]||0;n.push(a)},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`WCVTP`,r,i),t.cvt[i]=r/64},function(t){let n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`RCVT`,r),n.push(64*t.cvt[r])},dn.bind(void 0,0),dn.bind(void 0,1),void 0,fn.bind(void 0,0),fn.bind(void 0,1),function(t){e.DEBUG&&console.log(t.step,`MPPEM[]`),t.stack.push(t.ppem)},void 0,function(t){e.DEBUG&&console.log(t.step,`FLIPON[]`),t.autoFlip=!0},void 0,void 0,function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`LT[]`,r,i),n.push(+(i<r))},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`LTEQ[]`,r,i),n.push(+(i<=r))},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`GT[]`,r,i),n.push(+(i>r))},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`GTEQ[]`,r,i),n.push(+(i>=r))},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`EQ[]`,r,i),n.push(+(r===i))},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`NEQ[]`,r,i),n.push(r===i?0:1)},function(t){let n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`ODD[]`,r),n.push(Math.trunc(r)%2?1:0)},function(t){let n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`EVEN[]`,r),n.push(Math.trunc(r)%2?0:1)},function(t){let n=t.stack.pop();e.DEBUG&&console.log(t.step,`IF[]`,n),n||(Xt(t,!0),e.DEBUG&&console.log(t.step,`EIF[]`))},function(t){e.DEBUG&&console.log(t.step,`EIF[]`)},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`AND[]`,r,i),n.push(r&&i?1:0)},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`OR[]`,r,i),n.push(r||i?1:0)},function(t){let n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`NOT[]`,r),n.push(+!r)},pn.bind(void 0,1),function(t){let n=t.stack.pop();e.DEBUG&&console.log(t.step,`SDB[]`,n),t.deltaBase=n},function(t){let n=t.stack.pop();e.DEBUG&&console.log(t.step,`SDS[]`,n),t.deltaShift=.5**n},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`ADD[]`,r,i),n.push(i+r)},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SUB[]`,r,i),n.push(i-r)},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`DIV[]`,r,i),n.push(64*i/r)},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`MUL[]`,r,i),n.push(i*r/64)},function(t){let n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`ABS[]`,r),n.push(Math.abs(r))},function(t){let n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`NEG[]`,r),n.push(-r)},function(t){let n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`FLOOR[]`,r),n.push(64*Math.floor(r/64))},function(t){let n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`CEILING[]`,r),n.push(64*Math.ceil(r/64))},mn.bind(void 0,0),mn.bind(void 0,1),mn.bind(void 0,2),mn.bind(void 0,3),void 0,void 0,void 0,void 0,function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`WCVTF[]`,r,i),t.cvt[i]=r*t.ppem/t.font.unitsPerEm},pn.bind(void 0,2),pn.bind(void 0,3),hn.bind(void 0,1),hn.bind(void 0,2),hn.bind(void 0,3),function(t){let n,r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SROUND[]`,r),t.round=Wt,192&r){case 0:n=.5;break;case 64:n=1;break;case 128:n=2;break;default:throw Error(`invalid SROUND value`)}switch(t.srPeriod=n,48&r){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw Error(`invalid SROUND value`)}r&=15,t.srThreshold=r===0?0:(r/8-.5)*n},function(t){let n,r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`S45ROUND[]`,r),t.round=Wt,192&r){case 0:n=Math.sqrt(2)/2;break;case 64:n=Math.sqrt(2);break;case 128:n=2*Math.sqrt(2);break;default:throw Error(`invalid S45ROUND value`)}switch(t.srPeriod=n,48&r){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw Error(`invalid S45ROUND value`)}r&=15,t.srThreshold=r===0?0:(r/8-.5)*n},void 0,void 0,function(t){e.DEBUG&&console.log(t.step,`ROFF[]`),t.round=Rt},void 0,function(t){e.DEBUG&&console.log(t.step,`RUTG[]`),t.round=Ht},function(t){e.DEBUG&&console.log(t.step,`RDTG[]`),t.round=Ut},nn,nn,void 0,void 0,void 0,void 0,void 0,function(t){let n=t.stack.pop();e.DEBUG&&console.log(t.step,`SCANCTRL[]`,n)},gn.bind(void 0,0),gn.bind(void 0,1),function(t){let n=t.stack,r=n.pop(),i=0;e.DEBUG&&console.log(t.step,`GETINFO[]`,r),1&r&&(i=35),32&r&&(i|=4096),n.push(i)},void 0,function(t){let n=t.stack,r=n.pop(),i=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,`ROLL[]`),n.push(i),n.push(r),n.push(a)},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`MAX[]`,r,i),n.push(Math.max(i,r))},function(t){let n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`MIN[]`,r,i),n.push(Math.min(i,r))},function(t){let n=t.stack.pop();e.DEBUG&&console.log(t.step,`SCANTYPE[]`,n)},function(t){let n=t.stack.pop(),r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`INSTCTRL[]`,n,r),n){case 1:t.inhibitGridFit=!!r;return;case 2:t.ignoreCvt=!!r;return;default:throw Error(`invalid INSTCTRL[] selector`)}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,J.bind(void 0,1),J.bind(void 0,2),J.bind(void 0,3),J.bind(void 0,4),J.bind(void 0,5),J.bind(void 0,6),J.bind(void 0,7),J.bind(void 0,8),Y.bind(void 0,1),Y.bind(void 0,2),Y.bind(void 0,3),Y.bind(void 0,4),Y.bind(void 0,5),Y.bind(void 0,6),Y.bind(void 0,7),Y.bind(void 0,8),X.bind(void 0,0,0,0,0,0),X.bind(void 0,0,0,0,0,1),X.bind(void 0,0,0,0,0,2),X.bind(void 0,0,0,0,0,3),X.bind(void 0,0,0,0,1,0),X.bind(void 0,0,0,0,1,1),X.bind(void 0,0,0,0,1,2),X.bind(void 0,0,0,0,1,3),X.bind(void 0,0,0,1,0,0),X.bind(void 0,0,0,1,0,1),X.bind(void 0,0,0,1,0,2),X.bind(void 0,0,0,1,0,3),X.bind(void 0,0,0,1,1,0),X.bind(void 0,0,0,1,1,1),X.bind(void 0,0,0,1,1,2),X.bind(void 0,0,0,1,1,3),X.bind(void 0,0,1,0,0,0),X.bind(void 0,0,1,0,0,1),X.bind(void 0,0,1,0,0,2),X.bind(void 0,0,1,0,0,3),X.bind(void 0,0,1,0,1,0),X.bind(void 0,0,1,0,1,1),X.bind(void 0,0,1,0,1,2),X.bind(void 0,0,1,0,1,3),X.bind(void 0,0,1,1,0,0),X.bind(void 0,0,1,1,0,1),X.bind(void 0,0,1,1,0,2),X.bind(void 0,0,1,1,0,3),X.bind(void 0,0,1,1,1,0),X.bind(void 0,0,1,1,1,1),X.bind(void 0,0,1,1,1,2),X.bind(void 0,0,1,1,1,3),X.bind(void 0,1,0,0,0,0),X.bind(void 0,1,0,0,0,1),X.bind(void 0,1,0,0,0,2),X.bind(void 0,1,0,0,0,3),X.bind(void 0,1,0,0,1,0),X.bind(void 0,1,0,0,1,1),X.bind(void 0,1,0,0,1,2),X.bind(void 0,1,0,0,1,3),X.bind(void 0,1,0,1,0,0),X.bind(void 0,1,0,1,0,1),X.bind(void 0,1,0,1,0,2),X.bind(void 0,1,0,1,0,3),X.bind(void 0,1,0,1,1,0),X.bind(void 0,1,0,1,1,1),X.bind(void 0,1,0,1,1,2),X.bind(void 0,1,0,1,1,3),X.bind(void 0,1,1,0,0,0),X.bind(void 0,1,1,0,0,1),X.bind(void 0,1,1,0,0,2),X.bind(void 0,1,1,0,0,3),X.bind(void 0,1,1,0,1,0),X.bind(void 0,1,1,0,1,1),X.bind(void 0,1,1,0,1,2),X.bind(void 0,1,1,0,1,3),X.bind(void 0,1,1,1,0,0),X.bind(void 0,1,1,1,0,1),X.bind(void 0,1,1,1,0,2),X.bind(void 0,1,1,1,0,3),X.bind(void 0,1,1,1,1,0),X.bind(void 0,1,1,1,1,1),X.bind(void 0,1,1,1,1,2),X.bind(void 0,1,1,1,1,3)];let _n=Lt;function Z(e){(e||={}).empty||(Nt(e.familyName,`When creating a new Font object, familyName is required.`),Nt(e.styleName,`When creating a new Font object, styleName is required.`),Nt(e.unitsPerEm,`When creating a new Font object, unitsPerEm is required.`),Nt(e.ascender,`When creating a new Font object, ascender is required.`),Nt(e.descender,`When creating a new Font object, descender is required.`),Nt(e.descender<0,`Descender should be negative (e.g. -512).`),this.names={fontFamily:{en:e.familyName||` `},fontSubfamily:{en:e.styleName||` `},fullName:{en:e.fullName||e.familyName+` `+e.styleName},postScriptName:{en:e.postScriptName||e.familyName+e.styleName},designer:{en:e.designer||` `},designerURL:{en:e.designerURL||` `},manufacturer:{en:e.manufacturer||` `},manufacturerURL:{en:e.manufacturerURL||` `},license:{en:e.license||` `},licenseURL:{en:e.licenseURL||` `},version:{en:e.version||`Version 0.1`},description:{en:e.description||` `},copyright:{en:e.copyright||` `},trademark:{en:e.trademark||` `}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new Te.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new Ot(this),this.substitution=new jt(this),this.tables=this.tables||{},Object.defineProperty(this,`hinting`,{get:function(){return this._hinting?this._hinting:this.outlinesFormat===`truetype`?this._hinting=new _n(this):void 0}})}Z.prototype.hasChar=function(e){return this.encoding.charToGlyphIndex(e)!==null},Z.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Z.prototype.charToGlyph=function(e){let t=this.charToGlyphIndex(e),n=this.glyphs.get(t);return n||=this.glyphs.get(0),n},Z.prototype.stringToGlyphs=function(e,t){t||=this.defaultRenderOptions;let n=[];for(let t=0;t<e.length;t+=1){let r=e[t];n.push(this.charToGlyphIndex(r))}let r=n.length;if(t.features){let e=t.script||this.substitution.getDefaultScriptName(),i=[];t.features.liga&&(i=i.concat(this.substitution.getFeature(`liga`,e,t.language))),t.features.rlig&&(i=i.concat(this.substitution.getFeature(`rlig`,e,t.language)));for(let e=0;e<r;e+=1)for(let t=0;t<i.length;t++){let a=i[t],o=a.sub,s=o.length,c=0;for(;c<s&&o[c]===n[e+c];)c++;c===s&&(n.splice(e,s,a.by),r=r-s+1)}}let i=Array(r),a=this.glyphs.get(0);for(let e=0;e<r;e+=1)i[e]=this.glyphs.get(n[e])||a;return i},Z.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Z.prototype.nameToGlyph=function(e){let t=this.nameToGlyphIndex(e),n=this.glyphs.get(t);return n||=this.glyphs.get(0),n},Z.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):``},Z.prototype.getKerningValue=function(e,t){return e=e.index||e,t=t.index||t,this.kerningPairs[e+`,`+t]||0},Z.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Z.prototype.forEachGlyph=function(e,t,n,r,i,a){t=t===void 0?0:t,n=n===void 0?0:n,r=r===void 0?72:r,i||=this.defaultRenderOptions;let o=1/this.unitsPerEm*r,s=this.stringToGlyphs(e,i),c;if(i.kerning){let e=i.script||this.position.getDefaultScriptName();c=this.position.getKerningTables(e,i.language)}for(let e=0;e<s.length;e+=1){let l=s[e];a.call(this,l,t,n,r,i),l.advanceWidth&&(t+=l.advanceWidth*o),i.kerning&&e<s.length-1&&(t+=(c?this.position.getKerningValue(c,l.index,s[e+1].index):this.getKerningValue(l,s[e+1]))*o),i.letterSpacing?t+=i.letterSpacing*r:i.tracking&&(t+=i.tracking/1e3*r)}return t},Z.prototype.getPath=function(e,t,n,r,i){let a=new u;return this.forEachGlyph(e,t,n,r,i,(function(e,t,n,r){let o=e.getPath(t,n,r,i,this);a.extend(o)})),a},Z.prototype.getPaths=function(e,t,n,r,i){let a=[];return this.forEachGlyph(e,t,n,r,i,(function(e,t,n,r){let o=e.getPath(t,n,r,i,this);a.push(o)})),a},Z.prototype.getAdvanceWidth=function(e,t,n){return this.forEachGlyph(e,0,0,t,n,(function(){}))},Z.prototype.draw=function(e,t,n,r,i,a){this.getPath(t,n,r,i,a).draw(e)},Z.prototype.drawPoints=function(e,t,n,r,i,a){this.forEachGlyph(t,n,r,i,a,(function(t,n,r,i){t.drawPoints(e,n,r,i)}))},Z.prototype.drawMetrics=function(e,t,n,r,i,a){this.forEachGlyph(t,n,r,i,a,(function(t,n,r,i){t.drawMetrics(e,n,r,i)}))},Z.prototype.getEnglishName=function(e){let t=this.names[e];if(t)return t.en},Z.prototype.validate=function(){let e=[],t=this;function n(t,n){t||e.push(n)}function r(e){let r=t.getEnglishName(e);n(r&&r.trim().length>0,`No English `+e+` specified.`)}r(`fontFamily`),r(`weightName`),r(`manufacturer`),r(`copyright`),r(`version`),n(this.unitsPerEm>0,`No unitsPerEm specified.`)},Z.prototype.toTables=function(){return xt(this)},Z.prototype.toBuffer=function(){return console.warn(`Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.`),this.toArrayBuffer()},Z.prototype.toArrayBuffer=function(){let e=this.toTables().encode(),t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let t=0;t<e.length;t++)n[t]=e[t];return t},Z.prototype.download=function(e){let t=this.getEnglishName(`fontFamily`),n=this.getEnglishName(`fontSubfamily`);e||=t.replace(/\s/g,``)+`-`+n+`.otf`;let i=this.toArrayBuffer();if(typeof window<`u`)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,i.byteLength,(function(t){t.root.getFile(e,{create:!0},(function(e){e.createWriter((function(t){let n=new DataView(i),r=new Blob([n],{type:`font/opentype`});t.write(r),t.addEventListener(`writeend`,(function(){location.href=e.toURL()}),!1)}))}))}),(function(e){throw Error(e.name+`: `+e.message)}));else{let t=r(89),n=function(e){let t=new Buffer(e.byteLength),n=new Uint8Array(e);for(let e=0;e<t.length;++e)t[e]=n[e];return t}(i);t.writeFileSync(e,n)}},Z.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Z.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Z.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};let vn=Z;function yn(e,t){let n=JSON.stringify(e),r=256;for(let e in t){let i=parseInt(e);if(i&&!(i<256)){if(JSON.stringify(t[e])===n)return i;r<=i&&(r=i+1)}}return t[r]=e,r}function bn(e,t,n){let r=yn(t.name,n);return[{name:`tag_`+e,type:`TAG`,value:t.tag},{name:`minValue_`+e,type:`FIXED`,value:t.minValue<<16},{name:`defaultValue_`+e,type:`FIXED`,value:t.defaultValue<<16},{name:`maxValue_`+e,type:`FIXED`,value:t.maxValue<<16},{name:`flags_`+e,type:`USHORT`,value:0},{name:`nameID_`+e,type:`USHORT`,value:r}]}function xn(e,t,n){let r={},i=new L.Parser(e,t);return r.tag=i.parseTag(),r.minValue=i.parseFixed(),r.defaultValue=i.parseFixed(),r.maxValue=i.parseFixed(),i.skip(`uShort`,1),r.name=n[i.parseUShort()]||{},r}function Sn(e,t,n,r){let i=[{name:`nameID_`+e,type:`USHORT`,value:yn(t.name,r)},{name:`flags_`+e,type:`USHORT`,value:0}];for(let r=0;r<n.length;++r){let a=n[r].tag;i.push({name:`axis_`+e+` `+a,type:`FIXED`,value:t.coordinates[a]<<16})}return i}function Cn(e,t,n,r){let i={},a=new L.Parser(e,t);i.name=r[a.parseUShort()]||{},a.skip(`uShort`,1),i.coordinates={};for(let e=0;e<n.length;++e)i.coordinates[n[e].tag]=a.parseFixed();return i}let wn={make:function(e,t){let n=new F.Table(`fvar`,[{name:`version`,type:`ULONG`,value:65536},{name:`offsetToData`,type:`USHORT`,value:0},{name:`countSizePairs`,type:`USHORT`,value:2},{name:`axisCount`,type:`USHORT`,value:e.axes.length},{name:`axisSize`,type:`USHORT`,value:20},{name:`instanceCount`,type:`USHORT`,value:e.instances.length},{name:`instanceSize`,type:`USHORT`,value:4+4*e.axes.length}]);n.offsetToData=n.sizeOf();for(let r=0;r<e.axes.length;r++)n.fields=n.fields.concat(bn(r,e.axes[r],t));for(let r=0;r<e.instances.length;r++)n.fields=n.fields.concat(Sn(r,e.instances[r],e.axes,t));return n},parse:function(e,t,n){let r=new L.Parser(e,t),i=r.parseULong();p.argument(i===65536,`Unsupported fvar table version.`);let a=r.parseOffset16();r.skip(`uShort`,1);let o=r.parseUShort(),s=r.parseUShort(),c=r.parseUShort(),l=r.parseUShort(),u=[];for(let r=0;r<o;r++)u.push(xn(e,t+a+r*s,n));let d=[],f=t+a+o*s;for(let t=0;t<c;t++)d.push(Cn(e,f+t*l,u,n));return{axes:u,instances:d}}},Q=Array(10);Q[1]=function(){let e=this.offset+this.relativeOffset,t=this.parseUShort();return t===1?{posFormat:1,coverage:this.parsePointer(I.coverage),value:this.parseValueRecord()}:t===2?{posFormat:2,coverage:this.parsePointer(I.coverage),values:this.parseValueRecordList()}:void p.assert(!1,`0x`+e.toString(16)+`: GPOS lookup type 1 format must be 1 or 2.`)},Q[2]=function(){let e=this.offset+this.relativeOffset,t=this.parseUShort(),n=this.parsePointer(I.coverage),r=this.parseUShort(),i=this.parseUShort();if(t===1)return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,pairSets:this.parseList(I.pointer(I.list((function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}}))))};if(t===2){let e=this.parsePointer(I.classDef),a=this.parsePointer(I.classDef),o=this.parseUShort(),s=this.parseUShort();return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,classDef1:e,classDef2:a,class1Count:o,class2Count:s,classRecords:this.parseList(o,I.list(s,(function(){return{value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}})))}}p.assert(!1,`0x`+e.toString(16)+`: GPOS lookup type 2 format must be 1 or 2.`)},Q[3]=function(){return{error:`GPOS Lookup 3 not supported`}},Q[4]=function(){return{error:`GPOS Lookup 4 not supported`}},Q[5]=function(){return{error:`GPOS Lookup 5 not supported`}},Q[6]=function(){return{error:`GPOS Lookup 6 not supported`}},Q[7]=function(){return{error:`GPOS Lookup 7 not supported`}},Q[8]=function(){return{error:`GPOS Lookup 8 not supported`}},Q[9]=function(){return{error:`GPOS Lookup 9 not supported`}};let Tn=Array(10),En={parse:function(e,t){let n=new I(e,t||=0),r=n.parseVersion(1);return p.argument(r===1||r===1.1,`Unsupported GPOS table version `+r),r===1?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(Q)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(Q),variations:n.parseFeatureVariationsList()}},make:function(e){return new F.Table(`GPOS`,[{name:`version`,type:`ULONG`,value:65536},{name:`scripts`,type:`TABLE`,value:new F.ScriptList(e.scripts)},{name:`features`,type:`TABLE`,value:new F.FeatureList(e.features)},{name:`lookups`,type:`TABLE`,value:new F.LookupList(e.lookups,Tn)}])}},Dn={parse:function(e,t){let n=new L.Parser(e,t),r=n.parseUShort();if(r===0)return function(e){let t={};e.skip(`uShort`);let n=e.parseUShort();p.argument(n===0,`Unsupported kern sub-table version.`),e.skip(`uShort`,2);let r=e.parseUShort();e.skip(`uShort`,3);for(let n=0;n<r;n+=1){let n=e.parseUShort(),r=e.parseUShort(),i=e.parseShort();t[n+`,`+r]=i}return t}(n);if(r===1)return function(e){let t={};e.skip(`uShort`),e.parseULong()>1&&console.warn(`Only the first kern subtable is supported.`),e.skip(`uLong`);let n=255&e.parseUShort();if(e.skip(`uShort`),n===0){let n=e.parseUShort();e.skip(`uShort`,3);for(let r=0;r<n;r+=1){let n=e.parseUShort(),r=e.parseUShort(),i=e.parseShort();t[n+`,`+r]=i}}return t}(n);throw Error(`Unsupported kern table version (`+r+`).`)}},On={parse:function(e,t,n,r){let i=new L.Parser(e,t),a=r?i.parseUShort:i.parseULong,o=[];for(let e=0;e<n+1;e+=1){let e=a.call(i);r&&(e*=2),o.push(e)}return o}};function kn(e,t){r(89).readFile(e,(function(e,n){if(e)return t(e.message);t(null,Mt(n))}))}function An(e,t){let n=new XMLHttpRequest;n.open(`get`,e,!0),n.responseType=`arraybuffer`,n.onload=function(){return n.response?t(null,n.response):t(`Font could not be loaded: `+n.statusText)},n.onerror=function(){t(`Font could not be loaded`)},n.send()}function jn(e,t){let n=[],r=12;for(let i=0;i<t;i+=1){let t=L.getTag(e,r),i=L.getULong(e,r+4),a=L.getULong(e,r+8),o=L.getULong(e,r+12);n.push({tag:t,checksum:i,offset:a,length:o,compression:!1}),r+=16}return n}function $(e,t){if(t.compression===`WOFF`){let n=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),r=new Uint8Array(t.length);if(a()(n,r),r.byteLength!==t.length)throw Error(`Decompression error: `+t.tag+` decompressed length doesn't match recorded length`);return{data:new DataView(r.buffer,0),offset:0}}return{data:e,offset:t.offset}}function Mn(e){let t,n,r=new vn({empty:!0}),i=new DataView(e,0),a,o=[],s=L.getTag(i,0);if(s===`\0\0\0`||s===`true`||s===`typ1`)r.outlinesFormat=`truetype`,a=L.getUShort(i,4),o=jn(i,a);else if(s===`OTTO`)r.outlinesFormat=`cff`,a=L.getUShort(i,4),o=jn(i,a);else{if(s!==`wOFF`)throw Error(`Unsupported OpenType signature `+s);{let e=L.getTag(i,4);if(e===`\0\0\0`)r.outlinesFormat=`truetype`;else{if(e!==`OTTO`)throw Error(`Unsupported OpenType flavor `+s);r.outlinesFormat=`cff`}a=L.getUShort(i,12),o=function(e,t){let n=[],r=44;for(let i=0;i<t;i+=1){let t=L.getTag(e,r),i=L.getULong(e,r+4),a=L.getULong(e,r+8),o=L.getULong(e,r+12),s;s=a<o&&`WOFF`,n.push({tag:t,offset:i,compression:s,compressedLength:a,length:o}),r+=20}return n}(i,a)}}let c,l,u,d,f,p,m,h,g,_,v;for(let e=0;e<a;e+=1){let a=o[e],s;switch(a.tag){case`cmap`:s=$(i,a),r.tables.cmap=se.parse(s.data,s.offset),r.encoding=new fe(r.tables.cmap);break;case`cvt `:s=$(i,a),v=new L.Parser(s.data,s.offset),r.tables.cvt=v.parseShortList(a.length/2);break;case`fvar`:l=a;break;case`fpgm`:s=$(i,a),v=new L.Parser(s.data,s.offset),r.tables.fpgm=v.parseByteList(a.length);break;case`head`:s=$(i,a),r.tables.head=We.parse(s.data,s.offset),r.unitsPerEm=r.tables.head.unitsPerEm,t=r.tables.head.indexToLocFormat;break;case`hhea`:s=$(i,a),r.tables.hhea=Ge.parse(s.data,s.offset),r.ascender=r.tables.hhea.ascender,r.descender=r.tables.hhea.descender,r.numberOfHMetrics=r.tables.hhea.numberOfHMetrics;break;case`hmtx`:p=a;break;case`ltag`:s=$(i,a),n=qe.parse(s.data,s.offset);break;case`maxp`:s=$(i,a),r.tables.maxp=Je.parse(s.data,s.offset),r.numGlyphs=r.tables.maxp.numGlyphs;break;case`name`:g=a;break;case`OS/2`:s=$(i,a),r.tables.os2=lt.parse(s.data,s.offset);break;case`post`:s=$(i,a),r.tables.post=ut.parse(s.data,s.offset),r.glyphNames=new me(r.tables.post);break;case`prep`:s=$(i,a),v=new L.Parser(s.data,s.offset),r.tables.prep=v.parseByteList(a.length);break;case`glyf`:u=a;break;case`loca`:h=a;break;case`CFF `:c=a;break;case`kern`:m=a;break;case`GPOS`:d=a;break;case`GSUB`:f=a;break;case`meta`:_=a}}let y=$(i,g);if(r.tables.name=st.parse(y.data,y.offset,n),r.names=r.tables.name,u&&h){let e=t===0,n=$(i,h),a=On.parse(n.data,n.offset,r.numGlyphs,e),o=$(i,u);r.glyphs=xe.parse(o.data,o.offset,a,r)}else{if(!c)throw Error(`Font doesn't contain TrueType or CFF outlines.`);{let e=$(i,c);Ue.parse(e.data,e.offset,r)}}let b=$(i,p);if(Ke.parse(b.data,b.offset,r.numberOfHMetrics,r.numGlyphs,r.glyphs),function(e){let t,n=e.tables.cmap.glyphIndexMap,r=Object.keys(n);for(let i=0;i<r.length;i+=1){let a=r[i],o=n[a];t=e.glyphs.get(o),t.addUnicode(parseInt(a))}for(let n=0;n<e.glyphs.length;n+=1)t=e.glyphs.get(n),e.cffEncoding?e.isCIDFont?t.name=`gid`+n:t.name=e.cffEncoding.charset[n]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(n))}(r),m){let e=$(i,m);r.kerningPairs=Dn.parse(e.data,e.offset)}else r.kerningPairs={};if(d){let e=$(i,d);r.tables.gpos=En.parse(e.data,e.offset)}if(f){let e=$(i,f);r.tables.gsub=pt.parse(e.data,e.offset)}if(l){let e=$(i,l);r.tables.fvar=wn.parse(e.data,e.offset,r.names)}if(_){let e=$(i,_);r.tables.meta=mt.parse(e.data,e.offset),r.metas=r.tables.meta}return r}function Nn(e,t){(typeof window>`u`?kn:An)(e,(function(e,n){if(e)return t(e);let r;try{r=Mn(n)}catch(e){return t(e,null)}return t(null,r)}))}function Pn(e){return Mn(Mt(r(89).readFileSync(e)))}},896:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(978);class i extends r.Writable{constructor(){super(...arguments),this.offset=0,this._waiters=[],this._closed=!1}_write(e,t,n){let r=0,i=()=>{for(;this._waiters.length>0;){let t=this._waiters[0];if(this._buffer){let i=this._buffer.size-this._buffer.offset;if(!(i+e.length>=t.size)){if(!t.skip){let t=Buffer.alloc(i+e.length);this._buffer.buf.copy(t,0,this._buffer.offset,this._buffer.size),e.copy(t,i,0,e.length),this._buffer.buf=t}this._buffer.offset=0,this._buffer.size=i+e.length,n();break}if(t.skip)this._buffer=void 0,t.resolve();else{let n=Math.min(i,t.size),r=Buffer.alloc(t.size);this._buffer.buf.copy(r,0,this._buffer.offset,this._buffer.offset+n),e.copy(r,n,0,t.size-n),t.resolve(r)}if(this.offset+=t.size,this._waiters.shift(),this._buffer=void 0,i+e.length===t.size){n();break}r+=t.size-i}else{if(!(e.length-r>=t.size)){this._buffer={buf:t.skip?void 0:e.slice(r),offset:0,size:e.length-r},r=e.length,n();break}if(t.skip?t.resolve():t.resolve(e.slice(r,r+t.size)),this.offset+=t.size,this._waiters.shift(),r+=t.size,e.length===r){n();break}}}this._processTrigger=e.length-r>0?i:void 0};i()}_destroy(e,t){this._processTrigger=void 0;for(let t of this._waiters)t.reject(e||Error(`stream destroyed`));this._waiters=[],this._closed=!0}_final(e){this._processTrigger=void 0;for(let e of this._waiters)e.reject(Error(`not enough data in stream`));this._waiters=[],this._closed=!0}read(e){return new Promise(((t,n)=>{this._closed&&n(Error(`stream is closed`)),this._waiters.push({resolve:t,reject:n,size:e,skip:!1}),this._processTrigger&&this._processTrigger()}))}skip(e){return new Promise(((t,n)=>{this._closed&&n(Error(`stream is closed`)),this._waiters.push({resolve:t,reject:n,size:e,skip:!0}),this._processTrigger&&this._processTrigger()}))}}function a(){return new i}e.exports=Object.assign(a,{default:a}),t.default=a},311:e=>{function t(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function n(e,n){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=n,this.destLen=0,this.ltree=new t,this.dtree=new t}var r=new t,i=new t,a=new Uint8Array(30),o=new Uint16Array(30),s=new Uint8Array(30),c=new Uint16Array(30),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=new t,d=new Uint8Array(320);function f(e,t,n,r){var i,a;for(i=0;i<n;++i)e[i]=0;for(i=0;i<30-n;++i)e[i+n]=i/n|0;for(a=r,i=0;i<30;++i)t[i]=a,a+=1<<e[i]}var p=new Uint16Array(16);function m(e,t,n,r){var i,a;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<r;++i)e.table[t[n+i]]++;for(e.table[0]=0,a=0,i=0;i<16;++i)p[i]=a,a+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[p[t[n+i]]++]=i)}function h(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function g(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function _(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,i=0,a=e.tag;do r=2*r+(1&a),a>>>=1,++i,n+=t.table[i],r-=t.table[i];while(r>=0);return e.tag=a,e.bitcount-=i,t.trans[n+r]}function v(e,t,n){var r,i,a,o,s,c;for(r=g(e,5,257),i=g(e,5,1),a=g(e,4,4),o=0;o<19;++o)d[o]=0;for(o=0;o<a;++o){var f=g(e,3,0);d[l[o]]=f}for(m(u,d,0,19),s=0;s<r+i;){var p=_(e,u);switch(p){case 16:var h=d[s-1];for(c=g(e,2,3);c;--c)d[s++]=h;break;case 17:for(c=g(e,3,3);c;--c)d[s++]=0;break;case 18:for(c=g(e,7,11);c;--c)d[s++]=0;break;default:d[s++]=p}}m(t,d,0,r),m(n,d,r,i)}function y(e,t,n){for(;;){var r,i,l,u,d=_(e,t);if(d===256)return 0;if(d<256)e.dest[e.destLen++]=d;else for(r=g(e,a[d-=257],o[d]),i=_(e,n),u=l=e.destLen-g(e,s[i],c[i]);u<l+r;++u)e.dest[e.destLen++]=e.dest[u]}}function b(e){for(var t,n;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return-3;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,0}(function(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n})(r,i),f(a,o,4,3),f(s,c,2,1),a[28]=0,o[28]=258,e.exports=function(e,t){var a,o,s=new n(e,t);do{switch(a=h(s),g(s,2,0)){case 0:o=b(s);break;case 1:o=y(s,r,i);break;case 2:v(s,s.ltree,s.dtree),o=y(s,s.ltree,s.dtree);break;default:o=-3}if(o!==0)throw Error(`Data error`)}while(!a);return s.destLen<s.dest.length?typeof s.dest.slice==`function`?s.dest.slice(0,s.destLen):s.dest.subarray(0,s.destLen):s.dest}},371:e=>{e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},411:(e,t,n)=>{function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach==`function`)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function a(e,t){e.tail=new s(t,e.tail,null,e),e.head||=e.tail,e.length++}function o(e,t){e.head=new s(t,null,e.head,e),e.tail||=e.head,e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error(`removing node which does not belong to this list`);var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||=e,this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||=e,this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t||=this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t||=this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value},r.prototype.map=function(e,t){t||=this;for(var n=new r,i=this.head;i!==null;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t||=this;for(var n=new r,i=this.tail;i!==null;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw TypeError(`Reduce of empty list with no initial value`);r=this.head.next,n=this.head.value}for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw TypeError(`Reduce of empty list with no initial value`);r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t||=this.length)<0&&(t+=this.length),(e||=0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(;a!==null&&i<t;i++,a=a.next)n.push(a.value);return n},r.prototype.sliceReverse=function(e,t){(t||=this.length)<0&&(t+=this.length),(e||=0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;a!==null&&i>t;i--)a=a.prev;for(;a!==null&&i>e;i--,a=a.prev)n.push(a.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,a=this.head;a!==null&&r<e;r++)a=a.next;var o=[];for(r=0;a&&r<t;r++)o.push(a.value),a=this.removeNode(a);for(a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev),r=0;r<n.length;r++)a=i(this,a,n[r]);return o},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(371)(r)}catch{}},109:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0});let r=n(98),i=n(104),a;t.default=async function(e,t){var n;if(!a){if(typeof navigator<`u`&&`fonts`in navigator){try{let e=await(n=navigator.permissions).request?.call(n,{name:`local-fonts`});if(e&&e.state!==`granted`)throw Error(`Permission to access local fonts not granted.`)}catch(e){if(e.name!==`TypeError`)throw e}let e={};try{let t=await navigator.fonts.query();for(let n of t)e.hasOwnProperty(n.family)||(e[n.family]=[]),e[n.family].push(n);a=Promise.resolve(e)}catch(e){console.error(e.name,e.message)}}else if(typeof window<`u`&&`queryLocalFonts`in window){let e={};try{let t=await window.queryLocalFonts();for(let n of t)e.hasOwnProperty(n.family)||(e[n.family]=[]),e[n.family].push(n);a=Promise.resolve(e)}catch(e){console.error(e.name,e.message)}}a||=Promise.resolve({})}let s=await a;for(let n of(0,i.default)(e)){if(o.includes(n))return;if(s.hasOwnProperty(n)&&s[n].length>0){let e=s[n][0];if(`blob`in e){let n=await(await e.blob()).arrayBuffer();return(0,r.loadBuffer)(n,{cacheSize:t})}return}}};let o=[`serif`,`sans-serif`,`cursive`,`fantasy`,`monospace`,`system-ui`,`emoji`,`math`,`fangsong`]},833:(e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.enableLigatures=void 0;let r=n(109);t.enableLigatures=function(e,t=[]){let n,i,a,o=0;return e.registerCharacterJoiner((s=>{let c=e.options.fontFamily;if(c&&(o===0||n!==c)){i=void 0,o=1,n=c;let t=n;(0,r.default)(t,1e5).then((n=>{t===e.options.fontFamily&&(o=2,i=n,n&&e.refresh(0,e.rows-1))})).catch((n=>{t===e.options.fontFamily&&(o=3,e.options.logLevel===`debug`&&console.debug(a,Error(`Failure while loading font`)),i=void 0,a=n)}))}return i&&o===2?i.findLigatureRanges(s).map((e=>[e[0],e[1]])):function(e,t){let n=[];for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)if(e.startsWith(t[i],r)){n.push([r,r+t[i].length]),r+=t[i].length-1;break}return n}(s,t)}))}},104:(e,t)=>{function n(e,t){let n=``,r=!1;for(;e.offset<e.input.length;){let a=e.input[e.offset++];if(r)/[\dA-Fa-f]/.test(a)?(e.offset--,n+=i(e)):a!==`
|
|
2
|
+
`&&(n+=a),r=!1;else switch(a){case t:return n;case`\\`:r=!0;break;default:n+=a}}throw Error(`Unterminated string`)}function r(e){let t=``,n=!1;for(;e.offset<e.input.length;){let r=e.input[e.offset++];if(n)/[\dA-Fa-f]/.test(r)?(e.offset--,t+=i(e)):t+=r,n=!1;else switch(r){case`\\`:n=!0;break;case`,`:return t;default:/\s/.test(r)?t.endsWith(` `)||(t+=` `):t+=r}}return t}function i(e){let t=``;for(;e.offset<e.input.length;){let n=e.input[e.offset++];if(/\s/.test(n))return a(t);if(t.length>=6||!/[\dA-Fa-f]/.test(n))return e.offset--,a(t);t+=n}return a(t)}function a(e){return String.fromCodePoint(parseInt(e,16))}Object.defineProperty(t,`__esModule`,{value:!0}),t.default=function(e){if(typeof e!=`string`)throw Error(`Font family must be a string`);let t={input:e,offset:0},i=[],a=``;for(;t.offset<t.input.length;){let e=t.input[t.offset++];switch(e){case`'`:case`"`:a+=n(t,e);break;case`,`:i.push(a),a=``;break;default:/\s/.test(e)||(t.offset--,a+=r(t),i.push(a),a=``)}}return i}},89:e=>{e.exports=t},56:e=>{e.exports=n},978:e=>{e.exports=i},269:e=>{e.exports=r},82:()=>{},456:()=>{}},o={};function s(e){var t=o[e];if(t!==void 0)return t.exports;var n=o[e]={exports:{}};return a[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})};var c={};return(()=>{var e=c;Object.defineProperty(e,`__esModule`,{value:!0}),e.LigaturesAddon=void 0;let t=s(833);e.LigaturesAddon=class{constructor(e){this._fallbackLigatures=(e?.fallbackLigatures||`<--.<---.<<-.<-.->.->>.-->.--->.<==.<===.<<=.<=.=>.=>>.==>.===>.>=.>>=.<->.<-->.<--->.<---->.<=>.<==>.<===>.<====>.-------->.<~~.<~.~>.~~>.::.:::.==.!=.===.!==.:=.:-.:+.<*.<*>.*>.<|.<|>.|>.+:.-:.=:.:>.++.+++.<!--.<!---.<***>`.split(`.`)).sort(((e,t)=>t.length-e.length))}activate(e){this._terminal=e,this._characterJoinerId=(0,t.enableLigatures)(e,this._fallbackLigatures)}dispose(){var e;this._characterJoinerId!==void 0&&((e=this._terminal)==null||e.deregisterCharacterJoiner(this._characterJoinerId),this._characterJoinerId=void 0)}}})(),c})()))}));export default n();
|