@conciv/app 0.0.0-stage → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +39 -2
- package/dist/app.css +2 -0
- package/dist/audit-_DGJuwJy-Dit7D3gT.js +1207 -0
- package/dist/conciv-widget-native.global.js +1 -0
- package/dist/conciv-widget.global.js +1 -0
- package/dist/dist-bqHY73Cz.js +8279 -0
- package/dist/drive-AMggBvAL.js +859 -0
- package/dist/mount-impl-qxXhuXy1.js +56771 -0
- package/dist/mount.d.ts +29 -0
- package/dist/mount.js +88 -0
- package/dist/renderer-Ym7FGQIR-BLeL5Z3V.js +2713 -0
- package/dist/rrweb-snapshot-BWkLyU9c.js +3296 -0
- package/dist/snapdom-RjaC8CzG.js +9104 -0
- package/dist/terminal-surface-BKSfdTuA-DqjfhNUN.js +112 -0
- package/dist/utils-CfrGRFUE.js +134 -0
- package/dist/widget/abap-CLvhMVsD.js +1 -0
- package/dist/widget/abnfDiagram-WEYOIA3C-C8JCNUPP.js +1 -0
- package/dist/widget/actionscript-3-Cs6JJXT5.js +1 -0
- package/dist/widget/ada-X3Y2mlq2.js +1 -0
- package/dist/widget/ahk-DwADkxyd.js +1 -0
- package/dist/widget/ahk2-_6rzW9BS.js +1 -0
- package/dist/widget/andromeeda-BJLMrMlp.js +1 -0
- package/dist/widget/andromeeda-vGVdxbeo.js +1 -0
- package/dist/widget/angular-html-DfGLCIfk.js +1 -0
- package/dist/widget/angular-ts-DHtom9gx.js +1 -0
- package/dist/widget/apache-U0d_L8uA.js +1 -0
- package/dist/widget/apex-KFGFyKwG.js +1 -0
- package/dist/widget/apl-D2fyOvLI.js +1 -0
- package/dist/widget/app-CrcUSd40.css +2 -0
- package/dist/widget/appendItems-DfVwqCXr.js +10 -0
- package/dist/widget/applescript-CCn79oCD.js +1 -0
- package/dist/widget/ara-4CJ0cIlV.js +1 -0
- package/dist/widget/arc-LzOvzcy2.js +1 -0
- package/dist/widget/architecture-WOLXFQ4H-BlkOAttS.js +1 -0
- package/dist/widget/architectureDiagram-ZHVYKT53-CzCyC5fI.js +36 -0
- package/dist/widget/array-BifhSqXX.js +1 -0
- package/dist/widget/asciidoc-SCjQUq34.js +1 -0
- package/dist/widget/asm-Cmm7eHzH.js +1 -0
- package/dist/widget/astro-r4IIHFPy.js +1 -0
- package/dist/widget/aurora-x-BCChoRpm.js +1 -0
- package/dist/widget/aurora-x-CDeNXAV0.js +1 -0
- package/dist/widget/awk-BWXHIvNe.js +1 -0
- package/dist/widget/ayu-dark-DluEY0Gj.js +1 -0
- package/dist/widget/ayu-dark-DzFZPuMV.js +1 -0
- package/dist/widget/ayu-light-C3h-C4tm.js +1 -0
- package/dist/widget/ayu-light-DSkcX_XD.js +1 -0
- package/dist/widget/ayu-mirage-Bqwy1Gya.js +1 -0
- package/dist/widget/ayu-mirage-DSve0zuE.js +1 -0
- package/dist/widget/ballerina-B7ZEbQpA.js +1 -0
- package/dist/widget/bat-qdxAdBWQ.js +1 -0
- package/dist/widget/beancount-C2IN4Vk8.js +1 -0
- package/dist/widget/berry-DKpUyyne.js +1 -0
- package/dist/widget/bibtex-Ci_nEsc7.js +1 -0
- package/dist/widget/bicep-CUHmPFLl.js +1 -0
- package/dist/widget/bird2-CYIUgYqB.js +1 -0
- package/dist/widget/blade-DtpAOzlD.js +1 -0
- package/dist/widget/blockDiagram-RJAE7QA3-9q4bjSrH.js +140 -0
- package/dist/widget/bsl-_VjlB9mv.js +1 -0
- package/dist/widget/c-CqdfHD0q.js +1 -0
- package/dist/widget/c3-D0apG41V.js +1 -0
- package/dist/widget/c4Diagram-XDPPPE54-Bw66c-8d.js +38 -0
- package/dist/widget/cadence-CQ2zXKGN.js +1 -0
- package/dist/widget/cairo-DLTphjLi.js +1 -0
- package/dist/widget/catppuccin-frappe-C9Q5zVZY.js +1 -0
- package/dist/widget/catppuccin-frappe-DbLkF0J2.js +1 -0
- package/dist/widget/catppuccin-latte-CtsyrtPq.js +1 -0
- package/dist/widget/catppuccin-latte-b6208YQK.js +1 -0
- package/dist/widget/catppuccin-macchiato-CNNBbV1L.js +1 -0
- package/dist/widget/catppuccin-macchiato-R8nAf1vR.js +1 -0
- package/dist/widget/catppuccin-mocha-DHkNF0Mp.js +1 -0
- package/dist/widget/catppuccin-mocha-DjuaAJKi.js +1 -0
- package/dist/widget/channel-DjZM_o7k.js +1 -0
- package/dist/widget/chapel-CBJ_KWz4.js +1 -0
- package/dist/widget/chunk-2E7WHVMD-CvrYIw-y.js +88 -0
- package/dist/widget/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/dist/widget/chunk-4EMNKR2T-BKKSnaRE.js +1 -0
- package/dist/widget/chunk-55XCU76K-CLgB8me_.js +1 -0
- package/dist/widget/chunk-5VM5RSS4-CwNG0iBi.js +15 -0
- package/dist/widget/chunk-7S6XSTFO-VX7T83Kd.js +2 -0
- package/dist/widget/chunk-AQDTSKZB-CQVrf04G.js +72 -0
- package/dist/widget/chunk-DSNLSHJZ-BzDJTosD.js +129 -0
- package/dist/widget/chunk-DUW6YSOI-ChybIQ82.js +1 -0
- package/dist/widget/chunk-HAGFOTED-Dj4F8VNu.js +62 -0
- package/dist/widget/chunk-HNE4Q36P-Caox8prF.js +1 -0
- package/dist/widget/chunk-J5ZVWO5B-DHB__t6z.js +1 -0
- package/dist/widget/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/dist/widget/chunk-NGNAAXSQ-BfSeTha-.js +214 -0
- package/dist/widget/chunk-NQOKRVIF-DFIAFWQt.js +213 -0
- package/dist/widget/chunk-UHW7PFBP-BFrOg1TF.js +1 -0
- package/dist/widget/chunk-VQ5W62QI-JDLb8Q1a.js +1 -0
- package/dist/widget/chunk-WQQL4CDK-BGp0P48W.js +10 -0
- package/dist/widget/chunk-XXDRQBXY-fIpx4O8v.js +1 -0
- package/dist/widget/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/dist/widget/chunk-YZO67HFG-DAK9t14X.js +1 -0
- package/dist/widget/chunk-ZAUX2LTX-D0IHLu9H.js +1 -0
- package/dist/widget/chunk-ZCHMQSOR-B7N4i7AL.js +1 -0
- package/dist/widget/clarity-CtfBBspg.js +1 -0
- package/dist/widget/classDiagram-v2-4MYWR3UA-CmdvBlz0.js +217 -0
- package/dist/widget/client-CdMzhUAi.js +1 -0
- package/dist/widget/clojure-DqKBuwfJ.js +1 -0
- package/dist/widget/cmake-Bj61d0ZC.js +1 -0
- package/dist/widget/cobol-Cp_Okisg.js +1 -0
- package/dist/widget/codeowners-C8r90Shi.js +1 -0
- package/dist/widget/codeql-oeQT6MSM.js +1 -0
- package/dist/widget/coffee-O3g5lTaK.js +1 -0
- package/dist/widget/common-lisp-Cv5bFMCO.js +1 -0
- package/dist/widget/conciv-widget-DC-MOeiA.js +1 -0
- package/dist/widget/conciv-widget-native-bNjemnB5.js +19 -0
- package/dist/widget/coq-CGaSfhwR.js +1 -0
- package/dist/widget/core-Dm0mhjvx.js +1 -0
- package/dist/widget/cose-bilkent-JH36ORCC-BbFx4N8d.js +1 -0
- package/dist/widget/cpp-BRbHqB2f.js +1 -0
- package/dist/widget/crystal-Dj-ZnB0n.js +1 -0
- package/dist/widget/csharp-dmMxLVLW.js +1 -0
- package/dist/widget/css-D2eTjgWZ.js +1 -0
- package/dist/widget/csv-Dx-8-gkx.js +1 -0
- package/dist/widget/cue-CE9AQfxI.js +1 -0
- package/dist/widget/cynefin-EF2NZ3EQ-Bg5VrocC.js +1 -0
- package/dist/widget/cynefinDiagram-WF24UDRP-C5yQX54-.js +62 -0
- package/dist/widget/cypher-ClKdZ_lG.js +1 -0
- package/dist/widget/cytoscape.esm-CkRKNxSE.js +321 -0
- package/dist/widget/d-qD-0Kul2.js +1 -0
- package/dist/widget/dagre-NK4GIZVX-CSo1R53c.js +4 -0
- package/dist/widget/dark-plus-BVZ_4wTZ.js +1 -0
- package/dist/widget/dark-plus-Cs2F2srj.js +1 -0
- package/dist/widget/dart-CHZY9Xhz.js +1 -0
- package/dist/widget/dax-BkyTk9wS.js +1 -0
- package/dist/widget/defaultLocale-BFoDCU3G.js +1 -0
- package/dist/widget/desktop-Dlh5hvp9.js +1 -0
- package/dist/widget/diagram-CBK3MWTC-CurgnBDo.js +24 -0
- package/dist/widget/diagram-I5XIIV2D-D2Nu8ISG.js +24 -0
- package/dist/widget/diagram-ODIL2UCW-CyVVUBjV.js +30 -0
- package/dist/widget/diagram-PFBEJUXE-CA3DJDLy.js +3 -0
- package/dist/widget/diagram-RJA3I4VV-BicJgYBU.js +41 -0
- package/dist/widget/diagram-TYUNFSNR-CMM8a2OT.js +200 -0
- package/dist/widget/diff-woXpYk--.js +1 -0
- package/dist/widget/dist-BFbhHGiN.js +1 -0
- package/dist/widget/dist-CXPcE9Ng.js +30 -0
- package/dist/widget/docker-IyjqRm3v.js +1 -0
- package/dist/widget/dotenv-CuH5my32.js +1 -0
- package/dist/widget/dracula-BHWKrbxM.js +1 -0
- package/dist/widget/dracula-BoZgXveB.js +1 -0
- package/dist/widget/dracula-soft-5eyTD99u.js +1 -0
- package/dist/widget/dracula-soft-D-Kgh5gw.js +1 -0
- package/dist/widget/dream-maker-DW3nJb8Q.js +1 -0
- package/dist/widget/ebnfDiagram-V4P3TTPT-QSS4T3S_.js +1 -0
- package/dist/widget/edge-CujmfXIm.js +1 -0
- package/dist/widget/elixir-DAobdC9I.js +1 -0
- package/dist/widget/elk-QONTBCTQ-DviCCGGo.js +27 -0
- package/dist/widget/elm-CFI03SMw.js +1 -0
- package/dist/widget/emacs-lisp-DR2vtWaj.js +1 -0
- package/dist/widget/engine-javascript-ChCXf1xX.js +141 -0
- package/dist/widget/engine-oniguruma-BO8SA_1o.js +1 -0
- package/dist/widget/erDiagram-KYQIGQAA-CFq0RCiU.js +99 -0
- package/dist/widget/erb-CTaksIde.js +1 -0
- package/dist/widget/erlang-Cphh6RMH.js +1 -0
- package/dist/widget/event-bus-9TCnNfqX.js +1 -0
- package/dist/widget/eventmodeling-K75KTNOO-Cs3uuznU.js +1 -0
- package/dist/widget/everforest-dark-Y6tr-2zD.js +1 -0
- package/dist/widget/everforest-dark-sB-x3p7T.js +1 -0
- package/dist/widget/everforest-light-CA0Ol4Qu.js +1 -0
- package/dist/widget/everforest-light-Df2xbC6M.js +1 -0
- package/dist/widget/fennel-DQxkIbk2.js +1 -0
- package/dist/widget/fish-BJitypiv.js +1 -0
- package/dist/widget/flowDiagram-IUGLLWBU-zpLWDoHw.js +1 -0
- package/dist/widget/fluent-C03EYrpw.js +1 -0
- package/dist/widget/fortran-fixed-form-DEKoE2YW.js +1 -0
- package/dist/widget/fortran-free-form-CYNrtFtB.js +1 -0
- package/dist/widget/fsharp-D13ZGOAj.js +1 -0
- package/dist/widget/ganttDiagram-R7GPNTJY-DwzczJon.js +292 -0
- package/dist/widget/gdresource-xMC7jr7x.js +1 -0
- package/dist/widget/gdscript-DYvRD3hg.js +1 -0
- package/dist/widget/gdshader-CBce3t8t.js +1 -0
- package/dist/widget/genie-CV2tkWYe.js +1 -0
- package/dist/widget/gherkin-DExj1W_8.js +1 -0
- package/dist/widget/git-commit-BSykSTBG.js +1 -0
- package/dist/widget/git-rebase-CtpeBrcp.js +1 -0
- package/dist/widget/gitGraph-VSP46ZUC-C2tu5cDX.js +1 -0
- package/dist/widget/gitGraphDiagram-PDYL7XHY-xCdGy9ss.js +106 -0
- package/dist/widget/github-dark-C-LZuMrd.js +1 -0
- package/dist/widget/github-dark-C895GGrm.js +1 -0
- package/dist/widget/github-dark-default-CM8LCIj6.js +1 -0
- package/dist/widget/github-dark-default-DXG-b-1a.js +1 -0
- package/dist/widget/github-dark-dimmed-Bx1FflLF.js +1 -0
- package/dist/widget/github-dark-dimmed-jPx1V1fR.js +1 -0
- package/dist/widget/github-dark-high-contrast-B_tTalzw.js +1 -0
- package/dist/widget/github-dark-high-contrast-UN5YjL_Z.js +1 -0
- package/dist/widget/github-light-B4HDwToD.js +1 -0
- package/dist/widget/github-light-EUqPIrTm.js +1 -0
- package/dist/widget/github-light-default-BXViO-2h.js +1 -0
- package/dist/widget/github-light-default-CfC59JYV.js +1 -0
- package/dist/widget/github-light-high-contrast-B68TUdTA.js +1 -0
- package/dist/widget/github-light-high-contrast-C3edEHcK.js +1 -0
- package/dist/widget/gleam-CSRkHgEL.js +1 -0
- package/dist/widget/glimmer-js-CkXUwoHJ.js +1 -0
- package/dist/widget/glimmer-ts-BvtsB4jJ.js +1 -0
- package/dist/widget/glsl-BCfHwdhk.js +1 -0
- package/dist/widget/gn-CAXYAgV-.js +1 -0
- package/dist/widget/gnuplot-7GGW24-e.js +1 -0
- package/dist/widget/go-rLFTqkRN.js +1 -0
- package/dist/widget/grab-D3mqv46A.js +1 -0
- package/dist/widget/graphlib-Bgy7WbC7.js +1 -0
- package/dist/widget/graphql-CfIKCCmX.js +1 -0
- package/dist/widget/groovy-CacY0gHj.js +1 -0
- package/dist/widget/gruvbox-dark-hard-BdGOuxq8.js +1 -0
- package/dist/widget/gruvbox-dark-hard-C820rvS2.js +1 -0
- package/dist/widget/gruvbox-dark-medium-BPjhmG05.js +1 -0
- package/dist/widget/gruvbox-dark-medium-CmygtSMi.js +1 -0
- package/dist/widget/gruvbox-dark-soft-BJH4XuY9.js +1 -0
- package/dist/widget/gruvbox-dark-soft-MrdJrrXF.js +1 -0
- package/dist/widget/gruvbox-light-hard-BC_s9l72.js +1 -0
- package/dist/widget/gruvbox-light-hard-BkSILF4E.js +1 -0
- package/dist/widget/gruvbox-light-medium-BAWPOn9u.js +1 -0
- package/dist/widget/gruvbox-light-medium-DiZUfgdz.js +1 -0
- package/dist/widget/gruvbox-light-soft-BSMLrYjP.js +1 -0
- package/dist/widget/gruvbox-light-soft-CRCTnbIj.js +1 -0
- package/dist/widget/hack-ByAQXPM3.js +1 -0
- package/dist/widget/haml-CK15537M.js +1 -0
- package/dist/widget/handlebars-2OZp5AUc.js +1 -0
- package/dist/widget/haskell-D8IpX4py.js +1 -0
- package/dist/widget/haxe-C8oCnwJJ.js +1 -0
- package/dist/widget/hcl-Dh228itO.js +1 -0
- package/dist/widget/highlight-worker-xECMZfwu-BclgkNbz.js +1 -0
- package/dist/widget/highlights-BleqE7SU.js +3 -0
- package/dist/widget/hjson-CxZEssPk.js +1 -0
- package/dist/widget/hlsl-Cvrh5tZx.js +1 -0
- package/dist/widget/horizon-CE9ld1lL.js +1 -0
- package/dist/widget/horizon-DUI96lQn.js +1 -0
- package/dist/widget/horizon-bright-COxh1lHf.js +1 -0
- package/dist/widget/horizon-bright-DSNQnXHK.js +1 -0
- package/dist/widget/houston-CsvMBhTu.js +1 -0
- package/dist/widget/houston-DduE73P7.js +1 -0
- package/dist/widget/html-BRLij1PM.js +1 -0
- package/dist/widget/html-derivative-DZtYawEo.js +1 -0
- package/dist/widget/http-CEo7djpT.js +1 -0
- package/dist/widget/hurl-DTjjRC9I.js +1 -0
- package/dist/widget/hxml-Dcm88srW.js +1 -0
- package/dist/widget/hy-CZbG8q4J.js +1 -0
- package/dist/widget/imba-DsUTQ-LC.js +1 -0
- package/dist/widget/info-OHQRW6UA-BZH6A5h7.js +1 -0
- package/dist/widget/infoDiagram-MVDRKAX5-HALjPu5O.js +2 -0
- package/dist/widget/ini-B5eOa1yu.js +1 -0
- package/dist/widget/init-C-OQMol4.js +1 -0
- package/dist/widget/ishikawaDiagram-HPEHV2GE-IYhabdv0.js +70 -0
- package/dist/widget/java-BU2LYxkg.js +1 -0
- package/dist/widget/javascript-D1uiEBTz.js +1 -0
- package/dist/widget/jinja-CLSwD_ST.js +1 -0
- package/dist/widget/jison-BFiOBRRA.js +1 -0
- package/dist/widget/journeyDiagram-BOSHW7O7-C0jpc8mF.js +139 -0
- package/dist/widget/json-DyvYNXXQ.js +1 -0
- package/dist/widget/json5-BR5RXkoi.js +1 -0
- package/dist/widget/jsonc-CYpm1nAK.js +1 -0
- package/dist/widget/jsonl-CmCQp5Yx.js +1 -0
- package/dist/widget/jsonnet-CJTPZ8u_.js +1 -0
- package/dist/widget/jssm-DXw9l8Rf.js +1 -0
- package/dist/widget/jsx-Cojn96Bl.js +1 -0
- package/dist/widget/julia-2jfeOQw1.js +1 -0
- package/dist/widget/just-DWLN98-i.js +1 -0
- package/dist/widget/kanagawa-dragon-BHDhSKDf.js +1 -0
- package/dist/widget/kanagawa-dragon-Bozd7klA.js +1 -0
- package/dist/widget/kanagawa-lotus-BmuOG9ZW.js +1 -0
- package/dist/widget/kanagawa-lotus-NJjGXXql.js +1 -0
- package/dist/widget/kanagawa-wave-BML5mF2J.js +1 -0
- package/dist/widget/kanagawa-wave-DsGe2Uqk.js +1 -0
- package/dist/widget/kanban-definition-FNSA4HC5-CaX1JSkT.js +89 -0
- package/dist/widget/katex-CO85RjxX.js +257 -0
- package/dist/widget/kdl-CsD5j6eV.js +1 -0
- package/dist/widget/kotlin-DhhofPvG.js +1 -0
- package/dist/widget/kusto-C7mF5XQf.js +1 -0
- package/dist/widget/langs-CNq5Zp55.js +1 -0
- package/dist/widget/laserwave-C_8bwKvT.js +1 -0
- package/dist/widget/laserwave-DYV0fvJ_.js +1 -0
- package/dist/widget/latex-BUkFwSK4.js +1 -0
- package/dist/widget/lean-CewbzKMR.js +1 -0
- package/dist/widget/less-DVTAwKKz.js +1 -0
- package/dist/widget/lib-C-y3pGx_.js +1 -0
- package/dist/widget/light-plus-DVQuIRkW.js +1 -0
- package/dist/widget/light-plus-FTnIShls.js +1 -0
- package/dist/widget/line-wCFZpIKI.js +1 -0
- package/dist/widget/linear-DkksMCCN.js +1 -0
- package/dist/widget/liquid-Wc111Old.js +1 -0
- package/dist/widget/llvm-DqHOMS-s.js +1 -0
- package/dist/widget/loader-DxvNOETZ.js +1 -0
- package/dist/widget/log-BNLmms1o.js +1 -0
- package/dist/widget/logo-Cluzi2Zq.js +1 -0
- package/dist/widget/lua--B_i6_XT.js +1 -0
- package/dist/widget/luau-VGWVLoqX.js +1 -0
- package/dist/widget/make-Dixweg8N.js +1 -0
- package/dist/widget/markdown-BYOwaDjH.js +1 -0
- package/dist/widget/marko-Dem0XQrg.js +1 -0
- package/dist/widget/material-theme-Bm3Qr25_.js +1 -0
- package/dist/widget/material-theme-IcIb8QNx.js +1 -0
- package/dist/widget/material-theme-darker-2IIEA8gg.js +1 -0
- package/dist/widget/material-theme-darker-B_f2vxdL.js +1 -0
- package/dist/widget/material-theme-lighter-CR2Q-4Hp.js +1 -0
- package/dist/widget/material-theme-lighter-uhdI0v04.js +1 -0
- package/dist/widget/material-theme-ocean-BX6hAJ_y.js +1 -0
- package/dist/widget/material-theme-ocean-CHQ94UKr.js +1 -0
- package/dist/widget/material-theme-palenight-B5W6OYN7.js +1 -0
- package/dist/widget/material-theme-palenight-B6DWAotd.js +1 -0
- package/dist/widget/matlab-D7qyCx1q.js +1 -0
- package/dist/widget/mdc-C1GAOEHd.js +1 -0
- package/dist/widget/mdx-DQZ5AkYe.js +1 -0
- package/dist/widget/mermaid-BxpfTIzt.js +1 -0
- package/dist/widget/mermaid-parser.core-BI1eU3Az.js +6 -0
- package/dist/widget/mermaid.core-BqGKVZgl.js +43 -0
- package/dist/widget/min-dark-BSWPekZh.js +1 -0
- package/dist/widget/min-dark-DECtZcqS.js +1 -0
- package/dist/widget/min-light-DDpmG2fV.js +1 -0
- package/dist/widget/min-light-qRIVcaqf.js +1 -0
- package/dist/widget/mindmap-definition-6OY57UG3-C9dOJYyx.js +98 -0
- package/dist/widget/mipsasm-BMqwQI7S.js +1 -0
- package/dist/widget/mojo-fg40_ntQ.js +1 -0
- package/dist/widget/monokai-BscAjiQZ.js +1 -0
- package/dist/widget/monokai-CLmrJ-8t.js +1 -0
- package/dist/widget/moonbit-D9W784E_.js +1 -0
- package/dist/widget/mount-CbI0Amha.js +8 -0
- package/dist/widget/mount-impl-BGwq3wgh.js +1047 -0
- package/dist/widget/move-BYnGhZoM.js +1 -0
- package/dist/widget/narrat-_X_XdTYD.js +1 -0
- package/dist/widget/nextflow-CSgcYZcx.js +1 -0
- package/dist/widget/nextflow-groovy-D7IRt6Pp.js +1 -0
- package/dist/widget/nginx-BblPyQU3.js +1 -0
- package/dist/widget/night-owl-DhmEMT88.js +1 -0
- package/dist/widget/night-owl-eR4AsyAP.js +1 -0
- package/dist/widget/night-owl-light-C74n5ti-.js +1 -0
- package/dist/widget/night-owl-light-eJ-hLW7d.js +1 -0
- package/dist/widget/nim-CYcxDtGg.js +1 -0
- package/dist/widget/nix-IvuFDN5E.js +1 -0
- package/dist/widget/nord-Cb4Vim4T.js +1 -0
- package/dist/widget/nord-D4wy7NEP.js +1 -0
- package/dist/widget/nsis-CjNLYCLg.js +1 -0
- package/dist/widget/nushell--0fT3PI1.js +1 -0
- package/dist/widget/objective-c-D1A_Heim.js +1 -0
- package/dist/widget/objective-cpp-BsSzOQcm.js +1 -0
- package/dist/widget/ocaml-O90oeIOV.js +1 -0
- package/dist/widget/odin-B1RWQWA5.js +1 -0
- package/dist/widget/one-dark-pro-28TLzoS8.js +1 -0
- package/dist/widget/one-dark-pro-C6YyR8OD.js +1 -0
- package/dist/widget/one-light-C0UY_Fh7.js +1 -0
- package/dist/widget/one-light-D7Lr4KcI.js +1 -0
- package/dist/widget/openscad-BUDT5pXO.js +1 -0
- package/dist/widget/ordinal-Chx5drUg.js +1 -0
- package/dist/widget/org-V_s0PETc.js +1 -0
- package/dist/widget/packet-JDAUHWVQ-YDcPDw4o.js +1 -0
- package/dist/widget/page-tZ2wBDsK.js +1 -0
- package/dist/widget/pascal-4ZHwLPI5.js +1 -0
- package/dist/widget/path-fybaL0A-.js +1 -0
- package/dist/widget/pegDiagram-ECIUJNBX-DBNmaebQ.js +1 -0
- package/dist/widget/perl-ITx_OCUT.js +1 -0
- package/dist/widget/php-DI8kHjKq.js +1 -0
- package/dist/widget/pie-XZMESJXO-CuUs0tjw.js +1 -0
- package/dist/widget/pieDiagram-GNMPY74T-CxGCn6ix.js +39 -0
- package/dist/widget/pierre-dark-CpLgRqie.js +1 -0
- package/dist/widget/pierre-dark-fPlffE7i.js +1 -0
- package/dist/widget/pierre-dark-protanopia-deuteranopia-B35FxJx-.js +1 -0
- package/dist/widget/pierre-dark-protanopia-deuteranopia-BmjibgrW.js +1 -0
- package/dist/widget/pierre-dark-soft-Cng2SYKc.js +1 -0
- package/dist/widget/pierre-dark-soft-kZQmAZld.js +1 -0
- package/dist/widget/pierre-dark-tritanopia-CpjhbsIL.js +1 -0
- package/dist/widget/pierre-dark-tritanopia-DneQ5i7L.js +1 -0
- package/dist/widget/pierre-dark-vibrant-BUK9Y-N_.js +1 -0
- package/dist/widget/pierre-dark-vibrant-CpQYzh95.js +1 -0
- package/dist/widget/pierre-light-BvcXQJIj.js +1 -0
- package/dist/widget/pierre-light-CoaEpmwp.js +1 -0
- package/dist/widget/pierre-light-protanopia-deuteranopia-0fSaH845.js +1 -0
- package/dist/widget/pierre-light-protanopia-deuteranopia-Cd5nk0bp.js +1 -0
- package/dist/widget/pierre-light-soft-BvU23vks.js +1 -0
- package/dist/widget/pierre-light-soft-lWLdNTOI.js +1 -0
- package/dist/widget/pierre-light-tritanopia-BSHccQzI.js +1 -0
- package/dist/widget/pierre-light-tritanopia-CEbqgOJL.js +1 -0
- package/dist/widget/pierre-light-vibrant-BgMZEwQI.js +1 -0
- package/dist/widget/pierre-light-vibrant-D80Fkn33.js +1 -0
- package/dist/widget/pkl-ot-7Btpt.js +1 -0
- package/dist/widget/plastic-B2V_PDVk.js +1 -0
- package/dist/widget/plastic-DQwYfKfQ.js +1 -0
- package/dist/widget/plsql-DGHpHOYJ.js +1 -0
- package/dist/widget/po-BiJDBrnU.js +1 -0
- package/dist/widget/poimandres-DB9-pI6r.js +1 -0
- package/dist/widget/poimandres-DRFjx7u4.js +1 -0
- package/dist/widget/polar-C7UOKdEL.js +1 -0
- package/dist/widget/postcss-BXeXVLqQ.js +1 -0
- package/dist/widget/powerquery-DNMTfnFr.js +1 -0
- package/dist/widget/powershell-QtSnmXcu.js +1 -0
- package/dist/widget/prisma-DMgNhnYS.js +1 -0
- package/dist/widget/prolog-iXnhIJG7.js +1 -0
- package/dist/widget/proto-DB4EqR-F.js +1 -0
- package/dist/widget/pug-BuNBqKYs.js +1 -0
- package/dist/widget/puppet-CDv2pdJW.js +1 -0
- package/dist/widget/purescript-9MfHhQsQ.js +1 -0
- package/dist/widget/python-gzcpVVnB.js +1 -0
- package/dist/widget/qml-D15JhP6v.js +1 -0
- package/dist/widget/qmldir-DCQb3MpD.js +1 -0
- package/dist/widget/qss-Fe1Jh2GI.js +1 -0
- package/dist/widget/quadrantDiagram-D57K4MC3-CcTNu78O.js +7 -0
- package/dist/widget/r-_3UTmKZ1.js +1 -0
- package/dist/widget/racket-DcIDlBhZ.js +1 -0
- package/dist/widget/radar-ABXABTNO-C2KP5DT_.js +1 -0
- package/dist/widget/railroad-I3PHUGI6-0pZstHbE.js +1 -0
- package/dist/widget/railroad-abnf-LNEFI6M7-DsPIj__A.js +1 -0
- package/dist/widget/railroad-ebnf-DWYD2UWJ-CkyrOwN4.js +1 -0
- package/dist/widget/railroad-peg-JR7BVNR7-DXZkrOL4.js +1 -0
- package/dist/widget/railroadDiagram-Y72NRBL7-BFt8VUO2.js +1 -0
- package/dist/widget/raku-B3gFvitq.js +1 -0
- package/dist/widget/razor-BGmkdOI5.js +1 -0
- package/dist/widget/rbs-C0MpOrj4.js +1 -0
- package/dist/widget/red-CYlAq2b0.js +1 -0
- package/dist/widget/red-CqYzoXtd.js +1 -0
- package/dist/widget/reg-CRGYupPL.js +1 -0
- package/dist/widget/regexp-wTE6RB78.js +1 -0
- package/dist/widget/rel-BtDbiS_P.js +1 -0
- package/dist/widget/renderer-Ym7FGQIR-CLcFAvXP.js +1 -0
- package/dist/widget/requirementDiagram-EQYSW5RA-CA3cIBxQ.js +84 -0
- package/dist/widget/riscv-Ckw8ddFX.js +1 -0
- package/dist/widget/ron-VUp2lXgN.js +1 -0
- package/dist/widget/rose-pine-C3zjVKxG.js +1 -0
- package/dist/widget/rose-pine-aMsaMD1D.js +1 -0
- package/dist/widget/rose-pine-dawn-8PwUyIlP.js +1 -0
- package/dist/widget/rose-pine-dawn-C72QYfqa.js +1 -0
- package/dist/widget/rose-pine-moon-CSM8ewhO.js +1 -0
- package/dist/widget/rose-pine-moon-DO-qXg-I.js +1 -0
- package/dist/widget/rosmsg-CAekHB0j.js +1 -0
- package/dist/widget/rough.esm-Dy-Kn_BL.js +1 -0
- package/dist/widget/rpc-types-Dbid6Iaa.js +228 -0
- package/dist/widget/rpc-un1OkUrq.js +1 -0
- package/dist/widget/rrweb-snapshot-CHGJ8MzO.js +27 -0
- package/dist/widget/rst-Bi8-6zov.js +1 -0
- package/dist/widget/ruby-BO8jEjS4.js +1 -0
- package/dist/widget/rust-DpiIf5JO.js +1 -0
- package/dist/widget/sankeyDiagram-SY24JHO5-BlHHHNPT.js +40 -0
- package/dist/widget/sas-9xrqp6S0.js +1 -0
- package/dist/widget/sass-DXrisJhu.js +1 -0
- package/dist/widget/scala-BiFt_7mu.js +1 -0
- package/dist/widget/scheme-DQCgrYNe.js +1 -0
- package/dist/widget/scss-BnjJ5XHW.js +1 -0
- package/dist/widget/sdbl-bTVj8UrX.js +1 -0
- package/dist/widget/sequenceDiagram-BLEHNHQU-Ck_ytw4V.js +169 -0
- package/dist/widget/shaderlab-TOUzSsQk.js +1 -0
- package/dist/widget/shellscript-CxSR1_L5.js +1 -0
- package/dist/widget/shellsession-3oA4kNQx.js +1 -0
- package/dist/widget/shiki-dt1gSaEh.js +1 -0
- package/dist/widget/sizeCapture-INFHLROL-Ct7XApxm.js +1 -0
- package/dist/widget/slack-dark-DnToyrRv.js +1 -0
- package/dist/widget/slack-dark-Dtzi51su.js +1 -0
- package/dist/widget/slack-ochin-B2OO5cIa.js +1 -0
- package/dist/widget/slack-ochin-Bb7oPExa.js +1 -0
- package/dist/widget/smalltalk-BHpQb5nM.js +1 -0
- package/dist/widget/smithy-Dgaz7aur.js +1 -0
- package/dist/widget/snapdom-DFH-vMRx.js +35 -0
- package/dist/widget/snazzy-light-4G7pJPwS.js +1 -0
- package/dist/widget/snazzy-light-DXgiwzKu.js +1 -0
- package/dist/widget/solarized-dark-BKOT3ICq.js +1 -0
- package/dist/widget/solarized-dark-b97czJOk.js +1 -0
- package/dist/widget/solarized-light--Lk5pOfE.js +1 -0
- package/dist/widget/solarized-light-DFPxpIYQ.js +1 -0
- package/dist/widget/solidity-Bj7E1mRn.js +1 -0
- package/dist/widget/soy-DdsVEdSC.js +1 -0
- package/dist/widget/sparql-D_iOobhT.js +1 -0
- package/dist/widget/splunk-BC2Px7Mm.js +1 -0
- package/dist/widget/sql-DBm_39ZR.js +1 -0
- package/dist/widget/src-avKZEIqO.js +1 -0
- package/dist/widget/ssh-config-BgfXC-Er.js +1 -0
- package/dist/widget/stata-BwfOgM1x.js +1 -0
- package/dist/widget/stateDiagram-v2-A6IESKWZ-DnMqragV.js +291 -0
- package/dist/widget/stream-tokenizer-DQFXv9yU.js +4 -0
- package/dist/widget/stylus-B6D30XZt.js +1 -0
- package/dist/widget/surrealql-DmKuma76.js +1 -0
- package/dist/widget/svelte-BnjTVNYt.js +1 -0
- package/dist/widget/swift-CyEgAFGc.js +1 -0
- package/dist/widget/swimlanes-B3ENRKFQ-CLZt0WHZ.js +1 -0
- package/dist/widget/swimlanesDiagram-AYQRV4AK-BXgpcvVW.js +8 -0
- package/dist/widget/synthwave-84-BJJFg-sc.js +1 -0
- package/dist/widget/synthwave-84-nFMaYfgc.js +1 -0
- package/dist/widget/system-verilog-Dh5ihWbf.js +1 -0
- package/dist/widget/systemd-BxMlprV5.js +1 -0
- package/dist/widget/talonscript-CohzipZa.js +1 -0
- package/dist/widget/tasl-DMoTqEGO.js +1 -0
- package/dist/widget/tcl-CZd0xW_V.js +1 -0
- package/dist/widget/templ-D9luhyD0.js +1 -0
- package/dist/widget/terminal-surface-BKSfdTuA-M2JB5AFk.js +18 -0
- package/dist/widget/terraform-DswuEJGm.js +1 -0
- package/dist/widget/tex-Br-c-qVw.js +1 -0
- package/dist/widget/themes-tV_QtdPB.js +1 -0
- package/dist/widget/timeline-definition-JXYKGLGB-PHYlC_fS.js +120 -0
- package/dist/widget/tokyo-night-DvpptEDd.js +1 -0
- package/dist/widget/tokyo-night-oM2G3aXe.js +1 -0
- package/dist/widget/toml-CcmNWLt0.js +1 -0
- package/dist/widget/treeView-D4JQ5SDB-DodrlbOT.js +1 -0
- package/dist/widget/treemap-SAJKECNS-ly1gvOS0.js +1 -0
- package/dist/widget/ts-tags-DOzwstxL.js +1 -0
- package/dist/widget/tsv-sltzmVWM.js +1 -0
- package/dist/widget/tsx-DpVaCWpb.js +1 -0
- package/dist/widget/turtle-ByJddavk.js +1 -0
- package/dist/widget/twig-Cds0t64a.js +1 -0
- package/dist/widget/typescript-1Qbzj37f.js +1 -0
- package/dist/widget/typespec-BGhR2SqG.js +1 -0
- package/dist/widget/typst-DVIPtYQH.js +1 -0
- package/dist/widget/unwrapDefault-ByDmBtHB.js +1 -0
- package/dist/widget/usecaseDiagram-WPOLBNNX-blSDG-OB.js +476 -0
- package/dist/widget/utils-Cfa0l6Q1.js +2 -0
- package/dist/widget/utils-Dz9F0lp4.js +4 -0
- package/dist/widget/v-DBj4K9d_.js +1 -0
- package/dist/widget/vala-zf12oZj6.js +1 -0
- package/dist/widget/vb-DOwzaHZ0.js +1 -0
- package/dist/widget/vennDiagram-Q3Y3IDCW-f6A2DIpj.js +34 -0
- package/dist/widget/verilog-B2gwz-sJ.js +1 -0
- package/dist/widget/vesper-C1rBZbON.js +1 -0
- package/dist/widget/vesper-DdrHHSXu.js +1 -0
- package/dist/widget/vhdl-BroJfC0k.js +1 -0
- package/dist/widget/viml-DvXPmvsu.js +1 -0
- package/dist/widget/vitesse-black-Sqvrs2Sw.js +1 -0
- package/dist/widget/vitesse-black-fwtXNY1n.js +1 -0
- package/dist/widget/vitesse-dark-BWf_ZQtP.js +1 -0
- package/dist/widget/vitesse-dark-BZCL-v6S.js +1 -0
- package/dist/widget/vitesse-light-Cqenv4Qv.js +1 -0
- package/dist/widget/vitesse-light-VbXTXTou.js +1 -0
- package/dist/widget/vue-BsCgYSJ7.js +1 -0
- package/dist/widget/vue-html-CkN3m9g1.js +1 -0
- package/dist/widget/vue-vine-B1XfKbph.js +1 -0
- package/dist/widget/vyper-CgoNMtux.js +1 -0
- package/dist/widget/wardley-7MLQ67FV-BRUSZbHT.js +1 -0
- package/dist/widget/wardleyDiagram-IVAIDKWA-B2wQG47D.js +78 -0
- package/dist/widget/wasm-4KdTHw0F.js +1 -0
- package/dist/widget/wasm-ByWQv1Qj.js +1 -0
- package/dist/widget/wenyan-C8pVoKbM.js +1 -0
- package/dist/widget/wgsl-BsKzXJz4.js +1 -0
- package/dist/widget/wikitext-ClFFjSW2.js +1 -0
- package/dist/widget/wit-DdvCle-K.js +1 -0
- package/dist/widget/wolfram-DLL8P-h_.js +1 -0
- package/dist/widget/xml-D4kBVpTG.js +1 -0
- package/dist/widget/xsl-Do46mjc5.js +1 -0
- package/dist/widget/xychartDiagram-4URNHDU4-C9RzalH-.js +7 -0
- package/dist/widget/yaml-BNoXg8ZW.js +1 -0
- package/dist/widget/zenscript-BnlCZFoB.js +1 -0
- package/dist/widget/zig-CMLA9XwU.js +1 -0
- package/dist/zod-Cv9anQIK.js +1 -0
- package/package.json +86 -3
|
@@ -0,0 +1,3296 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/rrweb-snapshot@2.2.0/node_modules/rrweb-snapshot/dist/rrweb-snapshot.js
|
|
2
|
+
var e = Object.defineProperty, t = (t, n, r) => n in t ? e(t, n, {
|
|
3
|
+
enumerable: !0,
|
|
4
|
+
configurable: !0,
|
|
5
|
+
writable: !0,
|
|
6
|
+
value: r
|
|
7
|
+
}) : t[n] = r, n = (e, n, r) => t(e, typeof n == "symbol" ? n : n + "", r), r = /* @__PURE__ */ ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(r || {}), i = {
|
|
8
|
+
Node: [
|
|
9
|
+
"childNodes",
|
|
10
|
+
"parentNode",
|
|
11
|
+
"parentElement",
|
|
12
|
+
"textContent",
|
|
13
|
+
"ownerDocument",
|
|
14
|
+
"firstChild",
|
|
15
|
+
"lastChild",
|
|
16
|
+
"nextSibling",
|
|
17
|
+
"previousSibling"
|
|
18
|
+
],
|
|
19
|
+
ShadowRoot: ["host", "styleSheets"],
|
|
20
|
+
Element: [
|
|
21
|
+
"shadowRoot",
|
|
22
|
+
"querySelector",
|
|
23
|
+
"querySelectorAll"
|
|
24
|
+
],
|
|
25
|
+
MutationObserver: []
|
|
26
|
+
}, a = {
|
|
27
|
+
Node: ["contains", "getRootNode"],
|
|
28
|
+
ShadowRoot: ["getSelection"],
|
|
29
|
+
Element: [],
|
|
30
|
+
MutationObserver: ["constructor"]
|
|
31
|
+
}, o = {}, s = {}, c = 0, l = () => !!globalThis.Zone;
|
|
32
|
+
function u(e) {
|
|
33
|
+
if (o[e]) return o[e];
|
|
34
|
+
let t = globalThis[e], n = t.prototype, r = e in i ? i[e] : void 0, c = !!(r && r.every((e) => !!(Object.getOwnPropertyDescriptor(n, e)?.get)?.toString().includes("[native code]"))), u = e in a ? a[e] : void 0, d = !!(u && u.every((e) => typeof n[e] == "function" && n[e]?.toString().includes("[native code]")));
|
|
35
|
+
if (c && d && !l()) return o[e] = t.prototype, t.prototype;
|
|
36
|
+
try {
|
|
37
|
+
let r = document.createElement("iframe");
|
|
38
|
+
r.style.display = "none", document.body.appendChild(r);
|
|
39
|
+
let i = r.contentWindow;
|
|
40
|
+
if (!i) return t.prototype;
|
|
41
|
+
let a = i[e].prototype;
|
|
42
|
+
if (!a) return r.remove(), n;
|
|
43
|
+
let c = navigator.userAgent;
|
|
44
|
+
return c.includes("Safari") && !c.includes("Chrome") ? (r.classList.add("rr-block"), r.setAttribute("__rrwebUntaintedMutationObserver", ""), s[e] = () => r.remove()) : r.remove(), o[e] = a;
|
|
45
|
+
} catch {
|
|
46
|
+
return n;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
var d = {};
|
|
50
|
+
function f(e, t, n) {
|
|
51
|
+
let r = d[e]?.[n];
|
|
52
|
+
if (r) return r.call(t);
|
|
53
|
+
let i = u(e), a = Object.getOwnPropertyDescriptor(i, n)?.get;
|
|
54
|
+
return a ? ((d[e] || (d[e] = {}))[n] = a, a.call(t)) : t[n];
|
|
55
|
+
}
|
|
56
|
+
var p = {};
|
|
57
|
+
function m(e, t, n) {
|
|
58
|
+
let r = `${e}.${String(n)}`;
|
|
59
|
+
if (p[r]) return p[r].bind(t);
|
|
60
|
+
let i = u(e)[n];
|
|
61
|
+
return typeof i == "function" ? (p[r] = i, i.bind(t)) : t[n];
|
|
62
|
+
}
|
|
63
|
+
function h(e) {
|
|
64
|
+
return f("Node", e, "ownerDocument");
|
|
65
|
+
}
|
|
66
|
+
function g(e) {
|
|
67
|
+
return f("Node", e, "childNodes");
|
|
68
|
+
}
|
|
69
|
+
function _(e) {
|
|
70
|
+
return f("Node", e, "parentNode");
|
|
71
|
+
}
|
|
72
|
+
function v(e) {
|
|
73
|
+
return f("Node", e, "parentElement");
|
|
74
|
+
}
|
|
75
|
+
function y(e) {
|
|
76
|
+
return f("Node", e, "textContent");
|
|
77
|
+
}
|
|
78
|
+
function b(e) {
|
|
79
|
+
return f("Node", e, "firstChild");
|
|
80
|
+
}
|
|
81
|
+
function x(e) {
|
|
82
|
+
return f("Node", e, "lastChild");
|
|
83
|
+
}
|
|
84
|
+
function S(e) {
|
|
85
|
+
return f("Node", e, "nextSibling");
|
|
86
|
+
}
|
|
87
|
+
function C(e) {
|
|
88
|
+
return f("Node", e, "previousSibling");
|
|
89
|
+
}
|
|
90
|
+
function w(e, t) {
|
|
91
|
+
return m("Node", e, "contains")(t);
|
|
92
|
+
}
|
|
93
|
+
function ee(e) {
|
|
94
|
+
return m("Node", e, "getRootNode")();
|
|
95
|
+
}
|
|
96
|
+
function T(e) {
|
|
97
|
+
return !e || !("host" in e) ? null : f("ShadowRoot", e, "host");
|
|
98
|
+
}
|
|
99
|
+
function E(e) {
|
|
100
|
+
return e.styleSheets;
|
|
101
|
+
}
|
|
102
|
+
function D(e) {
|
|
103
|
+
return !e || !("shadowRoot" in e) ? null : f("Element", e, "shadowRoot");
|
|
104
|
+
}
|
|
105
|
+
function O(e, t) {
|
|
106
|
+
return f("Element", e, "querySelector")(t);
|
|
107
|
+
}
|
|
108
|
+
function k(e, t) {
|
|
109
|
+
return f("Element", e, "querySelectorAll")(t);
|
|
110
|
+
}
|
|
111
|
+
function te() {
|
|
112
|
+
let e = u("MutationObserver");
|
|
113
|
+
c++;
|
|
114
|
+
let t = !1;
|
|
115
|
+
return [e.constructor, () => {
|
|
116
|
+
if (t || (t = !0, --c !== 0)) return;
|
|
117
|
+
let e = s.MutationObserver;
|
|
118
|
+
if (e) try {
|
|
119
|
+
e();
|
|
120
|
+
} finally {
|
|
121
|
+
delete o.MutationObserver, delete s.MutationObserver;
|
|
122
|
+
}
|
|
123
|
+
}];
|
|
124
|
+
}
|
|
125
|
+
var A = Date.now;
|
|
126
|
+
/* @__PURE__ */ /[1-9][0-9]{12}/.test(Date.now().toString()) || (A = () => (/* @__PURE__ */ new Date()).getTime());
|
|
127
|
+
function ne(e, t, n) {
|
|
128
|
+
try {
|
|
129
|
+
if (!(t in e)) return () => {};
|
|
130
|
+
let r = e[t], i = n(r);
|
|
131
|
+
return typeof i == "function" && (i.prototype = i.prototype || {}, Object.defineProperties(i, { __rrweb_original__: {
|
|
132
|
+
enumerable: !1,
|
|
133
|
+
value: r
|
|
134
|
+
} })), e[t] = i, () => {
|
|
135
|
+
e[t] = r;
|
|
136
|
+
};
|
|
137
|
+
} catch {
|
|
138
|
+
return () => {};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
var j = {
|
|
142
|
+
ownerDocument: h,
|
|
143
|
+
childNodes: g,
|
|
144
|
+
parentNode: _,
|
|
145
|
+
parentElement: v,
|
|
146
|
+
textContent: y,
|
|
147
|
+
firstChild: b,
|
|
148
|
+
lastChild: x,
|
|
149
|
+
nextSibling: S,
|
|
150
|
+
previousSibling: C,
|
|
151
|
+
contains: w,
|
|
152
|
+
getRootNode: ee,
|
|
153
|
+
host: T,
|
|
154
|
+
styleSheets: E,
|
|
155
|
+
shadowRoot: D,
|
|
156
|
+
querySelector: O,
|
|
157
|
+
querySelectorAll: k,
|
|
158
|
+
nowTimestamp: A,
|
|
159
|
+
mutationObserverCtor: te,
|
|
160
|
+
patch: ne
|
|
161
|
+
};
|
|
162
|
+
function M(e) {
|
|
163
|
+
return e.nodeType === e.ELEMENT_NODE;
|
|
164
|
+
}
|
|
165
|
+
function re(e) {
|
|
166
|
+
let t = e && "host" in e && "mode" in e && j.host(e) || null;
|
|
167
|
+
return !!(t && "shadowRoot" in t && j.shadowRoot(t) === e);
|
|
168
|
+
}
|
|
169
|
+
function N(e) {
|
|
170
|
+
return Object.prototype.toString.call(e) === "[object ShadowRoot]";
|
|
171
|
+
}
|
|
172
|
+
function ie(e) {
|
|
173
|
+
return e.includes(" background-clip: text;") && !e.includes(" -webkit-background-clip: text;") && (e = e.replace(/\sbackground-clip:\s*text;/g, " -webkit-background-clip: text; background-clip: text;")), e;
|
|
174
|
+
}
|
|
175
|
+
function ae(e) {
|
|
176
|
+
let { cssText: t } = e;
|
|
177
|
+
if (t.split("\"").length < 3) return t;
|
|
178
|
+
let n = ["@import", `url(${JSON.stringify(e.href)})`];
|
|
179
|
+
return e.layerName === "" ? n.push("layer") : e.layerName && n.push(`layer(${e.layerName})`), e.supportsText && n.push(`supports(${e.supportsText})`), e.media.length && n.push(e.media.mediaText), n.join(" ") + ";";
|
|
180
|
+
}
|
|
181
|
+
function P(e) {
|
|
182
|
+
try {
|
|
183
|
+
let t = e.rules || e.cssRules;
|
|
184
|
+
if (!t) return null;
|
|
185
|
+
let n = e.href;
|
|
186
|
+
return !n && e.ownerNode && (n = e.ownerNode.baseURI), ie(Array.from(t, (e) => oe(e, n)).join(""));
|
|
187
|
+
} catch {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
function oe(e, t) {
|
|
192
|
+
if (ce(e)) {
|
|
193
|
+
let t;
|
|
194
|
+
try {
|
|
195
|
+
t = P(e.styleSheet) || ae(e);
|
|
196
|
+
} catch {
|
|
197
|
+
t = e.cssText;
|
|
198
|
+
}
|
|
199
|
+
return e.styleSheet.href ? R(t, e.styleSheet.href) : t;
|
|
200
|
+
}
|
|
201
|
+
{
|
|
202
|
+
let n = e.cssText;
|
|
203
|
+
return le(e) && e.selectorText.includes(":") && (n = se(n)), t ? R(n, t) : n;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function se(e) {
|
|
207
|
+
return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm, "$1\\$2");
|
|
208
|
+
}
|
|
209
|
+
function ce(e) {
|
|
210
|
+
return "styleSheet" in e;
|
|
211
|
+
}
|
|
212
|
+
function le(e) {
|
|
213
|
+
return "selectorText" in e;
|
|
214
|
+
}
|
|
215
|
+
var F = class {
|
|
216
|
+
constructor() {
|
|
217
|
+
n(this, "idNodeMap", /* @__PURE__ */ new Map()), n(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
|
|
218
|
+
}
|
|
219
|
+
getId(e) {
|
|
220
|
+
return e ? this.getMeta(e)?.id ?? -1 : -1;
|
|
221
|
+
}
|
|
222
|
+
getNode(e) {
|
|
223
|
+
return this.idNodeMap.get(e) || null;
|
|
224
|
+
}
|
|
225
|
+
getIds() {
|
|
226
|
+
return Array.from(this.idNodeMap.keys());
|
|
227
|
+
}
|
|
228
|
+
getMeta(e) {
|
|
229
|
+
return this.nodeMetaMap.get(e) || null;
|
|
230
|
+
}
|
|
231
|
+
removeNodeFromMap(e) {
|
|
232
|
+
let t = this.getId(e);
|
|
233
|
+
this.idNodeMap.delete(t), e.childNodes && e.childNodes.forEach((e) => this.removeNodeFromMap(e));
|
|
234
|
+
let n = j.shadowRoot(e);
|
|
235
|
+
n && this.removeNodeFromMap(n);
|
|
236
|
+
}
|
|
237
|
+
has(e) {
|
|
238
|
+
return this.idNodeMap.has(e);
|
|
239
|
+
}
|
|
240
|
+
hasNode(e) {
|
|
241
|
+
return this.nodeMetaMap.has(e);
|
|
242
|
+
}
|
|
243
|
+
add(e, t) {
|
|
244
|
+
let n = t.id;
|
|
245
|
+
this.idNodeMap.set(n, e), this.nodeMetaMap.set(e, t);
|
|
246
|
+
}
|
|
247
|
+
replace(e, t) {
|
|
248
|
+
let n = this.getNode(e);
|
|
249
|
+
if (n) {
|
|
250
|
+
let e = this.nodeMetaMap.get(n);
|
|
251
|
+
e && this.nodeMetaMap.set(t, e);
|
|
252
|
+
}
|
|
253
|
+
this.idNodeMap.set(e, t);
|
|
254
|
+
}
|
|
255
|
+
reset() {
|
|
256
|
+
this.idNodeMap = /* @__PURE__ */ new Map(), this.nodeMetaMap = /* @__PURE__ */ new WeakMap();
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
function ue() {
|
|
260
|
+
return new F();
|
|
261
|
+
}
|
|
262
|
+
function de({ element: e, maskInputOptions: t, tagName: n, type: r, value: i, maskInputFn: a }) {
|
|
263
|
+
let o = i || "", s = r && I(r);
|
|
264
|
+
return (t[n.toLowerCase()] || s && t[s]) && (o = a ? a(o, e) : "*".repeat(o.length)), o;
|
|
265
|
+
}
|
|
266
|
+
function I(e) {
|
|
267
|
+
return e.toLowerCase();
|
|
268
|
+
}
|
|
269
|
+
var fe = "__rrweb_original__";
|
|
270
|
+
function pe(e) {
|
|
271
|
+
let t = e.getContext("2d");
|
|
272
|
+
if (!t) return !0;
|
|
273
|
+
for (let n = 0; n < e.width; n += 50) for (let r = 0; r < e.height; r += 50) {
|
|
274
|
+
let i = t.getImageData, a = fe in i ? i[fe] : i;
|
|
275
|
+
if (new Uint32Array(a.call(t, n, r, Math.min(50, e.width - n), Math.min(50, e.height - r)).data.buffer).some((e) => e !== 0)) return !1;
|
|
276
|
+
}
|
|
277
|
+
return !0;
|
|
278
|
+
}
|
|
279
|
+
function me(e, t) {
|
|
280
|
+
return !e || !t || e.type !== t.type ? !1 : e.type === r.Document ? e.compatMode === t.compatMode : e.type === r.DocumentType ? e.name === t.name && e.publicId === t.publicId && e.systemId === t.systemId : e.type === r.Comment || e.type === r.Text || e.type === r.CDATA ? e.textContent === t.textContent : e.type === r.Element && e.tagName === t.tagName && JSON.stringify(e.attributes) === JSON.stringify(t.attributes) && e.isSVG === t.isSVG && e.needBlock === t.needBlock;
|
|
281
|
+
}
|
|
282
|
+
function he(e) {
|
|
283
|
+
let t = e.type;
|
|
284
|
+
return e.hasAttribute("data-rr-is-password") ? "password" : t ? I(t) : null;
|
|
285
|
+
}
|
|
286
|
+
function L(e, t) {
|
|
287
|
+
let n;
|
|
288
|
+
try {
|
|
289
|
+
n = new URL(e, t ?? window.location.href);
|
|
290
|
+
} catch {
|
|
291
|
+
return null;
|
|
292
|
+
}
|
|
293
|
+
return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1] ?? null;
|
|
294
|
+
}
|
|
295
|
+
function ge(e) {
|
|
296
|
+
let t = "";
|
|
297
|
+
return t = e.indexOf("//") > -1 ? e.split("/").slice(0, 3).join("/") : e.split("/")[0], t = t.split("?")[0], t;
|
|
298
|
+
}
|
|
299
|
+
var _e = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, ve = /^(?:[a-z+]+:)?\/\//i, ye = /^www\..*/i, be = /^(data:)([^,]*),(.*)/i;
|
|
300
|
+
function R(e, t) {
|
|
301
|
+
return (e || "").replace(_e, (e, n, r, i, a, o) => {
|
|
302
|
+
let s = r || a || o, c = n || i || "";
|
|
303
|
+
if (!s) return e;
|
|
304
|
+
if (ve.test(s) || ye.test(s) || be.test(s)) return `url(${c}${s}${c})`;
|
|
305
|
+
if (s[0] === "/") return `url(${c}${ge(t) + s}${c})`;
|
|
306
|
+
let l = s.split("#")[0], u = s.substring(l.length), d = t.split("#")[0].split("/"), f = l.split("/");
|
|
307
|
+
d.pop();
|
|
308
|
+
for (let e of f) if (e === ".") continue;
|
|
309
|
+
else e === ".." ? d.pop() : d.push(e);
|
|
310
|
+
return `url(${c}${d.join("/")}${u}${c})`;
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
var xe = "(?:/\\*[^*]*\\*/)|[\\s;]", Se = RegExp(`${xe}|\\b(0)px?`, "g"), Ce = new RegExp(xe, "g");
|
|
314
|
+
function z(e, t = !1) {
|
|
315
|
+
return t ? e.replace(Ce, "") : e.replace(Se, "$1");
|
|
316
|
+
}
|
|
317
|
+
function we(e, t, n = !1) {
|
|
318
|
+
let r = Array.from(t.childNodes), i = [], a = 0;
|
|
319
|
+
if (r.length > 1 && e && typeof e == "string") {
|
|
320
|
+
let t = z(e, n), o = t.length / e.length;
|
|
321
|
+
for (let s = 1; s < r.length; s++) if (r[s].textContent && typeof r[s].textContent == "string") {
|
|
322
|
+
let c = z(r[s].textContent, n), l = 3;
|
|
323
|
+
for (; l < c.length && (c[l].match(/[a-zA-Z0-9]/) || c.indexOf(c.substring(0, l), 1) !== -1); l++);
|
|
324
|
+
for (; l < c.length; l++) {
|
|
325
|
+
let u = c.substring(0, l), d = t.split(u), f = -1;
|
|
326
|
+
if (d.length === 2) f = d[0].length;
|
|
327
|
+
else if (d.length > 2 && d[0] === "" && r[s - 1].textContent !== "") f = t.indexOf(u, 1);
|
|
328
|
+
else if (d.length === 1) {
|
|
329
|
+
if (u = u.substring(0, u.length - 1), d = t.split(u), d.length <= 1) return i.push(e), i;
|
|
330
|
+
l = 101;
|
|
331
|
+
} else l === c.length - 1 && (f = t.indexOf(u));
|
|
332
|
+
if (d.length >= 2 && l > 100) {
|
|
333
|
+
let e = r[s - 1].textContent;
|
|
334
|
+
if (e && typeof e == "string") {
|
|
335
|
+
let n = z(e).length;
|
|
336
|
+
f = t.indexOf(u, n);
|
|
337
|
+
}
|
|
338
|
+
f === -1 && (f = d[0].length);
|
|
339
|
+
}
|
|
340
|
+
if (f !== -1) {
|
|
341
|
+
let s = Math.floor(f / o);
|
|
342
|
+
for (; s > 0 && s < e.length;) {
|
|
343
|
+
if (a += 1, a > 50 * r.length) return i.push(e), i;
|
|
344
|
+
let c = z(e.substring(0, s), n);
|
|
345
|
+
if (c.length === f) {
|
|
346
|
+
i.push(e.substring(0, s)), e = e.substring(s), t = t.substring(f);
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
c.length < f ? s += Math.max(1, Math.floor((f - c.length) / o)) : s -= Math.max(1, Math.floor((c.length - f) * o));
|
|
350
|
+
}
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return i.push(e), i;
|
|
357
|
+
}
|
|
358
|
+
function Te(e, t) {
|
|
359
|
+
return we(e, t).join("/* rr_split */");
|
|
360
|
+
}
|
|
361
|
+
var Ee = 1, De = /* @__PURE__ */ RegExp("[^a-z0-9-_:]"), Oe = -2;
|
|
362
|
+
function ke() {
|
|
363
|
+
return Ee++;
|
|
364
|
+
}
|
|
365
|
+
function Ae(e) {
|
|
366
|
+
if (e instanceof HTMLFormElement) return "form";
|
|
367
|
+
let t = I(e.tagName);
|
|
368
|
+
return De.test(t) ? "div" : t;
|
|
369
|
+
}
|
|
370
|
+
var B, je, Me = /^[^ \t\n\r\u000c]+/, Ne = /^[, \t\n\r\u000c]+/;
|
|
371
|
+
function Pe(e, t) {
|
|
372
|
+
if (t.trim() === "") return t;
|
|
373
|
+
let n = 0;
|
|
374
|
+
function r(e) {
|
|
375
|
+
let r, i = e.exec(t.substring(n));
|
|
376
|
+
return i ? (r = i[0], n += r.length, r) : "";
|
|
377
|
+
}
|
|
378
|
+
let i = [];
|
|
379
|
+
for (; r(Ne), !(n >= t.length);) {
|
|
380
|
+
let a = r(Me);
|
|
381
|
+
if (a.slice(-1) === ",") a = V(e, a.substring(0, a.length - 1)), i.push(a);
|
|
382
|
+
else {
|
|
383
|
+
let r = "";
|
|
384
|
+
a = V(e, a);
|
|
385
|
+
let o = !1;
|
|
386
|
+
for (;;) {
|
|
387
|
+
let e = t.charAt(n);
|
|
388
|
+
if (e === "") {
|
|
389
|
+
i.push((a + r).trim());
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
if (o) e === ")" && (o = !1);
|
|
393
|
+
else {
|
|
394
|
+
if (e === ",") {
|
|
395
|
+
n += 1, i.push((a + r).trim());
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
e === "(" && (o = !0);
|
|
399
|
+
}
|
|
400
|
+
r += e, n += 1;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
return i.join(", ");
|
|
405
|
+
}
|
|
406
|
+
var Fe = /* @__PURE__ */ new WeakMap();
|
|
407
|
+
function V(e, t) {
|
|
408
|
+
return !t || t.trim() === "" ? t : Le(e, t);
|
|
409
|
+
}
|
|
410
|
+
function Ie(e) {
|
|
411
|
+
return !!(e.tagName === "svg" || e.ownerSVGElement);
|
|
412
|
+
}
|
|
413
|
+
function Le(e, t) {
|
|
414
|
+
let n = Fe.get(e);
|
|
415
|
+
if (n || (n = e.createElement("a"), Fe.set(e, n)), !t) t = "";
|
|
416
|
+
else if (t.startsWith("blob:") || t.startsWith("data:")) return t;
|
|
417
|
+
return n.setAttribute("href", t), n.href;
|
|
418
|
+
}
|
|
419
|
+
function Re(e, t, n, r) {
|
|
420
|
+
return r && (n === "src" || n === "href" && (t !== "use" || r[0] !== "#") || n === "xlink:href" && r[0] !== "#" || n === "background" && [
|
|
421
|
+
"table",
|
|
422
|
+
"td",
|
|
423
|
+
"th"
|
|
424
|
+
].includes(t) ? V(e, r) : n === "srcset" ? Pe(e, r) : n === "style" ? R(r, Le(e)) : t === "object" && n === "data" ? V(e, r) : r);
|
|
425
|
+
}
|
|
426
|
+
function ze(e, t, n) {
|
|
427
|
+
return ["video", "audio"].includes(e) && I(t) === "autoplay";
|
|
428
|
+
}
|
|
429
|
+
function Be(e, t, n) {
|
|
430
|
+
try {
|
|
431
|
+
if (typeof t == "string") {
|
|
432
|
+
if (e.classList.contains(t)) return !0;
|
|
433
|
+
} else for (let n = e.classList.length; n--;) {
|
|
434
|
+
let r = e.classList[n];
|
|
435
|
+
if (t.test(r)) return !0;
|
|
436
|
+
}
|
|
437
|
+
if (n) return e.matches(n);
|
|
438
|
+
} catch {}
|
|
439
|
+
return !1;
|
|
440
|
+
}
|
|
441
|
+
function Ve(e, t, n) {
|
|
442
|
+
if (!e) return !1;
|
|
443
|
+
if (e.nodeType !== e.ELEMENT_NODE) return n ? Ve(j.parentNode(e), t, n) : !1;
|
|
444
|
+
for (let n = e.classList.length; n--;) {
|
|
445
|
+
let r = e.classList[n];
|
|
446
|
+
if (t.test(r)) return !0;
|
|
447
|
+
}
|
|
448
|
+
return n ? Ve(j.parentNode(e), t, n) : !1;
|
|
449
|
+
}
|
|
450
|
+
function He(e, t, n, r) {
|
|
451
|
+
let i;
|
|
452
|
+
if (M(e)) {
|
|
453
|
+
if (i = e, !j.childNodes(i).length) return !1;
|
|
454
|
+
} else if (j.parentElement(e) === null) return !1;
|
|
455
|
+
else i = j.parentElement(e);
|
|
456
|
+
try {
|
|
457
|
+
if (typeof t == "string") {
|
|
458
|
+
if (r) {
|
|
459
|
+
if (i.closest(`.${t}`)) return !0;
|
|
460
|
+
} else if (i.classList.contains(t)) return !0;
|
|
461
|
+
} else if (Ve(i, t, r)) return !0;
|
|
462
|
+
if (n) {
|
|
463
|
+
if (r) {
|
|
464
|
+
if (i.closest(n)) return !0;
|
|
465
|
+
} else if (i.matches(n)) return !0;
|
|
466
|
+
}
|
|
467
|
+
} catch {}
|
|
468
|
+
return !1;
|
|
469
|
+
}
|
|
470
|
+
function Ue(e, t, n) {
|
|
471
|
+
let r = e.contentWindow;
|
|
472
|
+
if (!r) return;
|
|
473
|
+
let i = !1, a;
|
|
474
|
+
try {
|
|
475
|
+
a = r.document.readyState;
|
|
476
|
+
} catch {
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
if (a !== "complete") {
|
|
480
|
+
let r = setTimeout(() => {
|
|
481
|
+
i ||= (t(), !0);
|
|
482
|
+
}, n);
|
|
483
|
+
e.addEventListener("load", () => {
|
|
484
|
+
clearTimeout(r), i = !0, t();
|
|
485
|
+
});
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
let o = "about:blank";
|
|
489
|
+
if (r.location.href !== o || e.src === o || e.src === "") return setTimeout(t, 0), e.addEventListener("load", t);
|
|
490
|
+
e.addEventListener("load", t);
|
|
491
|
+
}
|
|
492
|
+
function We(e, t, n) {
|
|
493
|
+
let r = !1, i;
|
|
494
|
+
try {
|
|
495
|
+
i = e.sheet;
|
|
496
|
+
} catch {
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
if (i) return;
|
|
500
|
+
let a = setTimeout(() => {
|
|
501
|
+
r ||= (t(), !0);
|
|
502
|
+
}, n);
|
|
503
|
+
e.addEventListener("load", () => {
|
|
504
|
+
clearTimeout(a), r = !0, t();
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
function Ge(e, t) {
|
|
508
|
+
let { doc: n, mirror: i, blockClass: a, blockSelector: o, needsMask: s, inlineStylesheet: c, maskInputOptions: l = {}, maskTextFn: u, maskInputFn: d, dataURLOptions: f = {}, inlineImages: p, recordCanvas: m, keepIframeSrcFn: h, newlyAddedElement: g = !1, cssCaptured: _ = !1 } = t, v = Ke(n, i);
|
|
509
|
+
switch (e.nodeType) {
|
|
510
|
+
case e.DOCUMENT_NODE: return e.compatMode === "CSS1Compat" ? {
|
|
511
|
+
type: r.Document,
|
|
512
|
+
childNodes: []
|
|
513
|
+
} : {
|
|
514
|
+
type: r.Document,
|
|
515
|
+
childNodes: [],
|
|
516
|
+
compatMode: e.compatMode
|
|
517
|
+
};
|
|
518
|
+
case e.DOCUMENT_TYPE_NODE: return {
|
|
519
|
+
type: r.DocumentType,
|
|
520
|
+
name: e.name,
|
|
521
|
+
publicId: e.publicId,
|
|
522
|
+
systemId: e.systemId,
|
|
523
|
+
rootId: v
|
|
524
|
+
};
|
|
525
|
+
case e.ELEMENT_NODE: return Je(e, {
|
|
526
|
+
doc: n,
|
|
527
|
+
blockClass: a,
|
|
528
|
+
blockSelector: o,
|
|
529
|
+
inlineStylesheet: c,
|
|
530
|
+
maskInputOptions: l,
|
|
531
|
+
maskInputFn: d,
|
|
532
|
+
dataURLOptions: f,
|
|
533
|
+
inlineImages: p,
|
|
534
|
+
recordCanvas: m,
|
|
535
|
+
keepIframeSrcFn: h,
|
|
536
|
+
newlyAddedElement: g,
|
|
537
|
+
rootId: v
|
|
538
|
+
});
|
|
539
|
+
case e.TEXT_NODE: return qe(e, {
|
|
540
|
+
doc: n,
|
|
541
|
+
needsMask: s,
|
|
542
|
+
maskTextFn: u,
|
|
543
|
+
rootId: v,
|
|
544
|
+
cssCaptured: _
|
|
545
|
+
});
|
|
546
|
+
case e.CDATA_SECTION_NODE: return {
|
|
547
|
+
type: r.CDATA,
|
|
548
|
+
textContent: "",
|
|
549
|
+
rootId: v
|
|
550
|
+
};
|
|
551
|
+
case e.COMMENT_NODE: return {
|
|
552
|
+
type: r.Comment,
|
|
553
|
+
textContent: j.textContent(e) || "",
|
|
554
|
+
rootId: v
|
|
555
|
+
};
|
|
556
|
+
default: return !1;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function Ke(e, t) {
|
|
560
|
+
if (!t.hasNode(e)) return;
|
|
561
|
+
let n = t.getId(e);
|
|
562
|
+
return n === 1 ? void 0 : n;
|
|
563
|
+
}
|
|
564
|
+
function qe(e, t) {
|
|
565
|
+
let { needsMask: n, maskTextFn: i, rootId: a, cssCaptured: o } = t, s = j.parentNode(e), c = s && s.tagName, l = "", u = c === "STYLE" || void 0, d = c === "SCRIPT" || void 0;
|
|
566
|
+
return d ? l = "SCRIPT_PLACEHOLDER" : o || (l = j.textContent(e), u && l && (l = R(l, Le(t.doc)))), !u && !d && l && n && (l = i ? i(l, j.parentElement(e)) : l.replace(/[\S]/g, "*")), {
|
|
567
|
+
type: r.Text,
|
|
568
|
+
textContent: l || "",
|
|
569
|
+
rootId: a
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
function Je(e, t) {
|
|
573
|
+
let { doc: n, blockClass: i, blockSelector: a, inlineStylesheet: o, maskInputOptions: s = {}, maskInputFn: c, dataURLOptions: l = {}, inlineImages: u, recordCanvas: d, keepIframeSrcFn: f, newlyAddedElement: p = !1, rootId: m } = t, h = Be(e, i, a), g = Ae(e), _ = {}, v = e.attributes.length;
|
|
574
|
+
for (let t = 0; t < v; t++) {
|
|
575
|
+
let r = e.attributes[t];
|
|
576
|
+
ze(g, r.name, r.value) || (_[r.name] = Re(n, g, I(r.name), r.value));
|
|
577
|
+
}
|
|
578
|
+
if (g === "link" && o) {
|
|
579
|
+
let t = Array.from(n.styleSheets).find((t) => t.href === e.href), r = null;
|
|
580
|
+
t && (r = P(t)), r && (delete _.rel, delete _.href, _._cssText = r);
|
|
581
|
+
}
|
|
582
|
+
if (g === "style" && e.sheet) {
|
|
583
|
+
let t = P(e.sheet);
|
|
584
|
+
t && (e.childNodes.length > 1 && (t = Te(t, e)), _._cssText = t);
|
|
585
|
+
}
|
|
586
|
+
if ([
|
|
587
|
+
"input",
|
|
588
|
+
"textarea",
|
|
589
|
+
"select"
|
|
590
|
+
].includes(g)) {
|
|
591
|
+
let t = e.value, n = e.checked;
|
|
592
|
+
_.type !== "radio" && _.type !== "checkbox" && _.type !== "submit" && _.type !== "button" && t ? _.value = de({
|
|
593
|
+
element: e,
|
|
594
|
+
type: he(e),
|
|
595
|
+
tagName: g,
|
|
596
|
+
value: t,
|
|
597
|
+
maskInputOptions: s,
|
|
598
|
+
maskInputFn: c
|
|
599
|
+
}) : n && (_.checked = n);
|
|
600
|
+
}
|
|
601
|
+
if (g === "option" && (e.selected && !s.select ? _.selected = !0 : delete _.selected), g === "dialog" && e.open && (_.rr_open_mode = e.matches("dialog:modal") ? "modal" : "non-modal"), g === "canvas" && d) {
|
|
602
|
+
if (e.__context === "2d") pe(e) || (_.rr_dataURL = e.toDataURL(l.type, l.quality));
|
|
603
|
+
else if (!("__context" in e)) {
|
|
604
|
+
let t = e.toDataURL(l.type, l.quality), r = n.createElement("canvas");
|
|
605
|
+
r.width = e.width, r.height = e.height, t !== r.toDataURL(l.type, l.quality) && (_.rr_dataURL = t);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
if (g === "img" && u) {
|
|
609
|
+
B || (B = n.createElement("canvas"), je = B.getContext("2d"));
|
|
610
|
+
let t = e, r = t.currentSrc || t.getAttribute("src") || "<unknown-src>", i = t.crossOrigin, a = () => {
|
|
611
|
+
t.removeEventListener("load", a);
|
|
612
|
+
try {
|
|
613
|
+
B.width = t.naturalWidth, B.height = t.naturalHeight, je.drawImage(t, 0, 0), _.rr_dataURL = B.toDataURL(l.type, l.quality);
|
|
614
|
+
} catch (e) {
|
|
615
|
+
if (t.crossOrigin !== "anonymous") {
|
|
616
|
+
t.crossOrigin = "anonymous", t.complete && t.naturalWidth !== 0 ? a() : t.addEventListener("load", a);
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
console.warn(`Cannot inline img src=${r}! Error: ${e}`);
|
|
620
|
+
}
|
|
621
|
+
t.crossOrigin === "anonymous" && (i ? _.crossOrigin = i : t.removeAttribute("crossorigin"));
|
|
622
|
+
};
|
|
623
|
+
t.complete && t.naturalWidth !== 0 ? a() : t.addEventListener("load", a);
|
|
624
|
+
}
|
|
625
|
+
if (["audio", "video"].includes(g)) {
|
|
626
|
+
let t = _;
|
|
627
|
+
t.rr_mediaState = e.paused ? "paused" : "played", t.rr_mediaCurrentTime = e.currentTime, t.rr_mediaPlaybackRate = e.playbackRate, t.rr_mediaMuted = e.muted, t.rr_mediaLoop = e.loop, t.rr_mediaVolume = e.volume;
|
|
628
|
+
}
|
|
629
|
+
if (p || (e.scrollLeft && (_.rr_scrollLeft = e.scrollLeft), e.scrollTop && (_.rr_scrollTop = e.scrollTop)), h) {
|
|
630
|
+
let { width: t, height: n } = e.getBoundingClientRect();
|
|
631
|
+
_ = {
|
|
632
|
+
class: _.class,
|
|
633
|
+
rr_width: `${t}px`,
|
|
634
|
+
rr_height: `${n}px`
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
g === "iframe" && !f(_.src) && (e.contentDocument || (_.rr_src = _.src), delete _.src);
|
|
638
|
+
let y;
|
|
639
|
+
try {
|
|
640
|
+
customElements.get(g) && (y = !0);
|
|
641
|
+
} catch {}
|
|
642
|
+
return {
|
|
643
|
+
type: r.Element,
|
|
644
|
+
tagName: g,
|
|
645
|
+
attributes: _,
|
|
646
|
+
childNodes: [],
|
|
647
|
+
isSVG: Ie(e) || void 0,
|
|
648
|
+
needBlock: h,
|
|
649
|
+
rootId: m,
|
|
650
|
+
isCustom: y
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
function H(e) {
|
|
654
|
+
return e == null ? "" : e.toLowerCase();
|
|
655
|
+
}
|
|
656
|
+
function Ye(e) {
|
|
657
|
+
return e === !0 || e === "all" ? {
|
|
658
|
+
script: !0,
|
|
659
|
+
comment: !0,
|
|
660
|
+
headFavicon: !0,
|
|
661
|
+
headWhitespace: !0,
|
|
662
|
+
headMetaSocial: !0,
|
|
663
|
+
headMetaRobots: !0,
|
|
664
|
+
headMetaHttpEquiv: !0,
|
|
665
|
+
headMetaVerification: !0,
|
|
666
|
+
headMetaAuthorship: e === "all",
|
|
667
|
+
headMetaDescKeywords: e === "all",
|
|
668
|
+
headTitleMutations: e === "all"
|
|
669
|
+
} : e || {};
|
|
670
|
+
}
|
|
671
|
+
function Xe(e, t) {
|
|
672
|
+
return !!(t.comment && e.type === r.Comment || e.type === r.Element && (t.script && (e.tagName === "script" || e.tagName === "link" && (e.attributes.rel === "preload" && e.attributes.as === "script" || e.attributes.rel === "modulepreload") || e.tagName === "link" && e.attributes.rel === "prefetch" && typeof e.attributes.href == "string" && L(e.attributes.href) === "js") || t.headFavicon && (e.tagName === "link" && e.attributes.rel === "shortcut icon" || e.tagName === "meta" && (H(e.attributes.name).match(/^msapplication-tile(image|color)$/) || H(e.attributes.name) === "application-name" || H(e.attributes.rel) === "icon" || H(e.attributes.rel) === "apple-touch-icon" || H(e.attributes.rel) === "shortcut icon")) || e.tagName === "meta" && (t.headMetaDescKeywords && H(e.attributes.name).match(/^description|keywords$/) || t.headMetaSocial && (H(e.attributes.property).match(/^(og|twitter|fb):/) || H(e.attributes.name).match(/^(og|twitter):/) || H(e.attributes.name) === "pinterest") || t.headMetaRobots && (H(e.attributes.name) === "robots" || H(e.attributes.name) === "googlebot" || H(e.attributes.name) === "bingbot") || t.headMetaHttpEquiv && e.attributes["http-equiv"] !== void 0 || t.headMetaAuthorship && (H(e.attributes.name) === "author" || H(e.attributes.name) === "generator" || H(e.attributes.name) === "framework" || H(e.attributes.name) === "publisher" || H(e.attributes.name) === "progid" || H(e.attributes.property).match(/^article:/) || H(e.attributes.property).match(/^product:/)) || t.headMetaVerification && (H(e.attributes.name) === "google-site-verification" || H(e.attributes.name) === "yandex-verification" || H(e.attributes.name) === "csrf-token" || H(e.attributes.name) === "p:domain_verify" || H(e.attributes.name) === "verify-v1" || H(e.attributes.name) === "verification" || H(e.attributes.name) === "shopify-checkout-api-token"))));
|
|
673
|
+
}
|
|
674
|
+
function U(e, t) {
|
|
675
|
+
let { doc: n, mirror: i, blockClass: a, blockSelector: o, maskTextClass: s, maskTextSelector: c, skipChild: l = !1, inlineStylesheet: u = !0, maskInputOptions: d = {}, maskTextFn: f, maskInputFn: p, slimDOMOptions: m, dataURLOptions: h = {}, inlineImages: g = !1, recordCanvas: _ = !1, onSerialize: v, onIframeLoad: y, iframeLoadTimeout: b = 5e3, onStylesheetLoad: x, stylesheetLoadTimeout: S = 5e3, keepIframeSrcFn: C = () => !1, newlyAddedElement: w = !1, cssCaptured: ee = !1 } = t, { needsMask: T } = t, { preserveWhiteSpace: E = !0 } = t;
|
|
676
|
+
T ||= He(e, s, c, T === void 0);
|
|
677
|
+
let D = Ge(e, {
|
|
678
|
+
doc: n,
|
|
679
|
+
mirror: i,
|
|
680
|
+
blockClass: a,
|
|
681
|
+
blockSelector: o,
|
|
682
|
+
needsMask: T,
|
|
683
|
+
inlineStylesheet: u,
|
|
684
|
+
maskInputOptions: d,
|
|
685
|
+
maskTextFn: f,
|
|
686
|
+
maskInputFn: p,
|
|
687
|
+
dataURLOptions: h,
|
|
688
|
+
inlineImages: g,
|
|
689
|
+
recordCanvas: _,
|
|
690
|
+
keepIframeSrcFn: C,
|
|
691
|
+
newlyAddedElement: w,
|
|
692
|
+
cssCaptured: ee
|
|
693
|
+
});
|
|
694
|
+
if (!D) return console.warn(e, "not serialized"), null;
|
|
695
|
+
let O;
|
|
696
|
+
O = i.hasNode(e) ? i.getId(e) : Xe(D, m) || !E && D.type === r.Text && !D.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : ke();
|
|
697
|
+
let k = Object.assign(D, { id: O });
|
|
698
|
+
if (i.add(e, k), O === -2) return null;
|
|
699
|
+
v && v(e);
|
|
700
|
+
let te = !l;
|
|
701
|
+
if (k.type === r.Element) {
|
|
702
|
+
te &&= !k.needBlock, delete k.needBlock;
|
|
703
|
+
let t = j.shadowRoot(e);
|
|
704
|
+
t && N(t) && (k.isShadowHost = !0);
|
|
705
|
+
}
|
|
706
|
+
if ((k.type === r.Document || k.type === r.Element) && te) {
|
|
707
|
+
m.headWhitespace && k.type === r.Element && k.tagName === "head" && (E = !1);
|
|
708
|
+
let t = {
|
|
709
|
+
doc: n,
|
|
710
|
+
mirror: i,
|
|
711
|
+
blockClass: a,
|
|
712
|
+
blockSelector: o,
|
|
713
|
+
needsMask: T,
|
|
714
|
+
maskTextClass: s,
|
|
715
|
+
maskTextSelector: c,
|
|
716
|
+
skipChild: l,
|
|
717
|
+
inlineStylesheet: u,
|
|
718
|
+
maskInputOptions: d,
|
|
719
|
+
maskTextFn: f,
|
|
720
|
+
maskInputFn: p,
|
|
721
|
+
slimDOMOptions: m,
|
|
722
|
+
dataURLOptions: h,
|
|
723
|
+
inlineImages: g,
|
|
724
|
+
recordCanvas: _,
|
|
725
|
+
preserveWhiteSpace: E,
|
|
726
|
+
onSerialize: v,
|
|
727
|
+
onIframeLoad: y,
|
|
728
|
+
iframeLoadTimeout: b,
|
|
729
|
+
onStylesheetLoad: x,
|
|
730
|
+
stylesheetLoadTimeout: S,
|
|
731
|
+
keepIframeSrcFn: C,
|
|
732
|
+
cssCaptured: !1
|
|
733
|
+
};
|
|
734
|
+
if (k.type !== r.Element || k.tagName !== "textarea" || k.attributes.value === void 0) {
|
|
735
|
+
k.type === r.Element && k.attributes._cssText !== void 0 && typeof k.attributes._cssText == "string" && (t.cssCaptured = !0);
|
|
736
|
+
for (let n of Array.from(j.childNodes(e))) {
|
|
737
|
+
let e = U(n, t);
|
|
738
|
+
e && k.childNodes.push(e);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
let w = null;
|
|
742
|
+
if (M(e) && (w = j.shadowRoot(e))) for (let e of Array.from(j.childNodes(w))) {
|
|
743
|
+
let n = U(e, t);
|
|
744
|
+
n && (N(w) && (n.isShadow = !0), k.childNodes.push(n));
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
let A = j.parentNode(e);
|
|
748
|
+
return A && re(A) && N(A) && (k.isShadow = !0), k.type === r.Element && k.tagName === "iframe" && Ue(e, () => {
|
|
749
|
+
let t = e.contentDocument;
|
|
750
|
+
if (t && y) {
|
|
751
|
+
let n = U(t, {
|
|
752
|
+
doc: t,
|
|
753
|
+
mirror: i,
|
|
754
|
+
blockClass: a,
|
|
755
|
+
blockSelector: o,
|
|
756
|
+
needsMask: T,
|
|
757
|
+
maskTextClass: s,
|
|
758
|
+
maskTextSelector: c,
|
|
759
|
+
skipChild: !1,
|
|
760
|
+
inlineStylesheet: u,
|
|
761
|
+
maskInputOptions: d,
|
|
762
|
+
maskTextFn: f,
|
|
763
|
+
maskInputFn: p,
|
|
764
|
+
slimDOMOptions: m,
|
|
765
|
+
dataURLOptions: h,
|
|
766
|
+
inlineImages: g,
|
|
767
|
+
recordCanvas: _,
|
|
768
|
+
preserveWhiteSpace: E,
|
|
769
|
+
onSerialize: v,
|
|
770
|
+
onIframeLoad: y,
|
|
771
|
+
iframeLoadTimeout: b,
|
|
772
|
+
onStylesheetLoad: x,
|
|
773
|
+
stylesheetLoadTimeout: S,
|
|
774
|
+
keepIframeSrcFn: C
|
|
775
|
+
});
|
|
776
|
+
n && y(e, n);
|
|
777
|
+
}
|
|
778
|
+
}, b), k.type === r.Element && k.tagName === "link" && typeof k.attributes.rel == "string" && (k.attributes.rel === "stylesheet" || k.attributes.rel === "preload" && typeof k.attributes.href == "string" && L(k.attributes.href) === "css") && We(e, () => {
|
|
779
|
+
if (x) {
|
|
780
|
+
let t = U(e, {
|
|
781
|
+
doc: n,
|
|
782
|
+
mirror: i,
|
|
783
|
+
blockClass: a,
|
|
784
|
+
blockSelector: o,
|
|
785
|
+
needsMask: T,
|
|
786
|
+
maskTextClass: s,
|
|
787
|
+
maskTextSelector: c,
|
|
788
|
+
skipChild: !1,
|
|
789
|
+
inlineStylesheet: u,
|
|
790
|
+
maskInputOptions: d,
|
|
791
|
+
maskTextFn: f,
|
|
792
|
+
maskInputFn: p,
|
|
793
|
+
slimDOMOptions: m,
|
|
794
|
+
dataURLOptions: h,
|
|
795
|
+
inlineImages: g,
|
|
796
|
+
recordCanvas: _,
|
|
797
|
+
preserveWhiteSpace: E,
|
|
798
|
+
onSerialize: v,
|
|
799
|
+
onIframeLoad: y,
|
|
800
|
+
iframeLoadTimeout: b,
|
|
801
|
+
onStylesheetLoad: x,
|
|
802
|
+
stylesheetLoadTimeout: S,
|
|
803
|
+
keepIframeSrcFn: C
|
|
804
|
+
});
|
|
805
|
+
t && x(e, t);
|
|
806
|
+
}
|
|
807
|
+
}, S), k;
|
|
808
|
+
}
|
|
809
|
+
function Ze(e, t) {
|
|
810
|
+
let { mirror: n = new F(), blockClass: r = "rr-block", blockSelector: i = null, maskTextClass: a = "rr-mask", maskTextSelector: o = null, inlineStylesheet: s = !0, inlineImages: c = !1, recordCanvas: l = !1, maskAllInputs: u = !1, maskTextFn: d, maskInputFn: f, slimDOM: p = !1, dataURLOptions: m, preserveWhiteSpace: h, onSerialize: g, onIframeLoad: _, iframeLoadTimeout: v, onStylesheetLoad: y, stylesheetLoadTimeout: b, keepIframeSrcFn: x = () => !1 } = t || {};
|
|
811
|
+
return U(e, {
|
|
812
|
+
doc: e,
|
|
813
|
+
mirror: n,
|
|
814
|
+
blockClass: r,
|
|
815
|
+
blockSelector: i,
|
|
816
|
+
maskTextClass: a,
|
|
817
|
+
maskTextSelector: o,
|
|
818
|
+
skipChild: !1,
|
|
819
|
+
inlineStylesheet: s,
|
|
820
|
+
maskInputOptions: u === !0 ? {
|
|
821
|
+
color: !0,
|
|
822
|
+
date: !0,
|
|
823
|
+
"datetime-local": !0,
|
|
824
|
+
email: !0,
|
|
825
|
+
month: !0,
|
|
826
|
+
number: !0,
|
|
827
|
+
range: !0,
|
|
828
|
+
search: !0,
|
|
829
|
+
tel: !0,
|
|
830
|
+
text: !0,
|
|
831
|
+
time: !0,
|
|
832
|
+
url: !0,
|
|
833
|
+
week: !0,
|
|
834
|
+
textarea: !0,
|
|
835
|
+
select: !0,
|
|
836
|
+
password: !0
|
|
837
|
+
} : u === !1 ? { password: !0 } : u,
|
|
838
|
+
maskTextFn: d,
|
|
839
|
+
maskInputFn: f,
|
|
840
|
+
slimDOMOptions: Ye(p),
|
|
841
|
+
dataURLOptions: m,
|
|
842
|
+
inlineImages: c,
|
|
843
|
+
recordCanvas: l,
|
|
844
|
+
preserveWhiteSpace: h,
|
|
845
|
+
onSerialize: g,
|
|
846
|
+
onIframeLoad: _,
|
|
847
|
+
iframeLoadTimeout: v,
|
|
848
|
+
onStylesheetLoad: y,
|
|
849
|
+
stylesheetLoadTimeout: b,
|
|
850
|
+
keepIframeSrcFn: x,
|
|
851
|
+
newlyAddedElement: !1
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
function Qe(e, t) {
|
|
855
|
+
function n(e) {
|
|
856
|
+
t(e), (e.type === r.Document || e.type === r.Element) && e.childNodes.forEach(n);
|
|
857
|
+
}
|
|
858
|
+
n(e);
|
|
859
|
+
}
|
|
860
|
+
function $e() {
|
|
861
|
+
Ee = 1;
|
|
862
|
+
}
|
|
863
|
+
var et = /* @__PURE__ */ RegExp("(max|min)-device-(width|height)", "g"), tt = {
|
|
864
|
+
postcssPlugin: "postcss-custom-selectors",
|
|
865
|
+
prepare() {
|
|
866
|
+
return {
|
|
867
|
+
postcssPlugin: "postcss-custom-selectors",
|
|
868
|
+
AtRule: function(e) {
|
|
869
|
+
e.params.match(et) && (e.params = e.params.replace(et, "$1-$2"));
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
}, nt = {
|
|
874
|
+
postcssPlugin: "postcss-hover-classes",
|
|
875
|
+
prepare: function() {
|
|
876
|
+
let e = [];
|
|
877
|
+
return { Rule: function(t) {
|
|
878
|
+
e.indexOf(t) === -1 && (e.push(t), t.selectors.forEach(function(e) {
|
|
879
|
+
e.includes(":hover") && (t.selector += ",\n" + e.replace(/:hover/g, ".\\:hover"));
|
|
880
|
+
}));
|
|
881
|
+
} };
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
function rt(e) {
|
|
885
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
886
|
+
}
|
|
887
|
+
function it(e) {
|
|
888
|
+
if (e.__esModule) return e;
|
|
889
|
+
var t = e.default;
|
|
890
|
+
if (typeof t == "function") {
|
|
891
|
+
var n = function e() {
|
|
892
|
+
return this instanceof e ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
|
893
|
+
};
|
|
894
|
+
n.prototype = t.prototype;
|
|
895
|
+
} else n = {};
|
|
896
|
+
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
|
|
897
|
+
var r = Object.getOwnPropertyDescriptor(e, t);
|
|
898
|
+
Object.defineProperty(n, t, r.get ? r : {
|
|
899
|
+
enumerable: !0,
|
|
900
|
+
get: function() {
|
|
901
|
+
return e[t];
|
|
902
|
+
}
|
|
903
|
+
});
|
|
904
|
+
}), n;
|
|
905
|
+
}
|
|
906
|
+
var W = { exports: {} }, at;
|
|
907
|
+
function ot() {
|
|
908
|
+
if (at) return W.exports;
|
|
909
|
+
at = 1;
|
|
910
|
+
var e = String, t = function() {
|
|
911
|
+
return {
|
|
912
|
+
isColorSupported: !1,
|
|
913
|
+
reset: e,
|
|
914
|
+
bold: e,
|
|
915
|
+
dim: e,
|
|
916
|
+
italic: e,
|
|
917
|
+
underline: e,
|
|
918
|
+
inverse: e,
|
|
919
|
+
hidden: e,
|
|
920
|
+
strikethrough: e,
|
|
921
|
+
black: e,
|
|
922
|
+
red: e,
|
|
923
|
+
green: e,
|
|
924
|
+
yellow: e,
|
|
925
|
+
blue: e,
|
|
926
|
+
magenta: e,
|
|
927
|
+
cyan: e,
|
|
928
|
+
white: e,
|
|
929
|
+
gray: e,
|
|
930
|
+
bgBlack: e,
|
|
931
|
+
bgRed: e,
|
|
932
|
+
bgGreen: e,
|
|
933
|
+
bgYellow: e,
|
|
934
|
+
bgBlue: e,
|
|
935
|
+
bgMagenta: e,
|
|
936
|
+
bgCyan: e,
|
|
937
|
+
bgWhite: e
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
return W.exports = t(), W.exports.createColors = t, W.exports;
|
|
941
|
+
}
|
|
942
|
+
var G = /* @__PURE__ */ it(/* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
943
|
+
__proto__: null,
|
|
944
|
+
default: {}
|
|
945
|
+
}, Symbol.toStringTag, { value: "Module" }))), st, ct;
|
|
946
|
+
function lt() {
|
|
947
|
+
if (ct) return st;
|
|
948
|
+
ct = 1;
|
|
949
|
+
let e = /* @__PURE__ */ ot(), t = G;
|
|
950
|
+
class n extends Error {
|
|
951
|
+
constructor(e, t, r, i, a, o) {
|
|
952
|
+
super(e), this.name = "CssSyntaxError", this.reason = e, a && (this.file = a), i && (this.source = i), o && (this.plugin = o), t !== void 0 && r !== void 0 && (typeof t == "number" ? (this.line = t, this.column = r) : (this.line = t.line, this.column = t.column, this.endLine = r.line, this.endColumn = r.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, n);
|
|
953
|
+
}
|
|
954
|
+
setMessage() {
|
|
955
|
+
this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", this.line !== void 0 && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
|
|
956
|
+
}
|
|
957
|
+
showSourceCode(n) {
|
|
958
|
+
if (!this.source) return "";
|
|
959
|
+
let r = this.source;
|
|
960
|
+
n ??= e.isColorSupported, t && n && (r = t(r));
|
|
961
|
+
let i = r.split(/\r?\n/), a = Math.max(this.line - 3, 0), o = Math.min(this.line + 2, i.length), s = String(o).length, c, l;
|
|
962
|
+
if (n) {
|
|
963
|
+
let { bold: t, gray: n, red: r } = e.createColors(!0);
|
|
964
|
+
c = (e) => t(r(e)), l = (e) => n(e);
|
|
965
|
+
} else c = l = (e) => e;
|
|
966
|
+
return i.slice(a, o).map((e, t) => {
|
|
967
|
+
let n = a + 1 + t, r = " " + (" " + n).slice(-s) + " | ";
|
|
968
|
+
if (n === this.line) {
|
|
969
|
+
let t = l(r.replace(/\d/g, " ")) + e.slice(0, this.column - 1).replace(/[^\t]/g, " ");
|
|
970
|
+
return c(">") + l(r) + e + "\n " + t + c("^");
|
|
971
|
+
}
|
|
972
|
+
return " " + l(r) + e;
|
|
973
|
+
}).join("\n");
|
|
974
|
+
}
|
|
975
|
+
toString() {
|
|
976
|
+
let e = this.showSourceCode();
|
|
977
|
+
return e &&= "\n\n" + e + "\n", this.name + ": " + this.message + e;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
return st = n, n.default = n, st;
|
|
981
|
+
}
|
|
982
|
+
var ut = {}, dt;
|
|
983
|
+
function ft() {
|
|
984
|
+
return dt || (dt = 1, ut.isClean = Symbol("isClean"), ut.my = Symbol("my")), ut;
|
|
985
|
+
}
|
|
986
|
+
var pt, mt;
|
|
987
|
+
function ht() {
|
|
988
|
+
if (mt) return pt;
|
|
989
|
+
mt = 1;
|
|
990
|
+
let e = {
|
|
991
|
+
after: "\n",
|
|
992
|
+
beforeClose: "\n",
|
|
993
|
+
beforeComment: "\n",
|
|
994
|
+
beforeDecl: "\n",
|
|
995
|
+
beforeOpen: " ",
|
|
996
|
+
beforeRule: "\n",
|
|
997
|
+
colon: ": ",
|
|
998
|
+
commentLeft: " ",
|
|
999
|
+
commentRight: " ",
|
|
1000
|
+
emptyBody: "",
|
|
1001
|
+
indent: " ",
|
|
1002
|
+
semicolon: !1
|
|
1003
|
+
};
|
|
1004
|
+
function t(e) {
|
|
1005
|
+
return e[0].toUpperCase() + e.slice(1);
|
|
1006
|
+
}
|
|
1007
|
+
class n {
|
|
1008
|
+
constructor(e) {
|
|
1009
|
+
this.builder = e;
|
|
1010
|
+
}
|
|
1011
|
+
atrule(e, t) {
|
|
1012
|
+
let n = "@" + e.name, r = e.params ? this.rawValue(e, "params") : "";
|
|
1013
|
+
if (e.raws.afterName === void 0 ? r && (n += " ") : n += e.raws.afterName, e.nodes) this.block(e, n + r);
|
|
1014
|
+
else {
|
|
1015
|
+
let i = (e.raws.between || "") + (t ? ";" : "");
|
|
1016
|
+
this.builder(n + r + i, e);
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
beforeAfter(e, t) {
|
|
1020
|
+
let n;
|
|
1021
|
+
n = e.type === "decl" ? this.raw(e, null, "beforeDecl") : e.type === "comment" ? this.raw(e, null, "beforeComment") : t === "before" ? this.raw(e, null, "beforeRule") : this.raw(e, null, "beforeClose");
|
|
1022
|
+
let r = e.parent, i = 0;
|
|
1023
|
+
for (; r && r.type !== "root";) i += 1, r = r.parent;
|
|
1024
|
+
if (n.includes("\n")) {
|
|
1025
|
+
let t = this.raw(e, null, "indent");
|
|
1026
|
+
if (t.length) for (let e = 0; e < i; e++) n += t;
|
|
1027
|
+
}
|
|
1028
|
+
return n;
|
|
1029
|
+
}
|
|
1030
|
+
block(e, t) {
|
|
1031
|
+
let n = this.raw(e, "between", "beforeOpen");
|
|
1032
|
+
this.builder(t + n + "{", e, "start");
|
|
1033
|
+
let r;
|
|
1034
|
+
e.nodes && e.nodes.length ? (this.body(e), r = this.raw(e, "after")) : r = this.raw(e, "after", "emptyBody"), r && this.builder(r), this.builder("}", e, "end");
|
|
1035
|
+
}
|
|
1036
|
+
body(e) {
|
|
1037
|
+
let t = e.nodes.length - 1;
|
|
1038
|
+
for (; t > 0 && e.nodes[t].type === "comment";) --t;
|
|
1039
|
+
let n = this.raw(e, "semicolon");
|
|
1040
|
+
for (let r = 0; r < e.nodes.length; r++) {
|
|
1041
|
+
let i = e.nodes[r], a = this.raw(i, "before");
|
|
1042
|
+
a && this.builder(a), this.stringify(i, t !== r || n);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
comment(e) {
|
|
1046
|
+
let t = this.raw(e, "left", "commentLeft"), n = this.raw(e, "right", "commentRight");
|
|
1047
|
+
this.builder("/*" + t + e.text + n + "*/", e);
|
|
1048
|
+
}
|
|
1049
|
+
decl(e, t) {
|
|
1050
|
+
let n = this.raw(e, "between", "colon"), r = e.prop + n + this.rawValue(e, "value");
|
|
1051
|
+
e.important && (r += e.raws.important || " !important"), t && (r += ";"), this.builder(r, e);
|
|
1052
|
+
}
|
|
1053
|
+
document(e) {
|
|
1054
|
+
this.body(e);
|
|
1055
|
+
}
|
|
1056
|
+
raw(n, r, i) {
|
|
1057
|
+
let a;
|
|
1058
|
+
if (i ||= r, r && (a = n.raws[r], a !== void 0)) return a;
|
|
1059
|
+
let o = n.parent;
|
|
1060
|
+
if (i === "before" && (!o || o.type === "root" && o.first === n || o && o.type === "document")) return "";
|
|
1061
|
+
if (!o) return e[i];
|
|
1062
|
+
let s = n.root();
|
|
1063
|
+
if (s.rawCache ||= {}, s.rawCache[i] !== void 0) return s.rawCache[i];
|
|
1064
|
+
if (i === "before" || i === "after") return this.beforeAfter(n, i);
|
|
1065
|
+
{
|
|
1066
|
+
let e = "raw" + t(i);
|
|
1067
|
+
this[e] ? a = this[e](s, n) : s.walk((e) => {
|
|
1068
|
+
if (a = e.raws[r], a !== void 0) return !1;
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
return a === void 0 && (a = e[i]), s.rawCache[i] = a, a;
|
|
1072
|
+
}
|
|
1073
|
+
rawBeforeClose(e) {
|
|
1074
|
+
let t;
|
|
1075
|
+
return e.walk((e) => {
|
|
1076
|
+
if (e.nodes && e.nodes.length > 0 && e.raws.after !== void 0) return t = e.raws.after, t.includes("\n") && (t = t.replace(/[^\n]+$/, "")), !1;
|
|
1077
|
+
}), t &&= t.replace(/\S/g, ""), t;
|
|
1078
|
+
}
|
|
1079
|
+
rawBeforeComment(e, t) {
|
|
1080
|
+
let n;
|
|
1081
|
+
return e.walkComments((e) => {
|
|
1082
|
+
if (e.raws.before !== void 0) return n = e.raws.before, n.includes("\n") && (n = n.replace(/[^\n]+$/, "")), !1;
|
|
1083
|
+
}), n === void 0 ? n = this.raw(t, null, "beforeDecl") : n &&= n.replace(/\S/g, ""), n;
|
|
1084
|
+
}
|
|
1085
|
+
rawBeforeDecl(e, t) {
|
|
1086
|
+
let n;
|
|
1087
|
+
return e.walkDecls((e) => {
|
|
1088
|
+
if (e.raws.before !== void 0) return n = e.raws.before, n.includes("\n") && (n = n.replace(/[^\n]+$/, "")), !1;
|
|
1089
|
+
}), n === void 0 ? n = this.raw(t, null, "beforeRule") : n &&= n.replace(/\S/g, ""), n;
|
|
1090
|
+
}
|
|
1091
|
+
rawBeforeOpen(e) {
|
|
1092
|
+
let t;
|
|
1093
|
+
return e.walk((e) => {
|
|
1094
|
+
if (e.type !== "decl" && (t = e.raws.between, t !== void 0)) return !1;
|
|
1095
|
+
}), t;
|
|
1096
|
+
}
|
|
1097
|
+
rawBeforeRule(e) {
|
|
1098
|
+
let t;
|
|
1099
|
+
return e.walk((n) => {
|
|
1100
|
+
if (n.nodes && (n.parent !== e || e.first !== n) && n.raws.before !== void 0) return t = n.raws.before, t.includes("\n") && (t = t.replace(/[^\n]+$/, "")), !1;
|
|
1101
|
+
}), t &&= t.replace(/\S/g, ""), t;
|
|
1102
|
+
}
|
|
1103
|
+
rawColon(e) {
|
|
1104
|
+
let t;
|
|
1105
|
+
return e.walkDecls((e) => {
|
|
1106
|
+
if (e.raws.between !== void 0) return t = e.raws.between.replace(/[^\s:]/g, ""), !1;
|
|
1107
|
+
}), t;
|
|
1108
|
+
}
|
|
1109
|
+
rawEmptyBody(e) {
|
|
1110
|
+
let t;
|
|
1111
|
+
return e.walk((e) => {
|
|
1112
|
+
if (e.nodes && e.nodes.length === 0 && (t = e.raws.after, t !== void 0)) return !1;
|
|
1113
|
+
}), t;
|
|
1114
|
+
}
|
|
1115
|
+
rawIndent(e) {
|
|
1116
|
+
if (e.raws.indent) return e.raws.indent;
|
|
1117
|
+
let t;
|
|
1118
|
+
return e.walk((n) => {
|
|
1119
|
+
let r = n.parent;
|
|
1120
|
+
if (r && r !== e && r.parent && r.parent === e && n.raws.before !== void 0) {
|
|
1121
|
+
let e = n.raws.before.split("\n");
|
|
1122
|
+
return t = e[e.length - 1], t = t.replace(/\S/g, ""), !1;
|
|
1123
|
+
}
|
|
1124
|
+
}), t;
|
|
1125
|
+
}
|
|
1126
|
+
rawSemicolon(e) {
|
|
1127
|
+
let t;
|
|
1128
|
+
return e.walk((e) => {
|
|
1129
|
+
if (e.nodes && e.nodes.length && e.last.type === "decl" && (t = e.raws.semicolon, t !== void 0)) return !1;
|
|
1130
|
+
}), t;
|
|
1131
|
+
}
|
|
1132
|
+
rawValue(e, t) {
|
|
1133
|
+
let n = e[t], r = e.raws[t];
|
|
1134
|
+
return r && r.value === n ? r.raw : n;
|
|
1135
|
+
}
|
|
1136
|
+
root(e) {
|
|
1137
|
+
this.body(e), e.raws.after && this.builder(e.raws.after);
|
|
1138
|
+
}
|
|
1139
|
+
rule(e) {
|
|
1140
|
+
this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(e.raws.ownSemicolon, e, "end");
|
|
1141
|
+
}
|
|
1142
|
+
stringify(e, t) {
|
|
1143
|
+
if (!this[e.type]) throw Error("Unknown AST node type " + e.type + ". Maybe you need to change PostCSS stringifier.");
|
|
1144
|
+
this[e.type](e, t);
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
return pt = n, n.default = n, pt;
|
|
1148
|
+
}
|
|
1149
|
+
var gt, _t;
|
|
1150
|
+
function K() {
|
|
1151
|
+
if (_t) return gt;
|
|
1152
|
+
_t = 1;
|
|
1153
|
+
let e = ht();
|
|
1154
|
+
function t(t, n) {
|
|
1155
|
+
new e(n).stringify(t);
|
|
1156
|
+
}
|
|
1157
|
+
return gt = t, t.default = t, gt;
|
|
1158
|
+
}
|
|
1159
|
+
var vt, yt;
|
|
1160
|
+
function q() {
|
|
1161
|
+
if (yt) return vt;
|
|
1162
|
+
yt = 1;
|
|
1163
|
+
let { isClean: e, my: t } = ft(), n = lt(), r = ht(), i = K();
|
|
1164
|
+
function a(e, t) {
|
|
1165
|
+
let n = new e.constructor();
|
|
1166
|
+
for (let r in e) {
|
|
1167
|
+
if (!Object.prototype.hasOwnProperty.call(e, r) || r === "proxyCache") continue;
|
|
1168
|
+
let i = e[r], o = typeof i;
|
|
1169
|
+
r === "parent" && o === "object" ? t && (n[r] = t) : r === "source" ? n[r] = i : Array.isArray(i) ? n[r] = i.map((e) => a(e, n)) : (o === "object" && i !== null && (i = a(i)), n[r] = i);
|
|
1170
|
+
}
|
|
1171
|
+
return n;
|
|
1172
|
+
}
|
|
1173
|
+
class o {
|
|
1174
|
+
constructor(n = {}) {
|
|
1175
|
+
this.raws = {}, this[e] = !1, this[t] = !0;
|
|
1176
|
+
for (let e in n) if (e === "nodes") {
|
|
1177
|
+
this.nodes = [];
|
|
1178
|
+
for (let t of n[e]) typeof t.clone == "function" ? this.append(t.clone()) : this.append(t);
|
|
1179
|
+
} else this[e] = n[e];
|
|
1180
|
+
}
|
|
1181
|
+
addToError(e) {
|
|
1182
|
+
if (e.postcssNode = this, e.stack && this.source && /\n\s{4}at /.test(e.stack)) {
|
|
1183
|
+
let t = this.source;
|
|
1184
|
+
e.stack = e.stack.replace(/\n\s{4}at /, `$&${t.input.from}:${t.start.line}:${t.start.column}$&`);
|
|
1185
|
+
}
|
|
1186
|
+
return e;
|
|
1187
|
+
}
|
|
1188
|
+
after(e) {
|
|
1189
|
+
return this.parent.insertAfter(this, e), this;
|
|
1190
|
+
}
|
|
1191
|
+
assign(e = {}) {
|
|
1192
|
+
for (let t in e) this[t] = e[t];
|
|
1193
|
+
return this;
|
|
1194
|
+
}
|
|
1195
|
+
before(e) {
|
|
1196
|
+
return this.parent.insertBefore(this, e), this;
|
|
1197
|
+
}
|
|
1198
|
+
cleanRaws(e) {
|
|
1199
|
+
delete this.raws.before, delete this.raws.after, e || delete this.raws.between;
|
|
1200
|
+
}
|
|
1201
|
+
clone(e = {}) {
|
|
1202
|
+
let t = a(this);
|
|
1203
|
+
for (let n in e) t[n] = e[n];
|
|
1204
|
+
return t;
|
|
1205
|
+
}
|
|
1206
|
+
cloneAfter(e = {}) {
|
|
1207
|
+
let t = this.clone(e);
|
|
1208
|
+
return this.parent.insertAfter(this, t), t;
|
|
1209
|
+
}
|
|
1210
|
+
cloneBefore(e = {}) {
|
|
1211
|
+
let t = this.clone(e);
|
|
1212
|
+
return this.parent.insertBefore(this, t), t;
|
|
1213
|
+
}
|
|
1214
|
+
error(e, t = {}) {
|
|
1215
|
+
if (this.source) {
|
|
1216
|
+
let { end: n, start: r } = this.rangeBy(t);
|
|
1217
|
+
return this.source.input.error(e, {
|
|
1218
|
+
column: r.column,
|
|
1219
|
+
line: r.line
|
|
1220
|
+
}, {
|
|
1221
|
+
column: n.column,
|
|
1222
|
+
line: n.line
|
|
1223
|
+
}, t);
|
|
1224
|
+
}
|
|
1225
|
+
return new n(e);
|
|
1226
|
+
}
|
|
1227
|
+
getProxyProcessor() {
|
|
1228
|
+
return {
|
|
1229
|
+
get(e, t) {
|
|
1230
|
+
return t === "proxyOf" ? e : t === "root" ? () => e.root().toProxy() : e[t];
|
|
1231
|
+
},
|
|
1232
|
+
set(e, t, n) {
|
|
1233
|
+
return e[t] === n || (e[t] = n, (t === "prop" || t === "value" || t === "name" || t === "params" || t === "important" || t === "text") && e.markDirty()), !0;
|
|
1234
|
+
}
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
markDirty() {
|
|
1238
|
+
if (this[e]) {
|
|
1239
|
+
this[e] = !1;
|
|
1240
|
+
let t = this;
|
|
1241
|
+
for (; t = t.parent;) t[e] = !1;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
next() {
|
|
1245
|
+
if (!this.parent) return;
|
|
1246
|
+
let e = this.parent.index(this);
|
|
1247
|
+
return this.parent.nodes[e + 1];
|
|
1248
|
+
}
|
|
1249
|
+
positionBy(e, t) {
|
|
1250
|
+
let n = this.source.start;
|
|
1251
|
+
if (e.index) n = this.positionInside(e.index, t);
|
|
1252
|
+
else if (e.word) {
|
|
1253
|
+
t = this.toString();
|
|
1254
|
+
let r = t.indexOf(e.word);
|
|
1255
|
+
r !== -1 && (n = this.positionInside(r, t));
|
|
1256
|
+
}
|
|
1257
|
+
return n;
|
|
1258
|
+
}
|
|
1259
|
+
positionInside(e, t) {
|
|
1260
|
+
let n = t || this.toString(), r = this.source.start.column, i = this.source.start.line;
|
|
1261
|
+
for (let t = 0; t < e; t++) n[t] === "\n" ? (r = 1, i += 1) : r += 1;
|
|
1262
|
+
return {
|
|
1263
|
+
column: r,
|
|
1264
|
+
line: i
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
prev() {
|
|
1268
|
+
if (!this.parent) return;
|
|
1269
|
+
let e = this.parent.index(this);
|
|
1270
|
+
return this.parent.nodes[e - 1];
|
|
1271
|
+
}
|
|
1272
|
+
rangeBy(e) {
|
|
1273
|
+
let t = {
|
|
1274
|
+
column: this.source.start.column,
|
|
1275
|
+
line: this.source.start.line
|
|
1276
|
+
}, n = this.source.end ? {
|
|
1277
|
+
column: this.source.end.column + 1,
|
|
1278
|
+
line: this.source.end.line
|
|
1279
|
+
} : {
|
|
1280
|
+
column: t.column + 1,
|
|
1281
|
+
line: t.line
|
|
1282
|
+
};
|
|
1283
|
+
if (e.word) {
|
|
1284
|
+
let r = this.toString(), i = r.indexOf(e.word);
|
|
1285
|
+
i !== -1 && (t = this.positionInside(i, r), n = this.positionInside(i + e.word.length, r));
|
|
1286
|
+
} else e.start ? t = {
|
|
1287
|
+
column: e.start.column,
|
|
1288
|
+
line: e.start.line
|
|
1289
|
+
} : e.index && (t = this.positionInside(e.index)), e.end ? n = {
|
|
1290
|
+
column: e.end.column,
|
|
1291
|
+
line: e.end.line
|
|
1292
|
+
} : typeof e.endIndex == "number" ? n = this.positionInside(e.endIndex) : e.index && (n = this.positionInside(e.index + 1));
|
|
1293
|
+
return (n.line < t.line || n.line === t.line && n.column <= t.column) && (n = {
|
|
1294
|
+
column: t.column + 1,
|
|
1295
|
+
line: t.line
|
|
1296
|
+
}), {
|
|
1297
|
+
end: n,
|
|
1298
|
+
start: t
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
raw(e, t) {
|
|
1302
|
+
return new r().raw(this, e, t);
|
|
1303
|
+
}
|
|
1304
|
+
remove() {
|
|
1305
|
+
return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
|
|
1306
|
+
}
|
|
1307
|
+
replaceWith(...e) {
|
|
1308
|
+
if (this.parent) {
|
|
1309
|
+
let t = this, n = !1;
|
|
1310
|
+
for (let r of e) r === this ? n = !0 : n ? (this.parent.insertAfter(t, r), t = r) : this.parent.insertBefore(t, r);
|
|
1311
|
+
n || this.remove();
|
|
1312
|
+
}
|
|
1313
|
+
return this;
|
|
1314
|
+
}
|
|
1315
|
+
root() {
|
|
1316
|
+
let e = this;
|
|
1317
|
+
for (; e.parent && e.parent.type !== "document";) e = e.parent;
|
|
1318
|
+
return e;
|
|
1319
|
+
}
|
|
1320
|
+
toJSON(e, t) {
|
|
1321
|
+
let n = {}, r = t == null;
|
|
1322
|
+
t ||= /* @__PURE__ */ new Map();
|
|
1323
|
+
let i = 0;
|
|
1324
|
+
for (let e in this) {
|
|
1325
|
+
if (!Object.prototype.hasOwnProperty.call(this, e) || e === "parent" || e === "proxyCache") continue;
|
|
1326
|
+
let r = this[e];
|
|
1327
|
+
if (Array.isArray(r)) n[e] = r.map((e) => typeof e == "object" && e.toJSON ? e.toJSON(null, t) : e);
|
|
1328
|
+
else if (typeof r == "object" && r.toJSON) n[e] = r.toJSON(null, t);
|
|
1329
|
+
else if (e === "source") {
|
|
1330
|
+
let a = t.get(r.input);
|
|
1331
|
+
a ?? (a = i, t.set(r.input, i), i++), n[e] = {
|
|
1332
|
+
end: r.end,
|
|
1333
|
+
inputId: a,
|
|
1334
|
+
start: r.start
|
|
1335
|
+
};
|
|
1336
|
+
} else n[e] = r;
|
|
1337
|
+
}
|
|
1338
|
+
return r && (n.inputs = [...t.keys()].map((e) => e.toJSON())), n;
|
|
1339
|
+
}
|
|
1340
|
+
toProxy() {
|
|
1341
|
+
return this.proxyCache ||= new Proxy(this, this.getProxyProcessor()), this.proxyCache;
|
|
1342
|
+
}
|
|
1343
|
+
toString(e = i) {
|
|
1344
|
+
e.stringify && (e = e.stringify);
|
|
1345
|
+
let t = "";
|
|
1346
|
+
return e(this, (e) => {
|
|
1347
|
+
t += e;
|
|
1348
|
+
}), t;
|
|
1349
|
+
}
|
|
1350
|
+
warn(e, t, n) {
|
|
1351
|
+
let r = { node: this };
|
|
1352
|
+
for (let e in n) r[e] = n[e];
|
|
1353
|
+
return e.warn(t, r);
|
|
1354
|
+
}
|
|
1355
|
+
get proxyOf() {
|
|
1356
|
+
return this;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
return vt = o, o.default = o, vt;
|
|
1360
|
+
}
|
|
1361
|
+
var bt, xt;
|
|
1362
|
+
function J() {
|
|
1363
|
+
if (xt) return bt;
|
|
1364
|
+
xt = 1;
|
|
1365
|
+
let e = q();
|
|
1366
|
+
class t extends e {
|
|
1367
|
+
constructor(e) {
|
|
1368
|
+
e && e.value !== void 0 && typeof e.value != "string" && (e = {
|
|
1369
|
+
...e,
|
|
1370
|
+
value: String(e.value)
|
|
1371
|
+
}), super(e), this.type = "decl";
|
|
1372
|
+
}
|
|
1373
|
+
get variable() {
|
|
1374
|
+
return this.prop.startsWith("--") || this.prop[0] === "$";
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
return bt = t, t.default = t, bt;
|
|
1378
|
+
}
|
|
1379
|
+
var St, Ct;
|
|
1380
|
+
function wt() {
|
|
1381
|
+
return Ct || (Ct = 1, St = {
|
|
1382
|
+
nanoid: (e = 21) => {
|
|
1383
|
+
let t = "", n = e;
|
|
1384
|
+
for (; n--;) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random() * 64 | 0];
|
|
1385
|
+
return t;
|
|
1386
|
+
},
|
|
1387
|
+
customAlphabet: (e, t = 21) => (n = t) => {
|
|
1388
|
+
let r = "", i = n;
|
|
1389
|
+
for (; i--;) r += e[Math.random() * e.length | 0];
|
|
1390
|
+
return r;
|
|
1391
|
+
}
|
|
1392
|
+
}), St;
|
|
1393
|
+
}
|
|
1394
|
+
var Tt, Et;
|
|
1395
|
+
function Dt() {
|
|
1396
|
+
if (Et) return Tt;
|
|
1397
|
+
Et = 1;
|
|
1398
|
+
let { SourceMapConsumer: e, SourceMapGenerator: t } = G, { existsSync: n, readFileSync: r } = G, { dirname: i, join: a } = G;
|
|
1399
|
+
function o(e) {
|
|
1400
|
+
return Buffer ? Buffer.from(e, "base64").toString() : window.atob(e);
|
|
1401
|
+
}
|
|
1402
|
+
class s {
|
|
1403
|
+
constructor(e, t) {
|
|
1404
|
+
if (t.map === !1) return;
|
|
1405
|
+
this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
|
|
1406
|
+
let n = t.map ? t.map.prev : void 0, r = this.loadMap(t.from, n);
|
|
1407
|
+
!this.mapFile && t.from && (this.mapFile = t.from), this.mapFile && (this.root = i(this.mapFile)), r && (this.text = r);
|
|
1408
|
+
}
|
|
1409
|
+
consumer() {
|
|
1410
|
+
return this.consumerCache ||= new e(this.text), this.consumerCache;
|
|
1411
|
+
}
|
|
1412
|
+
decodeInline(e) {
|
|
1413
|
+
let t = /^data:application\/json;charset=utf-?8;base64,/, n = /^data:application\/json;base64,/;
|
|
1414
|
+
if (/^data:application\/json;charset=utf-?8,/.test(e) || /^data:application\/json,/.test(e)) return decodeURIComponent(e.substr(RegExp.lastMatch.length));
|
|
1415
|
+
if (t.test(e) || n.test(e)) return o(e.substr(RegExp.lastMatch.length));
|
|
1416
|
+
let r = e.match(/data:application\/json;([^,]+),/)[1];
|
|
1417
|
+
throw Error("Unsupported source map encoding " + r);
|
|
1418
|
+
}
|
|
1419
|
+
getAnnotationURL(e) {
|
|
1420
|
+
return e.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
|
|
1421
|
+
}
|
|
1422
|
+
isMap(e) {
|
|
1423
|
+
return typeof e == "object" ? typeof e.mappings == "string" || typeof e._mappings == "string" || Array.isArray(e.sections) : !1;
|
|
1424
|
+
}
|
|
1425
|
+
loadAnnotation(e) {
|
|
1426
|
+
let t = e.match(/\/\*\s*# sourceMappingURL=/gm);
|
|
1427
|
+
if (!t) return;
|
|
1428
|
+
let n = e.lastIndexOf(t.pop()), r = e.indexOf("*/", n);
|
|
1429
|
+
n > -1 && r > -1 && (this.annotation = this.getAnnotationURL(e.substring(n, r)));
|
|
1430
|
+
}
|
|
1431
|
+
loadFile(e) {
|
|
1432
|
+
if (this.root = i(e), n(e)) return this.mapFile = e, r(e, "utf-8").toString().trim();
|
|
1433
|
+
}
|
|
1434
|
+
loadMap(n, r) {
|
|
1435
|
+
if (r === !1) return !1;
|
|
1436
|
+
if (r) {
|
|
1437
|
+
if (typeof r == "string") return r;
|
|
1438
|
+
if (typeof r == "function") {
|
|
1439
|
+
let e = r(n);
|
|
1440
|
+
if (e) {
|
|
1441
|
+
let t = this.loadFile(e);
|
|
1442
|
+
if (!t) throw Error("Unable to load previous source map: " + e.toString());
|
|
1443
|
+
return t;
|
|
1444
|
+
}
|
|
1445
|
+
} else if (r instanceof e) return t.fromSourceMap(r).toString();
|
|
1446
|
+
else if (r instanceof t) return r.toString();
|
|
1447
|
+
else if (this.isMap(r)) return JSON.stringify(r);
|
|
1448
|
+
else throw Error("Unsupported previous source map format: " + r.toString());
|
|
1449
|
+
} else if (this.inline) return this.decodeInline(this.annotation);
|
|
1450
|
+
else if (this.annotation) {
|
|
1451
|
+
let e = this.annotation;
|
|
1452
|
+
return n && (e = a(i(n), e)), this.loadFile(e);
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
startWith(e, t) {
|
|
1456
|
+
return e ? e.substr(0, t.length) === t : !1;
|
|
1457
|
+
}
|
|
1458
|
+
withContent() {
|
|
1459
|
+
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
return Tt = s, s.default = s, Tt;
|
|
1463
|
+
}
|
|
1464
|
+
var Ot, kt;
|
|
1465
|
+
function Y() {
|
|
1466
|
+
if (kt) return Ot;
|
|
1467
|
+
kt = 1;
|
|
1468
|
+
let { SourceMapConsumer: e, SourceMapGenerator: t } = G, { fileURLToPath: n, pathToFileURL: r } = G, { isAbsolute: i, resolve: a } = G, { nanoid: o } = /* @__PURE__ */ wt(), s = G, c = lt(), l = Dt(), u = Symbol("fromOffsetCache"), d = !!(e && t), f = !!(a && i);
|
|
1469
|
+
class p {
|
|
1470
|
+
constructor(e, t = {}) {
|
|
1471
|
+
if (e == null || typeof e == "object" && !e.toString) throw Error(`PostCSS received ${e} instead of CSS string`);
|
|
1472
|
+
if (this.css = e.toString(), this.css[0] === "" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (this.file = !f || /^\w+:\/\//.test(t.from) || i(t.from) ? t.from : a(t.from)), f && d) {
|
|
1473
|
+
let e = new l(this.css, t);
|
|
1474
|
+
if (e.text) {
|
|
1475
|
+
this.map = e;
|
|
1476
|
+
let t = e.consumer().file;
|
|
1477
|
+
!this.file && t && (this.file = this.mapResolve(t));
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
this.file || (this.id = "<input css " + o(6) + ">"), this.map && (this.map.file = this.from);
|
|
1481
|
+
}
|
|
1482
|
+
error(e, t, n, i = {}) {
|
|
1483
|
+
let a, o, s;
|
|
1484
|
+
if (t && typeof t == "object") {
|
|
1485
|
+
let e = t, r = n;
|
|
1486
|
+
if (typeof e.offset == "number") {
|
|
1487
|
+
let r = this.fromOffset(e.offset);
|
|
1488
|
+
t = r.line, n = r.col;
|
|
1489
|
+
} else t = e.line, n = e.column;
|
|
1490
|
+
if (typeof r.offset == "number") {
|
|
1491
|
+
let e = this.fromOffset(r.offset);
|
|
1492
|
+
o = e.line, s = e.col;
|
|
1493
|
+
} else o = r.line, s = r.column;
|
|
1494
|
+
} else if (!n) {
|
|
1495
|
+
let e = this.fromOffset(t);
|
|
1496
|
+
t = e.line, n = e.col;
|
|
1497
|
+
}
|
|
1498
|
+
let l = this.origin(t, n, o, s);
|
|
1499
|
+
return a = l ? new c(e, l.endLine === void 0 ? l.line : {
|
|
1500
|
+
column: l.column,
|
|
1501
|
+
line: l.line
|
|
1502
|
+
}, l.endLine === void 0 ? l.column : {
|
|
1503
|
+
column: l.endColumn,
|
|
1504
|
+
line: l.endLine
|
|
1505
|
+
}, l.source, l.file, i.plugin) : new c(e, o === void 0 ? t : {
|
|
1506
|
+
column: n,
|
|
1507
|
+
line: t
|
|
1508
|
+
}, o === void 0 ? n : {
|
|
1509
|
+
column: s,
|
|
1510
|
+
line: o
|
|
1511
|
+
}, this.css, this.file, i.plugin), a.input = {
|
|
1512
|
+
column: n,
|
|
1513
|
+
endColumn: s,
|
|
1514
|
+
endLine: o,
|
|
1515
|
+
line: t,
|
|
1516
|
+
source: this.css
|
|
1517
|
+
}, this.file && (r && (a.input.url = r(this.file).toString()), a.input.file = this.file), a;
|
|
1518
|
+
}
|
|
1519
|
+
fromOffset(e) {
|
|
1520
|
+
let t, n;
|
|
1521
|
+
if (this[u]) n = this[u];
|
|
1522
|
+
else {
|
|
1523
|
+
let e = this.css.split("\n");
|
|
1524
|
+
n = Array(e.length);
|
|
1525
|
+
let t = 0;
|
|
1526
|
+
for (let r = 0, i = e.length; r < i; r++) n[r] = t, t += e[r].length + 1;
|
|
1527
|
+
this[u] = n;
|
|
1528
|
+
}
|
|
1529
|
+
t = n[n.length - 1];
|
|
1530
|
+
let r = 0;
|
|
1531
|
+
if (e >= t) r = n.length - 1;
|
|
1532
|
+
else {
|
|
1533
|
+
let t = n.length - 2, i;
|
|
1534
|
+
for (; r < t;) if (i = r + (t - r >> 1), e < n[i]) t = i - 1;
|
|
1535
|
+
else if (e >= n[i + 1]) r = i + 1;
|
|
1536
|
+
else {
|
|
1537
|
+
r = i;
|
|
1538
|
+
break;
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
return {
|
|
1542
|
+
col: e - n[r] + 1,
|
|
1543
|
+
line: r + 1
|
|
1544
|
+
};
|
|
1545
|
+
}
|
|
1546
|
+
mapResolve(e) {
|
|
1547
|
+
return /^\w+:\/\//.test(e) ? e : a(this.map.consumer().sourceRoot || this.map.root || ".", e);
|
|
1548
|
+
}
|
|
1549
|
+
origin(e, t, a, o) {
|
|
1550
|
+
if (!this.map) return !1;
|
|
1551
|
+
let s = this.map.consumer(), c = s.originalPositionFor({
|
|
1552
|
+
column: t,
|
|
1553
|
+
line: e
|
|
1554
|
+
});
|
|
1555
|
+
if (!c.source) return !1;
|
|
1556
|
+
let l;
|
|
1557
|
+
typeof a == "number" && (l = s.originalPositionFor({
|
|
1558
|
+
column: o,
|
|
1559
|
+
line: a
|
|
1560
|
+
}));
|
|
1561
|
+
let u;
|
|
1562
|
+
u = i(c.source) ? r(c.source) : new URL(c.source, this.map.consumer().sourceRoot || r(this.map.mapFile));
|
|
1563
|
+
let d = {
|
|
1564
|
+
column: c.column,
|
|
1565
|
+
endColumn: l && l.column,
|
|
1566
|
+
endLine: l && l.line,
|
|
1567
|
+
line: c.line,
|
|
1568
|
+
url: u.toString()
|
|
1569
|
+
};
|
|
1570
|
+
if (u.protocol === "file:") {
|
|
1571
|
+
if (n) d.file = n(u);
|
|
1572
|
+
else throw Error("file: protocol is not available in this PostCSS build");
|
|
1573
|
+
}
|
|
1574
|
+
let f = s.sourceContentFor(c.source);
|
|
1575
|
+
return f && (d.source = f), d;
|
|
1576
|
+
}
|
|
1577
|
+
toJSON() {
|
|
1578
|
+
let e = {};
|
|
1579
|
+
for (let t of [
|
|
1580
|
+
"hasBOM",
|
|
1581
|
+
"css",
|
|
1582
|
+
"file",
|
|
1583
|
+
"id"
|
|
1584
|
+
]) this[t] != null && (e[t] = this[t]);
|
|
1585
|
+
return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
|
|
1586
|
+
}
|
|
1587
|
+
get from() {
|
|
1588
|
+
return this.file || this.id;
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
return Ot = p, p.default = p, s && s.registerInput && s.registerInput(p), Ot;
|
|
1592
|
+
}
|
|
1593
|
+
var At, jt;
|
|
1594
|
+
function Mt() {
|
|
1595
|
+
if (jt) return At;
|
|
1596
|
+
jt = 1;
|
|
1597
|
+
let { SourceMapConsumer: e, SourceMapGenerator: t } = G, { dirname: n, relative: r, resolve: i, sep: a } = G, { pathToFileURL: o } = G, s = Y(), c = !!(e && t), l = !!(n && i && r && a);
|
|
1598
|
+
class u {
|
|
1599
|
+
constructor(e, t, n, r) {
|
|
1600
|
+
this.stringify = e, this.mapOpts = n.map || {}, this.root = t, this.opts = n, this.css = r, this.originalCSS = r, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
|
|
1601
|
+
}
|
|
1602
|
+
addAnnotation() {
|
|
1603
|
+
let e;
|
|
1604
|
+
e = this.isInline() ? "data:application/json;base64," + this.toBase64(this.map.toString()) : typeof this.mapOpts.annotation == "string" ? this.mapOpts.annotation : typeof this.mapOpts.annotation == "function" ? this.mapOpts.annotation(this.opts.to, this.root) : this.outputFile() + ".map";
|
|
1605
|
+
let t = "\n";
|
|
1606
|
+
this.css.includes("\r\n") && (t = "\r\n"), this.css += t + "/*# sourceMappingURL=" + e + " */";
|
|
1607
|
+
}
|
|
1608
|
+
applyPrevMaps() {
|
|
1609
|
+
for (let t of this.previous()) {
|
|
1610
|
+
let r = this.toUrl(this.path(t.file)), i = t.root || n(t.file), a;
|
|
1611
|
+
this.mapOpts.sourcesContent === !1 ? (a = new e(t.text), a.sourcesContent && (a.sourcesContent = null)) : a = t.consumer(), this.map.applySourceMap(a, r, this.toUrl(this.path(i)));
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
clearAnnotation() {
|
|
1615
|
+
if (this.mapOpts.annotation !== !1) {
|
|
1616
|
+
if (this.root) {
|
|
1617
|
+
let e;
|
|
1618
|
+
for (let t = this.root.nodes.length - 1; t >= 0; t--) e = this.root.nodes[t], e.type === "comment" && e.text.indexOf("# sourceMappingURL=") === 0 && this.root.removeChild(t);
|
|
1619
|
+
} else this.css &&= this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, "");
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
generate() {
|
|
1623
|
+
if (this.clearAnnotation(), l && c && this.isMap()) return this.generateMap();
|
|
1624
|
+
{
|
|
1625
|
+
let e = "";
|
|
1626
|
+
return this.stringify(this.root, (t) => {
|
|
1627
|
+
e += t;
|
|
1628
|
+
}), [e];
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
generateMap() {
|
|
1632
|
+
if (this.root) this.generateString();
|
|
1633
|
+
else if (this.previous().length === 1) {
|
|
1634
|
+
let e = this.previous()[0].consumer();
|
|
1635
|
+
e.file = this.outputFile(), this.map = t.fromSourceMap(e, { ignoreInvalidMapping: !0 });
|
|
1636
|
+
} else this.map = new t({
|
|
1637
|
+
file: this.outputFile(),
|
|
1638
|
+
ignoreInvalidMapping: !0
|
|
1639
|
+
}), this.map.addMapping({
|
|
1640
|
+
generated: {
|
|
1641
|
+
column: 0,
|
|
1642
|
+
line: 1
|
|
1643
|
+
},
|
|
1644
|
+
original: {
|
|
1645
|
+
column: 0,
|
|
1646
|
+
line: 1
|
|
1647
|
+
},
|
|
1648
|
+
source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"
|
|
1649
|
+
});
|
|
1650
|
+
return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
|
|
1651
|
+
}
|
|
1652
|
+
generateString() {
|
|
1653
|
+
this.css = "", this.map = new t({
|
|
1654
|
+
file: this.outputFile(),
|
|
1655
|
+
ignoreInvalidMapping: !0
|
|
1656
|
+
});
|
|
1657
|
+
let e = 1, n = 1, r = "<no source>", i = {
|
|
1658
|
+
generated: {
|
|
1659
|
+
column: 0,
|
|
1660
|
+
line: 0
|
|
1661
|
+
},
|
|
1662
|
+
original: {
|
|
1663
|
+
column: 0,
|
|
1664
|
+
line: 0
|
|
1665
|
+
},
|
|
1666
|
+
source: ""
|
|
1667
|
+
}, a, o;
|
|
1668
|
+
this.stringify(this.root, (t, s, c) => {
|
|
1669
|
+
if (this.css += t, s && c !== "end" && (i.generated.line = e, i.generated.column = n - 1, s.source && s.source.start ? (i.source = this.sourcePath(s), i.original.line = s.source.start.line, i.original.column = s.source.start.column - 1, this.map.addMapping(i)) : (i.source = r, i.original.line = 1, i.original.column = 0, this.map.addMapping(i))), a = t.match(/\n/g), a ? (e += a.length, o = t.lastIndexOf("\n"), n = t.length - o) : n += t.length, s && c !== "start") {
|
|
1670
|
+
let t = s.parent || { raws: {} };
|
|
1671
|
+
(!(s.type === "decl" || s.type === "atrule" && !s.nodes) || s !== t.last || t.raws.semicolon) && (s.source && s.source.end ? (i.source = this.sourcePath(s), i.original.line = s.source.end.line, i.original.column = s.source.end.column - 1, i.generated.line = e, i.generated.column = n - 2, this.map.addMapping(i)) : (i.source = r, i.original.line = 1, i.original.column = 0, i.generated.line = e, i.generated.column = n - 1, this.map.addMapping(i)));
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
isAnnotation() {
|
|
1676
|
+
return this.isInline() ? !0 : this.mapOpts.annotation === void 0 ? !this.previous().length || this.previous().some((e) => e.annotation) : this.mapOpts.annotation;
|
|
1677
|
+
}
|
|
1678
|
+
isInline() {
|
|
1679
|
+
if (this.mapOpts.inline !== void 0) return this.mapOpts.inline;
|
|
1680
|
+
let e = this.mapOpts.annotation;
|
|
1681
|
+
return e !== void 0 && e !== !0 ? !1 : !this.previous().length || this.previous().some((e) => e.inline);
|
|
1682
|
+
}
|
|
1683
|
+
isMap() {
|
|
1684
|
+
return this.opts.map === void 0 ? this.previous().length > 0 : !!this.opts.map;
|
|
1685
|
+
}
|
|
1686
|
+
isSourcesContent() {
|
|
1687
|
+
return this.mapOpts.sourcesContent === void 0 ? !this.previous().length || this.previous().some((e) => e.withContent()) : this.mapOpts.sourcesContent;
|
|
1688
|
+
}
|
|
1689
|
+
outputFile() {
|
|
1690
|
+
return this.opts.to ? this.path(this.opts.to) : this.opts.from ? this.path(this.opts.from) : "to.css";
|
|
1691
|
+
}
|
|
1692
|
+
path(e) {
|
|
1693
|
+
if (this.mapOpts.absolute || e.charCodeAt(0) === 60 || /^\w+:\/\//.test(e)) return e;
|
|
1694
|
+
let t = this.memoizedPaths.get(e);
|
|
1695
|
+
if (t) return t;
|
|
1696
|
+
let a = this.opts.to ? n(this.opts.to) : ".";
|
|
1697
|
+
typeof this.mapOpts.annotation == "string" && (a = n(i(a, this.mapOpts.annotation)));
|
|
1698
|
+
let o = r(a, e);
|
|
1699
|
+
return this.memoizedPaths.set(e, o), o;
|
|
1700
|
+
}
|
|
1701
|
+
previous() {
|
|
1702
|
+
if (!this.previousMaps) {
|
|
1703
|
+
if (this.previousMaps = [], this.root) this.root.walk((e) => {
|
|
1704
|
+
if (e.source && e.source.input.map) {
|
|
1705
|
+
let t = e.source.input.map;
|
|
1706
|
+
this.previousMaps.includes(t) || this.previousMaps.push(t);
|
|
1707
|
+
}
|
|
1708
|
+
});
|
|
1709
|
+
else {
|
|
1710
|
+
let e = new s(this.originalCSS, this.opts);
|
|
1711
|
+
e.map && this.previousMaps.push(e.map);
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
return this.previousMaps;
|
|
1715
|
+
}
|
|
1716
|
+
setSourcesContent() {
|
|
1717
|
+
let e = {};
|
|
1718
|
+
if (this.root) this.root.walk((t) => {
|
|
1719
|
+
if (t.source) {
|
|
1720
|
+
let n = t.source.input.from;
|
|
1721
|
+
if (n && !e[n]) {
|
|
1722
|
+
e[n] = !0;
|
|
1723
|
+
let r = this.usesFileUrls ? this.toFileUrl(n) : this.toUrl(this.path(n));
|
|
1724
|
+
this.map.setSourceContent(r, t.source.input.css);
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
});
|
|
1728
|
+
else if (this.css) {
|
|
1729
|
+
let e = this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>";
|
|
1730
|
+
this.map.setSourceContent(e, this.css);
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
sourcePath(e) {
|
|
1734
|
+
return this.mapOpts.from ? this.toUrl(this.mapOpts.from) : this.usesFileUrls ? this.toFileUrl(e.source.input.from) : this.toUrl(this.path(e.source.input.from));
|
|
1735
|
+
}
|
|
1736
|
+
toBase64(e) {
|
|
1737
|
+
return Buffer ? Buffer.from(e).toString("base64") : window.btoa(unescape(encodeURIComponent(e)));
|
|
1738
|
+
}
|
|
1739
|
+
toFileUrl(e) {
|
|
1740
|
+
let t = this.memoizedFileURLs.get(e);
|
|
1741
|
+
if (t) return t;
|
|
1742
|
+
if (o) {
|
|
1743
|
+
let t = o(e).toString();
|
|
1744
|
+
return this.memoizedFileURLs.set(e, t), t;
|
|
1745
|
+
}
|
|
1746
|
+
throw Error("`map.absolute` option is not available in this PostCSS build");
|
|
1747
|
+
}
|
|
1748
|
+
toUrl(e) {
|
|
1749
|
+
let t = this.memoizedURLs.get(e);
|
|
1750
|
+
if (t) return t;
|
|
1751
|
+
a === "\\" && (e = e.replace(/\\/g, "/"));
|
|
1752
|
+
let n = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
|
|
1753
|
+
return this.memoizedURLs.set(e, n), n;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
return At = u, At;
|
|
1757
|
+
}
|
|
1758
|
+
var Nt, Pt;
|
|
1759
|
+
function X() {
|
|
1760
|
+
if (Pt) return Nt;
|
|
1761
|
+
Pt = 1;
|
|
1762
|
+
let e = q();
|
|
1763
|
+
class t extends e {
|
|
1764
|
+
constructor(e) {
|
|
1765
|
+
super(e), this.type = "comment";
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
return Nt = t, t.default = t, Nt;
|
|
1769
|
+
}
|
|
1770
|
+
var Ft, It;
|
|
1771
|
+
function Z() {
|
|
1772
|
+
if (It) return Ft;
|
|
1773
|
+
It = 1;
|
|
1774
|
+
let { isClean: e, my: t } = ft(), n = J(), r = X(), i = q(), a, o, s, c;
|
|
1775
|
+
function l(e) {
|
|
1776
|
+
return e.map((e) => (e.nodes &&= l(e.nodes), delete e.source, e));
|
|
1777
|
+
}
|
|
1778
|
+
function u(t) {
|
|
1779
|
+
if (t[e] = !1, t.proxyOf.nodes) for (let e of t.proxyOf.nodes) u(e);
|
|
1780
|
+
}
|
|
1781
|
+
class d extends i {
|
|
1782
|
+
append(...e) {
|
|
1783
|
+
for (let t of e) {
|
|
1784
|
+
let e = this.normalize(t, this.last);
|
|
1785
|
+
for (let t of e) this.proxyOf.nodes.push(t);
|
|
1786
|
+
}
|
|
1787
|
+
return this.markDirty(), this;
|
|
1788
|
+
}
|
|
1789
|
+
cleanRaws(e) {
|
|
1790
|
+
if (super.cleanRaws(e), this.nodes) for (let t of this.nodes) t.cleanRaws(e);
|
|
1791
|
+
}
|
|
1792
|
+
each(e) {
|
|
1793
|
+
if (!this.proxyOf.nodes) return;
|
|
1794
|
+
let t = this.getIterator(), n, r;
|
|
1795
|
+
for (; this.indexes[t] < this.proxyOf.nodes.length && (n = this.indexes[t], r = e(this.proxyOf.nodes[n], n), r !== !1);) this.indexes[t] += 1;
|
|
1796
|
+
return delete this.indexes[t], r;
|
|
1797
|
+
}
|
|
1798
|
+
every(e) {
|
|
1799
|
+
return this.nodes.every(e);
|
|
1800
|
+
}
|
|
1801
|
+
getIterator() {
|
|
1802
|
+
this.lastEach ||= 0, this.indexes ||= {}, this.lastEach += 1;
|
|
1803
|
+
let e = this.lastEach;
|
|
1804
|
+
return this.indexes[e] = 0, e;
|
|
1805
|
+
}
|
|
1806
|
+
getProxyProcessor() {
|
|
1807
|
+
return {
|
|
1808
|
+
get(e, t) {
|
|
1809
|
+
return t === "proxyOf" ? e : e[t] ? t === "each" || typeof t == "string" && t.startsWith("walk") ? (...n) => e[t](...n.map((e) => typeof e == "function" ? (t, n) => e(t.toProxy(), n) : e)) : t === "every" || t === "some" ? (n) => e[t]((e, ...t) => n(e.toProxy(), ...t)) : t === "root" ? () => e.root().toProxy() : t === "nodes" ? e.nodes.map((e) => e.toProxy()) : t === "first" || t === "last" ? e[t].toProxy() : e[t] : e[t];
|
|
1810
|
+
},
|
|
1811
|
+
set(e, t, n) {
|
|
1812
|
+
return e[t] === n || (e[t] = n, (t === "name" || t === "params" || t === "selector") && e.markDirty()), !0;
|
|
1813
|
+
}
|
|
1814
|
+
};
|
|
1815
|
+
}
|
|
1816
|
+
index(e) {
|
|
1817
|
+
return typeof e == "number" ? e : (e.proxyOf && (e = e.proxyOf), this.proxyOf.nodes.indexOf(e));
|
|
1818
|
+
}
|
|
1819
|
+
insertAfter(e, t) {
|
|
1820
|
+
let n = this.index(e), r = this.normalize(t, this.proxyOf.nodes[n]).reverse();
|
|
1821
|
+
n = this.index(e);
|
|
1822
|
+
for (let e of r) this.proxyOf.nodes.splice(n + 1, 0, e);
|
|
1823
|
+
let i;
|
|
1824
|
+
for (let e in this.indexes) i = this.indexes[e], n < i && (this.indexes[e] = i + r.length);
|
|
1825
|
+
return this.markDirty(), this;
|
|
1826
|
+
}
|
|
1827
|
+
insertBefore(e, t) {
|
|
1828
|
+
let n = this.index(e), r = n === 0 && "prepend", i = this.normalize(t, this.proxyOf.nodes[n], r).reverse();
|
|
1829
|
+
n = this.index(e);
|
|
1830
|
+
for (let e of i) this.proxyOf.nodes.splice(n, 0, e);
|
|
1831
|
+
let a;
|
|
1832
|
+
for (let e in this.indexes) a = this.indexes[e], n <= a && (this.indexes[e] = a + i.length);
|
|
1833
|
+
return this.markDirty(), this;
|
|
1834
|
+
}
|
|
1835
|
+
normalize(i, c) {
|
|
1836
|
+
if (typeof i == "string") i = l(a(i).nodes);
|
|
1837
|
+
else if (i === void 0) i = [];
|
|
1838
|
+
else if (Array.isArray(i)) {
|
|
1839
|
+
i = i.slice(0);
|
|
1840
|
+
for (let e of i) e.parent && e.parent.removeChild(e, "ignore");
|
|
1841
|
+
} else if (i.type === "root" && this.type !== "document") {
|
|
1842
|
+
i = i.nodes.slice(0);
|
|
1843
|
+
for (let e of i) e.parent && e.parent.removeChild(e, "ignore");
|
|
1844
|
+
} else if (i.type) i = [i];
|
|
1845
|
+
else if (i.prop) {
|
|
1846
|
+
if (i.value === void 0) throw Error("Value field is missed in node creation");
|
|
1847
|
+
typeof i.value != "string" && (i.value = String(i.value)), i = [new n(i)];
|
|
1848
|
+
} else if (i.selector) i = [new o(i)];
|
|
1849
|
+
else if (i.name) i = [new s(i)];
|
|
1850
|
+
else if (i.text) i = [new r(i)];
|
|
1851
|
+
else throw Error("Unknown node type in node creation");
|
|
1852
|
+
return i.map((n) => (n[t] || d.rebuild(n), n = n.proxyOf, n.parent && n.parent.removeChild(n), n[e] && u(n), n.raws.before === void 0 && c && c.raws.before !== void 0 && (n.raws.before = c.raws.before.replace(/\S/g, "")), n.parent = this.proxyOf, n));
|
|
1853
|
+
}
|
|
1854
|
+
prepend(...e) {
|
|
1855
|
+
e = e.reverse();
|
|
1856
|
+
for (let t of e) {
|
|
1857
|
+
let e = this.normalize(t, this.first, "prepend").reverse();
|
|
1858
|
+
for (let t of e) this.proxyOf.nodes.unshift(t);
|
|
1859
|
+
for (let t in this.indexes) this.indexes[t] = this.indexes[t] + e.length;
|
|
1860
|
+
}
|
|
1861
|
+
return this.markDirty(), this;
|
|
1862
|
+
}
|
|
1863
|
+
push(e) {
|
|
1864
|
+
return e.parent = this, this.proxyOf.nodes.push(e), this;
|
|
1865
|
+
}
|
|
1866
|
+
removeAll() {
|
|
1867
|
+
for (let e of this.proxyOf.nodes) e.parent = void 0;
|
|
1868
|
+
return this.proxyOf.nodes = [], this.markDirty(), this;
|
|
1869
|
+
}
|
|
1870
|
+
removeChild(e) {
|
|
1871
|
+
e = this.index(e), this.proxyOf.nodes[e].parent = void 0, this.proxyOf.nodes.splice(e, 1);
|
|
1872
|
+
let t;
|
|
1873
|
+
for (let n in this.indexes) t = this.indexes[n], t >= e && (this.indexes[n] = t - 1);
|
|
1874
|
+
return this.markDirty(), this;
|
|
1875
|
+
}
|
|
1876
|
+
replaceValues(e, t, n) {
|
|
1877
|
+
return n || (n = t, t = {}), this.walkDecls((r) => {
|
|
1878
|
+
t.props && !t.props.includes(r.prop) || t.fast && !r.value.includes(t.fast) || (r.value = r.value.replace(e, n));
|
|
1879
|
+
}), this.markDirty(), this;
|
|
1880
|
+
}
|
|
1881
|
+
some(e) {
|
|
1882
|
+
return this.nodes.some(e);
|
|
1883
|
+
}
|
|
1884
|
+
walk(e) {
|
|
1885
|
+
return this.each((t, n) => {
|
|
1886
|
+
let r;
|
|
1887
|
+
try {
|
|
1888
|
+
r = e(t, n);
|
|
1889
|
+
} catch (e) {
|
|
1890
|
+
throw t.addToError(e);
|
|
1891
|
+
}
|
|
1892
|
+
return r !== !1 && t.walk && (r = t.walk(e)), r;
|
|
1893
|
+
});
|
|
1894
|
+
}
|
|
1895
|
+
walkAtRules(e, t) {
|
|
1896
|
+
return t ? e instanceof RegExp ? this.walk((n, r) => {
|
|
1897
|
+
if (n.type === "atrule" && e.test(n.name)) return t(n, r);
|
|
1898
|
+
}) : this.walk((n, r) => {
|
|
1899
|
+
if (n.type === "atrule" && n.name === e) return t(n, r);
|
|
1900
|
+
}) : (t = e, this.walk((e, n) => {
|
|
1901
|
+
if (e.type === "atrule") return t(e, n);
|
|
1902
|
+
}));
|
|
1903
|
+
}
|
|
1904
|
+
walkComments(e) {
|
|
1905
|
+
return this.walk((t, n) => {
|
|
1906
|
+
if (t.type === "comment") return e(t, n);
|
|
1907
|
+
});
|
|
1908
|
+
}
|
|
1909
|
+
walkDecls(e, t) {
|
|
1910
|
+
return t ? e instanceof RegExp ? this.walk((n, r) => {
|
|
1911
|
+
if (n.type === "decl" && e.test(n.prop)) return t(n, r);
|
|
1912
|
+
}) : this.walk((n, r) => {
|
|
1913
|
+
if (n.type === "decl" && n.prop === e) return t(n, r);
|
|
1914
|
+
}) : (t = e, this.walk((e, n) => {
|
|
1915
|
+
if (e.type === "decl") return t(e, n);
|
|
1916
|
+
}));
|
|
1917
|
+
}
|
|
1918
|
+
walkRules(e, t) {
|
|
1919
|
+
return t ? e instanceof RegExp ? this.walk((n, r) => {
|
|
1920
|
+
if (n.type === "rule" && e.test(n.selector)) return t(n, r);
|
|
1921
|
+
}) : this.walk((n, r) => {
|
|
1922
|
+
if (n.type === "rule" && n.selector === e) return t(n, r);
|
|
1923
|
+
}) : (t = e, this.walk((e, n) => {
|
|
1924
|
+
if (e.type === "rule") return t(e, n);
|
|
1925
|
+
}));
|
|
1926
|
+
}
|
|
1927
|
+
get first() {
|
|
1928
|
+
if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
|
|
1929
|
+
}
|
|
1930
|
+
get last() {
|
|
1931
|
+
if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
return d.registerParse = (e) => {
|
|
1935
|
+
a = e;
|
|
1936
|
+
}, d.registerRule = (e) => {
|
|
1937
|
+
o = e;
|
|
1938
|
+
}, d.registerAtRule = (e) => {
|
|
1939
|
+
s = e;
|
|
1940
|
+
}, d.registerRoot = (e) => {
|
|
1941
|
+
c = e;
|
|
1942
|
+
}, Ft = d, d.default = d, d.rebuild = (e) => {
|
|
1943
|
+
e.type === "atrule" ? Object.setPrototypeOf(e, s.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, o.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, n.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, r.prototype) : e.type === "root" && Object.setPrototypeOf(e, c.prototype), e[t] = !0, e.nodes && e.nodes.forEach((e) => {
|
|
1944
|
+
d.rebuild(e);
|
|
1945
|
+
});
|
|
1946
|
+
}, Ft;
|
|
1947
|
+
}
|
|
1948
|
+
var Lt, Rt;
|
|
1949
|
+
function zt() {
|
|
1950
|
+
if (Rt) return Lt;
|
|
1951
|
+
Rt = 1;
|
|
1952
|
+
let e = Z(), t, n;
|
|
1953
|
+
class r extends e {
|
|
1954
|
+
constructor(e) {
|
|
1955
|
+
super({
|
|
1956
|
+
type: "document",
|
|
1957
|
+
...e
|
|
1958
|
+
}), this.nodes ||= [];
|
|
1959
|
+
}
|
|
1960
|
+
toResult(e = {}) {
|
|
1961
|
+
return new t(new n(), this, e).stringify();
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
return r.registerLazyResult = (e) => {
|
|
1965
|
+
t = e;
|
|
1966
|
+
}, r.registerProcessor = (e) => {
|
|
1967
|
+
n = e;
|
|
1968
|
+
}, Lt = r, r.default = r, Lt;
|
|
1969
|
+
}
|
|
1970
|
+
var Bt, Vt;
|
|
1971
|
+
function Ht() {
|
|
1972
|
+
if (Vt) return Bt;
|
|
1973
|
+
Vt = 1;
|
|
1974
|
+
let e = {};
|
|
1975
|
+
return Bt = function(t) {
|
|
1976
|
+
e[t] || (e[t] = !0, typeof console < "u" && console.warn && console.warn(t));
|
|
1977
|
+
}, Bt;
|
|
1978
|
+
}
|
|
1979
|
+
var Ut, Wt;
|
|
1980
|
+
function Gt() {
|
|
1981
|
+
if (Wt) return Ut;
|
|
1982
|
+
Wt = 1;
|
|
1983
|
+
class e {
|
|
1984
|
+
constructor(e, t = {}) {
|
|
1985
|
+
if (this.type = "warning", this.text = e, t.node && t.node.source) {
|
|
1986
|
+
let e = t.node.rangeBy(t);
|
|
1987
|
+
this.line = e.start.line, this.column = e.start.column, this.endLine = e.end.line, this.endColumn = e.end.column;
|
|
1988
|
+
}
|
|
1989
|
+
for (let e in t) this[e] = t[e];
|
|
1990
|
+
}
|
|
1991
|
+
toString() {
|
|
1992
|
+
return this.node ? this.node.error(this.text, {
|
|
1993
|
+
index: this.index,
|
|
1994
|
+
plugin: this.plugin,
|
|
1995
|
+
word: this.word
|
|
1996
|
+
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
return Ut = e, e.default = e, Ut;
|
|
2000
|
+
}
|
|
2001
|
+
var Kt, qt;
|
|
2002
|
+
function Jt() {
|
|
2003
|
+
if (qt) return Kt;
|
|
2004
|
+
qt = 1;
|
|
2005
|
+
let e = Gt();
|
|
2006
|
+
class t {
|
|
2007
|
+
constructor(e, t, n) {
|
|
2008
|
+
this.processor = e, this.messages = [], this.root = t, this.opts = n, this.css = void 0, this.map = void 0;
|
|
2009
|
+
}
|
|
2010
|
+
toString() {
|
|
2011
|
+
return this.css;
|
|
2012
|
+
}
|
|
2013
|
+
warn(t, n = {}) {
|
|
2014
|
+
n.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (n.plugin = this.lastPlugin.postcssPlugin);
|
|
2015
|
+
let r = new e(t, n);
|
|
2016
|
+
return this.messages.push(r), r;
|
|
2017
|
+
}
|
|
2018
|
+
warnings() {
|
|
2019
|
+
return this.messages.filter((e) => e.type === "warning");
|
|
2020
|
+
}
|
|
2021
|
+
get content() {
|
|
2022
|
+
return this.css;
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
return Kt = t, t.default = t, Kt;
|
|
2026
|
+
}
|
|
2027
|
+
var Yt, Xt;
|
|
2028
|
+
function Zt() {
|
|
2029
|
+
if (Xt) return Yt;
|
|
2030
|
+
Xt = 1;
|
|
2031
|
+
let e = /[\t\n\f\r "#'()/;[\\\]{}]/g, t = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, n = /.[\r\n"'(/\\]/, r = /[\da-f]/i;
|
|
2032
|
+
return Yt = function(i, a = {}) {
|
|
2033
|
+
let o = i.css.valueOf(), s = a.ignoreErrors, c, l, u, d, f, p, m, h, g, _, v = o.length, y = 0, b = [], x = [];
|
|
2034
|
+
function S() {
|
|
2035
|
+
return y;
|
|
2036
|
+
}
|
|
2037
|
+
function C(e) {
|
|
2038
|
+
throw i.error("Unclosed " + e, y);
|
|
2039
|
+
}
|
|
2040
|
+
function w() {
|
|
2041
|
+
return x.length === 0 && y >= v;
|
|
2042
|
+
}
|
|
2043
|
+
function ee(i) {
|
|
2044
|
+
if (x.length) return x.pop();
|
|
2045
|
+
if (y >= v) return;
|
|
2046
|
+
let a = i ? i.ignoreUnclosed : !1;
|
|
2047
|
+
switch (c = o.charCodeAt(y), c) {
|
|
2048
|
+
case 10:
|
|
2049
|
+
case 32:
|
|
2050
|
+
case 9:
|
|
2051
|
+
case 13:
|
|
2052
|
+
case 12:
|
|
2053
|
+
l = y;
|
|
2054
|
+
do
|
|
2055
|
+
l += 1, c = o.charCodeAt(l);
|
|
2056
|
+
while (c === 32 || c === 10 || c === 9 || c === 13 || c === 12);
|
|
2057
|
+
_ = ["space", o.slice(y, l)], y = l - 1;
|
|
2058
|
+
break;
|
|
2059
|
+
case 91:
|
|
2060
|
+
case 93:
|
|
2061
|
+
case 123:
|
|
2062
|
+
case 125:
|
|
2063
|
+
case 58:
|
|
2064
|
+
case 59:
|
|
2065
|
+
case 41: {
|
|
2066
|
+
let e = String.fromCharCode(c);
|
|
2067
|
+
_ = [
|
|
2068
|
+
e,
|
|
2069
|
+
e,
|
|
2070
|
+
y
|
|
2071
|
+
];
|
|
2072
|
+
break;
|
|
2073
|
+
}
|
|
2074
|
+
case 40:
|
|
2075
|
+
if (h = b.length ? b.pop()[1] : "", g = o.charCodeAt(y + 1), h === "url" && g !== 39 && g !== 34 && g !== 32 && g !== 10 && g !== 9 && g !== 12 && g !== 13) {
|
|
2076
|
+
l = y;
|
|
2077
|
+
do {
|
|
2078
|
+
if (p = !1, l = o.indexOf(")", l + 1), l === -1) {
|
|
2079
|
+
if (s || a) {
|
|
2080
|
+
l = y;
|
|
2081
|
+
break;
|
|
2082
|
+
}
|
|
2083
|
+
C("bracket");
|
|
2084
|
+
}
|
|
2085
|
+
for (m = l; o.charCodeAt(m - 1) === 92;) --m, p = !p;
|
|
2086
|
+
} while (p);
|
|
2087
|
+
_ = [
|
|
2088
|
+
"brackets",
|
|
2089
|
+
o.slice(y, l + 1),
|
|
2090
|
+
y,
|
|
2091
|
+
l
|
|
2092
|
+
], y = l;
|
|
2093
|
+
} else l = o.indexOf(")", y + 1), d = o.slice(y, l + 1), l === -1 || n.test(d) ? _ = [
|
|
2094
|
+
"(",
|
|
2095
|
+
"(",
|
|
2096
|
+
y
|
|
2097
|
+
] : (_ = [
|
|
2098
|
+
"brackets",
|
|
2099
|
+
d,
|
|
2100
|
+
y,
|
|
2101
|
+
l
|
|
2102
|
+
], y = l);
|
|
2103
|
+
break;
|
|
2104
|
+
case 39:
|
|
2105
|
+
case 34:
|
|
2106
|
+
u = c === 39 ? "'" : "\"", l = y;
|
|
2107
|
+
do {
|
|
2108
|
+
if (p = !1, l = o.indexOf(u, l + 1), l === -1) {
|
|
2109
|
+
if (s || a) {
|
|
2110
|
+
l = y + 1;
|
|
2111
|
+
break;
|
|
2112
|
+
}
|
|
2113
|
+
C("string");
|
|
2114
|
+
}
|
|
2115
|
+
for (m = l; o.charCodeAt(m - 1) === 92;) --m, p = !p;
|
|
2116
|
+
} while (p);
|
|
2117
|
+
_ = [
|
|
2118
|
+
"string",
|
|
2119
|
+
o.slice(y, l + 1),
|
|
2120
|
+
y,
|
|
2121
|
+
l
|
|
2122
|
+
], y = l;
|
|
2123
|
+
break;
|
|
2124
|
+
case 64:
|
|
2125
|
+
e.lastIndex = y + 1, e.test(o), l = e.lastIndex === 0 ? o.length - 1 : e.lastIndex - 2, _ = [
|
|
2126
|
+
"at-word",
|
|
2127
|
+
o.slice(y, l + 1),
|
|
2128
|
+
y,
|
|
2129
|
+
l
|
|
2130
|
+
], y = l;
|
|
2131
|
+
break;
|
|
2132
|
+
case 92:
|
|
2133
|
+
for (l = y, f = !0; o.charCodeAt(l + 1) === 92;) l += 1, f = !f;
|
|
2134
|
+
if (c = o.charCodeAt(l + 1), f && c !== 47 && c !== 32 && c !== 10 && c !== 9 && c !== 13 && c !== 12 && (l += 1, r.test(o.charAt(l)))) {
|
|
2135
|
+
for (; r.test(o.charAt(l + 1));) l += 1;
|
|
2136
|
+
o.charCodeAt(l + 1) === 32 && (l += 1);
|
|
2137
|
+
}
|
|
2138
|
+
_ = [
|
|
2139
|
+
"word",
|
|
2140
|
+
o.slice(y, l + 1),
|
|
2141
|
+
y,
|
|
2142
|
+
l
|
|
2143
|
+
], y = l;
|
|
2144
|
+
break;
|
|
2145
|
+
default: c === 47 && o.charCodeAt(y + 1) === 42 ? (l = o.indexOf("*/", y + 2) + 1, l === 0 && (s || a ? l = o.length : C("comment")), _ = [
|
|
2146
|
+
"comment",
|
|
2147
|
+
o.slice(y, l + 1),
|
|
2148
|
+
y,
|
|
2149
|
+
l
|
|
2150
|
+
], y = l) : (t.lastIndex = y + 1, t.test(o), l = t.lastIndex === 0 ? o.length - 1 : t.lastIndex - 2, _ = [
|
|
2151
|
+
"word",
|
|
2152
|
+
o.slice(y, l + 1),
|
|
2153
|
+
y,
|
|
2154
|
+
l
|
|
2155
|
+
], b.push(_), y = l);
|
|
2156
|
+
}
|
|
2157
|
+
return y++, _;
|
|
2158
|
+
}
|
|
2159
|
+
function T(e) {
|
|
2160
|
+
x.push(e);
|
|
2161
|
+
}
|
|
2162
|
+
return {
|
|
2163
|
+
back: T,
|
|
2164
|
+
endOfFile: w,
|
|
2165
|
+
nextToken: ee,
|
|
2166
|
+
position: S
|
|
2167
|
+
};
|
|
2168
|
+
}, Yt;
|
|
2169
|
+
}
|
|
2170
|
+
var Qt, $t;
|
|
2171
|
+
function en() {
|
|
2172
|
+
if ($t) return Qt;
|
|
2173
|
+
$t = 1;
|
|
2174
|
+
let e = Z();
|
|
2175
|
+
class t extends e {
|
|
2176
|
+
constructor(e) {
|
|
2177
|
+
super(e), this.type = "atrule";
|
|
2178
|
+
}
|
|
2179
|
+
append(...e) {
|
|
2180
|
+
return this.proxyOf.nodes || (this.nodes = []), super.append(...e);
|
|
2181
|
+
}
|
|
2182
|
+
prepend(...e) {
|
|
2183
|
+
return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
return Qt = t, t.default = t, e.registerAtRule(t), Qt;
|
|
2187
|
+
}
|
|
2188
|
+
var tn, nn;
|
|
2189
|
+
function Q() {
|
|
2190
|
+
if (nn) return tn;
|
|
2191
|
+
nn = 1;
|
|
2192
|
+
let e = Z(), t, n;
|
|
2193
|
+
class r extends e {
|
|
2194
|
+
constructor(e) {
|
|
2195
|
+
super(e), this.type = "root", this.nodes ||= [];
|
|
2196
|
+
}
|
|
2197
|
+
normalize(e, t, n) {
|
|
2198
|
+
let r = super.normalize(e);
|
|
2199
|
+
if (t) {
|
|
2200
|
+
if (n === "prepend") this.nodes.length > 1 ? t.raws.before = this.nodes[1].raws.before : delete t.raws.before;
|
|
2201
|
+
else if (this.first !== t) for (let e of r) e.raws.before = t.raws.before;
|
|
2202
|
+
}
|
|
2203
|
+
return r;
|
|
2204
|
+
}
|
|
2205
|
+
removeChild(e, t) {
|
|
2206
|
+
let n = this.index(e);
|
|
2207
|
+
return !t && n === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[n].raws.before), super.removeChild(e);
|
|
2208
|
+
}
|
|
2209
|
+
toResult(e = {}) {
|
|
2210
|
+
return new t(new n(), this, e).stringify();
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
return r.registerLazyResult = (e) => {
|
|
2214
|
+
t = e;
|
|
2215
|
+
}, r.registerProcessor = (e) => {
|
|
2216
|
+
n = e;
|
|
2217
|
+
}, tn = r, r.default = r, e.registerRoot(r), tn;
|
|
2218
|
+
}
|
|
2219
|
+
var rn, an;
|
|
2220
|
+
function on() {
|
|
2221
|
+
if (an) return rn;
|
|
2222
|
+
an = 1;
|
|
2223
|
+
let e = {
|
|
2224
|
+
comma(t) {
|
|
2225
|
+
return e.split(t, [","], !0);
|
|
2226
|
+
},
|
|
2227
|
+
space(t) {
|
|
2228
|
+
return e.split(t, [
|
|
2229
|
+
" ",
|
|
2230
|
+
"\n",
|
|
2231
|
+
" "
|
|
2232
|
+
]);
|
|
2233
|
+
},
|
|
2234
|
+
split(e, t, n) {
|
|
2235
|
+
let r = [], i = "", a = !1, o = 0, s = !1, c = "", l = !1;
|
|
2236
|
+
for (let n of e) l ? l = !1 : n === "\\" ? l = !0 : s ? n === c && (s = !1) : n === "\"" || n === "'" ? (s = !0, c = n) : n === "(" ? o += 1 : n === ")" ? o > 0 && --o : o === 0 && t.includes(n) && (a = !0), a ? (i !== "" && r.push(i.trim()), i = "", a = !1) : i += n;
|
|
2237
|
+
return (n || i !== "") && r.push(i.trim()), r;
|
|
2238
|
+
}
|
|
2239
|
+
};
|
|
2240
|
+
return rn = e, e.default = e, rn;
|
|
2241
|
+
}
|
|
2242
|
+
var sn, cn;
|
|
2243
|
+
function ln() {
|
|
2244
|
+
if (cn) return sn;
|
|
2245
|
+
cn = 1;
|
|
2246
|
+
let e = Z(), t = on();
|
|
2247
|
+
class n extends e {
|
|
2248
|
+
constructor(e) {
|
|
2249
|
+
super(e), this.type = "rule", this.nodes ||= [];
|
|
2250
|
+
}
|
|
2251
|
+
get selectors() {
|
|
2252
|
+
return t.comma(this.selector);
|
|
2253
|
+
}
|
|
2254
|
+
set selectors(e) {
|
|
2255
|
+
let t = this.selector ? this.selector.match(/,\s*/) : null, n = t ? t[0] : "," + this.raw("between", "beforeOpen");
|
|
2256
|
+
this.selector = e.join(n);
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
return sn = n, n.default = n, e.registerRule(n), sn;
|
|
2260
|
+
}
|
|
2261
|
+
var un, dn;
|
|
2262
|
+
function fn() {
|
|
2263
|
+
if (dn) return un;
|
|
2264
|
+
dn = 1;
|
|
2265
|
+
let e = J(), t = Zt(), n = X(), r = en(), i = Q(), a = ln(), o = {
|
|
2266
|
+
empty: !0,
|
|
2267
|
+
space: !0
|
|
2268
|
+
};
|
|
2269
|
+
function s(e) {
|
|
2270
|
+
for (let t = e.length - 1; t >= 0; t--) {
|
|
2271
|
+
let n = e[t], r = n[3] || n[2];
|
|
2272
|
+
if (r) return r;
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
class c {
|
|
2276
|
+
constructor(e) {
|
|
2277
|
+
this.input = e, this.root = new i(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = {
|
|
2278
|
+
input: e,
|
|
2279
|
+
start: {
|
|
2280
|
+
column: 1,
|
|
2281
|
+
line: 1,
|
|
2282
|
+
offset: 0
|
|
2283
|
+
}
|
|
2284
|
+
};
|
|
2285
|
+
}
|
|
2286
|
+
atrule(e) {
|
|
2287
|
+
let t = new r();
|
|
2288
|
+
t.name = e[1].slice(1), t.name === "" && this.unnamedAtrule(t, e), this.init(t, e[2]);
|
|
2289
|
+
let n, i, a, o = !1, s = !1, c = [], l = [];
|
|
2290
|
+
for (; !this.tokenizer.endOfFile();) {
|
|
2291
|
+
if (e = this.tokenizer.nextToken(), n = e[0], n === "(" || n === "[" ? l.push(n === "(" ? ")" : "]") : n === "{" && l.length > 0 ? l.push("}") : n === l[l.length - 1] && l.pop(), l.length === 0) {
|
|
2292
|
+
if (n === ";") {
|
|
2293
|
+
t.source.end = this.getPosition(e[2]), t.source.end.offset++, this.semicolon = !0;
|
|
2294
|
+
break;
|
|
2295
|
+
}
|
|
2296
|
+
if (n === "{") {
|
|
2297
|
+
s = !0;
|
|
2298
|
+
break;
|
|
2299
|
+
}
|
|
2300
|
+
if (n === "}") {
|
|
2301
|
+
if (c.length > 0) {
|
|
2302
|
+
for (a = c.length - 1, i = c[a]; i && i[0] === "space";) i = c[--a];
|
|
2303
|
+
i && (t.source.end = this.getPosition(i[3] || i[2]), t.source.end.offset++);
|
|
2304
|
+
}
|
|
2305
|
+
this.end(e);
|
|
2306
|
+
break;
|
|
2307
|
+
}
|
|
2308
|
+
c.push(e);
|
|
2309
|
+
} else c.push(e);
|
|
2310
|
+
if (this.tokenizer.endOfFile()) {
|
|
2311
|
+
o = !0;
|
|
2312
|
+
break;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
t.raws.between = this.spacesAndCommentsFromEnd(c), c.length ? (t.raws.afterName = this.spacesAndCommentsFromStart(c), this.raw(t, "params", c), o && (e = c[c.length - 1], t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++, this.spaces = t.raws.between, t.raws.between = "")) : (t.raws.afterName = "", t.params = ""), s && (t.nodes = [], this.current = t);
|
|
2316
|
+
}
|
|
2317
|
+
checkMissedSemicolon(e) {
|
|
2318
|
+
let t = this.colon(e);
|
|
2319
|
+
if (t === !1) return;
|
|
2320
|
+
let n = 0, r;
|
|
2321
|
+
for (let i = t - 1; i >= 0 && (r = e[i], !(r[0] !== "space" && (n += 1, n === 2))); i--);
|
|
2322
|
+
throw this.input.error("Missed semicolon", r[0] === "word" ? r[3] + 1 : r[2]);
|
|
2323
|
+
}
|
|
2324
|
+
colon(e) {
|
|
2325
|
+
let t = 0, n, r, i;
|
|
2326
|
+
for (let [a, o] of e.entries()) {
|
|
2327
|
+
if (n = o, r = n[0], r === "(" && (t += 1), r === ")" && --t, t === 0 && r === ":") {
|
|
2328
|
+
if (!i) this.doubleColon(n);
|
|
2329
|
+
else if (i[0] === "word" && i[1] === "progid") continue;
|
|
2330
|
+
else return a;
|
|
2331
|
+
}
|
|
2332
|
+
i = n;
|
|
2333
|
+
}
|
|
2334
|
+
return !1;
|
|
2335
|
+
}
|
|
2336
|
+
comment(e) {
|
|
2337
|
+
let t = new n();
|
|
2338
|
+
this.init(t, e[2]), t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++;
|
|
2339
|
+
let r = e[1].slice(2, -2);
|
|
2340
|
+
if (/^\s*$/.test(r)) t.text = "", t.raws.left = r, t.raws.right = "";
|
|
2341
|
+
else {
|
|
2342
|
+
let e = r.match(/^(\s*)([^]*\S)(\s*)$/);
|
|
2343
|
+
t.text = e[2], t.raws.left = e[1], t.raws.right = e[3];
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
createTokenizer() {
|
|
2347
|
+
this.tokenizer = t(this.input);
|
|
2348
|
+
}
|
|
2349
|
+
decl(t, n) {
|
|
2350
|
+
let r = new e();
|
|
2351
|
+
this.init(r, t[0][2]);
|
|
2352
|
+
let i = t[t.length - 1];
|
|
2353
|
+
for (i[0] === ";" && (this.semicolon = !0, t.pop()), r.source.end = this.getPosition(i[3] || i[2] || s(t)), r.source.end.offset++; t[0][0] !== "word";) t.length === 1 && this.unknownWord(t), r.raws.before += t.shift()[1];
|
|
2354
|
+
for (r.source.start = this.getPosition(t[0][2]), r.prop = ""; t.length;) {
|
|
2355
|
+
let e = t[0][0];
|
|
2356
|
+
if (e === ":" || e === "space" || e === "comment") break;
|
|
2357
|
+
r.prop += t.shift()[1];
|
|
2358
|
+
}
|
|
2359
|
+
r.raws.between = "";
|
|
2360
|
+
let a;
|
|
2361
|
+
for (; t.length;) {
|
|
2362
|
+
if (a = t.shift(), a[0] === ":") {
|
|
2363
|
+
r.raws.between += a[1];
|
|
2364
|
+
break;
|
|
2365
|
+
}
|
|
2366
|
+
a[0] === "word" && /\w/.test(a[1]) && this.unknownWord([a]), r.raws.between += a[1];
|
|
2367
|
+
}
|
|
2368
|
+
(r.prop[0] === "_" || r.prop[0] === "*") && (r.raws.before += r.prop[0], r.prop = r.prop.slice(1));
|
|
2369
|
+
let o = [], c;
|
|
2370
|
+
for (; t.length && (c = t[0][0], c === "space" || c === "comment");) o.push(t.shift());
|
|
2371
|
+
this.precheckMissedSemicolon(t);
|
|
2372
|
+
for (let e = t.length - 1; e >= 0; e--) {
|
|
2373
|
+
if (a = t[e], a[1].toLowerCase() === "!important") {
|
|
2374
|
+
r.important = !0;
|
|
2375
|
+
let n = this.stringFrom(t, e);
|
|
2376
|
+
n = this.spacesFromEnd(t) + n, n !== " !important" && (r.raws.important = n);
|
|
2377
|
+
break;
|
|
2378
|
+
}
|
|
2379
|
+
if (a[1].toLowerCase() === "important") {
|
|
2380
|
+
let n = t.slice(0), i = "";
|
|
2381
|
+
for (let t = e; t > 0; t--) {
|
|
2382
|
+
let e = n[t][0];
|
|
2383
|
+
if (i.trim().indexOf("!") === 0 && e !== "space") break;
|
|
2384
|
+
i = n.pop()[1] + i;
|
|
2385
|
+
}
|
|
2386
|
+
i.trim().indexOf("!") === 0 && (r.important = !0, r.raws.important = i, t = n);
|
|
2387
|
+
}
|
|
2388
|
+
if (a[0] !== "space" && a[0] !== "comment") break;
|
|
2389
|
+
}
|
|
2390
|
+
t.some((e) => e[0] !== "space" && e[0] !== "comment") && (r.raws.between += o.map((e) => e[1]).join(""), o = []), this.raw(r, "value", o.concat(t), n), r.value.includes(":") && !n && this.checkMissedSemicolon(t);
|
|
2391
|
+
}
|
|
2392
|
+
doubleColon(e) {
|
|
2393
|
+
throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
|
|
2394
|
+
}
|
|
2395
|
+
emptyRule(e) {
|
|
2396
|
+
let t = new a();
|
|
2397
|
+
this.init(t, e[2]), t.selector = "", t.raws.between = "", this.current = t;
|
|
2398
|
+
}
|
|
2399
|
+
end(e) {
|
|
2400
|
+
this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = this.getPosition(e[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(e);
|
|
2401
|
+
}
|
|
2402
|
+
endFile() {
|
|
2403
|
+
this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.root.source.end = this.getPosition(this.tokenizer.position());
|
|
2404
|
+
}
|
|
2405
|
+
freeSemicolon(e) {
|
|
2406
|
+
if (this.spaces += e[1], this.current.nodes) {
|
|
2407
|
+
let e = this.current.nodes[this.current.nodes.length - 1];
|
|
2408
|
+
e && e.type === "rule" && !e.raws.ownSemicolon && (e.raws.ownSemicolon = this.spaces, this.spaces = "");
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
getPosition(e) {
|
|
2412
|
+
let t = this.input.fromOffset(e);
|
|
2413
|
+
return {
|
|
2414
|
+
column: t.col,
|
|
2415
|
+
line: t.line,
|
|
2416
|
+
offset: e
|
|
2417
|
+
};
|
|
2418
|
+
}
|
|
2419
|
+
init(e, t) {
|
|
2420
|
+
this.current.push(e), e.source = {
|
|
2421
|
+
input: this.input,
|
|
2422
|
+
start: this.getPosition(t)
|
|
2423
|
+
}, e.raws.before = this.spaces, this.spaces = "", e.type !== "comment" && (this.semicolon = !1);
|
|
2424
|
+
}
|
|
2425
|
+
other(e) {
|
|
2426
|
+
let t = !1, n = null, r = !1, i = null, a = [], o = e[1].startsWith("--"), s = [], c = e;
|
|
2427
|
+
for (; c;) {
|
|
2428
|
+
if (n = c[0], s.push(c), n === "(" || n === "[") i ||= c, a.push(n === "(" ? ")" : "]");
|
|
2429
|
+
else if (o && r && n === "{") i ||= c, a.push("}");
|
|
2430
|
+
else if (a.length === 0) {
|
|
2431
|
+
if (n === ";") {
|
|
2432
|
+
if (r) {
|
|
2433
|
+
this.decl(s, o);
|
|
2434
|
+
return;
|
|
2435
|
+
}
|
|
2436
|
+
break;
|
|
2437
|
+
}
|
|
2438
|
+
if (n === "{") {
|
|
2439
|
+
this.rule(s);
|
|
2440
|
+
return;
|
|
2441
|
+
}
|
|
2442
|
+
if (n === "}") {
|
|
2443
|
+
this.tokenizer.back(s.pop()), t = !0;
|
|
2444
|
+
break;
|
|
2445
|
+
}
|
|
2446
|
+
n === ":" && (r = !0);
|
|
2447
|
+
} else n === a[a.length - 1] && (a.pop(), a.length === 0 && (i = null));
|
|
2448
|
+
c = this.tokenizer.nextToken();
|
|
2449
|
+
}
|
|
2450
|
+
if (this.tokenizer.endOfFile() && (t = !0), a.length > 0 && this.unclosedBracket(i), t && r) {
|
|
2451
|
+
if (!o) for (; s.length && (c = s[s.length - 1][0], c === "space" || c === "comment");) this.tokenizer.back(s.pop());
|
|
2452
|
+
this.decl(s, o);
|
|
2453
|
+
} else this.unknownWord(s);
|
|
2454
|
+
}
|
|
2455
|
+
parse() {
|
|
2456
|
+
let e;
|
|
2457
|
+
for (; !this.tokenizer.endOfFile();) switch (e = this.tokenizer.nextToken(), e[0]) {
|
|
2458
|
+
case "space":
|
|
2459
|
+
this.spaces += e[1];
|
|
2460
|
+
break;
|
|
2461
|
+
case ";":
|
|
2462
|
+
this.freeSemicolon(e);
|
|
2463
|
+
break;
|
|
2464
|
+
case "}":
|
|
2465
|
+
this.end(e);
|
|
2466
|
+
break;
|
|
2467
|
+
case "comment":
|
|
2468
|
+
this.comment(e);
|
|
2469
|
+
break;
|
|
2470
|
+
case "at-word":
|
|
2471
|
+
this.atrule(e);
|
|
2472
|
+
break;
|
|
2473
|
+
case "{":
|
|
2474
|
+
this.emptyRule(e);
|
|
2475
|
+
break;
|
|
2476
|
+
default: this.other(e);
|
|
2477
|
+
}
|
|
2478
|
+
this.endFile();
|
|
2479
|
+
}
|
|
2480
|
+
precheckMissedSemicolon() {}
|
|
2481
|
+
raw(e, t, n, r) {
|
|
2482
|
+
let i, a, s = n.length, c = "", l = !0, u, d;
|
|
2483
|
+
for (let e = 0; e < s; e += 1) i = n[e], a = i[0], a === "space" && e === s - 1 && !r ? l = !1 : a === "comment" ? (d = n[e - 1] ? n[e - 1][0] : "empty", u = n[e + 1] ? n[e + 1][0] : "empty", !o[d] && !o[u] ? c.slice(-1) === "," ? l = !1 : c += i[1] : l = !1) : c += i[1];
|
|
2484
|
+
if (!l) {
|
|
2485
|
+
let r = n.reduce((e, t) => e + t[1], "");
|
|
2486
|
+
e.raws[t] = {
|
|
2487
|
+
raw: r,
|
|
2488
|
+
value: c
|
|
2489
|
+
};
|
|
2490
|
+
}
|
|
2491
|
+
e[t] = c;
|
|
2492
|
+
}
|
|
2493
|
+
rule(e) {
|
|
2494
|
+
e.pop();
|
|
2495
|
+
let t = new a();
|
|
2496
|
+
this.init(t, e[0][2]), t.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(t, "selector", e), this.current = t;
|
|
2497
|
+
}
|
|
2498
|
+
spacesAndCommentsFromEnd(e) {
|
|
2499
|
+
let t, n = "";
|
|
2500
|
+
for (; e.length && (t = e[e.length - 1][0], t === "space" || t === "comment");) n = e.pop()[1] + n;
|
|
2501
|
+
return n;
|
|
2502
|
+
}
|
|
2503
|
+
spacesAndCommentsFromStart(e) {
|
|
2504
|
+
let t, n = "";
|
|
2505
|
+
for (; e.length && (t = e[0][0], t === "space" || t === "comment");) n += e.shift()[1];
|
|
2506
|
+
return n;
|
|
2507
|
+
}
|
|
2508
|
+
spacesFromEnd(e) {
|
|
2509
|
+
let t, n = "";
|
|
2510
|
+
for (; e.length && (t = e[e.length - 1][0], t === "space");) n = e.pop()[1] + n;
|
|
2511
|
+
return n;
|
|
2512
|
+
}
|
|
2513
|
+
stringFrom(e, t) {
|
|
2514
|
+
let n = "";
|
|
2515
|
+
for (let r = t; r < e.length; r++) n += e[r][1];
|
|
2516
|
+
return e.splice(t, e.length - t), n;
|
|
2517
|
+
}
|
|
2518
|
+
unclosedBlock() {
|
|
2519
|
+
let e = this.current.source.start;
|
|
2520
|
+
throw this.input.error("Unclosed block", e.line, e.column);
|
|
2521
|
+
}
|
|
2522
|
+
unclosedBracket(e) {
|
|
2523
|
+
throw this.input.error("Unclosed bracket", { offset: e[2] }, { offset: e[2] + 1 });
|
|
2524
|
+
}
|
|
2525
|
+
unexpectedClose(e) {
|
|
2526
|
+
throw this.input.error("Unexpected }", { offset: e[2] }, { offset: e[2] + 1 });
|
|
2527
|
+
}
|
|
2528
|
+
unknownWord(e) {
|
|
2529
|
+
throw this.input.error("Unknown word", { offset: e[0][2] }, { offset: e[0][2] + e[0][1].length });
|
|
2530
|
+
}
|
|
2531
|
+
unnamedAtrule(e, t) {
|
|
2532
|
+
throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
return un = c, un;
|
|
2536
|
+
}
|
|
2537
|
+
var pn, mn;
|
|
2538
|
+
function hn() {
|
|
2539
|
+
if (mn) return pn;
|
|
2540
|
+
mn = 1;
|
|
2541
|
+
let e = Z(), t = fn(), n = Y();
|
|
2542
|
+
function r(e, r) {
|
|
2543
|
+
let i = new n(e, r), a = new t(i);
|
|
2544
|
+
try {
|
|
2545
|
+
a.parse();
|
|
2546
|
+
} catch (e) {
|
|
2547
|
+
throw process.env.NODE_ENV !== "production" && e.name === "CssSyntaxError" && r && r.from && (/\.scss$/i.test(r.from) ? e.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser" : /\.sass/i.test(r.from) ? e.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser" : /\.less$/i.test(r.from) && (e.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")), e;
|
|
2548
|
+
}
|
|
2549
|
+
return a.root;
|
|
2550
|
+
}
|
|
2551
|
+
return pn = r, r.default = r, e.registerParse(r), pn;
|
|
2552
|
+
}
|
|
2553
|
+
var gn, _n;
|
|
2554
|
+
function vn() {
|
|
2555
|
+
if (_n) return gn;
|
|
2556
|
+
_n = 1;
|
|
2557
|
+
let { isClean: e, my: t } = ft(), n = Mt(), r = K(), i = Z(), a = zt(), o = Ht(), s = Jt(), c = hn(), l = Q(), u = {
|
|
2558
|
+
atrule: "AtRule",
|
|
2559
|
+
comment: "Comment",
|
|
2560
|
+
decl: "Declaration",
|
|
2561
|
+
document: "Document",
|
|
2562
|
+
root: "Root",
|
|
2563
|
+
rule: "Rule"
|
|
2564
|
+
}, d = {
|
|
2565
|
+
AtRule: !0,
|
|
2566
|
+
AtRuleExit: !0,
|
|
2567
|
+
Comment: !0,
|
|
2568
|
+
CommentExit: !0,
|
|
2569
|
+
Declaration: !0,
|
|
2570
|
+
DeclarationExit: !0,
|
|
2571
|
+
Document: !0,
|
|
2572
|
+
DocumentExit: !0,
|
|
2573
|
+
Once: !0,
|
|
2574
|
+
OnceExit: !0,
|
|
2575
|
+
postcssPlugin: !0,
|
|
2576
|
+
prepare: !0,
|
|
2577
|
+
Root: !0,
|
|
2578
|
+
RootExit: !0,
|
|
2579
|
+
Rule: !0,
|
|
2580
|
+
RuleExit: !0
|
|
2581
|
+
}, f = {
|
|
2582
|
+
Once: !0,
|
|
2583
|
+
postcssPlugin: !0,
|
|
2584
|
+
prepare: !0
|
|
2585
|
+
};
|
|
2586
|
+
function p(e) {
|
|
2587
|
+
return typeof e == "object" && typeof e.then == "function";
|
|
2588
|
+
}
|
|
2589
|
+
function m(e) {
|
|
2590
|
+
let t = !1, n = u[e.type];
|
|
2591
|
+
return e.type === "decl" ? t = e.prop.toLowerCase() : e.type === "atrule" && (t = e.name.toLowerCase()), t && e.append ? [
|
|
2592
|
+
n,
|
|
2593
|
+
n + "-" + t,
|
|
2594
|
+
0,
|
|
2595
|
+
n + "Exit",
|
|
2596
|
+
n + "Exit-" + t
|
|
2597
|
+
] : t ? [
|
|
2598
|
+
n,
|
|
2599
|
+
n + "-" + t,
|
|
2600
|
+
n + "Exit",
|
|
2601
|
+
n + "Exit-" + t
|
|
2602
|
+
] : e.append ? [
|
|
2603
|
+
n,
|
|
2604
|
+
0,
|
|
2605
|
+
n + "Exit"
|
|
2606
|
+
] : [n, n + "Exit"];
|
|
2607
|
+
}
|
|
2608
|
+
function h(e) {
|
|
2609
|
+
let t;
|
|
2610
|
+
return t = e.type === "document" ? [
|
|
2611
|
+
"Document",
|
|
2612
|
+
0,
|
|
2613
|
+
"DocumentExit"
|
|
2614
|
+
] : e.type === "root" ? [
|
|
2615
|
+
"Root",
|
|
2616
|
+
0,
|
|
2617
|
+
"RootExit"
|
|
2618
|
+
] : m(e), {
|
|
2619
|
+
eventIndex: 0,
|
|
2620
|
+
events: t,
|
|
2621
|
+
iterator: 0,
|
|
2622
|
+
node: e,
|
|
2623
|
+
visitorIndex: 0,
|
|
2624
|
+
visitors: []
|
|
2625
|
+
};
|
|
2626
|
+
}
|
|
2627
|
+
function g(t) {
|
|
2628
|
+
return t[e] = !1, t.nodes && t.nodes.forEach((e) => g(e)), t;
|
|
2629
|
+
}
|
|
2630
|
+
let _ = {};
|
|
2631
|
+
class v {
|
|
2632
|
+
constructor(e, n, r) {
|
|
2633
|
+
this.stringified = !1, this.processed = !1;
|
|
2634
|
+
let a;
|
|
2635
|
+
if (typeof n == "object" && n && (n.type === "root" || n.type === "document")) a = g(n);
|
|
2636
|
+
else if (n instanceof v || n instanceof s) a = g(n.root), n.map && (r.map === void 0 && (r.map = {}), r.map.inline || (r.map.inline = !1), r.map.prev = n.map);
|
|
2637
|
+
else {
|
|
2638
|
+
let e = c;
|
|
2639
|
+
r.syntax && (e = r.syntax.parse), r.parser && (e = r.parser), e.parse && (e = e.parse);
|
|
2640
|
+
try {
|
|
2641
|
+
a = e(n, r);
|
|
2642
|
+
} catch (e) {
|
|
2643
|
+
this.processed = !0, this.error = e;
|
|
2644
|
+
}
|
|
2645
|
+
a && !a[t] && i.rebuild(a);
|
|
2646
|
+
}
|
|
2647
|
+
this.result = new s(e, a, r), this.helpers = {
|
|
2648
|
+
..._,
|
|
2649
|
+
postcss: _,
|
|
2650
|
+
result: this.result
|
|
2651
|
+
}, this.plugins = this.processor.plugins.map((e) => typeof e == "object" && e.prepare ? {
|
|
2652
|
+
...e,
|
|
2653
|
+
...e.prepare(this.result)
|
|
2654
|
+
} : e);
|
|
2655
|
+
}
|
|
2656
|
+
async() {
|
|
2657
|
+
return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing ||= this.runAsync(), this.processing);
|
|
2658
|
+
}
|
|
2659
|
+
catch(e) {
|
|
2660
|
+
return this.async().catch(e);
|
|
2661
|
+
}
|
|
2662
|
+
finally(e) {
|
|
2663
|
+
return this.async().then(e, e);
|
|
2664
|
+
}
|
|
2665
|
+
getAsyncError() {
|
|
2666
|
+
throw Error("Use process(css).then(cb) to work with async plugins");
|
|
2667
|
+
}
|
|
2668
|
+
handleError(e, t) {
|
|
2669
|
+
let n = this.result.lastPlugin;
|
|
2670
|
+
try {
|
|
2671
|
+
if (t && t.addToError(e), this.error = e, e.name === "CssSyntaxError" && !e.plugin) e.plugin = n.postcssPlugin, e.setMessage();
|
|
2672
|
+
else if (n.postcssVersion && process.env.NODE_ENV !== "production") {
|
|
2673
|
+
let e = n.postcssPlugin, t = n.postcssVersion, r = this.result.processor.version, i = t.split("."), a = r.split(".");
|
|
2674
|
+
(i[0] !== a[0] || parseInt(i[1]) > parseInt(a[1])) && console.error("Unknown error from PostCSS plugin. Your current PostCSS version is " + r + ", but " + e + " uses " + t + ". Perhaps this is the source of the error below.");
|
|
2675
|
+
}
|
|
2676
|
+
} catch (e) {
|
|
2677
|
+
console && console.error && console.error(e);
|
|
2678
|
+
}
|
|
2679
|
+
return e;
|
|
2680
|
+
}
|
|
2681
|
+
prepareVisitors() {
|
|
2682
|
+
this.listeners = {};
|
|
2683
|
+
let e = (e, t, n) => {
|
|
2684
|
+
this.listeners[t] || (this.listeners[t] = []), this.listeners[t].push([e, n]);
|
|
2685
|
+
};
|
|
2686
|
+
for (let t of this.plugins) if (typeof t == "object") for (let n in t) {
|
|
2687
|
+
if (!d[n] && /^[A-Z]/.test(n)) throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
|
|
2688
|
+
if (!f[n]) {
|
|
2689
|
+
if (typeof t[n] == "object") for (let r in t[n]) r === "*" ? e(t, n, t[n][r]) : e(t, n + "-" + r.toLowerCase(), t[n][r]);
|
|
2690
|
+
else typeof t[n] == "function" && e(t, n, t[n]);
|
|
2691
|
+
}
|
|
2692
|
+
}
|
|
2693
|
+
this.hasListener = Object.keys(this.listeners).length > 0;
|
|
2694
|
+
}
|
|
2695
|
+
async runAsync() {
|
|
2696
|
+
this.plugin = 0;
|
|
2697
|
+
for (let e = 0; e < this.plugins.length; e++) {
|
|
2698
|
+
let t = this.plugins[e], n = this.runOnRoot(t);
|
|
2699
|
+
if (p(n)) try {
|
|
2700
|
+
await n;
|
|
2701
|
+
} catch (e) {
|
|
2702
|
+
throw this.handleError(e);
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
if (this.prepareVisitors(), this.hasListener) {
|
|
2706
|
+
let t = this.result.root;
|
|
2707
|
+
for (; !t[e];) {
|
|
2708
|
+
t[e] = !0;
|
|
2709
|
+
let n = [h(t)];
|
|
2710
|
+
for (; n.length > 0;) {
|
|
2711
|
+
let e = this.visitTick(n);
|
|
2712
|
+
if (p(e)) try {
|
|
2713
|
+
await e;
|
|
2714
|
+
} catch (e) {
|
|
2715
|
+
let t = n[n.length - 1].node;
|
|
2716
|
+
throw this.handleError(e, t);
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
if (this.listeners.OnceExit) for (let [e, n] of this.listeners.OnceExit) {
|
|
2721
|
+
this.result.lastPlugin = e;
|
|
2722
|
+
try {
|
|
2723
|
+
if (t.type === "document") {
|
|
2724
|
+
let e = t.nodes.map((e) => n(e, this.helpers));
|
|
2725
|
+
await Promise.all(e);
|
|
2726
|
+
} else await n(t, this.helpers);
|
|
2727
|
+
} catch (e) {
|
|
2728
|
+
throw this.handleError(e);
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
return this.processed = !0, this.stringify();
|
|
2733
|
+
}
|
|
2734
|
+
runOnRoot(e) {
|
|
2735
|
+
this.result.lastPlugin = e;
|
|
2736
|
+
try {
|
|
2737
|
+
if (typeof e == "object" && e.Once) {
|
|
2738
|
+
if (this.result.root.type === "document") {
|
|
2739
|
+
let t = this.result.root.nodes.map((t) => e.Once(t, this.helpers));
|
|
2740
|
+
return p(t[0]) ? Promise.all(t) : t;
|
|
2741
|
+
}
|
|
2742
|
+
return e.Once(this.result.root, this.helpers);
|
|
2743
|
+
}
|
|
2744
|
+
if (typeof e == "function") return e(this.result.root, this.result);
|
|
2745
|
+
} catch (e) {
|
|
2746
|
+
throw this.handleError(e);
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
stringify() {
|
|
2750
|
+
if (this.error) throw this.error;
|
|
2751
|
+
if (this.stringified) return this.result;
|
|
2752
|
+
this.stringified = !0, this.sync();
|
|
2753
|
+
let e = this.result.opts, t = r;
|
|
2754
|
+
e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify);
|
|
2755
|
+
let i = new n(t, this.result.root, this.result.opts).generate();
|
|
2756
|
+
return this.result.css = i[0], this.result.map = i[1], this.result;
|
|
2757
|
+
}
|
|
2758
|
+
sync() {
|
|
2759
|
+
if (this.error) throw this.error;
|
|
2760
|
+
if (this.processed) return this.result;
|
|
2761
|
+
if (this.processed = !0, this.processing) throw this.getAsyncError();
|
|
2762
|
+
for (let e of this.plugins) if (p(this.runOnRoot(e))) throw this.getAsyncError();
|
|
2763
|
+
if (this.prepareVisitors(), this.hasListener) {
|
|
2764
|
+
let t = this.result.root;
|
|
2765
|
+
for (; !t[e];) t[e] = !0, this.walkSync(t);
|
|
2766
|
+
if (this.listeners.OnceExit) {
|
|
2767
|
+
if (t.type === "document") for (let e of t.nodes) this.visitSync(this.listeners.OnceExit, e);
|
|
2768
|
+
else this.visitSync(this.listeners.OnceExit, t);
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
return this.result;
|
|
2772
|
+
}
|
|
2773
|
+
then(e, t) {
|
|
2774
|
+
return process.env.NODE_ENV !== "production" && ("from" in this.opts || o("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, t);
|
|
2775
|
+
}
|
|
2776
|
+
toString() {
|
|
2777
|
+
return this.css;
|
|
2778
|
+
}
|
|
2779
|
+
visitSync(e, t) {
|
|
2780
|
+
for (let [n, r] of e) {
|
|
2781
|
+
this.result.lastPlugin = n;
|
|
2782
|
+
let e;
|
|
2783
|
+
try {
|
|
2784
|
+
e = r(t, this.helpers);
|
|
2785
|
+
} catch (e) {
|
|
2786
|
+
throw this.handleError(e, t.proxyOf);
|
|
2787
|
+
}
|
|
2788
|
+
if (t.type !== "root" && t.type !== "document" && !t.parent) return !0;
|
|
2789
|
+
if (p(e)) throw this.getAsyncError();
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
visitTick(t) {
|
|
2793
|
+
let n = t[t.length - 1], { node: r, visitors: i } = n;
|
|
2794
|
+
if (r.type !== "root" && r.type !== "document" && !r.parent) {
|
|
2795
|
+
t.pop();
|
|
2796
|
+
return;
|
|
2797
|
+
}
|
|
2798
|
+
if (i.length > 0 && n.visitorIndex < i.length) {
|
|
2799
|
+
let [e, t] = i[n.visitorIndex];
|
|
2800
|
+
n.visitorIndex += 1, n.visitorIndex === i.length && (n.visitors = [], n.visitorIndex = 0), this.result.lastPlugin = e;
|
|
2801
|
+
try {
|
|
2802
|
+
return t(r.toProxy(), this.helpers);
|
|
2803
|
+
} catch (e) {
|
|
2804
|
+
throw this.handleError(e, r);
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
if (n.iterator !== 0) {
|
|
2808
|
+
let i = n.iterator, a;
|
|
2809
|
+
for (; a = r.nodes[r.indexes[i]];) if (r.indexes[i] += 1, !a[e]) {
|
|
2810
|
+
a[e] = !0, t.push(h(a));
|
|
2811
|
+
return;
|
|
2812
|
+
}
|
|
2813
|
+
n.iterator = 0, delete r.indexes[i];
|
|
2814
|
+
}
|
|
2815
|
+
let a = n.events;
|
|
2816
|
+
for (; n.eventIndex < a.length;) {
|
|
2817
|
+
let t = a[n.eventIndex];
|
|
2818
|
+
if (n.eventIndex += 1, t === 0) {
|
|
2819
|
+
r.nodes && r.nodes.length && (r[e] = !0, n.iterator = r.getIterator());
|
|
2820
|
+
return;
|
|
2821
|
+
}
|
|
2822
|
+
if (this.listeners[t]) {
|
|
2823
|
+
n.visitors = this.listeners[t];
|
|
2824
|
+
return;
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
t.pop();
|
|
2828
|
+
}
|
|
2829
|
+
walkSync(t) {
|
|
2830
|
+
t[e] = !0;
|
|
2831
|
+
let n = m(t);
|
|
2832
|
+
for (let r of n) if (r === 0) t.nodes && t.each((t) => {
|
|
2833
|
+
t[e] || this.walkSync(t);
|
|
2834
|
+
});
|
|
2835
|
+
else {
|
|
2836
|
+
let e = this.listeners[r];
|
|
2837
|
+
if (e && this.visitSync(e, t.toProxy())) return;
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
warnings() {
|
|
2841
|
+
return this.sync().warnings();
|
|
2842
|
+
}
|
|
2843
|
+
get content() {
|
|
2844
|
+
return this.stringify().content;
|
|
2845
|
+
}
|
|
2846
|
+
get css() {
|
|
2847
|
+
return this.stringify().css;
|
|
2848
|
+
}
|
|
2849
|
+
get map() {
|
|
2850
|
+
return this.stringify().map;
|
|
2851
|
+
}
|
|
2852
|
+
get messages() {
|
|
2853
|
+
return this.sync().messages;
|
|
2854
|
+
}
|
|
2855
|
+
get opts() {
|
|
2856
|
+
return this.result.opts;
|
|
2857
|
+
}
|
|
2858
|
+
get processor() {
|
|
2859
|
+
return this.result.processor;
|
|
2860
|
+
}
|
|
2861
|
+
get root() {
|
|
2862
|
+
return this.sync().root;
|
|
2863
|
+
}
|
|
2864
|
+
get [Symbol.toStringTag]() {
|
|
2865
|
+
return "LazyResult";
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
return v.registerPostcss = (e) => {
|
|
2869
|
+
_ = e;
|
|
2870
|
+
}, gn = v, v.default = v, l.registerLazyResult(v), a.registerLazyResult(v), gn;
|
|
2871
|
+
}
|
|
2872
|
+
var yn, bn;
|
|
2873
|
+
function xn() {
|
|
2874
|
+
if (bn) return yn;
|
|
2875
|
+
bn = 1;
|
|
2876
|
+
let e = Mt(), t = K(), n = Ht(), r = hn(), i = Jt();
|
|
2877
|
+
class a {
|
|
2878
|
+
constructor(n, r, a) {
|
|
2879
|
+
r = r.toString(), this.stringified = !1, this._processor = n, this._css = r, this._opts = a, this._map = void 0;
|
|
2880
|
+
let o, s = t;
|
|
2881
|
+
this.result = new i(this._processor, o, this._opts), this.result.css = r;
|
|
2882
|
+
let c = this;
|
|
2883
|
+
Object.defineProperty(this.result, "root", { get() {
|
|
2884
|
+
return c.root;
|
|
2885
|
+
} });
|
|
2886
|
+
let l = new e(s, o, this._opts, r);
|
|
2887
|
+
if (l.isMap()) {
|
|
2888
|
+
let [e, t] = l.generate();
|
|
2889
|
+
e && (this.result.css = e), t && (this.result.map = t);
|
|
2890
|
+
} else l.clearAnnotation(), this.result.css = l.css;
|
|
2891
|
+
}
|
|
2892
|
+
async() {
|
|
2893
|
+
return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
|
|
2894
|
+
}
|
|
2895
|
+
catch(e) {
|
|
2896
|
+
return this.async().catch(e);
|
|
2897
|
+
}
|
|
2898
|
+
finally(e) {
|
|
2899
|
+
return this.async().then(e, e);
|
|
2900
|
+
}
|
|
2901
|
+
sync() {
|
|
2902
|
+
if (this.error) throw this.error;
|
|
2903
|
+
return this.result;
|
|
2904
|
+
}
|
|
2905
|
+
then(e, t) {
|
|
2906
|
+
return process.env.NODE_ENV !== "production" && ("from" in this._opts || n("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, t);
|
|
2907
|
+
}
|
|
2908
|
+
toString() {
|
|
2909
|
+
return this._css;
|
|
2910
|
+
}
|
|
2911
|
+
warnings() {
|
|
2912
|
+
return [];
|
|
2913
|
+
}
|
|
2914
|
+
get content() {
|
|
2915
|
+
return this.result.css;
|
|
2916
|
+
}
|
|
2917
|
+
get css() {
|
|
2918
|
+
return this.result.css;
|
|
2919
|
+
}
|
|
2920
|
+
get map() {
|
|
2921
|
+
return this.result.map;
|
|
2922
|
+
}
|
|
2923
|
+
get messages() {
|
|
2924
|
+
return [];
|
|
2925
|
+
}
|
|
2926
|
+
get opts() {
|
|
2927
|
+
return this.result.opts;
|
|
2928
|
+
}
|
|
2929
|
+
get processor() {
|
|
2930
|
+
return this.result.processor;
|
|
2931
|
+
}
|
|
2932
|
+
get root() {
|
|
2933
|
+
if (this._root) return this._root;
|
|
2934
|
+
let e, t = r;
|
|
2935
|
+
try {
|
|
2936
|
+
e = t(this._css, this._opts);
|
|
2937
|
+
} catch (e) {
|
|
2938
|
+
this.error = e;
|
|
2939
|
+
}
|
|
2940
|
+
if (this.error) throw this.error;
|
|
2941
|
+
return this._root = e, e;
|
|
2942
|
+
}
|
|
2943
|
+
get [Symbol.toStringTag]() {
|
|
2944
|
+
return "NoWorkResult";
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
return yn = a, a.default = a, yn;
|
|
2948
|
+
}
|
|
2949
|
+
var Sn, Cn;
|
|
2950
|
+
function wn() {
|
|
2951
|
+
if (Cn) return Sn;
|
|
2952
|
+
Cn = 1;
|
|
2953
|
+
let e = xn(), t = vn(), n = zt(), r = Q();
|
|
2954
|
+
class i {
|
|
2955
|
+
constructor(e = []) {
|
|
2956
|
+
this.version = "8.4.38", this.plugins = this.normalize(e);
|
|
2957
|
+
}
|
|
2958
|
+
normalize(e) {
|
|
2959
|
+
let t = [];
|
|
2960
|
+
for (let n of e) if (n.postcss === !0 ? n = n() : n.postcss && (n = n.postcss), typeof n == "object" && Array.isArray(n.plugins)) t = t.concat(n.plugins);
|
|
2961
|
+
else if (typeof n == "object" && n.postcssPlugin) t.push(n);
|
|
2962
|
+
else if (typeof n == "function") t.push(n);
|
|
2963
|
+
else if (typeof n == "object" && (n.parse || n.stringify)) {
|
|
2964
|
+
if (process.env.NODE_ENV !== "production") throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");
|
|
2965
|
+
} else throw Error(n + " is not a PostCSS plugin");
|
|
2966
|
+
return t;
|
|
2967
|
+
}
|
|
2968
|
+
process(n, r = {}) {
|
|
2969
|
+
return !this.plugins.length && !r.parser && !r.stringifier && !r.syntax ? new e(this, n, r) : new t(this, n, r);
|
|
2970
|
+
}
|
|
2971
|
+
use(e) {
|
|
2972
|
+
return this.plugins = this.plugins.concat(this.normalize([e])), this;
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
return Sn = i, i.default = i, r.registerProcessor(i), n.registerProcessor(i), Sn;
|
|
2976
|
+
}
|
|
2977
|
+
var Tn, En;
|
|
2978
|
+
function Dn() {
|
|
2979
|
+
if (En) return Tn;
|
|
2980
|
+
En = 1;
|
|
2981
|
+
let e = J(), t = Dt(), n = X(), r = en(), i = Y(), a = Q(), o = ln();
|
|
2982
|
+
function s(c, l) {
|
|
2983
|
+
if (Array.isArray(c)) return c.map((e) => s(e));
|
|
2984
|
+
let { inputs: u, ...d } = c;
|
|
2985
|
+
if (u) {
|
|
2986
|
+
l = [];
|
|
2987
|
+
for (let e of u) {
|
|
2988
|
+
let n = {
|
|
2989
|
+
...e,
|
|
2990
|
+
__proto__: i.prototype
|
|
2991
|
+
};
|
|
2992
|
+
n.map &&= {
|
|
2993
|
+
...n.map,
|
|
2994
|
+
__proto__: t.prototype
|
|
2995
|
+
}, l.push(n);
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
if (d.nodes &&= c.nodes.map((e) => s(e, l)), d.source) {
|
|
2999
|
+
let { inputId: e, ...t } = d.source;
|
|
3000
|
+
d.source = t, e != null && (d.source.input = l[e]);
|
|
3001
|
+
}
|
|
3002
|
+
if (d.type === "root") return new a(d);
|
|
3003
|
+
if (d.type === "decl") return new e(d);
|
|
3004
|
+
if (d.type === "rule") return new o(d);
|
|
3005
|
+
if (d.type === "comment") return new n(d);
|
|
3006
|
+
if (d.type === "atrule") return new r(d);
|
|
3007
|
+
throw Error("Unknown node type: " + c.type);
|
|
3008
|
+
}
|
|
3009
|
+
return Tn = s, s.default = s, Tn;
|
|
3010
|
+
}
|
|
3011
|
+
var On, kn;
|
|
3012
|
+
function An() {
|
|
3013
|
+
if (kn) return On;
|
|
3014
|
+
kn = 1;
|
|
3015
|
+
let e = lt(), t = J(), n = vn(), r = Z(), i = wn(), a = K(), o = Dn(), s = zt(), c = Gt(), l = X(), u = en(), d = Jt(), f = Y(), p = hn(), m = on(), h = ln(), g = Q(), _ = q();
|
|
3016
|
+
function v(...e) {
|
|
3017
|
+
return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new i(e);
|
|
3018
|
+
}
|
|
3019
|
+
return v.plugin = function(e, t) {
|
|
3020
|
+
let n = !1;
|
|
3021
|
+
function r(...r) {
|
|
3022
|
+
console && console.warn && !n && (n = !0, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
|
|
3023
|
+
let a = t(...r);
|
|
3024
|
+
return a.postcssPlugin = e, a.postcssVersion = new i().version, a;
|
|
3025
|
+
}
|
|
3026
|
+
let a;
|
|
3027
|
+
return Object.defineProperty(r, "postcss", { get() {
|
|
3028
|
+
return a ||= r(), a;
|
|
3029
|
+
} }), r.process = function(e, t, n) {
|
|
3030
|
+
return v([r(n)]).process(e, t);
|
|
3031
|
+
}, r;
|
|
3032
|
+
}, v.stringify = a, v.parse = p, v.fromJSON = o, v.list = m, v.comment = (e) => new l(e), v.atRule = (e) => new u(e), v.decl = (e) => new t(e), v.rule = (e) => new h(e), v.root = (e) => new g(e), v.document = (e) => new s(e), v.CssSyntaxError = e, v.Declaration = t, v.Container = r, v.Processor = i, v.Document = s, v.Comment = l, v.Warning = c, v.AtRule = u, v.Result = d, v.Input = f, v.Rule = h, v.Root = g, v.Node = _, n.registerPostcss(v), On = v, v.default = v, On;
|
|
3033
|
+
}
|
|
3034
|
+
var $ = /* @__PURE__ */ rt(An());
|
|
3035
|
+
$.stringify, $.fromJSON, $.plugin, $.parse, $.list, $.document, $.comment, $.atRule, $.rule, $.decl, $.root, $.CssSyntaxError, $.Declaration, $.Container, $.Processor, $.Document, $.Comment, $.Warning, $.AtRule, $.Result, $.Input, $.Rule, $.Root, $.Node;
|
|
3036
|
+
var jn = {
|
|
3037
|
+
script: "noscript",
|
|
3038
|
+
altglyph: "altGlyph",
|
|
3039
|
+
altglyphdef: "altGlyphDef",
|
|
3040
|
+
altglyphitem: "altGlyphItem",
|
|
3041
|
+
animatecolor: "animateColor",
|
|
3042
|
+
animatemotion: "animateMotion",
|
|
3043
|
+
animatetransform: "animateTransform",
|
|
3044
|
+
clippath: "clipPath",
|
|
3045
|
+
feblend: "feBlend",
|
|
3046
|
+
fecolormatrix: "feColorMatrix",
|
|
3047
|
+
fecomponenttransfer: "feComponentTransfer",
|
|
3048
|
+
fecomposite: "feComposite",
|
|
3049
|
+
feconvolvematrix: "feConvolveMatrix",
|
|
3050
|
+
fediffuselighting: "feDiffuseLighting",
|
|
3051
|
+
fedisplacementmap: "feDisplacementMap",
|
|
3052
|
+
fedistantlight: "feDistantLight",
|
|
3053
|
+
fedropshadow: "feDropShadow",
|
|
3054
|
+
feflood: "feFlood",
|
|
3055
|
+
fefunca: "feFuncA",
|
|
3056
|
+
fefuncb: "feFuncB",
|
|
3057
|
+
fefuncg: "feFuncG",
|
|
3058
|
+
fefuncr: "feFuncR",
|
|
3059
|
+
fegaussianblur: "feGaussianBlur",
|
|
3060
|
+
feimage: "feImage",
|
|
3061
|
+
femerge: "feMerge",
|
|
3062
|
+
femergenode: "feMergeNode",
|
|
3063
|
+
femorphology: "feMorphology",
|
|
3064
|
+
feoffset: "feOffset",
|
|
3065
|
+
fepointlight: "fePointLight",
|
|
3066
|
+
fespecularlighting: "feSpecularLighting",
|
|
3067
|
+
fespotlight: "feSpotLight",
|
|
3068
|
+
fetile: "feTile",
|
|
3069
|
+
feturbulence: "feTurbulence",
|
|
3070
|
+
foreignobject: "foreignObject",
|
|
3071
|
+
glyphref: "glyphRef",
|
|
3072
|
+
lineargradient: "linearGradient",
|
|
3073
|
+
radialgradient: "radialGradient"
|
|
3074
|
+
};
|
|
3075
|
+
function Mn(e) {
|
|
3076
|
+
let t = jn[e.tagName] ? jn[e.tagName] : e.tagName;
|
|
3077
|
+
return t === "link" && e.attributes._cssText && (t = "style"), t;
|
|
3078
|
+
}
|
|
3079
|
+
function Nn(e, t) {
|
|
3080
|
+
let n = t?.stylesWithHoverClass.get(e);
|
|
3081
|
+
if (n) return n;
|
|
3082
|
+
let r = e;
|
|
3083
|
+
try {
|
|
3084
|
+
r = $([tt, nt]).process(e).css;
|
|
3085
|
+
} catch (e) {
|
|
3086
|
+
console.warn("Failed to adapt css for replay", e);
|
|
3087
|
+
}
|
|
3088
|
+
return t?.stylesWithHoverClass.set(e, r), r;
|
|
3089
|
+
}
|
|
3090
|
+
function Pn() {
|
|
3091
|
+
return { stylesWithHoverClass: /* @__PURE__ */ new Map() };
|
|
3092
|
+
}
|
|
3093
|
+
var Fn = "rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.", In = "rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.", Ln = /* @__PURE__ */ new WeakSet();
|
|
3094
|
+
function Rn(e) {
|
|
3095
|
+
if (!e || e.tagName !== "IFRAME" || !("sandbox" in e)) return !1;
|
|
3096
|
+
let t = Array.from(e.sandbox);
|
|
3097
|
+
return t.length === 1 && t[0] === "allow-same-origin";
|
|
3098
|
+
}
|
|
3099
|
+
function zn(e) {
|
|
3100
|
+
if (e.UNSAFE_allowUnprotectedRebuild) return;
|
|
3101
|
+
let t = e.doc.defaultView;
|
|
3102
|
+
if (t && !(Ln.has(e.doc) && Rn(t.frameElement))) throw Error(Fn);
|
|
3103
|
+
}
|
|
3104
|
+
function Bn(e, t, n, i) {
|
|
3105
|
+
let a = [];
|
|
3106
|
+
for (let t of e.childNodes) t.type === r.Text && a.push(t);
|
|
3107
|
+
let o = t.split("/* rr_split */");
|
|
3108
|
+
for (; o.length > 1 && o.length > a.length;) o.splice(-2, 2, o.slice(-2).join(""));
|
|
3109
|
+
let s = "";
|
|
3110
|
+
n && (s = Nn(o.join(""), i));
|
|
3111
|
+
let c = 0, l = -1;
|
|
3112
|
+
for (let e = 0; e < a.length && e !== o.length; e++) {
|
|
3113
|
+
let t = a[e], r = o[e], i = e < o.length - 1 ? o[e + 1] : null;
|
|
3114
|
+
if (n && i) {
|
|
3115
|
+
let e = c, t = i.length;
|
|
3116
|
+
t = Math.min(t, 30);
|
|
3117
|
+
let n = !1;
|
|
3118
|
+
for (; t > 2; t--) {
|
|
3119
|
+
let r = i.substring(0, t), a = s.substring(c).indexOf(r);
|
|
3120
|
+
if (n = a !== -1, n) {
|
|
3121
|
+
e += a;
|
|
3122
|
+
break;
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
n || (e += r.length), r = s.substring(c, e), c = e;
|
|
3126
|
+
} else n && (r = s.substring(c));
|
|
3127
|
+
l !== -1 && (r = r.substring(l)), i && (l !== -1 || r.endsWith("0p") && i.startsWith("x")) && (l = i.indexOf("}"), l !== -1 && (l += 1, r += i.substring(0, l))), t.textContent = r;
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
function Vn(e, t, n, r) {
|
|
3131
|
+
let { doc: i, hackCss: a, cache: o } = r;
|
|
3132
|
+
e.childNodes.length ? Bn(e, n, a, o) : (a && (n = Nn(n, o)), t.appendChild(i.createTextNode(n)));
|
|
3133
|
+
}
|
|
3134
|
+
function Hn(e, t) {
|
|
3135
|
+
let { doc: n, hackCss: i, cache: a } = t;
|
|
3136
|
+
switch (e.type) {
|
|
3137
|
+
case r.Document: return n.implementation.createDocument(null, "", null);
|
|
3138
|
+
case r.DocumentType: return n.implementation.createDocumentType(e.name || "html", e.publicId, e.systemId);
|
|
3139
|
+
case r.Element: {
|
|
3140
|
+
let r = Mn(e), i;
|
|
3141
|
+
e.isSVG ? i = n.createElementNS("http://www.w3.org/2000/svg", r) : (e.isCustom && n.defaultView?.customElements && !n.defaultView.customElements.get(e.tagName) && n.defaultView.customElements.define(e.tagName, class extends n.defaultView.HTMLElement {}), i = n.createElement(r));
|
|
3142
|
+
let a = {};
|
|
3143
|
+
for (let o in e.attributes) {
|
|
3144
|
+
if (!Object.prototype.hasOwnProperty.call(e.attributes, o)) continue;
|
|
3145
|
+
let s = e.attributes[o];
|
|
3146
|
+
if ((r !== "option" || o !== "selected" || s !== !1) && s !== null) {
|
|
3147
|
+
if (s === !0 && (s = ""), o.startsWith("rr_")) a[o] = s;
|
|
3148
|
+
else {
|
|
3149
|
+
if (typeof s == "string") {
|
|
3150
|
+
if (r === "style" && o === "_cssText") {
|
|
3151
|
+
Vn(e, i, s, t);
|
|
3152
|
+
continue;
|
|
3153
|
+
}
|
|
3154
|
+
if (r === "textarea" && o === "value") {
|
|
3155
|
+
i.appendChild(n.createTextNode(s)), e.childNodes = [];
|
|
3156
|
+
continue;
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
try {
|
|
3160
|
+
if (e.isSVG && o === "xlink:href") i.setAttributeNS("http://www.w3.org/1999/xlink", o, s.toString());
|
|
3161
|
+
else if (o === "onload" || o === "onclick" || o.substring(0, 7) === "onmouse") i.setAttribute("_" + o, s.toString());
|
|
3162
|
+
else if (r === "meta" && e.attributes["http-equiv"] === "Content-Security-Policy" && o === "content") {
|
|
3163
|
+
i.setAttribute("csp-content", s.toString());
|
|
3164
|
+
continue;
|
|
3165
|
+
} else r === "link" && (e.attributes.rel === "preload" && e.attributes.as === "script" || e.attributes.rel === "modulepreload") || r === "link" && e.attributes.rel === "prefetch" && typeof e.attributes.href == "string" && L(e.attributes.href) === "js" || (r === "img" && e.attributes.srcset && e.attributes.rr_dataURL ? i.setAttribute("rrweb-original-srcset", e.attributes.srcset) : i.setAttribute(o, s.toString()));
|
|
3166
|
+
} catch {}
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
}
|
|
3170
|
+
for (let t in a) {
|
|
3171
|
+
let o = a[t];
|
|
3172
|
+
if (r === "canvas" && t === "rr_dataURL") {
|
|
3173
|
+
let e = n.createElement("img");
|
|
3174
|
+
e.onload = () => {
|
|
3175
|
+
let t = i.getContext("2d");
|
|
3176
|
+
t && t.drawImage(e, 0, 0, e.width, e.height);
|
|
3177
|
+
}, e.src = o.toString(), i.RRNodeType && (i.rr_dataURL = o.toString());
|
|
3178
|
+
} else if (r === "img" && t === "rr_dataURL") {
|
|
3179
|
+
let t = i;
|
|
3180
|
+
t.currentSrc.startsWith("data:") || (t.setAttribute("rrweb-original-src", e.attributes.src), t.src = o.toString());
|
|
3181
|
+
}
|
|
3182
|
+
if (t === "rr_width") i.style.setProperty("width", o.toString());
|
|
3183
|
+
else if (t === "rr_height") i.style.setProperty("height", o.toString());
|
|
3184
|
+
else if (t === "rr_mediaCurrentTime" && typeof o == "number") i.currentTime = o;
|
|
3185
|
+
else if (t === "rr_mediaState") switch (o) {
|
|
3186
|
+
case "played":
|
|
3187
|
+
i.play().catch((e) => console.warn("media playback error", e));
|
|
3188
|
+
break;
|
|
3189
|
+
case "paused": i.pause();
|
|
3190
|
+
}
|
|
3191
|
+
else t === "rr_mediaPlaybackRate" && typeof o == "number" ? i.playbackRate = o : t === "rr_mediaMuted" && typeof o == "boolean" ? i.muted = o : t === "rr_mediaLoop" && typeof o == "boolean" ? i.loop = o : t === "rr_mediaVolume" && typeof o == "number" ? i.volume = o : t === "rr_open_mode" && i.setAttribute("rr_open_mode", o);
|
|
3192
|
+
}
|
|
3193
|
+
if (e.isShadowHost) {
|
|
3194
|
+
if (!i.shadowRoot) i.attachShadow({ mode: "open" });
|
|
3195
|
+
else for (; i.shadowRoot.firstChild;) i.shadowRoot.removeChild(i.shadowRoot.firstChild);
|
|
3196
|
+
}
|
|
3197
|
+
return (r === "input" || r === "textarea") && i.setAttribute("autocomplete", "off"), i;
|
|
3198
|
+
}
|
|
3199
|
+
case r.Text: return e.isStyle && i ? n.createTextNode(Nn(e.textContent, a)) : n.createTextNode(e.textContent);
|
|
3200
|
+
case r.CDATA: return n.createCDATASection(e.textContent);
|
|
3201
|
+
case r.Comment: return n.createComment(e.textContent);
|
|
3202
|
+
default: return null;
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
function Un(e, t) {
|
|
3206
|
+
let { doc: n, mirror: i, skipChild: a = !1, hackCss: o = !0, afterAppend: s, cache: c } = t;
|
|
3207
|
+
if (i.has(e.id)) {
|
|
3208
|
+
let t = i.getNode(e.id);
|
|
3209
|
+
if (me(i.getMeta(t), e)) return i.getNode(e.id);
|
|
3210
|
+
}
|
|
3211
|
+
let l = Hn(e, {
|
|
3212
|
+
doc: n,
|
|
3213
|
+
hackCss: o,
|
|
3214
|
+
cache: c
|
|
3215
|
+
});
|
|
3216
|
+
if (!l) return null;
|
|
3217
|
+
if (e.rootId && i.getNode(e.rootId) !== n && i.replace(e.rootId, n), e.type === r.Document && (n.close(), n.open(), e.compatMode === "BackCompat" && e.childNodes && e.childNodes[0].type !== r.DocumentType && (e.childNodes[0].type === r.Element && "xmlns" in e.childNodes[0].attributes && e.childNodes[0].attributes.xmlns === "http://www.w3.org/1999/xhtml" ? n.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"\">") : n.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"\">")), l = n), i.add(l, e), (e.type === r.Document || e.type === r.Element) && !a) for (let t of e.childNodes) {
|
|
3218
|
+
let a = Un(t, {
|
|
3219
|
+
doc: n,
|
|
3220
|
+
mirror: i,
|
|
3221
|
+
skipChild: !1,
|
|
3222
|
+
hackCss: o,
|
|
3223
|
+
afterAppend: s,
|
|
3224
|
+
cache: c
|
|
3225
|
+
});
|
|
3226
|
+
if (!a) console.warn("Failed to rebuild", t);
|
|
3227
|
+
else {
|
|
3228
|
+
if (t.isShadow && M(l) && l.shadowRoot) l.shadowRoot.appendChild(a);
|
|
3229
|
+
else if (e.type === r.Document && t.type == r.Element) {
|
|
3230
|
+
let e = a, t = null;
|
|
3231
|
+
e.childNodes.forEach((e) => {
|
|
3232
|
+
e.nodeName === "BODY" && (t = e);
|
|
3233
|
+
}), t ? (e.removeChild(t), l.appendChild(a), e.appendChild(t)) : l.appendChild(a);
|
|
3234
|
+
} else l.appendChild(a);
|
|
3235
|
+
s && s(a, t.id);
|
|
3236
|
+
}
|
|
3237
|
+
}
|
|
3238
|
+
return l;
|
|
3239
|
+
}
|
|
3240
|
+
function Wn(e, t) {
|
|
3241
|
+
function n(e) {
|
|
3242
|
+
t(e);
|
|
3243
|
+
}
|
|
3244
|
+
for (let t of e.getIds()) e.has(t) && n(e.getNode(t));
|
|
3245
|
+
}
|
|
3246
|
+
function Gn(e, t) {
|
|
3247
|
+
let n = t.getMeta(e);
|
|
3248
|
+
if (n?.type !== r.Element) return;
|
|
3249
|
+
let i = e;
|
|
3250
|
+
for (let e in n.attributes) {
|
|
3251
|
+
if (!(Object.prototype.hasOwnProperty.call(n.attributes, e) && e.startsWith("rr_"))) continue;
|
|
3252
|
+
let t = n.attributes[e];
|
|
3253
|
+
e === "rr_scrollLeft" && (i.scrollLeft = t), e === "rr_scrollTop" && (i.scrollTop = t);
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
function Kn(e, t) {
|
|
3257
|
+
zn(t);
|
|
3258
|
+
let { doc: n, onVisit: r, hackCss: i = !0, afterAppend: a, cache: o, mirror: s = new F() } = t, c = Un(e, {
|
|
3259
|
+
doc: n,
|
|
3260
|
+
mirror: s,
|
|
3261
|
+
skipChild: !1,
|
|
3262
|
+
hackCss: i,
|
|
3263
|
+
afterAppend: a,
|
|
3264
|
+
cache: o
|
|
3265
|
+
});
|
|
3266
|
+
return Wn(s, (e) => {
|
|
3267
|
+
r && r(e), Gn(e, s);
|
|
3268
|
+
}), c;
|
|
3269
|
+
}
|
|
3270
|
+
function qn(e) {
|
|
3271
|
+
var t;
|
|
3272
|
+
if (!e.root.isConnected) throw Error(In);
|
|
3273
|
+
let n = e.root.ownerDocument.createElement("iframe");
|
|
3274
|
+
for (let [t, r] of Object.entries(e.iframeAttributes || {})) t !== "sandbox" && n.setAttribute(t, r);
|
|
3275
|
+
n.setAttribute("sandbox", "allow-same-origin"), e.root.appendChild(n);
|
|
3276
|
+
let r = n.contentDocument;
|
|
3277
|
+
if (!r || !n.contentWindow) throw (t = n.parentNode) == null || t.removeChild(n), Error(In);
|
|
3278
|
+
return Ln.add(r), n;
|
|
3279
|
+
}
|
|
3280
|
+
function Jn(e, t) {
|
|
3281
|
+
var n;
|
|
3282
|
+
let r = qn(t), i = r.contentDocument, a;
|
|
3283
|
+
try {
|
|
3284
|
+
a = Kn(e, {
|
|
3285
|
+
...t,
|
|
3286
|
+
doc: i
|
|
3287
|
+
});
|
|
3288
|
+
} catch (e) {
|
|
3289
|
+
throw (n = r.parentNode) == null || n.removeChild(r), e;
|
|
3290
|
+
}
|
|
3291
|
+
return {
|
|
3292
|
+
iframe: r,
|
|
3293
|
+
node: a
|
|
3294
|
+
};
|
|
3295
|
+
}
|
|
3296
|
+
export { Oe as IGNORED_NODE, F as Mirror, R as absolutifyURLs, Nn as adaptCssForReplay, Un as buildNodeWithSN, Ve as classMatchesRegex, $e as cleanupSnapshot, Pn as createCache, ue as createMirror, qn as createSandboxedIframe, ae as escapeImportStatement, L as extractFileExtension, se as fixSafariColons, ke as genId, he as getInputType, ze as ignoreAttribute, pe as is2DCanvasBlank, ce as isCSSImportRule, le as isCSSStyleRule, M as isElement, N as isNativeShadowDom, me as isNodeMetaEqual, re as isShadowRoot, Te as markCssSplits, de as maskInputValue, He as needMaskingText, z as normalizeCssString, Kn as rebuild, Jn as rebuildIntoSandboxedIframe, U as serializeNodeWithId, Ye as slimDOMDefaults, Ze as snapshot, we as splitCssText, oe as stringifyRule, P as stringifyStylesheet, I as toLowerCase, Re as transformAttribute, Qe as visitSnapshot };
|