@vue/devtools-api 8.1.2 → 8.1.4

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.
@@ -1538,24 +1538,6 @@ var VueDevToolsApi = (function(exports) {
1538
1538
  //#region ../devtools-kit/src/api/index.ts
1539
1539
  const DevToolsPluginAPI = DevToolsV6PluginAPI;
1540
1540
  //#endregion
1541
- //#region ../devtools-kit/src/core/component/state/constants.ts
1542
- const UNDEFINED = "__vue_devtool_undefined__";
1543
- const INFINITY = "__vue_devtool_infinity__";
1544
- const NEGATIVE_INFINITY = "__vue_devtool_negative_infinity__";
1545
- const NAN = "__vue_devtool_nan__";
1546
- //#endregion
1547
- //#region ../devtools-kit/src/core/component/state/util.ts
1548
- const tokenMap = {
1549
- [UNDEFINED]: "undefined",
1550
- [NAN]: "NaN",
1551
- [INFINITY]: "Infinity",
1552
- [NEGATIVE_INFINITY]: "-Infinity"
1553
- };
1554
- Object.entries(tokenMap).reduce((acc, [key, value]) => {
1555
- acc[value] = key;
1556
- return acc;
1557
- }, {});
1558
- //#endregion
1559
1541
  //#region ../devtools-kit/src/core/plugin/index.ts
1560
1542
  target.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ ??= /* @__PURE__ */ new Set();
1561
1543
  function setupDevToolsPlugin(pluginDescriptor, setupFn) {
@@ -1755,9 +1737,6 @@ var VueDevToolsApi = (function(exports) {
1755
1737
  };
1756
1738
  }
1757
1739
  //#endregion
1758
- //#region ../devtools-kit/src/ctx/env.ts
1759
- target.__VUE_DEVTOOLS_ENV__ ??= { vitePluginDetected: false };
1760
- //#endregion
1761
1740
  //#region ../devtools-kit/src/ctx/index.ts
1762
1741
  const hooks = createDevToolsCtxHooks();
1763
1742
  target.__VUE_DEVTOOLS_KIT_CONTEXT__ ??= {
@@ -1774,1479 +1753,6 @@ var VueDevToolsApi = (function(exports) {
1774
1753
  };
1775
1754
  const devtoolsContext = target.__VUE_DEVTOOLS_KIT_CONTEXT__;
1776
1755
  //#endregion
1777
- //#region ../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js
1778
- var require_speakingurl$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1779
- (function(root) {
1780
- "use strict";
1781
- /**
1782
- * charMap
1783
- * @type {Object}
1784
- */
1785
- var charMap = {
1786
- "À": "A",
1787
- "Á": "A",
1788
- "Â": "A",
1789
- "Ã": "A",
1790
- "Ä": "Ae",
1791
- "Å": "A",
1792
- "Æ": "AE",
1793
- "Ç": "C",
1794
- "È": "E",
1795
- "É": "E",
1796
- "Ê": "E",
1797
- "Ë": "E",
1798
- "Ì": "I",
1799
- "Í": "I",
1800
- "Î": "I",
1801
- "Ï": "I",
1802
- "Ð": "D",
1803
- "Ñ": "N",
1804
- "Ò": "O",
1805
- "Ó": "O",
1806
- "Ô": "O",
1807
- "Õ": "O",
1808
- "Ö": "Oe",
1809
- "Ő": "O",
1810
- "Ø": "O",
1811
- "Ù": "U",
1812
- "Ú": "U",
1813
- "Û": "U",
1814
- "Ü": "Ue",
1815
- "Ű": "U",
1816
- "Ý": "Y",
1817
- "Þ": "TH",
1818
- "ß": "ss",
1819
- "à": "a",
1820
- "á": "a",
1821
- "â": "a",
1822
- "ã": "a",
1823
- "ä": "ae",
1824
- "å": "a",
1825
- "æ": "ae",
1826
- "ç": "c",
1827
- "è": "e",
1828
- "é": "e",
1829
- "ê": "e",
1830
- "ë": "e",
1831
- "ì": "i",
1832
- "í": "i",
1833
- "î": "i",
1834
- "ï": "i",
1835
- "ð": "d",
1836
- "ñ": "n",
1837
- "ò": "o",
1838
- "ó": "o",
1839
- "ô": "o",
1840
- "õ": "o",
1841
- "ö": "oe",
1842
- "ő": "o",
1843
- "ø": "o",
1844
- "ù": "u",
1845
- "ú": "u",
1846
- "û": "u",
1847
- "ü": "ue",
1848
- "ű": "u",
1849
- "ý": "y",
1850
- "þ": "th",
1851
- "ÿ": "y",
1852
- "ẞ": "SS",
1853
- "ا": "a",
1854
- "أ": "a",
1855
- "إ": "i",
1856
- "آ": "aa",
1857
- "ؤ": "u",
1858
- "ئ": "e",
1859
- "ء": "a",
1860
- "ب": "b",
1861
- "ت": "t",
1862
- "ث": "th",
1863
- "ج": "j",
1864
- "ح": "h",
1865
- "خ": "kh",
1866
- "د": "d",
1867
- "ذ": "th",
1868
- "ر": "r",
1869
- "ز": "z",
1870
- "س": "s",
1871
- "ش": "sh",
1872
- "ص": "s",
1873
- "ض": "dh",
1874
- "ط": "t",
1875
- "ظ": "z",
1876
- "ع": "a",
1877
- "غ": "gh",
1878
- "ف": "f",
1879
- "ق": "q",
1880
- "ك": "k",
1881
- "ل": "l",
1882
- "م": "m",
1883
- "ن": "n",
1884
- "ه": "h",
1885
- "و": "w",
1886
- "ي": "y",
1887
- "ى": "a",
1888
- "ة": "h",
1889
- "ﻻ": "la",
1890
- "ﻷ": "laa",
1891
- "ﻹ": "lai",
1892
- "ﻵ": "laa",
1893
- "گ": "g",
1894
- "چ": "ch",
1895
- "پ": "p",
1896
- "ژ": "zh",
1897
- "ک": "k",
1898
- "ی": "y",
1899
- "َ": "a",
1900
- "ً": "an",
1901
- "ِ": "e",
1902
- "ٍ": "en",
1903
- "ُ": "u",
1904
- "ٌ": "on",
1905
- "ْ": "",
1906
- "٠": "0",
1907
- "١": "1",
1908
- "٢": "2",
1909
- "٣": "3",
1910
- "٤": "4",
1911
- "٥": "5",
1912
- "٦": "6",
1913
- "٧": "7",
1914
- "٨": "8",
1915
- "٩": "9",
1916
- "۰": "0",
1917
- "۱": "1",
1918
- "۲": "2",
1919
- "۳": "3",
1920
- "۴": "4",
1921
- "۵": "5",
1922
- "۶": "6",
1923
- "۷": "7",
1924
- "۸": "8",
1925
- "۹": "9",
1926
- "က": "k",
1927
- "ခ": "kh",
1928
- "ဂ": "g",
1929
- "ဃ": "ga",
1930
- "င": "ng",
1931
- "စ": "s",
1932
- "ဆ": "sa",
1933
- "ဇ": "z",
1934
- "စျ": "za",
1935
- "ည": "ny",
1936
- "ဋ": "t",
1937
- "ဌ": "ta",
1938
- "ဍ": "d",
1939
- "ဎ": "da",
1940
- "ဏ": "na",
1941
- "တ": "t",
1942
- "ထ": "ta",
1943
- "ဒ": "d",
1944
- "ဓ": "da",
1945
- "န": "n",
1946
- "ပ": "p",
1947
- "ဖ": "pa",
1948
- "ဗ": "b",
1949
- "ဘ": "ba",
1950
- "မ": "m",
1951
- "ယ": "y",
1952
- "ရ": "ya",
1953
- "လ": "l",
1954
- "ဝ": "w",
1955
- "သ": "th",
1956
- "ဟ": "h",
1957
- "ဠ": "la",
1958
- "အ": "a",
1959
- "ြ": "y",
1960
- "ျ": "ya",
1961
- "ွ": "w",
1962
- "ြွ": "yw",
1963
- "ျွ": "ywa",
1964
- "ှ": "h",
1965
- "ဧ": "e",
1966
- "၏": "-e",
1967
- "ဣ": "i",
1968
- "ဤ": "-i",
1969
- "ဉ": "u",
1970
- "ဦ": "-u",
1971
- "ဩ": "aw",
1972
- "သြော": "aw",
1973
- "ဪ": "aw",
1974
- "၀": "0",
1975
- "၁": "1",
1976
- "၂": "2",
1977
- "၃": "3",
1978
- "၄": "4",
1979
- "၅": "5",
1980
- "၆": "6",
1981
- "၇": "7",
1982
- "၈": "8",
1983
- "၉": "9",
1984
- "္": "",
1985
- "့": "",
1986
- "း": "",
1987
- "č": "c",
1988
- "ď": "d",
1989
- "ě": "e",
1990
- "ň": "n",
1991
- "ř": "r",
1992
- "š": "s",
1993
- "ť": "t",
1994
- "ů": "u",
1995
- "ž": "z",
1996
- "Č": "C",
1997
- "Ď": "D",
1998
- "Ě": "E",
1999
- "Ň": "N",
2000
- "Ř": "R",
2001
- "Š": "S",
2002
- "Ť": "T",
2003
- "Ů": "U",
2004
- "Ž": "Z",
2005
- "ހ": "h",
2006
- "ށ": "sh",
2007
- "ނ": "n",
2008
- "ރ": "r",
2009
- "ބ": "b",
2010
- "ޅ": "lh",
2011
- "ކ": "k",
2012
- "އ": "a",
2013
- "ވ": "v",
2014
- "މ": "m",
2015
- "ފ": "f",
2016
- "ދ": "dh",
2017
- "ތ": "th",
2018
- "ލ": "l",
2019
- "ގ": "g",
2020
- "ޏ": "gn",
2021
- "ސ": "s",
2022
- "ޑ": "d",
2023
- "ޒ": "z",
2024
- "ޓ": "t",
2025
- "ޔ": "y",
2026
- "ޕ": "p",
2027
- "ޖ": "j",
2028
- "ޗ": "ch",
2029
- "ޘ": "tt",
2030
- "ޙ": "hh",
2031
- "ޚ": "kh",
2032
- "ޛ": "th",
2033
- "ޜ": "z",
2034
- "ޝ": "sh",
2035
- "ޞ": "s",
2036
- "ޟ": "d",
2037
- "ޠ": "t",
2038
- "ޡ": "z",
2039
- "ޢ": "a",
2040
- "ޣ": "gh",
2041
- "ޤ": "q",
2042
- "ޥ": "w",
2043
- "ަ": "a",
2044
- "ާ": "aa",
2045
- "ި": "i",
2046
- "ީ": "ee",
2047
- "ު": "u",
2048
- "ޫ": "oo",
2049
- "ެ": "e",
2050
- "ޭ": "ey",
2051
- "ޮ": "o",
2052
- "ޯ": "oa",
2053
- "ް": "",
2054
- "ა": "a",
2055
- "ბ": "b",
2056
- "გ": "g",
2057
- "დ": "d",
2058
- "ე": "e",
2059
- "ვ": "v",
2060
- "ზ": "z",
2061
- "თ": "t",
2062
- "ი": "i",
2063
- "კ": "k",
2064
- "ლ": "l",
2065
- "მ": "m",
2066
- "ნ": "n",
2067
- "ო": "o",
2068
- "პ": "p",
2069
- "ჟ": "zh",
2070
- "რ": "r",
2071
- "ს": "s",
2072
- "ტ": "t",
2073
- "უ": "u",
2074
- "ფ": "p",
2075
- "ქ": "k",
2076
- "ღ": "gh",
2077
- "ყ": "q",
2078
- "შ": "sh",
2079
- "ჩ": "ch",
2080
- "ც": "ts",
2081
- "ძ": "dz",
2082
- "წ": "ts",
2083
- "ჭ": "ch",
2084
- "ხ": "kh",
2085
- "ჯ": "j",
2086
- "ჰ": "h",
2087
- "α": "a",
2088
- "β": "v",
2089
- "γ": "g",
2090
- "δ": "d",
2091
- "ε": "e",
2092
- "ζ": "z",
2093
- "η": "i",
2094
- "θ": "th",
2095
- "ι": "i",
2096
- "κ": "k",
2097
- "λ": "l",
2098
- "μ": "m",
2099
- "ν": "n",
2100
- "ξ": "ks",
2101
- "ο": "o",
2102
- "π": "p",
2103
- "ρ": "r",
2104
- "σ": "s",
2105
- "τ": "t",
2106
- "υ": "y",
2107
- "φ": "f",
2108
- "χ": "x",
2109
- "ψ": "ps",
2110
- "ω": "o",
2111
- "ά": "a",
2112
- "έ": "e",
2113
- "ί": "i",
2114
- "ό": "o",
2115
- "ύ": "y",
2116
- "ή": "i",
2117
- "ώ": "o",
2118
- "ς": "s",
2119
- "ϊ": "i",
2120
- "ΰ": "y",
2121
- "ϋ": "y",
2122
- "ΐ": "i",
2123
- "Α": "A",
2124
- "Β": "B",
2125
- "Γ": "G",
2126
- "Δ": "D",
2127
- "Ε": "E",
2128
- "Ζ": "Z",
2129
- "Η": "I",
2130
- "Θ": "TH",
2131
- "Ι": "I",
2132
- "Κ": "K",
2133
- "Λ": "L",
2134
- "Μ": "M",
2135
- "Ν": "N",
2136
- "Ξ": "KS",
2137
- "Ο": "O",
2138
- "Π": "P",
2139
- "Ρ": "R",
2140
- "Σ": "S",
2141
- "Τ": "T",
2142
- "Υ": "Y",
2143
- "Φ": "F",
2144
- "Χ": "X",
2145
- "Ψ": "PS",
2146
- "Ω": "O",
2147
- "Ά": "A",
2148
- "Έ": "E",
2149
- "Ί": "I",
2150
- "Ό": "O",
2151
- "Ύ": "Y",
2152
- "Ή": "I",
2153
- "Ώ": "O",
2154
- "Ϊ": "I",
2155
- "Ϋ": "Y",
2156
- "ā": "a",
2157
- "ē": "e",
2158
- "ģ": "g",
2159
- "ī": "i",
2160
- "ķ": "k",
2161
- "ļ": "l",
2162
- "ņ": "n",
2163
- "ū": "u",
2164
- "Ā": "A",
2165
- "Ē": "E",
2166
- "Ģ": "G",
2167
- "Ī": "I",
2168
- "Ķ": "k",
2169
- "Ļ": "L",
2170
- "Ņ": "N",
2171
- "Ū": "U",
2172
- "Ќ": "Kj",
2173
- "ќ": "kj",
2174
- "Љ": "Lj",
2175
- "љ": "lj",
2176
- "Њ": "Nj",
2177
- "њ": "nj",
2178
- "Тс": "Ts",
2179
- "тс": "ts",
2180
- "ą": "a",
2181
- "ć": "c",
2182
- "ę": "e",
2183
- "ł": "l",
2184
- "ń": "n",
2185
- "ś": "s",
2186
- "ź": "z",
2187
- "ż": "z",
2188
- "Ą": "A",
2189
- "Ć": "C",
2190
- "Ę": "E",
2191
- "Ł": "L",
2192
- "Ń": "N",
2193
- "Ś": "S",
2194
- "Ź": "Z",
2195
- "Ż": "Z",
2196
- "Є": "Ye",
2197
- "І": "I",
2198
- "Ї": "Yi",
2199
- "Ґ": "G",
2200
- "є": "ye",
2201
- "і": "i",
2202
- "ї": "yi",
2203
- "ґ": "g",
2204
- "ă": "a",
2205
- "Ă": "A",
2206
- "ș": "s",
2207
- "Ș": "S",
2208
- "ț": "t",
2209
- "Ț": "T",
2210
- "ţ": "t",
2211
- "Ţ": "T",
2212
- "а": "a",
2213
- "б": "b",
2214
- "в": "v",
2215
- "г": "g",
2216
- "д": "d",
2217
- "е": "e",
2218
- "ё": "yo",
2219
- "ж": "zh",
2220
- "з": "z",
2221
- "и": "i",
2222
- "й": "i",
2223
- "к": "k",
2224
- "л": "l",
2225
- "м": "m",
2226
- "н": "n",
2227
- "о": "o",
2228
- "п": "p",
2229
- "р": "r",
2230
- "с": "s",
2231
- "т": "t",
2232
- "у": "u",
2233
- "ф": "f",
2234
- "х": "kh",
2235
- "ц": "c",
2236
- "ч": "ch",
2237
- "ш": "sh",
2238
- "щ": "sh",
2239
- "ъ": "",
2240
- "ы": "y",
2241
- "ь": "",
2242
- "э": "e",
2243
- "ю": "yu",
2244
- "я": "ya",
2245
- "А": "A",
2246
- "Б": "B",
2247
- "В": "V",
2248
- "Г": "G",
2249
- "Д": "D",
2250
- "Е": "E",
2251
- "Ё": "Yo",
2252
- "Ж": "Zh",
2253
- "З": "Z",
2254
- "И": "I",
2255
- "Й": "I",
2256
- "К": "K",
2257
- "Л": "L",
2258
- "М": "M",
2259
- "Н": "N",
2260
- "О": "O",
2261
- "П": "P",
2262
- "Р": "R",
2263
- "С": "S",
2264
- "Т": "T",
2265
- "У": "U",
2266
- "Ф": "F",
2267
- "Х": "Kh",
2268
- "Ц": "C",
2269
- "Ч": "Ch",
2270
- "Ш": "Sh",
2271
- "Щ": "Sh",
2272
- "Ъ": "",
2273
- "Ы": "Y",
2274
- "Ь": "",
2275
- "Э": "E",
2276
- "Ю": "Yu",
2277
- "Я": "Ya",
2278
- "ђ": "dj",
2279
- "ј": "j",
2280
- "ћ": "c",
2281
- "џ": "dz",
2282
- "Ђ": "Dj",
2283
- "Ј": "j",
2284
- "Ћ": "C",
2285
- "Џ": "Dz",
2286
- "ľ": "l",
2287
- "ĺ": "l",
2288
- "ŕ": "r",
2289
- "Ľ": "L",
2290
- "Ĺ": "L",
2291
- "Ŕ": "R",
2292
- "ş": "s",
2293
- "Ş": "S",
2294
- "ı": "i",
2295
- "İ": "I",
2296
- "ğ": "g",
2297
- "Ğ": "G",
2298
- "ả": "a",
2299
- "Ả": "A",
2300
- "ẳ": "a",
2301
- "Ẳ": "A",
2302
- "ẩ": "a",
2303
- "Ẩ": "A",
2304
- "đ": "d",
2305
- "Đ": "D",
2306
- "ẹ": "e",
2307
- "Ẹ": "E",
2308
- "ẽ": "e",
2309
- "Ẽ": "E",
2310
- "ẻ": "e",
2311
- "Ẻ": "E",
2312
- "ế": "e",
2313
- "Ế": "E",
2314
- "ề": "e",
2315
- "Ề": "E",
2316
- "ệ": "e",
2317
- "Ệ": "E",
2318
- "ễ": "e",
2319
- "Ễ": "E",
2320
- "ể": "e",
2321
- "Ể": "E",
2322
- "ỏ": "o",
2323
- "ọ": "o",
2324
- "Ọ": "o",
2325
- "ố": "o",
2326
- "Ố": "O",
2327
- "ồ": "o",
2328
- "Ồ": "O",
2329
- "ổ": "o",
2330
- "Ổ": "O",
2331
- "ộ": "o",
2332
- "Ộ": "O",
2333
- "ỗ": "o",
2334
- "Ỗ": "O",
2335
- "ơ": "o",
2336
- "Ơ": "O",
2337
- "ớ": "o",
2338
- "Ớ": "O",
2339
- "ờ": "o",
2340
- "Ờ": "O",
2341
- "ợ": "o",
2342
- "Ợ": "O",
2343
- "ỡ": "o",
2344
- "Ỡ": "O",
2345
- "Ở": "o",
2346
- "ở": "o",
2347
- "ị": "i",
2348
- "Ị": "I",
2349
- "ĩ": "i",
2350
- "Ĩ": "I",
2351
- "ỉ": "i",
2352
- "Ỉ": "i",
2353
- "ủ": "u",
2354
- "Ủ": "U",
2355
- "ụ": "u",
2356
- "Ụ": "U",
2357
- "ũ": "u",
2358
- "Ũ": "U",
2359
- "ư": "u",
2360
- "Ư": "U",
2361
- "ứ": "u",
2362
- "Ứ": "U",
2363
- "ừ": "u",
2364
- "Ừ": "U",
2365
- "ự": "u",
2366
- "Ự": "U",
2367
- "ữ": "u",
2368
- "Ữ": "U",
2369
- "ử": "u",
2370
- "Ử": "ư",
2371
- "ỷ": "y",
2372
- "Ỷ": "y",
2373
- "ỳ": "y",
2374
- "Ỳ": "Y",
2375
- "ỵ": "y",
2376
- "Ỵ": "Y",
2377
- "ỹ": "y",
2378
- "Ỹ": "Y",
2379
- "ạ": "a",
2380
- "Ạ": "A",
2381
- "ấ": "a",
2382
- "Ấ": "A",
2383
- "ầ": "a",
2384
- "Ầ": "A",
2385
- "ậ": "a",
2386
- "Ậ": "A",
2387
- "ẫ": "a",
2388
- "Ẫ": "A",
2389
- "ắ": "a",
2390
- "Ắ": "A",
2391
- "ằ": "a",
2392
- "Ằ": "A",
2393
- "ặ": "a",
2394
- "Ặ": "A",
2395
- "ẵ": "a",
2396
- "Ẵ": "A",
2397
- "⓪": "0",
2398
- "①": "1",
2399
- "②": "2",
2400
- "③": "3",
2401
- "④": "4",
2402
- "⑤": "5",
2403
- "⑥": "6",
2404
- "⑦": "7",
2405
- "⑧": "8",
2406
- "⑨": "9",
2407
- "⑩": "10",
2408
- "⑪": "11",
2409
- "⑫": "12",
2410
- "⑬": "13",
2411
- "⑭": "14",
2412
- "⑮": "15",
2413
- "⑯": "16",
2414
- "⑰": "17",
2415
- "⑱": "18",
2416
- "⑲": "18",
2417
- "⑳": "18",
2418
- "⓵": "1",
2419
- "⓶": "2",
2420
- "⓷": "3",
2421
- "⓸": "4",
2422
- "⓹": "5",
2423
- "⓺": "6",
2424
- "⓻": "7",
2425
- "⓼": "8",
2426
- "⓽": "9",
2427
- "⓾": "10",
2428
- "⓿": "0",
2429
- "⓫": "11",
2430
- "⓬": "12",
2431
- "⓭": "13",
2432
- "⓮": "14",
2433
- "⓯": "15",
2434
- "⓰": "16",
2435
- "⓱": "17",
2436
- "⓲": "18",
2437
- "⓳": "19",
2438
- "⓴": "20",
2439
- "Ⓐ": "A",
2440
- "Ⓑ": "B",
2441
- "Ⓒ": "C",
2442
- "Ⓓ": "D",
2443
- "Ⓔ": "E",
2444
- "Ⓕ": "F",
2445
- "Ⓖ": "G",
2446
- "Ⓗ": "H",
2447
- "Ⓘ": "I",
2448
- "Ⓙ": "J",
2449
- "Ⓚ": "K",
2450
- "Ⓛ": "L",
2451
- "Ⓜ": "M",
2452
- "Ⓝ": "N",
2453
- "Ⓞ": "O",
2454
- "Ⓟ": "P",
2455
- "Ⓠ": "Q",
2456
- "Ⓡ": "R",
2457
- "Ⓢ": "S",
2458
- "Ⓣ": "T",
2459
- "Ⓤ": "U",
2460
- "Ⓥ": "V",
2461
- "Ⓦ": "W",
2462
- "Ⓧ": "X",
2463
- "Ⓨ": "Y",
2464
- "Ⓩ": "Z",
2465
- "ⓐ": "a",
2466
- "ⓑ": "b",
2467
- "ⓒ": "c",
2468
- "ⓓ": "d",
2469
- "ⓔ": "e",
2470
- "ⓕ": "f",
2471
- "ⓖ": "g",
2472
- "ⓗ": "h",
2473
- "ⓘ": "i",
2474
- "ⓙ": "j",
2475
- "ⓚ": "k",
2476
- "ⓛ": "l",
2477
- "ⓜ": "m",
2478
- "ⓝ": "n",
2479
- "ⓞ": "o",
2480
- "ⓟ": "p",
2481
- "ⓠ": "q",
2482
- "ⓡ": "r",
2483
- "ⓢ": "s",
2484
- "ⓣ": "t",
2485
- "ⓤ": "u",
2486
- "ⓦ": "v",
2487
- "ⓥ": "w",
2488
- "ⓧ": "x",
2489
- "ⓨ": "y",
2490
- "ⓩ": "z",
2491
- "“": "\"",
2492
- "”": "\"",
2493
- "‘": "'",
2494
- "’": "'",
2495
- "∂": "d",
2496
- "ƒ": "f",
2497
- "™": "(TM)",
2498
- "©": "(C)",
2499
- "œ": "oe",
2500
- "Œ": "OE",
2501
- "®": "(R)",
2502
- "†": "+",
2503
- "℠": "(SM)",
2504
- "…": "...",
2505
- "˚": "o",
2506
- "º": "o",
2507
- "ª": "a",
2508
- "•": "*",
2509
- "၊": ",",
2510
- "။": ".",
2511
- "$": "USD",
2512
- "€": "EUR",
2513
- "₢": "BRN",
2514
- "₣": "FRF",
2515
- "£": "GBP",
2516
- "₤": "ITL",
2517
- "₦": "NGN",
2518
- "₧": "ESP",
2519
- "₩": "KRW",
2520
- "₪": "ILS",
2521
- "₫": "VND",
2522
- "₭": "LAK",
2523
- "₮": "MNT",
2524
- "₯": "GRD",
2525
- "₱": "ARS",
2526
- "₲": "PYG",
2527
- "₳": "ARA",
2528
- "₴": "UAH",
2529
- "₵": "GHS",
2530
- "¢": "cent",
2531
- "¥": "CNY",
2532
- "元": "CNY",
2533
- "円": "YEN",
2534
- "﷼": "IRR",
2535
- "₠": "EWE",
2536
- "฿": "THB",
2537
- "₨": "INR",
2538
- "₹": "INR",
2539
- "₰": "PF",
2540
- "₺": "TRY",
2541
- "؋": "AFN",
2542
- "₼": "AZN",
2543
- "лв": "BGN",
2544
- "៛": "KHR",
2545
- "₡": "CRC",
2546
- "₸": "KZT",
2547
- "ден": "MKD",
2548
- "zł": "PLN",
2549
- "₽": "RUB",
2550
- "₾": "GEL"
2551
- };
2552
- /**
2553
- * special look ahead character array
2554
- * These characters form with consonants to become 'single'/consonant combo
2555
- * @type [Array]
2556
- */
2557
- var lookAheadCharArray = ["်", "ް"];
2558
- /**
2559
- * diatricMap for languages where transliteration changes entirely as more diatrics are added
2560
- * @type {Object}
2561
- */
2562
- var diatricMap = {
2563
- "ာ": "a",
2564
- "ါ": "a",
2565
- "ေ": "e",
2566
- "ဲ": "e",
2567
- "ိ": "i",
2568
- "ီ": "i",
2569
- "ို": "o",
2570
- "ု": "u",
2571
- "ူ": "u",
2572
- "ေါင်": "aung",
2573
- "ော": "aw",
2574
- "ော်": "aw",
2575
- "ေါ": "aw",
2576
- "ေါ်": "aw",
2577
- "်": "်",
2578
- "က်": "et",
2579
- "ိုက်": "aik",
2580
- "ောက်": "auk",
2581
- "င်": "in",
2582
- "ိုင်": "aing",
2583
- "ောင်": "aung",
2584
- "စ်": "it",
2585
- "ည်": "i",
2586
- "တ်": "at",
2587
- "ိတ်": "eik",
2588
- "ုတ်": "ok",
2589
- "ွတ်": "ut",
2590
- "ေတ်": "it",
2591
- "ဒ်": "d",
2592
- "ိုဒ်": "ok",
2593
- "ုဒ်": "ait",
2594
- "န်": "an",
2595
- "ာန်": "an",
2596
- "ိန်": "ein",
2597
- "ုန်": "on",
2598
- "ွန်": "un",
2599
- "ပ်": "at",
2600
- "ိပ်": "eik",
2601
- "ုပ်": "ok",
2602
- "ွပ်": "ut",
2603
- "န်ုပ်": "nub",
2604
- "မ်": "an",
2605
- "ိမ်": "ein",
2606
- "ုမ်": "on",
2607
- "ွမ်": "un",
2608
- "ယ်": "e",
2609
- "ိုလ်": "ol",
2610
- "ဉ်": "in",
2611
- "ံ": "an",
2612
- "ိံ": "ein",
2613
- "ုံ": "on",
2614
- "ައް": "ah",
2615
- "ަށް": "ah"
2616
- };
2617
- /**
2618
- * langCharMap language specific characters translations
2619
- * @type {Object}
2620
- */
2621
- var langCharMap = {
2622
- "en": {},
2623
- "az": {
2624
- "ç": "c",
2625
- "ə": "e",
2626
- "ğ": "g",
2627
- "ı": "i",
2628
- "ö": "o",
2629
- "ş": "s",
2630
- "ü": "u",
2631
- "Ç": "C",
2632
- "Ə": "E",
2633
- "Ğ": "G",
2634
- "İ": "I",
2635
- "Ö": "O",
2636
- "Ş": "S",
2637
- "Ü": "U"
2638
- },
2639
- "cs": {
2640
- "č": "c",
2641
- "ď": "d",
2642
- "ě": "e",
2643
- "ň": "n",
2644
- "ř": "r",
2645
- "š": "s",
2646
- "ť": "t",
2647
- "ů": "u",
2648
- "ž": "z",
2649
- "Č": "C",
2650
- "Ď": "D",
2651
- "Ě": "E",
2652
- "Ň": "N",
2653
- "Ř": "R",
2654
- "Š": "S",
2655
- "Ť": "T",
2656
- "Ů": "U",
2657
- "Ž": "Z"
2658
- },
2659
- "fi": {
2660
- "ä": "a",
2661
- "Ä": "A",
2662
- "ö": "o",
2663
- "Ö": "O"
2664
- },
2665
- "hu": {
2666
- "ä": "a",
2667
- "Ä": "A",
2668
- "ö": "o",
2669
- "Ö": "O",
2670
- "ü": "u",
2671
- "Ü": "U",
2672
- "ű": "u",
2673
- "Ű": "U"
2674
- },
2675
- "lt": {
2676
- "ą": "a",
2677
- "č": "c",
2678
- "ę": "e",
2679
- "ė": "e",
2680
- "į": "i",
2681
- "š": "s",
2682
- "ų": "u",
2683
- "ū": "u",
2684
- "ž": "z",
2685
- "Ą": "A",
2686
- "Č": "C",
2687
- "Ę": "E",
2688
- "Ė": "E",
2689
- "Į": "I",
2690
- "Š": "S",
2691
- "Ų": "U",
2692
- "Ū": "U"
2693
- },
2694
- "lv": {
2695
- "ā": "a",
2696
- "č": "c",
2697
- "ē": "e",
2698
- "ģ": "g",
2699
- "ī": "i",
2700
- "ķ": "k",
2701
- "ļ": "l",
2702
- "ņ": "n",
2703
- "š": "s",
2704
- "ū": "u",
2705
- "ž": "z",
2706
- "Ā": "A",
2707
- "Č": "C",
2708
- "Ē": "E",
2709
- "Ģ": "G",
2710
- "Ī": "i",
2711
- "Ķ": "k",
2712
- "Ļ": "L",
2713
- "Ņ": "N",
2714
- "Š": "S",
2715
- "Ū": "u",
2716
- "Ž": "Z"
2717
- },
2718
- "pl": {
2719
- "ą": "a",
2720
- "ć": "c",
2721
- "ę": "e",
2722
- "ł": "l",
2723
- "ń": "n",
2724
- "ó": "o",
2725
- "ś": "s",
2726
- "ź": "z",
2727
- "ż": "z",
2728
- "Ą": "A",
2729
- "Ć": "C",
2730
- "Ę": "e",
2731
- "Ł": "L",
2732
- "Ń": "N",
2733
- "Ó": "O",
2734
- "Ś": "S",
2735
- "Ź": "Z",
2736
- "Ż": "Z"
2737
- },
2738
- "sv": {
2739
- "ä": "a",
2740
- "Ä": "A",
2741
- "ö": "o",
2742
- "Ö": "O"
2743
- },
2744
- "sk": {
2745
- "ä": "a",
2746
- "Ä": "A"
2747
- },
2748
- "sr": {
2749
- "љ": "lj",
2750
- "њ": "nj",
2751
- "Љ": "Lj",
2752
- "Њ": "Nj",
2753
- "đ": "dj",
2754
- "Đ": "Dj"
2755
- },
2756
- "tr": {
2757
- "Ü": "U",
2758
- "Ö": "O",
2759
- "ü": "u",
2760
- "ö": "o"
2761
- }
2762
- };
2763
- /**
2764
- * symbolMap language specific symbol translations
2765
- * translations must be transliterated already
2766
- * @type {Object}
2767
- */
2768
- var symbolMap = {
2769
- "ar": {
2770
- "∆": "delta",
2771
- "∞": "la-nihaya",
2772
- "♥": "hob",
2773
- "&": "wa",
2774
- "|": "aw",
2775
- "<": "aqal-men",
2776
- ">": "akbar-men",
2777
- "∑": "majmou",
2778
- "¤": "omla"
2779
- },
2780
- "az": {},
2781
- "ca": {
2782
- "∆": "delta",
2783
- "∞": "infinit",
2784
- "♥": "amor",
2785
- "&": "i",
2786
- "|": "o",
2787
- "<": "menys que",
2788
- ">": "mes que",
2789
- "∑": "suma dels",
2790
- "¤": "moneda"
2791
- },
2792
- "cs": {
2793
- "∆": "delta",
2794
- "∞": "nekonecno",
2795
- "♥": "laska",
2796
- "&": "a",
2797
- "|": "nebo",
2798
- "<": "mensi nez",
2799
- ">": "vetsi nez",
2800
- "∑": "soucet",
2801
- "¤": "mena"
2802
- },
2803
- "de": {
2804
- "∆": "delta",
2805
- "∞": "unendlich",
2806
- "♥": "Liebe",
2807
- "&": "und",
2808
- "|": "oder",
2809
- "<": "kleiner als",
2810
- ">": "groesser als",
2811
- "∑": "Summe von",
2812
- "¤": "Waehrung"
2813
- },
2814
- "dv": {
2815
- "∆": "delta",
2816
- "∞": "kolunulaa",
2817
- "♥": "loabi",
2818
- "&": "aai",
2819
- "|": "noonee",
2820
- "<": "ah vure kuda",
2821
- ">": "ah vure bodu",
2822
- "∑": "jumula",
2823
- "¤": "faisaa"
2824
- },
2825
- "en": {
2826
- "∆": "delta",
2827
- "∞": "infinity",
2828
- "♥": "love",
2829
- "&": "and",
2830
- "|": "or",
2831
- "<": "less than",
2832
- ">": "greater than",
2833
- "∑": "sum",
2834
- "¤": "currency"
2835
- },
2836
- "es": {
2837
- "∆": "delta",
2838
- "∞": "infinito",
2839
- "♥": "amor",
2840
- "&": "y",
2841
- "|": "u",
2842
- "<": "menos que",
2843
- ">": "mas que",
2844
- "∑": "suma de los",
2845
- "¤": "moneda"
2846
- },
2847
- "fa": {
2848
- "∆": "delta",
2849
- "∞": "bi-nahayat",
2850
- "♥": "eshgh",
2851
- "&": "va",
2852
- "|": "ya",
2853
- "<": "kamtar-az",
2854
- ">": "bishtar-az",
2855
- "∑": "majmooe",
2856
- "¤": "vahed"
2857
- },
2858
- "fi": {
2859
- "∆": "delta",
2860
- "∞": "aarettomyys",
2861
- "♥": "rakkaus",
2862
- "&": "ja",
2863
- "|": "tai",
2864
- "<": "pienempi kuin",
2865
- ">": "suurempi kuin",
2866
- "∑": "summa",
2867
- "¤": "valuutta"
2868
- },
2869
- "fr": {
2870
- "∆": "delta",
2871
- "∞": "infiniment",
2872
- "♥": "Amour",
2873
- "&": "et",
2874
- "|": "ou",
2875
- "<": "moins que",
2876
- ">": "superieure a",
2877
- "∑": "somme des",
2878
- "¤": "monnaie"
2879
- },
2880
- "ge": {
2881
- "∆": "delta",
2882
- "∞": "usasruloba",
2883
- "♥": "siqvaruli",
2884
- "&": "da",
2885
- "|": "an",
2886
- "<": "naklebi",
2887
- ">": "meti",
2888
- "∑": "jami",
2889
- "¤": "valuta"
2890
- },
2891
- "gr": {},
2892
- "hu": {
2893
- "∆": "delta",
2894
- "∞": "vegtelen",
2895
- "♥": "szerelem",
2896
- "&": "es",
2897
- "|": "vagy",
2898
- "<": "kisebb mint",
2899
- ">": "nagyobb mint",
2900
- "∑": "szumma",
2901
- "¤": "penznem"
2902
- },
2903
- "it": {
2904
- "∆": "delta",
2905
- "∞": "infinito",
2906
- "♥": "amore",
2907
- "&": "e",
2908
- "|": "o",
2909
- "<": "minore di",
2910
- ">": "maggiore di",
2911
- "∑": "somma",
2912
- "¤": "moneta"
2913
- },
2914
- "lt": {
2915
- "∆": "delta",
2916
- "∞": "begalybe",
2917
- "♥": "meile",
2918
- "&": "ir",
2919
- "|": "ar",
2920
- "<": "maziau nei",
2921
- ">": "daugiau nei",
2922
- "∑": "suma",
2923
- "¤": "valiuta"
2924
- },
2925
- "lv": {
2926
- "∆": "delta",
2927
- "∞": "bezgaliba",
2928
- "♥": "milestiba",
2929
- "&": "un",
2930
- "|": "vai",
2931
- "<": "mazak neka",
2932
- ">": "lielaks neka",
2933
- "∑": "summa",
2934
- "¤": "valuta"
2935
- },
2936
- "my": {
2937
- "∆": "kwahkhyaet",
2938
- "∞": "asaonasme",
2939
- "♥": "akhyait",
2940
- "&": "nhin",
2941
- "|": "tho",
2942
- "<": "ngethaw",
2943
- ">": "kyithaw",
2944
- "∑": "paungld",
2945
- "¤": "ngwekye"
2946
- },
2947
- "mk": {},
2948
- "nl": {
2949
- "∆": "delta",
2950
- "∞": "oneindig",
2951
- "♥": "liefde",
2952
- "&": "en",
2953
- "|": "of",
2954
- "<": "kleiner dan",
2955
- ">": "groter dan",
2956
- "∑": "som",
2957
- "¤": "valuta"
2958
- },
2959
- "pl": {
2960
- "∆": "delta",
2961
- "∞": "nieskonczonosc",
2962
- "♥": "milosc",
2963
- "&": "i",
2964
- "|": "lub",
2965
- "<": "mniejsze niz",
2966
- ">": "wieksze niz",
2967
- "∑": "suma",
2968
- "¤": "waluta"
2969
- },
2970
- "pt": {
2971
- "∆": "delta",
2972
- "∞": "infinito",
2973
- "♥": "amor",
2974
- "&": "e",
2975
- "|": "ou",
2976
- "<": "menor que",
2977
- ">": "maior que",
2978
- "∑": "soma",
2979
- "¤": "moeda"
2980
- },
2981
- "ro": {
2982
- "∆": "delta",
2983
- "∞": "infinit",
2984
- "♥": "dragoste",
2985
- "&": "si",
2986
- "|": "sau",
2987
- "<": "mai mic ca",
2988
- ">": "mai mare ca",
2989
- "∑": "suma",
2990
- "¤": "valuta"
2991
- },
2992
- "ru": {
2993
- "∆": "delta",
2994
- "∞": "beskonechno",
2995
- "♥": "lubov",
2996
- "&": "i",
2997
- "|": "ili",
2998
- "<": "menshe",
2999
- ">": "bolshe",
3000
- "∑": "summa",
3001
- "¤": "valjuta"
3002
- },
3003
- "sk": {
3004
- "∆": "delta",
3005
- "∞": "nekonecno",
3006
- "♥": "laska",
3007
- "&": "a",
3008
- "|": "alebo",
3009
- "<": "menej ako",
3010
- ">": "viac ako",
3011
- "∑": "sucet",
3012
- "¤": "mena"
3013
- },
3014
- "sr": {},
3015
- "tr": {
3016
- "∆": "delta",
3017
- "∞": "sonsuzluk",
3018
- "♥": "ask",
3019
- "&": "ve",
3020
- "|": "veya",
3021
- "<": "kucuktur",
3022
- ">": "buyuktur",
3023
- "∑": "toplam",
3024
- "¤": "para birimi"
3025
- },
3026
- "uk": {
3027
- "∆": "delta",
3028
- "∞": "bezkinechnist",
3029
- "♥": "lubov",
3030
- "&": "i",
3031
- "|": "abo",
3032
- "<": "menshe",
3033
- ">": "bilshe",
3034
- "∑": "suma",
3035
- "¤": "valjuta"
3036
- },
3037
- "vn": {
3038
- "∆": "delta",
3039
- "∞": "vo cuc",
3040
- "♥": "yeu",
3041
- "&": "va",
3042
- "|": "hoac",
3043
- "<": "nho hon",
3044
- ">": "lon hon",
3045
- "∑": "tong",
3046
- "¤": "tien te"
3047
- }
3048
- };
3049
- var uricChars = [
3050
- ";",
3051
- "?",
3052
- ":",
3053
- "@",
3054
- "&",
3055
- "=",
3056
- "+",
3057
- "$",
3058
- ",",
3059
- "/"
3060
- ].join("");
3061
- var uricNoSlashChars = [
3062
- ";",
3063
- "?",
3064
- ":",
3065
- "@",
3066
- "&",
3067
- "=",
3068
- "+",
3069
- "$",
3070
- ","
3071
- ].join("");
3072
- var markChars = [
3073
- ".",
3074
- "!",
3075
- "~",
3076
- "*",
3077
- "'",
3078
- "(",
3079
- ")"
3080
- ].join("");
3081
- /**
3082
- * getSlug
3083
- * @param {string} input input string
3084
- * @param {object|string} opts config object or separator string/char
3085
- * @api public
3086
- * @return {string} sluggified string
3087
- */
3088
- var getSlug = function getSlug(input, opts) {
3089
- var separator = "-";
3090
- var result = "";
3091
- var diatricString = "";
3092
- var convertSymbols = true;
3093
- var customReplacements = {};
3094
- var maintainCase;
3095
- var titleCase;
3096
- var truncate;
3097
- var uricFlag;
3098
- var uricNoSlashFlag;
3099
- var markFlag;
3100
- var symbol;
3101
- var langChar;
3102
- var lucky;
3103
- var i;
3104
- var ch;
3105
- var l;
3106
- var lastCharWasSymbol;
3107
- var lastCharWasDiatric;
3108
- var allowedChars = "";
3109
- if (typeof input !== "string") return "";
3110
- if (typeof opts === "string") separator = opts;
3111
- symbol = symbolMap.en;
3112
- langChar = langCharMap.en;
3113
- if (typeof opts === "object") {
3114
- maintainCase = opts.maintainCase || false;
3115
- customReplacements = opts.custom && typeof opts.custom === "object" ? opts.custom : customReplacements;
3116
- truncate = +opts.truncate > 1 && opts.truncate || false;
3117
- uricFlag = opts.uric || false;
3118
- uricNoSlashFlag = opts.uricNoSlash || false;
3119
- markFlag = opts.mark || false;
3120
- convertSymbols = opts.symbols === false || opts.lang === false ? false : true;
3121
- separator = opts.separator || separator;
3122
- if (uricFlag) allowedChars += uricChars;
3123
- if (uricNoSlashFlag) allowedChars += uricNoSlashChars;
3124
- if (markFlag) allowedChars += markChars;
3125
- symbol = opts.lang && symbolMap[opts.lang] && convertSymbols ? symbolMap[opts.lang] : convertSymbols ? symbolMap.en : {};
3126
- langChar = opts.lang && langCharMap[opts.lang] ? langCharMap[opts.lang] : opts.lang === false || opts.lang === true ? {} : langCharMap.en;
3127
- if (opts.titleCase && typeof opts.titleCase.length === "number" && Array.prototype.toString.call(opts.titleCase)) {
3128
- opts.titleCase.forEach(function(v) {
3129
- customReplacements[v + ""] = v + "";
3130
- });
3131
- titleCase = true;
3132
- } else titleCase = !!opts.titleCase;
3133
- if (opts.custom && typeof opts.custom.length === "number" && Array.prototype.toString.call(opts.custom)) opts.custom.forEach(function(v) {
3134
- customReplacements[v + ""] = v + "";
3135
- });
3136
- Object.keys(customReplacements).forEach(function(v) {
3137
- var r;
3138
- if (v.length > 1) r = new RegExp("\\b" + escapeChars(v) + "\\b", "gi");
3139
- else r = new RegExp(escapeChars(v), "gi");
3140
- input = input.replace(r, customReplacements[v]);
3141
- });
3142
- for (ch in customReplacements) allowedChars += ch;
3143
- }
3144
- allowedChars += separator;
3145
- allowedChars = escapeChars(allowedChars);
3146
- input = input.replace(/(^\s+|\s+$)/g, "");
3147
- lastCharWasSymbol = false;
3148
- lastCharWasDiatric = false;
3149
- for (i = 0, l = input.length; i < l; i++) {
3150
- ch = input[i];
3151
- if (isReplacedCustomChar(ch, customReplacements)) lastCharWasSymbol = false;
3152
- else if (langChar[ch]) {
3153
- ch = lastCharWasSymbol && langChar[ch].match(/[A-Za-z0-9]/) ? " " + langChar[ch] : langChar[ch];
3154
- lastCharWasSymbol = false;
3155
- } else if (ch in charMap) {
3156
- if (i + 1 < l && lookAheadCharArray.indexOf(input[i + 1]) >= 0) {
3157
- diatricString += ch;
3158
- ch = "";
3159
- } else if (lastCharWasDiatric === true) {
3160
- ch = diatricMap[diatricString] + charMap[ch];
3161
- diatricString = "";
3162
- } else ch = lastCharWasSymbol && charMap[ch].match(/[A-Za-z0-9]/) ? " " + charMap[ch] : charMap[ch];
3163
- lastCharWasSymbol = false;
3164
- lastCharWasDiatric = false;
3165
- } else if (ch in diatricMap) {
3166
- diatricString += ch;
3167
- ch = "";
3168
- if (i === l - 1) ch = diatricMap[diatricString];
3169
- lastCharWasDiatric = true;
3170
- } else if (symbol[ch] && !(uricFlag && uricChars.indexOf(ch) !== -1) && !(uricNoSlashFlag && uricNoSlashChars.indexOf(ch) !== -1)) {
3171
- ch = lastCharWasSymbol || result.substr(-1).match(/[A-Za-z0-9]/) ? separator + symbol[ch] : symbol[ch];
3172
- ch += input[i + 1] !== void 0 && input[i + 1].match(/[A-Za-z0-9]/) ? separator : "";
3173
- lastCharWasSymbol = true;
3174
- } else {
3175
- if (lastCharWasDiatric === true) {
3176
- ch = diatricMap[diatricString] + ch;
3177
- diatricString = "";
3178
- lastCharWasDiatric = false;
3179
- } else if (lastCharWasSymbol && (/[A-Za-z0-9]/.test(ch) || result.substr(-1).match(/A-Za-z0-9]/))) ch = " " + ch;
3180
- lastCharWasSymbol = false;
3181
- }
3182
- result += ch.replace(new RegExp("[^\\w\\s" + allowedChars + "_-]", "g"), separator);
3183
- }
3184
- if (titleCase) result = result.replace(/(\w)(\S*)/g, function(_, i, r) {
3185
- var j = i.toUpperCase() + (r !== null ? r : "");
3186
- return Object.keys(customReplacements).indexOf(j.toLowerCase()) < 0 ? j : j.toLowerCase();
3187
- });
3188
- result = result.replace(/\s+/g, separator).replace(new RegExp("\\" + separator + "+", "g"), separator).replace(new RegExp("(^\\" + separator + "+|\\" + separator + "+$)", "g"), "");
3189
- if (truncate && result.length > truncate) {
3190
- lucky = result.charAt(truncate) === separator;
3191
- result = result.slice(0, truncate);
3192
- if (!lucky) result = result.slice(0, result.lastIndexOf(separator));
3193
- }
3194
- if (!maintainCase && !titleCase) result = result.toLowerCase();
3195
- return result;
3196
- };
3197
- /**
3198
- * createSlug curried(opts)(input)
3199
- * @param {object|string} opts config object or input string
3200
- * @return {Function} function getSlugWithConfig()
3201
- **/
3202
- var createSlug = function createSlug(opts) {
3203
- /**
3204
- * getSlugWithConfig
3205
- * @param {string} input string
3206
- * @return {string} slug string
3207
- */
3208
- return function getSlugWithConfig(input) {
3209
- return getSlug(input, opts);
3210
- };
3211
- };
3212
- /**
3213
- * escape Chars
3214
- * @param {string} input string
3215
- */
3216
- var escapeChars = function escapeChars(input) {
3217
- return input.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
3218
- };
3219
- /**
3220
- * check if the char is an already converted char from custom list
3221
- * @param {char} ch character to check
3222
- * @param {object} customReplacements custom translation map
3223
- */
3224
- var isReplacedCustomChar = function(ch, customReplacements) {
3225
- for (var c in customReplacements) if (customReplacements[c] === ch) return true;
3226
- };
3227
- if (typeof module !== "undefined" && module.exports) {
3228
- module.exports = getSlug;
3229
- module.exports.createSlug = createSlug;
3230
- } else if (typeof define !== "undefined" && define.amd) define([], function() {
3231
- return getSlug;
3232
- });
3233
- else try {
3234
- if (root.getSlug || root.createSlug) throw "speakingurl: globals exists /(getSlug|createSlug)/";
3235
- else {
3236
- root.getSlug = getSlug;
3237
- root.createSlug = createSlug;
3238
- }
3239
- } catch (e) {}
3240
- })(exports);
3241
- }));
3242
- (/* @__PURE__ */ __commonJSMin(((exports, module) => {
3243
- module.exports = require_speakingurl$1();
3244
- })))();
3245
- target.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ ??= {
3246
- id: 0,
3247
- appIds: /* @__PURE__ */ new Set()
3248
- };
3249
- //#endregion
3250
1756
  //#region ../devtools-kit/src/core/index.ts
3251
1757
  function onDevToolsClientConnected(fn) {
3252
1758
  return new Promise((resolve) => {
@@ -3264,655 +1770,6 @@ var VueDevToolsApi = (function(exports) {
3264
1770
  });
3265
1771
  }
3266
1772
  //#endregion
3267
- //#region ../devtools-kit/src/core/high-perf-mode/index.ts
3268
- function toggleHighPerfMode(state) {
3269
- devtoolsState.highPerfModeEnabled = state ?? !devtoolsState.highPerfModeEnabled;
3270
- if (!state && activeAppRecord.value) registerDevToolsPlugin(activeAppRecord.value.app);
3271
- }
3272
- //#endregion
3273
- //#region ../devtools-kit/src/core/devtools-client/detected.ts
3274
- function updateDevToolsClientDetected(params) {
3275
- devtoolsState.devtoolsClientDetected = {
3276
- ...devtoolsState.devtoolsClientDetected,
3277
- ...params
3278
- };
3279
- toggleHighPerfMode(!Object.values(devtoolsState.devtoolsClientDetected).some(Boolean));
3280
- }
3281
- target.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ ??= updateDevToolsClientDetected;
3282
- //#endregion
3283
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/double-indexed-kv.js
3284
- var DoubleIndexedKV = class {
3285
- constructor() {
3286
- this.keyToValue = /* @__PURE__ */ new Map();
3287
- this.valueToKey = /* @__PURE__ */ new Map();
3288
- }
3289
- set(key, value) {
3290
- this.keyToValue.set(key, value);
3291
- this.valueToKey.set(value, key);
3292
- }
3293
- getByKey(key) {
3294
- return this.keyToValue.get(key);
3295
- }
3296
- getByValue(value) {
3297
- return this.valueToKey.get(value);
3298
- }
3299
- clear() {
3300
- this.keyToValue.clear();
3301
- this.valueToKey.clear();
3302
- }
3303
- };
3304
- //#endregion
3305
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.js
3306
- var Registry = class {
3307
- constructor(generateIdentifier) {
3308
- this.generateIdentifier = generateIdentifier;
3309
- this.kv = new DoubleIndexedKV();
3310
- }
3311
- register(value, identifier) {
3312
- if (this.kv.getByValue(value)) return;
3313
- if (!identifier) identifier = this.generateIdentifier(value);
3314
- this.kv.set(identifier, value);
3315
- }
3316
- clear() {
3317
- this.kv.clear();
3318
- }
3319
- getIdentifier(value) {
3320
- return this.kv.getByValue(value);
3321
- }
3322
- getValue(identifier) {
3323
- return this.kv.getByKey(identifier);
3324
- }
3325
- };
3326
- //#endregion
3327
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.js
3328
- var ClassRegistry = class extends Registry {
3329
- constructor() {
3330
- super((c) => c.name);
3331
- this.classToAllowedProps = /* @__PURE__ */ new Map();
3332
- }
3333
- register(value, options) {
3334
- if (typeof options === "object") {
3335
- if (options.allowProps) this.classToAllowedProps.set(value, options.allowProps);
3336
- super.register(value, options.identifier);
3337
- } else super.register(value, options);
3338
- }
3339
- getAllowedProps(value) {
3340
- return this.classToAllowedProps.get(value);
3341
- }
3342
- };
3343
- //#endregion
3344
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/util.js
3345
- function valuesOfObj(record) {
3346
- if ("values" in Object) return Object.values(record);
3347
- const values = [];
3348
- for (const key in record) if (record.hasOwnProperty(key)) values.push(record[key]);
3349
- return values;
3350
- }
3351
- function find(record, predicate) {
3352
- const values = valuesOfObj(record);
3353
- if ("find" in values) return values.find(predicate);
3354
- const valuesNotNever = values;
3355
- for (let i = 0; i < valuesNotNever.length; i++) {
3356
- const value = valuesNotNever[i];
3357
- if (predicate(value)) return value;
3358
- }
3359
- }
3360
- function forEach(record, run) {
3361
- Object.entries(record).forEach(([key, value]) => run(value, key));
3362
- }
3363
- function includes(arr, value) {
3364
- return arr.indexOf(value) !== -1;
3365
- }
3366
- function findArr(record, predicate) {
3367
- for (let i = 0; i < record.length; i++) {
3368
- const value = record[i];
3369
- if (predicate(value)) return value;
3370
- }
3371
- }
3372
- //#endregion
3373
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.js
3374
- var CustomTransformerRegistry = class {
3375
- constructor() {
3376
- this.transfomers = {};
3377
- }
3378
- register(transformer) {
3379
- this.transfomers[transformer.name] = transformer;
3380
- }
3381
- findApplicable(v) {
3382
- return find(this.transfomers, (transformer) => transformer.isApplicable(v));
3383
- }
3384
- findByName(name) {
3385
- return this.transfomers[name];
3386
- }
3387
- };
3388
- //#endregion
3389
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/is.js
3390
- const getType$1 = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
3391
- const isUndefined$1 = (payload) => typeof payload === "undefined";
3392
- const isNull$1 = (payload) => payload === null;
3393
- const isPlainObject$1 = (payload) => {
3394
- if (typeof payload !== "object" || payload === null) return false;
3395
- if (payload === Object.prototype) return false;
3396
- if (Object.getPrototypeOf(payload) === null) return true;
3397
- return Object.getPrototypeOf(payload) === Object.prototype;
3398
- };
3399
- const isEmptyObject = (payload) => isPlainObject$1(payload) && Object.keys(payload).length === 0;
3400
- const isArray$1 = (payload) => Array.isArray(payload);
3401
- const isString = (payload) => typeof payload === "string";
3402
- const isNumber = (payload) => typeof payload === "number" && !isNaN(payload);
3403
- const isBoolean = (payload) => typeof payload === "boolean";
3404
- const isRegExp = (payload) => payload instanceof RegExp;
3405
- const isMap = (payload) => payload instanceof Map;
3406
- const isSet = (payload) => payload instanceof Set;
3407
- const isSymbol = (payload) => getType$1(payload) === "Symbol";
3408
- const isDate = (payload) => payload instanceof Date && !isNaN(payload.valueOf());
3409
- const isError = (payload) => payload instanceof Error;
3410
- const isNaNValue = (payload) => typeof payload === "number" && isNaN(payload);
3411
- const isPrimitive = (payload) => isBoolean(payload) || isNull$1(payload) || isUndefined$1(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
3412
- const isBigint = (payload) => typeof payload === "bigint";
3413
- const isInfinite = (payload) => payload === Infinity || payload === -Infinity;
3414
- const isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
3415
- const isURL = (payload) => payload instanceof URL;
3416
- //#endregion
3417
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/pathstringifier.js
3418
- const escapeKey = (key) => key.replace(/\./g, "\\.");
3419
- const stringifyPath = (path) => path.map(String).map(escapeKey).join(".");
3420
- const parsePath = (string) => {
3421
- const result = [];
3422
- let segment = "";
3423
- for (let i = 0; i < string.length; i++) {
3424
- let char = string.charAt(i);
3425
- if (char === "\\" && string.charAt(i + 1) === ".") {
3426
- segment += ".";
3427
- i++;
3428
- continue;
3429
- }
3430
- if (char === ".") {
3431
- result.push(segment);
3432
- segment = "";
3433
- continue;
3434
- }
3435
- segment += char;
3436
- }
3437
- const lastSegment = segment;
3438
- result.push(lastSegment);
3439
- return result;
3440
- };
3441
- //#endregion
3442
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/transformer.js
3443
- function simpleTransformation(isApplicable, annotation, transform, untransform) {
3444
- return {
3445
- isApplicable,
3446
- annotation,
3447
- transform,
3448
- untransform
3449
- };
3450
- }
3451
- const simpleRules = [
3452
- simpleTransformation(isUndefined$1, "undefined", () => null, () => void 0),
3453
- simpleTransformation(isBigint, "bigint", (v) => v.toString(), (v) => {
3454
- if (typeof BigInt !== "undefined") return BigInt(v);
3455
- console.error("Please add a BigInt polyfill.");
3456
- return v;
3457
- }),
3458
- simpleTransformation(isDate, "Date", (v) => v.toISOString(), (v) => new Date(v)),
3459
- simpleTransformation(isError, "Error", (v, superJson) => {
3460
- const baseError = {
3461
- name: v.name,
3462
- message: v.message
3463
- };
3464
- superJson.allowedErrorProps.forEach((prop) => {
3465
- baseError[prop] = v[prop];
3466
- });
3467
- return baseError;
3468
- }, (v, superJson) => {
3469
- const e = new Error(v.message);
3470
- e.name = v.name;
3471
- e.stack = v.stack;
3472
- superJson.allowedErrorProps.forEach((prop) => {
3473
- e[prop] = v[prop];
3474
- });
3475
- return e;
3476
- }),
3477
- simpleTransformation(isRegExp, "regexp", (v) => "" + v, (regex) => {
3478
- const body = regex.slice(1, regex.lastIndexOf("/"));
3479
- const flags = regex.slice(regex.lastIndexOf("/") + 1);
3480
- return new RegExp(body, flags);
3481
- }),
3482
- simpleTransformation(isSet, "set", (v) => [...v.values()], (v) => new Set(v)),
3483
- simpleTransformation(isMap, "map", (v) => [...v.entries()], (v) => new Map(v)),
3484
- simpleTransformation((v) => isNaNValue(v) || isInfinite(v), "number", (v) => {
3485
- if (isNaNValue(v)) return "NaN";
3486
- if (v > 0) return "Infinity";
3487
- else return "-Infinity";
3488
- }, Number),
3489
- simpleTransformation((v) => v === 0 && 1 / v === -Infinity, "number", () => {
3490
- return "-0";
3491
- }, Number),
3492
- simpleTransformation(isURL, "URL", (v) => v.toString(), (v) => new URL(v))
3493
- ];
3494
- function compositeTransformation(isApplicable, annotation, transform, untransform) {
3495
- return {
3496
- isApplicable,
3497
- annotation,
3498
- transform,
3499
- untransform
3500
- };
3501
- }
3502
- const symbolRule = compositeTransformation((s, superJson) => {
3503
- if (isSymbol(s)) return !!superJson.symbolRegistry.getIdentifier(s);
3504
- return false;
3505
- }, (s, superJson) => {
3506
- return ["symbol", superJson.symbolRegistry.getIdentifier(s)];
3507
- }, (v) => v.description, (_, a, superJson) => {
3508
- const value = superJson.symbolRegistry.getValue(a[1]);
3509
- if (!value) throw new Error("Trying to deserialize unknown symbol");
3510
- return value;
3511
- });
3512
- const constructorToName = [
3513
- Int8Array,
3514
- Uint8Array,
3515
- Int16Array,
3516
- Uint16Array,
3517
- Int32Array,
3518
- Uint32Array,
3519
- Float32Array,
3520
- Float64Array,
3521
- Uint8ClampedArray
3522
- ].reduce((obj, ctor) => {
3523
- obj[ctor.name] = ctor;
3524
- return obj;
3525
- }, {});
3526
- const typedArrayRule = compositeTransformation(isTypedArray, (v) => ["typed-array", v.constructor.name], (v) => [...v], (v, a) => {
3527
- const ctor = constructorToName[a[1]];
3528
- if (!ctor) throw new Error("Trying to deserialize unknown typed array");
3529
- return new ctor(v);
3530
- });
3531
- function isInstanceOfRegisteredClass(potentialClass, superJson) {
3532
- if (potentialClass?.constructor) return !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
3533
- return false;
3534
- }
3535
- const classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, superJson) => {
3536
- return ["class", superJson.classRegistry.getIdentifier(clazz.constructor)];
3537
- }, (clazz, superJson) => {
3538
- const allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
3539
- if (!allowedProps) return { ...clazz };
3540
- const result = {};
3541
- allowedProps.forEach((prop) => {
3542
- result[prop] = clazz[prop];
3543
- });
3544
- return result;
3545
- }, (v, a, superJson) => {
3546
- const clazz = superJson.classRegistry.getValue(a[1]);
3547
- if (!clazz) throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
3548
- return Object.assign(Object.create(clazz.prototype), v);
3549
- });
3550
- const customRule = compositeTransformation((value, superJson) => {
3551
- return !!superJson.customTransformerRegistry.findApplicable(value);
3552
- }, (value, superJson) => {
3553
- return ["custom", superJson.customTransformerRegistry.findApplicable(value).name];
3554
- }, (value, superJson) => {
3555
- return superJson.customTransformerRegistry.findApplicable(value).serialize(value);
3556
- }, (v, a, superJson) => {
3557
- const transformer = superJson.customTransformerRegistry.findByName(a[1]);
3558
- if (!transformer) throw new Error("Trying to deserialize unknown custom value");
3559
- return transformer.deserialize(v);
3560
- });
3561
- const compositeRules = [
3562
- classRule,
3563
- symbolRule,
3564
- customRule,
3565
- typedArrayRule
3566
- ];
3567
- const transformValue = (value, superJson) => {
3568
- const applicableCompositeRule = findArr(compositeRules, (rule) => rule.isApplicable(value, superJson));
3569
- if (applicableCompositeRule) return {
3570
- value: applicableCompositeRule.transform(value, superJson),
3571
- type: applicableCompositeRule.annotation(value, superJson)
3572
- };
3573
- const applicableSimpleRule = findArr(simpleRules, (rule) => rule.isApplicable(value, superJson));
3574
- if (applicableSimpleRule) return {
3575
- value: applicableSimpleRule.transform(value, superJson),
3576
- type: applicableSimpleRule.annotation
3577
- };
3578
- };
3579
- const simpleRulesByAnnotation = {};
3580
- simpleRules.forEach((rule) => {
3581
- simpleRulesByAnnotation[rule.annotation] = rule;
3582
- });
3583
- const untransformValue = (json, type, superJson) => {
3584
- if (isArray$1(type)) switch (type[0]) {
3585
- case "symbol": return symbolRule.untransform(json, type, superJson);
3586
- case "class": return classRule.untransform(json, type, superJson);
3587
- case "custom": return customRule.untransform(json, type, superJson);
3588
- case "typed-array": return typedArrayRule.untransform(json, type, superJson);
3589
- default: throw new Error("Unknown transformation: " + type);
3590
- }
3591
- else {
3592
- const transformation = simpleRulesByAnnotation[type];
3593
- if (!transformation) throw new Error("Unknown transformation: " + type);
3594
- return transformation.untransform(json, superJson);
3595
- }
3596
- };
3597
- //#endregion
3598
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/accessDeep.js
3599
- const getNthKey = (value, n) => {
3600
- if (n > value.size) throw new Error("index out of bounds");
3601
- const keys = value.keys();
3602
- while (n > 0) {
3603
- keys.next();
3604
- n--;
3605
- }
3606
- return keys.next().value;
3607
- };
3608
- function validatePath(path) {
3609
- if (includes(path, "__proto__")) throw new Error("__proto__ is not allowed as a property");
3610
- if (includes(path, "prototype")) throw new Error("prototype is not allowed as a property");
3611
- if (includes(path, "constructor")) throw new Error("constructor is not allowed as a property");
3612
- }
3613
- const getDeep = (object, path) => {
3614
- validatePath(path);
3615
- for (let i = 0; i < path.length; i++) {
3616
- const key = path[i];
3617
- if (isSet(object)) object = getNthKey(object, +key);
3618
- else if (isMap(object)) {
3619
- const row = +key;
3620
- const type = +path[++i] === 0 ? "key" : "value";
3621
- const keyOfRow = getNthKey(object, row);
3622
- switch (type) {
3623
- case "key":
3624
- object = keyOfRow;
3625
- break;
3626
- case "value":
3627
- object = object.get(keyOfRow);
3628
- break;
3629
- }
3630
- } else object = object[key];
3631
- }
3632
- return object;
3633
- };
3634
- const setDeep = (object, path, mapper) => {
3635
- validatePath(path);
3636
- if (path.length === 0) return mapper(object);
3637
- let parent = object;
3638
- for (let i = 0; i < path.length - 1; i++) {
3639
- const key = path[i];
3640
- if (isArray$1(parent)) {
3641
- const index = +key;
3642
- parent = parent[index];
3643
- } else if (isPlainObject$1(parent)) parent = parent[key];
3644
- else if (isSet(parent)) {
3645
- const row = +key;
3646
- parent = getNthKey(parent, row);
3647
- } else if (isMap(parent)) {
3648
- if (i === path.length - 2) break;
3649
- const row = +key;
3650
- const type = +path[++i] === 0 ? "key" : "value";
3651
- const keyOfRow = getNthKey(parent, row);
3652
- switch (type) {
3653
- case "key":
3654
- parent = keyOfRow;
3655
- break;
3656
- case "value":
3657
- parent = parent.get(keyOfRow);
3658
- break;
3659
- }
3660
- }
3661
- }
3662
- const lastKey = path[path.length - 1];
3663
- if (isArray$1(parent)) parent[+lastKey] = mapper(parent[+lastKey]);
3664
- else if (isPlainObject$1(parent)) parent[lastKey] = mapper(parent[lastKey]);
3665
- if (isSet(parent)) {
3666
- const oldValue = getNthKey(parent, +lastKey);
3667
- const newValue = mapper(oldValue);
3668
- if (oldValue !== newValue) {
3669
- parent.delete(oldValue);
3670
- parent.add(newValue);
3671
- }
3672
- }
3673
- if (isMap(parent)) {
3674
- const row = +path[path.length - 2];
3675
- const keyToRow = getNthKey(parent, row);
3676
- switch (+lastKey === 0 ? "key" : "value") {
3677
- case "key": {
3678
- const newKey = mapper(keyToRow);
3679
- parent.set(newKey, parent.get(keyToRow));
3680
- if (newKey !== keyToRow) parent.delete(keyToRow);
3681
- break;
3682
- }
3683
- case "value":
3684
- parent.set(keyToRow, mapper(parent.get(keyToRow)));
3685
- break;
3686
- }
3687
- }
3688
- return object;
3689
- };
3690
- //#endregion
3691
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.js
3692
- function traverse(tree, walker, origin = []) {
3693
- if (!tree) return;
3694
- if (!isArray$1(tree)) {
3695
- forEach(tree, (subtree, key) => traverse(subtree, walker, [...origin, ...parsePath(key)]));
3696
- return;
3697
- }
3698
- const [nodeValue, children] = tree;
3699
- if (children) forEach(children, (child, key) => {
3700
- traverse(child, walker, [...origin, ...parsePath(key)]);
3701
- });
3702
- walker(nodeValue, origin);
3703
- }
3704
- function applyValueAnnotations(plain, annotations, superJson) {
3705
- traverse(annotations, (type, path) => {
3706
- plain = setDeep(plain, path, (v) => untransformValue(v, type, superJson));
3707
- });
3708
- return plain;
3709
- }
3710
- function applyReferentialEqualityAnnotations(plain, annotations) {
3711
- function apply(identicalPaths, path) {
3712
- const object = getDeep(plain, parsePath(path));
3713
- identicalPaths.map(parsePath).forEach((identicalObjectPath) => {
3714
- plain = setDeep(plain, identicalObjectPath, () => object);
3715
- });
3716
- }
3717
- if (isArray$1(annotations)) {
3718
- const [root, other] = annotations;
3719
- root.forEach((identicalPath) => {
3720
- plain = setDeep(plain, parsePath(identicalPath), () => plain);
3721
- });
3722
- if (other) forEach(other, apply);
3723
- } else forEach(annotations, apply);
3724
- return plain;
3725
- }
3726
- const isDeep = (object, superJson) => isPlainObject$1(object) || isArray$1(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
3727
- function addIdentity(object, path, identities) {
3728
- const existingSet = identities.get(object);
3729
- if (existingSet) existingSet.push(path);
3730
- else identities.set(object, [path]);
3731
- }
3732
- function generateReferentialEqualityAnnotations(identitites, dedupe) {
3733
- const result = {};
3734
- let rootEqualityPaths = void 0;
3735
- identitites.forEach((paths) => {
3736
- if (paths.length <= 1) return;
3737
- if (!dedupe) paths = paths.map((path) => path.map(String)).sort((a, b) => a.length - b.length);
3738
- const [representativePath, ...identicalPaths] = paths;
3739
- if (representativePath.length === 0) rootEqualityPaths = identicalPaths.map(stringifyPath);
3740
- else result[stringifyPath(representativePath)] = identicalPaths.map(stringifyPath);
3741
- });
3742
- if (rootEqualityPaths) if (isEmptyObject(result)) return [rootEqualityPaths];
3743
- else return [rootEqualityPaths, result];
3744
- else return isEmptyObject(result) ? void 0 : result;
3745
- }
3746
- const walker = (object, identities, superJson, dedupe, path = [], objectsInThisPath = [], seenObjects = /* @__PURE__ */ new Map()) => {
3747
- const primitive = isPrimitive(object);
3748
- if (!primitive) {
3749
- addIdentity(object, path, identities);
3750
- const seen = seenObjects.get(object);
3751
- if (seen) return dedupe ? { transformedValue: null } : seen;
3752
- }
3753
- if (!isDeep(object, superJson)) {
3754
- const transformed = transformValue(object, superJson);
3755
- const result = transformed ? {
3756
- transformedValue: transformed.value,
3757
- annotations: [transformed.type]
3758
- } : { transformedValue: object };
3759
- if (!primitive) seenObjects.set(object, result);
3760
- return result;
3761
- }
3762
- if (includes(objectsInThisPath, object)) return { transformedValue: null };
3763
- const transformationResult = transformValue(object, superJson);
3764
- const transformed = transformationResult?.value ?? object;
3765
- const transformedValue = isArray$1(transformed) ? [] : {};
3766
- const innerAnnotations = {};
3767
- forEach(transformed, (value, index) => {
3768
- if (index === "__proto__" || index === "constructor" || index === "prototype") throw new Error(`Detected property ${index}. This is a prototype pollution risk, please remove it from your object.`);
3769
- const recursiveResult = walker(value, identities, superJson, dedupe, [...path, index], [...objectsInThisPath, object], seenObjects);
3770
- transformedValue[index] = recursiveResult.transformedValue;
3771
- if (isArray$1(recursiveResult.annotations)) innerAnnotations[index] = recursiveResult.annotations;
3772
- else if (isPlainObject$1(recursiveResult.annotations)) forEach(recursiveResult.annotations, (tree, key) => {
3773
- innerAnnotations[escapeKey(index) + "." + key] = tree;
3774
- });
3775
- });
3776
- const result = isEmptyObject(innerAnnotations) ? {
3777
- transformedValue,
3778
- annotations: !!transformationResult ? [transformationResult.type] : void 0
3779
- } : {
3780
- transformedValue,
3781
- annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
3782
- };
3783
- if (!primitive) seenObjects.set(object, result);
3784
- return result;
3785
- };
3786
- //#endregion
3787
- //#region ../../node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.js
3788
- function getType(payload) {
3789
- return Object.prototype.toString.call(payload).slice(8, -1);
3790
- }
3791
- function isArray(payload) {
3792
- return getType(payload) === "Array";
3793
- }
3794
- function isPlainObject(payload) {
3795
- if (getType(payload) !== "Object") return false;
3796
- const prototype = Object.getPrototypeOf(payload);
3797
- return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
3798
- }
3799
- function isNull(payload) {
3800
- return getType(payload) === "Null";
3801
- }
3802
- function isOneOf(a, b, c, d, e) {
3803
- return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);
3804
- }
3805
- function isUndefined(payload) {
3806
- return getType(payload) === "Undefined";
3807
- }
3808
- isOneOf(isNull, isUndefined);
3809
- //#endregion
3810
- //#region ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
3811
- function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
3812
- const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
3813
- if (propType === "enumerable") carry[key] = newVal;
3814
- if (includeNonenumerable && propType === "nonenumerable") Object.defineProperty(carry, key, {
3815
- value: newVal,
3816
- enumerable: false,
3817
- writable: true,
3818
- configurable: true
3819
- });
3820
- }
3821
- function copy(target, options = {}) {
3822
- if (isArray(target)) return target.map((item) => copy(item, options));
3823
- if (!isPlainObject(target)) return target;
3824
- const props = Object.getOwnPropertyNames(target);
3825
- const symbols = Object.getOwnPropertySymbols(target);
3826
- return [...props, ...symbols].reduce((carry, key) => {
3827
- if (isArray(options.props) && !options.props.includes(key)) return carry;
3828
- const val = target[key];
3829
- assignProp(carry, key, copy(val, options), target, options.nonenumerable);
3830
- return carry;
3831
- }, {});
3832
- }
3833
- //#endregion
3834
- //#region ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.js
3835
- var SuperJSON = class {
3836
- /**
3837
- * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3838
- */
3839
- constructor({ dedupe = false } = {}) {
3840
- this.classRegistry = new ClassRegistry();
3841
- this.symbolRegistry = new Registry((s) => s.description ?? "");
3842
- this.customTransformerRegistry = new CustomTransformerRegistry();
3843
- this.allowedErrorProps = [];
3844
- this.dedupe = dedupe;
3845
- }
3846
- serialize(object) {
3847
- const identities = /* @__PURE__ */ new Map();
3848
- const output = walker(object, identities, this, this.dedupe);
3849
- const res = { json: output.transformedValue };
3850
- if (output.annotations) res.meta = {
3851
- ...res.meta,
3852
- values: output.annotations
3853
- };
3854
- const equalityAnnotations = generateReferentialEqualityAnnotations(identities, this.dedupe);
3855
- if (equalityAnnotations) res.meta = {
3856
- ...res.meta,
3857
- referentialEqualities: equalityAnnotations
3858
- };
3859
- return res;
3860
- }
3861
- deserialize(payload) {
3862
- const { json, meta } = payload;
3863
- let result = copy(json);
3864
- if (meta?.values) result = applyValueAnnotations(result, meta.values, this);
3865
- if (meta?.referentialEqualities) result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
3866
- return result;
3867
- }
3868
- stringify(object) {
3869
- return JSON.stringify(this.serialize(object));
3870
- }
3871
- parse(string) {
3872
- return this.deserialize(JSON.parse(string));
3873
- }
3874
- registerClass(v, options) {
3875
- this.classRegistry.register(v, options);
3876
- }
3877
- registerSymbol(v, identifier) {
3878
- this.symbolRegistry.register(v, identifier);
3879
- }
3880
- registerCustom(transformer, name) {
3881
- this.customTransformerRegistry.register({
3882
- name,
3883
- ...transformer
3884
- });
3885
- }
3886
- allowErrorProps(...props) {
3887
- this.allowedErrorProps.push(...props);
3888
- }
3889
- };
3890
- SuperJSON.defaultInstance = new SuperJSON();
3891
- SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(SuperJSON.defaultInstance);
3892
- SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(SuperJSON.defaultInstance);
3893
- SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(SuperJSON.defaultInstance);
3894
- SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(SuperJSON.defaultInstance);
3895
- SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(SuperJSON.defaultInstance);
3896
- SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(SuperJSON.defaultInstance);
3897
- SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJSON.defaultInstance);
3898
- SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
3899
- SuperJSON.serialize;
3900
- SuperJSON.deserialize;
3901
- SuperJSON.stringify;
3902
- SuperJSON.parse;
3903
- SuperJSON.registerClass;
3904
- SuperJSON.registerCustom;
3905
- SuperJSON.registerSymbol;
3906
- SuperJSON.allowErrorProps;
3907
- //#endregion
3908
- //#region ../devtools-kit/src/messaging/index.ts
3909
- target.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ ??= [];
3910
- target.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ ??= null;
3911
- target.__VUE_DEVTOOLS_KIT_RPC_SERVER__ ??= null;
3912
- target.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ ??= null;
3913
- target.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ ??= null;
3914
- target.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ ??= null;
3915
- //#endregion
3916
1773
  exports.addCustomCommand = addCustomCommand;
3917
1774
  exports.addCustomTab = addCustomTab;
3918
1775
  exports.onDevToolsClientConnected = onDevToolsClientConnected;