Repository: mjau-mjau/files.photo.gallery Branch: master Commit: 82fb6c5878f3 Files: 439 Total size: 2.8 MB Directory structure: gitextract_vfihzh9x/ ├── LICENSE.md ├── README.md ├── _files/ │ ├── assets/ │ │ ├── @exeba/ │ │ │ └── LICENSE │ │ ├── @uppy/ │ │ │ └── LICENSE │ │ ├── animejs@3.2.2/ │ │ │ └── LICENSE.md │ │ ├── codemirror@6.65.7/ │ │ │ ├── LICENSE │ │ │ ├── addon/ │ │ │ │ ├── mode/ │ │ │ │ │ ├── loadmode.js │ │ │ │ │ ├── multiplex.js │ │ │ │ │ └── overlay.js │ │ │ │ └── selection/ │ │ │ │ └── active-line.js │ │ │ ├── lib/ │ │ │ │ └── codemirror.css │ │ │ ├── mode/ │ │ │ │ ├── apl/ │ │ │ │ │ └── apl.js │ │ │ │ ├── asciiarmor/ │ │ │ │ │ └── asciiarmor.js │ │ │ │ ├── asn.1/ │ │ │ │ │ └── asn.1.js │ │ │ │ ├── asterisk/ │ │ │ │ │ └── asterisk.js │ │ │ │ ├── brainfuck/ │ │ │ │ │ └── brainfuck.js │ │ │ │ ├── clike/ │ │ │ │ │ └── clike.js │ │ │ │ ├── clojure/ │ │ │ │ │ └── clojure.js │ │ │ │ ├── cmake/ │ │ │ │ │ └── cmake.js │ │ │ │ ├── cobol/ │ │ │ │ │ └── cobol.js │ │ │ │ ├── coffeescript/ │ │ │ │ │ └── coffeescript.js │ │ │ │ ├── commonlisp/ │ │ │ │ │ └── commonlisp.js │ │ │ │ ├── crystal/ │ │ │ │ │ └── crystal.js │ │ │ │ ├── css/ │ │ │ │ │ └── css.js │ │ │ │ ├── cypher/ │ │ │ │ │ └── cypher.js │ │ │ │ ├── d/ │ │ │ │ │ └── d.js │ │ │ │ ├── dart/ │ │ │ │ │ └── dart.js │ │ │ │ ├── diff/ │ │ │ │ │ └── diff.js │ │ │ │ ├── django/ │ │ │ │ │ └── django.js │ │ │ │ ├── dockerfile/ │ │ │ │ │ └── dockerfile.js │ │ │ │ ├── dtd/ │ │ │ │ │ └── dtd.js │ │ │ │ ├── dylan/ │ │ │ │ │ └── dylan.js │ │ │ │ ├── ebnf/ │ │ │ │ │ └── ebnf.js │ │ │ │ ├── ecl/ │ │ │ │ │ └── ecl.js │ │ │ │ ├── eiffel/ │ │ │ │ │ └── eiffel.js │ │ │ │ ├── elm/ │ │ │ │ │ └── elm.js │ │ │ │ ├── erlang/ │ │ │ │ │ └── erlang.js │ │ │ │ ├── factor/ │ │ │ │ │ └── factor.js │ │ │ │ ├── fcl/ │ │ │ │ │ └── fcl.js │ │ │ │ ├── forth/ │ │ │ │ │ └── forth.js │ │ │ │ ├── fortran/ │ │ │ │ │ └── fortran.js │ │ │ │ ├── gas/ │ │ │ │ │ └── gas.js │ │ │ │ ├── gfm/ │ │ │ │ │ └── gfm.js │ │ │ │ ├── gherkin/ │ │ │ │ │ └── gherkin.js │ │ │ │ ├── go/ │ │ │ │ │ └── go.js │ │ │ │ ├── groovy/ │ │ │ │ │ └── groovy.js │ │ │ │ ├── haml/ │ │ │ │ │ └── haml.js │ │ │ │ ├── handlebars/ │ │ │ │ │ └── handlebars.js │ │ │ │ ├── haskell/ │ │ │ │ │ └── haskell.js │ │ │ │ ├── haskell-literate/ │ │ │ │ │ └── haskell-literate.js │ │ │ │ ├── haxe/ │ │ │ │ │ └── haxe.js │ │ │ │ ├── htmlembedded/ │ │ │ │ │ └── htmlembedded.js │ │ │ │ ├── htmlmixed/ │ │ │ │ │ └── htmlmixed.js │ │ │ │ ├── http/ │ │ │ │ │ └── http.js │ │ │ │ ├── idl/ │ │ │ │ │ └── idl.js │ │ │ │ ├── javascript/ │ │ │ │ │ └── javascript.js │ │ │ │ ├── jinja2/ │ │ │ │ │ └── jinja2.js │ │ │ │ ├── jsx/ │ │ │ │ │ └── jsx.js │ │ │ │ ├── julia/ │ │ │ │ │ └── julia.js │ │ │ │ ├── livescript/ │ │ │ │ │ └── livescript.js │ │ │ │ ├── lua/ │ │ │ │ │ └── lua.js │ │ │ │ ├── markdown/ │ │ │ │ │ └── markdown.js │ │ │ │ ├── mathematica/ │ │ │ │ │ └── mathematica.js │ │ │ │ ├── mbox/ │ │ │ │ │ └── mbox.js │ │ │ │ ├── meta.js │ │ │ │ ├── mirc/ │ │ │ │ │ └── mirc.js │ │ │ │ ├── mllike/ │ │ │ │ │ └── mllike.js │ │ │ │ ├── modelica/ │ │ │ │ │ └── modelica.js │ │ │ │ ├── mscgen/ │ │ │ │ │ └── mscgen.js │ │ │ │ ├── mumps/ │ │ │ │ │ └── mumps.js │ │ │ │ ├── nginx/ │ │ │ │ │ └── nginx.js │ │ │ │ ├── nsis/ │ │ │ │ │ └── nsis.js │ │ │ │ ├── ntriples/ │ │ │ │ │ └── ntriples.js │ │ │ │ ├── octave/ │ │ │ │ │ └── octave.js │ │ │ │ ├── oz/ │ │ │ │ │ └── oz.js │ │ │ │ ├── pascal/ │ │ │ │ │ └── pascal.js │ │ │ │ ├── pegjs/ │ │ │ │ │ └── pegjs.js │ │ │ │ ├── perl/ │ │ │ │ │ └── perl.js │ │ │ │ ├── php/ │ │ │ │ │ └── php.js │ │ │ │ ├── pig/ │ │ │ │ │ └── pig.js │ │ │ │ ├── powershell/ │ │ │ │ │ └── powershell.js │ │ │ │ ├── properties/ │ │ │ │ │ └── properties.js │ │ │ │ ├── protobuf/ │ │ │ │ │ └── protobuf.js │ │ │ │ ├── pug/ │ │ │ │ │ └── pug.js │ │ │ │ ├── puppet/ │ │ │ │ │ └── puppet.js │ │ │ │ ├── python/ │ │ │ │ │ └── python.js │ │ │ │ ├── q/ │ │ │ │ │ └── q.js │ │ │ │ ├── r/ │ │ │ │ │ └── r.js │ │ │ │ ├── rpm/ │ │ │ │ │ ├── changes/ │ │ │ │ │ │ └── index.html │ │ │ │ │ └── rpm.js │ │ │ │ ├── rst/ │ │ │ │ │ └── rst.js │ │ │ │ ├── ruby/ │ │ │ │ │ └── ruby.js │ │ │ │ ├── rust/ │ │ │ │ │ └── rust.js │ │ │ │ ├── sas/ │ │ │ │ │ └── sas.js │ │ │ │ ├── sass/ │ │ │ │ │ └── sass.js │ │ │ │ ├── scheme/ │ │ │ │ │ └── scheme.js │ │ │ │ ├── shell/ │ │ │ │ │ └── shell.js │ │ │ │ ├── sieve/ │ │ │ │ │ └── sieve.js │ │ │ │ ├── slim/ │ │ │ │ │ └── slim.js │ │ │ │ ├── smalltalk/ │ │ │ │ │ └── smalltalk.js │ │ │ │ ├── smarty/ │ │ │ │ │ └── smarty.js │ │ │ │ ├── solr/ │ │ │ │ │ └── solr.js │ │ │ │ ├── soy/ │ │ │ │ │ └── soy.js │ │ │ │ ├── sparql/ │ │ │ │ │ └── sparql.js │ │ │ │ ├── spreadsheet/ │ │ │ │ │ └── spreadsheet.js │ │ │ │ ├── sql/ │ │ │ │ │ └── sql.js │ │ │ │ ├── stex/ │ │ │ │ │ └── stex.js │ │ │ │ ├── stylus/ │ │ │ │ │ └── stylus.js │ │ │ │ ├── swift/ │ │ │ │ │ └── swift.js │ │ │ │ ├── tcl/ │ │ │ │ │ └── tcl.js │ │ │ │ ├── textile/ │ │ │ │ │ └── textile.js │ │ │ │ ├── tiddlywiki/ │ │ │ │ │ ├── tiddlywiki.css │ │ │ │ │ └── tiddlywiki.js │ │ │ │ ├── tiki/ │ │ │ │ │ ├── tiki.css │ │ │ │ │ └── tiki.js │ │ │ │ ├── toml/ │ │ │ │ │ └── toml.js │ │ │ │ ├── tornado/ │ │ │ │ │ └── tornado.js │ │ │ │ ├── troff/ │ │ │ │ │ └── troff.js │ │ │ │ ├── ttcn/ │ │ │ │ │ └── ttcn.js │ │ │ │ ├── ttcn-cfg/ │ │ │ │ │ └── ttcn-cfg.js │ │ │ │ ├── turtle/ │ │ │ │ │ └── turtle.js │ │ │ │ ├── twig/ │ │ │ │ │ └── twig.js │ │ │ │ ├── vb/ │ │ │ │ │ └── vb.js │ │ │ │ ├── vbscript/ │ │ │ │ │ └── vbscript.js │ │ │ │ ├── velocity/ │ │ │ │ │ └── velocity.js │ │ │ │ ├── verilog/ │ │ │ │ │ └── verilog.js │ │ │ │ ├── vhdl/ │ │ │ │ │ └── vhdl.js │ │ │ │ ├── vue/ │ │ │ │ │ └── vue.js │ │ │ │ ├── wast/ │ │ │ │ │ └── wast.js │ │ │ │ ├── webidl/ │ │ │ │ │ └── webidl.js │ │ │ │ ├── xml/ │ │ │ │ │ └── xml.js │ │ │ │ ├── xquery/ │ │ │ │ │ └── xquery.js │ │ │ │ ├── yacas/ │ │ │ │ │ └── yacas.js │ │ │ │ ├── yaml/ │ │ │ │ │ └── yaml.js │ │ │ │ ├── yaml-frontmatter/ │ │ │ │ │ └── yaml-frontmatter.js │ │ │ │ └── z80/ │ │ │ │ └── z80.js │ │ │ └── theme/ │ │ │ ├── 3024-day.css │ │ │ ├── 3024-night.css │ │ │ ├── abbott.css │ │ │ ├── abcdef.css │ │ │ ├── ambiance-mobile.css │ │ │ ├── ambiance.css │ │ │ ├── ayu-dark.css │ │ │ ├── ayu-mirage.css │ │ │ ├── base16-dark.css │ │ │ ├── base16-light.css │ │ │ ├── bespin.css │ │ │ ├── blackboard.css │ │ │ ├── cobalt.css │ │ │ ├── colorforth.css │ │ │ ├── darcula.css │ │ │ ├── dracula.css │ │ │ ├── duotone-dark.css │ │ │ ├── duotone-light.css │ │ │ ├── eclipse.css │ │ │ ├── elegant.css │ │ │ ├── erlang-dark.css │ │ │ ├── gruvbox-dark.css │ │ │ ├── hopscotch.css │ │ │ ├── icecoder.css │ │ │ ├── idea.css │ │ │ ├── isotope.css │ │ │ ├── juejin.css │ │ │ ├── lesser-dark.css │ │ │ ├── liquibyte.css │ │ │ ├── lucario.css │ │ │ ├── material-darker.css │ │ │ ├── material-ocean.css │ │ │ ├── material-palenight.css │ │ │ ├── material.css │ │ │ ├── mbo.css │ │ │ ├── mdn-like.css │ │ │ ├── midnight.css │ │ │ ├── monokai.css │ │ │ ├── moxer.css │ │ │ ├── neat.css │ │ │ ├── neo.css │ │ │ ├── night.css │ │ │ ├── nord.css │ │ │ ├── oceanic-next.css │ │ │ ├── panda-syntax.css │ │ │ ├── paraiso-dark.css │ │ │ ├── paraiso-light.css │ │ │ ├── pastel-on-dark.css │ │ │ ├── railscasts.css │ │ │ ├── rubyblue.css │ │ │ ├── seti.css │ │ │ ├── shadowfox.css │ │ │ ├── solarized.css │ │ │ ├── ssms.css │ │ │ ├── the-matrix.css │ │ │ ├── tomorrow-night-bright.css │ │ │ ├── tomorrow-night-eighties.css │ │ │ ├── ttcn.css │ │ │ ├── twilight.css │ │ │ ├── vibrant-ink.css │ │ │ ├── xq-dark.css │ │ │ ├── xq-light.css │ │ │ ├── yeti.css │ │ │ ├── yonce.css │ │ │ └── zenburn.css │ │ ├── dayjs@1.11.13/ │ │ │ ├── LICENSE │ │ │ ├── locale/ │ │ │ │ ├── af.js │ │ │ │ ├── am.js │ │ │ │ ├── ar-dz.js │ │ │ │ ├── ar-iq.js │ │ │ │ ├── ar-kw.js │ │ │ │ ├── ar-ly.js │ │ │ │ ├── ar-ma.js │ │ │ │ ├── ar-sa.js │ │ │ │ ├── ar-tn.js │ │ │ │ ├── ar.js │ │ │ │ ├── az.js │ │ │ │ ├── be.js │ │ │ │ ├── bg.js │ │ │ │ ├── bi.js │ │ │ │ ├── bm.js │ │ │ │ ├── bn-bd.js │ │ │ │ ├── bn.js │ │ │ │ ├── bo.js │ │ │ │ ├── br.js │ │ │ │ ├── bs.js │ │ │ │ ├── ca.js │ │ │ │ ├── cs.js │ │ │ │ ├── cv.js │ │ │ │ ├── cy.js │ │ │ │ ├── da.js │ │ │ │ ├── de-at.js │ │ │ │ ├── de-ch.js │ │ │ │ ├── de.js │ │ │ │ ├── dv.js │ │ │ │ ├── el.js │ │ │ │ ├── en-au.js │ │ │ │ ├── en-ca.js │ │ │ │ ├── en-gb.js │ │ │ │ ├── en-ie.js │ │ │ │ ├── en-il.js │ │ │ │ ├── en-in.js │ │ │ │ ├── en-nz.js │ │ │ │ ├── en-sg.js │ │ │ │ ├── en-tt.js │ │ │ │ ├── en.js │ │ │ │ ├── eo.js │ │ │ │ ├── es-do.js │ │ │ │ ├── es-mx.js │ │ │ │ ├── es-pr.js │ │ │ │ ├── es-us.js │ │ │ │ ├── es.js │ │ │ │ ├── et.js │ │ │ │ ├── eu.js │ │ │ │ ├── fa.js │ │ │ │ ├── fi.js │ │ │ │ ├── fo.js │ │ │ │ ├── fr-ca.js │ │ │ │ ├── fr-ch.js │ │ │ │ ├── fr.js │ │ │ │ ├── fy.js │ │ │ │ ├── ga.js │ │ │ │ ├── gd.js │ │ │ │ ├── gl.js │ │ │ │ ├── gom-latn.js │ │ │ │ ├── gu.js │ │ │ │ ├── he.js │ │ │ │ ├── hi.js │ │ │ │ ├── hr.js │ │ │ │ ├── ht.js │ │ │ │ ├── hu.js │ │ │ │ ├── hy-am.js │ │ │ │ ├── id.js │ │ │ │ ├── index.d.ts │ │ │ │ ├── is.js │ │ │ │ ├── it-ch.js │ │ │ │ ├── it.js │ │ │ │ ├── ja.js │ │ │ │ ├── jv.js │ │ │ │ ├── ka.js │ │ │ │ ├── kk.js │ │ │ │ ├── km.js │ │ │ │ ├── kn.js │ │ │ │ ├── ko.js │ │ │ │ ├── ku.js │ │ │ │ ├── ky.js │ │ │ │ ├── lb.js │ │ │ │ ├── lo.js │ │ │ │ ├── lt.js │ │ │ │ ├── lv.js │ │ │ │ ├── me.js │ │ │ │ ├── mi.js │ │ │ │ ├── mk.js │ │ │ │ ├── ml.js │ │ │ │ ├── mn.js │ │ │ │ ├── mr.js │ │ │ │ ├── ms-my.js │ │ │ │ ├── ms.js │ │ │ │ ├── mt.js │ │ │ │ ├── my.js │ │ │ │ ├── nb.js │ │ │ │ ├── ne.js │ │ │ │ ├── nl-be.js │ │ │ │ ├── nl.js │ │ │ │ ├── nn.js │ │ │ │ ├── oc-lnc.js │ │ │ │ ├── pa-in.js │ │ │ │ ├── pl.js │ │ │ │ ├── pt-br.js │ │ │ │ ├── pt.js │ │ │ │ ├── rn.js │ │ │ │ ├── ro.js │ │ │ │ ├── ru.js │ │ │ │ ├── rw.js │ │ │ │ ├── sd.js │ │ │ │ ├── se.js │ │ │ │ ├── si.js │ │ │ │ ├── sk.js │ │ │ │ ├── sl.js │ │ │ │ ├── sq.js │ │ │ │ ├── sr-cyrl.js │ │ │ │ ├── sr.js │ │ │ │ ├── ss.js │ │ │ │ ├── sv-fi.js │ │ │ │ ├── sv.js │ │ │ │ ├── sw.js │ │ │ │ ├── ta.js │ │ │ │ ├── te.js │ │ │ │ ├── tet.js │ │ │ │ ├── tg.js │ │ │ │ ├── th.js │ │ │ │ ├── tk.js │ │ │ │ ├── tl-ph.js │ │ │ │ ├── tlh.js │ │ │ │ ├── tr.js │ │ │ │ ├── types.d.ts │ │ │ │ ├── tzl.js │ │ │ │ ├── tzm-latn.js │ │ │ │ ├── tzm.js │ │ │ │ ├── ug-cn.js │ │ │ │ ├── uk.js │ │ │ │ ├── ur.js │ │ │ │ ├── uz-latn.js │ │ │ │ ├── uz.js │ │ │ │ ├── vi.js │ │ │ │ ├── x-pseudo.js │ │ │ │ ├── yo.js │ │ │ │ ├── zh-cn.js │ │ │ │ ├── zh-hk.js │ │ │ │ ├── zh-tw.js │ │ │ │ └── zh.js │ │ │ └── plugin/ │ │ │ ├── localizedFormat.js │ │ │ └── relativeTime.js │ │ ├── file-saver@2.0.5/ │ │ │ └── LICENSE.md │ │ ├── files.photo.gallery@0.15.3/ │ │ │ ├── css/ │ │ │ │ └── files.css │ │ │ ├── js/ │ │ │ │ └── files.js │ │ │ └── lang/ │ │ │ ├── ar.json │ │ │ ├── bg.json │ │ │ ├── bn.json │ │ │ ├── cs.json │ │ │ ├── da.json │ │ │ ├── de.json │ │ │ ├── el.json │ │ │ ├── en.json │ │ │ ├── es.json │ │ │ ├── et.json │ │ │ ├── fi.json │ │ │ ├── fr.json │ │ │ ├── hu.json │ │ │ ├── id.json │ │ │ ├── it.json │ │ │ ├── ja.json │ │ │ ├── ko.json │ │ │ ├── ms.json │ │ │ ├── nl.json │ │ │ ├── no.json │ │ │ ├── pl.json │ │ │ ├── pt.json │ │ │ ├── ro.json │ │ │ ├── ru.json │ │ │ ├── sk.json │ │ │ ├── sl.json │ │ │ ├── sv.json │ │ │ ├── th.json │ │ │ ├── tr.json │ │ │ ├── uk.json │ │ │ └── zh.json │ │ ├── filesize@9.0.11/ │ │ │ └── LICENSE │ │ ├── flag-icons@6.6.4/ │ │ │ └── LICENSE │ │ ├── headroom.js@0.12.0/ │ │ │ └── LICENSE │ │ ├── hls.js@1.6.13/ │ │ │ └── LICENSE.txt │ │ ├── js-file-downloader@1.1.25/ │ │ │ └── LICENSE │ │ ├── jsmediatags@3.9.7/ │ │ │ └── LICENSE.md │ │ ├── jszip@3.10.1/ │ │ │ └── LICENSE.markdown │ │ ├── marked-base-url@1.1.6/ │ │ │ └── LICENSE │ │ ├── marked@15.0.11/ │ │ │ └── LICENSE.md │ │ ├── pannellum@2.5.6/ │ │ │ └── LICENSE │ │ ├── plyr@3.8.3/ │ │ │ ├── LICENSE.md │ │ │ └── dist/ │ │ │ └── plyr.css │ │ ├── readme.txt │ │ ├── screenfull@5.2.0/ │ │ │ └── license │ │ ├── sweetalert2@11.19.1/ │ │ │ └── LICENSE │ │ ├── toastify-js@1.12.0/ │ │ │ └── LICENSE │ │ ├── uppy@3.27.3/ │ │ │ └── LICENSE │ │ └── yall-js@3.2.0/ │ │ └── LICENSE │ ├── config/ │ │ └── config.php │ └── plugins/ │ ├── files.tasks.php │ └── files.x3-login.php ├── css/ │ └── files.css ├── index.php ├── js/ │ └── files.js ├── lang/ │ ├── ar.json │ ├── bg.json │ ├── bn.json │ ├── cs.json │ ├── da.json │ ├── de.json │ ├── el.json │ ├── en.json │ ├── es.json │ ├── et.json │ ├── fi.json │ ├── fr.json │ ├── hu.json │ ├── id.json │ ├── it.json │ ├── ja.json │ ├── ko.json │ ├── ms.json │ ├── nl.json │ ├── no.json │ ├── pl.json │ ├── pt.json │ ├── ro.json │ ├── ru.json │ ├── sk.json │ ├── sl.json │ ├── sv.json │ ├── th.json │ ├── tr.json │ ├── uk.json │ └── zh.json └── package.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: LICENSE.md ================================================ # Files Gallery / www.files.gallery Copyright (c) 2020-2026 Imagevue Co Ltd - All Rights Reserved. ## Usage You are free to download and use Files app as you like. Application can be used for free with some limitations. Full features available with paid license. ## Modifications You are free to make modifications to the source, but support for custom modifications is not supported by the authors. ## Redistribution You may not copy, redistribute or republish the source or a work based without consent from the author. ## Non-compliance You may not copy, modify, sublicense, or distribute the application without consent from the author. ## Permissions If you intend to incorporate the source code, in part or whole, into any free or proprietary program, you need to explicitly write to the original author(s) to ask for permission. ## No Warranty The application is available "as is", and there is no warranty. The original author of the application is not liable to you for damaages arising out of the usage or inability to use the application. ================================================ FILE: README.md ================================================ # [Files](https://www.files.gallery/) Files is a single-file PHP app that can be dropped into any folder on server, instantly creating a gallery of files and folders. It supports all file types and allows you to preview images, video, audio, documents and text files. **[[Demo]](https://demo.files.gallery/)** ✔️ **File browser.** Instantly browse files and folders without complicated installations. ✔️ **File sharing.** Conveniently share files and photos with clients, friends and family. ✔️ **Photo gallery.** Use as a simple yet beautiful and modern gallery for your website. ✔️ **File manager.** Upload and manage files and folders directly from one elegant interface. ![Files Gallery](https://www.files.gallery/img/files-gallery-0.8.0-2560-1440.jpg) ✔️ Beautiful interface designed for modern browsers. ✔️ Advanced layouts that can be toggled in real-time. ✔️ Sort and filter files in real-time. ✔️ Fast loading with preview and folder caching. ✔️ Code highlighter for viewing and editing code. ✔️ Advanced folder tree-menu navigation. ✔️ Optional multi-user login. ✔️ Multi-language interface. ✔️ Beautiful popup image viewer. --- **Installation** Simply [download index.php](https://cdn.jsdelivr.net/npm/files.photo.gallery/index.php), drop into any folder and view from browser. [Docs](https://www.files.gallery/docs/install/) | [Config](https://www.files.gallery/docs/config/) **Requirements** Files app requires a web server with PHP 5.5 or higher. [Requirements](https://www.files.gallery/docs/config/) **License** Files is free to use with basic features. To remove the license-popup and unlock additional features, you may purchase a license [$39] from within the app. [License](https://www.files.gallery/docs/license/) --- **[www.files.gallery](https://www.files.gallery/)** | [Demo](https://demo.files.gallery/) | [Docs](https://www.files.gallery/docs/install/) | [Support](https://forum.files.gallery/) | [Subscribe](http://eepurl.com/gTyhA9) ================================================ FILE: _files/assets/@exeba/LICENSE ================================================ The MIT License (MIT) Copyright (c) 2011-2018 Jonny Strömberg, jonnystromberg.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/@uppy/LICENSE ================================================ The MIT License (MIT) Copyright (c) 2018 Transloadit Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/animejs@3.2.2/LICENSE.md ================================================ The MIT License Copyright (c) 2019 Julian Garnier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/codemirror@6.65.7/LICENSE ================================================ MIT License Copyright (C) 2017 by Marijn Haverbeke and others Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/codemirror@6.65.7/addon/mode/loadmode.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), "cjs"); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], function(CM) { mod(CM, "amd"); }); else // Plain browser env mod(CodeMirror, "plain"); })(function(CodeMirror, env) { if (!CodeMirror.modeURL) CodeMirror.modeURL = "../mode/%N/%N.js"; var loading = {}; function splitCallback(cont, n) { var countDown = n; return function() { if (--countDown == 0) cont(); }; } function ensureDeps(mode, cont, options) { var modeObj = CodeMirror.modes[mode], deps = modeObj && modeObj.dependencies; if (!deps) return cont(); var missing = []; for (var i = 0; i < deps.length; ++i) { if (!CodeMirror.modes.hasOwnProperty(deps[i])) missing.push(deps[i]); } if (!missing.length) return cont(); var split = splitCallback(cont, missing.length); for (var i = 0; i < missing.length; ++i) CodeMirror.requireMode(missing[i], split, options); } CodeMirror.requireMode = function(mode, cont, options) { if (typeof mode != "string") mode = mode.name; if (CodeMirror.modes.hasOwnProperty(mode)) return ensureDeps(mode, cont, options); if (loading.hasOwnProperty(mode)) return loading[mode].push(cont); var file = options && options.path ? options.path(mode) : CodeMirror.modeURL.replace(/%N/g, mode); if (options && options.loadMode) { options.loadMode(file, function() { ensureDeps(mode, cont, options) }) } else if (env == "plain") { var script = document.createElement("script"); script.src = file; var others = document.getElementsByTagName("script")[0]; var list = loading[mode] = [cont]; CodeMirror.on(script, "load", function() { ensureDeps(mode, function() { for (var i = 0; i < list.length; ++i) list[i](); }, options); }); others.parentNode.insertBefore(script, others); } else if (env == "cjs") { require(file); cont(); } else if (env == "amd") { requirejs([file], cont); } }; CodeMirror.autoLoadMode = function(instance, mode, options) { if (!CodeMirror.modes.hasOwnProperty(mode)) CodeMirror.requireMode(mode, function() { instance.setOption("mode", instance.getOption("mode")); }, options); }; }); ================================================ FILE: _files/assets/codemirror@6.65.7/addon/mode/multiplex.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.multiplexingMode = function(outer /*, others */) { // Others should be {open, close, mode [, delimStyle] [, innerStyle] [, parseDelimiters]} objects var others = Array.prototype.slice.call(arguments, 1); function indexOf(string, pattern, from, returnEnd) { if (typeof pattern == "string") { var found = string.indexOf(pattern, from); return returnEnd && found > -1 ? found + pattern.length : found; } var m = pattern.exec(from ? string.slice(from) : string); return m ? m.index + from + (returnEnd ? m[0].length : 0) : -1; } return { startState: function() { return { outer: CodeMirror.startState(outer), innerActive: null, inner: null, startingInner: false }; }, copyState: function(state) { return { outer: CodeMirror.copyState(outer, state.outer), innerActive: state.innerActive, inner: state.innerActive && CodeMirror.copyState(state.innerActive.mode, state.inner), startingInner: state.startingInner }; }, token: function(stream, state) { if (!state.innerActive) { var cutOff = Infinity, oldContent = stream.string; for (var i = 0; i < others.length; ++i) { var other = others[i]; var found = indexOf(oldContent, other.open, stream.pos); if (found == stream.pos) { if (!other.parseDelimiters) stream.match(other.open); state.startingInner = !!other.parseDelimiters state.innerActive = other; // Get the outer indent, making sure to handle CodeMirror.Pass var outerIndent = 0; if (outer.indent) { var possibleOuterIndent = outer.indent(state.outer, "", ""); if (possibleOuterIndent !== CodeMirror.Pass) outerIndent = possibleOuterIndent; } state.inner = CodeMirror.startState(other.mode, outerIndent); return other.delimStyle && (other.delimStyle + " " + other.delimStyle + "-open"); } else if (found != -1 && found < cutOff) { cutOff = found; } } if (cutOff != Infinity) stream.string = oldContent.slice(0, cutOff); var outerToken = outer.token(stream, state.outer); if (cutOff != Infinity) stream.string = oldContent; return outerToken; } else { var curInner = state.innerActive, oldContent = stream.string; if (!curInner.close && stream.sol()) { state.innerActive = state.inner = null; return this.token(stream, state); } var found = curInner.close && !state.startingInner ? indexOf(oldContent, curInner.close, stream.pos, curInner.parseDelimiters) : -1; if (found == stream.pos && !curInner.parseDelimiters) { stream.match(curInner.close); state.innerActive = state.inner = null; return curInner.delimStyle && (curInner.delimStyle + " " + curInner.delimStyle + "-close"); } if (found > -1) stream.string = oldContent.slice(0, found); var innerToken = curInner.mode.token(stream, state.inner); if (found > -1) stream.string = oldContent; else if (stream.pos > stream.start) state.startingInner = false if (found == stream.pos && curInner.parseDelimiters) state.innerActive = state.inner = null; if (curInner.innerStyle) { if (innerToken) innerToken = innerToken + " " + curInner.innerStyle; else innerToken = curInner.innerStyle; } return innerToken; } }, indent: function(state, textAfter, line) { var mode = state.innerActive ? state.innerActive.mode : outer; if (!mode.indent) return CodeMirror.Pass; return mode.indent(state.innerActive ? state.inner : state.outer, textAfter, line); }, blankLine: function(state) { var mode = state.innerActive ? state.innerActive.mode : outer; if (mode.blankLine) { mode.blankLine(state.innerActive ? state.inner : state.outer); } if (!state.innerActive) { for (var i = 0; i < others.length; ++i) { var other = others[i]; if (other.open === "\n") { state.innerActive = other; state.inner = CodeMirror.startState(other.mode, mode.indent ? mode.indent(state.outer, "", "") : 0); } } } else if (state.innerActive.close === "\n") { state.innerActive = state.inner = null; } }, electricChars: outer.electricChars, innerMode: function(state) { return state.inner ? {state: state.inner, mode: state.innerActive.mode} : {state: state.outer, mode: outer}; } }; }; }); ================================================ FILE: _files/assets/codemirror@6.65.7/addon/mode/overlay.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Utility function that allows modes to be combined. The mode given // as the base argument takes care of most of the normal mode // functionality, but a second (typically simple) mode is used, which // can override the style of text. Both modes get to parse all of the // text, but when both assign a non-null style to a piece of code, the // overlay wins, unless the combine argument was true and not overridden, // or state.overlay.combineTokens was true, in which case the styles are // combined. (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.overlayMode = function(base, overlay, combine) { return { startState: function() { return { base: CodeMirror.startState(base), overlay: CodeMirror.startState(overlay), basePos: 0, baseCur: null, overlayPos: 0, overlayCur: null, streamSeen: null }; }, copyState: function(state) { return { base: CodeMirror.copyState(base, state.base), overlay: CodeMirror.copyState(overlay, state.overlay), basePos: state.basePos, baseCur: null, overlayPos: state.overlayPos, overlayCur: null }; }, token: function(stream, state) { if (stream != state.streamSeen || Math.min(state.basePos, state.overlayPos) < stream.start) { state.streamSeen = stream; state.basePos = state.overlayPos = stream.start; } if (stream.start == state.basePos) { state.baseCur = base.token(stream, state.base); state.basePos = stream.pos; } if (stream.start == state.overlayPos) { stream.pos = stream.start; state.overlayCur = overlay.token(stream, state.overlay); state.overlayPos = stream.pos; } stream.pos = Math.min(state.basePos, state.overlayPos); // state.overlay.combineTokens always takes precedence over combine, // unless set to null if (state.overlayCur == null) return state.baseCur; else if (state.baseCur != null && state.overlay.combineTokens || combine && state.overlay.combineTokens == null) return state.baseCur + " " + state.overlayCur; else return state.overlayCur; }, indent: base.indent && function(state, textAfter, line) { return base.indent(state.base, textAfter, line); }, electricChars: base.electricChars, innerMode: function(state) { return {state: state.base, mode: base}; }, blankLine: function(state) { var baseToken, overlayToken; if (base.blankLine) baseToken = base.blankLine(state.base); if (overlay.blankLine) overlayToken = overlay.blankLine(state.overlay); return overlayToken == null ? baseToken : (combine && baseToken != null ? baseToken + " " + overlayToken : overlayToken); } }; }; }); ================================================ FILE: _files/assets/codemirror@6.65.7/addon/selection/active-line.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; var WRAP_CLASS = "CodeMirror-activeline"; var BACK_CLASS = "CodeMirror-activeline-background"; var GUTT_CLASS = "CodeMirror-activeline-gutter"; CodeMirror.defineOption("styleActiveLine", false, function(cm, val, old) { var prev = old == CodeMirror.Init ? false : old; if (val == prev) return if (prev) { cm.off("beforeSelectionChange", selectionChange); clearActiveLines(cm); delete cm.state.activeLines; } if (val) { cm.state.activeLines = []; updateActiveLines(cm, cm.listSelections()); cm.on("beforeSelectionChange", selectionChange); } }); function clearActiveLines(cm) { for (var i = 0; i < cm.state.activeLines.length; i++) { cm.removeLineClass(cm.state.activeLines[i], "wrap", WRAP_CLASS); cm.removeLineClass(cm.state.activeLines[i], "background", BACK_CLASS); cm.removeLineClass(cm.state.activeLines[i], "gutter", GUTT_CLASS); } } function sameArray(a, b) { if (a.length != b.length) return false; for (var i = 0; i < a.length; i++) if (a[i] != b[i]) return false; return true; } function updateActiveLines(cm, ranges) { var active = []; for (var i = 0; i < ranges.length; i++) { var range = ranges[i]; var option = cm.getOption("styleActiveLine"); if (typeof option == "object" && option.nonEmpty ? range.anchor.line != range.head.line : !range.empty()) continue var line = cm.getLineHandleVisualStart(range.head.line); if (active[active.length - 1] != line) active.push(line); } if (sameArray(cm.state.activeLines, active)) return; cm.operation(function() { clearActiveLines(cm); for (var i = 0; i < active.length; i++) { cm.addLineClass(active[i], "wrap", WRAP_CLASS); cm.addLineClass(active[i], "background", BACK_CLASS); cm.addLineClass(active[i], "gutter", GUTT_CLASS); } cm.state.activeLines = active; }); } function selectionChange(cm, sel) { updateActiveLines(cm, sel.ranges); } }); ================================================ FILE: _files/assets/codemirror@6.65.7/lib/codemirror.css ================================================ /* BASICS */ .CodeMirror { /* Set height, width, borders, and global font properties here */ font-family: monospace; height: 300px; color: black; direction: ltr; } /* PADDING */ .CodeMirror-lines { padding: 4px 0; /* Vertical padding around content */ } .CodeMirror pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like { padding: 0 4px; /* Horizontal padding of content */ } .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { background-color: white; /* The little square between H and V scrollbars */ } /* GUTTER */ .CodeMirror-gutters { border-right: 1px solid #ddd; background-color: #f7f7f7; white-space: nowrap; } .CodeMirror-linenumbers {} .CodeMirror-linenumber { padding: 0 3px 0 5px; min-width: 20px; text-align: right; color: #999; white-space: nowrap; } .CodeMirror-guttermarker { color: black; } .CodeMirror-guttermarker-subtle { color: #999; } /* CURSOR */ .CodeMirror-cursor { border-left: 1px solid black; border-right: none; width: 0; } /* Shown when moving in bi-directional text */ .CodeMirror div.CodeMirror-secondarycursor { border-left: 1px solid silver; } .cm-fat-cursor .CodeMirror-cursor { width: auto; border: 0 !important; background: #7e7; } .cm-fat-cursor div.CodeMirror-cursors { z-index: 1; } .cm-fat-cursor .CodeMirror-line::selection, .cm-fat-cursor .CodeMirror-line > span::selection, .cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; } .cm-fat-cursor .CodeMirror-line::-moz-selection, .cm-fat-cursor .CodeMirror-line > span::-moz-selection, .cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; } .cm-fat-cursor { caret-color: transparent; } @-moz-keyframes blink { 0% {} 50% { background-color: transparent; } 100% {} } @-webkit-keyframes blink { 0% {} 50% { background-color: transparent; } 100% {} } @keyframes blink { 0% {} 50% { background-color: transparent; } 100% {} } /* Can style cursor different in overwrite (non-insert) mode */ .CodeMirror-overwrite .CodeMirror-cursor {} .cm-tab { display: inline-block; text-decoration: inherit; } .CodeMirror-rulers { position: absolute; left: 0; right: 0; top: -50px; bottom: 0; overflow: hidden; } .CodeMirror-ruler { border-left: 1px solid #ccc; top: 0; bottom: 0; position: absolute; } /* DEFAULT THEME */ .cm-s-default .cm-header {color: blue;} .cm-s-default .cm-quote {color: #090;} .cm-negative {color: #d44;} .cm-positive {color: #292;} .cm-header, .cm-strong {font-weight: bold;} .cm-em {font-style: italic;} .cm-link {text-decoration: underline;} .cm-strikethrough {text-decoration: line-through;} .cm-s-default .cm-keyword {color: #708;} .cm-s-default .cm-atom {color: #219;} .cm-s-default .cm-number {color: #164;} .cm-s-default .cm-def {color: #00f;} .cm-s-default .cm-variable, .cm-s-default .cm-punctuation, .cm-s-default .cm-property, .cm-s-default .cm-operator {} .cm-s-default .cm-variable-2 {color: #05a;} .cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;} .cm-s-default .cm-comment {color: #a50;} .cm-s-default .cm-string {color: #a11;} .cm-s-default .cm-string-2 {color: #f50;} .cm-s-default .cm-meta {color: #555;} .cm-s-default .cm-qualifier {color: #555;} .cm-s-default .cm-builtin {color: #30a;} .cm-s-default .cm-bracket {color: #997;} .cm-s-default .cm-tag {color: #170;} .cm-s-default .cm-attribute {color: #00c;} .cm-s-default .cm-hr {color: #999;} .cm-s-default .cm-link {color: #00c;} .cm-s-default .cm-error {color: #f00;} .cm-invalidchar {color: #f00;} .CodeMirror-composing { border-bottom: 2px solid; } /* Default styles for common addons */ div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;} div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;} .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); } .CodeMirror-activeline-background {background: #e8f2ff;} /* STOP */ /* The rest of this file contains styles related to the mechanics of the editor. You probably shouldn't touch them. */ .CodeMirror { position: relative; overflow: hidden; background: white; } .CodeMirror-scroll { overflow: scroll !important; /* Things will break if this is overridden */ /* 50px is the magic margin used to hide the element's real scrollbars */ /* See overflow: hidden in .CodeMirror */ margin-bottom: -50px; margin-right: -50px; padding-bottom: 50px; height: 100%; outline: none; /* Prevent dragging from highlighting the element */ position: relative; z-index: 0; } .CodeMirror-sizer { position: relative; border-right: 50px solid transparent; } /* The fake, visible scrollbars. Used to force redraw during scrolling before actual scrolling happens, thus preventing shaking and flickering artifacts. */ .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { position: absolute; z-index: 6; display: none; outline: none; } .CodeMirror-vscrollbar { right: 0; top: 0; overflow-x: hidden; overflow-y: scroll; } .CodeMirror-hscrollbar { bottom: 0; left: 0; overflow-y: hidden; overflow-x: scroll; } .CodeMirror-scrollbar-filler { right: 0; bottom: 0; } .CodeMirror-gutter-filler { left: 0; bottom: 0; } .CodeMirror-gutters { position: absolute; left: 0; top: 0; min-height: 100%; z-index: 3; } .CodeMirror-gutter { white-space: normal; height: 100%; display: inline-block; vertical-align: top; margin-bottom: -50px; } .CodeMirror-gutter-wrapper { position: absolute; z-index: 4; background: none !important; border: none !important; } .CodeMirror-gutter-background { position: absolute; top: 0; bottom: 0; z-index: 4; } .CodeMirror-gutter-elt { position: absolute; cursor: default; z-index: 4; } .CodeMirror-gutter-wrapper ::selection { background-color: transparent } .CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent } .CodeMirror-lines { cursor: text; min-height: 1px; /* prevents collapsing before first draw */ } .CodeMirror pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like { /* Reset some styles that the rest of the page might have set */ -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; border-width: 0; background: transparent; font-family: inherit; font-size: inherit; margin: 0; white-space: pre; word-wrap: normal; line-height: inherit; color: inherit; z-index: 2; position: relative; overflow: visible; -webkit-tap-highlight-color: transparent; -webkit-font-variant-ligatures: contextual; font-variant-ligatures: contextual; } .CodeMirror-wrap pre.CodeMirror-line, .CodeMirror-wrap pre.CodeMirror-line-like { word-wrap: break-word; white-space: pre-wrap; word-break: normal; } .CodeMirror-linebackground { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; } .CodeMirror-linewidget { position: relative; z-index: 2; padding: 0.1px; /* Force widget margins to stay inside of the container */ } .CodeMirror-widget {} .CodeMirror-rtl pre { direction: rtl; } .CodeMirror-code { outline: none; } /* Force content-box sizing for the elements where we expect it */ .CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber { -moz-box-sizing: content-box; box-sizing: content-box; } .CodeMirror-measure { position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden; } .CodeMirror-cursor { position: absolute; pointer-events: none; } .CodeMirror-measure pre { position: static; } div.CodeMirror-cursors { visibility: hidden; position: relative; z-index: 3; } div.CodeMirror-dragcursors { visibility: visible; } .CodeMirror-focused div.CodeMirror-cursors { visibility: visible; } .CodeMirror-selected { background: #d9d9d9; } .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } .CodeMirror-crosshair { cursor: crosshair; } .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; } .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; } .cm-searching { background-color: #ffa; background-color: rgba(255, 255, 0, .4); } /* Used to force a border model for a node */ .cm-force-border { padding-right: .1px; } @media print { /* Hide the cursor when printing */ .CodeMirror div.CodeMirror-cursors { visibility: hidden; } } /* See issue #2901 */ .cm-tab-wrap-hack:after { content: ''; } /* Help users use markselection to safely style text background */ span.CodeMirror-selectedtext { background: none; } ================================================ FILE: _files/assets/codemirror@6.65.7/mode/apl/apl.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("apl", function() { var builtInOps = { ".": "innerProduct", "\\": "scan", "/": "reduce", "⌿": "reduce1Axis", "⍀": "scan1Axis", "¨": "each", "⍣": "power" }; var builtInFuncs = { "+": ["conjugate", "add"], "−": ["negate", "subtract"], "×": ["signOf", "multiply"], "÷": ["reciprocal", "divide"], "⌈": ["ceiling", "greaterOf"], "⌊": ["floor", "lesserOf"], "∣": ["absolute", "residue"], "⍳": ["indexGenerate", "indexOf"], "?": ["roll", "deal"], "⋆": ["exponentiate", "toThePowerOf"], "⍟": ["naturalLog", "logToTheBase"], "○": ["piTimes", "circularFuncs"], "!": ["factorial", "binomial"], "⌹": ["matrixInverse", "matrixDivide"], "<": [null, "lessThan"], "≤": [null, "lessThanOrEqual"], "=": [null, "equals"], ">": [null, "greaterThan"], "≥": [null, "greaterThanOrEqual"], "≠": [null, "notEqual"], "≡": ["depth", "match"], "≢": [null, "notMatch"], "∈": ["enlist", "membership"], "⍷": [null, "find"], "∪": ["unique", "union"], "∩": [null, "intersection"], "∼": ["not", "without"], "∨": [null, "or"], "∧": [null, "and"], "⍱": [null, "nor"], "⍲": [null, "nand"], "⍴": ["shapeOf", "reshape"], ",": ["ravel", "catenate"], "⍪": [null, "firstAxisCatenate"], "⌽": ["reverse", "rotate"], "⊖": ["axis1Reverse", "axis1Rotate"], "⍉": ["transpose", null], "↑": ["first", "take"], "↓": [null, "drop"], "⊂": ["enclose", "partitionWithAxis"], "⊃": ["diclose", "pick"], "⌷": [null, "index"], "⍋": ["gradeUp", null], "⍒": ["gradeDown", null], "⊤": ["encode", null], "⊥": ["decode", null], "⍕": ["format", "formatByExample"], "⍎": ["execute", null], "⊣": ["stop", "left"], "⊢": ["pass", "right"] }; var isOperator = /[\.\/⌿⍀¨⍣]/; var isNiladic = /⍬/; var isFunction = /[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/; var isArrow = /←/; var isComment = /[⍝#].*$/; var stringEater = function(type) { var prev; prev = false; return function(c) { prev = c; if (c === type) { return prev === "\\"; } return true; }; }; return { startState: function() { return { prev: false, func: false, op: false, string: false, escape: false }; }, token: function(stream, state) { var ch, funcName; if (stream.eatSpace()) { return null; } ch = stream.next(); if (ch === '"' || ch === "'") { stream.eatWhile(stringEater(ch)); stream.next(); state.prev = true; return "string"; } if (/[\[{\(]/.test(ch)) { state.prev = false; return null; } if (/[\]}\)]/.test(ch)) { state.prev = true; return null; } if (isNiladic.test(ch)) { state.prev = false; return "niladic"; } if (/[¯\d]/.test(ch)) { if (state.func) { state.func = false; state.prev = false; } else { state.prev = true; } stream.eatWhile(/[\w\.]/); return "number"; } if (isOperator.test(ch)) { return "operator apl-" + builtInOps[ch]; } if (isArrow.test(ch)) { return "apl-arrow"; } if (isFunction.test(ch)) { funcName = "apl-"; if (builtInFuncs[ch] != null) { if (state.prev) { funcName += builtInFuncs[ch][1]; } else { funcName += builtInFuncs[ch][0]; } } state.func = true; state.prev = false; return "function " + funcName; } if (isComment.test(ch)) { stream.skipToEnd(); return "comment"; } if (ch === "∘" && stream.peek() === ".") { stream.next(); return "function jot-dot"; } stream.eatWhile(/[\w\$_]/); state.prev = true; return "keyword"; } }; }); CodeMirror.defineMIME("text/apl", "apl"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/asciiarmor/asciiarmor.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function errorIfNotEmpty(stream) { var nonWS = stream.match(/^\s*\S/); stream.skipToEnd(); return nonWS ? "error" : null; } CodeMirror.defineMode("asciiarmor", function() { return { token: function(stream, state) { var m; if (state.state == "top") { if (stream.sol() && (m = stream.match(/^-----BEGIN (.*)?-----\s*$/))) { state.state = "headers"; state.type = m[1]; return "tag"; } return errorIfNotEmpty(stream); } else if (state.state == "headers") { if (stream.sol() && stream.match(/^\w+:/)) { state.state = "header"; return "atom"; } else { var result = errorIfNotEmpty(stream); if (result) state.state = "body"; return result; } } else if (state.state == "header") { stream.skipToEnd(); state.state = "headers"; return "string"; } else if (state.state == "body") { if (stream.sol() && (m = stream.match(/^-----END (.*)?-----\s*$/))) { if (m[1] != state.type) return "error"; state.state = "end"; return "tag"; } else { if (stream.eatWhile(/[A-Za-z0-9+\/=]/)) { return null; } else { stream.next(); return "error"; } } } else if (state.state == "end") { return errorIfNotEmpty(stream); } }, blankLine: function(state) { if (state.state == "headers") state.state = "body"; }, startState: function() { return {state: "top", type: null}; } }; }); CodeMirror.defineMIME("application/pgp", "asciiarmor"); CodeMirror.defineMIME("application/pgp-encrypted", "asciiarmor"); CodeMirror.defineMIME("application/pgp-keys", "asciiarmor"); CodeMirror.defineMIME("application/pgp-signature", "asciiarmor"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/asn.1/asn.1.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("asn.1", function(config, parserConfig) { var indentUnit = config.indentUnit, keywords = parserConfig.keywords || {}, cmipVerbs = parserConfig.cmipVerbs || {}, compareTypes = parserConfig.compareTypes || {}, status = parserConfig.status || {}, tags = parserConfig.tags || {}, storage = parserConfig.storage || {}, modifier = parserConfig.modifier || {}, accessTypes = parserConfig.accessTypes|| {}, multiLineStrings = parserConfig.multiLineStrings, indentStatements = parserConfig.indentStatements !== false; var isOperatorChar = /[\|\^]/; var curPunc; function tokenBase(stream, state) { var ch = stream.next(); if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (/[\[\]\(\){}:=,;]/.test(ch)) { curPunc = ch; return "punctuation"; } if (ch == "-"){ if (stream.eat("-")) { stream.skipToEnd(); return "comment"; } } if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } stream.eatWhile(/[\w\-]/); var cur = stream.current(); if (keywords.propertyIsEnumerable(cur)) return "keyword"; if (cmipVerbs.propertyIsEnumerable(cur)) return "variable cmipVerbs"; if (compareTypes.propertyIsEnumerable(cur)) return "atom compareTypes"; if (status.propertyIsEnumerable(cur)) return "comment status"; if (tags.propertyIsEnumerable(cur)) return "variable-3 tags"; if (storage.propertyIsEnumerable(cur)) return "builtin storage"; if (modifier.propertyIsEnumerable(cur)) return "string-2 modifier"; if (accessTypes.propertyIsEnumerable(cur)) return "atom accessTypes"; return "variable"; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped){ var afterNext = stream.peek(); //look if the character if the quote is like the B in '10100010'B if (afterNext){ afterNext = afterNext.toLowerCase(); if(afterNext == "b" || afterNext == "h" || afterNext == "o") stream.next(); } end = true; break; } escaped = !escaped && next == "\\"; } if (end || !(escaped || multiLineStrings)) state.tokenize = null; return "string"; }; } function Context(indented, column, type, align, prev) { this.indented = indented; this.column = column; this.type = type; this.align = align; this.prev = prev; } function pushContext(state, col, type) { var indent = state.indented; if (state.context && state.context.type == "statement") indent = state.context.indented; return state.context = new Context(indent, col, type, null, state.context); } function popContext(state) { var t = state.context.type; if (t == ")" || t == "]" || t == "}") state.indented = state.context.indented; return state.context = state.context.prev; } //Interface return { startState: function(basecolumn) { return { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), indented: 0, startOfLine: true }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; } if (stream.eatSpace()) return null; curPunc = null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment") return style; if (ctx.align == null) ctx.align = true; if ((curPunc == ";" || curPunc == ":" || curPunc == ",") && ctx.type == "statement"){ popContext(state); } else if (curPunc == "{") pushContext(state, stream.column(), "}"); else if (curPunc == "[") pushContext(state, stream.column(), "]"); else if (curPunc == "(") pushContext(state, stream.column(), ")"); else if (curPunc == "}") { while (ctx.type == "statement") ctx = popContext(state); if (ctx.type == "}") ctx = popContext(state); while (ctx.type == "statement") ctx = popContext(state); } else if (curPunc == ctx.type) popContext(state); else if (indentStatements && (((ctx.type == "}" || ctx.type == "top") && curPunc != ';') || (ctx.type == "statement" && curPunc == "newstatement"))) pushContext(state, stream.column(), "statement"); state.startOfLine = false; return style; }, electricChars: "{}", lineComment: "--", fold: "brace" }; }); function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } CodeMirror.defineMIME("text/x-ttcn-asn", { name: "asn.1", keywords: words("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION" + " REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED" + " WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN" + " IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS" + " MINACCESS MAXACCESS REVISION STATUS DESCRIPTION" + " SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName" + " ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY" + " IMPLIED EXPORTS"), cmipVerbs: words("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"), compareTypes: words("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY" + " MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY" + " OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL" + " SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL" + " TEXTUAL-CONVENTION"), status: words("current deprecated mandatory obsolete"), tags: words("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS" + " UNIVERSAL"), storage: words("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING" + " UTCTime InterfaceIndex IANAifType CMIP-Attribute" + " REAL PACKAGE PACKAGES IpAddress PhysAddress" + " NetworkAddress BITS BMPString TimeStamp TimeTicks" + " TruthValue RowStatus DisplayString GeneralString" + " GraphicString IA5String NumericString" + " PrintableString SnmpAdminString TeletexString" + " UTF8String VideotexString VisibleString StringStore" + " ISO646String T61String UniversalString Unsigned32" + " Integer32 Gauge Gauge32 Counter Counter32 Counter64"), modifier: words("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS" + " GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS" + " DEFINED"), accessTypes: words("not-accessible accessible-for-notify read-only" + " read-create read-write"), multiLineStrings: true }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/asterisk/asterisk.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /* * ===================================================================================== * * Filename: mode/asterisk/asterisk.js * * Description: CodeMirror mode for Asterisk dialplan * * Created: 05/17/2012 09:20:25 PM * Revision: 08/05/2019 AstLinux Project: Support block-comments * * Author: Stas Kobzar (stas@modulis.ca), * Company: Modulis.ca Inc. * * ===================================================================================== */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("asterisk", function() { var atoms = ["exten", "same", "include","ignorepat","switch"], dpcmd = ["#include","#exec"], apps = [ "addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi", "alarmreceiver","amd","answer","authenticate","background","backgrounddetect", "bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent", "changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge", "congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge", "dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility", "datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa", "dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy", "externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif", "goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete", "ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus", "jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme", "meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete", "minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode", "mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish", "originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce", "parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones", "privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten", "readfile","receivefax","receivefax","receivefax","record","removequeuemember", "resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun", "saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax", "sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags", "setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel", "slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground", "speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound", "speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor", "stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec", "trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate", "vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring", "waitforsilence","waitmusiconhold","waituntil","while","zapateller" ]; function basicToken(stream,state){ var cur = ''; var ch = stream.next(); // comment if (state.blockComment) { if (ch == "-" && stream.match("-;", true)) { state.blockComment = false; } else if (stream.skipTo("--;")) { stream.next(); stream.next(); stream.next(); state.blockComment = false; } else { stream.skipToEnd(); } return "comment"; } if(ch == ";") { if (stream.match("--", true)) { if (!stream.match("-", false)) { // Except ;--- is not a block comment state.blockComment = true; return "comment"; } } stream.skipToEnd(); return "comment"; } // context if(ch == '[') { stream.skipTo(']'); stream.eat(']'); return "header"; } // string if(ch == '"') { stream.skipTo('"'); return "string"; } if(ch == "'") { stream.skipTo("'"); return "string-2"; } // dialplan commands if(ch == '#') { stream.eatWhile(/\w/); cur = stream.current(); if(dpcmd.indexOf(cur) !== -1) { stream.skipToEnd(); return "strong"; } } // application args if(ch == '$'){ var ch1 = stream.peek(); if(ch1 == '{'){ stream.skipTo('}'); stream.eat('}'); return "variable-3"; } } // extension stream.eatWhile(/\w/); cur = stream.current(); if(atoms.indexOf(cur) !== -1) { state.extenStart = true; switch(cur) { case 'same': state.extenSame = true; break; case 'include': case 'switch': case 'ignorepat': state.extenInclude = true;break; default:break; } return "atom"; } } return { startState: function() { return { blockComment: false, extenStart: false, extenSame: false, extenInclude: false, extenExten: false, extenPriority: false, extenApplication: false }; }, token: function(stream, state) { var cur = ''; if(stream.eatSpace()) return null; // extension started if(state.extenStart){ stream.eatWhile(/[^\s]/); cur = stream.current(); if(/^=>?$/.test(cur)){ state.extenExten = true; state.extenStart = false; return "strong"; } else { state.extenStart = false; stream.skipToEnd(); return "error"; } } else if(state.extenExten) { // set exten and priority state.extenExten = false; state.extenPriority = true; stream.eatWhile(/[^,]/); if(state.extenInclude) { stream.skipToEnd(); state.extenPriority = false; state.extenInclude = false; } if(state.extenSame) { state.extenPriority = false; state.extenSame = false; state.extenApplication = true; } return "tag"; } else if(state.extenPriority) { state.extenPriority = false; state.extenApplication = true; stream.next(); // get comma if(state.extenSame) return null; stream.eatWhile(/[^,]/); return "number"; } else if(state.extenApplication) { stream.eatWhile(/,/); cur = stream.current(); if(cur === ',') return null; stream.eatWhile(/\w/); cur = stream.current().toLowerCase(); state.extenApplication = false; if(apps.indexOf(cur) !== -1){ return "def strong"; } } else{ return basicToken(stream,state); } return null; }, blockCommentStart: ";--", blockCommentEnd: "--;", lineComment: ";" }; }); CodeMirror.defineMIME("text/x-asterisk", "asterisk"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/brainfuck/brainfuck.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Brainfuck mode created by Michael Kaminsky https://github.com/mkaminsky11 (function(mod) { if (typeof exports == "object" && typeof module == "object") mod(require("../../lib/codemirror")) else if (typeof define == "function" && define.amd) define(["../../lib/codemirror"], mod) else mod(CodeMirror) })(function(CodeMirror) { "use strict" var reserve = "><+-.,[]".split(""); /* comments can be either: placed behind lines +++ this is a comment where reserved characters cannot be used or in a loop [ this is ok to use [ ] and stuff ] or preceded by # */ CodeMirror.defineMode("brainfuck", function() { return { startState: function() { return { commentLine: false, left: 0, right: 0, commentLoop: false } }, token: function(stream, state) { if (stream.eatSpace()) return null if(stream.sol()){ state.commentLine = false; } var ch = stream.next().toString(); if(reserve.indexOf(ch) !== -1){ if(state.commentLine === true){ if(stream.eol()){ state.commentLine = false; } return "comment"; } if(ch === "]" || ch === "["){ if(ch === "["){ state.left++; } else{ state.right++; } return "bracket"; } else if(ch === "+" || ch === "-"){ return "keyword"; } else if(ch === "<" || ch === ">"){ return "atom"; } else if(ch === "." || ch === ","){ return "def"; } } else{ state.commentLine = true; if(stream.eol()){ state.commentLine = false; } return "comment"; } if(stream.eol()){ state.commentLine = false; } } }; }); CodeMirror.defineMIME("text/x-brainfuck","brainfuck") }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/clike/clike.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function Context(indented, column, type, info, align, prev) { this.indented = indented; this.column = column; this.type = type; this.info = info; this.align = align; this.prev = prev; } function pushContext(state, col, type, info) { var indent = state.indented; if (state.context && state.context.type == "statement" && type != "statement") indent = state.context.indented; return state.context = new Context(indent, col, type, info, null, state.context); } function popContext(state) { var t = state.context.type; if (t == ")" || t == "]" || t == "}") state.indented = state.context.indented; return state.context = state.context.prev; } function typeBefore(stream, state, pos) { if (state.prevToken == "variable" || state.prevToken == "type") return true; if (/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(stream.string.slice(0, pos))) return true; if (state.typeAtEndOfLine && stream.column() == stream.indentation()) return true; } function isTopScope(context) { for (;;) { if (!context || context.type == "top") return true; if (context.type == "}" && context.prev.info != "namespace") return false; context = context.prev; } } CodeMirror.defineMode("clike", function(config, parserConfig) { var indentUnit = config.indentUnit, statementIndentUnit = parserConfig.statementIndentUnit || indentUnit, dontAlignCalls = parserConfig.dontAlignCalls, keywords = parserConfig.keywords || {}, types = parserConfig.types || {}, builtin = parserConfig.builtin || {}, blockKeywords = parserConfig.blockKeywords || {}, defKeywords = parserConfig.defKeywords || {}, atoms = parserConfig.atoms || {}, hooks = parserConfig.hooks || {}, multiLineStrings = parserConfig.multiLineStrings, indentStatements = parserConfig.indentStatements !== false, indentSwitch = parserConfig.indentSwitch !== false, namespaceSeparator = parserConfig.namespaceSeparator, isPunctuationChar = parserConfig.isPunctuationChar || /[\[\]{}\(\),;\:\.]/, numberStart = parserConfig.numberStart || /[\d\.]/, number = parserConfig.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i, isOperatorChar = parserConfig.isOperatorChar || /[+\-*&%=<>!?|\/]/, isIdentifierChar = parserConfig.isIdentifierChar || /[\w\$_\xa1-\uffff]/, // An optional function that takes a {string} token and returns true if it // should be treated as a builtin. isReservedIdentifier = parserConfig.isReservedIdentifier || false; var curPunc, isDefKeyword; function tokenBase(stream, state) { var ch = stream.next(); if (hooks[ch]) { var result = hooks[ch](stream, state); if (result !== false) return result; } if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (numberStart.test(ch)) { stream.backUp(1) if (stream.match(number)) return "number" stream.next() } if (isPunctuationChar.test(ch)) { curPunc = ch; return null; } if (ch == "/") { if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } } if (isOperatorChar.test(ch)) { while (!stream.match(/^\/[\/*]/, false) && stream.eat(isOperatorChar)) {} return "operator"; } stream.eatWhile(isIdentifierChar); if (namespaceSeparator) while (stream.match(namespaceSeparator)) stream.eatWhile(isIdentifierChar); var cur = stream.current(); if (contains(keywords, cur)) { if (contains(blockKeywords, cur)) curPunc = "newstatement"; if (contains(defKeywords, cur)) isDefKeyword = true; return "keyword"; } if (contains(types, cur)) return "type"; if (contains(builtin, cur) || (isReservedIdentifier && isReservedIdentifier(cur))) { if (contains(blockKeywords, cur)) curPunc = "newstatement"; return "builtin"; } if (contains(atoms, cur)) return "atom"; return "variable"; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) {end = true; break;} escaped = !escaped && next == "\\"; } if (end || !(escaped || multiLineStrings)) state.tokenize = null; return "string"; }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = null; break; } maybeEnd = (ch == "*"); } return "comment"; } function maybeEOL(stream, state) { if (parserConfig.typeFirstDefinitions && stream.eol() && isTopScope(state.context)) state.typeAtEndOfLine = typeBefore(stream, state, stream.pos) } // Interface return { startState: function(basecolumn) { return { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", null, false), indented: 0, startOfLine: true, prevToken: null }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; } if (stream.eatSpace()) { maybeEOL(stream, state); return null; } curPunc = isDefKeyword = null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment" || style == "meta") return style; if (ctx.align == null) ctx.align = true; if (curPunc == ";" || curPunc == ":" || (curPunc == "," && stream.match(/^\s*(?:\/\/.*)?$/, false))) while (state.context.type == "statement") popContext(state); else if (curPunc == "{") pushContext(state, stream.column(), "}"); else if (curPunc == "[") pushContext(state, stream.column(), "]"); else if (curPunc == "(") pushContext(state, stream.column(), ")"); else if (curPunc == "}") { while (ctx.type == "statement") ctx = popContext(state); if (ctx.type == "}") ctx = popContext(state); while (ctx.type == "statement") ctx = popContext(state); } else if (curPunc == ctx.type) popContext(state); else if (indentStatements && (((ctx.type == "}" || ctx.type == "top") && curPunc != ";") || (ctx.type == "statement" && curPunc == "newstatement"))) { pushContext(state, stream.column(), "statement", stream.current()); } if (style == "variable" && ((state.prevToken == "def" || (parserConfig.typeFirstDefinitions && typeBefore(stream, state, stream.start) && isTopScope(state.context) && stream.match(/^\s*\(/, false))))) style = "def"; if (hooks.token) { var result = hooks.token(stream, state, style); if (result !== undefined) style = result; } if (style == "def" && parserConfig.styleDefs === false) style = "variable"; state.startOfLine = false; state.prevToken = isDefKeyword ? "def" : style || curPunc; maybeEOL(stream, state); return style; }, indent: function(state, textAfter) { if (state.tokenize != tokenBase && state.tokenize != null || state.typeAtEndOfLine) return CodeMirror.Pass; var ctx = state.context, firstChar = textAfter && textAfter.charAt(0); var closing = firstChar == ctx.type; if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev; if (parserConfig.dontIndentStatements) while (ctx.type == "statement" && parserConfig.dontIndentStatements.test(ctx.info)) ctx = ctx.prev if (hooks.indent) { var hook = hooks.indent(state, ctx, textAfter, indentUnit); if (typeof hook == "number") return hook } var switchBlock = ctx.prev && ctx.prev.info == "switch"; if (parserConfig.allmanIndentation && /[{(]/.test(firstChar)) { while (ctx.type != "top" && ctx.type != "}") ctx = ctx.prev return ctx.indented } if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit); if (ctx.align && (!dontAlignCalls || ctx.type != ")")) return ctx.column + (closing ? 0 : 1); if (ctx.type == ")" && !closing) return ctx.indented + statementIndentUnit; return ctx.indented + (closing ? 0 : indentUnit) + (!closing && switchBlock && !/^(?:case|default)\b/.test(textAfter) ? indentUnit : 0); }, electricInput: indentSwitch ? /^\s*(?:case .*?:|default:|\{\}?|\})$/ : /^\s*[{}]$/, blockCommentStart: "/*", blockCommentEnd: "*/", blockCommentContinue: " * ", lineComment: "//", fold: "brace" }; }); function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } function contains(words, word) { if (typeof words === "function") { return words(word); } else { return words.propertyIsEnumerable(word); } } var cKeywords = "auto if break case register continue return default do sizeof " + "static else struct switch extern typedef union for goto while enum const " + "volatile inline restrict asm fortran"; // Keywords from https://en.cppreference.com/w/cpp/keyword includes C++20. var cppKeywords = "alignas alignof and and_eq audit axiom bitand bitor catch " + "class compl concept constexpr const_cast decltype delete dynamic_cast " + "explicit export final friend import module mutable namespace new noexcept " + "not not_eq operator or or_eq override private protected public " + "reinterpret_cast requires static_assert static_cast template this " + "thread_local throw try typeid typename using virtual xor xor_eq"; var objCKeywords = "bycopy byref in inout oneway out self super atomic nonatomic retain copy " + "readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd " + "@interface @implementation @end @protocol @encode @property @synthesize @dynamic @class " + "@public @package @private @protected @required @optional @try @catch @finally @import " + "@selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available"; var objCBuiltins = "FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION " + " NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER " + "NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION " + "NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT" // Do not use this. Use the cTypes function below. This is global just to avoid // excessive calls when cTypes is being called multiple times during a parse. var basicCTypes = words("int long char short double float unsigned signed " + "void bool"); // Do not use this. Use the objCTypes function below. This is global just to avoid // excessive calls when objCTypes is being called multiple times during a parse. var basicObjCTypes = words("SEL instancetype id Class Protocol BOOL"); // Returns true if identifier is a "C" type. // C type is defined as those that are reserved by the compiler (basicTypes), // and those that end in _t (Reserved by POSIX for types) // http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html function cTypes(identifier) { return contains(basicCTypes, identifier) || /.+_t$/.test(identifier); } // Returns true if identifier is a "Objective C" type. function objCTypes(identifier) { return cTypes(identifier) || contains(basicObjCTypes, identifier); } var cBlockKeywords = "case do else for if switch while struct enum union"; var cDefKeywords = "struct enum union"; function cppHook(stream, state) { if (!state.startOfLine) return false for (var ch, next = null; ch = stream.peek();) { if (ch == "\\" && stream.match(/^.$/)) { next = cppHook break } else if (ch == "/" && stream.match(/^\/[\/\*]/, false)) { break } stream.next() } state.tokenize = next return "meta" } function pointerHook(_stream, state) { if (state.prevToken == "type") return "type"; return false; } // For C and C++ (and ObjC): identifiers starting with __ // or _ followed by a capital letter are reserved for the compiler. function cIsReservedIdentifier(token) { if (!token || token.length < 2) return false; if (token[0] != '_') return false; return (token[1] == '_') || (token[1] !== token[1].toLowerCase()); } function cpp14Literal(stream) { stream.eatWhile(/[\w\.']/); return "number"; } function cpp11StringHook(stream, state) { stream.backUp(1); // Raw strings. if (stream.match(/^(?:R|u8R|uR|UR|LR)/)) { var match = stream.match(/^"([^\s\\()]{0,16})\(/); if (!match) { return false; } state.cpp11RawStringDelim = match[1]; state.tokenize = tokenRawString; return tokenRawString(stream, state); } // Unicode strings/chars. if (stream.match(/^(?:u8|u|U|L)/)) { if (stream.match(/^["']/, /* eat */ false)) { return "string"; } return false; } // Ignore this hook. stream.next(); return false; } function cppLooksLikeConstructor(word) { var lastTwo = /(\w+)::~?(\w+)$/.exec(word); return lastTwo && lastTwo[1] == lastTwo[2]; } // C#-style strings where "" escapes a quote. function tokenAtString(stream, state) { var next; while ((next = stream.next()) != null) { if (next == '"' && !stream.eat('"')) { state.tokenize = null; break; } } return "string"; } // C++11 raw string literal is "( anything )", where // can be a string up to 16 characters long. function tokenRawString(stream, state) { // Escape characters that have special regex meanings. var delim = state.cpp11RawStringDelim.replace(/[^\w\s]/g, '\\$&'); var match = stream.match(new RegExp(".*?\\)" + delim + '"')); if (match) state.tokenize = null; else stream.skipToEnd(); return "string"; } function def(mimes, mode) { if (typeof mimes == "string") mimes = [mimes]; var words = []; function add(obj) { if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop)) words.push(prop); } add(mode.keywords); add(mode.types); add(mode.builtin); add(mode.atoms); if (words.length) { mode.helperType = mimes[0]; CodeMirror.registerHelper("hintWords", mimes[0], words); } for (var i = 0; i < mimes.length; ++i) CodeMirror.defineMIME(mimes[i], mode); } def(["text/x-csrc", "text/x-c", "text/x-chdr"], { name: "clike", keywords: words(cKeywords), types: cTypes, blockKeywords: words(cBlockKeywords), defKeywords: words(cDefKeywords), typeFirstDefinitions: true, atoms: words("NULL true false"), isReservedIdentifier: cIsReservedIdentifier, hooks: { "#": cppHook, "*": pointerHook, }, modeProps: {fold: ["brace", "include"]} }); def(["text/x-c++src", "text/x-c++hdr"], { name: "clike", keywords: words(cKeywords + " " + cppKeywords), types: cTypes, blockKeywords: words(cBlockKeywords + " class try catch"), defKeywords: words(cDefKeywords + " class namespace"), typeFirstDefinitions: true, atoms: words("true false NULL nullptr"), dontIndentStatements: /^template$/, isIdentifierChar: /[\w\$_~\xa1-\uffff]/, isReservedIdentifier: cIsReservedIdentifier, hooks: { "#": cppHook, "*": pointerHook, "u": cpp11StringHook, "U": cpp11StringHook, "L": cpp11StringHook, "R": cpp11StringHook, "0": cpp14Literal, "1": cpp14Literal, "2": cpp14Literal, "3": cpp14Literal, "4": cpp14Literal, "5": cpp14Literal, "6": cpp14Literal, "7": cpp14Literal, "8": cpp14Literal, "9": cpp14Literal, token: function(stream, state, style) { if (style == "variable" && stream.peek() == "(" && (state.prevToken == ";" || state.prevToken == null || state.prevToken == "}") && cppLooksLikeConstructor(stream.current())) return "def"; } }, namespaceSeparator: "::", modeProps: {fold: ["brace", "include"]} }); def("text/x-java", { name: "clike", keywords: words("abstract assert break case catch class const continue default " + "do else enum extends final finally for goto if implements import " + "instanceof interface native new package private protected public " + "return static strictfp super switch synchronized this throw throws transient " + "try volatile while @interface"), types: words("var byte short int long float double boolean char void Boolean Byte Character Double Float " + "Integer Long Number Object Short String StringBuffer StringBuilder Void"), blockKeywords: words("catch class do else finally for if switch try while"), defKeywords: words("class interface enum @interface"), typeFirstDefinitions: true, atoms: words("true false null"), number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i, hooks: { "@": function(stream) { // Don't match the @interface keyword. if (stream.match('interface', false)) return false; stream.eatWhile(/[\w\$_]/); return "meta"; }, '"': function(stream, state) { if (!stream.match(/""$/)) return false; state.tokenize = tokenTripleString; return state.tokenize(stream, state); } }, modeProps: {fold: ["brace", "import"]} }); def("text/x-csharp", { name: "clike", keywords: words("abstract as async await base break case catch checked class const continue" + " default delegate do else enum event explicit extern finally fixed for" + " foreach goto if implicit in interface internal is lock namespace new" + " operator out override params private protected public readonly ref return sealed" + " sizeof stackalloc static struct switch this throw try typeof unchecked" + " unsafe using virtual void volatile while add alias ascending descending dynamic from get" + " global group into join let orderby partial remove select set value var yield"), types: words("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func" + " Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32" + " UInt64 bool byte char decimal double short int long object" + " sbyte float string ushort uint ulong"), blockKeywords: words("catch class do else finally for foreach if struct switch try while"), defKeywords: words("class interface namespace struct var"), typeFirstDefinitions: true, atoms: words("true false null"), hooks: { "@": function(stream, state) { if (stream.eat('"')) { state.tokenize = tokenAtString; return tokenAtString(stream, state); } stream.eatWhile(/[\w\$_]/); return "meta"; } } }); function tokenTripleString(stream, state) { var escaped = false; while (!stream.eol()) { if (!escaped && stream.match('"""')) { state.tokenize = null; break; } escaped = stream.next() == "\\" && !escaped; } return "string"; } function tokenNestedComment(depth) { return function (stream, state) { var ch while (ch = stream.next()) { if (ch == "*" && stream.eat("/")) { if (depth == 1) { state.tokenize = null break } else { state.tokenize = tokenNestedComment(depth - 1) return state.tokenize(stream, state) } } else if (ch == "/" && stream.eat("*")) { state.tokenize = tokenNestedComment(depth + 1) return state.tokenize(stream, state) } } return "comment" } } def("text/x-scala", { name: "clike", keywords: words( /* scala */ "abstract case catch class def do else extends final finally for forSome if " + "implicit import lazy match new null object override package private protected return " + "sealed super this throw trait try type val var while with yield _ " + /* package scala */ "assert assume require print println printf readLine readBoolean readByte readShort " + "readChar readInt readLong readFloat readDouble" ), types: words( "AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either " + "Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable " + "Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering " + "Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder " + "StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector " + /* package java.lang */ "Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " + "Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " + "Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " + "StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void" ), multiLineStrings: true, blockKeywords: words("catch class enum do else finally for forSome if match switch try while"), defKeywords: words("class enum def object package trait type val var"), atoms: words("true false null"), indentStatements: false, indentSwitch: false, isOperatorChar: /[+\-*&%=<>!?|\/#:@]/, hooks: { "@": function(stream) { stream.eatWhile(/[\w\$_]/); return "meta"; }, '"': function(stream, state) { if (!stream.match('""')) return false; state.tokenize = tokenTripleString; return state.tokenize(stream, state); }, "'": function(stream) { stream.eatWhile(/[\w\$_\xa1-\uffff]/); return "atom"; }, "=": function(stream, state) { var cx = state.context if (cx.type == "}" && cx.align && stream.eat(">")) { state.context = new Context(cx.indented, cx.column, cx.type, cx.info, null, cx.prev) return "operator" } else { return false } }, "/": function(stream, state) { if (!stream.eat("*")) return false state.tokenize = tokenNestedComment(1) return state.tokenize(stream, state) } }, modeProps: {closeBrackets: {pairs: '()[]{}""', triples: '"'}} }); function tokenKotlinString(tripleString){ return function (stream, state) { var escaped = false, next, end = false; while (!stream.eol()) { if (!tripleString && !escaped && stream.match('"') ) {end = true; break;} if (tripleString && stream.match('"""')) {end = true; break;} next = stream.next(); if(!escaped && next == "$" && stream.match('{')) stream.skipTo("}"); escaped = !escaped && next == "\\" && !tripleString; } if (end || !tripleString) state.tokenize = null; return "string"; } } def("text/x-kotlin", { name: "clike", keywords: words( /*keywords*/ "package as typealias class interface this super val operator " + "var fun for is in This throw return annotation " + "break continue object if else while do try when !in !is as? " + /*soft keywords*/ "file import where by get set abstract enum open inner override private public internal " + "protected catch finally out final vararg reified dynamic companion constructor init " + "sealed field property receiver param sparam lateinit data inline noinline tailrec " + "external annotation crossinline const operator infix suspend actual expect setparam value" ), types: words( /* package java.lang */ "Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " + "Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " + "Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " + "StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray " + "ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy " + "LazyThreadSafetyMode LongArray Nothing ShortArray Unit" ), intendSwitch: false, indentStatements: false, multiLineStrings: true, number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i, blockKeywords: words("catch class do else finally for if where try while enum"), defKeywords: words("class val var object interface fun"), atoms: words("true false null this"), hooks: { "@": function(stream) { stream.eatWhile(/[\w\$_]/); return "meta"; }, '*': function(_stream, state) { return state.prevToken == '.' ? 'variable' : 'operator'; }, '"': function(stream, state) { state.tokenize = tokenKotlinString(stream.match('""')); return state.tokenize(stream, state); }, "/": function(stream, state) { if (!stream.eat("*")) return false; state.tokenize = tokenNestedComment(1); return state.tokenize(stream, state) }, indent: function(state, ctx, textAfter, indentUnit) { var firstChar = textAfter && textAfter.charAt(0); if ((state.prevToken == "}" || state.prevToken == ")") && textAfter == "") return state.indented; if ((state.prevToken == "operator" && textAfter != "}" && state.context.type != "}") || state.prevToken == "variable" && firstChar == "." || (state.prevToken == "}" || state.prevToken == ")") && firstChar == ".") return indentUnit * 2 + ctx.indented; if (ctx.align && ctx.type == "}") return ctx.indented + (state.context.type == (textAfter || "").charAt(0) ? 0 : indentUnit); } }, modeProps: {closeBrackets: {triples: '"'}} }); def(["x-shader/x-vertex", "x-shader/x-fragment"], { name: "clike", keywords: words("sampler1D sampler2D sampler3D samplerCube " + "sampler1DShadow sampler2DShadow " + "const attribute uniform varying " + "break continue discard return " + "for while do if else struct " + "in out inout"), types: words("float int bool void " + "vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 " + "mat2 mat3 mat4"), blockKeywords: words("for while do if else struct"), builtin: words("radians degrees sin cos tan asin acos atan " + "pow exp log exp2 sqrt inversesqrt " + "abs sign floor ceil fract mod min max clamp mix step smoothstep " + "length distance dot cross normalize ftransform faceforward " + "reflect refract matrixCompMult " + "lessThan lessThanEqual greaterThan greaterThanEqual " + "equal notEqual any all not " + "texture1D texture1DProj texture1DLod texture1DProjLod " + "texture2D texture2DProj texture2DLod texture2DProjLod " + "texture3D texture3DProj texture3DLod texture3DProjLod " + "textureCube textureCubeLod " + "shadow1D shadow2D shadow1DProj shadow2DProj " + "shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod " + "dFdx dFdy fwidth " + "noise1 noise2 noise3 noise4"), atoms: words("true false " + "gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex " + "gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 " + "gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 " + "gl_FogCoord gl_PointCoord " + "gl_Position gl_PointSize gl_ClipVertex " + "gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor " + "gl_TexCoord gl_FogFragCoord " + "gl_FragCoord gl_FrontFacing " + "gl_FragData gl_FragDepth " + "gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix " + "gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse " + "gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse " + "gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose " + "gl_ProjectionMatrixInverseTranspose " + "gl_ModelViewProjectionMatrixInverseTranspose " + "gl_TextureMatrixInverseTranspose " + "gl_NormalScale gl_DepthRange gl_ClipPlane " + "gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel " + "gl_FrontLightModelProduct gl_BackLightModelProduct " + "gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ " + "gl_FogParameters " + "gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords " + "gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats " + "gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits " + "gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits " + "gl_MaxDrawBuffers"), indentSwitch: false, hooks: {"#": cppHook}, modeProps: {fold: ["brace", "include"]} }); def("text/x-nesc", { name: "clike", keywords: words(cKeywords + " as atomic async call command component components configuration event generic " + "implementation includes interface module new norace nx_struct nx_union post provides " + "signal task uses abstract extends"), types: cTypes, blockKeywords: words(cBlockKeywords), atoms: words("null true false"), hooks: {"#": cppHook}, modeProps: {fold: ["brace", "include"]} }); def("text/x-objectivec", { name: "clike", keywords: words(cKeywords + " " + objCKeywords), types: objCTypes, builtin: words(objCBuiltins), blockKeywords: words(cBlockKeywords + " @synthesize @try @catch @finally @autoreleasepool @synchronized"), defKeywords: words(cDefKeywords + " @interface @implementation @protocol @class"), dontIndentStatements: /^@.*$/, typeFirstDefinitions: true, atoms: words("YES NO NULL Nil nil true false nullptr"), isReservedIdentifier: cIsReservedIdentifier, hooks: { "#": cppHook, "*": pointerHook, }, modeProps: {fold: ["brace", "include"]} }); def("text/x-objectivec++", { name: "clike", keywords: words(cKeywords + " " + objCKeywords + " " + cppKeywords), types: objCTypes, builtin: words(objCBuiltins), blockKeywords: words(cBlockKeywords + " @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"), defKeywords: words(cDefKeywords + " @interface @implementation @protocol @class class namespace"), dontIndentStatements: /^@.*$|^template$/, typeFirstDefinitions: true, atoms: words("YES NO NULL Nil nil true false nullptr"), isReservedIdentifier: cIsReservedIdentifier, hooks: { "#": cppHook, "*": pointerHook, "u": cpp11StringHook, "U": cpp11StringHook, "L": cpp11StringHook, "R": cpp11StringHook, "0": cpp14Literal, "1": cpp14Literal, "2": cpp14Literal, "3": cpp14Literal, "4": cpp14Literal, "5": cpp14Literal, "6": cpp14Literal, "7": cpp14Literal, "8": cpp14Literal, "9": cpp14Literal, token: function(stream, state, style) { if (style == "variable" && stream.peek() == "(" && (state.prevToken == ";" || state.prevToken == null || state.prevToken == "}") && cppLooksLikeConstructor(stream.current())) return "def"; } }, namespaceSeparator: "::", modeProps: {fold: ["brace", "include"]} }); def("text/x-squirrel", { name: "clike", keywords: words("base break clone continue const default delete enum extends function in class" + " foreach local resume return this throw typeof yield constructor instanceof static"), types: cTypes, blockKeywords: words("case catch class else for foreach if switch try while"), defKeywords: words("function local class"), typeFirstDefinitions: true, atoms: words("true false null"), hooks: {"#": cppHook}, modeProps: {fold: ["brace", "include"]} }); // Ceylon Strings need to deal with interpolation var stringTokenizer = null; function tokenCeylonString(type) { return function(stream, state) { var escaped = false, next, end = false; while (!stream.eol()) { if (!escaped && stream.match('"') && (type == "single" || stream.match('""'))) { end = true; break; } if (!escaped && stream.match('``')) { stringTokenizer = tokenCeylonString(type); end = true; break; } next = stream.next(); escaped = type == "single" && !escaped && next == "\\"; } if (end) state.tokenize = null; return "string"; } } def("text/x-ceylon", { name: "clike", keywords: words("abstracts alias assembly assert assign break case catch class continue dynamic else" + " exists extends finally for function given if import in interface is let module new" + " nonempty object of out outer package return satisfies super switch then this throw" + " try value void while"), types: function(word) { // In Ceylon all identifiers that start with an uppercase are types var first = word.charAt(0); return (first === first.toUpperCase() && first !== first.toLowerCase()); }, blockKeywords: words("case catch class dynamic else finally for function if interface module new object switch try while"), defKeywords: words("class dynamic function interface module object package value"), builtin: words("abstract actual aliased annotation by default deprecated doc final formal late license" + " native optional sealed see serializable shared suppressWarnings tagged throws variable"), isPunctuationChar: /[\[\]{}\(\),;\:\.`]/, isOperatorChar: /[+\-*&%=<>!?|^~:\/]/, numberStart: /[\d#$]/, number: /^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i, multiLineStrings: true, typeFirstDefinitions: true, atoms: words("true false null larger smaller equal empty finished"), indentSwitch: false, styleDefs: false, hooks: { "@": function(stream) { stream.eatWhile(/[\w\$_]/); return "meta"; }, '"': function(stream, state) { state.tokenize = tokenCeylonString(stream.match('""') ? "triple" : "single"); return state.tokenize(stream, state); }, '`': function(stream, state) { if (!stringTokenizer || !stream.match('`')) return false; state.tokenize = stringTokenizer; stringTokenizer = null; return state.tokenize(stream, state); }, "'": function(stream) { stream.eatWhile(/[\w\$_\xa1-\uffff]/); return "atom"; }, token: function(_stream, state, style) { if ((style == "variable" || style == "type") && state.prevToken == ".") { return "variable-2"; } } }, modeProps: { fold: ["brace", "import"], closeBrackets: {triples: '"'} } }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/clojure/clojure.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports === "object" && typeof module === "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define === "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("clojure", function (options) { var atoms = ["false", "nil", "true"]; var specialForms = [".", "catch", "def", "do", "if", "monitor-enter", "monitor-exit", "new", "quote", "recur", "set!", "throw", "try", "var"]; var coreSymbols = ["*", "*'", "*1", "*2", "*3", "*agent*", "*allow-unresolved-vars*", "*assert*", "*clojure-version*", "*command-line-args*", "*compile-files*", "*compile-path*", "*compiler-options*", "*data-readers*", "*default-data-reader-fn*", "*e", "*err*", "*file*", "*flush-on-newline*", "*fn-loader*", "*in*", "*math-context*", "*ns*", "*out*", "*print-dup*", "*print-length*", "*print-level*", "*print-meta*", "*print-namespace-maps*", "*print-readably*", "*read-eval*", "*reader-resolver*", "*source-path*", "*suppress-read*", "*unchecked-math*", "*use-context-classloader*", "*verbose-defrecords*", "*warn-on-reflection*", "+", "+'", "-", "-'", "->", "->>", "->ArrayChunk", "->Eduction", "->Vec", "->VecNode", "->VecSeq", "-cache-protocol-fn", "-reset-methods", "..", "/", "<", "<=", "=", "==", ">", ">=", "EMPTY-NODE", "Inst", "StackTraceElement->vec", "Throwable->map", "accessor", "aclone", "add-classpath", "add-watch", "agent", "agent-error", "agent-errors", "aget", "alength", "alias", "all-ns", "alter", "alter-meta!", "alter-var-root", "amap", "ancestors", "and", "any?", "apply", "areduce", "array-map", "as->", "aset", "aset-boolean", "aset-byte", "aset-char", "aset-double", "aset-float", "aset-int", "aset-long", "aset-short", "assert", "assoc", "assoc!", "assoc-in", "associative?", "atom", "await", "await-for", "await1", "bases", "bean", "bigdec", "bigint", "biginteger", "binding", "bit-and", "bit-and-not", "bit-clear", "bit-flip", "bit-not", "bit-or", "bit-set", "bit-shift-left", "bit-shift-right", "bit-test", "bit-xor", "boolean", "boolean-array", "boolean?", "booleans", "bound-fn", "bound-fn*", "bound?", "bounded-count", "butlast", "byte", "byte-array", "bytes", "bytes?", "case", "cast", "cat", "char", "char-array", "char-escape-string", "char-name-string", "char?", "chars", "chunk", "chunk-append", "chunk-buffer", "chunk-cons", "chunk-first", "chunk-next", "chunk-rest", "chunked-seq?", "class", "class?", "clear-agent-errors", "clojure-version", "coll?", "comment", "commute", "comp", "comparator", "compare", "compare-and-set!", "compile", "complement", "completing", "concat", "cond", "cond->", "cond->>", "condp", "conj", "conj!", "cons", "constantly", "construct-proxy", "contains?", "count", "counted?", "create-ns", "create-struct", "cycle", "dec", "dec'", "decimal?", "declare", "dedupe", "default-data-readers", "definline", "definterface", "defmacro", "defmethod", "defmulti", "defn", "defn-", "defonce", "defprotocol", "defrecord", "defstruct", "deftype", "delay", "delay?", "deliver", "denominator", "deref", "derive", "descendants", "destructure", "disj", "disj!", "dissoc", "dissoc!", "distinct", "distinct?", "doall", "dorun", "doseq", "dosync", "dotimes", "doto", "double", "double-array", "double?", "doubles", "drop", "drop-last", "drop-while", "eduction", "empty", "empty?", "ensure", "ensure-reduced", "enumeration-seq", "error-handler", "error-mode", "eval", "even?", "every-pred", "every?", "ex-data", "ex-info", "extend", "extend-protocol", "extend-type", "extenders", "extends?", "false?", "ffirst", "file-seq", "filter", "filterv", "find", "find-keyword", "find-ns", "find-protocol-impl", "find-protocol-method", "find-var", "first", "flatten", "float", "float-array", "float?", "floats", "flush", "fn", "fn?", "fnext", "fnil", "for", "force", "format", "frequencies", "future", "future-call", "future-cancel", "future-cancelled?", "future-done?", "future?", "gen-class", "gen-interface", "gensym", "get", "get-in", "get-method", "get-proxy-class", "get-thread-bindings", "get-validator", "group-by", "halt-when", "hash", "hash-combine", "hash-map", "hash-ordered-coll", "hash-set", "hash-unordered-coll", "ident?", "identical?", "identity", "if-let", "if-not", "if-some", "ifn?", "import", "in-ns", "inc", "inc'", "indexed?", "init-proxy", "inst-ms", "inst-ms*", "inst?", "instance?", "int", "int-array", "int?", "integer?", "interleave", "intern", "interpose", "into", "into-array", "ints", "io!", "isa?", "iterate", "iterator-seq", "juxt", "keep", "keep-indexed", "key", "keys", "keyword", "keyword?", "last", "lazy-cat", "lazy-seq", "let", "letfn", "line-seq", "list", "list*", "list?", "load", "load-file", "load-reader", "load-string", "loaded-libs", "locking", "long", "long-array", "longs", "loop", "macroexpand", "macroexpand-1", "make-array", "make-hierarchy", "map", "map-entry?", "map-indexed", "map?", "mapcat", "mapv", "max", "max-key", "memfn", "memoize", "merge", "merge-with", "meta", "method-sig", "methods", "min", "min-key", "mix-collection-hash", "mod", "munge", "name", "namespace", "namespace-munge", "nat-int?", "neg-int?", "neg?", "newline", "next", "nfirst", "nil?", "nnext", "not", "not-any?", "not-empty", "not-every?", "not=", "ns", "ns-aliases", "ns-imports", "ns-interns", "ns-map", "ns-name", "ns-publics", "ns-refers", "ns-resolve", "ns-unalias", "ns-unmap", "nth", "nthnext", "nthrest", "num", "number?", "numerator", "object-array", "odd?", "or", "parents", "partial", "partition", "partition-all", "partition-by", "pcalls", "peek", "persistent!", "pmap", "pop", "pop!", "pop-thread-bindings", "pos-int?", "pos?", "pr", "pr-str", "prefer-method", "prefers", "primitives-classnames", "print", "print-ctor", "print-dup", "print-method", "print-simple", "print-str", "printf", "println", "println-str", "prn", "prn-str", "promise", "proxy", "proxy-call-with-super", "proxy-mappings", "proxy-name", "proxy-super", "push-thread-bindings", "pvalues", "qualified-ident?", "qualified-keyword?", "qualified-symbol?", "quot", "rand", "rand-int", "rand-nth", "random-sample", "range", "ratio?", "rational?", "rationalize", "re-find", "re-groups", "re-matcher", "re-matches", "re-pattern", "re-seq", "read", "read-line", "read-string", "reader-conditional", "reader-conditional?", "realized?", "record?", "reduce", "reduce-kv", "reduced", "reduced?", "reductions", "ref", "ref-history-count", "ref-max-history", "ref-min-history", "ref-set", "refer", "refer-clojure", "reify", "release-pending-sends", "rem", "remove", "remove-all-methods", "remove-method", "remove-ns", "remove-watch", "repeat", "repeatedly", "replace", "replicate", "require", "reset!", "reset-meta!", "reset-vals!", "resolve", "rest", "restart-agent", "resultset-seq", "reverse", "reversible?", "rseq", "rsubseq", "run!", "satisfies?", "second", "select-keys", "send", "send-off", "send-via", "seq", "seq?", "seqable?", "seque", "sequence", "sequential?", "set", "set-agent-send-executor!", "set-agent-send-off-executor!", "set-error-handler!", "set-error-mode!", "set-validator!", "set?", "short", "short-array", "shorts", "shuffle", "shutdown-agents", "simple-ident?", "simple-keyword?", "simple-symbol?", "slurp", "some", "some->", "some->>", "some-fn", "some?", "sort", "sort-by", "sorted-map", "sorted-map-by", "sorted-set", "sorted-set-by", "sorted?", "special-symbol?", "spit", "split-at", "split-with", "str", "string?", "struct", "struct-map", "subs", "subseq", "subvec", "supers", "swap!", "swap-vals!", "symbol", "symbol?", "sync", "tagged-literal", "tagged-literal?", "take", "take-last", "take-nth", "take-while", "test", "the-ns", "thread-bound?", "time", "to-array", "to-array-2d", "trampoline", "transduce", "transient", "tree-seq", "true?", "type", "unchecked-add", "unchecked-add-int", "unchecked-byte", "unchecked-char", "unchecked-dec", "unchecked-dec-int", "unchecked-divide-int", "unchecked-double", "unchecked-float", "unchecked-inc", "unchecked-inc-int", "unchecked-int", "unchecked-long", "unchecked-multiply", "unchecked-multiply-int", "unchecked-negate", "unchecked-negate-int", "unchecked-remainder-int", "unchecked-short", "unchecked-subtract", "unchecked-subtract-int", "underive", "unquote", "unquote-splicing", "unreduced", "unsigned-bit-shift-right", "update", "update-in", "update-proxy", "uri?", "use", "uuid?", "val", "vals", "var-get", "var-set", "var?", "vary-meta", "vec", "vector", "vector-of", "vector?", "volatile!", "volatile?", "vreset!", "vswap!", "when", "when-first", "when-let", "when-not", "when-some", "while", "with-bindings", "with-bindings*", "with-in-str", "with-loading-context", "with-local-vars", "with-meta", "with-open", "with-out-str", "with-precision", "with-redefs", "with-redefs-fn", "xml-seq", "zero?", "zipmap"]; var haveBodyParameter = [ "->", "->>", "as->", "binding", "bound-fn", "case", "catch", "comment", "cond", "cond->", "cond->>", "condp", "def", "definterface", "defmethod", "defn", "defmacro", "defprotocol", "defrecord", "defstruct", "deftype", "do", "doseq", "dotimes", "doto", "extend", "extend-protocol", "extend-type", "fn", "for", "future", "if", "if-let", "if-not", "if-some", "let", "letfn", "locking", "loop", "ns", "proxy", "reify", "struct-map", "some->", "some->>", "try", "when", "when-first", "when-let", "when-not", "when-some", "while", "with-bindings", "with-bindings*", "with-in-str", "with-loading-context", "with-local-vars", "with-meta", "with-open", "with-out-str", "with-precision", "with-redefs", "with-redefs-fn"]; CodeMirror.registerHelper("hintWords", "clojure", [].concat(atoms, specialForms, coreSymbols)); var atom = createLookupMap(atoms); var specialForm = createLookupMap(specialForms); var coreSymbol = createLookupMap(coreSymbols); var hasBodyParameter = createLookupMap(haveBodyParameter); var delimiter = /^(?:[\\\[\]\s"(),;@^`{}~]|$)/; var numberLiteral = /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/; var characterLiteral = /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/; // simple-namespace := /^[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*/ // simple-symbol := /^(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)/ // qualified-symbol := ((<.>)*)? var qualifiedSymbol = /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/; function base(stream, state) { if (stream.eatSpace() || stream.eat(",")) return ["space", null]; if (stream.match(numberLiteral)) return [null, "number"]; if (stream.match(characterLiteral)) return [null, "string-2"]; if (stream.eat(/^"/)) return (state.tokenize = inString)(stream, state); if (stream.eat(/^[(\[{]/)) return ["open", "bracket"]; if (stream.eat(/^[)\]}]/)) return ["close", "bracket"]; if (stream.eat(/^;/)) {stream.skipToEnd(); return ["space", "comment"];} if (stream.eat(/^[#'@^`~]/)) return [null, "meta"]; var matches = stream.match(qualifiedSymbol); var symbol = matches && matches[0]; if (!symbol) { // advance stream by at least one character so we don't get stuck. stream.next(); stream.eatWhile(function (c) {return !is(c, delimiter);}); return [null, "error"]; } if (symbol === "comment" && state.lastToken === "(") return (state.tokenize = inComment)(stream, state); if (is(symbol, atom) || symbol.charAt(0) === ":") return ["symbol", "atom"]; if (is(symbol, specialForm) || is(symbol, coreSymbol)) return ["symbol", "keyword"]; if (state.lastToken === "(") return ["symbol", "builtin"]; // other operator return ["symbol", "variable"]; } function inString(stream, state) { var escaped = false, next; while (next = stream.next()) { if (next === "\"" && !escaped) {state.tokenize = base; break;} escaped = !escaped && next === "\\"; } return [null, "string"]; } function inComment(stream, state) { var parenthesisCount = 1; var next; while (next = stream.next()) { if (next === ")") parenthesisCount--; if (next === "(") parenthesisCount++; if (parenthesisCount === 0) { stream.backUp(1); state.tokenize = base; break; } } return ["space", "comment"]; } function createLookupMap(words) { var obj = {}; for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } function is(value, test) { if (test instanceof RegExp) return test.test(value); if (test instanceof Object) return test.propertyIsEnumerable(value); } return { startState: function () { return { ctx: {prev: null, start: 0, indentTo: 0}, lastToken: null, tokenize: base }; }, token: function (stream, state) { if (stream.sol() && (typeof state.ctx.indentTo !== "number")) state.ctx.indentTo = state.ctx.start + 1; var typeStylePair = state.tokenize(stream, state); var type = typeStylePair[0]; var style = typeStylePair[1]; var current = stream.current(); if (type !== "space") { if (state.lastToken === "(" && state.ctx.indentTo === null) { if (type === "symbol" && is(current, hasBodyParameter)) state.ctx.indentTo = state.ctx.start + options.indentUnit; else state.ctx.indentTo = "next"; } else if (state.ctx.indentTo === "next") { state.ctx.indentTo = stream.column(); } state.lastToken = current; } if (type === "open") state.ctx = {prev: state.ctx, start: stream.column(), indentTo: null}; else if (type === "close") state.ctx = state.ctx.prev || state.ctx; return style; }, indent: function (state) { var i = state.ctx.indentTo; return (typeof i === "number") ? i : state.ctx.start + 1; }, closeBrackets: {pairs: "()[]{}\"\""}, lineComment: ";;" }; }); CodeMirror.defineMIME("text/x-clojure", "clojure"); CodeMirror.defineMIME("text/x-clojurescript", "clojure"); CodeMirror.defineMIME("application/edn", "clojure"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/cmake/cmake.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) define(["../../lib/codemirror"], mod); else mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("cmake", function () { var variable_regex = /({)?[a-zA-Z0-9_]+(})?/; function tokenString(stream, state) { var current, prev, found_var = false; while (!stream.eol() && (current = stream.next()) != state.pending) { if (current === '$' && prev != '\\' && state.pending == '"') { found_var = true; break; } prev = current; } if (found_var) { stream.backUp(1); } if (current == state.pending) { state.continueString = false; } else { state.continueString = true; } return "string"; } function tokenize(stream, state) { var ch = stream.next(); // Have we found a variable? if (ch === '$') { if (stream.match(variable_regex)) { return 'variable-2'; } return 'variable'; } // Should we still be looking for the end of a string? if (state.continueString) { // If so, go through the loop again stream.backUp(1); return tokenString(stream, state); } // Do we just have a function on our hands? // In 'cmake_minimum_required (VERSION 2.8.8)', 'cmake_minimum_required' is matched if (stream.match(/(\s+)?\w+\(/) || stream.match(/(\s+)?\w+\ \(/)) { stream.backUp(1); return 'def'; } if (ch == "#") { stream.skipToEnd(); return "comment"; } // Have we found a string? if (ch == "'" || ch == '"') { // Store the type (single or double) state.pending = ch; // Perform the looping function to find the end return tokenString(stream, state); } if (ch == '(' || ch == ')') { return 'bracket'; } if (ch.match(/[0-9]/)) { return 'number'; } stream.eatWhile(/[\w-]/); return null; } return { startState: function () { var state = {}; state.inDefinition = false; state.inInclude = false; state.continueString = false; state.pending = false; return state; }, token: function (stream, state) { if (stream.eatSpace()) return null; return tokenize(stream, state); } }; }); CodeMirror.defineMIME("text/x-cmake", "cmake"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/cobol/cobol.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /** * Author: Gautam Mehta * Branched from CodeMirror's Scheme mode */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("cobol", function () { var BUILTIN = "builtin", COMMENT = "comment", STRING = "string", ATOM = "atom", NUMBER = "number", KEYWORD = "keyword", MODTAG = "header", COBOLLINENUM = "def", PERIOD = "link"; function makeKeywords(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var atoms = makeKeywords("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "); var keywords = makeKeywords( "ACCEPT ACCESS ACQUIRE ADD ADDRESS " + "ADVANCING AFTER ALIAS ALL ALPHABET " + "ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED " + "ALSO ALTER ALTERNATE AND ANY " + "ARE AREA AREAS ARITHMETIC ASCENDING " + "ASSIGN AT ATTRIBUTE AUTHOR AUTO " + "AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS " + "B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP " + "BEFORE BELL BINARY BIT BITS " + "BLANK BLINK BLOCK BOOLEAN BOTTOM " + "BY CALL CANCEL CD CF " + "CH CHARACTER CHARACTERS CLASS CLOCK-UNITS " + "CLOSE COBOL CODE CODE-SET COL " + "COLLATING COLUMN COMMA COMMIT COMMITMENT " + "COMMON COMMUNICATION COMP COMP-0 COMP-1 " + "COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 " + "COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 " + "COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 " + "COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE " + "CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS " + "CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS " + "CONVERTING COPY CORR CORRESPONDING COUNT " + "CRT CRT-UNDER CURRENCY CURRENT CURSOR " + "DATA DATE DATE-COMPILED DATE-WRITTEN DAY " + "DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION " + "DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS " + "DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE " + "DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING " + "DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED " + "DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION " + "DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 " + "DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 " + "DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION " + "DOWN DROP DUPLICATE DUPLICATES DYNAMIC " + "EBCDIC EGI EJECT ELSE EMI " + "EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. " + "END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY " + "END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY " + "END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN " + "END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT " + "END-UNSTRING END-WRITE END-XML ENTER ENTRY " + "ENVIRONMENT EOP EQUAL EQUALS ERASE " + "ERROR ESI EVALUATE EVERY EXCEEDS " + "EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL " + "EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL " + "FILE-STREAM FILES FILLER FINAL FIND " + "FINISH FIRST FOOTING FOR FOREGROUND-COLOR " + "FOREGROUND-COLOUR FORMAT FREE FROM FULL " + "FUNCTION GENERATE GET GIVING GLOBAL " + "GO GOBACK GREATER GROUP HEADING " + "HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL " + "ID IDENTIFICATION IF IN INDEX " + "INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 " + "INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED " + "INDIC INDICATE INDICATOR INDICATORS INITIAL " + "INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT " + "INSTALLATION INTO INVALID INVOKE IS " + "JUST JUSTIFIED KANJI KEEP KEY " + "LABEL LAST LD LEADING LEFT " + "LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY " + "LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER " + "LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE " + "LOCALE LOCALLY LOCK " + "MEMBER MEMORY MERGE MESSAGE METACLASS " + "MODE MODIFIED MODIFY MODULES MOVE " + "MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE " + "NEXT NO NO-ECHO NONE NOT " + "NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER " + "NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS " + "OF OFF OMITTED ON ONLY " + "OPEN OPTIONAL OR ORDER ORGANIZATION " + "OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL " + "PADDING PAGE PAGE-COUNTER PARSE PERFORM " + "PF PH PIC PICTURE PLUS " + "POINTER POSITION POSITIVE PREFIX PRESENT " + "PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES " + "PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID " + "PROMPT PROTECTED PURGE QUEUE QUOTE " + "QUOTES RANDOM RD READ READY " + "REALM RECEIVE RECONNECT RECORD RECORD-NAME " + "RECORDS RECURSIVE REDEFINES REEL REFERENCE " + "REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE " + "REMAINDER REMOVAL RENAMES REPEATED REPLACE " + "REPLACING REPORT REPORTING REPORTS REPOSITORY " + "REQUIRED RERUN RESERVE RESET RETAINING " + "RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO " + "REVERSED REWIND REWRITE RF RH " + "RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED " + "RUN SAME SCREEN SD SEARCH " + "SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT " + "SELECT SEND SENTENCE SEPARATE SEQUENCE " + "SEQUENTIAL SET SHARED SIGN SIZE " + "SKIP1 SKIP2 SKIP3 SORT SORT-MERGE " + "SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL " + "SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 " + "START STARTING STATUS STOP STORE " + "STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA " + "SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS " + "SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT " + "TABLE TALLYING TAPE TENANT TERMINAL " + "TERMINATE TEST TEXT THAN THEN " + "THROUGH THRU TIME TIMES TITLE " + "TO TOP TRAILING TRAILING-SIGN TRANSACTION " + "TYPE TYPEDEF UNDERLINE UNEQUAL UNIT " + "UNSTRING UNTIL UP UPDATE UPON " + "USAGE USAGE-MODE USE USING VALID " + "VALIDATE VALUE VALUES VARYING VLR " + "WAIT WHEN WHEN-COMPILED WITH WITHIN " + "WORDS WORKING-STORAGE WRITE XML XML-CODE " + "XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL " ); var builtins = makeKeywords("- * ** / + < <= = > >= "); var tests = { digit: /\d/, digit_or_colon: /[\d:]/, hex: /[0-9a-f]/i, sign: /[+-]/, exponent: /e/i, keyword_char: /[^\s\(\[\;\)\]]/, symbol: /[\w*+\-]/ }; function isNumber(ch, stream){ // hex if ( ch === '0' && stream.eat(/x/i) ) { stream.eatWhile(tests.hex); return true; } // leading sign if ( ( ch == '+' || ch == '-' ) && ( tests.digit.test(stream.peek()) ) ) { stream.eat(tests.sign); ch = stream.next(); } if ( tests.digit.test(ch) ) { stream.eat(ch); stream.eatWhile(tests.digit); if ( '.' == stream.peek()) { stream.eat('.'); stream.eatWhile(tests.digit); } if ( stream.eat(tests.exponent) ) { stream.eat(tests.sign); stream.eatWhile(tests.digit); } return true; } return false; } return { startState: function () { return { indentStack: null, indentation: 0, mode: false }; }, token: function (stream, state) { if (state.indentStack == null && stream.sol()) { // update indentation, but only if indentStack is empty state.indentation = 6 ; //stream.indentation(); } // skip spaces if (stream.eatSpace()) { return null; } var returnType = null; switch(state.mode){ case "string": // multi-line string parsing mode var next = false; while ((next = stream.next()) != null) { if ((next == "\"" || next == "\'") && !stream.match(/['"]/, false)) { state.mode = false; break; } } returnType = STRING; // continue on in string mode break; default: // default parsing mode var ch = stream.next(); var col = stream.column(); if (col >= 0 && col <= 5) { returnType = COBOLLINENUM; } else if (col >= 72 && col <= 79) { stream.skipToEnd(); returnType = MODTAG; } else if (ch == "*" && col == 6) { // comment stream.skipToEnd(); // rest of the line is a comment returnType = COMMENT; } else if (ch == "\"" || ch == "\'") { state.mode = "string"; returnType = STRING; } else if (ch == "'" && !( tests.digit_or_colon.test(stream.peek()) )) { returnType = ATOM; } else if (ch == ".") { returnType = PERIOD; } else if (isNumber(ch,stream)){ returnType = NUMBER; } else { if (stream.current().match(tests.symbol)) { while (col < 71) { if (stream.eat(tests.symbol) === undefined) { break; } else { col++; } } } if (keywords && keywords.propertyIsEnumerable(stream.current().toUpperCase())) { returnType = KEYWORD; } else if (builtins && builtins.propertyIsEnumerable(stream.current().toUpperCase())) { returnType = BUILTIN; } else if (atoms && atoms.propertyIsEnumerable(stream.current().toUpperCase())) { returnType = ATOM; } else returnType = null; } } return returnType; }, indent: function (state) { if (state.indentStack == null) return state.indentation; return state.indentStack.indent; } }; }); CodeMirror.defineMIME("text/x-cobol", "cobol"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/coffeescript/coffeescript.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /** * Link to the project's GitHub page: * https://github.com/pickhardt/coffeescript-codemirror-mode */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("coffeescript", function(conf, parserConf) { var ERRORCLASS = "error"; function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b"); } var operators = /^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/; var delimiters = /^(?:[()\[\]{},:`=;]|\.\.?\.?)/; var identifiers = /^[_A-Za-z$][_A-Za-z$0-9]*/; var atProp = /^@[_A-Za-z$][_A-Za-z$0-9]*/; var wordOperators = wordRegexp(["and", "or", "not", "is", "isnt", "in", "instanceof", "typeof"]); var indentKeywords = ["for", "while", "loop", "if", "unless", "else", "switch", "try", "catch", "finally", "class"]; var commonKeywords = ["break", "by", "continue", "debugger", "delete", "do", "in", "of", "new", "return", "then", "this", "@", "throw", "when", "until", "extends"]; var keywords = wordRegexp(indentKeywords.concat(commonKeywords)); indentKeywords = wordRegexp(indentKeywords); var stringPrefixes = /^('{3}|\"{3}|['\"])/; var regexPrefixes = /^(\/{3}|\/)/; var commonConstants = ["Infinity", "NaN", "undefined", "null", "true", "false", "on", "off", "yes", "no"]; var constants = wordRegexp(commonConstants); // Tokenizers function tokenBase(stream, state) { // Handle scope changes if (stream.sol()) { if (state.scope.align === null) state.scope.align = false; var scopeOffset = state.scope.offset; if (stream.eatSpace()) { var lineOffset = stream.indentation(); if (lineOffset > scopeOffset && state.scope.type == "coffee") { return "indent"; } else if (lineOffset < scopeOffset) { return "dedent"; } return null; } else { if (scopeOffset > 0) { dedent(stream, state); } } } if (stream.eatSpace()) { return null; } var ch = stream.peek(); // Handle docco title comment (single line) if (stream.match("####")) { stream.skipToEnd(); return "comment"; } // Handle multi line comments if (stream.match("###")) { state.tokenize = longComment; return state.tokenize(stream, state); } // Single line comment if (ch === "#") { stream.skipToEnd(); return "comment"; } // Handle number literals if (stream.match(/^-?[0-9\.]/, false)) { var floatLiteral = false; // Floats if (stream.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)) { floatLiteral = true; } if (stream.match(/^-?\d+\.\d*/)) { floatLiteral = true; } if (stream.match(/^-?\.\d+/)) { floatLiteral = true; } if (floatLiteral) { // prevent from getting extra . on 1.. if (stream.peek() == "."){ stream.backUp(1); } return "number"; } // Integers var intLiteral = false; // Hex if (stream.match(/^-?0x[0-9a-f]+/i)) { intLiteral = true; } // Decimal if (stream.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)) { intLiteral = true; } // Zero by itself with no other piece of number. if (stream.match(/^-?0(?![\dx])/i)) { intLiteral = true; } if (intLiteral) { return "number"; } } // Handle strings if (stream.match(stringPrefixes)) { state.tokenize = tokenFactory(stream.current(), false, "string"); return state.tokenize(stream, state); } // Handle regex literals if (stream.match(regexPrefixes)) { if (stream.current() != "/" || stream.match(/^.*\//, false)) { // prevent highlight of division state.tokenize = tokenFactory(stream.current(), true, "string-2"); return state.tokenize(stream, state); } else { stream.backUp(1); } } // Handle operators and delimiters if (stream.match(operators) || stream.match(wordOperators)) { return "operator"; } if (stream.match(delimiters)) { return "punctuation"; } if (stream.match(constants)) { return "atom"; } if (stream.match(atProp) || state.prop && stream.match(identifiers)) { return "property"; } if (stream.match(keywords)) { return "keyword"; } if (stream.match(identifiers)) { return "variable"; } // Handle non-detected items stream.next(); return ERRORCLASS; } function tokenFactory(delimiter, singleline, outclass) { return function(stream, state) { while (!stream.eol()) { stream.eatWhile(/[^'"\/\\]/); if (stream.eat("\\")) { stream.next(); if (singleline && stream.eol()) { return outclass; } } else if (stream.match(delimiter)) { state.tokenize = tokenBase; return outclass; } else { stream.eat(/['"\/]/); } } if (singleline) { if (parserConf.singleLineStringErrors) { outclass = ERRORCLASS; } else { state.tokenize = tokenBase; } } return outclass; }; } function longComment(stream, state) { while (!stream.eol()) { stream.eatWhile(/[^#]/); if (stream.match("###")) { state.tokenize = tokenBase; break; } stream.eatWhile("#"); } return "comment"; } function indent(stream, state, type) { type = type || "coffee"; var offset = 0, align = false, alignOffset = null; for (var scope = state.scope; scope; scope = scope.prev) { if (scope.type === "coffee" || scope.type == "}") { offset = scope.offset + conf.indentUnit; break; } } if (type !== "coffee") { align = null; alignOffset = stream.column() + stream.current().length; } else if (state.scope.align) { state.scope.align = false; } state.scope = { offset: offset, type: type, prev: state.scope, align: align, alignOffset: alignOffset }; } function dedent(stream, state) { if (!state.scope.prev) return; if (state.scope.type === "coffee") { var _indent = stream.indentation(); var matched = false; for (var scope = state.scope; scope; scope = scope.prev) { if (_indent === scope.offset) { matched = true; break; } } if (!matched) { return true; } while (state.scope.prev && state.scope.offset !== _indent) { state.scope = state.scope.prev; } return false; } else { state.scope = state.scope.prev; return false; } } function tokenLexer(stream, state) { var style = state.tokenize(stream, state); var current = stream.current(); // Handle scope changes. if (current === "return") { state.dedent = true; } if (((current === "->" || current === "=>") && stream.eol()) || style === "indent") { indent(stream, state); } var delimiter_index = "[({".indexOf(current); if (delimiter_index !== -1) { indent(stream, state, "])}".slice(delimiter_index, delimiter_index+1)); } if (indentKeywords.exec(current)){ indent(stream, state); } if (current == "then"){ dedent(stream, state); } if (style === "dedent") { if (dedent(stream, state)) { return ERRORCLASS; } } delimiter_index = "])}".indexOf(current); if (delimiter_index !== -1) { while (state.scope.type == "coffee" && state.scope.prev) state.scope = state.scope.prev; if (state.scope.type == current) state.scope = state.scope.prev; } if (state.dedent && stream.eol()) { if (state.scope.type == "coffee" && state.scope.prev) state.scope = state.scope.prev; state.dedent = false; } return style; } var external = { startState: function(basecolumn) { return { tokenize: tokenBase, scope: {offset:basecolumn || 0, type:"coffee", prev: null, align: false}, prop: false, dedent: 0 }; }, token: function(stream, state) { var fillAlign = state.scope.align === null && state.scope; if (fillAlign && stream.sol()) fillAlign.align = false; var style = tokenLexer(stream, state); if (style && style != "comment") { if (fillAlign) fillAlign.align = true; state.prop = style == "punctuation" && stream.current() == "." } return style; }, indent: function(state, text) { if (state.tokenize != tokenBase) return 0; var scope = state.scope; var closer = text && "])}".indexOf(text.charAt(0)) > -1; if (closer) while (scope.type == "coffee" && scope.prev) scope = scope.prev; var closes = closer && scope.type === text.charAt(0); if (scope.align) return scope.alignOffset - (closes ? 1 : 0); else return (closes ? scope.prev : scope).offset; }, lineComment: "#", fold: "indent" }; return external; }); // IANA registered media type // https://www.iana.org/assignments/media-types/ CodeMirror.defineMIME("application/vnd.coffeescript", "coffeescript"); CodeMirror.defineMIME("text/x-coffeescript", "coffeescript"); CodeMirror.defineMIME("text/coffeescript", "coffeescript"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/commonlisp/commonlisp.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("commonlisp", function (config) { var specialForm = /^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/; var assumeBody = /^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/; var numLiteral = /^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/; var symbol = /[^\s'`,@()\[\]";]/; var type; function readSym(stream) { var ch; while (ch = stream.next()) { if (ch == "\\") stream.next(); else if (!symbol.test(ch)) { stream.backUp(1); break; } } return stream.current(); } function base(stream, state) { if (stream.eatSpace()) {type = "ws"; return null;} if (stream.match(numLiteral)) return "number"; var ch = stream.next(); if (ch == "\\") ch = stream.next(); if (ch == '"') return (state.tokenize = inString)(stream, state); else if (ch == "(") { type = "open"; return "bracket"; } else if (ch == ")" || ch == "]") { type = "close"; return "bracket"; } else if (ch == ";") { stream.skipToEnd(); type = "ws"; return "comment"; } else if (/['`,@]/.test(ch)) return null; else if (ch == "|") { if (stream.skipTo("|")) { stream.next(); return "symbol"; } else { stream.skipToEnd(); return "error"; } } else if (ch == "#") { var ch = stream.next(); if (ch == "(") { type = "open"; return "bracket"; } else if (/[+\-=\.']/.test(ch)) return null; else if (/\d/.test(ch) && stream.match(/^\d*#/)) return null; else if (ch == "|") return (state.tokenize = inComment)(stream, state); else if (ch == ":") { readSym(stream); return "meta"; } else if (ch == "\\") { stream.next(); readSym(stream); return "string-2" } else return "error"; } else { var name = readSym(stream); if (name == ".") return null; type = "symbol"; if (name == "nil" || name == "t" || name.charAt(0) == ":") return "atom"; if (state.lastType == "open" && (specialForm.test(name) || assumeBody.test(name))) return "keyword"; if (name.charAt(0) == "&") return "variable-2"; return "variable"; } } function inString(stream, state) { var escaped = false, next; while (next = stream.next()) { if (next == '"' && !escaped) { state.tokenize = base; break; } escaped = !escaped && next == "\\"; } return "string"; } function inComment(stream, state) { var next, last; while (next = stream.next()) { if (next == "#" && last == "|") { state.tokenize = base; break; } last = next; } type = "ws"; return "comment"; } return { startState: function () { return {ctx: {prev: null, start: 0, indentTo: 0}, lastType: null, tokenize: base}; }, token: function (stream, state) { if (stream.sol() && typeof state.ctx.indentTo != "number") state.ctx.indentTo = state.ctx.start + 1; type = null; var style = state.tokenize(stream, state); if (type != "ws") { if (state.ctx.indentTo == null) { if (type == "symbol" && assumeBody.test(stream.current())) state.ctx.indentTo = state.ctx.start + config.indentUnit; else state.ctx.indentTo = "next"; } else if (state.ctx.indentTo == "next") { state.ctx.indentTo = stream.column(); } state.lastType = type; } if (type == "open") state.ctx = {prev: state.ctx, start: stream.column(), indentTo: null}; else if (type == "close") state.ctx = state.ctx.prev || state.ctx; return style; }, indent: function (state, _textAfter) { var i = state.ctx.indentTo; return typeof i == "number" ? i : state.ctx.start + 1; }, closeBrackets: {pairs: "()[]{}\"\""}, lineComment: ";;", fold: "brace-paren", blockCommentStart: "#|", blockCommentEnd: "|#" }; }); CodeMirror.defineMIME("text/x-common-lisp", "commonlisp"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/crystal/crystal.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("crystal", function(config) { function wordRegExp(words, end) { return new RegExp((end ? "" : "^") + "(?:" + words.join("|") + ")" + (end ? "$" : "\\b")); } function chain(tokenize, stream, state) { state.tokenize.push(tokenize); return tokenize(stream, state); } var operators = /^(?:[-+/%|&^]|\*\*?|[<>]{2})/; var conditionalOperators = /^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/; var indexingOperators = /^(?:\[\][?=]?)/; var anotherOperators = /^(?:\.(?:\.{2})?|->|[?:])/; var idents = /^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/; var types = /^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/; var keywords = wordRegExp([ "abstract", "alias", "as", "asm", "begin", "break", "case", "class", "def", "do", "else", "elsif", "end", "ensure", "enum", "extend", "for", "fun", "if", "include", "instance_sizeof", "lib", "macro", "module", "next", "of", "out", "pointerof", "private", "protected", "rescue", "return", "require", "select", "sizeof", "struct", "super", "then", "type", "typeof", "uninitialized", "union", "unless", "until", "when", "while", "with", "yield", "__DIR__", "__END_LINE__", "__FILE__", "__LINE__" ]); var atomWords = wordRegExp(["true", "false", "nil", "self"]); var indentKeywordsArray = [ "def", "fun", "macro", "class", "module", "struct", "lib", "enum", "union", "do", "for" ]; var indentKeywords = wordRegExp(indentKeywordsArray); var indentExpressionKeywordsArray = ["if", "unless", "case", "while", "until", "begin", "then"]; var indentExpressionKeywords = wordRegExp(indentExpressionKeywordsArray); var dedentKeywordsArray = ["end", "else", "elsif", "rescue", "ensure"]; var dedentKeywords = wordRegExp(dedentKeywordsArray); var dedentPunctualsArray = ["\\)", "\\}", "\\]"]; var dedentPunctuals = new RegExp("^(?:" + dedentPunctualsArray.join("|") + ")$"); var nextTokenizer = { "def": tokenFollowIdent, "fun": tokenFollowIdent, "macro": tokenMacroDef, "class": tokenFollowType, "module": tokenFollowType, "struct": tokenFollowType, "lib": tokenFollowType, "enum": tokenFollowType, "union": tokenFollowType }; var matching = {"[": "]", "{": "}", "(": ")", "<": ">"}; function tokenBase(stream, state) { if (stream.eatSpace()) { return null; } // Macros if (state.lastToken != "\\" && stream.match("{%", false)) { return chain(tokenMacro("%", "%"), stream, state); } if (state.lastToken != "\\" && stream.match("{{", false)) { return chain(tokenMacro("{", "}"), stream, state); } // Comments if (stream.peek() == "#") { stream.skipToEnd(); return "comment"; } // Variables and keywords var matched; if (stream.match(idents)) { stream.eat(/[?!]/); matched = stream.current(); if (stream.eat(":")) { return "atom"; } else if (state.lastToken == ".") { return "property"; } else if (keywords.test(matched)) { if (indentKeywords.test(matched)) { if (!(matched == "fun" && state.blocks.indexOf("lib") >= 0) && !(matched == "def" && state.lastToken == "abstract")) { state.blocks.push(matched); state.currentIndent += 1; } } else if ((state.lastStyle == "operator" || !state.lastStyle) && indentExpressionKeywords.test(matched)) { state.blocks.push(matched); state.currentIndent += 1; } else if (matched == "end") { state.blocks.pop(); state.currentIndent -= 1; } if (nextTokenizer.hasOwnProperty(matched)) { state.tokenize.push(nextTokenizer[matched]); } return "keyword"; } else if (atomWords.test(matched)) { return "atom"; } return "variable"; } // Class variables and instance variables // or attributes if (stream.eat("@")) { if (stream.peek() == "[") { return chain(tokenNest("[", "]", "meta"), stream, state); } stream.eat("@"); stream.match(idents) || stream.match(types); return "variable-2"; } // Constants and types if (stream.match(types)) { return "tag"; } // Symbols or ':' operator if (stream.eat(":")) { if (stream.eat("\"")) { return chain(tokenQuote("\"", "atom", false), stream, state); } else if (stream.match(idents) || stream.match(types) || stream.match(operators) || stream.match(conditionalOperators) || stream.match(indexingOperators)) { return "atom"; } stream.eat(":"); return "operator"; } // Strings if (stream.eat("\"")) { return chain(tokenQuote("\"", "string", true), stream, state); } // Strings or regexps or macro variables or '%' operator if (stream.peek() == "%") { var style = "string"; var embed = true; var delim; if (stream.match("%r")) { // Regexps style = "string-2"; delim = stream.next(); } else if (stream.match("%w")) { embed = false; delim = stream.next(); } else if (stream.match("%q")) { embed = false; delim = stream.next(); } else { if(delim = stream.match(/^%([^\w\s=])/)) { delim = delim[1]; } else if (stream.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/)) { // Macro variables return "meta"; } else if (stream.eat('%')) { // '%' operator return "operator"; } } if (matching.hasOwnProperty(delim)) { delim = matching[delim]; } return chain(tokenQuote(delim, style, embed), stream, state); } // Here Docs if (matched = stream.match(/^<<-('?)([A-Z]\w*)\1/)) { return chain(tokenHereDoc(matched[2], !matched[1]), stream, state) } // Characters if (stream.eat("'")) { stream.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/); stream.eat("'"); return "atom"; } // Numbers if (stream.eat("0")) { if (stream.eat("x")) { stream.match(/^[0-9a-fA-F_]+/); } else if (stream.eat("o")) { stream.match(/^[0-7_]+/); } else if (stream.eat("b")) { stream.match(/^[01_]+/); } return "number"; } if (stream.eat(/^\d/)) { stream.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/); return "number"; } // Operators if (stream.match(operators)) { stream.eat("="); // Operators can follow assign symbol. return "operator"; } if (stream.match(conditionalOperators) || stream.match(anotherOperators)) { return "operator"; } // Parens and braces if (matched = stream.match(/[({[]/, false)) { matched = matched[0]; return chain(tokenNest(matched, matching[matched], null), stream, state); } // Escapes if (stream.eat("\\")) { stream.next(); return "meta"; } stream.next(); return null; } function tokenNest(begin, end, style, started) { return function (stream, state) { if (!started && stream.match(begin)) { state.tokenize[state.tokenize.length - 1] = tokenNest(begin, end, style, true); state.currentIndent += 1; return style; } var nextStyle = tokenBase(stream, state); if (stream.current() === end) { state.tokenize.pop(); state.currentIndent -= 1; nextStyle = style; } return nextStyle; }; } function tokenMacro(begin, end, started) { return function (stream, state) { if (!started && stream.match("{" + begin)) { state.currentIndent += 1; state.tokenize[state.tokenize.length - 1] = tokenMacro(begin, end, true); return "meta"; } if (stream.match(end + "}")) { state.currentIndent -= 1; state.tokenize.pop(); return "meta"; } return tokenBase(stream, state); }; } function tokenMacroDef(stream, state) { if (stream.eatSpace()) { return null; } var matched; if (matched = stream.match(idents)) { if (matched == "def") { return "keyword"; } stream.eat(/[?!]/); } state.tokenize.pop(); return "def"; } function tokenFollowIdent(stream, state) { if (stream.eatSpace()) { return null; } if (stream.match(idents)) { stream.eat(/[!?]/); } else { stream.match(operators) || stream.match(conditionalOperators) || stream.match(indexingOperators); } state.tokenize.pop(); return "def"; } function tokenFollowType(stream, state) { if (stream.eatSpace()) { return null; } stream.match(types); state.tokenize.pop(); return "def"; } function tokenQuote(end, style, embed) { return function (stream, state) { var escaped = false; while (stream.peek()) { if (!escaped) { if (stream.match("{%", false)) { state.tokenize.push(tokenMacro("%", "%")); return style; } if (stream.match("{{", false)) { state.tokenize.push(tokenMacro("{", "}")); return style; } if (embed && stream.match("#{", false)) { state.tokenize.push(tokenNest("#{", "}", "meta")); return style; } var ch = stream.next(); if (ch == end) { state.tokenize.pop(); return style; } escaped = embed && ch == "\\"; } else { stream.next(); escaped = false; } } return style; }; } function tokenHereDoc(phrase, embed) { return function (stream, state) { if (stream.sol()) { stream.eatSpace() if (stream.match(phrase)) { state.tokenize.pop(); return "string"; } } var escaped = false; while (stream.peek()) { if (!escaped) { if (stream.match("{%", false)) { state.tokenize.push(tokenMacro("%", "%")); return "string"; } if (stream.match("{{", false)) { state.tokenize.push(tokenMacro("{", "}")); return "string"; } if (embed && stream.match("#{", false)) { state.tokenize.push(tokenNest("#{", "}", "meta")); return "string"; } escaped = embed && stream.next() == "\\"; } else { stream.next(); escaped = false; } } return "string"; } } return { startState: function () { return { tokenize: [tokenBase], currentIndent: 0, lastToken: null, lastStyle: null, blocks: [] }; }, token: function (stream, state) { var style = state.tokenize[state.tokenize.length - 1](stream, state); var token = stream.current(); if (style && style != "comment") { state.lastToken = token; state.lastStyle = style; } return style; }, indent: function (state, textAfter) { textAfter = textAfter.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g, ""); if (dedentKeywords.test(textAfter) || dedentPunctuals.test(textAfter)) { return config.indentUnit * (state.currentIndent - 1); } return config.indentUnit * state.currentIndent; }, fold: "indent", electricInput: wordRegExp(dedentPunctualsArray.concat(dedentKeywordsArray), true), lineComment: '#' }; }); CodeMirror.defineMIME("text/x-crystal", "crystal"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/css/css.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("css", function(config, parserConfig) { var inline = parserConfig.inline if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css"); var indentUnit = config.indentUnit, tokenHooks = parserConfig.tokenHooks, documentTypes = parserConfig.documentTypes || {}, mediaTypes = parserConfig.mediaTypes || {}, mediaFeatures = parserConfig.mediaFeatures || {}, mediaValueKeywords = parserConfig.mediaValueKeywords || {}, propertyKeywords = parserConfig.propertyKeywords || {}, nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {}, fontProperties = parserConfig.fontProperties || {}, counterDescriptors = parserConfig.counterDescriptors || {}, colorKeywords = parserConfig.colorKeywords || {}, valueKeywords = parserConfig.valueKeywords || {}, allowNested = parserConfig.allowNested, lineComment = parserConfig.lineComment, supportsAtComponent = parserConfig.supportsAtComponent === true, highlightNonStandardPropertyKeywords = config.highlightNonStandardPropertyKeywords !== false; var type, override; function ret(style, tp) { type = tp; return style; } // Tokenizers function tokenBase(stream, state) { var ch = stream.next(); if (tokenHooks[ch]) { var result = tokenHooks[ch](stream, state); if (result !== false) return result; } if (ch == "@") { stream.eatWhile(/[\w\\\-]/); return ret("def", stream.current()); } else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) { return ret(null, "compare"); } else if (ch == "\"" || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } else if (ch == "#") { stream.eatWhile(/[\w\\\-]/); return ret("atom", "hash"); } else if (ch == "!") { stream.match(/^\s*\w*/); return ret("keyword", "important"); } else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) { stream.eatWhile(/[\w.%]/); return ret("number", "unit"); } else if (ch === "-") { if (/[\d.]/.test(stream.peek())) { stream.eatWhile(/[\w.%]/); return ret("number", "unit"); } else if (stream.match(/^-[\w\\\-]*/)) { stream.eatWhile(/[\w\\\-]/); if (stream.match(/^\s*:/, false)) return ret("variable-2", "variable-definition"); return ret("variable-2", "variable"); } else if (stream.match(/^\w+-/)) { return ret("meta", "meta"); } } else if (/[,+>*\/]/.test(ch)) { return ret(null, "select-op"); } else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) { return ret("qualifier", "qualifier"); } else if (/[:;{}\[\]\(\)]/.test(ch)) { return ret(null, ch); } else if (stream.match(/^[\w-.]+(?=\()/)) { if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) { state.tokenize = tokenParenthesized; } return ret("variable callee", "variable"); } else if (/[\w\\\-]/.test(ch)) { stream.eatWhile(/[\w\\\-]/); return ret("property", "word"); } else { return ret(null, null); } } function tokenString(quote) { return function(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == quote && !escaped) { if (quote == ")") stream.backUp(1); break; } escaped = !escaped && ch == "\\"; } if (ch == quote || !escaped && quote != ")") state.tokenize = null; return ret("string", "string"); }; } function tokenParenthesized(stream, state) { stream.next(); // Must be '(' if (!stream.match(/^\s*[\"\')]/, false)) state.tokenize = tokenString(")"); else state.tokenize = null; return ret(null, "("); } // Context management function Context(type, indent, prev) { this.type = type; this.indent = indent; this.prev = prev; } function pushContext(state, stream, type, indent) { state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context); return type; } function popContext(state) { if (state.context.prev) state.context = state.context.prev; return state.context.type; } function pass(type, stream, state) { return states[state.context.type](type, stream, state); } function popAndPass(type, stream, state, n) { for (var i = n || 1; i > 0; i--) state.context = state.context.prev; return pass(type, stream, state); } // Parser function wordAsValue(stream) { var word = stream.current().toLowerCase(); if (valueKeywords.hasOwnProperty(word)) override = "atom"; else if (colorKeywords.hasOwnProperty(word)) override = "keyword"; else override = "variable"; } var states = {}; states.top = function(type, stream, state) { if (type == "{") { return pushContext(state, stream, "block"); } else if (type == "}" && state.context.prev) { return popContext(state); } else if (supportsAtComponent && /@component/i.test(type)) { return pushContext(state, stream, "atComponentBlock"); } else if (/^@(-moz-)?document$/i.test(type)) { return pushContext(state, stream, "documentTypes"); } else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) { return pushContext(state, stream, "atBlock"); } else if (/^@(font-face|counter-style)/i.test(type)) { state.stateArg = type; return "restricted_atBlock_before"; } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) { return "keyframes"; } else if (type && type.charAt(0) == "@") { return pushContext(state, stream, "at"); } else if (type == "hash") { override = "builtin"; } else if (type == "word") { override = "tag"; } else if (type == "variable-definition") { return "maybeprop"; } else if (type == "interpolation") { return pushContext(state, stream, "interpolation"); } else if (type == ":") { return "pseudo"; } else if (allowNested && type == "(") { return pushContext(state, stream, "parens"); } return state.context.type; }; states.block = function(type, stream, state) { if (type == "word") { var word = stream.current().toLowerCase(); if (propertyKeywords.hasOwnProperty(word)) { override = "property"; return "maybeprop"; } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) { override = highlightNonStandardPropertyKeywords ? "string-2" : "property"; return "maybeprop"; } else if (allowNested) { override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag"; return "block"; } else { override += " error"; return "maybeprop"; } } else if (type == "meta") { return "block"; } else if (!allowNested && (type == "hash" || type == "qualifier")) { override = "error"; return "block"; } else { return states.top(type, stream, state); } }; states.maybeprop = function(type, stream, state) { if (type == ":") return pushContext(state, stream, "prop"); return pass(type, stream, state); }; states.prop = function(type, stream, state) { if (type == ";") return popContext(state); if (type == "{" && allowNested) return pushContext(state, stream, "propBlock"); if (type == "}" || type == "{") return popAndPass(type, stream, state); if (type == "(") return pushContext(state, stream, "parens"); if (type == "hash" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(stream.current())) { override += " error"; } else if (type == "word") { wordAsValue(stream); } else if (type == "interpolation") { return pushContext(state, stream, "interpolation"); } return "prop"; }; states.propBlock = function(type, _stream, state) { if (type == "}") return popContext(state); if (type == "word") { override = "property"; return "maybeprop"; } return state.context.type; }; states.parens = function(type, stream, state) { if (type == "{" || type == "}") return popAndPass(type, stream, state); if (type == ")") return popContext(state); if (type == "(") return pushContext(state, stream, "parens"); if (type == "interpolation") return pushContext(state, stream, "interpolation"); if (type == "word") wordAsValue(stream); return "parens"; }; states.pseudo = function(type, stream, state) { if (type == "meta") return "pseudo"; if (type == "word") { override = "variable-3"; return state.context.type; } return pass(type, stream, state); }; states.documentTypes = function(type, stream, state) { if (type == "word" && documentTypes.hasOwnProperty(stream.current())) { override = "tag"; return state.context.type; } else { return states.atBlock(type, stream, state); } }; states.atBlock = function(type, stream, state) { if (type == "(") return pushContext(state, stream, "atBlock_parens"); if (type == "}" || type == ";") return popAndPass(type, stream, state); if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top"); if (type == "interpolation") return pushContext(state, stream, "interpolation"); if (type == "word") { var word = stream.current().toLowerCase(); if (word == "only" || word == "not" || word == "and" || word == "or") override = "keyword"; else if (mediaTypes.hasOwnProperty(word)) override = "attribute"; else if (mediaFeatures.hasOwnProperty(word)) override = "property"; else if (mediaValueKeywords.hasOwnProperty(word)) override = "keyword"; else if (propertyKeywords.hasOwnProperty(word)) override = "property"; else if (nonStandardPropertyKeywords.hasOwnProperty(word)) override = highlightNonStandardPropertyKeywords ? "string-2" : "property"; else if (valueKeywords.hasOwnProperty(word)) override = "atom"; else if (colorKeywords.hasOwnProperty(word)) override = "keyword"; else override = "error"; } return state.context.type; }; states.atComponentBlock = function(type, stream, state) { if (type == "}") return popAndPass(type, stream, state); if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false); if (type == "word") override = "error"; return state.context.type; }; states.atBlock_parens = function(type, stream, state) { if (type == ")") return popContext(state); if (type == "{" || type == "}") return popAndPass(type, stream, state, 2); return states.atBlock(type, stream, state); }; states.restricted_atBlock_before = function(type, stream, state) { if (type == "{") return pushContext(state, stream, "restricted_atBlock"); if (type == "word" && state.stateArg == "@counter-style") { override = "variable"; return "restricted_atBlock_before"; } return pass(type, stream, state); }; states.restricted_atBlock = function(type, stream, state) { if (type == "}") { state.stateArg = null; return popContext(state); } if (type == "word") { if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) || (state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase()))) override = "error"; else override = "property"; return "maybeprop"; } return "restricted_atBlock"; }; states.keyframes = function(type, stream, state) { if (type == "word") { override = "variable"; return "keyframes"; } if (type == "{") return pushContext(state, stream, "top"); return pass(type, stream, state); }; states.at = function(type, stream, state) { if (type == ";") return popContext(state); if (type == "{" || type == "}") return popAndPass(type, stream, state); if (type == "word") override = "tag"; else if (type == "hash") override = "builtin"; return "at"; }; states.interpolation = function(type, stream, state) { if (type == "}") return popContext(state); if (type == "{" || type == ";") return popAndPass(type, stream, state); if (type == "word") override = "variable"; else if (type != "variable" && type != "(" && type != ")") override = "error"; return "interpolation"; }; return { startState: function(base) { return {tokenize: null, state: inline ? "block" : "top", stateArg: null, context: new Context(inline ? "block" : "top", base || 0, null)}; }, token: function(stream, state) { if (!state.tokenize && stream.eatSpace()) return null; var style = (state.tokenize || tokenBase)(stream, state); if (style && typeof style == "object") { type = style[1]; style = style[0]; } override = style; if (type != "comment") state.state = states[state.state](type, stream, state); return override; }, indent: function(state, textAfter) { var cx = state.context, ch = textAfter && textAfter.charAt(0); var indent = cx.indent; if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev; if (cx.prev) { if (ch == "}" && (cx.type == "block" || cx.type == "top" || cx.type == "interpolation" || cx.type == "restricted_atBlock")) { // Resume indentation from parent context. cx = cx.prev; indent = cx.indent; } else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") || ch == "{" && (cx.type == "at" || cx.type == "atBlock")) { // Dedent relative to current context. indent = Math.max(0, cx.indent - indentUnit); } } return indent; }, electricChars: "}", blockCommentStart: "/*", blockCommentEnd: "*/", blockCommentContinue: " * ", lineComment: lineComment, fold: "brace" }; }); function keySet(array) { var keys = {}; for (var i = 0; i < array.length; ++i) { keys[array[i].toLowerCase()] = true; } return keys; } var documentTypes_ = [ "domain", "regexp", "url", "url-prefix" ], documentTypes = keySet(documentTypes_); var mediaTypes_ = [ "all", "aural", "braille", "handheld", "print", "projection", "screen", "tty", "tv", "embossed" ], mediaTypes = keySet(mediaTypes_); var mediaFeatures_ = [ "width", "min-width", "max-width", "height", "min-height", "max-height", "device-width", "min-device-width", "max-device-width", "device-height", "min-device-height", "max-device-height", "aspect-ratio", "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio", "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color", "max-color", "color-index", "min-color-index", "max-color-index", "monochrome", "min-monochrome", "max-monochrome", "resolution", "min-resolution", "max-resolution", "scan", "grid", "orientation", "device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio", "pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme", "dynamic-range", "video-dynamic-range" ], mediaFeatures = keySet(mediaFeatures_); var mediaValueKeywords_ = [ "landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover", "interlace", "progressive", "dark", "light", "standard", "high" ], mediaValueKeywords = keySet(mediaValueKeywords_); var propertyKeywords_ = [ "align-content", "align-items", "align-self", "alignment-adjust", "alignment-baseline", "all", "anchor-point", "animation", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-timing-function", "appearance", "azimuth", "backdrop-filter", "backface-visibility", "background", "background-attachment", "background-blend-mode", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-position-x", "background-position-y", "background-repeat", "background-size", "baseline-shift", "binding", "bleed", "block-size", "bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target", "border", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "caret-color", "clear", "clip", "color", "color-profile", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "contain", "content", "counter-increment", "counter-reset", "crop", "cue", "cue-after", "cue-before", "cursor", "direction", "display", "dominant-baseline", "drop-initial-after-adjust", "drop-initial-after-align", "drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size", "drop-initial-value", "elevation", "empty-cells", "fit", "fit-content", "fit-position", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into", "font", "font-family", "font-feature-settings", "font-kerning", "font-language-override", "font-optical-sizing", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-synthesis", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-variation-settings", "font-weight", "gap", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-gap", "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "inline-box-align", "inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline", "inset-inline-end", "inset-inline-start", "isolation", "justify-content", "justify-items", "justify-self", "left", "letter-spacing", "line-break", "line-height", "line-height-step", "line-stacking", "line-stacking-ruby", "line-stacking-shift", "line-stacking-strategy", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-bottom", "margin-left", "margin-right", "margin-top", "marks", "marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed", "marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode", "mask-origin", "mask-position", "mask-repeat", "mask-size","mask-type", "max-block-size", "max-height", "max-inline-size", "max-width", "min-block-size", "min-height", "min-inline-size", "min-width", "mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "object-fit", "object-position", "offset", "offset-anchor", "offset-distance", "offset-path", "offset-position", "offset-rotate", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "page-policy", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "pitch", "pitch-range", "place-content", "place-items", "place-self", "play-during", "position", "presentation-level", "punctuation-trim", "quotes", "region-break-after", "region-break-before", "region-break-inside", "region-fragment", "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness", "right", "rotate", "rotation", "rotation-point", "row-gap", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span", "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block", "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom", "scroll-margin-inline", "scroll-margin-inline-end", "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right", "scroll-margin-top", "scroll-padding", "scroll-padding-block", "scroll-padding-block-end", "scroll-padding-block-start", "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end", "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right", "scroll-padding-top", "scroll-snap-align", "scroll-snap-type", "shape-image-threshold", "shape-inside", "shape-margin", "shape-outside", "size", "speak", "speak-as", "speak-header", "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set", "tab-size", "table-layout", "target", "target-name", "target-new", "target-position", "text-align", "text-align-last", "text-combine-upright", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-skip-ink", "text-decoration-style", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-height", "text-indent", "text-justify", "text-orientation", "text-outline", "text-overflow", "text-rendering", "text-shadow", "text-size-adjust", "text-space-collapse", "text-transform", "text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin", "transform-style", "transition", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "translate", "unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "volume", "white-space", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "z-index", // SVG-specific "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color", "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events", "color-interpolation", "color-interpolation-filters", "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering", "marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering", "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal", "glyph-orientation-vertical", "text-anchor", "writing-mode", ], propertyKeywords = keySet(propertyKeywords_); var nonStandardPropertyKeywords_ = [ "accent-color", "aspect-ratio", "border-block", "border-block-color", "border-block-end", "border-block-end-color", "border-block-end-style", "border-block-end-width", "border-block-start", "border-block-start-color", "border-block-start-style", "border-block-start-width", "border-block-style", "border-block-width", "border-inline", "border-inline-color", "border-inline-end", "border-inline-end-color", "border-inline-end-style", "border-inline-end-width", "border-inline-start", "border-inline-start-color", "border-inline-start-style", "border-inline-start-width", "border-inline-style", "border-inline-width", "content-visibility", "margin-block", "margin-block-end", "margin-block-start", "margin-inline", "margin-inline-end", "margin-inline-start", "overflow-anchor", "overscroll-behavior", "padding-block", "padding-block-end", "padding-block-start", "padding-inline", "padding-inline-end", "padding-inline-start", "scroll-snap-stop", "scrollbar-3d-light-color", "scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color", "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color", "scrollbar-track-color", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "shape-inside", "zoom" ], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_); var fontProperties_ = [ "font-display", "font-family", "src", "unicode-range", "font-variant", "font-feature-settings", "font-stretch", "font-weight", "font-style" ], fontProperties = keySet(fontProperties_); var counterDescriptors_ = [ "additive-symbols", "fallback", "negative", "pad", "prefix", "range", "speak-as", "suffix", "symbols", "system" ], counterDescriptors = keySet(counterDescriptors_); var colorKeywords_ = [ "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen" ], colorKeywords = keySet(colorKeywords_); var valueKeywords_ = [ "above", "absolute", "activeborder", "additive", "activecaption", "afar", "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always", "amharic", "amharic-abegede", "antialiased", "appworkspace", "arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page", "avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary", "bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box", "both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button", "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian", "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch", "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote", "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse", "compact", "condensed", "conic-gradient", "contain", "content", "contents", "content-box", "context-menu", "continuous", "contrast", "copy", "counter", "counters", "cover", "crop", "cross", "crosshair", "cubic-bezier", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal", "decimal-leading-zero", "default", "default-button", "dense", "destination-atop", "destination-in", "destination-out", "destination-over", "devanagari", "difference", "disc", "discard", "disclosure-closed", "disclosure-open", "document", "dot-dash", "dot-dot-dash", "dotted", "double", "down", "drop-shadow", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out", "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede", "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er", "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er", "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et", "ethiopic-halehame-gez", "ethiopic-halehame-om-et", "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et", "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig", "ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes", "forwards", "from", "geometricPrecision", "georgian", "grayscale", "graytext", "grid", "groove", "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew", "help", "hidden", "hide", "higher", "highlight", "highlighttext", "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "hue-rotate", "icon", "ignore", "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis", "inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert", "italic", "japanese-formal", "japanese-informal", "justify", "kannada", "katakana", "katakana-iroha", "keep-all", "khmer", "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal", "landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten", "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian", "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian", "lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d", "media-play-button", "media-slider", "media-sliderthumb", "media-volume-slider", "media-volume-sliderthumb", "medium", "menu", "menulist", "menulist-button", "menutext", "message-box", "middle", "min-intrinsic", "mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize", "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap", "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote", "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset", "outside", "outside-shape", "overlay", "overline", "padding", "padding-box", "painted", "page", "paused", "persian", "perspective", "pinch-zoom", "plus-darker", "plus-lighter", "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button", "radial-gradient", "radio", "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region", "relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient", "repeating-conic-gradient", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running", "s-resize", "sans-serif", "saturate", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen", "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end", "semi-condensed", "semi-expanded", "separate", "sepia", "serif", "show", "sidama", "simp-chinese-formal", "simp-chinese-informal", "single", "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal", "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali", "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square", "square-button", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub", "subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row", "table-row-group", "tamil", "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai", "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er", "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top", "trad-chinese-formal", "trad-chinese-informal", "transform", "translate", "translate3d", "translateX", "translateY", "translateZ", "transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up", "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal", "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url", "var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor", "xx-large", "xx-small" ], valueKeywords = keySet(valueKeywords_); var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_) .concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_) .concat(valueKeywords_); CodeMirror.registerHelper("hintWords", "css", allWords); function tokenCComment(stream, state) { var maybeEnd = false, ch; while ((ch = stream.next()) != null) { if (maybeEnd && ch == "/") { state.tokenize = null; break; } maybeEnd = (ch == "*"); } return ["comment", "comment"]; } CodeMirror.defineMIME("text/css", { documentTypes: documentTypes, mediaTypes: mediaTypes, mediaFeatures: mediaFeatures, mediaValueKeywords: mediaValueKeywords, propertyKeywords: propertyKeywords, nonStandardPropertyKeywords: nonStandardPropertyKeywords, fontProperties: fontProperties, counterDescriptors: counterDescriptors, colorKeywords: colorKeywords, valueKeywords: valueKeywords, tokenHooks: { "/": function(stream, state) { if (!stream.eat("*")) return false; state.tokenize = tokenCComment; return tokenCComment(stream, state); } }, name: "css" }); CodeMirror.defineMIME("text/x-scss", { mediaTypes: mediaTypes, mediaFeatures: mediaFeatures, mediaValueKeywords: mediaValueKeywords, propertyKeywords: propertyKeywords, nonStandardPropertyKeywords: nonStandardPropertyKeywords, colorKeywords: colorKeywords, valueKeywords: valueKeywords, fontProperties: fontProperties, allowNested: true, lineComment: "//", tokenHooks: { "/": function(stream, state) { if (stream.eat("/")) { stream.skipToEnd(); return ["comment", "comment"]; } else if (stream.eat("*")) { state.tokenize = tokenCComment; return tokenCComment(stream, state); } else { return ["operator", "operator"]; } }, ":": function(stream) { if (stream.match(/^\s*\{/, false)) return [null, null] return false; }, "$": function(stream) { stream.match(/^[\w-]+/); if (stream.match(/^\s*:/, false)) return ["variable-2", "variable-definition"]; return ["variable-2", "variable"]; }, "#": function(stream) { if (!stream.eat("{")) return false; return [null, "interpolation"]; } }, name: "css", helperType: "scss" }); CodeMirror.defineMIME("text/x-less", { mediaTypes: mediaTypes, mediaFeatures: mediaFeatures, mediaValueKeywords: mediaValueKeywords, propertyKeywords: propertyKeywords, nonStandardPropertyKeywords: nonStandardPropertyKeywords, colorKeywords: colorKeywords, valueKeywords: valueKeywords, fontProperties: fontProperties, allowNested: true, lineComment: "//", tokenHooks: { "/": function(stream, state) { if (stream.eat("/")) { stream.skipToEnd(); return ["comment", "comment"]; } else if (stream.eat("*")) { state.tokenize = tokenCComment; return tokenCComment(stream, state); } else { return ["operator", "operator"]; } }, "@": function(stream) { if (stream.eat("{")) return [null, "interpolation"]; if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false)) return false; stream.eatWhile(/[\w\\\-]/); if (stream.match(/^\s*:/, false)) return ["variable-2", "variable-definition"]; return ["variable-2", "variable"]; }, "&": function() { return ["atom", "atom"]; } }, name: "css", helperType: "less" }); CodeMirror.defineMIME("text/x-gss", { documentTypes: documentTypes, mediaTypes: mediaTypes, mediaFeatures: mediaFeatures, propertyKeywords: propertyKeywords, nonStandardPropertyKeywords: nonStandardPropertyKeywords, fontProperties: fontProperties, counterDescriptors: counterDescriptors, colorKeywords: colorKeywords, valueKeywords: valueKeywords, supportsAtComponent: true, tokenHooks: { "/": function(stream, state) { if (!stream.eat("*")) return false; state.tokenize = tokenCComment; return tokenCComment(stream, state); } }, name: "css", helperType: "gss" }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/cypher/cypher.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // By the Neo4j Team and contributors. // https://github.com/neo4j-contrib/CodeMirror (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; var wordRegexp = function(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); }; CodeMirror.defineMode("cypher", function(config) { var tokenBase = function(stream/*, state*/) { curPunc = null var ch = stream.next(); if (ch ==='"') { stream.match(/^[^"]*"/); return "string"; } if (ch === "'") { stream.match(/^[^']*'/); return "string"; } if (/[{}\(\),\.;\[\]]/.test(ch)) { curPunc = ch; return "node"; } else if (ch === "/" && stream.eat("/")) { stream.skipToEnd(); return "comment"; } else if (operatorChars.test(ch)) { stream.eatWhile(operatorChars); return null; } else { stream.eatWhile(/[_\w\d]/); if (stream.eat(":")) { stream.eatWhile(/[\w\d_\-]/); return "atom"; } var word = stream.current(); if (funcs.test(word)) return "builtin"; if (preds.test(word)) return "def"; if (keywords.test(word) || systemKeywords.test(word)) return "keyword"; return "variable"; } }; var pushContext = function(state, type, col) { return state.context = { prev: state.context, indent: state.indent, col: col, type: type }; }; var popContext = function(state) { state.indent = state.context.indent; return state.context = state.context.prev; }; var indentUnit = config.indentUnit; var curPunc; var funcs = wordRegexp(["abs", "acos", "allShortestPaths", "asin", "atan", "atan2", "avg", "ceil", "coalesce", "collect", "cos", "cot", "count", "degrees", "e", "endnode", "exp", "extract", "filter", "floor", "haversin", "head", "id", "keys", "labels", "last", "left", "length", "log", "log10", "lower", "ltrim", "max", "min", "node", "nodes", "percentileCont", "percentileDisc", "pi", "radians", "rand", "range", "reduce", "rel", "relationship", "relationships", "replace", "reverse", "right", "round", "rtrim", "shortestPath", "sign", "sin", "size", "split", "sqrt", "startnode", "stdev", "stdevp", "str", "substring", "sum", "tail", "tan", "timestamp", "toFloat", "toInt", "toString", "trim", "type", "upper"]); var preds = wordRegexp(["all", "and", "any", "contains", "exists", "has", "in", "none", "not", "or", "single", "xor"]); var keywords = wordRegexp(["as", "asc", "ascending", "assert", "by", "case", "commit", "constraint", "create", "csv", "cypher", "delete", "desc", "descending", "detach", "distinct", "drop", "else", "end", "ends", "explain", "false", "fieldterminator", "foreach", "from", "headers", "in", "index", "is", "join", "limit", "load", "match", "merge", "null", "on", "optional", "order", "periodic", "profile", "remove", "return", "scan", "set", "skip", "start", "starts", "then", "true", "union", "unique", "unwind", "using", "when", "where", "with", "call", "yield"]); var systemKeywords = wordRegexp(["access", "active", "assign", "all", "alter", "as", "catalog", "change", "copy", "create", "constraint", "constraints", "current", "database", "databases", "dbms", "default", "deny", "drop", "element", "elements", "exists", "from", "grant", "graph", "graphs", "if", "index", "indexes", "label", "labels", "management", "match", "name", "names", "new", "node", "nodes", "not", "of", "on", "or", "password", "populated", "privileges", "property", "read", "relationship", "relationships", "remove", "replace", "required", "revoke", "role", "roles", "set", "show", "start", "status", "stop", "suspended", "to", "traverse", "type", "types", "user", "users", "with", "write"]); var operatorChars = /[*+\-<>=&|~%^]/; return { startState: function(/*base*/) { return { tokenize: tokenBase, context: null, indent: 0, col: 0 }; }, token: function(stream, state) { if (stream.sol()) { if (state.context && (state.context.align == null)) { state.context.align = false; } state.indent = stream.indentation(); } if (stream.eatSpace()) { return null; } var style = state.tokenize(stream, state); if (style !== "comment" && state.context && (state.context.align == null) && state.context.type !== "pattern") { state.context.align = true; } if (curPunc === "(") { pushContext(state, ")", stream.column()); } else if (curPunc === "[") { pushContext(state, "]", stream.column()); } else if (curPunc === "{") { pushContext(state, "}", stream.column()); } else if (/[\]\}\)]/.test(curPunc)) { while (state.context && state.context.type === "pattern") { popContext(state); } if (state.context && curPunc === state.context.type) { popContext(state); } } else if (curPunc === "." && state.context && state.context.type === "pattern") { popContext(state); } else if (/atom|string|variable/.test(style) && state.context) { if (/[\}\]]/.test(state.context.type)) { pushContext(state, "pattern", stream.column()); } else if (state.context.type === "pattern" && !state.context.align) { state.context.align = true; state.context.col = stream.column(); } } return style; }, indent: function(state, textAfter) { var firstChar = textAfter && textAfter.charAt(0); var context = state.context; if (/[\]\}]/.test(firstChar)) { while (context && context.type === "pattern") { context = context.prev; } } var closing = context && firstChar === context.type; if (!context) return 0; if (context.type === "keywords") return CodeMirror.commands.newlineAndIndent; if (context.align) return context.col + (closing ? 0 : 1); return context.indent + (closing ? 0 : indentUnit); } }; }); CodeMirror.modeExtensions["cypher"] = { autoFormatLineBreaks: function(text) { var i, lines, reProcessedPortion; var lines = text.split("\n"); var reProcessedPortion = /\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g; for (var i = 0; i < lines.length; i++) lines[i] = lines[i].replace(reProcessedPortion, " \n$1 ").trim(); return lines.join("\n"); } }; CodeMirror.defineMIME("application/x-cypher-query", "cypher"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/d/d.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("d", function(config, parserConfig) { var indentUnit = config.indentUnit, statementIndentUnit = parserConfig.statementIndentUnit || indentUnit, keywords = parserConfig.keywords || {}, builtin = parserConfig.builtin || {}, blockKeywords = parserConfig.blockKeywords || {}, atoms = parserConfig.atoms || {}, hooks = parserConfig.hooks || {}, multiLineStrings = parserConfig.multiLineStrings; var isOperatorChar = /[+\-*&%=<>!?|\/]/; var curPunc; function tokenBase(stream, state) { var ch = stream.next(); if (hooks[ch]) { var result = hooks[ch](stream, state); if (result !== false) return result; } if (ch == '"' || ch == "'" || ch == "`") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (/[\[\]{}\(\),;\:\.]/.test(ch)) { curPunc = ch; return null; } if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } if (ch == "/") { if (stream.eat("+")) { state.tokenize = tokenNestedComment; return tokenNestedComment(stream, state); } if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } } if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } stream.eatWhile(/[\w\$_\xa1-\uffff]/); var cur = stream.current(); if (keywords.propertyIsEnumerable(cur)) { if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; return "keyword"; } if (builtin.propertyIsEnumerable(cur)) { if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; return "builtin"; } if (atoms.propertyIsEnumerable(cur)) return "atom"; return "variable"; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) {end = true; break;} escaped = !escaped && next == "\\"; } if (end || !(escaped || multiLineStrings)) state.tokenize = null; return "string"; }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = null; break; } maybeEnd = (ch == "*"); } return "comment"; } function tokenNestedComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = null; break; } maybeEnd = (ch == "+"); } return "comment"; } function Context(indented, column, type, align, prev) { this.indented = indented; this.column = column; this.type = type; this.align = align; this.prev = prev; } function pushContext(state, col, type) { var indent = state.indented; if (state.context && state.context.type == "statement") indent = state.context.indented; return state.context = new Context(indent, col, type, null, state.context); } function popContext(state) { var t = state.context.type; if (t == ")" || t == "]" || t == "}") state.indented = state.context.indented; return state.context = state.context.prev; } // Interface return { startState: function(basecolumn) { return { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), indented: 0, startOfLine: true }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; } if (stream.eatSpace()) return null; curPunc = null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment" || style == "meta") return style; if (ctx.align == null) ctx.align = true; if ((curPunc == ";" || curPunc == ":" || curPunc == ",") && ctx.type == "statement") popContext(state); else if (curPunc == "{") pushContext(state, stream.column(), "}"); else if (curPunc == "[") pushContext(state, stream.column(), "]"); else if (curPunc == "(") pushContext(state, stream.column(), ")"); else if (curPunc == "}") { while (ctx.type == "statement") ctx = popContext(state); if (ctx.type == "}") ctx = popContext(state); while (ctx.type == "statement") ctx = popContext(state); } else if (curPunc == ctx.type) popContext(state); else if (((ctx.type == "}" || ctx.type == "top") && curPunc != ';') || (ctx.type == "statement" && curPunc == "newstatement")) pushContext(state, stream.column(), "statement"); state.startOfLine = false; return style; }, indent: function(state, textAfter) { if (state.tokenize != tokenBase && state.tokenize != null) return CodeMirror.Pass; var ctx = state.context, firstChar = textAfter && textAfter.charAt(0); if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev; var closing = firstChar == ctx.type; if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit); else if (ctx.align) return ctx.column + (closing ? 0 : 1); else return ctx.indented + (closing ? 0 : indentUnit); }, electricChars: "{}", blockCommentStart: "/*", blockCommentEnd: "*/", blockCommentContinue: " * ", lineComment: "//", fold: "brace" }; }); function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var blockKeywords = "body catch class do else enum for foreach foreach_reverse if in interface mixin " + "out scope struct switch try union unittest version while with"; CodeMirror.defineMIME("text/x-d", { name: "d", keywords: words("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue " + "debug default delegate delete deprecated export extern final finally function goto immutable " + "import inout invariant is lazy macro module new nothrow override package pragma private " + "protected public pure ref return shared short static super synchronized template this " + "throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters " + blockKeywords), blockKeywords: words(blockKeywords), builtin: words("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte " + "ucent uint ulong ushort wchar wstring void size_t sizediff_t"), atoms: words("exit failure success true false null"), hooks: { "@": function(stream, _state) { stream.eatWhile(/[\w\$_]/); return "meta"; } } }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/dart/dart.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../clike/clike")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../clike/clike"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; var keywords = ("this super static final const abstract class extends external factory " + "implements mixin get native set typedef with enum throw rethrow " + "assert break case continue default in return new deferred async await covariant " + "try catch finally do else for if switch while import library export " + "part of show hide is as extension on yield late required").split(" "); var blockKeywords = "try catch finally do else for if switch while".split(" "); var atoms = "true false null".split(" "); var builtins = "void bool num int double dynamic var String Null Never".split(" "); function set(words) { var obj = {}; for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } function pushInterpolationStack(state) { (state.interpolationStack || (state.interpolationStack = [])).push(state.tokenize); } function popInterpolationStack(state) { return (state.interpolationStack || (state.interpolationStack = [])).pop(); } function sizeInterpolationStack(state) { return state.interpolationStack ? state.interpolationStack.length : 0; } CodeMirror.defineMIME("application/dart", { name: "clike", keywords: set(keywords), blockKeywords: set(blockKeywords), builtin: set(builtins), atoms: set(atoms), hooks: { "@": function(stream) { stream.eatWhile(/[\w\$_\.]/); return "meta"; }, // custom string handling to deal with triple-quoted strings and string interpolation "'": function(stream, state) { return tokenString("'", stream, state, false); }, "\"": function(stream, state) { return tokenString("\"", stream, state, false); }, "r": function(stream, state) { var peek = stream.peek(); if (peek == "'" || peek == "\"") { return tokenString(stream.next(), stream, state, true); } return false; }, "}": function(_stream, state) { // "}" is end of interpolation, if interpolation stack is non-empty if (sizeInterpolationStack(state) > 0) { state.tokenize = popInterpolationStack(state); return null; } return false; }, "/": function(stream, state) { if (!stream.eat("*")) return false state.tokenize = tokenNestedComment(1) return state.tokenize(stream, state) }, token: function(stream, _, style) { if (style == "variable") { // Assume uppercase symbols are classes using variable-2 var isUpper = RegExp('^[_$]*[A-Z][a-zA-Z0-9_$]*$','g'); if (isUpper.test(stream.current())) { return 'variable-2'; } } } } }); function tokenString(quote, stream, state, raw) { var tripleQuoted = false; if (stream.eat(quote)) { if (stream.eat(quote)) tripleQuoted = true; else return "string"; //empty string } function tokenStringHelper(stream, state) { var escaped = false; while (!stream.eol()) { if (!raw && !escaped && stream.peek() == "$") { pushInterpolationStack(state); state.tokenize = tokenInterpolation; return "string"; } var next = stream.next(); if (next == quote && !escaped && (!tripleQuoted || stream.match(quote + quote))) { state.tokenize = null; break; } escaped = !raw && !escaped && next == "\\"; } return "string"; } state.tokenize = tokenStringHelper; return tokenStringHelper(stream, state); } function tokenInterpolation(stream, state) { stream.eat("$"); if (stream.eat("{")) { // let clike handle the content of ${...}, // we take over again when "}" appears (see hooks). state.tokenize = null; } else { state.tokenize = tokenInterpolationIdentifier; } return null; } function tokenInterpolationIdentifier(stream, state) { stream.eatWhile(/[\w_]/); state.tokenize = popInterpolationStack(state); return "variable"; } function tokenNestedComment(depth) { return function (stream, state) { var ch while (ch = stream.next()) { if (ch == "*" && stream.eat("/")) { if (depth == 1) { state.tokenize = null break } else { state.tokenize = tokenNestedComment(depth - 1) return state.tokenize(stream, state) } } else if (ch == "/" && stream.eat("*")) { state.tokenize = tokenNestedComment(depth + 1) return state.tokenize(stream, state) } } return "comment" } } CodeMirror.registerHelper("hintWords", "application/dart", keywords.concat(atoms).concat(builtins)); // This is needed to make loading through meta.js work. CodeMirror.defineMode("dart", function(conf) { return CodeMirror.getMode(conf, "application/dart"); }, "clike"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/diff/diff.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("diff", function() { var TOKEN_NAMES = { '+': 'positive', '-': 'negative', '@': 'meta' }; return { token: function(stream) { var tw_pos = stream.string.search(/[\t ]+?$/); if (!stream.sol() || tw_pos === 0) { stream.skipToEnd(); return ("error " + ( TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, ''); } var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd(); if (tw_pos === -1) { stream.skipToEnd(); } else { stream.pos = tw_pos; } return token_name; } }; }); CodeMirror.defineMIME("text/x-diff", "diff"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/django/django.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../../addon/mode/overlay")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../../addon/mode/overlay"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("django:inner", function() { var keywords = ["block", "endblock", "for", "endfor", "true", "false", "filter", "endfilter", "loop", "none", "self", "super", "if", "elif", "endif", "as", "else", "import", "with", "endwith", "without", "context", "ifequal", "endifequal", "ifnotequal", "endifnotequal", "extends", "include", "load", "comment", "endcomment", "empty", "url", "static", "trans", "blocktrans", "endblocktrans", "now", "regroup", "lorem", "ifchanged", "endifchanged", "firstof", "debug", "cycle", "csrf_token", "autoescape", "endautoescape", "spaceless", "endspaceless", "ssi", "templatetag", "verbatim", "endverbatim", "widthratio"], filters = ["add", "addslashes", "capfirst", "center", "cut", "date", "default", "default_if_none", "dictsort", "dictsortreversed", "divisibleby", "escape", "escapejs", "filesizeformat", "first", "floatformat", "force_escape", "get_digit", "iriencode", "join", "last", "length", "length_is", "linebreaks", "linebreaksbr", "linenumbers", "ljust", "lower", "make_list", "phone2numeric", "pluralize", "pprint", "random", "removetags", "rjust", "safe", "safeseq", "slice", "slugify", "stringformat", "striptags", "time", "timesince", "timeuntil", "title", "truncatechars", "truncatechars_html", "truncatewords", "truncatewords_html", "unordered_list", "upper", "urlencode", "urlize", "urlizetrunc", "wordcount", "wordwrap", "yesno"], operators = ["==", "!=", "<", ">", "<=", ">="], wordOperators = ["in", "not", "or", "and"]; keywords = new RegExp("^\\b(" + keywords.join("|") + ")\\b"); filters = new RegExp("^\\b(" + filters.join("|") + ")\\b"); operators = new RegExp("^\\b(" + operators.join("|") + ")\\b"); wordOperators = new RegExp("^\\b(" + wordOperators.join("|") + ")\\b"); // We have to return "null" instead of null, in order to avoid string // styling as the default, when using Django templates inside HTML // element attributes function tokenBase (stream, state) { // Attempt to identify a variable, template or comment tag respectively if (stream.match("{{")) { state.tokenize = inVariable; return "tag"; } else if (stream.match("{%")) { state.tokenize = inTag; return "tag"; } else if (stream.match("{#")) { state.tokenize = inComment; return "comment"; } // Ignore completely any stream series that do not match the // Django template opening tags. while (stream.next() != null && !stream.match(/\{[{%#]/, false)) {} return null; } // A string can be included in either single or double quotes (this is // the delimiter). Mark everything as a string until the start delimiter // occurs again. function inString (delimiter, previousTokenizer) { return function (stream, state) { if (!state.escapeNext && stream.eat(delimiter)) { state.tokenize = previousTokenizer; } else { if (state.escapeNext) { state.escapeNext = false; } var ch = stream.next(); // Take into account the backslash for escaping characters, such as // the string delimiter. if (ch == "\\") { state.escapeNext = true; } } return "string"; }; } // Apply Django template variable syntax highlighting function inVariable (stream, state) { // Attempt to match a dot that precedes a property if (state.waitDot) { state.waitDot = false; if (stream.peek() != ".") { return "null"; } // Dot followed by a non-word character should be considered an error. if (stream.match(/\.\W+/)) { return "error"; } else if (stream.eat(".")) { state.waitProperty = true; return "null"; } else { throw Error ("Unexpected error while waiting for property."); } } // Attempt to match a pipe that precedes a filter if (state.waitPipe) { state.waitPipe = false; if (stream.peek() != "|") { return "null"; } // Pipe followed by a non-word character should be considered an error. if (stream.match(/\.\W+/)) { return "error"; } else if (stream.eat("|")) { state.waitFilter = true; return "null"; } else { throw Error ("Unexpected error while waiting for filter."); } } // Highlight properties if (state.waitProperty) { state.waitProperty = false; if (stream.match(/\b(\w+)\b/)) { state.waitDot = true; // A property can be followed by another property state.waitPipe = true; // A property can be followed by a filter return "property"; } } // Highlight filters if (state.waitFilter) { state.waitFilter = false; if (stream.match(filters)) { return "variable-2"; } } // Ignore all white spaces if (stream.eatSpace()) { state.waitProperty = false; return "null"; } // Identify numbers if (stream.match(/\b\d+(\.\d+)?\b/)) { return "number"; } // Identify strings if (stream.match("'")) { state.tokenize = inString("'", state.tokenize); return "string"; } else if (stream.match('"')) { state.tokenize = inString('"', state.tokenize); return "string"; } // Attempt to find the variable if (stream.match(/\b(\w+)\b/) && !state.foundVariable) { state.waitDot = true; state.waitPipe = true; // A property can be followed by a filter return "variable"; } // If found closing tag reset if (stream.match("}}")) { state.waitProperty = null; state.waitFilter = null; state.waitDot = null; state.waitPipe = null; state.tokenize = tokenBase; return "tag"; } // If nothing was found, advance to the next character stream.next(); return "null"; } function inTag (stream, state) { // Attempt to match a dot that precedes a property if (state.waitDot) { state.waitDot = false; if (stream.peek() != ".") { return "null"; } // Dot followed by a non-word character should be considered an error. if (stream.match(/\.\W+/)) { return "error"; } else if (stream.eat(".")) { state.waitProperty = true; return "null"; } else { throw Error ("Unexpected error while waiting for property."); } } // Attempt to match a pipe that precedes a filter if (state.waitPipe) { state.waitPipe = false; if (stream.peek() != "|") { return "null"; } // Pipe followed by a non-word character should be considered an error. if (stream.match(/\.\W+/)) { return "error"; } else if (stream.eat("|")) { state.waitFilter = true; return "null"; } else { throw Error ("Unexpected error while waiting for filter."); } } // Highlight properties if (state.waitProperty) { state.waitProperty = false; if (stream.match(/\b(\w+)\b/)) { state.waitDot = true; // A property can be followed by another property state.waitPipe = true; // A property can be followed by a filter return "property"; } } // Highlight filters if (state.waitFilter) { state.waitFilter = false; if (stream.match(filters)) { return "variable-2"; } } // Ignore all white spaces if (stream.eatSpace()) { state.waitProperty = false; return "null"; } // Identify numbers if (stream.match(/\b\d+(\.\d+)?\b/)) { return "number"; } // Identify strings if (stream.match("'")) { state.tokenize = inString("'", state.tokenize); return "string"; } else if (stream.match('"')) { state.tokenize = inString('"', state.tokenize); return "string"; } // Attempt to match an operator if (stream.match(operators)) { return "operator"; } // Attempt to match a word operator if (stream.match(wordOperators)) { return "keyword"; } // Attempt to match a keyword var keywordMatch = stream.match(keywords); if (keywordMatch) { if (keywordMatch[0] == "comment") { state.blockCommentTag = true; } return "keyword"; } // Attempt to match a variable if (stream.match(/\b(\w+)\b/)) { state.waitDot = true; state.waitPipe = true; // A property can be followed by a filter return "variable"; } // If found closing tag reset if (stream.match("%}")) { state.waitProperty = null; state.waitFilter = null; state.waitDot = null; state.waitPipe = null; // If the tag that closes is a block comment tag, we want to mark the // following code as comment, until the tag closes. if (state.blockCommentTag) { state.blockCommentTag = false; // Release the "lock" state.tokenize = inBlockComment; } else { state.tokenize = tokenBase; } return "tag"; } // If nothing was found, advance to the next character stream.next(); return "null"; } // Mark everything as comment inside the tag and the tag itself. function inComment (stream, state) { if (stream.match(/^.*?#\}/)) state.tokenize = tokenBase else stream.skipToEnd() return "comment"; } // Mark everything as a comment until the `blockcomment` tag closes. function inBlockComment (stream, state) { if (stream.match(/\{%\s*endcomment\s*%\}/, false)) { state.tokenize = inTag; stream.match("{%"); return "tag"; } else { stream.next(); return "comment"; } } return { startState: function () { return {tokenize: tokenBase}; }, token: function (stream, state) { return state.tokenize(stream, state); }, blockCommentStart: "{% comment %}", blockCommentEnd: "{% endcomment %}" }; }); CodeMirror.defineMode("django", function(config) { var htmlBase = CodeMirror.getMode(config, "text/html"); var djangoInner = CodeMirror.getMode(config, "django:inner"); return CodeMirror.overlayMode(htmlBase, djangoInner); }); CodeMirror.defineMIME("text/x-django", "django"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/dockerfile/dockerfile.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../../addon/mode/simple")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../../addon/mode/simple"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; var from = "from"; var fromRegex = new RegExp("^(\\s*)\\b(" + from + ")\\b", "i"); var shells = ["run", "cmd", "entrypoint", "shell"]; var shellsAsArrayRegex = new RegExp("^(\\s*)(" + shells.join('|') + ")(\\s+\\[)", "i"); var expose = "expose"; var exposeRegex = new RegExp("^(\\s*)(" + expose + ")(\\s+)", "i"); var others = [ "arg", "from", "maintainer", "label", "env", "add", "copy", "volume", "user", "workdir", "onbuild", "stopsignal", "healthcheck", "shell" ]; // Collect all Dockerfile directives var instructions = [from, expose].concat(shells).concat(others), instructionRegex = "(" + instructions.join('|') + ")", instructionOnlyLine = new RegExp("^(\\s*)" + instructionRegex + "(\\s*)(#.*)?$", "i"), instructionWithArguments = new RegExp("^(\\s*)" + instructionRegex + "(\\s+)", "i"); CodeMirror.defineSimpleMode("dockerfile", { start: [ // Block comment: This is a line starting with a comment { regex: /^\s*#.*$/, sol: true, token: "comment" }, { regex: fromRegex, token: [null, "keyword"], sol: true, next: "from" }, // Highlight an instruction without any arguments (for convenience) { regex: instructionOnlyLine, token: [null, "keyword", null, "error"], sol: true }, { regex: shellsAsArrayRegex, token: [null, "keyword", null], sol: true, next: "array" }, { regex: exposeRegex, token: [null, "keyword", null], sol: true, next: "expose" }, // Highlight an instruction followed by arguments { regex: instructionWithArguments, token: [null, "keyword", null], sol: true, next: "arguments" }, { regex: /./, token: null } ], from: [ { regex: /\s*$/, token: null, next: "start" }, { // Line comment without instruction arguments is an error regex: /(\s*)(#.*)$/, token: [null, "error"], next: "start" }, { regex: /(\s*\S+\s+)(as)/i, token: [null, "keyword"], next: "start" }, // Fail safe return to start { token: null, next: "start" } ], single: [ { regex: /(?:[^\\']|\\.)/, token: "string" }, { regex: /'/, token: "string", pop: true } ], double: [ { regex: /(?:[^\\"]|\\.)/, token: "string" }, { regex: /"/, token: "string", pop: true } ], array: [ { regex: /\]/, token: null, next: "start" }, { regex: /"(?:[^\\"]|\\.)*"?/, token: "string" } ], expose: [ { regex: /\d+$/, token: "number", next: "start" }, { regex: /[^\d]+$/, token: null, next: "start" }, { regex: /\d+/, token: "number" }, { regex: /[^\d]+/, token: null }, // Fail safe return to start { token: null, next: "start" } ], arguments: [ { regex: /^\s*#.*$/, sol: true, token: "comment" }, { regex: /"(?:[^\\"]|\\.)*"?$/, token: "string", next: "start" }, { regex: /"/, token: "string", push: "double" }, { regex: /'(?:[^\\']|\\.)*'?$/, token: "string", next: "start" }, { regex: /'/, token: "string", push: "single" }, { regex: /[^#"']+[\\`]$/, token: null }, { regex: /[^#"']+$/, token: null, next: "start" }, { regex: /[^#"']+/, token: null }, // Fail safe return to start { token: null, next: "start" } ], meta: { lineComment: "#" } }); CodeMirror.defineMIME("text/x-dockerfile", "dockerfile"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/dtd/dtd.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /* DTD mode Ported to CodeMirror by Peter Kroon Report bugs/issues here: https://github.com/codemirror/CodeMirror/issues GitHub: @peterkroon */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("dtd", function(config) { var indentUnit = config.indentUnit, type; function ret(style, tp) {type = tp; return style;} function tokenBase(stream, state) { var ch = stream.next(); if (ch == "<" && stream.eat("!") ) { if (stream.eatWhile(/[\-]/)) { state.tokenize = tokenSGMLComment; return tokenSGMLComment(stream, state); } else if (stream.eatWhile(/[\w]/)) return ret("keyword", "doindent"); } else if (ch == "<" && stream.eat("?")) { //xml declaration state.tokenize = inBlock("meta", "?>"); return ret("meta", ch); } else if (ch == "#" && stream.eatWhile(/[\w]/)) return ret("atom", "tag"); else if (ch == "|") return ret("keyword", "separator"); else if (ch.match(/[\(\)\[\]\-\.,\+\?>]/)) return ret(null, ch);//if(ch === ">") return ret(null, "endtag"); else else if (ch.match(/[\[\]]/)) return ret("rule", ch); else if (ch == "\"" || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } else if (stream.eatWhile(/[a-zA-Z\?\+\d]/)) { var sc = stream.current(); if( sc.substr(sc.length-1,sc.length).match(/\?|\+/) !== null )stream.backUp(1); return ret("tag", "tag"); } else if (ch == "%" || ch == "*" ) return ret("number", "number"); else { stream.eatWhile(/[\w\\\-_%.{,]/); return ret(null, null); } } function tokenSGMLComment(stream, state) { var dashes = 0, ch; while ((ch = stream.next()) != null) { if (dashes >= 2 && ch == ">") { state.tokenize = tokenBase; break; } dashes = (ch == "-") ? dashes + 1 : 0; } return ret("comment", "comment"); } function tokenString(quote) { return function(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == quote && !escaped) { state.tokenize = tokenBase; break; } escaped = !escaped && ch == "\\"; } return ret("string", "tag"); }; } function inBlock(style, terminator) { return function(stream, state) { while (!stream.eol()) { if (stream.match(terminator)) { state.tokenize = tokenBase; break; } stream.next(); } return style; }; } return { startState: function(base) { return {tokenize: tokenBase, baseIndent: base || 0, stack: []}; }, token: function(stream, state) { if (stream.eatSpace()) return null; var style = state.tokenize(stream, state); var context = state.stack[state.stack.length-1]; if (stream.current() == "[" || type === "doindent" || type == "[") state.stack.push("rule"); else if (type === "endtag") state.stack[state.stack.length-1] = "endtag"; else if (stream.current() == "]" || type == "]" || (type == ">" && context == "rule")) state.stack.pop(); else if (type == "[") state.stack.push("["); return style; }, indent: function(state, textAfter) { var n = state.stack.length; if( textAfter.charAt(0) === ']' )n--; else if(textAfter.substr(textAfter.length-1, textAfter.length) === ">"){ if(textAfter.substr(0,1) === "<") {} else if( type == "doindent" && textAfter.length > 1 ) {} else if( type == "doindent")n--; else if( type == ">" && textAfter.length > 1) {} else if( type == "tag" && textAfter !== ">") {} else if( type == "tag" && state.stack[state.stack.length-1] == "rule")n--; else if( type == "tag")n++; else if( textAfter === ">" && state.stack[state.stack.length-1] == "rule" && type === ">")n--; else if( textAfter === ">" && state.stack[state.stack.length-1] == "rule") {} else if( textAfter.substr(0,1) !== "<" && textAfter.substr(0,1) === ">" )n=n-1; else if( textAfter === ">") {} else n=n-1; //over rule them all if(type == null || type == "]")n--; } return state.baseIndent + n * indentUnit; }, electricChars: "]>" }; }); CodeMirror.defineMIME("application/xml-dtd", "dtd"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/dylan/dylan.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function forEach(arr, f) { for (var i = 0; i < arr.length; i++) f(arr[i], i) } function some(arr, f) { for (var i = 0; i < arr.length; i++) if (f(arr[i], i)) return true return false } CodeMirror.defineMode("dylan", function(_config) { // Words var words = { // Words that introduce unnamed definitions like "define interface" unnamedDefinition: ["interface"], // Words that introduce simple named definitions like "define library" namedDefinition: ["module", "library", "macro", "C-struct", "C-union", "C-function", "C-callable-wrapper" ], // Words that introduce type definitions like "define class". // These are also parameterized like "define method" and are // appended to otherParameterizedDefinitionWords typeParameterizedDefinition: ["class", "C-subtype", "C-mapped-subtype"], // Words that introduce trickier definitions like "define method". // These require special definitions to be added to startExpressions otherParameterizedDefinition: ["method", "function", "C-variable", "C-address" ], // Words that introduce module constant definitions. // These must also be simple definitions and are // appended to otherSimpleDefinitionWords constantSimpleDefinition: ["constant"], // Words that introduce module variable definitions. // These must also be simple definitions and are // appended to otherSimpleDefinitionWords variableSimpleDefinition: ["variable"], // Other words that introduce simple definitions // (without implicit bodies). otherSimpleDefinition: ["generic", "domain", "C-pointer-type", "table" ], // Words that begin statements with implicit bodies. statement: ["if", "block", "begin", "method", "case", "for", "select", "when", "unless", "until", "while", "iterate", "profiling", "dynamic-bind" ], // Patterns that act as separators in compound statements. // This may include any general pattern that must be indented // specially. separator: ["finally", "exception", "cleanup", "else", "elseif", "afterwards" ], // Keywords that do not require special indentation handling, // but which should be highlighted other: ["above", "below", "by", "from", "handler", "in", "instance", "let", "local", "otherwise", "slot", "subclass", "then", "to", "keyed-by", "virtual" ], // Condition signaling function calls signalingCalls: ["signal", "error", "cerror", "break", "check-type", "abort" ] }; words["otherDefinition"] = words["unnamedDefinition"] .concat(words["namedDefinition"]) .concat(words["otherParameterizedDefinition"]); words["definition"] = words["typeParameterizedDefinition"] .concat(words["otherDefinition"]); words["parameterizedDefinition"] = words["typeParameterizedDefinition"] .concat(words["otherParameterizedDefinition"]); words["simpleDefinition"] = words["constantSimpleDefinition"] .concat(words["variableSimpleDefinition"]) .concat(words["otherSimpleDefinition"]); words["keyword"] = words["statement"] .concat(words["separator"]) .concat(words["other"]); // Patterns var symbolPattern = "[-_a-zA-Z?!*@<>$%]+"; var symbol = new RegExp("^" + symbolPattern); var patterns = { // Symbols with special syntax symbolKeyword: symbolPattern + ":", symbolClass: "<" + symbolPattern + ">", symbolGlobal: "\\*" + symbolPattern + "\\*", symbolConstant: "\\$" + symbolPattern }; var patternStyles = { symbolKeyword: "atom", symbolClass: "tag", symbolGlobal: "variable-2", symbolConstant: "variable-3" }; // Compile all patterns to regular expressions for (var patternName in patterns) if (patterns.hasOwnProperty(patternName)) patterns[patternName] = new RegExp("^" + patterns[patternName]); // Names beginning "with-" and "without-" are commonly // used as statement macro patterns["keyword"] = [/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/]; var styles = {}; styles["keyword"] = "keyword"; styles["definition"] = "def"; styles["simpleDefinition"] = "def"; styles["signalingCalls"] = "builtin"; // protected words lookup table var wordLookup = {}; var styleLookup = {}; forEach([ "keyword", "definition", "simpleDefinition", "signalingCalls" ], function(type) { forEach(words[type], function(word) { wordLookup[word] = type; styleLookup[word] = styles[type]; }); }); function chain(stream, state, f) { state.tokenize = f; return f(stream, state); } function tokenBase(stream, state) { // String var ch = stream.peek(); if (ch == "'" || ch == '"') { stream.next(); return chain(stream, state, tokenString(ch, "string")); } // Comment else if (ch == "/") { stream.next(); if (stream.eat("*")) { return chain(stream, state, tokenComment); } else if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } stream.backUp(1); } // Decimal else if (/[+\-\d\.]/.test(ch)) { if (stream.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i) || stream.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i) || stream.match(/^[+-]?\d+/)) { return "number"; } } // Hash else if (ch == "#") { stream.next(); // Symbol with string syntax ch = stream.peek(); if (ch == '"') { stream.next(); return chain(stream, state, tokenString('"', "string")); } // Binary number else if (ch == "b") { stream.next(); stream.eatWhile(/[01]/); return "number"; } // Hex number else if (ch == "x") { stream.next(); stream.eatWhile(/[\da-f]/i); return "number"; } // Octal number else if (ch == "o") { stream.next(); stream.eatWhile(/[0-7]/); return "number"; } // Token concatenation in macros else if (ch == '#') { stream.next(); return "punctuation"; } // Sequence literals else if ((ch == '[') || (ch == '(')) { stream.next(); return "bracket"; // Hash symbol } else if (stream.match(/f|t|all-keys|include|key|next|rest/i)) { return "atom"; } else { stream.eatWhile(/[-a-zA-Z]/); return "error"; } } else if (ch == "~") { stream.next(); ch = stream.peek(); if (ch == "=") { stream.next(); ch = stream.peek(); if (ch == "=") { stream.next(); return "operator"; } return "operator"; } return "operator"; } else if (ch == ":") { stream.next(); ch = stream.peek(); if (ch == "=") { stream.next(); return "operator"; } else if (ch == ":") { stream.next(); return "punctuation"; } } else if ("[](){}".indexOf(ch) != -1) { stream.next(); return "bracket"; } else if (".,".indexOf(ch) != -1) { stream.next(); return "punctuation"; } else if (stream.match("end")) { return "keyword"; } for (var name in patterns) { if (patterns.hasOwnProperty(name)) { var pattern = patterns[name]; if ((pattern instanceof Array && some(pattern, function(p) { return stream.match(p); })) || stream.match(pattern)) return patternStyles[name]; } } if (/[+\-*\/^=<>&|]/.test(ch)) { stream.next(); return "operator"; } if (stream.match("define")) { return "def"; } else { stream.eatWhile(/[\w\-]/); // Keyword if (wordLookup.hasOwnProperty(stream.current())) { return styleLookup[stream.current()]; } else if (stream.current().match(symbol)) { return "variable"; } else { stream.next(); return "variable-2"; } } } function tokenComment(stream, state) { var maybeEnd = false, maybeNested = false, nestedCount = 0, ch; while ((ch = stream.next())) { if (ch == "/" && maybeEnd) { if (nestedCount > 0) { nestedCount--; } else { state.tokenize = tokenBase; break; } } else if (ch == "*" && maybeNested) { nestedCount++; } maybeEnd = (ch == "*"); maybeNested = (ch == "/"); } return "comment"; } function tokenString(quote, style) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) { end = true; break; } escaped = !escaped && next == "\\"; } if (end || !escaped) { state.tokenize = tokenBase; } return style; }; } // Interface return { startState: function() { return { tokenize: tokenBase, currentIndent: 0 }; }, token: function(stream, state) { if (stream.eatSpace()) return null; var style = state.tokenize(stream, state); return style; }, blockCommentStart: "/*", blockCommentEnd: "*/" }; }); CodeMirror.defineMIME("text/x-dylan", "dylan"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/ebnf/ebnf.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("ebnf", function (config) { var commentType = {slash: 0, parenthesis: 1}; var stateType = {comment: 0, _string: 1, characterClass: 2}; var bracesMode = null; if (config.bracesMode) bracesMode = CodeMirror.getMode(config, config.bracesMode); return { startState: function () { return { stringType: null, commentType: null, braced: 0, lhs: true, localState: null, stack: [], inDefinition: false }; }, token: function (stream, state) { if (!stream) return; //check for state changes if (state.stack.length === 0) { //strings if ((stream.peek() == '"') || (stream.peek() == "'")) { state.stringType = stream.peek(); stream.next(); // Skip quote state.stack.unshift(stateType._string); } else if (stream.match('/*')) { //comments starting with /* state.stack.unshift(stateType.comment); state.commentType = commentType.slash; } else if (stream.match('(*')) { //comments starting with (* state.stack.unshift(stateType.comment); state.commentType = commentType.parenthesis; } } //return state //stack has switch (state.stack[0]) { case stateType._string: while (state.stack[0] === stateType._string && !stream.eol()) { if (stream.peek() === state.stringType) { stream.next(); // Skip quote state.stack.shift(); // Clear flag } else if (stream.peek() === "\\") { stream.next(); stream.next(); } else { stream.match(/^.[^\\\"\']*/); } } return state.lhs ? "property string" : "string"; // Token style case stateType.comment: while (state.stack[0] === stateType.comment && !stream.eol()) { if (state.commentType === commentType.slash && stream.match('*/')) { state.stack.shift(); // Clear flag state.commentType = null; } else if (state.commentType === commentType.parenthesis && stream.match('*)')) { state.stack.shift(); // Clear flag state.commentType = null; } else { stream.match(/^.[^\*]*/); } } return "comment"; case stateType.characterClass: while (state.stack[0] === stateType.characterClass && !stream.eol()) { if (!(stream.match(/^[^\]\\]+/) || stream.match('.'))) { state.stack.shift(); } } return "operator"; } var peek = stream.peek(); if (bracesMode !== null && (state.braced || peek === "{")) { if (state.localState === null) state.localState = CodeMirror.startState(bracesMode); var token = bracesMode.token(stream, state.localState), text = stream.current(); if (!token) { for (var i = 0; i < text.length; i++) { if (text[i] === "{") { if (state.braced === 0) { token = "matchingbracket"; } state.braced++; } else if (text[i] === "}") { state.braced--; if (state.braced === 0) { token = "matchingbracket"; } } } } return token; } //no stack switch (peek) { case "[": stream.next(); state.stack.unshift(stateType.characterClass); return "bracket"; case ":": case "|": case ";": stream.next(); return "operator"; case "%": if (stream.match("%%")) { return "header"; } else if (stream.match(/[%][A-Za-z]+/)) { return "keyword"; } else if (stream.match(/[%][}]/)) { return "matchingbracket"; } break; case "/": if (stream.match(/[\/][A-Za-z]+/)) { return "keyword"; } case "\\": if (stream.match(/[\][a-z]+/)) { return "string-2"; } case ".": if (stream.match(".")) { return "atom"; } case "*": case "-": case "+": case "^": if (stream.match(peek)) { return "atom"; } case "$": if (stream.match("$$")) { return "builtin"; } else if (stream.match(/[$][0-9]+/)) { return "variable-3"; } case "<": if (stream.match(/<<[a-zA-Z_]+>>/)) { return "builtin"; } } if (stream.match('//')) { stream.skipToEnd(); return "comment"; } else if (stream.match('return')) { return "operator"; } else if (stream.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)) { if (stream.match(/(?=[\(.])/)) { return "variable"; } else if (stream.match(/(?=[\s\n]*[:=])/)) { return "def"; } return "variable-2"; } else if (["[", "]", "(", ")"].indexOf(stream.peek()) != -1) { stream.next(); return "bracket"; } else if (!stream.eatSpace()) { stream.next(); } return null; } }; }); CodeMirror.defineMIME("text/x-ebnf", "ebnf"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/ecl/ecl.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("ecl", function(config) { function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } function metaHook(stream, state) { if (!state.startOfLine) return false; stream.skipToEnd(); return "meta"; } var indentUnit = config.indentUnit; var keyword = words("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"); var variable = words("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"); var variable_2 = words("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"); var variable_3 = words("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"); var builtin = words("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"); var blockKeywords = words("catch class do else finally for if switch try while"); var atoms = words("true false null"); var hooks = {"#": metaHook}; var isOperatorChar = /[+\-*&%=<>!?|\/]/; var curPunc; function tokenBase(stream, state) { var ch = stream.next(); if (hooks[ch]) { var result = hooks[ch](stream, state); if (result !== false) return result; } if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (/[\[\]{}\(\),;\:\.]/.test(ch)) { curPunc = ch; return null; } if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } if (ch == "/") { if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } } if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } stream.eatWhile(/[\w\$_]/); var cur = stream.current().toLowerCase(); if (keyword.propertyIsEnumerable(cur)) { if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; return "keyword"; } else if (variable.propertyIsEnumerable(cur)) { if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; return "variable"; } else if (variable_2.propertyIsEnumerable(cur)) { if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; return "variable-2"; } else if (variable_3.propertyIsEnumerable(cur)) { if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; return "variable-3"; } else if (builtin.propertyIsEnumerable(cur)) { if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; return "builtin"; } else { //Data types are of from KEYWORD## var i = cur.length - 1; while(i >= 0 && (!isNaN(cur[i]) || cur[i] == '_')) --i; if (i > 0) { var cur2 = cur.substr(0, i + 1); if (variable_3.propertyIsEnumerable(cur2)) { if (blockKeywords.propertyIsEnumerable(cur2)) curPunc = "newstatement"; return "variable-3"; } } } if (atoms.propertyIsEnumerable(cur)) return "atom"; return null; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) {end = true; break;} escaped = !escaped && next == "\\"; } if (end || !escaped) state.tokenize = tokenBase; return "string"; }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return "comment"; } function Context(indented, column, type, align, prev) { this.indented = indented; this.column = column; this.type = type; this.align = align; this.prev = prev; } function pushContext(state, col, type) { return state.context = new Context(state.indented, col, type, null, state.context); } function popContext(state) { var t = state.context.type; if (t == ")" || t == "]" || t == "}") state.indented = state.context.indented; return state.context = state.context.prev; } // Interface return { startState: function(basecolumn) { return { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), indented: 0, startOfLine: true }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; } if (stream.eatSpace()) return null; curPunc = null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment" || style == "meta") return style; if (ctx.align == null) ctx.align = true; if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state); else if (curPunc == "{") pushContext(state, stream.column(), "}"); else if (curPunc == "[") pushContext(state, stream.column(), "]"); else if (curPunc == "(") pushContext(state, stream.column(), ")"); else if (curPunc == "}") { while (ctx.type == "statement") ctx = popContext(state); if (ctx.type == "}") ctx = popContext(state); while (ctx.type == "statement") ctx = popContext(state); } else if (curPunc == ctx.type) popContext(state); else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement")) pushContext(state, stream.column(), "statement"); state.startOfLine = false; return style; }, indent: function(state, textAfter) { if (state.tokenize != tokenBase && state.tokenize != null) return 0; var ctx = state.context, firstChar = textAfter && textAfter.charAt(0); if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev; var closing = firstChar == ctx.type; if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : indentUnit); else if (ctx.align) return ctx.column + (closing ? 0 : 1); else return ctx.indented + (closing ? 0 : indentUnit); }, electricChars: "{}" }; }); CodeMirror.defineMIME("text/x-ecl", "ecl"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/eiffel/eiffel.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("eiffel", function() { function wordObj(words) { var o = {}; for (var i = 0, e = words.length; i < e; ++i) o[words[i]] = true; return o; } var keywords = wordObj([ 'note', 'across', 'when', 'variant', 'until', 'unique', 'undefine', 'then', 'strip', 'select', 'retry', 'rescue', 'require', 'rename', 'reference', 'redefine', 'prefix', 'once', 'old', 'obsolete', 'loop', 'local', 'like', 'is', 'inspect', 'infix', 'include', 'if', 'frozen', 'from', 'external', 'export', 'ensure', 'end', 'elseif', 'else', 'do', 'creation', 'create', 'check', 'alias', 'agent', 'separate', 'invariant', 'inherit', 'indexing', 'feature', 'expanded', 'deferred', 'class', 'Void', 'True', 'Result', 'Precursor', 'False', 'Current', 'create', 'attached', 'detachable', 'as', 'and', 'implies', 'not', 'or' ]); var operators = wordObj([":=", "and then","and", "or","<<",">>"]); function chain(newtok, stream, state) { state.tokenize.push(newtok); return newtok(stream, state); } function tokenBase(stream, state) { if (stream.eatSpace()) return null; var ch = stream.next(); if (ch == '"'||ch == "'") { return chain(readQuoted(ch, "string"), stream, state); } else if (ch == "-"&&stream.eat("-")) { stream.skipToEnd(); return "comment"; } else if (ch == ":"&&stream.eat("=")) { return "operator"; } else if (/[0-9]/.test(ch)) { stream.eatWhile(/[xXbBCc0-9\.]/); stream.eat(/[\?\!]/); return "ident"; } else if (/[a-zA-Z_0-9]/.test(ch)) { stream.eatWhile(/[a-zA-Z_0-9]/); stream.eat(/[\?\!]/); return "ident"; } else if (/[=+\-\/*^%<>~]/.test(ch)) { stream.eatWhile(/[=+\-\/*^%<>~]/); return "operator"; } else { return null; } } function readQuoted(quote, style, unescaped) { return function(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == quote && (unescaped || !escaped)) { state.tokenize.pop(); break; } escaped = !escaped && ch == "%"; } return style; }; } return { startState: function() { return {tokenize: [tokenBase]}; }, token: function(stream, state) { var style = state.tokenize[state.tokenize.length-1](stream, state); if (style == "ident") { var word = stream.current(); style = keywords.propertyIsEnumerable(stream.current()) ? "keyword" : operators.propertyIsEnumerable(stream.current()) ? "operator" : /^[A-Z][A-Z_0-9]*$/g.test(word) ? "tag" : /^0[bB][0-1]+$/g.test(word) ? "number" : /^0[cC][0-7]+$/g.test(word) ? "number" : /^0[xX][a-fA-F0-9]+$/g.test(word) ? "number" : /^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(word) ? "number" : /^[0-9]+$/g.test(word) ? "number" : "variable"; } return style; }, lineComment: "--" }; }); CodeMirror.defineMIME("text/x-eiffel", "eiffel"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/elm/elm.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("elm", function() { function switchState(source, setState, f) { setState(f); return f(source, setState); } var lowerRE = /[a-z]/; var upperRE = /[A-Z]/; var innerRE = /[a-zA-Z0-9_]/; var digitRE = /[0-9]/; var hexRE = /[0-9A-Fa-f]/; var symbolRE = /[-&*+.\\/<>=?^|:]/; var specialRE = /[(),[\]{}]/; var spacesRE = /[ \v\f]/; // newlines are handled in tokenizer function normal() { return function(source, setState) { if (source.eatWhile(spacesRE)) { return null; } var char = source.next(); if (specialRE.test(char)) { return (char === '{' && source.eat('-')) ? switchState(source, setState, chompMultiComment(1)) : (char === '[' && source.match('glsl|')) ? switchState(source, setState, chompGlsl) : 'builtin'; } if (char === '\'') { return switchState(source, setState, chompChar); } if (char === '"') { return source.eat('"') ? source.eat('"') ? switchState(source, setState, chompMultiString) : 'string' : switchState(source, setState, chompSingleString); } if (upperRE.test(char)) { source.eatWhile(innerRE); return 'variable-2'; } if (lowerRE.test(char)) { var isDef = source.pos === 1; source.eatWhile(innerRE); return isDef ? "def" : "variable"; } if (digitRE.test(char)) { if (char === '0') { if (source.eat(/[xX]/)) { source.eatWhile(hexRE); // should require at least 1 return "number"; } } else { source.eatWhile(digitRE); } if (source.eat('.')) { source.eatWhile(digitRE); // should require at least 1 } if (source.eat(/[eE]/)) { source.eat(/[-+]/); source.eatWhile(digitRE); // should require at least 1 } return "number"; } if (symbolRE.test(char)) { if (char === '-' && source.eat('-')) { source.skipToEnd(); return "comment"; } source.eatWhile(symbolRE); return "keyword"; } if (char === '_') { return "keyword"; } return "error"; } } function chompMultiComment(nest) { if (nest == 0) { return normal(); } return function(source, setState) { while (!source.eol()) { var char = source.next(); if (char == '{' && source.eat('-')) { ++nest; } else if (char == '-' && source.eat('}')) { --nest; if (nest === 0) { setState(normal()); return 'comment'; } } } setState(chompMultiComment(nest)); return 'comment'; } } function chompMultiString(source, setState) { while (!source.eol()) { var char = source.next(); if (char === '"' && source.eat('"') && source.eat('"')) { setState(normal()); return 'string'; } } return 'string'; } function chompSingleString(source, setState) { while (source.skipTo('\\"')) { source.next(); source.next(); } if (source.skipTo('"')) { source.next(); setState(normal()); return 'string'; } source.skipToEnd(); setState(normal()); return 'error'; } function chompChar(source, setState) { while (source.skipTo("\\'")) { source.next(); source.next(); } if (source.skipTo("'")) { source.next(); setState(normal()); return 'string'; } source.skipToEnd(); setState(normal()); return 'error'; } function chompGlsl(source, setState) { while (!source.eol()) { var char = source.next(); if (char === '|' && source.eat(']')) { setState(normal()); return 'string'; } } return 'string'; } var wellKnownWords = { case: 1, of: 1, as: 1, if: 1, then: 1, else: 1, let: 1, in: 1, type: 1, alias: 1, module: 1, where: 1, import: 1, exposing: 1, port: 1 }; return { startState: function () { return { f: normal() }; }, copyState: function (s) { return { f: s.f }; }, lineComment: '--', token: function(stream, state) { var type = state.f(stream, function(s) { state.f = s; }); var word = stream.current(); return (wellKnownWords.hasOwnProperty(word)) ? 'keyword' : type; } }; }); CodeMirror.defineMIME("text/x-elm", "elm"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/erlang/erlang.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /*jshint unused:true, eqnull:true, curly:true, bitwise:true */ /*jshint undef:true, latedef:true, trailing:true */ /*global CodeMirror:true */ // erlang mode. // tokenizer -> token types -> CodeMirror styles // tokenizer maintains a parse stack // indenter uses the parse stack // TODO indenter: // bit syntax // old guard/bif/conversion clashes (e.g. "float/1") // type/spec/opaque (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMIME("text/x-erlang", "erlang"); CodeMirror.defineMode("erlang", function(cmCfg) { "use strict"; ///////////////////////////////////////////////////////////////////////////// // constants var typeWords = [ "-type", "-spec", "-export_type", "-opaque"]; var keywordWords = [ "after","begin","catch","case","cond","end","fun","if", "let","of","query","receive","try","when"]; var separatorRE = /[\->,;]/; var separatorWords = [ "->",";",","]; var operatorAtomWords = [ "and","andalso","band","bnot","bor","bsl","bsr","bxor", "div","not","or","orelse","rem","xor"]; var operatorSymbolRE = /[\+\-\*\/<>=\|:!]/; var operatorSymbolWords = [ "=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"]; var openParenRE = /[<\(\[\{]/; var openParenWords = [ "<<","(","[","{"]; var closeParenRE = /[>\)\]\}]/; var closeParenWords = [ "}","]",")",">>"]; var guardWords = [ "is_atom","is_binary","is_bitstring","is_boolean","is_float", "is_function","is_integer","is_list","is_number","is_pid", "is_port","is_record","is_reference","is_tuple", "atom","binary","bitstring","boolean","function","integer","list", "number","pid","port","record","reference","tuple"]; var bifWords = [ "abs","adler32","adler32_combine","alive","apply","atom_to_binary", "atom_to_list","binary_to_atom","binary_to_existing_atom", "binary_to_list","binary_to_term","bit_size","bitstring_to_list", "byte_size","check_process_code","contact_binary","crc32", "crc32_combine","date","decode_packet","delete_module", "disconnect_node","element","erase","exit","float","float_to_list", "garbage_collect","get","get_keys","group_leader","halt","hd", "integer_to_list","internal_bif","iolist_size","iolist_to_binary", "is_alive","is_atom","is_binary","is_bitstring","is_boolean", "is_float","is_function","is_integer","is_list","is_number","is_pid", "is_port","is_process_alive","is_record","is_reference","is_tuple", "length","link","list_to_atom","list_to_binary","list_to_bitstring", "list_to_existing_atom","list_to_float","list_to_integer", "list_to_pid","list_to_tuple","load_module","make_ref","module_loaded", "monitor_node","node","node_link","node_unlink","nodes","notalive", "now","open_port","pid_to_list","port_close","port_command", "port_connect","port_control","pre_loaded","process_flag", "process_info","processes","purge_module","put","register", "registered","round","self","setelement","size","spawn","spawn_link", "spawn_monitor","spawn_opt","split_binary","statistics", "term_to_binary","time","throw","tl","trunc","tuple_size", "tuple_to_list","unlink","unregister","whereis"]; // upper case: [A-Z] [Ø-Þ] [À-Ö] // lower case: [a-z] [ß-ö] [ø-ÿ] var anumRE = /[\w@Ø-ÞÀ-Öß-öø-ÿ]/; var escapesRE = /[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/; ///////////////////////////////////////////////////////////////////////////// // tokenizer function tokenizer(stream,state) { // in multi-line string if (state.in_string) { state.in_string = (!doubleQuote(stream)); return rval(state,stream,"string"); } // in multi-line atom if (state.in_atom) { state.in_atom = (!singleQuote(stream)); return rval(state,stream,"atom"); } // whitespace if (stream.eatSpace()) { return rval(state,stream,"whitespace"); } // attributes and type specs if (!peekToken(state) && stream.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/)) { if (is_member(stream.current(),typeWords)) { return rval(state,stream,"type"); }else{ return rval(state,stream,"attribute"); } } var ch = stream.next(); // comment if (ch == '%') { stream.skipToEnd(); return rval(state,stream,"comment"); } // colon if (ch == ":") { return rval(state,stream,"colon"); } // macro if (ch == '?') { stream.eatSpace(); stream.eatWhile(anumRE); return rval(state,stream,"macro"); } // record if (ch == "#") { stream.eatSpace(); stream.eatWhile(anumRE); return rval(state,stream,"record"); } // dollar escape if (ch == "$") { if (stream.next() == "\\" && !stream.match(escapesRE)) { return rval(state,stream,"error"); } return rval(state,stream,"number"); } // dot if (ch == ".") { return rval(state,stream,"dot"); } // quoted atom if (ch == '\'') { if (!(state.in_atom = (!singleQuote(stream)))) { if (stream.match(/\s*\/\s*[0-9]/,false)) { stream.match(/\s*\/\s*[0-9]/,true); return rval(state,stream,"fun"); // 'f'/0 style fun } if (stream.match(/\s*\(/,false) || stream.match(/\s*:/,false)) { return rval(state,stream,"function"); } } return rval(state,stream,"atom"); } // string if (ch == '"') { state.in_string = (!doubleQuote(stream)); return rval(state,stream,"string"); } // variable if (/[A-Z_Ø-ÞÀ-Ö]/.test(ch)) { stream.eatWhile(anumRE); return rval(state,stream,"variable"); } // atom/keyword/BIF/function if (/[a-z_ß-öø-ÿ]/.test(ch)) { stream.eatWhile(anumRE); if (stream.match(/\s*\/\s*[0-9]/,false)) { stream.match(/\s*\/\s*[0-9]/,true); return rval(state,stream,"fun"); // f/0 style fun } var w = stream.current(); if (is_member(w,keywordWords)) { return rval(state,stream,"keyword"); }else if (is_member(w,operatorAtomWords)) { return rval(state,stream,"operator"); }else if (stream.match(/\s*\(/,false)) { // 'put' and 'erlang:put' are bifs, 'foo:put' is not if (is_member(w,bifWords) && ((peekToken(state).token != ":") || (peekToken(state,2).token == "erlang"))) { return rval(state,stream,"builtin"); }else if (is_member(w,guardWords)) { return rval(state,stream,"guard"); }else{ return rval(state,stream,"function"); } }else if (lookahead(stream) == ":") { if (w == "erlang") { return rval(state,stream,"builtin"); } else { return rval(state,stream,"function"); } }else if (is_member(w,["true","false"])) { return rval(state,stream,"boolean"); }else{ return rval(state,stream,"atom"); } } // number var digitRE = /[0-9]/; var radixRE = /[0-9a-zA-Z]/; // 36#zZ style int if (digitRE.test(ch)) { stream.eatWhile(digitRE); if (stream.eat('#')) { // 36#aZ style integer if (!stream.eatWhile(radixRE)) { stream.backUp(1); //"36#" - syntax error } } else if (stream.eat('.')) { // float if (!stream.eatWhile(digitRE)) { stream.backUp(1); // "3." - probably end of function } else { if (stream.eat(/[eE]/)) { // float with exponent if (stream.eat(/[-+]/)) { if (!stream.eatWhile(digitRE)) { stream.backUp(2); // "2e-" - syntax error } } else { if (!stream.eatWhile(digitRE)) { stream.backUp(1); // "2e" - syntax error } } } } } return rval(state,stream,"number"); // normal integer } // open parens if (nongreedy(stream,openParenRE,openParenWords)) { return rval(state,stream,"open_paren"); } // close parens if (nongreedy(stream,closeParenRE,closeParenWords)) { return rval(state,stream,"close_paren"); } // separators if (greedy(stream,separatorRE,separatorWords)) { return rval(state,stream,"separator"); } // operators if (greedy(stream,operatorSymbolRE,operatorSymbolWords)) { return rval(state,stream,"operator"); } return rval(state,stream,null); } ///////////////////////////////////////////////////////////////////////////// // utilities function nongreedy(stream,re,words) { if (stream.current().length == 1 && re.test(stream.current())) { stream.backUp(1); while (re.test(stream.peek())) { stream.next(); if (is_member(stream.current(),words)) { return true; } } stream.backUp(stream.current().length-1); } return false; } function greedy(stream,re,words) { if (stream.current().length == 1 && re.test(stream.current())) { while (re.test(stream.peek())) { stream.next(); } while (0 < stream.current().length) { if (is_member(stream.current(),words)) { return true; }else{ stream.backUp(1); } } stream.next(); } return false; } function doubleQuote(stream) { return quote(stream, '"', '\\'); } function singleQuote(stream) { return quote(stream,'\'','\\'); } function quote(stream,quoteChar,escapeChar) { while (!stream.eol()) { var ch = stream.next(); if (ch == quoteChar) { return true; }else if (ch == escapeChar) { stream.next(); } } return false; } function lookahead(stream) { var m = stream.match(/^\s*([^\s%])/, false) return m ? m[1] : ""; } function is_member(element,list) { return (-1 < list.indexOf(element)); } function rval(state,stream,type) { // parse stack pushToken(state,realToken(type,stream)); // map erlang token type to CodeMirror style class // erlang -> CodeMirror tag switch (type) { case "atom": return "atom"; case "attribute": return "attribute"; case "boolean": return "atom"; case "builtin": return "builtin"; case "close_paren": return null; case "colon": return null; case "comment": return "comment"; case "dot": return null; case "error": return "error"; case "fun": return "meta"; case "function": return "tag"; case "guard": return "property"; case "keyword": return "keyword"; case "macro": return "variable-2"; case "number": return "number"; case "open_paren": return null; case "operator": return "operator"; case "record": return "bracket"; case "separator": return null; case "string": return "string"; case "type": return "def"; case "variable": return "variable"; default: return null; } } function aToken(tok,col,ind,typ) { return {token: tok, column: col, indent: ind, type: typ}; } function realToken(type,stream) { return aToken(stream.current(), stream.column(), stream.indentation(), type); } function fakeToken(type) { return aToken(type,0,0,type); } function peekToken(state,depth) { var len = state.tokenStack.length; var dep = (depth ? depth : 1); if (len < dep) { return false; }else{ return state.tokenStack[len-dep]; } } function pushToken(state,token) { if (!(token.type == "comment" || token.type == "whitespace")) { state.tokenStack = maybe_drop_pre(state.tokenStack,token); state.tokenStack = maybe_drop_post(state.tokenStack); } } function maybe_drop_pre(s,token) { var last = s.length-1; if (0 < last && s[last].type === "record" && token.type === "dot") { s.pop(); }else if (0 < last && s[last].type === "group") { s.pop(); s.push(token); }else{ s.push(token); } return s; } function maybe_drop_post(s) { if (!s.length) return s var last = s.length-1; if (s[last].type === "dot") { return []; } if (last > 1 && s[last].type === "fun" && s[last-1].token === "fun") { return s.slice(0,last-1); } switch (s[last].token) { case "}": return d(s,{g:["{"]}); case "]": return d(s,{i:["["]}); case ")": return d(s,{i:["("]}); case ">>": return d(s,{i:["<<"]}); case "end": return d(s,{i:["begin","case","fun","if","receive","try"]}); case ",": return d(s,{e:["begin","try","when","->", ",","(","[","{","<<"]}); case "->": return d(s,{r:["when"], m:["try","if","case","receive"]}); case ";": return d(s,{E:["case","fun","if","receive","try","when"]}); case "catch":return d(s,{e:["try"]}); case "of": return d(s,{e:["case"]}); case "after":return d(s,{e:["receive","try"]}); default: return s; } } function d(stack,tt) { // stack is a stack of Token objects. // tt is an object; {type:tokens} // type is a char, tokens is a list of token strings. // The function returns (possibly truncated) stack. // It will descend the stack, looking for a Token such that Token.token // is a member of tokens. If it does not find that, it will normally (but // see "E" below) return stack. If it does find a match, it will remove // all the Tokens between the top and the matched Token. // If type is "m", that is all it does. // If type is "i", it will also remove the matched Token and the top Token. // If type is "g", like "i", but add a fake "group" token at the top. // If type is "r", it will remove the matched Token, but not the top Token. // If type is "e", it will keep the matched Token but not the top Token. // If type is "E", it behaves as for type "e", except if there is no match, // in which case it will return an empty stack. for (var type in tt) { var len = stack.length-1; var tokens = tt[type]; for (var i = len-1; -1 < i ; i--) { if (is_member(stack[i].token,tokens)) { var ss = stack.slice(0,i); switch (type) { case "m": return ss.concat(stack[i]).concat(stack[len]); case "r": return ss.concat(stack[len]); case "i": return ss; case "g": return ss.concat(fakeToken("group")); case "E": return ss.concat(stack[i]); case "e": return ss.concat(stack[i]); } } } } return (type == "E" ? [] : stack); } ///////////////////////////////////////////////////////////////////////////// // indenter function indenter(state,textAfter) { var t; var unit = cmCfg.indentUnit; var wordAfter = wordafter(textAfter); var currT = peekToken(state,1); var prevT = peekToken(state,2); if (state.in_string || state.in_atom) { return CodeMirror.Pass; }else if (!prevT) { return 0; }else if (currT.token == "when") { return currT.column+unit; }else if (wordAfter === "when" && prevT.type === "function") { return prevT.indent+unit; }else if (wordAfter === "(" && currT.token === "fun") { return currT.column+3; }else if (wordAfter === "catch" && (t = getToken(state,["try"]))) { return t.column; }else if (is_member(wordAfter,["end","after","of"])) { t = getToken(state,["begin","case","fun","if","receive","try"]); return t ? t.column : CodeMirror.Pass; }else if (is_member(wordAfter,closeParenWords)) { t = getToken(state,openParenWords); return t ? t.column : CodeMirror.Pass; }else if (is_member(currT.token,[",","|","||"]) || is_member(wordAfter,[",","|","||"])) { t = postcommaToken(state); return t ? t.column+t.token.length : unit; }else if (currT.token == "->") { if (is_member(prevT.token, ["receive","case","if","try"])) { return prevT.column+unit+unit; }else{ return prevT.column+unit; } }else if (is_member(currT.token,openParenWords)) { return currT.column+currT.token.length; }else{ t = defaultToken(state); return truthy(t) ? t.column+unit : 0; } } function wordafter(str) { var m = str.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/); return truthy(m) && (m.index === 0) ? m[0] : ""; } function postcommaToken(state) { var objs = state.tokenStack.slice(0,-1); var i = getTokenIndex(objs,"type",["open_paren"]); return truthy(objs[i]) ? objs[i] : false; } function defaultToken(state) { var objs = state.tokenStack; var stop = getTokenIndex(objs,"type",["open_paren","separator","keyword"]); var oper = getTokenIndex(objs,"type",["operator"]); if (truthy(stop) && truthy(oper) && stop < oper) { return objs[stop+1]; } else if (truthy(stop)) { return objs[stop]; } else { return false; } } function getToken(state,tokens) { var objs = state.tokenStack; var i = getTokenIndex(objs,"token",tokens); return truthy(objs[i]) ? objs[i] : false; } function getTokenIndex(objs,propname,propvals) { for (var i = objs.length-1; -1 < i ; i--) { if (is_member(objs[i][propname],propvals)) { return i; } } return false; } function truthy(x) { return (x !== false) && (x != null); } ///////////////////////////////////////////////////////////////////////////// // this object defines the mode return { startState: function() { return {tokenStack: [], in_string: false, in_atom: false}; }, token: function(stream, state) { return tokenizer(stream, state); }, indent: function(state, textAfter) { return indenter(state,textAfter); }, lineComment: "%" }; }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/factor/factor.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Factor syntax highlight - simple mode // // by Dimage Sapelkin (https://github.com/kerabromsmu) (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../../addon/mode/simple")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../../addon/mode/simple"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineSimpleMode("factor", { // The start state contains the rules that are initially used start: [ // comments {regex: /#?!.*/, token: "comment"}, // strings """, multiline --> state {regex: /"""/, token: "string", next: "string3"}, {regex: /(STRING:)(\s)/, token: ["keyword", null], next: "string2"}, {regex: /\S*?"/, token: "string", next: "string"}, // numbers: dec, hex, unicode, bin, fractional, complex {regex: /(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/, token: "number"}, //{regex: /[+-]?/} //fractional // definition: defining word, defined word, etc {regex: /((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/, token: ["keyword", null, "def", null, "bracket"], next: "stack"}, // method definition: defining word, type, defined word, etc {regex: /(M\:)(\s+)(\S+)(\s+)(\S+)/, token: ["keyword", null, "def", null, "tag"]}, // vocabulary using --> state {regex: /USING\:/, token: "keyword", next: "vocabulary"}, // vocabulary definition/use {regex: /(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/, token: ["keyword", null, "tag"]}, // definition: a defining word, defined word {regex: /(\S+\:)(\s+)(\S+)(?=\s|$)/, token: ["keyword", null, "def"]}, // "keywords", incl. ; t f . [ ] { } defining words {regex: /(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>| and the like {regex: /\S+[\)>\.\*\?]+(?=\s|$)/, token: "builtin"}, {regex: /[\)><]+\S+(?=\s|$)/, token: "builtin"}, // operators {regex: /(?:[\+\-\=\/\*<>])(?=\s|$)/, token: "keyword"}, // any id (?) {regex: /\S+/, token: "variable"}, {regex: /\s+|./, token: null} ], vocabulary: [ {regex: /;/, token: "keyword", next: "start"}, {regex: /\S+/, token: "tag"}, {regex: /\s+|./, token: null} ], string: [ {regex: /(?:[^\\]|\\.)*?"/, token: "string", next: "start"}, {regex: /.*/, token: "string"} ], string2: [ {regex: /^;/, token: "keyword", next: "start"}, {regex: /.*/, token: "string"} ], string3: [ {regex: /(?:[^\\]|\\.)*?"""/, token: "string", next: "start"}, {regex: /.*/, token: "string"} ], stack: [ {regex: /\)/, token: "bracket", next: "start"}, {regex: /--/, token: "bracket"}, {regex: /\S+/, token: "meta"}, {regex: /\s+|./, token: null} ], // The meta property contains global information about the mode. It // can contain properties like lineComment, which are supported by // all modes, and also directives like dontIndentStates, which are // specific to simple modes. meta: { dontIndentStates: ["start", "vocabulary", "string", "string3", "stack"], lineComment: "!" } }); CodeMirror.defineMIME("text/x-factor", "factor"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/fcl/fcl.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("fcl", function(config) { var indentUnit = config.indentUnit; var keywords = { "term": true, "method": true, "accu": true, "rule": true, "then": true, "is": true, "and": true, "or": true, "if": true, "default": true }; var start_blocks = { "var_input": true, "var_output": true, "fuzzify": true, "defuzzify": true, "function_block": true, "ruleblock": true }; var end_blocks = { "end_ruleblock": true, "end_defuzzify": true, "end_function_block": true, "end_fuzzify": true, "end_var": true }; var atoms = { "true": true, "false": true, "nan": true, "real": true, "min": true, "max": true, "cog": true, "cogs": true }; var isOperatorChar = /[+\-*&^%:=<>!|\/]/; function tokenBase(stream, state) { var ch = stream.next(); if (/[\d\.]/.test(ch)) { if (ch == ".") { stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/); } else if (ch == "0") { stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/); } else { stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/); } return "number"; } if (ch == "/" || ch == "(") { if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } } if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } stream.eatWhile(/[\w\$_\xa1-\uffff]/); var cur = stream.current().toLowerCase(); if (keywords.propertyIsEnumerable(cur) || start_blocks.propertyIsEnumerable(cur) || end_blocks.propertyIsEnumerable(cur)) { return "keyword"; } if (atoms.propertyIsEnumerable(cur)) return "atom"; return "variable"; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if ((ch == "/" || ch == ")") && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return "comment"; } function Context(indented, column, type, align, prev) { this.indented = indented; this.column = column; this.type = type; this.align = align; this.prev = prev; } function pushContext(state, col, type) { return state.context = new Context(state.indented, col, type, null, state.context); } function popContext(state) { if (!state.context.prev) return; var t = state.context.type; if (t == "end_block") state.indented = state.context.indented; return state.context = state.context.prev; } // Interface return { startState: function(basecolumn) { return { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), indented: 0, startOfLine: true }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; } if (stream.eatSpace()) return null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment") return style; if (ctx.align == null) ctx.align = true; var cur = stream.current().toLowerCase(); if (start_blocks.propertyIsEnumerable(cur)) pushContext(state, stream.column(), "end_block"); else if (end_blocks.propertyIsEnumerable(cur)) popContext(state); state.startOfLine = false; return style; }, indent: function(state, textAfter) { if (state.tokenize != tokenBase && state.tokenize != null) return 0; var ctx = state.context; var closing = end_blocks.propertyIsEnumerable(textAfter); if (ctx.align) return ctx.column + (closing ? 0 : 1); else return ctx.indented + (closing ? 0 : indentUnit); }, electricChars: "ryk", fold: "brace", blockCommentStart: "(*", blockCommentEnd: "*)", lineComment: "//" }; }); CodeMirror.defineMIME("text/x-fcl", "fcl"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/forth/forth.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Author: Aliaksei Chapyzhenka (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function toWordList(words) { var ret = []; words.split(' ').forEach(function(e){ ret.push({name: e}); }); return ret; } var coreWordList = toWordList( 'INVERT AND OR XOR\ 2* 2/ LSHIFT RSHIFT\ 0= = 0< < > U< MIN MAX\ 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP\ >R R> R@\ + - 1+ 1- ABS NEGATE\ S>D * M* UM*\ FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD\ HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2!\ ALIGN ALIGNED +! ALLOT\ CHAR [CHAR] [ ] BL\ FIND EXECUTE IMMEDIATE COUNT LITERAL STATE\ ; DOES> >BODY\ EVALUATE\ SOURCE >IN\ <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL\ FILL MOVE\ . CR EMIT SPACE SPACES TYPE U. .R U.R\ ACCEPT\ TRUE FALSE\ <> U> 0<> 0>\ NIP TUCK ROLL PICK\ 2>R 2R@ 2R>\ WITHIN UNUSED MARKER\ I J\ TO\ COMPILE, [COMPILE]\ SAVE-INPUT RESTORE-INPUT\ PAD ERASE\ 2LITERAL DNEGATE\ D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS\ M+ M*/ D. D.R 2ROT DU<\ CATCH THROW\ FREE RESIZE ALLOCATE\ CS-PICK CS-ROLL\ GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER\ PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER\ -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL'); var immediateWordList = toWordList('IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE'); CodeMirror.defineMode('forth', function() { function searchWordList (wordList, word) { var i; for (i = wordList.length - 1; i >= 0; i--) { if (wordList[i].name === word.toUpperCase()) { return wordList[i]; } } return undefined; } return { startState: function() { return { state: '', base: 10, coreWordList: coreWordList, immediateWordList: immediateWordList, wordList: [] }; }, token: function (stream, stt) { var mat; if (stream.eatSpace()) { return null; } if (stt.state === '') { // interpretation if (stream.match(/^(\]|:NONAME)(\s|$)/i)) { stt.state = ' compilation'; return 'builtin compilation'; } mat = stream.match(/^(\:)\s+(\S+)(\s|$)+/); if (mat) { stt.wordList.push({name: mat[2].toUpperCase()}); stt.state = ' compilation'; return 'def' + stt.state; } mat = stream.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i); if (mat) { stt.wordList.push({name: mat[2].toUpperCase()}); return 'def' + stt.state; } mat = stream.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/); if (mat) { return 'builtin' + stt.state; } } else { // compilation // ; [ if (stream.match(/^(\;|\[)(\s)/)) { stt.state = ''; stream.backUp(1); return 'builtin compilation'; } if (stream.match(/^(\;|\[)($)/)) { stt.state = ''; return 'builtin compilation'; } if (stream.match(/^(POSTPONE)\s+\S+(\s|$)+/)) { return 'builtin'; } } // dynamic wordlist mat = stream.match(/^(\S+)(\s+|$)/); if (mat) { if (searchWordList(stt.wordList, mat[1]) !== undefined) { return 'variable' + stt.state; } // comments if (mat[1] === '\\') { stream.skipToEnd(); return 'comment' + stt.state; } // core words if (searchWordList(stt.coreWordList, mat[1]) !== undefined) { return 'builtin' + stt.state; } if (searchWordList(stt.immediateWordList, mat[1]) !== undefined) { return 'keyword' + stt.state; } if (mat[1] === '(') { stream.eatWhile(function (s) { return s !== ')'; }); stream.eat(')'); return 'comment' + stt.state; } // // strings if (mat[1] === '.(') { stream.eatWhile(function (s) { return s !== ')'; }); stream.eat(')'); return 'string' + stt.state; } if (mat[1] === 'S"' || mat[1] === '."' || mat[1] === 'C"') { stream.eatWhile(function (s) { return s !== '"'; }); stream.eat('"'); return 'string' + stt.state; } // numbers if (mat[1] - 0xfffffffff) { return 'number' + stt.state; } // if (mat[1].match(/^[-+]?[0-9]+\.[0-9]*/)) { // return 'number' + stt.state; // } return 'atom' + stt.state; } } }; }); CodeMirror.defineMIME("text/x-forth", "forth"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/fortran/fortran.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("fortran", function() { function words(array) { var keys = {}; for (var i = 0; i < array.length; ++i) { keys[array[i]] = true; } return keys; } var keywords = words([ "abstract", "accept", "allocatable", "allocate", "array", "assign", "asynchronous", "backspace", "bind", "block", "byte", "call", "case", "class", "close", "common", "contains", "continue", "cycle", "data", "deallocate", "decode", "deferred", "dimension", "do", "elemental", "else", "encode", "end", "endif", "entry", "enumerator", "equivalence", "exit", "external", "extrinsic", "final", "forall", "format", "function", "generic", "go", "goto", "if", "implicit", "import", "include", "inquire", "intent", "interface", "intrinsic", "module", "namelist", "non_intrinsic", "non_overridable", "none", "nopass", "nullify", "open", "optional", "options", "parameter", "pass", "pause", "pointer", "print", "private", "program", "protected", "public", "pure", "read", "recursive", "result", "return", "rewind", "save", "select", "sequence", "stop", "subroutine", "target", "then", "to", "type", "use", "value", "volatile", "where", "while", "write"]); var builtins = words(["abort", "abs", "access", "achar", "acos", "adjustl", "adjustr", "aimag", "aint", "alarm", "all", "allocated", "alog", "amax", "amin", "amod", "and", "anint", "any", "asin", "associated", "atan", "besj", "besjn", "besy", "besyn", "bit_size", "btest", "cabs", "ccos", "ceiling", "cexp", "char", "chdir", "chmod", "clog", "cmplx", "command_argument_count", "complex", "conjg", "cos", "cosh", "count", "cpu_time", "cshift", "csin", "csqrt", "ctime", "c_funloc", "c_loc", "c_associated", "c_null_ptr", "c_null_funptr", "c_f_pointer", "c_null_char", "c_alert", "c_backspace", "c_form_feed", "c_new_line", "c_carriage_return", "c_horizontal_tab", "c_vertical_tab", "dabs", "dacos", "dasin", "datan", "date_and_time", "dbesj", "dbesj", "dbesjn", "dbesy", "dbesy", "dbesyn", "dble", "dcos", "dcosh", "ddim", "derf", "derfc", "dexp", "digits", "dim", "dint", "dlog", "dlog", "dmax", "dmin", "dmod", "dnint", "dot_product", "dprod", "dsign", "dsinh", "dsin", "dsqrt", "dtanh", "dtan", "dtime", "eoshift", "epsilon", "erf", "erfc", "etime", "exit", "exp", "exponent", "extends_type_of", "fdate", "fget", "fgetc", "float", "floor", "flush", "fnum", "fputc", "fput", "fraction", "fseek", "fstat", "ftell", "gerror", "getarg", "get_command", "get_command_argument", "get_environment_variable", "getcwd", "getenv", "getgid", "getlog", "getpid", "getuid", "gmtime", "hostnm", "huge", "iabs", "iachar", "iand", "iargc", "ibclr", "ibits", "ibset", "ichar", "idate", "idim", "idint", "idnint", "ieor", "ierrno", "ifix", "imag", "imagpart", "index", "int", "ior", "irand", "isatty", "ishft", "ishftc", "isign", "iso_c_binding", "is_iostat_end", "is_iostat_eor", "itime", "kill", "kind", "lbound", "len", "len_trim", "lge", "lgt", "link", "lle", "llt", "lnblnk", "loc", "log", "logical", "long", "lshift", "lstat", "ltime", "matmul", "max", "maxexponent", "maxloc", "maxval", "mclock", "merge", "move_alloc", "min", "minexponent", "minloc", "minval", "mod", "modulo", "mvbits", "nearest", "new_line", "nint", "not", "or", "pack", "perror", "precision", "present", "product", "radix", "rand", "random_number", "random_seed", "range", "real", "realpart", "rename", "repeat", "reshape", "rrspacing", "rshift", "same_type_as", "scale", "scan", "second", "selected_int_kind", "selected_real_kind", "set_exponent", "shape", "short", "sign", "signal", "sinh", "sin", "sleep", "sngl", "spacing", "spread", "sqrt", "srand", "stat", "sum", "symlnk", "system", "system_clock", "tan", "tanh", "time", "tiny", "transfer", "transpose", "trim", "ttynam", "ubound", "umask", "unlink", "unpack", "verify", "xor", "zabs", "zcos", "zexp", "zlog", "zsin", "zsqrt"]); var dataTypes = words(["c_bool", "c_char", "c_double", "c_double_complex", "c_float", "c_float_complex", "c_funptr", "c_int", "c_int16_t", "c_int32_t", "c_int64_t", "c_int8_t", "c_int_fast16_t", "c_int_fast32_t", "c_int_fast64_t", "c_int_fast8_t", "c_int_least16_t", "c_int_least32_t", "c_int_least64_t", "c_int_least8_t", "c_intmax_t", "c_intptr_t", "c_long", "c_long_double", "c_long_double_complex", "c_long_long", "c_ptr", "c_short", "c_signed_char", "c_size_t", "character", "complex", "double", "integer", "logical", "real"]); var isOperatorChar = /[+\-*&=<>\/\:]/; var litOperator = /^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i; function tokenBase(stream, state) { if (stream.match(litOperator)){ return 'operator'; } var ch = stream.next(); if (ch == "!") { stream.skipToEnd(); return "comment"; } if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (/[\[\]\(\),]/.test(ch)) { return null; } if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } stream.eatWhile(/[\w\$_]/); var word = stream.current().toLowerCase(); if (keywords.hasOwnProperty(word)){ return 'keyword'; } if (builtins.hasOwnProperty(word) || dataTypes.hasOwnProperty(word)) { return 'builtin'; } return "variable"; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) { end = true; break; } escaped = !escaped && next == "\\"; } if (end || !escaped) state.tokenize = null; return "string"; }; } // Interface return { startState: function() { return {tokenize: null}; }, token: function(stream, state) { if (stream.eatSpace()) return null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment" || style == "meta") return style; return style; } }; }); CodeMirror.defineMIME("text/x-fortran", "fortran"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/gas/gas.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("gas", function(_config, parserConfig) { 'use strict'; // If an architecture is specified, its initialization function may // populate this array with custom parsing functions which will be // tried in the event that the standard functions do not find a match. var custom = []; // The symbol used to start a line comment changes based on the target // architecture. // If no architecture is pased in "parserConfig" then only multiline // comments will have syntax support. var lineCommentStartSymbol = ""; // These directives are architecture independent. // Machine specific directives should go in their respective // architecture initialization function. // Reference: // http://sourceware.org/binutils/docs/as/Pseudo-Ops.html#Pseudo-Ops var directives = { ".abort" : "builtin", ".align" : "builtin", ".altmacro" : "builtin", ".ascii" : "builtin", ".asciz" : "builtin", ".balign" : "builtin", ".balignw" : "builtin", ".balignl" : "builtin", ".bundle_align_mode" : "builtin", ".bundle_lock" : "builtin", ".bundle_unlock" : "builtin", ".byte" : "builtin", ".cfi_startproc" : "builtin", ".comm" : "builtin", ".data" : "builtin", ".def" : "builtin", ".desc" : "builtin", ".dim" : "builtin", ".double" : "builtin", ".eject" : "builtin", ".else" : "builtin", ".elseif" : "builtin", ".end" : "builtin", ".endef" : "builtin", ".endfunc" : "builtin", ".endif" : "builtin", ".equ" : "builtin", ".equiv" : "builtin", ".eqv" : "builtin", ".err" : "builtin", ".error" : "builtin", ".exitm" : "builtin", ".extern" : "builtin", ".fail" : "builtin", ".file" : "builtin", ".fill" : "builtin", ".float" : "builtin", ".func" : "builtin", ".global" : "builtin", ".gnu_attribute" : "builtin", ".hidden" : "builtin", ".hword" : "builtin", ".ident" : "builtin", ".if" : "builtin", ".incbin" : "builtin", ".include" : "builtin", ".int" : "builtin", ".internal" : "builtin", ".irp" : "builtin", ".irpc" : "builtin", ".lcomm" : "builtin", ".lflags" : "builtin", ".line" : "builtin", ".linkonce" : "builtin", ".list" : "builtin", ".ln" : "builtin", ".loc" : "builtin", ".loc_mark_labels" : "builtin", ".local" : "builtin", ".long" : "builtin", ".macro" : "builtin", ".mri" : "builtin", ".noaltmacro" : "builtin", ".nolist" : "builtin", ".octa" : "builtin", ".offset" : "builtin", ".org" : "builtin", ".p2align" : "builtin", ".popsection" : "builtin", ".previous" : "builtin", ".print" : "builtin", ".protected" : "builtin", ".psize" : "builtin", ".purgem" : "builtin", ".pushsection" : "builtin", ".quad" : "builtin", ".reloc" : "builtin", ".rept" : "builtin", ".sbttl" : "builtin", ".scl" : "builtin", ".section" : "builtin", ".set" : "builtin", ".short" : "builtin", ".single" : "builtin", ".size" : "builtin", ".skip" : "builtin", ".sleb128" : "builtin", ".space" : "builtin", ".stab" : "builtin", ".string" : "builtin", ".struct" : "builtin", ".subsection" : "builtin", ".symver" : "builtin", ".tag" : "builtin", ".text" : "builtin", ".title" : "builtin", ".type" : "builtin", ".uleb128" : "builtin", ".val" : "builtin", ".version" : "builtin", ".vtable_entry" : "builtin", ".vtable_inherit" : "builtin", ".warning" : "builtin", ".weak" : "builtin", ".weakref" : "builtin", ".word" : "builtin" }; var registers = {}; function x86(_parserConfig) { lineCommentStartSymbol = "#"; registers.al = "variable"; registers.ah = "variable"; registers.ax = "variable"; registers.eax = "variable-2"; registers.rax = "variable-3"; registers.bl = "variable"; registers.bh = "variable"; registers.bx = "variable"; registers.ebx = "variable-2"; registers.rbx = "variable-3"; registers.cl = "variable"; registers.ch = "variable"; registers.cx = "variable"; registers.ecx = "variable-2"; registers.rcx = "variable-3"; registers.dl = "variable"; registers.dh = "variable"; registers.dx = "variable"; registers.edx = "variable-2"; registers.rdx = "variable-3"; registers.si = "variable"; registers.esi = "variable-2"; registers.rsi = "variable-3"; registers.di = "variable"; registers.edi = "variable-2"; registers.rdi = "variable-3"; registers.sp = "variable"; registers.esp = "variable-2"; registers.rsp = "variable-3"; registers.bp = "variable"; registers.ebp = "variable-2"; registers.rbp = "variable-3"; registers.ip = "variable"; registers.eip = "variable-2"; registers.rip = "variable-3"; registers.cs = "keyword"; registers.ds = "keyword"; registers.ss = "keyword"; registers.es = "keyword"; registers.fs = "keyword"; registers.gs = "keyword"; } function armv6(_parserConfig) { // Reference: // http://infocenter.arm.com/help/topic/com.arm.doc.qrc0001l/QRC0001_UAL.pdf // http://infocenter.arm.com/help/topic/com.arm.doc.ddi0301h/DDI0301H_arm1176jzfs_r0p7_trm.pdf lineCommentStartSymbol = "@"; directives.syntax = "builtin"; registers.r0 = "variable"; registers.r1 = "variable"; registers.r2 = "variable"; registers.r3 = "variable"; registers.r4 = "variable"; registers.r5 = "variable"; registers.r6 = "variable"; registers.r7 = "variable"; registers.r8 = "variable"; registers.r9 = "variable"; registers.r10 = "variable"; registers.r11 = "variable"; registers.r12 = "variable"; registers.sp = "variable-2"; registers.lr = "variable-2"; registers.pc = "variable-2"; registers.r13 = registers.sp; registers.r14 = registers.lr; registers.r15 = registers.pc; custom.push(function(ch, stream) { if (ch === '#') { stream.eatWhile(/\w/); return "number"; } }); } var arch = (parserConfig.architecture || "x86").toLowerCase(); if (arch === "x86") { x86(parserConfig); } else if (arch === "arm" || arch === "armv6") { armv6(parserConfig); } function nextUntilUnescaped(stream, end) { var escaped = false, next; while ((next = stream.next()) != null) { if (next === end && !escaped) { return false; } escaped = !escaped && next === "\\"; } return escaped; } function clikeComment(stream, state) { var maybeEnd = false, ch; while ((ch = stream.next()) != null) { if (ch === "/" && maybeEnd) { state.tokenize = null; break; } maybeEnd = (ch === "*"); } return "comment"; } return { startState: function() { return { tokenize: null }; }, token: function(stream, state) { if (state.tokenize) { return state.tokenize(stream, state); } if (stream.eatSpace()) { return null; } var style, cur, ch = stream.next(); if (ch === "/") { if (stream.eat("*")) { state.tokenize = clikeComment; return clikeComment(stream, state); } } if (ch === lineCommentStartSymbol) { stream.skipToEnd(); return "comment"; } if (ch === '"') { nextUntilUnescaped(stream, '"'); return "string"; } if (ch === '.') { stream.eatWhile(/\w/); cur = stream.current().toLowerCase(); style = directives[cur]; return style || null; } if (ch === '=') { stream.eatWhile(/\w/); return "tag"; } if (ch === '{') { return "bracket"; } if (ch === '}') { return "bracket"; } if (/\d/.test(ch)) { if (ch === "0" && stream.eat("x")) { stream.eatWhile(/[0-9a-fA-F]/); return "number"; } stream.eatWhile(/\d/); return "number"; } if (/\w/.test(ch)) { stream.eatWhile(/\w/); if (stream.eat(":")) { return 'tag'; } cur = stream.current().toLowerCase(); style = registers[cur]; return style || null; } for (var i = 0; i < custom.length; i++) { style = custom[i](ch, stream, state); if (style) { return style; } } }, lineComment: lineCommentStartSymbol, blockCommentStart: "/*", blockCommentEnd: "*/" }; }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/gfm/gfm.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../markdown/markdown"), require("../../addon/mode/overlay")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../markdown/markdown", "../../addon/mode/overlay"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; var urlRE = /^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i CodeMirror.defineMode("gfm", function(config, modeConfig) { var codeDepth = 0; function blankLine(state) { state.code = false; return null; } var gfmOverlay = { startState: function() { return { code: false, codeBlock: false, ateSpace: false }; }, copyState: function(s) { return { code: s.code, codeBlock: s.codeBlock, ateSpace: s.ateSpace }; }, token: function(stream, state) { state.combineTokens = null; // Hack to prevent formatting override inside code blocks (block and inline) if (state.codeBlock) { if (stream.match(/^```+/)) { state.codeBlock = false; return null; } stream.skipToEnd(); return null; } if (stream.sol()) { state.code = false; } if (stream.sol() && stream.match(/^```+/)) { stream.skipToEnd(); state.codeBlock = true; return null; } // If this block is changed, it may need to be updated in Markdown mode if (stream.peek() === '`') { stream.next(); var before = stream.pos; stream.eatWhile('`'); var difference = 1 + stream.pos - before; if (!state.code) { codeDepth = difference; state.code = true; } else { if (difference === codeDepth) { // Must be exact state.code = false; } } return null; } else if (state.code) { stream.next(); return null; } // Check if space. If so, links can be formatted later on if (stream.eatSpace()) { state.ateSpace = true; return null; } if (stream.sol() || state.ateSpace) { state.ateSpace = false; if (modeConfig.gitHubSpice !== false) { if(stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/)) { // User/Project@SHA // User@SHA // SHA state.combineTokens = true; return "link"; } else if (stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/)) { // User/Project#Num // User#Num // #Num state.combineTokens = true; return "link"; } } } if (stream.match(urlRE) && stream.string.slice(stream.start - 2, stream.start) != "](" && (stream.start == 0 || /\W/.test(stream.string.charAt(stream.start - 1)))) { // URLs // Taken from http://daringfireball.net/2010/07/improved_regex_for_matching_urls // And then (issue #1160) simplified to make it not crash the Chrome Regexp engine // And then limited url schemes to the CommonMark list, so foo:bar isn't matched as a URL state.combineTokens = true; return "link"; } stream.next(); return null; }, blankLine: blankLine }; var markdownConfig = { taskLists: true, strikethrough: true, emoji: true }; for (var attr in modeConfig) { markdownConfig[attr] = modeConfig[attr]; } markdownConfig.name = "markdown"; return CodeMirror.overlayMode(CodeMirror.getMode(config, markdownConfig), gfmOverlay); }, "markdown"); CodeMirror.defineMIME("text/x-gfm", "gfm"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/gherkin/gherkin.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /* Gherkin mode - http://www.cukes.info/ Report bugs/issues here: https://github.com/codemirror/CodeMirror/issues */ // Following Objs from Brackets implementation: https://github.com/tregusti/brackets-gherkin/blob/master/main.js //var Quotes = { // SINGLE: 1, // DOUBLE: 2 //}; //var regex = { // keywords: /(Feature| {2}(Scenario|In order to|As|I)| {4}(Given|When|Then|And))/ //}; (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("gherkin", function () { return { startState: function () { return { lineNumber: 0, tableHeaderLine: false, allowFeature: true, allowBackground: false, allowScenario: false, allowSteps: false, allowPlaceholders: false, allowMultilineArgument: false, inMultilineString: false, inMultilineTable: false, inKeywordLine: false }; }, token: function (stream, state) { if (stream.sol()) { state.lineNumber++; state.inKeywordLine = false; if (state.inMultilineTable) { state.tableHeaderLine = false; if (!stream.match(/\s*\|/, false)) { state.allowMultilineArgument = false; state.inMultilineTable = false; } } } stream.eatSpace(); if (state.allowMultilineArgument) { // STRING if (state.inMultilineString) { if (stream.match('"""')) { state.inMultilineString = false; state.allowMultilineArgument = false; } else { stream.match(/.*/); } return "string"; } // TABLE if (state.inMultilineTable) { if (stream.match(/\|\s*/)) { return "bracket"; } else { stream.match(/[^\|]*/); return state.tableHeaderLine ? "header" : "string"; } } // DETECT START if (stream.match('"""')) { // String state.inMultilineString = true; return "string"; } else if (stream.match("|")) { // Table state.inMultilineTable = true; state.tableHeaderLine = true; return "bracket"; } } // LINE COMMENT if (stream.match(/#.*/)) { return "comment"; // TAG } else if (!state.inKeywordLine && stream.match(/@\S+/)) { return "tag"; // FEATURE } else if (!state.inKeywordLine && state.allowFeature && stream.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)) { state.allowScenario = true; state.allowBackground = true; state.allowPlaceholders = false; state.allowSteps = false; state.allowMultilineArgument = false; state.inKeywordLine = true; return "keyword"; // BACKGROUND } else if (!state.inKeywordLine && state.allowBackground && stream.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)) { state.allowPlaceholders = false; state.allowSteps = true; state.allowBackground = false; state.allowMultilineArgument = false; state.inKeywordLine = true; return "keyword"; // SCENARIO OUTLINE } else if (!state.inKeywordLine && state.allowScenario && stream.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)) { state.allowPlaceholders = true; state.allowSteps = true; state.allowMultilineArgument = false; state.inKeywordLine = true; return "keyword"; // EXAMPLES } else if (state.allowScenario && stream.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)) { state.allowPlaceholders = false; state.allowSteps = true; state.allowBackground = false; state.allowMultilineArgument = true; return "keyword"; // SCENARIO } else if (!state.inKeywordLine && state.allowScenario && stream.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)) { state.allowPlaceholders = false; state.allowSteps = true; state.allowBackground = false; state.allowMultilineArgument = false; state.inKeywordLine = true; return "keyword"; // STEPS } else if (!state.inKeywordLine && state.allowSteps && stream.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)) { state.inStep = true; state.allowPlaceholders = true; state.allowMultilineArgument = true; state.inKeywordLine = true; return "keyword"; // INLINE STRING } else if (stream.match(/"[^"]*"?/)) { return "string"; // PLACEHOLDER } else if (state.allowPlaceholders && stream.match(/<[^>]*>?/)) { return "variable"; // Fall through } else { stream.next(); stream.eatWhile(/[^@"<#]/); return null; } } }; }); CodeMirror.defineMIME("text/x-feature", "gherkin"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/go/go.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("go", function(config) { var indentUnit = config.indentUnit; var keywords = { "break":true, "case":true, "chan":true, "const":true, "continue":true, "default":true, "defer":true, "else":true, "fallthrough":true, "for":true, "func":true, "go":true, "goto":true, "if":true, "import":true, "interface":true, "map":true, "package":true, "range":true, "return":true, "select":true, "struct":true, "switch":true, "type":true, "var":true, "bool":true, "byte":true, "complex64":true, "complex128":true, "float32":true, "float64":true, "int8":true, "int16":true, "int32":true, "int64":true, "string":true, "uint8":true, "uint16":true, "uint32":true, "uint64":true, "int":true, "uint":true, "uintptr":true, "error": true, "rune":true, "any":true, "comparable":true }; var atoms = { "true":true, "false":true, "iota":true, "nil":true, "append":true, "cap":true, "close":true, "complex":true, "copy":true, "delete":true, "imag":true, "len":true, "make":true, "new":true, "panic":true, "print":true, "println":true, "real":true, "recover":true }; var isOperatorChar = /[+\-*&^%:=<>!|\/]/; var curPunc; function tokenBase(stream, state) { var ch = stream.next(); if (ch == '"' || ch == "'" || ch == "`") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (/[\d\.]/.test(ch)) { if (ch == ".") { stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/); } else if (ch == "0") { stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/); } else { stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/); } return "number"; } if (/[\[\]{}\(\),;\:\.]/.test(ch)) { curPunc = ch; return null; } if (ch == "/") { if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } } if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } stream.eatWhile(/[\w\$_\xa1-\uffff]/); var cur = stream.current(); if (keywords.propertyIsEnumerable(cur)) { if (cur == "case" || cur == "default") curPunc = "case"; return "keyword"; } if (atoms.propertyIsEnumerable(cur)) return "atom"; return "variable"; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) {end = true; break;} escaped = !escaped && quote != "`" && next == "\\"; } if (end || !(escaped || quote == "`")) state.tokenize = tokenBase; return "string"; }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return "comment"; } function Context(indented, column, type, align, prev) { this.indented = indented; this.column = column; this.type = type; this.align = align; this.prev = prev; } function pushContext(state, col, type) { return state.context = new Context(state.indented, col, type, null, state.context); } function popContext(state) { if (!state.context.prev) return; var t = state.context.type; if (t == ")" || t == "]" || t == "}") state.indented = state.context.indented; return state.context = state.context.prev; } // Interface return { startState: function(basecolumn) { return { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), indented: 0, startOfLine: true }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; if (ctx.type == "case") ctx.type = "}"; } if (stream.eatSpace()) return null; curPunc = null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment") return style; if (ctx.align == null) ctx.align = true; if (curPunc == "{") pushContext(state, stream.column(), "}"); else if (curPunc == "[") pushContext(state, stream.column(), "]"); else if (curPunc == "(") pushContext(state, stream.column(), ")"); else if (curPunc == "case") ctx.type = "case"; else if (curPunc == "}" && ctx.type == "}") popContext(state); else if (curPunc == ctx.type) popContext(state); state.startOfLine = false; return style; }, indent: function(state, textAfter) { if (state.tokenize != tokenBase && state.tokenize != null) return CodeMirror.Pass; var ctx = state.context, firstChar = textAfter && textAfter.charAt(0); if (ctx.type == "case" && /^(?:case|default)\b/.test(textAfter)) { state.context.type = "}"; return ctx.indented; } var closing = firstChar == ctx.type; if (ctx.align) return ctx.column + (closing ? 0 : 1); else return ctx.indented + (closing ? 0 : indentUnit); }, electricChars: "{}):", closeBrackets: "()[]{}''\"\"``", fold: "brace", blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//" }; }); CodeMirror.defineMIME("text/x-go", "go"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/groovy/groovy.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("groovy", function(config) { function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var keywords = words( "abstract as assert boolean break byte case catch char class const continue def default " + "do double else enum extends final finally float for goto if implements import in " + "instanceof int interface long native new package private protected public return " + "short static strictfp super switch synchronized threadsafe throw throws trait transient " + "try void volatile while"); var blockKeywords = words("catch class def do else enum finally for if interface switch trait try while"); var standaloneKeywords = words("return break continue"); var atoms = words("null true false this"); var curPunc; function tokenBase(stream, state) { var ch = stream.next(); if (ch == '"' || ch == "'") { return startString(ch, stream, state); } if (/[\[\]{}\(\),;\:\.]/.test(ch)) { curPunc = ch; return null; } if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); if (stream.eat(/eE/)) { stream.eat(/\+\-/); stream.eatWhile(/\d/); } return "number"; } if (ch == "/") { if (stream.eat("*")) { state.tokenize.push(tokenComment); return tokenComment(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } if (expectExpression(state.lastToken, false)) { return startString(ch, stream, state); } } if (ch == "-" && stream.eat(">")) { curPunc = "->"; return null; } if (/[+\-*&%=<>!?|\/~]/.test(ch)) { stream.eatWhile(/[+\-*&%=<>|~]/); return "operator"; } stream.eatWhile(/[\w\$_]/); if (ch == "@") { stream.eatWhile(/[\w\$_\.]/); return "meta"; } if (state.lastToken == ".") return "property"; if (stream.eat(":")) { curPunc = "proplabel"; return "property"; } var cur = stream.current(); if (atoms.propertyIsEnumerable(cur)) { return "atom"; } if (keywords.propertyIsEnumerable(cur)) { if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; else if (standaloneKeywords.propertyIsEnumerable(cur)) curPunc = "standalone"; return "keyword"; } return "variable"; } tokenBase.isBase = true; function startString(quote, stream, state) { var tripleQuoted = false; if (quote != "/" && stream.eat(quote)) { if (stream.eat(quote)) tripleQuoted = true; else return "string"; } function t(stream, state) { var escaped = false, next, end = !tripleQuoted; while ((next = stream.next()) != null) { if (next == quote && !escaped) { if (!tripleQuoted) { break; } if (stream.match(quote + quote)) { end = true; break; } } if (quote == '"' && next == "$" && !escaped) { if (stream.eat("{")) { state.tokenize.push(tokenBaseUntilBrace()); return "string"; } else if (stream.match(/^\w/, false)) { state.tokenize.push(tokenVariableDeref); return "string"; } } escaped = !escaped && next == "\\"; } if (end) state.tokenize.pop(); return "string"; } state.tokenize.push(t); return t(stream, state); } function tokenBaseUntilBrace() { var depth = 1; function t(stream, state) { if (stream.peek() == "}") { depth--; if (depth == 0) { state.tokenize.pop(); return state.tokenize[state.tokenize.length-1](stream, state); } } else if (stream.peek() == "{") { depth++; } return tokenBase(stream, state); } t.isBase = true; return t; } function tokenVariableDeref(stream, state) { var next = stream.match(/^(\.|[\w\$_]+)/) if (!next) { state.tokenize.pop() return state.tokenize[state.tokenize.length-1](stream, state) } return next[0] == "." ? null : "variable" } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize.pop(); break; } maybeEnd = (ch == "*"); } return "comment"; } function expectExpression(last, newline) { return !last || last == "operator" || last == "->" || /[\.\[\{\(,;:]/.test(last) || last == "newstatement" || last == "keyword" || last == "proplabel" || (last == "standalone" && !newline); } function Context(indented, column, type, align, prev) { this.indented = indented; this.column = column; this.type = type; this.align = align; this.prev = prev; } function pushContext(state, col, type) { return state.context = new Context(state.indented, col, type, null, state.context); } function popContext(state) { var t = state.context.type; if (t == ")" || t == "]" || t == "}") state.indented = state.context.indented; return state.context = state.context.prev; } // Interface return { startState: function(basecolumn) { return { tokenize: [tokenBase], context: new Context((basecolumn || 0) - config.indentUnit, 0, "top", false), indented: 0, startOfLine: true, lastToken: null }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; // Automatic semicolon insertion if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) { popContext(state); ctx = state.context; } } if (stream.eatSpace()) return null; curPunc = null; var style = state.tokenize[state.tokenize.length-1](stream, state); if (style == "comment") return style; if (ctx.align == null) ctx.align = true; if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state); // Handle indentation for {x -> \n ... } else if (curPunc == "->" && ctx.type == "statement" && ctx.prev.type == "}") { popContext(state); state.context.align = false; } else if (curPunc == "{") pushContext(state, stream.column(), "}"); else if (curPunc == "[") pushContext(state, stream.column(), "]"); else if (curPunc == "(") pushContext(state, stream.column(), ")"); else if (curPunc == "}") { while (ctx.type == "statement") ctx = popContext(state); if (ctx.type == "}") ctx = popContext(state); while (ctx.type == "statement") ctx = popContext(state); } else if (curPunc == ctx.type) popContext(state); else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement")) pushContext(state, stream.column(), "statement"); state.startOfLine = false; state.lastToken = curPunc || style; return style; }, indent: function(state, textAfter) { if (!state.tokenize[state.tokenize.length-1].isBase) return CodeMirror.Pass; var firstChar = textAfter && textAfter.charAt(0), ctx = state.context; if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) ctx = ctx.prev; var closing = firstChar == ctx.type; if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : config.indentUnit); else if (ctx.align) return ctx.column + (closing ? 0 : 1); else return ctx.indented + (closing ? 0 : config.indentUnit); }, electricChars: "{}", closeBrackets: {triples: "'\""}, fold: "brace", blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//" }; }); CodeMirror.defineMIME("text/x-groovy", "groovy"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/haml/haml.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../ruby/ruby")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../ruby/ruby"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; // full haml mode. This handled embedded ruby and html fragments too CodeMirror.defineMode("haml", function(config) { var htmlMode = CodeMirror.getMode(config, {name: "htmlmixed"}); var rubyMode = CodeMirror.getMode(config, "ruby"); function rubyInQuote(endQuote) { return function(stream, state) { var ch = stream.peek(); if (ch == endQuote && state.rubyState.tokenize.length == 1) { // step out of ruby context as it seems to complete processing all the braces stream.next(); state.tokenize = html; return "closeAttributeTag"; } else { return ruby(stream, state); } }; } function ruby(stream, state) { if (stream.match("-#")) { stream.skipToEnd(); return "comment"; } return rubyMode.token(stream, state.rubyState); } function html(stream, state) { var ch = stream.peek(); // handle haml declarations. All declarations that cant be handled here // will be passed to html mode if (state.previousToken.style == "comment" ) { if (state.indented > state.previousToken.indented) { stream.skipToEnd(); return "commentLine"; } } if (state.startOfLine) { if (ch == "!" && stream.match("!!")) { stream.skipToEnd(); return "tag"; } else if (stream.match(/^%[\w:#\.]+=/)) { state.tokenize = ruby; return "hamlTag"; } else if (stream.match(/^%[\w:]+/)) { return "hamlTag"; } else if (ch == "/" ) { stream.skipToEnd(); return "comment"; } } if (state.startOfLine || state.previousToken.style == "hamlTag") { if ( ch == "#" || ch == ".") { stream.match(/[\w-#\.]*/); return "hamlAttribute"; } } // do not handle --> as valid ruby, make it HTML close comment instead if (state.startOfLine && !stream.match("-->", false) && (ch == "=" || ch == "-" )) { state.tokenize = ruby; return state.tokenize(stream, state); } if (state.previousToken.style == "hamlTag" || state.previousToken.style == "closeAttributeTag" || state.previousToken.style == "hamlAttribute") { if (ch == "(") { state.tokenize = rubyInQuote(")"); return state.tokenize(stream, state); } else if (ch == "{") { if (!stream.match(/^\{%.*/)) { state.tokenize = rubyInQuote("}"); return state.tokenize(stream, state); } } } return htmlMode.token(stream, state.htmlState); } return { // default to html mode startState: function() { var htmlState = CodeMirror.startState(htmlMode); var rubyState = CodeMirror.startState(rubyMode); return { htmlState: htmlState, rubyState: rubyState, indented: 0, previousToken: { style: null, indented: 0}, tokenize: html }; }, copyState: function(state) { return { htmlState : CodeMirror.copyState(htmlMode, state.htmlState), rubyState: CodeMirror.copyState(rubyMode, state.rubyState), indented: state.indented, previousToken: state.previousToken, tokenize: state.tokenize }; }, token: function(stream, state) { if (stream.sol()) { state.indented = stream.indentation(); state.startOfLine = true; } if (stream.eatSpace()) return null; var style = state.tokenize(stream, state); state.startOfLine = false; // dont record comment line as we only want to measure comment line with // the opening comment block if (style && style != "commentLine") { state.previousToken = { style: style, indented: state.indented }; } // if current state is ruby and the previous token is not `,` reset the // tokenize to html if (stream.eol() && state.tokenize == ruby) { stream.backUp(1); var ch = stream.peek(); stream.next(); if (ch && ch != ",") { state.tokenize = html; } } // reprocess some of the specific style tag when finish setting previousToken if (style == "hamlTag") { style = "tag"; } else if (style == "commentLine") { style = "comment"; } else if (style == "hamlAttribute") { style = "attribute"; } else if (style == "closeAttributeTag") { style = null; } return style; } }; }, "htmlmixed", "ruby"); CodeMirror.defineMIME("text/x-haml", "haml"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/handlebars/handlebars.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../../addon/mode/simple"), require("../../addon/mode/multiplex")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../../addon/mode/simple", "../../addon/mode/multiplex"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineSimpleMode("handlebars-tags", { start: [ { regex: /\{\{\{/, push: "handlebars_raw", token: "tag" }, { regex: /\{\{!--/, push: "dash_comment", token: "comment" }, { regex: /\{\{!/, push: "comment", token: "comment" }, { regex: /\{\{/, push: "handlebars", token: "tag" } ], handlebars_raw: [ { regex: /\}\}\}/, pop: true, token: "tag" }, ], handlebars: [ { regex: /\}\}/, pop: true, token: "tag" }, // Double and single quotes { regex: /"(?:[^\\"]|\\.)*"?/, token: "string" }, { regex: /'(?:[^\\']|\\.)*'?/, token: "string" }, // Handlebars keywords { regex: />|[#\/]([A-Za-z_]\w*)/, token: "keyword" }, { regex: /(?:else|this)\b/, token: "keyword" }, // Numeral { regex: /\d+/i, token: "number" }, // Atoms like = and . { regex: /=|~|@|true|false/, token: "atom" }, // Paths { regex: /(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/, token: "variable-2" } ], dash_comment: [ { regex: /--\}\}/, pop: true, token: "comment" }, // Commented code { regex: /./, token: "comment"} ], comment: [ { regex: /\}\}/, pop: true, token: "comment" }, { regex: /./, token: "comment" } ], meta: { blockCommentStart: "{{--", blockCommentEnd: "--}}" } }); CodeMirror.defineMode("handlebars", function(config, parserConfig) { var handlebars = CodeMirror.getMode(config, "handlebars-tags"); if (!parserConfig || !parserConfig.base) return handlebars; return CodeMirror.multiplexingMode( CodeMirror.getMode(config, parserConfig.base), {open: "{{", close: /\}\}\}?/, mode: handlebars, parseDelimiters: true} ); }); CodeMirror.defineMIME("text/x-handlebars-template", "handlebars"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/haskell/haskell.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("haskell", function(_config, modeConfig) { function switchState(source, setState, f) { setState(f); return f(source, setState); } // These should all be Unicode extended, as per the Haskell 2010 report var smallRE = /[a-z_]/; var largeRE = /[A-Z]/; var digitRE = /\d/; var hexitRE = /[0-9A-Fa-f]/; var octitRE = /[0-7]/; var idRE = /[a-z_A-Z0-9'\xa1-\uffff]/; var symbolRE = /[-!#$%&*+.\/<=>?@\\^|~:]/; var specialRE = /[(),;[\]`{}]/; var whiteCharRE = /[ \t\v\f]/; // newlines are handled in tokenizer function normal(source, setState) { if (source.eatWhile(whiteCharRE)) { return null; } var ch = source.next(); if (specialRE.test(ch)) { if (ch == '{' && source.eat('-')) { var t = "comment"; if (source.eat('#')) { t = "meta"; } return switchState(source, setState, ncomment(t, 1)); } return null; } if (ch == '\'') { if (source.eat('\\')) { source.next(); // should handle other escapes here } else { source.next(); } if (source.eat('\'')) { return "string"; } return "string error"; } if (ch == '"') { return switchState(source, setState, stringLiteral); } if (largeRE.test(ch)) { source.eatWhile(idRE); if (source.eat('.')) { return "qualifier"; } return "variable-2"; } if (smallRE.test(ch)) { source.eatWhile(idRE); return "variable"; } if (digitRE.test(ch)) { if (ch == '0') { if (source.eat(/[xX]/)) { source.eatWhile(hexitRE); // should require at least 1 return "integer"; } if (source.eat(/[oO]/)) { source.eatWhile(octitRE); // should require at least 1 return "number"; } } source.eatWhile(digitRE); var t = "number"; if (source.match(/^\.\d+/)) { t = "number"; } if (source.eat(/[eE]/)) { t = "number"; source.eat(/[-+]/); source.eatWhile(digitRE); // should require at least 1 } return t; } if (ch == "." && source.eat(".")) return "keyword"; if (symbolRE.test(ch)) { if (ch == '-' && source.eat(/-/)) { source.eatWhile(/-/); if (!source.eat(symbolRE)) { source.skipToEnd(); return "comment"; } } var t = "variable"; if (ch == ':') { t = "variable-2"; } source.eatWhile(symbolRE); return t; } return "error"; } function ncomment(type, nest) { if (nest == 0) { return normal; } return function(source, setState) { var currNest = nest; while (!source.eol()) { var ch = source.next(); if (ch == '{' && source.eat('-')) { ++currNest; } else if (ch == '-' && source.eat('}')) { --currNest; if (currNest == 0) { setState(normal); return type; } } } setState(ncomment(type, currNest)); return type; }; } function stringLiteral(source, setState) { while (!source.eol()) { var ch = source.next(); if (ch == '"') { setState(normal); return "string"; } if (ch == '\\') { if (source.eol() || source.eat(whiteCharRE)) { setState(stringGap); return "string"; } if (source.eat('&')) { } else { source.next(); // should handle other escapes here } } } setState(normal); return "string error"; } function stringGap(source, setState) { if (source.eat('\\')) { return switchState(source, setState, stringLiteral); } source.next(); setState(normal); return "error"; } var wellKnownWords = (function() { var wkw = {}; function setType(t) { return function () { for (var i = 0; i < arguments.length; i++) wkw[arguments[i]] = t; }; } setType("keyword")( "case", "class", "data", "default", "deriving", "do", "else", "foreign", "if", "import", "in", "infix", "infixl", "infixr", "instance", "let", "module", "newtype", "of", "then", "type", "where", "_"); setType("keyword")( "\.\.", ":", "::", "=", "\\", "<-", "->", "@", "~", "=>"); setType("builtin")( "!!", "$!", "$", "&&", "+", "++", "-", ".", "/", "/=", "<", "<*", "<=", "<$>", "<*>", "=<<", "==", ">", ">=", ">>", ">>=", "^", "^^", "||", "*", "*>", "**"); setType("builtin")( "Applicative", "Bool", "Bounded", "Char", "Double", "EQ", "Either", "Enum", "Eq", "False", "FilePath", "Float", "Floating", "Fractional", "Functor", "GT", "IO", "IOError", "Int", "Integer", "Integral", "Just", "LT", "Left", "Maybe", "Monad", "Nothing", "Num", "Ord", "Ordering", "Rational", "Read", "ReadS", "Real", "RealFloat", "RealFrac", "Right", "Show", "ShowS", "String", "True"); setType("builtin")( "abs", "acos", "acosh", "all", "and", "any", "appendFile", "asTypeOf", "asin", "asinh", "atan", "atan2", "atanh", "break", "catch", "ceiling", "compare", "concat", "concatMap", "const", "cos", "cosh", "curry", "cycle", "decodeFloat", "div", "divMod", "drop", "dropWhile", "either", "elem", "encodeFloat", "enumFrom", "enumFromThen", "enumFromThenTo", "enumFromTo", "error", "even", "exp", "exponent", "fail", "filter", "flip", "floatDigits", "floatRadix", "floatRange", "floor", "fmap", "foldl", "foldl1", "foldr", "foldr1", "fromEnum", "fromInteger", "fromIntegral", "fromRational", "fst", "gcd", "getChar", "getContents", "getLine", "head", "id", "init", "interact", "ioError", "isDenormalized", "isIEEE", "isInfinite", "isNaN", "isNegativeZero", "iterate", "last", "lcm", "length", "lex", "lines", "log", "logBase", "lookup", "map", "mapM", "mapM_", "max", "maxBound", "maximum", "maybe", "min", "minBound", "minimum", "mod", "negate", "not", "notElem", "null", "odd", "or", "otherwise", "pi", "pred", "print", "product", "properFraction", "pure", "putChar", "putStr", "putStrLn", "quot", "quotRem", "read", "readFile", "readIO", "readList", "readLn", "readParen", "reads", "readsPrec", "realToFrac", "recip", "rem", "repeat", "replicate", "return", "reverse", "round", "scaleFloat", "scanl", "scanl1", "scanr", "scanr1", "seq", "sequence", "sequence_", "show", "showChar", "showList", "showParen", "showString", "shows", "showsPrec", "significand", "signum", "sin", "sinh", "snd", "span", "splitAt", "sqrt", "subtract", "succ", "sum", "tail", "take", "takeWhile", "tan", "tanh", "toEnum", "toInteger", "toRational", "truncate", "uncurry", "undefined", "unlines", "until", "unwords", "unzip", "unzip3", "userError", "words", "writeFile", "zip", "zip3", "zipWith", "zipWith3"); var override = modeConfig.overrideKeywords; if (override) for (var word in override) if (override.hasOwnProperty(word)) wkw[word] = override[word]; return wkw; })(); return { startState: function () { return { f: normal }; }, copyState: function (s) { return { f: s.f }; }, token: function(stream, state) { var t = state.f(stream, function(s) { state.f = s; }); var w = stream.current(); return wellKnownWords.hasOwnProperty(w) ? wellKnownWords[w] : t; }, blockCommentStart: "{-", blockCommentEnd: "-}", lineComment: "--" }; }); CodeMirror.defineMIME("text/x-haskell", "haskell"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/haskell-literate/haskell-literate.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function (mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../haskell/haskell")) else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../haskell/haskell"], mod) else // Plain browser env mod(CodeMirror) })(function (CodeMirror) { "use strict" CodeMirror.defineMode("haskell-literate", function (config, parserConfig) { var baseMode = CodeMirror.getMode(config, (parserConfig && parserConfig.base) || "haskell") return { startState: function () { return { inCode: false, baseState: CodeMirror.startState(baseMode) } }, token: function (stream, state) { if (stream.sol()) { if (state.inCode = stream.eat(">")) return "meta" } if (state.inCode) { return baseMode.token(stream, state.baseState) } else { stream.skipToEnd() return "comment" } }, innerMode: function (state) { return state.inCode ? {state: state.baseState, mode: baseMode} : null } } }, "haskell") CodeMirror.defineMIME("text/x-literate-haskell", "haskell-literate") }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/haxe/haxe.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("haxe", function(config, parserConfig) { var indentUnit = config.indentUnit; // Tokenizer function kw(type) {return {type: type, style: "keyword"};} var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"); var operator = kw("operator"), atom = {type: "atom", style: "atom"}, attribute = {type:"attribute", style: "attribute"}; var type = kw("typedef"); var keywords = { "if": A, "while": A, "else": B, "do": B, "try": B, "return": C, "break": C, "continue": C, "new": C, "throw": C, "var": kw("var"), "inline":attribute, "static": attribute, "using":kw("import"), "public": attribute, "private": attribute, "cast": kw("cast"), "import": kw("import"), "macro": kw("macro"), "function": kw("function"), "catch": kw("catch"), "untyped": kw("untyped"), "callback": kw("cb"), "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"), "in": operator, "never": kw("property_access"), "trace":kw("trace"), "class": type, "abstract":type, "enum":type, "interface":type, "typedef":type, "extends":type, "implements":type, "dynamic":type, "true": atom, "false": atom, "null": atom }; var isOperatorChar = /[+\-*&%=<>!?|]/; function chain(stream, state, f) { state.tokenize = f; return f(stream, state); } function toUnescaped(stream, end) { var escaped = false, next; while ((next = stream.next()) != null) { if (next == end && !escaped) return true; escaped = !escaped && next == "\\"; } } // Used as scratch variables to communicate multiple values without // consing up tons of objects. var type, content; function ret(tp, style, cont) { type = tp; content = cont; return style; } function haxeTokenBase(stream, state) { var ch = stream.next(); if (ch == '"' || ch == "'") { return chain(stream, state, haxeTokenString(ch)); } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) { return ret(ch); } else if (ch == "0" && stream.eat(/x/i)) { stream.eatWhile(/[\da-f]/i); return ret("number", "number"); } else if (/\d/.test(ch) || ch == "-" && stream.eat(/\d/)) { stream.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/); return ret("number", "number"); } else if (state.reAllowed && (ch == "~" && stream.eat(/\//))) { toUnescaped(stream, "/"); stream.eatWhile(/[gimsu]/); return ret("regexp", "string-2"); } else if (ch == "/") { if (stream.eat("*")) { return chain(stream, state, haxeTokenComment); } else if (stream.eat("/")) { stream.skipToEnd(); return ret("comment", "comment"); } else { stream.eatWhile(isOperatorChar); return ret("operator", null, stream.current()); } } else if (ch == "#") { stream.skipToEnd(); return ret("conditional", "meta"); } else if (ch == "@") { stream.eat(/:/); stream.eatWhile(/[\w_]/); return ret ("metadata", "meta"); } else if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return ret("operator", null, stream.current()); } else { var word; if(/[A-Z]/.test(ch)) { stream.eatWhile(/[\w_<>]/); word = stream.current(); return ret("type", "variable-3", word); } else { stream.eatWhile(/[\w_]/); var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word]; return (known && state.kwAllowed) ? ret(known.type, known.style, word) : ret("variable", "variable", word); } } } function haxeTokenString(quote) { return function(stream, state) { if (toUnescaped(stream, quote)) state.tokenize = haxeTokenBase; return ret("string", "string"); }; } function haxeTokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = haxeTokenBase; break; } maybeEnd = (ch == "*"); } return ret("comment", "comment"); } // Parser var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true}; function HaxeLexical(indented, column, type, align, prev, info) { this.indented = indented; this.column = column; this.type = type; this.prev = prev; this.info = info; if (align != null) this.align = align; } function inScope(state, varname) { for (var v = state.localVars; v; v = v.next) if (v.name == varname) return true; } function parseHaxe(state, style, type, content, stream) { var cc = state.cc; // Communicate our context to the combinators. // (Less wasteful than consing up a hundred closures on every call.) cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; if (!state.lexical.hasOwnProperty("align")) state.lexical.align = true; while(true) { var combinator = cc.length ? cc.pop() : statement; if (combinator(type, content)) { while(cc.length && cc[cc.length - 1].lex) cc.pop()(); if (cx.marked) return cx.marked; if (type == "variable" && inScope(state, content)) return "variable-2"; if (type == "variable" && imported(state, content)) return "variable-3"; return style; } } } function imported(state, typename) { if (/[a-z]/.test(typename.charAt(0))) return false; var len = state.importedtypes.length; for (var i = 0; i= 0; i--) cx.cc.push(arguments[i]); } function cont() { pass.apply(null, arguments); return true; } function inList(name, list) { for (var v = list; v; v = v.next) if (v.name == name) return true; return false; } function register(varname) { var state = cx.state; if (state.context) { cx.marked = "def"; if (inList(varname, state.localVars)) return; state.localVars = {name: varname, next: state.localVars}; } else if (state.globalVars) { if (inList(varname, state.globalVars)) return; state.globalVars = {name: varname, next: state.globalVars}; } } // Combinators var defaultVars = {name: "this", next: null}; function pushcontext() { if (!cx.state.context) cx.state.localVars = defaultVars; cx.state.context = {prev: cx.state.context, vars: cx.state.localVars}; } function popcontext() { cx.state.localVars = cx.state.context.vars; cx.state.context = cx.state.context.prev; } popcontext.lex = true; function pushlex(type, info) { var result = function() { var state = cx.state; state.lexical = new HaxeLexical(state.indented, cx.stream.column(), type, null, state.lexical, info); }; result.lex = true; return result; } function poplex() { var state = cx.state; if (state.lexical.prev) { if (state.lexical.type == ")") state.indented = state.lexical.indented; state.lexical = state.lexical.prev; } } poplex.lex = true; function expect(wanted) { function f(type) { if (type == wanted) return cont(); else if (wanted == ";") return pass(); else return cont(f); } return f; } function statement(type) { if (type == "@") return cont(metadef); if (type == "var") return cont(pushlex("vardef"), vardef1, expect(";"), poplex); if (type == "keyword a") return cont(pushlex("form"), expression, statement, poplex); if (type == "keyword b") return cont(pushlex("form"), statement, poplex); if (type == "{") return cont(pushlex("}"), pushcontext, block, poplex, popcontext); if (type == ";") return cont(); if (type == "attribute") return cont(maybeattribute); if (type == "function") return cont(functiondef); if (type == "for") return cont(pushlex("form"), expect("("), pushlex(")"), forspec1, expect(")"), poplex, statement, poplex); if (type == "variable") return cont(pushlex("stat"), maybelabel); if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"), block, poplex, poplex); if (type == "case") return cont(expression, expect(":")); if (type == "default") return cont(expect(":")); if (type == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"), statement, poplex, popcontext); if (type == "import") return cont(importdef, expect(";")); if (type == "typedef") return cont(typedef); return pass(pushlex("stat"), expression, expect(";"), poplex); } function expression(type) { if (atomicTypes.hasOwnProperty(type)) return cont(maybeoperator); if (type == "type" ) return cont(maybeoperator); if (type == "function") return cont(functiondef); if (type == "keyword c") return cont(maybeexpression); if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeoperator); if (type == "operator") return cont(expression); if (type == "[") return cont(pushlex("]"), commasep(maybeexpression, "]"), poplex, maybeoperator); if (type == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator); return cont(); } function maybeexpression(type) { if (type.match(/[;\}\)\],]/)) return pass(); return pass(expression); } function maybeoperator(type, value) { if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator); if (type == "operator" || type == ":") return cont(expression); if (type == ";") return; if (type == "(") return cont(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator); if (type == ".") return cont(property, maybeoperator); if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator); } function maybeattribute(type) { if (type == "attribute") return cont(maybeattribute); if (type == "function") return cont(functiondef); if (type == "var") return cont(vardef1); } function metadef(type) { if(type == ":") return cont(metadef); if(type == "variable") return cont(metadef); if(type == "(") return cont(pushlex(")"), commasep(metaargs, ")"), poplex, statement); } function metaargs(type) { if(type == "variable") return cont(); } function importdef (type, value) { if(type == "variable" && /[A-Z]/.test(value.charAt(0))) { registerimport(value); return cont(); } else if(type == "variable" || type == "property" || type == "." || value == "*") return cont(importdef); } function typedef (type, value) { if(type == "variable" && /[A-Z]/.test(value.charAt(0))) { registerimport(value); return cont(); } else if (type == "type" && /[A-Z]/.test(value.charAt(0))) { return cont(); } } function maybelabel(type) { if (type == ":") return cont(poplex, statement); return pass(maybeoperator, expect(";"), poplex); } function property(type) { if (type == "variable") {cx.marked = "property"; return cont();} } function objprop(type) { if (type == "variable") cx.marked = "property"; if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression); } function commasep(what, end) { function proceed(type) { if (type == ",") return cont(what, proceed); if (type == end) return cont(); return cont(expect(end)); } return function(type) { if (type == end) return cont(); else return pass(what, proceed); }; } function block(type) { if (type == "}") return cont(); return pass(statement, block); } function vardef1(type, value) { if (type == "variable"){register(value); return cont(typeuse, vardef2);} return cont(); } function vardef2(type, value) { if (value == "=") return cont(expression, vardef2); if (type == ",") return cont(vardef1); } function forspec1(type, value) { if (type == "variable") { register(value); return cont(forin, expression) } else { return pass() } } function forin(_type, value) { if (value == "in") return cont(); } function functiondef(type, value) { //function names starting with upper-case letters are recognised as types, so cludging them together here. if (type == "variable" || type == "type") {register(value); return cont(functiondef);} if (value == "new") return cont(functiondef); if (type == "(") return cont(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, typeuse, statement, popcontext); } function typeuse(type) { if(type == ":") return cont(typestring); } function typestring(type) { if(type == "type") return cont(); if(type == "variable") return cont(); if(type == "{") return cont(pushlex("}"), commasep(typeprop, "}"), poplex); } function typeprop(type) { if(type == "variable") return cont(typeuse); } function funarg(type, value) { if (type == "variable") {register(value); return cont(typeuse);} } // Interface return { startState: function(basecolumn) { var defaulttypes = ["Int", "Float", "String", "Void", "Std", "Bool", "Dynamic", "Array"]; var state = { tokenize: haxeTokenBase, reAllowed: true, kwAllowed: true, cc: [], lexical: new HaxeLexical((basecolumn || 0) - indentUnit, 0, "block", false), localVars: parserConfig.localVars, importedtypes: defaulttypes, context: parserConfig.localVars && {vars: parserConfig.localVars}, indented: 0 }; if (parserConfig.globalVars && typeof parserConfig.globalVars == "object") state.globalVars = parserConfig.globalVars; return state; }, token: function(stream, state) { if (stream.sol()) { if (!state.lexical.hasOwnProperty("align")) state.lexical.align = false; state.indented = stream.indentation(); } if (stream.eatSpace()) return null; var style = state.tokenize(stream, state); if (type == "comment") return style; state.reAllowed = !!(type == "operator" || type == "keyword c" || type.match(/^[\[{}\(,;:]$/)); state.kwAllowed = type != '.'; return parseHaxe(state, style, type, content, stream); }, indent: function(state, textAfter) { if (state.tokenize != haxeTokenBase) return 0; var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical; if (lexical.type == "stat" && firstChar == "}") lexical = lexical.prev; var type = lexical.type, closing = firstChar == type; if (type == "vardef") return lexical.indented + 4; else if (type == "form" && firstChar == "{") return lexical.indented; else if (type == "stat" || type == "form") return lexical.indented + indentUnit; else if (lexical.info == "switch" && !closing) return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit); else if (lexical.align) return lexical.column + (closing ? 0 : 1); else return lexical.indented + (closing ? 0 : indentUnit); }, electricChars: "{}", blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//" }; }); CodeMirror.defineMIME("text/x-haxe", "haxe"); CodeMirror.defineMode("hxml", function () { return { startState: function () { return { define: false, inString: false }; }, token: function (stream, state) { var ch = stream.peek(); var sol = stream.sol(); ///* comments */ if (ch == "#") { stream.skipToEnd(); return "comment"; } if (sol && ch == "-") { var style = "variable-2"; stream.eat(/-/); if (stream.peek() == "-") { stream.eat(/-/); style = "keyword a"; } if (stream.peek() == "D") { stream.eat(/[D]/); style = "keyword c"; state.define = true; } stream.eatWhile(/[A-Z]/i); return style; } var ch = stream.peek(); if (state.inString == false && ch == "'") { state.inString = true; stream.next(); } if (state.inString == true) { if (stream.skipTo("'")) { } else { stream.skipToEnd(); } if (stream.peek() == "'") { stream.next(); state.inString = false; } return "string"; } stream.next(); return null; }, lineComment: "#" }; }); CodeMirror.defineMIME("text/x-hxml", "hxml"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/htmlembedded/htmlembedded.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../../addon/mode/multiplex")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../../addon/mode/multiplex"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("htmlembedded", function(config, parserConfig) { var closeComment = parserConfig.closeComment || "--%>" return CodeMirror.multiplexingMode(CodeMirror.getMode(config, "htmlmixed"), { open: parserConfig.openComment || "<%--", close: closeComment, delimStyle: "comment", mode: {token: function(stream) { stream.skipTo(closeComment) || stream.skipToEnd() return "comment" }} }, { open: parserConfig.open || parserConfig.scriptStartRegex || "<%", close: parserConfig.close || parserConfig.scriptEndRegex || "%>", mode: CodeMirror.getMode(config, parserConfig.scriptingModeSpec) }); }, "htmlmixed"); CodeMirror.defineMIME("application/x-ejs", {name: "htmlembedded", scriptingModeSpec:"javascript"}); CodeMirror.defineMIME("application/x-aspx", {name: "htmlembedded", scriptingModeSpec:"text/x-csharp"}); CodeMirror.defineMIME("application/x-jsp", {name: "htmlembedded", scriptingModeSpec:"text/x-java"}); CodeMirror.defineMIME("application/x-erb", {name: "htmlembedded", scriptingModeSpec:"ruby"}); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/htmlmixed/htmlmixed.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript"), require("../css/css")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript", "../css/css"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; var defaultTags = { script: [ ["lang", /(javascript|babel)/i, "javascript"], ["type", /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i, "javascript"], ["type", /./, "text/plain"], [null, null, "javascript"] ], style: [ ["lang", /^css$/i, "css"], ["type", /^(text\/)?(x-)?(stylesheet|css)$/i, "css"], ["type", /./, "text/plain"], [null, null, "css"] ] }; function maybeBackup(stream, pat, style) { var cur = stream.current(), close = cur.search(pat); if (close > -1) { stream.backUp(cur.length - close); } else if (cur.match(/<\/?$/)) { stream.backUp(cur.length); if (!stream.match(pat, false)) stream.match(cur); } return style; } var attrRegexpCache = {}; function getAttrRegexp(attr) { var regexp = attrRegexpCache[attr]; if (regexp) return regexp; return attrRegexpCache[attr] = new RegExp("\\s+" + attr + "\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"); } function getAttrValue(text, attr) { var match = text.match(getAttrRegexp(attr)) return match ? /^\s*(.*?)\s*$/.exec(match[2])[1] : "" } function getTagRegexp(tagName, anchored) { return new RegExp((anchored ? "^" : "") + "<\/\\s*" + tagName + "\\s*>", "i"); } function addTags(from, to) { for (var tag in from) { var dest = to[tag] || (to[tag] = []); var source = from[tag]; for (var i = source.length - 1; i >= 0; i--) dest.unshift(source[i]) } } function findMatchingMode(tagInfo, tagText) { for (var i = 0; i < tagInfo.length; i++) { var spec = tagInfo[i]; if (!spec[0] || spec[1].test(getAttrValue(tagText, spec[0]))) return spec[2]; } } CodeMirror.defineMode("htmlmixed", function (config, parserConfig) { var htmlMode = CodeMirror.getMode(config, { name: "xml", htmlMode: true, multilineTagIndentFactor: parserConfig.multilineTagIndentFactor, multilineTagIndentPastTag: parserConfig.multilineTagIndentPastTag, allowMissingTagName: parserConfig.allowMissingTagName, }); var tags = {}; var configTags = parserConfig && parserConfig.tags, configScript = parserConfig && parserConfig.scriptTypes; addTags(defaultTags, tags); if (configTags) addTags(configTags, tags); if (configScript) for (var i = configScript.length - 1; i >= 0; i--) tags.script.unshift(["type", configScript[i].matches, configScript[i].mode]) function html(stream, state) { var style = htmlMode.token(stream, state.htmlState), tag = /\btag\b/.test(style), tagName if (tag && !/[<>\s\/]/.test(stream.current()) && (tagName = state.htmlState.tagName && state.htmlState.tagName.toLowerCase()) && tags.hasOwnProperty(tagName)) { state.inTag = tagName + " " } else if (state.inTag && tag && />$/.test(stream.current())) { var inTag = /^([\S]+) (.*)/.exec(state.inTag) state.inTag = null var modeSpec = stream.current() == ">" && findMatchingMode(tags[inTag[1]], inTag[2]) var mode = CodeMirror.getMode(config, modeSpec) var endTagA = getTagRegexp(inTag[1], true), endTag = getTagRegexp(inTag[1], false); state.token = function (stream, state) { if (stream.match(endTagA, false)) { state.token = html; state.localState = state.localMode = null; return null; } return maybeBackup(stream, endTag, state.localMode.token(stream, state.localState)); }; state.localMode = mode; state.localState = CodeMirror.startState(mode, htmlMode.indent(state.htmlState, "", "")); } else if (state.inTag) { state.inTag += stream.current() if (stream.eol()) state.inTag += " " } return style; }; return { startState: function () { var state = CodeMirror.startState(htmlMode); return {token: html, inTag: null, localMode: null, localState: null, htmlState: state}; }, copyState: function (state) { var local; if (state.localState) { local = CodeMirror.copyState(state.localMode, state.localState); } return {token: state.token, inTag: state.inTag, localMode: state.localMode, localState: local, htmlState: CodeMirror.copyState(htmlMode, state.htmlState)}; }, token: function (stream, state) { return state.token(stream, state); }, indent: function (state, textAfter, line) { if (!state.localMode || /^\s*<\//.test(textAfter)) return htmlMode.indent(state.htmlState, textAfter, line); else if (state.localMode.indent) return state.localMode.indent(state.localState, textAfter, line); else return CodeMirror.Pass; }, innerMode: function (state) { return {state: state.localState || state.htmlState, mode: state.localMode || htmlMode}; } }; }, "xml", "javascript", "css"); CodeMirror.defineMIME("text/html", "htmlmixed"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/http/http.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("http", function() { function failFirstLine(stream, state) { stream.skipToEnd(); state.cur = header; return "error"; } function start(stream, state) { if (stream.match(/^HTTP\/\d\.\d/)) { state.cur = responseStatusCode; return "keyword"; } else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) { state.cur = requestPath; return "keyword"; } else { return failFirstLine(stream, state); } } function responseStatusCode(stream, state) { var code = stream.match(/^\d+/); if (!code) return failFirstLine(stream, state); state.cur = responseStatusText; var status = Number(code[0]); if (status >= 100 && status < 200) { return "positive informational"; } else if (status >= 200 && status < 300) { return "positive success"; } else if (status >= 300 && status < 400) { return "positive redirect"; } else if (status >= 400 && status < 500) { return "negative client-error"; } else if (status >= 500 && status < 600) { return "negative server-error"; } else { return "error"; } } function responseStatusText(stream, state) { stream.skipToEnd(); state.cur = header; return null; } function requestPath(stream, state) { stream.eatWhile(/\S/); state.cur = requestProtocol; return "string-2"; } function requestProtocol(stream, state) { if (stream.match(/^HTTP\/\d\.\d$/)) { state.cur = header; return "keyword"; } else { return failFirstLine(stream, state); } } function header(stream) { if (stream.sol() && !stream.eat(/[ \t]/)) { if (stream.match(/^.*?:/)) { return "atom"; } else { stream.skipToEnd(); return "error"; } } else { stream.skipToEnd(); return "string"; } } function body(stream) { stream.skipToEnd(); return null; } return { token: function(stream, state) { var cur = state.cur; if (cur != header && cur != body && stream.eatSpace()) return null; return cur(stream, state); }, blankLine: function(state) { state.cur = body; }, startState: function() { return {cur: start}; } }; }); CodeMirror.defineMIME("message/http", "http"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/idl/idl.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function wordRegexp(words) { return new RegExp('^((' + words.join(')|(') + '))\\b', 'i'); }; var builtinArray = [ 'a_correlate', 'abs', 'acos', 'adapt_hist_equal', 'alog', 'alog2', 'alog10', 'amoeba', 'annotate', 'app_user_dir', 'app_user_dir_query', 'arg_present', 'array_equal', 'array_indices', 'arrow', 'ascii_template', 'asin', 'assoc', 'atan', 'axis', 'axis', 'bandpass_filter', 'bandreject_filter', 'barplot', 'bar_plot', 'beseli', 'beselj', 'beselk', 'besely', 'beta', 'biginteger', 'bilinear', 'bin_date', 'binary_template', 'bindgen', 'binomial', 'bit_ffs', 'bit_population', 'blas_axpy', 'blk_con', 'boolarr', 'boolean', 'boxplot', 'box_cursor', 'breakpoint', 'broyden', 'bubbleplot', 'butterworth', 'bytarr', 'byte', 'byteorder', 'bytscl', 'c_correlate', 'calendar', 'caldat', 'call_external', 'call_function', 'call_method', 'call_procedure', 'canny', 'catch', 'cd', 'cdf', 'ceil', 'chebyshev', 'check_math', 'chisqr_cvf', 'chisqr_pdf', 'choldc', 'cholsol', 'cindgen', 'cir_3pnt', 'clipboard', 'close', 'clust_wts', 'cluster', 'cluster_tree', 'cmyk_convert', 'code_coverage', 'color_convert', 'color_exchange', 'color_quan', 'color_range_map', 'colorbar', 'colorize_sample', 'colormap_applicable', 'colormap_gradient', 'colormap_rotation', 'colortable', 'comfit', 'command_line_args', 'common', 'compile_opt', 'complex', 'complexarr', 'complexround', 'compute_mesh_normals', 'cond', 'congrid', 'conj', 'constrained_min', 'contour', 'contour', 'convert_coord', 'convol', 'convol_fft', 'coord2to3', 'copy_lun', 'correlate', 'cos', 'cosh', 'cpu', 'cramer', 'createboxplotdata', 'create_cursor', 'create_struct', 'create_view', 'crossp', 'crvlength', 'ct_luminance', 'cti_test', 'cursor', 'curvefit', 'cv_coord', 'cvttobm', 'cw_animate', 'cw_animate_getp', 'cw_animate_load', 'cw_animate_run', 'cw_arcball', 'cw_bgroup', 'cw_clr_index', 'cw_colorsel', 'cw_defroi', 'cw_field', 'cw_filesel', 'cw_form', 'cw_fslider', 'cw_light_editor', 'cw_light_editor_get', 'cw_light_editor_set', 'cw_orient', 'cw_palette_editor', 'cw_palette_editor_get', 'cw_palette_editor_set', 'cw_pdmenu', 'cw_rgbslider', 'cw_tmpl', 'cw_zoom', 'db_exists', 'dblarr', 'dcindgen', 'dcomplex', 'dcomplexarr', 'define_key', 'define_msgblk', 'define_msgblk_from_file', 'defroi', 'defsysv', 'delvar', 'dendro_plot', 'dendrogram', 'deriv', 'derivsig', 'determ', 'device', 'dfpmin', 'diag_matrix', 'dialog_dbconnect', 'dialog_message', 'dialog_pickfile', 'dialog_printersetup', 'dialog_printjob', 'dialog_read_image', 'dialog_write_image', 'dictionary', 'digital_filter', 'dilate', 'dindgen', 'dissolve', 'dist', 'distance_measure', 'dlm_load', 'dlm_register', 'doc_library', 'double', 'draw_roi', 'edge_dog', 'efont', 'eigenql', 'eigenvec', 'ellipse', 'elmhes', 'emboss', 'empty', 'enable_sysrtn', 'eof', 'eos', 'erase', 'erf', 'erfc', 'erfcx', 'erode', 'errorplot', 'errplot', 'estimator_filter', 'execute', 'exit', 'exp', 'expand', 'expand_path', 'expint', 'extract', 'extract_slice', 'f_cvf', 'f_pdf', 'factorial', 'fft', 'file_basename', 'file_chmod', 'file_copy', 'file_delete', 'file_dirname', 'file_expand_path', 'file_gunzip', 'file_gzip', 'file_info', 'file_lines', 'file_link', 'file_mkdir', 'file_move', 'file_poll_input', 'file_readlink', 'file_same', 'file_search', 'file_tar', 'file_test', 'file_untar', 'file_unzip', 'file_which', 'file_zip', 'filepath', 'findgen', 'finite', 'fix', 'flick', 'float', 'floor', 'flow3', 'fltarr', 'flush', 'format_axis_values', 'forward_function', 'free_lun', 'fstat', 'fulstr', 'funct', 'function', 'fv_test', 'fx_root', 'fz_roots', 'gamma', 'gamma_ct', 'gauss_cvf', 'gauss_pdf', 'gauss_smooth', 'gauss2dfit', 'gaussfit', 'gaussian_function', 'gaussint', 'get_drive_list', 'get_dxf_objects', 'get_kbrd', 'get_login_info', 'get_lun', 'get_screen_size', 'getenv', 'getwindows', 'greg2jul', 'grib', 'grid_input', 'grid_tps', 'grid3', 'griddata', 'gs_iter', 'h_eq_ct', 'h_eq_int', 'hanning', 'hash', 'hdf', 'hdf5', 'heap_free', 'heap_gc', 'heap_nosave', 'heap_refcount', 'heap_save', 'help', 'hilbert', 'hist_2d', 'hist_equal', 'histogram', 'hls', 'hough', 'hqr', 'hsv', 'i18n_multibytetoutf8', 'i18n_multibytetowidechar', 'i18n_utf8tomultibyte', 'i18n_widechartomultibyte', 'ibeta', 'icontour', 'iconvertcoord', 'idelete', 'identity', 'idl_base64', 'idl_container', 'idl_validname', 'idlexbr_assistant', 'idlitsys_createtool', 'idlunit', 'iellipse', 'igamma', 'igetcurrent', 'igetdata', 'igetid', 'igetproperty', 'iimage', 'image', 'image_cont', 'image_statistics', 'image_threshold', 'imaginary', 'imap', 'indgen', 'int_2d', 'int_3d', 'int_tabulated', 'intarr', 'interpol', 'interpolate', 'interval_volume', 'invert', 'ioctl', 'iopen', 'ir_filter', 'iplot', 'ipolygon', 'ipolyline', 'iputdata', 'iregister', 'ireset', 'iresolve', 'irotate', 'isa', 'isave', 'iscale', 'isetcurrent', 'isetproperty', 'ishft', 'isocontour', 'isosurface', 'isurface', 'itext', 'itranslate', 'ivector', 'ivolume', 'izoom', 'journal', 'json_parse', 'json_serialize', 'jul2greg', 'julday', 'keyword_set', 'krig2d', 'kurtosis', 'kw_test', 'l64indgen', 'la_choldc', 'la_cholmprove', 'la_cholsol', 'la_determ', 'la_eigenproblem', 'la_eigenql', 'la_eigenvec', 'la_elmhes', 'la_gm_linear_model', 'la_hqr', 'la_invert', 'la_least_square_equality', 'la_least_squares', 'la_linear_equation', 'la_ludc', 'la_lumprove', 'la_lusol', 'la_svd', 'la_tridc', 'la_trimprove', 'la_triql', 'la_trired', 'la_trisol', 'label_date', 'label_region', 'ladfit', 'laguerre', 'lambda', 'lambdap', 'lambertw', 'laplacian', 'least_squares_filter', 'leefilt', 'legend', 'legendre', 'linbcg', 'lindgen', 'linfit', 'linkimage', 'list', 'll_arc_distance', 'lmfit', 'lmgr', 'lngamma', 'lnp_test', 'loadct', 'locale_get', 'logical_and', 'logical_or', 'logical_true', 'lon64arr', 'lonarr', 'long', 'long64', 'lsode', 'lu_complex', 'ludc', 'lumprove', 'lusol', 'm_correlate', 'machar', 'make_array', 'make_dll', 'make_rt', 'map', 'mapcontinents', 'mapgrid', 'map_2points', 'map_continents', 'map_grid', 'map_image', 'map_patch', 'map_proj_forward', 'map_proj_image', 'map_proj_info', 'map_proj_init', 'map_proj_inverse', 'map_set', 'matrix_multiply', 'matrix_power', 'max', 'md_test', 'mean', 'meanabsdev', 'mean_filter', 'median', 'memory', 'mesh_clip', 'mesh_decimate', 'mesh_issolid', 'mesh_merge', 'mesh_numtriangles', 'mesh_obj', 'mesh_smooth', 'mesh_surfacearea', 'mesh_validate', 'mesh_volume', 'message', 'min', 'min_curve_surf', 'mk_html_help', 'modifyct', 'moment', 'morph_close', 'morph_distance', 'morph_gradient', 'morph_hitormiss', 'morph_open', 'morph_thin', 'morph_tophat', 'multi', 'n_elements', 'n_params', 'n_tags', 'ncdf', 'newton', 'noise_hurl', 'noise_pick', 'noise_scatter', 'noise_slur', 'norm', 'obj_class', 'obj_destroy', 'obj_hasmethod', 'obj_isa', 'obj_new', 'obj_valid', 'objarr', 'on_error', 'on_ioerror', 'online_help', 'openr', 'openu', 'openw', 'oplot', 'oploterr', 'orderedhash', 'p_correlate', 'parse_url', 'particle_trace', 'path_cache', 'path_sep', 'pcomp', 'plot', 'plot3d', 'plot', 'plot_3dbox', 'plot_field', 'ploterr', 'plots', 'polar_contour', 'polar_surface', 'polyfill', 'polyshade', 'pnt_line', 'point_lun', 'polarplot', 'poly', 'poly_2d', 'poly_area', 'poly_fit', 'polyfillv', 'polygon', 'polyline', 'polywarp', 'popd', 'powell', 'pref_commit', 'pref_get', 'pref_set', 'prewitt', 'primes', 'print', 'printf', 'printd', 'pro', 'product', 'profile', 'profiler', 'profiles', 'project_vol', 'ps_show_fonts', 'psafm', 'pseudo', 'ptr_free', 'ptr_new', 'ptr_valid', 'ptrarr', 'pushd', 'qgrid3', 'qhull', 'qromb', 'qromo', 'qsimp', 'query_*', 'query_ascii', 'query_bmp', 'query_csv', 'query_dicom', 'query_gif', 'query_image', 'query_jpeg', 'query_jpeg2000', 'query_mrsid', 'query_pict', 'query_png', 'query_ppm', 'query_srf', 'query_tiff', 'query_video', 'query_wav', 'r_correlate', 'r_test', 'radon', 'randomn', 'randomu', 'ranks', 'rdpix', 'read', 'readf', 'read_ascii', 'read_binary', 'read_bmp', 'read_csv', 'read_dicom', 'read_gif', 'read_image', 'read_interfile', 'read_jpeg', 'read_jpeg2000', 'read_mrsid', 'read_pict', 'read_png', 'read_ppm', 'read_spr', 'read_srf', 'read_sylk', 'read_tiff', 'read_video', 'read_wav', 'read_wave', 'read_x11_bitmap', 'read_xwd', 'reads', 'readu', 'real_part', 'rebin', 'recall_commands', 'recon3', 'reduce_colors', 'reform', 'region_grow', 'register_cursor', 'regress', 'replicate', 'replicate_inplace', 'resolve_all', 'resolve_routine', 'restore', 'retall', 'return', 'reverse', 'rk4', 'roberts', 'rot', 'rotate', 'round', 'routine_filepath', 'routine_info', 'rs_test', 's_test', 'save', 'savgol', 'scale3', 'scale3d', 'scatterplot', 'scatterplot3d', 'scope_level', 'scope_traceback', 'scope_varfetch', 'scope_varname', 'search2d', 'search3d', 'sem_create', 'sem_delete', 'sem_lock', 'sem_release', 'set_plot', 'set_shading', 'setenv', 'sfit', 'shade_surf', 'shade_surf_irr', 'shade_volume', 'shift', 'shift_diff', 'shmdebug', 'shmmap', 'shmunmap', 'shmvar', 'show3', 'showfont', 'signum', 'simplex', 'sin', 'sindgen', 'sinh', 'size', 'skewness', 'skip_lun', 'slicer3', 'slide_image', 'smooth', 'sobel', 'socket', 'sort', 'spawn', 'sph_4pnt', 'sph_scat', 'spher_harm', 'spl_init', 'spl_interp', 'spline', 'spline_p', 'sprsab', 'sprsax', 'sprsin', 'sprstp', 'sqrt', 'standardize', 'stddev', 'stop', 'strarr', 'strcmp', 'strcompress', 'streamline', 'streamline', 'stregex', 'stretch', 'string', 'strjoin', 'strlen', 'strlowcase', 'strmatch', 'strmessage', 'strmid', 'strpos', 'strput', 'strsplit', 'strtrim', 'struct_assign', 'struct_hide', 'strupcase', 'surface', 'surface', 'surfr', 'svdc', 'svdfit', 'svsol', 'swap_endian', 'swap_endian_inplace', 'symbol', 'systime', 't_cvf', 't_pdf', 't3d', 'tag_names', 'tan', 'tanh', 'tek_color', 'temporary', 'terminal_size', 'tetra_clip', 'tetra_surface', 'tetra_volume', 'text', 'thin', 'thread', 'threed', 'tic', 'time_test2', 'timegen', 'timer', 'timestamp', 'timestamptovalues', 'tm_test', 'toc', 'total', 'trace', 'transpose', 'tri_surf', 'triangulate', 'trigrid', 'triql', 'trired', 'trisol', 'truncate_lun', 'ts_coef', 'ts_diff', 'ts_fcast', 'ts_smooth', 'tv', 'tvcrs', 'tvlct', 'tvrd', 'tvscl', 'typename', 'uindgen', 'uint', 'uintarr', 'ul64indgen', 'ulindgen', 'ulon64arr', 'ulonarr', 'ulong', 'ulong64', 'uniq', 'unsharp_mask', 'usersym', 'value_locate', 'variance', 'vector', 'vector_field', 'vel', 'velovect', 'vert_t3d', 'voigt', 'volume', 'voronoi', 'voxel_proj', 'wait', 'warp_tri', 'watershed', 'wdelete', 'wf_draw', 'where', 'widget_base', 'widget_button', 'widget_combobox', 'widget_control', 'widget_displaycontextmenu', 'widget_draw', 'widget_droplist', 'widget_event', 'widget_info', 'widget_label', 'widget_list', 'widget_propertysheet', 'widget_slider', 'widget_tab', 'widget_table', 'widget_text', 'widget_tree', 'widget_tree_move', 'widget_window', 'wiener_filter', 'window', 'window', 'write_bmp', 'write_csv', 'write_gif', 'write_image', 'write_jpeg', 'write_jpeg2000', 'write_nrif', 'write_pict', 'write_png', 'write_ppm', 'write_spr', 'write_srf', 'write_sylk', 'write_tiff', 'write_video', 'write_wav', 'write_wave', 'writeu', 'wset', 'wshow', 'wtn', 'wv_applet', 'wv_cwt', 'wv_cw_wavelet', 'wv_denoise', 'wv_dwt', 'wv_fn_coiflet', 'wv_fn_daubechies', 'wv_fn_gaussian', 'wv_fn_haar', 'wv_fn_morlet', 'wv_fn_paul', 'wv_fn_symlet', 'wv_import_data', 'wv_import_wavelet', 'wv_plot3d_wps', 'wv_plot_multires', 'wv_pwt', 'wv_tool_denoise', 'xbm_edit', 'xdisplayfile', 'xdxf', 'xfont', 'xinteranimate', 'xloadct', 'xmanager', 'xmng_tmpl', 'xmtool', 'xobjview', 'xobjview_rotate', 'xobjview_write_image', 'xpalette', 'xpcolor', 'xplot3d', 'xregistered', 'xroi', 'xsq_test', 'xsurface', 'xvaredit', 'xvolume', 'xvolume_rotate', 'xvolume_write_image', 'xyouts', 'zlib_compress', 'zlib_uncompress', 'zoom', 'zoom_24' ]; var builtins = wordRegexp(builtinArray); var keywordArray = [ 'begin', 'end', 'endcase', 'endfor', 'endwhile', 'endif', 'endrep', 'endforeach', 'break', 'case', 'continue', 'for', 'foreach', 'goto', 'if', 'then', 'else', 'repeat', 'until', 'switch', 'while', 'do', 'pro', 'function' ]; var keywords = wordRegexp(keywordArray); CodeMirror.registerHelper("hintWords", "idl", builtinArray.concat(keywordArray)); var identifiers = new RegExp('^[_a-z\xa1-\uffff][_a-z0-9\xa1-\uffff]*', 'i'); var singleOperators = /[+\-*&=<>\/@#~$]/; var boolOperators = new RegExp('(and|or|eq|lt|le|gt|ge|ne|not)', 'i'); function tokenBase(stream) { // whitespaces if (stream.eatSpace()) return null; // Handle one line Comments if (stream.match(';')) { stream.skipToEnd(); return 'comment'; } // Handle Number Literals if (stream.match(/^[0-9\.+-]/, false)) { if (stream.match(/^[+-]?0x[0-9a-fA-F]+/)) return 'number'; if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)) return 'number'; if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) return 'number'; } // Handle Strings if (stream.match(/^"([^"]|(""))*"/)) { return 'string'; } if (stream.match(/^'([^']|(''))*'/)) { return 'string'; } // Handle words if (stream.match(keywords)) { return 'keyword'; } if (stream.match(builtins)) { return 'builtin'; } if (stream.match(identifiers)) { return 'variable'; } if (stream.match(singleOperators) || stream.match(boolOperators)) { return 'operator'; } // Handle non-detected items stream.next(); return null; }; CodeMirror.defineMode('idl', function() { return { token: function(stream) { return tokenBase(stream); } }; }); CodeMirror.defineMIME('text/x-idl', 'idl'); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/javascript/javascript.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("javascript", function(config, parserConfig) { var indentUnit = config.indentUnit; var statementIndent = parserConfig.statementIndent; var jsonldMode = parserConfig.jsonld; var jsonMode = parserConfig.json || jsonldMode; var trackScope = parserConfig.trackScope !== false var isTS = parserConfig.typescript; var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/; // Tokenizer var keywords = function(){ function kw(type) {return {type: type, style: "keyword"};} var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"), D = kw("keyword d"); var operator = kw("operator"), atom = {type: "atom", style: "atom"}; return { "if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B, "return": D, "break": D, "continue": D, "new": kw("new"), "delete": C, "void": C, "throw": C, "debugger": kw("debugger"), "var": kw("var"), "const": kw("var"), "let": kw("var"), "function": kw("function"), "catch": kw("catch"), "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"), "in": operator, "typeof": operator, "instanceof": operator, "true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom, "this": kw("this"), "class": kw("class"), "super": kw("atom"), "yield": C, "export": kw("export"), "import": kw("import"), "extends": C, "await": C }; }(); var isOperatorChar = /[+\-*&%=<>!?|~^@]/; var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/; function readRegexp(stream) { var escaped = false, next, inSet = false; while ((next = stream.next()) != null) { if (!escaped) { if (next == "/" && !inSet) return; if (next == "[") inSet = true; else if (inSet && next == "]") inSet = false; } escaped = !escaped && next == "\\"; } } // Used as scratch variables to communicate multiple values without // consing up tons of objects. var type, content; function ret(tp, style, cont) { type = tp; content = cont; return style; } function tokenBase(stream, state) { var ch = stream.next(); if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) { return ret("number", "number"); } else if (ch == "." && stream.match("..")) { return ret("spread", "meta"); } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) { return ret(ch); } else if (ch == "=" && stream.eat(">")) { return ret("=>", "operator"); } else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) { return ret("number", "number"); } else if (/\d/.test(ch)) { stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/); return ret("number", "number"); } else if (ch == "/") { if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } else if (stream.eat("/")) { stream.skipToEnd(); return ret("comment", "comment"); } else if (expressionAllowed(stream, state, 1)) { readRegexp(stream); stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/); return ret("regexp", "string-2"); } else { stream.eat("="); return ret("operator", "operator", stream.current()); } } else if (ch == "`") { state.tokenize = tokenQuasi; return tokenQuasi(stream, state); } else if (ch == "#" && stream.peek() == "!") { stream.skipToEnd(); return ret("meta", "meta"); } else if (ch == "#" && stream.eatWhile(wordRE)) { return ret("variable", "property") } else if (ch == "<" && stream.match("!--") || (ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start)))) { stream.skipToEnd() return ret("comment", "comment") } else if (isOperatorChar.test(ch)) { if (ch != ">" || !state.lexical || state.lexical.type != ">") { if (stream.eat("=")) { if (ch == "!" || ch == "=") stream.eat("=") } else if (/[<>*+\-|&?]/.test(ch)) { stream.eat(ch) if (ch == ">") stream.eat(ch) } } if (ch == "?" && stream.eat(".")) return ret(".") return ret("operator", "operator", stream.current()); } else if (wordRE.test(ch)) { stream.eatWhile(wordRE); var word = stream.current() if (state.lastType != ".") { if (keywords.propertyIsEnumerable(word)) { var kw = keywords[word] return ret(kw.type, kw.style, word) } if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false)) return ret("async", "keyword", word) } return ret("variable", "variable", word) } } function tokenString(quote) { return function(stream, state) { var escaped = false, next; if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)){ state.tokenize = tokenBase; return ret("jsonld-keyword", "meta"); } while ((next = stream.next()) != null) { if (next == quote && !escaped) break; escaped = !escaped && next == "\\"; } if (!escaped) state.tokenize = tokenBase; return ret("string", "string"); }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return ret("comment", "comment"); } function tokenQuasi(stream, state) { var escaped = false, next; while ((next = stream.next()) != null) { if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) { state.tokenize = tokenBase; break; } escaped = !escaped && next == "\\"; } return ret("quasi", "string-2", stream.current()); } var brackets = "([{}])"; // This is a crude lookahead trick to try and notice that we're // parsing the argument patterns for a fat-arrow function before we // actually hit the arrow token. It only works if the arrow is on // the same line as the arguments and there's no strange noise // (comments) in between. Fallback is to only notice when we hit the // arrow, and not declare the arguments as locals for the arrow // body. function findFatArrow(stream, state) { if (state.fatArrowAt) state.fatArrowAt = null; var arrow = stream.string.indexOf("=>", stream.start); if (arrow < 0) return; if (isTS) { // Try to skip TypeScript return type declarations after the arguments var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow)) if (m) arrow = m.index } var depth = 0, sawSomething = false; for (var pos = arrow - 1; pos >= 0; --pos) { var ch = stream.string.charAt(pos); var bracket = brackets.indexOf(ch); if (bracket >= 0 && bracket < 3) { if (!depth) { ++pos; break; } if (--depth == 0) { if (ch == "(") sawSomething = true; break; } } else if (bracket >= 3 && bracket < 6) { ++depth; } else if (wordRE.test(ch)) { sawSomething = true; } else if (/["'\/`]/.test(ch)) { for (;; --pos) { if (pos == 0) return var next = stream.string.charAt(pos - 1) if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break } } } else if (sawSomething && !depth) { ++pos; break; } } if (sawSomething && !depth) state.fatArrowAt = pos; } // Parser var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true, "this": true, "import": true, "jsonld-keyword": true}; function JSLexical(indented, column, type, align, prev, info) { this.indented = indented; this.column = column; this.type = type; this.prev = prev; this.info = info; if (align != null) this.align = align; } function inScope(state, varname) { if (!trackScope) return false for (var v = state.localVars; v; v = v.next) if (v.name == varname) return true; for (var cx = state.context; cx; cx = cx.prev) { for (var v = cx.vars; v; v = v.next) if (v.name == varname) return true; } } function parseJS(state, style, type, content, stream) { var cc = state.cc; // Communicate our context to the combinators. // (Less wasteful than consing up a hundred closures on every call.) cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; cx.style = style; if (!state.lexical.hasOwnProperty("align")) state.lexical.align = true; while(true) { var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement; if (combinator(type, content)) { while(cc.length && cc[cc.length - 1].lex) cc.pop()(); if (cx.marked) return cx.marked; if (type == "variable" && inScope(state, content)) return "variable-2"; return style; } } } // Combinator utils var cx = {state: null, column: null, marked: null, cc: null}; function pass() { for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]); } function cont() { pass.apply(null, arguments); return true; } function inList(name, list) { for (var v = list; v; v = v.next) if (v.name == name) return true return false; } function register(varname) { var state = cx.state; cx.marked = "def"; if (!trackScope) return if (state.context) { if (state.lexical.info == "var" && state.context && state.context.block) { // FIXME function decls are also not block scoped var newContext = registerVarScoped(varname, state.context) if (newContext != null) { state.context = newContext return } } else if (!inList(varname, state.localVars)) { state.localVars = new Var(varname, state.localVars) return } } // Fall through means this is global if (parserConfig.globalVars && !inList(varname, state.globalVars)) state.globalVars = new Var(varname, state.globalVars) } function registerVarScoped(varname, context) { if (!context) { return null } else if (context.block) { var inner = registerVarScoped(varname, context.prev) if (!inner) return null if (inner == context.prev) return context return new Context(inner, context.vars, true) } else if (inList(varname, context.vars)) { return context } else { return new Context(context.prev, new Var(varname, context.vars), false) } } function isModifier(name) { return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly" } // Combinators function Context(prev, vars, block) { this.prev = prev; this.vars = vars; this.block = block } function Var(name, next) { this.name = name; this.next = next } var defaultVars = new Var("this", new Var("arguments", null)) function pushcontext() { cx.state.context = new Context(cx.state.context, cx.state.localVars, false) cx.state.localVars = defaultVars } function pushblockcontext() { cx.state.context = new Context(cx.state.context, cx.state.localVars, true) cx.state.localVars = null } pushcontext.lex = pushblockcontext.lex = true function popcontext() { cx.state.localVars = cx.state.context.vars cx.state.context = cx.state.context.prev } popcontext.lex = true function pushlex(type, info) { var result = function() { var state = cx.state, indent = state.indented; if (state.lexical.type == "stat") indent = state.lexical.indented; else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev) indent = outer.indented; state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info); }; result.lex = true; return result; } function poplex() { var state = cx.state; if (state.lexical.prev) { if (state.lexical.type == ")") state.indented = state.lexical.indented; state.lexical = state.lexical.prev; } } poplex.lex = true; function expect(wanted) { function exp(type) { if (type == wanted) return cont(); else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass(); else return cont(exp); }; return exp; } function statement(type, value) { if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex); if (type == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex); if (type == "keyword b") return cont(pushlex("form"), statement, poplex); if (type == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex); if (type == "debugger") return cont(expect(";")); if (type == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext); if (type == ";") return cont(); if (type == "if") { if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex) cx.state.cc.pop()(); return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse); } if (type == "function") return cont(functiondef); if (type == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex); if (type == "class" || (isTS && value == "interface")) { cx.marked = "keyword" return cont(pushlex("form", type == "class" ? type : value), className, poplex) } if (type == "variable") { if (isTS && value == "declare") { cx.marked = "keyword" return cont(statement) } else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) { cx.marked = "keyword" if (value == "enum") return cont(enumdef); else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";")); else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex) } else if (isTS && value == "namespace") { cx.marked = "keyword" return cont(pushlex("form"), expression, statement, poplex) } else if (isTS && value == "abstract") { cx.marked = "keyword" return cont(statement) } else { return cont(pushlex("stat"), maybelabel); } } if (type == "switch") return cont(pushlex("form"), parenExpr, expect("{"), pushlex("}", "switch"), pushblockcontext, block, poplex, poplex, popcontext); if (type == "case") return cont(expression, expect(":")); if (type == "default") return cont(expect(":")); if (type == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext); if (type == "export") return cont(pushlex("stat"), afterExport, poplex); if (type == "import") return cont(pushlex("stat"), afterImport, poplex); if (type == "async") return cont(statement) if (value == "@") return cont(expression, statement) return pass(pushlex("stat"), expression, expect(";"), poplex); } function maybeCatchBinding(type) { if (type == "(") return cont(funarg, expect(")")) } function expression(type, value) { return expressionInner(type, value, false); } function expressionNoComma(type, value) { return expressionInner(type, value, true); } function parenExpr(type) { if (type != "(") return pass() return cont(pushlex(")"), maybeexpression, expect(")"), poplex) } function expressionInner(type, value, noComma) { if (cx.state.fatArrowAt == cx.stream.start) { var body = noComma ? arrowBodyNoComma : arrowBody; if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext); else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext); } var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma; if (atomicTypes.hasOwnProperty(type)) return cont(maybeop); if (type == "function") return cont(functiondef, maybeop); if (type == "class" || (isTS && value == "interface")) { cx.marked = "keyword"; return cont(pushlex("form"), classExpression, poplex); } if (type == "keyword c" || type == "async") return cont(noComma ? expressionNoComma : expression); if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop); if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression); if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop); if (type == "{") return contCommasep(objprop, "}", null, maybeop); if (type == "quasi") return pass(quasi, maybeop); if (type == "new") return cont(maybeTarget(noComma)); return cont(); } function maybeexpression(type) { if (type.match(/[;\}\)\],]/)) return pass(); return pass(expression); } function maybeoperatorComma(type, value) { if (type == ",") return cont(maybeexpression); return maybeoperatorNoComma(type, value, false); } function maybeoperatorNoComma(type, value, noComma) { var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma; var expr = noComma == false ? expression : expressionNoComma; if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext); if (type == "operator") { if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me); if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false)) return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me); if (value == "?") return cont(expression, expect(":"), expr); return cont(expr); } if (type == "quasi") { return pass(quasi, me); } if (type == ";") return; if (type == "(") return contCommasep(expressionNoComma, ")", "call", me); if (type == ".") return cont(property, me); if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me); if (isTS && value == "as") { cx.marked = "keyword"; return cont(typeexpr, me) } if (type == "regexp") { cx.state.lastType = cx.marked = "operator" cx.stream.backUp(cx.stream.pos - cx.stream.start - 1) return cont(expr) } } function quasi(type, value) { if (type != "quasi") return pass(); if (value.slice(value.length - 2) != "${") return cont(quasi); return cont(maybeexpression, continueQuasi); } function continueQuasi(type) { if (type == "}") { cx.marked = "string-2"; cx.state.tokenize = tokenQuasi; return cont(quasi); } } function arrowBody(type) { findFatArrow(cx.stream, cx.state); return pass(type == "{" ? statement : expression); } function arrowBodyNoComma(type) { findFatArrow(cx.stream, cx.state); return pass(type == "{" ? statement : expressionNoComma); } function maybeTarget(noComma) { return function(type) { if (type == ".") return cont(noComma ? targetNoComma : target); else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma) else return pass(noComma ? expressionNoComma : expression); }; } function target(_, value) { if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); } } function targetNoComma(_, value) { if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); } } function maybelabel(type) { if (type == ":") return cont(poplex, statement); return pass(maybeoperatorComma, expect(";"), poplex); } function property(type) { if (type == "variable") {cx.marked = "property"; return cont();} } function objprop(type, value) { if (type == "async") { cx.marked = "property"; return cont(objprop); } else if (type == "variable" || cx.style == "keyword") { cx.marked = "property"; if (value == "get" || value == "set") return cont(getterSetter); var m // Work around fat-arrow-detection complication for detecting typescript typed arrow params if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false))) cx.state.fatArrowAt = cx.stream.pos + m[0].length return cont(afterprop); } else if (type == "number" || type == "string") { cx.marked = jsonldMode ? "property" : (cx.style + " property"); return cont(afterprop); } else if (type == "jsonld-keyword") { return cont(afterprop); } else if (isTS && isModifier(value)) { cx.marked = "keyword" return cont(objprop) } else if (type == "[") { return cont(expression, maybetype, expect("]"), afterprop); } else if (type == "spread") { return cont(expressionNoComma, afterprop); } else if (value == "*") { cx.marked = "keyword"; return cont(objprop); } else if (type == ":") { return pass(afterprop) } } function getterSetter(type) { if (type != "variable") return pass(afterprop); cx.marked = "property"; return cont(functiondef); } function afterprop(type) { if (type == ":") return cont(expressionNoComma); if (type == "(") return pass(functiondef); } function commasep(what, end, sep) { function proceed(type, value) { if (sep ? sep.indexOf(type) > -1 : type == ",") { var lex = cx.state.lexical; if (lex.info == "call") lex.pos = (lex.pos || 0) + 1; return cont(function(type, value) { if (type == end || value == end) return pass() return pass(what) }, proceed); } if (type == end || value == end) return cont(); if (sep && sep.indexOf(";") > -1) return pass(what) return cont(expect(end)); } return function(type, value) { if (type == end || value == end) return cont(); return pass(what, proceed); }; } function contCommasep(what, end, info) { for (var i = 3; i < arguments.length; i++) cx.cc.push(arguments[i]); return cont(pushlex(end, info), commasep(what, end), poplex); } function block(type) { if (type == "}") return cont(); return pass(statement, block); } function maybetype(type, value) { if (isTS) { if (type == ":") return cont(typeexpr); if (value == "?") return cont(maybetype); } } function maybetypeOrIn(type, value) { if (isTS && (type == ":" || value == "in")) return cont(typeexpr) } function mayberettype(type) { if (isTS && type == ":") { if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr) else return cont(typeexpr) } } function isKW(_, value) { if (value == "is") { cx.marked = "keyword" return cont() } } function typeexpr(type, value) { if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") { cx.marked = "keyword" return cont(value == "typeof" ? expressionNoComma : typeexpr) } if (type == "variable" || value == "void") { cx.marked = "type" return cont(afterType) } if (value == "|" || value == "&") return cont(typeexpr) if (type == "string" || type == "number" || type == "atom") return cont(afterType); if (type == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType) if (type == "{") return cont(pushlex("}"), typeprops, poplex, afterType) if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType) if (type == "<") return cont(commasep(typeexpr, ">"), typeexpr) if (type == "quasi") { return pass(quasiType, afterType); } } function maybeReturnType(type) { if (type == "=>") return cont(typeexpr) } function typeprops(type) { if (type.match(/[\}\)\]]/)) return cont() if (type == "," || type == ";") return cont(typeprops) return pass(typeprop, typeprops) } function typeprop(type, value) { if (type == "variable" || cx.style == "keyword") { cx.marked = "property" return cont(typeprop) } else if (value == "?" || type == "number" || type == "string") { return cont(typeprop) } else if (type == ":") { return cont(typeexpr) } else if (type == "[") { return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop) } else if (type == "(") { return pass(functiondecl, typeprop) } else if (!type.match(/[;\}\)\],]/)) { return cont() } } function quasiType(type, value) { if (type != "quasi") return pass(); if (value.slice(value.length - 2) != "${") return cont(quasiType); return cont(typeexpr, continueQuasiType); } function continueQuasiType(type) { if (type == "}") { cx.marked = "string-2"; cx.state.tokenize = tokenQuasi; return cont(quasiType); } } function typearg(type, value) { if (type == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg) if (type == ":") return cont(typeexpr) if (type == "spread") return cont(typearg) return pass(typeexpr) } function afterType(type, value) { if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType) if (value == "|" || type == "." || value == "&") return cont(typeexpr) if (type == "[") return cont(typeexpr, expect("]"), afterType) if (value == "extends" || value == "implements") { cx.marked = "keyword"; return cont(typeexpr) } if (value == "?") return cont(typeexpr, expect(":"), typeexpr) } function maybeTypeArgs(_, value) { if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType) } function typeparam() { return pass(typeexpr, maybeTypeDefault) } function maybeTypeDefault(_, value) { if (value == "=") return cont(typeexpr) } function vardef(_, value) { if (value == "enum") {cx.marked = "keyword"; return cont(enumdef)} return pass(pattern, maybetype, maybeAssign, vardefCont); } function pattern(type, value) { if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(pattern) } if (type == "variable") { register(value); return cont(); } if (type == "spread") return cont(pattern); if (type == "[") return contCommasep(eltpattern, "]"); if (type == "{") return contCommasep(proppattern, "}"); } function proppattern(type, value) { if (type == "variable" && !cx.stream.match(/^\s*:/, false)) { register(value); return cont(maybeAssign); } if (type == "variable") cx.marked = "property"; if (type == "spread") return cont(pattern); if (type == "}") return pass(); if (type == "[") return cont(expression, expect(']'), expect(':'), proppattern); return cont(expect(":"), pattern, maybeAssign); } function eltpattern() { return pass(pattern, maybeAssign) } function maybeAssign(_type, value) { if (value == "=") return cont(expressionNoComma); } function vardefCont(type) { if (type == ",") return cont(vardef); } function maybeelse(type, value) { if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex); } function forspec(type, value) { if (value == "await") return cont(forspec); if (type == "(") return cont(pushlex(")"), forspec1, poplex); } function forspec1(type) { if (type == "var") return cont(vardef, forspec2); if (type == "variable") return cont(forspec2); return pass(forspec2) } function forspec2(type, value) { if (type == ")") return cont() if (type == ";") return cont(forspec2) if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression, forspec2) } return pass(expression, forspec2) } function functiondef(type, value) { if (value == "*") {cx.marked = "keyword"; return cont(functiondef);} if (type == "variable") {register(value); return cont(functiondef);} if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext); if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef) } function functiondecl(type, value) { if (value == "*") {cx.marked = "keyword"; return cont(functiondecl);} if (type == "variable") {register(value); return cont(functiondecl);} if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext); if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl) } function typename(type, value) { if (type == "keyword" || type == "variable") { cx.marked = "type" return cont(typename) } else if (value == "<") { return cont(pushlex(">"), commasep(typeparam, ">"), poplex) } } function funarg(type, value) { if (value == "@") cont(expression, funarg) if (type == "spread") return cont(funarg); if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(funarg); } if (isTS && type == "this") return cont(maybetype, maybeAssign) return pass(pattern, maybetype, maybeAssign); } function classExpression(type, value) { // Class expressions may have an optional name. if (type == "variable") return className(type, value); return classNameAfter(type, value); } function className(type, value) { if (type == "variable") {register(value); return cont(classNameAfter);} } function classNameAfter(type, value) { if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter) if (value == "extends" || value == "implements" || (isTS && type == ",")) { if (value == "implements") cx.marked = "keyword"; return cont(isTS ? typeexpr : expression, classNameAfter); } if (type == "{") return cont(pushlex("}"), classBody, poplex); } function classBody(type, value) { if (type == "async" || (type == "variable" && (value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) && cx.stream.match(/^\s+[\w$\xa1-\uffff]/, false))) { cx.marked = "keyword"; return cont(classBody); } if (type == "variable" || cx.style == "keyword") { cx.marked = "property"; return cont(classfield, classBody); } if (type == "number" || type == "string") return cont(classfield, classBody); if (type == "[") return cont(expression, maybetype, expect("]"), classfield, classBody) if (value == "*") { cx.marked = "keyword"; return cont(classBody); } if (isTS && type == "(") return pass(functiondecl, classBody) if (type == ";" || type == ",") return cont(classBody); if (type == "}") return cont(); if (value == "@") return cont(expression, classBody) } function classfield(type, value) { if (value == "!") return cont(classfield) if (value == "?") return cont(classfield) if (type == ":") return cont(typeexpr, maybeAssign) if (value == "=") return cont(expressionNoComma) var context = cx.state.lexical.prev, isInterface = context && context.info == "interface" return pass(isInterface ? functiondecl : functiondef) } function afterExport(type, value) { if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); } if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); } if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";")); return pass(statement); } function exportField(type, value) { if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); } if (type == "variable") return pass(expressionNoComma, exportField); } function afterImport(type) { if (type == "string") return cont(); if (type == "(") return pass(expression); if (type == ".") return pass(maybeoperatorComma); return pass(importSpec, maybeMoreImports, maybeFrom); } function importSpec(type, value) { if (type == "{") return contCommasep(importSpec, "}"); if (type == "variable") register(value); if (value == "*") cx.marked = "keyword"; return cont(maybeAs); } function maybeMoreImports(type) { if (type == ",") return cont(importSpec, maybeMoreImports) } function maybeAs(_type, value) { if (value == "as") { cx.marked = "keyword"; return cont(importSpec); } } function maybeFrom(_type, value) { if (value == "from") { cx.marked = "keyword"; return cont(expression); } } function arrayLiteral(type) { if (type == "]") return cont(); return pass(commasep(expressionNoComma, "]")); } function enumdef() { return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex) } function enummember() { return pass(pattern, maybeAssign); } function isContinuedStatement(state, textAfter) { return state.lastType == "operator" || state.lastType == "," || isOperatorChar.test(textAfter.charAt(0)) || /[,.]/.test(textAfter.charAt(0)); } function expressionAllowed(stream, state, backUp) { return state.tokenize == tokenBase && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) || (state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0)))) } // Interface return { startState: function(basecolumn) { var state = { tokenize: tokenBase, lastType: "sof", cc: [], lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false), localVars: parserConfig.localVars, context: parserConfig.localVars && new Context(null, null, false), indented: basecolumn || 0 }; if (parserConfig.globalVars && typeof parserConfig.globalVars == "object") state.globalVars = parserConfig.globalVars; return state; }, token: function(stream, state) { if (stream.sol()) { if (!state.lexical.hasOwnProperty("align")) state.lexical.align = false; state.indented = stream.indentation(); findFatArrow(stream, state); } if (state.tokenize != tokenComment && stream.eatSpace()) return null; var style = state.tokenize(stream, state); if (type == "comment") return style; state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type; return parseJS(state, style, type, content, stream); }, indent: function(state, textAfter) { if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return CodeMirror.Pass; if (state.tokenize != tokenBase) return 0; var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top // Kludge to prevent 'maybelse' from blocking lexical scope pops if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) { var c = state.cc[i]; if (c == poplex) lexical = lexical.prev; else if (c != maybeelse && c != popcontext) break; } while ((lexical.type == "stat" || lexical.type == "form") && (firstChar == "}" || ((top = state.cc[state.cc.length - 1]) && (top == maybeoperatorComma || top == maybeoperatorNoComma) && !/^[,\.=+\-*:?[\(]/.test(textAfter)))) lexical = lexical.prev; if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat") lexical = lexical.prev; var type = lexical.type, closing = firstChar == type; if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0); else if (type == "form" && firstChar == "{") return lexical.indented; else if (type == "form") return lexical.indented + indentUnit; else if (type == "stat") return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || indentUnit : 0); else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false) return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit); else if (lexical.align) return lexical.column + (closing ? 0 : 1); else return lexical.indented + (closing ? 0 : indentUnit); }, electricInput: /^\s*(?:case .*?:|default:|\{|\})$/, blockCommentStart: jsonMode ? null : "/*", blockCommentEnd: jsonMode ? null : "*/", blockCommentContinue: jsonMode ? null : " * ", lineComment: jsonMode ? null : "//", fold: "brace", closeBrackets: "()[]{}''\"\"``", helperType: jsonMode ? "json" : "javascript", jsonldMode: jsonldMode, jsonMode: jsonMode, expressionAllowed: expressionAllowed, skipExpression: function(state) { parseJS(state, "atom", "atom", "true", new CodeMirror.StringStream("", 2, null)) } }; }); CodeMirror.registerHelper("wordChars", "javascript", /[\w$]/); CodeMirror.defineMIME("text/javascript", "javascript"); CodeMirror.defineMIME("text/ecmascript", "javascript"); CodeMirror.defineMIME("application/javascript", "javascript"); CodeMirror.defineMIME("application/x-javascript", "javascript"); CodeMirror.defineMIME("application/ecmascript", "javascript"); CodeMirror.defineMIME("application/json", { name: "javascript", json: true }); CodeMirror.defineMIME("application/x-json", { name: "javascript", json: true }); CodeMirror.defineMIME("application/manifest+json", { name: "javascript", json: true }) CodeMirror.defineMIME("application/ld+json", { name: "javascript", jsonld: true }); CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true }); CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/jinja2/jinja2.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("jinja2", function() { var keywords = ["and", "as", "block", "endblock", "by", "cycle", "debug", "else", "elif", "extends", "filter", "endfilter", "firstof", "for", "endfor", "if", "endif", "ifchanged", "endifchanged", "ifequal", "endifequal", "ifnotequal", "endifnotequal", "in", "include", "load", "not", "now", "or", "parsed", "regroup", "reversed", "spaceless", "endspaceless", "ssi", "templatetag", "openblock", "closeblock", "openvariable", "closevariable", "openbrace", "closebrace", "opencomment", "closecomment", "widthratio", "url", "with", "endwith", "get_current_language", "trans", "endtrans", "noop", "blocktrans", "endblocktrans", "get_available_languages", "get_current_language_bidi", "plural"], operator = /^[+\-*&%=<>!?|~^]/, sign = /^[:\[\(\{]/, atom = ["true", "false"], number = /^(\d[+\-\*\/])?\d+(\.\d+)?/; keywords = new RegExp("((" + keywords.join(")|(") + "))\\b"); atom = new RegExp("((" + atom.join(")|(") + "))\\b"); function tokenBase (stream, state) { var ch = stream.peek(); //Comment if (state.incomment) { if(!stream.skipTo("#}")) { stream.skipToEnd(); } else { stream.eatWhile(/\#|}/); state.incomment = false; } return "comment"; //Tag } else if (state.intag) { //After operator if(state.operator) { state.operator = false; if(stream.match(atom)) { return "atom"; } if(stream.match(number)) { return "number"; } } //After sign if(state.sign) { state.sign = false; if(stream.match(atom)) { return "atom"; } if(stream.match(number)) { return "number"; } } if(state.instring) { if(ch == state.instring) { state.instring = false; } stream.next(); return "string"; } else if(ch == "'" || ch == '"') { state.instring = ch; stream.next(); return "string"; } else if(stream.match(state.intag + "}") || stream.eat("-") && stream.match(state.intag + "}")) { state.intag = false; return "tag"; } else if(stream.match(operator)) { state.operator = true; return "operator"; } else if(stream.match(sign)) { state.sign = true; } else { if(stream.eat(" ") || stream.sol()) { if(stream.match(keywords)) { return "keyword"; } if(stream.match(atom)) { return "atom"; } if(stream.match(number)) { return "number"; } if(stream.sol()) { stream.next(); } } else { stream.next(); } } return "variable"; } else if (stream.eat("{")) { if (stream.eat("#")) { state.incomment = true; if(!stream.skipTo("#}")) { stream.skipToEnd(); } else { stream.eatWhile(/\#|}/); state.incomment = false; } return "comment"; //Open tag } else if (ch = stream.eat(/\{|%/)) { //Cache close tag state.intag = ch; if(ch == "{") { state.intag = "}"; } stream.eat("-"); return "tag"; } } stream.next(); }; return { startState: function () { return {tokenize: tokenBase}; }, token: function (stream, state) { return state.tokenize(stream, state); }, blockCommentStart: "{#", blockCommentEnd: "#}" }; }); CodeMirror.defineMIME("text/jinja2", "jinja2"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/jsx/jsx.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript")) else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript"], mod) else // Plain browser env mod(CodeMirror) })(function(CodeMirror) { "use strict" // Depth means the amount of open braces in JS context, in XML // context 0 means not in tag, 1 means in tag, and 2 means in tag // and js block comment. function Context(state, mode, depth, prev) { this.state = state; this.mode = mode; this.depth = depth; this.prev = prev } function copyContext(context) { return new Context(CodeMirror.copyState(context.mode, context.state), context.mode, context.depth, context.prev && copyContext(context.prev)) } CodeMirror.defineMode("jsx", function(config, modeConfig) { var xmlMode = CodeMirror.getMode(config, {name: "xml", allowMissing: true, multilineTagIndentPastTag: false, allowMissingTagName: true}) var jsMode = CodeMirror.getMode(config, modeConfig && modeConfig.base || "javascript") function flatXMLIndent(state) { var tagName = state.tagName state.tagName = null var result = xmlMode.indent(state, "", "") state.tagName = tagName return result } function token(stream, state) { if (state.context.mode == xmlMode) return xmlToken(stream, state, state.context) else return jsToken(stream, state, state.context) } function xmlToken(stream, state, cx) { if (cx.depth == 2) { // Inside a JS /* */ comment if (stream.match(/^.*?\*\//)) cx.depth = 1 else stream.skipToEnd() return "comment" } if (stream.peek() == "{") { xmlMode.skipAttribute(cx.state) var indent = flatXMLIndent(cx.state), xmlContext = cx.state.context // If JS starts on same line as tag if (xmlContext && stream.match(/^[^>]*>\s*$/, false)) { while (xmlContext.prev && !xmlContext.startOfLine) xmlContext = xmlContext.prev // If tag starts the line, use XML indentation level if (xmlContext.startOfLine) indent -= config.indentUnit // Else use JS indentation level else if (cx.prev.state.lexical) indent = cx.prev.state.lexical.indented // Else if inside of tag } else if (cx.depth == 1) { indent += config.indentUnit } state.context = new Context(CodeMirror.startState(jsMode, indent), jsMode, 0, state.context) return null } if (cx.depth == 1) { // Inside of tag if (stream.peek() == "<") { // Tag inside of tag xmlMode.skipAttribute(cx.state) state.context = new Context(CodeMirror.startState(xmlMode, flatXMLIndent(cx.state)), xmlMode, 0, state.context) return null } else if (stream.match("//")) { stream.skipToEnd() return "comment" } else if (stream.match("/*")) { cx.depth = 2 return token(stream, state) } } var style = xmlMode.token(stream, cx.state), cur = stream.current(), stop if (/\btag\b/.test(style)) { if (/>$/.test(cur)) { if (cx.state.context) cx.depth = 0 else state.context = state.context.prev } else if (/^ -1) { stream.backUp(cur.length - stop) } return style } function jsToken(stream, state, cx) { if (stream.peek() == "<" && jsMode.expressionAllowed(stream, cx.state)) { state.context = new Context(CodeMirror.startState(xmlMode, jsMode.indent(cx.state, "", "")), xmlMode, 0, state.context) jsMode.skipExpression(cx.state) return null } var style = jsMode.token(stream, cx.state) if (!style && cx.depth != null) { var cur = stream.current() if (cur == "{") { cx.depth++ } else if (cur == "}") { if (--cx.depth == 0) state.context = state.context.prev } } return style } return { startState: function() { return {context: new Context(CodeMirror.startState(jsMode), jsMode)} }, copyState: function(state) { return {context: copyContext(state.context)} }, token: token, indent: function(state, textAfter, fullLine) { return state.context.mode.indent(state.context.state, textAfter, fullLine) }, innerMode: function(state) { return state.context } } }, "xml", "javascript") CodeMirror.defineMIME("text/jsx", "jsx") CodeMirror.defineMIME("text/typescript-jsx", {name: "jsx", base: {name: "javascript", typescript: true}}) }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/julia/julia.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("julia", function(config, parserConf) { function wordRegexp(words, end, pre) { if (typeof pre === "undefined") { pre = ""; } if (typeof end === "undefined") { end = "\\b"; } return new RegExp("^" + pre + "((" + words.join(")|(") + "))" + end); } var octChar = "\\\\[0-7]{1,3}"; var hexChar = "\\\\x[A-Fa-f0-9]{1,2}"; var sChar = "\\\\[abefnrtv0%?'\"\\\\]"; var uChar = "([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"; var asciiOperatorsList = [ "[<>]:", "[<>=]=", "<<=?", ">>>?=?", "=>", "--?>", "<--[->]?", "\\/\\/", "\\.{2,3}", "[\\.\\\\%*+\\-<>!\\/^|&]=?", "\\?", "\\$", "~", ":" ]; var operators = parserConf.operators || wordRegexp([ "[<>]:", "[<>=]=", "[!=]==", "<<=?", ">>>?=?", "=>?", "--?>", "<--[->]?", "\\/\\/", "[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?", "\\?", "\\$", "~", ":", "\\u00D7", "\\u2208", "\\u2209", "\\u220B", "\\u220C", "\\u2218", "\\u221A", "\\u221B", "\\u2229", "\\u222A", "\\u2260", "\\u2264", "\\u2265", "\\u2286", "\\u2288", "\\u228A", "\\u22C5", "\\b(in|isa)\\b(?!\.?\\()" ], ""); var delimiters = parserConf.delimiters || /^[;,()[\]{}]/; var identifiers = parserConf.identifiers || /^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/; var chars = wordRegexp([octChar, hexChar, sChar, uChar], "'"); var openersList = ["begin", "function", "type", "struct", "immutable", "let", "macro", "for", "while", "quote", "if", "else", "elseif", "try", "finally", "catch", "do"]; var closersList = ["end", "else", "elseif", "catch", "finally"]; var keywordsList = ["if", "else", "elseif", "while", "for", "begin", "let", "end", "do", "try", "catch", "finally", "return", "break", "continue", "global", "local", "const", "export", "import", "importall", "using", "function", "where", "macro", "module", "baremodule", "struct", "type", "mutable", "immutable", "quote", "typealias", "abstract", "primitive", "bitstype"]; var builtinsList = ["true", "false", "nothing", "NaN", "Inf"]; CodeMirror.registerHelper("hintWords", "julia", keywordsList.concat(builtinsList)); var openers = wordRegexp(openersList); var closers = wordRegexp(closersList); var keywords = wordRegexp(keywordsList); var builtins = wordRegexp(builtinsList); var macro = /^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/; var symbol = /^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/; var stringPrefixes = /^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/; var macroOperators = wordRegexp(asciiOperatorsList, "", "@"); var symbolOperators = wordRegexp(asciiOperatorsList, "", ":"); function inArray(state) { return (state.nestedArrays > 0); } function inGenerator(state) { return (state.nestedGenerators > 0); } function currentScope(state, n) { if (typeof(n) === "undefined") { n = 0; } if (state.scopes.length <= n) { return null; } return state.scopes[state.scopes.length - (n + 1)]; } // tokenizers function tokenBase(stream, state) { // Handle multiline comments if (stream.match('#=', false)) { state.tokenize = tokenComment; return state.tokenize(stream, state); } // Handle scope changes var leavingExpr = state.leavingExpr; if (stream.sol()) { leavingExpr = false; } state.leavingExpr = false; if (leavingExpr) { if (stream.match(/^'+/)) { return "operator"; } } if (stream.match(/\.{4,}/)) { return "error"; } else if (stream.match(/\.{1,3}/)) { return "operator"; } if (stream.eatSpace()) { return null; } var ch = stream.peek(); // Handle single line comments if (ch === '#') { stream.skipToEnd(); return "comment"; } if (ch === '[') { state.scopes.push('['); state.nestedArrays++; } if (ch === '(') { state.scopes.push('('); state.nestedGenerators++; } if (inArray(state) && ch === ']') { while (state.scopes.length && currentScope(state) !== "[") { state.scopes.pop(); } state.scopes.pop(); state.nestedArrays--; state.leavingExpr = true; } if (inGenerator(state) && ch === ')') { while (state.scopes.length && currentScope(state) !== "(") { state.scopes.pop(); } state.scopes.pop(); state.nestedGenerators--; state.leavingExpr = true; } if (inArray(state)) { if (state.lastToken == "end" && stream.match(':')) { return "operator"; } if (stream.match('end')) { return "number"; } } var match; if (match = stream.match(openers, false)) { state.scopes.push(match[0]); } if (stream.match(closers, false)) { state.scopes.pop(); } // Handle type annotations if (stream.match(/^::(?![:\$])/)) { state.tokenize = tokenAnnotation; return state.tokenize(stream, state); } // Handle symbols if (!leavingExpr && (stream.match(symbol) || stream.match(symbolOperators))) { return "builtin"; } // Handle parametric types //if (stream.match(/^{[^}]*}(?=\()/)) { // return "builtin"; //} // Handle operators and Delimiters if (stream.match(operators)) { return "operator"; } // Handle Number Literals if (stream.match(/^\.?\d/, false)) { var imMatcher = RegExp(/^im\b/); var numberLiteral = false; if (stream.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)) { numberLiteral = true; } // Integers if (stream.match(/^0x[0-9a-f_]+/i)) { numberLiteral = true; } // Hex if (stream.match(/^0b[01_]+/i)) { numberLiteral = true; } // Binary if (stream.match(/^0o[0-7_]+/i)) { numberLiteral = true; } // Octal // Floats if (stream.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)) { numberLiteral = true; } if (stream.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)) { numberLiteral = true; } // Decimal if (numberLiteral) { // Integer literals may be "long" stream.match(imMatcher); state.leavingExpr = true; return "number"; } } // Handle Chars if (stream.match('\'')) { state.tokenize = tokenChar; return state.tokenize(stream, state); } // Handle Strings if (stream.match(stringPrefixes)) { state.tokenize = tokenStringFactory(stream.current()); return state.tokenize(stream, state); } if (stream.match(macro) || stream.match(macroOperators)) { return "meta"; } if (stream.match(delimiters)) { return null; } if (stream.match(keywords)) { return "keyword"; } if (stream.match(builtins)) { return "builtin"; } var isDefinition = state.isDefinition || state.lastToken == "function" || state.lastToken == "macro" || state.lastToken == "type" || state.lastToken == "struct" || state.lastToken == "immutable"; if (stream.match(identifiers)) { if (isDefinition) { if (stream.peek() === '.') { state.isDefinition = true; return "variable"; } state.isDefinition = false; return "def"; } state.leavingExpr = true; return "variable"; } // Handle non-detected items stream.next(); return "error"; } function tokenAnnotation(stream, state) { stream.match(/.*?(?=[,;{}()=\s]|$)/); if (stream.match('{')) { state.nestedParameters++; } else if (stream.match('}') && state.nestedParameters > 0) { state.nestedParameters--; } if (state.nestedParameters > 0) { stream.match(/.*?(?={|})/) || stream.next(); } else if (state.nestedParameters == 0) { state.tokenize = tokenBase; } return "builtin"; } function tokenComment(stream, state) { if (stream.match('#=')) { state.nestedComments++; } if (!stream.match(/.*?(?=(#=|=#))/)) { stream.skipToEnd(); } if (stream.match('=#')) { state.nestedComments--; if (state.nestedComments == 0) state.tokenize = tokenBase; } return "comment"; } function tokenChar(stream, state) { var isChar = false, match; if (stream.match(chars)) { isChar = true; } else if (match = stream.match(/\\u([a-f0-9]{1,4})(?=')/i)) { var value = parseInt(match[1], 16); if (value <= 55295 || value >= 57344) { // (U+0,U+D7FF), (U+E000,U+FFFF) isChar = true; stream.next(); } } else if (match = stream.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)) { var value = parseInt(match[1], 16); if (value <= 1114111) { // U+10FFFF isChar = true; stream.next(); } } if (isChar) { state.leavingExpr = true; state.tokenize = tokenBase; return "string"; } if (!stream.match(/^[^']+(?=')/)) { stream.skipToEnd(); } if (stream.match('\'')) { state.tokenize = tokenBase; } return "error"; } function tokenStringFactory(delimiter) { if (delimiter.substr(-3) === '"""') { delimiter = '"""'; } else if (delimiter.substr(-1) === '"') { delimiter = '"'; } function tokenString(stream, state) { if (stream.eat('\\')) { stream.next(); } else if (stream.match(delimiter)) { state.tokenize = tokenBase; state.leavingExpr = true; return "string"; } else { stream.eat(/[`"]/); } stream.eatWhile(/[^\\`"]/); return "string"; } return tokenString; } var external = { startState: function() { return { tokenize: tokenBase, scopes: [], lastToken: null, leavingExpr: false, isDefinition: false, nestedArrays: 0, nestedComments: 0, nestedGenerators: 0, nestedParameters: 0, firstParenPos: -1 }; }, token: function(stream, state) { var style = state.tokenize(stream, state); var current = stream.current(); if (current && style) { state.lastToken = current; } return style; }, indent: function(state, textAfter) { var delta = 0; if ( textAfter === ']' || textAfter === ')' || /^end\b/.test(textAfter) || /^else/.test(textAfter) || /^catch\b/.test(textAfter) || /^elseif\b/.test(textAfter) || /^finally/.test(textAfter) ) { delta = -1; } return (state.scopes.length + delta) * config.indentUnit; }, electricInput: /\b(end|else|catch|finally)\b/, blockCommentStart: "#=", blockCommentEnd: "=#", lineComment: "#", closeBrackets: "()[]{}\"\"", fold: "indent" }; return external; }); CodeMirror.defineMIME("text/x-julia", "julia"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/livescript/livescript.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /** * Link to the project's GitHub page: * https://github.com/duralog/CodeMirror */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('livescript', function(){ var tokenBase = function(stream, state) { var next_rule = state.next || "start"; if (next_rule) { state.next = state.next; var nr = Rules[next_rule]; if (nr.splice) { for (var i$ = 0; i$ < nr.length; ++i$) { var r = nr[i$]; if (r.regex && stream.match(r.regex)) { state.next = r.next || state.next; return r.token; } } stream.next(); return 'error'; } if (stream.match(r = Rules[next_rule])) { if (r.regex && stream.match(r.regex)) { state.next = r.next; return r.token; } else { stream.next(); return 'error'; } } } stream.next(); return 'error'; }; var external = { startState: function(){ return { next: 'start', lastToken: {style: null, indent: 0, content: ""} }; }, token: function(stream, state){ while (stream.pos == stream.start) var style = tokenBase(stream, state); state.lastToken = { style: style, indent: stream.indentation(), content: stream.current() }; return style.replace(/\./g, ' '); }, indent: function(state){ var indentation = state.lastToken.indent; if (state.lastToken.content.match(indenter)) { indentation += 2; } return indentation; } }; return external; }); var identifier = '(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*'; var indenter = RegExp('(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*' + identifier + ')?))\\s*$'); var keywordend = '(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))'; var stringfill = { token: 'string', regex: '.+' }; var Rules = { start: [ { token: 'comment.doc', regex: '/\\*', next: 'comment' }, { token: 'comment', regex: '#.*' }, { token: 'keyword', regex: '(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)' + keywordend }, { token: 'constant.language', regex: '(?:true|false|yes|no|on|off|null|void|undefined)' + keywordend }, { token: 'invalid.illegal', regex: '(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)' + keywordend }, { token: 'language.support.class', regex: '(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)' + keywordend }, { token: 'language.support.function', regex: '(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)' + keywordend }, { token: 'variable.language', regex: '(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)' + keywordend }, { token: 'identifier', regex: identifier + '\\s*:(?![:=])' }, { token: 'variable', regex: identifier }, { token: 'keyword.operator', regex: '(?:\\.{3}|\\s+\\?)' }, { token: 'keyword.variable', regex: '(?:@+|::|\\.\\.)', next: 'key' }, { token: 'keyword.operator', regex: '\\.\\s*', next: 'key' }, { token: 'string', regex: '\\\\\\S[^\\s,;)}\\]]*' }, { token: 'string.doc', regex: '\'\'\'', next: 'qdoc' }, { token: 'string.doc', regex: '"""', next: 'qqdoc' }, { token: 'string', regex: '\'', next: 'qstring' }, { token: 'string', regex: '"', next: 'qqstring' }, { token: 'string', regex: '`', next: 'js' }, { token: 'string', regex: '<\\[', next: 'words' }, { token: 'string.regex', regex: '//', next: 'heregex' }, { token: 'string.regex', regex: '\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}', next: 'key' }, { token: 'constant.numeric', regex: '(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)' }, { token: 'lparen', regex: '[({[]' }, { token: 'rparen', regex: '[)}\\]]', next: 'key' }, { token: 'keyword.operator', regex: '\\S+' }, { token: 'text', regex: '\\s+' } ], heregex: [ { token: 'string.regex', regex: '.*?//[gimy$?]{0,4}', next: 'start' }, { token: 'string.regex', regex: '\\s*#{' }, { token: 'comment.regex', regex: '\\s+(?:#.*)?' }, { token: 'string.regex', regex: '\\S+' } ], key: [ { token: 'keyword.operator', regex: '[.?@!]+' }, { token: 'identifier', regex: identifier, next: 'start' }, { token: 'text', regex: '', next: 'start' } ], comment: [ { token: 'comment.doc', regex: '.*?\\*/', next: 'start' }, { token: 'comment.doc', regex: '.+' } ], qdoc: [ { token: 'string', regex: ".*?'''", next: 'key' }, stringfill ], qqdoc: [ { token: 'string', regex: '.*?"""', next: 'key' }, stringfill ], qstring: [ { token: 'string', regex: '[^\\\\\']*(?:\\\\.[^\\\\\']*)*\'', next: 'key' }, stringfill ], qqstring: [ { token: 'string', regex: '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"', next: 'key' }, stringfill ], js: [ { token: 'string', regex: '[^\\\\`]*(?:\\\\.[^\\\\`]*)*`', next: 'key' }, stringfill ], words: [ { token: 'string', regex: '.*?\\]>', next: 'key' }, stringfill ] }; for (var idx in Rules) { var r = Rules[idx]; if (r.splice) { for (var i = 0, len = r.length; i < len; ++i) { var rr = r[i]; if (typeof rr.regex === 'string') { Rules[idx][i].regex = new RegExp('^' + rr.regex); } } } else if (typeof rr.regex === 'string') { Rules[idx].regex = new RegExp('^' + r.regex); } } CodeMirror.defineMIME('text/x-livescript', 'livescript'); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/lua/lua.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // LUA mode. Ported to CodeMirror 2 from Franciszek Wawrzak's // CodeMirror 1 mode. // highlights keywords, strings, comments (no leveling supported! ("[==[")), tokens, basic indenting (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("lua", function(config, parserConfig) { var indentUnit = config.indentUnit; function prefixRE(words) { return new RegExp("^(?:" + words.join("|") + ")", "i"); } function wordRE(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); } var specials = wordRE(parserConfig.specials || []); // long list of standard functions from lua manual var builtins = wordRE([ "_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load", "loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require", "select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall", "coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield", "debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable", "debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable", "debug.setupvalue","debug.traceback", "close","flush","lines","read","seek","setvbuf","write", "io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin", "io.stdout","io.tmpfile","io.type","io.write", "math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg", "math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max", "math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh", "math.sqrt","math.tan","math.tanh", "os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale", "os.time","os.tmpname", "package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload", "package.seeall", "string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub", "string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper", "table.concat","table.insert","table.maxn","table.remove","table.sort" ]); var keywords = wordRE(["and","break","elseif","false","nil","not","or","return", "true","function", "end", "if", "then", "else", "do", "while", "repeat", "until", "for", "in", "local" ]); var indentTokens = wordRE(["function", "if","repeat","do", "\\(", "{"]); var dedentTokens = wordRE(["end", "until", "\\)", "}"]); var dedentPartial = prefixRE(["end", "until", "\\)", "}", "else", "elseif"]); function readBracket(stream) { var level = 0; while (stream.eat("=")) ++level; stream.eat("["); return level; } function normal(stream, state) { var ch = stream.next(); if (ch == "-" && stream.eat("-")) { if (stream.eat("[") && stream.eat("[")) return (state.cur = bracketed(readBracket(stream), "comment"))(stream, state); stream.skipToEnd(); return "comment"; } if (ch == "\"" || ch == "'") return (state.cur = string(ch))(stream, state); if (ch == "[" && /[\[=]/.test(stream.peek())) return (state.cur = bracketed(readBracket(stream), "string"))(stream, state); if (/\d/.test(ch)) { stream.eatWhile(/[\w.%]/); return "number"; } if (/[\w_]/.test(ch)) { stream.eatWhile(/[\w\\\-_.]/); return "variable"; } return null; } function bracketed(level, style) { return function(stream, state) { var curlev = null, ch; while ((ch = stream.next()) != null) { if (curlev == null) {if (ch == "]") curlev = 0;} else if (ch == "=") ++curlev; else if (ch == "]" && curlev == level) { state.cur = normal; break; } else curlev = null; } return style; }; } function string(quote) { return function(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == quote && !escaped) break; escaped = !escaped && ch == "\\"; } if (!escaped) state.cur = normal; return "string"; }; } return { startState: function(basecol) { return {basecol: basecol || 0, indentDepth: 0, cur: normal}; }, token: function(stream, state) { if (stream.eatSpace()) return null; var style = state.cur(stream, state); var word = stream.current(); if (style == "variable") { if (keywords.test(word)) style = "keyword"; else if (builtins.test(word)) style = "builtin"; else if (specials.test(word)) style = "variable-2"; } if ((style != "comment") && (style != "string")){ if (indentTokens.test(word)) ++state.indentDepth; else if (dedentTokens.test(word)) --state.indentDepth; } return style; }, indent: function(state, textAfter) { var closing = dedentPartial.test(textAfter); return state.basecol + indentUnit * (state.indentDepth - (closing ? 1 : 0)); }, electricInput: /^\s*(?:end|until|else|\)|\})$/, lineComment: "--", blockCommentStart: "--[[", blockCommentEnd: "]]" }; }); CodeMirror.defineMIME("text/x-lua", "lua"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/markdown/markdown.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../xml/xml"), require("../meta")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../xml/xml", "../meta"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) { var htmlMode = CodeMirror.getMode(cmCfg, "text/html"); var htmlModeMissing = htmlMode.name == "null" function getMode(name) { if (CodeMirror.findModeByName) { var found = CodeMirror.findModeByName(name); if (found) name = found.mime || found.mimes[0]; } var mode = CodeMirror.getMode(cmCfg, name); return mode.name == "null" ? null : mode; } // Should characters that affect highlighting be highlighted separate? // Does not include characters that will be output (such as `1.` and `-` for lists) if (modeCfg.highlightFormatting === undefined) modeCfg.highlightFormatting = false; // Maximum number of nested blockquotes. Set to 0 for infinite nesting. // Excess `>` will emit `error` token. if (modeCfg.maxBlockquoteDepth === undefined) modeCfg.maxBlockquoteDepth = 0; // Turn on task lists? ("- [ ] " and "- [x] ") if (modeCfg.taskLists === undefined) modeCfg.taskLists = false; // Turn on strikethrough syntax if (modeCfg.strikethrough === undefined) modeCfg.strikethrough = false; if (modeCfg.emoji === undefined) modeCfg.emoji = false; if (modeCfg.fencedCodeBlockHighlighting === undefined) modeCfg.fencedCodeBlockHighlighting = true; if (modeCfg.fencedCodeBlockDefaultMode === undefined) modeCfg.fencedCodeBlockDefaultMode = 'text/plain'; if (modeCfg.xml === undefined) modeCfg.xml = true; // Allow token types to be overridden by user-provided token types. if (modeCfg.tokenTypeOverrides === undefined) modeCfg.tokenTypeOverrides = {}; var tokenTypes = { header: "header", code: "comment", quote: "quote", list1: "variable-2", list2: "variable-3", list3: "keyword", hr: "hr", image: "image", imageAltText: "image-alt-text", imageMarker: "image-marker", formatting: "formatting", linkInline: "link", linkEmail: "link", linkText: "link", linkHref: "string", em: "em", strong: "strong", strikethrough: "strikethrough", emoji: "builtin" }; for (var tokenType in tokenTypes) { if (tokenTypes.hasOwnProperty(tokenType) && modeCfg.tokenTypeOverrides[tokenType]) { tokenTypes[tokenType] = modeCfg.tokenTypeOverrides[tokenType]; } } var hrRE = /^([*\-_])(?:\s*\1){2,}\s*$/ , listRE = /^(?:[*\-+]|^[0-9]+([.)]))\s+/ , taskListRE = /^\[(x| )\](?=\s)/i // Must follow listRE , atxHeaderRE = modeCfg.allowAtxHeaderWithoutSpace ? /^(#+)/ : /^(#+)(?: |$)/ , setextHeaderRE = /^ {0,3}(?:\={1,}|-{2,})\s*$/ , textRE = /^[^#!\[\]*_\\<>` "'(~:]+/ , fencedCodeRE = /^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/ , linkDefRE = /^\s*\[[^\]]+?\]:.*$/ // naive link-definition , punctuation = /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/ , expandedTab = " " // CommonMark specifies tab as 4 spaces function switchInline(stream, state, f) { state.f = state.inline = f; return f(stream, state); } function switchBlock(stream, state, f) { state.f = state.block = f; return f(stream, state); } function lineIsEmpty(line) { return !line || !/\S/.test(line.string) } // Blocks function blankLine(state) { // Reset linkTitle state state.linkTitle = false; state.linkHref = false; state.linkText = false; // Reset EM state state.em = false; // Reset STRONG state state.strong = false; // Reset strikethrough state state.strikethrough = false; // Reset state.quote state.quote = 0; // Reset state.indentedCode state.indentedCode = false; if (state.f == htmlBlock) { var exit = htmlModeMissing if (!exit) { var inner = CodeMirror.innerMode(htmlMode, state.htmlState) exit = inner.mode.name == "xml" && inner.state.tagStart === null && (!inner.state.context && inner.state.tokenize.isInText) } if (exit) { state.f = inlineNormal; state.block = blockNormal; state.htmlState = null; } } // Reset state.trailingSpace state.trailingSpace = 0; state.trailingSpaceNewLine = false; // Mark this line as blank state.prevLine = state.thisLine state.thisLine = {stream: null} return null; } function blockNormal(stream, state) { var firstTokenOnLine = stream.column() === state.indentation; var prevLineLineIsEmpty = lineIsEmpty(state.prevLine.stream); var prevLineIsIndentedCode = state.indentedCode; var prevLineIsHr = state.prevLine.hr; var prevLineIsList = state.list !== false; var maxNonCodeIndentation = (state.listStack[state.listStack.length - 1] || 0) + 3; state.indentedCode = false; var lineIndentation = state.indentation; // compute once per line (on first token) if (state.indentationDiff === null) { state.indentationDiff = state.indentation; if (prevLineIsList) { state.list = null; // While this list item's marker's indentation is less than the deepest // list item's content's indentation,pop the deepest list item // indentation off the stack, and update block indentation state while (lineIndentation < state.listStack[state.listStack.length - 1]) { state.listStack.pop(); if (state.listStack.length) { state.indentation = state.listStack[state.listStack.length - 1]; // less than the first list's indent -> the line is no longer a list } else { state.list = false; } } if (state.list !== false) { state.indentationDiff = lineIndentation - state.listStack[state.listStack.length - 1] } } } // not comprehensive (currently only for setext detection purposes) var allowsInlineContinuation = ( !prevLineLineIsEmpty && !prevLineIsHr && !state.prevLine.header && (!prevLineIsList || !prevLineIsIndentedCode) && !state.prevLine.fencedCodeEnd ); var isHr = (state.list === false || prevLineIsHr || prevLineLineIsEmpty) && state.indentation <= maxNonCodeIndentation && stream.match(hrRE); var match = null; if (state.indentationDiff >= 4 && (prevLineIsIndentedCode || state.prevLine.fencedCodeEnd || state.prevLine.header || prevLineLineIsEmpty)) { stream.skipToEnd(); state.indentedCode = true; return tokenTypes.code; } else if (stream.eatSpace()) { return null; } else if (firstTokenOnLine && state.indentation <= maxNonCodeIndentation && (match = stream.match(atxHeaderRE)) && match[1].length <= 6) { state.quote = 0; state.header = match[1].length; state.thisLine.header = true; if (modeCfg.highlightFormatting) state.formatting = "header"; state.f = state.inline; return getType(state); } else if (state.indentation <= maxNonCodeIndentation && stream.eat('>')) { state.quote = firstTokenOnLine ? 1 : state.quote + 1; if (modeCfg.highlightFormatting) state.formatting = "quote"; stream.eatSpace(); return getType(state); } else if (!isHr && !state.setext && firstTokenOnLine && state.indentation <= maxNonCodeIndentation && (match = stream.match(listRE))) { var listType = match[1] ? "ol" : "ul"; state.indentation = lineIndentation + stream.current().length; state.list = true; state.quote = 0; // Add this list item's content's indentation to the stack state.listStack.push(state.indentation); // Reset inline styles which shouldn't propagate across list items state.em = false; state.strong = false; state.code = false; state.strikethrough = false; if (modeCfg.taskLists && stream.match(taskListRE, false)) { state.taskList = true; } state.f = state.inline; if (modeCfg.highlightFormatting) state.formatting = ["list", "list-" + listType]; return getType(state); } else if (firstTokenOnLine && state.indentation <= maxNonCodeIndentation && (match = stream.match(fencedCodeRE, true))) { state.quote = 0; state.fencedEndRE = new RegExp(match[1] + "+ *$"); // try switching mode state.localMode = modeCfg.fencedCodeBlockHighlighting && getMode(match[2] || modeCfg.fencedCodeBlockDefaultMode ); if (state.localMode) state.localState = CodeMirror.startState(state.localMode); state.f = state.block = local; if (modeCfg.highlightFormatting) state.formatting = "code-block"; state.code = -1 return getType(state); // SETEXT has lowest block-scope precedence after HR, so check it after // the others (code, blockquote, list...) } else if ( // if setext set, indicates line after ---/=== state.setext || ( // line before ---/=== (!allowsInlineContinuation || !prevLineIsList) && !state.quote && state.list === false && !state.code && !isHr && !linkDefRE.test(stream.string) && (match = stream.lookAhead(1)) && (match = match.match(setextHeaderRE)) ) ) { if ( !state.setext ) { state.header = match[0].charAt(0) == '=' ? 1 : 2; state.setext = state.header; } else { state.header = state.setext; // has no effect on type so we can reset it now state.setext = 0; stream.skipToEnd(); if (modeCfg.highlightFormatting) state.formatting = "header"; } state.thisLine.header = true; state.f = state.inline; return getType(state); } else if (isHr) { stream.skipToEnd(); state.hr = true; state.thisLine.hr = true; return tokenTypes.hr; } else if (stream.peek() === '[') { return switchInline(stream, state, footnoteLink); } return switchInline(stream, state, state.inline); } function htmlBlock(stream, state) { var style = htmlMode.token(stream, state.htmlState); if (!htmlModeMissing) { var inner = CodeMirror.innerMode(htmlMode, state.htmlState) if ((inner.mode.name == "xml" && inner.state.tagStart === null && (!inner.state.context && inner.state.tokenize.isInText)) || (state.md_inside && stream.current().indexOf(">") > -1)) { state.f = inlineNormal; state.block = blockNormal; state.htmlState = null; } } return style; } function local(stream, state) { var currListInd = state.listStack[state.listStack.length - 1] || 0; var hasExitedList = state.indentation < currListInd; var maxFencedEndInd = currListInd + 3; if (state.fencedEndRE && state.indentation <= maxFencedEndInd && (hasExitedList || stream.match(state.fencedEndRE))) { if (modeCfg.highlightFormatting) state.formatting = "code-block"; var returnType; if (!hasExitedList) returnType = getType(state) state.localMode = state.localState = null; state.block = blockNormal; state.f = inlineNormal; state.fencedEndRE = null; state.code = 0 state.thisLine.fencedCodeEnd = true; if (hasExitedList) return switchBlock(stream, state, state.block); return returnType; } else if (state.localMode) { return state.localMode.token(stream, state.localState); } else { stream.skipToEnd(); return tokenTypes.code; } } // Inline function getType(state) { var styles = []; if (state.formatting) { styles.push(tokenTypes.formatting); if (typeof state.formatting === "string") state.formatting = [state.formatting]; for (var i = 0; i < state.formatting.length; i++) { styles.push(tokenTypes.formatting + "-" + state.formatting[i]); if (state.formatting[i] === "header") { styles.push(tokenTypes.formatting + "-" + state.formatting[i] + "-" + state.header); } // Add `formatting-quote` and `formatting-quote-#` for blockquotes // Add `error` instead if the maximum blockquote nesting depth is passed if (state.formatting[i] === "quote") { if (!modeCfg.maxBlockquoteDepth || modeCfg.maxBlockquoteDepth >= state.quote) { styles.push(tokenTypes.formatting + "-" + state.formatting[i] + "-" + state.quote); } else { styles.push("error"); } } } } if (state.taskOpen) { styles.push("meta"); return styles.length ? styles.join(' ') : null; } if (state.taskClosed) { styles.push("property"); return styles.length ? styles.join(' ') : null; } if (state.linkHref) { styles.push(tokenTypes.linkHref, "url"); } else { // Only apply inline styles to non-url text if (state.strong) { styles.push(tokenTypes.strong); } if (state.em) { styles.push(tokenTypes.em); } if (state.strikethrough) { styles.push(tokenTypes.strikethrough); } if (state.emoji) { styles.push(tokenTypes.emoji); } if (state.linkText) { styles.push(tokenTypes.linkText); } if (state.code) { styles.push(tokenTypes.code); } if (state.image) { styles.push(tokenTypes.image); } if (state.imageAltText) { styles.push(tokenTypes.imageAltText, "link"); } if (state.imageMarker) { styles.push(tokenTypes.imageMarker); } } if (state.header) { styles.push(tokenTypes.header, tokenTypes.header + "-" + state.header); } if (state.quote) { styles.push(tokenTypes.quote); // Add `quote-#` where the maximum for `#` is modeCfg.maxBlockquoteDepth if (!modeCfg.maxBlockquoteDepth || modeCfg.maxBlockquoteDepth >= state.quote) { styles.push(tokenTypes.quote + "-" + state.quote); } else { styles.push(tokenTypes.quote + "-" + modeCfg.maxBlockquoteDepth); } } if (state.list !== false) { var listMod = (state.listStack.length - 1) % 3; if (!listMod) { styles.push(tokenTypes.list1); } else if (listMod === 1) { styles.push(tokenTypes.list2); } else { styles.push(tokenTypes.list3); } } if (state.trailingSpaceNewLine) { styles.push("trailing-space-new-line"); } else if (state.trailingSpace) { styles.push("trailing-space-" + (state.trailingSpace % 2 ? "a" : "b")); } return styles.length ? styles.join(' ') : null; } function handleText(stream, state) { if (stream.match(textRE, true)) { return getType(state); } return undefined; } function inlineNormal(stream, state) { var style = state.text(stream, state); if (typeof style !== 'undefined') return style; if (state.list) { // List marker (*, +, -, 1., etc) state.list = null; return getType(state); } if (state.taskList) { var taskOpen = stream.match(taskListRE, true)[1] === " "; if (taskOpen) state.taskOpen = true; else state.taskClosed = true; if (modeCfg.highlightFormatting) state.formatting = "task"; state.taskList = false; return getType(state); } state.taskOpen = false; state.taskClosed = false; if (state.header && stream.match(/^#+$/, true)) { if (modeCfg.highlightFormatting) state.formatting = "header"; return getType(state); } var ch = stream.next(); // Matches link titles present on next line if (state.linkTitle) { state.linkTitle = false; var matchCh = ch; if (ch === '(') { matchCh = ')'; } matchCh = (matchCh+'').replace(/([.?*+^\[\]\\(){}|-])/g, "\\$1"); var regex = '^\\s*(?:[^' + matchCh + '\\\\]+|\\\\\\\\|\\\\.)' + matchCh; if (stream.match(new RegExp(regex), true)) { return tokenTypes.linkHref; } } // If this block is changed, it may need to be updated in GFM mode if (ch === '`') { var previousFormatting = state.formatting; if (modeCfg.highlightFormatting) state.formatting = "code"; stream.eatWhile('`'); var count = stream.current().length if (state.code == 0 && (!state.quote || count == 1)) { state.code = count return getType(state) } else if (count == state.code) { // Must be exact var t = getType(state) state.code = 0 return t } else { state.formatting = previousFormatting return getType(state) } } else if (state.code) { return getType(state); } if (ch === '\\') { stream.next(); if (modeCfg.highlightFormatting) { var type = getType(state); var formattingEscape = tokenTypes.formatting + "-escape"; return type ? type + " " + formattingEscape : formattingEscape; } } if (ch === '!' && stream.match(/\[[^\]]*\] ?(?:\(|\[)/, false)) { state.imageMarker = true; state.image = true; if (modeCfg.highlightFormatting) state.formatting = "image"; return getType(state); } if (ch === '[' && state.imageMarker && stream.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/, false)) { state.imageMarker = false; state.imageAltText = true if (modeCfg.highlightFormatting) state.formatting = "image"; return getType(state); } if (ch === ']' && state.imageAltText) { if (modeCfg.highlightFormatting) state.formatting = "image"; var type = getType(state); state.imageAltText = false; state.image = false; state.inline = state.f = linkHref; return type; } if (ch === '[' && !state.image) { if (state.linkText && stream.match(/^.*?\]/)) return getType(state) state.linkText = true; if (modeCfg.highlightFormatting) state.formatting = "link"; return getType(state); } if (ch === ']' && state.linkText) { if (modeCfg.highlightFormatting) state.formatting = "link"; var type = getType(state); state.linkText = false; state.inline = state.f = stream.match(/\(.*?\)| ?\[.*?\]/, false) ? linkHref : inlineNormal return type; } if (ch === '<' && stream.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/, false)) { state.f = state.inline = linkInline; if (modeCfg.highlightFormatting) state.formatting = "link"; var type = getType(state); if (type){ type += " "; } else { type = ""; } return type + tokenTypes.linkInline; } if (ch === '<' && stream.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/, false)) { state.f = state.inline = linkInline; if (modeCfg.highlightFormatting) state.formatting = "link"; var type = getType(state); if (type){ type += " "; } else { type = ""; } return type + tokenTypes.linkEmail; } if (modeCfg.xml && ch === '<' && stream.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i, false)) { var end = stream.string.indexOf(">", stream.pos); if (end != -1) { var atts = stream.string.substring(stream.start, end); if (/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(atts)) state.md_inside = true; } stream.backUp(1); state.htmlState = CodeMirror.startState(htmlMode); return switchBlock(stream, state, htmlBlock); } if (modeCfg.xml && ch === '<' && stream.match(/^\/\w*?>/)) { state.md_inside = false; return "tag"; } else if (ch === "*" || ch === "_") { var len = 1, before = stream.pos == 1 ? " " : stream.string.charAt(stream.pos - 2) while (len < 3 && stream.eat(ch)) len++ var after = stream.peek() || " " // See http://spec.commonmark.org/0.27/#emphasis-and-strong-emphasis var leftFlanking = !/\s/.test(after) && (!punctuation.test(after) || /\s/.test(before) || punctuation.test(before)) var rightFlanking = !/\s/.test(before) && (!punctuation.test(before) || /\s/.test(after) || punctuation.test(after)) var setEm = null, setStrong = null if (len % 2) { // Em if (!state.em && leftFlanking && (ch === "*" || !rightFlanking || punctuation.test(before))) setEm = true else if (state.em == ch && rightFlanking && (ch === "*" || !leftFlanking || punctuation.test(after))) setEm = false } if (len > 1) { // Strong if (!state.strong && leftFlanking && (ch === "*" || !rightFlanking || punctuation.test(before))) setStrong = true else if (state.strong == ch && rightFlanking && (ch === "*" || !leftFlanking || punctuation.test(after))) setStrong = false } if (setStrong != null || setEm != null) { if (modeCfg.highlightFormatting) state.formatting = setEm == null ? "strong" : setStrong == null ? "em" : "strong em" if (setEm === true) state.em = ch if (setStrong === true) state.strong = ch var t = getType(state) if (setEm === false) state.em = false if (setStrong === false) state.strong = false return t } } else if (ch === ' ') { if (stream.eat('*') || stream.eat('_')) { // Probably surrounded by spaces if (stream.peek() === ' ') { // Surrounded by spaces, ignore return getType(state); } else { // Not surrounded by spaces, back up pointer stream.backUp(1); } } } if (modeCfg.strikethrough) { if (ch === '~' && stream.eatWhile(ch)) { if (state.strikethrough) {// Remove strikethrough if (modeCfg.highlightFormatting) state.formatting = "strikethrough"; var t = getType(state); state.strikethrough = false; return t; } else if (stream.match(/^[^\s]/, false)) {// Add strikethrough state.strikethrough = true; if (modeCfg.highlightFormatting) state.formatting = "strikethrough"; return getType(state); } } else if (ch === ' ') { if (stream.match('~~', true)) { // Probably surrounded by space if (stream.peek() === ' ') { // Surrounded by spaces, ignore return getType(state); } else { // Not surrounded by spaces, back up pointer stream.backUp(2); } } } } if (modeCfg.emoji && ch === ":" && stream.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)) { state.emoji = true; if (modeCfg.highlightFormatting) state.formatting = "emoji"; var retType = getType(state); state.emoji = false; return retType; } if (ch === ' ') { if (stream.match(/^ +$/, false)) { state.trailingSpace++; } else if (state.trailingSpace) { state.trailingSpaceNewLine = true; } } return getType(state); } function linkInline(stream, state) { var ch = stream.next(); if (ch === ">") { state.f = state.inline = inlineNormal; if (modeCfg.highlightFormatting) state.formatting = "link"; var type = getType(state); if (type){ type += " "; } else { type = ""; } return type + tokenTypes.linkInline; } stream.match(/^[^>]+/, true); return tokenTypes.linkInline; } function linkHref(stream, state) { // Check if space, and return NULL if so (to avoid marking the space) if(stream.eatSpace()){ return null; } var ch = stream.next(); if (ch === '(' || ch === '[') { state.f = state.inline = getLinkHrefInside(ch === "(" ? ")" : "]"); if (modeCfg.highlightFormatting) state.formatting = "link-string"; state.linkHref = true; return getType(state); } return 'error'; } var linkRE = { ")": /^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/, "]": /^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/ } function getLinkHrefInside(endChar) { return function(stream, state) { var ch = stream.next(); if (ch === endChar) { state.f = state.inline = inlineNormal; if (modeCfg.highlightFormatting) state.formatting = "link-string"; var returnState = getType(state); state.linkHref = false; return returnState; } stream.match(linkRE[endChar]) state.linkHref = true; return getType(state); }; } function footnoteLink(stream, state) { if (stream.match(/^([^\]\\]|\\.)*\]:/, false)) { state.f = footnoteLinkInside; stream.next(); // Consume [ if (modeCfg.highlightFormatting) state.formatting = "link"; state.linkText = true; return getType(state); } return switchInline(stream, state, inlineNormal); } function footnoteLinkInside(stream, state) { if (stream.match(']:', true)) { state.f = state.inline = footnoteUrl; if (modeCfg.highlightFormatting) state.formatting = "link"; var returnType = getType(state); state.linkText = false; return returnType; } stream.match(/^([^\]\\]|\\.)+/, true); return tokenTypes.linkText; } function footnoteUrl(stream, state) { // Check if space, and return NULL if so (to avoid marking the space) if(stream.eatSpace()){ return null; } // Match URL stream.match(/^[^\s]+/, true); // Check for link title if (stream.peek() === undefined) { // End of line, set flag to check next line state.linkTitle = true; } else { // More content on line, check if link title stream.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/, true); } state.f = state.inline = inlineNormal; return tokenTypes.linkHref + " url"; } var mode = { startState: function() { return { f: blockNormal, prevLine: {stream: null}, thisLine: {stream: null}, block: blockNormal, htmlState: null, indentation: 0, inline: inlineNormal, text: handleText, formatting: false, linkText: false, linkHref: false, linkTitle: false, code: 0, em: false, strong: false, header: 0, setext: 0, hr: false, taskList: false, list: false, listStack: [], quote: 0, trailingSpace: 0, trailingSpaceNewLine: false, strikethrough: false, emoji: false, fencedEndRE: null }; }, copyState: function(s) { return { f: s.f, prevLine: s.prevLine, thisLine: s.thisLine, block: s.block, htmlState: s.htmlState && CodeMirror.copyState(htmlMode, s.htmlState), indentation: s.indentation, localMode: s.localMode, localState: s.localMode ? CodeMirror.copyState(s.localMode, s.localState) : null, inline: s.inline, text: s.text, formatting: false, linkText: s.linkText, linkTitle: s.linkTitle, linkHref: s.linkHref, code: s.code, em: s.em, strong: s.strong, strikethrough: s.strikethrough, emoji: s.emoji, header: s.header, setext: s.setext, hr: s.hr, taskList: s.taskList, list: s.list, listStack: s.listStack.slice(0), quote: s.quote, indentedCode: s.indentedCode, trailingSpace: s.trailingSpace, trailingSpaceNewLine: s.trailingSpaceNewLine, md_inside: s.md_inside, fencedEndRE: s.fencedEndRE }; }, token: function(stream, state) { // Reset state.formatting state.formatting = false; if (stream != state.thisLine.stream) { state.header = 0; state.hr = false; if (stream.match(/^\s*$/, true)) { blankLine(state); return null; } state.prevLine = state.thisLine state.thisLine = {stream: stream} // Reset state.taskList state.taskList = false; // Reset state.trailingSpace state.trailingSpace = 0; state.trailingSpaceNewLine = false; if (!state.localState) { state.f = state.block; if (state.f != htmlBlock) { var indentation = stream.match(/^\s*/, true)[0].replace(/\t/g, expandedTab).length; state.indentation = indentation; state.indentationDiff = null; if (indentation > 0) return null; } } } return state.f(stream, state); }, innerMode: function(state) { if (state.block == htmlBlock) return {state: state.htmlState, mode: htmlMode}; if (state.localState) return {state: state.localState, mode: state.localMode}; return {state: state, mode: mode}; }, indent: function(state, textAfter, line) { if (state.block == htmlBlock && htmlMode.indent) return htmlMode.indent(state.htmlState, textAfter, line) if (state.localState && state.localMode.indent) return state.localMode.indent(state.localState, textAfter, line) return CodeMirror.Pass }, blankLine: blankLine, getType: getType, blockCommentStart: "", closeBrackets: "()[]{}''\"\"``", fold: "markdown" }; return mode; }, "xml"); CodeMirror.defineMIME("text/markdown", "markdown"); CodeMirror.defineMIME("text/x-markdown", "markdown"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/mathematica/mathematica.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Mathematica mode copyright (c) 2015 by Calin Barbat // Based on code by Patrick Scheibe (halirutan) // See: https://github.com/halirutan/Mathematica-Source-Highlighting/tree/master/src/lang-mma.js (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('mathematica', function(_config, _parserConfig) { // used pattern building blocks var Identifier = '[a-zA-Z\\$][a-zA-Z0-9\\$]*'; var pBase = "(?:\\d+)"; var pFloat = "(?:\\.\\d+|\\d+\\.\\d*|\\d+)"; var pFloatBase = "(?:\\.\\w+|\\w+\\.\\w*|\\w+)"; var pPrecision = "(?:`(?:`?"+pFloat+")?)"; // regular expressions var reBaseForm = new RegExp('(?:'+pBase+'(?:\\^\\^'+pFloatBase+pPrecision+'?(?:\\*\\^[+-]?\\d+)?))'); var reFloatForm = new RegExp('(?:' + pFloat + pPrecision + '?(?:\\*\\^[+-]?\\d+)?)'); var reIdInContext = new RegExp('(?:`?)(?:' + Identifier + ')(?:`(?:' + Identifier + '))*(?:`?)'); function tokenBase(stream, state) { var ch; // get next character ch = stream.next(); // string if (ch === '"') { state.tokenize = tokenString; return state.tokenize(stream, state); } // comment if (ch === '(') { if (stream.eat('*')) { state.commentLevel++; state.tokenize = tokenComment; return state.tokenize(stream, state); } } // go back one character stream.backUp(1); // look for numbers // Numbers in a baseform if (stream.match(reBaseForm, true, false)) { return 'number'; } // Mathematica numbers. Floats (1.2, .2, 1.) can have optionally a precision (`float) or an accuracy definition // (``float). Note: while 1.2` is possible 1.2`` is not. At the end an exponent (float*^+12) can follow. if (stream.match(reFloatForm, true, false)) { return 'number'; } /* In[23] and Out[34] */ if (stream.match(/(?:In|Out)\[[0-9]*\]/, true, false)) { return 'atom'; } // usage if (stream.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/, true, false)) { return 'meta'; } // message if (stream.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/, true, false)) { return 'string-2'; } // this makes a look-ahead match for something like variable:{_Integer} // the match is then forwarded to the mma-patterns tokenizer. if (stream.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/, true, false)) { return 'variable-2'; } // catch variables which are used together with Blank (_), BlankSequence (__) or BlankNullSequence (___) // Cannot start with a number, but can have numbers at any other position. Examples // blub__Integer, a1_, b34_Integer32 if (stream.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/, true, false)) { return 'variable-2'; } if (stream.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/, true, false)) { return 'variable-2'; } if (stream.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/, true, false)) { return 'variable-2'; } // Named characters in Mathematica, like \[Gamma]. if (stream.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/, true, false)) { return 'variable-3'; } // Match all braces separately if (stream.match(/(?:\[|\]|{|}|\(|\))/, true, false)) { return 'bracket'; } // Catch Slots (#, ##, #3, ##9 and the V10 named slots #name). I have never seen someone using more than one digit after #, so we match // only one. if (stream.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/, true, false)) { return 'variable-2'; } // Literals like variables, keywords, functions if (stream.match(reIdInContext, true, false)) { return 'keyword'; } // operators. Note that operators like @@ or /; are matched separately for each symbol. if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, true, false)) { return 'operator'; } // everything else is an error stream.next(); // advance the stream. return 'error'; } function tokenString(stream, state) { var next, end = false, escaped = false; while ((next = stream.next()) != null) { if (next === '"' && !escaped) { end = true; break; } escaped = !escaped && next === '\\'; } if (end && !escaped) { state.tokenize = tokenBase; } return 'string'; }; function tokenComment(stream, state) { var prev, next; while(state.commentLevel > 0 && (next = stream.next()) != null) { if (prev === '(' && next === '*') state.commentLevel++; if (prev === '*' && next === ')') state.commentLevel--; prev = next; } if (state.commentLevel <= 0) { state.tokenize = tokenBase; } return 'comment'; } return { startState: function() {return {tokenize: tokenBase, commentLevel: 0};}, token: function(stream, state) { if (stream.eatSpace()) return null; return state.tokenize(stream, state); }, blockCommentStart: "(*", blockCommentEnd: "*)" }; }); CodeMirror.defineMIME('text/x-mathematica', { name: 'mathematica' }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/mbox/mbox.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; var rfc2822 = [ "From", "Sender", "Reply-To", "To", "Cc", "Bcc", "Message-ID", "In-Reply-To", "References", "Resent-From", "Resent-Sender", "Resent-To", "Resent-Cc", "Resent-Bcc", "Resent-Message-ID", "Return-Path", "Received" ]; var rfc2822NoEmail = [ "Date", "Subject", "Comments", "Keywords", "Resent-Date" ]; CodeMirror.registerHelper("hintWords", "mbox", rfc2822.concat(rfc2822NoEmail)); var whitespace = /^[ \t]/; var separator = /^From /; // See RFC 4155 var rfc2822Header = new RegExp("^(" + rfc2822.join("|") + "): "); var rfc2822HeaderNoEmail = new RegExp("^(" + rfc2822NoEmail.join("|") + "): "); var header = /^[^:]+:/; // Optional fields defined in RFC 2822 var email = /^[^ ]+@[^ ]+/; var untilEmail = /^.*?(?=[^ ]+?@[^ ]+)/; var bracketedEmail = /^<.*?>/; var untilBracketedEmail = /^.*?(?=<.*>)/; function styleForHeader(header) { if (header === "Subject") return "header"; return "string"; } function readToken(stream, state) { if (stream.sol()) { // From last line state.inSeparator = false; if (state.inHeader && stream.match(whitespace)) { // Header folding return null; } else { state.inHeader = false; state.header = null; } if (stream.match(separator)) { state.inHeaders = true; state.inSeparator = true; return "atom"; } var match; var emailPermitted = false; if ((match = stream.match(rfc2822HeaderNoEmail)) || (emailPermitted = true) && (match = stream.match(rfc2822Header))) { state.inHeaders = true; state.inHeader = true; state.emailPermitted = emailPermitted; state.header = match[1]; return "atom"; } // Use vim's heuristics: recognize custom headers only if the line is in a // block of legitimate headers. if (state.inHeaders && (match = stream.match(header))) { state.inHeader = true; state.emailPermitted = true; state.header = match[1]; return "atom"; } state.inHeaders = false; stream.skipToEnd(); return null; } if (state.inSeparator) { if (stream.match(email)) return "link"; if (stream.match(untilEmail)) return "atom"; stream.skipToEnd(); return "atom"; } if (state.inHeader) { var style = styleForHeader(state.header); if (state.emailPermitted) { if (stream.match(bracketedEmail)) return style + " link"; if (stream.match(untilBracketedEmail)) return style; } stream.skipToEnd(); return style; } stream.skipToEnd(); return null; }; CodeMirror.defineMode("mbox", function() { return { startState: function() { return { // Is in a mbox separator inSeparator: false, // Is in a mail header inHeader: false, // If bracketed email is permitted. Only applicable when inHeader emailPermitted: false, // Name of current header header: null, // Is in a region of mail headers inHeaders: false }; }, token: readToken, blankLine: function(state) { state.inHeaders = state.inSeparator = state.inHeader = false; } }; }); CodeMirror.defineMIME("application/mbox", "mbox"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/meta.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.modeInfo = [ {name: "APL", mime: "text/apl", mode: "apl", ext: ["dyalog", "apl"]}, {name: "PGP", mimes: ["application/pgp", "application/pgp-encrypted", "application/pgp-keys", "application/pgp-signature"], mode: "asciiarmor", ext: ["asc", "pgp", "sig"]}, {name: "ASN.1", mime: "text/x-ttcn-asn", mode: "asn.1", ext: ["asn", "asn1"]}, {name: "Asterisk", mime: "text/x-asterisk", mode: "asterisk", file: /^extensions\.conf$/i}, {name: "Brainfuck", mime: "text/x-brainfuck", mode: "brainfuck", ext: ["b", "bf"]}, {name: "C", mime: "text/x-csrc", mode: "clike", ext: ["c", "h", "ino"]}, {name: "C++", mime: "text/x-c++src", mode: "clike", ext: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"], alias: ["cpp"]}, {name: "Cobol", mime: "text/x-cobol", mode: "cobol", ext: ["cob", "cpy", "cbl"]}, {name: "C#", mime: "text/x-csharp", mode: "clike", ext: ["cs"], alias: ["csharp", "cs"]}, {name: "Clojure", mime: "text/x-clojure", mode: "clojure", ext: ["clj", "cljc", "cljx"]}, {name: "ClojureScript", mime: "text/x-clojurescript", mode: "clojure", ext: ["cljs"]}, {name: "Closure Stylesheets (GSS)", mime: "text/x-gss", mode: "css", ext: ["gss"]}, {name: "CMake", mime: "text/x-cmake", mode: "cmake", ext: ["cmake", "cmake.in"], file: /^CMakeLists\.txt$/}, {name: "CoffeeScript", mimes: ["application/vnd.coffeescript", "text/coffeescript", "text/x-coffeescript"], mode: "coffeescript", ext: ["coffee"], alias: ["coffee", "coffee-script"]}, {name: "Common Lisp", mime: "text/x-common-lisp", mode: "commonlisp", ext: ["cl", "lisp", "el"], alias: ["lisp"]}, {name: "Cypher", mime: "application/x-cypher-query", mode: "cypher", ext: ["cyp", "cypher"]}, {name: "Cython", mime: "text/x-cython", mode: "python", ext: ["pyx", "pxd", "pxi"]}, {name: "Crystal", mime: "text/x-crystal", mode: "crystal", ext: ["cr"]}, {name: "CSS", mime: "text/css", mode: "css", ext: ["css"]}, {name: "CQL", mime: "text/x-cassandra", mode: "sql", ext: ["cql"]}, {name: "D", mime: "text/x-d", mode: "d", ext: ["d"]}, {name: "Dart", mimes: ["application/dart", "text/x-dart"], mode: "dart", ext: ["dart"]}, {name: "diff", mime: "text/x-diff", mode: "diff", ext: ["diff", "patch"]}, {name: "Django", mime: "text/x-django", mode: "django"}, {name: "Dockerfile", mime: "text/x-dockerfile", mode: "dockerfile", file: /^Dockerfile$/}, {name: "DTD", mime: "application/xml-dtd", mode: "dtd", ext: ["dtd"]}, {name: "Dylan", mime: "text/x-dylan", mode: "dylan", ext: ["dylan", "dyl", "intr"]}, {name: "EBNF", mime: "text/x-ebnf", mode: "ebnf"}, {name: "ECL", mime: "text/x-ecl", mode: "ecl", ext: ["ecl"]}, {name: "edn", mime: "application/edn", mode: "clojure", ext: ["edn"]}, {name: "Eiffel", mime: "text/x-eiffel", mode: "eiffel", ext: ["e"]}, {name: "Elm", mime: "text/x-elm", mode: "elm", ext: ["elm"]}, {name: "Embedded JavaScript", mime: "application/x-ejs", mode: "htmlembedded", ext: ["ejs"]}, {name: "Embedded Ruby", mime: "application/x-erb", mode: "htmlembedded", ext: ["erb"]}, {name: "Erlang", mime: "text/x-erlang", mode: "erlang", ext: ["erl"]}, {name: "Esper", mime: "text/x-esper", mode: "sql"}, {name: "Factor", mime: "text/x-factor", mode: "factor", ext: ["factor"]}, {name: "FCL", mime: "text/x-fcl", mode: "fcl"}, {name: "Forth", mime: "text/x-forth", mode: "forth", ext: ["forth", "fth", "4th"]}, {name: "Fortran", mime: "text/x-fortran", mode: "fortran", ext: ["f", "for", "f77", "f90", "f95"]}, {name: "F#", mime: "text/x-fsharp", mode: "mllike", ext: ["fs"], alias: ["fsharp"]}, {name: "Gas", mime: "text/x-gas", mode: "gas", ext: ["s"]}, {name: "Gherkin", mime: "text/x-feature", mode: "gherkin", ext: ["feature"]}, {name: "GitHub Flavored Markdown", mime: "text/x-gfm", mode: "gfm", file: /^(readme|contributing|history)\.md$/i}, {name: "Go", mime: "text/x-go", mode: "go", ext: ["go"]}, {name: "Groovy", mime: "text/x-groovy", mode: "groovy", ext: ["groovy", "gradle"], file: /^Jenkinsfile$/}, {name: "HAML", mime: "text/x-haml", mode: "haml", ext: ["haml"]}, {name: "Haskell", mime: "text/x-haskell", mode: "haskell", ext: ["hs"]}, {name: "Haskell (Literate)", mime: "text/x-literate-haskell", mode: "haskell-literate", ext: ["lhs"]}, {name: "Haxe", mime: "text/x-haxe", mode: "haxe", ext: ["hx"]}, {name: "HXML", mime: "text/x-hxml", mode: "haxe", ext: ["hxml"]}, {name: "ASP.NET", mime: "application/x-aspx", mode: "htmlembedded", ext: ["aspx"], alias: ["asp", "aspx"]}, {name: "HTML", mime: "text/html", mode: "htmlmixed", ext: ["html", "htm", "handlebars", "hbs"], alias: ["xhtml"]}, {name: "HTTP", mime: "message/http", mode: "http"}, {name: "IDL", mime: "text/x-idl", mode: "idl", ext: ["pro"]}, {name: "Pug", mime: "text/x-pug", mode: "pug", ext: ["jade", "pug"], alias: ["jade"]}, {name: "Java", mime: "text/x-java", mode: "clike", ext: ["java"]}, {name: "Java Server Pages", mime: "application/x-jsp", mode: "htmlembedded", ext: ["jsp"], alias: ["jsp"]}, {name: "JavaScript", mimes: ["text/javascript", "text/ecmascript", "application/javascript", "application/x-javascript", "application/ecmascript"], mode: "javascript", ext: ["js"], alias: ["ecmascript", "js", "node"]}, {name: "JSON", mimes: ["application/json", "application/x-json"], mode: "javascript", ext: ["json", "map"], alias: ["json5"]}, {name: "JSON-LD", mime: "application/ld+json", mode: "javascript", ext: ["jsonld"], alias: ["jsonld"]}, {name: "JSX", mime: "text/jsx", mode: "jsx", ext: ["jsx"]}, {name: "Jinja2", mime: "text/jinja2", mode: "jinja2", ext: ["j2", "jinja", "jinja2"]}, {name: "Julia", mime: "text/x-julia", mode: "julia", ext: ["jl"], alias: ["jl"]}, {name: "Kotlin", mime: "text/x-kotlin", mode: "clike", ext: ["kt"]}, {name: "LESS", mime: "text/x-less", mode: "css", ext: ["less"]}, {name: "LiveScript", mime: "text/x-livescript", mode: "livescript", ext: ["ls"], alias: ["ls"]}, {name: "Lua", mime: "text/x-lua", mode: "lua", ext: ["lua"]}, {name: "Markdown", mime: "text/x-markdown", mode: "markdown", ext: ["markdown", "md", "mkd"]}, {name: "mIRC", mime: "text/mirc", mode: "mirc"}, {name: "MariaDB SQL", mime: "text/x-mariadb", mode: "sql"}, {name: "Mathematica", mime: "text/x-mathematica", mode: "mathematica", ext: ["m", "nb", "wl", "wls"]}, {name: "Modelica", mime: "text/x-modelica", mode: "modelica", ext: ["mo"]}, {name: "MUMPS", mime: "text/x-mumps", mode: "mumps", ext: ["mps"]}, {name: "MS SQL", mime: "text/x-mssql", mode: "sql"}, {name: "mbox", mime: "application/mbox", mode: "mbox", ext: ["mbox"]}, {name: "MySQL", mime: "text/x-mysql", mode: "sql"}, {name: "Nginx", mime: "text/x-nginx-conf", mode: "nginx", file: /nginx.*\.conf$/i}, {name: "NSIS", mime: "text/x-nsis", mode: "nsis", ext: ["nsh", "nsi"]}, {name: "NTriples", mimes: ["application/n-triples", "application/n-quads", "text/n-triples"], mode: "ntriples", ext: ["nt", "nq"]}, {name: "Objective-C", mime: "text/x-objectivec", mode: "clike", ext: ["m"], alias: ["objective-c", "objc"]}, {name: "Objective-C++", mime: "text/x-objectivec++", mode: "clike", ext: ["mm"], alias: ["objective-c++", "objc++"]}, {name: "OCaml", mime: "text/x-ocaml", mode: "mllike", ext: ["ml", "mli", "mll", "mly"]}, {name: "Octave", mime: "text/x-octave", mode: "octave", ext: ["m"]}, {name: "Oz", mime: "text/x-oz", mode: "oz", ext: ["oz"]}, {name: "Pascal", mime: "text/x-pascal", mode: "pascal", ext: ["p", "pas"]}, {name: "PEG.js", mime: "null", mode: "pegjs", ext: ["jsonld"]}, {name: "Perl", mime: "text/x-perl", mode: "perl", ext: ["pl", "pm"]}, {name: "PHP", mimes: ["text/x-php", "application/x-httpd-php", "application/x-httpd-php-open"], mode: "php", ext: ["php", "php3", "php4", "php5", "php7", "phtml"]}, {name: "Pig", mime: "text/x-pig", mode: "pig", ext: ["pig"]}, {name: "Plain Text", mime: "text/plain", mode: "null", ext: ["txt", "text", "conf", "def", "list", "log"]}, {name: "PLSQL", mime: "text/x-plsql", mode: "sql", ext: ["pls"]}, {name: "PostgreSQL", mime: "text/x-pgsql", mode: "sql"}, {name: "PowerShell", mime: "application/x-powershell", mode: "powershell", ext: ["ps1", "psd1", "psm1"]}, {name: "Properties files", mime: "text/x-properties", mode: "properties", ext: ["properties", "ini", "in"], alias: ["ini", "properties"]}, {name: "ProtoBuf", mime: "text/x-protobuf", mode: "protobuf", ext: ["proto"]}, {name: "Python", mime: "text/x-python", mode: "python", ext: ["BUILD", "bzl", "py", "pyw"], file: /^(BUCK|BUILD)$/}, {name: "Puppet", mime: "text/x-puppet", mode: "puppet", ext: ["pp"]}, {name: "Q", mime: "text/x-q", mode: "q", ext: ["q"]}, {name: "R", mime: "text/x-rsrc", mode: "r", ext: ["r", "R"], alias: ["rscript"]}, {name: "reStructuredText", mime: "text/x-rst", mode: "rst", ext: ["rst"], alias: ["rst"]}, {name: "RPM Changes", mime: "text/x-rpm-changes", mode: "rpm"}, {name: "RPM Spec", mime: "text/x-rpm-spec", mode: "rpm", ext: ["spec"]}, {name: "Ruby", mime: "text/x-ruby", mode: "ruby", ext: ["rb"], alias: ["jruby", "macruby", "rake", "rb", "rbx"]}, {name: "Rust", mime: "text/x-rustsrc", mode: "rust", ext: ["rs"]}, {name: "SAS", mime: "text/x-sas", mode: "sas", ext: ["sas"]}, {name: "Sass", mime: "text/x-sass", mode: "sass", ext: ["sass"]}, {name: "Scala", mime: "text/x-scala", mode: "clike", ext: ["scala"]}, {name: "Scheme", mime: "text/x-scheme", mode: "scheme", ext: ["scm", "ss"]}, {name: "SCSS", mime: "text/x-scss", mode: "css", ext: ["scss"]}, {name: "Shell", mimes: ["text/x-sh", "application/x-sh"], mode: "shell", ext: ["sh", "ksh", "bash"], alias: ["bash", "sh", "zsh"], file: /^PKGBUILD$/}, {name: "Sieve", mime: "application/sieve", mode: "sieve", ext: ["siv", "sieve"]}, {name: "Slim", mimes: ["text/x-slim", "application/x-slim"], mode: "slim", ext: ["slim"]}, {name: "Smalltalk", mime: "text/x-stsrc", mode: "smalltalk", ext: ["st"]}, {name: "Smarty", mime: "text/x-smarty", mode: "smarty", ext: ["tpl"]}, {name: "Solr", mime: "text/x-solr", mode: "solr"}, {name: "SML", mime: "text/x-sml", mode: "mllike", ext: ["sml", "sig", "fun", "smackspec"]}, {name: "Soy", mime: "text/x-soy", mode: "soy", ext: ["soy"], alias: ["closure template"]}, {name: "SPARQL", mime: "application/sparql-query", mode: "sparql", ext: ["rq", "sparql"], alias: ["sparul"]}, {name: "Spreadsheet", mime: "text/x-spreadsheet", mode: "spreadsheet", alias: ["excel", "formula"]}, {name: "SQL", mime: "text/x-sql", mode: "sql", ext: ["sql"]}, {name: "SQLite", mime: "text/x-sqlite", mode: "sql"}, {name: "Squirrel", mime: "text/x-squirrel", mode: "clike", ext: ["nut"]}, {name: "Stylus", mime: "text/x-styl", mode: "stylus", ext: ["styl"]}, {name: "Swift", mime: "text/x-swift", mode: "swift", ext: ["swift"]}, {name: "sTeX", mime: "text/x-stex", mode: "stex"}, {name: "LaTeX", mime: "text/x-latex", mode: "stex", ext: ["text", "ltx", "tex"], alias: ["tex"]}, {name: "SystemVerilog", mime: "text/x-systemverilog", mode: "verilog", ext: ["v", "sv", "svh"]}, {name: "Tcl", mime: "text/x-tcl", mode: "tcl", ext: ["tcl"]}, {name: "Textile", mime: "text/x-textile", mode: "textile", ext: ["textile"]}, {name: "TiddlyWiki", mime: "text/x-tiddlywiki", mode: "tiddlywiki"}, {name: "Tiki wiki", mime: "text/tiki", mode: "tiki"}, {name: "TOML", mime: "text/x-toml", mode: "toml", ext: ["toml"]}, {name: "Tornado", mime: "text/x-tornado", mode: "tornado"}, {name: "troff", mime: "text/troff", mode: "troff", ext: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]}, {name: "TTCN", mime: "text/x-ttcn", mode: "ttcn", ext: ["ttcn", "ttcn3", "ttcnpp"]}, {name: "TTCN_CFG", mime: "text/x-ttcn-cfg", mode: "ttcn-cfg", ext: ["cfg"]}, {name: "Turtle", mime: "text/turtle", mode: "turtle", ext: ["ttl"]}, {name: "TypeScript", mime: "application/typescript", mode: "javascript", ext: ["ts"], alias: ["ts"]}, {name: "TypeScript-JSX", mime: "text/typescript-jsx", mode: "jsx", ext: ["tsx"], alias: ["tsx"]}, {name: "Twig", mime: "text/x-twig", mode: "twig"}, {name: "Web IDL", mime: "text/x-webidl", mode: "webidl", ext: ["webidl"]}, {name: "VB.NET", mime: "text/x-vb", mode: "vb", ext: ["vb"]}, {name: "VBScript", mime: "text/vbscript", mode: "vbscript", ext: ["vbs"]}, {name: "Velocity", mime: "text/velocity", mode: "velocity", ext: ["vtl"]}, {name: "Verilog", mime: "text/x-verilog", mode: "verilog", ext: ["v"]}, {name: "VHDL", mime: "text/x-vhdl", mode: "vhdl", ext: ["vhd", "vhdl"]}, {name: "Vue.js Component", mimes: ["script/x-vue", "text/x-vue"], mode: "vue", ext: ["vue"]}, {name: "XML", mimes: ["application/xml", "text/xml"], mode: "xml", ext: ["xml", "xsl", "xsd", "svg"], alias: ["rss", "wsdl", "xsd"]}, {name: "XQuery", mime: "application/xquery", mode: "xquery", ext: ["xy", "xquery"]}, {name: "Yacas", mime: "text/x-yacas", mode: "yacas", ext: ["ys"]}, {name: "YAML", mimes: ["text/x-yaml", "text/yaml"], mode: "yaml", ext: ["yaml", "yml"], alias: ["yml"]}, {name: "Z80", mime: "text/x-z80", mode: "z80", ext: ["z80"]}, {name: "mscgen", mime: "text/x-mscgen", mode: "mscgen", ext: ["mscgen", "mscin", "msc"]}, {name: "xu", mime: "text/x-xu", mode: "mscgen", ext: ["xu"]}, {name: "msgenny", mime: "text/x-msgenny", mode: "mscgen", ext: ["msgenny"]}, {name: "WebAssembly", mime: "text/webassembly", mode: "wast", ext: ["wat", "wast"]}, ]; // Ensure all modes have a mime property for backwards compatibility for (var i = 0; i < CodeMirror.modeInfo.length; i++) { var info = CodeMirror.modeInfo[i]; if (info.mimes) info.mime = info.mimes[0]; } CodeMirror.findModeByMIME = function(mime) { mime = mime.toLowerCase(); for (var i = 0; i < CodeMirror.modeInfo.length; i++) { var info = CodeMirror.modeInfo[i]; if (info.mime == mime) return info; if (info.mimes) for (var j = 0; j < info.mimes.length; j++) if (info.mimes[j] == mime) return info; } if (/\+xml$/.test(mime)) return CodeMirror.findModeByMIME("application/xml") if (/\+json$/.test(mime)) return CodeMirror.findModeByMIME("application/json") }; CodeMirror.findModeByExtension = function(ext) { ext = ext.toLowerCase(); for (var i = 0; i < CodeMirror.modeInfo.length; i++) { var info = CodeMirror.modeInfo[i]; if (info.ext) for (var j = 0; j < info.ext.length; j++) if (info.ext[j] == ext) return info; } }; CodeMirror.findModeByFileName = function(filename) { for (var i = 0; i < CodeMirror.modeInfo.length; i++) { var info = CodeMirror.modeInfo[i]; if (info.file && info.file.test(filename)) return info; } var dot = filename.lastIndexOf("."); var ext = dot > -1 && filename.substring(dot + 1, filename.length); if (ext) return CodeMirror.findModeByExtension(ext); }; CodeMirror.findModeByName = function(name) { name = name.toLowerCase(); for (var i = 0; i < CodeMirror.modeInfo.length; i++) { var info = CodeMirror.modeInfo[i]; if (info.name.toLowerCase() == name) return info; if (info.alias) for (var j = 0; j < info.alias.length; j++) if (info.alias[j].toLowerCase() == name) return info; } }; }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/mirc/mirc.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE //mIRC mode by Ford_Lawnmower :: Based on Velocity mode by Steve O'Hara (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMIME("text/mirc", "mirc"); CodeMirror.defineMode("mirc", function() { function parseWords(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var specials = parseWords("$! $$ $& $? $+ $abook $abs $active $activecid " + "$activewid $address $addtok $agent $agentname $agentstat $agentver " + "$alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime " + "$asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind " + "$binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes " + "$chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color " + "$com $comcall $comchan $comerr $compact $compress $comval $cos $count " + "$cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight " + "$dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress " + "$deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll " + "$dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error " + "$eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir " + "$finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve " + "$fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt " + "$group $halted $hash $height $hfind $hget $highlight $hnick $hotline " + "$hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil " + "$inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect " + "$insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile " + "$isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive " + "$lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock " + "$lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer " + "$maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext " + "$menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode " + "$modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile " + "$nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly " + "$opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree " + "$pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo " + "$readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex " + "$reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline " + "$sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin " + "$site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname " + "$sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped " + "$syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp " + "$timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel " + "$ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver " + "$version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"); var keywords = parseWords("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice " + "away background ban bcopy beep bread break breplace bset btrunc bunset bwrite " + "channel clear clearall cline clipboard close cnick color comclose comopen " + "comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver " + "debug dec describe dialog did didtok disable disconnect dlevel dline dll " + "dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace " + "drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable " + "events exit fclose filter findtext finger firewall flash flist flood flush " + "flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove " + "gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd " + "halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear " + "ialmark identd if ignore iline inc invite iuser join kick linesep links list " + "load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice " + "notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice " + "qme qmsg query queryn quit raw reload remini remote remove rename renwin " + "reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini " + "say scid scon server set showmirc signam sline sockaccept sockclose socklist " + "socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite " + "sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize " + "toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho " + "var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum " + "isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower " + "isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs " + "elseif else goto menu nicklist status title icon size option text edit " + "button check radio box scroll list combo link tab item"); var functions = parseWords("if elseif else and not or eq ne in ni for foreach while switch"); var isOperatorChar = /[+\-*&%=<>!?^\/\|]/; function chain(stream, state, f) { state.tokenize = f; return f(stream, state); } function tokenBase(stream, state) { var beforeParams = state.beforeParams; state.beforeParams = false; var ch = stream.next(); if (/[\[\]{}\(\),\.]/.test(ch)) { if (ch == "(" && beforeParams) state.inParams = true; else if (ch == ")") state.inParams = false; return null; } else if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } else if (ch == "\\") { stream.eat("\\"); stream.eat(/./); return "number"; } else if (ch == "/" && stream.eat("*")) { return chain(stream, state, tokenComment); } else if (ch == ";" && stream.match(/ *\( *\(/)) { return chain(stream, state, tokenUnparsed); } else if (ch == ";" && !state.inParams) { stream.skipToEnd(); return "comment"; } else if (ch == '"') { stream.eat(/"/); return "keyword"; } else if (ch == "$") { stream.eatWhile(/[$_a-z0-9A-Z\.:]/); if (specials && specials.propertyIsEnumerable(stream.current().toLowerCase())) { return "keyword"; } else { state.beforeParams = true; return "builtin"; } } else if (ch == "%") { stream.eatWhile(/[^,\s()]/); state.beforeParams = true; return "string"; } else if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } else { stream.eatWhile(/[\w\$_{}]/); var word = stream.current().toLowerCase(); if (keywords && keywords.propertyIsEnumerable(word)) return "keyword"; if (functions && functions.propertyIsEnumerable(word)) { state.beforeParams = true; return "keyword"; } return null; } } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return "comment"; } function tokenUnparsed(stream, state) { var maybeEnd = 0, ch; while (ch = stream.next()) { if (ch == ";" && maybeEnd == 2) { state.tokenize = tokenBase; break; } if (ch == ")") maybeEnd++; else if (ch != " ") maybeEnd = 0; } return "meta"; } return { startState: function() { return { tokenize: tokenBase, beforeParams: false, inParams: false }; }, token: function(stream, state) { if (stream.eatSpace()) return null; return state.tokenize(stream, state); } }; }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/mllike/mllike.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('mllike', function(_config, parserConfig) { var words = { 'as': 'keyword', 'do': 'keyword', 'else': 'keyword', 'end': 'keyword', 'exception': 'keyword', 'fun': 'keyword', 'functor': 'keyword', 'if': 'keyword', 'in': 'keyword', 'include': 'keyword', 'let': 'keyword', 'of': 'keyword', 'open': 'keyword', 'rec': 'keyword', 'struct': 'keyword', 'then': 'keyword', 'type': 'keyword', 'val': 'keyword', 'while': 'keyword', 'with': 'keyword' }; var extraWords = parserConfig.extraWords || {}; for (var prop in extraWords) { if (extraWords.hasOwnProperty(prop)) { words[prop] = parserConfig.extraWords[prop]; } } var hintWords = []; for (var k in words) { hintWords.push(k); } CodeMirror.registerHelper("hintWords", "mllike", hintWords); function tokenBase(stream, state) { var ch = stream.next(); if (ch === '"') { state.tokenize = tokenString; return state.tokenize(stream, state); } if (ch === '{') { if (stream.eat('|')) { state.longString = true; state.tokenize = tokenLongString; return state.tokenize(stream, state); } } if (ch === '(') { if (stream.match(/^\*(?!\))/)) { state.commentLevel++; state.tokenize = tokenComment; return state.tokenize(stream, state); } } if (ch === '~' || ch === '?') { stream.eatWhile(/\w/); return 'variable-2'; } if (ch === '`') { stream.eatWhile(/\w/); return 'quote'; } if (ch === '/' && parserConfig.slashComments && stream.eat('/')) { stream.skipToEnd(); return 'comment'; } if (/\d/.test(ch)) { if (ch === '0' && stream.eat(/[bB]/)) { stream.eatWhile(/[01]/); } if (ch === '0' && stream.eat(/[xX]/)) { stream.eatWhile(/[0-9a-fA-F]/) } if (ch === '0' && stream.eat(/[oO]/)) { stream.eatWhile(/[0-7]/); } else { stream.eatWhile(/[\d_]/); if (stream.eat('.')) { stream.eatWhile(/[\d]/); } if (stream.eat(/[eE]/)) { stream.eatWhile(/[\d\-+]/); } } return 'number'; } if ( /[+\-*&%=<>!?|@\.~:]/.test(ch)) { return 'operator'; } if (/[\w\xa1-\uffff]/.test(ch)) { stream.eatWhile(/[\w\xa1-\uffff]/); var cur = stream.current(); return words.hasOwnProperty(cur) ? words[cur] : 'variable'; } return null } function tokenString(stream, state) { var next, end = false, escaped = false; while ((next = stream.next()) != null) { if (next === '"' && !escaped) { end = true; break; } escaped = !escaped && next === '\\'; } if (end && !escaped) { state.tokenize = tokenBase; } return 'string'; }; function tokenComment(stream, state) { var prev, next; while(state.commentLevel > 0 && (next = stream.next()) != null) { if (prev === '(' && next === '*') state.commentLevel++; if (prev === '*' && next === ')') state.commentLevel--; prev = next; } if (state.commentLevel <= 0) { state.tokenize = tokenBase; } return 'comment'; } function tokenLongString(stream, state) { var prev, next; while (state.longString && (next = stream.next()) != null) { if (prev === '|' && next === '}') state.longString = false; prev = next; } if (!state.longString) { state.tokenize = tokenBase; } return 'string'; } return { startState: function() {return {tokenize: tokenBase, commentLevel: 0, longString: false};}, token: function(stream, state) { if (stream.eatSpace()) return null; return state.tokenize(stream, state); }, blockCommentStart: "(*", blockCommentEnd: "*)", lineComment: parserConfig.slashComments ? "//" : null }; }); CodeMirror.defineMIME('text/x-ocaml', { name: 'mllike', extraWords: { 'and': 'keyword', 'assert': 'keyword', 'begin': 'keyword', 'class': 'keyword', 'constraint': 'keyword', 'done': 'keyword', 'downto': 'keyword', 'external': 'keyword', 'function': 'keyword', 'initializer': 'keyword', 'lazy': 'keyword', 'match': 'keyword', 'method': 'keyword', 'module': 'keyword', 'mutable': 'keyword', 'new': 'keyword', 'nonrec': 'keyword', 'object': 'keyword', 'private': 'keyword', 'sig': 'keyword', 'to': 'keyword', 'try': 'keyword', 'value': 'keyword', 'virtual': 'keyword', 'when': 'keyword', // builtins 'raise': 'builtin', 'failwith': 'builtin', 'true': 'builtin', 'false': 'builtin', // Pervasives builtins 'asr': 'builtin', 'land': 'builtin', 'lor': 'builtin', 'lsl': 'builtin', 'lsr': 'builtin', 'lxor': 'builtin', 'mod': 'builtin', 'or': 'builtin', // More Pervasives 'raise_notrace': 'builtin', 'trace': 'builtin', 'exit': 'builtin', 'print_string': 'builtin', 'print_endline': 'builtin', 'int': 'type', 'float': 'type', 'bool': 'type', 'char': 'type', 'string': 'type', 'unit': 'type', // Modules 'List': 'builtin' } }); CodeMirror.defineMIME('text/x-fsharp', { name: 'mllike', extraWords: { 'abstract': 'keyword', 'assert': 'keyword', 'base': 'keyword', 'begin': 'keyword', 'class': 'keyword', 'default': 'keyword', 'delegate': 'keyword', 'do!': 'keyword', 'done': 'keyword', 'downcast': 'keyword', 'downto': 'keyword', 'elif': 'keyword', 'extern': 'keyword', 'finally': 'keyword', 'for': 'keyword', 'function': 'keyword', 'global': 'keyword', 'inherit': 'keyword', 'inline': 'keyword', 'interface': 'keyword', 'internal': 'keyword', 'lazy': 'keyword', 'let!': 'keyword', 'match': 'keyword', 'member': 'keyword', 'module': 'keyword', 'mutable': 'keyword', 'namespace': 'keyword', 'new': 'keyword', 'null': 'keyword', 'override': 'keyword', 'private': 'keyword', 'public': 'keyword', 'return!': 'keyword', 'return': 'keyword', 'select': 'keyword', 'static': 'keyword', 'to': 'keyword', 'try': 'keyword', 'upcast': 'keyword', 'use!': 'keyword', 'use': 'keyword', 'void': 'keyword', 'when': 'keyword', 'yield!': 'keyword', 'yield': 'keyword', // Reserved words 'atomic': 'keyword', 'break': 'keyword', 'checked': 'keyword', 'component': 'keyword', 'const': 'keyword', 'constraint': 'keyword', 'constructor': 'keyword', 'continue': 'keyword', 'eager': 'keyword', 'event': 'keyword', 'external': 'keyword', 'fixed': 'keyword', 'method': 'keyword', 'mixin': 'keyword', 'object': 'keyword', 'parallel': 'keyword', 'process': 'keyword', 'protected': 'keyword', 'pure': 'keyword', 'sealed': 'keyword', 'tailcall': 'keyword', 'trait': 'keyword', 'virtual': 'keyword', 'volatile': 'keyword', // builtins 'List': 'builtin', 'Seq': 'builtin', 'Map': 'builtin', 'Set': 'builtin', 'Option': 'builtin', 'int': 'builtin', 'string': 'builtin', 'not': 'builtin', 'true': 'builtin', 'false': 'builtin', 'raise': 'builtin', 'failwith': 'builtin' }, slashComments: true }); CodeMirror.defineMIME('text/x-sml', { name: 'mllike', extraWords: { 'abstype': 'keyword', 'and': 'keyword', 'andalso': 'keyword', 'case': 'keyword', 'datatype': 'keyword', 'fn': 'keyword', 'handle': 'keyword', 'infix': 'keyword', 'infixr': 'keyword', 'local': 'keyword', 'nonfix': 'keyword', 'op': 'keyword', 'orelse': 'keyword', 'raise': 'keyword', 'withtype': 'keyword', 'eqtype': 'keyword', 'sharing': 'keyword', 'sig': 'keyword', 'signature': 'keyword', 'structure': 'keyword', 'where': 'keyword', 'true': 'keyword', 'false': 'keyword', // types 'int': 'builtin', 'real': 'builtin', 'string': 'builtin', 'char': 'builtin', 'bool': 'builtin' }, slashComments: true }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/modelica/modelica.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Modelica support for CodeMirror, copyright (c) by Lennart Ochel (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); }) (function(CodeMirror) { "use strict"; CodeMirror.defineMode("modelica", function(config, parserConfig) { var indentUnit = config.indentUnit; var keywords = parserConfig.keywords || {}; var builtin = parserConfig.builtin || {}; var atoms = parserConfig.atoms || {}; var isSingleOperatorChar = /[;=\(:\),{}.*<>+\-\/^\[\]]/; var isDoubleOperatorChar = /(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/; var isDigit = /[0-9]/; var isNonDigit = /[_a-zA-Z]/; function tokenLineComment(stream, state) { stream.skipToEnd(); state.tokenize = null; return "comment"; } function tokenBlockComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (maybeEnd && ch == "/") { state.tokenize = null; break; } maybeEnd = (ch == "*"); } return "comment"; } function tokenString(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == '"' && !escaped) { state.tokenize = null; state.sol = false; break; } escaped = !escaped && ch == "\\"; } return "string"; } function tokenIdent(stream, state) { stream.eatWhile(isDigit); while (stream.eat(isDigit) || stream.eat(isNonDigit)) { } var cur = stream.current(); if(state.sol && (cur == "package" || cur == "model" || cur == "when" || cur == "connector")) state.level++; else if(state.sol && cur == "end" && state.level > 0) state.level--; state.tokenize = null; state.sol = false; if (keywords.propertyIsEnumerable(cur)) return "keyword"; else if (builtin.propertyIsEnumerable(cur)) return "builtin"; else if (atoms.propertyIsEnumerable(cur)) return "atom"; else return "variable"; } function tokenQIdent(stream, state) { while (stream.eat(/[^']/)) { } state.tokenize = null; state.sol = false; if(stream.eat("'")) return "variable"; else return "error"; } function tokenUnsignedNumber(stream, state) { stream.eatWhile(isDigit); if (stream.eat('.')) { stream.eatWhile(isDigit); } if (stream.eat('e') || stream.eat('E')) { if (!stream.eat('-')) stream.eat('+'); stream.eatWhile(isDigit); } state.tokenize = null; state.sol = false; return "number"; } // Interface return { startState: function() { return { tokenize: null, level: 0, sol: true }; }, token: function(stream, state) { if(state.tokenize != null) { return state.tokenize(stream, state); } if(stream.sol()) { state.sol = true; } // WHITESPACE if(stream.eatSpace()) { state.tokenize = null; return null; } var ch = stream.next(); // LINECOMMENT if(ch == '/' && stream.eat('/')) { state.tokenize = tokenLineComment; } // BLOCKCOMMENT else if(ch == '/' && stream.eat('*')) { state.tokenize = tokenBlockComment; } // TWO SYMBOL TOKENS else if(isDoubleOperatorChar.test(ch+stream.peek())) { stream.next(); state.tokenize = null; return "operator"; } // SINGLE SYMBOL TOKENS else if(isSingleOperatorChar.test(ch)) { state.tokenize = null; return "operator"; } // IDENT else if(isNonDigit.test(ch)) { state.tokenize = tokenIdent; } // Q-IDENT else if(ch == "'" && stream.peek() && stream.peek() != "'") { state.tokenize = tokenQIdent; } // STRING else if(ch == '"') { state.tokenize = tokenString; } // UNSIGNED_NUMBER else if(isDigit.test(ch)) { state.tokenize = tokenUnsignedNumber; } // ERROR else { state.tokenize = null; return "error"; } return state.tokenize(stream, state); }, indent: function(state, textAfter) { if (state.tokenize != null) return CodeMirror.Pass; var level = state.level; if(/(algorithm)/.test(textAfter)) level--; if(/(equation)/.test(textAfter)) level--; if(/(initial algorithm)/.test(textAfter)) level--; if(/(initial equation)/.test(textAfter)) level--; if(/(end)/.test(textAfter)) level--; if(level > 0) return indentUnit*level; else return 0; }, blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//" }; }); function words(str) { var obj = {}, words = str.split(" "); for (var i=0; i", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], "singlecomment" : ["//", "#"], "operators" : ["="] }, xu: { "keywords" : ["msc", "xu"], "options" : ["hscale", "width", "arcgradient", "wordwraparcs", "wordwrapentities", "watermark"], "constants" : ["true", "false", "on", "off", "auto"], "attributes" : ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip", "title", "deactivate", "activate", "activation"], "brackets" : ["\\{", "\\}"], // [ and ] are brackets too, but these get handled in with lists "arcsWords" : ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"], "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], "singlecomment" : ["//", "#"], "operators" : ["="] }, msgenny: { "keywords" : null, "options" : ["hscale", "width", "arcgradient", "wordwraparcs", "wordwrapentities", "watermark"], "constants" : ["true", "false", "on", "off", "auto"], "attributes" : null, "brackets" : ["\\{", "\\}"], "arcsWords" : ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"], "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"], "singlecomment" : ["//", "#"], "operators" : ["="] } } CodeMirror.defineMode("mscgen", function(_, modeConfig) { var language = languages[modeConfig && modeConfig.language || "mscgen"] return { startState: startStateFn, copyState: copyStateFn, token: produceTokenFunction(language), lineComment : "#", blockCommentStart : "/*", blockCommentEnd : "*/" }; }); CodeMirror.defineMIME("text/x-mscgen", "mscgen"); CodeMirror.defineMIME("text/x-xu", {name: "mscgen", language: "xu"}); CodeMirror.defineMIME("text/x-msgenny", {name: "mscgen", language: "msgenny"}); function wordRegexpBoundary(pWords) { return new RegExp("^\\b(?:" + pWords.join("|") + ")\\b", "i"); } function wordRegexp(pWords) { return new RegExp("^(?:" + pWords.join("|") + ")", "i"); } function startStateFn() { return { inComment : false, inString : false, inAttributeList : false, inScript : false }; } function copyStateFn(pState) { return { inComment : pState.inComment, inString : pState.inString, inAttributeList : pState.inAttributeList, inScript : pState.inScript }; } function produceTokenFunction(pConfig) { return function(pStream, pState) { if (pStream.match(wordRegexp(pConfig.brackets), true, true)) { return "bracket"; } /* comments */ if (!pState.inComment) { if (pStream.match(/\/\*[^\*\/]*/, true, true)) { pState.inComment = true; return "comment"; } if (pStream.match(wordRegexp(pConfig.singlecomment), true, true)) { pStream.skipToEnd(); return "comment"; } } if (pState.inComment) { if (pStream.match(/[^\*\/]*\*\//, true, true)) pState.inComment = false; else pStream.skipToEnd(); return "comment"; } /* strings */ if (!pState.inString && pStream.match(/\"(\\\"|[^\"])*/, true, true)) { pState.inString = true; return "string"; } if (pState.inString) { if (pStream.match(/[^\"]*\"/, true, true)) pState.inString = false; else pStream.skipToEnd(); return "string"; } /* keywords & operators */ if (!!pConfig.keywords && pStream.match(wordRegexpBoundary(pConfig.keywords), true, true)) return "keyword"; if (pStream.match(wordRegexpBoundary(pConfig.options), true, true)) return "keyword"; if (pStream.match(wordRegexpBoundary(pConfig.arcsWords), true, true)) return "keyword"; if (pStream.match(wordRegexp(pConfig.arcsOthers), true, true)) return "keyword"; if (!!pConfig.operators && pStream.match(wordRegexp(pConfig.operators), true, true)) return "operator"; if (!!pConfig.constants && pStream.match(wordRegexp(pConfig.constants), true, true)) return "variable"; /* attribute lists */ if (!pConfig.inAttributeList && !!pConfig.attributes && pStream.match('[', true, true)) { pConfig.inAttributeList = true; return "bracket"; } if (pConfig.inAttributeList) { if (pConfig.attributes !== null && pStream.match(wordRegexpBoundary(pConfig.attributes), true, true)) { return "attribute"; } if (pStream.match(']', true, true)) { pConfig.inAttributeList = false; return "bracket"; } } pStream.next(); return "base"; }; } }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/mumps/mumps.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /* This MUMPS Language script was constructed using vbscript.js as a template. */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("mumps", function() { function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); } var singleOperators = new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"); var doubleOperators = new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"); var singleDelimiters = new RegExp("^[\\.,:]"); var brackets = new RegExp("[()]"); var identifiers = new RegExp("^[%A-Za-z][A-Za-z0-9]*"); var commandKeywords = ["break","close","do","else","for","goto", "halt", "hang", "if", "job","kill","lock","merge","new","open", "quit", "read", "set", "tcommit", "trollback", "tstart", "use", "view", "write", "xecute", "b","c","d","e","f","g", "h", "i", "j","k","l","m","n","o", "q", "r", "s", "tc", "tro", "ts", "u", "v", "w", "x"]; // The following list includes intrinsic functions _and_ special variables var intrinsicFuncsWords = ["\\$ascii", "\\$char", "\\$data", "\\$ecode", "\\$estack", "\\$etrap", "\\$extract", "\\$find", "\\$fnumber", "\\$get", "\\$horolog", "\\$io", "\\$increment", "\\$job", "\\$justify", "\\$length", "\\$name", "\\$next", "\\$order", "\\$piece", "\\$qlength", "\\$qsubscript", "\\$query", "\\$quit", "\\$random", "\\$reverse", "\\$select", "\\$stack", "\\$test", "\\$text", "\\$translate", "\\$view", "\\$x", "\\$y", "\\$a", "\\$c", "\\$d", "\\$e", "\\$ec", "\\$es", "\\$et", "\\$f", "\\$fn", "\\$g", "\\$h", "\\$i", "\\$j", "\\$l", "\\$n", "\\$na", "\\$o", "\\$p", "\\$q", "\\$ql", "\\$qs", "\\$r", "\\$re", "\\$s", "\\$st", "\\$t", "\\$tr", "\\$v", "\\$z"]; var intrinsicFuncs = wordRegexp(intrinsicFuncsWords); var command = wordRegexp(commandKeywords); function tokenBase(stream, state) { if (stream.sol()) { state.label = true; state.commandMode = 0; } // The character has meaning in MUMPS. Ignoring consecutive // spaces would interfere with interpreting whether the next non-space // character belongs to the command or argument context. // Examine each character and update a mode variable whose interpretation is: // >0 => command 0 => argument <0 => command post-conditional var ch = stream.peek(); if (ch == " " || ch == "\t") { // Pre-process state.label = false; if (state.commandMode == 0) state.commandMode = 1; else if ((state.commandMode < 0) || (state.commandMode == 2)) state.commandMode = 0; } else if ((ch != ".") && (state.commandMode > 0)) { if (ch == ":") state.commandMode = -1; // SIS - Command post-conditional else state.commandMode = 2; } // Do not color parameter list as line tag if ((ch === "(") || (ch === "\u0009")) state.label = false; // MUMPS comment starts with ";" if (ch === ";") { stream.skipToEnd(); return "comment"; } // Number Literals // SIS/RLM - MUMPS permits canonic number followed by concatenate operator if (stream.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)) return "number"; // Handle Strings if (ch == '"') { if (stream.skipTo('"')) { stream.next(); return "string"; } else { stream.skipToEnd(); return "error"; } } // Handle operators and Delimiters if (stream.match(doubleOperators) || stream.match(singleOperators)) return "operator"; // Prevents leading "." in DO block from falling through to error if (stream.match(singleDelimiters)) return null; if (brackets.test(ch)) { stream.next(); return "bracket"; } if (state.commandMode > 0 && stream.match(command)) return "variable-2"; if (stream.match(intrinsicFuncs)) return "builtin"; if (stream.match(identifiers)) return "variable"; // Detect dollar-sign when not a documented intrinsic function // "^" may introduce a GVN or SSVN - Color same as function if (ch === "$" || ch === "^") { stream.next(); return "builtin"; } // MUMPS Indirection if (ch === "@") { stream.next(); return "string-2"; } if (/[\w%]/.test(ch)) { stream.eatWhile(/[\w%]/); return "variable"; } // Handle non-detected items stream.next(); return "error"; } return { startState: function() { return { label: false, commandMode: 0 }; }, token: function(stream, state) { var style = tokenBase(stream, state); if (state.label) return "tag"; return style; } }; }); CodeMirror.defineMIME("text/x-mumps", "mumps"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/nginx/nginx.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("nginx", function(config) { function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var keywords = words( /* ngxDirectiveControl */ "break return rewrite set" + /* ngxDirective */ " accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23" ); var keywords_block = words( /* ngxDirectiveBlock */ "http mail events server types location upstream charset_map limit_except if geo map" ); var keywords_important = words( /* ngxDirectiveImportant */ "include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files" ); var indentUnit = config.indentUnit, type; function ret(style, tp) {type = tp; return style;} function tokenBase(stream, state) { stream.eatWhile(/[\w\$_]/); var cur = stream.current(); if (keywords.propertyIsEnumerable(cur)) { return "keyword"; } else if (keywords_block.propertyIsEnumerable(cur)) { return "variable-2"; } else if (keywords_important.propertyIsEnumerable(cur)) { return "string-2"; } /**/ var ch = stream.next(); if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("meta", stream.current());} else if (ch == "/" && stream.eat("*")) { state.tokenize = tokenCComment; return tokenCComment(stream, state); } else if (ch == "<" && stream.eat("!")) { state.tokenize = tokenSGMLComment; return tokenSGMLComment(stream, state); } else if (ch == "=") ret(null, "compare"); else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare"); else if (ch == "\"" || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } else if (ch == "#") { stream.skipToEnd(); return ret("comment", "comment"); } else if (ch == "!") { stream.match(/^\s*\w*/); return ret("keyword", "important"); } else if (/\d/.test(ch)) { stream.eatWhile(/[\w.%]/); return ret("number", "unit"); } else if (/[,.+>*\/]/.test(ch)) { return ret(null, "select-op"); } else if (/[;{}:\[\]]/.test(ch)) { return ret(null, ch); } else { stream.eatWhile(/[\w\\\-]/); return ret("variable", "variable"); } } function tokenCComment(stream, state) { var maybeEnd = false, ch; while ((ch = stream.next()) != null) { if (maybeEnd && ch == "/") { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return ret("comment", "comment"); } function tokenSGMLComment(stream, state) { var dashes = 0, ch; while ((ch = stream.next()) != null) { if (dashes >= 2 && ch == ">") { state.tokenize = tokenBase; break; } dashes = (ch == "-") ? dashes + 1 : 0; } return ret("comment", "comment"); } function tokenString(quote) { return function(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == quote && !escaped) break; escaped = !escaped && ch == "\\"; } if (!escaped) state.tokenize = tokenBase; return ret("string", "string"); }; } return { startState: function(base) { return {tokenize: tokenBase, baseIndent: base || 0, stack: []}; }, token: function(stream, state) { if (stream.eatSpace()) return null; type = null; var style = state.tokenize(stream, state); var context = state.stack[state.stack.length-1]; if (type == "hash" && context == "rule") style = "atom"; else if (style == "variable") { if (context == "rule") style = "number"; else if (!context || context == "@media{") style = "tag"; } if (context == "rule" && /^[\{\};]$/.test(type)) state.stack.pop(); if (type == "{") { if (context == "@media") state.stack[state.stack.length-1] = "@media{"; else state.stack.push("{"); } else if (type == "}") state.stack.pop(); else if (type == "@media") state.stack.push("@media"); else if (context == "{" && type != "comment") state.stack.push("rule"); return style; }, indent: function(state, textAfter) { var n = state.stack.length; if (/^\}/.test(textAfter)) n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1; return state.baseIndent + n * indentUnit; }, electricChars: "}" }; }); CodeMirror.defineMIME("text/x-nginx-conf", "nginx"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/nsis/nsis.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Author: Jan T. Sott (http://github.com/idleberg) (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../../addon/mode/simple")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../../addon/mode/simple"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineSimpleMode("nsis",{ start:[ // Numbers {regex: /(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/, token: "number"}, // Strings { regex: /"(?:[^\\"]|\\.)*"?/, token: "string" }, { regex: /'(?:[^\\']|\\.)*'?/, token: "string" }, { regex: /`(?:[^\\`]|\\.)*`?/, token: "string" }, // Compile Time Commands {regex: /^\s*(?:\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i, token: "keyword"}, // Conditional Compilation {regex: /^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i, token: "keyword", indent: true}, {regex: /^\s*(?:\!(else|endif|macroend))\b/i, token: "keyword", dedent: true}, // Runtime Commands {regex: /^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i, token: "keyword"}, {regex: /^\s*(?:Function|PageEx|Section(?:Group)?)\b/i, token: "keyword", indent: true}, {regex: /^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i, token: "keyword", dedent: true}, // Command Options {regex: /\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i, token: "atom"}, {regex: /\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i, token: "builtin"}, // LogicLib.nsh {regex: /\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i, token: "variable-2", indent: true}, // FileFunc.nsh {regex: /\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i, token: "variable-2", dedent: true}, // Memento.nsh {regex: /\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i, token: "variable-2", dedent: true}, // TextFunc.nsh {regex: /\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i, token: "variable-2", dedent: true}, // WinVer.nsh {regex: /\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i, token: "variable", dedent: true}, // WordFunc.nsh {regex: /\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i, token: "variable-2", dedent: true}, // x64.nsh {regex: /\$\{(?:RunningX64)\}/i, token: "variable", dedent: true}, {regex: /\$\{(?:Disable|Enable)X64FSRedirection\}/i, token: "variable-2", dedent: true}, // Line Comment {regex: /(#|;).*/, token: "comment"}, // Block Comment {regex: /\/\*/, token: "comment", next: "comment"}, // Operator {regex: /[-+\/*=<>!]+/, token: "operator"}, // Variable {regex: /\$\w[\w\.]*/, token: "variable"}, // Constant {regex: /\${[\!\w\.:-]+}/, token: "variable-2"}, // Language String {regex: /\$\([\!\w\.:-]+\)/, token: "variable-3"} ], comment: [ {regex: /.*?\*\//, token: "comment", next: "start"}, {regex: /.*/, token: "comment"} ], meta: { electricInput: /^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i, blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: ["#", ";"] } }); CodeMirror.defineMIME("text/x-nsis", "nsis"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/ntriples/ntriples.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /********************************************************** * This script provides syntax highlighting support for * the N-Triples format. * N-Triples format specification: * https://www.w3.org/TR/n-triples/ ***********************************************************/ /* The following expression defines the defined ASF grammar transitions. pre_subject -> { ( writing_subject_uri | writing_bnode_uri ) -> pre_predicate -> writing_predicate_uri -> pre_object -> writing_object_uri | writing_object_bnode | ( writing_object_literal -> writing_literal_lang | writing_literal_type ) -> post_object -> BEGIN } otherwise { -> ERROR } */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("ntriples", function() { var Location = { PRE_SUBJECT : 0, WRITING_SUB_URI : 1, WRITING_BNODE_URI : 2, PRE_PRED : 3, WRITING_PRED_URI : 4, PRE_OBJ : 5, WRITING_OBJ_URI : 6, WRITING_OBJ_BNODE : 7, WRITING_OBJ_LITERAL : 8, WRITING_LIT_LANG : 9, WRITING_LIT_TYPE : 10, POST_OBJ : 11, ERROR : 12 }; function transitState(currState, c) { var currLocation = currState.location; var ret; // Opening. if (currLocation == Location.PRE_SUBJECT && c == '<') ret = Location.WRITING_SUB_URI; else if(currLocation == Location.PRE_SUBJECT && c == '_') ret = Location.WRITING_BNODE_URI; else if(currLocation == Location.PRE_PRED && c == '<') ret = Location.WRITING_PRED_URI; else if(currLocation == Location.PRE_OBJ && c == '<') ret = Location.WRITING_OBJ_URI; else if(currLocation == Location.PRE_OBJ && c == '_') ret = Location.WRITING_OBJ_BNODE; else if(currLocation == Location.PRE_OBJ && c == '"') ret = Location.WRITING_OBJ_LITERAL; // Closing. else if(currLocation == Location.WRITING_SUB_URI && c == '>') ret = Location.PRE_PRED; else if(currLocation == Location.WRITING_BNODE_URI && c == ' ') ret = Location.PRE_PRED; else if(currLocation == Location.WRITING_PRED_URI && c == '>') ret = Location.PRE_OBJ; else if(currLocation == Location.WRITING_OBJ_URI && c == '>') ret = Location.POST_OBJ; else if(currLocation == Location.WRITING_OBJ_BNODE && c == ' ') ret = Location.POST_OBJ; else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '"') ret = Location.POST_OBJ; else if(currLocation == Location.WRITING_LIT_LANG && c == ' ') ret = Location.POST_OBJ; else if(currLocation == Location.WRITING_LIT_TYPE && c == '>') ret = Location.POST_OBJ; // Closing typed and language literal. else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '@') ret = Location.WRITING_LIT_LANG; else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '^') ret = Location.WRITING_LIT_TYPE; // Spaces. else if( c == ' ' && ( currLocation == Location.PRE_SUBJECT || currLocation == Location.PRE_PRED || currLocation == Location.PRE_OBJ || currLocation == Location.POST_OBJ ) ) ret = currLocation; // Reset. else if(currLocation == Location.POST_OBJ && c == '.') ret = Location.PRE_SUBJECT; // Error else ret = Location.ERROR; currState.location=ret; } return { startState: function() { return { location : Location.PRE_SUBJECT, uris : [], anchors : [], bnodes : [], langs : [], types : [] }; }, token: function(stream, state) { var ch = stream.next(); if(ch == '<') { transitState(state, ch); var parsedURI = ''; stream.eatWhile( function(c) { if( c != '#' && c != '>' ) { parsedURI += c; return true; } return false;} ); state.uris.push(parsedURI); if( stream.match('#', false) ) return 'variable'; stream.next(); transitState(state, '>'); return 'variable'; } if(ch == '#') { var parsedAnchor = ''; stream.eatWhile(function(c) { if(c != '>' && c != ' ') { parsedAnchor+= c; return true; } return false;}); state.anchors.push(parsedAnchor); return 'variable-2'; } if(ch == '>') { transitState(state, '>'); return 'variable'; } if(ch == '_') { transitState(state, ch); var parsedBNode = ''; stream.eatWhile(function(c) { if( c != ' ' ) { parsedBNode += c; return true; } return false;}); state.bnodes.push(parsedBNode); stream.next(); transitState(state, ' '); return 'builtin'; } if(ch == '"') { transitState(state, ch); stream.eatWhile( function(c) { return c != '"'; } ); stream.next(); if( stream.peek() != '@' && stream.peek() != '^' ) { transitState(state, '"'); } return 'string'; } if( ch == '@' ) { transitState(state, '@'); var parsedLang = ''; stream.eatWhile(function(c) { if( c != ' ' ) { parsedLang += c; return true; } return false;}); state.langs.push(parsedLang); stream.next(); transitState(state, ' '); return 'string-2'; } if( ch == '^' ) { stream.next(); transitState(state, '^'); var parsedType = ''; stream.eatWhile(function(c) { if( c != '>' ) { parsedType += c; return true; } return false;} ); state.types.push(parsedType); stream.next(); transitState(state, '>'); return 'variable'; } if( ch == ' ' ) { transitState(state, ch); } if( ch == '.' ) { transitState(state, ch); } } }; }); // define the registered Media Type for n-triples: // https://www.w3.org/TR/n-triples/#n-triples-mediatype CodeMirror.defineMIME("application/n-triples", "ntriples"); // N-Quads is based on the N-Triples format (so same highlighting works) // https://www.w3.org/TR/n-quads/ CodeMirror.defineMIME("application/n-quads", "ntriples"); // previously used, though technically incorrect media type for n-triples CodeMirror.defineMIME("text/n-triples", "ntriples"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/octave/octave.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("octave", function() { function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b"); } var singleOperators = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"); var singleDelimiters = new RegExp('^[\\(\\[\\{\\},:=;\\.]'); var doubleOperators = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"); var doubleDelimiters = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"); var tripleDelimiters = new RegExp("^((>>=)|(<<=))"); var expressionEnd = new RegExp("^[\\]\\)]"); var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*"); var builtins = wordRegexp([ 'error', 'eval', 'function', 'abs', 'acos', 'atan', 'asin', 'cos', 'cosh', 'exp', 'log', 'prod', 'sum', 'log10', 'max', 'min', 'sign', 'sin', 'sinh', 'sqrt', 'tan', 'reshape', 'break', 'zeros', 'default', 'margin', 'round', 'ones', 'rand', 'syn', 'ceil', 'floor', 'size', 'clear', 'zeros', 'eye', 'mean', 'std', 'cov', 'det', 'eig', 'inv', 'norm', 'rank', 'trace', 'expm', 'logm', 'sqrtm', 'linspace', 'plot', 'title', 'xlabel', 'ylabel', 'legend', 'text', 'grid', 'meshgrid', 'mesh', 'num2str', 'fft', 'ifft', 'arrayfun', 'cellfun', 'input', 'fliplr', 'flipud', 'ismember' ]); var keywords = wordRegexp([ 'return', 'case', 'switch', 'else', 'elseif', 'end', 'endif', 'endfunction', 'if', 'otherwise', 'do', 'for', 'while', 'try', 'catch', 'classdef', 'properties', 'events', 'methods', 'global', 'persistent', 'endfor', 'endwhile', 'printf', 'sprintf', 'disp', 'until', 'continue', 'pkg' ]); // tokenizers function tokenTranspose(stream, state) { if (!stream.sol() && stream.peek() === '\'') { stream.next(); state.tokenize = tokenBase; return 'operator'; } state.tokenize = tokenBase; return tokenBase(stream, state); } function tokenComment(stream, state) { if (stream.match(/^.*%}/)) { state.tokenize = tokenBase; return 'comment'; }; stream.skipToEnd(); return 'comment'; } function tokenBase(stream, state) { // whitespaces if (stream.eatSpace()) return null; // Handle one line Comments if (stream.match('%{')){ state.tokenize = tokenComment; stream.skipToEnd(); return 'comment'; } if (stream.match(/^[%#]/)){ stream.skipToEnd(); return 'comment'; } // Handle Number Literals if (stream.match(/^[0-9\.+-]/, false)) { if (stream.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) { stream.tokenize = tokenBase; return 'number'; }; if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; }; if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; }; } if (stream.match(wordRegexp(['nan','NaN','inf','Inf']))) { return 'number'; }; // Handle Strings var m = stream.match(/^"(?:[^"]|"")*("|$)/) || stream.match(/^'(?:[^']|'')*('|$)/) if (m) { return m[1] ? 'string' : "string error"; } // Handle words if (stream.match(keywords)) { return 'keyword'; } ; if (stream.match(builtins)) { return 'builtin'; } ; if (stream.match(identifiers)) { return 'variable'; } ; if (stream.match(singleOperators) || stream.match(doubleOperators)) { return 'operator'; }; if (stream.match(singleDelimiters) || stream.match(doubleDelimiters) || stream.match(tripleDelimiters)) { return null; }; if (stream.match(expressionEnd)) { state.tokenize = tokenTranspose; return null; }; // Handle non-detected items stream.next(); return 'error'; }; return { startState: function() { return { tokenize: tokenBase }; }, token: function(stream, state) { var style = state.tokenize(stream, state); if (style === 'number' || style === 'variable'){ state.tokenize = tokenTranspose; } return style; }, lineComment: '%', fold: 'indent' }; }); CodeMirror.defineMIME("text/x-octave", "octave"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/oz/oz.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("oz", function (conf) { function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b"); } var singleOperators = /[\^@!\|<>#~\.\*\-\+\\/,=]/; var doubleOperators = /(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/; var tripleOperators = /(:::)|(\.\.\.)|(=<:)|(>=:)/; var middle = ["in", "then", "else", "of", "elseof", "elsecase", "elseif", "catch", "finally", "with", "require", "prepare", "import", "export", "define", "do"]; var end = ["end"]; var atoms = wordRegexp(["true", "false", "nil", "unit"]); var commonKeywords = wordRegexp(["andthen", "at", "attr", "declare", "feat", "from", "lex", "mod", "div", "mode", "orelse", "parser", "prod", "prop", "scanner", "self", "syn", "token"]); var openingKeywords = wordRegexp(["local", "proc", "fun", "case", "class", "if", "cond", "or", "dis", "choice", "not", "thread", "try", "raise", "lock", "for", "suchthat", "meth", "functor"]); var middleKeywords = wordRegexp(middle); var endKeywords = wordRegexp(end); // Tokenizers function tokenBase(stream, state) { if (stream.eatSpace()) { return null; } // Brackets if(stream.match(/[{}]/)) { return "bracket"; } // Special [] keyword if (stream.match('[]')) { return "keyword" } // Operators if (stream.match(tripleOperators) || stream.match(doubleOperators)) { return "operator"; } // Atoms if(stream.match(atoms)) { return 'atom'; } // Opening keywords var matched = stream.match(openingKeywords); if (matched) { if (!state.doInCurrentLine) state.currentIndent++; else state.doInCurrentLine = false; // Special matching for signatures if(matched[0] == "proc" || matched[0] == "fun") state.tokenize = tokenFunProc; else if(matched[0] == "class") state.tokenize = tokenClass; else if(matched[0] == "meth") state.tokenize = tokenMeth; return 'keyword'; } // Middle and other keywords if (stream.match(middleKeywords) || stream.match(commonKeywords)) { return "keyword" } // End keywords if (stream.match(endKeywords)) { state.currentIndent--; return 'keyword'; } // Eat the next char for next comparisons var ch = stream.next(); // Strings if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } // Numbers if (/[~\d]/.test(ch)) { if (ch == "~") { if(! /^[0-9]/.test(stream.peek())) return null; else if (( stream.next() == "0" && stream.match(/^[xX][0-9a-fA-F]+/)) || stream.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)) return "number"; } if ((ch == "0" && stream.match(/^[xX][0-9a-fA-F]+/)) || stream.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)) return "number"; return null; } // Comments if (ch == "%") { stream.skipToEnd(); return 'comment'; } else if (ch == "/") { if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } } // Single operators if(singleOperators.test(ch)) { return "operator"; } // If nothing match, we skip the entire alphanumeric block stream.eatWhile(/\w/); return "variable"; } function tokenClass(stream, state) { if (stream.eatSpace()) { return null; } stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/); state.tokenize = tokenBase; return "variable-3" } function tokenMeth(stream, state) { if (stream.eatSpace()) { return null; } stream.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/); state.tokenize = tokenBase; return "def" } function tokenFunProc(stream, state) { if (stream.eatSpace()) { return null; } if(!state.hasPassedFirstStage && stream.eat("{")) { state.hasPassedFirstStage = true; return "bracket"; } else if(state.hasPassedFirstStage) { stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/); state.hasPassedFirstStage = false; state.tokenize = tokenBase; return "def" } else { state.tokenize = tokenBase; return null; } } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return "comment"; } function tokenString(quote) { return function (stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) { end = true; break; } escaped = !escaped && next == "\\"; } if (end || !escaped) state.tokenize = tokenBase; return "string"; }; } function buildElectricInputRegEx() { // Reindentation should occur on [] or on a match of any of // the block closing keywords, at the end of a line. var allClosings = middle.concat(end); return new RegExp("[\\[\\]]|(" + allClosings.join("|") + ")$"); } return { startState: function () { return { tokenize: tokenBase, currentIndent: 0, doInCurrentLine: false, hasPassedFirstStage: false }; }, token: function (stream, state) { if (stream.sol()) state.doInCurrentLine = 0; return state.tokenize(stream, state); }, indent: function (state, textAfter) { var trueText = textAfter.replace(/^\s+|\s+$/g, ''); if (trueText.match(endKeywords) || trueText.match(middleKeywords) || trueText.match(/(\[])/)) return conf.indentUnit * (state.currentIndent - 1); if (state.currentIndent < 0) return 0; return state.currentIndent * conf.indentUnit; }, fold: "indent", electricInput: buildElectricInputRegEx(), lineComment: "%", blockCommentStart: "/*", blockCommentEnd: "*/" }; }); CodeMirror.defineMIME("text/x-oz", "oz"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/pascal/pascal.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("pascal", function() { function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var keywords = words( "absolute and array asm begin case const constructor destructor div do " + "downto else end file for function goto if implementation in inherited " + "inline interface label mod nil not object of operator or packed procedure " + "program record reintroduce repeat self set shl shr string then to type " + "unit until uses var while with xor as class dispinterface except exports " + "finalization finally initialization inline is library on out packed " + "property raise resourcestring threadvar try absolute abstract alias " + "assembler bitpacked break cdecl continue cppdecl cvar default deprecated " + "dynamic enumerator experimental export external far far16 forward generic " + "helper implements index interrupt iocheck local message name near " + "nodefault noreturn nostackframe oldfpccall otherwise overload override " + "pascal platform private protected public published read register " + "reintroduce result safecall saveregisters softfloat specialize static " + "stdcall stored strict unaligned unimplemented varargs virtual write"); var atoms = {"null": true}; var isOperatorChar = /[+\-*&%=<>!?|\/]/; function tokenBase(stream, state) { var ch = stream.next(); if (ch == "#" && state.startOfLine) { stream.skipToEnd(); return "meta"; } if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (ch == "(" && stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (ch == "{") { state.tokenize = tokenCommentBraces; return tokenCommentBraces(stream, state); } if (/[\[\]\(\),;\:\.]/.test(ch)) { return null; } if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } if (ch == "/") { if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } } if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } stream.eatWhile(/[\w\$_]/); var cur = stream.current(); if (keywords.propertyIsEnumerable(cur)) return "keyword"; if (atoms.propertyIsEnumerable(cur)) return "atom"; return "variable"; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) {end = true; break;} escaped = !escaped && next == "\\"; } if (end || !escaped) state.tokenize = null; return "string"; }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == ")" && maybeEnd) { state.tokenize = null; break; } maybeEnd = (ch == "*"); } return "comment"; } function tokenCommentBraces(stream, state) { var ch; while (ch = stream.next()) { if (ch == "}") { state.tokenize = null; break; } } return "comment"; } // Interface return { startState: function() { return {tokenize: null}; }, token: function(stream, state) { if (stream.eatSpace()) return null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment" || style == "meta") return style; return style; }, electricChars: "{}" }; }); CodeMirror.defineMIME("text/x-pascal", "pascal"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/pegjs/pegjs.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../javascript/javascript")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../javascript/javascript"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("pegjs", function (config) { var jsMode = CodeMirror.getMode(config, "javascript"); function identifier(stream) { return stream.match(/^[a-zA-Z_][a-zA-Z0-9_]*/); } return { startState: function () { return { inString: false, stringType: null, inComment: false, inCharacterClass: false, braced: 0, lhs: true, localState: null }; }, token: function (stream, state) { if (stream) //check for state changes if (!state.inString && !state.inComment && ((stream.peek() == '"') || (stream.peek() == "'"))) { state.stringType = stream.peek(); stream.next(); // Skip quote state.inString = true; // Update state } if (!state.inString && !state.inComment && stream.match('/*')) { state.inComment = true; } //return state if (state.inString) { while (state.inString && !stream.eol()) { if (stream.peek() === state.stringType) { stream.next(); // Skip quote state.inString = false; // Clear flag } else if (stream.peek() === '\\') { stream.next(); stream.next(); } else { stream.match(/^.[^\\\"\']*/); } } return state.lhs ? "property string" : "string"; // Token style } else if (state.inComment) { while (state.inComment && !stream.eol()) { if (stream.match('*/')) { state.inComment = false; // Clear flag } else { stream.match(/^.[^\*]*/); } } return "comment"; } else if (state.inCharacterClass) { while (state.inCharacterClass && !stream.eol()) { if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./))) { state.inCharacterClass = false; } } } else if (stream.peek() === '[') { stream.next(); state.inCharacterClass = true; return 'bracket'; } else if (stream.match('//')) { stream.skipToEnd(); return "comment"; } else if (state.braced || stream.peek() === '{') { if (state.localState === null) { state.localState = CodeMirror.startState(jsMode); } var token = jsMode.token(stream, state.localState); var text = stream.current(); if (!token) { for (var i = 0; i < text.length; i++) { if (text[i] === '{') { state.braced++; } else if (text[i] === '}') { state.braced--; } }; } return token; } else if (identifier(stream)) { if (stream.peek() === ':') { return 'variable'; } return 'variable-2'; } else if (['[', ']', '(', ')'].indexOf(stream.peek()) != -1) { stream.next(); return 'bracket'; } else if (!stream.eatSpace()) { stream.next(); } return null; } }; }, "javascript"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/perl/perl.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // CodeMirror2 mode/perl/perl.js (text/x-perl) beta 0.10 (2011-11-08) // This is a part of CodeMirror from https://github.com/sabaca/CodeMirror_mode_perl (mail@sabaca.com) (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("perl",function(){ // http://perldoc.perl.org var PERL={ // null - magic touch // 1 - keyword // 2 - def // 3 - atom // 4 - operator // 5 - variable-2 (predefined) // [x,y] - x=1,2,3; y=must be defined if x{...} // PERL operators '->' : 4, '++' : 4, '--' : 4, '**' : 4, // ! ~ \ and unary + and - '=~' : 4, '!~' : 4, '*' : 4, '/' : 4, '%' : 4, 'x' : 4, '+' : 4, '-' : 4, '.' : 4, '<<' : 4, '>>' : 4, // named unary operators '<' : 4, '>' : 4, '<=' : 4, '>=' : 4, 'lt' : 4, 'gt' : 4, 'le' : 4, 'ge' : 4, '==' : 4, '!=' : 4, '<=>' : 4, 'eq' : 4, 'ne' : 4, 'cmp' : 4, '~~' : 4, '&' : 4, '|' : 4, '^' : 4, '&&' : 4, '||' : 4, '//' : 4, '..' : 4, '...' : 4, '?' : 4, ':' : 4, '=' : 4, '+=' : 4, '-=' : 4, '*=' : 4, // etc. ??? ',' : 4, '=>' : 4, '::' : 4, // list operators (rightward) 'not' : 4, 'and' : 4, 'or' : 4, 'xor' : 4, // PERL predefined variables (I know, what this is a paranoid idea, but may be needed for people, who learn PERL, and for me as well, ...and may be for you?;) 'BEGIN' : [5,1], 'END' : [5,1], 'PRINT' : [5,1], 'PRINTF' : [5,1], 'GETC' : [5,1], 'READ' : [5,1], 'READLINE' : [5,1], 'DESTROY' : [5,1], 'TIE' : [5,1], 'TIEHANDLE' : [5,1], 'UNTIE' : [5,1], 'STDIN' : 5, 'STDIN_TOP' : 5, 'STDOUT' : 5, 'STDOUT_TOP' : 5, 'STDERR' : 5, 'STDERR_TOP' : 5, '$ARG' : 5, '$_' : 5, '@ARG' : 5, '@_' : 5, '$LIST_SEPARATOR' : 5, '$"' : 5, '$PROCESS_ID' : 5, '$PID' : 5, '$$' : 5, '$REAL_GROUP_ID' : 5, '$GID' : 5, '$(' : 5, '$EFFECTIVE_GROUP_ID' : 5, '$EGID' : 5, '$)' : 5, '$PROGRAM_NAME' : 5, '$0' : 5, '$SUBSCRIPT_SEPARATOR' : 5, '$SUBSEP' : 5, '$;' : 5, '$REAL_USER_ID' : 5, '$UID' : 5, '$<' : 5, '$EFFECTIVE_USER_ID' : 5, '$EUID' : 5, '$>' : 5, '$a' : 5, '$b' : 5, '$COMPILING' : 5, '$^C' : 5, '$DEBUGGING' : 5, '$^D' : 5, '${^ENCODING}' : 5, '$ENV' : 5, '%ENV' : 5, '$SYSTEM_FD_MAX' : 5, '$^F' : 5, '@F' : 5, '${^GLOBAL_PHASE}' : 5, '$^H' : 5, '%^H' : 5, '@INC' : 5, '%INC' : 5, '$INPLACE_EDIT' : 5, '$^I' : 5, '$^M' : 5, '$OSNAME' : 5, '$^O' : 5, '${^OPEN}' : 5, '$PERLDB' : 5, '$^P' : 5, '$SIG' : 5, '%SIG' : 5, '$BASETIME' : 5, '$^T' : 5, '${^TAINT}' : 5, '${^UNICODE}' : 5, '${^UTF8CACHE}' : 5, '${^UTF8LOCALE}' : 5, '$PERL_VERSION' : 5, '$^V' : 5, '${^WIN32_SLOPPY_STAT}' : 5, '$EXECUTABLE_NAME' : 5, '$^X' : 5, '$1' : 5, // - regexp $1, $2... '$MATCH' : 5, '$&' : 5, '${^MATCH}' : 5, '$PREMATCH' : 5, '$`' : 5, '${^PREMATCH}' : 5, '$POSTMATCH' : 5, "$'" : 5, '${^POSTMATCH}' : 5, '$LAST_PAREN_MATCH' : 5, '$+' : 5, '$LAST_SUBMATCH_RESULT' : 5, '$^N' : 5, '@LAST_MATCH_END' : 5, '@+' : 5, '%LAST_PAREN_MATCH' : 5, '%+' : 5, '@LAST_MATCH_START' : 5, '@-' : 5, '%LAST_MATCH_START' : 5, '%-' : 5, '$LAST_REGEXP_CODE_RESULT' : 5, '$^R' : 5, '${^RE_DEBUG_FLAGS}' : 5, '${^RE_TRIE_MAXBUF}' : 5, '$ARGV' : 5, '@ARGV' : 5, 'ARGV' : 5, 'ARGVOUT' : 5, '$OUTPUT_FIELD_SEPARATOR' : 5, '$OFS' : 5, '$,' : 5, '$INPUT_LINE_NUMBER' : 5, '$NR' : 5, '$.' : 5, '$INPUT_RECORD_SEPARATOR' : 5, '$RS' : 5, '$/' : 5, '$OUTPUT_RECORD_SEPARATOR' : 5, '$ORS' : 5, '$\\' : 5, '$OUTPUT_AUTOFLUSH' : 5, '$|' : 5, '$ACCUMULATOR' : 5, '$^A' : 5, '$FORMAT_FORMFEED' : 5, '$^L' : 5, '$FORMAT_PAGE_NUMBER' : 5, '$%' : 5, '$FORMAT_LINES_LEFT' : 5, '$-' : 5, '$FORMAT_LINE_BREAK_CHARACTERS' : 5, '$:' : 5, '$FORMAT_LINES_PER_PAGE' : 5, '$=' : 5, '$FORMAT_TOP_NAME' : 5, '$^' : 5, '$FORMAT_NAME' : 5, '$~' : 5, '${^CHILD_ERROR_NATIVE}' : 5, '$EXTENDED_OS_ERROR' : 5, '$^E' : 5, '$EXCEPTIONS_BEING_CAUGHT' : 5, '$^S' : 5, '$WARNING' : 5, '$^W' : 5, '${^WARNING_BITS}' : 5, '$OS_ERROR' : 5, '$ERRNO' : 5, '$!' : 5, '%OS_ERROR' : 5, '%ERRNO' : 5, '%!' : 5, '$CHILD_ERROR' : 5, '$?' : 5, '$EVAL_ERROR' : 5, '$@' : 5, '$OFMT' : 5, '$#' : 5, '$*' : 5, '$ARRAY_BASE' : 5, '$[' : 5, '$OLD_PERL_VERSION' : 5, '$]' : 5, // PERL blocks 'if' :[1,1], elsif :[1,1], 'else' :[1,1], 'while' :[1,1], unless :[1,1], 'for' :[1,1], foreach :[1,1], // PERL functions 'abs' :1, // - absolute value function accept :1, // - accept an incoming socket connect alarm :1, // - schedule a SIGALRM 'atan2' :1, // - arctangent of Y/X in the range -PI to PI bind :1, // - binds an address to a socket binmode :1, // - prepare binary files for I/O bless :1, // - create an object bootstrap :1, // 'break' :1, // - break out of a "given" block caller :1, // - get context of the current subroutine call chdir :1, // - change your current working directory chmod :1, // - changes the permissions on a list of files chomp :1, // - remove a trailing record separator from a string chop :1, // - remove the last character from a string chown :1, // - change the ownership on a list of files chr :1, // - get character this number represents chroot :1, // - make directory new root for path lookups close :1, // - close file (or pipe or socket) handle closedir :1, // - close directory handle connect :1, // - connect to a remote socket 'continue' :[1,1], // - optional trailing block in a while or foreach 'cos' :1, // - cosine function crypt :1, // - one-way passwd-style encryption dbmclose :1, // - breaks binding on a tied dbm file dbmopen :1, // - create binding on a tied dbm file 'default' :1, // defined :1, // - test whether a value, variable, or function is defined 'delete' :1, // - deletes a value from a hash die :1, // - raise an exception or bail out 'do' :1, // - turn a BLOCK into a TERM dump :1, // - create an immediate core dump each :1, // - retrieve the next key/value pair from a hash endgrent :1, // - be done using group file endhostent :1, // - be done using hosts file endnetent :1, // - be done using networks file endprotoent :1, // - be done using protocols file endpwent :1, // - be done using passwd file endservent :1, // - be done using services file eof :1, // - test a filehandle for its end 'eval' :1, // - catch exceptions or compile and run code 'exec' :1, // - abandon this program to run another exists :1, // - test whether a hash key is present exit :1, // - terminate this program 'exp' :1, // - raise I to a power fcntl :1, // - file control system call fileno :1, // - return file descriptor from filehandle flock :1, // - lock an entire file with an advisory lock fork :1, // - create a new process just like this one format :1, // - declare a picture format with use by the write() function formline :1, // - internal function used for formats getc :1, // - get the next character from the filehandle getgrent :1, // - get next group record getgrgid :1, // - get group record given group user ID getgrnam :1, // - get group record given group name gethostbyaddr :1, // - get host record given its address gethostbyname :1, // - get host record given name gethostent :1, // - get next hosts record getlogin :1, // - return who logged in at this tty getnetbyaddr :1, // - get network record given its address getnetbyname :1, // - get networks record given name getnetent :1, // - get next networks record getpeername :1, // - find the other end of a socket connection getpgrp :1, // - get process group getppid :1, // - get parent process ID getpriority :1, // - get current nice value getprotobyname :1, // - get protocol record given name getprotobynumber :1, // - get protocol record numeric protocol getprotoent :1, // - get next protocols record getpwent :1, // - get next passwd record getpwnam :1, // - get passwd record given user login name getpwuid :1, // - get passwd record given user ID getservbyname :1, // - get services record given its name getservbyport :1, // - get services record given numeric port getservent :1, // - get next services record getsockname :1, // - retrieve the sockaddr for a given socket getsockopt :1, // - get socket options on a given socket given :1, // glob :1, // - expand filenames using wildcards gmtime :1, // - convert UNIX time into record or string using Greenwich time 'goto' :1, // - create spaghetti code grep :1, // - locate elements in a list test true against a given criterion hex :1, // - convert a string to a hexadecimal number 'import' :1, // - patch a module's namespace into your own index :1, // - find a substring within a string 'int' :1, // - get the integer portion of a number ioctl :1, // - system-dependent device control system call 'join' :1, // - join a list into a string using a separator keys :1, // - retrieve list of indices from a hash kill :1, // - send a signal to a process or process group last :1, // - exit a block prematurely lc :1, // - return lower-case version of a string lcfirst :1, // - return a string with just the next letter in lower case length :1, // - return the number of bytes in a string 'link' :1, // - create a hard link in the filesystem listen :1, // - register your socket as a server local : 2, // - create a temporary value for a global variable (dynamic scoping) localtime :1, // - convert UNIX time into record or string using local time lock :1, // - get a thread lock on a variable, subroutine, or method 'log' :1, // - retrieve the natural logarithm for a number lstat :1, // - stat a symbolic link m :null, // - match a string with a regular expression pattern map :1, // - apply a change to a list to get back a new list with the changes mkdir :1, // - create a directory msgctl :1, // - SysV IPC message control operations msgget :1, // - get SysV IPC message queue msgrcv :1, // - receive a SysV IPC message from a message queue msgsnd :1, // - send a SysV IPC message to a message queue my : 2, // - declare and assign a local variable (lexical scoping) 'new' :1, // next :1, // - iterate a block prematurely no :1, // - unimport some module symbols or semantics at compile time oct :1, // - convert a string to an octal number open :1, // - open a file, pipe, or descriptor opendir :1, // - open a directory ord :1, // - find a character's numeric representation our : 2, // - declare and assign a package variable (lexical scoping) pack :1, // - convert a list into a binary representation 'package' :1, // - declare a separate global namespace pipe :1, // - open a pair of connected filehandles pop :1, // - remove the last element from an array and return it pos :1, // - find or set the offset for the last/next m//g search print :1, // - output a list to a filehandle printf :1, // - output a formatted list to a filehandle prototype :1, // - get the prototype (if any) of a subroutine push :1, // - append one or more elements to an array q :null, // - singly quote a string qq :null, // - doubly quote a string qr :null, // - Compile pattern quotemeta :null, // - quote regular expression magic characters qw :null, // - quote a list of words qx :null, // - backquote quote a string rand :1, // - retrieve the next pseudorandom number read :1, // - fixed-length buffered input from a filehandle readdir :1, // - get a directory from a directory handle readline :1, // - fetch a record from a file readlink :1, // - determine where a symbolic link is pointing readpipe :1, // - execute a system command and collect standard output recv :1, // - receive a message over a Socket redo :1, // - start this loop iteration over again ref :1, // - find out the type of thing being referenced rename :1, // - change a filename require :1, // - load in external functions from a library at runtime reset :1, // - clear all variables of a given name 'return' :1, // - get out of a function early reverse :1, // - flip a string or a list rewinddir :1, // - reset directory handle rindex :1, // - right-to-left substring search rmdir :1, // - remove a directory s :null, // - replace a pattern with a string say :1, // - print with newline scalar :1, // - force a scalar context seek :1, // - reposition file pointer for random-access I/O seekdir :1, // - reposition directory pointer select :1, // - reset default output or do I/O multiplexing semctl :1, // - SysV semaphore control operations semget :1, // - get set of SysV semaphores semop :1, // - SysV semaphore operations send :1, // - send a message over a socket setgrent :1, // - prepare group file for use sethostent :1, // - prepare hosts file for use setnetent :1, // - prepare networks file for use setpgrp :1, // - set the process group of a process setpriority :1, // - set a process's nice value setprotoent :1, // - prepare protocols file for use setpwent :1, // - prepare passwd file for use setservent :1, // - prepare services file for use setsockopt :1, // - set some socket options shift :1, // - remove the first element of an array, and return it shmctl :1, // - SysV shared memory operations shmget :1, // - get SysV shared memory segment identifier shmread :1, // - read SysV shared memory shmwrite :1, // - write SysV shared memory shutdown :1, // - close down just half of a socket connection 'sin' :1, // - return the sine of a number sleep :1, // - block for some number of seconds socket :1, // - create a socket socketpair :1, // - create a pair of sockets 'sort' :1, // - sort a list of values splice :1, // - add or remove elements anywhere in an array 'split' :1, // - split up a string using a regexp delimiter sprintf :1, // - formatted print into a string 'sqrt' :1, // - square root function srand :1, // - seed the random number generator stat :1, // - get a file's status information state :1, // - declare and assign a state variable (persistent lexical scoping) study :1, // - optimize input data for repeated searches 'sub' :1, // - declare a subroutine, possibly anonymously 'substr' :1, // - get or alter a portion of a string symlink :1, // - create a symbolic link to a file syscall :1, // - execute an arbitrary system call sysopen :1, // - open a file, pipe, or descriptor sysread :1, // - fixed-length unbuffered input from a filehandle sysseek :1, // - position I/O pointer on handle used with sysread and syswrite system :1, // - run a separate program syswrite :1, // - fixed-length unbuffered output to a filehandle tell :1, // - get current seekpointer on a filehandle telldir :1, // - get current seekpointer on a directory handle tie :1, // - bind a variable to an object class tied :1, // - get a reference to the object underlying a tied variable time :1, // - return number of seconds since 1970 times :1, // - return elapsed time for self and child processes tr :null, // - transliterate a string truncate :1, // - shorten a file uc :1, // - return upper-case version of a string ucfirst :1, // - return a string with just the next letter in upper case umask :1, // - set file creation mode mask undef :1, // - remove a variable or function definition unlink :1, // - remove one link to a file unpack :1, // - convert binary structure into normal perl variables unshift :1, // - prepend more elements to the beginning of a list untie :1, // - break a tie binding to a variable use :1, // - load in a module at compile time utime :1, // - set a file's last access and modify times values :1, // - return a list of the values in a hash vec :1, // - test or set particular bits in a string wait :1, // - wait for any child process to die waitpid :1, // - wait for a particular child process to die wantarray :1, // - get void vs scalar vs list context of current subroutine call warn :1, // - print debugging info when :1, // write :1, // - print a picture record y :null}; // - transliterate a string var RXstyle="string-2"; var RXmodifiers=/[goseximacplud]/; // NOTE: "m", "s", "y" and "tr" need to correct real modifiers for each regexp type function tokenChain(stream,state,chain,style,tail){ // NOTE: chain.length > 2 is not working now (it's for s[...][...]geos;) state.chain=null; // 12 3tail state.style=null; state.tail=null; state.tokenize=function(stream,state){ var e=false,c,i=0; while(c=stream.next()){ if(c===chain[i]&&!e){ if(chain[++i]!==undefined){ state.chain=chain[i]; state.style=style; state.tail=tail;} else if(tail) stream.eatWhile(tail); state.tokenize=tokenPerl; return style;} e=!e&&c=="\\";} return style;}; return state.tokenize(stream,state);} function tokenSOMETHING(stream,state,string){ state.tokenize=function(stream,state){ if(stream.string==string) state.tokenize=tokenPerl; stream.skipToEnd(); return "string";}; return state.tokenize(stream,state);} function tokenPerl(stream,state){ if(stream.eatSpace()) return null; if(state.chain) return tokenChain(stream,state,state.chain,state.style,state.tail); if(stream.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/)) return 'number'; if(stream.match(/^<<(?=[_a-zA-Z])/)){ // NOTE: <"],RXstyle,RXmodifiers);} if(/[\^'"!~\/]/.test(c)){ eatSuffix(stream, 1); return tokenChain(stream,state,[stream.eat(c)],RXstyle,RXmodifiers);}} else if(c=="q"){ c=look(stream, 1); if(c=="("){ eatSuffix(stream, 2); return tokenChain(stream,state,[")"],"string");} if(c=="["){ eatSuffix(stream, 2); return tokenChain(stream,state,["]"],"string");} if(c=="{"){ eatSuffix(stream, 2); return tokenChain(stream,state,["}"],"string");} if(c=="<"){ eatSuffix(stream, 2); return tokenChain(stream,state,[">"],"string");} if(/[\^'"!~\/]/.test(c)){ eatSuffix(stream, 1); return tokenChain(stream,state,[stream.eat(c)],"string");}} else if(c=="w"){ c=look(stream, 1); if(c=="("){ eatSuffix(stream, 2); return tokenChain(stream,state,[")"],"bracket");} if(c=="["){ eatSuffix(stream, 2); return tokenChain(stream,state,["]"],"bracket");} if(c=="{"){ eatSuffix(stream, 2); return tokenChain(stream,state,["}"],"bracket");} if(c=="<"){ eatSuffix(stream, 2); return tokenChain(stream,state,[">"],"bracket");} if(/[\^'"!~\/]/.test(c)){ eatSuffix(stream, 1); return tokenChain(stream,state,[stream.eat(c)],"bracket");}} else if(c=="r"){ c=look(stream, 1); if(c=="("){ eatSuffix(stream, 2); return tokenChain(stream,state,[")"],RXstyle,RXmodifiers);} if(c=="["){ eatSuffix(stream, 2); return tokenChain(stream,state,["]"],RXstyle,RXmodifiers);} if(c=="{"){ eatSuffix(stream, 2); return tokenChain(stream,state,["}"],RXstyle,RXmodifiers);} if(c=="<"){ eatSuffix(stream, 2); return tokenChain(stream,state,[">"],RXstyle,RXmodifiers);} if(/[\^'"!~\/]/.test(c)){ eatSuffix(stream, 1); return tokenChain(stream,state,[stream.eat(c)],RXstyle,RXmodifiers);}} else if(/[\^'"!~\/(\[{<]/.test(c)){ if(c=="("){ eatSuffix(stream, 1); return tokenChain(stream,state,[")"],"string");} if(c=="["){ eatSuffix(stream, 1); return tokenChain(stream,state,["]"],"string");} if(c=="{"){ eatSuffix(stream, 1); return tokenChain(stream,state,["}"],"string");} if(c=="<"){ eatSuffix(stream, 1); return tokenChain(stream,state,[">"],"string");} if(/[\^'"!~\/]/.test(c)){ return tokenChain(stream,state,[stream.eat(c)],"string");}}}} if(ch=="m"){ var c=look(stream, -2); if(!(c&&/\w/.test(c))){ c=stream.eat(/[(\[{<\^'"!~\/]/); if(c){ if(/[\^'"!~\/]/.test(c)){ return tokenChain(stream,state,[c],RXstyle,RXmodifiers);} if(c=="("){ return tokenChain(stream,state,[")"],RXstyle,RXmodifiers);} if(c=="["){ return tokenChain(stream,state,["]"],RXstyle,RXmodifiers);} if(c=="{"){ return tokenChain(stream,state,["}"],RXstyle,RXmodifiers);} if(c=="<"){ return tokenChain(stream,state,[">"],RXstyle,RXmodifiers);}}}} if(ch=="s"){ var c=/[\/>\]})\w]/.test(look(stream, -2)); if(!c){ c=stream.eat(/[(\[{<\^'"!~\/]/); if(c){ if(c=="[") return tokenChain(stream,state,["]","]"],RXstyle,RXmodifiers); if(c=="{") return tokenChain(stream,state,["}","}"],RXstyle,RXmodifiers); if(c=="<") return tokenChain(stream,state,[">",">"],RXstyle,RXmodifiers); if(c=="(") return tokenChain(stream,state,[")",")"],RXstyle,RXmodifiers); return tokenChain(stream,state,[c,c],RXstyle,RXmodifiers);}}} if(ch=="y"){ var c=/[\/>\]})\w]/.test(look(stream, -2)); if(!c){ c=stream.eat(/[(\[{<\^'"!~\/]/); if(c){ if(c=="[") return tokenChain(stream,state,["]","]"],RXstyle,RXmodifiers); if(c=="{") return tokenChain(stream,state,["}","}"],RXstyle,RXmodifiers); if(c=="<") return tokenChain(stream,state,[">",">"],RXstyle,RXmodifiers); if(c=="(") return tokenChain(stream,state,[")",")"],RXstyle,RXmodifiers); return tokenChain(stream,state,[c,c],RXstyle,RXmodifiers);}}} if(ch=="t"){ var c=/[\/>\]})\w]/.test(look(stream, -2)); if(!c){ c=stream.eat("r");if(c){ c=stream.eat(/[(\[{<\^'"!~\/]/); if(c){ if(c=="[") return tokenChain(stream,state,["]","]"],RXstyle,RXmodifiers); if(c=="{") return tokenChain(stream,state,["}","}"],RXstyle,RXmodifiers); if(c=="<") return tokenChain(stream,state,[">",">"],RXstyle,RXmodifiers); if(c=="(") return tokenChain(stream,state,[")",")"],RXstyle,RXmodifiers); return tokenChain(stream,state,[c,c],RXstyle,RXmodifiers);}}}} if(ch=="`"){ return tokenChain(stream,state,[ch],"variable-2");} if(ch=="/"){ if(!/~\s*$/.test(prefix(stream))) return "operator"; else return tokenChain(stream,state,[ch],RXstyle,RXmodifiers);} if(ch=="$"){ var p=stream.pos; if(stream.eatWhile(/\d/)||stream.eat("{")&&stream.eatWhile(/\d/)&&stream.eat("}")) return "variable-2"; else stream.pos=p;} if(/[$@%]/.test(ch)){ var p=stream.pos; if(stream.eat("^")&&stream.eat(/[A-Z]/)||!/[@$%&]/.test(look(stream, -2))&&stream.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){ var c=stream.current(); if(PERL[c]) return "variable-2";} stream.pos=p;} if(/[$@%&]/.test(ch)){ if(stream.eatWhile(/[\w$]/)||stream.eat("{")&&stream.eatWhile(/[\w$]/)&&stream.eat("}")){ var c=stream.current(); if(PERL[c]) return "variable-2"; else return "variable";}} if(ch=="#"){ if(look(stream, -2)!="$"){ stream.skipToEnd(); return "comment";}} if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(ch)){ var p=stream.pos; stream.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/); if(PERL[stream.current()]) return "operator"; else stream.pos=p;} if(ch=="_"){ if(stream.pos==1){ if(suffix(stream, 6)=="_END__"){ return tokenChain(stream,state,['\0'],"comment");} else if(suffix(stream, 7)=="_DATA__"){ return tokenChain(stream,state,['\0'],"variable-2");} else if(suffix(stream, 7)=="_C__"){ return tokenChain(stream,state,['\0'],"string");}}} if(/\w/.test(ch)){ var p=stream.pos; if(look(stream, -2)=="{"&&(look(stream, 0)=="}"||stream.eatWhile(/\w/)&&look(stream, 0)=="}")) return "string"; else stream.pos=p;} if(/[A-Z]/.test(ch)){ var l=look(stream, -2); var p=stream.pos; stream.eatWhile(/[A-Z_]/); if(/[\da-z]/.test(look(stream, 0))){ stream.pos=p;} else{ var c=PERL[stream.current()]; if(!c) return "meta"; if(c[1]) c=c[0]; if(l!=":"){ if(c==1) return "keyword"; else if(c==2) return "def"; else if(c==3) return "atom"; else if(c==4) return "operator"; else if(c==5) return "variable-2"; else return "meta";} else return "meta";}} if(/[a-zA-Z_]/.test(ch)){ var l=look(stream, -2); stream.eatWhile(/\w/); var c=PERL[stream.current()]; if(!c) return "meta"; if(c[1]) c=c[0]; if(l!=":"){ if(c==1) return "keyword"; else if(c==2) return "def"; else if(c==3) return "atom"; else if(c==4) return "operator"; else if(c==5) return "variable-2"; else return "meta";} else return "meta";} return null;} return { startState: function() { return { tokenize: tokenPerl, chain: null, style: null, tail: null }; }, token: function(stream, state) { return (state.tokenize || tokenPerl)(stream, state); }, lineComment: '#' }; }); CodeMirror.registerHelper("wordChars", "perl", /[\w$]/); CodeMirror.defineMIME("text/x-perl", "perl"); // it's like "peek", but need for look-ahead or look-behind if index < 0 function look(stream, c){ return stream.string.charAt(stream.pos+(c||0)); } // return a part of prefix of current stream from current position function prefix(stream, c){ if(c){ var x=stream.pos-c; return stream.string.substr((x>=0?x:0),c);} else{ return stream.string.substr(0,stream.pos-1); } } // return a part of suffix of current stream from current position function suffix(stream, c){ var y=stream.string.length; var x=y-stream.pos+1; return stream.string.substr(stream.pos,(c&&c=(y=stream.string.length-1)) stream.pos=y; else stream.pos=x; } }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/php/php.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../clike/clike")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../clike/clike"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function keywords(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } // Helper for phpString function matchSequence(list, end, escapes) { if (list.length == 0) return phpString(end); return function (stream, state) { var patterns = list[0]; for (var i = 0; i < patterns.length; i++) if (stream.match(patterns[i][0])) { state.tokenize = matchSequence(list.slice(1), end); return patterns[i][1]; } state.tokenize = phpString(end, escapes); return "string"; }; } function phpString(closing, escapes) { return function(stream, state) { return phpString_(stream, state, closing, escapes); }; } function phpString_(stream, state, closing, escapes) { // "Complex" syntax if (escapes !== false && stream.match("${", false) || stream.match("{$", false)) { state.tokenize = null; return "string"; } // Simple syntax if (escapes !== false && stream.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/)) { // After the variable name there may appear array or object operator. if (stream.match("[", false)) { // Match array operator state.tokenize = matchSequence([ [["[", null]], [[/\d[\w\.]*/, "number"], [/\$[a-zA-Z_][a-zA-Z0-9_]*/, "variable-2"], [/[\w\$]+/, "variable"]], [["]", null]] ], closing, escapes); } if (stream.match(/^->\w/, false)) { // Match object operator state.tokenize = matchSequence([ [["->", null]], [[/[\w]+/, "variable"]] ], closing, escapes); } return "variable-2"; } var escaped = false; // Normal string while (!stream.eol() && (escaped || escapes === false || (!stream.match("{$", false) && !stream.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/, false)))) { if (!escaped && stream.match(closing)) { state.tokenize = null; state.tokStack.pop(); state.tokStack.pop(); break; } escaped = stream.next() == "\\" && !escaped; } return "string"; } var phpKeywords = "abstract and array as break case catch class clone const continue declare default " + "do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final " + "for foreach function global goto if implements interface instanceof namespace " + "new or private protected public static switch throw trait try use var while xor " + "die echo empty exit eval include include_once isset list require require_once return " + "print unset __halt_compiler self static parent yield insteadof finally readonly match"; var phpAtoms = "true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"; var phpBuiltin = "func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count"; CodeMirror.registerHelper("hintWords", "php", [phpKeywords, phpAtoms, phpBuiltin].join(" ").split(" ")); CodeMirror.registerHelper("wordChars", "php", /[\w$]/); var phpConfig = { name: "clike", helperType: "php", keywords: keywords(phpKeywords), blockKeywords: keywords("catch do else elseif for foreach if switch try while finally"), defKeywords: keywords("class enum function interface namespace trait"), atoms: keywords(phpAtoms), builtin: keywords(phpBuiltin), multiLineStrings: true, hooks: { "$": function(stream) { stream.eatWhile(/[\w\$_]/); return "variable-2"; }, "<": function(stream, state) { var before; if (before = stream.match(/^<<\s*/)) { var quoted = stream.eat(/['"]/); stream.eatWhile(/[\w\.]/); var delim = stream.current().slice(before[0].length + (quoted ? 2 : 1)); if (quoted) stream.eat(quoted); if (delim) { (state.tokStack || (state.tokStack = [])).push(delim, 0); state.tokenize = phpString(delim, quoted != "'"); return "string"; } } return false; }, "#": function(stream) { while (!stream.eol() && !stream.match("?>", false)) stream.next(); return "comment"; }, "/": function(stream) { if (stream.eat("/")) { while (!stream.eol() && !stream.match("?>", false)) stream.next(); return "comment"; } return false; }, '"': function(_stream, state) { (state.tokStack || (state.tokStack = [])).push('"', 0); state.tokenize = phpString('"'); return "string"; }, "{": function(_stream, state) { if (state.tokStack && state.tokStack.length) state.tokStack[state.tokStack.length - 1]++; return false; }, "}": function(_stream, state) { if (state.tokStack && state.tokStack.length > 0 && !--state.tokStack[state.tokStack.length - 1]) { state.tokenize = phpString(state.tokStack[state.tokStack.length - 2]); } return false; } } }; CodeMirror.defineMode("php", function(config, parserConfig) { var htmlMode = CodeMirror.getMode(config, (parserConfig && parserConfig.htmlMode) || "text/html"); var phpMode = CodeMirror.getMode(config, phpConfig); function dispatch(stream, state) { var isPHP = state.curMode == phpMode; if (stream.sol() && state.pending && state.pending != '"' && state.pending != "'") state.pending = null; if (!isPHP) { if (stream.match(/^<\?\w*/)) { state.curMode = phpMode; if (!state.php) state.php = CodeMirror.startState(phpMode, htmlMode.indent(state.html, "", "")) state.curState = state.php; return "meta"; } if (state.pending == '"' || state.pending == "'") { while (!stream.eol() && stream.next() != state.pending) {} var style = "string"; } else if (state.pending && stream.pos < state.pending.end) { stream.pos = state.pending.end; var style = state.pending.style; } else { var style = htmlMode.token(stream, state.curState); } if (state.pending) state.pending = null; var cur = stream.current(), openPHP = cur.search(/<\?/), m; if (openPHP != -1) { if (style == "string" && (m = cur.match(/[\'\"]$/)) && !/\?>/.test(cur)) state.pending = m[0]; else state.pending = {end: stream.pos, style: style}; stream.backUp(cur.length - openPHP); } return style; } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { state.curMode = htmlMode; state.curState = state.html; if (!state.php.context.prev) state.php = null; return "meta"; } else { return phpMode.token(stream, state.curState); } } return { startState: function() { var html = CodeMirror.startState(htmlMode) var php = parserConfig.startOpen ? CodeMirror.startState(phpMode) : null return {html: html, php: php, curMode: parserConfig.startOpen ? phpMode : htmlMode, curState: parserConfig.startOpen ? php : html, pending: null}; }, copyState: function(state) { var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), php = state.php, phpNew = php && CodeMirror.copyState(phpMode, php), cur; if (state.curMode == htmlMode) cur = htmlNew; else cur = phpNew; return {html: htmlNew, php: phpNew, curMode: state.curMode, curState: cur, pending: state.pending}; }, token: dispatch, indent: function(state, textAfter, line) { if ((state.curMode != phpMode && /^\s*<\//.test(textAfter)) || (state.curMode == phpMode && /^\?>/.test(textAfter))) return htmlMode.indent(state.html, textAfter, line); return state.curMode.indent(state.curState, textAfter, line); }, blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//", innerMode: function(state) { return {state: state.curState, mode: state.curMode}; } }; }, "htmlmixed", "clike"); CodeMirror.defineMIME("application/x-httpd-php", "php"); CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); CodeMirror.defineMIME("text/x-php", phpConfig); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/pig/pig.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /* * Pig Latin Mode for CodeMirror 2 * @author Prasanth Jayachandran * @link https://github.com/prasanthj/pig-codemirror-2 * This implementation is adapted from PL/SQL mode in CodeMirror 2. */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("pig", function(_config, parserConfig) { var keywords = parserConfig.keywords, builtins = parserConfig.builtins, types = parserConfig.types, multiLineStrings = parserConfig.multiLineStrings; var isOperatorChar = /[*+\-%<>=&?:\/!|]/; function chain(stream, state, f) { state.tokenize = f; return f(stream, state); } function tokenComment(stream, state) { var isEnd = false; var ch; while(ch = stream.next()) { if(ch == "/" && isEnd) { state.tokenize = tokenBase; break; } isEnd = (ch == "*"); } return "comment"; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while((next = stream.next()) != null) { if (next == quote && !escaped) { end = true; break; } escaped = !escaped && next == "\\"; } if (end || !(escaped || multiLineStrings)) state.tokenize = tokenBase; return "error"; }; } function tokenBase(stream, state) { var ch = stream.next(); // is a start of string? if (ch == '"' || ch == "'") return chain(stream, state, tokenString(ch)); // is it one of the special chars else if(/[\[\]{}\(\),;\.]/.test(ch)) return null; // is it a number? else if(/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } // multi line comment or operator else if (ch == "/") { if (stream.eat("*")) { return chain(stream, state, tokenComment); } else { stream.eatWhile(isOperatorChar); return "operator"; } } // single line comment or operator else if (ch=="-") { if(stream.eat("-")){ stream.skipToEnd(); return "comment"; } else { stream.eatWhile(isOperatorChar); return "operator"; } } // is it an operator else if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } else { // get the while word stream.eatWhile(/[\w\$_]/); // is it one of the listed keywords? if (keywords && keywords.propertyIsEnumerable(stream.current().toUpperCase())) { //keywords can be used as variables like flatten(group), group.$0 etc.. if (!stream.eat(")") && !stream.eat(".")) return "keyword"; } // is it one of the builtin functions? if (builtins && builtins.propertyIsEnumerable(stream.current().toUpperCase())) return "variable-2"; // is it one of the listed types? if (types && types.propertyIsEnumerable(stream.current().toUpperCase())) return "variable-3"; // default is a 'variable' return "variable"; } } // Interface return { startState: function() { return { tokenize: tokenBase, startOfLine: true }; }, token: function(stream, state) { if(stream.eatSpace()) return null; var style = state.tokenize(stream, state); return style; } }; }); (function() { function keywords(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } // builtin funcs taken from trunk revision 1303237 var pBuiltins = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL " + "CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS " + "DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG " + "FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN " + "INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER " + "ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS " + "LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA " + "PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE " + "SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG " + "TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER "; // taken from QueryLexer.g var pKeywords = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP " + "JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL " + "PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE " + "SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE " + "NEQ MATCHES TRUE FALSE DUMP"; // data types var pTypes = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP "; CodeMirror.defineMIME("text/x-pig", { name: "pig", builtins: keywords(pBuiltins), keywords: keywords(pKeywords), types: keywords(pTypes) }); CodeMirror.registerHelper("hintWords", "pig", (pBuiltins + pTypes + pKeywords).split(" ")); }()); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/powershell/powershell.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { 'use strict'; if (typeof exports == 'object' && typeof module == 'object') // CommonJS mod(require('../../lib/codemirror')); else if (typeof define == 'function' && define.amd) // AMD define(['../../lib/codemirror'], mod); else // Plain browser env mod(window.CodeMirror); })(function(CodeMirror) { 'use strict'; CodeMirror.defineMode('powershell', function() { function buildRegexp(patterns, options) { options = options || {}; var prefix = options.prefix !== undefined ? options.prefix : '^'; var suffix = options.suffix !== undefined ? options.suffix : '\\b'; for (var i = 0; i < patterns.length; i++) { if (patterns[i] instanceof RegExp) { patterns[i] = patterns[i].source; } else { patterns[i] = patterns[i].replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); } } return new RegExp(prefix + '(' + patterns.join('|') + ')' + suffix, 'i'); } var notCharacterOrDash = '(?=[^A-Za-z\\d\\-_]|$)'; var varNames = /[\w\-:]/ var keywords = buildRegexp([ /begin|break|catch|continue|data|default|do|dynamicparam/, /else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/, /param|process|return|switch|throw|trap|try|until|where|while/ ], { suffix: notCharacterOrDash }); var punctuation = /[\[\]{},;`\\\.]|@[({]/; var wordOperators = buildRegexp([ 'f', /b?not/, /[ic]?split/, 'join', /is(not)?/, 'as', /[ic]?(eq|ne|[gl][te])/, /[ic]?(not)?(like|match|contains)/, /[ic]?replace/, /b?(and|or|xor)/ ], { prefix: '-' }); var symbolOperators = /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/; var operators = buildRegexp([wordOperators, symbolOperators], { suffix: '' }); var numbers = /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i; var identifiers = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/; var symbolBuiltins = /[A-Z]:|%|\?/i; var namedBuiltins = buildRegexp([ /Add-(Computer|Content|History|Member|PSSnapin|Type)/, /Checkpoint-Computer/, /Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/, /Compare-Object/, /Complete-Transaction/, /Connect-PSSession/, /ConvertFrom-(Csv|Json|SecureString|StringData)/, /Convert-Path/, /ConvertTo-(Csv|Html|Json|SecureString|Xml)/, /Copy-Item(Property)?/, /Debug-Process/, /Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/, /Disconnect-PSSession/, /Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/, /(Enter|Exit)-PSSession/, /Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/, /ForEach-Object/, /Format-(Custom|List|Table|Wide)/, new RegExp('Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential' + '|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job' + '|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration' + '|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)'), /Group-Object/, /Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/, /ImportSystemModules/, /Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/, /Join-Path/, /Limit-EventLog/, /Measure-(Command|Object)/, /Move-Item(Property)?/, new RegExp('New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile' + '|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)'), /Out-(Default|File|GridView|Host|Null|Printer|String)/, /Pause/, /(Pop|Push)-Location/, /Read-Host/, /Receive-(Job|PSSession)/, /Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/, /Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/, /Rename-(Computer|Item(Property)?)/, /Reset-ComputerMachinePassword/, /Resolve-Path/, /Restart-(Computer|Service)/, /Restore-Computer/, /Resume-(Job|Service)/, /Save-Help/, /Select-(Object|String|Xml)/, /Send-MailMessage/, new RegExp('Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug' + '|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)'), /Show-(Command|ControlPanelItem|EventLog)/, /Sort-Object/, /Split-Path/, /Start-(Job|Process|Service|Sleep|Transaction|Transcript)/, /Stop-(Computer|Job|Process|Service|Transcript)/, /Suspend-(Job|Service)/, /TabExpansion2/, /Tee-Object/, /Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/, /Trace-Command/, /Unblock-File/, /Undo-Transaction/, /Unregister-(Event|PSSessionConfiguration)/, /Update-(FormatData|Help|List|TypeData)/, /Use-Transaction/, /Wait-(Event|Job|Process)/, /Where-Object/, /Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/, /cd|help|mkdir|more|oss|prompt/, /ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/, /echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/, /group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/, /measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/, /rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/, /sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/ ], { prefix: '', suffix: '' }); var variableBuiltins = buildRegexp([ /[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/, /FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/, /MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/, /PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/, /PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/, /WarningPreference|WhatIfPreference/, /Event|EventArgs|EventSubscriber|Sender/, /Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/, /true|false|null/ ], { prefix: '\\$', suffix: '' }); var builtins = buildRegexp([symbolBuiltins, namedBuiltins, variableBuiltins], { suffix: notCharacterOrDash }); var grammar = { keyword: keywords, number: numbers, operator: operators, builtin: builtins, punctuation: punctuation, identifier: identifiers }; // tokenizers function tokenBase(stream, state) { // Handle Comments //var ch = stream.peek(); var parent = state.returnStack[state.returnStack.length - 1]; if (parent && parent.shouldReturnFrom(state)) { state.tokenize = parent.tokenize; state.returnStack.pop(); return state.tokenize(stream, state); } if (stream.eatSpace()) { return null; } if (stream.eat('(')) { state.bracketNesting += 1; return 'punctuation'; } if (stream.eat(')')) { state.bracketNesting -= 1; return 'punctuation'; } for (var key in grammar) { if (stream.match(grammar[key])) { return key; } } var ch = stream.next(); // single-quote string if (ch === "'") { return tokenSingleQuoteString(stream, state); } if (ch === '$') { return tokenVariable(stream, state); } // double-quote string if (ch === '"') { return tokenDoubleQuoteString(stream, state); } if (ch === '<' && stream.eat('#')) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (ch === '#') { stream.skipToEnd(); return 'comment'; } if (ch === '@') { var quoteMatch = stream.eat(/["']/); if (quoteMatch && stream.eol()) { state.tokenize = tokenMultiString; state.startQuote = quoteMatch[0]; return tokenMultiString(stream, state); } else if (stream.eol()) { return 'error'; } else if (stream.peek().match(/[({]/)) { return 'punctuation'; } else if (stream.peek().match(varNames)) { // splatted variable return tokenVariable(stream, state); } } return 'error'; } function tokenSingleQuoteString(stream, state) { var ch; while ((ch = stream.peek()) != null) { stream.next(); if (ch === "'" && !stream.eat("'")) { state.tokenize = tokenBase; return 'string'; } } return 'error'; } function tokenDoubleQuoteString(stream, state) { var ch; while ((ch = stream.peek()) != null) { if (ch === '$') { state.tokenize = tokenStringInterpolation; return 'string'; } stream.next(); if (ch === '`') { stream.next(); continue; } if (ch === '"' && !stream.eat('"')) { state.tokenize = tokenBase; return 'string'; } } return 'error'; } function tokenStringInterpolation(stream, state) { return tokenInterpolation(stream, state, tokenDoubleQuoteString); } function tokenMultiStringReturn(stream, state) { state.tokenize = tokenMultiString; state.startQuote = '"' return tokenMultiString(stream, state); } function tokenHereStringInterpolation(stream, state) { return tokenInterpolation(stream, state, tokenMultiStringReturn); } function tokenInterpolation(stream, state, parentTokenize) { if (stream.match('$(')) { var savedBracketNesting = state.bracketNesting; state.returnStack.push({ /*jshint loopfunc:true */ shouldReturnFrom: function(state) { return state.bracketNesting === savedBracketNesting; }, tokenize: parentTokenize }); state.tokenize = tokenBase; state.bracketNesting += 1; return 'punctuation'; } else { stream.next(); state.returnStack.push({ shouldReturnFrom: function() { return true; }, tokenize: parentTokenize }); state.tokenize = tokenVariable; return state.tokenize(stream, state); } } function tokenComment(stream, state) { var maybeEnd = false, ch; while ((ch = stream.next()) != null) { if (maybeEnd && ch == '>') { state.tokenize = tokenBase; break; } maybeEnd = (ch === '#'); } return 'comment'; } function tokenVariable(stream, state) { var ch = stream.peek(); if (stream.eat('{')) { state.tokenize = tokenVariableWithBraces; return tokenVariableWithBraces(stream, state); } else if (ch != undefined && ch.match(varNames)) { stream.eatWhile(varNames); state.tokenize = tokenBase; return 'variable-2'; } else { state.tokenize = tokenBase; return 'error'; } } function tokenVariableWithBraces(stream, state) { var ch; while ((ch = stream.next()) != null) { if (ch === '}') { state.tokenize = tokenBase; break; } } return 'variable-2'; } function tokenMultiString(stream, state) { var quote = state.startQuote; if (stream.sol() && stream.match(new RegExp(quote + '@'))) { state.tokenize = tokenBase; } else if (quote === '"') { while (!stream.eol()) { var ch = stream.peek(); if (ch === '$') { state.tokenize = tokenHereStringInterpolation; return 'string'; } stream.next(); if (ch === '`') { stream.next(); } } } else { stream.skipToEnd(); } return 'string'; } var external = { startState: function() { return { returnStack: [], bracketNesting: 0, tokenize: tokenBase }; }, token: function(stream, state) { return state.tokenize(stream, state); }, blockCommentStart: '<#', blockCommentEnd: '#>', lineComment: '#', fold: 'brace' }; return external; }); CodeMirror.defineMIME('application/x-powershell', 'powershell'); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/properties/properties.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("properties", function() { return { token: function(stream, state) { var sol = stream.sol() || state.afterSection; var eol = stream.eol(); state.afterSection = false; if (sol) { if (state.nextMultiline) { state.inMultiline = true; state.nextMultiline = false; } else { state.position = "def"; } } if (eol && ! state.nextMultiline) { state.inMultiline = false; state.position = "def"; } if (sol) { while(stream.eatSpace()) {} } var ch = stream.next(); if (sol && (ch === "#" || ch === "!" || ch === ";")) { state.position = "comment"; stream.skipToEnd(); return "comment"; } else if (sol && ch === "[") { state.afterSection = true; stream.skipTo("]"); stream.eat("]"); return "header"; } else if (ch === "=" || ch === ":") { state.position = "quote"; return null; } else if (ch === "\\" && state.position === "quote") { if (stream.eol()) { // end of line? // Multiline value state.nextMultiline = true; } } return state.position; }, startState: function() { return { position : "def", // Current position, "def", "quote" or "comment" nextMultiline : false, // Is the next line multiline value inMultiline : false, // Is the current line a multiline value afterSection : false // Did we just open a section }; } }; }); CodeMirror.defineMIME("text/x-properties", "properties"); CodeMirror.defineMIME("text/x-ini", "properties"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/protobuf/protobuf.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); }; var keywordArray = [ "package", "message", "import", "syntax", "required", "optional", "repeated", "reserved", "default", "extensions", "packed", "bool", "bytes", "double", "enum", "float", "string", "int32", "int64", "uint32", "uint64", "sint32", "sint64", "fixed32", "fixed64", "sfixed32", "sfixed64", "option", "service", "rpc", "returns" ]; var keywords = wordRegexp(keywordArray); CodeMirror.registerHelper("hintWords", "protobuf", keywordArray); var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*"); function tokenBase(stream) { // whitespaces if (stream.eatSpace()) return null; // Handle one line Comments if (stream.match("//")) { stream.skipToEnd(); return "comment"; } // Handle Number Literals if (stream.match(/^[0-9\.+-]/, false)) { if (stream.match(/^[+-]?0x[0-9a-fA-F]+/)) return "number"; if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)) return "number"; if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) return "number"; } // Handle Strings if (stream.match(/^"([^"]|(""))*"/)) { return "string"; } if (stream.match(/^'([^']|(''))*'/)) { return "string"; } // Handle words if (stream.match(keywords)) { return "keyword"; } if (stream.match(identifiers)) { return "variable"; } ; // Handle non-detected items stream.next(); return null; }; CodeMirror.defineMode("protobuf", function() { return { token: tokenBase, fold: "brace" }; }); CodeMirror.defineMIME("text/x-protobuf", "protobuf"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/pug/pug.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../javascript/javascript"), require("../css/css"), require("../htmlmixed/htmlmixed")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../javascript/javascript", "../css/css", "../htmlmixed/htmlmixed"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("pug", function (config) { // token types var KEYWORD = 'keyword'; var DOCTYPE = 'meta'; var ID = 'builtin'; var CLASS = 'qualifier'; var ATTRS_NEST = { '{': '}', '(': ')', '[': ']' }; var jsMode = CodeMirror.getMode(config, 'javascript'); function State() { this.javaScriptLine = false; this.javaScriptLineExcludesColon = false; this.javaScriptArguments = false; this.javaScriptArgumentsDepth = 0; this.isInterpolating = false; this.interpolationNesting = 0; this.jsState = CodeMirror.startState(jsMode); this.restOfLine = ''; this.isIncludeFiltered = false; this.isEach = false; this.lastTag = ''; this.scriptType = ''; // Attributes Mode this.isAttrs = false; this.attrsNest = []; this.inAttributeName = true; this.attributeIsType = false; this.attrValue = ''; // Indented Mode this.indentOf = Infinity; this.indentToken = ''; this.innerMode = null; this.innerState = null; this.innerModeForLine = false; } /** * Safely copy a state * * @return {State} */ State.prototype.copy = function () { var res = new State(); res.javaScriptLine = this.javaScriptLine; res.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon; res.javaScriptArguments = this.javaScriptArguments; res.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth; res.isInterpolating = this.isInterpolating; res.interpolationNesting = this.interpolationNesting; res.jsState = CodeMirror.copyState(jsMode, this.jsState); res.innerMode = this.innerMode; if (this.innerMode && this.innerState) { res.innerState = CodeMirror.copyState(this.innerMode, this.innerState); } res.restOfLine = this.restOfLine; res.isIncludeFiltered = this.isIncludeFiltered; res.isEach = this.isEach; res.lastTag = this.lastTag; res.scriptType = this.scriptType; res.isAttrs = this.isAttrs; res.attrsNest = this.attrsNest.slice(); res.inAttributeName = this.inAttributeName; res.attributeIsType = this.attributeIsType; res.attrValue = this.attrValue; res.indentOf = this.indentOf; res.indentToken = this.indentToken; res.innerModeForLine = this.innerModeForLine; return res; }; function javaScript(stream, state) { if (stream.sol()) { // if javaScriptLine was set at end of line, ignore it state.javaScriptLine = false; state.javaScriptLineExcludesColon = false; } if (state.javaScriptLine) { if (state.javaScriptLineExcludesColon && stream.peek() === ':') { state.javaScriptLine = false; state.javaScriptLineExcludesColon = false; return; } var tok = jsMode.token(stream, state.jsState); if (stream.eol()) state.javaScriptLine = false; return tok || true; } } function javaScriptArguments(stream, state) { if (state.javaScriptArguments) { if (state.javaScriptArgumentsDepth === 0 && stream.peek() !== '(') { state.javaScriptArguments = false; return; } if (stream.peek() === '(') { state.javaScriptArgumentsDepth++; } else if (stream.peek() === ')') { state.javaScriptArgumentsDepth--; } if (state.javaScriptArgumentsDepth === 0) { state.javaScriptArguments = false; return; } var tok = jsMode.token(stream, state.jsState); return tok || true; } } function yieldStatement(stream) { if (stream.match(/^yield\b/)) { return 'keyword'; } } function doctype(stream) { if (stream.match(/^(?:doctype) *([^\n]+)?/)) { return DOCTYPE; } } function interpolation(stream, state) { if (stream.match('#{')) { state.isInterpolating = true; state.interpolationNesting = 0; return 'punctuation'; } } function interpolationContinued(stream, state) { if (state.isInterpolating) { if (stream.peek() === '}') { state.interpolationNesting--; if (state.interpolationNesting < 0) { stream.next(); state.isInterpolating = false; return 'punctuation'; } } else if (stream.peek() === '{') { state.interpolationNesting++; } return jsMode.token(stream, state.jsState) || true; } } function caseStatement(stream, state) { if (stream.match(/^case\b/)) { state.javaScriptLine = true; return KEYWORD; } } function when(stream, state) { if (stream.match(/^when\b/)) { state.javaScriptLine = true; state.javaScriptLineExcludesColon = true; return KEYWORD; } } function defaultStatement(stream) { if (stream.match(/^default\b/)) { return KEYWORD; } } function extendsStatement(stream, state) { if (stream.match(/^extends?\b/)) { state.restOfLine = 'string'; return KEYWORD; } } function append(stream, state) { if (stream.match(/^append\b/)) { state.restOfLine = 'variable'; return KEYWORD; } } function prepend(stream, state) { if (stream.match(/^prepend\b/)) { state.restOfLine = 'variable'; return KEYWORD; } } function block(stream, state) { if (stream.match(/^block\b *(?:(prepend|append)\b)?/)) { state.restOfLine = 'variable'; return KEYWORD; } } function include(stream, state) { if (stream.match(/^include\b/)) { state.restOfLine = 'string'; return KEYWORD; } } function includeFiltered(stream, state) { if (stream.match(/^include:([a-zA-Z0-9\-]+)/, false) && stream.match('include')) { state.isIncludeFiltered = true; return KEYWORD; } } function includeFilteredContinued(stream, state) { if (state.isIncludeFiltered) { var tok = filter(stream, state); state.isIncludeFiltered = false; state.restOfLine = 'string'; return tok; } } function mixin(stream, state) { if (stream.match(/^mixin\b/)) { state.javaScriptLine = true; return KEYWORD; } } function call(stream, state) { if (stream.match(/^\+([-\w]+)/)) { if (!stream.match(/^\( *[-\w]+ *=/, false)) { state.javaScriptArguments = true; state.javaScriptArgumentsDepth = 0; } return 'variable'; } if (stream.match('+#{', false)) { stream.next(); state.mixinCallAfter = true; return interpolation(stream, state); } } function callArguments(stream, state) { if (state.mixinCallAfter) { state.mixinCallAfter = false; if (!stream.match(/^\( *[-\w]+ *=/, false)) { state.javaScriptArguments = true; state.javaScriptArgumentsDepth = 0; } return true; } } function conditional(stream, state) { if (stream.match(/^(if|unless|else if|else)\b/)) { state.javaScriptLine = true; return KEYWORD; } } function each(stream, state) { if (stream.match(/^(- *)?(each|for)\b/)) { state.isEach = true; return KEYWORD; } } function eachContinued(stream, state) { if (state.isEach) { if (stream.match(/^ in\b/)) { state.javaScriptLine = true; state.isEach = false; return KEYWORD; } else if (stream.sol() || stream.eol()) { state.isEach = false; } else if (stream.next()) { while (!stream.match(/^ in\b/, false) && stream.next()); return 'variable'; } } } function whileStatement(stream, state) { if (stream.match(/^while\b/)) { state.javaScriptLine = true; return KEYWORD; } } function tag(stream, state) { var captures; if (captures = stream.match(/^(\w(?:[-:\w]*\w)?)\/?/)) { state.lastTag = captures[1].toLowerCase(); if (state.lastTag === 'script') { state.scriptType = 'application/javascript'; } return 'tag'; } } function filter(stream, state) { if (stream.match(/^:([\w\-]+)/)) { var innerMode; if (config && config.innerModes) { innerMode = config.innerModes(stream.current().substring(1)); } if (!innerMode) { innerMode = stream.current().substring(1); } if (typeof innerMode === 'string') { innerMode = CodeMirror.getMode(config, innerMode); } setInnerMode(stream, state, innerMode); return 'atom'; } } function code(stream, state) { if (stream.match(/^(!?=|-)/)) { state.javaScriptLine = true; return 'punctuation'; } } function id(stream) { if (stream.match(/^#([\w-]+)/)) { return ID; } } function className(stream) { if (stream.match(/^\.([\w-]+)/)) { return CLASS; } } function attrs(stream, state) { if (stream.peek() == '(') { stream.next(); state.isAttrs = true; state.attrsNest = []; state.inAttributeName = true; state.attrValue = ''; state.attributeIsType = false; return 'punctuation'; } } function attrsContinued(stream, state) { if (state.isAttrs) { if (ATTRS_NEST[stream.peek()]) { state.attrsNest.push(ATTRS_NEST[stream.peek()]); } if (state.attrsNest[state.attrsNest.length - 1] === stream.peek()) { state.attrsNest.pop(); } else if (stream.eat(')')) { state.isAttrs = false; return 'punctuation'; } if (state.inAttributeName && stream.match(/^[^=,\)!]+/)) { if (stream.peek() === '=' || stream.peek() === '!') { state.inAttributeName = false; state.jsState = CodeMirror.startState(jsMode); if (state.lastTag === 'script' && stream.current().trim().toLowerCase() === 'type') { state.attributeIsType = true; } else { state.attributeIsType = false; } } return 'attribute'; } var tok = jsMode.token(stream, state.jsState); if (state.attributeIsType && tok === 'string') { state.scriptType = stream.current().toString(); } if (state.attrsNest.length === 0 && (tok === 'string' || tok === 'variable' || tok === 'keyword')) { try { Function('', 'var x ' + state.attrValue.replace(/,\s*$/, '').replace(/^!/, '')); state.inAttributeName = true; state.attrValue = ''; stream.backUp(stream.current().length); return attrsContinued(stream, state); } catch (ex) { //not the end of an attribute } } state.attrValue += stream.current(); return tok || true; } } function attributesBlock(stream, state) { if (stream.match(/^&attributes\b/)) { state.javaScriptArguments = true; state.javaScriptArgumentsDepth = 0; return 'keyword'; } } function indent(stream) { if (stream.sol() && stream.eatSpace()) { return 'indent'; } } function comment(stream, state) { if (stream.match(/^ *\/\/(-)?([^\n]*)/)) { state.indentOf = stream.indentation(); state.indentToken = 'comment'; return 'comment'; } } function colon(stream) { if (stream.match(/^: */)) { return 'colon'; } } function text(stream, state) { if (stream.match(/^(?:\| ?| )([^\n]+)/)) { return 'string'; } if (stream.match(/^(<[^\n]*)/, false)) { // html string setInnerMode(stream, state, 'htmlmixed'); state.innerModeForLine = true; return innerMode(stream, state, true); } } function dot(stream, state) { if (stream.eat('.')) { var innerMode = null; if (state.lastTag === 'script' && state.scriptType.toLowerCase().indexOf('javascript') != -1) { innerMode = state.scriptType.toLowerCase().replace(/"|'/g, ''); } else if (state.lastTag === 'style') { innerMode = 'css'; } setInnerMode(stream, state, innerMode); return 'dot'; } } function fail(stream) { stream.next(); return null; } function setInnerMode(stream, state, mode) { mode = CodeMirror.mimeModes[mode] || mode; mode = config.innerModes ? config.innerModes(mode) || mode : mode; mode = CodeMirror.mimeModes[mode] || mode; mode = CodeMirror.getMode(config, mode); state.indentOf = stream.indentation(); if (mode && mode.name !== 'null') { state.innerMode = mode; } else { state.indentToken = 'string'; } } function innerMode(stream, state, force) { if (stream.indentation() > state.indentOf || (state.innerModeForLine && !stream.sol()) || force) { if (state.innerMode) { if (!state.innerState) { state.innerState = state.innerMode.startState ? CodeMirror.startState(state.innerMode, stream.indentation()) : {}; } return stream.hideFirstChars(state.indentOf + 2, function () { return state.innerMode.token(stream, state.innerState) || true; }); } else { stream.skipToEnd(); return state.indentToken; } } else if (stream.sol()) { state.indentOf = Infinity; state.indentToken = null; state.innerMode = null; state.innerState = null; } } function restOfLine(stream, state) { if (stream.sol()) { // if restOfLine was set at end of line, ignore it state.restOfLine = ''; } if (state.restOfLine) { stream.skipToEnd(); var tok = state.restOfLine; state.restOfLine = ''; return tok; } } function startState() { return new State(); } function copyState(state) { return state.copy(); } /** * Get the next token in the stream * * @param {Stream} stream * @param {State} state */ function nextToken(stream, state) { var tok = innerMode(stream, state) || restOfLine(stream, state) || interpolationContinued(stream, state) || includeFilteredContinued(stream, state) || eachContinued(stream, state) || attrsContinued(stream, state) || javaScript(stream, state) || javaScriptArguments(stream, state) || callArguments(stream, state) || yieldStatement(stream) || doctype(stream) || interpolation(stream, state) || caseStatement(stream, state) || when(stream, state) || defaultStatement(stream) || extendsStatement(stream, state) || append(stream, state) || prepend(stream, state) || block(stream, state) || include(stream, state) || includeFiltered(stream, state) || mixin(stream, state) || call(stream, state) || conditional(stream, state) || each(stream, state) || whileStatement(stream, state) || tag(stream, state) || filter(stream, state) || code(stream, state) || id(stream) || className(stream) || attrs(stream, state) || attributesBlock(stream, state) || indent(stream) || text(stream, state) || comment(stream, state) || colon(stream) || dot(stream, state) || fail(stream); return tok === true ? null : tok; } return { startState: startState, copyState: copyState, token: nextToken }; }, 'javascript', 'css', 'htmlmixed'); CodeMirror.defineMIME('text/x-pug', 'pug'); CodeMirror.defineMIME('text/x-jade', 'pug'); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/puppet/puppet.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("puppet", function () { // Stores the words from the define method var words = {}; // Taken, mostly, from the Puppet official variable standards regex var variable_regex = /({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/; // Takes a string of words separated by spaces and adds them as // keys with the value of the first argument 'style' function define(style, string) { var split = string.split(' '); for (var i = 0; i < split.length; i++) { words[split[i]] = style; } } // Takes commonly known puppet types/words and classifies them to a style define('keyword', 'class define site node include import inherits'); define('keyword', 'case if else in and elsif default or'); define('atom', 'false true running present absent file directory undef'); define('builtin', 'action augeas burst chain computer cron destination dport exec ' + 'file filebucket group host icmp iniface interface jump k5login limit log_level ' + 'log_prefix macauthorization mailalias maillist mcx mount nagios_command ' + 'nagios_contact nagios_contactgroup nagios_host nagios_hostdependency ' + 'nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service ' + 'nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo ' + 'nagios_servicegroup nagios_timeperiod name notify outiface package proto reject ' + 'resources router schedule scheduled_task selboolean selmodule service source ' + 'sport ssh_authorized_key sshkey stage state table tidy todest toports tosource ' + 'user vlan yumrepo zfs zone zpool'); // After finding a start of a string ('|") this function attempts to find the end; // If a variable is encountered along the way, we display it differently when it // is encapsulated in a double-quoted string. function tokenString(stream, state) { var current, prev, found_var = false; while (!stream.eol() && (current = stream.next()) != state.pending) { if (current === '$' && prev != '\\' && state.pending == '"') { found_var = true; break; } prev = current; } if (found_var) { stream.backUp(1); } if (current == state.pending) { state.continueString = false; } else { state.continueString = true; } return "string"; } // Main function function tokenize(stream, state) { // Matches one whole word var word = stream.match(/[\w]+/, false); // Matches attributes (i.e. ensure => present ; 'ensure' would be matched) var attribute = stream.match(/(\s+)?\w+\s+=>.*/, false); // Matches non-builtin resource declarations // (i.e. "apache::vhost {" or "mycustomclasss {" would be matched) var resource = stream.match(/(\s+)?[\w:_]+(\s+)?{/, false); // Matches virtual and exported resources (i.e. @@user { ; and the like) var special_resource = stream.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/, false); // Finally advance the stream var ch = stream.next(); // Have we found a variable? if (ch === '$') { if (stream.match(variable_regex)) { // If so, and its in a string, assign it a different color return state.continueString ? 'variable-2' : 'variable'; } // Otherwise return an invalid variable return "error"; } // Should we still be looking for the end of a string? if (state.continueString) { // If so, go through the loop again stream.backUp(1); return tokenString(stream, state); } // Are we in a definition (class, node, define)? if (state.inDefinition) { // If so, return def (i.e. for 'class myclass {' ; 'myclass' would be matched) if (stream.match(/(\s+)?[\w:_]+(\s+)?/)) { return 'def'; } // Match the rest it the next time around stream.match(/\s+{/); state.inDefinition = false; } // Are we in an 'include' statement? if (state.inInclude) { // Match and return the included class stream.match(/(\s+)?\S+(\s+)?/); state.inInclude = false; return 'def'; } // Do we just have a function on our hands? // In 'ensure_resource("myclass")', 'ensure_resource' is matched if (stream.match(/(\s+)?\w+\(/)) { stream.backUp(1); return 'def'; } // Have we matched the prior attribute regex? if (attribute) { stream.match(/(\s+)?\w+/); return 'tag'; } // Do we have Puppet specific words? if (word && words.hasOwnProperty(word)) { // Negates the initial next() stream.backUp(1); // rs move the stream stream.match(/[\w]+/); // We want to process these words differently // do to the importance they have in Puppet if (stream.match(/\s+\S+\s+{/, false)) { state.inDefinition = true; } if (word == 'include') { state.inInclude = true; } // Returns their value as state in the prior define methods return words[word]; } // Is there a match on a reference? if (/(^|\s+)[A-Z][\w:_]+/.test(word)) { // Negate the next() stream.backUp(1); // Match the full reference stream.match(/(^|\s+)[A-Z][\w:_]+/); return 'def'; } // Have we matched the prior resource regex? if (resource) { stream.match(/(\s+)?[\w:_]+/); return 'def'; } // Have we matched the prior special_resource regex? if (special_resource) { stream.match(/(\s+)?[@]{1,2}/); return 'special'; } // Match all the comments. All of them. if (ch == "#") { stream.skipToEnd(); return "comment"; } // Have we found a string? if (ch == "'" || ch == '"') { // Store the type (single or double) state.pending = ch; // Perform the looping function to find the end return tokenString(stream, state); } // Match all the brackets if (ch == '{' || ch == '}') { return 'bracket'; } // Match characters that we are going to assume // are trying to be regex if (ch == '/') { stream.match(/^[^\/]*\//); return 'variable-3'; } // Match all the numbers if (ch.match(/[0-9]/)) { stream.eatWhile(/[0-9]+/); return 'number'; } // Match the '=' and '=>' operators if (ch == '=') { if (stream.peek() == '>') { stream.next(); } return "operator"; } // Keep advancing through all the rest stream.eatWhile(/[\w-]/); // Return a blank line for everything else return null; } // Start it all return { startState: function () { var state = {}; state.inDefinition = false; state.inInclude = false; state.continueString = false; state.pending = false; return state; }, token: function (stream, state) { // Strip the spaces, but regex will account for them eitherway if (stream.eatSpace()) return null; // Go through the main process return tokenize(stream, state); } }; }); CodeMirror.defineMIME("text/x-puppet", "puppet"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/python/python.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b"); } var wordOperators = wordRegexp(["and", "or", "not", "is"]); var commonKeywords = ["as", "assert", "break", "class", "continue", "def", "del", "elif", "else", "except", "finally", "for", "from", "global", "if", "import", "lambda", "pass", "raise", "return", "try", "while", "with", "yield", "in"]; var commonBuiltins = ["abs", "all", "any", "bin", "bool", "bytearray", "callable", "chr", "classmethod", "compile", "complex", "delattr", "dict", "dir", "divmod", "enumerate", "eval", "filter", "float", "format", "frozenset", "getattr", "globals", "hasattr", "hash", "help", "hex", "id", "input", "int", "isinstance", "issubclass", "iter", "len", "list", "locals", "map", "max", "memoryview", "min", "next", "object", "oct", "open", "ord", "pow", "property", "range", "repr", "reversed", "round", "set", "setattr", "slice", "sorted", "staticmethod", "str", "sum", "super", "tuple", "type", "vars", "zip", "__import__", "NotImplemented", "Ellipsis", "__debug__"]; CodeMirror.registerHelper("hintWords", "python", commonKeywords.concat(commonBuiltins)); function top(state) { return state.scopes[state.scopes.length - 1]; } CodeMirror.defineMode("python", function(conf, parserConf) { var ERRORCLASS = "error"; var delimiters = parserConf.delimiters || parserConf.singleDelimiters || /^[\(\)\[\]\{\}@,:`=;\.\\]/; // (Backwards-compatibility with old, cumbersome config system) var operators = [parserConf.singleOperators, parserConf.doubleOperators, parserConf.doubleDelimiters, parserConf.tripleDelimiters, parserConf.operators || /^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/] for (var i = 0; i < operators.length; i++) if (!operators[i]) operators.splice(i--, 1) var hangingIndent = parserConf.hangingIndent || conf.indentUnit; var myKeywords = commonKeywords, myBuiltins = commonBuiltins; if (parserConf.extra_keywords != undefined) myKeywords = myKeywords.concat(parserConf.extra_keywords); if (parserConf.extra_builtins != undefined) myBuiltins = myBuiltins.concat(parserConf.extra_builtins); var py3 = !(parserConf.version && Number(parserConf.version) < 3) if (py3) { // since http://legacy.python.org/dev/peps/pep-0465/ @ is also an operator var identifiers = parserConf.identifiers|| /^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/; myKeywords = myKeywords.concat(["nonlocal", "False", "True", "None", "async", "await"]); myBuiltins = myBuiltins.concat(["ascii", "bytes", "exec", "print"]); var stringPrefixes = new RegExp("^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|\"{3}|['\"]))", "i"); } else { var identifiers = parserConf.identifiers|| /^[_A-Za-z][_A-Za-z0-9]*/; myKeywords = myKeywords.concat(["exec", "print"]); myBuiltins = myBuiltins.concat(["apply", "basestring", "buffer", "cmp", "coerce", "execfile", "file", "intern", "long", "raw_input", "reduce", "reload", "unichr", "unicode", "xrange", "False", "True", "None"]); var stringPrefixes = new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i"); } var keywords = wordRegexp(myKeywords); var builtins = wordRegexp(myBuiltins); // tokenizers function tokenBase(stream, state) { var sol = stream.sol() && state.lastToken != "\\" if (sol) state.indent = stream.indentation() // Handle scope changes if (sol && top(state).type == "py") { var scopeOffset = top(state).offset; if (stream.eatSpace()) { var lineOffset = stream.indentation(); if (lineOffset > scopeOffset) pushPyScope(state); else if (lineOffset < scopeOffset && dedent(stream, state) && stream.peek() != "#") state.errorToken = true; return null; } else { var style = tokenBaseInner(stream, state); if (scopeOffset > 0 && dedent(stream, state)) style += " " + ERRORCLASS; return style; } } return tokenBaseInner(stream, state); } function tokenBaseInner(stream, state, inFormat) { if (stream.eatSpace()) return null; // Handle Comments if (!inFormat && stream.match(/^#.*/)) return "comment"; // Handle Number Literals if (stream.match(/^[0-9\.]/, false)) { var floatLiteral = false; // Floats if (stream.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)) { floatLiteral = true; } if (stream.match(/^[\d_]+\.\d*/)) { floatLiteral = true; } if (stream.match(/^\.\d+/)) { floatLiteral = true; } if (floatLiteral) { // Float literals may be "imaginary" stream.eat(/J/i); return "number"; } // Integers var intLiteral = false; // Hex if (stream.match(/^0x[0-9a-f_]+/i)) intLiteral = true; // Binary if (stream.match(/^0b[01_]+/i)) intLiteral = true; // Octal if (stream.match(/^0o[0-7_]+/i)) intLiteral = true; // Decimal if (stream.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)) { // Decimal literals may be "imaginary" stream.eat(/J/i); // TODO - Can you have imaginary longs? intLiteral = true; } // Zero by itself with no other piece of number. if (stream.match(/^0(?![\dx])/i)) intLiteral = true; if (intLiteral) { // Integer literals may be "long" stream.eat(/L/i); return "number"; } } // Handle Strings if (stream.match(stringPrefixes)) { var isFmtString = stream.current().toLowerCase().indexOf('f') !== -1; if (!isFmtString) { state.tokenize = tokenStringFactory(stream.current(), state.tokenize); return state.tokenize(stream, state); } else { state.tokenize = formatStringFactory(stream.current(), state.tokenize); return state.tokenize(stream, state); } } for (var i = 0; i < operators.length; i++) if (stream.match(operators[i])) return "operator" if (stream.match(delimiters)) return "punctuation"; if (state.lastToken == "." && stream.match(identifiers)) return "property"; if (stream.match(keywords) || stream.match(wordOperators)) return "keyword"; if (stream.match(builtins)) return "builtin"; if (stream.match(/^(self|cls)\b/)) return "variable-2"; if (stream.match(identifiers)) { if (state.lastToken == "def" || state.lastToken == "class") return "def"; return "variable"; } // Handle non-detected items stream.next(); return inFormat ? null :ERRORCLASS; } function formatStringFactory(delimiter, tokenOuter) { while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0) delimiter = delimiter.substr(1); var singleline = delimiter.length == 1; var OUTCLASS = "string"; function tokenNestedExpr(depth) { return function(stream, state) { var inner = tokenBaseInner(stream, state, true) if (inner == "punctuation") { if (stream.current() == "{") { state.tokenize = tokenNestedExpr(depth + 1) } else if (stream.current() == "}") { if (depth > 1) state.tokenize = tokenNestedExpr(depth - 1) else state.tokenize = tokenString } } return inner } } function tokenString(stream, state) { while (!stream.eol()) { stream.eatWhile(/[^'"\{\}\\]/); if (stream.eat("\\")) { stream.next(); if (singleline && stream.eol()) return OUTCLASS; } else if (stream.match(delimiter)) { state.tokenize = tokenOuter; return OUTCLASS; } else if (stream.match('{{')) { // ignore {{ in f-str return OUTCLASS; } else if (stream.match('{', false)) { // switch to nested mode state.tokenize = tokenNestedExpr(0) if (stream.current()) return OUTCLASS; else return state.tokenize(stream, state) } else if (stream.match('}}')) { return OUTCLASS; } else if (stream.match('}')) { // single } in f-string is an error return ERRORCLASS; } else { stream.eat(/['"]/); } } if (singleline) { if (parserConf.singleLineStringErrors) return ERRORCLASS; else state.tokenize = tokenOuter; } return OUTCLASS; } tokenString.isString = true; return tokenString; } function tokenStringFactory(delimiter, tokenOuter) { while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0) delimiter = delimiter.substr(1); var singleline = delimiter.length == 1; var OUTCLASS = "string"; function tokenString(stream, state) { while (!stream.eol()) { stream.eatWhile(/[^'"\\]/); if (stream.eat("\\")) { stream.next(); if (singleline && stream.eol()) return OUTCLASS; } else if (stream.match(delimiter)) { state.tokenize = tokenOuter; return OUTCLASS; } else { stream.eat(/['"]/); } } if (singleline) { if (parserConf.singleLineStringErrors) return ERRORCLASS; else state.tokenize = tokenOuter; } return OUTCLASS; } tokenString.isString = true; return tokenString; } function pushPyScope(state) { while (top(state).type != "py") state.scopes.pop() state.scopes.push({offset: top(state).offset + conf.indentUnit, type: "py", align: null}) } function pushBracketScope(stream, state, type) { var align = stream.match(/^[\s\[\{\(]*(?:#|$)/, false) ? null : stream.column() + 1 state.scopes.push({offset: state.indent + hangingIndent, type: type, align: align}) } function dedent(stream, state) { var indented = stream.indentation(); while (state.scopes.length > 1 && top(state).offset > indented) { if (top(state).type != "py") return true; state.scopes.pop(); } return top(state).offset != indented; } function tokenLexer(stream, state) { if (stream.sol()) { state.beginningOfLine = true; state.dedent = false; } var style = state.tokenize(stream, state); var current = stream.current(); // Handle decorators if (state.beginningOfLine && current == "@") return stream.match(identifiers, false) ? "meta" : py3 ? "operator" : ERRORCLASS; if (/\S/.test(current)) state.beginningOfLine = false; if ((style == "variable" || style == "builtin") && state.lastToken == "meta") style = "meta"; // Handle scope changes. if (current == "pass" || current == "return") state.dedent = true; if (current == "lambda") state.lambda = true; if (current == ":" && !state.lambda && top(state).type == "py" && stream.match(/^\s*(?:#|$)/, false)) pushPyScope(state); if (current.length == 1 && !/string|comment/.test(style)) { var delimiter_index = "[({".indexOf(current); if (delimiter_index != -1) pushBracketScope(stream, state, "])}".slice(delimiter_index, delimiter_index+1)); delimiter_index = "])}".indexOf(current); if (delimiter_index != -1) { if (top(state).type == current) state.indent = state.scopes.pop().offset - hangingIndent else return ERRORCLASS; } } if (state.dedent && stream.eol() && top(state).type == "py" && state.scopes.length > 1) state.scopes.pop(); return style; } var external = { startState: function(basecolumn) { return { tokenize: tokenBase, scopes: [{offset: basecolumn || 0, type: "py", align: null}], indent: basecolumn || 0, lastToken: null, lambda: false, dedent: 0 }; }, token: function(stream, state) { var addErr = state.errorToken; if (addErr) state.errorToken = false; var style = tokenLexer(stream, state); if (style && style != "comment") state.lastToken = (style == "keyword" || style == "punctuation") ? stream.current() : style; if (style == "punctuation") style = null; if (stream.eol() && state.lambda) state.lambda = false; return addErr ? style + " " + ERRORCLASS : style; }, indent: function(state, textAfter) { if (state.tokenize != tokenBase) return state.tokenize.isString ? CodeMirror.Pass : 0; var scope = top(state) var closing = scope.type == textAfter.charAt(0) || scope.type == "py" && !state.dedent && /^(else:|elif |except |finally:)/.test(textAfter) if (scope.align != null) return scope.align - (closing ? 1 : 0) else return scope.offset - (closing ? hangingIndent : 0) }, electricInput: /^\s*([\}\]\)]|else:|elif |except |finally:)$/, closeBrackets: {triples: "'\""}, lineComment: "#", fold: "indent" }; return external; }); CodeMirror.defineMIME("text/x-python", "python"); var words = function(str) { return str.split(" "); }; CodeMirror.defineMIME("text/x-cython", { name: "python", extra_keywords: words("by cdef cimport cpdef ctypedef enum except "+ "extern gil include nogil property public "+ "readonly struct union DEF IF ELIF ELSE") }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/q/q.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("q",function(config){ var indentUnit=config.indentUnit, curPunc, keywords=buildRE(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]), E=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/; function buildRE(w){return new RegExp("^("+w.join("|")+")$");} function tokenBase(stream,state){ var sol=stream.sol(),c=stream.next(); curPunc=null; if(sol) if(c=="/") return(state.tokenize=tokenLineComment)(stream,state); else if(c=="\\"){ if(stream.eol()||/\s/.test(stream.peek())) return stream.skipToEnd(),/^\\\s*$/.test(stream.current())?(state.tokenize=tokenCommentToEOF)(stream):state.tokenize=tokenBase,"comment"; else return state.tokenize=tokenBase,"builtin"; } if(/\s/.test(c)) return stream.peek()=="/"?(stream.skipToEnd(),"comment"):"whitespace"; if(c=='"') return(state.tokenize=tokenString)(stream,state); if(c=='`') return stream.eatWhile(/[A-Za-z\d_:\/.]/),"symbol"; if(("."==c&&/\d/.test(stream.peek()))||/\d/.test(c)){ var t=null; stream.backUp(1); if(stream.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/) || stream.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/) || stream.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/) || stream.match(/^\d+[ptuv]{1}/)) t="temporal"; else if(stream.match(/^0[NwW]{1}/) || stream.match(/^0x[\da-fA-F]*/) || stream.match(/^[01]+[b]{1}/) || stream.match(/^\d+[chijn]{1}/) || stream.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/)) t="number"; return(t&&(!(c=stream.peek())||E.test(c)))?t:(stream.next(),"error"); } if(/[A-Za-z]|\./.test(c)) return stream.eatWhile(/[A-Za-z._\d]/),keywords.test(stream.current())?"keyword":"variable"; if(/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(c)) return null; if(/[{}\(\[\]\)]/.test(c)) return null; return"error"; } function tokenLineComment(stream,state){ return stream.skipToEnd(),/\/\s*$/.test(stream.current())?(state.tokenize=tokenBlockComment)(stream,state):(state.tokenize=tokenBase),"comment"; } function tokenBlockComment(stream,state){ var f=stream.sol()&&stream.peek()=="\\"; stream.skipToEnd(); if(f&&/^\\\s*$/.test(stream.current())) state.tokenize=tokenBase; return"comment"; } function tokenCommentToEOF(stream){return stream.skipToEnd(),"comment";} function tokenString(stream,state){ var escaped=false,next,end=false; while((next=stream.next())){ if(next=="\""&&!escaped){end=true;break;} escaped=!escaped&&next=="\\"; } if(end)state.tokenize=tokenBase; return"string"; } function pushContext(state,type,col){state.context={prev:state.context,indent:state.indent,col:col,type:type};} function popContext(state){state.indent=state.context.indent;state.context=state.context.prev;} return{ startState:function(){ return{tokenize:tokenBase, context:null, indent:0, col:0}; }, token:function(stream,state){ if(stream.sol()){ if(state.context&&state.context.align==null) state.context.align=false; state.indent=stream.indentation(); } //if (stream.eatSpace()) return null; var style=state.tokenize(stream,state); if(style!="comment"&&state.context&&state.context.align==null&&state.context.type!="pattern"){ state.context.align=true; } if(curPunc=="(")pushContext(state,")",stream.column()); else if(curPunc=="[")pushContext(state,"]",stream.column()); else if(curPunc=="{")pushContext(state,"}",stream.column()); else if(/[\]\}\)]/.test(curPunc)){ while(state.context&&state.context.type=="pattern")popContext(state); if(state.context&&curPunc==state.context.type)popContext(state); } else if(curPunc=="."&&state.context&&state.context.type=="pattern")popContext(state); else if(/atom|string|variable/.test(style)&&state.context){ if(/[\}\]]/.test(state.context.type)) pushContext(state,"pattern",stream.column()); else if(state.context.type=="pattern"&&!state.context.align){ state.context.align=true; state.context.col=stream.column(); } } return style; }, indent:function(state,textAfter){ var firstChar=textAfter&&textAfter.charAt(0); var context=state.context; if(/[\]\}]/.test(firstChar)) while (context&&context.type=="pattern")context=context.prev; var closing=context&&firstChar==context.type; if(!context) return 0; else if(context.type=="pattern") return context.col; else if(context.align) return context.col+(closing?0:1); else return context.indent+(closing?0:indentUnit); } }; }); CodeMirror.defineMIME("text/x-q","q"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/r/r.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.registerHelper("wordChars", "r", /[\w.]/); CodeMirror.defineMode("r", function(config) { function wordObj(words) { var res = {}; for (var i = 0; i < words.length; ++i) res[words[i]] = true; return res; } var commonAtoms = ["NULL", "NA", "Inf", "NaN", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_", "TRUE", "FALSE"]; var commonBuiltins = ["list", "quote", "bquote", "eval", "return", "call", "parse", "deparse"]; var commonKeywords = ["if", "else", "repeat", "while", "function", "for", "in", "next", "break"]; var commonBlockKeywords = ["if", "else", "repeat", "while", "function", "for"]; CodeMirror.registerHelper("hintWords", "r", commonAtoms.concat(commonBuiltins, commonKeywords)); var atoms = wordObj(commonAtoms); var builtins = wordObj(commonBuiltins); var keywords = wordObj(commonKeywords); var blockkeywords = wordObj(commonBlockKeywords); var opChars = /[+\-*\/^<>=!&|~$:]/; var curPunc; function tokenBase(stream, state) { curPunc = null; var ch = stream.next(); if (ch == "#") { stream.skipToEnd(); return "comment"; } else if (ch == "0" && stream.eat("x")) { stream.eatWhile(/[\da-f]/i); return "number"; } else if (ch == "." && stream.eat(/\d/)) { stream.match(/\d*(?:e[+\-]?\d+)?/); return "number"; } else if (/\d/.test(ch)) { stream.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/); return "number"; } else if (ch == "'" || ch == '"') { state.tokenize = tokenString(ch); return "string"; } else if (ch == "`") { stream.match(/[^`]+`/); return "variable-3"; } else if (ch == "." && stream.match(/.(?:[.]|\d+)/)) { return "keyword"; } else if (/[a-zA-Z\.]/.test(ch)) { stream.eatWhile(/[\w\.]/); var word = stream.current(); if (atoms.propertyIsEnumerable(word)) return "atom"; if (keywords.propertyIsEnumerable(word)) { // Block keywords start new blocks, except 'else if', which only starts // one new block for the 'if', no block for the 'else'. if (blockkeywords.propertyIsEnumerable(word) && !stream.match(/\s*if(\s+|$)/, false)) curPunc = "block"; return "keyword"; } if (builtins.propertyIsEnumerable(word)) return "builtin"; return "variable"; } else if (ch == "%") { if (stream.skipTo("%")) stream.next(); return "operator variable-2"; } else if ( (ch == "<" && stream.eat("-")) || (ch == "<" && stream.match("<-")) || (ch == "-" && stream.match(/>>?/)) ) { return "operator arrow"; } else if (ch == "=" && state.ctx.argList) { return "arg-is"; } else if (opChars.test(ch)) { if (ch == "$") return "operator dollar"; stream.eatWhile(opChars); return "operator"; } else if (/[\(\){}\[\];]/.test(ch)) { curPunc = ch; if (ch == ";") return "semi"; return null; } else { return null; } } function tokenString(quote) { return function(stream, state) { if (stream.eat("\\")) { var ch = stream.next(); if (ch == "x") stream.match(/^[a-f0-9]{2}/i); else if ((ch == "u" || ch == "U") && stream.eat("{") && stream.skipTo("}")) stream.next(); else if (ch == "u") stream.match(/^[a-f0-9]{4}/i); else if (ch == "U") stream.match(/^[a-f0-9]{8}/i); else if (/[0-7]/.test(ch)) stream.match(/^[0-7]{1,2}/); return "string-2"; } else { var next; while ((next = stream.next()) != null) { if (next == quote) { state.tokenize = tokenBase; break; } if (next == "\\") { stream.backUp(1); break; } } return "string"; } }; } var ALIGN_YES = 1, ALIGN_NO = 2, BRACELESS = 4 function push(state, type, stream) { state.ctx = {type: type, indent: state.indent, flags: 0, column: stream.column(), prev: state.ctx}; } function setFlag(state, flag) { var ctx = state.ctx state.ctx = {type: ctx.type, indent: ctx.indent, flags: ctx.flags | flag, column: ctx.column, prev: ctx.prev} } function pop(state) { state.indent = state.ctx.indent; state.ctx = state.ctx.prev; } return { startState: function() { return {tokenize: tokenBase, ctx: {type: "top", indent: -config.indentUnit, flags: ALIGN_NO}, indent: 0, afterIdent: false}; }, token: function(stream, state) { if (stream.sol()) { if ((state.ctx.flags & 3) == 0) state.ctx.flags |= ALIGN_NO if (state.ctx.flags & BRACELESS) pop(state) state.indent = stream.indentation(); } if (stream.eatSpace()) return null; var style = state.tokenize(stream, state); if (style != "comment" && (state.ctx.flags & ALIGN_NO) == 0) setFlag(state, ALIGN_YES) if ((curPunc == ";" || curPunc == "{" || curPunc == "}") && state.ctx.type == "block") pop(state); if (curPunc == "{") push(state, "}", stream); else if (curPunc == "(") { push(state, ")", stream); if (state.afterIdent) state.ctx.argList = true; } else if (curPunc == "[") push(state, "]", stream); else if (curPunc == "block") push(state, "block", stream); else if (curPunc == state.ctx.type) pop(state); else if (state.ctx.type == "block" && style != "comment") setFlag(state, BRACELESS) state.afterIdent = style == "variable" || style == "keyword"; return style; }, indent: function(state, textAfter) { if (state.tokenize != tokenBase) return 0; var firstChar = textAfter && textAfter.charAt(0), ctx = state.ctx, closing = firstChar == ctx.type; if (ctx.flags & BRACELESS) ctx = ctx.prev if (ctx.type == "block") return ctx.indent + (firstChar == "{" ? 0 : config.indentUnit); else if (ctx.flags & ALIGN_YES) return ctx.column + (closing ? 0 : 1); else return ctx.indent + (closing ? 0 : config.indentUnit); }, lineComment: "#" }; }); CodeMirror.defineMIME("text/x-rsrc", "r"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/rpm/changes/index.html ================================================ CodeMirror: RPM changes mode

RPM changes mode

MIME types defined: text/x-rpm-changes.

================================================ FILE: _files/assets/codemirror@6.65.7/mode/rpm/rpm.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("rpm-changes", function() { var headerSeparator = /^-+$/; var headerLine = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /; var simpleEmail = /^[\w+.-]+@[\w.-]+/; return { token: function(stream) { if (stream.sol()) { if (stream.match(headerSeparator)) { return 'tag'; } if (stream.match(headerLine)) { return 'tag'; } } if (stream.match(simpleEmail)) { return 'string'; } stream.next(); return null; } }; }); CodeMirror.defineMIME("text/x-rpm-changes", "rpm-changes"); // Quick and dirty spec file highlighting CodeMirror.defineMode("rpm-spec", function() { var arch = /^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/; var preamble = /^[a-zA-Z0-9()]+:/; var section = /^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/; var control_flow_complex = /^%(ifnarch|ifarch|if)/; // rpm control flow macros var control_flow_simple = /^%(else|endif)/; // rpm control flow macros var operators = /^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/; // operators in control flow macros return { startState: function () { return { controlFlow: false, macroParameters: false, section: false }; }, token: function (stream, state) { var ch = stream.peek(); if (ch == "#") { stream.skipToEnd(); return "comment"; } if (stream.sol()) { if (stream.match(preamble)) { return "header"; } if (stream.match(section)) { return "atom"; } } if (stream.match(/^\$\w+/)) { return "def"; } // Variables like '$RPM_BUILD_ROOT' if (stream.match(/^\$\{\w+\}/)) { return "def"; } // Variables like '${RPM_BUILD_ROOT}' if (stream.match(control_flow_simple)) { return "keyword"; } if (stream.match(control_flow_complex)) { state.controlFlow = true; return "keyword"; } if (state.controlFlow) { if (stream.match(operators)) { return "operator"; } if (stream.match(/^(\d+)/)) { return "number"; } if (stream.eol()) { state.controlFlow = false; } } if (stream.match(arch)) { if (stream.eol()) { state.controlFlow = false; } return "number"; } // Macros like '%make_install' or '%attr(0775,root,root)' if (stream.match(/^%[\w]+/)) { if (stream.match('(')) { state.macroParameters = true; } return "keyword"; } if (state.macroParameters) { if (stream.match(/^\d+/)) { return "number";} if (stream.match(')')) { state.macroParameters = false; return "keyword"; } } // Macros like '%{defined fedora}' if (stream.match(/^%\{\??[\w \-\:\!]+\}/)) { if (stream.eol()) { state.controlFlow = false; } return "def"; } //TODO: Include bash script sub-parser (CodeMirror supports that) stream.next(); return null; } }; }); CodeMirror.defineMIME("text/x-rpm-spec", "rpm-spec"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/rst/rst.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../python/python"), require("../stex/stex"), require("../../addon/mode/overlay")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../python/python", "../stex/stex", "../../addon/mode/overlay"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('rst', function (config, options) { var rx_strong = /^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/; var rx_emphasis = /^\*[^\*\s](?:[^\*]*[^\*\s])?\*/; var rx_literal = /^``[^`\s](?:[^`]*[^`\s])``/; var rx_number = /^(?:[\d]+(?:[\.,]\d+)*)/; var rx_positive = /^(?:\s\+[\d]+(?:[\.,]\d+)*)/; var rx_negative = /^(?:\s\-[\d]+(?:[\.,]\d+)*)/; var rx_uri_protocol = "[Hh][Tt][Tt][Pp][Ss]?://"; var rx_uri_domain = "(?:[\\d\\w.-]+)\\.(?:\\w{2,6})"; var rx_uri_path = "(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"; var rx_uri = new RegExp("^" + rx_uri_protocol + rx_uri_domain + rx_uri_path); var overlay = { token: function (stream) { if (stream.match(rx_strong) && stream.match (/\W+|$/, false)) return 'strong'; if (stream.match(rx_emphasis) && stream.match (/\W+|$/, false)) return 'em'; if (stream.match(rx_literal) && stream.match (/\W+|$/, false)) return 'string-2'; if (stream.match(rx_number)) return 'number'; if (stream.match(rx_positive)) return 'positive'; if (stream.match(rx_negative)) return 'negative'; if (stream.match(rx_uri)) return 'link'; while (stream.next() != null) { if (stream.match(rx_strong, false)) break; if (stream.match(rx_emphasis, false)) break; if (stream.match(rx_literal, false)) break; if (stream.match(rx_number, false)) break; if (stream.match(rx_positive, false)) break; if (stream.match(rx_negative, false)) break; if (stream.match(rx_uri, false)) break; } return null; } }; var mode = CodeMirror.getMode( config, options.backdrop || 'rst-base' ); return CodeMirror.overlayMode(mode, overlay, true); // combine }, 'python', 'stex'); /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// CodeMirror.defineMode('rst-base', function (config) { /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// function format(string) { var args = Array.prototype.slice.call(arguments, 1); return string.replace(/{(\d+)}/g, function (match, n) { return typeof args[n] != 'undefined' ? args[n] : match; }); } /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// var mode_python = CodeMirror.getMode(config, 'python'); var mode_stex = CodeMirror.getMode(config, 'stex'); /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// var SEPA = "\\s+"; var TAIL = "(?:\\s*|\\W|$)", rx_TAIL = new RegExp(format('^{0}', TAIL)); var NAME = "(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\.\/:;<=>\\?]*[^\\W_])?)", rx_NAME = new RegExp(format('^{0}', NAME)); var NAME_WWS = "(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\.\/:;<=>\\?]*[^\\W_])?)"; var REF_NAME = format('(?:{0}|`{1}`)', NAME, NAME_WWS); var TEXT1 = "(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)"; var TEXT2 = "(?:[^\\`]+)", rx_TEXT2 = new RegExp(format('^{0}', TEXT2)); var rx_section = new RegExp( "^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"); var rx_explicit = new RegExp( format('^\\.\\.{0}', SEPA)); var rx_link = new RegExp( format('^_{0}:{1}|^__:{1}', REF_NAME, TAIL)); var rx_directive = new RegExp( format('^{0}::{1}', REF_NAME, TAIL)); var rx_substitution = new RegExp( format('^\\|{0}\\|{1}{2}::{3}', TEXT1, SEPA, REF_NAME, TAIL)); var rx_footnote = new RegExp( format('^\\[(?:\\d+|#{0}?|\\*)]{1}', REF_NAME, TAIL)); var rx_citation = new RegExp( format('^\\[{0}\\]{1}', REF_NAME, TAIL)); var rx_substitution_ref = new RegExp( format('^\\|{0}\\|', TEXT1)); var rx_footnote_ref = new RegExp( format('^\\[(?:\\d+|#{0}?|\\*)]_', REF_NAME)); var rx_citation_ref = new RegExp( format('^\\[{0}\\]_', REF_NAME)); var rx_link_ref1 = new RegExp( format('^{0}__?', REF_NAME)); var rx_link_ref2 = new RegExp( format('^`{0}`_', TEXT2)); var rx_role_pre = new RegExp( format('^:{0}:`{1}`{2}', NAME, TEXT2, TAIL)); var rx_role_suf = new RegExp( format('^`{1}`:{0}:{2}', NAME, TEXT2, TAIL)); var rx_role = new RegExp( format('^:{0}:{1}', NAME, TAIL)); var rx_directive_name = new RegExp(format('^{0}', REF_NAME)); var rx_directive_tail = new RegExp(format('^::{0}', TAIL)); var rx_substitution_text = new RegExp(format('^\\|{0}\\|', TEXT1)); var rx_substitution_sepa = new RegExp(format('^{0}', SEPA)); var rx_substitution_name = new RegExp(format('^{0}', REF_NAME)); var rx_substitution_tail = new RegExp(format('^::{0}', TAIL)); var rx_link_head = new RegExp("^_"); var rx_link_name = new RegExp(format('^{0}|_', REF_NAME)); var rx_link_tail = new RegExp(format('^:{0}', TAIL)); var rx_verbatim = new RegExp('^::\\s*$'); var rx_examples = new RegExp('^\\s+(?:>>>|In \\[\\d+\\]:)\\s'); /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// function to_normal(stream, state) { var token = null; if (stream.sol() && stream.match(rx_examples, false)) { change(state, to_mode, { mode: mode_python, local: CodeMirror.startState(mode_python) }); } else if (stream.sol() && stream.match(rx_explicit)) { change(state, to_explicit); token = 'meta'; } else if (stream.sol() && stream.match(rx_section)) { change(state, to_normal); token = 'header'; } else if (phase(state) == rx_role_pre || stream.match(rx_role_pre, false)) { switch (stage(state)) { case 0: change(state, to_normal, context(rx_role_pre, 1)); stream.match(/^:/); token = 'meta'; break; case 1: change(state, to_normal, context(rx_role_pre, 2)); stream.match(rx_NAME); token = 'keyword'; if (stream.current().match(/^(?:math|latex)/)) { state.tmp_stex = true; } break; case 2: change(state, to_normal, context(rx_role_pre, 3)); stream.match(/^:`/); token = 'meta'; break; case 3: if (state.tmp_stex) { state.tmp_stex = undefined; state.tmp = { mode: mode_stex, local: CodeMirror.startState(mode_stex) }; } if (state.tmp) { if (stream.peek() == '`') { change(state, to_normal, context(rx_role_pre, 4)); state.tmp = undefined; break; } token = state.tmp.mode.token(stream, state.tmp.local); break; } change(state, to_normal, context(rx_role_pre, 4)); stream.match(rx_TEXT2); token = 'string'; break; case 4: change(state, to_normal, context(rx_role_pre, 5)); stream.match(/^`/); token = 'meta'; break; case 5: change(state, to_normal, context(rx_role_pre, 6)); stream.match(rx_TAIL); break; default: change(state, to_normal); } } else if (phase(state) == rx_role_suf || stream.match(rx_role_suf, false)) { switch (stage(state)) { case 0: change(state, to_normal, context(rx_role_suf, 1)); stream.match(/^`/); token = 'meta'; break; case 1: change(state, to_normal, context(rx_role_suf, 2)); stream.match(rx_TEXT2); token = 'string'; break; case 2: change(state, to_normal, context(rx_role_suf, 3)); stream.match(/^`:/); token = 'meta'; break; case 3: change(state, to_normal, context(rx_role_suf, 4)); stream.match(rx_NAME); token = 'keyword'; break; case 4: change(state, to_normal, context(rx_role_suf, 5)); stream.match(/^:/); token = 'meta'; break; case 5: change(state, to_normal, context(rx_role_suf, 6)); stream.match(rx_TAIL); break; default: change(state, to_normal); } } else if (phase(state) == rx_role || stream.match(rx_role, false)) { switch (stage(state)) { case 0: change(state, to_normal, context(rx_role, 1)); stream.match(/^:/); token = 'meta'; break; case 1: change(state, to_normal, context(rx_role, 2)); stream.match(rx_NAME); token = 'keyword'; break; case 2: change(state, to_normal, context(rx_role, 3)); stream.match(/^:/); token = 'meta'; break; case 3: change(state, to_normal, context(rx_role, 4)); stream.match(rx_TAIL); break; default: change(state, to_normal); } } else if (phase(state) == rx_substitution_ref || stream.match(rx_substitution_ref, false)) { switch (stage(state)) { case 0: change(state, to_normal, context(rx_substitution_ref, 1)); stream.match(rx_substitution_text); token = 'variable-2'; break; case 1: change(state, to_normal, context(rx_substitution_ref, 2)); if (stream.match(/^_?_?/)) token = 'link'; break; default: change(state, to_normal); } } else if (stream.match(rx_footnote_ref)) { change(state, to_normal); token = 'quote'; } else if (stream.match(rx_citation_ref)) { change(state, to_normal); token = 'quote'; } else if (stream.match(rx_link_ref1)) { change(state, to_normal); if (!stream.peek() || stream.peek().match(/^\W$/)) { token = 'link'; } } else if (phase(state) == rx_link_ref2 || stream.match(rx_link_ref2, false)) { switch (stage(state)) { case 0: if (!stream.peek() || stream.peek().match(/^\W$/)) { change(state, to_normal, context(rx_link_ref2, 1)); } else { stream.match(rx_link_ref2); } break; case 1: change(state, to_normal, context(rx_link_ref2, 2)); stream.match(/^`/); token = 'link'; break; case 2: change(state, to_normal, context(rx_link_ref2, 3)); stream.match(rx_TEXT2); break; case 3: change(state, to_normal, context(rx_link_ref2, 4)); stream.match(/^`_/); token = 'link'; break; default: change(state, to_normal); } } else if (stream.match(rx_verbatim)) { change(state, to_verbatim); } else { if (stream.next()) change(state, to_normal); } return token; } /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// function to_explicit(stream, state) { var token = null; if (phase(state) == rx_substitution || stream.match(rx_substitution, false)) { switch (stage(state)) { case 0: change(state, to_explicit, context(rx_substitution, 1)); stream.match(rx_substitution_text); token = 'variable-2'; break; case 1: change(state, to_explicit, context(rx_substitution, 2)); stream.match(rx_substitution_sepa); break; case 2: change(state, to_explicit, context(rx_substitution, 3)); stream.match(rx_substitution_name); token = 'keyword'; break; case 3: change(state, to_explicit, context(rx_substitution, 4)); stream.match(rx_substitution_tail); token = 'meta'; break; default: change(state, to_normal); } } else if (phase(state) == rx_directive || stream.match(rx_directive, false)) { switch (stage(state)) { case 0: change(state, to_explicit, context(rx_directive, 1)); stream.match(rx_directive_name); token = 'keyword'; if (stream.current().match(/^(?:math|latex)/)) state.tmp_stex = true; else if (stream.current().match(/^python/)) state.tmp_py = true; break; case 1: change(state, to_explicit, context(rx_directive, 2)); stream.match(rx_directive_tail); token = 'meta'; if (stream.match(/^latex\s*$/) || state.tmp_stex) { state.tmp_stex = undefined; change(state, to_mode, { mode: mode_stex, local: CodeMirror.startState(mode_stex) }); } break; case 2: change(state, to_explicit, context(rx_directive, 3)); if (stream.match(/^python\s*$/) || state.tmp_py) { state.tmp_py = undefined; change(state, to_mode, { mode: mode_python, local: CodeMirror.startState(mode_python) }); } break; default: change(state, to_normal); } } else if (phase(state) == rx_link || stream.match(rx_link, false)) { switch (stage(state)) { case 0: change(state, to_explicit, context(rx_link, 1)); stream.match(rx_link_head); stream.match(rx_link_name); token = 'link'; break; case 1: change(state, to_explicit, context(rx_link, 2)); stream.match(rx_link_tail); token = 'meta'; break; default: change(state, to_normal); } } else if (stream.match(rx_footnote)) { change(state, to_normal); token = 'quote'; } else if (stream.match(rx_citation)) { change(state, to_normal); token = 'quote'; } else { stream.eatSpace(); if (stream.eol()) { change(state, to_normal); } else { stream.skipToEnd(); change(state, to_comment); token = 'comment'; } } return token; } /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// function to_comment(stream, state) { return as_block(stream, state, 'comment'); } function to_verbatim(stream, state) { return as_block(stream, state, 'meta'); } function as_block(stream, state, token) { if (stream.eol() || stream.eatSpace()) { stream.skipToEnd(); return token; } else { change(state, to_normal); return null; } } /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// function to_mode(stream, state) { if (state.ctx.mode && state.ctx.local) { if (stream.sol()) { if (!stream.eatSpace()) change(state, to_normal); return null; } return state.ctx.mode.token(stream, state.ctx.local); } change(state, to_normal); return null; } /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// function context(phase, stage, mode, local) { return {phase: phase, stage: stage, mode: mode, local: local}; } function change(state, tok, ctx) { state.tok = tok; state.ctx = ctx || {}; } function stage(state) { return state.ctx.stage || 0; } function phase(state) { return state.ctx.phase; } /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// return { startState: function () { return {tok: to_normal, ctx: context(undefined, 0)}; }, copyState: function (state) { var ctx = state.ctx, tmp = state.tmp; if (ctx.local) ctx = {mode: ctx.mode, local: CodeMirror.copyState(ctx.mode, ctx.local)}; if (tmp) tmp = {mode: tmp.mode, local: CodeMirror.copyState(tmp.mode, tmp.local)}; return {tok: state.tok, ctx: ctx, tmp: tmp}; }, innerMode: function (state) { return state.tmp ? {state: state.tmp.local, mode: state.tmp.mode} : state.ctx.mode ? {state: state.ctx.local, mode: state.ctx.mode} : null; }, token: function (stream, state) { return state.tok(stream, state); } }; }, 'python', 'stex'); /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// CodeMirror.defineMIME('text/x-rst', 'rst'); /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/ruby/ruby.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function wordObj(words) { var o = {}; for (var i = 0, e = words.length; i < e; ++i) o[words[i]] = true; return o; } var keywordList = [ "alias", "and", "BEGIN", "begin", "break", "case", "class", "def", "defined?", "do", "else", "elsif", "END", "end", "ensure", "false", "for", "if", "in", "module", "next", "not", "or", "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless", "until", "when", "while", "yield", "nil", "raise", "throw", "catch", "fail", "loop", "callcc", "caller", "lambda", "proc", "public", "protected", "private", "require", "load", "require_relative", "extend", "autoload", "__END__", "__FILE__", "__LINE__", "__dir__" ], keywords = wordObj(keywordList); var indentWords = wordObj(["def", "class", "case", "for", "while", "until", "module", "catch", "loop", "proc", "begin"]); var dedentWords = wordObj(["end", "until"]); var opening = {"[": "]", "{": "}", "(": ")"}; var closing = {"]": "[", "}": "{", ")": "("}; CodeMirror.defineMode("ruby", function(config) { var curPunc; function chain(newtok, stream, state) { state.tokenize.push(newtok); return newtok(stream, state); } function tokenBase(stream, state) { if (stream.sol() && stream.match("=begin") && stream.eol()) { state.tokenize.push(readBlockComment); return "comment"; } if (stream.eatSpace()) return null; var ch = stream.next(), m; if (ch == "`" || ch == "'" || ch == '"') { return chain(readQuoted(ch, "string", ch == '"' || ch == "`"), stream, state); } else if (ch == "/") { if (regexpAhead(stream)) return chain(readQuoted(ch, "string-2", true), stream, state); else return "operator"; } else if (ch == "%") { var style = "string", embed = true; if (stream.eat("s")) style = "atom"; else if (stream.eat(/[WQ]/)) style = "string"; else if (stream.eat(/[r]/)) style = "string-2"; else if (stream.eat(/[wxq]/)) { style = "string"; embed = false; } var delim = stream.eat(/[^\w\s=]/); if (!delim) return "operator"; if (opening.propertyIsEnumerable(delim)) delim = opening[delim]; return chain(readQuoted(delim, style, embed, true), stream, state); } else if (ch == "#") { stream.skipToEnd(); return "comment"; } else if (ch == "<" && (m = stream.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/))) { return chain(readHereDoc(m[2], m[1]), stream, state); } else if (ch == "0") { if (stream.eat("x")) stream.eatWhile(/[\da-fA-F]/); else if (stream.eat("b")) stream.eatWhile(/[01]/); else stream.eatWhile(/[0-7]/); return "number"; } else if (/\d/.test(ch)) { stream.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/); return "number"; } else if (ch == "?") { while (stream.match(/^\\[CM]-/)) {} if (stream.eat("\\")) stream.eatWhile(/\w/); else stream.next(); return "string"; } else if (ch == ":") { if (stream.eat("'")) return chain(readQuoted("'", "atom", false), stream, state); if (stream.eat('"')) return chain(readQuoted('"', "atom", true), stream, state); // :> :>> :< :<< are valid symbols if (stream.eat(/[\<\>]/)) { stream.eat(/[\<\>]/); return "atom"; } // :+ :- :/ :* :| :& :! are valid symbols if (stream.eat(/[\+\-\*\/\&\|\:\!]/)) { return "atom"; } // Symbols can't start by a digit if (stream.eat(/[a-zA-Z$@_\xa1-\uffff]/)) { stream.eatWhile(/[\w$\xa1-\uffff]/); // Only one ? ! = is allowed and only as the last character stream.eat(/[\?\!\=]/); return "atom"; } return "operator"; } else if (ch == "@" && stream.match(/^@?[a-zA-Z_\xa1-\uffff]/)) { stream.eat("@"); stream.eatWhile(/[\w\xa1-\uffff]/); return "variable-2"; } else if (ch == "$") { if (stream.eat(/[a-zA-Z_]/)) { stream.eatWhile(/[\w]/); } else if (stream.eat(/\d/)) { stream.eat(/\d/); } else { stream.next(); // Must be a special global like $: or $! } return "variable-3"; } else if (/[a-zA-Z_\xa1-\uffff]/.test(ch)) { stream.eatWhile(/[\w\xa1-\uffff]/); stream.eat(/[\?\!]/); if (stream.eat(":")) return "atom"; return "ident"; } else if (ch == "|" && (state.varList || state.lastTok == "{" || state.lastTok == "do")) { curPunc = "|"; return null; } else if (/[\(\)\[\]{}\\;]/.test(ch)) { curPunc = ch; return null; } else if (ch == "-" && stream.eat(">")) { return "arrow"; } else if (/[=+\-\/*:\.^%<>~|]/.test(ch)) { var more = stream.eatWhile(/[=+\-\/*:\.^%<>~|]/); if (ch == "." && !more) curPunc = "."; return "operator"; } else { return null; } } function regexpAhead(stream) { var start = stream.pos, depth = 0, next, found = false, escaped = false while ((next = stream.next()) != null) { if (!escaped) { if ("[{(".indexOf(next) > -1) { depth++ } else if ("]})".indexOf(next) > -1) { depth-- if (depth < 0) break } else if (next == "/" && depth == 0) { found = true break } escaped = next == "\\" } else { escaped = false } } stream.backUp(stream.pos - start) return found } function tokenBaseUntilBrace(depth) { if (!depth) depth = 1; return function(stream, state) { if (stream.peek() == "}") { if (depth == 1) { state.tokenize.pop(); return state.tokenize[state.tokenize.length-1](stream, state); } else { state.tokenize[state.tokenize.length - 1] = tokenBaseUntilBrace(depth - 1); } } else if (stream.peek() == "{") { state.tokenize[state.tokenize.length - 1] = tokenBaseUntilBrace(depth + 1); } return tokenBase(stream, state); }; } function tokenBaseOnce() { var alreadyCalled = false; return function(stream, state) { if (alreadyCalled) { state.tokenize.pop(); return state.tokenize[state.tokenize.length-1](stream, state); } alreadyCalled = true; return tokenBase(stream, state); }; } function readQuoted(quote, style, embed, unescaped) { return function(stream, state) { var escaped = false, ch; if (state.context.type === 'read-quoted-paused') { state.context = state.context.prev; stream.eat("}"); } while ((ch = stream.next()) != null) { if (ch == quote && (unescaped || !escaped)) { state.tokenize.pop(); break; } if (embed && ch == "#" && !escaped) { if (stream.eat("{")) { if (quote == "}") { state.context = {prev: state.context, type: 'read-quoted-paused'}; } state.tokenize.push(tokenBaseUntilBrace()); break; } else if (/[@\$]/.test(stream.peek())) { state.tokenize.push(tokenBaseOnce()); break; } } escaped = !escaped && ch == "\\"; } return style; }; } function readHereDoc(phrase, mayIndent) { return function(stream, state) { if (mayIndent) stream.eatSpace() if (stream.match(phrase)) state.tokenize.pop(); else stream.skipToEnd(); return "string"; }; } function readBlockComment(stream, state) { if (stream.sol() && stream.match("=end") && stream.eol()) state.tokenize.pop(); stream.skipToEnd(); return "comment"; } return { startState: function() { return {tokenize: [tokenBase], indented: 0, context: {type: "top", indented: -config.indentUnit}, continuedLine: false, lastTok: null, varList: false}; }, token: function(stream, state) { curPunc = null; if (stream.sol()) state.indented = stream.indentation(); var style = state.tokenize[state.tokenize.length-1](stream, state), kwtype; var thisTok = curPunc; if (style == "ident") { var word = stream.current(); style = state.lastTok == "." ? "property" : keywords.propertyIsEnumerable(stream.current()) ? "keyword" : /^[A-Z]/.test(word) ? "tag" : (state.lastTok == "def" || state.lastTok == "class" || state.varList) ? "def" : "variable"; if (style == "keyword") { thisTok = word; if (indentWords.propertyIsEnumerable(word)) kwtype = "indent"; else if (dedentWords.propertyIsEnumerable(word)) kwtype = "dedent"; else if ((word == "if" || word == "unless") && stream.column() == stream.indentation()) kwtype = "indent"; else if (word == "do" && state.context.indented < state.indented) kwtype = "indent"; } } if (curPunc || (style && style != "comment")) state.lastTok = thisTok; if (curPunc == "|") state.varList = !state.varList; if (kwtype == "indent" || /[\(\[\{]/.test(curPunc)) state.context = {prev: state.context, type: curPunc || style, indented: state.indented}; else if ((kwtype == "dedent" || /[\)\]\}]/.test(curPunc)) && state.context.prev) state.context = state.context.prev; if (stream.eol()) state.continuedLine = (curPunc == "\\" || style == "operator"); return style; }, indent: function(state, textAfter) { if (state.tokenize[state.tokenize.length-1] != tokenBase) return CodeMirror.Pass; var firstChar = textAfter && textAfter.charAt(0); var ct = state.context; var closed = ct.type == closing[firstChar] || ct.type == "keyword" && /^(?:end|until|else|elsif|when|rescue)\b/.test(textAfter); return ct.indented + (closed ? 0 : config.indentUnit) + (state.continuedLine ? config.indentUnit : 0); }, electricInput: /^\s*(?:end|rescue|elsif|else|\})$/, lineComment: "#", fold: "indent" }; }); CodeMirror.defineMIME("text/x-ruby", "ruby"); CodeMirror.registerHelper("hintWords", "ruby", keywordList); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/rust/rust.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../../addon/mode/simple")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../../addon/mode/simple"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineSimpleMode("rust",{ start: [ // string and byte string {regex: /b?"/, token: "string", next: "string"}, // raw string and raw byte string {regex: /b?r"/, token: "string", next: "string_raw"}, {regex: /b?r#+"/, token: "string", next: "string_raw_hash"}, // character {regex: /'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/, token: "string-2"}, // byte {regex: /b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/, token: "string-2"}, {regex: /(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/, token: "number"}, {regex: /(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/, token: ["keyword", null, "def"]}, {regex: /(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, token: "keyword"}, {regex: /\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/, token: "atom"}, {regex: /\b(?:true|false|Some|None|Ok|Err)\b/, token: "builtin"}, {regex: /\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/, token: ["keyword", null ,"def"]}, {regex: /#!?\[.*\]/, token: "meta"}, {regex: /\/\/.*/, token: "comment"}, {regex: /\/\*/, token: "comment", next: "comment"}, {regex: /[-+\/*=<>!]+/, token: "operator"}, {regex: /[a-zA-Z_]\w*!/,token: "variable-3"}, {regex: /[a-zA-Z_]\w*/, token: "variable"}, {regex: /[\{\[\(]/, indent: true}, {regex: /[\}\]\)]/, dedent: true} ], string: [ {regex: /"/, token: "string", next: "start"}, {regex: /(?:[^\\"]|\\(?:.|$))*/, token: "string"} ], string_raw: [ {regex: /"/, token: "string", next: "start"}, {regex: /[^"]*/, token: "string"} ], string_raw_hash: [ {regex: /"#+/, token: "string", next: "start"}, {regex: /(?:[^"]|"(?!#))*/, token: "string"} ], comment: [ {regex: /.*?\*\//, token: "comment", next: "start"}, {regex: /.*/, token: "comment"} ], meta: { dontIndentStates: ["comment"], electricInput: /^\s*\}$/, blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//", fold: "brace" } }); CodeMirror.defineMIME("text/x-rustsrc", "rust"); CodeMirror.defineMIME("text/rust", "rust"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/sas/sas.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // SAS mode copyright (c) 2016 Jared Dean, SAS Institute // Created by Jared Dean // TODO // indent and de-indent // identify macro variables //Definitions // comment -- text within * ; or /* */ // keyword -- SAS language variable // variable -- macro variables starts with '&' or variable formats // variable-2 -- DATA Step, proc, or macro names // string -- text within ' ' or " " // operator -- numeric operator + / - * ** le eq ge ... and so on // builtin -- proc %macro data run mend // atom // def (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("sas", function () { var words = {}; var isDoubleOperatorSym = { eq: 'operator', lt: 'operator', le: 'operator', gt: 'operator', ge: 'operator', "in": 'operator', ne: 'operator', or: 'operator' }; var isDoubleOperatorChar = /(<=|>=|!=|<>)/; var isSingleOperatorChar = /[=\(:\),{}.*<>+\-\/^\[\]]/; // Takes a string of words separated by spaces and adds them as // keys with the value of the first argument 'style' function define(style, string, context) { if (context) { var split = string.split(' '); for (var i = 0; i < split.length; i++) { words[split[i]] = {style: style, state: context}; } } } //datastep define('def', 'stack pgm view source debug nesting nolist', ['inDataStep']); define('def', 'if while until for do do; end end; then else cancel', ['inDataStep']); define('def', 'label format _n_ _error_', ['inDataStep']); define('def', 'ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME', ['inDataStep']); define('def', 'filevar finfo finv fipname fipnamel fipstate first firstobs floor', ['inDataStep']); define('def', 'varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday', ['inDataStep']); define('def', 'zipfips zipname zipnamel zipstate', ['inDataStep']); define('def', 'put putc putn', ['inDataStep']); define('builtin', 'data run', ['inDataStep']); //proc define('def', 'data', ['inProc']); // flow control for macros define('def', '%if %end %end; %else %else; %do %do; %then', ['inMacro']); //everywhere define('builtin', 'proc run; quit; libname filename %macro %mend option options', ['ALL']); define('def', 'footnote title libname ods', ['ALL']); define('def', '%let %put %global %sysfunc %eval ', ['ALL']); // automatic macro variables http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a003167023.htm define('variable', '&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext', ['ALL']); //footnote[1-9]? title[1-9]? //options statement define('def', 'source2 nosource2 page pageno pagesize', ['ALL']); //proc and datastep define('def', '_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddfm ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau random ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni rcorr read recfm register regr remote remove rename repeat repeated replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover sub subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max', ['inDataStep', 'inProc']); define('operator', 'and not ', ['inDataStep', 'inProc']); // Main function function tokenize(stream, state) { // Finally advance the stream var ch = stream.next(); // BLOCKCOMMENT if (ch === '/' && stream.eat('*')) { state.continueComment = true; return "comment"; } else if (state.continueComment === true) { // in comment block //comment ends at the beginning of the line if (ch === '*' && stream.peek() === '/') { stream.next(); state.continueComment = false; } else if (stream.skipTo('*')) { //comment is potentially later in line stream.skipTo('*'); stream.next(); if (stream.eat('/')) state.continueComment = false; } else { stream.skipToEnd(); } return "comment"; } if (ch == "*" && stream.column() == stream.indentation()) { stream.skipToEnd() return "comment" } // DoubleOperator match var doubleOperator = ch + stream.peek(); if ((ch === '"' || ch === "'") && !state.continueString) { state.continueString = ch return "string" } else if (state.continueString) { if (state.continueString == ch) { state.continueString = null; } else if (stream.skipTo(state.continueString)) { // quote found on this line stream.next(); state.continueString = null; } else { stream.skipToEnd(); } return "string"; } else if (state.continueString !== null && stream.eol()) { stream.skipTo(state.continueString) || stream.skipToEnd(); return "string"; } else if (/[\d\.]/.test(ch)) { //find numbers if (ch === ".") stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/); else if (ch === "0") stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/); else stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/); return "number"; } else if (isDoubleOperatorChar.test(ch + stream.peek())) { // TWO SYMBOL TOKENS stream.next(); return "operator"; } else if (isDoubleOperatorSym.hasOwnProperty(doubleOperator)) { stream.next(); if (stream.peek() === ' ') return isDoubleOperatorSym[doubleOperator.toLowerCase()]; } else if (isSingleOperatorChar.test(ch)) { // SINGLE SYMBOL TOKENS return "operator"; } // Matches one whole word -- even if the word is a character var word; if (stream.match(/[%&;\w]+/, false) != null) { word = ch + stream.match(/[%&;\w]+/, true); if (/&/.test(word)) return 'variable' } else { word = ch; } // the word after DATA PROC or MACRO if (state.nextword) { stream.match(/[\w]+/); // match memname.libname if (stream.peek() === '.') stream.skipTo(' '); state.nextword = false; return 'variable-2'; } word = word.toLowerCase() // Are we in a DATA Step? if (state.inDataStep) { if (word === 'run;' || stream.match(/run\s;/)) { state.inDataStep = false; return 'builtin'; } // variable formats if ((word) && stream.next() === '.') { //either a format or libname.memname if (/\w/.test(stream.peek())) return 'variable-2'; else return 'variable'; } // do we have a DATA Step keyword if (word && words.hasOwnProperty(word) && (words[word].state.indexOf("inDataStep") !== -1 || words[word].state.indexOf("ALL") !== -1)) { //backup to the start of the word if (stream.start < stream.pos) stream.backUp(stream.pos - stream.start); //advance the length of the word and return for (var i = 0; i < word.length; ++i) stream.next(); return words[word].style; } } // Are we in an Proc statement? if (state.inProc) { if (word === 'run;' || word === 'quit;') { state.inProc = false; return 'builtin'; } // do we have a proc keyword if (word && words.hasOwnProperty(word) && (words[word].state.indexOf("inProc") !== -1 || words[word].state.indexOf("ALL") !== -1)) { stream.match(/[\w]+/); return words[word].style; } } // Are we in a Macro statement? if (state.inMacro) { if (word === '%mend') { if (stream.peek() === ';') stream.next(); state.inMacro = false; return 'builtin'; } if (word && words.hasOwnProperty(word) && (words[word].state.indexOf("inMacro") !== -1 || words[word].state.indexOf("ALL") !== -1)) { stream.match(/[\w]+/); return words[word].style; } return 'atom'; } // Do we have Keywords specific words? if (word && words.hasOwnProperty(word)) { // Negates the initial next() stream.backUp(1); // Actually move the stream stream.match(/[\w]+/); if (word === 'data' && /=/.test(stream.peek()) === false) { state.inDataStep = true; state.nextword = true; return 'builtin'; } if (word === 'proc') { state.inProc = true; state.nextword = true; return 'builtin'; } if (word === '%macro') { state.inMacro = true; state.nextword = true; return 'builtin'; } if (/title[1-9]/.test(word)) return 'def'; if (word === 'footnote') { stream.eat(/[1-9]/); return 'def'; } // Returns their value as state in the prior define methods if (state.inDataStep === true && words[word].state.indexOf("inDataStep") !== -1) return words[word].style; if (state.inProc === true && words[word].state.indexOf("inProc") !== -1) return words[word].style; if (state.inMacro === true && words[word].state.indexOf("inMacro") !== -1) return words[word].style; if (words[word].state.indexOf("ALL") !== -1) return words[word].style; return null; } // Unrecognized syntax return null; } return { startState: function () { return { inDataStep: false, inProc: false, inMacro: false, nextword: false, continueString: null, continueComment: false }; }, token: function (stream, state) { // Strip the spaces, but regex will account for them either way if (stream.eatSpace()) return null; // Go through the main process return tokenize(stream, state); }, blockCommentStart: "/*", blockCommentEnd: "*/" }; }); CodeMirror.defineMIME("text/x-sas", "sas"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/sass/sass.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../css/css")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../css/css"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("sass", function(config) { var cssMode = CodeMirror.mimeModes["text/css"]; var propertyKeywords = cssMode.propertyKeywords || {}, colorKeywords = cssMode.colorKeywords || {}, valueKeywords = cssMode.valueKeywords || {}, fontProperties = cssMode.fontProperties || {}; function tokenRegexp(words) { return new RegExp("^" + words.join("|")); } var keywords = ["true", "false", "null", "auto"]; var keywordsRegexp = new RegExp("^" + keywords.join("|")); var operators = ["\\(", "\\)", "=", ">", "<", "==", ">=", "<=", "\\+", "-", "\\!=", "/", "\\*", "%", "and", "or", "not", ";","\\{","\\}",":"]; var opRegexp = tokenRegexp(operators); var pseudoElementsRegexp = /^::?[a-zA-Z_][\w\-]*/; var word; function isEndLine(stream) { return !stream.peek() || stream.match(/\s+$/, false); } function urlTokens(stream, state) { var ch = stream.peek(); if (ch === ")") { stream.next(); state.tokenizer = tokenBase; return "operator"; } else if (ch === "(") { stream.next(); stream.eatSpace(); return "operator"; } else if (ch === "'" || ch === '"') { state.tokenizer = buildStringTokenizer(stream.next()); return "string"; } else { state.tokenizer = buildStringTokenizer(")", false); return "string"; } } function comment(indentation, multiLine) { return function(stream, state) { if (stream.sol() && stream.indentation() <= indentation) { state.tokenizer = tokenBase; return tokenBase(stream, state); } if (multiLine && stream.skipTo("*/")) { stream.next(); stream.next(); state.tokenizer = tokenBase; } else { stream.skipToEnd(); } return "comment"; }; } function buildStringTokenizer(quote, greedy) { if (greedy == null) { greedy = true; } function stringTokenizer(stream, state) { var nextChar = stream.next(); var peekChar = stream.peek(); var previousChar = stream.string.charAt(stream.pos-2); var endingString = ((nextChar !== "\\" && peekChar === quote) || (nextChar === quote && previousChar !== "\\")); if (endingString) { if (nextChar !== quote && greedy) { stream.next(); } if (isEndLine(stream)) { state.cursorHalf = 0; } state.tokenizer = tokenBase; return "string"; } else if (nextChar === "#" && peekChar === "{") { state.tokenizer = buildInterpolationTokenizer(stringTokenizer); stream.next(); return "operator"; } else { return "string"; } } return stringTokenizer; } function buildInterpolationTokenizer(currentTokenizer) { return function(stream, state) { if (stream.peek() === "}") { stream.next(); state.tokenizer = currentTokenizer; return "operator"; } else { return tokenBase(stream, state); } }; } function indent(state) { if (state.indentCount == 0) { state.indentCount++; var lastScopeOffset = state.scopes[0].offset; var currentOffset = lastScopeOffset + config.indentUnit; state.scopes.unshift({ offset:currentOffset }); } } function dedent(state) { if (state.scopes.length == 1) return; state.scopes.shift(); } function tokenBase(stream, state) { var ch = stream.peek(); // Comment if (stream.match("/*")) { state.tokenizer = comment(stream.indentation(), true); return state.tokenizer(stream, state); } if (stream.match("//")) { state.tokenizer = comment(stream.indentation(), false); return state.tokenizer(stream, state); } // Interpolation if (stream.match("#{")) { state.tokenizer = buildInterpolationTokenizer(tokenBase); return "operator"; } // Strings if (ch === '"' || ch === "'") { stream.next(); state.tokenizer = buildStringTokenizer(ch); return "string"; } if(!state.cursorHalf){// state.cursorHalf === 0 // first half i.e. before : for key-value pairs // including selectors if (ch === "-") { if (stream.match(/^-\w+-/)) { return "meta"; } } if (ch === ".") { stream.next(); if (stream.match(/^[\w-]+/)) { indent(state); return "qualifier"; } else if (stream.peek() === "#") { indent(state); return "tag"; } } if (ch === "#") { stream.next(); // ID selectors if (stream.match(/^[\w-]+/)) { indent(state); return "builtin"; } if (stream.peek() === "#") { indent(state); return "tag"; } } // Variables if (ch === "$") { stream.next(); stream.eatWhile(/[\w-]/); return "variable-2"; } // Numbers if (stream.match(/^-?[0-9\.]+/)) return "number"; // Units if (stream.match(/^(px|em|in)\b/)) return "unit"; if (stream.match(keywordsRegexp)) return "keyword"; if (stream.match(/^url/) && stream.peek() === "(") { state.tokenizer = urlTokens; return "atom"; } if (ch === "=") { // Match shortcut mixin definition if (stream.match(/^=[\w-]+/)) { indent(state); return "meta"; } } if (ch === "+") { // Match shortcut mixin definition if (stream.match(/^\+[\w-]+/)){ return "variable-3"; } } if(ch === "@"){ if(stream.match('@extend')){ if(!stream.match(/\s*[\w]/)) dedent(state); } } // Indent Directives if (stream.match(/^@(else if|if|media|else|for|each|while|mixin|function)/)) { indent(state); return "def"; } // Other Directives if (ch === "@") { stream.next(); stream.eatWhile(/[\w-]/); return "def"; } if (stream.eatWhile(/[\w-]/)){ if(stream.match(/ *: *[\w-\+\$#!\("']/,false)){ word = stream.current().toLowerCase(); var prop = state.prevProp + "-" + word; if (propertyKeywords.hasOwnProperty(prop)) { return "property"; } else if (propertyKeywords.hasOwnProperty(word)) { state.prevProp = word; return "property"; } else if (fontProperties.hasOwnProperty(word)) { return "property"; } return "tag"; } else if(stream.match(/ *:/,false)){ indent(state); state.cursorHalf = 1; state.prevProp = stream.current().toLowerCase(); return "property"; } else if(stream.match(/ *,/,false)){ return "tag"; } else{ indent(state); return "tag"; } } if(ch === ":"){ if (stream.match(pseudoElementsRegexp)){ // could be a pseudo-element return "variable-3"; } stream.next(); state.cursorHalf=1; return "operator"; } } // cursorHalf===0 ends here else{ if (ch === "#") { stream.next(); // Hex numbers if (stream.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)){ if (isEndLine(stream)) { state.cursorHalf = 0; } return "number"; } } // Numbers if (stream.match(/^-?[0-9\.]+/)){ if (isEndLine(stream)) { state.cursorHalf = 0; } return "number"; } // Units if (stream.match(/^(px|em|in)\b/)){ if (isEndLine(stream)) { state.cursorHalf = 0; } return "unit"; } if (stream.match(keywordsRegexp)){ if (isEndLine(stream)) { state.cursorHalf = 0; } return "keyword"; } if (stream.match(/^url/) && stream.peek() === "(") { state.tokenizer = urlTokens; if (isEndLine(stream)) { state.cursorHalf = 0; } return "atom"; } // Variables if (ch === "$") { stream.next(); stream.eatWhile(/[\w-]/); if (isEndLine(stream)) { state.cursorHalf = 0; } return "variable-2"; } // bang character for !important, !default, etc. if (ch === "!") { stream.next(); state.cursorHalf = 0; return stream.match(/^[\w]+/) ? "keyword": "operator"; } if (stream.match(opRegexp)){ if (isEndLine(stream)) { state.cursorHalf = 0; } return "operator"; } // attributes if (stream.eatWhile(/[\w-]/)) { if (isEndLine(stream)) { state.cursorHalf = 0; } word = stream.current().toLowerCase(); if (valueKeywords.hasOwnProperty(word)) { return "atom"; } else if (colorKeywords.hasOwnProperty(word)) { return "keyword"; } else if (propertyKeywords.hasOwnProperty(word)) { state.prevProp = stream.current().toLowerCase(); return "property"; } else { return "tag"; } } //stream.eatSpace(); if (isEndLine(stream)) { state.cursorHalf = 0; return null; } } // else ends here if (stream.match(opRegexp)) return "operator"; // If we haven't returned by now, we move 1 character // and return an error stream.next(); return null; } function tokenLexer(stream, state) { if (stream.sol()) state.indentCount = 0; var style = state.tokenizer(stream, state); var current = stream.current(); if (current === "@return" || current === "}"){ dedent(state); } if (style !== null) { var startOfToken = stream.pos - current.length; var withCurrentIndent = startOfToken + (config.indentUnit * state.indentCount); var newScopes = []; for (var i = 0; i < state.scopes.length; i++) { var scope = state.scopes[i]; if (scope.offset <= withCurrentIndent) newScopes.push(scope); } state.scopes = newScopes; } return style; } return { startState: function() { return { tokenizer: tokenBase, scopes: [{offset: 0, type: "sass"}], indentCount: 0, cursorHalf: 0, // cursor half tells us if cursor lies after (1) // or before (0) colon (well... more or less) definedVars: [], definedMixins: [] }; }, token: function(stream, state) { var style = tokenLexer(stream, state); state.lastToken = { style: style, content: stream.current() }; return style; }, indent: function(state) { return state.scopes[0].offset; }, blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//", fold: "indent" }; }, "css"); CodeMirror.defineMIME("text/x-sass", "sass"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/scheme/scheme.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /** * Author: Koh Zi Han, based on implementation by Koh Zi Chun * Improved by: Jakub T. Jankiewicz */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("scheme", function () { var BUILTIN = "builtin", COMMENT = "comment", STRING = "string", SYMBOL = "symbol", ATOM = "atom", NUMBER = "number", BRACKET = "bracket"; var INDENT_WORD_SKIP = 2; function makeKeywords(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var keywords = makeKeywords("λ case-lambda call/cc class cond-expand define-class define-values exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"); var indentKeys = makeKeywords("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless"); function stateStack(indent, type, prev) { // represents a state stack object this.indent = indent; this.type = type; this.prev = prev; } function pushStack(state, indent, type) { state.indentStack = new stateStack(indent, type, state.indentStack); } function popStack(state) { state.indentStack = state.indentStack.prev; } var binaryMatcher = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i); var octalMatcher = new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i); var hexMatcher = new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i); var decimalMatcher = new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i); function isBinaryNumber (stream) { return stream.match(binaryMatcher); } function isOctalNumber (stream) { return stream.match(octalMatcher); } function isDecimalNumber (stream, backup) { if (backup === true) { stream.backUp(1); } return stream.match(decimalMatcher); } function isHexNumber (stream) { return stream.match(hexMatcher); } function processEscapedSequence(stream, options) { var next, escaped = false; while ((next = stream.next()) != null) { if (next == options.token && !escaped) { options.state.mode = false; break; } escaped = !escaped && next == "\\"; } } return { startState: function () { return { indentStack: null, indentation: 0, mode: false, sExprComment: false, sExprQuote: false }; }, token: function (stream, state) { if (state.indentStack == null && stream.sol()) { // update indentation, but only if indentStack is empty state.indentation = stream.indentation(); } // skip spaces if (stream.eatSpace()) { return null; } var returnType = null; switch(state.mode){ case "string": // multi-line string parsing mode processEscapedSequence(stream, { token: "\"", state: state }); returnType = STRING; // continue on in scheme-string mode break; case "symbol": // escape symbol processEscapedSequence(stream, { token: "|", state: state }); returnType = SYMBOL; // continue on in scheme-symbol mode break; case "comment": // comment parsing mode var next, maybeEnd = false; while ((next = stream.next()) != null) { if (next == "#" && maybeEnd) { state.mode = false; break; } maybeEnd = (next == "|"); } returnType = COMMENT; break; case "s-expr-comment": // s-expr commenting mode state.mode = false; if(stream.peek() == "(" || stream.peek() == "["){ // actually start scheme s-expr commenting mode state.sExprComment = 0; }else{ // if not we just comment the entire of the next token stream.eatWhile(/[^\s\(\)\[\]]/); // eat symbol atom returnType = COMMENT; break; } default: // default parsing mode var ch = stream.next(); if (ch == "\"") { state.mode = "string"; returnType = STRING; } else if (ch == "'") { if (stream.peek() == "(" || stream.peek() == "["){ if (typeof state.sExprQuote != "number") { state.sExprQuote = 0; } // else already in a quoted expression returnType = ATOM; } else { stream.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/); returnType = ATOM; } } else if (ch == '|') { state.mode = "symbol"; returnType = SYMBOL; } else if (ch == '#') { if (stream.eat("|")) { // Multi-line comment state.mode = "comment"; // toggle to comment mode returnType = COMMENT; } else if (stream.eat(/[tf]/i)) { // #t/#f (atom) returnType = ATOM; } else if (stream.eat(';')) { // S-Expr comment state.mode = "s-expr-comment"; returnType = COMMENT; } else { var numTest = null, hasExactness = false, hasRadix = true; if (stream.eat(/[ei]/i)) { hasExactness = true; } else { stream.backUp(1); // must be radix specifier } if (stream.match(/^#b/i)) { numTest = isBinaryNumber; } else if (stream.match(/^#o/i)) { numTest = isOctalNumber; } else if (stream.match(/^#x/i)) { numTest = isHexNumber; } else if (stream.match(/^#d/i)) { numTest = isDecimalNumber; } else if (stream.match(/^[-+0-9.]/, false)) { hasRadix = false; numTest = isDecimalNumber; // re-consume the initial # if all matches failed } else if (!hasExactness) { stream.eat('#'); } if (numTest != null) { if (hasRadix && !hasExactness) { // consume optional exactness after radix stream.match(/^#[ei]/i); } if (numTest(stream)) returnType = NUMBER; } } } else if (/^[-+0-9.]/.test(ch) && isDecimalNumber(stream, true)) { // match non-prefixed number, must be decimal returnType = NUMBER; } else if (ch == ";") { // comment stream.skipToEnd(); // rest of the line is a comment returnType = COMMENT; } else if (ch == "(" || ch == "[") { var keyWord = ''; var indentTemp = stream.column(), letter; /** Either (indent-word .. (non-indent-word .. (;something else, bracket, etc. */ while ((letter = stream.eat(/[^\s\(\[\;\)\]]/)) != null) { keyWord += letter; } if (keyWord.length > 0 && indentKeys.propertyIsEnumerable(keyWord)) { // indent-word pushStack(state, indentTemp + INDENT_WORD_SKIP, ch); } else { // non-indent word // we continue eating the spaces stream.eatSpace(); if (stream.eol() || stream.peek() == ";") { // nothing significant after // we restart indentation 1 space after pushStack(state, indentTemp + 1, ch); } else { pushStack(state, indentTemp + stream.current().length, ch); // else we match } } stream.backUp(stream.current().length - 1); // undo all the eating if(typeof state.sExprComment == "number") state.sExprComment++; if(typeof state.sExprQuote == "number") state.sExprQuote++; returnType = BRACKET; } else if (ch == ")" || ch == "]") { returnType = BRACKET; if (state.indentStack != null && state.indentStack.type == (ch == ")" ? "(" : "[")) { popStack(state); if(typeof state.sExprComment == "number"){ if(--state.sExprComment == 0){ returnType = COMMENT; // final closing bracket state.sExprComment = false; // turn off s-expr commenting mode } } if(typeof state.sExprQuote == "number"){ if(--state.sExprQuote == 0){ returnType = ATOM; // final closing bracket state.sExprQuote = false; // turn off s-expr quote mode } } } } else { stream.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/); if (keywords && keywords.propertyIsEnumerable(stream.current())) { returnType = BUILTIN; } else returnType = "variable"; } } return (typeof state.sExprComment == "number") ? COMMENT : ((typeof state.sExprQuote == "number") ? ATOM : returnType); }, indent: function (state) { if (state.indentStack == null) return state.indentation; return state.indentStack.indent; }, fold: "brace-paren", closeBrackets: {pairs: "()[]{}\"\""}, lineComment: ";;" }; }); CodeMirror.defineMIME("text/x-scheme", "scheme"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/shell/shell.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('shell', function() { var words = {}; function define(style, dict) { for(var i = 0; i < dict.length; i++) { words[dict[i]] = style; } }; var commonAtoms = ["true", "false"]; var commonKeywords = ["if", "then", "do", "else", "elif", "while", "until", "for", "in", "esac", "fi", "fin", "fil", "done", "exit", "set", "unset", "export", "function"]; var commonCommands = ["ab", "awk", "bash", "beep", "cat", "cc", "cd", "chown", "chmod", "chroot", "clear", "cp", "curl", "cut", "diff", "echo", "find", "gawk", "gcc", "get", "git", "grep", "hg", "kill", "killall", "ln", "ls", "make", "mkdir", "openssl", "mv", "nc", "nl", "node", "npm", "ping", "ps", "restart", "rm", "rmdir", "sed", "service", "sh", "shopt", "shred", "source", "sort", "sleep", "ssh", "start", "stop", "su", "sudo", "svn", "tee", "telnet", "top", "touch", "vi", "vim", "wall", "wc", "wget", "who", "write", "yes", "zsh"]; CodeMirror.registerHelper("hintWords", "shell", commonAtoms.concat(commonKeywords, commonCommands)); define('atom', commonAtoms); define('keyword', commonKeywords); define('builtin', commonCommands); function tokenBase(stream, state) { if (stream.eatSpace()) return null; var sol = stream.sol(); var ch = stream.next(); if (ch === '\\') { stream.next(); return null; } if (ch === '\'' || ch === '"' || ch === '`') { state.tokens.unshift(tokenString(ch, ch === "`" ? "quote" : "string")); return tokenize(stream, state); } if (ch === '#') { if (sol && stream.eat('!')) { stream.skipToEnd(); return 'meta'; // 'comment'? } stream.skipToEnd(); return 'comment'; } if (ch === '$') { state.tokens.unshift(tokenDollar); return tokenize(stream, state); } if (ch === '+' || ch === '=') { return 'operator'; } if (ch === '-') { stream.eat('-'); stream.eatWhile(/\w/); return 'attribute'; } if (ch == "<") { if (stream.match("<<")) return "operator" var heredoc = stream.match(/^<-?\s*['"]?([^'"]*)['"]?/) if (heredoc) { state.tokens.unshift(tokenHeredoc(heredoc[1])) return 'string-2' } } if (/\d/.test(ch)) { stream.eatWhile(/\d/); if(stream.eol() || !/\w/.test(stream.peek())) { return 'number'; } } stream.eatWhile(/[\w-]/); var cur = stream.current(); if (stream.peek() === '=' && /\w+/.test(cur)) return 'def'; return words.hasOwnProperty(cur) ? words[cur] : null; } function tokenString(quote, style) { var close = quote == "(" ? ")" : quote == "{" ? "}" : quote return function(stream, state) { var next, escaped = false; while ((next = stream.next()) != null) { if (next === close && !escaped) { state.tokens.shift(); break; } else if (next === '$' && !escaped && quote !== "'" && stream.peek() != close) { escaped = true; stream.backUp(1); state.tokens.unshift(tokenDollar); break; } else if (!escaped && quote !== close && next === quote) { state.tokens.unshift(tokenString(quote, style)) return tokenize(stream, state) } else if (!escaped && /['"]/.test(next) && !/['"]/.test(quote)) { state.tokens.unshift(tokenStringStart(next, "string")); stream.backUp(1); break; } escaped = !escaped && next === '\\'; } return style; }; }; function tokenStringStart(quote, style) { return function(stream, state) { state.tokens[0] = tokenString(quote, style) stream.next() return tokenize(stream, state) } } var tokenDollar = function(stream, state) { if (state.tokens.length > 1) stream.eat('$'); var ch = stream.next() if (/['"({]/.test(ch)) { state.tokens[0] = tokenString(ch, ch == "(" ? "quote" : ch == "{" ? "def" : "string"); return tokenize(stream, state); } if (!/\d/.test(ch)) stream.eatWhile(/\w/); state.tokens.shift(); return 'def'; }; function tokenHeredoc(delim) { return function(stream, state) { if (stream.sol() && stream.string == delim) state.tokens.shift() stream.skipToEnd() return "string-2" } } function tokenize(stream, state) { return (state.tokens[0] || tokenBase) (stream, state); }; return { startState: function() {return {tokens:[]};}, token: function(stream, state) { return tokenize(stream, state); }, closeBrackets: "()[]{}''\"\"``", lineComment: '#', fold: "brace" }; }); CodeMirror.defineMIME('text/x-sh', 'shell'); // Apache uses a slightly different Media Type for Shell scripts // http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types CodeMirror.defineMIME('application/x-sh', 'shell'); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/sieve/sieve.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("sieve", function(config) { function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var keywords = words("if elsif else stop require"); var atoms = words("true false not"); var indentUnit = config.indentUnit; function tokenBase(stream, state) { var ch = stream.next(); if (ch == "/" && stream.eat("*")) { state.tokenize = tokenCComment; return tokenCComment(stream, state); } if (ch === '#') { stream.skipToEnd(); return "comment"; } if (ch == "\"") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (ch == "(") { state._indent.push("("); // add virtual angel wings so that editor behaves... // ...more sane in case of broken brackets state._indent.push("{"); return null; } if (ch === "{") { state._indent.push("{"); return null; } if (ch == ")") { state._indent.pop(); state._indent.pop(); } if (ch === "}") { state._indent.pop(); return null; } if (ch == ",") return null; if (ch == ";") return null; if (/[{}\(\),;]/.test(ch)) return null; // 1*DIGIT "K" / "M" / "G" if (/\d/.test(ch)) { stream.eatWhile(/[\d]/); stream.eat(/[KkMmGg]/); return "number"; } // ":" (ALPHA / "_") *(ALPHA / DIGIT / "_") if (ch == ":") { stream.eatWhile(/[a-zA-Z_]/); stream.eatWhile(/[a-zA-Z0-9_]/); return "operator"; } stream.eatWhile(/\w/); var cur = stream.current(); // "text:" *(SP / HTAB) (hash-comment / CRLF) // *(multiline-literal / multiline-dotstart) // "." CRLF if ((cur == "text") && stream.eat(":")) { state.tokenize = tokenMultiLineString; return "string"; } if (keywords.propertyIsEnumerable(cur)) return "keyword"; if (atoms.propertyIsEnumerable(cur)) return "atom"; return null; } function tokenMultiLineString(stream, state) { state._multiLineString = true; // the first line is special it may contain a comment if (!stream.sol()) { stream.eatSpace(); if (stream.peek() == "#") { stream.skipToEnd(); return "comment"; } stream.skipToEnd(); return "string"; } if ((stream.next() == ".") && (stream.eol())) { state._multiLineString = false; state.tokenize = tokenBase; } return "string"; } function tokenCComment(stream, state) { var maybeEnd = false, ch; while ((ch = stream.next()) != null) { if (maybeEnd && ch == "/") { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return "comment"; } function tokenString(quote) { return function(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == quote && !escaped) break; escaped = !escaped && ch == "\\"; } if (!escaped) state.tokenize = tokenBase; return "string"; }; } return { startState: function(base) { return {tokenize: tokenBase, baseIndent: base || 0, _indent: []}; }, token: function(stream, state) { if (stream.eatSpace()) return null; return (state.tokenize || tokenBase)(stream, state); }, indent: function(state, _textAfter) { var length = state._indent.length; if (_textAfter && (_textAfter[0] == "}")) length--; if (length <0) length = 0; return length * indentUnit; }, electricChars: "}" }; }); CodeMirror.defineMIME("application/sieve", "sieve"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/slim/slim.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Slim Highlighting for CodeMirror copyright (c) HicknHack Software Gmbh (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../ruby/ruby")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../ruby/ruby"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("slim", function(config) { var htmlMode = CodeMirror.getMode(config, {name: "htmlmixed"}); var rubyMode = CodeMirror.getMode(config, "ruby"); var modes = { html: htmlMode, ruby: rubyMode }; var embedded = { ruby: "ruby", javascript: "javascript", css: "text/css", sass: "text/x-sass", scss: "text/x-scss", less: "text/x-less", styl: "text/x-styl", // no highlighting so far coffee: "coffeescript", asciidoc: "text/x-asciidoc", markdown: "text/x-markdown", textile: "text/x-textile", // no highlighting so far creole: "text/x-creole", // no highlighting so far wiki: "text/x-wiki", // no highlighting so far mediawiki: "text/x-mediawiki", // no highlighting so far rdoc: "text/x-rdoc", // no highlighting so far builder: "text/x-builder", // no highlighting so far nokogiri: "text/x-nokogiri", // no highlighting so far erb: "application/x-erb" }; var embeddedRegexp = function(map){ var arr = []; for(var key in map) arr.push(key); return new RegExp("^("+arr.join('|')+"):"); }(embedded); var styleMap = { "commentLine": "comment", "slimSwitch": "operator special", "slimTag": "tag", "slimId": "attribute def", "slimClass": "attribute qualifier", "slimAttribute": "attribute", "slimSubmode": "keyword special", "closeAttributeTag": null, "slimDoctype": null, "lineContinuation": null }; var closing = { "{": "}", "[": "]", "(": ")" }; var nameStartChar = "_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD"; var nameChar = nameStartChar + "\\-0-9\xB7\u0300-\u036F\u203F-\u2040"; var nameRegexp = new RegExp("^[:"+nameStartChar+"](?::["+nameChar+"]|["+nameChar+"]*)"); var attributeNameRegexp = new RegExp("^[:"+nameStartChar+"][:\\."+nameChar+"]*(?=\\s*=)"); var wrappedAttributeNameRegexp = new RegExp("^[:"+nameStartChar+"][:\\."+nameChar+"]*"); var classNameRegexp = /^\.-?[_a-zA-Z]+[\w\-]*/; var classIdRegexp = /^#[_a-zA-Z]+[\w\-]*/; function backup(pos, tokenize, style) { var restore = function(stream, state) { state.tokenize = tokenize; if (stream.pos < pos) { stream.pos = pos; return style; } return state.tokenize(stream, state); }; return function(stream, state) { state.tokenize = restore; return tokenize(stream, state); }; } function maybeBackup(stream, state, pat, offset, style) { var cur = stream.current(); var idx = cur.search(pat); if (idx > -1) { state.tokenize = backup(stream.pos, state.tokenize, style); stream.backUp(cur.length - idx - offset); } return style; } function continueLine(state, column) { state.stack = { parent: state.stack, style: "continuation", indented: column, tokenize: state.line }; state.line = state.tokenize; } function finishContinue(state) { if (state.line == state.tokenize) { state.line = state.stack.tokenize; state.stack = state.stack.parent; } } function lineContinuable(column, tokenize) { return function(stream, state) { finishContinue(state); if (stream.match(/^\\$/)) { continueLine(state, column); return "lineContinuation"; } var style = tokenize(stream, state); if (stream.eol() && stream.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)) { stream.backUp(1); } return style; }; } function commaContinuable(column, tokenize) { return function(stream, state) { finishContinue(state); var style = tokenize(stream, state); if (stream.eol() && stream.current().match(/,$/)) { continueLine(state, column); } return style; }; } function rubyInQuote(endQuote, tokenize) { // TODO: add multi line support return function(stream, state) { var ch = stream.peek(); if (ch == endQuote && state.rubyState.tokenize.length == 1) { // step out of ruby context as it seems to complete processing all the braces stream.next(); state.tokenize = tokenize; return "closeAttributeTag"; } else { return ruby(stream, state); } }; } function startRubySplat(tokenize) { var rubyState; var runSplat = function(stream, state) { if (state.rubyState.tokenize.length == 1 && !state.rubyState.context.prev) { stream.backUp(1); if (stream.eatSpace()) { state.rubyState = rubyState; state.tokenize = tokenize; return tokenize(stream, state); } stream.next(); } return ruby(stream, state); }; return function(stream, state) { rubyState = state.rubyState; state.rubyState = CodeMirror.startState(rubyMode); state.tokenize = runSplat; return ruby(stream, state); }; } function ruby(stream, state) { return rubyMode.token(stream, state.rubyState); } function htmlLine(stream, state) { if (stream.match(/^\\$/)) { return "lineContinuation"; } return html(stream, state); } function html(stream, state) { if (stream.match(/^#\{/)) { state.tokenize = rubyInQuote("}", state.tokenize); return null; } return maybeBackup(stream, state, /[^\\]#\{/, 1, htmlMode.token(stream, state.htmlState)); } function startHtmlLine(lastTokenize) { return function(stream, state) { var style = htmlLine(stream, state); if (stream.eol()) state.tokenize = lastTokenize; return style; }; } function startHtmlMode(stream, state, offset) { state.stack = { parent: state.stack, style: "html", indented: stream.column() + offset, // pipe + space tokenize: state.line }; state.line = state.tokenize = html; return null; } function comment(stream, state) { stream.skipToEnd(); return state.stack.style; } function commentMode(stream, state) { state.stack = { parent: state.stack, style: "comment", indented: state.indented + 1, tokenize: state.line }; state.line = comment; return comment(stream, state); } function attributeWrapper(stream, state) { if (stream.eat(state.stack.endQuote)) { state.line = state.stack.line; state.tokenize = state.stack.tokenize; state.stack = state.stack.parent; return null; } if (stream.match(wrappedAttributeNameRegexp)) { state.tokenize = attributeWrapperAssign; return "slimAttribute"; } stream.next(); return null; } function attributeWrapperAssign(stream, state) { if (stream.match(/^==?/)) { state.tokenize = attributeWrapperValue; return null; } return attributeWrapper(stream, state); } function attributeWrapperValue(stream, state) { var ch = stream.peek(); if (ch == '"' || ch == "\'") { state.tokenize = readQuoted(ch, "string", true, false, attributeWrapper); stream.next(); return state.tokenize(stream, state); } if (ch == '[') { return startRubySplat(attributeWrapper)(stream, state); } if (stream.match(/^(true|false|nil)\b/)) { state.tokenize = attributeWrapper; return "keyword"; } return startRubySplat(attributeWrapper)(stream, state); } function startAttributeWrapperMode(state, endQuote, tokenize) { state.stack = { parent: state.stack, style: "wrapper", indented: state.indented + 1, tokenize: tokenize, line: state.line, endQuote: endQuote }; state.line = state.tokenize = attributeWrapper; return null; } function sub(stream, state) { if (stream.match(/^#\{/)) { state.tokenize = rubyInQuote("}", state.tokenize); return null; } var subStream = new CodeMirror.StringStream(stream.string.slice(state.stack.indented), stream.tabSize); subStream.pos = stream.pos - state.stack.indented; subStream.start = stream.start - state.stack.indented; subStream.lastColumnPos = stream.lastColumnPos - state.stack.indented; subStream.lastColumnValue = stream.lastColumnValue - state.stack.indented; var style = state.subMode.token(subStream, state.subState); stream.pos = subStream.pos + state.stack.indented; return style; } function firstSub(stream, state) { state.stack.indented = stream.column(); state.line = state.tokenize = sub; return state.tokenize(stream, state); } function createMode(mode) { var query = embedded[mode]; var spec = CodeMirror.mimeModes[query]; if (spec) { return CodeMirror.getMode(config, spec); } var factory = CodeMirror.modes[query]; if (factory) { return factory(config, {name: query}); } return CodeMirror.getMode(config, "null"); } function getMode(mode) { if (!modes.hasOwnProperty(mode)) { return modes[mode] = createMode(mode); } return modes[mode]; } function startSubMode(mode, state) { var subMode = getMode(mode); var subState = CodeMirror.startState(subMode); state.subMode = subMode; state.subState = subState; state.stack = { parent: state.stack, style: "sub", indented: state.indented + 1, tokenize: state.line }; state.line = state.tokenize = firstSub; return "slimSubmode"; } function doctypeLine(stream, _state) { stream.skipToEnd(); return "slimDoctype"; } function startLine(stream, state) { var ch = stream.peek(); if (ch == '<') { return (state.tokenize = startHtmlLine(state.tokenize))(stream, state); } if (stream.match(/^[|']/)) { return startHtmlMode(stream, state, 1); } if (stream.match(/^\/(!|\[\w+])?/)) { return commentMode(stream, state); } if (stream.match(/^(-|==?[<>]?)/)) { state.tokenize = lineContinuable(stream.column(), commaContinuable(stream.column(), ruby)); return "slimSwitch"; } if (stream.match(/^doctype\b/)) { state.tokenize = doctypeLine; return "keyword"; } var m = stream.match(embeddedRegexp); if (m) { return startSubMode(m[1], state); } return slimTag(stream, state); } function slim(stream, state) { if (state.startOfLine) { return startLine(stream, state); } return slimTag(stream, state); } function slimTag(stream, state) { if (stream.eat('*')) { state.tokenize = startRubySplat(slimTagExtras); return null; } if (stream.match(nameRegexp)) { state.tokenize = slimTagExtras; return "slimTag"; } return slimClass(stream, state); } function slimTagExtras(stream, state) { if (stream.match(/^(<>?|> state.indented && state.last != "slimSubmode") { state.line = state.tokenize = state.stack.tokenize; state.stack = state.stack.parent; state.subMode = null; state.subState = null; } } if (stream.eatSpace()) return null; var style = state.tokenize(stream, state); state.startOfLine = false; if (style) state.last = style; return styleMap.hasOwnProperty(style) ? styleMap[style] : style; }, blankLine: function(state) { if (state.subMode && state.subMode.blankLine) { return state.subMode.blankLine(state.subState); } }, innerMode: function(state) { if (state.subMode) return {state: state.subState, mode: state.subMode}; return {state: state, mode: mode}; } //indent: function(state) { // return state.indented; //} }; return mode; }, "htmlmixed", "ruby"); CodeMirror.defineMIME("text/x-slim", "slim"); CodeMirror.defineMIME("application/x-slim", "slim"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/smalltalk/smalltalk.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('smalltalk', function(config) { var specialChars = /[+\-\/\\*~<>=@%|&?!.,:;^]/; var keywords = /true|false|nil|self|super|thisContext/; var Context = function(tokenizer, parent) { this.next = tokenizer; this.parent = parent; }; var Token = function(name, context, eos) { this.name = name; this.context = context; this.eos = eos; }; var State = function() { this.context = new Context(next, null); this.expectVariable = true; this.indentation = 0; this.userIndentationDelta = 0; }; State.prototype.userIndent = function(indentation) { this.userIndentationDelta = indentation > 0 ? (indentation / config.indentUnit - this.indentation) : 0; }; var next = function(stream, context, state) { var token = new Token(null, context, false); var aChar = stream.next(); if (aChar === '"') { token = nextComment(stream, new Context(nextComment, context)); } else if (aChar === '\'') { token = nextString(stream, new Context(nextString, context)); } else if (aChar === '#') { if (stream.peek() === '\'') { stream.next(); token = nextSymbol(stream, new Context(nextSymbol, context)); } else { if (stream.eatWhile(/[^\s.{}\[\]()]/)) token.name = 'string-2'; else token.name = 'meta'; } } else if (aChar === '$') { if (stream.next() === '<') { stream.eatWhile(/[^\s>]/); stream.next(); } token.name = 'string-2'; } else if (aChar === '|' && state.expectVariable) { token.context = new Context(nextTemporaries, context); } else if (/[\[\]{}()]/.test(aChar)) { token.name = 'bracket'; token.eos = /[\[{(]/.test(aChar); if (aChar === '[') { state.indentation++; } else if (aChar === ']') { state.indentation = Math.max(0, state.indentation - 1); } } else if (specialChars.test(aChar)) { stream.eatWhile(specialChars); token.name = 'operator'; token.eos = aChar !== ';'; // ; cascaded message expression } else if (/\d/.test(aChar)) { stream.eatWhile(/[\w\d]/); token.name = 'number'; } else if (/[\w_]/.test(aChar)) { stream.eatWhile(/[\w\d_]/); token.name = state.expectVariable ? (keywords.test(stream.current()) ? 'keyword' : 'variable') : null; } else { token.eos = state.expectVariable; } return token; }; var nextComment = function(stream, context) { stream.eatWhile(/[^"]/); return new Token('comment', stream.eat('"') ? context.parent : context, true); }; var nextString = function(stream, context) { stream.eatWhile(/[^']/); return new Token('string', stream.eat('\'') ? context.parent : context, false); }; var nextSymbol = function(stream, context) { stream.eatWhile(/[^']/); return new Token('string-2', stream.eat('\'') ? context.parent : context, false); }; var nextTemporaries = function(stream, context) { var token = new Token(null, context, false); var aChar = stream.next(); if (aChar === '|') { token.context = context.parent; token.eos = true; } else { stream.eatWhile(/[^|]/); token.name = 'variable'; } return token; }; return { startState: function() { return new State; }, token: function(stream, state) { state.userIndent(stream.indentation()); if (stream.eatSpace()) { return null; } var token = state.context.next(stream, state.context, state); state.context = token.context; state.expectVariable = token.eos; return token.name; }, blankLine: function(state) { state.userIndent(0); }, indent: function(state, textAfter) { var i = state.context.next === next && textAfter && textAfter.charAt(0) === ']' ? -1 : state.userIndentationDelta; return (state.indentation + i) * config.indentUnit; }, electricChars: ']' }; }); CodeMirror.defineMIME('text/x-stsrc', {name: 'smalltalk'}); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/smarty/smarty.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /** * Smarty 2 and 3 mode. */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("smarty", function(config, parserConf) { var rightDelimiter = parserConf.rightDelimiter || "}"; var leftDelimiter = parserConf.leftDelimiter || "{"; var version = parserConf.version || 2; var baseMode = CodeMirror.getMode(config, parserConf.baseMode || "null"); var keyFunctions = ["debug", "extends", "function", "include", "literal"]; var regs = { operatorChars: /[+\-*&%=<>!?]/, validIdentifier: /[a-zA-Z0-9_]/, stringChar: /['"]/ }; var last; function cont(style, lastType) { last = lastType; return style; } function chain(stream, state, parser) { state.tokenize = parser; return parser(stream, state); } // Smarty 3 allows { and } surrounded by whitespace to NOT slip into Smarty mode function doesNotCount(stream, pos) { if (pos == null) pos = stream.pos; return version === 3 && leftDelimiter == "{" && (pos == stream.string.length || /\s/.test(stream.string.charAt(pos))); } function tokenTop(stream, state) { var string = stream.string; for (var scan = stream.pos;;) { var nextMatch = string.indexOf(leftDelimiter, scan); scan = nextMatch + leftDelimiter.length; if (nextMatch == -1 || !doesNotCount(stream, nextMatch + leftDelimiter.length)) break; } if (nextMatch == stream.pos) { stream.match(leftDelimiter); if (stream.eat("*")) { return chain(stream, state, tokenBlock("comment", "*" + rightDelimiter)); } else { state.depth++; state.tokenize = tokenSmarty; last = "startTag"; return "tag"; } } if (nextMatch > -1) stream.string = string.slice(0, nextMatch); var token = baseMode.token(stream, state.base); if (nextMatch > -1) stream.string = string; return token; } // parsing Smarty content function tokenSmarty(stream, state) { if (stream.match(rightDelimiter, true)) { if (version === 3) { state.depth--; if (state.depth <= 0) { state.tokenize = tokenTop; } } else { state.tokenize = tokenTop; } return cont("tag", null); } if (stream.match(leftDelimiter, true)) { state.depth++; return cont("tag", "startTag"); } var ch = stream.next(); if (ch == "$") { stream.eatWhile(regs.validIdentifier); return cont("variable-2", "variable"); } else if (ch == "|") { return cont("operator", "pipe"); } else if (ch == ".") { return cont("operator", "property"); } else if (regs.stringChar.test(ch)) { state.tokenize = tokenAttribute(ch); return cont("string", "string"); } else if (regs.operatorChars.test(ch)) { stream.eatWhile(regs.operatorChars); return cont("operator", "operator"); } else if (ch == "[" || ch == "]") { return cont("bracket", "bracket"); } else if (ch == "(" || ch == ")") { return cont("bracket", "operator"); } else if (/\d/.test(ch)) { stream.eatWhile(/\d/); return cont("number", "number"); } else { if (state.last == "variable") { if (ch == "@") { stream.eatWhile(regs.validIdentifier); return cont("property", "property"); } else if (ch == "|") { stream.eatWhile(regs.validIdentifier); return cont("qualifier", "modifier"); } } else if (state.last == "pipe") { stream.eatWhile(regs.validIdentifier); return cont("qualifier", "modifier"); } else if (state.last == "whitespace") { stream.eatWhile(regs.validIdentifier); return cont("attribute", "modifier"); } if (state.last == "property") { stream.eatWhile(regs.validIdentifier); return cont("property", null); } else if (/\s/.test(ch)) { last = "whitespace"; return null; } var str = ""; if (ch != "/") { str += ch; } var c = null; while (c = stream.eat(regs.validIdentifier)) { str += c; } for (var i=0, j=keyFunctions.length; i]=?)/)) { // Tokenize filter, binary, null propagator, and equality operators. return "operator"; } else if (match = stream.match(/^\$([\w]+)/)) { return ref(state.variables, match[1], !state.lookupVariables); } else if (match = stream.match(/^\w+/)) { return /^(?:as|and|or|not|in|if)$/.test(match[0]) ? "keyword" : null; } stream.next(); return null; } return { startState: function() { return { soyState: [], variables: prepend(null, 'ij'), scopes: null, indent: 0, quoteKind: null, context: null, lookupVariables: true, // Is unknown variables considered an error localStates: [{ mode: modes.html, state: CodeMirror.startState(modes.html) }] }; }, copyState: function(state) { return { tag: state.tag, // Last seen Soy tag. soyState: state.soyState.concat([]), variables: state.variables, context: state.context, indent: state.indent, // Indentation of the following line. quoteKind: state.quoteKind, lookupVariables: state.lookupVariables, localStates: state.localStates.map(function(localState) { return { mode: localState.mode, state: CodeMirror.copyState(localState.mode, localState.state) }; }) }; }, token: function(stream, state) { var match; switch (last(state.soyState)) { case "comment": if (stream.match(/^.*?\*\//)) { state.soyState.pop(); } else { stream.skipToEnd(); } if (!state.context || !state.context.scope) { var paramRe = /@param\??\s+(\S+)/g; var current = stream.current(); for (var match; (match = paramRe.exec(current)); ) { state.variables = prepend(state.variables, match[1]); } } return "comment"; case "string": var match = stream.match(/^.*?(["']|\\[\s\S])/); if (!match) { stream.skipToEnd(); } else if (match[1] == state.quoteKind) { state.quoteKind = null; state.soyState.pop(); } return "string"; } if (!state.soyState.length || last(state.soyState) != "literal") { if (stream.match(/^\/\*/)) { state.soyState.push("comment"); return "comment"; } else if (stream.match(stream.sol() ? /^\s*\/\/.*/ : /^\s+\/\/.*/)) { return "comment"; } } switch (last(state.soyState)) { case "templ-def": if (match = stream.match(/^\.?([\w]+(?!\.[\w]+)*)/)) { state.soyState.pop(); return "def"; } stream.next(); return null; case "templ-ref": if (match = stream.match(/(\.?[a-zA-Z_][a-zA-Z_0-9]+)+/)) { state.soyState.pop(); // If the first character is '.', it can only be a local template. if (match[0][0] == '.') { return "variable-2" } // Otherwise return "variable"; } if (match = stream.match(/^\$([\w]+)/)) { state.soyState.pop(); return ref(state.variables, match[1], !state.lookupVariables); } stream.next(); return null; case "namespace-def": if (match = stream.match(/^\.?([\w\.]+)/)) { state.soyState.pop(); return "variable"; } stream.next(); return null; case "param-def": if (match = stream.match(/^\*/)) { state.soyState.pop(); state.soyState.push("param-type"); return "type"; } if (match = stream.match(/^\w+/)) { state.variables = prepend(state.variables, match[0]); state.soyState.pop(); state.soyState.push("param-type"); return "def"; } stream.next(); return null; case "param-ref": if (match = stream.match(/^\w+/)) { state.soyState.pop(); return "property"; } stream.next(); return null; case "open-parentheses": if (stream.match(/[)]/)) { state.soyState.pop(); return null; } return expression(stream, state); case "param-type": var peekChar = stream.peek(); if ("}]=>,".indexOf(peekChar) != -1) { state.soyState.pop(); return null; } else if (peekChar == "[") { state.soyState.push('param-type-record'); return null; } else if (peekChar == "(") { state.soyState.push('param-type-template'); return null; } else if (peekChar == "<") { state.soyState.push('param-type-parameter'); return null; } else if (match = stream.match(/^([\w]+|[?])/)) { return "type"; } stream.next(); return null; case "param-type-record": var peekChar = stream.peek(); if (peekChar == "]") { state.soyState.pop(); return null; } if (stream.match(/^\w+/)) { state.soyState.push('param-type'); return "property"; } stream.next(); return null; case "param-type-parameter": if (stream.match(/^[>]/)) { state.soyState.pop(); return null; } if (stream.match(/^[<,]/)) { state.soyState.push('param-type'); return null; } stream.next(); return null; case "param-type-template": if (stream.match(/[>]/)) { state.soyState.pop(); state.soyState.push('param-type'); return null; } if (stream.match(/^\w+/)) { state.soyState.push('param-type'); return "def"; } stream.next(); return null; case "var-def": if (match = stream.match(/^\$([\w]+)/)) { state.variables = prepend(state.variables, match[1]); state.soyState.pop(); return "def"; } stream.next(); return null; case "for-loop": if (stream.match(/\bin\b/)) { state.soyState.pop(); return "keyword"; } if (stream.peek() == "$") { state.soyState.push('var-def'); return null; } stream.next(); return null; case "record-literal": if (stream.match(/^[)]/)) { state.soyState.pop(); return null; } if (stream.match(/[(,]/)) { state.soyState.push("map-value") state.soyState.push("record-key") return null; } stream.next() return null; case "map-literal": if (stream.match(/^[)]/)) { state.soyState.pop(); return null; } if (stream.match(/[(,]/)) { state.soyState.push("map-value") state.soyState.push("map-value") return null; } stream.next() return null; case "list-literal": if (stream.match(']')) { state.soyState.pop(); state.lookupVariables = true; popcontext(state); return null; } if (stream.match(/\bfor\b/)) { state.lookupVariables = true; state.soyState.push('for-loop'); return "keyword"; } return expression(stream, state); case "record-key": if (stream.match(/[\w]+/)) { return "property"; } if (stream.match(/^[:]/)) { state.soyState.pop(); return null; } stream.next(); return null; case "map-value": if (stream.peek() == ")" || stream.peek() == "," || stream.match(/^[:)]/)) { state.soyState.pop(); return null; } return expression(stream, state); case "import": if (stream.eat(";")) { state.soyState.pop(); state.indent -= 2 * config.indentUnit; return null; } if (stream.match(/\w+(?=\s+as\b)/)) { return "variable"; } if (match = stream.match(/\w+/)) { return /\b(from|as)\b/.test(match[0]) ? "keyword" : "def"; } if (match = stream.match(/^["']/)) { state.soyState.push("string"); state.quoteKind = match[0]; return "string"; } stream.next(); return null; case "tag": var endTag; var tagName; if (state.tag === undefined) { endTag = true; tagName = ''; } else { endTag = state.tag[0] == "/"; tagName = endTag ? state.tag.substring(1) : state.tag; } var tag = tags[tagName]; if (stream.match(/^\/?}/)) { var selfClosed = stream.current() == "/}"; if (selfClosed && !endTag) { popcontext(state); } if (state.tag == "/template" || state.tag == "/deltemplate") { state.variables = prepend(null, 'ij'); state.indent = 0; } else { state.indent -= config.indentUnit * (selfClosed || indentingTags.indexOf(state.tag) == -1 ? 2 : 1); } state.soyState.pop(); return "keyword"; } else if (stream.match(/^([\w?]+)(?==)/)) { if (state.context && state.context.tag == tagName && stream.current() == "kind" && (match = stream.match(/^="([^"]+)/, false))) { var kind = match[1]; state.context.kind = kind; var mode = modes[kind] || modes.html; var localState = last(state.localStates); if (localState.mode.indent) { state.indent += localState.mode.indent(localState.state, "", ""); } state.localStates.push({ mode: mode, state: CodeMirror.startState(mode) }); } return "attribute"; } return expression(stream, state); case "template-call-expression": if (stream.match(/^([\w-?]+)(?==)/)) { return "attribute"; } else if (stream.eat('>')) { state.soyState.pop(); return "keyword"; } else if (stream.eat('/>')) { state.soyState.pop(); return "keyword"; } return expression(stream, state); case "literal": if (stream.match('{/literal}', false)) { state.soyState.pop(); return this.token(stream, state); } return tokenUntil(stream, state, /\{\/literal}/); case "export": if (match = stream.match(/\w+/)) { state.soyState.pop(); if (match == "const") { state.soyState.push("const-def") return "keyword"; } else if (match == "extern") { state.soyState.push("param-def") return "keyword"; } } else { stream.next(); } return null; case "const-def": if (stream.match(/^\w+/)) { state.soyState.pop(); return "def"; } stream.next(); return null; } if (stream.match('{literal}')) { state.indent += config.indentUnit; state.soyState.push("literal"); state.context = new Context(state.context, "literal", state.variables); return "keyword"; // A tag-keyword must be followed by whitespace, comment or a closing tag. } else if (match = stream.match(/^\{([/@\\]?\w+\??)(?=$|[\s}]|\/[/*])/)) { var prevTag = state.tag; state.tag = match[1]; var endTag = state.tag[0] == "/"; var indentingTag = !!tags[state.tag]; var tagName = endTag ? state.tag.substring(1) : state.tag; var tag = tags[tagName]; if (state.tag != "/switch") state.indent += ((endTag || tag && tag.reduceIndent) && prevTag != "switch" ? 1 : 2) * config.indentUnit; state.soyState.push("tag"); var tagError = false; if (tag) { if (!endTag) { if (tag.soyState) state.soyState.push(tag.soyState); } // If a new tag, open a new context. if (!tag.noEndTag && (indentingTag || !endTag)) { state.context = new Context(state.context, state.tag, tag.variableScope ? state.variables : null); // Otherwise close the current context. } else if (endTag) { var isBalancedForExtern = tagName == 'extern' && (state.context && state.context.tag == 'export'); if (!state.context || ((state.context.tag != tagName) && !isBalancedForExtern)) { tagError = true; } else if (state.context) { if (state.context.kind) { state.localStates.pop(); var localState = last(state.localStates); if (localState.mode.indent) { state.indent -= localState.mode.indent(localState.state, "", ""); } } popcontext(state); } } } else if (endTag) { // Assume all tags with a closing tag are defined in the config. tagError = true; } return (tagError ? "error " : "") + "keyword"; // Not a tag-keyword; it's an implicit print tag. } else if (stream.eat('{')) { state.tag = "print"; state.indent += 2 * config.indentUnit; state.soyState.push("tag"); return "keyword"; } else if (!state.context && stream.sol() && stream.match(/import\b/)) { state.soyState.push("import"); state.indent += 2 * config.indentUnit; return "keyword"; } else if (match = stream.match('<{')) { state.soyState.push("template-call-expression"); state.indent += 2 * config.indentUnit; state.soyState.push("tag"); return "keyword"; } else if (match = stream.match('')) { state.indent -= 1 * config.indentUnit; return "keyword"; } return tokenUntil(stream, state, /\{|\s+\/\/|\/\*/); }, indent: function(state, textAfter, line) { var indent = state.indent, top = last(state.soyState); if (top == "comment") return CodeMirror.Pass; if (top == "literal") { if (/^\{\/literal}/.test(textAfter)) indent -= config.indentUnit; } else { if (/^\s*\{\/(template|deltemplate)\b/.test(textAfter)) return 0; if (/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(textAfter)) indent -= config.indentUnit; if (state.tag != "switch" && /^\{(case|default)\b/.test(textAfter)) indent -= config.indentUnit; if (/^\{\/switch\b/.test(textAfter)) indent -= config.indentUnit; } var localState = last(state.localStates); if (indent && localState.mode.indent) { indent += localState.mode.indent(localState.state, textAfter, line); } return indent; }, innerMode: function(state) { if (state.soyState.length && last(state.soyState) != "literal") return null; else return last(state.localStates); }, electricInput: /^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/, lineComment: "//", blockCommentStart: "/*", blockCommentEnd: "*/", blockCommentContinue: " * ", useInnerComments: false, fold: "indent" }; }, "htmlmixed"); CodeMirror.registerHelper("wordChars", "soy", /[\w$]/); CodeMirror.registerHelper("hintWords", "soy", Object.keys(tags).concat( ["css", "debugger"])); CodeMirror.defineMIME("text/x-soy", "soy"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/sparql/sparql.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("sparql", function(config) { var indentUnit = config.indentUnit; var curPunc; function wordRegexp(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); } var ops = wordRegexp(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri", "iri", "uri", "bnode", "count", "sum", "min", "max", "avg", "sample", "group_concat", "rand", "abs", "ceil", "floor", "round", "concat", "substr", "strlen", "replace", "ucase", "lcase", "encode_for_uri", "contains", "strstarts", "strends", "strbefore", "strafter", "year", "month", "day", "hours", "minutes", "seconds", "timezone", "tz", "now", "uuid", "struuid", "md5", "sha1", "sha256", "sha384", "sha512", "coalesce", "if", "strlang", "strdt", "isnumeric", "regex", "exists", "isblank", "isliteral", "a", "bind"]); var keywords = wordRegexp(["base", "prefix", "select", "distinct", "reduced", "construct", "describe", "ask", "from", "named", "where", "order", "limit", "offset", "filter", "optional", "graph", "by", "asc", "desc", "as", "having", "undef", "values", "group", "minus", "in", "not", "service", "silent", "using", "insert", "delete", "union", "true", "false", "with", "data", "copy", "to", "move", "add", "create", "drop", "clear", "load", "into"]); var operatorChars = /[*+\-<>=&|\^\/!\?]/; function tokenBase(stream, state) { var ch = stream.next(); curPunc = null; if (ch == "$" || ch == "?") { if(ch == "?" && stream.match(/\s/, false)){ return "operator"; } stream.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/); return "variable-2"; } else if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) { stream.match(/^[^\s\u00a0>]*>?/); return "atom"; } else if (ch == "\"" || ch == "'") { state.tokenize = tokenLiteral(ch); return state.tokenize(stream, state); } else if (/[{}\(\),\.;\[\]]/.test(ch)) { curPunc = ch; return "bracket"; } else if (ch == "#") { stream.skipToEnd(); return "comment"; } else if (operatorChars.test(ch)) { return "operator"; } else if (ch == ":") { eatPnLocal(stream); return "atom"; } else if (ch == "@") { stream.eatWhile(/[a-z\d\-]/i); return "meta"; } else { stream.eatWhile(/[_\w\d]/); if (stream.eat(":")) { eatPnLocal(stream); return "atom"; } var word = stream.current(); if (ops.test(word)) return "builtin"; else if (keywords.test(word)) return "keyword"; else return "variable"; } } function eatPnLocal(stream) { stream.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i); } function tokenLiteral(quote) { return function(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == quote && !escaped) { state.tokenize = tokenBase; break; } escaped = !escaped && ch == "\\"; } return "string"; }; } function pushContext(state, type, col) { state.context = {prev: state.context, indent: state.indent, col: col, type: type}; } function popContext(state) { state.indent = state.context.indent; state.context = state.context.prev; } return { startState: function() { return {tokenize: tokenBase, context: null, indent: 0, col: 0}; }, token: function(stream, state) { if (stream.sol()) { if (state.context && state.context.align == null) state.context.align = false; state.indent = stream.indentation(); } if (stream.eatSpace()) return null; var style = state.tokenize(stream, state); if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") { state.context.align = true; } if (curPunc == "(") pushContext(state, ")", stream.column()); else if (curPunc == "[") pushContext(state, "]", stream.column()); else if (curPunc == "{") pushContext(state, "}", stream.column()); else if (/[\]\}\)]/.test(curPunc)) { while (state.context && state.context.type == "pattern") popContext(state); if (state.context && curPunc == state.context.type) { popContext(state); if (curPunc == "}" && state.context && state.context.type == "pattern") popContext(state); } } else if (curPunc == "." && state.context && state.context.type == "pattern") popContext(state); else if (/atom|string|variable/.test(style) && state.context) { if (/[\}\]]/.test(state.context.type)) pushContext(state, "pattern", stream.column()); else if (state.context.type == "pattern" && !state.context.align) { state.context.align = true; state.context.col = stream.column(); } } return style; }, indent: function(state, textAfter) { var firstChar = textAfter && textAfter.charAt(0); var context = state.context; if (/[\]\}]/.test(firstChar)) while (context && context.type == "pattern") context = context.prev; var closing = context && firstChar == context.type; if (!context) return 0; else if (context.type == "pattern") return context.col; else if (context.align) return context.col + (closing ? 0 : 1); else return context.indent + (closing ? 0 : indentUnit); }, lineComment: "#" }; }); CodeMirror.defineMIME("application/sparql-query", "sparql"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/spreadsheet/spreadsheet.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("spreadsheet", function () { return { startState: function () { return { stringType: null, stack: [] }; }, token: function (stream, state) { if (!stream) return; //check for state changes if (state.stack.length === 0) { //strings if ((stream.peek() == '"') || (stream.peek() == "'")) { state.stringType = stream.peek(); stream.next(); // Skip quote state.stack.unshift("string"); } } //return state //stack has switch (state.stack[0]) { case "string": while (state.stack[0] === "string" && !stream.eol()) { if (stream.peek() === state.stringType) { stream.next(); // Skip quote state.stack.shift(); // Clear flag } else if (stream.peek() === "\\") { stream.next(); stream.next(); } else { stream.match(/^.[^\\\"\']*/); } } return "string"; case "characterClass": while (state.stack[0] === "characterClass" && !stream.eol()) { if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./))) state.stack.shift(); } return "operator"; } var peek = stream.peek(); //no stack switch (peek) { case "[": stream.next(); state.stack.unshift("characterClass"); return "bracket"; case ":": stream.next(); return "operator"; case "\\": if (stream.match(/\\[a-z]+/)) return "string-2"; else { stream.next(); return "atom"; } case ".": case ",": case ";": case "*": case "-": case "+": case "^": case "<": case "/": case "=": stream.next(); return "atom"; case "$": stream.next(); return "builtin"; } if (stream.match(/\d+/)) { if (stream.match(/^\w+/)) return "error"; return "number"; } else if (stream.match(/^[a-zA-Z_]\w*/)) { if (stream.match(/(?=[\(.])/, false)) return "keyword"; return "variable-2"; } else if (["[", "]", "(", ")", "{", "}"].indexOf(peek) != -1) { stream.next(); return "bracket"; } else if (!stream.eatSpace()) { stream.next(); } return null; } }; }); CodeMirror.defineMIME("text/x-spreadsheet", "spreadsheet"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/sql/sql.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("sql", function(config, parserConfig) { var client = parserConfig.client || {}, atoms = parserConfig.atoms || {"false": true, "true": true, "null": true}, builtin = parserConfig.builtin || set(defaultBuiltin), keywords = parserConfig.keywords || set(sqlKeywords), operatorChars = parserConfig.operatorChars || /^[*+\-%<>!=&|~^\/]/, support = parserConfig.support || {}, hooks = parserConfig.hooks || {}, dateSQL = parserConfig.dateSQL || {"date" : true, "time" : true, "timestamp" : true}, backslashStringEscapes = parserConfig.backslashStringEscapes !== false, brackets = parserConfig.brackets || /^[\{}\(\)\[\]]/, punctuation = parserConfig.punctuation || /^[;.,:]/ function tokenBase(stream, state) { var ch = stream.next(); // call hooks from the mime type if (hooks[ch]) { var result = hooks[ch](stream, state); if (result !== false) return result; } if (support.hexNumber && ((ch == "0" && stream.match(/^[xX][0-9a-fA-F]+/)) || (ch == "x" || ch == "X") && stream.match(/^'[0-9a-fA-F]*'/))) { // hex // ref: https://dev.mysql.com/doc/refman/8.0/en/hexadecimal-literals.html return "number"; } else if (support.binaryNumber && (((ch == "b" || ch == "B") && stream.match(/^'[01]*'/)) || (ch == "0" && stream.match(/^b[01]+/)))) { // bitstring // ref: https://dev.mysql.com/doc/refman/8.0/en/bit-value-literals.html return "number"; } else if (ch.charCodeAt(0) > 47 && ch.charCodeAt(0) < 58) { // numbers // ref: https://dev.mysql.com/doc/refman/8.0/en/number-literals.html stream.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/); support.decimallessFloat && stream.match(/^\.(?!\.)/); return "number"; } else if (ch == "?" && (stream.eatSpace() || stream.eol() || stream.eat(";"))) { // placeholders return "variable-3"; } else if (ch == "'" || (ch == '"' && support.doubleQuote)) { // strings // ref: https://dev.mysql.com/doc/refman/8.0/en/string-literals.html state.tokenize = tokenLiteral(ch); return state.tokenize(stream, state); } else if ((((support.nCharCast && (ch == "n" || ch == "N")) || (support.charsetCast && ch == "_" && stream.match(/[a-z][a-z0-9]*/i))) && (stream.peek() == "'" || stream.peek() == '"'))) { // charset casting: _utf8'str', N'str', n'str' // ref: https://dev.mysql.com/doc/refman/8.0/en/string-literals.html return "keyword"; } else if (support.escapeConstant && (ch == "e" || ch == "E") && (stream.peek() == "'" || (stream.peek() == '"' && support.doubleQuote))) { // escape constant: E'str', e'str' // ref: https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS-ESCAPE state.tokenize = function(stream, state) { return (state.tokenize = tokenLiteral(stream.next(), true))(stream, state); } return "keyword"; } else if (support.commentSlashSlash && ch == "/" && stream.eat("/")) { // 1-line comment stream.skipToEnd(); return "comment"; } else if ((support.commentHash && ch == "#") || (ch == "-" && stream.eat("-") && (!support.commentSpaceRequired || stream.eat(" ")))) { // 1-line comments // ref: https://kb.askmonty.org/en/comment-syntax/ stream.skipToEnd(); return "comment"; } else if (ch == "/" && stream.eat("*")) { // multi-line comments // ref: https://kb.askmonty.org/en/comment-syntax/ state.tokenize = tokenComment(1); return state.tokenize(stream, state); } else if (ch == ".") { // .1 for 0.1 if (support.zerolessFloat && stream.match(/^(?:\d+(?:e[+-]?\d+)?)/i)) return "number"; if (stream.match(/^\.+/)) return null // .table_name (ODBC) // // ref: https://dev.mysql.com/doc/refman/8.0/en/identifier-qualifiers.html if (support.ODBCdotTable && stream.match(/^[\w\d_$#]+/)) return "variable-2"; } else if (operatorChars.test(ch)) { // operators stream.eatWhile(operatorChars); return "operator"; } else if (brackets.test(ch)) { // brackets return "bracket"; } else if (punctuation.test(ch)) { // punctuation stream.eatWhile(punctuation); return "punctuation"; } else if (ch == '{' && (stream.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/) || stream.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/))) { // dates (weird ODBC syntax) // ref: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-literals.html return "number"; } else { stream.eatWhile(/^[_\w\d]/); var word = stream.current().toLowerCase(); // dates (standard SQL syntax) // ref: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-literals.html if (dateSQL.hasOwnProperty(word) && (stream.match(/^( )+'[^']*'/) || stream.match(/^( )+"[^"]*"/))) return "number"; if (atoms.hasOwnProperty(word)) return "atom"; if (builtin.hasOwnProperty(word)) return "type"; if (keywords.hasOwnProperty(word)) return "keyword"; if (client.hasOwnProperty(word)) return "builtin"; return null; } } // 'string', with char specified in quote escaped by '\' function tokenLiteral(quote, backslashEscapes) { return function(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == quote && !escaped) { state.tokenize = tokenBase; break; } escaped = (backslashStringEscapes || backslashEscapes) && !escaped && ch == "\\"; } return "string"; }; } function tokenComment(depth) { return function(stream, state) { var m = stream.match(/^.*?(\/\*|\*\/)/) if (!m) stream.skipToEnd() else if (m[1] == "/*") state.tokenize = tokenComment(depth + 1) else if (depth > 1) state.tokenize = tokenComment(depth - 1) else state.tokenize = tokenBase return "comment" } } function pushContext(stream, state, type) { state.context = { prev: state.context, indent: stream.indentation(), col: stream.column(), type: type }; } function popContext(state) { state.indent = state.context.indent; state.context = state.context.prev; } return { startState: function() { return {tokenize: tokenBase, context: null}; }, token: function(stream, state) { if (stream.sol()) { if (state.context && state.context.align == null) state.context.align = false; } if (state.tokenize == tokenBase && stream.eatSpace()) return null; var style = state.tokenize(stream, state); if (style == "comment") return style; if (state.context && state.context.align == null) state.context.align = true; var tok = stream.current(); if (tok == "(") pushContext(stream, state, ")"); else if (tok == "[") pushContext(stream, state, "]"); else if (state.context && state.context.type == tok) popContext(state); return style; }, indent: function(state, textAfter) { var cx = state.context; if (!cx) return CodeMirror.Pass; var closing = textAfter.charAt(0) == cx.type; if (cx.align) return cx.col + (closing ? 0 : 1); else return cx.indent + (closing ? 0 : config.indentUnit); }, blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: support.commentSlashSlash ? "//" : support.commentHash ? "#" : "--", closeBrackets: "()[]{}''\"\"``" }; }); // `identifier` function hookIdentifier(stream) { // MySQL/MariaDB identifiers // ref: https://dev.mysql.com/doc/refman/8.0/en/identifier-qualifiers.html var ch; while ((ch = stream.next()) != null) { if (ch == "`" && !stream.eat("`")) return "variable-2"; } stream.backUp(stream.current().length - 1); return stream.eatWhile(/\w/) ? "variable-2" : null; } // "identifier" function hookIdentifierDoublequote(stream) { // Standard SQL /SQLite identifiers // ref: http://web.archive.org/web/20160813185132/http://savage.net.au/SQL/sql-99.bnf.html#delimited%20identifier // ref: http://sqlite.org/lang_keywords.html var ch; while ((ch = stream.next()) != null) { if (ch == "\"" && !stream.eat("\"")) return "variable-2"; } stream.backUp(stream.current().length - 1); return stream.eatWhile(/\w/) ? "variable-2" : null; } // variable token function hookVar(stream) { // variables // @@prefix.varName @varName // varName can be quoted with ` or ' or " // ref: https://dev.mysql.com/doc/refman/8.0/en/user-variables.html if (stream.eat("@")) { stream.match('session.'); stream.match('local.'); stream.match('global.'); } if (stream.eat("'")) { stream.match(/^.*'/); return "variable-2"; } else if (stream.eat('"')) { stream.match(/^.*"/); return "variable-2"; } else if (stream.eat("`")) { stream.match(/^.*`/); return "variable-2"; } else if (stream.match(/^[0-9a-zA-Z$\.\_]+/)) { return "variable-2"; } return null; }; // short client keyword token function hookClient(stream) { // \N means NULL // ref: https://dev.mysql.com/doc/refman/8.0/en/null-values.html if (stream.eat("N")) { return "atom"; } // \g, etc // ref: https://dev.mysql.com/doc/refman/8.0/en/mysql-commands.html return stream.match(/^[a-zA-Z.#!?]/) ? "variable-2" : null; } // these keywords are used by all SQL dialects (however, a mode can still overwrite it) var sqlKeywords = "alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit "; // turn a space-separated list into an array function set(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var defaultBuiltin = "bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric" // A generic SQL Mode. It's not a standard, it just tries to support what is generally supported CodeMirror.defineMIME("text/x-sql", { name: "sql", keywords: set(sqlKeywords + "begin"), builtin: set(defaultBuiltin), atoms: set("false true null unknown"), dateSQL: set("date time timestamp"), support: set("ODBCdotTable doubleQuote binaryNumber hexNumber") }); CodeMirror.defineMIME("text/x-mssql", { name: "sql", client: set("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"), keywords: set(sqlKeywords + "begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"), builtin: set("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "), atoms: set("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"), operatorChars: /^[*+\-%<>!=^\&|\/]/, brackets: /^[\{}\(\)]/, punctuation: /^[;.,:/]/, backslashStringEscapes: false, dateSQL: set("date datetimeoffset datetime2 smalldatetime datetime time"), hooks: { "@": hookVar } }); CodeMirror.defineMIME("text/x-mysql", { name: "sql", client: set("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"), keywords: set(sqlKeywords + "accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"), builtin: set("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"), atoms: set("false true null unknown"), operatorChars: /^[*+\-%<>!=&|^]/, dateSQL: set("date time timestamp"), support: set("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"), hooks: { "@": hookVar, "`": hookIdentifier, "\\": hookClient } }); CodeMirror.defineMIME("text/x-mariadb", { name: "sql", client: set("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"), keywords: set(sqlKeywords + "accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"), builtin: set("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"), atoms: set("false true null unknown"), operatorChars: /^[*+\-%<>!=&|^]/, dateSQL: set("date time timestamp"), support: set("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"), hooks: { "@": hookVar, "`": hookIdentifier, "\\": hookClient } }); // provided by the phpLiteAdmin project - phpliteadmin.org CodeMirror.defineMIME("text/x-sqlite", { name: "sql", // commands of the official SQLite client, ref: https://www.sqlite.org/cli.html#dotcmd client: set("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"), // ref: http://sqlite.org/lang_keywords.html keywords: set(sqlKeywords + "abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"), // SQLite is weakly typed, ref: http://sqlite.org/datatype3.html. This is just a list of some common types. builtin: set("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"), // ref: http://sqlite.org/syntax/literal-value.html atoms: set("null current_date current_time current_timestamp"), // ref: http://sqlite.org/lang_expr.html#binaryops operatorChars: /^[*+\-%<>!=&|/~]/, // SQLite is weakly typed, ref: http://sqlite.org/datatype3.html. This is just a list of some common types. dateSQL: set("date time timestamp datetime"), support: set("decimallessFloat zerolessFloat"), identifierQuote: "\"", //ref: http://sqlite.org/lang_keywords.html hooks: { // bind-parameters ref:http://sqlite.org/lang_expr.html#varparam "@": hookVar, ":": hookVar, "?": hookVar, "$": hookVar, // The preferred way to escape Identifiers is using double quotes, ref: http://sqlite.org/lang_keywords.html "\"": hookIdentifierDoublequote, // there is also support for backticks, ref: http://sqlite.org/lang_keywords.html "`": hookIdentifier } }); // the query language used by Apache Cassandra is called CQL, but this mime type // is called Cassandra to avoid confusion with Contextual Query Language CodeMirror.defineMIME("text/x-cassandra", { name: "sql", client: { }, keywords: set("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"), builtin: set("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"), atoms: set("false true infinity NaN"), operatorChars: /^[<>=]/, dateSQL: { }, support: set("commentSlashSlash decimallessFloat"), hooks: { } }); // this is based on Peter Raganitsch's 'plsql' mode CodeMirror.defineMIME("text/x-plsql", { name: "sql", client: set("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"), keywords: set("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"), builtin: set("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"), operatorChars: /^[*\/+\-%<>!=~]/, dateSQL: set("date time timestamp"), support: set("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber") }); // Created to support specific hive keywords CodeMirror.defineMIME("text/x-hive", { name: "sql", keywords: set("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"), builtin: set("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"), atoms: set("false true null unknown"), operatorChars: /^[*+\-%<>!=]/, dateSQL: set("date timestamp"), support: set("ODBCdotTable doubleQuote binaryNumber hexNumber") }); CodeMirror.defineMIME("text/x-pgsql", { name: "sql", client: set("source"), // For PostgreSQL - https://www.postgresql.org/docs/11/sql-keywords-appendix.html // For pl/pgsql lang - https://github.com/postgres/postgres/blob/REL_11_2/src/pl/plpgsql/src/pl_scanner.c keywords: set(sqlKeywords + "a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"), // https://www.postgresql.org/docs/11/datatype.html builtin: set("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"), atoms: set("false true null unknown"), operatorChars: /^[*\/+\-%<>!=&|^\/#@?~]/, backslashStringEscapes: false, dateSQL: set("date time timestamp"), support: set("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant") }); // Google's SQL-like query language, GQL CodeMirror.defineMIME("text/x-gql", { name: "sql", keywords: set("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"), atoms: set("false true"), builtin: set("blob datetime first key __key__ string integer double boolean null"), operatorChars: /^[*+\-%<>!=]/ }); // Greenplum CodeMirror.defineMIME("text/x-gpsql", { name: "sql", client: set("source"), //https://github.com/greenplum-db/gpdb/blob/master/src/include/parser/kwlist.h keywords: set("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"), builtin: set("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"), atoms: set("false true null unknown"), operatorChars: /^[*+\-%<>!=&|^\/#@?~]/, dateSQL: set("date time timestamp"), support: set("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast") }); // Spark SQL CodeMirror.defineMIME("text/x-sparksql", { name: "sql", keywords: set("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"), builtin: set("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"), atoms: set("false true null"), operatorChars: /^[*\/+\-%<>!=~&|^]/, dateSQL: set("date time timestamp"), support: set("ODBCdotTable doubleQuote zerolessFloat") }); // Esper CodeMirror.defineMIME("text/x-esper", { name: "sql", client: set("source"), // http://www.espertech.com/esper/release-5.5.0/esper-reference/html/appendix_keywords.html keywords: set("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"), builtin: {}, atoms: set("false true null"), operatorChars: /^[*+\-%<>!=&|^\/#@?~]/, dateSQL: set("time"), support: set("decimallessFloat zerolessFloat binaryNumber hexNumber") }); // Trino (formerly known as Presto) CodeMirror.defineMIME("text/x-trino", { name: "sql", // https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/core/trino-parser/src/main/antlr4/io/trino/sql/parser/SqlBase.g4#L859-L1129 // https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/docs/src/main/sphinx/functions/list.rst keywords: set("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"), // https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/core/trino-main/src/main/java/io/trino/metadata/TypeRegistry.java#L131-L168 // https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/plugin/trino-ml/src/main/java/io/trino/plugin/ml/MLPlugin.java#L35 // https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/plugin/trino-mongodb/src/main/java/io/trino/plugin/mongodb/MongoPlugin.java#L32 // https://github.com/trinodb/trino/blob/bc7a4eeedde28684c7ae6f74cefcaf7c6e782174/plugin/trino-geospatial/src/main/java/io/trino/plugin/geospatial/GeoPlugin.java#L37 builtin: set("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"), atoms: set("false true null unknown"), // https://trino.io/docs/current/functions/list.html#id1 operatorChars: /^[[\]|<>=!\-+*/%]/, dateSQL: set("date time timestamp zone"), // hexNumber is necessary for VARBINARY literals, e.g. X'65683F' // but it also enables 0xFF hex numbers, which Trino doesn't support. support: set("ODBCdotTable decimallessFloat zerolessFloat hexNumber") }); }); /* How Properties of Mime Types are used by SQL Mode ================================================= keywords: A list of keywords you want to be highlighted. builtin: A list of builtin types you want to be highlighted (if you want types to be of class "builtin" instead of "keyword"). operatorChars: All characters that must be handled as operators. client: Commands parsed and executed by the client (not the server). support: A list of supported syntaxes which are not common, but are supported by more than 1 DBMS. * ODBCdotTable: .tableName * zerolessFloat: .1 * decimallessFloat: 1. * hexNumber: X'01AF' X'01af' x'01AF' x'01af' 0x01AF 0x01af * binaryNumber: b'01' B'01' 0b01 * doubleQuote: "string" * escapeConstant: E'' * nCharCast: N'string' * charsetCast: _utf8'string' * commentHash: use # char for comments * commentSlashSlash: use // for comments * commentSpaceRequired: require a space after -- for comments atoms: Keywords that must be highlighted as atoms,. Some DBMS's support more atoms than others: UNKNOWN, INFINITY, UNDERFLOW, NaN... dateSQL: Used for date/time SQL standard syntax, because not all DBMS's support same temporal types. */ ================================================ FILE: _files/assets/codemirror@6.65.7/mode/stex/stex.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /* * Author: Constantin Jucovschi (c.jucovschi@jacobs-university.de) * Licence: MIT */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("stex", function(_config, parserConfig) { "use strict"; function pushCommand(state, command) { state.cmdState.push(command); } function peekCommand(state) { if (state.cmdState.length > 0) { return state.cmdState[state.cmdState.length - 1]; } else { return null; } } function popCommand(state) { var plug = state.cmdState.pop(); if (plug) { plug.closeBracket(); } } // returns the non-default plugin closest to the end of the list function getMostPowerful(state) { var context = state.cmdState; for (var i = context.length - 1; i >= 0; i--) { var plug = context[i]; if (plug.name == "DEFAULT") { continue; } return plug; } return { styleIdentifier: function() { return null; } }; } function addPluginPattern(pluginName, cmdStyle, styles) { return function () { this.name = pluginName; this.bracketNo = 0; this.style = cmdStyle; this.styles = styles; this.argument = null; // \begin and \end have arguments that follow. These are stored in the plugin this.styleIdentifier = function() { return this.styles[this.bracketNo - 1] || null; }; this.openBracket = function() { this.bracketNo++; return "bracket"; }; this.closeBracket = function() {}; }; } var plugins = {}; plugins["importmodule"] = addPluginPattern("importmodule", "tag", ["string", "builtin"]); plugins["documentclass"] = addPluginPattern("documentclass", "tag", ["", "atom"]); plugins["usepackage"] = addPluginPattern("usepackage", "tag", ["atom"]); plugins["begin"] = addPluginPattern("begin", "tag", ["atom"]); plugins["end"] = addPluginPattern("end", "tag", ["atom"]); plugins["label" ] = addPluginPattern("label" , "tag", ["atom"]); plugins["ref" ] = addPluginPattern("ref" , "tag", ["atom"]); plugins["eqref" ] = addPluginPattern("eqref" , "tag", ["atom"]); plugins["cite" ] = addPluginPattern("cite" , "tag", ["atom"]); plugins["bibitem" ] = addPluginPattern("bibitem" , "tag", ["atom"]); plugins["Bibitem" ] = addPluginPattern("Bibitem" , "tag", ["atom"]); plugins["RBibitem" ] = addPluginPattern("RBibitem" , "tag", ["atom"]); plugins["DEFAULT"] = function () { this.name = "DEFAULT"; this.style = "tag"; this.styleIdentifier = this.openBracket = this.closeBracket = function() {}; }; function setState(state, f) { state.f = f; } // called when in a normal (no environment) context function normal(source, state) { var plug; // Do we look like '\command' ? If so, attempt to apply the plugin 'command' if (source.match(/^\\[a-zA-Z@]+/)) { var cmdName = source.current().slice(1); plug = plugins.hasOwnProperty(cmdName) ? plugins[cmdName] : plugins["DEFAULT"]; plug = new plug(); pushCommand(state, plug); setState(state, beginParams); return plug.style; } // escape characters if (source.match(/^\\[$&%#{}_]/)) { return "tag"; } // white space control characters if (source.match(/^\\[,;!\/\\]/)) { return "tag"; } // find if we're starting various math modes if (source.match("\\[")) { setState(state, function(source, state){ return inMathMode(source, state, "\\]"); }); return "keyword"; } if (source.match("\\(")) { setState(state, function(source, state){ return inMathMode(source, state, "\\)"); }); return "keyword"; } if (source.match("$$")) { setState(state, function(source, state){ return inMathMode(source, state, "$$"); }); return "keyword"; } if (source.match("$")) { setState(state, function(source, state){ return inMathMode(source, state, "$"); }); return "keyword"; } var ch = source.next(); if (ch == "%") { source.skipToEnd(); return "comment"; } else if (ch == '}' || ch == ']') { plug = peekCommand(state); if (plug) { plug.closeBracket(ch); setState(state, beginParams); } else { return "error"; } return "bracket"; } else if (ch == '{' || ch == '[') { plug = plugins["DEFAULT"]; plug = new plug(); pushCommand(state, plug); return "bracket"; } else if (/\d/.test(ch)) { source.eatWhile(/[\w.%]/); return "atom"; } else { source.eatWhile(/[\w\-_]/); plug = getMostPowerful(state); if (plug.name == 'begin') { plug.argument = source.current(); } return plug.styleIdentifier(); } } function inMathMode(source, state, endModeSeq) { if (source.eatSpace()) { return null; } if (endModeSeq && source.match(endModeSeq)) { setState(state, normal); return "keyword"; } if (source.match(/^\\[a-zA-Z@]+/)) { return "tag"; } if (source.match(/^[a-zA-Z]+/)) { return "variable-2"; } // escape characters if (source.match(/^\\[$&%#{}_]/)) { return "tag"; } // white space control characters if (source.match(/^\\[,;!\/]/)) { return "tag"; } // special math-mode characters if (source.match(/^[\^_&]/)) { return "tag"; } // non-special characters if (source.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)) { return null; } if (source.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)) { return "number"; } var ch = source.next(); if (ch == "{" || ch == "}" || ch == "[" || ch == "]" || ch == "(" || ch == ")") { return "bracket"; } if (ch == "%") { source.skipToEnd(); return "comment"; } return "error"; } function beginParams(source, state) { var ch = source.peek(), lastPlug; if (ch == '{' || ch == '[') { lastPlug = peekCommand(state); lastPlug.openBracket(ch); source.eat(ch); setState(state, normal); return "bracket"; } if (/[ \t\r]/.test(ch)) { source.eat(ch); return null; } setState(state, normal); popCommand(state); return normal(source, state); } return { startState: function() { var f = parserConfig.inMathMode ? function(source, state){ return inMathMode(source, state); } : normal; return { cmdState: [], f: f }; }, copyState: function(s) { return { cmdState: s.cmdState.slice(), f: s.f }; }, token: function(stream, state) { return state.f(stream, state); }, blankLine: function(state) { state.f = normal; state.cmdState.length = 0; }, lineComment: "%" }; }); CodeMirror.defineMIME("text/x-stex", "stex"); CodeMirror.defineMIME("text/x-latex", "stex"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/stylus/stylus.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Stylus mode created by Dmitry Kiselyov http://git.io/AaRB (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("stylus", function(config) { var indentUnit = config.indentUnit, indentUnitString = '', tagKeywords = keySet(tagKeywords_), tagVariablesRegexp = /^(a|b|i|s|col|em)$/i, propertyKeywords = keySet(propertyKeywords_), nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_), valueKeywords = keySet(valueKeywords_), colorKeywords = keySet(colorKeywords_), documentTypes = keySet(documentTypes_), documentTypesRegexp = wordRegexp(documentTypes_), mediaFeatures = keySet(mediaFeatures_), mediaTypes = keySet(mediaTypes_), fontProperties = keySet(fontProperties_), operatorsRegexp = /^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/, wordOperatorKeywordsRegexp = wordRegexp(wordOperatorKeywords_), blockKeywords = keySet(blockKeywords_), vendorPrefixesRegexp = new RegExp(/^\-(moz|ms|o|webkit)-/i), commonAtoms = keySet(commonAtoms_), firstWordMatch = "", states = {}, ch, style, type, override; while (indentUnitString.length < indentUnit) indentUnitString += ' '; /** * Tokenizers */ function tokenBase(stream, state) { firstWordMatch = stream.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/); state.context.line.firstWord = firstWordMatch ? firstWordMatch[0].replace(/^\s*/, "") : ""; state.context.line.indent = stream.indentation(); ch = stream.peek(); // Line comment if (stream.match("//")) { stream.skipToEnd(); return ["comment", "comment"]; } // Block comment if (stream.match("/*")) { state.tokenize = tokenCComment; return tokenCComment(stream, state); } // String if (ch == "\"" || ch == "'") { stream.next(); state.tokenize = tokenString(ch); return state.tokenize(stream, state); } // Def if (ch == "@") { stream.next(); stream.eatWhile(/[\w\\-]/); return ["def", stream.current()]; } // ID selector or Hex color if (ch == "#") { stream.next(); // Hex color if (stream.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i)) { return ["atom", "atom"]; } // ID selector if (stream.match(/^[a-z][\w-]*/i)) { return ["builtin", "hash"]; } } // Vendor prefixes if (stream.match(vendorPrefixesRegexp)) { return ["meta", "vendor-prefixes"]; } // Numbers if (stream.match(/^-?[0-9]?\.?[0-9]/)) { stream.eatWhile(/[a-z%]/i); return ["number", "unit"]; } // !important|optional if (ch == "!") { stream.next(); return [stream.match(/^(important|optional)/i) ? "keyword": "operator", "important"]; } // Class if (ch == "." && stream.match(/^\.[a-z][\w-]*/i)) { return ["qualifier", "qualifier"]; } // url url-prefix domain regexp if (stream.match(documentTypesRegexp)) { if (stream.peek() == "(") state.tokenize = tokenParenthesized; return ["property", "word"]; } // Mixins / Functions if (stream.match(/^[a-z][\w-]*\(/i)) { stream.backUp(1); return ["keyword", "mixin"]; } // Block mixins if (stream.match(/^(\+|-)[a-z][\w-]*\(/i)) { stream.backUp(1); return ["keyword", "block-mixin"]; } // Parent Reference BEM naming if (stream.string.match(/^\s*&/) && stream.match(/^[-_]+[a-z][\w-]*/)) { return ["qualifier", "qualifier"]; } // / Root Reference & Parent Reference if (stream.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)) { stream.backUp(1); return ["variable-3", "reference"]; } if (stream.match(/^&{1}\s*$/)) { return ["variable-3", "reference"]; } // Word operator if (stream.match(wordOperatorKeywordsRegexp)) { return ["operator", "operator"]; } // Word if (stream.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)) { // Variable if (stream.match(/^(\.|\[)[\w-\'\"\]]+/i, false)) { if (!wordIsTag(stream.current())) { stream.match('.'); return ["variable-2", "variable-name"]; } } return ["variable-2", "word"]; } // Operators if (stream.match(operatorsRegexp)) { return ["operator", stream.current()]; } // Delimiters if (/[:;,{}\[\]\(\)]/.test(ch)) { stream.next(); return [null, ch]; } // Non-detected items stream.next(); return [null, null]; } /** * Token comment */ function tokenCComment(stream, state) { var maybeEnd = false, ch; while ((ch = stream.next()) != null) { if (maybeEnd && ch == "/") { state.tokenize = null; break; } maybeEnd = (ch == "*"); } return ["comment", "comment"]; } /** * Token string */ function tokenString(quote) { return function(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == quote && !escaped) { if (quote == ")") stream.backUp(1); break; } escaped = !escaped && ch == "\\"; } if (ch == quote || !escaped && quote != ")") state.tokenize = null; return ["string", "string"]; }; } /** * Token parenthesized */ function tokenParenthesized(stream, state) { stream.next(); // Must be "(" if (!stream.match(/\s*[\"\')]/, false)) state.tokenize = tokenString(")"); else state.tokenize = null; return [null, "("]; } /** * Context management */ function Context(type, indent, prev, line) { this.type = type; this.indent = indent; this.prev = prev; this.line = line || {firstWord: "", indent: 0}; } function pushContext(state, stream, type, indent) { indent = indent >= 0 ? indent : indentUnit; state.context = new Context(type, stream.indentation() + indent, state.context); return type; } function popContext(state, currentIndent) { var contextIndent = state.context.indent - indentUnit; currentIndent = currentIndent || false; state.context = state.context.prev; if (currentIndent) state.context.indent = contextIndent; return state.context.type; } function pass(type, stream, state) { return states[state.context.type](type, stream, state); } function popAndPass(type, stream, state, n) { for (var i = n || 1; i > 0; i--) state.context = state.context.prev; return pass(type, stream, state); } /** * Parser */ function wordIsTag(word) { return word.toLowerCase() in tagKeywords; } function wordIsProperty(word) { word = word.toLowerCase(); return word in propertyKeywords || word in fontProperties; } function wordIsBlock(word) { return word.toLowerCase() in blockKeywords; } function wordIsVendorPrefix(word) { return word.toLowerCase().match(vendorPrefixesRegexp); } function wordAsValue(word) { var wordLC = word.toLowerCase(); var override = "variable-2"; if (wordIsTag(word)) override = "tag"; else if (wordIsBlock(word)) override = "block-keyword"; else if (wordIsProperty(word)) override = "property"; else if (wordLC in valueKeywords || wordLC in commonAtoms) override = "atom"; else if (wordLC == "return" || wordLC in colorKeywords) override = "keyword"; // Font family else if (word.match(/^[A-Z]/)) override = "string"; return override; } function typeIsBlock(type, stream) { return ((endOfLine(stream) && (type == "{" || type == "]" || type == "hash" || type == "qualifier")) || type == "block-mixin"); } function typeIsInterpolation(type, stream) { return type == "{" && stream.match(/^\s*\$?[\w-]+/i, false); } function typeIsPseudo(type, stream) { return type == ":" && stream.match(/^[a-z-]+/, false); } function startOfLine(stream) { return stream.sol() || stream.string.match(new RegExp("^\\s*" + escapeRegExp(stream.current()))); } function endOfLine(stream) { return stream.eol() || stream.match(/^\s*$/, false); } function firstWordOfLine(line) { var re = /^\s*[-_]*[a-z0-9]+[\w-]*/i; var result = typeof line == "string" ? line.match(re) : line.string.match(re); return result ? result[0].replace(/^\s*/, "") : ""; } /** * Block */ states.block = function(type, stream, state) { if ((type == "comment" && startOfLine(stream)) || (type == "," && endOfLine(stream)) || type == "mixin") { return pushContext(state, stream, "block", 0); } if (typeIsInterpolation(type, stream)) { return pushContext(state, stream, "interpolation"); } if (endOfLine(stream) && type == "]") { if (!/^\s*(\.|#|:|\[|\*|&)/.test(stream.string) && !wordIsTag(firstWordOfLine(stream))) { return pushContext(state, stream, "block", 0); } } if (typeIsBlock(type, stream)) { return pushContext(state, stream, "block"); } if (type == "}" && endOfLine(stream)) { return pushContext(state, stream, "block", 0); } if (type == "variable-name") { if (stream.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/) || wordIsBlock(firstWordOfLine(stream))) { return pushContext(state, stream, "variableName"); } else { return pushContext(state, stream, "variableName", 0); } } if (type == "=") { if (!endOfLine(stream) && !wordIsBlock(firstWordOfLine(stream))) { return pushContext(state, stream, "block", 0); } return pushContext(state, stream, "block"); } if (type == "*") { if (endOfLine(stream) || stream.match(/\s*(,|\.|#|\[|:|{)/,false)) { override = "tag"; return pushContext(state, stream, "block"); } } if (typeIsPseudo(type, stream)) { return pushContext(state, stream, "pseudo"); } if (/@(font-face|media|supports|(-moz-)?document)/.test(type)) { return pushContext(state, stream, endOfLine(stream) ? "block" : "atBlock"); } if (/@(-(moz|ms|o|webkit)-)?keyframes$/.test(type)) { return pushContext(state, stream, "keyframes"); } if (/@extends?/.test(type)) { return pushContext(state, stream, "extend", 0); } if (type && type.charAt(0) == "@") { // Property Lookup if (stream.indentation() > 0 && wordIsProperty(stream.current().slice(1))) { override = "variable-2"; return "block"; } if (/(@import|@require|@charset)/.test(type)) { return pushContext(state, stream, "block", 0); } return pushContext(state, stream, "block"); } if (type == "reference" && endOfLine(stream)) { return pushContext(state, stream, "block"); } if (type == "(") { return pushContext(state, stream, "parens"); } if (type == "vendor-prefixes") { return pushContext(state, stream, "vendorPrefixes"); } if (type == "word") { var word = stream.current(); override = wordAsValue(word); if (override == "property") { if (startOfLine(stream)) { return pushContext(state, stream, "block", 0); } else { override = "atom"; return "block"; } } if (override == "tag") { // tag is a css value if (/embed|menu|pre|progress|sub|table/.test(word)) { if (wordIsProperty(firstWordOfLine(stream))) { override = "atom"; return "block"; } } // tag is an attribute if (stream.string.match(new RegExp("\\[\\s*" + word + "|" + word +"\\s*\\]"))) { override = "atom"; return "block"; } // tag is a variable if (tagVariablesRegexp.test(word)) { if ((startOfLine(stream) && stream.string.match(/=/)) || (!startOfLine(stream) && !stream.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/) && !wordIsTag(firstWordOfLine(stream)))) { override = "variable-2"; if (wordIsBlock(firstWordOfLine(stream))) return "block"; return pushContext(state, stream, "block", 0); } } if (endOfLine(stream)) return pushContext(state, stream, "block"); } if (override == "block-keyword") { override = "keyword"; // Postfix conditionals if (stream.current(/(if|unless)/) && !startOfLine(stream)) { return "block"; } return pushContext(state, stream, "block"); } if (word == "return") return pushContext(state, stream, "block", 0); // Placeholder selector if (override == "variable-2" && stream.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)) { return pushContext(state, stream, "block"); } } return state.context.type; }; /** * Parens */ states.parens = function(type, stream, state) { if (type == "(") return pushContext(state, stream, "parens"); if (type == ")") { if (state.context.prev.type == "parens") { return popContext(state); } if ((stream.string.match(/^[a-z][\w-]*\(/i) && endOfLine(stream)) || wordIsBlock(firstWordOfLine(stream)) || /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(firstWordOfLine(stream)) || (!stream.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/) && wordIsTag(firstWordOfLine(stream)))) { return pushContext(state, stream, "block"); } if (stream.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/) || stream.string.match(/^\s*(\(|\)|[0-9])/) || stream.string.match(/^\s+[a-z][\w-]*\(/i) || stream.string.match(/^\s+[\$-]?[a-z]/i)) { return pushContext(state, stream, "block", 0); } if (endOfLine(stream)) return pushContext(state, stream, "block"); else return pushContext(state, stream, "block", 0); } if (type && type.charAt(0) == "@" && wordIsProperty(stream.current().slice(1))) { override = "variable-2"; } if (type == "word") { var word = stream.current(); override = wordAsValue(word); if (override == "tag" && tagVariablesRegexp.test(word)) { override = "variable-2"; } if (override == "property" || word == "to") override = "atom"; } if (type == "variable-name") { return pushContext(state, stream, "variableName"); } if (typeIsPseudo(type, stream)) { return pushContext(state, stream, "pseudo"); } return state.context.type; }; /** * Vendor prefixes */ states.vendorPrefixes = function(type, stream, state) { if (type == "word") { override = "property"; return pushContext(state, stream, "block", 0); } return popContext(state); }; /** * Pseudo */ states.pseudo = function(type, stream, state) { if (!wordIsProperty(firstWordOfLine(stream.string))) { stream.match(/^[a-z-]+/); override = "variable-3"; if (endOfLine(stream)) return pushContext(state, stream, "block"); return popContext(state); } return popAndPass(type, stream, state); }; /** * atBlock */ states.atBlock = function(type, stream, state) { if (type == "(") return pushContext(state, stream, "atBlock_parens"); if (typeIsBlock(type, stream)) { return pushContext(state, stream, "block"); } if (typeIsInterpolation(type, stream)) { return pushContext(state, stream, "interpolation"); } if (type == "word") { var word = stream.current().toLowerCase(); if (/^(only|not|and|or)$/.test(word)) override = "keyword"; else if (documentTypes.hasOwnProperty(word)) override = "tag"; else if (mediaTypes.hasOwnProperty(word)) override = "attribute"; else if (mediaFeatures.hasOwnProperty(word)) override = "property"; else if (nonStandardPropertyKeywords.hasOwnProperty(word)) override = "string-2"; else override = wordAsValue(stream.current()); if (override == "tag" && endOfLine(stream)) { return pushContext(state, stream, "block"); } } if (type == "operator" && /^(not|and|or)$/.test(stream.current())) { override = "keyword"; } return state.context.type; }; states.atBlock_parens = function(type, stream, state) { if (type == "{" || type == "}") return state.context.type; if (type == ")") { if (endOfLine(stream)) return pushContext(state, stream, "block"); else return pushContext(state, stream, "atBlock"); } if (type == "word") { var word = stream.current().toLowerCase(); override = wordAsValue(word); if (/^(max|min)/.test(word)) override = "property"; if (override == "tag") { tagVariablesRegexp.test(word) ? override = "variable-2" : override = "atom"; } return state.context.type; } return states.atBlock(type, stream, state); }; /** * Keyframes */ states.keyframes = function(type, stream, state) { if (stream.indentation() == "0" && ((type == "}" && startOfLine(stream)) || type == "]" || type == "hash" || type == "qualifier" || wordIsTag(stream.current()))) { return popAndPass(type, stream, state); } if (type == "{") return pushContext(state, stream, "keyframes"); if (type == "}") { if (startOfLine(stream)) return popContext(state, true); else return pushContext(state, stream, "keyframes"); } if (type == "unit" && /^[0-9]+\%$/.test(stream.current())) { return pushContext(state, stream, "keyframes"); } if (type == "word") { override = wordAsValue(stream.current()); if (override == "block-keyword") { override = "keyword"; return pushContext(state, stream, "keyframes"); } } if (/@(font-face|media|supports|(-moz-)?document)/.test(type)) { return pushContext(state, stream, endOfLine(stream) ? "block" : "atBlock"); } if (type == "mixin") { return pushContext(state, stream, "block", 0); } return state.context.type; }; /** * Interpolation */ states.interpolation = function(type, stream, state) { if (type == "{") popContext(state) && pushContext(state, stream, "block"); if (type == "}") { if (stream.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i) || (stream.string.match(/^\s*[a-z]/i) && wordIsTag(firstWordOfLine(stream)))) { return pushContext(state, stream, "block"); } if (!stream.string.match(/^(\{|\s*\&)/) || stream.match(/\s*[\w-]/,false)) { return pushContext(state, stream, "block", 0); } return pushContext(state, stream, "block"); } if (type == "variable-name") { return pushContext(state, stream, "variableName", 0); } if (type == "word") { override = wordAsValue(stream.current()); if (override == "tag") override = "atom"; } return state.context.type; }; /** * Extend/s */ states.extend = function(type, stream, state) { if (type == "[" || type == "=") return "extend"; if (type == "]") return popContext(state); if (type == "word") { override = wordAsValue(stream.current()); return "extend"; } return popContext(state); }; /** * Variable name */ states.variableName = function(type, stream, state) { if (type == "string" || type == "[" || type == "]" || stream.current().match(/^(\.|\$)/)) { if (stream.current().match(/^\.[\w-]+/i)) override = "variable-2"; return "variableName"; } return popAndPass(type, stream, state); }; return { startState: function(base) { return { tokenize: null, state: "block", context: new Context("block", base || 0, null) }; }, token: function(stream, state) { if (!state.tokenize && stream.eatSpace()) return null; style = (state.tokenize || tokenBase)(stream, state); if (style && typeof style == "object") { type = style[1]; style = style[0]; } override = style; state.state = states[state.state](type, stream, state); return override; }, indent: function(state, textAfter, line) { var cx = state.context, ch = textAfter && textAfter.charAt(0), indent = cx.indent, lineFirstWord = firstWordOfLine(textAfter), lineIndent = line.match(/^\s*/)[0].replace(/\t/g, indentUnitString).length, prevLineFirstWord = state.context.prev ? state.context.prev.line.firstWord : "", prevLineIndent = state.context.prev ? state.context.prev.line.indent : lineIndent; if (cx.prev && (ch == "}" && (cx.type == "block" || cx.type == "atBlock" || cx.type == "keyframes") || ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") || ch == "{" && (cx.type == "at"))) { indent = cx.indent - indentUnit; } else if (!(/(\})/.test(ch))) { if (/@|\$|\d/.test(ch) || /^\{/.test(textAfter) || /^\s*\/(\/|\*)/.test(textAfter) || /^\s*\/\*/.test(prevLineFirstWord) || /^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(textAfter) || /^(\+|-)?[a-z][\w-]*\(/i.test(textAfter) || /^return/.test(textAfter) || wordIsBlock(lineFirstWord)) { indent = lineIndent; } else if (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ch) || wordIsTag(lineFirstWord)) { if (/\,\s*$/.test(prevLineFirstWord)) { indent = prevLineIndent; } else if (/^\s+/.test(line) && (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(prevLineFirstWord) || wordIsTag(prevLineFirstWord))) { indent = lineIndent <= prevLineIndent ? prevLineIndent : prevLineIndent + indentUnit; } else { indent = lineIndent; } } else if (!/,\s*$/.test(line) && (wordIsVendorPrefix(lineFirstWord) || wordIsProperty(lineFirstWord))) { if (wordIsBlock(prevLineFirstWord)) { indent = lineIndent <= prevLineIndent ? prevLineIndent : prevLineIndent + indentUnit; } else if (/^\{/.test(prevLineFirstWord)) { indent = lineIndent <= prevLineIndent ? lineIndent : prevLineIndent + indentUnit; } else if (wordIsVendorPrefix(prevLineFirstWord) || wordIsProperty(prevLineFirstWord)) { indent = lineIndent >= prevLineIndent ? prevLineIndent : lineIndent; } else if (/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(prevLineFirstWord) || /=\s*$/.test(prevLineFirstWord) || wordIsTag(prevLineFirstWord) || /^\$[\w-\.\[\]\'\"]/.test(prevLineFirstWord)) { indent = prevLineIndent + indentUnit; } else { indent = lineIndent; } } } return indent; }, electricChars: "}", blockCommentStart: "/*", blockCommentEnd: "*/", blockCommentContinue: " * ", lineComment: "//", fold: "indent" }; }); // developer.mozilla.org/en-US/docs/Web/HTML/Element var tagKeywords_ = ["a","abbr","address","area","article","aside","audio", "b", "base","bdi", "bdo","bgsound","blockquote","body","br","button","canvas","caption","cite", "code","col","colgroup","data","datalist","dd","del","details","dfn","div", "dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1", "h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe", "img","input","ins","kbd","keygen","label","legend","li","link","main","map", "mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes", "noscript","object","ol","optgroup","option","output","p","param","pre", "progress","q","rp","rt","ruby","s","samp","script","section","select", "small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track", "u","ul","var","video"]; // github.com/codemirror/CodeMirror/blob/master/mode/css/css.js // Note, "url-prefix" should precede "url" in order to match correctly in documentTypesRegexp var documentTypes_ = ["domain", "regexp", "url-prefix", "url"]; var mediaTypes_ = ["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"]; var mediaFeatures_ = ["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"]; var propertyKeywords_ = ["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"]; var nonStandardPropertyKeywords_ = ["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"]; var fontProperties_ = ["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]; var colorKeywords_ = ["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]; var valueKeywords_ = ["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around", "unset"]; var wordOperatorKeywords_ = ["in","and","or","not","is not","is a","is","isnt","defined","if unless"], blockKeywords_ = ["for","if","else","unless", "from", "to"], commonAtoms_ = ["null","true","false","href","title","type","not-allowed","readonly","disabled"], commonDef_ = ["@font-face", "@keyframes", "@media", "@viewport", "@page", "@host", "@supports", "@block", "@css"]; var hintWords = tagKeywords_.concat(documentTypes_,mediaTypes_,mediaFeatures_, propertyKeywords_,nonStandardPropertyKeywords_, colorKeywords_,valueKeywords_,fontProperties_, wordOperatorKeywords_,blockKeywords_, commonAtoms_,commonDef_); function wordRegexp(words) { words = words.sort(function(a,b){return b > a;}); return new RegExp("^((" + words.join(")|(") + "))\\b"); } function keySet(array) { var keys = {}; for (var i = 0; i < array.length; ++i) keys[array[i]] = true; return keys; } function escapeRegExp(text) { return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); } CodeMirror.registerHelper("hintWords", "stylus", hintWords); CodeMirror.defineMIME("text/x-styl", "stylus"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/swift/swift.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Swift mode created by Michael Kaminsky https://github.com/mkaminsky11 (function(mod) { if (typeof exports == "object" && typeof module == "object") mod(require("../../lib/codemirror")) else if (typeof define == "function" && define.amd) define(["../../lib/codemirror"], mod) else mod(CodeMirror) })(function(CodeMirror) { "use strict" function wordSet(words) { var set = {} for (var i = 0; i < words.length; i++) set[words[i]] = true return set } var keywords = wordSet(["_","var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype", "open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super", "convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is", "break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while", "defer","return","inout","mutating","nonmutating","isolated","nonisolated","catch","do","rethrows","throw","throws","async","await","try","didSet","get","set","willSet", "assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right", "Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]) var definingKeywords = wordSet(["var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]) var atoms = wordSet(["true","false","nil","self","super","_"]) var types = wordSet(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String", "UInt8","UInt16","UInt32","UInt64","Void"]) var operators = "+-/*%=|&<>~^?!" var punc = ":;,.(){}[]" var binary = /^\-?0b[01][01_]*/ var octal = /^\-?0o[0-7][0-7_]*/ var hexadecimal = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/ var decimal = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/ var identifier = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/ var property = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/ var instruction = /^\#[A-Za-z]+/ var attribute = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/ //var regexp = /^\/(?!\s)(?:\/\/)?(?:\\.|[^\/])+\// function tokenBase(stream, state, prev) { if (stream.sol()) state.indented = stream.indentation() if (stream.eatSpace()) return null var ch = stream.peek() if (ch == "/") { if (stream.match("//")) { stream.skipToEnd() return "comment" } if (stream.match("/*")) { state.tokenize.push(tokenComment) return tokenComment(stream, state) } } if (stream.match(instruction)) return "builtin" if (stream.match(attribute)) return "attribute" if (stream.match(binary)) return "number" if (stream.match(octal)) return "number" if (stream.match(hexadecimal)) return "number" if (stream.match(decimal)) return "number" if (stream.match(property)) return "property" if (operators.indexOf(ch) > -1) { stream.next() return "operator" } if (punc.indexOf(ch) > -1) { stream.next() stream.match("..") return "punctuation" } var stringMatch if (stringMatch = stream.match(/("""|"|')/)) { var tokenize = tokenString.bind(null, stringMatch[0]) state.tokenize.push(tokenize) return tokenize(stream, state) } if (stream.match(identifier)) { var ident = stream.current() if (types.hasOwnProperty(ident)) return "variable-2" if (atoms.hasOwnProperty(ident)) return "atom" if (keywords.hasOwnProperty(ident)) { if (definingKeywords.hasOwnProperty(ident)) state.prev = "define" return "keyword" } if (prev == "define") return "def" return "variable" } stream.next() return null } function tokenUntilClosingParen() { var depth = 0 return function(stream, state, prev) { var inner = tokenBase(stream, state, prev) if (inner == "punctuation") { if (stream.current() == "(") ++depth else if (stream.current() == ")") { if (depth == 0) { stream.backUp(1) state.tokenize.pop() return state.tokenize[state.tokenize.length - 1](stream, state) } else --depth } } return inner } } function tokenString(openQuote, stream, state) { var singleLine = openQuote.length == 1 var ch, escaped = false while (ch = stream.peek()) { if (escaped) { stream.next() if (ch == "(") { state.tokenize.push(tokenUntilClosingParen()) return "string" } escaped = false } else if (stream.match(openQuote)) { state.tokenize.pop() return "string" } else { stream.next() escaped = ch == "\\" } } if (singleLine) { state.tokenize.pop() } return "string" } function tokenComment(stream, state) { var ch while (true) { stream.match(/^[^/*]+/, true) ch = stream.next() if (!ch) break if (ch === "/" && stream.eat("*")) { state.tokenize.push(tokenComment) } else if (ch === "*" && stream.eat("/")) { state.tokenize.pop() } } return "comment" } function Context(prev, align, indented) { this.prev = prev this.align = align this.indented = indented } function pushContext(state, stream) { var align = stream.match(/^\s*($|\/[\/\*])/, false) ? null : stream.column() + 1 state.context = new Context(state.context, align, state.indented) } function popContext(state) { if (state.context) { state.indented = state.context.indented state.context = state.context.prev } } CodeMirror.defineMode("swift", function(config) { return { startState: function() { return { prev: null, context: null, indented: 0, tokenize: [] } }, token: function(stream, state) { var prev = state.prev state.prev = null var tokenize = state.tokenize[state.tokenize.length - 1] || tokenBase var style = tokenize(stream, state, prev) if (!style || style == "comment") state.prev = prev else if (!state.prev) state.prev = style if (style == "punctuation") { var bracket = /[\(\[\{]|([\]\)\}])/.exec(stream.current()) if (bracket) (bracket[1] ? popContext : pushContext)(state, stream) } return style }, indent: function(state, textAfter) { var cx = state.context if (!cx) return 0 var closing = /^[\]\}\)]/.test(textAfter) if (cx.align != null) return cx.align - (closing ? 1 : 0) return cx.indented + (closing ? 0 : config.indentUnit) }, electricInput: /^\s*[\)\}\]]$/, lineComment: "//", blockCommentStart: "/*", blockCommentEnd: "*/", fold: "brace", closeBrackets: "()[]{}''\"\"``" } }) CodeMirror.defineMIME("text/x-swift","swift") }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/tcl/tcl.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE //tcl mode by Ford_Lawnmower :: Based on Velocity mode by Steve O'Hara (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("tcl", function() { function parseWords(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var keywords = parseWords("Tcl safe after append array auto_execok auto_import auto_load " + "auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror " + "binary break catch cd close concat continue dde eof encoding error " + "eval exec exit expr fblocked fconfigure fcopy file fileevent filename " + "filename flush for foreach format gets glob global history http if " + "incr info interp join lappend lindex linsert list llength load lrange " + "lreplace lsearch lset lsort memory msgcat namespace open package parray " + "pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp " + "registry regsub rename resource return scan seek set socket source split " + "string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord " + "tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest " + "tclvars tell time trace unknown unset update uplevel upvar variable " + "vwait"); var functions = parseWords("if elseif else and not or eq ne in ni for foreach while switch"); var isOperatorChar = /[+\-*&%=<>!?^\/\|]/; function chain(stream, state, f) { state.tokenize = f; return f(stream, state); } function tokenBase(stream, state) { var beforeParams = state.beforeParams; state.beforeParams = false; var ch = stream.next(); if ((ch == '"' || ch == "'") && state.inParams) { return chain(stream, state, tokenString(ch)); } else if (/[\[\]{}\(\),;\.]/.test(ch)) { if (ch == "(" && beforeParams) state.inParams = true; else if (ch == ")") state.inParams = false; return null; } else if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } else if (ch == "#") { if (stream.eat("*")) return chain(stream, state, tokenComment); if (ch == "#" && stream.match(/ *\[ *\[/)) return chain(stream, state, tokenUnparsed); stream.skipToEnd(); return "comment"; } else if (ch == '"') { stream.skipTo(/"/); return "comment"; } else if (ch == "$") { stream.eatWhile(/[$_a-z0-9A-Z\.{:]/); stream.eatWhile(/}/); state.beforeParams = true; return "builtin"; } else if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "comment"; } else { stream.eatWhile(/[\w\$_{}\xa1-\uffff]/); var word = stream.current().toLowerCase(); if (keywords && keywords.propertyIsEnumerable(word)) return "keyword"; if (functions && functions.propertyIsEnumerable(word)) { state.beforeParams = true; return "keyword"; } return null; } } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) { end = true; break; } escaped = !escaped && next == "\\"; } if (end) state.tokenize = tokenBase; return "string"; }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "#" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return "comment"; } function tokenUnparsed(stream, state) { var maybeEnd = 0, ch; while (ch = stream.next()) { if (ch == "#" && maybeEnd == 2) { state.tokenize = tokenBase; break; } if (ch == "]") maybeEnd++; else if (ch != " ") maybeEnd = 0; } return "meta"; } return { startState: function() { return { tokenize: tokenBase, beforeParams: false, inParams: false }; }, token: function(stream, state) { if (stream.eatSpace()) return null; return state.tokenize(stream, state); }, lineComment: "#" }; }); CodeMirror.defineMIME("text/x-tcl", "tcl"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/textile/textile.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") { // CommonJS mod(require("../../lib/codemirror")); } else if (typeof define == "function" && define.amd) { // AMD define(["../../lib/codemirror"], mod); } else { // Plain browser env mod(CodeMirror); } })(function(CodeMirror) { "use strict"; var TOKEN_STYLES = { addition: "positive", attributes: "attribute", bold: "strong", cite: "keyword", code: "atom", definitionList: "number", deletion: "negative", div: "punctuation", em: "em", footnote: "variable", footCite: "qualifier", header: "header", html: "comment", image: "string", italic: "em", link: "link", linkDefinition: "link", list1: "variable-2", list2: "variable-3", list3: "keyword", notextile: "string-2", pre: "operator", p: "property", quote: "bracket", span: "quote", specialChar: "tag", strong: "strong", sub: "builtin", sup: "builtin", table: "variable-3", tableHeading: "operator" }; function startNewLine(stream, state) { state.mode = Modes.newLayout; state.tableHeading = false; if (state.layoutType === "definitionList" && state.spanningLayout && stream.match(RE("definitionListEnd"), false)) state.spanningLayout = false; } function handlePhraseModifier(stream, state, ch) { if (ch === "_") { if (stream.eat("_")) return togglePhraseModifier(stream, state, "italic", /__/, 2); else return togglePhraseModifier(stream, state, "em", /_/, 1); } if (ch === "*") { if (stream.eat("*")) { return togglePhraseModifier(stream, state, "bold", /\*\*/, 2); } return togglePhraseModifier(stream, state, "strong", /\*/, 1); } if (ch === "[") { if (stream.match(/\d+\]/)) state.footCite = true; return tokenStyles(state); } if (ch === "(") { var spec = stream.match(/^(r|tm|c)\)/); if (spec) return tokenStylesWith(state, TOKEN_STYLES.specialChar); } if (ch === "<" && stream.match(/(\w+)[^>]+>[^<]+<\/\1>/)) return tokenStylesWith(state, TOKEN_STYLES.html); if (ch === "?" && stream.eat("?")) return togglePhraseModifier(stream, state, "cite", /\?\?/, 2); if (ch === "=" && stream.eat("=")) return togglePhraseModifier(stream, state, "notextile", /==/, 2); if (ch === "-" && !stream.eat("-")) return togglePhraseModifier(stream, state, "deletion", /-/, 1); if (ch === "+") return togglePhraseModifier(stream, state, "addition", /\+/, 1); if (ch === "~") return togglePhraseModifier(stream, state, "sub", /~/, 1); if (ch === "^") return togglePhraseModifier(stream, state, "sup", /\^/, 1); if (ch === "%") return togglePhraseModifier(stream, state, "span", /%/, 1); if (ch === "@") return togglePhraseModifier(stream, state, "code", /@/, 1); if (ch === "!") { var type = togglePhraseModifier(stream, state, "image", /(?:\([^\)]+\))?!/, 1); stream.match(/^:\S+/); // optional Url portion return type; } return tokenStyles(state); } function togglePhraseModifier(stream, state, phraseModifier, closeRE, openSize) { var charBefore = stream.pos > openSize ? stream.string.charAt(stream.pos - openSize - 1) : null; var charAfter = stream.peek(); if (state[phraseModifier]) { if ((!charAfter || /\W/.test(charAfter)) && charBefore && /\S/.test(charBefore)) { var type = tokenStyles(state); state[phraseModifier] = false; return type; } } else if ((!charBefore || /\W/.test(charBefore)) && charAfter && /\S/.test(charAfter) && stream.match(new RegExp("^.*\\S" + closeRE.source + "(?:\\W|$)"), false)) { state[phraseModifier] = true; state.mode = Modes.attributes; } return tokenStyles(state); }; function tokenStyles(state) { var disabled = textileDisabled(state); if (disabled) return disabled; var styles = []; if (state.layoutType) styles.push(TOKEN_STYLES[state.layoutType]); styles = styles.concat(activeStyles( state, "addition", "bold", "cite", "code", "deletion", "em", "footCite", "image", "italic", "link", "span", "strong", "sub", "sup", "table", "tableHeading")); if (state.layoutType === "header") styles.push(TOKEN_STYLES.header + "-" + state.header); return styles.length ? styles.join(" ") : null; } function textileDisabled(state) { var type = state.layoutType; switch(type) { case "notextile": case "code": case "pre": return TOKEN_STYLES[type]; default: if (state.notextile) return TOKEN_STYLES.notextile + (type ? (" " + TOKEN_STYLES[type]) : ""); return null; } } function tokenStylesWith(state, extraStyles) { var disabled = textileDisabled(state); if (disabled) return disabled; var type = tokenStyles(state); if (extraStyles) return type ? (type + " " + extraStyles) : extraStyles; else return type; } function activeStyles(state) { var styles = []; for (var i = 1; i < arguments.length; ++i) { if (state[arguments[i]]) styles.push(TOKEN_STYLES[arguments[i]]); } return styles; } function blankLine(state) { var spanningLayout = state.spanningLayout, type = state.layoutType; for (var key in state) if (state.hasOwnProperty(key)) delete state[key]; state.mode = Modes.newLayout; if (spanningLayout) { state.layoutType = type; state.spanningLayout = true; } } var REs = { cache: {}, single: { bc: "bc", bq: "bq", definitionList: /- .*?:=+/, definitionListEnd: /.*=:\s*$/, div: "div", drawTable: /\|.*\|/, foot: /fn\d+/, header: /h[1-6]/, html: /\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/, link: /[^"]+":\S/, linkDefinition: /\[[^\s\]]+\]\S+/, list: /(?:#+|\*+)/, notextile: "notextile", para: "p", pre: "pre", table: "table", tableCellAttributes: /[\/\\]\d+/, tableHeading: /\|_\./, tableText: /[^"_\*\[\(\?\+~\^%@|-]+/, text: /[^!"_=\*\[\(<\?\+~\^%@-]+/ }, attributes: { align: /(?:<>|<|>|=)/, selector: /\([^\(][^\)]+\)/, lang: /\[[^\[\]]+\]/, pad: /(?:\(+|\)+){1,2}/, css: /\{[^\}]+\}/ }, createRe: function(name) { switch (name) { case "drawTable": return REs.makeRe("^", REs.single.drawTable, "$"); case "html": return REs.makeRe("^", REs.single.html, "(?:", REs.single.html, ")*", "$"); case "linkDefinition": return REs.makeRe("^", REs.single.linkDefinition, "$"); case "listLayout": return REs.makeRe("^", REs.single.list, RE("allAttributes"), "*\\s+"); case "tableCellAttributes": return REs.makeRe("^", REs.choiceRe(REs.single.tableCellAttributes, RE("allAttributes")), "+\\."); case "type": return REs.makeRe("^", RE("allTypes")); case "typeLayout": return REs.makeRe("^", RE("allTypes"), RE("allAttributes"), "*\\.\\.?", "(\\s+|$)"); case "attributes": return REs.makeRe("^", RE("allAttributes"), "+"); case "allTypes": return REs.choiceRe(REs.single.div, REs.single.foot, REs.single.header, REs.single.bc, REs.single.bq, REs.single.notextile, REs.single.pre, REs.single.table, REs.single.para); case "allAttributes": return REs.choiceRe(REs.attributes.selector, REs.attributes.css, REs.attributes.lang, REs.attributes.align, REs.attributes.pad); default: return REs.makeRe("^", REs.single[name]); } }, makeRe: function() { var pattern = ""; for (var i = 0; i < arguments.length; ++i) { var arg = arguments[i]; pattern += (typeof arg === "string") ? arg : arg.source; } return new RegExp(pattern); }, choiceRe: function() { var parts = [arguments[0]]; for (var i = 1; i < arguments.length; ++i) { parts[i * 2 - 1] = "|"; parts[i * 2] = arguments[i]; } parts.unshift("(?:"); parts.push(")"); return REs.makeRe.apply(null, parts); } }; function RE(name) { return (REs.cache[name] || (REs.cache[name] = REs.createRe(name))); } var Modes = { newLayout: function(stream, state) { if (stream.match(RE("typeLayout"), false)) { state.spanningLayout = false; return (state.mode = Modes.blockType)(stream, state); } var newMode; if (!textileDisabled(state)) { if (stream.match(RE("listLayout"), false)) newMode = Modes.list; else if (stream.match(RE("drawTable"), false)) newMode = Modes.table; else if (stream.match(RE("linkDefinition"), false)) newMode = Modes.linkDefinition; else if (stream.match(RE("definitionList"))) newMode = Modes.definitionList; else if (stream.match(RE("html"), false)) newMode = Modes.html; } return (state.mode = (newMode || Modes.text))(stream, state); }, blockType: function(stream, state) { var match, type; state.layoutType = null; if (match = stream.match(RE("type"))) type = match[0]; else return (state.mode = Modes.text)(stream, state); if (match = type.match(RE("header"))) { state.layoutType = "header"; state.header = parseInt(match[0][1]); } else if (type.match(RE("bq"))) { state.layoutType = "quote"; } else if (type.match(RE("bc"))) { state.layoutType = "code"; } else if (type.match(RE("foot"))) { state.layoutType = "footnote"; } else if (type.match(RE("notextile"))) { state.layoutType = "notextile"; } else if (type.match(RE("pre"))) { state.layoutType = "pre"; } else if (type.match(RE("div"))) { state.layoutType = "div"; } else if (type.match(RE("table"))) { state.layoutType = "table"; } state.mode = Modes.attributes; return tokenStyles(state); }, text: function(stream, state) { if (stream.match(RE("text"))) return tokenStyles(state); var ch = stream.next(); if (ch === '"') return (state.mode = Modes.link)(stream, state); return handlePhraseModifier(stream, state, ch); }, attributes: function(stream, state) { state.mode = Modes.layoutLength; if (stream.match(RE("attributes"))) return tokenStylesWith(state, TOKEN_STYLES.attributes); else return tokenStyles(state); }, layoutLength: function(stream, state) { if (stream.eat(".") && stream.eat(".")) state.spanningLayout = true; state.mode = Modes.text; return tokenStyles(state); }, list: function(stream, state) { var match = stream.match(RE("list")); state.listDepth = match[0].length; var listMod = (state.listDepth - 1) % 3; if (!listMod) state.layoutType = "list1"; else if (listMod === 1) state.layoutType = "list2"; else state.layoutType = "list3"; state.mode = Modes.attributes; return tokenStyles(state); }, link: function(stream, state) { state.mode = Modes.text; if (stream.match(RE("link"))) { stream.match(/\S+/); return tokenStylesWith(state, TOKEN_STYLES.link); } return tokenStyles(state); }, linkDefinition: function(stream, state) { stream.skipToEnd(); return tokenStylesWith(state, TOKEN_STYLES.linkDefinition); }, definitionList: function(stream, state) { stream.match(RE("definitionList")); state.layoutType = "definitionList"; if (stream.match(/\s*$/)) state.spanningLayout = true; else state.mode = Modes.attributes; return tokenStyles(state); }, html: function(stream, state) { stream.skipToEnd(); return tokenStylesWith(state, TOKEN_STYLES.html); }, table: function(stream, state) { state.layoutType = "table"; return (state.mode = Modes.tableCell)(stream, state); }, tableCell: function(stream, state) { if (stream.match(RE("tableHeading"))) state.tableHeading = true; else stream.eat("|"); state.mode = Modes.tableCellAttributes; return tokenStyles(state); }, tableCellAttributes: function(stream, state) { state.mode = Modes.tableText; if (stream.match(RE("tableCellAttributes"))) return tokenStylesWith(state, TOKEN_STYLES.attributes); else return tokenStyles(state); }, tableText: function(stream, state) { if (stream.match(RE("tableText"))) return tokenStyles(state); if (stream.peek() === "|") { // end of cell state.mode = Modes.tableCell; return tokenStyles(state); } return handlePhraseModifier(stream, state, stream.next()); } }; CodeMirror.defineMode("textile", function() { return { startState: function() { return { mode: Modes.newLayout }; }, token: function(stream, state) { if (stream.sol()) startNewLine(stream, state); return state.mode(stream, state); }, blankLine: blankLine }; }); CodeMirror.defineMIME("text/x-textile", "textile"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/tiddlywiki/tiddlywiki.css ================================================ span.cm-underlined { text-decoration: underline; } span.cm-strikethrough { text-decoration: line-through; } span.cm-brace { color: #170; font-weight: bold; } span.cm-table { color: blue; font-weight: bold; } ================================================ FILE: _files/assets/codemirror@6.65.7/mode/tiddlywiki/tiddlywiki.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /*** |''Name''|tiddlywiki.js| |''Description''|Enables TiddlyWikiy syntax highlighting using CodeMirror| |''Author''|PMario| |''Version''|0.1.7| |''Status''|''stable''| |''Source''|[[GitHub|https://github.com/pmario/CodeMirror2/blob/tw-syntax/mode/tiddlywiki]]| |''Documentation''|https://codemirror.tiddlyspace.com/| |''License''|[[MIT License|http://www.opensource.org/licenses/mit-license.php]]| |''CoreVersion''|2.5.0| |''Requires''|codemirror.js| |''Keywords''|syntax highlighting color code mirror codemirror| ! Info CoreVersion parameter is needed for TiddlyWiki only! ***/ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("tiddlywiki", function () { // Tokenizer var textwords = {}; var keywords = { "allTags": true, "closeAll": true, "list": true, "newJournal": true, "newTiddler": true, "permaview": true, "saveChanges": true, "search": true, "slider": true, "tabs": true, "tag": true, "tagging": true, "tags": true, "tiddler": true, "timeline": true, "today": true, "version": true, "option": true, "with": true, "filter": true }; var isSpaceName = /[\w_\-]/i, reHR = /^\-\-\-\-+$/, //
reWikiCommentStart = /^\/\*\*\*$/, // /*** reWikiCommentStop = /^\*\*\*\/$/, // ***/ reBlockQuote = /^<<<$/, reJsCodeStart = /^\/\/\{\{\{$/, // //{{{ js block start reJsCodeStop = /^\/\/\}\}\}$/, // //}}} js stop reXmlCodeStart = /^$/, // xml block start reXmlCodeStop = /^$/, // xml stop reCodeBlockStart = /^\{\{\{$/, // {{{ TW text div block start reCodeBlockStop = /^\}\}\}$/, // }}} TW text stop reUntilCodeStop = /.*?\}\}\}/; function chain(stream, state, f) { state.tokenize = f; return f(stream, state); } function tokenBase(stream, state) { var sol = stream.sol(), ch = stream.peek(); state.block = false; // indicates the start of a code block. // check start of blocks if (sol && /[<\/\*{}\-]/.test(ch)) { if (stream.match(reCodeBlockStart)) { state.block = true; return chain(stream, state, twTokenCode); } if (stream.match(reBlockQuote)) return 'quote'; if (stream.match(reWikiCommentStart) || stream.match(reWikiCommentStop)) return 'comment'; if (stream.match(reJsCodeStart) || stream.match(reJsCodeStop) || stream.match(reXmlCodeStart) || stream.match(reXmlCodeStop)) return 'comment'; if (stream.match(reHR)) return 'hr'; } stream.next(); if (sol && /[\/\*!#;:>|]/.test(ch)) { if (ch == "!") { // tw header stream.skipToEnd(); return "header"; } if (ch == "*") { // tw list stream.eatWhile('*'); return "comment"; } if (ch == "#") { // tw numbered list stream.eatWhile('#'); return "comment"; } if (ch == ";") { // definition list, term stream.eatWhile(';'); return "comment"; } if (ch == ":") { // definition list, description stream.eatWhile(':'); return "comment"; } if (ch == ">") { // single line quote stream.eatWhile(">"); return "quote"; } if (ch == '|') return 'header'; } if (ch == '{' && stream.match('{{')) return chain(stream, state, twTokenCode); // rudimentary html:// file:// link matching. TW knows much more ... if (/[hf]/i.test(ch) && /[ti]/i.test(stream.peek()) && stream.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i)) return "link"; // just a little string indicator, don't want to have the whole string covered if (ch == '"') return 'string'; if (ch == '~') // _no_ CamelCase indicator should be bold return 'brace'; if (/[\[\]]/.test(ch) && stream.match(ch)) // check for [[..]] return 'brace'; if (ch == "@") { // check for space link. TODO fix @@...@@ highlighting stream.eatWhile(isSpaceName); return "link"; } if (/\d/.test(ch)) { // numbers stream.eatWhile(/\d/); return "number"; } if (ch == "/") { // tw invisible comment if (stream.eat("%")) { return chain(stream, state, twTokenComment); } else if (stream.eat("/")) { // return chain(stream, state, twTokenEm); } } if (ch == "_" && stream.eat("_")) // tw underline return chain(stream, state, twTokenUnderline); // strikethrough and mdash handling if (ch == "-" && stream.eat("-")) { // if strikethrough looks ugly, change CSS. if (stream.peek() != ' ') return chain(stream, state, twTokenStrike); // mdash if (stream.peek() == ' ') return 'brace'; } if (ch == "'" && stream.eat("'")) // tw bold return chain(stream, state, twTokenStrong); if (ch == "<" && stream.eat("<")) // tw macro return chain(stream, state, twTokenMacro); // core macro handling stream.eatWhile(/[\w\$_]/); return textwords.propertyIsEnumerable(stream.current()) ? "keyword" : null } // tw invisible comment function twTokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "%"); } return "comment"; } // tw strong / bold function twTokenStrong(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "'" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "'"); } return "strong"; } // tw code function twTokenCode(stream, state) { var sb = state.block; if (sb && stream.current()) { return "comment"; } if (!sb && stream.match(reUntilCodeStop)) { state.tokenize = tokenBase; return "comment"; } if (sb && stream.sol() && stream.match(reCodeBlockStop)) { state.tokenize = tokenBase; return "comment"; } stream.next(); return "comment"; } // tw em / italic function twTokenEm(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "/"); } return "em"; } // tw underlined text function twTokenUnderline(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "_" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "_"); } return "underlined"; } // tw strike through text looks ugly // change CSS if needed function twTokenStrike(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "-" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "-"); } return "strikethrough"; } // macro function twTokenMacro(stream, state) { if (stream.current() == '<<') { return 'macro'; } var ch = stream.next(); if (!ch) { state.tokenize = tokenBase; return null; } if (ch == ">") { if (stream.peek() == '>') { stream.next(); state.tokenize = tokenBase; return "macro"; } } stream.eatWhile(/[\w\$_]/); return keywords.propertyIsEnumerable(stream.current()) ? "keyword" : null } // Interface return { startState: function () { return {tokenize: tokenBase}; }, token: function (stream, state) { if (stream.eatSpace()) return null; var style = state.tokenize(stream, state); return style; } }; }); CodeMirror.defineMIME("text/x-tiddlywiki", "tiddlywiki"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/tiki/tiki.css ================================================ .cm-tw-syntaxerror { color: #FFF; background-color: #900; } .cm-tw-deleted { text-decoration: line-through; } .cm-tw-header5 { font-weight: bold; } .cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/ padding-left: 10px; } .cm-tw-box { border-top-width: 0px !important; border-style: solid; border-width: 1px; border-color: inherit; } .cm-tw-underline { text-decoration: underline; } ================================================ FILE: _files/assets/codemirror@6.65.7/mode/tiki/tiki.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('tiki', function(config) { function inBlock(style, terminator, returnTokenizer) { return function(stream, state) { while (!stream.eol()) { if (stream.match(terminator)) { state.tokenize = inText; break; } stream.next(); } if (returnTokenizer) state.tokenize = returnTokenizer; return style; }; } function inLine(style) { return function(stream, state) { while(!stream.eol()) { stream.next(); } state.tokenize = inText; return style; }; } function inText(stream, state) { function chain(parser) { state.tokenize = parser; return parser(stream, state); } var sol = stream.sol(); var ch = stream.next(); //non start of line switch (ch) { //switch is generally much faster than if, so it is used here case "{": //plugin stream.eat("/"); stream.eatSpace(); stream.eatWhile(/[^\s\u00a0=\"\'\/?(}]/); state.tokenize = inPlugin; return "tag"; case "_": //bold if (stream.eat("_")) return chain(inBlock("strong", "__", inText)); break; case "'": //italics if (stream.eat("'")) return chain(inBlock("em", "''", inText)); break; case "(":// Wiki Link if (stream.eat("(")) return chain(inBlock("variable-2", "))", inText)); break; case "[":// Weblink return chain(inBlock("variable-3", "]", inText)); break; case "|": //table if (stream.eat("|")) return chain(inBlock("comment", "||")); break; case "-": if (stream.eat("=")) {//titleBar return chain(inBlock("header string", "=-", inText)); } else if (stream.eat("-")) {//deleted return chain(inBlock("error tw-deleted", "--", inText)); } break; case "=": //underline if (stream.match("==")) return chain(inBlock("tw-underline", "===", inText)); break; case ":": if (stream.eat(":")) return chain(inBlock("comment", "::")); break; case "^": //box return chain(inBlock("tw-box", "^")); break; case "~": //np if (stream.match("np~")) return chain(inBlock("meta", "~/np~")); break; } //start of line types if (sol) { switch (ch) { case "!": //header at start of line if (stream.match('!!!!!')) { return chain(inLine("header string")); } else if (stream.match('!!!!')) { return chain(inLine("header string")); } else if (stream.match('!!!')) { return chain(inLine("header string")); } else if (stream.match('!!')) { return chain(inLine("header string")); } else { return chain(inLine("header string")); } break; case "*": //unordered list line item, or
  • at start of line case "#": //ordered list line item, or
  • at start of line case "+": //ordered list line item, or
  • at start of line return chain(inLine("tw-listitem bracket")); break; } } //stream.eatWhile(/[&{]/); was eating up plugins, turned off to act less like html and more like tiki return null; } var indentUnit = config.indentUnit; // Return variables for tokenizers var pluginName, type; function inPlugin(stream, state) { var ch = stream.next(); var peek = stream.peek(); if (ch == "}") { state.tokenize = inText; //type = ch == ")" ? "endPlugin" : "selfclosePlugin"; inPlugin return "tag"; } else if (ch == "(" || ch == ")") { return "bracket"; } else if (ch == "=") { type = "equals"; if (peek == ">") { stream.next(); peek = stream.peek(); } //here we detect values directly after equal character with no quotes if (!/[\'\"]/.test(peek)) { state.tokenize = inAttributeNoQuote(); } //end detect values return "operator"; } else if (/[\'\"]/.test(ch)) { state.tokenize = inAttribute(ch); return state.tokenize(stream, state); } else { stream.eatWhile(/[^\s\u00a0=\"\'\/?]/); return "keyword"; } } function inAttribute(quote) { return function(stream, state) { while (!stream.eol()) { if (stream.next() == quote) { state.tokenize = inPlugin; break; } } return "string"; }; } function inAttributeNoQuote() { return function(stream, state) { while (!stream.eol()) { var ch = stream.next(); var peek = stream.peek(); if (ch == " " || ch == "," || /[ )}]/.test(peek)) { state.tokenize = inPlugin; break; } } return "string"; }; } var curState, setStyle; function pass() { for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]); } function cont() { pass.apply(null, arguments); return true; } function pushContext(pluginName, startOfLine) { var noIndent = curState.context && curState.context.noIndent; curState.context = { prev: curState.context, pluginName: pluginName, indent: curState.indented, startOfLine: startOfLine, noIndent: noIndent }; } function popContext() { if (curState.context) curState.context = curState.context.prev; } function element(type) { if (type == "openPlugin") {curState.pluginName = pluginName; return cont(attributes, endplugin(curState.startOfLine));} else if (type == "closePlugin") { var err = false; if (curState.context) { err = curState.context.pluginName != pluginName; popContext(); } else { err = true; } if (err) setStyle = "error"; return cont(endcloseplugin(err)); } else if (type == "string") { if (!curState.context || curState.context.name != "!cdata") pushContext("!cdata"); if (curState.tokenize == inText) popContext(); return cont(); } else return cont(); } function endplugin(startOfLine) { return function(type) { if ( type == "selfclosePlugin" || type == "endPlugin" ) return cont(); if (type == "endPlugin") {pushContext(curState.pluginName, startOfLine); return cont();} return cont(); }; } function endcloseplugin(err) { return function(type) { if (err) setStyle = "error"; if (type == "endPlugin") return cont(); return pass(); }; } function attributes(type) { if (type == "keyword") {setStyle = "attribute"; return cont(attributes);} if (type == "equals") return cont(attvalue, attributes); return pass(); } function attvalue(type) { if (type == "keyword") {setStyle = "string"; return cont();} if (type == "string") return cont(attvaluemaybe); return pass(); } function attvaluemaybe(type) { if (type == "string") return cont(attvaluemaybe); else return pass(); } return { startState: function() { return {tokenize: inText, cc: [], indented: 0, startOfLine: true, pluginName: null, context: null}; }, token: function(stream, state) { if (stream.sol()) { state.startOfLine = true; state.indented = stream.indentation(); } if (stream.eatSpace()) return null; setStyle = type = pluginName = null; var style = state.tokenize(stream, state); if ((style || type) && style != "comment") { curState = state; while (true) { var comb = state.cc.pop() || element; if (comb(type || style)) break; } } state.startOfLine = false; return setStyle || style; }, indent: function(state, textAfter) { var context = state.context; if (context && context.noIndent) return 0; if (context && /^{\//.test(textAfter)) context = context.prev; while (context && !context.startOfLine) context = context.prev; if (context) return context.indent + indentUnit; else return 0; }, electricChars: "/" }; }); CodeMirror.defineMIME("text/tiki", "tiki"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/toml/toml.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("toml", function () { return { startState: function () { return { inString: false, stringType: "", lhs: true, inArray: 0 }; }, token: function (stream, state) { //check for state changes if (!state.inString && ((stream.peek() == '"') || (stream.peek() == "'"))) { state.stringType = stream.peek(); stream.next(); // Skip quote state.inString = true; // Update state } if (stream.sol() && state.inArray === 0) { state.lhs = true; } //return state if (state.inString) { while (state.inString && !stream.eol()) { if (stream.peek() === state.stringType) { stream.next(); // Skip quote state.inString = false; // Clear flag } else if (stream.peek() === '\\') { stream.next(); stream.next(); } else { stream.match(/^.[^\\\"\']*/); } } return state.lhs ? "property string" : "string"; // Token style } else if (state.inArray && stream.peek() === ']') { stream.next(); state.inArray--; return 'bracket'; } else if (state.lhs && stream.peek() === '[' && stream.skipTo(']')) { stream.next();//skip closing ] // array of objects has an extra open & close [] if (stream.peek() === ']') stream.next(); return "atom"; } else if (stream.peek() === "#") { stream.skipToEnd(); return "comment"; } else if (stream.eatSpace()) { return null; } else if (state.lhs && stream.eatWhile(function (c) { return c != '=' && c != ' '; })) { return "property"; } else if (state.lhs && stream.peek() === "=") { stream.next(); state.lhs = false; return null; } else if (!state.lhs && stream.match(/^\d\d\d\d[\d\-\:\.T]*Z/)) { return 'atom'; //date } else if (!state.lhs && (stream.match('true') || stream.match('false'))) { return 'atom'; } else if (!state.lhs && stream.peek() === '[') { state.inArray++; stream.next(); return 'bracket'; } else if (!state.lhs && stream.match(/^\-?\d+(?:\.\d+)?/)) { return 'number'; } else if (!stream.eatSpace()) { stream.next(); } return null; } }; }); CodeMirror.defineMIME('text/x-toml', 'toml'); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/tornado/tornado.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../../addon/mode/overlay")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../../addon/mode/overlay"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("tornado:inner", function() { var keywords = ["and","as","assert","autoescape","block","break","class","comment","context", "continue","datetime","def","del","elif","else","end","escape","except", "exec","extends","false","finally","for","from","global","if","import","in", "include","is","json_encode","lambda","length","linkify","load","module", "none","not","or","pass","print","put","raise","raw","return","self","set", "squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"]; keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b"); function tokenBase (stream, state) { stream.eatWhile(/[^\{]/); var ch = stream.next(); if (ch == "{") { if (ch = stream.eat(/\{|%|#/)) { state.tokenize = inTag(ch); return "tag"; } } } function inTag (close) { if (close == "{") { close = "}"; } return function (stream, state) { var ch = stream.next(); if ((ch == close) && stream.eat("}")) { state.tokenize = tokenBase; return "tag"; } if (stream.match(keywords)) { return "keyword"; } return close == "#" ? "comment" : "string"; }; } return { startState: function () { return {tokenize: tokenBase}; }, token: function (stream, state) { return state.tokenize(stream, state); } }; }); CodeMirror.defineMode("tornado", function(config) { var htmlBase = CodeMirror.getMode(config, "text/html"); var tornadoInner = CodeMirror.getMode(config, "tornado:inner"); return CodeMirror.overlayMode(htmlBase, tornadoInner); }); CodeMirror.defineMIME("text/x-tornado", "tornado"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/troff/troff.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) define(["../../lib/codemirror"], mod); else mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('troff', function() { var words = {}; function tokenBase(stream) { if (stream.eatSpace()) return null; var sol = stream.sol(); var ch = stream.next(); if (ch === '\\') { if (stream.match('fB') || stream.match('fR') || stream.match('fI') || stream.match('u') || stream.match('d') || stream.match('%') || stream.match('&')) { return 'string'; } if (stream.match('m[')) { stream.skipTo(']'); stream.next(); return 'string'; } if (stream.match('s+') || stream.match('s-')) { stream.eatWhile(/[\d-]/); return 'string'; } if (stream.match('\(') || stream.match('*\(')) { stream.eatWhile(/[\w-]/); return 'string'; } return 'string'; } if (sol && (ch === '.' || ch === '\'')) { if (stream.eat('\\') && stream.eat('\"')) { stream.skipToEnd(); return 'comment'; } } if (sol && ch === '.') { if (stream.match('B ') || stream.match('I ') || stream.match('R ')) { return 'attribute'; } if (stream.match('TH ') || stream.match('SH ') || stream.match('SS ') || stream.match('HP ')) { stream.skipToEnd(); return 'quote'; } if ((stream.match(/[A-Z]/) && stream.match(/[A-Z]/)) || (stream.match(/[a-z]/) && stream.match(/[a-z]/))) { return 'attribute'; } } stream.eatWhile(/[\w-]/); var cur = stream.current(); return words.hasOwnProperty(cur) ? words[cur] : null; } function tokenize(stream, state) { return (state.tokens[0] || tokenBase) (stream, state); }; return { startState: function() {return {tokens:[]};}, token: function(stream, state) { return tokenize(stream, state); } }; }); CodeMirror.defineMIME('text/troff', 'troff'); CodeMirror.defineMIME('text/x-troff', 'troff'); CodeMirror.defineMIME('application/x-troff', 'troff'); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/ttcn/ttcn.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("ttcn", function(config, parserConfig) { var indentUnit = config.indentUnit, keywords = parserConfig.keywords || {}, builtin = parserConfig.builtin || {}, timerOps = parserConfig.timerOps || {}, portOps = parserConfig.portOps || {}, configOps = parserConfig.configOps || {}, verdictOps = parserConfig.verdictOps || {}, sutOps = parserConfig.sutOps || {}, functionOps = parserConfig.functionOps || {}, verdictConsts = parserConfig.verdictConsts || {}, booleanConsts = parserConfig.booleanConsts || {}, otherConsts = parserConfig.otherConsts || {}, types = parserConfig.types || {}, visibilityModifiers = parserConfig.visibilityModifiers || {}, templateMatch = parserConfig.templateMatch || {}, multiLineStrings = parserConfig.multiLineStrings, indentStatements = parserConfig.indentStatements !== false; var isOperatorChar = /[+\-*&@=<>!\/]/; var curPunc; function tokenBase(stream, state) { var ch = stream.next(); if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (/[\[\]{}\(\),;\\:\?\.]/.test(ch)) { curPunc = ch; return "punctuation"; } if (ch == "#"){ stream.skipToEnd(); return "atom preprocessor"; } if (ch == "%"){ stream.eatWhile(/\b/); return "atom ttcn3Macros"; } if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } if (ch == "/") { if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } } if (isOperatorChar.test(ch)) { if(ch == "@"){ if(stream.match("try") || stream.match("catch") || stream.match("lazy")){ return "keyword"; } } stream.eatWhile(isOperatorChar); return "operator"; } stream.eatWhile(/[\w\$_\xa1-\uffff]/); var cur = stream.current(); if (keywords.propertyIsEnumerable(cur)) return "keyword"; if (builtin.propertyIsEnumerable(cur)) return "builtin"; if (timerOps.propertyIsEnumerable(cur)) return "def timerOps"; if (configOps.propertyIsEnumerable(cur)) return "def configOps"; if (verdictOps.propertyIsEnumerable(cur)) return "def verdictOps"; if (portOps.propertyIsEnumerable(cur)) return "def portOps"; if (sutOps.propertyIsEnumerable(cur)) return "def sutOps"; if (functionOps.propertyIsEnumerable(cur)) return "def functionOps"; if (verdictConsts.propertyIsEnumerable(cur)) return "string verdictConsts"; if (booleanConsts.propertyIsEnumerable(cur)) return "string booleanConsts"; if (otherConsts.propertyIsEnumerable(cur)) return "string otherConsts"; if (types.propertyIsEnumerable(cur)) return "builtin types"; if (visibilityModifiers.propertyIsEnumerable(cur)) return "builtin visibilityModifiers"; if (templateMatch.propertyIsEnumerable(cur)) return "atom templateMatch"; return "variable"; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped){ var afterQuote = stream.peek(); //look if the character after the quote is like the B in '10100010'B if (afterQuote){ afterQuote = afterQuote.toLowerCase(); if(afterQuote == "b" || afterQuote == "h" || afterQuote == "o") stream.next(); } end = true; break; } escaped = !escaped && next == "\\"; } if (end || !(escaped || multiLineStrings)) state.tokenize = null; return "string"; }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = null; break; } maybeEnd = (ch == "*"); } return "comment"; } function Context(indented, column, type, align, prev) { this.indented = indented; this.column = column; this.type = type; this.align = align; this.prev = prev; } function pushContext(state, col, type) { var indent = state.indented; if (state.context && state.context.type == "statement") indent = state.context.indented; return state.context = new Context(indent, col, type, null, state.context); } function popContext(state) { var t = state.context.type; if (t == ")" || t == "]" || t == "}") state.indented = state.context.indented; return state.context = state.context.prev; } //Interface return { startState: function(basecolumn) { return { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), indented: 0, startOfLine: true }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; } if (stream.eatSpace()) return null; curPunc = null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment") return style; if (ctx.align == null) ctx.align = true; if ((curPunc == ";" || curPunc == ":" || curPunc == ",") && ctx.type == "statement"){ popContext(state); } else if (curPunc == "{") pushContext(state, stream.column(), "}"); else if (curPunc == "[") pushContext(state, stream.column(), "]"); else if (curPunc == "(") pushContext(state, stream.column(), ")"); else if (curPunc == "}") { while (ctx.type == "statement") ctx = popContext(state); if (ctx.type == "}") ctx = popContext(state); while (ctx.type == "statement") ctx = popContext(state); } else if (curPunc == ctx.type) popContext(state); else if (indentStatements && (((ctx.type == "}" || ctx.type == "top") && curPunc != ';') || (ctx.type == "statement" && curPunc == "newstatement"))) pushContext(state, stream.column(), "statement"); state.startOfLine = false; return style; }, electricChars: "{}", blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//", fold: "brace" }; }); function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } function def(mimes, mode) { if (typeof mimes == "string") mimes = [mimes]; var words = []; function add(obj) { if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop)) words.push(prop); } add(mode.keywords); add(mode.builtin); add(mode.timerOps); add(mode.portOps); if (words.length) { mode.helperType = mimes[0]; CodeMirror.registerHelper("hintWords", mimes[0], words); } for (var i = 0; i < mimes.length; ++i) CodeMirror.defineMIME(mimes[i], mode); } def(["text/x-ttcn", "text/x-ttcn3", "text/x-ttcnpp"], { name: "ttcn", keywords: words("activate address alive all alt altstep and and4b any" + " break case component const continue control deactivate" + " display do else encode enumerated except exception" + " execute extends extension external for from function" + " goto group if import in infinity inout interleave" + " label language length log match message mixed mod" + " modifies module modulepar mtc noblock not not4b nowait" + " of on optional or or4b out override param pattern port" + " procedure record recursive rem repeat return runs select" + " self sender set signature system template testcase to" + " type union value valueof var variant while with xor xor4b"), builtin: words("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue" + " decomp decvalue float2int float2str hex2bit hex2int" + " hex2oct hex2str int2bit int2char int2float int2hex" + " int2oct int2str int2unichar isbound ischosen ispresent" + " isvalue lengthof log2str oct2bit oct2char oct2hex oct2int" + " oct2str regexp replace rnd sizeof str2bit str2float" + " str2hex str2int str2oct substr unichar2int unichar2char" + " enum2int"), types: words("anytype bitstring boolean char charstring default float" + " hexstring integer objid octetstring universal verdicttype timer"), timerOps: words("read running start stop timeout"), portOps: words("call catch check clear getcall getreply halt raise receive" + " reply send trigger"), configOps: words("create connect disconnect done kill killed map unmap"), verdictOps: words("getverdict setverdict"), sutOps: words("action"), functionOps: words("apply derefers refers"), verdictConsts: words("error fail inconc none pass"), booleanConsts: words("true false"), otherConsts: words("null NULL omit"), visibilityModifiers: words("private public friend"), templateMatch: words("complement ifpresent subset superset permutation"), multiLineStrings: true }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/ttcn-cfg/ttcn-cfg.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("ttcn-cfg", function(config, parserConfig) { var indentUnit = config.indentUnit, keywords = parserConfig.keywords || {}, fileNCtrlMaskOptions = parserConfig.fileNCtrlMaskOptions || {}, externalCommands = parserConfig.externalCommands || {}, multiLineStrings = parserConfig.multiLineStrings, indentStatements = parserConfig.indentStatements !== false; var isOperatorChar = /[\|]/; var curPunc; function tokenBase(stream, state) { var ch = stream.next(); if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (/[:=]/.test(ch)) { curPunc = ch; return "punctuation"; } if (ch == "#"){ stream.skipToEnd(); return "comment"; } if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } if (ch == "["){ stream.eatWhile(/[\w_\]]/); return "number sectionTitle"; } stream.eatWhile(/[\w\$_]/); var cur = stream.current(); if (keywords.propertyIsEnumerable(cur)) return "keyword"; if (fileNCtrlMaskOptions.propertyIsEnumerable(cur)) return "negative fileNCtrlMaskOptions"; if (externalCommands.propertyIsEnumerable(cur)) return "negative externalCommands"; return "variable"; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped){ var afterNext = stream.peek(); //look if the character if the quote is like the B in '10100010'B if (afterNext){ afterNext = afterNext.toLowerCase(); if(afterNext == "b" || afterNext == "h" || afterNext == "o") stream.next(); } end = true; break; } escaped = !escaped && next == "\\"; } if (end || !(escaped || multiLineStrings)) state.tokenize = null; return "string"; }; } function Context(indented, column, type, align, prev) { this.indented = indented; this.column = column; this.type = type; this.align = align; this.prev = prev; } function pushContext(state, col, type) { var indent = state.indented; if (state.context && state.context.type == "statement") indent = state.context.indented; return state.context = new Context(indent, col, type, null, state.context); } function popContext(state) { var t = state.context.type; if (t == ")" || t == "]" || t == "}") state.indented = state.context.indented; return state.context = state.context.prev; } //Interface return { startState: function(basecolumn) { return { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), indented: 0, startOfLine: true }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; } if (stream.eatSpace()) return null; curPunc = null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment") return style; if (ctx.align == null) ctx.align = true; if ((curPunc == ";" || curPunc == ":" || curPunc == ",") && ctx.type == "statement"){ popContext(state); } else if (curPunc == "{") pushContext(state, stream.column(), "}"); else if (curPunc == "[") pushContext(state, stream.column(), "]"); else if (curPunc == "(") pushContext(state, stream.column(), ")"); else if (curPunc == "}") { while (ctx.type == "statement") ctx = popContext(state); if (ctx.type == "}") ctx = popContext(state); while (ctx.type == "statement") ctx = popContext(state); } else if (curPunc == ctx.type) popContext(state); else if (indentStatements && (((ctx.type == "}" || ctx.type == "top") && curPunc != ';') || (ctx.type == "statement" && curPunc == "newstatement"))) pushContext(state, stream.column(), "statement"); state.startOfLine = false; return style; }, electricChars: "{}", lineComment: "#", fold: "brace" }; }); function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } CodeMirror.defineMIME("text/x-ttcn-cfg", { name: "ttcn-cfg", keywords: words("Yes No LogFile FileMask ConsoleMask AppendFile" + " TimeStampFormat LogEventTypes SourceInfoFormat" + " LogEntityName LogSourceInfo DiskFullAction" + " LogFileNumber LogFileSize MatchingHints Detailed" + " Compact SubCategories Stack Single None Seconds" + " DateTime Time Stop Error Retry Delete TCPPort KillTimer" + " NumHCs UnixSocketsEnabled LocalAddress"), fileNCtrlMaskOptions: words("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING" + " TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP" + " TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION" + " TTCN_USER TTCN_FUNCTION TTCN_STATISTICS" + " TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG" + " EXECUTOR ERROR WARNING PORTEVENT TIMEROP" + " VERDICTOP DEFAULTOP TESTCASE ACTION USER" + " FUNCTION STATISTICS PARALLEL MATCHING DEBUG" + " LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED" + " DEBUG_ENCDEC DEBUG_TESTPORT" + " DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE" + " DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT" + " DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED" + " EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA" + " EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS" + " EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED" + " FUNCTION_RND FUNCTION_UNQUALIFIED" + " MATCHING_DONE MATCHING_MCSUCCESS" + " MATCHING_MCUNSUCC MATCHING_MMSUCCESS" + " MATCHING_MMUNSUCC MATCHING_PCSUCCESS" + " MATCHING_PCUNSUCC MATCHING_PMSUCCESS" + " MATCHING_PMUNSUCC MATCHING_PROBLEM" + " MATCHING_TIMEOUT MATCHING_UNQUALIFIED" + " PARALLEL_PORTCONN PARALLEL_PORTMAP" + " PARALLEL_PTC PARALLEL_UNQUALIFIED" + " PORTEVENT_DUALRECV PORTEVENT_DUALSEND" + " PORTEVENT_MCRECV PORTEVENT_MCSEND" + " PORTEVENT_MMRECV PORTEVENT_MMSEND" + " PORTEVENT_MQUEUE PORTEVENT_PCIN" + " PORTEVENT_PCOUT PORTEVENT_PMIN" + " PORTEVENT_PMOUT PORTEVENT_PQUEUE" + " PORTEVENT_STATE PORTEVENT_UNQUALIFIED" + " STATISTICS_UNQUALIFIED STATISTICS_VERDICT" + " TESTCASE_FINISH TESTCASE_START" + " TESTCASE_UNQUALIFIED TIMEROP_GUARD" + " TIMEROP_READ TIMEROP_START TIMEROP_STOP" + " TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED" + " USER_UNQUALIFIED VERDICTOP_FINAL" + " VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT" + " VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"), externalCommands: words("BeginControlPart EndControlPart BeginTestCase" + " EndTestCase"), multiLineStrings: true }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/turtle/turtle.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("turtle", function(config) { var indentUnit = config.indentUnit; var curPunc; function wordRegexp(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); } var ops = wordRegexp([]); var keywords = wordRegexp(["@prefix", "@base", "a"]); var operatorChars = /[*+\-<>=&|]/; function tokenBase(stream, state) { var ch = stream.next(); curPunc = null; if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) { stream.match(/^[^\s\u00a0>]*>?/); return "atom"; } else if (ch == "\"" || ch == "'") { state.tokenize = tokenLiteral(ch); return state.tokenize(stream, state); } else if (/[{}\(\),\.;\[\]]/.test(ch)) { curPunc = ch; return null; } else if (ch == "#") { stream.skipToEnd(); return "comment"; } else if (operatorChars.test(ch)) { stream.eatWhile(operatorChars); return null; } else if (ch == ":") { return "operator"; } else { stream.eatWhile(/[_\w\d]/); if(stream.peek() == ":") { return "variable-3"; } else { var word = stream.current(); if(keywords.test(word)) { return "meta"; } if(ch >= "A" && ch <= "Z") { return "comment"; } else { return "keyword"; } } var word = stream.current(); if (ops.test(word)) return null; else if (keywords.test(word)) return "meta"; else return "variable"; } } function tokenLiteral(quote) { return function(stream, state) { var escaped = false, ch; while ((ch = stream.next()) != null) { if (ch == quote && !escaped) { state.tokenize = tokenBase; break; } escaped = !escaped && ch == "\\"; } return "string"; }; } function pushContext(state, type, col) { state.context = {prev: state.context, indent: state.indent, col: col, type: type}; } function popContext(state) { state.indent = state.context.indent; state.context = state.context.prev; } return { startState: function() { return {tokenize: tokenBase, context: null, indent: 0, col: 0}; }, token: function(stream, state) { if (stream.sol()) { if (state.context && state.context.align == null) state.context.align = false; state.indent = stream.indentation(); } if (stream.eatSpace()) return null; var style = state.tokenize(stream, state); if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") { state.context.align = true; } if (curPunc == "(") pushContext(state, ")", stream.column()); else if (curPunc == "[") pushContext(state, "]", stream.column()); else if (curPunc == "{") pushContext(state, "}", stream.column()); else if (/[\]\}\)]/.test(curPunc)) { while (state.context && state.context.type == "pattern") popContext(state); if (state.context && curPunc == state.context.type) popContext(state); } else if (curPunc == "." && state.context && state.context.type == "pattern") popContext(state); else if (/atom|string|variable/.test(style) && state.context) { if (/[\}\]]/.test(state.context.type)) pushContext(state, "pattern", stream.column()); else if (state.context.type == "pattern" && !state.context.align) { state.context.align = true; state.context.col = stream.column(); } } return style; }, indent: function(state, textAfter) { var firstChar = textAfter && textAfter.charAt(0); var context = state.context; if (/[\]\}]/.test(firstChar)) while (context && context.type == "pattern") context = context.prev; var closing = context && firstChar == context.type; if (!context) return 0; else if (context.type == "pattern") return context.col; else if (context.align) return context.col + (closing ? 0 : 1); else return context.indent + (closing ? 0 : indentUnit); }, lineComment: "#" }; }); CodeMirror.defineMIME("text/turtle", "turtle"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/twig/twig.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../../addon/mode/multiplex")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../../addon/mode/multiplex"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("twig:inner", function() { var keywords = ["and", "as", "autoescape", "endautoescape", "block", "do", "endblock", "else", "elseif", "extends", "for", "endfor", "embed", "endembed", "filter", "endfilter", "flush", "from", "if", "endif", "in", "is", "include", "import", "not", "or", "set", "spaceless", "endspaceless", "with", "endwith", "trans", "endtrans", "blocktrans", "endblocktrans", "macro", "endmacro", "use", "verbatim", "endverbatim"], operator = /^[+\-*&%=<>!?|~^]/, sign = /^[:\[\(\{]/, atom = ["true", "false", "null", "empty", "defined", "divisibleby", "divisible by", "even", "odd", "iterable", "sameas", "same as"], number = /^(\d[+\-\*\/])?\d+(\.\d+)?/; keywords = new RegExp("((" + keywords.join(")|(") + "))\\b"); atom = new RegExp("((" + atom.join(")|(") + "))\\b"); function tokenBase (stream, state) { var ch = stream.peek(); //Comment if (state.incomment) { if (!stream.skipTo("#}")) { stream.skipToEnd(); } else { stream.eatWhile(/\#|}/); state.incomment = false; } return "comment"; //Tag } else if (state.intag) { //After operator if (state.operator) { state.operator = false; if (stream.match(atom)) { return "atom"; } if (stream.match(number)) { return "number"; } } //After sign if (state.sign) { state.sign = false; if (stream.match(atom)) { return "atom"; } if (stream.match(number)) { return "number"; } } if (state.instring) { if (ch == state.instring) { state.instring = false; } stream.next(); return "string"; } else if (ch == "'" || ch == '"') { state.instring = ch; stream.next(); return "string"; } else if (stream.match(state.intag + "}") || stream.eat("-") && stream.match(state.intag + "}")) { state.intag = false; return "tag"; } else if (stream.match(operator)) { state.operator = true; return "operator"; } else if (stream.match(sign)) { state.sign = true; } else { if (stream.eat(" ") || stream.sol()) { if (stream.match(keywords)) { return "keyword"; } if (stream.match(atom)) { return "atom"; } if (stream.match(number)) { return "number"; } if (stream.sol()) { stream.next(); } } else { stream.next(); } } return "variable"; } else if (stream.eat("{")) { if (stream.eat("#")) { state.incomment = true; if (!stream.skipTo("#}")) { stream.skipToEnd(); } else { stream.eatWhile(/\#|}/); state.incomment = false; } return "comment"; //Open tag } else if (ch = stream.eat(/\{|%/)) { //Cache close tag state.intag = ch; if (ch == "{") { state.intag = "}"; } stream.eat("-"); return "tag"; } } stream.next(); }; return { startState: function () { return {}; }, token: function (stream, state) { return tokenBase(stream, state); } }; }); CodeMirror.defineMode("twig", function(config, parserConfig) { var twigInner = CodeMirror.getMode(config, "twig:inner"); if (!parserConfig || !parserConfig.base) return twigInner; return CodeMirror.multiplexingMode( CodeMirror.getMode(config, parserConfig.base), { open: /\{[{#%]/, close: /[}#%]\}/, mode: twigInner, parseDelimiters: true } ); }); CodeMirror.defineMIME("text/x-twig", "twig"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/vb/vb.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("vb", function(conf, parserConf) { var ERRORCLASS = 'error'; function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); } var singleOperators = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"); var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]'); var doubleOperators = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"); var doubleDelimiters = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"); var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"); var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"); var openingKeywords = ['class','module', 'sub','enum','select','while','if','function', 'get','set','property', 'try', 'structure', 'synclock', 'using', 'with']; var middleKeywords = ['else','elseif','case', 'catch', 'finally']; var endKeywords = ['next','loop']; var operatorKeywords = ['and', "andalso", 'or', 'orelse', 'xor', 'in', 'not', 'is', 'isnot', 'like']; var wordOperators = wordRegexp(operatorKeywords); var commonKeywords = ["#const", "#else", "#elseif", "#end", "#if", "#region", "addhandler", "addressof", "alias", "as", "byref", "byval", "cbool", "cbyte", "cchar", "cdate", "cdbl", "cdec", "cint", "clng", "cobj", "compare", "const", "continue", "csbyte", "cshort", "csng", "cstr", "cuint", "culng", "cushort", "declare", "default", "delegate", "dim", "directcast", "each", "erase", "error", "event", "exit", "explicit", "false", "for", "friend", "gettype", "goto", "handles", "implements", "imports", "infer", "inherits", "interface", "isfalse", "istrue", "lib", "me", "mod", "mustinherit", "mustoverride", "my", "mybase", "myclass", "namespace", "narrowing", "new", "nothing", "notinheritable", "notoverridable", "of", "off", "on", "operator", "option", "optional", "out", "overloads", "overridable", "overrides", "paramarray", "partial", "private", "protected", "public", "raiseevent", "readonly", "redim", "removehandler", "resume", "return", "shadows", "shared", "static", "step", "stop", "strict", "then", "throw", "to", "true", "trycast", "typeof", "until", "until", "when", "widening", "withevents", "writeonly"]; var commontypes = ['object', 'boolean', 'char', 'string', 'byte', 'sbyte', 'short', 'ushort', 'int16', 'uint16', 'integer', 'uinteger', 'int32', 'uint32', 'long', 'ulong', 'int64', 'uint64', 'decimal', 'single', 'double', 'float', 'date', 'datetime', 'intptr', 'uintptr']; var keywords = wordRegexp(commonKeywords); var types = wordRegexp(commontypes); var stringPrefixes = '"'; var opening = wordRegexp(openingKeywords); var middle = wordRegexp(middleKeywords); var closing = wordRegexp(endKeywords); var doubleClosing = wordRegexp(['end']); var doOpening = wordRegexp(['do']); var indentInfo = null; CodeMirror.registerHelper("hintWords", "vb", openingKeywords.concat(middleKeywords).concat(endKeywords) .concat(operatorKeywords).concat(commonKeywords).concat(commontypes)); function indent(_stream, state) { state.currentIndent++; } function dedent(_stream, state) { state.currentIndent--; } // tokenizers function tokenBase(stream, state) { if (stream.eatSpace()) { return null; } var ch = stream.peek(); // Handle Comments if (ch === "'") { stream.skipToEnd(); return 'comment'; } // Handle Number Literals if (stream.match(/^((&H)|(&O))?[0-9\.a-f]/i, false)) { var floatLiteral = false; // Floats if (stream.match(/^\d*\.\d+F?/i)) { floatLiteral = true; } else if (stream.match(/^\d+\.\d*F?/)) { floatLiteral = true; } else if (stream.match(/^\.\d+F?/)) { floatLiteral = true; } if (floatLiteral) { // Float literals may be "imaginary" stream.eat(/J/i); return 'number'; } // Integers var intLiteral = false; // Hex if (stream.match(/^&H[0-9a-f]+/i)) { intLiteral = true; } // Octal else if (stream.match(/^&O[0-7]+/i)) { intLiteral = true; } // Decimal else if (stream.match(/^[1-9]\d*F?/)) { // Decimal literals may be "imaginary" stream.eat(/J/i); // TODO - Can you have imaginary longs? intLiteral = true; } // Zero by itself with no other piece of number. else if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; } if (intLiteral) { // Integer literals may be "long" stream.eat(/L/i); return 'number'; } } // Handle Strings if (stream.match(stringPrefixes)) { state.tokenize = tokenStringFactory(stream.current()); return state.tokenize(stream, state); } // Handle operators and Delimiters if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) { return null; } if (stream.match(doubleOperators) || stream.match(singleOperators) || stream.match(wordOperators)) { return 'operator'; } if (stream.match(singleDelimiters)) { return null; } if (stream.match(doOpening)) { indent(stream,state); state.doInCurrentLine = true; return 'keyword'; } if (stream.match(opening)) { if (! state.doInCurrentLine) indent(stream,state); else state.doInCurrentLine = false; return 'keyword'; } if (stream.match(middle)) { return 'keyword'; } if (stream.match(doubleClosing)) { dedent(stream,state); dedent(stream,state); return 'keyword'; } if (stream.match(closing)) { dedent(stream,state); return 'keyword'; } if (stream.match(types)) { return 'keyword'; } if (stream.match(keywords)) { return 'keyword'; } if (stream.match(identifiers)) { return 'variable'; } // Handle non-detected items stream.next(); return ERRORCLASS; } function tokenStringFactory(delimiter) { var singleline = delimiter.length == 1; var OUTCLASS = 'string'; return function(stream, state) { while (!stream.eol()) { stream.eatWhile(/[^'"]/); if (stream.match(delimiter)) { state.tokenize = tokenBase; return OUTCLASS; } else { stream.eat(/['"]/); } } if (singleline) { if (parserConf.singleLineStringErrors) { return ERRORCLASS; } else { state.tokenize = tokenBase; } } return OUTCLASS; }; } function tokenLexer(stream, state) { var style = state.tokenize(stream, state); var current = stream.current(); // Handle '.' connected identifiers if (current === '.') { style = state.tokenize(stream, state); if (style === 'variable') { return 'variable'; } else { return ERRORCLASS; } } var delimiter_index = '[({'.indexOf(current); if (delimiter_index !== -1) { indent(stream, state ); } if (indentInfo === 'dedent') { if (dedent(stream, state)) { return ERRORCLASS; } } delimiter_index = '])}'.indexOf(current); if (delimiter_index !== -1) { if (dedent(stream, state)) { return ERRORCLASS; } } return style; } var external = { electricChars:"dDpPtTfFeE ", startState: function() { return { tokenize: tokenBase, lastToken: null, currentIndent: 0, nextLineIndent: 0, doInCurrentLine: false }; }, token: function(stream, state) { if (stream.sol()) { state.currentIndent += state.nextLineIndent; state.nextLineIndent = 0; state.doInCurrentLine = 0; } var style = tokenLexer(stream, state); state.lastToken = {style:style, content: stream.current()}; return style; }, indent: function(state, textAfter) { var trueText = textAfter.replace(/^\s+|\s+$/g, '') ; if (trueText.match(closing) || trueText.match(doubleClosing) || trueText.match(middle)) return conf.indentUnit*(state.currentIndent-1); if(state.currentIndent < 0) return 0; return state.currentIndent * conf.indentUnit; }, lineComment: "'" }; return external; }); CodeMirror.defineMIME("text/x-vb", "vb"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/vbscript/vbscript.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE /* For extra ASP classic objects, initialize CodeMirror instance with this option: isASP: true E.G.: var editor = CodeMirror.fromTextArea(document.getElementById("code"), { lineNumbers: true, isASP: true }); */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("vbscript", function(conf, parserConf) { var ERRORCLASS = 'error'; function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); } var singleOperators = new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"); var doubleOperators = new RegExp("^((<>)|(<=)|(>=))"); var singleDelimiters = new RegExp('^[\\.,]'); var brackets = new RegExp('^[\\(\\)]'); var identifiers = new RegExp("^[A-Za-z][_A-Za-z0-9]*"); var openingKeywords = ['class','sub','select','while','if','function', 'property', 'with', 'for']; var middleKeywords = ['else','elseif','case']; var endKeywords = ['next','loop','wend']; var wordOperators = wordRegexp(['and', 'or', 'not', 'xor', 'is', 'mod', 'eqv', 'imp']); var commonkeywords = ['dim', 'redim', 'then', 'until', 'randomize', 'byval','byref','new','property', 'exit', 'in', 'const','private', 'public', 'get','set','let', 'stop', 'on error resume next', 'on error goto 0', 'option explicit', 'call', 'me']; //This list was from: http://msdn.microsoft.com/en-us/library/f8tbc79x(v=vs.84).aspx var atomWords = ['true', 'false', 'nothing', 'empty', 'null']; //This list was from: http://msdn.microsoft.com/en-us/library/3ca8tfek(v=vs.84).aspx var builtinFuncsWords = ['abs', 'array', 'asc', 'atn', 'cbool', 'cbyte', 'ccur', 'cdate', 'cdbl', 'chr', 'cint', 'clng', 'cos', 'csng', 'cstr', 'date', 'dateadd', 'datediff', 'datepart', 'dateserial', 'datevalue', 'day', 'escape', 'eval', 'execute', 'exp', 'filter', 'formatcurrency', 'formatdatetime', 'formatnumber', 'formatpercent', 'getlocale', 'getobject', 'getref', 'hex', 'hour', 'inputbox', 'instr', 'instrrev', 'int', 'fix', 'isarray', 'isdate', 'isempty', 'isnull', 'isnumeric', 'isobject', 'join', 'lbound', 'lcase', 'left', 'len', 'loadpicture', 'log', 'ltrim', 'rtrim', 'trim', 'maths', 'mid', 'minute', 'month', 'monthname', 'msgbox', 'now', 'oct', 'replace', 'rgb', 'right', 'rnd', 'round', 'scriptengine', 'scriptenginebuildversion', 'scriptenginemajorversion', 'scriptengineminorversion', 'second', 'setlocale', 'sgn', 'sin', 'space', 'split', 'sqr', 'strcomp', 'string', 'strreverse', 'tan', 'time', 'timer', 'timeserial', 'timevalue', 'typename', 'ubound', 'ucase', 'unescape', 'vartype', 'weekday', 'weekdayname', 'year']; //This list was from: http://msdn.microsoft.com/en-us/library/ydz4cfk3(v=vs.84).aspx var builtinConsts = ['vbBlack', 'vbRed', 'vbGreen', 'vbYellow', 'vbBlue', 'vbMagenta', 'vbCyan', 'vbWhite', 'vbBinaryCompare', 'vbTextCompare', 'vbSunday', 'vbMonday', 'vbTuesday', 'vbWednesday', 'vbThursday', 'vbFriday', 'vbSaturday', 'vbUseSystemDayOfWeek', 'vbFirstJan1', 'vbFirstFourDays', 'vbFirstFullWeek', 'vbGeneralDate', 'vbLongDate', 'vbShortDate', 'vbLongTime', 'vbShortTime', 'vbObjectError', 'vbOKOnly', 'vbOKCancel', 'vbAbortRetryIgnore', 'vbYesNoCancel', 'vbYesNo', 'vbRetryCancel', 'vbCritical', 'vbQuestion', 'vbExclamation', 'vbInformation', 'vbDefaultButton1', 'vbDefaultButton2', 'vbDefaultButton3', 'vbDefaultButton4', 'vbApplicationModal', 'vbSystemModal', 'vbOK', 'vbCancel', 'vbAbort', 'vbRetry', 'vbIgnore', 'vbYes', 'vbNo', 'vbCr', 'VbCrLf', 'vbFormFeed', 'vbLf', 'vbNewLine', 'vbNullChar', 'vbNullString', 'vbTab', 'vbVerticalTab', 'vbUseDefault', 'vbTrue', 'vbFalse', 'vbEmpty', 'vbNull', 'vbInteger', 'vbLong', 'vbSingle', 'vbDouble', 'vbCurrency', 'vbDate', 'vbString', 'vbObject', 'vbError', 'vbBoolean', 'vbVariant', 'vbDataObject', 'vbDecimal', 'vbByte', 'vbArray']; //This list was from: http://msdn.microsoft.com/en-us/library/hkc375ea(v=vs.84).aspx var builtinObjsWords = ['WScript', 'err', 'debug', 'RegExp']; var knownProperties = ['description', 'firstindex', 'global', 'helpcontext', 'helpfile', 'ignorecase', 'length', 'number', 'pattern', 'source', 'value', 'count']; var knownMethods = ['clear', 'execute', 'raise', 'replace', 'test', 'write', 'writeline', 'close', 'open', 'state', 'eof', 'update', 'addnew', 'end', 'createobject', 'quit']; var aspBuiltinObjsWords = ['server', 'response', 'request', 'session', 'application']; var aspKnownProperties = ['buffer', 'cachecontrol', 'charset', 'contenttype', 'expires', 'expiresabsolute', 'isclientconnected', 'pics', 'status', //response 'clientcertificate', 'cookies', 'form', 'querystring', 'servervariables', 'totalbytes', //request 'contents', 'staticobjects', //application 'codepage', 'lcid', 'sessionid', 'timeout', //session 'scripttimeout']; //server var aspKnownMethods = ['addheader', 'appendtolog', 'binarywrite', 'end', 'flush', 'redirect', //response 'binaryread', //request 'remove', 'removeall', 'lock', 'unlock', //application 'abandon', //session 'getlasterror', 'htmlencode', 'mappath', 'transfer', 'urlencode']; //server var knownWords = knownMethods.concat(knownProperties); builtinObjsWords = builtinObjsWords.concat(builtinConsts); if (conf.isASP){ builtinObjsWords = builtinObjsWords.concat(aspBuiltinObjsWords); knownWords = knownWords.concat(aspKnownMethods, aspKnownProperties); }; var keywords = wordRegexp(commonkeywords); var atoms = wordRegexp(atomWords); var builtinFuncs = wordRegexp(builtinFuncsWords); var builtinObjs = wordRegexp(builtinObjsWords); var known = wordRegexp(knownWords); var stringPrefixes = '"'; var opening = wordRegexp(openingKeywords); var middle = wordRegexp(middleKeywords); var closing = wordRegexp(endKeywords); var doubleClosing = wordRegexp(['end']); var doOpening = wordRegexp(['do']); var noIndentWords = wordRegexp(['on error resume next', 'exit']); var comment = wordRegexp(['rem']); function indent(_stream, state) { state.currentIndent++; } function dedent(_stream, state) { state.currentIndent--; } // tokenizers function tokenBase(stream, state) { if (stream.eatSpace()) { return 'space'; //return null; } var ch = stream.peek(); // Handle Comments if (ch === "'") { stream.skipToEnd(); return 'comment'; } if (stream.match(comment)){ stream.skipToEnd(); return 'comment'; } // Handle Number Literals if (stream.match(/^((&H)|(&O))?[0-9\.]/i, false) && !stream.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i, false)) { var floatLiteral = false; // Floats if (stream.match(/^\d*\.\d+/i)) { floatLiteral = true; } else if (stream.match(/^\d+\.\d*/)) { floatLiteral = true; } else if (stream.match(/^\.\d+/)) { floatLiteral = true; } if (floatLiteral) { // Float literals may be "imaginary" stream.eat(/J/i); return 'number'; } // Integers var intLiteral = false; // Hex if (stream.match(/^&H[0-9a-f]+/i)) { intLiteral = true; } // Octal else if (stream.match(/^&O[0-7]+/i)) { intLiteral = true; } // Decimal else if (stream.match(/^[1-9]\d*F?/)) { // Decimal literals may be "imaginary" stream.eat(/J/i); // TODO - Can you have imaginary longs? intLiteral = true; } // Zero by itself with no other piece of number. else if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; } if (intLiteral) { // Integer literals may be "long" stream.eat(/L/i); return 'number'; } } // Handle Strings if (stream.match(stringPrefixes)) { state.tokenize = tokenStringFactory(stream.current()); return state.tokenize(stream, state); } // Handle operators and Delimiters if (stream.match(doubleOperators) || stream.match(singleOperators) || stream.match(wordOperators)) { return 'operator'; } if (stream.match(singleDelimiters)) { return null; } if (stream.match(brackets)) { return "bracket"; } if (stream.match(noIndentWords)) { state.doInCurrentLine = true; return 'keyword'; } if (stream.match(doOpening)) { indent(stream,state); state.doInCurrentLine = true; return 'keyword'; } if (stream.match(opening)) { if (! state.doInCurrentLine) indent(stream,state); else state.doInCurrentLine = false; return 'keyword'; } if (stream.match(middle)) { return 'keyword'; } if (stream.match(doubleClosing)) { dedent(stream,state); dedent(stream,state); return 'keyword'; } if (stream.match(closing)) { if (! state.doInCurrentLine) dedent(stream,state); else state.doInCurrentLine = false; return 'keyword'; } if (stream.match(keywords)) { return 'keyword'; } if (stream.match(atoms)) { return 'atom'; } if (stream.match(known)) { return 'variable-2'; } if (stream.match(builtinFuncs)) { return 'builtin'; } if (stream.match(builtinObjs)){ return 'variable-2'; } if (stream.match(identifiers)) { return 'variable'; } // Handle non-detected items stream.next(); return ERRORCLASS; } function tokenStringFactory(delimiter) { var singleline = delimiter.length == 1; var OUTCLASS = 'string'; return function(stream, state) { while (!stream.eol()) { stream.eatWhile(/[^'"]/); if (stream.match(delimiter)) { state.tokenize = tokenBase; return OUTCLASS; } else { stream.eat(/['"]/); } } if (singleline) { if (parserConf.singleLineStringErrors) { return ERRORCLASS; } else { state.tokenize = tokenBase; } } return OUTCLASS; }; } function tokenLexer(stream, state) { var style = state.tokenize(stream, state); var current = stream.current(); // Handle '.' connected identifiers if (current === '.') { style = state.tokenize(stream, state); current = stream.current(); if (style && (style.substr(0, 8) === 'variable' || style==='builtin' || style==='keyword')){//|| knownWords.indexOf(current.substring(1)) > -1) { if (style === 'builtin' || style === 'keyword') style='variable'; if (knownWords.indexOf(current.substr(1)) > -1) style='variable-2'; return style; } else { return ERRORCLASS; } } return style; } var external = { electricChars:"dDpPtTfFeE ", startState: function() { return { tokenize: tokenBase, lastToken: null, currentIndent: 0, nextLineIndent: 0, doInCurrentLine: false, ignoreKeyword: false }; }, token: function(stream, state) { if (stream.sol()) { state.currentIndent += state.nextLineIndent; state.nextLineIndent = 0; state.doInCurrentLine = 0; } var style = tokenLexer(stream, state); state.lastToken = {style:style, content: stream.current()}; if (style==='space') style=null; return style; }, indent: function(state, textAfter) { var trueText = textAfter.replace(/^\s+|\s+$/g, '') ; if (trueText.match(closing) || trueText.match(doubleClosing) || trueText.match(middle)) return conf.indentUnit*(state.currentIndent-1); if(state.currentIndent < 0) return 0; return state.currentIndent * conf.indentUnit; } }; return external; }); CodeMirror.defineMIME("text/vbscript", "vbscript"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/velocity/velocity.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("velocity", function() { function parseWords(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var keywords = parseWords("#end #else #break #stop #[[ #]] " + "#{end} #{else} #{break} #{stop}"); var functions = parseWords("#if #elseif #foreach #set #include #parse #macro #define #evaluate " + "#{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"); var specials = parseWords("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"); var isOperatorChar = /[+\-*&%=<>!?:\/|]/; function chain(stream, state, f) { state.tokenize = f; return f(stream, state); } function tokenBase(stream, state) { var beforeParams = state.beforeParams; state.beforeParams = false; var ch = stream.next(); // start of unparsed string? if ((ch == "'") && !state.inString && state.inParams) { state.lastTokenWasBuiltin = false; return chain(stream, state, tokenString(ch)); } // start of parsed string? else if ((ch == '"')) { state.lastTokenWasBuiltin = false; if (state.inString) { state.inString = false; return "string"; } else if (state.inParams) return chain(stream, state, tokenString(ch)); } // is it one of the special signs []{}().,;? Separator? else if (/[\[\]{}\(\),;\.]/.test(ch)) { if (ch == "(" && beforeParams) state.inParams = true; else if (ch == ")") { state.inParams = false; state.lastTokenWasBuiltin = true; } return null; } // start of a number value? else if (/\d/.test(ch)) { state.lastTokenWasBuiltin = false; stream.eatWhile(/[\w\.]/); return "number"; } // multi line comment? else if (ch == "#" && stream.eat("*")) { state.lastTokenWasBuiltin = false; return chain(stream, state, tokenComment); } // unparsed content? else if (ch == "#" && stream.match(/ *\[ *\[/)) { state.lastTokenWasBuiltin = false; return chain(stream, state, tokenUnparsed); } // single line comment? else if (ch == "#" && stream.eat("#")) { state.lastTokenWasBuiltin = false; stream.skipToEnd(); return "comment"; } // variable? else if (ch == "$") { stream.eat("!"); stream.eatWhile(/[\w\d\$_\.{}-]/); // is it one of the specials? if (specials && specials.propertyIsEnumerable(stream.current())) { return "keyword"; } else { state.lastTokenWasBuiltin = true; state.beforeParams = true; return "builtin"; } } // is it a operator? else if (isOperatorChar.test(ch)) { state.lastTokenWasBuiltin = false; stream.eatWhile(isOperatorChar); return "operator"; } else { // get the whole word stream.eatWhile(/[\w\$_{}@]/); var word = stream.current(); // is it one of the listed keywords? if (keywords && keywords.propertyIsEnumerable(word)) return "keyword"; // is it one of the listed functions? if (functions && functions.propertyIsEnumerable(word) || (stream.current().match(/^#@?[a-z0-9_]+ *$/i) && stream.peek()=="(") && !(functions && functions.propertyIsEnumerable(word.toLowerCase()))) { state.beforeParams = true; state.lastTokenWasBuiltin = false; return "keyword"; } if (state.inString) { state.lastTokenWasBuiltin = false; return "string"; } if (stream.pos > word.length && stream.string.charAt(stream.pos-word.length-1)=="." && state.lastTokenWasBuiltin) return "builtin"; // default: just a "word" state.lastTokenWasBuiltin = false; return null; } } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if ((next == quote) && !escaped) { end = true; break; } if (quote=='"' && stream.peek() == '$' && !escaped) { state.inString = true; end = true; break; } escaped = !escaped && next == "\\"; } if (end) state.tokenize = tokenBase; return "string"; }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "#" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return "comment"; } function tokenUnparsed(stream, state) { var maybeEnd = 0, ch; while (ch = stream.next()) { if (ch == "#" && maybeEnd == 2) { state.tokenize = tokenBase; break; } if (ch == "]") maybeEnd++; else if (ch != " ") maybeEnd = 0; } return "meta"; } // Interface return { startState: function() { return { tokenize: tokenBase, beforeParams: false, inParams: false, inString: false, lastTokenWasBuiltin: false }; }, token: function(stream, state) { if (stream.eatSpace()) return null; return state.tokenize(stream, state); }, blockCommentStart: "#*", blockCommentEnd: "*#", lineComment: "##", fold: "velocity" }; }); CodeMirror.defineMIME("text/velocity", "velocity"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/verilog/verilog.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("verilog", function(config, parserConfig) { var indentUnit = config.indentUnit, statementIndentUnit = parserConfig.statementIndentUnit || indentUnit, dontAlignCalls = parserConfig.dontAlignCalls, // compilerDirectivesUseRegularIndentation - If set, Compiler directive // indentation follows the same rules as everything else. Otherwise if // false, compiler directives will track their own indentation. // For example, `ifdef nested inside another `ifndef will be indented, // but a `ifdef inside a function block may not be indented. compilerDirectivesUseRegularIndentation = parserConfig.compilerDirectivesUseRegularIndentation, noIndentKeywords = parserConfig.noIndentKeywords || [], multiLineStrings = parserConfig.multiLineStrings, hooks = parserConfig.hooks || {}; function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } /** * Keywords from IEEE 1800-2012 */ var keywords = words( "accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind " + "bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config " + "const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable " + "dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup " + "endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask " + "enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin " + "function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import " + "incdir include initial inout input inside instance int integer interconnect interface intersect join join_any " + "join_none large let liblist library local localparam logic longint macromodule matches medium modport module " + "nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed " + "parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup " + "pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg " + "reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime " + "s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify " + "specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on " + "table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior " + "trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void " + "wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"); /** Operators from IEEE 1800-2012 unary_operator ::= + | - | ! | ~ | & | ~& | | | ~| | ^ | ~^ | ^~ binary_operator ::= + | - | * | / | % | == | != | === | !== | ==? | !=? | && | || | ** | < | <= | > | >= | & | | | ^ | ^~ | ~^ | >> | << | >>> | <<< | -> | <-> inc_or_dec_operator ::= ++ | -- unary_module_path_operator ::= ! | ~ | & | ~& | | | ~| | ^ | ~^ | ^~ binary_module_path_operator ::= == | != | && | || | & | | | ^ | ^~ | ~^ */ var isOperatorChar = /[\+\-\*\/!~&|^%=?:<>]/; var isBracketChar = /[\[\]{}()]/; var unsignedNumber = /\d[0-9_]*/; var decimalLiteral = /\d*\s*'s?d\s*\d[0-9_]*/i; var binaryLiteral = /\d*\s*'s?b\s*[xz01][xz01_]*/i; var octLiteral = /\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i; var hexLiteral = /\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i; var realLiteral = /(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i; var closingBracketOrWord = /^((`?\w+)|[)}\]])/; var closingBracket = /[)}\]]/; var compilerDirectiveRegex = new RegExp( "^(`(?:ifdef|ifndef|elsif|else|endif|undef|undefineall|define|include|begin_keywords|celldefine|default|" + "nettype|end_keywords|endcelldefine|line|nounconnected_drive|pragma|resetall|timescale|unconnected_drive))\\b"); var compilerDirectiveBeginRegex = /^(`(?:ifdef|ifndef|elsif|else))\b/; var compilerDirectiveEndRegex = /^(`(?:elsif|else|endif))\b/; var curPunc; var curKeyword; // Block openings which are closed by a matching keyword in the form of ("end" + keyword) // E.g. "task" => "endtask" var blockKeywords = words( "case checker class clocking config function generate interface module package " + "primitive program property specify sequence table task" ); // Opening/closing pairs var openClose = {}; for (var keyword in blockKeywords) { openClose[keyword] = "end" + keyword; } openClose["begin"] = "end"; openClose["casex"] = "endcase"; openClose["casez"] = "endcase"; openClose["do" ] = "while"; openClose["fork" ] = "join;join_any;join_none"; openClose["covergroup"] = "endgroup"; openClose["macro_begin"] = "macro_end"; for (var i in noIndentKeywords) { var keyword = noIndentKeywords[i]; if (openClose[keyword]) { openClose[keyword] = undefined; } } // Keywords which open statements that are ended with a semi-colon var statementKeywords = words("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while extern typedef"); function tokenBase(stream, state) { var ch = stream.peek(), style; if (hooks[ch] && (style = hooks[ch](stream, state)) != false) return style; if (hooks.tokenBase && (style = hooks.tokenBase(stream, state)) != false) return style; if (/[,;:\.]/.test(ch)) { curPunc = stream.next(); return null; } if (isBracketChar.test(ch)) { curPunc = stream.next(); return "bracket"; } // Macros (tick-defines) if (ch == '`') { stream.next(); if (stream.eatWhile(/[\w\$_]/)) { var cur = stream.current(); curKeyword = cur; // Macros that end in _begin, are start of block and end with _end if (cur.startsWith("`uvm_") && cur.endsWith("_begin")) { var keywordClose = curKeyword.substr(0,curKeyword.length - 5) + "end"; openClose[cur] = keywordClose; curPunc = "newblock"; } else { stream.eatSpace(); if (stream.peek() == '(') { // Check if this is a block curPunc = "newmacro"; } var withSpace = stream.current(); // Move the stream back before the spaces stream.backUp(withSpace.length - cur.length); } return "def"; } else { return null; } } // System calls if (ch == '$') { stream.next(); if (stream.eatWhile(/[\w\$_]/)) { return "meta"; } else { return null; } } // Time literals if (ch == '#') { stream.next(); stream.eatWhile(/[\d_.]/); return "def"; } // Event if (ch == '@') { stream.next(); stream.eatWhile(/[@]/); return "def"; } // Strings if (ch == '"') { stream.next(); state.tokenize = tokenString(ch); return state.tokenize(stream, state); } // Comments if (ch == "/") { stream.next(); if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } stream.backUp(1); } // Numeric literals if (stream.match(realLiteral) || stream.match(decimalLiteral) || stream.match(binaryLiteral) || stream.match(octLiteral) || stream.match(hexLiteral) || stream.match(unsignedNumber) || stream.match(realLiteral)) { return "number"; } // Operators if (stream.eatWhile(isOperatorChar)) { curPunc = stream.current(); return "meta"; } // Keywords / plain variables if (stream.eatWhile(/[\w\$_]/)) { var cur = stream.current(); if (keywords[cur]) { if (openClose[cur]) { curPunc = "newblock"; if (cur === "fork") { // Fork can be a statement instead of block in cases of: // "disable fork;" and "wait fork;" (trailing semicolon) stream.eatSpace() if (stream.peek() == ';') { curPunc = "newstatement"; } stream.backUp(stream.current().length - cur.length); } } if (statementKeywords[cur]) { curPunc = "newstatement"; } curKeyword = cur; return "keyword"; } return "variable"; } stream.next(); return null; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) {end = true; break;} escaped = !escaped && next == "\\"; } if (end || !(escaped || multiLineStrings)) state.tokenize = tokenBase; return "string"; }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return "comment"; } function Context(indented, column, type, scopekind, align, prev) { this.indented = indented; this.column = column; this.type = type; this.scopekind = scopekind; this.align = align; this.prev = prev; } function pushContext(state, col, type, scopekind) { var indent = state.indented; var c = new Context(indent, col, type, scopekind ? scopekind : "", null, state.context); return state.context = c; } function popContext(state) { var t = state.context.type; if (t == ")" || t == "]" || t == "}") { state.indented = state.context.indented; } return state.context = state.context.prev; } function isClosing(text, contextClosing) { if (text == contextClosing) { return true; } else { // contextClosing may be multiple keywords separated by ; var closingKeywords = contextClosing.split(";"); for (var i in closingKeywords) { if (text == closingKeywords[i]) { return true; } } return false; } } function isInsideScopeKind(ctx, scopekind) { if (ctx == null) { return false; } if (ctx.scopekind === scopekind) { return true; } return isInsideScopeKind(ctx.prev, scopekind); } function buildElectricInputRegEx() { // Reindentation should occur on any bracket char: {}()[] // or on a match of any of the block closing keywords, at // the end of a line var allClosings = []; for (var i in openClose) { if (openClose[i]) { var closings = openClose[i].split(";"); for (var j in closings) { allClosings.push(closings[j]); } } } var re = new RegExp("[{}()\\[\\]]|(" + allClosings.join("|") + ")$"); return re; } // Interface return { // Regex to force current line to reindent electricInput: buildElectricInputRegEx(), startState: function(basecolumn) { var state = { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", "top", false), indented: 0, compilerDirectiveIndented: 0, startOfLine: true }; if (hooks.startState) hooks.startState(state); return state; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; } if (hooks.token) { // Call hook, with an optional return value of a style to override verilog styling. var style = hooks.token(stream, state); if (style !== undefined) { return style; } } if (stream.eatSpace()) return null; curPunc = null; curKeyword = null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment" || style == "meta" || style == "variable") { if (((curPunc === "=") || (curPunc === "<=")) && !isInsideScopeKind(ctx, "assignment")) { // '<=' could be nonblocking assignment or lessthan-equals (which shouldn't cause indent) // Search through the context to see if we are already in an assignment. // '=' could be inside port declaration with comma or ')' afterward, or inside for(;;) block. pushContext(state, stream.column() + curPunc.length, "assignment", "assignment"); if (ctx.align == null) ctx.align = true; } return style; } if (ctx.align == null) ctx.align = true; var isClosingAssignment = ctx.type == "assignment" && closingBracket.test(curPunc) && ctx.prev && ctx.prev.type === curPunc; if (curPunc == ctx.type || isClosingAssignment) { if (isClosingAssignment) { ctx = popContext(state); } ctx = popContext(state); if (curPunc == ")") { // Handle closing macros, assuming they could have a semicolon or begin/end block inside. if (ctx && (ctx.type === "macro")) { ctx = popContext(state); while (ctx && (ctx.type == "statement" || ctx.type == "assignment")) ctx = popContext(state); } } else if (curPunc == "}") { // Handle closing statements like constraint block: "foreach () {}" which // do not have semicolon at end. if (ctx && (ctx.type === "statement")) { while (ctx && (ctx.type == "statement")) ctx = popContext(state); } } } else if (((curPunc == ";" || curPunc == ",") && (ctx.type == "statement" || ctx.type == "assignment")) || (ctx.type && isClosing(curKeyword, ctx.type))) { ctx = popContext(state); while (ctx && (ctx.type == "statement" || ctx.type == "assignment")) ctx = popContext(state); } else if (curPunc == "{") { pushContext(state, stream.column(), "}"); } else if (curPunc == "[") { pushContext(state, stream.column(), "]"); } else if (curPunc == "(") { pushContext(state, stream.column(), ")"); } else if (ctx && ctx.type == "endcase" && curPunc == ":") { pushContext(state, stream.column(), "statement", "case"); } else if (curPunc == "newstatement") { pushContext(state, stream.column(), "statement", curKeyword); } else if (curPunc == "newblock") { if (curKeyword == "function" && ctx && (ctx.type == "statement" || ctx.type == "endgroup")) { // The 'function' keyword can appear in some other contexts where it actually does not // indicate a function (import/export DPI and covergroup definitions). // Do nothing in this case } else if (curKeyword == "task" && ctx && ctx.type == "statement") { // Same thing for task } else if (curKeyword == "class" && ctx && ctx.type == "statement") { // Same thing for class (e.g. typedef) } else { var close = openClose[curKeyword]; pushContext(state, stream.column(), close, curKeyword); } } else if (curPunc == "newmacro" || (curKeyword && curKeyword.match(compilerDirectiveRegex))) { if (curPunc == "newmacro") { // Macros (especially if they have parenthesis) potentially have a semicolon // or complete statement/block inside, and should be treated as such. pushContext(state, stream.column(), "macro", "macro"); } if (curKeyword.match(compilerDirectiveEndRegex)) { state.compilerDirectiveIndented -= statementIndentUnit; } if (curKeyword.match(compilerDirectiveBeginRegex)) { state.compilerDirectiveIndented += statementIndentUnit; } } state.startOfLine = false; return style; }, indent: function(state, textAfter) { if (state.tokenize != tokenBase && state.tokenize != null) return CodeMirror.Pass; if (hooks.indent) { var fromHook = hooks.indent(state); if (fromHook >= 0) return fromHook; } var ctx = state.context, firstChar = textAfter && textAfter.charAt(0); if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev; var closing = false; var possibleClosing = textAfter.match(closingBracketOrWord); if (possibleClosing) closing = isClosing(possibleClosing[0], ctx.type); if (!compilerDirectivesUseRegularIndentation && textAfter.match(compilerDirectiveRegex)) { if (textAfter.match(compilerDirectiveEndRegex)) { return state.compilerDirectiveIndented - statementIndentUnit; } return state.compilerDirectiveIndented; } if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit); else if ((closingBracket.test(ctx.type) || ctx.type == "assignment") && ctx.align && !dontAlignCalls) return ctx.column + (closing ? 0 : 1); else if (ctx.type == ")" && !closing) return ctx.indented + statementIndentUnit; else return ctx.indented + (closing ? 0 : indentUnit); }, blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//", fold: "indent" }; }); CodeMirror.defineMIME("text/x-verilog", { name: "verilog" }); CodeMirror.defineMIME("text/x-systemverilog", { name: "verilog" }); // TL-Verilog mode. // See tl-x.org for language spec. // See the mode in action at makerchip.com. // Contact: steve.hoover@redwoodeda.com // TLV Identifier prefixes. // Note that sign is not treated separately, so "+/-" versions of numeric identifiers // are included. var tlvIdentifierStyle = { "|": "link", ">": "property", // Should condition this off for > TLV 1c. "$": "variable", "$$": "variable", "?$": "qualifier", "?*": "qualifier", "-": "hr", "/": "property", "/-": "property", "@": "variable-3", "@-": "variable-3", "@++": "variable-3", "@+=": "variable-3", "@+=-": "variable-3", "@--": "variable-3", "@-=": "variable-3", "%+": "tag", "%-": "tag", "%": "tag", ">>": "tag", "<<": "tag", "<>": "tag", "#": "tag", // Need to choose a style for this. "^": "attribute", "^^": "attribute", "^!": "attribute", "*": "variable-2", "**": "variable-2", "\\": "keyword", "\"": "comment" }; // Lines starting with these characters define scope (result in indentation). var tlvScopePrefixChars = { "/": "beh-hier", ">": "beh-hier", "-": "phys-hier", "|": "pipe", "?": "when", "@": "stage", "\\": "keyword" }; var tlvIndentUnit = 3; var tlvTrackStatements = false; var tlvIdentMatch = /^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/; // Matches an identifier. // Note that ':' is excluded, because of it's use in [:]. var tlvFirstLevelIndentMatch = /^[! ] /; var tlvLineIndentationMatch = /^[! ] */; var tlvCommentMatch = /^\/[\/\*]/; // Returns a style specific to the scope at the given indentation column. // Type is one of: "indent", "scope-ident", "before-scope-ident". function tlvScopeStyle(state, indentation, type) { // Begin scope. var depth = indentation / tlvIndentUnit; // TODO: Pass this in instead. return "tlv-" + state.tlvIndentationStyle[depth] + "-" + type; } // Return true if the next thing in the stream is an identifier with a mnemonic. function tlvIdentNext(stream) { var match; return (match = stream.match(tlvIdentMatch, false)) && match[2].length > 0; } CodeMirror.defineMIME("text/x-tlv", { name: "verilog", hooks: { electricInput: false, // Return undefined for verilog tokenizing, or style for TLV token (null not used). // Standard CM styles are used for most formatting, but some TL-Verilog-specific highlighting // can be enabled with the definition of cm-tlv-* styles, including highlighting for: // - M4 tokens // - TLV scope indentation // - Statement delimitation (enabled by tlvTrackStatements) token: function(stream, state) { var style = undefined; var match; // Return value of pattern matches. // Set highlighting mode based on code region (TLV or SV). if (stream.sol() && ! state.tlvInBlockComment) { // Process region. if (stream.peek() == '\\') { style = "def"; stream.skipToEnd(); if (stream.string.match(/\\SV/)) { state.tlvCodeActive = false; } else if (stream.string.match(/\\TLV/)){ state.tlvCodeActive = true; } } // Correct indentation in the face of a line prefix char. if (state.tlvCodeActive && stream.pos == 0 && (state.indented == 0) && (match = stream.match(tlvLineIndentationMatch, false))) { state.indented = match[0].length; } // Compute indentation state: // o Auto indentation on next line // o Indentation scope styles var indented = state.indented; var depth = indented / tlvIndentUnit; if (depth <= state.tlvIndentationStyle.length) { // not deeper than current scope var blankline = stream.string.length == indented; var chPos = depth * tlvIndentUnit; if (chPos < stream.string.length) { var bodyString = stream.string.slice(chPos); var ch = bodyString[0]; if (tlvScopePrefixChars[ch] && ((match = bodyString.match(tlvIdentMatch)) && tlvIdentifierStyle[match[1]])) { // This line begins scope. // Next line gets indented one level. indented += tlvIndentUnit; // Style the next level of indentation (except non-region keyword identifiers, // which are statements themselves) if (!(ch == "\\" && chPos > 0)) { state.tlvIndentationStyle[depth] = tlvScopePrefixChars[ch]; if (tlvTrackStatements) {state.statementComment = false;} depth++; } } } // Clear out deeper indentation levels unless line is blank. if (!blankline) { while (state.tlvIndentationStyle.length > depth) { state.tlvIndentationStyle.pop(); } } } // Set next level of indentation. state.tlvNextIndent = indented; } if (state.tlvCodeActive) { // Highlight as TLV. var beginStatement = false; if (tlvTrackStatements) { // This starts a statement if the position is at the scope level // and we're not within a statement leading comment. beginStatement = (stream.peek() != " ") && // not a space (style === undefined) && // not a region identifier !state.tlvInBlockComment && // not in block comment //!stream.match(tlvCommentMatch, false) && // not comment start (stream.column() == state.tlvIndentationStyle.length * tlvIndentUnit); // at scope level if (beginStatement) { if (state.statementComment) { // statement already started by comment beginStatement = false; } state.statementComment = stream.match(tlvCommentMatch, false); // comment start } } var match; if (style !== undefined) { // Region line. style += " " + tlvScopeStyle(state, 0, "scope-ident") } else if (((stream.pos / tlvIndentUnit) < state.tlvIndentationStyle.length) && (match = stream.match(stream.sol() ? tlvFirstLevelIndentMatch : /^ /))) { // Indentation style = // make this style distinct from the previous one to prevent // codemirror from combining spans "tlv-indent-" + (((stream.pos % 2) == 0) ? "even" : "odd") + // and style it " " + tlvScopeStyle(state, stream.pos - tlvIndentUnit, "indent"); // Style the line prefix character. if (match[0].charAt(0) == "!") { style += " tlv-alert-line-prefix"; } // Place a class before a scope identifier. if (tlvIdentNext(stream)) { style += " " + tlvScopeStyle(state, stream.pos, "before-scope-ident"); } } else if (state.tlvInBlockComment) { // In a block comment. if (stream.match(/^.*?\*\//)) { // Exit block comment. state.tlvInBlockComment = false; if (tlvTrackStatements && !stream.eol()) { // Anything after comment is assumed to be real statement content. state.statementComment = false; } } else { stream.skipToEnd(); } style = "comment"; } else if ((match = stream.match(tlvCommentMatch)) && !state.tlvInBlockComment) { // Start comment. if (match[0] == "//") { // Line comment. stream.skipToEnd(); } else { // Block comment. state.tlvInBlockComment = true; } style = "comment"; } else if (match = stream.match(tlvIdentMatch)) { // looks like an identifier (or identifier prefix) var prefix = match[1]; var mnemonic = match[2]; if (// is identifier prefix tlvIdentifierStyle.hasOwnProperty(prefix) && // has mnemonic or we're at the end of the line (maybe it hasn't been typed yet) (mnemonic.length > 0 || stream.eol())) { style = tlvIdentifierStyle[prefix]; if (stream.column() == state.indented) { // Begin scope. style += " " + tlvScopeStyle(state, stream.column(), "scope-ident") } } else { // Just swallow one character and try again. // This enables subsequent identifier match with preceding symbol character, which // is legal within a statement. (E.g., !$reset). It also enables detection of // comment start with preceding symbols. stream.backUp(stream.current().length - 1); style = "tlv-default"; } } else if (stream.match(/^\t+/)) { // Highlight tabs, which are illegal. style = "tlv-tab"; } else if (stream.match(/^[\[\]{}\(\);\:]+/)) { // [:], (), {}, ;. style = "meta"; } else if (match = stream.match(/^[mM]4([\+_])?[\w\d_]*/)) { // m4 pre proc style = (match[1] == "+") ? "tlv-m4-plus" : "tlv-m4"; } else if (stream.match(/^ +/)){ // Skip over spaces. if (stream.eol()) { // Trailing spaces. style = "error"; } else { // Non-trailing spaces. style = "tlv-default"; } } else if (stream.match(/^[\w\d_]+/)) { // alpha-numeric token. style = "number"; } else { // Eat the next char w/ no formatting. stream.next(); style = "tlv-default"; } if (beginStatement) { style += " tlv-statement"; } } else { if (stream.match(/^[mM]4([\w\d_]*)/)) { // m4 pre proc style = "tlv-m4"; } } return style; }, indent: function(state) { return (state.tlvCodeActive == true) ? state.tlvNextIndent : -1; }, startState: function(state) { state.tlvIndentationStyle = []; // Styles to use for each level of indentation. state.tlvCodeActive = true; // True when we're in a TLV region (and at beginning of file). state.tlvNextIndent = -1; // The number of spaces to autoindent the next line if tlvCodeActive. state.tlvInBlockComment = false; // True inside /**/ comment. if (tlvTrackStatements) { state.statementComment = false; // True inside a statement's header comment. } } } }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/vhdl/vhdl.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Originally written by Alf Nielsen, re-written by Michael Zhou (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function words(str) { var obj = {}, words = str.split(","); for (var i = 0; i < words.length; ++i) { var allCaps = words[i].toUpperCase(); var firstCap = words[i].charAt(0).toUpperCase() + words[i].slice(1); obj[words[i]] = true; obj[allCaps] = true; obj[firstCap] = true; } return obj; } function metaHook(stream) { stream.eatWhile(/[\w\$_]/); return "meta"; } CodeMirror.defineMode("vhdl", function(config, parserConfig) { var indentUnit = config.indentUnit, atoms = parserConfig.atoms || words("null"), hooks = parserConfig.hooks || {"`": metaHook, "$": metaHook}, multiLineStrings = parserConfig.multiLineStrings; var keywords = words("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block," + "body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case," + "end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for," + "function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage," + "literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map," + "postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal," + "sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"); var blockKeywords = words("architecture,entity,begin,case,port,else,elsif,end,for,function,if"); var isOperatorChar = /[&|~>!\?@#$%&|:\.]+)/, token: "variable-2"}, {regex: /"(?:[^"\\\x00-\x1f\x7f]|\\[nt\\'"]|\\[0-9a-fA-F][0-9a-fA-F])*"/, token: "string"}, {regex: /\(;.*?/, token: "comment", next: "comment"}, {regex: /;;.*$/, token: "comment"}, {regex: /\(/, indent: true}, {regex: /\)/, dedent: true}, ], comment: [ {regex: /.*?;\)/, token: "comment", next: "start"}, {regex: /.*/, token: "comment"}, ], meta: { dontIndentStates: ['comment'], }, }); // https://github.com/WebAssembly/design/issues/981 mentions text/webassembly, // which seems like a reasonable choice, although it's not standard right now. CodeMirror.defineMIME("text/webassembly", "wast"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/webidl/webidl.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b"); }; var builtinArray = [ "Clamp", "Constructor", "EnforceRange", "Exposed", "ImplicitThis", "Global", "PrimaryGlobal", "LegacyArrayClass", "LegacyUnenumerableNamedProperties", "LenientThis", "NamedConstructor", "NewObject", "NoInterfaceObject", "OverrideBuiltins", "PutForwards", "Replaceable", "SameObject", "TreatNonObjectAsNull", "TreatNullAs", "EmptyString", "Unforgeable", "Unscopeable" ]; var builtins = wordRegexp(builtinArray); var typeArray = [ "unsigned", "short", "long", // UnsignedIntegerType "unrestricted", "float", "double", // UnrestrictedFloatType "boolean", "byte", "octet", // Rest of PrimitiveType "Promise", // PromiseType "ArrayBuffer", "DataView", "Int8Array", "Int16Array", "Int32Array", "Uint8Array", "Uint16Array", "Uint32Array", "Uint8ClampedArray", "Float32Array", "Float64Array", // BufferRelatedType "ByteString", "DOMString", "USVString", "sequence", "object", "RegExp", "Error", "DOMException", "FrozenArray", // Rest of NonAnyType "any", // Rest of SingleType "void" // Rest of ReturnType ]; var types = wordRegexp(typeArray); var keywordArray = [ "attribute", "callback", "const", "deleter", "dictionary", "enum", "getter", "implements", "inherit", "interface", "iterable", "legacycaller", "maplike", "partial", "required", "serializer", "setlike", "setter", "static", "stringifier", "typedef", // ArgumentNameKeyword except // "unrestricted" "optional", "readonly", "or" ]; var keywords = wordRegexp(keywordArray); var atomArray = [ "true", "false", // BooleanLiteral "Infinity", "NaN", // FloatLiteral "null" // Rest of ConstValue ]; var atoms = wordRegexp(atomArray); CodeMirror.registerHelper("hintWords", "webidl", builtinArray.concat(typeArray).concat(keywordArray).concat(atomArray)); var startDefArray = ["callback", "dictionary", "enum", "interface"]; var startDefs = wordRegexp(startDefArray); var endDefArray = ["typedef"]; var endDefs = wordRegexp(endDefArray); var singleOperators = /^[:<=>?]/; var integers = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/; var floats = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/; var identifiers = /^_?[A-Za-z][0-9A-Z_a-z-]*/; var identifiersEnd = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/; var strings = /^"[^"]*"/; var multilineComments = /^\/\*.*?\*\//; var multilineCommentsStart = /^\/\*.*/; var multilineCommentsEnd = /^.*?\*\//; function readToken(stream, state) { // whitespace if (stream.eatSpace()) return null; // comment if (state.inComment) { if (stream.match(multilineCommentsEnd)) { state.inComment = false; return "comment"; } stream.skipToEnd(); return "comment"; } if (stream.match("//")) { stream.skipToEnd(); return "comment"; } if (stream.match(multilineComments)) return "comment"; if (stream.match(multilineCommentsStart)) { state.inComment = true; return "comment"; } // integer and float if (stream.match(/^-?[0-9\.]/, false)) { if (stream.match(integers) || stream.match(floats)) return "number"; } // string if (stream.match(strings)) return "string"; // identifier if (state.startDef && stream.match(identifiers)) return "def"; if (state.endDef && stream.match(identifiersEnd)) { state.endDef = false; return "def"; } if (stream.match(keywords)) return "keyword"; if (stream.match(types)) { var lastToken = state.lastToken; var nextToken = (stream.match(/^\s*(.+?)\b/, false) || [])[1]; if (lastToken === ":" || lastToken === "implements" || nextToken === "implements" || nextToken === "=") { // Used as identifier return "builtin"; } else { // Used as type return "variable-3"; } } if (stream.match(builtins)) return "builtin"; if (stream.match(atoms)) return "atom"; if (stream.match(identifiers)) return "variable"; // other if (stream.match(singleOperators)) return "operator"; // unrecognized stream.next(); return null; }; CodeMirror.defineMode("webidl", function() { return { startState: function() { return { // Is in multiline comment inComment: false, // Last non-whitespace, matched token lastToken: "", // Next token is a definition startDef: false, // Last token of the statement is a definition endDef: false }; }, token: function(stream, state) { var style = readToken(stream, state); if (style) { var cur = stream.current(); state.lastToken = cur; if (style === "keyword") { state.startDef = startDefs.test(cur); state.endDef = state.endDef || endDefs.test(cur); } else { state.startDef = false; } } return style; } }; }); CodeMirror.defineMIME("text/x-webidl", "webidl"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/xml/xml.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; var htmlConfig = { autoSelfClosers: {'area': true, 'base': true, 'br': true, 'col': true, 'command': true, 'embed': true, 'frame': true, 'hr': true, 'img': true, 'input': true, 'keygen': true, 'link': true, 'meta': true, 'param': true, 'source': true, 'track': true, 'wbr': true, 'menuitem': true}, implicitlyClosed: {'dd': true, 'li': true, 'optgroup': true, 'option': true, 'p': true, 'rp': true, 'rt': true, 'tbody': true, 'td': true, 'tfoot': true, 'th': true, 'tr': true}, contextGrabbers: { 'dd': {'dd': true, 'dt': true}, 'dt': {'dd': true, 'dt': true}, 'li': {'li': true}, 'option': {'option': true, 'optgroup': true}, 'optgroup': {'optgroup': true}, 'p': {'address': true, 'article': true, 'aside': true, 'blockquote': true, 'dir': true, 'div': true, 'dl': true, 'fieldset': true, 'footer': true, 'form': true, 'h1': true, 'h2': true, 'h3': true, 'h4': true, 'h5': true, 'h6': true, 'header': true, 'hgroup': true, 'hr': true, 'menu': true, 'nav': true, 'ol': true, 'p': true, 'pre': true, 'section': true, 'table': true, 'ul': true}, 'rp': {'rp': true, 'rt': true}, 'rt': {'rp': true, 'rt': true}, 'tbody': {'tbody': true, 'tfoot': true}, 'td': {'td': true, 'th': true}, 'tfoot': {'tbody': true}, 'th': {'td': true, 'th': true}, 'thead': {'tbody': true, 'tfoot': true}, 'tr': {'tr': true} }, doNotIndent: {"pre": true}, allowUnquoted: true, allowMissing: true, caseFold: true } var xmlConfig = { autoSelfClosers: {}, implicitlyClosed: {}, contextGrabbers: {}, doNotIndent: {}, allowUnquoted: false, allowMissing: false, allowMissingTagName: false, caseFold: false } CodeMirror.defineMode("xml", function(editorConf, config_) { var indentUnit = editorConf.indentUnit var config = {} var defaults = config_.htmlMode ? htmlConfig : xmlConfig for (var prop in defaults) config[prop] = defaults[prop] for (var prop in config_) config[prop] = config_[prop] // Return variables for tokenizers var type, setStyle; function inText(stream, state) { function chain(parser) { state.tokenize = parser; return parser(stream, state); } var ch = stream.next(); if (ch == "<") { if (stream.eat("!")) { if (stream.eat("[")) { if (stream.match("CDATA[")) return chain(inBlock("atom", "]]>")); else return null; } else if (stream.match("--")) { return chain(inBlock("comment", "-->")); } else if (stream.match("DOCTYPE", true, true)) { stream.eatWhile(/[\w\._\-]/); return chain(doctype(1)); } else { return null; } } else if (stream.eat("?")) { stream.eatWhile(/[\w\._\-]/); state.tokenize = inBlock("meta", "?>"); return "meta"; } else { type = stream.eat("/") ? "closeTag" : "openTag"; state.tokenize = inTag; return "tag bracket"; } } else if (ch == "&") { var ok; if (stream.eat("#")) { if (stream.eat("x")) { ok = stream.eatWhile(/[a-fA-F\d]/) && stream.eat(";"); } else { ok = stream.eatWhile(/[\d]/) && stream.eat(";"); } } else { ok = stream.eatWhile(/[\w\.\-:]/) && stream.eat(";"); } return ok ? "atom" : "error"; } else { stream.eatWhile(/[^&<]/); return null; } } inText.isInText = true; function inTag(stream, state) { var ch = stream.next(); if (ch == ">" || (ch == "/" && stream.eat(">"))) { state.tokenize = inText; type = ch == ">" ? "endTag" : "selfcloseTag"; return "tag bracket"; } else if (ch == "=") { type = "equals"; return null; } else if (ch == "<") { state.tokenize = inText; state.state = baseState; state.tagName = state.tagStart = null; var next = state.tokenize(stream, state); return next ? next + " tag error" : "tag error"; } else if (/[\'\"]/.test(ch)) { state.tokenize = inAttribute(ch); state.stringStartCol = stream.column(); return state.tokenize(stream, state); } else { stream.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/); return "word"; } } function inAttribute(quote) { var closure = function(stream, state) { while (!stream.eol()) { if (stream.next() == quote) { state.tokenize = inTag; break; } } return "string"; }; closure.isInAttribute = true; return closure; } function inBlock(style, terminator) { return function(stream, state) { while (!stream.eol()) { if (stream.match(terminator)) { state.tokenize = inText; break; } stream.next(); } return style; } } function doctype(depth) { return function(stream, state) { var ch; while ((ch = stream.next()) != null) { if (ch == "<") { state.tokenize = doctype(depth + 1); return state.tokenize(stream, state); } else if (ch == ">") { if (depth == 1) { state.tokenize = inText; break; } else { state.tokenize = doctype(depth - 1); return state.tokenize(stream, state); } } } return "meta"; }; } function lower(tagName) { return tagName && tagName.toLowerCase(); } function Context(state, tagName, startOfLine) { this.prev = state.context; this.tagName = tagName || ""; this.indent = state.indented; this.startOfLine = startOfLine; if (config.doNotIndent.hasOwnProperty(tagName) || (state.context && state.context.noIndent)) this.noIndent = true; } function popContext(state) { if (state.context) state.context = state.context.prev; } function maybePopContext(state, nextTagName) { var parentTagName; while (true) { if (!state.context) { return; } parentTagName = state.context.tagName; if (!config.contextGrabbers.hasOwnProperty(lower(parentTagName)) || !config.contextGrabbers[lower(parentTagName)].hasOwnProperty(lower(nextTagName))) { return; } popContext(state); } } function baseState(type, stream, state) { if (type == "openTag") { state.tagStart = stream.column(); return tagNameState; } else if (type == "closeTag") { return closeTagNameState; } else { return baseState; } } function tagNameState(type, stream, state) { if (type == "word") { state.tagName = stream.current(); setStyle = "tag"; return attrState; } else if (config.allowMissingTagName && type == "endTag") { setStyle = "tag bracket"; return attrState(type, stream, state); } else { setStyle = "error"; return tagNameState; } } function closeTagNameState(type, stream, state) { if (type == "word") { var tagName = stream.current(); if (state.context && state.context.tagName != tagName && config.implicitlyClosed.hasOwnProperty(lower(state.context.tagName))) popContext(state); if ((state.context && state.context.tagName == tagName) || config.matchClosing === false) { setStyle = "tag"; return closeState; } else { setStyle = "tag error"; return closeStateErr; } } else if (config.allowMissingTagName && type == "endTag") { setStyle = "tag bracket"; return closeState(type, stream, state); } else { setStyle = "error"; return closeStateErr; } } function closeState(type, _stream, state) { if (type != "endTag") { setStyle = "error"; return closeState; } popContext(state); return baseState; } function closeStateErr(type, stream, state) { setStyle = "error"; return closeState(type, stream, state); } function attrState(type, _stream, state) { if (type == "word") { setStyle = "attribute"; return attrEqState; } else if (type == "endTag" || type == "selfcloseTag") { var tagName = state.tagName, tagStart = state.tagStart; state.tagName = state.tagStart = null; if (type == "selfcloseTag" || config.autoSelfClosers.hasOwnProperty(lower(tagName))) { maybePopContext(state, tagName); } else { maybePopContext(state, tagName); state.context = new Context(state, tagName, tagStart == state.indented); } return baseState; } setStyle = "error"; return attrState; } function attrEqState(type, stream, state) { if (type == "equals") return attrValueState; if (!config.allowMissing) setStyle = "error"; return attrState(type, stream, state); } function attrValueState(type, stream, state) { if (type == "string") return attrContinuedState; if (type == "word" && config.allowUnquoted) {setStyle = "string"; return attrState;} setStyle = "error"; return attrState(type, stream, state); } function attrContinuedState(type, stream, state) { if (type == "string") return attrContinuedState; return attrState(type, stream, state); } return { startState: function(baseIndent) { var state = {tokenize: inText, state: baseState, indented: baseIndent || 0, tagName: null, tagStart: null, context: null} if (baseIndent != null) state.baseIndent = baseIndent return state }, token: function(stream, state) { if (!state.tagName && stream.sol()) state.indented = stream.indentation(); if (stream.eatSpace()) return null; type = null; var style = state.tokenize(stream, state); if ((style || type) && style != "comment") { setStyle = null; state.state = state.state(type || style, stream, state); if (setStyle) style = setStyle == "error" ? style + " error" : setStyle; } return style; }, indent: function(state, textAfter, fullLine) { var context = state.context; // Indent multi-line strings (e.g. css). if (state.tokenize.isInAttribute) { if (state.tagStart == state.indented) return state.stringStartCol + 1; else return state.indented + indentUnit; } if (context && context.noIndent) return CodeMirror.Pass; if (state.tokenize != inTag && state.tokenize != inText) return fullLine ? fullLine.match(/^(\s*)/)[0].length : 0; // Indent the starts of attribute names. if (state.tagName) { if (config.multilineTagIndentPastTag !== false) return state.tagStart + state.tagName.length + 2; else return state.tagStart + indentUnit * (config.multilineTagIndentFactor || 1); } if (config.alignCDATA && /$/, blockCommentStart: "", configuration: config.htmlMode ? "html" : "xml", helperType: config.htmlMode ? "html" : "xml", skipAttribute: function(state) { if (state.state == attrValueState) state.state = attrState }, xmlCurrentTag: function(state) { return state.tagName ? {name: state.tagName, close: state.type == "closeTag"} : null }, xmlCurrentContext: function(state) { var context = [] for (var cx = state.context; cx; cx = cx.prev) context.push(cx.tagName) return context.reverse() } }; }); CodeMirror.defineMIME("text/xml", "xml"); CodeMirror.defineMIME("application/xml", "xml"); if (!CodeMirror.mimeModes.hasOwnProperty("text/html")) CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true}); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/xquery/xquery.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("xquery", function() { // The keywords object is set to the result of this self executing // function. Each keyword is a property of the keywords object whose // value is {type: atype, style: astyle} var keywords = function(){ // convenience functions used to build keywords object function kw(type) {return {type: type, style: "keyword"};} var operator = kw("operator") , atom = {type: "atom", style: "atom"} , punctuation = {type: "punctuation", style: null} , qualifier = {type: "axis_specifier", style: "qualifier"}; // kwObj is what is return from this function at the end var kwObj = { ',': punctuation }; // a list of 'basic' keywords. For each add a property to kwObj with the value of // {type: basic[i], style: "keyword"} e.g. 'after' --> {type: "after", style: "keyword"} var basic = ['after', 'all', 'allowing', 'ancestor', 'ancestor-or-self', 'any', 'array', 'as', 'ascending', 'at', 'attribute', 'base-uri', 'before', 'boundary-space', 'by', 'case', 'cast', 'castable', 'catch', 'child', 'collation', 'comment', 'construction', 'contains', 'content', 'context', 'copy', 'copy-namespaces', 'count', 'decimal-format', 'declare', 'default', 'delete', 'descendant', 'descendant-or-self', 'descending', 'diacritics', 'different', 'distance', 'document', 'document-node', 'element', 'else', 'empty', 'empty-sequence', 'encoding', 'end', 'entire', 'every', 'exactly', 'except', 'external', 'first', 'following', 'following-sibling', 'for', 'from', 'ftand', 'ftnot', 'ft-option', 'ftor', 'function', 'fuzzy', 'greatest', 'group', 'if', 'import', 'in', 'inherit', 'insensitive', 'insert', 'instance', 'intersect', 'into', 'invoke', 'is', 'item', 'language', 'last', 'lax', 'least', 'let', 'levels', 'lowercase', 'map', 'modify', 'module', 'most', 'namespace', 'next', 'no', 'node', 'nodes', 'no-inherit', 'no-preserve', 'not', 'occurs', 'of', 'only', 'option', 'order', 'ordered', 'ordering', 'paragraph', 'paragraphs', 'parent', 'phrase', 'preceding', 'preceding-sibling', 'preserve', 'previous', 'processing-instruction', 'relationship', 'rename', 'replace', 'return', 'revalidation', 'same', 'satisfies', 'schema', 'schema-attribute', 'schema-element', 'score', 'self', 'sensitive', 'sentence', 'sentences', 'sequence', 'skip', 'sliding', 'some', 'stable', 'start', 'stemming', 'stop', 'strict', 'strip', 'switch', 'text', 'then', 'thesaurus', 'times', 'to', 'transform', 'treat', 'try', 'tumbling', 'type', 'typeswitch', 'union', 'unordered', 'update', 'updating', 'uppercase', 'using', 'validate', 'value', 'variable', 'version', 'weight', 'when', 'where', 'wildcards', 'window', 'with', 'without', 'word', 'words', 'xquery']; for(var i=0, l=basic.length; i < l; i++) { kwObj[basic[i]] = kw(basic[i]);}; // a list of types. For each add a property to kwObj with the value of // {type: "atom", style: "atom"} var types = ['xs:anyAtomicType', 'xs:anySimpleType', 'xs:anyType', 'xs:anyURI', 'xs:base64Binary', 'xs:boolean', 'xs:byte', 'xs:date', 'xs:dateTime', 'xs:dateTimeStamp', 'xs:dayTimeDuration', 'xs:decimal', 'xs:double', 'xs:duration', 'xs:ENTITIES', 'xs:ENTITY', 'xs:float', 'xs:gDay', 'xs:gMonth', 'xs:gMonthDay', 'xs:gYear', 'xs:gYearMonth', 'xs:hexBinary', 'xs:ID', 'xs:IDREF', 'xs:IDREFS', 'xs:int', 'xs:integer', 'xs:item', 'xs:java', 'xs:language', 'xs:long', 'xs:Name', 'xs:NCName', 'xs:negativeInteger', 'xs:NMTOKEN', 'xs:NMTOKENS', 'xs:nonNegativeInteger', 'xs:nonPositiveInteger', 'xs:normalizedString', 'xs:NOTATION', 'xs:numeric', 'xs:positiveInteger', 'xs:precisionDecimal', 'xs:QName', 'xs:short', 'xs:string', 'xs:time', 'xs:token', 'xs:unsignedByte', 'xs:unsignedInt', 'xs:unsignedLong', 'xs:unsignedShort', 'xs:untyped', 'xs:untypedAtomic', 'xs:yearMonthDuration']; for(var i=0, l=types.length; i < l; i++) { kwObj[types[i]] = atom;}; // each operator will add a property to kwObj with value of {type: "operator", style: "keyword"} var operators = ['eq', 'ne', 'lt', 'le', 'gt', 'ge', ':=', '=', '>', '>=', '<', '<=', '.', '|', '?', 'and', 'or', 'div', 'idiv', 'mod', '*', '/', '+', '-']; for(var i=0, l=operators.length; i < l; i++) { kwObj[operators[i]] = operator;}; // each axis_specifiers will add a property to kwObj with value of {type: "axis_specifier", style: "qualifier"} var axis_specifiers = ["self::", "attribute::", "child::", "descendant::", "descendant-or-self::", "parent::", "ancestor::", "ancestor-or-self::", "following::", "preceding::", "following-sibling::", "preceding-sibling::"]; for(var i=0, l=axis_specifiers.length; i < l; i++) { kwObj[axis_specifiers[i]] = qualifier; }; return kwObj; }(); function chain(stream, state, f) { state.tokenize = f; return f(stream, state); } // the primary mode tokenizer function tokenBase(stream, state) { var ch = stream.next(), mightBeFunction = false, isEQName = isEQNameAhead(stream); // an XML tag (if not in some sub, chained tokenizer) if (ch == "<") { if(stream.match("!--", true)) return chain(stream, state, tokenXMLComment); if(stream.match("![CDATA", false)) { state.tokenize = tokenCDATA; return "tag"; } if(stream.match("?", false)) { return chain(stream, state, tokenPreProcessing); } var isclose = stream.eat("/"); stream.eatSpace(); var tagName = "", c; while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c; return chain(stream, state, tokenTag(tagName, isclose)); } // start code block else if(ch == "{") { pushStateStack(state, { type: "codeblock"}); return null; } // end code block else if(ch == "}") { popStateStack(state); return null; } // if we're in an XML block else if(isInXmlBlock(state)) { if(ch == ">") return "tag"; else if(ch == "/" && stream.eat(">")) { popStateStack(state); return "tag"; } else return "variable"; } // if a number else if (/\d/.test(ch)) { stream.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/); return "atom"; } // comment start else if (ch === "(" && stream.eat(":")) { pushStateStack(state, { type: "comment"}); return chain(stream, state, tokenComment); } // quoted string else if (!isEQName && (ch === '"' || ch === "'")) return chain(stream, state, tokenString(ch)); // variable else if(ch === "$") { return chain(stream, state, tokenVariable); } // assignment else if(ch ===":" && stream.eat("=")) { return "keyword"; } // open paren else if(ch === "(") { pushStateStack(state, { type: "paren"}); return null; } // close paren else if(ch === ")") { popStateStack(state); return null; } // open paren else if(ch === "[") { pushStateStack(state, { type: "bracket"}); return null; } // close paren else if(ch === "]") { popStateStack(state); return null; } else { var known = keywords.propertyIsEnumerable(ch) && keywords[ch]; // if there's a EQName ahead, consume the rest of the string portion, it's likely a function if(isEQName && ch === '\"') while(stream.next() !== '"'){} if(isEQName && ch === '\'') while(stream.next() !== '\''){} // gobble up a word if the character is not known if(!known) stream.eatWhile(/[\w\$_-]/); // gobble a colon in the case that is a lib func type call fn:doc var foundColon = stream.eat(":"); // if there's not a second colon, gobble another word. Otherwise, it's probably an axis specifier // which should get matched as a keyword if(!stream.eat(":") && foundColon) { stream.eatWhile(/[\w\$_-]/); } // if the next non whitespace character is an open paren, this is probably a function (if not a keyword of other sort) if(stream.match(/^[ \t]*\(/, false)) { mightBeFunction = true; } // is the word a keyword? var word = stream.current(); known = keywords.propertyIsEnumerable(word) && keywords[word]; // if we think it's a function call but not yet known, // set style to variable for now for lack of something better if(mightBeFunction && !known) known = {type: "function_call", style: "variable def"}; // if the previous word was element, attribute, axis specifier, this word should be the name of that if(isInXmlConstructor(state)) { popStateStack(state); return "variable"; } // as previously checked, if the word is element,attribute, axis specifier, call it an "xmlconstructor" and // push the stack so we know to look for it on the next word if(word == "element" || word == "attribute" || known.type == "axis_specifier") pushStateStack(state, {type: "xmlconstructor"}); // if the word is known, return the details of that else just call this a generic 'word' return known ? known.style : "variable"; } } // handle comments, including nested function tokenComment(stream, state) { var maybeEnd = false, maybeNested = false, nestedCount = 0, ch; while (ch = stream.next()) { if (ch == ")" && maybeEnd) { if(nestedCount > 0) nestedCount--; else { popStateStack(state); break; } } else if(ch == ":" && maybeNested) { nestedCount++; } maybeEnd = (ch == ":"); maybeNested = (ch == "("); } return "comment"; } // tokenizer for string literals // optionally pass a tokenizer function to set state.tokenize back to when finished function tokenString(quote, f) { return function(stream, state) { var ch; if(isInString(state) && stream.current() == quote) { popStateStack(state); if(f) state.tokenize = f; return "string"; } pushStateStack(state, { type: "string", name: quote, tokenize: tokenString(quote, f) }); // if we're in a string and in an XML block, allow an embedded code block if(stream.match("{", false) && isInXmlAttributeBlock(state)) { state.tokenize = tokenBase; return "string"; } while (ch = stream.next()) { if (ch == quote) { popStateStack(state); if(f) state.tokenize = f; break; } else { // if we're in a string and in an XML block, allow an embedded code block in an attribute if(stream.match("{", false) && isInXmlAttributeBlock(state)) { state.tokenize = tokenBase; return "string"; } } } return "string"; }; } // tokenizer for variables function tokenVariable(stream, state) { var isVariableChar = /[\w\$_-]/; // a variable may start with a quoted EQName so if the next character is quote, consume to the next quote if(stream.eat("\"")) { while(stream.next() !== '\"'){}; stream.eat(":"); } else { stream.eatWhile(isVariableChar); if(!stream.match(":=", false)) stream.eat(":"); } stream.eatWhile(isVariableChar); state.tokenize = tokenBase; return "variable"; } // tokenizer for XML tags function tokenTag(name, isclose) { return function(stream, state) { stream.eatSpace(); if(isclose && stream.eat(">")) { popStateStack(state); state.tokenize = tokenBase; return "tag"; } // self closing tag without attributes? if(!stream.eat("/")) pushStateStack(state, { type: "tag", name: name, tokenize: tokenBase}); if(!stream.eat(">")) { state.tokenize = tokenAttribute; return "tag"; } else { state.tokenize = tokenBase; } return "tag"; }; } // tokenizer for XML attributes function tokenAttribute(stream, state) { var ch = stream.next(); if(ch == "/" && stream.eat(">")) { if(isInXmlAttributeBlock(state)) popStateStack(state); if(isInXmlBlock(state)) popStateStack(state); return "tag"; } if(ch == ">") { if(isInXmlAttributeBlock(state)) popStateStack(state); return "tag"; } if(ch == "=") return null; // quoted string if (ch == '"' || ch == "'") return chain(stream, state, tokenString(ch, tokenAttribute)); if(!isInXmlAttributeBlock(state)) pushStateStack(state, { type: "attribute", tokenize: tokenAttribute}); stream.eat(/[a-zA-Z_:]/); stream.eatWhile(/[-a-zA-Z0-9_:.]/); stream.eatSpace(); // the case where the attribute has not value and the tag was closed if(stream.match(">", false) || stream.match("/", false)) { popStateStack(state); state.tokenize = tokenBase; } return "attribute"; } // handle comments, including nested function tokenXMLComment(stream, state) { var ch; while (ch = stream.next()) { if (ch == "-" && stream.match("->", true)) { state.tokenize = tokenBase; return "comment"; } } } // handle CDATA function tokenCDATA(stream, state) { var ch; while (ch = stream.next()) { if (ch == "]" && stream.match("]", true)) { state.tokenize = tokenBase; return "comment"; } } } // handle preprocessing instructions function tokenPreProcessing(stream, state) { var ch; while (ch = stream.next()) { if (ch == "?" && stream.match(">", true)) { state.tokenize = tokenBase; return "comment meta"; } } } // functions to test the current context of the state function isInXmlBlock(state) { return isIn(state, "tag"); } function isInXmlAttributeBlock(state) { return isIn(state, "attribute"); } function isInXmlConstructor(state) { return isIn(state, "xmlconstructor"); } function isInString(state) { return isIn(state, "string"); } function isEQNameAhead(stream) { // assume we've already eaten a quote (") if(stream.current() === '"') return stream.match(/^[^\"]+\"\:/, false); else if(stream.current() === '\'') return stream.match(/^[^\"]+\'\:/, false); else return false; } function isIn(state, type) { return (state.stack.length && state.stack[state.stack.length - 1].type == type); } function pushStateStack(state, newState) { state.stack.push(newState); } function popStateStack(state) { state.stack.pop(); var reinstateTokenize = state.stack.length && state.stack[state.stack.length-1].tokenize; state.tokenize = reinstateTokenize || tokenBase; } // the interface for the mode API return { startState: function() { return { tokenize: tokenBase, cc: [], stack: [] }; }, token: function(stream, state) { if (stream.eatSpace()) return null; var style = state.tokenize(stream, state); return style; }, blockCommentStart: "(:", blockCommentEnd: ":)" }; }); CodeMirror.defineMIME("application/xquery", "xquery"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/yacas/yacas.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // Yacas mode copyright (c) 2015 by Grzegorz Mazur // Loosely based on mathematica mode by Calin Barbat (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('yacas', function(_config, _parserConfig) { function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var bodiedOps = words("Assert BackQuote D Defun Deriv For ForEach FromFile " + "FromString Function Integrate InverseTaylor Limit " + "LocalSymbols Macro MacroRule MacroRulePattern " + "NIntegrate Rule RulePattern Subst TD TExplicitSum " + "TSum Taylor Taylor1 Taylor2 Taylor3 ToFile " + "ToStdout ToString TraceRule Until While"); // patterns var pFloatForm = "(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"; var pIdentifier = "(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)"; // regular expressions var reFloatForm = new RegExp(pFloatForm); var reIdentifier = new RegExp(pIdentifier); var rePattern = new RegExp(pIdentifier + "?_" + pIdentifier); var reFunctionLike = new RegExp(pIdentifier + "\\s*\\("); function tokenBase(stream, state) { var ch; // get next character ch = stream.next(); // string if (ch === '"') { state.tokenize = tokenString; return state.tokenize(stream, state); } // comment if (ch === '/') { if (stream.eat('*')) { state.tokenize = tokenComment; return state.tokenize(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } } // go back one character stream.backUp(1); // update scope info var m = stream.match(/^(\w+)\s*\(/, false); if (m !== null && bodiedOps.hasOwnProperty(m[1])) state.scopes.push('bodied'); var scope = currentScope(state); if (scope === 'bodied' && ch === '[') state.scopes.pop(); if (ch === '[' || ch === '{' || ch === '(') state.scopes.push(ch); scope = currentScope(state); if (scope === '[' && ch === ']' || scope === '{' && ch === '}' || scope === '(' && ch === ')') state.scopes.pop(); if (ch === ';') { while (scope === 'bodied') { state.scopes.pop(); scope = currentScope(state); } } // look for ordered rules if (stream.match(/\d+ *#/, true, false)) { return 'qualifier'; } // look for numbers if (stream.match(reFloatForm, true, false)) { return 'number'; } // look for placeholders if (stream.match(rePattern, true, false)) { return 'variable-3'; } // match all braces separately if (stream.match(/(?:\[|\]|{|}|\(|\))/, true, false)) { return 'bracket'; } // literals looking like function calls if (stream.match(reFunctionLike, true, false)) { stream.backUp(1); return 'variable'; } // all other identifiers if (stream.match(reIdentifier, true, false)) { return 'variable-2'; } // operators; note that operators like @@ or /; are matched separately for each symbol. if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/, true, false)) { return 'operator'; } // everything else is an error return 'error'; } function tokenString(stream, state) { var next, end = false, escaped = false; while ((next = stream.next()) != null) { if (next === '"' && !escaped) { end = true; break; } escaped = !escaped && next === '\\'; } if (end && !escaped) { state.tokenize = tokenBase; } return 'string'; }; function tokenComment(stream, state) { var prev, next; while((next = stream.next()) != null) { if (prev === '*' && next === '/') { state.tokenize = tokenBase; break; } prev = next; } return 'comment'; } function currentScope(state) { var scope = null; if (state.scopes.length > 0) scope = state.scopes[state.scopes.length - 1]; return scope; } return { startState: function() { return { tokenize: tokenBase, scopes: [] }; }, token: function(stream, state) { if (stream.eatSpace()) return null; return state.tokenize(stream, state); }, indent: function(state, textAfter) { if (state.tokenize !== tokenBase && state.tokenize !== null) return CodeMirror.Pass; var delta = 0; if (textAfter === ']' || textAfter === '];' || textAfter === '}' || textAfter === '};' || textAfter === ');') delta = -1; return (state.scopes.length + delta) * _config.indentUnit; }, electricChars: "{}[]();", blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//" }; }); CodeMirror.defineMIME('text/x-yacas', { name: 'yacas' }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/yaml/yaml.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("yaml", function() { var cons = ['true', 'false', 'on', 'off', 'yes', 'no']; var keywordRegex = new RegExp("\\b(("+cons.join(")|(")+"))$", 'i'); return { token: function(stream, state) { var ch = stream.peek(); var esc = state.escaped; state.escaped = false; /* comments */ if (ch == "#" && (stream.pos == 0 || /\s/.test(stream.string.charAt(stream.pos - 1)))) { stream.skipToEnd(); return "comment"; } if (stream.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/)) return "string"; if (state.literal && stream.indentation() > state.keyCol) { stream.skipToEnd(); return "string"; } else if (state.literal) { state.literal = false; } if (stream.sol()) { state.keyCol = 0; state.pair = false; state.pairStart = false; /* document start */ if(stream.match('---')) { return "def"; } /* document end */ if (stream.match('...')) { return "def"; } /* array list item */ if (stream.match(/\s*-\s+/)) { return 'meta'; } } /* inline pairs/lists */ if (stream.match(/^(\{|\}|\[|\])/)) { if (ch == '{') state.inlinePairs++; else if (ch == '}') state.inlinePairs--; else if (ch == '[') state.inlineList++; else state.inlineList--; return 'meta'; } /* list separator */ if (state.inlineList > 0 && !esc && ch == ',') { stream.next(); return 'meta'; } /* pairs separator */ if (state.inlinePairs > 0 && !esc && ch == ',') { state.keyCol = 0; state.pair = false; state.pairStart = false; stream.next(); return 'meta'; } /* start of value of a pair */ if (state.pairStart) { /* block literals */ if (stream.match(/^\s*(\||\>)\s*/)) { state.literal = true; return 'meta'; }; /* references */ if (stream.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)) { return 'variable-2'; } /* numbers */ if (state.inlinePairs == 0 && stream.match(/^\s*-?[0-9\.\,]+\s?$/)) { return 'number'; } if (state.inlinePairs > 0 && stream.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)) { return 'number'; } /* keywords */ if (stream.match(keywordRegex)) { return 'keyword'; } } /* pairs (associative arrays) -> key */ if (!state.pair && stream.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)) { state.pair = true; state.keyCol = stream.indentation(); return "atom"; } if (state.pair && stream.match(/^:\s*/)) { state.pairStart = true; return 'meta'; } /* nothing found, continue */ state.pairStart = false; state.escaped = (ch == '\\'); stream.next(); return null; }, startState: function() { return { pair: false, pairStart: false, keyCol: 0, inlinePairs: 0, inlineList: 0, literal: false, escaped: false }; }, lineComment: "#", fold: "indent" }; }); CodeMirror.defineMIME("text/x-yaml", "yaml"); CodeMirror.defineMIME("text/yaml", "yaml"); }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/yaml-frontmatter/yaml-frontmatter.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function (mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../yaml/yaml")) else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../yaml/yaml"], mod) else // Plain browser env mod(CodeMirror) })(function (CodeMirror) { var START = 0, FRONTMATTER = 1, BODY = 2 // a mixed mode for Markdown text with an optional YAML front matter CodeMirror.defineMode("yaml-frontmatter", function (config, parserConfig) { var yamlMode = CodeMirror.getMode(config, "yaml") var innerMode = CodeMirror.getMode(config, parserConfig && parserConfig.base || "gfm") function localMode(state) { return state.state == FRONTMATTER ? {mode: yamlMode, state: state.yaml} : {mode: innerMode, state: state.inner} } return { startState: function () { return { state: START, yaml: null, inner: CodeMirror.startState(innerMode) } }, copyState: function (state) { return { state: state.state, yaml: state.yaml && CodeMirror.copyState(yamlMode, state.yaml), inner: CodeMirror.copyState(innerMode, state.inner) } }, token: function (stream, state) { if (state.state == START) { if (stream.match('---', false)) { state.state = FRONTMATTER state.yaml = CodeMirror.startState(yamlMode) return yamlMode.token(stream, state.yaml) } else { state.state = BODY return innerMode.token(stream, state.inner) } } else if (state.state == FRONTMATTER) { var end = stream.sol() && stream.match(/(---|\.\.\.)/, false) var style = yamlMode.token(stream, state.yaml) if (end) { state.state = BODY state.yaml = null } return style } else { return innerMode.token(stream, state.inner) } }, innerMode: localMode, indent: function(state, a, b) { var m = localMode(state) return m.mode.indent ? m.mode.indent(m.state, a, b) : CodeMirror.Pass }, blankLine: function (state) { var m = localMode(state) if (m.mode.blankLine) return m.mode.blankLine(m.state) } } }) }); ================================================ FILE: _files/assets/codemirror@6.65.7/mode/z80/z80.js ================================================ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('z80', function(_config, parserConfig) { var ez80 = parserConfig.ez80; var keywords1, keywords2; if (ez80) { keywords1 = /^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i; keywords2 = /^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i; } else { keywords1 = /^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i; keywords2 = /^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i; } var variables1 = /^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i; var variables2 = /^(n?[zc]|p[oe]?|m)\b/i; var errors = /^([hl][xy]|i[xy][hl]|slia|sll)\b/i; var numbers = /^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i; return { startState: function() { return { context: 0 }; }, token: function(stream, state) { if (!stream.column()) state.context = 0; if (stream.eatSpace()) return null; var w; if (stream.eatWhile(/\w/)) { if (ez80 && stream.eat('.')) { stream.eatWhile(/\w/); } w = stream.current(); if (stream.indentation()) { if ((state.context == 1 || state.context == 4) && variables1.test(w)) { state.context = 4; return 'var2'; } if (state.context == 2 && variables2.test(w)) { state.context = 4; return 'var3'; } if (keywords1.test(w)) { state.context = 1; return 'keyword'; } else if (keywords2.test(w)) { state.context = 2; return 'keyword'; } else if (state.context == 4 && numbers.test(w)) { return 'number'; } if (errors.test(w)) return 'error'; } else if (stream.match(numbers)) { return 'number'; } else { return null; } } else if (stream.eat(';')) { stream.skipToEnd(); return 'comment'; } else if (stream.eat('"')) { while (w = stream.next()) { if (w == '"') break; if (w == '\\') stream.next(); } return 'string'; } else if (stream.eat('\'')) { if (stream.match(/\\?.'/)) return 'number'; } else if (stream.eat('.') || stream.sol() && stream.eat('#')) { state.context = 5; if (stream.eatWhile(/\w/)) return 'def'; } else if (stream.eat('$')) { if (stream.eatWhile(/[\da-f]/i)) return 'number'; } else if (stream.eat('%')) { if (stream.eatWhile(/[01]/)) return 'number'; } else { stream.next(); } return null; } }; }); CodeMirror.defineMIME("text/x-z80", "z80"); CodeMirror.defineMIME("text/x-ez80", { name: "z80", ez80: true }); }); ================================================ FILE: _files/assets/codemirror@6.65.7/theme/3024-day.css ================================================ /* Name: 3024 day Author: Jan T. Sott (http://github.com/idleberg) CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ .cm-s-3024-day.CodeMirror { background: #f7f7f7; color: #3a3432; } .cm-s-3024-day div.CodeMirror-selected { background: #d6d5d4; } .cm-s-3024-day .CodeMirror-line::selection, .cm-s-3024-day .CodeMirror-line > span::selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d6d5d4; } .cm-s-3024-day .CodeMirror-line::-moz-selection, .cm-s-3024-day .CodeMirror-line > span::-moz-selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d9d9d9; } .cm-s-3024-day .CodeMirror-gutters { background: #f7f7f7; border-right: 0px; } .cm-s-3024-day .CodeMirror-guttermarker { color: #db2d20; } .cm-s-3024-day .CodeMirror-guttermarker-subtle { color: #807d7c; } .cm-s-3024-day .CodeMirror-linenumber { color: #807d7c; } .cm-s-3024-day .CodeMirror-cursor { border-left: 1px solid #5c5855; } .cm-s-3024-day span.cm-comment { color: #cdab53; } .cm-s-3024-day span.cm-atom { color: #a16a94; } .cm-s-3024-day span.cm-number { color: #a16a94; } .cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute { color: #01a252; } .cm-s-3024-day span.cm-keyword { color: #db2d20; } .cm-s-3024-day span.cm-string { color: #fded02; } .cm-s-3024-day span.cm-variable { color: #01a252; } .cm-s-3024-day span.cm-variable-2 { color: #01a0e4; } .cm-s-3024-day span.cm-def { color: #e8bbd0; } .cm-s-3024-day span.cm-bracket { color: #3a3432; } .cm-s-3024-day span.cm-tag { color: #db2d20; } .cm-s-3024-day span.cm-link { color: #a16a94; } .cm-s-3024-day span.cm-error { background: #db2d20; color: #5c5855; } .cm-s-3024-day .CodeMirror-activeline-background { background: #e8f2ff; } .cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: #a16a94 !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/3024-night.css ================================================ /* Name: 3024 night Author: Jan T. Sott (http://github.com/idleberg) CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ .cm-s-3024-night.CodeMirror { background: #090300; color: #d6d5d4; } .cm-s-3024-night div.CodeMirror-selected { background: #3a3432; } .cm-s-3024-night .CodeMirror-line::selection, .cm-s-3024-night .CodeMirror-line > span::selection, .cm-s-3024-night .CodeMirror-line > span > span::selection { background: rgba(58, 52, 50, .99); } .cm-s-3024-night .CodeMirror-line::-moz-selection, .cm-s-3024-night .CodeMirror-line > span::-moz-selection, .cm-s-3024-night .CodeMirror-line > span > span::-moz-selection { background: rgba(58, 52, 50, .99); } .cm-s-3024-night .CodeMirror-gutters { background: #090300; border-right: 0px; } .cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; } .cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; } .cm-s-3024-night .CodeMirror-linenumber { color: #5c5855; } .cm-s-3024-night .CodeMirror-cursor { border-left: 1px solid #807d7c; } .cm-s-3024-night span.cm-comment { color: #cdab53; } .cm-s-3024-night span.cm-atom { color: #a16a94; } .cm-s-3024-night span.cm-number { color: #a16a94; } .cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute { color: #01a252; } .cm-s-3024-night span.cm-keyword { color: #db2d20; } .cm-s-3024-night span.cm-string { color: #fded02; } .cm-s-3024-night span.cm-variable { color: #01a252; } .cm-s-3024-night span.cm-variable-2 { color: #01a0e4; } .cm-s-3024-night span.cm-def { color: #e8bbd0; } .cm-s-3024-night span.cm-bracket { color: #d6d5d4; } .cm-s-3024-night span.cm-tag { color: #db2d20; } .cm-s-3024-night span.cm-link { color: #a16a94; } .cm-s-3024-night span.cm-error { background: #db2d20; color: #807d7c; } .cm-s-3024-night .CodeMirror-activeline-background { background: #2F2F2F; } .cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/abbott.css ================================================ /* * abbott.css * A warm, dark theme for prose and code, with pastels and pretty greens. * * Ported from abbott.vim (https://github.com/bcat/abbott.vim) version 2.1. * Original design and CodeMirror port by Jonathan Rascher. * * This theme shares the following color palette with the Vim color scheme. * * Brown shades: * bistre: #231c14 * chocolate: #3c3022 * cocoa: #745d42 * vanilla_cream: #fef3b4 * * Red shades: * crimson: #d80450 * cinnabar: #f63f05 * * Green shades: * dark_olive: #273900 * forest_green: #24a507 * chartreuse: #a0ea00 * pastel_chartreuse: #d8ff84 * * Yellow shades: * marigold: #fbb32f * lemon_meringue: #fbec5d * * Blue shades: * cornflower_blue: #3f91f1 * periwinkle_blue: #8ccdf0 * * Magenta shades: * french_pink: #ec6c99 * lavender: #e6a2f3 * * Cyan shades: * zomp: #39a78d * seafoam_green: #00ff7f */ /* Style the UI: */ /* Equivalent to Vim's Normal group. */ .cm-s-abbott.CodeMirror { background: #231c14 /* bistre */; color: #d8ff84 /* pastel_chartreuse */; } /* Roughly equivalent to Vim's LineNr group. */ .cm-s-abbott .CodeMirror-gutters { background: #231c14 /* bistre */; border: none; } .cm-s-abbott .CodeMirror-linenumber { color: #fbec5d /* lemon_meringue */; } .cm-s-abbott .CodeMirror-guttermarker { color: #f63f05 /* cinnabar */; } /* Roughly equivalent to Vim's FoldColumn group. */ .cm-s-abbott .CodeMirror-guttermarker-subtle { color: #fbb32f /* marigold */; } /* * Roughly equivalent to Vim's CursorColumn group. (We use a brighter color * since Vim's cursorcolumn option highlights a whole column, whereas * CodeMirror's rule just highlights a thin line.) */ .cm-s-abbott .CodeMirror-ruler { border-color: #745d42 /* cocoa */; } /* Equivalent to Vim's Cursor group in insert mode. */ .cm-s-abbott .CodeMirror-cursor { border-color: #a0ea00 /* chartreuse */; } /* Equivalent to Vim's Cursor group in normal mode. */ .cm-s-abbott.cm-fat-cursor .CodeMirror-cursor, .cm-s-abbott .cm-animate-fat-cursor { /* * CodeMirror doesn't allow changing the foreground color of the character * under the cursor, so we can't use a reverse video effect for the cursor. * Instead, make it semitransparent. */ background: rgba(160, 234, 0, 0.5) /* chartreuse */; } .cm-s-abbott.cm-fat-cursor .CodeMirror-cursors { /* * Boost the z-index so the fat cursor shows up on top of text and * matchingbracket/matchingtag highlights. */ z-index: 3; } /* Equivalent to Vim's Cursor group in replace mode. */ .cm-s-abbott .CodeMirror-overwrite .CodeMirror-cursor { border-bottom: 1px solid #a0ea00 /* chartreuse */; border-left: none; width: auto; } /* Roughly equivalent to Vim's CursorIM group. */ .cm-s-abbott .CodeMirror-secondarycursor { border-color: #00ff7f /* seafoam_green */; } /* Roughly equivalent to Vim's Visual group. */ .cm-s-abbott .CodeMirror-selected, .cm-s-abbott.CodeMirror-focused .CodeMirror-selected { background: #273900 /* dark_olive */; } .cm-s-abbott .CodeMirror-line::selection, .cm-s-abbott .CodeMirror-line > span::selection, .cm-s-abbott .CodeMirror-line > span > span::selection { background: #273900 /* dark_olive */; } .cm-s-abbott .CodeMirror-line::-moz-selection, .cm-s-abbott .CodeMirror-line > span::-moz-selection, .cm-s-abbott .CodeMirror-line > span > span::-moz-selection { background: #273900 /* dark_olive */; } /* Roughly equivalent to Vim's SpecialKey group. */ .cm-s-abbott .cm-tab { color: #00ff7f /* seafoam_green */; } /* Equivalent to Vim's Search group. */ .cm-s-abbott .cm-searching { background: #fef3b4 /* vanilla_cream */ !important; color: #231c14 /* bistre */ !important; } /* Style syntax highlighting modes: */ /* Equivalent to Vim's Comment group. */ .cm-s-abbott span.cm-comment { color: #fbb32f /* marigold */; font-style: italic; } /* Equivalent to Vim's String group. */ .cm-s-abbott span.cm-string, .cm-s-abbott span.cm-string-2 { color: #e6a2f3 /* lavender */; } /* Equivalent to Vim's Constant group. */ .cm-s-abbott span.cm-number, .cm-s-abbott span.cm-string.cm-url { color: #f63f05 /* cinnabar */; } /* Roughly equivalent to Vim's SpecialKey group. */ .cm-s-abbott span.cm-invalidchar { color: #00ff7f /* seafoam_green */; } /* Equivalent to Vim's Special group. */ .cm-s-abbott span.cm-atom { color: #fef3b4 /* vanilla_cream */; } /* Equivalent to Vim's Delimiter group. */ .cm-s-abbott span.cm-bracket, .cm-s-abbott span.cm-punctuation { color: #fef3b4 /* vanilla_cream */; } /* Equivalent Vim's Operator group. */ .cm-s-abbott span.cm-operator { font-weight: bold; } /* Roughly equivalent to Vim's Identifier group. */ .cm-s-abbott span.cm-def, .cm-s-abbott span.cm-variable, .cm-s-abbott span.cm-variable-2, .cm-s-abbott span.cm-variable-3 { color: #8ccdf0 /* periwinkle_blue */; } /* Roughly equivalent to Vim's Function group. */ .cm-s-abbott span.cm-builtin, .cm-s-abbott span.cm-property, .cm-s-abbott span.cm-qualifier { color: #3f91f1 /* cornflower_blue */; } /* Equivalent to Vim's Type group. */ .cm-s-abbott span.cm-type { color: #24a507 /* forest_green */; } /* Equivalent to Vim's Keyword group. */ .cm-s-abbott span.cm-keyword { color: #d80450 /* crimson */; font-weight: bold; } /* Equivalent to Vim's PreProc group. */ .cm-s-abbott span.cm-meta { color: #ec6c99 /* french_pink */; } /* Equivalent to Vim's htmlTagName group (linked to Statement). */ .cm-s-abbott span.cm-tag { color: #d80450 /* crimson */; font-weight: bold; } /* Equivalent to Vim's htmlArg group (linked to Type). */ .cm-s-abbott span.cm-attribute { color: #24a507 /* forest_green */; } /* Equivalent to Vim's htmlH1, markdownH1, etc. groups (linked to Title). */ .cm-s-abbott span.cm-header { color: #d80450 /* crimson */; font-weight: bold; } /* Equivalent to Vim's markdownRule group (linked to PreProc). */ .cm-s-abbott span.cm-hr { color: #ec6c99 /* french_pink */; } /* Roughly equivalent to Vim's Underlined group. */ .cm-s-abbott span.cm-link { color: #e6a2f3 /* lavender */; } /* Equivalent to Vim's diffRemoved group. */ .cm-s-abbott span.cm-negative { background: #d80450 /* crimson */; color: #231c14 /* bistre */; } /* Equivalent to Vim's diffAdded group. */ .cm-s-abbott span.cm-positive { background: #a0ea00 /* chartreuse */; color: #231c14 /* bistre */; font-weight: bold; } /* Equivalent to Vim's Error group. */ .cm-s-abbott span.cm-error { background: #d80450 /* crimson */; color: #231c14 /* bistre */; } /* Style addons: */ /* Equivalent to Vim's MatchParen group. */ .cm-s-abbott span.CodeMirror-matchingbracket { background: #745d42 /* cocoa */ !important; color: #231c14 /* bistre */ !important; font-weight: bold; } /* * Roughly equivalent to Vim's Error group. (Vim doesn't seem to have a direct * equivalent in its own matchparen plugin, but many syntax highlighting plugins * mark mismatched brackets as Error.) */ .cm-s-abbott span.CodeMirror-nonmatchingbracket { background: #d80450 /* crimson */ !important; color: #231c14 /* bistre */ !important; } .cm-s-abbott .CodeMirror-matchingtag, .cm-s-abbott .cm-matchhighlight { outline: 1px solid #39a78d /* zomp */; } /* Equivalent to Vim's CursorLine group. */ .cm-s-abbott .CodeMirror-activeline-background, .cm-s-abbott .CodeMirror-activeline-gutter { background: #3c3022 /* chocolate */; } /* Equivalent to Vim's CursorLineNr group. */ .cm-s-abbott .CodeMirror-activeline-gutter .CodeMirror-linenumber { color: #d8ff84 /* pastel_chartreuse */; font-weight: bold; } /* Roughly equivalent to Vim's Folded group. */ .cm-s-abbott .CodeMirror-foldmarker { color: #f63f05 /* cinnabar */; text-shadow: none; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/abcdef.css ================================================ .cm-s-abcdef.CodeMirror { background: #0f0f0f; color: #defdef; } .cm-s-abcdef div.CodeMirror-selected { background: #515151; } .cm-s-abcdef .CodeMirror-line::selection, .cm-s-abcdef .CodeMirror-line > span::selection, .cm-s-abcdef .CodeMirror-line > span > span::selection { background: rgba(56, 56, 56, 0.99); } .cm-s-abcdef .CodeMirror-line::-moz-selection, .cm-s-abcdef .CodeMirror-line > span::-moz-selection, .cm-s-abcdef .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 56, 56, 0.99); } .cm-s-abcdef .CodeMirror-gutters { background: #555; border-right: 2px solid #314151; } .cm-s-abcdef .CodeMirror-guttermarker { color: #222; } .cm-s-abcdef .CodeMirror-guttermarker-subtle { color: azure; } .cm-s-abcdef .CodeMirror-linenumber { color: #FFFFFF; } .cm-s-abcdef .CodeMirror-cursor { border-left: 1px solid #00FF00; } .cm-s-abcdef span.cm-keyword { color: darkgoldenrod; font-weight: bold; } .cm-s-abcdef span.cm-atom { color: #77F; } .cm-s-abcdef span.cm-number { color: violet; } .cm-s-abcdef span.cm-def { color: #fffabc; } .cm-s-abcdef span.cm-variable { color: #abcdef; } .cm-s-abcdef span.cm-variable-2 { color: #cacbcc; } .cm-s-abcdef span.cm-variable-3, .cm-s-abcdef span.cm-type { color: #def; } .cm-s-abcdef span.cm-property { color: #fedcba; } .cm-s-abcdef span.cm-operator { color: #ff0; } .cm-s-abcdef span.cm-comment { color: #7a7b7c; font-style: italic;} .cm-s-abcdef span.cm-string { color: #2b4; } .cm-s-abcdef span.cm-meta { color: #C9F; } .cm-s-abcdef span.cm-qualifier { color: #FFF700; } .cm-s-abcdef span.cm-builtin { color: #30aabc; } .cm-s-abcdef span.cm-bracket { color: #8a8a8a; } .cm-s-abcdef span.cm-tag { color: #FFDD44; } .cm-s-abcdef span.cm-attribute { color: #DDFF00; } .cm-s-abcdef span.cm-error { color: #FF0000; } .cm-s-abcdef span.cm-header { color: aquamarine; font-weight: bold; } .cm-s-abcdef span.cm-link { color: blueviolet; } .cm-s-abcdef .CodeMirror-activeline-background { background: #314151; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/ambiance-mobile.css ================================================ .cm-s-ambiance.CodeMirror { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/ambiance.css ================================================ /* ambiance theme for codemirror */ /* Color scheme */ .cm-s-ambiance .cm-header { color: blue; } .cm-s-ambiance .cm-quote { color: #24C2C7; } .cm-s-ambiance .cm-keyword { color: #cda869; } .cm-s-ambiance .cm-atom { color: #CF7EA9; } .cm-s-ambiance .cm-number { color: #78CF8A; } .cm-s-ambiance .cm-def { color: #aac6e3; } .cm-s-ambiance .cm-variable { color: #ffb795; } .cm-s-ambiance .cm-variable-2 { color: #eed1b3; } .cm-s-ambiance .cm-variable-3, .cm-s-ambiance .cm-type { color: #faded3; } .cm-s-ambiance .cm-property { color: #eed1b3; } .cm-s-ambiance .cm-operator { color: #fa8d6a; } .cm-s-ambiance .cm-comment { color: #555; font-style:italic; } .cm-s-ambiance .cm-string { color: #8f9d6a; } .cm-s-ambiance .cm-string-2 { color: #9d937c; } .cm-s-ambiance .cm-meta { color: #D2A8A1; } .cm-s-ambiance .cm-qualifier { color: yellow; } .cm-s-ambiance .cm-builtin { color: #9999cc; } .cm-s-ambiance .cm-bracket { color: #24C2C7; } .cm-s-ambiance .cm-tag { color: #fee4ff; } .cm-s-ambiance .cm-attribute { color: #9B859D; } .cm-s-ambiance .cm-hr { color: pink; } .cm-s-ambiance .cm-link { color: #F4C20B; } .cm-s-ambiance .cm-special { color: #FF9D00; } .cm-s-ambiance .cm-error { color: #AF2018; } .cm-s-ambiance .CodeMirror-matchingbracket { color: #0f0; } .cm-s-ambiance .CodeMirror-nonmatchingbracket { color: #f22; } .cm-s-ambiance div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); } .cm-s-ambiance.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } .cm-s-ambiance .CodeMirror-line::selection, .cm-s-ambiance .CodeMirror-line > span::selection, .cm-s-ambiance .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } .cm-s-ambiance .CodeMirror-line::-moz-selection, .cm-s-ambiance .CodeMirror-line > span::-moz-selection, .cm-s-ambiance .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } /* Editor styling */ .cm-s-ambiance.CodeMirror { line-height: 1.40em; color: #E6E1DC; background-color: #202020; -webkit-box-shadow: inset 0 0 10px black; -moz-box-shadow: inset 0 0 10px black; box-shadow: inset 0 0 10px black; } .cm-s-ambiance .CodeMirror-gutters { background: #3D3D3D; border-right: 1px solid #4D4D4D; box-shadow: 0 10px 20px black; } .cm-s-ambiance .CodeMirror-linenumber { text-shadow: 0px 1px 1px #4d4d4d; color: #111; padding: 0 5px; } .cm-s-ambiance .CodeMirror-guttermarker { color: #aaa; } .cm-s-ambiance .CodeMirror-guttermarker-subtle { color: #111; } .cm-s-ambiance .CodeMirror-cursor { border-left: 1px solid #7991E8; } .cm-s-ambiance .CodeMirror-activeline-background { background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.031); } .cm-s-ambiance.CodeMirror, .cm-s-ambiance .CodeMirror-gutters { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7gdk+wmSHZ1z4pJItqapjoKXWahm8NmV6eOTbWUOp6/6a/XIg6GQqmenJ2lDHyvCFZ2cBDbmtHA043VFhHwXxClWmeYAdLhV00Bd85go8VmaFCkbVkzlQENzfBDZ5gtN7HwF0KDrTwJ0dypSOzpaKCMwQHKTIreYIxlmhXTzTWkVm+LTynZhiSBT3RZQ7aGfjGEd3qyXQ1FDymqbKxpspERQN2MiRjNZlFFQXfCNFm9nM1zpAsoYjmtRTc5ajwuaXc5xrWskT97RaKzAGe5ARHhVUsDbjKklziiX5WROcJwSNCNI+9w1Jwv4Zb2r7lCMZ4oq5C0EdTx+2GzNuKpJ+iFf38JEWkHJn9DNF7mmBDITrWEg0VWL3pHU20tSZnuqWu+R3BtYa8XxV1HO7GyD32UkOpL/yDloINFTmvtId+nmAjxRw40VMwVKiwrKLE4bK5UOVntYwhOcSSXKrJHKPJedocpGjVz/ZMIbnYUPB10/eKCrs5apqpgVmWzBYWpmtKHecJPjaUuEgRDDaU0oZghCJ6zNMQ5ZhDYx05r5v2muQdM0EILtXUsaKiQX9WMEUotagQzFbUNN6NUPC2nm5pxEWGCjMc3GdJHjSU2kORLK/JGSrkfGEIjncU/CYUnOipoYemwj8tST9NsJmB7TUVXtbUtXATJVZXBMvYeTXJfobgJUPmGMP/yFaWonaa6BcFO3nqcIqCozSZoZoSr1g4zJOzuyGnxTEX3lUEJ7WcZgme8ddaWvWJo2AJR9DZU3CUIbhCSG6ybSwN6qtJVnCU2svDTP2ZInOw2cBTrqtQahtNZn9NcJ4l2NaSmSkkP1noZWnVwkLmdUPOwLZEwy2Z3S3R+4rIG9hcbpPXHFVWcQdZkn2FOta3cKWQnNRC5g1LsJah4GCzSVsKnCOY5OAFRTBekyyryeyilhFKva75r4Mc0aWanGEaThcy31s439KKxTzJYY5WTHPU1FtIHjQU3Oip4xlNzj/lBw23dYZVliQa7WAXf4shetcQfatI+jWRDBPmyNeW6A1P5kdDgyYJlba0BIM8BZu1JfrFwItyjcAMR3K0BWOIrtMEXyhyrlVEx3ui5dUBjmB/Q3CXW85R4mBD0s7B+4q5tKUjOlb9qqmhi5AZ6GFIC5HXtOobdYGlVdMVbNJ8toNTFcHxnoL+muBagcctjWnbNMuR00uI7nQESwg5q2qqrKWIfrNUmeQocY6HuyxJV02wj36w00yhpmUFenv4p6fUkZYqLyuinx2RGOjhCXYyJF84oiU00YMOOhhquNdfbOB7gU88pY4xJO8LVdp6/q2voeB4R04vIdhSE40xZObx1HGGJ/ja0LBthFInKaLPPFzuCaYaoj8JjPME8yoyxo6zlBqkiUZYgq00OYMswbWO5NGmq+xhipxHLRW29ARjNKXO0wRnear8XSg4XFPLKEPUS1GqvyLwiuBUoa7zpZ0l5xxFwWmWZC1H5h5FwU8eQ7K+g8UcVY6TMQreVQT/8uQ8Z+ALIXnSEa2pYZQneE9RZbSBNYXfWYJzW/h/4j4Dp1tYVcFIC5019Vyi4ThPqSFCzjGWaHQTBU8q6vrVwgxP9Lkm840imWKpcLCjYTtrKuwvsKSnrvHCXGkSMk9p6lhckfRpIeis+N2PiszT+mFLspyGleUhDwcLrZqmyeylxwjBcKHEapqkmyangyLZRVOijwOtCY5SsG5zL0OwlCJ4y5KznF3EUNDDrinwiyLZRzOXtlBbK5ITHFGLp8Q0R6ab6mS7enI2cFrxOyHvOCFaT1HThS1krjCwqWeurCkk+willhCC+RSZnRXBiZaC5RXRIZYKp2lyfrHwiKPKR0JDzrdU2EFgpidawlFDR6FgXUMNa+g1FY3bUQh2cLCwosRdnuQTS/S+JVrGLeWIvtQUvONJxlqSQYYKpwoN2kaocLjdVsis4Mk80ESF2YpSkzwldjHkjFCUutI/r+EHDU8oCs6yzL3PhWiEooZdFMkymlas4AcI3KmoMMNSQ3tHzjGWCrcJJdYyZC7QFGwjRL9p+MrRkAGWzIaWCn9W0F3TsK01c2ZvQw0byvxuQU0r1lM0qJO7wW0kRIMdDTtXEdzi4VIh+EoIHm0mWtAtpCixlabgn83fKTI7anJe9ST7WIK1DMGpQmYeA58ImV6ezOGOzK2Kgq01pd60cKWiUi9Lievb/0vIDPHQ05Kzt4ddPckQBQtoaurjyHnek/nKzpQLrVgKPjIkh2v4uyezpv+Xoo7fPFXaGFp1vaLKxQ4uUpQQS5VuQs7BCq4xRJv7fwpVvvFEB3j+620haOuocqMhWd6TTPAEx+mdFNGHdranFe95WrWmIvlY4F1Dle2ECgc6cto7SryuqGGGha0tFQ5V53migUKmg6XKAo4qS3mik+0OZpAhOLeZKicacgaYcyx5hypYQE02ZA4xi/pNhOQxR4klNKyqacj+mpxnLTnnGSo85++3ZCZq6lrZkXlGEX3o+C9FieccJbZWVFjC0Yo1FZnJhoYMFoI1hEZ9r6hwg75HwzBNhbZCdJEfJwTPGzJvaKImw1yYX1HDAmpXR+ZJQ/SmgqMNVQb5vgamGwLtt7VwvP7Qk1xpiM5x5Cyv93E06MZmgs0Nya2azIKOYKCGBQQW97RmhKNKF02JZqHEJ4o58qp7X5EcZmc56trXEqzjCBZ1MFGR87Ql2tSTs6CGxS05PTzRQorkbw7aKoKXFDXsYW42VJih/q+FP2BdTzDTwVqOYB13liM50vG7wy28qagyuIXMeQI/Oqq8bcn5wJI50xH00CRntyfpL1T4hydYpoXgNiFzoIUTDZnLNRzh4TBHwbYGDvZkxmlyJloyr6tRihpeUG94GnKtIznREF0tzJG/OOr73JBcrSh1k6WuTprgLU+mnSGnv6Zge0NNz+kTDdH8nuAuTdJDCNb21LCiIuqlYbqGzT3RAoZofQfjFazkqeNWdYaGvYTM001EW2oKPvVk1ldUGSgUtHFwjKM1h9jnFcmy5lChoLNaQMGGDsYbKixlaMBmmsx1QjCfflwTfO/gckW0ruZ3jugKR3R5W9hGUWqCgxuFgsuaCHorotGKzGaeZB9DMsaTnKCpMtwTvOzhYk0rdrArKCqcaWmVk1+F372ur1YkKxgatI8Qfe1gIX9wE9FgS8ESmuABIXnRUbCapcKe+nO7slClSZFzpV/LkLncEb1qiO42fS3R855Su2mCLh62t1SYZZYVmKwIHjREF2uihTzB20JOkz7dkxzYQnK0UOU494wh+VWRc6Un2kpTaVgLDFEkJ/uhzRcI0YKGgpGWOlocBU/a4fKoJ/pEaNV6jip3+Es9VXY078rGnmAdf7t9ylPXS34RBSuYPs1UecZTU78WanhBCHpZ5sAoTz0LGZKjPf9TRypqWEiTvOFglL1fCEY3wY/++rbk7C8bWebA6p6om6PgOL2kp44TFJlVNBXae2rqqdZztOJpT87GQsE9jqCPIe9VReZuQ/CIgacsyZdCpIScSYqcZk8r+nsyCzhyfhOqHGOIvrLknC8wTpFcaYiGC/RU1NRbUeUpocQOnkRpGOrIOcNRx+1uA0UrzhSSt+VyS3SJpnFWkzNDqOFGIWcfR86DnmARTQ1HKIL33ExPiemeOhYSSjzlSUZZuE4TveoJLnBUOFof6KiysCbnAEcZgcUNTDOwkqWu3RWtmGpZwlHhJENdZ3miGz0lJlsKnjbwqSHQjpxnFDlTLLwqJPMZMjd7KrzkSG7VsxXBZE+F8YZkb01Oe00yyRK9psh5SYh29ySPKBo2ylNht7ZkZnsKenjKNJu9PNEyZpaCHv4Kt6RQsLvAVp7M9kIimmCUwGeWqLMmGuIotYMmWNpSahkhZw9FqZsVnKJhsjAHvtHMsTM9fCI06Dx/u3vfUXCqfsKRc4oFY2jMsoo/7DJDwZ1CsIKnJu+J9ldkpmiCxQx1rWjI+T9FwcWWzOuaYH0Hj7klNRVWEQpmaqosakiGNTFHdjS/qnUdmf0NJW5xsL0HhimCCZZSRzmSPTXJQ4aaztAwtZnoabebJ+htCaZ7Cm535ByoqXKbX1WRc4Eh2MkRXWzImVc96Cj4VdOKVxR84VdQsIUM8Psoou2byVHyZFuq7O8otbSQ2UAoeEWTudATLGSpZzVLlXVkPU2Jc+27lsw2jmg5T5VhbeE3BT083K9WsTTkFU/Osi0rC5lRlpwRHUiesNS0sOvmqGML1aRbPAxTJD9ZKtxuob+hhl8cwYGWpJ8nub7t5p6coYbMovZ1BTdaKn1jYD6h4GFDNFyT/Kqe1XCXphXHOKLZmuRSRdBPEfVUXQzJm5YGPGGJdvAEr7hHNdGZnuBvrpciGmopOLf5N0uVMy0FfYToJk90uUCbJupaVpO53UJXR2bVpoU00V2KOo4zMFrBd0Jtz2pa0clT5Q5L8IpQ177mWQejPMEJhuQjS10ref6HHjdEhy1P1EYR7GtO0uSsKJQYLiTnG1rVScj5lyazpqWGl5uBbRWl7m6ixGOOnEsMJR7z8J0n6KMnCdxhiNYQCoZ6CmYLnO8omC3MkW3bktlPmEt/VQQHejL3+dOE5FlPdK/Mq8hZxxJtLyRrepLThYKbLZxkSb5W52vYxNOaOxUF0yxMUPwBTYqCzy01XayYK0sJyWBLqX0MwU5CzoymRzV0EjjeUeLgDpTo6ij42ZAzvD01dHUUTPLU96MdLbBME8nFBn7zJCMtJcZokn8YoqU0FS5WFKyniHobguMcmW8N0XkWZjkyN3hqOMtS08r+/xTBwpZSZ3qiVRX8SzMHHjfUNFjgHEPmY9PL3ykEzxkSre/1ZD6z/NuznuB0RcE1TWTm9zRgfUWVJiG6yrzgmWPXC8EAR4Wxhlad0ZbgQyEz3pG5RVEwwDJH2mgKpjcTiCOzn1lfUWANFbZ2BA8balnEweJC9J0iuaeZoI+ippFCztEKVvckR2iice1JvhVytrQwUAZpgsubCPaU7xUe9vWnaOpaSBEspalykhC9bUlOMpT42ZHca6hyrqKmw/wMR8H5ZmdFoBVJb03O4UL0tSNnvIeRmkrLWqrs78gcrEn2tpcboh0UPOW3UUR9PMk4T4nnNKWmCjlrefhCwxRNztfmIQVdDElvS4m1/WuOujoZCs5XVOjtKPGokJzsYCtFYoWonSPT21DheU/wWhM19FcElwqNGOsp9Q8N/cwXaiND1MmeL1Q5XROtYYgGeFq1aTMsoMmcrKjQrOFQTQ1fmBYhmW6o8Jkjc7iDJRTBIo5kgJD5yMEYA3srCg7VFKwiVJkmRCc5ohGOKhsYMn/XBLdo5taZjlb9YAlGWRimqbCsoY7HFAXLa5I1HPRxMMsQDHFkWtRNniqT9UEeNjcE7RUlrCJ4R2CSJuqlKHWvJXjAUNcITYkenuBRB84TbeepcqTj3zZyFJzgYQdHnqfgI0ddUwS6GqWpsKWhjq9cV0vBAEMN2znq+EBfIWT+pClYw5xsTlJU6GeIBsjGmmANTzJZiIYpgrM0Oa8ZMjd7NP87jxhqGOhJlnQtjuQpB+8aEE00wZFznSJPyHxgH3HkPOsJFvYk8zqCHzTs1BYOa4J3PFU+UVRZxlHDM4YavlNUuMoRveiZA2d7grMNc2g+RbSCEKzmgYsUmWmazFJyoiOZ4KnyhKOGRzWJa0+moyV4TVHDzn51Awtqaphfk/lRQ08FX1iiqxTB/kLwd0VynKfEvI6cd4XMV5bMhZ7gZUWVzYQ6Nm2BYzxJbw3bGthEUUMfgbGeorae6DxHtJoZ6alhZ0+ytiVoK1R4z5PTrOECT/SugseEOlb1MMNR4VRNcJy+V1Hg9ONClSZFZjdHlc6W6FBLdJja2MC5hhpu0DBYEY1TFGwiFAxRRCsYkiM9JRb0JNMVkW6CZYT/2EiTGWmo8k+h4FhDNE7BvppoTSFnmCV5xZKzvcCdDo7VVPnIU+I+Rc68juApC90MwcFCsJ5hDqxgScYKreruyQwTqrzoqDCmhWi4IbhB0Yrt3RGa6GfDv52rKXWhh28dyZaWUvcZeMTBaZoSGyiCtRU5J8iviioHaErs7Jkj61syVzTTgOcUOQ8buFBTYWdL5g3T4qlpe0+wvD63heAXRfCCIed9RbCsp2CiI7raUOYOTU13N8PNHvpaGvayo4a3LLT1lDrVEPT2zLUlheB1R+ZTRfKWJ+dcocLJfi11vyJ51lLqJ0WD7tRwryezjiV5W28uJO9qykzX8JDe2lHl/9oyBwa2UMfOngpXCixvKdXTk3wrsKmiVYdZIqsoWEERjbcUNDuiaQomGoIbFdEHmsyWnuR+IeriKDVLnlawlyNHKwKlSU631PKep8J4Q+ayjkSLKYLhalNHlYvttb6fHm0p6OApsZ4l2VfdqZkjuysy6ysKLlckf1KUutCTs39bmCgEyyoasIWlVaMF7mgmWtBT8Kol5xpH9IGllo8cJdopcvZ2sImlDmMIbtDk3KIpeNiS08lQw11NFPTwVFlPP6pJ2gvRfI7gQUfmNAtf6Gs0wQxDsKGlVBdF8rCa3jzdwMaGHOsItrZk7hAyOzpK9VS06j5F49b0VNGOOfKs3lDToMsMBe9ZWtHFEgxTJLs7qrygKZjUnmCYoeAqeU6jqWuLJup4WghOdvCYJnrSkSzoyRkm5M2StQwVltPkfCAk58tET/CSg+8MUecmotMEnhBKfWBIZsg2ihruMJQaoIm+tkTLKEqspMh00w95gvFCQRtDwTT1gVDDSEVdlwqZfxoQRbK0g+tbiBZxzKlpnpypejdDwTaeOvorMk/IJE10h9CqRe28hhLbe0pMsdSwv4ZbhKivo2BjDWfL8UKJgeavwlwb5KlwhyE4u4XkGE2ytZCznKLCDZZq42VzT8HLCrpruFbIfOIINmh/qCdZ1ZBc65kLHR1Bkyf5zn6pN3SvGKIlFNGplhrO9QSXanLOMQTLCa0YJCRrCZm/CZmrLTm7WzCK4GJDiWUdFeYx1LCFg3NMd0XmCuF3Y5rITLDUsYS9zoHVzwnJoYpSTQoObyEzr4cFBNqYTopoaU/wkyLZ2lPhX/5Y95ulxGTV7KjhWrOZgl8MyUUafjYraNjNU1N3IWcjT5WzWqjwtoarHSUObGYO3GCJZpsBlnJGPd6ZYLyl1GdCA2625IwwJDP8GUKymbzuyPlZlvTUsaUh5zFDhRWFzPKKZLAlWdcQbObgF9tOqOsmB1dqcqYJmWstFbZRRI9poolmqiLnU0POvxScpah2iSL5UJNzgScY5+AuIbpO0YD3NCW+dLMszFSdFCWGqG6eVq2uYVNDdICGD6W7EPRWZEY5gpsE9rUkS3mijzzJnm6UpUFXG1hCUeVoS5WfNcFpblELL2qqrCvMvRfd45oalvKU2tiQ6ePJOVMRXase9iTtLJztPxJKLWpo2CRDcJwn2sWSLKIO1WQWNTCvpVUvOZhgSC40JD0dOctaSqzkCRbXsKlb11Oip6PCJ0IwSJM31j3akRxlP7Rwn6aGaUL0qiLnJkvB3xWZ2+Q1TfCwpQH3G0o92UzmX4o/oJNQMMSQc547wVHhdk+VCw01DFYEnTxzZKAm74QmeNNR1w6WzEhNK15VJzuCdxQ53dRUDws5KvwgBMOEgpcVNe0hZI6RXT1Jd0cyj5nsaEAHgVmGaJIlWdsc5Ui2ElrRR6jrRAttNMEAIWrTDFubkZaok7/AkzfIwfuWVq0jHzuCK4QabtLUMVPB3kJ0oyHTSVFlqMALilJf2Rf8k5aaHtMfayocLBS8L89oKoxpJvnAkDPa0qp5DAUTHKWmCcnthlou8iCKaFFLHWcINd1nyIwXqrSxMNmSs6KmoL2QrKuWtlQ5V0120xQ5vRyZS1rgFkWwhiOwiuQbR0OOVhQM9iS3tiXp4RawRPMp5tDletOOBL95MpM01dZTBM9pkn5qF010rIeHFcFZhmSGpYpTsI6nwhqe5C9ynhlpp5ophuRb6WcJFldkVnVEwwxVfrVkvnWUuNLCg5bgboFHPDlDPDmnK7hUrWiIbjadDclujlZcaokOFup4Ri1kacV6jmrrK1hN9bGwpKEBQ4Q6DvIUXOmo6U5LqQM6EPyiKNjVkPnJkDPNEaxhiFay5ExW1NXVUGqcpYYdPcGiCq7z/TSlbhL4pplWXKd7NZO5QQFrefhRQW/NHOsqcIglc4UhWklR8K0QzbAw08CBDnpbgqXdeD/QUsM4RZXDFBW6WJKe/mFPdH0LtBgiq57wFLzlyQzz82qYx5D5WJP5yVJDW01BfyHnS6HKO/reZqId1WGa4Hkh2kWodJ8i6KoIPlAj2hPt76CzXsVR6koPRzWTfKqIentatYpQw2me4AA3y1Kind3SwoOKZDcFXTwl9tWU6mfgRk9d71sKtlNwrjnYw5tC5n5LdKiGry3JKNlHEd3oaMCFHrazBPMp/uNJ+V7IudcSbeOIdjUEdwl0VHCOZo5t6YluEuaC9mQeMgSfOyKnYGFHcIeQ84yQWbuJYJpZw5CzglDH7gKnWqqM9ZTaXcN0TeYhR84eQtJT76JJ1lREe7WnnvsMmRc9FQ7SBBM9mV3lCUdmHk/S2RAMt0QjFNFqQpWjDPQ01DXWUdDBkXziKPjGEP3VP+zIWU2t7im41FOloyWzn/L6dkUy3VLDaZ6appgDLHPjJEsyvJngWEPUyVBiAaHCTEXwrLvSEbV1e1gKJniicWorC1MUrVjB3uDhJE/wgSOzk1DXpk0k73qCM8xw2UvD5kJmDUfOomqMpWCkJRlvKXGmoeBm18USjVIk04SClxTB6YrgLAPLWYK9HLUt5cmc0vYES8GnTeRc6skZbQkWdxRsIcyBRzx1DbTk9FbU0caTPOgJHhJKnOGIVhQqvKmo0llRw9sabrZkDtdg3PqaKi9oatjY8B+G371paMg6+mZFNNtQ04mWBq3rYLOmtWWQp8KJnpy9DdFensyjdqZ+yY40VJlH8wcdLzC8PZnvHMFUTZUrDTkLyQaGus5X5LzpYAf3i+e/ZlhqGqWhh6Ou6xTR9Z6oi5AZZtp7Mj2EEm8oSpxiYZCHU/1fbGdNNNRRoZMhmilEb2gqHOEJDtXkHK/JnG6IrvbPCwV3NhONVdS1thBMs1T4QOBcTWa2IzhMk2nW5Kyn9tXUtpv9RsG2msxk+ZsQzRQacJncpgke0+T8y5Fzj8BiGo7XlJjaTIlpQs7KFjpqGnKuoyEPeIKnFMkZHvopgh81ySxNFWvJWcKRs70j2FOT012IllEEO1n4pD1513Yg2ssQPOThOkvyrqHUdEXOSEsihmBbTbKX1kLBPWqWkLOqJbjB3GBIZmoa8qWl4CG/iZ7oiA72ZL7TJNeZUY7kFQftDcHHluBzRbCegzMtrRjVQpX2lgoPKKLJAkcbMl01XK2p7yhL8pCBbQ3BN2avJgKvttcrWDK3CiUOVxQ8ZP+pqXKyIxnmBymCg5vJjNfkPK4+c8cIfK8ocVt7kmfd/I5SR1hKvCzUtb+lhgc00ZaO6CyhIQP1Uv4yIZjload72PXX0OIJvnFU+0Zf6MhsJwTfW0r0UwQfW4LNLZl5HK261JCZ4qnBaAreVAS3WrjV0LBnNDUNNDToCEeFfwgcb4gOEqLRhirWkexrCEYKVV711DLYEE1XBEsp5tpTGjorkomKYF9FDXv7fR3BGwbettSxnyL53MBPjsxDZjMh+VUW9NRxq1DhVk+FSxQcaGjV9Pawv6eGByw5qzoy7xk4RsOShqjJwWKe/1pEEfzkobeD/dQJmpqedcyBTy2sr4nGNRH0c0SPWTLrqAc0OQcb/gemKgqucQT7ySWKCn2EUotoCvpZct7RO2sy/QW0IWcXd7pQRQyZVwT2USRO87uhjioTLKV2brpMUcMQRbKH/N2T+UlTpaMls6cmc6CCNy3JdYYSUzzJQ4oSD3oKLncULOiJvjBEC2oqnCJkJluCYy2ZQ5so9YYlZ1VLlQU1mXEW1jZERwj/MUSRc24TdexlqLKfQBtDTScJUV8FszXBEY5ktpD5Ur9hYB4Nb1iikw3JoYpkKX+RodRKFt53MMuRnKSpY31PwYaGaILh3wxJGz9TkTPEETxoCWZrgvOlmyMzxFEwVJE5xZKzvyJ4WxEc16Gd4Xe3Weq4XH2jKRikqOkGQ87hQnC7wBmGYLAnesX3M+S87eFATauuN+Qcrh7xIxXJbUIdMw3JGE3ylCWzrieaqCn4zhGM19TQ3z1oH1AX+pWEqIc7wNGAkULBo/ZxRaV9NNyh4Br3rCHZzbzmSfawBL0dNRwpW1kK9mxPXR9povcdrGSZK9c2k0xwFGzjuniCtRSZCZ6ccZ7gaktmgAOtKbG/JnOkJrjcQTdFMsxRQ2cLY3WTIrlCw1eWKn8R6pvt4GFDso3QoL4a3nLk3G6JrtME3dSenpx7PNFTmga0EaJTLQ061sEeQoWXhSo9LTXsaSjoJQRXeZLtDclbCrYzfzHHeaKjHCVOUkQHO3JeEepr56mhiyaYYKjjNU+Fed1wS5VlhWSqI/hYUdDOkaxiKehoyOnrCV5yBHtbWFqTHCCwtpDcYolesVR5yUzTZBb3RNMd0d6WP+SvhuBmRcGxnuQzT95IC285cr41cLGQ6aJJhmi4TMGempxeimBRQw1tFKV+8jd6KuzoSTqqDxzRtpZkurvKEHxlqXKRIjjfUNNXQsNOsRScoWFLT+YeRZVD3GRN0MdQcKqQjHDMrdGGVu3iYJpQx3WGUvfbmxwFfR20WBq0oYY7LMFhhgYtr8jpaEnaOzjawWWaTP8mMr0t/EPDPoqcnxTBI5o58L7uoWnMrpoqPwgVrlAUWE+V+TQl9rawoyP6QGAlQw2TPRX+YSkxyBC8Z6jhHkXBgQL7WII3DVFnRfCrBfxewv9D6xsyjys4VkhWb9pUU627JllV0YDNHMku/ldNMMXDEo4aFnAkk4U6frNEU4XgZUPmEKHUl44KrzmYamjAbh0JFvGnaTLPu1s9jPCwjFpYiN7z1DTOk/nc07CfDFzmCf7i+bfNHXhDtLeBXzTBT5rkMvWOIxpl4EMh2LGJBu2syDnAEx2naEhHDWMMzPZEhygyS1mS5RTJr5ZkoKbEUoYqr2kqdDUE8ztK7OaIntJkFrIECwv8LJTaVx5XJE86go8dFeZ3FN3rjabCAYpoYEeC9zzJVULBbmZhDyd7ko09ydpNZ3nm2Kee4FPPXHnYEF1nqOFEC08LUVcDvYXkJHW8gTaKCk9YGOeIJhqiE4ToPEepdp7IWFjdwnWaufGMwJJCMtUTTBBK9BGCOy2tGGrJTHIwyEOzp6aPzNMOtlZkDvcEWpP5SVNhfkvDxhmSazTJXYrM9U1E0xwFVwqZQwzJxw6+kGGGUj2FglGGmnb1/G51udRSMNlTw6GGnCcUwVcOpmsqTHa06o72sw1RL02p9z0VbnMLOaIX3QKaYKSCFQzBKEUNHTSc48k53RH9wxGMtpQa5KjjW0W0n6XCCCG4yxNNdhQ4R4l1Ff+2sSd6UFHiIEOyqqFgT01mEUMD+joy75jPhOA+oVVLm309FR4yVOlp4RhLiScNmSmaYF5Pw0STrOIoWMSR2UkRXOMp+M4SHW8o8Zoi6OZgjKOaFar8zZDzkWzvKOjkKBjmCXby8JahhjXULY4KlzgKLvAwxVGhvyd4zxB1d9T0piazmKLCVZY5sKiD0y2ZSYrkUEPUbIk+dlQ4SJHTR50k1DPaUWIdTZW9NJwnJMOECgd7ou/MnppMJ02O1VT4Wsh85MnZzcFTngpXGKo84qmwgKbCL/orR/SzJ2crA+t6Mp94KvxJUeIbT3CQu1uIdlQEOzlKfS3UMcrTiFmOuroocrZrT2AcmamOKg8YomeEKm/rlT2sociMaybaUlFhuqHCM2qIJ+rg4EcDFymiDSxzaHdPcpE62pD5kyM5SBMoA1PaUtfIthS85ig1VPiPPYXgYEMNk4Qq7TXBgo7oT57gPUdwgCHzhIVFPFU6OYJzHAX9m5oNrVjeE61miDrqQ4VSa1oiURTsKHC0IfjNwU2WzK6eqK8jWln4g15TVBnqmDteCJ501PGAocJhhqjZdtBEB6lnhLreFJKxmlKbeGrqLiSThVIbCdGzloasa6lpMQXHCME2boLpJgT7yWaemu6wBONbqGNVRS0PKIL7LckbjmQtR7K8I5qtqel+T/ChJTNIKLjdUMNIRyvOEko9YYl2cwQveBikCNawJKcLBbc7+JM92mysNvd/Fqp8a0k6CNEe7cnZrxlW0wQXaXjaktnRwNOGZKYiONwS7a1JVheq3WgJHlQUGKHKmp4KAxXR/ULURcNgoa4zhKSLpZR3kxRRb0NmD0OFn+UCS7CzI1nbP6+o4x47QZE5xRCt3ZagnYcvmpYQktXdk5YKXTzBC57kKEe0VVuiSYqapssMS3C9p2CKkHOg8B8Pa8p5atrIw3qezIWanMGa5HRDNF6RM9wcacl0N+Q8Z8hsIkSnaIIdHRUOEebAPy1zbCkhM062FCJtif7PU+UtoVXzWKqM1PxXO8cfdruhFQ/a6x3JKYagvVDhQEtNiyiiSQ7OsuRsZUku0CRNDs4Sog6KKjsZgk2bYJqijgsEenoKeniinRXBn/U3lgpPdyDZynQx8IiioMnCep5Ky8mjGs6Wty0l1hUQTcNWswS3WRp2kCNZwJG8omG8JphPUaFbC8lEfabwP7VtM9yoaNCAjpR41VNhrD9LkbN722v0CoZMByFzhaW+MyzRYEWFDQwN2M4/JiT76PuljT3VU/A36eaIThb+R9oZGOAJ9tewkgGvqOMNRWYjT/Cwu99Q8LqDE4TgbLWxJ1jaDDAERsFOFrobgjUsBScaguXU8kKm2RL19tRypSHnHNlHiIZqgufs4opgQdVdwxBNNFBR6kVFqb8ogimOzB6a6HTzrlDHEpYaxjiiA4TMQobkDg2vejjfwJGWmnbVFAw3H3hq2NyQfG7hz4aC+w3BbwbesG0swYayvpAs6++Ri1Vfzx93mFChvyN5xVHTS+0p9aqCAxyZ6ZacZyw5+7uuQkFPR9DDk9NOiE7X1PCYJVjVUqq7JlrHwWALF5nfHNGjApdpqgzx5OwilDhCiDYTgnc9waGW4BdLNNUQvOtpzDOWHDH8D7TR/A/85KljEQu3NREc4Pl/6B1Hhc8Umb5CsKMmGC9EPcxoT2amwHNCmeOEnOPbklnMkbOgIvO5UMOpQrS9UGVdt6iH/fURjhI/WOpaW9OKLYRod6HCUEdOX000wpDZQ6hwg6LgZfOqo1RfT/CrJzjekXOGhpc1VW71ZLbXyyp+93ILbC1kPtIEYx0FIx1VDrLoVzXRKRYWk809yYlC9ImcrinxtabKnzRJk3lAU1OLEN1j2zrYzr2myHRXJFf4h4QKT1qSTzTB5+ZNTzTRkAxX8FcLV2uS8eoQQ2aAkFzvCM72sJIcJET3WPjRk5wi32uSS9rfZajpWEvj9hW42F4o5NytSXYy8IKHay10VYdrcl4SkqscrXpMwyGOgtkajheSxdQqmpxP1L3t4R5PqasFnrQEjytq6qgp9Y09Qx9o4S1FzhUCn1kyHSzBWLemoSGvOqLNhZyBjmCaAUYpMgt4Ck7wBBMMwWKWgjsUwTaGVsxWC1mYoKiyqqeGKYqonSIRQ3KIkHO0pmAxTdBHkbOvfllfr+AA+7gnc50huVKYK393FOyg7rbPO/izI7hE4CnHHHnJ0ogNPRUGeUpsrZZTBJcrovUcJe51BPsr6GkJdhCCsZ6aTtMEb2pqWkqeVtDXE/QVggsU/Nl86d9RMF3DxvZTA58agu810RWawCiSzzXBeU3MMW9oyJUedvNEvQyNu1f10BSMddR1vaLCYpYa/mGocLSiYDcLbQz8aMn5iyF4xBNMs1P0QEOV7o5gaWGuzSeLue4tt3ro7y4Tgm4G/mopdZgl6q0o6KzJWE3mMksNr3r+a6CbT8g5wZNzT9O7fi/zpaOmnz3BRoqos+tv9zMbdpxsqDBOEewtJLt7cg5wtKKbvldpSzRRCD43VFheCI7yZLppggMVBS/KMAdHODJvOwq2NQSbKKKPLdFWQs7Fqo+mpl01JXYRgq8dnGLhTiFzqmWsUMdpllZdbKlyvSdYxhI9YghOtxR8LgSLWHK62mGGVoxzBE8LNWzqH9CUesQzFy5RQzTc56mhi6fgXEWwpKfE5Z7M05ZgZUPmo6auiv8YKzDYwWBLMErIbKHJvOwIrvEdhOBcQ9JdU1NHQ7CXn2XIDFBKU2WAgcX9UAUzDXWd5alwuyJ41Z9rjKLCL4aCp4WarhPm2rH+SaHUYE001JDZ2ZAzXPjdMpZWvC9wmqIB2lLhQ01D5jO06hghWMndbM7yRJMsoCj1vYbnFQVrW9jak3OlEJ3s/96+p33dEPRV5GxiqaGjIthUU6FFEZyqCa5qJrpBdzSw95IUnOPIrCUUjRZQFrbw5PR0R1qiYx3cb6nrWUMrBmmiBQxVHtTew5ICP/ip6g4hed/Akob/32wvBHsIOX83cI8hGeNeNPCIkPmXe8fPKx84OMSRM1MTdXSwjCZ4S30jVGhvqTRak/OVhgGazHuOCud5onEO1lJr6ecVyaOK6H7zqlBlIaHE0oroCgfvGJIdPcmfLNGLjpz7hZwZQpUbFME0A1cIJa7VNORkgfsMBatbKgwwJM9bSvQXeNOvbIjelg6WWvo5kvbKaJJNHexkKNHL9xRyFlH8Ti2riB5wVPhUk7nGkJnoCe428LR/wRGdYIlmWebCyxou1rCk4g/ShugBDX0V0ZQWkh0dOVsagkM0yV6OoLd5ye+pRlsCr0n+KiQrGuq5yJDzrTAXHtLUMduTDBVKrSm3eHL+6ijxhFDX9Z5gVU/wliHYTMiMFpKLNMEywu80wd3meoFmt6VbRMPenhrOc6DVe4pgXU8DnnHakLOIIrlF4FZPIw6R+zxBP0dyq6OOZ4Q5sLKCcz084ok+VsMMyQhNZmmBgX5xIXOEJTmi7VsGTvMTNdHHhpzdbE8Du2oKxgvBqQKdDDnTFOylCFaxR1syz2iqrOI/FEpNc3C6f11/7+ASS6l2inq2ciTrCCzgyemrCL5SVPjQkdPZUmGy2c9Sw9FtR1sS30RmsKPCS4rkIC/2U0MduwucYolGaPjKEyhzmiPYXagyWbYz8LWBDdzRimAXzxx4z8K9hpzlhLq+NiQ97HuKorMUfK/OVvC2JfiHUPCQI/q7J2gjK+tTDNxkCc4TMssqCs4TGtLVwQihyoAWgj9bosU80XGW6Ac9TJGziaUh5+hnFcHOnlaM1iRn29NaqGENTTTSUHCH2tWTeV0osUhH6psuVLjRUmGWhm6OZEshGeNowABHcJ2Bpy2ZszRcKkRXd2QuKVEeXnbfaEq825FguqfgfE2whlChSRMdron+LATTPQ2Z369t4B9C5gs/ylzv+CMmepIDPclFQl13W0rspPd1JOcbghGOEutqCv5qacURQl3dDKyvyJlqKXGPgcM9FfawJAMVmdcspcYKOZc4GjDYkFlK05olNMHyHn4zFNykyOxt99RkHlfwmiHo60l2EKI+mhreEKp080Tbug08BVPcgoqC5zWt+NLDTZ7oNSF51N1qie7Va3uCCwyZbkINf/NED6jzOsBdZjFN8oqG3wxVunqCSYYKf3EdhJyf9YWGf7tRU2oH3VHgPr1fe5J9hOgHd7xQ0y7qBwXr23aGErP0cm64JVjZwsOGqL+mhNgZmhJLW2oY4UhedsyBgzrCKrq7BmcpNVhR6jBPq64Vgi+kn6XE68pp8J5/+0wRHGOpsKenQn9DZntPzjRLZpDAdD2fnSgkG9tmIXnUwQ6WVighs7Yi2MxQ0N3CqYaCXkJ0oyOztMDJjmSSpcpvlrk0RMMOjmArQ04PRV1DO1FwhCVaUVPpKUM03JK5SxPsIWRu8/CGHi8UHChiqGFDTbSRJWeYUDDcH6vJWUxR4k1FXbMUwV6e4AJFXS8oMqsZKqzvYQ9DDQdZckY4aGsIhtlubbd2r3j4QBMoTamdPZk7O/Bf62lacZwneNjQoGcdVU7zJOd7ghsUHOkosagic6cnWc8+4gg285R6zZP5s1/LUbCKIznTwK36PkdwlOrl4U1LwfdCCa+IrvFkmgw1PCAUXKWo0sURXWcI2muKJlgyFzhynCY4RBOsqCjoI1R5zREco0n2Vt09BQtYSizgKNHfUmUrQ5UOCh51BFcLmY7umhYqXKQomOop8bUnWNNQcIiBcYaC6xzMNOS8JQQfeqKBmmglB+97ok/lfk3ygaHSyZaCRTzRxQo6GzLfa2jWBPepw+UmT7SQEJyiyRkhBLMVOfcoMjcK0eZChfUNzFAUzCsEN5vP/X1uP/n/aoMX+K+nw/Hjr/9xOo7j7Pju61tLcgvJpTWXNbfN5jLpi6VfCOviTktKlFusQixdEKWmEBUKNaIpjZRSSOXSgzaaKLdabrm1/9nZ+/f+vd/vz/v9+Xy+zZ7PRorYoZqyLrCwQdEAixxVOEXNNnjX2nUSRlkqGmWowk8lxR50JPy9Bo6qJXaXwNvREBvnThPEPrewryLhcAnj5WE15Fqi8W7R1sAuEu86S4ENikItFN4xkv9Af4nXSnUVcLiA9xzesFpivRRVeFKtsMRaKBhuSbjOELnAUtlSQUpXgdfB4Z1oSbnFEetbQ0IrAe+Y+pqnDcEJFj6S8LDZzZHwY4e3XONNlARraomNEt2bkvGsosA3ioyHm+6jCMbI59wqt4eeara28IzEmyPgoRaUOEDhTVdEJhmCoTWfC0p8aNkCp0oYqih2iqGi4yXeMkOsn4LdLLnmKfh/YogjNsPebeFGR4m9BJHLzB61XQ3BtpISfS2FugsK9FAtLWX1dCRcrCnUp44CNzuCowUZmxSRgYaE6Za0W2u/E7CVXCiI/UOR8aAm1+OSyE3mOUcwyc1zBBeoX1kiKy0Zfxck1Gsyulti11i83QTBF5Kg3pDQThFMVHiPSlK+0cSedng/VaS8bOZbtsBcTcZAR8JP5KeqQ1OYKAi20njdNNRpgnsU//K+JnaXJaGTomr7aYIphoRn9aeShJWKEq9LcozSF7QleEfDI5LYm5bgVkFkRwVDBCVu0DDIkGupo8TZBq+/pMQURYErJQmPKGKjNDkWOLx7Jd5QizdUweIaKrlP7SwJDhZvONjLkOsBBX9UpGxnydhXkfBLQ8IxgojQbLFnJf81JytSljclYYyEFyx0kVBvKWOFJmONpshGAcsduQY5giVNCV51eOdJYo/pLhbvM0uDHSevNKRcrKZIqnCtJeEsO95RoqcgGK4ocZcho1tTYtcZvH41pNQ7vA0WrhIfOSraIIntIAi+NXWCErdbkvrWwjRLrt0NKUdL6KSOscTOdMSOUtBHwL6OLA0vNSdynaWQEnCpIvKaIrJJEbvHkmuNhn6OjM8VkSGSqn1uYJCGHnq9I3aLhNME3t6GjIkO7xrNFumpyTNX/NrwX7CrIRiqqWijI9JO4d1iieykyfiposQIQ8YjjsjlBh6oHWbwRjgYJQn2NgSnNycmJAk3NiXhx44Sxykihxm8ybUwT1OVKySc7vi3OXVkdBJ4AyXBeksDXG0IhgtYY0lY5ahCD0ehborIk5aUWRJviMA7Xt5kyRjonrXENkm8yYqgs8VzgrJmClK20uMM3jRJ0FiQICQF9hdETlLQWRIb5ki6WDfWRPobvO6a4GP5mcOrNzDFELtTkONLh9dXE8xypEg7z8A9jkhrQ6Fhjlg/QVktJXxt4WXzT/03Q8IaQWSqIuEvloQ2mqC9Jfi7wRul4RX3pSPlzpoVlmCtI2jvKHCFhjcM3sN6lqF6HxnKelLjXWbwrpR4xzuCrTUZx2qq9oAh8p6ixCUGr78g8oyjRAtB5CZFwi80VerVpI0h+IeBxa6Zg6kWvpDHaioYYuEsRbDC3eOmC2JvGYLeioxGknL2UATNJN6hmtj1DlpLvDVmocYbrGCVJKOrg4X6DgddLA203BKMFngdJJFtFd7vJLm6KEpc5yjQrkk7M80SGe34X24nSex1Ra5Omgb71JKyg8SrU3i/kARKwWpH0kOGhKkObyfd0ZGjvyXlAkVZ4xRbYJ2irFMkFY1SwyWxr2oo4zlNiV+7zmaweFpT4kR3kaDAFW6xpSqzJay05FtYR4HmZhc9UxKbbfF2V8RG1MBmSaE+kmC6JnaRXK9gsiXhJHl/U0qM0WTcbyhwkYIvFGwjSbjfwhiJt8ZSQU+Bd5+marPMOkVkD0muxYLIfEuhh60x/J92itguihJSEMySVPQnTewnEm+620rTQEMsOfo4/kP/0ARvWjitlpSX7GxBgcMEsd3EEeYWvdytd+Saawi6aCIj1CkGb6Aj9rwhx16Cf3vAwFy5pyLhVonXzy51FDpdEblbkdJbUcEPDEFzQ8qNmhzzLTmmKWKbFCXeEuRabp6rxbvAtLF442QjQ+wEA9eL1xSR7Q0JXzlSHjJ4exq89yR0laScJ/FW6z4a73pFMEfDiRZvuvijIt86RaSFOl01riV2mD1UEvxGk/Geg5aWwGki1zgKPG9J2U8PEg8qYvMsZeytiTRXBMslCU8JSlxi8EabjwUldlDNLfzTUmCgxWsjqWCOHavYAqsknKFIO0yQ61VL5AVFxk6WhEaCAkdJgt9aSkzXlKNX2jEa79waYuc7gq0N3GDJGCBhoiTXUEPsdknCUE1CK0fwsiaylSF2uiDyO4XX3pFhNd7R4itFGc0k/ElBZwWvq+GC6szVeEoS/MZ+qylwpKNKv9Z469UOjqCjwlusicyTxG6VpNxcQ8IncoR4RhLbR+NdpGGmJWOcIzJGUuKPGpQg8rrG21dOMqQssJQ4RxH5jaUqnZuQ0F4Q+cjxLwPtpZbIAk3QTJHQWBE5S1BokoVtDd6lhqr9UpHSUxMcIYl9pojsb8h4SBOsMQcqvOWC2E8EVehqiJ1hrrAEbQxeK0NGZ0Gkq+guSRgniM23bIHVkqwx4hiHd7smaOyglyIyQuM978j4VS08J/A2G1KeMBRo4fBaSNhKUEZfQewVQ/C1I+MgfbEleEzCUw7mKXI0M3hd1EESVji8x5uQ41nxs1q4RMJCCXs7Iq9acpxn22oSDnQ/sJTxsCbHIYZiLyhY05TY0ZLIOQrGaSJDDN4t8pVaIrsqqFdEegtizc1iTew5Q4ayBDMUsQMkXocaYkc0hZua412siZ1rSXlR460zRJ5SlHGe5j801RLMlJTxtaOM3Q1pvxJ45zUlWFD7rsAbpfEm1JHxG0eh8w2R7QQVzBUw28FhFp5QZzq8t2rx2joqulYTWSuJdTYfWwqMFMcovFmSyJPNyLhE4E10pHzYjOC3huArRa571ZsGajQpQx38SBP5pyZB6lMU3khDnp0MBV51BE9o2E+TY5Ml2E8S7C0o6w1xvCZjf0HkVEHCzFoyNmqC+9wdcqN+Tp7jSDheE9ws8Y5V0NJCn2bk2tqSY4okdrEhx1iDN8cSudwepWmAGXKcJXK65H9to8jYQRH7SBF01ESUJdd0TayVInaWhLkOjlXE5irKGOnI6GSWGCJa482zBI9rCr0jyTVcEuzriC1vcr6mwFGSiqy5zMwxBH/TJHwjSPhL8+01kaaSUuMFKTcLEvaUePcrSmwn8DZrgikWb7CGPxkSjhQwrRk57tctmxLsb9sZvL9LSlyuSLlWkqOjwduo8b6Uv1DkmudIeFF2dHCgxVtk8dpIvHpBxhEOdhKk7OLIUSdJ+cSRY57B+0DgGUUlNfpthTfGkauzxrvTsUUaCVhlKeteTXCoJDCa2NOKhOmC4G1H8JBd4OBZReSRGkqcb/CO1PyLJTLB4j1q8JYaIutEjSLX8YKM+a6phdMsdLFUoV5RTm9JSkuDN8WcIon0NZMNZWh1q8C7SJEwV5HxrmnnTrf3KoJBlmCYI2ilSLlfEvlE4011NNgjgthzEua0oKK7JLE7HZHlEl60BLMVFewg4EWNt0ThrVNEVkkiTwpKXSWJzdRENgvKGq4IhjsiezgSFtsfCUq8qki5S1LRQeYQQ4nemmCkImWMw3tFUoUBZk4NOeZYEp4XRKTGa6wJjrWNHBVJR4m3FCnbuD6aak2WsMTh3SZImGCIPKNgsDpVwnsa70K31lCFJZYcwwSMFcQulGTsZuEaSdBXkPGZhu0FsdUO73RHjq8MPGGIfaGIbVTk6iuI3GFgucHrIQkmWSJdBd7BBu+uOryWAhY7+Lki9rK5wtEQzWwvtbqGhIMFwWRJsElsY4m9IIg9L6lCX0VklaPAYkfkZEGDnOWowlBJjtMUkcGK4Lg6EtoZInMUBVYLgn0UsdmCyCz7gIGHFfk+k1QwTh5We7A9x+IdJ6CvIkEagms0hR50eH9UnTQJ+2oiKyVlLFUE+8gBGu8MQ3CppUHesnjTHN4QB/UGPhCTHLFPHMFrCqa73gqObUJGa03wgbhHkrCfpEpzNLE7JDS25FMKhlhKKWKfCgqstLCPu1zBXy0J2ztwjtixBu8UTRn9LVtkmCN2iyFhtME70JHRQ1KVZXqKI/KNIKYMCYs1GUMEKbM1bKOI9LDXC7zbHS+bt+1MTWS9odA9DtrYtpbImQJ2VHh/lisEwaHqUk1kjKTAKknkBEXkbkdMGwq0dnhzLJF3NJH3JVwrqOB4Sca2hti75nmJN0WzxS6UxDYoEpxpa4htVlRjkYE7DZGzJVU72uC9IyhQL4i8YfGWSYLLNcHXloyz7QhNifmKSE9JgfGmuyLhc403Xm9vqcp6gXe3xuuv8F6VJNxkyTHEkHG2g0aKXL0MsXc1bGfgas2//dCONXiNLCX+5mB7eZIl1kHh7ajwpikyzlUUWOVOsjSQlsS+M0R+pPje/dzBXRZGO0rMtgQrLLG9VSu9n6CMXS3BhwYmSoIBhsjNBmZbgusE9BCPCP5triU4VhNbJfE+swSP27aayE8tuTpYYjtrYjMVGZdp2NpS1s6aBnKSHDsbKuplKbHM4a0wMFd/5/DmGyKrJSUaW4IBrqUhx0vyfzTBBLPIUcnZdrAkNsKR0sWRspumSns6Ch0v/qqIbBYUWKvPU/CFoyrDJGwSNFhbA/MlzKqjrO80hRbpKx0Jewsi/STftwGSlKc1JZyAzx05dhLEdnfQvhZOqiHWWEAHC7+30FuRcZUgaO5gpaIK+xsiHRUsqaPElTV40xQZQ107Q9BZE1nryDVGU9ZSQ47bmhBpLcYpUt7S+xuK/FiT8qKjwXYw5ypS2iuCv7q1gtgjhuBuB8LCFY5cUuCNtsQOFcT+4Ih9JX+k8Ea6v0iCIRZOtCT0Et00JW5UeC85Cg0ScK0k411HcG1zKtre3SeITBRk7WfwDhEvaYLTHP9le0m8By0JDwn4TlLW/aJOvGHxdjYUes+ScZigCkYQdNdEOhkiezgShqkx8ueKjI8lDfK2oNiOFvrZH1hS+tk7NV7nOmLHicGWEgubkXKdwdtZknCLJXaCpkrjZBtLZFsDP9CdxWsSr05Sxl6CMmoFbCOgryX40uDtamB7SVmXW4Ihlgpmq+00tBKUUa83WbjLUNkzDmY7cow1JDygyPGlhgGKYKz4vcV7QBNbJIgM11TUqZaMdwTeSguH6rOaw1JRKzaaGyxVm2EJ/uCIrVWUcZUkcp2grMsEjK+DMwS59jQk3Kd6SEq1d0S6uVmO4Bc1lDXTUcHjluCXEq+1OlBDj1pi9zgiXxnKuE0SqTXwhqbETW6RggMEnGl/q49UT2iCzgJvRwVXS2K/d6+ZkyUl7jawSVLit46EwxVljDZwoSQ20sDBihztHfk2yA8NVZghiXwrYHQdfKAOtzsayjhY9bY0yE2CWEeJ9xfzO423xhL5syS2TFJofO2pboHob0nY4GiAgRrvGQEDa/FWSsoaaYl0syRsEt3kWoH3B01shCXhTUWe9w3Bt44SC9QCh3eShQctwbaK2ApLroGCMlZrYqvlY3qYhM0aXpFkPOuoqJ3Dm6fxXrGwVF9gCWZagjPqznfkuMKQ8DPTQRO8ZqG1hPGKEm9IgpGW4DZDgTNriTxvFiq+Lz+0cKfp4wj6OCK9JSnzNSn9LFU7UhKZZMnYwcJ8s8yRsECScK4j5UOB95HFO0CzhY4xJxuCix0lDlEUeMdS6EZBkTsUkZ4K74dugyTXS7aNgL8aqjDfkCE0ZbwkCXpaWCKhl8P7VD5jxykivSyxyZrYERbe168LYu9ZYh86IkscgVLE7tWPKmJv11CgoyJltMEbrohtVAQfO4ImltiHEroYEs7RxAarVpY8AwXMcMReFOTYWe5iiLRQxJ5Q8DtJ8LQhWOhIeFESPGsILhbNDRljNbHzNRlTFbk2S3L0NOS6V1KFJYKUbSTcIIhM0wQ/s2TM0SRMNcQmSap3jCH4yhJZKSkwyRHpYYgsFeQ4U7xoCB7VVOExhXepo9ABBsYbvGWKXPME3lyH95YioZ0gssQRWWbI+FaSMkXijZXwgiTlYdPdkNLaETxlyDVIwqeaEus0aTcYcg0RVOkpR3CSJqIddK+90JCxzsDVloyrFd5ZAr4TBKfaWa6boEA7C7s6EpYaeFPjveooY72mjIccLHJ9HUwVlDhKkmutJDJBwnp1rvulJZggKDRfbXAkvC/4l3ozQOG9a8lxjx0i7nV4jSXc7vhe3OwIxjgSHjdEhhsif9YkPGlus3iLFDnWOFhtCZbJg0UbQcIaR67JjthoCyMEZRwhiXWyxO5QxI6w5NhT4U1WsJvDO60J34fW9hwzwlKij6ZAW9ne4L0s8C6XeBMEkd/LQy1VucBRot6QMlbivaBhoBgjqGiCJNhsqVp/S2SsG6DIONCR0dXhvWbJ+MRRZJkkuEjgDXJjFQW6SSL7GXK8Z2CZg7cVsbWGoKmEpzQ5elpiy8Ryg7dMkLLUEauzeO86CuwlSOlgYLojZWeJ9xM3S1PWfEfKl5ISLQ0MEKR8YOB2QfCxJBjrKPCN4f9MkaSsqoVXJBmP7EpFZ9UQfOoOFwSzBN4MQ8LsGrymlipcJQhmy0GaQjPqCHaXRwuCZwRbqK2Fg9wlClZqYicrIgMdZfxTQ0c7TBIbrChxmuzoKG8XRaSrIhhiyNFJkrC7oIAWMEOQa5aBekPCRknCo4IKPrYkvCDI8aYmY7WFtprgekcJZ3oLIqssCSMtFbQTJKwXYy3BY5oCh2iKPCpJOE+zRdpYgi6O2KmOAgvVCYaU4ySRek1sgyFhJ403QFHiVEmJHwtybO1gs8Hr5+BETQX3War0qZngYGgtVZtoqd6vFSk/UwdZElYqyjrF4HXUeFspIi9IGKf4j92pKGAdCYMVsbcV3kRF0N+R8LUd5PCsIGWoxDtBkCI0nKofdJQxT+LtZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC"); } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/ayu-dark.css ================================================ /* Based on https://github.com/dempfi/ayu */ .cm-s-ayu-dark.CodeMirror { background: #0a0e14; color: #b3b1ad; } .cm-s-ayu-dark div.CodeMirror-selected { background: #273747; } .cm-s-ayu-dark .CodeMirror-line::selection, .cm-s-ayu-dark .CodeMirror-line > span::selection, .cm-s-ayu-dark .CodeMirror-line > span > span::selection { background: rgba(39, 55, 71, 99); } .cm-s-ayu-dark .CodeMirror-line::-moz-selection, .cm-s-ayu-dark .CodeMirror-line > span::-moz-selection, .cm-s-ayu-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(39, 55, 71, 99); } .cm-s-ayu-dark .CodeMirror-gutters { background: #0a0e14; border-right: 0px; } .cm-s-ayu-dark .CodeMirror-guttermarker { color: white; } .cm-s-ayu-dark .CodeMirror-guttermarker-subtle { color: #3d424d; } .cm-s-ayu-dark .CodeMirror-linenumber { color: #3d424d; } .cm-s-ayu-dark .CodeMirror-cursor { border-left: 1px solid #e6b450; } .cm-s-ayu-dark.cm-fat-cursor .CodeMirror-cursor { background-color: #a2a8a175 !important; } .cm-s-ayu-dark .cm-animate-fat-cursor { background-color: #a2a8a175 !important; } .cm-s-ayu-dark span.cm-comment { color: #626a73; } .cm-s-ayu-dark span.cm-atom { color: #ae81ff; } .cm-s-ayu-dark span.cm-number { color: #e6b450; } .cm-s-ayu-dark span.cm-comment.cm-attribute { color: #ffb454; } .cm-s-ayu-dark span.cm-comment.cm-def { color: rgba(57, 186, 230, 80); } .cm-s-ayu-dark span.cm-comment.cm-tag { color: #39bae6; } .cm-s-ayu-dark span.cm-comment.cm-type { color: #5998a6; } .cm-s-ayu-dark span.cm-property, .cm-s-ayu-dark span.cm-attribute { color: #ffb454; } .cm-s-ayu-dark span.cm-keyword { color: #ff8f40; } .cm-s-ayu-dark span.cm-builtin { color: #e6b450; } .cm-s-ayu-dark span.cm-string { color: #c2d94c; } .cm-s-ayu-dark span.cm-variable { color: #b3b1ad; } .cm-s-ayu-dark span.cm-variable-2 { color: #f07178; } .cm-s-ayu-dark span.cm-variable-3 { color: #39bae6; } .cm-s-ayu-dark span.cm-type { color: #ff8f40; } .cm-s-ayu-dark span.cm-def { color: #ffee99; } .cm-s-ayu-dark span.cm-bracket { color: #f8f8f2; } .cm-s-ayu-dark span.cm-tag { color: rgba(57, 186, 230, 80); } .cm-s-ayu-dark span.cm-header { color: #c2d94c; } .cm-s-ayu-dark span.cm-link { color: #39bae6; } .cm-s-ayu-dark span.cm-error { color: #ff3333; } .cm-s-ayu-dark .CodeMirror-activeline-background { background: #01060e; } .cm-s-ayu-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/ayu-mirage.css ================================================ /* Based on https://github.com/dempfi/ayu */ .cm-s-ayu-mirage.CodeMirror { background: #1f2430; color: #cbccc6; } .cm-s-ayu-mirage div.CodeMirror-selected { background: #34455a; } .cm-s-ayu-mirage .CodeMirror-line::selection, .cm-s-ayu-mirage .CodeMirror-line > span::selection, .cm-s-ayu-mirage .CodeMirror-line > span > span::selection { background: #34455a; } .cm-s-ayu-mirage .CodeMirror-line::-moz-selection, .cm-s-ayu-mirage .CodeMirror-line > span::-moz-selection, .cm-s-ayu-mirage .CodeMirror-line > span > span::-moz-selection { background: rgba(25, 30, 42, 99); } .cm-s-ayu-mirage .CodeMirror-gutters { background: #1f2430; border-right: 0px; } .cm-s-ayu-mirage .CodeMirror-guttermarker { color: white; } .cm-s-ayu-mirage .CodeMirror-guttermarker-subtle { color: rgba(112, 122, 140, 66); } .cm-s-ayu-mirage .CodeMirror-linenumber { color: rgba(61, 66, 77, 99); } .cm-s-ayu-mirage .CodeMirror-cursor { border-left: 1px solid #ffcc66; } .cm-s-ayu-mirage.cm-fat-cursor .CodeMirror-cursor {background-color: #a2a8a175 !important;} .cm-s-ayu-mirage .cm-animate-fat-cursor { background-color: #a2a8a175 !important; } .cm-s-ayu-mirage span.cm-comment { color: #5c6773; font-style:italic; } .cm-s-ayu-mirage span.cm-atom { color: #ae81ff; } .cm-s-ayu-mirage span.cm-number { color: #ffcc66; } .cm-s-ayu-mirage span.cm-comment.cm-attribute { color: #ffd580; } .cm-s-ayu-mirage span.cm-comment.cm-def { color: #d4bfff; } .cm-s-ayu-mirage span.cm-comment.cm-tag { color: #5ccfe6; } .cm-s-ayu-mirage span.cm-comment.cm-type { color: #5998a6; } .cm-s-ayu-mirage span.cm-property { color: #f29e74; } .cm-s-ayu-mirage span.cm-attribute { color: #ffd580; } .cm-s-ayu-mirage span.cm-keyword { color: #ffa759; } .cm-s-ayu-mirage span.cm-builtin { color: #ffcc66; } .cm-s-ayu-mirage span.cm-string { color: #bae67e; } .cm-s-ayu-mirage span.cm-variable { color: #cbccc6; } .cm-s-ayu-mirage span.cm-variable-2 { color: #f28779; } .cm-s-ayu-mirage span.cm-variable-3 { color: #5ccfe6; } .cm-s-ayu-mirage span.cm-type { color: #ffa759; } .cm-s-ayu-mirage span.cm-def { color: #ffd580; } .cm-s-ayu-mirage span.cm-bracket { color: rgba(92, 207, 230, 80); } .cm-s-ayu-mirage span.cm-tag { color: #5ccfe6; } .cm-s-ayu-mirage span.cm-header { color: #bae67e; } .cm-s-ayu-mirage span.cm-link { color: #5ccfe6; } .cm-s-ayu-mirage span.cm-error { color: #ff3333; } .cm-s-ayu-mirage .CodeMirror-activeline-background { background: #191e2a; } .cm-s-ayu-mirage .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/base16-dark.css ================================================ /* Name: Base16 Default Dark Author: Chris Kempson (http://chriskempson.com) CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ .cm-s-base16-dark.CodeMirror { background: #151515; color: #e0e0e0; } .cm-s-base16-dark div.CodeMirror-selected { background: #303030; } .cm-s-base16-dark .CodeMirror-line::selection, .cm-s-base16-dark .CodeMirror-line > span::selection, .cm-s-base16-dark .CodeMirror-line > span > span::selection { background: rgba(48, 48, 48, .99); } .cm-s-base16-dark .CodeMirror-line::-moz-selection, .cm-s-base16-dark .CodeMirror-line > span::-moz-selection, .cm-s-base16-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(48, 48, 48, .99); } .cm-s-base16-dark .CodeMirror-gutters { background: #151515; border-right: 0px; } .cm-s-base16-dark .CodeMirror-guttermarker { color: #ac4142; } .cm-s-base16-dark .CodeMirror-guttermarker-subtle { color: #505050; } .cm-s-base16-dark .CodeMirror-linenumber { color: #505050; } .cm-s-base16-dark .CodeMirror-cursor { border-left: 1px solid #b0b0b0; } .cm-s-base16-dark.cm-fat-cursor .CodeMirror-cursor { background-color: #8e8d8875 !important; } .cm-s-base16-dark .cm-animate-fat-cursor { background-color: #8e8d8875 !important; } .cm-s-base16-dark span.cm-comment { color: #8f5536; } .cm-s-base16-dark span.cm-atom { color: #aa759f; } .cm-s-base16-dark span.cm-number { color: #aa759f; } .cm-s-base16-dark span.cm-property, .cm-s-base16-dark span.cm-attribute { color: #90a959; } .cm-s-base16-dark span.cm-keyword { color: #ac4142; } .cm-s-base16-dark span.cm-string { color: #f4bf75; } .cm-s-base16-dark span.cm-variable { color: #90a959; } .cm-s-base16-dark span.cm-variable-2 { color: #6a9fb5; } .cm-s-base16-dark span.cm-def { color: #d28445; } .cm-s-base16-dark span.cm-bracket { color: #e0e0e0; } .cm-s-base16-dark span.cm-tag { color: #ac4142; } .cm-s-base16-dark span.cm-link { color: #aa759f; } .cm-s-base16-dark span.cm-error { background: #ac4142; color: #b0b0b0; } .cm-s-base16-dark .CodeMirror-activeline-background { background: #202020; } .cm-s-base16-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/base16-light.css ================================================ /* Name: Base16 Default Light Author: Chris Kempson (http://chriskempson.com) CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ .cm-s-base16-light.CodeMirror { background: #f5f5f5; color: #202020; } .cm-s-base16-light div.CodeMirror-selected { background: #e0e0e0; } .cm-s-base16-light .CodeMirror-line::selection, .cm-s-base16-light .CodeMirror-line > span::selection, .cm-s-base16-light .CodeMirror-line > span > span::selection { background: #e0e0e0; } .cm-s-base16-light .CodeMirror-line::-moz-selection, .cm-s-base16-light .CodeMirror-line > span::-moz-selection, .cm-s-base16-light .CodeMirror-line > span > span::-moz-selection { background: #e0e0e0; } .cm-s-base16-light .CodeMirror-gutters { background: #f5f5f5; border-right: 0px; } .cm-s-base16-light .CodeMirror-guttermarker { color: #ac4142; } .cm-s-base16-light .CodeMirror-guttermarker-subtle { color: #b0b0b0; } .cm-s-base16-light .CodeMirror-linenumber { color: #b0b0b0; } .cm-s-base16-light .CodeMirror-cursor { border-left: 1px solid #505050; } .cm-s-base16-light span.cm-comment { color: #8f5536; } .cm-s-base16-light span.cm-atom { color: #aa759f; } .cm-s-base16-light span.cm-number { color: #aa759f; } .cm-s-base16-light span.cm-property, .cm-s-base16-light span.cm-attribute { color: #90a959; } .cm-s-base16-light span.cm-keyword { color: #ac4142; } .cm-s-base16-light span.cm-string { color: #f4bf75; } .cm-s-base16-light span.cm-variable { color: #90a959; } .cm-s-base16-light span.cm-variable-2 { color: #6a9fb5; } .cm-s-base16-light span.cm-def { color: #d28445; } .cm-s-base16-light span.cm-bracket { color: #202020; } .cm-s-base16-light span.cm-tag { color: #ac4142; } .cm-s-base16-light span.cm-link { color: #aa759f; } .cm-s-base16-light span.cm-error { background: #ac4142; color: #505050; } .cm-s-base16-light .CodeMirror-activeline-background { background: #DDDCDC; } .cm-s-base16-light .CodeMirror-matchingbracket { color: #f5f5f5 !important; background-color: #6A9FB5 !important} ================================================ FILE: _files/assets/codemirror@6.65.7/theme/bespin.css ================================================ /* Name: Bespin Author: Mozilla / Jan T. Sott CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ .cm-s-bespin.CodeMirror {background: #28211c; color: #9d9b97;} .cm-s-bespin div.CodeMirror-selected {background: #36312e !important;} .cm-s-bespin .CodeMirror-gutters {background: #28211c; border-right: 0px;} .cm-s-bespin .CodeMirror-linenumber {color: #666666;} .cm-s-bespin .CodeMirror-cursor {border-left: 1px solid #797977 !important;} .cm-s-bespin span.cm-comment {color: #937121;} .cm-s-bespin span.cm-atom {color: #9b859d;} .cm-s-bespin span.cm-number {color: #9b859d;} .cm-s-bespin span.cm-property, .cm-s-bespin span.cm-attribute {color: #54be0d;} .cm-s-bespin span.cm-keyword {color: #cf6a4c;} .cm-s-bespin span.cm-string {color: #f9ee98;} .cm-s-bespin span.cm-variable {color: #54be0d;} .cm-s-bespin span.cm-variable-2 {color: #5ea6ea;} .cm-s-bespin span.cm-def {color: #cf7d34;} .cm-s-bespin span.cm-error {background: #cf6a4c; color: #797977;} .cm-s-bespin span.cm-bracket {color: #9d9b97;} .cm-s-bespin span.cm-tag {color: #cf6a4c;} .cm-s-bespin span.cm-link {color: #9b859d;} .cm-s-bespin .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} .cm-s-bespin .CodeMirror-activeline-background { background: #404040; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/blackboard.css ================================================ /* Port of TextMate's Blackboard theme */ .cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; } .cm-s-blackboard div.CodeMirror-selected { background: #253B76; } .cm-s-blackboard .CodeMirror-line::selection, .cm-s-blackboard .CodeMirror-line > span::selection, .cm-s-blackboard .CodeMirror-line > span > span::selection { background: rgba(37, 59, 118, .99); } .cm-s-blackboard .CodeMirror-line::-moz-selection, .cm-s-blackboard .CodeMirror-line > span::-moz-selection, .cm-s-blackboard .CodeMirror-line > span > span::-moz-selection { background: rgba(37, 59, 118, .99); } .cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; } .cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; } .cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; } .cm-s-blackboard .CodeMirror-linenumber { color: #888; } .cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7; } .cm-s-blackboard .cm-keyword { color: #FBDE2D; } .cm-s-blackboard .cm-atom { color: #D8FA3C; } .cm-s-blackboard .cm-number { color: #D8FA3C; } .cm-s-blackboard .cm-def { color: #8DA6CE; } .cm-s-blackboard .cm-variable { color: #FF6400; } .cm-s-blackboard .cm-operator { color: #FBDE2D; } .cm-s-blackboard .cm-comment { color: #AEAEAE; } .cm-s-blackboard .cm-string { color: #61CE3C; } .cm-s-blackboard .cm-string-2 { color: #61CE3C; } .cm-s-blackboard .cm-meta { color: #D8FA3C; } .cm-s-blackboard .cm-builtin { color: #8DA6CE; } .cm-s-blackboard .cm-tag { color: #8DA6CE; } .cm-s-blackboard .cm-attribute { color: #8DA6CE; } .cm-s-blackboard .cm-header { color: #FF6400; } .cm-s-blackboard .cm-hr { color: #AEAEAE; } .cm-s-blackboard .cm-link { color: #8DA6CE; } .cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; } .cm-s-blackboard .CodeMirror-activeline-background { background: #3C3636; } .cm-s-blackboard .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/cobalt.css ================================================ .cm-s-cobalt.CodeMirror { background: #002240; color: white; } .cm-s-cobalt div.CodeMirror-selected { background: #b36539; } .cm-s-cobalt .CodeMirror-line::selection, .cm-s-cobalt .CodeMirror-line > span::selection, .cm-s-cobalt .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); } .cm-s-cobalt .CodeMirror-line::-moz-selection, .cm-s-cobalt .CodeMirror-line > span::-moz-selection, .cm-s-cobalt .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); } .cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } .cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; } .cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; } .cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; } .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-cobalt span.cm-comment { color: #08f; } .cm-s-cobalt span.cm-atom { color: #845dc4; } .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; } .cm-s-cobalt span.cm-keyword { color: #ffee80; } .cm-s-cobalt span.cm-string { color: #3ad900; } .cm-s-cobalt span.cm-meta { color: #ff9d00; } .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; } .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def, .cm-s-cobalt .cm-type { color: white; } .cm-s-cobalt span.cm-bracket { color: #d8d8d8; } .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; } .cm-s-cobalt span.cm-link { color: #845dc4; } .cm-s-cobalt span.cm-error { color: #9d1e15; } .cm-s-cobalt .CodeMirror-activeline-background { background: #002D57; } .cm-s-cobalt .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/colorforth.css ================================================ .cm-s-colorforth.CodeMirror { background: #000000; color: #f8f8f8; } .cm-s-colorforth .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } .cm-s-colorforth .CodeMirror-guttermarker { color: #FFBD40; } .cm-s-colorforth .CodeMirror-guttermarker-subtle { color: #78846f; } .cm-s-colorforth .CodeMirror-linenumber { color: #bababa; } .cm-s-colorforth .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-colorforth span.cm-comment { color: #ededed; } .cm-s-colorforth span.cm-def { color: #ff1c1c; font-weight:bold; } .cm-s-colorforth span.cm-keyword { color: #ffd900; } .cm-s-colorforth span.cm-builtin { color: #00d95a; } .cm-s-colorforth span.cm-variable { color: #73ff00; } .cm-s-colorforth span.cm-string { color: #007bff; } .cm-s-colorforth span.cm-number { color: #00c4ff; } .cm-s-colorforth span.cm-atom { color: #606060; } .cm-s-colorforth span.cm-variable-2 { color: #EEE; } .cm-s-colorforth span.cm-variable-3, .cm-s-colorforth span.cm-type { color: #DDD; } .cm-s-colorforth span.cm-property {} .cm-s-colorforth span.cm-operator {} .cm-s-colorforth span.cm-meta { color: yellow; } .cm-s-colorforth span.cm-qualifier { color: #FFF700; } .cm-s-colorforth span.cm-bracket { color: #cc7; } .cm-s-colorforth span.cm-tag { color: #FFBD40; } .cm-s-colorforth span.cm-attribute { color: #FFF700; } .cm-s-colorforth span.cm-error { color: #f00; } .cm-s-colorforth div.CodeMirror-selected { background: #333d53; } .cm-s-colorforth span.cm-compilation { background: rgba(255, 255, 255, 0.12); } .cm-s-colorforth .CodeMirror-activeline-background { background: #253540; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/darcula.css ================================================ /** Name: IntelliJ IDEA darcula theme From IntelliJ IDEA by JetBrains */ .cm-s-darcula { font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;} .cm-s-darcula.CodeMirror { background: #2B2B2B; color: #A9B7C6; } .cm-s-darcula span.cm-meta { color: #BBB529; } .cm-s-darcula span.cm-number { color: #6897BB; } .cm-s-darcula span.cm-keyword { color: #CC7832; line-height: 1em; font-weight: bold; } .cm-s-darcula span.cm-def { color: #A9B7C6; font-style: italic; } .cm-s-darcula span.cm-variable { color: #A9B7C6; } .cm-s-darcula span.cm-variable-2 { color: #A9B7C6; } .cm-s-darcula span.cm-variable-3 { color: #9876AA; } .cm-s-darcula span.cm-type { color: #AABBCC; font-weight: bold; } .cm-s-darcula span.cm-property { color: #FFC66D; } .cm-s-darcula span.cm-operator { color: #A9B7C6; } .cm-s-darcula span.cm-string { color: #6A8759; } .cm-s-darcula span.cm-string-2 { color: #6A8759; } .cm-s-darcula span.cm-comment { color: #61A151; font-style: italic; } .cm-s-darcula span.cm-link { color: #CC7832; } .cm-s-darcula span.cm-atom { color: #CC7832; } .cm-s-darcula span.cm-error { color: #BC3F3C; } .cm-s-darcula span.cm-tag { color: #629755; font-weight: bold; font-style: italic; text-decoration: underline; } .cm-s-darcula span.cm-attribute { color: #6897bb; } .cm-s-darcula span.cm-qualifier { color: #6A8759; } .cm-s-darcula span.cm-bracket { color: #A9B7C6; } .cm-s-darcula span.cm-builtin { color: #FF9E59; } .cm-s-darcula span.cm-special { color: #FF9E59; } .cm-s-darcula span.cm-matchhighlight { color: #FFFFFF; background-color: rgba(50, 89, 48, .7); font-weight: normal;} .cm-s-darcula span.cm-searching { color: #FFFFFF; background-color: rgba(61, 115, 59, .7); font-weight: normal;} .cm-s-darcula .CodeMirror-cursor { border-left: 1px solid #A9B7C6; } .cm-s-darcula .CodeMirror-activeline-background { background: #323232; } .cm-s-darcula .CodeMirror-gutters { background: #313335; border-right: 1px solid #313335; } .cm-s-darcula .CodeMirror-guttermarker { color: #FFEE80; } .cm-s-darcula .CodeMirror-guttermarker-subtle { color: #D0D0D0; } .cm-s-darcula .CodeMirrir-linenumber { color: #606366; } .cm-s-darcula .CodeMirror-matchingbracket { background-color: #3B514D; color: #FFEF28 !important; font-weight: bold; } .cm-s-darcula div.CodeMirror-selected { background: #214283; } .CodeMirror-hints.darcula { font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: #9C9E9E; background-color: #3B3E3F !important; } .CodeMirror-hints.darcula .CodeMirror-hint-active { background-color: #494D4E !important; color: #9C9E9E !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/dracula.css ================================================ /* Name: dracula Author: Michael Kaminsky (http://github.com/mkaminsky11) Original dracula color scheme by Zeno Rocha (https://github.com/zenorocha/dracula-theme) */ .cm-s-dracula.CodeMirror, .cm-s-dracula .CodeMirror-gutters { background-color: #282a36 !important; color: #f8f8f2 !important; border: none; } .cm-s-dracula .CodeMirror-gutters { color: #282a36; } .cm-s-dracula .CodeMirror-cursor { border-left: solid thin #f8f8f0; } .cm-s-dracula .CodeMirror-linenumber { color: #6D8A88; } .cm-s-dracula .CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } .cm-s-dracula .CodeMirror-line::selection, .cm-s-dracula .CodeMirror-line > span::selection, .cm-s-dracula .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } .cm-s-dracula .CodeMirror-line::-moz-selection, .cm-s-dracula .CodeMirror-line > span::-moz-selection, .cm-s-dracula .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } .cm-s-dracula span.cm-comment { color: #6272a4; } .cm-s-dracula span.cm-string, .cm-s-dracula span.cm-string-2 { color: #f1fa8c; } .cm-s-dracula span.cm-number { color: #bd93f9; } .cm-s-dracula span.cm-variable { color: #50fa7b; } .cm-s-dracula span.cm-variable-2 { color: white; } .cm-s-dracula span.cm-def { color: #50fa7b; } .cm-s-dracula span.cm-operator { color: #ff79c6; } .cm-s-dracula span.cm-keyword { color: #ff79c6; } .cm-s-dracula span.cm-atom { color: #bd93f9; } .cm-s-dracula span.cm-meta { color: #f8f8f2; } .cm-s-dracula span.cm-tag { color: #ff79c6; } .cm-s-dracula span.cm-attribute { color: #50fa7b; } .cm-s-dracula span.cm-qualifier { color: #50fa7b; } .cm-s-dracula span.cm-property { color: #66d9ef; } .cm-s-dracula span.cm-builtin { color: #50fa7b; } .cm-s-dracula span.cm-variable-3, .cm-s-dracula span.cm-type { color: #ffb86c; } .cm-s-dracula .CodeMirror-activeline-background { background: rgba(255,255,255,0.1); } .cm-s-dracula .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/duotone-dark.css ================================================ /* Name: DuoTone-Dark Author: by Bram de Haan, adapted from DuoTone themes by Simurai (http://simurai.com/projects/2016/01/01/duotone-themes) CodeMirror template by Jan T. Sott (https://github.com/idleberg), adapted by Bram de Haan (https://github.com/atelierbram/) */ .cm-s-duotone-dark.CodeMirror { background: #2a2734; color: #6c6783; } .cm-s-duotone-dark div.CodeMirror-selected { background: #545167!important; } .cm-s-duotone-dark .CodeMirror-gutters { background: #2a2734; border-right: 0px; } .cm-s-duotone-dark .CodeMirror-linenumber { color: #545167; } /* begin cursor */ .cm-s-duotone-dark .CodeMirror-cursor { border-left: 1px solid #ffad5c; /* border-left: 1px solid #ffad5c80; */ border-right: .5em solid #ffad5c; /* border-right: .5em solid #ffad5c80; */ opacity: .5; } .cm-s-duotone-dark .CodeMirror-activeline-background { background: #363342; /* background: #36334280; */ opacity: .5;} .cm-s-duotone-dark .cm-fat-cursor .CodeMirror-cursor { background: #ffad5c; /* background: #ffad5c80; */ opacity: .5;} /* end cursor */ .cm-s-duotone-dark span.cm-atom, .cm-s-duotone-dark span.cm-number, .cm-s-duotone-dark span.cm-keyword, .cm-s-duotone-dark span.cm-variable, .cm-s-duotone-dark span.cm-attribute, .cm-s-duotone-dark span.cm-quote, .cm-s-duotone-dark span.cm-hr, .cm-s-duotone-dark span.cm-link { color: #ffcc99; } .cm-s-duotone-dark span.cm-property { color: #9a86fd; } .cm-s-duotone-dark span.cm-punctuation, .cm-s-duotone-dark span.cm-unit, .cm-s-duotone-dark span.cm-negative { color: #e09142; } .cm-s-duotone-dark span.cm-string { color: #ffb870; } .cm-s-duotone-dark span.cm-operator { color: #ffad5c; } .cm-s-duotone-dark span.cm-positive { color: #6a51e6; } .cm-s-duotone-dark span.cm-variable-2, .cm-s-duotone-dark span.cm-variable-3, .cm-s-duotone-dark span.cm-type, .cm-s-duotone-dark span.cm-string-2, .cm-s-duotone-dark span.cm-url { color: #7a63ee; } .cm-s-duotone-dark span.cm-def, .cm-s-duotone-dark span.cm-tag, .cm-s-duotone-dark span.cm-builtin, .cm-s-duotone-dark span.cm-qualifier, .cm-s-duotone-dark span.cm-header, .cm-s-duotone-dark span.cm-em { color: #eeebff; } .cm-s-duotone-dark span.cm-bracket, .cm-s-duotone-dark span.cm-comment { color: #6c6783; } /* using #f00 red for errors, don't think any of the colorscheme variables will stand out enough, ... maybe by giving it a background-color ... */ .cm-s-duotone-dark span.cm-error, .cm-s-duotone-dark span.cm-invalidchar { color: #f00; } .cm-s-duotone-dark span.cm-header { font-weight: normal; } .cm-s-duotone-dark .CodeMirror-matchingbracket { text-decoration: underline; color: #eeebff !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/duotone-light.css ================================================ /* Name: DuoTone-Light Author: by Bram de Haan, adapted from DuoTone themes by Simurai (http://simurai.com/projects/2016/01/01/duotone-themes) CodeMirror template by Jan T. Sott (https://github.com/idleberg), adapted by Bram de Haan (https://github.com/atelierbram/) */ .cm-s-duotone-light.CodeMirror { background: #faf8f5; color: #b29762; } .cm-s-duotone-light div.CodeMirror-selected { background: #e3dcce !important; } .cm-s-duotone-light .CodeMirror-gutters { background: #faf8f5; border-right: 0px; } .cm-s-duotone-light .CodeMirror-linenumber { color: #cdc4b1; } /* begin cursor */ .cm-s-duotone-light .CodeMirror-cursor { border-left: 1px solid #93abdc; /* border-left: 1px solid #93abdc80; */ border-right: .5em solid #93abdc; /* border-right: .5em solid #93abdc80; */ opacity: .5; } .cm-s-duotone-light .CodeMirror-activeline-background { background: #e3dcce; /* background: #e3dcce80; */ opacity: .5; } .cm-s-duotone-light .cm-fat-cursor .CodeMirror-cursor { background: #93abdc; /* #93abdc80; */ opacity: .5; } /* end cursor */ .cm-s-duotone-light span.cm-atom, .cm-s-duotone-light span.cm-number, .cm-s-duotone-light span.cm-keyword, .cm-s-duotone-light span.cm-variable, .cm-s-duotone-light span.cm-attribute, .cm-s-duotone-light span.cm-quote, .cm-s-duotone-light-light span.cm-hr, .cm-s-duotone-light-light span.cm-link { color: #063289; } .cm-s-duotone-light span.cm-property { color: #b29762; } .cm-s-duotone-light span.cm-punctuation, .cm-s-duotone-light span.cm-unit, .cm-s-duotone-light span.cm-negative { color: #063289; } .cm-s-duotone-light span.cm-string, .cm-s-duotone-light span.cm-operator { color: #1659df; } .cm-s-duotone-light span.cm-positive { color: #896724; } .cm-s-duotone-light span.cm-variable-2, .cm-s-duotone-light span.cm-variable-3, .cm-s-duotone-light span.cm-type, .cm-s-duotone-light span.cm-string-2, .cm-s-duotone-light span.cm-url { color: #896724; } .cm-s-duotone-light span.cm-def, .cm-s-duotone-light span.cm-tag, .cm-s-duotone-light span.cm-builtin, .cm-s-duotone-light span.cm-qualifier, .cm-s-duotone-light span.cm-header, .cm-s-duotone-light span.cm-em { color: #2d2006; } .cm-s-duotone-light span.cm-bracket, .cm-s-duotone-light span.cm-comment { color: #b6ad9a; } /* using #f00 red for errors, don't think any of the colorscheme variables will stand out enough, ... maybe by giving it a background-color ... */ /* .cm-s-duotone-light span.cm-error { background: #896724; color: #728fcb; } */ .cm-s-duotone-light span.cm-error, .cm-s-duotone-light span.cm-invalidchar { color: #f00; } .cm-s-duotone-light span.cm-header { font-weight: normal; } .cm-s-duotone-light .CodeMirror-matchingbracket { text-decoration: underline; color: #faf8f5 !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/eclipse.css ================================================ .cm-s-eclipse span.cm-meta { color: #FF1717; } .cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; } .cm-s-eclipse span.cm-atom { color: #219; } .cm-s-eclipse span.cm-number { color: #164; } .cm-s-eclipse span.cm-def { color: #00f; } .cm-s-eclipse span.cm-variable { color: black; } .cm-s-eclipse span.cm-variable-2 { color: #0000C0; } .cm-s-eclipse span.cm-variable-3, .cm-s-eclipse span.cm-type { color: #0000C0; } .cm-s-eclipse span.cm-property { color: black; } .cm-s-eclipse span.cm-operator { color: black; } .cm-s-eclipse span.cm-comment { color: #3F7F5F; } .cm-s-eclipse span.cm-string { color: #2A00FF; } .cm-s-eclipse span.cm-string-2 { color: #f50; } .cm-s-eclipse span.cm-qualifier { color: #555; } .cm-s-eclipse span.cm-builtin { color: #30a; } .cm-s-eclipse span.cm-bracket { color: #cc7; } .cm-s-eclipse span.cm-tag { color: #170; } .cm-s-eclipse span.cm-attribute { color: #00c; } .cm-s-eclipse span.cm-link { color: #219; } .cm-s-eclipse span.cm-error { color: #f00; } .cm-s-eclipse .CodeMirror-activeline-background { background: #e8f2ff; } .cm-s-eclipse .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/elegant.css ================================================ .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom { color: #762; } .cm-s-elegant span.cm-comment { color: #262; font-style: italic; line-height: 1em; } .cm-s-elegant span.cm-meta { color: #555; font-style: italic; line-height: 1em; } .cm-s-elegant span.cm-variable { color: black; } .cm-s-elegant span.cm-variable-2 { color: #b11; } .cm-s-elegant span.cm-qualifier { color: #555; } .cm-s-elegant span.cm-keyword { color: #730; } .cm-s-elegant span.cm-builtin { color: #30a; } .cm-s-elegant span.cm-link { color: #762; } .cm-s-elegant span.cm-error { background-color: #fdd; } .cm-s-elegant .CodeMirror-activeline-background { background: #e8f2ff; } .cm-s-elegant .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/erlang-dark.css ================================================ .cm-s-erlang-dark.CodeMirror { background: #002240; color: white; } .cm-s-erlang-dark div.CodeMirror-selected { background: #b36539; } .cm-s-erlang-dark .CodeMirror-line::selection, .cm-s-erlang-dark .CodeMirror-line > span::selection, .cm-s-erlang-dark .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); } .cm-s-erlang-dark .CodeMirror-line::-moz-selection, .cm-s-erlang-dark .CodeMirror-line > span::-moz-selection, .cm-s-erlang-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); } .cm-s-erlang-dark .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } .cm-s-erlang-dark .CodeMirror-guttermarker { color: white; } .cm-s-erlang-dark .CodeMirror-guttermarker-subtle { color: #d0d0d0; } .cm-s-erlang-dark .CodeMirror-linenumber { color: #d0d0d0; } .cm-s-erlang-dark .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-erlang-dark span.cm-quote { color: #ccc; } .cm-s-erlang-dark span.cm-atom { color: #f133f1; } .cm-s-erlang-dark span.cm-attribute { color: #ff80e1; } .cm-s-erlang-dark span.cm-bracket { color: #ff9d00; } .cm-s-erlang-dark span.cm-builtin { color: #eaa; } .cm-s-erlang-dark span.cm-comment { color: #77f; } .cm-s-erlang-dark span.cm-def { color: #e7a; } .cm-s-erlang-dark span.cm-keyword { color: #ffee80; } .cm-s-erlang-dark span.cm-meta { color: #50fefe; } .cm-s-erlang-dark span.cm-number { color: #ffd0d0; } .cm-s-erlang-dark span.cm-operator { color: #d55; } .cm-s-erlang-dark span.cm-property { color: #ccc; } .cm-s-erlang-dark span.cm-qualifier { color: #ccc; } .cm-s-erlang-dark span.cm-special { color: #ffbbbb; } .cm-s-erlang-dark span.cm-string { color: #3ad900; } .cm-s-erlang-dark span.cm-string-2 { color: #ccc; } .cm-s-erlang-dark span.cm-tag { color: #9effff; } .cm-s-erlang-dark span.cm-variable { color: #50fe50; } .cm-s-erlang-dark span.cm-variable-2 { color: #e0e; } .cm-s-erlang-dark span.cm-variable-3, .cm-s-erlang-dark span.cm-type { color: #ccc; } .cm-s-erlang-dark span.cm-error { color: #9d1e15; } .cm-s-erlang-dark .CodeMirror-activeline-background { background: #013461; } .cm-s-erlang-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/gruvbox-dark.css ================================================ /* Name: gruvbox-dark Author: kRkk (https://github.com/krkk) Original gruvbox color scheme by Pavel Pertsev (https://github.com/morhetz/gruvbox) */ .cm-s-gruvbox-dark.CodeMirror, .cm-s-gruvbox-dark .CodeMirror-gutters { background-color: #282828; color: #bdae93; } .cm-s-gruvbox-dark .CodeMirror-gutters {background: #282828; border-right: 0px;} .cm-s-gruvbox-dark .CodeMirror-linenumber {color: #7c6f64;} .cm-s-gruvbox-dark .CodeMirror-cursor { border-left: 1px solid #ebdbb2; } .cm-s-gruvbox-dark.cm-fat-cursor .CodeMirror-cursor { background-color: #8e8d8875 !important; } .cm-s-gruvbox-dark .cm-animate-fat-cursor { background-color: #8e8d8875 !important; } .cm-s-gruvbox-dark div.CodeMirror-selected { background: #928374; } .cm-s-gruvbox-dark span.cm-meta { color: #83a598; } .cm-s-gruvbox-dark span.cm-comment { color: #928374; } .cm-s-gruvbox-dark span.cm-number, span.cm-atom { color: #d3869b; } .cm-s-gruvbox-dark span.cm-keyword { color: #f84934; } .cm-s-gruvbox-dark span.cm-variable { color: #ebdbb2; } .cm-s-gruvbox-dark span.cm-variable-2 { color: #ebdbb2; } .cm-s-gruvbox-dark span.cm-variable-3, .cm-s-gruvbox-dark span.cm-type { color: #fabd2f; } .cm-s-gruvbox-dark span.cm-operator { color: #ebdbb2; } .cm-s-gruvbox-dark span.cm-callee { color: #ebdbb2; } .cm-s-gruvbox-dark span.cm-def { color: #ebdbb2; } .cm-s-gruvbox-dark span.cm-property { color: #ebdbb2; } .cm-s-gruvbox-dark span.cm-string { color: #b8bb26; } .cm-s-gruvbox-dark span.cm-string-2 { color: #8ec07c; } .cm-s-gruvbox-dark span.cm-qualifier { color: #8ec07c; } .cm-s-gruvbox-dark span.cm-attribute { color: #8ec07c; } .cm-s-gruvbox-dark .CodeMirror-activeline-background { background: #3c3836; } .cm-s-gruvbox-dark .CodeMirror-matchingbracket { background: #928374; color:#282828 !important; } .cm-s-gruvbox-dark span.cm-builtin { color: #fe8019; } .cm-s-gruvbox-dark span.cm-tag { color: #fe8019; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/hopscotch.css ================================================ /* Name: Hopscotch Author: Jan T. Sott CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ .cm-s-hopscotch.CodeMirror {background: #322931; color: #d5d3d5;} .cm-s-hopscotch div.CodeMirror-selected {background: #433b42 !important;} .cm-s-hopscotch .CodeMirror-gutters {background: #322931; border-right: 0px;} .cm-s-hopscotch .CodeMirror-linenumber {color: #797379;} .cm-s-hopscotch .CodeMirror-cursor {border-left: 1px solid #989498 !important;} .cm-s-hopscotch span.cm-comment {color: #b33508;} .cm-s-hopscotch span.cm-atom {color: #c85e7c;} .cm-s-hopscotch span.cm-number {color: #c85e7c;} .cm-s-hopscotch span.cm-property, .cm-s-hopscotch span.cm-attribute {color: #8fc13e;} .cm-s-hopscotch span.cm-keyword {color: #dd464c;} .cm-s-hopscotch span.cm-string {color: #fdcc59;} .cm-s-hopscotch span.cm-variable {color: #8fc13e;} .cm-s-hopscotch span.cm-variable-2 {color: #1290bf;} .cm-s-hopscotch span.cm-def {color: #fd8b19;} .cm-s-hopscotch span.cm-error {background: #dd464c; color: #989498;} .cm-s-hopscotch span.cm-bracket {color: #d5d3d5;} .cm-s-hopscotch span.cm-tag {color: #dd464c;} .cm-s-hopscotch span.cm-link {color: #c85e7c;} .cm-s-hopscotch .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} .cm-s-hopscotch .CodeMirror-activeline-background { background: #302020; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/icecoder.css ================================================ /* ICEcoder default theme by Matt Pass, used in code editor available at https://icecoder.net */ .cm-s-icecoder { color: #666; background: #1d1d1b; } .cm-s-icecoder span.cm-keyword { color: #eee; font-weight:bold; } /* off-white 1 */ .cm-s-icecoder span.cm-atom { color: #e1c76e; } /* yellow */ .cm-s-icecoder span.cm-number { color: #6cb5d9; } /* blue */ .cm-s-icecoder span.cm-def { color: #b9ca4a; } /* green */ .cm-s-icecoder span.cm-variable { color: #6cb5d9; } /* blue */ .cm-s-icecoder span.cm-variable-2 { color: #cc1e5c; } /* pink */ .cm-s-icecoder span.cm-variable-3, .cm-s-icecoder span.cm-type { color: #f9602c; } /* orange */ .cm-s-icecoder span.cm-property { color: #eee; } /* off-white 1 */ .cm-s-icecoder span.cm-operator { color: #9179bb; } /* purple */ .cm-s-icecoder span.cm-comment { color: #97a3aa; } /* grey-blue */ .cm-s-icecoder span.cm-string { color: #b9ca4a; } /* green */ .cm-s-icecoder span.cm-string-2 { color: #6cb5d9; } /* blue */ .cm-s-icecoder span.cm-meta { color: #555; } /* grey */ .cm-s-icecoder span.cm-qualifier { color: #555; } /* grey */ .cm-s-icecoder span.cm-builtin { color: #214e7b; } /* bright blue */ .cm-s-icecoder span.cm-bracket { color: #cc7; } /* grey-yellow */ .cm-s-icecoder span.cm-tag { color: #e8e8e8; } /* off-white 2 */ .cm-s-icecoder span.cm-attribute { color: #099; } /* teal */ .cm-s-icecoder span.cm-header { color: #6a0d6a; } /* purple-pink */ .cm-s-icecoder span.cm-quote { color: #186718; } /* dark green */ .cm-s-icecoder span.cm-hr { color: #888; } /* mid-grey */ .cm-s-icecoder span.cm-link { color: #e1c76e; } /* yellow */ .cm-s-icecoder span.cm-error { color: #d00; } /* red */ .cm-s-icecoder .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-icecoder div.CodeMirror-selected { color: #fff; background: #037; } .cm-s-icecoder .CodeMirror-gutters { background: #1d1d1b; min-width: 41px; border-right: 0; } .cm-s-icecoder .CodeMirror-linenumber { color: #555; cursor: default; } .cm-s-icecoder .CodeMirror-matchingbracket { color: #fff !important; background: #555 !important; } .cm-s-icecoder .CodeMirror-activeline-background { background: #000; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/idea.css ================================================ /** Name: IDEA default theme From IntelliJ IDEA by JetBrains */ .cm-s-idea span.cm-meta { color: #808000; } .cm-s-idea span.cm-number { color: #0000FF; } .cm-s-idea span.cm-keyword { line-height: 1em; font-weight: bold; color: #000080; } .cm-s-idea span.cm-atom { font-weight: bold; color: #000080; } .cm-s-idea span.cm-def { color: #000000; } .cm-s-idea span.cm-variable { color: black; } .cm-s-idea span.cm-variable-2 { color: black; } .cm-s-idea span.cm-variable-3, .cm-s-idea span.cm-type { color: black; } .cm-s-idea span.cm-property { color: black; } .cm-s-idea span.cm-operator { color: black; } .cm-s-idea span.cm-comment { color: #808080; } .cm-s-idea span.cm-string { color: #008000; } .cm-s-idea span.cm-string-2 { color: #008000; } .cm-s-idea span.cm-qualifier { color: #555; } .cm-s-idea span.cm-error { color: #FF0000; } .cm-s-idea span.cm-attribute { color: #0000FF; } .cm-s-idea span.cm-tag { color: #000080; } .cm-s-idea span.cm-link { color: #0000FF; } .cm-s-idea .CodeMirror-activeline-background { background: #FFFAE3; } .cm-s-idea span.cm-builtin { color: #30a; } .cm-s-idea span.cm-bracket { color: #cc7; } .cm-s-idea { font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;} .cm-s-idea .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } .CodeMirror-hints.idea { font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: #616569; background-color: #ebf3fd !important; } .CodeMirror-hints.idea .CodeMirror-hint-active { background-color: #a2b8c9 !important; color: #5c6065 !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/isotope.css ================================================ /* Name: Isotope Author: David Desandro / Jan T. Sott CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ .cm-s-isotope.CodeMirror {background: #000000; color: #e0e0e0;} .cm-s-isotope div.CodeMirror-selected {background: #404040 !important;} .cm-s-isotope .CodeMirror-gutters {background: #000000; border-right: 0px;} .cm-s-isotope .CodeMirror-linenumber {color: #808080;} .cm-s-isotope .CodeMirror-cursor {border-left: 1px solid #c0c0c0 !important;} .cm-s-isotope span.cm-comment {color: #3300ff;} .cm-s-isotope span.cm-atom {color: #cc00ff;} .cm-s-isotope span.cm-number {color: #cc00ff;} .cm-s-isotope span.cm-property, .cm-s-isotope span.cm-attribute {color: #33ff00;} .cm-s-isotope span.cm-keyword {color: #ff0000;} .cm-s-isotope span.cm-string {color: #ff0099;} .cm-s-isotope span.cm-variable {color: #33ff00;} .cm-s-isotope span.cm-variable-2 {color: #0066ff;} .cm-s-isotope span.cm-def {color: #ff9900;} .cm-s-isotope span.cm-error {background: #ff0000; color: #c0c0c0;} .cm-s-isotope span.cm-bracket {color: #e0e0e0;} .cm-s-isotope span.cm-tag {color: #ff0000;} .cm-s-isotope span.cm-link {color: #cc00ff;} .cm-s-isotope .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} .cm-s-isotope .CodeMirror-activeline-background { background: #202020; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/juejin.css ================================================ .cm-s-juejin.CodeMirror { background: #f8f9fa; } .cm-s-juejin .cm-header, .cm-s-juejin .cm-def { color: #1ba2f0; } .cm-s-juejin .cm-comment { color: #009e9d; } .cm-s-juejin .cm-quote, .cm-s-juejin .cm-link, .cm-s-juejin .cm-strong, .cm-s-juejin .cm-attribute { color: #fd7741; } .cm-s-juejin .cm-url, .cm-s-juejin .cm-keyword, .cm-s-juejin .cm-builtin { color: #bb51b8; } .cm-s-juejin .cm-hr { color: #909090; } .cm-s-juejin .cm-tag { color: #107000; } .cm-s-juejin .cm-variable-2 { color: #0050a0; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/lesser-dark.css ================================================ /* http://lesscss.org/ dark theme Ported to CodeMirror by Peter Kroon */ .cm-s-lesser-dark { line-height: 1.3em; } .cm-s-lesser-dark.CodeMirror { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; } .cm-s-lesser-dark div.CodeMirror-selected { background: #45443B; } /* 33322B*/ .cm-s-lesser-dark .CodeMirror-line::selection, .cm-s-lesser-dark .CodeMirror-line > span::selection, .cm-s-lesser-dark .CodeMirror-line > span > span::selection { background: rgba(69, 68, 59, .99); } .cm-s-lesser-dark .CodeMirror-line::-moz-selection, .cm-s-lesser-dark .CodeMirror-line > span::-moz-selection, .cm-s-lesser-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(69, 68, 59, .99); } .cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-lesser-dark pre { padding: 0 8px; }/*editable code holder*/ .cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/ .cm-s-lesser-dark .CodeMirror-gutters { background: #262626; border-right:1px solid #aaa; } .cm-s-lesser-dark .CodeMirror-guttermarker { color: #599eff; } .cm-s-lesser-dark .CodeMirror-guttermarker-subtle { color: #777; } .cm-s-lesser-dark .CodeMirror-linenumber { color: #777; } .cm-s-lesser-dark span.cm-header { color: #a0a; } .cm-s-lesser-dark span.cm-quote { color: #090; } .cm-s-lesser-dark span.cm-keyword { color: #599eff; } .cm-s-lesser-dark span.cm-atom { color: #C2B470; } .cm-s-lesser-dark span.cm-number { color: #B35E4D; } .cm-s-lesser-dark span.cm-def { color: white; } .cm-s-lesser-dark span.cm-variable { color:#D9BF8C; } .cm-s-lesser-dark span.cm-variable-2 { color: #669199; } .cm-s-lesser-dark span.cm-variable-3, .cm-s-lesser-dark span.cm-type { color: white; } .cm-s-lesser-dark span.cm-property { color: #92A75C; } .cm-s-lesser-dark span.cm-operator { color: #92A75C; } .cm-s-lesser-dark span.cm-comment { color: #666; } .cm-s-lesser-dark span.cm-string { color: #BCD279; } .cm-s-lesser-dark span.cm-string-2 { color: #f50; } .cm-s-lesser-dark span.cm-meta { color: #738C73; } .cm-s-lesser-dark span.cm-qualifier { color: #555; } .cm-s-lesser-dark span.cm-builtin { color: #ff9e59; } .cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; } .cm-s-lesser-dark span.cm-tag { color: #669199; } .cm-s-lesser-dark span.cm-attribute { color: #81a4d5; } .cm-s-lesser-dark span.cm-hr { color: #999; } .cm-s-lesser-dark span.cm-link { color: #7070E6; } .cm-s-lesser-dark span.cm-error { color: #9d1e15; } .cm-s-lesser-dark .CodeMirror-activeline-background { background: #3C3A3A; } .cm-s-lesser-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/liquibyte.css ================================================ .cm-s-liquibyte.CodeMirror { background-color: #000; color: #fff; line-height: 1.2em; font-size: 1em; } .cm-s-liquibyte .CodeMirror-focused .cm-matchhighlight { text-decoration: underline; text-decoration-color: #0f0; text-decoration-style: wavy; } .cm-s-liquibyte .cm-trailingspace { text-decoration: line-through; text-decoration-color: #f00; text-decoration-style: dotted; } .cm-s-liquibyte .cm-tab { text-decoration: line-through; text-decoration-color: #404040; text-decoration-style: dotted; } .cm-s-liquibyte .CodeMirror-gutters { background-color: #262626; border-right: 1px solid #505050; padding-right: 0.8em; } .cm-s-liquibyte .CodeMirror-gutter-elt div { font-size: 1.2em; } .cm-s-liquibyte .CodeMirror-guttermarker { } .cm-s-liquibyte .CodeMirror-guttermarker-subtle { } .cm-s-liquibyte .CodeMirror-linenumber { color: #606060; padding-left: 0; } .cm-s-liquibyte .CodeMirror-cursor { border-left: 1px solid #eee; } .cm-s-liquibyte span.cm-comment { color: #008000; } .cm-s-liquibyte span.cm-def { color: #ffaf40; font-weight: bold; } .cm-s-liquibyte span.cm-keyword { color: #c080ff; font-weight: bold; } .cm-s-liquibyte span.cm-builtin { color: #ffaf40; font-weight: bold; } .cm-s-liquibyte span.cm-variable { color: #5967ff; font-weight: bold; } .cm-s-liquibyte span.cm-string { color: #ff8000; } .cm-s-liquibyte span.cm-number { color: #0f0; font-weight: bold; } .cm-s-liquibyte span.cm-atom { color: #bf3030; font-weight: bold; } .cm-s-liquibyte span.cm-variable-2 { color: #007f7f; font-weight: bold; } .cm-s-liquibyte span.cm-variable-3, .cm-s-liquibyte span.cm-type { color: #c080ff; font-weight: bold; } .cm-s-liquibyte span.cm-property { color: #999; font-weight: bold; } .cm-s-liquibyte span.cm-operator { color: #fff; } .cm-s-liquibyte span.cm-meta { color: #0f0; } .cm-s-liquibyte span.cm-qualifier { color: #fff700; font-weight: bold; } .cm-s-liquibyte span.cm-bracket { color: #cc7; } .cm-s-liquibyte span.cm-tag { color: #ff0; font-weight: bold; } .cm-s-liquibyte span.cm-attribute { color: #c080ff; font-weight: bold; } .cm-s-liquibyte span.cm-error { color: #f00; } .cm-s-liquibyte div.CodeMirror-selected { background-color: rgba(255, 0, 0, 0.25); } .cm-s-liquibyte span.cm-compilation { background-color: rgba(255, 255, 255, 0.12); } .cm-s-liquibyte .CodeMirror-activeline-background { background-color: rgba(0, 255, 0, 0.15); } /* Default styles for common addons */ .cm-s-liquibyte .CodeMirror span.CodeMirror-matchingbracket { color: #0f0; font-weight: bold; } .cm-s-liquibyte .CodeMirror span.CodeMirror-nonmatchingbracket { color: #f00; font-weight: bold; } .CodeMirror-matchingtag { background-color: rgba(150, 255, 0, .3); } /* Scrollbars */ /* Simple */ .cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div:hover, .cm-s-liquibyte div.CodeMirror-simplescroll-vertical div:hover { background-color: rgba(80, 80, 80, .7); } .cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div, .cm-s-liquibyte div.CodeMirror-simplescroll-vertical div { background-color: rgba(80, 80, 80, .3); border: 1px solid #404040; border-radius: 5px; } .cm-s-liquibyte div.CodeMirror-simplescroll-vertical div { border-top: 1px solid #404040; border-bottom: 1px solid #404040; } .cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div { border-left: 1px solid #404040; border-right: 1px solid #404040; } .cm-s-liquibyte div.CodeMirror-simplescroll-vertical { background-color: #262626; } .cm-s-liquibyte div.CodeMirror-simplescroll-horizontal { background-color: #262626; border-top: 1px solid #404040; } /* Overlay */ .cm-s-liquibyte div.CodeMirror-overlayscroll-horizontal div, div.CodeMirror-overlayscroll-vertical div { background-color: #404040; border-radius: 5px; } .cm-s-liquibyte div.CodeMirror-overlayscroll-vertical div { border: 1px solid #404040; } .cm-s-liquibyte div.CodeMirror-overlayscroll-horizontal div { border: 1px solid #404040; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/lucario.css ================================================ /* Name: lucario Author: Raphael Amorim Original Lucario color scheme (https://github.com/raphamorim/lucario) */ .cm-s-lucario.CodeMirror, .cm-s-lucario .CodeMirror-gutters { background-color: #2b3e50 !important; color: #f8f8f2 !important; border: none; } .cm-s-lucario .CodeMirror-gutters { color: #2b3e50; } .cm-s-lucario .CodeMirror-cursor { border-left: solid thin #E6C845; } .cm-s-lucario .CodeMirror-linenumber { color: #f8f8f2; } .cm-s-lucario .CodeMirror-selected { background: #243443; } .cm-s-lucario .CodeMirror-line::selection, .cm-s-lucario .CodeMirror-line > span::selection, .cm-s-lucario .CodeMirror-line > span > span::selection { background: #243443; } .cm-s-lucario .CodeMirror-line::-moz-selection, .cm-s-lucario .CodeMirror-line > span::-moz-selection, .cm-s-lucario .CodeMirror-line > span > span::-moz-selection { background: #243443; } .cm-s-lucario span.cm-comment { color: #5c98cd; } .cm-s-lucario span.cm-string, .cm-s-lucario span.cm-string-2 { color: #E6DB74; } .cm-s-lucario span.cm-number { color: #ca94ff; } .cm-s-lucario span.cm-variable { color: #f8f8f2; } .cm-s-lucario span.cm-variable-2 { color: #f8f8f2; } .cm-s-lucario span.cm-def { color: #72C05D; } .cm-s-lucario span.cm-operator { color: #66D9EF; } .cm-s-lucario span.cm-keyword { color: #ff6541; } .cm-s-lucario span.cm-atom { color: #bd93f9; } .cm-s-lucario span.cm-meta { color: #f8f8f2; } .cm-s-lucario span.cm-tag { color: #ff6541; } .cm-s-lucario span.cm-attribute { color: #66D9EF; } .cm-s-lucario span.cm-qualifier { color: #72C05D; } .cm-s-lucario span.cm-property { color: #f8f8f2; } .cm-s-lucario span.cm-builtin { color: #72C05D; } .cm-s-lucario span.cm-variable-3, .cm-s-lucario span.cm-type { color: #ffb86c; } .cm-s-lucario .CodeMirror-activeline-background { background: #243443; } .cm-s-lucario .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/material-darker.css ================================================ /* Name: material Author: Mattia Astorino (http://github.com/equinusocio) Website: https://material-theme.site/ */ .cm-s-material-darker.CodeMirror { background-color: #212121; color: #EEFFFF; } .cm-s-material-darker .CodeMirror-gutters { background: #212121; color: #545454; border: none; } .cm-s-material-darker .CodeMirror-guttermarker, .cm-s-material-darker .CodeMirror-guttermarker-subtle, .cm-s-material-darker .CodeMirror-linenumber { color: #545454; } .cm-s-material-darker .CodeMirror-cursor { border-left: 1px solid #FFCC00; } .cm-s-material-darker div.CodeMirror-selected { background: rgba(97, 97, 97, 0.2); } .cm-s-material-darker.CodeMirror-focused div.CodeMirror-selected { background: rgba(97, 97, 97, 0.2); } .cm-s-material-darker .CodeMirror-line::selection, .cm-s-material-darker .CodeMirror-line>span::selection, .cm-s-material-darker .CodeMirror-line>span>span::selection { background: rgba(128, 203, 196, 0.2); } .cm-s-material-darker .CodeMirror-line::-moz-selection, .cm-s-material-darker .CodeMirror-line>span::-moz-selection, .cm-s-material-darker .CodeMirror-line>span>span::-moz-selection { background: rgba(128, 203, 196, 0.2); } .cm-s-material-darker .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0.5); } .cm-s-material-darker .cm-keyword { color: #C792EA; } .cm-s-material-darker .cm-operator { color: #89DDFF; } .cm-s-material-darker .cm-variable-2 { color: #EEFFFF; } .cm-s-material-darker .cm-variable-3, .cm-s-material-darker .cm-type { color: #f07178; } .cm-s-material-darker .cm-builtin { color: #FFCB6B; } .cm-s-material-darker .cm-atom { color: #F78C6C; } .cm-s-material-darker .cm-number { color: #FF5370; } .cm-s-material-darker .cm-def { color: #82AAFF; } .cm-s-material-darker .cm-string { color: #C3E88D; } .cm-s-material-darker .cm-string-2 { color: #f07178; } .cm-s-material-darker .cm-comment { color: #545454; } .cm-s-material-darker .cm-variable { color: #f07178; } .cm-s-material-darker .cm-tag { color: #FF5370; } .cm-s-material-darker .cm-meta { color: #FFCB6B; } .cm-s-material-darker .cm-attribute { color: #C792EA; } .cm-s-material-darker .cm-property { color: #C792EA; } .cm-s-material-darker .cm-qualifier { color: #DECB6B; } .cm-s-material-darker .cm-variable-3, .cm-s-material-darker .cm-type { color: #DECB6B; } .cm-s-material-darker .cm-error { color: rgba(255, 255, 255, 1.0); background-color: #FF5370; } .cm-s-material-darker .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/material-ocean.css ================================================ /* Name: material Author: Mattia Astorino (http://github.com/equinusocio) Website: https://material-theme.site/ */ .cm-s-material-ocean.CodeMirror { background-color: #0F111A; color: #8F93A2; } .cm-s-material-ocean .CodeMirror-gutters { background: #0F111A; color: #464B5D; border: none; } .cm-s-material-ocean .CodeMirror-guttermarker, .cm-s-material-ocean .CodeMirror-guttermarker-subtle, .cm-s-material-ocean .CodeMirror-linenumber { color: #464B5D; } .cm-s-material-ocean .CodeMirror-cursor { border-left: 1px solid #FFCC00; } .cm-s-material-ocean.cm-fat-cursor .CodeMirror-cursor { background-color: #a2a8a175 !important; } .cm-s-material-ocean .cm-animate-fat-cursor { background-color: #a2a8a175 !important; } .cm-s-material-ocean div.CodeMirror-selected { background: rgba(113, 124, 180, 0.2); } .cm-s-material-ocean.CodeMirror-focused div.CodeMirror-selected { background: rgba(113, 124, 180, 0.2); } .cm-s-material-ocean .CodeMirror-line::selection, .cm-s-material-ocean .CodeMirror-line>span::selection, .cm-s-material-ocean .CodeMirror-line>span>span::selection { background: rgba(128, 203, 196, 0.2); } .cm-s-material-ocean .CodeMirror-line::-moz-selection, .cm-s-material-ocean .CodeMirror-line>span::-moz-selection, .cm-s-material-ocean .CodeMirror-line>span>span::-moz-selection { background: rgba(128, 203, 196, 0.2); } .cm-s-material-ocean .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0.5); } .cm-s-material-ocean .cm-keyword { color: #C792EA; } .cm-s-material-ocean .cm-operator { color: #89DDFF; } .cm-s-material-ocean .cm-variable-2 { color: #EEFFFF; } .cm-s-material-ocean .cm-variable-3, .cm-s-material-ocean .cm-type { color: #f07178; } .cm-s-material-ocean .cm-builtin { color: #FFCB6B; } .cm-s-material-ocean .cm-atom { color: #F78C6C; } .cm-s-material-ocean .cm-number { color: #FF5370; } .cm-s-material-ocean .cm-def { color: #82AAFF; } .cm-s-material-ocean .cm-string { color: #C3E88D; } .cm-s-material-ocean .cm-string-2 { color: #f07178; } .cm-s-material-ocean .cm-comment { color: #464B5D; } .cm-s-material-ocean .cm-variable { color: #f07178; } .cm-s-material-ocean .cm-tag { color: #FF5370; } .cm-s-material-ocean .cm-meta { color: #FFCB6B; } .cm-s-material-ocean .cm-attribute { color: #C792EA; } .cm-s-material-ocean .cm-property { color: #C792EA; } .cm-s-material-ocean .cm-qualifier { color: #DECB6B; } .cm-s-material-ocean .cm-variable-3, .cm-s-material-ocean .cm-type { color: #DECB6B; } .cm-s-material-ocean .cm-error { color: rgba(255, 255, 255, 1.0); background-color: #FF5370; } .cm-s-material-ocean .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/material-palenight.css ================================================ /* Name: material Author: Mattia Astorino (http://github.com/equinusocio) Website: https://material-theme.site/ */ .cm-s-material-palenight.CodeMirror { background-color: #292D3E; color: #A6ACCD; } .cm-s-material-palenight .CodeMirror-gutters { background: #292D3E; color: #676E95; border: none; } .cm-s-material-palenight .CodeMirror-guttermarker, .cm-s-material-palenight .CodeMirror-guttermarker-subtle, .cm-s-material-palenight .CodeMirror-linenumber { color: #676E95; } .cm-s-material-palenight .CodeMirror-cursor { border-left: 1px solid #FFCC00; } .cm-s-material-palenight.cm-fat-cursor .CodeMirror-cursor { background-color: #607c8b80 !important; } .cm-s-material-palenight .cm-animate-fat-cursor { background-color: #607c8b80 !important; } .cm-s-material-palenight div.CodeMirror-selected { background: rgba(113, 124, 180, 0.2); } .cm-s-material-palenight.CodeMirror-focused div.CodeMirror-selected { background: rgba(113, 124, 180, 0.2); } .cm-s-material-palenight .CodeMirror-line::selection, .cm-s-material-palenight .CodeMirror-line>span::selection, .cm-s-material-palenight .CodeMirror-line>span>span::selection { background: rgba(128, 203, 196, 0.2); } .cm-s-material-palenight .CodeMirror-line::-moz-selection, .cm-s-material-palenight .CodeMirror-line>span::-moz-selection, .cm-s-material-palenight .CodeMirror-line>span>span::-moz-selection { background: rgba(128, 203, 196, 0.2); } .cm-s-material-palenight .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0.5); } .cm-s-material-palenight .cm-keyword { color: #C792EA; } .cm-s-material-palenight .cm-operator { color: #89DDFF; } .cm-s-material-palenight .cm-variable-2 { color: #EEFFFF; } .cm-s-material-palenight .cm-variable-3, .cm-s-material-palenight .cm-type { color: #f07178; } .cm-s-material-palenight .cm-builtin { color: #FFCB6B; } .cm-s-material-palenight .cm-atom { color: #F78C6C; } .cm-s-material-palenight .cm-number { color: #FF5370; } .cm-s-material-palenight .cm-def { color: #82AAFF; } .cm-s-material-palenight .cm-string { color: #C3E88D; } .cm-s-material-palenight .cm-string-2 { color: #f07178; } .cm-s-material-palenight .cm-comment { color: #676E95; } .cm-s-material-palenight .cm-variable { color: #f07178; } .cm-s-material-palenight .cm-tag { color: #FF5370; } .cm-s-material-palenight .cm-meta { color: #FFCB6B; } .cm-s-material-palenight .cm-attribute { color: #C792EA; } .cm-s-material-palenight .cm-property { color: #C792EA; } .cm-s-material-palenight .cm-qualifier { color: #DECB6B; } .cm-s-material-palenight .cm-variable-3, .cm-s-material-palenight .cm-type { color: #DECB6B; } .cm-s-material-palenight .cm-error { color: rgba(255, 255, 255, 1.0); background-color: #FF5370; } .cm-s-material-palenight .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/material.css ================================================ /* Name: material Author: Mattia Astorino (http://github.com/equinusocio) Website: https://material-theme.site/ */ .cm-s-material.CodeMirror { background-color: #263238; color: #EEFFFF; } .cm-s-material .CodeMirror-gutters { background: #263238; color: #546E7A; border: none; } .cm-s-material .CodeMirror-guttermarker, .cm-s-material .CodeMirror-guttermarker-subtle, .cm-s-material .CodeMirror-linenumber { color: #546E7A; } .cm-s-material .CodeMirror-cursor { border-left: 1px solid #FFCC00; } .cm-s-material.cm-fat-cursor .CodeMirror-cursor { background-color: #5d6d5c80 !important; } .cm-s-material .cm-animate-fat-cursor { background-color: #5d6d5c80 !important; } .cm-s-material div.CodeMirror-selected { background: rgba(128, 203, 196, 0.2); } .cm-s-material.CodeMirror-focused div.CodeMirror-selected { background: rgba(128, 203, 196, 0.2); } .cm-s-material .CodeMirror-line::selection, .cm-s-material .CodeMirror-line>span::selection, .cm-s-material .CodeMirror-line>span>span::selection { background: rgba(128, 203, 196, 0.2); } .cm-s-material .CodeMirror-line::-moz-selection, .cm-s-material .CodeMirror-line>span::-moz-selection, .cm-s-material .CodeMirror-line>span>span::-moz-selection { background: rgba(128, 203, 196, 0.2); } .cm-s-material .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0.5); } .cm-s-material .cm-keyword { color: #C792EA; } .cm-s-material .cm-operator { color: #89DDFF; } .cm-s-material .cm-variable-2 { color: #EEFFFF; } .cm-s-material .cm-variable-3, .cm-s-material .cm-type { color: #f07178; } .cm-s-material .cm-builtin { color: #FFCB6B; } .cm-s-material .cm-atom { color: #F78C6C; } .cm-s-material .cm-number { color: #FF5370; } .cm-s-material .cm-def { color: #82AAFF; } .cm-s-material .cm-string { color: #C3E88D; } .cm-s-material .cm-string-2 { color: #f07178; } .cm-s-material .cm-comment { color: #546E7A; } .cm-s-material .cm-variable { color: #f07178; } .cm-s-material .cm-tag { color: #FF5370; } .cm-s-material .cm-meta { color: #FFCB6B; } .cm-s-material .cm-attribute { color: #C792EA; } .cm-s-material .cm-property { color: #C792EA; } .cm-s-material .cm-qualifier { color: #DECB6B; } .cm-s-material .cm-variable-3, .cm-s-material .cm-type { color: #DECB6B; } .cm-s-material .cm-error { color: rgba(255, 255, 255, 1.0); background-color: #FF5370; } .cm-s-material .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/mbo.css ================================================ /****************************************************************/ /* Based on mbonaci's Brackets mbo theme */ /* https://github.com/mbonaci/global/blob/master/Mbo.tmTheme */ /* Create your own: http://tmtheme-editor.herokuapp.com */ /****************************************************************/ .cm-s-mbo.CodeMirror { background: #2c2c2c; color: #ffffec; } .cm-s-mbo div.CodeMirror-selected { background: #716C62; } .cm-s-mbo .CodeMirror-line::selection, .cm-s-mbo .CodeMirror-line > span::selection, .cm-s-mbo .CodeMirror-line > span > span::selection { background: rgba(113, 108, 98, .99); } .cm-s-mbo .CodeMirror-line::-moz-selection, .cm-s-mbo .CodeMirror-line > span::-moz-selection, .cm-s-mbo .CodeMirror-line > span > span::-moz-selection { background: rgba(113, 108, 98, .99); } .cm-s-mbo .CodeMirror-gutters { background: #4e4e4e; border-right: 0px; } .cm-s-mbo .CodeMirror-guttermarker { color: white; } .cm-s-mbo .CodeMirror-guttermarker-subtle { color: grey; } .cm-s-mbo .CodeMirror-linenumber { color: #dadada; } .cm-s-mbo .CodeMirror-cursor { border-left: 1px solid #ffffec; } .cm-s-mbo span.cm-comment { color: #95958a; } .cm-s-mbo span.cm-atom { color: #00a8c6; } .cm-s-mbo span.cm-number { color: #00a8c6; } .cm-s-mbo span.cm-property, .cm-s-mbo span.cm-attribute { color: #9ddfe9; } .cm-s-mbo span.cm-keyword { color: #ffb928; } .cm-s-mbo span.cm-string { color: #ffcf6c; } .cm-s-mbo span.cm-string.cm-property { color: #ffffec; } .cm-s-mbo span.cm-variable { color: #ffffec; } .cm-s-mbo span.cm-variable-2 { color: #00a8c6; } .cm-s-mbo span.cm-def { color: #ffffec; } .cm-s-mbo span.cm-bracket { color: #fffffc; font-weight: bold; } .cm-s-mbo span.cm-tag { color: #9ddfe9; } .cm-s-mbo span.cm-link { color: #f54b07; } .cm-s-mbo span.cm-error { border-bottom: #636363; color: #ffffec; } .cm-s-mbo span.cm-qualifier { color: #ffffec; } .cm-s-mbo .CodeMirror-activeline-background { background: #494b41; } .cm-s-mbo .CodeMirror-matchingbracket { color: #ffb928 !important; } .cm-s-mbo .CodeMirror-matchingtag { background: rgba(255, 255, 255, .37); } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/mdn-like.css ================================================ /* MDN-LIKE Theme - Mozilla Ported to CodeMirror by Peter Kroon Report bugs/issues here: https://github.com/codemirror/CodeMirror/issues GitHub: @peterkroon The mdn-like theme is inspired on the displayed code examples at: https://developer.mozilla.org/en-US/docs/Web/CSS/animation */ .cm-s-mdn-like.CodeMirror { color: #999; background-color: #fff; } .cm-s-mdn-like div.CodeMirror-selected { background: #cfc; } .cm-s-mdn-like .CodeMirror-line::selection, .cm-s-mdn-like .CodeMirror-line > span::selection, .cm-s-mdn-like .CodeMirror-line > span > span::selection { background: #cfc; } .cm-s-mdn-like .CodeMirror-line::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span > span::-moz-selection { background: #cfc; } .cm-s-mdn-like .CodeMirror-gutters { background: #f8f8f8; border-left: 6px solid rgba(0,83,159,0.65); color: #333; } .cm-s-mdn-like .CodeMirror-linenumber { color: #aaa; padding-left: 8px; } .cm-s-mdn-like .CodeMirror-cursor { border-left: 2px solid #222; } .cm-s-mdn-like .cm-keyword { color: #6262FF; } .cm-s-mdn-like .cm-atom { color: #F90; } .cm-s-mdn-like .cm-number { color: #ca7841; } .cm-s-mdn-like .cm-def { color: #8DA6CE; } .cm-s-mdn-like span.cm-variable-2, .cm-s-mdn-like span.cm-tag { color: #690; } .cm-s-mdn-like span.cm-variable-3, .cm-s-mdn-like span.cm-def, .cm-s-mdn-like span.cm-type { color: #07a; } .cm-s-mdn-like .cm-variable { color: #07a; } .cm-s-mdn-like .cm-property { color: #905; } .cm-s-mdn-like .cm-qualifier { color: #690; } .cm-s-mdn-like .cm-operator { color: #cda869; } .cm-s-mdn-like .cm-comment { color:#777; font-weight:normal; } .cm-s-mdn-like .cm-string { color:#07a; font-style:italic; } .cm-s-mdn-like .cm-string-2 { color:#bd6b18; } /*?*/ .cm-s-mdn-like .cm-meta { color: #000; } /*?*/ .cm-s-mdn-like .cm-builtin { color: #9B7536; } /*?*/ .cm-s-mdn-like .cm-tag { color: #997643; } .cm-s-mdn-like .cm-attribute { color: #d6bb6d; } /*?*/ .cm-s-mdn-like .cm-header { color: #FF6400; } .cm-s-mdn-like .cm-hr { color: #AEAEAE; } .cm-s-mdn-like .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } .cm-s-mdn-like .cm-error { border-bottom: 1px solid red; } div.cm-s-mdn-like .CodeMirror-activeline-background { background: #efefff; } div.cm-s-mdn-like span.CodeMirror-matchingbracket { outline:1px solid grey; color: inherit; } .cm-s-mdn-like.CodeMirror { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAAAyCAYAAAAp8UeFAAAHvklEQVR42s2b63bcNgyEQZCSHCdt2vd/0tWF7I+Q6XgMXiTtuvU5Pl57ZQKkKHzEAOtF5KeIJBGJ8uvL599FRFREZhFx8DeXv8trn68RuGaC8TRfo3SNp9dlDDHedyLyTUTeRWStXKPZrjtpZxaRw5hPqozRs1N8/enzIiQRWcCgy4MUA0f+XWliDhyL8Lfyvx7ei/Ae3iQFHyw7U/59pQVIMEEPEz0G7XiwdRjzSfC3UTtz9vchIntxvry5iMgfIhJoEflOz2CQr3F5h/HfeFe+GTdLaKcu9L8LTeQb/R/7GgbsfKedyNdoHsN31uRPWrfZ5wsj/NzzRQHuToIdU3ahwnsKPxXCjJITuOsi7XLc7SG/v5GdALs7wf8JjTFiB5+QvTEfRyGOfX3Lrx8wxyQi3sNq46O7QahQiCsRFgqddjBouVEHOKDgXAQHD9gJCr5sMKkEdjwsarG/ww3BMHBU7OBjXnzdyY7SfCxf5/z6ATccrwlKuwC/jhznnPF4CgVzhhVf4xp2EixcBActO75iZ8/fM9zAs2OMzKdslgXWJ9XG8PQoOAMA5fGcsvORgv0doBXyHrCwfLJAOwo71QLNkb8n2Pl6EWiR7OCibtkPaz4Kc/0NNAze2gju3zOwekALDaCFPI5vjPFmgGY5AZqyGEvH1x7QfIb8YtxMnA/b+QQ0aQDAwc6JMFg8CbQZ4qoYEEHbRwNojuK3EHwd7VALSgq+MNDKzfT58T8qdpADrgW0GmgcAS1lhzztJmkAzcPNOQbsWEALBDSlMKUG0Eq4CLAQWvEVQ9WU57gZJwZtgPO3r9oBTQ9WO8TjqXINx8R0EYpiZEUWOF3FxkbJkgU9B2f41YBrIj5ZfsQa0M5kTgiAAqM3ShXLgu8XMqcrQBvJ0CL5pnTsfMB13oB8athpAq2XOQmcGmoACCLydx7nToa23ATaSIY2ichfOdPTGxlasXMLaL0MLZAOwAKIM+y8CmicobGdCcbbK9DzN+yYGVoNNI5iUKTMyYOjPse4A8SM1MmcXgU0toOq1yO/v8FOxlASyc7TgeYaAMBJHcY1CcCwGI/TK4AmDbDyKYBBtFUkRwto8gygiQEaByFgJ00BH2M8JWwQS1nafDXQCidWyOI8AcjDCSjCLk8ngObuAm3JAHAdubAmOaK06V8MNEsKPJOhobSprwQa6gD7DclRQdqcwL4zxqgBrQcabUiBLclRDKAlWp+etPkBaNMA0AKlrHwTdEByZAA4GM+SNluSY6wAzcMNewxmgig5Ks0nkrSpBvSaQHMdKTBAnLojOdYyGpQ254602ZILPdTD1hdlggdIm74jbTp8vDwF5ZYUeLWGJpWsh6XNyXgcYwVoJQTEhhTYkxzZjiU5npU2TaB979TQehlaAVq4kaGpiPwwwLkYUuBbQwocyQTv1tA0+1UFWoJF3iv1oq+qoSk8EQdJmwHkziIF7oOZk14EGitibAdjLYYK78H5vZOhtWpoI0ATGHs0Q8OMb4Ey+2bU2UYztCtA0wFAs7TplGLRVQCcqaFdGSPCeTI1QNIC52iWNzof6Uib7xjEp07mNNoUYmVosVItHrHzRlLgBn9LFyRHaQCtVUMbtTNhoXWiTOO9k/V8BdAc1Oq0ArSQs6/5SU0hckNy9NnXqQY0PGYo5dWJ7nINaN6o958FWin27aBaWRka1r5myvLOAm0j30eBJqCxHLReVclxhxOEN2JfDWjxBtAC7MIH1fVaGdoOp4qJYDgKtKPSFNID2gSnGldrCqkFZ+5UeQXQBIRrSwocbdZYQT/2LwRahBPBXoHrB8nxaGROST62DKUbQOMMzZIC9abkuELfQzQALWTnDNAm8KHWFOJgJ5+SHIvTPcmx1xQyZRhNL5Qci689aXMEaN/uNIWkEwDAvFpOZmgsBaaGnbs1NPa1Jm32gBZAIh1pCtG7TSH4aE0y1uVY4uqoFPisGlpP2rSA5qTecWn5agK6BzSpgAyD+wFaqhnYoSZ1Vwr8CmlTQbrcO3ZaX0NAEyMbYaAlyquFoLKK3SPby9CeVUPThrSJmkCAE0CrKUQadi4DrdSlWhmah0YL9z9vClH59YGbHx1J8VZTyAjQepJjmXwAKTDQI3omc3p1U4gDUf6RfcdYfrUp5ClAi2J3Ba6UOXGo+K+bQrjjssitG2SJzshaLwMtXgRagUNpYYoVkMSBLM+9GGiJZMvduG6DRZ4qc04DMPtQQxOjEtACmhO7K1AbNbQDEggZyJwscFpAGwENhoBeUwh3bWolhe8BTYVKxQEWrSUn/uhcM5KhvUu/+eQu0Lzhi+VrK0PrZZNDQKs9cpYUuFYgMVpD4/NxenJTiMCNqdUEUf1qZWjppLT5qSkkUZbCwkbZMSuVnu80hfSkzRbQeqCZSAh6huR4VtoM2gHAlLf72smuWgE+VV7XpE25Ab2WFDgyhnSuKbs4GuGzCjR+tIoUuMFg3kgcWKLTwRqanJQ2W00hAsenfaApRC42hbCvK1SlE0HtE9BGgneJO+ELamitD1YjjOYnNYVcraGhtKkW0EqVVeDx733I2NH581k1NNxNLG0i0IJ8/NjVaOZ0tYZ2Vtr0Xv7tPV3hkWp9EFkgS/J0vosngTaSoaG06WHi+xObQkaAdlbanP8B2+2l0f90LmUAAAAASUVORK5CYII=); } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/midnight.css ================================================ /* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */ /**/ .cm-s-midnight .CodeMirror-activeline-background { background: #253540; } .cm-s-midnight.CodeMirror { background: #0F192A; color: #D1EDFF; } .cm-s-midnight div.CodeMirror-selected { background: #314D67; } .cm-s-midnight .CodeMirror-line::selection, .cm-s-midnight .CodeMirror-line > span::selection, .cm-s-midnight .CodeMirror-line > span > span::selection { background: rgba(49, 77, 103, .99); } .cm-s-midnight .CodeMirror-line::-moz-selection, .cm-s-midnight .CodeMirror-line > span::-moz-selection, .cm-s-midnight .CodeMirror-line > span > span::-moz-selection { background: rgba(49, 77, 103, .99); } .cm-s-midnight .CodeMirror-gutters { background: #0F192A; border-right: 1px solid; } .cm-s-midnight .CodeMirror-guttermarker { color: white; } .cm-s-midnight .CodeMirror-guttermarker-subtle { color: #d0d0d0; } .cm-s-midnight .CodeMirror-linenumber { color: #D0D0D0; } .cm-s-midnight .CodeMirror-cursor { border-left: 1px solid #F8F8F0; } .cm-s-midnight span.cm-comment { color: #428BDD; } .cm-s-midnight span.cm-atom { color: #AE81FF; } .cm-s-midnight span.cm-number { color: #D1EDFF; } .cm-s-midnight span.cm-property, .cm-s-midnight span.cm-attribute { color: #A6E22E; } .cm-s-midnight span.cm-keyword { color: #E83737; } .cm-s-midnight span.cm-string { color: #1DC116; } .cm-s-midnight span.cm-variable { color: #FFAA3E; } .cm-s-midnight span.cm-variable-2 { color: #FFAA3E; } .cm-s-midnight span.cm-def { color: #4DD; } .cm-s-midnight span.cm-bracket { color: #D1EDFF; } .cm-s-midnight span.cm-tag { color: #449; } .cm-s-midnight span.cm-link { color: #AE81FF; } .cm-s-midnight span.cm-error { background: #F92672; color: #F8F8F0; } .cm-s-midnight .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/monokai.css ================================================ /* Based on Sublime Text's Monokai theme */ .cm-s-monokai.CodeMirror { background: #272822; color: #f8f8f2; } .cm-s-monokai div.CodeMirror-selected { background: #49483E; } .cm-s-monokai .CodeMirror-line::selection, .cm-s-monokai .CodeMirror-line > span::selection, .cm-s-monokai .CodeMirror-line > span > span::selection { background: rgba(73, 72, 62, .99); } .cm-s-monokai .CodeMirror-line::-moz-selection, .cm-s-monokai .CodeMirror-line > span::-moz-selection, .cm-s-monokai .CodeMirror-line > span > span::-moz-selection { background: rgba(73, 72, 62, .99); } .cm-s-monokai .CodeMirror-gutters { background: #272822; border-right: 0px; } .cm-s-monokai .CodeMirror-guttermarker { color: white; } .cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; } .cm-s-monokai .CodeMirror-linenumber { color: #d0d0d0; } .cm-s-monokai .CodeMirror-cursor { border-left: 1px solid #f8f8f0; } .cm-s-monokai span.cm-comment { color: #75715e; } .cm-s-monokai span.cm-atom { color: #ae81ff; } .cm-s-monokai span.cm-number { color: #ae81ff; } .cm-s-monokai span.cm-comment.cm-attribute { color: #97b757; } .cm-s-monokai span.cm-comment.cm-def { color: #bc9262; } .cm-s-monokai span.cm-comment.cm-tag { color: #bc6283; } .cm-s-monokai span.cm-comment.cm-type { color: #5998a6; } .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute { color: #a6e22e; } .cm-s-monokai span.cm-keyword { color: #f92672; } .cm-s-monokai span.cm-builtin { color: #66d9ef; } .cm-s-monokai span.cm-string { color: #e6db74; } .cm-s-monokai span.cm-variable { color: #f8f8f2; } .cm-s-monokai span.cm-variable-2 { color: #9effff; } .cm-s-monokai span.cm-variable-3, .cm-s-monokai span.cm-type { color: #66d9ef; } .cm-s-monokai span.cm-def { color: #fd971f; } .cm-s-monokai span.cm-bracket { color: #f8f8f2; } .cm-s-monokai span.cm-tag { color: #f92672; } .cm-s-monokai span.cm-header { color: #ae81ff; } .cm-s-monokai span.cm-link { color: #ae81ff; } .cm-s-monokai span.cm-error { background: #f92672; color: #f8f8f0; } .cm-s-monokai .CodeMirror-activeline-background { background: #373831; } .cm-s-monokai .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/moxer.css ================================================ /* Name: Moxer Theme Author: Mattia Astorino (http://github.com/equinusocio) Website: https://github.com/moxer-theme/moxer-code */ .cm-s-moxer.CodeMirror { background-color: #090A0F; color: #8E95B4; line-height: 1.8; } .cm-s-moxer .CodeMirror-gutters { background: #090A0F; color: #35394B; border: none; } .cm-s-moxer .CodeMirror-guttermarker, .cm-s-moxer .CodeMirror-guttermarker-subtle, .cm-s-moxer .CodeMirror-linenumber { color: #35394B; } .cm-s-moxer .CodeMirror-cursor { border-left: 1px solid #FFCC00; } .cm-s-moxer div.CodeMirror-selected { background: rgba(128, 203, 196, 0.2); } .cm-s-moxer.CodeMirror-focused div.CodeMirror-selected { background: #212431; } .cm-s-moxer .CodeMirror-line::selection, .cm-s-moxer .CodeMirror-line>span::selection, .cm-s-moxer .CodeMirror-line>span>span::selection { background: #212431; } .cm-s-moxer .CodeMirror-line::-moz-selection, .cm-s-moxer .CodeMirror-line>span::-moz-selection, .cm-s-moxer .CodeMirror-line>span>span::-moz-selection { background: #212431; } .cm-s-moxer .CodeMirror-activeline-background, .cm-s-moxer .CodeMirror-activeline-gutter .CodeMirror-linenumber { background: rgba(33, 36, 49, 0.5); } .cm-s-moxer .cm-keyword { color: #D46C6C; } .cm-s-moxer .cm-operator { color: #D46C6C; } .cm-s-moxer .cm-variable-2 { color: #81C5DA; } .cm-s-moxer .cm-variable-3, .cm-s-moxer .cm-type { color: #f07178; } .cm-s-moxer .cm-builtin { color: #FFCB6B; } .cm-s-moxer .cm-atom { color: #A99BE2; } .cm-s-moxer .cm-number { color: #7CA4C0; } .cm-s-moxer .cm-def { color: #F5DFA5; } .cm-s-moxer .CodeMirror-line .cm-def ~ .cm-def { color: #81C5DA; } .cm-s-moxer .cm-string { color: #B2E4AE; } .cm-s-moxer .cm-string-2 { color: #f07178; } .cm-s-moxer .cm-comment { color: #3F445A; } .cm-s-moxer .cm-variable { color: #8E95B4; } .cm-s-moxer .cm-tag { color: #FF5370; } .cm-s-moxer .cm-meta { color: #FFCB6B; } .cm-s-moxer .cm-attribute { color: #C792EA; } .cm-s-moxer .cm-property { color: #81C5DA; } .cm-s-moxer .cm-qualifier { color: #DECB6B; } .cm-s-moxer .cm-variable-3, .cm-s-moxer .cm-type { color: #DECB6B; } .cm-s-moxer .cm-error { color: rgba(255, 255, 255, 1.0); background-color: #FF5370; } .cm-s-moxer .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/neat.css ================================================ .cm-s-neat span.cm-comment { color: #a86; } .cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; } .cm-s-neat span.cm-string { color: #a22; } .cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; } .cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; } .cm-s-neat span.cm-variable { color: black; } .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; } .cm-s-neat span.cm-meta { color: #555; } .cm-s-neat span.cm-link { color: #3a3; } .cm-s-neat .CodeMirror-activeline-background { background: #e8f2ff; } .cm-s-neat .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/neo.css ================================================ /* neo theme for codemirror */ /* Color scheme */ .cm-s-neo.CodeMirror { background-color:#ffffff; color:#2e383c; line-height:1.4375; } .cm-s-neo .cm-comment { color:#75787b; } .cm-s-neo .cm-keyword, .cm-s-neo .cm-property { color:#1d75b3; } .cm-s-neo .cm-atom,.cm-s-neo .cm-number { color:#75438a; } .cm-s-neo .cm-node,.cm-s-neo .cm-tag { color:#9c3328; } .cm-s-neo .cm-string { color:#b35e14; } .cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier { color:#047d65; } /* Editor styling */ .cm-s-neo pre { padding:0; } .cm-s-neo .CodeMirror-gutters { border:none; border-right:10px solid transparent; background-color:transparent; } .cm-s-neo .CodeMirror-linenumber { padding:0; color:#e0e2e5; } .cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; } .cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; } .cm-s-neo .CodeMirror-cursor { width: auto; border: 0; background: rgba(155,157,162,0.37); z-index: 1; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/night.css ================================================ /* Loosely based on the Midnight Textmate theme */ .cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; } .cm-s-night div.CodeMirror-selected { background: #447; } .cm-s-night .CodeMirror-line::selection, .cm-s-night .CodeMirror-line > span::selection, .cm-s-night .CodeMirror-line > span > span::selection { background: rgba(68, 68, 119, .99); } .cm-s-night .CodeMirror-line::-moz-selection, .cm-s-night .CodeMirror-line > span::-moz-selection, .cm-s-night .CodeMirror-line > span > span::-moz-selection { background: rgba(68, 68, 119, .99); } .cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } .cm-s-night .CodeMirror-guttermarker { color: white; } .cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; } .cm-s-night .CodeMirror-linenumber { color: #f8f8f8; } .cm-s-night .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-night span.cm-comment { color: #8900d1; } .cm-s-night span.cm-atom { color: #845dc4; } .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; } .cm-s-night span.cm-keyword { color: #599eff; } .cm-s-night span.cm-string { color: #37f14a; } .cm-s-night span.cm-meta { color: #7678e2; } .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; } .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def, .cm-s-night span.cm-type { color: white; } .cm-s-night span.cm-bracket { color: #8da6ce; } .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; } .cm-s-night span.cm-link { color: #845dc4; } .cm-s-night span.cm-error { color: #9d1e15; } .cm-s-night .CodeMirror-activeline-background { background: #1C005A; } .cm-s-night .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/nord.css ================================================ /* Based on arcticicestudio's Nord theme */ /* https://github.com/arcticicestudio/nord */ .cm-s-nord.CodeMirror { background: #2e3440; color: #d8dee9; } .cm-s-nord div.CodeMirror-selected { background: #434c5e; } .cm-s-nord .CodeMirror-line::selection, .cm-s-nord .CodeMirror-line > span::selection, .cm-s-nord .CodeMirror-line > span > span::selection { background: #3b4252; } .cm-s-nord .CodeMirror-line::-moz-selection, .cm-s-nord .CodeMirror-line > span::-moz-selection, .cm-s-nord .CodeMirror-line > span > span::-moz-selection { background: #3b4252; } .cm-s-nord .CodeMirror-gutters { background: #2e3440; border-right: 0px; } .cm-s-nord .CodeMirror-guttermarker { color: #4c566a; } .cm-s-nord .CodeMirror-guttermarker-subtle { color: #4c566a; } .cm-s-nord .CodeMirror-linenumber { color: #4c566a; } .cm-s-nord .CodeMirror-cursor { border-left: 1px solid #f8f8f0; } .cm-s-nord span.cm-comment { color: #4c566a; } .cm-s-nord span.cm-atom { color: #b48ead; } .cm-s-nord span.cm-number { color: #b48ead; } .cm-s-nord span.cm-comment.cm-attribute { color: #97b757; } .cm-s-nord span.cm-comment.cm-def { color: #bc9262; } .cm-s-nord span.cm-comment.cm-tag { color: #bc6283; } .cm-s-nord span.cm-comment.cm-type { color: #5998a6; } .cm-s-nord span.cm-property, .cm-s-nord span.cm-attribute { color: #8FBCBB; } .cm-s-nord span.cm-keyword { color: #81A1C1; } .cm-s-nord span.cm-builtin { color: #81A1C1; } .cm-s-nord span.cm-string { color: #A3BE8C; } .cm-s-nord span.cm-variable { color: #d8dee9; } .cm-s-nord span.cm-variable-2 { color: #d8dee9; } .cm-s-nord span.cm-variable-3, .cm-s-nord span.cm-type { color: #d8dee9; } .cm-s-nord span.cm-def { color: #8FBCBB; } .cm-s-nord span.cm-bracket { color: #81A1C1; } .cm-s-nord span.cm-tag { color: #bf616a; } .cm-s-nord span.cm-header { color: #b48ead; } .cm-s-nord span.cm-link { color: #b48ead; } .cm-s-nord span.cm-error { background: #bf616a; color: #f8f8f0; } .cm-s-nord .CodeMirror-activeline-background { background: #3b4252; } .cm-s-nord .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/oceanic-next.css ================================================ /* Name: oceanic-next Author: Filype Pereira (https://github.com/fpereira1) Original oceanic-next color scheme by Dmitri Voronianski (https://github.com/voronianski/oceanic-next-color-scheme) */ .cm-s-oceanic-next.CodeMirror { background: #304148; color: #f8f8f2; } .cm-s-oceanic-next div.CodeMirror-selected { background: rgba(101, 115, 126, 0.33); } .cm-s-oceanic-next .CodeMirror-line::selection, .cm-s-oceanic-next .CodeMirror-line > span::selection, .cm-s-oceanic-next .CodeMirror-line > span > span::selection { background: rgba(101, 115, 126, 0.33); } .cm-s-oceanic-next .CodeMirror-line::-moz-selection, .cm-s-oceanic-next .CodeMirror-line > span::-moz-selection, .cm-s-oceanic-next .CodeMirror-line > span > span::-moz-selection { background: rgba(101, 115, 126, 0.33); } .cm-s-oceanic-next .CodeMirror-gutters { background: #304148; border-right: 10px; } .cm-s-oceanic-next .CodeMirror-guttermarker { color: white; } .cm-s-oceanic-next .CodeMirror-guttermarker-subtle { color: #d0d0d0; } .cm-s-oceanic-next .CodeMirror-linenumber { color: #d0d0d0; } .cm-s-oceanic-next .CodeMirror-cursor { border-left: 1px solid #f8f8f0; } .cm-s-oceanic-next.cm-fat-cursor .CodeMirror-cursor { background-color: #a2a8a175 !important; } .cm-s-oceanic-next .cm-animate-fat-cursor { background-color: #a2a8a175 !important; } .cm-s-oceanic-next span.cm-comment { color: #65737E; } .cm-s-oceanic-next span.cm-atom { color: #C594C5; } .cm-s-oceanic-next span.cm-number { color: #F99157; } .cm-s-oceanic-next span.cm-property { color: #99C794; } .cm-s-oceanic-next span.cm-attribute, .cm-s-oceanic-next span.cm-keyword { color: #C594C5; } .cm-s-oceanic-next span.cm-builtin { color: #66d9ef; } .cm-s-oceanic-next span.cm-string { color: #99C794; } .cm-s-oceanic-next span.cm-variable, .cm-s-oceanic-next span.cm-variable-2, .cm-s-oceanic-next span.cm-variable-3 { color: #f8f8f2; } .cm-s-oceanic-next span.cm-def { color: #6699CC; } .cm-s-oceanic-next span.cm-bracket { color: #5FB3B3; } .cm-s-oceanic-next span.cm-tag { color: #C594C5; } .cm-s-oceanic-next span.cm-header { color: #C594C5; } .cm-s-oceanic-next span.cm-link { color: #C594C5; } .cm-s-oceanic-next span.cm-error { background: #C594C5; color: #f8f8f0; } .cm-s-oceanic-next .CodeMirror-activeline-background { background: rgba(101, 115, 126, 0.33); } .cm-s-oceanic-next .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/panda-syntax.css ================================================ /* Name: Panda Syntax Author: Siamak Mokhtari (http://github.com/siamak/) CodeMirror template by Siamak Mokhtari (https://github.com/siamak/atom-panda-syntax) */ .cm-s-panda-syntax { background: #292A2B; color: #E6E6E6; line-height: 1.5; font-family: 'Operator Mono', 'Source Code Pro', Menlo, Monaco, Consolas, Courier New, monospace; } .cm-s-panda-syntax .CodeMirror-cursor { border-color: #ff2c6d; } .cm-s-panda-syntax .CodeMirror-activeline-background { background: rgba(99, 123, 156, 0.1); } .cm-s-panda-syntax .CodeMirror-selected { background: #FFF; } .cm-s-panda-syntax .cm-comment { font-style: italic; color: #676B79; } .cm-s-panda-syntax .cm-operator { color: #f3f3f3; } .cm-s-panda-syntax .cm-string { color: #19F9D8; } .cm-s-panda-syntax .cm-string-2 { color: #FFB86C; } .cm-s-panda-syntax .cm-tag { color: #ff2c6d; } .cm-s-panda-syntax .cm-meta { color: #b084eb; } .cm-s-panda-syntax .cm-number { color: #FFB86C; } .cm-s-panda-syntax .cm-atom { color: #ff2c6d; } .cm-s-panda-syntax .cm-keyword { color: #FF75B5; } .cm-s-panda-syntax .cm-variable { color: #ffb86c; } .cm-s-panda-syntax .cm-variable-2 { color: #ff9ac1; } .cm-s-panda-syntax .cm-variable-3, .cm-s-panda-syntax .cm-type { color: #ff9ac1; } .cm-s-panda-syntax .cm-def { color: #e6e6e6; } .cm-s-panda-syntax .cm-property { color: #f3f3f3; } .cm-s-panda-syntax .cm-unit { color: #ffb86c; } .cm-s-panda-syntax .cm-attribute { color: #ffb86c; } .cm-s-panda-syntax .CodeMirror-matchingbracket { border-bottom: 1px dotted #19F9D8; padding-bottom: 2px; color: #e6e6e6; } .cm-s-panda-syntax .CodeMirror-gutters { background: #292a2b; border-right-color: rgba(255, 255, 255, 0.1); } .cm-s-panda-syntax .CodeMirror-linenumber { color: #e6e6e6; opacity: 0.6; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/paraiso-dark.css ================================================ /* Name: Paraíso (Dark) Author: Jan T. Sott Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror) Inspired by the art of Rubens LP (http://www.rubenslp.com.br) */ .cm-s-paraiso-dark.CodeMirror { background: #2f1e2e; color: #b9b6b0; } .cm-s-paraiso-dark div.CodeMirror-selected { background: #41323f; } .cm-s-paraiso-dark .CodeMirror-line::selection, .cm-s-paraiso-dark .CodeMirror-line > span::selection, .cm-s-paraiso-dark .CodeMirror-line > span > span::selection { background: rgba(65, 50, 63, .99); } .cm-s-paraiso-dark .CodeMirror-line::-moz-selection, .cm-s-paraiso-dark .CodeMirror-line > span::-moz-selection, .cm-s-paraiso-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(65, 50, 63, .99); } .cm-s-paraiso-dark .CodeMirror-gutters { background: #2f1e2e; border-right: 0px; } .cm-s-paraiso-dark .CodeMirror-guttermarker { color: #ef6155; } .cm-s-paraiso-dark .CodeMirror-guttermarker-subtle { color: #776e71; } .cm-s-paraiso-dark .CodeMirror-linenumber { color: #776e71; } .cm-s-paraiso-dark .CodeMirror-cursor { border-left: 1px solid #8d8687; } .cm-s-paraiso-dark span.cm-comment { color: #e96ba8; } .cm-s-paraiso-dark span.cm-atom { color: #815ba4; } .cm-s-paraiso-dark span.cm-number { color: #815ba4; } .cm-s-paraiso-dark span.cm-property, .cm-s-paraiso-dark span.cm-attribute { color: #48b685; } .cm-s-paraiso-dark span.cm-keyword { color: #ef6155; } .cm-s-paraiso-dark span.cm-string { color: #fec418; } .cm-s-paraiso-dark span.cm-variable { color: #48b685; } .cm-s-paraiso-dark span.cm-variable-2 { color: #06b6ef; } .cm-s-paraiso-dark span.cm-def { color: #f99b15; } .cm-s-paraiso-dark span.cm-bracket { color: #b9b6b0; } .cm-s-paraiso-dark span.cm-tag { color: #ef6155; } .cm-s-paraiso-dark span.cm-link { color: #815ba4; } .cm-s-paraiso-dark span.cm-error { background: #ef6155; color: #8d8687; } .cm-s-paraiso-dark .CodeMirror-activeline-background { background: #4D344A; } .cm-s-paraiso-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/paraiso-light.css ================================================ /* Name: Paraíso (Light) Author: Jan T. Sott Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror) Inspired by the art of Rubens LP (http://www.rubenslp.com.br) */ .cm-s-paraiso-light.CodeMirror { background: #e7e9db; color: #41323f; } .cm-s-paraiso-light div.CodeMirror-selected { background: #b9b6b0; } .cm-s-paraiso-light .CodeMirror-line::selection, .cm-s-paraiso-light .CodeMirror-line > span::selection, .cm-s-paraiso-light .CodeMirror-line > span > span::selection { background: #b9b6b0; } .cm-s-paraiso-light .CodeMirror-line::-moz-selection, .cm-s-paraiso-light .CodeMirror-line > span::-moz-selection, .cm-s-paraiso-light .CodeMirror-line > span > span::-moz-selection { background: #b9b6b0; } .cm-s-paraiso-light .CodeMirror-gutters { background: #e7e9db; border-right: 0px; } .cm-s-paraiso-light .CodeMirror-guttermarker { color: black; } .cm-s-paraiso-light .CodeMirror-guttermarker-subtle { color: #8d8687; } .cm-s-paraiso-light .CodeMirror-linenumber { color: #8d8687; } .cm-s-paraiso-light .CodeMirror-cursor { border-left: 1px solid #776e71; } .cm-s-paraiso-light span.cm-comment { color: #e96ba8; } .cm-s-paraiso-light span.cm-atom { color: #815ba4; } .cm-s-paraiso-light span.cm-number { color: #815ba4; } .cm-s-paraiso-light span.cm-property, .cm-s-paraiso-light span.cm-attribute { color: #48b685; } .cm-s-paraiso-light span.cm-keyword { color: #ef6155; } .cm-s-paraiso-light span.cm-string { color: #fec418; } .cm-s-paraiso-light span.cm-variable { color: #48b685; } .cm-s-paraiso-light span.cm-variable-2 { color: #06b6ef; } .cm-s-paraiso-light span.cm-def { color: #f99b15; } .cm-s-paraiso-light span.cm-bracket { color: #41323f; } .cm-s-paraiso-light span.cm-tag { color: #ef6155; } .cm-s-paraiso-light span.cm-link { color: #815ba4; } .cm-s-paraiso-light span.cm-error { background: #ef6155; color: #776e71; } .cm-s-paraiso-light .CodeMirror-activeline-background { background: #CFD1C4; } .cm-s-paraiso-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/pastel-on-dark.css ================================================ /** * Pastel On Dark theme ported from ACE editor * @license MIT * @copyright AtomicPages LLC 2014 * @author Dennis Thompson, AtomicPages LLC * @version 1.1 * @source https://github.com/atomicpages/codemirror-pastel-on-dark-theme */ .cm-s-pastel-on-dark.CodeMirror { background: #2c2827; color: #8F938F; line-height: 1.5; } .cm-s-pastel-on-dark div.CodeMirror-selected { background: rgba(221,240,255,0.2); } .cm-s-pastel-on-dark .CodeMirror-line::selection, .cm-s-pastel-on-dark .CodeMirror-line > span::selection, .cm-s-pastel-on-dark .CodeMirror-line > span > span::selection { background: rgba(221,240,255,0.2); } .cm-s-pastel-on-dark .CodeMirror-line::-moz-selection, .cm-s-pastel-on-dark .CodeMirror-line > span::-moz-selection, .cm-s-pastel-on-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(221,240,255,0.2); } .cm-s-pastel-on-dark .CodeMirror-gutters { background: #34302f; border-right: 0px; padding: 0 3px; } .cm-s-pastel-on-dark .CodeMirror-guttermarker { color: white; } .cm-s-pastel-on-dark .CodeMirror-guttermarker-subtle { color: #8F938F; } .cm-s-pastel-on-dark .CodeMirror-linenumber { color: #8F938F; } .cm-s-pastel-on-dark .CodeMirror-cursor { border-left: 1px solid #A7A7A7; } .cm-s-pastel-on-dark span.cm-comment { color: #A6C6FF; } .cm-s-pastel-on-dark span.cm-atom { color: #DE8E30; } .cm-s-pastel-on-dark span.cm-number { color: #CCCCCC; } .cm-s-pastel-on-dark span.cm-property { color: #8F938F; } .cm-s-pastel-on-dark span.cm-attribute { color: #a6e22e; } .cm-s-pastel-on-dark span.cm-keyword { color: #AEB2F8; } .cm-s-pastel-on-dark span.cm-string { color: #66A968; } .cm-s-pastel-on-dark span.cm-variable { color: #AEB2F8; } .cm-s-pastel-on-dark span.cm-variable-2 { color: #BEBF55; } .cm-s-pastel-on-dark span.cm-variable-3, .cm-s-pastel-on-dark span.cm-type { color: #DE8E30; } .cm-s-pastel-on-dark span.cm-def { color: #757aD8; } .cm-s-pastel-on-dark span.cm-bracket { color: #f8f8f2; } .cm-s-pastel-on-dark span.cm-tag { color: #C1C144; } .cm-s-pastel-on-dark span.cm-link { color: #ae81ff; } .cm-s-pastel-on-dark span.cm-qualifier,.cm-s-pastel-on-dark span.cm-builtin { color: #C1C144; } .cm-s-pastel-on-dark span.cm-error { background: #757aD8; color: #f8f8f0; } .cm-s-pastel-on-dark .CodeMirror-activeline-background { background: rgba(255, 255, 255, 0.031); } .cm-s-pastel-on-dark .CodeMirror-matchingbracket { border: 1px solid rgba(255,255,255,0.25); color: #8F938F !important; margin: -1px -1px 0 -1px; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/railscasts.css ================================================ /* Name: Railscasts Author: Ryan Bates (http://railscasts.com) CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ .cm-s-railscasts.CodeMirror {background: #2b2b2b; color: #f4f1ed;} .cm-s-railscasts div.CodeMirror-selected {background: #272935 !important;} .cm-s-railscasts .CodeMirror-gutters {background: #2b2b2b; border-right: 0px;} .cm-s-railscasts .CodeMirror-linenumber {color: #5a647e;} .cm-s-railscasts .CodeMirror-cursor {border-left: 1px solid #d4cfc9 !important;} .cm-s-railscasts span.cm-comment {color: #bc9458;} .cm-s-railscasts span.cm-atom {color: #b6b3eb;} .cm-s-railscasts span.cm-number {color: #b6b3eb;} .cm-s-railscasts span.cm-property, .cm-s-railscasts span.cm-attribute {color: #a5c261;} .cm-s-railscasts span.cm-keyword {color: #da4939;} .cm-s-railscasts span.cm-string {color: #ffc66d;} .cm-s-railscasts span.cm-variable {color: #a5c261;} .cm-s-railscasts span.cm-variable-2 {color: #6d9cbe;} .cm-s-railscasts span.cm-def {color: #cc7833;} .cm-s-railscasts span.cm-error {background: #da4939; color: #d4cfc9;} .cm-s-railscasts span.cm-bracket {color: #f4f1ed;} .cm-s-railscasts span.cm-tag {color: #da4939;} .cm-s-railscasts span.cm-link {color: #b6b3eb;} .cm-s-railscasts .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} .cm-s-railscasts .CodeMirror-activeline-background { background: #303040; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/rubyblue.css ================================================ .cm-s-rubyblue.CodeMirror { background: #112435; color: white; } .cm-s-rubyblue div.CodeMirror-selected { background: #38566F; } .cm-s-rubyblue .CodeMirror-line::selection, .cm-s-rubyblue .CodeMirror-line > span::selection, .cm-s-rubyblue .CodeMirror-line > span > span::selection { background: rgba(56, 86, 111, 0.99); } .cm-s-rubyblue .CodeMirror-line::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 86, 111, 0.99); } .cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; } .cm-s-rubyblue .CodeMirror-guttermarker { color: white; } .cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; } .cm-s-rubyblue .CodeMirror-linenumber { color: white; } .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; } .cm-s-rubyblue span.cm-atom { color: #F4C20B; } .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; } .cm-s-rubyblue span.cm-keyword { color: #F0F; } .cm-s-rubyblue span.cm-string { color: #F08047; } .cm-s-rubyblue span.cm-meta { color: #F0F; } .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; } .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def, .cm-s-rubyblue span.cm-type { color: white; } .cm-s-rubyblue span.cm-bracket { color: #F0F; } .cm-s-rubyblue span.cm-link { color: #F4C20B; } .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; } .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; } .cm-s-rubyblue span.cm-error { color: #AF2018; } .cm-s-rubyblue .CodeMirror-activeline-background { background: #173047; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/seti.css ================================================ /* Name: seti Author: Michael Kaminsky (http://github.com/mkaminsky11) Original seti color scheme by Jesse Weed (https://github.com/jesseweed/seti-syntax) */ .cm-s-seti.CodeMirror { background-color: #151718 !important; color: #CFD2D1 !important; border: none; } .cm-s-seti .CodeMirror-gutters { color: #404b53; background-color: #0E1112; border: none; } .cm-s-seti .CodeMirror-cursor { border-left: solid thin #f8f8f0; } .cm-s-seti .CodeMirror-linenumber { color: #6D8A88; } .cm-s-seti.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } .cm-s-seti .CodeMirror-line::selection, .cm-s-seti .CodeMirror-line > span::selection, .cm-s-seti .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); } .cm-s-seti .CodeMirror-line::-moz-selection, .cm-s-seti .CodeMirror-line > span::-moz-selection, .cm-s-seti .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); } .cm-s-seti span.cm-comment { color: #41535b; } .cm-s-seti span.cm-string, .cm-s-seti span.cm-string-2 { color: #55b5db; } .cm-s-seti span.cm-number { color: #cd3f45; } .cm-s-seti span.cm-variable { color: #55b5db; } .cm-s-seti span.cm-variable-2 { color: #a074c4; } .cm-s-seti span.cm-def { color: #55b5db; } .cm-s-seti span.cm-keyword { color: #ff79c6; } .cm-s-seti span.cm-operator { color: #9fca56; } .cm-s-seti span.cm-keyword { color: #e6cd69; } .cm-s-seti span.cm-atom { color: #cd3f45; } .cm-s-seti span.cm-meta { color: #55b5db; } .cm-s-seti span.cm-tag { color: #55b5db; } .cm-s-seti span.cm-attribute { color: #9fca56; } .cm-s-seti span.cm-qualifier { color: #9fca56; } .cm-s-seti span.cm-property { color: #a074c4; } .cm-s-seti span.cm-variable-3, .cm-s-seti span.cm-type { color: #9fca56; } .cm-s-seti span.cm-builtin { color: #9fca56; } .cm-s-seti .CodeMirror-activeline-background { background: #101213; } .cm-s-seti .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/shadowfox.css ================================================ /* Name: shadowfox Author: overdodactyl (http://github.com/overdodactyl) Original shadowfox color scheme by Firefox */ .cm-s-shadowfox.CodeMirror { background: #2a2a2e; color: #b1b1b3; } .cm-s-shadowfox div.CodeMirror-selected { background: #353B48; } .cm-s-shadowfox .CodeMirror-line::selection, .cm-s-shadowfox .CodeMirror-line > span::selection, .cm-s-shadowfox .CodeMirror-line > span > span::selection { background: #353B48; } .cm-s-shadowfox .CodeMirror-line::-moz-selection, .cm-s-shadowfox .CodeMirror-line > span::-moz-selection, .cm-s-shadowfox .CodeMirror-line > span > span::-moz-selection { background: #353B48; } .cm-s-shadowfox .CodeMirror-gutters { background: #0c0c0d ; border-right: 1px solid #0c0c0d; } .cm-s-shadowfox .CodeMirror-guttermarker { color: #555; } .cm-s-shadowfox .CodeMirror-linenumber { color: #939393; } .cm-s-shadowfox .CodeMirror-cursor { border-left: 1px solid #fff; } .cm-s-shadowfox span.cm-comment { color: #939393; } .cm-s-shadowfox span.cm-atom { color: #FF7DE9; } .cm-s-shadowfox span.cm-quote { color: #FF7DE9; } .cm-s-shadowfox span.cm-builtin { color: #FF7DE9; } .cm-s-shadowfox span.cm-attribute { color: #FF7DE9; } .cm-s-shadowfox span.cm-keyword { color: #FF7DE9; } .cm-s-shadowfox span.cm-error { color: #FF7DE9; } .cm-s-shadowfox span.cm-number { color: #6B89FF; } .cm-s-shadowfox span.cm-string { color: #6B89FF; } .cm-s-shadowfox span.cm-string-2 { color: #6B89FF; } .cm-s-shadowfox span.cm-meta { color: #939393; } .cm-s-shadowfox span.cm-hr { color: #939393; } .cm-s-shadowfox span.cm-header { color: #75BFFF; } .cm-s-shadowfox span.cm-qualifier { color: #75BFFF; } .cm-s-shadowfox span.cm-variable-2 { color: #75BFFF; } .cm-s-shadowfox span.cm-property { color: #86DE74; } .cm-s-shadowfox span.cm-def { color: #75BFFF; } .cm-s-shadowfox span.cm-bracket { color: #75BFFF; } .cm-s-shadowfox span.cm-tag { color: #75BFFF; } .cm-s-shadowfox span.cm-link:visited { color: #75BFFF; } .cm-s-shadowfox span.cm-variable { color: #B98EFF; } .cm-s-shadowfox span.cm-variable-3 { color: #d7d7db; } .cm-s-shadowfox span.cm-link { color: #737373; } .cm-s-shadowfox span.cm-operator { color: #b1b1b3; } .cm-s-shadowfox span.cm-special { color: #d7d7db; } .cm-s-shadowfox .CodeMirror-activeline-background { background: rgba(185, 215, 253, .15) } .cm-s-shadowfox .CodeMirror-matchingbracket { outline: solid 1px rgba(255, 255, 255, .25); color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/solarized.css ================================================ /* Solarized theme for code-mirror http://ethanschoonover.com/solarized */ /* Solarized color palette http://ethanschoonover.com/solarized/img/solarized-palette.png */ .solarized.base03 { color: #002b36; } .solarized.base02 { color: #073642; } .solarized.base01 { color: #586e75; } .solarized.base00 { color: #657b83; } .solarized.base0 { color: #839496; } .solarized.base1 { color: #93a1a1; } .solarized.base2 { color: #eee8d5; } .solarized.base3 { color: #fdf6e3; } .solarized.solar-yellow { color: #b58900; } .solarized.solar-orange { color: #cb4b16; } .solarized.solar-red { color: #dc322f; } .solarized.solar-magenta { color: #d33682; } .solarized.solar-violet { color: #6c71c4; } .solarized.solar-blue { color: #268bd2; } .solarized.solar-cyan { color: #2aa198; } .solarized.solar-green { color: #859900; } /* Color scheme for code-mirror */ .cm-s-solarized { line-height: 1.45em; color-profile: sRGB; rendering-intent: auto; } .cm-s-solarized.cm-s-dark { color: #839496; background-color: #002b36; } .cm-s-solarized.cm-s-light { background-color: #fdf6e3; color: #657b83; } .cm-s-solarized .CodeMirror-widget { text-shadow: none; } .cm-s-solarized .cm-header { color: #586e75; } .cm-s-solarized .cm-quote { color: #93a1a1; } .cm-s-solarized .cm-keyword { color: #cb4b16; } .cm-s-solarized .cm-atom { color: #d33682; } .cm-s-solarized .cm-number { color: #d33682; } .cm-s-solarized .cm-def { color: #2aa198; } .cm-s-solarized .cm-variable { color: #839496; } .cm-s-solarized .cm-variable-2 { color: #b58900; } .cm-s-solarized .cm-variable-3, .cm-s-solarized .cm-type { color: #6c71c4; } .cm-s-solarized .cm-property { color: #2aa198; } .cm-s-solarized .cm-operator { color: #6c71c4; } .cm-s-solarized .cm-comment { color: #586e75; font-style:italic; } .cm-s-solarized .cm-string { color: #859900; } .cm-s-solarized .cm-string-2 { color: #b58900; } .cm-s-solarized .cm-meta { color: #859900; } .cm-s-solarized .cm-qualifier { color: #b58900; } .cm-s-solarized .cm-builtin { color: #d33682; } .cm-s-solarized .cm-bracket { color: #cb4b16; } .cm-s-solarized .CodeMirror-matchingbracket { color: #859900; } .cm-s-solarized .CodeMirror-nonmatchingbracket { color: #dc322f; } .cm-s-solarized .cm-tag { color: #93a1a1; } .cm-s-solarized .cm-attribute { color: #2aa198; } .cm-s-solarized .cm-hr { color: transparent; border-top: 1px solid #586e75; display: block; } .cm-s-solarized .cm-link { color: #93a1a1; cursor: pointer; } .cm-s-solarized .cm-special { color: #6c71c4; } .cm-s-solarized .cm-em { color: #999; text-decoration: underline; text-decoration-style: dotted; } .cm-s-solarized .cm-error, .cm-s-solarized .cm-invalidchar { color: #586e75; border-bottom: 1px dotted #dc322f; } .cm-s-solarized.cm-s-dark div.CodeMirror-selected { background: #073642; } .cm-s-solarized.cm-s-dark.CodeMirror ::selection { background: rgba(7, 54, 66, 0.99); } .cm-s-solarized.cm-s-dark .CodeMirror-line::-moz-selection, .cm-s-dark .CodeMirror-line > span::-moz-selection, .cm-s-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(7, 54, 66, 0.99); } .cm-s-solarized.cm-s-light div.CodeMirror-selected { background: #eee8d5; } .cm-s-solarized.cm-s-light .CodeMirror-line::selection, .cm-s-light .CodeMirror-line > span::selection, .cm-s-light .CodeMirror-line > span > span::selection { background: #eee8d5; } .cm-s-solarized.cm-s-light .CodeMirror-line::-moz-selection, .cm-s-light .CodeMirror-line > span::-moz-selection, .cm-s-light .CodeMirror-line > span > span::-moz-selection { background: #eee8d5; } /* Editor styling */ /* Little shadow on the view-port of the buffer view */ .cm-s-solarized.CodeMirror { -moz-box-shadow: inset 7px 0 12px -6px #000; -webkit-box-shadow: inset 7px 0 12px -6px #000; box-shadow: inset 7px 0 12px -6px #000; } /* Remove gutter border */ .cm-s-solarized .CodeMirror-gutters { border-right: 0; } /* Gutter colors and line number styling based of color scheme (dark / light) */ /* Dark */ .cm-s-solarized.cm-s-dark .CodeMirror-gutters { background-color: #073642; } .cm-s-solarized.cm-s-dark .CodeMirror-linenumber { color: #586e75; } /* Light */ .cm-s-solarized.cm-s-light .CodeMirror-gutters { background-color: #eee8d5; } .cm-s-solarized.cm-s-light .CodeMirror-linenumber { color: #839496; } /* Common */ .cm-s-solarized .CodeMirror-linenumber { padding: 0 5px; } .cm-s-solarized .CodeMirror-guttermarker-subtle { color: #586e75; } .cm-s-solarized.cm-s-dark .CodeMirror-guttermarker { color: #ddd; } .cm-s-solarized.cm-s-light .CodeMirror-guttermarker { color: #cb4b16; } .cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text { color: #586e75; } /* Cursor */ .cm-s-solarized .CodeMirror-cursor { border-left: 1px solid #819090; } /* Fat cursor */ .cm-s-solarized.cm-s-light.cm-fat-cursor .CodeMirror-cursor { background: #77ee77; } .cm-s-solarized.cm-s-light .cm-animate-fat-cursor { background-color: #77ee77; } .cm-s-solarized.cm-s-dark.cm-fat-cursor .CodeMirror-cursor { background: #586e75; } .cm-s-solarized.cm-s-dark .cm-animate-fat-cursor { background-color: #586e75; } /* Active line */ .cm-s-solarized.cm-s-dark .CodeMirror-activeline-background { background: rgba(255, 255, 255, 0.06); } .cm-s-solarized.cm-s-light .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0.06); } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/ssms.css ================================================ .cm-s-ssms span.cm-keyword { color: blue; } .cm-s-ssms span.cm-comment { color: darkgreen; } .cm-s-ssms span.cm-string { color: red; } .cm-s-ssms span.cm-def { color: black; } .cm-s-ssms span.cm-variable { color: black; } .cm-s-ssms span.cm-variable-2 { color: black; } .cm-s-ssms span.cm-atom { color: darkgray; } .cm-s-ssms .CodeMirror-linenumber { color: teal; } .cm-s-ssms .CodeMirror-activeline-background { background: #ffffff; } .cm-s-ssms span.cm-string-2 { color: #FF00FF; } .cm-s-ssms span.cm-operator, .cm-s-ssms span.cm-bracket, .cm-s-ssms span.cm-punctuation { color: darkgray; } .cm-s-ssms .CodeMirror-gutters { border-right: 3px solid #ffee62; background-color: #ffffff; } .cm-s-ssms div.CodeMirror-selected { background: #ADD6FF; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/the-matrix.css ================================================ .cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; } .cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D; } .cm-s-the-matrix .CodeMirror-line::selection, .cm-s-the-matrix .CodeMirror-line > span::selection, .cm-s-the-matrix .CodeMirror-line > span > span::selection { background: rgba(45, 45, 45, 0.99); } .cm-s-the-matrix .CodeMirror-line::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span > span::-moz-selection { background: rgba(45, 45, 45, 0.99); } .cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; } .cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; } .cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; } .cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; } .cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00; } .cm-s-the-matrix span.cm-keyword { color: #008803; font-weight: bold; } .cm-s-the-matrix span.cm-atom { color: #3FF; } .cm-s-the-matrix span.cm-number { color: #FFB94F; } .cm-s-the-matrix span.cm-def { color: #99C; } .cm-s-the-matrix span.cm-variable { color: #F6C; } .cm-s-the-matrix span.cm-variable-2 { color: #C6F; } .cm-s-the-matrix span.cm-variable-3, .cm-s-the-matrix span.cm-type { color: #96F; } .cm-s-the-matrix span.cm-property { color: #62FFA0; } .cm-s-the-matrix span.cm-operator { color: #999; } .cm-s-the-matrix span.cm-comment { color: #CCCCCC; } .cm-s-the-matrix span.cm-string { color: #39C; } .cm-s-the-matrix span.cm-meta { color: #C9F; } .cm-s-the-matrix span.cm-qualifier { color: #FFF700; } .cm-s-the-matrix span.cm-builtin { color: #30a; } .cm-s-the-matrix span.cm-bracket { color: #cc7; } .cm-s-the-matrix span.cm-tag { color: #FFBD40; } .cm-s-the-matrix span.cm-attribute { color: #FFF700; } .cm-s-the-matrix span.cm-error { color: #FF0000; } .cm-s-the-matrix .CodeMirror-activeline-background { background: #040; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/tomorrow-night-bright.css ================================================ /* Name: Tomorrow Night - Bright Author: Chris Kempson Port done by Gerard Braad */ .cm-s-tomorrow-night-bright.CodeMirror { background: #000000; color: #eaeaea; } .cm-s-tomorrow-night-bright div.CodeMirror-selected { background: #424242; } .cm-s-tomorrow-night-bright .CodeMirror-gutters { background: #000000; border-right: 0px; } .cm-s-tomorrow-night-bright .CodeMirror-guttermarker { color: #e78c45; } .cm-s-tomorrow-night-bright .CodeMirror-guttermarker-subtle { color: #777; } .cm-s-tomorrow-night-bright .CodeMirror-linenumber { color: #424242; } .cm-s-tomorrow-night-bright .CodeMirror-cursor { border-left: 1px solid #6A6A6A; } .cm-s-tomorrow-night-bright span.cm-comment { color: #d27b53; } .cm-s-tomorrow-night-bright span.cm-atom { color: #a16a94; } .cm-s-tomorrow-night-bright span.cm-number { color: #a16a94; } .cm-s-tomorrow-night-bright span.cm-property, .cm-s-tomorrow-night-bright span.cm-attribute { color: #99cc99; } .cm-s-tomorrow-night-bright span.cm-keyword { color: #d54e53; } .cm-s-tomorrow-night-bright span.cm-string { color: #e7c547; } .cm-s-tomorrow-night-bright span.cm-variable { color: #b9ca4a; } .cm-s-tomorrow-night-bright span.cm-variable-2 { color: #7aa6da; } .cm-s-tomorrow-night-bright span.cm-def { color: #e78c45; } .cm-s-tomorrow-night-bright span.cm-bracket { color: #eaeaea; } .cm-s-tomorrow-night-bright span.cm-tag { color: #d54e53; } .cm-s-tomorrow-night-bright span.cm-link { color: #a16a94; } .cm-s-tomorrow-night-bright span.cm-error { background: #d54e53; color: #6A6A6A; } .cm-s-tomorrow-night-bright .CodeMirror-activeline-background { background: #2a2a2a; } .cm-s-tomorrow-night-bright .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/tomorrow-night-eighties.css ================================================ /* Name: Tomorrow Night - Eighties Author: Chris Kempson CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ .cm-s-tomorrow-night-eighties.CodeMirror { background: #000000; color: #CCCCCC; } .cm-s-tomorrow-night-eighties div.CodeMirror-selected { background: #2D2D2D; } .cm-s-tomorrow-night-eighties .CodeMirror-line::selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span::selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span > span::selection { background: rgba(45, 45, 45, 0.99); } .cm-s-tomorrow-night-eighties .CodeMirror-line::-moz-selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span::-moz-selection, .cm-s-tomorrow-night-eighties .CodeMirror-line > span > span::-moz-selection { background: rgba(45, 45, 45, 0.99); } .cm-s-tomorrow-night-eighties .CodeMirror-gutters { background: #000000; border-right: 0px; } .cm-s-tomorrow-night-eighties .CodeMirror-guttermarker { color: #f2777a; } .cm-s-tomorrow-night-eighties .CodeMirror-guttermarker-subtle { color: #777; } .cm-s-tomorrow-night-eighties .CodeMirror-linenumber { color: #515151; } .cm-s-tomorrow-night-eighties .CodeMirror-cursor { border-left: 1px solid #6A6A6A; } .cm-s-tomorrow-night-eighties span.cm-comment { color: #d27b53; } .cm-s-tomorrow-night-eighties span.cm-atom { color: #a16a94; } .cm-s-tomorrow-night-eighties span.cm-number { color: #a16a94; } .cm-s-tomorrow-night-eighties span.cm-property, .cm-s-tomorrow-night-eighties span.cm-attribute { color: #99cc99; } .cm-s-tomorrow-night-eighties span.cm-keyword { color: #f2777a; } .cm-s-tomorrow-night-eighties span.cm-string { color: #ffcc66; } .cm-s-tomorrow-night-eighties span.cm-variable { color: #99cc99; } .cm-s-tomorrow-night-eighties span.cm-variable-2 { color: #6699cc; } .cm-s-tomorrow-night-eighties span.cm-def { color: #f99157; } .cm-s-tomorrow-night-eighties span.cm-bracket { color: #CCCCCC; } .cm-s-tomorrow-night-eighties span.cm-tag { color: #f2777a; } .cm-s-tomorrow-night-eighties span.cm-link { color: #a16a94; } .cm-s-tomorrow-night-eighties span.cm-error { background: #f2777a; color: #6A6A6A; } .cm-s-tomorrow-night-eighties .CodeMirror-activeline-background { background: #343600; } .cm-s-tomorrow-night-eighties .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/ttcn.css ================================================ .cm-s-ttcn .cm-quote { color: #090; } .cm-s-ttcn .cm-negative { color: #d44; } .cm-s-ttcn .cm-positive { color: #292; } .cm-s-ttcn .cm-header, .cm-strong { font-weight: bold; } .cm-s-ttcn .cm-em { font-style: italic; } .cm-s-ttcn .cm-link { text-decoration: underline; } .cm-s-ttcn .cm-strikethrough { text-decoration: line-through; } .cm-s-ttcn .cm-header { color: #00f; font-weight: bold; } .cm-s-ttcn .cm-atom { color: #219; } .cm-s-ttcn .cm-attribute { color: #00c; } .cm-s-ttcn .cm-bracket { color: #997; } .cm-s-ttcn .cm-comment { color: #333333; } .cm-s-ttcn .cm-def { color: #00f; } .cm-s-ttcn .cm-em { font-style: italic; } .cm-s-ttcn .cm-error { color: #f00; } .cm-s-ttcn .cm-hr { color: #999; } .cm-s-ttcn .cm-invalidchar { color: #f00; } .cm-s-ttcn .cm-keyword { font-weight:bold; } .cm-s-ttcn .cm-link { color: #00c; text-decoration: underline; } .cm-s-ttcn .cm-meta { color: #555; } .cm-s-ttcn .cm-negative { color: #d44; } .cm-s-ttcn .cm-positive { color: #292; } .cm-s-ttcn .cm-qualifier { color: #555; } .cm-s-ttcn .cm-strikethrough { text-decoration: line-through; } .cm-s-ttcn .cm-string { color: #006400; } .cm-s-ttcn .cm-string-2 { color: #f50; } .cm-s-ttcn .cm-strong { font-weight: bold; } .cm-s-ttcn .cm-tag { color: #170; } .cm-s-ttcn .cm-variable { color: #8B2252; } .cm-s-ttcn .cm-variable-2 { color: #05a; } .cm-s-ttcn .cm-variable-3, .cm-s-ttcn .cm-type { color: #085; } .cm-s-ttcn .cm-invalidchar { color: #f00; } /* ASN */ .cm-s-ttcn .cm-accessTypes, .cm-s-ttcn .cm-compareTypes { color: #27408B; } .cm-s-ttcn .cm-cmipVerbs { color: #8B2252; } .cm-s-ttcn .cm-modifier { color:#D2691E; } .cm-s-ttcn .cm-status { color:#8B4545; } .cm-s-ttcn .cm-storage { color:#A020F0; } .cm-s-ttcn .cm-tags { color:#006400; } /* CFG */ .cm-s-ttcn .cm-externalCommands { color: #8B4545; font-weight:bold; } .cm-s-ttcn .cm-fileNCtrlMaskOptions, .cm-s-ttcn .cm-sectionTitle { color: #2E8B57; font-weight:bold; } /* TTCN */ .cm-s-ttcn .cm-booleanConsts, .cm-s-ttcn .cm-otherConsts, .cm-s-ttcn .cm-verdictConsts { color: #006400; } .cm-s-ttcn .cm-configOps, .cm-s-ttcn .cm-functionOps, .cm-s-ttcn .cm-portOps, .cm-s-ttcn .cm-sutOps, .cm-s-ttcn .cm-timerOps, .cm-s-ttcn .cm-verdictOps { color: #0000FF; } .cm-s-ttcn .cm-preprocessor, .cm-s-ttcn .cm-templateMatch, .cm-s-ttcn .cm-ttcn3Macros { color: #27408B; } .cm-s-ttcn .cm-types { color: #A52A2A; font-weight:bold; } .cm-s-ttcn .cm-visibilityModifiers { font-weight:bold; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/twilight.css ================================================ .cm-s-twilight.CodeMirror { background: #141414; color: #f7f7f7; } /**/ .cm-s-twilight div.CodeMirror-selected { background: #323232; } /**/ .cm-s-twilight .CodeMirror-line::selection, .cm-s-twilight .CodeMirror-line > span::selection, .cm-s-twilight .CodeMirror-line > span > span::selection { background: rgba(50, 50, 50, 0.99); } .cm-s-twilight .CodeMirror-line::-moz-selection, .cm-s-twilight .CodeMirror-line > span::-moz-selection, .cm-s-twilight .CodeMirror-line > span > span::-moz-selection { background: rgba(50, 50, 50, 0.99); } .cm-s-twilight .CodeMirror-gutters { background: #222; border-right: 1px solid #aaa; } .cm-s-twilight .CodeMirror-guttermarker { color: white; } .cm-s-twilight .CodeMirror-guttermarker-subtle { color: #aaa; } .cm-s-twilight .CodeMirror-linenumber { color: #aaa; } .cm-s-twilight .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-twilight .cm-keyword { color: #f9ee98; } /**/ .cm-s-twilight .cm-atom { color: #FC0; } .cm-s-twilight .cm-number { color: #ca7841; } /**/ .cm-s-twilight .cm-def { color: #8DA6CE; } .cm-s-twilight span.cm-variable-2, .cm-s-twilight span.cm-tag { color: #607392; } /**/ .cm-s-twilight span.cm-variable-3, .cm-s-twilight span.cm-def, .cm-s-twilight span.cm-type { color: #607392; } /**/ .cm-s-twilight .cm-operator { color: #cda869; } /**/ .cm-s-twilight .cm-comment { color:#777; font-style:italic; font-weight:normal; } /**/ .cm-s-twilight .cm-string { color:#8f9d6a; font-style:italic; } /**/ .cm-s-twilight .cm-string-2 { color:#bd6b18; } /*?*/ .cm-s-twilight .cm-meta { background-color:#141414; color:#f7f7f7; } /*?*/ .cm-s-twilight .cm-builtin { color: #cda869; } /*?*/ .cm-s-twilight .cm-tag { color: #997643; } /**/ .cm-s-twilight .cm-attribute { color: #d6bb6d; } /*?*/ .cm-s-twilight .cm-header { color: #FF6400; } .cm-s-twilight .cm-hr { color: #AEAEAE; } .cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/ .cm-s-twilight .cm-error { border-bottom: 1px solid red; } .cm-s-twilight .CodeMirror-activeline-background { background: #27282E; } .cm-s-twilight .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/vibrant-ink.css ================================================ /* Taken from the popular Visual Studio Vibrant Ink Schema */ .cm-s-vibrant-ink.CodeMirror { background: black; color: white; } .cm-s-vibrant-ink div.CodeMirror-selected { background: #35493c; } .cm-s-vibrant-ink .CodeMirror-line::selection, .cm-s-vibrant-ink .CodeMirror-line > span::selection, .cm-s-vibrant-ink .CodeMirror-line > span > span::selection { background: rgba(53, 73, 60, 0.99); } .cm-s-vibrant-ink .CodeMirror-line::-moz-selection, .cm-s-vibrant-ink .CodeMirror-line > span::-moz-selection, .cm-s-vibrant-ink .CodeMirror-line > span > span::-moz-selection { background: rgba(53, 73, 60, 0.99); } .cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } .cm-s-vibrant-ink .CodeMirror-guttermarker { color: white; } .cm-s-vibrant-ink .CodeMirror-guttermarker-subtle { color: #d0d0d0; } .cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; } .cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-vibrant-ink .cm-keyword { color: #CC7832; } .cm-s-vibrant-ink .cm-atom { color: #FC0; } .cm-s-vibrant-ink .cm-number { color: #FFEE98; } .cm-s-vibrant-ink .cm-def { color: #8DA6CE; } .cm-s-vibrant-ink span.cm-variable-2, .cm-s-vibrant span.cm-tag { color: #FFC66D; } .cm-s-vibrant-ink span.cm-variable-3, .cm-s-vibrant span.cm-def, .cm-s-vibrant span.cm-type { color: #FFC66D; } .cm-s-vibrant-ink .cm-operator { color: #888; } .cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; } .cm-s-vibrant-ink .cm-string { color: #A5C25C; } .cm-s-vibrant-ink .cm-string-2 { color: red; } .cm-s-vibrant-ink .cm-meta { color: #D8FA3C; } .cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; } .cm-s-vibrant-ink .cm-tag { color: #8DA6CE; } .cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; } .cm-s-vibrant-ink .cm-header { color: #FF6400; } .cm-s-vibrant-ink .cm-hr { color: #AEAEAE; } .cm-s-vibrant-ink .cm-link { color: #5656F3; } .cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; } .cm-s-vibrant-ink .CodeMirror-activeline-background { background: #27282E; } .cm-s-vibrant-ink .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/xq-dark.css ================================================ /* Copyright (C) 2011 by MarkLogic Corporation Author: Mike Brevoort Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ .cm-s-xq-dark.CodeMirror { background: #0a001f; color: #f8f8f8; } .cm-s-xq-dark div.CodeMirror-selected { background: #27007A; } .cm-s-xq-dark .CodeMirror-line::selection, .cm-s-xq-dark .CodeMirror-line > span::selection, .cm-s-xq-dark .CodeMirror-line > span > span::selection { background: rgba(39, 0, 122, 0.99); } .cm-s-xq-dark .CodeMirror-line::-moz-selection, .cm-s-xq-dark .CodeMirror-line > span::-moz-selection, .cm-s-xq-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(39, 0, 122, 0.99); } .cm-s-xq-dark .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } .cm-s-xq-dark .CodeMirror-guttermarker { color: #FFBD40; } .cm-s-xq-dark .CodeMirror-guttermarker-subtle { color: #f8f8f8; } .cm-s-xq-dark .CodeMirror-linenumber { color: #f8f8f8; } .cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-xq-dark span.cm-keyword { color: #FFBD40; } .cm-s-xq-dark span.cm-atom { color: #6C8CD5; } .cm-s-xq-dark span.cm-number { color: #164; } .cm-s-xq-dark span.cm-def { color: #FFF; text-decoration:underline; } .cm-s-xq-dark span.cm-variable { color: #FFF; } .cm-s-xq-dark span.cm-variable-2 { color: #EEE; } .cm-s-xq-dark span.cm-variable-3, .cm-s-xq-dark span.cm-type { color: #DDD; } .cm-s-xq-dark span.cm-property {} .cm-s-xq-dark span.cm-operator {} .cm-s-xq-dark span.cm-comment { color: gray; } .cm-s-xq-dark span.cm-string { color: #9FEE00; } .cm-s-xq-dark span.cm-meta { color: yellow; } .cm-s-xq-dark span.cm-qualifier { color: #FFF700; } .cm-s-xq-dark span.cm-builtin { color: #30a; } .cm-s-xq-dark span.cm-bracket { color: #cc7; } .cm-s-xq-dark span.cm-tag { color: #FFBD40; } .cm-s-xq-dark span.cm-attribute { color: #FFF700; } .cm-s-xq-dark span.cm-error { color: #f00; } .cm-s-xq-dark .CodeMirror-activeline-background { background: #27282E; } .cm-s-xq-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/xq-light.css ================================================ /* Copyright (C) 2011 by MarkLogic Corporation Author: Mike Brevoort Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ .cm-s-xq-light span.cm-keyword { line-height: 1em; font-weight: bold; color: #5A5CAD; } .cm-s-xq-light span.cm-atom { color: #6C8CD5; } .cm-s-xq-light span.cm-number { color: #164; } .cm-s-xq-light span.cm-def { text-decoration:underline; } .cm-s-xq-light span.cm-variable { color: black; } .cm-s-xq-light span.cm-variable-2 { color:black; } .cm-s-xq-light span.cm-variable-3, .cm-s-xq-light span.cm-type { color: black; } .cm-s-xq-light span.cm-property {} .cm-s-xq-light span.cm-operator {} .cm-s-xq-light span.cm-comment { color: #0080FF; font-style: italic; } .cm-s-xq-light span.cm-string { color: red; } .cm-s-xq-light span.cm-meta { color: yellow; } .cm-s-xq-light span.cm-qualifier { color: grey; } .cm-s-xq-light span.cm-builtin { color: #7EA656; } .cm-s-xq-light span.cm-bracket { color: #cc7; } .cm-s-xq-light span.cm-tag { color: #3F7F7F; } .cm-s-xq-light span.cm-attribute { color: #7F007F; } .cm-s-xq-light span.cm-error { color: #f00; } .cm-s-xq-light .CodeMirror-activeline-background { background: #e8f2ff; } .cm-s-xq-light .CodeMirror-matchingbracket { outline:1px solid grey;color:black !important;background:yellow; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/yeti.css ================================================ /* Name: yeti Author: Michael Kaminsky (http://github.com/mkaminsky11) Original yeti color scheme by Jesse Weed (https://github.com/jesseweed/yeti-syntax) */ .cm-s-yeti.CodeMirror { background-color: #ECEAE8 !important; color: #d1c9c0 !important; border: none; } .cm-s-yeti .CodeMirror-gutters { color: #adaba6; background-color: #E5E1DB; border: none; } .cm-s-yeti .CodeMirror-cursor { border-left: solid thin #d1c9c0; } .cm-s-yeti .CodeMirror-linenumber { color: #adaba6; } .cm-s-yeti.CodeMirror-focused div.CodeMirror-selected { background: #DCD8D2; } .cm-s-yeti .CodeMirror-line::selection, .cm-s-yeti .CodeMirror-line > span::selection, .cm-s-yeti .CodeMirror-line > span > span::selection { background: #DCD8D2; } .cm-s-yeti .CodeMirror-line::-moz-selection, .cm-s-yeti .CodeMirror-line > span::-moz-selection, .cm-s-yeti .CodeMirror-line > span > span::-moz-selection { background: #DCD8D2; } .cm-s-yeti span.cm-comment { color: #d4c8be; } .cm-s-yeti span.cm-string, .cm-s-yeti span.cm-string-2 { color: #96c0d8; } .cm-s-yeti span.cm-number { color: #a074c4; } .cm-s-yeti span.cm-variable { color: #55b5db; } .cm-s-yeti span.cm-variable-2 { color: #a074c4; } .cm-s-yeti span.cm-def { color: #55b5db; } .cm-s-yeti span.cm-operator { color: #9fb96e; } .cm-s-yeti span.cm-keyword { color: #9fb96e; } .cm-s-yeti span.cm-atom { color: #a074c4; } .cm-s-yeti span.cm-meta { color: #96c0d8; } .cm-s-yeti span.cm-tag { color: #96c0d8; } .cm-s-yeti span.cm-attribute { color: #9fb96e; } .cm-s-yeti span.cm-qualifier { color: #96c0d8; } .cm-s-yeti span.cm-property { color: #a074c4; } .cm-s-yeti span.cm-builtin { color: #a074c4; } .cm-s-yeti span.cm-variable-3, .cm-s-yeti span.cm-type { color: #96c0d8; } .cm-s-yeti .CodeMirror-activeline-background { background: #E7E4E0; } .cm-s-yeti .CodeMirror-matchingbracket { text-decoration: underline; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/yonce.css ================================================ /* Name: yoncé Author: Thomas MacLean (http://github.com/thomasmaclean) Original yoncé color scheme by Mina Markham (https://github.com/minamarkham) */ .cm-s-yonce.CodeMirror { background: #1C1C1C; color: #d4d4d4; } /**/ .cm-s-yonce div.CodeMirror-selected { background: rgba(252, 69, 133, 0.478); } /**/ .cm-s-yonce .CodeMirror-selectedtext, .cm-s-yonce .CodeMirror-selected, .cm-s-yonce .CodeMirror-line::selection, .cm-s-yonce .CodeMirror-line > span::selection, .cm-s-yonce .CodeMirror-line > span > span::selection, .cm-s-yonce .CodeMirror-line::-moz-selection, .cm-s-yonce .CodeMirror-line > span::-moz-selection, .cm-s-yonce .CodeMirror-line > span > span::-moz-selection { background: rgba(252, 67, 132, 0.47); } .cm-s-yonce.CodeMirror pre { padding-left: 0px; } .cm-s-yonce .CodeMirror-gutters {background: #1C1C1C; border-right: 0px;} .cm-s-yonce .CodeMirror-linenumber {color: #777777; padding-right: 10px; } .cm-s-yonce .CodeMirror-activeline .CodeMirror-linenumber.CodeMirror-gutter-elt { background: #1C1C1C; color: #fc4384; } .cm-s-yonce .CodeMirror-linenumber { color: #777; } .cm-s-yonce .CodeMirror-cursor { border-left: 2px solid #FC4384; } .cm-s-yonce .cm-searching { background: rgba(243, 155, 53, .3) !important; outline: 1px solid #F39B35; } .cm-s-yonce .cm-searching.CodeMirror-selectedtext { background: rgba(243, 155, 53, .7) !important; color: white; } .cm-s-yonce .cm-keyword { color: #00A7AA; } /**/ .cm-s-yonce .cm-atom { color: #F39B35; } .cm-s-yonce .cm-number, .cm-s-yonce span.cm-type { color: #A06FCA; } /**/ .cm-s-yonce .cm-def { color: #98E342; } .cm-s-yonce .cm-property, .cm-s-yonce span.cm-variable { color: #D4D4D4; font-style: italic; } .cm-s-yonce span.cm-variable-2 { color: #da7dae; font-style: italic; } .cm-s-yonce span.cm-variable-3 { color: #A06FCA; } .cm-s-yonce .cm-type.cm-def { color: #FC4384; font-style: normal; text-decoration: underline; } .cm-s-yonce .cm-property.cm-def { color: #FC4384; font-style: normal; } .cm-s-yonce .cm-callee { color: #FC4384; font-style: normal; } .cm-s-yonce .cm-operator { color: #FC4384; } /**/ .cm-s-yonce .cm-qualifier, .cm-s-yonce .cm-tag { color: #FC4384; } .cm-s-yonce .cm-tag.cm-bracket { color: #D4D4D4; } .cm-s-yonce .cm-attribute { color: #A06FCA; } .cm-s-yonce .cm-comment { color:#696d70; font-style:italic; font-weight:normal; } /**/ .cm-s-yonce .cm-comment.cm-tag { color: #FC4384 } .cm-s-yonce .cm-comment.cm-attribute { color: #D4D4D4; } .cm-s-yonce .cm-string { color:#E6DB74; } /**/ .cm-s-yonce .cm-string-2 { color:#F39B35; } /*?*/ .cm-s-yonce .cm-meta { color: #D4D4D4; background: inherit; } .cm-s-yonce .cm-builtin { color: #FC4384; } /*?*/ .cm-s-yonce .cm-header { color: #da7dae; } .cm-s-yonce .cm-hr { color: #98E342; } .cm-s-yonce .cm-link { color:#696d70; font-style:italic; text-decoration:none; } /**/ .cm-s-yonce .cm-error { border-bottom: 1px solid #C42412; } .cm-s-yonce .CodeMirror-activeline-background { background: #272727; } .cm-s-yonce .CodeMirror-matchingbracket { outline:1px solid grey; color:#D4D4D4 !important; } ================================================ FILE: _files/assets/codemirror@6.65.7/theme/zenburn.css ================================================ /** * " * Using Zenburn color palette from the Emacs Zenburn Theme * https://github.com/bbatsov/zenburn-emacs/blob/master/zenburn-theme.el * * Also using parts of https://github.com/xavi/coderay-lighttable-theme * " * From: https://github.com/wisenomad/zenburn-lighttable-theme/blob/master/zenburn.css */ .cm-s-zenburn .CodeMirror-gutters { background: #3f3f3f !important; } .cm-s-zenburn .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded { color: #999; } .cm-s-zenburn .CodeMirror-cursor { border-left: 1px solid white; } .cm-s-zenburn.CodeMirror { background-color: #3f3f3f; color: #dcdccc; } .cm-s-zenburn span.cm-builtin { color: #dcdccc; font-weight: bold; } .cm-s-zenburn span.cm-comment { color: #7f9f7f; } .cm-s-zenburn span.cm-keyword { color: #f0dfaf; font-weight: bold; } .cm-s-zenburn span.cm-atom { color: #bfebbf; } .cm-s-zenburn span.cm-def { color: #dcdccc; } .cm-s-zenburn span.cm-variable { color: #dfaf8f; } .cm-s-zenburn span.cm-variable-2 { color: #dcdccc; } .cm-s-zenburn span.cm-string { color: #cc9393; } .cm-s-zenburn span.cm-string-2 { color: #cc9393; } .cm-s-zenburn span.cm-number { color: #dcdccc; } .cm-s-zenburn span.cm-tag { color: #93e0e3; } .cm-s-zenburn span.cm-property { color: #dfaf8f; } .cm-s-zenburn span.cm-attribute { color: #dfaf8f; } .cm-s-zenburn span.cm-qualifier { color: #7cb8bb; } .cm-s-zenburn span.cm-meta { color: #f0dfaf; } .cm-s-zenburn span.cm-header { color: #f0efd0; } .cm-s-zenburn span.cm-operator { color: #f0efd0; } .cm-s-zenburn span.CodeMirror-matchingbracket { box-sizing: border-box; background: transparent; border-bottom: 1px solid; } .cm-s-zenburn span.CodeMirror-nonmatchingbracket { border-bottom: 1px solid; background: none; } .cm-s-zenburn .CodeMirror-activeline { background: #000000; } .cm-s-zenburn .CodeMirror-activeline-background { background: #000000; } .cm-s-zenburn div.CodeMirror-selected { background: #545454; } .cm-s-zenburn .CodeMirror-focused div.CodeMirror-selected { background: #4f4f4f; } ================================================ FILE: _files/assets/dayjs@1.11.13/LICENSE ================================================ MIT License Copyright (c) 2018-present, iamkun Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/dayjs@1.11.13/locale/af.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_af=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(e),t={name:"af",weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),weekStart:1,weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"}};return n.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/am.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_am=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"am",weekdays:"እሑድ_ሰኞ_ማክሰኞ_ረቡዕ_ሐሙስ_አርብ_ቅዳሜ".split("_"),weekdaysShort:"እሑድ_ሰኞ_ማክሰ_ረቡዕ_ሐሙስ_አርብ_ቅዳሜ".split("_"),weekdaysMin:"እሑ_ሰኞ_ማክ_ረቡ_ሐሙ_አር_ቅዳ".split("_"),months:"ጃንዋሪ_ፌብሯሪ_ማርች_ኤፕሪል_ሜይ_ጁን_ጁላይ_ኦገስት_ሴፕቴምበር_ኦክቶበር_ኖቬምበር_ዲሴምበር".split("_"),monthsShort:"ጃንዋ_ፌብሯ_ማርች_ኤፕሪ_ሜይ_ጁን_ጁላይ_ኦገስ_ሴፕቴ_ኦክቶ_ኖቬም_ዲሴም".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"በ%s",past:"%s በፊት",s:"ጥቂት ሰከንዶች",m:"አንድ ደቂቃ",mm:"%d ደቂቃዎች",h:"አንድ ሰዓት",hh:"%d ሰዓታት",d:"አንድ ቀን",dd:"%d ቀናት",M:"አንድ ወር",MM:"%d ወራት",y:"አንድ ዓመት",yy:"%d ዓመታት"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM D ፣ YYYY",LLL:"MMMM D ፣ YYYY HH:mm",LLLL:"dddd ፣ MMMM D ፣ YYYY HH:mm"},ordinal:function(e){return e+"ኛ"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ar-dz.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ar_dz=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-dz",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ar-iq.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar_iq=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"ar-iq",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"كانون الثاني_شباط_آذار_نيسان_أيار_حزيران_تموز_آب_أيلول_تشرين الأول_ تشرين الثاني_كانون الأول".split("_"),weekStart:1,weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"كانون الثاني_شباط_آذار_نيسان_أيار_حزيران_تموز_آب_أيلول_تشرين الأول_ تشرين الثاني_كانون الأول".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ar-kw.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ar_kw=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-kw",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ar-ly.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ar_ly=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"ar-ly",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekStart:6,weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(_){return _},meridiem:function(_){return _>12?"م":"ص"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return t.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ar-ma.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar_ma=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"ar-ma",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekStart:6,weekdaysShort:"احد_إثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ar-sa.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ar_sa=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ar-sa",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(_){return _>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ar-tn.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar_tn=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"ar-tn",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekStart:1,weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ar.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),d={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},_={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},o={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:r,monthsShort:r,weekStart:6,meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return _[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return d[e]})).replace(/,/g,"،")},ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return n.default.locale(o,null,!0),o})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/az.js ================================================ !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_az=e(a.dayjs)}(this,(function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var _=e(a),t={name:"az",weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},ordinal:function(a){return a}};return _.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/be.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_be=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"be",weekdays:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),months:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),weekStart:1,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"}};return t.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/bg.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bg=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"bg",weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekStart:1,ordinal:function(e){var _=e%100;if(_>10&&_<20)return e+"-ти";var t=e%10;return 1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/bi.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bi=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(e),_={name:"bi",weekdays:"Sande_Mande_Tusde_Wenesde_Tosde_Fraede_Sarade".split("_"),months:"Januari_Februari_Maj_Eprel_Mei_Jun_Julae_Okis_Septemba_Oktoba_Novemba_Disemba".split("_"),weekStart:1,weekdaysShort:"San_Man_Tus_Wen_Tos_Frae_Sar".split("_"),monthsShort:"Jan_Feb_Maj_Epr_Mai_Jun_Jul_Oki_Sep_Okt_Nov_Dis".split("_"),weekdaysMin:"San_Ma_Tu_We_To_Fr_Sar".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"lo %s",past:"%s bifo",s:"sam seken",m:"wan minit",mm:"%d minit",h:"wan haoa",hh:"%d haoa",d:"wan dei",dd:"%d dei",M:"wan manis",MM:"%d manis",y:"wan yia",yy:"%d yia"}};return n.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/bm.js ================================================ !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_bm=e(a.dayjs)}(this,(function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var l=e(a),t={name:"bm",weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),weekStart:1,weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"}};return l.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/bn-bd.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bn_bd=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),n={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},d={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},r={name:"bn-bd",weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),weekStart:0,preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return d[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return n[e]}))},ordinal:function(e){var t=["ই","লা","রা","ঠা","শে"],_=e%100;return"["+e+(t[(_-20)%10]||t[_]||t[0])+"]"},formats:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY খ্রিস্টাব্দ",LL:"D MMMM YYYY খ্রিস্টাব্দ",LLL:"D MMMM YYYY খ্রিস্টাব্দ, A h:mm সময়",LLLL:"dddd, D MMMM YYYY খ্রিস্টাব্দ, A h:mm সময়"},meridiem:function(e){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"}};return _.default.locale(r,null,!0),r})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/bn.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bn=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),n={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},d={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},o={name:"bn",weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return d[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return n[e]}))},ordinal:function(e){return e},formats:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"}};return t.default.locale(o,null,!0),o})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/bo.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_bo=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"bo",weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་དང་པོ_ཟླ་གཉིས་པ_ཟླ་གསུམ་པ_ཟླ་བཞི་པ_ཟླ་ལྔ་པ_ཟླ་དྲུག་པ_ཟླ་བདུན་པ_ཟླ་བརྒྱད་པ_ཟླ་དགུ་པ_ཟླ་བཅུ་པ_ཟླ་བཅུ་གཅིག་པ_ཟླ་བཅུ་གཉིས་པ".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},relativeTime:{future:"%s ལ་",past:"%s སྔོན་ལ་",s:"ཏོག་ཙམ་",m:"སྐར་མ་གཅིག་",mm:"སྐར་མ་ %d",h:"ཆུ་ཚོད་གཅིག་",hh:"ཆུ་ཚོད་ %d",d:"ཉིན་གཅིག་",dd:"ཉིན་ %d",M:"ཟླ་བ་གཅིག་",MM:"ཟླ་བ་ %d",y:"ལོ་གཅིག་",yy:"ལོ་ %d"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/br.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_br=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(e);function r(e){return e>9?r(e%10):e}function t(e,n,u){return e+" "+function(e,n){return 2===n?function(e){return{m:"v",b:"v",d:"z"}[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[u],e)}var o={name:"br",weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),weekStart:1,weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},meridiem:function(e){return e<12?"a.m.":"g.m."}};return u.default.locale(o,null,!0),o})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/bs.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bs=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),a={name:"bs",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),weekStart:1,weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return _.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ca.js ================================================ !function(e,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],s):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ca=s(e.dayjs)}(this,(function(e){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=s(e),_={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Març_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){return""+e+(1===e||3===e?"r":2===e?"n":4===e?"t":"è")}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/cs.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_cs=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e);function s(e){return e>1&&e<5&&1!=~~(e/10)}function r(e,n,t,r){var d=e+" ";switch(t){case"s":return n||r?"pár sekund":"pár sekundami";case"m":return n?"minuta":r?"minutu":"minutou";case"mm":return n||r?d+(s(e)?"minuty":"minut"):d+"minutami";case"h":return n?"hodina":r?"hodinu":"hodinou";case"hh":return n||r?d+(s(e)?"hodiny":"hodin"):d+"hodinami";case"d":return n||r?"den":"dnem";case"dd":return n||r?d+(s(e)?"dny":"dní"):d+"dny";case"M":return n||r?"měsíc":"měsícem";case"MM":return n||r?d+(s(e)?"měsíce":"měsíců"):d+"měsíci";case"y":return n||r?"rok":"rokem";case"yy":return n||r?d+(s(e)?"roky":"let"):d+"lety"}}var d={name:"cs",weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"před %s",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/cv.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_cv=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"cv",weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),weekStart:1,weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"}};return t.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/cy.js ================================================ !function(d,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(d="undefined"!=typeof globalThis?globalThis:d||self).dayjs_locale_cy=e(d.dayjs)}(this,(function(d){"use strict";function e(d){return d&&"object"==typeof d&&"default"in d?d:{default:d}}var _=e(d),a={name:"cy",weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),weekStart:1,weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),ordinal:function(d){return d},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"}};return _.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/da.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_da=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=t(e),a={name:"da",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn._man._tirs._ons._tors._fre._lør.".split("_"),weekdaysMin:"sø._ma._ti._on._to._fr._lø.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"}};return d.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/de-at.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_de_at=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),i={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(e,n,t){var a=i[t];return Array.isArray(a)&&(a=a[n?0:1]),a.replace("%d",e)}var r={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return t.default.locale(r,null,!0),r})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/de-ch.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_de_ch=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(e,n,t){var i=a[t];return Array.isArray(i)&&(i=i[n?0:1]),i.replace("%d",e)}var r={name:"de-ch",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return t.default.locale(r,null,!0),r})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/de.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_de=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(e,n,t){var i=a[t];return Array.isArray(i)&&(i=i[n?0:1]),i.replace("%d",e)}var r={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return t.default.locale(r,null,!0),r})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/dv.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_dv=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"dv",weekdays:"އާދިއްތަ_ހޯމަ_އަންގާރަ_ބުދަ_ބުރާސްފަތި_ހުކުރު_ހޮނިހިރު".split("_"),months:"ޖެނުއަރީ_ފެބްރުއަރީ_މާރިޗު_އޭޕްރީލު_މޭ_ޖޫން_ޖުލައި_އޯގަސްޓު_ސެޕްޓެމްބަރު_އޮކްޓޯބަރު_ނޮވެމްބަރު_ޑިސެމްބަރު".split("_"),weekStart:7,weekdaysShort:"އާދިއްތަ_ހޯމަ_އަންގާރަ_ބުދަ_ބުރާސްފަތި_ހުކުރު_ހޮނިހިރު".split("_"),monthsShort:"ޖެނުއަރީ_ފެބްރުއަރީ_މާރިޗު_އޭޕްރީލު_މޭ_ޖޫން_ޖުލައި_އޯގަސްޓު_ސެޕްޓެމްބަރު_އޮކްޓޯބަރު_ނޮވެމްބަރު_ޑިސެމްބަރު".split("_"),weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/el.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_el=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"el",weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),months:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαι_Ιουν_Ιουλ_Αυγ_Σεπτ_Οκτ_Νοε_Δεκ".split("_"),ordinal:function(e){return e},weekStart:1,relativeTime:{future:"σε %s",past:"πριν %s",s:"μερικά δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένα μήνα",MM:"%d μήνες",y:"ένα χρόνο",yy:"%d χρόνια"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/en-au.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_au=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),_={name:"en-au",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/en-ca.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_ca=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),t={name:"en-ca",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return _.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/en-gb.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_gb=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),_={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var a=["th","st","nd","rd"],t=e%100;return"["+e+(a[(t-20)%10]||a[t]||a[0])+"]"}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/en-ie.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_ie=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),_={name:"en-ie",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/en-il.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_il=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=a(e),t={name:"en-il",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return _.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/en-in.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_in=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),n={name:"en-in",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var a=["th","st","nd","rd"],t=e%100;return"["+e+(a[(t-20)%10]||a[t]||a[0])+"]"}};return t.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/en-nz.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_nz=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),n={name:"en-nz",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){var a=["th","st","nd","rd"],t=e%100;return"["+e+(a[(t-20)%10]||a[t]||a[0])+"]"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return t.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/en-sg.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_sg=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),_={name:"en-sg",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/en-tt.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_tt=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e),_={name:"en-tt",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],a=e%100;return"["+e+(t[(a-20)%10]||t[a]||t[0])+"]"}};return a.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/en.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en=n()}(this,(function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],t=e%100;return"["+e+(n[(t-20)%10]||n[t]||n[0])+"]"}}})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/eo.js ================================================ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_eo=o(e.dayjs)}(this,(function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e),t={name:"eo",weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),weekStart:1,weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"}};return a.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/es-do.js ================================================ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_es_do=o(e.dayjs)}(this,(function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),d={name:"es-do",weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekStart:1,relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"}};return s.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/es-mx.js ================================================ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_es_mx=o(e.dayjs)}(this,(function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),d={name:"es-mx",weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"}};return s.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/es-pr.js ================================================ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_es_pr=o(e.dayjs)}(this,(function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),d={name:"es-pr",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"}};return s.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/es-us.js ================================================ !function(e,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],s):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_es_us=s(e.dayjs)}(this,(function(e){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=s(e),d={name:"es-us",weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"}};return o.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/es.js ================================================ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_es=o(e.dayjs)}(this,(function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),d={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"}};return s.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/et.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_et=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e);function u(e,a,t,u){var s={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:["%d minuti","%d minutit"],h:["ühe tunni","tund aega","üks tund"],hh:["%d tunni","%d tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:["%d kuu","%d kuud"],y:["ühe aasta","aasta","üks aasta"],yy:["%d aasta","%d aastat"]};return a?(s[t][2]?s[t][2]:s[t][1]).replace("%d",e):(u?s[t][0]:s[t][1]).replace("%d",e)}var s={name:"et",weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s pärast",past:"%s tagasi",s:u,m:u,mm:u,h:u,hh:u,d:u,dd:"%d päeva",M:u,MM:u,y:u,yy:u},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return t.default.locale(s,null,!0),s})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/eu.js ================================================ !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_eu=e(a.dayjs)}(this,(function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var t=e(a),l={name:"eu",weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),weekStart:1,weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"}};return t.default.locale(l,null,!0),l})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/fa.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_fa=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"fa",weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekStart:6,months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/fi.js ================================================ !function(u,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(u="undefined"!=typeof globalThis?globalThis:u||self).dayjs_locale_fi=e(u.dayjs)}(this,(function(u){"use strict";function e(u){return u&&"object"==typeof u&&"default"in u?u:{default:u}}var t=e(u);function n(u,e,t,n){var i={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"päivä",dd:"%d päivää",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän".split("_")},a={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"päivän",dd:"%d päivän",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän".split("_")},s=n&&!e?a:i,_=s[t];return u<10?_.replace("%d",s.numbers[u]):_.replace("%d",u)}var i={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s päästä",past:"%s sitten",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};return t.default.locale(i,null,!0),i})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/fo.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fo=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e),r={name:"fo",weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),weekStart:1,weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"}};return a.default.locale(r,null,!0),r})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/fr-ca.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fr_ca=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e),_={name:"fr-ca",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};return i.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/fr-ch.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fr_ch=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e),_={name:"fr-ch",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),weekStart:1,weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};return i.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/fr.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fr=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),i={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return""+e+(1===e?"er":"")}};return t.default.locale(i,null,!0),i})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/fy.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fy=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e),t={name:"fy",weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),weekStart:1,weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"}};return i.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ga.js ================================================ !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_ga=e(a.dayjs)}(this,(function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var i=e(a),n={name:"ga",weekdays:"Dé Domhnaigh_Dé Luain_Dé Máirt_Dé Céadaoin_Déardaoin_Dé hAoine_Dé Satharn".split("_"),months:"Eanáir_Feabhra_Márta_Aibreán_Bealtaine_Méitheamh_Iúil_Lúnasa_Meán Fómhair_Deaireadh Fómhair_Samhain_Nollaig".split("_"),weekStart:1,weekdaysShort:"Dom_Lua_Mái_Céa_Déa_hAo_Sat".split("_"),monthsShort:"Eaná_Feab_Márt_Aibr_Beal_Méit_Iúil_Lúna_Meán_Deai_Samh_Noll".split("_"),weekdaysMin:"Do_Lu_Má_Ce_Dé_hA_Sa".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"}};return i.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/gd.js ================================================ !function(a,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],i):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_gd=i(a.dayjs)}(this,(function(a){"use strict";function i(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var n=i(a),e={name:"gd",weekdays:"Didòmhnaich_Diluain_Dimàirt_Diciadain_Diardaoin_Dihaoine_Disathairne".split("_"),months:"Am Faoilleach_An Gearran_Am Màrt_An Giblean_An Cèitean_An t-Ògmhios_An t-Iuchar_An Lùnastal_An t-Sultain_An Dàmhair_An t-Samhain_An Dùbhlachd".split("_"),weekStart:1,weekdaysShort:"Did_Dil_Dim_Dic_Dia_Dih_Dis".split("_"),monthsShort:"Faoi_Gear_Màrt_Gibl_Cèit_Ògmh_Iuch_Lùn_Sult_Dàmh_Samh_Dùbh".split("_"),weekdaysMin:"Dò_Lu_Mà_Ci_Ar_Ha_Sa".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"}};return n.default.locale(e,null,!0),e})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/gl.js ================================================ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_gl=o(e.dayjs)}(this,(function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),d={name:"gl",weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),weekStart:1,weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),ordinal:function(e){return e+"º"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"fai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"}};return s.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/gom-latn.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_gom_latn=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e),_={name:"gom-latn",weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),weekStart:1,weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),ordinal:function(e){return e},formats:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"}};return a.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/gu.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_gu=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"gu",weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/he.js ================================================ !function(Y,M){"object"==typeof exports&&"undefined"!=typeof module?module.exports=M(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],M):(Y="undefined"!=typeof globalThis?globalThis:Y||self).dayjs_locale_he=M(Y.dayjs)}(this,(function(Y){"use strict";function M(Y){return Y&&"object"==typeof Y&&"default"in Y?Y:{default:Y}}var d=M(Y),e={s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:"%d שעות",hh2:"שעתיים",d:"יום",dd:"%d ימים",dd2:"יומיים",M:"חודש",MM:"%d חודשים",MM2:"חודשיים",y:"שנה",yy:"%d שנים",yy2:"שנתיים"};function _(Y,M,d){return(e[d+(2===Y?"2":"")]||e[d]).replace("%d",Y)}var l={name:"he",weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳".split("_"),months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ".split("_"),relativeTime:{future:"בעוד %s",past:"לפני %s",s:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_},ordinal:function(Y){return Y},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"}};return d.default.locale(l,null,!0),l})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/hi.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_hi=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"hi",weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/hr.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_hr=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),s="siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),n="siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),_=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,o=function(e,a){return _.test(a)?s[e.month()]:n[e.month()]};o.s=n,o.f=s;var i={name:"hr",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),months:o,monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},relativeTime:{future:"za %s",past:"prije %s",s:"sekunda",m:"minuta",mm:"%d minuta",h:"sat",hh:"%d sati",d:"dan",dd:"%d dana",M:"mjesec",MM:"%d mjeseci",y:"godina",yy:"%d godine"},ordinal:function(e){return e+"."}};return t.default.locale(i,null,!0),i})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ht.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ht=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=n(e),a={name:"ht",weekdays:"dimanch_lendi_madi_mèkredi_jedi_vandredi_samdi".split("_"),months:"janvye_fevriye_mas_avril_me_jen_jiyè_out_septanm_oktòb_novanm_desanm".split("_"),weekdaysShort:"dim._len._mad._mèk._jed._van._sam.".split("_"),monthsShort:"jan._fev._mas_avr._me_jen_jiyè._out_sept._okt._nov._des.".split("_"),weekdaysMin:"di_le_ma_mè_je_va_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"nan %s",past:"sa gen %s",s:"kèk segond",m:"yon minit",mm:"%d minit",h:"inèdtan",hh:"%d zè",d:"yon jou",dd:"%d jou",M:"yon mwa",MM:"%d mwa",y:"yon ane",yy:"%d ane"}};return d.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/hu.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_hu=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),r={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(e,n,t,r){return"néhány másodperc"+(r||n?"":"e")},m:function(e,n,t,r){return"egy perc"+(r||n?"":"e")},mm:function(e,n,t,r){return e+" perc"+(r||n?"":"e")},h:function(e,n,t,r){return"egy "+(r||n?"óra":"órája")},hh:function(e,n,t,r){return e+" "+(r||n?"óra":"órája")},d:function(e,n,t,r){return"egy "+(r||n?"nap":"napja")},dd:function(e,n,t,r){return e+" "+(r||n?"nap":"napja")},M:function(e,n,t,r){return"egy "+(r||n?"hónap":"hónapja")},MM:function(e,n,t,r){return e+" "+(r||n?"hónap":"hónapja")},y:function(e,n,t,r){return"egy "+(r||n?"év":"éve")},yy:function(e,n,t,r){return e+" "+(r||n?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return t.default.locale(r,null,!0),r})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/hy-am.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_hy_am=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"hy-am",weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),months:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),weekStart:1,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/id.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_id=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),_={name:"id",weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(e){return e+"."}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/index.d.ts ================================================ /// declare module 'dayjs/locale/*' { namespace locale { interface Locale extends ILocale {} } const locale: locale.Locale export = locale } ================================================ FILE: _files/assets/dayjs@1.11.13/locale/is.js ================================================ !function(u,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],r):(u="undefined"!=typeof globalThis?globalThis:u||self).dayjs_locale_is=r(u.dayjs)}(this,(function(u){"use strict";function r(u){return u&&"object"==typeof u&&"default"in u?u:{default:u}}var n=r(u),e={s:["nokkrar sekúndur","nokkrar sekúndur","nokkrum sekúndum"],m:["mínúta","mínútu","mínútu"],mm:["mínútur","mínútur","mínútum"],h:["klukkustund","klukkustund","klukkustund"],hh:["klukkustundir","klukkustundir","klukkustundum"],d:["dagur","dag","degi"],dd:["dagar","daga","dögum"],M:["mánuður","mánuð","mánuði"],MM:["mánuðir","mánuði","mánuðum"],y:["ár","ár","ári"],yy:["ár","ár","árum"]};function t(u,r,n,t){var a=function(u,r,n,t){var a=t?0:n?1:2,d=2===u.length&&r%10==1?u[0]:u,m=e[d][a];return 1===u.length?m:"%d "+m}(n,u,t,r);return a.replace("%d",u)}var a={name:"is",weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),weekStart:1,weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),ordinal:function(u){return u},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};return n.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/it-ch.js ================================================ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_it_ch=o(e.dayjs)}(this,(function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(e),t={name:"it-ch",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"}};return n.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/it.js ================================================ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_it=o(e.dayjs)}(this,(function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(e),n={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"º"}};return t.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ja.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ja=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e){return e+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(e){return e<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/jv.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_jv=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),_={name:"jv",weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),weekStart:1,weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),ordinal:function(e){return e},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ka.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ka=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ka",weekdays:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekStart:1,formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"%s შემდეგ",past:"%s წინ",s:"წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათის",d:"დღეს",dd:"%d დღის განმავლობაში",M:"თვის",MM:"%d თვის",y:"წელი",yy:"%d წლის"},ordinal:function(_){return _}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/kk.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_kk=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"kk",weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekStart:1,relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/km.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_km=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"km",weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekStart:1,weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/kn.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_kn=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"kn",weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ko.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ko=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=_(e),t={name:"ko",weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),ordinal:function(e){return e+"일"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},meridiem:function(e){return e<12?"오전":"오후"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"}};return d.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ku.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("dayjs")):"function"==typeof define&&define.amd?define(["exports","dayjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ku={},e.dayjs)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t),d={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},o={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},u=["کانوونی دووەم","شوبات","ئادار","نیسان","ئایار","حوزەیران","تەممووز","ئاب","ئەیلوول","تشرینی یەکەم","تشرینی دووەم","کانوونی یەکەم"],i={name:"ku",months:u,monthsShort:u,weekdays:"یەکشەممە_دووشەممە_سێشەممە_چوارشەممە_پێنجشەممە_هەینی_شەممە".split("_"),weekdaysShort:"یەکشەم_دووشەم_سێشەم_چوارشەم_پێنجشەم_هەینی_شەممە".split("_"),weekStart:6,weekdaysMin:"ی_د_س_چ_پ_هـ_ش".split("_"),preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return o[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return d[e]})).replace(/,/g,"،")},ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiem:function(e){return e<12?"پ.ن":"د.ن"},relativeTime:{future:"لە %s",past:"لەمەوپێش %s",s:"چەند چرکەیەک",m:"یەک خولەک",mm:"%d خولەک",h:"یەک کاتژمێر",hh:"%d کاتژمێر",d:"یەک ڕۆژ",dd:"%d ڕۆژ",M:"یەک مانگ",MM:"%d مانگ",y:"یەک ساڵ",yy:"%d ساڵ"}};r.default.locale(i,null,!0),e.default=i,e.englishToArabicNumbersMap=d,Object.defineProperty(e,"__esModule",{value:!0})})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ky.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ky=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ky",weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),weekStart:1,weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/lb.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_lb=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),n={name:"lb",weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),weekStart:1,weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"}};return t.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/lo.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_lo=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"lo",weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/lt.js ================================================ !function(e,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],s):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_lt=s(e.dayjs)}(this,(function(e){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=s(e),d="sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),a="sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),l=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,M=function(e,s){return l.test(s)?d[e.month()]:a[e.month()]};M.s=a,M.f=d;var t={name:"lt",weekdays:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),weekdaysShort:"sek_pir_ant_tre_ket_pen_šeš".split("_"),weekdaysMin:"s_p_a_t_k_pn_š".split("_"),months:M,monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"už %s",past:"prieš %s",s:"kelias sekundes",m:"minutę",mm:"%d minutes",h:"valandą",hh:"%d valandas",d:"dieną",dd:"%d dienas",M:"mėnesį",MM:"%d mėnesius",y:"metus",yy:"%d metus"},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"}};return i.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/lv.js ================================================ !function(e,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],s):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_lv=s(e.dayjs)}(this,(function(e){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=s(e),d={name:"lv",weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),weekStart:1,weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},relativeTime:{future:"pēc %s",past:"pirms %s",s:"dažām sekundēm",m:"minūtes",mm:"%d minūtēm",h:"stundas",hh:"%d stundām",d:"dienas",dd:"%d dienām",M:"mēneša",MM:"%d mēnešiem",y:"gada",yy:"%d gadiem"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/me.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_me=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),a={name:"me",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),weekStart:1,weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return _.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/mi.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_mi=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(e),t={name:"mi",weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),weekStart:1,weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"}};return i.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/mk.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_mk=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"mk",weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),weekStart:1,weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ml.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ml=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ml",weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/mn.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_mn=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"mn",weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},relativeTime:{future:"%s",past:"%s",s:"саяхан",m:"м",mm:"%dм",h:"1ц",hh:"%dц",d:"1ө",dd:"%dө",M:"1с",MM:"%dс",y:"1ж",yy:"%dж"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/mr.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_mr=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),n={name:"mr",weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"}};return t.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ms-my.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ms_my=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),_={name:"ms-my",weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),weekStart:1,weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),ordinal:function(e){return e},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ms.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ms=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),s={name:"ms",weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH.mm",LLLL:"dddd, D MMMM YYYY HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(e){return e+"."}};return t.default.locale(s,null,!0),s})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/mt.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_mt=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e),i={name:"mt",weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),weekStart:1,weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"}};return a.default.locale(i,null,!0),i})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/my.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_my=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"my",weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),weekStart:1,weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/nb.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_nb=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),a={name:"nb",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"}};return n.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ne.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ne=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"ne",weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मे_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),relativeTime:{future:"%s पछि",past:"%s अघि",s:"सेकेन्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"घन्टा",hh:"%d घन्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक वर्ष",yy:"%d वर्ष"},ordinal:function(e){return(""+e).replace(/\d/g,(function(e){return"०१२३४५६७८९"[e]}))},formats:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/nl-be.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_nl_be=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(e),d={name:"nl-be",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),weekStart:1,weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"}};return n.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/nl.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_nl=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=a(e),n={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return"["+e+(1===e||8===e||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return d.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/nn.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_nn=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),a={name:"nn",weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eitt minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månadar",y:"eitt år",yy:"%d år"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"}};return n.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/oc-lnc.js ================================================ !function(e,d){"object"==typeof exports&&"undefined"!=typeof module?module.exports=d(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],d):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_oc_lnc=d(e.dayjs)}(this,(function(e){"use strict";function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=d(e),s={name:"oc-lnc",weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"Dg_Dl_Dm_Dc_Dj_Dv_Ds".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),months:"genièr_febrièr_març_abrial_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),monthsShort:"gen_feb_març_abr_mai_junh_julh_ago_set_oct_nov_dec".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},ordinal:function(e){return e+"º"}};return n.default.locale(s,null,!0),s})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/pa-in.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_pa_in=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"pa-in",weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/pl.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_pl=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e);function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function n(e,t,i){var n=e+" ";switch(i){case"m":return t?"minuta":"minutę";case"mm":return n+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return n+(a(e)?"godziny":"godzin");case"MM":return n+(a(e)?"miesiące":"miesięcy");case"yy":return n+(a(e)?"lata":"lat")}}var r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),_="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),s=/D MMMM/,d=function(e,t){return s.test(t)?r[e.month()]:_[e.month()]};d.s=_,d.f=r;var o={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:d,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return i.default.locale(o,null,!0),o})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/pt-br.js ================================================ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_pt_br=o(e.dayjs)}(this,(function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e),s={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"º"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return a.default.locale(s,null,!0),s})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/pt.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_pt=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=a(e),t={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return o.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/rn.js ================================================ !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_rn=e(a.dayjs)}(this,(function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var t=e(a),u={name:"rn",weekdays:"Ku wa Mungu_Ku wa Mbere_Ku wa Kabiri_Ku wa Gatatu_Ku wa Kane_Ku wa Gatanu_Ku wa Gatandatu".split("_"),weekdaysShort:"Kngu_Kmbr_Kbri_Ktat_Kkan_Ktan_Kdat".split("_"),weekdaysMin:"K7_K1_K2_K3_K4_K5_K6".split("_"),months:"Nzero_Ruhuhuma_Ntwarante_Ndamukiza_Rusama_Ruhenshi_Mukakaro_Myandagaro_Nyakanga_Gitugutu_Munyonyo_Kigarama".split("_"),monthsShort:"Nzer_Ruhuh_Ntwar_Ndam_Rus_Ruhen_Muk_Myand_Nyak_Git_Muny_Kig".split("_"),weekStart:1,ordinal:function(a){return a},relativeTime:{future:"mu %s",past:"%s",s:"amasegonda",m:"Umunota",mm:"%d iminota",h:"isaha",hh:"%d amasaha",d:"Umunsi",dd:"%d iminsi",M:"ukwezi",MM:"%d amezi",y:"umwaka",yy:"%d imyaka"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return t.default.locale(u,null,!0),u})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ro.js ================================================ !function(e,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],i):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ro=i(e.dayjs)}(this,(function(e){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=i(e),_={name:"ro",weekdays:"Duminică_Luni_Marți_Miercuri_Joi_Vineri_Sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),months:"Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"),monthsShort:"Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"peste %s",past:"acum %s",s:"câteva secunde",m:"un minut",mm:"%d minute",h:"o oră",hh:"%d ore",d:"o zi",dd:"%d zile",M:"o lună",MM:"%d luni",y:"un an",yy:"%d ani"},ordinal:function(e){return e}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ru.js ================================================ !function(_,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ru=t(_.dayjs)}(this,(function(_){"use strict";function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var e=t(_),n="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),s="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),r="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),o="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),i=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(_,t,e){var n,s;return"m"===e?t?"минута":"минуту":_+" "+(n=+_,s={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[e].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2])}var u=function(_,t){return i.test(t)?n[_.month()]:s[_.month()]};u.s=s,u.f=n;var a=function(_,t){return i.test(t)?r[_.month()]:o[_.month()]};a.s=o,a.f=r;var m={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:u,monthsShort:a,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:d,mm:d,h:"час",hh:d,d:"день",dd:d,M:"месяц",MM:d,y:"год",yy:d},ordinal:function(_){return _},meridiem:function(_){return _<4?"ночи":_<12?"утра":_<17?"дня":"вечера"}};return e.default.locale(m,null,!0),m})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/rw.js ================================================ !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_rw=e(a.dayjs)}(this,(function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var u=e(a),t={name:"rw",weekdays:"Ku Cyumweru_Kuwa Mbere_Kuwa Kabiri_Kuwa Gatatu_Kuwa Kane_Kuwa Gatanu_Kuwa Gatandatu".split("_"),months:"Mutarama_Gashyantare_Werurwe_Mata_Gicurasi_Kamena_Nyakanga_Kanama_Nzeri_Ukwakira_Ugushyingo_Ukuboza".split("_"),relativeTime:{future:"mu %s",past:"%s",s:"amasegonda",m:"Umunota",mm:"%d iminota",h:"isaha",hh:"%d amasaha",d:"Umunsi",dd:"%d iminsi",M:"ukwezi",MM:"%d amezi",y:"umwaka",yy:"%d imyaka"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(a){return a}};return u.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/sd.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_sd=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"sd",weekdays:"آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر".split("_"),months:"جنوري_فيبروري_مارچ_اپريل_مئي_جون_جولاءِ_آگسٽ_سيپٽمبر_آڪٽوبر_نومبر_ڊسمبر".split("_"),weekStart:1,weekdaysShort:"آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر".split("_"),monthsShort:"جنوري_فيبروري_مارچ_اپريل_مئي_جون_جولاءِ_آگسٽ_سيپٽمبر_آڪٽوبر_نومبر_ڊسمبر".split("_"),weekdaysMin:"آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/se.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_se=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(e),t={name:"se",weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),weekStart:1,weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"}};return n.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/si.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_si=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"si",weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),months:"දුරුතු_නවම්_මැදින්_බක්_වෙසක්_පොසොන්_ඇසළ_නිකිණි_බිනර_වප්_ඉල්_උඳුවප්".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),monthsShort:"දුරු_නව_මැදි_බක්_වෙස_පොසො_ඇස_නිකි_බින_වප්_ඉල්_උඳු".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),ordinal:function(_){return _},formats:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"විනාඩිය",mm:"විනාඩි %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/sk.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sk=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function r(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?a+(r(e)?"roky":"rokov"):a+"rokmi"}}var a={name:"sk",weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),months:"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),monthsShort:"jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o}};return n.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/sl.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sl=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e);function r(e){return e%100==2}function a(e){return e%100==3||e%100==4}function s(e,n,t,s){var m=e+" ";switch(t){case"s":return n||s?"nekaj sekund":"nekaj sekundami";case"m":return n?"ena minuta":"eno minuto";case"mm":return r(e)?m+(n||s?"minuti":"minutama"):a(e)?m+(n||s?"minute":"minutami"):m+(n||s?"minut":"minutami");case"h":return n?"ena ura":"eno uro";case"hh":return r(e)?m+(n||s?"uri":"urama"):a(e)?m+(n||s?"ure":"urami"):m+(n||s?"ur":"urami");case"d":return n||s?"en dan":"enim dnem";case"dd":return r(e)?m+(n||s?"dneva":"dnevoma"):m+(n||s?"dni":"dnevi");case"M":return n||s?"en mesec":"enim mesecem";case"MM":return r(e)?m+(n||s?"meseca":"mesecema"):a(e)?m+(n||s?"mesece":"meseci"):m+(n||s?"mesecev":"meseci");case"y":return n||s?"eno leto":"enim letom";case"yy":return r(e)?m+(n||s?"leti":"letoma"):a(e)?m+(n||s?"leta":"leti"):m+(n||s?"let":"leti")}}var m={name:"sl",weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),weekStart:1,weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"čez %s",past:"pred %s",s:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s}};return t.default.locale(m,null,!0),m})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/sq.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sq=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),n={name:"sq",weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),weekStart:1,weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"}};return _.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/sr-cyrl.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sr_cyrl=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e),a={words:{m:["један минут","једног минута"],mm:["%d минут","%d минута","%d минута"],h:["један сат","једног сата"],hh:["%d сат","%d сата","%d сати"],d:["један дан","једног дана"],dd:["%d дан","%d дана","%d дана"],M:["један месец","једног месеца"],MM:["%d месец","%d месеца","%d месеци"],y:["једну годину","једне године"],yy:["%d годину","%d године","%d година"]},correctGrammarCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},relativeTimeFormatter:function(e,t,r,d){var i=a.words[r];if(1===r.length)return"y"===r&&t?"једна година":d||t?i[0]:i[1];var m=a.correctGrammarCase(e,i);return"yy"===r&&t&&"%d годину"===m?e+" година":m.replace("%d",e)}},d={name:"sr-cyrl",weekdays:"Недеља_Понедељак_Уторак_Среда_Четвртак_Петак_Субота".split("_"),weekdaysShort:"Нед._Пон._Уто._Сре._Чет._Пет._Суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),months:"Јануар_Фебруар_Март_Април_Мај_Јун_Јул_Август_Септембар_Октобар_Новембар_Децембар".split("_"),monthsShort:"Јан._Феб._Мар._Апр._Мај_Јун_Јул_Авг._Сеп._Окт._Нов._Дец.".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:a.relativeTimeFormatter,mm:a.relativeTimeFormatter,h:a.relativeTimeFormatter,hh:a.relativeTimeFormatter,d:a.relativeTimeFormatter,dd:a.relativeTimeFormatter,M:a.relativeTimeFormatter,MM:a.relativeTimeFormatter,y:a.relativeTimeFormatter,yy:a.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};return r.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/sr.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sr=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e),r={words:{m:["jedan minut","jednog minuta"],mm:["%d minut","%d minuta","%d minuta"],h:["jedan sat","jednog sata"],hh:["%d sat","%d sata","%d sati"],d:["jedan dan","jednog dana"],dd:["%d dan","%d dana","%d dana"],M:["jedan mesec","jednog meseca"],MM:["%d mesec","%d meseca","%d meseci"],y:["jednu godinu","jedne godine"],yy:["%d godinu","%d godine","%d godina"]},correctGrammarCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},relativeTimeFormatter:function(e,t,a,d){var n=r.words[a];if(1===a.length)return"y"===a&&t?"jedna godina":d||t?n[0]:n[1];var i=r.correctGrammarCase(e,n);return"yy"===a&&t&&"%d godinu"===i?e+" godina":i.replace("%d",e)}},d={name:"sr",weekdays:"Nedelja_Ponedeljak_Utorak_Sreda_Četvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned._Pon._Uto._Sre._Čet._Pet._Sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),months:"Januar_Februar_Mart_April_Maj_Jun_Jul_Avgust_Septembar_Oktobar_Novembar_Decembar".split("_"),monthsShort:"Jan._Feb._Mar._Apr._Maj_Jun_Jul_Avg._Sep._Okt._Nov._Dec.".split("_"),weekStart:1,relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:r.relativeTimeFormatter,mm:r.relativeTimeFormatter,h:r.relativeTimeFormatter,hh:r.relativeTimeFormatter,d:r.relativeTimeFormatter,dd:r.relativeTimeFormatter,M:r.relativeTimeFormatter,MM:r.relativeTimeFormatter,y:r.relativeTimeFormatter,yy:r.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};return a.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ss.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ss=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(e),i={name:"ss",weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),weekStart:1,weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"}};return a.default.locale(i,null,!0),i})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/sv-fi.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sv_fi=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e),d={name:"sv-fi",weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){var t=e%10;return"["+e+(1===t||2===t?"a":"e")+"]"},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY, [kl.] HH.mm",LLLL:"dddd, D. MMMM YYYY, [kl.] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [kl.] HH.mm",llll:"ddd, D. MMM YYYY, [kl.] HH.mm"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"}};return a.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/sv.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sv=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e),d={name:"sv",weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){var t=e%10;return"["+e+(1===t||2===t?"a":"e")+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"}};return a.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/sw.js ================================================ !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_sw=e(a.dayjs)}(this,(function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var i=e(a),t={name:"sw",weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekStart:1,ordinal:function(a){return a},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return i.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ta.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ta=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ta",weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/te.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_te=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"te",weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/tet.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_tet=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=t(e),a={name:"tet",weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),weekStart:1,weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"}};return u.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/tg.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_tg=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"tg",weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),weekStart:1,weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/th.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_th=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"th",weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"},ordinal:function(_){return _+"."}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/tk.js ================================================ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_tk=n(e.dayjs)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),_={name:"tk",weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e){return e+"."}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/tl-ph.js ================================================ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_tl_ph=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(e),t={name:"tl-ph",weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),weekStart:1,weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"}};return n.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/tlh.js ================================================ !function(a,j){"object"==typeof exports&&"undefined"!=typeof module?module.exports=j(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],j):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_tlh=j(a.dayjs)}(this,(function(a){"use strict";function j(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var t=j(a),e={name:"tlh",weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),weekStart:1,weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return t.default.locale(e,null,!0),e})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/tr.js ================================================ !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_tr=e(a.dayjs)}(this,(function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var t=e(a),_={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};return t.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/types.d.ts ================================================ declare interface ILocale { name: string weekdays?: string[] months?: string[] weekStart?: number weekdaysShort?: string[] monthsShort?: string[] weekdaysMin?: string[] ordinal?: (n: number) => number | string formats: Partial<{ LT: string LTS: string L: string LL: string LLL: string LLLL: string }> relativeTime: Partial<{ future: string past: string s: string m: string mm: string h: string hh: string d: string dd: string M: string MM: string y: string yy: string }> } ================================================ FILE: _files/assets/dayjs@1.11.13/locale/tzl.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_tzl=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),a={name:"tzl",weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),weekStart:1,weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),ordinal:function(e){return e},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"}};return t.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/tzm-latn.js ================================================ !function(a,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],s):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_tzm_latn=s(a.dayjs)}(this,(function(a){"use strict";function s(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var n=s(a),i={name:"tzm-latn",weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekStart:6,weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"}};return n.default.locale(i,null,!0),i})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/tzm.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_tzm=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"tzm",weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekStart:6,weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ug-cn.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ug_cn=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ug-cn",weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekStart:1,weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/uk.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_uk=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),s="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),n="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),o=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(_,e,t){var s,n;return"m"===t?e?"хвилина":"хвилину":"h"===t?e?"година":"годину":_+" "+(s=+_,n={ss:e?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:e?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:e?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[t].split("_"),s%10==1&&s%100!=11?n[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?n[1]:n[2])}var i=function(_,e){return o.test(e)?s[_.month()]:n[_.month()]};i.s=n,i.f=s;var r={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:i,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:d,mm:d,h:d,hh:d,d:"день",dd:d,M:"місяць",MM:d,y:"рік",yy:d},ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}};return t.default.locale(r,null,!0),r})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/ur.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_ur=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"ur",weekdays:"اتوار_پیر_منگل_بدھ_جمعرات_جمعہ_ہفتہ".split("_"),months:"جنوری_فروری_مارچ_اپریل_مئی_جون_جولائی_اگست_ستمبر_اکتوبر_نومبر_دسمبر".split("_"),weekStart:1,weekdaysShort:"اتوار_پیر_منگل_بدھ_جمعرات_جمعہ_ہفتہ".split("_"),monthsShort:"جنوری_فروری_مارچ_اپریل_مئی_جون_جولائی_اگست_ستمبر_اکتوبر_نومبر_دسمبر".split("_"),weekdaysMin:"اتوار_پیر_منگل_بدھ_جمعرات_جمعہ_ہفتہ".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/uz-latn.js ================================================ !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs_locale_uz_latn=e(a.dayjs)}(this,(function(a){"use strict";function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var _=e(a),n={name:"uz-latn",weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),weekStart:1,weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),ordinal:function(a){return a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},relativeTime:{future:"Yaqin %s ichida",past:"%s oldin",s:"soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"}};return _.default.locale(n,null,!0),n})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/uz.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_uz=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"uz",weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),weekStart:1,weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},relativeTime:{future:"Якин %s ичида",past:"%s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/vi.js ================================================ !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],n):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs_locale_vi=n(t.dayjs)}(this,(function(t){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var h=n(t),_={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(t){return t},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}};return h.default.locale(_,null,!0),_})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/x-pseudo.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_x_pseudo=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),d={name:"x-pseudo",weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),weekStart:1,weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"}};return _.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/yo.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_yo=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),a={name:"yo",weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),weekStart:1,weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"}};return t.default.locale(a,null,!0),a})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/zh-cn.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_zh_cn=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,_){return"W"===_?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,_){var t=100*e+_;return t<600?"凌晨":t<900?"早上":t<1100?"上午":t<1300?"中午":t<1800?"下午":"晚上"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/zh-hk.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_zh_hk=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var d=e(_),t={name:"zh-hk",months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),ordinal:function(_,e){return"W"===e?_+"週":_+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d 分鐘",h:"一小時",hh:"%d 小時",d:"一天",dd:"%d 天",M:"一個月",MM:"%d 個月",y:"一年",yy:"%d 年"},meridiem:function(_,e){var d=100*_+e;return d<600?"凌晨":d<900?"早上":d<1100?"上午":d<1300?"中午":d<1800?"下午":"晚上"}};return d.default.locale(t,null,!0),t})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/zh-tw.js ================================================ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_zh_tw=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(_,e){return"W"===e?_+"週":_+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(_,e){var t=100*_+e;return t<600?"凌晨":t<900?"早上":t<1100?"上午":t<1300?"中午":t<1800?"下午":"晚上"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/locale/zh.js ================================================ !function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_zh=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"zh",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,_){return"W"===_?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s后",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,_){var t=100*e+_;return t<600?"凌晨":t<900?"早上":t<1100?"上午":t<1300?"中午":t<1800?"下午":"晚上"}};return t.default.locale(d,null,!0),d})); ================================================ FILE: _files/assets/dayjs@1.11.13/plugin/localizedFormat.js ================================================ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_localizedFormat=t()}(this,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o,n){var r=o.prototype,i=r.format;n.en.formats=e,r.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var o=this.$locale().formats,n=function(t,o){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))}(t,void 0===o?{}:o);return i.call(this,n)}}})); ================================================ FILE: _files/assets/dayjs@1.11.13/plugin/relativeTime.js ================================================ !function(r,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(r="undefined"!=typeof globalThis?globalThis:r||self).dayjs_plugin_relativeTime=e()}(this,(function(){"use strict";return function(r,e,t){r=r||{};var n=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(r,e,t,o){return n.fromToBase(r,e,t,o)}t.en.relativeTime=o,n.fromToBase=function(e,n,i,d,u){for(var f,a,s,l=i.$locale().relativeTime||o,h=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=h.length,c=0;c0,p<=y.r||!y.r){p<=1&&c>0&&(y=h[c-1]);var v=l[y.l];u&&(p=u(""+p)),a="string"==typeof v?v.replace("%d",p):v(p,n,y.l,s);break}}if(n)return a;var M=s?l.future:l.past;return"function"==typeof M?M(a):M.replace("%s",a)},n.to=function(r,e){return i(r,e,this,!0)},n.from=function(r,e){return i(r,e,this)};var d=function(r){return r.$u?t.utc():t()};n.toNow=function(r){return this.to(d(this),r)},n.fromNow=function(r){return this.from(d(this),r)}}})); ================================================ FILE: _files/assets/file-saver@2.0.5/LICENSE.md ================================================ The MIT License Copyright © 2016 [Eli Grey][1]. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. [1]: http://eligrey.com ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/css/files.css ================================================ :root{--z-index-sidebar-toggle: 2;--z-index-sidebar-bg: 3;--z-index-topbar: 3;--z-index-sidebar: 4;--z-index-dropdown-open: 1001;--z-index-modal: 1055;--z-index-uppy: 1056;--z-index-contextmenu: 1600;--z-index-tooltip: 3}.audioplayer-title,.drag-single,.modal-info-mime-text,.modal-title,.popup-date,.pswp__search,.files-grid .name,.files-rows .name,.columns-noinfo .name,.files-blocks .title,.files-blocks .name,.files-imagelist .title,.files-imagelist .name,.files-list .name,.ext-inner,.date,.sortbar-item-text,.crumb,.menu-a,.dropdown-header-text,.toastify-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pswp__container,.pswp__img,.pswp__counter,.pswp__share-modal,.files-a,.sortbar-item-text,.crumb-link,.menu-a,.dropdown-menu,.button-icon,.button,.uppy-Dashboard-browse,button,[type=button],[type=reset],[type=submit]{-webkit-user-select:none;user-select:none}.form-range,#search::-webkit-search-cancel-button,.input,.select{-webkit-appearance:none;-moz-appearance:none;appearance:none}.modal-info-date,.modal-info-permissions,.modal-info-mime,.modal-info-meta,.modal-info-exif,.license-feature,.exif-gps,.exif-Model{display:flex;flex-direction:row;align-items:center}.modal-info-meta>*:not(:first-child),.modal-info-exif>*:not(:first-child),.popup-owner>*:not(:first-child),.popup-location>*:not(:first-child),.popup-image-meta>*:not(:first-child),.popup-exif>*:not(:first-child),.files-imagelist .exif>*:not(:first-child){border-left:1px solid var(--divider-color, var(--border-color));margin-left:var(--divider-space, 0.8em);padding-left:var(--divider-space, 0.8em)}.modal-open.has-scrollbars,.has-scrollbars.popup-open,.has-scrollbars .uppy-Dashboard-isFixed,.swal2-shown.has-scrollbars{max-width:calc(100vw - var(--scrollbar-width, 0px))}.no-pointer{pointer-events:none}.modal,.pswp__caption-style-block:hover,.pswp__caption-style-gradient:hover,.pswp__caption-style-none:hover,.updating:after,.logging:after,.updated:after,.uppy-is-drag-over:after,.uppy-Dashboard-overlay,.swal2-backdrop-show{-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.modal,.pswp__item,.pswp__container,.pswp__zoom-wrap,.pswp,.pswp__bg,.pswp__scroll-wrap,.updating:after,.logging:after,.updated:after,.swal2-container{left:0;top:0;width:100vw;height:100%}@media(hover: hover){.modal-show:active:not(:has(>*:last-child:hover)),.swal2-container:active:not(:has(>*:last-child:hover)){opacity:.9}}#files-container.cm-active:before,#sidebar-menu.cm-active:before{animation:opacity .2s;content:"";position:absolute;display:inline-flex;width:100%;height:100%;z-index:2;pointer-events:none;border:5px dashed var(--text3);border-radius:3px}.modal-info-title:first-child:not(:last-child),.modal-info-headline:first-child:not(:last-child),.modal-info-name,.columns-info .name,.files-blocks .name,.files-imagelist .name,.files-list .name,.license-type-title,.license-title{font-weight:var(--font-weight-bold);letter-spacing:var(--font-weight-letter-spacing)}.pswp__caption,[data-tooltip],.svg-file-ext,.dropdown-menu,.alert,[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview,[data-theme=contrast] #topbar,[data-theme=contrast] .custom-section,[data-theme=contrast] .custom-footer-fixed,[data-theme=contrast] #sidebar,[data-theme=contrast] #sidebar-bg{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#topbar-info,.cm-s-one-dark,.toastify{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}*,::before,::after{box-sizing:border-box;background-repeat:no-repeat}:root{--font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-family-monospace: /*ui-monospace, */Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", /*'Courier New',*/ monospace;--font-size: 16px;--font-weight: 400;--line-height: 1.5;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-text-size-adjust:100%;text-size-adjust:100%;color:var(--text1);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);font-family:var(--font-family);text-rendering:optimizeLegibility}:root,body{margin:0;background-color:var(--surface1)}button,input,select,textarea{margin:0;font:inherit;color:inherit;background:none;border:none}textarea{resize:vertical}strong,b{font-weight:500}small{font-size:.8125em}iframe,img,video{max-width:100%;height:auto;border:0}img{image-orientation:from-image}svg{fill:currentColor}button,[type=button],[type=reset],[type=submit]{touch-action:manipulation;-webkit-appearance:button;cursor:pointer;outline:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-moz-focus-inner{padding:0;border-style:none}[aria-busy=true]{cursor:progress}[aria-disabled=true],[disabled],[readonly]{cursor:not-allowed}iframe{border:0}a{text-decoration:none;color:inherit}:root{--hue: 210;--hsl-primary-dark: var(--hue) 50% 45%;--hsl-primary-contrast: var(--hue) 45% 50%;--hsl-primary-light: var(--hue) 55% 55%;--text-base-lightness-light: 30%;--text1-light: hsl(var(--hue), 20%, var(--text-base-lightness-light));--text2-light: hsl(var(--hue), 17%, calc(var(--text-base-lightness-light) + 15%));--text3-light: hsl(var(--hue), 15%, calc(var(--text-base-lightness-light) + 30%));--surface-base-lightness-light: 98%;--surface1-light: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-light) + -8%));--surface2-light: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-light) + -3%));--surface3-light: hsl(var(--hue), 20%, var(--surface-base-lightness-light));--surface4-light: white;--surface-selected-light: hsl(var(--hue), 70%, 90%);--files-border-bottom-light: 0 1px 0 0 hsl(var(--hue), 20%, calc(var(--surface-base-lightness-light) + -12%));--img-placeholder-bg-light: url("data:image/svg+xml;utf8,");--color-danger-light: hsl(0, 60%, 55%);--color-info-light: var(--text1);--color-success-light: hsl(105, 30%, 50%);--popup-bg-light: black;--dropdown-shadow-light: 0 8px 25px -10px hsl(var(--hue), 60%, 10%);--rgb-theme-light: 255, 255, 255;--rgb-theme-invert-light: 0, 0, 0;--svg-file-bg-light: hsl(60, 17%, calc(var(--surface-base-lightness-light) - 12%));--svg-file-flip-light: hsl(52, 16%, calc(var(--surface-base-lightness-light) - 20%));--svg-file-icon-light: hsl(19, 13%, calc(var(--surface-base-lightness-light) - 27%));--svg-folder-bg-light: hsl(var(--hue), 45%, 55%);--svg-folder-fg-light: hsl(var(--hue), 50%, 65%);--svg-folder-bg-large-light: hsl(var(--hue), 50%, 65%);--svg-folder-fg-large-light: hsl(var(--hue), 55%, 75%);--text-base-lightness-dark: 80%;--text1-dark: hsl(var(--hue), 20%, var(--text-base-lightness-dark));--text2-dark: hsl(var(--hue), 17%, calc(var(--text-base-lightness-dark) + -15%));--text3-dark: hsl(var(--hue), 14%, calc(var(--text-base-lightness-dark) + -30%));--surface-base-lightness-dark: 8%;--surface1-dark: hsl(var(--hue), 20%, var(--surface-base-lightness-dark));--surface2-dark: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 2%));--surface3-dark: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 4%));--surface4-dark: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 6%));--surface-selected-dark: hsl(var(--hue), 40%, 20%);--files-border-bottom-dark: 0 0 0 0 transparent;--img-placeholder-bg-dark: url("data:image/svg+xml;utf8,");--color-danger-dark: hsl(0, 50%, 45%);--color-info-dark: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 12%));--color-success-dark: hsl(105, 30%, 45%);--popup-bg-dark: black;--dropdown-shadow-dark: 0 10px 40px -15px black;--rgb-theme-dark: 0, 0, 0;--rgb-theme-invert-dark: 255, 255, 255;--svg-file-bg-dark: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 10%));--svg-file-flip-dark: hsl(var(--hue), 18%, calc(var(--surface-base-lightness-dark) + 16%));--svg-file-icon-dark: hsl(var(--hue), 16%, calc(var(--surface-base-lightness-dark) + 32%));--svg-folder-bg-dark: hsl(var(--hue), 40%, 30%);--svg-folder-fg-dark: hsl(var(--hue), 35%, 40%);--svg-folder-bg-large-dark: hsl(var(--hue), 30%, 20%);--svg-folder-fg-large-dark: hsl(var(--hue), 25%, 28%);--surface-active: var(--surface3);--primary: hsl(var(--hue), 50%, 50%);--border-color: rgba(var(--rgb-theme-invert), .05);--select-color: hsl(var(--hue), 65%, 55%)}@supports(background-color: HSL(50 50% 50%/50%)){:root{--primary: hsl(var(--hsl-primary))}}@supports(background-color: HSL(50 50% 50%/50%)){:root{--border-color: hsl(var(--hue) 30% 50% / 15%)}}[data-theme=contrast]{--modal-surface: var(--surface4);--modal-box-shadow: 0 5px 35px -15px var(--surface1-dark);--modal-bg: hsl(var(--hue) 20% 14% / 85%);--dropdown-shadow: var(--dropdown-shadow-light);--files-svg-active-filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .1));--theme-dark-rotate: 45deg;--hsl-primary: var(--hsl-primary-contrast)}[data-theme=contrast] .cm-sidebar{--dropdown-shadow: var(--dropdown-shadow-dark)}[data-theme=light]{--modal-surface: var(--surface4);--modal-bg: hsl(var(--hue) 18% 78% / 80%);--modal-box-shadow: 0 5px 25px -15px hsl(var(--hue), 20%, 40%);--dropdown-shadow: var(--dropdown-shadow-light);--files-svg-active-filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .1));--theme-contrast-rotate: 45deg;--hsl-primary: var(--hsl-primary-light)}[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview{--modal-bg: hsl(var(--hue) 20% var(--surface-base-lightness-dark) / 90%);--modal-surface: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 7%));--modal-box-shadow: 0 5px 25px -15px black;--files-svg-active-filter: drop-shadow(0 7px 15px rgba(0, 0, 0, .25));--dropdown-shadow: var(--dropdown-shadow-dark);--theme-light-rotate: 45deg;--hsl-primary: var(--hsl-primary-dark)}[data-theme=light],[data-theme=contrast]{color-scheme:light;--text1: var(--text1-light);--text2: var(--text2-light);--text3: var(--text3-light);--surface1: var(--surface1-light);--surface2: var(--surface2-light);--surface3: var(--surface3-light);--surface4: var(--surface4-light);--surface-selected: var(--surface-selected-light);--files-border-bottom: var(--files-border-bottom-light);--img-placeholder-bg: var(--img-placeholder-bg-light);--color-danger: var(--color-danger-light);--color-info: var(--color-info-light);--color-success: var(--color-success-light);--popup-bg: var(--popup-bg-light);--rgb-theme: var(--rgb-theme-light);--rgb-theme-invert: var(--rgb-theme-invert-light);--svg-file-bg: var(--svg-file-bg-light);--svg-file-flip: var(--svg-file-flip-light);--svg-file-icon: var(--svg-file-icon-light);--svg-folder-bg: var(--svg-folder-bg-light);--svg-folder-fg: var(--svg-folder-fg-light);--svg-folder-bg-large: var(--svg-folder-bg-large-light);--svg-folder-fg-large: var(--svg-folder-fg-large-light);--type-default: hsl(var(--hue), 15%, 65%);--type-application: hsl(var(--hue), 65%, 55%);--type-archive: hsl(39, 76%, 60%);--hsl-audio: 21 80% 57%;--type-audio: hsl(var(--hsl-audio));--type-excel: hsl(135, 30%, 59%);--type-word: hsl(205, 84%, 59%);--type-pdf: hsl(359, 50%, 55%);--type-cd: hsl(15, 72%, 70%);--type-code: hsl(10, 69%, 62%);--type-text: hsl(210, 50%, 60%);--type-open_in_new: var(--type-text);--type-powerpoint: hsl(13, 65%, 51%);--type-font: hsl(286, 45%, 65%);--type-video-hsl: 357 79% 65%;--type-video: hsl(var(--type-video-hsl));--type-youtube: hsl(0, 90%, 55%);--type-vimeo: hsl(195, 83%, 51%);--type-image: hsl(92, 36%, 58%);--svg-image-text-bg: hsl(92, 32%, 50%);--svg-image-sun: hsl(48, 85%, 65%);--font-weight-bold: 500;--font-weight-letter-spacing: normal;--surface-list-hover: var(--surface1-light)}[data-theme=contrast],[data-theme=light]{--surface-base-lightness-dark: 12%;--text-base-lightness-dark: 84%}[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview,[data-theme=contrast] #topbar,[data-theme=contrast] .custom-section,[data-theme=contrast] .custom-footer-fixed,[data-theme=contrast] #sidebar,[data-theme=contrast] #sidebar-bg{color-scheme:dark;color:var(--text1);--text1: var(--text1-dark);--text2: var(--text2-dark);--text3: var(--text3-dark);--surface1: var(--surface1-dark);--surface2: var(--surface2-dark);--surface3: var(--surface3-dark);--surface4: var(--surface4-dark);--surface-selected: var(--surface-selected-dark);--files-border-bottom: var(--files-border-bottom-dark);--img-placeholder-bg: var(--img-placeholder-bg-dark);--color-danger: var(--color-danger-dark);--color-info: var(--color-info-dark);--color-success: var(--color-success-dark);--popup-bg: var(--popup-bg-dark);--rgb-theme: var(--rgb-theme-dark);--rgb-theme-invert: var(--rgb-theme-invert-dark);--svg-file-bg: var(--svg-file-bg-dark);--svg-file-flip: var(--svg-file-flip-dark);--svg-file-icon: var(--svg-file-icon-dark);--svg-folder-bg: var(--svg-folder-bg-dark);--svg-folder-fg: var(--svg-folder-fg-dark);--svg-folder-bg-large: var(--svg-folder-bg-large-dark);--svg-folder-fg-large: var(--svg-folder-fg-large-dark);--type-default: hsl(var(--hue), 20%, 40%);--type-application: hsl(var(--hue), 50%, 55%);--type-archive: hsl(39, 51%, 57%);--hsl-audio: 21 60% 55%;--type-audio: hsl(var(--hsl-audio));--type-excel: hsl(135, 20%, 49%);--type-word: hsl(205, 54%, 49%);--type-pdf: hsl(359, 39%, 50%);--type-cd: hsl(15, 42%, 50%);--type-code: hsl(10, 45%, 50%);--type-text: hsl(210, 40%, 50%);--type-open_in_new: var(--type-text);--type-powerpoint: hsl(13, 50%, 51%);--type-font: hsl(286, 30%, 55%);--type-video-hsl: 357 53% 56%;--type-video: hsl(var(--type-video-hsl));--type-youtube: hsl(0, 60%, 50%);--type-vimeo: hsl(195, 60%, 50%);--type-image: hsl(92, 28%, 52%);--svg-image-text-bg: hsl(92, 29%, 44%);--svg-image-sun: hsl(48, 60%, 55%);--font-weight-bold: 400;--font-weight-letter-spacing: 0.02ch}.cm-popup{--dropdown-shadow: var(--dropdown-shadow-dark)}[data-theme=dark] .cm-sidebar,.modal-codemirror-theme-dark .markdown-preview .cm-sidebar,[data-theme=contrast] .cm-sidebar{--dropdown-top-color: var(--text3)}[data-theme=dark] .dropdown-menu-topbar,.modal-codemirror-theme-dark .markdown-preview .dropdown-menu-topbar,[data-theme=contrast] .dropdown-menu-topbar{--dropdown-top-color: var(--primary)}.svg-icon{width:1em;height:1em;font-size:var(--svg-icon-font-size, 24px);vertical-align:bottom;pointer-events:none;flex-shrink:0;margin:var(--svg-icon-margin, 0);fill:var(--svg-icon-fill, currentColor)}@keyframes rotate{to{transform:rotate(360deg)}}.pswp__spinner:before,.dropdown-lang-loading:before,.menu-spinner:before,.sidebar-spinner:before,.toastify-loading:before,.modal-preview-spinner:before,.files-spinner:before,.updating:before,.logging:before,.settings-loading:before,.form-loading:before,.body-loading:before{content:"";display:inline-block;vertical-align:bottom;border-radius:50%;animation:rotate .75s linear infinite,opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1);width:var(--spinner-size, 24px);height:var(--spinner-size, 24px);border-style:solid;border-width:var(--spinner-width, 1px);border-color:var(--spinner-track, transparent);border-top-color:var(--spinner-color, currentColor);position:var(--spinner-position, absolute);z-index:var(--spinner-z-index, 1);margin:var(--spinner-margin, 0)}.modal-preview-spinner:before,.files-spinner:before,.updating:before,.logging:before,.settings-loading:before,.form-loading:before,.body-loading:before{top:calc(50% - var(--spinner-size, 24px)/2);left:calc(50% - var(--spinner-size, 24px)/2)}.body-loading{--spinner-size: 48px;--spinner-color: var(--text3)}.body-loading #sidebar,.body-loading #main{display:none}:root{--spacing: 1em;--form-padding-x: .9em;--form-padding-y: .6em;--form-line-height: 1.3;--hsl-danger: 0 50% 50%;--hsl-success: 105 30% 50%;--button-color: rgba(255, 255, 255, .95);--button-hsl: var(--hsl-primary);--input-active-hsl: var(--hsl-primary);--input-active-hsl-empty: var(--hue) 20% 45%;--input-box-shadow: 0 0 0 1px hsl(var(--input-active-hsl-empty) / 20%);--input-active-box-shadow-alpha: 25%}.button-icon,.button,.uppy-Dashboard-browse{touch-action:manipulation;cursor:pointer;outline:none;transition:.3s cubic-bezier(0.23, 1, 0.32, 1);--button-surface: var(--primary);--button-box-shadow-active: inset 0 0 0 50px rgba(0, 0, 0, .1), 0 0 0 3px rgba(var(--rgb-theme-invert), .1)}.button-icon:hover,.button:hover,.uppy-Dashboard-browse:hover{box-shadow:var(--button-box-shadow-hover, none)}@supports(background-color: HSL(50 50% 50%/50%)){.button-icon,.button,.uppy-Dashboard-browse{--button-surface: hsl(var(--button-hsl));--button-box-shadow-active: inset 0 0 0 50px rgba(0, 0, 0, .1), 0 0 0 3px hsl(var(--button-hsl) / 30%)}}.button-icon:active,.button:active,.uppy-Dashboard-browse:active,.button-icon:focus-visible,.button:focus-visible,.uppy-Dashboard-browse:focus-visible{box-shadow:var(--button-box-shadow-active)}.button-icon:disabled,.button:disabled,.uppy-Dashboard-browse:disabled{pointer-events:none;opacity:var(--button-disabled-opacity, 0.5)}.button,.uppy-Dashboard-browse{position:relative;--button-box-shadow-hover: inset 0 0 0 50px rgba(255, 255, 255, .1);border-bottom:1px solid rgba(var(--rgb-theme-dark), 0.1);color:var(--button-color);background-color:var(--button-surface);line-height:var(--form-line-height);padding:var(--form-padding-y) var(--form-padding-x) calc(var(--form-padding-y) - 1px) var(--form-padding-x);min-width:6em;border-radius:3px;display:inline-block;text-align:center}.button:hover,.uppy-Dashboard-browse:hover,.button:active,.uppy-Dashboard-browse:active{--button-color: white}.button:not(:first-of-type),.uppy-Dashboard-browse:not(:first-of-type){margin-left:10px}.button-secondary{color:currentColor;--button-surface: rgba(var(--rgb-theme-invert), .05);--button-box-shadow-hover: inset 0 0 0 50px var(--button-surface);--button-box-shadow-active: var(--button-box-shadow-hover), 0 0 0 3px rgba(var(--rgb-theme-invert), .05);border-bottom-color:rgba(0,0,0,.05)}.button-success{--button-hsl: var(--hsl-success)}.button-danger{--button-hsl: var(--hsl-danger)}.button-icon{padding:var(--button-padding, 10px);margin:var(--button-margin, 0);border-radius:var(--button-border-radius, 50%);display:inline-flex;line-height:1;color:var(--button-icon-color, currentColor)}.mouse-hover .button-icon{transition-delay:var(--mouse-hover-transition-delay, 0.25s)}.button-icon .svg-icon{will-change:transform;transition:transform .3s cubic-bezier(0.23, 1, 0.32, 1);transform:scale(var(--button-icon-scale, 1))}.button-icon:hover,.button-icon:active,.button-icon.cm-active,.dropdown:hover .button-icon,.button-icon:focus-visible{color:#fff;fill:#fff;background-color:var(--button-surface);--mouse-hover-transition-delay: 0s}.button-icon:active{--button-icon-scale: .9583333333}.input,.select{line-height:var(--form-line-height);transition:.3s cubic-bezier(0.23, 1, 0.32, 1);width:100%;padding:var(--form-padding-y) var(--form-padding-x);border-radius:3px;outline:none;margin-bottom:var(--spacing);background-color:var(--input-surface, var(--surface2));box-shadow:var(--input-box-shadow);--input-box-shadow-active: 0 0 0 1px hsl(var(--input-active-hsl) / var(--input-active-box-shadow-alpha)), 0 0 0 var(--input-active-spread) hsl(var(--input-active-hsl) / var(--input-active-box-shadow-alpha));--input-active-spread: 4px}.input:placeholder-shown,.select:placeholder-shown{--input-active-hsl: var(--input-active-hsl-empty)}.input:hover,.select:hover{--input-box-shadow: 0 0 0 1px hsl(var(--input-active-hsl-empty) / 40%)}.input:focus,.select:focus,.input[aria-invalid],[aria-invalid].select{--input-box-shadow: var(--input-box-shadow-active)}.input:active,.select:active{--input-active-spread: 5px}.input[aria-invalid=true],[aria-invalid=true].select{--input-active-hsl: var(--hsl-danger)}.input[aria-invalid=false],[aria-invalid=false].select{--input-active-hsl: var(--hsl-success)}.input::placeholder,.select::placeholder{color:var(--text3);opacity:.8}.input-label .input,.input-label .select{margin-top:.5em}.checkbox{width:1em;height:1em;accent-color:var(--primary);margin-right:.5rem}.checkbox-label{cursor:pointer;display:inline-flex;align-items:center}.alert{text-align:left;line-height:var(--form-line-height);color:rgba(255,255,255,.95);padding:var(--form-padding-y) var(--form-padding-x);margin-bottom:var(--spacing);border-radius:3px}.alert-danger{background-color:var(--color-danger);box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.3)}.alert-warning{background-color:var(--color-info)}.select{background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:center right .75em;background-size:1.5em auto;padding-right:2.5em;text-overflow:ellipsis;cursor:pointer}:root{--scrollbar-color-light: rgba(0, 0, 0, .3);--scrollbar-color-hover-light: rgba(0, 0, 0, .4);--scrollbar-color-dark: rgba(255, 255, 255, .3);--scrollbar-color-hover-dark: rgba(255, 255, 255, .4)}.cm-s-one-light,:root,[data-theme=contrast] .modal-preview{--scrollbar-color: var(--scrollbar-color-light);--scrollbar-color-hover: var(--scrollbar-color-hover-light)}.cm-s-one-dark,[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview,[data-theme=contrast] #sidebar,[data-theme=contrast] .modal{--scrollbar-color: var(--scrollbar-color-dark);--scrollbar-color-hover: var(--scrollbar-color-hover-dark)}.markdown-preview,.modal,#sidebar-menu,.uppy-Dashboard-files,.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.has-scrollbars{scrollbar-width:var(--firefox-scrollbar-width, thin);scrollbar-color:var(--scrollbar-color) rgba(0,0,0,0)}.has-scrollbars{--webkit-scrollbar-width: 10px}.has-scrollbars ::-webkit-scrollbar{-webkit-appearance:none;width:var(--webkit-scrollbar-width);height:var(--webkit-scrollbar-width)}.has-scrollbars ::-webkit-scrollbar-thumb{border-radius:calc(var(--webkit-scrollbar-width)/2);background-color:var(--scrollbar-color)}.has-scrollbars ::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-color-hover)}.scrollbar-test{scrollbar-width:thin;width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}.swal2-container{display:flex;justify-content:center;align-items:center;position:fixed;z-index:1060;height:100%;padding:var(--padding, 0);overflow-x:hidden;transition:background-color .2s cubic-bezier(0.165, 0.84, 0.44, 1),opacity .2s cubic-bezier(0.165, 0.84, 0.44, 1);-webkit-overflow-scrolling:touch}@media(min-width: 390px){.swal2-container{--padding: 1rem;--border-radius: 3px}}.swal2-container.swal2-backdrop-show{background-color:var(--modal-bg)}.swal2-popup{display:none;position:relative;width:400px;max-width:100%;padding:1.5rem;border-radius:var(--border-radius, 0);background-color:var(--surface4);color:inherit}.swal2-popup:focus{outline:none}.swal2-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end}.swal2-validation-message{align-items:center;margin:0 -1.5rem;padding:.75rem 1.5rem}.swal2-show{animation:.2s swal-in cubic-bezier(0.165, 0.84, 0.44, 1)}.swal2-hide{animation:.2s swal-out cubic-bezier(0.165, 0.84, 0.44, 1)}@keyframes swal-in{0%{opacity:0;transform:translateY(2px)}100%{opacity:1;transform:none}}@keyframes swal-out{0%{opacity:1}100%{opacity:0}}.swal2-shown.has-scrollbars{overflow:hidden}.swal2-container{contain:strict;cursor:zoom-out}.swal2-popup{cursor:auto;box-shadow:var(--modal-box-shadow),inset 0 2px 0 0 var(--swal-border-top, var(--primary))}.swal2-title{font-weight:500;font-size:1.375rem;line-height:1.2;margin:0}.swal2-close{--svg-icon-font-size: 36px;--button-padding: 4px;--button-margin: .5rem .5rem 0 0;position:absolute;justify-self:end;z-index:2}.swal2-input-label{font-size:.9375rem;margin:0 0 .5em;color:var(--text2)}.swal2-input{margin:0;font-size:1.125rem;text-overflow:ellipsis}@media(pointer: fine){.swal2-actions{font-size:.875rem}}.swal2-cancel:focus,.swal2-confirm:focus{box-shadow:var(--button-box-shadow-active)}.swal2-title,.swal2-input::placeholder,.swal2-cancel,.swal2-confirm{text-transform:capitalize}.files-swal2-path{margin:0 -1.5rem;padding:.75rem 1.5rem;background-color:var(--surface3);word-break:break-all}.files-swal2-path-path{color:var(--text3);font-size:.875rem}.files-swal2-path-highlight{font-weight:500;line-height:1.3}.swal2-validation-message{animation:opacity .3s;--svg-icon-margin: 0 5px 0 0;background-color:var(--color-danger);color:#fff;overflow:hidden;white-space:nowrap}.swal2-validation-text:first-letter{text-transform:uppercase}.files-swal2-invalid-chars{font-family:var(--font-family-monospace);background:rgba(0,0,0,.1);padding:0 .4em;margin-left:.4em}.swal2-title,.swal2-html-container,.swal2-input,.swal2-validation-message{margin-bottom:1rem}.swal2-actions{margin-top:.5rem}.toastify{--toast-padding: 15px;--toastify-color: var(--dropdown-text);color:var(--toastify-color);--toastify-bg: var(--dropdown-surface);background-color:var(--toastify-bg);box-shadow:var(--dropdown-shadow);position:fixed;display:flex;align-items:center;padding:12px 18px;font-size:.9375rem;font-weight:400;border-radius:3px;z-index:2147483647;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);opacity:0;--svg-icon-margin: 0 8px 0 -5px;--svg-icon-font-size: 18px;left:var(--toast-padding);right:var(--toast-padding);bottom:var(--toast-padding)}@media(min-width: 576px){.toastify{left:auto;max-width:calc(100% - var(--toast-padding)*2)}}@media(min-width: 768px){.toastify{max-width:50%}}@media(min-width: 1200px){.toastify{max-width:480px}}.toastify.on{opacity:1}.toastify-right{right:var(--toast-padding)}.toastify-left{left:var(--toast-padding)}.toastify-top{top:-150px}.toastify-bottom{bottom:calc(var(--toast-padding)*-1)}.toastify-success,.toastify-danger{--toastify-color: rgba(255, 255, 255, .9)}.toastify-success{--toastify-bg: var(--color-success)}.toastify-danger{--toastify-bg: var(--color-danger)}.toastify-text{display:inline-block;flex:1}.toastify-text::first-letter{text-transform:uppercase}.toastify-link{cursor:pointer}.toastify-link:hover{opacity:.8}.toastify-link:hover:active{opacity:.6}.toastify-loading{--svg-icon-margin: 0;--spinner-position: static;--spinner-margin: 0 10px 0 -5px}.toastify-percent{font-family:var(--font-family-monospace);font-weight:normal;min-width:40px;padding-left:10px;display:flex;justify-content:flex-end}.toastify-progress-bar{border-radius:0 0 3px 3px;height:3px;width:100%;background-color:var(--primary);position:absolute;left:0;bottom:0;transform-origin:0px 0px;transform:scaleX(0);transition:transform .2s}:root{--cm-surface-light: var(--surface3-light);--cm-surface-dark: hsl(var(--hue), 20%, 18%)}.CodeMirror{height:auto;font-family:var(--font-family-monospace);font-size:.8125rem;line-height:1.5em;color:var(--cm-color);background-color:var(--cm-surface)}@supports(-webkit-touch-callout: none){.CodeMirror{font-size:16px}}.CodeMirror-scroll{overscroll-behavior:contain}.CodeMirror-gutter,.CodeMirror-gutters{border:none;background:var(--cm-gutter-surface);transition:background-color .3s cubic-bezier(0.23, 1, 0.32, 1)}.CodeMirror-linenumber,.CodeMirror-linenumbers{color:var(--cm-linenumber);background-color:rgba(0,0,0,0)}.CodeMirror-lines{color:var(--cm-lines);background-color:rgba(0,0,0,0)}.CodeMirror-selected{background:var(--cm-selected)}.CodeMirror-focused .CodeMirror-selected{background:var(--cm-selected-focused)}.CodeMirror-activeline-background,.CodeMirror-activeline-gutter{background-color:var(--cm-activeline);--cm-linenumber: var(--cm-lines)}.CodeMirror-cursor{border-left:2px solid var(--cm-cursor)}.cm-quote,.cm-comment{font-style:italic}.cm-header{color:var(--cm-header)}.cm-quote{color:var(--cm-quote)}.cm-negative{color:var(--cm-negative)}.cm-positive{color:var(--cm-positive)}.cm-strong{color:var(--cm-strong)}.cm-em{color:var(--cm-em)}.cm-tag{color:var(--cm-tag)}.cm-attribute{color:var(--cm-attribute)}.cm-link{color:var(--cm-link);border-bottom:solid 1px var(--cm-link)}.cm-builtin{color:var(--cm-builtin)}.cm-keyword{color:var(--cm-keyword)}.cm-def{color:var(--cm-def)}.cm-atom{color:var(--cm-atom)}.cm-number{color:var(--cm-number)}.cm-property{color:var(--cm-property)}.cm-qualifier{color:var(--cm-qualifier)}.cm-variable{color:var(--cm-variable)}.cm-string{color:var(--cm-string)}.cm-punctuation{color:var(--cm-punctuation)}.cm-operator{color:var(--cm-operator)}.cm-meta{color:var(--cm-meta)}.cm-bracket{color:var(--cm-bracket)}.cm-comment{color:var(--cm-comment)}.cm-error{color:var(--cm-error)}.cm-m-css.cm-variable{color:var(--cm-m-css-variable)}.cm-m-css.cm-property{color:var(--cm-m-css-property)}.cm-m-css.cm-atom{color:var(--cm-m-css-atom)}.cm-m-css.cm-builtin{color:var(--cm-m-css-builtin)}.cm-m-lua.cm-variable{color:var(--cm-m-lua-variable)}.cm-s-one-light{color-scheme:light;--cm-color: hsl(var(--hue), 20%, 24%);--cm-surface: var(--cm-surface-light);--cm-lines: var(--cm-color);--cm-gutter-surface: var(--surface2);--cm-linenumber: hsl(var(--hue), 14%, 62%);--cm-selected: hsl(var(--hue), 10%, 90%);--cm-selected-focused: hsl(var(--hue), 60%, 90%);--cm-activeline: rgba(0,0,0,.05);--cm-cursor: #56b6c2;--cm-header: #e06c75;--cm-quote: #9d9d9f;--cm-negative: #e06c75;--cm-positive: #e06c75;--cm-strong: #e45649;--cm-em: #c678dd;--cm-tag: #e45649;--cm-attribute: #986801;--cm-link: #50a14f;--cm-builtin: #e06c75;--cm-keyword: #0184bc;--cm-def: hsl(39, 72%, 59%);--cm-atom: #0184bc;--cm-number: #986801;--cm-property: #e45649;--cm-qualifier: #e45649;--cm-variable: #e06c75;--cm-string: #50a14f;--cm-punctuation: var(--cm-color);--cm-operator: #56b6c2;--cm-meta: hsl(var(--hue), 20%, 40%);--cm-bracket: var(--cm-color);--cm-comment: hsl(var(--hue), 10%, 65%);--cm-error: #e06c75;--cm-m-css-variable: hsl(var(--hue), 20%, 50%);--cm-m-css-property: var(--cm-color);--cm-m-css-atom: #0184bc;--cm-m-css-builtin: #56b6c2;--cm-m-lua-variable: #56b6c2}.cm-s-one-dark{color-scheme:dark;--cm-color: hsl(var(--hue), 14%, 71%);--cm-surface: var(--cm-surface-dark);--cm-lines: var(--cm-color);--cm-gutter-surface: var(--cm-surface-dark);--cm-linenumber: hsl(var(--hue), 10%, 40%);--cm-selected: hsl(var(--hue), 14%, 26%);--cm-selected-focused: hsl(var(--hue), 14%, 28%);--cm-activeline: rgba(255,255,255,.05);--cm-cursor: #56b6c2;--cm-header: #e06c75;--cm-quote: #5c6370;--cm-negative: #e06c75;--cm-positive: #e06c75;--cm-strong: #d19a66;--cm-em: #c678dd;--cm-tag: #e06c75;--cm-attribute: #d19a66;--cm-link: #98c379;--cm-builtin: #e06c75;--cm-keyword: #c678dd;--cm-def: #e5c07b;--cm-atom: #d19a66;--cm-number: #d19a66;--cm-property: #56b6c2;--cm-qualifier: #d19a66;--cm-variable: #e06c75;--cm-string: #98c379;--cm-punctuation: var(--cm-color);--cm-operator: #56b6c2;--cm-meta: var(--cm-color);--cm-bracket: var(--cm-color);--cm-comment: hsl(var(--hue), 10%, 40%);--cm-error: #e06c75;--cm-m-css-variable: hsl(var(--hue), 9%, 55%);--cm-m-css-property: var(--cm-color);--cm-m-css-atom: #56b6c2;--cm-m-css-builtin: #56b6c2;--cm-m-lua-variable: #56b6c2}.uppy-Root{color:var(--text1);font-family:inherit;position:relative;z-index:var(--z-index-uppy);-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit}@media(hover: hover){.uppy-Dashboard-overlay:active,.uppy-Dashboard-overlay:active+.uppy-Dashboard-inner{transition:opacity .2s;opacity:.8}}.uppy-Dashboard-overlay{cursor:zoom-out;background-color:var(--modal-bg) !important}.uppy-Dashboard-inner{box-shadow:var(--modal-box-shadow) !important}.uppy-Dashboard-AddFiles-title{display:flex;flex-direction:column;font-size:1rem !important;color:var(--text1) !important}.uppy-Dashboard-browse{font-size:1.125rem;width:100%;text-transform:capitalize;padding:.75em 1em;margin:10px auto;border-bottom:none !important;color:#fff !important}.uppy-size--md .uppy-Dashboard-browse{font-size:1.25rem;width:auto}.uppy-Dashboard-dropFilesHereHint,.uppy-StatusBar-statusPrimary,.uppy-Dashboard-Item-name{color:var(--text1) !important}.uppy-Dashboard-Item-status,.uppy-Dashboard-note{color:var(--text3) !important}.upload-button{line-height:1.6;font-size:1rem;--button-hsl: var(--hsl-success);margin:0 auto}@media(max-width: 575.98px){.upload-button{width:100%}}.uppy-Dashboard-FileCard-preview{background-color:var(--surface2) !important}.uppy-DashboardContent-bar,.uppy-Dashboard-FileCard-actions,.uppy-c-textInput,.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewInnerWrap,.uppy-Dashboard-Item-previewInnerWrap,.uppy-StatusBar{background-color:var(--surface3) !important}.uppy-Dashboard-inner,.uppy-Dashboard-FileCard-info{background-color:var(--surface4) !important}.uppy-StatusBar:before{content:none !important}.uppy-StatusBar-actions{background:none !important}.uppy-c-textInput,.uppy-DashboardContent-bar,.uppy-Dashboard-FileCard-actions,.uppy-StatusBar{border-color:rgba(0,0,0,0) !important}[data-uppy-drag-drop-supported=true] .uppy-Dashboard-AddFiles{border-color:var(--text3)}.uppy-Dashboard-AddFilesPanel{background:var(--surface4) !important}@supports(background: HSL(50 50% 50%/50%)){.uppy-Dashboard-AddFilesPanel{background:linear-gradient(0deg, var(--surface4) 35%, hsla(var(--hue), 20%, var(--lightness, 99%), 85%)) !important}[data-uppy-theme=dark] .uppy-Dashboard-AddFilesPanel{--lightness: 20%}}.uppy-Dashboard-Item-errorDetails,.uppy-StatusBar-details{cursor:help;color:var(--surface4);background-color:var(--text1)}@media(min-width: 820px){.uppy-Dashboard-inner{width:580px;height:460px;max-width:calc(100% - 96px);transition:width .25s cubic-bezier(0.77, 0, 0.175, 1),height .25s cubic-bezier(0.77, 0, 0.175, 1)}}@media(min-width: 820px)and (min-height: 580px){.uppy-Dashboard-inner{max-height:calc(100% - 96px)}}@media(min-width: 820px){.uppy-Dashboard-inner:has(.uppy-DashboardContent-panel){transition:none;width:1024px;height:1024px}.uppy-Dashboard-inner-1{height:580px}.uppy-Dashboard-inner-2{width:780px}.uppy-Dashboard-inner-5{height:660px}.uppy-Dashboard-inner-9{height:780px}}.uppy-StatusBar.is-complete .uppy-StatusBar-progress{background-color:var(--color-success)}.uppy-Dashboard-Item-progressIcon--circle>circle{fill:var(--color-success)}.uppy-StatusBar.is-complete .uppy-StatusBar-statusIndicator{color:var(--color-success)}.button-uppy-close{position:absolute;top:-48px;right:-10px;z-index:1005;--svg-icon-fill: white;--svg-icon-font-size: 36px;--button-padding: 4px}.button-uppy-close span{display:none}@media(min-width: 820px){.button-uppy-close{right:-49px;top:0}}@media(max-width: 819px){.uppy-Dashboard--modal .uppy-Dashboard-inner{top:52px}}.uppy-Dashboard--modal{animation:opacity .25s cubic-bezier(0.215, 0.61, 0.355, 1)}.uppy-is-drag-over:after{background-color:rgba(255,255,255,.1);border-radius:3px;border-color:var(--text3);animation:opacity .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.uppy-transition-slideDownUp-enter{transform:translate3d(0, -5px, 0);transition:.33s cubic-bezier(0.23, 1, 0.32, 1)}.uppy-allow-delete .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{right:10px}.uppy-Informer-animated p{border-radius:3px;background-color:var(--surface1-dark) !important;color:rgba(255,255,255,.9)}.cropper-view-box{background:repeating-conic-gradient(var(--surface2) 0 25%, transparent 0 50%) 50%/20px 20px var(--surface4)}.cropper-modal{background-color:var(--surface2)}.cropper-point{background-color:var(--primary)}.uppy-ImageCropper .cropper-view-box{outline-color:var(--primary)}.uppy-Dashboard-files{--webkit-scrollbar-width: 6px;overscroll-behavior:contain}.uppy-demo-mode .upload-button,.uppy-nolicense .upload-button{display:none}.uppy-demo-mode .uppy-StatusBar-actions,.uppy-nolicense .uppy-StatusBar-actions{justify-content:center}.uppy-demo-mode .uppy-StatusBar-actions:after,.uppy-nolicense .uppy-StatusBar-actions:after{content:var(--upload-disabled-text, "Upload disabled in demo mode");cursor:not-allowed;font-size:1rem;color:var(--text1);border:1px dashed currentColor;border-radius:3px;padding:0 .9em}.uppy-nolicense{--upload-disabled-text: "License required for upload function"}.compressor-container{padding:1rem;font-size:.875rem;text-align:center}.uppy-Dashboard--isDraggingOver .compressor-container{opacity:.15}.compressor-container [data-lang]{display:inline-block}.compressor-options{text-align:left;display:none;margin-top:1rem;grid-gap:1rem;animation:opacity .2s forwards;--spacing: 0}.compressor-enabled .compressor-options{display:flex}@media(max-width: 575.98px){.compressor-options{flex-wrap:wrap}}.compressor-options label{flex-basis:22%;flex-grow:1}@media(max-width: 575.98px){.compressor-options .input,.compressor-options .select{font-size:1rem}}#watermark{flex-grow:1}#watermark-text{resize:none;max-height:84px}:root{--dropdown-surface: hsl(var(--hue), 20%, 20%);--dropdown-surface-header: hsl(var(--hue), 20%, 14%);--dropdown-text: hsl(var(--hue), 20%, 96%);--dropdown-divider-color: hsl(var(--hue), 20%, 26%);--dropdown-top-color: var(--dropdown-surface-header)}.dropdown-menu{color-scheme:dark;--dropdown-item-padding-y: .3em;--dropdown-item-padding-x: 1em;--dropdown-item-padding-left: 1em;--dropdown-item-padding-right: 1.25em;--svg-icon-font-size: 18px;--svg-icon-margin: 0 .5em 0 0;--svg-icon-fill: var(--text1-dark);color:var(--dropdown-text);background-color:var(--dropdown-surface);outline:none;border-radius:3px;box-shadow:var(--dropdown-shadow);padding-bottom:.5em}[data-theme=light] .dropdown-menu{--primary: hsl(var(--hsl-primary-contrast))}@media(hover: hover)and (pointer: fine){.dropdown-menu{font-size:.875rem}}.dropdown-menu:before{content:"";position:absolute;border:solid 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--dropdown-top-color) rgba(0,0,0,0);top:-10px;left:var(--nub-left);transform:translateX(-50%)}.dropdown-menu.nub-bottom:before{top:100%;border-color:var(--dropdown-surface) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.dropdown-header{padding:.6875em var(--dropdown-item-padding-right) .6875em var(--dropdown-item-padding-left);margin-bottom:.3em;background-color:var(--dropdown-surface-header);border-radius:3px 3px 0 0;font-weight:500;color:hsl(var(--hue), 20%, 95%);box-shadow:inset 0 2px 0 -1px var(--dropdown-top-color)}.dropdown-header-basename{width:0px;min-width:100%}.dropdown-header-selected{text-transform:capitalize}.dropdown-header,.dropdown-item{display:flex;align-items:center;white-space:nowrap}.dropdown-item{touch-action:manipulation;outline:none;text-transform:capitalize;text-align:left;width:100%;padding:var(--dropdown-item-padding-y) var(--dropdown-item-padding-right) var(--dropdown-item-padding-y) var(--dropdown-item-padding-left)}.dropdown-item:hover,.dropdown-item:active,.dropdown-item.active,.dropdown-item:focus-visible{--svg-icon-fill: currentColor;background-color:var(--primary);color:#fff}.dropdown-item:focus,.dropdown-item:active{transition:.3s cubic-bezier(0.165, 0.84, 0.44, 1)}.dropdown-item:active{box-shadow:inset 0 0 0 99em rgba(0,0,0,.15)}.dropdown-separator{margin:.5em 0;height:1px;background-color:var(--dropdown-divider-color);border:none}.context-button{display:inline-flex}.context-button .svg-path-dots,.context-button .svg-path-close_thin{transition:transform,fill-opacity;transition-duration:.25s;transition-timing-function:cubic-bezier(0.15, 0.3, 0, 1);transform-origin:center}.context-button .svg-path-close_thin{fill-opacity:0;transform:rotate(-45deg)}.context-button.cm-active .svg-path-dots{fill-opacity:0;transform:rotate(45deg)}.context-button.cm-active .svg-path-close_thin{fill-opacity:1;transform:rotate(0deg)}#contextmenu{position:fixed;display:none;z-index:var(--z-index-contextmenu)}.exif-item small,.exif-item:before{font-size:.8em;opacity:.8;line-height:1}.exif-Model{--svg-icon-margin: 0 5px 0 -2px}.exif-ISOSpeedRatings:before{margin-right:1px;content:"ISO"}.exif-FocalLength small{margin-left:1px}.exif-ApertureFNumber::first-letter{font-style:italic}.svg-file-bg{fill:var(--svg-file-bg)}.svg-file-flip{fill:var(--svg-file-flip)}.svg-file-icon{fill:var(--svg-file-icon)}.svg-file-ext{font-family:Menlo,"Fira Mono","Cascadia Mono","Roboto Mono","Droid Sans Mono","DejaVu Sans Mono","Oxygen Mono",Consolas,"Ubuntu Mono",Monaco,monospace;font-size:12px;fill:#fff;fill-opacity:.9;text-transform:uppercase;text-anchor:middle;dominant-baseline:middle}.svg-folder-large{--svg-folder-bg: var(--svg-folder-bg-large);--svg-folder-fg: var(--svg-folder-fg-large)}.svg-folder-bg{fill:var(--svg-folder-bg)}.svg-folder-fg{fill:var(--svg-folder-fg)}.svg-folder-symlink{fill:var(--svg-folder-bg)}.svg-file-forbidden,.svg-folder-forbidden{fill:var(--color-danger)}.path-exclamation{fill:#fff;fill-opacity:.85}.svg-application{fill:var(--type-application)}.svg-archive{fill:var(--type-archive)}.svg-audio{fill:var(--type-audio)}.svg-cd{fill:var(--type-cd)}.svg-code{fill:var(--type-code)}.svg-default{fill:var(--type-default)}.svg-excel{fill:var(--type-excel)}.svg-font{fill:var(--type-font)}.svg-open_in_new{fill:var(--type-open_in_new)}.svg-pdf{fill:var(--type-pdf)}.svg-powerpoint{fill:var(--type-powerpoint)}.svg-text{fill:var(--type-text)}.svg-video{fill:var(--type-video)}.svg-word{fill:var(--type-word)}.svg-youtube{fill:var(--type-youtube)}.svg-vimeo{fill:var(--type-vimeo)}.svg-image,.polygon-image,.svg-panorama_variant{fill:var(--type-image)}.svg-image .svg-file-text-bg{fill:var(--svg-image-text-bg)}.circle-sun{fill:var(--svg-image-sun)}.files-icon-overlay{fill:var(--icon-overlay-fill, var(--svg-file-flip));fill-opacity:var(--icon-overlay-fill-opacity, 1)}.files-a-img{--icon-overlay-fill: white;--icon-overlay-fill-opacity: 0}.files-a-loaded{--icon-overlay-fill-opacity: .9}.svg-path-file_pdf_box{fill:#f63f35}.svg-marker{transition:fill .2s}.map-link-icon{display:flex}.map-link-icon:hover{--svg-icon-fill: hsl(5, 70%, 57%)}[data-lang]:first-letter,time:first-letter{text-transform:uppercase}.license-popup{--swal-border-top: var(--color-success);width:420px;margin:auto}@media(max-width: 575.98px){.license-popup .swal2-close{display:block !important;margin:1rem .5rem}}.license-container{line-height:1.3;color:var(--text2)}.license-header a:hover{text-decoration:underline}.license-header .alert{margin:0 -1.5rem var(--spacing);padding:.75em 1.5rem;border-radius:0}.license-title{font-size:1.125rem;color:var(--text1)}@media(max-width: 575.98px){.license-title{margin-right:2rem}}.license-features{box-shadow:0 -1px 0px var(--border-color);padding:1rem 0 0;margin:1rem 0 1.25rem}.license-feature{line-height:1.5rem;font-size:.875rem;--svg-icon-fill: var(--color-success);--svg-icon-margin: 0 5px 0 0;--svg-icon-font-size: 18px}.license-types-container{background-color:var(--surface3);margin:0 -1.5rem .75rem;padding:1.5rem 1.5rem 1.25rem;border-top:1px solid var(--surface2);border-bottom:1px solid var(--surface2)}.license-types{display:flex;gap:1.5rem;font-size:.875rem;line-height:1.4}.license-type{flex:50%;display:flex;flex-direction:column}.license-type-title{margin:0;font-size:1.125rem;color:var(--text1)}.license-type-title:after{font-weight:300;content:" License";color:var(--text2)}.license-type-description{margin:.25rem -0.5rem .75rem 0}.license-type-button{width:100%;font-family:var(--font-family-monospace);margin-top:auto}.license-types-footer{display:block;margin-top:.75rem}.license-types-link{color:var(--color-success);text-decoration:underline}.page-login{height:100%}.page-login-body{display:flex;flex-direction:column;min-height:100%;background-image:radial-gradient(circle, var(--surface4) 180px, var(--surface1))}.login-container{margin:auto;padding:1.5rem 1.5rem 4rem;font-size:1.25rem;animation:opacity 1s}@media(min-width: 576px){.login-container{max-width:400px}}.login-header{margin:0 0 2rem;font-weight:200;font-size:3rem}.login-form-buttons{margin-top:1rem;display:flex;gap:1rem}.login-button:has(+.login-cancel-button),.login-cancel-button{white-space:nowrap;flex-basis:50%}.form-loading{--spinner-size: 48px}.form-loading .login-container{transition:opacity .66s cubic-bezier(0.23, 1, 0.32, 1);opacity:.2;filter:blur(1px);pointer-events:none}:root{--touch-callout: default}img,video,.files-li,.menu-li{-webkit-touch-callout:var(--touch-callout)}.no-transition *{transition-property:none !important}.no-transition-strict *{transition-property:none !important}.action-processing{pointer-events:none;transition:opacity .3s;opacity:.5}.settings-popup{--settings-popup-width: 100%;width:var(--settings-popup-width);margin:0 auto auto;min-height:580px;max-height:calc(100vh - var(--padding, 0rem)*2)}@media(min-width: 992px){.settings-popup{--settings-popup-width: calc(5vw + 480px)}}@supports(max-height: 100dvh){@media(hover: none){.settings-popup{max-height:calc(100dvh - var(--padding, 0rem)*2 + 1px)}}}@media(hover: hover)and (min-width: 992px){.settings-popup{--settings-fullscreen-button-display: inline-flex}}.settings-fullscreen{height:100%;width:100%;--fullscreen-expand: none;--fullscreen-collapse: block;--users-max-width: calc(var(--settings-popup-width) - 3rem)}.settings-loading{--spinner-size: 48px;cursor:wait}.settings-loading .settings-html-container,.settings-loading .swal2-actions{filter:blur(1px);opacity:.5;pointer-events:none}.settings-html-container,.users,.swal2-actions{transition:opacity .3s,filter .3s}.settings-popup,.settings-html-container{display:flex !important;flex-direction:column}.settings-html-container{margin-top:.5rem;min-height:160px;flex:1}.settings-html-container .button,.settings-html-container .uppy-Dashboard-browse{flex-shrink:0;margin-left:0;text-transform:capitalize;min-width:var(--button-min-width)}.user,.users{max-width:var(--users-max-width, 100%);display:flex;gap:1rem;margin-bottom:1.5rem;--spacing: 0}@media(pointer: fine){.user,.users{font-size:.875rem}}.user{padding-top:1.5rem;border-top:1px solid var(--border-color);animation:opacity .3s}.user-default .user{display:none}.user-user .user-cancel{display:none}.user-new .users{pointer-events:none;filter:blur(1px);opacity:.5}.user-new .user-remove{display:none}.user-settings{display:flex;flex:1;min-height:108px;position:relative;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);margin:0 -1.5rem}.user-settings:hover{--settings-fullscreen-button-opacity: 1}.settings-fullscreen-button{position:absolute;z-index:1;right:.5rem;top:.5rem;color:var(--text2);opacity:var(--settings-fullscreen-button-opacity, 0);display:var(--settings-fullscreen-button-display, none)}.cm-s-one-dark+.settings-fullscreen-button:not(:hover){color:var(--text1-dark)}.settings-validation{flex-shrink:0;margin-top:-1rem}.alert-install-mode{order:-1;margin:0 -1.5rem 1.5rem;padding:1rem 1.5rem;border-radius:0;cursor:pointer}.alert-install-mode .svg-alert_circle_outline{position:absolute;right:1rem}[data-tooltip]{position:relative}[data-tooltip]:after{display:var(--tooltip-display, block);position:absolute;content:attr(data-tooltip);white-space:nowrap;pointer-events:none;z-index:var(--z-index-tooltip);padding:8px;line-height:1;border-radius:3px;font-size:.75rem;font-weight:normal;text-transform:capitalize;top:calc(100% + 5px);right:var(--tooltip-right, 50%);transform:translateX(var(--tooltip-translateX, 50%));background-color:var(--surface1-dark);color:hsl(var(--hue), 20%, 98%);font-weight:500;opacity:0;visibility:hidden;transition:opacity .15s cubic-bezier(0.215, 0.61, 0.355, 1),visibility 0s .15s}[data-tooltip]:hover:after{opacity:1;visibility:visible;transition:opacity .25s cubic-bezier(0.215, 0.61, 0.355, 1) var(--tooltip-delay, 0s)}.buttons-selected:has(.button-icon:hover){--tooltip-duration: 0s}.tooltip-left,#topbar-top [data-tooltip]:last-child{--tooltip-right: 0;--tooltip-translateX: 0}.tooltip-right,.button-select-toggle{--tooltip-right: 100%;--tooltip-translateX: 100%}.updating,.logging,.updated{overflow:hidden}.updating:after,.logging:after,.updated:after{content:"";background-color:var(--surface1);z-index:99998;position:absolute;animation:opacity .5s forwards}@supports(background-color: HSL(50 50% 50%/50%)){.updating:after,.logging:after,.updated:after{background-color:var(--modal-bg)}}.updating:before,.logging:before,.updated:before{color:var(--text1);position:absolute;z-index:99999}[data-theme=contrast] .updating:before,[data-theme=contrast] .logging:before,[data-theme=contrast] .updated:before{color:var(--text1-dark)}.updating,.logging{--spinner-size: 48px}.logging:after{animation:none}.updated:before{content:attr(data-updated);top:50%;left:50%;transform:translateX(-50%) translatey(-50%)}:root{--sidebar-width: calc(10vw + 180px);--sidebar-width-small: 85vw;--sidebar-width-hover: 480px}.menu-enabled #main{width:100%}@media(min-width: 992px){.menu-enabled #main{width:calc(100% - var(--sidebar-width));transform:translateX(var(--sidebar-width));transition:transform .3s cubic-bezier(0.4, 0.5, 0, 1),width 0s .3s}.menu-enabled.sidebar-closed #main{width:100%;transition:transform .3s cubic-bezier(0.4, 0.5, 0, 1),width 0s 0s;transform:translateX(0)}.menu-enabled:not(.sidebar-closed) #topbar{margin-left:-1px}}#sidebar,#sidebar-bg{position:fixed;top:0;left:0;height:100%}#sidebar{z-index:var(--z-index-sidebar)}.svg-path-menu{display:none}@media(min-width: 992px){.svg-path-menu_back{display:inline;transform-origin:center}}.sidebar-closed #sidebar{width:0}.sidebar-closed .svg-path-menu{display:inline}.sidebar-closed .svg-path-menu_back{display:none}.sidebar-closed #sidebar-inner{transform:translateX(-100%)}@media screen and (hover: hover)and (pointer: fine)and (min-width: 992px){.sidebar-closed #sidebar{width:5px}.sidebar-closed #sidebar-inner{transition-delay:.3s;width:var(--sidebar-width-hover)}.sidebar-closed #sidebar-bg{transition:opacity .3s .3s,visibility 0s 0.6s}.sidebar-closed .svg-path-menu_back{transform:scaleX(-1)}.sidebar-closed #sidebar-toggle:hover .svg-path-menu{display:none}.sidebar-closed #sidebar-toggle:hover .svg-path-menu_back{display:inline}.sidebar-closed #sidebar:hover #sidebar-inner{transform:translateX(0);transition-delay:0s}.sidebar-closed #sidebar:hover+#sidebar-bg{transition-delay:0s;visibility:visible;opacity:1}}@media(max-width: 991.98px){.sidebar-closed #sidebar-bg{transition:opacity .3s,visibility 0s .3s;visibility:hidden;opacity:0}}.sidebar-closed .sidebar-clicked{pointer-events:none}.sidebar-closed .sidebar-clicked #sidebar-inner{transition-delay:0s}.sidebar-closed .sidebar-clicked+#sidebar-bg{transition-delay:0s,.3s}#sidebar-bg{width:100%;background-color:var(--modal-bg);will-change:opacity;z-index:var(--z-index-sidebar-bg)}@media(max-width: 991.98px){#sidebar-bg{transition:opacity .3s,visibility 0s;visibility:visible;opacity:1}}@media(min-width: 992px){#sidebar-bg{pointer-events:none;transition:opacity .3s,visibility 0s .3s;visibility:hidden;opacity:0}}#sidebar-inner{width:var(--sidebar-width-small);height:100%;transition:transform .3s cubic-bezier(0.4, 0.5, 0, 1)}@media(min-width: 992px){#sidebar-inner{transition:transform .3s cubic-bezier(0.4, 0.5, 0, 1),width .3s cubic-bezier(0.4, 0.5, 0, 1);width:var(--sidebar-width)}}#sidebar-menu{-webkit-overflow-scrolling:touch;overflow-y:auto}.custom-section{background-color:var(--surface4)}.logo-small-container{border-bottom:1px solid var(--surface1);padding:var(--logo-padding, 0.5rem);text-align:var(--logo-align, center);height:var(--logo-height, 59px)}.logo-large-container{display:none;max-height:38px;flex:1;justify-content:center}.logo{max-height:100%}@media(max-width: 991.98px){.logo-small-container~#main #topbar-top{padding-left:10px !important}}@media(min-width: 992px){.logo-small-container{display:none}.logo-large-container{display:flex}}.custom-footer,.custom-footer-fixed{text-align:center;padding:10px;font-size:.875rem}.custom-footer-fixed{background-color:var(--surface2);position:fixed;z-index:4;bottom:0;width:100%}.custom-links{display:inline-flex;gap:.75em;color:var(--primary)}.custom-links a:hover{text-decoration:underline}.svg-path-plus,.svg-path-minus,.svg-path-folder_plus,.svg-path-folder_minus{transition-property:transform,fill-opacity;transition-duration:.25s;transition-timing-function:cubic-bezier(0.4, 0.5, 0, 1);transform-origin:center}.svg-path-minus,.svg-path-folder_minus{fill-opacity:var(--minus-opacity, 0);transform:rotate(var(--minus-rotation, -90deg))}.svg-path-plus,.svg-path-folder_plus{fill-opacity:var(--plus-opacity, 1);transform:rotate(var(--plus-rotation, 0deg))}.menu-li-open>.menu-a,#menu-toggle.is-expanded{--minus-rotation: 0deg;--plus-rotation: 90deg;--minus-opacity: 1;--plus-opacity: 0}@media(hover: hover){.menu-li-open>.menu-active:active,.menu-li-open>.menu-a .menu-icon-toggle:active,.menu-li-open>.menu-a .menu-icon-folder-toggle:active,#menu-toggle.is-expanded:active{--minus-opacity: 0;--plus-opacity: 1;--minus-rotation: -45deg;--plus-rotation: 45deg}}#sidebar-toggle{position:absolute;z-index:var(--z-index-sidebar-toggle);top:10px;--button-padding: 7px;--button-border-radius: 0 3px 3px 0;background-color:var(--primary);color:#fff}#sidebar-inner{display:flex;flex-direction:column}#sidebar-topbar{padding:10px 0 10px 46px;border-bottom:1px solid var(--surface1);min-height:59px;background-color:var(--surface3)}@media(min-width: 992px){#sidebar-topbar{transition:background-color .3s}:root:not(.sidebar-closed) #sidebar-topbar{background-color:var(--surface4)}}#menu-toggle{--button-padding: 7px}#menu-toggle.not-expandable{display:none}#sidebar-menu{flex:1;outline:none;background-color:var(--surface3);position:relative;overflow-y:overlay;--webkit-scrollbar-width: 4px}.sidebar-closed #sidebar-menu{background-color:var(--surface3)}@media(min-width: 992px){#sidebar-menu{transition:background-color .5s cubic-bezier(0.215, 0.61, 0.355, 1);background-color:var(--surface1);background-image:linear-gradient(var(--surface3), transparent)}}@media(max-width: 991.98px){#sidebar-menu{overscroll-behavior-y:contain}}.sidebar-closed #sidebar-menu{overscroll-behavior-y:contain}#sidebar-menu:not(:hover){--scrollbar-color: transparent}.sidebar-spinner{--spinner-margin: 1rem 10px 0 7px}.menu-root,.menu-ul{margin:0;list-style:none}.menu-root{padding:1rem 0 3rem}.menu-ul{padding:0;overflow:hidden;height:0px;opacity:0;display:none}[data-theme=light]{--menu-surface-hover-lightness: 30%;--menu-icon-folder-fill-opacity: 1}[data-theme=contrast],[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview{--menu-surface-hover-lightness: 70%;--menu-icon-folder-fill-opacity: .9}.menu-a{opacity:.9;background-color:var(--menu-surface, initial);--menu-surface-hover: rgba(var(--rgb-theme-invert), .05);--menu-surface-active: var(--menu-surface-hover);--menu-color: var(--text1);--menu-text-indent: 6px;--menu-line-height: 28px;--menu-folder-icon-size: 18px;--menu-border-color: var(--primary);color:var(--menu-color);font-size:1rem;line-height:var(--menu-line-height);padding-left:calc((38px - var(--menu-folder-icon-size))/2 + (var(--menu-folder-icon-size) + var(--menu-text-indent) - 1px)*var(--depth));display:block;touch-action:manipulation;transition-property:color,box-shadow,opacity,background-color;transition-duration:.3s;transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}@supports(background-color: HSL(50 50% 50%/50%)){.menu-a{--menu-surface-hover: hsl(var(--hue) 60% var(--menu-surface-hover-lightness) / 7%);--menu-surface-active: hsl(var(--hsl-primary) / 16%)}}@media(pointer: fine){.menu-a{font-size:.875rem;--menu-line-height: 24px}}.menu-a:focus-visible{background-color:var(--menu-surface-hover);outline-color:var(--primary);outline-offset:-1px}.menu-li-open>.menu-ul{height:auto;opacity:1;display:block}.menu-active,.menu-li-closed:has(.menu-active)>.menu-a{--menu-surface: var(--surface1)}.menu-active{opacity:1;box-shadow:inset 2px 0 0 var(--menu-border-color);--menu-icon-folder-fill: var(--primary);--menu-icon-folder-fill-opacity: 1}.menu-a-forbidden{cursor:not-allowed;--menu-icon-folder-fill: var(--color-danger-light) !important;--menu-surface-active: hsl(var(--hsl-danger) / 16%);--menu-border-color: var(--color-danger)}.menu-icon{width:1em;height:1em;vertical-align:bottom}.menu-icon-folder{transition-property:fill,fill-opacity,transform;transition-duration:.3s;transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1);font-size:var(--menu-folder-icon-size);fill:var(--menu-icon-folder-fill, var(--text2));fill-opacity:var(--menu-icon-folder-fill-opacity);margin:0 var(--menu-text-indent) calc((var(--menu-line-height) - var(--menu-folder-icon-size))/2) 0}.menu-icon-folder:not(.menu-icon-folder-toggle){pointer-events:none}.menu-icon-folder-toggle{will-change:fill,fill-opacity,transform}.menu-icon-folder-toggle:hover{--menu-icon-folder-fill: var(--primary)}.svg-path-folder_plus,.svg-path-folder_minus{fill:var(--menu-icon-folder-fill, var(--menu-color));transition-property:transform,fill-opacity,fill}.menu-icon-toggle{float:right;font-size:var(--menu-line-height);--button-padding: calc((var(--menu-line-height) - 24px) / 2);--button-box-shadow-active: none;will-change:opacity,fill,transform,background-color;fill:var(--menu-color)}@media(hover: hover){.menu-a{transition-property:color,box-shadow}.menu-a:focus,.menu-a:active,.menu-a.cm-active{transition-property:color,box-shadow,opacity,background-color}.menu-a:hover{opacity:1;background-color:var(--menu-surface-hover);--menu-icon-folder-fill-opacity: 1}.menu-a:active{background-color:var(--menu-surface-active);--menu-color: var(--text1);box-shadow:inset 3px 0 0 var(--menu-border-color);--menu-icon-folder-fill: var(--primary);--menu-icon-folder-fill-opacity: 1;opacity:1}.menu-active:active .menu-icon-toggle{background-color:var(--primary);fill:#fff}.menu-icon-toggle:active,.menu-icon-folder-toggle:active{transform:scale(0.95)}#sidebar:not(:hover){--toggle-opacity: 0;--toggle-transition-delay: .3s}#menu-toggle,.menu-icon-toggle{opacity:var(--toggle-opacity, 1);transition-delay:var(--toggle-transition-delay, 0s)}}.menu-a.cm-active{background-color:var(--menu-surface-active);--menu-color: var(--text1);box-shadow:inset 3px 0 0 var(--menu-border-color);--menu-icon-folder-fill: var(--primary);--menu-icon-folder-fill-opacity: 1;opacity:1}.menu-spinner{opacity:1;--spinner-size: var(--menu-folder-icon-size);--spinner-margin: calc((var(--menu-line-height) - var(--menu-folder-icon-size)) / 2) 0 0 0;--menu-icon-folder-fill: transparent}#topbar{z-index:var(--z-index-topbar)}.topbar-sticky{position:-webkit-sticky;position:sticky;top:0}.headroom{will-change:transform,opacity;transition:transform .2s cubic-bezier(0.215, 0.61, 0.355, 1),opacity .2s}.headroom--unpinned{transform:translateY(-10px);opacity:0;pointer-events:none}#topbar-top{border-bottom:1px solid var(--surface1);padding:10px;display:flex;min-height:58px;background-color:var(--surface4);--button-margin: -3px 0 -3px 1px;--tooltip-delay: .3s}@media(min-width: 768px){#topbar-top{padding-left:1rem}}.topbar-top-scroll{overflow-x:scroll;--tooltip-display: none;--dropdown-menu-topbar-position: fixed}.topbar-top-scroll .dropdown-menu-topbar:before{display:none}.menu-enabled #topbar-top{padding-left:48px}@media(min-width: 992px){.menu-enabled #topbar-top{padding-left:6px}}.menu-enabled.sidebar-closed #topbar-top{padding-left:48px}#change-sort{margin-right:auto}#search-container{position:relative;margin-right:.5rem;display:flex;flex-direction:column;--filter-padding-right: 5px}@media(min-width: 576px){#search-container{--filter-reset-display: block;--filter-padding-right: 32px}}@media(max-width: 767.98px){#search-container{flex-grow:1}}@media(min-width: 768px){#search-container{min-width:200px}#search-container:after{content:attr(data-input);padding:0 calc(var(--filter-padding-right) + 4px) 0 40px;height:0;overflow:hidden;visibility:hidden}}#search{padding:0 var(--filter-padding-right) 0 40px;--spacing: 0;flex-grow:1}#search::placeholder{opacity:var(--placeholder-opacity, 1);transition:.3s cubic-bezier(0.23, 1, 0.32, 1);text-transform:capitalize}#search:placeholder-shown:hover::placeholder{color:var(--text2)}#search:placeholder-shown:not(:hover):not(:focus)+.filter-search-icon{fill:var(--text2)}.filter-match #search:not(:placeholder-shown),.filter-nomatch #search:not(:placeholder-shown){--input-box-shadow: var(--input-box-shadow-active);--input-active-box-shadow-alpha: 50%}#search:focus{--placeholder-opacity: 0}@supports not (-moz-appearance: none){#search:focus+.filter-search-icon{transform:scale(1.125)}}#search:placeholder-shown~.filter-reset,#search:not(:focus):not(:hover)~.filter-reset:not(:hover){opacity:0;pointer-events:none}#search:disabled{opacity:.5}#search:disabled+.filter-search-icon{opacity:.5}.search-small-focused{min-height:var(--height, auto)}.search-small-focused~*{display:none}.search-small{--placeholder-opacity: 0}.filter-match{--input-active-hsl: var(--hsl-success);--button-hsl: var(--hsl-success)}.filter-nomatch{--input-active-hsl: var(--hsl-danger);--button-hsl: var(--hsl-danger)}.filter-search-icon,.filter-reset{position:absolute}.filter-search-icon{transition:.3s cubic-bezier(0.23, 1, 0.32, 1);top:7px;left:10px;will-change:transform,opacity,fill}.filter-reset{display:var(--filter-reset-display, none);right:0;--button-margin: 4px;--button-padding: 3px}#change-theme:focus{transition-property:all}.svg-path-theme_contrast,.svg-path-theme_light,.svg-path-theme_dark{transform-origin:center;transition:transform .3s cubic-bezier(0.165, 0.84, 0.44, 1),fill-opacity .3s cubic-bezier(0.165, 0.84, 0.44, 1) !important}.svg-path-theme_contrast{fill-opacity:var(--theme-contrast-opacity, 0);transform:rotate(var(--theme-contrast-rotate, -45deg))}[data-theme=contrast]{--theme-contrast-opacity: 1;--theme-contrast-rotate: 0deg}.svg-path-theme_light{fill-opacity:var(--theme-light-opacity, 0);transform:rotate(var(--theme-light-rotate, -45deg))}.modal-codemirror-theme-light,[data-theme=light]{--theme-light-opacity: 1;--theme-light-rotate: 0deg}.svg-path-theme_dark{fill-opacity:var(--theme-dark-opacity, 0);transform:rotate(var(--theme-dark-rotate, -45deg))}.modal-codemirror-theme-dark,[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview{--theme-dark-opacity: 1;--theme-dark-rotate: 0deg}.dropdown{position:relative}.dropdown-menu-topbar{display:none;position:var(--dropdown-menu-topbar-position, absolute);z-index:1;min-width:200px;margin-top:1rem;transform:translateY(-2px) translateX(50%);right:calc(50% - var(--offset, 0px));--nub-left: calc(50% - var(--offset, 0px));visibility:hidden;opacity:0;transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1) !important;transition:visibility 0s .2s,opacity .2s,transform .2s}.mouse-hover .dropdown-menu-topbar{transition:visibility 0s .4s,opacity .2s .2s,transform 0s .4s}.touch-open .dropdown-menu-topbar,.mouse-hover:hover .dropdown-menu-topbar{z-index:var(--z-index-dropdown-open);transition:visibility 0s,opacity .2s,transform .2s;visibility:visible;opacity:1;transform:translateY(0) translateX(50%)}.mouse-hover:hover .dropdown-menu-topbar{transition-delay:.2s}.dropdown-menu-topbar .dropdown-header{text-transform:uppercase}.dropdown-item-sort .svg-icon-sort{order:2;--svg-icon-margin: 0 0 0 auto}.dropdown-item-sort .svg-path-sort_name_desc,.dropdown-item-sort .svg-path-sort_kind_desc,.dropdown-item-sort .svg-path-sort_size_asc,.dropdown-item-sort .svg-path-sort_date_asc{display:none}.sort-asc .svg-path-sort_size_asc,.sort-asc .svg-path-sort_date_asc{display:block}.sort-asc .svg-path-sort_size_desc,.sort-asc .svg-path-sort_date_desc{display:none}.sort-desc .svg-path-sort_name_desc,.sort-desc .svg-path-sort_kind_desc{display:block}.sort-desc .svg-path-sort_name_asc,.sort-desc .svg-path-sort_kind_asc{display:none}.svg-path-sort_size_asc{transform-origin:center;transform:scaleY(-1)}#layout-options{padding:1em var(--dropdown-item-padding-x) .5em;border-top:1px solid var(--dropdown-divider-color);margin-top:.5em}#layout-options .checkbox-label{margin-top:.25em}#layout-options .checkbox{font-size:18px}#layout-options label{transition:color .2s}#layout-options>*:not(:hover){color:hsl(var(--hue), 20%, 88%)}.layout-range-label{display:flex;align-items:center;justify-content:space-between}.layout-label-type{font-size:.7em;background-color:var(--dropdown-divider-color);padding:.3em .6em;border-radius:3px;z-index:1}.layout-aspect-ratio{font-family:var(--font-family-monospace);letter-spacing:-1px}.form-range{width:100%;height:1.25rem;background:none;outline:none;z-index:1;position:relative;--range-border-color: hsl(var(--hue), 20%, 28%);--range-thumb-color: hsl(var(--hue), 20%, 50%)}.form-range::-webkit-slider-runnable-track{width:100%;height:.25rem;border-radius:2px;background-color:var(--range-border-color);transition:.2s}.form-range::-moz-range-track{width:100%;height:.25rem;border-radius:2px;background-color:var(--range-border-color);transition:.2s}.form-range::-webkit-slider-thumb{-webkit-appearance:none;width:1.25rem;height:1.25rem;margin-top:-0.5rem;border:1px solid var(--dropdown-surface);box-shadow:0 0 15px -5px #000;box-sizing:border-box;border-radius:50%;background-color:var(--range-thumb-color);cursor:pointer;transition:.2s;transform:scale(var(--range-thumb-scale, 1))}.form-range::-moz-range-thumb{-webkit-appearance:none;width:1.25rem;height:1.25rem;margin-top:-0.5rem;border:1px solid var(--dropdown-surface);box-shadow:0 0 15px -5px #000;box-sizing:border-box;border-radius:50%;background-color:var(--range-thumb-color);cursor:pointer;transition:.2s;transform:scale(var(--range-thumb-scale, 1))}.form-range:hover{--range-border-color: hsl(var(--hue), 20%, 34%);--range-thumb-color: hsl(var(--hue), 20%, 70%)}.form-range:active,.form-range:focus-visible{--range-thumb-color: var(--primary);--range-thumb-scale: 1.25}.form-range:before{content:"";transition:.2s;width:6px;height:6px;background-color:var(--range-border-color);position:absolute;z-index:-1;border-radius:50%;margin-top:6px;left:calc(var(--range-default-pos, 0.5)*100% - var(--range-default-pos, 0.5)*1rem + .5rem - 6px/2)}@media(max-width: 575.98px){#topbar-fullscreen{display:none}}.dropdown-lang-loading{--spinner-size: 48px;--spinner-margin: -5px 0 0 -1px;cursor:not-allowed}.dropdown-lang-loading .dropdown-item-lang{opacity:.7;pointer-events:none}.button-lang:after{line-height:24px;content:attr(data-text);text-transform:uppercase;width:24px;display:block;font-family:var(--font-family-monospace);font-weight:bold}.dropdown-lang-items{padding:8px 16px;display:grid;grid-gap:12px;grid-template-columns:1fr 1fr 1fr 1fr 1fr}.dropdown-item-lang{padding:18px;border-radius:50%;position:relative;background-repeat:no-repeat;background-size:cover;background-position:center}.dropdown-item-lang:after{transition:.2s;font-size:10px;line-height:1;width:20px;padding:5px 0;content:attr(data-action);position:absolute;z-index:1;font-weight:700;text-transform:uppercase;white-space:nowrap;top:-5px;left:-5px;color:#fff;background-color:var(--surface1-dark);border-radius:inherit}.dropdown-item-lang:hover,.dropdown-item-lang.dropdown-lang-active{box-shadow:0 0 0 3px var(--text1-dark)}.dropdown-item-lang:active{transform:scale(1.1)}.dropdown-item-lang:active,.dropdown-item-lang:focus{transition:.2s}#topbar-breadcrumbs{display:flex;align-items:flex-start;line-height:24px;background-color:var(--surface3);padding:.5rem 13px .5rem 39px;border-bottom:1px solid var(--surface1);--fade-in-animation: opacity .5s forwards;font-size:14px}@media(min-width: 768px){#topbar-breadcrumbs{padding-left:48px}}#breadcrumbs{display:flex;flex-wrap:wrap;min-width:0;margin-right:auto}.breadcrumbs-info{color:var(--text2);background-color:var(--surface1);border-radius:999px;white-space:nowrap;padding:2px 10px;margin:-2px 10px -2px 0;animation:var(--fade-in-animation)}@media(max-width: 767.98px){.breadcrumbs-info{display:none}}.breadcrumbs-info:empty{display:none}.breadcrumbs-info-type{display:inline-block}.breadcrumbs-info-size{margin-left:.4em}.breadcrumbs-info-size:before{margin-right:.4em;content:"·"}.folder-buttons{display:flex;gap:var(--small-buttons-gap);margin:calc(var(--small-buttons-bar-padding-y) - 8px) 0;animation:var(--fade-in-animation);--svg-icon-font-size: var(--small-buttons-font-size);--button-padding: var(--small-buttons-padding)}@media(max-width: 991.98px){.button-folder-action:not([data-action=contextmenu]){display:none}}.crumb:not(:first-child):before{content:"/";opacity:.5}.crumb:first-child{margin-left:-40px}.crumb-link{padding:0 8px}@media(hover: hover){.crumb-link:hover{text-decoration:underline}}.crumb:last-child .crumb-link{text-decoration:none;cursor:context-menu}.crumb:last-child .crumb-link.cm-active{--cm-icon: "-";--cm-icon-opacity: 1}.crumb:last-child .crumb-link:hover{--cm-icon-opacity: 1}.crumb:last-child .crumb-link:after{content:var(--cm-icon, "+");opacity:var(--cm-icon-opacity, 0);transition:opacity .15s;margin-left:5px;font-family:var(--font-family-monospace);line-height:1;display:inline-block}#files-sortbar{font-size:.875rem;line-height:24px;background-color:var(--surface2);border-bottom:1px solid var(--surface1);display:none}@media(min-width: 768px){#files-sortbar{display:var(--sortbar-display, none)}}.sortbar-list,.sortbar-imagelist{--sortbar-display: block}.sortbar-inner{display:flex;max-width:calc(var(--list-max) - 20px)}.sortbar-item{display:flex;align-items:center;overflow:hidden;flex-shrink:0;padding-top:4px;padding-bottom:4px;touch-action:manipulation;cursor:pointer;transition:.2s;--svg-icon-margin: 0 0 0 3px;--svg-icon-font-size: 18px;box-shadow:inset -1px 0 0 var(--surface1)}.sortbar-item:not(:hover):not(.sortbar-active){color:var(--text2)}.sortbar-item:hover{background-color:var(--surface3)}.sortbar-active{background-color:var(--surface3);font-weight:500;letter-spacing:-0.02ch}.sortbar-name{flex:1;padding-left:59px}.sortbar-kind{padding-left:15px;padding-right:5px}.sortbar-size{justify-content:flex-end;flex-basis:100px;padding-right:5px}.sortbar-date{--date-base: 165px;flex-basis:calc(var(--date-base) + var(--list-date-flex, 3)*8px);padding-left:10px;padding-right:5px}@media(min-width: 992px)and (max-width: 1199.98px){.sidebar-closed .sortbar-name{padding-left:66px}.sidebar-closed .sortbar-kind{padding-right:10px}.sidebar-closed .sortbar-size{flex-basis:110px;padding-right:10px}.sidebar-closed .sortbar-date{--date-base: 170px;padding-left:15px}}@media(min-width: 1200px){.sortbar-name{padding-left:66px}.sortbar-kind{padding-right:10px}.sortbar-size{flex-basis:110px;padding-right:10px}.sortbar-date{--date-base: 170px;padding-left:15px}}.sortbar-list{padding:0 20px 0 0}.sortbar-imagelist .sortbar-name{padding-left:115px}.sortbar-imagelist .sortbar-date{--date-base: 170px;flex-basis:calc(var(--date-base) + var(--list-date-flex, 3)*9px)}@media(min-width: 992px){.sortbar-imagelist{padding:0 20px 0 0}.sortbar-imagelist .sortbar-name{padding-left:135px}.sidebar-closed .sortbar-imagelist .sortbar-date{--date-base: 175px}}@media(min-width: 1200px){.sortbar-imagelist .sortbar-date{--date-base: 175px}}.svg-icon-sort path{transition:fill-opacity .3s cubic-bezier(0.23, 1, 0.32, 1),transform .3s cubic-bezier(0.23, 1, 0.32, 1)}.svg-icon-sort .svg-path-chevron_up{fill-opacity:var(--up, 0);transform:translateY(var(--upy, -4px))}.svg-icon-sort .svg-path-chevron_down{fill-opacity:var(--down, 0);transform:translateY(var(--downy, 4px))}.sortbar-item:hover,.dropdown-item-sort:hover{--up: 1;--down: 1;--upy: -5px;--downy: 5px}.sortbar-name:not(.sortbar-active):active,.sortbar-kind:not(.sortbar-active):active{--down: .3}.sortbar-size:not(.sortbar-active):active,.sortbar-date:not(.sortbar-active):active{--up: .3}.sort-asc{--upy: 0;--up: 1;--down: 0}.sort-asc:hover:not(:active){--upy: 0;--down: 0}.sort-asc:active{--up: .3}.sort-desc{--downy: 0;--up: 0;--down: 1}.sort-desc:hover:not(:active){--downy: 0;--up: 0}.sort-desc:active{--down: .3}#topbar-info{display:flex;align-items:flex-start;color:rgba(255,255,255,.9);line-height:24px;background-color:var(--topbar-info-surface);padding:.5rem .5rem .5rem 7px;font-size:14px;animation:opacity .3s cubic-bezier(0.23, 1, 0.32, 1)}#topbar-info:empty{display:none}@media(min-width: 768px){#topbar-info{padding:.5rem .5rem .5rem 1rem}}#topbar-info>.svg-icon:first-child{margin-right:.5rem}.info-hidden{display:none !important}.info-warning,.info-error{word-break:break-all}.info-warning [data-lang],.info-error [data-lang]{flex-shrink:0}.info-warning{--topbar-info-surface: var(--color-info)}.info-search{--topbar-info-surface: var(--color-success)}.info-error,.info-nomatch{--topbar-info-surface: var(--color-danger)}.info-search-count,.info-search-phrase{background-color:rgba(0,0,0,.15);border-radius:3px}.info-search-count{flex-shrink:0;min-width:24px;text-align:center;padding:0 .4375em}.info-search-lang{flex-shrink:0;margin:0 .4375em}.info-search-phrase{line-height:18px;padding:3px .4375em;word-break:break-word}@media(max-width: 767.98px){.info-search-phrase{word-break:break-all;margin-right:auto}}@supports(-webkit-line-clamp: 3){.info-search-phrase{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}.info-search-reset{flex-shrink:0;--button-padding: 6px;--button-margin: -6px 6px -6px 1px;--button-surface: rgba(0,0,0,.15);--button-box-shadow-active: inset 0 0 0 50px rgba(0, 0, 0, .1), 0 0 0 3px rgba(0,0,0,.075)}#topbar{--small-buttons-font-size: 20px;--small-buttons-padding: 10px;--small-buttons-gap: 5px;--small-buttons-bar-padding-y: 0px;--select-topbar-display: none;--select-topbar-padding-left: 1px;--select-topbar-buttons-gap: 1px}@media(hover: hover)and (pointer: fine){#topbar{--small-buttons-padding: 9px;--small-buttons-gap: 7px;--small-buttons-bar-padding-y: 1px}}@media(min-width: 390px){#topbar{--select-topbar-buttons-gap: var(--small-buttons-gap)}}@media(min-width: 768px){#topbar{--select-topbar-padding-left: 9px}}.select-mode #select-mode-button:not(:hover){background-color:var(--surface1)}#select-mode-button .svg-path-check{display:var(--select-mode-check-display, block)}#select-mode-button .svg-path-check_all{display:var(--select-mode-check_all-display, none)}.select-mode{--select-mode-check-display: none;--select-mode-check_all-display: block}.topbar-select{--button-disabled-opacity: .33;background-color:var(--surface2);border-bottom:1px solid var(--surface1);display:var(--select-topbar-display);align-items:center;animation:opacity .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow-x:clip;padding:var(--small-buttons-bar-padding-y) 13px var(--small-buttons-bar-padding-y) var(--select-topbar-padding-left)}@media(max-width: 991.98px){.topbar-select{justify-content:space-between;--button-selected-rename-order: -1}}.has-selection,.select-mode .topbar-select:not(.select-display-select),.has-matchingItems.select-display-fixed,.select-display-always{--select-topbar-display: flex}.buttons-selected{display:flex;cursor:var(--buttons-selected-cursor, not-allowed);gap:var(--select-topbar-buttons-gap);margin-left:var(--select-topbar-buttons-gap)}@media(max-width: 575.98px){.buttons-selected{overflow-x:scroll;--tooltip-display: none}}.button-selected-action{--svg-icon-font-size: var(--small-buttons-font-size);--button-padding: var(--small-buttons-padding)}.button-selected-action[data-action=rename]{display:var(--button-selected-rename-display, none);animation:opacity .2s;order:var(--button-selected-rename-order, 1)}.button-selected-action[data-action=zip]{display:var(--button-selected-zip-display, inline-flex)}.button-selected-action[data-action=unzip]{display:var(--button-selected-unzip-display, none)}.has-selection{--buttons-selected-cursor: auto;--select-toggle-close-rotate: 0;--select-toggle-close-opacity: 1;--select-toggle-check-rotate: 90deg;--select-toggle-check-opacity: 0;--selected-count-margin: 0 5px 0 3px}.select-single{--button-selected-rename-display: inline-flex}.select-is-zip{--button-selected-zip-display: none;--button-selected-unzip-display: inline-flex}.button-select-toggle{--button-padding: calc(8px - var(--small-buttons-bar-padding-y));--tooltip-delay: .3s;align-items:center;border-radius:99px}.has-selection .button-select-toggle{--tooltip-delay: .0s;background-color:var(--primary);color:#fff}.button-select-toggle .svg-path-close_thin,.button-select-toggle .svg-path-check{transform-origin:center;transition:transform .15s cubic-bezier(0.165, 0.84, 0.44, 1),fill-opacity .15s cubic-bezier(0.165, 0.84, 0.44, 1)}.button-select-toggle .svg-path-close_thin{transform:rotate(var(--select-toggle-close-rotate, -90deg));fill-opacity:var(--select-toggle-close-opacity, 0)}.button-select-toggle .svg-path-check{transform:rotate(var(--select-toggle-check-rotate, 0));fill-opacity:var(--select-toggle-check-opacity, 1)}.selected-count{font-family:var(--font-family-monospace);font-size:17px;color:#fff;transition:margin .15s cubic-bezier(0.165, 0.84, 0.44, 1);pointer-events:none;margin:var(--selected-count-margin, 0)}@keyframes opacity{0%{opacity:0}100%{opacity:1}}#main{display:flex;flex-direction:column;min-width:320px}@supports(min-height: 100svh){#main{min-height:100svh;min-height:100dvh}}#files-container{flex-grow:1;position:relative}#files{position:relative;z-index:1}#files:empty{display:none}.files-spinner{--spinner-size: 48px}.files-a{display:block;position:relative;touch-action:manipulation;overflow:hidden;color:var(--text3);--button-icon-color: var(--text2);background-color:var(--surface2);box-shadow:var(--box-shadow, none);transition:background-color .3s,box-shadow .3s,transform .3s var(--scale-delay, 0s);transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}.files-a:hover{background-color:var(--surface-active)}@media(hover: hover){.files-a:active{background-color:var(--surface-active);outline:none;box-shadow:var(--box-shadow-active, none)}.files-a.cm-active:active,.files-a:has(.files-context:active){box-shadow:0 0 0 2px var(--surface-active),0 0 0 3px var(--text2)}.files-a:active:not(:has(.files-context:active)):not(.cm-active){--surface-active: var(--surface4);transform:var(--active-scale, none)}.files-a:active:not(:has(.files-context:active)):not(.cm-active) .svg-file-ext{fill-opacity:.99}}.files-a.cm-active{background-color:var(--surface-active);box-shadow:0 0 0 3px var(--surface-active),0 0 0 4px var(--text2);z-index:1;outline:1px dashed var(--text2);outline-offset:6px}.files-a:focus{z-index:2}@media(hover: none){.files-a:hover{z-index:2}}.files-a:focus-visible{outline-color:var(--text3);outline-offset:2px}@media(hover: hover){.files-svg{transition:.3s cubic-bezier(0.23, 1, 0.32, 1)}.files-a-svg:active .files-svg,.cm-active .files-svg{filter:var(--files-svg-active-filter, none)}}.files-img,.files-svg{aspect-ratio:var(--ratio, 1);display:block;width:100%;height:100%}.files-img{object-fit:var(--img-object-fit-ui, cover)}.files-img-svg{object-fit:contain}.files-img-ico{object-fit:scale-down}.svg-file{padding:var(--svg-file-padding)}.svg-folder-large{padding:var(--svg-folder-padding)}.files-img-placeholder{background-size:var(--img-placeholder-size, 50%);background-position:center;background-position-y:var(--img-placeholder-position-y, 50%);background-repeat:no-repeat}.files-img-placeholder:not(.files-lazy){background-image:var(--img-placeholder-bg);transition:opacity .3s}@supports not (aspect-ratio: 1){.files-img-placeholder{min-height:var(--img-placeholder-min-height, auto)}}.files-folder-preview{position:absolute;box-shadow:0 2px 10px -5px #000;object-position:var(--img-object-position, 50% 25%);object-fit:cover;opacity:0;transition:opacity .2s;width:var(--folder-preview-width, 44%);left:var(--folder-preview-left, 50%);top:var(--folder-preview-top, calc(50% - 10px));transform:translateX(-50%) translateY(var(--folder-preview-translateY, -25%))}@supports(aspect-ratio: 1){.files-folder-preview{aspect-ratio:1;max-height:var(--folder-preview-max-height, none)}}@supports not (aspect-ratio: 1){.files-folder-preview{height:var(--folder-preview-width, 44%)}}.svg-overlay-play{padding:4px;fill:#fff;position:absolute;z-index:1;border-radius:50%;font-size:32px;left:var(--svg-play-left, calc(50% - 32px / 2));top:calc(50% - 32px/2);transition:all .3s cubic-bezier(0.23, 1, 0.32, 1),top 0s,left 0s,margin 0s;background-color:var(--overlay-play-surface, rgba(0, 0, 0, 0.3));opacity:0}.files-a-loaded .svg-overlay-play{opacity:1}.files-a-img:hover .svg-overlay-play{--overlay-play-surface: var(--type-color);transform:scale(1.1)}@media(hover: hover){.files-a-img:active .svg-overlay-play{transform:scale(1.2);box-shadow:0 1px 5px -2px #000}}.svg-overlay-play-embed{--overlay-play-surface: var(--type-color)}.files-icon-overlay{top:0;position:absolute;z-index:1;margin:calc(var(--button-padding, 0px) + var(--button-margin, 0px))}@media(hover: hover){.files-a-loaded .files-icon-overlay{transition:fill-opacity .25s cubic-bezier(0.215, 0.61, 0.355, 1)}.files-a-loaded:active:not(:has(.files-context:active)) .files-icon-overlay{fill-opacity:0}}.files-context{position:absolute;top:0;right:0;opacity:0}@media(hover: hover){.files-context{--svg-icon-font-size: 18px;padding:calc(var(--button-padding) + 3px)}}.files-context.cm-active{--button-hsl: var(--hue) 20% 30%}.files-a:hover .files-context,.files-context.cm-active{opacity:1}@media(hover: hover){.files-a-loaded:active .files-context:not(:active){opacity:0}}.name{color:var(--text1)}.title{color:var(--text2)}.size,.dimensions,.exif,.date{white-space:nowrap}.flex{display:none;flex-basis:100%}.ext-inner{color:var(--text2);float:right;font-size:.6875rem;font-weight:600;text-transform:uppercase;background-color:var(--surface3);box-shadow:inset 0 0 0 1px var(--text3);padding:.5em;line-height:1;border-radius:3px;max-width:60px}.files-list .files-a{--surface-active: var(--surface-list-hover, var(--surface4));--box-shadow-active: 0 0 0 3px var(--surface-active), -5px 0 0 0 var(--type-color), 0 0 0 4px var(--surface1)}.files-list .files-a:not(:last-child){margin-bottom:1px}@media(min-width: 768px){.files-list .files-a:active,.files-list .files-a.cm-active{border-radius:3px}}@media(hover: hover){.files-list .files-a:hover{--box-shadow: 0 0 0 0 var(--surface-list-hover), -2px 0 0 0 var(--type-color)}.files-list .files-a:not(:active):not(:focus):not(.cm-active),.files-list .files-a .files-context:not(:hover){transition-duration:0s}}.files-list .files-data{display:flex;flex-wrap:wrap;align-items:center;line-height:165%;padding:var(--files-data-padding)}.files-list .files-svg,.files-list .files-img,.files-list .title,.files-list .fileperms,.files-list .mime,.files-list .exif,.files-list .files-folder-preview,.files-list .files-icon-overlay,.files-list .svg-overlay-play{display:none}.files-list .icon{order:1}.files-list .name{order:2;flex:1;padding-left:7px}.files-list .gps{order:3;margin-left:5px}@media(max-width: 767.98px){.files-list{--button-padding: 8px;--button-margin: 0 5px 0 0;--files-data-padding: 8px 8px 8px 10px}}@media(max-width: 767.98px)and (pointer: fine){.files-list{--button-padding: 3px;--button-margin: 5px}}@media(max-width: 767.98px){.files-list .files-a:hover .ext{opacity:0}.files-list .files-data{font-size:.9375rem}.files-list .name{font-size:1rem}.files-list .ext{order:4}.files-list .ext-inner{margin-left:10px}.files-list .flex{order:6;display:block}.files-list .date{order:7;margin-left:31px}.files-list .size{order:8}.files-list .dimensions{order:9}.files-list .size,.files-list .dimensions{border-left:1px solid var(--divider-color, var(--border-color));margin-left:var(--divider-space, 0.8em);padding-left:var(--divider-space, 0.8em)}.files-list .dimensions{flex:1;text-overflow:ellipsis;overflow:hidden}}@media(max-width: 389.98px){.files-list .date{margin-left:2px}}@media(max-width: 575.98px){.files-list{--divider-space: .6em;--files-data-padding: 8px 8px 8px 7px}}@media(min-width: 768px){.files-list{--button-padding: 5px;padding:20px;--files-data-padding: 6px 0 6px 8px}}@media(min-width: 768px)and (pointer: fine){.files-list{--button-padding: 2px;--button-margin: 3px}}@media(min-width: 768px){.files-list:before{border-radius:3px 3px 0 0}.files-list:after{border-radius:0 0 3px 3px}.files-list:before,.files-list:after{content:"";display:block;height:10px;background-color:var(--surface3)}.files-list .size,.files-list .date{color:var(--text2)}.files-list .dimensions{order:4;margin-left:.5rem}.files-list .ext{order:5;flex-basis:65px}.files-list .size{order:6;font-weight:var(--font-weight-bold);margin-right:20px;text-align:right;flex-basis:100px}.files-list .date{order:7;flex-basis:calc(155px + var(--list-date-flex, 3)*8px)}}@media(min-width: 768px)and (hover: hover){.files-list{--files-data-padding: 5px 0 5px 8px}.files-list .files-data{font-size:.9375rem}}@media(min-width: 992px)and (max-width: 1199.98px){.sidebar-closed .files-list{--files-data-padding: 5px 0 5px 15px}.sidebar-closed .files-list:before,.sidebar-closed .files-list:after{height:20px}.sidebar-closed .files-list .dimensions{margin-left:1rem}.sidebar-closed .files-list .ext{flex-basis:70px}.sidebar-closed .files-list .size{margin-right:30px;flex-basis:110px}}@media(min-width: 1200px){.files-list{--files-data-padding: 5px 0 5px 15px}.files-list:before,.files-list:after{height:20px}.files-list .dimensions{margin-left:1rem}.files-list .ext{flex-basis:70px}.files-list .size{margin-right:30px;flex-basis:110px}}@media(min-width: 1600px){#main{--list-max: var(--list-max-width, 1040px)}}@media(min-width: 1400px){.sidebar-closed{--list-max: var(--list-max-width, 1040px)}}.files-list,.files-imagelist{max-width:var(--list-max, none)}.files-list .files-a:nth-child(odd):not(.cm-active):not(:hover),.files-imagelist .files-a:nth-child(odd):not(.cm-active):not(:hover){background-color:var(--surface3)}.files-imagelist{--svg-play-left: calc(100px/2 - 32px/2);--folder-preview-width: 50px;--folder-preview-left: 50px;--folder-preview-top: 50%;--svg-file-padding: 12px;--svg-folder-padding: 6px;--img-placeholder-min-height: var(--imagelist-min-height, calc(100px / var(--ratio, 1)))}.files-imagelist .files-a{display:flex;margin-bottom:1px;--surface-active: var(--surface4);--box-shadow: 0 0 0 var(--surface-imagelist-hover);--box-shadow-active: 0 0 0 3px var(--surface-active), 0 0 0 4px var(--surface1)}.files-imagelist .files-img,.files-imagelist .files-svg{width:100px;flex-shrink:0;box-shadow:inset -1px 0 0 0 var(--surface1)}.files-imagelist .files-svg{height:100px}.files-imagelist .files-img{height:var(--imagelist-height, 100px);--img-object-fit: cover}.files-imagelist .files-data{overflow:hidden;display:flex;flex-wrap:wrap;flex:1;align-content:flex-start;align-items:center;padding:8px 8px 8px 12px;line-height:165%}.files-imagelist .icon,.files-imagelist .fileperms,.files-imagelist .mime,.files-imagelist .gps,.files-imagelist .files-icon-overlay .svg-path-marker{display:none}.files-imagelist .name{order:2;flex:1;font-size:1rem;padding-right:1px}.files-imagelist .title,.files-imagelist .exif{flex-basis:100%;font-size:.9375rem}.files-imagelist .title{order:16}.files-imagelist .exif{order:17;display:flex;--svg-icon-font-size: 18px}@media(max-width: 767.98px){.files-imagelist{--button-padding: 8px;--button-margin: 0 5px 0 0}}@media(max-width: 767.98px)and (pointer: fine){.files-imagelist{--button-padding: 3px;--button-margin: 5px}}@media(max-width: 767.98px){.files-imagelist .files-a:hover .ext{opacity:0}.files-imagelist .files-data{font-size:.9375rem}.files-imagelist .exif{display:none}.files-imagelist .title{order:5}.files-imagelist .ext{order:4}.files-imagelist .flex{order:6;display:block}.files-imagelist .date{order:7}.files-imagelist .size{order:8}.files-imagelist .dimensions{order:9;margin-right:-5px;flex:1;text-overflow:ellipsis;overflow:hidden}.files-imagelist .size,.files-imagelist .dimensions{border-left:1px solid var(--divider-color, var(--border-color));margin-left:var(--divider-space, 0.8em);padding-left:var(--divider-space, 0.8em)}}@media(max-width: 575.98px){.files-imagelist{--divider-space: 3%}}@media(min-width: 768px){.files-imagelist{--button-padding: 7px;--button-margin: 3px}}@media(min-width: 768px)and (pointer: fine){.files-imagelist{--button-padding: 3px;--button-margin: 7px}}@media(min-width: 768px){.files-imagelist .files-data{padding:10px 0 10px 14px}.files-imagelist .size,.files-imagelist .date{color:var(--text2)}.files-imagelist .dimensions{order:4;margin-left:.5rem}.files-imagelist .ext{order:5;flex-basis:65px}.files-imagelist .size{order:6;font-weight:var(--font-weight-bold);margin-right:20px;text-align:right;flex-basis:100px}.files-imagelist .date{order:7;flex-basis:calc(160px + var(--list-date-flex, 3)*9px)}}@media(min-width: 992px){.files-imagelist{padding:20px}.files-imagelist .files-a{border-radius:3px}.sidebar-closed .files-imagelist .ext{flex-basis:70px}.sidebar-closed .files-imagelist .size{margin-right:30px;flex-basis:110px}}@media(min-width: 1200px){.files-imagelist .ext{flex-basis:70px}.files-imagelist .size{margin-right:30px;flex-basis:110px}}.files-blocks{--svg-play-left: calc(var(--blocks-height, 140px)/2 - 32px/2);--folder-preview-width: calc(var(--blocks-height, 140px) / 2);--folder-preview-left: calc(var(--blocks-height, 140px) / 2);--folder-preview-top: 50%;--svg-file-padding: calc(var(--blocks-height, 140px) / 8);--svg-folder-padding: calc(var(--blocks-height, 140px) / 14);--img-object-fit-ui: var(--img-object-fit);--button-padding: 9px;--button-margin: 1px}@media(pointer: fine){.files-blocks{--button-padding: 3px;--button-margin: 7px}}.files-blocks .files-a{--box-shadow: 0 0 0 0 var(--surface-active);--box-shadow-active: 0 0 0 3px var(--surface-active);height:var(--blocks-height, 140px);display:flex;margin:var(--blocks-margin, 1px 0)}.files-blocks .files-a:hover .name{margin-right:32px}.files-blocks .files-img,.files-blocks .files-svg{width:var(--blocks-height, 140px);flex-shrink:0;box-shadow:inset -1px 0 0 0 var(--surface1)}.files-blocks .files-data{padding:10px 10px 5px 15px;overflow:hidden;width:100%;font-size:.9375rem}.files-blocks .fileperms,.files-blocks .mime,.files-blocks .ext,.files-blocks .icon,.files-blocks .exif,.files-blocks .gps{display:none}.files-blocks .name,.files-blocks .title,.files-blocks .dimensions,.files-blocks .size,.files-blocks .date{display:block}.files-blocks .name{font-size:1rem}@media(max-width: 389.98px){.files-blocks .files-data{padding:8px 5px 5px 12px}}@media(min-width: 390px){.files-blocks{--blocks-margin: .5rem}.files-blocks .files-a{border-radius:3px;--box-shadow: 0 0 0 0 var(--surface-active), var(--files-border-bottom)}}@media(min-width: 576px){.files-blocks{--blocks-margin: var(--blocks-space, calc(0.9vw + 5px))}}@media(min-width: 768px){.files-blocks{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--blocks-width, calc(340px + 2%)), 1fr));grid-auto-rows:1fr;margin:var(--blocks-space, calc(0.9vw + 5px));grid-gap:var(--blocks-space, calc(0.9vw + 5px));--blocks-margin: 0}}@media(min-width: 1400px){.files-blocks{margin:var(--blocks-space, 20px);grid-gap:var(--blocks-space, 20px)}}.files-grid{display:grid;grid-auto-flow:dense;grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 160px), 1fr));grid-auto-rows:1fr;padding:var(--grid-space, calc((8vw + var(--grid-size, 160px)) / 900 * var(--grid-space-factor, 50)));grid-gap:var(--grid-space, calc((8vw + var(--grid-size, 160px)) / 900 * var(--grid-space-factor, 50)));--img-object-fit-ui: var(--img-object-fit);--folder-preview-max-height: 44%}.files-grid .files-a{border-radius:var(--grid-border-radius, 3px);aspect-ratio:var(--grid-aspect, 1)}@supports not (aspect-ratio: 1){.files-grid::before{content:"";width:0;padding-bottom:calc(100%*(2.5 - var(--grid-aspect, 1)))}.files-grid::before,.files-grid .files-a:first-child{grid-row:1/1;grid-column:1/1}.files-grid .files-img,.files-grid .files-svg{position:absolute}}.files-grid,.files-rows,.files-columns{--button-padding: 9px;--button-margin: 3%}@media(hover: hover){.files-grid,.files-rows,.files-columns{--button-padding: 3px}}.files-grid .files-a-loaded,.files-rows .files-a-loaded,.files-columns .files-a-loaded{--button-icon-color: white;--button-hsl: var(--hue) 20% 14%}.files-grid .files-a-loaded .files-zoom,.files-rows .files-a-loaded .files-zoom,.files-columns .files-a-loaded .files-zoom{cursor:var(--files-cursor, pointer)}.files-grid,.files-rows,.columns-noinfo{--img-placeholder-position-y: 45%;--svg-file-padding: 10% 18% calc(20px + 10%);--svg-folder-padding: 0 12% 20px;--active-scale: scale(1.02);--box-shadow: var(--files-border-bottom)}.files-grid .files-a-loaded.files-zoom:not(:active),.files-rows .files-a-loaded.files-zoom:not(:active),.columns-noinfo .files-a-loaded.files-zoom:not(:active){--scale-delay: .3s}.files-grid .files-data,.files-rows .files-data,.columns-noinfo .files-data{position:absolute;top:0;width:100%;height:100%;bottom:0;display:flex;flex-direction:column;justify-content:flex-end}.files-grid .mime,.files-grid .date,.files-grid .icon,.files-grid .size,.files-grid .exif,.files-grid .dimensions,.files-grid .ext,.files-grid .title,.files-grid .gps,.files-rows .mime,.files-rows .date,.files-rows .icon,.files-rows .size,.files-rows .exif,.files-rows .dimensions,.files-rows .ext,.files-rows .title,.files-rows .gps,.columns-noinfo .mime,.columns-noinfo .date,.columns-noinfo .icon,.columns-noinfo .size,.columns-noinfo .exif,.columns-noinfo .dimensions,.columns-noinfo .ext,.columns-noinfo .title,.columns-noinfo .gps{display:none}.files-grid .name,.files-rows .name,.columns-noinfo .name{display:block;font-size:var(--grid-font-size, 0.875rem);color:var(--text2);font-weight:400;text-align:center;line-height:1;padding:var(--name-padding, calc(0.3em + 3%))}.files-grid .files-a-loaded .files-data,.files-rows .files-a-loaded .files-data,.columns-noinfo .files-a-loaded .files-data{opacity:var(--files-data-opacity, 0);transition:opacity var(--files-data-transition-duration, 0.5s) cubic-bezier(0.215, 0.61, 0.355, 1);background:linear-gradient(rgba(0, 0, 0, 0.2), transparent 30%, transparent 60%, rgba(0, 0, 0, 0.6))}.files-grid .files-a-loaded:hover,.files-rows .files-a-loaded:hover,.columns-noinfo .files-a-loaded:hover{--files-data-opacity: 1}@media(hover: hover){.files-grid .files-a-loaded,.files-rows .files-a-loaded,.columns-noinfo .files-a-loaded{--files-data-transition-duration: 0.25s}.files-grid .files-a-loaded.files-data-hidden .files-data,.files-grid .files-a-loaded:active:not(:has(.files-context:active)):not(:has(.svg-check:active)),.files-rows .files-a-loaded.files-data-hidden .files-data,.files-rows .files-a-loaded:active:not(:has(.files-context:active)):not(:has(.svg-check:active)),.columns-noinfo .files-a-loaded.files-data-hidden .files-data,.columns-noinfo .files-a-loaded:active:not(:has(.files-context:active)):not(:has(.svg-check:active)){--files-data-opacity: 0}}.files-grid .files-a-loaded.cm-active,.files-rows .files-a-loaded.cm-active,.columns-noinfo .files-a-loaded.cm-active{--files-data-opacity: 1}.files-grid .files-a-loaded .name,.files-rows .files-a-loaded .name,.columns-noinfo .files-a-loaded .name{color:#fff;font-weight:normal}.files-a-audio-picture{--files-data-opacity: 1}.files-rows{--img-placeholder-size: calc(var(--rows-size, 150px) / 1.8);--img-placeholder-min-height: var(--rows-height, var(--rows-size, 150px));--name-padding: calc(.25em + var(--rows-size, 150px)/20);--button-margin: calc(var(--rows-size, 150px)/30);display:flex;flex-wrap:wrap;padding:var(--rows-space, calc((8% + var(--rows-size, 150px)) / 1000 * var(--rows-space-factor, 50))) 0 0 var(--rows-space, calc((8% + var(--rows-size, 150px)) / 1000 * var(--rows-space-factor, 50)));justify-content:var(--rows-justify-content, space-evenly)}.files-rows:after{content:"";flex-grow:9}.files-rows .files-a{flex-basis:calc(var(--ratio, 1)*var(--rows-size, 150px));flex-grow:var(--rows-flex-grow, 1);height:var(--rows-height, auto);margin:0 var(--rows-space, calc((8% + var(--rows-size, 150px)) / 1000 * var(--rows-space-factor, 50))) var(--rows-space, calc((8% + var(--rows-size, 150px)) / 1000 * var(--rows-space-factor, 50))) 0;border-radius:var(--rows-border-radius, 3px)}.files-columns{columns:var(--columns-size, 180px);column-gap:var(--columns-space, calc((10vw + var(--columns-size, 180px)) / 1000 * var(--columns-space-factor, 50)));padding:var(--columns-space, calc((10vw + var(--columns-size, 180px)) / 1000 * var(--columns-space-factor, 50)));--img-placeholder-min-height: calc(var(--columns-size, 180px) / var(--ratio, 1))}.files-columns .files-a{page-break-inside:avoid;break-inside:avoid-column;display:inline-block;vertical-align:middle;width:100%;border-radius:var(--columns-border-radius, 3px);margin-bottom:var(--columns-space, calc((10vw + var(--columns-size, 180px)) / 1000 * var(--columns-space-factor, 50)));z-index:auto}.files-columns .files-img-ico{width:auto;max-width:100%;height:auto;display:block;margin:0 auto}.columns-info{--ratio: auto;--svg-file-padding: 15% 25%;--svg-folder-padding: 0% 18% 2%;--folder-preview-width: 36%;--folder-preview-top: 0;--folder-preview-translateY: 64%}.columns-info .files-a{--box-shadow: 0 0 0 0 var(--surface-active);--box-shadow-active: 0 0 0 3px var(--surface-active)}.columns-info .files-a-loaded:before{transition:opacity .25s cubic-bezier(0.215, 0.61, 0.355, 1);opacity:0;position:absolute;content:"";width:100%;height:100%;background:linear-gradient(rgba(0, 0, 0, 0.2), transparent 100px)}.columns-info .files-a-loaded:hover:before{opacity:1}.columns-info .files-data{display:flex;flex-direction:column;padding:calc(.3em + 3%);line-height:1.3;gap:.2em;box-shadow:0 -1px 0 0 var(--surface1);font-size:.8125rem}.columns-info .icon,.columns-info .ext,.columns-info .exif-gps{display:none}.columns-info .gps{position:absolute;align-self:flex-end;--svg-icon-font-size: 18px}.columns-info .gps+.name{padding-right:18px}.columns-info .files-icon-overlay .svg-path-marker{display:none}.columns-info .name{font-size:.875rem;word-break:break-all}.columns-info .title{word-break:break-word}@supports(-webkit-line-clamp: 3){.columns-info .name,.columns-info .title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}.columns-info .exif{display:flex;flex-wrap:wrap;order:10;border-top:1px solid var(--border-color);margin-top:.3em;padding-top:.5em;column-gap:.5em;row-gap:.1em}.columns-info .exif .svg-icon{display:none}.columns-info .svg-overlay-play{margin-top:-39px}[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview{--selected-svg-bg: hsl(var(--hue), 35%, 30%);--selected-svg-fg: hsl(var(--hue), 30%, 38%)}[data-theme=dark] .files-a:has(.svg-check-select:active),.modal-codemirror-theme-dark .markdown-preview .files-a:has(.svg-check-select:active),[data-theme=dark] [data-selected],.modal-codemirror-theme-dark .markdown-preview [data-selected]{--svg-file-bg: var(--selected-svg-bg);--svg-file-flip: var(--selected-svg-fg);--svg-file-icon: var(--selected-svg-fg);--svg-folder-bg-large: var(--selected-svg-bg);--svg-folder-fg-large: var(--selected-svg-fg)}.list{--box-shadow-width: 2px;--check-transition: all .2s;--check-margin: calc(var(--button-margin, 0px) + 3px);--check-opacity: 0;--check-color-default: var(--text2);--check-color-active: white;--check-bg-default: transparent;--check-bg-active: var(--select-color);--check-border-radius: 50%;--check-bg-hover: var(--surface1)}.files-list,.files-imagelist,.files-blocks{--box-shadow-width: 1px}.files-imagelist .files-a:not(.files-a-loaded),.files-blocks .files-a:not(.files-a-loaded){--check-bg-default: var(--surface2)}.files-list{--check-bg-default: var(--surface2);--check-bg-hover: var(--surface3);--check-margin: var(--files-data-padding);--check-transition: all .2s, opacity 0s}.files-list [data-selected]{border-radius:3px}@media(hover: hover){.select-mode-disabled .files-list .files-a:not([data-selected]):not(:active):hover{--check-transition: opacity .2s .3s}.select-mode-disabled .files-list .files-a:not([data-selected]):active,.select-mode-disabled .files-list .files-a:not([data-selected]) .svg-check-select:not(:active):hover{--check-transition: none}.select-mode-disabled .files-list .files-a:not([data-selected]) .icon{transition:var(--check-transition);opacity:calc(1 - var(--check-opacity))}.select-mode-disabled .files-list .files-a:not([data-selected]):active:not(:has(.svg-check-select:hover)){--check-opacity: 0;--check-transition: opacity .2s}}.files-list [data-selected] .icon{visibility:hidden}[data-selected]{color:var(--text2);--check-opacity: 1;--check-color: white;--check-color-active: var(--check-color-default);--check-bg: var(--select-color);--check-bg-active: var(--check-bg-default);background-color:var(--surface-selected) !important}[data-selected]:not(.drop-target-active){box-shadow:0 0 0 var(--box-shadow-width) var(--select-color) !important}.svg-folder-bg,.svg-folder-fg,.svg-file-bg,.svg-file-flip,.svg-file-icon{transition:fill .2s}.files-a:not(.cm-active):hover{--check-opacity: 1}.list:not(.files-list) .files-a-loaded{--check-color: white;--check-color-active: white;--check-color-default: white;--check-bg-hover: rgba(0, 0, 0, .2)}@media(hover: hover){.select-mode-disabled .list:not(.files-list) .files-a-loaded:active .svg-check-select:not(:hover){--check-opacity: 0}}.svg-check-select{position:absolute;top:0;z-index:2;pointer-events:auto;cursor:pointer;margin:var(--check-margin);--svg-icon-fill: var(--check-color, var(--check-color-default));background-color:var(--check-bg, var(--check-bg-default));transition:var(--check-transition);opacity:var(--check-opacity);border-radius:var(--check-border-radius);padding:3px}@media(hover: hover){.svg-check-select:hover{--check-color-default: var(--text1);--check-bg-default: var(--check-bg-hover)}.svg-check-select:active{--check-color: var(--check-color-active);--check-bg: var(--check-bg-active)}}.svg-path-check{pointer-events:none}.select-mode .files-a{cursor:pointer}@media(hover: hover){.select-mode .files-a:active:not(:has(.files-context:active)){--surface-active: var(--surface-selected) !important;--box-shadow-active: none;--active-scale: 1;--files-data-opacity: 1 !important;--files-svg-active-filter: none;--check-color: var(--check-color-active);--check-bg: var(--check-bg-active)}.select-mode .files-a:active:not(:has(.files-context:active)) .files-context{opacity:1 !important}[data-theme=dark] .select-mode .files-a:active:not(:has(.files-context:active)),.modal-codemirror-theme-dark .markdown-preview .select-mode .files-a:active:not(:has(.files-context:active)){--svg-file-bg: var(--selected-svg-bg);--svg-file-flip: var(--selected-svg-fg);--svg-file-icon: var(--selected-svg-fg);--svg-folder-bg-large: var(--selected-svg-bg);--svg-folder-fg-large: var(--selected-svg-fg)}}.files-a:has(.svg-check-select:active){--surface-active: var(--surface-selected) !important;--box-shadow-active: none;--active-scale: 1;--files-data-opacity: 1 !important;--files-svg-active-filter: none}.files-a:has(.svg-check-select:active) .files-context{opacity:1 !important}.select-mode,.files-a-loaded:has(.svg-check-select:hover){--files-svg-active-filter: none}.select-mode .svg-overlay-play,.files-a-loaded:has(.svg-check-select:hover) .svg-overlay-play{transform:none !important;box-shadow:none !important}.select-enabled .files-a:hover,[data-selected]{--icon-overlay-fill-opacity: 0}.pswp{display:none;position:fixed;overflow:hidden;touch-action:none;z-index:1500;-webkit-text-size-adjust:100%;-webkit-backface-visibility:hidden;outline:none;contain:strict}.pswp--open{display:block}.pswp--animate_opacity{opacity:.001;will-change:opacity;transition:opacity 333ms cubic-bezier(0.6, 0, 0, 1)}.pswp--animate_opacity .pswp__bg{transition:none}.pswp--animated-in .pswp__zoom-wrap,.pswp--animated-in .pswp__bg{transition:none}.pswp__bg{position:absolute;background-color:var(--popup-bg);opacity:0;transform:translateZ(0);-webkit-backface-visibility:hidden;will-change:opacity;transition:opacity 333ms cubic-bezier(0.6, 0, 0, 1)}.pswp__scroll-wrap{position:absolute;overflow:hidden}.pswp__container,.pswp__zoom-wrap{touch-action:none;position:absolute;-webkit-backface-visibility:hidden}.pswp__container,.pswp__img{-webkit-touch-callout:none}.pswp__item{position:absolute;overflow:hidden}.pswp__zoom-wrap{position:absolute;width:100%;transform-origin:left top;transition:transform 333ms cubic-bezier(0.6, 0, 0, 1)}.pswp__img{position:absolute;width:auto;height:auto;top:0;left:0;max-width:none;image-orientation:none;clip-path:var(--clip-path, none);transition:clip-path cubic-bezier(0.6, 0, 0, 1) var(--clip-path-transition-duration, 0s)}.pswp--zoom-cursor .pswp__img{cursor:default}.pswp--zoom-allowed.pswp--zoom-cursor .pswp__img{cursor:zoom-in}.pswp--zoom-allowed.pswp--zoomed-in .pswp__img{cursor:grab}.pswp--zoom-allowed.pswp--dragging .pswp__img{cursor:grabbing}@supports(image-orientation: from-image){.server-exif .pswp__img{image-orientation:from-image}}.pswp__img[src$=".avif"]{object-fit:scale-down}.pswp__img--placeholder{-webkit-backface-visibility:hidden}.pswp__img--placeholder--blank{background-color:var(--popup-placeholder-bg, hsl(var(--hue), 20%, 6%))}.pswp__error-msg{text-align:center;color:var(--text1-dark);margin-top:calc(50vh - 8px)}.pswp__error-msg a{text-decoration:underline}.pswp__ui{z-index:1550;color:#fff;--button-hsl: var(--hue) 20% 12%}.has-scrollbars.popup-open{overflow:hidden}.pswp__timer{display:none;position:absolute;width:100%;height:2px;background-color:var(--popup-timer-color, white);transform-origin:left;z-index:4;transform:scaleX(0);will-change:transform,opacity;transition:height .2s}.pswp__ui--idle .pswp__timer,.pswp__ui--hidden .pswp__timer{height:1px}.pswp__top-bar{display:flex;align-items:center;justify-content:flex-end;white-space:nowrap;position:absolute;left:0;top:0;width:100%;z-index:3;background:linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);padding:.5rem .5rem .5rem 1rem;--button-padding: 12px}@media(min-width: 576px){.pswp__top-bar{padding:10px 1rem 10px 1.5rem}}.pswp--has_mouse .pswp__top-bar{opacity:.8}.pswp__top-bar:hover{opacity:1}.pswp__counter{font-family:var(--font-family-monospace);margin-right:1rem}.popup-counter-separator{margin:0 3px}.pswp__search{--svg-icon-margin: 0 5px 0 0}.pswp__search:empty{display:none}@media(min-width: 576px){.pswp__search{max-width:360px}}.pswp__topbar-spacer{flex-grow:1}.pswp__spinner{--spinner-position: static;--spinner-color: white;--spinner-margin: 0 12px 0 0}.pswp__button--close{--svg-icon-font-size: 36px;--button-padding: 6px}.pswp__button--arrow--left,.pswp__button--arrow--right{display:none;position:absolute;z-index:2;height:100%;--svg-icon-fill: rgba(255, 255, 255, .9);--svg-icon-font-size: 46px;--svg-icon-surface: rgba(0,0,0,.2);min-width:66px}.pswp--has_mouse .pswp__button--arrow--left,.popup-ui-pano .pswp__button--arrow--left,.pswp--has_mouse .pswp__button--arrow--right,.popup-ui-pano .pswp__button--arrow--right{display:block}@media(min-width: 992px){.pswp__button--arrow--left,.pswp__button--arrow--right{width:calc(66px + 3%)}}@media(min-width: 1200px){.pswp__button--arrow--left,.pswp__button--arrow--right{--svg-icon-font-size: 52px}}.pswp__button--arrow--left .svg-icon,.pswp__button--arrow--right .svg-icon{background-color:var(--svg-icon-surface);border-radius:50%;transition:.3s cubic-bezier(0.23, 1, 0.32, 1);padding:5px;transform:var(--svg-icon-transform, none)}.pswp__button--arrow--left:hover,.pswp__button--arrow--left:focus,.pswp__button--arrow--right:hover,.pswp__button--arrow--right:focus{--svg-icon-fill: white;--svg-icon-surface: var(--surface3-dark)}.pswp__button--arrow--left:active,.pswp__button--arrow--right:active{--svg-icon-surface: var(--surface2-dark);--svg-icon-transform: scale(.96)}.pswp__button--arrow--left{left:0}.pswp__button--arrow--right{right:0}.svg-path-pause,.svg-path-play{transform-origin:center;transition:transform cubic-bezier(0.23, 1, 0.32, 1) .3s,fill-opacity .1s}.svg-path-pause{fill-opacity:var(--svg-path-pause-opacity, 0);transform:rotate(var(--svg-path-pause-rotate, -60deg))}.svg-path-play{fill-opacity:var(--svg-path-play-opacity, 1);transform:rotate(var(--svg-path-play-rotate, 0deg))}.is-playing,.plyr__control--pressed,.audioplayer-playing{--svg-path-pause-opacity: 1;--svg-path-pause-rotate: 0deg;--svg-path-play-opacity: 0;--svg-path-play-rotate: 60deg}.svg-path-collapse{display:var(--fullscreen-collapse, none)}.svg-path-expand{display:var(--fullscreen-expand, block)}.is-fullscreen{--fullscreen-collapse: block;--fullscreen-expand: none}.pswp__button--zoom{display:none}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp__button--zoom .svg-path-magnify_minus{display:none}.pswp--zoomed-in .svg-path-magnify_minus{display:inline}.pswp--zoomed-in .svg-path-magnify_plus{display:none}.pswp__ui--one-slide .pswp__button--arrow--left,.pswp__ui--one-slide .pswp__button--arrow--right,.pswp__ui--one-slide .pswp__button--play,.pswp__ui--one-slide .pswp__counter{display:none}.pswp__element--disabled{display:none !important}.pswp__caption,.pswp__top-bar,.pswp__button--arrow--left,.pswp__button--arrow--right{transition:transform .3s cubic-bezier(0.165, 0.84, 0.44, 1),opacity .3s cubic-bezier(0.165, 0.84, 0.44, 1),background-color .2s;will-change:transform,opacity;-webkit-backface-visibility:hidden}.pswp__ui--idle .pswp__caption-hide:not(.pswp__caption-locked):not(:hover),.pswp__ui--idle .pswp__top-bar:not(:hover),.pswp__ui--idle .pswp__button--arrow--left:not(:hover),.pswp__ui--idle .pswp__button--arrow--right:not(:hover){opacity:0;visibility:hidden;transition:transform 0s .6s,opacity .6s,visibility 0s .6s}.pswp__ui--idle .pswp__top-bar:not(:hover){transform:translateY(-3px)}.pswp__ui--idle .pswp__caption-hide:not(.pswp__caption-locked):not(:hover){transform:translateY(3px)}.pswp__ui--idle .pswp__button--arrow--left:not(:hover){transform:translateX(-3px)}.pswp__ui--idle .pswp__button--arrow--right:not(:hover){transform:translateX(3px)}.pswp__ui--hidden:not(.popup-ui-pano) .pswp__top-bar{transform:translateY(-3px)}.pswp__ui--hidden:not(.popup-ui-pano) .pswp__caption{transform:translateY(3px)}.pswp__ui--hidden:not(.popup-ui-pano) .pswp__top-bar,.pswp__ui--hidden:not(.popup-ui-pano) .pswp__caption,.pswp__ui--hidden:not(.popup-ui-pano) .pswp__button--arrow--left,.pswp__ui--hidden:not(.popup-ui-pano) .pswp__button--arrow--right{transition:transform 0s .33s,opacity .33s,visibility 0s .33s;opacity:0;visibility:hidden}.pswp__container-multi{cursor:pointer}.pswp__container--idle,.pswp__ui--idle{cursor:none}.pswp__caption{--popup-color1: hsl(var(--hue), 20%, 98%);--popup-color2: hsl(var(--hue), 20%, 86%);--popup-color3: hsl(var(--hue), 20%, 77%);position:absolute;left:0;bottom:0;width:100%;z-index:1}@media(hover: hover){.pswp__caption:hover{z-index:5}}@media(min-width: 1025px)and (hover: hover){.pswp__caption:before{content:"";position:absolute;left:0;right:0;top:-32px;bottom:100%}}.pswp__caption__center{padding:1em;display:flex;flex-direction:column;row-gap:var(--popup-caption-gap, 0.35em);color:var(--popup-color2);font-size:var(--popup-caption-font-size, 0.875rem);line-height:var(--popup-caption-line-height, 1.35);word-break:break-word;--divider-color: rgba(255,255,255,.2)}.pswp__caption__center:empty{display:none}@media(min-width: 768px){.pswp__caption__center{display:inline-flex;max-width:var(--popup-caption-max-width, 800px)}}.pswp__button--lock-caption{display:none;opacity:0;visibility:hidden;position:absolute;z-index:1;background-color:rgba(0,0,0,.7);margin-top:-54px}.pswp__caption-align-center-left .pswp__button--lock-caption,.pswp__caption-align-center .pswp__button--lock-caption{left:calc(50% - 22px)}.pswp__caption-align-right .pswp__button--lock-caption{right:16px}.pswp__button--lock-caption .svg-path-lock_outline{display:none}.pswp__caption:hover .pswp__button--lock-caption{visibility:visible;opacity:1}.pswp__ui--idle .pswp__caption:hover .pswp__button--lock-caption{opacity:0}@media(min-width: 1025px){.pswp--has_mouse .pswp__caption-hide .pswp__button--lock-caption{display:inline-block}}.pswp__caption-locked .svg-path-lock_outline{display:inline}.pswp__caption-locked .svg-path-lock_open_outline{display:none}.pswp__caption--empty{display:none}.pswp__caption-style-block{background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%)}.pswp__caption-style-box{padding:0 8px 8px}@media(min-width: 641px){.pswp__caption-style-box{padding:0 16px 16px}}.pswp__caption-style-box .pswp__caption__center{transition:background-color .2s;background-color:rgba(0,0,0,.6);padding:1rem 1.125rem;border-radius:3px}.pswp__caption-style-box:hover .pswp__caption__center{background-color:#000}.pswp__caption-style-subtitles{padding-top:5px}.pswp__caption-style-subtitles .pswp__button--lock-caption{bottom:100%}.pswp__caption-style-subtitles .pswp__caption__center>*{background-color:#000}.pswp__caption-align-right .pswp__caption-style-subtitles .pswp__caption__center>*{float:right}.pswp__caption-style-gradient:before{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:0;top:-60px;background-image:linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%)}@media(min-width: 992px){.pswp__caption-style-gradient:before{background-image:radial-gradient(ellipse 800px 100% at 45% 100%, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%)}}.pswp__caption-style-block:hover,.pswp__caption-style-gradient:hover,.pswp__caption-style-none:hover{background-color:rgba(0,0,0,.7)}.pswp__caption-align-left .pswp__button--arrow--left{z-index:1}.pswp__caption-align-center .pswp__caption,.pswp__caption-align-center-left .pswp__caption{text-align:center}.pswp__caption-align-center-left .pswp__caption__center{text-align:left}.pswp__caption-align-right .pswp__caption{text-align:right}.pswp__caption-align-right .pswp__button--arrow--right{z-index:1}@supports(-webkit-line-clamp: 3){.popup-title,.popup-description,.popup-keywords{display:-webkit-box;-webkit-line-clamp:var(--popup-caption-line-clamp, 3);-webkit-box-orient:vertical;overflow:hidden}@media screen and (min-height: 500px){.popup-title,.popup-description,.popup-keywords{-webkit-line-clamp:calc(var(--popup-caption-line-clamp, 3) + 1)}}@media screen and (min-height: 600px){.popup-title,.popup-description,.popup-keywords{-webkit-line-clamp:calc(var(--popup-caption-line-clamp, 3) + 2)}}@media screen and (min-height: 700px){.popup-title,.popup-description,.popup-keywords{-webkit-line-clamp:calc(var(--popup-caption-line-clamp, 3) + 3)}}}.popup-basename{font-weight:500;font-size:1.1em;color:var(--popup-color1)}.popup-image-meta,.popup-exif{display:flex;white-space:nowrap;overflow:hidden}.popup-image-meta{margin:.1em 0}.popup-date{text-transform:capitalize}.popup-date .relative-time{font-style:italic}.popup-date .relative-time:before{content:"  -  "}.popup-exif{flex-wrap:wrap;--svg-icon-font-size: 18px;margin-bottom:.1em}.popup-title:not(:last-child){color:var(--popup-color1);font-weight:500}.popup-keywords{font-style:italic;color:var(--popup-color3)}.popup-ui-video .pswp__button--arrow--left,.popup-ui-video .pswp__button--arrow--right{height:100px;top:calc(50% - 50px);min-width:auto;width:auto}.popup-video{position:absolute;top:64px;right:0px;bottom:0px;left:0px;max-height:calc(100% - 64px);margin:auto}.pswp--has_mouse .popup-video{top:0px;max-height:100%}.popup-video:not(:fullscreen){width:100%;height:100%;object-fit:scale-down}.pswp__error-msg,.popup-video{cursor:default}.pnlm-render-container{transition:opacity .3s}.pnlm-render-container:empty{opacity:0}.pswp__button--pano-rotate{display:none}.popup-ui-pano .pswp__button--pano-rotate{display:block}.pswp__button--pano-rotate .svg-path-motion_play_outline,.pswp__button--pano-rotate .svg-path-motion_pause_outline{transform-origin:center;transition:transform cubic-bezier(0.23, 1, 0.32, 1) .3s}.pswp__button--pano-rotate .svg-path-motion_pause_outline{visibility:hidden}.pswp__button--pano-rotate.is-rotating .svg-path-motion_play_outline{visibility:hidden;transform:rotate(180deg)}.pswp__button--pano-rotate.is-rotating .svg-path-motion_pause_outline{visibility:visible;transform:rotate(180deg)}.popup-ui-pano .pswp__caption{display:var(--popup-pano-caption-display, none)}.pnlm-load-box{color:#fff;position:absolute;top:calc(50% + 24px);left:calc(50% - 50px);width:100px}.pnlm-load-box p{display:none}.pnlm-lbar{background-color:var(--surface4-dark);height:4px;border-radius:2px;overflow:hidden;animation:opacity 1s}.pnlm-lbar-fill{width:0;transition:width .2s;background-color:var(--text3-dark);height:100%;border-radius:2px}.popup-pano-placeholder{position:absolute;left:calc(50% - 24px);top:calc(50% - 34px);--svg-icon-font-size: 48px}.popup-pano-placeholder .svg-panorama_variant{fill:var(--surface4-dark)}.pnlm-container{overflow:hidden;position:relative;cursor:default;width:100%;height:100%;-webkit-user-select:none;user-select:none;outline:0;contain:content}.pnlm-ui,.pnlm-render-container,.pnlm-dragfix,.pnlm-preview-img{position:absolute;height:100%;width:100%}.pnlm-ui{z-index:1}.pnlm-grab{cursor:grab}.pnlm-grabbing{cursor:grabbing}.pnlm-render-container{cursor:inherit}.pnlm-pointer{cursor:pointer}.pnlm-about-msg{display:none !important}.modal{contain:strict;display:grid;position:fixed;z-index:var(--z-index-modal);background-color:var(--surface1);overscroll-behavior:contain;pointer-events:none;overflow-y:auto;opacity:0;transition:opacity .3s cubic-bezier(0.165, 0.84, 0.44, 1);overflow-y:overlay}@supports(background-color: HSL(50 50% 50%/50%)){.modal{background-color:var(--modal-bg)}}@media(min-width: 320px){.modal{overflow-x:hidden}}.modal-open{overflow:hidden}.modal-show{pointer-events:auto;opacity:1;cursor:zoom-out;--modal-popup-transition: width .2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow .3s}.modal-popup{--width-small: 480px;--width-large: 640px;--modal-video-background: hsl(var(--hue) 20% 4%);position:relative;display:flex;flex-direction:column;min-width:320px;cursor:auto;word-break:break-word;min-height:var(--modal-popup-min-height, auto);max-height:var(--modal-popup-max-height, none);transition:var(--modal-popup-transition, none);background-color:var(--modal-surface, var(--surface4));--width: var(--width-large);--margin: 0px;--padding: 1rem;--nav-offset: 10px;--nav-top-center: calc(50vh - 22px - var(--margin));--nav-top: var(--nav-top-center);--border-radius: 0;--justify: stretch;--align: start;--justify-large: end;--align-large: start;--fullscreen-collapse: none;--fullscreen-expand: block;margin:var(--margin);border-radius:var(--border-radius);justify-self:var(--justify);align-self:var(--align)}@media(min-width: 576px){.modal-popup{--margin: 32px;--padding: 1.125rem;--nav-offset: -22px;--border-radius: 3px;--modal-preview-border-radius: 0 0 3px 3px;--fullscreen-button-display: block}}@media(min-width: 768px){.modal-popup{--justify: center;width:var(--width);--modal-preview-code-width: var(--width);--modal-popup-code-overflow-x: hidden;--nav-offset: -64px}}@media(min-width: 768px)and (hover: hover)and (pointer: fine){.modal-popup{--justify: var(--justify-large);--align: var(--align-large);--nav-top: var(--nav-top-large);--modal-pos-button: grid;--nav-offset: -22px}}.modal-popup:not(.modal-popup-fullscreen){--webkit-scrollbar-width: 6px;box-shadow:inset 0 2px 0 0 var(--type-color),var(--modal-box-shadow)}.modal-popup-idle{--ui-opacity: 0;--ui-transition-opacity: opacity .3s 1s}@media(max-width: 575.98px){.modal-popup-tapped{--ui-opacity: 0}}.modal-popup-tapped.modal-popup-fullscreen{--ui-opacity: 0}.modal-multi{--modal-nav-display: block}.modal-pos-x-start{--justify-large: start}.modal-pos-x-center{--justify-large: center}@media(min-width: 768px){.modal-pos-x-center{--nav-offset: calc(50% - var(--width-large)/2 - 64px);--modal-nav-position: fixed}}@media(min-width: 992px){.modal-pos-x-center{--nav-offset: calc(50% - var(--width-large)/2 - 88px);--modal-nav-scale: 1.125;--modal-nav-scale-active: 1.05}}.modal-pos-x-end{--justify-large: end}.modal-pos-y-start{--align-large: start;--nav-top-large: 80px}.modal-pos-y-center{--align-large: center;--nav-top-large: calc(50% - 22px)}.modal-pos-y-end{--align-large: end;--nav-top-large: calc(100% - 124px)}@media(min-width: 768px){.modal-pos-y-end{--counter-top: auto;--counter-bottom: 0}}.modal-nav-left,.modal-nav-right{display:var(--modal-nav-display, none);position:var(--modal-nav-position, absolute);top:var(--nav-top);z-index:7;transform:scale(var(--modal-nav-scale, 1));background-color:var(--surface4);filter:drop-shadow(0 2px 5px rgba(0, 0, 0, 0.075));opacity:var(--ui-opacity, 1);transition:color,background-color,box-shadow,var(--ui-transition-opacity, opacity),transform;transition-duration:.3s;transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}.modal-nav-left{left:var(--nav-offset)}.modal-nav-right{right:var(--nav-offset)}.modal-nav-active,.modal-nav-left:focus-visible,.modal-nav-left:hover,.modal-nav-right:focus-visible,.modal-nav-right:hover,.modal-nav-active~.modal-preview,.modal-nav-left:focus-visible~.modal-preview,.modal-nav-left:hover~.modal-preview,.modal-nav-right:focus-visible~.modal-preview,.modal-nav-right:hover~.modal-preview{--ui-opacity: 1;--ui-transition-opacity: opacity .1s}.modal-nav-active{--modal-nav-scale: var(--modal-nav-scale-active, .9)}.modal-header{flex-shrink:0;display:flex;align-items:center;z-index:1;padding:7px 7px 7px var(--padding);--button-padding: 9px}@media(hover: hover){.modal-header:not(:hover){--button-icon-color: var(--text2)}}.modal-title{flex-grow:1;margin:0 .5rem 0 0;font-weight:400;font-size:1.375rem}.modal-button-close{--svg-icon-font-size: 36px;--button-padding: 4px}.modal-fullscreen-button{display:var(--fullscreen-button-display, none);animation:opacity .2s}.modal-code-button{display:var(--code-button-display, none);animation:opacity .2s}.svg-path-wrap{display:var(--path-wrap, none)}.svg-path-wrap_disabled{display:var(--path-wrap_disabled, inline)}.wrap-enabled{--path-wrap: inline;--path-wrap_disabled: none}[data-theme=dark] .modal-button-theme,.modal-codemirror-theme-dark .markdown-preview .modal-button-theme{display:none}.modal-codemirror-theme-light{--theme-dark-rotate: -45deg;--modal-preview-code-surface: var(--cm-surface-light)}.modal-codemirror-theme-dark{--theme-light-opacity: 0;--theme-light-rotate: 45deg;--modal-preview-code-surface: var(--cm-surface-dark)}.modal-pos{display:var(--modal-pos-button, none);grid-template-columns:repeat(3, 1fr);width:30px;height:38px;padding:7px 3px;margin:0 2px;flex-shrink:0;transition:transform .25s cubic-bezier(0.23, 1, 0.32, 1);--pad: 2px}.modal-pos:hover{z-index:1;--pad: 1px;transform:scale(2)}.modal-pos-el{cursor:pointer;transition:transform .25s cubic-bezier(0.23, 1, 0.32, 1);position:relative}.modal-pos-el:after{content:"";position:absolute;top:var(--pad);bottom:var(--pad);right:var(--pad);left:var(--pad);background-color:currentColor}.modal-pos-el:not(:hover):not(.modal-pos-active){opacity:.2}.modal-pos-el:hover:after{background-color:var(--type-color)}.modal-pos-el:active{transform:scale(1.5)}.modal-preview{flex-grow:1;display:flex;justify-content:center;align-items:stretch;position:relative;min-height:var(--modal-preview-min-height, 160px);aspect-ratio:var(--modal-preview-aspect-ratio, auto);box-shadow:0 1px 0 var(--border-color),0 -1px 0 var(--border-color);background:repeating-conic-gradient(var(--surface4) 0 25%, transparent 0 50%) 50%/20px 20px var(--surface3);--img-placeholder-size: 100px}.modal-preview:after{display:var(--modal-nav-display, none);content:attr(data-counter);position:absolute;top:var(--counter-top, 0);bottom:var(--counter-bottom, auto);right:0;pointer-events:none;padding:4px 8px;font-family:var(--font-family-monospace);background-color:var(--surface4);opacity:var(--ui-opacity, 1);transition:var(--ui-transition-opacity, opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1));z-index:1}.modal-preview-pdf:hover,.modal-preview-document:hover,.modal-preview-embed:hover,.modal-preview-audio:hover,.modal-preview-video:hover{--ui-opacity: 0}.modal-preview-a{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;--folder-preview-width: 90px;--folder-preview-top: 50%}.modal-popup-file,.modal-popup-dir,.modal-popup-audio,.modal-popup-custom-preview,.modal-popup-video-thumb,.modal-popup-pdf-thumb{--width: var(--width-small)}.modal-popup-code{--code-button-display: block;--modal-popup-min-height: 320px}.modal-popup-code-transition{overflow-x:var(--modal-popup-code-overflow-x, visible)}.modal-popup-code-transition .modal-preview-code{width:var(--modal-preview-code-width, auto)}.modal-popup-video{--modal-popup-min-height: 100px}.modal-popup-code,.modal-popup-video{--modal-popup-max-height: calc(100% - var(--margin) * 2)}.modal-popup-embed{--modal-preview-aspect-ratio: 16 / 9;--modal-popup-max-height: calc(100vh - var(--margin) * 2)}@supports not (aspect-ratio: 16/9){.modal-popup-embed{--modal-preview-min-height: calc(var(--width-large) / 1.7777777778)}}@supports(max-height: 100dvh){.modal-popup-embed{--modal-popup-max-height: calc(100dvh - var(--margin) * 2)}}.modal-popup-pdf,.modal-popup-document{--align: stretch}.modal-popup-fullscreen{--width: auto;--justify: stretch;--align: stretch;--border-radius: 0;--margin: 0px;--modal-pos-button: none;--nav-offset: 10px;--fullscreen-button-display: block;--fullscreen-collapse: block;--fullscreen-expand: none;--modal-svg-height: 100%;--nav-top: var(--nav-top-center);--modal-preview-aspect-ratio: auto;--modal-popup-min-height: 160px;--modal-popup-max-height: 100vh;--modal-preview-border-radius: 0;overflow:auto}@supports(max-height: 100dvh){.modal-popup-fullscreen{--modal-popup-max-height: 100dvh}}.modal-popup-fullscreen img{width:auto;max-height:100%}.modal-popup-fullscreen .modal-video{height:100%}.modal-popup-fullscreen .modal-audio{max-width:480px}.modal-popup-fullscreen .files-folder-preview{max-width:45%;width:200px;max-height:50%;border-radius:3px}.modal-preview-image,.modal-preview-video,.modal-preview-video-thumb,.modal-preview-pdf,.modal-preview-document,.modal-preview-custom-preview,.modal-preview-embed{box-shadow:inset 0 1px 0 var(--border-color),inset 0 -1px 0 var(--border-color)}.modal-preview-code{justify-content:normal;transition:background-color .3s cubic-bezier(0.23, 1, 0.32, 1);background:var(--modal-preview-code-surface)}.modal-preview-audio{background:none;--modal-preview-min-height: auto}.modal-preview-audio-has-picture{flex-direction:column;padding-top:1rem}.modal-preview-audio-picture{margin:auto;order:-1;max-width:50%;max-height:60vh !important;box-shadow:var(--modal-box-shadow);border-radius:2%}.modal-svg{height:var(--modal-svg-height, 160px);max-height:320px;max-width:70%;filter:var(--files-svg-active-filter, none)}.modal-svg.svg-file{padding:20px 0}.modal-svg>*{transform-origin:center}.modal-image{cursor:zoom-in}.modal-pdf-thumb{max-height:320px}.modal-video,.modal-audio,.modal-pdf,.modal-document{width:100%;outline:none}.modal-embed{background:var(--modal-video-background);width:100%;display:flex}.modal-embed-iframe{flex:1}.modal-video{background:var(--modal-video-background);aspect-ratio:var(--ratio, 16/9);object-fit:var(--modal-video-object-fit, scale-down)}.modal-video:fullscreen,.plyr:fullscreen,.modal-popup-fullscreen{--modal-video-object-fit: contain}.modal-audio{align-self:center;margin:1rem;max-width:calc(100% - 1rem)}.modal-pdf,.modal-document{height:100%}.modal-svg,.modal-custom-preview,.modal-pdf-thumb,.modal-video-thumb{margin:auto}.modal-info{color:var(--text2);flex-shrink:0;display:var(--modal-info-display, flex);flex-direction:column;--modal-info-spacing: .375rem;row-gap:var(--modal-info-spacing);padding:var(--padding);margin-bottom:3px;line-height:1.3;font-size:.9375rem;order:1;animation:opacity .3s}.modal-info:empty{--modal-info-display: none}.modal-info:empty+.modal-preview:not(.modal-preview-audio){border-radius:var(--modal-preview-border-radius, 0);overflow:hidden}.modal-info-mime,.modal-info-date,.modal-info-exif .exif-Model{--svg-icon-margin: 0 6px 0 -2px}.modal-info-name{color:var(--text1);font-size:1.0625rem;padding-bottom:2px}.modal-info-meta,.modal-info-exif{line-height:24px}.modal-info-mime{min-width:0}.modal-info-dimensions,.modal-info-filesize,.modal-info-permissions{flex-shrink:0}.modal-info-permissions{font-weight:500;--svg-icon-font-size: 18px;--svg-icon-margin: 0 2px 0 0}@media(max-width: 460px){.modal-popup-image .modal-info-permissions{display:none}}.is-readwrite{color:var(--color-success-light)}.not-readwrite{color:var(--color-danger-light)}.modal-info-date,.modal-info-exif{border-top:1px solid var(--border-color);padding-top:var(--modal-info-spacing);--svg-icon-fill: var(--text3)}.modal-info-date{line-height:24px}.modal-info-date .relative-time{color:var(--text3);display:inline-block;font-style:italic}.modal-info-date .relative-time:before{content:"~";margin:0 .5em;opacity:.5}.modal-info-exif{flex-wrap:wrap}.modal-info-iptc{display:flex;flex-direction:column;--modal-iptc-spacing: .5rem;row-gap:var(--modal-iptc-spacing);margin-top:.875rem}.modal-info-title,.modal-info-headline{color:var(--text1)}.modal-info-title:first-child:not(:last-child),.modal-info-headline:first-child:not(:last-child){font-size:1rem}.modal-info-keywords:not(:first-child),.modal-info-location:not(:first-child),.modal-info-owner:not(:first-child){border-top:1px solid var(--border-color);padding-top:var(--modal-iptc-spacing)}@media(min-width: 992px){.modal-info-description{max-width:640px}}.modal-info-keywords{font-style:italic;font-size:.875rem}.modal-info-location,.modal-info-owner{display:flex;flex-direction:column;font-size:.875rem}.modal-preview-spinner{--spinner-size: 48px;--spinner-color: var(--text3);--spinner-z-index: 2}audio::-webkit-media-controls-panel{background-color:var(--surface2)}.svg-path-eye_outline{display:var(--path-eye, none)}.svg-path-eye_check_outline{display:var(--path-eye_check, none)}.svg-path-two_pager{display:var(--path-two_pager, none)}.modal-markdown-button{display:var(--markdown-button-display, none)}.markdown-mode-edit,.markdown-mode-preview,.markdown-mode-split{--markdown-button-display: block}.markdown-mode-edit{--path-eye: inline;--markdown-preview-display: none}.markdown-mode-preview{--path-eye_check: inline;--codemirror-display: none}@media(min-width: 390px){.markdown-mode-preview{--markdown-preview-padding: 1.5rem}}.markdown-mode-split{--path-two_pager: inline;--markdown-preview-width: 50%;--markdown-preview-border: 1px solid var(--border-color)}@media(min-width: 768px){.markdown-mode-split{--markdown-preview-padding: 1.25rem}}@media(min-width: 768px){.modal-popup-fullscreen{--markdown-preview-padding: 2rem}}.CodeMirror{display:var(--codemirror-display, block);flex-basis:var(--markdown-preview-width, 100%)}.markdown-preview{display:var(--markdown-preview-display, block);width:var(--markdown-preview-width, 100%);padding:var(--markdown-preview-padding, 1rem);overflow-y:scroll;border-left:var(--markdown-preview-border, none)}.markdown-preview>:first-child{margin-top:0}.markdown-preview a{color:var(--primary);text-decoration:underline}.markdown-preview pre{overflow-x:auto;padding:.5rem;font-size:.8125rem;color:var(--text2);background-color:var(--surface2);border-radius:3px}.markdown-preview hr{border:0;border-top:1px solid var(--text3)}@media(max-width: 389.98px){.modal-popup-code .context-button,.modal-button-theme,.modal-markdown-button{display:none}}.plyr{width:100%;z-index:1;--plyr-color-main: var(--primary);--plyr-audio-controls-background: transparent;--plyr-audio-control-color: var(--text1);--plyr-font-family: var(--font-family-monospace);--plyr-tooltip-radius: 3px;--plyr-range-thumb-height: 12px;--plyr-range-track-height: 4px;--plyr-control-radius: 3px;--plyr-tooltip-background: var(--surface4);--plyr-tooltip-color: var(--text1);--plyr-menu-background: var(--surface4);--plyr-menu-color: var(--text1);--plyr-menu-radius: 3px;--plyr-menu-back-border-color: var(--border-color);--plyr-menu-back-border-shadow-color: var(--border-color);--plyr-video-background: var(--modal-video-background, rgba(0, 0, 0, 1));--plyr-badge-background: var(--plyr-color-main);--plyr-menu-arrow-color: var(--text3);--svg-icon-font-size: var(--player-icon-size)}@supports(background-color: hsla(50, 50%, 50%, 0.5)){.plyr{--plyr-color-main: var(--type-color);--button-hsl: var(--type-hsl, var(--hsl-primary));--plyr-audio-progress-buffered-background: hsl(var(--hue) 15% 60% / 25%);--plyr-progress-loading-background: hsl(var(--hue) 15% 60% / 50%);--plyr-audio-range-thumb-active-shadow-color: hsl(var(--hue) 15% 60% / 25%)}}.modal-popup{--player-icon-size: 24px;--player-controls-gap: 1px;--player-progress-max-width: auto;--player-font-size-time-fullscreen: .875rem;--player-icon-size-fullscreen: 28px;--player-controls-gap-fullscreen: 3px;--player-progress-max-width-fullscreen: 360px}.player-controls-custom{padding:var(--player-controls-padding, 10px) !important;gap:var(--player-controls-gap);justify-content:center}.plyr--video{--player-controls-padding: 35px .5rem .5rem;--fullscreen-collapse: none;--fullscreen-expand: inline}.plyr--audio{z-index:2;align-self:center}.plyr--audio .player-volume-input{margin-right:1rem !important}@media(max-width: 575.98px){.player-volume-input{display:none !important}}@media(hover: none){.player-volume-input{display:none !important}}.player-play{display:var(--player-play, inline-flex);--svg-icon-font-size: calc(var(--player-icon-size) + 6px);--button-padding: 7px}.player-play-overlaid{display:var(--player-play-overlaid-display, none);position:absolute;--svg-icon-font-size: calc(var(--player-icon-size) + 12px);--button-padding: 7px;left:calc(50% - var(--svg-icon-font-size)/2 - var(--button-padding));top:calc(50% - var(--svg-icon-font-size)/2 - var(--button-padding));z-index:2;background-color:var(--type-color);--button-icon-color: white;--svg-path-play-opacity: 1;--svg-path-play-rotate: 0deg;opacity:.9}.player-play-overlaid:hover,.player-play-overlaid:focus{opacity:1}.plyr--playing .player-play-overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video{--player-play-overlaid-display: var(--player-play-overlaid, inline-flex)}.player-progress{display:var(--player-progress, block);max-width:var(--player-progress-max-width, none)}.player-time{display:var(--player-time, block)}.player-mute{display:var(--player-mute, inline-flex)}.player-volume{display:var(--player-volume, flex)}.plyr--airplay-supported .player-airplay{display:var(--player-airplay, none)}.plyr--captions-enabled .player-captions{display:var(--player-captions, inline-flex)}.plyr--fullscreen-enabled .player-fullscreen{display:var(--player-fullscreen, inline-flex)}.plyr--pip-supported .player-pip{display:var(--player-pip, none)}.svg-path-volume_high{display:var(--volume-high, inline)}.svg-path-volume_mute{display:var(--volume-mute, none)}.svg-closed_caption{opacity:var(--caption-opacity, 0.5)}.plyr__control--pressed{--fullscreen-collapse: inline;--fullscreen-expand: none;--volume-mute: inline;--volume-high: none;--caption-opacity: 1}.plyr--html5 .plyr__poster{pointer-events:none}.plyr--video .plyr__controls,.plyr__captions{transition-duration:.3s}.plyr--video.plyr--hide-controls .plyr__controls{transform:translateY(3px)}.plyr--vimeo{background:var(--plyr-video-background, #000)}.plyr--vimeo .plyr__video-embed{width:auto}.plyr__video-embed__container{max-width:100vw}@media(min-width: 768px){.modal-popup-fullscreen,.plyr:fullscreen,.plyr--fullscreen-fallback{--plyr-font-size-time: var(--player-font-size-time-fullscreen);--player-icon-size: var(--player-icon-size-fullscreen);--player-controls-gap: var(--player-controls-gap-fullscreen)}}@media(min-width: 992px){.modal-popup-fullscreen,.plyr:fullscreen,.plyr--fullscreen-fallback{--player-progress-max-width: var(--player-progress-max-width-fullscreen)}}.plyr--fullscreen-fallback{z-index:8}@media(max-width: 575.98px){.modal-popup-fullscreen .plyr--audio{bottom:80px}}@media(min-width: 576px){.modal-popup-fullscreen .plyr--audio{bottom:29px;max-width:calc(100% - 128px);--plyr-audio-controls-background: var(--surface3);border-radius:999px}}@media(min-width: 992px){.modal-popup-fullscreen .plyr--audio{max-width:640px}}.files-a.drop-target-active{outline:2px dashed var(--select-color) !important;background-color:var(--surface-selected) !important;z-index:2}.files-list .files-a.drop-target-active{border-radius:3px}.crumb-link.drop-target-active,.menu-a.drop-target-active{position:relative;border-radius:3px}.crumb-link.drop-target-active:before,.menu-a.drop-target-active:before{animation:opacity .2s;content:"";border:2px dashed var(--select-color);position:absolute;left:0;top:0;width:100%;height:100%;border-radius:3px}.menu-a.drop-target-active{background-color:var(--surface-selected);opacity:1;--menu-icon-folder-fill-opacity: 1}.crumb-link.drop-target-active{background-color:var(--surface-selected);display:inline-block}.drop-target-trashcan{position:fixed;bottom:1rem;right:1rem;--svg-icon-font-size: 48px;--svg-icon-fill: white;background-color:var(--color-danger);padding:10px;border-radius:50%;display:none;animation:opacity .33s;transition:.2s cubic-bezier(0.215, 0.61, 0.355, 1);outline:3px dashed rgba(0,0,0,0);outline-offset:1px}.drop-target-trashcan.drop-target-active{transform:scale(1.05);outline:3px dashed var(--color-danger)}.drag-el-active{transition:opacity .33s;opacity:.33 !important}.drag-single,.drag-multi{position:fixed;background-color:var(--surface4);border-left:2px solid var(--type-color)}.drag-single{padding:.5rem 1rem .5rem .8rem;border-radius:3px;font-size:.875rem;min-width:120px;max-width:200px;line-height:24px;color:var(--text1);--svg-icon-fill: var(--text1);--svg-icon-margin: 0 6px 0 0}.drag-multi{--radius: 5px;padding:2px;--svg-icon-font-size: 48px;border-radius:var(--radius)}.drag-multi-count{position:absolute;right:-1px;top:-2px;font-size:12px;padding:3px;min-width:18px;line-height:1;text-align:center;border-radius:0 3px 0 3px;font-family:var(--font-family-monospace);background-color:var(--surface1-dark);color:#fff}.fm-processing{opacity:.5 !important;pointer-events:none;transition:opacity .3s}:root{--audioplayer-shadow: var(--modal-box-shadow)}[data-theme=contrast]{--audioplayer-shadow: 0 5px 25px -15px hsl(var(--hue), 20%, 40%)}.audioplayer{--type-color: var(--type-audio);--type-hsl: var(--hsl-audio);--player-icon-size: 28px;--button-padding: 8px;--plyr-font-family: var(--font-family-monospace);--player-controls-padding: 5px;--fullscreen-collapse: inline;--fullscreen-expand: none;position:fixed;z-index:1;background-color:var(--surface3);box-shadow:0 -2px 0 0 var(--type-audio),var(--audioplayer-shadow);animation:opacity .5s;--audioplayer-margin: 0;bottom:var(--audioplayer-margin);right:var(--audioplayer-margin);left:var(--audioplayer-margin);--audioplayer-margin-sm: 10px;--audioplayer-margin-md: 1rem;--audioplayer-font-family: var(--plyr-font-family);--audioplayer-width: 320px}@media(min-width: 576px){.audioplayer{width:var(--audioplayer-width);--audioplayer-margin: var(--audioplayer-margin-sm);left:auto;border-radius:3px}}@media(min-width: 768px){.audioplayer{--audioplayer-margin: var(--audioplayer-margin-md)}}.audioplayer:hover{--audioplayer-mini-toggle-opacity: 1}.audioplayer-play{transition:all .3s cubic-bezier(0.23, 1, 0.32, 1),order 0s;order:var(--audioplayer-play-order, 0)}.audioplayer-progress{margin:0 3px}.audioplayer-time:last-child{margin-right:5px}.audioplayer-title{font-family:var(--audioplayer-font-family);font-size:.8125rem;padding:6px 10px 6px 1rem;border-bottom:1px solid var(--surface1)}.audioplayer-title-autohide{animation:opacity .3s;display:var(--audioplayer-title, none)}.audioplayer:hover,.audioplayer-title-show{--audioplayer-title: block}.audioplayer-previous,.audioplayer-next{display:var(--audioplayer-nav, flex);animation:opacity .3s}.audioplayer-single{--audioplayer-nav: none}.audioplayer-multi{transition:all .2s cubic-bezier(0.215, 0.61, 0.355, 1)}.audioplayer-mini{left:auto;--audioplayer-width: auto;--audioplayer-play-order: 1;--fullscreen-collapse: none;--fullscreen-expand: inline}@media(max-width: 575.98px){.audioplayer-mini{--audioplayer-margin: var(--audioplayer-margin-sm)}}.audioplayer-mini .audioplayer-title,.audioplayer-mini .audioplayer-progress,.audioplayer-mini .audioplayer-time{display:none}.audioplayer-mini:not(.audioplayer-multi:hover){border-radius:50%;--audioplayer-nav: none;box-shadow:0 0 0 0 rgba(0,0,0,0),var(--audioplayer-shadow)}.audioplayer-mini .plyr{min-width:0}.audioplayer-mini-toggle{display:var(--audioplayer-mini-toggle, inline-flex);opacity:var(--audioplayer-mini-toggle-opacity, 0);--svg-icon-font-size: 18px;--button-padding: 7px;position:absolute;top:-16px;right:0;background-color:var(--surface3);box-shadow:0 2px 10px -3px rgba(0,0,0,.2)}@media(max-width: 575.98px){.has-audioplayer .list{margin-bottom:85px}}.audioplayer-playing{--box-shadow: var(--audioplayer-playing-box-shadow) !important}.list{--audioplayer-playing-box-shadow: 0 0 0 var(--box-shadow-width) var(--type-audio)}.files-list,.files-imagelist{--audioplayer-playing-box-shadow: -2px 0 0 0 var(--type-audio)} ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/js/files.js ================================================ /* Files Gallery 0.15.3 - https://www.files.gallery/ */ !function(){const e=(e,t)=>_c.config&&_c.config[e]?Object.assign(t||{},_c.config[e]):t||{};function t(e=_c.current_dir.path,t=_c.current_dir.basename,i){let a=i?0:(_c.file_names||[]).length;document.title="function"==typeof _c.config.title?_c.config.title(e,t,i,a):(_c.config.title||"").replace("%name%",t||"/").replace("%path%",e).replace("%count%",a)}function i(){const e=Swal.getContainer();if(!e)return;const t=getComputedStyle(e),i=e.firstElementChild,a=getComputedStyle(i);(![t.top,t.bottom,t.left].every((e=>0==e||"0px"==e))||e.offsetWidth/g,">"):""}function o(e,t){return''+e+""}function s(e){return _c.allow_download&&_c.allow_mass_download&&ne?`${_c.script}?action=download_dir_zip&dir=${encodeURIComponent(e.path)}&${e.mtime}`:"#"}_c.config=Object.assign({favicon:"",title:(e,t,i,a)=>(t||"/")+(i?"":` [${a}]`),panorama:{is_pano:(e,t)=>{var i=e.dimensions[0],a=e.dimensions[1],n=t.max_texture_size;if(!(n<2048||i<2048||i/a!=2)){if(!e.panorama_resized)return n>=i&&c(e);var o=[i].concat(e.panorama_resized),s=o.pop(),l=screen.availWidth*t.pixel_ratio*6;if(!(s>n)){var r=o.find((e=>n>=e&&e${U.get_svg_icon("marker")+ie.span("google maps")}`:`${U.get_svg_icon("marker")}`:""},span:function(e,t){return e?'"+U.get_svg_icon("marker")+"":""}};function r(e,t=!1){return`/cdn-cgi/image/${t?"width=480,height=480":"format=jpeg"}${e.cloudflare_convert}`}function c(e,t){let i=!!e.url_path&&encodeURI(e.url_path).replace(/#/g,"%23");return e.is_dir?i||"#":t?_c.allow_download?!i||_c.load_files_proxy_php||["php","htaccess"].includes(e.ext)?`${_c.script}?action=download&file=${encodeURIComponent(e.path)}`:i:"#":e.cloudflare_convert&&!X.browser_images.includes(e.mime1)?r(e):e.is_convert?`${_c.script}?action=file&file=${encodeURIComponent(e.path)}&convert=1`:i&&!_c.load_files_proxy_php?i:`${_c.script}?action=file&file=${encodeURIComponent(e.path)}`}function p(e,t){return e.url?encodeURI(e.url):e.is_dir?d(e.path):c(e,t)}function d(e){return location.pathname+(e?"?"+encodeURIComponent(e).replace(/%2F/g,"/"):"")}function m(e){for(;e.firstChild;)e.firstChild.remove()}function u(e,t,i){L(e,(function(e){var i=e.target.dataset.action;i&&t(i,e)}),"click",!1,i)}function h(e){return Array.isArray(e)?_c.config.map_link.replace("{latitude}",e[0]).replace("{longtitude}",e[1]):"#"}function _(e,t){return e?`${e[0]} x ${e[1]}`:""}function f(e,t){return e.is_dir?e.hasOwnProperty("dirsize")?`${g(e.dirsize)}`:"":`${g(e.filesize)}`}const g=e=>filesize(e,_c.config.filesize);function v(e,t,i){if(!_c.config.context_menu||!e)return"";let a=i?"span":"button";return`<${a} class="button-icon context-button${t?` ${t}`:""}" data-action="context">${U.get_svg_icon_multi("dots","close_thin")}`}function b(e,t,i,a){if(!e||!e.iptc)return"";var n=Object.keys(e.iptc);if(!n.length)return"";var o="",s="",l="";return n.forEach((function(i){var a=e.iptc[i];if(a){if(["city","sub-location","province-state"].includes(i))return s+=''+a+"";if(["creator","credit","copyright"].includes(i))return l+=''+a+"";if("keywords"===i&&Array.isArray(a)){var n=a.filter((e=>e));return o+=n.length?'
    '+n.join(", ")+"
    ":""}return o+='
    '+a+"
    "}})),(o+=(s?'
    '+s+"
    ":"")+(l?'
    '+l+"
    ":""))?i?'
    '+o+"
    ":o:""}function y(e,t,i){if(!e||!e.exif)return"";var a=E(["Model","ApertureFNumber","FocalLength","ExposureTime","ISOSpeedRatings","gps"],(function(t){var a=e.exif[t];if(!a)return"";if("Model"===t)a=U.get_svg_icon(a.toLowerCase().indexOf("phone")>-1?"cellphone":"camera")+a;else if("FocalLength"===t&&"string"==typeof a){var n=a.split("/");2===n.length&&(a=(n[0]/n[1]).toFixed(1)+"mm")}else if("gps"===t)return l[i||"a"](a,"exif-item exif-gps");return'"+a+""}));return a?'
    '+a+"
    ":""}function x(e,t){return e&&X.is_pointer?' data-lang="'+e+'"'+(t?' data-tooltip="':' title="')+ie.get(e,!t)+'"':""}function A(e){if(navigator.clipboard)return navigator.clipboard.writeText(e);var t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);var i=window.getSelection(),a=window.document.createRange();i.removeAllRanges(),a.selectNode(t),i.addRange(a);var n=!1;try{n=window.document.execCommand("copy")}catch(e){console.log("error",e)}return i.removeAllRanges(),window.document.body.removeChild(t),n?Promise.resolve():Promise.reject()}function w(e,t,i,a){e.classList.add(t),i&&(e.disabled=i),Q(a||2e3).then((()=>{e.classList.remove([t]),i&&(e.disabled=!1)}))}function C(e,t,i){if(!i&&e.which<=1&&!["meta","ctrl","shift","alt"].some((t=>e[`${t}Key`])))return e.preventDefault();const a=!!t&&t.getAttribute("href");return a&&"#"!==a?(t.contains(e.target)||t.click(),!0):void 0}function L(e,t,i,a,n){e.addEventListener(i||"click",function(e,t){return t?function(a){i||(e.apply(this,arguments),i=setTimeout((function(){i=null}),t))}:e;var i}(t,n)),a&&t()}function k(e,t){var i;return function(a){i&&clearTimeout(i),i=setTimeout(e,t||1e3,a)}}function H(e,t,i,a){return a&&(i=k(i,a)),e.addEventListener(t,i),{remove:()=>{e.removeEventListener(t,i)}}}_id=document.getElementById.bind(document),_class=function(e,t){return Array.from((t||document).getElementsByClassName(e))},_tag=function(e,t){return Array.from((t||document).getElementsByTagName(e))},_query=function(e,t){return(t||document).querySelector(e)},_querya=function(e,t){return Array.from((t||document).querySelectorAll(e))};const M={};function $(e,t,i){M[e]&&clearTimeout(M[e]),M[e]=setTimeout(t,i)}function V(e,t){for(var i=e.length,a=0;a{function e(e){return X.local_storage?localStorage.getItem(e):null}function t(e,t){"boolean"==typeof t&&(t=t.toString());try{localStorage.setItem(e,t)}catch(e){j("failed to write localstorage",e,"warn")}}return{get:t=>{let i=e(t);return"true"===i||"false"!==i&&i},get_json:t=>q(e(t)),set:function(e,i,a,n){return X.local_storage?a&&!i?localStorage.removeItem(e):n?Q(n).then((()=>t(e,i))):void t(e,i):null},remove:function(e){if(X.local_storage)return localStorage.removeItem(e)},set_option:(e,t,i)=>{if(X.local_storage)return t===i?localStorage.removeItem(e):"boolean"==typeof t?localStorage.setItem(e,t?"1":"0"):void localStorage.setItem(e,t)},get_option:(t,i)=>{const a=e(t);return a?"1"===a:!!i},bool:(e,i)=>{if(X.local_storage)return i?t(e,!0):localStorage.removeItem(e)}}})();function O(e){var t=new XMLHttpRequest;return t.onreadystatechange=function(){if(4==t.readyState)if(e.always&&e.always(t),200==t.status){var i=t.responseText,a=e.json_response,n=a?(()=>{try{return JSON.parse(i)}catch(e){return a=!1,i}})():i;if(a&&n.error&&"login"===n.error)return _e.was_logged_out("ajax");e.complete&&e.complete(n,i,a);var o=!e.url&&t.getResponseHeader("files-msg");o&&j("XHR: files-msg: "+o)}else e.fail&&e.fail(t)},t.open(e.method||(e.params?"POST":"GET"),e.url||_c.script),e.params&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.json_response&&t.setRequestHeader("Accept","application/json"),t.send(e.params||null),t}function S(e){return _c.server_exif&&e&&e.exif&&e.exif.Orientation&&e.exif.Orientation>4&&e.exif.Orientation<9}function B(e){return atob(e)}function Z(e,t,i){return Math.min(Math.max(i,e),t)}function R(){if(X.scrollbar_width){var e=document.documentElement,t=window.innerWidth-e.clientWidth||(e.scrollHeight>e.clientHeight?X.scrollbar_width:0);t!=G.scrollbar_width&&(t&&(X.scrollbar_width=t),G.scrollbar_width=t,document.documentElement.style.setProperty("--scrollbar-width",t+"px"))}}function D(e){if(!(e.is_dir&&e.is_readable&&_c.folder_preview_image&&_c.load_images&&_c.image_resize_enabled))return"";let t=_c.config.preview_image_cache?`${e.mtime}.${_c.menu_cache_hash||_c.location_hash}`:Date.now();return``}var _h={popup:(e,t,i,a,n)=>{e&&e.preventDefault(),t=Math.floor(Math.min(screen.width,t||1e3)),i=Math.floor(Math.min(screen.height,i||99999));var o=window.open(a,n||null,"toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,titlebar=no,width="+t+",height="+i+",top="+Math.round(screen.height/2-i/2)+",left="+Math.round(screen.width/2-t/2));return window.focus&&o.focus(),o}};function P(e,t){e.className!=t&&(e.className=t)}function N(e){var t={};return e&&e.split("&").forEach((e=>{let[i,a]=e.split("=");t[i]=isNaN(a)?a:+a})),t}function q(e,t){if(e)try{let i=JSON.parse(e);return t?i[t]:i}catch(e){return}}const Q=async e=>new Promise((t=>setTimeout(t,e)));function W(){K.files_container.classList.contains("files-spinner")||(me.clean_dir(_c.current_dir),U.get_files(_c.current_path,"replace",!0))}const F=(()=>{const e={duration:2e3,gravity:"bottom",escapeMarkup:!1};let t=t=>Toastify(Object.assign({},e,t)).showToast();const i=(e,t)=>U.get_svg_icon(e?"check":"cancel_circle")+''+n(t)+"",a={toggle:(a,n,o)=>t(Object.assign({text:i(a,n),className:"toastify-"+(a?"success":"danger"),duration:a?e.duration:3e3},o||{})),loader:(e,i)=>t({text:''+e+""+(i?''+U.get_svg_icon("tray_arrow_down")+'':""),className:"toastify-loading",duration:-1})};return{toast:e=>t(e),license:()=>t({text:i(!1,"License required!"),className:"toastify-danger toastify-link",duration:4e3,destination:B("aHR0cHM6Ly9saWNlbnNlLmZpbGVzLmdhbGxlcnkv"),newWindow:!0}),login:()=>t({text:i(!1,ie.get("you were logged out")),className:"toastify-danger toastify-link",duration:0,onClick:()=>_e.logout_refresh()}),refresh:e=>t({text:i(!1,e+". Please refresh browser!"),className:"toastify-danger toastify-link",duration:-1,destination:location.href}),toggle:a.toggle,demo:()=>a.toggle(!1,"Not allowed in demo mode!"),loader:a.loader,progress:e=>{let t=a.loader(e,!0);return{toast:t,counter:t.toastElement.children[1],progress_bar:t.toastElement.lastElementChild}}}})();_c.debug=z("debug")||0===location.host.indexOf("files.test"),_c.files={},j("_c",_c);const U={},G={},Y={},K={main:_id("main"),topbar:_id("topbar"),topbar_top:_id("topbar-top"),files_container:_id("files-container"),files:_id("files"),topbar_info:_id("topbar-info"),filter_container:_id("search-container"),filter:_id("search")},X={};function J(e,t){if(t.mime1&&t.mime0===e)return X.hasOwnProperty(e)||(X[e]=function(){if("audio"===e&&!window.Audio)return!1;var t="audio"===e?["mpeg","mp3","mp4","x-aiff","ogg","x-m4a","aac","webm","wave","wav","x-wav","x-pn-wav","flac"]:["mp4","webm","ogg","3gp","m4v","x-m4v"];try{var i=document.createElement(e);let a=t.filter((t=>i.canPlayType(`${e}/${t}`).replace(/no/,"")));return i.remove(),!!a.length&&a}catch(e){return!1}}()),!(!X[e]||!X[e].includes(t.mime1))&&t.mime1}(()=>{var e=X,t=document,i=t.documentElement,a=navigator,n=a.userAgent,o=window;e.ua=n,e.explorer=/MSIE /.test(n)||/Trident\//.test(n);var s=!!(o.CSS&&o.CSS.supports||o.supportsCSS);!e.explorer&&s&&CSS.supports("color","var(--fake-var)")||(t.body.innerHTML=``,t.body.classList.remove("body-loading"),fail),e.local_storage=!!o.localStorage&&(()=>{try{var e="_t";return o.localStorage.setItem(e,e),o.localStorage.removeItem(e),!0}catch(e){return!1}})(),e.is_touch="ontouchstart"in o||a.maxTouchPoints>0||a.msMaxTouchPoints>0||o.DocumentTouch&&t instanceof DocumentTouch||o.matchMedia("(any-pointer: coarse)").matches,e.is_pointer=!e.is_touch||o.matchMedia("(pointer:fine)").matches,e.is_dual_input=e.is_touch&&e.is_pointer,e.only_touch=e.is_touch&&!e.is_pointer,e.only_pointer=!e.is_touch&&e.is_pointer,e.PointerEvent=!!o.PointerEvent||a.msPointerEnabled,e.nav_langs=!(!a.languages||!a.languages.length)&&a.languages||!!a.language&&[a.language],e.pointer_events=!!("PointerEvent"in o)||a.msPointerEnabled,e.is_mac=/Mac|iPod|iPhone|iPad/.test(a.platform),e.is_ios=/iPad|iPhone|iPod/i.test(a.userAgent)&&a.maxTouchPoints>1,e.c_key=e.is_mac?"⌘":"ctrl-",e.modKey=e.is_mac?"metaKey":"ctrlKey",e.scrollbar_width=e.is_pointer?(()=>{t.body.insertAdjacentHTML("beforeend",'
    ');var e=t.body.lastElementChild,a=()=>e.offsetWidth-e.clientWidth;if(!a())return e.remove(),0;i.classList.add("has-scrollbars"),n.toLowerCase().indexOf("firefox")>-1&&(i.style.overflowY="auto",Q(0).then((()=>i.style.removeProperty("overflow-y"))));var o=a();return e.remove(),o})():0,e.pixel_ratio=o.devicePixelRatio||1,e.download="download"in t.createElement("a"),e.clipboard=!(!t.queryCommandSupported||!t.queryCommandSupported("copy")),e.url=!("function"!=typeof URL),e.fullscreen=screenfull.isEnabled,e.image_orientation=CSS.supports("image-orientation","from-image"),e.browser_images=["jpg","jpeg","png","gif","bmp","svg","svg+xml","ico","vnd.microsoft.icon","x-icon"],(()=>{const i=[["webp","UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"],["avif","AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="]];if((a.vendor.match(/apple/i)||"").length>0){let e="AAAAGGZ0eXBoZWljAAAAAG1pZjFoZWljAAAB5G1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAHBpY3QAAAAAAAAAAAAAAAAAAAAADnBpdG0AAAAAAAIAAAAQaWRhdAAAAAAAAQACAAAATGlsb2MBAAAAREAAAwABAAAAAAAAAgQAAQAAAAAAAAA2AAIAAQAAAAAAAAABAAAAAAAAAAgAAwAAAAAAAAI6AAEAAAAAAAADVAAAAE1paW5mAAAAAAADAAAAFWluZmUCAAABAAEAAGh2YzEAAAAAFWluZmUCAAAAAAIAAGdyaWQAAAAAFWluZmUCAAABAAMAAEV4aWYAAAAA2GlwcnAAAAC2aXBjbwAAAHZodmNDAQNwAAAAAAAAAAAAHvAA/P34+AAADwMgAAEAGEABDAH//wNwAAADAJAAAAMAAAMAHroCQCEAAQAqQgEBA3AAAAMAkAAAAwAAAwAeoCCBBZbqrprm4EBAwIAAAAMAgAAAAwCEIgABAAZEAcFzwYkAAAAUaXNwZQAAAAAAAAABAAAAAgAAABRpc3BlAAAAAAAAAEAAAABAAAAAEHBpeGkAAAAAAwgICAAAABppcG1hAAAAAAAAAAIAAQKBAwACAgKEAAAAKGlyZWYAAAAAAAAADmRpbWcAAgABAAEAAAAOY2RzYwADAAEAAgAAA5JtZGF0AAAAMigBrxMhamNAVNtUudIiM1hD24r89ADWCSGubSNnoMNqicMqNuK6hWvKAPhAh4Y12DY4AAAABkV4aWYAAElJKgAIAAAADQAAAQQAAQAAAKAPAAABAQQAAQAAALgLAAAPAQIACAAAAKoAAAAQAQIACQAAALIAAAASAQMAAQAAAAEAAAAaAQUAAQAAAN4AAAAbAQUAAQAAAOYAAAAoAQMAAQAAAAIAAAAxAQIADgAAALwAAAAyAQIAFAAAAMoAAAATAgMAAQAAAAEAAABphwQAAQAAAO4AAAAliAQAAQAAAMQCAAAAAAAAc2Ftc3VuZwBTTS1BMzI2QgAAQTMyNkJYWFM4Q1dLMgAyMDIzOjEyOjEyIDE4OjM5OjE2AEgAAAABAAAASAAAAAEAAAAcAJqCBQABAAAAhAIAAJ2CBQABAAAAfAIAACKIAwABAAAAAgAAACeIAwABAAAA9AEAAACQBwAEAAAAMDIyMAOQAgAUAAAARAIAAASQAgAUAAAAWAIAABCQAgAHAAAAbAIAABGQAgAHAAAAdAIAAAGSBQABAAAAjAIAAAKSBQABAAAAlAIAAAOSCgABAAAAnAIAAASSCgABAAAApAIAAAWSBQABAAAArAIAAAeSAwABAAAAAgAAAAmSAwABAAAAAAAAAAqSBQABAAAAvAIAAJCSAgAEAAAANTc2AJGSAgAEAAAANTc2AJKSAgAEAAAANTc2AAGgAwABAAAAAQAAAAKgBAABAAAAoA8AAAOgBAABAAAAuAsAAAKkAwABAAAAAAAAAAOkAwABAAAAAAAAAASkBQABAAAAtAIAAAWkAwABAAAAGQAAAAakAwABAAAAAAAAAAAAAAAyMDIzOjEyOjEyIDE4OjM5OjE2ADIwMjM6MTI6MTIgMTg6Mzk6MTYAKzAxOjAwAAArMDE6MDAAALQAAABkAAAAAQAAABkAAAABAAAAGQAAAKkAAABkAAAAdwAAAGQAAAAAAAAAZAAAAKkAAABkAAAAZAAAAGQAAADMAQAAZAAAAAYAAQACAAIAAABOAAAAAgAFAAMAAAASAwAAAwACAAIAAABFAAAABAAFAAMAAAAqAwAABQADAAEAAAAAAAAABgAFAAEAAABCAwAAAAAAACkAAAABAAAAKwAAAAEAAABvEQQCQEIPAAEAAAABAAAAMQAAAAEAAAB4FQcCQEIPACQBAAABAAAA";i.push(["tiff","SUkqAAwAAAADIAACEwAAAQMAAQAAAAEAAAABAQMAAQAAAAIAAAACAQMAAQAAAAEAAAADAQMAAQAAAAQAAAAGAQMAAQAAAAAAAAAKAQMAAQAAAAIAAAANAQIACwAAAAYBAAARAQQAAQAAAAgAAAASAQMAAQAAAAEAAAAVAQMAAQAAAAEAAAAWAQMAAQAAAAIAAAAXAQQAAQAAAAQAAAAaAQUAAQAAAPYAAAAbAQUAAQAAAP4AAAAcAQMAAQAAAAEAAAAoAQMAAQAAAAIAAAApAQMAAgAAAAAAAQAxAQIARwAAABIBAABTAQMAAQAAAAEAAAAAAAAASAAAAAEAAABIAAAAAQAAAHRlbXAyLnRpZmYAAEdyYXBoaWNzTWFnaWNrIDEuNCBzbmFwc2hvdC0yMDIyMTIxMyBROCBodHRwOi8vd3d3LkdyYXBoaWNzTWFnaWNrLm9yZy8A"],["heic",e],["heif",e])}let n=T.get("files:tests:extended_images"),o=n?n.split(","):[],s=o.length;if(s&&e.browser_images.push(...o),s>=i.length)return;let l=1;const r=t=>{t&&[o,e.browser_images].forEach((e=>e.push(t))),l++===i.length&&o.length>s&&T.set("files:tests:extended_images",o)};let c=t.createElement("canvas");c.width=c.height=1,i.forEach(((e,t)=>{if(o.includes(e[0]))return r();if(0==c.toDataURL(`image/${e[0]}`).indexOf(`data:image/${e[0]}`))return r(e[0]);let i=new Image;i.onload=i.onerror=()=>r(!(!i.height||2!=i.height)&&e[0]),i.src=`data:image/${e[0]};base64,${e[1]}`}))})(),e.history=!(!o.history||!history.pushState),e.history||(_c.config.history=!1),e.prefers_reduced_motion=(o.matchMedia("(prefers-reduced-motion: reduce)")||{}).matches,_c.config.respect_prefers_reduced_motion&&e.prefers_reduced_motion&&(_c.config.transitions=!1),e.URLSearchParams=!!("URLSearchParams"in o),location.search&&e.URLSearchParams&&new URLSearchParams(location.search).forEach(((e,t)=>{e&&t.startsWith("--")&&i.style.setProperty(t,e)})),e.max_texture_size=(()=>{if(o.WebGLRenderingContext){var e=document.createElement("canvas");if(e&&e.getContext)try{var t=e.getContext("webgl")||e.getContext("experimental-webgl");return!!t&&t.getParameter(t.MAX_TEXTURE_SIZE)}catch(e){return}}})()||0,e.supports_inline_pdf=!(void 0!==a.platform&&"MacIntel"===a.platform&&void 0!==a.maxTouchPoints&&a.maxTouchPoints>1)&&!/Mobi|Tablet|Android|iPad|iPhone/.test(n)&&("boolean"==typeof a.pdfViewerEnabled?a.pdfViewerEnabled:void 0!==o.chrome||void 0!==o.safari||void 0!==o.Mozilla||/irefox/.test(n))})(),j("tests",X);class ee{static theme="contrast";static index=0;static config=e("theme",{themes:["contrast","light","dark"],default:"contrast",button:!0,auto:!0});static init(){let e=this.is_theme(z("theme",!0));this.theme=e||this.is_theme(!!this.config.button&&T.get("files:theme"))||this.is_theme(!(!this.config.auto||!matchMedia("(prefers-color-scheme:dark)").matches)&&"dark")||this.config.default,this.index=this.config.themes.indexOf(this.theme),document.documentElement.dataset.theme!==this.theme&&(document.documentElement.dataset.theme=this.theme,e||T.set("files:theme",this.theme))}static is_theme(e){return!(!e||!this.config.themes.includes(e))&&e}static next(){this.index++,this.index>=this.config.themes.length&&(this.index=0),this.theme=this.config.themes[this.index],w(document.body,"no-transition",null,10),document.documentElement.dataset.theme=this.theme,T.set("files:theme",this.theme)}}ee.init(),(()=>{if(X.local_storage){var e=z("clearall",!0),t=!e&&z("clear",!0),i=e||t;if(U.clean_localstorage=function(){if(!i){var e=Object.keys(localStorage);e.length&&V(e,(function(e){if(e.startsWith("files:menu:"))localStorage.removeItem(e);else if(e.startsWith("files:dir:"))if(e.startsWith("files:dir:"+_c.dirs_hash)){if(_c.exists){var t=e.split(":"),i=t[3];if(_c.menu_max_depth&&i.split("/").length>=_c.menu_max_depth)return;var a=parseInt(t[4]);_c.dirs[i]&&_c.dirs[i].mtime==a||localStorage.removeItem(e)}}else localStorage.removeItem(e)}))}},i){var a=0;V(Object.keys(localStorage),(function(t){(e&&t.startsWith("files:")||t.startsWith("files:menu:")||t.startsWith("files:dir:"))&&(localStorage.removeItem(t),a++)})),j(a+" localStorage items cleared")}else _c.menu_exists||U.clean_localstorage()}})();const te=e=>e[0].toUpperCase()+e.slice(1),ie=(()=>{var e=!1,t=!1,i=_c.config&&_c.config.lang||{},a={ar:null,bg:null,cs:null,da:null,de:null,en:null,el:null,es:null,et:null,fi:null,fr:null,hu:null,id:null,it:null,ja:null,ko:null,ms:null,nl:null,no:null,pl:null,pt:null,ro:null,ru:null,sk:null,sl:null,sv:null,th:null,tr:null,uk:null,zh:null},n={ar:"sa",cs:"cz",da:"dk",el:"gr",en:"gb",et:"ee",ja:"jp",ko:"kr",ms:"my",sv:"se",sl:"si",uk:"ua",vi:"vn",zh:"cn"},o="object"==typeof _c.lang_custom?_c.lang_custom:{};"object"==typeof i.langs&&Object.keys(i.langs).forEach((e=>{o[e]=Object.assign(o[e]||{},i.langs[e])})),Object.keys(o).forEach((e=>{o[e].flag&&(n[e]=o[e].flag),a.hasOwnProperty(e)||(a[e]=o[e])}));var s=Object.keys(a).sort();if(X.local_storage){var l=T.get("files:version");l!==_c.version&&T.set("files:version",_c.version),l&&l!==_c.version&&V(s,(function(e){T.remove("files:lang:"+e)}))}var r={},c={get:function(e,t){var i=r[e]||e;return t?te(i):i},set:function(e,t){e.dataset.lang=t,e.textContent=this.get(t)},span:function(e,t){return`${this.get(e,t)}`},dropdown:function(){var a=z("lang_menu",!0)||i.menu;if(a&&"false"!=a&&"0"!=a){var o=Array.isArray(i.menu)?i.menu:s;K.topbar_top.insertAdjacentHTML("beforeend",`
  • `);_c.dirs[i]={basename:this.name,fileperms:e.fileperms,filetype:"dir",is_dir:!0,is_writeable:!!e.is_writeable,is_readable:!!e.is_readable,menu_li:t.lastElementChild,mime:"directory",mtime:Math.round(Date.now()/1e3),path:i,url_path:!!e.url_path&&me.create_path(e.url_path,this.name)};this.sort_menu_level(t),ke.update()}me.clean_dir(e),this.reload_current_dir(e)}else if("copy"===this.action){const e=_c.dirs[this.dir],t=this.items.filter((e=>e.is_dir)),i=!!t.length&&this.get_target_ul(e);i&&t.forEach((e=>{const t=e.path,a=me.create_path(this.dir,e.basename);if(_c.dirs[a])return;const n=this.get_menu_li(e);if(!n)return;const o=i.appendChild(n.cloneNode(!0));o&&(this.clear_max_depth_uls(o),this.li_looper(o,t,a,((e,t,i,a,n)=>{t.classList.remove("menu-active");const o=_c.dirs[n]=Object.assign({},i,{menu_li:e,mtime:Math.round(Date.now()/1e3),path:n,url_path:this.get_url_path(i.url_path,a,n)});me.clean_dir(o)})))})),this.sort_menu_level(i),i&&ke.update(),me.clean_dir(e),this.reload_current_dir(e)}else if("move"===this.action){const e=_c.dirs[this.dir],t=this.items.filter((e=>e.is_dir)),i=!!t.length&&this.get_target_ul(e);i&&t.forEach((e=>{const t=e.path,a=me.create_path(this.dir,e.basename);if(_c.dirs[a])return;const n=this.get_menu_li(e);if(!n)return;const o=n.parentElement,s=i.appendChild(n);s&&(this.clear_max_depth_uls(s),this.li_looper(s,t,a,((e,t,i,a,n)=>{t.classList.remove("menu-active"),delete _c.dirs[a],me.clean_dir(i);_c.dirs[n]=Object.assign(i,{mtime:Math.round(Date.now()/1e3),path:n,url_path:this.get_url_path(i.url_path,a,n)})})),o&&!o.children.length&&this.remove_ul(o))})),this.items.forEach((e=>{e.is_dir&&this.update_dirs(e.path,me.create_path(this.dir,e.basename)),this.partial_fail||this.delete_file(e)})),this.sort_menu_level(i),i&&ke.update(),me.clean_dir(this.parent_dir,this.partial_fail),me.clean_dir(e),this.partial_fail||this.update_current_dir(),this.reload_current_dir(e),this.partial_fail&&this.reload_current_dir(this.parent_dir)}else if("zip"===this.action)me.clean_dir(this.parent_dir),this.reload_current_dir(this.parent_dir);else if("duplicate"===this.action){const e=this.items.filter((e=>e.is_dir)),t=!!e.length&&this.get_target_ul(this.parent_dir);t&&e.forEach((e=>{const i=this.get_menu_li(e);if(!i)return;const a=t.appendChild(i.cloneNode(!0));if(!a)return;const n=this.name||this.get_unique_filename(e.basename,this.parent_dir,!0),o=e.path,s=o.replace(new RegExp(e.basename+"$"),n);this.li_looper(a,o,s,((e,t,i,a,n)=>{t.classList.remove("menu-active");const o=_c.dirs[n]=Object.assign({},i,{menu_li:e,mtime:Math.round(Date.now()/1e3),path:n,url_path:this.get_url_path(i.url_path,a,n)});me.clean_dir(o)})),a.firstElementChild.lastChild.nodeValue=n;const l=_c.dirs[s];l&&(l.basename=n)})),this.sort_menu_level(t),t&&ke.update(),me.clean_dir(this.parent_dir),this.reload_current_dir(this.parent_dir)}else if("delete"===this.action){const e=K.sidebar_menu?this.items.map((e=>!!e.is_dir&&this.get_menu_li(e))).filter(Boolean):[];e.forEach((e=>{const t=e.parentElement;if(t.children.length<=1&&t.classList.contains("menu-ul"))return this.remove_ul(t);e.remove()})),this.items.forEach((e=>{e.is_dir&&this.update_dirs(e.path),this.partial_fail||this.delete_file(e)})),e.length&&ke.update(),me.clean_dir(this.parent_dir,this.partial_fail),this.partial_fail||this.update_current_dir(),this.partial_fail&&this.reload_current_dir(this.parent_dir)}this.check_current_dir()}dir_is_writeable(e){return!e||e.is_writeable}load(){if(_c.hasOwnProperty(`allow_${this.action}`)&&!_c[`allow_${this.action}`])return F.toggle(!1,`${this.action} is not allowed`);if(_c.demo_mode)return F.demo();if(!ne)return F.license();if(this.pasted_from&&(this.dir=_c.current_dir.path),this.dir&&this.into_self(this.dir))return F.toggle(!1,`Can't ${this.action_name} folders into themselves`);if(this.dir_action&&!this.dir_is_writeable(_c.dirs[this.dir]))return F.toggle(!1,`${ie.get("folder",!0)} ${ie.get("is not writeable")}`);if(!["copy","unzip"].includes(this.action)&&!this.dir_is_writeable(this.new_item_action?this.first_item:this.parent_dir))return F.toggle(!1,`${ie.get("folder",!0)} ${ie.get("is not writeable")}`);this.toggle_loading(!0);const e={items:this.items.map((e=>({basename:e.basename,is_dir:e.is_dir,path:e.path})))};["dir","name","text"].forEach((t=>{this.hasOwnProperty(t)&&(e[t]=this[t])})),fetch(`${_c.script}?action=${this.action}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(e)}).then((e=>e.ok?e.json():Promise.reject(new Error(e.status&&e.statusText?`${e.status} ${e.statusText}`:"Error")))).then((e=>"login"===e.error?(this.toggle_loading(!1),this.complete&&this.complete(!1),_e.was_logged_out("filemanager")):e.error||!e.success?Promise.reject(new Error(e.error||"Error")):(this.toggle_loading(!1),this.partial_fail=e.fail&&["delete","move","duplicate","copy"].includes(this.action)?e.fail:0,void this.success()))).catch(((e,t)=>{this.toggle_loading(!1),F.toggle(!1,e.message||"Error"),this.complete&&this.complete(!1)}))}}_c.allow_upload&&U.load_plugin("uppy",(()=>{function t(){let e=p.watermark.use_image||!!p.watermark.text;p.watermark.enabled=e;let t=!e&&d;if(p.strict===t)return;p.strict=t;let i=n.getPlugin("Compressor");i&&i.setOptions(p)}const i=()=>{let e=n.getFiles().length;[1,2,5,9].forEach((t=>l.classList.toggle("uppy-Dashboard-inner-"+t,e>=t))),Q(1).then((()=>{let e=_class("uppy-StatusBar-actionBtn--upload")[0];e&&(e.className="button upload-button")}))},a=e("uppy",{note:!0,DropTarget:!0,ImageEditor:!0}),n=Y.uppy=new Uppy.Uppy({restrictions:{maxFileSize:_c.upload_max_filesize||null,allowedFileTypes:_c.upload_allowed_file_types?_c.upload_allowed_file_types.split(",").map((e=>{let t=e.trim();return t.startsWith(".")||t.includes("/")||t.includes("*")?t:"."+t})).filter((e=>e)):null}}).use(Uppy.Dashboard,{trigger:"#fm-upload",thumbnailWidth:Math.round(160*Math.min(X.pixel_ratio,2)),showLinkToFileUploadResult:!0,showProgressDetails:!0,metaFields:[{id:"name",name:ie.get("name"),placeholder:ie.get("name"),render:({value:e,onChange:t,fieldCSSClasses:i},a)=>a("input",{class:i.text,type:"text",value:e,maxlength:128,onChange:e=>t(e.target.value.trim()),onInput:e=>{e.target.value=e.target.value.replace(/[#%&(){}\\<>*?/$!'":;\[\]@+`|=]/gi,"").replace("..",".")},"data-uppy-super-focusable":!0})}],doneButtonHandler:()=>{u(!1),n.cancelAll()},closeModalOnClickOutside:!0,animateOpenClose:!1,proudlyDisplayPoweredByUppy:!1,showRemoveButtonAfterComplete:_c.allow_delete,theme:"dark"===ee.theme?"dark":"light"}).use(Uppy.XHRUpload,{endpoint:_c.script+"?action=upload",validateStatus:(e,t,i)=>q(t,"success"),getResponseError:(e,t)=>q(e,"error")}).on("files-added",(e=>{i()})).on("files-added",(e=>{i()})).on("file-removed",(e=>{i()})).on("cancel-all",(e=>{i()})).on("file-removed",((e,t)=>{_c.allow_delete&&"removed-by-user"===t&&e.response&&e.response.body&&e.response.body.success&&e.progress&&e.progress.uploadComplete&&e.meta&&new me({action:"delete",items:[{path:me.create_path(e.meta.dir,e.meta.name),is_dir:!1,basename:e.meta.name}],show_prompt:!1})})).on("upload-success",((e,t)=>{let i=t.body.filename;i&&e.name!==i&&n.setFileMeta(e.id,{name:i})})).on("complete",(e=>{const t=n.getState().meta.dir,i=[t];e.successful&&e.successful.length&&e.successful.forEach((function(e){if(e.uploadURL&&(e.uploadURL=new URL(e.uploadURL,location.href).href),!e.meta.relativePath)return;const a=me.get_parent_path(me.create_path(t,e.meta.relativePath));a&&-1===i.indexOf(a)&&i.push(a)})),i.forEach((e=>{let t=_c.dirs[e];t&&(["files","html","json_cache"].forEach((e=>delete t[e])),T.remove(he(e,t.mtime)))})),delete Y.contextmenu.el})).on("dashboard:modal-open",(()=>{let e=n.getPlugin("Dashboard"),i="dark"===_c.theme?"dark":"light";e.opts.theme!==i&&e.setOptions({theme:i}),function(){let e=p.watermark;if(!e||"object"!=typeof e||e.assets_loaded)return;e.assets_loaded=!0;let i=_c.watermark_files||[],a=(!1!==e.interface||!e.text)&&(e.image_src||i.find((e=>/\.(png|jpg|gif|webp)$/i.test(e))));a&&(e.image=new Image,e.image.addEventListener("load",(()=>{let i=_id("watermark");e.use_image=!i||!1!==T.get("files:upload:watermark:use_image"),t(),i&&(i.insertAdjacentHTML("afterbegin",``),_id("watermark-image").addEventListener("change",(i=>{e.use_image=i.currentTarget.checked,t(),T.set("files:upload:watermark:use_image",e.use_image)})))})),e.image.src=a);let n=(!1!==e.interface||!a)&&(e.font_src||i.find((e=>/\.(otf|ttf|woff|woff2)$/i.test(e))));if(n){let t=new FontFace("custom_font",`url(${n})`);document.fonts.add(t),t.load().then((()=>{e.font="10px custom_font"}))}}(),R(),ne||s.classList.add("uppy-nolicense"),a.note&&e.setOptions({note:("string"==typeof a.note?a.note:"%path% ≤ %upload_max_filesize%").replace("%upload_max_filesize%",_c.upload_max_filesize?g(_c.upload_max_filesize):"").replace("%path%",n.getState().meta.dir||ie.get("home",!0)||me.config.path_selector_root_value)})})).on("dashboard:modal-closed",(()=>{const e=n.getState();if(100===e.totalProgress){if(!e.error||Object.keys(e.files).some((t=>!e.files[t].error))){let t=e.meta.dir===_c.current_path;t&&ue.current()&&history.replaceState(history.state||null,document.title,location.pathname+location.search),U.get_files(e.meta.dir,t?"replace":"push",t)}n.cancelAll()}})),o={ImageEditor:{target:Uppy.Dashboard,quality:.8},DropTarget:{target:document.body,onDrop:e=>u(!0,_c.current_path)},Webcam:{target:Uppy.Dashboard}};Object.keys(o).forEach((e=>{a[e]&&n.use(Uppy[e],"object"==typeof a[e]?Object.assign(o[e],a[e]):o[e])}));const s=document.body.lastElementChild,l=s.firstElementChild.lastElementChild,r=l.firstElementChild,c=l.lastElementChild;_c.demo_mode&&s.classList.add("uppy-demo-mode"),_c.allow_delete&&s.classList.add("uppy-allow-delete"),r.insertAdjacentHTML("afterbegin",U.get_svg_icon("close_thin")),r.className="button-icon button-uppy-close";const p=a.hasOwnProperty("Compressor")&&!a.Compressor?{}:Object.assign({interface:!0,enabled:!1,quality:.8,maxWidth:2e3,maxHeight:2e3,retainExif:!0,watermark:{},strict:!0,drew:(e,t)=>{let i=p.watermark;if(!i.enabled)return;Object.assign(e,{font:"10px Futura, Gill Sans, Gill Sans MT, Calibri, Trebuchet MS, sans-serif",fillStyle:"white",position:"bottom-right",scale:.3,margin:.05},i,/(.+)=(.+)/.test(i.text)?N(i.text):{});let a=e.position.split("-"),n=t.width,o=t.height,[s,l]=["scale","margin"].map((t=>parseFloat(e[t])||0));if(!s||isNaN(s)||s<=0)return console.warn("scale must be a positive number > 0");if(isNaN(l)||l<0)return console.warn("margin must be a positive number >= 0");if(l<=1&&(l*=n),p.watermark.use_image){let t=p.watermark.image,i=t.naturalWidth,r=t.naturalHeight;if(!(t&&t.complete&&i&&r))return;let c=s>1?1:n/i*s,d=s>1?s:i*c,m=s>1?s*(r/i):r*c,u="left"===a[1]?l:"right"===a[1]?n-d-l:n/2-d/2,h="top"===a[0]?l:"bottom"===a[0]?o-m-l:o/2-m/2;e.drawImage(t,0,0,i,r,u,h,d,m)}else{let t=s>1?s:(e.font.match(/\d+/)||10)*(n/e.measureText(e.text).width)*s;e.font=e.font.replace(/\d+px/,t+"px"),Object.assign(e,{textBaseline:"center"===a[0]?"middle":a[0],textAlign:a[1]||"center"});let i="left"===a[1]?l:"right"===a[1]?n-l:n/2,r="top"===a[0]?l:"bottom"===a[0]?o-l:o/2;e.fillText(e.text,i,r)}}},a.Compressor||{}),d=!!p.strict;if(p.interface){let b={},y=N(T.get("files:upload:compressor"));function m(e){let t=e.currentTarget,i=t.id.replace("compressor-",""),a="enabled"===i?t.checked?1:0:t.value.replace(",",".");if(["quality","maxWidth","maxHeight"].includes(i)){if(isNaN(a)||""===a)return t.value=p[i];if(a=+a,"quality"===i)(a<0||a>1)&&(t.value=a=a>1?1:0);else if(a<1)t.value=a=1;else{let e=Math.round(a);a!==e&&(t.value=a=e)}}if(a!==p[i]){if(p[i]=a,T.set("files:upload:compressor",Object.keys(b).map((e=>p[e]!=b[e]&&e+"="+p[e])).filter(Boolean).join("&"),!0),"enabled"===i)return x.classList.toggle("compressor-enabled",!!a),a?n.use(Uppy.Compressor,p):n.removePlugin(n.getPlugin("Compressor"));n.getPlugin("Compressor").setOptions(p)}}["enabled","quality","maxWidth","maxHeight"].forEach((e=>{b[e]=p[e],y[e]&&(p[e]=y[e])})),p.watermark.text=!1!==p.watermark.interface&&T.get("files:upload:watermark"),c.insertAdjacentHTML("beforeend",`
    ${!1!==p.watermark.interface?`
    `);const x=c.lastElementChild;_tag("input",x).forEach((e=>L(e,m,"change")));let A=_id("watermark-text");A&&(["input","focus"].forEach((e=>L(A,(()=>{A.style.height="auto",A.style.height=A.scrollHeight+"px"}),e))),L(A,(()=>{let e=A.value.trim();p.watermark.text=e,t(),T.set("files:upload:watermark",e,!0)}),"change")),p.enabled&&!a.Compressor&&"none"===window.getComputedStyle(x).getPropertyValue("display")&&(p.enabled=!1,T.remove("files:upload:compressor"))}function u(e,t){var i=n.getPlugin("Dashboard");!!e!==i.isModalOpen()&&(i[e?"openModal":"closeModal"](),"string"==typeof t&&n.setMeta({dir:t}))}function h(e){U.load_plugin("uppy_locale_"+e,(()=>{Y.uppy.setOptions({locale:Uppy.locales[e]})}),{src:["@uppy/locales@3.4.0/dist/"+e+".min.js"]})}p.enabled&&(t(),n.use(Uppy.Compressor,p)),U.uppy_locale=function(e){var t=f(e)||f(_c.lang_default)||"en_US";t!==v&&(v=t,h(v))};var _={no:"nb_NO",nn:"nb_NO"};["ar_SA","bg_BG","ca_ES","cs_CZ","da_DK","de_DE","el_GR","en_US","es_ES","es_MX","fa_IR","fi_FI","fr_FR","gl_ES","he_IL","hi_IN","hr_HR","hu_HU","id_ID","is_IS","it_IT","ja_JP","ko_KR","nb_NO","nl_NL","pl_PL","pt_BR","pt_PT","ro_RO","ru_RU","sk_SK","sr_RS_Cyrillic","sr_RS_Latin","sv_SE","th_TH","tr_TR","uk_UA","uz_UZ","vi_VN","zh_CN","zh_TW"].forEach((function(e){_[e.replace("_","-").toLowerCase()]=e;var t=e.split("_")[0];_[t]||(_[t]=e)}));const f=e=>!!e&&_[e];let v=f(z("lang",!0))||f(T.get("files:lang:current"))||!!a.locale&&f(a.locale.replace("_","-").toLowerCase())||(()=>{if(_c.lang_auto&&X.nav_langs)for(var e=0;e{n.cancelAll(),u()}),"popstate")}));var ue=(()=>{let e,t="",i=screen.width>=768,a=_c.config.filter_live&&X.is_pointer,n=(()=>{let e=_c.config.filter_props;if(!e)return["basename"];"string"==typeof e&&(e=e.split(","));const t=["basename","filetype","mime","features","title","headline","description","creator","credit","copyright","keywords","city","sub-location","province-state"],i=["icon"];return e.forEach((function(e){let a=e.trim().toLowerCase();"name"===a&&(a="basename"),a&&t.includes(a)&&!i.includes(a)&&i.push(a)})),i})();function o(e){i&&(K.filter_container.dataset.input=e||"")}const s={current:()=>t,create:function(){Y.list=new ge(K.files.parentElement,{}),V(_c.file_names,((e,t)=>{Y.list.items[t]._values=_c.files[e]}))},empty:function(){Y.list&&(Y.list.clear(),Y.list.matchingItems=[]),m(K.files),window.scrollY&&window.scroll({top:0})},update_interface:()=>{const e=Y.list.matchingItems.length;P(K.filter_container,[t?"filter-"+(e?"match":"nomatch"):"",K.filter_container.classList.contains("search-small-focused")?"search-small-focused":""].filter(Boolean).join(" ")),U.topbar_info_search(t,e),ye.update()},update:()=>{Y.list.search(t.toLowerCase(),n),s.update_interface()},filter:function(e){t!==K.filter.value&&Y.list&&(t=K.filter.value,Y.list.search(t.toLowerCase(),n),s.update_interface(),!1!==e&&history.replaceState(history.state||null,document.title,t?"#filter="+encodeURIComponent(t):location.pathname+location.search),window.scrollY&&window.scrollTo({top:0}))},hash:function(e){var t=z("filter",!0,!0);t&&(t=decodeURIComponent(t),K.filter.value=t,o(t),e&&s.filter(!1))},clear:function(e){if(t){if(K.filter.value="",o(),e)return s.filter();t="",P(K.filter_container,K.filter_container.classList.contains("search-small-focused")?"search-small-focused":"")}},disabled:function(e){K.filter.disabled!==!!e&&(K.filter.disabled=!!e)}};(i||a)&&L(K.filter,(function(t){o(K.filter.value),a&&(e&&clearTimeout(e),e=setTimeout(s.filter,Z(250,750,_c.files_count)))}),"input"),L(K.filter,s.filter,"change");const l=e=>K.filter.clientWidth{l(160)&&(K.filter_container.style.setProperty("--height",`${K.filter_container.clientHeight}px`),K.filter_container.classList.add("search-small-focused"))})),K.filter.addEventListener("blur",(e=>K.filter_container.classList.remove("search-small-focused"))),"undefined"!=typeof ResizeObserver&&new ResizeObserver((()=>{K.filter.classList.toggle("search-small",l(100))})).observe(K.filter),s})();function he(e,t){return""===e&&(e="ROOT"),"files:dir:"+_c.dirs_hash+":"+(e||_c.current_dir.path)+":"+(t||_c.current_dir.mtime)}_c.is_clean_cache_time&&Q(5e3).then((()=>fetch(`${_c.script}?action=clean_cache&app=1`))),function(){var e=!1,i=(X.pixel_ratio>=1.5||_c.image_resize_cache_use_dir)&&_c.image_resize_dimensions_retina?_c.image_resize_dimensions_retina:_c.image_resize_dimensions,s=!!_c.x3_path&&_c.x3_path+(_c.x3_path.endsWith("/")?"":"/")+"render/w"+(X.pixel_ratio>=1.5?"480":"320")+"/";image_load_errors=0,image_resize_min_ratio=Math.max(_c.image_resize_min_ratio,1);const d=(e,t)=>{let i="svg-icon files-icon-overlay";return e.is_pano?U.get_svg_icon_class("panorama_variant",i):"gif"===e.browser_image?e.resize||!t?U.get_svg_icon_class("gif",i):"":e.gps?U.get_svg_icon_class("marker",i):"pdf"===e.mime1&&t?U.get_svg_icon_multi_class(i,"square_rounded","file_pdf_box"):""};function m(t,i){if(e)return e.abort(),e=!1,void(i&&i());if(_c.config.transitions&&_c.files_count)if("list"!==Y.layout.layout){for(var a=K.files.children,n=a.length,o=[],s=window.innerHeight,l=0;l-1&&(i+=t?"&"+location.search.substr(1):location.search);return i}(a,e)),document.body.dataset.currentPath=e||"/"}const g=()=>{let e=location.search.replace("?","").split("&")[0];return e&&!e.includes("=")?decodeURIComponent(e):""};_c.config.cloudflare_convert&&!_c.resize_image_types.includes("heic")&&_c.resize_image_types.push("heic"),_c.config.resize_exclude&&(_c.resize_image_types=_c.resize_image_types.filter((e=>!e.match(_c.config.resize_exclude)))),_c.config.convert_native_formats&&_c.imagemagick&&(X.browser_images=X.browser_images.filter((e=>!_c.imagemagick_image_types.includes(e)||!e.match(_c.config.convert_native_formats))));const b=e=>!!(e=>{if(!_c.config.cloudflare_convert||!X.url||!e.url_path||"heic"!==e.ext)return;let t=new URL(e.url_path,location.href);return t&&t.pathname?e.cloudflare_convert=t.pathname:void 0})(e)||(!!X.browser_images.includes(e.mime1)||!(!_c.imagemagick||!_c.imagemagick_image_types.includes(e.ext))&&(e.is_convert=!0)),x=e=>{if(_c.load_images&&e.is_readable)return!_c.config.load_images_exclude||!e.mime.match(_c.config.load_images_exclude)};function A(){const e=E(_c.file_names,((e,t)=>{var m=_c.files[e];if(m.is_dir){let e=_c.dirs[m.path];e&&m.mtime!==e.mtime&&Object.assign(_c.dirs[m.path],m)}else if(!m.mime&&m.ext&&(m.mime=re[m.ext]),m.mime){var u=m.mime.split("/");m.mime0=u[0],u[1]&&(m.mime1=u[1])}m.display_name=m.url?m.basename.slice(0,-4):m.basename,m.image&&(m.image.exif&&m.image.exif.gps&&Array.isArray(m.image.exif.gps)&&(m.gps=m.image.exif.gps),m.image.width&&m.image.height&&(m.dimensions=[m.image.width,m.image.height],m.ratio=m.image.width/m.image.height),m.image.iptc&&Object.assign(m,m.image.iptc));var h,g=function(){if(m.mime1){if("image"===m.mime0){if(!b(m))return;if(m.browser_image=m.mime1,m.is_popup=!0,ne&&m.dimensions&&X.max_texture_size){let e=_c.config.panorama.is_pano(m,X);e&&(m.is_pano=e,_c.current_dir.has_pano=!0)}if(!x(m))return;var e=!1,t="files-img files-img-placeholder files-lazy";if("svg+xml"===m.browser_image||"svg"===m.ext){if(m.filesize>_c.config.load_svg_max_filesize)return;t+=" files-img-svg"}if(function(e){if(!_c.image_resize_enabled||!e.mime1||!_c.resize_image_types.includes(e.mime1))return;if(!e.dimensions||!e.image)return!0;let t=e.image,a=Math.max(t.width,t.height)/i,n=t.width*t.height;if(!(a_c.image_resize_max_pixels)){if(_c.image_resize_memory_limit){var o=t.width/a,s=t.height/a;if((n*(t.bits?t.bits/8:1)*(t.channels||3)*1.33+o*s*4)/1048576>_c.image_resize_memory_limit)return}return!0}}(m)&&(e=m.resize=i),!e&&m.filesize>_c.load_images_max_filesize)return;return"ico"===m.ext&&(t+=" files-img-ico"),m.dimensions&&(m.preview_dimensions||(m.preview_dimensions=e?m.ratio>1?[e,Math.round(e/m.ratio)]:[Math.round(e*m.ratio),e]:[m.image.width,m.image.height]),m.preview_ratio||(m.preview_ratio=m.preview_dimensions[0]/m.preview_dimensions[1])),``}if("video"===m.mime0){if(J("video",m)&&(m.is_browser_video=!0,_c.config.video_popup&&(m.is_popup=!0)),!_c.ffmpeg||!x(m))return;return m.preview_ratio||(m.preview_ratio=_c.config.video_preview_ratio),`${m.is_browser_video?U.get_svg_icon_class("play","svg-icon svg-overlay-play"):""}`}if("pdf"===m.mime1){if(!_c.imagemagick_pdf||!x(m))return;return m.preview_ratio||(m.preview_ratio=_c.config.pdf_preview_ratio),``}return m.url?de(m):void 0}}();if(!g&&!m.custom_preview&&_c.custom_previews){let e=(m.is_dir?["folder"]:[m.ext,m.mime0,"file"]).find((e=>_c.custom_previews[e]));e&&(m.custom_preview=_c.custom_previews[e])}if(m.custom_preview){m.preview_ratio||(m.preview_ratio=m.is_dir?_c.config.folder_preview_ratio:_c.config[`${m.ext}_preview_ratio`]||_c.config[`${m.mime0}_preview_ratio`]||_c.config.file_preview_ratio),g=`${m.is_browser_video||m.embed||m.url&&"m3u8"===m.ext?U.get_svg_icon_class("play","svg-icon svg-overlay-play"+(m.embed?" svg-overlay-play-embed":"")):J("audio",m)?U.get_svg_icon_multi_class("svg-icon svg-overlay-play","play","pause"):""}`}return function(e){var t="dir"==e.filetype?"folders":"files",i=e.image;if(i){t+=",image";var a=i.width,n=i.height,o=i.exif,s=i.iptc;a&&n&&(t+=a===n?",square":a>n?",landscape,horizontal":",portrait,vertical"),o&&(t+=",exif",o.gps&&(t+=",gps,maps"),t+=E(["Make","Model","Software"],(function(e){if(o[e])return","+o[e]}))),s&&(t+=",iptc"+E(["title","headline","description","creator","credit","copyright","keywords","city","sub-location","province-state"],(function(e){if(s[e])return","+e})))}e.embed&&(t+=",video,"+e.icon),e.features=t}(m),function(e){let t=!(!e.image||!e.image.exif)&&e.image.exif.DateTimeOriginal;if(!t||!t.match(/^\d{4}:\d{2}:\d{2}.\d{2}:\d{2}:\d{2}/))return;let i=t.split(/\D/),a=new Date(i[0],i[1]-1,i[2],i[3],i[4],i[5]);isNaN(a)||(e.mtime=Math.floor(a.getTime()/1e3))}(m),`${g||U.get_svg_large(m,"files-svg")}\n\t\t\t\t
    \n\t\t\t\t\t${l.span(m.gps,"gps")}\n\t\t\t\t\t${n(m.display_name)}\n\t\t\t\t\t${m.image&&m.image.iptc&&m.image.iptc.title?o((h=m.image.iptc.title,-1===h.indexOf("/g,"").replace(/\shref\=/g," data-href=")),"title"):""}\n\t\t\t\t\t${U.get_svg_icon_files_layout(m)}\n\t\t\t\t\t${_(m.dimensions,"dimensions")}\n\t\t\t\t\t${f(m,"size")}\n\t\t\t\t\t${y(m.image,"exif","span")}\n\t\t\t\t\t${o(m.ext?o(m.ext,"ext-inner"):"","ext")}\n\t\t\t\t\t${o(U.get_time(m,"L LT",!0,!1),"date")}\n\t\t\t\t\t\n\t\t\t\t
    \n\t\t\t\t${d(m,g)}\n\t\t\t\t${v("menu"!==_c.config.click||m.is_dir,"files-context",!0)}\n\t\t\t\t${D(m)}\n\t\t\t\t${ye.config.enabled?U.get_svg_icon_class("check","svg-icon svg-check-select"):""}\n\t\t\t
    `}));return _c.config.javascript_cache&&(_c.current_dir.html=e),e}function k(e){if("replace"!==e||Y.load_action_was_triggered)return;if(Y.load_action_was_triggered=!0,xe.is_install)return new xe;if(!location.search.includes("="))return;let t=["copy","delete","duplicate","move","new_file","new_folder","rename","upload","settings"].filter((e=>_c[`allow_${e}`])),i=!!t.length&&location.search.match(new RegExp(`(${t.join("|")})=(1|true)`));if(i){if("settings"===i[1])return new xe;if(_c.current_dir)return"upload"===i[1]?U.load_plugin("uppy",(()=>{Y.uppy.setMeta({dir:_c.current_dir.path}),Y.uppy.getPlugin("Dashboard").openModal()})):void new me({action:i[1],items:[_c.current_dir]})}}function H(e,t,i){if(oe(),image_load_errors=0,_c.current_dir=_c.dirs[e],_c.files=_c.current_dir.files,j(i+" :",e,_c.current_dir),_c.file_names=Object.keys(_c.files),_c.files_count=_c.file_names.length,h(e,_c.current_dir.basename,t),U.breadcrumbs_info(),_c.files_count||U.topbar_info(U.get_svg_icon("alert_circle_outline")+ie.span("directory is empty"),"warning"),ue.disabled(!_c.files_count),ye.reset(_c.files_count),!_c.files_count)return pe.destroy(),k(t);K.files.innerHTML=_c.current_dir.html||A(),_c.current_dir.has_pano&&U.load_plugin("pannellum"),ue.create(),"push"!==t&&ue.hash(!0),U.set_sort(),fe.pictures(),pe.page_load(),!t&&_c.current_dir.scroll&&_c.current_dir.scroll.y&&_c.current_dir.scroll.h==document.body.scrollHeight&&window.scrollTo(0,_c.current_dir.scroll.y),"replace"===t&&(function(){if(!_c.config.history||!location.hash)return;let e=z("pid",!0,!0),t=e||location.hash.replace("#","");if(!t)return;let i=_c.files[decodeURIComponent(t)];if(!i)return;if(e&&i.is_popup)U.open_popup(i,!0);else{if(pe.hashed(i))return;U.open_modal(i)}return!0}()||Y.popup.open())||m(!0),k(t)}function M(e,t){return _c.dirs[e]?t?_c.dirs[e].mtime>t.mtime?_c.dirs[e]=Object.assign(t,_c.dirs[e]):Object.assign(_c.dirs[e],t):_c.dirs[e]:_c.dirs[e]=t||{}}function $(e,t,i){_c.current_dir=!1,pe.destroy(),ye.reset(),U.topbar_info(U.get_svg_icon("alert_circle_outline")+`${ie.get("error")} ${e||""}`,"error"),h(t,ie.get("error")+(e?": "+e:"."),i,!0)}U.get_files=(t,i,a)=>{if(a||t!==_c.current_path){_c.current_path=t,_c.config.history_scroll&&_c.current_dir&&(_c.current_dir.scroll={y:window.scrollY,h:document.body.scrollHeight}),K.topbar_info.className="info-hidden",ue.clear(),a||U.set_breadcrumbs(t),!a&&_c.menu_exists&&ke.set_active(t);var n=_c.dirs[t];if(!a&&n){if(n.files&&_c.config.javascript_cache)return m(!1,(function(){ue.empty(),H(t,i,"files from JS")}));if(_c.config.localStorage_cache){var o=T.get_json(he(t,n.mtime));if(o)return M(t,o),m(!1,(function(){ue.empty(),H(t,i,"files from localStorage")}))}}ue.disabled(!0),_c.menu_exists&&ke.loading(!0),K.files_container.classList.add("files-spinner");var s=0,l=!!(n&&n.json_cache&&_c.config.javascript_cache)&&n.json_cache;m(!1,(function(){ue.empty(),r()})),e=O({params:!l&&"dir="+encodeURIComponent(t),url:l||_c.script+"?action=files",json_response:!0,fail:()=>{$(t,t,i)},always:()=>{e=!1,_c.menu_exists&&ke.loading(!1),K.files_container.classList.remove("files-spinner")},complete:function(e,a,n){return n?e.error?$(e.error,t,i):(M(t,e),T.set(he(t,e.mtime),a,!1,1e3),void r()):$(t,t,i)}})}function r(e){1==s++&&H(t,i,l?"files from JSON "+l:"files from xmlhttp")}},U.init_files=function(){if(_c.query_path_invalid)return $("Invalid directory "+_c.start_path,_c.start_path,"replace");if(_c.index_html&&location.search&&_c.config.history){let e=location.search.split("&")[0].replace("?","");if(e&&e!==_c.start_path&&-1===e.indexOf("=")){_c.start_path=decodeURIComponent(e);let t=!(_c.dirs[_c.start_path]||-1!==e.indexOf("/")||!_c.dirs[""]||!_c.dirs[""].files)&&_c.dirs[""].files[_c.start_path];t&&t.is_dir&&M(_c.start_path,t)}}U.get_files(_c.start_path,"replace")};u(K.topbar_info,(function(e,t){if("reset"===e)return ue.clear(!0)})),L(K.files,(e=>(e=>{const t=e.target;if(t===K.files)return;const i=t.closest(".files-a"),a=!!i&&_c.files[i.dataset.name];if(a){if(t.classList.contains("context-button"))return U.create_contextmenu(e,"files",t,a,i);if(Y.contextmenu.is_open&&("menu"!==_c.config.click||a.is_dir))return e.preventDefault();if(t.dataset.href)return e.preventDefault(),window.open(t.dataset.href);if("click"===e.type&&ye.click(e,i))return e.preventDefault();if(!_c.config.on_click||!_c.config.on_click(e,a)){if(!a.is_dir&&("window"===_c.config.click||a.ext&&_c.config.click_window.includes(a.ext)))return _c.config.click_window_popup?_h.popup(e,1e3,null,i.href,a.basename):void 0;if((a.is_dir||"download"!==_c.config.click)&&(!a.url||a.embed||a.is_browser_video||"m3u8"===a.ext)&&!C(e,i))if(a.is_dir)M(a.path,a),U.get_files(a.path,"push");else if("menu"===_c.config.click)U.create_contextmenu(e,"files",i,a);else if("popup"===_c.config.click&&a.is_popup&&a.is_readable)X.is_pointer&&w(i,"files-data-hidden",null,300),U.open_popup(a);else{if("audio"===a.mime0&&pe.list_click(a))return;U.open_modal(a,!0)}}}})(e))),history.scrollRestoration="manual"}(),(()=>{const e={list:{},imagelist:{},blocks:{contain:!0},grid:{contain:!0,size:{default:160,min:80,max:240}},rows:{size:{default:150,min:80,max:220}},columns:{size:{default:180,min:120,max:240}}},t=(()=>{if(!_c.config||!_c.config.layouts)return e;if(Array.isArray(_c.config.layouts)){let t={};return _c.config.layouts.forEach((i=>{e[i]&&(t[i]=e[i])})),t}return"object"==typeof _c.config.layouts?_c.config.layouts:e})(),i=e=>{let t=e||d.layout;P(K.files,`no-transition-strict list files-${t}${"columns"===t?` columns-${o}`:""}`),Q(10).then((()=>K.files.classList.remove("no-transition-strict")))},a=Object.keys(t);let n=[z("layout",!0),T.get("files:layout"),_c.layout,a[0]].find((e=>e&&a.includes(e)))||"rows",o=T.get("files:layout:columns-type")||"info";i(n);var s=getComputedStyle(K.files).getPropertyValue("--img-object-fit").trim()||"cover",l=T.get("files:interface:img-object-fit")||s;function r(){K.files.style.setProperty("--imagelist-height",c?"100px":"100%"),K.files.style[(c?"set":"remove")+"Property"]("--imagelist-min-height","auto")}l!=s&&K.files.style.setProperty("--img-object-fit",l);var c=T.get("files:layout:imagelist-square");function p(e){return Y.layout={layout:e,ob:t[e],index:a.indexOf(e)}}null===c&&(c="auto"!==getComputedStyle(K.files).getPropertyValue("--imagelist-height").trim()),r(),["grid","rows","columns"].forEach((function(e){if(t[e]){var i,a=t[e].size,n=getComputedStyle(K.files).getPropertyValue("--"+e+"-size");n&&(a.default=parseInt(n)),a.current=!(i=T.get("files:layout:"+e+"-size"))||isNaN(i)||i==a.default?a.default:(i=Z(a.min,a.max,i),K.files.style.setProperty("--"+e+"-size",i+"px"),i),a.space=function(){var t=T.get("files:layout:"+e+"-space-factor");return!t||isNaN(t)||50==t?50:(t=Z(0,100,t),K.files.style.setProperty("--"+e+"-space-factor",t),0==t&&K.files.style.setProperty("--"+e+"-border-radius",0),t)}()}}));let d=p(n);function m(){var e=d.ob;[[b,"imagelist"===d.layout||e.size||e.contain],[y,e.size],[C,e.size],[M,"grid"===d.layout],[cover_toggle,e.contain],[imagelist_square_toggle,"imagelist"===d.layout],[columns_info_toggle,"columns"===d.layout]].forEach((e=>{!!e[0].style.display==!!e[1]&&(e[0].style.display=e[1]?"":"none")})),e.size&&(e.size.min&&(A.min=e.size.min),e.size.max&&(A.max=e.size.max),e.size.default&&(w.value=e.size.default,A.style.setProperty("--range-default-pos",(e.size.default-e.size.min)/(e.size.max-e.size.min))),ie.set(x,d.layout),A.value=e.size.current,ie.set(k,d.layout),H.value=e.size.space)}var h=_id("change-layout");h.innerHTML=``});else if(n.browser_image){var l=!!_c.load_images&&i.elm.firstElementChild,r=!X.image_orientation&&S(n.image),d=l&&!r&&!n.custom_preview;if(Object.assign(o,{type:"image",src:c(n),w:n.image&&"svg"!==n.ext&&(n.image.width||(d?l.naturalWidth:0))||screen.availWidth,h:n.image&&"svg"!==n.ext&&(n.image.height||(d?l.naturalHeight:0))||screen.availHeight,img_el:l,msrc:!(!d||!l.complete)&&l.getAttribute("src")}),r&&(o.w=n.image.height,o.h=n.image.width),d&&!o.msrc&&(l.onload=function(){o.msrc=this.getAttribute("src")}),"ico"===n.ext&&o.w<=16){var m=256/o.w;o.w*=m,o.h*=m}}else n.is_browser_video&&Object.assign(o,{type:"video",html:``});n===e&&(s.index=t.slides.length),t.slides.push(o)}}));t.slides.length&&(t.previous_focus=document.activeElement,R(),document.documentElement.classList.add("popup-open"),t.is_open=!0,t.caption_transition_delay=333,t.container.classList.toggle("pswp__container-multi",t.slides.length>1),"topbar"!==p.caption_style&&K.filter.value&&(t.search.innerHTML=U.get_svg_icon("image_search_outline")+'"'+n(K.filter.value)+'"'),t.slides.length<3&&(s.playEl=!1),i=new Le(t.pswp,we,t.slides,Object.assign({},p,s,{arrowEl:t.slides.length>1&&(!X.only_touch||_c.current_dir.has_pano),arrowKeys:t.slides.length>1,counterEl:t.slides.length>1,showAnimationDuration:a?0:333,showHideOpacity:(()=>{if(a)return!1;let e=t.slides[s.index];return!e.msrc||!e.img_el.offsetWidth})()})),X.is_touch&&i.listen("zoomGestureEnded",(function(){i.getZoomLevel()>i.currItem.initialZoomLevel&&t.toggle_play(!1)})),i.listen("beforeChange",(function(){u(),t.toggle_timer(!1)})),i.listen("afterChange",(function(e,a,n){var o,s=i.currItem.type;if(t.toggle_timer(!0),["video","pano"].forEach((e=>t.ui.classList.toggle("popup-ui-"+e,s==e))),t.current_video="video"===s&&(!(!(o=i.currItem.container.firstElementChild)||"VIDEO"!=o.nodeName)&&o),t.current_video&&p.video_autoplay&&t.current_video.play(),function(e){if(!!e==!!t.pano_viewer)return;Object.assign(i.options,{pinchToClose:!e,closeOnScroll:!e,closeOnVerticalDrag:!e,arrowKeys:!e&&t.slides.length>1})}("pano"==s),g(),"pano"==s){var l=i.currItem;U.load_plugin("pannellum",(()=>{l===i.currItem&&(t.pano_viewer=pannellum.viewer(t.pano_container,{type:"equirectangular",panorama:l.item.is_pano,autoLoad:!0,autoRotate:t.pano_is_rotating?-2:0,autoRotateInactivityDelay:3e3,showControls:!1,hfov:window.innerWidth>window.innerHeight?105:75}))}))}})),i.listen("initialZoomInEnd",(()=>{i.options.autoplay&&t.toggle_play(!0),t.toggle_auto_fullscreen(!0)})),i.listen("imageLoadComplete",(function(e,a,n){i.options.playEl&&e===i.getCurrentIndex()&&t.toggle_timer(!0)})),i.listen("close",(function(){u(),t.current_video=!1,t.toggle_play(!1),document.documentElement.classList.remove("popup-open")})),i.listen("destroy",(function(){t.preloader.classList.remove("pswp__spinner");for(var e=0;e{i.options.fullscreen&&screenfull.isFullscreen!=!!e&&screenfull.toggle()},t.open=()=>{if(!p.open)return;let e=!(!Y.list||!Y.list.matchingItems)&&Y.list.matchingItems[0];return e&&e._values.is_popup?(U.open_popup(e._values,!0),!0):void 0},t.toggle_play=function(e){e===t.playing||e&&h()||(t.playing=!!e,Ce.toggle_class(t.play_button,"is-playing",e),t.toggle_timer(e))},t.toggle_timer=function(e){if(e&&h())return t.toggle_play(!1);if((!e||t.playing&&(i.currItem.loaded||!i.currItem.src))&&t.timer!=e){t.timer=!!e,e&&(t.play_timer.style.opacity=1),anime.remove(t.play_timer);var a={targets:t.play_timer,duration:e?i.options.play_interval:333,easing:e?"easeInOutCubic":"easeOutQuad",scaleX:e?[0,1]:0};e?(a.begin=function(){t.play_timer.style.display="block"},a.complete=function(){i.next(!0)}):(a.complete=function(){t.play_timer.style.display="none"},a.opacity=[1,0]),anime(a)}},t.pano_is_rotating=!1!==T.get("files:popup:pano:rotating"),document.body.insertAdjacentHTML("beforeend",`\t\t`),t.pswp=document.body.lastElementChild,t.bg=t.pswp.firstElementChild,t.scrollwrap=t.pswp.children[1],t.pano_container=t.pswp.lastElementChild,t.container=t.scrollwrap.firstElementChild,t.items=t.container.children,t.ui=t.scrollwrap.lastElementChild,t.topbar=t.ui.firstElementChild,t.ArrowLeft=t.ui.children[1],t.ArrowRight=t.ui.children[2],t.caption=t.ui.lastElementChild,t.caption_center=t.caption.lastElementChild,t.play_timer=t.ui.children[3],Array.from(t.topbar.children).forEach((function(e){var i=e.classList;return i.contains("pswp__preloader")?t.preloader=e:i.contains("pswp__button--play")?t.play_button=e:i.contains("pswp__search")?t.search=e:i.contains("context-button")?t.contextmenu_button=e:i.contains("pswp__button--pano-rotate")?t.pano_rotate_button=e:void 0})),t.toggle_pano_rotate=()=>{if(t.pano_viewer){if(t.pano_is_rotating=!t.pano_is_rotating,t.pano_viewer[(t.pano_is_rotating?"start":"stop")+"AutoRotate"](),t.pano_is_rotating){var e=t.pano_viewer.getConfig();e.autoRotate=-2,e.autoRotateInactivityDelay=3e3}T.set("files:popup:pano:rotating",!!t.pano_is_rotating),t.pano_rotate_button.classList.toggle("is-rotating",t.pano_is_rotating)}},t.caption.addEventListener("click",(function(e){return e.target.classList.contains("pswp__button--lock-caption")?(s=!s,Ce.toggle_class(t.caption,"pswp__caption-locked",s),T.set("files:popup:locked_caption",s,!0)):"context"==e.target.dataset.action?U.create_contextmenu(e,"popup",e.target,i.currItem.item):void(X.is_pointer&&0===e.target.className.indexOf("pswp")&&("right"===p.caption_align&&e.pageX>this.clientWidth-49?i.next():"left"===p.caption_align&&e.pageX<49&&i.prev()))})),X.is_pointer&&t.contextmenu_button&&L(t.contextmenu_button,(function(e){U.create_contextmenu(e,"popup",e.target,i.currItem.item)}))})(),(()=>{let e=z("refresh",!0)||_c.config.refresh||!1;if(!e||isNaN(e))return;let t=z("refresh_url",!0)||_c.config.refresh_url||!1;setTimeout((()=>{if(t)return location.replace("nohash"===t?location.href.split("#")[0]:t);location.reload(1)}),1e3*e)})();class ye{static actions={move:"folder_move_outline",copy:"content_copy",duplicate:"content_duplicate",zip:!!_c.ZipArchive_enabled&&"zip_box_outline",unzip:!!_c.ZipArchive_enabled&&"unzip",delete:"delete_outline","copy links":!(!_c.allow_mass_copy_links||!X.url)&&"link",download:!(!_c.allow_mass_download||!X.download)&&"tray_arrow_down",rename:"rename_outline"};static keyboard_shortcuts={a:!0,i:!0,c:_c.allow_copy,v:_c.allow_copy,n:_c.allow_rename,Backspace:_c.allow_delete,d:_c.allow_duplicate};static config=e("select",{enabled:!0,buttons:Object.keys(this.actions),mode:!1,mode_button:!0,display:"select-mode",copy_links_separator:", ",keyboard_shortcuts:Object.keys(this.keyboard_shortcuts)});static el={};static buttons=[];static buttons_contextmenu=[];static count=0;static mode=!1;static anchor=0;static focus=0;static headroom_pin(e){let t=Y.headroom;t&&(e&&e.y&&e.ye[t+"Key"])))return;const a=Array.from(K.files.children).indexOf(t);if(e.shiftKey){const t={};this.range(t,!1),this.focus=a,this.range(t,!0),Object.keys(t).forEach((e=>this.select(K.files.children[e],t[e]))),this.count&&this.headroom_pin(e)}else{this.anchor=this.focus=a;const i=!t.dataset.selected;this.select(t,i),_c.config.on_select&&_c.config.on_select(e,Y.list.matchingItems[a]._values),i&&this.headroom_pin(e)}return this.interface(),!0}static matchingItems_length(){return Y.list?Math.min(Y.list.matchingItems.length,Y.list.items.length):0}static all(e){const t=this.matchingItems_length();if(!t)return;const i=!this.count||!!(e&&this.countthis.select(e.elm,i))),this.interface(),i&&this.headroom_pin()}static selected(){return this.matchingItems_length()?Y.list.matchingItems.filter((e=>e.elm.dataset.selected)):[]}static toggle_has_matchingItems(e){this.el.selectbar.classList.toggle("has-matchingItems",e),this.el.selectbar.firstElementChild.disabled=!e}static update(){this.config.enabled&&(this.count=this.selected().length,this.toggle_has_matchingItems(!!this.matchingItems_length()),this.interface())}static reset(e){this.config.enabled&&(this.anchor=this.focus=0,this.toggle_has_matchingItems(!!e),this.count&&(this.count=0,this.interface()))}static interface(){this.el.counter.textContent=this.count||"",this.el.selectbar.classList.toggle("has-selection",!!this.count),this.el.selectbar.classList.toggle("select-single",1===this.count),this.el.selectbar.classList.toggle("select-multiple",this.count>1),this.el.selectbar.classList.toggle("select-is-zip",1===this.count&&"zip"===this.selected()[0]._values.ext),this.el.buttons.forEach((e=>e.disabled=!this.count))}static set_mode(e){this.mode=!!e,K.main.classList.toggle("select-mode",this.mode),K.main.classList.toggle("select-mode-disabled",!this.mode)}static copy_links(e){const t=[];return e.forEach((e=>{try{const i=new URL(p(e),location);i&&i.href&&t.push(i.href)}catch(e){return}})),t.length&&A(t.join(this.config.copy_links_separator))}static copied_items=[];static copied_items_parent;static paste_items(){if(!(_c.current_dir&&this.copied_items.length&&this.copied_items_parent&&this.copied_items_parent.files))return;if(_c.dirs[this.copied_items_parent.path]!==this.copied_items_parent)return;if(this.copied_items=this.copied_items.filter((e=>{let t=this.copied_items_parent.files[e.basename];if(t)return t===e||["basename","filesize","mtime","path"].every((i=>t[i]===e[i]))})),!this.copied_items.length)return;const e=this.copied_items_parent===_c.current_dir?"duplicate":"copy";return new me({action:e,items:this.copied_items,pasted_from:"copy"===e&&this.copied_items_parent,parent_dir:this.copied_items_parent,parent_path:this.copied_items_parent.path})}static select_action(e){if("toggle"===e)return this.all();const t=this.count?this.selected():[];if(!t.length)return F.toggle(!1,"Nothing selected!");const i=t.map((e=>e._values));return"copy links"===e?ne?F.toggle(this.copy_links(i),ie.get("copy link"+(i.length>1?"s":""))):F.license():"download"===e?ce.zip(_c.current_dir,i.filter((e=>e.is_readable))):"copy_items"===e?(this.copied_items=i,this.copied_items_parent=_c.current_dir,F.toggle(!0,`${i.length} ${ie.get(me.get_items_type(i))} ${ie.get("copied to clipboard")}`)):"modal"===e?1===i.length&&U.open_modal(i[0],!0):new me({action:e,items:i,list_items:t,parent_dir:_c.current_dir,parent_path:_c.current_path})}static keyboard_events(){if(!this.config.keyboard_shortcuts||!this.config.keyboard_shortcuts.length)return;const e=this.config.keyboard_shortcuts.filter((e=>this.keyboard_shortcuts[e]));e.length&&document.addEventListener("keydown",(t=>{if(Y.modal.open||Y.popup.is_open||!_c.current_dir)return;const i=t.key;if((t[X.modKey]||"n"===i)&&!["INPUT","SELECT","TEXTAREA"].includes(t.target.nodeName)&&e.includes(i)&&(t.preventDefault(),!t.repeat)){if("v"===i)return this.paste_items();if("a"===i)return ye.all(!0);if(this.count)return"n"===i?1===this.count&&this.select_action("rename"):"Backspace"===i?this.select_action("delete"):"d"===i?this.select_action("duplicate"):"c"===i?this.select_action("copy_items"):"i"===i?1===this.count&&this.select_action("modal"):void 0}}))}static init(){if(!this.config.enabled)return;if(this.buttons=this.config.buttons?this.config.buttons.filter((e=>{if(this.actions[e])return _c[`allow_${e}`]||!_c.hasOwnProperty(`allow_${e}`)})):[],!this.buttons.length)return this.config.enabled=!1;K.files_container.classList.add("select-enabled"),this.buttons_contextmenu=this.buttons.filter((e=>!["rename","unzip"].includes(e))),this.config.mode_button&&(K.topbar_top.insertAdjacentHTML("beforeend",``),L(K.topbar_top.lastElementChild,(e=>{this.set_mode(!this.mode),T.set("files:select:mode",this.mode?"on":"off")}))),this.el.selectbar=_query(".topbar-select"),this.el.selectbar.classList.add("select-display-"+this.config.display),this.el.selectbar.innerHTML=`
    ${E(this.buttons,(e=>``))}
    `,this.el.select_all_button=this.el.selectbar.firstElementChild,this.el.counter=this.el.selectbar.querySelector(".selected-count"),this.el.buttons=Array.from(this.el.selectbar.lastElementChild.children),u(this.el.selectbar,((e,t)=>this.select_action(e)));let e=!!this.config.mode_button&&T.get("files:select:mode");this.set_mode("on"===e||!e&&this.config.mode),this.keyboard_events()}}ye.init();class xe{static users;static usernames;static username;static is_install=_c.allow_settings&&"install.php"===_c.script;static options=e("settings_editor",{show_button:!0,allow_default:!0,allow_users:!0,allow_new:!0,allow_remove:!0,allow_rename:!0,select_current_user_append:" ←",reload:!0,reload_confirm:!1,template:" '',\n //'start_path' => '',\n 'password' => '$PASSWORD',\n //'allow_all' => false,\n //'allow_settings' => false, // only enable for trusted users! https://www.files.gallery/docs/security/#allow_settings-enabled\n //'files_include' => '',\n //'files_exclude' => '',\n //'dirs_include' => '',\n //'dirs_exclude' => '',\n //'upload_allowed_file_types' => '',\n];"});el={};is_new_user;is_default_user;is_current_user;cm;is_loading;reload=!1;constructor(){if(["default","users"].every((e=>!xe.options[`allow_${e}`])))return F.toggle(!1,"Can't have both [default] and [users] disabled");U.load_plugin("codemirror"),this.modal()}modal(){Ae.confirm.fire({title:ie.get("settings"),cancelButtonText:ie.get("cancel"),confirmButtonText:ie.get("save"),returnFocus:!1,customClass:{popup:"settings-popup",htmlContainer:"settings-html-container",confirmButton:"button",cancelButton:"button button-secondary",validationMessage:"settings-validation"},allowEscapeKey:()=>{if(!this.cm.hasFocus())return!0;this.toggle_fullscreen()},didOpen:()=>this.open(),preConfirm:()=>this.preconfirm(),didDestroy:()=>{this.reload&&this.reload_confirm()&&location.reload()}})}open(){if(this.el.popup=Swal.getPopup(),this.el.container=Swal.getHtmlContainer(),this.el.save=Swal.getConfirmButton(),this.el.cancel=Swal.getCancelButton(),this.el.popup.focus(),xe.users)return U.load_plugin("codemirror",(()=>this.interface()));this.load({load:!0},(e=>{!xe.options.allow_default&&e.hasOwnProperty("default")&&delete e.default,xe.options.allow_users||Object.keys(e).forEach((t=>{"default"!==t&&delete e[t]})),xe.users=e,xe.usernames=Object.keys(e).sort(((e,t)=>"default"===t?1:e.localeCompare(t,void 0,{sensitivity:"base"}))),xe.username=[T.get("files:settings:username"),_c.username,xe.usernames[0]].find((t=>t&&e[t])),U.load_plugin("codemirror",(()=>this.interface()))}))}load(e,t,i){return!e.load&&_c.demo_mode?F.demo():e.load||ne||xe.is_install?(this.loader(!0),void fetch(`${_c.script}?action=settings`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(e)}).then((e=>(this.loader(!1),e.ok?e.json():{error:`${e.status} ${e.statusText}`}))).then((e=>{if(e.success&&i&&(F.toggle(!0,i),this.cm.hasFocus()||this.el.popup.focus()),e.error)return this.invalid(e.error);t&&t(e)})).catch((e=>{this.loader(!1),this.invalid(`${ie.get("error")}`)}))):F.license()}loader(e){this.is_loading=!!e,this.el.select&&Q(1).then((()=>["save","cancel","select","new","username","remove","cancel_new"].forEach((t=>this.el[t].toggleAttribute("disabled",!!e))))),this.cm&&this.cm.setOption("readOnly",!!e),this.el.popup.classList.toggle("settings-loading",!!e)}interface(){this.el.container.innerHTML=`\n \n \n \n ${xe.is_install?`
    ${U.get_svg_icon("alert_circle_outline")}Install Mode
    Remember to rename the file back to index.php once you have edited settings and/or created users.
    `:""}`,this.el.users=this.el.container.children[0],this.el.select=this.el.users.firstElementChild,this.el.new=this.el.users.lastElementChild,this.el.user=this.el.container.children[1],this.el.username=this.el.user.firstElementChild,this.el.remove=this.el.user.children[1],this.el.cancel_new=this.el.user.children[2],this.el.options=this.el.container.children[2],this.el.alert_install=!!xe.is_install&&this.el.container.children[3],this.el.container.style.setProperty("--button-min-width",Math.max(...["new","remove","cancel_new"].map((e=>this.el[e].clientWidth)))+"px"),this.el.select.addEventListener("change",(e=>this.assign_user(e.currentTarget.value))),this.el.new.addEventListener("click",(e=>this.assign_user(!1))),this.el.remove.addEventListener("click",(e=>this.remove_user())),this.el.cancel_new.addEventListener("click",(e=>this.assign_user(this.el.select.value))),this.el.alert_install&&this.el.alert_install.addEventListener("click",(e=>this.el.alert_install.remove())),this.el.popup.addEventListener("keydown",(e=>{e[X.modKey]&&"s"===e.key&&(e.preventDefault(),e.repeat||this.preconfirm())})),this.codemirror(),this.el.options.insertAdjacentHTML("beforeend",``),this.el.options.lastElementChild.addEventListener("click",(()=>this.toggle_fullscreen())),this.assign_user(xe.username)}select_option(e,t){return``}codemirror(){this.cm=CodeMirror(this.el.options,{lineNumbers:!0,mode:"php",viewportMargin:1/0,theme:"one-"+U.get_codemirror_theme(),styleActiveLine:!0,extraKeys:{F11:()=>this.toggle_fullscreen()}}),CodeMirror.autoLoadMode(this.cm,"php")}toggle_fullscreen(){this.el.popup.classList.toggle("settings-fullscreen")}assign_user(e=!1){e&&this.el.select.value!==e&&(this.el.select.value=e),xe.username=e,e&&T.set("files:settings:username",e),this.is_new_user=!e,this.is_default_user="default"===e,this.is_current_user=_c.username&&e===_c.username;let t=this.el.container.classList;t.toggle("user-new",this.is_new_user),t.toggle("user-default",this.is_default_user),t.toggle("user-user",!this.is_new_user&&!this.is_default_user),this.el.username.value=this.is_new_user?ie.get("username"):e,xe.options.allow_rename||(this.el.username.readOnly=!this.is_new_user),this.is_new_user&&this.el.user.firstElementChild.select();let i=this.is_new_user?xe.options.template.replace("$PASSWORD",this.random_password()):xe.users[e];this.cm.setValue(i)}remove_user(){xe.options.allow_remove&&xe.username&&"default"!==xe.username.toLowerCase()&&confirm(`${ie.get("delete",!0)} ${xe.username}?`)&&this.load({username:xe.username,remove:!0},(()=>{let e=xe.usernames.indexOf(xe.username);e<1||(delete xe.users[xe.username],xe.usernames.splice(e,1),this.el.select.children[e].remove(),this.check_reload(),this.assign_user(xe.usernames[e-1]))}),`${ie.get("delete")} ${xe.username}`)}preconfirm(e){if(this.is_loading)return!1;if(this.username_new=this.el.username.value.trim(),this.is_renamed=xe.username!==this.username_new,!this.username_new)return this.invalid_username(`${ie.get("invalid")} ${ie.get("username")}`);if(this.is_renamed){if(this.username_new.length>128)return this.invalid_username(`${ie.get("username")} max length 128 chars`);if(xe.usernames.find((e=>this.username_new.toLowerCase()===e.toLowerCase())))return this.invalid_username(`${ie.get("username")} "${this.username_new}" already exists`);const e=this.username_new.match(/[<>{}:"'/\\|?*#+%&]|\.\.|\.$|^\./g);if(e)return this.invalid_username(`${ie.get("invalid")} ${ie.get("username")} ${[...new Set(e)].join("")}`)}return this.data=this.cm.getValue(),this.is_renamed||xe.users[xe.username]!==this.data?this.data.trim().startsWith("this.update(e.data)),`${ie.get("save")} ${this.username_new}`),!1):this.invalid(`${ie.get("invalid")} ${ie.get("password")}`):this.invalid(`${ie.get("invalid")} ${ie.get("settings")}`):(w(this.el.popup,"settings-loading",!1,300),!1)}invalid_username(e){return this.el.username.select(),this.invalid(e)}invalid(e){return["pointerup","keydown"].forEach((e=>this.el.popup.addEventListener(e,(()=>Swal.resetValidationMessage()),{once:!0}))),Swal.showValidationMessage(Ae.invalid_response(e))}ensure_commas(){let e=this.data.split("\n");if(!e)return;let t=0;e.forEach(((i,a)=>{!i||i.indexOf("=>")<0||!i.trim().match(/^("|')/)||i.trim().endsWith(",")||(t++,e[a]+=",")})),t&&(this.data=e.join("\n"),this.cm.setValue(this.data))}check_reload(e){if(xe.options.reload&&(this.is_default_user||this.is_current_user))return"close"===xe.options.reload?this.reload=!0:void(this.reload_confirm()&&location.replace(`${location.pathname}${location.search}${location.search.match(/(^\?|&)settings=(1|true)/)?"":location.search?"&settings=1":"?settings=1"}${e?"&login=1":""}${location.hash}`))}reload_confirm(){let e=xe.options.reload_confirm;return!e||("string"!=typeof e&&(e="Refresh required. Reload page now?"),confirm(e))}update(e){if(this.check_reload(),e!==this.data){let t=this.cm.getCursor();this.cm.setValue(e),Q(1).then((()=>this.cm.setCursor(t)))}if(xe.users[this.username_new]=e,this.is_new_user)xe.usernames.push(this.username_new),this.el.select.insertAdjacentHTML("beforeend",this.select_option(this.username_new,!0));else{if(!this.is_renamed)return;let e=xe.usernames.indexOf(xe.username);xe.usernames[e]=this.username_new,delete xe.users[xe.username],this.el.select.children[e].outerHTML=this.select_option(this.username_new,!0)}this.assign_user(this.username_new)}random_password(){const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(16))).map((t=>e[t%68])).join("")}}const Ae=(()=>{T.remove("swal-initiation");const e=Swal.mixin({scrollbarPadding:!1,showCloseButton:!1,closeButtonHtml:U.get_svg_icon("close_thin"),buttonsStyling:!1,reverseButtons:!X.ua||-1===X.ua.indexOf("Win"),showCancelButton:!0,cancelButtonText:ie.get("cancel"),customClass:{confirmButton:"button",cancelButton:"button button-secondary",input:"input",closeButton:"button-icon"},willOpen:()=>R(),heightAuto:!1});return{default:e.mixin(),prompt:e.mixin({input:"text",inputAttributes:{maxlength:127,autocapitalize:"off",autocorrect:"off",autocomplete:"off",spellcheck:"false"},didOpen:()=>{if(!X.is_pointer)return;let e=Swal.getInput();if(!e||!e.value||e!==document.activeElement)return;let t=e.value.lastIndexOf(".");if(t<1)return e.select();e.setSelectionRange(0,t)}}),confirm:e.mixin({title:"Confirm?"}),invalid_response:e=>`${U.get_svg_icon("alert_circle_outline")}${e}`}})();(()=>{var e=document.body;function t(t){e.dataset.updated=t,e.style.cursor="pointer";var i=H(e,"click",(function(){e.classList.remove("updated"),e.removeAttribute("data-updated"),e.style.removeProperty("cursor"),i.remove()}))}_c.allow_check_updates&&(T.get("files:updated")?(T.remove("files:updated"),t("✓ Successfully updated to Files Gallery version "+_c.version),e.classList.add("updated")):O({json_response:!0,params:"action=check_updates",url:_c.script+"?action=check_updates",complete:function(i,a,n){if(i&&a&&n&&i.hasOwnProperty("success")){var o=i.success;if(j(o?"New version "+o+" available.":"Already using latest version "+_c.version),o){_id("change-sort").insertAdjacentHTML("afterend",'");var s=_id("files-notifications");if(U.dropdown(s,s.firstChild),!i.writeable)return;L(s.children[1].children[1],(()=>{Ae.confirm.fire({title:ie.get("update"),text:"Update to Files Gallery "+o+"?",cancelButtonText:ie.get("cancel"),confirmButtonText:ie.get("update")}).then((i=>{i.isConfirmed&&(e.classList.add("updating"),O({params:"version="+o,url:_c.script+"?action=do_update",json_response:!0,complete:function(i,a,n){e.classList.add("updated"),e.classList.remove("updating"),i&&a&&n&&i.hasOwnProperty("success")&&i.success?(T.set("files:updated",!0),e.dataset.updated="✓ Success!",F.toggle(!0,`Updated to ${o}. Please refresh browser.`)):t("✗ Failed to load update :(")}}))}))}))}}else j("Failed to load external JSON check_updates.")}}))})(),window.onpopstate=function(e){_c.config.history&&e.state&&e.state.hasOwnProperty("path")&&U.get_files(e.state.path)},(()=>{U.get_codemirror_theme=()=>"dark"===ee.theme?"dark":(te.codemirror_theme||(te.codemirror_theme=T.get("files:codemirror_theme")||"light"),te.codemirror_theme);const t=e("markdown",{enabled:!0,extensions:["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"],modes:matchMedia("(min-width: 576px)").matches?["split","edit","preview"]:["edit","preview","split"],remember_mode:!0,scroll_sync:!0,html:e=>e,link_target:"_blank",shortcuts:{B:["**","**"],I:["_","_"],K:["[","](https://)"],"Alt-I":["![","]()"]}}),i=t.enabled&&t.extensions.length>1&&["split","preview"].some((e=>t.modes.includes(e)));let a=(()=>{if(!i||!t.remember_mode)return t.modes[0];let e=T.get("files:markdown:mode");return e&&t.modes.includes(e)?e:t.modes[0]})();const s=()=>{if(!te.codemirror||!te.marked)return!1;let e=a,i=t.modes.indexOf(a);return a=t.modes[i>=t.modes.length-1?0:i+1],t.remember_mode&&T.set_option("files:markdown:mode",a,t.modes[0]),"edit"===e&&d(),ae.popup.classList.replace(`markdown-mode-${e}`,`markdown-mode-${a}`),"preview"!==a&&te.codemirror.refresh(),!0},l=X.is_mac?"Cmd":"Ctrl",r={};i&&Object.keys(t.shortcuts).forEach((e=>{r[`${l}-${e}`]=i=>((e,[t,i])=>{let a=e.getSelection(),n=a.slice(0,t.length)===t&&a.slice(-i.length)===i;e.replaceSelection(n?a.slice(t.length,-i.length):`${t}${a}${i}`,"around")})(i,t.shortcuts[e])}));const d=()=>{"edit"!==a&&(ae.markdown_preview.innerHTML=t.html(te.marked.parse(te.codemirror.getValue())))},h=()=>{te.codemirror.addKeyMap(r),ae.preview.insertAdjacentHTML("beforeend",'
    '),ae.markdown_preview=ae.preview.lastElementChild,t.link_target&&ae.markdown_preview.addEventListener("click",(e=>{let i=e.target.closest("a");i&&!i.hasAttribute("target")&&i.setAttribute("target",t.link_target)})),te.marked=new marked.Marked(e("marked")),_c.current_dir.url_path&&te.marked.use(markedBaseUrl.baseUrl(`${_c.current_dir.url_path}/`)),d(),t.modes.includes("split")&&te.codemirror.on("change",(()=>d())),(()=>{if(!t.scroll_sync||!t.modes.includes("split"))return;let e,i=!1;te.codemirror.on("scroll",(t=>{if("split"!==a)return;if(e)return e=!1;i=!0;let n=t.getScrollInfo(),o=n.height-n.clientHeight,s=parseFloat(n.top)/o,l=(ae.markdown_preview.scrollHeight-ae.markdown_preview.clientHeight)*s;ae.markdown_preview.scrollTop=l})),ae.markdown_preview.addEventListener("scroll",(t=>{if("split"!==a)return;if(i)return i=!1;e=!0;let n=te.codemirror.getScrollInfo(),o=ae.markdown_preview.scrollHeight-ae.markdown_preview.clientHeight,s=parseFloat(ae.markdown_preview.scrollTop)/o,l=(n.height-n.clientHeight)*s;te.codemirror.scrollTo(0,l)}))})()};let g,x=0,w=0;function k(){ae.preview.dataset.counter=te.index+1+"/"+Y.list.matchingItems.length}function H(){if(!te.codemirror||te.codemirror_saving||!ae.code_save_button||ae.code_save_button.disabled)return;if(_c.demo_mode)return F.demo();if(!ne)return F.license();if(!te.item.is_writeable)return F.toggle(!1,`${ie.get("file",!0)} ${ie.get("is not writeable")}`);te.codemirror_saving=!0,ae.code_save_button.disabled=!0;const e=te.item;new me({action:"text_edit",action_name:"save",items:[te.item],text:te.codemirror.getValue(),parent_path:_c.current_path,parent_dir:_c.current_dir,complete:t=>{e===te.item&&(te.codemirror_saving=!1,ae.code_save_button.disabled=!1)}})}function M(e,t){_c.config.history&&history[e+"State"](null,te.item.basename,"#"+encodeURIComponent(te.item.basename))}function $(e){anime({targets:ae.preview.querySelector("svg").children,scale:[.9,1],opacity:[0,1],duration:120,easing:"easeOutQuad",delay:anime.stagger(30,{start:e,direction:"reverse"})})}const V=e=>{let t=Y.list.matchingItems.length,i=te.index+e;return i<0?t-1:i>=t?0:i},z=U.modal_nav=(e,t=!1)=>{if(Y.list.matchingItems.length<2)return;let i=V(e),a=Y.list.matchingItems[i]._values;if(!t||a.embed||["audio","video"].includes(a.mime0)){if(te.index=i,k(),x&&clearTimeout(w),w=setTimeout((()=>x=0),500),le.destroy(),x)return oe(a);x=1,oe(a),["file","dir"].includes(te.type)&&$(0)}};function j(){te.codemirror_xhr&&(te.codemirror_xhr.abort(),te.codemirror_xhr=!1)}function I(){return location.hash==="#"+encodeURIComponent(te.item.basename)}function B(e){document.documentElement.classList.toggle("modal-open",!!e),ae.modal.classList.toggle("modal-show",!!e)}function Z(){te.is_fullscreen=!te.is_fullscreen,ae.popup.classList.toggle("modal-popup-fullscreen"),te.codemirror&&te.codemirror.refresh()}var N,q=["start-start","center-start","end-start","start-center","center-center","end-center","start-end","center-end","end-end"],W=(N=T.get("files:modal:position"))&&q.includes(N)?N:"center-center";function G(e,t){var i=(e||W).split("-"),a=["x","y"].map(((e,t)=>`modal-pos-${e}-${i[t]}`));return t?ae.popup.classList[t](...a):a.join(" ")}const K=e("modal_types",{dir:{anchor:!0,info:!0},file:{info:!0},code:{},image:{anchor:!0,info:!0},video:{},audio:{},embed:{spinner:!0},pdf:{},document:{spinner:!0},"custom-preview":{info:!0},"video-thumb":{info:!0},"pdf-thumb":{anchor:!0,info:!0}}),te=Y.modal={codemirror_lineWrapping:T.get_option("files:codemirror_lineWrapping",!0)};document.body.insertAdjacentHTML("beforeend",`\n\t`);const ae=te.el={modal:document.body.lastElementChild};function oe(e){j(),re(e),M("replace")}function se(e){if(!e.is_dir&&e.is_readable){if(e.browser_image)return te.type="image",``;if(e.is_browser_video||e.url&&"m3u8"===e.ext)return te.type="video",le.tag(e,"video");if("video"===e.mime0){if(!_c.ffmpeg||!e.is_readable)return;return te.type="video-thumb",``}if(J("audio",e))return te.type="audio",le.tag(e,"audio");if(e.embed)return te.type="embed",``;if(e.ext.match(_c.config.google_docs_extensions||/(doc|ppt|pages)x?$/)){if(!_c.use_google_docs_viewer||e.filesize>25e6)return;return te.type="document",``}if("pdf"===e.mime1){if(!_c.config.load_inline_pdf||!X.supports_inline_pdf&&!navigator.pdfViewerEnabled&&!_c.use_google_docs_viewer)return(()=>{if(_c.imagemagick_pdf)return te.type="pdf-thumb",``})();te.type="pdf";let t=c(e),i=t+(_c.config.inline_pdf_append_url||"");const a=e=>``;return!X.supports_inline_pdf&&_c.use_google_docs_viewer?a(`https://docs.google.com/viewer?url=${new URL(t,location)}&embedded=true`):a(i)}if(!e.hasOwnProperty("code_mode")){let a=function(e){if(!e||e.filesize>_c.config.code_max_load)return;if(["conf","htaccess"].includes(e.ext))return CodeMirror.findModeByName("nginx");if("csv"===e.ext)return{mode:"q"};if(i&&t.extensions.includes(e.ext))return e.is_markdown=!0,{mode:"gfm"};if("text/asp"===e.mime)return{mode:"htmlmixed"};let a=!!e.mime&&CodeMirror.findModeByMIME(e.mime);return a&&"null"!==a.mode||!e.ext||(a=CodeMirror.findModeByExtension(e.ext)||a),a||"text"!==e.mime0?a:{mode:"null"}}(e);e.code_mode=a&&a.mode||!1}return e.code_mode?(te.type="code",U.load_plugin("codemirror"),e.is_markdown&&U.load_plugin("marked"),''):void 0}}function re(i,s){ae.modal.scrollTop=0,ae.code_save_button&&ae.code_save_button.disabled&&(ae.code_save_button.disabled=!1),Object.assign(te,{item:i,codemirror:!1,codemirror_xhr:!1,codemirror_saving:!1,type:i.is_dir?"dir":"file",loaded:!1,marked:!1}),ae.title.innerText=ae.title.title=i.display_name||i.basename||"";let r=se(i)||(()=>{if(i.custom_preview)return te.type="custom-preview",``})()||U.get_svg_large(i,"modal-svg")+D(i);s&&K[te.type].fullscreen&&(te.is_fullscreen=!0),i.is_markdown&&!t.remember_mode&&(a=t.modes[0]),P(ae.popup,`modal-popup modal-popup-${te.type} modal-${te.has_nav?"multi":"single"} ${G()} modal-codemirror-theme-${U.get_codemirror_theme()}${te.is_idle?" modal-popup-idle":""}${te.is_fullscreen?" modal-popup-fullscreen":""}${i.is_markdown?` markdown-mode-${a}`:""}`),X.is_pointer&&te.has_nav&&(ae.ArrowLeft.title=Y.list.matchingItems[V(-1)]._values.basename,ae.ArrowRight.title=Y.list.matchingItems[V(1)]._values.basename),ae.popup.style.setProperty("--type-color",`var(--${i.is_dir?"svg-folder-fg":`type-${U.get_icon(i)||"default"}`})`),(()=>{let e=getComputedStyle(ae.popup).getPropertyValue("--type-color");if(!e||-1===e.indexOf("hsl("))return;let t=e.match(/\d+(\.\d+)?/g);!t||t.length<1||ae.popup.style.setProperty("--type-hsl",`${t[0]} ${t[1]}% ${t[2]}%`)})(),P(ae.preview,`modal-preview modal-preview-${te.type}${K[te.type].spinner?" modal-preview-spinner":""}`),ae.preview.innerHTML=K[te.type].anchor?`${r}`:r,["audio","video","embed"].includes(te.type)&&le.create(te.type,ae.preview.firstElementChild,i),fe.modal_picture(i,ae.preview),"document"===te.type&&function(){let e=ae.preview.firstElementChild,t=e.src,i=setInterval((()=>{if(te.loaded||t!==e.src||!e.isConnected||!e.contentDocument)return clearInterval(i);e.src=t}),3e3)}();let c=ae.preview.querySelector("img, iframe");c&&c.addEventListener("load",(e=>{te.loaded=!0,"image"===te.type&&e.target.parentElement.classList.remove("files-img-placeholder"),K[te.type].spinner&&ae.preview.classList.remove("modal-preview-spinner")})),i.code_mode&&(te.codemirror_xhr=O({params:`file=${encodeURIComponent(i.path)}`,url:`${_c.script}?action=load_text_file`,always:()=>{te.open&&i===te.item&&(te.codemirror_xhr=!1)},fail:e=>{e.status&&te.open&&i===te.item&&(F.toggle(!1,(e.status?e.status+" - ":"")+(e.statusText||i.basename)),ae.preview.firstElementChild.remove())},complete:t=>{te.open&&i===te.item&&U.load_plugin("codemirror",(()=>{te.open&&i===te.item&&(ae.preview.firstElementChild.remove(),te.codemirror=CodeMirror(ae.preview,e("codemirror",{value:t,lineWrapping:te.codemirror_lineWrapping,lineNumbers:!0,readOnly:!_c.allow_text_edit,mode:i.code_mode,viewportMargin:i.filesize<2e4?1/0:10,theme:`one-${U.get_codemirror_theme()}`,addModeClass:"css"===i.code_mode,styleActiveLine:!0,extraKeys:Object.assign({F11:Z},_c.allow_text_edit?{[`${l}-S`]:H}:{})})),CodeMirror.autoLoadMode(te.codemirror,i.code_mode),i.is_markdown&&U.load_plugin("marked",(()=>h())))}))}})),ae.info.innerHTML=K[te.type].info?`\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t${y(i.image,"modal-info-exif")}\n\t\t\t${b(i.image,"modal-info",!0)}\n\t\t`:""}function ce(){te.idle_timeout&&clearTimeout(te.idle_timeout),te.idle_timeout=setTimeout((()=>pe(!0)),1e3),te.is_idle&&pe(!1)}function pe(e){te.is_idle=e,ae.popup.classList.toggle("modal-popup-idle",e)}function de(e){e&&e.target!==e.currentTarget||(ae.popup.removeEventListener("transitionend",de),te.open||(le.destroy(),ae.modal.style.display="none",m(ae.preview)))}function ue(){te.open&&!I()&&U.close_modal(!1)}function he(){return!te.open||Swal.isVisible()||!I()}function _e(e){return!(!te.has_nav||!["ArrowLeft","ArrowRight"].includes(e))&&(!document.activeElement||document.activeElement===document.body||!["AUDIO","VIDEO","TEXTAREA"].includes(document.activeElement.nodeName)&&!document.activeElement.closest(".plyr"))}function ge(e){if(!e.repeat&&!he())if(document.activeElement&&[ae.ArrowLeft,ae.ArrowRight].includes(document.activeElement)&&document.activeElement.blur(),"p"===e.key&&te.item.is_markdown&&(e.ctrlKey||e.metaKey)){if(s())return e.preventDefault()}else if("Escape"===e.key){if(te.is_fullscreen)return Z();if(te.codemirror&&te.codemirror.hasFocus())return Z();U.close_modal()}else"Enter"!==e.key||ae.popup.contains(document.activeElement)?_e(e.key)&&(ae[e.key].classList.add("modal-nav-active"),z("ArrowLeft"===e.key?-1:1)):U.close_modal()}function ve(e){!he()&&_e(e.key)&&ae[e.key].classList.remove("modal-nav-active")}function be(e){he()||ae.popup.contains(e.target)||Array.from(ae.header.children).find((e=>"BUTTON"==e.nodeName&&e.offsetParent)).focus()}function ye(e){e.target.dataset.action||(matchMedia("(max-width: 575.98px)").matches||te.is_fullscreen||ae.popup.classList.contains("modal-popup-tapped"))&&ae.popup.classList.toggle("modal-popup-tapped")}function xe(e){let t=(e?"add":"remove")+"EventListener";window[t]("popstate",ue),document[t]("keydown",ge),document[t]("keyup",ve),document.body[t]("focus",be,{capture:!0}),X.is_touch&&ae.popup[t]("touchend",ye),function(e){X.is_pointer&&te.has_nav&&(e&&ce(),ae.modal[(e?"add":"remove")+"EventListener"]("mousemove",ce))}(e)}ae.popup=ae.modal.firstElementChild,ae.header=ae.popup.firstElementChild,ae.ArrowLeft=ae.popup.children[1],ae.ArrowRight=ae.popup.children[2],ae.title=ae.header.firstElementChild,ae.code_save_button=!!_c.allow_text_edit&&_query('[data-action="save"]',ae.header),ae.code_wrap_button=_class("modal-code-wrap-button",ae.header)[0],ae.close=ae.header.lastElementChild,ae.info=ae.popup.children[3],ae.preview=ae.popup.children[4],ae.pos_active=_class("modal-pos-active",ae.header)[0],(screen.availWidth>=768||screen.availHeight>=768)&&["start","end"].forEach((e=>ae.popup.addEventListener(`transition${e}`,(t=>{t.target===ae.popup&&"width"===t.propertyName&&"code"===te.type&&ae.popup.classList.toggle("modal-popup-code-transition","start"===e)})))),X.is_touch&&L(ae.preview,(e=>{if("mouse"!==e.pointerType){var t=e.target.closest(".modal-preview-a");t&&!t.dataset.action&&e.preventDefault()}})),["down","up"].forEach((e=>ae.modal.addEventListener("mouse"+e,(t=>te["bg"+e]=t.target===ae.modal)))),u(ae.modal,((e,t)=>{if(!te.open)return t.preventDefault();if("nav-left"===e)z(-1);else if("nav-right"===e)z(1);else if("context"===e)U.create_contextmenu(t,"modal",t.target,te.item);else if("close-bg"===e)te.bgdown&&te.bgup&&U.close_modal();else if("close"===e)U.close_modal();else if("zoom"===e){if(Y.contextmenu.is_open)return t.preventDefault();if(C(t,t.target.closest(".modal-preview-a")))return;U.open_popup(te.item)}else if("copy"===e){if(!te.codemirror)return;let e=!!te.codemirror&&te.codemirror.getValue(),t=e&&A(e);F.toggle(t,ie.get("copy text"))}else if("fullscreen"===e)Z();else if("save"===e)H();else if("markdown-toggle-mode"===e)s();else if("wrap"===e){if(!te.codemirror)return;te.codemirror_lineWrapping=!te.codemirror_lineWrapping,te.codemirror.setOption("lineWrapping",te.codemirror_lineWrapping),ae.code_wrap_button.classList.toggle("wrap-enabled",te.codemirror_lineWrapping),T.set_option("files:codemirror_lineWrapping",te.codemirror_lineWrapping,!0)}else if("toggle-codemirror-theme"===e){let e=te.codemirror_theme;te.codemirror_theme="light"===e?"dark":"light",ae.popup.classList.replace(`modal-codemirror-theme-${e}`,`modal-codemirror-theme-${te.codemirror_theme}`);let t=!(!te.codemirror||!te.codemirror.display)&&te.codemirror.display.wrapper;t&&t.classList.replace(`cm-s-one-${e}`,`cm-s-one-${te.codemirror_theme}`),T.set("files:codemirror_theme",te.codemirror_theme)}else t.target.classList.contains("modal-pos-el")&&(i=e,a=t.target,i!==W&&(G(W,"remove"),G(i,"add"),W=i,ae.pos_active.classList.remove("modal-pos-active"),ae.pos_active=a,ae.pos_active.classList.add("modal-pos-active"),T.set("files:modal:position",i)));var i,a})),U.open_modal=(e,t)=>{if(te.open)return!(te.item===e||!Y.list)&&z(Y.list.matchingItems.findIndex((t=>t._values===e))-te.index);te.is_fullscreen=!1,te.is_idle=!1,te.open=!0,g=document.activeElement||null,ae.modal.removeEventListener("transitionend",de),R(),te.index=_c.files[e.basename]===e&&Y.list?Y.list.matchingItems.findIndex((t=>t._values===e)):-1,te.has_nav=te.index>-1&&Y.list&&Y.list.matchingItems.length>1,te.has_nav&&k(),xe(!0),re(e,!0),t&&M("push"),ae.modal.style.removeProperty("display"),document.activeElement&&ae.popup.addEventListener("transitionend",(()=>document.activeElement.blur()),{once:!0}),Q(1).then((()=>{["file","dir"].includes(te.type)&&$(0),B(!0)}))},U.close_modal=(e=!0)=>{if(te.open&&(te.open=!1,le.pause(),j(),xe(!1),ae.modal.addEventListener("transitionend",de),B(),g&&g.isConnected&&g.focus(),_c.config.history&&e))return history.state?history.replaceState({path:_c.current_path},_c.current_dir.basename||"/",location.pathname+location.search):history.back()}})();var we=function(e,t){var i,a,n,o,s,l,r,p,d,m,u,_,f,g,v,b,y,x=this,A=!1,w=!0,C={timeToIdle:3e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,i){return e.title?i.firstElementChild.innerHTML=e.title:t.resetEl(i.firstElementChild)},closeEl:!0,captionEl:!0,fullscreenEl:X.fullscreen,zoomEl:!0,downloadEl:!1,mapEl:!0,playEl:!0,panoRotateEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,closeOnOutsideClick:!0,tapToClose:!1,clickToCloseNonZoomable:!1,clickToShowNextNonZoomable:!1,indexIndicatorSep:'/',fitControlsWidth:1200},L=function(e){if(v)return!0;e=e||window.event,g.timeToIdle&&g.mouseUsed&&!p&&V();for(var t,i,a=e.target||e.srcElement,n=0;n=.95&&x.toggleControls(!0)})),d("onPinchClose",(function(e){w&&e<.9?(x.toggleControls(),n=!0):n&&!w&&e>.9&&x.toggleControls(!0)})),d("zoomGestureEnded",(function(){(n=!1)&&!w&&x.toggleControls(!0)})),d("beforeChange",x.update),g.downloadEl&&d("afterChange",(function(){var t=c(e.currItem.item);l.setAttribute("href",t||"#"),l.style.display=t?"":"none"})),g.mapEl&&d("afterChange",(function(){var t=e.currItem.item,i=!!(t&&t.image&&t.image.exif)&&t.image.exif.gps;r.style.display=i?"":"none",r.setAttribute("href",i?h(i):"#")})),d("doubleTap",(function(t){var i=e.currItem.initialZoomLevel;e.zoomTo(e.getZoomLevel()===i?g.getDoubleTapZoom(!1,e.currItem):i,t,250)})),d("preventDragEvent",(function(e,t,i){var a=e.target||e.srcElement;a&&a.getAttribute("class")&&e.type.indexOf("mouse")>-1&&(a.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(a.tagName))&&(i.prevent=!1,undefined())})),d("bindEvents",(function(){t.bind(i,"pswpTap click",L),t.bind(Y.popup.scrollwrap,"pswpTap",x.onGlobalTap),t.bind(document,"keydown",k)})),d("unbindEvents",(function(){b&&clearInterval(b),t.unbind(document,"mouseout",E),t.unbind(document,"mousemove",V),t.unbind(i,"pswpTap click",L),t.unbind(Y.popup.scrollwrap,"pswpTap",x.onGlobalTap),t.unbind(document,"keydown",k)})),d("destroy",(function(){g.captionEl&&a.classList.remove("pswp__caption--empty"),i.classList.add("pswp__ui--hidden"),y&&clearTimeout(y),x.setIdle(!1)})),g.showAnimationDuration||i.classList.remove("pswp__ui--hidden"),d("initialZoomIn",(function(){g.showAnimationDuration&&i.classList.remove("pswp__ui--hidden")})),d("initialZoomOut",(function(){i.classList.add("pswp__ui--hidden")})),(p=function(e){if(e)for(var t=e.length,i=0;i1&&(t.toggle_class(o,"pswp__element--disabled",0===e.getCurrentIndex()),t.toggle_class(s,"pswp__element--disabled",e.getCurrentIndex()===g.getNumItemsFn()-1))},x.onGlobalTap=function(t){var i=(t=t||window.event).target||t.srcElement;if(!v)if(t.detail&&"mouse"===t.detail.pointerType){if(!t.detail.rightClick)if(("zoom"==g.click||g.getNumItemsFn()<2||e.getZoomLevel()>e.currItem.fitRatio)&&i.classList.contains("pswp__img"))e.currItem.fitRatio<1&&e.toggleDesktopZoom(t.detail.releasePoint);else if(0===i.className.indexOf("pswp__")){var a=(g.getNumItemsFn()>2||!e.getCurrentIndex())&&("next"==g.click||t.detail.releasePoint.x>Y.popup.pswp.clientWidth/2)?"next":"prev";e[a]()}}else X.is_dual_input?X.legacy_ie||x.setIdle(!p):x.toggleControls(!w)},x.toggleControls=function(e){w=e,e&&!A&&x.update(),H(i,"ui--hidden",!e)}},Ce={bind:function(e,t,i,a){var n=(a?"remove":"add")+"EventListener";t=t.split(" ");for(var o=0;ot-1?e-t:e<0?t+e:e},ge={},ve=function(e,t){return ge[e]||(ge[e]=[]),ge[e].push(t)},be=function(e){var t=ge[e];if(t){var i=Array.prototype.slice.call(arguments);i.shift();for(var a=0;an.currItem.fitRatio?he||(Wt(n.currItem,!1,!0),he=!0):he&&(Wt(n.currItem),he=!1)),Ae(G,le.x,le.y,_))},Le=function(e){e.container&&Ae(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},ke=function(e,t){t.transform=g+e+"px, 0px, 0px)"},He=function(e,t){if(!o.loop&&t){var i=c+(de.x*ce-e)/de.x,a=Math.round(e-st.x);(i<0&&a>0||i>=St()-1&&a<0)&&(e=st.x+a*o.mainScrollEndFriction)}st.x=e,ke(e,p)},Me=function(e,t){var i=lt[e]-pe[e];return se[e]+oe[e]+i-i*(t/f)},$e=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Ve=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Ee=function(){z.is_mouse||(e.classList.add("pswp--has_mouse"),$+=" pswp--has_mouse",z.is_mouse=o.mouseUsed=!0),be("mouseUsed")},ze=null,je=function(){ze&&(Ce.unbind(document,"mousemove",je),Ee()),ze=setTimeout((function(){ze=null}),100)},Ie=function(e,t){var i=Pt(n.currItem,re,e);return t&&(U=i),i},Te=function(e){return(e||n.currItem).initialZoomLevel},Oe=function(e){return(e||n.currItem).w>0?o.maxSpreadZoom:1},Se=function(e,t,i,a){return a===n.currItem.initialZoomLevel?(i[e]=n.currItem.initialPosition[e],!0):(i[e]=Me(e,a),i[e]>t.min[e]?(i[e]=t.min[e],!0):i[e]=a)return Ne(e),o(i),void(s&&s());o((i-t)*n(l/a)+t),De[e].raf=H(c)}};c()},Fe={shout:be,listen:ve,viewportSize:re,options:o,isMainScrollAnimating:function(){return K},getZoomLevel:function(){return _},getCurrentIndex:function(){return c},isDragging:function(){return Z},isZooming:function(){return W},setScrollOffset:function(e,t){pe.x=e,E=pe.y=t},applyZoomPan:function(e,t,i,a){le.x=t,le.y=i,_=e,we(a)},init:function(){if(!s&&!l){var i;for(n.framework=Ce,n.template=e,$=e.className,s=!0,z=Ce.features,H=z.raf,M=z.caf,p=Y.popup.container.style,n.itemHolders=b=[{el:Y.popup.items[0],wrap:0,index:-1},{el:Y.popup.items[1],wrap:0,index:-1},{el:Y.popup.items[2],wrap:0,index:-1}],b[0].el.style.display=b[2].el.style.display="none",g="translate"+(k?"(":"3d("),h={resize:n.updateSize,orientationchange:function(){clearTimeout(j),j=setTimeout((function(){re.x!==Y.popup.scrollwrap.clientWidth&&n.updateSize()}),500)},scroll:Re,keydown:Be,click:Ze},i=0;i=St())&&(c=0),n.currItem=Ot(c),e.setAttribute("aria-hidden","false"),void 0===E&&(be("initialLayout"),E=V=Ce.getScrollY());var a="pswp--open"+(o.showHideOpacity?" pswp--animate_opacity":"")+(X.is_pointer&&("zoom"==o.click||o.getNumItemsFn()<2)?" pswp--zoom-cursor":"");for(DOMTokenList.prototype.add.apply(e.classList,a.split(" ")),n.updateSize(),d=-1,me=null,i=0;i<3;i++)ke((i+d)*de.x,b[i].el.style);Ce.bind(Y.popup.scrollwrap,u,n),ve("initialZoomInEnd",(function(){n.setContent(b[0],c-1),n.setContent(b[2],c+1),b[0].el.style.display=b[2].el.style.display="block",o.focus&&e.focus(),Ce.bind(document,"keydown",n),Ce.bind(Y.popup.scrollwrap,"click",n),z.is_mouse?Ee():X.is_pointer&&Ce.bind(document,"mousemove",je),Ce.bind(window,"resize scroll orientationchange",n),be("bindEvents")})),n.setContent(b[1],c),n.updateCurrItem(),e.classList.add("pswp--visible")}},close:function(){s&&(s=!1,l=!0,be("close"),setTimeout((function(){Ce.unbind(window,"resize scroll orientationchange",n)}),400),Ce.unbind(window,"scroll",h.scroll),Ce.unbind(document,"keydown",n),X.is_pointer&&Ce.unbind(document,"mousemove",je),Ce.unbind(Y.popup.scrollwrap,"click",n),Z&&Ce.unbind(window,m,n),clearTimeout(j),be("unbindEvents"),Bt(n.currItem,null,!0,n.destroy))},destroy:function(){be("destroy"),zt&&clearTimeout(zt),e.setAttribute("aria-hidden","true"),e.className=$,Ce.unbind(Y.popup.scrollwrap,u,n),Ce.unbind(window,"scroll",n),pt(),Qe(),ge={}},panTo:function(e,t,i){i||(e>U.min.x?e=U.min.x:eU.min.y?t=U.min.y:t=3&&(d+=me+(me>0?-3:3),i=3);for(var a=0;a0?(t=b.shift(),b[2]=t,d++,ke((d+2)*de.x,t.el.style),n.setContent(t,c-i+a+1+1)):(t=b.pop(),b.unshift(t),d--,ke(d*de.x,t.el.style),n.setContent(t,c+i-a-1-1));if(G&&1===Math.abs(me)){var o=Ot(y);o.initialZoomLevel!==_&&(Pt(o,re),Wt(o),Le(o))}me=0,n.updateCurrZoomItem(),y=c,be("afterChange")}}},updateSize:function(e){if(re.x=Y.popup.scrollwrap.clientWidth,re.y=Y.popup.scrollwrap.clientHeight,Re(),de.x=re.x+Math.round(re.x*o.spacing),de.y=re.y,He(de.x*ce),be("beforeResize"),void 0!==d){for(var t,i,a,s=0;s<3;s++)t=b[s],ke((s+d)*de.x,t.el.style),a=c+s-1,o.loop&&St()>2&&(a=fe(a)),(i=Ot(a))&&(v||i.needsUpdate||!i.bounds)?(n.cleanSlide(i),n.setContent(t,a),1===s&&(n.currItem=i,n.updateCurrZoomItem(!0)),i.needsUpdate=!1):-1===t.index&&a>=0&&n.setContent(t,a),i&&i.container&&(Pt(i,re),Wt(i),Le(i));v=!1}f=_=n.currItem.initialZoomLevel,(U=n.currItem.bounds)&&(le.x=U.center.x,le.y=U.center.y,we(!0)),be("resize")},zoomTo:function(e,t,i,a,n){t&&(f=_,lt.x=Math.abs(t.x)-le.x,lt.y=Math.abs(t.y)-le.y,$e(se,le));var o=Ie(e,!1),s={};Se("x",o,s,e),Se("y",o,s,e);var l=_,r={x:le.x,y:le.y};Ve(s);var c=function(t){1===t?(_=e,le.x=s.x,le.y=s.y):(_=(e-l)*t+l,le.x=(s.x-r.x)*t+r.x,le.y=(s.y-r.y)*t+r.y),n&&n(t),we(1===t)};i?We("customZoomTo",0,1,i,a||Ce.easing.sine.inOut,c):c(1)}},Ue={},Ge={},Ye={},Ke={},Xe={},Je=[],et={},tt=[],it={},at=0,nt={x:0,y:0},ot=0,st={x:0,y:0},lt={x:0,y:0},rt={x:0,y:0},ct=function(e,t){return it.x=Math.abs(e.x-t.x),it.y=Math.abs(e.y-t.y),Math.sqrt(it.x*it.x+it.y*it.y)},pt=function(){N&&(M(N),N=null)},dt=function(){Z&&(N=H(dt),Lt())},mt=function(e,t){return!(!e||e===document||e===Y.popup.scrollwrap)&&(t(e)?e:mt(e.parentNode,t))},ut={},ht=function(e,t){return ut.prevent=!mt(e.target,o.isClickableElement),be("preventDragEvent",e,t,ut),ut.prevent},_t=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},ft=function(e,t,i){i.x=.5*(e.x+t.x),i.y=.5*(e.y+t.y)},gt=function(){var e=le.y-n.currItem.initialPosition.y;return 1-Math.abs(e/(re.y/2))},vt={},bt={},yt=[],xt=function(e){for(;yt.length>0;)yt.pop();return L?(ne=0,Je.forEach((function(e){0===ne?yt[0]=e:1===ne&&(yt[1]=e),ne++}))):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(yt[0]=_t(e.touches[0],vt),e.touches.length>1&&(yt[1]=_t(e.touches[1],bt))):(vt.x=e.pageX,vt.y=e.pageY,vt.id="",yt[0]=vt),yt},At=function(e,t){var i,a,s,l,r=le[e]+t[e],c=t[e]>0,p=st.x+t.x,d=st.x-et.x;if(i=r>U.min[e]||rU.min[e]&&(i=o.panEndFriction,U.min[e]-r,a=U.min[e]-se[e]),(a<=0||d<0)&&St()>1?(l=p,d<0&&p>et.x&&(l=et.x)):U.min.x!==U.max.x&&(s=r)):(r0)&&St()>1?(l=p,d>0&&pn.currItem.fitRatio&&(le[e]+=t[e]*i)},wt=function(e){if("pointerdown"!==e.type||!(e.which>1||e.ctrlKey))if(Tt)e.preventDefault();else{if(ht(e,!0)&&e.preventDefault(),be("pointerDown"),L){var t=Ce.arraySearch(Je,e.pointerId,"id");t<0&&(t=Je.length),Je[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var i=xt(e),a=i.length;Q=null,Qe(),Z&&1!==a||(Z=ee=!0,Ce.bind(window,m,n),S=ae=te=B=q=P=R=D=!1,J=null,be("firstTouchStart",i),$e(se,le),oe.x=oe.y=0,$e(Ke,i[0]),$e(Xe,Ke),et.x=de.x*ce,tt=[{x:Ke.x,y:Ke.y}],T=I=ye(),Ie(_,!0),pt(),dt()),!W&&a>1&&!K&&!q&&(f=_,D=!1,W=R=!0,oe.y=oe.x=0,$e(se,le),$e(Ue,i[0]),$e(Ge,i[1]),ft(Ue,Ge,rt),lt.x=Math.abs(rt.x)-le.x,lt.y=Math.abs(rt.y)-le.y,F=ct(Ue,Ge))}},Ct=function(e){if(e.preventDefault(),L){var t=Ce.arraySearch(Je,e.pointerId,"id");if(t>-1){var i=Je[t];i.x=e.pageX,i.y=e.pageY}}if(Z){var a=xt(e);if(J||P||W)Q=a;else if(st.x!==de.x*ce)J="h";else{var n=Math.abs(a[0].x-Ke.x)-Math.abs(a[0].y-Ke.y);Math.abs(n)>=10&&(J=n>0?"h":"v",Q=a)}}},Lt=function(){if(Q){var e=Q.length;if(0!==e)if($e(Ue,Q[0]),Ye.x=Ue.x-Ke.x,Ye.y=Ue.y-Ke.y,W&&e>1){if(Ke.x=Ue.x,Ke.y=Ue.y,!Ye.x&&!Ye.y&&function(e,t){return e.x===t.x&&e.y===t.y}(Q[1],Ge))return;$e(Ge,Q[1]),D||(D=!0);var t=ct(Ue,Ge),i=Vt(t);i>n.currItem.initialZoomLevel+n.currItem.initialZoomLevel/15&&(ae=!0);var a=1,s=Te(),l=Oe();if(i1&&(a=1),i=s-a*(s/3);else i>l&&((a=(i-l)/(6*s))>1&&(a=1),i=l+a*s);a<0&&(a=0),ft(Ue,Ge,nt),oe.x+=nt.x-rt.x,oe.y+=nt.y-rt.y,$e(rt,nt),le.x=Me("x",i),le.y=Me("y",i),S=i>_,_=i,we()}else{if(!J)return;if(ee&&(ee=!1,Math.abs(Ye.x)>=10&&(Ye.x-=Q[0].x-Xe.x),Math.abs(Ye.y)>=10&&(Ye.y-=Q[0].y-Xe.y)),Ke.x=Ue.x,Ke.y=Ue.y,0===Ye.x&&0===Ye.y)return;if("v"===J&&o.closeOnVerticalDrag&&_===n.currItem.initialZoomLevel){oe.y+=Ye.y,le.y+=Ye.y;var c=gt();return B=!0,be("onVerticalDrag",c),xe(c),void we()}!function(e,t,i){if(e-T>50){var a=tt.length>2?tt.shift():{};a.x=t,a.y=i,tt.push(a),T=e}}(ye(),Ue.x,Ue.y),P=!0,U=n.currItem.bounds,At("x",Ye)||(At("y",Ye),Ve(le),we())}}},kt=function(e){var t;if(be("pointerUp"),ht(e,!1)&&e.preventDefault(),L){var i=Ce.arraySearch(Je,e.pointerId,"id");if(i>-1)if(t=Je.splice(i,1)[0],navigator.msPointerEnabled){t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}else t.type=e.pointerType||"mouse"}var a,s=xt(e),l=s.length;if("mouseup"===e.type&&(l=0),2===l)return Q=null,!0;1===l&&$e(Xe,s[0]),0!==l||J||K||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),be("touchRelease",e,t));var r=-1;if(0===l&&(Z=!1,Ce.unbind(window,m,n),pt(),W?r=0:-1!==ot&&(r=ye()-ot)),ot=1===l?ye():-1,a=-1!==r&&r<150?"zoom":"swipe",W&&l<2&&(W=!1,1===l&&(a="zoomPointerUp"),be("zoomGestureEnded")),Q=null,P||D||K||B)if(Qe(),O||(O=Ht()),O.calculateSwipeSpeed("x"),B){if(gt()n.currItem.fitRatio&&Mt(O):Et())}},Ht=function(){var e,t,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(a){tt.length>1?(e=ye()-T+50,t=tt[tt.length-2][a]):(e=ye()-I,t=Xe[a]),i.lastFlickOffset[a]=Ke[a]-t,i.lastFlickDist[a]=Math.abs(i.lastFlickOffset[a]),i.lastFlickDist[a]>20?i.lastFlickSpeed[a]=i.lastFlickOffset[a]/e:i.lastFlickSpeed[a]=0,Math.abs(i.lastFlickSpeed[a])<.1&&(i.lastFlickSpeed[a]=0),i.slowDownRatio[a]=.95,i.slowDownRatioReverse[a]=1-i.slowDownRatio[a],i.speedDecelerationRatio[a]=1},calculateOverBoundsAnimOffset:function(e,t){i.backAnimStarted[e]||(le[e]>U.min[e]?i.backAnimDestination[e]=U.min[e]:le[e]30&&(r||i.lastFlickOffset.x>20)?s=-1:t<-30&&(r||i.lastFlickOffset.x<-20)&&(s=1)}s&&((c+=s)<0?(c=o.loop?St()-1:0,l=!0):c>=St()&&(c=o.loop?0:St()-1,l=!0),l&&!o.loop||(me+=s,ce-=s,a=!0));var p,d=de.x*ce,m=Math.abs(d-st.x);return p=(a||d>st.x==i.lastFlickSpeed.x>0)&&Math.abs(i.lastFlickSpeed.x)>0?Math.max(Math.min(m/Math.abs(i.lastFlickSpeed.x),400),250):333,at===c&&(a=!1),K=!0,a&&Y.popup.toggle_timer(!1),We("mainScroll",st.x,d,p,Ce.easing.cubic.out,He,(function(){Qe(),K=!1,at=-1,(a||at!==c)&&n.updateCurrItem(),be("mainScrollAnimComplete")})),a&&n.updateCurrItem(!0),a},Vt=function(e){return 1/F*e*f},Et=function(){var e=_,t=Te(),i=Oe();_i&&(e=i);var a,o=ie;return te&&!S&&!ae&&_{G.setProperty("--clip-path-transition-duration",a?"0.333s":"0.433s"),G.setProperty("--clip-path",`inset(${e?`${e.y}% ${e.x}%`:"0% 0%"})`)};!function(){var i=r,s=!n.currItem.src||n.currItem.loadError||o.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),a||(_=l.w/t.w,le.x=l.x,le.y=l.y-V,Y.popup[s?"pswp":"bg"].style.opacity=.001,we());let c=(()=>{if(!l||!l.img)return;let e=l.img.offsetWidth,t=l.img.offsetHeight;if(!e||!t)return;let i=Math.max((l.w-e)/l.w*50,0),a=Math.max((l.h-t)/l.h*50,0);return i<1&&a<1?void 0:{x:i,y:a}})();c&&m(a?0:c),qe("initialZoom"),a&&!i&&e.classList.remove("pswp--animated-in"),s&&(a?Ce.toggle_class(e,"pswp--animate_opacity",!i):setTimeout((function(){e.classList.add("pswp--animate_opacity")}),30)),zt=setTimeout((function(){if(be("initialZoom"+(a?"Out":"In")),c&&m(a?c:0),a){var n=l.w/t.w,o={x:le.x,y:le.y},r=_,u=ie,h=function(t){1===t?(_=n,le.x=l.x,le.y=l.y-E):(_=(n-r)*t+r,le.x=(l.x-o.x)*t+o.x,le.y=(l.y-E-o.y)*t+o.y),we(),s?e.style.opacity=1-t:xe(u-t*u)};i?We("initialZoom",0,1,p,Ce.easing.cubic.out,h,d):(h(1),zt=setTimeout(d,p+20))}else _=t.initialZoomLevel,$e(le,t.initialPosition),we(),xe(1),s?e.style.opacity=1:xe(1),zt=setTimeout(d,p+20)}),a?10:20)}()},Zt={},Rt=[],Dt={index:0,errorMsg:'
    The image could not be loaded.
    ',preload:[1,1],getNumItemsFn:function(){return jt.length}},Pt=function(e,t,i){if(e.src&&!e.loadError){var a=!i;if(Zt.x=t.x,Zt.y=t.y,a){var n=Zt.x/e.w,o=Zt.y/e.h;e.fitRatio=n1&&(i=1),e.initialZoomLevel=i,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!i)return;return function(e,t,i){var a=e.bounds;a.center.x=Math.round((Zt.x-t)/2),a.center.y=Math.round((Zt.y-i)/2),a.max.x=t>Zt.x?Math.round(Zt.x-t):a.center.x,a.max.y=i>Zt.y?Math.round(Zt.y-i):a.center.y,a.min.x=t>Zt.x?0:a.center.x,a.min.y=i>Zt.y?0:a.center.y}(e,e.w*i,e.h*i),a&&i===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds},Nt=function(e,t,i,a,o,s){t.loadError||a&&(t.imageAppended=!0,Wt(t,a,t===n.currItem&&he),i.appendChild(a),s&&setTimeout((function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)}),500))},qt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=Ce.createEl("pswp__img","img"),i=function(){e.loading=!1,e.loaded=!0,"svg"!==e.item.ext&&t.naturalWidth&&t.naturalHeight&&(e.w!==t.naturalWidth||e.h!==t.naturalHeight)&&(e.w=t.naturalWidth,e.h=t.naturalHeight,n.updateSize()),e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=i,t.onerror=function(){e.loadError=!0,i()},t.src=e.src,t},Qt=function(e,t){if(e.src&&e.loadError&&e.container)return t&&Ce.resetEl(e.container),e.container.innerHTML=o.errorMsg.replace("%url%",e.src),!0},Wt=function(e,t,i){if(e.src){t||(t=e.container.lastElementChild);var a=i?e.w:Math.round(e.w*e.fitRatio),n=i?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=a+"px",e.placeholder.style.height=n+"px"),t.style.width=a+"px",t.style.height=n+"px"}},Ft=function(){if(Rt.length){for(var e,t=0;t=0,s=Math.min(i[0],St()),l=Math.min(i[1],St());for(t=1;t<=(a?l:s);t++)n.lazyLoadItem(c+t);for(t=1;t<=(a?s:l);t++)n.lazyLoadItem(c-t)})),ve("initialLayout",(function(){n.currItem.initialLayout=o.getThumbBoundsFn&&o.getThumbBoundsFn(c)})),ve("mainScrollAnimComplete",Ft),ve("initialZoomInEnd",Ft),ve("destroy",(function(){for(var e,t=0;t=0&&(void 0!==jt[e]&&jt[e])},setContent:function(e,t){o.loop&&(t=fe(t));var i=n.getItemAt(e.index);i&&(i.container=null);var a,l=n.getItemAt(t);if(l){be("gettingData",t,l),e.index=t,e.item=l;var r=l.container=Ce.createEl("pswp__zoom-wrap");if(!l.src&&l.html&&(l.html.tagName?r.appendChild(l.html):r.innerHTML=l.html),Qt(l),Pt(l,re),!l.src||l.loadError||l.loaded)l.src&&!l.loadError&&((a=Ce.createEl("pswp__img","img")).style.opacity=1,a.src=l.src,Wt(l,a),Nt(0,l,r,a));else{l.loadComplete=function(i){if(s){if(e&&e.index===t){if(Qt(i,!0))return i.loadComplete=i.img=null,Pt(i,re),Le(i),void(e.index===c&&n.updateCurrZoomItem());i.imageAppended?!Tt&&i.placeholder&&(i.placeholder.style.display="none",i.placeholder=null):K||Tt?Rt.push({item:i,baseDiv:r,img:i.img,index:t,holder:e,clearPlaceholder:!0}):Nt(0,i,r,i.img,0,!0)}i.loadComplete=null,i.img=null,be("imageLoadComplete",t,i)}};var p=l.msrc&&(l.msrc!==l.src||!It),d=Ce.createEl("pswp__img pswp__img--placeholder"+(p?"":" pswp__img--placeholder--blank"),p?"img":"");p&&(d.src=l.msrc),Wt(l,d),r.appendChild(d),l.placeholder=d,l.loading||qt(l),It?Nt(0,l,r,l.img,0,!0):Rt.push({item:l,baseDiv:r,img:l.img,index:t,holder:e})}It||t!==c?Le(l):(G=r.style,Bt(l,a||l.img)),Ce.resetEl(e.el),e.el.appendChild(r)}else Ce.resetEl(e.el)},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Ut,Gt,Yt={},Kt=function(e,t,i){var a=document.createEvent("CustomEvent"),n={origEvent:e,pointerType:i||"touch",releasePoint:t,target:e.target,rightClick:"mouse"===i&&3===e.which};a.initCustomEvent("pswpTap",!0,!0,n),e.target.dispatchEvent(a)};_e("Tap",{publicMethods:{initTap:function(){ve("firstTouchStart",n.onTapStart),ve("touchRelease",n.onTapRelease),ve("destroy",(function(){Yt={},Ut=null}))},onTapStart:function(e){e.length>1&&(clearTimeout(Ut),Ut=null)},onTapRelease:function(e,t){var i,a;if(t&&(!P&&!R&&!Pe&&(!L||Y.popup.container.contains(e.target)))){var n=t;if(Ut&&(clearTimeout(Ut),Ut=null,i=n,a=Yt,Math.abs(i.x-a.x)<25&&Math.abs(i.y-a.y)<25))return void be("doubleTap",n);if("mouse"===t.type)return void Kt(e,t,"mouse");if("A"===e.target.tagName)return;if("BUTTON"===e.target.tagName||e.target.classList.contains("pswp__single-tap"))return void Kt(e,t);$e(Yt,n),Ut=setTimeout((function(){Kt(e,t),Ut=null}),300)}}}}),_e("DesktopZoom",{publicMethods:{initDesktopZoom:function(){X.is_dual_input?ve("mouseUsed",(function(){n.setupDesktopZoom()})):X.is_pointer&&n.setupDesktopZoom(!0)},setupDesktopZoom:function(t){Gt={};var i="wheel mousewheel DOMMouseScroll";ve("bindEvents",(function(){Ce.bind(e,i,n.handleMouseWheel)})),ve("unbindEvents",(function(){Gt&&Ce.unbind(e,i,n.handleMouseWheel)})),n.mouseZoomedIn=!1;var a,o=function(){n.mouseZoomedIn&&(e.classList.remove("pswp--zoomed-in"),n.mouseZoomedIn=!1),Ce.toggle_class(e,"pswp--zoom-allowed",_<1),s()},s=function(){a&&(e.classList.remove("pswp--dragging"),a=!1)};ve("resize",o),ve("afterChange",o),ve("pointerDown",(function(){n.mouseZoomedIn&&(a=!0,e.classList.add("pswp--dragging"))})),ve("pointerUp",s),t||o()},handleMouseWheel:function(e){if(_<=n.currItem.fitRatio)return!o.closeOnScroll||Pe||Z?e.preventDefault():Math.abs(e.deltaY)>2&&(r=!0,n.close()),!0;if(e.stopPropagation(),Gt.x=0,"deltaX"in e)1===e.deltaMode?(Gt.x=18*e.deltaX,Gt.y=18*e.deltaY):(Gt.x=e.deltaX,Gt.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(Gt.x=-.16*e.wheelDeltaX),e.wheelDeltaY?Gt.y=-.16*e.wheelDeltaY:Gt.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;Gt.y=e.detail}Ie(_,!0);var t=le.x-Gt.x,i=le.y-Gt.y;e.preventDefault(),n.panTo(t,i)},toggleDesktopZoom:function(t){t=t||{x:re.x/2+pe.x,y:re.y/2+pe.y};var i=o.getDoubleTapZoom(!0,n.currItem),a=_===i;n.mouseZoomedIn=!a,n.zoomTo(a?n.currItem.initialZoomLevel:i,t,333),Ce.toggle_class(e,"pswp--zoomed-in",!a)}}});var Xt,Jt,ei,ti,ii,ai,ni,oi,si,li,ri={history:!0},ci=function(){return li.hash.substring(1)},pi=function(){Xt&&clearTimeout(Xt),ei&&clearTimeout(ei)},di=function(){if(ei&&clearTimeout(ei),Pe||Z)ei=setTimeout(di,500);else{ti?clearTimeout(Jt):ti=!0;var e=c+1,t=Ot(c);t.hasOwnProperty("pid")&&(e=t.pid);var i=(ai?ai+"&":"")+"pid="+e;ni||-1===li.hash.indexOf(i)&&(si=!0);var a=li.href.split("#")[0]+"#"+i;"#"+i!==window.location.hash&&history[ni?"replaceState":"pushState"]("",document.title,a),ni=!0,Jt=setTimeout((function(){ti=!1}),60)}};_e("History",{publicMethods:{initHistory:function(){if(Ce.copy_unique(o,ri),o.history){li=window.location,si=!1,oi=!1,ni=!1,ai=ci(),ve("afterChange",n.updateURL),ve("unbindEvents",(function(){Ce.unbind(window,"hashchange",n.onHashChange)})),history.scrollRestoration&&(history.scrollRestoration="manual");var e=function(){ii=!0,oi||(si?history.back():ai?li.hash=ai:history.pushState("",document.title,li.pathname+li.search)),pi(),history.scrollRestoration&&(history.scrollRestoration="auto")};ve("unbindEvents",(function(){r&&e()})),ve("destroy",(function(){ii||e()}));var t=ai.indexOf("pid=");t>-1&&"&"===(ai=ai.substring(0,t)).slice(-1)&&(ai=ai.slice(0,-1)),setTimeout((function(){s&&Ce.bind(window,"hashchange",n.onHashChange)}),40)}},onHashChange:function(){if(ci()===ai)return oi=!0,void n.close()},updateURL:function(){pi(),ni?Xt=setTimeout(di,800):di()}}}),Object.assign(n,Fe)};class ke{static active_el;static expand_button;static menu_root;static has_uls;static has_uls_root;static has_uls_not_root;static menu_open={};static menu_expanded;static toggle_duration=200;static init(){if(this.config=e("menu",{hidden:!1,expanded:!1,localStorage:!0}),this.params={},location.search.includes("=")&&["disabled","hidden","expanded"].forEach((e=>{let t=location.search.match(new RegExp(`menu_${e}=(0|1|true|false)`));t&&(this.params[e]=/1|true/.test(t[1]))})),K.sidebar=_id("sidebar"),K.sidebar_inner=_id("sidebar-inner"),K.sidebar_menu=_id("sidebar-menu"),K.sidebar_toggle=_id("sidebar-toggle"),K.sidebar_bg=_id("sidebar-bg"),K.sidebar_topbar=_id("sidebar-topbar"),this.params.disabled)return K.sidebar.remove(),K.sidebar_bg.remove(),document.documentElement.classList.remove("menu-enabled"),document.documentElement.classList.add("menu-disabled","sidebar-closed"),void(_c.menu_exists=!1);this.sidebar_hidden()&&document.documentElement.classList.add("sidebar-closed"),K.sidebar_toggle.innerHTML=U.get_svg_icon_multi("menu","menu_back"),K.sidebar_toggle.addEventListener("click",(()=>this.toggle_open())),K.sidebar_bg.addEventListener("click",(()=>this.toggle_open())),this.get_menu()}static sidebar_hidden(){return!this.is_large_screen()||(this.params.hasOwnProperty("hidden")?this.params.hidden:this.config.localStorage?!T.get_option("files:menu-open",!this.config.hidden):this.config.hidden)}static is_large_screen(){return matchMedia("(min-width: 992px)").matches}static toggle_open(){T.set_option("files:menu-open",!document.documentElement.classList.toggle("sidebar-closed"),!this.config.hidden)}static get_menu(){const e=!!_c.config.localStorage_cache&&T.get_json("files:menu:"+_c.menu_cache_hash);return e?_c.menu_cache_validate||_c.cache&&!_c.menu_cache_file?e.some((e=>e.path.includes("/")))?void this.load_menu(e):this.create_menu(e,"localStorage valid [root dirs only]"):this.create_menu(e,"localStorage valid [menu_cache_validate disabled]"):this.load_menu()}static load_menu(e){K.sidebar_menu.classList.add("sidebar-spinner"),O({params:!_c.menu_cache_file&&[_c.cache?`menu_cache_hash=${_c.menu_cache_hash}`:0,e?"localstorage=1":0].filter(Boolean).join("&"),method:_c.menu_cache_file?"GET":"POST",url:_c.menu_cache_file||_c.script+"?action=dirs",json_response:!0,complete:(t,i,a)=>this.loaded(t,i,a,e)})}static loaded(e,t,i,a){return K.sidebar_menu.classList.remove("sidebar-spinner"),i&&e&&!e.error&&Object.keys(e).length?e.localstorage&&a?this.create_menu(a,"localStorage valid [server]"):(this.create_menu(e,"menu from "+(_c.menu_cache_file?"JSON cache":"xmlhttp")),void(X.local_storage&&_c.config.localStorage_cache&&setTimeout((()=>{U.clean_localstorage(),T.set("files:menu:"+_c.menu_cache_hash,t)}),1e3))):(oe(),j(e.error||"Error or no dirs!"),F.toggle(!1,e.error||"Error or no dirs!"))}static is_expanded(){if(this.params.hasOwnProperty("expanded"))return this.params.expanded;let e=!!this.config.localStorage&&T.get_json(`files:menu-expanded:${_c.location_hash}`);return e?(this.menu_open=e,void Object.keys(this.menu_open).forEach((e=>{_c.dirs[e]||delete this.menu_open[e]}))):this.config.expanded}static create_menu(e,t){if(oe(),j("[MENU] "+t,e),e.forEach((e=>{_c.dirs[e.path]||(_c.dirs[e.path]=e)})),this.is_expanded()){let e=!1;Object.keys(_c.dirs).forEach((t=>{e&&t.startsWith(e+"/")&&(this.menu_open[e]=!0),e=t}))}this.create_menu_html(e),this.menu_root=K.sidebar_menu.firstChild,this.get_has_uls(),_class("menu-li",this.menu_root).forEach((e=>{const t=_c.dirs[e.dataset.path];t&&(t.menu_li=e)})),this.set_active(_c.current_path||_c.start_path||""),this.set_menu_scroll(),this.set_menu_toggle(),_c.config.transitions&&1==getComputedStyle(document.body).getPropertyValue("opacity")&&anime({targets:this.menu_root,opacity:[0,1],easing:"easeOutQuad",duration:300}),L(this.menu_root,(e=>{if(Y.contextmenu.is_open)return e.preventDefault();if(e.target===this.menu_root)return;const t="A"===e.target.nodeName,i=t?e.target.parentElement:e.target.closest(".menu-li"),a=t?e.target:i.firstElementChild;if(!C(e,a))if(t&&a!==this.active_el)U.get_files(i.dataset.path,"push"),this.is_large_screen()?document.documentElement.classList.contains("sidebar-closed")&&w(K.sidebar,"sidebar-clicked",null,1e3):this.toggle_open();else if(!t||i.classList.contains("has-ul")){const e=!i.classList.contains("menu-li-open");this.menu_open_manager(i,e),this.ul_anime(i,e)}}))}static create_menu_html(e){let t="",i=0,a=0,n=!1;e.forEach((e=>{if(!e.path)return;let o=(e.path.match(/\//g)||[]).length+1,s=o-i;i=o,a+=s,n&&(t+=this.add_li(n,s>0)),t+=s>0?`".repeat(-s),n=_c.dirs[e.path]})),t+=this.add_li(n,!1)+"".repeat(a),K.sidebar_menu.innerHTML=t}static add_li(e,t){let i="menu-li",o="menu-a",s=e.path?(e.path.match(/\//g)||[]).length+1:0,l="folder"+(e.is_readable?e.is_link?"_link":"":"_forbid"),r=a(e.path);return t?i+=" has-ul menu-li-"+(this.menu_open[e.path]?"open":"closed"):e.is_readable||(o+=" menu-a-forbidden"),`
  • ${t?U.get_svg_icon_multi_class("button-icon menu-icon menu-icon-toggle","plus","minus")+U.get_svg_icon_multi_class("menu-icon menu-icon-folder menu-icon-folder-toggle",l,"folder_plus","folder_minus"):U.get_svg_icon_class(l,"menu-icon menu-icon-folder")}${n(e.basename)}`}static get_has_uls(){this.has_uls=_class("has-ul",this.menu_root),this.has_uls_root=Array.from(this.menu_root.children).filter((e=>e.classList.contains("has-ul"))),this.has_uls_not_root=this.has_uls.filter((e=>!this.has_uls_root.includes(e)))}static set_active(e){this.active_el&&this.active_el.classList.remove("menu-spinner","menu-active");let t=e.split("/");for(;t.length;){let e=_c.dirs[t.join("/")];if(this.active_el=!(!e||!e.menu_li)&&e.menu_li.firstElementChild,this.active_el){this.active_el.classList.add("menu-active");break}t.pop()}}static set_menu_scroll(){if(!X.local_storage)return;const e=T.get("files:menu-scroll"+_c.location_hash);e&&(K.sidebar_menu.scrollTop=e),L(K.sidebar_menu,k((()=>{T.set("files:menu-scroll"+_c.location_hash,K.sidebar_menu.scrollTop,!0)}),1e3),"scroll")}static set_menu_toggle(){this.menu_expanded=this.has_uls_root.length&&Object.keys(this.menu_open).length===this.has_uls.length,K.sidebar_topbar.innerHTML=``,this.expand_button=K.sidebar_topbar.lastElementChild,L(this.expand_button,(e=>{if(!this.has_uls_root.length)return;let t=[],i=[],a=!1,n=window.innerHeight;if(this.menu_expanded)this.has_uls_root.forEach((e=>{if(!e.classList.contains("menu-li-open"))return;if(a)return t.push(e);if(e.getBoundingClientRect().top<=n)return i.push(e);t.push(e),a=!0})),t.length&&t.forEach((e=>this.li_close(e))),i.length&&i.forEach((e=>this.ul_anime(e,!1))),$("menu_inner_close",(()=>{this.has_uls_not_root.forEach((e=>this.li_close(e)))}),i.length?this.toggle_duration+10:10);else{let e=this.has_uls;this.has_uls.length>100&&(e=this.has_uls_root,this.has_uls_not_root.forEach((e=>this.li_open(e)))),e.forEach((e=>{if(e.classList.contains("menu-li-open"))return;if(a||!e.offsetParent)return t.push(e);if(e.getBoundingClientRect().top<=n&&e.lastElementChild.children.length<=50)return i.push(e);t.push(e),a=!0})),t.length&&t.forEach((e=>this.li_open(e))),i.length&&i.forEach((e=>this.ul_anime(e,!0))),clearTimeout(M.menu_inner_close)}this.menu_open_manager("all",!this.menu_expanded)}))}static menu_open_manager(e,t){"all"===e?t?this.has_uls.forEach((e=>this.menu_open[e.dataset.path]=!0)):this.menu_open={}:t?this.menu_open[e.dataset.path]=!0:delete this.menu_open[e.dataset.path],this.update_expanded()}static update_expanded(){const e=Object.keys(this.menu_open).length,t=this.has_uls_root.length&&e===this.has_uls.length;this.menu_expanded!==t&&(this.menu_expanded=t,X.is_pointer&&(this.expand_button.title=ie.get(t?"collapse menu":"expand menu")),this.expand_button.classList.toggle("is-expanded",t)),X.local_storage&&$("menu_expanded_localStorage",(()=>{T.set("files:menu-expanded:"+_c.location_hash,JSON.stringify(this.menu_open))}),1e3)}static ul_anime(e,t){const i=e.lastElementChild;i.style.display="block",anime.remove(i);const a={targets:i,translateY:t?[-2,0]:-2,height:[i.clientHeight+"px",t?i.scrollHeight+"px":0],opacity:t?1:0,easing:"cubicBezier(.6,0,.1,1)",duration:this.toggle_duration,complete:()=>{i.style.cssText="--depth:"+(e.dataset.level||0)}};return anime(a),t?this.li_open(e):this.li_close(e)}static li_open(e){e.classList.replace("menu-li-closed","menu-li-open")}static li_close(e){e.classList.replace("menu-li-open","menu-li-closed")}static loading(e){this.active_el&&this.active_el.classList.toggle("menu-spinner",!!e)}static update(){this.get_has_uls(),this.expand_button.classList.toggle("not-expandable",!this.has_uls_root.length),this.menu_open={},this.has_uls.forEach((e=>{e.classList.contains("menu-li-open")&&(this.menu_open[e.dataset.path]=!0)})),this.update_expanded()}}if(_c.menu_exists&&ke.init(),(()=>{Y.sort={sorting:{name:{prop:"basename",order:"asc"},kind:{prop:"ext",order:"asc"},size:{prop:"filesize",order:"desc"},date:{prop:"mtime",order:"desc"},shuffle:{prop:"mtime",order:"desc"}}};const t=e("sort",{default:"name_asc",dirs_first:!0,function:"locale"});function i(e,t){Object.assign(Y.sort,{sort:e,order:t,multi:"asc"===t?1:-1,index:Y.sort.keys.indexOf(e),prop:Y.sort.sorting[e].prop})}t.options&&Object.keys(Y.sort.sorting).forEach((e=>{t.options.includes(e)||delete Y.sort.sorting[e]})),Y.sort.keys=Object.keys(Y.sort.sorting);let a=([z("sort",!0),T.get("files:sort"),t.default,Y.sort.keys[0]].find((e=>e&&Y.sort.keys.includes(e.split("_")[0])))||"name_asc").split("_"),n=a[0]||"name";i(n,a[1]&&["asc","desc"].includes(a[1])?a[1]:Y.sort.sorting[n].order);const o=_id("change-sort");o&&(o.innerHTML=``);const s=o.firstElementChild,l=(o.children[1],o.lastElementChild),r=_class("dropdown-item",l);function c(e,i){if(t.dirs_first&&e._values.is_dir!==i._values.is_dir)return(i._values.is_dir?1:-1)*Y.sort.multi;if("shuffle"===Y.sort.sort)return.5-Math.random();var a=e._values[Y.sort.prop],n=i._values[Y.sort.prop];return"name"===Y.sort.sort||a===n?m(e._values.basename,i._values.basename):a>n?1:-1}var p={locale:function(e,t){return d.compare(e,t)||p.basic(e,t)},basic:function(e,t){var i=e.toLowerCase(),a=t.toLowerCase();return i===a?e>t?1:-1:i>a?1:-1}},d=new Intl.Collator(t.function&&!["basic","locale"].includes(t.function)?t.function.trim():void 0,{numeric:!0,sensitivity:"base"}),m=p["basic"===t.function?"basic":"locale"];function h(e,t,i){let a=r[Y.sort.index],n=_[Y.sort.index];e&&(a.classList.toggle("active",i),n&&n.classList.toggle("sortbar-active",i)),(e||t)&&(a.classList.toggle("sort-"+Y.sort.order,i),n&&n.classList.toggle("sort-"+Y.sort.order,i))}U.set_sort=function(e){if(e){var a=e!==Y.sort.sort,n=a?Y.sort.sorting[e].order:"asc"===Y.sort.order?"desc":"asc",o=n!==Y.sort.order;h(a,o,!1),i(e,n),s.innerHTML=U.get_svg_icon(`sort_${e}_${n}`),h(a,o,!0),T.set_option("files:sort",Y.sort.sort+"_"+Y.sort.order,t.default)}_c.debug&&console.time("sort"),Y.list&&Y.list.sort(Y.sort.prop,{order:Y.sort.order,sortFunction:c}),_c.debug&&console.timeEnd("sort")},U.dropdown(o,s,(function(){let e=Y.sort.index>=Y.sort.keys.length-1?0:Y.sort.index+1;4!==e||r[4].offsetParent||(e=0),U.set_sort(Y.sort.keys[e])})),u(l,U.set_sort),K.sortbar=_id("files-sortbar"),P(K.sortbar,"sortbar-"+Y.layout.layout),K.sortbar.innerHTML=`
    ${E(Y.sort.keys,(e=>"shuffle"===e?"":`
    ${ie.get(e)}${U.get_svg_icon_multi_class("svg-icon svg-icon-sort","chevron_down","chevron_up")}
    `))}
    `;const _=K.sortbar.firstChild.children;L(K.sortbar,(function(e){var t=e.target.closest("[data-action]");t&&U.set_sort(t.dataset.action,e)}))})(),Y.topbar={info:{}},K.filter.placeholder=ie.get("filter"),K.filter.title=X.c_key+"F",ue.hash(),K.filter_container.insertAdjacentHTML("beforeend",`${U.get_svg_icon_class("search","svg-icon filter-search-icon")}`),L(K.filter_container.lastElementChild,(()=>{K.filter.focus(),ue.clear(!0)})),ie.dropdown(),_c.allow_settings&&xe.options.show_button&&(K.topbar_top.insertAdjacentHTML("beforeend",``),K.topbar_top.lastElementChild.addEventListener("click",(e=>new xe))),_c.session_token&&_e.button(),ee.config.button&&(K.topbar_top.insertAdjacentHTML("beforeend",``),K.topbar_top.lastElementChild.addEventListener("click",(()=>ee.next()))),screenfull.isEnabled&&(K.topbar_top.insertAdjacentHTML("beforeend",'"),L(K.topbar_top.lastElementChild,(function(){screenfull.toggle()})),screenfull.on("change",(function(){document.documentElement.classList.toggle("is-fullscreen",screenfull.isFullscreen)}))),U.topbar_info=function(e,t){K.topbar_info.className="info-"+t,K.topbar_info.innerHTML=e},U.topbar_info_search=function(e,t){if(!e)return K.topbar_info.className="info-hidden";K.topbar_info.classList.contains("info-search")?(K.topbar_info.classList.toggle("info-nomatch",!t),K.topbar_info.children[0].textContent=t,K.topbar_info.children[2].textContent=e):U.topbar_info(''+t+''+ie.get("matches found for")+''+e+'","search"+(t?"":" info-nomatch"))},_c.config.favicon&&document.head.insertAdjacentHTML("beforeend",_c.config.favicon),"popup"===_c.config.click&&X.is_pointer&&K.files_container.style.setProperty("--files-cursor","zoom-in"),_c.config.logo){let e=_c.config.logo.startsWith("<")?_c.config.logo:``;document.body.insertAdjacentHTML("afterBegin",`
    ${e}
    `),_id("change-sort").insertAdjacentHTML("afterEnd",`
    ${e}
    `)}function He(){const e=e=>Q(100).then((()=>{e&&e.remove()}));[".modal","#files"].forEach((function(t){yall({observeChanges:!0,observeRootSelector:t,lazyClass:"files-lazy",threshold:300,events:{load:function(t){let i=t.target,a=i.parentElement,n=!!a.dataset.name&&_c.files[a.dataset.name],o=i.naturalWidth,s=i.naturalHeight,l=o?o/s:1;if(i.classList.contains("files-folder-preview"))return o&&1!==o?(o&&i.style.setProperty("--ratio",l),i.style.opacity=1):e(i);if(n&&n.embed_img&&n.embed_img.endsWith("/hq720.jpg")&&oe.removeProperty("--files-data-transition-duration")))}i.classList.remove("files-img-placeholder"),a.classList.add("files-a-loaded")},error:{listener:t=>{t.target.classList.contains("files-folder-preview")&&e(t.target)}}}})})),document.body.classList.remove("body-loading"),U.topbar_dropdowns_init();const t=()=>K.topbar_top.classList.toggle("topbar-top-scroll",K.topbar_top.clientWidtht())),t(),!_c.config.prevent_right_click&&_c.config.context_menu&&(K.files_container&&K.files_container.addEventListener("contextmenu",(e=>{let t=e.target.closest(".files-a");U.create_contextmenu(e,"files",t||K.files_container,t?_c.files[t.dataset.name]:_c.current_dir)})),K.sidebar_menu&&K.sidebar_menu.addEventListener("contextmenu",(e=>{let t=e.target.closest(".menu-a"),i=!!t&&t.parentElement;U.create_contextmenu(e,"sidebar",t||K.sidebar_menu,_c.dirs[i?i.dataset.path:""])}))),anime({targets:document.body,opacity:[0,1],duration:500,easing:"easeOutQuad",complete:U.init_files})}if(_c.config.header&&document.body.insertAdjacentHTML("afterBegin",`
    ${_c.config.header}
    `),_c.config.topbar&&K.main.insertAdjacentHTML("afterBegin",`
    ${_c.config.topbar}
    `),_c.config.footer&&K.main.insertAdjacentHTML("beforeEnd",`
    ${_c.config.footer}
    `),_c.config.footer_fixed&&document.body.insertAdjacentHTML("afterEnd",`
    ${_c.config.footer_fixed}
    `),_c.index_html&&location.search.indexOf("create_index_cache=")>-1){let e=`./index.php?create_index_cache=${z("create_index_cache",!0)}`;Ae.default.fire({title:"index_cache",html:`Must be triggered from index.php`}).then((t=>{t.isConfirmed&&location.assign(e)}))}else"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?He():U.load_plugin("intersection-observer",He,{src:["intersection-observer@0.12.2/intersection-observer.js"]})}("undefined"==typeof files?files={}:files); ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/ar.json ================================================ { "archive": "", "blocks": "كتل", "cancel": "الغاء", "columns": "أعمدة", "copied to clipboard": "", "copy": "نسخ", "copy link": "نسخ رابط", "copy links": "", "copy text": "نسخ نص", "date": "تاريخ", "delete": "حذف", "details": "تفاصيل", "directory is empty": "دليل فارغ", "download": "تحميل", "duplicate": "مكرر", "error": "خطأ", "fail": "فشل", "file": "ملف", "files": "ملفات", "filter": "تصفية", "folder": "مجلد", "folders": "مجلدات", "from clipboard": "", "google maps": "خرائط جوجل", "grid": "شبكة", "height": "ارتفاع", "home": "", "image": "", "imagelist": "قائمة صور", "images": "صور", "invalid": "", "invalid login": "تسجيل دخول غير صالح", "is not writeable": "", "kind": "نوع", "language": "لغة", "layout": "نسق", "list": "قائمة", "loading": "جار التحميل", "login": "دخول", "logout": "خروج", "matches found for": "تم العثور على تطابقات لـ", "move": "نقل", "name": "اسم", "new file": "ملف جديد", "new folder": "مجلد جديد", "new user": "", "open": "فتح", "open in new tab": "فتح في علامة تبويب جديدة", "overlay": "تراكب", "password": "كلمة المرور", "quality": "جودة", "reload": "", "rename": "تسمية", "resize and compress images": "تغيير حجم الصور وضغطها", "rows": "صفوف", "save": "حفظ", "select all": "", "selection mode": "", "settings": "", "show info": "إظهار معلومات", "shuffle": "خلط", "size": "حجم", "sort": "فرز", "space": "فراغ", "uniform": "متسق", "unzip": "فك الضغط", "upload": "رفع", "use image": "صورة", "username": "اسم المستخدم", "width": "عرض", "you were logged out": "لقد تم تسجيل خروجك", "zip": null, "zoom": "تكبير" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/bg.json ================================================ { "archive": "архив", "blocks": "блокове", "cancel": "Отказ", "columns": "колони", "copied to clipboard": "копирани в клипборда", "copy": "копиране", "copy link": "копирай връзка", "copy links": "копиране на връзки", "copy text": "копирай текст", "date": "дата", "delete": "изтрий", "details": "подробности", "directory is empty": "директорията е празна", "download": "свали", "duplicate": "дубликат", "error": "грешка", "fail": "грешка", "file": "файл", "files": "файла", "filter": "филтър", "folder": "папка", "folders": "папки", "from clipboard": "от клипборда", "google maps": "google карти", "grid": "мрежа", "height": "височина", "home": "Начало", "image": "изображение", "imagelist": "списък с изображения", "images": "изображения", "invalid": "невалиден", "invalid login": "невалидно влизане", "is not writeable": "не може да се записва", "kind": "вид", "language": "език", "layout": "оформление", "list": "списък", "loading": "зарежда се", "login": "вход", "logout": "изход", "matches found for": "намерени съвпадения за", "move": "преместване", "name": "име", "new file": "нов файл", "new folder": "нова папка", "new user": "нов потребител", "open": "отворена", "open in new tab": "отвори в нов раздел", "overlay": "наслагване", "password": "парола", "quality": "качество", "reload": "презареждане", "rename": "преименувай", "resize and compress images": "преоразмеряване и компресиране на изображения", "rows": "редове", "save": "запази", "select all": "изберете всички", "selection mode": "режим на избор", "settings": "настройки", "show info": "покажи информация", "shuffle": "разбъркайте", "size": "размер", "sort": "подреди", "space": "място", "uniform": "симетрично", "unzip": "разархивирайте", "upload": "качи", "use image": "изображение", "username": "потребителско име", "width": "ширина", "you were logged out": "бяхте излезли от системата", "zip": "цип", "zoom": "увеличи" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/bn.json ================================================ { "archive": "", "blocks": "ব্লক", "cancel": "বাতিল করুন", "columns": "কলাম", "copied to clipboard": "", "copy": "কপি", "copy link": "লিঙ্ক কপি করুন", "copy links": "", "copy text": "টেক্সট কপি করুন", "date": "তারিখ", "delete": "মুছে ফেলা", "details": "বিস্তারিত", "directory is empty": "ডিরেক্টরিটি খালি", "download": "ডাউনলোড", "duplicate": "নকল", "error": "ত্রুটি", "fail": "ব্যর্থ", "file": "ফাইল", "files": "ফাইলস", "filter": "ফিল্টার", "folder": "ফোল্ডার", "folders": "ফোল্ডার", "from clipboard": "", "google maps": "গুগল ম্যাপস", "grid": "গ্রিড", "height": "উচ্চতা", "home": "", "image": "", "imagelist": "চিত্র তালিকা", "images": "চিত্র", "invalid": "", "invalid login": "অবৈধ লগইন", "is not writeable": "", "kind": "ধরন", "language": "ভাষা", "layout": "গঠন", "list": "তালিকা", "loading": "লোডিং", "login": "লগইন", "logout": "লগআউট", "matches found for": "এর জন্য ম্যাচ পাওয়া গেছে", "move": "সরান", "name": "নাম", "new file": "নতুন ফাইল", "new folder": "নতুন ফোল্ডার", "new user": "", "open": "খোলা", "open in new tab": "নতুন ট্যাবে খুলুন", "overlay": "ওভারলে", "password": "পাসওয়ার্ড", "quality": "গুণমান", "reload": "", "rename": "নাম পরিবর্তন করা হয়েছে", "resize and compress images": "চিত্রগুলির আকার পরিবর্তন করুন এবং সংকুচিত করুন", "rows": "সারি", "save": "সংরক্ষণ", "select all": "", "selection mode": "", "settings": "", "show info": "তথ্য দেখুন", "shuffle": "এলোমেলো", "size": "সাইজ", "sort": "সাজান", "space": "স্পেস", "uniform": "একক", "unzip": "আনজিপ করুন", "upload": "আপলোড", "use image": "চিত্র ব্যবহার করুন", "username": "ব্যবহারকারীর নাম", "width": "প্রস্থ", "you were logged out": "তুমি লগ আউট হয়ে গেছো।", "zip": "জিপ", "zoom": "জুম" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/cs.json ================================================ { "archive": "archiv", "blocks": "Bloky", "cancel": "Zrušit", "columns": "Sloupce", "copied to clipboard": "zkopírováno do schránky", "copy": "kopírovat", "copy link": "Kopírovat odkaz", "copy links": "kopírovat odkazy", "copy text": "Kopírovat text", "date": "Datum", "delete": "Smazat", "details": "podrobnosti", "directory is empty": "Složka je prázdná", "download": "Stáhnout", "duplicate": "duplicitní", "error": "Chyba", "fail": "Chyba systému", "file": "soubor", "files": "Soubory", "filter": "filtr", "folder": "složku", "folders": "Složky", "from clipboard": "ze schránky", "google maps": "Mapy Google", "grid": "Mřížka", "height": "výška", "home": "home", "image": "obrázek", "imagelist": "Seznam obrázků", "images": "Obrázky", "invalid": "neplatný", "invalid login": "neplatné přihlášení", "is not writeable": "není zapisovatelný", "kind": "typ", "language": "Jazyk", "layout": "Rozvržení", "list": "Seznam", "loading": "Nahrávám", "login": "Přihlášení", "logout": "Odhlásit", "matches found for": "odpovídá vyrazu", "move": "přesunout", "name": "Jméno", "new file": "Nový soubor", "new folder": "Nová složka", "new user": "nový uživatel", "open": "otevřená", "open in new tab": "Otevřít v nové záložce", "overlay": "překrytí", "password": "heslo", "quality": "kvalitní", "reload": "znovu načíst", "rename": "Přejmenovat", "resize and compress images": "měnit velikost a komprimovat obrázky", "rows": "Řady", "save": "Uložit", "select all": "vybrat vše", "selection mode": "režim výběru", "settings": "nastavení", "show info": "Zobrazit informace", "shuffle": "zamíchat", "size": "Velikost", "sort": "Řazení", "space": "Mezera", "uniform": "Poměrné", "unzip": "rozbalit", "upload": "Nahrát", "use image": "použít obrázek", "username": "uživatelské jméno", "width": "šířka", "you were logged out": "byli jste odhlášeni", "zip": "zip", "zoom": "Zvětšit" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/da.json ================================================ { "archive": "arkiv", "blocks": "bloker", "cancel": "afbryd", "columns": "kolonner", "copied to clipboard": "kopieret til udklipsholder", "copy": "kopi", "copy link": "kopier link", "copy links": "kopier links", "copy text": "kopier tekst", "date": "dato", "delete": "slet", "details": "detaljer", "directory is empty": "mappen er tom", "download": "hent", "duplicate": "dupliker", "error": "fejl", "fail": "fejl", "file": "fil", "files": "filer", "filter": "filtrer", "folder": "mappe", "folders": "mapper", "from clipboard": "fra udklipsholder", "google maps": "google maps", "grid": "gitter", "height": "højde", "home": "hjem", "image": "billede", "imagelist": "billedliste", "images": "billeder", "invalid": "ugyldig", "invalid login": "Ugyldigt login", "is not writeable": "er ikke skrivbar", "kind": "filtype", "language": "sprog", "layout": "layout", "list": "liste", "loading": "indlæser", "login": "log på", "logout": "log ud", "matches found for": "match fundet for", "move": "flyt", "name": "navn", "new file": "ny fil", "new folder": "ny mappe", "new user": "ny bruger", "open": "åben", "open in new tab": "åbn i ny fane", "overlay": "Overlay", "password": "Adgangskode", "quality": "kvalitet", "reload": "genindlæs", "rename": "omdøb", "resize and compress images": "ændre størrelse og komprimere billeder", "rows": "rækker", "save": "gem", "select all": "Vælg alle", "selection mode": "Valgtilstand", "settings": "Indstillinger", "show info": "vis info", "shuffle": "blande", "size": "størrelse", "sort": "sortér", "space": "afstand", "uniform": "form", "unzip": "pak ud", "upload": "upload", "use image": "brug billede", "username": "brugernavn", "width": "bredde", "you were logged out": "du blev logget ud", "zip": "zip", "zoom": "zoom" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/de.json ================================================ { "archive": "Archiv", "blocks": "Blöcke", "cancel": "Abbrechen", "columns": "Spalten", "copied to clipboard": "in die Zwischenablage kopiert", "copy": "kopieren", "copy link": "Link kopieren", "copy links": "Links kopieren", "copy text": "Text kopieren", "date": "Datum", "delete": "löschen", "details": "Einzelheiten", "directory is empty": "Verzeichnis ist leer", "download": "download", "duplicate": "duplizieren", "error": "Fehler", "fail": "schlug fehl", "file": "datei", "files": "Dateien", "filter": "Filter", "folder": "ordner", "folders": "Verzeichnis", "from clipboard": "aus der Zwischenablage", "google maps": "Google Maps", "grid": "Raster", "height": "Höhe", "home": "home", "image": "Bild", "imagelist": "Liste mit Vorschaubildern", "images": "Bilder", "invalid": "ungültig", "invalid login": "Ungültige Anmeldung", "is not writeable": "ist nicht beschreibbar", "kind": "Typ", "language": "Sprache", "layout": "Layout", "list": "Liste", "loading": "wird geladen", "login": "einloggen", "logout": "ausloggen", "matches found for": "Übereinstimmungen gefunden für", "move": "verschieben", "name": "Name", "new file": "neue Datei", "new folder": "neuer Ordner", "new user": "Neuer Benutzer", "open": "öffnen", "open in new tab": "in neuem Tab öffnen", "overlay": "überlagern", "password": "Passwort", "quality": "Qualität", "reload": "neu laden", "rename": "umbenennen", "resize and compress images": "Bilder skalieren und komprimieren", "rows": "Zeilen", "save": "speichern", "select all": "alles auswählen", "selection mode": "Auswahlmodus", "settings": "Einstellungen", "show info": "Informationen", "shuffle": "mischen", "size": "Größe", "sort": "sortieren", "space": "Abstand", "uniform": "gleichmäßig", "unzip": "entpacken", "upload": "hochladen", "use image": "verwende das Bild", "username": "benutzername", "width": "Breite", "you were logged out": "Sie wurden abgemeldet", "zip": "zip", "zoom": "Zoom" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/el.json ================================================ { "archive": "αρχείο", "blocks": "μπλοκ", "cancel": "ακυρώστε", "columns": "στήλες", "copied to clipboard": "αντιγραφή στο πρόχειρο", "copy": "αντιγραφή", "copy link": "αντιγραφή συνδέσμου", "copy links": "αντιγραφή συνδέσμων", "copy text": "αντιγραφή κειμένου", "date": "ημερομηνία", "delete": "διαγραφή", "details": "λεπτομέρειες", "directory is empty": "ο κατάλογος είναι άδειος", "download": "download", "duplicate": "διπλότυπο", "error": "σφάλμα", "fail": "fail", "file": "αρχείο", "files": "αρχεία", "filter": "φίλτρο", "folder": "φάκελος", "folders": "φάκελοι", "from clipboard": "από το πρόχειρο", "google maps": "χάρτες της Google", "grid": "πλέγμα", "height": "ύψος", "home": "home", "image": "εικόνα", "imagelist": "imagelist", "images": "εικόνες", "invalid": "άκυρο", "invalid login": "άκυρη σύνδεση", "is not writeable": "δεν είναι εγγράψιμο", "kind": "είδος", "language": "γλώσσα", "layout": "διάταξη", "list": "λίστα", "loading": "φόρτωση", "login": "Σύνδεση", "logout": "αποσύνδεση", "matches found for": "ταυτοποιήσεις που βρέθηκαν για", "move": "move", "name": "όνομα", "new file": "νέο αρχείο", "new folder": "νέος φάκελος", "new user": "νέος χρήστης", "open": "ανοίξτε το", "open in new tab": "άνοιγμα σε νέα καρτέλα", "overlay": "επικάλυψη", "password": "κωδικός πρόσβασης", "quality": "ποιότητα", "reload": "reload", "rename": "μετονομασία", "resize and compress images": "αλλαγή μεγέθους και συμπίεση εικόνων", "rows": "σειρές", "save": "αποθήκευση", "select all": "επιλέξτε όλα", "selection mode": "λειτουργία επιλογής", "settings": "ρυθμίσεις", "show info": "Εμφάνιση πληροφοριών", "shuffle": "ανακάτεμα", "size": "μέγεθος", "sort": "ταξινόμηση", "space": "space", "uniform": "ομοιόμορφη", "unzip": "unzip", "upload": "ανεβάστε το", "use image": "χρήση εικόνας", "username": "όνομα χρήστη", "width": "πλάτος", "you were logged out": "αποσυνδεθήκατε", "zip": "zip", "zoom": "μεγέθυνση" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/en.json ================================================ { "archive": "", "blocks": "", "cancel": "", "columns": "", "copied to clipboard": "", "copy": "", "copy link": "", "copy links": "", "copy text": "", "date": "", "delete": "", "details": "", "directory is empty": "", "download": "", "duplicate": "", "error": "", "fail": "", "file": "", "files": "", "filter": "", "folder": "", "folders": "", "from clipboard": "", "google maps": "", "grid": "", "height": "", "home": "", "image": "", "imagelist": "", "images": "", "invalid": "", "invalid login": "", "is not writeable": "", "kind": "", "language": "", "layout": "", "list": "", "loading": "", "login": "", "logout": "", "matches found for": "", "move": "", "name": "", "new file": "", "new folder": "", "new user": "", "open": "", "open in new tab": "", "overlay": "", "password": "", "quality": "", "reload": "", "rename": "", "resize and compress images": "", "rows": "", "save": "", "select all": "", "selection mode": "", "settings": "", "show info": "", "shuffle": "", "size": "", "sort": "", "space": "", "uniform": "", "unzip": "", "upload": "", "use image": "", "username": "", "width": "", "you were logged out": "", "zip": "", "zoom": "" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/es.json ================================================ { "archive": "archivo", "blocks": "bloques", "cancel": "cancelar", "columns": "columnas", "copied to clipboard": "copiado al portapapeles", "copy": "copiar", "copy link": "copiar link", "copy links": "copiar enlaces", "copy text": "copiar texto", "date": "fecha", "delete": "borrar", "details": "detalles", "directory is empty": "directorio vacío", "download": "descargar", "duplicate": "duplicar", "error": "error", "fail": "falla", "file": "archivo", "files": "archivos", "filter": "filtros", "folder": "carpeta", "folders": "carpetas", "from clipboard": "desde el portapapeles", "google maps": "google maps", "grid": "cuadrícula", "height": "altura", "home": "inicio", "image": "imagen", "imagelist": "lista de imágenes", "images": "imágenes", "invalid": "inválido", "invalid login": "inicio de sesión no válido", "is not writeable": "no se puede escribir", "kind": "clase", "language": "lenguaje", "layout": "diseño", "list": "lista", "loading": "leyendo", "login": "iniciar sesión", "logout": "desconectarse", "matches found for": "coincidencias para", "move": "mover", "name": "nombre", "new file": "nuevo archivo", "new folder": "nueva carpeta", "new user": "nuevo usuario", "open": "abrir", "open in new tab": "abrir en nueva pestaña", "overlay": "cubrir", "password": "contraseña", "quality": "calidad", "reload": "recargar", "rename": "cambiar nombre", "resize and compress images": "redimensionar y comprimir imágenes", "rows": "filas", "save": "guardar", "select all": "seleccionar todo", "selection mode": "modo de selección", "settings": "ajustes", "show info": "mostrar información", "shuffle": "mezclar", "size": "tamaño", "sort": "ordenar", "space": "espacio", "uniform": "uniforme", "unzip": "descomprimir", "upload": "subir", "use image": "usar la imagen", "username": "nombre de usuario", "width": "ancho", "you were logged out": "se ha cerrado la sesión", "zip": "zip", "zoom": "zoom" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/et.json ================================================ { "archive": "arhiiv", "blocks": "plokid", "cancel": "tühistada", "columns": " veerud ", "copied to clipboard": "kopeeritud lõikelauale", "copy": "kopeeri", "copy link": " kopeeri link", "copy links": "linkide kopeerimine", "copy text": " kopeeri tekst", "date": " kuupäev ", "delete": "kustuta", "details": "üksikasjad", "directory is empty": " kataloog on tühi ", "download": " lae alla", "duplicate": "dubleerida", "error": "viga", "fail": "viga", "file": "faili", "files": "failid", "filter": "filter", "folder": "kaust", "folders": "kaustad", "from clipboard": "lõikelauast", "google maps": "google maps", "grid": " ruudustik", "height": "kõrgus", "home": "home", "image": "pilt", "imagelist": "pildiloend", "images": "pildid", "invalid": "kehtetu", "invalid login": "vigane sisselogimine", "is not writeable": "ei ole kirjutatav", "kind": "tüüp", "language": "keel", "layout": "paigutus", "list": "loend", "loading": "laetakse", "login": "logi sisse", "logout": "logi välja", "matches found for": "leitud vastet otsingule", "move": "teisaldage", "name": "nimi", "new file": "uus fail", "new folder": "uus kaust", "new user": "uus kasutaja", "open": "ava", "open in new tab": "ava uuel vahelehel", "overlay": "ülekate", "password": "parool", "quality": "kvaliteet", "reload": "laadige uuesti", "rename": "ümber nimetada", "resize and compress images": "piltide suuruse muutmine ja tihendamine", "rows": "read", "save": "salvesta", "select all": "vali kõik", "selection mode": "valikurežiim", "settings": "seaded", "show info": "näita teavet", "shuffle": "segamine", "size": "suurus", "sort": "sorteeri", "space": "tühik", "uniform": "ühtlane", "unzip": "unzip", "upload": "lae üles", "use image": "kasuta pilti", "username": "kasutajanimi", "width": "laius", "you were logged out": "teid logiti välja", "zip": "zip", "zoom": "suum" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/fi.json ================================================ { "archive": "arkisto", "blocks": "lohkot", "cancel": "peruuta", "columns": "columns", "copied to clipboard": "kopioitu leikepöydälle", "copy": "kopioi", "copy link": "kopioi linkki", "copy links": "kopioi linkkejä", "copy text": "kopioi tekstiä", "date": "päivämäärä", "delete": "poista", "details": "details", "directory is empty": "hakemisto on tyhjä", "download": "lataa", "duplicate": "kopioi", "error": "virhe", "fail": "fail", "file": "tiedosto", "files": "tiedostot", "filter": "suodatin", "folder": "kansio", "folders": "kansiot", "from clipboard": "leikepöydästä", "google maps": "Google Maps", "grid": "grid", "height": "korkeus", "home": "home", "image": "kuva", "imagelist": "imagelist", "images": "kuvat", "invalid": "virheellinen", "invalid login": "virheellinen kirjautuminen", "is not writeable": "ei ole kirjoitettavissa", "kind": "laji", "language": "kieli", "layout": "layout", "list": "lista", "loading": "lataaminen", "login": "kirjaudu sisään", "logout": "uloskirjautuminen", "matches found for": "matches found for", "move": "move", "name": "nimi", "new file": "uusi tiedosto", "new folder": "uusi kansio", "new user": "uusi käyttäjä", "open": "avaa", "open in new tab": "avaa uusi välilehti", "overlay": "päällekkäin", "password": "salasana", "quality": "laatu", "reload": "lataa uudelleen", "rename": "uudelleennimeäminen", "resize and compress images": "Kuvien koon muuttaminen ja pakkaaminen", "rows": "rivit", "save": "tallenna", "select all": "valitse kaikki", "selection mode": "valintatila", "settings": "asetukset", "show info": "Näytä tiedot", "shuffle": "sekoita", "size": "koko", "sort": "lajittele", "space": "space", "uniform": "yhtenäinen", "unzip": "purkaa", "upload": "lataa", "use image": "käytä kuvaa", "username": "käyttäjätunnus", "width": "leveys", "you were logged out": "sinut on kirjauduttu ulos", "zip": "zip", "zoom": "zoomaa" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/fr.json ================================================ { "archive": "archive", "blocks": "blocs", "cancel": "Annuler", "columns": "colonnes", "copied to clipboard": "copié dans le presse-papiers", "copy": "copier", "copy link": "copier le lien", "copy links": "copier des liens", "copy text": "copier le texte", "date": "date", "delete": "supprimer", "details": "détails", "directory is empty": "le répertoire est vide", "download": "télécharger", "duplicate": "dupliquer", "error": "erreur", "fail": "a échoué", "file": "fichier", "files": "fichiers", "filter": "filtrer", "folder": "dossier", "folders": "dossiers", "from clipboard": "du presse-papiers", "google maps": "google maps", "grid": "grille", "height": "la taille", "home": "home", "image": "image", "imagelist": "liste d'images", "images": "images", "invalid": "invalide", "invalid login": "connexion non valide", "is not writeable": "n'est pas accessible en écriture", "kind": "genre", "language": "langue", "layout": "disposition", "list": "liste", "loading": "chargement", "login": "connexion", "logout": "déconnexion", "matches found for": "correspondances trouvées pour", "move": "déplacer", "name": "nom", "new file": "nouveau fichier", "new folder": "nouveau dossier", "new user": "nouvel utilisateur", "open": "ouvrir", "open in new tab": "ouvrir dans un nouvel onglet", "overlay": "recouvrir", "password": "mot de passe", "quality": "qualité", "reload": "recharger", "rename": "renommer", "resize and compress images": "redimensionner et compresser les images", "rows": "rangée", "save": "sauvegarder", "select all": "sélectionner tout", "selection mode": "mode de sélection", "settings": "paramètres", "show info": "affichage informations", "shuffle": "mélanger", "size": "taille", "sort": "tri", "space": "espace", "uniform": "uniforme", "unzip": "décompresser", "upload": "envoyer", "use image": "utiliser l'image", "username": "nom d'utilisateur", "width": "largeur", "you were logged out": "vous avez été déconnecté", "zip": "zip", "zoom": "zoom" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/hu.json ================================================ { "archive": "archívum", "blocks": "blokkok", "cancel": "mégsem", "columns": "oszlopok", "copied to clipboard": "vágólapra másolva", "copy": "másolás", "copy link": "link másolása", "copy links": "linkek másolása", "copy text": "szöveg másolása", "date": "dátum", "delete": "törlés", "details": "részletek", "directory is empty": "könyvtár üres", "download": "letöltés", "duplicate": "megkettőzése", "error": "hiba", "fail": "kudarcot vall", "file": "fájl", "files": "szűrő", "filter": "szűrő", "folder": "könyvtár", "folders": "mappák", "from clipboard": "a vágólapról", "google maps": "google térkép", "grid": "rács", "height": "magasság", "home": "home", "image": "kép", "imagelist": "képlista", "images": "képek", "invalid": "érvénytelen", "invalid login": "érvénytelen bejelentkezés", "is not writeable": "nem írható", "kind": "kedves", "language": "nyelv", "layout": "elrendezés", "list": "lista", "loading": "betöltés", "login": "bejelentkezés", "logout": "kijelentkezés", "matches found for": "találat a következőre:", "move": "mozgatás", "name": "név", "new file": "új fájl", "new folder": "új mappa", "new user": "új felhasználó", "open": "megnyitás", "open in new tab": "nyissa meg az új lapon", "overlay": "átfedés", "password": "jelszó", "quality": "minőség", "reload": "újratöltés", "rename": "átnevezés", "resize and compress images": "átméretezni és tömöríteni a képeket", "rows": "sorok", "save": "mentés", "select all": "Válasszon ki mindent", "selection mode": "kiválasztási mód", "settings": "beállítások", "show info": "mutasd az információkat", "shuffle": "keverése", "size": "méret", "sort": "fajta", "space": "tér", "uniform": "egyenruha", "unzip": "kitömörítés", "upload": "feltöltés", "use image": "kép", "username": "felhasználónév", "width": "szélesség", "you were logged out": "kijelentkeztél", "zip": "zip", "zoom": "zoomolás" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/id.json ================================================ { "archive": "arsip", "blocks": "blok", "cancel": "batalkan", "columns": "kolom", "copied to clipboard": "disalin ke papan klip", "copy": "menyalin", "copy link": "salin tautan", "copy links": "salin tautan", "copy text": "menyalin teks", "date": "tanggal", "delete": "hapus", "details": "detail", "directory is empty": "direktori kosong", "download": "Unduh", "duplicate": "duplikat", "error": "kesalahan", "fail": "gagal", "file": "file", "files": "file", "filter": "filter", "folder": "folder", "folders": "folder", "from clipboard": "dari papan klip", "google maps": "peta google", "grid": "kisi-kisi", "height": "tinggi", "home": "rumah", "image": "gambar", "imagelist": "daftar gambar", "images": "gambar", "invalid": "tidak valid", "invalid login": "login tidak valid", "is not writeable": "tidak dapat ditulis", "kind": "jenis", "language": "bahasa", "layout": "tata letak", "list": "daftar", "loading": "memuat", "login": "masuk", "logout": "keluar", "matches found for": "kecocokan ditemukan untuk", "move": "memindahkan", "name": "nama", "new file": "file baru", "new folder": "folder baru", "new user": "pengguna baru", "open": "buka", "open in new tab": "buka di tab baru", "overlay": "hamparan", "password": "kata sandi", "quality": "kualitas", "reload": "muat ulang", "rename": "ganti nama", "resize and compress images": "mengubah ukuran dan mengompres gambar", "rows": "baris", "save": "simpan", "select all": "pilih semua", "selection mode": "mode pemilihan", "settings": "pengaturan", "show info": "tampilkan info", "shuffle": "kocok", "size": "ukuran", "sort": "mengurutkan", "space": "spasi", "uniform": "seragam", "unzip": "unzip", "upload": "unggah", "use image": "gunakan gambar", "username": "nama pengguna", "width": "lebar", "you were logged out": "Anda telah keluar dari aplikasi", "zip": "zip", "zoom": "memperbesar" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/it.json ================================================ { "archive": "archivio", "blocks": "blocchi", "cancel": "annulla", "columns": "colonne", "copied to clipboard": "copiato negli appunti", "copy": "copia", "copy link": "copia link", "copy links": "copiare i link", "copy text": "copia testo", "date": "data", "delete": "elimina", "details": "dettagli", "directory is empty": "la cartella è vuota", "download": "scarica", "duplicate": "duplica", "error": "errore", "fail": "non riuscito", "file": "file", "files": "file", "filter": "filtro", "folder": "cartella", "folders": "cartelle", "from clipboard": "dagli appunti", "google maps": "google maps", "grid": "griglia", "height": "altezza", "home": "casa", "image": "immagine", "imagelist": "elenco immagini", "images": "immagini", "invalid": "non valido", "invalid login": "login non valido", "is not writeable": "non è scrivibile", "kind": "tipo", "language": "lingua", "layout": "disposizione", "list": "elenco", "loading": "loading", "login": "accedi", "logout": "disconnettiti", "matches found for": "occorrenze per", "move": "sposta", "name": "nome", "new file": "nuovo file", "new folder": "nuova cartella", "new user": "nuovo utente", "open": "apri", "open in new tab": "apri in una nuova scheda", "overlay": "sovrapposizione", "password": "password", "quality": "qualità", "reload": "ricaricare", "rename": "rinomina", "resize and compress images": "ridimensionare e comprimere le immagini", "rows": "righe", "save": "salva", "select all": "selezionare tutti", "selection mode": "modalità di selezione", "settings": "impostazioni", "show info": "mostra info", "shuffle": "mescolare", "size": "dimensione", "sort": "ordina", "space": "spazio", "uniform": "uniforma", "unzip": "decomprimi", "upload": "carica", "use image": "usa l'immagine", "username": "nome utente", "width": "larghezza", "you were logged out": "siete stati disconnessi", "zip": "zip", "zoom": "ingrandisci" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/ja.json ================================================ { "archive": "アーカイブ", "blocks": "ブロック", "cancel": "キャンセル", "columns": "列", "copied to clipboard": "クリップボードにコピー", "copy": "コピー", "copy link": "リンクをコピー", "copy links": "リンクをコピーする", "copy text": "テキストをコピー", "date": "日", "delete": "削除", "details": "詳細", "directory is empty": "ディレクトリが空です", "download": "ダウンロード", "duplicate": "複製", "error": "エラー", "fail": "失敗", "file": "ファイル", "files": "ファイル", "filter": "フィルタ", "folder": "フォルダ", "folders": "フォルダ", "from clipboard": "クリップボードから", "google maps": "Googleマップ", "grid": "グリッド", "height": "身長", "home": "ホーム", "image": "画像", "imagelist": "画像リスト", "images": "画像", "invalid": "無効", "invalid login": "無効なログイン", "is not writeable": "書き込み不可", "kind": "種類", "language": "言語", "layout": "レイアウト", "list": "リスト", "loading": "読み込み中", "login": "ログイン", "logout": "ログアウト", "matches found for": "一致するものが見つかりました", "move": "移動", "name": "名前", "new file": "新しいファイル", "new folder": "新しいフォルダ", "new user": "新規ユーザー", "open": "開く", "open in new tab": "新しいタブで開く", "overlay": "かぶせる", "password": "パスワード", "quality": "品質", "reload": "リロード", "rename": "名前の変更", "resize and compress images": "画像のサイズ変更と圧縮", "rows": "行", "save": "保存", "select all": "すべて選択", "selection mode": "セレクションモード", "settings": "設定", "show info": "情報を表示", "shuffle": "シャッフル", "size": "サイズ", "sort": "並べ替え", "space": "スペース", "uniform": "揃える", "unzip": "解凍", "upload": "アップロード", "use image": "使用画像", "username": "ユーザー名", "width": "幅", "you were logged out": "ログアウトされました", "zip": "zip", "zoom": "ズーム" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/ko.json ================================================ { "archive": "아카이브", "blocks": "블록형", "cancel": "취소", "columns": "세로형", "copied to clipboard": "클립보드에 복사됨", "copy": "복사", "copy link": "링크 복사", "copy links": "링크 복사", "copy text": "글자 복사", "date": "날짜", "delete": "삭제", "details": "세부", "directory is empty": "디렉토리가 비어 있습니다", "download": "다운로드", "duplicate": "복제하다", "error": "오류", "fail": "실패", "file": "파일", "files": "파일", "filter": "찾다", "folder": "폴더", "folders": "폴더", "from clipboard": "클립보드에서", "google maps": "구글지도", "grid": "앨범형", "height": "키", "home": "home", "image": "이미지", "imagelist": "이미지목록", "images": "이미지", "invalid": "유효하지 않은", "invalid login": "잘못된 로그인", "is not writeable": "는 쓰기 불가능합니다.", "kind": "종류", "language": "언어", "layout": "레이아웃", "list": "목록보기", "loading": "로딩", "login": "로그인", "logout": "로그 아웃", "matches found for": "개의 일치하는 항목을 찾았습니다.", "move": "이동", "name": "이름", "new file": "새로운 파일", "new folder": "새 폴더", "new user": "새 사용자", "open": "열기", "open in new tab": "새 탭에서 열기", "overlay": "씌우다", "password": "비밀번호", "quality": "품질", "reload": "재로드", "rename": "이름 변경", "resize and compress images": "이미지 크기 조정 및 압축", "rows": "가로형", "save": "저장", "select all": "모두 선택", "selection mode": "선택 모드", "settings": "설정", "show info": "정보 표시", "shuffle": "혼합", "size": "용량", "sort": "정렬", "space": "여백", "uniform": "균일\/대칭", "unzip": "압축 해제", "upload": "업로드", "use image": "이미지 사용", "username": "사용자 이름", "width": "너비", "you were logged out": "로그아웃되었습니다.", "zip": "zip", "zoom": "확대" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/ms.json ================================================ { "archive": "arkib", "blocks": "blok", "cancel": "batalkan", "columns": "kolum", "copied to clipboard": "disalin ke papan klip", "copy": "menyalin", "copy link": "salin tautan", "copy links": "salin pautan", "copy text": "menyalin teks", "date": "tarikh", "delete": "padam", "details": "butiran", "directory is empty": "direktori kosong", "download": "muat turun", "duplicate": "duplikasi", "error": "ralat", "fail": "gagal", "file": "file", "files": "file", "filter": "saring", "folder": "folder", "folders": "folder", "from clipboard": "dari papan klip", "google maps": "peta google", "grid": "grid", "height": "tinggi", "home": "laman utama", "image": "imej", "imagelist": "senarai imej", "images": "imej-imej", "invalid": "tidak sah", "invalid login": "log masuk tidak sah", "is not writeable": "tidak dapat ditulis", "kind": "jenis", "language": "bahasa", "layout": "susun atur", "list": "senarai", "loading": "memuat", "login": "log masuk", "logout": "log keluar", "matches found for": "padanan ditemui untuk", "move": "memindahkan", "name": "nama", "new file": "file baru", "new folder": "folder baru", "new user": "pengguna baru", "open": "buka", "open in new tab": "buka di tab baru", "overlay": "tindanan", "password": "kata laluan", "quality": "kualiti", "reload": "muat semula", "rename": "nama semula", "resize and compress images": "mengubah ukuran dan memadat imej", "rows": "baris", "save": "simpan", "select all": "pilih semua", "selection mode": "mode pemilihan", "settings": "aturan", "show info": "tunjuk info", "shuffle": "kocok", "size": "ukuran", "sort": "urutan", "space": "ruang", "uniform": "seragam", "unzip": "unzip", "upload": "muat naik", "use image": "gunakan imej", "username": "nama pengguna", "width": "lebar", "you were logged out": "Anda telah keluar dari aplikasi", "zip": "zip", "zoom": "memperbesar" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/nl.json ================================================ { "archive": "archief", "blocks": "blokken", "cancel": "annuleren", "columns": "kolommen", "copied to clipboard": "gekopieerd naar klembord", "copy": "kopiëren", "copy link": "kopieer link", "copy links": "links kopiëren", "copy text": "kopieer tekst", "date": "datum", "delete": "verwijder", "details": "details", "directory is empty": "map is leeg", "download": "download", "duplicate": "dupliceren", "error": "fout", "fail": "fout", "file": "bestand", "files": "bestanden", "filter": "filter", "folder": "map", "folders": "mappen", "from clipboard": "van klembord", "google maps": "google maps", "grid": "raster", "height": "hoogte", "home": "home", "image": "afbeelding", "imagelist": "afbeeldingenlijst", "images": "afbeeldingen", "invalid": "ongeldig", "invalid login": "ongeldige aanmelding", "is not writeable": "is niet beschrijfbaar", "kind": "soort", "language": "taal", "layout": "lay-out", "list": "lijst", "loading": "bezig met laden", "login": "inloggen", "logout": "uitloggen", "matches found for": "overeenkomsten gevonden voor", "move": "verplaatsen", "name": "naam", "new file": "nieuw bestand", "new folder": "nieuwe map", "new user": "nieuwe gebruiker", "open": "openen", "open in new tab": "openen in nieuw tabblad", "overlay": "overlay", "password": "wachtwoord", "quality": "kwaliteit", "reload": "opnieuw laden", "rename": "hernoem", "resize and compress images": "formaat wijzigen en afbeeldingen comprimeren", "rows": "rijen", "save": "opslaan", "select all": "alles selecteren", "selection mode": "selectiemodus", "settings": "instellingen", "show info": "toon info", "shuffle": "schudden", "size": "grootte", "sort": "sorteren", "space": "ruimte", "uniform": "uniform", "unzip": "uitpakken", "upload": "uploaden", "use image": "afbeelding", "username": "gebruikersnaam", "width": "breedte", "you were logged out": "u bent uitgelogd", "zip": "zip", "zoom": "zoom" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/no.json ================================================ { "archive": "arkiv", "blocks": "blokker", "cancel": "avbryt", "columns": "kolonner", "copied to clipboard": "kopiert til utklippstavlen", "copy": "kopier", "copy link": "kopier lenke", "copy links": "kopier lenker", "copy text": "kopier tekst", "date": "dato", "delete": "slett", "details": "detaljer", "directory is empty": "mappen er tom", "download": "last ned", "duplicate": "dupliser", "error": "feil", "fail": "feil", "file": "fil", "files": "filer", "filter": "filter", "folder": "mappe", "folders": "mapper", "from clipboard": "fra utklippstavlen", "google maps": "google kart", "grid": "grid", "height": "høyde", "home": "hjem", "image": "bilde", "imagelist": "bildeliste", "images": "bilder", "invalid": "ugyldig", "invalid login": "ugyldig innlogging", "is not writeable": "er ikke skrivbar", "kind": "type", "language": "språk", "layout": "layout", "list": "liste", "loading": "laster", "login": "logg inn", "logout": "logg ut", "matches found for": "treff funnet for", "move": "flytt", "name": "navn", "new file": "ny fil", "new folder": "ny mappe", "new user": "ny bruker", "open": "åpne", "open in new tab": "åpne i ny fane", "overlay": "overlegg", "password": "passord", "quality": "kvalitet", "reload": "last inn på nytt", "rename": "gi nytt navn", "resize and compress images": "endre størrelse og komprimering bilder", "rows": "rader", "save": "lagre", "select all": "velg alle", "selection mode": "valgmodus", "settings": "innstillinger", "show info": "vis info", "shuffle": "stokke", "size": "størelse", "sort": "sorter", "space": "mellomrom", "uniform": "symmetrisk", "unzip": "pakk ut", "upload": "last opp", "use image": "bruk bilde", "username": "brukernavn", "width": "bredde", "you were logged out": "du ble logget ut", "zip": "zip", "zoom": "zoom" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/pl.json ================================================ { "archive": "archiwum", "blocks": "bloki", "cancel": "anuluj", "columns": "kolumny", "copied to clipboard": "skopiowane do schowka", "copy": "kopiuj", "copy link": "skopiuj link", "copy links": "kopiowanie linków", "copy text": "skopiuj tekst", "date": "data", "delete": "usuń", "details": "Detale", "directory is empty": "katalog jest pusty", "download": "pobierz", "duplicate": "duplikuj", "error": "błąd", "fail": "niepowodzenie", "file": "plik", "files": "pliki", "filter": "filtr", "folder": "folder", "folders": "katalogi", "from clipboard": "ze schowka", "google maps": "mapy google", "grid": "siatka", "height": "wzrost", "home": "home", "image": "obraz", "imagelist": "lista obrazów", "images": "obrazy", "invalid": "nieprawidłowy", "invalid login": "nieprawidłowe logowanie", "is not writeable": "nie można zapisać", "kind": "typ", "language": "język", "layout": "układ", "list": "lista", "loading": "ładowanie", "login": "login", "logout": "wyloguj", "matches found for": "znalezione dopasowania dla", "move": "przenieś", "name": "nazwa", "new file": "nowy plik", "new folder": "nowy folder", "new user": "nowy użytkownik", "open": "otwórz", "open in new tab": "otwórz w nowej karcie", "overlay": "narzuta", "password": "hasło", "quality": "jakość", "reload": "przeładowanie", "rename": "zmień nazwę", "resize and compress images": "zmieniać rozmiar i kompresować obrazy", "rows": "wiersze", "save": "zapisz", "select all": "wybierz wszystko", "selection mode": "tryb wyboru", "settings": "ustawienia", "show info": "pokaż informacje", "shuffle": "losowo", "size": "rozmiar", "sort": "sortowanie", "space": "odstępy", "uniform": "jednolity", "unzip": "rozpakuj", "upload": "wyślij", "use image": "uzyj obrazka", "username": "nazwa użytkownika", "width": "szerokość", "you were logged out": "zostałeś wylogowany", "zip": "zip", "zoom": "powiększ" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/pt.json ================================================ { "archive": "arquivo", "blocks": "blocos", "cancel": "cancelar", "columns": "colunas", "copied to clipboard": "copiado para a área de transferência", "copy": "copiar", "copy link": "copiar link", "copy links": "copiar ligações", "copy text": "copiar texto", "date": "data", "delete": "excluir", "details": "detalhes", "directory is empty": "a pasta está vazia", "download": "baixar", "duplicate": "duplicar", "error": "erro", "fail": "falha", "file": "arquivo", "files": "arquivos", "filter": "filtro", "folder": "pasta", "folders": "pastas", "from clipboard": "da área de transferência", "google maps": "google maps", "grid": "rede", "height": "altura", "home": "Início", "image": "imagem", "imagelist": "lista de imagens", "images": "imagens", "invalid": "inválido", "invalid login": "login inválido", "is not writeable": "não pode ser escrito", "kind": "tipo", "language": "idioma", "layout": "esquema", "list": "lista", "loading": "a carregar", "login": "iniciar sessão", "logout": "sair", "matches found for": "resultados encontrados para", "move": "mover", "name": "nome", "new file": "novo arquivo", "new folder": "nova pasta", "new user": "novo utilizador", "open": "abrir", "open in new tab": "abrir num novo separador", "overlay": "sobreposição", "password": "palavra-passe", "quality": "qualidade", "reload": "recarregar", "rename": "renomear", "resize and compress images": "redimensionar e compactar imagens", "rows": "linhas", "save": "salvar", "select all": "selecionar todos", "selection mode": "modo de seleção", "settings": "definições", "show info": "exibir informações", "shuffle": "embaralhar", "size": "tamanho", "sort": "ordenar", "space": "espaço", "uniform": "uniforme", "unzip": "descompactar os arquivos", "upload": "upload", "use image": "usar imagem", "username": "nome de utilizador", "width": "largura", "you were logged out": "foi terminada a sessão", "zip": "zip", "zoom": "ampliação" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/ro.json ================================================ { "archive": "arhivă", "blocks": "blocuri", "cancel": "anulează", "columns": "coloane", "copied to clipboard": "copiat în clipboard", "copy": "copiază", "copy link": "copiază legătură", "copy links": "copiere linkuri", "copy text": "copiază textul", "date": "data", "delete": "șterge", "details": "Detalii", "directory is empty": "directorul este gol", "download": "descarcă", "duplicate": "duplicați", "error": "eroare", "fail": "eșua", "file": "fișier", "files": "fișiere", "filter": "filtru", "folder": "dosar", "folders": "dosare", "from clipboard": "din clipboard", "google maps": "hărți google", "grid": "grilă", "height": "înălţime", "home": "acasă", "image": "imagine", "imagelist": "listă de imagini", "images": "imagini", "invalid": "invalid", "invalid login": "autentificare invalidă", "is not writeable": "nu se poate scrie", "kind": "fel", "language": "limba", "layout": "aspect", "list": "listă", "loading": "se încarcă", "login": "autentificare", "logout": "ieșire", "matches found for": "meciuri găsite pentru", "move": "mută", "name": "denumire", "new file": "fișier nou", "new folder": "folder nou", "new user": "utilizator nou", "open": "deschide", "open in new tab": "deschideți într-o filă nouă", "overlay": "acoperire", "password": "parolă", "quality": "calitate", "reload": "reîncărcați", "rename": "redenumește", "resize and compress images": "redimensionați și comprimați imaginile", "rows": "rânduri", "save": "salvează", "select all": "selectați toate", "selection mode": "modul de selecție", "settings": "setări", "show info": "afișați informații", "shuffle": "amesteca", "size": "dimensiune", "sort": "sortare", "space": "spaţiu", "uniform": "uniformă", "unzip": "decomprimă", "upload": "încarcă", "use image": "imagine", "username": "nume utilizator", "width": "lăţime", "you were logged out": "ați fost deconectat", "zip": "zip", "zoom": "zoom" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/ru.json ================================================ { "archive": "архив", "blocks": "блоки", "cancel": "отмена", "columns": "колонки", "copied to clipboard": "скопировано в буфер обмена", "copy": "копировать", "copy link": "копировать ссылку", "copy links": "копировать ссылки", "copy text": "копировать текст", "date": "по дате", "delete": "удалить", "details": "подробности", "directory is empty": "директория пуста", "download": "загрузка", "duplicate": "дублировать", "error": "ошибка", "fail": "ошибка", "file": "файл", "files": "файлы", "filter": "фильтр", "folder": "папка", "folders": "папок", "from clipboard": "из буфера обмена", "google maps": "google maps", "grid": "сетка", "height": "высота", "home": "home", "image": "изображение", "imagelist": "список изображений", "images": "фото", "invalid": "недопустимый", "invalid login": "недействительный логин", "is not writeable": "не доступен для записи", "kind": "тип", "language": "язык", "layout": "макет", "list": "список", "loading": "загрузка", "login": "войти", "logout": "выйти", "matches found for": "найдены совпадениядля", "move": "переместить", "name": "имя", "new file": "новый файл", "new folder": "новая папка", "new user": "новый пользователь", "open": "открыть", "open in new tab": "открыть в новой вкладке", "overlay": "наложение", "password": "пароль", "quality": "качественный", "reload": "перезагрузить", "rename": "переименовать", "resize and compress images": "изменять размер и сжимать изображения", "rows": "ряды", "save": "сохранить", "select all": "выбрать все", "selection mode": "режим выбора", "settings": "настройки", "show info": "показать информацию", "shuffle": "перетасовать", "size": "размер", "sort": "сортировать", "space": "отступы", "uniform": "равномерно", "unzip": "разархивировать", "upload": "загрузить", "use image": "изображение", "username": "имя пользователя", "width": "ширина", "you were logged out": "вы вышли из системы", "zip": "zip", "zoom": "увеличить" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/sk.json ================================================ { "archive": "archív", "blocks": "bloky", "cancel": "zrušiť", "columns": "stĺpce", "copied to clipboard": "skopírované do schránky", "copy": "kopírovať", "copy link": "skopírovať odkaz", "copy links": "kopírovať odkazy", "copy text": "skopírovať text", "date": "dátum", "delete": "zmazať", "details": "podrobnosti", "directory is empty": "zložka je prázdna", "download": "stiahnúť", "duplicate": "duplikovať", "error": "chyba", "fail": "zlyhanie", "file": "súbor", "files": "súbory", "filter": "filter", "folder": "priečinok", "folders": "zložky", "from clipboard": "zo schránky", "google maps": "Google mapy", "grid": "mriežka", "height": "výška", "home": "home", "image": "obrázok", "imagelist": "zoznam obrázkov", "images": "obrázky", "invalid": "neplatný", "invalid login": "neplatné prihlásenie", "is not writeable": "nie je zapisovateľný", "kind": "typ", "language": "jazyk", "layout": "rozloženie", "list": "list", "loading": "načítavam", "login": "prihlásiť sa", "logout": "odhlásiť", "matches found for": "nájdených výsledkov pre", "move": "presunúť", "name": "názov", "new file": "nový súbor", "new folder": "nový priečinok", "new user": "nový používateľ", "open": "otvoriť", "open in new tab": "otvoriť na novej karte", "overlay": "prekrytie", "password": "heslo", "quality": "kvality", "reload": "znovu načítať", "rename": "premenovať", "resize and compress images": "meniť veľkosť a komprimovať obrázky", "rows": "riadky", "save": "uložiť", "select all": "vybrať všetky", "selection mode": "režim výberu", "settings": "nastavenia", "show info": "zobraziť informácie", "shuffle": "zamiešať", "size": "veľkosť", "sort": "zoradiť", "space": "miesto", "uniform": "rovnomerne", "unzip": "rozbaliť", "upload": "nahrať", "use image": "použiť obrázok", "username": "užívateľské meno", "width": "šírka", "you were logged out": "boli ste odhlásení", "zip": "ZIP", "zoom": "priblížiť" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/sl.json ================================================ { "archive": "arhiv", "blocks": "bloki", "cancel": "preklicati", "columns": "stolpci", "copied to clipboard": "kopiranje v odložišče", "copy": "kopiranje", "copy link": "kopiraj povezavo", "copy links": "kopiranje povezav", "copy text": "kopiranje besedila", "date": "datum", "delete": "izbriši", "details": "podrobnosti", "directory is empty": "imenik je prazen", "download": "prenesi", "duplicate": "podvojitev", "error": "napaka", "fail": "neuspešno", "file": "datoteka", "files": "datoteke", "filter": "filter", "folder": "mapa", "folders": "mape", "from clipboard": "iz odložišča", "google maps": "zemljevidi Google", "grid": "mreža", "height": "višina", "home": "home", "image": "slika", "imagelist": "seznam slik", "images": "slike", "invalid": "neveljavno", "invalid login": "Nepravilna prijava", "is not writeable": "ni mogoče zapisovati", "kind": "vrsta", "language": "jezik", "layout": "postavitev", "list": "seznam", "loading": "nalaganje", "login": "prijava", "logout": "odjava", "matches found for": "Najdene zadetke za", "move": "premakni", "name": "ime", "new file": "nova datoteka", "new folder": "nova mapa", "new user": "nov uporabnik", "open": "odprite", "open in new tab": "odprite v novem zavihku", "overlay": "prekrivanje", "password": "geslo", "quality": "kakovost", "reload": "ponovno naložite", "rename": "preimenovanje", "resize and compress images": "spreminjanje velikosti in stiskanje slik", "rows": "vrstice", "save": "shranite", "select all": "izberite vse", "selection mode": "način izbire", "settings": "nastavitve", "show info": "Prikaži informacije", "shuffle": "premešati", "size": "velikost", "sort": "razvrstiti", "space": "prostor", "uniform": "enotna", "unzip": "Razpakiraj", "upload": "naložite", "use image": "uporaba slike", "username": "uporabniško ime", "width": "širina", "you were logged out": "bili ste odjavljeni", "zip": "zip", "zoom": "povečava" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/sv.json ================================================ { "archive": "arkiv", "blocks": "block", "cancel": "avbryt", "columns": "kolumner", "copied to clipboard": "kopieras till urklipp", "copy": "kopiera", "copy link": "kopiera länk", "copy links": "kopiera länkar", "copy text": "kopiera text", "date": "datum", "delete": "radera", "details": "detaljer", "directory is empty": "foldern är tom", "download": "ladda ner", "duplicate": "duplicera", "error": "error", "fail": "misslyckades", "file": "fil", "files": "filer", "filter": "filter", "folder": "mapp", "folders": "mappar", "from clipboard": "från urklipp", "google maps": "google maps", "grid": "rutnät", "height": "höjd", "home": "hem", "image": "bild", "imagelist": "bildlista", "images": "bilder", "invalid": "ogiltigt", "invalid login": "ogiltig inloggning", "is not writeable": "är inte skrivbar", "kind": "sort", "language": "språk", "layout": "design", "list": "lista", "loading": "laddar", "login": "logga in", "logout": "logga ut", "matches found for": "träffar hittade för", "move": "flytta", "name": "namn", "new file": "ny fil", "new folder": "ny mapp", "new user": "ny användare", "open": "öppna", "open in new tab": "öppna i ny flik", "overlay": "överlägg", "password": "Lösenord", "quality": "kvalitet", "reload": "ladda om", "rename": "döp om", "resize and compress images": "ändra storlek och komprimera bilder", "rows": "rader", "save": "spara", "select all": "välj alla", "selection mode": "urvalsläge", "settings": "Inställningar", "show info": "visa info", "shuffle": "blanda", "size": "storlek", "sort": "sortera", "space": "utrymme", "uniform": "enhetlig", "unzip": "packa upp", "upload": "ladda upp", "use image": "använd bild", "username": "Användarnamn", "width": "bredd", "you were logged out": "du var utloggad", "zip": "zip", "zoom": "zooma" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/th.json ================================================ { "archive": "", "blocks": "บล็อก", "cancel": "ยกเลิก", "columns": "คอลัมน์", "copied to clipboard": "", "copy": "คัดลอก", "copy link": "คัดลอกลิงค์", "copy links": "", "copy text": "คัดลอกข้อความ", "date": "วันที่", "delete": "ลบ", "details": "รายละเอียด", "directory is empty": "ไดเรกทอรีว่างเปล่า", "download": "ดาวโหลด", "duplicate": "ทำสำเนา", "error": "ข้อผิดพลาด", "fail": "ล้มเหลว", "file": "ไฟล์", "files": "ไฟล์", "filter": "ค้นหา", "folder": "โฟลเดอร์", "folders": "โฟลเดอร์", "from clipboard": "", "google maps": "google maps", "grid": "กริด", "height": "ความสูง", "home": "", "image": "", "imagelist": "รายการภาพ", "images": "ภาพ", "invalid": "", "invalid login": "การเข้าสู่ระบบไม่ถูกต้อง", "is not writeable": "", "kind": "หมวดหมู่", "language": "ภาษา", "layout": "เลย์เอาต์", "list": "รายการ", "loading": "กำลังโหลด", "login": "เข้าสู่ระบบ", "logout": "ออกจากระบบ", "matches found for": "พบรายการที่ตรงกันสำหรับ", "move": "ย้าย", "name": "ชื่อ", "new file": "สร้างไฟล์ใหม่", "new folder": "สร้างแฟ้มใหม่", "new user": "ผู้ใช้ใหม่", "open": "เปิด", "open in new tab": "เปิดในแท็บใหม่", "overlay": "การซ้อนทับ", "password": "รหัสผ่าน", "quality": "คุณภาพ", "reload": "โหลดซ้ำ", "rename": "เปลี่ยนชื่อ", "resize and compress images": "ปรับขนาดและบีบอัดภาพ", "rows": "แถว", "save": "บันทึก", "select all": "", "selection mode": "", "settings": "การตั้งค่า", "show info": "แสดงข้อมูล", "shuffle": "สุ่ม", "size": "ขนาด", "sort": "เรียงลำดับ", "space": "ช่องว่าง", "uniform": "เสมอกัน", "unzip": "แตก zip", "upload": "อัพโหลด", "use image": "ใช้ภาพ", "username": "ชื่อผู้ใช้", "width": "ความกว้าง", "you were logged out": "คุณออกจากระบบแล้ว", "zip": null, "zoom": "ซูม" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/tr.json ================================================ { "archive": "arşiv", "blocks": "bloklar", "cancel": "iptal et", "columns": "sütunlar", "copied to clipboard": "panoya kopyalandı", "copy": "kopya", "copy link": "bağlantıyı kopyala", "copy links": "kopya bağlantıları", "copy text": "metin kopyala", "date": "Tarih", "delete": "silme", "details": "Detaylar", "directory is empty": "dizin boş", "download": "İndir", "duplicate": "çoğaltmak", "error": "hata", "fail": "başarısız", "file": "dosya", "files": "dosyalar", "filter": "filtre", "folder": "klasör", "folders": "klasörler", "from clipboard": "panodan", "google maps": "google haritalar", "grid": "ızgara", "height": "yükseklik", "home": "ev", "image": "görüntü", "imagelist": "imagelist", "images": "görüntüler", "invalid": "geçersiz", "invalid login": "geçersi̇z oturum açma", "is not writeable": "yazılabilir değil", "kind": "nazik", "language": "DİL", "layout": "düzen", "list": "Liste", "loading": "yükleme", "login": "giriş", "logout": "oturum kapatma", "matches found for": "için eşleşmeler bulundu", "move": "hareket et", "name": "isim", "new file": "yeni dosya", "new folder": "yeni klasör", "new user": "yeni kullanıcı", "open": "açık", "open in new tab": "yeni sekmede aç", "overlay": "kaplama", "password": "şifre", "quality": "Kalite", "reload": "yeniden yükle", "rename": "yeniden adlandır", "resize and compress images": "görüntüleri yeniden boyutlandırma ve sıkıştırma", "rows": "sıralar", "save": "Kaydet", "select all": "tümünü seç", "selection mode": "seçim modu", "settings": "ayarlar", "show info": "gösteri̇ bi̇lgi̇si̇", "shuffle": "shuffle", "size": "boyut", "sort": "sırala", "space": "uzay", "uniform": "üniforma", "unzip": "unzip", "upload": "Yükle", "use image": "görüntü kullan", "username": "kullanıcı adı", "width": "genişlik", "you were logged out": "oturumunuz kapatıldı", "zip": "zip", "zoom": "yakınlaştırma" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/uk.json ================================================ { "archive": "архів", "blocks": "блоки", "cancel": "скасувати", "columns": "колонки", "copied to clipboard": "скопійовано до буфера обміну", "copy": "копія", "copy link": "скопіювати посилання", "copy links": "скопіювати посилання", "copy text": "скопіювати текст", "date": "дата", "delete": "видалити", "details": "деталі", "directory is empty": "каталог порожній", "download": "завантажити", "duplicate": "дублювати", "error": "помилка", "fail": "невдача", "file": "файл", "files": "файли", "filter": "фільтр", "folder": "папка", "folders": "папки", "from clipboard": "з буфера обміну", "google maps": "карти Google", "grid": "сітка", "height": "висота", "home": "домашній", "image": "зображення", "imagelist": "список зображень", "images": "зображення", "invalid": "невірне", "invalid login": "невірний логін", "is not writeable": "не доступний для запису", "kind": "вид", "language": "мова", "layout": "макет", "list": "список", "loading": "завантаження", "login": "логін", "logout": "вихід", "matches found for": "знайдено збігів за запитом", "move": "переміщення", "name": "ім'я", "new file": "новий файл", "new folder": "нова папка", "new user": "новий користувач", "open": "відкрити", "open in new tab": "відкрити в новій вкладці", "overlay": "накладання", "password": "пароль", "quality": "якість", "reload": "перезавантажити", "rename": "перейменувати", "resize and compress images": "змінити розмір і стиснути зображення", "rows": "ряди", "save": "зберегти", "select all": "вибрати всі", "selection mode": "режим вибору", "settings": "налаштування", "show info": "показати інформацію", "shuffle": "перетасувати", "size": "розмір", "sort": "сортування", "space": "проміжок", "uniform": "рівномірний", "unzip": "розархівувати", "upload": "завантажити", "use image": "використовувати зображення", "username": "ім'я користувача", "width": "ширина", "you were logged out": "ви вийшли з системи", "zip": "zip", "zoom": "збільшити" } ================================================ FILE: _files/assets/files.photo.gallery@0.15.3/lang/zh.json ================================================ { "archive": "存档", "blocks": "平铺", "cancel": "取消", "columns": "瀑布流", "copied to clipboard": "复制到剪贴板", "copy": "复制", "copy link": "复制链接", "copy links": "复制链接", "copy text": "复制文字", "date": "日期", "delete": "删除", "details": "详情", "directory is empty": "没有文件", "download": "下载", "duplicate": "复制", "error": "错误", "fail": "失败", "file": "文件", "files": "文件", "filter": "过滤", "folder": "文件夹", "folders": "文件夹", "from clipboard": "从剪贴板", "google maps": "地图", "grid": "格子", "height": "高度", "home": "主页", "image": "图像", "imagelist": "图片列表", "images": "图片", "invalid": "无效", "invalid login": "登录无效", "is not writeable": "不可写", "kind": "类型", "language": "语言", "layout": "布局", "list": "列表", "loading": "加载中", "login": "登录", "logout": "退出", "matches found for": "匹配项", "move": "移动", "name": "文件名", "new file": "新文件", "new folder": "新文件夹", "new user": "新用户", "open": "打开", "open in new tab": "新窗口打开", "overlay": "水印", "password": "密码", "quality": "质量", "reload": "重新加载", "rename": "重命名", "resize and compress images": "调整大小和压缩图像", "rows": "自适应", "save": "保存", "select all": "全部选择", "selection mode": "选择模式", "settings": "设置", "show info": "更多信息", "shuffle": "随机", "size": "大小", "sort": "排序", "space": "间距", "uniform": "填充", "unzip": "解压", "upload": "上传", "use image": "使用图片", "username": "用户名", "width": "宽度", "you were logged out": "您已退出登录", "zip": "压缩", "zoom": "缩放" } ================================================ FILE: _files/assets/filesize@9.0.11/LICENSE ================================================ Copyright (c) 2024, Jason Mulligan All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of filesize nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================ FILE: _files/assets/flag-icons@6.6.4/LICENSE ================================================ The MIT License (MIT) Copyright (c) 2013 Panayiotis Lipiridis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/headroom.js@0.12.0/LICENSE ================================================ The MIT License (MIT) Copyright (c) 2013 Nick Williams Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/hls.js@1.6.13/LICENSE.txt ================================================ Copyright (c) 2017 Dailymotion (http://www.dailymotion.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. src/remux/mp4-generator.js and src/demux/exp-golomb.ts implementation in this project are derived from the HLS library for video.js (https://github.com/videojs/videojs-contrib-hls) That work is also covered by the Apache 2 License, following copyright: Copyright (c) 2013-2015 Brightcove THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/js-file-downloader@1.1.25/LICENSE ================================================ MIT License Copyright (c) 2019 Alessandro Pellizzari Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/jsmediatags@3.9.7/LICENSE.md ================================================ [BSD License](http://opensource.org/licenses/BSD-3-Clause) Copyright (c) 2009 Opera Software ASA Copyright (c) 2015 António Afonso Copyright (c) 2008 Jacob Seidelin, http://blog.nihilogic.dk/ Copyright (c) 2010 Joshua Kifer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name Facebook nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================ FILE: _files/assets/jszip@3.10.1/LICENSE.markdown ================================================ JSZip is dual licensed. At your choice you may use it under the MIT license *or* the GPLv3 license. The MIT License =============== Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. GPL version 3 ============= GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS ================================================ FILE: _files/assets/marked-base-url@1.1.6/LICENSE ================================================ MIT License Copyright (c) 2021 @markedjs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/marked@15.0.11/LICENSE.md ================================================ # License information ## Contribution License Agreement If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work. `` ## Marked Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/) Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ## Markdown Copyright © 2004, John Gruber http://daringfireball.net/ All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. ================================================ FILE: _files/assets/pannellum@2.5.6/LICENSE ================================================ Copyright (c) 2011-2024 Matthew Petroff Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/plyr@3.8.3/LICENSE.md ================================================ The MIT License (MIT) Copyright (c) 2017 Sam Potts Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/plyr@3.8.3/dist/plyr.css ================================================ @charset "UTF-8";@keyframes plyr-progress{to{background-position:25px 0;background-position:var(--plyr-progress-loading-size,25px) 0}}@keyframes plyr-popup{0%{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{0%{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:inherit;font-family:var(--plyr-font-family,inherit);font-variant-numeric:tabular-nums;font-weight:400;font-weight:var(--plyr-font-weight-regular,400);line-height:1.7;line-height:var(--plyr-line-height,1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow .3s ease;z-index:0}.plyr audio,.plyr iframe,.plyr video{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui :after,.plyr--full-ui :before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:#4a5464;background:var(--plyr-badge-background,#4a5464);border-radius:2px;border-radius:var(--plyr-badge-border-radius,2px);color:#fff;color:var(--plyr-badge-text-color,#fff);font-size:9px;font-size:var(--plyr-font-size-badge,9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in .3s ease;bottom:0;display:none;font-size:13px;font-size:var(--plyr-font-size-small,13px);left:0;padding:10px;padding:var(--plyr-control-spacing,10px);position:absolute;text-align:center;transition:transform .4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width:480px){.plyr__captions{font-size:15px;font-size:var(--plyr-font-size-base,15px);padding:20px;padding:calc(var(--plyr-control-spacing, 10px)*2)}}@media (min-width:768px){.plyr__captions{font-size:18px;font-size:var(--plyr-font-size-large,18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(-40px);transform:translateY(calc(var(--plyr-control-spacing, 10px)*-4))}.plyr__caption{background:#000c;background:var(--plyr-captions-background,#000c);border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#fff;color:var(--plyr-captions-text-color,#fff);line-height:185%;padding:.2em .5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:#0000;border:0;border-radius:4px;border-radius:var(--plyr-control-radius,4px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;padding:calc(var(--plyr-control-spacing, 10px)*.7);position:relative;transition:all .1s ease-in-out}.plyr__control svg{display:block;fill:currentColor;height:18px;height:var(--plyr-control-icon-size,18px);pointer-events:none;width:18px;width:var(--plyr-control-icon-size,18px)}.plyr__control:focus{outline:0}.plyr__control:focus-visible{outline:2px dashed #00b2ff;outline:2px dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:2px}a.plyr__control{text-decoration:none}.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control.plyr__control--pressed .label--not-pressed,.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,a.plyr__control:after,a.plyr__control:before{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:2.5px;margin-left:calc(var(--plyr-control-spacing, 10px)/4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:2.5px;padding-left:calc(var(--plyr-control-spacing, 10px)/4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 5px;padding:0 calc(var(--plyr-control-spacing, 10px)/2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time,.plyr__controls .plyr__controls__item.plyr__time:first-child{padding-left:0}.plyr [data-plyr=airplay],.plyr [data-plyr=captions],.plyr [data-plyr=fullscreen],.plyr [data-plyr=pip],.plyr__controls:empty{display:none}.plyr--airplay-supported [data-plyr=airplay],.plyr--captions-enabled [data-plyr=captions],.plyr--fullscreen-enabled [data-plyr=fullscreen],.plyr--pip-supported [data-plyr=pip]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform .3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup .2s ease;background:#ffffffe6;background:var(--plyr-menu-background,#ffffffe6);border-radius:8px;border-radius:var(--plyr-menu-radius,8px);bottom:100%;box-shadow:0 1px 2px #00000026;box-shadow:var(--plyr-menu-shadow,0 1px 2px #00000026);color:#4a5464;color:var(--plyr-menu-color,#4a5464);font-size:15px;font-size:var(--plyr-font-size-base,15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.plyr__menu__container:after{border:4px solid #0000;border-top-color:#ffffffe6;border:var(--plyr-menu-arrow-size,4px) solid #0000;border-top-color:var(--plyr-menu-background,#ffffffe6);content:"";height:0;position:absolute;right:14px;right:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7 - var(--plyr-menu-arrow-size, 4px)/2);top:100%;width:0}.plyr__menu__container [role=menu]{padding:7px;padding:calc(var(--plyr-control-spacing, 10px)*.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:#4a5464;color:var(--plyr-menu-color,#4a5464);display:flex;font-size:13px;font-size:var(--plyr-font-size-menu,var(--plyr-font-size-small,13px));padding:4.66667px 10.5px;padding:calc(var(--plyr-control-spacing, 10px)*.7/1.5) calc(var(--plyr-control-spacing, 10px)*.7*1.5);-webkit-user-select:none;user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control:after{border:4px solid #0000;border:var(--plyr-menu-item-arrow-size,4px) solid #0000;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:28px;padding-right:calc(var(--plyr-control-spacing, 10px)*.7*4)}.plyr__menu__container .plyr__control--forward:after{border-left-color:#728197;border-left-color:var(--plyr-menu-arrow-color,#728197);right:6.5px;right:calc(var(--plyr-control-spacing, 10px)*.7*1.5 - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward:focus-visible:after,.plyr__menu__container .plyr__control--forward:hover:after{border-left-color:initial}.plyr__menu__container .plyr__control--back{font-weight:400;font-weight:var(--plyr-font-weight-regular,400);margin:7px;margin:calc(var(--plyr-control-spacing, 10px)*.7);margin-bottom:3.5px;margin-bottom:calc(var(--plyr-control-spacing, 10px)*.7/2);padding-left:28px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7*4);position:relative;width:calc(100% - 14px);width:calc(100% - var(--plyr-control-spacing, 10px)*.7*2)}.plyr__menu__container .plyr__control--back:after{border-right-color:#728197;border-right-color:var(--plyr-menu-arrow-color,#728197);left:6.5px;left:calc(var(--plyr-control-spacing, 10px)*.7*1.5 - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back:before{background:#dcdfe5;background:var(--plyr-menu-back-border-color,#dcdfe5);box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color,#fff);content:"";height:1px;left:0;margin-top:3.5px;margin-top:calc(var(--plyr-control-spacing, 10px)*.7/2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back:focus-visible:after,.plyr__menu__container .plyr__control--back:hover:after{border-right-color:initial}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:7px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7)}.plyr__menu__container .plyr__control[role=menuitemradio]:after,.plyr__menu__container .plyr__control[role=menuitemradio]:before{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]:before{background:#0000001a;content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;margin-right:var(--plyr-control-spacing,10px);transition:all .3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]:after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:before{background:#00b2ff;background:var(--plyr-control-toggle-checked-background,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio]:focus-visible:before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover:before{background:#23282f1a}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:-5px;margin-right:calc(var(--plyr-control-spacing, 10px)*.7*-1 - -2px);overflow:hidden;padding-left:24.5px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7*3.5);pointer-events:none}.plyr--full-ui input[type=range]{appearance:none;background:#0000;border:0;border-radius:26px;border-radius:calc(var(--plyr-range-thumb-height, 13px)*2);color:#00b2ff;color:var(--plyr-range-fill-background,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));display:block;height:19px;height:calc(var(--plyr-range-thumb-active-shadow-width, 3px)*2 + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:#0000;background-image:linear-gradient(90deg,currentColor 0,#0000 0);background-image:linear-gradient(to right,currentColor var(--value,0),#0000 var(--value,0));border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-webkit-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-webkit-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-webkit-slider-thumb{appearance:none;background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:13px;height:var(--plyr-range-thumb-height,13px);margin-top:-4px;margin-top:calc((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px))/2*-1);position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-track{background:#0000;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-moz-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:13px;height:var(--plyr-range-thumb-height,13px);position:relative;-moz-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px)}.plyr--full-ui input[type=range]::-ms-track{color:#0000}.plyr--full-ui input[type=range]::-ms-fill-upper,.plyr--full-ui input[type=range]::-ms-track{background:#0000;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:#0000;background:currentColor;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:13px;height:var(--plyr-range-thumb-height,13px);margin-top:0;position:relative;-ms-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]:focus-visible::-webkit-slider-runnable-track{outline:2px dashed #00b2ff;outline:2px dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:2px}.plyr--full-ui input[type=range]:focus-visible::-moz-range-track{outline:2px dashed #00b2ff;outline:2px dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:2px}.plyr--full-ui input[type=range]:focus-visible::-ms-track{outline:2px dashed #00b2ff;outline:2px dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:2px}.plyr__poster{background-color:#000;background-color:var(--plyr-video-background,var(--plyr-video-background,#000));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__time+.plyr__time:before{content:"⁄";margin-right:10px;margin-right:var(--plyr-control-spacing,10px)}@media (max-width:767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:#fff;background:var(--plyr-tooltip-background,#fff);border-radius:5px;border-radius:var(--plyr-tooltip-radius,5px);bottom:100%;box-shadow:0 1px 2px #00000026;box-shadow:var(--plyr-tooltip-shadow,0 1px 2px #00000026);color:#4a5464;color:var(--plyr-tooltip-color,#4a5464);font-size:13px;font-size:var(--plyr-font-size-small,13px);font-weight:400;font-weight:var(--plyr-font-weight-regular,400);left:50%;line-height:1.3;margin-bottom:10px;margin-bottom:calc(var(--plyr-control-spacing, 10px)/2*2);opacity:0;padding:5px 7.5px;padding:calc(var(--plyr-control-spacing, 10px)/2) calc(var(--plyr-control-spacing, 10px)/2*1.5);pointer-events:none;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2}.plyr__tooltip:before{border-left:4px solid #0000;border-left:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-right:4px solid #0000;border-right:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-top:4px solid #fff;border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,#fff);bottom:-4px;bottom:calc(var(--plyr-tooltip-arrow-size, 4px)*-1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:focus-visible .plyr__tooltip,.plyr .plyr__control:hover .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translateY(10px) scale(.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip:before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip:before{left:16px;left:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7)}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translateY(10px) scale(.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip:before{left:auto;right:16px;right:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7);transform:translateX(50%)}.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip{transform:translate(0) scale(1)}.plyr__progress{left:6.5px;left:calc(var(--plyr-range-thumb-height, 13px)*.5);margin-right:13px;margin-right:var(--plyr-range-thumb-height,13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:-6.5px;margin-left:calc(var(--plyr-range-thumb-height, 13px)*-.5);margin-right:-6.5px;margin-right:calc(var(--plyr-range-thumb-height, 13px)*-.5);width:calc(100% + 13px);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{left:0;max-width:120px;overflow-wrap:break-word}.plyr__progress__buffer{-webkit-appearance:none;background:#0000;border:0;border-radius:100px;height:5px;height:var(--plyr-range-track-height,5px);left:0;margin-top:-2.5px;margin-top:calc(var(--plyr-range-track-height, 5px)/2*-1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:#0000}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-webkit-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-moz-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;-ms-transition:width .2s ease;transition:width .2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg,#23282f99 25%,#0000 0,#0000 50%,#23282f99 0,#23282f99 75%,#0000 0,#0000);background-image:linear-gradient(-45deg,var(--plyr-progress-loading-background,#23282f99) 25%,#0000 25%,#0000 50%,var(--plyr-progress-loading-background,#23282f99) 50%,var(--plyr-progress-loading-background,#23282f99) 75%,#0000 75%,#0000);background-repeat:repeat-x;background-size:25px 25px;background-size:var(--plyr-progress-loading-size,25px) var(--plyr-progress-loading-size,25px);color:#0000}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:#ffffff40;background-color:var(--plyr-video-progress-buffered-background,#ffffff40)}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:#c1c8d199;background-color:var(--plyr-audio-progress-buffered-background,#c1c8d199)}.plyr__progress__marker{background-color:#fff;background-color:var(--plyr-progress-marker-background,#fff);border-radius:1px;height:5px;height:var(--plyr-range-track-height,5px);position:absolute;top:50%;transform:translate(-50%,-50%);width:3px;width:var(--plyr-progress-marker-width,3px);z-index:3}.plyr__volume{align-items:center;display:flex;position:relative}.plyr__volume input[type=range]{margin-left:5px;margin-left:calc(var(--plyr-control-spacing, 10px)/2);margin-right:5px;margin-right:calc(var(--plyr-control-spacing, 10px)/2);max-width:90px;min-width:60px;position:relative;z-index:2}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:#fff;background:var(--plyr-audio-controls-background,#fff);border-radius:inherit;color:#4a5464;color:var(--plyr-audio-control-color,#4a5464);padding:10px;padding:var(--plyr-control-spacing,10px)}.plyr--audio .plyr__control:focus-visible,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:#00b2ff;background:var(--plyr-audio-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));color:#fff;color:var(--plyr-audio-control-color-hover,#fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:#c1c8d199;background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:#c1c8d199;background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:#c1c8d199;background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #23282f1a;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #23282f1a;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #23282f1a;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--audio .plyr__progress__buffer{color:#c1c8d199;color:var(--plyr-audio-progress-buffered-background,#c1c8d199)}.plyr--video{overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));border-radius:inherit;height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio:16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:linear-gradient(#0000,#000000bf);background:var(--plyr-video-controls-background,linear-gradient(#0000,#000000bf));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:#fff;color:var(--plyr-video-control-color,#fff);left:0;padding:5px;padding:calc(var(--plyr-control-spacing, 10px)/2);padding-top:20px;padding-top:calc(var(--plyr-control-spacing, 10px)*2);position:absolute;right:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out;z-index:3}@media (min-width:480px){.plyr--video .plyr__controls{padding:10px;padding:var(--plyr-control-spacing,10px);padding-top:35px;padding-top:calc(var(--plyr-control-spacing, 10px)*3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control:focus-visible,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:#00b2ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));color:#fff;color:var(--plyr-video-control-color-hover,#fff)}.plyr__control--overlaid{background:#00b2ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));border:0;border-radius:100%;color:#fff;color:var(--plyr-video-control-color,#fff);display:none;left:50%;opacity:.9;padding:15px;padding:calc(var(--plyr-control-spacing, 10px)*1.5);position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:focus,.plyr__control--overlaid:hover{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:#ffffff40;background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:#ffffff40;background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:#ffffff40;background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--video .plyr__progress__buffer{color:#ffffff40;color:var(--plyr-video-progress-buffered-background,#ffffff40)}.plyr:fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0!important;height:100%;inset:0;margin:0;position:fixed;width:100%;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr__ads{border-radius:inherit;cursor:pointer;inset:0;overflow:hidden;position:absolute;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads:after{background:#23282f;border-radius:2px;bottom:10px;bottom:var(--plyr-control-spacing,10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:10px;right:var(--plyr-control-spacing,10px);z-index:3}.plyr__ads:empty:after{display:none}.plyr__cues{background:currentColor;display:block;height:5px;height:var(--plyr-range-track-height,5px);left:0;opacity:.8;position:absolute;top:50%;transform:translateY(-50%);width:3px;z-index:3}.plyr__preview-thumb{background-color:#fff;background-color:var(--plyr-tooltip-background,#fff);border-radius:8px;border-radius:var(--plyr-menu-radius,8px);bottom:100%;box-shadow:0 1px 2px #00000026;box-shadow:var(--plyr-tooltip-shadow,0 1px 2px #00000026);margin-bottom:10px;margin-bottom:calc(var(--plyr-control-spacing, 10px)/2*2);opacity:0;padding:3px;pointer-events:none;position:absolute;transform:translateY(10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0) scale(1)}.plyr__preview-thumb:before{border-left:4px solid #0000;border-left:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-right:4px solid #0000;border-right:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-top:4px solid #fff;border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,#fff);bottom:-4px;bottom:calc(var(--plyr-tooltip-arrow-size, 4px)*-1);content:"";height:0;left:calc(50% + var(--preview-arrow-offset));position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:7px;border-radius:calc(var(--plyr-menu-radius, 8px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img,.plyr__preview-thumb__image-container:after{height:100%;left:0;position:absolute;top:0;width:100%}.plyr__preview-thumb__image-container:after{border-radius:inherit;box-shadow:inset 0 0 0 1px #00000026;content:"";pointer-events:none}.plyr__preview-thumb__image-container img{max-height:none;max-width:none}.plyr__preview-thumb__time-container{background:linear-gradient(#0000,#000000bf);background:var(--plyr-video-controls-background,linear-gradient(#0000,#000000bf));border-bottom-left-radius:7px;border-bottom-left-radius:calc(var(--plyr-menu-radius, 8px) - 1px);border-bottom-right-radius:7px;border-bottom-right-radius:calc(var(--plyr-menu-radius, 8px) - 1px);bottom:0;left:0;line-height:1.1;padding:20px 6px 6px;position:absolute;right:0;z-index:3}.plyr__preview-thumb__time-container span{color:#fff;font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__preview-scrubbing{filter:blur(1px);height:100%;inset:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;transition:opacity .3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none!important}.plyr__sr-only{clip:rect(1px,1px,1px,1px);border:0!important;height:1px!important;overflow:hidden;padding:0!important;position:absolute!important;width:1px!important}.plyr [hidden]{display:none!important} ================================================ FILE: _files/assets/readme.txt ================================================ Self-hosted assets when using 'assets' option. Read more: https://www.files.gallery/docs/self-hosted-assets/ https://www.files.gallery/docs/config/#assets ================================================ FILE: _files/assets/screenfull@5.2.0/license ================================================ MIT License Copyright (c) Sindre Sorhus (https://sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/sweetalert2@11.19.1/LICENSE ================================================ The MIT License (MIT) Copyright (c) 2014 Tristan Edwards & Limon Monte Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/toastify-js@1.12.0/LICENSE ================================================ MIT License Copyright (c) 2018 apvarun Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/uppy@3.27.3/LICENSE ================================================ The MIT License (MIT) Copyright (c) 2018 Transloadit Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/assets/yall-js@3.2.0/LICENSE ================================================ Copyright (c) Jeremy Wagner (https://jeremywagner.me/) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: _files/config/config.php ================================================ '', //'root_url_path' => NULL, //'root_lock' => NULL, //'start_path' => false, //'username' => '', //'password' => '', //'load_images' => true, //'load_files_proxy_php' => false, //'load_images_max_filesize' => 1000000, //'image_resize_enabled' => true, //'image_resize_use_imagemagick' => false, //'image_resize_cache' => true, //'image_resize_cache_use_dir' => false, //'image_resize_dimensions' => 320, //'image_resize_dimensions_retina' => 480, //'image_resize_dimensions_allowed' => '', //'image_resize_quality' => 85, //'image_resize_function' => 'imagecopyresampled', //'image_resize_sharpen' => true, //'image_resize_memory_limit' => 256, //'image_resize_max_pixels' => 60000000, //'image_resize_min_ratio' => 1.5, //'image_resize_cache_direct' => false, //'folder_preview_image' => true, //'folder_preview_default' => '_filespreview.jpg', //'menu_enabled' => true, //'menu_max_depth' => 5, //'menu_sort' => 'name_asc', //'menu_cache_validate' => true, //'menu_load_all' => false, //'menu_recursive_symlinks' => true, //'layout' => 'rows', //'cache' => true, //'cache_key' => 0, //'clean_cache_interval' => 7, //'clean_cache_allow_manual' => false, //'image_cache_file' => 'cache.txt', //'image_cache_max_last_access_time' => 90, //'image_cache_validate_time' => true, //'storage_path' => '_files', //'files_include' => '', //'files_exclude' => '', //'dirs_include' => '', //'dirs_exclude' => '', //'allow_symlinks' => true, //'get_mime_type' => false, //'license_key' => '', //'download_dir' => 'browser', //'download_dir_cache' => 'dir', //'assets' => '', //'allow_all' => false, //'allow_upload' => false, //'allow_delete' => false, //'allow_rename' => false, //'allow_new_folder' => false, //'allow_new_file' => false, //'allow_duplicate' => false, //'allow_text_edit' => false, //'allow_zip' => false, //'allow_unzip' => false, //'allow_move' => false, //'allow_copy' => false, //'allow_download' => true, //'allow_mass_download' => false, //'allow_mass_copy_links' => false, //'allow_settings' => false, //'allow_check_updates' => false, //'allow_tests' => true, //'allow_tasks' => false, //'demo_mode' => false, //'upload_allowed_file_types' => '', //'upload_max_filesize' => 0, //'upload_exists' => 'increment', //'ffmpeg_path' => 'ffmpeg', //'imagemagick_path' => 'convert', //'imagemagick_prefer_imagick' => true, //'imagemagick_image_types' => 'heif, heic, tiff, tif, psd, dng', //'use_google_docs_viewer' => false, //'lang_default' => 'en', //'lang_auto' => true, //'index_cache' => false, ]; ================================================ FILE: _files/plugins/files.tasks.php ================================================ = 0.9.0 */ // Files Gallery tasks plugin, allows you to pre-create cache, clear cache, and more ... // this is not yet a public plugin ... ask in forum.files.gallery if you want to use and have questions // index.php?action=tasks&task=TASKNAME // EXAMPLE: index.php?action=tasks&task=clear_cache&images // TASKS: create_cache, clear_cache, create_html, download_assets // [create_cache] / menu / folders / images / all / force / dir / ignore_max_depth / time_limit // [clear_cache] / menu / folders / images / all / force / time_limit // [create_html] // [download_assets] // never cache header('expires: 0'); header('cache-control: no-cache, no-store, must-revalidate, max-age=0'); header('cache-control: post-check=0, pre-check=0', false); header('pragma: no-cache'); // block direct access if(!class_exists('Config')) exit('ERROR: Tasks plugin cannot be accessed directly!'); // tasks Class tasks { // output public static $output = ''; public static $folders_processed = 0; public static $folders_count = 0; public static $images_processed = 0; public static $images_count = 0; public static $menu_processed = 0; public static $menu_count = 0; // task / 'create_cache', 'clear_cache', 'create_html' public static $task = false; // tasks public static $force = false; // for overwrite / does not apply for images public static $all = false; // run all tasks public static $menu = false; // menu cache public static $folders = false; // recursive folders cache public static $images = false; // rescursive images cache public static $video_thumbs = false; // part of 'images' task / required ffmpeg // resize_types public static $resize_types = []; // isset public static function isset($str){ return isset($_GET[$str]); } // output public static function add_output($prepend = '', $create = true, $count = 0, $total = 0){ $action = $create ? 'created' : 'removed'; $items = $total === 1 ? 'item' : 'items'; self::$output .= ($prepend ? $prepend . ' ': '') . 'cache items ' . $action . ': [' . $count . ' / ' . $total . ']' . ($total && tasks::$force ? ' (force ' . $action . ')' : '') . ($count === $total ? '' : ' (' . ($total - $count) . ' ' . $items . ' still valid)') . '
    '; } // set_memory_limit private function set_memory_limit(){ $memory_limit = U::get('memory_limit') ?: Config::get('image_resize_memory_limit'); if($memory_limit && is_numeric($memory_limit) && $memory_limit > -1 && function_exists('ini_get') && $memory_limit > (int) @ini_get('memory_limit') && (!function_exists('ini_set') || !@ini_set('memory_limit', $memory_limit . 'M'))) U::error('Failed to set memory limit [' . $memory_limit . ']'); } // process function __construct() { // allow_tasks $allow = Config::get('allow_tasks'); if($allow === false || (!empty($allow) && is_string($allow) && !self::isset($allow)) || (!$allow && !Config::$is_logged_in)) U::error('cannot!', 403); // assign task / 'create_cache', 'clear_cache', 'create_html' self::$task = U::get('task'); // check if tasks if available $tasks_array = ['create_cache', 'clear_cache', 'create_html', 'download_assets']; if(!in_array(self::$task, $tasks_array)) U::error('Invalid task ?task=' . (self::$task?:'') . '

    Available tasks

    [' . implode(', ', $tasks_array) . ']', 400); // temp / tasks plugin does not yet work with Files Gallery index >= 0.9.0 if(self::$task !== 'create_html') exit('Tasks plugin does not yet work with Files Gallery index >= 0.9.0.'); // assign tasks self::$force = self::isset('force'); self::$all = self::isset('all'); self::$menu = self::$all || self::isset('menu'); self::$folders = self::$all || self::isset('folders'); self::$images = self::$all || self::isset('images'); // assign memory limit (used only when resizing images) if(self::$images) self::set_memory_limit(); // increase time limit ?time_limit=300 (300 seconds, useful when resizing massive amounts of images) $time_limit = U::get('time_limit'); if($time_limit) set_time_limit(intval($time_limit)); // get image resize types self::$resize_types = array_map(function($key){ $type = trim(strtolower($key)); return $type === 'jpg' ? 'jpeg' : $type; }, explode(',', Config::get('image_resize_types'))); // video thumbs array if ffmpeg supported self::$video_thumbs = Config::get('video_thumbs') && Config::get('video_ffmpeg_path') && @function_exists('exec') && @exec('type -P ' . Config::get('video_ffmpeg_path')) ? ['mp4', 'mkv', 'ogv', 'm4v', 'webm'] : false; } } // init tasks new tasks(); // task: create_html [beta] if(tasks::$task === 'download_assets'){ // requirements if(empty(Config::$storagepath)) U::error('Config::$storagepath is empty!', 400); // storage_path must exist if(!class_exists('ZipArchive')) U::error('PHP ZipArchive class is required.', 400); // ZipArchive required to unzip downloaded assets.zip if(!is_writable(__DIR__)) U::error(__DIR__ . ' is not writeable. Can\'t download.', 400); // must be able to write assets.zip to current dir $assets_path = Config::$storagepath . '/assets'; if(file_exists($assets_path) && !is_writable($assets_path)) U::error("$assets_path is not writeable!", 400); // $assets_path must be writeable // attempt to download //$assets_download = 'http://files.test/npm/_files/assets/assets.zip'; $assets_download = 'https://cdn.jsdelivr.net/npm/files.photo.gallery@0.8.4/_files/assets/assets.zip'; $assets_downloaded = file_get_contents($assets_download); if(empty($assets_downloaded)) U::error("Can't download $assets_download", 400); // failed to download // write assets.zip temporarily into current __DIR__ $assets_zip = __DIR__ . '/assets.zip'; if(empty(file_put_contents($assets_zip, $assets_downloaded))) U::error("Failed to write $assets_zip", 400); // unzip into _files/assets/* $zip = new \ZipArchive; if(!$zip->open($assets_zip)) U::error("Failed to open $assets_zip", 400); $zip->extractTo($assets_path); $zip->close(); unlink($assets_zip); // delete downloaded zip // output tasks::$output = "Successfully downloaded assets into $assets_path."; // task: create_html [beta] } else if(tasks::$task === 'create_html'){ if(Config::$is_logged_in) U::error('Cannot create html when login is enabled. Pointless!', 400); $time = time(); $url = 'http' . (!empty($_SERVER['HTTPS']) ? 's' : '' ) . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'] . '?index_html=' . $time; $content = file_get_contents($url); if(!$content) U::error("Failed to execute file_get_contents('$url');", 500); $put = file_put_contents('index.html', '' . PHP_EOL . preg_replace('/\s+/', ' ', $content)); if(!$put) U::error("Failed to execute file_put_contents('$url');", 500); tasks::$output = "Successfully created index.html at $time"; // task: create_cache [beta] } else if(tasks::$task === 'create_cache') { // early exit if(!Config::get('cache')) exit('cache is disabled.'); // create folders and images if(tasks::$folders || tasks::$images) { // create cache loop function function create_cache($dir, $depth = 0){ // skip dir if(!is_readable($dir) || Path::is_exclude($dir, true)) return 0; // dir cache path tasks::$folders_count ++; $cache = get_dir_cache_path($dir); $cache_exists = file_exists($cache); $cache_recreate = tasks::$force || !$cache_exists ? true : false; $get_dir = tasks::$images || $cache_recreate ? true : false; // get dir if($get_dir){ // dir from cache or new $arr = $cache_recreate ? get_dir($dir, true) : json_decode(file_get_contents($cache), true); // resize images if(tasks::$images && Config::get('image_resize_enabled') && Config::get('image_resize_cache') && !empty($arr) && !empty($arr['files'])){ // $dirs = array(); $image_sizes = array(Config::get('image_resize_dimensions')); if(Config::$image_resize_dimensions_retina) $image_sizes[] = Config::$image_resize_dimensions_retina; foreach ($arr['files'] as $filename => $props) { if($props['filetype'] === 'dir'){ $dirs[] = root_absolute($props['path']); continue; } // video thumb if(tasks::$video_thumbs && isset($props['ext']) && in_array(strtolower($props['ext']), tasks::$video_thumbs)){ // get cache path $video_thumb_cache = get_image_cache_path(root_absolute($props['path']), 480, $props['filesize'], $props['mtime']); // attempt to create if video thumb does not exist if(!file_exists($video_thumb_cache)) { // ffmpeg command $cmd = escapeshellarg(Config::get('video_ffmpeg_path')) . ' -i ' . escapeshellarg(real_path(root_absolute($props['path']))) . ' -deinterlace -an -ss 1 -t 1 -vf "thumbnail,scale=480:320:force_original_aspect_ratio=increase,crop=480:320" -r 1 -y -f mjpeg ' . $video_thumb_cache . ' 2>&1'; // try to execute command @exec($cmd, $output, $result_code); // fail if result_code is anything else than 0 tasks::$output .= ($result_code ? 'failed to create thumbnail for video ' : 'Video thumbnail created for ') . $props['path'] . '
    '; } } // proceed if image if(!isset($props['image'])) continue; // exit if image type is not resize type if(!in_array(image_type_to_extension($props['image']['type'], false), tasks::$resize_types)) continue; // exif orientation $orientation = isset($props['image']['exif']['Orientation']) ? $props['image']['exif']['Orientation'] : 0; // original dimensions / get physical $original_width = $props['image'][($orientation > 4 && $orientation < 9 ? 'height' : 'width')]; $original_height = $props['image'][($orientation > 4 && $orientation < 9 ? 'width' : 'height')]; // image_resize_max_pixels early exit if(Config::get('image_resize_max_pixels') && $original_width * $original_height > Config::get('image_resize_max_pixels')) continue; // vars $type = $props['image']['type']; $path = root_absolute($props['path']); // loop image sizes foreach ($image_sizes as $index => $image_size) { // ratio $ratio = max($original_width, $original_height) / $image_size; if($ratio < max(Config::get('image_resize_min_ratio'), 1)) continue; // cache path $image_cache = get_image_cache_path($path, $image_size, $props['filesize'], $props['mtime']); $image_cache_exists = file_exists($image_cache); // skip if cache exists if($image_cache_exists){ tasks::$images_count ++; // create image acche } else { // image create $image = image_create_from($path, $type); if(!$image) break; // count tasks::$images_count ++; // Calculate new image dimensions. $new_width = round($original_width / $ratio); $new_height = round($original_height / $ratio); // new image $new_image = imagecreatetruecolor($new_width, $new_height); call_user_func(Config::get('image_resize_function'), $new_image, $image, 0, 0, 0, 0, $new_width, $new_height, $original_width, $original_height); // destroy original $image resource imagedestroy($image); // fix orientation according to exif exif_orientation($orientation, $new_image); // sharpen resized image if(Config::get('image_resize_sharpen')) sharpen_image($new_image); // save as cache if(imagejpeg($new_image, $image_cache, Config::get('image_resize_quality'))) tasks::$images_processed ++; // detroy $new_image resource imagedestroy($new_image); } // add image resize cache direct to $arr if($cache_recreate && Config::$image_resize_cache_direct) $arr['files'][$filename]['image']['resize' . $image_size] = get_url_path($image_cache); } } } // save json if($cache_recreate) { $json = empty($arr) ? '{}' : json_encode($arr, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_PARTIAL_OUTPUT_ON_ERROR); if(file_put_contents($cache, $json)) tasks::$folders_processed ++; } } // max depth if(!tasks::isset('ignore_max_depth') && Config::get('menu_max_depth') && $depth >= Config::get('menu_max_depth')) return; // subdirs if($get_dir){ if(!isset($dirs)){ $dirs = array(); if(isset($arr['files'])) foreach ($arr['files'] as $key => $val) if($val['filetype'] === 'dir') $dirs[] = root_absolute($val['path']); } // glob subdirs } else { $dirs = glob($dir . '/*', GLOB_NOSORT|GLOB_ONLYDIR); } // sub dirs if(!empty($dirs)) foreach($dirs as $dir) create_cache($dir, $depth + 1); } // start create cache loop $start_dir = U::get('dir'); if($start_dir){ $start_dir = real_path($start_dir); if(!$start_dir) U::error('Dir does not exist dir=' . U::get('dir') . '', 404); } create_cache($start_dir ?: Config::$root); } // create menu if(tasks::$menu) { $menu_cache_hash = get_menu_cache_hash(get_root_dirs()); $menu_cache_file = Config::$cachepath . DIRECTORY_SEPARATOR . 'menu' . DIRECTORY_SEPARATOR . $menu_cache_hash . '.json'; tasks::$menu_count = 1; // recreate menu if(tasks::$force || !get_valid_menu_cache($menu_cache_file)){ $menu_cache_arr = get_dirs(Config::$root); $menu_cache_json = empty($menu_cache_arr) ? '{}' : json_encode($menu_cache_arr, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_PARTIAL_OUTPUT_ON_ERROR); if(file_put_contents($menu_cache_file, $menu_cache_json)) tasks::$menu_processed ++; } } // output if(tasks::$menu) tasks::add_output('Menu', true, tasks::$menu_processed, tasks::$menu_count); if(tasks::$folders || tasks::$images) tasks::add_output('Folders', true, tasks::$folders_processed, tasks::$folders_count); if(tasks::$images) tasks::add_output('Images', true, tasks::$images_processed, tasks::$images_count); // clear cache [beta] / does not not use 'dir' } else if(tasks::$task === 'clear_cache'){ // get cache items function get_cache_items($dir, $ext){ $cache_path = Config::$cachepath . DIRECTORY_SEPARATOR . $dir; if(!file_exists($cache_path)) return array(); return glob($cache_path . '/*.' . $ext, GLOB_NOSORT); } // menu if(tasks::$menu){ $menu_cache_items = get_cache_items('menu', 'json'); tasks::$menu_count = count($menu_cache_items); if(tasks::$menu_count){ $menu_cache_hash = tasks::$force ? false : get_menu_cache_hash(get_root_dirs()); foreach ($menu_cache_items as $menu_cache_item) { if(tasks::$force || basename($menu_cache_item) !== $menu_cache_hash . '.json') { if(unlink($menu_cache_item)) tasks::$menu_processed ++; } } } tasks::add_output('Menu', false, tasks::$menu_processed, tasks::$menu_count); } // folders if(tasks::$folders){ $dirs_cache_items = get_cache_items('folders', 'json'); tasks::$folders_count = count($dirs_cache_items); if(tasks::$folders_count){ foreach ($dirs_cache_items as $dirs_cache_item) { if(tasks::$force || strpos(basename($dirs_cache_item), Config::$dirs_hash) !== 0) { if(unlink($dirs_cache_item)) tasks::$folders_processed ++; continue; } $dir_cache_content = file_get_contents($dirs_cache_item); if($dir_cache_content){ $dir_cache_json = json_decode($dir_cache_content, true); $dir_abs_path = root_absolute($dir_cache_json['path']); if(!file_exists($dir_abs_path) || $dir_cache_json['mtime'] !== filemtime($dir_abs_path)) { if(unlink($dirs_cache_item)) tasks::$folders_processed ++; } } } } tasks::add_output('Folders', false, tasks::$folders_processed, tasks::$folders_count); } // clear image cache / if(tasks::$images){ $image_cache_items = get_cache_items('images', 'jpg'); tasks::$images_count = count($image_cache_items); if(tasks::$images_count){ foreach ($image_cache_items as $image_cache_item) { if(tasks::$force){ if(unlink($image_cache_item)) tasks::$images_processed ++; continue; } $image_cache_item_arr = explode('.', basename($image_cache_item)); $resize_val = isset($image_cache_item_arr[3]) && is_numeric($image_cache_item_arr[3]) ? intval($image_cache_item_arr[3]) : false; if(!$resize_val || !in_array($resize_val, [Config::get('image_resize_dimensions'), Config::$image_resize_dimensions_retina])) { if(unlink($image_cache_item)) tasks::$images_processed ++; } } } tasks::add_output('Image', false, tasks::$images_processed, tasks::$images_count); } } // output U::header('Tasks'); if(!tasks::$output) U::error('No cache parameters selected [menu, folders, images, all]', 400); echo tasks::$output . '
    -
    Processed in ' . round((microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']), 2) . ' seconds.'; ================================================ FILE: _files/plugins/files.x3-login.php ================================================ user_config = array_replace(Config::$storageconfig, Config::$localconfig); // get X3 ['back']['panel'] config $config = $this->get_config(); // get DB login if config use_db if(!empty($config['use_db'])) { // include full x3 config for DB details include X3::path() . '/app/x3.config.inc.php'; // get full panel config $panel = X3Config::$config['back']['panel']; // new mysqli connection $mysqli = new mysqli($panel['db_host'], $panel['db_user'], $panel['db_pass'], $panel['db_name']); // mysqli connection error if(empty($mysqli) || $mysqli->connect_errno) U::error('Can\'t connect to X3 database.'); // fetch login row $row = mysqli_query($mysqli, 'select username, password from filemanager_db limit 1')->fetch_row(); // error missing username and/or password in database if(empty($row) || !is_array($row) || count($row) !== 2) U::error('Can\'t get username or password from database.'); // assign username and password from database $username = $row[0]; $password = $row[1]; // get non-db login / assign default 'admin' if empty } else { $username = !empty($config['username']) ? $config['username'] : 'admin'; $password = !empty($config['password']) ? $config['password'] : 'admin'; } // assume full filemanager permissions when X3 login plugin is present and used $this->set('allow_all', true); /*foreach ([ 'upload', 'delete', 'rename', 'new_folder', 'new_file', 'duplicate', 'text_edit', 'zip', 'unzip', 'move', 'copy', 'mass_download', 'mass_copy_links' ] as $key) $this->set("allow_$key", true);*/ // exclude .json files as we don't want these visible $this->set('files_exclude', '/\.json$/i'); // Assign demo_mode if X3 guest/guest or default admin/admin (because it's insecure) if($username === $password && in_array($username, ['guest', 'admin'])) $this->set('demo_mode', true); // assign username and password to Files Gallery config $this->set('username', $username); $this->set('password', $password); } // override Files Gallery config values, unless they are asigned in user config (config.php or _filesconfig.php) private function set($key, $value){ if(isset($this->user_config[$key])) return; Config::$config[$key] = $value; } // returns X3 ['back']['panel'] config array private function get_config(){ $path = X3::path() . '/config/config.user.json'; if(!file_exists($path) || !is_readable($path)) return []; $arr = json_decode(file_get_contents($path), true); return !empty($arr['back']['panel']) ? $arr['back']['panel'] : []; } } // new X3_login(); ================================================ FILE: css/files.css ================================================ :root{--z-index-sidebar-toggle: 2;--z-index-sidebar-bg: 3;--z-index-topbar: 3;--z-index-sidebar: 4;--z-index-dropdown-open: 1001;--z-index-modal: 1055;--z-index-uppy: 1056;--z-index-contextmenu: 1600;--z-index-tooltip: 3}.audioplayer-title,.drag-single,.modal-info-mime-text,.modal-title,.popup-date,.pswp__search,.files-grid .name,.files-rows .name,.columns-noinfo .name,.files-blocks .title,.files-blocks .name,.files-imagelist .title,.files-imagelist .name,.files-list .name,.ext-inner,.date,.sortbar-item-text,.crumb,.menu-a,.dropdown-header-text,.toastify-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pswp__container,.pswp__img,.pswp__counter,.pswp__share-modal,.files-a,.sortbar-item-text,.crumb-link,.menu-a,.dropdown-menu,.button-icon,.button,.uppy-Dashboard-browse,button,[type=button],[type=reset],[type=submit]{-webkit-user-select:none;user-select:none}.form-range,#search::-webkit-search-cancel-button,.input,.select{-webkit-appearance:none;-moz-appearance:none;appearance:none}.modal-info-date,.modal-info-permissions,.modal-info-mime,.modal-info-meta,.modal-info-exif,.license-feature,.exif-gps,.exif-Model{display:flex;flex-direction:row;align-items:center}.modal-info-meta>*:not(:first-child),.modal-info-exif>*:not(:first-child),.popup-owner>*:not(:first-child),.popup-location>*:not(:first-child),.popup-image-meta>*:not(:first-child),.popup-exif>*:not(:first-child),.files-imagelist .exif>*:not(:first-child){border-left:1px solid var(--divider-color, var(--border-color));margin-left:var(--divider-space, 0.8em);padding-left:var(--divider-space, 0.8em)}.modal-open.has-scrollbars,.has-scrollbars.popup-open,.has-scrollbars .uppy-Dashboard-isFixed,.swal2-shown.has-scrollbars{max-width:calc(100vw - var(--scrollbar-width, 0px))}.no-pointer{pointer-events:none}.modal,.pswp__caption-style-block:hover,.pswp__caption-style-gradient:hover,.pswp__caption-style-none:hover,.updating:after,.logging:after,.updated:after,.uppy-is-drag-over:after,.uppy-Dashboard-overlay,.swal2-backdrop-show{-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.modal,.pswp__item,.pswp__container,.pswp__zoom-wrap,.pswp,.pswp__bg,.pswp__scroll-wrap,.updating:after,.logging:after,.updated:after,.swal2-container{left:0;top:0;width:100vw;height:100%}@media(hover: hover){.modal-show:active:not(:has(>*:last-child:hover)),.swal2-container:active:not(:has(>*:last-child:hover)){opacity:.9}}#files-container.cm-active:before,#sidebar-menu.cm-active:before{animation:opacity .2s;content:"";position:absolute;display:inline-flex;width:100%;height:100%;z-index:2;pointer-events:none;border:5px dashed var(--text3);border-radius:3px}.modal-info-title:first-child:not(:last-child),.modal-info-headline:first-child:not(:last-child),.modal-info-name,.columns-info .name,.files-blocks .name,.files-imagelist .name,.files-list .name,.license-type-title,.license-title{font-weight:var(--font-weight-bold);letter-spacing:var(--font-weight-letter-spacing)}.pswp__caption,[data-tooltip],.svg-file-ext,.dropdown-menu,.alert,[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview,[data-theme=contrast] #topbar,[data-theme=contrast] .custom-section,[data-theme=contrast] .custom-footer-fixed,[data-theme=contrast] #sidebar,[data-theme=contrast] #sidebar-bg{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#topbar-info,.cm-s-one-dark,.toastify{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}*,::before,::after{box-sizing:border-box;background-repeat:no-repeat}:root{--font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-family-monospace: /*ui-monospace, */Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", /*'Courier New',*/ monospace;--font-size: 16px;--font-weight: 400;--line-height: 1.5;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-text-size-adjust:100%;text-size-adjust:100%;color:var(--text1);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);font-family:var(--font-family);text-rendering:optimizeLegibility}:root,body{margin:0;background-color:var(--surface1)}button,input,select,textarea{margin:0;font:inherit;color:inherit;background:none;border:none}textarea{resize:vertical}strong,b{font-weight:500}small{font-size:.8125em}iframe,img,video{max-width:100%;height:auto;border:0}img{image-orientation:from-image}svg{fill:currentColor}button,[type=button],[type=reset],[type=submit]{touch-action:manipulation;-webkit-appearance:button;cursor:pointer;outline:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-moz-focus-inner{padding:0;border-style:none}[aria-busy=true]{cursor:progress}[aria-disabled=true],[disabled],[readonly]{cursor:not-allowed}iframe{border:0}a{text-decoration:none;color:inherit}:root{--hue: 210;--hsl-primary-dark: var(--hue) 50% 45%;--hsl-primary-contrast: var(--hue) 45% 50%;--hsl-primary-light: var(--hue) 55% 55%;--text-base-lightness-light: 30%;--text1-light: hsl(var(--hue), 20%, var(--text-base-lightness-light));--text2-light: hsl(var(--hue), 17%, calc(var(--text-base-lightness-light) + 15%));--text3-light: hsl(var(--hue), 15%, calc(var(--text-base-lightness-light) + 30%));--surface-base-lightness-light: 98%;--surface1-light: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-light) + -8%));--surface2-light: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-light) + -3%));--surface3-light: hsl(var(--hue), 20%, var(--surface-base-lightness-light));--surface4-light: white;--surface-selected-light: hsl(var(--hue), 70%, 90%);--files-border-bottom-light: 0 1px 0 0 hsl(var(--hue), 20%, calc(var(--surface-base-lightness-light) + -12%));--img-placeholder-bg-light: url("data:image/svg+xml;utf8,");--color-danger-light: hsl(0, 60%, 55%);--color-info-light: var(--text1);--color-success-light: hsl(105, 30%, 50%);--popup-bg-light: black;--dropdown-shadow-light: 0 8px 25px -10px hsl(var(--hue), 60%, 10%);--rgb-theme-light: 255, 255, 255;--rgb-theme-invert-light: 0, 0, 0;--svg-file-bg-light: hsl(60, 17%, calc(var(--surface-base-lightness-light) - 12%));--svg-file-flip-light: hsl(52, 16%, calc(var(--surface-base-lightness-light) - 20%));--svg-file-icon-light: hsl(19, 13%, calc(var(--surface-base-lightness-light) - 27%));--svg-folder-bg-light: hsl(var(--hue), 45%, 55%);--svg-folder-fg-light: hsl(var(--hue), 50%, 65%);--svg-folder-bg-large-light: hsl(var(--hue), 50%, 65%);--svg-folder-fg-large-light: hsl(var(--hue), 55%, 75%);--text-base-lightness-dark: 80%;--text1-dark: hsl(var(--hue), 20%, var(--text-base-lightness-dark));--text2-dark: hsl(var(--hue), 17%, calc(var(--text-base-lightness-dark) + -15%));--text3-dark: hsl(var(--hue), 14%, calc(var(--text-base-lightness-dark) + -30%));--surface-base-lightness-dark: 8%;--surface1-dark: hsl(var(--hue), 20%, var(--surface-base-lightness-dark));--surface2-dark: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 2%));--surface3-dark: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 4%));--surface4-dark: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 6%));--surface-selected-dark: hsl(var(--hue), 40%, 20%);--files-border-bottom-dark: 0 0 0 0 transparent;--img-placeholder-bg-dark: url("data:image/svg+xml;utf8,");--color-danger-dark: hsl(0, 50%, 45%);--color-info-dark: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 12%));--color-success-dark: hsl(105, 30%, 45%);--popup-bg-dark: black;--dropdown-shadow-dark: 0 10px 40px -15px black;--rgb-theme-dark: 0, 0, 0;--rgb-theme-invert-dark: 255, 255, 255;--svg-file-bg-dark: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 10%));--svg-file-flip-dark: hsl(var(--hue), 18%, calc(var(--surface-base-lightness-dark) + 16%));--svg-file-icon-dark: hsl(var(--hue), 16%, calc(var(--surface-base-lightness-dark) + 32%));--svg-folder-bg-dark: hsl(var(--hue), 40%, 30%);--svg-folder-fg-dark: hsl(var(--hue), 35%, 40%);--svg-folder-bg-large-dark: hsl(var(--hue), 30%, 20%);--svg-folder-fg-large-dark: hsl(var(--hue), 25%, 28%);--surface-active: var(--surface3);--primary: hsl(var(--hue), 50%, 50%);--border-color: rgba(var(--rgb-theme-invert), .05);--select-color: hsl(var(--hue), 65%, 55%)}@supports(background-color: HSL(50 50% 50%/50%)){:root{--primary: hsl(var(--hsl-primary))}}@supports(background-color: HSL(50 50% 50%/50%)){:root{--border-color: hsl(var(--hue) 30% 50% / 15%)}}[data-theme=contrast]{--modal-surface: var(--surface4);--modal-box-shadow: 0 5px 35px -15px var(--surface1-dark);--modal-bg: hsl(var(--hue) 20% 14% / 85%);--dropdown-shadow: var(--dropdown-shadow-light);--files-svg-active-filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .1));--theme-dark-rotate: 45deg;--hsl-primary: var(--hsl-primary-contrast)}[data-theme=contrast] .cm-sidebar{--dropdown-shadow: var(--dropdown-shadow-dark)}[data-theme=light]{--modal-surface: var(--surface4);--modal-bg: hsl(var(--hue) 18% 78% / 80%);--modal-box-shadow: 0 5px 25px -15px hsl(var(--hue), 20%, 40%);--dropdown-shadow: var(--dropdown-shadow-light);--files-svg-active-filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .1));--theme-contrast-rotate: 45deg;--hsl-primary: var(--hsl-primary-light)}[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview{--modal-bg: hsl(var(--hue) 20% var(--surface-base-lightness-dark) / 90%);--modal-surface: hsl(var(--hue), 20%, calc(var(--surface-base-lightness-dark) + 7%));--modal-box-shadow: 0 5px 25px -15px black;--files-svg-active-filter: drop-shadow(0 7px 15px rgba(0, 0, 0, .25));--dropdown-shadow: var(--dropdown-shadow-dark);--theme-light-rotate: 45deg;--hsl-primary: var(--hsl-primary-dark)}[data-theme=light],[data-theme=contrast]{color-scheme:light;--text1: var(--text1-light);--text2: var(--text2-light);--text3: var(--text3-light);--surface1: var(--surface1-light);--surface2: var(--surface2-light);--surface3: var(--surface3-light);--surface4: var(--surface4-light);--surface-selected: var(--surface-selected-light);--files-border-bottom: var(--files-border-bottom-light);--img-placeholder-bg: var(--img-placeholder-bg-light);--color-danger: var(--color-danger-light);--color-info: var(--color-info-light);--color-success: var(--color-success-light);--popup-bg: var(--popup-bg-light);--rgb-theme: var(--rgb-theme-light);--rgb-theme-invert: var(--rgb-theme-invert-light);--svg-file-bg: var(--svg-file-bg-light);--svg-file-flip: var(--svg-file-flip-light);--svg-file-icon: var(--svg-file-icon-light);--svg-folder-bg: var(--svg-folder-bg-light);--svg-folder-fg: var(--svg-folder-fg-light);--svg-folder-bg-large: var(--svg-folder-bg-large-light);--svg-folder-fg-large: var(--svg-folder-fg-large-light);--type-default: hsl(var(--hue), 15%, 65%);--type-application: hsl(var(--hue), 65%, 55%);--type-archive: hsl(39, 76%, 60%);--hsl-audio: 21 80% 57%;--type-audio: hsl(var(--hsl-audio));--type-excel: hsl(135, 30%, 59%);--type-word: hsl(205, 84%, 59%);--type-pdf: hsl(359, 50%, 55%);--type-cd: hsl(15, 72%, 70%);--type-code: hsl(10, 69%, 62%);--type-text: hsl(210, 50%, 60%);--type-open_in_new: var(--type-text);--type-powerpoint: hsl(13, 65%, 51%);--type-font: hsl(286, 45%, 65%);--type-video-hsl: 357 79% 65%;--type-video: hsl(var(--type-video-hsl));--type-youtube: hsl(0, 90%, 55%);--type-vimeo: hsl(195, 83%, 51%);--type-image: hsl(92, 36%, 58%);--svg-image-text-bg: hsl(92, 32%, 50%);--svg-image-sun: hsl(48, 85%, 65%);--font-weight-bold: 500;--font-weight-letter-spacing: normal;--surface-list-hover: var(--surface1-light)}[data-theme=contrast],[data-theme=light]{--surface-base-lightness-dark: 12%;--text-base-lightness-dark: 84%}[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview,[data-theme=contrast] #topbar,[data-theme=contrast] .custom-section,[data-theme=contrast] .custom-footer-fixed,[data-theme=contrast] #sidebar,[data-theme=contrast] #sidebar-bg{color-scheme:dark;color:var(--text1);--text1: var(--text1-dark);--text2: var(--text2-dark);--text3: var(--text3-dark);--surface1: var(--surface1-dark);--surface2: var(--surface2-dark);--surface3: var(--surface3-dark);--surface4: var(--surface4-dark);--surface-selected: var(--surface-selected-dark);--files-border-bottom: var(--files-border-bottom-dark);--img-placeholder-bg: var(--img-placeholder-bg-dark);--color-danger: var(--color-danger-dark);--color-info: var(--color-info-dark);--color-success: var(--color-success-dark);--popup-bg: var(--popup-bg-dark);--rgb-theme: var(--rgb-theme-dark);--rgb-theme-invert: var(--rgb-theme-invert-dark);--svg-file-bg: var(--svg-file-bg-dark);--svg-file-flip: var(--svg-file-flip-dark);--svg-file-icon: var(--svg-file-icon-dark);--svg-folder-bg: var(--svg-folder-bg-dark);--svg-folder-fg: var(--svg-folder-fg-dark);--svg-folder-bg-large: var(--svg-folder-bg-large-dark);--svg-folder-fg-large: var(--svg-folder-fg-large-dark);--type-default: hsl(var(--hue), 20%, 40%);--type-application: hsl(var(--hue), 50%, 55%);--type-archive: hsl(39, 51%, 57%);--hsl-audio: 21 60% 55%;--type-audio: hsl(var(--hsl-audio));--type-excel: hsl(135, 20%, 49%);--type-word: hsl(205, 54%, 49%);--type-pdf: hsl(359, 39%, 50%);--type-cd: hsl(15, 42%, 50%);--type-code: hsl(10, 45%, 50%);--type-text: hsl(210, 40%, 50%);--type-open_in_new: var(--type-text);--type-powerpoint: hsl(13, 50%, 51%);--type-font: hsl(286, 30%, 55%);--type-video-hsl: 357 53% 56%;--type-video: hsl(var(--type-video-hsl));--type-youtube: hsl(0, 60%, 50%);--type-vimeo: hsl(195, 60%, 50%);--type-image: hsl(92, 28%, 52%);--svg-image-text-bg: hsl(92, 29%, 44%);--svg-image-sun: hsl(48, 60%, 55%);--font-weight-bold: 400;--font-weight-letter-spacing: 0.02ch}.cm-popup{--dropdown-shadow: var(--dropdown-shadow-dark)}[data-theme=dark] .cm-sidebar,.modal-codemirror-theme-dark .markdown-preview .cm-sidebar,[data-theme=contrast] .cm-sidebar{--dropdown-top-color: var(--text3)}[data-theme=dark] .dropdown-menu-topbar,.modal-codemirror-theme-dark .markdown-preview .dropdown-menu-topbar,[data-theme=contrast] .dropdown-menu-topbar{--dropdown-top-color: var(--primary)}.svg-icon{width:1em;height:1em;font-size:var(--svg-icon-font-size, 24px);vertical-align:bottom;pointer-events:none;flex-shrink:0;margin:var(--svg-icon-margin, 0);fill:var(--svg-icon-fill, currentColor)}@keyframes rotate{to{transform:rotate(360deg)}}.pswp__spinner:before,.dropdown-lang-loading:before,.menu-spinner:before,.sidebar-spinner:before,.toastify-loading:before,.modal-preview-spinner:before,.files-spinner:before,.updating:before,.logging:before,.settings-loading:before,.form-loading:before,.body-loading:before{content:"";display:inline-block;vertical-align:bottom;border-radius:50%;animation:rotate .75s linear infinite,opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1);width:var(--spinner-size, 24px);height:var(--spinner-size, 24px);border-style:solid;border-width:var(--spinner-width, 1px);border-color:var(--spinner-track, transparent);border-top-color:var(--spinner-color, currentColor);position:var(--spinner-position, absolute);z-index:var(--spinner-z-index, 1);margin:var(--spinner-margin, 0)}.modal-preview-spinner:before,.files-spinner:before,.updating:before,.logging:before,.settings-loading:before,.form-loading:before,.body-loading:before{top:calc(50% - var(--spinner-size, 24px)/2);left:calc(50% - var(--spinner-size, 24px)/2)}.body-loading{--spinner-size: 48px;--spinner-color: var(--text3)}.body-loading #sidebar,.body-loading #main{display:none}:root{--spacing: 1em;--form-padding-x: .9em;--form-padding-y: .6em;--form-line-height: 1.3;--hsl-danger: 0 50% 50%;--hsl-success: 105 30% 50%;--button-color: rgba(255, 255, 255, .95);--button-hsl: var(--hsl-primary);--input-active-hsl: var(--hsl-primary);--input-active-hsl-empty: var(--hue) 20% 45%;--input-box-shadow: 0 0 0 1px hsl(var(--input-active-hsl-empty) / 20%);--input-active-box-shadow-alpha: 25%}.button-icon,.button,.uppy-Dashboard-browse{touch-action:manipulation;cursor:pointer;outline:none;transition:.3s cubic-bezier(0.23, 1, 0.32, 1);--button-surface: var(--primary);--button-box-shadow-active: inset 0 0 0 50px rgba(0, 0, 0, .1), 0 0 0 3px rgba(var(--rgb-theme-invert), .1)}.button-icon:hover,.button:hover,.uppy-Dashboard-browse:hover{box-shadow:var(--button-box-shadow-hover, none)}@supports(background-color: HSL(50 50% 50%/50%)){.button-icon,.button,.uppy-Dashboard-browse{--button-surface: hsl(var(--button-hsl));--button-box-shadow-active: inset 0 0 0 50px rgba(0, 0, 0, .1), 0 0 0 3px hsl(var(--button-hsl) / 30%)}}.button-icon:active,.button:active,.uppy-Dashboard-browse:active,.button-icon:focus-visible,.button:focus-visible,.uppy-Dashboard-browse:focus-visible{box-shadow:var(--button-box-shadow-active)}.button-icon:disabled,.button:disabled,.uppy-Dashboard-browse:disabled{pointer-events:none;opacity:var(--button-disabled-opacity, 0.5)}.button,.uppy-Dashboard-browse{position:relative;--button-box-shadow-hover: inset 0 0 0 50px rgba(255, 255, 255, .1);border-bottom:1px solid rgba(var(--rgb-theme-dark), 0.1);color:var(--button-color);background-color:var(--button-surface);line-height:var(--form-line-height);padding:var(--form-padding-y) var(--form-padding-x) calc(var(--form-padding-y) - 1px) var(--form-padding-x);min-width:6em;border-radius:3px;display:inline-block;text-align:center}.button:hover,.uppy-Dashboard-browse:hover,.button:active,.uppy-Dashboard-browse:active{--button-color: white}.button:not(:first-of-type),.uppy-Dashboard-browse:not(:first-of-type){margin-left:10px}.button-secondary{color:currentColor;--button-surface: rgba(var(--rgb-theme-invert), .05);--button-box-shadow-hover: inset 0 0 0 50px var(--button-surface);--button-box-shadow-active: var(--button-box-shadow-hover), 0 0 0 3px rgba(var(--rgb-theme-invert), .05);border-bottom-color:rgba(0,0,0,.05)}.button-success{--button-hsl: var(--hsl-success)}.button-danger{--button-hsl: var(--hsl-danger)}.button-icon{padding:var(--button-padding, 10px);margin:var(--button-margin, 0);border-radius:var(--button-border-radius, 50%);display:inline-flex;line-height:1;color:var(--button-icon-color, currentColor)}.mouse-hover .button-icon{transition-delay:var(--mouse-hover-transition-delay, 0.25s)}.button-icon .svg-icon{will-change:transform;transition:transform .3s cubic-bezier(0.23, 1, 0.32, 1);transform:scale(var(--button-icon-scale, 1))}.button-icon:hover,.button-icon:active,.button-icon.cm-active,.dropdown:hover .button-icon,.button-icon:focus-visible{color:#fff;fill:#fff;background-color:var(--button-surface);--mouse-hover-transition-delay: 0s}.button-icon:active{--button-icon-scale: .9583333333}.input,.select{line-height:var(--form-line-height);transition:.3s cubic-bezier(0.23, 1, 0.32, 1);width:100%;padding:var(--form-padding-y) var(--form-padding-x);border-radius:3px;outline:none;margin-bottom:var(--spacing);background-color:var(--input-surface, var(--surface2));box-shadow:var(--input-box-shadow);--input-box-shadow-active: 0 0 0 1px hsl(var(--input-active-hsl) / var(--input-active-box-shadow-alpha)), 0 0 0 var(--input-active-spread) hsl(var(--input-active-hsl) / var(--input-active-box-shadow-alpha));--input-active-spread: 4px}.input:placeholder-shown,.select:placeholder-shown{--input-active-hsl: var(--input-active-hsl-empty)}.input:hover,.select:hover{--input-box-shadow: 0 0 0 1px hsl(var(--input-active-hsl-empty) / 40%)}.input:focus,.select:focus,.input[aria-invalid],[aria-invalid].select{--input-box-shadow: var(--input-box-shadow-active)}.input:active,.select:active{--input-active-spread: 5px}.input[aria-invalid=true],[aria-invalid=true].select{--input-active-hsl: var(--hsl-danger)}.input[aria-invalid=false],[aria-invalid=false].select{--input-active-hsl: var(--hsl-success)}.input::placeholder,.select::placeholder{color:var(--text3);opacity:.8}.input-label .input,.input-label .select{margin-top:.5em}.checkbox{width:1em;height:1em;accent-color:var(--primary);margin-right:.5rem}.checkbox-label{cursor:pointer;display:inline-flex;align-items:center}.alert{text-align:left;line-height:var(--form-line-height);color:rgba(255,255,255,.95);padding:var(--form-padding-y) var(--form-padding-x);margin-bottom:var(--spacing);border-radius:3px}.alert-danger{background-color:var(--color-danger);box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.3)}.alert-warning{background-color:var(--color-info)}.select{background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:center right .75em;background-size:1.5em auto;padding-right:2.5em;text-overflow:ellipsis;cursor:pointer}:root{--scrollbar-color-light: rgba(0, 0, 0, .3);--scrollbar-color-hover-light: rgba(0, 0, 0, .4);--scrollbar-color-dark: rgba(255, 255, 255, .3);--scrollbar-color-hover-dark: rgba(255, 255, 255, .4)}.cm-s-one-light,:root,[data-theme=contrast] .modal-preview{--scrollbar-color: var(--scrollbar-color-light);--scrollbar-color-hover: var(--scrollbar-color-hover-light)}.cm-s-one-dark,[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview,[data-theme=contrast] #sidebar,[data-theme=contrast] .modal{--scrollbar-color: var(--scrollbar-color-dark);--scrollbar-color-hover: var(--scrollbar-color-hover-dark)}.markdown-preview,.modal,#sidebar-menu,.uppy-Dashboard-files,.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.has-scrollbars{scrollbar-width:var(--firefox-scrollbar-width, thin);scrollbar-color:var(--scrollbar-color) rgba(0,0,0,0)}.has-scrollbars{--webkit-scrollbar-width: 10px}.has-scrollbars ::-webkit-scrollbar{-webkit-appearance:none;width:var(--webkit-scrollbar-width);height:var(--webkit-scrollbar-width)}.has-scrollbars ::-webkit-scrollbar-thumb{border-radius:calc(var(--webkit-scrollbar-width)/2);background-color:var(--scrollbar-color)}.has-scrollbars ::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-color-hover)}.scrollbar-test{scrollbar-width:thin;width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}.swal2-container{display:flex;justify-content:center;align-items:center;position:fixed;z-index:1060;height:100%;padding:var(--padding, 0);overflow-x:hidden;transition:background-color .2s cubic-bezier(0.165, 0.84, 0.44, 1),opacity .2s cubic-bezier(0.165, 0.84, 0.44, 1);-webkit-overflow-scrolling:touch}@media(min-width: 390px){.swal2-container{--padding: 1rem;--border-radius: 3px}}.swal2-container.swal2-backdrop-show{background-color:var(--modal-bg)}.swal2-popup{display:none;position:relative;width:400px;max-width:100%;padding:1.5rem;border-radius:var(--border-radius, 0);background-color:var(--surface4);color:inherit}.swal2-popup:focus{outline:none}.swal2-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end}.swal2-validation-message{align-items:center;margin:0 -1.5rem;padding:.75rem 1.5rem}.swal2-show{animation:.2s swal-in cubic-bezier(0.165, 0.84, 0.44, 1)}.swal2-hide{animation:.2s swal-out cubic-bezier(0.165, 0.84, 0.44, 1)}@keyframes swal-in{0%{opacity:0;transform:translateY(2px)}100%{opacity:1;transform:none}}@keyframes swal-out{0%{opacity:1}100%{opacity:0}}.swal2-shown.has-scrollbars{overflow:hidden}.swal2-container{contain:strict;cursor:zoom-out}.swal2-popup{cursor:auto;box-shadow:var(--modal-box-shadow),inset 0 2px 0 0 var(--swal-border-top, var(--primary))}.swal2-title{font-weight:500;font-size:1.375rem;line-height:1.2;margin:0}.swal2-close{--svg-icon-font-size: 36px;--button-padding: 4px;--button-margin: .5rem .5rem 0 0;position:absolute;justify-self:end;z-index:2}.swal2-input-label{font-size:.9375rem;margin:0 0 .5em;color:var(--text2)}.swal2-input{margin:0;font-size:1.125rem;text-overflow:ellipsis}@media(pointer: fine){.swal2-actions{font-size:.875rem}}.swal2-cancel:focus,.swal2-confirm:focus{box-shadow:var(--button-box-shadow-active)}.swal2-title,.swal2-input::placeholder,.swal2-cancel,.swal2-confirm{text-transform:capitalize}.files-swal2-path{margin:0 -1.5rem;padding:.75rem 1.5rem;background-color:var(--surface3);word-break:break-all}.files-swal2-path-path{color:var(--text3);font-size:.875rem}.files-swal2-path-highlight{font-weight:500;line-height:1.3}.swal2-validation-message{animation:opacity .3s;--svg-icon-margin: 0 5px 0 0;background-color:var(--color-danger);color:#fff;overflow:hidden;white-space:nowrap}.swal2-validation-text:first-letter{text-transform:uppercase}.files-swal2-invalid-chars{font-family:var(--font-family-monospace);background:rgba(0,0,0,.1);padding:0 .4em;margin-left:.4em}.swal2-title,.swal2-html-container,.swal2-input,.swal2-validation-message{margin-bottom:1rem}.swal2-actions{margin-top:.5rem}.toastify{--toast-padding: 15px;--toastify-color: var(--dropdown-text);color:var(--toastify-color);--toastify-bg: var(--dropdown-surface);background-color:var(--toastify-bg);box-shadow:var(--dropdown-shadow);position:fixed;display:flex;align-items:center;padding:12px 18px;font-size:.9375rem;font-weight:400;border-radius:3px;z-index:2147483647;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);opacity:0;--svg-icon-margin: 0 8px 0 -5px;--svg-icon-font-size: 18px;left:var(--toast-padding);right:var(--toast-padding);bottom:var(--toast-padding)}@media(min-width: 576px){.toastify{left:auto;max-width:calc(100% - var(--toast-padding)*2)}}@media(min-width: 768px){.toastify{max-width:50%}}@media(min-width: 1200px){.toastify{max-width:480px}}.toastify.on{opacity:1}.toastify-right{right:var(--toast-padding)}.toastify-left{left:var(--toast-padding)}.toastify-top{top:-150px}.toastify-bottom{bottom:calc(var(--toast-padding)*-1)}.toastify-success,.toastify-danger{--toastify-color: rgba(255, 255, 255, .9)}.toastify-success{--toastify-bg: var(--color-success)}.toastify-danger{--toastify-bg: var(--color-danger)}.toastify-text{display:inline-block;flex:1}.toastify-text::first-letter{text-transform:uppercase}.toastify-link{cursor:pointer}.toastify-link:hover{opacity:.8}.toastify-link:hover:active{opacity:.6}.toastify-loading{--svg-icon-margin: 0;--spinner-position: static;--spinner-margin: 0 10px 0 -5px}.toastify-percent{font-family:var(--font-family-monospace);font-weight:normal;min-width:40px;padding-left:10px;display:flex;justify-content:flex-end}.toastify-progress-bar{border-radius:0 0 3px 3px;height:3px;width:100%;background-color:var(--primary);position:absolute;left:0;bottom:0;transform-origin:0px 0px;transform:scaleX(0);transition:transform .2s}:root{--cm-surface-light: var(--surface3-light);--cm-surface-dark: hsl(var(--hue), 20%, 18%)}.CodeMirror{height:auto;font-family:var(--font-family-monospace);font-size:.8125rem;line-height:1.5em;color:var(--cm-color);background-color:var(--cm-surface)}@supports(-webkit-touch-callout: none){.CodeMirror{font-size:16px}}.CodeMirror-scroll{overscroll-behavior:contain}.CodeMirror-gutter,.CodeMirror-gutters{border:none;background:var(--cm-gutter-surface);transition:background-color .3s cubic-bezier(0.23, 1, 0.32, 1)}.CodeMirror-linenumber,.CodeMirror-linenumbers{color:var(--cm-linenumber);background-color:rgba(0,0,0,0)}.CodeMirror-lines{color:var(--cm-lines);background-color:rgba(0,0,0,0)}.CodeMirror-selected{background:var(--cm-selected)}.CodeMirror-focused .CodeMirror-selected{background:var(--cm-selected-focused)}.CodeMirror-activeline-background,.CodeMirror-activeline-gutter{background-color:var(--cm-activeline);--cm-linenumber: var(--cm-lines)}.CodeMirror-cursor{border-left:2px solid var(--cm-cursor)}.cm-quote,.cm-comment{font-style:italic}.cm-header{color:var(--cm-header)}.cm-quote{color:var(--cm-quote)}.cm-negative{color:var(--cm-negative)}.cm-positive{color:var(--cm-positive)}.cm-strong{color:var(--cm-strong)}.cm-em{color:var(--cm-em)}.cm-tag{color:var(--cm-tag)}.cm-attribute{color:var(--cm-attribute)}.cm-link{color:var(--cm-link);border-bottom:solid 1px var(--cm-link)}.cm-builtin{color:var(--cm-builtin)}.cm-keyword{color:var(--cm-keyword)}.cm-def{color:var(--cm-def)}.cm-atom{color:var(--cm-atom)}.cm-number{color:var(--cm-number)}.cm-property{color:var(--cm-property)}.cm-qualifier{color:var(--cm-qualifier)}.cm-variable{color:var(--cm-variable)}.cm-string{color:var(--cm-string)}.cm-punctuation{color:var(--cm-punctuation)}.cm-operator{color:var(--cm-operator)}.cm-meta{color:var(--cm-meta)}.cm-bracket{color:var(--cm-bracket)}.cm-comment{color:var(--cm-comment)}.cm-error{color:var(--cm-error)}.cm-m-css.cm-variable{color:var(--cm-m-css-variable)}.cm-m-css.cm-property{color:var(--cm-m-css-property)}.cm-m-css.cm-atom{color:var(--cm-m-css-atom)}.cm-m-css.cm-builtin{color:var(--cm-m-css-builtin)}.cm-m-lua.cm-variable{color:var(--cm-m-lua-variable)}.cm-s-one-light{color-scheme:light;--cm-color: hsl(var(--hue), 20%, 24%);--cm-surface: var(--cm-surface-light);--cm-lines: var(--cm-color);--cm-gutter-surface: var(--surface2);--cm-linenumber: hsl(var(--hue), 14%, 62%);--cm-selected: hsl(var(--hue), 10%, 90%);--cm-selected-focused: hsl(var(--hue), 60%, 90%);--cm-activeline: rgba(0,0,0,.05);--cm-cursor: #56b6c2;--cm-header: #e06c75;--cm-quote: #9d9d9f;--cm-negative: #e06c75;--cm-positive: #e06c75;--cm-strong: #e45649;--cm-em: #c678dd;--cm-tag: #e45649;--cm-attribute: #986801;--cm-link: #50a14f;--cm-builtin: #e06c75;--cm-keyword: #0184bc;--cm-def: hsl(39, 72%, 59%);--cm-atom: #0184bc;--cm-number: #986801;--cm-property: #e45649;--cm-qualifier: #e45649;--cm-variable: #e06c75;--cm-string: #50a14f;--cm-punctuation: var(--cm-color);--cm-operator: #56b6c2;--cm-meta: hsl(var(--hue), 20%, 40%);--cm-bracket: var(--cm-color);--cm-comment: hsl(var(--hue), 10%, 65%);--cm-error: #e06c75;--cm-m-css-variable: hsl(var(--hue), 20%, 50%);--cm-m-css-property: var(--cm-color);--cm-m-css-atom: #0184bc;--cm-m-css-builtin: #56b6c2;--cm-m-lua-variable: #56b6c2}.cm-s-one-dark{color-scheme:dark;--cm-color: hsl(var(--hue), 14%, 71%);--cm-surface: var(--cm-surface-dark);--cm-lines: var(--cm-color);--cm-gutter-surface: var(--cm-surface-dark);--cm-linenumber: hsl(var(--hue), 10%, 40%);--cm-selected: hsl(var(--hue), 14%, 26%);--cm-selected-focused: hsl(var(--hue), 14%, 28%);--cm-activeline: rgba(255,255,255,.05);--cm-cursor: #56b6c2;--cm-header: #e06c75;--cm-quote: #5c6370;--cm-negative: #e06c75;--cm-positive: #e06c75;--cm-strong: #d19a66;--cm-em: #c678dd;--cm-tag: #e06c75;--cm-attribute: #d19a66;--cm-link: #98c379;--cm-builtin: #e06c75;--cm-keyword: #c678dd;--cm-def: #e5c07b;--cm-atom: #d19a66;--cm-number: #d19a66;--cm-property: #56b6c2;--cm-qualifier: #d19a66;--cm-variable: #e06c75;--cm-string: #98c379;--cm-punctuation: var(--cm-color);--cm-operator: #56b6c2;--cm-meta: var(--cm-color);--cm-bracket: var(--cm-color);--cm-comment: hsl(var(--hue), 10%, 40%);--cm-error: #e06c75;--cm-m-css-variable: hsl(var(--hue), 9%, 55%);--cm-m-css-property: var(--cm-color);--cm-m-css-atom: #56b6c2;--cm-m-css-builtin: #56b6c2;--cm-m-lua-variable: #56b6c2}.uppy-Root{color:var(--text1);font-family:inherit;position:relative;z-index:var(--z-index-uppy);-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit}@media(hover: hover){.uppy-Dashboard-overlay:active,.uppy-Dashboard-overlay:active+.uppy-Dashboard-inner{transition:opacity .2s;opacity:.8}}.uppy-Dashboard-overlay{cursor:zoom-out;background-color:var(--modal-bg) !important}.uppy-Dashboard-inner{box-shadow:var(--modal-box-shadow) !important}.uppy-Dashboard-AddFiles-title{display:flex;flex-direction:column;font-size:1rem !important;color:var(--text1) !important}.uppy-Dashboard-browse{font-size:1.125rem;width:100%;text-transform:capitalize;padding:.75em 1em;margin:10px auto;border-bottom:none !important;color:#fff !important}.uppy-size--md .uppy-Dashboard-browse{font-size:1.25rem;width:auto}.uppy-Dashboard-dropFilesHereHint,.uppy-StatusBar-statusPrimary,.uppy-Dashboard-Item-name{color:var(--text1) !important}.uppy-Dashboard-Item-status,.uppy-Dashboard-note{color:var(--text3) !important}.upload-button{line-height:1.6;font-size:1rem;--button-hsl: var(--hsl-success);margin:0 auto}@media(max-width: 575.98px){.upload-button{width:100%}}.uppy-Dashboard-FileCard-preview{background-color:var(--surface2) !important}.uppy-DashboardContent-bar,.uppy-Dashboard-FileCard-actions,.uppy-c-textInput,.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewInnerWrap,.uppy-Dashboard-Item-previewInnerWrap,.uppy-StatusBar{background-color:var(--surface3) !important}.uppy-Dashboard-inner,.uppy-Dashboard-FileCard-info{background-color:var(--surface4) !important}.uppy-StatusBar:before{content:none !important}.uppy-StatusBar-actions{background:none !important}.uppy-c-textInput,.uppy-DashboardContent-bar,.uppy-Dashboard-FileCard-actions,.uppy-StatusBar{border-color:rgba(0,0,0,0) !important}[data-uppy-drag-drop-supported=true] .uppy-Dashboard-AddFiles{border-color:var(--text3)}.uppy-Dashboard-AddFilesPanel{background:var(--surface4) !important}@supports(background: HSL(50 50% 50%/50%)){.uppy-Dashboard-AddFilesPanel{background:linear-gradient(0deg, var(--surface4) 35%, hsla(var(--hue), 20%, var(--lightness, 99%), 85%)) !important}[data-uppy-theme=dark] .uppy-Dashboard-AddFilesPanel{--lightness: 20%}}.uppy-Dashboard-Item-errorDetails,.uppy-StatusBar-details{cursor:help;color:var(--surface4);background-color:var(--text1)}@media(min-width: 820px){.uppy-Dashboard-inner{width:580px;height:460px;max-width:calc(100% - 96px);transition:width .25s cubic-bezier(0.77, 0, 0.175, 1),height .25s cubic-bezier(0.77, 0, 0.175, 1)}}@media(min-width: 820px)and (min-height: 580px){.uppy-Dashboard-inner{max-height:calc(100% - 96px)}}@media(min-width: 820px){.uppy-Dashboard-inner:has(.uppy-DashboardContent-panel){transition:none;width:1024px;height:1024px}.uppy-Dashboard-inner-1{height:580px}.uppy-Dashboard-inner-2{width:780px}.uppy-Dashboard-inner-5{height:660px}.uppy-Dashboard-inner-9{height:780px}}.uppy-StatusBar.is-complete .uppy-StatusBar-progress{background-color:var(--color-success)}.uppy-Dashboard-Item-progressIcon--circle>circle{fill:var(--color-success)}.uppy-StatusBar.is-complete .uppy-StatusBar-statusIndicator{color:var(--color-success)}.button-uppy-close{position:absolute;top:-48px;right:-10px;z-index:1005;--svg-icon-fill: white;--svg-icon-font-size: 36px;--button-padding: 4px}.button-uppy-close span{display:none}@media(min-width: 820px){.button-uppy-close{right:-49px;top:0}}@media(max-width: 819px){.uppy-Dashboard--modal .uppy-Dashboard-inner{top:52px}}.uppy-Dashboard--modal{animation:opacity .25s cubic-bezier(0.215, 0.61, 0.355, 1)}.uppy-is-drag-over:after{background-color:rgba(255,255,255,.1);border-radius:3px;border-color:var(--text3);animation:opacity .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.uppy-transition-slideDownUp-enter{transform:translate3d(0, -5px, 0);transition:.33s cubic-bezier(0.23, 1, 0.32, 1)}.uppy-allow-delete .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{right:10px}.uppy-Informer-animated p{border-radius:3px;background-color:var(--surface1-dark) !important;color:rgba(255,255,255,.9)}.cropper-view-box{background:repeating-conic-gradient(var(--surface2) 0 25%, transparent 0 50%) 50%/20px 20px var(--surface4)}.cropper-modal{background-color:var(--surface2)}.cropper-point{background-color:var(--primary)}.uppy-ImageCropper .cropper-view-box{outline-color:var(--primary)}.uppy-Dashboard-files{--webkit-scrollbar-width: 6px;overscroll-behavior:contain}.uppy-demo-mode .upload-button,.uppy-nolicense .upload-button{display:none}.uppy-demo-mode .uppy-StatusBar-actions,.uppy-nolicense .uppy-StatusBar-actions{justify-content:center}.uppy-demo-mode .uppy-StatusBar-actions:after,.uppy-nolicense .uppy-StatusBar-actions:after{content:var(--upload-disabled-text, "Upload disabled in demo mode");cursor:not-allowed;font-size:1rem;color:var(--text1);border:1px dashed currentColor;border-radius:3px;padding:0 .9em}.uppy-nolicense{--upload-disabled-text: "License required for upload function"}.compressor-container{padding:1rem;font-size:.875rem;text-align:center}.uppy-Dashboard--isDraggingOver .compressor-container{opacity:.15}.compressor-container [data-lang]{display:inline-block}.compressor-options{text-align:left;display:none;margin-top:1rem;grid-gap:1rem;animation:opacity .2s forwards;--spacing: 0}.compressor-enabled .compressor-options{display:flex}@media(max-width: 575.98px){.compressor-options{flex-wrap:wrap}}.compressor-options label{flex-basis:22%;flex-grow:1}@media(max-width: 575.98px){.compressor-options .input,.compressor-options .select{font-size:1rem}}#watermark{flex-grow:1}#watermark-text{resize:none;max-height:84px}:root{--dropdown-surface: hsl(var(--hue), 20%, 20%);--dropdown-surface-header: hsl(var(--hue), 20%, 14%);--dropdown-text: hsl(var(--hue), 20%, 96%);--dropdown-divider-color: hsl(var(--hue), 20%, 26%);--dropdown-top-color: var(--dropdown-surface-header)}.dropdown-menu{color-scheme:dark;--dropdown-item-padding-y: .3em;--dropdown-item-padding-x: 1em;--dropdown-item-padding-left: 1em;--dropdown-item-padding-right: 1.25em;--svg-icon-font-size: 18px;--svg-icon-margin: 0 .5em 0 0;--svg-icon-fill: var(--text1-dark);color:var(--dropdown-text);background-color:var(--dropdown-surface);outline:none;border-radius:3px;box-shadow:var(--dropdown-shadow);padding-bottom:.5em}[data-theme=light] .dropdown-menu{--primary: hsl(var(--hsl-primary-contrast))}@media(hover: hover)and (pointer: fine){.dropdown-menu{font-size:.875rem}}.dropdown-menu:before{content:"";position:absolute;border:solid 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--dropdown-top-color) rgba(0,0,0,0);top:-10px;left:var(--nub-left);transform:translateX(-50%)}.dropdown-menu.nub-bottom:before{top:100%;border-color:var(--dropdown-surface) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.dropdown-header{padding:.6875em var(--dropdown-item-padding-right) .6875em var(--dropdown-item-padding-left);margin-bottom:.3em;background-color:var(--dropdown-surface-header);border-radius:3px 3px 0 0;font-weight:500;color:hsl(var(--hue), 20%, 95%);box-shadow:inset 0 2px 0 -1px var(--dropdown-top-color)}.dropdown-header-basename{width:0px;min-width:100%}.dropdown-header-selected{text-transform:capitalize}.dropdown-header,.dropdown-item{display:flex;align-items:center;white-space:nowrap}.dropdown-item{touch-action:manipulation;outline:none;text-transform:capitalize;text-align:left;width:100%;padding:var(--dropdown-item-padding-y) var(--dropdown-item-padding-right) var(--dropdown-item-padding-y) var(--dropdown-item-padding-left)}.dropdown-item:hover,.dropdown-item:active,.dropdown-item.active,.dropdown-item:focus-visible{--svg-icon-fill: currentColor;background-color:var(--primary);color:#fff}.dropdown-item:focus,.dropdown-item:active{transition:.3s cubic-bezier(0.165, 0.84, 0.44, 1)}.dropdown-item:active{box-shadow:inset 0 0 0 99em rgba(0,0,0,.15)}.dropdown-separator{margin:.5em 0;height:1px;background-color:var(--dropdown-divider-color);border:none}.context-button{display:inline-flex}.context-button .svg-path-dots,.context-button .svg-path-close_thin{transition:transform,fill-opacity;transition-duration:.25s;transition-timing-function:cubic-bezier(0.15, 0.3, 0, 1);transform-origin:center}.context-button .svg-path-close_thin{fill-opacity:0;transform:rotate(-45deg)}.context-button.cm-active .svg-path-dots{fill-opacity:0;transform:rotate(45deg)}.context-button.cm-active .svg-path-close_thin{fill-opacity:1;transform:rotate(0deg)}#contextmenu{position:fixed;display:none;z-index:var(--z-index-contextmenu)}.exif-item small,.exif-item:before{font-size:.8em;opacity:.8;line-height:1}.exif-Model{--svg-icon-margin: 0 5px 0 -2px}.exif-ISOSpeedRatings:before{margin-right:1px;content:"ISO"}.exif-FocalLength small{margin-left:1px}.exif-ApertureFNumber::first-letter{font-style:italic}.svg-file-bg{fill:var(--svg-file-bg)}.svg-file-flip{fill:var(--svg-file-flip)}.svg-file-icon{fill:var(--svg-file-icon)}.svg-file-ext{font-family:Menlo,"Fira Mono","Cascadia Mono","Roboto Mono","Droid Sans Mono","DejaVu Sans Mono","Oxygen Mono",Consolas,"Ubuntu Mono",Monaco,monospace;font-size:12px;fill:#fff;fill-opacity:.9;text-transform:uppercase;text-anchor:middle;dominant-baseline:middle}.svg-folder-large{--svg-folder-bg: var(--svg-folder-bg-large);--svg-folder-fg: var(--svg-folder-fg-large)}.svg-folder-bg{fill:var(--svg-folder-bg)}.svg-folder-fg{fill:var(--svg-folder-fg)}.svg-folder-symlink{fill:var(--svg-folder-bg)}.svg-file-forbidden,.svg-folder-forbidden{fill:var(--color-danger)}.path-exclamation{fill:#fff;fill-opacity:.85}.svg-application{fill:var(--type-application)}.svg-archive{fill:var(--type-archive)}.svg-audio{fill:var(--type-audio)}.svg-cd{fill:var(--type-cd)}.svg-code{fill:var(--type-code)}.svg-default{fill:var(--type-default)}.svg-excel{fill:var(--type-excel)}.svg-font{fill:var(--type-font)}.svg-open_in_new{fill:var(--type-open_in_new)}.svg-pdf{fill:var(--type-pdf)}.svg-powerpoint{fill:var(--type-powerpoint)}.svg-text{fill:var(--type-text)}.svg-video{fill:var(--type-video)}.svg-word{fill:var(--type-word)}.svg-youtube{fill:var(--type-youtube)}.svg-vimeo{fill:var(--type-vimeo)}.svg-image,.polygon-image,.svg-panorama_variant{fill:var(--type-image)}.svg-image .svg-file-text-bg{fill:var(--svg-image-text-bg)}.circle-sun{fill:var(--svg-image-sun)}.files-icon-overlay{fill:var(--icon-overlay-fill, var(--svg-file-flip));fill-opacity:var(--icon-overlay-fill-opacity, 1)}.files-a-img{--icon-overlay-fill: white;--icon-overlay-fill-opacity: 0}.files-a-loaded{--icon-overlay-fill-opacity: .9}.svg-path-file_pdf_box{fill:#f63f35}.svg-marker{transition:fill .2s}.map-link-icon{display:flex}.map-link-icon:hover{--svg-icon-fill: hsl(5, 70%, 57%)}[data-lang]:first-letter,time:first-letter{text-transform:uppercase}.license-popup{--swal-border-top: var(--color-success);width:420px;margin:auto}@media(max-width: 575.98px){.license-popup .swal2-close{display:block !important;margin:1rem .5rem}}.license-container{line-height:1.3;color:var(--text2)}.license-header a:hover{text-decoration:underline}.license-header .alert{margin:0 -1.5rem var(--spacing);padding:.75em 1.5rem;border-radius:0}.license-title{font-size:1.125rem;color:var(--text1)}@media(max-width: 575.98px){.license-title{margin-right:2rem}}.license-features{box-shadow:0 -1px 0px var(--border-color);padding:1rem 0 0;margin:1rem 0 1.25rem}.license-feature{line-height:1.5rem;font-size:.875rem;--svg-icon-fill: var(--color-success);--svg-icon-margin: 0 5px 0 0;--svg-icon-font-size: 18px}.license-types-container{background-color:var(--surface3);margin:0 -1.5rem .75rem;padding:1.5rem 1.5rem 1.25rem;border-top:1px solid var(--surface2);border-bottom:1px solid var(--surface2)}.license-types{display:flex;gap:1.5rem;font-size:.875rem;line-height:1.4}.license-type{flex:50%;display:flex;flex-direction:column}.license-type-title{margin:0;font-size:1.125rem;color:var(--text1)}.license-type-title:after{font-weight:300;content:" License";color:var(--text2)}.license-type-description{margin:.25rem -0.5rem .75rem 0}.license-type-button{width:100%;font-family:var(--font-family-monospace);margin-top:auto}.license-types-footer{display:block;margin-top:.75rem}.license-types-link{color:var(--color-success);text-decoration:underline}.page-login{height:100%}.page-login-body{display:flex;flex-direction:column;min-height:100%;background-image:radial-gradient(circle, var(--surface4) 180px, var(--surface1))}.login-container{margin:auto;padding:1.5rem 1.5rem 4rem;font-size:1.25rem;animation:opacity 1s}@media(min-width: 576px){.login-container{max-width:400px}}.login-header{margin:0 0 2rem;font-weight:200;font-size:3rem}.login-form-buttons{margin-top:1rem;display:flex;gap:1rem}.login-button:has(+.login-cancel-button),.login-cancel-button{white-space:nowrap;flex-basis:50%}.form-loading{--spinner-size: 48px}.form-loading .login-container{transition:opacity .66s cubic-bezier(0.23, 1, 0.32, 1);opacity:.2;filter:blur(1px);pointer-events:none}:root{--touch-callout: default}img,video,.files-li,.menu-li{-webkit-touch-callout:var(--touch-callout)}.no-transition *{transition-property:none !important}.no-transition-strict *{transition-property:none !important}.action-processing{pointer-events:none;transition:opacity .3s;opacity:.5}.settings-popup{--settings-popup-width: 100%;width:var(--settings-popup-width);margin:0 auto auto;min-height:580px;max-height:calc(100vh - var(--padding, 0rem)*2)}@media(min-width: 992px){.settings-popup{--settings-popup-width: calc(5vw + 480px)}}@supports(max-height: 100dvh){@media(hover: none){.settings-popup{max-height:calc(100dvh - var(--padding, 0rem)*2 + 1px)}}}@media(hover: hover)and (min-width: 992px){.settings-popup{--settings-fullscreen-button-display: inline-flex}}.settings-fullscreen{height:100%;width:100%;--fullscreen-expand: none;--fullscreen-collapse: block;--users-max-width: calc(var(--settings-popup-width) - 3rem)}.settings-loading{--spinner-size: 48px;cursor:wait}.settings-loading .settings-html-container,.settings-loading .swal2-actions{filter:blur(1px);opacity:.5;pointer-events:none}.settings-html-container,.users,.swal2-actions{transition:opacity .3s,filter .3s}.settings-popup,.settings-html-container{display:flex !important;flex-direction:column}.settings-html-container{margin-top:.5rem;min-height:160px;flex:1}.settings-html-container .button,.settings-html-container .uppy-Dashboard-browse{flex-shrink:0;margin-left:0;text-transform:capitalize;min-width:var(--button-min-width)}.user,.users{max-width:var(--users-max-width, 100%);display:flex;gap:1rem;margin-bottom:1.5rem;--spacing: 0}@media(pointer: fine){.user,.users{font-size:.875rem}}.user{padding-top:1.5rem;border-top:1px solid var(--border-color);animation:opacity .3s}.user-default .user{display:none}.user-user .user-cancel{display:none}.user-new .users{pointer-events:none;filter:blur(1px);opacity:.5}.user-new .user-remove{display:none}.user-settings{display:flex;flex:1;min-height:108px;position:relative;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);margin:0 -1.5rem}.user-settings:hover{--settings-fullscreen-button-opacity: 1}.settings-fullscreen-button{position:absolute;z-index:1;right:.5rem;top:.5rem;color:var(--text2);opacity:var(--settings-fullscreen-button-opacity, 0);display:var(--settings-fullscreen-button-display, none)}.cm-s-one-dark+.settings-fullscreen-button:not(:hover){color:var(--text1-dark)}.settings-validation{flex-shrink:0;margin-top:-1rem}.alert-install-mode{order:-1;margin:0 -1.5rem 1.5rem;padding:1rem 1.5rem;border-radius:0;cursor:pointer}.alert-install-mode .svg-alert_circle_outline{position:absolute;right:1rem}[data-tooltip]{position:relative}[data-tooltip]:after{display:var(--tooltip-display, block);position:absolute;content:attr(data-tooltip);white-space:nowrap;pointer-events:none;z-index:var(--z-index-tooltip);padding:8px;line-height:1;border-radius:3px;font-size:.75rem;font-weight:normal;text-transform:capitalize;top:calc(100% + 5px);right:var(--tooltip-right, 50%);transform:translateX(var(--tooltip-translateX, 50%));background-color:var(--surface1-dark);color:hsl(var(--hue), 20%, 98%);font-weight:500;opacity:0;visibility:hidden;transition:opacity .15s cubic-bezier(0.215, 0.61, 0.355, 1),visibility 0s .15s}[data-tooltip]:hover:after{opacity:1;visibility:visible;transition:opacity .25s cubic-bezier(0.215, 0.61, 0.355, 1) var(--tooltip-delay, 0s)}.buttons-selected:has(.button-icon:hover){--tooltip-duration: 0s}.tooltip-left,#topbar-top [data-tooltip]:last-child{--tooltip-right: 0;--tooltip-translateX: 0}.tooltip-right,.button-select-toggle{--tooltip-right: 100%;--tooltip-translateX: 100%}.updating,.logging,.updated{overflow:hidden}.updating:after,.logging:after,.updated:after{content:"";background-color:var(--surface1);z-index:99998;position:absolute;animation:opacity .5s forwards}@supports(background-color: HSL(50 50% 50%/50%)){.updating:after,.logging:after,.updated:after{background-color:var(--modal-bg)}}.updating:before,.logging:before,.updated:before{color:var(--text1);position:absolute;z-index:99999}[data-theme=contrast] .updating:before,[data-theme=contrast] .logging:before,[data-theme=contrast] .updated:before{color:var(--text1-dark)}.updating,.logging{--spinner-size: 48px}.logging:after{animation:none}.updated:before{content:attr(data-updated);top:50%;left:50%;transform:translateX(-50%) translatey(-50%)}:root{--sidebar-width: calc(10vw + 180px);--sidebar-width-small: 85vw;--sidebar-width-hover: 480px}.menu-enabled #main{width:100%}@media(min-width: 992px){.menu-enabled #main{width:calc(100% - var(--sidebar-width));transform:translateX(var(--sidebar-width));transition:transform .3s cubic-bezier(0.4, 0.5, 0, 1),width 0s .3s}.menu-enabled.sidebar-closed #main{width:100%;transition:transform .3s cubic-bezier(0.4, 0.5, 0, 1),width 0s 0s;transform:translateX(0)}.menu-enabled:not(.sidebar-closed) #topbar{margin-left:-1px}}#sidebar,#sidebar-bg{position:fixed;top:0;left:0;height:100%}#sidebar{z-index:var(--z-index-sidebar)}.svg-path-menu{display:none}@media(min-width: 992px){.svg-path-menu_back{display:inline;transform-origin:center}}.sidebar-closed #sidebar{width:0}.sidebar-closed .svg-path-menu{display:inline}.sidebar-closed .svg-path-menu_back{display:none}.sidebar-closed #sidebar-inner{transform:translateX(-100%)}@media screen and (hover: hover)and (pointer: fine)and (min-width: 992px){.sidebar-closed #sidebar{width:5px}.sidebar-closed #sidebar-inner{transition-delay:.3s;width:var(--sidebar-width-hover)}.sidebar-closed #sidebar-bg{transition:opacity .3s .3s,visibility 0s 0.6s}.sidebar-closed .svg-path-menu_back{transform:scaleX(-1)}.sidebar-closed #sidebar-toggle:hover .svg-path-menu{display:none}.sidebar-closed #sidebar-toggle:hover .svg-path-menu_back{display:inline}.sidebar-closed #sidebar:hover #sidebar-inner{transform:translateX(0);transition-delay:0s}.sidebar-closed #sidebar:hover+#sidebar-bg{transition-delay:0s;visibility:visible;opacity:1}}@media(max-width: 991.98px){.sidebar-closed #sidebar-bg{transition:opacity .3s,visibility 0s .3s;visibility:hidden;opacity:0}}.sidebar-closed .sidebar-clicked{pointer-events:none}.sidebar-closed .sidebar-clicked #sidebar-inner{transition-delay:0s}.sidebar-closed .sidebar-clicked+#sidebar-bg{transition-delay:0s,.3s}#sidebar-bg{width:100%;background-color:var(--modal-bg);will-change:opacity;z-index:var(--z-index-sidebar-bg)}@media(max-width: 991.98px){#sidebar-bg{transition:opacity .3s,visibility 0s;visibility:visible;opacity:1}}@media(min-width: 992px){#sidebar-bg{pointer-events:none;transition:opacity .3s,visibility 0s .3s;visibility:hidden;opacity:0}}#sidebar-inner{width:var(--sidebar-width-small);height:100%;transition:transform .3s cubic-bezier(0.4, 0.5, 0, 1)}@media(min-width: 992px){#sidebar-inner{transition:transform .3s cubic-bezier(0.4, 0.5, 0, 1),width .3s cubic-bezier(0.4, 0.5, 0, 1);width:var(--sidebar-width)}}#sidebar-menu{-webkit-overflow-scrolling:touch;overflow-y:auto}.custom-section{background-color:var(--surface4)}.logo-small-container{border-bottom:1px solid var(--surface1);padding:var(--logo-padding, 0.5rem);text-align:var(--logo-align, center);height:var(--logo-height, 59px)}.logo-large-container{display:none;max-height:38px;flex:1;justify-content:center}.logo{max-height:100%}@media(max-width: 991.98px){.logo-small-container~#main #topbar-top{padding-left:10px !important}}@media(min-width: 992px){.logo-small-container{display:none}.logo-large-container{display:flex}}.custom-footer,.custom-footer-fixed{text-align:center;padding:10px;font-size:.875rem}.custom-footer-fixed{background-color:var(--surface2);position:fixed;z-index:4;bottom:0;width:100%}.custom-links{display:inline-flex;gap:.75em;color:var(--primary)}.custom-links a:hover{text-decoration:underline}.svg-path-plus,.svg-path-minus,.svg-path-folder_plus,.svg-path-folder_minus{transition-property:transform,fill-opacity;transition-duration:.25s;transition-timing-function:cubic-bezier(0.4, 0.5, 0, 1);transform-origin:center}.svg-path-minus,.svg-path-folder_minus{fill-opacity:var(--minus-opacity, 0);transform:rotate(var(--minus-rotation, -90deg))}.svg-path-plus,.svg-path-folder_plus{fill-opacity:var(--plus-opacity, 1);transform:rotate(var(--plus-rotation, 0deg))}.menu-li-open>.menu-a,#menu-toggle.is-expanded{--minus-rotation: 0deg;--plus-rotation: 90deg;--minus-opacity: 1;--plus-opacity: 0}@media(hover: hover){.menu-li-open>.menu-active:active,.menu-li-open>.menu-a .menu-icon-toggle:active,.menu-li-open>.menu-a .menu-icon-folder-toggle:active,#menu-toggle.is-expanded:active{--minus-opacity: 0;--plus-opacity: 1;--minus-rotation: -45deg;--plus-rotation: 45deg}}#sidebar-toggle{position:absolute;z-index:var(--z-index-sidebar-toggle);top:10px;--button-padding: 7px;--button-border-radius: 0 3px 3px 0;background-color:var(--primary);color:#fff}#sidebar-inner{display:flex;flex-direction:column}#sidebar-topbar{padding:10px 0 10px 46px;border-bottom:1px solid var(--surface1);min-height:59px;background-color:var(--surface3)}@media(min-width: 992px){#sidebar-topbar{transition:background-color .3s}:root:not(.sidebar-closed) #sidebar-topbar{background-color:var(--surface4)}}#menu-toggle{--button-padding: 7px}#menu-toggle.not-expandable{display:none}#sidebar-menu{flex:1;outline:none;background-color:var(--surface3);position:relative;overflow-y:overlay;--webkit-scrollbar-width: 4px}.sidebar-closed #sidebar-menu{background-color:var(--surface3)}@media(min-width: 992px){#sidebar-menu{transition:background-color .5s cubic-bezier(0.215, 0.61, 0.355, 1);background-color:var(--surface1);background-image:linear-gradient(var(--surface3), transparent)}}@media(max-width: 991.98px){#sidebar-menu{overscroll-behavior-y:contain}}.sidebar-closed #sidebar-menu{overscroll-behavior-y:contain}#sidebar-menu:not(:hover){--scrollbar-color: transparent}.sidebar-spinner{--spinner-margin: 1rem 10px 0 7px}.menu-root,.menu-ul{margin:0;list-style:none}.menu-root{padding:1rem 0 3rem}.menu-ul{padding:0;overflow:hidden;height:0px;opacity:0;display:none}[data-theme=light]{--menu-surface-hover-lightness: 30%;--menu-icon-folder-fill-opacity: 1}[data-theme=contrast],[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview{--menu-surface-hover-lightness: 70%;--menu-icon-folder-fill-opacity: .9}.menu-a{opacity:.9;background-color:var(--menu-surface, initial);--menu-surface-hover: rgba(var(--rgb-theme-invert), .05);--menu-surface-active: var(--menu-surface-hover);--menu-color: var(--text1);--menu-text-indent: 6px;--menu-line-height: 28px;--menu-folder-icon-size: 18px;--menu-border-color: var(--primary);color:var(--menu-color);font-size:1rem;line-height:var(--menu-line-height);padding-left:calc((38px - var(--menu-folder-icon-size))/2 + (var(--menu-folder-icon-size) + var(--menu-text-indent) - 1px)*var(--depth));display:block;touch-action:manipulation;transition-property:color,box-shadow,opacity,background-color;transition-duration:.3s;transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}@supports(background-color: HSL(50 50% 50%/50%)){.menu-a{--menu-surface-hover: hsl(var(--hue) 60% var(--menu-surface-hover-lightness) / 7%);--menu-surface-active: hsl(var(--hsl-primary) / 16%)}}@media(pointer: fine){.menu-a{font-size:.875rem;--menu-line-height: 24px}}.menu-a:focus-visible{background-color:var(--menu-surface-hover);outline-color:var(--primary);outline-offset:-1px}.menu-li-open>.menu-ul{height:auto;opacity:1;display:block}.menu-active,.menu-li-closed:has(.menu-active)>.menu-a{--menu-surface: var(--surface1)}.menu-active{opacity:1;box-shadow:inset 2px 0 0 var(--menu-border-color);--menu-icon-folder-fill: var(--primary);--menu-icon-folder-fill-opacity: 1}.menu-a-forbidden{cursor:not-allowed;--menu-icon-folder-fill: var(--color-danger-light) !important;--menu-surface-active: hsl(var(--hsl-danger) / 16%);--menu-border-color: var(--color-danger)}.menu-icon{width:1em;height:1em;vertical-align:bottom}.menu-icon-folder{transition-property:fill,fill-opacity,transform;transition-duration:.3s;transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1);font-size:var(--menu-folder-icon-size);fill:var(--menu-icon-folder-fill, var(--text2));fill-opacity:var(--menu-icon-folder-fill-opacity);margin:0 var(--menu-text-indent) calc((var(--menu-line-height) - var(--menu-folder-icon-size))/2) 0}.menu-icon-folder:not(.menu-icon-folder-toggle){pointer-events:none}.menu-icon-folder-toggle{will-change:fill,fill-opacity,transform}.menu-icon-folder-toggle:hover{--menu-icon-folder-fill: var(--primary)}.svg-path-folder_plus,.svg-path-folder_minus{fill:var(--menu-icon-folder-fill, var(--menu-color));transition-property:transform,fill-opacity,fill}.menu-icon-toggle{float:right;font-size:var(--menu-line-height);--button-padding: calc((var(--menu-line-height) - 24px) / 2);--button-box-shadow-active: none;will-change:opacity,fill,transform,background-color;fill:var(--menu-color)}@media(hover: hover){.menu-a{transition-property:color,box-shadow}.menu-a:focus,.menu-a:active,.menu-a.cm-active{transition-property:color,box-shadow,opacity,background-color}.menu-a:hover{opacity:1;background-color:var(--menu-surface-hover);--menu-icon-folder-fill-opacity: 1}.menu-a:active{background-color:var(--menu-surface-active);--menu-color: var(--text1);box-shadow:inset 3px 0 0 var(--menu-border-color);--menu-icon-folder-fill: var(--primary);--menu-icon-folder-fill-opacity: 1;opacity:1}.menu-active:active .menu-icon-toggle{background-color:var(--primary);fill:#fff}.menu-icon-toggle:active,.menu-icon-folder-toggle:active{transform:scale(0.95)}#sidebar:not(:hover){--toggle-opacity: 0;--toggle-transition-delay: .3s}#menu-toggle,.menu-icon-toggle{opacity:var(--toggle-opacity, 1);transition-delay:var(--toggle-transition-delay, 0s)}}.menu-a.cm-active{background-color:var(--menu-surface-active);--menu-color: var(--text1);box-shadow:inset 3px 0 0 var(--menu-border-color);--menu-icon-folder-fill: var(--primary);--menu-icon-folder-fill-opacity: 1;opacity:1}.menu-spinner{opacity:1;--spinner-size: var(--menu-folder-icon-size);--spinner-margin: calc((var(--menu-line-height) - var(--menu-folder-icon-size)) / 2) 0 0 0;--menu-icon-folder-fill: transparent}#topbar{z-index:var(--z-index-topbar)}.topbar-sticky{position:-webkit-sticky;position:sticky;top:0}.headroom{will-change:transform,opacity;transition:transform .2s cubic-bezier(0.215, 0.61, 0.355, 1),opacity .2s}.headroom--unpinned{transform:translateY(-10px);opacity:0;pointer-events:none}#topbar-top{border-bottom:1px solid var(--surface1);padding:10px;display:flex;min-height:58px;background-color:var(--surface4);--button-margin: -3px 0 -3px 1px;--tooltip-delay: .3s}@media(min-width: 768px){#topbar-top{padding-left:1rem}}.topbar-top-scroll{overflow-x:scroll;--tooltip-display: none;--dropdown-menu-topbar-position: fixed}.topbar-top-scroll .dropdown-menu-topbar:before{display:none}.menu-enabled #topbar-top{padding-left:48px}@media(min-width: 992px){.menu-enabled #topbar-top{padding-left:6px}}.menu-enabled.sidebar-closed #topbar-top{padding-left:48px}#change-sort{margin-right:auto}#search-container{position:relative;margin-right:.5rem;display:flex;flex-direction:column;--filter-padding-right: 5px}@media(min-width: 576px){#search-container{--filter-reset-display: block;--filter-padding-right: 32px}}@media(max-width: 767.98px){#search-container{flex-grow:1}}@media(min-width: 768px){#search-container{min-width:200px}#search-container:after{content:attr(data-input);padding:0 calc(var(--filter-padding-right) + 4px) 0 40px;height:0;overflow:hidden;visibility:hidden}}#search{padding:0 var(--filter-padding-right) 0 40px;--spacing: 0;flex-grow:1}#search::placeholder{opacity:var(--placeholder-opacity, 1);transition:.3s cubic-bezier(0.23, 1, 0.32, 1);text-transform:capitalize}#search:placeholder-shown:hover::placeholder{color:var(--text2)}#search:placeholder-shown:not(:hover):not(:focus)+.filter-search-icon{fill:var(--text2)}.filter-match #search:not(:placeholder-shown),.filter-nomatch #search:not(:placeholder-shown){--input-box-shadow: var(--input-box-shadow-active);--input-active-box-shadow-alpha: 50%}#search:focus{--placeholder-opacity: 0}@supports not (-moz-appearance: none){#search:focus+.filter-search-icon{transform:scale(1.125)}}#search:placeholder-shown~.filter-reset,#search:not(:focus):not(:hover)~.filter-reset:not(:hover){opacity:0;pointer-events:none}#search:disabled{opacity:.5}#search:disabled+.filter-search-icon{opacity:.5}.search-small-focused{min-height:var(--height, auto)}.search-small-focused~*{display:none}.search-small{--placeholder-opacity: 0}.filter-match{--input-active-hsl: var(--hsl-success);--button-hsl: var(--hsl-success)}.filter-nomatch{--input-active-hsl: var(--hsl-danger);--button-hsl: var(--hsl-danger)}.filter-search-icon,.filter-reset{position:absolute}.filter-search-icon{transition:.3s cubic-bezier(0.23, 1, 0.32, 1);top:7px;left:10px;will-change:transform,opacity,fill}.filter-reset{display:var(--filter-reset-display, none);right:0;--button-margin: 4px;--button-padding: 3px}#change-theme:focus{transition-property:all}.svg-path-theme_contrast,.svg-path-theme_light,.svg-path-theme_dark{transform-origin:center;transition:transform .3s cubic-bezier(0.165, 0.84, 0.44, 1),fill-opacity .3s cubic-bezier(0.165, 0.84, 0.44, 1) !important}.svg-path-theme_contrast{fill-opacity:var(--theme-contrast-opacity, 0);transform:rotate(var(--theme-contrast-rotate, -45deg))}[data-theme=contrast]{--theme-contrast-opacity: 1;--theme-contrast-rotate: 0deg}.svg-path-theme_light{fill-opacity:var(--theme-light-opacity, 0);transform:rotate(var(--theme-light-rotate, -45deg))}.modal-codemirror-theme-light,[data-theme=light]{--theme-light-opacity: 1;--theme-light-rotate: 0deg}.svg-path-theme_dark{fill-opacity:var(--theme-dark-opacity, 0);transform:rotate(var(--theme-dark-rotate, -45deg))}.modal-codemirror-theme-dark,[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview{--theme-dark-opacity: 1;--theme-dark-rotate: 0deg}.dropdown{position:relative}.dropdown-menu-topbar{display:none;position:var(--dropdown-menu-topbar-position, absolute);z-index:1;min-width:200px;margin-top:1rem;transform:translateY(-2px) translateX(50%);right:calc(50% - var(--offset, 0px));--nub-left: calc(50% - var(--offset, 0px));visibility:hidden;opacity:0;transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1) !important;transition:visibility 0s .2s,opacity .2s,transform .2s}.mouse-hover .dropdown-menu-topbar{transition:visibility 0s .4s,opacity .2s .2s,transform 0s .4s}.touch-open .dropdown-menu-topbar,.mouse-hover:hover .dropdown-menu-topbar{z-index:var(--z-index-dropdown-open);transition:visibility 0s,opacity .2s,transform .2s;visibility:visible;opacity:1;transform:translateY(0) translateX(50%)}.mouse-hover:hover .dropdown-menu-topbar{transition-delay:.2s}.dropdown-menu-topbar .dropdown-header{text-transform:uppercase}.dropdown-item-sort .svg-icon-sort{order:2;--svg-icon-margin: 0 0 0 auto}.dropdown-item-sort .svg-path-sort_name_desc,.dropdown-item-sort .svg-path-sort_kind_desc,.dropdown-item-sort .svg-path-sort_size_asc,.dropdown-item-sort .svg-path-sort_date_asc{display:none}.sort-asc .svg-path-sort_size_asc,.sort-asc .svg-path-sort_date_asc{display:block}.sort-asc .svg-path-sort_size_desc,.sort-asc .svg-path-sort_date_desc{display:none}.sort-desc .svg-path-sort_name_desc,.sort-desc .svg-path-sort_kind_desc{display:block}.sort-desc .svg-path-sort_name_asc,.sort-desc .svg-path-sort_kind_asc{display:none}.svg-path-sort_size_asc{transform-origin:center;transform:scaleY(-1)}#layout-options{padding:1em var(--dropdown-item-padding-x) .5em;border-top:1px solid var(--dropdown-divider-color);margin-top:.5em}#layout-options .checkbox-label{margin-top:.25em}#layout-options .checkbox{font-size:18px}#layout-options label{transition:color .2s}#layout-options>*:not(:hover){color:hsl(var(--hue), 20%, 88%)}.layout-range-label{display:flex;align-items:center;justify-content:space-between}.layout-label-type{font-size:.7em;background-color:var(--dropdown-divider-color);padding:.3em .6em;border-radius:3px;z-index:1}.layout-aspect-ratio{font-family:var(--font-family-monospace);letter-spacing:-1px}.form-range{width:100%;height:1.25rem;background:none;outline:none;z-index:1;position:relative;--range-border-color: hsl(var(--hue), 20%, 28%);--range-thumb-color: hsl(var(--hue), 20%, 50%)}.form-range::-webkit-slider-runnable-track{width:100%;height:.25rem;border-radius:2px;background-color:var(--range-border-color);transition:.2s}.form-range::-moz-range-track{width:100%;height:.25rem;border-radius:2px;background-color:var(--range-border-color);transition:.2s}.form-range::-webkit-slider-thumb{-webkit-appearance:none;width:1.25rem;height:1.25rem;margin-top:-0.5rem;border:1px solid var(--dropdown-surface);box-shadow:0 0 15px -5px #000;box-sizing:border-box;border-radius:50%;background-color:var(--range-thumb-color);cursor:pointer;transition:.2s;transform:scale(var(--range-thumb-scale, 1))}.form-range::-moz-range-thumb{-webkit-appearance:none;width:1.25rem;height:1.25rem;margin-top:-0.5rem;border:1px solid var(--dropdown-surface);box-shadow:0 0 15px -5px #000;box-sizing:border-box;border-radius:50%;background-color:var(--range-thumb-color);cursor:pointer;transition:.2s;transform:scale(var(--range-thumb-scale, 1))}.form-range:hover{--range-border-color: hsl(var(--hue), 20%, 34%);--range-thumb-color: hsl(var(--hue), 20%, 70%)}.form-range:active,.form-range:focus-visible{--range-thumb-color: var(--primary);--range-thumb-scale: 1.25}.form-range:before{content:"";transition:.2s;width:6px;height:6px;background-color:var(--range-border-color);position:absolute;z-index:-1;border-radius:50%;margin-top:6px;left:calc(var(--range-default-pos, 0.5)*100% - var(--range-default-pos, 0.5)*1rem + .5rem - 6px/2)}@media(max-width: 575.98px){#topbar-fullscreen{display:none}}.dropdown-lang-loading{--spinner-size: 48px;--spinner-margin: -5px 0 0 -1px;cursor:not-allowed}.dropdown-lang-loading .dropdown-item-lang{opacity:.7;pointer-events:none}.button-lang:after{line-height:24px;content:attr(data-text);text-transform:uppercase;width:24px;display:block;font-family:var(--font-family-monospace);font-weight:bold}.dropdown-lang-items{padding:8px 16px;display:grid;grid-gap:12px;grid-template-columns:1fr 1fr 1fr 1fr 1fr}.dropdown-item-lang{padding:18px;border-radius:50%;position:relative;background-repeat:no-repeat;background-size:cover;background-position:center}.dropdown-item-lang:after{transition:.2s;font-size:10px;line-height:1;width:20px;padding:5px 0;content:attr(data-action);position:absolute;z-index:1;font-weight:700;text-transform:uppercase;white-space:nowrap;top:-5px;left:-5px;color:#fff;background-color:var(--surface1-dark);border-radius:inherit}.dropdown-item-lang:hover,.dropdown-item-lang.dropdown-lang-active{box-shadow:0 0 0 3px var(--text1-dark)}.dropdown-item-lang:active{transform:scale(1.1)}.dropdown-item-lang:active,.dropdown-item-lang:focus{transition:.2s}#topbar-breadcrumbs{display:flex;align-items:flex-start;line-height:24px;background-color:var(--surface3);padding:.5rem 13px .5rem 39px;border-bottom:1px solid var(--surface1);--fade-in-animation: opacity .5s forwards;font-size:14px}@media(min-width: 768px){#topbar-breadcrumbs{padding-left:48px}}#breadcrumbs{display:flex;flex-wrap:wrap;min-width:0;margin-right:auto}.breadcrumbs-info{color:var(--text2);background-color:var(--surface1);border-radius:999px;white-space:nowrap;padding:2px 10px;margin:-2px 10px -2px 0;animation:var(--fade-in-animation)}@media(max-width: 767.98px){.breadcrumbs-info{display:none}}.breadcrumbs-info:empty{display:none}.breadcrumbs-info-type{display:inline-block}.breadcrumbs-info-size{margin-left:.4em}.breadcrumbs-info-size:before{margin-right:.4em;content:"·"}.folder-buttons{display:flex;gap:var(--small-buttons-gap);margin:calc(var(--small-buttons-bar-padding-y) - 8px) 0;animation:var(--fade-in-animation);--svg-icon-font-size: var(--small-buttons-font-size);--button-padding: var(--small-buttons-padding)}@media(max-width: 991.98px){.button-folder-action:not([data-action=contextmenu]){display:none}}.crumb:not(:first-child):before{content:"/";opacity:.5}.crumb:first-child{margin-left:-40px}.crumb-link{padding:0 8px}@media(hover: hover){.crumb-link:hover{text-decoration:underline}}.crumb:last-child .crumb-link{text-decoration:none;cursor:context-menu}.crumb:last-child .crumb-link.cm-active{--cm-icon: "-";--cm-icon-opacity: 1}.crumb:last-child .crumb-link:hover{--cm-icon-opacity: 1}.crumb:last-child .crumb-link:after{content:var(--cm-icon, "+");opacity:var(--cm-icon-opacity, 0);transition:opacity .15s;margin-left:5px;font-family:var(--font-family-monospace);line-height:1;display:inline-block}#files-sortbar{font-size:.875rem;line-height:24px;background-color:var(--surface2);border-bottom:1px solid var(--surface1);display:none}@media(min-width: 768px){#files-sortbar{display:var(--sortbar-display, none)}}.sortbar-list,.sortbar-imagelist{--sortbar-display: block}.sortbar-inner{display:flex;max-width:calc(var(--list-max) - 20px)}.sortbar-item{display:flex;align-items:center;overflow:hidden;flex-shrink:0;padding-top:4px;padding-bottom:4px;touch-action:manipulation;cursor:pointer;transition:.2s;--svg-icon-margin: 0 0 0 3px;--svg-icon-font-size: 18px;box-shadow:inset -1px 0 0 var(--surface1)}.sortbar-item:not(:hover):not(.sortbar-active){color:var(--text2)}.sortbar-item:hover{background-color:var(--surface3)}.sortbar-active{background-color:var(--surface3);font-weight:500;letter-spacing:-0.02ch}.sortbar-name{flex:1;padding-left:59px}.sortbar-kind{padding-left:15px;padding-right:5px}.sortbar-size{justify-content:flex-end;flex-basis:100px;padding-right:5px}.sortbar-date{--date-base: 165px;flex-basis:calc(var(--date-base) + var(--list-date-flex, 3)*8px);padding-left:10px;padding-right:5px}@media(min-width: 992px)and (max-width: 1199.98px){.sidebar-closed .sortbar-name{padding-left:66px}.sidebar-closed .sortbar-kind{padding-right:10px}.sidebar-closed .sortbar-size{flex-basis:110px;padding-right:10px}.sidebar-closed .sortbar-date{--date-base: 170px;padding-left:15px}}@media(min-width: 1200px){.sortbar-name{padding-left:66px}.sortbar-kind{padding-right:10px}.sortbar-size{flex-basis:110px;padding-right:10px}.sortbar-date{--date-base: 170px;padding-left:15px}}.sortbar-list{padding:0 20px 0 0}.sortbar-imagelist .sortbar-name{padding-left:115px}.sortbar-imagelist .sortbar-date{--date-base: 170px;flex-basis:calc(var(--date-base) + var(--list-date-flex, 3)*9px)}@media(min-width: 992px){.sortbar-imagelist{padding:0 20px 0 0}.sortbar-imagelist .sortbar-name{padding-left:135px}.sidebar-closed .sortbar-imagelist .sortbar-date{--date-base: 175px}}@media(min-width: 1200px){.sortbar-imagelist .sortbar-date{--date-base: 175px}}.svg-icon-sort path{transition:fill-opacity .3s cubic-bezier(0.23, 1, 0.32, 1),transform .3s cubic-bezier(0.23, 1, 0.32, 1)}.svg-icon-sort .svg-path-chevron_up{fill-opacity:var(--up, 0);transform:translateY(var(--upy, -4px))}.svg-icon-sort .svg-path-chevron_down{fill-opacity:var(--down, 0);transform:translateY(var(--downy, 4px))}.sortbar-item:hover,.dropdown-item-sort:hover{--up: 1;--down: 1;--upy: -5px;--downy: 5px}.sortbar-name:not(.sortbar-active):active,.sortbar-kind:not(.sortbar-active):active{--down: .3}.sortbar-size:not(.sortbar-active):active,.sortbar-date:not(.sortbar-active):active{--up: .3}.sort-asc{--upy: 0;--up: 1;--down: 0}.sort-asc:hover:not(:active){--upy: 0;--down: 0}.sort-asc:active{--up: .3}.sort-desc{--downy: 0;--up: 0;--down: 1}.sort-desc:hover:not(:active){--downy: 0;--up: 0}.sort-desc:active{--down: .3}#topbar-info{display:flex;align-items:flex-start;color:rgba(255,255,255,.9);line-height:24px;background-color:var(--topbar-info-surface);padding:.5rem .5rem .5rem 7px;font-size:14px;animation:opacity .3s cubic-bezier(0.23, 1, 0.32, 1)}#topbar-info:empty{display:none}@media(min-width: 768px){#topbar-info{padding:.5rem .5rem .5rem 1rem}}#topbar-info>.svg-icon:first-child{margin-right:.5rem}.info-hidden{display:none !important}.info-warning,.info-error{word-break:break-all}.info-warning [data-lang],.info-error [data-lang]{flex-shrink:0}.info-warning{--topbar-info-surface: var(--color-info)}.info-search{--topbar-info-surface: var(--color-success)}.info-error,.info-nomatch{--topbar-info-surface: var(--color-danger)}.info-search-count,.info-search-phrase{background-color:rgba(0,0,0,.15);border-radius:3px}.info-search-count{flex-shrink:0;min-width:24px;text-align:center;padding:0 .4375em}.info-search-lang{flex-shrink:0;margin:0 .4375em}.info-search-phrase{line-height:18px;padding:3px .4375em;word-break:break-word}@media(max-width: 767.98px){.info-search-phrase{word-break:break-all;margin-right:auto}}@supports(-webkit-line-clamp: 3){.info-search-phrase{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}.info-search-reset{flex-shrink:0;--button-padding: 6px;--button-margin: -6px 6px -6px 1px;--button-surface: rgba(0,0,0,.15);--button-box-shadow-active: inset 0 0 0 50px rgba(0, 0, 0, .1), 0 0 0 3px rgba(0,0,0,.075)}#topbar{--small-buttons-font-size: 20px;--small-buttons-padding: 10px;--small-buttons-gap: 5px;--small-buttons-bar-padding-y: 0px;--select-topbar-display: none;--select-topbar-padding-left: 1px;--select-topbar-buttons-gap: 1px}@media(hover: hover)and (pointer: fine){#topbar{--small-buttons-padding: 9px;--small-buttons-gap: 7px;--small-buttons-bar-padding-y: 1px}}@media(min-width: 390px){#topbar{--select-topbar-buttons-gap: var(--small-buttons-gap)}}@media(min-width: 768px){#topbar{--select-topbar-padding-left: 9px}}.select-mode #select-mode-button:not(:hover){background-color:var(--surface1)}#select-mode-button .svg-path-check{display:var(--select-mode-check-display, block)}#select-mode-button .svg-path-check_all{display:var(--select-mode-check_all-display, none)}.select-mode{--select-mode-check-display: none;--select-mode-check_all-display: block}.topbar-select{--button-disabled-opacity: .33;background-color:var(--surface2);border-bottom:1px solid var(--surface1);display:var(--select-topbar-display);align-items:center;animation:opacity .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow-x:clip;padding:var(--small-buttons-bar-padding-y) 13px var(--small-buttons-bar-padding-y) var(--select-topbar-padding-left)}@media(max-width: 991.98px){.topbar-select{justify-content:space-between;--button-selected-rename-order: -1}}.has-selection,.select-mode .topbar-select:not(.select-display-select),.has-matchingItems.select-display-fixed,.select-display-always{--select-topbar-display: flex}.buttons-selected{display:flex;cursor:var(--buttons-selected-cursor, not-allowed);gap:var(--select-topbar-buttons-gap);margin-left:var(--select-topbar-buttons-gap)}@media(max-width: 575.98px){.buttons-selected{overflow-x:scroll;--tooltip-display: none}}.button-selected-action{--svg-icon-font-size: var(--small-buttons-font-size);--button-padding: var(--small-buttons-padding)}.button-selected-action[data-action=rename]{display:var(--button-selected-rename-display, none);animation:opacity .2s;order:var(--button-selected-rename-order, 1)}.button-selected-action[data-action=zip]{display:var(--button-selected-zip-display, inline-flex)}.button-selected-action[data-action=unzip]{display:var(--button-selected-unzip-display, none)}.has-selection{--buttons-selected-cursor: auto;--select-toggle-close-rotate: 0;--select-toggle-close-opacity: 1;--select-toggle-check-rotate: 90deg;--select-toggle-check-opacity: 0;--selected-count-margin: 0 5px 0 3px}.select-single{--button-selected-rename-display: inline-flex}.select-is-zip{--button-selected-zip-display: none;--button-selected-unzip-display: inline-flex}.button-select-toggle{--button-padding: calc(8px - var(--small-buttons-bar-padding-y));--tooltip-delay: .3s;align-items:center;border-radius:99px}.has-selection .button-select-toggle{--tooltip-delay: .0s;background-color:var(--primary);color:#fff}.button-select-toggle .svg-path-close_thin,.button-select-toggle .svg-path-check{transform-origin:center;transition:transform .15s cubic-bezier(0.165, 0.84, 0.44, 1),fill-opacity .15s cubic-bezier(0.165, 0.84, 0.44, 1)}.button-select-toggle .svg-path-close_thin{transform:rotate(var(--select-toggle-close-rotate, -90deg));fill-opacity:var(--select-toggle-close-opacity, 0)}.button-select-toggle .svg-path-check{transform:rotate(var(--select-toggle-check-rotate, 0));fill-opacity:var(--select-toggle-check-opacity, 1)}.selected-count{font-family:var(--font-family-monospace);font-size:17px;color:#fff;transition:margin .15s cubic-bezier(0.165, 0.84, 0.44, 1);pointer-events:none;margin:var(--selected-count-margin, 0)}@keyframes opacity{0%{opacity:0}100%{opacity:1}}#main{display:flex;flex-direction:column;min-width:320px}@supports(min-height: 100svh){#main{min-height:100svh;min-height:100dvh}}#files-container{flex-grow:1;position:relative}#files{position:relative;z-index:1}#files:empty{display:none}.files-spinner{--spinner-size: 48px}.files-a{display:block;position:relative;touch-action:manipulation;overflow:hidden;color:var(--text3);--button-icon-color: var(--text2);background-color:var(--surface2);box-shadow:var(--box-shadow, none);transition:background-color .3s,box-shadow .3s,transform .3s var(--scale-delay, 0s);transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}.files-a:hover{background-color:var(--surface-active)}@media(hover: hover){.files-a:active{background-color:var(--surface-active);outline:none;box-shadow:var(--box-shadow-active, none)}.files-a.cm-active:active,.files-a:has(.files-context:active){box-shadow:0 0 0 2px var(--surface-active),0 0 0 3px var(--text2)}.files-a:active:not(:has(.files-context:active)):not(.cm-active){--surface-active: var(--surface4);transform:var(--active-scale, none)}.files-a:active:not(:has(.files-context:active)):not(.cm-active) .svg-file-ext{fill-opacity:.99}}.files-a.cm-active{background-color:var(--surface-active);box-shadow:0 0 0 3px var(--surface-active),0 0 0 4px var(--text2);z-index:1;outline:1px dashed var(--text2);outline-offset:6px}.files-a:focus{z-index:2}@media(hover: none){.files-a:hover{z-index:2}}.files-a:focus-visible{outline-color:var(--text3);outline-offset:2px}@media(hover: hover){.files-svg{transition:.3s cubic-bezier(0.23, 1, 0.32, 1)}.files-a-svg:active .files-svg,.cm-active .files-svg{filter:var(--files-svg-active-filter, none)}}.files-img,.files-svg{aspect-ratio:var(--ratio, 1);display:block;width:100%;height:100%}.files-img{object-fit:var(--img-object-fit-ui, cover)}.files-img-svg{object-fit:contain}.files-img-ico{object-fit:scale-down}.svg-file{padding:var(--svg-file-padding)}.svg-folder-large{padding:var(--svg-folder-padding)}.files-img-placeholder{background-size:var(--img-placeholder-size, 50%);background-position:center;background-position-y:var(--img-placeholder-position-y, 50%);background-repeat:no-repeat}.files-img-placeholder:not(.files-lazy){background-image:var(--img-placeholder-bg);transition:opacity .3s}@supports not (aspect-ratio: 1){.files-img-placeholder{min-height:var(--img-placeholder-min-height, auto)}}.files-folder-preview{position:absolute;box-shadow:0 2px 10px -5px #000;object-position:var(--img-object-position, 50% 25%);object-fit:cover;opacity:0;transition:opacity .2s;width:var(--folder-preview-width, 44%);left:var(--folder-preview-left, 50%);top:var(--folder-preview-top, calc(50% - 10px));transform:translateX(-50%) translateY(var(--folder-preview-translateY, -25%))}@supports(aspect-ratio: 1){.files-folder-preview{aspect-ratio:1;max-height:var(--folder-preview-max-height, none)}}@supports not (aspect-ratio: 1){.files-folder-preview{height:var(--folder-preview-width, 44%)}}.svg-overlay-play{padding:4px;fill:#fff;position:absolute;z-index:1;border-radius:50%;font-size:32px;left:var(--svg-play-left, calc(50% - 32px / 2));top:calc(50% - 32px/2);transition:all .3s cubic-bezier(0.23, 1, 0.32, 1),top 0s,left 0s,margin 0s;background-color:var(--overlay-play-surface, rgba(0, 0, 0, 0.3));opacity:0}.files-a-loaded .svg-overlay-play{opacity:1}.files-a-img:hover .svg-overlay-play{--overlay-play-surface: var(--type-color);transform:scale(1.1)}@media(hover: hover){.files-a-img:active .svg-overlay-play{transform:scale(1.2);box-shadow:0 1px 5px -2px #000}}.svg-overlay-play-embed{--overlay-play-surface: var(--type-color)}.files-icon-overlay{top:0;position:absolute;z-index:1;margin:calc(var(--button-padding, 0px) + var(--button-margin, 0px))}@media(hover: hover){.files-a-loaded .files-icon-overlay{transition:fill-opacity .25s cubic-bezier(0.215, 0.61, 0.355, 1)}.files-a-loaded:active:not(:has(.files-context:active)) .files-icon-overlay{fill-opacity:0}}.files-context{position:absolute;top:0;right:0;opacity:0}@media(hover: hover){.files-context{--svg-icon-font-size: 18px;padding:calc(var(--button-padding) + 3px)}}.files-context.cm-active{--button-hsl: var(--hue) 20% 30%}.files-a:hover .files-context,.files-context.cm-active{opacity:1}@media(hover: hover){.files-a-loaded:active .files-context:not(:active){opacity:0}}.name{color:var(--text1)}.title{color:var(--text2)}.size,.dimensions,.exif,.date{white-space:nowrap}.flex{display:none;flex-basis:100%}.ext-inner{color:var(--text2);float:right;font-size:.6875rem;font-weight:600;text-transform:uppercase;background-color:var(--surface3);box-shadow:inset 0 0 0 1px var(--text3);padding:.5em;line-height:1;border-radius:3px;max-width:60px}.files-list .files-a{--surface-active: var(--surface-list-hover, var(--surface4));--box-shadow-active: 0 0 0 3px var(--surface-active), -5px 0 0 0 var(--type-color), 0 0 0 4px var(--surface1)}.files-list .files-a:not(:last-child){margin-bottom:1px}@media(min-width: 768px){.files-list .files-a:active,.files-list .files-a.cm-active{border-radius:3px}}@media(hover: hover){.files-list .files-a:hover{--box-shadow: 0 0 0 0 var(--surface-list-hover), -2px 0 0 0 var(--type-color)}.files-list .files-a:not(:active):not(:focus):not(.cm-active),.files-list .files-a .files-context:not(:hover){transition-duration:0s}}.files-list .files-data{display:flex;flex-wrap:wrap;align-items:center;line-height:165%;padding:var(--files-data-padding)}.files-list .files-svg,.files-list .files-img,.files-list .title,.files-list .fileperms,.files-list .mime,.files-list .exif,.files-list .files-folder-preview,.files-list .files-icon-overlay,.files-list .svg-overlay-play{display:none}.files-list .icon{order:1}.files-list .name{order:2;flex:1;padding-left:7px}.files-list .gps{order:3;margin-left:5px}@media(max-width: 767.98px){.files-list{--button-padding: 8px;--button-margin: 0 5px 0 0;--files-data-padding: 8px 8px 8px 10px}}@media(max-width: 767.98px)and (pointer: fine){.files-list{--button-padding: 3px;--button-margin: 5px}}@media(max-width: 767.98px){.files-list .files-a:hover .ext{opacity:0}.files-list .files-data{font-size:.9375rem}.files-list .name{font-size:1rem}.files-list .ext{order:4}.files-list .ext-inner{margin-left:10px}.files-list .flex{order:6;display:block}.files-list .date{order:7;margin-left:31px}.files-list .size{order:8}.files-list .dimensions{order:9}.files-list .size,.files-list .dimensions{border-left:1px solid var(--divider-color, var(--border-color));margin-left:var(--divider-space, 0.8em);padding-left:var(--divider-space, 0.8em)}.files-list .dimensions{flex:1;text-overflow:ellipsis;overflow:hidden}}@media(max-width: 389.98px){.files-list .date{margin-left:2px}}@media(max-width: 575.98px){.files-list{--divider-space: .6em;--files-data-padding: 8px 8px 8px 7px}}@media(min-width: 768px){.files-list{--button-padding: 5px;padding:20px;--files-data-padding: 6px 0 6px 8px}}@media(min-width: 768px)and (pointer: fine){.files-list{--button-padding: 2px;--button-margin: 3px}}@media(min-width: 768px){.files-list:before{border-radius:3px 3px 0 0}.files-list:after{border-radius:0 0 3px 3px}.files-list:before,.files-list:after{content:"";display:block;height:10px;background-color:var(--surface3)}.files-list .size,.files-list .date{color:var(--text2)}.files-list .dimensions{order:4;margin-left:.5rem}.files-list .ext{order:5;flex-basis:65px}.files-list .size{order:6;font-weight:var(--font-weight-bold);margin-right:20px;text-align:right;flex-basis:100px}.files-list .date{order:7;flex-basis:calc(155px + var(--list-date-flex, 3)*8px)}}@media(min-width: 768px)and (hover: hover){.files-list{--files-data-padding: 5px 0 5px 8px}.files-list .files-data{font-size:.9375rem}}@media(min-width: 992px)and (max-width: 1199.98px){.sidebar-closed .files-list{--files-data-padding: 5px 0 5px 15px}.sidebar-closed .files-list:before,.sidebar-closed .files-list:after{height:20px}.sidebar-closed .files-list .dimensions{margin-left:1rem}.sidebar-closed .files-list .ext{flex-basis:70px}.sidebar-closed .files-list .size{margin-right:30px;flex-basis:110px}}@media(min-width: 1200px){.files-list{--files-data-padding: 5px 0 5px 15px}.files-list:before,.files-list:after{height:20px}.files-list .dimensions{margin-left:1rem}.files-list .ext{flex-basis:70px}.files-list .size{margin-right:30px;flex-basis:110px}}@media(min-width: 1600px){#main{--list-max: var(--list-max-width, 1040px)}}@media(min-width: 1400px){.sidebar-closed{--list-max: var(--list-max-width, 1040px)}}.files-list,.files-imagelist{max-width:var(--list-max, none)}.files-list .files-a:nth-child(odd):not(.cm-active):not(:hover),.files-imagelist .files-a:nth-child(odd):not(.cm-active):not(:hover){background-color:var(--surface3)}.files-imagelist{--svg-play-left: calc(100px/2 - 32px/2);--folder-preview-width: 50px;--folder-preview-left: 50px;--folder-preview-top: 50%;--svg-file-padding: 12px;--svg-folder-padding: 6px;--img-placeholder-min-height: var(--imagelist-min-height, calc(100px / var(--ratio, 1)))}.files-imagelist .files-a{display:flex;margin-bottom:1px;--surface-active: var(--surface4);--box-shadow: 0 0 0 var(--surface-imagelist-hover);--box-shadow-active: 0 0 0 3px var(--surface-active), 0 0 0 4px var(--surface1)}.files-imagelist .files-img,.files-imagelist .files-svg{width:100px;flex-shrink:0;box-shadow:inset -1px 0 0 0 var(--surface1)}.files-imagelist .files-svg{height:100px}.files-imagelist .files-img{height:var(--imagelist-height, 100px);--img-object-fit: cover}.files-imagelist .files-data{overflow:hidden;display:flex;flex-wrap:wrap;flex:1;align-content:flex-start;align-items:center;padding:8px 8px 8px 12px;line-height:165%}.files-imagelist .icon,.files-imagelist .fileperms,.files-imagelist .mime,.files-imagelist .gps,.files-imagelist .files-icon-overlay .svg-path-marker{display:none}.files-imagelist .name{order:2;flex:1;font-size:1rem;padding-right:1px}.files-imagelist .title,.files-imagelist .exif{flex-basis:100%;font-size:.9375rem}.files-imagelist .title{order:16}.files-imagelist .exif{order:17;display:flex;--svg-icon-font-size: 18px}@media(max-width: 767.98px){.files-imagelist{--button-padding: 8px;--button-margin: 0 5px 0 0}}@media(max-width: 767.98px)and (pointer: fine){.files-imagelist{--button-padding: 3px;--button-margin: 5px}}@media(max-width: 767.98px){.files-imagelist .files-a:hover .ext{opacity:0}.files-imagelist .files-data{font-size:.9375rem}.files-imagelist .exif{display:none}.files-imagelist .title{order:5}.files-imagelist .ext{order:4}.files-imagelist .flex{order:6;display:block}.files-imagelist .date{order:7}.files-imagelist .size{order:8}.files-imagelist .dimensions{order:9;margin-right:-5px;flex:1;text-overflow:ellipsis;overflow:hidden}.files-imagelist .size,.files-imagelist .dimensions{border-left:1px solid var(--divider-color, var(--border-color));margin-left:var(--divider-space, 0.8em);padding-left:var(--divider-space, 0.8em)}}@media(max-width: 575.98px){.files-imagelist{--divider-space: 3%}}@media(min-width: 768px){.files-imagelist{--button-padding: 7px;--button-margin: 3px}}@media(min-width: 768px)and (pointer: fine){.files-imagelist{--button-padding: 3px;--button-margin: 7px}}@media(min-width: 768px){.files-imagelist .files-data{padding:10px 0 10px 14px}.files-imagelist .size,.files-imagelist .date{color:var(--text2)}.files-imagelist .dimensions{order:4;margin-left:.5rem}.files-imagelist .ext{order:5;flex-basis:65px}.files-imagelist .size{order:6;font-weight:var(--font-weight-bold);margin-right:20px;text-align:right;flex-basis:100px}.files-imagelist .date{order:7;flex-basis:calc(160px + var(--list-date-flex, 3)*9px)}}@media(min-width: 992px){.files-imagelist{padding:20px}.files-imagelist .files-a{border-radius:3px}.sidebar-closed .files-imagelist .ext{flex-basis:70px}.sidebar-closed .files-imagelist .size{margin-right:30px;flex-basis:110px}}@media(min-width: 1200px){.files-imagelist .ext{flex-basis:70px}.files-imagelist .size{margin-right:30px;flex-basis:110px}}.files-blocks{--svg-play-left: calc(var(--blocks-height, 140px)/2 - 32px/2);--folder-preview-width: calc(var(--blocks-height, 140px) / 2);--folder-preview-left: calc(var(--blocks-height, 140px) / 2);--folder-preview-top: 50%;--svg-file-padding: calc(var(--blocks-height, 140px) / 8);--svg-folder-padding: calc(var(--blocks-height, 140px) / 14);--img-object-fit-ui: var(--img-object-fit);--button-padding: 9px;--button-margin: 1px}@media(pointer: fine){.files-blocks{--button-padding: 3px;--button-margin: 7px}}.files-blocks .files-a{--box-shadow: 0 0 0 0 var(--surface-active);--box-shadow-active: 0 0 0 3px var(--surface-active);height:var(--blocks-height, 140px);display:flex;margin:var(--blocks-margin, 1px 0)}.files-blocks .files-a:hover .name{margin-right:32px}.files-blocks .files-img,.files-blocks .files-svg{width:var(--blocks-height, 140px);flex-shrink:0;box-shadow:inset -1px 0 0 0 var(--surface1)}.files-blocks .files-data{padding:10px 10px 5px 15px;overflow:hidden;width:100%;font-size:.9375rem}.files-blocks .fileperms,.files-blocks .mime,.files-blocks .ext,.files-blocks .icon,.files-blocks .exif,.files-blocks .gps{display:none}.files-blocks .name,.files-blocks .title,.files-blocks .dimensions,.files-blocks .size,.files-blocks .date{display:block}.files-blocks .name{font-size:1rem}@media(max-width: 389.98px){.files-blocks .files-data{padding:8px 5px 5px 12px}}@media(min-width: 390px){.files-blocks{--blocks-margin: .5rem}.files-blocks .files-a{border-radius:3px;--box-shadow: 0 0 0 0 var(--surface-active), var(--files-border-bottom)}}@media(min-width: 576px){.files-blocks{--blocks-margin: var(--blocks-space, calc(0.9vw + 5px))}}@media(min-width: 768px){.files-blocks{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--blocks-width, calc(340px + 2%)), 1fr));grid-auto-rows:1fr;margin:var(--blocks-space, calc(0.9vw + 5px));grid-gap:var(--blocks-space, calc(0.9vw + 5px));--blocks-margin: 0}}@media(min-width: 1400px){.files-blocks{margin:var(--blocks-space, 20px);grid-gap:var(--blocks-space, 20px)}}.files-grid{display:grid;grid-auto-flow:dense;grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 160px), 1fr));grid-auto-rows:1fr;padding:var(--grid-space, calc((8vw + var(--grid-size, 160px)) / 900 * var(--grid-space-factor, 50)));grid-gap:var(--grid-space, calc((8vw + var(--grid-size, 160px)) / 900 * var(--grid-space-factor, 50)));--img-object-fit-ui: var(--img-object-fit);--folder-preview-max-height: 44%}.files-grid .files-a{border-radius:var(--grid-border-radius, 3px);aspect-ratio:var(--grid-aspect, 1)}@supports not (aspect-ratio: 1){.files-grid::before{content:"";width:0;padding-bottom:calc(100%*(2.5 - var(--grid-aspect, 1)))}.files-grid::before,.files-grid .files-a:first-child{grid-row:1/1;grid-column:1/1}.files-grid .files-img,.files-grid .files-svg{position:absolute}}.files-grid,.files-rows,.files-columns{--button-padding: 9px;--button-margin: 3%}@media(hover: hover){.files-grid,.files-rows,.files-columns{--button-padding: 3px}}.files-grid .files-a-loaded,.files-rows .files-a-loaded,.files-columns .files-a-loaded{--button-icon-color: white;--button-hsl: var(--hue) 20% 14%}.files-grid .files-a-loaded .files-zoom,.files-rows .files-a-loaded .files-zoom,.files-columns .files-a-loaded .files-zoom{cursor:var(--files-cursor, pointer)}.files-grid,.files-rows,.columns-noinfo{--img-placeholder-position-y: 45%;--svg-file-padding: 10% 18% calc(20px + 10%);--svg-folder-padding: 0 12% 20px;--active-scale: scale(1.02);--box-shadow: var(--files-border-bottom)}.files-grid .files-a-loaded.files-zoom:not(:active),.files-rows .files-a-loaded.files-zoom:not(:active),.columns-noinfo .files-a-loaded.files-zoom:not(:active){--scale-delay: .3s}.files-grid .files-data,.files-rows .files-data,.columns-noinfo .files-data{position:absolute;top:0;width:100%;height:100%;bottom:0;display:flex;flex-direction:column;justify-content:flex-end}.files-grid .mime,.files-grid .date,.files-grid .icon,.files-grid .size,.files-grid .exif,.files-grid .dimensions,.files-grid .ext,.files-grid .title,.files-grid .gps,.files-rows .mime,.files-rows .date,.files-rows .icon,.files-rows .size,.files-rows .exif,.files-rows .dimensions,.files-rows .ext,.files-rows .title,.files-rows .gps,.columns-noinfo .mime,.columns-noinfo .date,.columns-noinfo .icon,.columns-noinfo .size,.columns-noinfo .exif,.columns-noinfo .dimensions,.columns-noinfo .ext,.columns-noinfo .title,.columns-noinfo .gps{display:none}.files-grid .name,.files-rows .name,.columns-noinfo .name{display:block;font-size:var(--grid-font-size, 0.875rem);color:var(--text2);font-weight:400;text-align:center;line-height:1;padding:var(--name-padding, calc(0.3em + 3%))}.files-grid .files-a-loaded .files-data,.files-rows .files-a-loaded .files-data,.columns-noinfo .files-a-loaded .files-data{opacity:var(--files-data-opacity, 0);transition:opacity var(--files-data-transition-duration, 0.5s) cubic-bezier(0.215, 0.61, 0.355, 1);background:linear-gradient(rgba(0, 0, 0, 0.2), transparent 30%, transparent 60%, rgba(0, 0, 0, 0.6))}.files-grid .files-a-loaded:hover,.files-rows .files-a-loaded:hover,.columns-noinfo .files-a-loaded:hover{--files-data-opacity: 1}@media(hover: hover){.files-grid .files-a-loaded,.files-rows .files-a-loaded,.columns-noinfo .files-a-loaded{--files-data-transition-duration: 0.25s}.files-grid .files-a-loaded.files-data-hidden .files-data,.files-grid .files-a-loaded:active:not(:has(.files-context:active)):not(:has(.svg-check:active)),.files-rows .files-a-loaded.files-data-hidden .files-data,.files-rows .files-a-loaded:active:not(:has(.files-context:active)):not(:has(.svg-check:active)),.columns-noinfo .files-a-loaded.files-data-hidden .files-data,.columns-noinfo .files-a-loaded:active:not(:has(.files-context:active)):not(:has(.svg-check:active)){--files-data-opacity: 0}}.files-grid .files-a-loaded.cm-active,.files-rows .files-a-loaded.cm-active,.columns-noinfo .files-a-loaded.cm-active{--files-data-opacity: 1}.files-grid .files-a-loaded .name,.files-rows .files-a-loaded .name,.columns-noinfo .files-a-loaded .name{color:#fff;font-weight:normal}.files-a-audio-picture{--files-data-opacity: 1}.files-rows{--img-placeholder-size: calc(var(--rows-size, 150px) / 1.8);--img-placeholder-min-height: var(--rows-height, var(--rows-size, 150px));--name-padding: calc(.25em + var(--rows-size, 150px)/20);--button-margin: calc(var(--rows-size, 150px)/30);display:flex;flex-wrap:wrap;padding:var(--rows-space, calc((8% + var(--rows-size, 150px)) / 1000 * var(--rows-space-factor, 50))) 0 0 var(--rows-space, calc((8% + var(--rows-size, 150px)) / 1000 * var(--rows-space-factor, 50)));justify-content:var(--rows-justify-content, space-evenly)}.files-rows:after{content:"";flex-grow:9}.files-rows .files-a{flex-basis:calc(var(--ratio, 1)*var(--rows-size, 150px));flex-grow:var(--rows-flex-grow, 1);height:var(--rows-height, auto);margin:0 var(--rows-space, calc((8% + var(--rows-size, 150px)) / 1000 * var(--rows-space-factor, 50))) var(--rows-space, calc((8% + var(--rows-size, 150px)) / 1000 * var(--rows-space-factor, 50))) 0;border-radius:var(--rows-border-radius, 3px)}.files-columns{columns:var(--columns-size, 180px);column-gap:var(--columns-space, calc((10vw + var(--columns-size, 180px)) / 1000 * var(--columns-space-factor, 50)));padding:var(--columns-space, calc((10vw + var(--columns-size, 180px)) / 1000 * var(--columns-space-factor, 50)));--img-placeholder-min-height: calc(var(--columns-size, 180px) / var(--ratio, 1))}.files-columns .files-a{page-break-inside:avoid;break-inside:avoid-column;display:inline-block;vertical-align:middle;width:100%;border-radius:var(--columns-border-radius, 3px);margin-bottom:var(--columns-space, calc((10vw + var(--columns-size, 180px)) / 1000 * var(--columns-space-factor, 50)));z-index:auto}.files-columns .files-img-ico{width:auto;max-width:100%;height:auto;display:block;margin:0 auto}.columns-info{--ratio: auto;--svg-file-padding: 15% 25%;--svg-folder-padding: 0% 18% 2%;--folder-preview-width: 36%;--folder-preview-top: 0;--folder-preview-translateY: 64%}.columns-info .files-a{--box-shadow: 0 0 0 0 var(--surface-active);--box-shadow-active: 0 0 0 3px var(--surface-active)}.columns-info .files-a-loaded:before{transition:opacity .25s cubic-bezier(0.215, 0.61, 0.355, 1);opacity:0;position:absolute;content:"";width:100%;height:100%;background:linear-gradient(rgba(0, 0, 0, 0.2), transparent 100px)}.columns-info .files-a-loaded:hover:before{opacity:1}.columns-info .files-data{display:flex;flex-direction:column;padding:calc(.3em + 3%);line-height:1.3;gap:.2em;box-shadow:0 -1px 0 0 var(--surface1);font-size:.8125rem}.columns-info .icon,.columns-info .ext,.columns-info .exif-gps{display:none}.columns-info .gps{position:absolute;align-self:flex-end;--svg-icon-font-size: 18px}.columns-info .gps+.name{padding-right:18px}.columns-info .files-icon-overlay .svg-path-marker{display:none}.columns-info .name{font-size:.875rem;word-break:break-all}.columns-info .title{word-break:break-word}@supports(-webkit-line-clamp: 3){.columns-info .name,.columns-info .title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}.columns-info .exif{display:flex;flex-wrap:wrap;order:10;border-top:1px solid var(--border-color);margin-top:.3em;padding-top:.5em;column-gap:.5em;row-gap:.1em}.columns-info .exif .svg-icon{display:none}.columns-info .svg-overlay-play{margin-top:-39px}[data-theme=dark],.modal-codemirror-theme-dark .markdown-preview{--selected-svg-bg: hsl(var(--hue), 35%, 30%);--selected-svg-fg: hsl(var(--hue), 30%, 38%)}[data-theme=dark] .files-a:has(.svg-check-select:active),.modal-codemirror-theme-dark .markdown-preview .files-a:has(.svg-check-select:active),[data-theme=dark] [data-selected],.modal-codemirror-theme-dark .markdown-preview [data-selected]{--svg-file-bg: var(--selected-svg-bg);--svg-file-flip: var(--selected-svg-fg);--svg-file-icon: var(--selected-svg-fg);--svg-folder-bg-large: var(--selected-svg-bg);--svg-folder-fg-large: var(--selected-svg-fg)}.list{--box-shadow-width: 2px;--check-transition: all .2s;--check-margin: calc(var(--button-margin, 0px) + 3px);--check-opacity: 0;--check-color-default: var(--text2);--check-color-active: white;--check-bg-default: transparent;--check-bg-active: var(--select-color);--check-border-radius: 50%;--check-bg-hover: var(--surface1)}.files-list,.files-imagelist,.files-blocks{--box-shadow-width: 1px}.files-imagelist .files-a:not(.files-a-loaded),.files-blocks .files-a:not(.files-a-loaded){--check-bg-default: var(--surface2)}.files-list{--check-bg-default: var(--surface2);--check-bg-hover: var(--surface3);--check-margin: var(--files-data-padding);--check-transition: all .2s, opacity 0s}.files-list [data-selected]{border-radius:3px}@media(hover: hover){.select-mode-disabled .files-list .files-a:not([data-selected]):not(:active):hover{--check-transition: opacity .2s .3s}.select-mode-disabled .files-list .files-a:not([data-selected]):active,.select-mode-disabled .files-list .files-a:not([data-selected]) .svg-check-select:not(:active):hover{--check-transition: none}.select-mode-disabled .files-list .files-a:not([data-selected]) .icon{transition:var(--check-transition);opacity:calc(1 - var(--check-opacity))}.select-mode-disabled .files-list .files-a:not([data-selected]):active:not(:has(.svg-check-select:hover)){--check-opacity: 0;--check-transition: opacity .2s}}.files-list [data-selected] .icon{visibility:hidden}[data-selected]{color:var(--text2);--check-opacity: 1;--check-color: white;--check-color-active: var(--check-color-default);--check-bg: var(--select-color);--check-bg-active: var(--check-bg-default);background-color:var(--surface-selected) !important}[data-selected]:not(.drop-target-active){box-shadow:0 0 0 var(--box-shadow-width) var(--select-color) !important}.svg-folder-bg,.svg-folder-fg,.svg-file-bg,.svg-file-flip,.svg-file-icon{transition:fill .2s}.files-a:not(.cm-active):hover{--check-opacity: 1}.list:not(.files-list) .files-a-loaded{--check-color: white;--check-color-active: white;--check-color-default: white;--check-bg-hover: rgba(0, 0, 0, .2)}@media(hover: hover){.select-mode-disabled .list:not(.files-list) .files-a-loaded:active .svg-check-select:not(:hover){--check-opacity: 0}}.svg-check-select{position:absolute;top:0;z-index:2;pointer-events:auto;cursor:pointer;margin:var(--check-margin);--svg-icon-fill: var(--check-color, var(--check-color-default));background-color:var(--check-bg, var(--check-bg-default));transition:var(--check-transition);opacity:var(--check-opacity);border-radius:var(--check-border-radius);padding:3px}@media(hover: hover){.svg-check-select:hover{--check-color-default: var(--text1);--check-bg-default: var(--check-bg-hover)}.svg-check-select:active{--check-color: var(--check-color-active);--check-bg: var(--check-bg-active)}}.svg-path-check{pointer-events:none}.select-mode .files-a{cursor:pointer}@media(hover: hover){.select-mode .files-a:active:not(:has(.files-context:active)){--surface-active: var(--surface-selected) !important;--box-shadow-active: none;--active-scale: 1;--files-data-opacity: 1 !important;--files-svg-active-filter: none;--check-color: var(--check-color-active);--check-bg: var(--check-bg-active)}.select-mode .files-a:active:not(:has(.files-context:active)) .files-context{opacity:1 !important}[data-theme=dark] .select-mode .files-a:active:not(:has(.files-context:active)),.modal-codemirror-theme-dark .markdown-preview .select-mode .files-a:active:not(:has(.files-context:active)){--svg-file-bg: var(--selected-svg-bg);--svg-file-flip: var(--selected-svg-fg);--svg-file-icon: var(--selected-svg-fg);--svg-folder-bg-large: var(--selected-svg-bg);--svg-folder-fg-large: var(--selected-svg-fg)}}.files-a:has(.svg-check-select:active){--surface-active: var(--surface-selected) !important;--box-shadow-active: none;--active-scale: 1;--files-data-opacity: 1 !important;--files-svg-active-filter: none}.files-a:has(.svg-check-select:active) .files-context{opacity:1 !important}.select-mode,.files-a-loaded:has(.svg-check-select:hover){--files-svg-active-filter: none}.select-mode .svg-overlay-play,.files-a-loaded:has(.svg-check-select:hover) .svg-overlay-play{transform:none !important;box-shadow:none !important}.select-enabled .files-a:hover,[data-selected]{--icon-overlay-fill-opacity: 0}.pswp{display:none;position:fixed;overflow:hidden;touch-action:none;z-index:1500;-webkit-text-size-adjust:100%;-webkit-backface-visibility:hidden;outline:none;contain:strict}.pswp--open{display:block}.pswp--animate_opacity{opacity:.001;will-change:opacity;transition:opacity 333ms cubic-bezier(0.6, 0, 0, 1)}.pswp--animate_opacity .pswp__bg{transition:none}.pswp--animated-in .pswp__zoom-wrap,.pswp--animated-in .pswp__bg{transition:none}.pswp__bg{position:absolute;background-color:var(--popup-bg);opacity:0;transform:translateZ(0);-webkit-backface-visibility:hidden;will-change:opacity;transition:opacity 333ms cubic-bezier(0.6, 0, 0, 1)}.pswp__scroll-wrap{position:absolute;overflow:hidden}.pswp__container,.pswp__zoom-wrap{touch-action:none;position:absolute;-webkit-backface-visibility:hidden}.pswp__container,.pswp__img{-webkit-touch-callout:none}.pswp__item{position:absolute;overflow:hidden}.pswp__zoom-wrap{position:absolute;width:100%;transform-origin:left top;transition:transform 333ms cubic-bezier(0.6, 0, 0, 1)}.pswp__img{position:absolute;width:auto;height:auto;top:0;left:0;max-width:none;image-orientation:none;clip-path:var(--clip-path, none);transition:clip-path cubic-bezier(0.6, 0, 0, 1) var(--clip-path-transition-duration, 0s)}.pswp--zoom-cursor .pswp__img{cursor:default}.pswp--zoom-allowed.pswp--zoom-cursor .pswp__img{cursor:zoom-in}.pswp--zoom-allowed.pswp--zoomed-in .pswp__img{cursor:grab}.pswp--zoom-allowed.pswp--dragging .pswp__img{cursor:grabbing}@supports(image-orientation: from-image){.server-exif .pswp__img{image-orientation:from-image}}.pswp__img[src$=".avif"]{object-fit:scale-down}.pswp__img--placeholder{-webkit-backface-visibility:hidden}.pswp__img--placeholder--blank{background-color:var(--popup-placeholder-bg, hsl(var(--hue), 20%, 6%))}.pswp__error-msg{text-align:center;color:var(--text1-dark);margin-top:calc(50vh - 8px)}.pswp__error-msg a{text-decoration:underline}.pswp__ui{z-index:1550;color:#fff;--button-hsl: var(--hue) 20% 12%}.has-scrollbars.popup-open{overflow:hidden}.pswp__timer{display:none;position:absolute;width:100%;height:2px;background-color:var(--popup-timer-color, white);transform-origin:left;z-index:4;transform:scaleX(0);will-change:transform,opacity;transition:height .2s}.pswp__ui--idle .pswp__timer,.pswp__ui--hidden .pswp__timer{height:1px}.pswp__top-bar{display:flex;align-items:center;justify-content:flex-end;white-space:nowrap;position:absolute;left:0;top:0;width:100%;z-index:3;background:linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);padding:.5rem .5rem .5rem 1rem;--button-padding: 12px}@media(min-width: 576px){.pswp__top-bar{padding:10px 1rem 10px 1.5rem}}.pswp--has_mouse .pswp__top-bar{opacity:.8}.pswp__top-bar:hover{opacity:1}.pswp__counter{font-family:var(--font-family-monospace);margin-right:1rem}.popup-counter-separator{margin:0 3px}.pswp__search{--svg-icon-margin: 0 5px 0 0}.pswp__search:empty{display:none}@media(min-width: 576px){.pswp__search{max-width:360px}}.pswp__topbar-spacer{flex-grow:1}.pswp__spinner{--spinner-position: static;--spinner-color: white;--spinner-margin: 0 12px 0 0}.pswp__button--close{--svg-icon-font-size: 36px;--button-padding: 6px}.pswp__button--arrow--left,.pswp__button--arrow--right{display:none;position:absolute;z-index:2;height:100%;--svg-icon-fill: rgba(255, 255, 255, .9);--svg-icon-font-size: 46px;--svg-icon-surface: rgba(0,0,0,.2);min-width:66px}.pswp--has_mouse .pswp__button--arrow--left,.popup-ui-pano .pswp__button--arrow--left,.pswp--has_mouse .pswp__button--arrow--right,.popup-ui-pano .pswp__button--arrow--right{display:block}@media(min-width: 992px){.pswp__button--arrow--left,.pswp__button--arrow--right{width:calc(66px + 3%)}}@media(min-width: 1200px){.pswp__button--arrow--left,.pswp__button--arrow--right{--svg-icon-font-size: 52px}}.pswp__button--arrow--left .svg-icon,.pswp__button--arrow--right .svg-icon{background-color:var(--svg-icon-surface);border-radius:50%;transition:.3s cubic-bezier(0.23, 1, 0.32, 1);padding:5px;transform:var(--svg-icon-transform, none)}.pswp__button--arrow--left:hover,.pswp__button--arrow--left:focus,.pswp__button--arrow--right:hover,.pswp__button--arrow--right:focus{--svg-icon-fill: white;--svg-icon-surface: var(--surface3-dark)}.pswp__button--arrow--left:active,.pswp__button--arrow--right:active{--svg-icon-surface: var(--surface2-dark);--svg-icon-transform: scale(.96)}.pswp__button--arrow--left{left:0}.pswp__button--arrow--right{right:0}.svg-path-pause,.svg-path-play{transform-origin:center;transition:transform cubic-bezier(0.23, 1, 0.32, 1) .3s,fill-opacity .1s}.svg-path-pause{fill-opacity:var(--svg-path-pause-opacity, 0);transform:rotate(var(--svg-path-pause-rotate, -60deg))}.svg-path-play{fill-opacity:var(--svg-path-play-opacity, 1);transform:rotate(var(--svg-path-play-rotate, 0deg))}.is-playing,.plyr__control--pressed,.audioplayer-playing{--svg-path-pause-opacity: 1;--svg-path-pause-rotate: 0deg;--svg-path-play-opacity: 0;--svg-path-play-rotate: 60deg}.svg-path-collapse{display:var(--fullscreen-collapse, none)}.svg-path-expand{display:var(--fullscreen-expand, block)}.is-fullscreen{--fullscreen-collapse: block;--fullscreen-expand: none}.pswp__button--zoom{display:none}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp__button--zoom .svg-path-magnify_minus{display:none}.pswp--zoomed-in .svg-path-magnify_minus{display:inline}.pswp--zoomed-in .svg-path-magnify_plus{display:none}.pswp__ui--one-slide .pswp__button--arrow--left,.pswp__ui--one-slide .pswp__button--arrow--right,.pswp__ui--one-slide .pswp__button--play,.pswp__ui--one-slide .pswp__counter{display:none}.pswp__element--disabled{display:none !important}.pswp__caption,.pswp__top-bar,.pswp__button--arrow--left,.pswp__button--arrow--right{transition:transform .3s cubic-bezier(0.165, 0.84, 0.44, 1),opacity .3s cubic-bezier(0.165, 0.84, 0.44, 1),background-color .2s;will-change:transform,opacity;-webkit-backface-visibility:hidden}.pswp__ui--idle .pswp__caption-hide:not(.pswp__caption-locked):not(:hover),.pswp__ui--idle .pswp__top-bar:not(:hover),.pswp__ui--idle .pswp__button--arrow--left:not(:hover),.pswp__ui--idle .pswp__button--arrow--right:not(:hover){opacity:0;visibility:hidden;transition:transform 0s .6s,opacity .6s,visibility 0s .6s}.pswp__ui--idle .pswp__top-bar:not(:hover){transform:translateY(-3px)}.pswp__ui--idle .pswp__caption-hide:not(.pswp__caption-locked):not(:hover){transform:translateY(3px)}.pswp__ui--idle .pswp__button--arrow--left:not(:hover){transform:translateX(-3px)}.pswp__ui--idle .pswp__button--arrow--right:not(:hover){transform:translateX(3px)}.pswp__ui--hidden:not(.popup-ui-pano) .pswp__top-bar{transform:translateY(-3px)}.pswp__ui--hidden:not(.popup-ui-pano) .pswp__caption{transform:translateY(3px)}.pswp__ui--hidden:not(.popup-ui-pano) .pswp__top-bar,.pswp__ui--hidden:not(.popup-ui-pano) .pswp__caption,.pswp__ui--hidden:not(.popup-ui-pano) .pswp__button--arrow--left,.pswp__ui--hidden:not(.popup-ui-pano) .pswp__button--arrow--right{transition:transform 0s .33s,opacity .33s,visibility 0s .33s;opacity:0;visibility:hidden}.pswp__container-multi{cursor:pointer}.pswp__container--idle,.pswp__ui--idle{cursor:none}.pswp__caption{--popup-color1: hsl(var(--hue), 20%, 98%);--popup-color2: hsl(var(--hue), 20%, 86%);--popup-color3: hsl(var(--hue), 20%, 77%);position:absolute;left:0;bottom:0;width:100%;z-index:1}@media(hover: hover){.pswp__caption:hover{z-index:5}}@media(min-width: 1025px)and (hover: hover){.pswp__caption:before{content:"";position:absolute;left:0;right:0;top:-32px;bottom:100%}}.pswp__caption__center{padding:1em;display:flex;flex-direction:column;row-gap:var(--popup-caption-gap, 0.35em);color:var(--popup-color2);font-size:var(--popup-caption-font-size, 0.875rem);line-height:var(--popup-caption-line-height, 1.35);word-break:break-word;--divider-color: rgba(255,255,255,.2)}.pswp__caption__center:empty{display:none}@media(min-width: 768px){.pswp__caption__center{display:inline-flex;max-width:var(--popup-caption-max-width, 800px)}}.pswp__button--lock-caption{display:none;opacity:0;visibility:hidden;position:absolute;z-index:1;background-color:rgba(0,0,0,.7);margin-top:-54px}.pswp__caption-align-center-left .pswp__button--lock-caption,.pswp__caption-align-center .pswp__button--lock-caption{left:calc(50% - 22px)}.pswp__caption-align-right .pswp__button--lock-caption{right:16px}.pswp__button--lock-caption .svg-path-lock_outline{display:none}.pswp__caption:hover .pswp__button--lock-caption{visibility:visible;opacity:1}.pswp__ui--idle .pswp__caption:hover .pswp__button--lock-caption{opacity:0}@media(min-width: 1025px){.pswp--has_mouse .pswp__caption-hide .pswp__button--lock-caption{display:inline-block}}.pswp__caption-locked .svg-path-lock_outline{display:inline}.pswp__caption-locked .svg-path-lock_open_outline{display:none}.pswp__caption--empty{display:none}.pswp__caption-style-block{background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%)}.pswp__caption-style-box{padding:0 8px 8px}@media(min-width: 641px){.pswp__caption-style-box{padding:0 16px 16px}}.pswp__caption-style-box .pswp__caption__center{transition:background-color .2s;background-color:rgba(0,0,0,.6);padding:1rem 1.125rem;border-radius:3px}.pswp__caption-style-box:hover .pswp__caption__center{background-color:#000}.pswp__caption-style-subtitles{padding-top:5px}.pswp__caption-style-subtitles .pswp__button--lock-caption{bottom:100%}.pswp__caption-style-subtitles .pswp__caption__center>*{background-color:#000}.pswp__caption-align-right .pswp__caption-style-subtitles .pswp__caption__center>*{float:right}.pswp__caption-style-gradient:before{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:0;top:-60px;background-image:linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%)}@media(min-width: 992px){.pswp__caption-style-gradient:before{background-image:radial-gradient(ellipse 800px 100% at 45% 100%, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%)}}.pswp__caption-style-block:hover,.pswp__caption-style-gradient:hover,.pswp__caption-style-none:hover{background-color:rgba(0,0,0,.7)}.pswp__caption-align-left .pswp__button--arrow--left{z-index:1}.pswp__caption-align-center .pswp__caption,.pswp__caption-align-center-left .pswp__caption{text-align:center}.pswp__caption-align-center-left .pswp__caption__center{text-align:left}.pswp__caption-align-right .pswp__caption{text-align:right}.pswp__caption-align-right .pswp__button--arrow--right{z-index:1}@supports(-webkit-line-clamp: 3){.popup-title,.popup-description,.popup-keywords{display:-webkit-box;-webkit-line-clamp:var(--popup-caption-line-clamp, 3);-webkit-box-orient:vertical;overflow:hidden}@media screen and (min-height: 500px){.popup-title,.popup-description,.popup-keywords{-webkit-line-clamp:calc(var(--popup-caption-line-clamp, 3) + 1)}}@media screen and (min-height: 600px){.popup-title,.popup-description,.popup-keywords{-webkit-line-clamp:calc(var(--popup-caption-line-clamp, 3) + 2)}}@media screen and (min-height: 700px){.popup-title,.popup-description,.popup-keywords{-webkit-line-clamp:calc(var(--popup-caption-line-clamp, 3) + 3)}}}.popup-basename{font-weight:500;font-size:1.1em;color:var(--popup-color1)}.popup-image-meta,.popup-exif{display:flex;white-space:nowrap;overflow:hidden}.popup-image-meta{margin:.1em 0}.popup-date{text-transform:capitalize}.popup-date .relative-time{font-style:italic}.popup-date .relative-time:before{content:"  -  "}.popup-exif{flex-wrap:wrap;--svg-icon-font-size: 18px;margin-bottom:.1em}.popup-title:not(:last-child){color:var(--popup-color1);font-weight:500}.popup-keywords{font-style:italic;color:var(--popup-color3)}.popup-ui-video .pswp__button--arrow--left,.popup-ui-video .pswp__button--arrow--right{height:100px;top:calc(50% - 50px);min-width:auto;width:auto}.popup-video{position:absolute;top:64px;right:0px;bottom:0px;left:0px;max-height:calc(100% - 64px);margin:auto}.pswp--has_mouse .popup-video{top:0px;max-height:100%}.popup-video:not(:fullscreen){width:100%;height:100%;object-fit:scale-down}.pswp__error-msg,.popup-video{cursor:default}.pnlm-render-container{transition:opacity .3s}.pnlm-render-container:empty{opacity:0}.pswp__button--pano-rotate{display:none}.popup-ui-pano .pswp__button--pano-rotate{display:block}.pswp__button--pano-rotate .svg-path-motion_play_outline,.pswp__button--pano-rotate .svg-path-motion_pause_outline{transform-origin:center;transition:transform cubic-bezier(0.23, 1, 0.32, 1) .3s}.pswp__button--pano-rotate .svg-path-motion_pause_outline{visibility:hidden}.pswp__button--pano-rotate.is-rotating .svg-path-motion_play_outline{visibility:hidden;transform:rotate(180deg)}.pswp__button--pano-rotate.is-rotating .svg-path-motion_pause_outline{visibility:visible;transform:rotate(180deg)}.popup-ui-pano .pswp__caption{display:var(--popup-pano-caption-display, none)}.pnlm-load-box{color:#fff;position:absolute;top:calc(50% + 24px);left:calc(50% - 50px);width:100px}.pnlm-load-box p{display:none}.pnlm-lbar{background-color:var(--surface4-dark);height:4px;border-radius:2px;overflow:hidden;animation:opacity 1s}.pnlm-lbar-fill{width:0;transition:width .2s;background-color:var(--text3-dark);height:100%;border-radius:2px}.popup-pano-placeholder{position:absolute;left:calc(50% - 24px);top:calc(50% - 34px);--svg-icon-font-size: 48px}.popup-pano-placeholder .svg-panorama_variant{fill:var(--surface4-dark)}.pnlm-container{overflow:hidden;position:relative;cursor:default;width:100%;height:100%;-webkit-user-select:none;user-select:none;outline:0;contain:content}.pnlm-ui,.pnlm-render-container,.pnlm-dragfix,.pnlm-preview-img{position:absolute;height:100%;width:100%}.pnlm-ui{z-index:1}.pnlm-grab{cursor:grab}.pnlm-grabbing{cursor:grabbing}.pnlm-render-container{cursor:inherit}.pnlm-pointer{cursor:pointer}.pnlm-about-msg{display:none !important}.modal{contain:strict;display:grid;position:fixed;z-index:var(--z-index-modal);background-color:var(--surface1);overscroll-behavior:contain;pointer-events:none;overflow-y:auto;opacity:0;transition:opacity .3s cubic-bezier(0.165, 0.84, 0.44, 1);overflow-y:overlay}@supports(background-color: HSL(50 50% 50%/50%)){.modal{background-color:var(--modal-bg)}}@media(min-width: 320px){.modal{overflow-x:hidden}}.modal-open{overflow:hidden}.modal-show{pointer-events:auto;opacity:1;cursor:zoom-out;--modal-popup-transition: width .2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow .3s}.modal-popup{--width-small: 480px;--width-large: 640px;--modal-video-background: hsl(var(--hue) 20% 4%);position:relative;display:flex;flex-direction:column;min-width:320px;cursor:auto;word-break:break-word;min-height:var(--modal-popup-min-height, auto);max-height:var(--modal-popup-max-height, none);transition:var(--modal-popup-transition, none);background-color:var(--modal-surface, var(--surface4));--width: var(--width-large);--margin: 0px;--padding: 1rem;--nav-offset: 10px;--nav-top-center: calc(50vh - 22px - var(--margin));--nav-top: var(--nav-top-center);--border-radius: 0;--justify: stretch;--align: start;--justify-large: end;--align-large: start;--fullscreen-collapse: none;--fullscreen-expand: block;margin:var(--margin);border-radius:var(--border-radius);justify-self:var(--justify);align-self:var(--align)}@media(min-width: 576px){.modal-popup{--margin: 32px;--padding: 1.125rem;--nav-offset: -22px;--border-radius: 3px;--modal-preview-border-radius: 0 0 3px 3px;--fullscreen-button-display: block}}@media(min-width: 768px){.modal-popup{--justify: center;width:var(--width);--modal-preview-code-width: var(--width);--modal-popup-code-overflow-x: hidden;--nav-offset: -64px}}@media(min-width: 768px)and (hover: hover)and (pointer: fine){.modal-popup{--justify: var(--justify-large);--align: var(--align-large);--nav-top: var(--nav-top-large);--modal-pos-button: grid;--nav-offset: -22px}}.modal-popup:not(.modal-popup-fullscreen){--webkit-scrollbar-width: 6px;box-shadow:inset 0 2px 0 0 var(--type-color),var(--modal-box-shadow)}.modal-popup-idle{--ui-opacity: 0;--ui-transition-opacity: opacity .3s 1s}@media(max-width: 575.98px){.modal-popup-tapped{--ui-opacity: 0}}.modal-popup-tapped.modal-popup-fullscreen{--ui-opacity: 0}.modal-multi{--modal-nav-display: block}.modal-pos-x-start{--justify-large: start}.modal-pos-x-center{--justify-large: center}@media(min-width: 768px){.modal-pos-x-center{--nav-offset: calc(50% - var(--width-large)/2 - 64px);--modal-nav-position: fixed}}@media(min-width: 992px){.modal-pos-x-center{--nav-offset: calc(50% - var(--width-large)/2 - 88px);--modal-nav-scale: 1.125;--modal-nav-scale-active: 1.05}}.modal-pos-x-end{--justify-large: end}.modal-pos-y-start{--align-large: start;--nav-top-large: 80px}.modal-pos-y-center{--align-large: center;--nav-top-large: calc(50% - 22px)}.modal-pos-y-end{--align-large: end;--nav-top-large: calc(100% - 124px)}@media(min-width: 768px){.modal-pos-y-end{--counter-top: auto;--counter-bottom: 0}}.modal-nav-left,.modal-nav-right{display:var(--modal-nav-display, none);position:var(--modal-nav-position, absolute);top:var(--nav-top);z-index:7;transform:scale(var(--modal-nav-scale, 1));background-color:var(--surface4);filter:drop-shadow(0 2px 5px rgba(0, 0, 0, 0.075));opacity:var(--ui-opacity, 1);transition:color,background-color,box-shadow,var(--ui-transition-opacity, opacity),transform;transition-duration:.3s;transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}.modal-nav-left{left:var(--nav-offset)}.modal-nav-right{right:var(--nav-offset)}.modal-nav-active,.modal-nav-left:focus-visible,.modal-nav-left:hover,.modal-nav-right:focus-visible,.modal-nav-right:hover,.modal-nav-active~.modal-preview,.modal-nav-left:focus-visible~.modal-preview,.modal-nav-left:hover~.modal-preview,.modal-nav-right:focus-visible~.modal-preview,.modal-nav-right:hover~.modal-preview{--ui-opacity: 1;--ui-transition-opacity: opacity .1s}.modal-nav-active{--modal-nav-scale: var(--modal-nav-scale-active, .9)}.modal-header{flex-shrink:0;display:flex;align-items:center;z-index:1;padding:7px 7px 7px var(--padding);--button-padding: 9px}@media(hover: hover){.modal-header:not(:hover){--button-icon-color: var(--text2)}}.modal-title{flex-grow:1;margin:0 .5rem 0 0;font-weight:400;font-size:1.375rem}.modal-button-close{--svg-icon-font-size: 36px;--button-padding: 4px}.modal-fullscreen-button{display:var(--fullscreen-button-display, none);animation:opacity .2s}.modal-code-button{display:var(--code-button-display, none);animation:opacity .2s}.svg-path-wrap{display:var(--path-wrap, none)}.svg-path-wrap_disabled{display:var(--path-wrap_disabled, inline)}.wrap-enabled{--path-wrap: inline;--path-wrap_disabled: none}[data-theme=dark] .modal-button-theme,.modal-codemirror-theme-dark .markdown-preview .modal-button-theme{display:none}.modal-codemirror-theme-light{--theme-dark-rotate: -45deg;--modal-preview-code-surface: var(--cm-surface-light)}.modal-codemirror-theme-dark{--theme-light-opacity: 0;--theme-light-rotate: 45deg;--modal-preview-code-surface: var(--cm-surface-dark)}.modal-pos{display:var(--modal-pos-button, none);grid-template-columns:repeat(3, 1fr);width:30px;height:38px;padding:7px 3px;margin:0 2px;flex-shrink:0;transition:transform .25s cubic-bezier(0.23, 1, 0.32, 1);--pad: 2px}.modal-pos:hover{z-index:1;--pad: 1px;transform:scale(2)}.modal-pos-el{cursor:pointer;transition:transform .25s cubic-bezier(0.23, 1, 0.32, 1);position:relative}.modal-pos-el:after{content:"";position:absolute;top:var(--pad);bottom:var(--pad);right:var(--pad);left:var(--pad);background-color:currentColor}.modal-pos-el:not(:hover):not(.modal-pos-active){opacity:.2}.modal-pos-el:hover:after{background-color:var(--type-color)}.modal-pos-el:active{transform:scale(1.5)}.modal-preview{flex-grow:1;display:flex;justify-content:center;align-items:stretch;position:relative;min-height:var(--modal-preview-min-height, 160px);aspect-ratio:var(--modal-preview-aspect-ratio, auto);box-shadow:0 1px 0 var(--border-color),0 -1px 0 var(--border-color);background:repeating-conic-gradient(var(--surface4) 0 25%, transparent 0 50%) 50%/20px 20px var(--surface3);--img-placeholder-size: 100px}.modal-preview:after{display:var(--modal-nav-display, none);content:attr(data-counter);position:absolute;top:var(--counter-top, 0);bottom:var(--counter-bottom, auto);right:0;pointer-events:none;padding:4px 8px;font-family:var(--font-family-monospace);background-color:var(--surface4);opacity:var(--ui-opacity, 1);transition:var(--ui-transition-opacity, opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1));z-index:1}.modal-preview-pdf:hover,.modal-preview-document:hover,.modal-preview-embed:hover,.modal-preview-audio:hover,.modal-preview-video:hover{--ui-opacity: 0}.modal-preview-a{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;--folder-preview-width: 90px;--folder-preview-top: 50%}.modal-popup-file,.modal-popup-dir,.modal-popup-audio,.modal-popup-custom-preview,.modal-popup-video-thumb,.modal-popup-pdf-thumb{--width: var(--width-small)}.modal-popup-code{--code-button-display: block;--modal-popup-min-height: 320px}.modal-popup-code-transition{overflow-x:var(--modal-popup-code-overflow-x, visible)}.modal-popup-code-transition .modal-preview-code{width:var(--modal-preview-code-width, auto)}.modal-popup-video{--modal-popup-min-height: 100px}.modal-popup-code,.modal-popup-video{--modal-popup-max-height: calc(100% - var(--margin) * 2)}.modal-popup-embed{--modal-preview-aspect-ratio: 16 / 9;--modal-popup-max-height: calc(100vh - var(--margin) * 2)}@supports not (aspect-ratio: 16/9){.modal-popup-embed{--modal-preview-min-height: calc(var(--width-large) / 1.7777777778)}}@supports(max-height: 100dvh){.modal-popup-embed{--modal-popup-max-height: calc(100dvh - var(--margin) * 2)}}.modal-popup-pdf,.modal-popup-document{--align: stretch}.modal-popup-fullscreen{--width: auto;--justify: stretch;--align: stretch;--border-radius: 0;--margin: 0px;--modal-pos-button: none;--nav-offset: 10px;--fullscreen-button-display: block;--fullscreen-collapse: block;--fullscreen-expand: none;--modal-svg-height: 100%;--nav-top: var(--nav-top-center);--modal-preview-aspect-ratio: auto;--modal-popup-min-height: 160px;--modal-popup-max-height: 100vh;--modal-preview-border-radius: 0;overflow:auto}@supports(max-height: 100dvh){.modal-popup-fullscreen{--modal-popup-max-height: 100dvh}}.modal-popup-fullscreen img{width:auto;max-height:100%}.modal-popup-fullscreen .modal-video{height:100%}.modal-popup-fullscreen .modal-audio{max-width:480px}.modal-popup-fullscreen .files-folder-preview{max-width:45%;width:200px;max-height:50%;border-radius:3px}.modal-preview-image,.modal-preview-video,.modal-preview-video-thumb,.modal-preview-pdf,.modal-preview-document,.modal-preview-custom-preview,.modal-preview-embed{box-shadow:inset 0 1px 0 var(--border-color),inset 0 -1px 0 var(--border-color)}.modal-preview-code{justify-content:normal;transition:background-color .3s cubic-bezier(0.23, 1, 0.32, 1);background:var(--modal-preview-code-surface)}.modal-preview-audio{background:none;--modal-preview-min-height: auto}.modal-preview-audio-has-picture{flex-direction:column;padding-top:1rem}.modal-preview-audio-picture{margin:auto;order:-1;max-width:50%;max-height:60vh !important;box-shadow:var(--modal-box-shadow);border-radius:2%}.modal-svg{height:var(--modal-svg-height, 160px);max-height:320px;max-width:70%;filter:var(--files-svg-active-filter, none)}.modal-svg.svg-file{padding:20px 0}.modal-svg>*{transform-origin:center}.modal-image{cursor:zoom-in}.modal-pdf-thumb{max-height:320px}.modal-video,.modal-audio,.modal-pdf,.modal-document{width:100%;outline:none}.modal-embed{background:var(--modal-video-background);width:100%;display:flex}.modal-embed-iframe{flex:1}.modal-video{background:var(--modal-video-background);aspect-ratio:var(--ratio, 16/9);object-fit:var(--modal-video-object-fit, scale-down)}.modal-video:fullscreen,.plyr:fullscreen,.modal-popup-fullscreen{--modal-video-object-fit: contain}.modal-audio{align-self:center;margin:1rem;max-width:calc(100% - 1rem)}.modal-pdf,.modal-document{height:100%}.modal-svg,.modal-custom-preview,.modal-pdf-thumb,.modal-video-thumb{margin:auto}.modal-info{color:var(--text2);flex-shrink:0;display:var(--modal-info-display, flex);flex-direction:column;--modal-info-spacing: .375rem;row-gap:var(--modal-info-spacing);padding:var(--padding);margin-bottom:3px;line-height:1.3;font-size:.9375rem;order:1;animation:opacity .3s}.modal-info:empty{--modal-info-display: none}.modal-info:empty+.modal-preview:not(.modal-preview-audio){border-radius:var(--modal-preview-border-radius, 0);overflow:hidden}.modal-info-mime,.modal-info-date,.modal-info-exif .exif-Model{--svg-icon-margin: 0 6px 0 -2px}.modal-info-name{color:var(--text1);font-size:1.0625rem;padding-bottom:2px}.modal-info-meta,.modal-info-exif{line-height:24px}.modal-info-mime{min-width:0}.modal-info-dimensions,.modal-info-filesize,.modal-info-permissions{flex-shrink:0}.modal-info-permissions{font-weight:500;--svg-icon-font-size: 18px;--svg-icon-margin: 0 2px 0 0}@media(max-width: 460px){.modal-popup-image .modal-info-permissions{display:none}}.is-readwrite{color:var(--color-success-light)}.not-readwrite{color:var(--color-danger-light)}.modal-info-date,.modal-info-exif{border-top:1px solid var(--border-color);padding-top:var(--modal-info-spacing);--svg-icon-fill: var(--text3)}.modal-info-date{line-height:24px}.modal-info-date .relative-time{color:var(--text3);display:inline-block;font-style:italic}.modal-info-date .relative-time:before{content:"~";margin:0 .5em;opacity:.5}.modal-info-exif{flex-wrap:wrap}.modal-info-iptc{display:flex;flex-direction:column;--modal-iptc-spacing: .5rem;row-gap:var(--modal-iptc-spacing);margin-top:.875rem}.modal-info-title,.modal-info-headline{color:var(--text1)}.modal-info-title:first-child:not(:last-child),.modal-info-headline:first-child:not(:last-child){font-size:1rem}.modal-info-keywords:not(:first-child),.modal-info-location:not(:first-child),.modal-info-owner:not(:first-child){border-top:1px solid var(--border-color);padding-top:var(--modal-iptc-spacing)}@media(min-width: 992px){.modal-info-description{max-width:640px}}.modal-info-keywords{font-style:italic;font-size:.875rem}.modal-info-location,.modal-info-owner{display:flex;flex-direction:column;font-size:.875rem}.modal-preview-spinner{--spinner-size: 48px;--spinner-color: var(--text3);--spinner-z-index: 2}audio::-webkit-media-controls-panel{background-color:var(--surface2)}.svg-path-eye_outline{display:var(--path-eye, none)}.svg-path-eye_check_outline{display:var(--path-eye_check, none)}.svg-path-two_pager{display:var(--path-two_pager, none)}.modal-markdown-button{display:var(--markdown-button-display, none)}.markdown-mode-edit,.markdown-mode-preview,.markdown-mode-split{--markdown-button-display: block}.markdown-mode-edit{--path-eye: inline;--markdown-preview-display: none}.markdown-mode-preview{--path-eye_check: inline;--codemirror-display: none}@media(min-width: 390px){.markdown-mode-preview{--markdown-preview-padding: 1.5rem}}.markdown-mode-split{--path-two_pager: inline;--markdown-preview-width: 50%;--markdown-preview-border: 1px solid var(--border-color)}@media(min-width: 768px){.markdown-mode-split{--markdown-preview-padding: 1.25rem}}@media(min-width: 768px){.modal-popup-fullscreen{--markdown-preview-padding: 2rem}}.CodeMirror{display:var(--codemirror-display, block);flex-basis:var(--markdown-preview-width, 100%)}.markdown-preview{display:var(--markdown-preview-display, block);width:var(--markdown-preview-width, 100%);padding:var(--markdown-preview-padding, 1rem);overflow-y:scroll;border-left:var(--markdown-preview-border, none)}.markdown-preview>:first-child{margin-top:0}.markdown-preview a{color:var(--primary);text-decoration:underline}.markdown-preview pre{overflow-x:auto;padding:.5rem;font-size:.8125rem;color:var(--text2);background-color:var(--surface2);border-radius:3px}.markdown-preview hr{border:0;border-top:1px solid var(--text3)}@media(max-width: 389.98px){.modal-popup-code .context-button,.modal-button-theme,.modal-markdown-button{display:none}}.plyr{width:100%;z-index:1;--plyr-color-main: var(--primary);--plyr-audio-controls-background: transparent;--plyr-audio-control-color: var(--text1);--plyr-font-family: var(--font-family-monospace);--plyr-tooltip-radius: 3px;--plyr-range-thumb-height: 12px;--plyr-range-track-height: 4px;--plyr-control-radius: 3px;--plyr-tooltip-background: var(--surface4);--plyr-tooltip-color: var(--text1);--plyr-menu-background: var(--surface4);--plyr-menu-color: var(--text1);--plyr-menu-radius: 3px;--plyr-menu-back-border-color: var(--border-color);--plyr-menu-back-border-shadow-color: var(--border-color);--plyr-video-background: var(--modal-video-background, rgba(0, 0, 0, 1));--plyr-badge-background: var(--plyr-color-main);--plyr-menu-arrow-color: var(--text3);--svg-icon-font-size: var(--player-icon-size)}@supports(background-color: hsla(50, 50%, 50%, 0.5)){.plyr{--plyr-color-main: var(--type-color);--button-hsl: var(--type-hsl, var(--hsl-primary));--plyr-audio-progress-buffered-background: hsl(var(--hue) 15% 60% / 25%);--plyr-progress-loading-background: hsl(var(--hue) 15% 60% / 50%);--plyr-audio-range-thumb-active-shadow-color: hsl(var(--hue) 15% 60% / 25%)}}.modal-popup{--player-icon-size: 24px;--player-controls-gap: 1px;--player-progress-max-width: auto;--player-font-size-time-fullscreen: .875rem;--player-icon-size-fullscreen: 28px;--player-controls-gap-fullscreen: 3px;--player-progress-max-width-fullscreen: 360px}.player-controls-custom{padding:var(--player-controls-padding, 10px) !important;gap:var(--player-controls-gap);justify-content:center}.plyr--video{--player-controls-padding: 35px .5rem .5rem;--fullscreen-collapse: none;--fullscreen-expand: inline}.plyr--audio{z-index:2;align-self:center}.plyr--audio .player-volume-input{margin-right:1rem !important}@media(max-width: 575.98px){.player-volume-input{display:none !important}}@media(hover: none){.player-volume-input{display:none !important}}.player-play{display:var(--player-play, inline-flex);--svg-icon-font-size: calc(var(--player-icon-size) + 6px);--button-padding: 7px}.player-play-overlaid{display:var(--player-play-overlaid-display, none);position:absolute;--svg-icon-font-size: calc(var(--player-icon-size) + 12px);--button-padding: 7px;left:calc(50% - var(--svg-icon-font-size)/2 - var(--button-padding));top:calc(50% - var(--svg-icon-font-size)/2 - var(--button-padding));z-index:2;background-color:var(--type-color);--button-icon-color: white;--svg-path-play-opacity: 1;--svg-path-play-rotate: 0deg;opacity:.9}.player-play-overlaid:hover,.player-play-overlaid:focus{opacity:1}.plyr--playing .player-play-overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video{--player-play-overlaid-display: var(--player-play-overlaid, inline-flex)}.player-progress{display:var(--player-progress, block);max-width:var(--player-progress-max-width, none)}.player-time{display:var(--player-time, block)}.player-mute{display:var(--player-mute, inline-flex)}.player-volume{display:var(--player-volume, flex)}.plyr--airplay-supported .player-airplay{display:var(--player-airplay, none)}.plyr--captions-enabled .player-captions{display:var(--player-captions, inline-flex)}.plyr--fullscreen-enabled .player-fullscreen{display:var(--player-fullscreen, inline-flex)}.plyr--pip-supported .player-pip{display:var(--player-pip, none)}.svg-path-volume_high{display:var(--volume-high, inline)}.svg-path-volume_mute{display:var(--volume-mute, none)}.svg-closed_caption{opacity:var(--caption-opacity, 0.5)}.plyr__control--pressed{--fullscreen-collapse: inline;--fullscreen-expand: none;--volume-mute: inline;--volume-high: none;--caption-opacity: 1}.plyr--html5 .plyr__poster{pointer-events:none}.plyr--video .plyr__controls,.plyr__captions{transition-duration:.3s}.plyr--video.plyr--hide-controls .plyr__controls{transform:translateY(3px)}.plyr--vimeo{background:var(--plyr-video-background, #000)}.plyr--vimeo .plyr__video-embed{width:auto}.plyr__video-embed__container{max-width:100vw}@media(min-width: 768px){.modal-popup-fullscreen,.plyr:fullscreen,.plyr--fullscreen-fallback{--plyr-font-size-time: var(--player-font-size-time-fullscreen);--player-icon-size: var(--player-icon-size-fullscreen);--player-controls-gap: var(--player-controls-gap-fullscreen)}}@media(min-width: 992px){.modal-popup-fullscreen,.plyr:fullscreen,.plyr--fullscreen-fallback{--player-progress-max-width: var(--player-progress-max-width-fullscreen)}}.plyr--fullscreen-fallback{z-index:8}@media(max-width: 575.98px){.modal-popup-fullscreen .plyr--audio{bottom:80px}}@media(min-width: 576px){.modal-popup-fullscreen .plyr--audio{bottom:29px;max-width:calc(100% - 128px);--plyr-audio-controls-background: var(--surface3);border-radius:999px}}@media(min-width: 992px){.modal-popup-fullscreen .plyr--audio{max-width:640px}}.files-a.drop-target-active{outline:2px dashed var(--select-color) !important;background-color:var(--surface-selected) !important;z-index:2}.files-list .files-a.drop-target-active{border-radius:3px}.crumb-link.drop-target-active,.menu-a.drop-target-active{position:relative;border-radius:3px}.crumb-link.drop-target-active:before,.menu-a.drop-target-active:before{animation:opacity .2s;content:"";border:2px dashed var(--select-color);position:absolute;left:0;top:0;width:100%;height:100%;border-radius:3px}.menu-a.drop-target-active{background-color:var(--surface-selected);opacity:1;--menu-icon-folder-fill-opacity: 1}.crumb-link.drop-target-active{background-color:var(--surface-selected);display:inline-block}.drop-target-trashcan{position:fixed;bottom:1rem;right:1rem;--svg-icon-font-size: 48px;--svg-icon-fill: white;background-color:var(--color-danger);padding:10px;border-radius:50%;display:none;animation:opacity .33s;transition:.2s cubic-bezier(0.215, 0.61, 0.355, 1);outline:3px dashed rgba(0,0,0,0);outline-offset:1px}.drop-target-trashcan.drop-target-active{transform:scale(1.05);outline:3px dashed var(--color-danger)}.drag-el-active{transition:opacity .33s;opacity:.33 !important}.drag-single,.drag-multi{position:fixed;background-color:var(--surface4);border-left:2px solid var(--type-color)}.drag-single{padding:.5rem 1rem .5rem .8rem;border-radius:3px;font-size:.875rem;min-width:120px;max-width:200px;line-height:24px;color:var(--text1);--svg-icon-fill: var(--text1);--svg-icon-margin: 0 6px 0 0}.drag-multi{--radius: 5px;padding:2px;--svg-icon-font-size: 48px;border-radius:var(--radius)}.drag-multi-count{position:absolute;right:-1px;top:-2px;font-size:12px;padding:3px;min-width:18px;line-height:1;text-align:center;border-radius:0 3px 0 3px;font-family:var(--font-family-monospace);background-color:var(--surface1-dark);color:#fff}.fm-processing{opacity:.5 !important;pointer-events:none;transition:opacity .3s}:root{--audioplayer-shadow: var(--modal-box-shadow)}[data-theme=contrast]{--audioplayer-shadow: 0 5px 25px -15px hsl(var(--hue), 20%, 40%)}.audioplayer{--type-color: var(--type-audio);--type-hsl: var(--hsl-audio);--player-icon-size: 28px;--button-padding: 8px;--plyr-font-family: var(--font-family-monospace);--player-controls-padding: 5px;--fullscreen-collapse: inline;--fullscreen-expand: none;position:fixed;z-index:1;background-color:var(--surface3);box-shadow:0 -2px 0 0 var(--type-audio),var(--audioplayer-shadow);animation:opacity .5s;--audioplayer-margin: 0;bottom:var(--audioplayer-margin);right:var(--audioplayer-margin);left:var(--audioplayer-margin);--audioplayer-margin-sm: 10px;--audioplayer-margin-md: 1rem;--audioplayer-font-family: var(--plyr-font-family);--audioplayer-width: 320px}@media(min-width: 576px){.audioplayer{width:var(--audioplayer-width);--audioplayer-margin: var(--audioplayer-margin-sm);left:auto;border-radius:3px}}@media(min-width: 768px){.audioplayer{--audioplayer-margin: var(--audioplayer-margin-md)}}.audioplayer:hover{--audioplayer-mini-toggle-opacity: 1}.audioplayer-play{transition:all .3s cubic-bezier(0.23, 1, 0.32, 1),order 0s;order:var(--audioplayer-play-order, 0)}.audioplayer-progress{margin:0 3px}.audioplayer-time:last-child{margin-right:5px}.audioplayer-title{font-family:var(--audioplayer-font-family);font-size:.8125rem;padding:6px 10px 6px 1rem;border-bottom:1px solid var(--surface1)}.audioplayer-title-autohide{animation:opacity .3s;display:var(--audioplayer-title, none)}.audioplayer:hover,.audioplayer-title-show{--audioplayer-title: block}.audioplayer-previous,.audioplayer-next{display:var(--audioplayer-nav, flex);animation:opacity .3s}.audioplayer-single{--audioplayer-nav: none}.audioplayer-multi{transition:all .2s cubic-bezier(0.215, 0.61, 0.355, 1)}.audioplayer-mini{left:auto;--audioplayer-width: auto;--audioplayer-play-order: 1;--fullscreen-collapse: none;--fullscreen-expand: inline}@media(max-width: 575.98px){.audioplayer-mini{--audioplayer-margin: var(--audioplayer-margin-sm)}}.audioplayer-mini .audioplayer-title,.audioplayer-mini .audioplayer-progress,.audioplayer-mini .audioplayer-time{display:none}.audioplayer-mini:not(.audioplayer-multi:hover){border-radius:50%;--audioplayer-nav: none;box-shadow:0 0 0 0 rgba(0,0,0,0),var(--audioplayer-shadow)}.audioplayer-mini .plyr{min-width:0}.audioplayer-mini-toggle{display:var(--audioplayer-mini-toggle, inline-flex);opacity:var(--audioplayer-mini-toggle-opacity, 0);--svg-icon-font-size: 18px;--button-padding: 7px;position:absolute;top:-16px;right:0;background-color:var(--surface3);box-shadow:0 2px 10px -3px rgba(0,0,0,.2)}@media(max-width: 575.98px){.has-audioplayer .list{margin-bottom:85px}}.audioplayer-playing{--box-shadow: var(--audioplayer-playing-box-shadow) !important}.list{--audioplayer-playing-box-shadow: 0 0 0 var(--box-shadow-width) var(--type-audio)}.files-list,.files-imagelist{--audioplayer-playing-box-shadow: -2px 0 0 0 var(--type-audio)} ================================================ FILE: index.php ================================================ '', 'root_url_path' => null, 'root_lock' => null, 'start_path' => false, 'username' => '', 'password' => '', 'load_images' => true, 'load_files_proxy_php' => false, 'load_images_max_filesize' => 1000000, 'image_resize_enabled' => true, 'image_resize_use_imagemagick' => false, 'image_resize_cache' => true, 'image_resize_cache_use_dir' => false, 'image_resize_dimensions' => 320, 'image_resize_dimensions_retina' => 480, 'image_resize_dimensions_allowed' => '', 'image_resize_quality' => 85, 'image_resize_function' => 'imagecopyresampled', 'image_resize_sharpen' => true, 'image_resize_memory_limit' => 256, 'image_resize_max_pixels' => 60000000, 'image_resize_min_ratio' => 1.5, 'image_resize_cache_direct' => false, 'folder_preview_image' => true, 'folder_preview_default' => '_filespreview.jpg', 'menu_enabled' => true, 'menu_max_depth' => 5, 'menu_sort' => 'name_asc', 'menu_cache_validate' => true, 'menu_load_all' => false, 'menu_recursive_symlinks' => true, 'layout' => 'rows', 'cache' => true, 'cache_key' => 0, 'clean_cache_interval' => 7, 'clean_cache_allow_manual' => false, 'image_cache_file' => 'cache.txt', 'image_cache_max_last_access_time' => 90, 'image_cache_validate_time' => true, 'storage_path' => '_files', 'files_include' => '', 'files_exclude' => '', 'dirs_include' => '', 'dirs_exclude' => '', 'allow_symlinks' => true, 'get_mime_type' => false, 'license_key' => '', 'download_dir' => 'browser', 'download_dir_cache' => 'dir', 'assets' => '', 'allow_all' => false, 'allow_upload' => false, 'allow_delete' => false, 'allow_rename' => false, 'allow_new_folder' => false, 'allow_new_file' => false, 'allow_duplicate' => false, 'allow_text_edit' => false, 'allow_zip' => false, 'allow_unzip' => false, 'allow_move' => false, 'allow_copy' => false, 'allow_download' => true, 'allow_mass_download' => false, 'allow_mass_copy_links' => false, 'allow_settings' => false, 'allow_check_updates' => false, 'allow_tests' => true, 'allow_tasks' => false, 'demo_mode' => false, 'upload_allowed_file_types' => '', 'upload_max_filesize' => 0, 'upload_exists' => 'increment', 'ffmpeg_path' => 'ffmpeg', 'imagemagick_path' => 'convert', 'imagemagick_prefer_imagick' => true, 'imagemagick_image_types' => 'heif, heic, tiff, tif, psd, dng', 'use_google_docs_viewer' => false, 'lang_default' => 'en', 'lang_auto' => true, 'index_cache' => false, ]; // global application variables created on new Config() public static $version = '0.15.3'; // Files Gallery version public static $config = []; // config array merged from _filesconfig.php, config.php and default config public static $localconfigpath = '_filesconfig.php'; // optional config file in current dir, useful when overriding shared configs public static $localconfig = []; // config array from localconfigpath public static $storagepath; // absolute storage path for cache, config, plugins and more, normally _files dir public static $storageconfigpath; // absolute path to storage config, normally _files/config/config.php public static $storageconfig = []; // config array from storage path, normally _files/config/config.php public static $cachepath; // absolute cache path shortcut public static $__dir__; // absolute __DIR__ path with normalized OS path public static $__file__; // absolute __FILE__ path with normalized OS path public static $root; // absolute root path interpolated from config root option, normally current dir public static $document_root; // absolute server document root with normalized OS path public static $created = []; // checks what dirs and files get created by config on ?action=tests // config construct created static app vars and merge configs public function __construct() { // get absolute __DIR__ and __FILE__ paths with normalized OS paths self::$__dir__ = Path::realpath(__DIR__); self::$__file__ = Path::realpath(__FILE__); // load local config _filesconfig.php if exists self::$localconfig = $this->load(self::$localconfigpath); // create initial config array from default and localconfig self::$config = array_replace(self::$default, self::$localconfig); // set absolute storagepath, create storage dirs if required, and load, create or update storage config.php $this->storage(); // get server document root with normalized OS path self::$document_root = Path::realpath($_SERVER['DOCUMENT_ROOT']); // install.php - allow edit settings and create users from interface temporarily when file is named "install.php" // useful when installing Files Gallery, allows editing settings and creating users without having to modify config.php manually // remember to rename the file back to index.php once you have edited settings and/or created users. if(U::basename(__FILE__) === 'install.php') self::$config['allow_settings'] = true; // at this point we must check if login is required or user is already logged in, and then merge user config new Login(); // assign root realpath after login user is resolved self::$root = Path::valid_root(self::get('root')); // error if root path does not exist if(!self::$root) U::error('Invalid root dir "' . self::get('root') . '"'); // shortcut option `allow_all` allows all file actions (except settings, check_updates, tests, tasks) if(self::get('allow_all')) foreach (['upload', 'delete', 'rename', 'new_folder', 'new_file', 'duplicate', 'text_edit', 'zip', 'unzip', 'move', 'copy', 'download', 'mass_download', 'mass_copy_links'] as $k) self::$config['allow_'.$k] = true; } // public shortcut function to get config option Config::get('option') public static function get($option){ return self::$config[$option]; } // public get config comma-delimited string option as array public static function get_array($option) { $str = self::$config[$option]; return !empty($str) && is_string($str) ? array_map('trim', explode(',', $str)) : []; } // load a config file and trim values / returns empty array if file doesn't exist private function load($path) { if(empty($path) || !file_exists($path)) return []; $config = include $path; if(empty($config) || !is_array($config)) return []; return array_map(function($v){ return is_string($v) ? trim($v) : $v; }, $config); } // set storagepath from config, create dir if necessary private function storage(){ // ignore storagepath and disable cache settings if storage_path is specifically set to FALSE if(self::get('storage_path') === false) { foreach (['cache', 'image_resize_cache', 'folder_preview_image'] as $key) self::$config[$key] = false; return; } // shortcut to config storage_path $path = rtrim(self::get('storage_path'), '\/'); // invalid config storage_path can't be empty or non-string if(!$path || !is_string($path)) U::error('Invalid storage_path parameter'); // get request ?action if any, to determine if we attempt to make dirs and files on config construct $action = U::get('action'); // if ?action=tests, check what dirs and files will get created, for tests output if($action === 'tests') { foreach (['', '/config', '/config/config.php', '/cache/images', '/cache/folders', '/cache/menu'] as $key) { if(!file_exists($path . $key)) self::$created[] = $path . $key; } } // only make dirs and config if main document (no ?action, except action tests) $make = !$action || $action === 'tests'; // make storage path dir if it doesn't exist or return error if($make) U::mkdir($path); // store absolute storagepath self::$storagepath = Path::realpath($path); // error in case storagepath still doesn't seem to exist from realpath() if(!self::$storagepath) U::error('storage_path does not exist and can\'t be created'); // absolute cache path shortcut self::$cachepath = self::$storagepath . '/cache'; // assign storage config path (normally */_files/config/config.php), from where we load config and save options self::$storageconfigpath = self::$storagepath . '/config/config.php'; // load storage config (normally _files/config/config.php) or return empty array self::$storageconfig = $this->load(self::$storageconfigpath); // if storage config is not empty, update config by merging default, storageconfig and localconfig if(!empty(self::$storageconfig)) self::$config = array_replace(self::$default, self::$storageconfig, self::$localconfig); // only make storage dirs and config.php if main document or ?action=tests if(!$make) return; // create required storage dirs if they don't exist / error on fail foreach (['config', 'cache/images', 'cache/folders', 'cache/menu'] as $dir) U::mkdir(self::$storagepath . '/' . $dir); // create or update config file if older than index.php if(!file_exists(self::$storageconfigpath) || filemtime(self::$storageconfigpath) < filemtime(__FILE__)) self::save(); } // save to config.php in storagepath (normally _files/config/config.php) or create new config.php if file doesn't exist public static function save($options = []){ // merge array of parameters with current storageconfig, and intersect with default, to remove invalida/outdated options $save = array_intersect_key(array_replace(self::$storageconfig, $options), self::$default); // create exported array string with save values merged into default values, all commented out $export = preg_replace("/ '/", " //'", U::var_export(array_replace(self::$default, $save))); // loop save options and un-comment options where values differ from default options (for convenience, only store differences) foreach ($save as $key => $value) if($value !== self::$default[$key]) $export = str_replace("//'" . $key, "'" . $key, $export); // write formatted config array to config (normally _files/config/config.php) return @file_put_contents(self::$storageconfigpath, 'set_session_token(); // detect $_POST login attempt if($this->is_login_attempt()) { // on successful login, merge user config and login if($this->is_successful_login()) return $this->login(); // check if browser is already logged in by session } else if($this->is_logged_in()){ // ?logout=1 parameter to logout can only apply if user is already logged in if(U::get('logout')) { // we can return and serve request without login if default config does not require login // un-comment the below if you want to redirect to non-login version on logout, instead of showing the login form // if(!self::$has_public_login) return $this->clear_session(); // logout displays login form return $this->form(); } // merge user config and login return $this->login(); // if not logged in and default config does not require login (no username or password) } else if(!self::$has_public_login) { // ?login=1 displays login form when default config does not require login if(U::get('login')) { // remove $_SESSION['username'] just in case user was removed while session remains if(isset($_SESSION['username'])) unset($_SESSION['username']); // serve request without login if default config does not require login } else return; } // return error if request is an action (don't display login form) if($this->action_request()) return; // display form if not logged in or login failed attempt $this->form(); } // check if _files/users dir exists and return path public static function users_dir(){ return Config::$storagepath && file_exists(Config::$storagepath . '/users') ? Config::$storagepath . '/users' : false; } // get usernames from user_dirs() public static function get_usernames(){ return array_map(function($path){ $arr = explode('/', $path); // get basename, better than basename() in case of multibyte chars return end($arr); // get basename, better than basename() in case of multibyte chars }, self::users_dir() ? glob(self::users_dir() . '/*', GLOB_ONLYDIR|GLOB_NOSORT) : []); } // assign CSRF security $_SESSION['token'] private function set_session_token(){ if(isset($_SESSION['token'])) return; // token already set $_SESSION['token'] = bin2hex(function_exists('random_bytes') ? random_bytes(32) : openssl_random_pseudo_bytes(32)); } // check if user is already logged in by session private function is_logged_in(){ // exit if session username or login hash is not set if(!isset($_SESSION['username']) || !isset($_SESSION['login'])) return false; // get user config from $_SESSION username $this->user = $this->get_user($_SESSION['username']); // logged in if user found login hash matches session login hash // may fail if user is deleted or username/password/IP/user-agent/app-location changes return $this->user && $this->equals($this->login_hash($this->user), $_SESSION['login']); } // detect login attempt private function is_login_attempt(){ // on javascript fetch() from non-login interface, we must populate $_POST from php://input if(U::get('action') === 'login' && empty($_POST)) $_POST = @json_decode(@trim(@file_get_contents('php://input')), true); // is login attempt if $_POST['fusername'] return !!U::post('fusername'); } // detect successful login attempt private function is_successful_login(){ // login attempt if fusername, fpassword and token in $_POST and 'token' exists in $_SESSION if(!U::post('fusername') || !U::post('fpassword') || !U::post('token') || !isset($_SESSION['token'])) return false; // make sure $_SESSION token matches $_POST token if(!$this->equals($_SESSION['token'], U::post('token'))) return false; // get user config from $_POST username $this->user = $this->get_user($_POST['fusername']); // exit if can't find user or password doesn't match if(!$this->user || !$this->passwords_match($this->user['password'], $_POST['fpassword'])) return false; // store username in session $_SESSION['username'] = $this->user['username']; // store login hash specific to user, must match on active sessions $_SESSION['login'] = $this->login_hash($this->user); // successfull login return true; } // successfully logged in by session or login attempt private function login(){ // list of excluded user config options because they should be global or have no function for user or could cause harm // you can add your own options here if you want to prevent some options from being changed per user $user_exclude = [ 'root_lock', // should be global and pre-assiged in _filesconfig.php 'image_resize_use_imagemagick', // should be global 'image_resize_cache_use_dir', // should be global 'image_resize_dimensions', // should not change per user as it invalidates shared image cache 'image_resize_dimensions_retina', // should not change per user as it invalidates shared image cache 'image_resize_dimensions_allowed', // should not change per user as it invalidates shared image cache 'image_resize_quality', // should not change per user as it invalidates shared image cache 'image_resize_function', // should not change per user as it invalidates shared image cache 'image_resize_sharpen', // should not change per user as it invalidates shared image cache 'image_cache_file', // should be global 'image_cache_max_last_access_time', // should be global 'image_cache_validate_time', // should be global 'storage_path', // storage path is always global and must be defined in main config 'ffmpeg_path', // should be global 'imagemagick_path', // should be global 'index_cache', // should be global / not available for logged in users anyway ]; // we are hereby logged in self::$is_logged_in = true; // merge user config into config object Config::$config = array_replace(Config::$config, array_diff_key($this->user, array_flip($user_exclude))); } // clear login-specific session vars, essentially logging out the user private function clear_session(){ foreach (['username', 'login'] as $key) unset($_SESSION[$key]); } // get user config from login attempt or session private function get_user($username){ // trim username just in case $username = trim($username); // create lowercase username for case-insensitive comparison $lower_username = $this->lower($username); // user equals default config user / return username/password array to verify password or session login if($this->lower(Config::get('username')) === $lower_username) { self::$is_default_user = true; // is default config user return [ 'username' => Config::get('username'), 'password' => Config::get('password') ]; } // exit it _files/users dir doesn't exist if(!self::users_dir()) return false; // check if user config exists at _files/users/$username/config.php without making case-insensitive lookup // this should apply in most cases when username is input in identical case or from $_SESSION['username'] // Mac OS will find user case-insensitive, but that's fine as it doesn't then matter how $_SESSION['username'] is stored $user = $this->get_user_config($username); if($user) return $user; // loop user dirs and make case-insensitive username comparison foreach (self::get_usernames() as $username) { // case-insensitive username matches user dir, get user config from $dirname with case in tact (for $_SESSION['username']) if($lower_username === $this->lower($username)) return $this->get_user_config($username); } } // get user config.php file for a specific user $dirname private function get_user_config($dirname){ $user = U::uinclude("users/$dirname/config.php"); // return user config array if(!$user) return; // exit if not found // error if the user array does not contain password *required if(empty($user['password'])) return $this->error('User does not have valid password'); // return user array merged with username, which is used for $_SESSION['login'] login_hash() return array_replace($user, ['username' => $dirname]); } // creates a login hash unique for username/password/IP/user-agent/app-location private function login_hash($user){ return md5($user['username'] . $user['password'] . $this->ip() . $this->server('HTTP_USER_AGENT') . __FILE__); } // compares strings with more secure hash_equals() function (PHP >= 5.6) private function equals($secret, $user){ return function_exists('hash_equals') ? hash_equals($secret, $user) : $secret === $user; } // match passwords using password_verify() if password is encrypted else use plain equality matching for non-encrypted passwords private function passwords_match($stored, $posted){ if(password_get_info($stored)['algoName'] === 'unknown') return $this->equals($stored, $posted); return password_verify($posted, $stored); } // get client IP for login hash matching private function ip(){ foreach(['HTTP_CLIENT_IP','HTTP_X_FORWARDED_FOR','HTTP_X_FORWARDED','HTTP_FORWARDED_FOR','HTTP_FORWARDED','REMOTE_ADDR'] as $key){ $ip = explode(',', $this->server($key))[0]; if($ip && filter_var($ip, FILTER_VALIDATE_IP)) return $ip; } return ''; // return empty string if nothing found } // get $_SERVER parameters helpers private function server($str){ return isset($_SERVER[$str]) ? $_SERVER[$str] : ''; } // lowercase username for case-insensitive username validation uses mb_strtolower() if function exists private function lower($str){ return function_exists('mb_strtolower') ? mb_strtolower($str) : strtolower($str); } // check if request is an action, in which case we return error instead of the form private function action_request(){ // exit if !action (or action is "tests", which requires login from the form) if(!U::get('action') || U::get('action') === 'tests') return false; // return json error if request is POST if($_SERVER['REQUEST_METHOD'] === 'POST') return Json::error('login'); // login error with login link U::error('Please login to continue', 401); } // login page / output form html and exit private function form() { // get form alert caused by logout, invalid session or incorrect login, before we destroy sessions vars $alert = $this->get_form_alert(); // destroy login-specific session vars on logout or if they are invalid / session_unset() $this->clear_session(); // get login form page header U::html_header('Login', 'page-login'); // login page html / check language and render form via javascript (blocks simple bots) ?> ${ this.getlang("' . $text . '") }'; } // outputs an alert in login form on logout, incorrect login or session ID mismatch private function get_form_alert(){ // failed login attempt, normally wrong username or password, although could be invalid login token if(isset($_POST['fusername'])) return $this->alert('invalid login', 'danger'); // logged out by ?logout=1 or cookie/session expired or username/password/IP/user-agent/app-location changed return isset($_SESSION['username']) ? $this->alert('you were logged out', 'warning') : ''; } } // class U / static utility functions (short U because I want compact function access) class U { // get file basename / basically just a wrapper in case it needs to be refined on some servers public static function basename($path){ return basename($path); // because setlocale(LC_ALL,'en_US.UTF-8') // OPTIONAL: replace basename() which may fail on UTF-8 chars if locale != UTF8 //$arr = explode('/', str_replace('\\', '/', $path)); //return end($arr); } // get mime type for file public static function mime($path){ if(function_exists('mime_content_type')) return mime_content_type($path); if(function_exists('finfo_file')) return finfo_file(finfo_open(FILEINFO_MIME_TYPE), $path); return false; } // get file extension with options to lowercase and include dot public static function extension($path, $lowercase = false, $dot = false) { $ext = pathinfo($path, PATHINFO_EXTENSION); if(!$ext) return ''; if($lowercase) $ext = strtolower($ext); if($dot) $ext = '.' . $ext; return $ext; } // glob() wrapper for reading paths / escape [brackets] in folder names (it's complicated) public static function glob($path, $dirs_only = false){ if(preg_match('/\[.+]/', $path)) $path = str_replace(['[',']', '\[', '\]'], ['\[','\]', '[[]', '[]]'], $path); return @glob($path, $dirs_only ? GLOB_NOSORT|GLOB_ONLYDIR : GLOB_NOSORT); } // get $_POST parameter or false public static function post($param){ return isset($_POST[$param]) && !empty($_POST[$param]) ? $_POST[$param] : false; } // get $_GET parameter or false public static function get($param){ return isset($_GET[$param]) && !empty($_GET[$param]) ? $_GET[$param] : false; } // make dir unless it already exists, error if fail public static function mkdir($path){ if(!file_exists($path) && !mkdir($path, 0777, true)) U::error('Failed to create ' . $path, 500); } // helper function to check for and include various files html, php, css and js from storage_path _files/* public static function uinclude($file){ if(!Config::$storagepath) return; $path = Config::$storagepath . '/' . $file; if(!file_exists($path)) return; $ext = U::extension($path); if(in_array($ext, ['html', 'php'])) return include $path; $src = Path::urlpath($path); // get urlpath for public resource if(!$src) return; // return if storagepath is non-public (not inside document root) $src .= '?' . filemtime($path); // append modified time of file, so updated resources don't get cached in browser if($ext === 'js') echo ''; if($ext === 'css') echo ''; } // attempt to ini_get($directive) public static function ini_get($directive){ $val = function_exists('ini_get') ? @ini_get($directive) : false; return is_string($val) ? trim($val) : $val; } // get php ini value to bytes public static function ini_value_to_bytes($directive) { $val = U::ini_get($directive); if(empty($val) || !is_string($val)) return 0; if(function_exists('ini_parse_quantity')) return @ini_parse_quantity($val) ?: 0; if(!preg_match('/^(\d+)([G|M|K])?$/i', trim($val), $m)) return 0; if(!isset($m[2])) return (int) $m[1]; return (int) $m[1] *= ['G' => 1024 * 1024 * 1024, 'M' => 1024 * 1024, 'K' => 1024][strtoupper($m[2])]; } // get memory limit in MB (if available) so we can calculate memory for image resize operations // cache result $memory_limit_mb because it runs in image file loops private static $memory_limit_mb; public static function get_memory_limit_mb() { if(isset(self::$memory_limit_mb)) return self::$memory_limit_mb; $val = U::ini_value_to_bytes('memory_limit'); return self::$memory_limit_mb = $val ? $val / 1024 / 1024 : 0; // convert bytes to M } // get and validate path for exec() apps imagemagick and ffmpeg public static function app_path($app){ $path = Config::get($app . '_path'); if(!$path || !function_exists('exec')) return false; $escaped = escapeshellarg($path); if(!@exec("$escaped -version", $output, $result_code) || $result_code) return false; // upgrade to the newer 'magick' command if imagemagick_path is 'convert' and we detect ImageMagick 7 if($path === 'convert' && strpos($output[0], 'ImageMagick 7') !== false) return "'magick'"; return $escaped; } // detect imagemagick type and cache response (because it might be used in files loop) private static $imagemagick; public static function imagemagick(){ if(isset(self::$imagemagick)) return self::$imagemagick; // PHP imagick extension if preferred and available if(U::prefer_imagick()) return self::$imagemagick = 'imagick'; // imagemagick is available from command-line if(U::app_path('imagemagick')) return self::$imagemagick = 'imagemagick'; // not avaialble return self::$imagemagick = false; } // prefer PHP imagick extension if available https://www.php.net/manual/en/intro.imagick.php, otherwise default to ImageMagick CLI public static function prefer_imagick(){ return Config::get('imagemagick_prefer_imagick') && extension_loaded('imagick'); } // readfile() wrapper function to output file with tests, clone option and headers public static function readfile($path, $mime, $message = false, $cache = false, $clone = false){ if(!$path || !file_exists($path)) return false; if($clone && @copy($path, $clone)) U::message('cloned to ' . U::basename($clone)); if(isset($_SERVER['HTTP_RANGE'])) return self::http_range($path, $mime, $message); // support HTTP_RANGE partial content requests U::header($message, $cache, $mime, filesize($path), 'inline', U::basename($path)); if(!is_readable($path) || readfile($path) === false) U::error('Failed to read file ' . U::basename($path), 400); exit; } // readfile() support HTTP_RANGE requests (large video, pdf etc) when files are served through PHP private static function http_range($path, $mime, $message){ // parse range start end list(, $range) = explode('=', $_SERVER['HTTP_RANGE'], 2); if(strpos($range, ',') !== false) U::error('Requested Range Not Satisfiable', 416); list($start, $end) = explode('-', $range); // vars $filesize = filesize($path); $offset = intval($start); $end = $end ? intval($end) : $filesize - 1; $length = $end - $offset + 1; // headers http_response_code(206); // 206 Partial Content header("Content-Range: bytes $offset-$end/$filesize"); U::header($message, false, $mime, $length, 'inline', U::basename($path)); // open and start stream $fp = fopen($path, 'rb'); fseek($fp, $offset); $bufferSize = 8192; while (!feof($fp) && ($length > 0)) { $read = ($length > $bufferSize) ? $bufferSize : $length; echo fread($fp, $read); $length -= $read; flush(); } fclose($fp); exit; } // return an array of supported PHP GD image resize types // public static function gd_image_types(){ return array_merge(['jpeg', 'jpg', 'png', 'gif'], array_filter(['webp', 'bmp', 'avif'], function($type){ return function_exists('imagecreatefrom' . $type); })); } // return an array of supported and commonly used imagemagick image types (which aren't already available in gd_image_types) public static function imagemagick_image_types(){ return U::imagemagick() ? Config::get_array('imagemagick_image_types') : []; } // return an array of supported image resize types, combine gd_image_types and imagemagick_image_types // forwarded to javascript and used to determine what types can be used for folder preview public static function resize_image_types(){ return array_merge(U::gd_image_types(), U::imagemagick_image_types()); } // common error response with response code, error message and json option // 400 Bad Request, 403 Forbidden, 401 Unauthorized, 404 Not Found, 500 Internal Server Error public static function error($error = 'Error', $http_response_code = false, $is_json = false){ if($is_json) return Json::error($error); if($http_response_code) http_response_code($http_response_code); U::header("[ERROR] $error", false); exit("

    Error

    $error."); } // creates a 6-cipher md5 hash from a string or array of strings / used for cache paths and cache hashes based on config options public static function hash($data){ return substr(md5(is_array($data) ? implode(':', $data) : $data), 0, 6); } // create a menu hash based on relevant $config and $root / used in menu cache file name and when cleaning cache // $paths.$options / for example $paths.$options.$mtime.json / 890b15.3ed872.1744195867.json public static function get_menu_hash($config, $root){ // hash segment from $paths that affect menu output $paths = [ Config::$document_root, Config::$__dir__, $root ]; // hash segment from $options that affect menu output $options = [ Config::$version, $config['cache_key'], $config['menu_max_depth'], $config['dirs_include'], $config['dirs_exclude'], $config['menu_sort'], $config['menu_load_all'] ]; // when menu_load_all enabled, we need to include further config options in menu hash if($config['menu_load_all']) $options = array_merge($options, [ $config['files_include'], $config['files_exclude'], U::image_resize_cache_direct($config) ]); // return hash $paths.$options return U::hash($paths) . '.' . U::hash($options); } // get dirs hash for a specific $config and $root / used in cache file names (with md5(path) and filemtime) and to determine valid cache // all options here may dirs json output, so must be included in the hash public static function get_dirs_hash($config, $root){ return U::hash([ Config::$document_root, Config::$__dir__, $root, Config::$version, U::image_resize_cache_direct($config), $config['cache_key'], $config['files_include'], $config['files_exclude'], $config['dirs_include'], $config['dirs_exclude'] ]); } // get current dirs hash and cache it (available for new Dir() loop operations) private static $current_dirs_hash; public static function get_current_dirs_hash(){ if(self::$current_dirs_hash) return self::$current_dirs_hash; return self::$current_dirs_hash = self::get_dirs_hash(Config::$config, Config::$root); } // check if image_resize_cache_direct is enabled for a specific $config alongside required settings public static function image_resize_cache_direct($config){ return $config['image_resize_cache_direct'] && $config['load_images'] && $config['image_resize_cache'] && $config['image_resize_enabled']; } // image_resize_dimensions_retina (serve larger dimension resized images for HiDPI screens) with cached response private static $image_resize_dimensions_retina; public static function image_resize_dimensions_retina(){ if(isset(self::$image_resize_dimensions_retina)) return self::$image_resize_dimensions_retina; $retina = intval(Config::get('image_resize_dimensions_retina')); return self::$image_resize_dimensions_retina = $retina > Config::get('image_resize_dimensions') ? $retina : false; } // get common html header for main document and login page public static function html_header($title, $class){ ?> <?php echo $title; ?> '$hashed'" , preg_replace("/'password'\s?=>\s?'(.+)'/", '%PASS%', $data)); } // save config.php if(!@file_put_contents("$dir/config.php", $data)) return Json::error('Failed to write config file'); // return data return $data; } // var_export response with [] instead of array () / used for automatic config.php creation and ?tests=1 output public static function var_export($arr){ return rtrim(str_replace('array (', '[', var_export($arr, true)), ')') . ']'; } // check if a specific resize width value is allowed in config // checks image_resize_dimensions / image_resize_dimensions_retina / image_resize_dimensions_allowed public static function resize_is_allowed($width){ if(empty($width) || !is_numeric($width)) return false; if($width === Config::get('image_resize_dimensions')) return true; if($width === Config::get('image_resize_dimensions_retina')) return true; // check image_resize_dimensions_allowed array $allowed = Config::get('image_resize_dimensions_allowed') ?: []; return in_array($width, array_filter(array_map('intval', is_array($allowed) ? $allowed : explode(',', $allowed)))); } // ensure that $dir/_files dir exists if using image_resize_cache_use_dir / called from image/video/pdf image requests public static function ensure_files_dir($file){ if(!Config::get('image_resize_cache_use_dir')) return; // exit if config image_resize_cache_use_dir is disabled $dir = dirname($file); // get parent dir of file where we will create the */_files dir if(file_exists("$dir/_files")) return; // exit if _files dir already exists $filemtime = filemtime($dir); // store filemtime so we can set it back after mkdir() if(!@mkdir("$dir/_files", 0777)) return U::error('Failed to create /_files dir', 500); // mkdir() or error @touch($dir, $filemtime); // update dir modified time to what it was so that cache doesn't invalidate } // add new cache entry in _files/cache/images/cache.txt file public static function image_cache_file_append($cache, $path){ if(!$cache || !$path || !Config::$cachepath || !Config::get('image_cache_file') || Config::get('image_resize_cache_use_dir')) return; $cache_file = Config::$cachepath . '/images/' . Config::get('image_cache_file'); // _files/cache/images/cache.txt $entry = PHP_EOL . U::basename($cache) . ':' . $path;// . PHP_EOL; // new line d4e1a4.466757.1743061702.480.jpg:/full/path/to/image.jpg @file_put_contents($cache_file, $entry, FILE_APPEND); // append new line (fastest and least complicated way to store entries) } // clean _files/cache/$type/*.json cache files for a specific $hash when there is no matching cache $filemtime public static function clean_json_cache_hash($type, $hash){ if(!Config::$storagepath || !Config::get('cache')) return; // exit if !cache dir $dir = Config::$storagepath . '/cache/' . $type; // get cache dir path $files = file_exists($dir) ? @glob("$dir/$hash.*.json") : false; // get invalid $hash.filemtime.json file in cache dir if(!empty($files)) foreach ($files as $file) @unlink($file); // delete all invalid } // get url from .URL shortcut files / https://fileinfo.com/extension/url public static function get_url_shortcut($path) { if(!$path || !file_exists($path) || !is_readable($path) || U::extension($path) !== 'url') return; $lines = @file($path); if(empty($lines) || !is_array($lines)) return; foreach ($lines as $str) { if(!preg_match('/^url\s*=\s*([\S\s]+)/i', trim($str), $matches) || !isset($matches[1])) continue; return $matches[1]; } } } // class Path / various static functions to convert and validate file paths class Path { // returns resolved absolute paths and normalizes slashes across OS / returns false if file does not exist public static function realpath($path){ $realpath = realpath($path); return $realpath ? str_replace('\\', '/', $realpath) : false; } // return absolute root path if config root string is valid public static function valid_root($str){ // get root realpath from string $root = Path::realpath($str); // root does not exist (or is not dir or is not readable or equals storage path) if(!$root || !is_dir($root) || Config::$storagepath === $root) return false; // return valid root if `root_lock` option is empty (default) if(!Config::get('root_lock')) return $root; // get root_lock realpath $root_lock = Path::realpath(Config::get('root_lock')); // invalid root_lock dir (doesn't exist or inaccessible) if(!$root_lock) return false; // root is invalid it it's not within root_lock dir / check resolved path and relative paths, in case root is symlink if(!Path::is_within_path($root, $root_lock) && !Path::is_within_path($str, Config::get('root_lock'))) return false; // return valid $root return $root; } // get absolute path by appending relative path to root path (does not resolve symlinks) public static function rootpath($relpath){ return Config::$root . (strlen($relpath) ? "/$relpath" : ''); // check paths with strlen() in case dirname is '0' } // get relative path from full root path / used as internal reference and in query ?path/path public static function relpath($path){ return trim(substr($path, strlen(Config::$root)), '\/'); } // determines if root is accessible by URL and returns the root url path, which in turn allows files to be accessible by url private static function get_root_url_path(){ // custom root url path if config `root_url_path` is assigned if(is_string(Config::get('root_url_path'))) return Config::get('root_url_path'); // get $root url path (either within app dir with relaitve path or within document root with root-relative path) $rooturlpath = self::urlpath(Config::$root); // return root urlpath if set if($rooturlpath) return $rooturlpath === '.' ? '' : $rooturlpath; // exit unless root is a symlink // at this point, when `root` resolves outside of document root, we have to assume it's not directly accessible by url // if you know your `root` is accessible by url somehow (nginx/apache/symlink), you can use the `root_url_path` config option if(!is_link(Config::get('root'))) return false; // in case someone wants to entirely disable resolving url path from root symlinks that point outside of document root if(Config::get('root_url_path') === FALSE) return false; // SYMLINK helpers // because it's useful to point root to symlinks that might be in, but resolve outside document root // assign $root shortcut just to make things more readable $root = Config::get('root'); // don't mess around with absolute paths that point to symlinks outside of document root, as it's pointless and complicated if(preg_match('/:\/|^\/|^\\\/', $root)) return false; // to create a base app or root relative path, we need to trim orders $trimmed_root = trim($root, './'); // check if root traverses up into parent dirs somewhere, and count traversal depth $root_parent_depth = substr_count($root, '..'); // if root does not traverse parent dirs, we can assume it's relative to app (index.php) // re-check if trimmed relative path exists and return app relative path if(!$root_parent_depth) return file_exists($trimmed_root) ? $trimmed_root : false; // attempt to assemble /root-relative path if root traverses up into parent dirs // must check PHP_SELF for comparison and PHP > 7 if(!isset($_SERVER['PHP_SELF']) || version_compare(PHP_VERSION, '7.0.0') < 0) return false; // PHP_SELF determines application root url path, so we can check root parent compared to application path $php_self = $_SERVER['PHP_SELF']; // get relative url depth of self (-1 because includes trailing slash with filename /path/index.php) $php_self_depth = substr_count($php_self, '/') - 1; // exit if root parent depth extends beyond php self depth if($root_parent_depth > $php_self_depth) return false; // assemble root-relative url path by traversing php_self return rtrim(dirname($php_self, $root_parent_depth + 1), '/') . '/' . $trimmed_root; } // create url path for a file from $root_url_path + file relative path / used for dir data, get_downloadables and uploads private static $root_url_path; public static function rooturlpath($rel){ // $root_url_path only needs to be assigned once when required if(!isset(self::$root_url_path)) self::$root_url_path = self::get_root_url_path(); // return false if if $root_url_path is false if(self::$root_url_path === FALSE) return false; //return self::urlpath($path); // return $root_url_path if relative path is empty (would be the root dir) if(!$rel) return self::$root_url_path; // assemble url path for file from $root_url_path and $rel return self::$root_url_path . (in_array(self::$root_url_path, ['', '/']) ? '' : '/') . $rel; } // get public url path relative to script or server document root public static function urlpath($path){ // first check if $path is inside app __dir__ in which case we can return app-relative url path, even if $path !is_within_docroot() if(self::is_within_appdir($path)) return $path === Config::$__dir__ ? '.' : substr($path, strlen(Config::$__dir__) + 1); // exit if $path is not within server document root (we can only assemble url if $path is relative to app or document root) if(!self::is_within_docroot($path)) return false; // return document root-relative url path return $path === Config::$document_root ? '/' : substr($path, strlen(Config::$document_root)); } // determine if $path has url path, with $path either being inside app dir (index.php) or inside document root public static function has_urlpath($path){ return self::is_within_appdir($path) || self::is_within_docroot($path); } // determines if a path is equal to or inside another path / append slash so that path/dirx/ does not match path/dir/ public static function is_within_path($path, $root){ return $path && strpos($path . '/', $root . '/') === 0; } // determines if $path is within application dir (so we can determine if it's accessible by relative url) public static function is_within_appdir($path){ return self::is_within_path($path, Config::$__dir__); } // determines if $path is within server document root (so we can determine if it's accessible by root-relative url) public static function is_within_docroot($path){ return $path && self::is_within_path($path, Config::$document_root); } // get cache path for resized image/video/pdf files public static function imagecachepath($path, $resize, $filesize, $filemtime){ // store cache in $dir/_files/* if image_resize_cache_use_dir is enabled ($dir/_files/{filename.jpg}.jpg) if(Config::get('image_resize_cache_use_dir')) return dirname($path) . '/_files/' . U::basename($path) . ($resize === 'convert' ? '.convert' : '') . '.jpg'; // use _files/cache/images/$hash.filesize.$filemtime.$resize.jpg return Config::$cachepath . '/images/' . U::hash($path) . ".$filesize.$filemtime.$resize.jpg"; } // determines if relative path is valid, and returns full rootpath or false if invalid public static function valid_rootpath($relpath, $is_dir = false){ // invalid if path is false (might be previously unresolved) if($relpath === false) return; // invalid if is file and path is empty (path can be '' empty string for root dir) if(!$is_dir && empty($relpath)) return; // relative path should never start or end with slash/ if(preg_match('/^\/|\/$/', $relpath)) return; // get root path from relative path $rootpath = self::rootpath($relpath); // realpath may differ from rootpath if symlinked or if relpath contains parent ../ paths $realpath = self::realpath($rootpath); // invalid if file does not exist if(!$realpath) return; // additional security checks if realpath differs from rootpath, and realpath is no longer within root // blocks potential abuse of relative paths like ?path/../../../../dir if($realpath !== $rootpath && !self::is_within_path($realpath, Config::$root)) { if(strpos(($is_dir ? $relpath : dirname($relpath)), ':') !== false) return; // dir may not contain ':' if(strpos($relpath, '..') !== false) return; // path may not contain '..' //if(self::is_exclude($realpath, $is_dir, true)) return; // check is_exclude also on realpath / seems pointless ... } // is invalid if(!is_readable($realpath)) return; // not readable if($is_dir && !is_dir($realpath)) return; // invalid dir if(!$is_dir && !is_file($realpath)) return;// invalid file if(self::is_exclude($rootpath, $is_dir)) return; // rootpath is excluded // return full path return $rootpath; } // determine if path should be excluded from displaying in the gallery public static function is_exclude($path = false, $is_dir = true, $symlinked = false){ // is not excluded if empty or path is root if(!$path || $path === Config::$root) return; // exclude relative paths that start with _files* (reserved for hidden items) if(strpos('/' . self::relpath($path), '/_files') !== false) return true; // exclude Files Gallery PHP application name (normally "index.php" but could be renamed) if($path === Config::$__file__) return true; // exclude symlinks if symlinks not allowed (symlinks might be sensitive) if($symlinked && !Config::get('allow_symlinks')) return true; // exclude Files Gallery storage_path (normally _files dir relative to PHP file) if(Config::$storagepath && self::is_within_path($path, Config::$storagepath)) return true; // dir path to check with `dirs_include` and `dirs_exclude` options $dirname = $is_dir ? $path : dirname($path); // check dirs_include and dirs_exclude, unless dir is root (root can't be excluded) if($dirname !== Config::$root){ // exclude if `dirs_include` is assigned and $dirname does not match dirs_include regex if(Config::get('dirs_include') && !preg_match(Config::get('dirs_include'), self::relpath($dirname))) return true; // exclude if `dirs_exclude` is assigned and $dirname matches dirs_exclude regex if(Config::get('dirs_exclude') && preg_match(Config::get('dirs_exclude'), self::relpath($dirname))) return true; } // check files_include and files_exclude if(!$is_dir){ // get file basename $filename = U::basename($path); // exclude if file is local config file (normally _filesconfig.php) if($filename === Config::$localconfigpath) return true; // exclude if `files_include` is assigned and $filename does not match files_include regex if(Config::get('files_include') && !preg_match(Config::get('files_include'), $filename)) return true; // exclude if `files_exclude` is assigned and $filename matches files_exclude regex if(Config::get('files_exclude') && preg_match(Config::get('files_exclude'), $filename)) return true; } } } // class Json / JSON response functions class Json { // output json from array and exit public static function jexit($arr = []){ header('content-type: application/json'); exit(json_encode($arr)); } // json error with message public static function error($error = 'Error'){ self::jexit(['error' => $error]); } // output json from array and cache as .json / used by class dirs and class dir public static function cache($arr = [], $message = false, $cache = true){ $json = empty($arr) ? '{}' : @json_encode($arr, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_PARTIAL_OUTPUT_ON_ERROR); if(empty($json)) self::error(json_last_error() ? json_last_error_msg() : 'json_encode() error'); if($cache) @file_put_contents($cache, $json); U::message(['cache ' . ($cache ? 'ON' : 'OFF') ]); U::header($message, false, 'application/json;'); echo $json; } } // class X3 / functions if running Files Gallery alongside X3 www.photo.gallery class X3 { // vars private static $path; // cache absolute X3 path private static $inc = '/app/x3.inc.php'; // relative path to the X3 include file that is used for checking and invalidating cache // checks if Files Gallery root points into X3 content and returns path to X3 root public static function path(){ if(isset(self::$path)) return self::$path; // serve previously resolved path // loop resolved path and original config path, in case resolved path was symlinked foreach ([Config::$root, Config::get('root')] as $path) { // match /content and check if /app/x3.inc.php exists in parent if($path && preg_match('/(.+)\/content/', $path, $match) && file_exists($match[1] . self::$inc)) return self::$path = Path::realpath($match[1]); } // no match found return self::$path = false; } // attempt to load x3-login if 1. root is X3 path, 2. there is no existing login, 3. files.x3-login.php exists public static function login(){ return self::path() && U::uinclude('plugins/files.x3-login.php'); } // get public url path of X3, used to render X3 thumbnails instead of thumbs created by Files Gallery public static function x3_path(){ return self::path() ? Path::urlpath(self::path()) : false; } // on Filemanager actions, invalidate X3 cache updating modified time of x3.inc.php public static function invalidate(){ if(self::path()) @touch(self::path() . self::$inc); } } // class Tests / outputs PHP, server and config diagnostics by url ?action=tests class Tests { // html response private $html = ''; // construct new Tests() function __construct() { // display all errors to catch anything unusual ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); // first let's check if new Config() created dirs and files in storagepath $this->created(); // title, version, server name, PHP version and server software $this->html .= '

    Files Gallery ' . Config::$version . '

    '; if(isset($_SERVER['SERVER_NAME'])) $this->prop(''.$_SERVER['SERVER_NAME'].''); $this->prop('PHP ' . phpversion().''); if(isset($_SERVER['SERVER_SOFTWARE'])) $this->prop(''.$_SERVER['SERVER_SOFTWARE'].''); // check if paths root, storage_path and index.php exist and are writeable $this->check_path(Config::$root, 'root'); $this->check_path(Config::$storagepath, 'storage_path'); $this->check_path(__FILE__, U::basename(__FILE__)); // check a few PHP extensions if(function_exists('extension_loaded')) { // check extensions gd, exif, mbstring and imagick foreach (['gd', 'exif', 'mbstring', 'imagick'] as $name) $this->prop($name, extension_loaded($name)); // specifically check if imagick supports PDF (requires ghostscript) if(extension_loaded('imagick')) $this->prop('imagick PDF support', !empty((new Imagick())->queryFormats('PDF'))); } // check if ZipArchive class exists $this->prop('ZipArchive', class_exists('ZipArchive')); // check various PHP functions foreach (['mime_content_type', 'finfo_file', 'iptcparse', 'exif_imagetype', 'session_start', 'ini_get', 'exec'] as $name) $this->prop($name . '()', function_exists($name)); // check command-line apps if exec() is available (pointless to output if not available) if(function_exists('exec')) { // check ffmpeg $this->prop('ffmpeg', !!U::app_path('ffmpeg')); // check imagemagick $imagemagick = U::app_path('imagemagick'); $this->prop("imagemagick $imagemagick", !!$imagemagick); // check ghostscript (required for PDF thumbnails) if imagemagick is available if($imagemagick) $this->prop('ghostscript', !!@exec('gs -version')); } // get various PHP ini values with ini_get() if(function_exists('ini_get')) foreach (['memory_limit', 'file_uploads', 'upload_max_filesize', 'post_max_size', 'max_file_uploads'] as $name) $this->prop($name, 'neutral', @ini_get($name)); // validate regex for exclude config options foreach (['files_include', 'files_exclude', 'dirs_include', 'dirs_exclude'] as $key) if(Config::get($key) && @preg_match(Config::get($key), '') === false) $this->prop("Invalid $key regex", false); // output merged config in readable format, with sensitive properties masked out $this->showconfig(); // output basic formatted tests in html format $this->output(); // exit on tests output exit; } // checks if new Config() created dirs and files in storagepath // useful to run ?action=tests if you want to create config.php file before executing Files Gallery private function created(){ if(empty(Config::$created)) return; $this->html .= '

    Successfully created the following storage items:

    '; foreach (Config::$created as $key) $this->prop($key, true); } // checks if a path exists and is writeable private function check_path($path, $name){ if(!$path) return $this->prop($name, false); if(!file_exists($path)) return $this->prop("$name does not exist", false); if(!is_writable($path)) return $this->prop($name . ' is not writeable ' . substr(sprintf('%o', fileperms($path)), -4) . ' [owner ' . fileowner($path) . ']', false); $this->prop($name, true); } // outputs and formats a property feature
    element to html private function prop($name, $success = 'neutral', $value = ''){ $class = is_string($success) ? $success : ($success ? 'success' : 'fail'); $this->html .= "
    $name $value
    "; } // output merged config in readable format, with sensitive properties masked out private function showconfig(){ // copy config array $arr = Config::$config; // mask sensitive values foreach (['root', 'storage_path', 'start_path', 'username', 'password', 'license_key', 'allow_tasks', 'index_cache', 'files_include', 'files_exclude', 'dirs_include', 'dirs_exclude'] as $prop) if($arr[$prop]) $arr[$prop] = '***'; // create PHP array string that resembles config.php files $php = 'html .= '

    Config

    ' . highlight_string($php, true); } // output basic formatted tests in html format private function output(){ echo 'Files Gallery check system and config.' . $this->html . ''; } } // class FileResponse / outputs file, video thumb, pdf thumb, converted image, resized image or proxies any file by PHP class FileResponse { // vars private $path; // path to file private $mime; // file mime type private $ext; // file extension private $video_url; // remote video url parsed from .url files private $clone; // clone parameter for folder preview images private $type; // response type; resize, video_thumb, pdf_thumb, convert or proxy file private $resize; // resize value for image response / used for resizing and for naming the cache file private $app; // application used to create the image (imagemagick or ffmpeg) private $cachepath; // image cache path // ImageMagick resize image thumbnail command private static $cmd_resize = "%APP_PATH% %PATH% -flatten -auto-orient -quality %QUALITY% -thumbnail %RESIZE%x%RESIZE%\> -adaptive-sharpen 0x0.75 '%CACHE%' 2>&1"; // ImageMagick convert from heif/heic/tiff/psd/dng to jpg for browser compatibility (no resize) private static $cmd_convert = "%APP_PATH% %PATH% -flatten -auto-orient -quality 75 '%CACHE%' 2>&1"; //private static $cmd_convert = "%APP_PATH% %PATH% -flatten -auto-orient -quality 75 -resize 2000x2000\> '%CACHE%' 2>&1"; // ImageMagick create PDF thumbnail / [0] for first page private static $cmd_pdf_thumb = "%APP_PATH% %PATH% -background white -flatten -quality 80 -thumbnail %RESIZE%x%RESIZE% '%CACHE%' 2>&1"; // FFmpeg video thumbnail private static $cmd_video_thumb = "%APP_PATH% -ss 3 -t 1 -hide_banner -i %PATH% -frames:v 1 -an -vf \"thumbnail,scale='min(%RESIZE%,iw)':'min(%RESIZE%,ih)':force_original_aspect_ratio=decrease\" -r 1 -y -f mjpeg '%CACHE%' 2>&1"; // construct FileResponse / $type, $resize and $clone parameters are optional, used when getting a folder preview image public function __construct($path, $type = false, $resize = false, $clone = false){ // exit on invalid path if(!$path) U::error('Invalid file request', 404); // store path and resolve symlinks $this->path = Path::realpath($path); // get mime type for file validation $this->mime = U::mime($this->path); // get file extension type $this->ext = U::extension($this->path, true); // clone the file (used by folder preview action) $this->clone = $clone; // get type of fileresponse / resize, video_thumb, pdf_thumb, convert / no type = proxy file request $this->type = $type ?: $this->get_type(); // attempt to proxy the file by PHP when there is no $type if(!$this->type) return $this->proxy_file(); // get resize value for image response / used for resizing and naming the cache file $this->resize = $resize ?: $this->get_resize(); // trigger $type function / resize(), video_thumb(), pdf_thumb() or convert() $this->{$this->type}(); } // get type of request from query / resize, video_thumb, pdf_thumb, convert / no type = proxy file request private function get_type(){ foreach (['resize', 'video_thumb', 'pdf_thumb', 'convert'] as $key) if(U::get($key)) return $key; } // get file proxied through PHP / we only do this when load_files_proxy_php is enabled or for file types like .php private function proxy_file(){ // don't allow getting file by proxy if !load_files_proxy_php and the file is available directly by url if(!Config::get('load_files_proxy_php') && Path::has_urlpath($this->path)) U::error('File can\'t be proxied', 400); // read file / $mime or 'application/octet-stream' if $mime is unknown (should not happen unless missing mime functions) U::readfile($this->path, ($this->mime ?: 'application/octet-stream'), 'File proxied', true); } // get resize value for image response / used for resizing and naming the cache file private function get_resize(){ if(U::get('resize')) return intval(U::get('resize')); // resize value will come in request ?resize=480 for nor thumbnails if($this->type === 'convert') return 'convert'; // on convert type, images are not resized, but 'convert' is part of the cache name return U::image_resize_dimensions_retina() ?: Config::get('image_resize_dimensions'); // for PDF and video thumbs, use largest size } // get resized preview image / does some preliminary tests before determining imagemagick of PHP GD private function resize(){ // allow resize image only if config load_images and image_resize_enabled are enabled foreach (['load_images', 'image_resize_enabled'] as $key) if(!Config::get($key)) U::error("Config $key disabled", 400); // check if requested resize value is allowed if(!U::resize_is_allowed($this->resize)) U::error('Resize parameter ' . U::get('resize') . ' is not allowed', 400); // make sure file mime type is image, unless the file is imagemagick, in which case we can't rely on mime ... if($this->mime && strpos($this->mime, 'image') === false && !$this->is_imagemagick()) U::error("Unsupported image type $this->mime", 415); // resize image with ImageMagick if($this->resize_use_imagemagick()) return $this->create_image('imagemagick'); // resize image with PHP GD new ResizeImage($this->path, $this->resize, $this->clone); } // use imagemagick to create thumbnail if config use_imagemagick or if file is imagemagick type private function resize_use_imagemagick(){ return Config::get('image_resize_use_imagemagick') || $this->is_imagemagick(); } // check if file is specifically an imagemagick format (that PHP GD can't handle) private function is_imagemagick(){ return in_array($this->ext, Config::get_array('imagemagick_image_types')); } // video thumbnail with ffmpeg / first make sure mime type is video or video url private function video_thumb(){ if(!$this->get_video_url() && $this->mime && strpos($this->mime, 'video') === false) U::error("Invalid video format $this->mime", 400); $this->create_image('ffmpeg'); } // get remote video url from .url files so we can create video thumbnail from remote file private function get_video_url(){ if($this->ext !== 'url') return; $url = U::get_url_shortcut($this->path); if(!$url || !in_array(U::extension($url, true), ['webm', 'm4v', 'mp4'])) return; return $this->video_url = $url; } // PDF thumbnail with imagemagick (PDF requires ghostscript) / mime must match application/pdf private function pdf_thumb(){ if($this->mime && $this->mime !== 'application/pdf') U::error("Invalid PDF format $this->mime", 400); $this->create_image('imagemagick'); } // convert non-browser image formats like heic, tif, psd and dng to browser-friendly jpg format private function convert(){ if(!$this->is_imagemagick()) U::error("Invalid convert format", 400); $this->create_image('imagemagick'); } // create image from imagemagick or ffmpeg with exec() private function create_image($app){ // image_resize_cache required for exec previews, for efficiency and because we need to create the file on disk anyway if(!Config::get('image_resize_cache')) U::error("image_resize_cache must be enabled to store created images", 400); // get cache path where we will look for image or create it $this->cachepath = Path::imagecachepath($this->path, $this->resize, filesize($this->path), filemtime($this->path)); // check for cached image / clone if called from folder preview if(U::readfile($this->cachepath, 'image/jpeg', "$this->type from cache", true, $this->clone)) return; // when using image_resize_cache_use_dir, we must make sure $dir/_files dir exists U::ensure_files_dir($this->path); // store app / imagemagick or ffmpeg $this->app = $app; // use PHP imagick extension if available if($this->is_imagick()) { $this->imagick_image(); // otherwise use exec() to interact with the app on the command-line } else { $this->exec_image(); } // error if for some reason, the created $this->cachepath file does not exist if(!file_exists($this->cachepath)) U::error('Cache file ' . U::basename($this->cachepath) . ' does not exist', 404); // fix for empty preview images (f.ex extremely short videos or other unknown errors), create 1px placeholder // this seems pointless, but might as well keep it if(!filesize($this->cachepath)) imagejpeg(imagecreate(1, 1), $this->cachepath); // add new cache entry in _files/cache/images/cache.txt file U::image_cache_file_append($this->cachepath, $this->path); // output image from cache path U::readfile($this->cachepath, 'image/jpeg', "$app | $this->type created", true, $this->clone); } // use PHP imagick extension if preferred and available private function is_imagick(){ return $this->app === 'imagemagick' && U::prefer_imagick(); } // create image from PHP imagick extension / potentially used for resize, video_thumb, pdf_thumb and convert private function imagick_image(){ // for pdf_thumb, we can detect up front if PDF is not supported if($this->type === 'pdf_thumb' && empty((new Imagick())->queryFormats('PDF'))) return U::error('Your PHP Imagick does not support the PDF format', 400); $imagick = new Imagick($this->path . ($this->type === 'pdf_thumb' ? '[0]' : '')); // pdf use first page $imagick->setImageBackgroundColor('white'); // in case PDF or transparency $imagick->setImageAlphaChannel(imagick::ALPHACHANNEL_REMOVE); // in case PDF or transparency if($imagick->getNumberImages() > 1) $imagick->mergeImageLayers(imagick::LAYERMETHOD_FLATTEN); // flatten $imagick->autoOrient(); // correct the image's orientation based on its EXIF data. if(is_numeric($this->resize)) { // resize $imagick->thumbnailImage($this->resize, $this->resize, true); // resize keep aspect $imagick->sharpenImage(0, 0.75); // sharpen thumbnail so it's not too blurry } $imagick->setImageFormat('jpeg'); $imagick->setImageCompression(Imagick::COMPRESSION_JPEG); $imagick->setImageCompressionQuality($this->type === 'convert' ? 75 : Config::get('image_resize_quality')); $imagick->writeImage($this->cachepath); $imagick->clear(); $imagick->destroy(); } // create image from exec() / imagemagick or ffmpeg private function exec_image(){ // get and validate external $app path, imagemagick or ffmpeg $app_path = U::app_path($this->app); // error if !$app_path / app is missing, or path is wrong or exec() function does not exist if(!$app_path) return U::error($this->app . ' is not available, check your diagnostics', 400); // get exec command string by replacing variables with real values / check video_url if set (remote video from .url shortcut) $cmd = str_replace( ['%APP_PATH%', '%PATH%', '%CACHE%', '%RESIZE%', '%QUALITY%'], [$app_path, $this->exec_input_path(), $this->cachepath, $this->resize, Config::get('image_resize_quality')], self::${"cmd_$this->type"}); // attempt to execute exec command exec($cmd, $output, $result_code); // fail if result_code is anything else than 0 if($result_code) { // simply attempt to fix errors caused by video being shorter than -ss time (default -ss 3), create from first frame if($this->type === 'video_thumb' && preg_match('/ -ss \d+/', $cmd)) exec(preg_replace('/ -ss \d+/', '', $cmd), $output, $result_code); // definite unknown fail / dump data in response if($result_code) { // delete empty error cache / disabled by default ... why continue to retry a slow/failed process? // if(file_exists($this->cachepath) && !filesize($this->cachepath)) @unlink($this->cachepath); // definite error U::error("Error generating $this->type (\$result_code $result_code)", 500); } } } // exec() command path input variations private function exec_input_path(){ $path = $this->video_url ?: $this->path; // remote video path from url file or $this->path if($this->type === 'pdf_thumb') $path .= '[0]'; // pdf file get first page return escapeshellarg($path); // escape path argument for shell } } // class ResizeImage / serves a resized image class ResizeImage { // set a different fill color than black (default) for images with transparency / disabled by default [] // only enable when strictly required, as it will assign fill color also for non-transparent images public static $fill_color = []; // white [255, 255, 255]; // class properties private $path; // full path to image private $rwidth; // calculated resize width private $rheight; // calculated resize height private $pixels; // used to check if pixels > max_pixels and to calculate required memory private $bits; // extracted from getimagesize() for use in set_memory_limit() private $channels; // extracted from getimagesize() for use in set_memory_limit() private $dst_image; // destination image GD resource with resize dimensions, also used in sharpen() and exif_orientation() // construct resize image, all processes in due order public function __construct($path, $resize, $clone = false){ // vars $this->path = $path; $filesize = filesize($this->path); // create local $short vars from config 'image_resize_*' options, because it's much easier and more readable foreach (['cache', 'quality', 'function', 'sharpen', 'memory_limit', 'max_pixels', 'min_ratio'] as $key) { $$key = Config::get("image_resize_$key"); } // add to response headers U::message(['cache ' . ($cache ? 'ON' : 'OFF'), "resize $resize", "quality $quality", $function]); // get cache path for image (or null for imagejpeg()) $cachepath = $cache ? Path::imagecachepath($this->path, $resize, $filesize, filemtime($this->path)) : null; // attempt to load $cachepath / will simply fail if $cachepath does not exist if($cachepath) U::readfile($cachepath, 'image/jpeg', 'Resized image from cache', true, $clone); // getimagesize / original dimensions, image type, bits, channels and mime $imagesize = getimagesize($this->path); if(empty($imagesize) || !is_array($imagesize)) U::error('Failed getimagesize()', 500); // die! // vars extrapolated from $imagesize $width = (int) $imagesize[0]; // (int) because AVIF might return '0x0' $height = (int) $imagesize[1]; // (int) because AVIF might return '0x0' $ratio = max($width, $height) / $resize; // calculate resize ratio from image longest side (width or height) $this->rwidth = round($width / $ratio); // calculate resize width $this->rheight = round($height / $ratio); // calculate resize height $this->pixels = $width * $height; // used to check if pixels > max_pixels and to calculate required memory $type = $imagesize[2]; // returns one of the IMAGETYPE_XXX constants indicating the type of the image. $mime = isset($imagesize['mime']) && is_string($imagesize['mime']) ? $imagesize['mime'] : false; $this->bits = isset($imagesize['bits']) && is_numeric($imagesize['bits']) ? $imagesize['bits'] : 8; $this->channels = isset($imagesize['channels']) && is_numeric($imagesize['channels']) ? $imagesize['channels'] : 3; // get image ext string from $type or exit / used to make sure image is valid image resize type $ext = image_type_to_extension($type, false) ?: U::error("Invalid image type $type"); // exit if invalid GD image resize type if(!in_array($ext, U::gd_image_types())) return U::error("Invalid image resize type $ext"); // add more values to response headers U::message([$mime, $ext, "$width x $height", 'ratio ' . round($ratio, 2), "$this->rwidth x $this->rheight"]); // exit if image pixels (dimensions) exceeds 'image_resize_max_pixels' => 60000000 (default) if($max_pixels && $this->pixels > $max_pixels) U::error("Image pixels $this->pixels ($width x $height) exceeds `image_resize_max_pixels` $max_pixels", 400); // serve original if resize ratio < min_ratio, but only if filesize <= load_images_max_filesize if($ratio < max($min_ratio, 1) && $filesize <= Config::get('load_images_max_filesize') && !U::readfile($this->path, $mime, "Original image served, because resize ratio $ratio < min_ratio $min_ratio", true, $clone)) U::error('File does not exist', 404); // check if avaialble memory is sufficient to resize image, and attempt to temporarily assign higher memory_limit $this->set_memory_limit($memory_limit); // assign imagecreatefrom$ext() function $imagecreatefrom = "imagecreatefrom$ext"; // create new source image GD resource from path $src_image = $imagecreatefrom($this->path) ?: U::error("Function $imagecreatefrom() failed", 500); // create destination image GD resource with resize dimensions $this->dst_image = imagecreatetruecolor($this->rwidth, $this->rheight) ?: U::error('Function imagecreatetruecolor() failed', 500); // set a different fill color than black (default) for images with transparency / disabled by default $fill_color = [] $this->set_fill_color($ext); // imagecopyresampled() src_image to dst_image if(!call_user_func($function, $this->dst_image, $src_image, 0, 0, 0, 0, $this->rwidth, $this->rheight, $width, $height)) U::error("Function $function() failed", 500); // destroy src_image GD resource to free up memory imagedestroy($src_image); // rotate resized image according to exif image orientation if required / only jpeg and tiff support if(in_array($mime, ['image/jpeg', 'image/tiff'])) $this->exif_orientation(); // sharpen resized images, because default PHP imagecopyresized() make images blurry ... if($sharpen) $this->sharpen(); // add headers for direct output if !cache / missing content-length but that's ok if(!$cachepath) U::header('Resized image served', true, 'image/jpeg'); // when using 'image_resize_cache_use_dir' we must make sure $dir/_files dir exists if($cachepath) U::ensure_files_dir($this->path); // create jpg image in cache path or output directly if !cache if(!imagejpeg($this->dst_image, $cachepath, $quality)) U::error('PHP imagejpeg() failed', 500); // destroy dst_image resource to free up memory imagedestroy($this->dst_image); // if image is cached, we have nothing more to do here ... if(!$cachepath) exit; // add new cache entry in _files/cache/images/cache.txt file U::image_cache_file_append($cachepath, $this->path); // cache readfile if(!U::readfile($cachepath, 'image/jpeg', 'Resized image served', true, $clone)) U::error('Cache file does not exist', 404); // always exit exit; } // check if avaialble memory is sufficient to resize image, and attempt to temporarily assign new memory_limit private function set_memory_limit($memory_limit){ // config image_resize_memory_limit must be assigned if(empty($memory_limit)) return; // get memory_limit in MB $current = U::get_memory_limit_mb(); // pointless to make any assumptions if we can't get default memory_limit, just try to resize ... if(empty($current)) return; // calculate approximate required memory to resize image $required = round(($this->pixels * $this->bits / 8 * $this->channels * 1.33 + $this->rwidth * $this->rheight * 4) / 1048576, 1); // get new memory_limit, assigned from config image_resize_memory_limit, if higher than $current $new = function_exists('ini_set') ? max($current, $memory_limit) : $current; // error if required memory > available memory if($required > $new) U::error("Resizing this image requires >= {$required}M. Your PHP memory_limit is {$new}M", 400); // assign $new memory from config image_resize_memory_limit if > $current (default memory_limit) if($new > $current && @ini_set('memory_limit', $new . 'M')) U::message("{$current}M => {$new}M (min {$required}M)"); } // sharpen resized images, because default PHP imagecopyresized() make images blurry ... private function sharpen(){ $matrix = [ [-1, -1, -1], [-1, 20, -1], [-1, -1, -1], ]; $divisor = array_sum(array_map('array_sum', $matrix)); $offset = 0; imageconvolution($this->dst_image, $matrix, $divisor, $offset); } // rotate resized image according to exif image orientation (no way we deal with this in browser) private function exif_orientation(){ // attempt to get image exif array $exif = Exif::exif_data($this->path); // exit if there is no exif orientation value if(!$exif || !isset($exif['Orientation'])) return; // assign $orientation $orientation = $exif['Orientation']; // array of orientation values to rotate (4, 5 and 7 will also be flipped) $orientation_to_rotation = [3 => 180, 4 => 180, 5 => 270, 6 => 270, 7 => 90, 8 => 90]; // return if orientation is not valid or is not in array (does not require rotation) if(!array_key_exists($orientation, $orientation_to_rotation)) return; // rotate image according to exif $orientation, write back to already-resized image destination resource $this->dst_image = imagerotate($this->dst_image, $orientation_to_rotation[$orientation], 0); // after rotation, orientation values 4, 5 and 7 also need to be flipped in place if(in_array($orientation, [4, 5, 7]) && function_exists('imageflip')) imageflip($this->dst_image, IMG_FLIP_HORIZONTAL); // add header props U::message("orientated from EXIF $orientation"); } // sets a different fill color than black (default) for images with transparency / disabled by default private function set_fill_color($ext){ if(!is_array(self::$fill_color) || count(self::$fill_color) !== 3 || !in_array($ext, ['png', 'gif', 'webp', 'avif'])) return; $color = call_user_func_array('imagecolorallocate', array_merge([$this->dst_image], self::$fill_color)); if(imagefill($this->dst_image, 0, 0, $color)) U::message('Fill rgb(' . join(', ', self::$fill_color) . ')'); } } // class Dirs / outputs menu json from dir structure class Dirs { // vars private $dirs = []; // array of dirs to output when re-creating private $cache_file = false; // cache file path / gets assigned to a path if cache is enabled private $load_files = false; // load files into each menu dir if Config::get('menu_load_all') // construct Dirs public function __construct(){ // first check and assign cache / returns cache json if valid $this->check_cache(); // load files in each dir if config menu_load_all $this->load_files = Config::get('menu_load_all'); // if not cached, get dirs starting from root dir $this->get_dirs(Config::$root); // when no cache file is found, we can remove all cache items that match menu $hash U::clean_json_cache_hash('menu', U::get_menu_hash(Config::$config, Config::$root)); // outputs dirs json format and cache Json::cache($this->dirs, 'Dirs reloaded', $this->cache_file); } // check cache for menu and return if valid private function check_cache(){ // exit if cache disabled if(!Config::get('cache')) return; // get cache hash from POST menu_cache_hash so we can assign correct cache file $hash = U::post('menu_cache_hash'); // validate $hash to make sure we check and create correct cache file names (not strictly necessary, but just in case) if(!$hash || !preg_match('/^.{6}\..{6}\..\d+$/', $hash)) Json::error('Invalid menu cache hash'); // assign cache file when cache is enabled / check if file exists, or write to this file when re-creating $this->cache_file = Config::$cachepath . "/menu/$hash.json"; // return if cache file does not exist if(!file_exists($this->cache_file)) return; // get json from cache file $json = @file_get_contents($this->cache_file); // return if the file is empty (for some reason) if(empty($json)) return; // check if menu cache is valid by comparing folder modified dates if(!$this->menu_cache_is_valid($json)) return; // assign headers U::header('Valid menu cache', null, 'application/json'); // if browser has valid menu cache stored, just confirm cache is valid // don't use Json::exit, because we already set header if(U::post('localstorage')) exit(json_encode(['localstorage' => true])); // output json cache file exit($json); } // check if json menu cache is valid by comparing folder dates (modified time) private function menu_cache_is_valid($json){ if(!Config::get('menu_cache_validate')) return true; // don't validate deep levels beyond 2 $arr = @json_decode($json, true); // create array to compare times if(empty($arr)) return; // loop dirs and compare modified-time to check if cache is valid / skip shallow 1st level dirs foreach ($arr as $val) { if(strpos($val['path'], '/') !== false && $val['mtime'] !== @filemtime(Path::rootpath($val['path']))) return; } return $json; // it's valid, because json folder dates match real folder dates } // get_dirs recursive directories private function get_dirs($path, $depth = 0) { // load data for dir / ignore depth 0 (root), because it's already loaded, unless load_files if($depth || $this->load_files) { // return if dir is excluded if(Path::is_exclude($path, true)) return; // get array of data for dir, including files load_files (config menu_load_all) $data = (new Dir($path))->load($this->load_files); // exit if empty / should not happen, but just on case if(empty($data)) return; // assign dir $data to array of $dirs $this->dirs[] = $data; // exit if current depth >= config menu_max_depth (don't get subdirs) if(Config::get('menu_max_depth') && $depth >= Config::get('menu_max_depth')) return; // exit if item is symlink and don't follow symlinks (don't get subdirs) if($data['is_link'] && !Config::get('menu_recursive_symlinks')) return;// $arr; } // get subdirs from current path $subdirs = U::glob("$path/*", true); // sort subdirs and get data for each dir (including further subdirs) if(!empty($subdirs)) foreach($this->sort($subdirs) as $subdir) $this->get_dirs($subdir, $depth + 1); } // sort subfolders private function sort($dirs){ if(substr(Config::get('menu_sort'), 0, 4) === 'date'){ usort($dirs, function($a, $b) { return filemtime($a) - filemtime($b); }); } else { natcasesort($dirs); } return substr(Config::get('menu_sort'), -4) === 'desc' ? array_reverse($dirs) : $dirs; } } // class Dir / loads data array for a single dir with or without files class Dir { // vars public $data; // array of public data to be returned / shared with File public $path; // path of dir / shared with File public $realpath; // dir realpath, normally the same as $path, unless $path contains symlink public $relpath; // dir path relative to root public $url_path; // url path for this dir (will equal FALSE if is not within document root) private $filemtime; // dir filemtime (modified time), used for cache validation and data public $filenames; // array of file names in dir private $cache_path; // calculated json file cache path // construct assign common vars public function __construct($path){ $this->path = $path; $this->realpath = $path ? Path::realpath($path) : false; $this->relpath = Path::relpath($this->path); $this->url_path = Path::rooturlpath($this->relpath); $this->filemtime = filemtime($this->realpath); $this->cache_path = $this->get_cache_path(); } // get dir json from cache, or reload / used by main dir files action request public function json(){ // return json cache file if exists if(U::readfile($this->cache_path, 'application/json', 'JSON served from cache')) return; // when no cache file is found that matches filemtime(), we can remove all cache items that match $hash U::clean_json_cache_hash('folders', U::get_current_dirs_hash() . '.' . U::hash($this->path)); // reload, encode as json, and store json cache file Json::cache($this->load(true), 'JSON created', $this->cache_path); } // get dir array from cache or reload / used in Document class when getting dir arrays for root and start path public function get(){ // get cache if valid, also returns files[] array as bonus since it's already cached if($this->cache_is_valid()) return json_decode(file_get_contents($this->cache_path), true); // reload dir without files (we don't want to delay Document with this, unless cached) return $this->load(); } // load dir array / used when dir is not cached (always by menu get_dirs()) public function load($files = false){ // dir array $this->data = [ 'basename' => U::basename($this->path), 'fileperms' => substr(sprintf('%o', fileperms($this->realpath)), -4), 'filetype' => 'dir', 'is_readable' => is_readable($this->realpath), 'is_writeable' => is_writeable($this->realpath), 'is_link' => is_link($this->path), 'is_dir' => true, 'mime' => 'directory', 'mtime' => $this->filemtime, 'path' => $this->relpath, 'files_count' => 0, 'dirsize' => 0, 'images_count' => 0, 'url_path' => $this->url_path, ]; // get files[] array for dir if($files) $this->get_files(); // assign direct url to json cache file for faster loading from javascript / used by Dirs class (menu), only when !files // won't work if you have blocked public web access to cache dir files / if so, comment out the below line if(!$files) $this->set_json_cache_url(); // return data array for this dir return $this->data; } // get json cache path for dir (does not validate if cache file exists) private function get_cache_path(){ if(!Config::get('cache') || !$this->path) return; return Config::$cachepath . '/folders/' . U::get_current_dirs_hash() . '.' . U::hash($this->path) . '.' . $this->filemtime . '.json'; } // used to check if json cache file exists, and therefore is valid private function cache_is_valid(){ return $this->cache_path && file_exists($this->cache_path); } // assign direct url to json cache file for faster loading from javascript / used by Dirs class (menu) private function set_json_cache_url(){ if(Login::$is_logged_in || !$this->cache_is_valid() || !Path::has_urlpath(Config::$storagepath)) return; $this->data['json_cache'] = Path::urlpath($this->cache_path); } // optional get array of files from dir / only gets called if file data should be loaded private function get_files(){ // forget it if we can't read dir if(!$this->data['is_readable']) return; // start files array, even if empty (so we know it's an empty folder) $this->data['files'] = []; // scandir for filenames $this->filenames = scandir($this->path, SCANDIR_SORT_NONE); // exit if dir is empty if(empty($this->filenames)) return; // prepare associative array of custom preview images (if found) / 'filename.jpg' => '_files_filename.pdf.jpg' $custom_previews = []; // only check for custom previews if load_images is enabled and url_path is public (we don't proxy custom thumbnails by PHP) $check_custom_previews = Config::get('load_images') && $this->url_path !== false; // loop filenames add to $this->data['files'] foreach($this->filenames as $filename) { // skip dots if($filename === '.' || $filename === '..') continue; // skip files that start with _files (done here so we can also check for custom thumbnail images) if(substr($filename, 0, 6) === '_files') { // add potential custom preview images to $custom_previews associative array 'filename.jpg' => '_files_filename.pdf.jpg' if($check_custom_previews && preg_match('/^_files_(.+)\.(jpe?g|gif|png|svg)$/i', $filename, $m)) $custom_previews[$m[1]] = $filename; // anything that starts with _files* is excluded ... continue; } // add file to $this->data['files'] array new File($this, $filename); } // loop custom_previews and attempt to match them with valid files in $this->data['files'] foreach ($custom_previews as $filename => $custom_preview) { if(isset($this->data['files'][$filename])) $this->data['files'][$filename]['custom_preview'] = $this->url_path . (in_array($this->url_path, ['', '/']) ? '' : '/') . $custom_preview; } // clean dir/_files/* if config image_resize_cache_use_dir is enabled if(Config::get('image_resize_cache_use_dir')) $this->clean_files_cache(); // sort files by natural case, with dirs on top (already sorts in javascript, but faster when pre-sorted in cache) uasort($this->data['files'], function($a, $b){ if($a['is_dir'] === $b['is_dir']) return strnatcasecmp($a['basename'], $b['basename']); return $b['is_dir'] ? 1 : -1; }); } // clean dir/_files/* when config image_resize_cache_use_dir is enabled private function clean_files_cache(){ // check that dir/_files exists and glob() image cache files that contain double extensions (original.png.jpg) $files = file_exists("$this->realpath/_files") ? glob("$this->realpath/_files/*.*.jpg", GLOB_NOSORT) : false; // loop cache files if(!empty($files)) foreach ($files as $file) { // get original filename by removing cache extension and potential '.convert', which should match a filename in $this->data['files'] $filename = preg_replace('/\.convert$/', '', pathinfo($file, PATHINFO_FILENAME)); // check if cache file corresponds to a file in $this->data['files'] $match = isset($this->data['files'][$filename]) ? $this->data['files'][$filename] : false; // unlink cache file if no match is found or if cache file is older than original if(!$match || (Config::get('image_cache_validate_time') && $match['mtime'] > filemtime($file))) @unlink($file); } } } // class File / returns data array for a single file class File { // vars private $dir; // parent dir object private $file; // file array private $realpath; // realpath of item, in case symlinked, faster access for various operations private $image = []; // image data array, populated and assigned to $this->file['image'] if file is image private $image_info; // image_info from getimagesize() to get IPTC // public construct file public function __construct($dir, $filename){ // parent dir object $this->dir = $dir; // assemble full path from parent dir path $path = $this->dir->path . '/' . $filename; // get resolved realpath, to check if file truly exists (symlink target could be deaf), and for faster function access $this->realpath = Path::realpath($path); // may differ from $path if symlinked // exit if no realpath for some reason, for example symlink target is dead if(!$this->realpath) return; // path is symlinked if realpath differs from $path $symlinked = $this->realpath !== $path; // get filetype $filetype = filetype($this->realpath); // determine if file is dir $is_dir = $filetype === 'dir' ? true : false; // skip item if excluded if(Path::is_exclude($path, $is_dir, $symlinked)) return; // count file into parent dir if(!$is_dir) $this->dir->data['files_count'] ++; // check if file is symlink (only if realpath !== path) $is_link = $symlinked ? is_link($path) : false; // get file extension $ext = $is_dir ? '' : U::extension($is_link ? $this->realpath : $filename, true); // get filesize if !$is_dir $filesize = $is_dir ? 0 : filesize($this->realpath); // filesize($path) if we only want to get size of symlink (0) // get relative path by appending filename to dir path $relpath = ltrim($this->dir->data['path'] . '/', '/') . $filename; // append filesize to parent dirsize $this->dir->data['dirsize'] += $filesize; // add properties to file array $this->file = [ 'basename' => $filename, 'ext' => $ext, 'fileperms' => substr(sprintf('%o', fileperms($this->realpath)), -4), 'filetype' => $filetype, 'filesize' => $filesize, 'is_readable' => is_readable($this->realpath), 'is_writeable' => is_writeable($this->realpath), 'is_link' => $is_link, 'is_dir' => $is_dir, 'mtime' => filemtime($this->realpath), 'path' => $relpath, 'url_path' => Path::rooturlpath($relpath), ]; // assign file mime type / will return null for most files unless config get_mime_type = true (slow) $this->file['mime'] = $this->mime(); // assign image data if file is image $this->set_image_data(); // read .URL shortcut files and present as links / https://fileinfo.com/extension/url if($ext === 'url') $this->set_file_url(); // add to dir files associative array with filename as key $this->dir->data['files'][$filename] = $this->file; } // get file mime type if !extension of config get_mime_type is enabled private function mime(){ if($this->file['is_dir']) return 'directory'; // directory if(!$this->file['is_readable']) return null; // skip and return null if(!$this->file['ext'] || $this->file['ext'] === 'ts' || Config::get('get_mime_type')) return U::mime($this->realpath); return null; // don't check mime, mime will be detected from extension in javascript } // we need to make sure memory is sufficient before using exif_read_data() so folders doesn't break on massive image files // this is a very rough estimation private function memory_sufficient_exif(){ $limit = U::get_memory_limit_mb(); return !$limit || $limit > ($this->image['width'] * $this->image['height'] * (isset($this->image['bits']) ? $this->image['bits'] : 8) / 8 * (isset($this->image['channels']) ? $this->image['channels'] : 4) * 1.5) / 1048576; } // assign image data if file is image private function set_image_data(){ // determine if file seems to be an image by checking mime or extension if(!$this->is_image()) return; // count image in dir, assuming it's some kind of image, even if !getimagesize() or !readable $this->dir->data['images_count'] ++; // pre-assign image icon, assuming it's some kind of image $this->file['icon'] = 'image'; // getimagesize() wrapper, populates and re-formats $this->image and $this->image_info for iptcparse / else exit, as it's not a known image if(!$this->getimagesize()) return; // assign item mime from getimagesize() because it is more accurate and we might not have file mime yet anyway if(isset($this->image['mime'])) $this->file['mime'] = $this->image['mime']; // get image Iptc $this->image['iptc'] = Iptc::get($this->image_info); // get image exif $this->getimageexif(); // invert image width height if exif orientation is > 4 && < 9, because dimensions should match browser-oriented image $this->image_orientation_flip_dimensions(); // find optional panorama sizes `_files_{size}_{filename.jpg}` for equirectangular 2/1 aspect panorama images $this->image_panorama_sizes(); // get image resize cache for direct access by javascript if config image_resize_cache_direct $this->get_image_resize_cache(); // remove empty values and add image array to file output $this->file['image'] = array_filter($this->image); } // core image file extensions / we check these formats with getimagesize() private static $image_types_core = 'gif,jpg,jpeg,jpc,jp2,jpx,jb2,png,swf,psd,bmp,tiff,tif,wbmp,xbm,ico,webp,avif,svg,heic,heif,dng'; // return an array of image extensions and cache response (because we don't want to compile the array for every file in the loop) private static $image_types; private static function get_image_types(){ if(isset(self::$image_types)) return self::$image_types; // merge core image extensions with imagemagick_image_types, because there may be custom formats return self::$image_types = array_merge(explode(',', self::$image_types_core), Config::get_array('imagemagick_image_types')); } // determine if file seems to be an image by means of mime type or extension private function is_image(){ if($this->file['is_dir']) return; if($this->file['mime']) return substr($this->file['mime'], 0, 6) === 'image/'; // check by mime if set return in_array($this->file['ext'], self::get_image_types()); // check extension } // getimagesize() wrapper validates and re-formats output into $this->image array private function getimagesize(){ // image must be readable and ignore svg if(!$this->file['is_readable'] || $this->file['ext'] === 'svg') return; // try @getimagesize() from PHP, unless heic/heif because getimagesize() definitely does not work with these formats $imagesize = !in_array($this->file['ext'], ['heic', 'heif']) ? @getimagesize($this->realpath, $this->image_info) : false; // on getimagesize() false/fail or DNG format, try to get image dimensions from ImageMagick // although PHP getimagesize() can get image_info from DNG (because it's a type of TIFF file), image dimensions are often wrong if(!$imagesize || $this->file['ext'] === 'dng') { $im_imagesize = $this->im_getimagesize(); // merge with current $imagesize if($im_imagesize) $imagesize = array_replace($imagesize ?: [], $im_imagesize); } // exit if empty or invalid / basically we can't get imagesize from getimagesize() or imagemagick, or the image is corrupt if(empty($imagesize) || !is_array($imagesize)) return; // add mime manually if not set (normally if processed with imagemagick) if(empty($imagesize['mime'])) $imagesize['mime'] = 'image/' . $this->file['ext']; // append mime manually // re-format properties from getimagesize() into $this->image array foreach ([ 'width', 'height', 'type', 'bits' => 'bits', 'channels' => 'channels', 'mime' => 'mime' ] as $key => $name) if(isset($imagesize[$key])) $this->image[$name] = $imagesize[$key]; // valid if array is !empty return !empty($this->image); } // imagemagick getimagesize replacement for heif/heic/dng so we can get width and height at least private function im_getimagesize(){ // use PHP imagick extension if available if(U::imagemagick() === 'imagick') { try { $im = new Imagick(); $im->pingImage($this->realpath); return [$im->getImageWidth(), $im->getImageHeight()]; } catch(Exception $e){ return false; } // get width and height from Imagemagick "identify" command } else if(U::imagemagick() === 'imagemagick'){ $wxh = @exec('identify -ping -format "%wx%h" "' . escapeshellcmd($this->realpath) . '[0]" 2>&1', $output, $result_code); if(empty($wxh) || $result_code) return false; // fail if response is empty or result_code is anything else than 0 $dimensions = array_map('intval', array_filter(explode('x', $wxh ?: ''), 'is_numeric')); return count($dimensions) === 2 ? $dimensions : false; } // we can't get width or height from heic/heif without imagemagick return false; } // get image exif data for each file private function getimageexif(){ // exif_read_data only supports jpeg and tiff if(!isset($this->image['mime']) || !in_array($this->image['mime'], ['image/jpeg', 'image/tiff'])) return; if(!$this->memory_sufficient_exif()) return; // make sure there is sufficient memory so folders response doesn't break $this->image['exif'] = Exif::get($this->realpath); // get exif data for image } // if image is oriented by some Exif orientation values, we need to flip width and height properties to match browser orientation private function image_orientation_flip_dimensions(){ if(!isset($this->image['exif']['Orientation']) || !in_array($this->image['exif']['Orientation'], [5, 6, 7, 8])) return; list($this->image['width'], $this->image['height']) = [$this->image['height'], $this->image['width']]; // flip width/height } // find optional panorama sizes `_files_{size}_{filename.jpg}` for equirectangular 2/1 aspect panorama images private function image_panorama_sizes(){ // must be public image (url_path), with >= 2024 and exactly 2:1 aspect ratio (equirectangular) if(!$this->file['url_path'] || !$this->image['width'] || $this->image['width'] <= 2048 || $this->image['width'] / $this->image['height'] !== 2) return; $resized = []; foreach ([2048, 4096, 8192] as $width) { // look for sizes 2048, 4096 and 8192 if($width >= $this->image['width']) break; // break loop if resized image width >= original already if(file_exists($this->dir->realpath . '/_files_' . $width . '_' . $this->file['basename'])) $resized[] = $width; } if(!empty($resized)) $this->file['panorama_resized'] = array_reverse($resized); } // get image resize cache for direct access by javascript if config image_resize_cache_direct private function get_image_resize_cache(){ if(!U::image_resize_cache_direct(Config::$config)) return; foreach ([Config::get('image_resize_dimensions'), U::image_resize_dimensions_retina()] as $resize) { if(!$resize) continue; $cachepath = Path::imagecachepath($this->realpath, $resize, $this->file['filesize'], $this->file['mtime']); $urlpath = file_exists($cachepath) ? Path::urlpath($cachepath) : false; if($urlpath) $this->image["resize$resize"] = $urlpath; } } // get url shortcut from .url files private function set_file_url(){ // get url shortcut $url = U::get_url_shortcut($this->realpath); if(!$url) return; // assign url $this->file['url'] = $url; // if url is a video file, we can play the remote file in the internal player $ext = U::extension($url, true); if(!$ext || !in_array($ext, ['webm', 'm4v', 'mp4', 'm3u8'])) return; // must be video format // blatantly override file properties so the file identifies as a video $this->file = array_replace($this->file, [ 'ext' => $ext, 'url_path' => $url, //'mime' => "video/$ext" ]); } } // class Iptc / extract IPTC image data from images class Iptc { // array of iptc entries with their corresponding codes to extract from IPTC, which otherwise contains tons of junk public static $entries = [ 'title' => '005', 'headline' => '105', 'description' => '120', 'creator' => '080', 'credit' => '110', 'copyright' => '116', 'keywords' => '025', 'city' => '090', 'sub-location' => '092', 'province-state' => '095' ]; // get iptc tag values, might be an array (keywords) or first array item (string) / attempts to fix invalid utf8 private static function tag($value){ // might be an array like 'keywords', just output array if(count($value) > 1) return $value; // get trimmed string value $string = isset($value[0]) && is_string($value[0]) ? trim($value[0]) : false; // invalid or empty string if(empty($string)) return false; // clamp string at 1000 chars, because some messed up images include a dump of garbled junk $clamped = function_exists('mb_substr') ? @mb_substr($string, 0, 1000) : @substr($string, 0, 1000); // return original string if the above didn't work for some ridiculous reason if(!$clamped) return $string; // return string if we can't detect valid utf-8 or string is already valid utf-8 if(!function_exists('mb_convert_encoding') || preg_match('//u', $clamped)) return $clamped; // attempt to convert the encoding $converted = @mb_convert_encoding($clamped, 'UTF-8', @mb_list_encodings()); // return converted value if successful return $converted ?: $clamped; } // get iptc from $image_info (getimagesize($path, $image_info)) public static function get($i){ // get iptc from $image_info (getimagesize($path, $image_info)) $iptc = !empty($i) && is_array($i) && isset($i['APP13']) && function_exists('iptcparse') ? @iptcparse($i['APP13']) : false; // return empty array if falsy, error or empty[] response if(empty($iptc)) return []; // populate $entries from $iptc $output = []; foreach (self::$entries as $name => $code) { $value = isset($iptc['2#' . $code]) ? $iptc['2#' . $code] : false; $output[$name] = !empty($value) && is_array($value) ? self::tag($value) : false; } // return array with all non-empty values return array_filter($output); } } // class Exif / extract Exif image data from images class Exif { // these are the values we want public static $entries = [ 'ApertureFNumber', // from exif COMPUTED values //'CCDWidth' // from exif COMPUTED values //'DateTime', // only used to detect original photo time, if DateTimeOriginal is not defined 'DateTimeOriginal', // original photo taken time, which will replace the file's date 'ExposureTime', //'FNumber', 'FocalLength', //'Make', // normally pointless when there is 'Model' 'Model', 'Orientation', // used only for Javascript to detect the orientation of the image and display appropriately 'ISOSpeedRatings', //'Software', ]; // returns the exif data array from an image, if function exists and exif array is valid public static function exif_data($path){ $exif = function_exists('exif_read_data') ? @exif_read_data($path) : false; return !empty($exif) && is_array($exif) ? $exif : false; } // get Exif $entries for a specific image public static function get($path){ // get exif $exif = self::exif_data($path); if(!$exif) return; // start output array $output = []; // loop $entries, check in $exif and $exif['COMPUTED'] and add to ouput foreach (self::$entries as $key) { $output[$key] = isset($exif[$key]) ? $exif[$key] : (isset($exif['COMPUTED'][$key]) ? $exif['COMPUTED'][$key] : false); } // get GPS coordinates $output['gps'] = self::gps($exif); // remove empty values and return array return array_filter($output); } // get GPS coordinates in array private static function gps($exif){ // prepare array for coordinates $arr = []; // loop to get coordinates foreach (['GPSLatitude', 'GPSLongitude'] as $key) { // invalid exif if(!isset($exif[$key]) || !isset($exif[$key . 'Ref'])) return false; // if 'GPSLatitude' and 'GPSLongitude' are defined as string value decimal degrees, convert to degrees, minutes, seconds // for example 'GPSLatitude' => '4590791/120000' or 'GPSLatitude' => '38.2565916667' if(is_string($exif[$key]) && strpbrk($exif[$key], './')){ $explode = strpos($exif[$key], '/') ? explode('/', $exif[$key]) : [$exif[$key], 1]; $degrees_decimal = $explode[0] / $explode[1]; $degrees = floor($degrees_decimal); $minutes_decimal = ($degrees_decimal - $degrees) * 60; $minutes = floor($minutes_decimal); $seconds = ($minutes_decimal - $minutes) * 60; // assume array with degrees, minutes and seconds (should be the standard, and how most devices store coordinates) } else { // coordinate array / attempt to create array from comma-separated string $coordinate = is_string($exif[$key]) ? array_map('trim', explode(',', $exif[$key])) : $exif[$key]; // GPSLatitude and GPSLongitude need to be array with 3 values if(count($coordinate) < 3) return false; // loop for ($i = 0; $i < 3; $i++) { $part = explode('/', $coordinate[$i]); if(count($part) == 1) { $coordinate[$i] = $part[0]; } else if (count($part) == 2) { if(empty($part[1])) return false; // invalid GPS, $part[1] can't be 0 $coordinate[$i] = floatval($part[0]) / floatval($part[1]); } else { $coordinate[$i] = 0; } } // output list($degrees, $minutes, $seconds) = $coordinate; } // ref / add coordinate $sign = in_array($exif[$key . 'Ref'], ['W', 'S']) ? -1 : 1; $arr[] = $sign * ($degrees + $minutes / 60 + $seconds / 3600); } // return array return !empty($arr) ? $arr : false; } } // class Filemanager / functions that handle file operations on server class Filemanager { // success counter for multi-item actions static $success = 0; static $count = 0; // file manager actions JSON response / accepts true/false or array with success property public static function json($res, $err){ // create $arr from boolean with $arr['success'] or pass through existing array $arr = is_array($res) ? $res : ['success' => $res]; // assign complete error if action was !success (not even partially success) if(!isset($arr['success']) || empty($arr['success'])) return Json::error($err); // on success, invalidate X3 cache if x3-plugin active X3::invalidate(); // output success / remove empty values, because javascript don't need em Json::jexit(array_filter($arr)); } // check if name is allowed and return trimmed value / duplicate, new_file, new_folder, rename, zip // for security and practical reasons, don't allow invalid characters <>:"'/\|?*# or .. or ends with . public static function name_is_allowed($name = false){ return !empty($name) && is_string($name) && !ctype_space($name) && !preg_match('/[<>:"\'\/\\\|?*#]|\.\.|\.$/', $name); } // get unique incremental filename for functions like duplicate and zip / default increment name starts at 2 public static function get_unique_filename($path, $i = 2) { // die if already unique if(!file_exists($path)) return $path; // break path into filename and extension $pathinfo = pathinfo($path); $filename = $pathinfo['filename']; // file name without extension for numbering $ext = !is_dir($path) && !empty($pathinfo['extension']) ? '.' . $pathinfo['extension'] : ''; // extension append to filename // check if file is numbered already like file-3.jpg, so we can assign to file-4.jpg instead of file-3-2.jpg $numbered_name = explode('-', $filename); $current_count = array_pop($numbered_name); if(count($numbered_name) && is_numeric($current_count)) { $filename = join('-', $numbered_name); $i = $current_count + 1; } // increment filename if file already exists / default start by filename-2.ext while (file_exists($path)) { $path = $pathinfo['dirname'] . '/' . $filename . '-' . $i . $ext; $i++; } // return first available $path return $path; } // recursive iterator for copy, delete, duplicate //protected static function iterator($path, $mode = RecursiveIteratorIterator::SELF_FIRST){ public static function iterator($path, $mode = RecursiveIteratorIterator::SELF_FIRST){ $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::SKIP_DOTS), $mode, RecursiveIteratorIterator::CATCH_GET_CHILD); self::$count += iterator_count($iterator); return $iterator; } // delete single file or folder private static function delete_file_or_folder($path){ return is_dir($path) && !is_link($path) ? @rmdir($path) : @unlink($path); } // delete single file or folder recursively public static function delete($path){ // if dir, iterate recursively and attempt to delete all descendants / don't iterate if is symlink // check if_writeable() will skip dirs that are not writeable, because we can't delete direct children. However, we may still be able to delete deep descendants, so might as well try to delete what can be deleted. if(is_dir($path) && !is_link($path)/* && is_writable($path)*/) foreach (self::iterator($path, RecursiveIteratorIterator::CHILD_FIRST) as $item) self::$success += self::delete_file_or_folder($item->getPathname()); // delete file or folder after first deleting recursive items in folder return self::delete_file_or_folder($path); } // non-recursive copy single file or folder / creates folder when necessary private static function copy_file_or_folder($from, $to){ // if(Path::is_exclude($to, is_dir($from))) return false; // exclude copy $to paths? kinda pointless if(Path::is_within_path($to, $from)) return false; // don't allow copying files or dirs into self or same location //if(!is_readable($from)) return false; // already checked in valid_rootpath() filter // if item is symlink, we recreate the symlink in $to location // we can't copy() symlinks and we don't want to copy the original target file or dir of the $from symlink if(is_link($from)) { if(!function_exists('symlink')) return false; // can't proceed if symlink() doesn't work $target = @realpath(readlink($from)) ?: $from; // attempt to resolve symlink, so we don't end up with a chain of symlinks return @symlink($target, $to); // create symlink } if(is_dir($from)) return is_dir($to) || @mkdir($to, 0777, true); // is_dir already or make new dir if(!is_readable($from)) return false; // can't read file source / might be recursive file if(file_exists($to) && filemtime($to) >= filemtime($from)) return false; // file already exists and is newer than source if(!@copy($from, $to)) return false; // attempt to copy from to / overwrite existing older files in $to location @touch($to, filemtime($from)); // inherit file modified time return true; // return success } // copy single file or folder recursively / kinda how the default php copy() should have worked? Also used for duplicate public static function copy($from, $to){ if(!self::copy_file_or_folder($from, $to)) return false; // only continue on success // copy dirs recursively, unless symlink (the dir symlink is already copied, and we don't want to clone the entire symlink target) if(is_dir($from) && !is_link($from)) { $iterator = self::iterator($from); foreach ($iterator as $descendant) self::$success += self::copy_file_or_folder($descendant, $to . '/' . $iterator->getSubPathName()); } return true; } // move file or folder / uses rename() wihch is recursive by default private static function move($from, $to){ // if(Path::is_exclude($to, is_dir($from))) return false; // exclude move $to paths? Kinda pointless if(Path::is_within_path($to, $from)) return false; // don't allow moving files or dirs into self or same location if(file_exists($to) && filemtime($to) >= filemtime($from)) return false; // $to already exists and is newer than $from // if symlink and symlink target is relative, attempt to write symlink with canonical path to preserve symlink target if(is_link($from) && function_exists('symlink') && !@realpath(readlink($from))) { $target = @realpath(dirname($from) . '/' . readlink($from)); // attempt to resolve path relative to owner dir of symlink if($target) return @symlink($target, $to); } return @rename($from, $to); // can overwrite existing older files, but fails to overwrite non-empty dirs, which is ok } // duplicate single file or folder recursively incrementing filename (if filename provided, use copy($from, $to) instead) public static function duplicate($path){ // copy item recursively with unique incremental file name return self::copy($path, self::get_unique_filename($path)); } // run action on array of files and folders / return succes/fail array public static function items($action, $paths, $dir = false){ // count paths / recursive iterators may add to count self::$count = count($paths); // loops paths foreach ($paths as $path) self::$success += self::$action($path, ($dir ? $dir . '/' . U::basename($path) : false)); // return success and fail count return ['success' => self::$success, 'fail' => self::$count - self::$success]; } // return an array of downloadable files from within an array of $paths public static function get_downloadables($paths){ // prepare downloadables array $downloadables = []; // loop dir $paths / only dir $paths are forwarded to check recursively, as JS already knows the files foreach ($paths as $dir) { //if(is_link($dir)) continue; // un-comment if you dont' want downloads to follow symlinks / also inside foreach loop if(Path::is_exclude($dir, true)) continue; // shouldn't be necessary when forwarded from frontend, but just in case foreach (self::iterator($dir) as $item) { // loop dirs get all descendants $path = $item->getPathname(); // create download list from readable, non-excluded files only (not dirs, as we don't download a dir) if(!is_readable($path) || is_dir($path) || Path::is_exclude($path, false)/* || is_link($path)*/) continue; // prepare relative app path $relpath = Path::relpath($path); // append to downloadables array $downloadables[] = [ 'path' => $relpath, 'url_path' => Path::rooturlpath($relpath), 'basename' => U::basename($path), 'ext' => U::extension($path), 'filesize' => filesize($path) ]; } } // return downloadables array return $downloadables; } } // class Zipper / extends Filemanager / create and extract zip files class Zipper extends Filemanager { // vars private $zip; private $is_json; // construct check class_exists('ZipArchive') and create new ZipArchive public function __construct($is_json = false){ $this->is_json = $is_json; if(!class_exists('ZipArchive')) U::error('Missing PHP ZipArchive class', 500, $this->is_json); $this->zip = new ZipArchive(); } // generic open zip with errors private function open($dest, $flags = null){ // open zip $res = @$this->zip->open($dest, $flags); // return error type messages / https://www.php.net/manual/en/ziparchive.open.php $zip_open_errors = [ 4 => 'Seek error.', 5 => 'Read error.', 9 => 'No such file.', 11 => 'Can\'t open file.', 10 => 'File already exists.', 14 => 'Malloc failure.', 18 => 'Invalid argument.', 19 => 'Not a zip archive.', 21 => 'Zip archive inconsistent.' ]; // die if error if($res !== true) U::error($res && isset($zip_open_errors[$res]) ? $zip_open_errors[$res] : 'Unknown zip error', 500, $this->is_json); } // extract $zip_file into $dir (optional) / $dir is parent of zip if not set public function extract($zip_file, $dir = false){ // check valid zip if(!is_file($zip_file) || U::extension($zip_file, true) !== 'zip' || empty(filesize($zip_file))) U::error('Invalid zip file', 400, $this->is_json); // $dir is parent of zip if not set if(!$dir) $dir = dirname($zip_file); // check target_dir writeable if(!is_writable($dir)) U::error('Target dir is not writeable', 403, $this->is_json); // open zip file $this->open($zip_file); // extract to target_dir $success = @$this->zip->extractTo($dir); // return always close() and $success return @$this->zip->close() && $success; } // create a new $zip_file from multiple $paths public function create($paths, $zip_file = false){ // $first_path = reset($paths); // create zip root from first array path, so we can create relative local paths inside zip $root = dirname($first_path) . '/'; // unique incremental 'archive.zip' if multiple paths or filename.jpg.zip (don't append .zip if extension already zip) if(!$zip_file) $zip_file = self::get_unique_filename($root . (count($paths) > 1 ? 'archive.zip' : U::basename($first_path) . (U::extension($first_path, true) !== 'zip' ? '.zip' : ''))); // create new zip file or die $this->open($zip_file, ZipArchive::CREATE | ZipArchive::OVERWRITE); // loop $paths to add files foreach ($paths as $path) { // add file or dir / if added and is_dir, add file or dir recursively if($this->add_file_or_dir($path, $root) && is_dir($path)) foreach(self::iterator($path) as $file) $this->add_file_or_dir($file, $root); } // detect files count in zip $num_files = version_compare(PHP_VERSION, '7.2.0') >= 0 ? $this->zip->count() : $this->zip->numFiles; // success only if close() and has files and zip file exists in tar return $this->zip->close() && !empty($num_files) && file_exists($zip_file); } // add_file_or_dir private function add_file_or_dir($path, $root){ //if(is_link($path)) return; // un-comment if zip should not follow symlinks if(Path::is_exclude($path, is_dir($path)) || !is_readable($path)) return false; // file excluded, continue $local_path = str_replace($root, '', $path); // local path relative to root return is_dir($path) ? @$this->zip->addEmptyDir($local_path) : @$this->zip->addFile($path, $local_path); } } // class CleanCache / cleans invalid and expired cache files from the _files/cache/* dirs at specific intervals or manually class CleanCache { // vars private $menu_dir; // _files/cache/menu private $folders_dir; // _files/cache/folders private $images_dir; // _files/cache/images private $menu_hashes = []; // array of menu hashes used to validate menu cache private $folders_hashes = []; // array of folders hashes used to validate folders cache private $menu_cache_count = 0; // menu cache file count private $menu_cache_deleted = 0; // menu cache deleted count private $folders_cache_count = 0; // folders cache file count private $folders_cache_deleted = 0; // folders cache deleted count private $images_cache_count = 0; // images cache file count private $images_cache_deleted = 0; // images cache deleted count private $image_cache_file; // path to _files/cache/images/cache.txt file if config `image_cache_file` and if exists private $test = false; // ?action=clean_cache&test=1 parameter to simulate cleaning cache without actually deleting files private $time_limit = 59; // increase process time limit from 30 to 59 seconds (in case of massive cache and/or slow disk) // construct new CleanCache() public function __construct(){ // exit if cache is disabled or _files/cache dir does not exist (nothing to clean) if(!Config::$cachepath || !file_exists(Config::$cachepath)) exit('cache dir does not exist'); // make sure clean cache is allowed for this request, either from app or manual request if(!$this->is_allowed()) return; // in extreme cases (1.000.000+ image cache files) you may need to temporarily increase memory if default is insufficient // @ini_set('memory_limit', '512M'); // increase time limit to 59 seconds (in case of massive cache and/or slow disk) $this->increase_time_limit(); // update _files/cache filemtime to current time so that we know when it was last updated (when using clean_cache_interval) if(Config::get('clean_cache_interval')) touch(Config::$cachepath); // get all dirs _files/cache/{menu|folders|images} to check for cleaning $this->get_cache_dirs(); // we need to collect all user config hashes to validate cache for menu and folders $this->get_hashes(); // get ?test=1 parameter to simulate cleaning cache without actually deleting any files $this->test = !!U::get('test'); // clean menu cache if $this->menu_dir exists if($this->menu_dir) $this->clean_menu_cache(); // clean folders cache if $this->folders_dir exists if($this->folders_dir) $this->clean_folders_cache(); // clean image cache if $this->images_dir dir exists if($this->images_dir) $this->clean_images_cache(); // output useful response $this->response(); } // check if cache cleaning is allowed for this request private function is_allowed(){ // when called from the app ?action=clean_cache&app=1, we must check if it's time (clean_cache_interval) to clean cache if(U::get('app')){ if(!self::is_time()) exit('It\'s not yet time to clean the cache'); // else if called manually in browser, ignore is_time() but check config `clean_cache_allow_manual` } else if(!Config::get('clean_cache_allow_manual')) U::error('Config `clean_cache_allow_manual` is disabled', 403); // is allowed return true; } // increase time limit to 59 seconds (in case of massive cache and/or slow disk) private function increase_time_limit(){ if(!$this->time_limit) return; // in case $time_limit is disabled $time = U::ini_get('max_execution_time'); // get current max_execution_time (normally 30 seconds) if(!is_numeric($time) || $time < $this->time_limit) @set_time_limit($this->time_limit); // assign new time limit } // check if it's time to clean cache dirs, based on config clean_cache_interval / used here and forwarded to javascript config public static function is_time(){ if(!Config::$cachepath || !Config::get('clean_cache_interval')) return false; return self::days_since(filemtime(Config::$cachepath)) > Config::get('clean_cache_interval'); } // get all dirs _files/cache/{menu|folders|images} to check for cleaning private function get_cache_dirs(){ foreach (['menu', 'folders', 'images'] as $key) { $path = Config::$cachepath . '/' . $key; if(file_exists($path)) $this->{ $key . '_dir' } = $path; } } // we need to collect all user config hashes to validate cache for menu and folders private function get_hashes(){ // nothing to check if /menu/ and /folders/ dirs don't exist if(!$this->menu_dir && !$this->folders_dir) return; // get default config (not necessarily current user config) $default = array_replace(Config::$default, Config::$storageconfig, Config::$localconfig); // configs array always contains default config $configs = [$default]; // add user configs to configs array foreach (Login::get_usernames() as $username) { $arr = U::uinclude("users/$username/config.php"); // return user config array if(is_array($arr)) $configs[] = array_replace($default, $arr); // merge user config on top of default config } // loop configs to add unique config hashes to menu_hashes and folders_hashes foreach ($configs as $config) { // get user absolute root $root = Path::realpath($config['root']); // exit if root is invalid (invalid config) if(!$root || Config::$storagepath === $root) continue; // get menu hash for $config and $root, add to menu_hashes associative array (hashes may be duplicate) if($this->menu_dir) $this->menu_hashes[U::get_menu_hash($config, $root)] = true; // get dirs hash for $config and $root, add $root to folders_hashes array for folders cache validation if($this->folders_dir) $this->folders_hashes[U::get_dirs_hash($config, $root)] = $root; } } // clean _files/cache/menu/*.json cache private function clean_menu_cache(){ // get json cache files from _files/cache/menu/* $files = $this->get_cache_files('menu', 'json'); // menu cache is empty (nothing to clean) if(empty($files)) return; // start $groups array to store menu cache items per menu hash, as there can only be one valid cache file per hash $groups = []; // loop menu cache files foreach ($files as $file) { // get $paths.$options.$filemtime from file name a70045.5ca3d7.6970116359.json $arr = explode('.', basename($file), -1); // pop menu cache $filemtime from array $filemtime = array_pop($arr); // create menu $hash from remaining array $paths.$options $hash = implode('.', $arr); // $hash is valid and exists in menu_hashes if($hash && is_numeric($filemtime) && isset($this->menu_hashes[$hash])){ // store in hash groups with filemtime as key, as latest filemtime in group would be valid (if there are any valid) $groups[$hash][intval($filemtime)] = $file; // delete if the hash is invalid or doesn't match any current menu_hashes } else $this->remove('menu', $file); } // loop menu cache groups, sort by filemtime (key), keep latest, remove the rest ... foreach ($groups as $group) { // sort group items by filemtime so that latest cache file is last ksort($group, SORT_NUMERIC); // remove latest valid cache item for the group $latest = array_pop($group); // loop remove remaing cache files in group which basically must be invalid foreach ($group as $file) $this->remove('menu', $file); } } // clean _files/cache/folders/*.json cache private function clean_folders_cache(){ // get json cache files from _files/cache/folders/* $files = $this->get_cache_files('folders', 'json'); // folders cache is empty (nothing to cleann) if(empty($files)) return; // start $groups array to store folders cache items per $dirs_hash.$path_hash, as there can only be one valid file $groups = []; // loop cache files foreach ($files as $file) { // get $dirs_hash.$path_hash.$filemtime from file name 47b52c.404878.1744343564.json $arr = explode('.', basename($file), -1); // match $dirs_hash in filename with folders_hashes if(count($arr) === 3 && is_numeric($arr[2]) && isset($this->folders_hashes[$arr[0]])){ // split array into variables list($dirs_hash, $path_hash, $filemtime) = $arr; // group cache files that are created for the same path with the same dirs_hash (only one can be valid) $groups["$dirs_hash.$path_hash"][intval($filemtime)] = [ 'file' => $file, // absolute json cache file path 'root' => $this->folders_hashes[$dirs_hash] // root path this cache exists for ]; // delete if the hash doesn't match any current folders_hashes } else $this->remove('folders', $file); } // loop groups to check if any file in each group is valid ($dir must exist and filemtime must match a file in group) foreach ($groups as $group) { // sort group by mtime key so that most recent cache filemtime is last ksort($group, SORT_NUMERIC); // get most recent cache filemtime entry, which is most likely valid, although we will compare all entries in group $last = end($group); // load most recent cache file into array $arr = @json_decode(@file_get_contents($last['file']), true); // assemble absolute dir path for this group (will be identical for all group entries because same $dirs_hash.$path_hash) $dir_path = !empty($arr) ? $last['root'] . ($arr['path'] ? '/' . $arr['path'] : '') : false; // get dir filemtime() if dir exists, so we can check if there is a cache file in this group that matches $dir_mtime = $dir_path && file_exists($dir_path) ? filemtime($dir_path) : false; // if dir exists and has a cache file in this group that matches the filemtime, we can keep it (remove from array) if($dir_mtime && isset($group[$dir_mtime])) unset($group[$dir_mtime]); // loop remove remaining invalid cache files in group (only one can be valid) foreach ($group as $mtime) $this->remove('folders', $mtime['file']); } } // clean _files/cache/images/*.jpg cache private function clean_images_cache(){ // get jpg cache files from _files/cache/images/* $files = $this->get_cache_files('images', 'jpg'); // get _files/cache/images/cache.txt file path if enabled and exists (so we can use it to check created cache files) $this->image_cache_file = $this->get_image_cache_file(); // initiate $map associative array so that image cache files can be checked vs cache.txt file $map = []; // loop image cache files and delete invalid items foreach ($files as $file) { // get filename $filename = basename($file); // split filename into array to extract parts / $pathhash.$filesize.$filemtime.$image_resize_dimensions.jpg $arr = explode('.', $filename); // delete cache file if name is invalid or resize is invalid or file exceeds max last access time if( count($arr) !== 5 || ($arr[3] != 'convert' && !U::resize_is_allowed(intval($arr[3]))) || $this->exceeds_max_last_access_time($file) ) { $this->remove('images', $file); // add remaining valid cache files to $map associative array for checkup vs cache.txt file // 0 identifies unchecked item in case of duplicate filenames in cache.txt file } else if($this->image_cache_file) $map[$filename] = 0; } // exit if $map is empty, return and delete cache file (if exists) because there is no cache or all cache was already deleted if(empty($map)) return $this->remove_image_cache_file(); // read cache.txt file into lines / one line for each created cache file $lines = @file($this->image_cache_file, FILE_SKIP_EMPTY_LINES|FILE_IGNORE_NEW_LINES); // exit if files is empty / delete empty cache file (unless there is some error response) if(empty($lines)) return is_array($lines) ? $this->remove_image_cache_file() : false; // count lines so we can check if cache.txt file needs to be updated after processing entries $line_count = count($lines); // loop cache.txt file entries, keep valid entries, remove the rest foreach ($lines as $index => $line) { // make sure entry is valid $cachefile.jpg:/path/to/file.jpg and can be parsed into $filename and $path if(strpos($line, ':')){ // get cache $filename and original $path from entry list($filename, $path) = explode(':', $line, 2); // check if entry corresponds to existing cache file in $map array and isn't a duplicate entry if(isset($map[$filename]) && !$map[$filename]){ // fix an issue when two entries might have got added into same line // I think this was resolved when we added PHP_EOL in front of new lines ... /*if(strpos($path, ':') && preg_match('/(.+)([a-z0-9]{6}\.\d+\.\d+\.\d+\.jpg:.+$)/', $path, $matches)){ $path = $matches[1]; // re-assign $path for current entry $lines[$index] = "$filename:$path"; // correct this line array_push($lines, $matches[2]); // push extracted line to end of array }*/ // mark this item checked so we can ignore further duplicate entries $map[$filename] = 1; // keep image if entry represents a valid cache file ($filesize and $filemtime must match original) if($this->cache_file_entry_valid($filename, $path)) continue; // delete expired cache $filename $this->remove('images', "$this->images_dir/$filename"); } } // remove invalid entry from $lines array (if !test) if(!$this->test) unset($lines[$index]); } // delete cache.txt file if lines array is empty after processing entries if(empty($lines)) return $this->remove_image_cache_file(); // rewrite remaining lines if line count changed (if !test) if(!$this->test && count($lines) !== $line_count) @file_put_contents($this->image_cache_file, implode(PHP_EOL, $lines)); } // get path for _files/cache/images/cache.txt image_cache_file if it exists / stores image cache file references as they get created private function get_image_cache_file(){ if(!Config::get('image_cache_file')) return; $path = $this->images_dir . '/' . Config::get('image_cache_file'); return file_exists($path) ? $path : false; } // remove _files/cache/images/cache.txt file private function remove_image_cache_file(){ if(!$this->image_cache_file || $this->test) return; @unlink($this->image_cache_file); } // check if image cache file exceeds image_cache_max_last_access_time / deletes image files if they haven't been accessed since X days private function exceeds_max_last_access_time($file){ // only check if image_cache_max_last_access_time is set (0 = disabled) if(!Config::get('image_cache_max_last_access_time')) return; // true if last access time for cache file exceeds config image_cache_max_last_access_time return self::days_since(@fileatime($file)) > Config::get('image_cache_max_last_access_time'); } // calculate days since specific timestamp (seconds) / static because accessed from non-object public static function days_since($time){ return $time ? (time() - $time) / 86400 : 0; } // check if images cache.txt file entry is valid / 2fd489.350621.1587906784.320.jpg /path/to/image.jpg private function cache_file_entry_valid($filename, $path){ // invalid if original path doesn't exist if(!file_exists($path)) return; // get filesize and filemtime from cache filename (name is already validated in $map array) list($filesize, $filemtime) = array_map('intval', array_slice(explode('.', $filename), 1, 2)); // if empty filesize and filemtime (dir preview images), valid if filemtime(cache) >= filemtime(path) if(!$filesize && !$filemtime) return filemtime("$this->images_dir/$filename") >= filemtime($path); // valid if filesize and filemtime in name matches filesize() and filemtime() for original $path return $filesize === filesize($path) && $filemtime === filemtime($path); } // get all cache files for any $type and $ext private function get_cache_files($type, $ext){ // get all cache files for specific $type and $ext $files = @glob($this->{ $type . '_dir' } . '/*.' . $ext, GLOB_NOSORT); // store the total amount of $type cache files for useful response if(!empty($files)) $this->{ $type . '_cache_count' } = count($files); // return files array return $files ?: []; } // remove a cache file and add to delete count private function remove($type, $path){ if(!$this->test) @unlink($path); //echo "[$type] Deleted " . basename($path) . '
    '; // verbose per-file response (kinda useless) $this->{ $type . '_cache_deleted' } ++; } // cache cleaner response text shows delete count / total count for each cache type (visible when run from browser ?action=clean_cache) private function response(){ U::header('Cache cleaned'); // so we can check response time and memory consumed if($this->test) echo '[TEST]
    '; foreach (['menu', 'folders', 'images'] as $k){ if(!$this->{ $k . '_dir' }) continue; $count = $this->{$k . '_cache_count'}; $delete_count = $this->{$k . '_cache_deleted'}; echo "Deleted $delete_count of $count $k cache files
    "; } } } // class Request / extract parameters for all actions class Request { // vars public $action; public $params; public $is_post; // construct public function __construct(){ $this->action = U::get('action'); $this->is_post = $_SERVER['REQUEST_METHOD'] === 'POST'; $this->params = $this->get_request_data(); if(!is_array($this->params)) $this->error('Invalid parameters'); } // get request data parameters public function get_request_data(){ if(!$this->is_post) return $_GET; if(isset($_POST) && !empty($_POST)) return $_POST; $php_input = @json_decode(@trim(@file_get_contents('php://input')), true); // javascript fetch() return $php_input ?: []; } // get specific string value parameter from data (dir, file path etc) public function param($param){ if(!isset($this->params[$param])) return false; //$p = $this->params[$param]; //if(!is_string($p) || !is_bool($p)) $this->error("Invalid $param parameter"); // must be string if exists return is_string($this->params[$param]) ? trim($this->params[$param]) : $this->params[$param]; // trim it } // error response based on request type / 400 Bad Request default / 401, 403, 404, 500 public function error($err, $code = 400){ if($this->is_post) return Json::error($err); U::error($err, $code); } } // class Document / creates the main Files Gallery document response class Document { // private Document class vars private $start_path = ''; // start_path extracted and validated from query or $config['start_path'] private $absolute_start_path = false; // absolute path of start_path, for validation and dirs preload private $dirs = []; // array of dirs to be preloaded, normally root and query or start_path (if not same as root) private $menu_exists = false; // determines if menu exists from config and checks for dirs in root private $menu_cache_hash = false; // assign a menu cache hash so menu cache can be validated on load private $menu_cache_file = false; // assign direct access to menu json cache file when menu_cache_validate is disabled private $index_html = false; // timestamp when index_cache is used to create index.html // document construct tasks public function __construct(){ // first we must get and validate start_path from ?query or config start_path $this->get_start_path(); // always get root dir array (outputs as json, for javascript) $this->dirs[''] = (new Dir(Config::$root))->get(); // get start path dir (if valid and not same as root, in case symlinked) if($this->absolute_start_path && Path::realpath($this->absolute_start_path) !== Config::$root) $this->dirs[$this->start_path] = (new Dir($this->absolute_start_path))->get(); // prepare menu variables menu_exists, menu_cache_hash and menu_cache_file $this->prepare_menu(); // output main Files Gallery document HTML $this->HTML(); } // get start_path from ?query or from config start_path (if set) private function get_start_path(){ // first check if we have a query path $query_path = $this->get_query_path(); // we have a query path (although it's not necessarily a valid dir) if($query_path){ // assign query_path as start_path $this->start_path = $query_path; // check and return valid root path from query path $this->absolute_start_path = Path::valid_rootpath($this->start_path, true); // start path from config with error response invalid (path must exist, non-excluded and must be inside root) } else if(Config::get('start_path')) { // shortcut $start_path = Config::get('start_path'); // get realpath from `start_path` config option // `start_path` should be relative to root dir, but check also check if path is relative to app (backwards compatibility) $this->absolute_start_path = Path::realpath(Path::rootpath($start_path)) ?: Path::realpath($start_path); // error if path does not exist or !is within root or is_exclude if(!$this->absolute_start_path || !Path::is_within_path($this->absolute_start_path, Config::$root) || Path::is_exclude($this->absolute_start_path)) U::error('Invalid start_path ' . $start_path); // assign root-relative start_path to forward to javascript $this->start_path = Path::relpath($this->absolute_start_path); } } // parse query_string and get first ?parameter to be considered path private function get_query_path(){ if($this->index_html) return; // exit if we are generating index.html index_cache, as query will be manageg by javascript if(empty($_SERVER['QUERY_STRING'])) return; // exit if !QUERY_STRING $path = explode('&', $_SERVER['QUERY_STRING'])[0]; // get first parameter in QUERY_STRING for path if(!$path || strpos($path, '=') !== false) return; // make sure path exists and is not assigned parameter=value return trim(rawurldecode($path), '/'); // trime and decode } // prepare main menu variables private function prepare_menu(){ // exit if !menu_enabled if(!Config::get('menu_enabled')) return; // get root dirs / used to decide if menu_exists, breadcrumbs and to generate shallow menu_cache_hash $root_dirs = array_filter(U::glob(Config::$root . '/*', true), function($dir){ return !Path::is_exclude($dir, true, is_link($dir)); }); // menu exists only if root_dirs is not empty $this->menu_exists = !empty($root_dirs); // exit if !menu_exists if(!$this->menu_exists) return; // get menu_cache_hash used to validate first level shallow menu cache and when !menu_cache_validate $this->menu_cache_hash = $this->get_menu_cache_hash($root_dirs); // get JSON menu_cache_file to forward to Javascript if menu_cache_validate is disabled $this->get_menu_cache_file(); } // menu_cache_hash used to validate first level shallow menu cache (no validation required) and when !menu_cache_validate private function get_menu_cache_hash($root_dirs){ // get latest dir filemtime from root/subdirs $latest = max(array_map(function($dir){ return filemtime($dir); }, array_merge([Config::$root], $root_dirs))); // return unique menu cache hash based on various $config (that might affect menu), $root and latest dir filemtime from root/subdirs return U::get_menu_hash(Config::$config, Config::$root) . '.' . $latest; } // get JSON menu_cache_file to forward to Javascript if menu_cache_validate is disabled private function get_menu_cache_file(){ // exit if menu_cache_validate or !cache or !storage is_within_doc_root if(Config::get('menu_cache_validate') || !Config::get('cache') || !Path::has_urlpath(Config::$storagepath)) return; // check if valid menu json cache file exists $path = Config::$cachepath . '/menu/' . $this->menu_cache_hash . '.json'; $url_path = file_exists($path) ? Path::urlpath($path) : false; if($url_path) $this->menu_cache_file = $url_path . '?' . filemtime($path); } // start index.html index_cache if enabled and assigned by url parameter ?create_index_cache=passphrase private function start_index_cache(){ // check ?create_index_cache=passphrase matches config index_cache passphrase if(Config::get('index_cache') !== TRUE && U::get('create_index_cache') !== Config::get('index_cache')) U::error('Incorrect passphrase for index_cache'); // index_cache does not work if login is required if(Login::$has_public_login) U::error('Config index_cache can\'t be used when login is required'); // index_cache can only be created from non-logged in user (must create a public accessible html page) if(Login::$is_logged_in) U::error("You must logout to generate index_cache"); // assign index_html as a unique timestamp $this->index_html = time(); // start output buffering ob_start(); // add HTML comment at top of document so we can easily recognize if response is cached index.html echo ""; } // save index_cache index.html and exit private function save_index_cache(){ // save index.html with current buffer response $success = file_put_contents('./index.html', ob_get_clean()); // output success message and exit exit(($success ? 'Created' : 'Failed to create') . ' index.html index_cache ' . $this->index_html); } // output main Files Gallery document HTML private function HTML(){ // main document, output version, request time and memory U::header('Version ' . Config::$version); // start index.html index_cache if enabled and assigned by url parameter ?create_index_cache=passphrase if(Config::get('index_cache') && U::get('create_index_cache')) $this->start_index_cache(); // main document html start U::html_header($this->start_path ? U::basename($this->start_path) : './', 'menu-' . ($this->menu_exists ? 'enabled' : 'disabled sidebar-closed')); ?> >
    menu_exists) { ?> ' . PHP_EOL; ?>index_html) $this->save_index_cache(); // end HTML } // get Javascript config array / includes config properties and calculated values specifically for Javascript private function get_javascript_config(){ // exclude config user settings for frontend (Javascript) when sensitive and/or not used in frontend $exclude = [ 'root', 'root_url_path', 'start_path', 'image_resize_cache', 'image_resize_quality', 'image_resize_function', 'image_resize_cache_direct', 'menu_load_all', 'cache_key', 'clean_cache_interval', 'image_cache_file', 'image_cache_max_last_access_time', 'image_cache_validate_time', 'storage_path', 'files_include', 'files_exclude', 'dirs_include', 'dirs_exclude', 'username', 'password', 'allow_tasks', 'allow_symlinks', 'menu_recursive_symlinks', 'image_resize_sharpen', 'get_mime_type', 'license_key', 'ffmpeg_path', 'imagemagick_path', 'folder_preview_default', 'image_resize_dimensions_allowed', 'download_dir_cache', 'index_cache' ]; // assemble config array without excluded items $config = array_diff_key(Config::$config, array_flip($exclude)); // return Javascript config array, merged (some values overridden) with main $config return array_replace($config, [ 'script' => U::basename(__FILE__), // so JS knows where to post 'menu_exists' => $this->menu_exists, // so JS knows if menu exists 'menu_cache_hash' => $this->menu_cache_hash, // hash to post from JS when loading menu to check cache 'menu_cache_file' => $this->menu_cache_file, // direct url to JSON menu cache file if !menu_cache_validate 'start_path' => $this->start_path, // assign calculated start_path for first JS load 'query_path_invalid' => $this->start_path && !$this->absolute_start_path, // invalid query path forward to JS 'dirs' => $this->dirs, // preload dirs array for Javascript, will be served as json 'dirs_hash' => U::get_current_dirs_hash(), // dirs_hash to manage JS localStorage 'resize_image_types' => U::resize_image_types(), // let JS know what image types can be resized 'imagemagick_image_types' => U::imagemagick_image_types(), // let JS know what image types can be converted with imagemagick 'image_resize_dimensions_retina' => U::image_resize_dimensions_retina(), // calculated retina 'location_hash' => md5(Config::$root), // so JS can assume localStorage for relative paths like menu items open 'is_logged_in' => Login::$is_logged_in, // for login/logout interface 'username' => Login::$is_logged_in ? Config::get('username') : false, // username if logged in, for settings interface 'has_public_login' => Login::$has_public_login, 'session_token' => !$this->index_html && isset($_SESSION['token']) ? $_SESSION['token'] : false, // token means there is login 'version' => Config::$version, // forward version to JS 'index_html' => $this->index_html, // timestamp when is index.html created from index_cache option 'server_exif' => function_exists('exif_read_data'), // so images can be oriented from exif orientation if detected 'image_resize_memory_limit' => $this->get_image_resize_memory_limit(), // so JS can calculate what images can be resized 'md5' => $this->get_md5('6c6963656e73655f6b6579'), // calculate md5 hash 'ffmpeg' => !!U::app_path('ffmpeg'), // ffmpeg required for video thumbnails 'imagemagick' => !!U::imagemagick(), // detect imagemagick 'imagemagick_pdf' => U::imagemagick() === 'imagick' ? !empty((new Imagick())->queryFormats('PDF')) : !!U::imagemagick(), // pdf support 'lang_custom' => $this->lang_custom(), // get custom language files _files/lang/*.json 'x3_path' => X3::x3_path(), // in case of used with X3, forward X3 url path for thumbnails 'userx' => isset($_SERVER['USERX']) ? $_SERVER['USERX'] : false, // forward USERX from server (if set) 'assets' => U::assetspath(), // calculated assets path (Javascript and CSS files from CDN or local) 'watermark_files' => $this->get_watermark_files(), // get uploaded watermark files (font, image) from _files/watermark/* 'ZipArchive_enabled' => class_exists('ZipArchive'), // required for zip and unzip functions on server 'upload_max_filesize' => $this->get_upload_max_filesize(), // let the upload interface know upload_max_filesize 'custom_previews' => $this->get_custom_previews(), // get custom preview images from _files/previews/* 'is_clean_cache_time' => !$this->index_html && CleanCache::is_time(), // check if is time to clean cache 'audio_files' => $this->get_storage_dir_files('audio'), // get audio files from _files/audio/* for global audioplayer ]); } // get image resize memory_limit so JS can calculate at what dimensions images can be resized private function get_image_resize_memory_limit(){ if(!function_exists('ini_set')) return U::get_memory_limit_mb(); return (int) max(U::get_memory_limit_mb(), Config::get('image_resize_memory_limit')); } // calculate md5 hash from string private function get_md5($str){ $str = Config::get(hex2bin($str)); return $str ? md5($str) : false; } // look for custom language files in _files/lang/*.json and forward to Javascript private function lang_custom() { if(!Config::$storagepath) return false; $dir = Config::$storagepath . '/lang'; // custom languages path $files = is_dir($dir) ? glob($dir . '/*.json') : false; // get language json files if(empty($files)) return false; // exit $langs = []; // start languages array foreach ($files as $path) { // loop language files $json = @file_get_contents($path); $data = !empty($json) ? @json_decode($json, true) : false; if(!empty($data)) $langs[strtok(U::basename($path), '.')] = $data; // assign language as array } return !empty($langs) ? $langs : false; // return array of languages with values } // common function to return url paths for files in any storagepath dir (watermark, custom previews) private function get_storage_dir_files($dirname){ if(!Config::$storagepath || !Path::has_urlpath(Config::$storagepath)) return; $path = Config::$storagepath . '/' . $dirname; if(!file_exists($path) || !is_readable($path)) return; $urlpath = Path::urlpath($path); return array_map(function($file) use ($urlpath){ return $urlpath . '/' . basename($file); }, @glob($path . '/*', GLOB_NOSORT) ?: []); } // search for watermark files (font, image) in _files/watermark/* for Uppy Compressor private function get_watermark_files() { return Config::get('allow_upload') ? $this->get_storage_dir_files('watermark') : false; } // get custom preview images from _files/previews/* private function get_custom_previews(){ $previews = $this->get_storage_dir_files('previews'); return !empty($previews) ? array_combine(array_map(function($preview){ return pathinfo($preview, PATHINFO_FILENAME); // "pdf": "_files\/previews\/pdf.jpg", }, $previews), $previews) : false; } // get upload_max_filesize for uploader interface, limited by PHP upload_max_filesize, post_max_size and config upload_max_filesize private function get_upload_max_filesize(){ if(!Config::get('allow_upload')) return 0; // just return 0 if upload is disabled $arr = array_filter([U::ini_value_to_bytes('upload_max_filesize'), U::ini_value_to_bytes('post_max_size'), Config::get('upload_max_filesize')]); // don't include falsy values return empty($arr) ? 0 : min($arr); } } /* Files Gallery application logic starts here */ // set UTF-8 locale so that basename() and other string functions work correctly with multi-byte strings. setlocale(LC_ALL, 'en_US.UTF-8'); // start new Config() new Config(); // process actions ?action= if(U::get('action')){ // start new request $request = new Request(); // action shortcut $action = $request->action; // only allow valid actions if(!in_array($action, [ 'files', // load files data for a single dir 'dirs', // create menu from dirs in root 'load_text_file', // load a text-based file 'check_updates', // check if app updates are available 'do_update', // update the app 'save_license', // save license key 'delete', // filemanager delete 'text_edit', // filemanager edit text file 'unzip', // filemanager unzip 'rename', // filemanager rename file or folder 'new_file', // filemanager create new empty text file 'new_folder', // filemanager create new empty folder 'zip', // filemanager create zip file from multiple sources 'copy', // filemanager copy files 'move', // filemanager move files 'duplicate', // filemanager duplicate files 'get_downloadables',// get downloadable files recursively from a specific dir 'upload', // filemanager upload files 'download_dir_zip', // create zip from dir recursively and download 'preview', // get preview image for folder 'file', // get file or preview image with ?resize parameter 'download', // force download a file 'tasks', // run tasks plugin 'login', // login by XHR 'ping', // login ping check 'settings', // edit settings and users 'tests', // ?action=tests output 'clean_cache' // clean cache action ])) $request->error("Invalid action '$action'"); // check that request method POST/GET matches action / below actions are GET only, all others are POST if($request->is_post === in_array($action, [ 'download_dir_zip', 'preview', 'file', 'download', 'tasks', 'tests', 'clean_cache' ])) $request->error("Invalid request method {$_SERVER['REQUEST_METHOD']} for action=$action"); // make sure actions with config allow_{$action} (most write actions) are allowed if(isset(Config::$config['allow_' . $action]) && !Config::$config['allow_' . $action]) $request->error("$action not allowed"); // block all write actions in demo mode (that's what demo_mode option is for) if(Config::get('demo_mode') && in_array($action, ['upload', 'delete', 'rename', 'new_folder', 'new_file', 'duplicate', 'text_edit', 'zip', 'unzip', 'move', 'copy'])) $request->error("$action not allowed in demo mode"); // block all download actions [get_downloadables, download_dir_zip, download] if !allow_download if(!Config::get('allow_download') && strpos($action, 'download') !== false) $request->error('Download not allowed'); // block all mass download actions [get_downloadables, download_dir_zip] if !allow_mass_download if(!Config::get('allow_mass_download') && in_array($action, ['get_downloadables', 'download_dir_zip'])) $request->error('Mass download not allowed'); // prepare and validate $dir (full) from ?file parameter (if isset) for various actions $dir = $request->param('dir'); if($dir !== false){ // explicitly check !== false because $dir could be valid '' empty (root) $dir = Path::valid_rootpath($dir, true); if(!$dir) $request->error('Invalid dir path'); // some actions require $dir to be writeable if(in_array($action, ['copy', 'move', 'unzip', 'upload']) && !is_writable($dir)) $request->error('Dir is not writeable'); // actions that strictly require $dir (it's optional for some actions) } else if(in_array($action, ['files', 'copy', 'move', 'upload', 'download_dir_zip', 'preview'])){ $request->error('Missing dir parameter'); } // prepare and validate $file (full) from ?file parameter (if isset) for various actions $file = $request->param('file'); if($file){ $file = Path::valid_rootpath($file); if(!$file) $request->error('Invalid file path'); // actions that strictly require $file } else if(in_array($action, ['load_text_file', 'file', 'download'])){ $request->error('Missing file parameter'); } // validate items for Filemanager actions (all but upload) if(isset($request->params['items'])){ // assign $items $items = $request->params['items']; // invalid $items if false, empty array or !array if(empty($items) || !is_array($items)) $request->error('Invalid items parameter'); // assign [paths] / make sure each item.path exists, is valid, not excluded, and relative to Config::$root $paths = array_values(array_filter(array_map(function($item){ return Path::valid_rootpath($item['path'], $item['is_dir']); }, $items))); // no valid item paths if(empty($paths)) $request->error('Invalid item paths'); // shortcut because many actions only apply to a single item $first_path = reset($paths); // only actions new_file and new_file are allowed on root dir / other actions don't make sense for root if($first_path === Config::$root && !in_array($action, ['new_file', 'new_folder'])) $request->error("Can't $action root directory"); // prepare $new_path for actions rename (required), new_file, new_folder, zip and duplicate $new_path = false; // instantiate var because it's optional for all actions except rename $name = $request->param('name'); // get ?name parameter if($name !== false) { // check if $name is allowed if(!Filemanager::name_is_allowed($name)) $request->error(trim("Invalid name $name")); // get parent dir / if new_folder or new_file, use selected item path, else dirname() of selected item path $parent_dir = in_array($action, ['new_folder', 'new_file']) ? $first_path : dirname($first_path); if(!is_dir($parent_dir)) $request->error('Not a directory'); // parent path must be dir if(!is_writable($parent_dir)) $request->error('Dir is not writeable'); // dir must be writeable // assign $new_path from $name $new_path = $parent_dir . '/' . $name; if(file_exists($new_path)) $request->error((is_dir($new_path) ? 'Dir' : 'File') . ' already exists'); } // actions that require items parameter } else if(in_array($action, ['copy', 'delete', 'duplicate', 'get_downloadables', 'move', 'new_file', 'new_folder', 'rename', 'text_edit', 'unzip', 'zip'])){ $request->error('Missing items parameter'); } /* ACTIONS */ // get files from dir_target if($action === 'files') { // output dir array in json format (checks json cache first) (new Dir($dir))->json(); // get dirs for menu } else if($action === 'dirs'){ new Dirs(); // read text file } else if($action === 'load_text_file'){ header('content-type: text/plain; charset=UTF-8'); if(@readfile($file) === false) U::error('failed to read file', 500); // check Files Gallery updates JSON file from jsdelivr.com repository } else if($action === 'check_updates'){ $json = @json_decode(@file_get_contents('https://data.jsdelivr.com/v1/package/npm/files.photo.gallery'), true); $latest = !empty($json) && isset($json['versions'][0]) && version_compare($json['versions'][0], Config::$version) > 0 ? $json['versions'][0] : false; Json::jexit([ 'success' => $latest, 'writeable' => $latest && is_writable(__FILE__) // only check if __FILE__ is writeable if $latest ]); // attempt to update Files Gallery index.php to latest version via remote repository jsdelivr.com } else if($action === 'do_update'){ // various requirements, which would normally be satisfied if accessed from the interface $version = $request->param('version'); if(!$version || !Config::get('allow_check_updates') || version_compare($version, Config::$version) <= 0 || !is_writable(__FILE__)) $request->error('Error'); $get = @file_get_contents('https://cdn.jsdelivr.net/npm/files.photo.gallery@' . $version . '/index.php'); if(empty($get) || strpos($get, ' true]); // save input license key to user config } else if($action === 'save_license'){ $key = $request->param('key'); Json::jexit([ 'success' => $key && Config::$storageconfigpath && Config::save(['license_key' => $key]), 'md5' => $key ? md5($key) : false ]); // delete items } else if($action === 'delete') { Filemanager::json(Filemanager::items('delete', $paths), 'failed to delete items'); // text_edit write to file } else if($action === 'text_edit'){ if(!isset($request->params['text']) || !is_string($request->params['text'])) $request->error('Invalid text parameter'); if(!is_writeable($first_path)) $request->error('File is not writeable'); if(!is_file($first_path)) $request->error('Not a file'); if(@file_put_contents($first_path, $request->params['text']) === false) $request->error('failed to write to file', 500); @touch(dirname($first_path)); // invalidate cache by updating parent dir mtime Filemanager::json(true, 'failed to write to file'); // unzip zip file } else if($action === 'unzip'){ // extract single zip file to $dir / if !$dir, it uses zip file parent Filemanager::json((new Zipper(true))->extract($first_path, $dir), 'Failed to extract zip file'); // rename } else if($action === 'rename'){ // new_path (derrved from $name) is required for rename action if(!$new_path) $request->error('Missing name parameter'); // attempt to rename single file Filemanager::json(@rename($first_path, $new_path), 'Rename failed'); // new_file } else if($action === 'new_file'){ // attempt to create new file from $new_path or assign unique incremental filename "untitled-file.txt" Filemanager::json(@touch($new_path?:Filemanager::get_unique_filename($first_path . '/untitled-file.txt')), 'Create new file failed'); // new_folder } else if($action === 'new_folder'){ // attempt to create new directory from $new_path or assign unique incremental folder name from "untitled-folder" Filemanager::json(@mkdir($new_path?:Filemanager::get_unique_filename($first_path . '/untitled-folder')), 'Create new folder failed'); // zip items / $new_path is optional, will create auto-named zip in current dir if empty } else if($action === 'zip') { Filemanager::json((new Zipper(true))->create($paths, $new_path), 'Failed to zip items'); // copy or move use identical pre-process } else if(in_array($action, ['copy', 'move'])) { // don't allow copy/move items over themselves copy/move dirs into themselves (may cause infinite recursion) // this is already blocked in copy function, but better detect up front for items array and respond appropriately $valid_copy_move_paths = array_filter($paths, function($path) use ($dir){ return !Path::is_within_path($dir . '/' . U::basename($path), $path); }); // can't copy/move into self error if(empty($valid_copy_move_paths)) $request->error("can't $action into self"); // response Filemanager::json(Filemanager::items($action, $valid_copy_move_paths, $dir), $action . ' failed'); // duplicate / really just a shortcut for copy into same dir } else if($action === 'duplicate') { // duplicates a single item with provided $name (pre-assigned to $new_path) if($new_path) Filemanager::json(Filemanager::copy($first_path, $new_path), 'duplicate failed'); // duplicates an array of files and dirs, automatically incrementing file names Filemanager::json(Filemanager::items('duplicate', $paths), 'duplicate failed'); // get_downloadables returns an array of downloadable files recursively from an array of directories } else if($action === 'get_downloadables'){ // return an array of downloadable files from within an array of $paths Json::jexit(Filemanager::get_downloadables($paths)); // upload } else if($action === 'upload'){ // get $_FILES['file'] array $upload = isset($_FILES) && isset($_FILES['file']) && is_array($_FILES['file']) ? $_FILES['file'] : false; // invalid $_FILES['file'] if(empty($upload) || !isset($upload['error']) || is_array($upload['error'])) $request->error('Invalid $_FILES[]'); // PHP meaningful file upload errors / https://www.php.net/manual/en/features.file-upload.errors.php if($upload['error'] !== 0) { $upload_errors = [ 1 => 'Uploaded file exceeds upload_max_filesize directive in php.ini', 2 => 'Uploaded file exceeds MAX_FILE_SIZE directive specified in the HTML form', 3 => 'The uploaded file was only partially uploaded', 4 => 'No file was uploaded', 6 => 'Missing a temporary folder', 7 => 'Failed to write file to disk.', 8 => 'A PHP extension stopped the file upload.' ]; $request->error(isset($upload_errors[$upload['error']]) ? $upload_errors[$upload['error']] : 'unknown error'); } // invalid $upload['size'] if(!isset($upload['size']) || empty($upload['size'])) $request->error('Invalid file size'); // $upload['size'] must not exceed $config['upload_max_filesize'] if(Config::get('upload_max_filesize') && $upload['size'] > Config::get('upload_max_filesize')) $request->error('File size [' . $upload['size'] . '] exceeds upload_max_filesize option [' . Config::get('upload_max_filesize') . ']'); // get filename $filename = $upload['name']; // for security reasons, slashes are never allowed in file names if(strpos($filename, '/') !== false || strpos($filename, '\\') !== false) $request->error('Illegal \slash/ in filename ' . $filename); // get allowed_file_types / 'image/*, .pdf, .mp4' $allowed_file_types = Config::get_array('upload_allowed_file_types'); // check allowed_file_types if(!empty($allowed_file_types)){ $mime = U::mime($upload['tmp_name']) ?: $upload['type']; // mime from PHP or upload[type] $ext = U::extension($filename, true, true); // get extension lowercase starting with .dot $is_valid = false; // default !is_valid until validated // check if extension match || wildcard match mime type image/* foreach ($allowed_file_types as $allowed_file_type) if($ext === ('.' . ltrim($allowed_file_type, '.')) || fnmatch($allowed_file_type, $mime)) { $is_valid = true; break; } // invalid file type if(!$is_valid) $request->error("Invalid file type $filename"); // for additional security, check if uploaded image is an actual image with exif_imagetype() function if(function_exists('exif_imagetype') && in_array($ext, ['.gif', '.jpeg', '.jpg', '.png', '.swf', '.psd', '.bmp', '.tif', '.tiff', '.webp', '.avif']) && !@exif_imagetype($upload['tmp_name'])) $request->error("Invalid image type $filename"); } // create subdirs when relativePath exists (keeps folder structure from drag and drop) $relative_path = $request->param('relativePath'); if(!empty($relative_path) && $relative_path != 'null' && $relative_path != $filename && strpos($relative_path, '/') !== false){ $new_dir = dirname("$dir/$relative_path"); if(file_exists($new_dir) || @mkdir($new_dir, 0777, true)) $dir = $new_dir; } // assign move to path $move_path = "$dir/$filename"; // fail if config upload_exists === false if(Config::get('upload_exists') === 'fail' && file_exists($move_path)) $request->error("$filename already exists"); // increment file name if file name already exists if(Config::get('upload_exists') === 'increment') $move_path = Filemanager::get_unique_filename($move_path); // all is well! attempt to move_uploaded_file() / JSON RESPONSE Filemanager::json([ 'success' => @move_uploaded_file($upload['tmp_name'], $move_path), 'filename' => $filename, // return filename in case it was incremented or renamed 'url' => Path::rooturlpath(Path::relpath($move_path)), // for usage with showLinkToFileUploadResult ], 'failed to move_uploaded_file()'); // $_GET download_dir_zip / download files in directory as zip file } else if($action === 'download_dir_zip'){ // check download_dir enabled if(Config::get('download_dir') !== 'zip') $request->error('download_dir zip disabled'); // create zip cache directly in dir (recommended, so that dir can be renamed while zip cache remains) if(!Config::$storagepath || Config::get('download_dir_cache') === 'dir') { if(!is_writable($dir)) $request->error('Dir is not writeable', 500); $zip_file_name = '_files.zip'; $zip_file = $dir . '/' . $zip_file_name; // create zip file in storage _files/zip/$dirname.$md5.zip / } else { U::mkdir(Config::$storagepath . '/zip'); $zip_file_name = U::basename($dir) . '.' . U::hash($dir) . '.zip'; $zip_file = Config::$storagepath . '/zip/' . $zip_file_name; } // cached / download_dir_cache && file_exists() && zip is not older than dir time $cached = Config::get('download_dir_cache') && file_exists($zip_file) && filemtime($zip_file) >= filemtime($dir); // create zip if !cached if(!$cached && !(new Zipper())->create([$dir], $zip_file)) $request->error('Failed to create ZIP file', 500); // ignore user abort so we can delete file also on download cancel if(!Config::get('download_dir_cache')) @ignore_user_abort(true); // output zip file as download using correct headers and readfile() U::download($zip_file, $zip_file_name . ($cached ? ' cached' : ' created'), 'application/zip', U::basename($dir) . '.zip'); // delete temporary zip file if cache disabled if(!Config::get('download_dir_cache')) @unlink($zip_file); // $_GET folder preview from images/video inside dir } else if($action === 'preview'){ // allow folder preview image only if folder_preview_image, load_images, image_resize_enabled and cache foreach (['folder_preview_image', 'load_images', 'image_resize_enabled', 'image_resize_cache'] as $key) if(!Config::get($key)) $request->error("Config option $key disabled", 403); // 1. first check if default folder_preview_default '_filespreview.jpg' exists in dir / must be resized $default = Config::get('folder_preview_default') ? $dir . '/' . Config::get('folder_preview_default') : false; if($default && file_exists($default)) { U::message(Config::get('folder_preview_default')); new ResizeImage($default, Config::get('image_resize_dimensions')); // default resize for small preview images } // 2. assign cache path $cachepath = Path::imagecachepath($dir, Config::get('image_resize_dimensions'), 0, 0); // check if preview cache file exists if(file_exists($cachepath)) { // make sure cache file is newer than filemtime($dir), else cached image may have expired if(filemtime($cachepath) >= filemtime($dir)) U::readfile($cachepath, 'image/jpeg', 'Preview image from cache', true); // silently delete expired cache file if it is older filemtime($dir) @unlink($cachepath); // prepare various cache tasks if cache file doesn't exist } else { // when using 'image_resize_cache_use_dir' we must make sure $dir/_files dir exists U::ensure_files_dir($dir); // add new cache entry in _files/cache/images/cache.txt file as there definitely be a new entry from the below U::image_cache_file_append($cachepath, $dir); } // 3. glob files to look for images and video $files = U::glob("$dir/*"); // files found if(!empty($files)) { // prepare arrays of supported image and video formats $image_types = U::resize_image_types(); $video_types = U::app_path('ffmpeg') ? ['mp4', 'm4v', 'm4p', 'webm', 'ogv', 'mkv', 'avi', 'mov', 'wmv'] : []; // loop files to locate first match foreach ($files as $file) { // get file extension lowercase $ext = U::extension($file, true); // skip if !extension if(empty($ext)) continue; // found image resize type if(in_array($ext, $image_types)) { $type = 'resize'; // found video_thumb type } else if(in_array($ext, $video_types)){ $type = 'video_thumb'; // found pdf_thumb type } else if($ext === 'pdf' && U::imagemagick()){ $type = 'pdf_thumb'; // skip if nothing found } else { continue; } // skip if file is_exclude or !readable if(Path::is_exclude($file, false) || !is_readable($file)) continue; // return preview image $type with default image_resize_dimensions and clone into preview $cachepath for fast access new FileResponse($file, $type, Config::get('image_resize_dimensions'), $cachepath); // break loop and return file break; exit; } } // 4. nothing found (no images in dir) // create empty 1px in $cachepath, and output (so next check knows dir is empty or has no images, unless updated) if(imagejpeg(imagecreate(1, 1), $cachepath)) U::readfile($cachepath, 'image/jpeg', '1px placeholder image created and cached', true); // $_GET file / resize parameter for preview images, else will proxy any file } else if($action === 'file'){ new FileResponse($file); // $_GET force download single file by PHP } else if($action === 'download'){ // output file as download using correct headers and readfile() U::download($file, 'Download ' . U::basename($file), U::mime($file) ?: 'application/octet-stream', U::basename($file)); // $_GET tasks plugin (for pre-caching or clearing cache, not official plugin yet ...) } else if($action === 'tasks'){ if(!U::uinclude('plugins/files.tasks.php')) $request->error('Can\'t find tasks plugin', 404); // login from within Files Gallery with fetch() return json success } else if($action === 'login'){ Json::jexit(['success' => true]); // Login ping / checks if user is still logged in, shows login form or logs out } else if($action === 'ping'){ // [experimental] un-comment the below to extend session cookie lifetime on each ping, if you are being logged out prematurely // setcookie(session_name(), session_id(), time() + 3600); // 3600 seconds / 1 hour (becomes arbitrary) // send username and session_token for app to check if we are still logged in to the same user and session Json::jexit([ 'username' => Config::get('username'), // username will return empty if was logged out to public non-login version 'session_token' => isset($_SESSION['token']) ? $_SESSION['token'] : false, ]); // settings / load settings and users / save, edit, create new users } else if($action === 'settings'){ // storage path `_files` must exist at this point if we are going to load, edit, create or delete any config if(!Config::$storagepath) return Json::error('Storage path does not exist'); // LOAD users if($request->param('load')) { // start users array with default config first $users = ['default' => @file_get_contents(Config::$storageconfigpath) ?: '']; // get users dir $users_dir = Login::users_dir(); // loop user dirs and get configs if($users_dir) foreach (glob("$users_dir/*", GLOB_ONLYDIR) as $dir) { // get user data from config.php if file exists (it should normally always exist) $user_data = file_exists("$dir/config.php") ? @file_get_contents("$dir/config.php") : false; // populate $users array only if config data exists and is non-empty (valid) if($user_data) { $users[U::basename($dir)] = $user_data; // delete invalid user dirs } else Filemanager::delete($dir); } // return user array with configs return Json::jexit($users); } // block all settings write actions in demo mode if(Config::get('demo_mode')) $request->error("Action not allowed in demo mode"); // create local $short vars from request parameters foreach (['username', 'new_name', 'is_new', 'is_rename', 'is_default', 'data', 'remove'] as $k) $$k = $request->param($k); // if is default _files/config/config.php, save and return with doing further checks if($is_default) return Json::jexit(['success' => true, 'data' => U::save_config_file(Config::$storagepath . '/config', $data)]); // $username must be set and not equal default if(!$username || strtolower($username) === 'default') return Json::error('Invalid username' . ($username ? " '$username'" : '')); // config path vars $users_dir = Config::$storagepath . '/users'; $user_dir = "$users_dir/$username"; // REMOVE / Remove user dir and return if($remove) return Json::jexit(['success' => !!Filemanager::delete($user_dir)]); // prepare $user_dir_new for new users and renamed users $user_dir_new = $new_name ? "$users_dir/$new_name" : false; // new user or renamed user if($new_name){ // check if name is allowed (we don't need to check existing usernames) if(!Filemanager::name_is_allowed($new_name)) return Json::error('Invalid username'); // if user dir already exists (for some reason) if(file_exists($user_dir_new)) { // if user config.php file exists, then user is already valid and can't overwrite valid users if(file_exists("$user_dir_new/config.php")) return Json::error('Username already exists'); // delete invalid user dir, because it will get recreated or renamed (shouldn't really exist in the first place) Filemanager::delete($user_dir_new); } } // create user dir if is new user (renamed user we rename dir) if($is_new && !@mkdir($user_dir_new, 0777, true)) return Json::error('Failed to create user dir'); // make sure dir already exists for existing users if(!$is_new && !is_dir($user_dir)) return Json::error('Username does not exist'); // validate and save config.php file $data = U::save_config_file($user_dir, $data, true); // rename user dir if($is_rename && !@rename($user_dir, $user_dir_new)) return Json::error('Failed to rename user'); // success return new Json::jexit(['success' => true, 'data' => $data]); // output PHP and server features by url ?action=tests / for diagnostics only } else if($action === 'tests'){ new Tests(); // cleans invalid and expired cache files from the _files/cache/* dirs at specific intervals `clean_cache_interval` or manually } else if($action === 'clean_cache'){ new CleanCache(); // invalid action 400 } else { $request->error("Invalid action $action"); } // output main Files Gallery document html if !action } else { new Document(); } // THE END! ================================================ FILE: js/files.js ================================================ /* Files Gallery 0.15.3 - https://www.files.gallery/ */ !function(){const e=(e,t)=>_c.config&&_c.config[e]?Object.assign(t||{},_c.config[e]):t||{};function t(e=_c.current_dir.path,t=_c.current_dir.basename,i){let a=i?0:(_c.file_names||[]).length;document.title="function"==typeof _c.config.title?_c.config.title(e,t,i,a):(_c.config.title||"").replace("%name%",t||"/").replace("%path%",e).replace("%count%",a)}function i(){const e=Swal.getContainer();if(!e)return;const t=getComputedStyle(e),i=e.firstElementChild,a=getComputedStyle(i);(![t.top,t.bottom,t.left].every((e=>0==e||"0px"==e))||e.offsetWidth/g,">"):""}function o(e,t){return''+e+""}function s(e){return _c.allow_download&&_c.allow_mass_download&&ne?`${_c.script}?action=download_dir_zip&dir=${encodeURIComponent(e.path)}&${e.mtime}`:"#"}_c.config=Object.assign({favicon:"",title:(e,t,i,a)=>(t||"/")+(i?"":` [${a}]`),panorama:{is_pano:(e,t)=>{var i=e.dimensions[0],a=e.dimensions[1],n=t.max_texture_size;if(!(n<2048||i<2048||i/a!=2)){if(!e.panorama_resized)return n>=i&&c(e);var o=[i].concat(e.panorama_resized),s=o.pop(),l=screen.availWidth*t.pixel_ratio*6;if(!(s>n)){var r=o.find((e=>n>=e&&e${U.get_svg_icon("marker")+ie.span("google maps")}`:`${U.get_svg_icon("marker")}`:""},span:function(e,t){return e?'"+U.get_svg_icon("marker")+"":""}};function r(e,t=!1){return`/cdn-cgi/image/${t?"width=480,height=480":"format=jpeg"}${e.cloudflare_convert}`}function c(e,t){let i=!!e.url_path&&encodeURI(e.url_path).replace(/#/g,"%23");return e.is_dir?i||"#":t?_c.allow_download?!i||_c.load_files_proxy_php||["php","htaccess"].includes(e.ext)?`${_c.script}?action=download&file=${encodeURIComponent(e.path)}`:i:"#":e.cloudflare_convert&&!X.browser_images.includes(e.mime1)?r(e):e.is_convert?`${_c.script}?action=file&file=${encodeURIComponent(e.path)}&convert=1`:i&&!_c.load_files_proxy_php?i:`${_c.script}?action=file&file=${encodeURIComponent(e.path)}`}function p(e,t){return e.url?encodeURI(e.url):e.is_dir?d(e.path):c(e,t)}function d(e){return location.pathname+(e?"?"+encodeURIComponent(e).replace(/%2F/g,"/"):"")}function m(e){for(;e.firstChild;)e.firstChild.remove()}function u(e,t,i){L(e,(function(e){var i=e.target.dataset.action;i&&t(i,e)}),"click",!1,i)}function h(e){return Array.isArray(e)?_c.config.map_link.replace("{latitude}",e[0]).replace("{longtitude}",e[1]):"#"}function _(e,t){return e?`${e[0]} x ${e[1]}`:""}function f(e,t){return e.is_dir?e.hasOwnProperty("dirsize")?`${g(e.dirsize)}`:"":`${g(e.filesize)}`}const g=e=>filesize(e,_c.config.filesize);function v(e,t,i){if(!_c.config.context_menu||!e)return"";let a=i?"span":"button";return`<${a} class="button-icon context-button${t?` ${t}`:""}" data-action="context">${U.get_svg_icon_multi("dots","close_thin")}`}function b(e,t,i,a){if(!e||!e.iptc)return"";var n=Object.keys(e.iptc);if(!n.length)return"";var o="",s="",l="";return n.forEach((function(i){var a=e.iptc[i];if(a){if(["city","sub-location","province-state"].includes(i))return s+=''+a+"";if(["creator","credit","copyright"].includes(i))return l+=''+a+"";if("keywords"===i&&Array.isArray(a)){var n=a.filter((e=>e));return o+=n.length?'
    '+n.join(", ")+"
    ":""}return o+='
    '+a+"
    "}})),(o+=(s?'
    '+s+"
    ":"")+(l?'
    '+l+"
    ":""))?i?'
    '+o+"
    ":o:""}function y(e,t,i){if(!e||!e.exif)return"";var a=E(["Model","ApertureFNumber","FocalLength","ExposureTime","ISOSpeedRatings","gps"],(function(t){var a=e.exif[t];if(!a)return"";if("Model"===t)a=U.get_svg_icon(a.toLowerCase().indexOf("phone")>-1?"cellphone":"camera")+a;else if("FocalLength"===t&&"string"==typeof a){var n=a.split("/");2===n.length&&(a=(n[0]/n[1]).toFixed(1)+"mm")}else if("gps"===t)return l[i||"a"](a,"exif-item exif-gps");return'"+a+""}));return a?'
    '+a+"
    ":""}function x(e,t){return e&&X.is_pointer?' data-lang="'+e+'"'+(t?' data-tooltip="':' title="')+ie.get(e,!t)+'"':""}function A(e){if(navigator.clipboard)return navigator.clipboard.writeText(e);var t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);var i=window.getSelection(),a=window.document.createRange();i.removeAllRanges(),a.selectNode(t),i.addRange(a);var n=!1;try{n=window.document.execCommand("copy")}catch(e){console.log("error",e)}return i.removeAllRanges(),window.document.body.removeChild(t),n?Promise.resolve():Promise.reject()}function w(e,t,i,a){e.classList.add(t),i&&(e.disabled=i),Q(a||2e3).then((()=>{e.classList.remove([t]),i&&(e.disabled=!1)}))}function C(e,t,i){if(!i&&e.which<=1&&!["meta","ctrl","shift","alt"].some((t=>e[`${t}Key`])))return e.preventDefault();const a=!!t&&t.getAttribute("href");return a&&"#"!==a?(t.contains(e.target)||t.click(),!0):void 0}function L(e,t,i,a,n){e.addEventListener(i||"click",function(e,t){return t?function(a){i||(e.apply(this,arguments),i=setTimeout((function(){i=null}),t))}:e;var i}(t,n)),a&&t()}function k(e,t){var i;return function(a){i&&clearTimeout(i),i=setTimeout(e,t||1e3,a)}}function H(e,t,i,a){return a&&(i=k(i,a)),e.addEventListener(t,i),{remove:()=>{e.removeEventListener(t,i)}}}_id=document.getElementById.bind(document),_class=function(e,t){return Array.from((t||document).getElementsByClassName(e))},_tag=function(e,t){return Array.from((t||document).getElementsByTagName(e))},_query=function(e,t){return(t||document).querySelector(e)},_querya=function(e,t){return Array.from((t||document).querySelectorAll(e))};const M={};function $(e,t,i){M[e]&&clearTimeout(M[e]),M[e]=setTimeout(t,i)}function V(e,t){for(var i=e.length,a=0;a{function e(e){return X.local_storage?localStorage.getItem(e):null}function t(e,t){"boolean"==typeof t&&(t=t.toString());try{localStorage.setItem(e,t)}catch(e){j("failed to write localstorage",e,"warn")}}return{get:t=>{let i=e(t);return"true"===i||"false"!==i&&i},get_json:t=>q(e(t)),set:function(e,i,a,n){return X.local_storage?a&&!i?localStorage.removeItem(e):n?Q(n).then((()=>t(e,i))):void t(e,i):null},remove:function(e){if(X.local_storage)return localStorage.removeItem(e)},set_option:(e,t,i)=>{if(X.local_storage)return t===i?localStorage.removeItem(e):"boolean"==typeof t?localStorage.setItem(e,t?"1":"0"):void localStorage.setItem(e,t)},get_option:(t,i)=>{const a=e(t);return a?"1"===a:!!i},bool:(e,i)=>{if(X.local_storage)return i?t(e,!0):localStorage.removeItem(e)}}})();function O(e){var t=new XMLHttpRequest;return t.onreadystatechange=function(){if(4==t.readyState)if(e.always&&e.always(t),200==t.status){var i=t.responseText,a=e.json_response,n=a?(()=>{try{return JSON.parse(i)}catch(e){return a=!1,i}})():i;if(a&&n.error&&"login"===n.error)return _e.was_logged_out("ajax");e.complete&&e.complete(n,i,a);var o=!e.url&&t.getResponseHeader("files-msg");o&&j("XHR: files-msg: "+o)}else e.fail&&e.fail(t)},t.open(e.method||(e.params?"POST":"GET"),e.url||_c.script),e.params&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.json_response&&t.setRequestHeader("Accept","application/json"),t.send(e.params||null),t}function S(e){return _c.server_exif&&e&&e.exif&&e.exif.Orientation&&e.exif.Orientation>4&&e.exif.Orientation<9}function B(e){return atob(e)}function Z(e,t,i){return Math.min(Math.max(i,e),t)}function R(){if(X.scrollbar_width){var e=document.documentElement,t=window.innerWidth-e.clientWidth||(e.scrollHeight>e.clientHeight?X.scrollbar_width:0);t!=G.scrollbar_width&&(t&&(X.scrollbar_width=t),G.scrollbar_width=t,document.documentElement.style.setProperty("--scrollbar-width",t+"px"))}}function D(e){if(!(e.is_dir&&e.is_readable&&_c.folder_preview_image&&_c.load_images&&_c.image_resize_enabled))return"";let t=_c.config.preview_image_cache?`${e.mtime}.${_c.menu_cache_hash||_c.location_hash}`:Date.now();return``}var _h={popup:(e,t,i,a,n)=>{e&&e.preventDefault(),t=Math.floor(Math.min(screen.width,t||1e3)),i=Math.floor(Math.min(screen.height,i||99999));var o=window.open(a,n||null,"toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,titlebar=no,width="+t+",height="+i+",top="+Math.round(screen.height/2-i/2)+",left="+Math.round(screen.width/2-t/2));return window.focus&&o.focus(),o}};function P(e,t){e.className!=t&&(e.className=t)}function N(e){var t={};return e&&e.split("&").forEach((e=>{let[i,a]=e.split("=");t[i]=isNaN(a)?a:+a})),t}function q(e,t){if(e)try{let i=JSON.parse(e);return t?i[t]:i}catch(e){return}}const Q=async e=>new Promise((t=>setTimeout(t,e)));function W(){K.files_container.classList.contains("files-spinner")||(me.clean_dir(_c.current_dir),U.get_files(_c.current_path,"replace",!0))}const F=(()=>{const e={duration:2e3,gravity:"bottom",escapeMarkup:!1};let t=t=>Toastify(Object.assign({},e,t)).showToast();const i=(e,t)=>U.get_svg_icon(e?"check":"cancel_circle")+''+n(t)+"",a={toggle:(a,n,o)=>t(Object.assign({text:i(a,n),className:"toastify-"+(a?"success":"danger"),duration:a?e.duration:3e3},o||{})),loader:(e,i)=>t({text:''+e+""+(i?''+U.get_svg_icon("tray_arrow_down")+'':""),className:"toastify-loading",duration:-1})};return{toast:e=>t(e),license:()=>t({text:i(!1,"License required!"),className:"toastify-danger toastify-link",duration:4e3,destination:B("aHR0cHM6Ly9saWNlbnNlLmZpbGVzLmdhbGxlcnkv"),newWindow:!0}),login:()=>t({text:i(!1,ie.get("you were logged out")),className:"toastify-danger toastify-link",duration:0,onClick:()=>_e.logout_refresh()}),refresh:e=>t({text:i(!1,e+". Please refresh browser!"),className:"toastify-danger toastify-link",duration:-1,destination:location.href}),toggle:a.toggle,demo:()=>a.toggle(!1,"Not allowed in demo mode!"),loader:a.loader,progress:e=>{let t=a.loader(e,!0);return{toast:t,counter:t.toastElement.children[1],progress_bar:t.toastElement.lastElementChild}}}})();_c.debug=z("debug")||0===location.host.indexOf("files.test"),_c.files={},j("_c",_c);const U={},G={},Y={},K={main:_id("main"),topbar:_id("topbar"),topbar_top:_id("topbar-top"),files_container:_id("files-container"),files:_id("files"),topbar_info:_id("topbar-info"),filter_container:_id("search-container"),filter:_id("search")},X={};function J(e,t){if(t.mime1&&t.mime0===e)return X.hasOwnProperty(e)||(X[e]=function(){if("audio"===e&&!window.Audio)return!1;var t="audio"===e?["mpeg","mp3","mp4","x-aiff","ogg","x-m4a","aac","webm","wave","wav","x-wav","x-pn-wav","flac"]:["mp4","webm","ogg","3gp","m4v","x-m4v"];try{var i=document.createElement(e);let a=t.filter((t=>i.canPlayType(`${e}/${t}`).replace(/no/,"")));return i.remove(),!!a.length&&a}catch(e){return!1}}()),!(!X[e]||!X[e].includes(t.mime1))&&t.mime1}(()=>{var e=X,t=document,i=t.documentElement,a=navigator,n=a.userAgent,o=window;e.ua=n,e.explorer=/MSIE /.test(n)||/Trident\//.test(n);var s=!!(o.CSS&&o.CSS.supports||o.supportsCSS);!e.explorer&&s&&CSS.supports("color","var(--fake-var)")||(t.body.innerHTML=``,t.body.classList.remove("body-loading"),fail),e.local_storage=!!o.localStorage&&(()=>{try{var e="_t";return o.localStorage.setItem(e,e),o.localStorage.removeItem(e),!0}catch(e){return!1}})(),e.is_touch="ontouchstart"in o||a.maxTouchPoints>0||a.msMaxTouchPoints>0||o.DocumentTouch&&t instanceof DocumentTouch||o.matchMedia("(any-pointer: coarse)").matches,e.is_pointer=!e.is_touch||o.matchMedia("(pointer:fine)").matches,e.is_dual_input=e.is_touch&&e.is_pointer,e.only_touch=e.is_touch&&!e.is_pointer,e.only_pointer=!e.is_touch&&e.is_pointer,e.PointerEvent=!!o.PointerEvent||a.msPointerEnabled,e.nav_langs=!(!a.languages||!a.languages.length)&&a.languages||!!a.language&&[a.language],e.pointer_events=!!("PointerEvent"in o)||a.msPointerEnabled,e.is_mac=/Mac|iPod|iPhone|iPad/.test(a.platform),e.is_ios=/iPad|iPhone|iPod/i.test(a.userAgent)&&a.maxTouchPoints>1,e.c_key=e.is_mac?"⌘":"ctrl-",e.modKey=e.is_mac?"metaKey":"ctrlKey",e.scrollbar_width=e.is_pointer?(()=>{t.body.insertAdjacentHTML("beforeend",'
    ');var e=t.body.lastElementChild,a=()=>e.offsetWidth-e.clientWidth;if(!a())return e.remove(),0;i.classList.add("has-scrollbars"),n.toLowerCase().indexOf("firefox")>-1&&(i.style.overflowY="auto",Q(0).then((()=>i.style.removeProperty("overflow-y"))));var o=a();return e.remove(),o})():0,e.pixel_ratio=o.devicePixelRatio||1,e.download="download"in t.createElement("a"),e.clipboard=!(!t.queryCommandSupported||!t.queryCommandSupported("copy")),e.url=!("function"!=typeof URL),e.fullscreen=screenfull.isEnabled,e.image_orientation=CSS.supports("image-orientation","from-image"),e.browser_images=["jpg","jpeg","png","gif","bmp","svg","svg+xml","ico","vnd.microsoft.icon","x-icon"],(()=>{const i=[["webp","UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"],["avif","AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="]];if((a.vendor.match(/apple/i)||"").length>0){let e="AAAAGGZ0eXBoZWljAAAAAG1pZjFoZWljAAAB5G1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAHBpY3QAAAAAAAAAAAAAAAAAAAAADnBpdG0AAAAAAAIAAAAQaWRhdAAAAAAAAQACAAAATGlsb2MBAAAAREAAAwABAAAAAAAAAgQAAQAAAAAAAAA2AAIAAQAAAAAAAAABAAAAAAAAAAgAAwAAAAAAAAI6AAEAAAAAAAADVAAAAE1paW5mAAAAAAADAAAAFWluZmUCAAABAAEAAGh2YzEAAAAAFWluZmUCAAAAAAIAAGdyaWQAAAAAFWluZmUCAAABAAMAAEV4aWYAAAAA2GlwcnAAAAC2aXBjbwAAAHZodmNDAQNwAAAAAAAAAAAAHvAA/P34+AAADwMgAAEAGEABDAH//wNwAAADAJAAAAMAAAMAHroCQCEAAQAqQgEBA3AAAAMAkAAAAwAAAwAeoCCBBZbqrprm4EBAwIAAAAMAgAAAAwCEIgABAAZEAcFzwYkAAAAUaXNwZQAAAAAAAAABAAAAAgAAABRpc3BlAAAAAAAAAEAAAABAAAAAEHBpeGkAAAAAAwgICAAAABppcG1hAAAAAAAAAAIAAQKBAwACAgKEAAAAKGlyZWYAAAAAAAAADmRpbWcAAgABAAEAAAAOY2RzYwADAAEAAgAAA5JtZGF0AAAAMigBrxMhamNAVNtUudIiM1hD24r89ADWCSGubSNnoMNqicMqNuK6hWvKAPhAh4Y12DY4AAAABkV4aWYAAElJKgAIAAAADQAAAQQAAQAAAKAPAAABAQQAAQAAALgLAAAPAQIACAAAAKoAAAAQAQIACQAAALIAAAASAQMAAQAAAAEAAAAaAQUAAQAAAN4AAAAbAQUAAQAAAOYAAAAoAQMAAQAAAAIAAAAxAQIADgAAALwAAAAyAQIAFAAAAMoAAAATAgMAAQAAAAEAAABphwQAAQAAAO4AAAAliAQAAQAAAMQCAAAAAAAAc2Ftc3VuZwBTTS1BMzI2QgAAQTMyNkJYWFM4Q1dLMgAyMDIzOjEyOjEyIDE4OjM5OjE2AEgAAAABAAAASAAAAAEAAAAcAJqCBQABAAAAhAIAAJ2CBQABAAAAfAIAACKIAwABAAAAAgAAACeIAwABAAAA9AEAAACQBwAEAAAAMDIyMAOQAgAUAAAARAIAAASQAgAUAAAAWAIAABCQAgAHAAAAbAIAABGQAgAHAAAAdAIAAAGSBQABAAAAjAIAAAKSBQABAAAAlAIAAAOSCgABAAAAnAIAAASSCgABAAAApAIAAAWSBQABAAAArAIAAAeSAwABAAAAAgAAAAmSAwABAAAAAAAAAAqSBQABAAAAvAIAAJCSAgAEAAAANTc2AJGSAgAEAAAANTc2AJKSAgAEAAAANTc2AAGgAwABAAAAAQAAAAKgBAABAAAAoA8AAAOgBAABAAAAuAsAAAKkAwABAAAAAAAAAAOkAwABAAAAAAAAAASkBQABAAAAtAIAAAWkAwABAAAAGQAAAAakAwABAAAAAAAAAAAAAAAyMDIzOjEyOjEyIDE4OjM5OjE2ADIwMjM6MTI6MTIgMTg6Mzk6MTYAKzAxOjAwAAArMDE6MDAAALQAAABkAAAAAQAAABkAAAABAAAAGQAAAKkAAABkAAAAdwAAAGQAAAAAAAAAZAAAAKkAAABkAAAAZAAAAGQAAADMAQAAZAAAAAYAAQACAAIAAABOAAAAAgAFAAMAAAASAwAAAwACAAIAAABFAAAABAAFAAMAAAAqAwAABQADAAEAAAAAAAAABgAFAAEAAABCAwAAAAAAACkAAAABAAAAKwAAAAEAAABvEQQCQEIPAAEAAAABAAAAMQAAAAEAAAB4FQcCQEIPACQBAAABAAAA";i.push(["tiff","SUkqAAwAAAADIAACEwAAAQMAAQAAAAEAAAABAQMAAQAAAAIAAAACAQMAAQAAAAEAAAADAQMAAQAAAAQAAAAGAQMAAQAAAAAAAAAKAQMAAQAAAAIAAAANAQIACwAAAAYBAAARAQQAAQAAAAgAAAASAQMAAQAAAAEAAAAVAQMAAQAAAAEAAAAWAQMAAQAAAAIAAAAXAQQAAQAAAAQAAAAaAQUAAQAAAPYAAAAbAQUAAQAAAP4AAAAcAQMAAQAAAAEAAAAoAQMAAQAAAAIAAAApAQMAAgAAAAAAAQAxAQIARwAAABIBAABTAQMAAQAAAAEAAAAAAAAASAAAAAEAAABIAAAAAQAAAHRlbXAyLnRpZmYAAEdyYXBoaWNzTWFnaWNrIDEuNCBzbmFwc2hvdC0yMDIyMTIxMyBROCBodHRwOi8vd3d3LkdyYXBoaWNzTWFnaWNrLm9yZy8A"],["heic",e],["heif",e])}let n=T.get("files:tests:extended_images"),o=n?n.split(","):[],s=o.length;if(s&&e.browser_images.push(...o),s>=i.length)return;let l=1;const r=t=>{t&&[o,e.browser_images].forEach((e=>e.push(t))),l++===i.length&&o.length>s&&T.set("files:tests:extended_images",o)};let c=t.createElement("canvas");c.width=c.height=1,i.forEach(((e,t)=>{if(o.includes(e[0]))return r();if(0==c.toDataURL(`image/${e[0]}`).indexOf(`data:image/${e[0]}`))return r(e[0]);let i=new Image;i.onload=i.onerror=()=>r(!(!i.height||2!=i.height)&&e[0]),i.src=`data:image/${e[0]};base64,${e[1]}`}))})(),e.history=!(!o.history||!history.pushState),e.history||(_c.config.history=!1),e.prefers_reduced_motion=(o.matchMedia("(prefers-reduced-motion: reduce)")||{}).matches,_c.config.respect_prefers_reduced_motion&&e.prefers_reduced_motion&&(_c.config.transitions=!1),e.URLSearchParams=!!("URLSearchParams"in o),location.search&&e.URLSearchParams&&new URLSearchParams(location.search).forEach(((e,t)=>{e&&t.startsWith("--")&&i.style.setProperty(t,e)})),e.max_texture_size=(()=>{if(o.WebGLRenderingContext){var e=document.createElement("canvas");if(e&&e.getContext)try{var t=e.getContext("webgl")||e.getContext("experimental-webgl");return!!t&&t.getParameter(t.MAX_TEXTURE_SIZE)}catch(e){return}}})()||0,e.supports_inline_pdf=!(void 0!==a.platform&&"MacIntel"===a.platform&&void 0!==a.maxTouchPoints&&a.maxTouchPoints>1)&&!/Mobi|Tablet|Android|iPad|iPhone/.test(n)&&("boolean"==typeof a.pdfViewerEnabled?a.pdfViewerEnabled:void 0!==o.chrome||void 0!==o.safari||void 0!==o.Mozilla||/irefox/.test(n))})(),j("tests",X);class ee{static theme="contrast";static index=0;static config=e("theme",{themes:["contrast","light","dark"],default:"contrast",button:!0,auto:!0});static init(){let e=this.is_theme(z("theme",!0));this.theme=e||this.is_theme(!!this.config.button&&T.get("files:theme"))||this.is_theme(!(!this.config.auto||!matchMedia("(prefers-color-scheme:dark)").matches)&&"dark")||this.config.default,this.index=this.config.themes.indexOf(this.theme),document.documentElement.dataset.theme!==this.theme&&(document.documentElement.dataset.theme=this.theme,e||T.set("files:theme",this.theme))}static is_theme(e){return!(!e||!this.config.themes.includes(e))&&e}static next(){this.index++,this.index>=this.config.themes.length&&(this.index=0),this.theme=this.config.themes[this.index],w(document.body,"no-transition",null,10),document.documentElement.dataset.theme=this.theme,T.set("files:theme",this.theme)}}ee.init(),(()=>{if(X.local_storage){var e=z("clearall",!0),t=!e&&z("clear",!0),i=e||t;if(U.clean_localstorage=function(){if(!i){var e=Object.keys(localStorage);e.length&&V(e,(function(e){if(e.startsWith("files:menu:"))localStorage.removeItem(e);else if(e.startsWith("files:dir:"))if(e.startsWith("files:dir:"+_c.dirs_hash)){if(_c.exists){var t=e.split(":"),i=t[3];if(_c.menu_max_depth&&i.split("/").length>=_c.menu_max_depth)return;var a=parseInt(t[4]);_c.dirs[i]&&_c.dirs[i].mtime==a||localStorage.removeItem(e)}}else localStorage.removeItem(e)}))}},i){var a=0;V(Object.keys(localStorage),(function(t){(e&&t.startsWith("files:")||t.startsWith("files:menu:")||t.startsWith("files:dir:"))&&(localStorage.removeItem(t),a++)})),j(a+" localStorage items cleared")}else _c.menu_exists||U.clean_localstorage()}})();const te=e=>e[0].toUpperCase()+e.slice(1),ie=(()=>{var e=!1,t=!1,i=_c.config&&_c.config.lang||{},a={ar:null,bg:null,cs:null,da:null,de:null,en:null,el:null,es:null,et:null,fi:null,fr:null,hu:null,id:null,it:null,ja:null,ko:null,ms:null,nl:null,no:null,pl:null,pt:null,ro:null,ru:null,sk:null,sl:null,sv:null,th:null,tr:null,uk:null,zh:null},n={ar:"sa",cs:"cz",da:"dk",el:"gr",en:"gb",et:"ee",ja:"jp",ko:"kr",ms:"my",sv:"se",sl:"si",uk:"ua",vi:"vn",zh:"cn"},o="object"==typeof _c.lang_custom?_c.lang_custom:{};"object"==typeof i.langs&&Object.keys(i.langs).forEach((e=>{o[e]=Object.assign(o[e]||{},i.langs[e])})),Object.keys(o).forEach((e=>{o[e].flag&&(n[e]=o[e].flag),a.hasOwnProperty(e)||(a[e]=o[e])}));var s=Object.keys(a).sort();if(X.local_storage){var l=T.get("files:version");l!==_c.version&&T.set("files:version",_c.version),l&&l!==_c.version&&V(s,(function(e){T.remove("files:lang:"+e)}))}var r={},c={get:function(e,t){var i=r[e]||e;return t?te(i):i},set:function(e,t){e.dataset.lang=t,e.textContent=this.get(t)},span:function(e,t){return`${this.get(e,t)}`},dropdown:function(){var a=z("lang_menu",!0)||i.menu;if(a&&"false"!=a&&"0"!=a){var o=Array.isArray(i.menu)?i.menu:s;K.topbar_top.insertAdjacentHTML("beforeend",`
  • `);_c.dirs[i]={basename:this.name,fileperms:e.fileperms,filetype:"dir",is_dir:!0,is_writeable:!!e.is_writeable,is_readable:!!e.is_readable,menu_li:t.lastElementChild,mime:"directory",mtime:Math.round(Date.now()/1e3),path:i,url_path:!!e.url_path&&me.create_path(e.url_path,this.name)};this.sort_menu_level(t),ke.update()}me.clean_dir(e),this.reload_current_dir(e)}else if("copy"===this.action){const e=_c.dirs[this.dir],t=this.items.filter((e=>e.is_dir)),i=!!t.length&&this.get_target_ul(e);i&&t.forEach((e=>{const t=e.path,a=me.create_path(this.dir,e.basename);if(_c.dirs[a])return;const n=this.get_menu_li(e);if(!n)return;const o=i.appendChild(n.cloneNode(!0));o&&(this.clear_max_depth_uls(o),this.li_looper(o,t,a,((e,t,i,a,n)=>{t.classList.remove("menu-active");const o=_c.dirs[n]=Object.assign({},i,{menu_li:e,mtime:Math.round(Date.now()/1e3),path:n,url_path:this.get_url_path(i.url_path,a,n)});me.clean_dir(o)})))})),this.sort_menu_level(i),i&&ke.update(),me.clean_dir(e),this.reload_current_dir(e)}else if("move"===this.action){const e=_c.dirs[this.dir],t=this.items.filter((e=>e.is_dir)),i=!!t.length&&this.get_target_ul(e);i&&t.forEach((e=>{const t=e.path,a=me.create_path(this.dir,e.basename);if(_c.dirs[a])return;const n=this.get_menu_li(e);if(!n)return;const o=n.parentElement,s=i.appendChild(n);s&&(this.clear_max_depth_uls(s),this.li_looper(s,t,a,((e,t,i,a,n)=>{t.classList.remove("menu-active"),delete _c.dirs[a],me.clean_dir(i);_c.dirs[n]=Object.assign(i,{mtime:Math.round(Date.now()/1e3),path:n,url_path:this.get_url_path(i.url_path,a,n)})})),o&&!o.children.length&&this.remove_ul(o))})),this.items.forEach((e=>{e.is_dir&&this.update_dirs(e.path,me.create_path(this.dir,e.basename)),this.partial_fail||this.delete_file(e)})),this.sort_menu_level(i),i&&ke.update(),me.clean_dir(this.parent_dir,this.partial_fail),me.clean_dir(e),this.partial_fail||this.update_current_dir(),this.reload_current_dir(e),this.partial_fail&&this.reload_current_dir(this.parent_dir)}else if("zip"===this.action)me.clean_dir(this.parent_dir),this.reload_current_dir(this.parent_dir);else if("duplicate"===this.action){const e=this.items.filter((e=>e.is_dir)),t=!!e.length&&this.get_target_ul(this.parent_dir);t&&e.forEach((e=>{const i=this.get_menu_li(e);if(!i)return;const a=t.appendChild(i.cloneNode(!0));if(!a)return;const n=this.name||this.get_unique_filename(e.basename,this.parent_dir,!0),o=e.path,s=o.replace(new RegExp(e.basename+"$"),n);this.li_looper(a,o,s,((e,t,i,a,n)=>{t.classList.remove("menu-active");const o=_c.dirs[n]=Object.assign({},i,{menu_li:e,mtime:Math.round(Date.now()/1e3),path:n,url_path:this.get_url_path(i.url_path,a,n)});me.clean_dir(o)})),a.firstElementChild.lastChild.nodeValue=n;const l=_c.dirs[s];l&&(l.basename=n)})),this.sort_menu_level(t),t&&ke.update(),me.clean_dir(this.parent_dir),this.reload_current_dir(this.parent_dir)}else if("delete"===this.action){const e=K.sidebar_menu?this.items.map((e=>!!e.is_dir&&this.get_menu_li(e))).filter(Boolean):[];e.forEach((e=>{const t=e.parentElement;if(t.children.length<=1&&t.classList.contains("menu-ul"))return this.remove_ul(t);e.remove()})),this.items.forEach((e=>{e.is_dir&&this.update_dirs(e.path),this.partial_fail||this.delete_file(e)})),e.length&&ke.update(),me.clean_dir(this.parent_dir,this.partial_fail),this.partial_fail||this.update_current_dir(),this.partial_fail&&this.reload_current_dir(this.parent_dir)}this.check_current_dir()}dir_is_writeable(e){return!e||e.is_writeable}load(){if(_c.hasOwnProperty(`allow_${this.action}`)&&!_c[`allow_${this.action}`])return F.toggle(!1,`${this.action} is not allowed`);if(_c.demo_mode)return F.demo();if(!ne)return F.license();if(this.pasted_from&&(this.dir=_c.current_dir.path),this.dir&&this.into_self(this.dir))return F.toggle(!1,`Can't ${this.action_name} folders into themselves`);if(this.dir_action&&!this.dir_is_writeable(_c.dirs[this.dir]))return F.toggle(!1,`${ie.get("folder",!0)} ${ie.get("is not writeable")}`);if(!["copy","unzip"].includes(this.action)&&!this.dir_is_writeable(this.new_item_action?this.first_item:this.parent_dir))return F.toggle(!1,`${ie.get("folder",!0)} ${ie.get("is not writeable")}`);this.toggle_loading(!0);const e={items:this.items.map((e=>({basename:e.basename,is_dir:e.is_dir,path:e.path})))};["dir","name","text"].forEach((t=>{this.hasOwnProperty(t)&&(e[t]=this[t])})),fetch(`${_c.script}?action=${this.action}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(e)}).then((e=>e.ok?e.json():Promise.reject(new Error(e.status&&e.statusText?`${e.status} ${e.statusText}`:"Error")))).then((e=>"login"===e.error?(this.toggle_loading(!1),this.complete&&this.complete(!1),_e.was_logged_out("filemanager")):e.error||!e.success?Promise.reject(new Error(e.error||"Error")):(this.toggle_loading(!1),this.partial_fail=e.fail&&["delete","move","duplicate","copy"].includes(this.action)?e.fail:0,void this.success()))).catch(((e,t)=>{this.toggle_loading(!1),F.toggle(!1,e.message||"Error"),this.complete&&this.complete(!1)}))}}_c.allow_upload&&U.load_plugin("uppy",(()=>{function t(){let e=p.watermark.use_image||!!p.watermark.text;p.watermark.enabled=e;let t=!e&&d;if(p.strict===t)return;p.strict=t;let i=n.getPlugin("Compressor");i&&i.setOptions(p)}const i=()=>{let e=n.getFiles().length;[1,2,5,9].forEach((t=>l.classList.toggle("uppy-Dashboard-inner-"+t,e>=t))),Q(1).then((()=>{let e=_class("uppy-StatusBar-actionBtn--upload")[0];e&&(e.className="button upload-button")}))},a=e("uppy",{note:!0,DropTarget:!0,ImageEditor:!0}),n=Y.uppy=new Uppy.Uppy({restrictions:{maxFileSize:_c.upload_max_filesize||null,allowedFileTypes:_c.upload_allowed_file_types?_c.upload_allowed_file_types.split(",").map((e=>{let t=e.trim();return t.startsWith(".")||t.includes("/")||t.includes("*")?t:"."+t})).filter((e=>e)):null}}).use(Uppy.Dashboard,{trigger:"#fm-upload",thumbnailWidth:Math.round(160*Math.min(X.pixel_ratio,2)),showLinkToFileUploadResult:!0,showProgressDetails:!0,metaFields:[{id:"name",name:ie.get("name"),placeholder:ie.get("name"),render:({value:e,onChange:t,fieldCSSClasses:i},a)=>a("input",{class:i.text,type:"text",value:e,maxlength:128,onChange:e=>t(e.target.value.trim()),onInput:e=>{e.target.value=e.target.value.replace(/[#%&(){}\\<>*?/$!'":;\[\]@+`|=]/gi,"").replace("..",".")},"data-uppy-super-focusable":!0})}],doneButtonHandler:()=>{u(!1),n.cancelAll()},closeModalOnClickOutside:!0,animateOpenClose:!1,proudlyDisplayPoweredByUppy:!1,showRemoveButtonAfterComplete:_c.allow_delete,theme:"dark"===ee.theme?"dark":"light"}).use(Uppy.XHRUpload,{endpoint:_c.script+"?action=upload",validateStatus:(e,t,i)=>q(t,"success"),getResponseError:(e,t)=>q(e,"error")}).on("files-added",(e=>{i()})).on("files-added",(e=>{i()})).on("file-removed",(e=>{i()})).on("cancel-all",(e=>{i()})).on("file-removed",((e,t)=>{_c.allow_delete&&"removed-by-user"===t&&e.response&&e.response.body&&e.response.body.success&&e.progress&&e.progress.uploadComplete&&e.meta&&new me({action:"delete",items:[{path:me.create_path(e.meta.dir,e.meta.name),is_dir:!1,basename:e.meta.name}],show_prompt:!1})})).on("upload-success",((e,t)=>{let i=t.body.filename;i&&e.name!==i&&n.setFileMeta(e.id,{name:i})})).on("complete",(e=>{const t=n.getState().meta.dir,i=[t];e.successful&&e.successful.length&&e.successful.forEach((function(e){if(e.uploadURL&&(e.uploadURL=new URL(e.uploadURL,location.href).href),!e.meta.relativePath)return;const a=me.get_parent_path(me.create_path(t,e.meta.relativePath));a&&-1===i.indexOf(a)&&i.push(a)})),i.forEach((e=>{let t=_c.dirs[e];t&&(["files","html","json_cache"].forEach((e=>delete t[e])),T.remove(he(e,t.mtime)))})),delete Y.contextmenu.el})).on("dashboard:modal-open",(()=>{let e=n.getPlugin("Dashboard"),i="dark"===_c.theme?"dark":"light";e.opts.theme!==i&&e.setOptions({theme:i}),function(){let e=p.watermark;if(!e||"object"!=typeof e||e.assets_loaded)return;e.assets_loaded=!0;let i=_c.watermark_files||[],a=(!1!==e.interface||!e.text)&&(e.image_src||i.find((e=>/\.(png|jpg|gif|webp)$/i.test(e))));a&&(e.image=new Image,e.image.addEventListener("load",(()=>{let i=_id("watermark");e.use_image=!i||!1!==T.get("files:upload:watermark:use_image"),t(),i&&(i.insertAdjacentHTML("afterbegin",``),_id("watermark-image").addEventListener("change",(i=>{e.use_image=i.currentTarget.checked,t(),T.set("files:upload:watermark:use_image",e.use_image)})))})),e.image.src=a);let n=(!1!==e.interface||!a)&&(e.font_src||i.find((e=>/\.(otf|ttf|woff|woff2)$/i.test(e))));if(n){let t=new FontFace("custom_font",`url(${n})`);document.fonts.add(t),t.load().then((()=>{e.font="10px custom_font"}))}}(),R(),ne||s.classList.add("uppy-nolicense"),a.note&&e.setOptions({note:("string"==typeof a.note?a.note:"%path% ≤ %upload_max_filesize%").replace("%upload_max_filesize%",_c.upload_max_filesize?g(_c.upload_max_filesize):"").replace("%path%",n.getState().meta.dir||ie.get("home",!0)||me.config.path_selector_root_value)})})).on("dashboard:modal-closed",(()=>{const e=n.getState();if(100===e.totalProgress){if(!e.error||Object.keys(e.files).some((t=>!e.files[t].error))){let t=e.meta.dir===_c.current_path;t&&ue.current()&&history.replaceState(history.state||null,document.title,location.pathname+location.search),U.get_files(e.meta.dir,t?"replace":"push",t)}n.cancelAll()}})),o={ImageEditor:{target:Uppy.Dashboard,quality:.8},DropTarget:{target:document.body,onDrop:e=>u(!0,_c.current_path)},Webcam:{target:Uppy.Dashboard}};Object.keys(o).forEach((e=>{a[e]&&n.use(Uppy[e],"object"==typeof a[e]?Object.assign(o[e],a[e]):o[e])}));const s=document.body.lastElementChild,l=s.firstElementChild.lastElementChild,r=l.firstElementChild,c=l.lastElementChild;_c.demo_mode&&s.classList.add("uppy-demo-mode"),_c.allow_delete&&s.classList.add("uppy-allow-delete"),r.insertAdjacentHTML("afterbegin",U.get_svg_icon("close_thin")),r.className="button-icon button-uppy-close";const p=a.hasOwnProperty("Compressor")&&!a.Compressor?{}:Object.assign({interface:!0,enabled:!1,quality:.8,maxWidth:2e3,maxHeight:2e3,retainExif:!0,watermark:{},strict:!0,drew:(e,t)=>{let i=p.watermark;if(!i.enabled)return;Object.assign(e,{font:"10px Futura, Gill Sans, Gill Sans MT, Calibri, Trebuchet MS, sans-serif",fillStyle:"white",position:"bottom-right",scale:.3,margin:.05},i,/(.+)=(.+)/.test(i.text)?N(i.text):{});let a=e.position.split("-"),n=t.width,o=t.height,[s,l]=["scale","margin"].map((t=>parseFloat(e[t])||0));if(!s||isNaN(s)||s<=0)return console.warn("scale must be a positive number > 0");if(isNaN(l)||l<0)return console.warn("margin must be a positive number >= 0");if(l<=1&&(l*=n),p.watermark.use_image){let t=p.watermark.image,i=t.naturalWidth,r=t.naturalHeight;if(!(t&&t.complete&&i&&r))return;let c=s>1?1:n/i*s,d=s>1?s:i*c,m=s>1?s*(r/i):r*c,u="left"===a[1]?l:"right"===a[1]?n-d-l:n/2-d/2,h="top"===a[0]?l:"bottom"===a[0]?o-m-l:o/2-m/2;e.drawImage(t,0,0,i,r,u,h,d,m)}else{let t=s>1?s:(e.font.match(/\d+/)||10)*(n/e.measureText(e.text).width)*s;e.font=e.font.replace(/\d+px/,t+"px"),Object.assign(e,{textBaseline:"center"===a[0]?"middle":a[0],textAlign:a[1]||"center"});let i="left"===a[1]?l:"right"===a[1]?n-l:n/2,r="top"===a[0]?l:"bottom"===a[0]?o-l:o/2;e.fillText(e.text,i,r)}}},a.Compressor||{}),d=!!p.strict;if(p.interface){let b={},y=N(T.get("files:upload:compressor"));function m(e){let t=e.currentTarget,i=t.id.replace("compressor-",""),a="enabled"===i?t.checked?1:0:t.value.replace(",",".");if(["quality","maxWidth","maxHeight"].includes(i)){if(isNaN(a)||""===a)return t.value=p[i];if(a=+a,"quality"===i)(a<0||a>1)&&(t.value=a=a>1?1:0);else if(a<1)t.value=a=1;else{let e=Math.round(a);a!==e&&(t.value=a=e)}}if(a!==p[i]){if(p[i]=a,T.set("files:upload:compressor",Object.keys(b).map((e=>p[e]!=b[e]&&e+"="+p[e])).filter(Boolean).join("&"),!0),"enabled"===i)return x.classList.toggle("compressor-enabled",!!a),a?n.use(Uppy.Compressor,p):n.removePlugin(n.getPlugin("Compressor"));n.getPlugin("Compressor").setOptions(p)}}["enabled","quality","maxWidth","maxHeight"].forEach((e=>{b[e]=p[e],y[e]&&(p[e]=y[e])})),p.watermark.text=!1!==p.watermark.interface&&T.get("files:upload:watermark"),c.insertAdjacentHTML("beforeend",`
    ${!1!==p.watermark.interface?`
    `);const x=c.lastElementChild;_tag("input",x).forEach((e=>L(e,m,"change")));let A=_id("watermark-text");A&&(["input","focus"].forEach((e=>L(A,(()=>{A.style.height="auto",A.style.height=A.scrollHeight+"px"}),e))),L(A,(()=>{let e=A.value.trim();p.watermark.text=e,t(),T.set("files:upload:watermark",e,!0)}),"change")),p.enabled&&!a.Compressor&&"none"===window.getComputedStyle(x).getPropertyValue("display")&&(p.enabled=!1,T.remove("files:upload:compressor"))}function u(e,t){var i=n.getPlugin("Dashboard");!!e!==i.isModalOpen()&&(i[e?"openModal":"closeModal"](),"string"==typeof t&&n.setMeta({dir:t}))}function h(e){U.load_plugin("uppy_locale_"+e,(()=>{Y.uppy.setOptions({locale:Uppy.locales[e]})}),{src:["@uppy/locales@3.4.0/dist/"+e+".min.js"]})}p.enabled&&(t(),n.use(Uppy.Compressor,p)),U.uppy_locale=function(e){var t=f(e)||f(_c.lang_default)||"en_US";t!==v&&(v=t,h(v))};var _={no:"nb_NO",nn:"nb_NO"};["ar_SA","bg_BG","ca_ES","cs_CZ","da_DK","de_DE","el_GR","en_US","es_ES","es_MX","fa_IR","fi_FI","fr_FR","gl_ES","he_IL","hi_IN","hr_HR","hu_HU","id_ID","is_IS","it_IT","ja_JP","ko_KR","nb_NO","nl_NL","pl_PL","pt_BR","pt_PT","ro_RO","ru_RU","sk_SK","sr_RS_Cyrillic","sr_RS_Latin","sv_SE","th_TH","tr_TR","uk_UA","uz_UZ","vi_VN","zh_CN","zh_TW"].forEach((function(e){_[e.replace("_","-").toLowerCase()]=e;var t=e.split("_")[0];_[t]||(_[t]=e)}));const f=e=>!!e&&_[e];let v=f(z("lang",!0))||f(T.get("files:lang:current"))||!!a.locale&&f(a.locale.replace("_","-").toLowerCase())||(()=>{if(_c.lang_auto&&X.nav_langs)for(var e=0;e{n.cancelAll(),u()}),"popstate")}));var ue=(()=>{let e,t="",i=screen.width>=768,a=_c.config.filter_live&&X.is_pointer,n=(()=>{let e=_c.config.filter_props;if(!e)return["basename"];"string"==typeof e&&(e=e.split(","));const t=["basename","filetype","mime","features","title","headline","description","creator","credit","copyright","keywords","city","sub-location","province-state"],i=["icon"];return e.forEach((function(e){let a=e.trim().toLowerCase();"name"===a&&(a="basename"),a&&t.includes(a)&&!i.includes(a)&&i.push(a)})),i})();function o(e){i&&(K.filter_container.dataset.input=e||"")}const s={current:()=>t,create:function(){Y.list=new ge(K.files.parentElement,{}),V(_c.file_names,((e,t)=>{Y.list.items[t]._values=_c.files[e]}))},empty:function(){Y.list&&(Y.list.clear(),Y.list.matchingItems=[]),m(K.files),window.scrollY&&window.scroll({top:0})},update_interface:()=>{const e=Y.list.matchingItems.length;P(K.filter_container,[t?"filter-"+(e?"match":"nomatch"):"",K.filter_container.classList.contains("search-small-focused")?"search-small-focused":""].filter(Boolean).join(" ")),U.topbar_info_search(t,e),ye.update()},update:()=>{Y.list.search(t.toLowerCase(),n),s.update_interface()},filter:function(e){t!==K.filter.value&&Y.list&&(t=K.filter.value,Y.list.search(t.toLowerCase(),n),s.update_interface(),!1!==e&&history.replaceState(history.state||null,document.title,t?"#filter="+encodeURIComponent(t):location.pathname+location.search),window.scrollY&&window.scrollTo({top:0}))},hash:function(e){var t=z("filter",!0,!0);t&&(t=decodeURIComponent(t),K.filter.value=t,o(t),e&&s.filter(!1))},clear:function(e){if(t){if(K.filter.value="",o(),e)return s.filter();t="",P(K.filter_container,K.filter_container.classList.contains("search-small-focused")?"search-small-focused":"")}},disabled:function(e){K.filter.disabled!==!!e&&(K.filter.disabled=!!e)}};(i||a)&&L(K.filter,(function(t){o(K.filter.value),a&&(e&&clearTimeout(e),e=setTimeout(s.filter,Z(250,750,_c.files_count)))}),"input"),L(K.filter,s.filter,"change");const l=e=>K.filter.clientWidth{l(160)&&(K.filter_container.style.setProperty("--height",`${K.filter_container.clientHeight}px`),K.filter_container.classList.add("search-small-focused"))})),K.filter.addEventListener("blur",(e=>K.filter_container.classList.remove("search-small-focused"))),"undefined"!=typeof ResizeObserver&&new ResizeObserver((()=>{K.filter.classList.toggle("search-small",l(100))})).observe(K.filter),s})();function he(e,t){return""===e&&(e="ROOT"),"files:dir:"+_c.dirs_hash+":"+(e||_c.current_dir.path)+":"+(t||_c.current_dir.mtime)}_c.is_clean_cache_time&&Q(5e3).then((()=>fetch(`${_c.script}?action=clean_cache&app=1`))),function(){var e=!1,i=(X.pixel_ratio>=1.5||_c.image_resize_cache_use_dir)&&_c.image_resize_dimensions_retina?_c.image_resize_dimensions_retina:_c.image_resize_dimensions,s=!!_c.x3_path&&_c.x3_path+(_c.x3_path.endsWith("/")?"":"/")+"render/w"+(X.pixel_ratio>=1.5?"480":"320")+"/";image_load_errors=0,image_resize_min_ratio=Math.max(_c.image_resize_min_ratio,1);const d=(e,t)=>{let i="svg-icon files-icon-overlay";return e.is_pano?U.get_svg_icon_class("panorama_variant",i):"gif"===e.browser_image?e.resize||!t?U.get_svg_icon_class("gif",i):"":e.gps?U.get_svg_icon_class("marker",i):"pdf"===e.mime1&&t?U.get_svg_icon_multi_class(i,"square_rounded","file_pdf_box"):""};function m(t,i){if(e)return e.abort(),e=!1,void(i&&i());if(_c.config.transitions&&_c.files_count)if("list"!==Y.layout.layout){for(var a=K.files.children,n=a.length,o=[],s=window.innerHeight,l=0;l-1&&(i+=t?"&"+location.search.substr(1):location.search);return i}(a,e)),document.body.dataset.currentPath=e||"/"}const g=()=>{let e=location.search.replace("?","").split("&")[0];return e&&!e.includes("=")?decodeURIComponent(e):""};_c.config.cloudflare_convert&&!_c.resize_image_types.includes("heic")&&_c.resize_image_types.push("heic"),_c.config.resize_exclude&&(_c.resize_image_types=_c.resize_image_types.filter((e=>!e.match(_c.config.resize_exclude)))),_c.config.convert_native_formats&&_c.imagemagick&&(X.browser_images=X.browser_images.filter((e=>!_c.imagemagick_image_types.includes(e)||!e.match(_c.config.convert_native_formats))));const b=e=>!!(e=>{if(!_c.config.cloudflare_convert||!X.url||!e.url_path||"heic"!==e.ext)return;let t=new URL(e.url_path,location.href);return t&&t.pathname?e.cloudflare_convert=t.pathname:void 0})(e)||(!!X.browser_images.includes(e.mime1)||!(!_c.imagemagick||!_c.imagemagick_image_types.includes(e.ext))&&(e.is_convert=!0)),x=e=>{if(_c.load_images&&e.is_readable)return!_c.config.load_images_exclude||!e.mime.match(_c.config.load_images_exclude)};function A(){const e=E(_c.file_names,((e,t)=>{var m=_c.files[e];if(m.is_dir){let e=_c.dirs[m.path];e&&m.mtime!==e.mtime&&Object.assign(_c.dirs[m.path],m)}else if(!m.mime&&m.ext&&(m.mime=re[m.ext]),m.mime){var u=m.mime.split("/");m.mime0=u[0],u[1]&&(m.mime1=u[1])}m.display_name=m.url?m.basename.slice(0,-4):m.basename,m.image&&(m.image.exif&&m.image.exif.gps&&Array.isArray(m.image.exif.gps)&&(m.gps=m.image.exif.gps),m.image.width&&m.image.height&&(m.dimensions=[m.image.width,m.image.height],m.ratio=m.image.width/m.image.height),m.image.iptc&&Object.assign(m,m.image.iptc));var h,g=function(){if(m.mime1){if("image"===m.mime0){if(!b(m))return;if(m.browser_image=m.mime1,m.is_popup=!0,ne&&m.dimensions&&X.max_texture_size){let e=_c.config.panorama.is_pano(m,X);e&&(m.is_pano=e,_c.current_dir.has_pano=!0)}if(!x(m))return;var e=!1,t="files-img files-img-placeholder files-lazy";if("svg+xml"===m.browser_image||"svg"===m.ext){if(m.filesize>_c.config.load_svg_max_filesize)return;t+=" files-img-svg"}if(function(e){if(!_c.image_resize_enabled||!e.mime1||!_c.resize_image_types.includes(e.mime1))return;if(!e.dimensions||!e.image)return!0;let t=e.image,a=Math.max(t.width,t.height)/i,n=t.width*t.height;if(!(a_c.image_resize_max_pixels)){if(_c.image_resize_memory_limit){var o=t.width/a,s=t.height/a;if((n*(t.bits?t.bits/8:1)*(t.channels||3)*1.33+o*s*4)/1048576>_c.image_resize_memory_limit)return}return!0}}(m)&&(e=m.resize=i),!e&&m.filesize>_c.load_images_max_filesize)return;return"ico"===m.ext&&(t+=" files-img-ico"),m.dimensions&&(m.preview_dimensions||(m.preview_dimensions=e?m.ratio>1?[e,Math.round(e/m.ratio)]:[Math.round(e*m.ratio),e]:[m.image.width,m.image.height]),m.preview_ratio||(m.preview_ratio=m.preview_dimensions[0]/m.preview_dimensions[1])),``}if("video"===m.mime0){if(J("video",m)&&(m.is_browser_video=!0,_c.config.video_popup&&(m.is_popup=!0)),!_c.ffmpeg||!x(m))return;return m.preview_ratio||(m.preview_ratio=_c.config.video_preview_ratio),`${m.is_browser_video?U.get_svg_icon_class("play","svg-icon svg-overlay-play"):""}`}if("pdf"===m.mime1){if(!_c.imagemagick_pdf||!x(m))return;return m.preview_ratio||(m.preview_ratio=_c.config.pdf_preview_ratio),``}return m.url?de(m):void 0}}();if(!g&&!m.custom_preview&&_c.custom_previews){let e=(m.is_dir?["folder"]:[m.ext,m.mime0,"file"]).find((e=>_c.custom_previews[e]));e&&(m.custom_preview=_c.custom_previews[e])}if(m.custom_preview){m.preview_ratio||(m.preview_ratio=m.is_dir?_c.config.folder_preview_ratio:_c.config[`${m.ext}_preview_ratio`]||_c.config[`${m.mime0}_preview_ratio`]||_c.config.file_preview_ratio),g=`${m.is_browser_video||m.embed||m.url&&"m3u8"===m.ext?U.get_svg_icon_class("play","svg-icon svg-overlay-play"+(m.embed?" svg-overlay-play-embed":"")):J("audio",m)?U.get_svg_icon_multi_class("svg-icon svg-overlay-play","play","pause"):""}`}return function(e){var t="dir"==e.filetype?"folders":"files",i=e.image;if(i){t+=",image";var a=i.width,n=i.height,o=i.exif,s=i.iptc;a&&n&&(t+=a===n?",square":a>n?",landscape,horizontal":",portrait,vertical"),o&&(t+=",exif",o.gps&&(t+=",gps,maps"),t+=E(["Make","Model","Software"],(function(e){if(o[e])return","+o[e]}))),s&&(t+=",iptc"+E(["title","headline","description","creator","credit","copyright","keywords","city","sub-location","province-state"],(function(e){if(s[e])return","+e})))}e.embed&&(t+=",video,"+e.icon),e.features=t}(m),function(e){let t=!(!e.image||!e.image.exif)&&e.image.exif.DateTimeOriginal;if(!t||!t.match(/^\d{4}:\d{2}:\d{2}.\d{2}:\d{2}:\d{2}/))return;let i=t.split(/\D/),a=new Date(i[0],i[1]-1,i[2],i[3],i[4],i[5]);isNaN(a)||(e.mtime=Math.floor(a.getTime()/1e3))}(m),`${g||U.get_svg_large(m,"files-svg")}\n\t\t\t\t
    \n\t\t\t\t\t${l.span(m.gps,"gps")}\n\t\t\t\t\t${n(m.display_name)}\n\t\t\t\t\t${m.image&&m.image.iptc&&m.image.iptc.title?o((h=m.image.iptc.title,-1===h.indexOf("/g,"").replace(/\shref\=/g," data-href=")),"title"):""}\n\t\t\t\t\t${U.get_svg_icon_files_layout(m)}\n\t\t\t\t\t${_(m.dimensions,"dimensions")}\n\t\t\t\t\t${f(m,"size")}\n\t\t\t\t\t${y(m.image,"exif","span")}\n\t\t\t\t\t${o(m.ext?o(m.ext,"ext-inner"):"","ext")}\n\t\t\t\t\t${o(U.get_time(m,"L LT",!0,!1),"date")}\n\t\t\t\t\t\n\t\t\t\t
    \n\t\t\t\t${d(m,g)}\n\t\t\t\t${v("menu"!==_c.config.click||m.is_dir,"files-context",!0)}\n\t\t\t\t${D(m)}\n\t\t\t\t${ye.config.enabled?U.get_svg_icon_class("check","svg-icon svg-check-select"):""}\n\t\t\t
    `}));return _c.config.javascript_cache&&(_c.current_dir.html=e),e}function k(e){if("replace"!==e||Y.load_action_was_triggered)return;if(Y.load_action_was_triggered=!0,xe.is_install)return new xe;if(!location.search.includes("="))return;let t=["copy","delete","duplicate","move","new_file","new_folder","rename","upload","settings"].filter((e=>_c[`allow_${e}`])),i=!!t.length&&location.search.match(new RegExp(`(${t.join("|")})=(1|true)`));if(i){if("settings"===i[1])return new xe;if(_c.current_dir)return"upload"===i[1]?U.load_plugin("uppy",(()=>{Y.uppy.setMeta({dir:_c.current_dir.path}),Y.uppy.getPlugin("Dashboard").openModal()})):void new me({action:i[1],items:[_c.current_dir]})}}function H(e,t,i){if(oe(),image_load_errors=0,_c.current_dir=_c.dirs[e],_c.files=_c.current_dir.files,j(i+" :",e,_c.current_dir),_c.file_names=Object.keys(_c.files),_c.files_count=_c.file_names.length,h(e,_c.current_dir.basename,t),U.breadcrumbs_info(),_c.files_count||U.topbar_info(U.get_svg_icon("alert_circle_outline")+ie.span("directory is empty"),"warning"),ue.disabled(!_c.files_count),ye.reset(_c.files_count),!_c.files_count)return pe.destroy(),k(t);K.files.innerHTML=_c.current_dir.html||A(),_c.current_dir.has_pano&&U.load_plugin("pannellum"),ue.create(),"push"!==t&&ue.hash(!0),U.set_sort(),fe.pictures(),pe.page_load(),!t&&_c.current_dir.scroll&&_c.current_dir.scroll.y&&_c.current_dir.scroll.h==document.body.scrollHeight&&window.scrollTo(0,_c.current_dir.scroll.y),"replace"===t&&(function(){if(!_c.config.history||!location.hash)return;let e=z("pid",!0,!0),t=e||location.hash.replace("#","");if(!t)return;let i=_c.files[decodeURIComponent(t)];if(!i)return;if(e&&i.is_popup)U.open_popup(i,!0);else{if(pe.hashed(i))return;U.open_modal(i)}return!0}()||Y.popup.open())||m(!0),k(t)}function M(e,t){return _c.dirs[e]?t?_c.dirs[e].mtime>t.mtime?_c.dirs[e]=Object.assign(t,_c.dirs[e]):Object.assign(_c.dirs[e],t):_c.dirs[e]:_c.dirs[e]=t||{}}function $(e,t,i){_c.current_dir=!1,pe.destroy(),ye.reset(),U.topbar_info(U.get_svg_icon("alert_circle_outline")+`${ie.get("error")} ${e||""}`,"error"),h(t,ie.get("error")+(e?": "+e:"."),i,!0)}U.get_files=(t,i,a)=>{if(a||t!==_c.current_path){_c.current_path=t,_c.config.history_scroll&&_c.current_dir&&(_c.current_dir.scroll={y:window.scrollY,h:document.body.scrollHeight}),K.topbar_info.className="info-hidden",ue.clear(),a||U.set_breadcrumbs(t),!a&&_c.menu_exists&&ke.set_active(t);var n=_c.dirs[t];if(!a&&n){if(n.files&&_c.config.javascript_cache)return m(!1,(function(){ue.empty(),H(t,i,"files from JS")}));if(_c.config.localStorage_cache){var o=T.get_json(he(t,n.mtime));if(o)return M(t,o),m(!1,(function(){ue.empty(),H(t,i,"files from localStorage")}))}}ue.disabled(!0),_c.menu_exists&&ke.loading(!0),K.files_container.classList.add("files-spinner");var s=0,l=!!(n&&n.json_cache&&_c.config.javascript_cache)&&n.json_cache;m(!1,(function(){ue.empty(),r()})),e=O({params:!l&&"dir="+encodeURIComponent(t),url:l||_c.script+"?action=files",json_response:!0,fail:()=>{$(t,t,i)},always:()=>{e=!1,_c.menu_exists&&ke.loading(!1),K.files_container.classList.remove("files-spinner")},complete:function(e,a,n){return n?e.error?$(e.error,t,i):(M(t,e),T.set(he(t,e.mtime),a,!1,1e3),void r()):$(t,t,i)}})}function r(e){1==s++&&H(t,i,l?"files from JSON "+l:"files from xmlhttp")}},U.init_files=function(){if(_c.query_path_invalid)return $("Invalid directory "+_c.start_path,_c.start_path,"replace");if(_c.index_html&&location.search&&_c.config.history){let e=location.search.split("&")[0].replace("?","");if(e&&e!==_c.start_path&&-1===e.indexOf("=")){_c.start_path=decodeURIComponent(e);let t=!(_c.dirs[_c.start_path]||-1!==e.indexOf("/")||!_c.dirs[""]||!_c.dirs[""].files)&&_c.dirs[""].files[_c.start_path];t&&t.is_dir&&M(_c.start_path,t)}}U.get_files(_c.start_path,"replace")};u(K.topbar_info,(function(e,t){if("reset"===e)return ue.clear(!0)})),L(K.files,(e=>(e=>{const t=e.target;if(t===K.files)return;const i=t.closest(".files-a"),a=!!i&&_c.files[i.dataset.name];if(a){if(t.classList.contains("context-button"))return U.create_contextmenu(e,"files",t,a,i);if(Y.contextmenu.is_open&&("menu"!==_c.config.click||a.is_dir))return e.preventDefault();if(t.dataset.href)return e.preventDefault(),window.open(t.dataset.href);if("click"===e.type&&ye.click(e,i))return e.preventDefault();if(!_c.config.on_click||!_c.config.on_click(e,a)){if(!a.is_dir&&("window"===_c.config.click||a.ext&&_c.config.click_window.includes(a.ext)))return _c.config.click_window_popup?_h.popup(e,1e3,null,i.href,a.basename):void 0;if((a.is_dir||"download"!==_c.config.click)&&(!a.url||a.embed||a.is_browser_video||"m3u8"===a.ext)&&!C(e,i))if(a.is_dir)M(a.path,a),U.get_files(a.path,"push");else if("menu"===_c.config.click)U.create_contextmenu(e,"files",i,a);else if("popup"===_c.config.click&&a.is_popup&&a.is_readable)X.is_pointer&&w(i,"files-data-hidden",null,300),U.open_popup(a);else{if("audio"===a.mime0&&pe.list_click(a))return;U.open_modal(a,!0)}}}})(e))),history.scrollRestoration="manual"}(),(()=>{const e={list:{},imagelist:{},blocks:{contain:!0},grid:{contain:!0,size:{default:160,min:80,max:240}},rows:{size:{default:150,min:80,max:220}},columns:{size:{default:180,min:120,max:240}}},t=(()=>{if(!_c.config||!_c.config.layouts)return e;if(Array.isArray(_c.config.layouts)){let t={};return _c.config.layouts.forEach((i=>{e[i]&&(t[i]=e[i])})),t}return"object"==typeof _c.config.layouts?_c.config.layouts:e})(),i=e=>{let t=e||d.layout;P(K.files,`no-transition-strict list files-${t}${"columns"===t?` columns-${o}`:""}`),Q(10).then((()=>K.files.classList.remove("no-transition-strict")))},a=Object.keys(t);let n=[z("layout",!0),T.get("files:layout"),_c.layout,a[0]].find((e=>e&&a.includes(e)))||"rows",o=T.get("files:layout:columns-type")||"info";i(n);var s=getComputedStyle(K.files).getPropertyValue("--img-object-fit").trim()||"cover",l=T.get("files:interface:img-object-fit")||s;function r(){K.files.style.setProperty("--imagelist-height",c?"100px":"100%"),K.files.style[(c?"set":"remove")+"Property"]("--imagelist-min-height","auto")}l!=s&&K.files.style.setProperty("--img-object-fit",l);var c=T.get("files:layout:imagelist-square");function p(e){return Y.layout={layout:e,ob:t[e],index:a.indexOf(e)}}null===c&&(c="auto"!==getComputedStyle(K.files).getPropertyValue("--imagelist-height").trim()),r(),["grid","rows","columns"].forEach((function(e){if(t[e]){var i,a=t[e].size,n=getComputedStyle(K.files).getPropertyValue("--"+e+"-size");n&&(a.default=parseInt(n)),a.current=!(i=T.get("files:layout:"+e+"-size"))||isNaN(i)||i==a.default?a.default:(i=Z(a.min,a.max,i),K.files.style.setProperty("--"+e+"-size",i+"px"),i),a.space=function(){var t=T.get("files:layout:"+e+"-space-factor");return!t||isNaN(t)||50==t?50:(t=Z(0,100,t),K.files.style.setProperty("--"+e+"-space-factor",t),0==t&&K.files.style.setProperty("--"+e+"-border-radius",0),t)}()}}));let d=p(n);function m(){var e=d.ob;[[b,"imagelist"===d.layout||e.size||e.contain],[y,e.size],[C,e.size],[M,"grid"===d.layout],[cover_toggle,e.contain],[imagelist_square_toggle,"imagelist"===d.layout],[columns_info_toggle,"columns"===d.layout]].forEach((e=>{!!e[0].style.display==!!e[1]&&(e[0].style.display=e[1]?"":"none")})),e.size&&(e.size.min&&(A.min=e.size.min),e.size.max&&(A.max=e.size.max),e.size.default&&(w.value=e.size.default,A.style.setProperty("--range-default-pos",(e.size.default-e.size.min)/(e.size.max-e.size.min))),ie.set(x,d.layout),A.value=e.size.current,ie.set(k,d.layout),H.value=e.size.space)}var h=_id("change-layout");h.innerHTML=``});else if(n.browser_image){var l=!!_c.load_images&&i.elm.firstElementChild,r=!X.image_orientation&&S(n.image),d=l&&!r&&!n.custom_preview;if(Object.assign(o,{type:"image",src:c(n),w:n.image&&"svg"!==n.ext&&(n.image.width||(d?l.naturalWidth:0))||screen.availWidth,h:n.image&&"svg"!==n.ext&&(n.image.height||(d?l.naturalHeight:0))||screen.availHeight,img_el:l,msrc:!(!d||!l.complete)&&l.getAttribute("src")}),r&&(o.w=n.image.height,o.h=n.image.width),d&&!o.msrc&&(l.onload=function(){o.msrc=this.getAttribute("src")}),"ico"===n.ext&&o.w<=16){var m=256/o.w;o.w*=m,o.h*=m}}else n.is_browser_video&&Object.assign(o,{type:"video",html:``});n===e&&(s.index=t.slides.length),t.slides.push(o)}}));t.slides.length&&(t.previous_focus=document.activeElement,R(),document.documentElement.classList.add("popup-open"),t.is_open=!0,t.caption_transition_delay=333,t.container.classList.toggle("pswp__container-multi",t.slides.length>1),"topbar"!==p.caption_style&&K.filter.value&&(t.search.innerHTML=U.get_svg_icon("image_search_outline")+'"'+n(K.filter.value)+'"'),t.slides.length<3&&(s.playEl=!1),i=new Le(t.pswp,we,t.slides,Object.assign({},p,s,{arrowEl:t.slides.length>1&&(!X.only_touch||_c.current_dir.has_pano),arrowKeys:t.slides.length>1,counterEl:t.slides.length>1,showAnimationDuration:a?0:333,showHideOpacity:(()=>{if(a)return!1;let e=t.slides[s.index];return!e.msrc||!e.img_el.offsetWidth})()})),X.is_touch&&i.listen("zoomGestureEnded",(function(){i.getZoomLevel()>i.currItem.initialZoomLevel&&t.toggle_play(!1)})),i.listen("beforeChange",(function(){u(),t.toggle_timer(!1)})),i.listen("afterChange",(function(e,a,n){var o,s=i.currItem.type;if(t.toggle_timer(!0),["video","pano"].forEach((e=>t.ui.classList.toggle("popup-ui-"+e,s==e))),t.current_video="video"===s&&(!(!(o=i.currItem.container.firstElementChild)||"VIDEO"!=o.nodeName)&&o),t.current_video&&p.video_autoplay&&t.current_video.play(),function(e){if(!!e==!!t.pano_viewer)return;Object.assign(i.options,{pinchToClose:!e,closeOnScroll:!e,closeOnVerticalDrag:!e,arrowKeys:!e&&t.slides.length>1})}("pano"==s),g(),"pano"==s){var l=i.currItem;U.load_plugin("pannellum",(()=>{l===i.currItem&&(t.pano_viewer=pannellum.viewer(t.pano_container,{type:"equirectangular",panorama:l.item.is_pano,autoLoad:!0,autoRotate:t.pano_is_rotating?-2:0,autoRotateInactivityDelay:3e3,showControls:!1,hfov:window.innerWidth>window.innerHeight?105:75}))}))}})),i.listen("initialZoomInEnd",(()=>{i.options.autoplay&&t.toggle_play(!0),t.toggle_auto_fullscreen(!0)})),i.listen("imageLoadComplete",(function(e,a,n){i.options.playEl&&e===i.getCurrentIndex()&&t.toggle_timer(!0)})),i.listen("close",(function(){u(),t.current_video=!1,t.toggle_play(!1),document.documentElement.classList.remove("popup-open")})),i.listen("destroy",(function(){t.preloader.classList.remove("pswp__spinner");for(var e=0;e{i.options.fullscreen&&screenfull.isFullscreen!=!!e&&screenfull.toggle()},t.open=()=>{if(!p.open)return;let e=!(!Y.list||!Y.list.matchingItems)&&Y.list.matchingItems[0];return e&&e._values.is_popup?(U.open_popup(e._values,!0),!0):void 0},t.toggle_play=function(e){e===t.playing||e&&h()||(t.playing=!!e,Ce.toggle_class(t.play_button,"is-playing",e),t.toggle_timer(e))},t.toggle_timer=function(e){if(e&&h())return t.toggle_play(!1);if((!e||t.playing&&(i.currItem.loaded||!i.currItem.src))&&t.timer!=e){t.timer=!!e,e&&(t.play_timer.style.opacity=1),anime.remove(t.play_timer);var a={targets:t.play_timer,duration:e?i.options.play_interval:333,easing:e?"easeInOutCubic":"easeOutQuad",scaleX:e?[0,1]:0};e?(a.begin=function(){t.play_timer.style.display="block"},a.complete=function(){i.next(!0)}):(a.complete=function(){t.play_timer.style.display="none"},a.opacity=[1,0]),anime(a)}},t.pano_is_rotating=!1!==T.get("files:popup:pano:rotating"),document.body.insertAdjacentHTML("beforeend",`\t\t`),t.pswp=document.body.lastElementChild,t.bg=t.pswp.firstElementChild,t.scrollwrap=t.pswp.children[1],t.pano_container=t.pswp.lastElementChild,t.container=t.scrollwrap.firstElementChild,t.items=t.container.children,t.ui=t.scrollwrap.lastElementChild,t.topbar=t.ui.firstElementChild,t.ArrowLeft=t.ui.children[1],t.ArrowRight=t.ui.children[2],t.caption=t.ui.lastElementChild,t.caption_center=t.caption.lastElementChild,t.play_timer=t.ui.children[3],Array.from(t.topbar.children).forEach((function(e){var i=e.classList;return i.contains("pswp__preloader")?t.preloader=e:i.contains("pswp__button--play")?t.play_button=e:i.contains("pswp__search")?t.search=e:i.contains("context-button")?t.contextmenu_button=e:i.contains("pswp__button--pano-rotate")?t.pano_rotate_button=e:void 0})),t.toggle_pano_rotate=()=>{if(t.pano_viewer){if(t.pano_is_rotating=!t.pano_is_rotating,t.pano_viewer[(t.pano_is_rotating?"start":"stop")+"AutoRotate"](),t.pano_is_rotating){var e=t.pano_viewer.getConfig();e.autoRotate=-2,e.autoRotateInactivityDelay=3e3}T.set("files:popup:pano:rotating",!!t.pano_is_rotating),t.pano_rotate_button.classList.toggle("is-rotating",t.pano_is_rotating)}},t.caption.addEventListener("click",(function(e){return e.target.classList.contains("pswp__button--lock-caption")?(s=!s,Ce.toggle_class(t.caption,"pswp__caption-locked",s),T.set("files:popup:locked_caption",s,!0)):"context"==e.target.dataset.action?U.create_contextmenu(e,"popup",e.target,i.currItem.item):void(X.is_pointer&&0===e.target.className.indexOf("pswp")&&("right"===p.caption_align&&e.pageX>this.clientWidth-49?i.next():"left"===p.caption_align&&e.pageX<49&&i.prev()))})),X.is_pointer&&t.contextmenu_button&&L(t.contextmenu_button,(function(e){U.create_contextmenu(e,"popup",e.target,i.currItem.item)}))})(),(()=>{let e=z("refresh",!0)||_c.config.refresh||!1;if(!e||isNaN(e))return;let t=z("refresh_url",!0)||_c.config.refresh_url||!1;setTimeout((()=>{if(t)return location.replace("nohash"===t?location.href.split("#")[0]:t);location.reload(1)}),1e3*e)})();class ye{static actions={move:"folder_move_outline",copy:"content_copy",duplicate:"content_duplicate",zip:!!_c.ZipArchive_enabled&&"zip_box_outline",unzip:!!_c.ZipArchive_enabled&&"unzip",delete:"delete_outline","copy links":!(!_c.allow_mass_copy_links||!X.url)&&"link",download:!(!_c.allow_mass_download||!X.download)&&"tray_arrow_down",rename:"rename_outline"};static keyboard_shortcuts={a:!0,i:!0,c:_c.allow_copy,v:_c.allow_copy,n:_c.allow_rename,Backspace:_c.allow_delete,d:_c.allow_duplicate};static config=e("select",{enabled:!0,buttons:Object.keys(this.actions),mode:!1,mode_button:!0,display:"select-mode",copy_links_separator:", ",keyboard_shortcuts:Object.keys(this.keyboard_shortcuts)});static el={};static buttons=[];static buttons_contextmenu=[];static count=0;static mode=!1;static anchor=0;static focus=0;static headroom_pin(e){let t=Y.headroom;t&&(e&&e.y&&e.ye[t+"Key"])))return;const a=Array.from(K.files.children).indexOf(t);if(e.shiftKey){const t={};this.range(t,!1),this.focus=a,this.range(t,!0),Object.keys(t).forEach((e=>this.select(K.files.children[e],t[e]))),this.count&&this.headroom_pin(e)}else{this.anchor=this.focus=a;const i=!t.dataset.selected;this.select(t,i),_c.config.on_select&&_c.config.on_select(e,Y.list.matchingItems[a]._values),i&&this.headroom_pin(e)}return this.interface(),!0}static matchingItems_length(){return Y.list?Math.min(Y.list.matchingItems.length,Y.list.items.length):0}static all(e){const t=this.matchingItems_length();if(!t)return;const i=!this.count||!!(e&&this.countthis.select(e.elm,i))),this.interface(),i&&this.headroom_pin()}static selected(){return this.matchingItems_length()?Y.list.matchingItems.filter((e=>e.elm.dataset.selected)):[]}static toggle_has_matchingItems(e){this.el.selectbar.classList.toggle("has-matchingItems",e),this.el.selectbar.firstElementChild.disabled=!e}static update(){this.config.enabled&&(this.count=this.selected().length,this.toggle_has_matchingItems(!!this.matchingItems_length()),this.interface())}static reset(e){this.config.enabled&&(this.anchor=this.focus=0,this.toggle_has_matchingItems(!!e),this.count&&(this.count=0,this.interface()))}static interface(){this.el.counter.textContent=this.count||"",this.el.selectbar.classList.toggle("has-selection",!!this.count),this.el.selectbar.classList.toggle("select-single",1===this.count),this.el.selectbar.classList.toggle("select-multiple",this.count>1),this.el.selectbar.classList.toggle("select-is-zip",1===this.count&&"zip"===this.selected()[0]._values.ext),this.el.buttons.forEach((e=>e.disabled=!this.count))}static set_mode(e){this.mode=!!e,K.main.classList.toggle("select-mode",this.mode),K.main.classList.toggle("select-mode-disabled",!this.mode)}static copy_links(e){const t=[];return e.forEach((e=>{try{const i=new URL(p(e),location);i&&i.href&&t.push(i.href)}catch(e){return}})),t.length&&A(t.join(this.config.copy_links_separator))}static copied_items=[];static copied_items_parent;static paste_items(){if(!(_c.current_dir&&this.copied_items.length&&this.copied_items_parent&&this.copied_items_parent.files))return;if(_c.dirs[this.copied_items_parent.path]!==this.copied_items_parent)return;if(this.copied_items=this.copied_items.filter((e=>{let t=this.copied_items_parent.files[e.basename];if(t)return t===e||["basename","filesize","mtime","path"].every((i=>t[i]===e[i]))})),!this.copied_items.length)return;const e=this.copied_items_parent===_c.current_dir?"duplicate":"copy";return new me({action:e,items:this.copied_items,pasted_from:"copy"===e&&this.copied_items_parent,parent_dir:this.copied_items_parent,parent_path:this.copied_items_parent.path})}static select_action(e){if("toggle"===e)return this.all();const t=this.count?this.selected():[];if(!t.length)return F.toggle(!1,"Nothing selected!");const i=t.map((e=>e._values));return"copy links"===e?ne?F.toggle(this.copy_links(i),ie.get("copy link"+(i.length>1?"s":""))):F.license():"download"===e?ce.zip(_c.current_dir,i.filter((e=>e.is_readable))):"copy_items"===e?(this.copied_items=i,this.copied_items_parent=_c.current_dir,F.toggle(!0,`${i.length} ${ie.get(me.get_items_type(i))} ${ie.get("copied to clipboard")}`)):"modal"===e?1===i.length&&U.open_modal(i[0],!0):new me({action:e,items:i,list_items:t,parent_dir:_c.current_dir,parent_path:_c.current_path})}static keyboard_events(){if(!this.config.keyboard_shortcuts||!this.config.keyboard_shortcuts.length)return;const e=this.config.keyboard_shortcuts.filter((e=>this.keyboard_shortcuts[e]));e.length&&document.addEventListener("keydown",(t=>{if(Y.modal.open||Y.popup.is_open||!_c.current_dir)return;const i=t.key;if((t[X.modKey]||"n"===i)&&!["INPUT","SELECT","TEXTAREA"].includes(t.target.nodeName)&&e.includes(i)&&(t.preventDefault(),!t.repeat)){if("v"===i)return this.paste_items();if("a"===i)return ye.all(!0);if(this.count)return"n"===i?1===this.count&&this.select_action("rename"):"Backspace"===i?this.select_action("delete"):"d"===i?this.select_action("duplicate"):"c"===i?this.select_action("copy_items"):"i"===i?1===this.count&&this.select_action("modal"):void 0}}))}static init(){if(!this.config.enabled)return;if(this.buttons=this.config.buttons?this.config.buttons.filter((e=>{if(this.actions[e])return _c[`allow_${e}`]||!_c.hasOwnProperty(`allow_${e}`)})):[],!this.buttons.length)return this.config.enabled=!1;K.files_container.classList.add("select-enabled"),this.buttons_contextmenu=this.buttons.filter((e=>!["rename","unzip"].includes(e))),this.config.mode_button&&(K.topbar_top.insertAdjacentHTML("beforeend",``),L(K.topbar_top.lastElementChild,(e=>{this.set_mode(!this.mode),T.set("files:select:mode",this.mode?"on":"off")}))),this.el.selectbar=_query(".topbar-select"),this.el.selectbar.classList.add("select-display-"+this.config.display),this.el.selectbar.innerHTML=`
    ${E(this.buttons,(e=>``))}
    `,this.el.select_all_button=this.el.selectbar.firstElementChild,this.el.counter=this.el.selectbar.querySelector(".selected-count"),this.el.buttons=Array.from(this.el.selectbar.lastElementChild.children),u(this.el.selectbar,((e,t)=>this.select_action(e)));let e=!!this.config.mode_button&&T.get("files:select:mode");this.set_mode("on"===e||!e&&this.config.mode),this.keyboard_events()}}ye.init();class xe{static users;static usernames;static username;static is_install=_c.allow_settings&&"install.php"===_c.script;static options=e("settings_editor",{show_button:!0,allow_default:!0,allow_users:!0,allow_new:!0,allow_remove:!0,allow_rename:!0,select_current_user_append:" ←",reload:!0,reload_confirm:!1,template:" '',\n //'start_path' => '',\n 'password' => '$PASSWORD',\n //'allow_all' => false,\n //'allow_settings' => false, // only enable for trusted users! https://www.files.gallery/docs/security/#allow_settings-enabled\n //'files_include' => '',\n //'files_exclude' => '',\n //'dirs_include' => '',\n //'dirs_exclude' => '',\n //'upload_allowed_file_types' => '',\n];"});el={};is_new_user;is_default_user;is_current_user;cm;is_loading;reload=!1;constructor(){if(["default","users"].every((e=>!xe.options[`allow_${e}`])))return F.toggle(!1,"Can't have both [default] and [users] disabled");U.load_plugin("codemirror"),this.modal()}modal(){Ae.confirm.fire({title:ie.get("settings"),cancelButtonText:ie.get("cancel"),confirmButtonText:ie.get("save"),returnFocus:!1,customClass:{popup:"settings-popup",htmlContainer:"settings-html-container",confirmButton:"button",cancelButton:"button button-secondary",validationMessage:"settings-validation"},allowEscapeKey:()=>{if(!this.cm.hasFocus())return!0;this.toggle_fullscreen()},didOpen:()=>this.open(),preConfirm:()=>this.preconfirm(),didDestroy:()=>{this.reload&&this.reload_confirm()&&location.reload()}})}open(){if(this.el.popup=Swal.getPopup(),this.el.container=Swal.getHtmlContainer(),this.el.save=Swal.getConfirmButton(),this.el.cancel=Swal.getCancelButton(),this.el.popup.focus(),xe.users)return U.load_plugin("codemirror",(()=>this.interface()));this.load({load:!0},(e=>{!xe.options.allow_default&&e.hasOwnProperty("default")&&delete e.default,xe.options.allow_users||Object.keys(e).forEach((t=>{"default"!==t&&delete e[t]})),xe.users=e,xe.usernames=Object.keys(e).sort(((e,t)=>"default"===t?1:e.localeCompare(t,void 0,{sensitivity:"base"}))),xe.username=[T.get("files:settings:username"),_c.username,xe.usernames[0]].find((t=>t&&e[t])),U.load_plugin("codemirror",(()=>this.interface()))}))}load(e,t,i){return!e.load&&_c.demo_mode?F.demo():e.load||ne||xe.is_install?(this.loader(!0),void fetch(`${_c.script}?action=settings`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(e)}).then((e=>(this.loader(!1),e.ok?e.json():{error:`${e.status} ${e.statusText}`}))).then((e=>{if(e.success&&i&&(F.toggle(!0,i),this.cm.hasFocus()||this.el.popup.focus()),e.error)return this.invalid(e.error);t&&t(e)})).catch((e=>{this.loader(!1),this.invalid(`${ie.get("error")}`)}))):F.license()}loader(e){this.is_loading=!!e,this.el.select&&Q(1).then((()=>["save","cancel","select","new","username","remove","cancel_new"].forEach((t=>this.el[t].toggleAttribute("disabled",!!e))))),this.cm&&this.cm.setOption("readOnly",!!e),this.el.popup.classList.toggle("settings-loading",!!e)}interface(){this.el.container.innerHTML=`\n \n \n \n ${xe.is_install?`
    ${U.get_svg_icon("alert_circle_outline")}Install Mode
    Remember to rename the file back to index.php once you have edited settings and/or created users.
    `:""}`,this.el.users=this.el.container.children[0],this.el.select=this.el.users.firstElementChild,this.el.new=this.el.users.lastElementChild,this.el.user=this.el.container.children[1],this.el.username=this.el.user.firstElementChild,this.el.remove=this.el.user.children[1],this.el.cancel_new=this.el.user.children[2],this.el.options=this.el.container.children[2],this.el.alert_install=!!xe.is_install&&this.el.container.children[3],this.el.container.style.setProperty("--button-min-width",Math.max(...["new","remove","cancel_new"].map((e=>this.el[e].clientWidth)))+"px"),this.el.select.addEventListener("change",(e=>this.assign_user(e.currentTarget.value))),this.el.new.addEventListener("click",(e=>this.assign_user(!1))),this.el.remove.addEventListener("click",(e=>this.remove_user())),this.el.cancel_new.addEventListener("click",(e=>this.assign_user(this.el.select.value))),this.el.alert_install&&this.el.alert_install.addEventListener("click",(e=>this.el.alert_install.remove())),this.el.popup.addEventListener("keydown",(e=>{e[X.modKey]&&"s"===e.key&&(e.preventDefault(),e.repeat||this.preconfirm())})),this.codemirror(),this.el.options.insertAdjacentHTML("beforeend",``),this.el.options.lastElementChild.addEventListener("click",(()=>this.toggle_fullscreen())),this.assign_user(xe.username)}select_option(e,t){return``}codemirror(){this.cm=CodeMirror(this.el.options,{lineNumbers:!0,mode:"php",viewportMargin:1/0,theme:"one-"+U.get_codemirror_theme(),styleActiveLine:!0,extraKeys:{F11:()=>this.toggle_fullscreen()}}),CodeMirror.autoLoadMode(this.cm,"php")}toggle_fullscreen(){this.el.popup.classList.toggle("settings-fullscreen")}assign_user(e=!1){e&&this.el.select.value!==e&&(this.el.select.value=e),xe.username=e,e&&T.set("files:settings:username",e),this.is_new_user=!e,this.is_default_user="default"===e,this.is_current_user=_c.username&&e===_c.username;let t=this.el.container.classList;t.toggle("user-new",this.is_new_user),t.toggle("user-default",this.is_default_user),t.toggle("user-user",!this.is_new_user&&!this.is_default_user),this.el.username.value=this.is_new_user?ie.get("username"):e,xe.options.allow_rename||(this.el.username.readOnly=!this.is_new_user),this.is_new_user&&this.el.user.firstElementChild.select();let i=this.is_new_user?xe.options.template.replace("$PASSWORD",this.random_password()):xe.users[e];this.cm.setValue(i)}remove_user(){xe.options.allow_remove&&xe.username&&"default"!==xe.username.toLowerCase()&&confirm(`${ie.get("delete",!0)} ${xe.username}?`)&&this.load({username:xe.username,remove:!0},(()=>{let e=xe.usernames.indexOf(xe.username);e<1||(delete xe.users[xe.username],xe.usernames.splice(e,1),this.el.select.children[e].remove(),this.check_reload(),this.assign_user(xe.usernames[e-1]))}),`${ie.get("delete")} ${xe.username}`)}preconfirm(e){if(this.is_loading)return!1;if(this.username_new=this.el.username.value.trim(),this.is_renamed=xe.username!==this.username_new,!this.username_new)return this.invalid_username(`${ie.get("invalid")} ${ie.get("username")}`);if(this.is_renamed){if(this.username_new.length>128)return this.invalid_username(`${ie.get("username")} max length 128 chars`);if(xe.usernames.find((e=>this.username_new.toLowerCase()===e.toLowerCase())))return this.invalid_username(`${ie.get("username")} "${this.username_new}" already exists`);const e=this.username_new.match(/[<>{}:"'/\\|?*#+%&]|\.\.|\.$|^\./g);if(e)return this.invalid_username(`${ie.get("invalid")} ${ie.get("username")} ${[...new Set(e)].join("")}`)}return this.data=this.cm.getValue(),this.is_renamed||xe.users[xe.username]!==this.data?this.data.trim().startsWith("this.update(e.data)),`${ie.get("save")} ${this.username_new}`),!1):this.invalid(`${ie.get("invalid")} ${ie.get("password")}`):this.invalid(`${ie.get("invalid")} ${ie.get("settings")}`):(w(this.el.popup,"settings-loading",!1,300),!1)}invalid_username(e){return this.el.username.select(),this.invalid(e)}invalid(e){return["pointerup","keydown"].forEach((e=>this.el.popup.addEventListener(e,(()=>Swal.resetValidationMessage()),{once:!0}))),Swal.showValidationMessage(Ae.invalid_response(e))}ensure_commas(){let e=this.data.split("\n");if(!e)return;let t=0;e.forEach(((i,a)=>{!i||i.indexOf("=>")<0||!i.trim().match(/^("|')/)||i.trim().endsWith(",")||(t++,e[a]+=",")})),t&&(this.data=e.join("\n"),this.cm.setValue(this.data))}check_reload(e){if(xe.options.reload&&(this.is_default_user||this.is_current_user))return"close"===xe.options.reload?this.reload=!0:void(this.reload_confirm()&&location.replace(`${location.pathname}${location.search}${location.search.match(/(^\?|&)settings=(1|true)/)?"":location.search?"&settings=1":"?settings=1"}${e?"&login=1":""}${location.hash}`))}reload_confirm(){let e=xe.options.reload_confirm;return!e||("string"!=typeof e&&(e="Refresh required. Reload page now?"),confirm(e))}update(e){if(this.check_reload(),e!==this.data){let t=this.cm.getCursor();this.cm.setValue(e),Q(1).then((()=>this.cm.setCursor(t)))}if(xe.users[this.username_new]=e,this.is_new_user)xe.usernames.push(this.username_new),this.el.select.insertAdjacentHTML("beforeend",this.select_option(this.username_new,!0));else{if(!this.is_renamed)return;let e=xe.usernames.indexOf(xe.username);xe.usernames[e]=this.username_new,delete xe.users[xe.username],this.el.select.children[e].outerHTML=this.select_option(this.username_new,!0)}this.assign_user(this.username_new)}random_password(){const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(16))).map((t=>e[t%68])).join("")}}const Ae=(()=>{T.remove("swal-initiation");const e=Swal.mixin({scrollbarPadding:!1,showCloseButton:!1,closeButtonHtml:U.get_svg_icon("close_thin"),buttonsStyling:!1,reverseButtons:!X.ua||-1===X.ua.indexOf("Win"),showCancelButton:!0,cancelButtonText:ie.get("cancel"),customClass:{confirmButton:"button",cancelButton:"button button-secondary",input:"input",closeButton:"button-icon"},willOpen:()=>R(),heightAuto:!1});return{default:e.mixin(),prompt:e.mixin({input:"text",inputAttributes:{maxlength:127,autocapitalize:"off",autocorrect:"off",autocomplete:"off",spellcheck:"false"},didOpen:()=>{if(!X.is_pointer)return;let e=Swal.getInput();if(!e||!e.value||e!==document.activeElement)return;let t=e.value.lastIndexOf(".");if(t<1)return e.select();e.setSelectionRange(0,t)}}),confirm:e.mixin({title:"Confirm?"}),invalid_response:e=>`${U.get_svg_icon("alert_circle_outline")}${e}`}})();(()=>{var e=document.body;function t(t){e.dataset.updated=t,e.style.cursor="pointer";var i=H(e,"click",(function(){e.classList.remove("updated"),e.removeAttribute("data-updated"),e.style.removeProperty("cursor"),i.remove()}))}_c.allow_check_updates&&(T.get("files:updated")?(T.remove("files:updated"),t("✓ Successfully updated to Files Gallery version "+_c.version),e.classList.add("updated")):O({json_response:!0,params:"action=check_updates",url:_c.script+"?action=check_updates",complete:function(i,a,n){if(i&&a&&n&&i.hasOwnProperty("success")){var o=i.success;if(j(o?"New version "+o+" available.":"Already using latest version "+_c.version),o){_id("change-sort").insertAdjacentHTML("afterend",'");var s=_id("files-notifications");if(U.dropdown(s,s.firstChild),!i.writeable)return;L(s.children[1].children[1],(()=>{Ae.confirm.fire({title:ie.get("update"),text:"Update to Files Gallery "+o+"?",cancelButtonText:ie.get("cancel"),confirmButtonText:ie.get("update")}).then((i=>{i.isConfirmed&&(e.classList.add("updating"),O({params:"version="+o,url:_c.script+"?action=do_update",json_response:!0,complete:function(i,a,n){e.classList.add("updated"),e.classList.remove("updating"),i&&a&&n&&i.hasOwnProperty("success")&&i.success?(T.set("files:updated",!0),e.dataset.updated="✓ Success!",F.toggle(!0,`Updated to ${o}. Please refresh browser.`)):t("✗ Failed to load update :(")}}))}))}))}}else j("Failed to load external JSON check_updates.")}}))})(),window.onpopstate=function(e){_c.config.history&&e.state&&e.state.hasOwnProperty("path")&&U.get_files(e.state.path)},(()=>{U.get_codemirror_theme=()=>"dark"===ee.theme?"dark":(te.codemirror_theme||(te.codemirror_theme=T.get("files:codemirror_theme")||"light"),te.codemirror_theme);const t=e("markdown",{enabled:!0,extensions:["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"],modes:matchMedia("(min-width: 576px)").matches?["split","edit","preview"]:["edit","preview","split"],remember_mode:!0,scroll_sync:!0,html:e=>e,link_target:"_blank",shortcuts:{B:["**","**"],I:["_","_"],K:["[","](https://)"],"Alt-I":["![","]()"]}}),i=t.enabled&&t.extensions.length>1&&["split","preview"].some((e=>t.modes.includes(e)));let a=(()=>{if(!i||!t.remember_mode)return t.modes[0];let e=T.get("files:markdown:mode");return e&&t.modes.includes(e)?e:t.modes[0]})();const s=()=>{if(!te.codemirror||!te.marked)return!1;let e=a,i=t.modes.indexOf(a);return a=t.modes[i>=t.modes.length-1?0:i+1],t.remember_mode&&T.set_option("files:markdown:mode",a,t.modes[0]),"edit"===e&&d(),ae.popup.classList.replace(`markdown-mode-${e}`,`markdown-mode-${a}`),"preview"!==a&&te.codemirror.refresh(),!0},l=X.is_mac?"Cmd":"Ctrl",r={};i&&Object.keys(t.shortcuts).forEach((e=>{r[`${l}-${e}`]=i=>((e,[t,i])=>{let a=e.getSelection(),n=a.slice(0,t.length)===t&&a.slice(-i.length)===i;e.replaceSelection(n?a.slice(t.length,-i.length):`${t}${a}${i}`,"around")})(i,t.shortcuts[e])}));const d=()=>{"edit"!==a&&(ae.markdown_preview.innerHTML=t.html(te.marked.parse(te.codemirror.getValue())))},h=()=>{te.codemirror.addKeyMap(r),ae.preview.insertAdjacentHTML("beforeend",'
    '),ae.markdown_preview=ae.preview.lastElementChild,t.link_target&&ae.markdown_preview.addEventListener("click",(e=>{let i=e.target.closest("a");i&&!i.hasAttribute("target")&&i.setAttribute("target",t.link_target)})),te.marked=new marked.Marked(e("marked")),_c.current_dir.url_path&&te.marked.use(markedBaseUrl.baseUrl(`${_c.current_dir.url_path}/`)),d(),t.modes.includes("split")&&te.codemirror.on("change",(()=>d())),(()=>{if(!t.scroll_sync||!t.modes.includes("split"))return;let e,i=!1;te.codemirror.on("scroll",(t=>{if("split"!==a)return;if(e)return e=!1;i=!0;let n=t.getScrollInfo(),o=n.height-n.clientHeight,s=parseFloat(n.top)/o,l=(ae.markdown_preview.scrollHeight-ae.markdown_preview.clientHeight)*s;ae.markdown_preview.scrollTop=l})),ae.markdown_preview.addEventListener("scroll",(t=>{if("split"!==a)return;if(i)return i=!1;e=!0;let n=te.codemirror.getScrollInfo(),o=ae.markdown_preview.scrollHeight-ae.markdown_preview.clientHeight,s=parseFloat(ae.markdown_preview.scrollTop)/o,l=(n.height-n.clientHeight)*s;te.codemirror.scrollTo(0,l)}))})()};let g,x=0,w=0;function k(){ae.preview.dataset.counter=te.index+1+"/"+Y.list.matchingItems.length}function H(){if(!te.codemirror||te.codemirror_saving||!ae.code_save_button||ae.code_save_button.disabled)return;if(_c.demo_mode)return F.demo();if(!ne)return F.license();if(!te.item.is_writeable)return F.toggle(!1,`${ie.get("file",!0)} ${ie.get("is not writeable")}`);te.codemirror_saving=!0,ae.code_save_button.disabled=!0;const e=te.item;new me({action:"text_edit",action_name:"save",items:[te.item],text:te.codemirror.getValue(),parent_path:_c.current_path,parent_dir:_c.current_dir,complete:t=>{e===te.item&&(te.codemirror_saving=!1,ae.code_save_button.disabled=!1)}})}function M(e,t){_c.config.history&&history[e+"State"](null,te.item.basename,"#"+encodeURIComponent(te.item.basename))}function $(e){anime({targets:ae.preview.querySelector("svg").children,scale:[.9,1],opacity:[0,1],duration:120,easing:"easeOutQuad",delay:anime.stagger(30,{start:e,direction:"reverse"})})}const V=e=>{let t=Y.list.matchingItems.length,i=te.index+e;return i<0?t-1:i>=t?0:i},z=U.modal_nav=(e,t=!1)=>{if(Y.list.matchingItems.length<2)return;let i=V(e),a=Y.list.matchingItems[i]._values;if(!t||a.embed||["audio","video"].includes(a.mime0)){if(te.index=i,k(),x&&clearTimeout(w),w=setTimeout((()=>x=0),500),le.destroy(),x)return oe(a);x=1,oe(a),["file","dir"].includes(te.type)&&$(0)}};function j(){te.codemirror_xhr&&(te.codemirror_xhr.abort(),te.codemirror_xhr=!1)}function I(){return location.hash==="#"+encodeURIComponent(te.item.basename)}function B(e){document.documentElement.classList.toggle("modal-open",!!e),ae.modal.classList.toggle("modal-show",!!e)}function Z(){te.is_fullscreen=!te.is_fullscreen,ae.popup.classList.toggle("modal-popup-fullscreen"),te.codemirror&&te.codemirror.refresh()}var N,q=["start-start","center-start","end-start","start-center","center-center","end-center","start-end","center-end","end-end"],W=(N=T.get("files:modal:position"))&&q.includes(N)?N:"center-center";function G(e,t){var i=(e||W).split("-"),a=["x","y"].map(((e,t)=>`modal-pos-${e}-${i[t]}`));return t?ae.popup.classList[t](...a):a.join(" ")}const K=e("modal_types",{dir:{anchor:!0,info:!0},file:{info:!0},code:{},image:{anchor:!0,info:!0},video:{},audio:{},embed:{spinner:!0},pdf:{},document:{spinner:!0},"custom-preview":{info:!0},"video-thumb":{info:!0},"pdf-thumb":{anchor:!0,info:!0}}),te=Y.modal={codemirror_lineWrapping:T.get_option("files:codemirror_lineWrapping",!0)};document.body.insertAdjacentHTML("beforeend",`\n\t`);const ae=te.el={modal:document.body.lastElementChild};function oe(e){j(),re(e),M("replace")}function se(e){if(!e.is_dir&&e.is_readable){if(e.browser_image)return te.type="image",``;if(e.is_browser_video||e.url&&"m3u8"===e.ext)return te.type="video",le.tag(e,"video");if("video"===e.mime0){if(!_c.ffmpeg||!e.is_readable)return;return te.type="video-thumb",``}if(J("audio",e))return te.type="audio",le.tag(e,"audio");if(e.embed)return te.type="embed",``;if(e.ext.match(_c.config.google_docs_extensions||/(doc|ppt|pages)x?$/)){if(!_c.use_google_docs_viewer||e.filesize>25e6)return;return te.type="document",``}if("pdf"===e.mime1){if(!_c.config.load_inline_pdf||!X.supports_inline_pdf&&!navigator.pdfViewerEnabled&&!_c.use_google_docs_viewer)return(()=>{if(_c.imagemagick_pdf)return te.type="pdf-thumb",``})();te.type="pdf";let t=c(e),i=t+(_c.config.inline_pdf_append_url||"");const a=e=>``;return!X.supports_inline_pdf&&_c.use_google_docs_viewer?a(`https://docs.google.com/viewer?url=${new URL(t,location)}&embedded=true`):a(i)}if(!e.hasOwnProperty("code_mode")){let a=function(e){if(!e||e.filesize>_c.config.code_max_load)return;if(["conf","htaccess"].includes(e.ext))return CodeMirror.findModeByName("nginx");if("csv"===e.ext)return{mode:"q"};if(i&&t.extensions.includes(e.ext))return e.is_markdown=!0,{mode:"gfm"};if("text/asp"===e.mime)return{mode:"htmlmixed"};let a=!!e.mime&&CodeMirror.findModeByMIME(e.mime);return a&&"null"!==a.mode||!e.ext||(a=CodeMirror.findModeByExtension(e.ext)||a),a||"text"!==e.mime0?a:{mode:"null"}}(e);e.code_mode=a&&a.mode||!1}return e.code_mode?(te.type="code",U.load_plugin("codemirror"),e.is_markdown&&U.load_plugin("marked"),''):void 0}}function re(i,s){ae.modal.scrollTop=0,ae.code_save_button&&ae.code_save_button.disabled&&(ae.code_save_button.disabled=!1),Object.assign(te,{item:i,codemirror:!1,codemirror_xhr:!1,codemirror_saving:!1,type:i.is_dir?"dir":"file",loaded:!1,marked:!1}),ae.title.innerText=ae.title.title=i.display_name||i.basename||"";let r=se(i)||(()=>{if(i.custom_preview)return te.type="custom-preview",``})()||U.get_svg_large(i,"modal-svg")+D(i);s&&K[te.type].fullscreen&&(te.is_fullscreen=!0),i.is_markdown&&!t.remember_mode&&(a=t.modes[0]),P(ae.popup,`modal-popup modal-popup-${te.type} modal-${te.has_nav?"multi":"single"} ${G()} modal-codemirror-theme-${U.get_codemirror_theme()}${te.is_idle?" modal-popup-idle":""}${te.is_fullscreen?" modal-popup-fullscreen":""}${i.is_markdown?` markdown-mode-${a}`:""}`),X.is_pointer&&te.has_nav&&(ae.ArrowLeft.title=Y.list.matchingItems[V(-1)]._values.basename,ae.ArrowRight.title=Y.list.matchingItems[V(1)]._values.basename),ae.popup.style.setProperty("--type-color",`var(--${i.is_dir?"svg-folder-fg":`type-${U.get_icon(i)||"default"}`})`),(()=>{let e=getComputedStyle(ae.popup).getPropertyValue("--type-color");if(!e||-1===e.indexOf("hsl("))return;let t=e.match(/\d+(\.\d+)?/g);!t||t.length<1||ae.popup.style.setProperty("--type-hsl",`${t[0]} ${t[1]}% ${t[2]}%`)})(),P(ae.preview,`modal-preview modal-preview-${te.type}${K[te.type].spinner?" modal-preview-spinner":""}`),ae.preview.innerHTML=K[te.type].anchor?`${r}`:r,["audio","video","embed"].includes(te.type)&&le.create(te.type,ae.preview.firstElementChild,i),fe.modal_picture(i,ae.preview),"document"===te.type&&function(){let e=ae.preview.firstElementChild,t=e.src,i=setInterval((()=>{if(te.loaded||t!==e.src||!e.isConnected||!e.contentDocument)return clearInterval(i);e.src=t}),3e3)}();let c=ae.preview.querySelector("img, iframe");c&&c.addEventListener("load",(e=>{te.loaded=!0,"image"===te.type&&e.target.parentElement.classList.remove("files-img-placeholder"),K[te.type].spinner&&ae.preview.classList.remove("modal-preview-spinner")})),i.code_mode&&(te.codemirror_xhr=O({params:`file=${encodeURIComponent(i.path)}`,url:`${_c.script}?action=load_text_file`,always:()=>{te.open&&i===te.item&&(te.codemirror_xhr=!1)},fail:e=>{e.status&&te.open&&i===te.item&&(F.toggle(!1,(e.status?e.status+" - ":"")+(e.statusText||i.basename)),ae.preview.firstElementChild.remove())},complete:t=>{te.open&&i===te.item&&U.load_plugin("codemirror",(()=>{te.open&&i===te.item&&(ae.preview.firstElementChild.remove(),te.codemirror=CodeMirror(ae.preview,e("codemirror",{value:t,lineWrapping:te.codemirror_lineWrapping,lineNumbers:!0,readOnly:!_c.allow_text_edit,mode:i.code_mode,viewportMargin:i.filesize<2e4?1/0:10,theme:`one-${U.get_codemirror_theme()}`,addModeClass:"css"===i.code_mode,styleActiveLine:!0,extraKeys:Object.assign({F11:Z},_c.allow_text_edit?{[`${l}-S`]:H}:{})})),CodeMirror.autoLoadMode(te.codemirror,i.code_mode),i.is_markdown&&U.load_plugin("marked",(()=>h())))}))}})),ae.info.innerHTML=K[te.type].info?`\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t${y(i.image,"modal-info-exif")}\n\t\t\t${b(i.image,"modal-info",!0)}\n\t\t`:""}function ce(){te.idle_timeout&&clearTimeout(te.idle_timeout),te.idle_timeout=setTimeout((()=>pe(!0)),1e3),te.is_idle&&pe(!1)}function pe(e){te.is_idle=e,ae.popup.classList.toggle("modal-popup-idle",e)}function de(e){e&&e.target!==e.currentTarget||(ae.popup.removeEventListener("transitionend",de),te.open||(le.destroy(),ae.modal.style.display="none",m(ae.preview)))}function ue(){te.open&&!I()&&U.close_modal(!1)}function he(){return!te.open||Swal.isVisible()||!I()}function _e(e){return!(!te.has_nav||!["ArrowLeft","ArrowRight"].includes(e))&&(!document.activeElement||document.activeElement===document.body||!["AUDIO","VIDEO","TEXTAREA"].includes(document.activeElement.nodeName)&&!document.activeElement.closest(".plyr"))}function ge(e){if(!e.repeat&&!he())if(document.activeElement&&[ae.ArrowLeft,ae.ArrowRight].includes(document.activeElement)&&document.activeElement.blur(),"p"===e.key&&te.item.is_markdown&&(e.ctrlKey||e.metaKey)){if(s())return e.preventDefault()}else if("Escape"===e.key){if(te.is_fullscreen)return Z();if(te.codemirror&&te.codemirror.hasFocus())return Z();U.close_modal()}else"Enter"!==e.key||ae.popup.contains(document.activeElement)?_e(e.key)&&(ae[e.key].classList.add("modal-nav-active"),z("ArrowLeft"===e.key?-1:1)):U.close_modal()}function ve(e){!he()&&_e(e.key)&&ae[e.key].classList.remove("modal-nav-active")}function be(e){he()||ae.popup.contains(e.target)||Array.from(ae.header.children).find((e=>"BUTTON"==e.nodeName&&e.offsetParent)).focus()}function ye(e){e.target.dataset.action||(matchMedia("(max-width: 575.98px)").matches||te.is_fullscreen||ae.popup.classList.contains("modal-popup-tapped"))&&ae.popup.classList.toggle("modal-popup-tapped")}function xe(e){let t=(e?"add":"remove")+"EventListener";window[t]("popstate",ue),document[t]("keydown",ge),document[t]("keyup",ve),document.body[t]("focus",be,{capture:!0}),X.is_touch&&ae.popup[t]("touchend",ye),function(e){X.is_pointer&&te.has_nav&&(e&&ce(),ae.modal[(e?"add":"remove")+"EventListener"]("mousemove",ce))}(e)}ae.popup=ae.modal.firstElementChild,ae.header=ae.popup.firstElementChild,ae.ArrowLeft=ae.popup.children[1],ae.ArrowRight=ae.popup.children[2],ae.title=ae.header.firstElementChild,ae.code_save_button=!!_c.allow_text_edit&&_query('[data-action="save"]',ae.header),ae.code_wrap_button=_class("modal-code-wrap-button",ae.header)[0],ae.close=ae.header.lastElementChild,ae.info=ae.popup.children[3],ae.preview=ae.popup.children[4],ae.pos_active=_class("modal-pos-active",ae.header)[0],(screen.availWidth>=768||screen.availHeight>=768)&&["start","end"].forEach((e=>ae.popup.addEventListener(`transition${e}`,(t=>{t.target===ae.popup&&"width"===t.propertyName&&"code"===te.type&&ae.popup.classList.toggle("modal-popup-code-transition","start"===e)})))),X.is_touch&&L(ae.preview,(e=>{if("mouse"!==e.pointerType){var t=e.target.closest(".modal-preview-a");t&&!t.dataset.action&&e.preventDefault()}})),["down","up"].forEach((e=>ae.modal.addEventListener("mouse"+e,(t=>te["bg"+e]=t.target===ae.modal)))),u(ae.modal,((e,t)=>{if(!te.open)return t.preventDefault();if("nav-left"===e)z(-1);else if("nav-right"===e)z(1);else if("context"===e)U.create_contextmenu(t,"modal",t.target,te.item);else if("close-bg"===e)te.bgdown&&te.bgup&&U.close_modal();else if("close"===e)U.close_modal();else if("zoom"===e){if(Y.contextmenu.is_open)return t.preventDefault();if(C(t,t.target.closest(".modal-preview-a")))return;U.open_popup(te.item)}else if("copy"===e){if(!te.codemirror)return;let e=!!te.codemirror&&te.codemirror.getValue(),t=e&&A(e);F.toggle(t,ie.get("copy text"))}else if("fullscreen"===e)Z();else if("save"===e)H();else if("markdown-toggle-mode"===e)s();else if("wrap"===e){if(!te.codemirror)return;te.codemirror_lineWrapping=!te.codemirror_lineWrapping,te.codemirror.setOption("lineWrapping",te.codemirror_lineWrapping),ae.code_wrap_button.classList.toggle("wrap-enabled",te.codemirror_lineWrapping),T.set_option("files:codemirror_lineWrapping",te.codemirror_lineWrapping,!0)}else if("toggle-codemirror-theme"===e){let e=te.codemirror_theme;te.codemirror_theme="light"===e?"dark":"light",ae.popup.classList.replace(`modal-codemirror-theme-${e}`,`modal-codemirror-theme-${te.codemirror_theme}`);let t=!(!te.codemirror||!te.codemirror.display)&&te.codemirror.display.wrapper;t&&t.classList.replace(`cm-s-one-${e}`,`cm-s-one-${te.codemirror_theme}`),T.set("files:codemirror_theme",te.codemirror_theme)}else t.target.classList.contains("modal-pos-el")&&(i=e,a=t.target,i!==W&&(G(W,"remove"),G(i,"add"),W=i,ae.pos_active.classList.remove("modal-pos-active"),ae.pos_active=a,ae.pos_active.classList.add("modal-pos-active"),T.set("files:modal:position",i)));var i,a})),U.open_modal=(e,t)=>{if(te.open)return!(te.item===e||!Y.list)&&z(Y.list.matchingItems.findIndex((t=>t._values===e))-te.index);te.is_fullscreen=!1,te.is_idle=!1,te.open=!0,g=document.activeElement||null,ae.modal.removeEventListener("transitionend",de),R(),te.index=_c.files[e.basename]===e&&Y.list?Y.list.matchingItems.findIndex((t=>t._values===e)):-1,te.has_nav=te.index>-1&&Y.list&&Y.list.matchingItems.length>1,te.has_nav&&k(),xe(!0),re(e,!0),t&&M("push"),ae.modal.style.removeProperty("display"),document.activeElement&&ae.popup.addEventListener("transitionend",(()=>document.activeElement.blur()),{once:!0}),Q(1).then((()=>{["file","dir"].includes(te.type)&&$(0),B(!0)}))},U.close_modal=(e=!0)=>{if(te.open&&(te.open=!1,le.pause(),j(),xe(!1),ae.modal.addEventListener("transitionend",de),B(),g&&g.isConnected&&g.focus(),_c.config.history&&e))return history.state?history.replaceState({path:_c.current_path},_c.current_dir.basename||"/",location.pathname+location.search):history.back()}})();var we=function(e,t){var i,a,n,o,s,l,r,p,d,m,u,_,f,g,v,b,y,x=this,A=!1,w=!0,C={timeToIdle:3e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,i){return e.title?i.firstElementChild.innerHTML=e.title:t.resetEl(i.firstElementChild)},closeEl:!0,captionEl:!0,fullscreenEl:X.fullscreen,zoomEl:!0,downloadEl:!1,mapEl:!0,playEl:!0,panoRotateEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,closeOnOutsideClick:!0,tapToClose:!1,clickToCloseNonZoomable:!1,clickToShowNextNonZoomable:!1,indexIndicatorSep:'/',fitControlsWidth:1200},L=function(e){if(v)return!0;e=e||window.event,g.timeToIdle&&g.mouseUsed&&!p&&V();for(var t,i,a=e.target||e.srcElement,n=0;n=.95&&x.toggleControls(!0)})),d("onPinchClose",(function(e){w&&e<.9?(x.toggleControls(),n=!0):n&&!w&&e>.9&&x.toggleControls(!0)})),d("zoomGestureEnded",(function(){(n=!1)&&!w&&x.toggleControls(!0)})),d("beforeChange",x.update),g.downloadEl&&d("afterChange",(function(){var t=c(e.currItem.item);l.setAttribute("href",t||"#"),l.style.display=t?"":"none"})),g.mapEl&&d("afterChange",(function(){var t=e.currItem.item,i=!!(t&&t.image&&t.image.exif)&&t.image.exif.gps;r.style.display=i?"":"none",r.setAttribute("href",i?h(i):"#")})),d("doubleTap",(function(t){var i=e.currItem.initialZoomLevel;e.zoomTo(e.getZoomLevel()===i?g.getDoubleTapZoom(!1,e.currItem):i,t,250)})),d("preventDragEvent",(function(e,t,i){var a=e.target||e.srcElement;a&&a.getAttribute("class")&&e.type.indexOf("mouse")>-1&&(a.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(a.tagName))&&(i.prevent=!1,undefined())})),d("bindEvents",(function(){t.bind(i,"pswpTap click",L),t.bind(Y.popup.scrollwrap,"pswpTap",x.onGlobalTap),t.bind(document,"keydown",k)})),d("unbindEvents",(function(){b&&clearInterval(b),t.unbind(document,"mouseout",E),t.unbind(document,"mousemove",V),t.unbind(i,"pswpTap click",L),t.unbind(Y.popup.scrollwrap,"pswpTap",x.onGlobalTap),t.unbind(document,"keydown",k)})),d("destroy",(function(){g.captionEl&&a.classList.remove("pswp__caption--empty"),i.classList.add("pswp__ui--hidden"),y&&clearTimeout(y),x.setIdle(!1)})),g.showAnimationDuration||i.classList.remove("pswp__ui--hidden"),d("initialZoomIn",(function(){g.showAnimationDuration&&i.classList.remove("pswp__ui--hidden")})),d("initialZoomOut",(function(){i.classList.add("pswp__ui--hidden")})),(p=function(e){if(e)for(var t=e.length,i=0;i1&&(t.toggle_class(o,"pswp__element--disabled",0===e.getCurrentIndex()),t.toggle_class(s,"pswp__element--disabled",e.getCurrentIndex()===g.getNumItemsFn()-1))},x.onGlobalTap=function(t){var i=(t=t||window.event).target||t.srcElement;if(!v)if(t.detail&&"mouse"===t.detail.pointerType){if(!t.detail.rightClick)if(("zoom"==g.click||g.getNumItemsFn()<2||e.getZoomLevel()>e.currItem.fitRatio)&&i.classList.contains("pswp__img"))e.currItem.fitRatio<1&&e.toggleDesktopZoom(t.detail.releasePoint);else if(0===i.className.indexOf("pswp__")){var a=(g.getNumItemsFn()>2||!e.getCurrentIndex())&&("next"==g.click||t.detail.releasePoint.x>Y.popup.pswp.clientWidth/2)?"next":"prev";e[a]()}}else X.is_dual_input?X.legacy_ie||x.setIdle(!p):x.toggleControls(!w)},x.toggleControls=function(e){w=e,e&&!A&&x.update(),H(i,"ui--hidden",!e)}},Ce={bind:function(e,t,i,a){var n=(a?"remove":"add")+"EventListener";t=t.split(" ");for(var o=0;ot-1?e-t:e<0?t+e:e},ge={},ve=function(e,t){return ge[e]||(ge[e]=[]),ge[e].push(t)},be=function(e){var t=ge[e];if(t){var i=Array.prototype.slice.call(arguments);i.shift();for(var a=0;an.currItem.fitRatio?he||(Wt(n.currItem,!1,!0),he=!0):he&&(Wt(n.currItem),he=!1)),Ae(G,le.x,le.y,_))},Le=function(e){e.container&&Ae(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},ke=function(e,t){t.transform=g+e+"px, 0px, 0px)"},He=function(e,t){if(!o.loop&&t){var i=c+(de.x*ce-e)/de.x,a=Math.round(e-st.x);(i<0&&a>0||i>=St()-1&&a<0)&&(e=st.x+a*o.mainScrollEndFriction)}st.x=e,ke(e,p)},Me=function(e,t){var i=lt[e]-pe[e];return se[e]+oe[e]+i-i*(t/f)},$e=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Ve=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Ee=function(){z.is_mouse||(e.classList.add("pswp--has_mouse"),$+=" pswp--has_mouse",z.is_mouse=o.mouseUsed=!0),be("mouseUsed")},ze=null,je=function(){ze&&(Ce.unbind(document,"mousemove",je),Ee()),ze=setTimeout((function(){ze=null}),100)},Ie=function(e,t){var i=Pt(n.currItem,re,e);return t&&(U=i),i},Te=function(e){return(e||n.currItem).initialZoomLevel},Oe=function(e){return(e||n.currItem).w>0?o.maxSpreadZoom:1},Se=function(e,t,i,a){return a===n.currItem.initialZoomLevel?(i[e]=n.currItem.initialPosition[e],!0):(i[e]=Me(e,a),i[e]>t.min[e]?(i[e]=t.min[e],!0):i[e]=a)return Ne(e),o(i),void(s&&s());o((i-t)*n(l/a)+t),De[e].raf=H(c)}};c()},Fe={shout:be,listen:ve,viewportSize:re,options:o,isMainScrollAnimating:function(){return K},getZoomLevel:function(){return _},getCurrentIndex:function(){return c},isDragging:function(){return Z},isZooming:function(){return W},setScrollOffset:function(e,t){pe.x=e,E=pe.y=t},applyZoomPan:function(e,t,i,a){le.x=t,le.y=i,_=e,we(a)},init:function(){if(!s&&!l){var i;for(n.framework=Ce,n.template=e,$=e.className,s=!0,z=Ce.features,H=z.raf,M=z.caf,p=Y.popup.container.style,n.itemHolders=b=[{el:Y.popup.items[0],wrap:0,index:-1},{el:Y.popup.items[1],wrap:0,index:-1},{el:Y.popup.items[2],wrap:0,index:-1}],b[0].el.style.display=b[2].el.style.display="none",g="translate"+(k?"(":"3d("),h={resize:n.updateSize,orientationchange:function(){clearTimeout(j),j=setTimeout((function(){re.x!==Y.popup.scrollwrap.clientWidth&&n.updateSize()}),500)},scroll:Re,keydown:Be,click:Ze},i=0;i=St())&&(c=0),n.currItem=Ot(c),e.setAttribute("aria-hidden","false"),void 0===E&&(be("initialLayout"),E=V=Ce.getScrollY());var a="pswp--open"+(o.showHideOpacity?" pswp--animate_opacity":"")+(X.is_pointer&&("zoom"==o.click||o.getNumItemsFn()<2)?" pswp--zoom-cursor":"");for(DOMTokenList.prototype.add.apply(e.classList,a.split(" ")),n.updateSize(),d=-1,me=null,i=0;i<3;i++)ke((i+d)*de.x,b[i].el.style);Ce.bind(Y.popup.scrollwrap,u,n),ve("initialZoomInEnd",(function(){n.setContent(b[0],c-1),n.setContent(b[2],c+1),b[0].el.style.display=b[2].el.style.display="block",o.focus&&e.focus(),Ce.bind(document,"keydown",n),Ce.bind(Y.popup.scrollwrap,"click",n),z.is_mouse?Ee():X.is_pointer&&Ce.bind(document,"mousemove",je),Ce.bind(window,"resize scroll orientationchange",n),be("bindEvents")})),n.setContent(b[1],c),n.updateCurrItem(),e.classList.add("pswp--visible")}},close:function(){s&&(s=!1,l=!0,be("close"),setTimeout((function(){Ce.unbind(window,"resize scroll orientationchange",n)}),400),Ce.unbind(window,"scroll",h.scroll),Ce.unbind(document,"keydown",n),X.is_pointer&&Ce.unbind(document,"mousemove",je),Ce.unbind(Y.popup.scrollwrap,"click",n),Z&&Ce.unbind(window,m,n),clearTimeout(j),be("unbindEvents"),Bt(n.currItem,null,!0,n.destroy))},destroy:function(){be("destroy"),zt&&clearTimeout(zt),e.setAttribute("aria-hidden","true"),e.className=$,Ce.unbind(Y.popup.scrollwrap,u,n),Ce.unbind(window,"scroll",n),pt(),Qe(),ge={}},panTo:function(e,t,i){i||(e>U.min.x?e=U.min.x:eU.min.y?t=U.min.y:t=3&&(d+=me+(me>0?-3:3),i=3);for(var a=0;a0?(t=b.shift(),b[2]=t,d++,ke((d+2)*de.x,t.el.style),n.setContent(t,c-i+a+1+1)):(t=b.pop(),b.unshift(t),d--,ke(d*de.x,t.el.style),n.setContent(t,c+i-a-1-1));if(G&&1===Math.abs(me)){var o=Ot(y);o.initialZoomLevel!==_&&(Pt(o,re),Wt(o),Le(o))}me=0,n.updateCurrZoomItem(),y=c,be("afterChange")}}},updateSize:function(e){if(re.x=Y.popup.scrollwrap.clientWidth,re.y=Y.popup.scrollwrap.clientHeight,Re(),de.x=re.x+Math.round(re.x*o.spacing),de.y=re.y,He(de.x*ce),be("beforeResize"),void 0!==d){for(var t,i,a,s=0;s<3;s++)t=b[s],ke((s+d)*de.x,t.el.style),a=c+s-1,o.loop&&St()>2&&(a=fe(a)),(i=Ot(a))&&(v||i.needsUpdate||!i.bounds)?(n.cleanSlide(i),n.setContent(t,a),1===s&&(n.currItem=i,n.updateCurrZoomItem(!0)),i.needsUpdate=!1):-1===t.index&&a>=0&&n.setContent(t,a),i&&i.container&&(Pt(i,re),Wt(i),Le(i));v=!1}f=_=n.currItem.initialZoomLevel,(U=n.currItem.bounds)&&(le.x=U.center.x,le.y=U.center.y,we(!0)),be("resize")},zoomTo:function(e,t,i,a,n){t&&(f=_,lt.x=Math.abs(t.x)-le.x,lt.y=Math.abs(t.y)-le.y,$e(se,le));var o=Ie(e,!1),s={};Se("x",o,s,e),Se("y",o,s,e);var l=_,r={x:le.x,y:le.y};Ve(s);var c=function(t){1===t?(_=e,le.x=s.x,le.y=s.y):(_=(e-l)*t+l,le.x=(s.x-r.x)*t+r.x,le.y=(s.y-r.y)*t+r.y),n&&n(t),we(1===t)};i?We("customZoomTo",0,1,i,a||Ce.easing.sine.inOut,c):c(1)}},Ue={},Ge={},Ye={},Ke={},Xe={},Je=[],et={},tt=[],it={},at=0,nt={x:0,y:0},ot=0,st={x:0,y:0},lt={x:0,y:0},rt={x:0,y:0},ct=function(e,t){return it.x=Math.abs(e.x-t.x),it.y=Math.abs(e.y-t.y),Math.sqrt(it.x*it.x+it.y*it.y)},pt=function(){N&&(M(N),N=null)},dt=function(){Z&&(N=H(dt),Lt())},mt=function(e,t){return!(!e||e===document||e===Y.popup.scrollwrap)&&(t(e)?e:mt(e.parentNode,t))},ut={},ht=function(e,t){return ut.prevent=!mt(e.target,o.isClickableElement),be("preventDragEvent",e,t,ut),ut.prevent},_t=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},ft=function(e,t,i){i.x=.5*(e.x+t.x),i.y=.5*(e.y+t.y)},gt=function(){var e=le.y-n.currItem.initialPosition.y;return 1-Math.abs(e/(re.y/2))},vt={},bt={},yt=[],xt=function(e){for(;yt.length>0;)yt.pop();return L?(ne=0,Je.forEach((function(e){0===ne?yt[0]=e:1===ne&&(yt[1]=e),ne++}))):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(yt[0]=_t(e.touches[0],vt),e.touches.length>1&&(yt[1]=_t(e.touches[1],bt))):(vt.x=e.pageX,vt.y=e.pageY,vt.id="",yt[0]=vt),yt},At=function(e,t){var i,a,s,l,r=le[e]+t[e],c=t[e]>0,p=st.x+t.x,d=st.x-et.x;if(i=r>U.min[e]||rU.min[e]&&(i=o.panEndFriction,U.min[e]-r,a=U.min[e]-se[e]),(a<=0||d<0)&&St()>1?(l=p,d<0&&p>et.x&&(l=et.x)):U.min.x!==U.max.x&&(s=r)):(r0)&&St()>1?(l=p,d>0&&pn.currItem.fitRatio&&(le[e]+=t[e]*i)},wt=function(e){if("pointerdown"!==e.type||!(e.which>1||e.ctrlKey))if(Tt)e.preventDefault();else{if(ht(e,!0)&&e.preventDefault(),be("pointerDown"),L){var t=Ce.arraySearch(Je,e.pointerId,"id");t<0&&(t=Je.length),Je[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var i=xt(e),a=i.length;Q=null,Qe(),Z&&1!==a||(Z=ee=!0,Ce.bind(window,m,n),S=ae=te=B=q=P=R=D=!1,J=null,be("firstTouchStart",i),$e(se,le),oe.x=oe.y=0,$e(Ke,i[0]),$e(Xe,Ke),et.x=de.x*ce,tt=[{x:Ke.x,y:Ke.y}],T=I=ye(),Ie(_,!0),pt(),dt()),!W&&a>1&&!K&&!q&&(f=_,D=!1,W=R=!0,oe.y=oe.x=0,$e(se,le),$e(Ue,i[0]),$e(Ge,i[1]),ft(Ue,Ge,rt),lt.x=Math.abs(rt.x)-le.x,lt.y=Math.abs(rt.y)-le.y,F=ct(Ue,Ge))}},Ct=function(e){if(e.preventDefault(),L){var t=Ce.arraySearch(Je,e.pointerId,"id");if(t>-1){var i=Je[t];i.x=e.pageX,i.y=e.pageY}}if(Z){var a=xt(e);if(J||P||W)Q=a;else if(st.x!==de.x*ce)J="h";else{var n=Math.abs(a[0].x-Ke.x)-Math.abs(a[0].y-Ke.y);Math.abs(n)>=10&&(J=n>0?"h":"v",Q=a)}}},Lt=function(){if(Q){var e=Q.length;if(0!==e)if($e(Ue,Q[0]),Ye.x=Ue.x-Ke.x,Ye.y=Ue.y-Ke.y,W&&e>1){if(Ke.x=Ue.x,Ke.y=Ue.y,!Ye.x&&!Ye.y&&function(e,t){return e.x===t.x&&e.y===t.y}(Q[1],Ge))return;$e(Ge,Q[1]),D||(D=!0);var t=ct(Ue,Ge),i=Vt(t);i>n.currItem.initialZoomLevel+n.currItem.initialZoomLevel/15&&(ae=!0);var a=1,s=Te(),l=Oe();if(i1&&(a=1),i=s-a*(s/3);else i>l&&((a=(i-l)/(6*s))>1&&(a=1),i=l+a*s);a<0&&(a=0),ft(Ue,Ge,nt),oe.x+=nt.x-rt.x,oe.y+=nt.y-rt.y,$e(rt,nt),le.x=Me("x",i),le.y=Me("y",i),S=i>_,_=i,we()}else{if(!J)return;if(ee&&(ee=!1,Math.abs(Ye.x)>=10&&(Ye.x-=Q[0].x-Xe.x),Math.abs(Ye.y)>=10&&(Ye.y-=Q[0].y-Xe.y)),Ke.x=Ue.x,Ke.y=Ue.y,0===Ye.x&&0===Ye.y)return;if("v"===J&&o.closeOnVerticalDrag&&_===n.currItem.initialZoomLevel){oe.y+=Ye.y,le.y+=Ye.y;var c=gt();return B=!0,be("onVerticalDrag",c),xe(c),void we()}!function(e,t,i){if(e-T>50){var a=tt.length>2?tt.shift():{};a.x=t,a.y=i,tt.push(a),T=e}}(ye(),Ue.x,Ue.y),P=!0,U=n.currItem.bounds,At("x",Ye)||(At("y",Ye),Ve(le),we())}}},kt=function(e){var t;if(be("pointerUp"),ht(e,!1)&&e.preventDefault(),L){var i=Ce.arraySearch(Je,e.pointerId,"id");if(i>-1)if(t=Je.splice(i,1)[0],navigator.msPointerEnabled){t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}else t.type=e.pointerType||"mouse"}var a,s=xt(e),l=s.length;if("mouseup"===e.type&&(l=0),2===l)return Q=null,!0;1===l&&$e(Xe,s[0]),0!==l||J||K||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),be("touchRelease",e,t));var r=-1;if(0===l&&(Z=!1,Ce.unbind(window,m,n),pt(),W?r=0:-1!==ot&&(r=ye()-ot)),ot=1===l?ye():-1,a=-1!==r&&r<150?"zoom":"swipe",W&&l<2&&(W=!1,1===l&&(a="zoomPointerUp"),be("zoomGestureEnded")),Q=null,P||D||K||B)if(Qe(),O||(O=Ht()),O.calculateSwipeSpeed("x"),B){if(gt()n.currItem.fitRatio&&Mt(O):Et())}},Ht=function(){var e,t,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(a){tt.length>1?(e=ye()-T+50,t=tt[tt.length-2][a]):(e=ye()-I,t=Xe[a]),i.lastFlickOffset[a]=Ke[a]-t,i.lastFlickDist[a]=Math.abs(i.lastFlickOffset[a]),i.lastFlickDist[a]>20?i.lastFlickSpeed[a]=i.lastFlickOffset[a]/e:i.lastFlickSpeed[a]=0,Math.abs(i.lastFlickSpeed[a])<.1&&(i.lastFlickSpeed[a]=0),i.slowDownRatio[a]=.95,i.slowDownRatioReverse[a]=1-i.slowDownRatio[a],i.speedDecelerationRatio[a]=1},calculateOverBoundsAnimOffset:function(e,t){i.backAnimStarted[e]||(le[e]>U.min[e]?i.backAnimDestination[e]=U.min[e]:le[e]30&&(r||i.lastFlickOffset.x>20)?s=-1:t<-30&&(r||i.lastFlickOffset.x<-20)&&(s=1)}s&&((c+=s)<0?(c=o.loop?St()-1:0,l=!0):c>=St()&&(c=o.loop?0:St()-1,l=!0),l&&!o.loop||(me+=s,ce-=s,a=!0));var p,d=de.x*ce,m=Math.abs(d-st.x);return p=(a||d>st.x==i.lastFlickSpeed.x>0)&&Math.abs(i.lastFlickSpeed.x)>0?Math.max(Math.min(m/Math.abs(i.lastFlickSpeed.x),400),250):333,at===c&&(a=!1),K=!0,a&&Y.popup.toggle_timer(!1),We("mainScroll",st.x,d,p,Ce.easing.cubic.out,He,(function(){Qe(),K=!1,at=-1,(a||at!==c)&&n.updateCurrItem(),be("mainScrollAnimComplete")})),a&&n.updateCurrItem(!0),a},Vt=function(e){return 1/F*e*f},Et=function(){var e=_,t=Te(),i=Oe();_i&&(e=i);var a,o=ie;return te&&!S&&!ae&&_{G.setProperty("--clip-path-transition-duration",a?"0.333s":"0.433s"),G.setProperty("--clip-path",`inset(${e?`${e.y}% ${e.x}%`:"0% 0%"})`)};!function(){var i=r,s=!n.currItem.src||n.currItem.loadError||o.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),a||(_=l.w/t.w,le.x=l.x,le.y=l.y-V,Y.popup[s?"pswp":"bg"].style.opacity=.001,we());let c=(()=>{if(!l||!l.img)return;let e=l.img.offsetWidth,t=l.img.offsetHeight;if(!e||!t)return;let i=Math.max((l.w-e)/l.w*50,0),a=Math.max((l.h-t)/l.h*50,0);return i<1&&a<1?void 0:{x:i,y:a}})();c&&m(a?0:c),qe("initialZoom"),a&&!i&&e.classList.remove("pswp--animated-in"),s&&(a?Ce.toggle_class(e,"pswp--animate_opacity",!i):setTimeout((function(){e.classList.add("pswp--animate_opacity")}),30)),zt=setTimeout((function(){if(be("initialZoom"+(a?"Out":"In")),c&&m(a?c:0),a){var n=l.w/t.w,o={x:le.x,y:le.y},r=_,u=ie,h=function(t){1===t?(_=n,le.x=l.x,le.y=l.y-E):(_=(n-r)*t+r,le.x=(l.x-o.x)*t+o.x,le.y=(l.y-E-o.y)*t+o.y),we(),s?e.style.opacity=1-t:xe(u-t*u)};i?We("initialZoom",0,1,p,Ce.easing.cubic.out,h,d):(h(1),zt=setTimeout(d,p+20))}else _=t.initialZoomLevel,$e(le,t.initialPosition),we(),xe(1),s?e.style.opacity=1:xe(1),zt=setTimeout(d,p+20)}),a?10:20)}()},Zt={},Rt=[],Dt={index:0,errorMsg:'
    The image could not be loaded.
    ',preload:[1,1],getNumItemsFn:function(){return jt.length}},Pt=function(e,t,i){if(e.src&&!e.loadError){var a=!i;if(Zt.x=t.x,Zt.y=t.y,a){var n=Zt.x/e.w,o=Zt.y/e.h;e.fitRatio=n1&&(i=1),e.initialZoomLevel=i,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!i)return;return function(e,t,i){var a=e.bounds;a.center.x=Math.round((Zt.x-t)/2),a.center.y=Math.round((Zt.y-i)/2),a.max.x=t>Zt.x?Math.round(Zt.x-t):a.center.x,a.max.y=i>Zt.y?Math.round(Zt.y-i):a.center.y,a.min.x=t>Zt.x?0:a.center.x,a.min.y=i>Zt.y?0:a.center.y}(e,e.w*i,e.h*i),a&&i===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds},Nt=function(e,t,i,a,o,s){t.loadError||a&&(t.imageAppended=!0,Wt(t,a,t===n.currItem&&he),i.appendChild(a),s&&setTimeout((function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)}),500))},qt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=Ce.createEl("pswp__img","img"),i=function(){e.loading=!1,e.loaded=!0,"svg"!==e.item.ext&&t.naturalWidth&&t.naturalHeight&&(e.w!==t.naturalWidth||e.h!==t.naturalHeight)&&(e.w=t.naturalWidth,e.h=t.naturalHeight,n.updateSize()),e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=i,t.onerror=function(){e.loadError=!0,i()},t.src=e.src,t},Qt=function(e,t){if(e.src&&e.loadError&&e.container)return t&&Ce.resetEl(e.container),e.container.innerHTML=o.errorMsg.replace("%url%",e.src),!0},Wt=function(e,t,i){if(e.src){t||(t=e.container.lastElementChild);var a=i?e.w:Math.round(e.w*e.fitRatio),n=i?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=a+"px",e.placeholder.style.height=n+"px"),t.style.width=a+"px",t.style.height=n+"px"}},Ft=function(){if(Rt.length){for(var e,t=0;t=0,s=Math.min(i[0],St()),l=Math.min(i[1],St());for(t=1;t<=(a?l:s);t++)n.lazyLoadItem(c+t);for(t=1;t<=(a?s:l);t++)n.lazyLoadItem(c-t)})),ve("initialLayout",(function(){n.currItem.initialLayout=o.getThumbBoundsFn&&o.getThumbBoundsFn(c)})),ve("mainScrollAnimComplete",Ft),ve("initialZoomInEnd",Ft),ve("destroy",(function(){for(var e,t=0;t=0&&(void 0!==jt[e]&&jt[e])},setContent:function(e,t){o.loop&&(t=fe(t));var i=n.getItemAt(e.index);i&&(i.container=null);var a,l=n.getItemAt(t);if(l){be("gettingData",t,l),e.index=t,e.item=l;var r=l.container=Ce.createEl("pswp__zoom-wrap");if(!l.src&&l.html&&(l.html.tagName?r.appendChild(l.html):r.innerHTML=l.html),Qt(l),Pt(l,re),!l.src||l.loadError||l.loaded)l.src&&!l.loadError&&((a=Ce.createEl("pswp__img","img")).style.opacity=1,a.src=l.src,Wt(l,a),Nt(0,l,r,a));else{l.loadComplete=function(i){if(s){if(e&&e.index===t){if(Qt(i,!0))return i.loadComplete=i.img=null,Pt(i,re),Le(i),void(e.index===c&&n.updateCurrZoomItem());i.imageAppended?!Tt&&i.placeholder&&(i.placeholder.style.display="none",i.placeholder=null):K||Tt?Rt.push({item:i,baseDiv:r,img:i.img,index:t,holder:e,clearPlaceholder:!0}):Nt(0,i,r,i.img,0,!0)}i.loadComplete=null,i.img=null,be("imageLoadComplete",t,i)}};var p=l.msrc&&(l.msrc!==l.src||!It),d=Ce.createEl("pswp__img pswp__img--placeholder"+(p?"":" pswp__img--placeholder--blank"),p?"img":"");p&&(d.src=l.msrc),Wt(l,d),r.appendChild(d),l.placeholder=d,l.loading||qt(l),It?Nt(0,l,r,l.img,0,!0):Rt.push({item:l,baseDiv:r,img:l.img,index:t,holder:e})}It||t!==c?Le(l):(G=r.style,Bt(l,a||l.img)),Ce.resetEl(e.el),e.el.appendChild(r)}else Ce.resetEl(e.el)},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Ut,Gt,Yt={},Kt=function(e,t,i){var a=document.createEvent("CustomEvent"),n={origEvent:e,pointerType:i||"touch",releasePoint:t,target:e.target,rightClick:"mouse"===i&&3===e.which};a.initCustomEvent("pswpTap",!0,!0,n),e.target.dispatchEvent(a)};_e("Tap",{publicMethods:{initTap:function(){ve("firstTouchStart",n.onTapStart),ve("touchRelease",n.onTapRelease),ve("destroy",(function(){Yt={},Ut=null}))},onTapStart:function(e){e.length>1&&(clearTimeout(Ut),Ut=null)},onTapRelease:function(e,t){var i,a;if(t&&(!P&&!R&&!Pe&&(!L||Y.popup.container.contains(e.target)))){var n=t;if(Ut&&(clearTimeout(Ut),Ut=null,i=n,a=Yt,Math.abs(i.x-a.x)<25&&Math.abs(i.y-a.y)<25))return void be("doubleTap",n);if("mouse"===t.type)return void Kt(e,t,"mouse");if("A"===e.target.tagName)return;if("BUTTON"===e.target.tagName||e.target.classList.contains("pswp__single-tap"))return void Kt(e,t);$e(Yt,n),Ut=setTimeout((function(){Kt(e,t),Ut=null}),300)}}}}),_e("DesktopZoom",{publicMethods:{initDesktopZoom:function(){X.is_dual_input?ve("mouseUsed",(function(){n.setupDesktopZoom()})):X.is_pointer&&n.setupDesktopZoom(!0)},setupDesktopZoom:function(t){Gt={};var i="wheel mousewheel DOMMouseScroll";ve("bindEvents",(function(){Ce.bind(e,i,n.handleMouseWheel)})),ve("unbindEvents",(function(){Gt&&Ce.unbind(e,i,n.handleMouseWheel)})),n.mouseZoomedIn=!1;var a,o=function(){n.mouseZoomedIn&&(e.classList.remove("pswp--zoomed-in"),n.mouseZoomedIn=!1),Ce.toggle_class(e,"pswp--zoom-allowed",_<1),s()},s=function(){a&&(e.classList.remove("pswp--dragging"),a=!1)};ve("resize",o),ve("afterChange",o),ve("pointerDown",(function(){n.mouseZoomedIn&&(a=!0,e.classList.add("pswp--dragging"))})),ve("pointerUp",s),t||o()},handleMouseWheel:function(e){if(_<=n.currItem.fitRatio)return!o.closeOnScroll||Pe||Z?e.preventDefault():Math.abs(e.deltaY)>2&&(r=!0,n.close()),!0;if(e.stopPropagation(),Gt.x=0,"deltaX"in e)1===e.deltaMode?(Gt.x=18*e.deltaX,Gt.y=18*e.deltaY):(Gt.x=e.deltaX,Gt.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(Gt.x=-.16*e.wheelDeltaX),e.wheelDeltaY?Gt.y=-.16*e.wheelDeltaY:Gt.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;Gt.y=e.detail}Ie(_,!0);var t=le.x-Gt.x,i=le.y-Gt.y;e.preventDefault(),n.panTo(t,i)},toggleDesktopZoom:function(t){t=t||{x:re.x/2+pe.x,y:re.y/2+pe.y};var i=o.getDoubleTapZoom(!0,n.currItem),a=_===i;n.mouseZoomedIn=!a,n.zoomTo(a?n.currItem.initialZoomLevel:i,t,333),Ce.toggle_class(e,"pswp--zoomed-in",!a)}}});var Xt,Jt,ei,ti,ii,ai,ni,oi,si,li,ri={history:!0},ci=function(){return li.hash.substring(1)},pi=function(){Xt&&clearTimeout(Xt),ei&&clearTimeout(ei)},di=function(){if(ei&&clearTimeout(ei),Pe||Z)ei=setTimeout(di,500);else{ti?clearTimeout(Jt):ti=!0;var e=c+1,t=Ot(c);t.hasOwnProperty("pid")&&(e=t.pid);var i=(ai?ai+"&":"")+"pid="+e;ni||-1===li.hash.indexOf(i)&&(si=!0);var a=li.href.split("#")[0]+"#"+i;"#"+i!==window.location.hash&&history[ni?"replaceState":"pushState"]("",document.title,a),ni=!0,Jt=setTimeout((function(){ti=!1}),60)}};_e("History",{publicMethods:{initHistory:function(){if(Ce.copy_unique(o,ri),o.history){li=window.location,si=!1,oi=!1,ni=!1,ai=ci(),ve("afterChange",n.updateURL),ve("unbindEvents",(function(){Ce.unbind(window,"hashchange",n.onHashChange)})),history.scrollRestoration&&(history.scrollRestoration="manual");var e=function(){ii=!0,oi||(si?history.back():ai?li.hash=ai:history.pushState("",document.title,li.pathname+li.search)),pi(),history.scrollRestoration&&(history.scrollRestoration="auto")};ve("unbindEvents",(function(){r&&e()})),ve("destroy",(function(){ii||e()}));var t=ai.indexOf("pid=");t>-1&&"&"===(ai=ai.substring(0,t)).slice(-1)&&(ai=ai.slice(0,-1)),setTimeout((function(){s&&Ce.bind(window,"hashchange",n.onHashChange)}),40)}},onHashChange:function(){if(ci()===ai)return oi=!0,void n.close()},updateURL:function(){pi(),ni?Xt=setTimeout(di,800):di()}}}),Object.assign(n,Fe)};class ke{static active_el;static expand_button;static menu_root;static has_uls;static has_uls_root;static has_uls_not_root;static menu_open={};static menu_expanded;static toggle_duration=200;static init(){if(this.config=e("menu",{hidden:!1,expanded:!1,localStorage:!0}),this.params={},location.search.includes("=")&&["disabled","hidden","expanded"].forEach((e=>{let t=location.search.match(new RegExp(`menu_${e}=(0|1|true|false)`));t&&(this.params[e]=/1|true/.test(t[1]))})),K.sidebar=_id("sidebar"),K.sidebar_inner=_id("sidebar-inner"),K.sidebar_menu=_id("sidebar-menu"),K.sidebar_toggle=_id("sidebar-toggle"),K.sidebar_bg=_id("sidebar-bg"),K.sidebar_topbar=_id("sidebar-topbar"),this.params.disabled)return K.sidebar.remove(),K.sidebar_bg.remove(),document.documentElement.classList.remove("menu-enabled"),document.documentElement.classList.add("menu-disabled","sidebar-closed"),void(_c.menu_exists=!1);this.sidebar_hidden()&&document.documentElement.classList.add("sidebar-closed"),K.sidebar_toggle.innerHTML=U.get_svg_icon_multi("menu","menu_back"),K.sidebar_toggle.addEventListener("click",(()=>this.toggle_open())),K.sidebar_bg.addEventListener("click",(()=>this.toggle_open())),this.get_menu()}static sidebar_hidden(){return!this.is_large_screen()||(this.params.hasOwnProperty("hidden")?this.params.hidden:this.config.localStorage?!T.get_option("files:menu-open",!this.config.hidden):this.config.hidden)}static is_large_screen(){return matchMedia("(min-width: 992px)").matches}static toggle_open(){T.set_option("files:menu-open",!document.documentElement.classList.toggle("sidebar-closed"),!this.config.hidden)}static get_menu(){const e=!!_c.config.localStorage_cache&&T.get_json("files:menu:"+_c.menu_cache_hash);return e?_c.menu_cache_validate||_c.cache&&!_c.menu_cache_file?e.some((e=>e.path.includes("/")))?void this.load_menu(e):this.create_menu(e,"localStorage valid [root dirs only]"):this.create_menu(e,"localStorage valid [menu_cache_validate disabled]"):this.load_menu()}static load_menu(e){K.sidebar_menu.classList.add("sidebar-spinner"),O({params:!_c.menu_cache_file&&[_c.cache?`menu_cache_hash=${_c.menu_cache_hash}`:0,e?"localstorage=1":0].filter(Boolean).join("&"),method:_c.menu_cache_file?"GET":"POST",url:_c.menu_cache_file||_c.script+"?action=dirs",json_response:!0,complete:(t,i,a)=>this.loaded(t,i,a,e)})}static loaded(e,t,i,a){return K.sidebar_menu.classList.remove("sidebar-spinner"),i&&e&&!e.error&&Object.keys(e).length?e.localstorage&&a?this.create_menu(a,"localStorage valid [server]"):(this.create_menu(e,"menu from "+(_c.menu_cache_file?"JSON cache":"xmlhttp")),void(X.local_storage&&_c.config.localStorage_cache&&setTimeout((()=>{U.clean_localstorage(),T.set("files:menu:"+_c.menu_cache_hash,t)}),1e3))):(oe(),j(e.error||"Error or no dirs!"),F.toggle(!1,e.error||"Error or no dirs!"))}static is_expanded(){if(this.params.hasOwnProperty("expanded"))return this.params.expanded;let e=!!this.config.localStorage&&T.get_json(`files:menu-expanded:${_c.location_hash}`);return e?(this.menu_open=e,void Object.keys(this.menu_open).forEach((e=>{_c.dirs[e]||delete this.menu_open[e]}))):this.config.expanded}static create_menu(e,t){if(oe(),j("[MENU] "+t,e),e.forEach((e=>{_c.dirs[e.path]||(_c.dirs[e.path]=e)})),this.is_expanded()){let e=!1;Object.keys(_c.dirs).forEach((t=>{e&&t.startsWith(e+"/")&&(this.menu_open[e]=!0),e=t}))}this.create_menu_html(e),this.menu_root=K.sidebar_menu.firstChild,this.get_has_uls(),_class("menu-li",this.menu_root).forEach((e=>{const t=_c.dirs[e.dataset.path];t&&(t.menu_li=e)})),this.set_active(_c.current_path||_c.start_path||""),this.set_menu_scroll(),this.set_menu_toggle(),_c.config.transitions&&1==getComputedStyle(document.body).getPropertyValue("opacity")&&anime({targets:this.menu_root,opacity:[0,1],easing:"easeOutQuad",duration:300}),L(this.menu_root,(e=>{if(Y.contextmenu.is_open)return e.preventDefault();if(e.target===this.menu_root)return;const t="A"===e.target.nodeName,i=t?e.target.parentElement:e.target.closest(".menu-li"),a=t?e.target:i.firstElementChild;if(!C(e,a))if(t&&a!==this.active_el)U.get_files(i.dataset.path,"push"),this.is_large_screen()?document.documentElement.classList.contains("sidebar-closed")&&w(K.sidebar,"sidebar-clicked",null,1e3):this.toggle_open();else if(!t||i.classList.contains("has-ul")){const e=!i.classList.contains("menu-li-open");this.menu_open_manager(i,e),this.ul_anime(i,e)}}))}static create_menu_html(e){let t="",i=0,a=0,n=!1;e.forEach((e=>{if(!e.path)return;let o=(e.path.match(/\//g)||[]).length+1,s=o-i;i=o,a+=s,n&&(t+=this.add_li(n,s>0)),t+=s>0?`".repeat(-s),n=_c.dirs[e.path]})),t+=this.add_li(n,!1)+"".repeat(a),K.sidebar_menu.innerHTML=t}static add_li(e,t){let i="menu-li",o="menu-a",s=e.path?(e.path.match(/\//g)||[]).length+1:0,l="folder"+(e.is_readable?e.is_link?"_link":"":"_forbid"),r=a(e.path);return t?i+=" has-ul menu-li-"+(this.menu_open[e.path]?"open":"closed"):e.is_readable||(o+=" menu-a-forbidden"),`
  • ${t?U.get_svg_icon_multi_class("button-icon menu-icon menu-icon-toggle","plus","minus")+U.get_svg_icon_multi_class("menu-icon menu-icon-folder menu-icon-folder-toggle",l,"folder_plus","folder_minus"):U.get_svg_icon_class(l,"menu-icon menu-icon-folder")}${n(e.basename)}`}static get_has_uls(){this.has_uls=_class("has-ul",this.menu_root),this.has_uls_root=Array.from(this.menu_root.children).filter((e=>e.classList.contains("has-ul"))),this.has_uls_not_root=this.has_uls.filter((e=>!this.has_uls_root.includes(e)))}static set_active(e){this.active_el&&this.active_el.classList.remove("menu-spinner","menu-active");let t=e.split("/");for(;t.length;){let e=_c.dirs[t.join("/")];if(this.active_el=!(!e||!e.menu_li)&&e.menu_li.firstElementChild,this.active_el){this.active_el.classList.add("menu-active");break}t.pop()}}static set_menu_scroll(){if(!X.local_storage)return;const e=T.get("files:menu-scroll"+_c.location_hash);e&&(K.sidebar_menu.scrollTop=e),L(K.sidebar_menu,k((()=>{T.set("files:menu-scroll"+_c.location_hash,K.sidebar_menu.scrollTop,!0)}),1e3),"scroll")}static set_menu_toggle(){this.menu_expanded=this.has_uls_root.length&&Object.keys(this.menu_open).length===this.has_uls.length,K.sidebar_topbar.innerHTML=``,this.expand_button=K.sidebar_topbar.lastElementChild,L(this.expand_button,(e=>{if(!this.has_uls_root.length)return;let t=[],i=[],a=!1,n=window.innerHeight;if(this.menu_expanded)this.has_uls_root.forEach((e=>{if(!e.classList.contains("menu-li-open"))return;if(a)return t.push(e);if(e.getBoundingClientRect().top<=n)return i.push(e);t.push(e),a=!0})),t.length&&t.forEach((e=>this.li_close(e))),i.length&&i.forEach((e=>this.ul_anime(e,!1))),$("menu_inner_close",(()=>{this.has_uls_not_root.forEach((e=>this.li_close(e)))}),i.length?this.toggle_duration+10:10);else{let e=this.has_uls;this.has_uls.length>100&&(e=this.has_uls_root,this.has_uls_not_root.forEach((e=>this.li_open(e)))),e.forEach((e=>{if(e.classList.contains("menu-li-open"))return;if(a||!e.offsetParent)return t.push(e);if(e.getBoundingClientRect().top<=n&&e.lastElementChild.children.length<=50)return i.push(e);t.push(e),a=!0})),t.length&&t.forEach((e=>this.li_open(e))),i.length&&i.forEach((e=>this.ul_anime(e,!0))),clearTimeout(M.menu_inner_close)}this.menu_open_manager("all",!this.menu_expanded)}))}static menu_open_manager(e,t){"all"===e?t?this.has_uls.forEach((e=>this.menu_open[e.dataset.path]=!0)):this.menu_open={}:t?this.menu_open[e.dataset.path]=!0:delete this.menu_open[e.dataset.path],this.update_expanded()}static update_expanded(){const e=Object.keys(this.menu_open).length,t=this.has_uls_root.length&&e===this.has_uls.length;this.menu_expanded!==t&&(this.menu_expanded=t,X.is_pointer&&(this.expand_button.title=ie.get(t?"collapse menu":"expand menu")),this.expand_button.classList.toggle("is-expanded",t)),X.local_storage&&$("menu_expanded_localStorage",(()=>{T.set("files:menu-expanded:"+_c.location_hash,JSON.stringify(this.menu_open))}),1e3)}static ul_anime(e,t){const i=e.lastElementChild;i.style.display="block",anime.remove(i);const a={targets:i,translateY:t?[-2,0]:-2,height:[i.clientHeight+"px",t?i.scrollHeight+"px":0],opacity:t?1:0,easing:"cubicBezier(.6,0,.1,1)",duration:this.toggle_duration,complete:()=>{i.style.cssText="--depth:"+(e.dataset.level||0)}};return anime(a),t?this.li_open(e):this.li_close(e)}static li_open(e){e.classList.replace("menu-li-closed","menu-li-open")}static li_close(e){e.classList.replace("menu-li-open","menu-li-closed")}static loading(e){this.active_el&&this.active_el.classList.toggle("menu-spinner",!!e)}static update(){this.get_has_uls(),this.expand_button.classList.toggle("not-expandable",!this.has_uls_root.length),this.menu_open={},this.has_uls.forEach((e=>{e.classList.contains("menu-li-open")&&(this.menu_open[e.dataset.path]=!0)})),this.update_expanded()}}if(_c.menu_exists&&ke.init(),(()=>{Y.sort={sorting:{name:{prop:"basename",order:"asc"},kind:{prop:"ext",order:"asc"},size:{prop:"filesize",order:"desc"},date:{prop:"mtime",order:"desc"},shuffle:{prop:"mtime",order:"desc"}}};const t=e("sort",{default:"name_asc",dirs_first:!0,function:"locale"});function i(e,t){Object.assign(Y.sort,{sort:e,order:t,multi:"asc"===t?1:-1,index:Y.sort.keys.indexOf(e),prop:Y.sort.sorting[e].prop})}t.options&&Object.keys(Y.sort.sorting).forEach((e=>{t.options.includes(e)||delete Y.sort.sorting[e]})),Y.sort.keys=Object.keys(Y.sort.sorting);let a=([z("sort",!0),T.get("files:sort"),t.default,Y.sort.keys[0]].find((e=>e&&Y.sort.keys.includes(e.split("_")[0])))||"name_asc").split("_"),n=a[0]||"name";i(n,a[1]&&["asc","desc"].includes(a[1])?a[1]:Y.sort.sorting[n].order);const o=_id("change-sort");o&&(o.innerHTML=``);const s=o.firstElementChild,l=(o.children[1],o.lastElementChild),r=_class("dropdown-item",l);function c(e,i){if(t.dirs_first&&e._values.is_dir!==i._values.is_dir)return(i._values.is_dir?1:-1)*Y.sort.multi;if("shuffle"===Y.sort.sort)return.5-Math.random();var a=e._values[Y.sort.prop],n=i._values[Y.sort.prop];return"name"===Y.sort.sort||a===n?m(e._values.basename,i._values.basename):a>n?1:-1}var p={locale:function(e,t){return d.compare(e,t)||p.basic(e,t)},basic:function(e,t){var i=e.toLowerCase(),a=t.toLowerCase();return i===a?e>t?1:-1:i>a?1:-1}},d=new Intl.Collator(t.function&&!["basic","locale"].includes(t.function)?t.function.trim():void 0,{numeric:!0,sensitivity:"base"}),m=p["basic"===t.function?"basic":"locale"];function h(e,t,i){let a=r[Y.sort.index],n=_[Y.sort.index];e&&(a.classList.toggle("active",i),n&&n.classList.toggle("sortbar-active",i)),(e||t)&&(a.classList.toggle("sort-"+Y.sort.order,i),n&&n.classList.toggle("sort-"+Y.sort.order,i))}U.set_sort=function(e){if(e){var a=e!==Y.sort.sort,n=a?Y.sort.sorting[e].order:"asc"===Y.sort.order?"desc":"asc",o=n!==Y.sort.order;h(a,o,!1),i(e,n),s.innerHTML=U.get_svg_icon(`sort_${e}_${n}`),h(a,o,!0),T.set_option("files:sort",Y.sort.sort+"_"+Y.sort.order,t.default)}_c.debug&&console.time("sort"),Y.list&&Y.list.sort(Y.sort.prop,{order:Y.sort.order,sortFunction:c}),_c.debug&&console.timeEnd("sort")},U.dropdown(o,s,(function(){let e=Y.sort.index>=Y.sort.keys.length-1?0:Y.sort.index+1;4!==e||r[4].offsetParent||(e=0),U.set_sort(Y.sort.keys[e])})),u(l,U.set_sort),K.sortbar=_id("files-sortbar"),P(K.sortbar,"sortbar-"+Y.layout.layout),K.sortbar.innerHTML=`
    ${E(Y.sort.keys,(e=>"shuffle"===e?"":`
    ${ie.get(e)}${U.get_svg_icon_multi_class("svg-icon svg-icon-sort","chevron_down","chevron_up")}
    `))}
    `;const _=K.sortbar.firstChild.children;L(K.sortbar,(function(e){var t=e.target.closest("[data-action]");t&&U.set_sort(t.dataset.action,e)}))})(),Y.topbar={info:{}},K.filter.placeholder=ie.get("filter"),K.filter.title=X.c_key+"F",ue.hash(),K.filter_container.insertAdjacentHTML("beforeend",`${U.get_svg_icon_class("search","svg-icon filter-search-icon")}`),L(K.filter_container.lastElementChild,(()=>{K.filter.focus(),ue.clear(!0)})),ie.dropdown(),_c.allow_settings&&xe.options.show_button&&(K.topbar_top.insertAdjacentHTML("beforeend",``),K.topbar_top.lastElementChild.addEventListener("click",(e=>new xe))),_c.session_token&&_e.button(),ee.config.button&&(K.topbar_top.insertAdjacentHTML("beforeend",``),K.topbar_top.lastElementChild.addEventListener("click",(()=>ee.next()))),screenfull.isEnabled&&(K.topbar_top.insertAdjacentHTML("beforeend",'"),L(K.topbar_top.lastElementChild,(function(){screenfull.toggle()})),screenfull.on("change",(function(){document.documentElement.classList.toggle("is-fullscreen",screenfull.isFullscreen)}))),U.topbar_info=function(e,t){K.topbar_info.className="info-"+t,K.topbar_info.innerHTML=e},U.topbar_info_search=function(e,t){if(!e)return K.topbar_info.className="info-hidden";K.topbar_info.classList.contains("info-search")?(K.topbar_info.classList.toggle("info-nomatch",!t),K.topbar_info.children[0].textContent=t,K.topbar_info.children[2].textContent=e):U.topbar_info(''+t+''+ie.get("matches found for")+''+e+'","search"+(t?"":" info-nomatch"))},_c.config.favicon&&document.head.insertAdjacentHTML("beforeend",_c.config.favicon),"popup"===_c.config.click&&X.is_pointer&&K.files_container.style.setProperty("--files-cursor","zoom-in"),_c.config.logo){let e=_c.config.logo.startsWith("<")?_c.config.logo:``;document.body.insertAdjacentHTML("afterBegin",`
    ${e}
    `),_id("change-sort").insertAdjacentHTML("afterEnd",`
    ${e}
    `)}function He(){const e=e=>Q(100).then((()=>{e&&e.remove()}));[".modal","#files"].forEach((function(t){yall({observeChanges:!0,observeRootSelector:t,lazyClass:"files-lazy",threshold:300,events:{load:function(t){let i=t.target,a=i.parentElement,n=!!a.dataset.name&&_c.files[a.dataset.name],o=i.naturalWidth,s=i.naturalHeight,l=o?o/s:1;if(i.classList.contains("files-folder-preview"))return o&&1!==o?(o&&i.style.setProperty("--ratio",l),i.style.opacity=1):e(i);if(n&&n.embed_img&&n.embed_img.endsWith("/hq720.jpg")&&oe.removeProperty("--files-data-transition-duration")))}i.classList.remove("files-img-placeholder"),a.classList.add("files-a-loaded")},error:{listener:t=>{t.target.classList.contains("files-folder-preview")&&e(t.target)}}}})})),document.body.classList.remove("body-loading"),U.topbar_dropdowns_init();const t=()=>K.topbar_top.classList.toggle("topbar-top-scroll",K.topbar_top.clientWidtht())),t(),!_c.config.prevent_right_click&&_c.config.context_menu&&(K.files_container&&K.files_container.addEventListener("contextmenu",(e=>{let t=e.target.closest(".files-a");U.create_contextmenu(e,"files",t||K.files_container,t?_c.files[t.dataset.name]:_c.current_dir)})),K.sidebar_menu&&K.sidebar_menu.addEventListener("contextmenu",(e=>{let t=e.target.closest(".menu-a"),i=!!t&&t.parentElement;U.create_contextmenu(e,"sidebar",t||K.sidebar_menu,_c.dirs[i?i.dataset.path:""])}))),anime({targets:document.body,opacity:[0,1],duration:500,easing:"easeOutQuad",complete:U.init_files})}if(_c.config.header&&document.body.insertAdjacentHTML("afterBegin",`
    ${_c.config.header}
    `),_c.config.topbar&&K.main.insertAdjacentHTML("afterBegin",`
    ${_c.config.topbar}
    `),_c.config.footer&&K.main.insertAdjacentHTML("beforeEnd",`
    ${_c.config.footer}
    `),_c.config.footer_fixed&&document.body.insertAdjacentHTML("afterEnd",`
    ${_c.config.footer_fixed}
    `),_c.index_html&&location.search.indexOf("create_index_cache=")>-1){let e=`./index.php?create_index_cache=${z("create_index_cache",!0)}`;Ae.default.fire({title:"index_cache",html:`Must be triggered from index.php`}).then((t=>{t.isConfirmed&&location.assign(e)}))}else"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?He():U.load_plugin("intersection-observer",He,{src:["intersection-observer@0.12.2/intersection-observer.js"]})}("undefined"==typeof files?files={}:files); ================================================ FILE: lang/ar.json ================================================ { "archive": "", "blocks": "كتل", "cancel": "الغاء", "columns": "أعمدة", "copied to clipboard": "", "copy": "نسخ", "copy link": "نسخ رابط", "copy links": "", "copy text": "نسخ نص", "date": "تاريخ", "delete": "حذف", "details": "تفاصيل", "directory is empty": "دليل فارغ", "download": "تحميل", "duplicate": "مكرر", "error": "خطأ", "fail": "فشل", "file": "ملف", "files": "ملفات", "filter": "تصفية", "folder": "مجلد", "folders": "مجلدات", "from clipboard": "", "google maps": "خرائط جوجل", "grid": "شبكة", "height": "ارتفاع", "home": "", "image": "", "imagelist": "قائمة صور", "images": "صور", "invalid": "", "invalid login": "تسجيل دخول غير صالح", "is not writeable": "", "kind": "نوع", "language": "لغة", "layout": "نسق", "list": "قائمة", "loading": "جار التحميل", "login": "دخول", "logout": "خروج", "matches found for": "تم العثور على تطابقات لـ", "move": "نقل", "name": "اسم", "new file": "ملف جديد", "new folder": "مجلد جديد", "new user": "", "open": "فتح", "open in new tab": "فتح في علامة تبويب جديدة", "overlay": "تراكب", "password": "كلمة المرور", "quality": "جودة", "reload": "", "rename": "تسمية", "resize and compress images": "تغيير حجم الصور وضغطها", "rows": "صفوف", "save": "حفظ", "select all": "", "selection mode": "", "settings": "", "show info": "إظهار معلومات", "shuffle": "خلط", "size": "حجم", "sort": "فرز", "space": "فراغ", "uniform": "متسق", "unzip": "فك الضغط", "upload": "رفع", "use image": "صورة", "username": "اسم المستخدم", "width": "عرض", "you were logged out": "لقد تم تسجيل خروجك", "zip": null, "zoom": "تكبير" } ================================================ FILE: lang/bg.json ================================================ { "archive": "архив", "blocks": "блокове", "cancel": "Отказ", "columns": "колони", "copied to clipboard": "копирани в клипборда", "copy": "копиране", "copy link": "копирай връзка", "copy links": "копиране на връзки", "copy text": "копирай текст", "date": "дата", "delete": "изтрий", "details": "подробности", "directory is empty": "директорията е празна", "download": "свали", "duplicate": "дубликат", "error": "грешка", "fail": "грешка", "file": "файл", "files": "файла", "filter": "филтър", "folder": "папка", "folders": "папки", "from clipboard": "от клипборда", "google maps": "google карти", "grid": "мрежа", "height": "височина", "home": "Начало", "image": "изображение", "imagelist": "списък с изображения", "images": "изображения", "invalid": "невалиден", "invalid login": "невалидно влизане", "is not writeable": "не може да се записва", "kind": "вид", "language": "език", "layout": "оформление", "list": "списък", "loading": "зарежда се", "login": "вход", "logout": "изход", "matches found for": "намерени съвпадения за", "move": "преместване", "name": "име", "new file": "нов файл", "new folder": "нова папка", "new user": "нов потребител", "open": "отворена", "open in new tab": "отвори в нов раздел", "overlay": "наслагване", "password": "парола", "quality": "качество", "reload": "презареждане", "rename": "преименувай", "resize and compress images": "преоразмеряване и компресиране на изображения", "rows": "редове", "save": "запази", "select all": "изберете всички", "selection mode": "режим на избор", "settings": "настройки", "show info": "покажи информация", "shuffle": "разбъркайте", "size": "размер", "sort": "подреди", "space": "място", "uniform": "симетрично", "unzip": "разархивирайте", "upload": "качи", "use image": "изображение", "username": "потребителско име", "width": "ширина", "you were logged out": "бяхте излезли от системата", "zip": "цип", "zoom": "увеличи" } ================================================ FILE: lang/bn.json ================================================ { "archive": "", "blocks": "ব্লক", "cancel": "বাতিল করুন", "columns": "কলাম", "copied to clipboard": "", "copy": "কপি", "copy link": "লিঙ্ক কপি করুন", "copy links": "", "copy text": "টেক্সট কপি করুন", "date": "তারিখ", "delete": "মুছে ফেলা", "details": "বিস্তারিত", "directory is empty": "ডিরেক্টরিটি খালি", "download": "ডাউনলোড", "duplicate": "নকল", "error": "ত্রুটি", "fail": "ব্যর্থ", "file": "ফাইল", "files": "ফাইলস", "filter": "ফিল্টার", "folder": "ফোল্ডার", "folders": "ফোল্ডার", "from clipboard": "", "google maps": "গুগল ম্যাপস", "grid": "গ্রিড", "height": "উচ্চতা", "home": "", "image": "", "imagelist": "চিত্র তালিকা", "images": "চিত্র", "invalid": "", "invalid login": "অবৈধ লগইন", "is not writeable": "", "kind": "ধরন", "language": "ভাষা", "layout": "গঠন", "list": "তালিকা", "loading": "লোডিং", "login": "লগইন", "logout": "লগআউট", "matches found for": "এর জন্য ম্যাচ পাওয়া গেছে", "move": "সরান", "name": "নাম", "new file": "নতুন ফাইল", "new folder": "নতুন ফোল্ডার", "new user": "", "open": "খোলা", "open in new tab": "নতুন ট্যাবে খুলুন", "overlay": "ওভারলে", "password": "পাসওয়ার্ড", "quality": "গুণমান", "reload": "", "rename": "নাম পরিবর্তন করা হয়েছে", "resize and compress images": "চিত্রগুলির আকার পরিবর্তন করুন এবং সংকুচিত করুন", "rows": "সারি", "save": "সংরক্ষণ", "select all": "", "selection mode": "", "settings": "", "show info": "তথ্য দেখুন", "shuffle": "এলোমেলো", "size": "সাইজ", "sort": "সাজান", "space": "স্পেস", "uniform": "একক", "unzip": "আনজিপ করুন", "upload": "আপলোড", "use image": "চিত্র ব্যবহার করুন", "username": "ব্যবহারকারীর নাম", "width": "প্রস্থ", "you were logged out": "তুমি লগ আউট হয়ে গেছো।", "zip": "জিপ", "zoom": "জুম" } ================================================ FILE: lang/cs.json ================================================ { "archive": "archiv", "blocks": "Bloky", "cancel": "Zrušit", "columns": "Sloupce", "copied to clipboard": "zkopírováno do schránky", "copy": "kopírovat", "copy link": "Kopírovat odkaz", "copy links": "kopírovat odkazy", "copy text": "Kopírovat text", "date": "Datum", "delete": "Smazat", "details": "podrobnosti", "directory is empty": "Složka je prázdná", "download": "Stáhnout", "duplicate": "duplicitní", "error": "Chyba", "fail": "Chyba systému", "file": "soubor", "files": "Soubory", "filter": "filtr", "folder": "složku", "folders": "Složky", "from clipboard": "ze schránky", "google maps": "Mapy Google", "grid": "Mřížka", "height": "výška", "home": "home", "image": "obrázek", "imagelist": "Seznam obrázků", "images": "Obrázky", "invalid": "neplatný", "invalid login": "neplatné přihlášení", "is not writeable": "není zapisovatelný", "kind": "typ", "language": "Jazyk", "layout": "Rozvržení", "list": "Seznam", "loading": "Nahrávám", "login": "Přihlášení", "logout": "Odhlásit", "matches found for": "odpovídá vyrazu", "move": "přesunout", "name": "Jméno", "new file": "Nový soubor", "new folder": "Nová složka", "new user": "nový uživatel", "open": "otevřená", "open in new tab": "Otevřít v nové záložce", "overlay": "překrytí", "password": "heslo", "quality": "kvalitní", "reload": "znovu načíst", "rename": "Přejmenovat", "resize and compress images": "měnit velikost a komprimovat obrázky", "rows": "Řady", "save": "Uložit", "select all": "vybrat vše", "selection mode": "režim výběru", "settings": "nastavení", "show info": "Zobrazit informace", "shuffle": "zamíchat", "size": "Velikost", "sort": "Řazení", "space": "Mezera", "uniform": "Poměrné", "unzip": "rozbalit", "upload": "Nahrát", "use image": "použít obrázek", "username": "uživatelské jméno", "width": "šířka", "you were logged out": "byli jste odhlášeni", "zip": "zip", "zoom": "Zvětšit" } ================================================ FILE: lang/da.json ================================================ { "archive": "arkiv", "blocks": "bloker", "cancel": "afbryd", "columns": "kolonner", "copied to clipboard": "kopieret til udklipsholder", "copy": "kopi", "copy link": "kopier link", "copy links": "kopier links", "copy text": "kopier tekst", "date": "dato", "delete": "slet", "details": "detaljer", "directory is empty": "mappen er tom", "download": "hent", "duplicate": "dupliker", "error": "fejl", "fail": "fejl", "file": "fil", "files": "filer", "filter": "filtrer", "folder": "mappe", "folders": "mapper", "from clipboard": "fra udklipsholder", "google maps": "google maps", "grid": "gitter", "height": "højde", "home": "hjem", "image": "billede", "imagelist": "billedliste", "images": "billeder", "invalid": "ugyldig", "invalid login": "Ugyldigt login", "is not writeable": "er ikke skrivbar", "kind": "filtype", "language": "sprog", "layout": "layout", "list": "liste", "loading": "indlæser", "login": "log på", "logout": "log ud", "matches found for": "match fundet for", "move": "flyt", "name": "navn", "new file": "ny fil", "new folder": "ny mappe", "new user": "ny bruger", "open": "åben", "open in new tab": "åbn i ny fane", "overlay": "Overlay", "password": "Adgangskode", "quality": "kvalitet", "reload": "genindlæs", "rename": "omdøb", "resize and compress images": "ændre størrelse og komprimere billeder", "rows": "rækker", "save": "gem", "select all": "Vælg alle", "selection mode": "Valgtilstand", "settings": "Indstillinger", "show info": "vis info", "shuffle": "blande", "size": "størrelse", "sort": "sortér", "space": "afstand", "uniform": "form", "unzip": "pak ud", "upload": "upload", "use image": "brug billede", "username": "brugernavn", "width": "bredde", "you were logged out": "du blev logget ud", "zip": "zip", "zoom": "zoom" } ================================================ FILE: lang/de.json ================================================ { "archive": "Archiv", "blocks": "Blöcke", "cancel": "Abbrechen", "columns": "Spalten", "copied to clipboard": "in die Zwischenablage kopiert", "copy": "kopieren", "copy link": "Link kopieren", "copy links": "Links kopieren", "copy text": "Text kopieren", "date": "Datum", "delete": "löschen", "details": "Einzelheiten", "directory is empty": "Verzeichnis ist leer", "download": "download", "duplicate": "duplizieren", "error": "Fehler", "fail": "schlug fehl", "file": "datei", "files": "Dateien", "filter": "Filter", "folder": "ordner", "folders": "Verzeichnis", "from clipboard": "aus der Zwischenablage", "google maps": "Google Maps", "grid": "Raster", "height": "Höhe", "home": "home", "image": "Bild", "imagelist": "Liste mit Vorschaubildern", "images": "Bilder", "invalid": "ungültig", "invalid login": "Ungültige Anmeldung", "is not writeable": "ist nicht beschreibbar", "kind": "Typ", "language": "Sprache", "layout": "Layout", "list": "Liste", "loading": "wird geladen", "login": "einloggen", "logout": "ausloggen", "matches found for": "Übereinstimmungen gefunden für", "move": "verschieben", "name": "Name", "new file": "neue Datei", "new folder": "neuer Ordner", "new user": "Neuer Benutzer", "open": "öffnen", "open in new tab": "in neuem Tab öffnen", "overlay": "überlagern", "password": "Passwort", "quality": "Qualität", "reload": "neu laden", "rename": "umbenennen", "resize and compress images": "Bilder skalieren und komprimieren", "rows": "Zeilen", "save": "speichern", "select all": "alles auswählen", "selection mode": "Auswahlmodus", "settings": "Einstellungen", "show info": "Informationen", "shuffle": "mischen", "size": "Größe", "sort": "sortieren", "space": "Abstand", "uniform": "gleichmäßig", "unzip": "entpacken", "upload": "hochladen", "use image": "verwende das Bild", "username": "benutzername", "width": "Breite", "you were logged out": "Sie wurden abgemeldet", "zip": "zip", "zoom": "Zoom" } ================================================ FILE: lang/el.json ================================================ { "archive": "αρχείο", "blocks": "μπλοκ", "cancel": "ακυρώστε", "columns": "στήλες", "copied to clipboard": "αντιγραφή στο πρόχειρο", "copy": "αντιγραφή", "copy link": "αντιγραφή συνδέσμου", "copy links": "αντιγραφή συνδέσμων", "copy text": "αντιγραφή κειμένου", "date": "ημερομηνία", "delete": "διαγραφή", "details": "λεπτομέρειες", "directory is empty": "ο κατάλογος είναι άδειος", "download": "download", "duplicate": "διπλότυπο", "error": "σφάλμα", "fail": "fail", "file": "αρχείο", "files": "αρχεία", "filter": "φίλτρο", "folder": "φάκελος", "folders": "φάκελοι", "from clipboard": "από το πρόχειρο", "google maps": "χάρτες της Google", "grid": "πλέγμα", "height": "ύψος", "home": "home", "image": "εικόνα", "imagelist": "imagelist", "images": "εικόνες", "invalid": "άκυρο", "invalid login": "άκυρη σύνδεση", "is not writeable": "δεν είναι εγγράψιμο", "kind": "είδος", "language": "γλώσσα", "layout": "διάταξη", "list": "λίστα", "loading": "φόρτωση", "login": "Σύνδεση", "logout": "αποσύνδεση", "matches found for": "ταυτοποιήσεις που βρέθηκαν για", "move": "move", "name": "όνομα", "new file": "νέο αρχείο", "new folder": "νέος φάκελος", "new user": "νέος χρήστης", "open": "ανοίξτε το", "open in new tab": "άνοιγμα σε νέα καρτέλα", "overlay": "επικάλυψη", "password": "κωδικός πρόσβασης", "quality": "ποιότητα", "reload": "reload", "rename": "μετονομασία", "resize and compress images": "αλλαγή μεγέθους και συμπίεση εικόνων", "rows": "σειρές", "save": "αποθήκευση", "select all": "επιλέξτε όλα", "selection mode": "λειτουργία επιλογής", "settings": "ρυθμίσεις", "show info": "Εμφάνιση πληροφοριών", "shuffle": "ανακάτεμα", "size": "μέγεθος", "sort": "ταξινόμηση", "space": "space", "uniform": "ομοιόμορφη", "unzip": "unzip", "upload": "ανεβάστε το", "use image": "χρήση εικόνας", "username": "όνομα χρήστη", "width": "πλάτος", "you were logged out": "αποσυνδεθήκατε", "zip": "zip", "zoom": "μεγέθυνση" } ================================================ FILE: lang/en.json ================================================ { "archive": "", "blocks": "", "cancel": "", "columns": "", "copied to clipboard": "", "copy": "", "copy link": "", "copy links": "", "copy text": "", "date": "", "delete": "", "details": "", "directory is empty": "", "download": "", "duplicate": "", "error": "", "fail": "", "file": "", "files": "", "filter": "", "folder": "", "folders": "", "from clipboard": "", "google maps": "", "grid": "", "height": "", "home": "", "image": "", "imagelist": "", "images": "", "invalid": "", "invalid login": "", "is not writeable": "", "kind": "", "language": "", "layout": "", "list": "", "loading": "", "login": "", "logout": "", "matches found for": "", "move": "", "name": "", "new file": "", "new folder": "", "new user": "", "open": "", "open in new tab": "", "overlay": "", "password": "", "quality": "", "reload": "", "rename": "", "resize and compress images": "", "rows": "", "save": "", "select all": "", "selection mode": "", "settings": "", "show info": "", "shuffle": "", "size": "", "sort": "", "space": "", "uniform": "", "unzip": "", "upload": "", "use image": "", "username": "", "width": "", "you were logged out": "", "zip": "", "zoom": "" } ================================================ FILE: lang/es.json ================================================ { "archive": "archivo", "blocks": "bloques", "cancel": "cancelar", "columns": "columnas", "copied to clipboard": "copiado al portapapeles", "copy": "copiar", "copy link": "copiar link", "copy links": "copiar enlaces", "copy text": "copiar texto", "date": "fecha", "delete": "borrar", "details": "detalles", "directory is empty": "directorio vacío", "download": "descargar", "duplicate": "duplicar", "error": "error", "fail": "falla", "file": "archivo", "files": "archivos", "filter": "filtros", "folder": "carpeta", "folders": "carpetas", "from clipboard": "desde el portapapeles", "google maps": "google maps", "grid": "cuadrícula", "height": "altura", "home": "inicio", "image": "imagen", "imagelist": "lista de imágenes", "images": "imágenes", "invalid": "inválido", "invalid login": "inicio de sesión no válido", "is not writeable": "no se puede escribir", "kind": "clase", "language": "lenguaje", "layout": "diseño", "list": "lista", "loading": "leyendo", "login": "iniciar sesión", "logout": "desconectarse", "matches found for": "coincidencias para", "move": "mover", "name": "nombre", "new file": "nuevo archivo", "new folder": "nueva carpeta", "new user": "nuevo usuario", "open": "abrir", "open in new tab": "abrir en nueva pestaña", "overlay": "cubrir", "password": "contraseña", "quality": "calidad", "reload": "recargar", "rename": "cambiar nombre", "resize and compress images": "redimensionar y comprimir imágenes", "rows": "filas", "save": "guardar", "select all": "seleccionar todo", "selection mode": "modo de selección", "settings": "ajustes", "show info": "mostrar información", "shuffle": "mezclar", "size": "tamaño", "sort": "ordenar", "space": "espacio", "uniform": "uniforme", "unzip": "descomprimir", "upload": "subir", "use image": "usar la imagen", "username": "nombre de usuario", "width": "ancho", "you were logged out": "se ha cerrado la sesión", "zip": "zip", "zoom": "zoom" } ================================================ FILE: lang/et.json ================================================ { "archive": "arhiiv", "blocks": "plokid", "cancel": "tühistada", "columns": " veerud ", "copied to clipboard": "kopeeritud lõikelauale", "copy": "kopeeri", "copy link": " kopeeri link", "copy links": "linkide kopeerimine", "copy text": " kopeeri tekst", "date": " kuupäev ", "delete": "kustuta", "details": "üksikasjad", "directory is empty": " kataloog on tühi ", "download": " lae alla", "duplicate": "dubleerida", "error": "viga", "fail": "viga", "file": "faili", "files": "failid", "filter": "filter", "folder": "kaust", "folders": "kaustad", "from clipboard": "lõikelauast", "google maps": "google maps", "grid": " ruudustik", "height": "kõrgus", "home": "home", "image": "pilt", "imagelist": "pildiloend", "images": "pildid", "invalid": "kehtetu", "invalid login": "vigane sisselogimine", "is not writeable": "ei ole kirjutatav", "kind": "tüüp", "language": "keel", "layout": "paigutus", "list": "loend", "loading": "laetakse", "login": "logi sisse", "logout": "logi välja", "matches found for": "leitud vastet otsingule", "move": "teisaldage", "name": "nimi", "new file": "uus fail", "new folder": "uus kaust", "new user": "uus kasutaja", "open": "ava", "open in new tab": "ava uuel vahelehel", "overlay": "ülekate", "password": "parool", "quality": "kvaliteet", "reload": "laadige uuesti", "rename": "ümber nimetada", "resize and compress images": "piltide suuruse muutmine ja tihendamine", "rows": "read", "save": "salvesta", "select all": "vali kõik", "selection mode": "valikurežiim", "settings": "seaded", "show info": "näita teavet", "shuffle": "segamine", "size": "suurus", "sort": "sorteeri", "space": "tühik", "uniform": "ühtlane", "unzip": "unzip", "upload": "lae üles", "use image": "kasuta pilti", "username": "kasutajanimi", "width": "laius", "you were logged out": "teid logiti välja", "zip": "zip", "zoom": "suum" } ================================================ FILE: lang/fi.json ================================================ { "archive": "arkisto", "blocks": "lohkot", "cancel": "peruuta", "columns": "columns", "copied to clipboard": "kopioitu leikepöydälle", "copy": "kopioi", "copy link": "kopioi linkki", "copy links": "kopioi linkkejä", "copy text": "kopioi tekstiä", "date": "päivämäärä", "delete": "poista", "details": "details", "directory is empty": "hakemisto on tyhjä", "download": "lataa", "duplicate": "kopioi", "error": "virhe", "fail": "fail", "file": "tiedosto", "files": "tiedostot", "filter": "suodatin", "folder": "kansio", "folders": "kansiot", "from clipboard": "leikepöydästä", "google maps": "Google Maps", "grid": "grid", "height": "korkeus", "home": "home", "image": "kuva", "imagelist": "imagelist", "images": "kuvat", "invalid": "virheellinen", "invalid login": "virheellinen kirjautuminen", "is not writeable": "ei ole kirjoitettavissa", "kind": "laji", "language": "kieli", "layout": "layout", "list": "lista", "loading": "lataaminen", "login": "kirjaudu sisään", "logout": "uloskirjautuminen", "matches found for": "matches found for", "move": "move", "name": "nimi", "new file": "uusi tiedosto", "new folder": "uusi kansio", "new user": "uusi käyttäjä", "open": "avaa", "open in new tab": "avaa uusi välilehti", "overlay": "päällekkäin", "password": "salasana", "quality": "laatu", "reload": "lataa uudelleen", "rename": "uudelleennimeäminen", "resize and compress images": "Kuvien koon muuttaminen ja pakkaaminen", "rows": "rivit", "save": "tallenna", "select all": "valitse kaikki", "selection mode": "valintatila", "settings": "asetukset", "show info": "Näytä tiedot", "shuffle": "sekoita", "size": "koko", "sort": "lajittele", "space": "space", "uniform": "yhtenäinen", "unzip": "purkaa", "upload": "lataa", "use image": "käytä kuvaa", "username": "käyttäjätunnus", "width": "leveys", "you were logged out": "sinut on kirjauduttu ulos", "zip": "zip", "zoom": "zoomaa" } ================================================ FILE: lang/fr.json ================================================ { "archive": "archive", "blocks": "blocs", "cancel": "Annuler", "columns": "colonnes", "copied to clipboard": "copié dans le presse-papiers", "copy": "copier", "copy link": "copier le lien", "copy links": "copier des liens", "copy text": "copier le texte", "date": "date", "delete": "supprimer", "details": "détails", "directory is empty": "le répertoire est vide", "download": "télécharger", "duplicate": "dupliquer", "error": "erreur", "fail": "a échoué", "file": "fichier", "files": "fichiers", "filter": "filtrer", "folder": "dossier", "folders": "dossiers", "from clipboard": "du presse-papiers", "google maps": "google maps", "grid": "grille", "height": "la taille", "home": "home", "image": "image", "imagelist": "liste d'images", "images": "images", "invalid": "invalide", "invalid login": "connexion non valide", "is not writeable": "n'est pas accessible en écriture", "kind": "genre", "language": "langue", "layout": "disposition", "list": "liste", "loading": "chargement", "login": "connexion", "logout": "déconnexion", "matches found for": "correspondances trouvées pour", "move": "déplacer", "name": "nom", "new file": "nouveau fichier", "new folder": "nouveau dossier", "new user": "nouvel utilisateur", "open": "ouvrir", "open in new tab": "ouvrir dans un nouvel onglet", "overlay": "recouvrir", "password": "mot de passe", "quality": "qualité", "reload": "recharger", "rename": "renommer", "resize and compress images": "redimensionner et compresser les images", "rows": "rangée", "save": "sauvegarder", "select all": "sélectionner tout", "selection mode": "mode de sélection", "settings": "paramètres", "show info": "affichage informations", "shuffle": "mélanger", "size": "taille", "sort": "tri", "space": "espace", "uniform": "uniforme", "unzip": "décompresser", "upload": "envoyer", "use image": "utiliser l'image", "username": "nom d'utilisateur", "width": "largeur", "you were logged out": "vous avez été déconnecté", "zip": "zip", "zoom": "zoom" } ================================================ FILE: lang/hu.json ================================================ { "archive": "archívum", "blocks": "blokkok", "cancel": "mégsem", "columns": "oszlopok", "copied to clipboard": "vágólapra másolva", "copy": "másolás", "copy link": "link másolása", "copy links": "linkek másolása", "copy text": "szöveg másolása", "date": "dátum", "delete": "törlés", "details": "részletek", "directory is empty": "könyvtár üres", "download": "letöltés", "duplicate": "megkettőzése", "error": "hiba", "fail": "kudarcot vall", "file": "fájl", "files": "szűrő", "filter": "szűrő", "folder": "könyvtár", "folders": "mappák", "from clipboard": "a vágólapról", "google maps": "google térkép", "grid": "rács", "height": "magasság", "home": "home", "image": "kép", "imagelist": "képlista", "images": "képek", "invalid": "érvénytelen", "invalid login": "érvénytelen bejelentkezés", "is not writeable": "nem írható", "kind": "kedves", "language": "nyelv", "layout": "elrendezés", "list": "lista", "loading": "betöltés", "login": "bejelentkezés", "logout": "kijelentkezés", "matches found for": "találat a következőre:", "move": "mozgatás", "name": "név", "new file": "új fájl", "new folder": "új mappa", "new user": "új felhasználó", "open": "megnyitás", "open in new tab": "nyissa meg az új lapon", "overlay": "átfedés", "password": "jelszó", "quality": "minőség", "reload": "újratöltés", "rename": "átnevezés", "resize and compress images": "átméretezni és tömöríteni a képeket", "rows": "sorok", "save": "mentés", "select all": "Válasszon ki mindent", "selection mode": "kiválasztási mód", "settings": "beállítások", "show info": "mutasd az információkat", "shuffle": "keverése", "size": "méret", "sort": "fajta", "space": "tér", "uniform": "egyenruha", "unzip": "kitömörítés", "upload": "feltöltés", "use image": "kép", "username": "felhasználónév", "width": "szélesség", "you were logged out": "kijelentkeztél", "zip": "zip", "zoom": "zoomolás" } ================================================ FILE: lang/id.json ================================================ { "archive": "arsip", "blocks": "blok", "cancel": "batalkan", "columns": "kolom", "copied to clipboard": "disalin ke papan klip", "copy": "menyalin", "copy link": "salin tautan", "copy links": "salin tautan", "copy text": "menyalin teks", "date": "tanggal", "delete": "hapus", "details": "detail", "directory is empty": "direktori kosong", "download": "Unduh", "duplicate": "duplikat", "error": "kesalahan", "fail": "gagal", "file": "file", "files": "file", "filter": "filter", "folder": "folder", "folders": "folder", "from clipboard": "dari papan klip", "google maps": "peta google", "grid": "kisi-kisi", "height": "tinggi", "home": "rumah", "image": "gambar", "imagelist": "daftar gambar", "images": "gambar", "invalid": "tidak valid", "invalid login": "login tidak valid", "is not writeable": "tidak dapat ditulis", "kind": "jenis", "language": "bahasa", "layout": "tata letak", "list": "daftar", "loading": "memuat", "login": "masuk", "logout": "keluar", "matches found for": "kecocokan ditemukan untuk", "move": "memindahkan", "name": "nama", "new file": "file baru", "new folder": "folder baru", "new user": "pengguna baru", "open": "buka", "open in new tab": "buka di tab baru", "overlay": "hamparan", "password": "kata sandi", "quality": "kualitas", "reload": "muat ulang", "rename": "ganti nama", "resize and compress images": "mengubah ukuran dan mengompres gambar", "rows": "baris", "save": "simpan", "select all": "pilih semua", "selection mode": "mode pemilihan", "settings": "pengaturan", "show info": "tampilkan info", "shuffle": "kocok", "size": "ukuran", "sort": "mengurutkan", "space": "spasi", "uniform": "seragam", "unzip": "unzip", "upload": "unggah", "use image": "gunakan gambar", "username": "nama pengguna", "width": "lebar", "you were logged out": "Anda telah keluar dari aplikasi", "zip": "zip", "zoom": "memperbesar" } ================================================ FILE: lang/it.json ================================================ { "archive": "archivio", "blocks": "blocchi", "cancel": "annulla", "columns": "colonne", "copied to clipboard": "copiato negli appunti", "copy": "copia", "copy link": "copia link", "copy links": "copiare i link", "copy text": "copia testo", "date": "data", "delete": "elimina", "details": "dettagli", "directory is empty": "la cartella è vuota", "download": "scarica", "duplicate": "duplica", "error": "errore", "fail": "non riuscito", "file": "file", "files": "file", "filter": "filtro", "folder": "cartella", "folders": "cartelle", "from clipboard": "dagli appunti", "google maps": "google maps", "grid": "griglia", "height": "altezza", "home": "casa", "image": "immagine", "imagelist": "elenco immagini", "images": "immagini", "invalid": "non valido", "invalid login": "login non valido", "is not writeable": "non è scrivibile", "kind": "tipo", "language": "lingua", "layout": "disposizione", "list": "elenco", "loading": "loading", "login": "accedi", "logout": "disconnettiti", "matches found for": "occorrenze per", "move": "sposta", "name": "nome", "new file": "nuovo file", "new folder": "nuova cartella", "new user": "nuovo utente", "open": "apri", "open in new tab": "apri in una nuova scheda", "overlay": "sovrapposizione", "password": "password", "quality": "qualità", "reload": "ricaricare", "rename": "rinomina", "resize and compress images": "ridimensionare e comprimere le immagini", "rows": "righe", "save": "salva", "select all": "selezionare tutti", "selection mode": "modalità di selezione", "settings": "impostazioni", "show info": "mostra info", "shuffle": "mescolare", "size": "dimensione", "sort": "ordina", "space": "spazio", "uniform": "uniforma", "unzip": "decomprimi", "upload": "carica", "use image": "usa l'immagine", "username": "nome utente", "width": "larghezza", "you were logged out": "siete stati disconnessi", "zip": "zip", "zoom": "ingrandisci" } ================================================ FILE: lang/ja.json ================================================ { "archive": "アーカイブ", "blocks": "ブロック", "cancel": "キャンセル", "columns": "列", "copied to clipboard": "クリップボードにコピー", "copy": "コピー", "copy link": "リンクをコピー", "copy links": "リンクをコピーする", "copy text": "テキストをコピー", "date": "日", "delete": "削除", "details": "詳細", "directory is empty": "ディレクトリが空です", "download": "ダウンロード", "duplicate": "複製", "error": "エラー", "fail": "失敗", "file": "ファイル", "files": "ファイル", "filter": "フィルタ", "folder": "フォルダ", "folders": "フォルダ", "from clipboard": "クリップボードから", "google maps": "Googleマップ", "grid": "グリッド", "height": "身長", "home": "ホーム", "image": "画像", "imagelist": "画像リスト", "images": "画像", "invalid": "無効", "invalid login": "無効なログイン", "is not writeable": "書き込み不可", "kind": "種類", "language": "言語", "layout": "レイアウト", "list": "リスト", "loading": "読み込み中", "login": "ログイン", "logout": "ログアウト", "matches found for": "一致するものが見つかりました", "move": "移動", "name": "名前", "new file": "新しいファイル", "new folder": "新しいフォルダ", "new user": "新規ユーザー", "open": "開く", "open in new tab": "新しいタブで開く", "overlay": "かぶせる", "password": "パスワード", "quality": "品質", "reload": "リロード", "rename": "名前の変更", "resize and compress images": "画像のサイズ変更と圧縮", "rows": "行", "save": "保存", "select all": "すべて選択", "selection mode": "セレクションモード", "settings": "設定", "show info": "情報を表示", "shuffle": "シャッフル", "size": "サイズ", "sort": "並べ替え", "space": "スペース", "uniform": "揃える", "unzip": "解凍", "upload": "アップロード", "use image": "使用画像", "username": "ユーザー名", "width": "幅", "you were logged out": "ログアウトされました", "zip": "zip", "zoom": "ズーム" } ================================================ FILE: lang/ko.json ================================================ { "archive": "아카이브", "blocks": "블록형", "cancel": "취소", "columns": "세로형", "copied to clipboard": "클립보드에 복사됨", "copy": "복사", "copy link": "링크 복사", "copy links": "링크 복사", "copy text": "글자 복사", "date": "날짜", "delete": "삭제", "details": "세부", "directory is empty": "디렉토리가 비어 있습니다", "download": "다운로드", "duplicate": "복제하다", "error": "오류", "fail": "실패", "file": "파일", "files": "파일", "filter": "찾다", "folder": "폴더", "folders": "폴더", "from clipboard": "클립보드에서", "google maps": "구글지도", "grid": "앨범형", "height": "키", "home": "home", "image": "이미지", "imagelist": "이미지목록", "images": "이미지", "invalid": "유효하지 않은", "invalid login": "잘못된 로그인", "is not writeable": "는 쓰기 불가능합니다.", "kind": "종류", "language": "언어", "layout": "레이아웃", "list": "목록보기", "loading": "로딩", "login": "로그인", "logout": "로그 아웃", "matches found for": "개의 일치하는 항목을 찾았습니다.", "move": "이동", "name": "이름", "new file": "새로운 파일", "new folder": "새 폴더", "new user": "새 사용자", "open": "열기", "open in new tab": "새 탭에서 열기", "overlay": "씌우다", "password": "비밀번호", "quality": "품질", "reload": "재로드", "rename": "이름 변경", "resize and compress images": "이미지 크기 조정 및 압축", "rows": "가로형", "save": "저장", "select all": "모두 선택", "selection mode": "선택 모드", "settings": "설정", "show info": "정보 표시", "shuffle": "혼합", "size": "용량", "sort": "정렬", "space": "여백", "uniform": "균일\/대칭", "unzip": "압축 해제", "upload": "업로드", "use image": "이미지 사용", "username": "사용자 이름", "width": "너비", "you were logged out": "로그아웃되었습니다.", "zip": "zip", "zoom": "확대" } ================================================ FILE: lang/ms.json ================================================ { "archive": "arkib", "blocks": "blok", "cancel": "batalkan", "columns": "kolum", "copied to clipboard": "disalin ke papan klip", "copy": "menyalin", "copy link": "salin tautan", "copy links": "salin pautan", "copy text": "menyalin teks", "date": "tarikh", "delete": "padam", "details": "butiran", "directory is empty": "direktori kosong", "download": "muat turun", "duplicate": "duplikasi", "error": "ralat", "fail": "gagal", "file": "file", "files": "file", "filter": "saring", "folder": "folder", "folders": "folder", "from clipboard": "dari papan klip", "google maps": "peta google", "grid": "grid", "height": "tinggi", "home": "laman utama", "image": "imej", "imagelist": "senarai imej", "images": "imej-imej", "invalid": "tidak sah", "invalid login": "log masuk tidak sah", "is not writeable": "tidak dapat ditulis", "kind": "jenis", "language": "bahasa", "layout": "susun atur", "list": "senarai", "loading": "memuat", "login": "log masuk", "logout": "log keluar", "matches found for": "padanan ditemui untuk", "move": "memindahkan", "name": "nama", "new file": "file baru", "new folder": "folder baru", "new user": "pengguna baru", "open": "buka", "open in new tab": "buka di tab baru", "overlay": "tindanan", "password": "kata laluan", "quality": "kualiti", "reload": "muat semula", "rename": "nama semula", "resize and compress images": "mengubah ukuran dan memadat imej", "rows": "baris", "save": "simpan", "select all": "pilih semua", "selection mode": "mode pemilihan", "settings": "aturan", "show info": "tunjuk info", "shuffle": "kocok", "size": "ukuran", "sort": "urutan", "space": "ruang", "uniform": "seragam", "unzip": "unzip", "upload": "muat naik", "use image": "gunakan imej", "username": "nama pengguna", "width": "lebar", "you were logged out": "Anda telah keluar dari aplikasi", "zip": "zip", "zoom": "memperbesar" } ================================================ FILE: lang/nl.json ================================================ { "archive": "archief", "blocks": "blokken", "cancel": "annuleren", "columns": "kolommen", "copied to clipboard": "gekopieerd naar klembord", "copy": "kopiëren", "copy link": "kopieer link", "copy links": "links kopiëren", "copy text": "kopieer tekst", "date": "datum", "delete": "verwijder", "details": "details", "directory is empty": "map is leeg", "download": "download", "duplicate": "dupliceren", "error": "fout", "fail": "fout", "file": "bestand", "files": "bestanden", "filter": "filter", "folder": "map", "folders": "mappen", "from clipboard": "van klembord", "google maps": "google maps", "grid": "raster", "height": "hoogte", "home": "home", "image": "afbeelding", "imagelist": "afbeeldingenlijst", "images": "afbeeldingen", "invalid": "ongeldig", "invalid login": "ongeldige aanmelding", "is not writeable": "is niet beschrijfbaar", "kind": "soort", "language": "taal", "layout": "lay-out", "list": "lijst", "loading": "bezig met laden", "login": "inloggen", "logout": "uitloggen", "matches found for": "overeenkomsten gevonden voor", "move": "verplaatsen", "name": "naam", "new file": "nieuw bestand", "new folder": "nieuwe map", "new user": "nieuwe gebruiker", "open": "openen", "open in new tab": "openen in nieuw tabblad", "overlay": "overlay", "password": "wachtwoord", "quality": "kwaliteit", "reload": "opnieuw laden", "rename": "hernoem", "resize and compress images": "formaat wijzigen en afbeeldingen comprimeren", "rows": "rijen", "save": "opslaan", "select all": "alles selecteren", "selection mode": "selectiemodus", "settings": "instellingen", "show info": "toon info", "shuffle": "schudden", "size": "grootte", "sort": "sorteren", "space": "ruimte", "uniform": "uniform", "unzip": "uitpakken", "upload": "uploaden", "use image": "afbeelding", "username": "gebruikersnaam", "width": "breedte", "you were logged out": "u bent uitgelogd", "zip": "zip", "zoom": "zoom" } ================================================ FILE: lang/no.json ================================================ { "archive": "arkiv", "blocks": "blokker", "cancel": "avbryt", "columns": "kolonner", "copied to clipboard": "kopiert til utklippstavlen", "copy": "kopier", "copy link": "kopier lenke", "copy links": "kopier lenker", "copy text": "kopier tekst", "date": "dato", "delete": "slett", "details": "detaljer", "directory is empty": "mappen er tom", "download": "last ned", "duplicate": "dupliser", "error": "feil", "fail": "feil", "file": "fil", "files": "filer", "filter": "filter", "folder": "mappe", "folders": "mapper", "from clipboard": "fra utklippstavlen", "google maps": "google kart", "grid": "grid", "height": "høyde", "home": "hjem", "image": "bilde", "imagelist": "bildeliste", "images": "bilder", "invalid": "ugyldig", "invalid login": "ugyldig innlogging", "is not writeable": "er ikke skrivbar", "kind": "type", "language": "språk", "layout": "layout", "list": "liste", "loading": "laster", "login": "logg inn", "logout": "logg ut", "matches found for": "treff funnet for", "move": "flytt", "name": "navn", "new file": "ny fil", "new folder": "ny mappe", "new user": "ny bruker", "open": "åpne", "open in new tab": "åpne i ny fane", "overlay": "overlegg", "password": "passord", "quality": "kvalitet", "reload": "last inn på nytt", "rename": "gi nytt navn", "resize and compress images": "endre størrelse og komprimering bilder", "rows": "rader", "save": "lagre", "select all": "velg alle", "selection mode": "valgmodus", "settings": "innstillinger", "show info": "vis info", "shuffle": "stokke", "size": "størelse", "sort": "sorter", "space": "mellomrom", "uniform": "symmetrisk", "unzip": "pakk ut", "upload": "last opp", "use image": "bruk bilde", "username": "brukernavn", "width": "bredde", "you were logged out": "du ble logget ut", "zip": "zip", "zoom": "zoom" } ================================================ FILE: lang/pl.json ================================================ { "archive": "archiwum", "blocks": "bloki", "cancel": "anuluj", "columns": "kolumny", "copied to clipboard": "skopiowane do schowka", "copy": "kopiuj", "copy link": "skopiuj link", "copy links": "kopiowanie linków", "copy text": "skopiuj tekst", "date": "data", "delete": "usuń", "details": "Detale", "directory is empty": "katalog jest pusty", "download": "pobierz", "duplicate": "duplikuj", "error": "błąd", "fail": "niepowodzenie", "file": "plik", "files": "pliki", "filter": "filtr", "folder": "folder", "folders": "katalogi", "from clipboard": "ze schowka", "google maps": "mapy google", "grid": "siatka", "height": "wzrost", "home": "home", "image": "obraz", "imagelist": "lista obrazów", "images": "obrazy", "invalid": "nieprawidłowy", "invalid login": "nieprawidłowe logowanie", "is not writeable": "nie można zapisać", "kind": "typ", "language": "język", "layout": "układ", "list": "lista", "loading": "ładowanie", "login": "login", "logout": "wyloguj", "matches found for": "znalezione dopasowania dla", "move": "przenieś", "name": "nazwa", "new file": "nowy plik", "new folder": "nowy folder", "new user": "nowy użytkownik", "open": "otwórz", "open in new tab": "otwórz w nowej karcie", "overlay": "narzuta", "password": "hasło", "quality": "jakość", "reload": "przeładowanie", "rename": "zmień nazwę", "resize and compress images": "zmieniać rozmiar i kompresować obrazy", "rows": "wiersze", "save": "zapisz", "select all": "wybierz wszystko", "selection mode": "tryb wyboru", "settings": "ustawienia", "show info": "pokaż informacje", "shuffle": "losowo", "size": "rozmiar", "sort": "sortowanie", "space": "odstępy", "uniform": "jednolity", "unzip": "rozpakuj", "upload": "wyślij", "use image": "uzyj obrazka", "username": "nazwa użytkownika", "width": "szerokość", "you were logged out": "zostałeś wylogowany", "zip": "zip", "zoom": "powiększ" } ================================================ FILE: lang/pt.json ================================================ { "archive": "arquivo", "blocks": "blocos", "cancel": "cancelar", "columns": "colunas", "copied to clipboard": "copiado para a área de transferência", "copy": "copiar", "copy link": "copiar link", "copy links": "copiar ligações", "copy text": "copiar texto", "date": "data", "delete": "excluir", "details": "detalhes", "directory is empty": "a pasta está vazia", "download": "baixar", "duplicate": "duplicar", "error": "erro", "fail": "falha", "file": "arquivo", "files": "arquivos", "filter": "filtro", "folder": "pasta", "folders": "pastas", "from clipboard": "da área de transferência", "google maps": "google maps", "grid": "rede", "height": "altura", "home": "Início", "image": "imagem", "imagelist": "lista de imagens", "images": "imagens", "invalid": "inválido", "invalid login": "login inválido", "is not writeable": "não pode ser escrito", "kind": "tipo", "language": "idioma", "layout": "esquema", "list": "lista", "loading": "a carregar", "login": "iniciar sessão", "logout": "sair", "matches found for": "resultados encontrados para", "move": "mover", "name": "nome", "new file": "novo arquivo", "new folder": "nova pasta", "new user": "novo utilizador", "open": "abrir", "open in new tab": "abrir num novo separador", "overlay": "sobreposição", "password": "palavra-passe", "quality": "qualidade", "reload": "recarregar", "rename": "renomear", "resize and compress images": "redimensionar e compactar imagens", "rows": "linhas", "save": "salvar", "select all": "selecionar todos", "selection mode": "modo de seleção", "settings": "definições", "show info": "exibir informações", "shuffle": "embaralhar", "size": "tamanho", "sort": "ordenar", "space": "espaço", "uniform": "uniforme", "unzip": "descompactar os arquivos", "upload": "upload", "use image": "usar imagem", "username": "nome de utilizador", "width": "largura", "you were logged out": "foi terminada a sessão", "zip": "zip", "zoom": "ampliação" } ================================================ FILE: lang/ro.json ================================================ { "archive": "arhivă", "blocks": "blocuri", "cancel": "anulează", "columns": "coloane", "copied to clipboard": "copiat în clipboard", "copy": "copiază", "copy link": "copiază legătură", "copy links": "copiere linkuri", "copy text": "copiază textul", "date": "data", "delete": "șterge", "details": "Detalii", "directory is empty": "directorul este gol", "download": "descarcă", "duplicate": "duplicați", "error": "eroare", "fail": "eșua", "file": "fișier", "files": "fișiere", "filter": "filtru", "folder": "dosar", "folders": "dosare", "from clipboard": "din clipboard", "google maps": "hărți google", "grid": "grilă", "height": "înălţime", "home": "acasă", "image": "imagine", "imagelist": "listă de imagini", "images": "imagini", "invalid": "invalid", "invalid login": "autentificare invalidă", "is not writeable": "nu se poate scrie", "kind": "fel", "language": "limba", "layout": "aspect", "list": "listă", "loading": "se încarcă", "login": "autentificare", "logout": "ieșire", "matches found for": "meciuri găsite pentru", "move": "mută", "name": "denumire", "new file": "fișier nou", "new folder": "folder nou", "new user": "utilizator nou", "open": "deschide", "open in new tab": "deschideți într-o filă nouă", "overlay": "acoperire", "password": "parolă", "quality": "calitate", "reload": "reîncărcați", "rename": "redenumește", "resize and compress images": "redimensionați și comprimați imaginile", "rows": "rânduri", "save": "salvează", "select all": "selectați toate", "selection mode": "modul de selecție", "settings": "setări", "show info": "afișați informații", "shuffle": "amesteca", "size": "dimensiune", "sort": "sortare", "space": "spaţiu", "uniform": "uniformă", "unzip": "decomprimă", "upload": "încarcă", "use image": "imagine", "username": "nume utilizator", "width": "lăţime", "you were logged out": "ați fost deconectat", "zip": "zip", "zoom": "zoom" } ================================================ FILE: lang/ru.json ================================================ { "archive": "архив", "blocks": "блоки", "cancel": "отмена", "columns": "колонки", "copied to clipboard": "скопировано в буфер обмена", "copy": "копировать", "copy link": "копировать ссылку", "copy links": "копировать ссылки", "copy text": "копировать текст", "date": "по дате", "delete": "удалить", "details": "подробности", "directory is empty": "директория пуста", "download": "загрузка", "duplicate": "дублировать", "error": "ошибка", "fail": "ошибка", "file": "файл", "files": "файлы", "filter": "фильтр", "folder": "папка", "folders": "папок", "from clipboard": "из буфера обмена", "google maps": "google maps", "grid": "сетка", "height": "высота", "home": "home", "image": "изображение", "imagelist": "список изображений", "images": "фото", "invalid": "недопустимый", "invalid login": "недействительный логин", "is not writeable": "не доступен для записи", "kind": "тип", "language": "язык", "layout": "макет", "list": "список", "loading": "загрузка", "login": "войти", "logout": "выйти", "matches found for": "найдены совпадениядля", "move": "переместить", "name": "имя", "new file": "новый файл", "new folder": "новая папка", "new user": "новый пользователь", "open": "открыть", "open in new tab": "открыть в новой вкладке", "overlay": "наложение", "password": "пароль", "quality": "качественный", "reload": "перезагрузить", "rename": "переименовать", "resize and compress images": "изменять размер и сжимать изображения", "rows": "ряды", "save": "сохранить", "select all": "выбрать все", "selection mode": "режим выбора", "settings": "настройки", "show info": "показать информацию", "shuffle": "перетасовать", "size": "размер", "sort": "сортировать", "space": "отступы", "uniform": "равномерно", "unzip": "разархивировать", "upload": "загрузить", "use image": "изображение", "username": "имя пользователя", "width": "ширина", "you were logged out": "вы вышли из системы", "zip": "zip", "zoom": "увеличить" } ================================================ FILE: lang/sk.json ================================================ { "archive": "archív", "blocks": "bloky", "cancel": "zrušiť", "columns": "stĺpce", "copied to clipboard": "skopírované do schránky", "copy": "kopírovať", "copy link": "skopírovať odkaz", "copy links": "kopírovať odkazy", "copy text": "skopírovať text", "date": "dátum", "delete": "zmazať", "details": "podrobnosti", "directory is empty": "zložka je prázdna", "download": "stiahnúť", "duplicate": "duplikovať", "error": "chyba", "fail": "zlyhanie", "file": "súbor", "files": "súbory", "filter": "filter", "folder": "priečinok", "folders": "zložky", "from clipboard": "zo schránky", "google maps": "Google mapy", "grid": "mriežka", "height": "výška", "home": "home", "image": "obrázok", "imagelist": "zoznam obrázkov", "images": "obrázky", "invalid": "neplatný", "invalid login": "neplatné prihlásenie", "is not writeable": "nie je zapisovateľný", "kind": "typ", "language": "jazyk", "layout": "rozloženie", "list": "list", "loading": "načítavam", "login": "prihlásiť sa", "logout": "odhlásiť", "matches found for": "nájdených výsledkov pre", "move": "presunúť", "name": "názov", "new file": "nový súbor", "new folder": "nový priečinok", "new user": "nový používateľ", "open": "otvoriť", "open in new tab": "otvoriť na novej karte", "overlay": "prekrytie", "password": "heslo", "quality": "kvality", "reload": "znovu načítať", "rename": "premenovať", "resize and compress images": "meniť veľkosť a komprimovať obrázky", "rows": "riadky", "save": "uložiť", "select all": "vybrať všetky", "selection mode": "režim výberu", "settings": "nastavenia", "show info": "zobraziť informácie", "shuffle": "zamiešať", "size": "veľkosť", "sort": "zoradiť", "space": "miesto", "uniform": "rovnomerne", "unzip": "rozbaliť", "upload": "nahrať", "use image": "použiť obrázok", "username": "užívateľské meno", "width": "šírka", "you were logged out": "boli ste odhlásení", "zip": "ZIP", "zoom": "priblížiť" } ================================================ FILE: lang/sl.json ================================================ { "archive": "arhiv", "blocks": "bloki", "cancel": "preklicati", "columns": "stolpci", "copied to clipboard": "kopiranje v odložišče", "copy": "kopiranje", "copy link": "kopiraj povezavo", "copy links": "kopiranje povezav", "copy text": "kopiranje besedila", "date": "datum", "delete": "izbriši", "details": "podrobnosti", "directory is empty": "imenik je prazen", "download": "prenesi", "duplicate": "podvojitev", "error": "napaka", "fail": "neuspešno", "file": "datoteka", "files": "datoteke", "filter": "filter", "folder": "mapa", "folders": "mape", "from clipboard": "iz odložišča", "google maps": "zemljevidi Google", "grid": "mreža", "height": "višina", "home": "home", "image": "slika", "imagelist": "seznam slik", "images": "slike", "invalid": "neveljavno", "invalid login": "Nepravilna prijava", "is not writeable": "ni mogoče zapisovati", "kind": "vrsta", "language": "jezik", "layout": "postavitev", "list": "seznam", "loading": "nalaganje", "login": "prijava", "logout": "odjava", "matches found for": "Najdene zadetke za", "move": "premakni", "name": "ime", "new file": "nova datoteka", "new folder": "nova mapa", "new user": "nov uporabnik", "open": "odprite", "open in new tab": "odprite v novem zavihku", "overlay": "prekrivanje", "password": "geslo", "quality": "kakovost", "reload": "ponovno naložite", "rename": "preimenovanje", "resize and compress images": "spreminjanje velikosti in stiskanje slik", "rows": "vrstice", "save": "shranite", "select all": "izberite vse", "selection mode": "način izbire", "settings": "nastavitve", "show info": "Prikaži informacije", "shuffle": "premešati", "size": "velikost", "sort": "razvrstiti", "space": "prostor", "uniform": "enotna", "unzip": "Razpakiraj", "upload": "naložite", "use image": "uporaba slike", "username": "uporabniško ime", "width": "širina", "you were logged out": "bili ste odjavljeni", "zip": "zip", "zoom": "povečava" } ================================================ FILE: lang/sv.json ================================================ { "archive": "arkiv", "blocks": "block", "cancel": "avbryt", "columns": "kolumner", "copied to clipboard": "kopieras till urklipp", "copy": "kopiera", "copy link": "kopiera länk", "copy links": "kopiera länkar", "copy text": "kopiera text", "date": "datum", "delete": "radera", "details": "detaljer", "directory is empty": "foldern är tom", "download": "ladda ner", "duplicate": "duplicera", "error": "error", "fail": "misslyckades", "file": "fil", "files": "filer", "filter": "filter", "folder": "mapp", "folders": "mappar", "from clipboard": "från urklipp", "google maps": "google maps", "grid": "rutnät", "height": "höjd", "home": "hem", "image": "bild", "imagelist": "bildlista", "images": "bilder", "invalid": "ogiltigt", "invalid login": "ogiltig inloggning", "is not writeable": "är inte skrivbar", "kind": "sort", "language": "språk", "layout": "design", "list": "lista", "loading": "laddar", "login": "logga in", "logout": "logga ut", "matches found for": "träffar hittade för", "move": "flytta", "name": "namn", "new file": "ny fil", "new folder": "ny mapp", "new user": "ny användare", "open": "öppna", "open in new tab": "öppna i ny flik", "overlay": "överlägg", "password": "Lösenord", "quality": "kvalitet", "reload": "ladda om", "rename": "döp om", "resize and compress images": "ändra storlek och komprimera bilder", "rows": "rader", "save": "spara", "select all": "välj alla", "selection mode": "urvalsläge", "settings": "Inställningar", "show info": "visa info", "shuffle": "blanda", "size": "storlek", "sort": "sortera", "space": "utrymme", "uniform": "enhetlig", "unzip": "packa upp", "upload": "ladda upp", "use image": "använd bild", "username": "Användarnamn", "width": "bredd", "you were logged out": "du var utloggad", "zip": "zip", "zoom": "zooma" } ================================================ FILE: lang/th.json ================================================ { "archive": "", "blocks": "บล็อก", "cancel": "ยกเลิก", "columns": "คอลัมน์", "copied to clipboard": "", "copy": "คัดลอก", "copy link": "คัดลอกลิงค์", "copy links": "", "copy text": "คัดลอกข้อความ", "date": "วันที่", "delete": "ลบ", "details": "รายละเอียด", "directory is empty": "ไดเรกทอรีว่างเปล่า", "download": "ดาวโหลด", "duplicate": "ทำสำเนา", "error": "ข้อผิดพลาด", "fail": "ล้มเหลว", "file": "ไฟล์", "files": "ไฟล์", "filter": "ค้นหา", "folder": "โฟลเดอร์", "folders": "โฟลเดอร์", "from clipboard": "", "google maps": "google maps", "grid": "กริด", "height": "ความสูง", "home": "", "image": "", "imagelist": "รายการภาพ", "images": "ภาพ", "invalid": "", "invalid login": "การเข้าสู่ระบบไม่ถูกต้อง", "is not writeable": "", "kind": "หมวดหมู่", "language": "ภาษา", "layout": "เลย์เอาต์", "list": "รายการ", "loading": "กำลังโหลด", "login": "เข้าสู่ระบบ", "logout": "ออกจากระบบ", "matches found for": "พบรายการที่ตรงกันสำหรับ", "move": "ย้าย", "name": "ชื่อ", "new file": "สร้างไฟล์ใหม่", "new folder": "สร้างแฟ้มใหม่", "new user": "ผู้ใช้ใหม่", "open": "เปิด", "open in new tab": "เปิดในแท็บใหม่", "overlay": "การซ้อนทับ", "password": "รหัสผ่าน", "quality": "คุณภาพ", "reload": "โหลดซ้ำ", "rename": "เปลี่ยนชื่อ", "resize and compress images": "ปรับขนาดและบีบอัดภาพ", "rows": "แถว", "save": "บันทึก", "select all": "", "selection mode": "", "settings": "การตั้งค่า", "show info": "แสดงข้อมูล", "shuffle": "สุ่ม", "size": "ขนาด", "sort": "เรียงลำดับ", "space": "ช่องว่าง", "uniform": "เสมอกัน", "unzip": "แตก zip", "upload": "อัพโหลด", "use image": "ใช้ภาพ", "username": "ชื่อผู้ใช้", "width": "ความกว้าง", "you were logged out": "คุณออกจากระบบแล้ว", "zip": null, "zoom": "ซูม" } ================================================ FILE: lang/tr.json ================================================ { "archive": "arşiv", "blocks": "bloklar", "cancel": "iptal et", "columns": "sütunlar", "copied to clipboard": "panoya kopyalandı", "copy": "kopya", "copy link": "bağlantıyı kopyala", "copy links": "kopya bağlantıları", "copy text": "metin kopyala", "date": "Tarih", "delete": "silme", "details": "Detaylar", "directory is empty": "dizin boş", "download": "İndir", "duplicate": "çoğaltmak", "error": "hata", "fail": "başarısız", "file": "dosya", "files": "dosyalar", "filter": "filtre", "folder": "klasör", "folders": "klasörler", "from clipboard": "panodan", "google maps": "google haritalar", "grid": "ızgara", "height": "yükseklik", "home": "ev", "image": "görüntü", "imagelist": "imagelist", "images": "görüntüler", "invalid": "geçersiz", "invalid login": "geçersi̇z oturum açma", "is not writeable": "yazılabilir değil", "kind": "nazik", "language": "DİL", "layout": "düzen", "list": "Liste", "loading": "yükleme", "login": "giriş", "logout": "oturum kapatma", "matches found for": "için eşleşmeler bulundu", "move": "hareket et", "name": "isim", "new file": "yeni dosya", "new folder": "yeni klasör", "new user": "yeni kullanıcı", "open": "açık", "open in new tab": "yeni sekmede aç", "overlay": "kaplama", "password": "şifre", "quality": "Kalite", "reload": "yeniden yükle", "rename": "yeniden adlandır", "resize and compress images": "görüntüleri yeniden boyutlandırma ve sıkıştırma", "rows": "sıralar", "save": "Kaydet", "select all": "tümünü seç", "selection mode": "seçim modu", "settings": "ayarlar", "show info": "gösteri̇ bi̇lgi̇si̇", "shuffle": "shuffle", "size": "boyut", "sort": "sırala", "space": "uzay", "uniform": "üniforma", "unzip": "unzip", "upload": "Yükle", "use image": "görüntü kullan", "username": "kullanıcı adı", "width": "genişlik", "you were logged out": "oturumunuz kapatıldı", "zip": "zip", "zoom": "yakınlaştırma" } ================================================ FILE: lang/uk.json ================================================ { "archive": "архів", "blocks": "блоки", "cancel": "скасувати", "columns": "колонки", "copied to clipboard": "скопійовано до буфера обміну", "copy": "копія", "copy link": "скопіювати посилання", "copy links": "скопіювати посилання", "copy text": "скопіювати текст", "date": "дата", "delete": "видалити", "details": "деталі", "directory is empty": "каталог порожній", "download": "завантажити", "duplicate": "дублювати", "error": "помилка", "fail": "невдача", "file": "файл", "files": "файли", "filter": "фільтр", "folder": "папка", "folders": "папки", "from clipboard": "з буфера обміну", "google maps": "карти Google", "grid": "сітка", "height": "висота", "home": "домашній", "image": "зображення", "imagelist": "список зображень", "images": "зображення", "invalid": "невірне", "invalid login": "невірний логін", "is not writeable": "не доступний для запису", "kind": "вид", "language": "мова", "layout": "макет", "list": "список", "loading": "завантаження", "login": "логін", "logout": "вихід", "matches found for": "знайдено збігів за запитом", "move": "переміщення", "name": "ім'я", "new file": "новий файл", "new folder": "нова папка", "new user": "новий користувач", "open": "відкрити", "open in new tab": "відкрити в новій вкладці", "overlay": "накладання", "password": "пароль", "quality": "якість", "reload": "перезавантажити", "rename": "перейменувати", "resize and compress images": "змінити розмір і стиснути зображення", "rows": "ряди", "save": "зберегти", "select all": "вибрати всі", "selection mode": "режим вибору", "settings": "налаштування", "show info": "показати інформацію", "shuffle": "перетасувати", "size": "розмір", "sort": "сортування", "space": "проміжок", "uniform": "рівномірний", "unzip": "розархівувати", "upload": "завантажити", "use image": "використовувати зображення", "username": "ім'я користувача", "width": "ширина", "you were logged out": "ви вийшли з системи", "zip": "zip", "zoom": "збільшити" } ================================================ FILE: lang/zh.json ================================================ { "archive": "存档", "blocks": "平铺", "cancel": "取消", "columns": "瀑布流", "copied to clipboard": "复制到剪贴板", "copy": "复制", "copy link": "复制链接", "copy links": "复制链接", "copy text": "复制文字", "date": "日期", "delete": "删除", "details": "详情", "directory is empty": "没有文件", "download": "下载", "duplicate": "复制", "error": "错误", "fail": "失败", "file": "文件", "files": "文件", "filter": "过滤", "folder": "文件夹", "folders": "文件夹", "from clipboard": "从剪贴板", "google maps": "地图", "grid": "格子", "height": "高度", "home": "主页", "image": "图像", "imagelist": "图片列表", "images": "图片", "invalid": "无效", "invalid login": "登录无效", "is not writeable": "不可写", "kind": "类型", "language": "语言", "layout": "布局", "list": "列表", "loading": "加载中", "login": "登录", "logout": "退出", "matches found for": "匹配项", "move": "移动", "name": "文件名", "new file": "新文件", "new folder": "新文件夹", "new user": "新用户", "open": "打开", "open in new tab": "新窗口打开", "overlay": "水印", "password": "密码", "quality": "质量", "reload": "重新加载", "rename": "重命名", "resize and compress images": "调整大小和压缩图像", "rows": "自适应", "save": "保存", "select all": "全部选择", "selection mode": "选择模式", "settings": "设置", "show info": "更多信息", "shuffle": "随机", "size": "大小", "sort": "排序", "space": "间距", "uniform": "填充", "unzip": "解压", "upload": "上传", "use image": "使用图片", "username": "用户名", "width": "宽度", "you were logged out": "您已退出登录", "zip": "压缩", "zoom": "缩放" } ================================================ FILE: package.json ================================================ { "name": "files.photo.gallery", "version": "0.15.2", "description": "Single-file PHP file gallery and file manager / https://demo.files.gallery/", "main": "index.php", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "https://github.com/mjau-mjau/files.photo.gallery.git" }, "keywords": [ "php", "single file", "file viewer", "file manager", "photo gallery" ], "bugs": { "url": "https://forum.files.gallery/" }, "author": "Karl Ward (https://www.photo.gallery)", "license": "SEE LICENSE IN LICENSE.md", "homepage": "https://www.files.gallery/" }