UNPKG

@thebase/ui

Version:

CDN-installable Owl and Bootstrap 5 UI component library.

998 lines • 580 kB
import{a as at}from"./chunk-2XECCVBE.js";import"./chunk-2FDN6WYA.js";import"./chunk-IPNUYGNC.js";import{e as Up,f as Wp,g as jp,h as Gp}from"./chunk-7YQMEBMQ.js";import{$ as Dp,A as ko,Ba as Vp,Ca as Hp,D as qa,Da as zp,E as Ua,Ea as Za,F as je,Fa as Fp,G as xp,Ga as $p,H as it,I as kp,Ia as _o,Ja as qp,K as Wa,L as We,M as Jo,N as _p,O as ja,P as Cp,Q as Sp,R as Ep,S as Tp,T as Ap,V as Mp,W as Np,Y as ts,Z as Ga,_ as Op,a as Fa,aa as Ip,ba as Lp,ea as de,i as Uc,j as gn,k as mp,ka as Ka,l as vp,m as gp,ma as Rp,na as R,o as yp,oa as Pp,p as bp,pa as Ya,q as ve,qa as rs,r as Vn,ra as Gc,s as Xo,sa as Kc,t as wp,u as Wc,v as jc,w as lr,x as $a,xa as Bp,y as $t,z as Hn}from"./chunk-2EZOVVY4.js";import{a as Kf,c as Yf}from"./chunk-JA3LDFRC.js";import{c as Zf,e as Xf}from"./chunk-7GZI2HGN.js";import{b as ep,h as tp,i as zc}from"./chunk-DWBFWB4X.js";import{a as bo,b as wo}from"./chunk-VFZ7ST3H.js";import{a as rp,b as np}from"./chunk-ZIYJY6SA.js";import{b as Qi,e as vn}from"./chunk-MAWHENWJ.js";import{a as cp,c as Zo,f as up,g as dp,h as hp,i as es,j as fp}from"./chunk-TOUPIB5N.js";import"./chunk-DLMWAKB5.js";import{b as op,c as xo,e as ip,k as sp,l as ap,m as Fc,n as $c,o as lp}from"./chunk-ZGHJJLEG.js";import{b as qc,d as pp}from"./chunk-SZCOI4YV.js";import{a as Jf,b as Qf,c as Hc}from"./chunk-K2ROPYIW.js";import"./chunk-DO4RO6KD.js";import"./chunk-U6C7MJSD.js";import{A as Pf,B as Go,C as Ko,E as Bf,F as Vf,G as Hf,H as zf,I as Ff,J as $f,a as Rc,b as Df,ba as qf,d as Pc,e as Bc,g as If,h as Lf,m as Vc,z as Rf}from"./chunk-TFG5E5LZ.js";import"./chunk-NX66TKTH.js";import{Ba as yo,Ca as Nf,D as hn,Da as yt,Ea as ar,Fa as pn,Ga as mn,Ha as Lc,J as Nc,O as fn,U as Mf,Wa as Of,b as Cc,ba as Oc,c as Sc,f as Ef,fa as Dc,h as Ec,i as Tc,k as Tf,ka as Ic,m as Va,n as Ac,p as Af,pa as Ji,q as Mc,s as dn,y as Ha}from"./chunk-2TBUBNYK.js";import{a as za,b as Yo,h as Uf}from"./chunk-LDCXUKI3.js";import{a as Wf}from"./chunk-MYC7FIB2.js";import{b as jf,g as Gf}from"./chunk-5ILY25KD.js";import{D as Sf,d as jo,f as _c,n as Pr,r as Br,t as Ue,u as Ba,z as Xi}from"./chunk-R43NMSZO.js";import{C as Pa,Ka as bf,P as Xe,Q as Ki,Qa as ne,S as df,T as xr,U as kr,W as hf,a as of,aa as ff,ba as pf,da as mf,db as wf,ea as Yi,f as sf,fb as xf,g as af,h as xc,ha as Rr,na as vf,oa as gf,p as un,qa as Kt,ra as Yt,rb as kf,sa as yf,sb as _f,ta as Pe,u as Gi,wa as kc,wb as Zi,xb as Cf,y as lf}from"./chunk-XNCXGIZE.js";import{b as go,k as cf,m as uf}from"./chunk-OQJVATGH.js";import"./chunk-ILE44FN6.js";import"./chunk-23NN352E.js";function V(t){return new Rp(qp.define(t))}function zn(t){return import("./dist-R2X7SQDZ.js").then(e=>e.sql({dialect:e[t]}))}var Kp=[R.of({name:"C",extensions:["c","h","ino"],load(){return import("./dist-5QJ34QYN.js").then(t=>t.cpp())}}),R.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return import("./dist-5QJ34QYN.js").then(t=>t.cpp())}}),R.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return zn("Cassandra")}}),R.of({name:"CSS",extensions:["css"],load(){return import("./dist-X22ABN6K.js").then(t=>t.css())}}),R.of({name:"Go",extensions:["go"],load(){return import("./dist-VEPIKH2V.js").then(t=>t.go())}}),R.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return import("./dist-OPQE4Z43.js").then(t=>t.html())}}),R.of({name:"Java",extensions:["java"],load(){return import("./dist-DERKVUMC.js").then(t=>t.java())}}),R.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return import("./dist-6TS6SSJR.js").then(t=>t.javascript())}}),R.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return import("./dist-P4TF777A.js").then(t=>t.jinja())}}),R.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return import("./dist-7JICPTVR.js").then(t=>t.json())}}),R.of({name:"JSX",extensions:["jsx"],load(){return import("./dist-6TS6SSJR.js").then(t=>t.javascript({jsx:!0}))}}),R.of({name:"LESS",extensions:["less"],load(){return import("./dist-24V6SL4V.js").then(t=>t.less())}}),R.of({name:"Liquid",extensions:["liquid"],load(){return import("./dist-RE2FJN7S.js").then(t=>t.liquid())}}),R.of({name:"MariaDB SQL",load(){return zn("MariaSQL")}}),R.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return import("./dist-PEJBUU6H.js").then(t=>t.markdown())}}),R.of({name:"MS SQL",load(){return zn("MSSQL")}}),R.of({name:"MySQL",load(){return zn("MySQL")}}),R.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return import("./dist-4QC5HFKT.js").then(t=>t.php())}}),R.of({name:"PLSQL",extensions:["pls"],load(){return zn("PLSQL")}}),R.of({name:"PostgreSQL",load(){return zn("PostgreSQL")}}),R.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return import("./dist-3LQISA7E.js").then(t=>t.python())}}),R.of({name:"Rust",extensions:["rs"],load(){return import("./dist-NYN7ZJXK.js").then(t=>t.rust())}}),R.of({name:"Sass",extensions:["sass"],load(){return import("./dist-657PKZSF.js").then(t=>t.sass({indented:!0}))}}),R.of({name:"SCSS",extensions:["scss"],load(){return import("./dist-657PKZSF.js").then(t=>t.sass())}}),R.of({name:"SQL",extensions:["sql"],load(){return zn("StandardSQL")}}),R.of({name:"SQLite",load(){return zn("SQLite")}}),R.of({name:"TSX",extensions:["tsx"],load(){return import("./dist-6TS6SSJR.js").then(t=>t.javascript({jsx:!0,typescript:!0}))}}),R.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return import("./dist-6TS6SSJR.js").then(t=>t.javascript({typescript:!0}))}}),R.of({name:"WebAssembly",extensions:["wat","wast"],load(){return import("./dist-YH3NI4VG.js").then(t=>t.wast())}}),R.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return import("./dist-562GM6I6.js").then(t=>t.xml())}}),R.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return import("./dist-34ZP4UZ2.js").then(t=>t.yaml())}}),R.of({name:"APL",extensions:["dyalog","apl"],load(){return import("./apl-A2CKMNHU.js").then(t=>V(t.apl))}}),R.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return import("./asciiarmor-LYWOUGA4.js").then(t=>V(t.asciiArmor))}}),R.of({name:"ASN.1",extensions:["asn","asn1"],load(){return import("./asn1-NB5F53MP.js").then(t=>V(t.asn1({})))}}),R.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return import("./asterisk-SIDVUCAX.js").then(t=>V(t.asterisk))}}),R.of({name:"Brainfuck",extensions:["b","bf"],load(){return import("./brainfuck-K7DBLI5P.js").then(t=>V(t.brainfuck))}}),R.of({name:"Cobol",extensions:["cob","cpy"],load(){return import("./cobol-PMRFKEKB.js").then(t=>V(t.cobol))}}),R.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return import("./clike-EOWJN572.js").then(t=>V(t.csharp))}}),R.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return import("./clojure-VLG72YFE.js").then(t=>V(t.clojure))}}),R.of({name:"ClojureScript",extensions:["cljs"],load(){return import("./clojure-VLG72YFE.js").then(t=>V(t.clojure))}}),R.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return import("./css-HESFBL5J.js").then(t=>V(t.gss))}}),R.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return import("./cmake-2PXWCEDK.js").then(t=>V(t.cmake))}}),R.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return import("./coffeescript-B5G6C2AR.js").then(t=>V(t.coffeeScript))}}),R.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return import("./commonlisp-CFTTVW6U.js").then(t=>V(t.commonLisp))}}),R.of({name:"Cypher",extensions:["cyp","cypher"],load(){return import("./cypher-IIJXY2ZS.js").then(t=>V(t.cypher))}}),R.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return import("./python-NMGCKPUX.js").then(t=>V(t.cython))}}),R.of({name:"Crystal",extensions:["cr"],load(){return import("./crystal-M6S3MKED.js").then(t=>V(t.crystal))}}),R.of({name:"D",extensions:["d"],load(){return import("./d-ZHLFM7BM.js").then(t=>V(t.d))}}),R.of({name:"Dart",extensions:["dart"],load(){return import("./clike-EOWJN572.js").then(t=>V(t.dart))}}),R.of({name:"diff",extensions:["diff","patch"],load(){return import("./diff-7YFE6XTG.js").then(t=>V(t.diff))}}),R.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return import("./dockerfile-2B5D6FTU.js").then(t=>V(t.dockerFile))}}),R.of({name:"DTD",extensions:["dtd"],load(){return import("./dtd-NPOQOSDS.js").then(t=>V(t.dtd))}}),R.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return import("./dylan-KB7QIKGL.js").then(t=>V(t.dylan))}}),R.of({name:"EBNF",load(){return import("./ebnf-TBCUHQC6.js").then(t=>V(t.ebnf))}}),R.of({name:"ECL",extensions:["ecl"],load(){return import("./ecl-OXWKHIHJ.js").then(t=>V(t.ecl))}}),R.of({name:"edn",extensions:["edn"],load(){return import("./clojure-VLG72YFE.js").then(t=>V(t.clojure))}}),R.of({name:"Eiffel",extensions:["e"],load(){return import("./eiffel-WRBXQVBO.js").then(t=>V(t.eiffel))}}),R.of({name:"Elm",extensions:["elm"],load(){return import("./elm-MZAQSXJY.js").then(t=>V(t.elm))}}),R.of({name:"Erlang",extensions:["erl"],load(){return import("./erlang-PNSW52ER.js").then(t=>V(t.erlang))}}),R.of({name:"Esper",load(){return import("./sql-4LK5AARR.js").then(t=>V(t.esper))}}),R.of({name:"Factor",extensions:["factor"],load(){return import("./factor-JBYSQG3O.js").then(t=>V(t.factor))}}),R.of({name:"FCL",load(){return import("./fcl-6ZY3XINI.js").then(t=>V(t.fcl))}}),R.of({name:"Forth",extensions:["forth","fth","4th"],load(){return import("./forth-BAIG3TGB.js").then(t=>V(t.forth))}}),R.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return import("./fortran-MQWYHO5L.js").then(t=>V(t.fortran))}}),R.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return import("./mllike-2EOQGIBG.js").then(t=>V(t.fSharp))}}),R.of({name:"Gas",extensions:["s"],load(){return import("./gas-Q6YL6AQO.js").then(t=>V(t.gas))}}),R.of({name:"Gherkin",extensions:["feature"],load(){return import("./gherkin-W5ZB2USN.js").then(t=>V(t.gherkin))}}),R.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return import("./groovy-JTF2GBED.js").then(t=>V(t.groovy))}}),R.of({name:"Haskell",extensions:["hs"],load(){return import("./haskell-HFE6BWET.js").then(t=>V(t.haskell))}}),R.of({name:"Haxe",extensions:["hx"],load(){return import("./haxe-WWIJK4Z5.js").then(t=>V(t.haxe))}}),R.of({name:"HXML",extensions:["hxml"],load(){return import("./haxe-WWIJK4Z5.js").then(t=>V(t.hxml))}}),R.of({name:"HTTP",load(){return import("./http-NZKSSIDP.js").then(t=>V(t.http))}}),R.of({name:"IDL",extensions:["pro"],load(){return import("./idl-CMM2WWSO.js").then(t=>V(t.idl))}}),R.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return import("./javascript-375RXK5M.js").then(t=>V(t.jsonld))}}),R.of({name:"Julia",extensions:["jl"],load(){return import("./julia-BMA4W7GB.js").then(t=>V(t.julia))}}),R.of({name:"Kotlin",extensions:["kt","kts"],load(){return import("./clike-EOWJN572.js").then(t=>V(t.kotlin))}}),R.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return import("./livescript-3UKKDN45.js").then(t=>V(t.liveScript))}}),R.of({name:"Lua",extensions:["lua"],load(){return import("./lua-SWEBXZV4.js").then(t=>V(t.lua))}}),R.of({name:"mIRC",extensions:["mrc"],load(){return import("./mirc-5HDV5JC4.js").then(t=>V(t.mirc))}}),R.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return import("./mathematica-CJOQYQFY.js").then(t=>V(t.mathematica))}}),R.of({name:"Modelica",extensions:["mo"],load(){return import("./modelica-XKNFUSSN.js").then(t=>V(t.modelica))}}),R.of({name:"MUMPS",extensions:["mps"],load(){return import("./mumps-R6QPEBAR.js").then(t=>V(t.mumps))}}),R.of({name:"Mbox",extensions:["mbox"],load(){return import("./mbox-Y4XZOKOO.js").then(t=>V(t.mbox))}}),R.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return import("./nginx-7TJP7GQA.js").then(t=>V(t.nginx))}}),R.of({name:"NSIS",extensions:["nsh","nsi"],load(){return import("./nsis-XAIDIMGO.js").then(t=>V(t.nsis))}}),R.of({name:"NTriples",extensions:["nt","nq"],load(){return import("./ntriples-SCDRUUH2.js").then(t=>V(t.ntriples))}}),R.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return import("./clike-EOWJN572.js").then(t=>V(t.objectiveC))}}),R.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return import("./clike-EOWJN572.js").then(t=>V(t.objectiveCpp))}}),R.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return import("./mllike-2EOQGIBG.js").then(t=>V(t.oCaml))}}),R.of({name:"Octave",extensions:["m"],load(){return import("./octave-RV2OSSMQ.js").then(t=>V(t.octave))}}),R.of({name:"Oz",extensions:["oz"],load(){return import("./oz-6VL77R5Z.js").then(t=>V(t.oz))}}),R.of({name:"Pascal",extensions:["p","pas"],load(){return import("./pascal-TQWMLNUO.js").then(t=>V(t.pascal))}}),R.of({name:"Perl",extensions:["pl","pm"],load(){return import("./perl-MJLZUOI2.js").then(t=>V(t.perl))}}),R.of({name:"Pig",extensions:["pig"],load(){return import("./pig-MQKMXNXN.js").then(t=>V(t.pig))}}),R.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return import("./powershell-RJOL52GR.js").then(t=>V(t.powerShell))}}),R.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return import("./properties-XL2YBZDU.js").then(t=>V(t.properties))}}),R.of({name:"ProtoBuf",extensions:["proto"],load(){return import("./protobuf-NQWTK3Z6.js").then(t=>V(t.protobuf))}}),R.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return import("./pug-SMVC7NDW.js").then(t=>V(t.pug))}}),R.of({name:"Puppet",extensions:["pp"],load(){return import("./puppet-POQGMO34.js").then(t=>V(t.puppet))}}),R.of({name:"Q",extensions:["q"],load(){return import("./q-ILHJCNOR.js").then(t=>V(t.q))}}),R.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return import("./r-XNO7UDHK.js").then(t=>V(t.r))}}),R.of({name:"RPM Changes",load(){return import("./rpm-TPSVG357.js").then(t=>V(t.rpmChanges))}}),R.of({name:"RPM Spec",extensions:["spec"],load(){return import("./rpm-TPSVG357.js").then(t=>V(t.rpmSpec))}}),R.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return import("./ruby-3ZLDCDCY.js").then(t=>V(t.ruby))}}),R.of({name:"SAS",extensions:["sas"],load(){return import("./sas-X4IZVM55.js").then(t=>V(t.sas))}}),R.of({name:"Scala",extensions:["scala"],load(){return import("./clike-EOWJN572.js").then(t=>V(t.scala))}}),R.of({name:"Scheme",extensions:["scm","ss"],load(){return import("./scheme-JSRTR252.js").then(t=>V(t.scheme))}}),R.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return import("./shell-IJ2JLDQQ.js").then(t=>V(t.shell))}}),R.of({name:"Sieve",extensions:["siv","sieve"],load(){return import("./sieve-4ACSKBHV.js").then(t=>V(t.sieve))}}),R.of({name:"Smalltalk",extensions:["st"],load(){return import("./smalltalk-AHTDIHSN.js").then(t=>V(t.smalltalk))}}),R.of({name:"Solr",load(){return import("./solr-HDS3YMCJ.js").then(t=>V(t.solr))}}),R.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return import("./mllike-2EOQGIBG.js").then(t=>V(t.sml))}}),R.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return import("./sparql-OPR2SX5E.js").then(t=>V(t.sparql))}}),R.of({name:"Spreadsheet",alias:["excel","formula"],load(){return import("./spreadsheet-YMJBRXJ6.js").then(t=>V(t.spreadsheet))}}),R.of({name:"Squirrel",extensions:["nut"],load(){return import("./clike-EOWJN572.js").then(t=>V(t.squirrel))}}),R.of({name:"Stylus",extensions:["styl"],load(){return import("./stylus-5SYL4OMN.js").then(t=>V(t.stylus))}}),R.of({name:"Swift",extensions:["swift"],load(){return import("./swift-W3IKYGAN.js").then(t=>V(t.swift))}}),R.of({name:"sTeX",load(){return import("./stex-CBOLYXFQ.js").then(t=>V(t.stex))}}),R.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return import("./stex-CBOLYXFQ.js").then(t=>V(t.stex))}}),R.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return import("./verilog-MW2R7Q2Y.js").then(t=>V(t.verilog))}}),R.of({name:"Tcl",extensions:["tcl"],load(){return import("./tcl-QKBH3MVM.js").then(t=>V(t.tcl))}}),R.of({name:"Textile",extensions:["textile"],load(){return import("./textile-KRYPADXN.js").then(t=>V(t.textile))}}),R.of({name:"TiddlyWiki",load(){return import("./tiddlywiki-XNSPF27C.js").then(t=>V(t.tiddlyWiki))}}),R.of({name:"Tiki wiki",load(){return import("./tiki-ZZLJUPPJ.js").then(t=>V(t.tiki))}}),R.of({name:"TOML",extensions:["toml"],load(){return import("./toml-FCAM6ZFK.js").then(t=>V(t.toml))}}),R.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return import("./troff-7BWGQP4Z.js").then(t=>V(t.troff))}}),R.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return import("./ttcn-K3WYQPKS.js").then(t=>V(t.ttcn))}}),R.of({name:"TTCN_CFG",extensions:["cfg"],load(){return import("./ttcn-cfg-LDHTKWFO.js").then(t=>V(t.ttcnCfg))}}),R.of({name:"Turtle",extensions:["ttl"],load(){return import("./turtle-6Q2P3NLY.js").then(t=>V(t.turtle))}}),R.of({name:"Web IDL",extensions:["webidl"],load(){return import("./webidl-5Q6QYACY.js").then(t=>V(t.webIDL))}}),R.of({name:"VB.NET",extensions:["vb"],load(){return import("./vb-BYDJL3EX.js").then(t=>V(t.vb))}}),R.of({name:"VBScript",extensions:["vbs"],load(){return import("./vbscript-WOMP2PYW.js").then(t=>V(t.vbScript))}}),R.of({name:"Velocity",extensions:["vtl"],load(){return import("./velocity-ZG7EESTK.js").then(t=>V(t.velocity))}}),R.of({name:"Verilog",extensions:["v"],load(){return import("./verilog-MW2R7Q2Y.js").then(t=>V(t.verilog))}}),R.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return import("./vhdl-GQOJ6JVT.js").then(t=>V(t.vhdl))}}),R.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return import("./xquery-MD4ZCF7M.js").then(t=>V(t.xQuery))}}),R.of({name:"Yacas",extensions:["ys"],load(){return import("./yacas-EKNE7G24.js").then(t=>V(t.yacas))}}),R.of({name:"Z80",extensions:["z80"],load(){return import("./z80-44FRSRYD.js").then(t=>V(t.z80))}}),R.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return import("./mscgen-2X7TXJM6.js").then(t=>V(t.mscgen))}}),R.of({name:"X\xF9",extensions:["xu"],load(){return import("./mscgen-2X7TXJM6.js").then(t=>V(t.xu))}}),R.of({name:"MsGenny",extensions:["msgenny"],load(){return import("./mscgen-2X7TXJM6.js").then(t=>V(t.msgenny))}}),R.of({name:"Vue",extensions:["vue"],load(){return import("./dist-THIQIX3E.js").then(t=>t.vue())}}),R.of({name:"Angular Template",load(){return import("./dist-MK4VEXBD.js").then(t=>t.angular())}})];var Y6="#e5c07b",Yp="#e06c75",Z6="#56b6c2",X6="#ffffff",Xa="#abb2bf",Zc="#7d8799",J6="#61afef",Q6="#98c379",Zp="#d19a66",ev="#c678dd",tv="#21252b",Xp="#2c313a",Jp="#282c34",Yc="#353a42",rv="#3E4451",Qp="#528bff";var nv=We.theme({"&":{color:Xa,backgroundColor:Jp},".cm-content":{caretColor:Qp},".cm-cursor, .cm-dropCursor":{borderLeftColor:Qp},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:rv},".cm-panels":{backgroundColor:tv,color:Xa},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Jp,color:Zc,border:"none"},".cm-activeLineGutter":{backgroundColor:Xp},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Yc},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Yc,borderBottomColor:Yc},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Xp,color:Xa}}},{dark:!0}),ov=zp.define([{tag:de.keyword,color:ev},{tag:[de.name,de.deleted,de.character,de.propertyName,de.macroName],color:Yp},{tag:[de.function(de.variableName),de.labelName],color:J6},{tag:[de.color,de.constant(de.name),de.standard(de.name)],color:Zp},{tag:[de.definition(de.name),de.separator],color:Xa},{tag:[de.typeName,de.className,de.number,de.changed,de.annotation,de.modifier,de.self,de.namespace],color:Y6},{tag:[de.operator,de.operatorKeyword,de.url,de.escape,de.regexp,de.link,de.special(de.string)],color:Z6},{tag:[de.meta,de.comment],color:Zc},{tag:de.strong,fontWeight:"bold"},{tag:de.emphasis,fontStyle:"italic"},{tag:de.strikethrough,textDecoration:"line-through"},{tag:de.link,color:Zc,textDecoration:"underline"},{tag:de.heading,fontWeight:"bold",color:Yp},{tag:[de.atom,de.bool,de.special(de.variableName)],color:Zp},{tag:[de.processingInstruction,de.string,de.inserted],color:Q6},{tag:de.invalid,color:X6}]),em=[nv,Za(ov)];var iv=Object.defineProperty,tm=Object.getOwnPropertySymbols,sv=Object.prototype.hasOwnProperty,av=Object.prototype.propertyIsEnumerable,rm=(t,e,r)=>e in t?iv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,lv=(t,e)=>{for(var r in e||(e={}))sv.call(e,r)&&rm(t,r,e[r]);if(tm)for(var r of tm(e))av.call(e,r)&&rm(t,r,e[r]);return t};function am(t,e){return Object.assign(t,{meta:lv({package:"@milkdown/components"},e)}),t}var yn="milkdown-diff",cv={acceptLabel:"Accept",rejectLabel:"Reject",customBlockTypes:[]},ns=Ue(cv,"diffComponentConfig");am(ns,{displayName:"Ctx<diffComponentConfig>",group:"DiffComponent"});function uv(t,e,r){if(e===r)return!1;let n=t.resolve(e),o=t.resolve(r),i=n.index(0),s=o.depth===0?Math.max(0,o.index(0)-1):o.index(0);return i!==s}function nm(t,e,r){if(e>=r)return!1;let n=t.resolve(e),o=t.resolve(r);if(n.sameParent(o)&&n.parent.isTextblock)return!1;let i=!1;return t.nodesBetween(e,r,(s,a)=>{if(i)return!1;if(!s.isBlock)return!0;let l=a+s.nodeSize;return a>=e&&l<=r?(i=!0,!1):!0}),i}function dv(t,e,r){if(r!==t.content.size)return!1;let n=t.resolve(e);if(n.depth!==0)return!1;for(let o=n.index(0);o<t.childCount;o++){let i=t.child(o);if(i.type.name!=="paragraph"||i.content.size>0)return!1}return!0}function hv(t){let e=t.content.size;for(let r=t.childCount-1;r>=0;r--){let n=t.child(r);if(n.type.name!=="paragraph"||n.content.size>0)break;e-=n.nodeSize}return e}function Jc(t,e){let r=t.resolve(e);for(let n=r.depth;n>=1;n--)if(r.node(n).isTextblock)return r.before(n);return e}function lm(t,e,r,n){let o=0;for(let i=0;i<t.childCount;i++){let s=t.child(i),a=o+s.nodeSize;if(o>=r)break;a>e&&o<r&&n(s,o,a),o=a}}function cm(t,e,r,n){lm(t,e,r,(o,i,s)=>{s===t.content.size&&o.type.name==="paragraph"&&o.content.size===0||n.push(Kt.node(i,s,{class:`${yn}-removed-block`}))})}function Xc(t,e,r=!1){if(e<0||e>t.content.size)return null;let n=t.resolve(Math.min(e,t.content.size));if(n.depth>=1)return{from:n.before(1),to:n.after(1)};if(r){let o=n.nodeBefore;if(o)return{from:e-o.nodeSize,to:e};let i=n.nodeAfter;if(i)return{from:e,to:e+i.nodeSize}}else{let o=n.nodeAfter;if(o)return{from:e,to:e+o.nodeSize};let i=n.nodeBefore;if(i)return{from:e-i.nodeSize,to:e}}return null}function Qc(t,e,r){if(e<0||e>t.content.size)return null;let n=t.resolve(Math.min(e,t.content.size));for(let o=n.depth;o>=0;o--){let i=n.node(o).type.name;if(r.has(i))return i}return null}function Qa(t,e,r,n=!1){let o=Qc(t,e,r);if(o)return o;let i=t.resolve(Math.min(Math.max(e,0),t.content.size)),s=n?i.nodeBefore:i.nodeAfter;return s&&r.has(s.type.name)?s.type.name:null}function fv(t,e,r){let n=[],o=!0,i=-1,s=-1;return lm(t,e,r,(a,l,c)=>{i===-1&&(i=l),s=c,n.push(a)}),(n.length===0||i!==e||s!==r)&&(o=!1),o?n:[]}function Ja(t,e,r,n){return t<n&&e>r}function om(t,e,r,n){return e===r?Qc(t,e,n)!=null:Qa(t,e,n)!=null||Qa(t,r,n,!0)!=null}function pv(t,e,r){let n=t.resolve(r.fromA);if(!n.parent.isTextblock||n.depth<1||!n.node(1).isTextblock)return null;let o=n.after(1),i=e.resolve(r.fromB),s;if(i.depth>=1&&i.node(1).isTextblock?(s=i.after(1),s>r.toB&&(s=r.toB)):s=r.fromB,o>=r.toA&&s>=r.toB)return null;let a=[];return(o>r.fromA||s>r.fromB)&&a.push({fromA:r.fromA,toA:Math.min(o,r.toA),fromB:r.fromB,toB:s,isBlock:!1}),(r.toA>o||r.toB>s)&&a.push({fromA:o,toA:Math.max(o,r.toA),fromB:s,toB:r.toB,isBlock:!0}),a.length>1?a:null}function mv(t,e,r,n){return om(e,t.fromA,t.toA,n)||om(r,t.fromB,t.toB,n)}function vv(t,e,r,n){var o,i,s,a;let l=[],c=new Set;for(let u=0;u<t.length;u++){if(c.has(u))continue;let f=t[u];if(!mv(f,e,r,n)){l.push({fromA:f.fromA,toA:f.toA,fromB:f.fromB,toB:f.toB,isCustomBlock:!1});continue}let p=im(e,f.fromA,f.toA,n),v=im(r,f.fromB,f.toB,n),b={fromA:Math.min((o=p?.from)!=null?o:f.fromA,f.fromA),toA:Math.max((i=p?.to)!=null?i:f.toA,f.toA),fromB:Math.min((s=v?.from)!=null?s:f.fromB,f.fromB),toB:Math.max((a=v?.to)!=null?a:f.toB,f.toB),isCustomBlock:!0};c.add(u);for(let g=u+1;g<t.length;g++){if(c.has(g))continue;let x=t[g],k=p&&Ja(x.fromA,x.toA,p.from,p.to),T=v&&Ja(x.fromB,x.toB,v.from,v.to);!k&&!T||(c.add(g),b.fromA=Math.min(b.fromA,x.fromA),b.toA=Math.max(b.toA,x.toA),b.fromB=Math.min(b.fromB,x.fromB),b.toB=Math.max(b.toB,x.toB))}let w=[];for(let g=0;g<l.length;g++){let x=l[g];if(!x.isCustomBlock)continue;let k=Ja(b.fromA,b.toA,x.fromA,x.toA),T=Ja(b.fromB,b.toB,x.fromB,x.toB);!k&&!T||(b.fromA=Math.min(b.fromA,x.fromA),b.toA=Math.max(b.toA,x.toA),b.fromB=Math.min(b.fromB,x.fromB),b.toB=Math.max(b.toB,x.toB),w.push(g))}for(let g=w.length-1;g>=0;g--)l.splice(w[g],1);l.push(b)}return l}function gv(t,e){let r=hv(e);if(r!==e.content.size)for(let n of t)n.fromA===n.toA&&n.fromB<n.toB&&n.fromA>=r&&(n.fromA=r,n.toA=r)}function im(t,e,r,n){return e===r?Qc(t,e,n)==null?null:Xc(t,e):Qa(t,e,n)!=null?Xc(t,e):Qa(t,r,n,!0)!=null?Xc(t,r,!0):null}var sm=new kr("MILKDOWN_DIFF_DECORATION"),um=Pr(t=>{let e=t.get(ns.key);return new xr({key:sm,state:{init:()=>Yt.empty,apply(r,n,o,i){let s=xo.getState(i);return s?.active?r.getMeta(xo)||r.docChanged?bv(t,i.doc,s,e):n.map(r.mapping,r.doc):Yt.empty}},props:{decorations(r){var n;return(n=sm.getState(r))!=null?n:Yt.empty}}})});am(um,{displayName:"Prose<diffDecoration>",group:"DiffComponent"});function yv({doc:t,newDoc:e,segments:r,change:n,changeIndex:o,commands:i,acceptLabel:s,rejectLabel:a,decorations:l}){for(let v=0;v<r.length;v++){let b=r[v],w=b.fromA<b.toA,g=b.fromB<b.toB;if(w&&(b.isBlock?cm(t,b.fromA,b.toA,l):l.push(Kt.inline(b.fromA,b.toA,{class:`${yn}-removed`}))),g){let x=b.isBlock?Jc(t,w?b.toA:b.fromA):w?b.toA:b.fromA,k=dm(e,b,b.isBlock);l.push(Kt.widget(x,k,{side:-1,key:`added-${o}-${v}`}))}}let c=r[r.length-1],u=c.isBlock?c.fromA<c.toA?c.toA:c.fromA:n.toA,f=Jc(t,u),p=hm({commands:i,isBlockLevel:!0,change:n,acceptLabel:s,rejectLabel:a});l.push(Kt.widget(f,p,{side:-1,key:`controls-${o}`}))}function bv(t,e,r,n){let o=[],i=t.get(ne),s=new Set(n.customBlockTypes),a=ip(r),l=vv(a,e,r.newDoc,s);gv(l,e);for(let c=0;c<l.length;c++){let u=l[c],f=u.fromA<u.toA,p=u.fromB<u.toB;if(f&&!p&&dv(e,u.fromA,u.toA))continue;let v=f&&uv(e,u.fromA,u.toA),b=f&&nm(e,u.fromA,u.toA),w=p&&nm(r.newDoc,u.fromB,u.toB),g=f&&!v&&!b&&!u.isCustomBlock&&!w,x=(v||b||w)&&!g;if(x&&!u.isCustomBlock){let N=pv(e,r.newDoc,u);if(N){yv({doc:e,newDoc:r.newDoc,segments:N,change:u,changeIndex:c,commands:i,acceptLabel:n.acceptLabel,rejectLabel:n.rejectLabel,decorations:o});continue}}f&&(u.isCustomBlock||x?cm(e,u.fromA,u.toA,o):o.push(Kt.inline(u.fromA,u.toA,{class:`${yn}-removed`})));let k=f?u.toA:u.fromA,T=x?Jc(e,k):k;if(p){let N=dm(r.newDoc,u,x);o.push(Kt.widget(T,N,{side:-1,key:`added-${c}`}))}let O=hm({commands:i,isBlockLevel:x,change:u,acceptLabel:n.acceptLabel,rejectLabel:n.rejectLabel});o.push(Kt.widget(T,O,{side:x?-1:1,key:`controls-${c}`}))}return Yt.create(e,o)}function dm(t,e,r){var n;let o=document.createElement(r?"div":"span");o.className=`${yn}-added`,o.contentEditable="false",r&&o.classList.add(`${yn}-added-block`);let i=uf.fromSchema(t.type.schema);if(r){let l=fv(t,e.fromB,e.toB);if(l.length>0){let c=document.createDocumentFragment();for(let u of l)c.appendChild(i.serializeNode(u));return o.appendChild(c),o}}let s=t.slice(e.fromB,e.toB),a=i.serializeFragment(s.content);if(o.appendChild(a),!((n=o.textContent)!=null&&n.trim())&&!o.querySelector("img, video, audio, canvas, svg")){let l=t.textBetween(e.fromB,e.toB,`
`,`
`);l.trim()&&(o.textContent=l)}return o}function hm({commands:t,isBlockLevel:e,change:r,acceptLabel:n,rejectLabel:o}){let i=document.createElement(e?"div":"span");i.className=`${yn}-controls`,i.contentEditable="false",e&&i.classList.add(`${yn}-controls-block`);let s=c=>u=>{u.preventDefault(),u.stopPropagation();let f={fromA:r.fromA,toA:r.toA,fromB:r.fromB,toB:r.toB},p=c==="accept"?sp.key:ap.key;t.call(p,f)},a=document.createElement("button");a.className=`${yn}-accept`,a.textContent=n,a.addEventListener("click",s("accept"));let l=document.createElement("button");return l.className=`${yn}-reject`,l.textContent=o,l.addEventListener("click",s("reject")),i.appendChild(a),i.appendChild(l),i}var fm=[ns,um];function Qo(t){let e=Object.create(null);for(let r of t.split(","))e[r]=1;return r=>r in e}var Ve={},ei=[],Dt=()=>{},eu=()=>!1,ti=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ri=t=>t.startsWith("onUpdate:"),nt=Object.assign,os=(t,e)=>{let r=t.indexOf(e);r>-1&&t.splice(r,1)},wv=Object.prototype.hasOwnProperty,Ee=(t,e)=>wv.call(t,e),fe=Array.isArray,ni=t=>is(t)==="[object Map]",tu=t=>is(t)==="[object Set]",pm=t=>is(t)==="[object Date]";var me=t=>typeof t=="function",rt=t=>typeof t=="string",_r=t=>typeof t=="symbol",Be=t=>t!==null&&typeof t=="object",ru=t=>(Be(t)||me(t))&&me(t.then)&&me(t.catch),xv=Object.prototype.toString,is=t=>xv.call(t),nu=t=>is(t).slice(8,-1),ou=t=>is(t)==="[object Object]",el=t=>rt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,oi=Qo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var tl=t=>{let e=Object.create(null);return(r=>e[r]||(e[r]=t(r)))},kv=/-\w/g,It=tl(t=>t.replace(kv,e=>e.slice(1).toUpperCase())),_v=/\B([A-Z])/g,bn=tl(t=>t.replace(_v,"-$1").toLowerCase()),ss=tl(t=>t.charAt(0).toUpperCase()+t.slice(1)),as=tl(t=>t?`on${ss(t)}`:""),cr=(t,e)=>!Object.is(t,e),ls=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},ii=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},iu=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var mm,Fn=()=>mm||(mm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cs(t){if(fe(t)){let e={};for(let r=0;r<t.length;r++){let n=t[r],o=rt(n)?Tv(n):cs(n);if(o)for(let i in o)e[i]=o[i]}return e}else if(rt(t)||Be(t))return t}var Cv=/;(?![^(]*\))/g,Sv=/:([^]+)/,Ev=/\/\*[^]*?\*\//g;function Tv(t){let e={};return t.replace(Ev,"").split(Cv).forEach(r=>{if(r){let n=r.split(Sv);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function us(t){let e="";if(rt(t))e=t;else if(fe(t))for(let r=0;r<t.length;r++){let n=us(t[r]);n&&(e+=n+" ")}else if(Be(t))for(let r in t)t[r]&&(e+=r+" ");return e.trim()}var vm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gm=Qo(vm),Av=Qo(vm+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function rl(t){return!!t||t===""}function Mv(t,e){if(t.length!==e.length)return!1;let r=!0;for(let n=0;r&&n<t.length;n++)r=ds(t[n],e[n]);return r}function ds(t,e){if(t===e)return!0;let r=pm(t),n=pm(e);if(r||n)return r&&n?t.getTime()===e.getTime():!1;if(r=_r(t),n=_r(e),r||n)return t===e;if(r=fe(t),n=fe(e),r||n)return r&&n?Mv(t,e):!1;if(r=Be(t),n=Be(e),r||n){if(!r||!n)return!1;let o=Object.keys(t).length,i=Object.keys(e).length;if(o!==i)return!1;for(let s in t){let a=t.hasOwnProperty(s),l=e.hasOwnProperty(s);if(a&&!l||!a&&l||!ds(t[s],e[s]))return!1}}return String(t)===String(e)}function Nv(t,...e){console.warn(`[Vue warn] ${t}`,...e)}var bt,ms=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&bt&&(bt.active?(this.parent=bt,this.index=(bt.scopes||(bt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes){let n=this.scopes.slice();for(e=0,r=n.length;e<r;e++)n[e].pause()}for(e=0,r=this.effects.length;e<r;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,r;if(this.scopes){let o=this.scopes.slice();for(e=0,r=o.length;e<r;e++)o[e].resume()}let n=this.effects.slice();for(e=0,r=n.length;e<r;e++)n[e].resume()}}run(e){if(this._active){let r=bt;try{return bt=this,e()}finally{bt=r}}}on(){++this._on===1&&(this.prevScope=bt,bt=this)}off(){if(this._on>0&&--this._on===0){if(bt===this)bt=this.prevScope;else{let e=bt;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){let o=this.scopes.slice();for(r=0,n=o.length;r<n;r++)o[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}};function wm(){return bt}var $e;var su=new WeakSet,ai=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,bt&&(bt.active?bt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,su.has(this)&&(su.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||km(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ym(this),_m(this);let e=$e,r=Cr;$e=this,Cr=!0;try{return this.fn()}finally{Cm(this),$e=e,Cr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)bu(e);this.deps=this.depsTail=void 0,ym(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?su.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){cu(this)&&this.run()}get dirty(){return cu(this)}},xm=0,fs,ps;function km(t,e=!1){if(t.flags|=8,e){t.next=ps,ps=t;return}t.next=fs,fs=t}function gu(){xm++}function yu(){if(--xm>0)return;if(ps){let e=ps;for(ps=void 0;e;){let r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;fs;){let e=fs;for(fs=void 0;e;){let r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function _m(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Cm(t){let e,r=t.depsTail,n=r;for(;n;){let o=n.prevDep;n.version===-1?(n===r&&(r=o),bu(n),Ov(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}t.deps=e,t.depsTail=r}function cu(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Sm(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Sm(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===vs)||(t.globalVersion=vs,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!cu(t))))return;t.flags|=2;let e=t.dep,r=$e,n=Cr;$e=t,Cr=!0;try{_m(t);let o=t.fn(t._value);(e.version===0||cr(o,t._value))&&(t.flags|=128,t._value=o,e.version++)}catch(o){throw e.version++,o}finally{$e=r,Cr=n,Cm(t),t.flags&=-3}}function bu(t,e=!1){let{dep:r,prevSub:n,nextSub:o}=t;if(n&&(n.nextSub=o,t.prevSub=void 0),o&&(o.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)bu(i,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function Ov(t){let{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}var Cr=!0,Em=[];function $r(){Em.push(Cr),Cr=!1}function qr(){let t=Em.pop();Cr=t===void 0?!0:t}function ym(t){let{cleanup:e}=t;if(t.cleanup=void 0,e){let r=$e;$e=void 0;try{e()}finally{$e=r}}}var vs=0,uu=class{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},gs=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!$e||!Cr||$e===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==$e)r=this.activeLink=new uu($e,this),$e.deps?(r.prevDep=$e.depsTail,$e.depsTail.nextDep=r,$e.depsTail=r):$e.deps=$e.depsTail=r,Tm(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){let n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=$e.depsTail,r.nextDep=void 0,$e.depsTail.nextDep=r,$e.depsTail=r,$e.deps===r&&($e.deps=n)}return r}trigger(e){this.version++,vs++,this.notify(e)}notify(e){gu();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{yu()}}};function Tm(t){if(t.dep.sc++,t.sub.flags&4){let e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Tm(n)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}var du=new WeakMap,So=Symbol(""),hu=Symbol(""),ys=Symbol("");function wt(t,e,r){if(Cr&&$e){let n=du.get(t);n||du.set(t,n=new Map);let o=n.get(r);o||(n.set(r,o=new gs),o.map=n,o.key=r),o.track()}}function Hr(t,e,r,n,o,i){let s=du.get(t);if(!s){vs++;return}let a=l=>{l&&l.trigger()};if(gu(),e==="clear")s.forEach(a);else{let l=fe(t),c=l&&el(r);if(l&&r==="length"){let u=Number(n);s.forEach((f,p)=>{(p==="length"||p===ys||!_r(p)&&p>=u)&&a(f)})}else switch((r!==void 0||s.has(void 0))&&a(s.get(r)),c&&a(s.get(ys)),e){case"add":l?c&&a(s.get("length")):(a(s.get(So)),ni(t)&&a(s.get(hu)));break;case"delete":l||(a(s.get(So)),ni(t)&&a(s.get(hu)));break;case"set":ni(t)&&a(s.get(So));break}}yu()}function si(t){let e=Te(t);return e===t?e:(wt(e,"iterate",ys),Zt(t)?e:e.map(Fr))}function ul(t){return wt(t=Te(t),"iterate",ys),t}function Vr(t,e){return zr(t)?li($n(t)?Fr(e):e):Fr(e)}var Dv={__proto__:null,[Symbol.iterator](){return au(this,Symbol.iterator,t=>Vr(this,t))},concat(...t){return si(this).concat(...t.map(e=>fe(e)?si(e):e))},entries(){return au(this,"entries",t=>(t[1]=Vr(this,t[1]),t))},every(t,e){return wn(this,"every",t,e,void 0,arguments)},filter(t,e){return wn(this,"filter",t,e,r=>r.map(n=>Vr(this,n)),arguments)},find(t,e){return wn(this,"find",t,e,r=>Vr(this,r),arguments)},findIndex(t,e){return wn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return wn(this,"findLast",t,e,r=>Vr(this,r),arguments)},findLastIndex(t,e){return wn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return wn(this,"forEach",t,e,void 0,arguments)},includes(...t){return lu(this,"includes",t)},indexOf(...t){return lu(this,"indexOf",t)},join(t){return si(this).join(t)},lastIndexOf(...t){return lu(this,"lastIndexOf",t)},map(t,e){return wn(this,"map",t,e,void 0,arguments)},pop(){return hs(this,"pop")},push(...t){return hs(this,"push",t)},reduce(t,...e){return bm(this,"reduce",t,e)},reduceRight(t,...e){return bm(this,"reduceRight",t,e)},shift(){return hs(this,"shift")},some(t,e){return wn(this,"some",t,e,void 0,arguments)},splice(...t){return hs(this,"splice",t)},toReversed(){return si(this).toReversed()},toSorted(t){return si(this).toSorted(t)},toSpliced(...t){return si(this).toSpliced(...t)},unshift(...t){return hs(this,"unshift",t)},values(){return au(this,"values",t=>Vr(this,t))}};function au(t,e,r){let n=ul(t),o=n[e]();return n!==t&&!Zt(t)&&(o._next=o.next,o.next=()=>{let i=o._next();return i.done||(i.value=r(i.value)),i}),o}var Iv=Array.prototype;function wn(t,e,r,n,o,i){let s=ul(t),a=s!==t&&!Zt(t),l=s[e];if(l!==Iv[e]){let f=l.apply(t,i);return a?Fr(f):f}let c=r;s!==t&&(a?c=function(f,p){return r.call(this,Vr(t,f),p,t)}:r.length>2&&(c=function(f,p){return r.call(this,f,p,t)}));let u=l.call(s,c,n);return a&&o?o(u):u}function bm(t,e,r,n){let o=ul(t),i=o!==t&&!Zt(t),s=r,a=!1;o!==t&&(i?(a=n.length===0,s=function(c,u,f){return a&&(a=!1,c=Vr(t,c)),r.call(this,c,Vr(t,u),f,t)}):r.length>3&&(s=function(c,u,f){return r.call(this,c,u,f,t)}));let l=o[e](s,...n);return a?Vr(t,l):l}function lu(t,e,r){let n=Te(t);wt(n,"iterate",ys);let o=n[e](...r);return(o===-1||o===!1)&&ws(r[0])?(r[0]=Te(r[0]),n[e](...r)):o}function hs(t,e,r=[]){$r(),gu();let n=Te(t)[e].apply(t,r);return yu(),qr(),n}var Lv=Qo("__proto__,__v_isRef,__isVue"),Am=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(_r));function Rv(t){_r(t)||(t=String(t));let e=Te(this);return wt(e,"has",t),e.hasOwnProperty(t)}var sl=class{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;let o=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(o?i?Uv:Om:i?Nm:Mm).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let s=fe(e);if(!o){let l;if(s&&(l=Dv[r]))return l;if(r==="hasOwnProperty")return Rv}let a=Reflect.get(e,r,pt(e)?e:n);if((_r(r)?Am.has(r):Lv(r))||(o||wt(e,"get",r),i))return a;if(pt(a)){let l=s&&el(r)?a:a.value;return o&&Be(l)?ll(l):l}return Be(a)?o?ll(a):bs(a):a}},al=class extends sl{constructor(e=!1){super(!1,e)}set(e,r,n,o){let i=e[r],s=fe(e)&&el(r);if(!this._isShallow){let c=zr(i);if(!Zt(n)&&!zr(n)&&(i=Te(i),n=Te(n)),!s&&pt(i)&&!pt(n))return c||(i.value=n),!0}let a=s?Number(r)<e.length:Ee(e,r),l=Reflect.set(e,r,n,pt(e)?e:o);return e===Te(o)&&l&&(a?cr(n,i)&&Hr(e,"set",r,n,i):Hr(e,"add",r,n)),l}deleteProperty(e,r){let n=Ee(e,r),o=e[r],i=Reflect.deleteProperty(e,r);return i&&n&&Hr(e,"delete",r,void 0,o),i}has(e,r){let n=Reflect.has(e,r);return(!_r(r)||!Am.has(r))&&wt(e,"has",r),n}ownKeys(e){return wt(e,"iterate",fe(e)?"length":So),Reflect.ownKeys(e)}},fu=class extends sl{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}},Pv=new al,Bv=new fu,Vv=new al(!0);var pu=t=>t,nl=t=>Reflect.getPrototypeOf(t);function Hv(t,e,r){return function(...n){let o=this.__v_raw,i=Te(o),s=ni(i),a=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,c=o[t](...n),u=r?pu:e?li:Fr;return!e&&wt(i,"iterate",l?hu:So),nt(Object.create(c),{next(){let{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:a?[u(f[0]),u(f[1])]:u(f),done:p}}})}}function ol(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function zv(t,e){let r={get(o){let i=this.__v_raw,s=Te(i),a=Te(o);t||(cr(o,a)&&wt(s,"get",o),wt(s,"get",a));let{has:l}=nl(s),c=e?pu:t?li:Fr;if(l.call(s,o))return c(i.get(o));if(l.call(s,a))return c(i.get(a));i!==s&&i.get(o)},get size(){let o=this.__v_raw;return!t&&wt(Te(o),"iterate",So),o.size},has(o){let i=this.__v_raw,s=Te(i),a=Te(o);return t||(cr(o,a)&&wt(s,"has",o),wt(s,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){let s=this,a=s.__v_raw,l=Te(a),c=e?pu:t?li:Fr;return!t&&wt(l,"iterate",So),a.forEach((u,f)=>o.call(i,c(u),c(f),s))}};return nt(r,t?{add:ol("add"),set:ol("set"),delete:ol("delete"),clear:ol("clear")}:{add(o){let i=Te(this),s=nl(i),a=Te(o),l=!e&&!Zt(o)&&!zr(o)?a:o;return s.has.call(i,l)||cr(o,l)&&s.has.call(i,o)||cr(a,l)&&s.has.call(i,a)||(i.add(l),Hr(i,"add",l,l)),this},set(o,i){!e&&!Zt(i)&&!zr(i)&&(i=Te(i));let s=Te(this),{has:a,get:l}=nl(s),c=a.call(s,o);c||(o=Te(o),c=a.call(s,o));let u=l.call(s,o);return s.set(o,i),c?cr(i,u)&&Hr(s,"set",o,i,u):Hr(s,"add",o,i),this},delete(o){let i=Te(this),{has:s,get:a}=nl(i),l=s.call(i,o);l||(o=Te(o),l=s.call(i,o));let c=a?a.call(i,o):void 0,u=i.delete(o);return l&&Hr(i,"delete",o,void 0,c),u},clear(){let o=Te(this),i=o.size!==0,s=void 0,a=o.clear();return i&&Hr(o,"clear",void 0,void 0,s),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=Hv(o,t,e)}),r}function wu(t,e){let r=zv(t,e);return(n,o,i)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?n:Reflect.get(Ee(r,o)&&o in n?r:n,o,i)}var Fv={get:wu(!1,!1)},$v={get:wu(!1,!0)},qv={get:wu(!0,!1)};var Mm=new WeakMap,Nm=new WeakMap,Om=new WeakMap,Uv=new WeakMap;function Wv(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bs(t){return zr(t)?t:ku(t,!1,Pv,Fv,Mm)}function xu(t){return ku(t,!1,Vv,$v,Nm)}function ll(t){return ku(t,!0,Bv,qv,Om)}function ku(t,e,r,n,o){if(!Be(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;let i=o.get(t);if(i)return i;let s=Wv(nu(t));if(s===0)return t;let a=new Proxy(t,s===2?n:r);return o.set(t,a),a}function $n(t){return zr(t)?$n(t.__v_raw):!!(t&&t.__v_isReactive)}function zr(t){return!!(t&&t.__v_isReadonly)}function Zt(t){return!!(t&&t.__v_isShallow)}function ws(t){return t?!!t.__v_raw:!1}function Te(t){let e=t&&t.__v_raw;return e?Te(e):t}function _u(t){return!Ee(t,"__v_skip")&&Object.isExtensible(t)&&ii(t,"__v_skip",!0),t}var Fr=t=>Be(t)?bs(t):t,li=t=>Be(t)?ll(t):t;function pt(t){return t?t.__v_isRef===!0:!1}function Q(t){return Dm(t,!1)}function qn(t){return Dm(t,!0)}function Dm(t,e){return pt(t)?t:new mu(t,e)}var mu=class{constructor(e,r){this.dep=new gs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:Te(e),this._value=r?e:Fr(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){let r=this._rawValue,n=this.__v_isShallow||Zt(e)||zr(e);e=n?e:Te(e),cr(e,r)&&(this._rawValue=e,this._value=n?e:Fr(e),this.dep.trigger())}};function Cu(t){return pt(t)?t.value:t}var jv={get:(t,e,r)=>e==="__v_raw"?t:Cu(Reflect.get(t,e,r)),set:(t,e,r,n)=>{let o=t[e];return pt(o)&&!pt(r)?(o.value=r,!0):Reflect.set(t,e,r,n)}};function dl(t){return $n(t)?t:new Proxy(t,jv)}var vu=class{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new gs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=vs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return km(this,!0),!0}get value(){let e=this.dep.track();return Sm(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Im(t,e,r=!1){let n,o;return me(t)?n=t:(n=t.get,o=t.set),new vu(n,o,r)}var il={},cl=new WeakMap,Co;function Lm(t,e=!1,r=Co){if(r){let n=cl.get(r);n||cl.set(r,n=[]),n.push(t)}}function Rm(t,e,r=Ve){let{immediate:n,deep:o,once:i,scheduler:s,augmentJob:a,call:l}=r,c=N=>{(r.onWarn||Nv)("Invalid watch source: ",N,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=N=>o?N:Zt(N)||o===!1||o===0?xn(N,1):xn(N),f,p,v,b,w=!1,g=!1;if(pt(t)?(p=()=>t.value,w=Zt(t)):$n(t)?(p=()=>u(t),w=!0):fe(t)?(g=!0,w=t.some(N=>$n(N)||Zt(N)),p=()=>t.map(N=>{if(pt(N))return N.value;if($n(N))return u(N);if(me(N))return l?l(N,2):N()})):me(t)?e?p=l?()=>l(t,2):t:p=()=>{if(v){$r();try{v()}finally{qr()}}let N=Co;Co=f;try{return l?l(t,3,[b]):t(b)}finally{Co=N}}:p=Dt,e&&o){let N=p,D=o===!0?1/0:o;p=()=>xn(N(),D)}let x=wm(),k=()=>{f.stop(),x&&x.active&&os(x.effects,f)};if(i&&e){let N=e;e=(...D)=>{let $=N(...D);return k(),$}}let T=g?new Array(t.length).fill(il):il,O=N=>{if(!(!(f.flags&1)||!f.dirty&&!N))if(e){let D=f.run();if(N||o||w||(g?D.some(($,I)=>cr($,T[I])):cr(D,T))){v&&v();let $=Co;Co=f;try{let I=[D,T===il?void 0:g&&T[0]===il?[]:T,b];T=D,l?l(e,3,I):e(...I)}finally{Co=$}}}else f.run()};return a&&a(O),f=new ai(p),f.scheduler=s?()=>s(O,!1):O,b=N=>Lm(N,!1,f),v=f.onStop=()=>{let N=cl.get(f);if(N){if(l)l(N,4);else for(let D of N)D();cl.delete(f)}},e?n?O(!0):T=f.run():s?s(O.bind(null,!0),!0):f.run(),k.pause=f.pause.bind(f),k.resume=f.resume.bind(f),k.stop=k,k}function xn(t,e=1/0,r){if(e<=0||!Be(t)||t.__v_skip||(r=r||new Map,(r.get(t)||0)>=e))return t;if(r.set(t,e),e--,pt(t))xn(t.value,e,r);else if(fe(t))for(let n=0;n<t.length;n++)xn(t[n],e,r);else if(tu(t)||ni(t))t.forEach(n=>{xn(n,e,r)});else if(ou(t)){for(let n in t)xn(t[n],e,r);for(let n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&xn(t[n],e,r)}return t}function Os(t,e,r,n){try{return n?t(...n):t()}catch(o){kl(o,e,r)}}function dr(t,e,r,n){if(me(t)){let o=Os(t,e,r,n);return o&&ru(o)&&o.catch(i=>{kl(i,e,r)}),o}if(fe(t)){let o=[];for(let i=0;i<t.length;i++)o.push(dr(t[i],e,r,n));return o}}function kl(t,e,r,n=!0){let o=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||Ve;if(e){let a=e.parent,l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){let u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](t,l,c)===!1)return}a=a.parent}if(i){$r(),Os(i,null,10,[t,l,c]),qr();return}}Zv(t,r,o,n,s)}function Zv(t,e,r,n=!0,o=!1){if(o)throw t;console.error(t)}var Rt=[],Wr=-1,ui=[],Un=null,ci=0,Xm=Promise.resolve(),pl=null;function Ds(t){let e=pl||Xm;return t?e.then(this?t.bind(this):t):e}function Xv(t){let e=Wr+1,r=Rt.length;for(;e<r;){let n=e+r>>>1,o=Rt[n],i=As(o);i<t||i===t&&o.flags&2?e=n+1:r=n}return e}function Lu(t){if(!(t.flags&1)){let e=As(t),r=Rt[Rt.length-1];!r||!(t.flags&2)&&e>=As(r)?Rt.push(t):Rt.splice(Xv(e),0,t),t.flags|=1,Jm()}}function Jm(){pl||(pl=Xm.then(t4))}function Qm(t){if(!fe(t))Un&&t.id===-1?Un.splice(ci+1,0,t):t.flags&1||(ui.push(t),t.flags|=1);else for(let e=0;e<t.length;e++)ui.push(t[e]);Jm()}function Pm(t,e,r=Wr+1){for(;r<Rt.length;r++){let n=Rt[r];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Rt.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function e4(t){if(ui.length){let e=[...new Set(ui)].sort((r,n)=>As(r)-As(n));if(ui.length=0,Un){for(let r=0;r<e.length;r++)Un.push(e[r]);return}for(Un=e,ci=0;ci<Un.length;ci++){let r=Un[ci];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Un=null,ci=0}}var As=t=>t.id==null?t.flags&2?-1:1/0:t.id;function t4(t){let e=Dt;try{for(Wr=0;Wr<Rt.length;Wr++){let r=Rt[Wr];r&&!(r.flags&8)&&(r.flags&4&&(r.flags&=-2),Os(r,r.i,r.i?15:14),r.flags&4||(r.flags&=-2))}}finally{for(;Wr<Rt.length;Wr++){let r=Rt[Wr];r&&(r.flags&=-2)}Wr=-1,Rt.length=0,e4(t),pl=null,(Rt.length||ui.length)&&t4(t)}}var Gr,ks=[],Mu=!1;function _l(t,...e){Gr?Gr.emit(t,...e):Mu||ks.push({event:t,args:e})}function r4(t,e){var r,n;Gr=t,Gr?(Gr.enabled=!0,ks.forEach(({event:o,args:i})=>Gr.emit(o,...i)),ks=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{r4(i,e)}),setTimeout(()=>{Gr||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Mu=!0,ks=[])},3e3)):(Mu=!0,ks=[])}function Jv(t,e){_l("app:init",t,e,{Fragment:_e,Text:Is,Comment:Wn,Static:Ts})}function Qv(t){_l("app:unmount",t)}var eg=Ru("component:added"),n4=Ru("component:updated"),tg=Ru("component:removed"),rg=t=>{Gr&&typeof Gr.cleanupBuffer=="function"&&!Gr.cleanupBuffer(t)&&tg(t)};function Ru(t){return e=>{_l(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}function ng(t,e,r){_l("component:emit",t.appContext.app,t,e,r)}var Kr=null,o4=null;function ml(t){let e=Kr;return Kr=t,o4=t&&t.type.__scopeId||null,e}function og(t,e=Kr,r){if(!e||t._n)return t;let n=(...o)=>{n._d&&yl(-1);let i=ml(e),s=hi.length,a;try{a=t(...o)}finally{for(let l=hi.length;l>s;l--)Gg();ml(i),n._d&&yl(1)}return __VUE_PROD_DEVTOOLS__&&n4(e),a};return n._n=!0,n._c=!0,n._d=!0,n}function Eo(t,e,r,n){let o=t.dirs,i=e&&e.dirs;for(let s=0;s<o.length;s++){let a=o[s];i&&(a.oldValue=i[s].value);let l=a.dir[n];l&&($r(),dr(l,r,8,[t.el,a,t,e]),qr())}}function ig(t,e){if(Pt){let r=Pt.provides,n=Pt.parent&&Pt.parent.provides;n===r&&(r=Pt.provides=Object.create(n)),r[t]=e}}function hl(t,e,r=!1){let n=M4();if(n||di){let o=di?di._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&t in o)return o[t];if(arguments.length>1)return r&&me(e)?e.call(n&&n.proxy):e}}var sg=Symbol.for("v-scx"),ag=()=>{{let t=hl(sg);return t}};function Sr(t,e){return Pu(t,null,e)}function Xt(t,e,r){return Pu(t,e,r)}function Pu(t,e,r=Ve){let{immediate:n,deep:o,flush:i,once:s}=r,a=nt({},r),l=e&&n||!e&&i!=="post",c;if(Ns){if(i==="sync"){let v=ag();c=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){let v=()=>{};return v.stop=Dt,v.resume=Dt,v.pause=Dt,v}}let u=Pt;a.call=(v,b,w)=>dr(v,u,b,w);let f=!1;i==="post"?a.scheduler=v=>{qt(v,u&&u.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(v,b)=>{b?v():Lu(v)}),a.augmentJob=v=>{e&&(v.flags|=4),f&&(v.flags|=2,u&&(v.id=u.uid,v.i=u))};let p=Rm(t,e,a);return Ns&&(c?c.push(p):l&&p()),p}function lg(t,e,r){let n=this.proxy,o=rt(t)?t.includes(".")?i4(n,t):()=>n[t]:t.bind(n,n),i;me(e)?i=e:(i=e.handler,r=e);let s=Ls(this),a=Pu(o,i.bind(n),r);return s(),a}function i4(t,e){let r=e.split(".");return()=>{let n=t;for(let o=0;o<r.length&&n;o++)n=n[r[o]];return n}}var cg=Symbol("_vte"),Cl=t=>t.__isTeleport;var Su=Symbol("_leaveCb");function ug(t){let e=t[0];if(t.length>1){let r=!1;for(let n of t)if(n.type!==Wn){e=n,r=!0;break}}return e}function s4(t){if(!Bu(t))return Cl(t.type)&&t.children?ug(t.children):t;if(t.component)return t.component.subTree;let{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&me(r.default))return r.default()}}function Sl(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;let r=t.component.subTree;Sl(Cl(r.type)&&s4(r)||r,e)}else t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function He(t,e){return me(t)?nt({name:t.name},e,{setup:t}):t}function a4(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Bm(t,e){let r;return!!((r=Object.getOwnPropertyDescriptor(t,e))&&!r.configurable)}var vl=new WeakMap;function Cs(t,e,r,n,o=!1){if(fe(t)){t.forEach((w,g)=>Cs(w,e&&(fe(e)?e[g]:e),r,n,o));return}if(Ss(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Cs(t,e,r,n.component.subTree);return}let i=n.shapeFlag&4?$u(n.component):n.el,s=o?null:i,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Ve?a.refs={}:a.refs,f=a.setupState,p=Te(f),v=f===Ve?eu:w=>Bm(u,w)?!1:Ee(p,w),b=(w,g)=>!(g&&Bm(u,g));if(c!=null&&c!==l){if(Vm(e),rt(c))u[c]=null,v(c)&&(f[c]=null);else if(pt(c)){let w=e;b(c,w.k)&&(c.value=null),w.k&&(u[w.k]=null)}}if(me(l))Os(l,a,12,[s,u]);else{let w=rt(l),g=pt(l);if(w||g){let x=()=>{if(t.f){let k=w?v(l)?f[l]:u[l]:b(l)||!t.k?l.value:u[t.k];if(o)fe(k)&&os(k,i);else if(fe(k))k.includes(i)||k.push(i);else if(w)u[l]=[i],v(l)&&(f[l]=u[l]);else{let T=[i];b(l,t.k)&&(l.value=T),t.k&&(u[t.k]=T)}}else w?(u[l]=s,v(l)&&(f[l]=s)):g&&(b(l,t.k)&&(l.value=s),t.k&&(u[t.k]=s))};if(s){let k=()=>{x(),vl.delete(t)};k.id=-1,vl.set(t,k),qt(k,r)}else Vm(t),x()}}}function Vm(t){let e=vl.get(t);e&&(e.flags|=8,vl.delete(t))}var ES=Fn().requestIdleCallback||(t=>setTimeout(t,1)),TS=Fn().cancelIdleCallback||(t=>clearTimeout(t));var Ss=t=>!!t.type.__asyncLoader;var Bu=t=>t.type.__isKeepAlive;function dg(t,e){l4(t,"a",e)}function hg(t,e){l4(t,"da",e)}function l4(t,e,r=Pt){let n=t.__wdc||(t.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(El(e,n,r),r){let o=r.parent;for(;o&&o.parent;)Bu(o.parent.vnode)&&fg(n,e,r,o),o=o.parent}}function fg(t,e,r,n){let o=El(e,t,n,!0);Zr(()=>{os(n[e],o)},r)}function El(t,e,r=Pt,n=!1){if(r){let o=r[t]||(r[t]=[]),i=e.__weh||(e.__weh=(...s)=>{$r();let a=Ls(r),l=dr(e,r,t,s);return a(),qr(),l});return n?o.unshift(i):o.push(i),i}}var Cn=t=>(e,r=Pt)=>{(!Ns||t==="sp")&&El(t,(...n)=>e(...n),r)},pg=Cn("bm"),Yr=Cn("m"),c4=Cn("bu"),u4=Cn("u"),mg=Cn("bum"),Zr=Cn("um"),vg=Cn("sp"),gg=Cn("rtg"),yg=Cn("rtc");function bg(t,e=Pt){El("ec",t,e)}var wg=Symbol.for("v-ndc");var Nu=t=>t?N4(t)?$u(t):Nu(t.parent):null,Es=nt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Nu(t.parent),$root:t=>Nu(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?Vu(t):t.type,$forceUpdate:t=>t.f||(t.f=()=>{Lu(t.update)}),$nextTick:t=>t.n||(t.n=Ds.bind(t.proxy)),$watch:t=>__VUE_OPTIONS_API__?lg.bind(t):Dt});var Eu=(t,e)=>t!==Ve&&!t.__isScriptSetup&&Ee(t,e),xg={get({_:t},e){if(e==="__v_skip")return!0;let{ctx:r,setupState:n,data:o,props:i,accessCache:s,type:a,appContext:l}=t;if(e[0]!=="$"){let p=s[e];if(p!==void 0)switch(p){case 1:return n[e];case 2:return o[e];case 4:return r[e];case 3:return i[e]}else{if(Eu(n,e))return s[e]=1,n[e];if(__VUE_OPTIONS_API__&&o!==Ve&&Ee(o,e))return s[e]=2,o[e];if(Ee(i,e))return s[e]=3,i[e];if(r!==Ve&&Ee(r,e))return s[e]=4,r[e];(!__VUE_OPTIONS_API__||Ou)&&(s[e]=0)}}let c=Es[e],u,f;if(c)return e==="$attrs"&&wt(t.attrs,"get",""),c(t);if((u=a.__cssModules)&&(u=u[e]))return u;if(r!==Ve&&Ee(r,e))return s[e]=4,r[e];if(f=l.config.globalProperties,Ee(f,e))return f[e]},set({_:t},e,r){let{data:n,setupState:o,ctx:i}=t;return Eu(o,e)?(o[e]=r,!0):__VUE_OPTIONS_API__&&n!==Ve&&Ee(n,e)?(n[e]=r,!0):Ee(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:o,props:i,type:s}},a){let l;return!!(r[a]||__VUE_OPTIONS_API__&&t!==Ve&&a[0]!=="$"&&Ee(t,a)||Eu(e,a)||Ee(i,a)||Ee(n,a)||Ee(Es,a)||Ee(o.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Ee(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function Hm(t){return fe(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}var Ou=!0;function kg(t){let e=Vu(t),r=t.proxy,n=t.ctx;Ou=!1,e.beforeCreate&&zm(e.beforeCreate,t,"bc");let{data:o,computed:i,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:v,updated:b,activated:w,deactivated:g,beforeDestroy:x,beforeUnmount:k,destroyed:T,unmounted:O,render:N,renderTracked:D,renderTriggered:$,errorCaptured:I,serverPrefetch:L,expose:W,inheritAttrs:ie,components:B,directives:ye,filters:Ae}=e;if(c&&_g(c,n,null),s)for(let Se in s){let be=s[Se];me(be)&&(n[Se]=be.bind(r))}if(o){let Se=o.call(r,r);Be(Se)&&(t.data=bs(Se))}if(Ou=!0,i)for(let Se in i){let be=i[Se],kt=me(be)?be.bind(r,r):me(be.get)?be.get.bind(r,r):Dt,Mt=!me(be)&&me(be.set)?be.set.bind(r):Dt,gt=xt({get:kt,set:Mt});Object.defineProperty(n,Se,{enumerable:!0,configurable:!0,get:()=>gt.value,set:Nt=>gt.value=Nt})}if(a)for(let Se in a)d4(a[Se],n,r,Se);if(l){let Se=me(l)?l.call(r):l;Reflect.ownKeys(Se).forEach(be=>{ig(be,Se[be])})}u&&zm(u,t,"c");function Me(Se,be){fe(be)?be.forEach(kt=>Se(kt.bind(r))):be&&Se(be.bind(r))}if(Me(pg,f),Me(Yr,p),Me(c4,v),Me(u4,b),Me(dg,w),Me(hg,g),Me(bg,I),Me(yg,D),Me(gg,$),Me(mg,k),Me(Zr,O),Me(vg,L),fe(W))if(W.length){let Se=t.exposed||(t.exposed={});W.forEach(be=>{Object.defineProperty(Se,be,{get:()=>r[be],set:kt=>r[be]=kt,enumerable:!0})})}else t.exposed||(t.exposed={});N&&t.render===Dt&&(t.render=N),ie!=null&&(t.inheritAttrs=ie),B&&(t.components=B),ye&&(t.directives=ye),L&&a4(t)}function _g(t,e,r=Dt){fe(t)&&(t=Du(t));for(let n in t){let o=t[n],i;Be(o)?"default"in o?i=hl(o.from||n,o.default,!0):i=hl(o.from||n):i=hl(o),pt(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):e[n]=i}}function zm(t,e,r){dr(fe(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function d4(t,e,r,n){let o=n.includes(".")?i4(r,n):()=>r[n];if(rt(t)){let i=e[t];me(i)&&Xt(o,i)}else if(me(t))Xt(o,t.bind(r));else if(Be(t))if(fe(t))t.forEach(i=>d4(i,e,r,n));else{let i=me(t.handler)?t.handler.bind(r):e[t.handler];me(i)&&Xt(o,i,t)}}function Vu(t){let e=t.type,{mixins:r,extends:n}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=t.appContext,a=i.get(e),l;return a?l=a:!o.length&&!r&&!n?l=e:(l={},o.length&&o.forEach(c=>gl(l,c,s,!0)),gl(l,e,s)),Be(e)&&i.set(e,l),l}function gl(t,e,r,n=!1){let{mixins:o,extends:i}=e;i&&gl(t,i,r,!0),o&&o.forEach(s=>gl(t,s,r,!0));for(let s in e)if(!(n&&s==="expose")){let a=Cg[s]||r&&r[s];t[s]=a?a(t[s],e[s]):e[s]}return t}var Cg={data:Fm,props:$m,emits:$m,methods:_s,computed:_s,beforeCreate:Lt,created:Lt,beforeMount:Lt,mounted:Lt,beforeUpdate:Lt,updated:Lt,beforeDestroy:Lt,beforeUnmount:Lt,destroyed:Lt,unmounted:Lt,activated:Lt,deactivated:Lt,errorCaptured:Lt,serverPrefetch:Lt,components:_s,directives:_s,watch:Eg,provide:Fm,inject:Sg};function Fm(t,e){return e?t?function(){return nt(me(t)?t.call(this,this):t,me(e)?e.call(this,this):e)}:e:t}function Sg(t,e){return _s(Du(t),Du(e))}function Du(t){if(fe(t)){let e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function Lt(t,e){return t?[...new Set([].concat(t,e))]:e}function _s(t,e){return t?nt(Object.create(null),t,e):e}function $m(t,e){return t?fe(t)&&fe(e)?[...new Set([...t,...e])]:nt(Object.create(null),Hm(t),Hm(e??{})):e}function Eg(t,e){if(!t)return e;if(!e)return t;let r=nt(Object.create(null),t);for(let n in e)r[n]=Lt(t[n],e[n]);return r}function h4(){return{app:null,config:{isNativeTag:eu,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Tg=0;function Ag(t,e){return function(n,o=null){me(n)||(n=nt({},n)),o!=null&&!Be(o)&&(o=null);let i=h4(),s=new WeakSet,a=[],l=!1,c=i.app={_uid:Tg++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:Zm,get config(){return i.config},set config(u){},use(u,...f){return s.has(u)||(u&&me(u.install)?(s.add(u),u.install(c,...f)):me(u)&&(s.add(u),u(c,...f))),c},mixin(u){return __VUE_OPTIONS_API__&&(i.mixins.includes(u)||i.mixins.push(u)),c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,p){if(!l){let v=c._ceVNode||ur(n,o);return v.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),f&&e?e(v,u):t(v,u,p),l=!0,c._container=u,u.__vue_app__=c,__VUE_PROD_DEVTOOLS__&&(c._instance=v.component,Jv(c,Zm)),$u(v.component)}},onUnmount(u){a.push(u)},unmount(){l&&(dr(a,c._instance,16),t(null,c._container),__VUE_PROD_DEVTOOLS__&&(c._instance=null,Qv(c)),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){let f=di;di=c;try{return u()}finally{di=f}}};return c}}var di=null;var Mg=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${It(e)}Modifiers`]||t[`${bn(e)}Modifiers`];function Ng(t,e,...r){if(t.isUnmounted)return;let n=t.vnode.props||Ve,o=r,i=e.startsWith("update:"),s=i&&Mg(n,e.slice(7));s&&(s.trim&&(o=r.map(u=>rt(u)?u.trim():u)),s.number&&(o=r.map(iu))),__VUE_PROD_DEVTOOLS__&&ng(t,e,o);let a,l=n[a=as(e)]||n[a=as(It(e))];!l&&i&&(l=n[a=as(bn(e))]),l&&dr(l,t,6,o);let c=n[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,dr(c,t,6,o)}}var Og=new WeakMap;function f4(t,e,r=!1){let n=__VUE_OPTIONS_API__&&r?Og:e.emitsCache,o=n.get(t);if(o!==void 0)return o;let i=t.emits,s={},a=!1;if(__VUE_OPTIONS_API__&&!me(t)){let l=c=>{let u=f4(c,e,!0);u&&(a=!0,nt(s,u))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!a?(Be(t)&&n.set(t,null),null):(fe(i)?i.forEach(l=>s[l]=null):nt(s,i),Be(t)&&n.set(t,s),s)}function Tl(t,e){return!t||!ti(e)?!1:(e=e.slice(2),e=e==="Once"?e:e.replace(/Once$/,""),Ee(t,e[0].toLowerCase()+e.slice(1))||Ee(t,bn(e))||Ee(t,e))}function Tu(t){let{type:e,vnode:r,proxy:n,withProxy:o,propsOptions:[i],slots:s,attrs:a,emit:l,render:c,renderCache:u,props:f,data:p,setupState:v,ctx:b,inheritAttrs:w}=t,g=ml(t),x,k;try{if(r.shapeFlag&4){let N=o||n,D=N;x=jr(c.call(D,N,u,f,v,p,b)),k=a}else{let N=e;x=jr(N.length>1?N(f,{attrs:a,slots:s,emit:l}):N(f,null)),k=e.props?a:Dg(a)}}catch(N){hi.length=0,kl(N,t,1),x=ur(Wn)}let T=x,O;if(k&&w!==!1){let N=Object.keys(k),{shapeFlag:D}=T;N.length&&D&7&&(i&&N.some(ri)&&(k=Ig(k,i)),T=fi(T,k,!1,!0))}if(r.dirs&&(T=fi(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(r.dirs):r.dirs),r.transition){let N=Cl(T.type)&&s4(T)||T;Sl(N,r.transition)}return x=T,ml(g),x}var Dg=t=>{let e;for(let r in t)(r==="class"||r==="style"||ti(r))&&((e||(e={}))[r]=t[r]);return e},Ig=(t,e)=>{let r={};for(let n in t)(!ri(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function Lg(t,e,r){let{props:n,children:o,component:i}=t,{props:s,children:a,patchFlag:l}=e,c=i.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?qm(n,s,c):!!s;if(l&8){let u=e.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(p4(s,n,p)&&!Tl(c,p))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:n===s?!1:n?s?qm(n,s,c):!0:!!s;return!1}function qm(t,e,r){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let o=0;o<n.length;o++){let i=n[o];if(p4(e,t,i)&&!Tl(r,i))return!0}return!1}function p4(t,e,r){let n=t[r],o=e[r];return r==="style"&&Be(n)&&Be(o)?!ds(n,o):n!==o}function Rg({vnode:t,parent:e,suspense:r},n){for(;e;){let o=e.subTree;if(o.suspense&&o.suspense.activeBranch===t&&(o.suspense.vnode.el=o.el=n,t=o),o===t)(t=e.vnode).el=n,e=e.parent;else break}r&&r.activeBranch===t&&(r.vnode.el=n)}var m4={},v4=()=>Object.create(m4),g4=t=>Object.getPrototypeOf(t)===m4;function Pg(t,e,r,n=!1){let o={},i=v4();t.propsDefaults=Object.create(null),y4(t,e,o,i);for(let s in t.propsOptions[0])s in o||(o[s]=void 0);r?t.props=n?o:xu(o):t.type.props?t.props=o:t.props=i,t.attrs=i}function Bg(t,e,r,n){let{props:o,attrs:i,vnode:{patchFlag:s}}=t,a=Te(o),[l]=t.propsOptions,c=!1;if((n||s>0)&&!(s&16)){if(s&8){let u=t.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(Tl(t.emitsOptions,p))continue;let v=e[p];if(l)if(Ee(i,p))v!==i[p]&&(i[p]=v,c=!0);else{let b=It(p);o[b]=Iu(l,a,b,v,t,!1)}else v!==i[p]&&(i[p]=v,c=!0)}}}else{y4(t,e,o,i)&&(c=!0);let u;for(let f in a)(!e||!Ee(e,f)&&((u=bn(f))===f||!Ee(e,u)))&&(l?r&&(r[f]!==void 0||r[u]!==void 0)&&(o[f]=Iu(l,a,f,void 0,t,!0)):delete o[f]);if(i!==a)for(let f in i)(!e||!Ee(e,f))&&(delete i[f],c=!0)}c&&Hr(t.attrs,"set","")}function y4(t,e,r,n){let[o,i]=t.propsOptions,s=!1,a;if(e)for(let l in e){if(oi(l))continue;let c=e[l],u;o&&Ee(o,u=It(l))?!i||!i.includes(u)?r[u]=c:(a||(a={}))[u]=c:Tl(t.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,s=!0)}if(i){let l=Te(r),c=a||Ve;for(let u=0;u<i.length;u++){let f=i[u];r[f]=Iu(o,l,f,c[f],t,!Ee(c,f))}}return s}function Iu(t,e,r,n,o,i){let s=t[r];if(s!=null){let a=Ee(s,"default");if(a&&n===void 0){let l=s.default;if(s.type!==Function&&!s.skipFactory&&me(l)){let{propsDefaults:c}=o;if(r in c)n=c[r];else{let u=Ls(o);n=c[r]=l.call(null,e),u()}}else n=l;o.ce&&o.ce._setProp(r,n)}s[0]&&(i&&!a?n=!1:s[1]&&(n===""||n===bn(r))&&(n=!0))}return n}var Vg=new WeakMap;function b4(t,e,r=!1){let n=__VUE_OPTIONS_API__&&r?Vg:e.propsCache,o=n.get(t);if(o)return o;let i=t.props,s={},a=[],l=!1;if(__VUE_OPTIONS_API__&&!me(t)){let u=f=>{l=!0;let[p,v]=b4(f,e,!0);nt(s,p),v&&a.push(...v)};!r&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!i&&!l)return Be(t)&&n.set(t,ei),ei;if(fe(i))for(let u=0;u<i.length;u++){let f=It(i[u]);Um(f)&&(s[f]=Ve)}else if(i)for(let u in i){let f=It(u);if(Um(f)){let p=i[u],v=s[f]=fe(p)||me(p)?{type:p}:nt({},p),b=v.type,w=!1,g=!0;if(fe(b))for(let x=0;x<b.length;++x){let k=b[x],T=me(k)&&k.name;if(T==="Boolean"){w=!0;break}else T==="String"&&(g=!1)}else w=me(b)&&b.name==="Boolean";v[0]=w,v[1]=g,(w||Ee(v,"default"))&&a.push(f)}}let c=[s,a];return Be(t)&&n.set(t,c),c}function Um(t){return t[0]!=="$"&&!oi(t)}var Hu=t=>t==="_"||t==="_ctx"||t==="$stable",zu=t=>fe(t)?t.map(jr):[jr(t)],Hg=(t,e,r)=>{if(e._n)return e;let n=og((...o)=>zu(e(...o)),r);return n._c=!1,n},w4=(t,e,r)=>{let n=t._ctx;for(let o in t){if(Hu(o))continue;let i=t[o];if(me(i))e[o]=Hg(o,i,n);else if(i!=null){let s=zu(i);e[o]=()=>s}}},x4=(t,e)=>{let r=zu(e);t.slots.default=()=>r},k4=(t,e,r)=>{for(let n in e)(r||!Hu(n))&&(t[n]=e[n])},zg=(t,e,r)=>{let n=t.slots=v4();if(t.vnode.shapeFlag&32){let o=e._;o?(k4(n,e,r),r&&ii(n,"_",o,!0)):w4(e,n)}else e&&x4(t,e)},Fg=(t,e,r)=>{let{vnode:n,slots:o}=t,i=!0,s=Ve;if(n.shapeFlag&32){let a=e._;a?r&&a===1?i=!1:k4(o,e,r):(i=!e.$stable,w4(e,o)),s=e}else e&&(x4(t,e),s={default:1});if(i)for(let a in o)!Hu(a)&&s[a]==null&&delete o[a]};function $g(){let t=[];typeof __VUE_OPTIONS_API__!="boolean"&&(Fn().__VUE_OPTIONS_API__=!0),typeof __VUE_PROD_DEVTOOLS__!="boolean"&&(Fn().__VUE_PROD_DEVTOOLS__=!1),typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Fn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}var qt=jg;function _4(t){return qg(t)}function qg(t,e){$g();let r=Fn();r.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&r4(r.__VUE_DEVTOOLS_GLOBAL_HOOK__,r);let{insert:n,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:v=Dt,insertStaticContent:b}=t,w=(_,A,P,U=null,H=null,z=null,J=void 0,X=null,Y=!!A.dynamicChildren)=>{if(_===A)return;_&&!xs(_,A)&&(U=Lr(_),Ye(_,H,z,!0),_=null),A.patchFlag===-2&&(Y=!1,A.dynamicChildren=null);let{type:F,ref:se,shapeFlag:ee}=A;switch(F){case Is:g(_,A,P,U);break;case Wn:x(_,A,P,U);break;case Ts:_==null&&k(A,P,U,J);break;case _e:ye(_,A,P,U,H,z,J,X,Y);break;default:ee&1?D(_,A,P,U,H,z,J,X,Y):ee&6?Ae(_,A,P,U,H,z,J,X,Y):(ee&64||ee&128)&&F.process(_,A,P,U,H,z,J,X,Y,sr)}se!=null&&H?Cs(se,_&&_.ref,z,A||_,!A):se==null&&_&&_.ref!=null&&Cs(_.ref,null,z,_,!0)},g=(_,A,P,U)=>{if(_==null)n(A.el=a(A.children),P,U);else{let H=A.el=_.el;A.children!==_.children&&c(H,A.children)}},x=(_,A,P,U)=>{_==null?n(A.el=l(A.children||""),P,U):A.el=_.el},k=(_,A,P,U)=>{[_.el,_.anchor]=b(_.children,A,P,U,_.el,_.anchor)},T=(_,A,P,U)=>{if(A.children!==_.children){let H=p(_.anchor);N(_),[A.el,A.anchor]=b(A.children,P,H,U)}else A.el=_.el,A.anchor=_.anchor},O=({el:_,anchor:A},P,U)=>{let H;for(;_&&_!==A;)H=p(_),n(_,P,U),_=H;n(A,P,U)},N=({el:_,anchor:A})=>{let P;for(;_&&_!==A;)P=p(_),o(_),_=P;o(A)},D=(_,A,P,U,H,z,J,X,Y)=>{if(A.type==="svg"?J="svg":A.type==="math"&&(J="mathml"),_==null)$(A,P,U,H,z,J,X,Y);else{let F=_.el&&_.el._isVueCE?_.el:null;try{F&&F._beginPatch(),W(_,A,H,z,J,X,Y)}finally{F&&F._endPatch()}}},$=(_,A,P,U,H,z,J,X)=>{let Y,F,{props:se,shapeFlag:ee,transition:oe,dirs:ue}=_;if(Y=_.el=s(_.type,z,se&&se.is,se),ee&8?u(Y,_.children):ee&16&&L(_.children,Y,null,U,H,Au(_,z),J,X),ue&&Eo(_,null,U,"created"),I(Y,_,_.scopeId,J,U),se){for(let ke in se)ke!=="value"&&!oi(ke)&&i(Y,ke,null,se[ke],z,U);"value"in se&&i(Y,"value",null,se.value,z),(F=se.onVnodeBeforeMount)&&Ur(F,U,_)}__VUE_PROD_DEVTOOLS__&&(ii(Y,"__vnode",_,!0),ii(Y,"__vueParentComponent",U,!0)),ue&&Eo(_,null,U,"beforeMount");let ge=Ug(H,oe);ge&&oe.beforeEnter(Y),n(Y,A,P),((F=se&&se.onVnodeMounted)||ge||ue)&&qt(()=>{let Ne;F&&Ur(F,U,_),ge&&oe.enter(Y),ue&&Eo(_,null,U,"mounted")},H)},I=(_,A,P,U,H)=>{if(P&&v(_,P),U)for(let z=0;z<U.length;z++)v(_,U[z]);if(H){let z=H.subTree;if(A===z||T4(z.type)&&(z.ssContent===A||z.ssFallback===A)){let J=H.vnode;I(_,J,J.scopeId,J.slotScopeIds,H.parent)}}},L=(_,A,P,U,H,z,J,X,Y=0)=>{for(let F=Y;F<_.length;F++){let se=_[F]=X?kn(_[F]):jr(_[F]);w(null,se,A,P,U,H,z,J,X)}},W=(_,A,P,U,H,z,J)=>{let X=A.el=_.el;__VUE_PROD_DEVTOOLS__&&(X.__vnode=A);let{patchFlag:Y,dynamicChildren:F,dirs:se}=A;Y|=_.patchFlag&16;let ee=_.props||Ve,oe=A.props||Ve,ue;if(P&&To(P,!1),(ue=oe.onVnodeBeforeUpdate)&&Ur(ue,P,A,_),se&&Eo(A,_,P,"beforeUpdate"),P&&To(P,!0),F&&(!_.dynamicChildren||_.dynamicChildren.length!==F.length)&&(Y=0,J=!1,F=null),(ee.innerHTML&&oe.innerHTML==null||ee.textContent&&oe.textContent==null)&&u(X,""),F?ie(_.dynamicChildren,F,X,P,U,Au(A,H),z):J||kt(_,A,X,null,P,U,Au(A,H),z,!1),Y>0){if(Y&16)B(X,ee,oe,P,H);else if(Y&2&&ee.class!==oe.class&&i(X,"class",null,oe.class,H),Y&4&&i(X,"style",ee.style,oe.style,H),Y&8){let ge=A.dynamicProps;for(let ke=0;ke<ge.length;ke++){let Ne=ge[ke],Ze=ee[Ne],tt=oe[Ne];(tt!==Ze||Ne==="value")&&i(X,Ne,Ze,tt,H,P)}}Y&1&&_.children!==A.children&&u(X,A.children)}else!J&&F==null&&B(X,ee,oe,P,H);((ue=oe.onVnodeUpdated)||se)&&qt(()=>{ue&&Ur(ue,P,A,_),se&&Eo(A,_,P,"updated")},U)},ie=(_,A,P,U,H,z,J)=>{for(let X=0;X<A.length;X++){let Y=_[X],F=A[X],se=Y.el&&(Y.type===_e||!xs(Y,F)||Y.shapeFlag&198)?f(Y.el):P;w(Y,F,se,null,U,H,z,J,!0)}},B=(_,A,P,U,H)=>{if(A!==P){if(A!==Ve)for(let z in A)!oi(z)&&!(z in P)&&i(_,z,A[z],null,H,U);for(let z in P){if(oi(z))continue;let J=P[z],X=A[z];J!==X&&z!=="value"&&i(_,z,X,J,H,U)}"value"in P&&i(_,"value",A.value,P.value,H)}},ye=(_,A,P,U,H,z,J,X,Y)=>{let F=A.el=_?_.el:a(""),se=A.anchor=_?_.anchor:a(""),{patchFlag:ee,dynamicChildren:oe,slotScopeIds:ue}=A;ue&&(X=X?X.concat(ue):ue),_==null?(n(F,P,U),n(se,P,U),L(A.children||[],P,se,H,z,J,X,Y)):ee>0&&ee&64&&oe&&_.dynamicChildren&&_.dynamicChildren.length===oe.length?(ie(_.dynamicChildren,oe,P,H,z,J,X),(A.key!=null||H&&A===H.subTree)&&C4(_,A,!0)):kt(_,A,P,se,H,z,J,X,Y)},Ae=(_,A,P,U,H,z,J,X,Y)=>{A.slotScopeIds=X,_==null?A.shapeFlag&512?H.ctx.activate(A,P,U,J,Y):Fe(A,P,U,H,z,J,Y):Me(_,A,Y)},Fe=(_,A,P,U,H,z,J)=>{let X=_.component=t8(_,U,H);if(Bu(_)&&(X.ctx.renderer=sr),r8(X,!1,J),X.asyncDep){if(H&&H.registerDep(X,Se,J),!_.el){let Y=X.subTree=ur(Wn);x(null,Y,A,P),_.placeholder=Y.el}}else Se(X,_,A,P,H,z,J)},Me=(_,A,P)=>{let U=A.component=_.component;if(Lg(_,A,P))if(U.asyncDep&&!U.asyncResolved){be(U,A,P);return}else U.next=A,U.update();else A.el=_.el,U.vnode=A},Se=(_,A,P,U,H,z,J)=>{let X=()=>{if(_.isMounted){let{next:ee,bu:oe,u:ue,parent:ge,vnode:ke}=_;{let _t=S4(_);if(_t){ee&&(ee.el=ke.el,be(_,ee,J)),_t.asyncDep.then(()=>{qt(()=>{_.isUnmounted||F()},H)});return}}let Ne=ee,Ze;To(_,!1),ee?(ee.el=ke.el,be(_,ee,J)):ee=ke,oe&&ls(oe),(Ze=ee.props&&ee.props.onVnodeBeforeUpdate)&&Ur(Ze,ge,ee,ke),To(_,!0);let tt=Tu(_),Ft=_.subTree;_.subTree=tt,w(Ft,tt,f(Ft.el),Lr(Ft),_,H,z),ee.el=tt.el,Ne===null&&Rg(_,tt.el),ue&&qt(ue,H),(Ze=ee.props&&ee.props.onVnodeUpdated)&&qt(()=>Ur(Ze,ge,ee,ke),H),__VUE_PROD_DEVTOOLS__&&n4(_)}else{let ee,{el:oe,props:ue}=A,{bm:ge,m:ke,parent:Ne,root:Ze,type:tt}=_,Ft=Ss(A);if(To(_,!1),ge&&ls(ge),!Ft&&(ee=ue&&ue.onVnodeBeforeMount)&&Ur(ee,Ne,A),To(_,!0),oe&&wr){let _t=()=>{_.subTree=Tu(_),wr(oe,_.subTree,_,H,null)};Ft&&tt.__asyncHydrate?tt.__asyncHydrate(oe,_,_t):_t()}else{Ze.ce&&Ze.ce._hasShadowRoot()&&Ze.ce._injectChildStyle(tt,_.parent?_.parent.type:void 0);let _t=_.subTree=Tu(_);w(null,_t,P,U,_,H,z),A.el=_t.el}if(ke&&qt(ke,H),!Ft&&(ee=ue&&ue.onVnodeMounted)){let _t=A;qt(()=>Ur(ee,Ne,_t),H)}(A.shapeFlag&256||Ne&&Ss(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&_.a&&qt(_.a,H),_.isMounted=!0,__VUE_PROD_DEVTOOLS__&&eg(_),A=P=U=null}};_.scope.on();let Y=_.effect=new ai(X);_.scope.off();let F=_.update=Y.run.bind(Y),se=_.job=Y.runIfDirty.bind(Y);se.i=_,se.id=_.uid,Y.scheduler=()=>Lu(se),To(_,!0),F()},be=(_,A,P)=>{A.component=_;let U=_.vnode.props;_.vnode=A,_.next=null,Bg(_,A.props,U,P),Fg(_,A.children,P),$r(),Pm(_),qr()},kt=(_,A,P,U,H,z,J,X,Y=!1)=>{let F=_&&_.children,se=_?_.shapeFlag:0,ee=A.children,{patchFlag:oe,shapeFlag:ue}=A;if(oe>0){if(oe&128){gt(F,ee,P,U,H,z,J,X,Y);return}else if(oe&256){Mt(F,ee,P,U,H,z,J,X,Y);return}}ue&8?(se&16&&Ot(F,H,z),ee!==F&&u(P,ee)):se&16?ue&16?gt(F,ee,P,U,H,z,J,X,Y):Ot(F,H,z,!0):(se&8&&u(P,""),ue&16&&L(ee,P,U,H,z,J,X,Y))},Mt=(_,A,P,U,H,z,J,X,Y)=>{_=_||ei,A=A||ei;let F=_.length,se=A.length,ee=Math.min(F,se),oe;for(oe=0;oe<ee;oe++){let ue=A[oe]=Y?kn(A[oe]):jr(A[oe]);w(_[oe],ue,P,null,H,z,J,X,Y)}F>se?Ot(_,H,z,!0,!1,ee):L(A,P,U,H,z,J,X,Y,ee)},gt=(_,A,P,U,H,z,J,X,Y)=>{let F=0,se=A.length,ee=_.length-1,oe=se-1;for(;F<=ee&&F<=oe;){let ue=_[F],ge=A[F]=Y?kn(A[F]):jr(A[F]);if(xs(ue,ge))w(ue,ge,P,null,H,z,J,X,Y);else break;F++}for(;F<=ee&&F<=oe;){let ue=_[ee],ge=A[oe]=Y?kn(A[oe]):jr(A[oe]);if(xs(ue,ge))w(ue,ge,P,null,H,z,J,X,Y);else break;ee--,oe--}if(F>ee){if(F<=oe){let ue=oe+1,ge=ue<se?A[ue].el:U;for(;F<=oe;)w(null,A[F]=Y?kn(A[F]):jr(A[F]),P,ge,H,z,J,X,Y),F++}}else if(F>oe)for(;F<=ee;)Ye(_[F],H,z,!0),F++;else{let ue=F,ge=F,ke=new Map;for(F=ge;F<=oe;F++){let Ct=A[F]=Y?kn(A[F]):jr(A[F]);Ct.key!=null&&ke.set(Ct.key,F)}let Ne,Ze=0,tt=oe-ge+1,Ft=!1,_t=0,Bn=new Array(tt);for(F=0;F<tt;F++)Bn[F]=0;for(F=ue;F<=ee;F++){let Ct=_[F];if(Ze>=tt){Ye(Ct,H,z,!0);continue}let Gt;if(Ct.key!=null)Gt=ke.get(Ct.key);else for(Ne=ge;Ne<=oe;Ne++)if(Bn[Ne-ge]===0&&xs(Ct,A[Ne])){Gt=Ne;break}Gt===void 0?Ye(Ct,H,z,!0):(Bn[Gt-ge]=F+1,Gt>=_t?_t=Gt:Ft=!0,w(Ct,A[Gt],P,null,H,z,J,X,Y),Ze++)}let $i=Ft?Wg(Bn):ei;for(Ne=$i.length-1,F=tt-1;F>=0;F--){let Ct=ge+F,Gt=A[Ct],qi=A[Ct+1],Ui=Ct+1<se?qi.el||E4(qi):U;Bn[F]===0?w(null,Gt,P,Ui,H,z,J,X,Y):Ft&&(Ne<0||F!==$i[Ne]?Nt(Gt,P,Ui,2):Ne--)}}},Nt=(_,A,P,U,H=null)=>{let{el:z,type:J,transition:X,children:Y,shapeFlag:F}=_;if(F&6){Nt(_.component.subTree,A,P,U);return}if(F&128){_.suspense.move(A,P,U);return}if(F&64){J.move(_,A,P,sr);return}if(J===_e){n(z,A,P);for(let ee=0;ee<Y.length;ee++)Nt(Y[ee],A,P,U);n(_.anchor,A,P);return}if(J===Ts){O(_,A,P);return}if(U!==2&&F&1&&X)if(U===0)X.persisted&&!z[Su]?n(z,A,P):(X.beforeEnter(z),n(z,A,P),qt(()=>X.enter(z),H));else{let{leave:ee,delayLeave:oe,afterLeave:ue}=X,ge=()=>{_.ctx.isUnmounted?o(z):n(z,A,P)},ke=()=>{let Ne=z._isLeaving||!!z[Su];z._isLeaving&&z[Su](!0),X.persisted&&!Ne?ge():ee(z,()=>{ge(),ue&&ue()})};oe?oe(z,ge,ke):ke()}else n(z,A,P)},Ye=(_,A,P,U=!1,H=!1)=>{let{type:z,props:J,ref:X,children:Y,dynamicChildren:F,shapeFlag:se,patchFlag:ee,dirs:oe,cacheIndex:ue,memo:ge}=_;if(ee===-2&&(H=!1),X!=null&&($r(),Cs(X,null,P,_,!0),qr()),ue!=null&&(A.renderCache[ue]=void 0),se&256){A.ctx.deactivate(_);return}let ke=se&1&&oe,Ne=!Ss(_),Ze;if(Ne&&(Ze=J&&J.onVnodeBeforeUnmount)&&Ur(Ze,A,_),se&6)Uo(_.component,P,U);else{if(se&128){_.suspense.unmount(P,U);return}ke&&Eo(_,null,A,"beforeUnmount"),se&64?_.type.remove(_,A,P,sr,U):F&&!F.hasOnce&&(z!==_e||ee>0&&ee&64)?Ot(F,A,P,!1,!0):(z===_e&&ee&384||!H&&se&16)&&Ot(Y,A,P),U&&Ir(_)}let tt=ge!=null&&ue==null;(Ne&&(Ze=J&&J.onVnodeUnmounted)||ke||tt)&&qt(()=>{Ze&&Ur(Ze,A,_),ke&&Eo(_,null,A,"unmounted"),tt&&(_.el=null)},P)},Ir=_=>{let{type:A,el:P,anchor:U,transition:H}=_;if(A===_e){vo(P,U);return}if(A===Ts){N(_);return}let z=()=>{o(P),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(_.shapeFlag&1&&H&&!H.persisted){let{leave:J,delayLeave:X}=H,Y=()=>J(P,z);X?X(_.el,z,Y):Y()}else z()},vo=(_,A)=>{let P;for(;_!==A;)P=p(_),o(_),_=P;o(A)},Uo=(_,A,P)=>{let{bum:U,scope:H,job:z,subTree:J,um:X,m:Y,a:F}=_;Wm(Y),Wm(F),U&&ls(U),H.stop(),z&&(z.flags|=8,Ye(J,_,A,P)),X&&qt(X,A),qt(()=>{_.isUnmounted=!0},A),__VUE_PROD_DEVTOOLS__&&rg(_)},Ot=(_,A,P,U=!1,H=!1,z=0)=>{for(let J=z;J<_.length;J++)Ye(_[J],A,P,U,H)},Lr=_=>{if(_.shapeFlag&6)return Lr(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();let A=p(_.anchor||_.el),P=A&&A[cg];return P?p(P):A},jt=!1,Pn=(_,A,P)=>{let U;_==null?A._vnode&&(Ye(A._vnode,null,null,!0),U=A._vnode.component):w(A._vnode||null,_,A,null,null,null,P),A._vnode=_,jt||(jt=!0,Pm(U),e4(),jt=!1)},sr={p:w,um:Ye,m:Nt,r:Ir,mt:Fe,mc:L,pc:kt,pbc:ie,n:Lr,o:t},cn,wr;return e&&([cn,wr]=e(sr)),{render:Pn,hydrate:cn,createApp:Ag(Pn,cn)}}function Au({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function To({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Ug(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function C4(t,e,r=!1){let n=t.children,o=e.children;if(fe(n)&&fe(o))for(let i=0;i<n.length;i++){let s=n[i],a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=kn(o[i]),a.el=s.el),!r&&a.patchFlag!==-2&&C4(s,a)),a.type===Is&&(a.patchFlag===-1&&(a=o[i]=kn(a)),a.el=s.el),a.type===Wn&&!a.el&&(a.el=s.el)}}function Wg(t){let e=t.slice(),r=[0],n,o,i,s,a,l=t.length;for(n=0;n<l;n++){let c=t[n];if(c!==0){if(o=r[r.length-1],t[o]<c){e[n]=o,r.push(n);continue}for(i=0,s=r.length-1;i<s;)a=i+s>>1,t[r[a]]<c?i=a+1:s=a;c<t[r[i]]&&(i>0&&(e[n]=r[i-1]),r[i]=n)}}for(i=r.length,s=r[i-1];i-- >0;)r[i]=s,s=e[s];return r}function S4(t){let e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:S4(e)}function Wm(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function E4(t){if(t.placeholder)return t.placeholder;let e=t.component;return e?E4(e.subTree):null}var T4=t=>t.__isSuspense;function jg(t,e){e&&e.pendingBranch?fe(t)?e.effects.push(...t):e.effects.push(t):Qm(t)}var _e=Symbol.for("v-fgt"),Is=Symbol.for("v-txt"),Wn=Symbol.for("v-cmt"),Ts=Symbol.for("v-stc"),hi=[],_n=null;function Gg(){hi.pop(),_n=hi[hi.length-1]||null}var Fu=1;function yl(t,e=!1){Fu+=t,t<0&&_n&&e&&(_n.hasOnce=!0)}function bl(t){return t?t.__v_isVNode===!0:!1}function xs(t,e){return t.type===e.type&&t.key===e.key}var A4=({key:t})=>t??null,fl=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?rt(t)||pt(t)||me(t)?{i:Kr,r:t,k:e,f:!!r}:t:null);function Kg(t,e=null,r=null,n=0,o=null,i=t===_e?0:1,s=!1,a=!1){let l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&A4(e),ref:e&&fl(e),scopeId:o4,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Kr};return a?(wl(l,r),i&128&&t.normalize(l)):r&&(l.shapeFlag|=rt(r)?8:16),Fu>0&&!s&&_n&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&_n.push(l),l}var ur=Yg;function Yg(t,e=null,r=null,n=0,o=null,i=!1){if((!t||t===wg)&&(t=Wn),bl(t)){let a=fi(t,e,!0);return r&&wl(a,r),Fu>0&&!i&&_n&&(a.shapeFlag&6?_n[_n.indexOf(t)]=a:_n.push(a)),a.patchFlag=-2,a}if(s8(t)&&(t=t.__vccOpts),e){e=Zg(e);let{class:a,style:l}=e;a&&!rt(a)&&(e.class=us(a)),Be(l)&&(ws(l)&&!fe(l)&&(l=nt({},l)),e.style=cs(l))}let s=rt(t)?1:T4(t)?128:Cl(t)?64:Be(t)?4:me(t)?2:0;return Kg(t,e,r,n,o,s,i,!0)}function Zg(t){return t?ws(t)||g4(t)?nt({},t):t:null}function fi(t,e,r=!1,n=!1){let{props:o,ref:i,patchFlag:s,children:a,transition:l}=t,c=e?Jg(o||{},e):o,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&A4(c),ref:e&&e.ref?r&&i?fe(i)?i.concat(fl(e)):[i,fl(e)]:fl(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==_e?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&fi(t.ssContent),ssFallback:t.ssFallback&&fi(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&Sl(u,l.clone(u)),u}function Xg(t=" ",e=0){return ur(Is,null,t,e)}function jr(t){return t==null||typeof t=="boolean"?ur(Wn):fe(t)?ur(_e,null,t.slice()):bl(t)?kn(t):ur(Is,null,String(t))}function kn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:fi(t)}function wl(t,e){let r=0,{shapeFlag:n}=t;if(e==null)e=null;else if(fe(e))r=16;else if(typeof e=="object")if(n&65){let o=e.default;o&&(o._c&&(o._d=!1),wl(t,o()),o._c&&(o._d=!0));return}else{r=32;let o=e._;!o&&!g4(e)?e._ctx=Kr:o===3&&Kr&&(Kr.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(me(e)){if(n&65){wl(t,{default:e});return}e={default:e,_ctx:Kr},r=32}else e=String(e),n&64?(r=16,e=[Xg(e)]):r=8;t.children=e,t.shapeFlag|=r}function Jg(...t){let e={};for(let r=0;r<t.length;r++){let n=t[r];for(let o in n)if(o==="class")e.class!==n.class&&(e.class=us([e.class,n.class]));else if(o==="style")e.style=cs([e.style,n.style]);else if(ti(o)){let i=e[o],s=n[o];s&&i!==s&&!(fe(i)&&i.includes(s))?e[o]=i?[].concat(i,s):s:s==null&&i==null&&!ri(o)&&(e[o]=s)}else o!==""&&(e[o]=n[o])}return e}function Ur(t,e,r,n=null){dr(t,e,7,[r,n])}var Qg=h4(),e8=0;function t8(t,e,r){let n=t.type,o=(e?e.appContext:t.appContext)||Qg,i={uid:e8++,vnode:t,type:n,parent:e,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ms(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(o.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:b4(n,o),emitsOptions:f4(n,o),emit:null,emitted:null,propsDefaults:Ve,inheritAttrs:n.inheritAttrs,ctx:Ve,data:Ve,props:Ve,attrs:Ve,slots:Ve,refs:Ve,setupState:Ve,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=Ng.bind(null,i),t.ce&&t.ce(i),i}var Pt=null,M4=()=>Pt||Kr,xl,Ms;{let t=Fn(),e=(r,n)=>{let o;return(o=t[r])||(o=t[r]=[]),o.push(n),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};xl=e("__VUE_INSTANCE_SETTERS__",r=>Pt=r),Ms=e("__VUE_SSR_SETTERS__",r=>Ns=r)}var Ls=t=>{let e=Pt;return xl(t),t.scope.on(),()=>{t.scope.off(),xl(e)}},jm=()=>{Pt&&Pt.scope.off(),xl(null)};function N4(t){return t.vnode.shapeFlag&4}var Ns=!1;function r8(t,e=!1,r=!1){e&&Ms(e);let{props:n,children:o}=t.vnode,i=N4(t);Pg(t,n,i,e),zg(t,o,r||e);let s=i?n8(t,e):void 0;return e&&Ms(!1),s}function n8(t,e){let r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,xg);let{setup:n}=r;if(n){$r();let o=t.setupContext=n.length>1?i8(t):null,i=Ls(t),s=Os(n,t,0,[t.props,o]),a=ru(s);if(qr(),i(),(a||t.sp)&&!Ss(t)&&a4(t),a){if(s.then(jm,jm),e)return s.then(l=>{Ms(!0);try{Gm(t,l,e)}finally{Ms(!1)}}).catch(l=>{kl(l,t,0)});t.asyncDep=s}else Gm(t,s,e)}else O4(t,e)}function Gm(t,e,r){me(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Be(e)&&(__VUE_PROD_DEVTOOLS__&&(t.devtoolsRawSetupState=e),t.setupState=dl(e)),O4(t,r)}var Km,Ym;function O4(t,e,r){let n=t.type;if(!t.render){if(!e&&Km&&!n.render){let o=n.template||__VUE_OPTIONS_API__&&Vu(t).template;if(o){let{isCustomElement:i,compilerOptions:s}=t.appContext.config,{delimiters:a,compilerOptions:l}=n,c=nt(nt({isCustomElement:i,delimiters:a},s),l);n.render=Km(o,c)}}t.render=n.render||Dt,Ym&&Ym(t)}if(__VUE_OPTIONS_API__){let o=Ls(t);$r();try{kg(t)}finally{qr(),o()}}}var o8={get(t,e){return wt(t,"get",""),t[e]}};function i8(t){let e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,o8),slots:t.slots,emit:t.emit,expose:e}}function $u(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(dl(_u(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Es)return Es[r](t)},has(e,r){return r in e||r in Es}})):t.proxy}function s8(t){return me(t)&&"__vccOpts"in t}var xt=(t,e)=>Im(t,e,Ns);function E(t,e,r){try{yl(-1);let n=arguments.length;return n===2?Be(e)&&!fe(e)?bl(e)?ur(t,null,[e]):ur(t,e):ur(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&bl(r)&&(r=[r]),ur(t,e,r))}finally{yl(1)}}var Zm="3.5.41";var Wu,D4=typeof window<"u"&&window.trustedTypes;if(D4)try{Wu=D4.createPolicy("vue",{createHTML:t=>t})}catch{}var q4=Wu?t=>Wu.createHTML(t):t=>t,a8="http://www.w3.org/2000/svg",l8="http://www.w3.org/1998/Math/MathML",Sn=typeof document<"u"?document:null,I4=Sn&&Sn.createElement("template"),c8={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{let e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{let o=e==="svg"?Sn.createElementNS(a8,t):e==="mathml"?Sn.createElementNS(l8,t):r?Sn.createElement(t,{is:r}):Sn.createElement(t);return t==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:t=>Sn.createTextNode(t),createComment:t=>Sn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Sn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,o,i){let s=r?r.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{I4.innerHTML=q4(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);let a=I4.content;if(n==="svg"||n==="mathml"){let l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,r)}return[s?s.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};var u8=Symbol("_vtc");function d8(t,e,r){let n=t[u8];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}var L4=Symbol("_vod"),h8=Symbol("_vsh");var f8=Symbol("");var p8=/(?:^|;)\s*display\s*:/;function m8(t,e,r){let n=t.style,o=rt(r),i=!1;if(r&&!o){if(e)if(rt(e))for(let s of e.split(";")){let a=s.slice(0,s.indexOf(":")).trim();r[a]==null&&Rs(n,a,"")}else for(let s in e)r[s]==null&&Rs(n,s,"");for(let s in r){s==="display"&&(i=!0);let a=r[s];a!=null?g8(t,s,!rt(e)&&e?e[s]:void 0,a)||Rs(n,s,a):Rs(n,s,"")}}else if(o){if(e!==r){let s=n[f8];s&&(r+=";"+s),n.cssText=r,i=p8.test(r)}}else e&&t.removeAttribute("style");L4 in t&&(t[L4]=i?n.display:"",t[h8]&&(n.display="none"))}var R4=/\s*!important$/;function Rs(t,e,r){if(fe(r))r.forEach(n=>Rs(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{let n=v8(t,e);R4.test(r)?t.setProperty(bn(n),r.replace(R4,""),"important"):t[n]=r}}var P4=["Webkit","Moz","ms"],qu={};function v8(t,e){let r=qu[e];if(r)return r;let n=It(e);if(n!=="filter"&&n in t)return qu[e]=n;n=ss(n);for(let o=0;o<P4.length;o++){let i=P4[o]+n;if(i in t)return qu[e]=i}return e}function g8(t,e,r,n){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&rt(n)&&r===n}var B4="http://www.w3.org/1999/xlink";function V4(t,e,r,n,o,i=gm(e)){n&&e.startsWith("xlink:")?r==null?t.removeAttributeNS(B4,e.slice(6,e.length)):t.setAttributeNS(B4,e,r):r==null||i&&!rl(r)?t.removeAttribute(e):t.setAttribute(e,i?"":_r(r)?String(r):r)}function H4(t,e,r,n,o){if(e==="innerHTML"||e==="textContent"){r!=null&&(t[e]=e==="innerHTML"?q4(r):r);return}let i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){let a=i==="OPTION"?t.getAttribute("value")||"":t.value,l=r==null?t.type==="checkbox"?"on":"":String(r);(a!==l||!("_value"in t))&&(t.value=l),r==null&&t.removeAttribute(e),t._value=r;return}let s=!1;if(r===""||r==null){let a=typeof t[e];a==="boolean"?r=rl(r):r==null&&a==="string"?(r="",s=!0):a==="number"&&(r=0,s=!0)}try{t[e]=r}catch{}s&&t.removeAttribute(o||e)}function y8(t,e,r,n){t.addEventListener(e,r,n)}function b8(t,e,r,n){t.removeEventListener(e,r,n)}var z4=Symbol("_vei");function w8(t,e,r,n,o=null){let i=t[z4]||(t[z4]={}),s=i[e];if(n&&s)s.value=n;else{let[a,l]=_8(e);if(n){let c=i[e]=E8(n,o);y8(t,a,c,l)}else s&&(b8(t,a,s,l),i[e]=void 0)}}var x8=/(Once|Passive|Capture)$/,k8=/^on:?(?:Once|Passive|Capture)$/;function _8(t){let e,r;for(;(r=t.match(x8))&&!k8.test(t);)e||(e={}),t=t.slice(0,t.length-r[1].length),e[r[1].toLowerCase()]=!0;return[t[2]===":"?t.slice(3):bn(t.slice(2)),e]}var Uu=0,C8=Promise.resolve(),S8=()=>Uu||(C8.then(()=>Uu=0),Uu=Date.now());function E8(t,e){let r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;let o=r.value;if(fe(o)){let i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};let s=o.slice(),a=[n];for(let l=0;l<s.length&&!n._stopped;l++){let c=s[l];c&&dr(c,e,5,a)}}else dr(o,e,5,[n])};return r.value=t,r.attached=S8(),r}var F4=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,T8=(t,e,r,n,o,i)=>{let s=o==="svg";e==="class"?d8(t,n,s):e==="style"?m8(t,r,n):ti(e)?ri(e)||w8(t,e,r,n,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):A8(t,e,n,s))?(H4(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&V4(t,e,n,s,i,e!=="value")):t._isVueCE&&(M8(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!rt(n)))?H4(t,It(e),n,i,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),V4(t,e,n,s))};function A8(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&F4(e)&&me(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){let o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return F4(e)&&rt(r)?!1:e in t}function M8(t,e){let r=t._def.props;if(!r)return!1;let n=It(e);return Array.isArray(r)?r.some(o=>It(o)===n):Object.keys(r).some(o=>It(o)===n)}var N8=nt({patchProp:T8},c8),$4;function O8(){return $4||($4=_4(N8))}var lt=((...t)=>{let e=O8().createApp(...t),{mount:r}=e;return e.mount=n=>{let o=I8(n);if(!o)return;let i=e._component;!me(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");let s=r(o,!1,D8(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},e});function D8(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function I8(t){return rt(t)?document.querySelector(t):t}function U4(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=U4(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function L8(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=U4(t))&&(n&&(n+=" "),n+=e);return n}var qe=L8;function R8(...t){}R8(E);function St({icon:t,class:e,onClick:r}){return E("span",{class:qe("milkdown-icon",e),onPointerdown:r,innerHTML:t?at.sanitize(t.trim()):void 0})}St.props={icon:{type:String,required:!1},class:{type:String,required:!1},onClick:{type:Function,required:!1}};var P8=t=>crypto.getRandomValues(new Uint8Array(t)),B8=(t,e,r)=>{let n=256-256%t.length;if(n===256){let i=t.length-1;return(s=e)=>{if(!s)return"";let a="";for(;;){let l=r(s),c=s;for(;c--;)if(a+=t[l[c]&i],a.length>=s)return a}}}let o=Math.ceil(1.6*256*e/n);return(i=e)=>{if(!i)return"";let s="";for(;;){let a=r(o),l=o;for(;l--;)if(a[l]<n&&(s+=t[a[l]%t.length],s.length>=i))return s}}},jn=(t,e=21)=>B8(t,e|0,P8);var V8=Object.defineProperty,W4=Object.getOwnPropertySymbols,H8=Object.prototype.hasOwnProperty,z8=Object.prototype.propertyIsEnumerable,j4=(t,e,r)=>e in t?V8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F8=(t,e)=>{for(var r in e||(e={}))H8.call(e,r)&&j4(t,r,e[r]);if(W4)for(var r of W4(e))z8.call(e,r)&&j4(t,r,e[r]);return t};function Bs(t,e){return Object.assign(t,{meta:F8({package:"@milkdown/components"},e)}),t}var $8={imageIcon:"\u{1F30C}",captionIcon:"\u{1F4AC}",uploadButton:"Upload file",confirmButton:"Confirm \u23CE",uploadPlaceholderText:"or paste the image link ...",captionPlaceholderText:"Image caption",onUpload:t=>Promise.resolve(URL.createObjectURL(t))},pi=Ue($8,"imageBlockConfigCtx");Bs(pi,{displayName:"Config<image-block>",group:"ImageBlock"});function q8(t){return Pa(t,"paragraph",(e,r,n)=>{var o,i;if(((o=e.children)==null?void 0:o.length)!==1)return;let s=(i=e.children)==null?void 0:i[0];if(!s||s.type!=="image")return;let{url:a,alt:l,title:c}=s,u={type:"image-block",url:a,alt:l,title:c};n.children.splice(r,1,u)})}var Ku=Xi("remark-image-block",()=>()=>q8);Bs(Ku.plugin,{displayName:"Remark<remarkImageBlock>",group:"ImageBlock"});Bs(Ku.options,{displayName:"RemarkConfig<remarkImageBlock>",group:"ImageBlock"});var U8=Object.defineProperty,G4=Object.getOwnPropertySymbols,W8=Object.prototype.hasOwnProperty,j8=Object.prototype.propertyIsEnumerable,K4=(t,e,r)=>e in t?U8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,G8=(t,e)=>{for(var r in e||(e={}))W8.call(e,r)&&K4(t,r,e[r]);if(G4)for(var r of G4(e))j8.call(e,r)&&K4(t,r,e[r]);return t},ju="image-block",mi=Ba("image-block",()=>({inline:!1,group:"block",selectable:!0,draggable:!0,isolating:!0,marks:"",atom:!0,priority:100,attrs:{src:{default:"",validate:"string"},caption:{default:"",validate:"string"},ratio:{default:1,validate:"number"}},parseDOM:[{tag:`img[data-type="${ju}"]`,getAttrs:t=>{var e;if(!(t instanceof HTMLElement))throw of(t);return{src:t.getAttribute("src")||"",caption:t.getAttribute("caption")||"",ratio:Number((e=t.getAttribute("ratio"))!=null?e:1)}}}],toDOM:t=>["img",G8({"data-type":ju},t.attrs)],parseMarkdown:{match:({type:t})=>t==="image-block",runner:(t,e,r)=>{let n=e.url,o=e.title,i=Number(e.alt||1);(Number.isNaN(i)||i===0)&&(i=1),t.addNode(r,{src:n,caption:o,ratio:i})}},toMarkdown:{match:t=>t.type.name==="image-block",runner:(t,e)=>{t.openNode("paragraph"),t.addNode("image",void 0,void 0,{title:e.attrs.caption,url:e.attrs.src,alt:`${Number.parseFloat(e.attrs.ratio).toFixed(2)}`}),t.closeNode()}}}));Bs(mi.node,{displayName:"NodeSchema<image-block>",group:"ImageBlock"});function Al(...t){}var K8=jn("abcdefghijklmnopqrstuvwxyz0123456789",8);function Gu(t){return`${t}-${K8()}`}Al(E);function Ps({icon:t,class:e,onClick:r}){return E("span",{class:qe("milkdown-icon",e),onPointerdown:r,innerHTML:t?at.sanitize(t.trim()):void 0})}Ps.props={icon:{type:String,required:!1},class:{type:String,required:!1},onClick:{type:Function,required:!1}};Al(E,_e);var Y8=He({props:{src:{type:Object,required:!0},selected:{type:Object,required:!0},readonly:{type:Object,required:!0},setLink:{type:Function,required:!0},imageIcon:{type:String,required:!1},uploadButton:{type:String,required:!1},confirmButton:{type:String,required:!1},uploadPlaceholderText:{type:String,required:!1},onUpload:{type:Function,required:!0},onImageLoadError:{type:Function,required:!1}},setup({readonly:t,src:e,setLink:r,onUpload:n,imageIcon:o,uploadButton:i,confirmButton:s,uploadPlaceholderText:a,className:l,onImageLoadError:c}){var u,f;let p=Q(!1),v=Q(),b=Q((u=e.value)!=null?u:""),w=Gu("milkdown-image-link"),g=Gu("milkdown-image-upload"),x=Q(((f=e.value)==null?void 0:f.length)!==0),k=D=>{let I=D.target.value;x.value=I.length!==0,b.value=I},T=D=>{var $,I;D.key==="Enter"&&r((I=($=v.value)==null?void 0:$.value)!=null?I:"")},O=()=>{var D,$;r(($=(D=v.value)==null?void 0:D.value)!=null?$:"")},N=D=>{var $;let I=($=D.target.files)==null?void 0:$[0];I&&n(I).then(L=>{L&&(r(L),x.value=!0)}).catch(L=>{console.error("An error occurred while uploading image"),console.error(L)})};return()=>E("div",{class:qe("image-edit",l)},E(Ps,{icon:o,class:"image-icon"}),E("div",{class:qe("link-importer",p.value&&"focus")},E("input",{id:w,ref:v,draggable:"true",onDragstart:D=>{D.preventDefault(),D.stopPropagation()},disabled:t.value,class:"link-input-area",value:b.value,onInput:k,onKeydown:T,onFocus:()=>p.value=!0,onBlur:()=>p.value=!1}),!x.value&&E("div",{class:"placeholder"},E("input",{disabled:t.value,class:"hidden",id:g,type:"file",accept:"image/*",onChange:N}),E("label",{class:"uploader",for:g},E(Ps,{icon:i})),E("span",{class:"text",onClick:()=>{var D;return(D=v.value)==null?void 0:D.focus()}},a))),b.value&&E(_e,null,E("div",{class:"image-preview"},E("img",{src:b.value,alt:"",onError:D=>Promise.resolve(c?.(D)).catch(()=>{})})),E("div",{class:"confirm",onClick:()=>O()},E(Ps,{icon:s}))))}});Al(E,_e);var Z8=He({props:{src:{type:Object,required:!0},caption:{type:Object,required:!0},ratio:{type:Object,required:!0},selected:{type:Object,required:!0},readonly:{type:Object,required:!0},setAttr:{type:Function,required:!0},config:{type:Object,required:!0}},setup({src:t,caption:e,ratio:r,readonly:n,setAttr:o,config:i}){var s;let a=Q(),l=Q(),c=Q(!!((s=e.value)!=null&&s.length)),u=Gu("milkdown-image-caption"),f=Q(0),p=()=>{var T;let O=a.value;if(!O)return;let N=O.closest(".milkdown-image-block");if(!N)return;let D=N.getBoundingClientRect().width;if(!D)return;i.maxWidth&&i.maxWidth<D&&(D=i.maxWidth);let $=O.naturalHeight,I=O.naturalWidth,L=I<D?$:D*($/I);i.maxHeight&&L>i.maxHeight&&(L=i.maxHeight);let W=(L*((T=r.value)!=null?T:1)).toFixed(2);O.dataset.origin=L.toFixed(2),O.dataset.height=W,O.style.height=`${W}px`,i.maxWidth&&(O.style.maxWidth=`${i.maxWidth}px`)},v=T=>{T.preventDefault(),T.stopPropagation(),!n.value&&(c.value=!c.value)},b=T=>{let N=T.target.value;f.value&&window.clearTimeout(f.value),f.value=window.setTimeout(()=>{o("caption",N)},1e3)},w=T=>{let N=T.target.value;f.value&&(window.clearTimeout(f.value),f.value=0),o("caption",N)},g=T=>{T.preventDefault();let O=a.value;if(!O)return;let N=O.getBoundingClientRect().top,D=T.clientY-N;D<100&&(D=100),i.maxHeight&&D>i.maxHeight&&(D=i.maxHeight);let $=Number(D).toFixed(2);O.dataset.height=$,O.style.height=`${$}px`},x=()=>{window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",x);let T=a.value;if(!T)return;let O=Number(T.dataset.origin),N=Number(T.dataset.height),D=Number.parseFloat(Number(N/O).toFixed(2));Number.isNaN(D)||o("ratio",D)},k=T=>{n.value||(T.preventDefault(),T.stopPropagation(),window.addEventListener("pointermove",g),window.addEventListener("pointerup",x))};return()=>E(_e,null,E("div",{class:"image-wrapper"},E("div",{class:"operation"},E("div",{class:"operation-item",onPointerdown:v},E(Ps,{icon:i.captionIcon}))),E("img",{ref:a,"data-type":ju,onLoad:p,src:t.value,alt:e.value,onError:T=>{var O;return Promise.resolve((O=i.onImageLoadError)==null?void 0:O.call(i,T)).catch(()=>{})}}),E("div",{ref:l,class:"image-resize-handle",onPointerdown:k})),c.value&&E("input",{id:u,draggable:"true",onDragstart:T=>{T.preventDefault(),T.stopPropagation()},class:"caption-input",placeholder:i?.captionPlaceholderText,onInput:b,onBlur:w,value:e.value}))}}),X8=Object.defineProperty,Y4=Object.getOwnPropertySymbols,J8=Object.prototype.hasOwnProperty,Q8=Object.prototype.propertyIsEnumerable,Z4=(t,e,r)=>e in t?X8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,e9=(t,e)=>{for(var r in e||(e={}))J8.call(e,r)&&Z4(t,r,e[r]);if(Y4)for(var r of Y4(e))Q8.call(e,r)&&Z4(t,r,e[r]);return t};Al(E,_e);var t9=He({props:{src:{type:Object,required:!0},caption:{type:Object,required:!0},ratio:{type:Object,required:!0},selected:{type:Object,required:!0},readonly:{type:Object,required:!0},setAttr:{type:Function,required:!0},config:{type:Object,required:!0}},setup(t){let{src:e}=t;return()=>{var r;return(r=e.value)!=null&&r.length?E(Z8,e9({},t)):E(Y8,{src:t.src,selected:t.selected,readonly:t.readonly,setLink:n=>t.setAttr("src",n),imageIcon:t.config.imageIcon,uploadButton:t.config.uploadButton,confirmButton:t.config.confirmButton,uploadPlaceholderText:t.config.uploadPlaceholderText,onUpload:t.config.onUpload,onImageLoadError:t.config.onImageLoadError})}}}),X4=Br(mi.node,t=>(e,r,n)=>{let o=Q(e.attrs.src),i=Q(e.attrs.caption),s=Q(e.attrs.ratio),a=Q(!1),l=Q(!r.editable),c=(g,x)=>{if(!r.editable)return;let k=n();k!=null&&r.dispatch(r.state.tr.setNodeAttribute(k,g,g==="src"?at.sanitize(x):x))},u=t.get(pi.key),f=lt(t9,{src:o,caption:i,ratio:s,selected:a,readonly:l,setAttr:c,config:u}),p=document.createElement("div");p.className="milkdown-image-block";let v=Sr(()=>{a.value?p.classList.add("selected"):p.classList.remove("selected")}),b=u.proxyDomURL,w=g=>{if(!b)o.value=g.attrs.src;else{let x=b(g.attrs.src);typeof x=="string"?o.value=x:x.then(k=>{o.value=k}).catch(console.error)}s.value=g.attrs.ratio,i.value=g.attrs.caption,l.value=!r.editable};return w(e),f.mount(p),{dom:p,update:g=>g.type!==e.type?!1:(w(g),!0),stopEvent:g=>g.target instanceof HTMLInputElement,selectNode:()=>{a.value=!0},deselectNode:()=>{a.value=!1},destroy:()=>{v(),f.unmount(),p.remove()}}});Bs(X4,{displayName:"NodeView<image-block>",group:"ImageBlock"});var J4=[Ku,mi,X4,pi].flat();var r9=t=>{let{state:e}=t,r=e.doc.lineAt(e.selection.main.from),n=td(t.state,r.from);return n.line?n9(t):n.block?i9(t):!1};function ed(t,e){return({state:r,dispatch:n})=>{if(r.readOnly)return!1;let o=t(e,r);return o?(n(r.update(o)),!0):!1}}var n9=ed(l9,0);var o9=ed(a2,0);var i9=ed((t,e)=>a2(t,e,a9(e)),0);function td(t,e){let r=t.languageDataAt("commentTokens",e,1);return r.length?r[0]:{}}var Vs=50;function s9(t,{open:e,close:r},n,o){let i=t.sliceDoc(n-Vs,n),s=t.sliceDoc(o,o+Vs),a=/\s*$/.exec(i)[0].length,l=/^\s*/.exec(s)[0].length,c=i.length-a;if(i.slice(c-e.length,c)==e&&s.slice(l,l+r.length)==r)return{open:{pos:n-a,margin:a&&1},close:{pos:o+l,margin:l&&1}};let u,f;o-n<=2*Vs?u=f=t.sliceDoc(n,o):(u=t.sliceDoc(n,n+Vs),f=t.sliceDoc(o-Vs,o));let p=/^\s*/.exec(u)[0].length,v=/\s*$/.exec(f)[0].length,b=f.length-v-r.length;return u.slice(p,p+e.length)==e&&f.slice(b,b+r.length)==r?{open:{pos:n+p+e.length,margin:/\s/.test(u.charAt(p+e.length))?1:0},close:{pos:o-v-r.length,margin:/\s/.test(f.charAt(b-1))?1:0}}:null}function a9(t){let e=[];for(let r of t.selection.ranges){let n=t.doc.lineAt(r.from),o=r.to<=n.to?n:t.doc.lineAt(r.to);o.from>n.from&&o.from==r.to&&(o=r.to==n.to+1?n:t.doc.lineAt(r.to-1));let i=e.length-1;i>=0&&e[i].to>n.from?e[i].to=o.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:o.to})}return e}function a2(t,e,r=e.selection.ranges){let n=r.map(i=>td(e,i.from).block);if(!n.every(i=>i))return null;let o=r.map((i,s)=>s9(e,n[s],i.from,i.to));if(t!=2&&!o.every(i=>i))return{changes:e.changes(r.map((i,s)=>o[s]?[]:[{from:i.from,insert:n[s].open+" "},{from:i.to,insert:" "+n[s].close}]))};if(t!=1&&o.some(i=>i)){let i=[];for(let s=0,a;s<o.length;s++)if(a=o[s]){let l=n[s],{open:c,close:u}=a;i.push({from:c.pos-l.open.length,to:c.pos+c.margin},{from:u.pos-u.margin,to:u.pos+l.close.length})}return{changes:i}}return null}function l9(t,e,r=e.selection.ranges){let n=[],o=-1;e:for(let{from:i,to:s}of r){let a=n.length,l=1e9,c;for(let u=i;u<=s;){let f=e.doc.lineAt(u);if(c==null&&(c=td(e,f.from).line,!c))continue e;if(f.from>o&&(i==s||s>f.from)){o=f.from;let p=/^\s*/.exec(f.text)[0].length,v=p==f.length,b=f.text.slice(p,p+c.length)==c?p:-1;p<f.text.length&&p<l&&(l=p),n.push({line:f,comment:b,token:c,indent:p,empty:v,single:!1})}u=f.to+1}if(l<1e9)for(let u=a;u<n.length;u++)n[u].indent<n[u].line.text.length&&(n[u].indent=l);n.length==a+1&&(n[a].single=!0)}if(t!=2&&n.some(i=>i.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:a,token:l,indent:c,empty:u,single:f}of n)(f||!u)&&i.push({from:a.from+c,insert:l+" "});let s=e.changes(i);return{changes:s,selection:e.selection.map(s,1)}}else if(t!=1&&n.some(i=>i.comment>=0)){let i=[];for(let{line:s,comment:a,token:l}of n)if(a>=0){let c=s.from+a,u=c+l.length;s.text[u-s.from]==" "&&u++,i.push({from:c,to:u})}return{changes:i}}return null}var Zu=jc.define(),c9=jc.define(),u9=Vn.define(),l2=Vn.define({combine(t){return ko(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,r)=>r},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,r)=>(n,o)=>e(n,o)||r(n,o)})}}),c2=Xo.define({create(){return Ao.empty},update(t,e){let r=e.state.facet(l2),n=e.annotation(Zu);if(n){let l=Er.fromTransaction(e,n.selection),c=n.side,u=c==0?t.undone:t.done;return l?u=Nl(u,u.length,r.minDepth,l):u=f2(u,e.startState.selection),new Ao(c==0?n.rest:u,c==0?u:n.rest)}let o=e.annotation(c9);if((o=="full"||o=="before")&&(t=t.isolate()),e.annotation($a.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let i=Er.fromTransaction(e),s=e.annotation($a.time),a=e.annotation($a.userEvent);return i?t=t.addChanges(i,s,a,r,e):e.selection&&(t=t.addSelection(e.startState.selection,s,a,r.newGroupDelay)),(o=="full"||o=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new Ao(t.done.map(Er.fromJSON),t.undone.map(Er.fromJSON))}});function u2(t={}){return[c2,l2.of(t),We.domEventHandlers({beforeinput(e,r){let n=e.inputType=="historyUndo"?d2:e.inputType=="historyRedo"?Xu:null;return n?(e.preventDefault(),n(r)):!1}})]}function Ol(t,e){return function({state:r,dispatch:n}){if(!e&&r.readOnly)return!1;let o=r.field(c2,!1);if(!o)return!1;let i=o.pop(t,r,e);return i?(n(i),!0):!1}}var d2=Ol(0,!1),Xu=Ol(1,!1),d9=Ol(0,!0),h9=Ol(1,!0);var Er=class t{constructor(e,r,n,o,i){this.changes=e,this.effects=r,this.mapped=n,this.startSelection=o,this.selectionsAfter=i}setSelAfter(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,r,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(r=this.mapped)===null||r===void 0?void 0:r.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(o=>o.toJSON())}}static fromJSON(e){return new t(e.changes&&bp.fromJSON(e.changes),[],e.mapped&&yp.fromJSON(e.mapped),e.startSelection&&ve.fromJSON(e.startSelection),e.selectionsAfter.map(ve.fromJSON))}static fromTransaction(e,r){let n=hr;for(let o of e.startState.facet(u9)){let i=o(e);i.length&&(n=n.concat(i))}return!n.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),n,void 0,r||e.startState.selection,hr)}static selection(e){return new t(void 0,hr,void 0,void 0,e)}};function Nl(t,e,r,n){let o=e+1>r+20?e-r-1:0,i=t.slice(o,e);return i.push(n),i}function f9(t,e){let r=[],n=!1;return t.iterChangedRanges((o,i)=>r.push(o,i)),e.iterChangedRanges((o,i,s,a)=>{for(let l=0;l<r.length;){let c=r[l++],u=r[l++];a>=c&&s<=u&&(n=!0)}}),n}function p9(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((r,n)=>r.empty!=e.ranges[n].empty).length===0}function h2(t,e){return t.length?e.length?t.concat(e):t:e}var hr=[],m9=200;function f2(t,e){if(t.length){let r=t[t.length-1],n=r.selectionsAfter.slice(Math.max(0,r.selectionsAfter.length-m9));return n.length&&n[n.length-1].eq(e)?t:(n.push(e),Nl(t,t.length-1,1e9,r.setSelAfter(n)))}else return[Er.selection([e])]}function v9(t){let e=t[t.length-1],r=t.slice();return r[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),r}function Yu(t,e){if(!t.length)return t;let r=t.length,n=hr;for(;r;){let o=g9(t[r-1],e,n);if(o.changes&&!o.changes.empty||o.effects.length){let i=t.slice(0,r);return i[r-1]=o,i}else e=o.mapped,r--,n=o.selectionsAfter}return n.length?[Er.selection(n)]:hr}function g9(t,e,r){let n=h2(t.selectionsAfter.length?t.selectionsAfter.map(a=>a.map(e)):hr,r);if(!t.changes)return Er.selection(n);let o=t.changes.map(e),i=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(i):i;return new Er(o,lr.mapEffects(t.effects,e),s,t.startSelection.map(i),n)}var y9=/^(input\.type|delete)($|\.)/,Ao=class t{constructor(e,r,n=0,o=void 0){this.done=e,this.undone=r,this.prevTime=n,this.prevUserEvent=o}isolate(){return this.prevTime?new t(this.done,this.undone):this}addChanges(e,r,n,o,i){let s=this.done,a=s[s.length-1];return a&&a.changes&&!a.changes.empty&&e.changes&&(!n||y9.test(n))&&(!a.selectionsAfter.length&&r-this.prevTime<o.newGroupDelay&&o.joinToEvent(i,f9(a.changes,e.changes))||n=="input.type.compose")?s=Nl(s,s.length-1,o.minDepth,new Er(e.changes.compose(a.changes),h2(lr.mapEffects(e.effects,a.changes),a.effects),a.mapped,a.startSelection,hr)):s=Nl(s,s.length,o.minDepth,e),new t(s,hr,r,n)}addSelection(e,r,n,o){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:hr;return i.length>0&&r-this.prevTime<o&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&p9(i[i.length-1],e)?this:new t(f2(this.done,e),this.undone,r,n)}addMapping(e){return new t(Yu(this.done,e),Yu(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,r,n){let o=e==0?this.done:this.undone;if(o.length==0)return null;let i=o[o.length-1],s=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):r.selection);if(n&&i.selectionsAfter.length)return r.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Zu.of({side:e,rest:v9(o),selection:s}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let a=o.length==1?hr:o.slice(0,o.length-1);return i.mapped&&(a=Yu(a,i.mapped)),r.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Zu.of({side:e,rest:a,selection:s}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}};Ao.empty=new Ao(hr,hr);var p2=[{key:"Mod-z",run:d2,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Xu,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Xu,preventDefault:!0},{key:"Mod-u",run:d9,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:h9,preventDefault:!0}];function vi(t,e){return ve.create(t.ranges.map(e),t.mainIndex)}function Tr(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Ar({state:t,dispatch:e},r){let n=vi(t.selection,r);return n.eq(t.selection,!0)?!1:(e(Tr(t,n)),!0)}function Dl(t,e){return ve.cursor(e?t.to:t.from)}function m2(t,e){return Ar(t,r=>r.empty?t.moveByChar(r,e):Dl(r,e))}function Et(t){return t.textDirectionAt(t.state.selection.main.head)==kp.LTR}var v2=t=>m2(t,!Et(t)),g2=t=>m2(t,Et(t));function y2(t,e){return Ar(t,r=>r.empty?t.moveByGroup(r,e):Dl(r,e))}var b9=t=>y2(t,!Et(t)),w9=t=>y2(t,Et(t));var mE=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function x9(t,e,r){if(e.type.prop(r))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function Il(t,e,r){let n=Ka(t).resolveInner(e.head),o=r?Fa.closedBy:Fa.openedBy;for(let l=e.head;;){let c=r?n.childAfter(l):n.childBefore(l);if(!c)break;x9(t,c,o)?n=c:l=r?c.to:c.from}let i=n.type.prop(o),s,a;return i&&(s=r?_o(t,n.from,1):_o(t,n.to,-1))&&s.matched?a=r?s.end.to:s.end.from:a=r?n.to:n.from,ve.cursor(a,r?-1:1)}var k9=t=>Ar(t,e=>Il(t.state,e,!Et(t))),_9=t=>Ar(t,e=>Il(t.state,e,Et(t)));function b2(t,e){return Ar(t,r=>{if(!r.empty)return Dl(r,e);let n=t.moveVertically(r,e);return n.head!=r.head?n:t.moveToLineBoundary(r,e)})}var w2=t=>b2(t,!1),x2=t=>b2(t,!0);function k2(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,r=0,n=0,o;if(e){for(let i of t.state.facet(We.scrollMargins)){let s=i(t);s?.top&&(r=Math.max(s?.top,r)),s?.bottom&&(n=Math.max(s?.bottom,n))}o=t.scrollDOM.clientHeight-r-n}else o=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:n,selfScroll:e,height:Math.max(t.defaultLineHeight,o-5)}}function _2(t,e){let r=k2(t),{state:n}=t,o=vi(n.selection,s=>s.empty?t.moveVertically(s,e,r.height):Dl(s,e));if(o.eq(n.selection))return!1;let i;if(r.selfScroll){let s=t.coordsAtPos(n.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),l=a.top+r.marginTop,c=a.bottom-r.marginBottom;s&&s.top>l&&s.bottom<c&&(i=We.scrollIntoView(o.main.head,{y:"start",yMargin:s.top-l}))}return t.dispatch(Tr(n,o),{effects:i}),!0}var Q4=t=>_2(t,!1),Ju=t=>_2(t,!0);function Gn(t,e,r){let n=t.lineBlockAt(e.head),o=t.moveToLineBoundary(e,r);if(o.head==e.head&&o.head!=(r?n.to:n.from)&&(o=t.moveToLineBoundary(e,r,!1)),!r&&o.head==n.from&&n.length){let i=/^\s*/.exec(t.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;i&&e.head!=n.from+i&&(o=ve.cursor(n.from+i))}return o}var C9=t=>Ar(t,e=>Gn(t,e,!0)),S9=t=>Ar(t,e=>Gn(t,e,!1)),E9=t=>Ar(t,e=>Gn(t,e,!Et(t))),T9=t=>Ar(t,e=>Gn(t,e,Et(t))),A9=t=>Ar(t,e=>ve.cursor(t.lineBlockAt(e.head).from,1)),M9=t=>Ar(t,e=>ve.cursor(t.lineBlockAt(e.head).to,-1));function N9(t,e,r){let n=!1,o=vi(t.selection,i=>{let s=_o(t,i.head,-1)||_o(t,i.head,1)||i.head>0&&_o(t,i.head-1,1)||i.head<t.doc.length&&_o(t,i.head+1,-1);if(!s||!s.end)return i;n=!0;let a=s.start.from==i.head?s.end.to:s.end.from;return r?ve.range(i.anchor,a):ve.cursor(a)});return n?(e(Tr(t,o)),!0):!1}var O9=({state:t,dispatch:e})=>N9(t,e,!1);function fr(t,e,r){let n=vi(t.state.selection,o=>{o.undirectional&&o.head>=o.anchor!=e&&(o=ve.range(o.head,o.anchor));let i=r(o);return ve.range(o.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return n.eq(t.state.selection)?!1:(t.dispatch(Tr(t.state,n)),!0)}function C2(t,e){return fr(t,e,r=>t.moveByChar(r,e))}var S2=t=>C2(t,!Et(t)),E2=t=>C2(t,Et(t));function T2(t,e){return fr(t,e,r=>t.moveByGroup(r,e))}var D9=t=>T2(t,!Et(t)),I9=t=>T2(t,Et(t));var L9=t=>{let e=!Et(t);return fr(t,e,r=>Il(t.state,r,e))},R9=t=>{let e=Et(t);return fr(t,e,r=>Il(t.state,r,e))};function A2(t,e){return fr(t,e,r=>t.moveVertically(r,e))}var M2=t=>A2(t,!1),N2=t=>A2(t,!0);function O2(t,e){return fr(t,e,r=>t.moveVertically(r,e,k2(t).height))}var e2=t=>O2(t,!1),t2=t=>O2(t,!0),P9=t=>fr(t,!0,e=>Gn(t,e,!0)),B9=t=>fr(t,!1,e=>Gn(t,e,!1)),V9=t=>{let e=!Et(t);return fr(t,e,r=>Gn(t,r,e))},H9=t=>{let e=Et(t);return fr(t,e,r=>Gn(t,r,e))},z9=t=>fr(t,!1,e=>ve.cursor(t.lineBlockAt(e.head).from)),F9=t=>fr(t,!0,e=>ve.cursor(t.lineBlockAt(e.head).to)),r2=({state:t,dispatch:e})=>(e(Tr(t,{anchor:0})),!0),n2=({state:t,dispatch:e})=>(e(Tr(t,{anchor:t.doc.length})),!0),o2=({state:t,dispatch:e})=>(e(Tr(t,{anchor:t.selection.main.anchor,head:0})),!0),i2=({state:t,dispatch:e})=>(e(Tr(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),$9=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),q9=({state:t,dispatch:e})=>{let r=Ll(t).map(({from:n,to:o})=>ve.undirectionalRange(n,Math.min(o+1,t.doc.length)));return e(t.update({selection:ve.create(r),userEvent:"select"})),!0},U9=({state:t,dispatch:e})=>{let r=vi(t.selection,n=>{let o=Ka(t),i=o.resolveStack(n.from,1);if(n.empty){let s=o.resolveStack(n.from,-1);s.node.from>=i.node.from&&s.node.to<=i.node.to&&(i=s)}for(let s=i;s;s=s.next){let{node:a}=s;if((a.from<n.from&&a.to>=n.to||a.to>n.to&&a.from<=n.from)&&s.next)return ve.undirectionalRange(a.from,a.to)}return n});return r.eq(t.selection)?!1:(e(Tr(t,r)),!0)};function D2(t,e){let{state:r}=t,n=r.selection,o=r.selection.ranges.slice();for(let i of r.selection.ranges){let s=r.doc.lineAt(i.head);if(e?s.to<t.state.doc.length:s.from>0)for(let a=i;;){let l=t.moveVertically(a,e);if(l.head<s.from||l.head>s.to){o.some(c=>c.head==l.head)||o.push(l);break}else{if(l.head==a.head)break;a=l}}}return o.length==n.ranges.length?!1:(t.dispatch(Tr(r,ve.create(o,o.length-1))),!0)}var W9=t=>D2(t,!1),j9=t=>D2(t,!0),G9=({state:t,dispatch:e})=>{let r=t.selection,n=null;return r.ranges.length>1?n=ve.create([r.main]):r.main.empty||(n=ve.create([ve.cursor(r.main.head)])),n?(e(Tr(t,n)),!0):!1};function Hs(t,e){if(t.state.readOnly)return!1;let r="delete.selection",{state:n}=t,o=n.changeByRange(i=>{let{from:s,to:a}=i;if(s==a){let l=e(i);l<s?(r="delete.backward",l=Ml(t,l,!1)):l>s&&(r="delete.forward",l=Ml(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=Ml(t,s,!1),a=Ml(t,a,!0);return s==a?{range:i}:{changes:{from:s,to:a},range:ve.cursor(s,s<i.head?-1:1)}});return o.changes.empty?!1:(t.dispatch(n.update(o,{scrollIntoView:!0,userEvent:r,effects:r=="delete.selection"?We.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function Ml(t,e,r){if(t instanceof We)for(let n of t.state.facet(We.atomicRanges).map(o=>o(t)))n.between(e,e,(o,i)=>{o<e&&i>e&&(e=r?i:o)});return e}var I2=(t,e,r)=>Hs(t,n=>{let o=n.from,{state:i}=t,s=i.doc.lineAt(o),a,l;if(r&&!e&&o>s.from&&o<s.from+200&&!/[^ \t]/.test(a=s.text.slice(0,o-s.from))){if(a[a.length-1]=="	")return o-1;let c=Ua(a,i.tabSize),u=c%Ya(i)||Ya(i);for(let f=0;f<u&&a[a.length-1-f]==" ";f++)o--;l=o}else l=gn(s.text,o-s.from,e,e)+s.from,l==o&&s.number!=(e?i.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(s.text.slice(l-s.from,o-s.from))&&(l=gn(s.text,l-s.from,!1,!1)+s.from);return l}),Qu=t=>I2(t,!1,!0);var L2=t=>I2(t,!0,!1),R2=(t,e)=>Hs(t,r=>{let n=r.head,{state:o}=t,i=o.doc.lineAt(n),s=o.charCategorizer(n);for(let a=null;;){if(n==(e?i.to:i.from)){n==r.head&&i.number!=(e?o.doc.lines:1)&&(n+=e?1:-1);break}let l=gn(i.text,n-i.from,e)+i.from,c=i.text.slice(Math.min(n,l)-i.from,Math.max(n,l)-i.from),u=s(c);if(a!=null&&u!=a)break;(c!=" "||n!=r.head)&&(a=u),n=l}return n}),P2=t=>R2(t,!1),K9=t=>R2(t,!0);var Y9=t=>Hs(t,e=>{let r=t.lineBlockAt(e.head).to;return e.head<r?r:Math.min(t.state.doc.length,e.head+1)});var Z9=t=>Hs(t,e=>{let r=t.moveToLineBoundary(e,!1).head;return e.head>r?r:Math.max(0,e.head-1)}),X9=t=>Hs(t,e=>{let r=t.moveToLineBoundary(e,!0).head;return e.head<r?r:Math.min(t.state.doc.length,e.head+1)});var J9=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:Uc.of(["",""])},range:ve.cursor(n.from)}));return e(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0},Q9=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{if(!n.empty||n.from==0||n.from==t.doc.length)return{range:n};let o=n.from,i=t.doc.lineAt(o),s=o==i.from?o-1:gn(i.text,o-i.from,!1)+i.from,a=o==i.to?o+1:gn(i.text,o-i.from,!0)+i.from;return{changes:{from:s,to:a,insert:t.doc.slice(o,a).append(t.doc.slice(s,o))},range:ve.cursor(a)}});return r.changes.empty?!1:(e(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Ll(t){let e=[],r=-1;for(let n of t.selection.ranges){let o=t.doc.lineAt(n.from),i=t.doc.lineAt(n.to);if(!n.empty&&n.to==i.from&&(i=t.doc.lineAt(n.to-1)),r>=o.number){let s=e[e.length-1];s.to=i.to,s.ranges.push(n)}else e.push({from:o.from,to:i.to,ranges:[n]});r=i.number+1}return e}function B2(t,e,r){if(t.readOnly)return!1;let n=[],o=[];for(let i of Ll(t)){if(r?i.to==t.doc.length:i.from==0)continue;let s=t.doc.lineAt(r?i.to+1:i.from-1),a=s.length+1;if(r){n.push({from:i.to,to:s.to},{from:i.from,insert:s.text+t.lineBreak});for(let l of i.ranges)o.push(ve.range(Math.min(t.doc.length,l.anchor+a),Math.min(t.doc.length,l.head+a)))}else{n.push({from:s.from,to:i.from},{from:i.to,insert:t.lineBreak+s.text});for(let l of i.ranges)o.push(ve.range(l.anchor-a,l.head-a))}}return n.length?(e(t.update({changes:n,scrollIntoView:!0,selection:ve.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}var ey=({state:t,dispatch:e})=>B2(t,e,!1),ty=({state:t,dispatch:e})=>B2(t,e,!0);function V2(t,e,r){if(t.readOnly)return!1;let n=[];for(let i of Ll(t))r?n.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):n.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});let o=t.changes(n);return e(t.update({changes:o,selection:t.selection.map(o,r?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}var ry=({state:t,dispatch:e})=>V2(t,e,!1),ny=({state:t,dispatch:e})=>V2(t,e,!0),oy=t=>{if(t.state.readOnly)return!1;let{state:e}=t,r=e.changes(Ll(e).map(({from:o,to:i})=>(o>0?o--:i<e.doc.length&&i++,{from:o,to:i}))),n=vi(e.selection,o=>{let i;if(t.lineWrapping){let s=t.lineBlockAt(o.head),a=t.coordsAtPos(o.head,o.assoc||1);a&&(i=s.bottom+t.documentTop-a.bottom+t.defaultLineHeight/2)}return t.moveVertically(o,!0,i)}).map(r);return t.dispatch({changes:r,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function iy(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let r=Ka(t).resolveInner(e),n=r.childBefore(e),o=r.childAfter(e),i;return n&&o&&n.to<=e&&o.from>=e&&(i=n.type.prop(Fa.closedBy))&&i.indexOf(o.name)>-1&&t.doc.lineAt(n.to).from==t.doc.lineAt(o.from).from&&!/\S/.test(t.sliceDoc(n.to,o.from))?{from:n.to,to:o.from}:null}var s2=H2(!1),sy=H2(!0);function H2(t){return({state:e,dispatch:r})=>{if(e.readOnly)return!1;let n=e.changeByRange(o=>{let{from:i,to:s}=o,a=e.doc.lineAt(i),l=!t&&i==s&&iy(e,i);t&&(i=s=(s<=a.to?a:e.doc.lineAt(s)).to);let c=new Kc(e,{simulateBreak:i,simulateDoubleBreak:!!l}),u=Gc(c,i);for(u==null&&(u=Ua(/^\s*/.exec(e.doc.lineAt(i).text)[0],e.tabSize));s<a.to&&/\s/.test(a.text[s-a.from]);)s++;l?{from:i,to:s}=l:i>a.from&&i<a.from+100&&!/\S/.test(a.text.slice(0,i))&&(i=a.from);let f=["",rs(e,u)];return l&&f.push(rs(e,c.lineIndent(a.from,-1))),{changes:{from:i,to:s,insert:Uc.of(f)},range:ve.cursor(i+1+f[1].length)}});return r(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function rd(t,e){let r=-1;return t.changeByRange(n=>{let o=[];for(let s=n.from;s<=n.to;){let a=t.doc.lineAt(s);a.number>r&&(n.empty||n.to>a.from)&&(e(a,o,n),r=a.number),s=a.to+1}let i=t.changes(o);return{changes:o,range:ve.range(i.mapPos(n.anchor,1),i.mapPos(n.head,1))}})}var ay=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=Object.create(null),n=new Kc(t,{overrideIndentation:i=>{let s=r[i];return s??-1}}),o=rd(t,(i,s,a)=>{let l=Gc(n,i.from);if(l==null)return;/\S/.test(i.text)||(l=0);let c=/^\s*/.exec(i.text)[0],u=rs(t,l);(c!=u||a.from<i.from+c.length)&&(r[i.from]=l,s.push({from:i.from,to:i.from+c.length,insert:u}))});return o.changes.empty||e(t.update(o,{userEvent:"indent"})),!0},z2=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(rd(t,(r,n)=>{n.push({from:r.from,insert:t.facet(Pp)})}),{userEvent:"input.indent"})),!0),F2=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(rd(t,(r,n)=>{let o=/^\s*/.exec(r.text)[0];if(!o)return;let i=Ua(o,t.tabSize),s=0,a=rs(t,Math.max(0,i-Ya(t)));for(;s<o.length&&s<a.length&&o.charCodeAt(s)==a.charCodeAt(s);)s++;n.push({from:r.from+s,to:r.from+o.length,insert:a.slice(s)})}),{userEvent:"delete.dedent"})),!0),ly=t=>(t.setTabFocusMode(),!0);var cy=[{key:"Ctrl-b",run:v2,shift:S2,preventDefault:!0},{key:"Ctrl-f",run:g2,shift:E2},{key:"Ctrl-p",run:w2,shift:M2},{key:"Ctrl-n",run:x2,shift:N2},{key:"Ctrl-a",run:A9,shift:z9},{key:"Ctrl-e",run:M9,shift:F9},{key:"Ctrl-d",run:L2},{key:"Ctrl-h",run:Qu},{key:"Ctrl-k",run:Y9},{key:"Ctrl-Alt-h",run:P2},{key:"Ctrl-o",run:J9},{key:"Ctrl-t",run:Q9},{key:"Ctrl-v",run:Ju}],uy=[{key:"ArrowLeft",run:v2,shift:S2,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:b9,shift:D9,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:E9,shift:V9,preventDefault:!0},{key:"ArrowRight",run:g2,shift:E2,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:w9,shift:I9,preventDefault:!0},{mac:"Cmd-ArrowRight",run:T9,shift:H9,preventDefault:!0},{key:"ArrowUp",run:w2,shift:M2,preventDefault:!0},{mac:"Cmd-ArrowUp",run:r2,shift:o2},{mac:"Ctrl-ArrowUp",run:Q4,shift:e2},{key:"ArrowDown",run:x2,shift:N2,preventDefault:!0},{mac:"Cmd-ArrowDown",run:n2,shift:i2},{mac:"Ctrl-ArrowDown",run:Ju,shift:t2},{key:"PageUp",run:Q4,shift:e2},{key:"PageDown",run:Ju,shift:t2},{key:"Home",run:S9,shift:B9,preventDefault:!0},{key:"Mod-Home",run:r2,shift:o2},{key:"End",run:C9,shift:P9,preventDefault:!0},{key:"Mod-End",run:n2,shift:i2},{key:"Enter",run:s2,shift:s2},{key:"Mod-a",run:$9},{key:"Backspace",run:Qu,shift:Qu,preventDefault:!0},{key:"Delete",run:L2,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:P2,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:K9,preventDefault:!0},{mac:"Mod-Backspace",run:Z9,preventDefault:!0},{mac:"Mod-Delete",run:X9,preventDefault:!0}].concat(cy.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),Rl=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:k9,shift:L9},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:_9,shift:R9},{key:"Alt-ArrowUp",run:ey},{key:"Shift-Alt-ArrowUp",run:ry},{key:"Alt-ArrowDown",run:ty},{key:"Shift-Alt-ArrowDown",run:ny},{key:"Mod-Alt-ArrowUp",run:W9},{key:"Mod-Alt-ArrowDown",run:j9},{key:"Escape",run:G9},{key:"Mod-Enter",run:sy},{key:"Alt-l",mac:"Ctrl-l",run:q9},{key:"Mod-i",run:U9,preventDefault:!0},{key:"Mod-[",run:F2},{key:"Mod-]",run:z2},{key:"Mod-Alt-\\",run:ay},{key:"Shift-Mod-k",run:oy},{key:"Shift-Mod-\\",run:O9},{key:"Mod-/",run:r9},{key:"Alt-A",mac:"Ctrl-A",run:o9},{key:"Ctrl-m",mac:"Shift-Alt-m",run:ly}].concat(uy),$2={key:"Tab",run:z2,shift:F2};var dy=Object.defineProperty,q2=Object.getOwnPropertySymbols,hy=Object.prototype.hasOwnProperty,fy=Object.prototype.propertyIsEnumerable,U2=(t,e,r)=>e in t?dy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,py=(t,e)=>{for(var r in e||(e={}))hy.call(e,r)&&U2(t,r,e[r]);if(q2)for(var r of q2(e))fy.call(e,r)&&U2(t,r,e[r]);return t};function j2(t,e){return Object.assign(t,{meta:py({package:"@milkdown/components"},e)}),t}var my={extensions:[],languages:[],expandIcon:"\u2B07",searchIcon:"\u{1F50D}",clearSearchIcon:"\u232B",searchPlaceholder:"Search language",noResultText:"No result",copyText:"Copy",copyIcon:"\u{1F4CB}",onCopy:()=>{},renderLanguage:t=>t,renderPreview:()=>null,previewToggleButton:t=>t?"Edit":"Hide",previewLabel:"Preview",previewLoading:"Loading..."},yi=Ue(my,"codeBlockConfigCtx");j2(yi,{displayName:"Config<code-block>",group:"CodeBlock"});var od=class{constructor(e){this.languages=e,this.map={},e.forEach(r=>{r.alias.forEach(n=>{this.map[n]=r})})}getAll(){return this.languages.map(e=>({name:e.name,alias:e.alias}))}load(e){let n=this.map[e.toLowerCase()];return n?n.support?Promise.resolve(n.support):n.load():Promise.resolve(void 0)}};function zs(...t){}zs(E);function gi({icon:t,class:e,onClick:r}){return E("span",{class:qe("milkdown-icon",e),onPointerdown:r,innerHTML:t?at.sanitize(t.trim()):void 0})}gi.props={icon:{type:String,required:!1},class:{type:String,required:!1},onClick:{type:Function,required:!1}};var vy=(t,e,r)=>new Promise((n,o)=>{var i=l=>{try{a(r.next(l))}catch(c){o(c)}},s=l=>{try{a(r.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,s);a((r=r.apply(t,e)).next())});zs(E,_e);function gy(t){return vy(this,null,function*(){try{return navigator.clipboard.writeText(t)}catch{let r=document.createElement("textarea"),n=document.activeElement;r.value=t,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";let o=document.getSelection(),i=o?o.rangeCount>0&&o.getRangeAt(0):null;document.body.appendChild(r),r.select(),r.selectionStart=0,r.selectionEnd=t.length,document.execCommand("copy"),document.body.removeChild(r),i&&(o.removeAllRanges(),o.addRange(i)),n&&n.focus()}})}var yy=He({props:{copyText:{type:String,required:!0},copyIcon:{type:String,required:!0},onCopy:{type:Function,required:!0},text:{type:String,required:!0}},setup(t){let e=()=>{gy(t.text).then(()=>t.onCopy(t.text)).catch(console.error)};return()=>E(_e,null,E("button",{type:"button",class:"copy-button",onClick:e},E(gi,{icon:t.copyIcon}),t.copyText))}}),by=jn("abcdefghijklmnopqrstuvwxyz0123456789",8);function wy(t){return`${t}-${by()}`}zs(E,_e);var xy=He({props:{language:{type:Object,required:!0},getReadOnly:{type:Function,required:!0},config:{type:Object,required:!0},getAllLanguages:{type:Function,required:!0},setLanguage:{type:Function,required:!0}},setup({language:t,config:e,setLanguage:r,getAllLanguages:n,getReadOnly:o}){let i=Q(),s=Q(!1),a=Q(),l=wy("milkdown-code-language-search"),c=Q(),u=Q("");Xt([s,i,c],()=>{u.value="";let g=i.value,x=c.value;!g||!x||vn(g,x,{placement:"bottom-start"}).then(({x:k,y:T})=>{Object.assign(x.style,{left:`${k}px`,top:`${T}px`})}).catch(console.error)});let f=g=>{if(g.preventDefault(),g.stopPropagation(),o())return;let x=!s.value;s.value=x,x&&setTimeout(()=>{var k;return(k=a.value)==null?void 0:k.focus()},0)},p=g=>{let x=g.target;u.value=x.value},v=g=>{g.key==="Escape"&&(u.value="")},b=xt(()=>{var g;if(!s.value)return[];let x=(g=n())!=null?g:[],k=x.find(O=>O.name.toLowerCase()===t.value.toLowerCase()),T=x.filter(O=>{let N=u.value.toLowerCase();return(O.name.toLowerCase().includes(N)||O.alias.some(D=>D.toLowerCase().includes(N)))&&O!==k});return T.length===0?[]:k?[k,...T]:T}),w=g=>{let x=g.target;if(i.value&&i.value.contains(x))return;let k=c.value,T=i.value;!T||!k||T.dataset.expanded==="true"&&(k.contains(x)||(s.value=!1))};return Yr(()=>{window.addEventListener("click",w)}),Zr(()=>{window.removeEventListener("click",w)}),()=>E(_e,null,E("button",{type:"button",ref:i,class:"language-button",onClick:f,"data-expanded":String(s.value)},t.value||"Text",E("div",{class:"expand-icon"},E(gi,{icon:e.expandIcon}))),E("div",{ref:c,class:"language-picker"},s.value?E("div",{class:"list-wrapper"},E("div",{class:"search-box"},E("div",{class:"search-icon"},E(gi,{icon:e.searchIcon})),E("input",{id:l,ref:a,class:"search-input",placeholder:e.searchPlaceholder,value:u.value,onInput:p,onKeydown:v}),E("div",{class:qe("clear-icon",u.value.length===0&&"hidden"),onMousedown:g=>{g.preventDefault(),u.value=""}},E(gi,{icon:e.clearSearchIcon}))),E("ul",{class:"language-list",role:"listbox",onKeydown:g=>{if(g.key==="Enter"){let x=document.activeElement;x instanceof HTMLElement&&x.dataset.language&&r(x.dataset.language)}}},b.value.length?b.value.map(g=>E("li",{role:"listitem",tabindex:"0",class:"language-list-item","aria-selected":g.name.toLowerCase()===t.value.toLowerCase(),"data-language":g.name,onClick:()=>{r(g.name),s.value=!1}},e.renderLanguage(g.name,g.name.toLowerCase()===t.value.toLowerCase()))):E("li",{class:"language-list-item no-result"},e.noResultText))):null))}});zs(E,_e);var ky="http://www.w3.org/2000/svg";function _y(){let t=at(),e={ADD_TAGS:["foreignObject"],ADD_ATTR:["xmlns"],HTML_INTEGRATION_POINTS:{foreignobject:!0}};return t.addHook("uponSanitizeElement",(r,n)=>{var o;if(n.tagName==="foreignobject"){let i=r.parentElement;(!i||i.namespaceURI!==ky)&&((o=r.parentNode)==null||o.removeChild(r))}}),r=>t.sanitize(r,e)}var Pl;function Cy(t){return Pl??(Pl=_y()),Pl(t)}var Sy=He({props:{text:{type:Object,required:!0},language:{type:Object,required:!0},config:{type:Object,required:!0},previewOnlyMode:{type:Object,required:!0},preview:{type:Object,required:!0}},setup(t){let{previewOnlyMode:e,config:r,preview:n}=t,o=Q();return Sr(()=>{let i=o.value;if(!i)return;for(;i.firstChild;)i.removeChild(i.firstChild);let s=n.value;(typeof s=="string"||s instanceof Element)&&(i.innerHTML=Cy(s))}),()=>n.value?E("div",{class:"preview-panel"},!e.value&&E(_e,null,E("div",{class:"preview-divider"}),E("div",{class:"preview-label"},r.previewLabel)),E("div",{ref:o,class:"preview"})):null}});zs(E,_e);var Ey=He({props:{text:{type:Object,required:!0},selected:{type:Object,required:!0},getReadOnly:{type:Function,required:!0},codemirror:{type:Object,required:!0},language:{type:Object,required:!0},getAllLanguages:{type:Function,required:!0},setLanguage:{type:Function,required:!0},config:{type:Object,required:!0}},setup(t){var e;let r=(e=t.config.previewOnlyByDefault)!=null?e:t.getReadOnly(),n=Q(r),o=Q(),i=Q(null);Yr(()=>{for(var a;(a=o.value)!=null&&a.firstChild;)o.value.removeChild(o.value.firstChild);o.value&&o.value.appendChild(t.codemirror.dom)}),Xt(()=>[t.text.value,t.language.value],()=>{let a=t.config.renderPreview(t.language.value,t.text.value,c=>i.value=c);a&&(i.value=a),a===void 0&&!i.value&&(i.value=at.sanitize(t.config.previewLoading)),a===null&&(i.value=null)},{immediate:!0});let s=()=>{};return()=>{var a;return E(_e,null,E("div",{class:"tools"},E(xy,{language:t.language,config:t.config,setLanguage:t.setLanguage,getAllLanguages:t.getAllLanguages,getReadOnly:t.getReadOnly}),E("div",{class:"tools-button-group"},E(yy,{copyIcon:t.config.copyIcon,copyText:t.config.copyText,onCopy:(a=t.config.onCopy)!=null?a:s,text:t.text.value}),i.value?E("button",{class:"preview-toggle-button",onClick:()=>n.value=!n.value},E(gi,{icon:t.config.previewToggleButton(n.value)})):null)),E("div",{ref:o,class:qe("codemirror-host",i.value&&n.value&&"hidden")}),E(Sy,{text:t.text,language:t.language,config:t.config,previewOnlyMode:n,preview:i}))}}}),id=new WeakMap,nd=null;function W2(){return nd||(nd=new IntersectionObserver(t=>{for(let e of t){let r=id.get(e.target);r?.(e.isIntersecting)}},{rootMargin:"200px"})),nd}var G2=class K2{constructor(e,r,n,o,i){this.node=e,this.view=r,this.getPos=n,this.loader=o,this.config=i,this.selected=Q(!1),this.language=Q(""),this.text=Q(""),this.initialized=!1,this.updating=!1,this.languageName="",this.teardownTimer=null,this.forwardUpdate=a=>{var l;if(this.updating||!this.cm.hasFocus)return;let c=((l=this.getPos())!=null?l:0)+1,{main:u}=a.state.selection,f=c+u.from,p=c+u.to,v=this.view.state.selection;if(a.docChanged||v.from!==f||v.to!==p){let b=this.view.state.tr;a.changes.iterChanges((w,g,x,k,T)=>{T.length?b.replaceWith(c+w,c+g,this.view.state.schema.text(T.toString())):b.delete(c+w,c+g),c+=k-x-(g-w)}),b.setSelection(Xe.create(b.doc,f,p)),this.view.dispatch(b)}},this.createApp=()=>lt(Ey,{text:this.text,selected:this.selected,codemirror:this.cm,language:this.language,getAllLanguages:this.getAllLanguages,getReadOnly:()=>!this.view.editable,setLanguage:this.setLanguage,config:this.config}),this.codeMirrorKeymap=()=>{let a=this.view;return[{key:"ArrowUp",run:()=>this.maybeEscape("line",-1)},{key:"ArrowLeft",run:()=>this.maybeEscape("char",-1)},{key:"ArrowDown",run:()=>this.maybeEscape("line",1)},{key:"ArrowRight",run:()=>this.maybeEscape("char",1)},{key:"Mod-Enter",run:()=>hf(a.state,a.dispatch)?(a.focus(),!0):!1},{key:"Mod-z",run:()=>za(a.state,a.dispatch)},{key:"Shift-Mod-z",run:()=>Yo(a.state,a.dispatch)},{key:"Mod-y",run:()=>Yo(a.state,a.dispatch)},{key:"Backspace",run:()=>{var l;let c=this.cm.state.selection.ranges;if(c.length>1)return!1;let u=c[0];if(u&&(!u.empty||u.anchor>0)||this.cm.state.doc.lines>=2)return!1;let f=this.view.state,p=(l=this.getPos())!=null?l:0,v=f.tr.replaceWith(p,p+this.node.nodeSize,f.schema.nodes.paragraph.createChecked({},this.node.content));return v.setSelection(Xe.near(v.doc.resolve(p))),this.view.dispatch(v),this.view.focus(),!0}}]},this.maybeEscape=(a,l)=>{var c;let{state:u}=this.cm,f=u.selection.main;if(!f.empty||(a==="line"&&(f=u.doc.lineAt(f.head)),l<0?f.from>0:f.to<u.doc.length))return!1;let p=((c=this.getPos())!=null?c:0)+(l<0?0:this.node.nodeSize),v=Xe.near(this.view.state.doc.resolve(p),l),b=this.view.state.tr.setSelection(v).scrollIntoView();return this.view.dispatch(b),this.view.focus(),!0},this.setLanguage=a=>{var l;this.view.dispatch(this.view.state.tr.setNodeAttribute((l=this.getPos())!=null?l:0,"language",a))},this.getAllLanguages=()=>this.loader.getAll();var s;this.languageConf=new Wc,this.readOnlyConf=new Wc,this.text.value=this.node.textContent,this.language.value=(s=this.node.attrs.language)!=null?s:"",this.dom=document.createElement("div"),this.dom.className="milkdown-code-block",this.disposeSelectedWatcher=Sr(()=>{this.selected.value?this.dom.classList.add("selected"):this.dom.classList.remove("selected")}),this.renderPlaceholder(),id.set(this.dom,a=>{a?(this.cancelTeardown(),this.initializeCodeMirror()):this.initialized&&this.scheduleTeardown()}),W2().observe(this.dom)}renderPlaceholder(){let e=document.createElement("pre");e.className="milkdown-code-block-placeholder";let r=document.createElement("code");r.textContent=this.node.textContent,e.appendChild(r),this.dom.appendChild(e)}initializeCodeMirror(){if(this.initialized)return;this.initialized=!0,this.cm=new We({doc:this.node.textContent,root:this.view.root,extensions:[this.readOnlyConf.of(Hn.readOnly.of(!this.view.editable)),ja(),Jo.of(this.codeMirrorKeymap()),this.languageConf.of([]),Hn.changeFilter.of(()=>this.view.editable||this.updating),...this.config.extensions,We.updateListener.of(this.forwardUpdate)]});let e=this.dom.querySelector(".milkdown-code-block-placeholder");e&&this.dom.removeChild(e),this.app=this.createApp(),this.app.mount(this.dom),this.updateLanguage()}teardownCodeMirror(){if(this.initialized&&!(this.cm.hasFocus||this.selected.value)){for(this.app.unmount(),this.cm.destroy(),this.initialized=!1,this.languageName="";this.dom.firstChild;)this.dom.removeChild(this.dom.firstChild);this.renderPlaceholder()}}scheduleTeardown(){this.cancelTeardown(),this.teardownTimer=setTimeout(()=>this.teardownCodeMirror(),K2.TEARDOWN_DELAY)}cancelTeardown(){this.teardownTimer!=null&&(clearTimeout(this.teardownTimer),this.teardownTimer=null)}updateLanguage(){let e=this.node.attrs.language;if(e===this.languageName)return;this.language.value=e,this.loader.load(e??"").then(n=>{n&&(this.cm.dispatch({effects:this.languageConf.reconfigure(n)}),this.languageName=e)}).catch(console.error)}setSelection(e,r){if(this.initialized||this.initializeCodeMirror(),!!this.cm.dom.isConnected){this.cm.focus(),this.updating=!0;try{this.cm.dispatch({selection:{anchor:e,head:r}})}finally{this.updating=!1}}}update(e){var r;if(e.type!==this.node.type)return!1;if(this.updating)return!0;if(this.node=e,this.text.value=e.textContent,this.language.value=(r=e.attrs.language)!=null?r:"",!this.initialized){let o=this.dom.querySelector(".milkdown-code-block-placeholder code");return o&&(o.textContent=e.textContent),!0}this.updateLanguage(),this.view.editable===this.cm.state.readOnly&&this.cm.dispatch({effects:this.readOnlyConf.reconfigure(Hn.readOnly.of(!this.view.editable))});let n=Ay(this.cm.state.doc.toString(),e.textContent);if(n){this.updating=!0;try{this.cm.dispatch({changes:{from:n.from,to:n.to,insert:n.text},scrollIntoView:this.view.editable})}finally{this.updating=!1}}return!0}selectNode(){this.initialized||this.initializeCodeMirror(),this.selected.value=!0,this.cm.focus()}deselectNode(){this.selected.value=!1}stopEvent(){return!0}destroy(){this.cancelTeardown(),W2().unobserve(this.dom),id.delete(this.dom),this.initialized&&(this.app.unmount(),this.cm.destroy()),this.disposeSelectedWatcher()}};G2.TEARDOWN_DELAY=5e3;var Ty=G2;function Ay(t,e){if(t===e)return null;let r=0,n=t.length,o=e.length;for(;r<n&&t.charCodeAt(r)===e.charCodeAt(r);)++r;for(;n>r&&o>r&&t.charCodeAt(n-1)===e.charCodeAt(o-1);)n--,o--;return{from:r,to:n,text:e.slice(r,o)}}var Y2=Br(fn.node,t=>{let e=t.get(yi.key),r=new od(e.languages);return(n,o,i)=>new Ty(n,o,i,r,e)});j2(Y2,{displayName:"NodeView<code-block>",group:"CodeBlock"});var Z2=[Y2,yi];var X2=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t,Yn=class{constructor(e,r,n=0,o=e.length,i,s){this.test=s,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,o),this.bufferStart=n,this.normalize=i?a=>i(X2(a)):X2,this.query=this.normalize(r)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return mp(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let r=vp(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=gp(e);let o=this.normalize(r);if(o.length)for(let i=0,s=n,a=!0;;i++){let l=o.charCodeAt(i),c=this.match(l,s,a,this.bufferPos+this.bufferStart,i==o.length-1);if(c)return this.value=c,this;if(i==o.length-1)break;a&&i<r.length&&r.charCodeAt(i)==l?s++:a=!1}}}match(e,r,n,o,i){let s=null;for(let a=0;a<this.matches.length;){let l=this.matches[a],c=!1;this.query.charCodeAt(l.index)==e&&(l.index==this.query.length-1?s={from:l.from,to:o,precise:i&&l.precise}:(l.index++,c=!0)),c?a++:this.matches.splice(a,1)}return this.query.charCodeAt(0)==e&&(this.query.length==1?s={from:r,to:o,precise:n&&i}:this.matches.push({from:r,index:1,precise:n})),s&&this.test&&!this.test(s.from,s.to,this.buffer,this.bufferStart)&&(s=null),s}};typeof Symbol<"u"&&(Yn.prototype[Symbol.iterator]=function(){return this});var e5={from:-1,to:-1,match:/.*/.exec(""),precise:!0},dd="gm"+(/x/.unicode==null?"":"u"),Hl=class{constructor(e,r,n,o=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=e5,/\\[sWDnr]|\n|\r|\[\^/.test(r))return new Fl(e,r,n,o,i);this.re=new RegExp(r,dd+(n?.ignoreCase?"i":"")),this.test=n?.test,this.iter=e.iter();let s=e.lineAt(o);this.curLineStart=s.from,this.matchPos=$l(e,o),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let r=this.matchPos<=this.to&&this.re.exec(this.curLine);if(r){let n=this.curLineStart+r.index,o=n+r[0].length;if(this.matchPos=$l(this.text,o+(n==o?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<o||n>this.value.to)&&(!this.test||this.test(n,o,r)))return this.value={from:n,to:o,precise:!0,match:r},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},sd=new WeakMap,zl=class t{constructor(e,r){this.from=e,this.text=r}get to(){return this.from+this.text.length}static get(e,r,n){let o=sd.get(e);if(!o||o.from>=n||o.to<=r){let a=new t(r,e.sliceString(r,n));return sd.set(e,a),a}if(o.from==r&&o.to==n)return o;let{text:i,from:s}=o;return s>r&&(i=e.sliceString(r,s)+i,s=r),o.to<n&&(i+=e.sliceString(o.to,n)),sd.set(e,new t(s,i)),new t(r,i.slice(r-s,n-s))}},Fl=class{constructor(e,r,n,o,i){this.text=e,this.to=i,this.done=!1,this.value=e5,this.matchPos=$l(e,o),this.re=new RegExp(r,dd+(n?.ignoreCase?"i":"")),this.test=n?.test,this.flat=zl.get(e,o,this.chunkEnd(o+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,r=this.re.exec(this.flat.text);if(r&&!r[0]&&r.index==e&&(this.re.lastIndex=e+1,r=this.re.exec(this.flat.text)),r){let n=this.flat.from+r.index,o=n+r[0].length;if((this.flat.to>=this.to||r.index+r[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,o,r)))return this.value={from:n,to:o,precise:!0,match:r},this.matchPos=$l(this.text,o+(n==o?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=zl.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(Hl.prototype[Symbol.iterator]=Fl.prototype[Symbol.iterator]=function(){return this});function My(t){try{return new RegExp(t,dd),!0}catch{return!1}}function $l(t,e){if(e>=t.length)return e;let r=t.lineAt(e),n;for(;e<r.to&&(n=r.text.charCodeAt(e-r.from))>=56320&&n<57344;)e++;return e}var Ny=t=>{let e=Dp(t,"cm-goto-line");if(e){let s=e.dom.querySelector("input[type=text]");return s&&s.select(),!0}let{state:r}=t,n=String(r.doc.lineAt(t.state.selection.main.head).number),{close:o,result:i}=Op(t,{class:"cm-goto-line",label:r.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:r.phrase("go")});return i.then(s=>{let a=s&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(s.elements.line.value);if(!a){t.dispatch({effects:o});return}let l=r.doc.lineAt(r.selection.main.head),[,c,u,f,p]=a,v=f?+f.slice(1):0,b=u?+u:l.number;if(u&&p){let x=b/100;c&&(x=x*(c=="-"?-1:1)+l.number/r.doc.lines),b=Math.round(r.doc.lines*x)}else u&&c&&(b=b*(c=="-"?-1:1)+l.number);let w=r.doc.line(Math.max(1,Math.min(r.doc.lines,b))),g=ve.cursor(w.from+Math.max(0,Math.min(v,w.length)));t.dispatch({effects:[o,We.scrollIntoView(g.from,{y:"center"})],selection:g})}),!0},Oy={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},t5=Vn.define({combine(t){return ko(t,Oy,{highlightWordAroundCursor:(e,r)=>e||r,minSelectionLength:Math.min,maxMatches:Math.min})}});function r5(t){let e=[Py,Ry];return t&&e.push(t5.of(t)),e}var Dy=it.mark({class:"cm-selectionMatch"}),Iy=it.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function J2(t,e,r,n){return(r==0||t(e.sliceDoc(r-1,r))!=$t.Word)&&(n==e.doc.length||t(e.sliceDoc(n,n+1))!=$t.Word)}function Ly(t,e,r,n){return t(e.sliceDoc(r,r+1))==$t.Word&&t(e.sliceDoc(n-1,n))==$t.Word}var Ry=Wa.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(t5),{state:r}=t,n=r.selection;if(n.ranges.length>1)return it.none;let o=n.main,i,s=null;if(o.empty){if(!e.highlightWordAroundCursor)return it.none;let l=r.wordAt(o.head);if(!l)return it.none;s=r.charCategorizer(o.head),i=r.sliceDoc(l.from,l.to)}else{let l=o.to-o.from;if(l<e.minSelectionLength||l>200)return it.none;if(e.wholeWords){if(i=r.sliceDoc(o.from,o.to),s=r.charCategorizer(o.head),!(J2(s,r,o.from,o.to)&&Ly(s,r,o.from,o.to)))return it.none}else if(i=r.sliceDoc(o.from,o.to),!i)return it.none}let a=[];for(let l of t.visibleRanges){let c=new Yn(r.doc,i,l.from,l.to);for(;!c.next().done;){let{from:u,to:f}=c.value;if((!s||J2(s,r,u,f))&&(o.empty&&u<=o.from&&f>=o.to?a.push(Iy.range(u,f)):(u>=o.to||f<=o.from)&&a.push(Dy.range(u,f)),a.length>e.maxMatches))return it.none}}return it.set(a)}},{decorations:t=>t.decorations}),Py=We.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),By=({state:t,dispatch:e})=>{let{selection:r}=t,n=ve.create(r.ranges.map(o=>t.wordAt(o.head)||ve.cursor(o.head)),r.mainIndex);return n.eq(r)?!1:(e(t.update({selection:n})),!0)};function Vy(t,e){let{main:r,ranges:n}=t.selection,o=t.wordAt(r.head),i=o&&o.from==r.from&&o.to==r.to;for(let s=!1,a=new Yn(t.doc,e,n[n.length-1].to);;)if(a.next(),a.done){if(s)return null;a=new Yn(t.doc,e,0,Math.max(0,n[n.length-1].from-1)),s=!0}else{if(s&&n.some(l=>l.from==a.value.from))continue;if(i){let l=t.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}var Hy=({state:t,dispatch:e})=>{let{ranges:r}=t.selection;if(r.some(i=>i.from===i.to))return By({state:t,dispatch:e});let n=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some(i=>t.sliceDoc(i.from,i.to)!=n))return!1;let o=Vy(t,n);return o?(e(t.update({selection:t.selection.addRange(ve.range(o.from,o.to),!1),effects:We.scrollIntoView(o.to)})),!0):!1},xi=Vn.define({combine(t){return ko(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new ud(e),scrollToMatch:e=>We.scrollIntoView(e)})}});var ql=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||My(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(r,n)=>n=="n"?`
`:n=="r"?"\r":n=="t"?"	":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new ld(this):new ad(this)}getCursor(e,r=0,n){let o=e.doc?e:Hn.create({doc:e});return n==null&&(n=o.doc.length),this.regexp?wi(this,o,r,n):bi(this,o,r,n)}},Ul=class{constructor(e){this.spec=e}};function zy(t,e,r){return(n,o,i,s)=>{if(r&&!r(n,o,i,s))return!1;let a=n>=s&&o<=s+i.length?i.slice(n-s,o-s):e.doc.sliceString(n,o);return t(a,e,n,o)}}function bi(t,e,r,n){let o;return t.wholeWord&&(o=Fy(e.doc,e.charCategorizer(e.selection.main.head))),t.test&&(o=zy(t.test,e,o)),new Yn(e.doc,t.unquoted,r,n,t.caseSensitive?void 0:i=>i.toLowerCase(),o)}function Fy(t,e){return(r,n,o,i)=>((i>r||i+o.length<n)&&(i=Math.max(0,r-2),o=t.sliceString(i,Math.min(t.length,n+2))),(e(Wl(o,r-i))!=$t.Word||e(jl(o,r-i))!=$t.Word)&&(e(jl(o,n-i))!=$t.Word||e(Wl(o,n-i))!=$t.Word))}var ad=class extends Ul{constructor(e){super(e)}nextMatch(e,r,n){let o=bi(this.spec,e,n,e.doc.length).nextOverlapping();if(o.done){let i=Math.min(e.doc.length,r+this.spec.unquoted.length);o=bi(this.spec,e,0,i).nextOverlapping()}return o.done||o.value.from==r&&o.value.to==n?null:o.value}prevMatchInRange(e,r,n){for(let o=n;;){let i=Math.max(r,o-1e4-this.spec.unquoted.length),s=bi(this.spec,e,i,o),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(i==r)return null;o-=1e4}}prevMatch(e,r,n){let o=this.prevMatchInRange(e,0,r);return o||(o=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),o&&(o.from!=r||o.to!=n)?o:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,r){let n=bi(this.spec,e,0,e.doc.length),o=[];for(;!n.next().done;){if(o.length>=r)return null;o.push(n.value)}return o}highlight(e,r,n,o){let i=bi(this.spec,e,Math.max(0,r-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)o(i.value.from,i.value.to)}};function $y(t,e,r){return(n,o,i)=>(!r||r(n,o,i))&&t(i[0],e,n,o)}function wi(t,e,r,n){let o;return t.wholeWord&&(o=qy(e.charCategorizer(e.selection.main.head))),t.test&&(o=$y(t.test,e,o)),new Hl(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:o},r,n)}function Wl(t,e){return t.slice(gn(t,e,!1),e)}function jl(t,e){return t.slice(e,gn(t,e))}function qy(t){return(e,r,n)=>!n[0].length||(t(Wl(n.input,n.index))!=$t.Word||t(jl(n.input,n.index))!=$t.Word)&&(t(jl(n.input,n.index+n[0].length))!=$t.Word||t(Wl(n.input,n.index+n[0].length))!=$t.Word)}var ld=class extends Ul{nextMatch(e,r,n){let o=wi(this.spec,e,n,e.doc.length).next();return o.done&&(o=wi(this.spec,e,0,r).next()),o.done?null:o.value}prevMatchInRange(e,r,n){for(let o=1;;o++){let i=Math.max(r,n-o*1e4),s=wi(this.spec,e,i,n),a=null;for(;!s.next().done;)a=s.value;if(a&&(i==r||a.from>i+10))return a;if(i==r)return null}}prevMatch(e,r,n){return this.prevMatchInRange(e,0,r)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(r,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let o=n.length;o>0;o--){let i=+n.slice(0,o);if(i>0&&i<e.match.length)return e.match[i]+n.slice(o)}return r})}matchAll(e,r){let n=wi(this.spec,e,0,e.doc.length),o=[];for(;!n.next().done;){if(o.length>=r)return null;o.push(n.value)}return o}highlight(e,r,n,o){let i=wi(this.spec,e,Math.max(0,r-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)o(i.value.from,i.value.to)}},$s=lr.define(),hd=lr.define(),Kn=Xo.define({create(t){return new Fs(cd(t).create(),null)},update(t,e){for(let r of e.effects)r.is($s)?t=new Fs(r.value.create(),t.panel):r.is(hd)&&(t=new Fs(t.query,r.value?fd:null));return t},provide:t=>Ga.from(t,e=>e.panel)});var Fs=class{constructor(e,r){this.query=e,this.panel=r}},Uy=it.mark({class:"cm-searchMatch"}),Wy=it.mark({class:"cm-searchMatch cm-searchMatch-selected"}),jy=Wa.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Kn))}update(t){let e=t.state.field(Kn);(e!=t.startState.field(Kn)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return it.none;let{view:r}=this,n=new qa;for(let o=0,i=r.visibleRanges,s=i.length;o<s;o++){let{from:a,to:l}=i[o];for(;o<s-1&&l>i[o+1].from-500;)l=i[++o].to;t.highlight(r.state,a,l,(c,u)=>{let f=r.state.selection.ranges.some(p=>p.from==c&&p.to==u);n.add(c,u,f?Wy:Uy)})}return n.finish()}},{decorations:t=>t.decorations});function qs(t){return e=>{let r=e.state.field(Kn,!1);return r&&r.query.spec.valid?t(e,r):i5(e)}}var Gl=qs((t,{query:e})=>{let{to:r}=t.state.selection.main,n=e.nextMatch(t.state,r,r);if(!n)return!1;let o=ve.single(n.from,n.to),i=t.state.facet(xi);return t.dispatch({selection:o,effects:[pd(t,n),i.scrollToMatch(o.main,t)],userEvent:"select.search"}),o5(t),!0}),Kl=qs((t,{query:e})=>{let{state:r}=t,{from:n}=r.selection.main,o=e.prevMatch(r,n,n);if(!o)return!1;let i=ve.single(o.from,o.to),s=t.state.facet(xi);return t.dispatch({selection:i,effects:[pd(t,o),s.scrollToMatch(i.main,t)],userEvent:"select.search"}),o5(t),!0}),Gy=qs((t,{query:e})=>{let r=e.matchAll(t.state,1e3);return!r||!r.length?!1:(t.dispatch({selection:ve.create(r.map(n=>ve.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),Ky=({state:t,dispatch:e})=>{let r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;let{from:n,to:o}=r.main,i=[],s=0;for(let a=new Yn(t.doc,t.sliceDoc(n,o));!a.next().done;){if(i.length>1e3)return!1;a.value.from==n&&(s=i.length),i.push(ve.range(a.value.from,a.value.to))}return e(t.update({selection:ve.create(i,s),userEvent:"select.search.matches"})),!0},Q2=qs((t,{query:e})=>{let{state:r}=t,{from:n,to:o}=r.selection.main;if(r.readOnly)return!1;let i=e.nextMatch(r,n,n);if(!i)return!1;let s=i,a=[],l,c,u=[];s.precise?s.from==n&&s.to==o&&(c=r.toText(e.getReplacement(s)),a.push({from:s.from,to:s.to,insert:c}),s=e.nextMatch(r,s.from,s.to),u.push(We.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(n).number)+"."))):s=e.nextMatch(r,s.from,s.to);let f=t.state.changes(a);return s&&(l=ve.single(s.from,s.to).map(f),u.push(pd(t,s)),u.push(r.facet(xi).scrollToMatch(l.main,t))),t.dispatch({changes:f,selection:l,effects:u,userEvent:"input.replace"}),!0}),Yy=qs((t,{query:e})=>{if(t.state.readOnly)return!1;let r=[];for(let o of e.matchAll(t.state,1e9)){let{from:i,to:s,precise:a}=o;a&&r.push({from:i,to:s,insert:e.getReplacement(o)})}if(!r.length)return!1;let n=t.state.phrase("replaced $ matches",r.length)+".";return t.dispatch({changes:r,effects:We.announce.of(n),userEvent:"input.replace.all"}),!0});function fd(t){return t.state.facet(xi).createPanel(t)}function cd(t,e){var r,n,o,i,s;let a=t.selection.main,l=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!l)return e;let c=t.facet(xi);return new ql({search:((r=e?.literal)!==null&&r!==void 0?r:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(n=e?.caseSensitive)!==null&&n!==void 0?n:c.caseSensitive,literal:(o=e?.literal)!==null&&o!==void 0?o:c.literal,regexp:(i=e?.regexp)!==null&&i!==void 0?i:c.regexp,wholeWord:(s=e?.wholeWord)!==null&&s!==void 0?s:c.wholeWord})}function n5(t){let e=ts(t,fd);return e&&e.dom.querySelector("[main-field]")}function o5(t){let e=n5(t);e&&e==t.root.activeElement&&e.select()}var i5=t=>{let e=t.state.field(Kn,!1);if(e&&e.panel){let r=n5(t);if(r&&r!=t.root.activeElement){let n=cd(t.state,e.query.spec);n.valid&&t.dispatch({effects:$s.of(n)}),r.focus(),r.select()}}else t.dispatch({effects:[hd.of(!0),e?$s.of(cd(t.state,e.query.spec)):lr.appendConfig.of(Xy)]});return!0},s5=t=>{let e=t.state.field(Kn,!1);if(!e||!e.panel)return!1;let r=ts(t,fd);return r&&r.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:hd.of(!1)}),!0},a5=[{key:"Mod-f",run:i5,scope:"editor search-panel"},{key:"F3",run:Gl,shift:Kl,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Gl,shift:Kl,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:s5,scope:"editor search-panel"},{key:"Mod-Shift-l",run:Ky},{key:"Mod-Alt-g",run:Ny},{key:"Mod-d",run:Hy,preventDefault:!0}],ud=class{constructor(e){this.view=e;let r=this.query=e.state.field(Kn).query.spec;this.commit=this.commit.bind(this),this.searchField=je("input",{value:r.search,placeholder:Jt(e,"Find"),"aria-label":Jt(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=je("input",{value:r.replace,placeholder:Jt(e,"Replace"),"aria-label":Jt(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=je("input",{type:"checkbox",name:"case",form:"",checked:r.caseSensitive,onchange:this.commit}),this.reField=je("input",{type:"checkbox",name:"re",form:"",checked:r.regexp,onchange:this.commit}),this.wordField=je("input",{type:"checkbox",name:"word",form:"",checked:r.wholeWord,onchange:this.commit});function n(o,i,s){return je("button",{class:"cm-button",name:o,onclick:i,type:"button"},s)}this.dom=je("div",{onkeydown:o=>this.keydown(o),class:"cm-search"},[this.searchField,n("next",()=>Gl(e),[Jt(e,"next")]),n("prev",()=>Kl(e),[Jt(e,"previous")]),n("select",()=>Gy(e),[Jt(e,"all")]),je("label",null,[this.caseField,Jt(e,"match case")]),je("label",null,[this.reField,Jt(e,"regexp")]),je("label",null,[this.wordField,Jt(e,"by word")]),...e.state.readOnly?[]:[je("br"),this.replaceField,n("replace",()=>Q2(e),[Jt(e,"replace")]),n("replaceAll",()=>Yy(e),[Jt(e,"replace all")])],je("button",{name:"close",onclick:()=>s5(e),"aria-label":Jt(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new ql({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:$s.of(e)}))}keydown(e){_p(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Kl:Gl)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Q2(this.view))}update(e){for(let r of e.transactions)for(let n of r.effects)n.is($s)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(xi).top}};function Jt(t,e){return t.state.phrase(e)}var Bl=30,Vl=/[\s\.,:;?!]/;function pd(t,{from:e,to:r}){let n=t.state.doc.lineAt(e),o=t.state.doc.lineAt(r).to,i=Math.max(n.from,e-Bl),s=Math.min(o,r+Bl),a=t.state.sliceDoc(i,s);if(i!=n.from){for(let l=0;l<Bl;l++)if(!Vl.test(a[l+1])&&Vl.test(a[l])){a=a.slice(l);break}}if(s!=o){for(let l=a.length-1;l>a.length-Bl;l--)if(!Vl.test(a[l-1])&&Vl.test(a[l])){a=a.slice(0,l);break}}return We.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${n.number}.`)}var Zy=We.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Xy=[Kn,wp.low(jy),Zy];var Zl=class{constructor(e,r,n){this.from=e,this.to=r,this.diagnostic=n}},Mo=class t{constructor(e,r,n){this.diagnostics=e,this.panel=r,this.selected=n}static init(e,r,n){let o=n.facet(Us).markerFilter;o&&(e=o(e,n));let i=e.slice().sort((v,b)=>v.from-b.from||v.to-b.to),s=new qa,a=[],l=0,c=n.doc.iter(),u=0,f=n.doc.length;for(let v=0;;){let b=v==i.length?null:i[v];if(!b&&!a.length)break;let w,g;if(a.length)w=l,g=a.reduce((T,O)=>Math.min(T,O.to),b&&b.from>w?b.from:1e8);else{if(w=b.from,w>f)break;g=b.to,a.push(b),v++}for(;v<i.length;){let T=i[v];if(T.from==w&&(T.to>T.from||T.to==w))a.push(T),v++,g=Math.min(T.to,g);else{g=Math.min(T.from,g);break}}g=Math.min(g,f);let x=!1;if(a.some(T=>T.from==w&&(T.to==g||g==f))&&(x=w==g,!x&&g-w<10)){let T=w-(u+c.value.length);T>0&&(c.next(T),u=w);for(let O=w;;){if(O>=g){x=!0;break}if(!c.lineBreak&&u+c.value.length>O)break;O=u+c.value.length,u+=c.value.length,c.next()}}let k=lb(a);if(x)s.add(w,w,it.widget({widget:new md(k),diagnostics:a.slice()}));else{let T=a.reduce((O,N)=>N.markClass?O+" "+N.markClass:O,"");s.add(w,g,it.mark({class:"cm-lintRange cm-lintRange-"+k+T,diagnostics:a.slice(),inclusiveEnd:a.some(O=>O.to>g)}))}if(l=g,l==f)break;for(let T=0;T<a.length;T++)a[T].to<=l&&a.splice(T--,1)}let p=s.finish();return new t(p,r,Zn(p))}};function Zn(t,e=null,r=0){let n=null;return t.between(r,1e9,(o,i,{spec:s})=>{if(!(e&&s.diagnostics.indexOf(e)<0))if(!n)n=new Zl(o,i,e||s.diagnostics[0]);else{if(s.diagnostics.indexOf(n.diagnostic)<0)return!1;n=new Zl(n.from,i,n.diagnostic)}}),n}function Jy(t,e){let r=e.pos,n=e.end||r,o=t.state.facet(Us).hideOn(t,r,n);if(o!=null)return o;let i=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(s=>s.is(u5))||t.changes.touchesRange(i.from,Math.max(i.to,n)))}function Qy(t,e){return t.field(Qt,!1)?e:e.concat(lr.appendConfig.of(cb))}var u5=lr.define(),vd=lr.define(),d5=lr.define(),Qt=Xo.define({create(){return new Mo(it.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let r=t.diagnostics.map(e.changes),n=null,o=t.panel;if(t.selected){let i=e.changes.mapPos(t.selected.from,1);n=Zn(r,t.selected.diagnostic,i)||Zn(r,null,i)}!r.size&&o&&e.state.facet(Us).autoPanel&&(o=null),t=new Mo(r,o,n)}for(let r of e.effects)if(r.is(u5)){let n=e.state.facet(Us).autoPanel?r.value.length?Ws.open:null:t.panel;t=Mo.init(r.value,n,e.state)}else r.is(vd)?t=new Mo(t.diagnostics,r.value?Ws.open:null,t.selected):r.is(d5)&&(t=new Mo(t.diagnostics,t.panel,r.value));return t},provide:t=>[Ga.from(t,e=>e.panel),We.decorations.from(t,e=>e.diagnostics)]});var eb=it.mark({class:"cm-lintRange cm-lintRange-active"});function tb(t,e,r){let{diagnostics:n}=t.state.field(Qt),o,i=-1,s=-1;n.between(e-(r<0?1:0),e+(r>0?1:0),(l,c,{spec:u})=>{if(e>=l&&e<=c&&(l==c||(e>l||r>0)&&(e<c||r<0)))return o=u.diagnostics,i=l,s=c,!1});let a=t.state.facet(Us).tooltipFilter;return o&&a&&(o=a(o,t.state)),o?{pos:i,end:s,above:!0,create(){return{dom:rb(t,o)}}}:null}function rb(t,e){return je("ul",{class:"cm-tooltip-lint"},e.map(r=>p5(t,r,!1)))}var nb=t=>{let e=t.state.field(Qt,!1);(!e||!e.panel)&&t.dispatch({effects:Qy(t.state,[vd.of(!0)])});let r=ts(t,Ws.open);return r&&r.dom.querySelector(".cm-panel-lint ul").focus(),!0},l5=t=>{let e=t.state.field(Qt,!1);return!e||!e.panel?!1:(t.dispatch({effects:vd.of(!1)}),!0)},ob=t=>{let e=t.state.field(Qt,!1);if(!e)return!1;let r=t.state.selection.main,n=Zn(e.diagnostics,null,r.to+1);return!n&&(n=Zn(e.diagnostics,null,0),!n||n.from==r.from&&n.to==r.to)?!1:(t.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),Np(t,n.from,1,{tooltip:m5,until:o=>o.docChanged||o.newSelection.main.head<n.from||o.newSelection.main.head>n.to}),!0)};var h5=[{key:"Mod-Shift-m",run:nb,preventDefault:!0},{key:"F8",run:ob}];var Us=Vn.define({combine(t){return{sources:t.map(e=>e.source).filter(e=>e!=null),...ko(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:c5,tooltipFilter:c5,needsRefresh:(e,r)=>e?r?n=>e(n)||r(n):e:r,hideOn:(e,r)=>e?r?(n,o,i)=>e(n,o,i)||r(n,o,i):e:r,autoPanel:(e,r)=>e||r})}}});function c5(t,e){return t?e?(r,n)=>e(t(r,n),n):t:e}function f5(t){let e=[];if(t)e:for(let{name:r}of t){for(let n=0;n<r.length;n++){let o=r[n];if(/[a-zA-Z]/.test(o)&&!e.some(i=>i.toLowerCase()==o.toLowerCase())){e.push(o);continue e}}e.push("")}return e}function p5(t,e,r){var n;let o=r?f5(e.actions):[];return je("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},je("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(n=e.actions)===null||n===void 0?void 0:n.map((i,s)=>{let a=!1,l=v=>{if(v.preventDefault(),a)return;a=!0;let b=Zn(t.state.field(Qt).diagnostics,e);b&&i.apply(t,b.from,b.to)},{name:c}=i,u=o[s]?c.indexOf(o[s]):-1,f=u<0?c:[c.slice(0,u),je("u",c.slice(u,u+1)),c.slice(u+1)],p=i.markClass?" "+i.markClass:"";return je("button",{type:"button",class:"cm-diagnosticAction"+p,onclick:l,onmousedown:l,"aria-label":` Action: ${c}${u<0?"":` (access key "${o[s]})"`}.`},f)}),e.source&&je("div",{class:"cm-diagnosticSource"},e.source))}var md=class extends xp{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return je("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}},Xl=class{constructor(e,r){this.diagnostic=r,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=p5(e,r,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},Ws=class t{constructor(e){this.view=e,this.items=[];let r=o=>{if(!(o.ctrlKey||o.altKey||o.metaKey)){if(o.keyCode==27)l5(this.view),this.view.focus();else if(o.keyCode==38||o.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(o.keyCode==40||o.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(o.keyCode==36)this.moveSelection(0);else if(o.keyCode==35)this.moveSelection(this.items.length-1);else if(o.keyCode==13)this.view.focus();else if(o.keyCode>=65&&o.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],s=f5(i.actions);for(let a=0;a<s.length;a++)if(s[a].toUpperCase().charCodeAt(0)==o.keyCode){let l=Zn(this.view.state.field(Qt).diagnostics,i);l&&i.actions[a].apply(e,l.from,l.to)}}else return;o.preventDefault()}},n=o=>{for(let i=0;i<this.items.length;i++)this.items[i].dom.contains(o.target)&&this.moveSelection(i)};this.list=je("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:r,onclick:n}),this.dom=je("div",{class:"cm-panel-lint"},this.list,je("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>l5(this.view)},"\xD7")),this.update()}get selectedIndex(){let e=this.view.state.field(Qt).selected;if(!e)return-1;for(let r=0;r<this.items.length;r++)if(this.items[r].diagnostic==e.diagnostic)return r;return-1}update(){let{diagnostics:e,selected:r}=this.view.state.field(Qt),n=0,o=!1,i=null,s=new Set;for(e.between(0,this.view.state.doc.length,(a,l,{spec:c})=>{for(let u of c.diagnostics){if(s.has(u))continue;s.add(u);let f=-1,p;for(let v=n;v<this.items.length;v++)if(this.items[v].diagnostic==u){f=v;break}f<0?(p=new Xl(this.view,u),this.items.splice(n,0,p),o=!0):(p=this.items[f],f>n&&(this.items.splice(n,f-n),o=!0)),r&&p.diagnostic==r.diagnostic?p.dom.hasAttribute("aria-selected")||(p.dom.setAttribute("aria-selected","true"),i=p):p.dom.hasAttribute("aria-selected")&&p.dom.removeAttribute("aria-selected"),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)o=!0,this.items.pop();this.items.length==0&&(this.items.push(new Xl(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),o=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let c=l.height/this.list.offsetHeight;a.top<l.top?this.list.scrollTop-=(l.top-a.top)/c:a.bottom>l.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let e=this.list.firstChild;function r(){let n=e;e=n.nextSibling,n.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)r();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)r()}moveSelection(e){if(this.selectedIndex<0)return;let r=this.view.state.field(Qt),n=Zn(r.diagnostics,this.items[e].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:d5.of(n)})}static open(e){return new t(e)}};function ib(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function Yl(t){return ib(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}var sb=We.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Yl("#f11")},".cm-lintRange-warning":{backgroundImage:Yl("orange")},".cm-lintRange-info":{backgroundImage:Yl("#999")},".cm-lintRange-hint":{backgroundImage:Yl("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function ab(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function lb(t){let e="hint",r=1;for(let n of t){let o=ab(n.severity);o>r&&(r=o,e=n.severity)}return e}var m5=Mp(tb,{hideOn:Jy}),cb=[Qt,We.decorations.compute([Qt],t=>{let{selected:e,panel:r}=t.field(Qt);return!e||!r||e.from==e.to?it.none:it.set([eb.range(e.from,e.to)])}),m5,sb];var v5=[Ip(),Lp(),Sp(),u2(),Hp(),ja(),Cp(),Hn.allowMultipleSelections.of(!0),Bp(),Za(Fp,{fallback:!0}),$p(),Up(),jp(),Tp(),Ap(),Ep(),r5(),Jo.of([...Wp,...Rl,...a5,...p2,...Vp,...Gp,...h5])];function g5(t){var e;let r=(e=t?.skipWarning)!=null?e:!1,n=typeof document>"u"?null:document.createElement("div");return new xr({key:ub,view:o=>{r!==!0&&pb(o.state.schema,r||[]);let i=o.dom.ownerDocument;n=n||document.createElement("div");let s=n,a=()=>{hb(o,s)},l;return window.ResizeObserver&&(l=new window.ResizeObserver(()=>a()),l.observe(o.dom)),i.addEventListener("selectionchange",a),{update:()=>{a()},destroy:()=>{i.removeEventListener("selectionchange",a),l&&l.unobserve(o.dom)}}},props:{handleKeyDown:(o,i)=>{var s;let{selection:a}=o.state;if(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey||i.isComposing||!["ArrowLeft","ArrowRight"].includes(i.key)||!gd(a)||!a.empty)return!1;let l=a.$head,[c,u]=y5(l),f=o.state.storedMarks||l.marks();if(c&&u&&!go.sameSet(c,u)){if(i.key==="ArrowLeft"&&!go.sameSet(c,f))return o.dispatch(o.state.tr.setStoredMarks(c)),!0;if(i.key==="ArrowRight"&&!go.sameSet(u,f))return o.dispatch(o.state.tr.setStoredMarks(u)),!0}return i.key==="ArrowLeft"&&l.textOffset===1?(o.dispatch(o.state.tr.setSelection(Xe.create(o.state.doc,l.pos-1)).setStoredMarks(l.marks())),!0):i.key==="ArrowRight"&&l.textOffset+1===((s=l.parent.maybeChild(l.index()))==null?void 0:s.nodeSize)?(o.dispatch(o.state.tr.setSelection(Xe.create(o.state.doc,l.pos+1)).setStoredMarks(l.marks())),!0):!1},decorations:o=>{if(!(!n||!gd(o.selection)||!o.selection.empty))return Yt.create(o.doc,[Kt.widget(0,n,{key:"prosemirror-virtual-cursor"})])},attributes:{class:"virtual-cursor-enabled"}}})}var ub=new kr("prosemirror-virtual-cursor");function db(t,e){var r;let n=window.getSelection();if(!n||!n.rangeCount)return null;let o=(r=n?.getRangeAt(0))==null?void 0:r.cloneRange();if(!o)return null;o.collapse(e);let i=o.getClientRects(),s=i?.length?i[i.length-1]:null;return s?.height?s:t.coordsAtPos(t.state.selection.head)}function y5(t){let e=t.index(),r=t.parent.maybeChild(e),n=t.textOffset?r:null;return!n&&e>0&&(n=t.parent.maybeChild(e-1)),[n?.marks,r?.marks]}function gd(t){return t&&typeof t=="object"&&"$cursor"in t}function hb(t,e){if(!t||!t.dom||t.isDestroyed||!e)return;let{state:r,dom:n}=t,{selection:o}=r;if(!gd(o))return;let i=db(t,o.$head===o.$from);if(!i)return e;let s=n.getBoundingClientRect(),a="prosemirror-virtual-cursor",l=r.selection.$head,[c,u]=y5(l),f=r.storedMarks||l.marks();o.$cursor&&c&&u&&f&&!go.sameSet(c,u)&&(go.sameSet(c,f)?a+=" prosemirror-virtual-cursor-left":go.sameSet(u,f)&&(a+=" prosemirror-virtual-cursor-right")),e.className=a,fb(e,"prosemirror-virtual-cursor-animation"),e.style.height=`${i.bottom-i.top}px`,e.style.left=`${i.left-s.left}px`,e.style.top=`${i.top-s.top}px`}function fb(t,e){t.classList.remove(e),t.offsetWidth,t.classList.add(e)}function pb(t,e){for(let[r,n]of Object.entries(t.marks))n.spec.inclusive===!1&&!e.includes(r)&&console.warn(`[prosemirror-virtual-cursor] Virtual cursor does not work well with marks that have inclusive set to false. Please consider removing the inclusive option from the "${r}" mark or adding it to the "skipWarning" option.`)}var mb=Object.defineProperty,b5=Object.getOwnPropertySymbols,vb=Object.prototype.hasOwnProperty,gb=Object.prototype.propertyIsEnumerable,w5=(t,e,r)=>e in t?mb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,yb=(t,e)=>{for(var r in e||(e={}))vb.call(e,r)&&w5(t,r,e[r]);if(b5)for(var r of b5(e))gb.call(e,r)&&w5(t,r,e[r]);return t};function k5(t,e){return Object.assign(t,{meta:yb({package:"@milkdown/components"},e)}),t}var bb={imageIcon:"\u{1F30C}",uploadButton:"Upload",confirmButton:"\u23CE",uploadPlaceholderText:"/Paste",onUpload:t=>Promise.resolve(URL.createObjectURL(t))},js=Ue(bb,"inlineImageConfigCtx");k5(js,{displayName:"Config<image-inline>",group:"ImageInline"});function yd(...t){}var wb=jn("abcdefghijklmnopqrstuvwxyz0123456789",8);function x5(t){return`${t}-${wb()}`}yd(E);function Jl({icon:t,class:e,onClick:r}){return E("span",{class:qe("milkdown-icon",e),onPointerdown:r,innerHTML:t?at.sanitize(t.trim()):void 0})}Jl.props={icon:{type:String,required:!1},class:{type:String,required:!1},onClick:{type:Function,required:!1}};yd(E,_e);var xb=He({props:{src:{type:Object,required:!0},selected:{type:Object,required:!0},readonly:{type:Object,required:!0},setLink:{type:Function,required:!0},imageIcon:{type:String,required:!1},uploadButton:{type:String,required:!1},confirmButton:{type:String,required:!1},uploadPlaceholderText:{type:String,required:!1},onUpload:{type:Function,required:!0},onImageLoadError:{type:Function,required:!1}},setup({readonly:t,src:e,setLink:r,onUpload:n,imageIcon:o,uploadButton:i,confirmButton:s,uploadPlaceholderText:a,className:l,onImageLoadError:c}){var u,f;let p=Q(!1),v=Q(),b=Q((u=e.value)!=null?u:""),w=x5("milkdown-image-link"),g=x5("milkdown-image-upload"),x=Q(((f=e.value)==null?void 0:f.length)!==0),k=D=>{let I=D.target.value;x.value=I.length!==0,b.value=I},T=D=>{var $,I;D.key==="Enter"&&r((I=($=v.value)==null?void 0:$.value)!=null?I:"")},O=()=>{var D,$;r(($=(D=v.value)==null?void 0:D.value)!=null?$:"")},N=D=>{var $;let I=($=D.target.files)==null?void 0:$[0];I&&n(I).then(L=>{L&&(r(L),x.value=!0)}).catch(L=>{console.error("An error occurred while uploading image"),console.error(L)})};return()=>E("div",{class:qe("image-edit",l)},E(Jl,{icon:o,class:"image-icon"}),E("div",{class:qe("link-importer",p.value&&"focus")},E("input",{id:w,ref:v,draggable:"true",onDragstart:D=>{D.preventDefault(),D.stopPropagation()},disabled:t.value,class:"link-input-area",value:b.value,onInput:k,onKeydown:T,onFocus:()=>p.value=!0,onBlur:()=>p.value=!1}),!x.value&&E("div",{class:"placeholder"},E("input",{disabled:t.value,class:"hidden",id:g,type:"file",accept:"image/*",onChange:N}),E("label",{class:"uploader",for:g},E(Jl,{icon:i})),E("span",{class:"text",onClick:()=>{var D;return(D=v.value)==null?void 0:D.focus()}},a))),b.value&&E(_e,null,E("div",{class:"image-preview"},E("img",{src:b.value,alt:"",onError:D=>Promise.resolve(c?.(D)).catch(()=>{})})),E("div",{class:"confirm",onClick:()=>O()},E(Jl,{icon:s}))))}});yd(E,_e);var kb=He({props:{src:{type:Object,required:!0},alt:{type:Object,required:!0},title:{type:Object,required:!0},selected:{type:Object,required:!0},readonly:{type:Object,required:!0},setAttr:{type:Function,required:!0},config:{type:Object,required:!0}},setup(t){let{src:e,alt:r,title:n}=t;return()=>{var o;return(o=e.value)!=null&&o.length?E("img",{class:"image-inline",src:e.value,alt:r.value,title:n.value}):E(xb,{src:t.src,selected:t.selected,readonly:t.readonly,setLink:i=>t.setAttr("src",i),imageIcon:t.config.imageIcon,uploadButton:t.config.uploadButton,confirmButton:t.config.confirmButton,uploadPlaceholderText:t.config.uploadPlaceholderText,onUpload:t.config.onUpload,className:"empty-image-inline"})}}}),_5=Br(Mf.node,t=>(e,r,n)=>{let o=Q(e.attrs.src),i=Q(e.attrs.alt),s=Q(e.attrs.title),a=Q(!1),l=Q(!r.editable),c=(g,x)=>{if(!r.editable)return;let k=n();k!=null&&r.dispatch(r.state.tr.setNodeAttribute(k,g,g==="src"?at.sanitize(x):x))},u=t.get(js.key),f=lt(kb,{src:o,alt:i,title:s,selected:a,readonly:l,setAttr:c,config:u}),p=document.createElement("span");p.className="milkdown-image-inline";let v=Sr(()=>{a.value?p.classList.add("selected"):p.classList.remove("selected")}),b=u.proxyDomURL,w=g=>{if(!b)o.value=g.attrs.src;else{let x=b(g.attrs.src);typeof x=="string"?o.value=x:x.then(k=>{o.value=k}).catch(console.error)}i.value=g.attrs.alt,s.value=g.attrs.title};return w(e),f.mount(p),{dom:p,update:g=>g.type!==e.type?!1:(w(g),!0),stopEvent:g=>g.target instanceof HTMLInputElement,selectNode:()=>{a.value=!0},deselectNode:()=>{a.value=!1},destroy:()=>{v(),f.unmount(),p.remove()}}});k5(_5,{displayName:"NodeView<image-inline>",group:"ImageInline"});var C5=[js,_5];var G=class t extends Error{constructor(e,r){var n="KaTeX parse error: "+e,o,i,s=r&&r.loc;if(s&&s.start<=s.end){var a=s.lexer.input;o=s.start,i=s.end,o===a.length?n+=" at end of input: ":n+=" at position "+(o+1)+": ";var l=a.slice(o,i).replace(/[^]/g,"$&\u0332"),c;o>15?c="\u2026"+a.slice(o-15,o):c=a.slice(0,o);var u;i+15<a.length?u=a.slice(i,i+15)+"\u2026":u=a.slice(i),n+=c+l+u}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,t.prototype),this.position=o,o!=null&&i!=null&&(this.length=i-o),this.rawMessage=e}},_b=/([A-Z])/g,Cb=t=>t.replace(_b,"-$1").toLowerCase(),Sb={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Eb=/[&><"']/g,At=t=>String(t).replace(Eb,e=>Sb[e]),l0=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?l0(t.body[0]):t:t.type==="font"?l0(t.body):t,Tb=new Set(["mathord","textord","atom"]),Mn=t=>Tb.has(l0(t).type),Ab=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},Dd={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Mb(t){if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function Nb(t){if(Object.prototype.hasOwnProperty.call(t,"default")&&t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return Mb(e)}function Ob(t,e,r,n){var o=Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0,i=Object.prototype.hasOwnProperty.call(n,"processor")?n.processor:void 0;t[e]=o!==void 0?i?i(o):o:Nb(n)}var Xs=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r of Object.keys(Dd)){var n=Dd[r];n&&Ob(this,r,e,n)}}reportNonstrict(e,r,n){var o=this.strict;if(typeof o=="function"&&(o=o(e,r,n)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new G("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);o==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var o=this.strict;if(typeof o=="function")try{o=o(e,r,n)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=Ab(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},Xr=class{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Jr[Db[this.id]]}sub(){return Jr[Ib[this.id]]}fracNum(){return Jr[Lb[this.id]]}fracDen(){return Jr[Rb[this.id]]}cramp(){return Jr[Pb[this.id]]}text(){return Jr[Bb[this.id]]}isTight(){return this.size>=2}},Qd=0,u0=1,_i=2,An=3,Js=4,pr=5,Ci=6,Vt=7,Jr=[new Xr(Qd,0,!1),new Xr(u0,0,!0),new Xr(_i,1,!1),new Xr(An,1,!0),new Xr(Js,2,!1),new Xr(pr,2,!0),new Xr(Ci,3,!1),new Xr(Vt,3,!0)],Db=[Js,pr,Js,pr,Ci,Vt,Ci,Vt],Ib=[pr,pr,pr,pr,Vt,Vt,Vt,Vt],Lb=[_i,An,Js,pr,Ci,Vt,Ci,Vt],Rb=[An,An,pr,pr,Vt,Vt,Vt,Vt],Pb=[u0,u0,An,An,pr,pr,Vt,Vt],Bb=[Qd,u0,_i,An,_i,An,_i,An],pe={DISPLAY:Jr[Qd],TEXT:Jr[_i],SCRIPT:Jr[Js],SCRIPTSCRIPT:Jr[Ci]},Id=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Vb(t){for(var e=0;e<Id.length;e++)for(var r=Id[e],n=0;n<r.blocks.length;n++){var o=r.blocks[n];if(t>=o[0]&&t<=o[1])return r.name}return null}var c0=[];Id.forEach(t=>t.blocks.forEach(e=>c0.push(...e)));function l3(t){for(var e=0;e<c0.length;e+=2)if(t>=c0[e]&&t<=c0[e+1])return!0;return!1}var dt=t=>t+" "+t,ki=80,Hb=function(e,r){return"M95,"+(622+e+r)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+e/2.075+" -"+e+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+e)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},zb=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+e/2.084+" -"+e+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+e)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},Fb=function(e,r){return"M983 "+(10+e+r)+`
l`+e/3.13+" -"+e+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},$b=function(e,r){return"M424,"+(2398+e+r)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+e)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+`
h400000v`+(40+e)+"h-400000z"},qb=function(e,r){return"M473,"+(2713+e+r)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},Ub=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},Wb=function(e,r,n){var o=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+`
H742v`+o+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},jb=function(e,r,n){r=1e3*r;var o="";switch(e){case"sqrtMain":o=Hb(r,ki);break;case"sqrtSize1":o=zb(r,ki);break;case"sqrtSize2":o=Fb(r,ki);break;case"sqrtSize3":o=$b(r,ki);break;case"sqrtSize4":o=qb(r,ki);break;case"sqrtTall":o=Wb(r,ki,n)}return o},Gb=function(e,r){switch(e){case"\u239C":return dt("M291 0 H417 V"+r+" H291z");case"\u2223":return dt("M145 0 H188 V"+r+" H145z");case"\u2225":return dt("M145 0 H188 V"+r+" H145z")+dt("M367 0 H410 V"+r+" H367z");case"\u239F":return dt("M457 0 H583 V"+r+" H457z");case"\u23A2":return dt("M319 0 H403 V"+r+" H319z");case"\u23A5":return dt("M263 0 H347 V"+r+" H263z");case"\u23AA":return dt("M384 0 H504 V"+r+" H384z");case"\u23D0":return dt("M312 0 H355 V"+r+" H312z");case"\u2016":return dt("M257 0 H300 V"+r+" H257z")+dt("M478 0 H521 V"+r+" H478z");default:return""}},S5={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
 435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:dt("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:dt("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:dt("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:dt("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:dt("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:dt("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:dt("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:dt("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Kb=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function Yb(t){return"toText"in t}var Qn=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){return this.children.map(e=>{if(Yb(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}},Ld={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Zb={ex:!0,em:!0,mu:!0},c3=function(e){return typeof e!="string"&&(e=e.unit),e in Ld||e in Zb||e==="ex"},et=function(e,r){var n;if(e.unit in Ld)n=Ld[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var o;if(r.style.isTight()?o=r.havingStyle(r.style.text()):o=r,e.unit==="ex")n=o.fontMetrics().xHeight;else if(e.unit==="em")n=o.fontMetrics().quad;else throw new G("Invalid unit: '"+e.unit+"'");o!==r&&(n*=o.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},Z=function(e){return+e.toFixed(4)+"em"},eo=function(e){return e.filter(r=>r).join(" ")},e1=function(e){var r="";for(var n of Object.keys(e)){var o=e[n];o!==void 0&&(r+=Cb(n)+":"+o+";")}return r},u3=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var o=r.getColor();o&&(this.style.color=o)}},d3=function(e){var r=document.createElement(e);r.className=eo(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var o=0;o<this.children.length;o++)r.appendChild(this.children[o].toNode());return r},Xb=/[\s"'>/=\x00-\x1f]/,h3=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+At(eo(this.classes))+'"');var n=e1(this.style);n&&(r+=' style="'+At(n)+'"');for(var o of Object.keys(this.attributes)){if(Xb.test(o))throw new G("Invalid attribute name '"+o+"'");r+=" "+o+'="'+At(this.attributes[o])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+e+">",r},to=class{constructor(e,r,n,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,u3.call(this,e,n,o),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return d3.call(this,"span")}toMarkup(){return h3.call(this,"span")}},Si=class{constructor(e,r,n,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,u3.call(this,r,o),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return d3.call(this,"a")}toMarkup(){return h3.call(this,"a")}},Rd=class{constructor(e,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e='<img src="'+At(this.src)+'"'+(' alt="'+At(this.alt)+'"'),r=e1(this.style);return r&&(e+=' style="'+At(r)+'"'),e+="'/>",e}},Jb={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ht=class{constructor(e,r,n,o,i,s,a,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=r||0,this.depth=n||0,this.italic=o||0,this.skew=i||0,this.width=s||0,this.classes=a||[],this.style=l||{},this.maxFontSize=0;var c=Vb(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Jb[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Z(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=eo(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="<span";this.classes.length&&(e=!0,r+=' class="',r+=At(eo(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+Z(this.italic)+";"),n+=e1(this.style),n&&(e=!0,r+=' style="'+At(n)+'"');var o=At(this.text);return e?(r+=">",r+=o,r+="</span>",r):o}},Mr=class{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var o=0;o<this.children.length;o++)r.appendChild(this.children[o].toNode());return r}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))e+=" "+r+'="'+At(this.attributes[r])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}},en=class{constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",S5[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+At(this.alternate)+'"/>':'<path d="'+At(S5[this.pathName])+'"/>'}},Qs=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="<line";for(var r of Object.keys(this.attributes))e+=" "+r+'="'+At(this.attributes[r])+'"';return e+="/>",e}};function Qb(t){if(t instanceof Ht)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function ew(t){if(t instanceof to)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var tw=t=>t instanceof to||t instanceof Si||t instanceof Qn,Qr={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},bd={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},E5={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function rw(t,e){Qr[t]=e}function t1(t,e,r){if(!Qr[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),o=Qr[e][n];if(!o&&t[0]in E5&&(n=E5[t[0]].charCodeAt(0),o=Qr[e][n]),!o&&r==="text"&&l3(n)&&(o=Qr[e][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var wd={};function nw(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!wd[e]){var r=wd[e]={cssEmPerMu:bd.quad[e]/18};for(var n of Object.keys(bd))r[n]=bd[n][e]}return wd[e]}var Ge={math:{},text:{}};function d(t,e,r,n,o,i){Ge[t][o]={font:e,group:r,replace:n},i&&n&&(Ge[t][n]=Ge[t][o])}var h="math",q="text",m="main",C="ams",Ke="accent-token",re="bin",zt="close",Ai="inner",ce="mathord",ut="op-token",tr="open",oa="punct",S="rel",Nn="spacing",M="textord";d(h,m,S,"\u2261","\\equiv",!0);d(h,m,S,"\u227A","\\prec",!0);d(h,m,S,"\u227B","\\succ",!0);d(h,m,S,"\u223C","\\sim",!0);d(h,m,S,"\u22A5","\\perp");d(h,m,S,"\u2AAF","\\preceq",!0);d(h,m,S,"\u2AB0","\\succeq",!0);d(h,m,S,"\u2243","\\simeq",!0);d(h,m,S,"\u2223","\\mid",!0);d(h,m,S,"\u226A","\\ll",!0);d(h,m,S,"\u226B","\\gg",!0);d(h,m,S,"\u224D","\\asymp",!0);d(h,m,S,"\u2225","\\parallel");d(h,m,S,"\u22C8","\\bowtie",!0);d(h,m,S,"\u2323","\\smile",!0);d(h,m,S,"\u2291","\\sqsubseteq",!0);d(h,m,S,"\u2292","\\sqsupseteq",!0);d(h,m,S,"\u2250","\\doteq",!0);d(h,m,S,"\u2322","\\frown",!0);d(h,m,S,"\u220B","\\ni",!0);d(h,m,S,"\u221D","\\propto",!0);d(h,m,S,"\u22A2","\\vdash",!0);d(h,m,S,"\u22A3","\\dashv",!0);d(h,m,S,"\u220B","\\owns");d(h,m,oa,".","\\ldotp");d(h,m,oa,"\u22C5","\\cdotp");d(h,m,oa,"\u22C5","\xB7");d(q,m,M,"\u22C5","\xB7");d(h,m,M,"#","\\#");d(q,m,M,"#","\\#");d(h,m,M,"&","\\&");d(q,m,M,"&","\\&");d(h,m,M,"\u2135","\\aleph",!0);d(h,m,M,"\u2200","\\forall",!0);d(h,m,M,"\u210F","\\hbar",!0);d(h,m,M,"\u2203","\\exists",!0);d(h,m,M,"\u2207","\\nabla",!0);d(h,m,M,"\u266D","\\flat",!0);d(h,m,M,"\u2113","\\ell",!0);d(h,m,M,"\u266E","\\natural",!0);d(h,m,M,"\u2663","\\clubsuit",!0);d(h,m,M,"\u2118","\\wp",!0);d(h,m,M,"\u266F","\\sharp",!0);d(h,m,M,"\u2662","\\diamondsuit",!0);d(h,m,M,"\u211C","\\Re",!0);d(h,m,M,"\u2661","\\heartsuit",!0);d(h,m,M,"\u2111","\\Im",!0);d(h,m,M,"\u2660","\\spadesuit",!0);d(h,m,M,"\xA7","\\S",!0);d(q,m,M,"\xA7","\\S");d(h,m,M,"\xB6","\\P",!0);d(q,m,M,"\xB6","\\P");d(h,m,M,"\u2020","\\dag");d(q,m,M,"\u2020","\\dag");d(q,m,M,"\u2020","\\textdagger");d(h,m,M,"\u2021","\\ddag");d(q,m,M,"\u2021","\\ddag");d(q,m,M,"\u2021","\\textdaggerdbl");d(h,m,zt,"\u23B1","\\rmoustache",!0);d(h,m,tr,"\u23B0","\\lmoustache",!0);d(h,m,zt,"\u27EF","\\rgroup",!0);d(h,m,tr,"\u27EE","\\lgroup",!0);d(h,m,re,"\u2213","\\mp",!0);d(h,m,re,"\u2296","\\ominus",!0);d(h,m,re,"\u228E","\\uplus",!0);d(h,m,re,"\u2293","\\sqcap",!0);d(h,m,re,"\u2217","\\ast");d(h,m,re,"\u2294","\\sqcup",!0);d(h,m,re,"\u25EF","\\bigcirc",!0);d(h,m,re,"\u2219","\\bullet",!0);d(h,m,re,"\u2021","\\ddagger");d(h,m,re,"\u2240","\\wr",!0);d(h,m,re,"\u2A3F","\\amalg");d(h,m,re,"&","\\And");d(h,m,S,"\u27F5","\\longleftarrow",!0);d(h,m,S,"\u21D0","\\Leftarrow",!0);d(h,m,S,"\u27F8","\\Longleftarrow",!0);d(h,m,S,"\u27F6","\\longrightarrow",!0);d(h,m,S,"\u21D2","\\Rightarrow",!0);d(h,m,S,"\u27F9","\\Longrightarrow",!0);d(h,m,S,"\u2194","\\leftrightarrow",!0);d(h,m,S,"\u27F7","\\longleftrightarrow",!0);d(h,m,S,"\u21D4","\\Leftrightarrow",!0);d(h,m,S,"\u27FA","\\Longleftrightarrow",!0);d(h,m,S,"\u21A6","\\mapsto",!0);d(h,m,S,"\u27FC","\\longmapsto",!0);d(h,m,S,"\u2197","\\nearrow",!0);d(h,m,S,"\u21A9","\\hookleftarrow",!0);d(h,m,S,"\u21AA","\\hookrightarrow",!0);d(h,m,S,"\u2198","\\searrow",!0);d(h,m,S,"\u21BC","\\leftharpoonup",!0);d(h,m,S,"\u21C0","\\rightharpoonup",!0);d(h,m,S,"\u2199","\\swarrow",!0);d(h,m,S,"\u21BD","\\leftharpoondown",!0);d(h,m,S,"\u21C1","\\rightharpoondown",!0);d(h,m,S,"\u2196","\\nwarrow",!0);d(h,m,S,"\u21CC","\\rightleftharpoons",!0);d(h,C,S,"\u226E","\\nless",!0);d(h,C,S,"\uE010","\\@nleqslant");d(h,C,S,"\uE011","\\@nleqq");d(h,C,S,"\u2A87","\\lneq",!0);d(h,C,S,"\u2268","\\lneqq",!0);d(h,C,S,"\uE00C","\\@lvertneqq");d(h,C,S,"\u22E6","\\lnsim",!0);d(h,C,S,"\u2A89","\\lnapprox",!0);d(h,C,S,"\u2280","\\nprec",!0);d(h,C,S,"\u22E0","\\npreceq",!0);d(h,C,S,"\u22E8","\\precnsim",!0);d(h,C,S,"\u2AB9","\\precnapprox",!0);d(h,C,S,"\u2241","\\nsim",!0);d(h,C,S,"\uE006","\\@nshortmid");d(h,C,S,"\u2224","\\nmid",!0);d(h,C,S,"\u22AC","\\nvdash",!0);d(h,C,S,"\u22AD","\\nvDash",!0);d(h,C,S,"\u22EA","\\ntriangleleft");d(h,C,S,"\u22EC","\\ntrianglelefteq",!0);d(h,C,S,"\u228A","\\subsetneq",!0);d(h,C,S,"\uE01A","\\@varsubsetneq");d(h,C,S,"\u2ACB","\\subsetneqq",!0);d(h,C,S,"\uE017","\\@varsubsetneqq");d(h,C,S,"\u226F","\\ngtr",!0);d(h,C,S,"\uE00F","\\@ngeqslant");d(h,C,S,"\uE00E","\\@ngeqq");d(h,C,S,"\u2A88","\\gneq",!0);d(h,C,S,"\u2269","\\gneqq",!0);d(h,C,S,"\uE00D","\\@gvertneqq");d(h,C,S,"\u22E7","\\gnsim",!0);d(h,C,S,"\u2A8A","\\gnapprox",!0);d(h,C,S,"\u2281","\\nsucc",!0);d(h,C,S,"\u22E1","\\nsucceq",!0);d(h,C,S,"\u22E9","\\succnsim",!0);d(h,C,S,"\u2ABA","\\succnapprox",!0);d(h,C,S,"\u2246","\\ncong",!0);d(h,C,S,"\uE007","\\@nshortparallel");d(h,C,S,"\u2226","\\nparallel",!0);d(h,C,S,"\u22AF","\\nVDash",!0);d(h,C,S,"\u22EB","\\ntriangleright");d(h,C,S,"\u22ED","\\ntrianglerighteq",!0);d(h,C,S,"\uE018","\\@nsupseteqq");d(h,C,S,"\u228B","\\supsetneq",!0);d(h,C,S,"\uE01B","\\@varsupsetneq");d(h,C,S,"\u2ACC","\\supsetneqq",!0);d(h,C,S,"\uE019","\\@varsupsetneqq");d(h,C,S,"\u22AE","\\nVdash",!0);d(h,C,S,"\u2AB5","\\precneqq",!0);d(h,C,S,"\u2AB6","\\succneqq",!0);d(h,C,S,"\uE016","\\@nsubseteqq");d(h,C,re,"\u22B4","\\unlhd");d(h,C,re,"\u22B5","\\unrhd");d(h,C,S,"\u219A","\\nleftarrow",!0);d(h,C,S,"\u219B","\\nrightarrow",!0);d(h,C,S,"\u21CD","\\nLeftarrow",!0);d(h,C,S,"\u21CF","\\nRightarrow",!0);d(h,C,S,"\u21AE","\\nleftrightarrow",!0);d(h,C,S,"\u21CE","\\nLeftrightarrow",!0);d(h,C,S,"\u25B3","\\vartriangle");d(h,C,M,"\u210F","\\hslash");d(h,C,M,"\u25BD","\\triangledown");d(h,C,M,"\u25CA","\\lozenge");d(h,C,M,"\u24C8","\\circledS");d(h,C,M,"\xAE","\\circledR");d(q,C,M,"\xAE","\\circledR");d(h,C,M,"\u2221","\\measuredangle",!0);d(h,C,M,"\u2204","\\nexists");d(h,C,M,"\u2127","\\mho");d(h,C,M,"\u2132","\\Finv",!0);d(h,C,M,"\u2141","\\Game",!0);d(h,C,M,"\u2035","\\backprime");d(h,C,M,"\u25B2","\\blacktriangle");d(h,C,M,"\u25BC","\\blacktriangledown");d(h,C,M,"\u25A0","\\blacksquare");d(h,C,M,"\u29EB","\\blacklozenge");d(h,C,M,"\u2605","\\bigstar");d(h,C,M,"\u2222","\\sphericalangle",!0);d(h,C,M,"\u2201","\\complement",!0);d(h,C,M,"\xF0","\\eth",!0);d(q,m,M,"\xF0","\xF0");d(h,C,M,"\u2571","\\diagup");d(h,C,M,"\u2572","\\diagdown");d(h,C,M,"\u25A1","\\square");d(h,C,M,"\u25A1","\\Box");d(h,C,M,"\u25CA","\\Diamond");d(h,C,M,"\xA5","\\yen",!0);d(q,C,M,"\xA5","\\yen",!0);d(h,C,M,"\u2713","\\checkmark",!0);d(q,C,M,"\u2713","\\checkmark");d(h,C,M,"\u2136","\\beth",!0);d(h,C,M,"\u2138","\\daleth",!0);d(h,C,M,"\u2137","\\gimel",!0);d(h,C,M,"\u03DD","\\digamma",!0);d(h,C,M,"\u03F0","\\varkappa");d(h,C,tr,"\u250C","\\@ulcorner",!0);d(h,C,zt,"\u2510","\\@urcorner",!0);d(h,C,tr,"\u2514","\\@llcorner",!0);d(h,C,zt,"\u2518","\\@lrcorner",!0);d(h,C,S,"\u2266","\\leqq",!0);d(h,C,S,"\u2A7D","\\leqslant",!0);d(h,C,S,"\u2A95","\\eqslantless",!0);d(h,C,S,"\u2272","\\lesssim",!0);d(h,C,S,"\u2A85","\\lessapprox",!0);d(h,C,S,"\u224A","\\approxeq",!0);d(h,C,re,"\u22D6","\\lessdot");d(h,C,S,"\u22D8","\\lll",!0);d(h,C,S,"\u2276","\\lessgtr",!0);d(h,C,S,"\u22DA","\\lesseqgtr",!0);d(h,C,S,"\u2A8B","\\lesseqqgtr",!0);d(h,C,S,"\u2251","\\doteqdot");d(h,C,S,"\u2253","\\risingdotseq",!0);d(h,C,S,"\u2252","\\fallingdotseq",!0);d(h,C,S,"\u223D","\\backsim",!0);d(h,C,S,"\u22CD","\\backsimeq",!0);d(h,C,S,"\u2AC5","\\subseteqq",!0);d(h,C,S,"\u22D0","\\Subset",!0);d(h,C,S,"\u228F","\\sqsubset",!0);d(h,C,S,"\u227C","\\preccurlyeq",!0);d(h,C,S,"\u22DE","\\curlyeqprec",!0);d(h,C,S,"\u227E","\\precsim",!0);d(h,C,S,"\u2AB7","\\precapprox",!0);d(h,C,S,"\u22B2","\\vartriangleleft");d(h,C,S,"\u22B4","\\trianglelefteq");d(h,C,S,"\u22A8","\\vDash",!0);d(h,C,S,"\u22AA","\\Vvdash",!0);d(h,C,S,"\u2323","\\smallsmile");d(h,C,S,"\u2322","\\smallfrown");d(h,C,S,"\u224F","\\bumpeq",!0);d(h,C,S,"\u224E","\\Bumpeq",!0);d(h,C,S,"\u2267","\\geqq",!0);d(h,C,S,"\u2A7E","\\geqslant",!0);d(h,C,S,"\u2A96","\\eqslantgtr",!0);d(h,C,S,"\u2273","\\gtrsim",!0);d(h,C,S,"\u2A86","\\gtrapprox",!0);d(h,C,re,"\u22D7","\\gtrdot");d(h,C,S,"\u22D9","\\ggg",!0);d(h,C,S,"\u2277","\\gtrless",!0);d(h,C,S,"\u22DB","\\gtreqless",!0);d(h,C,S,"\u2A8C","\\gtreqqless",!0);d(h,C,S,"\u2256","\\eqcirc",!0);d(h,C,S,"\u2257","\\circeq",!0);d(h,C,S,"\u225C","\\triangleq",!0);d(h,C,S,"\u223C","\\thicksim");d(h,C,S,"\u2248","\\thickapprox");d(h,C,S,"\u2AC6","\\supseteqq",!0);d(h,C,S,"\u22D1","\\Supset",!0);d(h,C,S,"\u2290","\\sqsupset",!0);d(h,C,S,"\u227D","\\succcurlyeq",!0);d(h,C,S,"\u22DF","\\curlyeqsucc",!0);d(h,C,S,"\u227F","\\succsim",!0);d(h,C,S,"\u2AB8","\\succapprox",!0);d(h,C,S,"\u22B3","\\vartriangleright");d(h,C,S,"\u22B5","\\trianglerighteq");d(h,C,S,"\u22A9","\\Vdash",!0);d(h,C,S,"\u2223","\\shortmid");d(h,C,S,"\u2225","\\shortparallel");d(h,C,S,"\u226C","\\between",!0);d(h,C,S,"\u22D4","\\pitchfork",!0);d(h,C,S,"\u221D","\\varpropto");d(h,C,S,"\u25C0","\\blacktriangleleft");d(h,C,S,"\u2234","\\therefore",!0);d(h,C,S,"\u220D","\\backepsilon");d(h,C,S,"\u25B6","\\blacktriangleright");d(h,C,S,"\u2235","\\because",!0);d(h,C,S,"\u22D8","\\llless");d(h,C,S,"\u22D9","\\gggtr");d(h,C,re,"\u22B2","\\lhd");d(h,C,re,"\u22B3","\\rhd");d(h,C,S,"\u2242","\\eqsim",!0);d(h,m,S,"\u22C8","\\Join");d(h,C,S,"\u2251","\\Doteq",!0);d(h,C,re,"\u2214","\\dotplus",!0);d(h,C,re,"\u2216","\\smallsetminus");d(h,C,re,"\u22D2","\\Cap",!0);d(h,C,re,"\u22D3","\\Cup",!0);d(h,C,re,"\u2A5E","\\doublebarwedge",!0);d(h,C,re,"\u229F","\\boxminus",!0);d(h,C,re,"\u229E","\\boxplus",!0);d(h,C,re,"\u22C7","\\divideontimes",!0);d(h,C,re,"\u22C9","\\ltimes",!0);d(h,C,re,"\u22CA","\\rtimes",!0);d(h,C,re,"\u22CB","\\leftthreetimes",!0);d(h,C,re,"\u22CC","\\rightthreetimes",!0);d(h,C,re,"\u22CF","\\curlywedge",!0);d(h,C,re,"\u22CE","\\curlyvee",!0);d(h,C,re,"\u229D","\\circleddash",!0);d(h,C,re,"\u229B","\\circledast",!0);d(h,C,re,"\u22C5","\\centerdot");d(h,C,re,"\u22BA","\\intercal",!0);d(h,C,re,"\u22D2","\\doublecap");d(h,C,re,"\u22D3","\\doublecup");d(h,C,re,"\u22A0","\\boxtimes",!0);d(h,C,S,"\u21E2","\\dashrightarrow",!0);d(h,C,S,"\u21E0","\\dashleftarrow",!0);d(h,C,S,"\u21C7","\\leftleftarrows",!0);d(h,C,S,"\u21C6","\\leftrightarrows",!0);d(h,C,S,"\u21DA","\\Lleftarrow",!0);d(h,C,S,"\u219E","\\twoheadleftarrow",!0);d(h,C,S,"\u21A2","\\leftarrowtail",!0);d(h,C,S,"\u21AB","\\looparrowleft",!0);d(h,C,S,"\u21CB","\\leftrightharpoons",!0);d(h,C,S,"\u21B6","\\curvearrowleft",!0);d(h,C,S,"\u21BA","\\circlearrowleft",!0);d(h,C,S,"\u21B0","\\Lsh",!0);d(h,C,S,"\u21C8","\\upuparrows",!0);d(h,C,S,"\u21BF","\\upharpoonleft",!0);d(h,C,S,"\u21C3","\\downharpoonleft",!0);d(h,m,S,"\u22B6","\\origof",!0);d(h,m,S,"\u22B7","\\imageof",!0);d(h,C,S,"\u22B8","\\multimap",!0);d(h,C,S,"\u21AD","\\leftrightsquigarrow",!0);d(h,C,S,"\u21C9","\\rightrightarrows",!0);d(h,C,S,"\u21C4","\\rightleftarrows",!0);d(h,C,S,"\u21A0","\\twoheadrightarrow",!0);d(h,C,S,"\u21A3","\\rightarrowtail",!0);d(h,C,S,"\u21AC","\\looparrowright",!0);d(h,C,S,"\u21B7","\\curvearrowright",!0);d(h,C,S,"\u21BB","\\circlearrowright",!0);d(h,C,S,"\u21B1","\\Rsh",!0);d(h,C,S,"\u21CA","\\downdownarrows",!0);d(h,C,S,"\u21BE","\\upharpoonright",!0);d(h,C,S,"\u21C2","\\downharpoonright",!0);d(h,C,S,"\u21DD","\\rightsquigarrow",!0);d(h,C,S,"\u21DD","\\leadsto");d(h,C,S,"\u21DB","\\Rrightarrow",!0);d(h,C,S,"\u21BE","\\restriction");d(h,m,M,"\u2018","`");d(h,m,M,"$","\\$");d(q,m,M,"$","\\$");d(q,m,M,"$","\\textdollar");d(h,m,M,"%","\\%");d(q,m,M,"%","\\%");d(h,m,M,"_","\\_");d(q,m,M,"_","\\_");d(q,m,M,"_","\\textunderscore");d(h,m,M,"\u2220","\\angle",!0);d(h,m,M,"\u221E","\\infty",!0);d(h,m,M,"\u2032","\\prime");d(h,m,M,"\u25B3","\\triangle");d(h,m,M,"\u0393","\\Gamma",!0);d(h,m,M,"\u0394","\\Delta",!0);d(h,m,M,"\u0398","\\Theta",!0);d(h,m,M,"\u039B","\\Lambda",!0);d(h,m,M,"\u039E","\\Xi",!0);d(h,m,M,"\u03A0","\\Pi",!0);d(h,m,M,"\u03A3","\\Sigma",!0);d(h,m,M,"\u03A5","\\Upsilon",!0);d(h,m,M,"\u03A6","\\Phi",!0);d(h,m,M,"\u03A8","\\Psi",!0);d(h,m,M,"\u03A9","\\Omega",!0);d(h,m,M,"A","\u0391");d(h,m,M,"B","\u0392");d(h,m,M,"E","\u0395");d(h,m,M,"Z","\u0396");d(h,m,M,"H","\u0397");d(h,m,M,"I","\u0399");d(h,m,M,"K","\u039A");d(h,m,M,"M","\u039C");d(h,m,M,"N","\u039D");d(h,m,M,"O","\u039F");d(h,m,M,"P","\u03A1");d(h,m,M,"T","\u03A4");d(h,m,M,"X","\u03A7");d(h,m,M,"\xAC","\\neg",!0);d(h,m,M,"\xAC","\\lnot");d(h,m,M,"\u22A4","\\top");d(h,m,M,"\u22A5","\\bot");d(h,m,M,"\u2205","\\emptyset");d(h,C,M,"\u2205","\\varnothing");d(h,m,ce,"\u03B1","\\alpha",!0);d(h,m,ce,"\u03B2","\\beta",!0);d(h,m,ce,"\u03B3","\\gamma",!0);d(h,m,ce,"\u03B4","\\delta",!0);d(h,m,ce,"\u03F5","\\epsilon",!0);d(h,m,ce,"\u03B6","\\zeta",!0);d(h,m,ce,"\u03B7","\\eta",!0);d(h,m,ce,"\u03B8","\\theta",!0);d(h,m,ce,"\u03B9","\\iota",!0);d(h,m,ce,"\u03BA","\\kappa",!0);d(h,m,ce,"\u03BB","\\lambda",!0);d(h,m,ce,"\u03BC","\\mu",!0);d(h,m,ce,"\u03BD","\\nu",!0);d(h,m,ce,"\u03BE","\\xi",!0);d(h,m,ce,"\u03BF","\\omicron",!0);d(h,m,ce,"\u03C0","\\pi",!0);d(h,m,ce,"\u03C1","\\rho",!0);d(h,m,ce,"\u03C3","\\sigma",!0);d(h,m,ce,"\u03C4","\\tau",!0);d(h,m,ce,"\u03C5","\\upsilon",!0);d(h,m,ce,"\u03D5","\\phi",!0);d(h,m,ce,"\u03C7","\\chi",!0);d(h,m,ce,"\u03C8","\\psi",!0);d(h,m,ce,"\u03C9","\\omega",!0);d(h,m,ce,"\u03B5","\\varepsilon",!0);d(h,m,ce,"\u03D1","\\vartheta",!0);d(h,m,ce,"\u03D6","\\varpi",!0);d(h,m,ce,"\u03F1","\\varrho",!0);d(h,m,ce,"\u03C2","\\varsigma",!0);d(h,m,ce,"\u03C6","\\varphi",!0);d(h,m,re,"\u2217","*",!0);d(h,m,re,"+","+");d(h,m,re,"\u2212","-",!0);d(h,m,re,"\u22C5","\\cdot",!0);d(h,m,re,"\u2218","\\circ",!0);d(h,m,re,"\xF7","\\div",!0);d(h,m,re,"\xB1","\\pm",!0);d(h,m,re,"\xD7","\\times",!0);d(h,m,re,"\u2229","\\cap",!0);d(h,m,re,"\u222A","\\cup",!0);d(h,m,re,"\u2216","\\setminus",!0);d(h,m,re,"\u2227","\\land");d(h,m,re,"\u2228","\\lor");d(h,m,re,"\u2227","\\wedge",!0);d(h,m,re,"\u2228","\\vee",!0);d(h,m,M,"\u221A","\\surd");d(h,m,tr,"\u27E8","\\langle",!0);d(h,m,tr,"\u2223","\\lvert");d(h,m,tr,"\u2225","\\lVert");d(h,m,zt,"?","?");d(h,m,zt,"!","!");d(h,m,zt,"\u27E9","\\rangle",!0);d(h,m,zt,"\u2223","\\rvert");d(h,m,zt,"\u2225","\\rVert");d(h,m,S,"=","=");d(h,m,S,":",":");d(h,m,S,"\u2248","\\approx",!0);d(h,m,S,"\u2245","\\cong",!0);d(h,m,S,"\u2265","\\ge");d(h,m,S,"\u2265","\\geq",!0);d(h,m,S,"\u2190","\\gets");d(h,m,S,">","\\gt",!0);d(h,m,S,"\u2208","\\in",!0);d(h,m,S,"\uE020","\\@not");d(h,m,S,"\u2282","\\subset",!0);d(h,m,S,"\u2283","\\supset",!0);d(h,m,S,"\u2286","\\subseteq",!0);d(h,m,S,"\u2287","\\supseteq",!0);d(h,C,S,"\u2288","\\nsubseteq",!0);d(h,C,S,"\u2289","\\nsupseteq",!0);d(h,m,S,"\u22A8","\\models");d(h,m,S,"\u2190","\\leftarrow",!0);d(h,m,S,"\u2264","\\le");d(h,m,S,"\u2264","\\leq",!0);d(h,m,S,"<","\\lt",!0);d(h,m,S,"\u2192","\\rightarrow",!0);d(h,m,S,"\u2192","\\to");d(h,C,S,"\u2271","\\ngeq",!0);d(h,C,S,"\u2270","\\nleq",!0);d(h,m,Nn,"\xA0","\\ ");d(h,m,Nn,"\xA0","\\space");d(h,m,Nn,"\xA0","\\nobreakspace");d(q,m,Nn,"\xA0","\\ ");d(q,m,Nn,"\xA0"," ");d(q,m,Nn,"\xA0","\\space");d(q,m,Nn,"\xA0","\\nobreakspace");d(h,m,Nn,"","\\nobreak");d(h,m,Nn,"","\\allowbreak");d(h,m,oa,",",",");d(h,m,oa,";",";");d(h,C,re,"\u22BC","\\barwedge",!0);d(h,C,re,"\u22BB","\\veebar",!0);d(h,m,re,"\u2299","\\odot",!0);d(h,m,re,"\u2295","\\oplus",!0);d(h,m,re,"\u2297","\\otimes",!0);d(h,m,M,"\u2202","\\partial",!0);d(h,m,re,"\u2298","\\oslash",!0);d(h,C,re,"\u229A","\\circledcirc",!0);d(h,C,re,"\u22A1","\\boxdot",!0);d(h,m,re,"\u25B3","\\bigtriangleup");d(h,m,re,"\u25BD","\\bigtriangledown");d(h,m,re,"\u2020","\\dagger");d(h,m,re,"\u22C4","\\diamond");d(h,m,re,"\u22C6","\\star");d(h,m,re,"\u25C3","\\triangleleft");d(h,m,re,"\u25B9","\\triangleright");d(h,m,tr,"{","\\{");d(q,m,M,"{","\\{");d(q,m,M,"{","\\textbraceleft");d(h,m,zt,"}","\\}");d(q,m,M,"}","\\}");d(q,m,M,"}","\\textbraceright");d(h,m,tr,"{","\\lbrace");d(h,m,zt,"}","\\rbrace");d(h,m,tr,"[","\\lbrack",!0);d(q,m,M,"[","\\lbrack",!0);d(h,m,zt,"]","\\rbrack",!0);d(q,m,M,"]","\\rbrack",!0);d(h,m,tr,"(","\\lparen",!0);d(h,m,zt,")","\\rparen",!0);d(q,m,M,"<","\\textless",!0);d(q,m,M,">","\\textgreater",!0);d(h,m,tr,"\u230A","\\lfloor",!0);d(h,m,zt,"\u230B","\\rfloor",!0);d(h,m,tr,"\u2308","\\lceil",!0);d(h,m,zt,"\u2309","\\rceil",!0);d(h,m,M,"\\","\\backslash");d(h,m,M,"\u2223","|");d(h,m,M,"\u2223","\\vert");d(q,m,M,"|","\\textbar",!0);d(h,m,M,"\u2225","\\|");d(h,m,M,"\u2225","\\Vert");d(q,m,M,"\u2225","\\textbardbl");d(q,m,M,"~","\\textasciitilde");d(q,m,M,"\\","\\textbackslash");d(q,m,M,"^","\\textasciicircum");d(h,m,S,"\u2191","\\uparrow",!0);d(h,m,S,"\u21D1","\\Uparrow",!0);d(h,m,S,"\u2193","\\downarrow",!0);d(h,m,S,"\u21D3","\\Downarrow",!0);d(h,m,S,"\u2195","\\updownarrow",!0);d(h,m,S,"\u21D5","\\Updownarrow",!0);d(h,m,ut,"\u2210","\\coprod");d(h,m,ut,"\u22C1","\\bigvee");d(h,m,ut,"\u22C0","\\bigwedge");d(h,m,ut,"\u2A04","\\biguplus");d(h,m,ut,"\u22C2","\\bigcap");d(h,m,ut,"\u22C3","\\bigcup");d(h,m,ut,"\u222B","\\int");d(h,m,ut,"\u222B","\\intop");d(h,m,ut,"\u222C","\\iint");d(h,m,ut,"\u222D","\\iiint");d(h,m,ut,"\u220F","\\prod");d(h,m,ut,"\u2211","\\sum");d(h,m,ut,"\u2A02","\\bigotimes");d(h,m,ut,"\u2A01","\\bigoplus");d(h,m,ut,"\u2A00","\\bigodot");d(h,m,ut,"\u222E","\\oint");d(h,m,ut,"\u222F","\\oiint");d(h,m,ut,"\u2230","\\oiiint");d(h,m,ut,"\u2A06","\\bigsqcup");d(h,m,ut,"\u222B","\\smallint");d(q,m,Ai,"\u2026","\\textellipsis");d(h,m,Ai,"\u2026","\\mathellipsis");d(q,m,Ai,"\u2026","\\ldots",!0);d(h,m,Ai,"\u2026","\\ldots",!0);d(h,m,Ai,"\u22EF","\\@cdots",!0);d(h,m,Ai,"\u22F1","\\ddots",!0);d(h,m,M,"\u22EE","\\varvdots");d(q,m,M,"\u22EE","\\varvdots");d(h,m,Ke,"\u02CA","\\acute");d(h,m,Ke,"\u02CB","\\grave");d(h,m,Ke,"\xA8","\\ddot");d(h,m,Ke,"~","\\tilde");d(h,m,Ke,"\u02C9","\\bar");d(h,m,Ke,"\u02D8","\\breve");d(h,m,Ke,"\u02C7","\\check");d(h,m,Ke,"^","\\hat");d(h,m,Ke,"\u20D7","\\vec");d(h,m,Ke,"\u02D9","\\dot");d(h,m,Ke,"\u02DA","\\mathring");d(h,m,ce,"\uE131","\\@imath");d(h,m,ce,"\uE237","\\@jmath");d(h,m,M,"\u0131","\u0131");d(h,m,M,"\u0237","\u0237");d(q,m,M,"\u0131","\\i",!0);d(q,m,M,"\u0237","\\j",!0);d(q,m,M,"\xDF","\\ss",!0);d(q,m,M,"\xE6","\\ae",!0);d(q,m,M,"\u0153","\\oe",!0);d(q,m,M,"\xF8","\\o",!0);d(q,m,M,"\xC6","\\AE",!0);d(q,m,M,"\u0152","\\OE",!0);d(q,m,M,"\xD8","\\O",!0);d(q,m,Ke,"\u02CA","\\'");d(q,m,Ke,"\u02CB","\\`");d(q,m,Ke,"\u02C6","\\^");d(q,m,Ke,"\u02DC","\\~");d(q,m,Ke,"\u02C9","\\=");d(q,m,Ke,"\u02D8","\\u");d(q,m,Ke,"\u02D9","\\.");d(q,m,Ke,"\xB8","\\c");d(q,m,Ke,"\u02DA","\\r");d(q,m,Ke,"\u02C7","\\v");d(q,m,Ke,"\xA8",'\\"');d(q,m,Ke,"\u02DD","\\H");d(q,m,Ke,"\u25EF","\\textcircled");var f3={"--":!0,"---":!0,"``":!0,"''":!0};d(q,m,M,"\u2013","--",!0);d(q,m,M,"\u2013","\\textendash");d(q,m,M,"\u2014","---",!0);d(q,m,M,"\u2014","\\textemdash");d(q,m,M,"\u2018","`",!0);d(q,m,M,"\u2018","\\textquoteleft");d(q,m,M,"\u2019","'",!0);d(q,m,M,"\u2019","\\textquoteright");d(q,m,M,"\u201C","``",!0);d(q,m,M,"\u201C","\\textquotedblleft");d(q,m,M,"\u201D","''",!0);d(q,m,M,"\u201D","\\textquotedblright");d(h,m,M,"\xB0","\\degree",!0);d(q,m,M,"\xB0","\\degree");d(q,m,M,"\xB0","\\textdegree",!0);d(h,m,M,"\xA3","\\pounds");d(h,m,M,"\xA3","\\mathsterling",!0);d(q,m,M,"\xA3","\\pounds");d(q,m,M,"\xA3","\\textsterling",!0);d(h,C,M,"\u2720","\\maltese");d(q,C,M,"\u2720","\\maltese");var T5='0123456789/@."';for(Ql=0;Ql<T5.length;Ql++)xd=T5.charAt(Ql),d(h,m,M,xd,xd);var xd,Ql,A5='0123456789!@*()-=+";:?/.,';for(e0=0;e0<A5.length;e0++)kd=A5.charAt(e0),d(q,m,M,kd,kd);var kd,e0,d0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(t0=0;t0<d0.length;t0++)Gs=d0.charAt(t0),d(h,m,ce,Gs,Gs),d(q,m,M,Gs,Gs);var Gs,t0;d(h,C,M,"C","\u2102");d(q,C,M,"C","\u2102");d(h,C,M,"H","\u210D");d(q,C,M,"H","\u210D");d(h,C,M,"N","\u2115");d(q,C,M,"N","\u2115");d(h,C,M,"P","\u2119");d(q,C,M,"P","\u2119");d(h,C,M,"Q","\u211A");d(q,C,M,"Q","\u211A");d(h,C,M,"R","\u211D");d(q,C,M,"R","\u211D");d(h,C,M,"Z","\u2124");d(q,C,M,"Z","\u2124");d(h,m,ce,"h","\u210E");d(q,m,ce,"h","\u210E");var he;for(Tt=0;Tt<d0.length;Tt++)Je=d0.charAt(Tt),he=String.fromCharCode(55349,56320+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he),he=String.fromCharCode(55349,56372+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he),he=String.fromCharCode(55349,56424+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he),he=String.fromCharCode(55349,56580+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he),he=String.fromCharCode(55349,56684+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he),he=String.fromCharCode(55349,56736+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he),he=String.fromCharCode(55349,56788+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he),he=String.fromCharCode(55349,56840+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he),he=String.fromCharCode(55349,56944+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he),Tt<26&&(he=String.fromCharCode(55349,56632+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he),he=String.fromCharCode(55349,56476+Tt),d(h,m,ce,Je,he),d(q,m,M,Je,he));var Je,Tt;he="\u{1D55C}";d(h,m,ce,"k",he);d(q,m,M,"k",he);for(Xn=0;Xn<10;Xn++)En=Xn.toString(),he=String.fromCharCode(55349,57294+Xn),d(h,m,ce,En,he),d(q,m,M,En,he),he=String.fromCharCode(55349,57314+Xn),d(h,m,ce,En,he),d(q,m,M,En,he),he=String.fromCharCode(55349,57324+Xn),d(h,m,ce,En,he),d(q,m,M,En,he),he=String.fromCharCode(55349,57334+Xn),d(h,m,ce,En,he),d(q,m,M,En,he);var En,Xn,Pd="\xD0\xDE\xFE";for(r0=0;r0<Pd.length;r0++)Ks=Pd.charAt(r0),d(h,m,ce,Ks,Ks),d(q,m,M,Ks,Ks);var Ks,r0,Bd={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},M5={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},N5={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},ow={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Oo={mathClass:"",textClass:"",font:""},O5={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},D5={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},I5={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},Vd={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Hd={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},L5={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},zd={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},R5=[Bd,Bd,M5,M5,N5,N5,ow,Oo,Oo,Oo,O5,O5,D5,D5,I5,I5,Vd,Vd,Hd,Hd,L5,L5,Oo,Oo,zd,zd],iw=[Bd,Oo,Vd,Hd,zd],sw=t=>{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var o=Math.floor((n-119808)/26);return R5[o]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return iw[i]}else{if(n===120485||n===120486)return R5[0];if(120486<n&&n<120782)return Oo;throw new G("Unsupported character: "+t)}},v0=function(e,r,n){if(Ge[n][e]){var o=Ge[n][e].replace;o&&(e=o)}return{value:e,metrics:t1(e,r,n)}},Bt=function(e,r,n,o,i){var s=v0(e,r,n),a=s.metrics;e=s.value;var l;if(a){var c=a.italic;(n==="text"||o&&o.font==="mathit")&&(c=0),l=new Ht(e,a.height,a.depth,c,a.skew,a.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+r+"' and mode '"+n+"'")),l=new Ht(e,0,0,0,0,0,i);if(o){l.maxFontSize=o.sizeMultiplier,o.style.isTight()&&l.classes.push("mtight");var u=o.getColor();u&&(l.style.color=u)}return l},r1=function(e,r,n,o){return o===void 0&&(o=[]),n.font==="boldsymbol"&&v0(e,"Main-Bold",r).metrics?Bt(e,"Main-Bold",r,n,o.concat(["mathbf"])):e==="\\"||Ge[r][e].font==="main"?Bt(e,"Main-Regular",r,n,o):Bt(e,"AMS-Regular",r,n,o.concat(["amsrm"]))},aw=function(e,r,n){return n!=="textord"&&v0(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},g0=function(e,r){var n=e.type==="mathord"?"mathord":"textord",o=e.mode,i=e.text,s=["mord"],a=r.font,l=r.fontFamily,c=r.fontWeight,u=r.fontShape,f=o==="math"||o==="text"&&!!a,p=f?a:l,v="",b="";if(i.charCodeAt(0)===55349){var w=sw(i);v=w.font,b=w[o+"Class"]}if(v)return Bt(i,v,o,r,s.concat(b));if(p){var g,x;if(p==="boldsymbol"){var k=aw(i,o,n);g=k.fontName,x=[k.fontClass]}else f?(g=Fd[a].fontName,x=[a]):(g=n0(l,c,u),x=[l,c,u]);if(v0(i,g,o).metrics)return Bt(i,g,o,r,s.concat(x));if(Object.prototype.hasOwnProperty.call(f3,i)&&g.slice(0,10)==="Typewriter"){for(var T=[],O=0;O<i.length;O++)T.push(Bt(i[O],g,o,r,s.concat(x)));return On(T)}}if(n==="mathord")return Bt(i,"Math-Italic",o,r,s.concat(["mathnormal"]));if(n==="textord"){var N=Ge[o][i]&&Ge[o][i].font;if(N==="ams"){var D=n0("amsrm",c,u);return Bt(i,D,o,r,s.concat("amsrm",c,u))}else if(N==="main"||!N){var $=n0("textrm",c,u);return Bt(i,$,o,r,s.concat(c,u))}else{var I=n0(N,c,u);return Bt(i,I,o,r,s.concat(I,c,u))}}else throw new Error("unexpected type: "+n+" in makeOrd")},lw=(t,e)=>{if(eo(t.classes)!==eo(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var o of Object.keys(e.style))if(t.style[o]!==e.style[o])return!1;return!0},p3=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof Ht&&n instanceof Ht&&lw(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,t.splice(e+1,1),e--)}return t},n1=function(e){for(var r=0,n=0,o=0,i=0;i<e.children.length;i++){var s=e.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>o&&(o=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=o},j=function(e,r,n,o){var i=new to(e,r,n,o);return n1(i),i},ro=(t,e,r,n)=>new to(t,e,r,n),Ei=function(e,r,n){var o=j([e],[],r);return o.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),o.style.borderBottomWidth=Z(o.height),o.maxFontSize=1,o},cw=function(e,r,n,o){var i=new Si(e,r,n,o);return n1(i),i},On=function(e){var r=new Qn(e);return n1(r),r},Ti=function(e,r){return e instanceof Qn?j([],[e],r):e},uw=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],o=-r[0].shift-r[0].elem.depth,i=o,s=1;s<r.length;s++){var a=-r[s].shift-i-r[s].elem.depth,l=a-(r[s-1].elem.height+r[s-1].elem.depth);i=i+a,n.push({type:"kern",size:l}),n.push(r[s])}return{children:n,depth:o}}var c;if(e.positionType==="top"){for(var u=e.positionData,f=0;f<e.children.length;f++){var p=e.children[f];u-=p.type==="kern"?p.size:p.elem.height+p.elem.depth}c=u}else if(e.positionType==="bottom")c=-e.positionData;else{var v=e.children[0];if(v.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")c=-v.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")c=-v.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:c}},De=function(e,r){for(var n=uw(e),o=n.children,i=n.depth,s=0,a=0;a<o.length;a++){var l=o[a];if(l.type==="elem"){var c=l.elem;s=Math.max(s,c.maxFontSize,c.height)}}s+=2;var u=j(["pstrut"],[]);u.style.height=Z(s);for(var f=[],p=i,v=i,b=i,w=0;w<o.length;w++){var g=o[w];if(g.type==="kern")b+=g.size;else{var x=g.elem,k=g.wrapperClasses||[],T=g.wrapperStyle||{},O=j(k,[u,x],void 0,T);O.style.top=Z(-s-b-x.depth),g.marginLeft&&(O.style.marginLeft=g.marginLeft),g.marginRight&&(O.style.marginRight=g.marginRight),f.push(O),b+=x.height+x.depth}p=Math.min(p,b),v=Math.max(v,b)}var N=j(["vlist"],f);N.style.height=Z(v);var D;if(p<0){var $=j([],[]),I=j(["vlist"],[$]);I.style.height=Z(-p);var L=j(["vlist-s"],[new Ht("\u200B")]);D=[j(["vlist-r"],[N,L]),j(["vlist-r"],[I])]}else D=[j(["vlist-r"],[N])];var W=j(["vlist-t"],D);return D.length===2&&W.classes.push("vlist-t2"),W.height=v,W.depth=-p,W},m3=(t,e)=>{var r=j(["mspace"],[],e),n=et(t,e);return r.style.marginRight=Z(n),r},n0=(t,e,r)=>{var n,o;switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return e==="textbf"&&r==="textit"?o="BoldItalic":e==="textbf"?o="Bold":r==="textit"?o="Italic":o="Regular",n+"-"+o},Fd={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},v3={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},g3=function(e,r){var n=v3[e],o=n[0],i=n[1],s=n[2],a=new en(o),l=new Mr([a],{width:Z(i),height:Z(s),style:"width:"+Z(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),c=ro(["katex-overlay"],[l],r);return c.height=s,c.style.height=Z(s),c.style.width=Z(i),c},Qe={number:3,unit:"mu"},No={number:4,unit:"mu"},Tn={number:5,unit:"mu"},dw={mord:{mop:Qe,mbin:No,mrel:Tn,minner:Qe},mop:{mord:Qe,mop:Qe,mrel:Tn,minner:Qe},mbin:{mord:No,mop:No,mopen:No,minner:No},mrel:{mord:Tn,mop:Tn,mopen:Tn,minner:Tn},mopen:{},mclose:{mop:Qe,mbin:No,mrel:Tn,minner:Qe},mpunct:{mord:Qe,mop:Qe,mrel:Tn,mopen:Qe,mclose:Qe,mpunct:Qe,minner:Qe},minner:{mord:Qe,mop:Qe,mbin:No,mrel:Tn,mopen:Qe,mpunct:Qe,minner:Qe}},hw={mord:{mop:Qe},mop:{mord:Qe,mop:Qe},mbin:{},mrel:{},mopen:{},mclose:{mop:Qe},mpunct:{},minner:{mop:Qe}},y3={},ea={},ta={};function te(t){for(var e=t.type,r=t.names,n=t.htmlBuilder,o=t.mathmlBuilder,i=0;i<r.length;++i)y3[r[i]]=t;e&&(n&&(ea[e]=n),o&&(ta[e]=o))}function Do(t){var e=t.type,r=t.htmlBuilder,n=t.mathmlBuilder;r&&(ea[e]=r),n&&(ta[e]=n)}var ra=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},ct=function(e){return e.type==="ordgroup"?e.body:[e]},fw=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),pw=new Set(["rightmost","mrel","mclose","mpunct"]),mw={display:pe.DISPLAY,text:pe.TEXT,script:pe.SCRIPT,scriptscript:pe.SCRIPTSCRIPT},vw={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ht=function(e,r,n,o){o===void 0&&(o=[null,null]);for(var i=[],s=0;s<e.length;s++){var a=Ie(e[s],r);if(a instanceof Qn){var l=a.children;i.push(...l)}else i.push(a)}if(p3(i),!n)return i;var c=r;if(e.length===1){var u=e[0];u.type==="sizing"?c=r.havingSize(u.size):u.type==="styling"&&(c=r.havingStyle(mw[u.style]))}var f=j([o[0]||"leftmost"],[],r),p=j([o[1]||"rightmost"],[],r),v=n==="root";return $d(i,(b,w)=>{var g=w.classes[0],x=b.classes[0];g==="mbin"&&pw.has(x)?w.classes[0]="mord":x==="mbin"&&fw.has(g)&&(b.classes[0]="mord")},{node:f},p,v),$d(i,(b,w)=>{var g,x,k=Ud(w),T=Ud(b),O=k&&T?b.hasClass("mtight")?(g=hw[k])==null?void 0:g[T]:(x=dw[k])==null?void 0:x[T]:null;if(O)return m3(O,c)},{node:f},p,v),i},$d=function(e,r,n,o,i){o&&e.push(o);for(var s=0;s<e.length;s++){var a=e[s],l=b3(a);if(l){$d(l.children,r,n,null,i);continue}var c=!a.hasClass("mspace");if(c){var u=r(a,n.node);u&&(n.insertAfter?n.insertAfter(u):(e.unshift(u),s++))}c?n.node=a:i&&a.hasClass("katex-newline")&&(n.node=j(["leftmost"])),n.insertAfter=(f=>p=>{e.splice(f+1,0,p),s++})(s)}o&&e.pop()},b3=function(e){return e instanceof Qn||e instanceof Si||e instanceof to&&e.hasClass("enclosing")?e:null},qd=function(e,r){var n=b3(e);if(n){var o=n.children;if(o.length){if(r==="right")return qd(o[o.length-1],"right");if(r==="left")return qd(o[0],"left")}}return e},Ud=function(e,r){if(!e)return null;r&&(e=qd(e,r));var n=e.classes[0];return vw[n]||null},na=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return j(r.concat(n))},Ie=function(e,r,n){if(!e)return j();if(ea[e.type]){var o=ea[e.type](e,r);if(n&&r.size!==n.size){o=j(r.sizingClasses(n),[o],r);var i=r.sizeMultiplier/n.sizeMultiplier;o.height*=i,o.depth*=i}return o}else throw new G("Got group of unknown type: '"+e.type+"'")};function o0(t,e){var r=j(["katex-base"],t,e),n=j(["katex-strut"]);return n.style.height=Z(r.height+r.depth),r.depth&&(n.style.verticalAlign=Z(-r.depth)),r.children.unshift(n),r}function Wd(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=ht(t,e,"root"),o;n.length===2&&n[1].hasClass("katex-tag")&&(o=n.pop());for(var i=[],s=[],a=0;a<n.length;a++)if(s.push(n[a]),n[a].hasClass("mbin")||n[a].hasClass("mrel")||n[a].hasClass("allowbreak")){for(var l=!1;a<n.length-1&&n[a+1].hasClass("mspace")&&!n[a+1].hasClass("katex-newline");)a++,s.push(n[a]),n[a].hasClass("nobreak")&&(l=!0);l||(i.push(o0(s,e)),s=[])}else n[a].hasClass("katex-newline")&&(s.pop(),s.length>0&&(i.push(o0(s,e)),s=[]),i.push(n[a]));s.length>0&&i.push(o0(s,e));var c;r?(c=o0(ht(r,e,!0),e),c.classes=["katex-tag"],i.push(c)):o&&i.push(o);var u=j(["katex-html"],i);if(u.setAttribute("aria-hidden","true"),c){var f=c.children[0];f.style.height=Z(u.height+u.depth),u.depth&&(f.style.verticalAlign=Z(-u.depth))}return u}function w3(t){return new Qn(t)}var K=class{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r of Object.entries(this.attributes)){var n=r[0],o=r[1];e.setAttribute(n,o)}this.classes.length>0&&(e.className=eo(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof ot&&this.children[i+1]instanceof ot){for(var s=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof ot;)s+=this.children[++i].toText();e.appendChild(new ot(s).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e="<"+this.type;for(var r of Object.entries(this.attributes)){var n=r[0],o=r[1];e+=" "+n+'="',e+=At(o),e+='"'}this.classes.length>0&&(e+=' class ="'+At(eo(this.classes))+'"'),e+=">";for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}},ot=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return At(this.toText())}toText(){return this.text}},h0=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Z(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Z(this.width)+'"/>'}toText(){return this.character?this.character:" "}},gw=new Set(["\\imath","\\jmath"]),yw=new Set(["mrow","mtable"]),mr=function(e,r,n){var o,i;return Ge[r][e]&&Ge[r][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(f3,e)&&((n==null||(o=n.fontFamily)==null?void 0:o.slice(4,6))==="tt"||(n==null||(i=n.font)==null?void 0:i.slice(4,6))==="tt"))&&(e=Ge[r][e].replace),new ot(e)},o1=function(e){return e.length===1?e[0]:new K("mrow",e)},bw={mathit:"italic",boldsymbol:t=>t.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},i1=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var n=t.mode,o=bw[r];if(o)return typeof o=="function"?o(t):o;var i=t.text;if(gw.has(i))return null;if(Ge[n][i]){var s=Ge[n][i].replace;s&&(i=s)}var a=Fd[r].fontName;return t1(i,a,n)?Fd[r].variant:null};function _d(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof ot&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof ot&&r.text===","}else return!1}var rr=function(e,r,n){if(e.length===1){var o=ze(e[0],r);return n&&o instanceof K&&o.type==="mo"&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var i=[],s,a=0;a<e.length;a++){var l=ze(e[a],r);if(l instanceof K&&s instanceof K){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(_d(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&_d(s))l.children=[...s.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||_d(s))){var c=l.children[0];c instanceof K&&c.type==="mn"&&(c.children=[...s.children,...c.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var u=s.children[0];if(u instanceof ot&&u.text==="\u0338"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var f=l.children[0];f instanceof ot&&f.text.length>0&&(f.text=f.text.slice(0,1)+"\u0338"+f.text.slice(1),i.pop())}}}i.push(l),s=l}return i},no=function(e,r,n){return o1(rr(e,r,n))},ze=function(e,r){if(!e)return new K("mrow");if(ta[e.type])return ta[e.type](e,r);throw new G("Got group of unknown type: '"+e.type+"'")};function P5(t,e,r,n,o){var i=rr(t,r),s;i.length===1&&i[0]instanceof K&&yw.has(i[0].type)?s=i[0]:s=new K("mrow",i);var a=new K("annotation",[new ot(e)]);a.setAttribute("encoding","application/x-tex");var l=new K("semantics",[s,a]),c=new K("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block");var u=o?"katex":"katex-mathml";return j([u],[c])}var ww=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],B5=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],V5=function(e,r){return r.size<2?e:ww[e-1][r.size-1]},f0=class t{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=B5[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,e),new t(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:V5(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:B5[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=V5(t.BASESIZE,e);return this.size===r&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["katex-sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==t.BASESIZE?["katex-sizing","reset-size"+this.size,"size"+t.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=nw(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};f0.BASESIZE=6;var x3=function(e){return new f0({style:e.displayMode?pe.DISPLAY:pe.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},k3=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=j(n,[e])}return e},xw=function(e,r,n){var o=x3(n),i;if(n.output==="mathml")return P5(e,r,o,n.displayMode,!0);if(n.output==="html"){var s=Wd(e,o);i=j(["katex"],[s])}else{var a=P5(e,r,o,n.displayMode,!1),l=Wd(e,o);i=j(["katex"],[a,l])}return k3(i,n)},kw=function(e,r,n){var o=x3(n),i=Wd(e,o),s=j(["katex"],[i]);return k3(s,n)},_w={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},y0=function(e){var r=new K("mo",[new ot(_w[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Cw={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Sw=new Set(["widehat","widecheck","widetilde","utilde"]),b0=function(e,r){function n(){var l=4e5,c=e.label.slice(1);if(Sw.has(c)&&"base"in e){var u=e.base.type==="ordgroup"?e.base.body.length:1,f,p,v;if(u>5)c==="widehat"||c==="widecheck"?(f=420,l=2364,v=.42,p=c+"4"):(f=312,l=2340,v=.34,p="tilde4");else{var b=[1,1,2,2,3,3][u];c==="widehat"||c==="widecheck"?(l=[0,1062,2364,2364,2364][b],f=[0,239,300,360,420][b],v=[0,.24,.3,.3,.36,.42][b],p=c+b):(l=[0,600,1033,2339,2340][b],f=[0,260,286,306,312][b],v=[0,.26,.286,.3,.306,.34][b],p="tilde"+b)}var w=new en(p),g=new Mr([w],{width:"100%",height:Z(v),viewBox:"0 0 "+l+" "+f,preserveAspectRatio:"none"});return{span:ro([],[g],r),minWidth:0,height:v}}else{var x=[],k=Cw[c];if(!k)throw new Error('No SVG data for "'+c+'".');var T=k[0],O=k[1],N=k[2],D=N/1e3,$=T.length,I,L;if($===1){if(k.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+c+'".');I=["hide-tail"],L=[k[3]]}else if($===2)I=["halfarrow-left","halfarrow-right"],L=["xMinYMin","xMaxYMin"];else if($===3)I=["brace-left","brace-center","brace-right"],L=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+$+" children.");for(var W=0;W<$;W++){var ie=new en(T[W]),B=new Mr([ie],{width:"400em",height:Z(D),viewBox:"0 0 "+l+" "+N,preserveAspectRatio:L[W]+" slice"}),ye=ro([I[W]],[B],r);if($===1)return{span:ye,minWidth:O,height:D};ye.style.height=Z(D),x.push(ye)}return{span:j(["katex-stretchy"],x,r),minWidth:O,height:D}}}var o=n(),i=o.span,s=o.minWidth,a=o.height;return i.height=a,i.style.height=Z(a),s>0&&(i.style.minWidth=Z(s)),i},Ew=function(e,r,n,o,i){var s,a=e.height+e.depth+n+o;if(/fbox|color|angl/.test(r)){if(s=j(["katex-stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(r)&&c.push(new Qs({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&c.push(new Qs({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Mr(c,{width:"100%",height:Z(a)});s=ro([],[u],i)}return s.height=a,s.style.height=Z(a),s},Tw=["bin","close","inner","open","punct","rel"],Aw=["accent-token","mathord","op-token","spacing","textord"],Mw=new Set(Tw),Nw=new Set(Aw);function Ow(t){return Mw.has(t)}function we(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function w0(t){var e=x0(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function x0(t){return t.type==="atom"||Nw.has(t.type)?t:null}function s1(t,e,r){var n="";for(var o of t.body)if(o.type==="textord")n+=o.text;else if(r&&o.type==="spacing"&&o.text===" ")n+=" ";else throw new G(e,t);return n}var _3=t=>{if(t instanceof Ht)return t;if(tw(t)&&t.children.length===1)return _3(t.children[0])},C3=(t,e)=>{var r,n,o;t&&t.type==="supsub"?(n=we(t.base,"accent"),r=n.base,t.base=r,o=ew(Ie(t,e)),t.base=n):(n=we(t,"accent"),r=n.base);var i=Ie(r,e.havingCrampedStyle()),s=n.isShifty&&Mn(r),a=0;if(s){var l,c;a=(l=(c=_3(i))==null?void 0:c.skew)!=null?l:0}var u=n.label==="\\c",f=u?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),p;if(n.isStretchy)p=b0(n,e),p=De({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+Z(2*a)+")",marginLeft:Z(2*a)}:void 0}]});else{var v,b;n.label==="\\vec"?(v=g3("vec",e),b=v3.vec[1]):(v=g0({type:"textord",mode:n.mode,text:n.label},e),v=Qb(v),v.italic=0,b=v.width,u&&(f+=v.depth)),p=j(["accent-body"],[v]);var w=n.label==="\\textcircled";w&&(p.classes.push("accent-full"),f=i.height);var g=a;w||(g-=b/2),p.style.left=Z(g),n.label==="\\textcircled"&&(p.style.top=".2em"),p=De({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-f},{type:"elem",elem:p}]})}var x=j(["mord","katex-accent"],[p],e);return o?(o.children[0]=x,o.height=Math.max(x.height,o.height),o.classes[0]="mord",o):x},Dw=(t,e)=>{var r=t.isStretchy?y0(t.label):new K("mo",[mr(t.label,t.mode)]),n=new K("mover",[ze(t.base,e),r]);return n.setAttribute("accent","true"),n},Iw=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));te({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],numArgs:1,handler:(t,e)=>{var r=ra(e[0]),n=!Iw.test(t.funcName),o=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:o,base:r}},htmlBuilder:C3,mathmlBuilder:Dw});te({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}});te({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,o=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:o}},htmlBuilder:(t,e)=>{var r=Ie(t.base,e),n=b0(t,e),o=t.label==="\\utilde"?.12:0,i=De({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:r}]});return j(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=y0(t.label),n=new K("munder",[ze(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var i0=t=>{var e=new K("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};te({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,o=t.funcName;return{type:"xArrow",mode:n.mode,label:o,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),o=Ti(Ie(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=Ti(Ie(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var a=b0(t,e),l=-e.fontMetrics().axisHeight+.5*a.height,c=-e.fontMetrics().axisHeight-.5*a.height-.111;(o.depth>.25||t.label==="\\xleftequilibrium")&&(c-=o.depth);var u;if(s){var f=-e.fontMetrics().axisHeight+s.height+.5*a.height+.111;u=De({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:a,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:f}]})}else u=De({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:a,shift:l,wrapperClasses:["svg-align"]}]});return j(["mrel","x-arrow"],[u],e)},mathmlBuilder(t,e){var r=y0(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var o=i0(ze(t.body,e));if(t.below){var i=i0(ze(t.below,e));n=new K("munderover",[r,i,o])}else n=new K("mover",[r,o])}else if(t.below){var s=i0(ze(t.below,e));n=new K("munder",[r,s])}else n=i0(),n=new K("mover",[r,n]);return n}});function Lw(t,e){var r=ht(t.body,e,!0);return j([t.mclass],r,e)}function Rw(t,e){var r,n=rr(t.body,e);return t.mclass==="minner"?r=new K("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new K("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new K("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):(t.mclass==="mopen"||t.mclass==="mclose")&&(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}te({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(t,e){var r=t.parser,n=t.funcName,o=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:ct(o),isCharacterBox:Mn(o)}},htmlBuilder:Lw,mathmlBuilder:Rw});var k0=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};te({type:"mclass",names:["\\@binrel"],numArgs:2,handler(t,e){var r=t.parser;return{type:"mclass",mode:r.mode,mclass:k0(e[0]),body:ct(e[1]),isCharacterBox:Mn(e[1])}}});te({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(t,e){var r=t.parser,n=t.funcName,o=e[1],i=e[0],s;n!=="\\stackrel"?s=k0(o):s="mrel";var a={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ct(o)},l=n==="\\underset"?{type:"supsub",mode:i.mode,base:a,sub:i}:{type:"supsub",mode:i.mode,base:a,sup:i};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:Mn(l)}}});te({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"pmb",mode:r.mode,mclass:k0(e[0]),body:ct(e[0])}},htmlBuilder(t,e){var r=ht(t.body,e,!0),n=j([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=rr(t.body,e),n=new K("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Pw={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},H5=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),z5=t=>t.type==="textord"&&t.text==="@",Bw=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Vw(t,e,r){var n=Pw[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var o=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),a=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[o,s,a]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Hw(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new G("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],o=[n],i=0;i<e.length;i++){for(var s=e[i],a=H5(),l=0;l<s.length;l++)if(!z5(s[l]))a.body.push(s[l]);else{n.push(a),l+=1;var c=w0(s[l]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(c))if("<>AV".includes(c))for(var f=0;f<2;f++){for(var p=!0,v=l+1;v<s.length;v++){if(Bw(s[v],c)){p=!1,l=v;break}if(z5(s[v]))throw new G("Missing a "+c+" character to complete a CD arrow.",s[v]);u[f].body.push(s[v])}if(p)throw new G("Missing a "+c+" character to complete a CD arrow.",s[l])}else throw new G('Expected one of "<>AV=|." after @',s[l]);var b=Vw(c,u,t),w={type:"styling",body:[b],mode:"math",style:"display",resetFont:!0};n.push(w),a=H5()}i%2===0?n.push(a):n.shift(),n=[],o.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var g=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:g,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}te({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=Ti(Ie(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=Z(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new K("mrow",[ze(t.label,e)]);return r=new K("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new K("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});te({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(t,e){var r=t.parser;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=Ti(Ie(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new K("mrow",[ze(t.fragment,e)])}});te({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=we(e[0],"ordgroup"),o=s1(n,"\\@char has non-numeric argument"),i=parseInt(o),s;if(isNaN(i))throw new G("\\@char has non-numeric argument "+o);if(i<0||i>1114111)throw new G("\\@char with invalid code point "+o);return i<=65535?s=String.fromCharCode(i):(i-=65536,s=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:"textord",mode:r.mode,text:s}}});var zw=(t,e)=>{var r=ht(t.body,e.withColor(t.color),!1);return On(r)},Fw=(t,e)=>{var r=rr(t.body,e.withColor(t.color)),n=new K("mstyle",r);return n.setAttribute("mathcolor",t.color),n};te({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(t,e){var r=t.parser,n=we(e[0],"color-token").color,o=e[1];return{type:"color",mode:r.mode,color:n,body:ct(o)}},htmlBuilder:zw,mathmlBuilder:Fw});te({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(t,e){var r=t.parser,n=t.breakOnTokenText,o=we(e[0],"color-token").color;r.gullet.macros.set("\\current@color",o);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:o,body:i}}});te({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(t,e,r){var n=t.parser,o=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:o&&we(o,"size").value}},htmlBuilder(t,e){var r=j(["mspace"],[],e);return t.newLine&&(r.classes.push("katex-newline"),t.size&&(r.style.marginTop=Z(et(t.size,e)))),r},mathmlBuilder(t,e){var r=new K("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",Z(et(t.size,e)))),r}});var jd={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},S3=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new G("Expected a control sequence",t);return e},$w=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},E3=(t,e,r,n)=>{var o=t.gullet.macros.get(r.text);o==null&&(r.noexpand=!0,o={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,o,n)};te({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=t.funcName;e.consumeSpaces();var n=e.fetch();if(jd[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=jd[n.text]),we(e.parseFunction(),"internal");throw new G("Invalid token after macro prefix",n)}});te({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=e.gullet.popToken(),o=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new G("Expected a control sequence",n);for(var i=0,s,a=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),a[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new G('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new G('Argument number "'+n.text+'" out of order');i++,a.push([])}else{if(n.text==="EOF")throw new G("Expected a macro definition");a[i].push(n.text)}var l=e.gullet.consumeArg(),c=l.tokens;return s&&c.unshift(s),(r==="\\edef"||r==="\\xdef")&&(c=e.gullet.expandTokens(c),c.reverse()),e.gullet.macros.set(o,{tokens:c,numArgs:i,delimiters:a},r===jd[r]),{type:"internal",mode:e.mode}}});te({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=S3(e.gullet.popToken());e.gullet.consumeSpaces();var o=$w(e);return E3(e,n,o,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});te({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=S3(e.gullet.popToken()),o=e.gullet.popToken(),i=e.gullet.popToken();return E3(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(o),{type:"internal",mode:e.mode}}});var Ys=function(e,r,n){var o=Ge.math[e]&&Ge.math[e].replace,i=t1(o||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},a1=function(e,r,n,o){var i=n.havingBaseStyle(r),s=j(o.concat(i.sizingClasses(n)),[e],n),a=i.sizeMultiplier/n.sizeMultiplier;return s.height*=a,s.depth*=a,s.maxFontSize=i.sizeMultiplier,s},T3=function(e,r,n){var o=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/o.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Z(i),e.height-=i,e.depth+=i},qw=function(e,r,n,o,i,s){var a=Bt(e,"Main-Regular",i,o),l=a1(a,r,o,s);return n&&T3(l,o,r),l},Uw=function(e,r,n,o){return Bt(e,"Size"+r+"-Regular",n,o)},A3=function(e,r,n,o,i,s){var a=Uw(e,r,i,o),l=a1(j(["delimsizing","size"+r],[a],o),pe.TEXT,o,s);return n&&T3(l,o,pe.TEXT),l},Cd=function(e,r,n){var o;r==="Size1-Regular"?o="delim-size1":o="delim-size4";var i=j(["delimsizinginner",o],[j([],[Bt(e,r,n)])]);return{type:"elem",elem:i}},Sd=function(e,r,n){var o=Qr["Size4-Regular"][e.charCodeAt(0)]?Qr["Size4-Regular"][e.charCodeAt(0)][4]:Qr["Size1-Regular"][e.charCodeAt(0)][4],i=new en("inner",Gb(e,Math.round(1e3*r))),s=new Mr([i],{width:Z(o),height:Z(r),style:"width:"+Z(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),a=ro([],[s],n);return a.height=r,a.style.height=Z(r),a.style.width=Z(o),{type:"elem",elem:a}},Gd=.008,s0={type:"kern",size:-1*Gd},Ww=new Set(["|","\\lvert","\\rvert","\\vert"]),jw=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),M3=function(e,r,n,o,i,s){var a,l,c,u,f="",p=0;a=c=u=e,l=null;var v="Size1-Regular";e==="\\uparrow"?c=u="\u23D0":e==="\\Uparrow"?c=u="\u2016":e==="\\downarrow"?a=c="\u23D0":e==="\\Downarrow"?a=c="\u2016":e==="\\updownarrow"?(a="\\uparrow",c="\u23D0",u="\\downarrow"):e==="\\Updownarrow"?(a="\\Uparrow",c="\u2016",u="\\Downarrow"):Ww.has(e)?(c="\u2223",f="vert",p=333):jw.has(e)?(c="\u2225",f="doublevert",p=556):e==="["||e==="\\lbrack"?(a="\u23A1",c="\u23A2",u="\u23A3",v="Size4-Regular",f="lbrack",p=667):e==="]"||e==="\\rbrack"?(a="\u23A4",c="\u23A5",u="\u23A6",v="Size4-Regular",f="rbrack",p=667):e==="\\lfloor"||e==="\u230A"?(c=a="\u23A2",u="\u23A3",v="Size4-Regular",f="lfloor",p=667):e==="\\lceil"||e==="\u2308"?(a="\u23A1",c=u="\u23A2",v="Size4-Regular",f="lceil",p=667):e==="\\rfloor"||e==="\u230B"?(c=a="\u23A5",u="\u23A6",v="Size4-Regular",f="rfloor",p=667):e==="\\rceil"||e==="\u2309"?(a="\u23A4",c=u="\u23A5",v="Size4-Regular",f="rceil",p=667):e==="("||e==="\\lparen"?(a="\u239B",c="\u239C",u="\u239D",v="Size4-Regular",f="lparen",p=875):e===")"||e==="\\rparen"?(a="\u239E",c="\u239F",u="\u23A0",v="Size4-Regular",f="rparen",p=875):e==="\\{"||e==="\\lbrace"?(a="\u23A7",l="\u23A8",u="\u23A9",c="\u23AA",v="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(a="\u23AB",l="\u23AC",u="\u23AD",c="\u23AA",v="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(a="\u23A7",u="\u23A9",c="\u23AA",v="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(a="\u23AB",u="\u23AD",c="\u23AA",v="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(a="\u23A7",u="\u23AD",c="\u23AA",v="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(a="\u23AB",u="\u23A9",c="\u23AA",v="Size4-Regular");var b=Ys(a,v,i),w=b.height+b.depth,g=Ys(c,v,i),x=g.height+g.depth,k=Ys(u,v,i),T=k.height+k.depth,O=0,N=1;if(l!==null){var D=Ys(l,v,i);O=D.height+D.depth,N=2}var $=w+T+O,I=Math.max(0,Math.ceil((r-$)/(N*x))),L=$+I*N*x,W=o.fontMetrics().axisHeight;n&&(W*=o.sizeMultiplier);var ie=L/2-W,B=[];if(f.length>0){var ye=L-w-T,Ae=Math.round(L*1e3),Fe=Kb(f,Math.round(ye*1e3)),Me=new en(f,Fe),Se=Z(p/1e3),be=Z(Ae/1e3),kt=new Mr([Me],{width:Se,height:be,viewBox:"0 0 "+p+" "+Ae}),Mt=ro([],[kt],o);Mt.height=Ae/1e3,Mt.style.width=Se,Mt.style.height=be,B.push({type:"elem",elem:Mt})}else{if(B.push(Cd(u,v,i)),B.push(s0),l===null){var gt=L-w-T+2*Gd;B.push(Sd(c,gt,o))}else{var Nt=(L-w-T-O)/2+2*Gd;B.push(Sd(c,Nt,o)),B.push(s0),B.push(Cd(l,v,i)),B.push(s0),B.push(Sd(c,Nt,o))}B.push(s0),B.push(Cd(a,v,i))}var Ye=o.havingBaseStyle(pe.TEXT),Ir=De({positionType:"bottom",positionData:ie,children:B});return a1(j(["delimsizing","mult"],[Ir],Ye),pe.TEXT,o,s)},Ed=80,Td=.08,Ad=function(e,r,n,o,i){var s=jb(e,o,n),a=new en(e,s),l=new Mr([a],{width:"400em",height:Z(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return ro(["hide-tail"],[l],i)},Gw=function(e,r){var n=r.havingBaseSizing(),o=L3("\\surd",e*n.sizeMultiplier,I3,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),a,l,c,u,f;return o.type==="small"?(u=1e3+1e3*s+Ed,e<1?i=1:e<1.4&&(i=.7),l=(1+s+Td)/i,c=(1+s)/i,a=Ad("sqrtMain",l,u,s,r),a.style.minWidth="0.853em",f=.833/i):o.type==="large"?(u=(1e3+Ed)*Zs[o.size],c=(Zs[o.size]+s)/i,l=(Zs[o.size]+s+Td)/i,a=Ad("sqrtSize"+o.size,l,u,s,r),a.style.minWidth="1.02em",f=1/i):(l=e+s+Td,c=e+s,u=Math.floor(1e3*e+s)+Ed,a=Ad("sqrtTall",l,u,s,r),a.style.minWidth="0.742em",f=1.056),a.height=c,a.style.height=Z(l),{span:a,advanceWidth:f,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},N3=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),Kw=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),O3=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Zs=[0,1.2,1.8,2.4,3],D3=function(e,r,n,o,i){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),N3.has(e)||O3.has(e))return A3(e,r,!1,n,o,i);if(Kw.has(e))return M3(e,Zs[r],!1,n,o,i);throw new G("Illegal delimiter: '"+e+"'")},Yw=[{type:"small",style:pe.SCRIPTSCRIPT},{type:"small",style:pe.SCRIPT},{type:"small",style:pe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Zw=[{type:"small",style:pe.SCRIPTSCRIPT},{type:"small",style:pe.SCRIPT},{type:"small",style:pe.TEXT},{type:"stack"}],I3=[{type:"small",style:pe.SCRIPTSCRIPT},{type:"small",style:pe.SCRIPT},{type:"small",style:pe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Xw=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},L3=function(e,r,n,o){for(var i=Math.min(2,3-o.style.size),s=i;s<n.length;s++){var a=n[s];if(a.type==="stack")break;var l=Ys(e,Xw(a),"math"),c=l.height+l.depth;if(a.type==="small"){var u=o.havingBaseStyle(a.style);c*=u.sizeMultiplier}if(c>r)return a}return n[n.length-1]},Kd=function(e,r,n,o,i,s){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var a;O3.has(e)?a=Yw:N3.has(e)?a=I3:a=Zw;var l=L3(e,r,a,o);return l.type==="small"?qw(e,l.style,n,o,i,s):l.type==="large"?A3(e,l.size,n,o,i,s):M3(e,r,n,o,i,s)},Md=function(e,r,n,o,i,s){var a=o.fontMetrics().axisHeight*o.sizeMultiplier,l=901,c=5/o.fontMetrics().ptPerEm,u=Math.max(r-a,n+a),f=Math.max(u/500*l,2*u-c);return Kd(e,f,!0,o,i,s)},F5={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Jw=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function $5(t){return"isMiddle"in t}function _0(t,e){var r=x0(t);if(r&&Jw.has(r.text))return r;throw r?new G("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new G("Invalid delimiter type '"+t.type+"'",t)}te({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(t,e)=>{var r=_0(ra(e[0]),t);return{type:"delimsizing",mode:t.parser.mode,size:F5[t.funcName].size,mclass:F5[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?j([t.mclass]):D3(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(mr(t.delim,t.mode));var r=new K("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Z(Zs[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function q5(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}te({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new G("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:_0(e[0],t).text,color:r}}});te({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=_0(e[0],t),n=t.parser;++n.leftrightDepth;var o=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=we(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:o,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{q5(t);for(var r=ht(t.body,e,!0,["mopen","mclose"]),n=0,o=0,i=!1,s=0;s<r.length;s++){var a=r[s];$5(a)?i=!0:(n=Math.max(r[s].height,n),o=Math.max(r[s].depth,o))}n*=e.sizeMultiplier,o*=e.sizeMultiplier;var l;if(t.left==="."?l=na(e,["mopen"]):l=Md(t.left,n,o,e,t.mode,["mopen"]),r.unshift(l),i)for(var c=1;c<r.length;c++){var u=r[c];if($5(u)){var f=u.isMiddle;r[c]=Md(f.delim,n,o,f.options,t.mode,[])}}var p;if(t.right===".")p=na(e,["mclose"]);else{var v=t.rightColor?e.withColor(t.rightColor):e;p=Md(t.right,n,o,v,t.mode,["mclose"])}return r.push(p),j(["minner"],r,e)},mathmlBuilder:(t,e)=>{q5(t);var r=rr(t.body,e);if(t.left!=="."){var n=new K("mo",[mr(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var o=new K("mo",[mr(t.right,t.mode)]);o.setAttribute("fence","true"),t.rightColor&&o.setAttribute("mathcolor",t.rightColor),r.push(o)}return o1(r)}});te({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=_0(e[0],t);if(!t.parser.leftrightDepth)throw new G("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=na(e,[]):(r=D3(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?mr("|","text"):mr(t.delim,t.mode),n=new K("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Qw=(t,e)=>{var r=Ti(Ie(t.body,e),e),n=t.label.slice(1),o=e.sizeMultiplier,i,s,a=Mn(t.body);if(n==="sout")i=j(["katex-stretchy","katex-sout"]),i.height=e.fontMetrics().defaultRuleThickness/o,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=et({number:.6,unit:"pt"},e),c=et({number:.35,unit:"ex"},e),u=e.havingBaseSizing();o=o/u.sizeMultiplier;var f=r.height+r.depth+l+c;r.style.paddingLeft=Z(f/2+l);var p=Math.floor(1e3*f*o),v=Ub(p),b=new Mr([new en("phase",v)],{width:"400em",height:Z(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});i=ro(["hide-tail"],[b],e),i.style.height=Z(f),s=r.depth+l+c}else{/cancel/.test(n)?a||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var w,g,x=0;/box/.test(n)?(x=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),w=e.fontMetrics().fboxsep+(n==="colorbox"?0:x),g=w):n==="angl"?(x=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),w=4*x,g=Math.max(0,.25-r.depth)):(w=a?.2:0,g=w),i=Ew(r,n,w,g,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=Z(x)):n==="angl"&&x!==.049&&(i.style.borderTopWidth=Z(x),i.style.borderRightWidth=Z(x)),s=r.depth+g,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var k;if(t.backgroundColor)k=De({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]});else{var T=/cancel|phase/.test(n)?["svg-align"]:[];k=De({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:T}]})}return/cancel/.test(n)&&(k.height=r.height,k.depth=r.depth),/cancel/.test(n)&&!a?j(["mord","cancel-lap"],[k],e):j(["mord"],[k],e)},ex=(t,e)=>{var r,n=new K(t.label.includes("colorbox")?"mpadded":"menclose",[ze(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var o=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+Z(o)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};te({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(t,e,r){var n=t.parser,o=t.funcName,i=we(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:o,backgroundColor:i,body:s}},htmlBuilder:Qw,mathmlBuilder:ex});te({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(t,e,r){var n=t.parser,o=t.funcName,i=we(e[0],"color-token").color,s=we(e[1],"color-token").color,a=e[2];return{type:"enclose",mode:n.mode,label:o,backgroundColor:s,borderColor:i,body:a}}});te({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});te({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName,o=e[0];return{type:"enclose",mode:r.mode,label:n,body:o}}});te({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var o=e[0];return{type:"enclose",mode:r.mode,label:n,body:o}}});te({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var R3={};function tn(t){for(var e=t.type,r=t.names,n=t.props,o=t.handler,i=t.htmlBuilder,s=t.mathmlBuilder,a={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},l=0;l<r.length;++l)R3[r[l]]=a;i&&(ea[e]=i),s&&(ta[e]=s)}var P3={};function y(t,e){P3[t]=e}var Ut=class t{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new t(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}},er=class t{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new t(r,Ut.range(this,e))}};function U5(t){var e=[];t.consumeSpaces();var r=t.fetch().text;for(r==="\\relax"&&(t.consume(),t.consumeSpaces(),r=t.fetch().text);r==="\\hline"||r==="\\hdashline";)t.consume(),e.push(r==="\\hdashline"),t.consumeSpaces(),r=t.fetch().text;return e}var C0=t=>{var e=t.parser.settings;if(!e.displayMode)throw new G("{"+t.envName+"} can be used only in display mode.")},tx=new Set(["gather","gather*"]);function l1(t){if(!t.includes("ed"))return!t.includes("*")}function oo(t,e,r){var n=e.hskipBeforeAndAfter,o=e.addJot,i=e.cols,s=e.arraystretch,a=e.colSeparationType,l=e.autoTag,c=e.singleRow,u=e.emptySingleRow,f=e.maxNumCols,p=e.leqno;if(t.gullet.beginGroup(),c||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var v=t.gullet.expandMacroAsText("\\arraystretch");if(v==null)s=1;else if(s=parseFloat(v),!s||s<0)throw new G("Invalid \\arraystretch: "+v)}t.gullet.beginGroup();var b=[],w=[b],g=[],x=[],k=l!=null?[]:void 0;function T(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function O(){k&&(t.gullet.macros.get("\\df@tag")?(k.push(t.subparse([new er("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):k.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(T(),x.push(U5(t));;){var N=t.parseExpression(!1,c?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var D={type:"ordgroup",mode:t.mode,body:N};r&&(D={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[D]}),b.push(D);var $=t.fetch().text;if($==="&"){if(f&&b.length===f){if(c||a)throw new G("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if($==="\\end"){O(),b.length===1&&D.type==="styling"&&D.body.length===1&&D.body[0].type==="ordgroup"&&D.body[0].body.length===0&&(w.length>1||!u)&&w.pop(),x.length<w.length+1&&x.push([]);break}else if($==="\\\\"){t.consume();var I=void 0;t.gullet.future().text!==" "&&(I=t.parseSizeGroup(!0)),g.push(I?I.value:null),O(),x.push(U5(t)),b=[],w.push(b),T()}else throw new G("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:o,arraystretch:s,body:w,cols:i,rowGaps:g,hskipBeforeAndAfter:n,hLinesBeforeRow:x,colSeparationType:a,tags:k,leqno:p}}function c1(t){return t.slice(0,1)==="d"?"display":"text"}var rn=function(e,r){var n,o,i=e.body.length,s=e.hLinesBeforeRow,a=0,l=new Array(i),c=[],u=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),f=1/r.fontMetrics().ptPerEm,p=5*f;if(e.colSeparationType&&e.colSeparationType==="small"){var v=r.havingStyle(pe.SCRIPT).sizeMultiplier;p=.2778*(v/r.sizeMultiplier)}var b=e.colSeparationType==="CD"?et({number:3,unit:"ex"},r):12*f,w=3*f,g=e.arraystretch*b,x=.7*g,k=.3*g,T=0;function O(ge){for(var ke=0;ke<ge.length;++ke)ke>0&&(T+=.25),c.push({pos:T,isDashed:ge[ke]})}for(O(s[0]),n=0;n<e.body.length;++n){var N=e.body[n],D=x,$=k;a<N.length&&(a=N.length);var I={cells:new Array(N.length),height:0,depth:0,pos:0};for(o=0;o<N.length;++o){var L=Ie(N[o],r);$<L.depth&&($=L.depth),D<L.height&&(D=L.height),I.cells[o]=L}var W=e.rowGaps[n],ie=0;W&&(ie=et(W,r),ie>0&&(ie+=k,$<ie&&($=ie),ie=0)),e.addJot&&n<e.body.length-1&&($+=w),I.height=D,I.depth=$,T+=D,I.pos=T,T+=$+ie,l[n]=I,O(s[n+1])}var B=T/2+r.fontMetrics().axisHeight,ye=e.cols||[],Ae=[],Fe,Me,Se=[];if(e.tags&&e.tags.some(ge=>ge))for(n=0;n<i;++n){var be=l[n],kt=be.pos-B,Mt=e.tags[n],gt=void 0;Mt===!0?gt=j(["eqn-num"],[],r):Mt===!1?gt=j([],[],r):gt=j([],ht(Mt,r,!0),r),gt.depth=be.depth,gt.height=be.height,Se.push({type:"elem",elem:gt,shift:kt})}for(o=0,Me=0;o<a||Me<ye.length;++o,++Me){for(var Nt,Ye=ye[Me],Ir=!0;((vo=Ye)==null?void 0:vo.type)==="separator";){var vo;if(Ir||(Fe=j(["arraycolsep"],[]),Fe.style.width=Z(r.fontMetrics().doubleRuleSep),Ae.push(Fe)),Ye.separator==="|"||Ye.separator===":"){var Uo=Ye.separator==="|"?"solid":"dashed",Ot=j(["vertical-separator"],[],r);Ot.style.height=Z(T),Ot.style.borderRightWidth=Z(u),Ot.style.borderRightStyle=Uo,Ot.style.margin="0 "+Z(-u/2);var Lr=T-B;Lr&&(Ot.style.verticalAlign=Z(-Lr)),Ae.push(Ot)}else throw new G("Invalid separator type: "+Ye.separator);Me++,Ye=ye[Me],Ir=!1}if(!(o>=a)){var jt=void 0;if(o>0||e.hskipBeforeAndAfter){var Pn,sr;jt=(Pn=(sr=Ye)==null?void 0:sr.pregap)!=null?Pn:p,jt!==0&&(Fe=j(["arraycolsep"],[]),Fe.style.width=Z(jt),Ae.push(Fe))}var cn=[];for(n=0;n<i;++n){var wr=l[n],_=wr.cells[o];if(_){var A=wr.pos-B;_.depth=wr.depth,_.height=wr.height,cn.push({type:"elem",elem:_,shift:A})}}var P=De({positionType:"individualShift",children:cn}),U=j(["col-align-"+(((Nt=Ye)==null?void 0:Nt.align)||"c")],[P]);if(Ae.push(U),o<a-1||e.hskipBeforeAndAfter){var H,z;jt=(H=(z=Ye)==null?void 0:z.postgap)!=null?H:p,jt!==0&&(Fe=j(["arraycolsep"],[]),Fe.style.width=Z(jt),Ae.push(Fe))}}}var J=j(["mtable"],Ae);if(c.length>0){for(var X=Ei("katex-hline",r,u),Y=Ei("katex-hdashline",r,u),F=[{type:"elem",elem:J,shift:0}];c.length>0;){var se=c.pop(),ee=se.pos-B;se.isDashed?F.push({type:"elem",elem:Y,shift:ee}):F.push({type:"elem",elem:X,shift:ee})}J=De({positionType:"individualShift",children:F})}if(Se.length===0)return j(["mord"],[J],r);var oe=De({positionType:"individualShift",children:Se}),ue=j(["katex-tag"],[oe],r);return On([J,ue])},rx={c:"center ",l:"left ",r:"right "},nn=function(e,r){for(var n=[],o=new K("mtd",[],["mtr-glue"]),i=new K("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var a=e.body[s],l=[],c=0;c<a.length;c++)l.push(new K("mtd",[ze(a[c],r)]));e.tags&&e.tags[s]&&(l.unshift(o),l.push(o),e.leqno?l.unshift(i):l.push(i)),n.push(new K("mtr",l))}var u=new K("mtable",n),f=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",Z(f));var p="",v="";if(e.cols&&e.cols.length>0){var b=e.cols,w="",g=!1,x=0,k=b.length;b[0].type==="separator"&&(p+="top ",x=1),b[b.length-1].type==="separator"&&(p+="bottom ",k-=1);for(var T=x;T<k;T++){var O=b[T];O.type==="align"?(v+=rx[O.align],g&&(w+="none "),g=!0):O.type==="separator"&&g&&(w+=O.separator==="|"?"solid ":"dashed ",g=!1)}u.setAttribute("columnalign",v.trim()),/[sd]/.test(w)&&u.setAttribute("columnlines",w.trim())}if(e.colSeparationType==="align"){for(var N=e.cols||[],D="",$=1;$<N.length;$++)D+=$%2?"0em ":"1em ";u.setAttribute("columnspacing",D.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var I="",L=e.hLinesBeforeRow;p+=L[0].length>0?"left ":"",p+=L[L.length-1].length>0?"right ":"";for(var W=1;W<L.length-1;W++)I+=L[W].length===0?"none ":L[W][0]?"dashed ":"solid ";return/[sd]/.test(I)&&u.setAttribute("rowlines",I.trim()),p!==""&&(u=new K("menclose",[u]),u.setAttribute("notation",p.trim())),e.arraystretch&&e.arraystretch<1&&(u=new K("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},B3=function(e,r){e.envName.includes("ed")||C0(e);var n=[],o=e.envName==="split",i=oo(e.parser,{cols:n,addJot:!0,autoTag:o?void 0:l1(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes("at")?"alignat":"align",maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,a=0,l={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){var c="Number of columns should be a positive integer",u=s1(r[0],c);if(!/^[0-9]+$/.test(u)||Number(u)<1)throw new G(c,r[0]);s=Number(u),a=s*2}var f=!a;i.body.forEach(function(w){for(var g=1;g<w.length;g+=2){var x=we(w[g],"styling"),k=we(x.body[0],"ordgroup");k.body.unshift(l)}if(f)a<w.length&&(a=w.length);else{var T=w.length/2;if(s<T)throw new G("Too many math in a row: "+("expected "+s+", but got "+T),w[0])}});for(var p=0;p<a;++p){var v="r",b=0;p%2===1?v="l":p>0&&f&&(b=1),n[p]={type:"align",align:v,pregap:b,postgap:0}}return i.colSeparationType=f?"align":"alignat",i};tn({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=x0(e[0]),n=r?[e[0]]:we(e[0],"ordgroup").body,o=n.map(function(s){var a=w0(s),l=a.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new G("Unknown column alignment: "+l,s)}),i={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return oo(t.parser,i,c1(t.envName))},htmlBuilder:rn,mathmlBuilder:nn});tn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var o=t.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),r=o.fetch().text,!"lcr".includes(r))throw new G("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),n.cols=[{type:"align",align:r}]}}var i=oo(t.parser,n,c1(t.envName)),s=Math.max(0,...i.body.map(a=>a.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:rn,mathmlBuilder:nn});tn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=oo(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:rn,mathmlBuilder:nn});tn({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=x0(e[0]),n=r?[e[0]]:we(e[0],"ordgroup").body,o=n.map(function(a){var l=w0(a),c=l.text;if("lc".includes(c))return{type:"align",align:c};throw new G("Unknown column alignment: "+c,a)});if(o.length>1)throw new G("{subarray} can contain only one column");var i={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5},s=oo(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new G("{subarray} can contain only one column");return s},htmlBuilder:rn,mathmlBuilder:nn});tn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=oo(t.parser,e,c1(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:rn,mathmlBuilder:nn});tn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:B3,htmlBuilder:rn,mathmlBuilder:nn});tn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){tx.has(t.envName)&&C0(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:l1(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return oo(t.parser,e,"display")},htmlBuilder:rn,mathmlBuilder:nn});tn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:B3,htmlBuilder:rn,mathmlBuilder:nn});tn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){C0(t);var e={autoTag:l1(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return oo(t.parser,e,"display")},htmlBuilder:rn,mathmlBuilder:nn});tn({type:"array",names:["CD"],props:{numArgs:0},handler(t){return C0(t),Hw(t.parser)},htmlBuilder:rn,mathmlBuilder:nn});y("\\nonumber","\\gdef\\@eqnsw{0}");y("\\notag","\\nonumber");te({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(t,e){throw new G(t.funcName+" valid only within array environment")}});var W5=R3;te({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(t,e){var r=t.parser,n=t.funcName,o=e[0];if(o.type!=="ordgroup")throw new G("Invalid environment name",o);var i=s1(o,"Environment name should contain only text characters and spaces",!0);if(n==="\\begin"){if(!Object.prototype.hasOwnProperty.call(W5,i))throw new G("No such environment: "+i,o);var s=W5[i],a=r.parseArguments("\\begin{"+i+"}",s),l=a.args,c=a.optArgs,u={mode:r.mode,envName:i,parser:r},f=s.handler(u,l,c);r.expect("\\end",!1);var p=r.nextToken,v=we(r.parseFunction(),"environment");if(v.name!==i)throw new G("Mismatch: \\begin{"+i+"} matched by \\end{"+v.name+"}",p);return f}return{type:"environment",mode:r.mode,name:i,nameGroup:o}}});var nx=(t,e)=>{var r=t.font,n=e.withFont(r);return Ie(t.body,n)},ox=(t,e)=>{var r=t.font,n=e.withFont(r);return ze(t.body,n)},j5={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};te({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,o=ra(e[0]),i=n in j5?j5[n]:n;return{type:"font",mode:r.mode,font:i.slice(1),body:o}},htmlBuilder:nx,mathmlBuilder:ox});te({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"mclass",mode:r.mode,mclass:k0(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Mn(n)}}});te({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,o=t.breakOnTokenText,i=r.mode,s=r.parseExpression(!0,o);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}}});var ix=(t,e)=>{var r=e.style,n=r.fracNum(),o=r.fracDen(),i;i=e.havingStyle(n);var s=Ie(t.numer,i,e);if(t.continued){var a=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height<a?a:s.height,s.depth=s.depth<l?l:s.depth}i=e.havingStyle(o);var c=Ie(t.denom,i,e),u,f,p;t.hasBarLine?(t.barSize?(f=et(t.barSize,e),u=Ei("frac-line",e,f)):u=Ei("frac-line",e),f=u.height,p=u.height):(u=null,f=0,p=e.fontMetrics().defaultRuleThickness);var v,b,w;r.size===pe.DISPLAY.size?(v=e.fontMetrics().num1,f>0?b=3*p:b=7*p,w=e.fontMetrics().denom1):(f>0?(v=e.fontMetrics().num2,b=p):(v=e.fontMetrics().num3,b=3*p),w=e.fontMetrics().denom2);var g;if(u){var k=e.fontMetrics().axisHeight;v-s.depth-(k+.5*f)<b&&(v+=b-(v-s.depth-(k+.5*f))),k-.5*f-(c.height-w)<b&&(w+=b-(k-.5*f-(c.height-w)));var T=-(k-.5*f);g=De({positionType:"individualShift",children:[{type:"elem",elem:c,shift:w},{type:"elem",elem:u,shift:T},{type:"elem",elem:s,shift:-v}]})}else{var x=v-s.depth-(c.height-w);x<b&&(v+=.5*(b-x),w+=.5*(b-x)),g=De({positionType:"individualShift",children:[{type:"elem",elem:c,shift:w},{type:"elem",elem:s,shift:-v}]})}i=e.havingStyle(r),g.height*=i.sizeMultiplier/e.sizeMultiplier,g.depth*=i.sizeMultiplier/e.sizeMultiplier;var O;r.size===pe.DISPLAY.size?O=e.fontMetrics().delim1:r.size===pe.SCRIPTSCRIPT.size?O=e.havingStyle(pe.SCRIPT).fontMetrics().delim2:O=e.fontMetrics().delim2;var N,D;return t.leftDelim==null?N=na(e,["mopen"]):N=Kd(t.leftDelim,O,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?D=j([]):t.rightDelim==null?D=na(e,["mclose"]):D=Kd(t.rightDelim,O,!0,e.havingStyle(r),t.mode,["mclose"]),j(["mord"].concat(i.sizingClasses(e)),[N,j(["mfrac"],[g]),D],e)},sx=(t,e)=>{var r=new K("mfrac",[ze(t.numer,e),ze(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=et(t.barSize,e);r.setAttribute("linethickness",Z(n))}if(t.leftDelim!=null||t.rightDelim!=null){var o=[];if(t.leftDelim!=null){var i=new K("mo",[new ot(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),o.push(i)}if(o.push(r),t.rightDelim!=null){var s=new K("mo",[new ot(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}return o1(o)}return r},V3=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};te({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,o=e[0],i=e[1],s,a=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,a="(",l=")";break;case"\\\\bracefrac":s=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var c=n==="\\cfrac",u=null;return c||n.startsWith("\\d")?u="display":n.startsWith("\\t")&&(u="text"),V3({type:"genfrac",mode:r.mode,numer:o,denom:i,continued:c,hasBarLine:s,leftDelim:a,rightDelim:l,barSize:null},u)},htmlBuilder:ix,mathmlBuilder:sx});te({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(t){var e=t.parser,r=t.funcName,n=t.token,o;switch(r){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:o,token:n}}});var G5=["display","text","script","scriptscript"],K5=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};te({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(t,e){var r=t.parser,n=e[4],o=e[5],i=ra(e[0]),s=i.type==="atom"&&i.family==="open"?K5(i.text):null,a=ra(e[1]),l=a.type==="atom"&&a.family==="close"?K5(a.text):null,c=we(e[2],"size"),u,f=null;c.isBlank?u=!0:(f=c.value,u=f.number>0);var p=null,v=e[3];if(v.type==="ordgroup"){if(v.body.length>0){var b=we(v.body[0],"textord");p=G5[Number(b.text)]}}else v=we(v,"textord"),p=G5[Number(v.text)];return V3({type:"genfrac",mode:r.mode,numer:n,denom:o,continued:!1,hasBarLine:u,barSize:f,leftDelim:s,rightDelim:l},p)}});te({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(t,e){var r=t.parser;t.funcName;var n=t.token;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:we(e[0],"size").value,token:n}}});te({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(t,e)=>{var r=t.parser;t.funcName;var n=e[0],o=we(e[1],"infix").size;if(!o)throw new Error("\\\\abovefrac expected size, but got "+String(o));var i=e[2],s=o.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:s,barSize:o,leftDelim:null,rightDelim:null}}});var H3=(t,e)=>{var r=e.style,n,o;t.type==="supsub"?(n=t.sup?Ie(t.sup,e.havingStyle(r.sup()),e):Ie(t.sub,e.havingStyle(r.sub()),e),o=we(t.base,"horizBrace")):o=we(t,"horizBrace");var i=Ie(o.base,e.havingBaseStyle(pe.DISPLAY)),s=b0(o,e),a;if(o.isOver?a=De({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):a=De({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),n){var l=j(["minner",o.isOver?"mover":"munder"],[a],e);o.isOver?a=De({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):a=De({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return j(["minner",o.isOver?"mover":"munder"],[a],e)},ax=(t,e)=>{var r=y0(t.label);return new K(t.isOver?"mover":"munder",[ze(t.base,e),r])};te({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:H3,mathmlBuilder:ax});te({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[1],o=we(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:r.mode,href:o,body:ct(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=ht(t.body,e,!1);return cw(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=no(t.body,e);return r instanceof K||(r=new K("mrow",[r])),r.setAttribute("href",t.href),r}});te({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=we(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var o=[],i=0;i<n.length;i++){var s=n[i];s==="~"&&(s="\\textasciitilde"),o.push({type:"textord",mode:"text",text:s})}var a={type:"text",mode:r.mode,font:"\\texttt",body:o};return{type:"href",mode:r.mode,href:n,body:ct(a)}}});te({type:"hbox",names:["\\hbox"],numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0,handler(t,e){var r=t.parser;return{type:"hbox",mode:r.mode,body:ct(e[0])}},htmlBuilder(t,e){var r=ht(t.body,e.withFont(""),!1);return On(r)},mathmlBuilder(t,e){return new K("mrow",rr(t.body,e.withFont("")))}});te({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],numArgs:2,argTypes:["raw","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName;t.token;var o=we(e[0],"raw").string,i=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,a={};switch(n){case"\\htmlClass":a.class=o,s={command:"\\htmlClass",class:o};break;case"\\htmlId":a.id=o,s={command:"\\htmlId",id:o};break;case"\\htmlStyle":a.style=o,s={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var l="{,}",c=[],u="",f=0;f<o.length;f++)o.startsWith(l,f)?(u+=",",f+=l.length-1):o[f]===","?(c.push(u),u=""):u+=o[f];c.push(u);for(var p=0;p<c.length;p++){var v=c[p],b=v.indexOf("=");if(b<0)throw new G("\\htmlData key/value '"+v+"' missing equals sign");var w=v.slice(0,b),g=v.slice(b+1);a["data-"+w.trim()]=g}s={command:"\\htmlData",attributes:a};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:a,body:ct(i)}:r.formatUnsupportedCmd(n)},htmlBuilder:(t,e)=>{var r=ht(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var o=j(n,r,e);for(var i of Object.entries(t.attributes)){var s=i[0],a=i[1];s!=="class"&&o.setAttribute(s,a)}return o},mathmlBuilder:(t,e)=>no(t.body,e)});te({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(t,e)=>{var r=t.parser;return{type:"htmlmathml",mode:r.mode,html:ct(e[0]),mathml:ct(e[1])}},htmlBuilder:(t,e)=>{var r=ht(t.html,e,!1);return On(r)},mathmlBuilder:(t,e)=>no(t.mathml,e)});var Nd=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new G("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!c3(n))throw new G("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};te({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(t,e,r)=>{var n=t.parser,o={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},a="";if(r[0])for(var l=we(r[0],"raw").string,c=l.split(","),u=0;u<c.length;u++){var f=c[u].split("=");if(f.length===2){var p=f[1].trim();switch(f[0].trim()){case"alt":a=p;break;case"width":o=Nd(p);break;case"height":i=Nd(p);break;case"totalheight":s=Nd(p);break;default:throw new G("Invalid key: '"+f[0]+"' in \\includegraphics.")}}}var v=we(e[0],"url").url;return a===""&&(a=v,a=a.replace(/^.*[\\/]/,""),a=a.substring(0,a.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:v})?{type:"includegraphics",mode:n.mode,alt:a,width:o,height:i,totalheight:s,src:v}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var r=et(t.height,e),n=0;t.totalheight.number>0&&(n=et(t.totalheight,e)-r);var o=0;t.width.number>0&&(o=et(t.width,e));var i={height:Z(r+n)};o>0&&(i.width=Z(o)),n>0&&(i.verticalAlign=Z(-n));var s=new Rd(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new K("mglyph",[]);r.setAttribute("alt",t.alt);var n=et(t.height,e),o=0;if(t.totalheight.number>0&&(o=et(t.totalheight,e)-n,r.setAttribute("valign",Z(-o))),r.setAttribute("height",Z(n+o)),t.width.number>0){var i=et(t.width,e);r.setAttribute("width",Z(i))}return r.setAttribute("src",t.src),r}});te({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,o=we(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=o.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+o.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:o.value}},htmlBuilder(t,e){return m3(t.dimension,e)},mathmlBuilder(t,e){var r=et(t.dimension,e);return new h0(r)}});te({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,o=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:o}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=j([],[Ie(t.body,e)]),r=j(["katex-inner"],[r],e)):r=j(["katex-inner"],[Ie(t.body,e)]);var n=j(["katex-fix"],[]),o=j([t.alignment],[r,n],e),i=j(["katex-strut"]);return i.style.height=Z(o.height+o.depth),o.depth&&(i.style.verticalAlign=Z(-o.depth)),o.children.unshift(i),o=j(["katex-thinbox"],[o],e),j(["mord","katex-vbox"],[o],e)},mathmlBuilder:(t,e)=>{var r=new K("mpadded",[ze(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});te({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){var r=t.funcName,n=t.parser,o=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(o),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});te({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){throw new G("Mismatched "+t.funcName)}});var Y5=(t,e)=>{switch(e.style.size){case pe.DISPLAY.size:return t.display;case pe.TEXT.size:return t.text;case pe.SCRIPT.size:return t.script;case pe.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};te({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(t,e)=>{var r=t.parser;return{type:"mathchoice",mode:r.mode,display:ct(e[0]),text:ct(e[1]),script:ct(e[2]),scriptscript:ct(e[3])}},htmlBuilder:(t,e)=>{var r=Y5(t,e),n=ht(r,e,!1);return On(n)},mathmlBuilder:(t,e)=>{var r=Y5(t,e);return no(r,e)}});var z3=(t,e,r,n,o,i,s)=>{t=j([],[t]);var a=r&&Mn(r),l,c;if(e){var u=Ie(e,n.havingStyle(o.sup()),n);c={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(r){var f=Ie(r,n.havingStyle(o.sub()),n);l={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-f.height)}}var p;if(c&&l){var v=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;p=De({positionType:"bottom",positionData:v,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Z(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Z(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var b=t.height-s;p=De({positionType:"top",positionData:b,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Z(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(c){var w=t.depth+s;p=De({positionType:"bottom",positionData:w,children:[{type:"elem",elem:t},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Z(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var g=[p];if(l&&i!==0&&!a){var x=j(["mspace"],[],n);x.style.marginRight=Z(i),g.unshift(x)}return j(["mop","op-limits"],g,n)},F3=new Set(["\\smallint"]),$3=(t,e)=>{var r,n,o=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=we(t.base,"op"),o=!0):i=we(t,"op");var s=e.style,a=!1;s.size===pe.DISPLAY.size&&i.symbol&&!F3.has(i.name)&&(a=!0);var l,c;if(i.symbol){var u=a?"Size2-Regular":"Size1-Regular",f="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(f=i.name.slice(1),i.name=f==="oiint"?"\\iint":"\\iiint"),l=Bt(i.name,u,"math",e,["mop","op-symbol",a?"large-op":"small-op"]),c=l.italic,f.length>0){var p=g3(f+"Size"+(a?"2":"1"),e);l=De({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:a?.08:0}]}),i.name="\\"+f,l.classes.unshift("mop"),l.italic=c}}else if(i.body){var v=ht(i.body,e,!0);v.length===1&&v[0]instanceof Ht?(l=v[0],l.classes[0]="mop"):l=j(["mop"],v,e)}else{for(var b=[],w=1;w<i.name.length;w++)b.push(r1(i.name[w],i.mode,e));l=j(["mop"],b,e)}var g=0,x=0;if((l instanceof Ht||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift){var k;g=(l.height-l.depth)/2-e.fontMetrics().axisHeight,x=(k=l.italic)!=null?k:0}return o?z3(l,r,n,e,s,x,g):(g&&(l.style.position="relative",l.style.top=Z(g)),l)},lx=(t,e)=>{var r;if(t.symbol)r=new K("mo",[mr(t.name,t.mode)]),F3.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new K("mo",rr(t.body,e));else{r=new K("mi",[new ot(t.name.slice(1))]);var n=new K("mo",[mr("\u2061","text")]);t.parentIsSupSub?r=new K("mrow",[r,n]):r=w3([r,n])}return r},cx={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};te({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],numArgs:0,handler:(t,e)=>{var r=t.parser,n=t.funcName,o=n;return o.length===1&&(o=cx[o]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:$3,mathmlBuilder:lx});te({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ct(n)}}});var ux={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};te({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}});te({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}});te({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],numArgs:0,allowedInArgument:!0,handler(t){var e=t.parser,r=t.funcName,n=r;return n.length===1&&(n=ux[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var q3=(t,e)=>{var r,n,o=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=we(t.base,"operatorname"),o=!0):i=we(t,"operatorname");var s;if(i.body.length>0){for(var a=i.body.map(f=>{var p="text"in f?f.text:void 0;return typeof p=="string"?{type:"textord",mode:f.mode,text:p}:f}),l=ht(a,e.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof Ht&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=j(["mop"],l,e)}else s=j(["mop"],[],e);return o?z3(s,r,n,e,e.style,0,0):s},dx=(t,e)=>{for(var r=rr(t.body,e.withFont("mathrm")),n=!0,o=0;o<r.length;o++){var i=r[o];if(!(i instanceof h0))if(i instanceof K)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof ot?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var a=r.map(u=>u.toText()).join("");r=[new ot(a)]}var l=new K("mi",r);l.setAttribute("mathvariant","normal");var c=new K("mo",[mr("\u2061","text")]);return t.parentIsSupSub?new K("mrow",[l,c]):w3([l,c])};te({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,o=e[0];return{type:"operatorname",mode:r.mode,body:ct(o),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:q3,mathmlBuilder:dx});y("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Do({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?On(ht(t.body,e,!1)):j(["mord"],ht(t.body,e,!0),e)},mathmlBuilder(t,e){return no(t.body,e,!0)}});te({type:"overline",names:["\\overline"],numArgs:1,handler(t,e){var r=t.parser,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=Ie(t.body,e.havingCrampedStyle()),n=Ei("overline-line",e),o=e.fontMetrics().defaultRuleThickness,i=De({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n},{type:"kern",size:o}]});return j(["mord","katex-overline"],[i],e)},mathmlBuilder(t,e){var r=new K("mo",[new ot("\u203E")]);r.setAttribute("stretchy","true");var n=new K("mover",[ze(t.body,e),r]);return n.setAttribute("accent","true"),n}});te({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"phantom",mode:r.mode,body:ct(n)}},htmlBuilder:(t,e)=>{var r=ht(t.body,e.withPhantom(),!1);return On(r)},mathmlBuilder:(t,e)=>{var r=rr(t.body,e);return new K("mphantom",r)}});y("\\hphantom","\\smash{\\phantom{#1}}");te({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=j(["katex-inner"],[Ie(t.body,e.withPhantom())]),n=j(["katex-fix"],[]);return j(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=rr(ct(t.body),e),n=new K("mphantom",r),o=new K("mpadded",[n]);return o.setAttribute("width","0px"),o}});te({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(t,e){var r=t.parser,n=we(e[0],"size").value,o=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:o}},htmlBuilder(t,e){var r=Ie(t.body,e),n=et(t.dy,e);return De({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new K("mpadded",[ze(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});te({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(t){var e=t.parser;return{type:"internal",mode:e.mode}}});te({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(t,e,r){var n=t.parser,o=r[0],i=we(e[0],"size"),s=we(e[1],"size");return{type:"rule",mode:n.mode,shift:o&&we(o,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=j(["mord","katex-rule"],[],e),n=et(t.width,e),o=et(t.height,e),i=t.shift?et(t.shift,e):0;return r.style.borderRightWidth=Z(n),r.style.borderTopWidth=Z(o),r.style.bottom=Z(i),r.width=n,r.height=o+i,r.depth=-i,r.maxFontSize=o*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=et(t.width,e),n=et(t.height,e),o=t.shift?et(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new K("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",Z(r)),s.setAttribute("height",Z(n));var a=new K("mpadded",[s]);return o>=0?a.setAttribute("height",Z(o)):(a.setAttribute("height",Z(o)),a.setAttribute("depth",Z(-o))),a.setAttribute("voffset",Z(o)),a}});function U3(t,e,r){for(var n=ht(t,e,!1),o=e.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("katex-sizing");s<0?Array.prototype.push.apply(n[i].classes,e.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+e.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=o,n[i].depth*=o}return On(n)}var Z5=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],hx=(t,e)=>{var r=e.havingSize(t.size);return U3(t.body,r,e)};te({type:"sizing",names:Z5,numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.breakOnTokenText,n=t.funcName,o=t.parser,i=o.parseExpression(!1,r);return{type:"sizing",mode:o.mode,size:Z5.indexOf(n)+1,body:i}},htmlBuilder:hx,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=rr(t.body,r),o=new K("mstyle",n);return o.setAttribute("mathsize",Z(r.sizeMultiplier)),o}});te({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(t,e,r)=>{var n=t.parser,o=!1,i=!1,s=r[0]&&we(r[0],"ordgroup");if(s)for(var a,l=0;l<s.body.length;++l){var c=s.body[l];if(a=w0(c).text,a==="t")o=!0;else if(a==="b")i=!0;else{o=!1,i=!1;break}}else o=!0,i=!0;var u=e[0];return{type:"smash",mode:n.mode,body:u,smashHeight:o,smashDepth:i}},htmlBuilder:(t,e)=>{var r=j([],[Ie(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return j(["mord","katex-smash"],[r],e);if(r.children)for(var n=0;n<r.children.length;n++)t.smashHeight&&(r.children[n].height=0),t.smashDepth&&(r.children[n].depth=0);var o=De({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return j(["mord"],[o],e)},mathmlBuilder:(t,e)=>{var r=new K("mpadded",[ze(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});te({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,o=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:o}},htmlBuilder(t,e){var r=Ie(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=Ti(r,e);var n=e.fontMetrics(),o=n.defaultRuleThickness,i=o;e.style.id<pe.TEXT.id&&(i=e.fontMetrics().xHeight);var s=o+i/4,a=r.height+r.depth+s+o,l=Gw(a,e),c=l.span,u=l.ruleWidth,f=l.advanceWidth,p=c.height-u;p>r.height+r.depth+s&&(s=(s+p-r.height-r.depth)/2);var v=c.height-r.height-s-u;r.style.paddingLeft=Z(f);var b=De({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+v)},{type:"elem",elem:c},{type:"kern",size:u}]});if(t.index){var w=e.havingStyle(pe.SCRIPTSCRIPT),g=Ie(t.index,w,e),x=.6*(b.height-b.depth),k=De({positionType:"shift",positionData:-x,children:[{type:"elem",elem:g}]}),T=j(["katex-root"],[k]);return j(["mord","sqrt"],[T,b],e)}else return j(["mord","sqrt"],[b],e)},mathmlBuilder(t,e){var r=t.body,n=t.index;return n?new K("mroot",[ze(r,e),ze(n,e)]):new K("msqrt",[ze(r,e)])}});var Yd={display:pe.DISPLAY,text:pe.TEXT,script:pe.SCRIPT,scriptscript:pe.SCRIPTSCRIPT};function fx(t){return t in Yd}te({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(t,e){var r=t.breakOnTokenText,n=t.funcName,o=t.parser,i=o.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!fx(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:o.mode,style:s,body:i}},htmlBuilder(t,e){var r=Yd[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),U3(t.body,n,e)},mathmlBuilder(t,e){var r=Yd[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var o=rr(t.body,n),i=new K("mstyle",o),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},a=s[t.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});var px=function(e,r){var n=e.base;if(n)if(n.type==="op"){var o=n.limits&&(r.style.size===pe.DISPLAY.size||n.alwaysHandleSupSub);return o?$3:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===pe.DISPLAY.size||n.limits);return i?q3:null}else{if(n.type==="accent")return Mn(n.base)?C3:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?H3:null}else return null}else return null};Do({type:"supsub",htmlBuilder(t,e){var r=px(t,e);if(r)return r(t,e);var n=t.base,o=t.sup,i=t.sub,s=Ie(n,e),a,l,c=e.fontMetrics(),u=0,f=0,p=n&&Mn(n);if(o){var v=e.havingStyle(e.style.sup());a=Ie(o,v,e),p||(u=s.height-v.fontMetrics().supDrop*v.sizeMultiplier/e.sizeMultiplier)}if(i){var b=e.havingStyle(e.style.sub());l=Ie(i,b,e),p||(f=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/e.sizeMultiplier)}var w;e.style===pe.DISPLAY?w=c.sup1:e.style.cramped?w=c.sup3:w=c.sup2;var g=e.sizeMultiplier,x=Z(.5/c.ptPerEm/g),k=null;if(l){var T=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(s instanceof Ht||T){var O;k=Z(-((O=s.italic)!=null?O:0))}}var N;if(a&&l){u=Math.max(u,w,a.depth+.25*c.xHeight),f=Math.max(f,c.sub2);var D=c.defaultRuleThickness,$=4*D;if(u-a.depth-(l.height-f)<$){f=$-(u-a.depth)+l.height;var I=.8*c.xHeight-(u-a.depth);I>0&&(u+=I,f-=I)}var L=[{type:"elem",elem:l,shift:f,marginRight:x,marginLeft:k},{type:"elem",elem:a,shift:-u,marginRight:x}];N=De({positionType:"individualShift",children:L})}else if(l){f=Math.max(f,c.sub1,l.height-.8*c.xHeight);var W=[{type:"elem",elem:l,marginLeft:k,marginRight:x}];N=De({positionType:"shift",positionData:f,children:W})}else if(a)u=Math.max(u,w,a.depth+.25*c.xHeight),N=De({positionType:"shift",positionData:-u,children:[{type:"elem",elem:a,marginRight:x}]});else throw new Error("supsub must have either sup or sub.");var ie=Ud(s,"right")||"mord";return j([ie],[s,j(["msupsub"],[N])],e)},mathmlBuilder(t,e){var r=!1,n,o;t.base&&t.base.type==="horizBrace"&&(o=!!t.sup,o===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[ze(t.base,e)];t.sub&&i.push(ze(t.sub,e)),t.sup&&i.push(ze(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var c=t.base;c&&c.type==="op"&&c.limits&&e.style===pe.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(e.style===pe.DISPLAY||c.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===pe.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===pe.DISPLAY)?s="munder":s="msub"}else{var a=t.base;a&&a.type==="op"&&a.limits&&(e.style===pe.DISPLAY||a.alwaysHandleSupSub)||a&&a.type==="operatorname"&&a.alwaysHandleSupSub&&(a.limits||e.style===pe.DISPLAY)?s="mover":s="msup"}return new K(s,i)}});Do({type:"atom",htmlBuilder(t,e){return r1(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new K("mo",[mr(t.text,t.mode)]);if(t.family==="bin"){var n=i1(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var W3={mi:"italic",mn:"normal",mtext:"normal"};Do({type:"mathord",htmlBuilder(t,e){return g0(t,e)},mathmlBuilder(t,e){var r=new K("mi",[mr(t.text,t.mode,e)]),n=i1(t,e)||"italic";return n!==W3[r.type]&&r.setAttribute("mathvariant",n),r}});Do({type:"textord",htmlBuilder(t,e){return g0(t,e)},mathmlBuilder(t,e){var r=mr(t.text,t.mode,e),n=i1(t,e)||"normal",o;return t.mode==="text"?o=new K("mtext",[r]):/[0-9]/.test(t.text)?o=new K("mn",[r]):t.text==="\\prime"?o=new K("mo",[r]):o=new K("mi",[r]),n!==W3[o.type]&&o.setAttribute("mathvariant",n),o}});var X5=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),J5=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);Do({type:"spacing",htmlBuilder(t,e){var r=J5.get(t.text),n=X5.get(t.text);if(r){var o=r.className||"";if(t.mode==="text"){var i=g0(t,e);return i.classes.push(o),i}else return j(["mspace",o],[r1(t.text,t.mode,e)],e)}else{if(n)return j(["mspace",n],[],e);throw new G('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(J5.has(t.text))r=new K("mtext",[new ot("\xA0")]);else{if(X5.has(t.text))return new K("mspace");throw new G('Unknown type of space "'+t.text+'"')}return r}});var Q5=()=>{var t=new K("mtd",[]);return t.setAttribute("width","50%"),t};Do({type:"tag",mathmlBuilder(t,e){var r=new K("mtable",[new K("mtr",[Q5(),new K("mtd",[no(t.body,e)]),Q5(),new K("mtd",[no(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var e3={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},t3={"\\textbf":"textbf","\\textmd":"textmd"},mx={"\\textit":"textit","\\textup":"textup"},r3=(t,e)=>{var r=t.font;if(r){if(e3[r])return e.withTextFontFamily(e3[r]);if(t3[r])return e.withTextFontWeight(t3[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(mx[r])};te({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,o=e[0];return{type:"text",mode:r.mode,body:ct(o),font:n}},htmlBuilder(t,e){var r=r3(t,e),n=ht(t.body,r,!0);return j(["mord","text"],n,r)},mathmlBuilder(t,e){var r=r3(t,e);return no(t.body,r)}});te({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Ie(t.body,e),n=Ei("underline-line",e),o=e.fontMetrics().defaultRuleThickness,i=De({positionType:"top",positionData:r.height,children:[{type:"kern",size:o},{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r}]});return j(["mord","katex-underline"],[i],e)},mathmlBuilder(t,e){var r=new K("mo",[new ot("\u203E")]);r.setAttribute("stretchy","true");var n=new K("munder",[ze(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});te({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Ie(t.body,e),n=e.fontMetrics().axisHeight,o=.5*(r.height-n-(r.depth+n));return De({positionType:"shift",positionData:o,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new K("mpadded",[ze(t.body,e)],["vcenter"]);return new K("mrow",[r])}});te({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(t,e,r){throw new G("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=n3(t),n=[],o=e.havingStyle(e.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(Bt(s,"Typewriter-Regular",t.mode,o,["mord","texttt"]))}return j(["mord","text"].concat(o.sizingClasses(e)),p3(n),o)},mathmlBuilder(t,e){var r=new ot(n3(t)),n=new K("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var n3=t=>t.body.replace(/ /g,t.star?"\u2423":"\xA0"),Jn=y3,j3=`[ \r
	]`,vx="\\\\[a-zA-Z@]+",gx="\\\\[^\uD800-\uDFFF]",yx="("+vx+")"+j3+"*",bx=`\\\\(
|[ \r	]+
?)[ \r	]*`,Zd="[\u0300-\u036F]",wx=new RegExp(Zd+"+$"),xx="("+j3+"+)|"+(bx+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Zd+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Zd+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+yx)+("|"+gx+")"),p0=class{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(xx,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new er("EOF",new Ut(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new G("Unexpected character: '"+e[r]+"'",new er(e[r],new Ut(this,r,r+1)));var o=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[o]===14){var i=e.indexOf(`
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new er(o,new Ut(this,r,this.tokenRegex.lastIndex))}},Xd=class{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new G("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r of Object.keys(e))e[r]===void 0?delete this.current[r]:this.current[r]=e[r]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:Object.prototype.hasOwnProperty.call(this.builtins,e)?this.builtins[e]:void 0}set(e,r,n){if(n===void 0&&(n=!1),n){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}r==null?delete this.current[e]:this.current[e]=r}},kx=P3;y("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});y("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});y("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});y("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});y("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});y("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");y("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var o3={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};y("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new G("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=o3[e.text],n==null||n>=r)throw new G("Invalid base-"+r+" digit "+e.text);for(var o;(o=o3[t.future().text])!=null&&o<r;)n*=r,n+=o,t.popToken()}return"\\@char{"+n+"}"});var u1=(t,e,r,n)=>{var o=t.consumeArg().tokens;if(o.length!==1)throw new G("\\newcommand's first argument must be a macro name");var i=o[0].text,s=t.isDefined(i);if(s&&!e)throw new G("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new G("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var a=0;if(o=t.consumeArg().tokens,o.length===1&&o[0].text==="["){for(var l="",c=t.expandNextToken();c.text!=="]"&&c.text!=="EOF";)l+=c.text,c=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new G("Invalid number of arguments: "+l);a=parseInt(l),o=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:o,numArgs:a}),""};y("\\newcommand",t=>u1(t,!1,!0,!1));y("\\renewcommand",t=>u1(t,!0,!1,!1));y("\\providecommand",t=>u1(t,!0,!0,!0));y("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});y("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});y("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Jn[r],Ge.math[r],Ge.text[r]),""});y("\\bgroup","{");y("\\egroup","}");y("~","\\nobreakspace");y("\\lq","`");y("\\rq","'");y("\\aa","\\r a");y("\\AA","\\r A");y("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");y("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");y("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");y("\u212C","\\mathscr{B}");y("\u2130","\\mathscr{E}");y("\u2131","\\mathscr{F}");y("\u210B","\\mathscr{H}");y("\u2110","\\mathscr{I}");y("\u2112","\\mathscr{L}");y("\u2133","\\mathscr{M}");y("\u211B","\\mathscr{R}");y("\u212D","\\mathfrak{C}");y("\u210C","\\mathfrak{H}");y("\u2128","\\mathfrak{Z}");y("\\Bbbk","\\Bbb{k}");y("\\llap","\\mathllap{\\textrm{#1}}");y("\\rlap","\\mathrlap{\\textrm{#1}}");y("\\clap","\\mathclap{\\textrm{#1}}");y("\\mathstrut","\\vphantom{(}");y("\\underbar","\\underline{\\text{#1}}");y("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');y("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");y("\\ne","\\neq");y("\u2260","\\neq");y("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");y("\u2209","\\notin");y("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");y("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");y("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");y("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");y("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");y("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");y("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");y("\u27C2","\\perp");y("\u203C","\\mathclose{!\\mkern-0.8mu!}");y("\u220C","\\notni");y("\u231C","\\ulcorner");y("\u231D","\\urcorner");y("\u231E","\\llcorner");y("\u231F","\\lrcorner");y("\xA9","\\copyright");y("\xAE","\\textregistered");y("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');y("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');y("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');y("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');y("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");y("\u22EE","\\vdots");y("\\varGamma","\\mathit{\\Gamma}");y("\\varDelta","\\mathit{\\Delta}");y("\\varTheta","\\mathit{\\Theta}");y("\\varLambda","\\mathit{\\Lambda}");y("\\varXi","\\mathit{\\Xi}");y("\\varPi","\\mathit{\\Pi}");y("\\varSigma","\\mathit{\\Sigma}");y("\\varUpsilon","\\mathit{\\Upsilon}");y("\\varPhi","\\mathit{\\Phi}");y("\\varPsi","\\mathit{\\Psi}");y("\\varOmega","\\mathit{\\Omega}");y("\\substack","\\begin{subarray}{c}#1\\end{subarray}");y("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");y("\\boxed","\\fbox{$\\displaystyle{#1}$}");y("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");y("\\implies","\\DOTSB\\;\\Longrightarrow\\;");y("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");y("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");y("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var i3={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},_x=new Set(["bin","rel"]);y("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in i3?e=i3[r]:(r.slice(0,4)==="\\not"||r in Ge.math&&_x.has(Ge.math[r].group))&&(e="\\dotsb"),e});var d1={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};y("\\dotso",function(t){var e=t.future().text;return e in d1?"\\ldots\\,":"\\ldots"});y("\\dotsc",function(t){var e=t.future().text;return e in d1&&e!==","?"\\ldots\\,":"\\ldots"});y("\\cdots",function(t){var e=t.future().text;return e in d1?"\\@cdots\\,":"\\@cdots"});y("\\dotsb","\\cdots");y("\\dotsm","\\cdots");y("\\dotsi","\\!\\cdots");y("\\dotsx","\\ldots\\,");y("\\DOTSI","\\relax");y("\\DOTSB","\\relax");y("\\DOTSX","\\relax");y("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");y("\\,","\\tmspace+{3mu}{.1667em}");y("\\thinspace","\\,");y("\\>","\\mskip{4mu}");y("\\:","\\tmspace+{4mu}{.2222em}");y("\\medspace","\\:");y("\\;","\\tmspace+{5mu}{.2777em}");y("\\thickspace","\\;");y("\\!","\\tmspace-{3mu}{.1667em}");y("\\negthinspace","\\!");y("\\negmedspace","\\tmspace-{4mu}{.2222em}");y("\\negthickspace","\\tmspace-{5mu}{.277em}");y("\\enspace","\\kern.5em ");y("\\enskip","\\hskip.5em\\relax");y("\\quad","\\hskip1em\\relax");y("\\qquad","\\hskip2em\\relax");y("\\tag","\\@ifstar\\tag@literal\\tag@paren");y("\\tag@paren","\\tag@literal{({#1})}");y("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new G("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});y("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");y("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");y("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");y("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");y("\\newline","\\\\\\relax");y("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var G3=Z(Qr["Main-Regular"][84][1]-.7*Qr["Main-Regular"][65][1]);y("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+G3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");y("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+G3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");y("\\hspace","\\@ifstar\\@hspacer\\@hspace");y("\\@hspace","\\hskip #1\\relax");y("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");y("\\ordinarycolon",":");y("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");y("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');y("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');y("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');y("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');y("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');y("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');y("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');y("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');y("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');y("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');y("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');y("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');y("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');y("\u2237","\\dblcolon");y("\u2239","\\eqcolon");y("\u2254","\\coloneqq");y("\u2255","\\eqqcolon");y("\u2A74","\\Coloneqq");y("\\ratio","\\vcentcolon");y("\\coloncolon","\\dblcolon");y("\\colonequals","\\coloneqq");y("\\coloncolonequals","\\Coloneqq");y("\\equalscolon","\\eqqcolon");y("\\equalscoloncolon","\\Eqqcolon");y("\\colonminus","\\coloneq");y("\\coloncolonminus","\\Coloneq");y("\\minuscolon","\\eqcolon");y("\\minuscoloncolon","\\Eqcolon");y("\\coloncolonapprox","\\Colonapprox");y("\\coloncolonsim","\\Colonsim");y("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");y("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");y("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");y("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");y("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");y("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");y("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");y("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");y("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");y("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");y("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");y("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");y("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");y("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");y("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");y("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");y("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");y("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");y("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");y("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");y("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");y("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");y("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");y("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");y("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");y("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");y("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");y("\\imath","\\html@mathml{\\@imath}{\u0131}");y("\\jmath","\\html@mathml{\\@jmath}{\u0237}");y("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");y("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");y("\u27E6","\\llbracket");y("\u27E7","\\rrbracket");y("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");y("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");y("\u2983","\\lBrace");y("\u2984","\\rBrace");y("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");y("\u29B5","\\minuso");y("\\darr","\\downarrow");y("\\dArr","\\Downarrow");y("\\Darr","\\Downarrow");y("\\lang","\\langle");y("\\rang","\\rangle");y("\\uarr","\\uparrow");y("\\uArr","\\Uparrow");y("\\Uarr","\\Uparrow");y("\\N","\\mathbb{N}");y("\\R","\\mathbb{R}");y("\\Z","\\mathbb{Z}");y("\\alef","\\aleph");y("\\alefsym","\\aleph");y("\\Alpha","\\mathrm{A}");y("\\Beta","\\mathrm{B}");y("\\bull","\\bullet");y("\\Chi","\\mathrm{X}");y("\\clubs","\\clubsuit");y("\\cnums","\\mathbb{C}");y("\\Complex","\\mathbb{C}");y("\\Dagger","\\ddagger");y("\\diamonds","\\diamondsuit");y("\\empty","\\emptyset");y("\\Epsilon","\\mathrm{E}");y("\\Eta","\\mathrm{H}");y("\\exist","\\exists");y("\\harr","\\leftrightarrow");y("\\hArr","\\Leftrightarrow");y("\\Harr","\\Leftrightarrow");y("\\hearts","\\heartsuit");y("\\image","\\Im");y("\\infin","\\infty");y("\\Iota","\\mathrm{I}");y("\\isin","\\in");y("\\Kappa","\\mathrm{K}");y("\\larr","\\leftarrow");y("\\lArr","\\Leftarrow");y("\\Larr","\\Leftarrow");y("\\lrarr","\\leftrightarrow");y("\\lrArr","\\Leftrightarrow");y("\\Lrarr","\\Leftrightarrow");y("\\Mu","\\mathrm{M}");y("\\natnums","\\mathbb{N}");y("\\Nu","\\mathrm{N}");y("\\Omicron","\\mathrm{O}");y("\\plusmn","\\pm");y("\\rarr","\\rightarrow");y("\\rArr","\\Rightarrow");y("\\Rarr","\\Rightarrow");y("\\real","\\Re");y("\\reals","\\mathbb{R}");y("\\Reals","\\mathbb{R}");y("\\Rho","\\mathrm{P}");y("\\sdot","\\cdot");y("\\sect","\\S");y("\\spades","\\spadesuit");y("\\sub","\\subset");y("\\sube","\\subseteq");y("\\supe","\\supseteq");y("\\Tau","\\mathrm{T}");y("\\thetasym","\\vartheta");y("\\weierp","\\wp");y("\\Zeta","\\mathrm{Z}");y("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");y("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");y("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");y("\\bra","\\mathinner{\\langle{#1}|}");y("\\ket","\\mathinner{|{#1}\\rangle}");y("\\braket","\\mathinner{\\langle{#1}\\rangle}");y("\\Bra","\\left\\langle#1\\right|");y("\\Ket","\\left|#1\\right\\rangle");var K3=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,o=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),a=e.macros.get("\\|");e.macros.beginGroup();var l=f=>p=>{t&&(p.macros.set("|",s),o.length&&p.macros.set("\\|",a));var v=f;if(!f&&o.length){var b=p.future();b.text==="|"&&(p.popToken(),v=!0)}return{tokens:v?o:n,numArgs:0}};e.macros.set("|",l(!1)),o.length&&e.macros.set("\\|",l(!0));var c=e.consumeArg().tokens,u=e.expandTokens([...i,...c,...r]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};y("\\bra@ket",K3(!1));y("\\bra@set",K3(!0));y("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");y("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");y("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");y("\\angln","{\\angl n}");y("\\blue","\\textcolor{##6495ed}{#1}");y("\\orange","\\textcolor{##ffa500}{#1}");y("\\pink","\\textcolor{##ff00af}{#1}");y("\\red","\\textcolor{##df0030}{#1}");y("\\green","\\textcolor{##28ae7b}{#1}");y("\\gray","\\textcolor{gray}{#1}");y("\\purple","\\textcolor{##9d38bd}{#1}");y("\\blueA","\\textcolor{##ccfaff}{#1}");y("\\blueB","\\textcolor{##80f6ff}{#1}");y("\\blueC","\\textcolor{##63d9ea}{#1}");y("\\blueD","\\textcolor{##11accd}{#1}");y("\\blueE","\\textcolor{##0c7f99}{#1}");y("\\tealA","\\textcolor{##94fff5}{#1}");y("\\tealB","\\textcolor{##26edd5}{#1}");y("\\tealC","\\textcolor{##01d1c1}{#1}");y("\\tealD","\\textcolor{##01a995}{#1}");y("\\tealE","\\textcolor{##208170}{#1}");y("\\greenA","\\textcolor{##b6ffb0}{#1}");y("\\greenB","\\textcolor{##8af281}{#1}");y("\\greenC","\\textcolor{##74cf70}{#1}");y("\\greenD","\\textcolor{##1fab54}{#1}");y("\\greenE","\\textcolor{##0d923f}{#1}");y("\\goldA","\\textcolor{##ffd0a9}{#1}");y("\\goldB","\\textcolor{##ffbb71}{#1}");y("\\goldC","\\textcolor{##ff9c39}{#1}");y("\\goldD","\\textcolor{##e07d10}{#1}");y("\\goldE","\\textcolor{##a75a05}{#1}");y("\\redA","\\textcolor{##fca9a9}{#1}");y("\\redB","\\textcolor{##ff8482}{#1}");y("\\redC","\\textcolor{##f9685d}{#1}");y("\\redD","\\textcolor{##e84d39}{#1}");y("\\redE","\\textcolor{##bc2612}{#1}");y("\\maroonA","\\textcolor{##ffbde0}{#1}");y("\\maroonB","\\textcolor{##ff92c6}{#1}");y("\\maroonC","\\textcolor{##ed5fa6}{#1}");y("\\maroonD","\\textcolor{##ca337c}{#1}");y("\\maroonE","\\textcolor{##9e034e}{#1}");y("\\purpleA","\\textcolor{##ddd7ff}{#1}");y("\\purpleB","\\textcolor{##c6b9fc}{#1}");y("\\purpleC","\\textcolor{##aa87ff}{#1}");y("\\purpleD","\\textcolor{##7854ab}{#1}");y("\\purpleE","\\textcolor{##543b78}{#1}");y("\\mintA","\\textcolor{##f5f9e8}{#1}");y("\\mintB","\\textcolor{##edf2df}{#1}");y("\\mintC","\\textcolor{##e0e5cc}{#1}");y("\\grayA","\\textcolor{##f6f7f7}{#1}");y("\\grayB","\\textcolor{##f0f1f2}{#1}");y("\\grayC","\\textcolor{##e3e5e6}{#1}");y("\\grayD","\\textcolor{##d6d8da}{#1}");y("\\grayE","\\textcolor{##babec2}{#1}");y("\\grayF","\\textcolor{##888d93}{#1}");y("\\grayG","\\textcolor{##626569}{#1}");y("\\grayH","\\textcolor{##3b3e40}{#1}");y("\\grayI","\\textcolor{##21242c}{#1}");y("\\kaBlue","\\textcolor{##314453}{#1}");y("\\kaGreen","\\textcolor{##71B307}{#1}");var Y3={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Jd=class{constructor(e,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new Xd(kx,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new p0(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,n,o;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken();var i=this.consumeArg(["]"]);o=i.tokens,n=i.end}else{var s=this.consumeArg();o=s.tokens,r=s.start,n=s.end}return this.pushToken(new er("EOF",n.loc)),this.pushTokens(o),new er("",Ut.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var o=this.future(),i,s=0,a=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new G("Extra }",i)}else if(i.text==="EOF")throw new G("Unexpected end of input in a macro argument, expected '"+(e&&n?e[a]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[a]==="{")&&i.text===e[a]){if(++a,a===e.length){r.splice(-a,a);break}}else a=0}while(s!==0||n);return o.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:o,end:i}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new G("The length of delimiters doesn't match the number of args!");for(var n=r[0],o=0;o<n.length;o++){var i=this.popToken();if(n[o]!==i.text)throw new G("Use of the macro doesn't match its definition",i)}}for(var s=[],a=0;a<e;a++)s.push(this.consumeArg(r&&r[a+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new G("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,o=r.noexpand?null:this._getExpansion(n);if(o==null||e&&o.unexpandable){if(e&&o==null&&n[0]==="\\"&&!this.isDefined(n))throw new G("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=o.tokens,s=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){i=i.slice();for(var a=i.length-1;a>=0;--a){var l=i[a];if(l.text==="#"){if(a===0)throw new G("Incomplete placeholder at end of macro body",l);if(l=i[--a],l.text==="#")i.splice(a+1,1);else if(/^[1-9]$/.test(l.text))i.splice(a,2,...s[+l.text-1]);else throw new G("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new er(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var o=this.stack.pop();o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),r.push(o)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var o=typeof r=="function"?r(this):r;if(typeof o=="string"){var i=0;if(o.includes("#"))for(var s=o.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var a=new p0(o,this.settings),l=[],c=a.lex();c.text!=="EOF";)l.push(c),c=a.lex();l.reverse();var u={tokens:l,numArgs:i};return u}return o}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(Jn,e)||Object.prototype.hasOwnProperty.call(Ge.math,e)||Object.prototype.hasOwnProperty.call(Ge.text,e)||Object.prototype.hasOwnProperty.call(Y3,e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Object.prototype.hasOwnProperty.call(Jn,e)&&!Jn[e].primitive}},s3=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,a0=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),Od={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},a3={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},m0=class t{constructor(e,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Jd(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new G("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new er("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var o=this.fetch();if(t.endOfExpression.has(o.text)||r&&o.text===r||e&&Jn[o.text]&&Jn[o.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,o=0;o<e.length;o++){var i=e[o];if(i.type==="infix"){if(r!==-1)throw new G("only one infix operator per group",i.token);r=o,n=i.replaceWith}}if(r!==-1&&n){var s,a,l=e.slice(0,r),c=e.slice(r+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},c.length===1&&c[0].type==="ordgroup"?a=c[0]:a={type:"ordgroup",mode:this.mode,body:c};var u;return n==="\\\\abovefrac"?u=this.callFunction(n,[s,e[r],a],[]):u=this.callFunction(n,[s,a],[]),[u]}else return e}handleSupSubscript(e){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var o;do{var i;o=this.parseGroup(e)}while(((i=o)==null?void 0:i.type)==="internal");if(!o)throw new G("Expected group after '"+n+"'",r);return o}formatUnsupportedCmd(e){for(var r=[],n=0;n<e.length;n++)r.push({type:"textord",mode:"text",text:e[n]});var o={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]};return i}parseAtom(e){var r=this.parseGroup("atom",e);if(r?.type==="internal"||this.mode==="text")return r;for(var n,o;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op")r.limits=i.text==="\\limits",r.alwaysHandleSupSub=!0;else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new G("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new G("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(o)throw new G("Double subscript",i);o=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new G("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},a=[s];for(this.consume();this.fetch().text==="'";)a.push(s),this.consume();this.fetch().text==="^"&&a.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:a}}else if(a0[i.text]){var l=s3.test(i.text),c=[];for(c.push(new er(a0[i.text])),this.consume();;){var u=this.fetch().text;if(!a0[u]||s3.test(u)!==l)break;c.unshift(new er(a0[u])),this.consume()}var f=this.subparse(c);l?o={type:"ordgroup",mode:"math",body:f}:n={type:"ordgroup",mode:"math",body:f}}else break}return n&&o?{type:"supsub",mode:this.mode,base:r,sup:n,sub:o}:n?{type:"supsub",mode:this.mode,base:r,sup:n}:o?{type:"supsub",mode:this.mode,base:r,sub:o}:r}parseFunction(e,r){var n=this.fetch(),o=n.text,i=Jn[o];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new G("Got function '"+o+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new G("Can't use function '"+o+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new G("Can't use function '"+o+"' in math mode",n);var s=this.parseArguments(o,i),a=s.args,l=s.optArgs;return this.callFunction(o,a,l,n,e)}callFunction(e,r,n,o,i){var s={funcName:e,parser:this,token:o,breakOnTokenText:i},a=Jn[e];if(a&&a.handler)return a.handler(s,r,n);throw new G("No function handler for "+e)}parseArguments(e,r){var n,o=(n=r.numOptionalArgs)!=null?n:0,i=r.numArgs+o;if(i===0)return{args:[],optArgs:[]};for(var s=[],a=[],l=0;l<i;l++){var c,u=(c=r.argTypes)==null?void 0:c[l],f=l<o;("primitive"in r&&r.primitive&&u==null||r.type==="sqrt"&&l===1&&a[0]==null)&&(u="primitive");var p=this.parseGroupOfType("argument to '"+e+"'",u,f);if(f)a.push(p);else if(p!=null)s.push(p);else throw new G("Null argument, please report this as a bug")}return{args:s,optArgs:a}}parseGroupOfType(e,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var o=this.parseArgumentGroup(n,"text");return o!=null?{type:"styling",mode:o.mode,body:[o],style:"text",resetFont:!0}:null}case"raw":{var i=this.parseStringGroup(n);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(n)throw new G("A primitive argument cannot be optional");var s=this.parseGroup(e);if(s==null)throw new G("Expected group as "+e,this.fetch());return s}case"original":case void 0:return this.parseArgumentGroup(n);default:throw new G("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e){var r=this.gullet.scanArgument(e);if(r==null)return null;for(var n="",o;(o=this.fetch()).text!=="EOF";)n+=o.text,this.consume();return this.consume(),r.text=n,r}parseRegexGroup(e,r){for(var n=this.fetch(),o=n,i="",s;(s=this.fetch()).text!=="EOF"&&e.test(i+s.text);)o=s,i+=o.text,this.consume();if(i==="")throw new G("Invalid "+r+": '"+n.text+"'",n);return n.range(o,i)}parseColorGroup(e){var r=this.parseStringGroup(e);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new G("Invalid color: '"+r.text+"'",r);var o=n[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}}parseSizeGroup(e){var r,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup(e),!r)return null;!e&&r.text.length===0&&(r.text="0pt",n=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!o)throw new G("Invalid size: '"+r.text+"'",r);var i={number:+(o[1]+o[2]),unit:o[3]};if(!c3(i))throw new G("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,r){var n=this.gullet.scanArgument(e);if(n==null)return null;var o=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(o),s}parseGroup(e,r){var n=this.fetch(),o=n.text,i;if(o==="{"||o==="\\begingroup"){this.consume();var s=o==="{"?"}":"\\endgroup";this.gullet.beginGroup();var a=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:Ut.range(n,l),body:a,semisimple:o==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,e)||this.parseSymbol(),i==null&&o[0]==="\\"&&!Object.prototype.hasOwnProperty.call(Y3,o)){if(this.settings.throwOnError)throw new G("Undefined control sequence: "+o,n);i=this.formatUnsupportedCmd(o),this.consume()}return i}formLigatures(e){for(var r=e.length-1,n=0;n<r;++n){var o=e[n];if(o.type==="textord"){var i=o.text,s=e[n+1];if(!(!s||s.type!=="textord")){if(i==="-"&&s.text==="-"){var a=e[n+2];n+1<r&&a&&a.type==="textord"&&a.text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:Ut.range(o,a),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:Ut.range(o,s),text:"--"}),r-=1)}(i==="'"||i==="`")&&s.text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:Ut.range(o,s),text:i+i}),r-=1)}}}}parseSymbol(){var e=this.fetch(),r=e.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),o=n.charAt(0)==="*";if(o&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new G(`\\verb assertion failed --
                    please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:o}}Object.prototype.hasOwnProperty.call(a3,r[0])&&!Ge[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=a3[r[0]]+r.slice(1));var i=wx.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="\u0131":r==="j"&&(r="\u0237"));var s;if(Ge[this.mode][r]){this.settings.strict&&this.mode==="math"&&Pd.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var a=Ge[this.mode][r].group,l=Ut.range(e),c;Ow(a)?c={type:"atom",mode:this.mode,family:a,loc:l,text:r}:c={type:a,mode:this.mode,loc:l,text:r},s=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(l3(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:Ut.range(e),text:r};else return null;if(this.consume(),i)for(var u=0;u<i[0].length;u++){var f=i[0][u];if(!Od[f])throw new G("Unknown accent ' "+f+"'",e);var p=Od[f][this.mode]||Od[f].text;if(!p)throw new G("Accent "+f+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:Ut.range(e),label:p,isStretchy:!1,isShifty:!0,base:s}}return s}};m0.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var h1=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new m0(e,r);delete n.gullet.macros.current["\\df@tag"];var o=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new G("\\tag works only in display equations");o=[{type:"tag",mode:"text",body:o,tag:n.subparse([new er("\\df@tag")])}]}return o},Z3=function(e,r,n){r.textContent="";var o=f1(e,n).toNode();r.appendChild(o)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Z3=function(){throw new G("KaTeX doesn't work in quirks mode.")});var Cx=function(e,r){var n=f1(e,r).toMarkup();return n},Sx=function(e,r){var n=new Xs(r);return h1(e,n)},X3=function(e,r,n){if(n.throwOnError||!(e instanceof G))throw e;var o=j(["katex-error"],[new Ht(r)]);return o.setAttribute("title",e.toString()),o.setAttribute("style","color:"+n.errorColor),o},f1=function(e,r){var n=new Xs(r);try{var o=h1(e,n);return xw(o,e,n)}catch(i){return X3(i,e,n)}},Ex=function(e,r){var n=new Xs(r);try{var o=h1(e,n);return kw(o,e,n)}catch(i){return X3(i,e,n)}},Tx="0.18.5",Ax={Span:to,Anchor:Si,SymbolNode:Ht,SvgNode:Mr,PathNode:en,LineNode:Qs},p1={version:Tx,render:Z3,renderToString:Cx,ParseError:G,SETTINGS_SCHEMA:Dd,__parse:Sx,__renderToDomTree:f1,__renderToHTMLTree:Ex,__setFontMetrics:rw,__defineSymbol:d,__defineFunction:te,__defineMacro:y,__domTree:Ax};function m1(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:i},exit:{mathFlow:o,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:a,mathText:s,mathTextData:a}};function t(l){let c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},l)}function e(){this.buffer()}function r(){let l=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=l}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function o(l){let c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.stack[this.stack.length-1];u.type,this.exit(l),u.value=c;let f=u.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function i(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){let c=this.resume(),u=this.stack[this.stack.length-1];u.type,this.exit(l),u.value=c,u.data.hChildren.push({type:"text",value:c})}function a(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function v1(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),n.peek=o,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(i,s,a,l){let c=i.value||"",u=a.createTracker(l),f="$".repeat(Math.max(lf(c,"$")+1,2)),p=a.enter("mathFlow"),v=u.move(f);if(i.meta){let b=a.enter("mathFlowMeta");v+=u.move(a.safe(i.meta,{after:`
`,before:v,encode:["$"],...u.current()})),b()}return v+=u.move(`
`),c&&(v+=u.move(c+`
`)),v+=u.move(f),p(),v}function n(i,s,a){let l=i.value||"",c=1;for(e||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;let u="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++f<a.unsafe.length;){let p=a.unsafe[f];if(!p.atBreak)continue;let v=a.compilePattern(p),b;for(;b=v.exec(l);){let w=b.index;l.codePointAt(w)===10&&l.codePointAt(w-1)===13&&w--,l=l.slice(0,w)+" "+l.slice(b.index+1)}}return u+l+u}function o(){return"$"}}var Q3={tokenize:Mx,concrete:!0,name:"mathFlow"},J3={tokenize:Nx,partial:!0};function Mx(t,e,r){let n=this,o=n.events[n.events.length-1],i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return a;function a(k){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),l(k)}function l(k){return k===36?(t.consume(k),s++,l):s<2?r(k):(t.exit("mathFlowFenceSequence"),Gi(t,c,"whitespace")(k))}function c(k){return k===null||un(k)?f(k):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),u(k))}function u(k){return k===null||un(k)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),f(k)):k===36?r(k):(t.consume(k),u)}function f(k){return t.exit("mathFlowFence"),n.interrupt?e(k):t.attempt(J3,p,g)(k)}function p(k){return t.attempt({tokenize:x,partial:!0},g,v)(k)}function v(k){return(i?Gi(t,b,"linePrefix",i+1):b)(k)}function b(k){return k===null?g(k):un(k)?t.attempt(J3,p,g)(k):(t.enter("mathFlowValue"),w(k))}function w(k){return k===null||un(k)?(t.exit("mathFlowValue"),b(k)):(t.consume(k),w)}function g(k){return t.exit("mathFlow"),e(k)}function x(k,T,O){let N=0;return Gi(k,D,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function D(L){return k.enter("mathFlowFence"),k.enter("mathFlowFenceSequence"),$(L)}function $(L){return L===36?(N++,k.consume(L),$):N<s?O(L):(k.exit("mathFlowFenceSequence"),Gi(k,I,"whitespace")(L))}function I(L){return L===null||un(L)?(k.exit("mathFlowFence"),T(L)):O(L)}}}function Nx(t,e,r){let n=this;return o;function o(s){return s===null?e(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}function e7(t){let r=(t||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:Ox,previous:Dx,name:"mathText"};function n(o,i,s){let a=this,l=0,c,u;return f;function f(g){return o.enter("mathText"),o.enter("mathTextSequence"),p(g)}function p(g){return g===36?(o.consume(g),l++,p):l<2&&!r?s(g):(o.exit("mathTextSequence"),v(g))}function v(g){return g===null?s(g):g===36?(u=o.enter("mathTextSequence"),c=0,w(g)):g===32?(o.enter("space"),o.consume(g),o.exit("space"),v):un(g)?(o.enter("lineEnding"),o.consume(g),o.exit("lineEnding"),v):(o.enter("mathTextData"),b(g))}function b(g){return g===null||g===32||g===36||un(g)?(o.exit("mathTextData"),v(g)):(o.consume(g),b)}function w(g){return g===36?(o.consume(g),c++,w):c===l?(o.exit("mathTextSequence"),o.exit("mathText"),i(g)):(u.type="mathTextData",b(g))}}}function Ox(t){let e=t.length-4,r=3,n,o;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[r][1].type="mathTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)o===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(o=n):(n===e||t[n][1].type==="lineEnding")&&(t[o][1].type="mathTextData",n!==o+2&&(t[o][1].end=t[n-1][1].end,t.splice(o+2,n-o-2),e-=n-o-2,n=o+2),o=void 0);return t}function Dx(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function g1(t){return{flow:{36:Q3},text:{36:e7(t)}}}var Ix={};function S0(t){let e=this,r=t||Ix,n=e.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(g1(r)),i.push(m1()),s.push(v1(r))}var Lx=Object.defineProperty,t7=Object.getOwnPropertySymbols,Rx=Object.prototype.hasOwnProperty,Px=Object.prototype.propertyIsEnumerable,r7=(t,e,r)=>e in t?Lx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Bx=(t,e)=>{for(var r in e||(e={}))Rx.call(e,r)&&r7(t,r,e[r]);if(t7)for(var r of t7(e))Px.call(e,r)&&r7(t,r,e[r]);return t};function Po(t,e){return Object.assign(t,{meta:Bx({package:"@milkdown/components"},e)}),t}var Vx=Object.defineProperty,n7=Object.getOwnPropertySymbols,Hx=Object.prototype.hasOwnProperty,zx=Object.prototype.propertyIsEnumerable,o7=(t,e,r)=>e in t?Vx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k1=(t,e)=>{for(var r in e||(e={}))Hx.call(e,r)&&o7(t,r,e[r]);if(n7)for(var r of n7(e))zx.call(e,r)&&o7(t,r,e[r]);return t},Fx={mode:"preview"},lo=Ue(k1({},Fx),"linkTooltipStateCtx");Po(lo,{displayName:"State<link-tooltip>",group:"LinkTooltip"});var $x={addLink:()=>{},editLink:()=>{},removeLink:()=>{}},Ni=Ue(k1({},$x),"linkTooltipAPICtx");Po(lo,{displayName:"API<link-tooltip>",group:"LinkTooltip"});var qx={linkIcon:"\u{1F517}",editButton:"\u270E",removeButton:"\u232B",confirmButton:"Confirm \u23CE",onCopyLink:()=>{},inputPlaceholder:"Paste link..."},Ro=Ue(k1({},qx),"linkTooltipConfigCtx");Po(lo,{displayName:"Config<link-tooltip>",group:"LinkTooltip"});var H0=jo("ToggleLink",t=>()=>e=>{let{doc:r,selection:n}=e,o=dn.type(t);return r.rangeHasMark(n.from,n.to,o)?(t.get(Ni.key).removeLink(n.from,n.to),!0):(t.get(Ni.key).addLink(n.from,n.to),!0)}),ha=wo("LINK_PREVIEW");Po(ha[0],{displayName:"PreviewTooltipSpec<link-tooltip>",group:"LinkTooltip"});Po(ha[1],{displayName:"PreviewTooltipPlugin<link-tooltip>",group:"LinkTooltip"});var z0=wo("LINK_EDIT");Po(z0[0],{displayName:"EditTooltipSpec<link-tooltip>",group:"LinkTooltip"});Po(z0[1],{displayName:"EditTooltipPlugin<link-tooltip>",group:"LinkTooltip"});function _1(...t){}_1(E);function da({icon:t,class:e,onClick:r}){return E("span",{class:qe("milkdown-icon",e),onPointerdown:r,innerHTML:t?at.sanitize(t.trim()):void 0})}da.props={icon:{type:String,required:!1},class:{type:String,required:!1},onClick:{type:Function,required:!1}};var Ux=jn("abcdefghijklmnopqrstuvwxyz0123456789",8);function Wx(t){return`${t}-${Ux()}`}_1(E);var jx=He({props:{config:{type:Object,required:!0},src:{type:Object,required:!0},onConfirm:{type:Function,required:!0},onCancel:{type:Function,required:!0}},setup({config:t,src:e,onConfirm:r,onCancel:n}){let o=Q(e),i=Wx("milkdown-link-edit");Xt(e,l=>{o.value=l});let s=()=>{r(o.value)},a=l=>{l.stopPropagation(),l.key==="Enter"&&(l.preventDefault(),s()),l.key==="Escape"&&(l.preventDefault(),n())};return()=>E("div",{class:"link-edit"},E("input",{id:i,class:"input-area",placeholder:t.value.inputPlaceholder,onKeydown:a,onInput:l=>{o.value=l.target.value},value:o.value}),o.value?E(da,{class:"button confirm",icon:t.value.confirmButton,onClick:s}):null)}}),Gx=Object.defineProperty,Kx=Object.defineProperties,Yx=Object.getOwnPropertyDescriptors,i7=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Xx=Object.prototype.propertyIsEnumerable,d7=t=>{throw TypeError(t)},s7=(t,e,r)=>e in t?Gx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E0=(t,e)=>{for(var r in e||(e={}))Zx.call(e,r)&&s7(t,r,e[r]);if(i7)for(var r of i7(e))Xx.call(e,r)&&s7(t,r,e[r]);return t},a7=(t,e)=>Kx(t,Yx(e)),h7=(t,e,r)=>e.has(t)||d7("Cannot "+r),Le=(t,e,r)=>(h7(t,e,"read from private field"),r?r.call(t):e.get(t)),vr=(t,e,r)=>e.has(t)?d7("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Io=(t,e,r,n)=>(h7(t,e,"write to private field"),e.set(t,r),r),Mi,so,ao,T0,ia,A0,Dn,M0,y1,N0,b1,O0,l7={from:-1,to:-1,mark:null},w1=class{constructor(e,r){this.ctx=e,vr(this,Mi),vr(this,so),vr(this,ao,E0({},l7)),vr(this,T0),vr(this,ia),vr(this,A0,Q("")),vr(this,Dn,()=>{Le(this,N0).call(this),Le(this,so).hide(),this.ctx.update(lo.key,i=>a7(E0({},i),{mode:"preview"})),Io(this,ao,E0({},l7))}),vr(this,M0,i=>{let s=i.target;s&&(Le(this,Mi).contains(s)||Le(this,Dn).call(this))}),vr(this,y1,()=>{document.addEventListener("pointerdown",Le(this,M0),!0)}),vr(this,N0,()=>{document.removeEventListener("pointerdown",Le(this,M0),!0)}),vr(this,b1,i=>{let s=this.ctx.get(Pe),{from:a,to:l,mark:c}=Le(this,ao),u=dn.type(this.ctx),f=Mc(i);if(c&&c.attrs.href===f){Le(this,Dn).call(this);return}let p=s.state.tr;if(c&&p.removeMark(a,l,c),a===l){if(!f){Le(this,Dn).call(this);return}let v=u.create({href:f});p.insertText(f,a),p.addMark(a,a+f.length,v)}else p.addMark(a,l,u.create({href:f}));s.dispatch(p),Le(this,Dn).call(this)}),vr(this,O0,(i,s,a)=>{let l=this.ctx.get(Ro.key);Le(this,ia).value=l,Le(this,A0).value=i,this.ctx.update(lo.key,u=>a7(E0({},u),{mode:"edit"}));let c=this.ctx.get(Pe);c.dispatch(c.state.tr.setSelection(Xe.create(c.state.doc,s,a))),Le(this,so).show({getBoundingClientRect:()=>Yi(c,s,a)},c),Le(this,y1).call(this),requestAnimationFrame(()=>{var u;(u=Le(this,Mi).querySelector("input"))==null||u.focus()})}),this.update=i=>{let{state:s}=i,{selection:a}=s;if(!(a instanceof Xe))return;let{from:l,to:c}=a;l===Le(this,ao).from&&c===Le(this,ao).to||Le(this,Dn).call(this)},this.destroy=()=>{Le(this,N0).call(this),Le(this,T0).unmount(),Le(this,so).destroy(),Le(this,Mi).remove()},this.addLink=(i,s)=>{Io(this,ao,{from:i,to:s,mark:null}),Le(this,O0).call(this,"",i,s)},this.editLink=(i,s,a)=>{Io(this,ao,{from:s,to:a,mark:i}),Le(this,O0).call(this,i.attrs.href,s,a)},this.removeLink=(i,s)=>{let a=this.ctx.get(Pe),l=a.state.tr;l.removeMark(i,s,dn.type(this.ctx)),a.dispatch(l),Le(this,Dn).call(this)},Io(this,ia,Q(this.ctx.get(Ro.key)));let n=document.createElement("div");n.className="milkdown-link-edit";let o=lt(jx,{config:Le(this,ia),src:Le(this,A0),onConfirm:Le(this,b1),onCancel:Le(this,Dn)});o.mount(n),Io(this,T0,o),Io(this,Mi,n),Io(this,so,new bo({content:n,debounce:0,shouldShow:()=>!1})),Le(this,so).onHide=()=>{requestAnimationFrame(()=>{r.dom.focus({preventScroll:!0})})},Le(this,so).update(r)}};Mi=new WeakMap;so=new WeakMap;ao=new WeakMap;T0=new WeakMap;ia=new WeakMap;A0=new WeakMap;Dn=new WeakMap;M0=new WeakMap;y1=new WeakMap;N0=new WeakMap;b1=new WeakMap;O0=new WeakMap;var Jx=Object.defineProperty,Qx=Object.defineProperties,ek=Object.getOwnPropertyDescriptors,c7=Object.getOwnPropertySymbols,tk=Object.prototype.hasOwnProperty,rk=Object.prototype.propertyIsEnumerable,u7=(t,e,r)=>e in t?Jx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,nk=(t,e)=>{for(var r in e||(e={}))tk.call(e,r)&&u7(t,r,e[r]);if(c7)for(var r of c7(e))rk.call(e,r)&&u7(t,r,e[r]);return t},ok=(t,e)=>Qx(t,ek(e));function ik(t){let e;t.update(Ni.key,r=>ok(nk({},r),{addLink:(n,o)=>{e?.addLink(n,o)},editLink:(n,o,i)=>{e?.editLink(n,o,i)},removeLink:(n,o)=>{e?.removeLink(n,o)}})),t.set(z0.key,{view:r=>(e=new w1(t,r),e)})}function sk(t,e,r,n,o){let i={start:-1,end:-1};return r.nodesBetween(n,o,(s,a)=>{if(i.start>-1)return!1;i.start===-1&&t.isInSet(s.marks)&&e===s&&(i={start:a,end:a+Math.max(s.textContent.length,1)})}),i}function ak(t,e,r){let n=e.posAtCoords({left:r.clientX,top:r.clientY});if(!n)return;let{pos:o}=n,i=e.state.doc.nodeAt(o);if(!i)return;let s=i.marks.find(l=>l.type===dn.mark.type(t));if(!(!s||!ha.pluginKey()))return{show:!0,pos:o,node:i,mark:s}}_1(E);var lk=He({props:{config:{type:Object,required:!0},src:{type:Object,required:!0},onEdit:{type:Object,required:!0},onRemove:{type:Object,required:!0}},setup({config:t,src:e,onEdit:r,onRemove:n}){let o=xt(()=>Mc(e.value)),i=l=>{l.preventDefault(),l.stopPropagation(),r.value()},s=l=>{l.preventDefault(),l.stopPropagation(),n.value()},a=l=>{l.preventDefault();let c=e.value;navigator.clipboard&&c&&navigator.clipboard.writeText(c).then(()=>{t.value.onCopyLink(c)}).catch(u=>console.error(u))};return()=>E("div",{class:"link-preview"},E(da,{class:"button link-icon",icon:t.value.linkIcon,onClick:a}),E("a",{href:o.value,target:"_blank",rel:"noopener noreferrer",class:"link-display"},e.value),E(da,{class:"button link-edit-button",icon:t.value.editButton,onClick:i}),E(da,{class:"button link-remove-button",icon:t.value.removeButton,onClick:s}))}}),f7=t=>{throw TypeError(t)},p7=(t,e,r)=>e.has(t)||f7("Cannot "+r),Ce=(t,e,r)=>(p7(t,e,"read from private field"),r?r.call(t):e.get(t)),Wt=(t,e,r)=>e.has(t)?f7("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),io=(t,e,r,n)=>(p7(t,e,"write to private field"),e.set(t,r),r),Lo,Nr,sa,aa,D0,I0,L0,la,R0,ca,P0,B0,V0,ua,x1=class{constructor(e,r){this.ctx=e,Wt(this,Lo),Wt(this,Nr),Wt(this,sa),Wt(this,aa),Wt(this,D0,Q("")),Wt(this,I0,Q(()=>{})),Wt(this,L0,Q(()=>{})),Wt(this,la),Wt(this,R0),Wt(this,ca,!1),Wt(this,P0,({mode:n})=>{n==="edit"&&Ce(this,ua).call(this)}),Wt(this,B0,()=>{io(this,ca,!0)}),Wt(this,V0,()=>{io(this,ca,!1)}),Wt(this,ua,()=>{Ce(this,Nr).hide(),Ce(this,Nr).element.removeEventListener("mouseenter",Ce(this,B0)),Ce(this,Nr).element.removeEventListener("mouseleave",Ce(this,V0))}),this.show=(n,o,i,s)=>{Ce(this,aa).value=this.ctx.get(Ro.key),Ce(this,D0).value=n.attrs.href,Ce(this,I0).value=()=>{this.ctx.get(Ni.key).editLink(n,o,i)},Ce(this,L0).value=()=>{this.ctx.get(Ni.key).removeLink(o,i),Ce(this,ua).call(this)},Ce(this,Nr).show({getBoundingClientRect:()=>s},Ce(this,R0)),Ce(this,Nr).element.addEventListener("mouseenter",Ce(this,B0)),Ce(this,Nr).element.addEventListener("mouseleave",Ce(this,V0))},this.hide=()=>{Ce(this,ca)||Ce(this,ua).call(this)},this.update=()=>{},this.destroy=()=>{Ce(this,la).unmount(),Ce(this,sa).off(Ce(this,P0)),Ce(this,Nr).destroy(),Ce(this,Lo).remove()},io(this,R0,r),io(this,aa,Q(this.ctx.get(Ro.key))),io(this,la,lt(lk,{config:Ce(this,aa),src:Ce(this,D0),onEdit:Ce(this,I0),onRemove:Ce(this,L0)})),io(this,Lo,document.createElement("div")),Ce(this,Lo).className="milkdown-link-preview",Ce(this,la).mount(Ce(this,Lo)),io(this,Nr,new bo({debounce:0,content:Ce(this,Lo),shouldShow:()=>!1})),Ce(this,Nr).update(r),io(this,sa,e.use(lo.key)),Ce(this,sa).on(Ce(this,P0))}};Lo=new WeakMap;Nr=new WeakMap;sa=new WeakMap;aa=new WeakMap;D0=new WeakMap;I0=new WeakMap;L0=new WeakMap;la=new WeakMap;R0=new WeakMap;ca=new WeakMap;P0=new WeakMap;B0=new WeakMap;V0=new WeakMap;ua=new WeakMap;function ck(t){let e,n=Jf((i,s)=>{if(!e||!i.hasFocus()||t.get(lo.key).mode==="edit")return;let l=ak(t,i,s);if(l){let c=i.state.doc.resolve(l.pos),u=sk(l.mark,l.node,i.state.doc,c.before(),c.after()),f=u.start,p=u.end;e.show(l.mark,f,p,Yi(i,f,p));return}e.hide()},50),o=()=>{setTimeout(()=>{e?.hide()},50)};t.set(ha.key,{props:{handleDOMEvents:{mousemove:n,mouseleave:o}},view:i=>(e=new x1(t,i),e)})}function m7(t){ck(t),ik(t)}var v7=[lo,Ni,Ro,ha,z0,H0].flat();var uk=Object.defineProperty,g7=Object.getOwnPropertySymbols,dk=Object.prototype.hasOwnProperty,hk=Object.prototype.propertyIsEnumerable,y7=(t,e,r)=>e in t?uk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fk=(t,e)=>{for(var r in e||(e={}))dk.call(e,r)&&y7(t,r,e[r]);if(g7)for(var r of g7(e))hk.call(e,r)&&y7(t,r,e[r]);return t};function b7(t,e){return Object.assign(t,{meta:fk({package:"@milkdown/components"},e)}),t}var pk={renderLabel:({label:t,listType:e,checked:r})=>r==null?e==="bullet"?"\u29BF":t:r?"\u2611":"\u25A1"},fa=Ue(pk,"listItemBlockConfigCtx");b7(fa,{displayName:"Config<list-item-block>",group:"ListItemBlock"});function w7(...t){}w7(E);function x7({icon:t,class:e,onClick:r}){return E("span",{class:qe("milkdown-icon",e),onPointerdown:r,innerHTML:t?at.sanitize(t.trim()):void 0})}x7.props={icon:{type:String,required:!1},class:{type:String,required:!1},onClick:{type:Function,required:!1}};w7(E);var mk=He({props:{label:{type:Object,required:!0},checked:{type:Object,required:!0},listType:{type:Object,required:!0},config:{type:Object,required:!0},readonly:{type:Object,required:!0},selected:{type:Object,required:!0},setAttr:{type:Function,required:!0},onMount:{type:Function,required:!0}},setup({label:t,checked:e,listType:r,config:n,readonly:o,setAttr:i,onMount:s,selected:a}){let l=p=>{p!=null&&p instanceof Element&&s(p)},c=p=>{p.stopPropagation(),p.preventDefault(),e.value!=null&&i("checked",!e.value)},u=xt(()=>n.renderLabel({label:t.value,listType:r.value,checked:e.value,readonly:o.value})),f=xt(()=>e.value==null?r.value==="bullet"?"bullet":"ordered":e.value?"checked":"unchecked");return()=>E("li",{class:qe("list-item",a.value&&"ProseMirror-selectednode")},E("div",{class:"label-wrapper",onPointerdown:c,contenteditable:!1},E(x7,{class:qe("label",o.value&&"readonly",f.value),icon:u.value})),E("div",{class:"children",ref:l}))}}),k7=Br(Ji.node,t=>(e,r,n)=>{let o=document.createElement("div");o.className="milkdown-list-item-block";let i=document.createElement("div");i.setAttribute("data-content-dom","true"),i.classList.add("content-dom");let s=Q(e.attrs.label),a=Q(e.attrs.checked),l=Q(e.attrs.listType),c=Q(!r.editable),u=t.get(fa.key),f=Q(!1),p=(O,N)=>{if(!r.editable)return;let D=n();D!=null&&(r.hasFocus()||r.focus(),r.dispatch(r.state.tr.setNodeAttribute(D,O,N)))},v=Sr(()=>{f.value?o.classList.add("selected"):o.classList.remove("selected")}),b=0,w=null,x=lt(mk,{label:s,checked:a,listType:l,readonly:c,config:u,selected:f,setAttr:p,onMount:O=>{if(O===w)return;w=O;let{anchor:N,head:D}=r.state.selection;O.appendChild(i),b=requestAnimationFrame(()=>{if(b=0,r.isDestroyed)return;let{state:$}=r,I=$.doc.content.size;if(N>I||D>I)return;let L=$.doc.resolve(N),W=$.doc.resolve(D),ie=Xe.between(L,W);r.dispatch($.tr.setSelection(ie))})}});x.mount(o);let k=O=>{l.value=O.attrs.listType,s.value=O.attrs.label,a.value=O.attrs.checked,c.value=!r.editable};k(e);let T=e;return{dom:o,contentDOM:i,update:O=>O.type!==e.type?!1:(O.sameMarkup(T)&&O.content.eq(T.content)||(T=O,k(O)),!0),ignoreMutation:O=>!o||!i?!0:O.type==="selection"?!1:i===O.target&&O.type==="attributes"?!0:!i.contains(O.target),selectNode:()=>{f.value=!0},deselectNode:()=>{f.value=!1},destroy:()=>{cancelAnimationFrame(b),v(),x.unmount(),o.remove(),i.remove()}}});b7(k7,{displayName:"NodeView<list-item-block>",group:"ListItemBlock"});var _7=[fa,k7];var vk=Object.defineProperty,C7=Object.getOwnPropertySymbols,gk=Object.prototype.hasOwnProperty,yk=Object.prototype.propertyIsEnumerable,S7=(t,e,r)=>e in t?vk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bk=(t,e)=>{for(var r in e||(e={}))gk.call(e,r)&&S7(t,r,e[r]);if(C7)for(var r of C7(e))yk.call(e,r)&&S7(t,r,e[r]);return t};function M7(t,e){return Object.assign(t,{meta:bk({package:"@milkdown/components"},e)}),t}var wk=Object.defineProperty,E7=Object.getOwnPropertySymbols,xk=Object.prototype.hasOwnProperty,kk=Object.prototype.propertyIsEnumerable,T7=(t,e,r)=>e in t?wk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_k=(t,e)=>{for(var r in e||(e={}))xk.call(e,r)&&T7(t,r,e[r]);if(E7)for(var r of E7(e))kk.call(e,r)&&T7(t,r,e[r]);return t},Ck={renderButton:t=>{switch(t){case"add_row":return"+";case"add_col":return"+";case"delete_row":return"-";case"delete_col":return"-";case"align_col_left":return"left";case"align_col_center":return"center";case"align_col_right":return"right";case"col_drag_handle":return"=";case"row_drag_handle":return"="}}},pa=Ue(_k({},Ck),"tableBlockConfigCtx");M7(pa,{displayName:"Config<table-block>",group:"TableBlock"});function N7(...t){}N7(E);function on({icon:t,class:e,onClick:r}){return E("span",{class:qe("milkdown-icon",e),onPointerdown:r,innerHTML:t?at.sanitize(t.trim()):void 0})}on.props={icon:{type:String,required:!1},class:{type:String,required:!1},onClick:{type:Function,required:!1}};function O7(t){let{dragPreviewRef:e,tableWrapperRef:r,contentWrapperRef:n,yLineHandleRef:o,xLineHandleRef:i,colHandleRef:s,rowHandleRef:a}=t,l=e.value;if(!l)return;let c=r.value;if(!c)return;let u=n.value;if(!u)return;let f=u.querySelector("tbody");if(!f)return;let p=l.querySelector("tbody");if(!p)return;let v=o.value;if(!v)return;let b=i.value;if(!b)return;let w=s.value;if(!w)return;let g=a.value;return g?{preview:l,wrapper:c,content:u,contentRoot:f,previewRoot:p,yHandle:v,xHandle:b,colHandle:w,rowHandle:g}:void 0}function D7(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function I7(t,e,r,n,o){let{width:i,height:s}=n.querySelector("tbody").getBoundingClientRect();if(t==="y"){let l=n.querySelectorAll("tr")[o];if(!l)return;r.appendChild(l.cloneNode(!0));let c=l.getBoundingClientRect().height;Object.assign(e.style,{width:`${i}px`,height:`${c}px`}),e.dataset.show="true";return}if(t==="x"){let a=n.querySelectorAll("tr"),l;Array.from(a).forEach(c=>{let u=c.children[o];if(!u)return;l===void 0&&(l=u.getBoundingClientRect().width);let f=u.parentElement.cloneNode(!1),p=u.cloneNode(!0);f.appendChild(p),r.appendChild(f)}),Object.assign(e.style,{width:`${l}px`,height:`${s}px`}),e.dataset.show="true";return}}function Sk(t,e){return r=>{R7(t,r,e,n=>{L7("y",r,n,t);let{preview:o,content:i,previewRoot:s}=n;D7(s);let{hoverIndex:a}=t,[l]=a.value;I7("y",o,s,i,l)})}}function Ek(t,e){return r=>{R7(t,r,e,n=>{L7("x",r,n,t);let{preview:o,content:i,previewRoot:s}=n,{hoverIndex:a}=t,[l,c]=a.value;D7(s),I7("x",o,s,i,c)})}}function L7(t,e,r,n){let{xHandle:o,yHandle:i,colHandle:s,rowHandle:a,preview:l}=r;o.dataset.displayType=t==="y"?"indicator":"none",i.dataset.displayType=t==="x"?"indicator":"none",t==="y"?(s.dataset.show="false",A7(a)):(a.dataset.show="false",A7(s));let{hoverIndex:c,dragInfo:u}=n,[f,p]=c.value;u.value={startCoords:[e.clientX,e.clientY],startIndex:t==="y"?f:p,endIndex:t==="y"?f:p,type:t==="y"?"row":"col"},l.dataset.direction=t==="y"?"vertical":"horizontal"}function R7(t,e,r,n){let o=r?.get(Pe);if(!o?.editable)return;e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.effectAllowed="move");let i=O7(t);i&&requestAnimationFrame(()=>{n(i)})}function A7(t){var e;(e=t.querySelector(".button-group"))==null||e.setAttribute("data-show","false")}function C1(t,e){for(let r=0;r<t.childCount;r++)if(t.child(r)===e)return r;return-1}function Tk(t,e){var r,n,o;if(e)try{let i=e.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return;let s=i?.inside;if(s==null||s<0)return;let a=e.state.doc.resolve(s),l=e.state.doc.nodeAt(s);if(!l)return;let c=["table_cell","table_header"],u=["table_row","table_header_row"],f=c.includes(l.type.name)?l:(r=Rr(g=>c.includes(g.type.name))(a))==null?void 0:r.node,p=(n=Rr(g=>u.includes(g.type.name))(a))==null?void 0:n.node,v=(o=Rr(g=>g.type.name==="table")(a))==null?void 0:o.node;if(!f||!p||!v)return;let b=C1(p,f);return[C1(v,p),b]}catch{return}}function F0(t,[e,r]){let n=t.value;if(!n)return;let o=n.querySelectorAll("tr"),i=o[e];if(!i)return;let s=o[0];if(!s)return;let a=s.children[r];if(!a)return;let l=i.children[r];if(l)return{row:i,col:l,headerCol:a}}function Ak(t,e,r){if(!r||!e)return;let{selection:n}=e.state;if(!(n instanceof Rc))return;let{$from:o}=n,i=Df(o);if(!(!i||i.node!==r)){if(n.isColSelection()){let{$head:s}=n,a=s.index(s.depth-1);T1({refs:t,index:[0,a],before:l=>{var c;(c=l.querySelector(".button-group"))==null||c.setAttribute("data-show","true")}});return}if(n.isRowSelection()){let{$head:s}=n,a=Rr(c=>c.type.name==="table_row"||c.type.name==="table_header_row")(s);if(!a)return;let l=C1(i.node,a.node);A1({refs:t,index:[l,0],before:c=>{var u;l>0&&((u=c.querySelector(".button-group"))==null||u.setAttribute("data-show","true"))}})}}}function T1({refs:t,index:e,before:r,after:n}){let{contentWrapperRef:o,colHandleRef:i,hoverIndex:s}=t,a=i.value;if(!a)return;s.value=e;let l=F0(o,e);if(!l)return;let{headerCol:c}=l;a.dataset.show="true",r&&r(a),vn(c,a,{placement:"top"}).then(({x:u,y:f})=>{Object.assign(a.style,{left:`${u}px`,top:`${f}px`}),n&&n(a)}).catch(console.error)}function A1({refs:t,index:e,before:r,after:n}){let{contentWrapperRef:o,rowHandleRef:i,hoverIndex:s}=t,a=i.value;if(!a)return;s.value=e;let l=F0(o,e);if(!l)return;let{row:c}=l;a.dataset.show="true",r&&r(a),vn(c,a,{placement:"left"}).then(({x:u,y:f})=>{Object.assign(a.style,{left:`${u}px`,top:`${f}px`}),n&&n(a)}).catch(console.error)}function P7(t,e,r){let n=r==="x"?"left":"top",o=r==="x"?"right":"bottom",i=t.length-1,s=t.findIndex((l,c)=>{let u=l.getBoundingClientRect(),f=u[n],p=u[o];return f<=e&&e<=p||c===i&&e>p||c===0&&e<f}),a=t[s];return a?[a,s]:void 0}function Mk(t,e){let r=t.querySelector("tr");if(!r)return;let n=Array.from(r.children);return P7(n,e,"x")}function Nk(t,e){let r=Array.from(t.querySelectorAll("tr"));return P7(r,e,"y")}function Ok(t){return Hc(e=>{let r=O7(t);if(!r)return;let{preview:n,content:o,contentRoot:i,xHandle:s,yHandle:a}=r,{dragInfo:l,hoverIndex:c}=t;if(n.dataset.show==="false")return;let u=F0(t.contentWrapperRef,c.value);if(!u||!i.querySelector("tr"))return;let p=l.value;if(!p||!i.offsetParent)return;let v=i.offsetParent.offsetTop,b=i.offsetParent.offsetLeft;if(p.type==="col"){let w=u.col.getBoundingClientRect().width,{left:g,width:x}=i.getBoundingClientRect(),k=b-g,T=e.clientX+k-w/2,[O]=p.startCoords,N=O<e.clientX?"right":"left";n.style.top=`${v}px`;let D=T<g+k-20?g+k-20:T>g+x+k-w+20?g+x+k-w+20:T;n.style.left=`${D}px`;let $=Mk(i,e.clientX);if($){let[I,L]=$,W=a.getBoundingClientRect().width,ie=o.getBoundingClientRect();p.endIndex=L,vn(I,a,{placement:N==="left"?"left":"right",middleware:[Qi(N==="left"?-1*W:0)]}).then(({x:B})=>{a.dataset.show="true",Object.assign(a.style,{height:`${ie.height}px`,left:`${B}px`,top:`${v}px`})}).catch(console.error)}}else if(p.type==="row"){let w=u.row.getBoundingClientRect().height,{top:g,height:x}=i.getBoundingClientRect(),k=v-g,T=e.clientY+k-w/2,[O,N]=p.startCoords,D=N<e.clientY?"down":"up",$=T<g+k-20?g+k-20:T>g+x+k-w+20?g+x+k-w+20:T;n.style.top=`${$}px`,n.style.left=`${b}px`;let I=Nk(i,e.clientY);if(I){let[L,W]=I,ie=s.getBoundingClientRect().height,B=o.getBoundingClientRect();p.endIndex=W,vn(L,s,{placement:D==="up"?"top":"bottom",middleware:[Qi(D==="up"?-1*ie:0)]}).then(({y:ye})=>{s.dataset.show="true",Object.assign(s.style,{width:`${B.width}px`,top:`${ye}px`})}).catch(console.error)}}},20)}function Dk(t,e,r){let{dragPreviewRef:n,yLineHandleRef:o,xLineHandleRef:i,dragInfo:s}=t,a=Sk(t,e),l=Ek(t,e),c=()=>{let p=n.value;if(!p||p.dataset.show==="false")return;let v=p?.querySelector("tbody");for(;v?.firstChild;)v?.removeChild(v.firstChild);p&&(p.dataset.show="false")},u=()=>{var p;let v=n.value;if(!v)return;let b=o.value;if(!b)return;let w=i.value;if(!w)return;let g=s.value;if(!g||!e||v.dataset.show==="false"||!t.colHandleRef.value||!t.rowHandleRef.value||(b.dataset.show="false",w.dataset.show="false",g.startIndex===g.endIndex))return;let T=e.get(ne),O={from:g.startIndex,to:g.endIndex,pos:((p=r?.())!=null?p:0)+1};if(g.type==="col"){T.call(Ko.key,{pos:O.pos,index:g.startIndex}),T.call(Pf.key,O);let N=[0,g.endIndex];T1({refs:t,index:N})}else{T.call(Go.key,{pos:O.pos,index:g.startIndex}),T.call(Rf.key,O);let N=[g.endIndex,0];A1({refs:t,index:N})}requestAnimationFrame(()=>{e.get(Pe).focus()})},f=Ok(t);return Yr(()=>{window.addEventListener("dragover",f),window.addEventListener("dragend",c),window.addEventListener("drop",u)}),Zr(()=>{window.removeEventListener("dragover",f),window.removeEventListener("dragend",c),window.removeEventListener("drop",u)}),{dragRow:a,dragCol:l}}function Ik(t,e,r){let{xLineHandleRef:n,contentWrapperRef:o,colHandleRef:i,rowHandleRef:s,hoverIndex:a,lineHoverIndex:l}=t;return{onAddRow:()=>{var w,g,x;if(!e)return;let k=n.value;if(!k)return;let[T]=l.value;if(T<0||!e.get(Pe).editable)return;let O=Array.from((g=(w=o.value)==null?void 0:w.querySelectorAll("tr"))!=null?g:[]),N=e.get(ne),D=((x=r?.())!=null?x:0)+1;O.length===T?(N.call(Go.key,{pos:D,index:T-1}),N.call(Ff.key)):(N.call(Go.key,{pos:D,index:T}),N.call(zf.key)),N.call(Go.key,{pos:D,index:T}),k.dataset.show="false"},onAddCol:()=>{var w,g,x,k;if(!e||!n.value)return;let[O,N]=l.value;if(N<0||!e.get(Pe).editable)return;let D=Array.from((x=(g=(w=o.value)==null?void 0:w.querySelector("tr"))==null?void 0:g.children)!=null?x:[]),$=e.get(ne),I=((k=r?.())!=null?k:0)+1;D.length===N?($.call(Ko.key,{pos:I,index:N-1}),$.call(Hf.key)):($.call(Ko.key,{pos:I,index:N}),$.call(Vf.key)),$.call(Ko.key,{pos:I,index:N})},selectCol:()=>{var w,g;if(!e)return;let[x,k]=a.value,T=e.get(ne),O=((w=r?.())!=null?w:0)+1;T.call(Ko.key,{pos:O,index:k});let N=(g=i.value)==null?void 0:g.querySelector(".button-group");N&&(N.dataset.show=N.dataset.show==="true"?"false":"true")},selectRow:()=>{var w,g;if(!e)return;let[x,k]=a.value,T=e.get(ne),O=((w=r?.())!=null?w:0)+1;T.call(Go.key,{pos:O,index:x});let N=(g=s.value)==null?void 0:g.querySelector(".button-group");N&&x>0&&(N.dataset.show=N.dataset.show==="true"?"false":"true")},deleteSelected:w=>{if(!e||!e.get(Pe).editable)return;w.preventDefault(),w.stopPropagation(),e.get(ne).call(Bf.key),requestAnimationFrame(()=>{e.get(Pe).focus()})},onAlign:w=>g=>{if(!e||!e.get(Pe).editable)return;g.preventDefault(),g.stopPropagation(),e.get(ne).call($f.key,w),requestAnimationFrame(()=>{e.get(Pe).focus()})}}}function Lk(t,e){return Hc(r=>{if(!e?.editable)return;let{contentWrapperRef:n,yLineHandleRef:o,xLineHandleRef:i,colHandleRef:s,rowHandleRef:a,hoverIndex:l,lineHoverIndex:c}=t,u=o.value;if(!u)return;let f=i.value;if(!f)return;let p=n.value;if(!p)return;let v=a.value;if(!v)return;let b=s.value;if(!b)return;let w=Tk(r,e);if(!w)return;let g=F0(n,w);if(!g)return;let[x,k]=w,T=g.col.getBoundingClientRect(),O=Math.abs(r.clientX-T.left)<8,N=Math.abs(T.right-r.clientX)<8,D=Math.abs(r.clientY-T.top)<8,$=Math.abs(T.bottom-r.clientY)<8,I=O||N||D||$,L=v.querySelector(".button-group"),W=b.querySelector(".button-group");if(L&&(L.dataset.show="false"),W&&(W.dataset.show="false"),I){let ie=p.getBoundingClientRect();v.dataset.show="false",b.dataset.show="false",f.dataset.displayType="tool",u.dataset.displayType="tool";let B=u.getBoundingClientRect().width,ye=f.getBoundingClientRect().height;O||N?(c.value[1]=O?k:k+1,vn(g.col,u,{placement:O?"left":"right",middleware:[Qi(O?-1*B:0)]}).then(({x:Ae})=>{u.dataset.show="true",Object.assign(u.style,{height:`${ie.height}px`,left:`${Ae}px`})}).catch(console.error)):u.dataset.show="false",w[0]!==0&&(D||$)?(c.value[0]=D?x:x+1,vn(g.row,f,{placement:D?"top":"bottom",middleware:[Qi(D?-1*ye:0)]}).then(({y:Ae})=>{f.dataset.show="true",Object.assign(f.style,{width:`${ie.width}px`,top:`${Ae}px`})}).catch(console.error)):f.dataset.show="false";return}c.value=[-1,-1],u.dataset.show="false",f.dataset.show="false",v.dataset.show="true",b.dataset.show="true",A1({refs:t,index:w}),T1({refs:t,index:w}),l.value=w},20)}function Rk(t){return()=>{let{rowHandleRef:e,colHandleRef:r,yLineHandleRef:n,xLineHandleRef:o}=t;setTimeout(()=>{let i=e.value;if(!i)return;let s=r.value;if(!s)return;let a=n.value;if(!a)return;let l=o.value;l&&(i.dataset.show="false",s.dataset.show="false",a.dataset.show="false",l.dataset.show="false")},200)}}function Pk(t,e){let r=Lk(t,e),n=Rk(t);return{pointerMove:r,pointerLeave:n}}N7(E);var Bk=He({props:{view:{type:Object,required:!0},ctx:{type:Object,required:!0},getPos:{type:Function,required:!0},config:{type:Object,required:!0},onMount:{type:Function,required:!0},node:{type:Object,required:!0}},setup({view:t,node:e,ctx:r,getPos:n,config:o,onMount:i}){let s=Q(),a=B=>{B!=null&&(B instanceof HTMLElement?(s.value=B,i(B)):s.value=void 0)},l=Q(),c=Q(),u=Q(),f=Q(),p=Q(),v=Q(),b=Q([0,0]),w=Q([-1,-1]),g=Q(),x={dragPreviewRef:v,tableWrapperRef:p,contentWrapperRef:s,yLineHandleRef:f,xLineHandleRef:u,colHandleRef:l,rowHandleRef:c,hoverIndex:b,lineHoverIndex:w,dragInfo:g},{pointerLeave:k,pointerMove:T}=Pk(x,t),{dragRow:O,dragCol:N}=Dk(x,r,n),{onAddRow:D,onAddCol:$,selectCol:I,selectRow:L,deleteSelected:W,onAlign:ie}=Ik(x,r,n);return Yr(()=>{requestAnimationFrame(()=>{t.editable&&Ak(x,t,e.value)})}),()=>E("div",{onDragstart:B=>B.preventDefault(),onDragover:B=>B.preventDefault(),onDragleave:B=>B.preventDefault(),onPointermove:T,onPointerleave:k},E("div",{"data-show":"false",contenteditable:"false",draggable:"true","data-role":"col-drag-handle",class:"handle cell-handle",onDragstart:N,onClick:I,onPointerdown:B=>B.stopPropagation(),onPointermove:B=>B.stopPropagation(),ref:l},E(on,{icon:o.renderButton("col_drag_handle")}),E("div",{"data-show":"false",class:"button-group",onPointermove:B=>B.stopPropagation()},E("button",{type:"button",onPointerdown:ie("left")},E(on,{icon:o.renderButton("align_col_left")})),E("button",{type:"button",onPointerdown:ie("center")},E(on,{icon:o.renderButton("align_col_center")})),E("button",{type:"button",onPointerdown:ie("right")},E(on,{icon:o.renderButton("align_col_right")})),E("button",{type:"button",onPointerdown:W},E(on,{icon:o.renderButton("delete_col")})))),E("div",{"data-show":"false",contenteditable:"false",draggable:"true","data-role":"row-drag-handle",class:"handle cell-handle",onDragstart:O,onClick:L,onPointerdown:B=>B.stopPropagation(),onPointermove:B=>B.stopPropagation(),ref:c},E(on,{icon:o.renderButton("row_drag_handle")}),E("div",{"data-show":"false",class:"button-group",onPointermove:B=>B.stopPropagation()},E("button",{type:"button",onPointerdown:W},E(on,{icon:o.renderButton("delete_row")})))),E("div",{class:"table-wrapper",ref:p},E("div",{"data-show":"false",class:"drag-preview","data-direction":"vertical",ref:v},E("table",null,E("tbody",null))),E("div",{"data-show":"false",contenteditable:"false","data-display-type":"tool","data-role":"x-line-drag-handle",class:"handle line-handle",onPointermove:B=>B.stopPropagation(),ref:u},E("button",{type:"button",onClick:D,class:"add-button"},E(on,{icon:o.renderButton("add_row")}))),E("div",{"data-show":"false",contenteditable:"false","data-display-type":"tool","data-role":"y-line-drag-handle",class:"handle line-handle",onPointermove:B=>B.stopPropagation(),ref:f},E("button",{type:"button",onClick:$,class:"add-button"},E(on,{icon:o.renderButton("add_col")}))),E("table",{ref:a,class:"children"})))}}),B7=t=>{throw TypeError(t)},Vk=(t,e,r)=>e.has(t)||B7("Cannot "+r),Hk=(t,e,r)=>e.has(t)?B7("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),zk=(t,e,r)=>(Vk(t,e,"access private method"),r),S1,V7,E1=class{constructor(e,r,n,o){this.ctx=e,this.node=r,this.view=n,this.getPos=o,Hk(this,S1);let i=document.createElement("div");i.className="milkdown-table-block";let s=document.createElement("tbody");this.contentDOM=s,s.setAttribute("data-content-dom","true"),s.classList.add("content-dom"),this.nodeRef=qn(r);let a=lt(Bk,{view:n,ctx:e,getPos:o,config:e.get(pa.key),onMount:l=>{l.appendChild(s)},node:this.nodeRef});a.mount(i),this.app=a,this.dom=i}update(e){return e.type!==this.node.type||e.sameMarkup(this.node)&&e.content.eq(this.node.content)?!1:(this.node=e,this.nodeRef.value=e,!0)}stopEvent(e){if(e.type==="drop"||e.type.startsWith("drag"))return!0;if(e.type==="mousedown"||e.type==="pointerdown"){if(e.target instanceof Element&&e.target.closest("button"))return!0;let r=e.target;if(r instanceof HTMLElement&&(r.closest("th")||r.closest("td"))){let n=e;return zk(this,S1,V7).call(this,n)}}return!1}ignoreMutation(e){return!this.dom||!this.contentDOM?!0:e.type==="selection"?!1:this.contentDOM===e.target&&e.type==="attributes"?!0:!this.contentDOM.contains(e.target)}destroy(){this.app.unmount(),this.dom.remove(),this.contentDOM.remove()}};S1=new WeakSet;V7=function(t){let e=this.view;if(!e.editable)return!1;let{state:r,dispatch:n}=e,o=e.posAtCoords({left:t.clientX,top:t.clientY});if(!o)return!1;let i=r.doc.resolve(o.inside),s=Rr(c=>c.type.name==="table_cell"||c.type.name==="table_header")(i);if(!s)return!1;if(r.selection instanceof Xe){let c=Rr(u=>u.type.name==="table_cell"||u.type.name==="table_header")(r.selection.$from);if(c?.node===s.node)return!1}let{from:a}=s,l=Ki.create(r.doc,a+1);return r.selection.eq(l)?!1:(r.selection instanceof Rc?setTimeout(()=>{n(r.tr.setSelection(l).scrollIntoView())},20):requestAnimationFrame(()=>{n(r.tr.setSelection(l).scrollIntoView())}),!0)};var H7=Br(Lf.node,t=>(e,r,n)=>new E1(t,e,r,n));M7(H7,{displayName:"NodeView<table-block>",group:"TableBlock"});var z7=[pa,H7];var M1=Ue({shouldAppend:t=>!(!t||["heading","paragraph"].includes(t.type.name)),getNode:t=>t.schema.nodes.paragraph.create()},"trailingConfig");M1.meta={package:"@milkdown/plugin-trailing",displayName:"Ctx<trailingConfig>"};var F7=Pr(t=>{let e=new kr("MILKDOWN_TRAILING"),{shouldAppend:r,getNode:n}=t.get(M1.key),o=new xr({key:e,state:{init:(i,s)=>{let a=s.tr.doc.lastChild;return r(a,s)},apply:(i,s,a,l)=>{if(!i.docChanged)return s;let c=i.doc.lastChild;return r(c,l)}},appendTransaction:(i,s,a)=>{let{doc:l,tr:c}=a,u=n?.(a),f=o.getState(a),p=l.content.size;if(!(!f||!u))return c.insert(p,u)}});return o});F7.meta={package:"@milkdown/plugin-trailing",displayName:"Prose<trailing>"};var $7=[M1,F7];var xe=(t=>(t.CodeMirror="code-mirror",t.ListItem="list-item",t.LinkTooltip="link-tooltip",t.Cursor="cursor",t.ImageBlock="image-block",t.BlockEdit="block-edit",t.Toolbar="toolbar",t.Placeholder="placeholder",t.Table="table",t.Latex="latex",t.TopBar="top-bar",t.AI="ai",t))(xe||{}),Fk={cursor:!0,"list-item":!0,"link-tooltip":!0,"image-block":!0,"block-edit":!0,placeholder:!0,toolbar:!0,"code-mirror":!0,table:!0,latex:!0,"top-bar":!1,ai:!1},nh=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="M19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 14l1.25-2.75L23 19l-2.75-1.25L19 15l-1.25 2.75L15 19l2.75 1.25zM9 20l3-6.5L18 10l-6-3.5L9 0L6 6.5L0 10l6 3.5z"
      transform="translate(3 3) scale(0.75)"
    />
  </svg>
`,$k=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      d="M4.25 20.5C4.0375 20.5 3.85942 20.4281 3.71575 20.2843C3.57192 20.1404 3.5 19.9622 3.5 19.7498C3.5 19.5371 3.57192 19.359 3.71575 19.2155C3.85942 19.0718 4.0375 19 4.25 19H19.75C19.9625 19 20.1406 19.0719 20.2843 19.2158C20.4281 19.3596 20.5 19.5378 20.5 19.7502C20.5 19.9629 20.4281 20.141 20.2843 20.2845C20.1406 20.4282 19.9625 20.5 19.75 20.5H4.25ZM8.25 16.625C8.0375 16.625 7.85942 16.5531 7.71575 16.4093C7.57192 16.2654 7.5 16.0872 7.5 15.8748C7.5 15.6621 7.57192 15.484 7.71575 15.3405C7.85942 15.1968 8.0375 15.125 8.25 15.125H15.75C15.9625 15.125 16.1406 15.1969 16.2843 15.3408C16.4281 15.4846 16.5 15.6628 16.5 15.8753C16.5 16.0879 16.4281 16.266 16.2843 16.4095C16.1406 16.5532 15.9625 16.625 15.75 16.625H8.25ZM4.25 12.75C4.0375 12.75 3.85942 12.6781 3.71575 12.5343C3.57192 12.3904 3.5 12.2122 3.5 11.9998C3.5 11.7871 3.57192 11.609 3.71575 11.4655C3.85942 11.3218 4.0375 11.25 4.25 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2843 11.4658C20.4281 11.6096 20.5 11.7878 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2843 12.5345C20.1406 12.6782 19.9625 12.75 19.75 12.75H4.25ZM8.25 8.875C8.0375 8.875 7.85942 8.80308 7.71575 8.65925C7.57192 8.51542 7.5 8.33725 7.5 8.12475C7.5 7.91208 7.57192 7.734 7.71575 7.5905C7.85942 7.44683 8.0375 7.375 8.25 7.375H15.75C15.9625 7.375 16.1406 7.44692 16.2843 7.59075C16.4281 7.73458 16.5 7.91275 16.5 8.12525C16.5 8.33792 16.4281 8.516 16.2843 8.6595C16.1406 8.80317 15.9625 8.875 15.75 8.875H8.25ZM4.25 5C4.0375 5 3.85942 4.92808 3.71575 4.78425C3.57192 4.64042 3.5 4.46225 3.5 4.24975C3.5 4.03708 3.57192 3.859 3.71575 3.7155C3.85942 3.57183 4.0375 3.5 4.25 3.5H19.75C19.9625 3.5 20.1406 3.57192 20.2843 3.71575C20.4281 3.85958 20.5 4.03775 20.5 4.25025C20.5 4.46292 20.4281 4.641 20.2843 4.7845C20.1406 4.92817 19.9625 5 19.75 5H4.25Z"
    />
  </svg>
`,qk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      d="M4.25 20.5C4.0375 20.5 3.85942 20.4281 3.71575 20.2843C3.57192 20.1404 3.5 19.9622 3.5 19.7498C3.5 19.5371 3.57192 19.359 3.71575 19.2155C3.85942 19.0718 4.0375 19 4.25 19H19.75C19.9625 19 20.1406 19.0719 20.2843 19.2158C20.4281 19.3596 20.5 19.5378 20.5 19.7502C20.5 19.9629 20.4281 20.141 20.2843 20.2845C20.1406 20.4282 19.9625 20.5 19.75 20.5H4.25ZM4.25 16.625C4.0375 16.625 3.85942 16.5531 3.71575 16.4093C3.57192 16.2654 3.5 16.0872 3.5 15.8748C3.5 15.6621 3.57192 15.484 3.71575 15.3405C3.85942 15.1968 4.0375 15.125 4.25 15.125H13.75C13.9625 15.125 14.1406 15.1969 14.2843 15.3408C14.4281 15.4846 14.5 15.6628 14.5 15.8753C14.5 16.0879 14.4281 16.266 14.2843 16.4095C14.1406 16.5532 13.9625 16.625 13.75 16.625H4.25ZM4.25 12.75C4.0375 12.75 3.85942 12.6781 3.71575 12.5343C3.57192 12.3904 3.5 12.2122 3.5 11.9998C3.5 11.7871 3.57192 11.609 3.71575 11.4655C3.85942 11.3218 4.0375 11.25 4.25 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2843 11.4658C20.4281 11.6096 20.5 11.7878 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2843 12.5345C20.1406 12.6782 19.9625 12.75 19.75 12.75H4.25ZM4.25 8.875C4.0375 8.875 3.85942 8.80308 3.71575 8.65925C3.57192 8.51542 3.5 8.33725 3.5 8.12475C3.5 7.91208 3.57192 7.734 3.71575 7.5905C3.85942 7.44683 4.0375 7.375 4.25 7.375H13.75C13.9625 7.375 14.1406 7.44692 14.2843 7.59075C14.4281 7.73458 14.5 7.91275 14.5 8.12525C14.5 8.33792 14.4281 8.516 14.2843 8.6595C14.1406 8.80317 13.9625 8.875 13.75 8.875H4.25ZM4.25 5C4.0375 5 3.85942 4.92808 3.71575 4.78425C3.57192 4.64042 3.5 4.46225 3.5 4.24975C3.5 4.03708 3.57192 3.859 3.71575 3.7155C3.85942 3.57183 4.0375 3.5 4.25 3.5H19.75C19.9625 3.5 20.1406 3.57192 20.2843 3.71575C20.4281 3.85958 20.5 4.03775 20.5 4.25025C20.5 4.46292 20.4281 4.641 20.2843 4.7845C20.1406 4.92817 19.9625 5 19.75 5H4.25Z"
    />
  </svg>
`,Uk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      d="M4.25 5C4.0375 5 3.85942 4.92808 3.71575 4.78425C3.57192 4.64042 3.5 4.46225 3.5 4.24975C3.5 4.03708 3.57192 3.859 3.71575 3.7155C3.85942 3.57183 4.0375 3.5 4.25 3.5H19.75C19.9625 3.5 20.1406 3.57192 20.2843 3.71575C20.4281 3.85958 20.5 4.03775 20.5 4.25025C20.5 4.46292 20.4281 4.641 20.2843 4.7845C20.1406 4.92817 19.9625 5 19.75 5H4.25ZM10.25 8.875C10.0375 8.875 9.85942 8.80308 9.71575 8.65925C9.57192 8.51542 9.5 8.33725 9.5 8.12475C9.5 7.91208 9.57192 7.734 9.71575 7.5905C9.85942 7.44683 10.0375 7.375 10.25 7.375H19.75C19.9625 7.375 20.1406 7.44692 20.2843 7.59075C20.4281 7.73458 20.5 7.91275 20.5 8.12525C20.5 8.33792 20.4281 8.516 20.2843 8.6595C20.1406 8.80317 19.9625 8.875 19.75 8.875H10.25ZM4.25 12.75C4.0375 12.75 3.85942 12.6781 3.71575 12.5343C3.57192 12.3904 3.5 12.2122 3.5 11.9998C3.5 11.7871 3.57192 11.609 3.71575 11.4655C3.85942 11.3218 4.0375 11.25 4.25 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2843 11.4658C20.4281 11.6096 20.5 11.7878 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2843 12.5345C20.1406 12.6782 19.9625 12.75 19.75 12.75H4.25ZM10.25 16.625C10.0375 16.625 9.85942 16.5531 9.71575 16.4093C9.57192 16.2654 9.5 16.0872 9.5 15.8748C9.5 15.6621 9.57192 15.484 9.71575 15.3405C9.85942 15.1968 10.0375 15.125 10.25 15.125H19.75C19.9625 15.125 20.1406 15.1969 20.2843 15.3408C20.4281 15.4846 20.5 15.6628 20.5 15.8753C20.5 16.0879 20.4281 16.266 20.2843 16.4095C20.1406 16.5532 19.9625 16.625 19.75 16.625H10.25ZM4.25 20.5C4.0375 20.5 3.85942 20.4281 3.71575 20.2843C3.57192 20.1404 3.5 19.9622 3.5 19.7498C3.5 19.5371 3.57192 19.359 3.71575 19.2155C3.85942 19.0718 4.0375 19 4.25 19H19.75C19.9625 19 20.1406 19.0719 20.2843 19.2158C20.4281 19.3596 20.5 19.5378 20.5 19.7502C20.5 19.9629 20.4281 20.141 20.2843 20.2845C20.1406 20.4282 19.9625 20.5 19.75 20.5H4.25Z"
    />
  </svg>
`,Q7=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      d="M8.85758 18.625C8.4358 18.625 8.07715 18.4772 7.78163 18.1817C7.48613 17.8862 7.33838 17.5275 7.33838 17.1058V6.8942C7.33838 6.47242 7.48613 6.11377 7.78163 5.81825C8.07715 5.52275 8.4358 5.375 8.85758 5.375H12.1999C13.2191 5.375 14.1406 5.69231 14.9643 6.32693C15.788 6.96154 16.1999 7.81603 16.1999 8.89038C16.1999 9.63779 16.0194 10.2471 15.6585 10.7183C15.2976 11.1894 14.9088 11.5314 14.4922 11.7442C15.005 11.9211 15.4947 12.2708 15.9614 12.7933C16.428 13.3157 16.6614 14.0192 16.6614 14.9038C16.6614 16.182 16.1902 17.1217 15.2479 17.723C14.3056 18.3243 13.3563 18.625 12.3999 18.625H8.85758ZM9.4883 16.6327H12.3191C13.1063 16.6327 13.6627 16.4141 13.9884 15.9769C14.314 15.5397 14.4768 15.1205 14.4768 14.7192C14.4768 14.3179 14.314 13.8987 13.9884 13.4615C13.6627 13.0243 13.0909 12.8057 12.273 12.8057H9.4883V16.6327ZM9.4883 10.875H12.0826C12.6903 10.875 13.172 10.7013 13.5278 10.3539C13.8836 10.0064 14.0615 9.59037 14.0615 9.10575C14.0615 8.59035 13.8733 8.16918 13.497 7.84225C13.1207 7.51533 12.6595 7.35188 12.1133 7.35188H9.4883V10.875Z"
    />
  </svg>
`,Wk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_952_6527)">
      <circle cx="12" cy="12" r="3" />
    </g>
    <defs>
      <clipPath id="clip0_952_6527">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,e6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_977_8070)">
      <path
        d="M4 10.5C3.17 10.5 2.5 11.17 2.5 12C2.5 12.83 3.17 13.5 4 13.5C4.83 13.5 5.5 12.83 5.5 12C5.5 11.17 4.83 10.5 4 10.5ZM4 4.5C3.17 4.5 2.5 5.17 2.5 6C2.5 6.83 3.17 7.5 4 7.5C4.83 7.5 5.5 6.83 5.5 6C5.5 5.17 4.83 4.5 4 4.5ZM4 16.5C3.17 16.5 2.5 17.18 2.5 18C2.5 18.82 3.18 19.5 4 19.5C4.82 19.5 5.5 18.82 5.5 18C5.5 17.18 4.83 16.5 4 16.5ZM8 19H20C20.55 19 21 18.55 21 18C21 17.45 20.55 17 20 17H8C7.45 17 7 17.45 7 18C7 18.55 7.45 19 8 19ZM8 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H8C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13ZM7 6C7 6.55 7.45 7 8 7H20C20.55 7 21 6.55 21 6C21 5.45 20.55 5 20 5H8C7.45 5 7 5.45 7 6Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_977_8070">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,jk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="32"
    height="32"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="M9 22a1 1 0 0 1-1-1v-3H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6.1l-3.7 3.71c-.2.19-.45.29-.7.29zm1-6v3.08L13.08 16H20V4H4v12z"
    />
  </svg>
`,Gk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_1803_1151)">
      <path
        d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM10.71 16.29C10.32 16.68 9.69 16.68 9.3 16.29L5.71 12.7C5.32 12.31 5.32 11.68 5.71 11.29C6.1 10.9 6.73 10.9 7.12 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.71 16.29Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_1803_1151">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,Kk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_1803_535)">
      <path
        d="M18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_1803_535">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,oh=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    fill="none"
    viewBox="0 0 24 24"
    stroke-width="1.5"
    stroke="currentColor"
    class="w-6 h-6"
  >
    <path
      stroke-linecap="round"
      stroke-linejoin="round"
      d="M19.5 8.25l-7.5 7.5-7.5-7.5"
    />
  </svg>
`,Yk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    fill="none"
    viewBox="0 0 24 24"
    stroke-width="1.5"
    stroke="currentColor"
  >
    <path
      stroke-linecap="round"
      stroke-linejoin="round"
      d="M15.75 19.5L8.25 12l7.5-7.5"
    />
  </svg>
`,Zk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    fill="none"
    viewBox="0 0 24 24"
    stroke-width="1.5"
    stroke="currentColor"
  >
    <path
      stroke-linecap="round"
      stroke-linejoin="round"
      d="M8.25 4.5l7.5 7.5-7.5 7.5"
    />
  </svg>
`,ih=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_1098_15553)">
      <path
        d="M18.3007 5.70973C17.9107 5.31973 17.2807 5.31973 16.8907 5.70973L12.0007 10.5897L7.1107 5.69973C6.7207 5.30973 6.0907 5.30973 5.7007 5.69973C5.3107 6.08973 5.3107 6.71973 5.7007 7.10973L10.5907 11.9997L5.7007 16.8897C5.3107 17.2797 5.3107 17.9097 5.7007 18.2997C6.0907 18.6897 6.7207 18.6897 7.1107 18.2997L12.0007 13.4097L16.8907 18.2997C17.2807 18.6897 17.9107 18.6897 18.3007 18.2997C18.6907 17.9097 18.6907 17.2797 18.3007 16.8897L13.4107 11.9997L18.3007 7.10973C18.6807 6.72973 18.6807 6.08973 18.3007 5.70973Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_1098_15553">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,sh=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_977_8081)">
      <path
        d="M9.4 16.6L4.8 12L9.4 7.4L8 6L2 12L8 18L9.4 16.6ZM14.6 16.6L19.2 12L14.6 7.4L16 6L22 12L16 18L14.6 16.6Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_977_8081">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,Xk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      d="M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1 2v14h16V5H4zm8 10h6v2h-6v-2zm-3.333-3L5.838 9.172l1.415-1.415L11.495 12l-4.242 4.243-1.415-1.415L8.667 12z"
    />
  </svg>
`,wc=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
    fill="none"
  >
    <g clip-path="url(#clip0_1013_1606)">
      <path
        d="M9.00012 16.1998L5.50012 12.6998C5.11012 12.3098 4.49012 12.3098 4.10012 12.6998C3.71012 13.0898 3.71012 13.7098 4.10012 14.0998L8.29012 18.2898C8.68012 18.6798 9.31012 18.6798 9.70012 18.2898L20.3001 7.69982C20.6901 7.30982 20.6901 6.68982 20.3001 6.29982C19.9101 5.90982 19.2901 5.90982 18.9001 6.29982L9.00012 16.1998Z"
        fill="#817567"
      />
    </g>
    <defs>
      <clipPath id="clip0_1013_1606">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,t6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    height="24px"
    viewBox="0 -960 960 960"
    width="24px"
    fill="none"
  >
    <path
      d="M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"
    />
  </svg>
`,r6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_977_7900)">
      <path
        fill-rule="evenodd"
        clip-rule="evenodd"
        d="M19 13H5C4.45 13 4 12.55 4 12C4 11.45 4.45 11 5 11H19C19.55 11 20 11.45 20 12C20 12.55 19.55 13 19 13Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_977_7900">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,q7=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="16"
    height="16"
    viewBox="0 0 16 16"
  >
    <path
      d="M3.5 9.83366C3.35833 9.83366 3.23961 9.78571 3.14383 9.68983C3.04794 9.59394 3 9.47516 3 9.33349C3 9.19171 3.04794 9.07299 3.14383 8.97733C3.23961 8.88155 3.35833 8.83366 3.5 8.83366H12.5C12.6417 8.83366 12.7604 8.8816 12.8562 8.97749C12.9521 9.07338 13 9.19216 13 9.33383C13 9.4756 12.9521 9.59433 12.8562 9.68999C12.7604 9.78577 12.6417 9.83366 12.5 9.83366H3.5ZM3.5 7.16699C3.35833 7.16699 3.23961 7.11905 3.14383 7.02316C3.04794 6.92727 3 6.80849 3 6.66683C3 6.52505 3.04794 6.40633 3.14383 6.31066C3.23961 6.21488 3.35833 6.16699 3.5 6.16699H12.5C12.6417 6.16699 12.7604 6.21494 12.8562 6.31083C12.9521 6.40671 13 6.52549 13 6.66716C13 6.80894 12.9521 6.92766 12.8562 7.02333C12.7604 7.1191 12.6417 7.16699 12.5 7.16699H3.5Z"
    />
  </svg>
`,Ia=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_1013_1585)">
      <path
        d="M14.06 9.02L14.98 9.94L5.92 19H5V18.08L14.06 9.02ZM17.66 3C17.41 3 17.15 3.1 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C18.17 3.09 17.92 3 17.66 3ZM14.06 6.19L3 17.25V21H6.75L17.81 9.94L14.06 6.19Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_1013_1585">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,n6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="M9 16l-5-5l5-5l1.4 1.4L7.825 10H18V6h2v6H7.825l2.575 2.6z"
    />
  </svg>
`,Jk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="M9.55 17.575L4.225 12.25l1.4-1.425L9.55 14.75l8.825-8.825l1.4 1.425z"
    />
  </svg>
`,Qk=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_992_5553)">
      <path
        d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM12 17H14V7H10V9H12V17Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_992_5553">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,e_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_992_5559)">
      <path
        d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM15 15H11V13H13C14.1 13 15 12.11 15 11V9C15 7.89 14.1 7 13 7H9V9H13V11H11C9.9 11 9 11.89 9 13V17H15V15Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_992_5559">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,t_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_992_5565)">
      <path
        d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM15 15V13.5C15 12.67 14.33 12 13.5 12C14.33 12 15 11.33 15 10.5V9C15 7.89 14.1 7 13 7H9V9H13V11H11V13H13V15H9V17H13C14.1 17 15 16.11 15 15Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_992_5565">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,r_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_977_7757)">
      <path
        d="M19.04 3H5.04004C3.94004 3 3.04004 3.9 3.04004 5V19C3.04004 20.1 3.94004 21 5.04004 21H19.04C20.14 21 21.04 20.1 21.04 19V5C21.04 3.9 20.14 3 19.04 3ZM19.04 19H5.04004V5H19.04V19ZM13.04 17H15.04V7H13.04V11H11.04V7H9.04004V13H13.04V17Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_977_7757">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,n_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_977_7760)">
      <path
        d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM15 15V13C15 11.89 14.1 11 13 11H11V9H15V7H9V13H13V15H9V17H13C14.1 17 15 16.11 15 15Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_977_7760">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,o_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_977_7763)">
      <path
        d="M11 17H13C14.1 17 15 16.11 15 15V13C15 11.89 14.1 11 13 11H11V9H15V7H11C9.9 7 9 7.89 9 9V15C9 16.11 9.9 17 11 17ZM11 13H13V15H11V13ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_977_7763">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,gc=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_977_8075)">
      <path
        d="M19 5V19H5V5H19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM14.14 11.86L11.14 15.73L9 13.14L6 17H18L14.14 11.86Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_977_8075">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,o6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      d="M6.29811 18.625C6.04505 18.625 5.83115 18.5375 5.65641 18.3626C5.48166 18.1877 5.39429 17.9736 5.39429 17.7203C5.39429 17.467 5.48166 17.2532 5.65641 17.0788C5.83115 16.9045 6.04505 16.8173 6.29811 16.8173H9.21159L12.452 7.18265H9.53851C9.28545 7.18265 9.07155 7.0952 8.89681 6.9203C8.72206 6.7454 8.63469 6.5313 8.63469 6.278C8.63469 6.02472 8.72206 5.81089 8.89681 5.63652C9.07155 5.46217 9.28545 5.375 9.53851 5.375H16.8847C17.1377 5.375 17.3516 5.46245 17.5264 5.63735C17.7011 5.81225 17.7885 6.02634 17.7885 6.27962C17.7885 6.53293 17.7011 6.74676 17.5264 6.92113C17.3516 7.09548 17.1377 7.18265 16.8847 7.18265H14.2789L11.0385 16.8173H13.6443C13.8973 16.8173 14.1112 16.9048 14.286 17.0797C14.4607 17.2546 14.5481 17.4687 14.5481 17.722C14.5481 17.9752 14.4607 18.1891 14.286 18.3634C14.1112 18.5378 13.8973 18.625 13.6443 18.625H6.29811Z"
    />
  </svg>
`,i6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      d="M17.0385 19.5003V16.5388H14.0769V15.0388H17.0385V12.0773H18.5384V15.0388H21.5V16.5388H18.5384V19.5003H17.0385ZM10.8077 16.5388H7.03845C5.78282 16.5388 4.7125 16.0963 3.8275 15.2114C2.9425 14.3266 2.5 13.2564 2.5 12.0009C2.5 10.7454 2.9425 9.67504 3.8275 8.78979C4.7125 7.90454 5.78282 7.46191 7.03845 7.46191H10.8077V8.96186H7.03845C6.1987 8.96186 5.48235 9.25834 4.8894 9.85129C4.29645 10.4442 3.99998 11.1606 3.99998 12.0003C3.99998 12.8401 4.29645 13.5564 4.8894 14.1494C5.48235 14.7423 6.1987 15.0388 7.03845 15.0388H10.8077V16.5388ZM8.25 12.7503V11.2504H15.75V12.7503H8.25ZM21.5 12.0003H20C20 11.1606 19.7035 10.4442 19.1106 9.85129C18.5176 9.25834 17.8013 8.96186 16.9615 8.96186H13.1923V7.46191H16.9615C18.2171 7.46191 19.2875 7.90441 20.1725 8.78939C21.0575 9.67439 21.5 10.7447 21.5 12.0003Z"
    />
  </svg>
`,i_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="M3 18v-2h13v2zm0-5v-2h18v2zm0-5V6h18v2zm15 13v-3h-3v-2h3v-3h2v3h3v2h-3v3z"
    />
  </svg>
`,s_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_971_7680)">
      <path
        d="M11 18C11 19.1 10.1 20 9 20C7.9 20 7 19.1 7 18C7 16.9 7.9 16 9 16C10.1 16 11 16.9 11 18ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 8C16.1 8 17 7.1 17 6C17 4.9 16.1 4 15 4C13.9 4 13 4.9 13 6C13 7.1 13.9 8 15 8ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_971_7680">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,s6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_977_8067)">
      <path
        d="M8 7H20C20.55 7 21 6.55 21 6C21 5.45 20.55 5 20 5H8C7.45 5 7 5.45 7 6C7 6.55 7.45 7 8 7ZM20 17H8C7.45 17 7 17.45 7 18C7 18.55 7.45 19 8 19H20C20.55 19 21 18.55 21 18C21 17.45 20.55 17 20 17ZM20 11H8C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11ZM4.5 16H2.5C2.22 16 2 16.22 2 16.5C2 16.78 2.22 17 2.5 17H4V17.5H3.5C3.22 17.5 3 17.72 3 18C3 18.28 3.22 18.5 3.5 18.5H4V19H2.5C2.22 19 2 19.22 2 19.5C2 19.78 2.22 20 2.5 20H4.5C4.78 20 5 19.78 5 19.5V16.5C5 16.22 4.78 16 4.5 16ZM2.5 5H3V7.5C3 7.78 3.22 8 3.5 8C3.78 8 4 7.78 4 7.5V4.5C4 4.22 3.78 4 3.5 4H2.5C2.22 4 2 4.22 2 4.5C2 4.78 2.22 5 2.5 5ZM4.5 10H2.5C2.22 10 2 10.22 2 10.5C2 10.78 2.22 11 2.5 11H3.8L2.12 12.96C2.04 13.05 2 13.17 2 13.28V13.5C2 13.78 2.22 14 2.5 14H4.5C4.78 14 5 13.78 5 13.5C5 13.22 4.78 13 4.5 13H3.2L4.88 11.04C4.96 10.95 5 10.83 5 10.72V10.5C5 10.22 4.78 10 4.5 10Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_977_8067">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,L1=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_971_7676)">
      <path
        d="M18 13H13V18C13 18.55 12.55 19 12 19C11.45 19 11 18.55 11 18V13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H11V6C11 5.45 11.45 5 12 5C12.55 5 13 5.45 13 6V11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_971_7676">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,a6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_977_7897)">
      <path
        d="M7.17 17C7.68 17 8.15 16.71 8.37 16.26L9.79 13.42C9.93 13.14 10 12.84 10 12.53V8C10 7.45 9.55 7 9 7H5C4.45 7 4 7.45 4 8V12C4 12.55 4.45 13 5 13H7L5.97 15.06C5.52 15.95 6.17 17 7.17 17ZM17.17 17C17.68 17 18.15 16.71 18.37 16.26L19.79 13.42C19.93 13.14 20 12.84 20 12.53V8C20 7.45 19.55 7 19 7H15C14.45 7 14 7.45 14 8V12C14 12.55 14.45 13 15 13H17L15.97 15.06C15.52 15.95 16.17 17 17.17 17Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_977_7897">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,R1=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      d="M7.30775 20.4997C6.81058 20.4997 6.385 20.3227 6.031 19.9687C5.677 19.6147 5.5 19.1892 5.5 18.692V5.99973H5.25C5.0375 5.99973 4.85942 5.92782 4.71575 5.78398C4.57192 5.64015 4.5 5.46198 4.5 5.24948C4.5 5.03682 4.57192 4.85873 4.71575 4.71523C4.85942 4.57157 5.0375 4.49973 5.25 4.49973H9C9 4.2549 9.08625 4.04624 9.25875 3.87374C9.43108 3.7014 9.63967 3.61523 9.8845 3.61523H14.1155C14.3603 3.61523 14.5689 3.7014 14.7413 3.87374C14.9138 4.04624 15 4.2549 15 4.49973H18.75C18.9625 4.49973 19.1406 4.57165 19.2843 4.71548C19.4281 4.85932 19.5 5.03748 19.5 5.24998C19.5 5.46265 19.4281 5.64073 19.2843 5.78423C19.1406 5.9279 18.9625 5.99973 18.75 5.99973H18.5V18.692C18.5 19.1892 18.323 19.6147 17.969 19.9687C17.615 20.3227 17.1894 20.4997 16.6923 20.4997H7.30775ZM17 5.99973H7V18.692C7 18.7818 7.02883 18.8556 7.0865 18.9132C7.14417 18.9709 7.21792 18.9997 7.30775 18.9997H16.6923C16.7821 18.9997 16.8558 18.9709 16.9135 18.9132C16.9712 18.8556 17 18.7818 17 18.692V5.99973ZM10.1543 16.9997C10.3668 16.9997 10.5448 16.9279 10.6885 16.7842C10.832 16.6404 10.9037 16.4622 10.9037 16.2497V8.74973C10.9037 8.53723 10.8318 8.35907 10.688 8.21523C10.5443 8.07157 10.3662 7.99973 10.1535 7.99973C9.941 7.99973 9.76292 8.07157 9.61925 8.21523C9.47575 8.35907 9.404 8.53723 9.404 8.74973V16.2497C9.404 16.4622 9.47583 16.6404 9.6195 16.7842C9.76333 16.9279 9.94158 16.9997 10.1543 16.9997ZM13.8465 16.9997C14.059 16.9997 14.2371 16.9279 14.3807 16.7842C14.5243 16.6404 14.596 16.4622 14.596 16.2497V8.74973C14.596 8.53723 14.5242 8.35907 14.3805 8.21523C14.2367 8.07157 14.0584 7.99973 13.8458 7.99973C13.6333 7.99973 13.4552 8.07157 13.3115 8.21523C13.168 8.35907 13.0962 8.53723 13.0962 8.74973V16.2497C13.0962 16.4622 13.1682 16.6404 13.312 16.7842C13.4557 16.9279 13.6338 16.9997 13.8465 16.9997Z"
    />
  </svg>
`,a_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.713T18 6.75V4h2v7h-7V9h4.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.925 0 3.475-1.1T17.65 14h2.1q-.7 2.65-2.85 4.325T12 20"
    />
  </svg>
`,l6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    fill="none"
    viewBox="0 0 24 24"
    stroke-width="1.5"
    stroke="currentColor"
    class="w-6 h-6"
  >
    <path
      stroke-linecap="round"
      stroke-linejoin="round"
      d="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"
    />
  </svg>
`,l_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="M11 20V7.825l-5.6 5.6L4 12l8-8l8 8l-1.4 1.425l-5.6-5.6V20z"
    />
  </svg>
`,c_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="M3 20v-6l8-2l-8-2V4l19 8z"
    />
  </svg>
`,u_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="M5 13v-2h14v2z"
    />
  </svg>
`,c6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      d="M3.25 13.7404C3.0375 13.7404 2.85938 13.6684 2.71563 13.5246C2.57188 13.3808 2.5 13.2026 2.5 12.99C2.5 12.7774 2.57188 12.5993 2.71563 12.4558C2.85938 12.3122 3.0375 12.2404 3.25 12.2404H20.75C20.9625 12.2404 21.1406 12.3123 21.2843 12.4561C21.4281 12.5999 21.5 12.7781 21.5 12.9907C21.5 13.2033 21.4281 13.3814 21.2843 13.525C21.1406 13.6686 20.9625 13.7404 20.75 13.7404H3.25ZM10.9423 10.2596V6.62495H6.5673C6.2735 6.62495 6.02377 6.52201 5.8181 6.31613C5.61245 6.11026 5.50963 5.86027 5.50963 5.56615C5.50963 5.27205 5.61245 5.02083 5.8181 4.8125C6.02377 4.60417 6.2735 4.5 6.5673 4.5H17.4423C17.7361 4.5 17.9858 4.60294 18.1915 4.80883C18.3971 5.01471 18.5 5.2647 18.5 5.5588C18.5 5.85292 18.3971 6.10413 18.1915 6.31245C17.9858 6.52078 17.7361 6.62495 17.4423 6.62495H13.0673V10.2596H10.9423ZM10.9423 15.7211H13.0673V18.4423C13.0673 18.7361 12.9643 18.9858 12.7584 19.1915C12.5526 19.3971 12.3026 19.5 12.0085 19.5C11.7144 19.5 11.4631 19.3962 11.2548 19.1887C11.0465 18.9811 10.9423 18.7291 10.9423 18.4327V15.7211Z"
    />
  </svg>
`,u6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_977_8078)">
      <path
        d="M20 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H20C21.1 21 22 20.1 22 19V5C22 3.9 21.1 3 20 3ZM20 5V8H5V5H20ZM15 19H10V10H15V19ZM5 10H8V19H5V10ZM17 19V10H20V19H17Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_977_8078">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,d_=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <g clip-path="url(#clip0_992_5547)">
      <path
        d="M5 5.5C5 6.33 5.67 7 6.5 7H10.5V17.5C10.5 18.33 11.17 19 12 19C12.83 19 13.5 18.33 13.5 17.5V7H17.5C18.33 7 19 6.33 19 5.5C19 4.67 18.33 4 17.5 4H6.5C5.67 4 5 4.67 5 5.5Z"
      />
    </g>
    <defs>
      <clipPath id="clip0_992_5547">
        <rect width="24" height="24" />
      </clipPath>
    </defs>
  </svg>
`,d6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      d="M5.66936 16.3389L9.39244 12.6158C9.54115 12.4671 9.71679 12.3937 9.91936 12.3957C10.1219 12.3976 10.2975 12.4761 10.4463 12.6312C10.5847 12.7823 10.654 12.9585 10.654 13.1599C10.654 13.3613 10.5847 13.5363 10.4463 13.6851L6.32704 17.8197C6.14627 18.0004 5.93538 18.0908 5.69436 18.0908C5.45333 18.0908 5.24243 18.0004 5.06166 17.8197L3.01744 15.7754C2.87899 15.637 2.81136 15.4629 2.81456 15.2533C2.81776 15.0437 2.88859 14.8697 3.02706 14.7312C3.16551 14.5928 3.34008 14.5235 3.55076 14.5235C3.76144 14.5235 3.93494 14.5928 4.07126 14.7312L5.66936 16.3389ZM5.66936 8.72359L9.39244 5.00049C9.54115 4.85177 9.71679 4.77838 9.91936 4.78031C10.1219 4.78223 10.2975 4.86075 10.4463 5.01586C10.5847 5.16691 10.654 5.34314 10.654 5.54454C10.654 5.74592 10.5847 5.92097 10.4463 6.06969L6.32704 10.2043C6.14627 10.3851 5.93538 10.4755 5.69436 10.4755C5.45333 10.4755 5.24243 10.3851 5.06166 10.2043L3.01744 8.16009C2.87899 8.02162 2.81136 7.84759 2.81456 7.63799C2.81776 7.42837 2.88859 7.25433 3.02706 7.11586C3.16551 6.97741 3.34008 6.90819 3.55076 6.90819C3.76144 6.90819 3.93494 6.97741 4.07126 7.11586L5.66936 8.72359ZM13.7597 16.5581C13.5472 16.5581 13.3691 16.4862 13.2253 16.3424C13.0816 16.1986 13.0097 16.0204 13.0097 15.8078C13.0097 15.5952 13.0816 15.4171 13.2253 15.2735C13.3691 15.13 13.5472 15.0582 13.7597 15.0582H20.7597C20.9722 15.0582 21.1503 15.1301 21.2941 15.2739C21.4378 15.4177 21.5097 15.5959 21.5097 15.8085C21.5097 16.0211 21.4378 16.1992 21.2941 16.3427C21.1503 16.4863 20.9722 16.5581 20.7597 16.5581H13.7597ZM13.7597 8.94276C13.5472 8.94276 13.3691 8.87085 13.2253 8.72704C13.0816 8.58324 13.0097 8.40504 13.0097 8.19244C13.0097 7.97985 13.0816 7.80177 13.2253 7.65819C13.3691 7.5146 13.5472 7.44281 13.7597 7.44281H20.7597C20.9722 7.44281 21.1503 7.51471 21.2941 7.65851C21.4378 7.80233 21.5097 7.98053 21.5097 8.19311C21.5097 8.40571 21.4378 8.5838 21.2941 8.72739C21.1503 8.87097 20.9722 8.94276 20.7597 8.94276H13.7597Z"
    />
  </svg>
`,U7=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="24"
    height="24"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="m12.9 16l-2.55-2.5l.05-.05q1.45-1.6 2.262-3.117T13.95 7H16V5h-6V3H8v2H2v2h9.1q-.5 1.2-1.225 2.387T8 11.7q-.6-.6-1.187-1.412T5.85 8.6H3.85q.5 1.4 1.3 2.7T6.95 13.7L2.85 17.75L4.25 19.15L8 15.4L10.55 17.95zM18.5 22h-2L21 10h2l4.5 12h-2l-1.05-3h-4.9zm1.6-5h3.6l-1.8-5.1z"
    />
  </svg>
`,ah=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="32"
    height="32"
    viewBox="0 0 24 24"
  >
    <path
      fill="currentColor"
      d="M7 19v-.808L13.096 12L7 5.808V5h10v1.25H9.102L14.727 12l-5.625 5.77H17V19z"
    />
  </svg>
`,h6=`
  <svg
    xmlns="http://www.w3.org/2000/svg"
    height="24px"
    viewBox="0 -960 960 960"
    width="24px"
  >
    <path
      d="m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"
    />
  </svg>
`,h_={[xe.CodeMirror]:{theme:em,languages:Kp,expandIcon:oh,searchIcon:l6,clearSearchIcon:ih,searchPlaceholder:"Search language",noResultText:"No result",previewToggleIcon:t=>t?Ia:h6}},f_=xc([],"FeaturesCtx"),p_=xc({},"CrepeCtx");function m_(t){return t.get("CrepeCtx")}function Fi(t){return t.use("FeaturesCtx")}function br(t){return e=>{Fi(e).update(r=>r.includes(t)?r:[...r,t])}}function v_(t,e){var r;let n=t.get(Pe),o=t.get(wf),{state:i}=n,s=o(i.doc),a="";if(!i.selection.empty){let{from:l,to:c}=i.selection,u=i.doc.slice(l,c),{schema:f}=i.doc.type,p=f.topNodeType.createAndFill(null,u.content);if(!p){let v=(r=f.nodes.paragraph)==null?void 0:r.createAndFill(null,u.content);v&&(p=f.topNodeType.createAndFill(null,v))}a=p?o(p):i.doc.textBetween(l,c)}return{document:s,selection:a,instruction:e}}var Hi=Ue({provider:void 0,buildContext:void 0,diffReviewOnEnd:!0,onError:t=>{console.error(`[milkdown/ai] [${t.code}]`,t)},aiIcon:void 0},"aiProviderConfig"),ft=Ue({abortController:null,label:"",lastInstruction:"",lastLabel:void 0,lastFrom:-1,lastTo:-1,diffOwnedByAI:!1},"aiSession");function f6(t,e){let r=t.get(Hi.key);try{r.onError(e)}catch(n){console.error("[milkdown/ai] onError handler failed:",n)}}function yc(t){let e=t.get(ft.key);t.set(ft.key,{...e,abortController:null,label:""})}async function g_(t,e,r,n){try{let o=e(r,n.signal),i=t.get(ne);for await(let l of o){if(n.signal.aborted)break;i.call(dp.key,l)}if(n.signal.aborted)return;let s=t.get(Hi.key);if(s.diffReviewOnEnd){let l=t.get(ft.key);t.set(ft.key,{...l,diffOwnedByAI:!0})}let a=i.call(hp.key,{diffReview:s.diffReviewOnEnd});if(s.diffReviewOnEnd&&!a){let l=t.get(ft.key);t.set(ft.key,{...l,diffOwnedByAI:!1})}}catch(o){if(n.signal.aborted)return;let i=sf(o);f6(t,i),t.get(ne).call(es.key,{keep:!1})}finally{t.get(ft.key).abortController===n&&yc(t)}}var lh=jo("RunAI",t=>e=>(r,n)=>{var o,i,s,a;if(!e?.instruction)return!1;let l=t.get(Hi.key);if(!l.provider||t.get(ft.key).abortController||(o=Zo.getState(r))!=null&&o.active||(i=xo.getState(r))!=null&&i.active)return!1;if(!n)return!0;let u=new AbortController,{from:f,to:p}=r.selection;t.set(ft.key,{abortController:u,label:(s=e.label)!=null?s:"",lastInstruction:e.instruction,lastLabel:e.label,lastFrom:f,lastTo:p,diffOwnedByAI:!1});let v=t.get(ne),b=r.selection.empty?"cursor":"selection";if(!v.call(up.key,{insertAt:b}))return yc(t),!1;let w;try{w=((a=l.buildContext)!=null?a:v_)(t,e.instruction)}catch(g){let x=af(g);return f6(t,x),v.call(es.key,{keep:!1}),yc(t),!1}return g_(t,l.provider,w,u),!0}),p6=jo("AbortAI",t=>e=>(r,n)=>{var o;let i=t.get(ft.key);return n?i.abortController?(i.abortController.abort(),yc(t),(o=Zo.getState(r))!=null&&o.active&&t.get(ne).call(es.key,e),!0):!1:!!i.abortController}),m6=t=>{throw TypeError(t)},ch=(t,e,r)=>e.has(t)||m6("Cannot "+r),vt=(t,e,r)=>(ch(t,e,"read from private field"),r?r.call(t):e.get(t)),gr=(t,e,r)=>e.has(t)?m6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),sn=(t,e,r,n)=>(ch(t,e,"write to private field"),e.set(t,r),r),Oi=(t,e,r)=>(ch(t,e,"access private method"),r),ba,K0,wa,La,Y0,Z0,po,Ii,uo,v6,X0,g6,P1,y6,B1,V1,zi="milkdown-ai-diff-actions";function b6(t,e){t.innerHTML=at.sanitize(e.trim())}function y_(t){let e=document.createElement("span");return e.className=`${zi}-icon`,b6(e,t),e}var H1=class{constructor(e,r,n){this.ctx=e,gr(this,uo),gr(this,ba),gr(this,K0),gr(this,wa),gr(this,La),gr(this,Y0,!1),gr(this,Z0,!1),gr(this,po,null),gr(this,Ii,!1),gr(this,P1,()=>{let s=this.ctx.get(ft.key);if(!s.lastInstruction||!vt(this,Ii)||!Oi(this,uo,y6).call(this))return;let a=this.ctx.get(ne);a.call($c.key);let l=this.ctx.get(Pe),{doc:c}=l.state,u=Math.min(Math.max(s.lastFrom,0),c.content.size),f=Math.min(Math.max(s.lastTo,0),c.content.size);l.dispatch(l.state.tr.setSelection(Xe.create(l.state.doc,u,f))),a.call(lh.key,{instruction:s.lastInstruction,label:s.lastLabel})}),gr(this,B1,()=>{this.ctx.get(ne).call($c.key)}),gr(this,V1,()=>{this.ctx.get(ne).call(Fc.key)}),sn(this,La,n),sn(this,K0,Oi(this,uo,v6).call(this,r));let o=document.createElement("div");o.className=zi,o.dataset.show="false",sn(this,wa,Oi(this,uo,X0).call(this,"retry",n.retryIcon,n.retryLabel,vt(this,P1))),o.appendChild(vt(this,wa)),o.appendChild(Oi(this,uo,X0).call(this,"reject",n.rejectIcon,n.rejectAllLabel,vt(this,B1)));let i=Oi(this,uo,X0).call(this,"accept",n.acceptIcon,n.acceptAllLabel,vt(this,V1));i.appendChild(Oi(this,uo,g6).call(this)),o.appendChild(i),sn(this,ba,o),vt(this,K0).appendChild(o),this.update(r)}update(e){var r;let n=!!((r=xo.getState(e.state))!=null&&r.active);if(n!==vt(this,Z0))if(sn(this,Z0,n),n){let i=this.ctx.get(ft.key);sn(this,Ii,i.diffOwnedByAI),sn(this,po,e.state.doc)}else{sn(this,Ii,!1),sn(this,po,null);let i=this.ctx.get(ft.key);i.diffOwnedByAI&&this.ctx.set(ft.key,{...i,diffOwnedByAI:!1})}let o=n&&vt(this,Ii);if(o!==vt(this,Y0)&&(sn(this,Y0,o),vt(this,ba).dataset.show=o?"true":"false"),o){let i=this.ctx.get(ft.key),s=!!vt(this,po)&&e.state.doc.eq(vt(this,po));vt(this,wa).disabled=!i.lastInstruction||!s}}destroy(){vt(this,ba).remove()}};ba=new WeakMap;K0=new WeakMap;wa=new WeakMap;La=new WeakMap;Y0=new WeakMap;Z0=new WeakMap;po=new WeakMap;Ii=new WeakMap;uo=new WeakSet;v6=function(t){var e;return(e=t.dom.closest(".milkdown"))!=null?e:document.body};X0=function(t,e,r,n){let o=document.createElement("button");o.type="button",o.className=`${zi}-btn ${zi}-btn-${t}`,o.appendChild(y_(e));let i=document.createElement("span");return i.textContent=r,o.appendChild(i),o.addEventListener("mousedown",s=>s.preventDefault()),o.addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),n()}),o};g6=function(){let t=document.createElement("span");t.className=`${zi}-shortcut`;let e=document.createElement("span");e.textContent=vt(this,La).modSymbol;let r=document.createElement("span");return r.className=`${zi}-shortcut-icon`,b6(r,vt(this,La).enterKeyIcon),t.append(e,r),t};P1=new WeakMap;y6=function(){return vt(this,po)?this.ctx.get(Pe).state.doc.eq(vt(this,po)):!1};B1=new WeakMap;V1=new WeakMap;var b_=new kr("CREPE_AI_DIFF_ACTIONS_PANEL"),w_="Retry",x_="Reject all",k_="Accept all";function __(){var t,e,r,n;if(typeof navigator>"u")return"\u2318";let o=navigator,i=(n=(r=(e=(t=o.userAgentData)==null?void 0:t.platform)!=null?e:o.platform)!=null?r:o.userAgent)!=null?n:"";return/mac|iphone|ipad|ipod/i.test(i)?"\u2318":"Ctrl"}var C_=__();function S_(t){var e,r,n,o,i,s,a;let{config:l,enterKeyIcon:c}=t;return{retryLabel:(e=l?.retryLabel)!=null?e:w_,rejectAllLabel:(r=l?.rejectAllLabel)!=null?r:x_,acceptAllLabel:(n=l?.acceptAllLabel)!=null?n:k_,retryIcon:(o=l?.retryIcon)!=null?o:a_,rejectIcon:(i=l?.rejectIcon)!=null?i:ih,acceptIcon:(s=l?.acceptIcon)!=null?s:wc,enterKeyIcon:c??n6,modSymbol:(a=l?.modSymbol)!=null?a:C_}}function E_(t={}){let e=S_(t);return Pr(r=>new xr({key:b_,view(n){return new H1(r,n,e)},props:{handleKeyDown(n,o){var i;return o.key!=="Enter"||!(o.metaKey||o.ctrlKey)||!((i=xo.getState(n.state))!=null&&i.active)||!r.get(ft.key).diffOwnedByAI?!1:(o.preventDefault(),r.get(ne).call(Fc.key),!0)}}}))}var w6=t=>{throw TypeError(t)},x6=(t,e,r)=>e.has(t)||w6("Cannot "+r),In=(t,e,r)=>(x6(t,e,"read from private field"),r?r.call(t):e.get(t)),W7=(t,e,r)=>e.has(t)?w6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),j7=(t,e,r,n)=>(x6(t,e,"write to private field"),e.set(t,r),r),ln,xa;function G7(t){let e={addItem:(r,n)=>(t.items.set(r,n),e),removeItem:r=>(t.items.delete(r),e),getItem:r=>t.items.get(r),clear:()=>(t.items.clear(),e)};return e}var z1=class{constructor(){W7(this,ln,[]),this.addItem=(e,r)=>(In(this,xa).call(this,e),In(this,ln).push({kind:"item",id:e,item:r}),this),this.addSubmenu=(e,r,n)=>{In(this,xa).call(this,e);let o={def:r,items:new Map};return n&&n(G7(o)),In(this,ln).push({kind:"submenu",id:e,node:o}),this},this.removeItem=e=>(In(this,xa).call(this,e),this),this.getItem=e=>{let r=In(this,ln).find(n=>n.kind==="item"&&n.id===e);return r?.kind==="item"?r.item:void 0},this.getSubmenu=e=>{let r=In(this,ln).find(n=>n.kind==="submenu"&&n.id===e);return r?.kind==="submenu"?G7(r.node):void 0},this.clear=()=>(j7(this,ln,[]),this),this.build=()=>{let e=[],r={};for(let n of In(this,ln))n.kind==="item"?e.push({kind:"item",id:n.id,item:n.item}):(e.push({kind:"submenu",id:n.id,def:n.node.def}),r[n.id]={def:n.node.def,items:Array.from(n.node.items.entries()).map(([o,i])=>({id:o,item:i}))});return{main:e,submenus:r}},W7(this,xa,e=>{j7(this,ln,In(this,ln).filter(r=>r.id!==e))})}};ln=new WeakMap;xa=new WeakMap;function T_(t){t.addItem("improve",{icon:nh,label:"Improve writing",streamingLabel:"Improving writing",prompt:"Improve the writing while preserving the original meaning."}).addItem("grammar",{icon:Jk,label:"Fix grammar & spelling",streamingLabel:"Fixing grammar & spelling",prompt:"Fix any grammar and spelling errors without changing the meaning."}).addItem("shorter",{icon:u_,label:"Make shorter",streamingLabel:"Making shorter",prompt:"Make this shorter while preserving the key information."}).addItem("longer",{icon:i_,label:"Make longer",streamingLabel:"Expanding",prompt:"Expand this with more detail and examples."}),t.addSubmenu("tone",{icon:Ia,label:"Change tone\u2026",title:"Change tone",searchPlaceholder:"Search tones\u2026"},e=>{let r=[["professional","Professional"],["casual","Casual"],["confident","Confident"],["friendly","Friendly"],["direct","Direct"],["formal","Formal"]];for(let[n,o]of r)e.addItem(n,{icon:Ia,label:o,streamingLabel:"Adjusting tone",prompt:`Rewrite this in a ${o.toLowerCase()} tone.`})}),t.addSubmenu("translate",{icon:U7,label:"Translate\u2026",title:"Translate",searchPlaceholder:"Search languages\u2026"},e=>{let r=[["english","English","English"],["chinese","Chinese","Chinese (Simplified)"],["japanese","Japanese","Japanese"],["korean","Korean","Korean"],["spanish","Spanish","Spanish"],["french","French","French"],["german","German","German"]];for(let[n,o,i]of r)e.addItem(n,{icon:U7,label:o,streamingLabel:`Translating to ${o}`,prompt:`Translate this to ${i}.`})})}function mo(...t){}mo(E);function A_(t,e){let r=e.trim();if(!r)return[t];let n=t.toLowerCase(),o=r.toLowerCase(),i=n.indexOf(o);return i===-1?[t]:[t.slice(0,i),E("mark",null,t.slice(i,i+r.length)),t.slice(i+r.length)]}var M_=He({props:{placeholder:{type:Object,required:!0},resetSignal:{type:Object,required:!0},suggestions:{type:Object,required:!0},chrome:{type:Object,required:!0},onConfirm:{type:Function,required:!0},onCancel:{type:Function,required:!0}},setup({placeholder:t,resetSignal:e,suggestions:r,chrome:n,onConfirm:o,onCancel:i}){let s=Q(""),a=Q({kind:"main"}),l=Q(0),c=Q(null),u=Q(null),f=`ai-instruction-list-${Math.random().toString(36).slice(2,9)}`,p=B=>`${f}-opt-${B}`,v=`ai-instruction-input-${Math.random().toString(36).slice(2,9)}`;Xt(e,()=>{s.value="",a.value={kind:"main"},l.value=0});let b=xt(()=>{if(a.value.kind==="submenu"){let B=r.submenus[a.value.id];return B?B.items.map(({id:ye,item:Ae})=>({id:ye,icon:Ae.icon,label:Ae.label,hasSubmenu:!1,prompt:{text:Ae.prompt,streamingLabel:Ae.streamingLabel}})):[]}return r.main.map(B=>B.kind==="item"?{id:B.id,icon:B.item.icon,label:B.item.label,hasSubmenu:!1,prompt:{text:B.item.prompt,streamingLabel:B.item.streamingLabel}}:{id:B.id,icon:B.def.icon,label:B.def.label,hasSubmenu:!0})}),w=xt(()=>{var B,ye;return a.value.kind!=="submenu"?null:(ye=(B=r.submenus[a.value.id])==null?void 0:B.def)!=null?ye:null}),g=xt(()=>{let B=s.value.trim().toLowerCase();return B?b.value.filter(ye=>ye.label.toLowerCase().includes(B)):b.value}),x=xt(()=>s.value.trim().length>0),k=xt(()=>g.value.length+(x.value?1:0));Xt([g,a,x],()=>{l.value=x.value?g.value.length:0});let T=()=>{Ds(()=>{var B;return(B=c.value)==null?void 0:B.focus()})},O=B=>{a.value={kind:"submenu",id:B},s.value="",l.value=0,T()},N=()=>{a.value={kind:"main"},s.value="",l.value=0,T()},D=B=>{B.hasSubmenu?O(B.id):B.prompt&&(o(B.prompt.text,B.prompt.streamingLabel),s.value="")},$=()=>{let B=s.value.trim();B&&(o(B),s.value="")},I=()=>{let B=l.value,ye=g.value;B<ye.length?D(ye[B]):x.value&&$()},L=()=>{Ds(()=>{let B=u.value;if(!B)return;let ye=B.querySelector(`[data-index="${l.value}"]`);ye?.scrollIntoView({block:"nearest"})})},W=B=>{if(B.stopPropagation(),B.key==="ArrowDown"){if(B.preventDefault(),k.value===0)return;l.value=(l.value+1)%k.value,L();return}if(B.key==="ArrowUp"){if(B.preventDefault(),k.value===0)return;l.value=(l.value-1+k.value)%k.value,L();return}if(B.key==="Enter"){B.preventDefault(),I();return}if(B.key==="Escape"){B.preventDefault(),a.value.kind==="submenu"?N():i();return}B.key==="Backspace"&&s.value===""&&a.value.kind==="submenu"&&(B.preventDefault(),N())},ie=B=>{B.preventDefault()};return()=>{let B=g.value,ye=x.value,Ae=w.value;return E("div",{class:"ai-instruction"},E("div",{class:"ai-instruction-input"},E("span",{class:"ai-instruction-input-prefix"},E(St,{icon:n.aiIcon})),E("input",{ref:c,id:v,class:"ai-instruction-input-field",role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":f,"aria-activedescendant":k.value>0?p(l.value):void 0,placeholder:Ae?Ae.searchPlaceholder:t.value,value:s.value,onInput:Fe=>{s.value=Fe.target.value},onKeydown:W}),E("button",{type:"button",class:"ai-instruction-submit","aria-label":n.submitButtonLabel,disabled:!ye,onMousedown:ie,onClick:$},E(St,{icon:n.sendIcon}))),E("div",{class:"ai-instruction-list",ref:u,id:f,role:"listbox","aria-label":n.listboxLabel},Ae&&E("button",{type:"button",class:"ai-instruction-back",onMousedown:ie,onClick:N},E("span",{class:"ai-instruction-back-icon","aria-hidden":"true"},E(St,{icon:n.chevronLeftIcon})),E("span",null,Ae.title)),B.length>0&&E("div",{class:"ai-instruction-section"},E("div",{class:"ai-instruction-section-header"},n.suggestionsHeaderLabel),B.map((Fe,Me)=>E("div",{key:Fe.id,id:p(Me),"data-index":Me,role:"option","aria-selected":Me===l.value,class:["ai-instruction-item",Me===l.value?"active":""],onMousedown:ie,onClick:()=>D(Fe),onPointerenter:()=>{l.value=Me}},E("span",{class:"ai-instruction-item-icon"},E(St,{icon:Fe.icon})),E("span",{class:"ai-instruction-item-label"},A_(Fe.label,s.value)),Fe.hasSubmenu&&E("span",{class:"ai-instruction-item-arrow"},E(St,{icon:n.chevronRightIcon}))))),ye&&E("div",{class:"ai-instruction-section"},E("div",{class:"ai-instruction-section-header"},n.sendAsPromptHeaderLabel),E("div",{id:p(B.length),"data-index":B.length,role:"option","aria-selected":l.value===B.length,class:["ai-instruction-item","ai-instruction-item-prompt",l.value===B.length?"active":""],onMousedown:ie,onClick:$,onPointerenter:()=>{l.value=B.length}},E("span",{class:"ai-instruction-item-icon"},E(St,{icon:n.sendPromptIcon})),E("span",{class:"ai-instruction-item-label"},n.sendAsPromptLabel," ",E("span",{class:"ai-instruction-item-quote"},'"',s.value,'"')),E("span",{class:"ai-instruction-item-shortcut"},E(St,{icon:n.enterKeyIcon}))))))}}}),k6=t=>{throw TypeError(t)},_6=(t,e,r)=>e.has(t)||k6("Cannot "+r),st=(t,e,r)=>(_6(t,e,"read from private field"),r?r.call(t):e.get(t)),an=(t,e,r)=>e.has(t)?k6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),yr=(t,e,r,n)=>(_6(t,e,"write to private field"),e.set(t,r),r),Fo,Dr,J0,Q0,ka,ec,tc,ho,F1,$1,q1=class{constructor(e,r,n){this.ctx=e,an(this,Fo),an(this,Dr),an(this,J0),an(this,Q0),an(this,ka),an(this,ec,-1),an(this,tc,-1),an(this,ho,!1),an(this,F1,(s,a)=>{!s.trim()||!this.ctx.get(ne).call(lh.key,{instruction:s,label:a})||(yr(this,ho,!1),st(this,Dr).hide())}),an(this,$1,()=>{yr(this,ho,!1),st(this,Dr).hide()}),this.show=(s,a)=>{yr(this,ec,s),yr(this,tc,a),st(this,ka).value++,yr(this,ho,!0);let l=this.ctx.get(Pe);st(this,Dr).show({getBoundingClientRect:()=>Yi(l,s,a)},l),requestAnimationFrame(()=>{var c;(c=st(this,Fo).querySelector("input"))==null||c.focus()})},this.update=(s,a)=>{let{selection:l}=s.state,c=l instanceof Xe,u=l.from!==st(this,ec)||l.to!==st(this,tc);if(!c||u){yr(this,ho,!1),st(this,Dr).hide();return}st(this,Dr).update(s,a)},this.destroy=()=>{st(this,J0).unmount(),st(this,Dr).destroy(),st(this,Fo).remove()},yr(this,Q0,Q(n.placeholder)),yr(this,ka,Q(0));let o=document.createElement("div");o.className="milkdown-ai-instruction";let i=lt(M_,{placeholder:st(this,Q0),resetSignal:st(this,ka),suggestions:n.suggestions,chrome:n.chrome,onConfirm:st(this,F1),onCancel:st(this,$1)});i.mount(o),yr(this,J0,i),yr(this,Fo,o),yr(this,Dr,new bo({content:o,debounce:0,offset:10,shouldShow:()=>st(this,ho),floatingUIOptions:{placement:"bottom"}})),st(this,Dr).onHide=()=>{yr(this,ho,!1),requestAnimationFrame(()=>{try{let a=st(this,Fo).getRootNode().activeElement;if(!a||!st(this,Fo).contains(a))return;this.ctx.get(Pe).dom.focus({preventScroll:!0})}catch{}})},st(this,Dr).update(r)}};Fo=new WeakMap;Dr=new WeakMap;J0=new WeakMap;Q0=new WeakMap;ka=new WeakMap;ec=new WeakMap;tc=new WeakMap;ho=new WeakMap;F1=new WeakMap;$1=new WeakMap;var N_={show:()=>{}},uh=Ue({...N_},"aiInstructionTooltipAPI"),C6=wo("CREPE_AI_INSTRUCTION"),O_="SUGGESTIONS",D_="SEND AS PROMPT",I_="Ask AI:",L_="Send prompt",R_="AI suggestions",P_="Tell AI what to do with the selection\u2026";function B_(t){var e,r,n,o,i,s,a,l,c,u,f;return{aiIcon:(e=t?.aiIcon)!=null?e:nh,sendIcon:(r=t?.sendIcon)!=null?r:l_,sendPromptIcon:(n=t?.sendPromptIcon)!=null?n:c_,enterKeyIcon:(o=t?.enterKeyIcon)!=null?o:n6,chevronLeftIcon:(i=t?.chevronLeftIcon)!=null?i:Yk,chevronRightIcon:(s=t?.chevronRightIcon)!=null?s:Zk,suggestionsHeaderLabel:(a=t?.suggestionsHeaderLabel)!=null?a:O_,sendAsPromptHeaderLabel:(l=t?.sendAsPromptHeaderLabel)!=null?l:D_,sendAsPromptLabel:(c=t?.sendAsPromptLabel)!=null?c:I_,submitButtonLabel:(u=t?.submitButtonLabel)!=null?u:L_,listboxLabel:(f=t?.listboxLabel)!=null?f:R_}}function V_(t){var e,r;let n=new z1;return T_(n),(e=t?.buildAISuggestions)==null||e.call(t,n),{placeholder:(r=t?.instructionPlaceholder)!=null?r:P_,chrome:B_(t),suggestions:n.build()}}function H_(t){return e=>{let r=V_(t),n=null;e.update(uh.key,o=>({...o,show:(i,s)=>{n?.show(i,s)}})),e.set(C6.key,{view:o=>(n=new q1(e,o,r),n)})}}var S6=t=>{throw TypeError(t)},E6=(t,e,r)=>e.has(t)||S6("Cannot "+r),Ln=(t,e,r)=>(E6(t,e,"read from private field"),r?r.call(t):e.get(t)),Bo=(t,e,r)=>e.has(t)?S6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Di=(t,e,r,n)=>(E6(t,e,"write to private field"),e.set(t,r),r),rc,nc,oc,U1,ic,Li,sc,$0="milkdown-ai-streaming",z_=800,F_="Generating",$_="Esc to cancel",K7=new kr("CREPE_AI_STREAMING_INDICATOR"),W1=class{constructor(e,r,n){Bo(this,rc),Bo(this,nc),Bo(this,oc),Bo(this,U1,performance.now()),Bo(this,ic,""),Bo(this,Li,0),Bo(this,sc,()=>{let c=(performance.now()-Ln(this,U1))/z_*360;Ln(this,rc).style.transform=`rotate(${c}deg)`,Di(this,Li,requestAnimationFrame(Ln(this,sc)))}),Di(this,oc,r);let o=document.createElement("span");o.className=`${$0}-indicator`,o.contentEditable="false",o.setAttribute("role","status"),o.setAttribute("aria-live","polite");let i=document.createElement("span");i.className=`${$0}-spinner`,i.setAttribute("aria-hidden","true"),o.appendChild(i);let s=document.createElement("span");s.className=`${$0}-label`,o.appendChild(s);let a=document.createElement("span");a.className=`${$0}-esc`,a.textContent=n,o.appendChild(a),this.dom=o,Di(this,rc,i),Di(this,nc,s),this.setLabel(e),Ln(this,sc).call(this)}setLabel(e){let n=`${e.get(ft.key).label||Ln(this,oc)}\u2026`;n!==Ln(this,ic)&&(Di(this,ic,n),Ln(this,nc).textContent=n)}destroy(){Ln(this,Li)&&cancelAnimationFrame(Ln(this,Li)),Di(this,Li,0)}};rc=new WeakMap;nc=new WeakMap;oc=new WeakMap;U1=new WeakMap;ic=new WeakMap;Li=new WeakMap;sc=new WeakMap;function q_(t={}){var e,r;let{config:n}=t,o=(e=n?.fallbackLabel)!=null?e:F_,i=(r=n?.cancelHint)!=null?r:$_;return Pr(s=>{let a=null;function l(){return a?a.setLabel(s):a=new W1(s,o,i),a}function c(){a&&(a.destroy(),a=null)}function u(f,p){let v=Math.min(p,f.content.size),b=Kt.widget(v,l().dom,{side:1,key:"ai-streaming-indicator"});return Yt.create(f,[b])}return new xr({key:K7,state:{init:()=>Yt.empty,apply(f,p,v,b){let w=Zo.getState(b);return!w?.active||w.insertEndPos==null?(c(),Yt.empty):f.getMeta(Zo)||f.docChanged?u(b.doc,w.insertEndPos):p.map(f.mapping,f.doc)}},view(){return{destroy(){c()}}},props:{decorations(f){var p;return(p=K7.getState(f))!=null?p:Yt.empty},handleKeyDown(f,p){var v;if(p.key!=="Escape")return!1;let b=s.get(ne);return s.get(ft.key).abortController?(p.preventDefault(),b.call(p6.key,{keep:!0}),!0):(v=Zo.getState(f.state))!=null&&v.active?(p.preventDefault(),b.call(es.key,{keep:!0}),!0):!1}}})})}var U_=["table","image-block","code_block"],Y7={heading:["id"]},W_=(t,e)=>{var r,n;let o=(r=e?.diff)!=null?r:{},i=(n=e?.streaming)!=null?n:{};t.config(br(xe.AI)).config(s=>{s.update(op.key,c=>{var u;return{...c,ignoreAttrs:(u=o.ignoreAttrs)!=null?u:Y7}});let{ignoreAttrs:a,...l}=o;s.update(ns.key,c=>{var u;return{...c,customBlockTypes:(u=l.customBlockTypes)!=null?u:U_,...l}})}).use(lp).use(fm).config(s=>{s.update(cp.key,a=>{var l;return{...a,...i,ignoreAttrs:(l=i.ignoreAttrs)!=null?l:Y7,...e?.diffReviewOnEnd!==void 0?{diffReviewOnEnd:e.diffReviewOnEnd}:{}}})}).use(fp).config(s=>{s.update(Hi.key,a=>{var l;return{...a,...e?.provider!==void 0?{provider:e.provider}:{},...e?.buildContext!==void 0?{buildContext:e.buildContext}:{},diffReviewOnEnd:(l=e?.diffReviewOnEnd)!=null?l:a.diffReviewOnEnd,...e?.onError!==void 0?{onError:e.onError}:{},...e?.aiIcon!==void 0?{aiIcon:e.aiIcon}:{}}})}).use(Hi).use(ft).use(lh).use(p6).config(H_(e)).use(uh).use(C6).use(q_({config:e?.streamingIndicator})).use(E_({config:e?.diffActions,enterKeyIcon:e?.enterKeyIcon}))};function T6(t){return t.$from.parent.type.name==="code_block"}function A6(t){var e;let r=(e=t.$from.node(t.$from.depth-1))==null?void 0:e.type;return r?.name==="list_item"}var M6=t=>{throw TypeError(t)},N6=(t,e,r)=>e.has(t)||M6("Cannot "+r),ma=(t,e,r)=>(N6(t,e,"read from private field"),r?r.call(t):e.get(t)),Z7=(t,e,r)=>e.has(t)?M6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),j_=(t,e,r,n)=>(N6(t,e,"write to private field"),e.set(t,r),r),Ri,ac,Ra=class{constructor(){Z7(this,Ri,[]),this.clear=()=>(j_(this,Ri,[]),this),Z7(this,ac,e=>{let r={group:e,addItem:(n,o)=>{let i={...o,key:n};return e.items.push(i),r},clear:()=>(e.items=[],r)};return r}),this.addGroup=(e,r)=>{let o={key:e,label:r,items:[]};return ma(this,Ri).push(o),ma(this,ac).call(this,o)},this.getGroup=e=>{let r=ma(this,Ri).find(n=>n.key===e);if(!r)throw new Error(`Group with key ${e} not found`);return ma(this,ac).call(this,r)},this.build=()=>ma(this,Ri)}};Ri=new WeakMap;ac=new WeakMap;function G_(t,e,r){var n,o,i,s,a,l,c,u,f,p,v,b,w,g,x,k,T,O,N,D,$,I,L,W,ie,B,ye,Ae,Fe,Me,Se,be,kt,Mt,gt,Nt,Ye,Ir,vo,Uo,Ot,Lr,jt,Pn,sr,cn,wr,_,A,P,U,H,z,J,X,Y,F,se,ee,oe,ue,ge,ke,Ne,Ze,tt,Ft,_t,Bn,$i,Ct,Gt,qi,Ui,hh,fh,ph,mh,vh,gh,yh,bh,wh,xh,kh,_h,Ch,Sh,Eh,Th,Ah,Mh,Nh,Oh,Dh,Ih,Lh,Rh,Ph,Bh,Vh,Hh,zh,Fh,$h,qh,Uh,Wh,jh,Gh,Kh,Yh,Zh,Xh,Jh,Qh,ef,tf,rf;let Wo=r&&Fi(r).get(),W6=Wo?.includes(xe.Latex),j6=Wo?.includes(xe.ImageBlock),G6=Wo?.includes(xe.Table),Wi=new Ra;if(e?.textGroup!==null){let Re=Wi.addGroup("text",(o=(n=e?.textGroup)==null?void 0:n.label)!=null?o:"Text");((i=e?.textGroup)==null?void 0:i.text)!==null&&Re.addItem("text",{label:(l=(a=(s=e?.textGroup)==null?void 0:s.text)==null?void 0:a.label)!=null?l:"Text",icon:(f=(u=(c=e?.textGroup)==null?void 0:c.text)==null?void 0:u.icon)!=null?f:d_,onRun:ae=>{let le=ae.get(ne),Oe=Ha.type(ae);le.call(yt.key),le.call(ar.key,{nodeType:Oe})}}),((p=e?.textGroup)==null?void 0:p.h1)!==null&&Re.addItem("h1",{label:(w=(b=(v=e?.textGroup)==null?void 0:v.h1)==null?void 0:b.label)!=null?w:"Heading 1",icon:(k=(x=(g=e?.textGroup)==null?void 0:g.h1)==null?void 0:x.icon)!=null?k:Qk,onRun:ae=>{let le=ae.get(ne),Oe=hn.type(ae);le.call(yt.key),le.call(ar.key,{nodeType:Oe,attrs:{level:1}})}}),((T=e?.textGroup)==null?void 0:T.h2)!==null&&Re.addItem("h2",{label:(D=(N=(O=e?.textGroup)==null?void 0:O.h2)==null?void 0:N.label)!=null?D:"Heading 2",icon:(L=(I=($=e?.textGroup)==null?void 0:$.h2)==null?void 0:I.icon)!=null?L:e_,onRun:ae=>{let le=ae.get(ne),Oe=hn.type(ae);le.call(yt.key),le.call(ar.key,{nodeType:Oe,attrs:{level:2}})}}),((W=e?.textGroup)==null?void 0:W.h3)!==null&&Re.addItem("h3",{label:(ye=(B=(ie=e?.textGroup)==null?void 0:ie.h3)==null?void 0:B.label)!=null?ye:"Heading 3",icon:(Me=(Fe=(Ae=e?.textGroup)==null?void 0:Ae.h3)==null?void 0:Fe.icon)!=null?Me:t_,onRun:ae=>{let le=ae.get(ne),Oe=hn.type(ae);le.call(yt.key),le.call(ar.key,{nodeType:Oe,attrs:{level:3}})}}),((Se=e?.textGroup)==null?void 0:Se.h4)!==null&&Re.addItem("h4",{label:(Mt=(kt=(be=e?.textGroup)==null?void 0:be.h4)==null?void 0:kt.label)!=null?Mt:"Heading 4",icon:(Ye=(Nt=(gt=e?.textGroup)==null?void 0:gt.h4)==null?void 0:Nt.icon)!=null?Ye:r_,onRun:ae=>{let le=ae.get(ne),Oe=hn.type(ae);le.call(yt.key),le.call(ar.key,{nodeType:Oe,attrs:{level:4}})}}),((Ir=e?.textGroup)==null?void 0:Ir.h5)!==null&&Re.addItem("h5",{label:(Ot=(Uo=(vo=e?.textGroup)==null?void 0:vo.h5)==null?void 0:Uo.label)!=null?Ot:"Heading 5",icon:(Pn=(jt=(Lr=e?.textGroup)==null?void 0:Lr.h5)==null?void 0:jt.icon)!=null?Pn:n_,onRun:ae=>{let le=ae.get(ne),Oe=hn.type(ae);le.call(yt.key),le.call(ar.key,{nodeType:Oe,attrs:{level:5}})}}),((sr=e?.textGroup)==null?void 0:sr.h6)!==null&&Re.addItem("h6",{label:(_=(wr=(cn=e?.textGroup)==null?void 0:cn.h6)==null?void 0:wr.label)!=null?_:"Heading 6",icon:(U=(P=(A=e?.textGroup)==null?void 0:A.h6)==null?void 0:P.icon)!=null?U:o_,onRun:ae=>{let le=ae.get(ne),Oe=hn.type(ae);le.call(yt.key),le.call(ar.key,{nodeType:Oe,attrs:{level:6}})}}),((H=e?.textGroup)==null?void 0:H.quote)!==null&&Re.addItem("quote",{label:(X=(J=(z=e?.textGroup)==null?void 0:z.quote)==null?void 0:J.label)!=null?X:"Quote",icon:(se=(F=(Y=e?.textGroup)==null?void 0:Y.quote)==null?void 0:F.icon)!=null?se:a6,onRun:ae=>{let le=ae.get(ne),Oe=Nc.type(ae);le.call(yt.key),le.call(pn.key,{nodeType:Oe})}}),((ee=e?.textGroup)==null?void 0:ee.divider)!==null&&Re.addItem("divider",{label:(ge=(ue=(oe=e?.textGroup)==null?void 0:oe.divider)==null?void 0:ue.label)!=null?ge:"Divider",icon:(Ze=(Ne=(ke=e?.textGroup)==null?void 0:ke.divider)==null?void 0:Ne.icon)!=null?Ze:r6,onRun:ae=>{let le=ae.get(ne),Oe=Oc.type(ae);le.call(yt.key),le.call(mn.key,{nodeType:Oe})}})}if(e?.listGroup!==null){let Re=Wi.addGroup("list",(Ft=(tt=e?.listGroup)==null?void 0:tt.label)!=null?Ft:"List");((_t=e?.listGroup)==null?void 0:_t.bulletList)!==null&&Re.addItem("bullet-list",{label:(Ct=($i=(Bn=e?.listGroup)==null?void 0:Bn.bulletList)==null?void 0:$i.label)!=null?Ct:"Bullet List",icon:(Ui=(qi=(Gt=e?.listGroup)==null?void 0:Gt.bulletList)==null?void 0:qi.icon)!=null?Ui:e6,onRun:ae=>{let le=ae.get(ne),Oe=Dc.type(ae);le.call(yt.key),le.call(pn.key,{nodeType:Oe})}}),((hh=e?.listGroup)==null?void 0:hh.orderedList)!==null&&Re.addItem("ordered-list",{label:(mh=(ph=(fh=e?.listGroup)==null?void 0:fh.orderedList)==null?void 0:ph.label)!=null?mh:"Ordered List",icon:(yh=(gh=(vh=e?.listGroup)==null?void 0:vh.orderedList)==null?void 0:gh.icon)!=null?yh:s6,onRun:ae=>{let le=ae.get(ne),Oe=Ic.type(ae);le.call(yt.key),le.call(pn.key,{nodeType:Oe})}}),((bh=e?.listGroup)==null?void 0:bh.taskList)!==null&&Re.addItem("task-list",{label:(kh=(xh=(wh=e?.listGroup)==null?void 0:wh.taskList)==null?void 0:xh.label)!=null?kh:"Task List",icon:(Sh=(Ch=(_h=e?.listGroup)==null?void 0:_h.taskList)==null?void 0:Ch.icon)!=null?Sh:d6,onRun:ae=>{let le=ae.get(ne),Oe=Ji.type(ae);le.call(yt.key),le.call(pn.key,{nodeType:Oe,attrs:{checked:!1}})}})}if(e?.advancedGroup!==null){let Re=Wi.addGroup("advanced",(Th=(Eh=e?.advancedGroup)==null?void 0:Eh.label)!=null?Th:"Advanced");((Ah=e?.advancedGroup)==null?void 0:Ah.image)!==null&&j6&&Re.addItem("image",{label:(Oh=(Nh=(Mh=e?.advancedGroup)==null?void 0:Mh.image)==null?void 0:Nh.label)!=null?Oh:"Image",icon:(Lh=(Ih=(Dh=e?.advancedGroup)==null?void 0:Dh.image)==null?void 0:Ih.icon)!=null?Lh:gc,onRun:ae=>{let le=ae.get(ne),Oe=mi.type(ae);le.call(yt.key),le.call(mn.key,{nodeType:Oe})}}),((Rh=e?.advancedGroup)==null?void 0:Rh.codeBlock)!==null&&Re.addItem("code",{label:(Vh=(Bh=(Ph=e?.advancedGroup)==null?void 0:Ph.codeBlock)==null?void 0:Bh.label)!=null?Vh:"Code",icon:(Fh=(zh=(Hh=e?.advancedGroup)==null?void 0:Hh.codeBlock)==null?void 0:zh.icon)!=null?Fh:sh,onRun:ae=>{let le=ae.get(ne),Oe=fn.type(ae);le.call(yt.key),le.call(ar.key,{nodeType:Oe})}}),(($h=e?.advancedGroup)==null?void 0:$h.table)!==null&&G6&&Re.addItem("table",{label:(Wh=(Uh=(qh=e?.advancedGroup)==null?void 0:qh.table)==null?void 0:Uh.label)!=null?Wh:"Table",icon:(Kh=(Gh=(jh=e?.advancedGroup)==null?void 0:jh.table)==null?void 0:Gh.icon)!=null?Kh:u6,onRun:ae=>{let le=ae.get(ne),Oe=ae.get(Pe);le.call(yt.key);let{from:K6}=Oe.state.selection;le.call(mn.key,{nodeType:Vc(ae,3,3)}),le.call(Lc.key,{pos:K6})}}),((Yh=e?.advancedGroup)==null?void 0:Yh.math)!==null&&W6&&Re.addItem("math",{label:(Jh=(Xh=(Zh=e?.advancedGroup)==null?void 0:Zh.math)==null?void 0:Xh.label)!=null?Jh:"Math",icon:(tf=(ef=(Qh=e?.advancedGroup)==null?void 0:Qh.math)==null?void 0:ef.icon)!=null?tf:ah,onRun:ae=>{let le=ae.get(ne),Oe=fn.type(ae);le.call(yt.key),le.call(mn.key,{nodeType:Oe,attrs:{language:"LaTeX"}})}})}(rf=e?.buildMenu)==null||rf.call(e,Wi);let ji=Wi.build();t&&(ji=ji.map(Re=>{let ae=Re.items.filter(le=>le.label.toLowerCase().includes(t.toLowerCase()));return{...Re,items:ae}}).filter(Re=>Re.items.length>0));let nf=ji.flatMap(Re=>Re.items);return nf.forEach((Re,ae)=>{Object.assign(Re,{index:ae})}),ji.reduce((Re,ae)=>{let le=Re+ae.items.length;return Object.assign(ae,{range:[Re,le]}),le},0),{groups:ji,size:nf.length}}mo(E);var K_=He({props:{ctx:{type:Object,required:!0},show:{type:Object,required:!0},filter:{type:Object,required:!0},hide:{type:Function,required:!0},config:{type:Object,required:!1}},setup({ctx:t,show:e,filter:r,hide:n,config:o}){let i=Q(),s=xt(()=>G_(r.value,o,t)),a=Q(0),l=Q({x:-999,y:-999}),c=w=>{let{x:g,y:x}=w;l.value={x:g,y:x}};Xt([s,e],()=>{let{size:w}=s.value;w===0&&e.value?n():a.value>=w&&(a.value=0)});let u=(w,g)=>{let x=a.value,k=typeof w=="function"?w(x):w;g?.(k),a.value=k},f=w=>{var g,x;let k=(g=i.value)==null?void 0:g.querySelector(`[data-index="${w}"]`),T=(x=i.value)==null?void 0:x.querySelector(".menu-groups");!k||!T||(T.scrollTop=k.offsetTop-T.offsetTop)},p=w=>{let g=s.value.groups.flatMap(x=>x.items).at(w);g?.onRun&&t&&g.onRun(t),n()},v=w=>{let{size:g,groups:x}=s.value;if(w.key==="Escape"){w.preventDefault(),n?.();return}if(w.key==="ArrowDown")return w.preventDefault(),u(k=>k<g-1?k+1:k,f);if(w.key==="ArrowUp")return w.preventDefault(),u(k=>k<=0?k:k-1,f);if(w.key==="ArrowLeft")return w.preventDefault(),u(k=>{let T=x.find(N=>N.range[0]<=k&&N.range[1]>k);if(!T)return k;let O=x[x.indexOf(T)-1];return O?O.range[1]-1:k},f);if(w.key==="ArrowRight")return w.preventDefault(),u(k=>{let T=x.find(N=>N.range[0]<=k&&N.range[1]>k);if(!T)return k;let O=x[x.indexOf(T)+1];return O?O.range[0]:k},f);w.key==="Enter"&&(w.preventDefault(),p(a.value))},b=w=>g=>{let x=l.value;if(!x)return;let{x:k,y:T}=g;k===x.x&&T===x.y||u(w)};return Sr(()=>{e.value?window.addEventListener("keydown",v,{capture:!0}):window.removeEventListener("keydown",v,{capture:!0})}),Zr(()=>{window.removeEventListener("keydown",v,{capture:!0})}),()=>E("div",{ref:i,onPointerdown:w=>w.preventDefault()},E("nav",{class:"tab-group"},E("ul",null,s.value.groups.map(w=>E("li",{key:w.key,onPointerdown:()=>u(w.range[0],f),class:a.value>=w.range[0]&&a.value<w.range[1]?"selected":""},w.label)))),E("div",{class:"menu-groups",onPointermove:c},s.value.groups.map(w=>E("div",{key:w.key,class:"menu-group"},E("h6",null,w.label),E("ul",null,w.items.map(g=>E("li",{key:g.key,"data-index":g.index,class:a.value===g.index?"hover":"",onPointerenter:b(g.index),onPointerdown:()=>{var x,k;(k=(x=i.value)==null?void 0:x.querySelector(`[data-index="${g.index}"]`))==null||k.classList.add("active")},onPointerup:()=>{var x,k;(k=(x=i.value)==null?void 0:x.querySelector(`[data-index="${g.index}"]`))==null||k.classList.remove("active"),p(g.index)}},E(St,{icon:g.icon}),E("span",null,g.label))))))))}}),O6=t=>{throw TypeError(t)},D6=(t,e,r)=>e.has(t)||O6("Cannot "+r),Or=(t,e,r)=>(D6(t,e,"read from private field"),r?r.call(t):e.get(t)),va=(t,e,r)=>e.has(t)?O6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Vo=(t,e,r,n)=>(D6(t,e,"write to private field"),e.set(t,r),r),_a,lc,cc,Rn,Pi,I6=rp("CREPE_MENU"),dh=Ue({show:()=>{},hide:()=>{}},"menuAPICtx");function Y_(t,e){t.set(I6.key,{view:r=>new j1(t,r,e)})}var j1=class{constructor(e,r,n){va(this,_a),va(this,lc),va(this,cc),va(this,Rn),va(this,Pi,null),this.update=v=>{Or(this,Rn).update(v)},this.show=v=>{Vo(this,Pi,v),Or(this,cc).value="",Or(this,Rn).show()},this.hide=()=>{Vo(this,Pi,null),Or(this,Rn).hide()},this.destroy=()=>{Or(this,Rn).destroy(),Or(this,lc).unmount(),Or(this,_a).remove()};var o,i;let s=document.createElement("div");s.classList.add("milkdown-slash-menu");let a=Q(!1),l=Q("");Vo(this,cc,l);let c=this.hide,u=lt(K_,{ctx:e,config:n,show:a,filter:l,hide:c});Vo(this,lc,u),u.mount(s),Vo(this,_a,s);let f=this,p=(o=n?.slashMenu)!=null?o:{};Vo(this,Rn,new np({content:Or(this,_a),debounce:20,shouldShow(v){if(T6(v.state.selection)||A6(v.state.selection))return!1;let b=this.getContent(v,g=>["paragraph","heading"].includes(g.type.name));if(b==null||!Z_(v.state.selection))return!1;let w=Or(f,Pi);if(l.value=b.startsWith("/")?b.slice(1):b,typeof w=="number"){let g=v.state.doc.nodeSize-2,x=Math.min(w,g);return v.state.doc.resolve(x).node()!==v.state.doc.resolve(v.state.selection.from).node()?(Vo(f,Pi,null),!1):!0}return!!b.startsWith("/")},offset:(i=p.offset)!=null?i:10,middleware:p.middleware,floatingUIOptions:p.floatingUIOptions,root:p.root})),Or(this,Rn).onShow=()=>{a.value=!0},Or(this,Rn).onHide=()=>{a.value=!1},this.update(r),e.set(dh.key,{show:v=>this.show(v),hide:()=>this.hide()})}};_a=new WeakMap;lc=new WeakMap;cc=new WeakMap;Rn=new WeakMap;Pi=new WeakMap;function Z_(t){if(!(t instanceof Xe))return!1;let{$head:e}=t,r=e.parent;return e.parentOffset===r.content.size}mo(E,_e);var X_=He({props:{onAdd:{type:Function,required:!0},addIcon:{type:String,required:!0},handleIcon:{type:String,required:!0}},setup(t){let e=Q();return()=>E(_e,null,E("div",{ref:e,class:"operation-item",onPointerdown:r=>{var n;r.preventDefault(),r.stopPropagation(),(n=e.value)==null||n.classList.add("active")},onPointerup:r=>{var n;r.preventDefault(),r.stopPropagation(),(n=e.value)==null||n.classList.remove("active"),t.onAdd()}},E(St,{icon:t.addIcon})),E("div",{class:"operation-item"},E(St,{icon:t.handleIcon})))}}),L6=t=>{throw TypeError(t)},R6=(t,e,r)=>e.has(t)||L6("Cannot "+r),Ho=(t,e,r)=>(R6(t,e,"read from private field"),r?r.call(t):e.get(t)),q0=(t,e,r)=>e.has(t)?L6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),U0=(t,e,r,n)=>(R6(t,e,"write to private field"),e.set(t,r),r),uc,$o,dc,hc,G1=class{constructor(e,r){q0(this,uc),q0(this,$o),q0(this,dc),q0(this,hc),this.update=()=>{Ho(this,$o).update()},this.destroy=()=>{Ho(this,$o).destroy(),Ho(this,uc).remove(),Ho(this,dc).unmount()},this.onAdd=()=>{let f=Ho(this,hc),p=f.get(Pe);p.hasFocus()||p.focus();let{state:v,dispatch:b}=p,w=Ho(this,$o).active;if(!w)return;let x=w.$pos.pos+w.node.nodeSize,k=v.tr.insert(x,Ha.type(f).create());k=k.setSelection(Xe.near(k.doc.resolve(x))),b(k.scrollIntoView()),Ho(this,$o).hide(),f.get(dh.key).show(k.selection.from)};var n,o,i,s,a;U0(this,hc,e);let l=document.createElement("div");l.classList.add("milkdown-block-handle");let c=lt(X_,{onAdd:this.onAdd,addIcon:(n=r?.handleAddIcon)!=null?n:L1,handleIcon:(o=r?.handleDragIcon)!=null?o:s_});c.mount(l),U0(this,dc,c),U0(this,uc,l);let u=(i=r?.blockHandle)!=null?i:{};U0(this,$o,new tp({ctx:e,content:l,getOffset:(s=u.getOffset)!=null?s:(()=>16),getPlacement:(a=u.getPlacement)!=null?a:(({active:f,blockDom:p})=>{if(f.node.type.name==="heading")return"left";let v=0;f.node.descendants(D=>{v+=D.childCount});let b=f.el,w=b.getBoundingClientRect(),g=p.getBoundingClientRect(),x=window.getComputedStyle(b),k=Number.parseInt(x.paddingTop,10)||0,T=Number.parseInt(x.paddingBottom,10)||0,O=w.height-k-T,N=g.height;return v>2||N<O?"left-start":"left"}),shouldShow:u.shouldShow,getPosition:u.getPosition,middleware:u.middleware,floatingUIOptions:u.floatingUIOptions,root:u.root})),this.update()}};uc=new WeakMap;$o=new WeakMap;dc=new WeakMap;hc=new WeakMap;function J_(t,e){t.set(ep.key,{filterNodes:r=>!Rr(o=>["table","blockquote","math_inline"].includes(o.type.name))(r)}),t.set(zc.key,{view:()=>new G1(t,e)})}var Q_=(t,e)=>{t.config(br(xe.BlockEdit)).config(r=>J_(r,e)).config(r=>Y_(r,e)).use(dh).use(zc).use(I6)},eC=(t,e={})=>{t.config(br(xe.CodeMirror)).config(r=>{let{languages:n=[],theme:o}=e,i=[Jo.of(Rl.concat($2)),v5];o&&i.push(o),e.extensions&&i.push(...e.extensions),r.update(yi.key,s=>{var a;return{extensions:i,languages:n,expandIcon:e.expandIcon||oh,searchIcon:e.searchIcon||l6,clearSearchIcon:e.clearSearchIcon||ih,searchPlaceholder:e.searchPlaceholder||"Search language",copyText:e.copyText||"Copy",copyIcon:e.copyIcon||t6,onCopy:e.onCopy||(()=>{}),noResultText:e.noResultText||"No result",renderLanguage:e.renderLanguage||s.renderLanguage,renderPreview:e.renderPreview||s.renderPreview,previewToggleButton:l=>{var c,u;let f=((c=e.previewToggleIcon)==null?void 0:c.call(e,l))||(l?Ia:h6),p=((u=e.previewToggleText)==null?void 0:u.call(e,l))||(l?"Edit":"Hide");return[f,p].map(v=>v.trim()).join(" ")},previewLabel:e.previewLabel||s.previewLabel,previewLoading:e.previewLoading||s.previewLoading,previewOnlyByDefault:(a=e.previewOnlyByDefault)!=null?a:s.previewOnlyByDefault}})}).use(Z2)},tC=(t,e)=>{if(t.config(br(xe.Cursor)).config(n=>{n.update(jf.key,()=>{var o,i;return{class:"crepe-drop-cursor",width:(o=e?.width)!=null?o:4,color:(i=e?.color)!=null?i:!1}})}).use(Gf),e?.virtual===!1)return;let r=g5({skipWarning:["inlineCode"]});t.use(Pr(()=>r))},rC=(t,e)=>{t.config(br(xe.ImageBlock)).config(r=>{r.update(js.key,n=>{var o,i,s,a,l,c;return{uploadButton:(o=e?.inlineUploadButton)!=null?o:"Upload",imageIcon:(i=e?.inlineImageIcon)!=null?i:gc,confirmButton:(s=e?.inlineConfirmButton)!=null?s:wc,uploadPlaceholderText:(a=e?.inlineUploadPlaceholderText)!=null?a:"or paste link",onUpload:(c=(l=e?.inlineOnUpload)!=null?l:e?.onUpload)!=null?c:n.onUpload,proxyDomURL:e?.proxyDomURL}}),r.update(pi.key,n=>{var o,i,s,a,l,c,u,f,p;return{uploadButton:(o=e?.blockUploadButton)!=null?o:"Upload file",imageIcon:(i=e?.blockImageIcon)!=null?i:gc,captionIcon:(s=e?.blockCaptionIcon)!=null?s:jk,confirmButton:(a=e?.blockConfirmButton)!=null?a:"Confirm",captionPlaceholderText:(l=e?.blockCaptionPlaceholderText)!=null?l:"Write Image Caption",uploadPlaceholderText:(c=e?.blockUploadPlaceholderText)!=null?c:"or paste link",onUpload:(f=(u=e?.blockOnUpload)!=null?u:e?.onUpload)!=null?f:n.onUpload,proxyDomURL:e?.proxyDomURL,onImageLoadError:(p=e?.onImageLoadError)!=null?p:n.onImageLoadError,maxWidth:e?.maxWidth,maxHeight:e?.maxHeight}})}).use(J4).use(C5)},nC=fn.extendSchema(t=>e=>{let r=t(e);return{...r,toMarkdown:{match:r.toMarkdown.match,runner:(n,o)=>{var i,s;if(((i=o.attrs.language)!=null?i:"").toLowerCase()==="latex")n.addNode("math",void 0,((s=o.content.firstChild)==null?void 0:s.text)||"");else return r.toMarkdown.runner(n,o)}}}}),Vi="math_inline",oC="ToggleLatex",bc=Ba(Vi,()=>({group:"inline",inline:!0,draggable:!0,atom:!0,attrs:{value:{default:""}},parseDOM:[{tag:`span[data-type="${Vi}"]`,getAttrs:t=>{var e;return{value:(e=t.dataset.value)!=null?e:""}}}],toDOM:t=>{let e=t.attrs.value,r=document.createElement("span");return r.dataset.type=Vi,r.dataset.value=e,p1.render(e,r,{throwOnError:!1}),r},parseMarkdown:{match:t=>t.type==="inlineMath",runner:(t,e,r)=>{t.addNode(r,{value:e.value})}},toMarkdown:{match:t=>t.type.name===Vi,runner:(t,e)=>{t.addNode("inlineMath",void 0,e.attrs.value)}}})),iC=jo("ToggleLatex",t=>()=>(e,r)=>{let{hasNode:n,pos:o,target:i}=vf(e,bc.type(t)),{selection:s,doc:a,tr:l}=e;if(!n){let v=a.textBetween(s.from,s.to),b=l.replaceSelectionWith(bc.type(t).create({value:v}));return r&&r(b.setSelection(Ki.create(b.doc,s.from))),!0}let{from:c,to:u}=s;if(!i||o<0)return!1;let f=l.delete(o,o+1),p=i.attrs.value;return f=f.insertText(p,o),r&&r(f.setSelection(Xe.create(f.doc,c,u+p.length-1))),!0}),X7=wo("INLINE_LATEX");mo(E);var sC=He({props:{config:{type:Object,required:!0},innerView:{type:Object,required:!0},updateValue:{type:Object,required:!0}},setup(t){let e=n=>{if(!(!n||!(n instanceof HTMLElement))){for(;n.firstChild;)n.removeChild(n.firstChild);t.innerView.value&&n.appendChild(t.innerView.value.dom)}},r=n=>{n.preventDefault(),t.updateValue.value()};return()=>E("div",{class:"container"},t.innerView.value&&E("div",{ref:e}),E("button",{type:"button",onPointerdown:r},E(St,{icon:t.config.inlineEditConfirm})))}}),P6=t=>{throw TypeError(t)},B6=(t,e,r)=>e.has(t)||P6("Cannot "+r),mt=(t,e,r)=>(B6(t,e,"read from private field"),r?r.call(t):e.get(t)),co=(t,e,r)=>e.has(t)?P6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),W0=(t,e,r,n)=>(B6(t,e,"write to private field"),e.set(t,r),r),Ca,Bi,fc,qo,Sa,Ea,K1,Y1,Z1=class{constructor(e,r,n){this.ctx=e,co(this,Ca),co(this,Bi),co(this,fc),co(this,qo,qn(null)),co(this,Sa,qn(()=>{})),co(this,Ea),co(this,K1,()=>{mt(this,qo).value&&(mt(this,qo).value.destroy(),mt(this,qo).value=null)}),co(this,Y1,i=>{let a=(()=>{if(!i.editable)return!1;let{selection:l,schema:c}=i.state;if(l.empty||!(l instanceof Ki))return!1;let u=l.node;if(u.type.name!==Vi)return!1;let f=l.from,p=c.nodes.paragraph.create(null,c.text(u.attrs.value)),v=new yf(mt(this,fc),{state:df.create({doc:p,schema:new cf({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return["p",0]}},text:{group:"inline"}}}),plugins:[gf({"Mod-z":za,"Mod-Z":Yo,"Mod-y":Yo,Enter:()=>(mt(this,Sa).value(),!0)})]})});return mt(this,qo).value=v,mt(this,Sa).value=()=>{let{tr:b}=i.state;b.setNodeAttribute(f,"value",v.state.doc.textContent),i.dispatch(b),requestAnimationFrame(()=>{i.focus()})},!0})();return a||mt(this,K1).call(this),a}),this.update=(i,s)=>{mt(this,Bi).update(i,s)},this.destroy=()=>{mt(this,Ea).unmount(),mt(this,Bi).destroy(),mt(this,Ca).remove()};let o=document.createElement("div");o.className="milkdown-latex-inline-edit",W0(this,Ca,o),W0(this,Ea,lt(sC,{config:n,innerView:mt(this,qo),updateValue:mt(this,Sa)})),mt(this,Ea).mount(o),W0(this,Bi,new bo({debounce:0,content:mt(this,Ca),shouldShow:mt(this,Y1),offset:10,floatingUIOptions:{placement:"bottom"}})),mt(this,Bi).update(r),W0(this,fc,document.createElement("div"))}};Ca=new WeakMap;Bi=new WeakMap;fc=new WeakMap;qo=new WeakMap;Sa=new WeakMap;Ea=new WeakMap;K1=new WeakMap;Y1=new WeakMap;var aC=_c(t=>mf(/(?:\$)([^$]+)(?:\$)$/,bc.type(t),{getAttr:e=>{var r;return{value:(r=e[1])!=null?r:""}}})),lC=_c(t=>ff(/^\$\$[\s\n]$/,fn.type(t),()=>({language:"LaTeX"}))),cC=Xi("remarkMath",()=>S0);function uC(t){return Pa(t,"math",(e,r,n)=>{let{value:o}=e,i={type:"code",lang:"LaTeX",value:o};n.children.splice(r,1,i)})}var dC=Xi("remarkMathBlock",()=>()=>uC),hC=(t,e)=>{t.config(br(xe.Latex)).config(r=>{if(!Fi(r).get().includes(xe.CodeMirror))throw new Error("You need to enable CodeMirror to use LaTeX feature");r.update(yi.key,i=>({...i,renderPreview:(s,a,l)=>{if(s.toLowerCase()==="latex"&&a.length>0)return fC(a,e?.katexOptions);let c=i.renderPreview;return c(s,a,l)}})),r.set(X7.key,{view:i=>{var s;return new Z1(r,i,{inlineEditConfirm:(s=e?.inlineEditConfirm)!=null?s:wc,...e})}})}).use(cC).use(dC).use(bc).use(X7).use(aC).use(lC).use(nC).use(iC)};function fC(t,e){return p1.renderToString(t,{...e,throwOnError:!1,displayMode:!0})}var pC=(t,e)=>{t.config(br(xe.LinkTooltip)).config(m7).config(r=>{r.update(Ro.key,n=>{var o,i,s,a,l,c;return{...n,linkIcon:(o=e?.linkIcon)!=null?o:t6,editButton:(i=e?.editButton)!=null?i:Ia,removeButton:(s=e?.removeButton)!=null?s:R1,confirmButton:(a=e?.confirmButton)!=null?a:wc,inputPlaceholder:(l=e?.inputPlaceholder)!=null?l:"Paste link...",onCopyLink:(c=e?.onCopyLink)!=null?c:(()=>{})}})}).use(v7)};function mC(t,e){t.set(fa.key,{renderLabel:({label:r,listType:n,checked:o})=>{var i,s,a;return o==null?n==="bullet"?(i=e?.bulletIcon)!=null?i:Wk:r:o?(s=e?.checkBoxCheckedIcon)!=null?s:Gk:(a=e?.checkBoxUncheckedIcon)!=null?a:Kk}})}var vC=(t,e)=>{t.config(br(xe.ListItem)).config(r=>mC(r,e)).use(_7)};function gC(t){var e;return t.childCount<=1&&!((e=t.firstChild)!=null&&e.content.size)}function yC(t,e){let{selection:r}=t;if(!r.empty)return null;let n=r.$anchor,o=n.parent;if(o.content.size>0||Rr(a=>a.type.name==="table")(n))return null;let s=n.before();return Kt.node(s,s+o.nodeSize,{class:"crepe-placeholder","data-placeholder":e})}var X1=Ue({text:"Please enter...",mode:"block"},"placeholderConfigCtx"),bC=Pr(t=>new xr({key:new kr("CREPE_PLACEHOLDER"),props:{decorations:e=>{var r;if(m_(t).readonly)return null;let o=t.get(X1.key);if(o.mode==="doc"&&!gC(e.doc)||T6(e.selection)||A6(e.selection))return null;let i=(r=o.text)!=null?r:"Please enter...",s=yC(e,i);return s?Yt.create(e.doc,[s]):null}}})),wC=(t,e)=>{t.config(br(xe.Placeholder)).config(r=>{e&&r.update(X1.key,n=>({...n,...e}))}).use(bC).use(X1)},xC=(t,e)=>{t.config(br(xe.Table)).config(r=>{r.update(pa.key,n=>({...n,renderButton:o=>{var i,s,a,l,c,u,f,p,v;switch(o){case"add_row":return(i=e?.addRowIcon)!=null?i:L1;case"add_col":return(s=e?.addColIcon)!=null?s:L1;case"delete_row":return(a=e?.deleteRowIcon)!=null?a:R1;case"delete_col":return(l=e?.deleteColIcon)!=null?l:R1;case"align_col_left":return(c=e?.alignLeftIcon)!=null?c:qk;case"align_col_center":return(u=e?.alignCenterIcon)!=null?u:$k;case"align_col_right":return(f=e?.alignRightIcon)!=null?f:Uk;case"col_drag_handle":return(p=e?.colDragHandleIcon)!=null?p:q7;case"row_drag_handle":return(v=e?.rowDragHandleIcon)!=null?v:q7}}}))}).use(z7)};function j0(t,e){return{slice:t,entry:e}}function kC(t){if(t===" "||t.toLowerCase()==="space")return{display:"Space",aria:" "};if(t.length===1){let e=t.toUpperCase();return{display:e,aria:e}}return{display:t,aria:t}}function _C(t,e){var r;let n=t.split(/-(?!$)/),o=(r=n[n.length-1])!=null?r:"",i=n.slice(0,-1),s=!1,a=!1,l=!1,c=!1;for(let v of i)switch(v.toLowerCase()){case"mod":e?s=!0:a=!0;break;case"meta":case"cmd":case"m":s=!0;break;case"ctrl":case"control":case"c":a=!0;break;case"alt":case"option":case"a":l=!0;break;case"shift":case"s":c=!0;break}let u=kC(o),f=e?[a&&"\u2303",l&&"\u2325",c&&"\u21E7",s&&"\u2318",u.display].filter(Boolean).join(""):[a&&"Ctrl",l&&"Alt",c&&"Shift",s&&"Meta",u.display].filter(Boolean).join("+"),p=[s&&"Meta",a&&"Control",l&&"Alt",c&&"Shift",u.aria].filter(Boolean).join("+");return{display:f,aria:p}}function CC(t,e){if(!t.isInjected(e.slice))return;let r=t.get(e.slice)[e.entry],n=r?[r.shortcuts].flat()[0]:void 0;if(n)return _C(n,pf.mac)}function SC(t,e){var r,n,o,i,s,a,l,c,u,f,p,v,b,w,g,x,k,T;let O=new Ra;O.addGroup("formatting","Formatting").addItem("bold",{icon:(r=t?.boldIcon)!=null?r:Q7,label:(n=t?.boldLabel)!=null?n:"Bold",keymap:j0(Tf.key,"ToggleBold"),active:L=>L.get(ne).call(yo.key,Ec.type(L)),onRun:L=>{L.get(ne).call(Tc.key)}}).addItem("italic",{icon:(o=t?.italicIcon)!=null?o:o6,label:(i=t?.italicLabel)!=null?i:"Italic",keymap:j0(Ef.key,"ToggleEmphasis"),active:L=>L.get(ne).call(yo.key,Cc.type(L)),onRun:L=>{L.get(ne).call(Sc.key)}}).addItem("strikethrough",{icon:(s=t?.strikethroughIcon)!=null?s:c6,label:(a=t?.strikethroughLabel)!=null?a:"Strikethrough",keymap:j0(If.key,"ToggleStrikethrough"),active:L=>L.get(ne).call(yo.key,Pc.type(L)),onRun:L=>{L.get(ne).call(Bc.key)}});let N=O.addGroup("function","Function");N.addItem("code",{icon:(l=t?.codeIcon)!=null?l:sh,label:(c=t?.codeLabel)!=null?c:"Inline code",keymap:j0(Af.key,"ToggleInlineCode"),active:L=>L.get(ne).call(yo.key,Va.type(L)),onRun:L=>{L.get(ne).call(Ac.key)}});let D=e&&Fi(e).get();if(D?.includes(xe.Latex)&&N.addItem("latex",{icon:(u=t?.latexIcon)!=null?u:ah,label:(f=t?.latexLabel)!=null?f:"Inline math",active:L=>{let W=L.get(ne),ie=L.get(bf).nodes[Vi];return W.call(Nf.key,ie)},onRun:L=>{L.get(ne).call(oC)}}),N.addItem("link",{icon:(p=t?.linkIcon)!=null?p:i6,label:(v=t?.linkLabel)!=null?v:"Link",active:L=>L.get(ne).call(yo.key,dn.type(L)),onRun:L=>{L.get(ne).call(H0.key)}}),e&&D?.includes(xe.AI)){let L=e.get(Hi.key);L.provider&&N.addItem("ai",{icon:(w=(b=t?.aiIcon)!=null?b:L.aiIcon)!=null?w:nh,label:(g=t?.aiLabel)!=null?g:"Ask AI",active:()=>!1,onRun:W=>{let ie=W.get(uh.key),B=W.get(Pe),{from:ye,to:Ae}=B.state.selection;ie.show(ye,Ae)}})}(x=t?.buildToolbar)==null||x.call(t,O);let I=O.build();if(e)for(let L of I)for(let W of L.items){if(!W.keymap)continue;let ie=CC(e,W.keymap);ie&&((k=W.shortcut)!=null||(W.shortcut=ie.display),(T=W.ariaKeyshortcuts)!=null||(W.ariaKeyshortcuts=ie.aria))}return I}mo(E,_e);var EC=He({props:{ctx:{type:Object,required:!0},hide:{type:Function,required:!0},show:{type:Object,required:!0},selection:{type:Object,required:!0},config:{type:Object,required:!1}},setup(t){let{ctx:e,config:r}=t,n=a=>l=>{l.preventDefault(),e&&a?.(e)};function o(a){return mo(t.selection.value),e.get(kc).status!==Zi.Created?!1:a(e)}let i=xt(()=>SC(r,e));function s(a){if(a.label)return a.shortcut?`${a.label} (${a.shortcut})`:a.label}return()=>E(_e,null,i.value.map(a=>a.items.map(l=>E("button",{type:"button",class:qe("toolbar-item",e&&o(l.active)&&"active"),"data-toolbar-item":l.key,title:s(l),"aria-label":l.label,"aria-keyshortcuts":l.ariaKeyshortcuts,onPointerdown:n(l.onRun)},E(St,{icon:l.icon})))).reduce((a,l,c)=>(c===0?a.push(...l):a.push(E("div",{class:"divider"}),...l),a),[]))}}),V6=t=>{throw TypeError(t)},H6=(t,e,r)=>e.has(t)||V6("Cannot "+r),nr=(t,e,r)=>(H6(t,e,"read from private field"),r?r.call(t):e.get(t)),ga=(t,e,r)=>e.has(t)?V6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),G0=(t,e,r,n)=>(H6(t,e,"write to private field"),e.set(t,r),r),fo,Ta,pc,Aa,Ma,J7=wo("CREPE_TOOLBAR"),J1=class{constructor(e,r,n){ga(this,fo),ga(this,Ta),ga(this,pc),ga(this,Aa),ga(this,Ma,Q(!1)),this.update=(s,a)=>{nr(this,fo).update(s,a),nr(this,Aa).value=s.state.selection},this.destroy=()=>{nr(this,fo).destroy(),nr(this,pc).unmount(),nr(this,Ta).remove()},this.hide=()=>{nr(this,fo).hide()};let o=document.createElement("div");o.className="milkdown-toolbar",G0(this,Aa,qn(r.state.selection));let i=lt(EC,{ctx:e,hide:this.hide,config:n,selection:nr(this,Aa),show:nr(this,Ma)});i.mount(o),G0(this,Ta,o),G0(this,pc,i),G0(this,fo,new bo({content:nr(this,Ta),debounce:20,offset:10,shouldShow(s){let{doc:a,selection:l}=s.state,{empty:c,from:u,to:f}=l,p=!a.textBetween(u,f).length&&l instanceof Xe,v=!(l instanceof Xe),b=s.dom.getRootNode().activeElement,w=o.contains(b),g=!s.hasFocus()&&!w,x=!s.editable;return!(g||v||c||p||x)}})),nr(this,fo).onShow=()=>{nr(this,Ma).value=!0},nr(this,fo).onHide=()=>{nr(this,Ma).value=!1},this.update(r)}};fo=new WeakMap;Ta=new WeakMap;pc=new WeakMap;Aa=new WeakMap;Ma=new WeakMap;var TC=(t,e)=>{t.config(br(xe.Toolbar)).config(r=>{r.set(J7.key,{view:n=>new J1(r,n,e)})}).use(J7)},z6=[{label:"Paragraph",level:null},{label:"Heading 1",level:1},{label:"Heading 2",level:2},{label:"Heading 3",level:3},{label:"Heading 4",level:4},{label:"Heading 5",level:5},{label:"Heading 6",level:6}];function AC(t,e){var r,n;let o=e??z6,i=t.get(Pe),{$from:s}=i.state.selection,a=s.parent,l=(r=o.find(c=>c.level===null))!=null?r:o[0];if(a.type===hn.type(t)){let c=a.attrs.level;return(n=o.find(u=>u.level===c))!=null?n:l}return l}function MC(t,e){let r=t.get(ne);if(e==null){let n=Ha.type(t);r.call(ar.key,{nodeType:n})}else{let n=hn.type(t);r.call(ar.key,{nodeType:n,attrs:{level:e}})}}function zo(t,e){if(t.get(ne).call(yo.key,e))return!0;let o=t.get(Pe),{state:i}=o;if(i.storedMarks)return i.storedMarks.some(s=>s.type===e);if(i.selection instanceof Xe){let{$cursor:s}=i.selection;if(s)return s.marks().some(a=>a.type===e)}return!1}function NC(t,e){let r=t??z6;return{icon:"",active:()=>!1,selector:{chevronIcon:e??oh,activeLabel:n=>AC(n,r).label,options:r.map(n=>({label:n.label,onSelect:o=>MC(o,n.level)}))}}}function OC(t,e){var r,n,o,i,s,a,l,c,u,f,p,v,b,w,g;let x=e&&Fi(e).get(),k=x?.includes(xe.Latex),T=x?.includes(xe.ImageBlock),O=x?.includes(xe.Table),N=new Ra;N.addGroup("heading","Heading").addItem("heading-selector",{...NC(t?.headingOptions,t?.chevronDownIcon)}),N.addGroup("formatting","Formatting").addItem("bold",{icon:(r=t?.boldIcon)!=null?r:Q7,active:I=>zo(I,Ec.type(I)),onRun:I=>{I.get(ne).call(Tc.key)}}).addItem("italic",{icon:(n=t?.italicIcon)!=null?n:o6,active:I=>zo(I,Cc.type(I)),onRun:I=>{I.get(ne).call(Sc.key)}}).addItem("strikethrough",{icon:(o=t?.strikethroughIcon)!=null?o:c6,active:I=>zo(I,Pc.type(I)),onRun:I=>{I.get(ne).call(Bc.key)}}).addItem("code",{icon:(i=t?.codeIcon)!=null?i:sh,active:I=>zo(I,Va.type(I)),onRun:I=>{let L=I.get(Pe),{state:W}=L;if(W.selection.empty){let ie=Va.type(I);zo(I,ie)?L.dispatch(W.tr.removeStoredMark(ie)):L.dispatch(W.tr.addStoredMark(ie.create()))}else I.get(ne).call(Ac.key)}}),N.addGroup("list","List").addItem("bullet-list",{icon:(s=t?.bulletListIcon)!=null?s:e6,active:()=>!1,onRun:I=>{let L=I.get(ne),W=Dc.type(I);L.call(pn.key,{nodeType:W})}}).addItem("ordered-list",{icon:(a=t?.orderedListIcon)!=null?a:s6,active:()=>!1,onRun:I=>{let L=I.get(ne),W=Ic.type(I);L.call(pn.key,{nodeType:W})}}).addItem("task-list",{icon:(l=t?.taskListIcon)!=null?l:d6,active:()=>!1,onRun:I=>{let L=I.get(ne),W=Ji.type(I);L.call(pn.key,{nodeType:W,attrs:{checked:!1}})}});let D=N.addGroup("insert","Insert");D.addItem("link",{icon:(c=t?.linkIcon)!=null?c:i6,active:I=>zo(I,dn.type(I)),onRun:I=>{let L=I.get(Pe),{state:W}=L,ie=dn.type(I);if(W.selection.empty&&zo(I,ie)){L.dispatch(W.tr.removeStoredMark(ie));return}I.get(ne).call(H0.key)}}),T&&D.addItem("image",{icon:(u=t?.imageIcon)!=null?u:gc,active:()=>!1,onRun:I=>{let L=I.get(ne),W=mi.type(I);L.call(mn.key,{nodeType:W})}}),O&&D.addItem("table",{icon:(f=t?.tableIcon)!=null?f:u6,active:()=>!1,onRun:I=>{let L=I.get(ne),W=I.get(Pe),{from:ie}=W.state.selection;L.call(mn.key,{nodeType:Vc(I,3,3)}),L.call(Lc.key,{pos:ie})}});let $=N.addGroup("block","Block");return $.addItem("code-block",{icon:(p=t?.codeBlockIcon)!=null?p:Xk,active:()=>!1,onRun:I=>{let L=I.get(ne),W=fn.type(I);L.call(ar.key,{nodeType:W})}}),k&&$.addItem("math",{icon:(v=t?.mathIcon)!=null?v:ah,active:()=>!1,onRun:I=>{let L=I.get(ne),W=fn.type(I);L.call(mn.key,{nodeType:W,attrs:{language:"LaTeX"}})}}),N.addGroup("more","More").addItem("quote",{icon:(b=t?.quoteIcon)!=null?b:a6,active:()=>!1,onRun:I=>{let L=I.get(ne),W=Nc.type(I);L.call(pn.key,{nodeType:W})}}).addItem("hr",{icon:(w=t?.hrIcon)!=null?w:r6,active:()=>!1,onRun:I=>{let L=I.get(ne),W=Oc.type(I);L.call(mn.key,{nodeType:W})}}),(g=t?.buildTopBar)==null||g.call(t,N),N.build()}mo(E,_e);var DC=He({props:{ctx:{type:Object,required:!0},version:{type:Object,required:!0},config:{type:Object,required:!1}},setup(t){let{ctx:e,config:r}=t,n=Q(null),o=b=>w=>{w.preventDefault(),e&&b(e)};function i(){return e.get(kc).status===Zi.Created}function s(){mo(t.version.value)}function a(b){return s(),i()?b(e):!1}function l(b){var w,g;return s(),i()?b.activeLabel(e):(g=(w=b.options[0])==null?void 0:w.label)!=null?g:""}function c(b,w){w.preventDefault(),w.stopPropagation(),n.value=n.value===b?null:b}let u=b=>{b.target.closest(".top-bar-heading-selector")||(n.value=null)};Yr(()=>{window.addEventListener("pointerdown",u)}),Zr(()=>{window.removeEventListener("pointerdown",u)});let f=xt(()=>OC(r,e));function p(b,w){let g=n.value===b,x=l(w);return E("div",{key:b,class:"top-bar-heading-selector"},E("button",{type:"button",class:"top-bar-heading-button",onPointerdown:k=>c(b,k)},E("span",{class:"top-bar-heading-label"},x),w.chevronIcon&&E("span",{class:"top-bar-chevron"},E(St,{icon:w.chevronIcon}))),g&&E("div",{class:"top-bar-heading-dropdown"},w.options.map((k,T)=>E("button",{key:`${b}-${T}`,type:"button",class:qe("top-bar-heading-option",x===k.label&&"active"),onPointerdown:O=>{O.preventDefault(),O.stopPropagation(),n.value=null,k.onSelect(e)}},k.label))))}function v(b){return E("button",{key:b.key,type:"button",class:qe("top-bar-item",a(b.active)&&"active"),onPointerdown:o(b.onRun)},E(St,{icon:b.icon}))}return()=>{let b=i()?e.get(Pe):null;return(b?!b.editable:!1)?null:E("div",{class:"top-bar-inner"},f.value.map(g=>g.items.map(x=>x.selector?p(x.key,x.selector):x.onRun?v(x):null)).reduce((g,x,k)=>{var T,O;if(k===0)g.push(...x);else{let N=(O=(T=f.value[k])==null?void 0:T.key)!=null?O:k;g.push(E("div",{key:`divider-${N}`,class:"top-bar-divider"}),...x)}return g},[]))}}}),F6=t=>{throw TypeError(t)},$6=(t,e,r)=>e.has(t)||F6("Cannot "+r),ya=(t,e,r)=>($6(t,e,"read from private field"),r?r.call(t):e.get(t)),N1=(t,e,r)=>e.has(t)?F6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),O1=(t,e,r,n)=>($6(t,e,"write to private field"),e.set(t,r),r),Na,mc,Oa,IC=new kr("CREPE_TOP_BAR"),Q1=class{constructor(e,r,n){N1(this,Na),N1(this,mc),N1(this,Oa),this.update=(a,l)=>{ya(this,Na).style.display=a.editable?"":"none",ya(this,Oa).value++},this.destroy=()=>{ya(this,mc).unmount(),ya(this,Na).remove()},O1(this,Oa,Q(0));let o=document.createElement("div");o.className="milkdown-top-bar";let i=lt(DC,{ctx:e,config:n,version:ya(this,Oa)});i.mount(o),O1(this,Na,o),O1(this,mc,i);let s=r.dom.parentElement;s&&s.insertBefore(o,s.firstChild),this.update(r)}};Na=new WeakMap;mc=new WeakMap;Oa=new WeakMap;var eh=Ue({view:()=>({update:()=>{},destroy:()=>{}})},"topBarConfig"),LC=Pr(t=>{let e=t.get(eh.key);return new xr({key:IC,view:e.view})}),RC=(t,e)=>{t.config(br(xe.TopBar)).config(r=>{r.set(eh.key,{view:n=>new Q1(r,n,e)})}).use(eh).use(LC)};function PC(t,e,r){switch(t){case xe.CodeMirror:return eC(e,r);case xe.ListItem:return vC(e,r);case xe.LinkTooltip:return pC(e,r);case xe.ImageBlock:return rC(e,r);case xe.Cursor:return tC(e,r);case xe.BlockEdit:return Q_(e,r);case xe.Placeholder:return wC(e,r);case xe.Toolbar:return TC(e,r);case xe.Table:return xC(e,r);case xe.Latex:return hC(e,r);case xe.TopBar:return RC(e,r);case xe.AI:return W_(e,r)}}var q6=t=>{throw TypeError(t)},U6=(t,e,r)=>e.has(t)||q6("Cannot "+r),or=(t,e,r)=>(U6(t,e,"read from private field"),r?r.call(t):e.get(t)),D1=(t,e,r)=>e.has(t)?q6("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),I1=(t,e,r,n)=>(U6(t,e,"write to private field"),e.set(t,r),r),ir,vc,Da,th=class{constructor({root:e,defaultValue:r=""}={}){D1(this,ir),D1(this,vc),D1(this,Da,!0),this.addFeature=(o,i)=>(o(or(this,ir),i),this),this.create=()=>or(this,ir).create(),this.destroy=()=>or(this,ir).destroy(),this.setReadonly=o=>(I1(this,Da,!o),or(this,ir).action(i=>{or(this,ir).status===Zi.Created&&i.get(Pe).setProps({editable:()=>!o})}),this),this.getMarkdown=()=>or(this,ir).action(Sf()),this.on=o=>or(this,ir).status!==Zi.Created?(or(this,ir).config(i=>{let s=i.get(qc);o(s)}),this):(or(this,ir).action(i=>{let s=i.get(qc);o(s)}),this);var n;I1(this,vc,(n=typeof e=="string"?document.querySelector(e):e)!=null?n:document.body),I1(this,ir,Cf.make().config(o=>{o.inject(p_,this),o.inject(f_,[])}).config(o=>{o.set(_f,or(this,vc)),o.set(xf,r),o.set(kf,{editable:()=>or(this,Da)}),o.update(Kf.key,i=>({...i,size:4})),o.update(Zf.key,i=>({...i,uploader:async(s,a,l)=>{let u=Fi(l).get().includes(xe.ImageBlock),f=u?a.nodes["image-block"]:a.nodes.image;if(!f)return[];let p=u?l.get(pi.key).onUpload:void 0,v=[];for(let w=0;w<s.length;w++){let g=s.item(w);g&&g.type.includes("image")&&v.push(g)}return await Promise.all(v.map(async w=>{let g=p?await p(w):URL.createObjectURL(w);return f.createAndFill({src:g})}))}}))}).use(Of).use(pp).use(Uf).use(Yf).use($7).use(Wf).use(Xf).use(qf))}get editor(){return or(this,ir)}get readonly(){return!or(this,Da)}};ir=new WeakMap;vc=new WeakMap;Da=new WeakMap;var rh=class extends th{constructor({features:e={},featureConfigs:r={},...n}={}){super(n);let o=Qf(r,h_);Object.entries({...Fk,...e}).filter(([,s])=>s).map(([s])=>s).forEach(s=>{let a=o[s];PC(s,this.editor,a)})}};rh.Feature=xe;export{rh as Crepe,th as CrepeBuilder,xe as CrepeFeature,m_ as useCrepe,Fi as useCrepeFeatures};