ranuts 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +1 -1
- package/README.de.md +4 -4
- package/README.es.md +4 -4
- package/README.fa.md +4 -4
- package/README.ja.md +4 -4
- package/README.ko.md +4 -4
- package/README.md +4 -4
- package/README.pt.md +4 -4
- package/README.zh-CN.md +4 -4
- package/dist/iife/index.iife.js +1 -1
- package/dist/iife/utils.iife.js +1 -1
- package/dist/index.js +294 -293
- package/dist/src/utils/charset.d.ts +15 -0
- package/dist/src/utils/charset.js +21 -0
- package/dist/src/utils/index.d.ts +4 -2
- package/dist/src/utils/index.js +294 -293
- package/dist/src/utils/script.d.ts +3 -1
- package/dist/src/utils/script.js +33 -34
- package/dist/src/utils/scroll.d.ts +2 -0
- package/dist/src/utils/scroll.js +25 -25
- package/dist/src/utils/str.d.ts +0 -15
- package/dist/src/utils/str.js +70 -88
- package/dist/src/utils/visual/render/utils/index.js +12 -12
- package/package.json +4 -4
package/dist/src/utils/index.js
CHANGED
|
@@ -1,306 +1,307 @@
|
|
|
1
1
|
import { createBottomFollower as r } from "./scroll.js";
|
|
2
2
|
import { diffLines as t } from "./diff.js";
|
|
3
3
|
import { SyncHook as i } from "./subscribe.js";
|
|
4
|
-
import { MessageCodec as n,
|
|
5
|
-
import { Mathjs as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
4
|
+
import { MessageCodec as n, clearBr as s, clearStr as p, csvEscape as l, fenceCode as c, getMatchingSentences as f, getRandomString as g, isString as d, randomString as u, slugify as T, strParse as h, toFullWidth as b, toHalfWidth as R, toString as E, truncate as S, truncateWithMarker as y } from "./str.js";
|
|
5
|
+
import { Mathjs as A, addNumSym as H, clamp as M, fit as D, formatBytes as C, inverseLerp as x, lerp as v, linearstep as I, mathjs as P, parseChineseNumber as L, parseEnglishNumber as U, parseRomanNumber as F, perToNum as O, range as _, remap as k, smoothstep as w, transformNumber as G } from "./number.js";
|
|
6
|
+
import { arrayBufferToString as q, checkEncoding as W, transformText as z } from "./charset.js";
|
|
7
|
+
import { createSpeechRecognizer as Q, isSpeechRecognitionSupported as X } from "./speech.js";
|
|
8
|
+
import { formatDate as K, formatDuration as V, formatRelative as Y, parseVttCueTiming as J, parseVttTimestamp as $, performanceTime as ee } from "./time.js";
|
|
9
|
+
import { appendUrl as oe, connection as te, createObjectURL as ae, durationHandler as ie, encodeUrl as me, getAllQueryString as ne, getCookie as se, getCookieByName as pe, getFrame as le, getPixelRatio as ce, getWindow as fe, imageRequest as ge, isInIframe as de, isSafari as ue, networkSpeed as Te, queryFlag as he, requestUrlToBuffer as be } from "./bom.js";
|
|
10
|
+
import { BRIDGE_MARKER as Ee, BridgeManager as Se, Client as ye, DEFAULT_CHANNEL as Be, Platform as Ae, PostMessageBridge as He, acceptPortBridge as Me, bridgeManager as De, createPortBridge as Ce, openPortBridge as xe } from "./bridge.js";
|
|
11
|
+
import { once as Ie, singleFlight as Pe } from "./memoize.js";
|
|
12
|
+
import { noop as Ue } from "./noop.js";
|
|
13
|
+
import { cloneDeep as Oe, filterObj as _e, formatJson as ke, isEqual as we, merge as Ge, mergeExports as Ne, querystring as qe, replaceOld as We } from "./obj.js";
|
|
14
|
+
import { MimeType as Ze, getExtensions as Qe, getMime as Xe, setMime as je } from "./mimeType.js";
|
|
15
|
+
import { AudioRecorder as Ve } from "./audioRecorder.js";
|
|
16
|
+
import { createSignal as Je, subscribers as $e } from "./signal.js";
|
|
17
|
+
import { TOTP as rr } from "./totp/totp.js";
|
|
18
|
+
import { createStore as tr, localStorageGetItem as ar, localStorageRemoveItem as ir, localStorageSetItem as mr } from "./storage.js";
|
|
19
|
+
import { compose as sr } from "./compose.js";
|
|
20
|
+
import { handleConsole as lr } from "./console.js";
|
|
21
|
+
import { debounce as fr } from "./debounce.js";
|
|
22
|
+
import { MOBILE_MEDIA_QUERY as dr, currentDevice as ur, isMobile as Tr, isWeiXin as hr, matchMediaQuery as br, watchMediaQuery as Rr } from "./device.js";
|
|
23
|
+
import { Chain as Sr, create as yr } from "./chain.js";
|
|
24
|
+
import { addClassToElement as Ar, autosizeTextarea as Hr, createDocumentFragment as Mr, escapeHtml as Dr, removeClassToElement as Cr, setFontSize2html as xr } from "./dom.js";
|
|
25
|
+
import { handleError as Ir } from "./error.js";
|
|
26
|
+
import { EventManager as Lr, createDoubleTapDetector as Ur } from "./event.js";
|
|
27
|
+
import { circ as Or, cubic as _r, expo as kr, quad as wr, quart as Gr, quint as Nr, sine as qr } from "./tween.js";
|
|
28
|
+
import { fanShapedByArc as zr, getAngle as Zr, getArcPointerByDeg as Qr, getLinearGradient as Xr, getTangentByPointer as jr, roundRectByArc as Kr } from "./canvas.js";
|
|
29
|
+
import { convertImageToBase64 as Yr, cutRound as Jr, getImage as $r, getMatrix as eo, isImageSize as ro, opacity as oo } from "./img.js";
|
|
30
|
+
import { ADOPTED_SHEET_MARKER as ao, ADOPTED_STYLE_MARKER as io, adoptSheetText as mo, adoptStyles as no } from "./style.js";
|
|
31
|
+
import { WebDB as po, createHandoff as lo } from "./idb.js";
|
|
32
|
+
import { buildOffsets as fo, indexForOffset as go, segmentByRanges as uo } from "./segment.js";
|
|
33
|
+
import { paginateText as ho } from "./paginate.js";
|
|
34
|
+
import { detectLanguage as Ro, navigatorLanguage as Eo, resolveLocale as So } from "./lang.js";
|
|
35
|
+
import { I18nCore as Bo, createI18n as Ao, useI18n as Ho } from "./i18n/index.js";
|
|
36
|
+
import { createLocalePath as Do } from "./localePath.js";
|
|
37
|
+
import { alignCrossAxis as xo, computePlacement as vo } from "./placement.js";
|
|
38
|
+
import { readFileAsArrayBuffer as Po, readFileAsDataURL as Lo, readFileAsText as Uo, readFileAsUint8Array as Fo } from "./file.js";
|
|
39
|
+
import { base64ToBytes as _o, base64UrlToBytes as ko, bytesToBase64 as wo, bytesToBase64Url as Go, concatBytes as No, decodeTextBytes as qo, fetchMaybeGzip as Wo, gunzipMaybe as zo, isGzip as Zo, isHtmlDocument as Qo, isZipContainer as Xo, saveFileToDisk as jo } from "./binary.js";
|
|
40
|
+
import { UNAMBIGUOUS_ALPHABET as Vo, safeEqual as Yo, secureRandomString as Jo, secureToken as $o } from "./secure.js";
|
|
41
|
+
import { WorkerClient as rt, serveWorker as ot } from "./worker.js";
|
|
42
|
+
import { isUrlCached as at, networkAllowsDownload as it, prefetchUrl as mt, prefetchUrls as nt, prefetchWhenIdle as st, whenIdle as pt } from "./prefetch.js";
|
|
43
|
+
import { TimeoutError as ct, createRaceGuard as ft, deferred as gt, delay as dt, withTimeout as ut, withTimeoutFallback as Tt } from "./async.js";
|
|
44
|
+
import { ZIP_DEFLATE as bt, ZIP_STORED as Rt, crc32 as Et, createZip as St, inflateRaw as yt, readZipEntries as Bt, readZipEntry as At, rewriteZip as Ht, zipHasEntry as Mt } from "./zip.js";
|
|
45
|
+
import { getPerformance as Ct } from "./performance.js";
|
|
46
|
+
import { createData as vt, getReportUrl as It, report as Pt, setReportUrl as Lt } from "./report.js";
|
|
47
|
+
import { handleFetchHook as Ft, handleXhrHook as Ot } from "./request.js";
|
|
48
|
+
import { throttle as kt } from "./throttle.js";
|
|
49
|
+
import { Monitor as Gt } from "./monitor.js";
|
|
50
|
+
import { getStatus as qt, status as Wt } from "./network.js";
|
|
51
|
+
import { QuestQueue as Zt } from "./queue.js";
|
|
52
|
+
import { loadScript as Xt, scriptOnLoad as jt } from "./script.js";
|
|
53
|
+
import { Color as Vt, ColorScheme as Yt, HEX_COLOR_REGEX as Jt, Hsl as $t, Hsla as ea, RGBA_REGEX as ra, RGB_REGEX as oa, Rgb as ta, Rgba as aa, blendMultiply as ia, blendOverlay as ma, blendScreen as na, brightnessContrast as sa, componentToHex as pa, cosinePalette as la, hexToAlpha as ca, hexToHsb as fa, hexToHsv as ga, hexToRgb as da, hsbToHsl as ua, hsbToRgb as Ta, hslToHsb as ha, hslToHsv as ba, hslToRgb as Ra, hsvToHsl as Ea, hsvToRgb as Sa, hue2rgb as ya, linearToSrgb as Ba, luma as Aa, randomColor as Ha, rgbToHex as Ma, rgbToHsb as Da, rgbToHsl as Ca, rgbToHsv as xa, rgbaString as va, rgbaToHex as Ia, rgbaToRgb as Pa, saturation as La, srgbToLinear as Ua, vibrance as Fa } from "./color.js";
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
ao as ADOPTED_SHEET_MARKER,
|
|
56
|
+
io as ADOPTED_STYLE_MARKER,
|
|
57
|
+
Ve as AudioRecorder,
|
|
58
|
+
Ee as BRIDGE_MARKER,
|
|
59
|
+
Se as BridgeManager,
|
|
60
|
+
Sr as Chain,
|
|
61
|
+
ye as Client,
|
|
62
|
+
Vt as Color,
|
|
63
|
+
Yt as ColorScheme,
|
|
64
|
+
Be as DEFAULT_CHANNEL,
|
|
65
|
+
Lr as EventManager,
|
|
66
|
+
Jt as HEX_COLOR_REGEX,
|
|
67
|
+
$t as Hsl,
|
|
68
|
+
ea as Hsla,
|
|
69
|
+
Bo as I18nCore,
|
|
70
|
+
dr as MOBILE_MEDIA_QUERY,
|
|
71
|
+
A as Mathjs,
|
|
71
72
|
n as MessageCodec,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
Ze as MimeType,
|
|
74
|
+
Gt as Monitor,
|
|
75
|
+
Ae as Platform,
|
|
76
|
+
He as PostMessageBridge,
|
|
77
|
+
Zt as QuestQueue,
|
|
78
|
+
ra as RGBA_REGEX,
|
|
79
|
+
oa as RGB_REGEX,
|
|
80
|
+
ta as Rgb,
|
|
81
|
+
aa as Rgba,
|
|
81
82
|
i as SyncHook,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
83
|
+
rr as TOTP,
|
|
84
|
+
ct as TimeoutError,
|
|
85
|
+
Vo as UNAMBIGUOUS_ALPHABET,
|
|
86
|
+
po as WebDB,
|
|
87
|
+
rt as WorkerClient,
|
|
88
|
+
bt as ZIP_DEFLATE,
|
|
89
|
+
Rt as ZIP_STORED,
|
|
90
|
+
Me as acceptPortBridge,
|
|
91
|
+
Ar as addClassToElement,
|
|
92
|
+
H as addNumSym,
|
|
93
|
+
mo as adoptSheetText,
|
|
94
|
+
no as adoptStyles,
|
|
95
|
+
xo as alignCrossAxis,
|
|
96
|
+
oe as appendUrl,
|
|
97
|
+
q as arrayBufferToString,
|
|
98
|
+
Hr as autosizeTextarea,
|
|
99
|
+
_o as base64ToBytes,
|
|
100
|
+
ko as base64UrlToBytes,
|
|
101
|
+
ia as blendMultiply,
|
|
102
|
+
ma as blendOverlay,
|
|
103
|
+
na as blendScreen,
|
|
104
|
+
De as bridgeManager,
|
|
105
|
+
sa as brightnessContrast,
|
|
106
|
+
fo as buildOffsets,
|
|
107
|
+
wo as bytesToBase64,
|
|
108
|
+
Go as bytesToBase64Url,
|
|
109
|
+
W as checkEncoding,
|
|
110
|
+
Or as circ,
|
|
111
|
+
M as clamp,
|
|
112
|
+
s as clearBr,
|
|
113
|
+
p as clearStr,
|
|
114
|
+
Oe as cloneDeep,
|
|
115
|
+
pa as componentToHex,
|
|
116
|
+
sr as compose,
|
|
117
|
+
vo as computePlacement,
|
|
118
|
+
No as concatBytes,
|
|
119
|
+
te as connection,
|
|
120
|
+
Yr as convertImageToBase64,
|
|
121
|
+
la as cosinePalette,
|
|
122
|
+
Et as crc32,
|
|
123
|
+
yr as create,
|
|
123
124
|
r as createBottomFollower,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
125
|
+
vt as createData,
|
|
126
|
+
Mr as createDocumentFragment,
|
|
127
|
+
Ur as createDoubleTapDetector,
|
|
128
|
+
lo as createHandoff,
|
|
129
|
+
Ao as createI18n,
|
|
130
|
+
Do as createLocalePath,
|
|
131
|
+
ae as createObjectURL,
|
|
132
|
+
Ce as createPortBridge,
|
|
133
|
+
ft as createRaceGuard,
|
|
134
|
+
Je as createSignal,
|
|
135
|
+
Q as createSpeechRecognizer,
|
|
136
|
+
tr as createStore,
|
|
137
|
+
St as createZip,
|
|
138
|
+
l as csvEscape,
|
|
139
|
+
_r as cubic,
|
|
140
|
+
ur as currentDevice,
|
|
141
|
+
Jr as cutRound,
|
|
142
|
+
fr as debounce,
|
|
143
|
+
qo as decodeTextBytes,
|
|
143
144
|
gt as deferred,
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
dt as delay,
|
|
146
|
+
Ro as detectLanguage,
|
|
146
147
|
t as diffLines,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
148
|
+
ie as durationHandler,
|
|
149
|
+
me as encodeUrl,
|
|
150
|
+
Dr as escapeHtml,
|
|
151
|
+
kr as expo,
|
|
152
|
+
zr as fanShapedByArc,
|
|
153
|
+
c as fenceCode,
|
|
154
|
+
Wo as fetchMaybeGzip,
|
|
155
|
+
_e as filterObj,
|
|
156
|
+
D as fit,
|
|
157
|
+
C as formatBytes,
|
|
158
|
+
K as formatDate,
|
|
159
|
+
V as formatDuration,
|
|
160
|
+
ke as formatJson,
|
|
161
|
+
Y as formatRelative,
|
|
162
|
+
ne as getAllQueryString,
|
|
163
|
+
Zr as getAngle,
|
|
164
|
+
Qr as getArcPointerByDeg,
|
|
165
|
+
se as getCookie,
|
|
166
|
+
pe as getCookieByName,
|
|
167
|
+
Qe as getExtensions,
|
|
168
|
+
le as getFrame,
|
|
169
|
+
$r as getImage,
|
|
170
|
+
Xr as getLinearGradient,
|
|
171
|
+
f as getMatchingSentences,
|
|
172
|
+
eo as getMatrix,
|
|
173
|
+
Xe as getMime,
|
|
174
|
+
Ct as getPerformance,
|
|
175
|
+
ce as getPixelRatio,
|
|
176
|
+
g as getRandomString,
|
|
177
|
+
It as getReportUrl,
|
|
178
|
+
qt as getStatus,
|
|
179
|
+
jr as getTangentByPointer,
|
|
180
|
+
fe as getWindow,
|
|
181
|
+
zo as gunzipMaybe,
|
|
182
|
+
lr as handleConsole,
|
|
183
|
+
Ir as handleError,
|
|
184
|
+
Ft as handleFetchHook,
|
|
185
|
+
Ot as handleXhrHook,
|
|
186
|
+
ca as hexToAlpha,
|
|
187
|
+
fa as hexToHsb,
|
|
187
188
|
ga as hexToHsv,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
da as hexToRgb,
|
|
190
|
+
ua as hsbToHsl,
|
|
191
|
+
Ta as hsbToRgb,
|
|
192
|
+
ha as hslToHsb,
|
|
193
|
+
ba as hslToHsv,
|
|
194
|
+
Ra as hslToRgb,
|
|
195
|
+
Ea as hsvToHsl,
|
|
196
|
+
Sa as hsvToRgb,
|
|
197
|
+
ya as hue2rgb,
|
|
197
198
|
ge as imageRequest,
|
|
198
199
|
go as indexForOffset,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
200
|
+
yt as inflateRaw,
|
|
201
|
+
x as inverseLerp,
|
|
202
|
+
we as isEqual,
|
|
203
|
+
Zo as isGzip,
|
|
204
|
+
Qo as isHtmlDocument,
|
|
205
|
+
ro as isImageSize,
|
|
206
|
+
de as isInIframe,
|
|
207
|
+
Tr as isMobile,
|
|
208
|
+
ue as isSafari,
|
|
209
|
+
X as isSpeechRecognitionSupported,
|
|
210
|
+
d as isString,
|
|
211
|
+
at as isUrlCached,
|
|
212
|
+
hr as isWeiXin,
|
|
213
|
+
Xo as isZipContainer,
|
|
214
|
+
v as lerp,
|
|
215
|
+
Ba as linearToSrgb,
|
|
216
|
+
I as linearstep,
|
|
217
|
+
Xt as loadScript,
|
|
218
|
+
ar as localStorageGetItem,
|
|
219
|
+
ir as localStorageRemoveItem,
|
|
220
|
+
mr as localStorageSetItem,
|
|
221
|
+
Aa as luma,
|
|
222
|
+
br as matchMediaQuery,
|
|
223
|
+
P as mathjs,
|
|
224
|
+
Ge as merge,
|
|
225
|
+
Ne as mergeExports,
|
|
226
|
+
Eo as navigatorLanguage,
|
|
227
|
+
it as networkAllowsDownload,
|
|
228
|
+
Te as networkSpeed,
|
|
229
|
+
Ue as noop,
|
|
230
|
+
Ie as once,
|
|
231
|
+
oo as opacity,
|
|
232
|
+
xe as openPortBridge,
|
|
233
|
+
ho as paginateText,
|
|
234
|
+
L as parseChineseNumber,
|
|
235
|
+
U as parseEnglishNumber,
|
|
236
|
+
F as parseRomanNumber,
|
|
237
|
+
J as parseVttCueTiming,
|
|
238
|
+
$ as parseVttTimestamp,
|
|
239
|
+
O as perToNum,
|
|
240
|
+
ee as performanceTime,
|
|
241
|
+
mt as prefetchUrl,
|
|
242
|
+
nt as prefetchUrls,
|
|
243
|
+
st as prefetchWhenIdle,
|
|
244
|
+
wr as quad,
|
|
245
|
+
Gr as quart,
|
|
246
|
+
he as queryFlag,
|
|
247
|
+
qe as querystring,
|
|
248
|
+
Nr as quint,
|
|
249
|
+
Ha as randomColor,
|
|
250
|
+
u as randomString,
|
|
251
|
+
_ as range,
|
|
252
|
+
Po as readFileAsArrayBuffer,
|
|
253
|
+
Lo as readFileAsDataURL,
|
|
254
|
+
Uo as readFileAsText,
|
|
255
|
+
Fo as readFileAsUint8Array,
|
|
256
|
+
Bt as readZipEntries,
|
|
257
|
+
At as readZipEntry,
|
|
258
|
+
k as remap,
|
|
259
|
+
Cr as removeClassToElement,
|
|
260
|
+
We as replaceOld,
|
|
261
|
+
Pt as report,
|
|
262
|
+
be as requestUrlToBuffer,
|
|
263
|
+
So as resolveLocale,
|
|
264
|
+
Ht as rewriteZip,
|
|
265
|
+
Ma as rgbToHex,
|
|
266
|
+
Da as rgbToHsb,
|
|
267
|
+
Ca as rgbToHsl,
|
|
268
|
+
xa as rgbToHsv,
|
|
269
|
+
va as rgbaString,
|
|
270
|
+
Ia as rgbaToHex,
|
|
271
|
+
Pa as rgbaToRgb,
|
|
272
|
+
Kr as roundRectByArc,
|
|
273
|
+
Yo as safeEqual,
|
|
274
|
+
La as saturation,
|
|
275
|
+
jo as saveFileToDisk,
|
|
276
|
+
jt as scriptOnLoad,
|
|
277
|
+
Jo as secureRandomString,
|
|
278
|
+
$o as secureToken,
|
|
279
|
+
uo as segmentByRanges,
|
|
280
|
+
ot as serveWorker,
|
|
281
|
+
xr as setFontSize2html,
|
|
282
|
+
je as setMime,
|
|
283
|
+
Lt as setReportUrl,
|
|
284
|
+
qr as sine,
|
|
285
|
+
Pe as singleFlight,
|
|
286
|
+
T as slugify,
|
|
287
|
+
w as smoothstep,
|
|
288
|
+
Ua as srgbToLinear,
|
|
289
|
+
Wt as status,
|
|
290
|
+
h as strParse,
|
|
291
|
+
$e as subscribers,
|
|
292
|
+
kt as throttle,
|
|
293
|
+
b as toFullWidth,
|
|
294
|
+
R as toHalfWidth,
|
|
295
|
+
E as toString,
|
|
296
|
+
G as transformNumber,
|
|
297
|
+
z as transformText,
|
|
298
|
+
S as truncate,
|
|
299
|
+
y as truncateWithMarker,
|
|
300
|
+
Ho as useI18n,
|
|
301
|
+
Fa as vibrance,
|
|
302
|
+
Rr as watchMediaQuery,
|
|
303
|
+
pt as whenIdle,
|
|
304
|
+
ut as withTimeout,
|
|
305
|
+
Tt as withTimeoutFallback,
|
|
306
|
+
Mt as zipHasEntry
|
|
306
307
|
};
|
|
@@ -10,7 +10,9 @@ export interface LoadScriptOptions {
|
|
|
10
10
|
* How this differs from `scriptOnLoad`: that one loads a batch of URLs at once (routing
|
|
11
11
|
* .css through a link tag), while this one handles a single script, supports an inline body,
|
|
12
12
|
* and **guarantees the same script is evaluated only once** — injecting a third-party SDK
|
|
13
|
-
* twice usually means its initialisation side effects ran twice.
|
|
13
|
+
* twice usually means its initialisation side effects ran twice. Concurrent calls for the
|
|
14
|
+
* same script share one tag and one promise; a failed load removes its tag so a later call
|
|
15
|
+
* can retry.
|
|
14
16
|
*
|
|
15
17
|
* The key includes the type and exact content, so distinct sources and URL/inline scripts stay separate.
|
|
16
18
|
*
|