@uxland/primary-shell 7.46.4 → 7.46.5
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/dist/{component-BDnhxP4N.js → component-k6kJh8kr.js} +2 -2
- package/dist/{component-BDnhxP4N.js.map → component-k6kJh8kr.js.map} +1 -1
- package/dist/{index-D9vfVpB7.js → index-s-pcmNUD.js} +717 -711
- package/dist/index-s-pcmNUD.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +32 -32
- package/dist/index.umd.cjs.map +1 -1
- package/dist/{plugin-C76XiACG.js → plugin-B_mTXVZ2.js} +2 -2
- package/dist/{plugin-C76XiACG.js.map → plugin-B_mTXVZ2.js.map} +1 -1
- package/dist/primary/shell/src/api/interaction-service/interaction-service-impl.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/interaction-service/interaction-service-impl.tsx +22 -5
- package/dist/index-D9vfVpB7.js.map +0 -1
|
@@ -58,117 +58,117 @@ function require_Reflect() {
|
|
|
58
58
|
} : function() {
|
|
59
59
|
return ps({});
|
|
60
60
|
},
|
|
61
|
-
has: he ? function(ot,
|
|
62
|
-
return ne.call(ot,
|
|
63
|
-
} : function(ot,
|
|
64
|
-
return
|
|
61
|
+
has: he ? function(ot, gt) {
|
|
62
|
+
return ne.call(ot, gt);
|
|
63
|
+
} : function(ot, gt) {
|
|
64
|
+
return gt in ot;
|
|
65
65
|
},
|
|
66
|
-
get: he ? function(ot,
|
|
67
|
-
return ne.call(ot,
|
|
68
|
-
} : function(ot,
|
|
69
|
-
return ot[
|
|
66
|
+
get: he ? function(ot, gt) {
|
|
67
|
+
return ne.call(ot, gt) ? ot[gt] : void 0;
|
|
68
|
+
} : function(ot, gt) {
|
|
69
|
+
return ot[gt];
|
|
70
70
|
}
|
|
71
71
|
}, fe = Object.getPrototypeOf(Function), ge = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Xt(), ve = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : As(), me = typeof WeakMap == "function" ? WeakMap : is(), _e = re ? Symbol.for("@reflect-metadata:registry") : void 0, ye = Ft(), Ae = Ut(ye);
|
|
72
|
-
function Ce(ot,
|
|
72
|
+
function Ce(ot, gt, yt, Ct) {
|
|
73
73
|
if (Be(yt)) {
|
|
74
74
|
if (!Pt(ot))
|
|
75
75
|
throw new TypeError();
|
|
76
|
-
if (!Ht(
|
|
76
|
+
if (!Ht(gt))
|
|
77
77
|
throw new TypeError();
|
|
78
|
-
return Pe(ot,
|
|
78
|
+
return Pe(ot, gt);
|
|
79
79
|
} else {
|
|
80
80
|
if (!Pt(ot))
|
|
81
81
|
throw new TypeError();
|
|
82
|
-
if (!Ve(
|
|
82
|
+
if (!Ve(gt))
|
|
83
83
|
throw new TypeError();
|
|
84
84
|
if (!Ve(Ct) && !Be(Ct) && !Qe(Ct))
|
|
85
85
|
throw new TypeError();
|
|
86
|
-
return Qe(Ct) && (Ct = void 0), yt = St(yt),
|
|
86
|
+
return Qe(Ct) && (Ct = void 0), yt = St(yt), He(ot, gt, yt, Ct);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
X("decorate", Ce);
|
|
90
|
-
function we(ot,
|
|
90
|
+
function we(ot, gt) {
|
|
91
91
|
function yt(Ct, Mt) {
|
|
92
92
|
if (!Ve(Ct))
|
|
93
93
|
throw new TypeError();
|
|
94
94
|
if (!Be(Mt) && !jt(Mt))
|
|
95
95
|
throw new TypeError();
|
|
96
|
-
Xe(ot,
|
|
96
|
+
Xe(ot, gt, Ct, Mt);
|
|
97
97
|
}
|
|
98
98
|
return yt;
|
|
99
99
|
}
|
|
100
100
|
X("metadata", we);
|
|
101
|
-
function Se(ot,
|
|
101
|
+
function Se(ot, gt, yt, Ct) {
|
|
102
102
|
if (!Ve(yt))
|
|
103
103
|
throw new TypeError();
|
|
104
|
-
return Be(Ct) || (Ct = St(Ct)), Xe(ot,
|
|
104
|
+
return Be(Ct) || (Ct = St(Ct)), Xe(ot, gt, yt, Ct);
|
|
105
105
|
}
|
|
106
106
|
X("defineMetadata", Se);
|
|
107
|
-
function Me(ot,
|
|
108
|
-
if (!Ve(
|
|
107
|
+
function Me(ot, gt, yt) {
|
|
108
|
+
if (!Ve(gt))
|
|
109
109
|
throw new TypeError();
|
|
110
|
-
return Be(yt) || (yt = St(yt)), We(ot,
|
|
110
|
+
return Be(yt) || (yt = St(yt)), We(ot, gt, yt);
|
|
111
111
|
}
|
|
112
112
|
X("hasMetadata", Me);
|
|
113
|
-
function Ie(ot,
|
|
114
|
-
if (!Ve(
|
|
113
|
+
function Ie(ot, gt, yt) {
|
|
114
|
+
if (!Ve(gt))
|
|
115
115
|
throw new TypeError();
|
|
116
|
-
return Be(yt) || (yt = St(yt)), Ge(ot,
|
|
116
|
+
return Be(yt) || (yt = St(yt)), Ge(ot, gt, yt);
|
|
117
117
|
}
|
|
118
118
|
X("hasOwnMetadata", Ie);
|
|
119
|
-
function ze(ot,
|
|
120
|
-
if (!Ve(
|
|
119
|
+
function ze(ot, gt, yt) {
|
|
120
|
+
if (!Ve(gt))
|
|
121
121
|
throw new TypeError();
|
|
122
|
-
return Be(yt) || (yt = St(yt)), Ye(ot,
|
|
122
|
+
return Be(yt) || (yt = St(yt)), Ye(ot, gt, yt);
|
|
123
123
|
}
|
|
124
124
|
X("getMetadata", ze);
|
|
125
|
-
function
|
|
126
|
-
if (!Ve(
|
|
125
|
+
function Ue(ot, gt, yt) {
|
|
126
|
+
if (!Ve(gt))
|
|
127
127
|
throw new TypeError();
|
|
128
|
-
return Be(yt) || (yt = St(yt)),
|
|
128
|
+
return Be(yt) || (yt = St(yt)), bt(ot, gt, yt);
|
|
129
129
|
}
|
|
130
|
-
X("getOwnMetadata",
|
|
131
|
-
function Le(ot,
|
|
130
|
+
X("getOwnMetadata", Ue);
|
|
131
|
+
function Le(ot, gt) {
|
|
132
132
|
if (!Ve(ot))
|
|
133
133
|
throw new TypeError();
|
|
134
|
-
return Be(
|
|
134
|
+
return Be(gt) || (gt = St(gt)), Ze(ot, gt);
|
|
135
135
|
}
|
|
136
136
|
X("getMetadataKeys", Le);
|
|
137
|
-
function Oe(ot,
|
|
137
|
+
function Oe(ot, gt) {
|
|
138
138
|
if (!Ve(ot))
|
|
139
139
|
throw new TypeError();
|
|
140
|
-
return Be(
|
|
140
|
+
return Be(gt) || (gt = St(gt)), Fe(ot, gt);
|
|
141
141
|
}
|
|
142
142
|
X("getOwnMetadataKeys", Oe);
|
|
143
|
-
function qe(ot,
|
|
144
|
-
if (!Ve(
|
|
143
|
+
function qe(ot, gt, yt) {
|
|
144
|
+
if (!Ve(gt))
|
|
145
145
|
throw new TypeError();
|
|
146
|
-
if (Be(yt) || (yt = St(yt)), !Ve(
|
|
146
|
+
if (Be(yt) || (yt = St(yt)), !Ve(gt))
|
|
147
147
|
throw new TypeError();
|
|
148
148
|
Be(yt) || (yt = St(yt));
|
|
149
149
|
var Ct = cs(
|
|
150
|
-
|
|
150
|
+
gt,
|
|
151
151
|
yt,
|
|
152
152
|
/*Create*/
|
|
153
153
|
!1
|
|
154
154
|
);
|
|
155
|
-
return Be(Ct) ? !1 : Ct.OrdinaryDeleteMetadata(ot,
|
|
155
|
+
return Be(Ct) ? !1 : Ct.OrdinaryDeleteMetadata(ot, gt, yt);
|
|
156
156
|
}
|
|
157
157
|
X("deleteMetadata", qe);
|
|
158
|
-
function Pe(ot,
|
|
158
|
+
function Pe(ot, gt) {
|
|
159
159
|
for (var yt = ot.length - 1; yt >= 0; --yt) {
|
|
160
|
-
var Ct = ot[yt], Mt = Ct(
|
|
160
|
+
var Ct = ot[yt], Mt = Ct(gt);
|
|
161
161
|
if (!Be(Mt) && !Qe(Mt)) {
|
|
162
162
|
if (!Ht(Mt))
|
|
163
163
|
throw new TypeError();
|
|
164
|
-
|
|
164
|
+
gt = Mt;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
return
|
|
167
|
+
return gt;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function He(ot, gt, yt, Ct) {
|
|
170
170
|
for (var Mt = ot.length - 1; Mt >= 0; --Mt) {
|
|
171
|
-
var rs = ot[Mt], ds = rs(
|
|
171
|
+
var rs = ot[Mt], ds = rs(gt, yt, Ct);
|
|
172
172
|
if (!Be(ds) && !Qe(ds)) {
|
|
173
173
|
if (!Ve(ds))
|
|
174
174
|
throw new TypeError();
|
|
@@ -177,54 +177,54 @@ function require_Reflect() {
|
|
|
177
177
|
}
|
|
178
178
|
return Ct;
|
|
179
179
|
}
|
|
180
|
-
function We(ot,
|
|
181
|
-
var Ct = Ge(ot,
|
|
180
|
+
function We(ot, gt, yt) {
|
|
181
|
+
var Ct = Ge(ot, gt, yt);
|
|
182
182
|
if (Ct)
|
|
183
183
|
return !0;
|
|
184
|
-
var Mt = xt(
|
|
184
|
+
var Mt = xt(gt);
|
|
185
185
|
return Qe(Mt) ? !1 : We(ot, Mt, yt);
|
|
186
186
|
}
|
|
187
|
-
function Ge(ot,
|
|
187
|
+
function Ge(ot, gt, yt) {
|
|
188
188
|
var Ct = cs(
|
|
189
|
-
|
|
189
|
+
gt,
|
|
190
190
|
yt,
|
|
191
191
|
/*Create*/
|
|
192
192
|
!1
|
|
193
193
|
);
|
|
194
|
-
return Be(Ct) ? !1 : ft(Ct.OrdinaryHasOwnMetadata(ot,
|
|
194
|
+
return Be(Ct) ? !1 : ft(Ct.OrdinaryHasOwnMetadata(ot, gt, yt));
|
|
195
195
|
}
|
|
196
|
-
function Ye(ot,
|
|
197
|
-
var Ct = Ge(ot,
|
|
196
|
+
function Ye(ot, gt, yt) {
|
|
197
|
+
var Ct = Ge(ot, gt, yt);
|
|
198
198
|
if (Ct)
|
|
199
|
-
return
|
|
200
|
-
var Mt = xt(
|
|
199
|
+
return bt(ot, gt, yt);
|
|
200
|
+
var Mt = xt(gt);
|
|
201
201
|
if (!Qe(Mt))
|
|
202
202
|
return Ye(ot, Mt, yt);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function bt(ot, gt, yt) {
|
|
205
205
|
var Ct = cs(
|
|
206
|
-
|
|
206
|
+
gt,
|
|
207
207
|
yt,
|
|
208
208
|
/*Create*/
|
|
209
209
|
!1
|
|
210
210
|
);
|
|
211
211
|
if (!Be(Ct))
|
|
212
|
-
return Ct.OrdinaryGetOwnMetadata(ot,
|
|
212
|
+
return Ct.OrdinaryGetOwnMetadata(ot, gt, yt);
|
|
213
213
|
}
|
|
214
|
-
function Xe(ot,
|
|
214
|
+
function Xe(ot, gt, yt, Ct) {
|
|
215
215
|
var Mt = cs(
|
|
216
216
|
yt,
|
|
217
217
|
Ct,
|
|
218
218
|
/*Create*/
|
|
219
219
|
!0
|
|
220
220
|
);
|
|
221
|
-
Mt.OrdinaryDefineOwnMetadata(ot,
|
|
221
|
+
Mt.OrdinaryDefineOwnMetadata(ot, gt, yt, Ct);
|
|
222
222
|
}
|
|
223
|
-
function Ze(ot,
|
|
224
|
-
var yt = Fe(ot,
|
|
223
|
+
function Ze(ot, gt) {
|
|
224
|
+
var yt = Fe(ot, gt), Ct = xt(ot);
|
|
225
225
|
if (Ct === null)
|
|
226
226
|
return yt;
|
|
227
|
-
var Mt = Ze(Ct,
|
|
227
|
+
var Mt = Ze(Ct, gt);
|
|
228
228
|
if (Mt.length <= 0)
|
|
229
229
|
return yt;
|
|
230
230
|
if (yt.length <= 0)
|
|
@@ -239,14 +239,14 @@ function require_Reflect() {
|
|
|
239
239
|
}
|
|
240
240
|
return ds;
|
|
241
241
|
}
|
|
242
|
-
function Fe(ot,
|
|
242
|
+
function Fe(ot, gt) {
|
|
243
243
|
var yt = cs(
|
|
244
244
|
ot,
|
|
245
|
-
|
|
245
|
+
gt,
|
|
246
246
|
/*create*/
|
|
247
247
|
!1
|
|
248
248
|
);
|
|
249
|
-
return yt ? yt.OrdinaryOwnMetadataKeys(ot,
|
|
249
|
+
return yt ? yt.OrdinaryOwnMetadataKeys(ot, gt) : [];
|
|
250
250
|
}
|
|
251
251
|
function je(ot) {
|
|
252
252
|
if (ot === null)
|
|
@@ -280,7 +280,7 @@ function require_Reflect() {
|
|
|
280
280
|
function Ve(ot) {
|
|
281
281
|
return typeof ot == "object" ? ot !== null : typeof ot == "function";
|
|
282
282
|
}
|
|
283
|
-
function Je(ot,
|
|
283
|
+
function Je(ot, gt) {
|
|
284
284
|
switch (je(ot)) {
|
|
285
285
|
case 0:
|
|
286
286
|
return ot;
|
|
@@ -304,7 +304,7 @@ function require_Reflect() {
|
|
|
304
304
|
}
|
|
305
305
|
return nt(ot);
|
|
306
306
|
}
|
|
307
|
-
function nt(ot,
|
|
307
|
+
function nt(ot, gt) {
|
|
308
308
|
var yt, Ct, Mt;
|
|
309
309
|
{
|
|
310
310
|
var rs = ot.toString;
|
|
@@ -329,8 +329,8 @@ function require_Reflect() {
|
|
|
329
329
|
return "" + ot;
|
|
330
330
|
}
|
|
331
331
|
function St(ot) {
|
|
332
|
-
var
|
|
333
|
-
return tt(
|
|
332
|
+
var gt = Je(ot);
|
|
333
|
+
return tt(gt) ? gt : $t(gt);
|
|
334
334
|
}
|
|
335
335
|
function Pt(ot) {
|
|
336
336
|
return Array.isArray ? Array.isArray(ot) : ot instanceof Object ? ot instanceof Array : Object.prototype.toString.call(ot) === "[object Array]";
|
|
@@ -351,11 +351,11 @@ function require_Reflect() {
|
|
|
351
351
|
return !1;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function ns(ot,
|
|
355
|
-
return ot ===
|
|
354
|
+
function ns(ot, gt) {
|
|
355
|
+
return ot === gt || ot !== ot && gt !== gt;
|
|
356
356
|
}
|
|
357
|
-
function es(ot,
|
|
358
|
-
var yt = ot[
|
|
357
|
+
function es(ot, gt) {
|
|
358
|
+
var yt = ot[gt];
|
|
359
359
|
if (yt != null) {
|
|
360
360
|
if (!It(yt))
|
|
361
361
|
throw new TypeError();
|
|
@@ -363,10 +363,10 @@ function require_Reflect() {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
function vt(ot) {
|
|
366
|
-
var
|
|
367
|
-
if (!It(
|
|
366
|
+
var gt = es(ot, ce);
|
|
367
|
+
if (!It(gt))
|
|
368
368
|
throw new TypeError();
|
|
369
|
-
var yt =
|
|
369
|
+
var yt = gt.call(ot);
|
|
370
370
|
if (!Ve(yt))
|
|
371
371
|
throw new TypeError();
|
|
372
372
|
return yt;
|
|
@@ -375,27 +375,27 @@ function require_Reflect() {
|
|
|
375
375
|
return ot.value;
|
|
376
376
|
}
|
|
377
377
|
function At(ot) {
|
|
378
|
-
var
|
|
379
|
-
return
|
|
378
|
+
var gt = ot.next();
|
|
379
|
+
return gt.done ? !1 : gt;
|
|
380
380
|
}
|
|
381
381
|
function Et(ot) {
|
|
382
|
-
var
|
|
383
|
-
|
|
382
|
+
var gt = ot.return;
|
|
383
|
+
gt && gt.call(ot);
|
|
384
384
|
}
|
|
385
385
|
function xt(ot) {
|
|
386
|
-
var
|
|
387
|
-
if (typeof ot != "function" || ot === fe ||
|
|
388
|
-
return
|
|
386
|
+
var gt = Object.getPrototypeOf(ot);
|
|
387
|
+
if (typeof ot != "function" || ot === fe || gt !== fe)
|
|
388
|
+
return gt;
|
|
389
389
|
var yt = ot.prototype, Ct = yt && Object.getPrototypeOf(yt);
|
|
390
390
|
if (Ct == null || Ct === Object.prototype)
|
|
391
|
-
return
|
|
391
|
+
return gt;
|
|
392
392
|
var Mt = Ct.constructor;
|
|
393
|
-
return typeof Mt != "function" || Mt === ot ?
|
|
393
|
+
return typeof Mt != "function" || Mt === ot ? gt : Mt;
|
|
394
394
|
}
|
|
395
395
|
function Nt() {
|
|
396
396
|
var ot;
|
|
397
397
|
!Be(_e) && typeof oe.Reflect < "u" && !(_e in oe.Reflect) && typeof oe.Reflect.defineMetadata == "function" && (ot = us(oe.Reflect));
|
|
398
|
-
var
|
|
398
|
+
var gt, yt, Ct, Mt = new me(), rs = {
|
|
399
399
|
registerProvider: ds,
|
|
400
400
|
getProvider: Ot,
|
|
401
401
|
setProvider: Lt
|
|
@@ -407,10 +407,10 @@ function require_Reflect() {
|
|
|
407
407
|
switch (!0) {
|
|
408
408
|
case ot === qt:
|
|
409
409
|
break;
|
|
410
|
-
case Be(
|
|
411
|
-
|
|
410
|
+
case Be(gt):
|
|
411
|
+
gt = qt;
|
|
412
412
|
break;
|
|
413
|
-
case
|
|
413
|
+
case gt === qt:
|
|
414
414
|
break;
|
|
415
415
|
case Be(yt):
|
|
416
416
|
yt = qt;
|
|
@@ -423,12 +423,12 @@ function require_Reflect() {
|
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
function Vt(qt, Bt) {
|
|
426
|
-
if (!Be(
|
|
427
|
-
if (
|
|
428
|
-
return
|
|
426
|
+
if (!Be(gt)) {
|
|
427
|
+
if (gt.isProviderFor(qt, Bt))
|
|
428
|
+
return gt;
|
|
429
429
|
if (!Be(yt)) {
|
|
430
430
|
if (yt.isProviderFor(qt, Bt))
|
|
431
|
-
return
|
|
431
|
+
return gt;
|
|
432
432
|
if (!Be(Ct))
|
|
433
433
|
for (var ts = vt(Ct); ; ) {
|
|
434
434
|
var as = At(ts);
|
|
@@ -450,7 +450,7 @@ function require_Reflect() {
|
|
|
450
450
|
function Dt(qt) {
|
|
451
451
|
if (Be(qt))
|
|
452
452
|
throw new TypeError();
|
|
453
|
-
return
|
|
453
|
+
return gt === qt || yt === qt || !Be(Ct) && Ct.has(qt);
|
|
454
454
|
}
|
|
455
455
|
function Lt(qt, Bt, ts) {
|
|
456
456
|
if (!Dt(ts))
|
|
@@ -475,9 +475,9 @@ function require_Reflect() {
|
|
|
475
475
|
}), ot;
|
|
476
476
|
}
|
|
477
477
|
function Ut(ot) {
|
|
478
|
-
var
|
|
478
|
+
var gt = new me(), yt = {
|
|
479
479
|
isProviderFor: function(Dt, Lt) {
|
|
480
|
-
var qt =
|
|
480
|
+
var qt = gt.get(Dt);
|
|
481
481
|
return Be(qt) ? !1 : qt.has(Lt);
|
|
482
482
|
},
|
|
483
483
|
OrdinaryDefineOwnMetadata: ds,
|
|
@@ -488,18 +488,18 @@ function require_Reflect() {
|
|
|
488
488
|
};
|
|
489
489
|
return ye.registerProvider(yt), yt;
|
|
490
490
|
function Ct(Dt, Lt, qt) {
|
|
491
|
-
var Bt =
|
|
491
|
+
var Bt = gt.get(Dt), ts = !1;
|
|
492
492
|
if (Be(Bt)) {
|
|
493
493
|
if (!qt)
|
|
494
494
|
return;
|
|
495
|
-
Bt = new ge(),
|
|
495
|
+
Bt = new ge(), gt.set(Dt, Bt), ts = !0;
|
|
496
496
|
}
|
|
497
497
|
var as = Bt.get(Lt);
|
|
498
498
|
if (Be(as)) {
|
|
499
499
|
if (!qt)
|
|
500
500
|
return;
|
|
501
501
|
if (as = new ge(), Bt.set(Lt, as), !ot.setProvider(Dt, Lt, yt))
|
|
502
|
-
throw Bt.delete(Lt), ts &&
|
|
502
|
+
throw Bt.delete(Lt), ts && gt.delete(Dt), new Error("Wrong provider for target.");
|
|
503
503
|
}
|
|
504
504
|
return as;
|
|
505
505
|
}
|
|
@@ -567,19 +567,19 @@ function require_Reflect() {
|
|
|
567
567
|
if (Be(Bt) || !Bt.delete(Dt))
|
|
568
568
|
return !1;
|
|
569
569
|
if (Bt.size === 0) {
|
|
570
|
-
var ts =
|
|
571
|
-
Be(ts) || (ts.delete(qt), ts.size === 0 &&
|
|
570
|
+
var ts = gt.get(Lt);
|
|
571
|
+
Be(ts) || (ts.delete(qt), ts.size === 0 && gt.delete(ts));
|
|
572
572
|
}
|
|
573
573
|
return !0;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
function us(ot) {
|
|
577
|
-
var
|
|
577
|
+
var gt = ot.defineMetadata, yt = ot.hasOwnMetadata, Ct = ot.getOwnMetadata, Mt = ot.getOwnMetadataKeys, rs = ot.deleteMetadata, ds = new me(), Vt = {
|
|
578
578
|
isProviderFor: function(Ot, Dt) {
|
|
579
579
|
var Lt = ds.get(Ot);
|
|
580
580
|
return !Be(Lt) && Lt.has(Dt) ? !0 : Mt(Ot, Dt).length ? (Be(Lt) && (Lt = new ve(), ds.set(Ot, Lt)), Lt.add(Dt), !0) : !1;
|
|
581
581
|
},
|
|
582
|
-
OrdinaryDefineOwnMetadata:
|
|
582
|
+
OrdinaryDefineOwnMetadata: gt,
|
|
583
583
|
OrdinaryHasOwnMetadata: yt,
|
|
584
584
|
OrdinaryGetOwnMetadata: Ct,
|
|
585
585
|
OrdinaryOwnMetadataKeys: Mt,
|
|
@@ -587,18 +587,18 @@ function require_Reflect() {
|
|
|
587
587
|
};
|
|
588
588
|
return Vt;
|
|
589
589
|
}
|
|
590
|
-
function cs(ot,
|
|
591
|
-
var Ct = ye.getProvider(ot,
|
|
590
|
+
function cs(ot, gt, yt) {
|
|
591
|
+
var Ct = ye.getProvider(ot, gt);
|
|
592
592
|
if (!Be(Ct))
|
|
593
593
|
return Ct;
|
|
594
594
|
if (yt) {
|
|
595
|
-
if (ye.setProvider(ot,
|
|
595
|
+
if (ye.setProvider(ot, gt, Ae))
|
|
596
596
|
return Ae;
|
|
597
597
|
throw new Error("Illegal state.");
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function Xt() {
|
|
601
|
-
var ot = {},
|
|
601
|
+
var ot = {}, gt = [], yt = (
|
|
602
602
|
/** @class */
|
|
603
603
|
(function() {
|
|
604
604
|
function Vt(Ot, Dt, Lt) {
|
|
@@ -612,13 +612,13 @@ function require_Reflect() {
|
|
|
612
612
|
var Ot = this._index;
|
|
613
613
|
if (Ot >= 0 && Ot < this._keys.length) {
|
|
614
614
|
var Dt = this._selector(this._keys[Ot], this._values[Ot]);
|
|
615
|
-
return Ot + 1 >= this._keys.length ? (this._index = -1, this._keys =
|
|
615
|
+
return Ot + 1 >= this._keys.length ? (this._index = -1, this._keys = gt, this._values = gt) : this._index++, { value: Dt, done: !1 };
|
|
616
616
|
}
|
|
617
617
|
return { value: void 0, done: !0 };
|
|
618
618
|
}, Vt.prototype.throw = function(Ot) {
|
|
619
|
-
throw this._index >= 0 && (this._index = -1, this._keys =
|
|
619
|
+
throw this._index >= 0 && (this._index = -1, this._keys = gt, this._values = gt), Ot;
|
|
620
620
|
}, Vt.prototype.return = function(Ot) {
|
|
621
|
-
return this._index >= 0 && (this._index = -1, this._keys =
|
|
621
|
+
return this._index >= 0 && (this._index = -1, this._keys = gt, this._values = gt), { value: Ot, done: !0 };
|
|
622
622
|
}, Vt;
|
|
623
623
|
})()
|
|
624
624
|
), Ct = (
|
|
@@ -705,40 +705,40 @@ function require_Reflect() {
|
|
|
705
705
|
var ot = (
|
|
706
706
|
/** @class */
|
|
707
707
|
(function() {
|
|
708
|
-
function
|
|
708
|
+
function gt() {
|
|
709
709
|
this._map = new ge();
|
|
710
710
|
}
|
|
711
|
-
return Object.defineProperty(
|
|
711
|
+
return Object.defineProperty(gt.prototype, "size", {
|
|
712
712
|
get: function() {
|
|
713
713
|
return this._map.size;
|
|
714
714
|
},
|
|
715
715
|
enumerable: !0,
|
|
716
716
|
configurable: !0
|
|
717
|
-
}),
|
|
717
|
+
}), gt.prototype.has = function(yt) {
|
|
718
718
|
return this._map.has(yt);
|
|
719
|
-
},
|
|
719
|
+
}, gt.prototype.add = function(yt) {
|
|
720
720
|
return this._map.set(yt, yt), this;
|
|
721
|
-
},
|
|
721
|
+
}, gt.prototype.delete = function(yt) {
|
|
722
722
|
return this._map.delete(yt);
|
|
723
|
-
},
|
|
723
|
+
}, gt.prototype.clear = function() {
|
|
724
724
|
this._map.clear();
|
|
725
|
-
},
|
|
725
|
+
}, gt.prototype.keys = function() {
|
|
726
726
|
return this._map.keys();
|
|
727
|
-
},
|
|
727
|
+
}, gt.prototype.values = function() {
|
|
728
728
|
return this._map.keys();
|
|
729
|
-
},
|
|
729
|
+
}, gt.prototype.entries = function() {
|
|
730
730
|
return this._map.entries();
|
|
731
|
-
},
|
|
731
|
+
}, gt.prototype["@@iterator"] = function() {
|
|
732
732
|
return this.keys();
|
|
733
|
-
},
|
|
733
|
+
}, gt.prototype[ce] = function() {
|
|
734
734
|
return this.keys();
|
|
735
|
-
},
|
|
735
|
+
}, gt;
|
|
736
736
|
})()
|
|
737
737
|
);
|
|
738
738
|
return ot;
|
|
739
739
|
}
|
|
740
740
|
function is() {
|
|
741
|
-
var ot = 16,
|
|
741
|
+
var ot = 16, gt = be.create(), yt = Ct();
|
|
742
742
|
return (
|
|
743
743
|
/** @class */
|
|
744
744
|
(function() {
|
|
@@ -782,8 +782,8 @@ function require_Reflect() {
|
|
|
782
782
|
var Ot;
|
|
783
783
|
do
|
|
784
784
|
Ot = "@@WeakMap@@" + Vt();
|
|
785
|
-
while (be.has(
|
|
786
|
-
return
|
|
785
|
+
while (be.has(gt, Ot));
|
|
786
|
+
return gt[Ot] = !0, Ot;
|
|
787
787
|
}
|
|
788
788
|
function Mt(Ot, Dt) {
|
|
789
789
|
if (!ne.call(Ot, yt)) {
|
|
@@ -4513,12 +4513,12 @@ const resolveConfig = (te) => {
|
|
|
4513
4513
|
onUploadProgress: Me,
|
|
4514
4514
|
responseType: Ie,
|
|
4515
4515
|
headers: ze,
|
|
4516
|
-
withCredentials:
|
|
4516
|
+
withCredentials: Ue = "same-origin",
|
|
4517
4517
|
fetchOptions: Le
|
|
4518
4518
|
} = resolveConfig(ve), Oe = W || fetch;
|
|
4519
4519
|
Ie = Ie ? (Ie + "").toLowerCase() : "text";
|
|
4520
4520
|
let qe = composeSignals([Ae, Ce && Ce.toAbortSignal()], we), Pe = null;
|
|
4521
|
-
const
|
|
4521
|
+
const He = qe && qe.unsubscribe && (() => {
|
|
4522
4522
|
qe.unsubscribe();
|
|
4523
4523
|
});
|
|
4524
4524
|
let We;
|
|
@@ -4537,7 +4537,7 @@ const resolveConfig = (te) => {
|
|
|
4537
4537
|
ye = trackStream(Fe.body, DEFAULT_CHUNK_SIZE, Be, Qe);
|
|
4538
4538
|
}
|
|
4539
4539
|
}
|
|
4540
|
-
utils$1.isString(
|
|
4540
|
+
utils$1.isString(Ue) || (Ue = Ue ? "include" : "omit");
|
|
4541
4541
|
const Ge = re && "credentials" in X.prototype, Ye = {
|
|
4542
4542
|
...Le,
|
|
4543
4543
|
signal: qe,
|
|
@@ -4545,41 +4545,41 @@ const resolveConfig = (te) => {
|
|
|
4545
4545
|
headers: ze.normalize().toJSON(),
|
|
4546
4546
|
body: ye,
|
|
4547
4547
|
duplex: "half",
|
|
4548
|
-
credentials: Ge ?
|
|
4548
|
+
credentials: Ge ? Ue : void 0
|
|
4549
4549
|
};
|
|
4550
4550
|
Pe = re && new X(me, Ye);
|
|
4551
|
-
let
|
|
4551
|
+
let bt = await (re ? Oe(Pe, Le) : Oe(me, Ye));
|
|
4552
4552
|
const Xe = he && (Ie === "stream" || Ie === "response");
|
|
4553
|
-
if (he && (Se || Xe &&
|
|
4553
|
+
if (he && (Se || Xe && He)) {
|
|
4554
4554
|
const Fe = {};
|
|
4555
4555
|
["status", "statusText", "headers"].forEach((tt) => {
|
|
4556
|
-
Fe[tt] =
|
|
4556
|
+
Fe[tt] = bt[tt];
|
|
4557
4557
|
});
|
|
4558
|
-
const je = utils$1.toFiniteNumber(
|
|
4558
|
+
const je = utils$1.toFiniteNumber(bt.headers.get("content-length")), [Be, Qe] = Se && progressEventDecorator(
|
|
4559
4559
|
je,
|
|
4560
4560
|
progressEventReducer(asyncDecorator(Se), !0)
|
|
4561
4561
|
) || [];
|
|
4562
|
-
|
|
4563
|
-
trackStream(
|
|
4564
|
-
Qe && Qe(),
|
|
4562
|
+
bt = new oe(
|
|
4563
|
+
trackStream(bt.body, DEFAULT_CHUNK_SIZE, Be, () => {
|
|
4564
|
+
Qe && Qe(), He && He();
|
|
4565
4565
|
}),
|
|
4566
4566
|
Fe
|
|
4567
4567
|
);
|
|
4568
4568
|
}
|
|
4569
4569
|
Ie = Ie || "text";
|
|
4570
|
-
let Ze = await be[utils$1.findKey(be, Ie) || "text"](
|
|
4571
|
-
return !Xe &&
|
|
4570
|
+
let Ze = await be[utils$1.findKey(be, Ie) || "text"](bt, ve);
|
|
4571
|
+
return !Xe && He && He(), await new Promise((Fe, je) => {
|
|
4572
4572
|
settle(Fe, je, {
|
|
4573
4573
|
data: Ze,
|
|
4574
|
-
headers: AxiosHeaders$1.from(
|
|
4575
|
-
status:
|
|
4576
|
-
statusText:
|
|
4574
|
+
headers: AxiosHeaders$1.from(bt.headers),
|
|
4575
|
+
status: bt.status,
|
|
4576
|
+
statusText: bt.statusText,
|
|
4577
4577
|
config: ve,
|
|
4578
4578
|
request: Pe
|
|
4579
4579
|
});
|
|
4580
4580
|
});
|
|
4581
4581
|
} catch (Ge) {
|
|
4582
|
-
throw
|
|
4582
|
+
throw He && He(), Ge && Ge.name === "TypeError" && /Load failed|fetch/i.test(Ge.message) ? Object.assign(
|
|
4583
4583
|
new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, ve, Pe),
|
|
4584
4584
|
{
|
|
4585
4585
|
cause: Ge.cause || Ge
|
|
@@ -5308,57 +5308,64 @@ const ConfirmationMessage = ({ data: te }) => /* @__PURE__ */ jsxRuntimeExports.
|
|
|
5308
5308
|
hideIcon: !1
|
|
5309
5309
|
};
|
|
5310
5310
|
class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
5311
|
+
constructor() {
|
|
5312
|
+
super(...arguments), this.openDialogCancellers = /* @__PURE__ */ new Set();
|
|
5313
|
+
}
|
|
5311
5314
|
confirm(W, X, oe) {
|
|
5312
|
-
const ne = { ...defaultOptions, ...oe || {} };
|
|
5313
|
-
return new Promise((
|
|
5314
|
-
|
|
5315
|
-
document.
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5315
|
+
const ne = { ...defaultOptions, ...oe || {} }, { openDialogCancellers: re } = this;
|
|
5316
|
+
return new Promise((de) => {
|
|
5317
|
+
let ce = !1;
|
|
5318
|
+
const ue = document.createElement("div");
|
|
5319
|
+
document.body.appendChild(ue);
|
|
5320
|
+
const pe = document.createElement("style");
|
|
5321
|
+
pe.textContent = modalStyles, document.head.appendChild(pe);
|
|
5322
|
+
const he = X.component, be = X.styles;
|
|
5323
|
+
let fe;
|
|
5324
|
+
be && (fe = document.createElement("style"), fe.textContent = X?.styles, document.head.appendChild(fe));
|
|
5325
|
+
const ge = () => {
|
|
5326
|
+
const [me, _e] = useState(), [ye, Ae] = useState(!0), Ce = useRef(null), we = useRef(null), Se = useRef(null), Me = typeof he == "function" && he.prototype instanceof HTMLElement;
|
|
5327
|
+
useEffect(() => (window.addEventListener("keydown", Ie), () => window.removeEventListener("keydown", Ie)), []), useEffect(() => {
|
|
5328
|
+
const Ye = () => Ue(!1);
|
|
5329
|
+
return re.add(Ye), () => {
|
|
5330
|
+
re.delete(Ye);
|
|
5331
|
+
};
|
|
5325
5332
|
}, []);
|
|
5326
|
-
const
|
|
5327
|
-
|
|
5328
|
-
},
|
|
5329
|
-
|
|
5333
|
+
const Ie = (Ye) => {
|
|
5334
|
+
Ye.key === "Escape" && Ue(!1);
|
|
5335
|
+
}, ze = (Ye) => {
|
|
5336
|
+
we.current && Ye.target === Se.current && ne.closeOnOutsideClick && Ue(!1);
|
|
5330
5337
|
};
|
|
5331
5338
|
useEffect(() => {
|
|
5332
|
-
if (
|
|
5333
|
-
const
|
|
5334
|
-
return
|
|
5335
|
-
|
|
5339
|
+
if (Me && Ce.current) {
|
|
5340
|
+
const Ye = Ce.current, bt = new he();
|
|
5341
|
+
return bt.data = W, bt.setResult = _e, bt.setIsValid = Ae, bt.confirm = () => ye && Ue(!0), bt.confirmResult = (Xe) => ye && Le(Xe), bt.cancel = () => Ue(!1), Ye.appendChild(bt), () => {
|
|
5342
|
+
Ye.removeChild(bt);
|
|
5336
5343
|
};
|
|
5337
5344
|
}
|
|
5338
|
-
}, [
|
|
5339
|
-
const
|
|
5340
|
-
|
|
5341
|
-
},
|
|
5342
|
-
|
|
5343
|
-
},
|
|
5344
|
-
setTimeout(() => {
|
|
5345
|
-
|
|
5346
|
-
result:
|
|
5347
|
-
confirmed:
|
|
5348
|
-
}), document.body.removeChild(
|
|
5349
|
-
}, 300);
|
|
5350
|
-
},
|
|
5351
|
-
|
|
5345
|
+
}, [he, W]);
|
|
5346
|
+
const Ue = (Ye) => {
|
|
5347
|
+
Oe(me, Ye);
|
|
5348
|
+
}, Le = (Ye) => {
|
|
5349
|
+
Oe(Ye, !0);
|
|
5350
|
+
}, Oe = (Ye, bt) => {
|
|
5351
|
+
ce || (ce = !0, setTimeout(() => {
|
|
5352
|
+
de({
|
|
5353
|
+
result: bt ? Ye : void 0,
|
|
5354
|
+
confirmed: bt
|
|
5355
|
+
}), ve.unmount(), document.body.removeChild(ue), document.head.removeChild(pe), be && document.head.removeChild(fe);
|
|
5356
|
+
}, 300));
|
|
5357
|
+
}, qe = () => ne.state === "error" ? "error" : ne.state === "success" ? "success" : ne.state === "info" ? "primary" : ne.state === "alert" ? "warning" : "primary", Pe = () => "secondary", He = () => ne.state === "alert" ? "warning" : ne.state === "error" ? "danger" : "", We = () => ne.state === "alert" ? "error" : ne.state === "error" ? "warning" : "", Ge = () => Me ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: Ce }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5358
|
+
he,
|
|
5352
5359
|
{
|
|
5353
5360
|
data: W,
|
|
5354
|
-
setResult:
|
|
5355
|
-
setIsValid:
|
|
5356
|
-
confirm: () =>
|
|
5357
|
-
confirmResult: (
|
|
5358
|
-
cancel: () =>
|
|
5361
|
+
setResult: _e,
|
|
5362
|
+
setIsValid: Ae,
|
|
5363
|
+
confirm: () => ye && Ue(!0),
|
|
5364
|
+
confirmResult: (Ye) => ye && Le(Ye),
|
|
5365
|
+
cancel: () => Ue(!1)
|
|
5359
5366
|
}
|
|
5360
5367
|
);
|
|
5361
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal", ref:
|
|
5368
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal", ref: Se, onClick: ze, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dialog", ref: we, children: [
|
|
5362
5369
|
!ne.fullCustomization && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dss-dialog-header", children: [
|
|
5363
5370
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "dialog-header-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dss-dialog-header-title", children: [
|
|
5364
5371
|
!ne.hideIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -5366,8 +5373,8 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5366
5373
|
{
|
|
5367
5374
|
size: "xl",
|
|
5368
5375
|
fill: !0,
|
|
5369
|
-
class: `dss-dialog-header-state--${
|
|
5370
|
-
icon:
|
|
5376
|
+
class: `dss-dialog-header-state--${He()}`,
|
|
5377
|
+
icon: We()
|
|
5371
5378
|
}
|
|
5372
5379
|
),
|
|
5373
5380
|
ne.title
|
|
@@ -5379,11 +5386,11 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5379
5386
|
size: "md",
|
|
5380
5387
|
variant: "neutral",
|
|
5381
5388
|
icon: "close",
|
|
5382
|
-
onClick: () =>
|
|
5389
|
+
onClick: () => Ue(!1)
|
|
5383
5390
|
}
|
|
5384
5391
|
)
|
|
5385
5392
|
] }),
|
|
5386
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `modal-content ${ne.fullCustomization ? "full-customization" : ""}`, children:
|
|
5393
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `modal-content ${ne.fullCustomization ? "full-customization" : ""}`, children: Ge() }),
|
|
5387
5394
|
!ne.fullCustomization && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
5388
5395
|
"div",
|
|
5389
5396
|
{
|
|
@@ -5394,20 +5401,20 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5394
5401
|
"dss-button",
|
|
5395
5402
|
{
|
|
5396
5403
|
label: ne.cancelButtonText,
|
|
5397
|
-
onClick: () =>
|
|
5404
|
+
onClick: () => Ue(!1),
|
|
5398
5405
|
size: "md",
|
|
5399
|
-
variant:
|
|
5406
|
+
variant: Pe(),
|
|
5400
5407
|
icon: ne.cancelButtonIcon
|
|
5401
5408
|
}
|
|
5402
5409
|
),
|
|
5403
5410
|
ne.showConfirmButton && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5404
5411
|
"dss-button",
|
|
5405
5412
|
{
|
|
5406
|
-
onClick: () =>
|
|
5413
|
+
onClick: () => ye && Ue(!0),
|
|
5407
5414
|
label: ne.confirmButtonText,
|
|
5408
|
-
disabled: !
|
|
5415
|
+
disabled: !ye,
|
|
5409
5416
|
size: "md",
|
|
5410
|
-
variant:
|
|
5417
|
+
variant: qe(),
|
|
5411
5418
|
icon: ne.confirmButtonIcon
|
|
5412
5419
|
}
|
|
5413
5420
|
)
|
|
@@ -5415,17 +5422,16 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5415
5422
|
}
|
|
5416
5423
|
)
|
|
5417
5424
|
] }) });
|
|
5418
|
-
};
|
|
5419
|
-
|
|
5425
|
+
}, ve = createRoot(ue);
|
|
5426
|
+
ve.render(/* @__PURE__ */ jsxRuntimeExports.jsx(ge, {}));
|
|
5420
5427
|
});
|
|
5421
5428
|
}
|
|
5422
5429
|
confirmMessage(W, X) {
|
|
5423
5430
|
return this.confirm(W, { component: ConfirmationMessage }, X);
|
|
5424
5431
|
}
|
|
5425
5432
|
dispose() {
|
|
5426
|
-
const W
|
|
5427
|
-
|
|
5428
|
-
X.remove();
|
|
5433
|
+
for (const W of [...this.openDialogCancellers])
|
|
5434
|
+
W();
|
|
5429
5435
|
}
|
|
5430
5436
|
}
|
|
5431
5437
|
function _concat(te, W) {
|
|
@@ -5701,17 +5707,17 @@ function peg$parse(te, W) {
|
|
|
5701
5707
|
return __assign$4({ type: TYPE.argument, value: De }, ys());
|
|
5702
5708
|
}, _e = gs("numberSkeletonId"), ye = /^['\/{}]/, Ae = ws(["'", "/", "{", "}"], !1, !1), Ce = Ni(), we = gs("numberSkeletonTokenOption"), Se = "/", Me = hs("/", !1), Ie = function(De) {
|
|
5703
5709
|
return De;
|
|
5704
|
-
}, ze = gs("numberSkeletonToken"),
|
|
5710
|
+
}, ze = gs("numberSkeletonToken"), Ue = function(De, Ke) {
|
|
5705
5711
|
return { stem: De, options: Ke };
|
|
5706
5712
|
}, Le = function(De) {
|
|
5707
5713
|
return __assign$4({ type: 0, tokens: De }, ys());
|
|
5708
5714
|
}, Oe = "::", qe = hs("::", !1), Pe = function(De) {
|
|
5709
5715
|
return De;
|
|
5710
|
-
},
|
|
5716
|
+
}, He = function() {
|
|
5711
5717
|
return _s.push("numberArgStyle"), !0;
|
|
5712
5718
|
}, We = function(De) {
|
|
5713
5719
|
return _s.pop(), De.replace(/\s*$/, "");
|
|
5714
|
-
}, Ge = ",", Ye = hs(",", !1),
|
|
5720
|
+
}, Ge = ",", Ye = hs(",", !1), bt = "number", Xe = hs("number", !1), Ze = function(De, Ke, it) {
|
|
5715
5721
|
return __assign$4({ type: Ke === "number" ? TYPE.number : Ke === "date" ? TYPE.date : TYPE.time, style: it && it[2], value: De }, ys());
|
|
5716
5722
|
}, Fe = "'", je = hs("'", !1), Be = /^[^']/, Qe = ws(["'"], !0, !1), tt = /^[^a-zA-Z'{}]/, Ve = ws([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Je = /^[a-zA-Z]/, nt = ws([["a", "z"], ["A", "Z"]], !1, !1), ft = function(De) {
|
|
5717
5723
|
return __assign$4({ type: 1, pattern: De }, ys());
|
|
@@ -5747,7 +5753,7 @@ function peg$parse(te, W) {
|
|
|
5747
5753
|
id: De,
|
|
5748
5754
|
value: Ke
|
|
5749
5755
|
}, ys());
|
|
5750
|
-
}, ps = gs("whitespace"), ot = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,
|
|
5756
|
+
}, ps = gs("whitespace"), ot = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, gt = ws([[" ", "\r"], " ", "
", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), yt = gs("syntax pattern"), Ct = /^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/, Mt = ws([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", ""], ["─", "❵"], ["➔", "⯿"], ["⸀", ""], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), rs = gs("optional whitespace"), ds = gs("number"), Vt = "-", Ot = hs("-", !1), Dt = function(De, Ke) {
|
|
5751
5757
|
return Ke ? De ? -Ke : Ke : 0;
|
|
5752
5758
|
}, Lt = gs("double apostrophes"), qt = "''", Bt = hs("''", !1), ts = function() {
|
|
5753
5759
|
return "'";
|
|
@@ -5884,7 +5890,7 @@ function peg$parse(te, W) {
|
|
|
5884
5890
|
if (it = ui(), it !== X) {
|
|
5885
5891
|
for (mt = [], kt = hi(); kt !== X; )
|
|
5886
5892
|
mt.push(kt), kt = hi();
|
|
5887
|
-
mt !== X ? (Zt = De, Ke =
|
|
5893
|
+
mt !== X ? (Zt = De, Ke = Ue(it, mt), De = Ke) : (Ne = De, De = X);
|
|
5888
5894
|
} else
|
|
5889
5895
|
Ne = De, De = X;
|
|
5890
5896
|
else
|
|
@@ -5902,11 +5908,11 @@ function peg$parse(te, W) {
|
|
|
5902
5908
|
}
|
|
5903
5909
|
function Gi() {
|
|
5904
5910
|
var De, Ke, it;
|
|
5905
|
-
return De = Ne, te.substr(Ne, 2) === Oe ? (Ke = Oe, Ne += 2) : (Ke = X, wt === 0 && Tt(qe)), Ke !== X ? (it = Wi(), it !== X ? (Zt = De, Ke = Pe(it), De = Ke) : (Ne = De, De = X)) : (Ne = De, De = X), De === X && (De = Ne, Zt = Ne, Ke =
|
|
5911
|
+
return De = Ne, te.substr(Ne, 2) === Oe ? (Ke = Oe, Ne += 2) : (Ke = X, wt === 0 && Tt(qe)), Ke !== X ? (it = Wi(), it !== X ? (Zt = De, Ke = Pe(it), De = Ke) : (Ne = De, De = X)) : (Ne = De, De = X), De === X && (De = Ne, Zt = Ne, Ke = He(), Ke ? Ke = void 0 : Ke = X, Ke !== X ? (it = Ps(), it !== X ? (Zt = De, Ke = We(it), De = Ke) : (Ne = De, De = X)) : (Ne = De, De = X)), De;
|
|
5906
5912
|
}
|
|
5907
5913
|
function Zi() {
|
|
5908
5914
|
var De, Ke, it, mt, kt, zt, ss, Kt, bs, Gt, ls, Yt, os;
|
|
5909
|
-
return De = Ne, te.charCodeAt(Ne) === 123 ? (Ke = be, Ne++) : (Ke = X, wt === 0 && Tt(fe)), Ke !== X ? (it = Wt(), it !== X ? (mt = Ss(), mt !== X ? (kt = Wt(), kt !== X ? (te.charCodeAt(Ne) === 44 ? (zt = Ge, Ne++) : (zt = X, wt === 0 && Tt(Ye)), zt !== X ? (ss = Wt(), ss !== X ? (te.substr(Ne, 6) ===
|
|
5915
|
+
return De = Ne, te.charCodeAt(Ne) === 123 ? (Ke = be, Ne++) : (Ke = X, wt === 0 && Tt(fe)), Ke !== X ? (it = Wt(), it !== X ? (mt = Ss(), mt !== X ? (kt = Wt(), kt !== X ? (te.charCodeAt(Ne) === 44 ? (zt = Ge, Ne++) : (zt = X, wt === 0 && Tt(Ye)), zt !== X ? (ss = Wt(), ss !== X ? (te.substr(Ne, 6) === bt ? (Kt = bt, Ne += 6) : (Kt = X, wt === 0 && Tt(Xe)), Kt !== X ? (bs = Wt(), bs !== X ? (Gt = Ne, te.charCodeAt(Ne) === 44 ? (ls = Ge, Ne++) : (ls = X, wt === 0 && Tt(Ye)), ls !== X ? (Yt = Wt(), Yt !== X ? (os = Gi(), os !== X ? (ls = [ls, Yt, os], Gt = ls) : (Ne = Gt, Gt = X)) : (Ne = Gt, Gt = X)) : (Ne = Gt, Gt = X), Gt === X && (Gt = null), Gt !== X ? (ls = Wt(), ls !== X ? (te.charCodeAt(Ne) === 125 ? (Yt = ge, Ne++) : (Yt = X, wt === 0 && Tt(ve)), Yt !== X ? (Zt = De, Ke = Ze(mt, Kt, Gt), De = Ke) : (Ne = De, De = X)) : (Ne = De, De = X)) : (Ne = De, De = X)) : (Ne = De, De = X)) : (Ne = De, De = X)) : (Ne = De, De = X)) : (Ne = De, De = X)) : (Ne = De, De = X)) : (Ne = De, De = X)) : (Ne = De, De = X)) : (Ne = De, De = X), De;
|
|
5910
5916
|
}
|
|
5911
5917
|
function fi() {
|
|
5912
5918
|
var De, Ke, it, mt;
|
|
@@ -6057,7 +6063,7 @@ function peg$parse(te, W) {
|
|
|
6057
6063
|
}
|
|
6058
6064
|
function xs() {
|
|
6059
6065
|
var De;
|
|
6060
|
-
return wt++, ot.test(te.charAt(Ne)) ? (De = te.charAt(Ne), Ne++) : (De = X, wt === 0 && Tt(
|
|
6066
|
+
return wt++, ot.test(te.charAt(Ne)) ? (De = te.charAt(Ne), Ne++) : (De = X, wt === 0 && Tt(gt)), wt--, De === X && wt === 0 && Tt(ps), De;
|
|
6061
6067
|
}
|
|
6062
6068
|
function vi() {
|
|
6063
6069
|
var De;
|
|
@@ -9472,7 +9478,7 @@ class ImportDataManagerImpl {
|
|
|
9472
9478
|
async import(W, X) {
|
|
9473
9479
|
this.currentImporterId = W, this.currentImportParams = X, this.selectedItems = {}, this.pluginTexts = {};
|
|
9474
9480
|
try {
|
|
9475
|
-
const { ImportDataManagerModal: oe } = await import("./component-
|
|
9481
|
+
const { ImportDataManagerModal: oe } = await import("./component-k6kJh8kr.js"), { confirmed: ne } = await this.interactionService.confirm(
|
|
9476
9482
|
void 0,
|
|
9477
9483
|
{ component: oe },
|
|
9478
9484
|
{
|
|
@@ -9575,7 +9581,7 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
|
|
|
9575
9581
|
let bootstrappedPlugins = [];
|
|
9576
9582
|
const CORE_FIRST_ID = "activity-history", bundledActivityHistory = {
|
|
9577
9583
|
pluginId: CORE_FIRST_ID,
|
|
9578
|
-
importer: () => import("./plugin-
|
|
9584
|
+
importer: () => import("./plugin-B_mTXVZ2.js")
|
|
9579
9585
|
}, bootstrapPlugins = async (te, W) => {
|
|
9580
9586
|
const X = te ?? [], oe = X.filter((ue) => ue.pluginId === CORE_FIRST_ID), ne = X.filter((ue) => ue.pluginId !== CORE_FIRST_ID), re = oe.length ? oe : [bundledActivityHistory], de = await p$d(
|
|
9581
9587
|
re,
|
|
@@ -10940,11 +10946,11 @@ function mapToStyles(te) {
|
|
|
10940
10946
|
var Me = getOffsetParent(X), Ie = "clientHeight", ze = "clientWidth";
|
|
10941
10947
|
if (Me === getWindow(X) && (Me = getDocumentElement(X), getComputedStyle(Me).position !== "static" && ce === "absolute" && (Ie = "scrollHeight", ze = "scrollWidth")), Me = Me, ne === top || (ne === left || ne === right) && re === end) {
|
|
10942
10948
|
we = bottom;
|
|
10943
|
-
var
|
|
10949
|
+
var Ue = be && Me === Se && Se.visualViewport ? Se.visualViewport.height : (
|
|
10944
10950
|
// $FlowFixMe[prop-missing]
|
|
10945
10951
|
Me[Ie]
|
|
10946
10952
|
);
|
|
10947
|
-
me -=
|
|
10953
|
+
me -= Ue - oe.height, me *= ue ? 1 : -1;
|
|
10948
10954
|
}
|
|
10949
10955
|
if (ne === left || (ne === top || ne === bottom) && re === end) {
|
|
10950
10956
|
Ce = right;
|
|
@@ -11172,17 +11178,17 @@ function detectOverflow(te, W) {
|
|
|
11172
11178
|
reference: Me,
|
|
11173
11179
|
element: Ce,
|
|
11174
11180
|
placement: ne
|
|
11175
|
-
}), ze = rectToClientRect(Object.assign({}, Ce, Ie)),
|
|
11176
|
-
top: Se.top -
|
|
11177
|
-
bottom:
|
|
11178
|
-
left: Se.left -
|
|
11179
|
-
right:
|
|
11181
|
+
}), ze = rectToClientRect(Object.assign({}, Ce, Ie)), Ue = fe === popper ? ze : Me, Le = {
|
|
11182
|
+
top: Se.top - Ue.top + ye.top,
|
|
11183
|
+
bottom: Ue.bottom - Se.bottom + ye.bottom,
|
|
11184
|
+
left: Se.left - Ue.left + ye.left,
|
|
11185
|
+
right: Ue.right - Se.right + ye.right
|
|
11180
11186
|
}, Oe = te.modifiersData.offset;
|
|
11181
11187
|
if (fe === popper && Oe) {
|
|
11182
11188
|
var qe = Oe[ne];
|
|
11183
11189
|
Object.keys(Le).forEach(function(Pe) {
|
|
11184
|
-
var
|
|
11185
|
-
Le[Pe] += qe[We] *
|
|
11190
|
+
var He = [right, bottom].indexOf(Pe) >= 0 ? 1 : -1, We = [top, bottom].indexOf(Pe) >= 0 ? "y" : "x";
|
|
11191
|
+
Le[Pe] += qe[We] * He;
|
|
11186
11192
|
});
|
|
11187
11193
|
}
|
|
11188
11194
|
return Le;
|
|
@@ -11225,20 +11231,20 @@ function flip(te) {
|
|
|
11225
11231
|
flipVariations: ve,
|
|
11226
11232
|
allowedAutoPlacements: me
|
|
11227
11233
|
}) : tt);
|
|
11228
|
-
}, []), Se = W.rects.reference, Me = W.rects.popper, Ie = /* @__PURE__ */ new Map(), ze = !0,
|
|
11229
|
-
var Oe = we[Le], qe = getBasePlacement(Oe), Pe = getVariation(Oe) === start,
|
|
11234
|
+
}, []), Se = W.rects.reference, Me = W.rects.popper, Ie = /* @__PURE__ */ new Map(), ze = !0, Ue = we[0], Le = 0; Le < we.length; Le++) {
|
|
11235
|
+
var Oe = we[Le], qe = getBasePlacement(Oe), Pe = getVariation(Oe) === start, He = [top, bottom].indexOf(qe) >= 0, We = He ? "width" : "height", Ge = detectOverflow(W, {
|
|
11230
11236
|
placement: Oe,
|
|
11231
11237
|
boundary: he,
|
|
11232
11238
|
rootBoundary: be,
|
|
11233
11239
|
altBoundary: fe,
|
|
11234
11240
|
padding: pe
|
|
11235
|
-
}), Ye =
|
|
11241
|
+
}), Ye = He ? Pe ? right : left : Pe ? bottom : top;
|
|
11236
11242
|
Se[We] > Me[We] && (Ye = getOppositePlacement(Ye));
|
|
11237
|
-
var
|
|
11238
|
-
if (re && Xe.push(Ge[qe] <= 0), ce && Xe.push(Ge[Ye] <= 0, Ge[
|
|
11243
|
+
var bt = getOppositePlacement(Ye), Xe = [];
|
|
11244
|
+
if (re && Xe.push(Ge[qe] <= 0), ce && Xe.push(Ge[Ye] <= 0, Ge[bt] <= 0), Xe.every(function(Qe) {
|
|
11239
11245
|
return Qe;
|
|
11240
11246
|
})) {
|
|
11241
|
-
|
|
11247
|
+
Ue = Oe, ze = !1;
|
|
11242
11248
|
break;
|
|
11243
11249
|
}
|
|
11244
11250
|
Ie.set(Oe, Xe);
|
|
@@ -11253,12 +11259,12 @@ function flip(te) {
|
|
|
11253
11259
|
});
|
|
11254
11260
|
});
|
|
11255
11261
|
if (Ve)
|
|
11256
|
-
return
|
|
11262
|
+
return Ue = Ve, "break";
|
|
11257
11263
|
}, je = Ze; je > 0; je--) {
|
|
11258
11264
|
var Be = Fe(je);
|
|
11259
11265
|
if (Be === "break") break;
|
|
11260
11266
|
}
|
|
11261
|
-
W.placement !==
|
|
11267
|
+
W.placement !== Ue && (W.modifiersData[oe]._skip = !0, W.placement = Ue, W.reset = !0);
|
|
11262
11268
|
}
|
|
11263
11269
|
}
|
|
11264
11270
|
const flip$1 = {
|
|
@@ -11359,24 +11365,24 @@ function preventOverflow(te) {
|
|
|
11359
11365
|
rootBoundary: pe,
|
|
11360
11366
|
padding: be,
|
|
11361
11367
|
altBoundary: he
|
|
11362
|
-
}), ye = getBasePlacement(W.placement), Ae = getVariation(W.placement), Ce = !Ae, we = getMainAxisFromPlacement(ye), Se = getAltAxis(we), Me = W.modifiersData.popperOffsets, Ie = W.rects.reference, ze = W.rects.popper,
|
|
11368
|
+
}), ye = getBasePlacement(W.placement), Ae = getVariation(W.placement), Ce = !Ae, we = getMainAxisFromPlacement(ye), Se = getAltAxis(we), Me = W.modifiersData.popperOffsets, Ie = W.rects.reference, ze = W.rects.popper, Ue = typeof me == "function" ? me(Object.assign({}, W.rects, {
|
|
11363
11369
|
placement: W.placement
|
|
11364
|
-
})) : me, Le = typeof
|
|
11365
|
-
mainAxis:
|
|
11366
|
-
altAxis:
|
|
11370
|
+
})) : me, Le = typeof Ue == "number" ? {
|
|
11371
|
+
mainAxis: Ue,
|
|
11372
|
+
altAxis: Ue
|
|
11367
11373
|
} : Object.assign({
|
|
11368
11374
|
mainAxis: 0,
|
|
11369
11375
|
altAxis: 0
|
|
11370
|
-
},
|
|
11376
|
+
}, Ue), Oe = W.modifiersData.offset ? W.modifiersData.offset[W.placement] : null, qe = {
|
|
11371
11377
|
x: 0,
|
|
11372
11378
|
y: 0
|
|
11373
11379
|
};
|
|
11374
11380
|
if (Me) {
|
|
11375
11381
|
if (re) {
|
|
11376
|
-
var Pe,
|
|
11382
|
+
var Pe, He = we === "y" ? top : left, We = we === "y" ? bottom : right, Ge = we === "y" ? "height" : "width", Ye = Me[we], bt = Ye + _e[He], Xe = Ye - _e[We], Ze = ge ? -ze[Ge] / 2 : 0, Fe = Ae === start ? Ie[Ge] : ze[Ge], je = Ae === start ? -ze[Ge] : -Ie[Ge], Be = W.elements.arrow, Qe = ge && Be ? getLayoutRect(Be) : {
|
|
11377
11383
|
width: 0,
|
|
11378
11384
|
height: 0
|
|
11379
|
-
}, tt = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ve = tt[
|
|
11385
|
+
}, tt = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ve = tt[He], Je = tt[We], nt = within(0, Ie[Ge], Qe[Ge]), ft = Ce ? Ie[Ge] / 2 - Ze - nt - Ve - Le.mainAxis : Fe - nt - Ve - Le.mainAxis, $t = Ce ? -Ie[Ge] / 2 + Ze + nt + Je + Le.mainAxis : je + nt + Je + Le.mainAxis, St = W.elements.arrow && getOffsetParent(W.elements.arrow), Pt = St ? we === "y" ? St.clientTop || 0 : St.clientLeft || 0 : 0, It = (Pe = Oe?.[we]) != null ? Pe : 0, Ht = Ye + ft - It - Pt, jt = Ye + $t - It, ns = within(ge ? min(bt, Ht) : bt, Ye, ge ? max(Xe, jt) : Xe);
|
|
11380
11386
|
Me[we] = ns, qe[we] = ns - Ye;
|
|
11381
11387
|
}
|
|
11382
11388
|
if (ce) {
|
|
@@ -11533,11 +11539,11 @@ function popperGenerator(te) {
|
|
|
11533
11539
|
he.reset = !1, we = -1;
|
|
11534
11540
|
continue;
|
|
11535
11541
|
}
|
|
11536
|
-
var Se = he.orderedModifiers[we], Me = Se.fn, Ie = Se.options, ze = Ie === void 0 ? {} : Ie,
|
|
11542
|
+
var Se = he.orderedModifiers[we], Me = Se.fn, Ie = Se.options, ze = Ie === void 0 ? {} : Ie, Ue = Se.name;
|
|
11537
11543
|
typeof Me == "function" && (he = Me({
|
|
11538
11544
|
state: he,
|
|
11539
11545
|
options: ze,
|
|
11540
|
-
name:
|
|
11546
|
+
name: Ue,
|
|
11541
11547
|
instance: ge
|
|
11542
11548
|
}) || he);
|
|
11543
11549
|
}
|
|
@@ -15110,13 +15116,13 @@ a$n([
|
|
|
15110
15116
|
r$H()
|
|
15111
15117
|
], l$l.prototype, "_currentSortedData", 2);
|
|
15112
15118
|
const P$1 = er`dss-calendar${tr(f$n())}`, s$s = er`dss-icon${tr(f$n())}`, r$y = er`dss-icon-button${tr(f$n())}`, aa$1 = (te) => {
|
|
15113
|
-
var W, X, oe, ne, re, de, ce, ue, pe, he, be, fe, ge, ve, me, _e, ye, Ae, Ce, we, Se, Me, Ie, ze,
|
|
15119
|
+
var W, X, oe, ne, re, de, ce, ue, pe, he, be, fe, ge, ve, me, _e, ye, Ae, Ce, we, Se, Me, Ie, ze, Ue, Le, Oe, qe, Pe, He, We;
|
|
15114
15120
|
const Ge = {
|
|
15115
15121
|
"dss-datepicker-range--sm": te.inputSize !== "lg"
|
|
15116
15122
|
}, Ye = {
|
|
15117
15123
|
"dss-datepicker-range-help--invalid": te._invalid || !((W = te._inputRangeStart) != null && W.validity.valid) && ((X = te._inputRangeStart) == null ? void 0 : X.value) !== "" || !((oe = te._inputRangeEnd) != null && oe.validity.valid) && ((ne = te._inputRangeEnd) == null ? void 0 : ne.value) !== "",
|
|
15118
15124
|
"dss-datepicker-range-help--disabled": ((re = te._inputRangeStart) == null ? void 0 : re.disabled) && ((de = te._inputRangeEnd) == null ? void 0 : de.disabled)
|
|
15119
|
-
},
|
|
15125
|
+
}, bt = {
|
|
15120
15126
|
"dss-input-wrapper": !0,
|
|
15121
15127
|
"dss-input-wrapper--required": (ce = te._inputRangeStart) == null ? void 0 : ce.required,
|
|
15122
15128
|
"dss-input-wrapper--disabled": (ue = te._inputRangeStart) == null ? void 0 : ue.disabled,
|
|
@@ -15147,7 +15153,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$s = er`dss-icon${tr(f$n())}`, r$y =
|
|
|
15147
15153
|
}, je = {
|
|
15148
15154
|
"dss-calendar": !0,
|
|
15149
15155
|
"dss-calendar--visible": te._showCalendar && !((Ie = te._inputRangeStart) != null && Ie.readOnly) && !((ze = te._inputRangeEnd) != null && ze.readOnly),
|
|
15150
|
-
"dss-calendar--disabled": ((
|
|
15156
|
+
"dss-calendar--disabled": ((Ue = te._inputRangeStart) == null ? void 0 : Ue.disabled) && ((Le = te._inputRangeEnd) == null ? void 0 : Le.disabled),
|
|
15151
15157
|
"dss-calendar--sm": te.inputSize !== "lg"
|
|
15152
15158
|
};
|
|
15153
15159
|
return ke`
|
|
@@ -15158,7 +15164,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$s = er`dss-icon${tr(f$n())}`, r$y =
|
|
|
15158
15164
|
aria-controls="datepicker-range-calendar"
|
|
15159
15165
|
aria-expanded=${to(te._showCalendar)}>
|
|
15160
15166
|
|
|
15161
|
-
<div class="dss-datepicker-range-inputs__start ${Rt(
|
|
15167
|
+
<div class="dss-datepicker-range-inputs__start ${Rt(bt)}">
|
|
15162
15168
|
${te.inputSize === "sm" ? ke`
|
|
15163
15169
|
<div class="${Rt({
|
|
15164
15170
|
"dss-wrapper-label": !0,
|
|
@@ -15247,7 +15253,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$s = er`dss-icon${tr(f$n())}`, r$y =
|
|
|
15247
15253
|
id="datepicker-range-calendar"
|
|
15248
15254
|
class="${Rt(je)}"
|
|
15249
15255
|
.selectedDate="${(Pe = te._inputRangeStart) == null ? void 0 : Pe.value}"
|
|
15250
|
-
.rangeStartDate="${(
|
|
15256
|
+
.rangeStartDate="${(He = te._inputRangeStart) == null ? void 0 : He.value}"
|
|
15251
15257
|
.rangeEndDate="${(We = te._inputRangeEnd) == null ? void 0 : We.value}"
|
|
15252
15258
|
.customCalendar=${te.customCalendar}
|
|
15253
15259
|
.showButtons=${te._calendarShowButtons}
|
|
@@ -31884,13 +31890,13 @@ i$9([
|
|
|
31884
31890
|
r$H()
|
|
31885
31891
|
], t$5.prototype, "defaultValue");
|
|
31886
31892
|
const s$6 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction:column;gap:var(--dss-spacing-xxs);width:100%;max-width:100%}.dss-input-wrapper--sm{gap:var(--dss-spacing-tiny)}.dss-input-icon{color:var(--color-neutral-900)}.dss-input-dropdown-wrapper{width:100%;max-width:100%}.dss-input-group{height:48px;width:100%;max-width:100%;box-sizing:border-box;padding:0 var(--dss-spacing-sm);border:var(--dss-border-width-sm) solid var(--color-neutral-100);border-radius:var(--dss-radius-sm);display:flex;align-items:center;gap:var(--dss-spacing-xs);background-color:var(--color-white);font-family:var(--font-family)}.dss-input-group--read-only{border-top-color:transparent;border-left-color:transparent;border-right-color:transparent;border-radius:0}.dss-input-group:not(.dss-input-group--read-only):focus-within{border-color:transparent;outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.dss-input-group--read-only:focus-within{outline:none;position:relative}.dss-input-group--read-only:focus-within:before{pointer-events:none;content:"";position:absolute;top:100%;left:0;right:0;height:var(--dss-border-width-lg);background-color:var(--color-blue-200)}.dss-input-field{flex:1;min-width:0;display:flex;height:45px;position:relative}.dss-input-group--md{height:40px}.dss-input-group--md .dss-input-field{height:37px}.dss-input-group--sm{height:32px;padding:0 var(--dss-spacing-xs)}.dss-input-group--sm .dss-input-field{height:29px}.dss-wrapper-label label.dss-label{font-size:14px;font-weight:var(--font-semibold);line-height:24px;color:var(--color-neutral-700);background-color:transparent}.dss-wrapper-label.dss-wrapper-label--invalid label.dss-label{color:var(--color-red-500)}.dss-input-wrapper--disabled .dss-wrapper-label label.dss-label{color:var(--color-neutral-500)}.dss-input-field label.dss-label{position:absolute;top:50%;transform:translateY(-50%);left:0;font-size:14px;color:var(--color-neutral-600);transition:all .3s ease-in-out;max-height:24px;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dss-input-field:focus-within label.dss-label,.dss-input-group--focused label.dss-label{font-size:12px;top:0;transform:translateY(0)}.dss-input-group.dss-input-group--focused.dss-input-group--read-only-empty label.dss-label{font-size:14px;top:50%;transform:translateY(-50%)}.dss-input-group--md .dss-input-field:focus-within label.dss-label,.dss-input-group--md.dss-input-group--focused label.dss-label{top:0}.dss-input-field input.dss-input{border:none;height:100%;padding:0;box-sizing:border-box;color:var(--color-neutral-900);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:14px;width:100%;max-width:100%;background-color:transparent}.dss-input-field input.dss-input::-webkit-outer-spin-button,.dss-input-field input.dss-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.dss-input-field input.dss-input[type=number]{-moz-appearance:textfield}.dss-input-field input.dss-input::-moz-placeholder{color:var(--color-neutral-700)}.dss-input-field input.dss-input::-moz-placeholder,.dss-input-field input.dss-input::-ms-input-placeholder,.dss-input-field input.dss-input::placeholder{color:var(--color-neutral-700)}.dss-input-group:not(.dss-input-group--sm) .dss-input-field input.dss-input{padding-top:var(--dss-spacing-md)!important;padding-bottom:0!important}.dss-input-field input.dss-input:-moz-placeholder-shown{border:none;outline:none;height:100%}.dss-input-field input.dss-input:focus-visible,.dss-input-field input.dss-input:placeholder-shown{border:none;outline:none;height:100%}.dss-input-field input.dss-input::-moz-placeholder{color:var(--color-neutral-600)}.dss-input-field input.dss-input::placeholder{color:var(--color-neutral-600)}.dss-input-group--disabled{cursor:not-allowed;background-color:var(--color-neutral-50);color:var(--color-neutral-500)}.dss-input-group--disabled .dss-input-field label.dss-label{cursor:not-allowed!important;color:var(--color-neutral-500)}.dss-input-group--disabled .dss-input-field input.dss-input{cursor:not-allowed!important;background-color:var(--color-neutral-50);color:var(--color-neutral-500)}.dss-input-help{display:flex;justify-content:space-between;font-family:var(--font-family);font-size:12px;color:var(--color-neutral-700);padding:0 var(--dss-spacing-sm)}.dss-input-help--invalid{color:var(--color-red-500)}.dss-input-help--disabled{color:var(--color-neutral-500)}.dss-input-group--invalid:not(.dss-input-group--disabled):not(.dss-input-group--read-only):not(:focus-within){background-color:var(--color-red-50);border-color:var(--color-red-500)}.dss-input-group--invalid.dss-input-group--read-only:not(.dss-input-group--disabled):not(:focus-within){border-bottom-color:var(--color-red-500)}.dss-input-group--invalid:not(.dss-input-group--disabled) .dss-input-field label.dss-label{color:var(--color-red-500)}.dss-input-group--invalid:not(.dss-input-group--disabled):not(.dss-input-group--read-only):not(:focus-within) .dss-input-field input.dss-input{background-color:var(--color-red-50)}.dss-input-wrapper--required label.dss-label:before,.dss-input-group--required label.dss-label:before{content:"*"}.dss-input-numeric-buttons{padding:0;display:flex;flex-direction:column;justify-content:center;transition:all .3s ease-in;height:100%}.dss-input-numeric-buttons .dss-icon-button{display:flex;justify-content:center;text-align:center;width:18px;height:18px;align-items:center;font-size:16px}.dss-input-group.dss-input-group--no-label .dss-input-field input.dss-input{padding-top:0!important;padding-bottom:0!important}.dss-input-wrapper--sm.dss-input-wrapper--no-label{gap:0}.dss-input-unit{font-size:14px;font-weight:var(--font-regular);color:var(--color-neutral-700);margin-top:0;transition:margin var(--animation-delay) ease-in-out}.dss-input-wrapper:not(.dss-input-wrapper--sm):not(.dss-input-wrapper--no-label) .dss-input-group--focused .dss-input-unit{margin-top:14px}.dss-input-group--disabled .dss-input-unit{color:var(--color-neutral-500)}.dss-input-inputPrefix{font-size:14px;font-weight:var(--font-regular);color:var(--color-neutral-700);padding-right:var(--dss-spacing-xxs);opacity:0;visibility:hidden;transition:opacity var(--animation-delay) ease-in-out,visibility var(--animation-delay) ease-in-out}.dss-input-wrapper.dss-input-wrapper--sm .dss-input-inputPrefix{align-self:center}.dss-input-wrapper:not(.dss-input-wrapper--sm) .dss-input-inputPrefix{align-self:flex-end}.dss-input-wrapper.dss-input-wrapper--no-label.dss-input-wrapper--lg .dss-input-inputPrefix{padding-bottom:10px!important}.dss-input-wrapper.dss-input-wrapper--no-label.dss-input-wrapper--md .dss-input-inputPrefix{padding-bottom:6px!important}.dss-input-wrapper.dss-input-wrapper--md:not(.dss-input-wrapper--no-label) .dss-input-inputPrefix{margin-bottom:-2px}.dss-input-wrapper.dss-input-wrapper--lg:not(.dss-input-wrapper--no-label) .dss-input-inputPrefix{padding-bottom:var(--dss-spacing-tiny)!important}.dss-input-wrapper .dss-input-group--focused .dss-input-inputPrefix{opacity:1;visibility:visible}.dss-input-actions{position:relative;padding-left:var(--dss-spacing-xs);display:flex;align-items:center;gap:var(--dss-spacing-xs)}.dss-input-actions:before{content:"";position:absolute;top:50%;left:0;transform:translateY(-50%);height:24px;width:var(--dss-border-width-sm);background-color:var(--color-neutral-500)}.dss-input-tooltip{display:none}.dss-input-tooltip--visible{display:block}', i$8 = ":host{display:block;width:100%;min-width:257px}.dss-datepicker-range{font-family:var(--font-family)}.dss-datepicker-range-inputs{display:grid;grid-template-columns:1fr 1fr;gap:var(--dss-spacing-md)}.dss-datepicker-range-help{font-family:var(--font-family)}.dss-datepicker-range-help{font-family:inherit;font-size:12px;color:var(--color-neutral-700);padding:var(--dss-spacing-xxs) var(--dss-spacing-sm)}.dss-datepicker-range-help--disabled{color:var(--color-neutral-500)}.dss-datepicker-range-help--invalid{color:var(--color-red-500)}.dss-calendar{z-index:999;width:-moz-fit-content;width:fit-content;opacity:0;visibility:hidden;transition:opacity var(--animation-delay) ease-out}.dss-calendar--visible{opacity:1;visibility:visible}", P = er`dss-calendar${tr(f$n())}`, i$7 = er`dss-icon${tr(f$n())}`, l$1 = er`dss-icon-button${tr(f$n())}`, aa = (te) => {
|
|
31887
|
-
var W, X, oe, ne, re, de, ce, ue, pe, he, be, fe, ge, ve, me, _e, ye, Ae, Ce, we, Se, Me, Ie, ze,
|
|
31893
|
+
var W, X, oe, ne, re, de, ce, ue, pe, he, be, fe, ge, ve, me, _e, ye, Ae, Ce, we, Se, Me, Ie, ze, Ue, Le, Oe, qe, Pe, He, We;
|
|
31888
31894
|
const Ge = {
|
|
31889
31895
|
"dss-datepicker-range--sm": te.size !== "lg"
|
|
31890
31896
|
}, Ye = {
|
|
31891
31897
|
"dss-datepicker-range-help--invalid": te.invalid || !((W = te._inputRangeStart) != null && W.validity.valid) && ((X = te._inputRangeStart) == null ? void 0 : X.value) !== "" || !((oe = te._inputRangeEnd) != null && oe.validity.valid) && ((ne = te._inputRangeEnd) == null ? void 0 : ne.value) !== "",
|
|
31892
31898
|
"dss-datepicker-range-help--disabled": ((re = te._inputRangeStart) == null ? void 0 : re.disabled) && ((de = te._inputRangeEnd) == null ? void 0 : de.disabled)
|
|
31893
|
-
},
|
|
31899
|
+
}, bt = {
|
|
31894
31900
|
"dss-input-wrapper": !0,
|
|
31895
31901
|
"dss-input-wrapper--required": (ce = te._inputRangeStart) == null ? void 0 : ce.required,
|
|
31896
31902
|
"dss-input-wrapper--disabled": (ue = te._inputRangeStart) == null ? void 0 : ue.disabled,
|
|
@@ -31921,7 +31927,7 @@ const s$6 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
31921
31927
|
}, je = {
|
|
31922
31928
|
"dss-calendar": !0,
|
|
31923
31929
|
"dss-calendar--visible": te.showCalendar && !((Ie = te._inputRangeStart) != null && Ie.readOnly) && !((ze = te._inputRangeEnd) != null && ze.readOnly),
|
|
31924
|
-
"dss-calendar--disabled": ((
|
|
31930
|
+
"dss-calendar--disabled": ((Ue = te._inputRangeStart) == null ? void 0 : Ue.disabled) && ((Le = te._inputRangeEnd) == null ? void 0 : Le.disabled),
|
|
31925
31931
|
"dss-calendar--sm": te.size !== "lg"
|
|
31926
31932
|
};
|
|
31927
31933
|
return ke`
|
|
@@ -31939,7 +31945,7 @@ const s$6 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
31939
31945
|
aria-haspopup="dialog"
|
|
31940
31946
|
aria-expanded=${to(te.showCalendar)}>
|
|
31941
31947
|
|
|
31942
|
-
<div class="dss-datepicker-range-inputs__start ${Rt(
|
|
31948
|
+
<div class="dss-datepicker-range-inputs__start ${Rt(bt)}">
|
|
31943
31949
|
${te.size === "sm" ? ke`
|
|
31944
31950
|
<div class="${Rt({
|
|
31945
31951
|
"dss-wrapper-label": !0,
|
|
@@ -32062,7 +32068,7 @@ const s$6 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
32062
32068
|
id="datepicker-range-calendar"
|
|
32063
32069
|
class="${Rt(je)}"
|
|
32064
32070
|
.selectedDate="${(Pe = te._inputRangeStart) == null ? void 0 : Pe.value}"
|
|
32065
|
-
.rangeStartDate="${(
|
|
32071
|
+
.rangeStartDate="${(He = te._inputRangeStart) == null ? void 0 : He.value}"
|
|
32066
32072
|
.rangeEndDate="${(We = te._inputRangeEnd) == null ? void 0 : We.value}"
|
|
32067
32073
|
.customCalendar=${te.customCalendar}
|
|
32068
32074
|
.showButtons=${te.showButtons}
|
|
@@ -37897,25 +37903,25 @@ function requireQuill() {
|
|
|
37897
37903
|
}), oe.default = oe.BlockEmbed = oe.bubbleFormats = void 0;
|
|
37898
37904
|
var re = /* @__PURE__ */ (function() {
|
|
37899
37905
|
function Oe(qe, Pe) {
|
|
37900
|
-
for (var
|
|
37901
|
-
var We = Pe[
|
|
37906
|
+
for (var He = 0; He < Pe.length; He++) {
|
|
37907
|
+
var We = Pe[He];
|
|
37902
37908
|
We.enumerable = We.enumerable || !1, We.configurable = !0, "value" in We && (We.writable = !0), Object.defineProperty(qe, We.key, We);
|
|
37903
37909
|
}
|
|
37904
37910
|
}
|
|
37905
|
-
return function(qe, Pe,
|
|
37906
|
-
return Pe && Oe(qe.prototype, Pe),
|
|
37911
|
+
return function(qe, Pe, He) {
|
|
37912
|
+
return Pe && Oe(qe.prototype, Pe), He && Oe(qe, He), qe;
|
|
37907
37913
|
};
|
|
37908
|
-
})(), de = function Oe(qe, Pe,
|
|
37914
|
+
})(), de = function Oe(qe, Pe, He) {
|
|
37909
37915
|
qe === null && (qe = Function.prototype);
|
|
37910
37916
|
var We = Object.getOwnPropertyDescriptor(qe, Pe);
|
|
37911
37917
|
if (We === void 0) {
|
|
37912
37918
|
var Ge = Object.getPrototypeOf(qe);
|
|
37913
|
-
return Ge === null ? void 0 : Oe(Ge, Pe,
|
|
37919
|
+
return Ge === null ? void 0 : Oe(Ge, Pe, He);
|
|
37914
37920
|
} else {
|
|
37915
37921
|
if ("value" in We)
|
|
37916
37922
|
return We.value;
|
|
37917
37923
|
var Ye = We.get;
|
|
37918
|
-
return Ye === void 0 ? void 0 : Ye.call(
|
|
37924
|
+
return Ye === void 0 ? void 0 : Ye.call(He);
|
|
37919
37925
|
}
|
|
37920
37926
|
}, ce = ne(3), ue = Ce(ce), pe = ne(2), he = Ce(pe), be = ne(0), fe = Ce(be), ge = ne(16), ve = Ce(ge), me = ne(6), _e = Ce(me), ye = ne(7), Ae = Ce(ye);
|
|
37921
37927
|
function Ce(Oe) {
|
|
@@ -37952,72 +37958,72 @@ function requireQuill() {
|
|
|
37952
37958
|
}
|
|
37953
37959
|
}, {
|
|
37954
37960
|
key: "format",
|
|
37955
|
-
value: function(
|
|
37956
|
-
var Ge = fe.default.query(
|
|
37961
|
+
value: function(He, We) {
|
|
37962
|
+
var Ge = fe.default.query(He, fe.default.Scope.BLOCK_ATTRIBUTE);
|
|
37957
37963
|
Ge != null && this.attributes.attribute(Ge, We);
|
|
37958
37964
|
}
|
|
37959
37965
|
}, {
|
|
37960
37966
|
key: "formatAt",
|
|
37961
|
-
value: function(
|
|
37967
|
+
value: function(He, We, Ge, Ye) {
|
|
37962
37968
|
this.format(Ge, Ye);
|
|
37963
37969
|
}
|
|
37964
37970
|
}, {
|
|
37965
37971
|
key: "insertAt",
|
|
37966
|
-
value: function(
|
|
37972
|
+
value: function(He, We, Ge) {
|
|
37967
37973
|
if (typeof We == "string" && We.endsWith(`
|
|
37968
37974
|
`)) {
|
|
37969
|
-
var Ye = fe.default.create(
|
|
37970
|
-
this.parent.insertBefore(Ye,
|
|
37975
|
+
var Ye = fe.default.create(Ue.blotName);
|
|
37976
|
+
this.parent.insertBefore(Ye, He === 0 ? this : this.next), Ye.insertAt(0, We.slice(0, -1));
|
|
37971
37977
|
} else
|
|
37972
|
-
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this,
|
|
37978
|
+
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, He, We, Ge);
|
|
37973
37979
|
}
|
|
37974
37980
|
}]), qe;
|
|
37975
37981
|
})(fe.default.Embed);
|
|
37976
37982
|
ze.scope = fe.default.Scope.BLOCK_BLOT;
|
|
37977
|
-
var
|
|
37983
|
+
var Ue = (function(Oe) {
|
|
37978
37984
|
Me(qe, Oe);
|
|
37979
37985
|
function qe(Pe) {
|
|
37980
37986
|
we(this, qe);
|
|
37981
|
-
var
|
|
37982
|
-
return
|
|
37987
|
+
var He = Se(this, (qe.__proto__ || Object.getPrototypeOf(qe)).call(this, Pe));
|
|
37988
|
+
return He.cache = {}, He;
|
|
37983
37989
|
}
|
|
37984
37990
|
return re(qe, [{
|
|
37985
37991
|
key: "delta",
|
|
37986
37992
|
value: function() {
|
|
37987
|
-
return this.cache.delta == null && (this.cache.delta = this.descendants(fe.default.Leaf).reduce(function(
|
|
37988
|
-
return We.length() === 0 ?
|
|
37993
|
+
return this.cache.delta == null && (this.cache.delta = this.descendants(fe.default.Leaf).reduce(function(He, We) {
|
|
37994
|
+
return We.length() === 0 ? He : He.insert(We.value(), Le(We));
|
|
37989
37995
|
}, new he.default()).insert(`
|
|
37990
37996
|
`, Le(this))), this.cache.delta;
|
|
37991
37997
|
}
|
|
37992
37998
|
}, {
|
|
37993
37999
|
key: "deleteAt",
|
|
37994
|
-
value: function(
|
|
37995
|
-
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "deleteAt", this).call(this,
|
|
38000
|
+
value: function(He, We) {
|
|
38001
|
+
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "deleteAt", this).call(this, He, We), this.cache = {};
|
|
37996
38002
|
}
|
|
37997
38003
|
}, {
|
|
37998
38004
|
key: "formatAt",
|
|
37999
|
-
value: function(
|
|
38000
|
-
We <= 0 || (fe.default.query(Ge, fe.default.Scope.BLOCK) ?
|
|
38005
|
+
value: function(He, We, Ge, Ye) {
|
|
38006
|
+
We <= 0 || (fe.default.query(Ge, fe.default.Scope.BLOCK) ? He + We === this.length() && this.format(Ge, Ye) : de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "formatAt", this).call(this, He, Math.min(We, this.length() - He - 1), Ge, Ye), this.cache = {});
|
|
38001
38007
|
}
|
|
38002
38008
|
}, {
|
|
38003
38009
|
key: "insertAt",
|
|
38004
|
-
value: function(
|
|
38005
|
-
if (Ge != null) return de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this,
|
|
38010
|
+
value: function(He, We, Ge) {
|
|
38011
|
+
if (Ge != null) return de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, He, We, Ge);
|
|
38006
38012
|
if (We.length !== 0) {
|
|
38007
38013
|
var Ye = We.split(`
|
|
38008
|
-
`),
|
|
38009
|
-
|
|
38014
|
+
`), bt = Ye.shift();
|
|
38015
|
+
bt.length > 0 && (He < this.length() - 1 || this.children.tail == null ? de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, Math.min(He, this.length() - 1), bt) : this.children.tail.insertAt(this.children.tail.length(), bt), this.cache = {});
|
|
38010
38016
|
var Xe = this;
|
|
38011
38017
|
Ye.reduce(function(Ze, Fe) {
|
|
38012
38018
|
return Xe = Xe.split(Ze, !0), Xe.insertAt(0, Fe), Fe.length;
|
|
38013
|
-
},
|
|
38019
|
+
}, He + bt.length);
|
|
38014
38020
|
}
|
|
38015
38021
|
}
|
|
38016
38022
|
}, {
|
|
38017
38023
|
key: "insertBefore",
|
|
38018
|
-
value: function(
|
|
38024
|
+
value: function(He, We) {
|
|
38019
38025
|
var Ge = this.children.head;
|
|
38020
|
-
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertBefore", this).call(this,
|
|
38026
|
+
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertBefore", this).call(this, He, We), Ge instanceof ve.default && Ge.remove(), this.cache = {};
|
|
38021
38027
|
}
|
|
38022
38028
|
}, {
|
|
38023
38029
|
key: "length",
|
|
@@ -38026,44 +38032,44 @@ function requireQuill() {
|
|
|
38026
38032
|
}
|
|
38027
38033
|
}, {
|
|
38028
38034
|
key: "moveChildren",
|
|
38029
|
-
value: function(
|
|
38030
|
-
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "moveChildren", this).call(this,
|
|
38035
|
+
value: function(He, We) {
|
|
38036
|
+
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "moveChildren", this).call(this, He, We), this.cache = {};
|
|
38031
38037
|
}
|
|
38032
38038
|
}, {
|
|
38033
38039
|
key: "optimize",
|
|
38034
|
-
value: function(
|
|
38035
|
-
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "optimize", this).call(this,
|
|
38040
|
+
value: function(He) {
|
|
38041
|
+
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "optimize", this).call(this, He), this.cache = {};
|
|
38036
38042
|
}
|
|
38037
38043
|
}, {
|
|
38038
38044
|
key: "path",
|
|
38039
|
-
value: function(
|
|
38040
|
-
return de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "path", this).call(this,
|
|
38045
|
+
value: function(He) {
|
|
38046
|
+
return de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "path", this).call(this, He, !0);
|
|
38041
38047
|
}
|
|
38042
38048
|
}, {
|
|
38043
38049
|
key: "removeChild",
|
|
38044
|
-
value: function(
|
|
38045
|
-
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "removeChild", this).call(this,
|
|
38050
|
+
value: function(He) {
|
|
38051
|
+
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "removeChild", this).call(this, He), this.cache = {};
|
|
38046
38052
|
}
|
|
38047
38053
|
}, {
|
|
38048
38054
|
key: "split",
|
|
38049
|
-
value: function(
|
|
38055
|
+
value: function(He) {
|
|
38050
38056
|
var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
38051
|
-
if (We && (
|
|
38057
|
+
if (We && (He === 0 || He >= this.length() - Ie)) {
|
|
38052
38058
|
var Ge = this.clone();
|
|
38053
|
-
return
|
|
38059
|
+
return He === 0 ? (this.parent.insertBefore(Ge, this), this) : (this.parent.insertBefore(Ge, this.next), Ge);
|
|
38054
38060
|
} else {
|
|
38055
|
-
var Ye = de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "split", this).call(this,
|
|
38061
|
+
var Ye = de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "split", this).call(this, He, We);
|
|
38056
38062
|
return this.cache = {}, Ye;
|
|
38057
38063
|
}
|
|
38058
38064
|
}
|
|
38059
38065
|
}]), qe;
|
|
38060
38066
|
})(fe.default.Block);
|
|
38061
|
-
|
|
38067
|
+
Ue.blotName = "block", Ue.tagName = "P", Ue.defaultChild = "break", Ue.allowedChildren = [_e.default, fe.default.Embed, Ae.default];
|
|
38062
38068
|
function Le(Oe) {
|
|
38063
38069
|
var qe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
38064
38070
|
return Oe == null || (typeof Oe.formats == "function" && (qe = (0, ue.default)(qe, Oe.formats())), Oe.parent == null || Oe.parent.blotName == "scroll" || Oe.parent.statics.scope !== Oe.statics.scope) ? qe : Le(Oe.parent, qe);
|
|
38065
38071
|
}
|
|
38066
|
-
oe.bubbleFormats = Le, oe.BlockEmbed = ze, oe.default =
|
|
38072
|
+
oe.bubbleFormats = Le, oe.BlockEmbed = ze, oe.default = Ue;
|
|
38067
38073
|
}),
|
|
38068
38074
|
/* 5 */
|
|
38069
38075
|
/***/
|
|
@@ -38111,7 +38117,7 @@ function requireQuill() {
|
|
|
38111
38117
|
};
|
|
38112
38118
|
})();
|
|
38113
38119
|
ne(51);
|
|
38114
|
-
var ue = ne(2), pe = Le(ue), he = ne(14), be = Le(he), fe = ne(8), ge = Le(fe), ve = ne(9), me = Le(ve), _e = ne(0), ye = Le(_e), Ae = ne(15), Ce = Le(Ae), we = ne(3), Se = Le(we), Me = ne(10), Ie = Le(Me), ze = ne(35),
|
|
38120
|
+
var ue = ne(2), pe = Le(ue), he = ne(14), be = Le(he), fe = ne(8), ge = Le(fe), ve = ne(9), me = Le(ve), _e = ne(0), ye = Le(_e), Ae = ne(15), Ce = Le(Ae), we = ne(3), Se = Le(we), Me = ne(10), Ie = Le(Me), ze = ne(35), Ue = Le(ze);
|
|
38115
38121
|
function Le(Xe) {
|
|
38116
38122
|
return Xe && Xe.__esModule ? Xe : { default: Xe };
|
|
38117
38123
|
}
|
|
@@ -38122,7 +38128,7 @@ function requireQuill() {
|
|
|
38122
38128
|
if (!(Xe instanceof Ze))
|
|
38123
38129
|
throw new TypeError("Cannot call a class as a function");
|
|
38124
38130
|
}
|
|
38125
|
-
var Pe = (0, Ie.default)("quill"),
|
|
38131
|
+
var Pe = (0, Ie.default)("quill"), He = (function() {
|
|
38126
38132
|
ce(Xe, null, [{
|
|
38127
38133
|
key: "debug",
|
|
38128
38134
|
value: function(Fe) {
|
|
@@ -38419,7 +38425,7 @@ function requireQuill() {
|
|
|
38419
38425
|
}
|
|
38420
38426
|
}]), Xe;
|
|
38421
38427
|
})();
|
|
38422
|
-
|
|
38428
|
+
He.DEFAULTS = {
|
|
38423
38429
|
bounds: null,
|
|
38424
38430
|
formats: null,
|
|
38425
38431
|
modules: {},
|
|
@@ -38428,11 +38434,11 @@ function requireQuill() {
|
|
|
38428
38434
|
scrollingContainer: null,
|
|
38429
38435
|
strict: !0,
|
|
38430
38436
|
theme: "default"
|
|
38431
|
-
},
|
|
38437
|
+
}, He.events = ge.default.events, He.sources = ge.default.sources, He.version = "1.3.6", He.imports = {
|
|
38432
38438
|
delta: pe.default,
|
|
38433
38439
|
parchment: ye.default,
|
|
38434
38440
|
"core/module": me.default,
|
|
38435
|
-
"core/theme":
|
|
38441
|
+
"core/theme": Ue.default
|
|
38436
38442
|
};
|
|
38437
38443
|
function We(Xe, Ze) {
|
|
38438
38444
|
if (Ze = (0, Se.default)(!0, {
|
|
@@ -38442,9 +38448,9 @@ function requireQuill() {
|
|
|
38442
38448
|
keyboard: !0,
|
|
38443
38449
|
history: !0
|
|
38444
38450
|
}
|
|
38445
|
-
}, Ze), !Ze.theme || Ze.theme ===
|
|
38446
|
-
Ze.theme =
|
|
38447
|
-
else if (Ze.theme =
|
|
38451
|
+
}, Ze), !Ze.theme || Ze.theme === He.DEFAULTS.theme)
|
|
38452
|
+
Ze.theme = Ue.default;
|
|
38453
|
+
else if (Ze.theme = He.import("themes/" + Ze.theme), Ze.theme == null)
|
|
38448
38454
|
throw new Error("Invalid theme " + Ze.theme + ". Did you register it?");
|
|
38449
38455
|
var Fe = (0, Se.default)(!0, {}, Ze.theme.DEFAULTS);
|
|
38450
38456
|
[Fe, Ze].forEach(function(Qe) {
|
|
@@ -38453,12 +38459,12 @@ function requireQuill() {
|
|
|
38453
38459
|
});
|
|
38454
38460
|
});
|
|
38455
38461
|
var je = Object.keys(Fe.modules).concat(Object.keys(Ze.modules)), Be = je.reduce(function(Qe, tt) {
|
|
38456
|
-
var Ve =
|
|
38462
|
+
var Ve = He.import("modules/" + tt);
|
|
38457
38463
|
return Ve == null ? Pe.error("Cannot load " + tt + " module. Are you sure you registered it?") : Qe[tt] = Ve.DEFAULTS || {}, Qe;
|
|
38458
38464
|
}, {});
|
|
38459
38465
|
return Ze.modules != null && Ze.modules.toolbar && Ze.modules.toolbar.constructor !== Object && (Ze.modules.toolbar = {
|
|
38460
38466
|
container: Ze.modules.toolbar
|
|
38461
|
-
}), Ze = (0, Se.default)(!0, {},
|
|
38467
|
+
}), Ze = (0, Se.default)(!0, {}, He.DEFAULTS, { modules: Be }, Fe, Ze), ["bounds", "container", "scrollingContainer"].forEach(function(Qe) {
|
|
38462
38468
|
typeof Ze[Qe] == "string" && (Ze[Qe] = document.querySelector(Ze[Qe]));
|
|
38463
38469
|
}), Ze.modules = Object.keys(Ze.modules).reduce(function(Qe, tt) {
|
|
38464
38470
|
return Ze.modules[tt] && (Qe[tt] = Ze.modules[tt]), Qe;
|
|
@@ -38468,7 +38474,7 @@ function requireQuill() {
|
|
|
38468
38474
|
if (this.options.strict && !this.isEnabled() && Ze === ge.default.sources.USER)
|
|
38469
38475
|
return new pe.default();
|
|
38470
38476
|
var Be = Fe == null ? null : this.getSelection(), Qe = this.editor.delta, tt = Xe();
|
|
38471
|
-
if (Be != null && (Fe === !0 && (Fe = Be.index), je == null ? Be =
|
|
38477
|
+
if (Be != null && (Fe === !0 && (Fe = Be.index), je == null ? Be = bt(Be, tt, Ze) : je !== 0 && (Be = bt(Be, Fe, je, Ze)), this.setSelection(Be, ge.default.sources.SILENT)), tt.length() > 0) {
|
|
38472
38478
|
var Ve, Je = [ge.default.events.TEXT_CHANGE, tt, Qe, Ze];
|
|
38473
38479
|
if ((Ve = this.emitter).emit.apply(Ve, [ge.default.events.EDITOR_CHANGE].concat(Je)), Ze !== ge.default.sources.SILENT) {
|
|
38474
38480
|
var nt;
|
|
@@ -38481,7 +38487,7 @@ function requireQuill() {
|
|
|
38481
38487
|
var Qe = {};
|
|
38482
38488
|
return typeof Xe.index == "number" && typeof Xe.length == "number" ? typeof Ze != "number" ? (Be = je, je = Fe, Fe = Ze, Ze = Xe.length, Xe = Xe.index) : (Ze = Xe.length, Xe = Xe.index) : typeof Ze != "number" && (Be = je, je = Fe, Fe = Ze, Ze = 0), (typeof Fe > "u" ? "undefined" : re(Fe)) === "object" ? (Qe = Fe, Be = je) : typeof Fe == "string" && (je != null ? Qe[Fe] = je : Be = Fe), Be = Be || ge.default.sources.API, [Xe, Ze, Qe, Be];
|
|
38483
38489
|
}
|
|
38484
|
-
function
|
|
38490
|
+
function bt(Xe, Ze, Fe, je) {
|
|
38485
38491
|
if (Xe == null) return null;
|
|
38486
38492
|
var Be = void 0, Qe = void 0;
|
|
38487
38493
|
if (Ze instanceof pe.default) {
|
|
@@ -38497,7 +38503,7 @@ function requireQuill() {
|
|
|
38497
38503
|
}
|
|
38498
38504
|
return new Ae.Range(Be, Qe - Be);
|
|
38499
38505
|
}
|
|
38500
|
-
oe.expandConfig = We, oe.overload = Ye, oe.default =
|
|
38506
|
+
oe.expandConfig = We, oe.overload = Ye, oe.default = He;
|
|
38501
38507
|
}),
|
|
38502
38508
|
/* 6 */
|
|
38503
38509
|
/***/
|
|
@@ -38631,8 +38637,8 @@ function requireQuill() {
|
|
|
38631
38637
|
var re = /* @__PURE__ */ (function() {
|
|
38632
38638
|
function Se(Me, Ie) {
|
|
38633
38639
|
for (var ze = 0; ze < Ie.length; ze++) {
|
|
38634
|
-
var
|
|
38635
|
-
|
|
38640
|
+
var Ue = Ie[ze];
|
|
38641
|
+
Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Me, Ue.key, Ue);
|
|
38636
38642
|
}
|
|
38637
38643
|
}
|
|
38638
38644
|
return function(Me, Ie, ze) {
|
|
@@ -38640,14 +38646,14 @@ function requireQuill() {
|
|
|
38640
38646
|
};
|
|
38641
38647
|
})(), de = function Se(Me, Ie, ze) {
|
|
38642
38648
|
Me === null && (Me = Function.prototype);
|
|
38643
|
-
var
|
|
38644
|
-
if (
|
|
38649
|
+
var Ue = Object.getOwnPropertyDescriptor(Me, Ie);
|
|
38650
|
+
if (Ue === void 0) {
|
|
38645
38651
|
var Le = Object.getPrototypeOf(Me);
|
|
38646
38652
|
return Le === null ? void 0 : Se(Le, Ie, ze);
|
|
38647
38653
|
} else {
|
|
38648
|
-
if ("value" in
|
|
38649
|
-
return
|
|
38650
|
-
var Oe =
|
|
38654
|
+
if ("value" in Ue)
|
|
38655
|
+
return Ue.value;
|
|
38656
|
+
var Oe = Ue.get;
|
|
38651
38657
|
return Oe === void 0 ? void 0 : Oe.call(ze);
|
|
38652
38658
|
}
|
|
38653
38659
|
}, ce = ne(55), ue = fe(ce), pe = ne(10), he = fe(pe), be = ne(34);
|
|
@@ -38673,8 +38679,8 @@ function requireQuill() {
|
|
|
38673
38679
|
document.addEventListener(Se, function() {
|
|
38674
38680
|
for (var Me = arguments.length, Ie = Array(Me), ze = 0; ze < Me; ze++)
|
|
38675
38681
|
Ie[ze] = arguments[ze];
|
|
38676
|
-
Ae.forEach(function(
|
|
38677
|
-
|
|
38682
|
+
Ae.forEach(function(Ue) {
|
|
38683
|
+
Ue.handleDOM.apply(Ue, Ie);
|
|
38678
38684
|
});
|
|
38679
38685
|
});
|
|
38680
38686
|
});
|
|
@@ -38693,7 +38699,7 @@ function requireQuill() {
|
|
|
38693
38699
|
}, {
|
|
38694
38700
|
key: "handleDOM",
|
|
38695
38701
|
value: function(ze) {
|
|
38696
|
-
for (var
|
|
38702
|
+
for (var Ue = arguments.length, Le = Array(Ue > 1 ? Ue - 1 : 0), Oe = 1; Oe < Ue; Oe++)
|
|
38697
38703
|
Le[Oe - 1] = arguments[Oe];
|
|
38698
38704
|
var qe = ze.composedPath ? ze.composedPath()[0] : ze.target, Pe = function(We, Ge) {
|
|
38699
38705
|
if (!Ce || Ge.getRootNode() === document)
|
|
@@ -38706,15 +38712,15 @@ function requireQuill() {
|
|
|
38706
38712
|
}
|
|
38707
38713
|
return !0;
|
|
38708
38714
|
};
|
|
38709
|
-
(this.listeners[ze.type] || []).forEach(function(
|
|
38710
|
-
var We =
|
|
38715
|
+
(this.listeners[ze.type] || []).forEach(function(He) {
|
|
38716
|
+
var We = He.node, Ge = He.handler;
|
|
38711
38717
|
(qe === We || Pe(We, qe)) && Ge.apply(void 0, [ze].concat(Le));
|
|
38712
38718
|
});
|
|
38713
38719
|
}
|
|
38714
38720
|
}, {
|
|
38715
38721
|
key: "listenDOM",
|
|
38716
|
-
value: function(ze,
|
|
38717
|
-
this.listeners[ze] || (this.listeners[ze] = []), this.listeners[ze].push({ node:
|
|
38722
|
+
value: function(ze, Ue, Le) {
|
|
38723
|
+
this.listeners[ze] || (this.listeners[ze] = []), this.listeners[ze].push({ node: Ue, handler: Le });
|
|
38718
38724
|
}
|
|
38719
38725
|
}]), Me;
|
|
38720
38726
|
})(ue.default);
|
|
@@ -38846,90 +38852,90 @@ function requireQuill() {
|
|
|
38846
38852
|
value: !0
|
|
38847
38853
|
}), oe.default = oe.Code = void 0;
|
|
38848
38854
|
var re = /* @__PURE__ */ (function() {
|
|
38849
|
-
function ze(
|
|
38850
|
-
var Oe = [], qe = !0, Pe = !1,
|
|
38855
|
+
function ze(Ue, Le) {
|
|
38856
|
+
var Oe = [], qe = !0, Pe = !1, He = void 0;
|
|
38851
38857
|
try {
|
|
38852
|
-
for (var We =
|
|
38858
|
+
for (var We = Ue[Symbol.iterator](), Ge; !(qe = (Ge = We.next()).done) && (Oe.push(Ge.value), !(Le && Oe.length === Le)); qe = !0)
|
|
38853
38859
|
;
|
|
38854
38860
|
} catch (Ye) {
|
|
38855
|
-
Pe = !0,
|
|
38861
|
+
Pe = !0, He = Ye;
|
|
38856
38862
|
} finally {
|
|
38857
38863
|
try {
|
|
38858
38864
|
!qe && We.return && We.return();
|
|
38859
38865
|
} finally {
|
|
38860
|
-
if (Pe) throw
|
|
38866
|
+
if (Pe) throw He;
|
|
38861
38867
|
}
|
|
38862
38868
|
}
|
|
38863
38869
|
return Oe;
|
|
38864
38870
|
}
|
|
38865
|
-
return function(
|
|
38866
|
-
if (Array.isArray(
|
|
38867
|
-
return
|
|
38868
|
-
if (Symbol.iterator in Object(
|
|
38869
|
-
return ze(
|
|
38871
|
+
return function(Ue, Le) {
|
|
38872
|
+
if (Array.isArray(Ue))
|
|
38873
|
+
return Ue;
|
|
38874
|
+
if (Symbol.iterator in Object(Ue))
|
|
38875
|
+
return ze(Ue, Le);
|
|
38870
38876
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
38871
38877
|
};
|
|
38872
38878
|
})(), de = /* @__PURE__ */ (function() {
|
|
38873
|
-
function ze(
|
|
38879
|
+
function ze(Ue, Le) {
|
|
38874
38880
|
for (var Oe = 0; Oe < Le.length; Oe++) {
|
|
38875
38881
|
var qe = Le[Oe];
|
|
38876
|
-
qe.enumerable = qe.enumerable || !1, qe.configurable = !0, "value" in qe && (qe.writable = !0), Object.defineProperty(
|
|
38882
|
+
qe.enumerable = qe.enumerable || !1, qe.configurable = !0, "value" in qe && (qe.writable = !0), Object.defineProperty(Ue, qe.key, qe);
|
|
38877
38883
|
}
|
|
38878
38884
|
}
|
|
38879
|
-
return function(
|
|
38880
|
-
return Le && ze(
|
|
38885
|
+
return function(Ue, Le, Oe) {
|
|
38886
|
+
return Le && ze(Ue.prototype, Le), Oe && ze(Ue, Oe), Ue;
|
|
38881
38887
|
};
|
|
38882
|
-
})(), ce = function ze(
|
|
38883
|
-
|
|
38884
|
-
var qe = Object.getOwnPropertyDescriptor(
|
|
38888
|
+
})(), ce = function ze(Ue, Le, Oe) {
|
|
38889
|
+
Ue === null && (Ue = Function.prototype);
|
|
38890
|
+
var qe = Object.getOwnPropertyDescriptor(Ue, Le);
|
|
38885
38891
|
if (qe === void 0) {
|
|
38886
|
-
var Pe = Object.getPrototypeOf(
|
|
38892
|
+
var Pe = Object.getPrototypeOf(Ue);
|
|
38887
38893
|
return Pe === null ? void 0 : ze(Pe, Le, Oe);
|
|
38888
38894
|
} else {
|
|
38889
38895
|
if ("value" in qe)
|
|
38890
38896
|
return qe.value;
|
|
38891
|
-
var
|
|
38892
|
-
return
|
|
38897
|
+
var He = qe.get;
|
|
38898
|
+
return He === void 0 ? void 0 : He.call(Oe);
|
|
38893
38899
|
}
|
|
38894
38900
|
}, ue = ne(2), pe = Ae(ue), he = ne(0), be = Ae(he), fe = ne(4), ge = Ae(fe), ve = ne(6), me = Ae(ve), _e = ne(7), ye = Ae(_e);
|
|
38895
38901
|
function Ae(ze) {
|
|
38896
38902
|
return ze && ze.__esModule ? ze : { default: ze };
|
|
38897
38903
|
}
|
|
38898
|
-
function Ce(ze,
|
|
38899
|
-
if (!(ze instanceof
|
|
38904
|
+
function Ce(ze, Ue) {
|
|
38905
|
+
if (!(ze instanceof Ue))
|
|
38900
38906
|
throw new TypeError("Cannot call a class as a function");
|
|
38901
38907
|
}
|
|
38902
|
-
function we(ze,
|
|
38908
|
+
function we(ze, Ue) {
|
|
38903
38909
|
if (!ze)
|
|
38904
38910
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
38905
|
-
return
|
|
38911
|
+
return Ue && (typeof Ue == "object" || typeof Ue == "function") ? Ue : ze;
|
|
38906
38912
|
}
|
|
38907
|
-
function Se(ze,
|
|
38908
|
-
if (typeof
|
|
38909
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
38910
|
-
ze.prototype = Object.create(
|
|
38913
|
+
function Se(ze, Ue) {
|
|
38914
|
+
if (typeof Ue != "function" && Ue !== null)
|
|
38915
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof Ue);
|
|
38916
|
+
ze.prototype = Object.create(Ue && Ue.prototype, { constructor: { value: ze, enumerable: !1, writable: !0, configurable: !0 } }), Ue && (Object.setPrototypeOf ? Object.setPrototypeOf(ze, Ue) : ze.__proto__ = Ue);
|
|
38911
38917
|
}
|
|
38912
38918
|
var Me = (function(ze) {
|
|
38913
|
-
Se(
|
|
38914
|
-
function
|
|
38915
|
-
return Ce(this,
|
|
38919
|
+
Se(Ue, ze);
|
|
38920
|
+
function Ue() {
|
|
38921
|
+
return Ce(this, Ue), we(this, (Ue.__proto__ || Object.getPrototypeOf(Ue)).apply(this, arguments));
|
|
38916
38922
|
}
|
|
38917
|
-
return
|
|
38923
|
+
return Ue;
|
|
38918
38924
|
})(me.default);
|
|
38919
38925
|
Me.blotName = "code", Me.tagName = "CODE";
|
|
38920
38926
|
var Ie = (function(ze) {
|
|
38921
|
-
Se(
|
|
38922
|
-
function
|
|
38923
|
-
return Ce(this,
|
|
38927
|
+
Se(Ue, ze);
|
|
38928
|
+
function Ue() {
|
|
38929
|
+
return Ce(this, Ue), we(this, (Ue.__proto__ || Object.getPrototypeOf(Ue)).apply(this, arguments));
|
|
38924
38930
|
}
|
|
38925
|
-
return de(
|
|
38931
|
+
return de(Ue, [{
|
|
38926
38932
|
key: "delta",
|
|
38927
38933
|
value: function() {
|
|
38928
38934
|
var Oe = this, qe = this.domNode.textContent;
|
|
38929
38935
|
return qe.endsWith(`
|
|
38930
38936
|
`) && (qe = qe.slice(0, -1)), qe.split(`
|
|
38931
|
-
`).reduce(function(Pe,
|
|
38932
|
-
return Pe.insert(
|
|
38937
|
+
`).reduce(function(Pe, He) {
|
|
38938
|
+
return Pe.insert(He).insert(`
|
|
38933
38939
|
`, Oe.formats());
|
|
38934
38940
|
}, new pe.default());
|
|
38935
38941
|
}
|
|
@@ -38937,18 +38943,18 @@ function requireQuill() {
|
|
|
38937
38943
|
key: "format",
|
|
38938
38944
|
value: function(Oe, qe) {
|
|
38939
38945
|
if (!(Oe === this.statics.blotName && qe)) {
|
|
38940
|
-
var Pe = this.descendant(ye.default, this.length() - 1),
|
|
38941
|
-
We?.deleteAt(We.length() - 1, 1), ce(
|
|
38946
|
+
var Pe = this.descendant(ye.default, this.length() - 1), He = re(Pe, 1), We = He[0];
|
|
38947
|
+
We?.deleteAt(We.length() - 1, 1), ce(Ue.prototype.__proto__ || Object.getPrototypeOf(Ue.prototype), "format", this).call(this, Oe, qe);
|
|
38942
38948
|
}
|
|
38943
38949
|
}
|
|
38944
38950
|
}, {
|
|
38945
38951
|
key: "formatAt",
|
|
38946
|
-
value: function(Oe, qe, Pe,
|
|
38947
|
-
if (qe !== 0 && !(be.default.query(Pe, be.default.Scope.BLOCK) == null || Pe === this.statics.blotName &&
|
|
38952
|
+
value: function(Oe, qe, Pe, He) {
|
|
38953
|
+
if (qe !== 0 && !(be.default.query(Pe, be.default.Scope.BLOCK) == null || Pe === this.statics.blotName && He === this.statics.formats(this.domNode))) {
|
|
38948
38954
|
var We = this.newlineIndex(Oe);
|
|
38949
38955
|
if (!(We < 0 || We >= Oe + qe)) {
|
|
38950
|
-
var Ge = this.newlineIndex(Oe, !0) + 1, Ye = We - Ge + 1,
|
|
38951
|
-
|
|
38956
|
+
var Ge = this.newlineIndex(Oe, !0) + 1, Ye = We - Ge + 1, bt = this.isolate(Ge, Ye), Xe = bt.next;
|
|
38957
|
+
bt.format(Pe, He), Xe instanceof Ue && Xe.formatAt(0, Oe - Ge + qe - Ye, Pe, He);
|
|
38952
38958
|
}
|
|
38953
38959
|
}
|
|
38954
38960
|
}
|
|
@@ -38956,7 +38962,7 @@ function requireQuill() {
|
|
|
38956
38962
|
key: "insertAt",
|
|
38957
38963
|
value: function(Oe, qe, Pe) {
|
|
38958
38964
|
if (Pe == null) {
|
|
38959
|
-
var
|
|
38965
|
+
var He = this.descendant(ye.default, Oe), We = re(He, 2), Ge = We[0], Ye = We[1];
|
|
38960
38966
|
Ge.insertAt(Ye, qe);
|
|
38961
38967
|
}
|
|
38962
38968
|
}
|
|
@@ -38983,14 +38989,14 @@ function requireQuill() {
|
|
|
38983
38989
|
value: function(Oe) {
|
|
38984
38990
|
this.domNode.textContent.endsWith(`
|
|
38985
38991
|
`) || this.appendChild(be.default.create("text", `
|
|
38986
|
-
`)), ce(
|
|
38992
|
+
`)), ce(Ue.prototype.__proto__ || Object.getPrototypeOf(Ue.prototype), "optimize", this).call(this, Oe);
|
|
38987
38993
|
var qe = this.next;
|
|
38988
38994
|
qe != null && qe.prev === this && qe.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === qe.statics.formats(qe.domNode) && (qe.optimize(Oe), qe.moveChildren(this), qe.remove());
|
|
38989
38995
|
}
|
|
38990
38996
|
}, {
|
|
38991
38997
|
key: "replace",
|
|
38992
38998
|
value: function(Oe) {
|
|
38993
|
-
ce(
|
|
38999
|
+
ce(Ue.prototype.__proto__ || Object.getPrototypeOf(Ue.prototype), "replace", this).call(this, Oe), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(qe) {
|
|
38994
39000
|
var Pe = be.default.find(qe);
|
|
38995
39001
|
Pe == null ? qe.parentNode.removeChild(qe) : Pe instanceof be.default.Embed ? Pe.remove() : Pe.unwrap();
|
|
38996
39002
|
});
|
|
@@ -38998,7 +39004,7 @@ function requireQuill() {
|
|
|
38998
39004
|
}], [{
|
|
38999
39005
|
key: "create",
|
|
39000
39006
|
value: function(Oe) {
|
|
39001
|
-
var qe = ce(
|
|
39007
|
+
var qe = ce(Ue.__proto__ || Object.getPrototypeOf(Ue), "create", this).call(this, Oe);
|
|
39002
39008
|
return qe.setAttribute("spellcheck", !1), qe;
|
|
39003
39009
|
}
|
|
39004
39010
|
}, {
|
|
@@ -39006,7 +39012,7 @@ function requireQuill() {
|
|
|
39006
39012
|
value: function() {
|
|
39007
39013
|
return !0;
|
|
39008
39014
|
}
|
|
39009
|
-
}]),
|
|
39015
|
+
}]), Ue;
|
|
39010
39016
|
})(ge.default);
|
|
39011
39017
|
Ie.blotName = "code-block", Ie.tagName = "PRE", Ie.TAB = " ", oe.Code = Me, oe.default = Ie;
|
|
39012
39018
|
}),
|
|
@@ -39054,20 +39060,20 @@ function requireQuill() {
|
|
|
39054
39060
|
return function(Ze, Fe, je) {
|
|
39055
39061
|
return Fe && Xe(Ze.prototype, Fe), je && Xe(Ze, je), Ze;
|
|
39056
39062
|
};
|
|
39057
|
-
})(), ue = ne(2), pe = qe(ue), he = ne(20), be = qe(he), fe = ne(0), ge = qe(fe), ve = ne(13), me = qe(ve), _e = ne(24), ye = qe(_e), Ae = ne(4), Ce = qe(Ae), we = ne(16), Se = qe(we), Me = ne(21), Ie = qe(Me), ze = ne(11),
|
|
39063
|
+
})(), ue = ne(2), pe = qe(ue), he = ne(20), be = qe(he), fe = ne(0), ge = qe(fe), ve = ne(13), me = qe(ve), _e = ne(24), ye = qe(_e), Ae = ne(4), Ce = qe(Ae), we = ne(16), Se = qe(we), Me = ne(21), Ie = qe(Me), ze = ne(11), Ue = qe(ze), Le = ne(3), Oe = qe(Le);
|
|
39058
39064
|
function qe(Xe) {
|
|
39059
39065
|
return Xe && Xe.__esModule ? Xe : { default: Xe };
|
|
39060
39066
|
}
|
|
39061
39067
|
function Pe(Xe, Ze, Fe) {
|
|
39062
39068
|
return Ze in Xe ? Object.defineProperty(Xe, Ze, { value: Fe, enumerable: !0, configurable: !0, writable: !0 }) : Xe[Ze] = Fe, Xe;
|
|
39063
39069
|
}
|
|
39064
|
-
function
|
|
39070
|
+
function He(Xe, Ze) {
|
|
39065
39071
|
if (!(Xe instanceof Ze))
|
|
39066
39072
|
throw new TypeError("Cannot call a class as a function");
|
|
39067
39073
|
}
|
|
39068
39074
|
var We = /^[ -~]*$/, Ge = (function() {
|
|
39069
39075
|
function Xe(Ze) {
|
|
39070
|
-
|
|
39076
|
+
He(this, Xe), this.scroll = Ze, this.delta = this.getDelta();
|
|
39071
39077
|
}
|
|
39072
39078
|
return ce(Xe, [{
|
|
39073
39079
|
key: "applyDelta",
|
|
@@ -39075,7 +39081,7 @@ function requireQuill() {
|
|
|
39075
39081
|
var je = this, Be = !1;
|
|
39076
39082
|
this.scroll.update();
|
|
39077
39083
|
var Qe = this.scroll.length();
|
|
39078
|
-
return this.scroll.batchStart(), Fe =
|
|
39084
|
+
return this.scroll.batchStart(), Fe = bt(Fe), Fe.reduce(function(tt, Ve) {
|
|
39079
39085
|
var Je = Ve.retain || Ve.delete || Ve.insert.length || 1, nt = Ve.attributes || {};
|
|
39080
39086
|
if (Ve.insert != null) {
|
|
39081
39087
|
if (typeof Ve.insert == "string") {
|
|
@@ -39218,7 +39224,7 @@ function requireQuill() {
|
|
|
39218
39224
|
return It.insert ? Pt.insert(It.insert, Ve) : Pt.push(It);
|
|
39219
39225
|
}, new pe.default()), this.delta = Qe.compose(Fe);
|
|
39220
39226
|
} else
|
|
39221
|
-
this.delta = this.getDelta(), (!Fe || !(0,
|
|
39227
|
+
this.delta = this.getDelta(), (!Fe || !(0, Ue.default)(Qe.compose(Fe), this.delta)) && (Fe = Qe.diff(this.delta, Be));
|
|
39222
39228
|
return Fe;
|
|
39223
39229
|
}
|
|
39224
39230
|
}]), Xe;
|
|
@@ -39228,7 +39234,7 @@ function requireQuill() {
|
|
|
39228
39234
|
return Xe[je] == null || (Ze[je] === Xe[je] ? Fe[je] = Ze[je] : Array.isArray(Ze[je]) ? Ze[je].indexOf(Xe[je]) < 0 && (Fe[je] = Ze[je].concat([Xe[je]])) : Fe[je] = [Ze[je], Xe[je]]), Fe;
|
|
39229
39235
|
}, {});
|
|
39230
39236
|
}
|
|
39231
|
-
function
|
|
39237
|
+
function bt(Xe) {
|
|
39232
39238
|
return Xe.reduce(function(Ze, Fe) {
|
|
39233
39239
|
if (Fe.insert === 1) {
|
|
39234
39240
|
var je = (0, Ie.default)(Fe.attributes);
|
|
@@ -39252,18 +39258,18 @@ function requireQuill() {
|
|
|
39252
39258
|
value: !0
|
|
39253
39259
|
}), oe.default = oe.Range = void 0;
|
|
39254
39260
|
var re = /* @__PURE__ */ (function() {
|
|
39255
|
-
function
|
|
39256
|
-
var qe = [], Pe = !0,
|
|
39261
|
+
function Ue(Le, Oe) {
|
|
39262
|
+
var qe = [], Pe = !0, He = !1, We = void 0;
|
|
39257
39263
|
try {
|
|
39258
39264
|
for (var Ge = Le[Symbol.iterator](), Ye; !(Pe = (Ye = Ge.next()).done) && (qe.push(Ye.value), !(Oe && qe.length === Oe)); Pe = !0)
|
|
39259
39265
|
;
|
|
39260
|
-
} catch (
|
|
39261
|
-
|
|
39266
|
+
} catch (bt) {
|
|
39267
|
+
He = !0, We = bt;
|
|
39262
39268
|
} finally {
|
|
39263
39269
|
try {
|
|
39264
39270
|
!Pe && Ge.return && Ge.return();
|
|
39265
39271
|
} finally {
|
|
39266
|
-
if (
|
|
39272
|
+
if (He) throw We;
|
|
39267
39273
|
}
|
|
39268
39274
|
}
|
|
39269
39275
|
return qe;
|
|
@@ -39272,45 +39278,45 @@ function requireQuill() {
|
|
|
39272
39278
|
if (Array.isArray(Le))
|
|
39273
39279
|
return Le;
|
|
39274
39280
|
if (Symbol.iterator in Object(Le))
|
|
39275
|
-
return
|
|
39281
|
+
return Ue(Le, Oe);
|
|
39276
39282
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
39277
39283
|
};
|
|
39278
39284
|
})(), de = /* @__PURE__ */ (function() {
|
|
39279
|
-
function
|
|
39285
|
+
function Ue(Le, Oe) {
|
|
39280
39286
|
for (var qe = 0; qe < Oe.length; qe++) {
|
|
39281
39287
|
var Pe = Oe[qe];
|
|
39282
39288
|
Pe.enumerable = Pe.enumerable || !1, Pe.configurable = !0, "value" in Pe && (Pe.writable = !0), Object.defineProperty(Le, Pe.key, Pe);
|
|
39283
39289
|
}
|
|
39284
39290
|
}
|
|
39285
39291
|
return function(Le, Oe, qe) {
|
|
39286
|
-
return Oe &&
|
|
39292
|
+
return Oe && Ue(Le.prototype, Oe), qe && Ue(Le, qe), Le;
|
|
39287
39293
|
};
|
|
39288
39294
|
})(), ce = ne(0), ue = Ae(ce), pe = ne(21), he = Ae(pe), be = ne(11), fe = Ae(be), ge = ne(8), ve = Ae(ge), me = ne(10), _e = Ae(me), ye = ne(34);
|
|
39289
|
-
function Ae(
|
|
39290
|
-
return
|
|
39295
|
+
function Ae(Ue) {
|
|
39296
|
+
return Ue && Ue.__esModule ? Ue : { default: Ue };
|
|
39291
39297
|
}
|
|
39292
|
-
function Ce(
|
|
39293
|
-
if (Array.isArray(
|
|
39294
|
-
for (var Le = 0, Oe = Array(
|
|
39295
|
-
Oe[Le] =
|
|
39298
|
+
function Ce(Ue) {
|
|
39299
|
+
if (Array.isArray(Ue)) {
|
|
39300
|
+
for (var Le = 0, Oe = Array(Ue.length); Le < Ue.length; Le++)
|
|
39301
|
+
Oe[Le] = Ue[Le];
|
|
39296
39302
|
return Oe;
|
|
39297
39303
|
} else
|
|
39298
|
-
return Array.from(
|
|
39304
|
+
return Array.from(Ue);
|
|
39299
39305
|
}
|
|
39300
|
-
function we(
|
|
39301
|
-
if (!(
|
|
39306
|
+
function we(Ue, Le) {
|
|
39307
|
+
if (!(Ue instanceof Le))
|
|
39302
39308
|
throw new TypeError("Cannot call a class as a function");
|
|
39303
39309
|
}
|
|
39304
|
-
var Se = (0, _e.default)("quill:selection"), Me = function
|
|
39310
|
+
var Se = (0, _e.default)("quill:selection"), Me = function Ue(Le) {
|
|
39305
39311
|
var Oe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
39306
|
-
we(this,
|
|
39312
|
+
we(this, Ue), this.index = Le, this.length = Oe;
|
|
39307
39313
|
}, Ie = (function() {
|
|
39308
|
-
function
|
|
39314
|
+
function Ue(Le, Oe) {
|
|
39309
39315
|
var qe = this;
|
|
39310
|
-
we(this,
|
|
39316
|
+
we(this, Ue), this.emitter = Oe, this.scroll = Le, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.rootDocument = this.root.getRootNode ? this.root.getRootNode() : document, this.cursor = ue.default.create("cursor", this), this.lastRange = this.savedRange = new Me(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM(ye.SHADOW_SELECTIONCHANGE, document, function() {
|
|
39311
39317
|
qe.mouseDown || setTimeout(qe.update.bind(qe, ve.default.sources.USER), 1);
|
|
39312
|
-
}), this.emitter.on(ve.default.events.EDITOR_CHANGE, function(Pe,
|
|
39313
|
-
Pe === ve.default.events.TEXT_CHANGE &&
|
|
39318
|
+
}), this.emitter.on(ve.default.events.EDITOR_CHANGE, function(Pe, He) {
|
|
39319
|
+
Pe === ve.default.events.TEXT_CHANGE && He.length() > 0 && qe.update(ve.default.sources.SILENT);
|
|
39314
39320
|
}), this.emitter.on(ve.default.events.SCROLL_BEFORE_UPDATE, function() {
|
|
39315
39321
|
if (qe.hasFocus()) {
|
|
39316
39322
|
var Pe = qe.getNativeRange();
|
|
@@ -39321,14 +39327,14 @@ function requireQuill() {
|
|
|
39321
39327
|
}
|
|
39322
39328
|
});
|
|
39323
39329
|
}
|
|
39324
|
-
}), this.emitter.on(ve.default.events.SCROLL_OPTIMIZE, function(Pe,
|
|
39325
|
-
if (
|
|
39326
|
-
var We =
|
|
39327
|
-
qe.setNativeRange(Ge, Ye,
|
|
39330
|
+
}), this.emitter.on(ve.default.events.SCROLL_OPTIMIZE, function(Pe, He) {
|
|
39331
|
+
if (He.range) {
|
|
39332
|
+
var We = He.range, Ge = We.startNode, Ye = We.startOffset, bt = We.endNode, Xe = We.endOffset;
|
|
39333
|
+
qe.setNativeRange(Ge, Ye, bt, Xe);
|
|
39328
39334
|
}
|
|
39329
39335
|
}), this.update(ve.default.sources.SILENT);
|
|
39330
39336
|
}
|
|
39331
|
-
return de(
|
|
39337
|
+
return de(Ue, [{
|
|
39332
39338
|
key: "handleComposition",
|
|
39333
39339
|
value: function() {
|
|
39334
39340
|
var Oe = this;
|
|
@@ -39367,13 +39373,13 @@ function requireQuill() {
|
|
|
39367
39373
|
var Pe = this.getNativeRange();
|
|
39368
39374
|
if (!(Pe == null || !Pe.native.collapsed || ue.default.query(Oe, ue.default.Scope.BLOCK))) {
|
|
39369
39375
|
if (Pe.start.node !== this.cursor.textNode) {
|
|
39370
|
-
var
|
|
39371
|
-
if (
|
|
39372
|
-
if (
|
|
39373
|
-
var We =
|
|
39374
|
-
|
|
39376
|
+
var He = ue.default.find(Pe.start.node, !1);
|
|
39377
|
+
if (He == null) return;
|
|
39378
|
+
if (He instanceof ue.default.Leaf) {
|
|
39379
|
+
var We = He.split(Pe.start.offset);
|
|
39380
|
+
He.parent.insertBefore(this.cursor, We);
|
|
39375
39381
|
} else
|
|
39376
|
-
|
|
39382
|
+
He.insertBefore(this.cursor, Pe.start.node);
|
|
39377
39383
|
this.cursor.attach();
|
|
39378
39384
|
}
|
|
39379
39385
|
this.cursor.format(Oe, qe), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
|
|
@@ -39385,20 +39391,20 @@ function requireQuill() {
|
|
|
39385
39391
|
value: function(Oe) {
|
|
39386
39392
|
var qe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Pe = this.scroll.length();
|
|
39387
39393
|
Oe = Math.min(Oe, Pe - 1), qe = Math.min(Oe + qe, Pe - 1) - Oe;
|
|
39388
|
-
var
|
|
39394
|
+
var He = void 0, We = this.scroll.leaf(Oe), Ge = re(We, 2), Ye = Ge[0], bt = Ge[1];
|
|
39389
39395
|
if (Ye == null) return null;
|
|
39390
|
-
var Xe = Ye.position(
|
|
39391
|
-
|
|
39396
|
+
var Xe = Ye.position(bt, !0), Ze = re(Xe, 2);
|
|
39397
|
+
He = Ze[0], bt = Ze[1];
|
|
39392
39398
|
var Fe = document.createRange();
|
|
39393
39399
|
if (qe > 0) {
|
|
39394
|
-
Fe.setStart(
|
|
39400
|
+
Fe.setStart(He, bt);
|
|
39395
39401
|
var je = this.scroll.leaf(Oe + qe), Be = re(je, 2);
|
|
39396
|
-
if (Ye = Be[0],
|
|
39397
|
-
var Qe = Ye.position(
|
|
39398
|
-
return
|
|
39402
|
+
if (Ye = Be[0], bt = Be[1], Ye == null) return null;
|
|
39403
|
+
var Qe = Ye.position(bt, !0), tt = re(Qe, 2);
|
|
39404
|
+
return He = tt[0], bt = tt[1], Fe.setEnd(He, bt), Fe.getBoundingClientRect();
|
|
39399
39405
|
} else {
|
|
39400
39406
|
var Ve = "left", Je = void 0;
|
|
39401
|
-
return
|
|
39407
|
+
return He instanceof Text ? (bt < He.data.length ? (Fe.setStart(He, bt), Fe.setEnd(He, bt + 1)) : (Fe.setStart(He, bt - 1), Fe.setEnd(He, bt), Ve = "right"), Je = Fe.getBoundingClientRect()) : (Je = Ye.domNode.getBoundingClientRect(), bt > 0 && (Ve = "right")), {
|
|
39402
39408
|
bottom: Je.top + Je.height,
|
|
39403
39409
|
height: Je.height,
|
|
39404
39410
|
left: Je[Ve],
|
|
@@ -39434,10 +39440,10 @@ function requireQuill() {
|
|
|
39434
39440
|
value: function(Oe) {
|
|
39435
39441
|
var qe = this, Pe = [[Oe.start.node, Oe.start.offset]];
|
|
39436
39442
|
Oe.native.collapsed || Pe.push([Oe.end.node, Oe.end.offset]);
|
|
39437
|
-
var
|
|
39438
|
-
var
|
|
39443
|
+
var He = Pe.map(function(Ye) {
|
|
39444
|
+
var bt = re(Ye, 2), Xe = bt[0], Ze = bt[1], Fe = ue.default.find(Xe, !0), je = Fe.offset(qe.scroll);
|
|
39439
39445
|
return Ze === 0 ? je : Fe instanceof ue.default.Container ? je + Fe.length() : je + Fe.index(Xe, Ze);
|
|
39440
|
-
}), We = Math.min(Math.max.apply(Math, Ce(
|
|
39446
|
+
}), We = Math.min(Math.max.apply(Math, Ce(He)), this.scroll.length() - 1), Ge = Math.min.apply(Math, [We].concat(Ce(He)));
|
|
39441
39447
|
return new Me(Ge, We - Ge);
|
|
39442
39448
|
}
|
|
39443
39449
|
}, {
|
|
@@ -39451,25 +39457,25 @@ function requireQuill() {
|
|
|
39451
39457
|
native: Oe
|
|
39452
39458
|
};
|
|
39453
39459
|
return [qe.start, qe.end].forEach(function(Pe) {
|
|
39454
|
-
for (var
|
|
39455
|
-
if (
|
|
39456
|
-
|
|
39457
|
-
else if (
|
|
39458
|
-
|
|
39460
|
+
for (var He = Pe.node, We = Pe.offset; !(He instanceof Text) && He.childNodes.length > 0; )
|
|
39461
|
+
if (He.childNodes.length > We)
|
|
39462
|
+
He = He.childNodes[We], We = 0;
|
|
39463
|
+
else if (He.childNodes.length === We)
|
|
39464
|
+
He = He.lastChild, We = He instanceof Text ? He.data.length : He.childNodes.length + 1;
|
|
39459
39465
|
else
|
|
39460
39466
|
break;
|
|
39461
|
-
Pe.node =
|
|
39467
|
+
Pe.node = He, Pe.offset = We;
|
|
39462
39468
|
}), qe;
|
|
39463
39469
|
}
|
|
39464
39470
|
}, {
|
|
39465
39471
|
key: "rangeToNative",
|
|
39466
39472
|
value: function(Oe) {
|
|
39467
|
-
var qe = this, Pe = Oe.collapsed ? [Oe.index] : [Oe.index, Oe.index + Oe.length],
|
|
39473
|
+
var qe = this, Pe = Oe.collapsed ? [Oe.index] : [Oe.index, Oe.index + Oe.length], He = [], We = this.scroll.length();
|
|
39468
39474
|
return Pe.forEach(function(Ge, Ye) {
|
|
39469
39475
|
Ge = Math.min(We - 1, Ge);
|
|
39470
|
-
var
|
|
39471
|
-
|
|
39472
|
-
}),
|
|
39476
|
+
var bt = void 0, Xe = qe.scroll.leaf(Ge), Ze = re(Xe, 2), Fe = Ze[0], je = Ze[1], Be = Fe.position(je, Ye !== 0), Qe = re(Be, 2);
|
|
39477
|
+
bt = Qe[0], je = Qe[1], He.push(bt, je);
|
|
39478
|
+
}), He.length < 2 && (He = He.concat(He)), He;
|
|
39473
39479
|
}
|
|
39474
39480
|
}, {
|
|
39475
39481
|
key: "scrollIntoView",
|
|
@@ -39478,12 +39484,12 @@ function requireQuill() {
|
|
|
39478
39484
|
if (qe != null) {
|
|
39479
39485
|
var Pe = this.getBounds(qe.index, qe.length);
|
|
39480
39486
|
if (Pe != null) {
|
|
39481
|
-
var
|
|
39487
|
+
var He = this.scroll.length() - 1, We = this.scroll.line(Math.min(qe.index, He)), Ge = re(We, 1), Ye = Ge[0], bt = Ye;
|
|
39482
39488
|
if (qe.length > 0) {
|
|
39483
|
-
var Xe = this.scroll.line(Math.min(qe.index + qe.length,
|
|
39484
|
-
|
|
39489
|
+
var Xe = this.scroll.line(Math.min(qe.index + qe.length, He)), Ze = re(Xe, 1);
|
|
39490
|
+
bt = Ze[0];
|
|
39485
39491
|
}
|
|
39486
|
-
if (!(Ye == null ||
|
|
39492
|
+
if (!(Ye == null || bt == null)) {
|
|
39487
39493
|
var Fe = Oe.getBoundingClientRect();
|
|
39488
39494
|
Pe.top < Fe.top ? Oe.scrollTop -= Fe.top - Pe.top : Pe.bottom > Fe.bottom && (Oe.scrollTop += Pe.bottom - Fe.bottom);
|
|
39489
39495
|
}
|
|
@@ -39493,17 +39499,17 @@ function requireQuill() {
|
|
|
39493
39499
|
}, {
|
|
39494
39500
|
key: "setNativeRange",
|
|
39495
39501
|
value: function(Oe, qe) {
|
|
39496
|
-
var Pe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Oe,
|
|
39497
|
-
if (Se.info("setNativeRange", Oe, qe, Pe,
|
|
39502
|
+
var Pe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Oe, He = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : qe, We = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
39503
|
+
if (Se.info("setNativeRange", Oe, qe, Pe, He), !(Oe != null && (this.root.parentNode == null || Oe.parentNode == null || Pe.parentNode == null))) {
|
|
39498
39504
|
var Ge = typeof this.rootDocument.getSelection == "function" ? this.rootDocument.getSelection() : document.getSelection();
|
|
39499
39505
|
if (Ge != null)
|
|
39500
39506
|
if (Oe != null) {
|
|
39501
39507
|
this.hasFocus() || this.root.focus();
|
|
39502
39508
|
var Ye = (this.getNativeRange() || {}).native;
|
|
39503
|
-
if (Ye == null || We || Oe !== Ye.startContainer || qe !== Ye.startOffset || Pe !== Ye.endContainer ||
|
|
39504
|
-
Oe.tagName == "BR" && (qe = [].indexOf.call(Oe.parentNode.childNodes, Oe), Oe = Oe.parentNode), Pe.tagName == "BR" && (
|
|
39505
|
-
var
|
|
39506
|
-
|
|
39509
|
+
if (Ye == null || We || Oe !== Ye.startContainer || qe !== Ye.startOffset || Pe !== Ye.endContainer || He !== Ye.endOffset) {
|
|
39510
|
+
Oe.tagName == "BR" && (qe = [].indexOf.call(Oe.parentNode.childNodes, Oe), Oe = Oe.parentNode), Pe.tagName == "BR" && (He = [].indexOf.call(Pe.parentNode.childNodes, Pe), Pe = Pe.parentNode);
|
|
39511
|
+
var bt = document.createRange();
|
|
39512
|
+
bt.setStart(Oe, qe), bt.setEnd(Pe, He), Ge.removeAllRanges(), Ge.addRange(bt);
|
|
39507
39513
|
}
|
|
39508
39514
|
} else
|
|
39509
39515
|
Ge.removeAllRanges(), this.root.blur(), document.body.focus();
|
|
@@ -39514,8 +39520,8 @@ function requireQuill() {
|
|
|
39514
39520
|
value: function(Oe) {
|
|
39515
39521
|
var qe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, Pe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ve.default.sources.API;
|
|
39516
39522
|
if (typeof qe == "string" && (Pe = qe, qe = !1), Se.info("setRange", Oe), Oe != null) {
|
|
39517
|
-
var
|
|
39518
|
-
this.setNativeRange.apply(this, Ce(
|
|
39523
|
+
var He = this.rangeToNative(Oe);
|
|
39524
|
+
this.setNativeRange.apply(this, Ce(He).concat([qe]));
|
|
39519
39525
|
} else
|
|
39520
39526
|
this.setNativeRange(null);
|
|
39521
39527
|
this.update(Pe);
|
|
@@ -39523,26 +39529,26 @@ function requireQuill() {
|
|
|
39523
39529
|
}, {
|
|
39524
39530
|
key: "update",
|
|
39525
39531
|
value: function() {
|
|
39526
|
-
var Oe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ve.default.sources.USER, qe = this.lastRange, Pe = this.getRange(),
|
|
39532
|
+
var Oe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ve.default.sources.USER, qe = this.lastRange, Pe = this.getRange(), He = re(Pe, 2), We = He[0], Ge = He[1];
|
|
39527
39533
|
if (this.lastRange = We, this.lastRange != null && (this.savedRange = this.lastRange), !(0, fe.default)(qe, this.lastRange)) {
|
|
39528
39534
|
var Ye;
|
|
39529
39535
|
!this.composing && Ge != null && Ge.native.collapsed && Ge.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
39530
|
-
var
|
|
39531
|
-
if ((Ye = this.emitter).emit.apply(Ye, [ve.default.events.EDITOR_CHANGE].concat(
|
|
39536
|
+
var bt = [ve.default.events.SELECTION_CHANGE, (0, he.default)(this.lastRange), (0, he.default)(qe), Oe];
|
|
39537
|
+
if ((Ye = this.emitter).emit.apply(Ye, [ve.default.events.EDITOR_CHANGE].concat(bt)), Oe !== ve.default.sources.SILENT) {
|
|
39532
39538
|
var Xe;
|
|
39533
|
-
(Xe = this.emitter).emit.apply(Xe,
|
|
39539
|
+
(Xe = this.emitter).emit.apply(Xe, bt);
|
|
39534
39540
|
}
|
|
39535
39541
|
}
|
|
39536
39542
|
}
|
|
39537
|
-
}]),
|
|
39543
|
+
}]), Ue;
|
|
39538
39544
|
})();
|
|
39539
|
-
function ze(
|
|
39545
|
+
function ze(Ue, Le) {
|
|
39540
39546
|
try {
|
|
39541
39547
|
Le.parentNode;
|
|
39542
39548
|
} catch {
|
|
39543
39549
|
return !1;
|
|
39544
39550
|
}
|
|
39545
|
-
return Le instanceof Text && (Le = Le.parentNode),
|
|
39551
|
+
return Le instanceof Text && (Le = Le.parentNode), Ue.contains(Le);
|
|
39546
39552
|
}
|
|
39547
39553
|
oe.Range = Me, oe.default = Ie;
|
|
39548
39554
|
}),
|
|
@@ -39970,10 +39976,10 @@ function requireQuill() {
|
|
|
39970
39976
|
typeof _e == "object" && (ye = _e.depth, Ae = _e.prototype, Ce = _e.includeNonEnumerable, _e = _e.circular);
|
|
39971
39977
|
var we = [], Se = [], Me = typeof Buffer < "u";
|
|
39972
39978
|
typeof _e > "u" && (_e = !0), typeof ye > "u" && (ye = 1 / 0);
|
|
39973
|
-
function Ie(ze,
|
|
39979
|
+
function Ie(ze, Ue) {
|
|
39974
39980
|
if (ze === null)
|
|
39975
39981
|
return null;
|
|
39976
|
-
if (
|
|
39982
|
+
if (Ue === 0)
|
|
39977
39983
|
return ze;
|
|
39978
39984
|
var Le, Oe;
|
|
39979
39985
|
if (typeof ze != "object")
|
|
@@ -39985,9 +39991,9 @@ function requireQuill() {
|
|
|
39985
39991
|
else if (re(ze, ue))
|
|
39986
39992
|
Le = new ue(function(Ze, Fe) {
|
|
39987
39993
|
ze.then(function(je) {
|
|
39988
|
-
Ze(Ie(je,
|
|
39994
|
+
Ze(Ie(je, Ue - 1));
|
|
39989
39995
|
}, function(je) {
|
|
39990
|
-
Fe(Ie(je,
|
|
39996
|
+
Fe(Ie(je, Ue - 1));
|
|
39991
39997
|
});
|
|
39992
39998
|
});
|
|
39993
39999
|
else if (pe.__isArray(ze))
|
|
@@ -40008,27 +40014,27 @@ function requireQuill() {
|
|
|
40008
40014
|
we.push(ze), Se.push(Le);
|
|
40009
40015
|
}
|
|
40010
40016
|
re(ze, de) && ze.forEach(function(Ze, Fe) {
|
|
40011
|
-
var je = Ie(Fe,
|
|
40017
|
+
var je = Ie(Fe, Ue - 1), Be = Ie(Ze, Ue - 1);
|
|
40012
40018
|
Le.set(je, Be);
|
|
40013
40019
|
}), re(ze, ce) && ze.forEach(function(Ze) {
|
|
40014
|
-
var Fe = Ie(Ze,
|
|
40020
|
+
var Fe = Ie(Ze, Ue - 1);
|
|
40015
40021
|
Le.add(Fe);
|
|
40016
40022
|
});
|
|
40017
40023
|
for (var Pe in ze) {
|
|
40018
|
-
var
|
|
40019
|
-
Oe && (
|
|
40024
|
+
var He;
|
|
40025
|
+
Oe && (He = Object.getOwnPropertyDescriptor(Oe, Pe)), !(He && He.set == null) && (Le[Pe] = Ie(ze[Pe], Ue - 1));
|
|
40020
40026
|
}
|
|
40021
40027
|
if (Object.getOwnPropertySymbols)
|
|
40022
40028
|
for (var We = Object.getOwnPropertySymbols(ze), Pe = 0; Pe < We.length; Pe++) {
|
|
40023
40029
|
var Ge = We[Pe], Ye = Object.getOwnPropertyDescriptor(ze, Ge);
|
|
40024
|
-
Ye && !Ye.enumerable && !Ce || (Le[Ge] = Ie(ze[Ge],
|
|
40030
|
+
Ye && !Ye.enumerable && !Ce || (Le[Ge] = Ie(ze[Ge], Ue - 1), Ye.enumerable || Object.defineProperty(Le, Ge, {
|
|
40025
40031
|
enumerable: !1
|
|
40026
40032
|
}));
|
|
40027
40033
|
}
|
|
40028
40034
|
if (Ce)
|
|
40029
|
-
for (var
|
|
40030
|
-
var Xe =
|
|
40031
|
-
Ye && Ye.enumerable || (Le[Xe] = Ie(ze[Xe],
|
|
40035
|
+
for (var bt = Object.getOwnPropertyNames(ze), Pe = 0; Pe < bt.length; Pe++) {
|
|
40036
|
+
var Xe = bt[Pe], Ye = Object.getOwnPropertyDescriptor(ze, Xe);
|
|
40037
|
+
Ye && Ye.enumerable || (Le[Xe] = Ie(ze[Xe], Ue - 1), Object.defineProperty(Le, Xe, {
|
|
40032
40038
|
enumerable: !1
|
|
40033
40039
|
}));
|
|
40034
40040
|
}
|
|
@@ -40075,15 +40081,15 @@ function requireQuill() {
|
|
|
40075
40081
|
});
|
|
40076
40082
|
var re = /* @__PURE__ */ (function() {
|
|
40077
40083
|
function Le(Oe, qe) {
|
|
40078
|
-
var Pe = [],
|
|
40084
|
+
var Pe = [], He = !0, We = !1, Ge = void 0;
|
|
40079
40085
|
try {
|
|
40080
|
-
for (var Ye = Oe[Symbol.iterator](),
|
|
40086
|
+
for (var Ye = Oe[Symbol.iterator](), bt; !(He = (bt = Ye.next()).done) && (Pe.push(bt.value), !(qe && Pe.length === qe)); He = !0)
|
|
40081
40087
|
;
|
|
40082
40088
|
} catch (Xe) {
|
|
40083
40089
|
We = !0, Ge = Xe;
|
|
40084
40090
|
} finally {
|
|
40085
40091
|
try {
|
|
40086
|
-
!
|
|
40092
|
+
!He && Ye.return && Ye.return();
|
|
40087
40093
|
} finally {
|
|
40088
40094
|
if (We) throw Ge;
|
|
40089
40095
|
}
|
|
@@ -40100,8 +40106,8 @@ function requireQuill() {
|
|
|
40100
40106
|
})(), de = /* @__PURE__ */ (function() {
|
|
40101
40107
|
function Le(Oe, qe) {
|
|
40102
40108
|
for (var Pe = 0; Pe < qe.length; Pe++) {
|
|
40103
|
-
var
|
|
40104
|
-
|
|
40109
|
+
var He = qe[Pe];
|
|
40110
|
+
He.enumerable = He.enumerable || !1, He.configurable = !0, "value" in He && (He.writable = !0), Object.defineProperty(Oe, He.key, He);
|
|
40105
40111
|
}
|
|
40106
40112
|
}
|
|
40107
40113
|
return function(Oe, qe, Pe) {
|
|
@@ -40109,14 +40115,14 @@ function requireQuill() {
|
|
|
40109
40115
|
};
|
|
40110
40116
|
})(), ce = function Le(Oe, qe, Pe) {
|
|
40111
40117
|
Oe === null && (Oe = Function.prototype);
|
|
40112
|
-
var
|
|
40113
|
-
if (
|
|
40118
|
+
var He = Object.getOwnPropertyDescriptor(Oe, qe);
|
|
40119
|
+
if (He === void 0) {
|
|
40114
40120
|
var We = Object.getPrototypeOf(Oe);
|
|
40115
40121
|
return We === null ? void 0 : Le(We, qe, Pe);
|
|
40116
40122
|
} else {
|
|
40117
|
-
if ("value" in
|
|
40118
|
-
return
|
|
40119
|
-
var Ge =
|
|
40123
|
+
if ("value" in He)
|
|
40124
|
+
return He.value;
|
|
40125
|
+
var Ge = He.get;
|
|
40120
40126
|
return Ge === void 0 ? void 0 : Ge.call(Pe);
|
|
40121
40127
|
}
|
|
40122
40128
|
}, ue = ne(0), pe = we(ue), he = ne(8), be = we(he), fe = ne(4), ge = we(fe), ve = ne(16), me = we(ve), _e = ne(13), ye = we(_e), Ae = ne(25), Ce = we(Ae);
|
|
@@ -40140,15 +40146,15 @@ function requireQuill() {
|
|
|
40140
40146
|
function ze(Le) {
|
|
40141
40147
|
return Le instanceof ge.default || Le instanceof fe.BlockEmbed;
|
|
40142
40148
|
}
|
|
40143
|
-
var
|
|
40149
|
+
var Ue = (function(Le) {
|
|
40144
40150
|
Ie(Oe, Le);
|
|
40145
40151
|
function Oe(qe, Pe) {
|
|
40146
40152
|
Se(this, Oe);
|
|
40147
|
-
var
|
|
40148
|
-
return
|
|
40153
|
+
var He = Me(this, (Oe.__proto__ || Object.getPrototypeOf(Oe)).call(this, qe));
|
|
40154
|
+
return He.emitter = Pe.emitter, Array.isArray(Pe.whitelist) && (He.whitelist = Pe.whitelist.reduce(function(We, Ge) {
|
|
40149
40155
|
return We[Ge] = !0, We;
|
|
40150
|
-
}, {})),
|
|
40151
|
-
}),
|
|
40156
|
+
}, {})), He.domNode.addEventListener("DOMNodeInserted", function() {
|
|
40157
|
+
}), He.optimize(), He.enable(), He;
|
|
40152
40158
|
}
|
|
40153
40159
|
return de(Oe, [{
|
|
40154
40160
|
key: "batchStart",
|
|
@@ -40162,9 +40168,9 @@ function requireQuill() {
|
|
|
40162
40168
|
}
|
|
40163
40169
|
}, {
|
|
40164
40170
|
key: "deleteAt",
|
|
40165
|
-
value: function(Pe,
|
|
40166
|
-
var We = this.line(Pe), Ge = re(We, 2), Ye = Ge[0],
|
|
40167
|
-
if (ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "deleteAt", this).call(this, Pe,
|
|
40171
|
+
value: function(Pe, He) {
|
|
40172
|
+
var We = this.line(Pe), Ge = re(We, 2), Ye = Ge[0], bt = Ge[1], Xe = this.line(Pe + He), Ze = re(Xe, 1), Fe = Ze[0];
|
|
40173
|
+
if (ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "deleteAt", this).call(this, Pe, He), Fe != null && Ye !== Fe && bt > 0) {
|
|
40168
40174
|
if (Ye instanceof fe.BlockEmbed || Fe instanceof fe.BlockEmbed) {
|
|
40169
40175
|
this.optimize();
|
|
40170
40176
|
return;
|
|
@@ -40192,35 +40198,35 @@ function requireQuill() {
|
|
|
40192
40198
|
}
|
|
40193
40199
|
}, {
|
|
40194
40200
|
key: "formatAt",
|
|
40195
|
-
value: function(Pe,
|
|
40196
|
-
this.whitelist != null && !this.whitelist[We] || (ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "formatAt", this).call(this, Pe,
|
|
40201
|
+
value: function(Pe, He, We, Ge) {
|
|
40202
|
+
this.whitelist != null && !this.whitelist[We] || (ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "formatAt", this).call(this, Pe, He, We, Ge), this.optimize());
|
|
40197
40203
|
}
|
|
40198
40204
|
}, {
|
|
40199
40205
|
key: "insertAt",
|
|
40200
|
-
value: function(Pe,
|
|
40201
|
-
if (!(We != null && this.whitelist != null && !this.whitelist[
|
|
40206
|
+
value: function(Pe, He, We) {
|
|
40207
|
+
if (!(We != null && this.whitelist != null && !this.whitelist[He])) {
|
|
40202
40208
|
if (Pe >= this.length())
|
|
40203
|
-
if (We == null || pe.default.query(
|
|
40209
|
+
if (We == null || pe.default.query(He, pe.default.Scope.BLOCK) == null) {
|
|
40204
40210
|
var Ge = pe.default.create(this.statics.defaultChild);
|
|
40205
|
-
this.appendChild(Ge), We == null &&
|
|
40206
|
-
`) && (
|
|
40211
|
+
this.appendChild(Ge), We == null && He.endsWith(`
|
|
40212
|
+
`) && (He = He.slice(0, -1)), Ge.insertAt(0, He, We);
|
|
40207
40213
|
} else {
|
|
40208
|
-
var Ye = pe.default.create(
|
|
40214
|
+
var Ye = pe.default.create(He, We);
|
|
40209
40215
|
this.appendChild(Ye);
|
|
40210
40216
|
}
|
|
40211
40217
|
else
|
|
40212
|
-
ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "insertAt", this).call(this, Pe,
|
|
40218
|
+
ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "insertAt", this).call(this, Pe, He, We);
|
|
40213
40219
|
this.optimize();
|
|
40214
40220
|
}
|
|
40215
40221
|
}
|
|
40216
40222
|
}, {
|
|
40217
40223
|
key: "insertBefore",
|
|
40218
|
-
value: function(Pe,
|
|
40224
|
+
value: function(Pe, He) {
|
|
40219
40225
|
if (Pe.statics.scope === pe.default.Scope.INLINE_BLOT) {
|
|
40220
40226
|
var We = pe.default.create(this.statics.defaultChild);
|
|
40221
40227
|
We.appendChild(Pe), Pe = We;
|
|
40222
40228
|
}
|
|
40223
|
-
ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "insertBefore", this).call(this, Pe,
|
|
40229
|
+
ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "insertBefore", this).call(this, Pe, He);
|
|
40224
40230
|
}
|
|
40225
40231
|
}, {
|
|
40226
40232
|
key: "leaf",
|
|
@@ -40235,19 +40241,19 @@ function requireQuill() {
|
|
|
40235
40241
|
}, {
|
|
40236
40242
|
key: "lines",
|
|
40237
40243
|
value: function() {
|
|
40238
|
-
var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0,
|
|
40244
|
+
var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, He = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ye, bt, Xe) {
|
|
40239
40245
|
var Ze = [], Fe = Xe;
|
|
40240
|
-
return Ye.children.forEachAt(
|
|
40246
|
+
return Ye.children.forEachAt(bt, Xe, function(je, Be, Qe) {
|
|
40241
40247
|
ze(je) ? Ze.push(je) : je instanceof pe.default.Container && (Ze = Ze.concat(Ge(je, Be, Fe))), Fe -= Qe;
|
|
40242
40248
|
}), Ze;
|
|
40243
40249
|
};
|
|
40244
|
-
return We(this, Pe,
|
|
40250
|
+
return We(this, Pe, He);
|
|
40245
40251
|
}
|
|
40246
40252
|
}, {
|
|
40247
40253
|
key: "optimize",
|
|
40248
40254
|
value: function() {
|
|
40249
|
-
var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [],
|
|
40250
|
-
this.batch !== !0 && (ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "optimize", this).call(this, Pe,
|
|
40255
|
+
var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], He = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
40256
|
+
this.batch !== !0 && (ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "optimize", this).call(this, Pe, He), Pe.length > 0 && this.emitter.emit(be.default.events.SCROLL_OPTIMIZE, Pe, He));
|
|
40251
40257
|
}
|
|
40252
40258
|
}, {
|
|
40253
40259
|
key: "path",
|
|
@@ -40258,13 +40264,13 @@ function requireQuill() {
|
|
|
40258
40264
|
key: "update",
|
|
40259
40265
|
value: function(Pe) {
|
|
40260
40266
|
if (this.batch !== !0) {
|
|
40261
|
-
var
|
|
40262
|
-
typeof Pe == "string" && (
|
|
40267
|
+
var He = be.default.sources.USER;
|
|
40268
|
+
typeof Pe == "string" && (He = Pe), Array.isArray(Pe) || (Pe = this.observer.takeRecords()), Pe.length > 0 && this.emitter.emit(be.default.events.SCROLL_BEFORE_UPDATE, He, Pe), ce(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "update", this).call(this, Pe.concat([])), Pe.length > 0 && this.emitter.emit(be.default.events.SCROLL_UPDATE, He, Pe);
|
|
40263
40269
|
}
|
|
40264
40270
|
}
|
|
40265
40271
|
}]), Oe;
|
|
40266
40272
|
})(pe.default.Scroll);
|
|
40267
|
-
|
|
40273
|
+
Ue.blotName = "scroll", Ue.className = "ql-editor", Ue.tagName = "DIV", Ue.defaultChild = "block", Ue.allowedChildren = [ge.default, fe.BlockEmbed, Ce.default], oe.default = Ue;
|
|
40268
40274
|
}),
|
|
40269
40275
|
/* 23 */
|
|
40270
40276
|
/***/
|
|
@@ -40310,7 +40316,7 @@ function requireQuill() {
|
|
|
40310
40316
|
return function(Je, nt, ft) {
|
|
40311
40317
|
return nt && Ve(Je.prototype, nt), ft && Ve(Je, ft), Je;
|
|
40312
40318
|
};
|
|
40313
|
-
})(), ue = ne(21), pe = Le(ue), he = ne(11), be = Le(he), fe = ne(3), ge = Le(fe), ve = ne(2), me = Le(ve), _e = ne(20), ye = Le(_e), Ae = ne(0), Ce = Le(Ae), we = ne(5), Se = Le(we), Me = ne(10), Ie = Le(Me), ze = ne(9),
|
|
40319
|
+
})(), ue = ne(21), pe = Le(ue), he = ne(11), be = Le(he), fe = ne(3), ge = Le(fe), ve = ne(2), me = Le(ve), _e = ne(20), ye = Le(_e), Ae = ne(0), Ce = Le(Ae), we = ne(5), Se = Le(we), Me = ne(10), Ie = Le(Me), ze = ne(9), Ue = Le(ze);
|
|
40314
40320
|
function Le(Ve) {
|
|
40315
40321
|
return Ve && Ve.__esModule ? Ve : { default: Ve };
|
|
40316
40322
|
}
|
|
@@ -40326,13 +40332,13 @@ function requireQuill() {
|
|
|
40326
40332
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
40327
40333
|
return Je && (typeof Je == "object" || typeof Je == "function") ? Je : Ve;
|
|
40328
40334
|
}
|
|
40329
|
-
function
|
|
40335
|
+
function He(Ve, Je) {
|
|
40330
40336
|
if (typeof Je != "function" && Je !== null)
|
|
40331
40337
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Je);
|
|
40332
40338
|
Ve.prototype = Object.create(Je && Je.prototype, { constructor: { value: Ve, enumerable: !1, writable: !0, configurable: !0 } }), Je && (Object.setPrototypeOf ? Object.setPrototypeOf(Ve, Je) : Ve.__proto__ = Je);
|
|
40333
40339
|
}
|
|
40334
40340
|
var We = (0, Ie.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ye = (function(Ve) {
|
|
40335
|
-
|
|
40341
|
+
He(Je, Ve), ce(Je, null, [{
|
|
40336
40342
|
key: "match",
|
|
40337
40343
|
value: function(ft, $t) {
|
|
40338
40344
|
return $t = tt($t), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(St) {
|
|
@@ -40395,7 +40401,7 @@ function requireQuill() {
|
|
|
40395
40401
|
});
|
|
40396
40402
|
}
|
|
40397
40403
|
}]), Je;
|
|
40398
|
-
})(
|
|
40404
|
+
})(Ue.default);
|
|
40399
40405
|
Ye.keys = {
|
|
40400
40406
|
BACKSPACE: 8,
|
|
40401
40407
|
TAB: 9,
|
|
@@ -40532,13 +40538,13 @@ function requireQuill() {
|
|
|
40532
40538
|
this.quill.updateContents(Pt, Se.default.sources.USER);
|
|
40533
40539
|
}
|
|
40534
40540
|
},
|
|
40535
|
-
"embed left":
|
|
40536
|
-
"embed left shift":
|
|
40537
|
-
"embed right":
|
|
40538
|
-
"embed right shift":
|
|
40541
|
+
"embed left": bt(Ye.keys.LEFT, !1),
|
|
40542
|
+
"embed left shift": bt(Ye.keys.LEFT, !0),
|
|
40543
|
+
"embed right": bt(Ye.keys.RIGHT, !1),
|
|
40544
|
+
"embed right shift": bt(Ye.keys.RIGHT, !0)
|
|
40539
40545
|
}
|
|
40540
40546
|
};
|
|
40541
|
-
function
|
|
40547
|
+
function bt(Ve, Je) {
|
|
40542
40548
|
var nt, ft = Ve === Ye.keys.LEFT ? "prefix" : "suffix";
|
|
40543
40549
|
return nt = {
|
|
40544
40550
|
key: Ve,
|
|
@@ -40648,7 +40654,7 @@ function requireQuill() {
|
|
|
40648
40654
|
function ye(Ae, Ce) {
|
|
40649
40655
|
var we = [], Se = !0, Me = !1, Ie = void 0;
|
|
40650
40656
|
try {
|
|
40651
|
-
for (var ze = Ae[Symbol.iterator](),
|
|
40657
|
+
for (var ze = Ae[Symbol.iterator](), Ue; !(Se = (Ue = ze.next()).done) && (we.push(Ue.value), !(Ce && we.length === Ce)); Se = !0)
|
|
40652
40658
|
;
|
|
40653
40659
|
} catch (Le) {
|
|
40654
40660
|
Me = !0, Ie = Le;
|
|
@@ -40759,8 +40765,8 @@ function requireQuill() {
|
|
|
40759
40765
|
if (!(this.selection.composing || this.parent == null)) {
|
|
40760
40766
|
var we = this.textNode, Se = this.selection.getNativeRange(), Me = void 0, Ie = void 0, ze = void 0;
|
|
40761
40767
|
if (Se != null && Se.start.node === we && Se.end.node === we) {
|
|
40762
|
-
var
|
|
40763
|
-
Me =
|
|
40768
|
+
var Ue = [we, Se.start.offset, Se.end.offset];
|
|
40769
|
+
Me = Ue[0], Ie = Ue[1], ze = Ue[2];
|
|
40764
40770
|
}
|
|
40765
40771
|
for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
|
|
40766
40772
|
this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
|
|
@@ -41131,7 +41137,7 @@ function requireQuill() {
|
|
|
41131
41137
|
Object.defineProperty(oe, "__esModule", {
|
|
41132
41138
|
value: !0
|
|
41133
41139
|
});
|
|
41134
|
-
var re = ne(0), de = We(re), ce = ne(5), ue = We(ce), pe = ne(4), he = We(pe), be = ne(16), fe = We(be), ge = ne(25), ve = We(ge), me = ne(24), _e = We(me), ye = ne(36), Ae = We(ye), Ce = ne(6), we = We(Ce), Se = ne(22), Me = We(Se), Ie = ne(7), ze = We(Ie),
|
|
41140
|
+
var re = ne(0), de = We(re), ce = ne(5), ue = We(ce), pe = ne(4), he = We(pe), be = ne(16), fe = We(be), ge = ne(25), ve = We(ge), me = ne(24), _e = We(me), ye = ne(36), Ae = We(ye), Ce = ne(6), we = We(Ce), Se = ne(22), Me = We(Se), Ie = ne(7), ze = We(Ie), Ue = ne(56), Le = We(Ue), Oe = ne(43), qe = We(Oe), Pe = ne(23), He = We(Pe);
|
|
41135
41141
|
function We(Ge) {
|
|
41136
41142
|
return Ge && Ge.__esModule ? Ge : { default: Ge };
|
|
41137
41143
|
}
|
|
@@ -41147,7 +41153,7 @@ function requireQuill() {
|
|
|
41147
41153
|
"blots/text": ze.default,
|
|
41148
41154
|
"modules/clipboard": Le.default,
|
|
41149
41155
|
"modules/history": qe.default,
|
|
41150
|
-
"modules/keyboard":
|
|
41156
|
+
"modules/keyboard": He.default
|
|
41151
41157
|
}), de.default.register(he.default, fe.default, _e.default, we.default, Me.default, ze.default), oe.default = ue.default;
|
|
41152
41158
|
}),
|
|
41153
41159
|
/* 30 */
|
|
@@ -41370,7 +41376,7 @@ function requireQuill() {
|
|
|
41370
41376
|
(function(X, oe, ne) {
|
|
41371
41377
|
Object.defineProperty(oe, "__esModule", {
|
|
41372
41378
|
value: !0
|
|
41373
|
-
}), oe.getRange = Ie, oe.internalGetShadowSelection =
|
|
41379
|
+
}), oe.getRange = Ie, oe.internalGetShadowSelection = Ue;
|
|
41374
41380
|
var re = oe.SHADOW_SELECTIONCHANGE = "-shadow-selectionchange", de = "attachShadow" in Element.prototype && "getRootNode" in Element.prototype, ce = !!(de && document.createElement("div").attachShadow({ mode: "open" }).getSelection), ue = window.ShadyDOM && window.ShadyDOM.inUse, pe = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, he = !de || ue || !ce && !pe, be = [Node.ELEMENT_NODE, Node.TEXT_NODE, Node.DOCUMENT_FRAGMENT_NODE];
|
|
41375
41381
|
function fe(Le) {
|
|
41376
41382
|
return be.includes(Le.nodeType);
|
|
@@ -41379,8 +41385,8 @@ function requireQuill() {
|
|
|
41379
41385
|
var Pe = Oe.childNodes || Oe.children;
|
|
41380
41386
|
if (!Pe)
|
|
41381
41387
|
return Oe;
|
|
41382
|
-
for (var
|
|
41383
|
-
var We = qe ?
|
|
41388
|
+
for (var He = 0; He < Pe.length; ++He) {
|
|
41389
|
+
var We = qe ? He : Pe.length - 1 - He, Ge = Pe[We];
|
|
41384
41390
|
if (fe(Ge) && Le.containsNode(Ge, !0))
|
|
41385
41391
|
return Le.containsNode(Ge, !1) ? Ge : ge(Le, Ge, qe);
|
|
41386
41392
|
}
|
|
@@ -41418,19 +41424,19 @@ function requireQuill() {
|
|
|
41418
41424
|
if (Le.type === "Range") {
|
|
41419
41425
|
var Pe = function() {
|
|
41420
41426
|
return Le.toString().length;
|
|
41421
|
-
},
|
|
41422
|
-
if (
|
|
41427
|
+
}, He = Pe();
|
|
41428
|
+
if (He === 1 && me && Oe === qe) {
|
|
41423
41429
|
Le.extend(Oe, 0), Le.collapseToEnd();
|
|
41424
41430
|
return;
|
|
41425
41431
|
}
|
|
41426
41432
|
var We = void 0;
|
|
41427
|
-
if (Le.modify("extend", "forward", "character"), We = Pe(), We >
|
|
41433
|
+
if (Le.modify("extend", "forward", "character"), We = Pe(), We > He || ye(Le, qe, !0))
|
|
41428
41434
|
return Le.modify("extend", "backward", "character"), !0;
|
|
41429
|
-
if (We <
|
|
41435
|
+
if (We < He || !Le.containsNode(Oe))
|
|
41430
41436
|
return Le.modify("extend", "backward", "character"), !1;
|
|
41431
|
-
if (Le.modify("extend", "backward", "character"), We = Pe(), We >
|
|
41437
|
+
if (Le.modify("extend", "backward", "character"), We = Pe(), We > He || ye(Le, Oe, !1))
|
|
41432
41438
|
return Le.modify("extend", "forward", "character"), !1;
|
|
41433
|
-
if (We <
|
|
41439
|
+
if (We < He || !Le.containsNode(qe))
|
|
41434
41440
|
return Le.modify("extend", "forward", "character"), !0;
|
|
41435
41441
|
}
|
|
41436
41442
|
}
|
|
@@ -41462,13 +41468,13 @@ function requireQuill() {
|
|
|
41462
41468
|
var qe = Me.get(Le);
|
|
41463
41469
|
if (qe)
|
|
41464
41470
|
return qe;
|
|
41465
|
-
var Pe =
|
|
41471
|
+
var Pe = Ue(Le);
|
|
41466
41472
|
return Me.set(Le, Pe.range), window.setTimeout(function() {
|
|
41467
41473
|
Me.delete(Le);
|
|
41468
41474
|
}, 0), Pe.range;
|
|
41469
41475
|
}
|
|
41470
41476
|
var ze = document.createTextNode("");
|
|
41471
|
-
function
|
|
41477
|
+
function Ue(Le) {
|
|
41472
41478
|
var Oe = document.createRange(), qe = window.getSelection();
|
|
41473
41479
|
if (!qe.containsNode(Le.host, !0))
|
|
41474
41480
|
return { range: null, mode: "none" };
|
|
@@ -41477,27 +41483,27 @@ function requireQuill() {
|
|
|
41477
41483
|
if (ze.remove(), Pe)
|
|
41478
41484
|
return { range: null, mode: "outside-before" };
|
|
41479
41485
|
Le.appendChild(ze);
|
|
41480
|
-
var
|
|
41481
|
-
if (ze.remove(),
|
|
41486
|
+
var He = qe.containsNode(ze);
|
|
41487
|
+
if (ze.remove(), He)
|
|
41482
41488
|
return { range: null, mode: "outside-after" };
|
|
41483
41489
|
var We = function() {
|
|
41484
41490
|
return qe.toString().length;
|
|
41485
41491
|
};
|
|
41486
41492
|
if (!(qe.type === "Caret" || qe.type === "Range"))
|
|
41487
41493
|
throw new TypeError("unexpected type: " + qe.type);
|
|
41488
|
-
var Ge = ge(qe, Le, !0), Ye = void 0,
|
|
41489
|
-
if (qe.type === "Range" && (Ye = ge(qe, Le, !1),
|
|
41494
|
+
var Ge = ge(qe, Le, !0), Ye = void 0, bt = void 0;
|
|
41495
|
+
if (qe.type === "Range" && (Ye = ge(qe, Le, !1), bt = Ae(qe, Ge, Ye)), qe.type === "Caret") {
|
|
41490
41496
|
qe.extend(Ge, 0);
|
|
41491
41497
|
var Xe = We();
|
|
41492
41498
|
return qe.collapseToEnd(), Oe.setStart(Ge, Xe), Oe.setEnd(Ge, Xe), { range: Oe, mode: "caret" };
|
|
41493
|
-
} else if (
|
|
41499
|
+
} else if (bt === void 0) {
|
|
41494
41500
|
if (qe.type !== "Range")
|
|
41495
41501
|
throw new TypeError("unexpected type: " + qe.type);
|
|
41496
41502
|
return Oe.setStart(Ge, 0), Oe.setEnd(Ye, Ye.length), { range: Oe, mode: "all" };
|
|
41497
41503
|
}
|
|
41498
41504
|
var Ze = We(), Fe = void 0, je = void 0, Be = Ye.length - Se(Ye);
|
|
41499
|
-
return
|
|
41500
|
-
mode:
|
|
41505
|
+
return bt ? (qe.extend(Ge, 0), Fe = We() + we(Ge), qe.extend(Ye, Be), je = Be - (We() - Ze), qe.extend(Ye, je)) : (qe.extend(Ye, Be), je = Be - We(), qe.extend(Ge, 0), Fe = We() - Ze + we(Ge), qe.extend(Ge, Fe)), Oe.setStart(Ge, Fe), Oe.setEnd(Ye, je), {
|
|
41506
|
+
mode: bt ? "right" : "left",
|
|
41501
41507
|
range: Oe
|
|
41502
41508
|
};
|
|
41503
41509
|
}
|
|
@@ -41872,8 +41878,8 @@ function requireQuill() {
|
|
|
41872
41878
|
function we(Se, Me) {
|
|
41873
41879
|
ge(this, we);
|
|
41874
41880
|
var Ie = ve(this, (we.__proto__ || Object.getPrototypeOf(we)).call(this, Se, Me));
|
|
41875
|
-
return Ie.lastRecorded = 0, Ie.ignoreChange = !1, Ie.clear(), Ie.quill.on(pe.default.events.EDITOR_CHANGE, function(ze,
|
|
41876
|
-
ze !== pe.default.events.TEXT_CHANGE || Ie.ignoreChange || (!Ie.options.userOnly || Oe === pe.default.sources.USER ? Ie.record(
|
|
41881
|
+
return Ie.lastRecorded = 0, Ie.ignoreChange = !1, Ie.clear(), Ie.quill.on(pe.default.events.EDITOR_CHANGE, function(ze, Ue, Le, Oe) {
|
|
41882
|
+
ze !== pe.default.events.TEXT_CHANGE || Ie.ignoreChange || (!Ie.options.userOnly || Oe === pe.default.sources.USER ? Ie.record(Ue, Le) : Ie.transform(Ue));
|
|
41877
41883
|
}), Ie.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, Ie.undo.bind(Ie)), Ie.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, Ie.redo.bind(Ie)), /Win/i.test(navigator.platform) && Ie.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, Ie.redo.bind(Ie)), Ie;
|
|
41878
41884
|
}
|
|
41879
41885
|
return re(we, [{
|
|
@@ -41882,8 +41888,8 @@ function requireQuill() {
|
|
|
41882
41888
|
if (this.stack[Me].length !== 0) {
|
|
41883
41889
|
var ze = this.stack[Me].pop();
|
|
41884
41890
|
this.stack[Ie].push(ze), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(ze[Me], pe.default.sources.USER), this.ignoreChange = !1;
|
|
41885
|
-
var
|
|
41886
|
-
this.quill.setSelection(
|
|
41891
|
+
var Ue = Ae(ze[Me]);
|
|
41892
|
+
this.quill.setSelection(Ue);
|
|
41887
41893
|
}
|
|
41888
41894
|
}
|
|
41889
41895
|
}, {
|
|
@@ -41901,12 +41907,12 @@ function requireQuill() {
|
|
|
41901
41907
|
value: function(Me, Ie) {
|
|
41902
41908
|
if (Me.ops.length !== 0) {
|
|
41903
41909
|
this.stack.redo = [];
|
|
41904
|
-
var ze = this.quill.getContents().diff(Ie),
|
|
41905
|
-
if (this.lastRecorded + this.options.delay >
|
|
41910
|
+
var ze = this.quill.getContents().diff(Ie), Ue = Date.now();
|
|
41911
|
+
if (this.lastRecorded + this.options.delay > Ue && this.stack.undo.length > 0) {
|
|
41906
41912
|
var Le = this.stack.undo.pop();
|
|
41907
41913
|
ze = ze.compose(Le.undo), Me = Le.redo.compose(Me);
|
|
41908
41914
|
} else
|
|
41909
|
-
this.lastRecorded =
|
|
41915
|
+
this.lastRecorded = Ue;
|
|
41910
41916
|
this.stack.undo.push({
|
|
41911
41917
|
redo: Me,
|
|
41912
41918
|
undo: ze
|
|
@@ -41982,8 +41988,8 @@ function requireQuill() {
|
|
|
41982
41988
|
var nt = Ve.get;
|
|
41983
41989
|
return nt === void 0 ? void 0 : nt.call(tt);
|
|
41984
41990
|
}
|
|
41985
|
-
}, ce = ne(3), ue =
|
|
41986
|
-
function
|
|
41991
|
+
}, ce = ne(3), ue = Ue(ce), pe = ne(2), he = Ue(pe), be = ne(8), fe = Ue(be), ge = ne(23), ve = Ue(ge), me = ne(35), _e = Ue(me), ye = ne(60), Ae = Ue(ye), Ce = ne(61), we = Ue(Ce), Se = ne(28), Me = Ue(Se), Ie = ne(62), ze = Ue(Ie);
|
|
41992
|
+
function Ue(je) {
|
|
41987
41993
|
return je && je.__esModule ? je : { default: je };
|
|
41988
41994
|
}
|
|
41989
41995
|
function Le(je, Be) {
|
|
@@ -42000,7 +42006,7 @@ function requireQuill() {
|
|
|
42000
42006
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Be);
|
|
42001
42007
|
je.prototype = Object.create(Be && Be.prototype, { constructor: { value: je, enumerable: !1, writable: !0, configurable: !0 } }), Be && (Object.setPrototypeOf ? Object.setPrototypeOf(je, Be) : je.__proto__ = Be);
|
|
42002
42008
|
}
|
|
42003
|
-
var Pe = [!1, "center", "right", "justify"],
|
|
42009
|
+
var Pe = [!1, "center", "right", "justify"], He = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], We = [!1, "serif", "monospace"], Ge = ["1", "2", "3", !1], Ye = ["petita", !1, "gran", "enorme"], bt = (function(je) {
|
|
42004
42010
|
qe(Be, je);
|
|
42005
42011
|
function Be(Qe, tt) {
|
|
42006
42012
|
Le(this, Be);
|
|
@@ -42046,7 +42052,7 @@ function requireQuill() {
|
|
|
42046
42052
|
return ft.querySelector("option") == null && Fe(ft, Pe), new we.default(ft, Ve.align);
|
|
42047
42053
|
if (ft.classList.contains("ql-background") || ft.classList.contains("ql-color")) {
|
|
42048
42054
|
var $t = ft.classList.contains("ql-background") ? "background" : "color";
|
|
42049
|
-
return ft.querySelector("option") == null && Fe(ft,
|
|
42055
|
+
return ft.querySelector("option") == null && Fe(ft, He, $t === "background" ? "#ffffff" : "#000000"), new Ae.default(ft, Ve[$t]);
|
|
42050
42056
|
} else
|
|
42051
42057
|
return ft.querySelector("option") == null && (ft.classList.contains("ql-font") ? Fe(ft, We) : ft.classList.contains("ql-header") ? Fe(ft, Ge) : ft.classList.contains("ql-size") && Fe(ft, Ye)), new Me.default(ft);
|
|
42052
42058
|
});
|
|
@@ -42059,7 +42065,7 @@ function requireQuill() {
|
|
|
42059
42065
|
}
|
|
42060
42066
|
}]), Be;
|
|
42061
42067
|
})(_e.default);
|
|
42062
|
-
|
|
42068
|
+
bt.DEFAULTS = (0, ue.default)(!0, {}, _e.default.DEFAULTS, {
|
|
42063
42069
|
modules: {
|
|
42064
42070
|
toolbar: {
|
|
42065
42071
|
handlers: {
|
|
@@ -42155,7 +42161,7 @@ function requireQuill() {
|
|
|
42155
42161
|
tt === Qe ? Ve.setAttribute("selected", "selected") : Ve.setAttribute("value", tt), je.appendChild(Ve);
|
|
42156
42162
|
});
|
|
42157
42163
|
}
|
|
42158
|
-
oe.BaseTooltip = Xe, oe.default =
|
|
42164
|
+
oe.BaseTooltip = Xe, oe.default = bt;
|
|
42159
42165
|
}),
|
|
42160
42166
|
/* 45 */
|
|
42161
42167
|
/***/
|
|
@@ -42285,8 +42291,8 @@ function requireQuill() {
|
|
|
42285
42291
|
var Me = ce.find(Se.target, !0);
|
|
42286
42292
|
Me != null && (Me.domNode === Se.target && (Se.type === "childList" ? (ye(ce.find(Se.previousSibling, !1)), [].forEach.call(Se.addedNodes, function(Ie) {
|
|
42287
42293
|
var ze = ce.find(Ie, !1);
|
|
42288
|
-
ye(ze, !1), ze instanceof de.default && ze.children.forEach(function(
|
|
42289
|
-
ye(
|
|
42294
|
+
ye(ze, !1), ze instanceof de.default && ze.children.forEach(function(Ue) {
|
|
42295
|
+
ye(Ue, !1);
|
|
42290
42296
|
});
|
|
42291
42297
|
})) : Se.type === "attributes" && ye(Me.prev)), ye(Me));
|
|
42292
42298
|
}), this.children.forEach(Ae), Ce = [].slice.call(this.observer.takeRecords()), _e = Ce.slice(); _e.length > 0; )
|
|
@@ -42555,10 +42561,10 @@ function requireQuill() {
|
|
|
42555
42561
|
(Me < 0 || we.length < Me) && (Me = null);
|
|
42556
42562
|
var Ie = be(we, Se), ze = we.substring(0, Ie);
|
|
42557
42563
|
we = we.substring(Ie), Se = Se.substring(Ie), Ie = fe(we, Se);
|
|
42558
|
-
var
|
|
42564
|
+
var Ue = we.substring(we.length - Ie);
|
|
42559
42565
|
we = we.substring(0, we.length - Ie), Se = Se.substring(0, Se.length - Ie);
|
|
42560
42566
|
var Le = ue(we, Se);
|
|
42561
|
-
return ze && Le.unshift([de, ze]),
|
|
42567
|
+
return ze && Le.unshift([de, ze]), Ue && Le.push([de, Ue]), ve(Le), Me != null && (Le = ye(Le, Me)), Le = Ae(Le), Le;
|
|
42562
42568
|
}
|
|
42563
42569
|
function ue(we, Se) {
|
|
42564
42570
|
var Me;
|
|
@@ -42566,29 +42572,29 @@ function requireQuill() {
|
|
|
42566
42572
|
return [[re, Se]];
|
|
42567
42573
|
if (!Se)
|
|
42568
42574
|
return [[ne, we]];
|
|
42569
|
-
var Ie = we.length > Se.length ? we : Se, ze = we.length > Se.length ? Se : we,
|
|
42570
|
-
if (
|
|
42575
|
+
var Ie = we.length > Se.length ? we : Se, ze = we.length > Se.length ? Se : we, Ue = Ie.indexOf(ze);
|
|
42576
|
+
if (Ue != -1)
|
|
42571
42577
|
return Me = [
|
|
42572
|
-
[re, Ie.substring(0,
|
|
42578
|
+
[re, Ie.substring(0, Ue)],
|
|
42573
42579
|
[de, ze],
|
|
42574
|
-
[re, Ie.substring(
|
|
42580
|
+
[re, Ie.substring(Ue + ze.length)]
|
|
42575
42581
|
], we.length > Se.length && (Me[0][0] = Me[2][0] = ne), Me;
|
|
42576
42582
|
if (ze.length == 1)
|
|
42577
42583
|
return [[ne, we], [re, Se]];
|
|
42578
42584
|
var Le = ge(we, Se);
|
|
42579
42585
|
if (Le) {
|
|
42580
|
-
var Oe = Le[0], qe = Le[1], Pe = Le[2],
|
|
42586
|
+
var Oe = Le[0], qe = Le[1], Pe = Le[2], He = Le[3], We = Le[4], Ge = ce(Oe, Pe), Ye = ce(qe, He);
|
|
42581
42587
|
return Ge.concat([[de, We]], Ye);
|
|
42582
42588
|
}
|
|
42583
42589
|
return pe(we, Se);
|
|
42584
42590
|
}
|
|
42585
42591
|
function pe(we, Se) {
|
|
42586
|
-
for (var Me = we.length, Ie = Se.length, ze = Math.ceil((Me + Ie) / 2),
|
|
42592
|
+
for (var Me = we.length, Ie = Se.length, ze = Math.ceil((Me + Ie) / 2), Ue = ze, Le = 2 * ze, Oe = new Array(Le), qe = new Array(Le), Pe = 0; Pe < Le; Pe++)
|
|
42587
42593
|
Oe[Pe] = -1, qe[Pe] = -1;
|
|
42588
|
-
Oe[
|
|
42589
|
-
for (var
|
|
42594
|
+
Oe[Ue + 1] = 0, qe[Ue + 1] = 0;
|
|
42595
|
+
for (var He = Me - Ie, We = He % 2 != 0, Ge = 0, Ye = 0, bt = 0, Xe = 0, Ze = 0; Ze < ze; Ze++) {
|
|
42590
42596
|
for (var Fe = -Ze + Ge; Fe <= Ze - Ye; Fe += 2) {
|
|
42591
|
-
var je =
|
|
42597
|
+
var je = Ue + Fe, Be;
|
|
42592
42598
|
Fe == -Ze || Fe != Ze && Oe[je - 1] < Oe[je + 1] ? Be = Oe[je + 1] : Be = Oe[je - 1] + 1;
|
|
42593
42599
|
for (var Qe = Be - Fe; Be < Me && Qe < Ie && we.charAt(Be) == Se.charAt(Qe); )
|
|
42594
42600
|
Be++, Qe++;
|
|
@@ -42597,7 +42603,7 @@ function requireQuill() {
|
|
|
42597
42603
|
else if (Qe > Ie)
|
|
42598
42604
|
Ge += 2;
|
|
42599
42605
|
else if (We) {
|
|
42600
|
-
var tt =
|
|
42606
|
+
var tt = Ue + He - Fe;
|
|
42601
42607
|
if (tt >= 0 && tt < Le && qe[tt] != -1) {
|
|
42602
42608
|
var Ve = Me - qe[tt];
|
|
42603
42609
|
if (Be >= Ve)
|
|
@@ -42605,19 +42611,19 @@ function requireQuill() {
|
|
|
42605
42611
|
}
|
|
42606
42612
|
}
|
|
42607
42613
|
}
|
|
42608
|
-
for (var Je = -Ze +
|
|
42609
|
-
var tt =
|
|
42614
|
+
for (var Je = -Ze + bt; Je <= Ze - Xe; Je += 2) {
|
|
42615
|
+
var tt = Ue + Je, Ve;
|
|
42610
42616
|
Je == -Ze || Je != Ze && qe[tt - 1] < qe[tt + 1] ? Ve = qe[tt + 1] : Ve = qe[tt - 1] + 1;
|
|
42611
42617
|
for (var nt = Ve - Je; Ve < Me && nt < Ie && we.charAt(Me - Ve - 1) == Se.charAt(Ie - nt - 1); )
|
|
42612
42618
|
Ve++, nt++;
|
|
42613
42619
|
if (qe[tt] = Ve, Ve > Me)
|
|
42614
42620
|
Xe += 2;
|
|
42615
42621
|
else if (nt > Ie)
|
|
42616
|
-
|
|
42622
|
+
bt += 2;
|
|
42617
42623
|
else if (!We) {
|
|
42618
|
-
var je =
|
|
42624
|
+
var je = Ue + He - Je;
|
|
42619
42625
|
if (je >= 0 && je < Le && Oe[je] != -1) {
|
|
42620
|
-
var Be = Oe[je], Qe =
|
|
42626
|
+
var Be = Oe[je], Qe = Ue + Be - je;
|
|
42621
42627
|
if (Ve = Me - Ve, Be >= Ve)
|
|
42622
42628
|
return he(we, Se, Be, Qe);
|
|
42623
42629
|
}
|
|
@@ -42627,37 +42633,37 @@ function requireQuill() {
|
|
|
42627
42633
|
return [[ne, we], [re, Se]];
|
|
42628
42634
|
}
|
|
42629
42635
|
function he(we, Se, Me, Ie) {
|
|
42630
|
-
var ze = we.substring(0, Me),
|
|
42636
|
+
var ze = we.substring(0, Me), Ue = Se.substring(0, Ie), Le = we.substring(Me), Oe = Se.substring(Ie), qe = ce(ze, Ue), Pe = ce(Le, Oe);
|
|
42631
42637
|
return qe.concat(Pe);
|
|
42632
42638
|
}
|
|
42633
42639
|
function be(we, Se) {
|
|
42634
42640
|
if (!we || !Se || we.charAt(0) != Se.charAt(0))
|
|
42635
42641
|
return 0;
|
|
42636
|
-
for (var Me = 0, Ie = Math.min(we.length, Se.length), ze = Ie,
|
|
42637
|
-
we.substring(
|
|
42642
|
+
for (var Me = 0, Ie = Math.min(we.length, Se.length), ze = Ie, Ue = 0; Me < ze; )
|
|
42643
|
+
we.substring(Ue, ze) == Se.substring(Ue, ze) ? (Me = ze, Ue = Me) : Ie = ze, ze = Math.floor((Ie - Me) / 2 + Me);
|
|
42638
42644
|
return ze;
|
|
42639
42645
|
}
|
|
42640
42646
|
function fe(we, Se) {
|
|
42641
42647
|
if (!we || !Se || we.charAt(we.length - 1) != Se.charAt(Se.length - 1))
|
|
42642
42648
|
return 0;
|
|
42643
|
-
for (var Me = 0, Ie = Math.min(we.length, Se.length), ze = Ie,
|
|
42644
|
-
we.substring(we.length - ze, we.length -
|
|
42649
|
+
for (var Me = 0, Ie = Math.min(we.length, Se.length), ze = Ie, Ue = 0; Me < ze; )
|
|
42650
|
+
we.substring(we.length - ze, we.length - Ue) == Se.substring(Se.length - ze, Se.length - Ue) ? (Me = ze, Ue = Me) : Ie = ze, ze = Math.floor((Ie - Me) / 2 + Me);
|
|
42645
42651
|
return ze;
|
|
42646
42652
|
}
|
|
42647
42653
|
function ge(we, Se) {
|
|
42648
42654
|
var Me = we.length > Se.length ? we : Se, Ie = we.length > Se.length ? Se : we;
|
|
42649
42655
|
if (Me.length < 4 || Ie.length * 2 < Me.length)
|
|
42650
42656
|
return null;
|
|
42651
|
-
function ze(Ye,
|
|
42652
|
-
for (var Ze = Ye.substring(Xe, Xe + Math.floor(Ye.length / 4)), Fe = -1, je = "", Be, Qe, tt, Ve; (Fe =
|
|
42657
|
+
function ze(Ye, bt, Xe) {
|
|
42658
|
+
for (var Ze = Ye.substring(Xe, Xe + Math.floor(Ye.length / 4)), Fe = -1, je = "", Be, Qe, tt, Ve; (Fe = bt.indexOf(Ze, Fe + 1)) != -1; ) {
|
|
42653
42659
|
var Je = be(
|
|
42654
42660
|
Ye.substring(Xe),
|
|
42655
|
-
|
|
42661
|
+
bt.substring(Fe)
|
|
42656
42662
|
), nt = fe(
|
|
42657
42663
|
Ye.substring(0, Xe),
|
|
42658
|
-
|
|
42664
|
+
bt.substring(0, Fe)
|
|
42659
42665
|
);
|
|
42660
|
-
je.length < nt + Je && (je =
|
|
42666
|
+
je.length < nt + Je && (je = bt.substring(Fe - nt, Fe) + bt.substring(Fe, Fe + Je), Be = Ye.substring(0, Xe - nt), Qe = Ye.substring(Xe + Je), tt = bt.substring(0, Fe - nt), Ve = bt.substring(Fe + Je));
|
|
42661
42667
|
}
|
|
42662
42668
|
return je.length * 2 >= Ye.length ? [
|
|
42663
42669
|
Be,
|
|
@@ -42667,7 +42673,7 @@ function requireQuill() {
|
|
|
42667
42673
|
je
|
|
42668
42674
|
] : null;
|
|
42669
42675
|
}
|
|
42670
|
-
var
|
|
42676
|
+
var Ue = ze(
|
|
42671
42677
|
Me,
|
|
42672
42678
|
Ie,
|
|
42673
42679
|
Math.ceil(Me.length / 4)
|
|
@@ -42676,32 +42682,32 @@ function requireQuill() {
|
|
|
42676
42682
|
Ie,
|
|
42677
42683
|
Math.ceil(Me.length / 2)
|
|
42678
42684
|
), Oe;
|
|
42679
|
-
if (!
|
|
42685
|
+
if (!Ue && !Le)
|
|
42680
42686
|
return null;
|
|
42681
|
-
Le ?
|
|
42682
|
-
var qe, Pe,
|
|
42683
|
-
we.length > Se.length ? (qe = Oe[0], Pe = Oe[1],
|
|
42687
|
+
Le ? Ue ? Oe = Ue[4].length > Le[4].length ? Ue : Le : Oe = Le : Oe = Ue;
|
|
42688
|
+
var qe, Pe, He, We;
|
|
42689
|
+
we.length > Se.length ? (qe = Oe[0], Pe = Oe[1], He = Oe[2], We = Oe[3]) : (He = Oe[0], We = Oe[1], qe = Oe[2], Pe = Oe[3]);
|
|
42684
42690
|
var Ge = Oe[4];
|
|
42685
|
-
return [qe, Pe,
|
|
42691
|
+
return [qe, Pe, He, We, Ge];
|
|
42686
42692
|
}
|
|
42687
42693
|
function ve(we) {
|
|
42688
42694
|
we.push([de, ""]);
|
|
42689
|
-
for (var Se = 0, Me = 0, Ie = 0, ze = "",
|
|
42695
|
+
for (var Se = 0, Me = 0, Ie = 0, ze = "", Ue = "", Le; Se < we.length; )
|
|
42690
42696
|
switch (we[Se][0]) {
|
|
42691
42697
|
case re:
|
|
42692
|
-
Ie++,
|
|
42698
|
+
Ie++, Ue += we[Se][1], Se++;
|
|
42693
42699
|
break;
|
|
42694
42700
|
case ne:
|
|
42695
42701
|
Me++, ze += we[Se][1], Se++;
|
|
42696
42702
|
break;
|
|
42697
42703
|
case de:
|
|
42698
|
-
Me + Ie > 1 ? (Me !== 0 && Ie !== 0 && (Le = be(
|
|
42704
|
+
Me + Ie > 1 ? (Me !== 0 && Ie !== 0 && (Le = be(Ue, ze), Le !== 0 && (Se - Me - Ie > 0 && we[Se - Me - Ie - 1][0] == de ? we[Se - Me - Ie - 1][1] += Ue.substring(0, Le) : (we.splice(0, 0, [
|
|
42699
42705
|
de,
|
|
42700
|
-
|
|
42701
|
-
]), Se++),
|
|
42706
|
+
Ue.substring(0, Le)
|
|
42707
|
+
]), Se++), Ue = Ue.substring(Le), ze = ze.substring(Le)), Le = fe(Ue, ze), Le !== 0 && (we[Se][1] = Ue.substring(Ue.length - Le) + we[Se][1], Ue = Ue.substring(0, Ue.length - Le), ze = ze.substring(0, ze.length - Le))), Me === 0 ? we.splice(
|
|
42702
42708
|
Se - Ie,
|
|
42703
42709
|
Me + Ie,
|
|
42704
|
-
[re,
|
|
42710
|
+
[re, Ue]
|
|
42705
42711
|
) : Ie === 0 ? we.splice(
|
|
42706
42712
|
Se - Me,
|
|
42707
42713
|
Me + Ie,
|
|
@@ -42710,8 +42716,8 @@ function requireQuill() {
|
|
|
42710
42716
|
Se - Me - Ie,
|
|
42711
42717
|
Me + Ie,
|
|
42712
42718
|
[ne, ze],
|
|
42713
|
-
[re,
|
|
42714
|
-
), Se = Se - Me - Ie + (Me ? 1 : 0) + (Ie ? 1 : 0) + 1) : Se !== 0 && we[Se - 1][0] == de ? (we[Se - 1][1] += we[Se][1], we.splice(Se, 1)) : Se++, Ie = 0, Me = 0, ze = "",
|
|
42719
|
+
[re, Ue]
|
|
42720
|
+
), Se = Se - Me - Ie + (Me ? 1 : 0) + (Ie ? 1 : 0) + 1) : Se !== 0 && we[Se - 1][0] == de ? (we[Se - 1][1] += we[Se][1], we.splice(Se, 1)) : Se++, Ie = 0, Me = 0, ze = "", Ue = "";
|
|
42715
42721
|
break;
|
|
42716
42722
|
}
|
|
42717
42723
|
we[we.length - 1][1] === "" && we.pop();
|
|
@@ -42728,30 +42734,30 @@ function requireQuill() {
|
|
|
42728
42734
|
for (var Me = 0, Ie = 0; Ie < we.length; Ie++) {
|
|
42729
42735
|
var ze = we[Ie];
|
|
42730
42736
|
if (ze[0] === ne || ze[0] === de) {
|
|
42731
|
-
var
|
|
42732
|
-
if (Se ===
|
|
42737
|
+
var Ue = Me + ze[1].length;
|
|
42738
|
+
if (Se === Ue)
|
|
42733
42739
|
return [Ie + 1, we];
|
|
42734
|
-
if (Se <
|
|
42740
|
+
if (Se < Ue) {
|
|
42735
42741
|
we = we.slice();
|
|
42736
42742
|
var Le = Se - Me, Oe = [ze[0], ze[1].slice(0, Le)], qe = [ze[0], ze[1].slice(Le)];
|
|
42737
42743
|
return we.splice(Ie, 1, Oe, qe), [Ie + 1, we];
|
|
42738
42744
|
} else
|
|
42739
|
-
Me =
|
|
42745
|
+
Me = Ue;
|
|
42740
42746
|
}
|
|
42741
42747
|
}
|
|
42742
42748
|
throw new Error("cursor_pos is out of bounds!");
|
|
42743
42749
|
}
|
|
42744
42750
|
function ye(we, Se) {
|
|
42745
|
-
var Me = _e(we, Se), Ie = Me[1], ze = Me[0],
|
|
42746
|
-
if (
|
|
42751
|
+
var Me = _e(we, Se), Ie = Me[1], ze = Me[0], Ue = Ie[ze], Le = Ie[ze + 1];
|
|
42752
|
+
if (Ue == null)
|
|
42747
42753
|
return we;
|
|
42748
|
-
if (
|
|
42754
|
+
if (Ue[0] !== de)
|
|
42749
42755
|
return we;
|
|
42750
|
-
if (Le != null &&
|
|
42751
|
-
return Ie.splice(ze, 2, Le,
|
|
42752
|
-
if (Le != null && Le[1].indexOf(
|
|
42753
|
-
Ie.splice(ze, 2, [Le[0],
|
|
42754
|
-
var Oe = Le[1].slice(
|
|
42756
|
+
if (Le != null && Ue[1] + Le[1] === Le[1] + Ue[1])
|
|
42757
|
+
return Ie.splice(ze, 2, Le, Ue), Ce(Ie, ze, 2);
|
|
42758
|
+
if (Le != null && Le[1].indexOf(Ue[1]) === 0) {
|
|
42759
|
+
Ie.splice(ze, 2, [Le[0], Ue[1]], [0, Ue[1]]);
|
|
42760
|
+
var Oe = Le[1].slice(Ue[1].length);
|
|
42755
42761
|
return Oe.length > 0 && Ie.splice(ze + 2, 0, [Le[0], Oe]), Ce(Ie, ze, 3);
|
|
42756
42762
|
} else
|
|
42757
42763
|
return we;
|
|
@@ -42765,15 +42771,15 @@ function requireQuill() {
|
|
|
42765
42771
|
we[ze - 2][0] === de && Ie(we[ze - 2][1]) && we[ze - 1][0] === ne && Me(we[ze - 1][1]) && we[ze][0] === re && Me(we[ze][1]) && (Se = !0, we[ze - 1][1] = we[ze - 2][1].slice(-1) + we[ze - 1][1], we[ze][1] = we[ze - 2][1].slice(-1) + we[ze][1], we[ze - 2][1] = we[ze - 2][1].slice(0, -1));
|
|
42766
42772
|
if (!Se)
|
|
42767
42773
|
return we;
|
|
42768
|
-
for (var
|
|
42769
|
-
we[ze][1].length > 0 &&
|
|
42770
|
-
return
|
|
42774
|
+
for (var Ue = [], ze = 0; ze < we.length; ze += 1)
|
|
42775
|
+
we[ze][1].length > 0 && Ue.push(we[ze]);
|
|
42776
|
+
return Ue;
|
|
42771
42777
|
}
|
|
42772
42778
|
function Ce(we, Se, Me) {
|
|
42773
42779
|
for (var Ie = Se + Me - 1; Ie >= 0 && Ie >= Se - 1; Ie--)
|
|
42774
42780
|
if (Ie + 1 < we.length) {
|
|
42775
|
-
var ze = we[Ie],
|
|
42776
|
-
ze[0] ===
|
|
42781
|
+
var ze = we[Ie], Ue = we[Ie + 1];
|
|
42782
|
+
ze[0] === Ue[1] && we.splice(Ie, 2, [ze[0], ze[1] + Ue[1]]);
|
|
42777
42783
|
}
|
|
42778
42784
|
return we;
|
|
42779
42785
|
}
|
|
@@ -42946,14 +42952,14 @@ function requireQuill() {
|
|
|
42946
42952
|
return function(_t, At, Et) {
|
|
42947
42953
|
return At && vt(_t.prototype, At), Et && vt(_t, Et), _t;
|
|
42948
42954
|
};
|
|
42949
|
-
})(), ue = ne(3), pe = qe(ue), he = ne(2), be = qe(he), fe = ne(0), ge = qe(fe), ve = ne(5), me = qe(ve), _e = ne(10), ye = qe(_e), Ae = ne(9), Ce = qe(Ae), we = ne(37), Se = ne(38), Me = ne(13), Ie = qe(Me), ze = ne(26),
|
|
42955
|
+
})(), ue = ne(3), pe = qe(ue), he = ne(2), be = qe(he), fe = ne(0), ge = qe(fe), ve = ne(5), me = qe(ve), _e = ne(10), ye = qe(_e), Ae = ne(9), Ce = qe(Ae), we = ne(37), Se = ne(38), Me = ne(13), Ie = qe(Me), ze = ne(26), Ue = ne(39), Le = ne(40), Oe = ne(41);
|
|
42950
42956
|
function qe(vt) {
|
|
42951
42957
|
return vt && vt.__esModule ? vt : { default: vt };
|
|
42952
42958
|
}
|
|
42953
42959
|
function Pe(vt, _t, At) {
|
|
42954
42960
|
return _t in vt ? Object.defineProperty(vt, _t, { value: At, enumerable: !0, configurable: !0, writable: !0 }) : vt[_t] = At, vt;
|
|
42955
42961
|
}
|
|
42956
|
-
function
|
|
42962
|
+
function He(vt, _t) {
|
|
42957
42963
|
if (!(vt instanceof _t))
|
|
42958
42964
|
throw new TypeError("Cannot call a class as a function");
|
|
42959
42965
|
}
|
|
@@ -42967,14 +42973,14 @@ function requireQuill() {
|
|
|
42967
42973
|
throw new TypeError("Super expression must either be null or a function, not " + typeof _t);
|
|
42968
42974
|
vt.prototype = Object.create(_t && _t.prototype, { constructor: { value: vt, enumerable: !1, writable: !0, configurable: !0 } }), _t && (Object.setPrototypeOf ? Object.setPrototypeOf(vt, _t) : vt.__proto__ = _t);
|
|
42969
42975
|
}
|
|
42970
|
-
var Ye = (0, ye.default)("quill:clipboard"),
|
|
42976
|
+
var Ye = (0, ye.default)("quill:clipboard"), bt = "__ql-matcher", Xe = [[Node.TEXT_NODE, es], [Node.TEXT_NODE, Ht], ["br", St], [Node.ELEMENT_NODE, Ht], [Node.ELEMENT_NODE, $t], [Node.ELEMENT_NODE, jt], [Node.ELEMENT_NODE, ft], [Node.ELEMENT_NODE, ns], ["li", It], ["b", nt.bind(nt, "bold")], ["i", nt.bind(nt, "italic")], ["style", Pt]], Ze = [we.AlignAttribute, Ue.DirectionAttribute].reduce(function(vt, _t) {
|
|
42971
42977
|
return vt[_t.keyName] = _t, vt;
|
|
42972
|
-
}, {}), Fe = [we.AlignStyle, Se.BackgroundStyle, ze.ColorStyle,
|
|
42978
|
+
}, {}), Fe = [we.AlignStyle, Se.BackgroundStyle, ze.ColorStyle, Ue.DirectionStyle, Le.FontStyle, Oe.SizeStyle].reduce(function(vt, _t) {
|
|
42973
42979
|
return vt[_t.keyName] = _t, vt;
|
|
42974
42980
|
}, {}), je = (function(vt) {
|
|
42975
42981
|
Ge(_t, vt);
|
|
42976
42982
|
function _t(At, Et) {
|
|
42977
|
-
|
|
42983
|
+
He(this, _t);
|
|
42978
42984
|
var xt = We(this, (_t.__proto__ || Object.getPrototypeOf(_t)).call(this, At, Et));
|
|
42979
42985
|
return xt.quill.root.addEventListener("paste", xt.onPaste.bind(xt)), xt.container = xt.quill.addContainer("ql-clipboard"), xt.container.setAttribute("contenteditable", !0), xt.container.setAttribute("tabindex", -1), xt.matchers = [], Xe.concat(xt.options.matchers).forEach(function(Nt) {
|
|
42980
42986
|
var Ft = de(Nt, 2), Ut = Ft[0], us = Ft[1];
|
|
@@ -43037,7 +43043,7 @@ function requireQuill() {
|
|
|
43037
43043
|
break;
|
|
43038
43044
|
default:
|
|
43039
43045
|
[].forEach.call(Et.container.querySelectorAll(us), function(Xt) {
|
|
43040
|
-
Xt[
|
|
43046
|
+
Xt[bt] = Xt[bt] || [], Xt[bt].push(cs);
|
|
43041
43047
|
});
|
|
43042
43048
|
break;
|
|
43043
43049
|
}
|
|
@@ -43081,7 +43087,7 @@ function requireQuill() {
|
|
|
43081
43087
|
var Nt = Je(xt, _t, At);
|
|
43082
43088
|
return xt.nodeType === vt.ELEMENT_NODE && (Nt = _t.reduce(function(Ft, Ut) {
|
|
43083
43089
|
return Ut(xt, Ft);
|
|
43084
|
-
}, Nt), Nt = (xt[
|
|
43090
|
+
}, Nt), Nt = (xt[bt] || []).reduce(function(Ft, Ut) {
|
|
43085
43091
|
return Ut(xt, Ft);
|
|
43086
43092
|
}, Nt)), Et.concat(Nt);
|
|
43087
43093
|
}, new be.default()) : new be.default();
|
|
@@ -43234,45 +43240,45 @@ function requireQuill() {
|
|
|
43234
43240
|
value: !0
|
|
43235
43241
|
}), oe.addControls = oe.default = void 0;
|
|
43236
43242
|
var re = /* @__PURE__ */ (function() {
|
|
43237
|
-
function qe(Pe,
|
|
43238
|
-
var We = [], Ge = !0, Ye = !1,
|
|
43243
|
+
function qe(Pe, He) {
|
|
43244
|
+
var We = [], Ge = !0, Ye = !1, bt = void 0;
|
|
43239
43245
|
try {
|
|
43240
|
-
for (var Xe = Pe[Symbol.iterator](), Ze; !(Ge = (Ze = Xe.next()).done) && (We.push(Ze.value), !(
|
|
43246
|
+
for (var Xe = Pe[Symbol.iterator](), Ze; !(Ge = (Ze = Xe.next()).done) && (We.push(Ze.value), !(He && We.length === He)); Ge = !0)
|
|
43241
43247
|
;
|
|
43242
43248
|
} catch (Fe) {
|
|
43243
|
-
Ye = !0,
|
|
43249
|
+
Ye = !0, bt = Fe;
|
|
43244
43250
|
} finally {
|
|
43245
43251
|
try {
|
|
43246
43252
|
!Ge && Xe.return && Xe.return();
|
|
43247
43253
|
} finally {
|
|
43248
|
-
if (Ye) throw
|
|
43254
|
+
if (Ye) throw bt;
|
|
43249
43255
|
}
|
|
43250
43256
|
}
|
|
43251
43257
|
return We;
|
|
43252
43258
|
}
|
|
43253
|
-
return function(Pe,
|
|
43259
|
+
return function(Pe, He) {
|
|
43254
43260
|
if (Array.isArray(Pe))
|
|
43255
43261
|
return Pe;
|
|
43256
43262
|
if (Symbol.iterator in Object(Pe))
|
|
43257
|
-
return qe(Pe,
|
|
43263
|
+
return qe(Pe, He);
|
|
43258
43264
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
43259
43265
|
};
|
|
43260
43266
|
})(), de = /* @__PURE__ */ (function() {
|
|
43261
|
-
function qe(Pe,
|
|
43262
|
-
for (var We = 0; We <
|
|
43263
|
-
var Ge =
|
|
43267
|
+
function qe(Pe, He) {
|
|
43268
|
+
for (var We = 0; We < He.length; We++) {
|
|
43269
|
+
var Ge = He[We];
|
|
43264
43270
|
Ge.enumerable = Ge.enumerable || !1, Ge.configurable = !0, "value" in Ge && (Ge.writable = !0), Object.defineProperty(Pe, Ge.key, Ge);
|
|
43265
43271
|
}
|
|
43266
43272
|
}
|
|
43267
|
-
return function(Pe,
|
|
43268
|
-
return
|
|
43273
|
+
return function(Pe, He, We) {
|
|
43274
|
+
return He && qe(Pe.prototype, He), We && qe(Pe, We), Pe;
|
|
43269
43275
|
};
|
|
43270
43276
|
})(), ce = ne(2), ue = ye(ce), pe = ne(0), he = ye(pe), be = ne(5), fe = ye(be), ge = ne(10), ve = ye(ge), me = ne(9), _e = ye(me);
|
|
43271
43277
|
function ye(qe) {
|
|
43272
43278
|
return qe && qe.__esModule ? qe : { default: qe };
|
|
43273
43279
|
}
|
|
43274
|
-
function Ae(qe, Pe,
|
|
43275
|
-
return Pe in qe ? Object.defineProperty(qe, Pe, { value:
|
|
43280
|
+
function Ae(qe, Pe, He) {
|
|
43281
|
+
return Pe in qe ? Object.defineProperty(qe, Pe, { value: He, enumerable: !0, configurable: !0, writable: !0 }) : qe[Pe] = He, qe;
|
|
43276
43282
|
}
|
|
43277
43283
|
function Ce(qe, Pe) {
|
|
43278
43284
|
if (!(qe instanceof Pe))
|
|
@@ -43290,15 +43296,15 @@ function requireQuill() {
|
|
|
43290
43296
|
}
|
|
43291
43297
|
var Me = "getRootNode" in document, Ie = (0, ve.default)("quill:toolbar"), ze = (function(qe) {
|
|
43292
43298
|
Se(Pe, qe);
|
|
43293
|
-
function Pe(
|
|
43299
|
+
function Pe(He, We) {
|
|
43294
43300
|
Ce(this, Pe);
|
|
43295
|
-
var Ge = we(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this,
|
|
43301
|
+
var Ge = we(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this, He, We));
|
|
43296
43302
|
if (Array.isArray(Ge.options.container)) {
|
|
43297
43303
|
var Ye = document.createElement("div");
|
|
43298
|
-
Le(Ye, Ge.options.container),
|
|
43304
|
+
Le(Ye, Ge.options.container), He.container.parentNode.insertBefore(Ye, He.container), Ge.container = Ye;
|
|
43299
43305
|
} else if (typeof Ge.options.container == "string") {
|
|
43300
|
-
var
|
|
43301
|
-
Ge.container =
|
|
43306
|
+
var bt = Me ? He.container.getRootNode() : document;
|
|
43307
|
+
Ge.container = bt.querySelector(Ge.options.container);
|
|
43302
43308
|
} else
|
|
43303
43309
|
Ge.container = Ge.options.container;
|
|
43304
43310
|
if (!(Ge.container instanceof HTMLElement)) {
|
|
@@ -43338,8 +43344,8 @@ function requireQuill() {
|
|
|
43338
43344
|
return;
|
|
43339
43345
|
}
|
|
43340
43346
|
}
|
|
43341
|
-
var
|
|
43342
|
-
We.addEventListener(
|
|
43347
|
+
var bt = We.tagName === "SELECT" ? "change" : "click";
|
|
43348
|
+
We.addEventListener(bt, function(Xe) {
|
|
43343
43349
|
var Ze = void 0;
|
|
43344
43350
|
if (We.tagName === "SELECT") {
|
|
43345
43351
|
if (We.selectedIndex < 0) return;
|
|
@@ -43365,7 +43371,7 @@ function requireQuill() {
|
|
|
43365
43371
|
value: function(We) {
|
|
43366
43372
|
var Ge = We == null ? {} : this.quill.getFormat(We);
|
|
43367
43373
|
this.controls.forEach(function(Ye) {
|
|
43368
|
-
var
|
|
43374
|
+
var bt = re(Ye, 2), Xe = bt[0], Ze = bt[1];
|
|
43369
43375
|
if (Ze.tagName === "SELECT") {
|
|
43370
43376
|
var Fe = void 0;
|
|
43371
43377
|
if (We == null)
|
|
@@ -43389,26 +43395,26 @@ function requireQuill() {
|
|
|
43389
43395
|
}]), Pe;
|
|
43390
43396
|
})(_e.default);
|
|
43391
43397
|
ze.DEFAULTS = {};
|
|
43392
|
-
function
|
|
43398
|
+
function Ue(qe, Pe, He) {
|
|
43393
43399
|
var We = document.createElement("button");
|
|
43394
|
-
We.setAttribute("type", "button"), We.classList.add("ql-" + Pe),
|
|
43400
|
+
We.setAttribute("type", "button"), We.classList.add("ql-" + Pe), He != null && (We.value = He), qe.appendChild(We);
|
|
43395
43401
|
}
|
|
43396
43402
|
function Le(qe, Pe) {
|
|
43397
|
-
Array.isArray(Pe[0]) || (Pe = [Pe]), Pe.forEach(function(
|
|
43403
|
+
Array.isArray(Pe[0]) || (Pe = [Pe]), Pe.forEach(function(He) {
|
|
43398
43404
|
var We = document.createElement("span");
|
|
43399
|
-
We.classList.add("ql-formats"),
|
|
43405
|
+
We.classList.add("ql-formats"), He.forEach(function(Ge) {
|
|
43400
43406
|
if (typeof Ge == "string")
|
|
43401
|
-
|
|
43407
|
+
Ue(We, Ge);
|
|
43402
43408
|
else {
|
|
43403
|
-
var Ye = Object.keys(Ge)[0],
|
|
43404
|
-
Array.isArray(
|
|
43409
|
+
var Ye = Object.keys(Ge)[0], bt = Ge[Ye];
|
|
43410
|
+
Array.isArray(bt) ? Oe(We, Ye, bt) : Ue(We, Ye, bt);
|
|
43405
43411
|
}
|
|
43406
43412
|
}), qe.appendChild(We);
|
|
43407
43413
|
});
|
|
43408
43414
|
}
|
|
43409
|
-
function Oe(qe, Pe,
|
|
43415
|
+
function Oe(qe, Pe, He) {
|
|
43410
43416
|
var We = document.createElement("select");
|
|
43411
|
-
We.classList.add("ql-" + Pe),
|
|
43417
|
+
We.classList.add("ql-" + Pe), He.forEach(function(Ge) {
|
|
43412
43418
|
var Ye = document.createElement("option");
|
|
43413
43419
|
Ge !== !1 ? Ye.setAttribute("value", Ge) : Ye.setAttribute("selected", "selected"), We.appendChild(Ye);
|
|
43414
43420
|
}), qe.appendChild(We);
|
|
@@ -43417,22 +43423,22 @@ function requireQuill() {
|
|
|
43417
43423
|
container: null,
|
|
43418
43424
|
handlers: {
|
|
43419
43425
|
clean: function() {
|
|
43420
|
-
var Pe = this,
|
|
43421
|
-
if (
|
|
43422
|
-
if (
|
|
43426
|
+
var Pe = this, He = this.quill.getSelection();
|
|
43427
|
+
if (He != null)
|
|
43428
|
+
if (He.length == 0) {
|
|
43423
43429
|
var We = this.quill.getFormat();
|
|
43424
43430
|
Object.keys(We).forEach(function(Ge) {
|
|
43425
43431
|
he.default.query(Ge, he.default.Scope.INLINE) != null && Pe.quill.format(Ge, !1);
|
|
43426
43432
|
});
|
|
43427
43433
|
} else
|
|
43428
|
-
this.quill.removeFormat(
|
|
43434
|
+
this.quill.removeFormat(He, fe.default.sources.USER);
|
|
43429
43435
|
},
|
|
43430
43436
|
direction: function(Pe) {
|
|
43431
|
-
var
|
|
43432
|
-
Pe === "rtl" &&
|
|
43437
|
+
var He = this.quill.getFormat().align;
|
|
43438
|
+
Pe === "rtl" && He == null ? this.quill.format("align", "right", fe.default.sources.USER) : !Pe && He === "right" && this.quill.format("align", !1, fe.default.sources.USER), this.quill.format("direction", Pe, fe.default.sources.USER);
|
|
43433
43439
|
},
|
|
43434
43440
|
indent: function(Pe) {
|
|
43435
|
-
var
|
|
43441
|
+
var He = this.quill.getSelection(), We = this.quill.getFormat(He), Ge = parseInt(We.indent || 0);
|
|
43436
43442
|
if (Pe === "+1" || Pe === "-1") {
|
|
43437
43443
|
var Ye = Pe === "+1" ? 1 : -1;
|
|
43438
43444
|
We.direction === "rtl" && (Ye *= -1), this.quill.format("indent", Ge + Ye, fe.default.sources.USER);
|
|
@@ -43442,7 +43448,7 @@ function requireQuill() {
|
|
|
43442
43448
|
Pe === !0 && (Pe = prompt("Enter link URL:")), this.quill.format("link", Pe, fe.default.sources.USER);
|
|
43443
43449
|
},
|
|
43444
43450
|
list: function(Pe) {
|
|
43445
|
-
var
|
|
43451
|
+
var He = this.quill.getSelection(), We = this.quill.getFormat(He);
|
|
43446
43452
|
Pe === "check" ? We.list === "checked" || We.list === "unchecked" ? this.quill.format("list", !1, fe.default.sources.USER) : this.quill.format("list", "unchecked", fe.default.sources.USER) : this.quill.format("list", Pe, fe.default.sources.USER);
|
|
43447
43453
|
}
|
|
43448
43454
|
}
|
|
@@ -43651,15 +43657,15 @@ function requireQuill() {
|
|
|
43651
43657
|
});
|
|
43652
43658
|
var re = /* @__PURE__ */ (function() {
|
|
43653
43659
|
function Le(Oe, qe) {
|
|
43654
|
-
var Pe = [],
|
|
43660
|
+
var Pe = [], He = !0, We = !1, Ge = void 0;
|
|
43655
43661
|
try {
|
|
43656
|
-
for (var Ye = Oe[Symbol.iterator](),
|
|
43662
|
+
for (var Ye = Oe[Symbol.iterator](), bt; !(He = (bt = Ye.next()).done) && (Pe.push(bt.value), !(qe && Pe.length === qe)); He = !0)
|
|
43657
43663
|
;
|
|
43658
43664
|
} catch (Xe) {
|
|
43659
43665
|
We = !0, Ge = Xe;
|
|
43660
43666
|
} finally {
|
|
43661
43667
|
try {
|
|
43662
|
-
!
|
|
43668
|
+
!He && Ye.return && Ye.return();
|
|
43663
43669
|
} finally {
|
|
43664
43670
|
if (We) throw Ge;
|
|
43665
43671
|
}
|
|
@@ -43675,21 +43681,21 @@ function requireQuill() {
|
|
|
43675
43681
|
};
|
|
43676
43682
|
})(), de = function Le(Oe, qe, Pe) {
|
|
43677
43683
|
Oe === null && (Oe = Function.prototype);
|
|
43678
|
-
var
|
|
43679
|
-
if (
|
|
43684
|
+
var He = Object.getOwnPropertyDescriptor(Oe, qe);
|
|
43685
|
+
if (He === void 0) {
|
|
43680
43686
|
var We = Object.getPrototypeOf(Oe);
|
|
43681
43687
|
return We === null ? void 0 : Le(We, qe, Pe);
|
|
43682
43688
|
} else {
|
|
43683
|
-
if ("value" in
|
|
43684
|
-
return
|
|
43685
|
-
var Ge =
|
|
43689
|
+
if ("value" in He)
|
|
43690
|
+
return He.value;
|
|
43691
|
+
var Ge = He.get;
|
|
43686
43692
|
return Ge === void 0 ? void 0 : Ge.call(Pe);
|
|
43687
43693
|
}
|
|
43688
43694
|
}, ce = /* @__PURE__ */ (function() {
|
|
43689
43695
|
function Le(Oe, qe) {
|
|
43690
43696
|
for (var Pe = 0; Pe < qe.length; Pe++) {
|
|
43691
|
-
var
|
|
43692
|
-
|
|
43697
|
+
var He = qe[Pe];
|
|
43698
|
+
He.enumerable = He.enumerable || !1, He.configurable = !0, "value" in He && (He.writable = !0), Object.defineProperty(Oe, He.key, He);
|
|
43693
43699
|
}
|
|
43694
43700
|
}
|
|
43695
43701
|
return function(Oe, qe, Pe) {
|
|
@@ -43717,13 +43723,13 @@ function requireQuill() {
|
|
|
43717
43723
|
Me(Oe, Le);
|
|
43718
43724
|
function Oe(qe, Pe) {
|
|
43719
43725
|
we(this, Oe), Pe.modules.toolbar != null && Pe.modules.toolbar.container == null && (Pe.modules.toolbar.container = Ie);
|
|
43720
|
-
var
|
|
43721
|
-
return
|
|
43726
|
+
var He = Se(this, (Oe.__proto__ || Object.getPrototypeOf(Oe)).call(this, qe, Pe));
|
|
43727
|
+
return He.quill.container.classList.add("ql-snow"), He;
|
|
43722
43728
|
}
|
|
43723
43729
|
return ce(Oe, [{
|
|
43724
43730
|
key: "extendToolbar",
|
|
43725
43731
|
value: function(Pe) {
|
|
43726
|
-
Pe.container.classList.add("ql-snow"), this.buildButtons([].slice.call(Pe.container.querySelectorAll("button")), Ae.default), this.buildPickers([].slice.call(Pe.container.querySelectorAll("select")), Ae.default), this.tooltip = new
|
|
43732
|
+
Pe.container.classList.add("ql-snow"), this.buildButtons([].slice.call(Pe.container.querySelectorAll("button")), Ae.default), this.buildPickers([].slice.call(Pe.container.querySelectorAll("select")), Ae.default), this.tooltip = new Ue(this.quill, this.options.bounds), Pe.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(He, We) {
|
|
43727
43733
|
Pe.handlers.link.call(Pe, !We.format.link);
|
|
43728
43734
|
});
|
|
43729
43735
|
}
|
|
@@ -43739,8 +43745,8 @@ function requireQuill() {
|
|
|
43739
43745
|
if (qe == null || qe.length == 0) return;
|
|
43740
43746
|
var Pe = this.quill.getText(qe);
|
|
43741
43747
|
/^\S+@\S+\.\S+$/.test(Pe) && Pe.indexOf("mailto:") !== 0 && (Pe = "mailto:" + Pe);
|
|
43742
|
-
var
|
|
43743
|
-
|
|
43748
|
+
var He = this.quill.theme.tooltip;
|
|
43749
|
+
He.edit("link", Pe);
|
|
43744
43750
|
} else
|
|
43745
43751
|
this.quill.format("link", !1);
|
|
43746
43752
|
}
|
|
@@ -43748,31 +43754,31 @@ function requireQuill() {
|
|
|
43748
43754
|
}
|
|
43749
43755
|
}
|
|
43750
43756
|
});
|
|
43751
|
-
var
|
|
43757
|
+
var Ue = (function(Le) {
|
|
43752
43758
|
Me(Oe, Le);
|
|
43753
43759
|
function Oe(qe, Pe) {
|
|
43754
43760
|
we(this, Oe);
|
|
43755
|
-
var
|
|
43756
|
-
return
|
|
43761
|
+
var He = Se(this, (Oe.__proto__ || Object.getPrototypeOf(Oe)).call(this, qe, Pe));
|
|
43762
|
+
return He.preview = He.root.querySelector("a.ql-preview"), He;
|
|
43757
43763
|
}
|
|
43758
43764
|
return ce(Oe, [{
|
|
43759
43765
|
key: "listen",
|
|
43760
43766
|
value: function() {
|
|
43761
43767
|
var Pe = this;
|
|
43762
|
-
de(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(
|
|
43763
|
-
Pe.root.classList.contains("ql-editing") ? Pe.save() : Pe.edit("link", Pe.preview.textContent),
|
|
43764
|
-
}), this.root.querySelector("a.ql-remove").addEventListener("click", function(
|
|
43768
|
+
de(Oe.prototype.__proto__ || Object.getPrototypeOf(Oe.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(He) {
|
|
43769
|
+
Pe.root.classList.contains("ql-editing") ? Pe.save() : Pe.edit("link", Pe.preview.textContent), He.preventDefault();
|
|
43770
|
+
}), this.root.querySelector("a.ql-remove").addEventListener("click", function(He) {
|
|
43765
43771
|
if (Pe.linkRange != null) {
|
|
43766
43772
|
var We = Pe.linkRange;
|
|
43767
43773
|
Pe.restoreFocus(), Pe.quill.formatText(We, "link", !1, be.default.sources.USER), delete Pe.linkRange;
|
|
43768
43774
|
}
|
|
43769
|
-
|
|
43770
|
-
}), this.quill.on(be.default.events.SELECTION_CHANGE, function(
|
|
43771
|
-
if (
|
|
43772
|
-
if (
|
|
43773
|
-
var Ye = Pe.quill.scroll.descendant(me.default,
|
|
43775
|
+
He.preventDefault(), Pe.hide();
|
|
43776
|
+
}), this.quill.on(be.default.events.SELECTION_CHANGE, function(He, We, Ge) {
|
|
43777
|
+
if (He != null) {
|
|
43778
|
+
if (He.length === 0 && Ge === be.default.sources.USER) {
|
|
43779
|
+
var Ye = Pe.quill.scroll.descendant(me.default, He.index), bt = re(Ye, 2), Xe = bt[0], Ze = bt[1];
|
|
43774
43780
|
if (Xe != null) {
|
|
43775
|
-
Pe.linkRange = new _e.Range(
|
|
43781
|
+
Pe.linkRange = new _e.Range(He.index - Ze, Xe.length());
|
|
43776
43782
|
var Fe = me.default.formats(Xe.domNode);
|
|
43777
43783
|
Pe.preview.textContent = Fe, Pe.preview.setAttribute("href", Fe), Pe.show(), Pe.position(Pe.quill.getBounds(Pe.linkRange));
|
|
43778
43784
|
return;
|
|
@@ -43790,7 +43796,7 @@ function requireQuill() {
|
|
|
43790
43796
|
}
|
|
43791
43797
|
}]), Oe;
|
|
43792
43798
|
})(fe.BaseTooltip);
|
|
43793
|
-
|
|
43799
|
+
Ue.TEMPLATE = ['<a class="ql-preview" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), oe.default = ze;
|
|
43794
43800
|
}),
|
|
43795
43801
|
/* 64 */
|
|
43796
43802
|
/***/
|
|
@@ -43798,7 +43804,7 @@ function requireQuill() {
|
|
|
43798
43804
|
Object.defineProperty(oe, "__esModule", {
|
|
43799
43805
|
value: !0
|
|
43800
43806
|
});
|
|
43801
|
-
var re = ne(29), de = xt(re), ce = ne(37), ue = ne(39), pe = ne(65), he = ne(66), be = xt(he), fe = ne(67), ge = xt(fe), ve = ne(68), me = xt(ve), _e = ne(38), ye = ne(26), Ae = ne(40), Ce = ne(41), we = ne(57), Se = xt(we), Me = ne(69), Ie = xt(Me), ze = ne(27),
|
|
43807
|
+
var re = ne(29), de = xt(re), ce = ne(37), ue = ne(39), pe = ne(65), he = ne(66), be = xt(he), fe = ne(67), ge = xt(fe), ve = ne(68), me = xt(ve), _e = ne(38), ye = ne(26), Ae = ne(40), Ce = ne(41), we = ne(57), Se = xt(we), Me = ne(69), Ie = xt(Me), ze = ne(27), Ue = xt(ze), Le = ne(70), Oe = xt(Le), qe = ne(71), Pe = xt(qe), He = ne(72), We = xt(He), Ge = ne(73), Ye = xt(Ge), bt = ne(74), Xe = xt(bt), Ze = ne(13), Fe = xt(Ze), je = ne(75), Be = xt(je), Qe = ne(76), tt = xt(Qe), Ve = ne(58), Je = xt(Ve), nt = ne(42), ft = xt(nt), $t = ne(28), St = xt($t), Pt = ne(60), It = xt(Pt), Ht = ne(61), jt = xt(Ht), ns = ne(62), es = xt(ns), vt = ne(109), _t = xt(vt), At = ne(63), Et = xt(At);
|
|
43802
43808
|
function xt(Nt) {
|
|
43803
43809
|
return Nt && Nt.__esModule ? Nt : { default: Nt };
|
|
43804
43810
|
}
|
|
@@ -43831,7 +43837,7 @@ function requireQuill() {
|
|
|
43831
43837
|
"formats/bold": Se.default,
|
|
43832
43838
|
"formats/code": Ze.Code,
|
|
43833
43839
|
"formats/italic": Ie.default,
|
|
43834
|
-
"formats/link":
|
|
43840
|
+
"formats/link": Ue.default,
|
|
43835
43841
|
"formats/script": Oe.default,
|
|
43836
43842
|
"formats/strike": Pe.default,
|
|
43837
43843
|
"formats/underline": We.default,
|
|
@@ -44028,8 +44034,8 @@ function requireQuill() {
|
|
|
44028
44034
|
Se === null && (Se = Function.prototype);
|
|
44029
44035
|
var ze = Object.getOwnPropertyDescriptor(Se, Me);
|
|
44030
44036
|
if (ze === void 0) {
|
|
44031
|
-
var
|
|
44032
|
-
return
|
|
44037
|
+
var Ue = Object.getPrototypeOf(Se);
|
|
44038
|
+
return Ue === null ? void 0 : we(Ue, Me, Ie);
|
|
44033
44039
|
} else {
|
|
44034
44040
|
if ("value" in ze)
|
|
44035
44041
|
return ze.value;
|
|
@@ -44089,8 +44095,8 @@ function requireQuill() {
|
|
|
44089
44095
|
ye(Se, we), re(Se, null, [{
|
|
44090
44096
|
key: "create",
|
|
44091
44097
|
value: function(Ie) {
|
|
44092
|
-
var ze = Ie === "ordered" ? "OL" : "UL",
|
|
44093
|
-
return (Ie === "checked" || Ie === "unchecked") &&
|
|
44098
|
+
var ze = Ie === "ordered" ? "OL" : "UL", Ue = de(Se.__proto__ || Object.getPrototypeOf(Se), "create", this).call(this, ze);
|
|
44099
|
+
return (Ie === "checked" || Ie === "unchecked") && Ue.setAttribute("data-checked", Ie === "checked"), Ue;
|
|
44094
44100
|
}
|
|
44095
44101
|
}, {
|
|
44096
44102
|
key: "formats",
|
|
@@ -44126,7 +44132,7 @@ function requireQuill() {
|
|
|
44126
44132
|
if (Ie instanceof Ae)
|
|
44127
44133
|
de(Se.prototype.__proto__ || Object.getPrototypeOf(Se.prototype), "insertBefore", this).call(this, Ie, ze);
|
|
44128
44134
|
else {
|
|
44129
|
-
var
|
|
44135
|
+
var Ue = ze == null ? this.length() : ze.offset(this), Le = this.split(Ue);
|
|
44130
44136
|
Le.parent.insertBefore(Ie, Le);
|
|
44131
44137
|
}
|
|
44132
44138
|
}
|
|
@@ -44511,8 +44517,8 @@ function requireQuill() {
|
|
|
44511
44517
|
} else {
|
|
44512
44518
|
if ("value" in Ie)
|
|
44513
44519
|
return Ie.value;
|
|
44514
|
-
var
|
|
44515
|
-
return
|
|
44520
|
+
var Ue = Ie.get;
|
|
44521
|
+
return Ue === void 0 ? void 0 : Ue.call(Me);
|
|
44516
44522
|
}
|
|
44517
44523
|
}, ce = ne(36), ue = ge(ce), pe = ne(5), he = ge(pe), be = ne(9), fe = ge(be);
|
|
44518
44524
|
function ge(Ce) {
|
|
@@ -44580,25 +44586,25 @@ function requireQuill() {
|
|
|
44580
44586
|
}), oe.default = oe.CodeToken = oe.CodeBlock = void 0;
|
|
44581
44587
|
var re = /* @__PURE__ */ (function() {
|
|
44582
44588
|
function Me(Ie, ze) {
|
|
44583
|
-
for (var
|
|
44584
|
-
var Le = ze[
|
|
44589
|
+
for (var Ue = 0; Ue < ze.length; Ue++) {
|
|
44590
|
+
var Le = ze[Ue];
|
|
44585
44591
|
Le.enumerable = Le.enumerable || !1, Le.configurable = !0, "value" in Le && (Le.writable = !0), Object.defineProperty(Ie, Le.key, Le);
|
|
44586
44592
|
}
|
|
44587
44593
|
}
|
|
44588
|
-
return function(Ie, ze,
|
|
44589
|
-
return ze && Me(Ie.prototype, ze),
|
|
44594
|
+
return function(Ie, ze, Ue) {
|
|
44595
|
+
return ze && Me(Ie.prototype, ze), Ue && Me(Ie, Ue), Ie;
|
|
44590
44596
|
};
|
|
44591
|
-
})(), de = function Me(Ie, ze,
|
|
44597
|
+
})(), de = function Me(Ie, ze, Ue) {
|
|
44592
44598
|
Ie === null && (Ie = Function.prototype);
|
|
44593
44599
|
var Le = Object.getOwnPropertyDescriptor(Ie, ze);
|
|
44594
44600
|
if (Le === void 0) {
|
|
44595
44601
|
var Oe = Object.getPrototypeOf(Ie);
|
|
44596
|
-
return Oe === null ? void 0 : Me(Oe, ze,
|
|
44602
|
+
return Oe === null ? void 0 : Me(Oe, ze, Ue);
|
|
44597
44603
|
} else {
|
|
44598
44604
|
if ("value" in Le)
|
|
44599
44605
|
return Le.value;
|
|
44600
44606
|
var qe = Le.get;
|
|
44601
|
-
return qe === void 0 ? void 0 : qe.call(
|
|
44607
|
+
return qe === void 0 ? void 0 : qe.call(Ue);
|
|
44602
44608
|
}
|
|
44603
44609
|
}, ce = ne(0), ue = me(ce), pe = ne(5), he = me(pe), be = ne(9), fe = me(be), ge = ne(13), ve = me(ge);
|
|
44604
44610
|
function me(Me) {
|
|
@@ -44625,14 +44631,14 @@ function requireQuill() {
|
|
|
44625
44631
|
}
|
|
44626
44632
|
return re(Ie, [{
|
|
44627
44633
|
key: "replaceWith",
|
|
44628
|
-
value: function(
|
|
44629
|
-
this.domNode.textContent = this.domNode.textContent, this.attach(), de(Ie.prototype.__proto__ || Object.getPrototypeOf(Ie.prototype), "replaceWith", this).call(this,
|
|
44634
|
+
value: function(Ue) {
|
|
44635
|
+
this.domNode.textContent = this.domNode.textContent, this.attach(), de(Ie.prototype.__proto__ || Object.getPrototypeOf(Ie.prototype), "replaceWith", this).call(this, Ue);
|
|
44630
44636
|
}
|
|
44631
44637
|
}, {
|
|
44632
44638
|
key: "highlight",
|
|
44633
|
-
value: function(
|
|
44639
|
+
value: function(Ue) {
|
|
44634
44640
|
var Le = this.domNode.textContent;
|
|
44635
|
-
this.cachedText !== Le && ((Le.trim().length > 0 || this.cachedText == null) && (this.domNode.innerHTML =
|
|
44641
|
+
this.cachedText !== Le && ((Le.trim().length > 0 || this.cachedText == null) && (this.domNode.innerHTML = Ue(Le), this.domNode.normalize(), this.attach()), this.cachedText = Le);
|
|
44636
44642
|
}
|
|
44637
44643
|
}]), Ie;
|
|
44638
44644
|
})(ve.default);
|
|
@@ -44646,9 +44652,9 @@ function requireQuill() {
|
|
|
44646
44652
|
he.default.register(we, !0), he.default.register(Ce, !0);
|
|
44647
44653
|
}
|
|
44648
44654
|
}]);
|
|
44649
|
-
function Ie(ze,
|
|
44655
|
+
function Ie(ze, Ue) {
|
|
44650
44656
|
_e(this, Ie);
|
|
44651
|
-
var Le = ye(this, (Ie.__proto__ || Object.getPrototypeOf(Ie)).call(this, ze,
|
|
44657
|
+
var Le = ye(this, (Ie.__proto__ || Object.getPrototypeOf(Ie)).call(this, ze, Ue));
|
|
44652
44658
|
if (typeof Le.options.highlight != "function")
|
|
44653
44659
|
throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
|
|
44654
44660
|
var Oe = null;
|
|
@@ -44661,12 +44667,12 @@ function requireQuill() {
|
|
|
44661
44667
|
return re(Ie, [{
|
|
44662
44668
|
key: "highlight",
|
|
44663
44669
|
value: function() {
|
|
44664
|
-
var
|
|
44670
|
+
var Ue = this;
|
|
44665
44671
|
if (!this.quill.selection.composing) {
|
|
44666
44672
|
this.quill.update(he.default.sources.USER);
|
|
44667
44673
|
var Le = this.quill.getSelection();
|
|
44668
44674
|
this.quill.scroll.descendants(Ce).forEach(function(Oe) {
|
|
44669
|
-
Oe.highlight(
|
|
44675
|
+
Oe.highlight(Ue.options.highlight);
|
|
44670
44676
|
}), this.quill.update(he.default.sources.SILENT), Le != null && this.quill.setSelection(Le, he.default.sources.SILENT);
|
|
44671
44677
|
}
|
|
44672
44678
|
}
|
|
@@ -44848,12 +44854,12 @@ function requireQuill() {
|
|
|
44848
44854
|
Object.defineProperty(oe, "__esModule", {
|
|
44849
44855
|
value: !0
|
|
44850
44856
|
}), oe.default = oe.BubbleTooltip = void 0;
|
|
44851
|
-
var re = function Ie(ze,
|
|
44857
|
+
var re = function Ie(ze, Ue, Le) {
|
|
44852
44858
|
ze === null && (ze = Function.prototype);
|
|
44853
|
-
var Oe = Object.getOwnPropertyDescriptor(ze,
|
|
44859
|
+
var Oe = Object.getOwnPropertyDescriptor(ze, Ue);
|
|
44854
44860
|
if (Oe === void 0) {
|
|
44855
44861
|
var qe = Object.getPrototypeOf(ze);
|
|
44856
|
-
return qe === null ? void 0 : Ie(qe,
|
|
44862
|
+
return qe === null ? void 0 : Ie(qe, Ue, Le);
|
|
44857
44863
|
} else {
|
|
44858
44864
|
if ("value" in Oe)
|
|
44859
44865
|
return Oe.value;
|
|
@@ -44861,14 +44867,14 @@ function requireQuill() {
|
|
|
44861
44867
|
return Pe === void 0 ? void 0 : Pe.call(Le);
|
|
44862
44868
|
}
|
|
44863
44869
|
}, de = /* @__PURE__ */ (function() {
|
|
44864
|
-
function Ie(ze,
|
|
44865
|
-
for (var Le = 0; Le <
|
|
44866
|
-
var Oe =
|
|
44870
|
+
function Ie(ze, Ue) {
|
|
44871
|
+
for (var Le = 0; Le < Ue.length; Le++) {
|
|
44872
|
+
var Oe = Ue[Le];
|
|
44867
44873
|
Oe.enumerable = Oe.enumerable || !1, Oe.configurable = !0, "value" in Oe && (Oe.writable = !0), Object.defineProperty(ze, Oe.key, Oe);
|
|
44868
44874
|
}
|
|
44869
44875
|
}
|
|
44870
|
-
return function(ze,
|
|
44871
|
-
return
|
|
44876
|
+
return function(ze, Ue, Le) {
|
|
44877
|
+
return Ue && Ie(ze.prototype, Ue), Le && Ie(ze, Le), ze;
|
|
44872
44878
|
};
|
|
44873
44879
|
})(), ce = ne(3), ue = _e(ce), pe = ne(8), he = _e(pe), be = ne(44), fe = _e(be), ge = ne(15), ve = ne(42), me = _e(ve);
|
|
44874
44880
|
function _e(Ie) {
|
|
@@ -44890,9 +44896,9 @@ function requireQuill() {
|
|
|
44890
44896
|
}
|
|
44891
44897
|
var we = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], Se = (function(Ie) {
|
|
44892
44898
|
Ce(ze, Ie);
|
|
44893
|
-
function ze(
|
|
44899
|
+
function ze(Ue, Le) {
|
|
44894
44900
|
ye(this, ze), Le.modules.toolbar != null && Le.modules.toolbar.container == null && (Le.modules.toolbar.container = we);
|
|
44895
|
-
var Oe = Ae(this, (ze.__proto__ || Object.getPrototypeOf(ze)).call(this,
|
|
44901
|
+
var Oe = Ae(this, (ze.__proto__ || Object.getPrototypeOf(ze)).call(this, Ue, Le));
|
|
44896
44902
|
return Oe.quill.container.classList.add("ql-bubble"), Oe;
|
|
44897
44903
|
}
|
|
44898
44904
|
return de(ze, [{
|
|
@@ -44915,10 +44921,10 @@ function requireQuill() {
|
|
|
44915
44921
|
});
|
|
44916
44922
|
var Me = (function(Ie) {
|
|
44917
44923
|
Ce(ze, Ie);
|
|
44918
|
-
function ze(
|
|
44924
|
+
function ze(Ue, Le) {
|
|
44919
44925
|
ye(this, ze);
|
|
44920
|
-
var Oe = Ae(this, (ze.__proto__ || Object.getPrototypeOf(ze)).call(this,
|
|
44921
|
-
return Oe.quill.on(he.default.events.EDITOR_CHANGE, function(qe, Pe,
|
|
44926
|
+
var Oe = Ae(this, (ze.__proto__ || Object.getPrototypeOf(ze)).call(this, Ue, Le));
|
|
44927
|
+
return Oe.quill.on(he.default.events.EDITOR_CHANGE, function(qe, Pe, He, We) {
|
|
44922
44928
|
if (qe === he.default.events.SELECTION_CHANGE)
|
|
44923
44929
|
if (Pe != null && Pe.length > 0 && We === he.default.sources.USER) {
|
|
44924
44930
|
Oe.show(), Oe.root.style.left = "0px", Oe.root.style.width = "", Oe.root.style.width = Oe.root.offsetWidth + "px";
|
|
@@ -44926,7 +44932,7 @@ function requireQuill() {
|
|
|
44926
44932
|
if (Ge.length === 1)
|
|
44927
44933
|
Oe.position(Oe.quill.getBounds(Pe));
|
|
44928
44934
|
else {
|
|
44929
|
-
var Ye = Ge[Ge.length - 1],
|
|
44935
|
+
var Ye = Ge[Ge.length - 1], bt = Oe.quill.getIndex(Ye), Xe = Math.min(Ye.length() - 1, Pe.index + Pe.length - bt), Ze = Oe.quill.getBounds(new ge.Range(bt, Xe));
|
|
44930
44936
|
Oe.position(Ze);
|
|
44931
44937
|
}
|
|
44932
44938
|
} else document.activeElement !== Oe.textbox && Oe.quill.hasFocus() && Oe.hide();
|
|
@@ -46118,4 +46124,4 @@ export {
|
|
|
46118
46124
|
createEcapEventManager as y,
|
|
46119
46125
|
ExitShell as z
|
|
46120
46126
|
};
|
|
46121
|
-
//# sourceMappingURL=index-
|
|
46127
|
+
//# sourceMappingURL=index-s-pcmNUD.js.map
|