@harbour-enterprises/superdoc 0.11.59 → 0.11.60

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.
Files changed (31) hide show
  1. package/dist/chunks/{index-iv-kAVLp.cjs → index-B1MhwjTC.cjs} +2 -2
  2. package/dist/chunks/{index-Bok8hAYK.es.js → index-BrSjd1Id.es.js} +1 -1
  3. package/dist/chunks/{index-BMaqSK4V.cjs → index-CMBtuT02.cjs} +1 -1
  4. package/dist/chunks/{index-TEuKY2Tw.es.js → index-SKpROzLW.es.js} +2 -2
  5. package/dist/chunks/{super-editor.es-CcLjgzVN.cjs → super-editor.es-6RJfgkuP.cjs} +52 -3
  6. package/dist/chunks/{super-editor.es-GCGh72cA.es.js → super-editor.es-CWoldIVO.es.js} +52 -3
  7. package/dist/chunks/{url-ETipSgh6.es.js → url-CAZQTNP3.es.js} +1 -1
  8. package/dist/chunks/{url-5p0aHHfv.cjs → url-DuggQ5JR.cjs} +1 -1
  9. package/dist/chunks/{xml-js-zDoWuw54.cjs → xml-js-B7Vccv2s.cjs} +89 -75
  10. package/dist/chunks/{xml-js-76kJDM0_.es.js → xml-js-BV-kCPOA.es.js} +89 -75
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-CxUKSS50.js → converter-Dptp_3H8.js} +2 -2
  13. package/dist/super-editor/chunks/{docx-zipper-C8L5bK_c.js → docx-zipper-BNTwjTIm.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-D562_uCU.js → editor-Denpr49N.js} +52 -3
  15. package/dist/super-editor/chunks/{toolbar-DXGphEz9.js → toolbar-DTVYQvE4.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/extensions/collaboration/collaboration-helpers.d.ts +2 -0
  20. package/dist/super-editor/extensions/collaboration/collaboration-helpers.d.ts.map +1 -0
  21. package/dist/super-editor/extensions/collaboration/collaboration.d.ts.map +1 -1
  22. package/dist/super-editor/file-zipper.es.js +1 -1
  23. package/dist/super-editor/super-editor.es.js +6 -6
  24. package/dist/super-editor/toolbar.es.js +2 -2
  25. package/dist/super-editor.cjs +1 -1
  26. package/dist/super-editor.es.js +1 -1
  27. package/dist/superdoc.cjs +5 -5
  28. package/dist/superdoc.es.js +6 -6
  29. package/dist/superdoc.umd.js +53 -4
  30. package/dist/superdoc.umd.js.map +1 -1
  31. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const jszip = require("./jszip-Bwu_om3F.cjs");
3
3
  const vue = require("./vue-DPZkajuO.cjs");
4
- const xmlJs = require("./xml-js-zDoWuw54.cjs");
5
- const url = require("./url-5p0aHHfv.cjs");
4
+ const xmlJs = require("./xml-js-B7Vccv2s.cjs");
5
+ const url = require("./url-DuggQ5JR.cjs");
6
6
  function _mergeNamespaces(n, m) {
7
7
  for (var i = 0; i < m.length; i++) {
8
8
  const e = m[i];
@@ -1,5 +1,5 @@
1
1
  import { g as getDefaultExportFromCjs } from "./jszip-BmWWPxfF.es.js";
2
- import { s as streamHttp, r as require$$1 } from "./index-TEuKY2Tw.es.js";
2
+ import { s as streamHttp, r as require$$1 } from "./index-SKpROzLW.es.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const jszip = require("./jszip-Bwu_om3F.cjs");
3
- const index$2 = require("./index-iv-kAVLp.cjs");
3
+ const index$2 = require("./index-B1MhwjTC.cjs");
4
4
  function _mergeNamespaces(n, m) {
5
5
  for (var i = 0; i < m.length; i++) {
6
6
  const e = m[i];
@@ -1,7 +1,7 @@
1
1
  import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-BmWWPxfF.es.js";
2
2
  import { p as process$1 } from "./vue-IIIZMHTg.es.js";
3
- import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-76kJDM0_.es.js";
4
- import { u as url } from "./url-ETipSgh6.es.js";
3
+ import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-BV-kCPOA.es.js";
4
+ import { u as url } from "./url-CAZQTNP3.es.js";
5
5
  function _mergeNamespaces(n, m) {
6
6
  for (var i = 0; i < m.length; i++) {
7
7
  const e = m[i];
@@ -23227,7 +23227,7 @@ const _SuperConverter = class _SuperConverter2 {
23227
23227
  return;
23228
23228
  }
23229
23229
  }
23230
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.11.59") {
23230
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.11.60") {
23231
23231
  const customLocation = "docProps/custom.xml";
23232
23232
  if (!docx[customLocation]) {
23233
23233
  docx[customLocation] = generateCustomXml();
@@ -23577,7 +23577,7 @@ function storeSuperdocVersion(docx) {
23577
23577
  function generateCustomXml() {
23578
23578
  return DEFAULT_CUSTOM_XML;
23579
23579
  }
23580
- function generateSuperdocVersion(pid = 2, version2 = "0.11.59") {
23580
+ function generateSuperdocVersion(pid = 2, version2 = "0.11.60") {
23581
23581
  return {
23582
23582
  type: "element",
23583
23583
  name: "property",
@@ -40225,7 +40225,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
40225
40225
  * @returns {Object | void} Migration results
40226
40226
  */
40227
40227
  processCollaborationMigrations() {
40228
- console.debug("[checkVersionMigrations] Current editor version", "0.11.59");
40228
+ console.debug("[checkVersionMigrations] Current editor version", "0.11.60");
40229
40229
  if (!this.options.ydoc) return;
40230
40230
  const metaMap = this.options.ydoc.getMap("meta");
40231
40231
  let docVersion = metaMap.get("version");
@@ -41409,6 +41409,27 @@ const Gapcursor = Extension.create({
41409
41409
  };
41410
41410
  }
41411
41411
  });
41412
+ const updateYdocDocxData = async (editor) => {
41413
+ if (!editor.options.ydoc) return;
41414
+ const metaMap = editor.options.ydoc.getMap("meta");
41415
+ const docx = [...metaMap.get("docx")];
41416
+ const newXml = await editor.exportDocx({ getUpdatedDocs: true });
41417
+ Object.keys(newXml).forEach((key) => {
41418
+ if (key.includes("header") || key.includes("footer")) {
41419
+ const fileIndex = docx.findIndex((item) => item.name === key);
41420
+ if (fileIndex > -1) {
41421
+ docx.splice(fileIndex, 1);
41422
+ }
41423
+ docx.push({
41424
+ name: key,
41425
+ content: newXml[key]
41426
+ });
41427
+ }
41428
+ });
41429
+ editor.options.ydoc.transact(() => {
41430
+ metaMap.set("docx", docx);
41431
+ }, { event: "docx-update", user: editor.options.user });
41432
+ };
41412
41433
  const CollaborationPluginKey = new PluginKey("collaboration");
41413
41434
  const Collaboration = Extension.create({
41414
41435
  name: "collaboration",
@@ -41427,6 +41448,7 @@ const Collaboration = Extension.create({
41427
41448
  const undoPlugin = createUndoPlugin();
41428
41449
  initDocumentLockHandler(this.options.ydoc, this.editor);
41429
41450
  initSyncListener(this.options.ydoc, this.editor, this);
41451
+ initDocumentListener({ ydoc: this.options.ydoc, editor: this.editor });
41430
41452
  const [syncPlugin, fragment] = createSyncPlugin(this.options.ydoc, this.editor);
41431
41453
  this.options.fragment = fragment;
41432
41454
  const metaMap = this.options.ydoc.getMap("media");
@@ -41505,6 +41527,33 @@ const initDocumentLockHandler = (ydoc, editor) => {
41505
41527
  editor.emit("locked", { editor, isLocked, lockedBy });
41506
41528
  });
41507
41529
  };
41530
+ const checkDocxChanged = (transaction) => {
41531
+ for (const [key, value] of transaction.changed?.entries()) {
41532
+ if (value instanceof Set && value.has("docx")) {
41533
+ return true;
41534
+ }
41535
+ }
41536
+ return false;
41537
+ };
41538
+ const initDocumentListener = ({ ydoc, editor }) => {
41539
+ const debouncedUpdate = debounce$2((editor2) => {
41540
+ updateYdocDocxData(editor2);
41541
+ }, 1e3);
41542
+ ydoc.on("afterTransaction", (transaction) => {
41543
+ const { local } = transaction;
41544
+ const hasChangedDocx = checkDocxChanged(transaction);
41545
+ if (!hasChangedDocx && transaction.changed?.size && local) {
41546
+ debouncedUpdate(editor);
41547
+ }
41548
+ });
41549
+ };
41550
+ const debounce$2 = (fn2, wait) => {
41551
+ let timeout2 = null;
41552
+ return (...args) => {
41553
+ clearTimeout(timeout2);
41554
+ timeout2 = setTimeout(() => fn2.apply(void 0, args), wait);
41555
+ };
41556
+ };
41508
41557
  const initSyncListener = (ydoc, editor, extension) => {
41509
41558
  const provider = editor.options.collaborationProvider;
41510
41559
  if (!provider) return;
@@ -23210,7 +23210,7 @@ const _SuperConverter = class _SuperConverter2 {
23210
23210
  return;
23211
23211
  }
23212
23212
  }
23213
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.11.59") {
23213
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.11.60") {
23214
23214
  const customLocation = "docProps/custom.xml";
23215
23215
  if (!docx[customLocation]) {
23216
23216
  docx[customLocation] = generateCustomXml();
@@ -23560,7 +23560,7 @@ function storeSuperdocVersion(docx) {
23560
23560
  function generateCustomXml() {
23561
23561
  return DEFAULT_CUSTOM_XML;
23562
23562
  }
23563
- function generateSuperdocVersion(pid = 2, version2 = "0.11.59") {
23563
+ function generateSuperdocVersion(pid = 2, version2 = "0.11.60") {
23564
23564
  return {
23565
23565
  type: "element",
23566
23566
  name: "property",
@@ -40208,7 +40208,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
40208
40208
  * @returns {Object | void} Migration results
40209
40209
  */
40210
40210
  processCollaborationMigrations() {
40211
- console.debug("[checkVersionMigrations] Current editor version", "0.11.59");
40211
+ console.debug("[checkVersionMigrations] Current editor version", "0.11.60");
40212
40212
  if (!this.options.ydoc) return;
40213
40213
  const metaMap = this.options.ydoc.getMap("meta");
40214
40214
  let docVersion = metaMap.get("version");
@@ -41392,6 +41392,27 @@ const Gapcursor = Extension.create({
41392
41392
  };
41393
41393
  }
41394
41394
  });
41395
+ const updateYdocDocxData = async (editor) => {
41396
+ if (!editor.options.ydoc) return;
41397
+ const metaMap = editor.options.ydoc.getMap("meta");
41398
+ const docx = [...metaMap.get("docx")];
41399
+ const newXml = await editor.exportDocx({ getUpdatedDocs: true });
41400
+ Object.keys(newXml).forEach((key) => {
41401
+ if (key.includes("header") || key.includes("footer")) {
41402
+ const fileIndex = docx.findIndex((item) => item.name === key);
41403
+ if (fileIndex > -1) {
41404
+ docx.splice(fileIndex, 1);
41405
+ }
41406
+ docx.push({
41407
+ name: key,
41408
+ content: newXml[key]
41409
+ });
41410
+ }
41411
+ });
41412
+ editor.options.ydoc.transact(() => {
41413
+ metaMap.set("docx", docx);
41414
+ }, { event: "docx-update", user: editor.options.user });
41415
+ };
41395
41416
  const CollaborationPluginKey = new PluginKey("collaboration");
41396
41417
  const Collaboration = Extension.create({
41397
41418
  name: "collaboration",
@@ -41410,6 +41431,7 @@ const Collaboration = Extension.create({
41410
41431
  const undoPlugin = createUndoPlugin();
41411
41432
  initDocumentLockHandler(this.options.ydoc, this.editor);
41412
41433
  initSyncListener(this.options.ydoc, this.editor, this);
41434
+ initDocumentListener({ ydoc: this.options.ydoc, editor: this.editor });
41413
41435
  const [syncPlugin, fragment] = createSyncPlugin(this.options.ydoc, this.editor);
41414
41436
  this.options.fragment = fragment;
41415
41437
  const metaMap = this.options.ydoc.getMap("media");
@@ -41488,6 +41510,33 @@ const initDocumentLockHandler = (ydoc, editor) => {
41488
41510
  editor.emit("locked", { editor, isLocked, lockedBy });
41489
41511
  });
41490
41512
  };
41513
+ const checkDocxChanged = (transaction) => {
41514
+ for (const [key, value] of transaction.changed?.entries()) {
41515
+ if (value instanceof Set && value.has("docx")) {
41516
+ return true;
41517
+ }
41518
+ }
41519
+ return false;
41520
+ };
41521
+ const initDocumentListener = ({ ydoc, editor }) => {
41522
+ const debouncedUpdate = debounce$2((editor2) => {
41523
+ updateYdocDocxData(editor2);
41524
+ }, 1e3);
41525
+ ydoc.on("afterTransaction", (transaction) => {
41526
+ const { local } = transaction;
41527
+ const hasChangedDocx = checkDocxChanged(transaction);
41528
+ if (!hasChangedDocx && transaction.changed?.size && local) {
41529
+ debouncedUpdate(editor);
41530
+ }
41531
+ });
41532
+ };
41533
+ const debounce$2 = (fn2, wait) => {
41534
+ let timeout2 = null;
41535
+ return (...args) => {
41536
+ clearTimeout(timeout2);
41537
+ timeout2 = setTimeout(() => fn2.apply(void 0, args), wait);
41538
+ };
41539
+ };
41491
41540
  const initSyncListener = (ydoc, editor, extension) => {
41492
41541
  const provider = editor.options.collaborationProvider;
41493
41542
  if (!provider) return;
@@ -1,5 +1,5 @@
1
1
  import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-BmWWPxfF.es.js";
2
- import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-76kJDM0_.es.js";
2
+ import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-BV-kCPOA.es.js";
3
3
  import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
4
4
  var punycode$1 = { exports: {} };
5
5
  /*! https://mths.be/punycode v1.4.1 by @mathias */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const jszip = require("./jszip-Bwu_om3F.cjs");
3
- const xmlJs = require("./xml-js-zDoWuw54.cjs");
3
+ const xmlJs = require("./xml-js-B7Vccv2s.cjs");
4
4
  const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
5
5
  var punycode$1 = { exports: {} };
6
6
  /*! https://mths.be/punycode v1.4.1 by @mathias */
@@ -457,7 +457,7 @@ var type = TypeError;
457
457
  var uri = URIError;
458
458
  var abs$1 = Math.abs;
459
459
  var floor$1 = Math.floor;
460
- var max$2 = Math.max;
460
+ var max$1 = Math.max;
461
461
  var min$1 = Math.min;
462
462
  var pow$1 = Math.pow;
463
463
  var round$1 = Math.round;
@@ -517,77 +517,91 @@ function requireHasSymbols() {
517
517
  var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
518
518
  var $Object$2 = esObjectAtoms;
519
519
  var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
520
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
521
- var toStr$3 = Object.prototype.toString;
522
- var max$1 = Math.max;
523
- var funcType = "[object Function]";
524
- var concatty = function concatty2(a, b) {
525
- var arr = [];
526
- for (var i = 0; i < a.length; i += 1) {
527
- arr[i] = a[i];
528
- }
529
- for (var j = 0; j < b.length; j += 1) {
530
- arr[j + a.length] = b[j];
531
- }
532
- return arr;
533
- };
534
- var slicy = function slicy2(arrLike, offset) {
535
- var arr = [];
536
- for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
537
- arr[j] = arrLike[i];
538
- }
539
- return arr;
540
- };
541
- var joiny = function(arr, joiner) {
542
- var str = "";
543
- for (var i = 0; i < arr.length; i += 1) {
544
- str += arr[i];
545
- if (i + 1 < arr.length) {
546
- str += joiner;
520
+ var implementation;
521
+ var hasRequiredImplementation;
522
+ function requireImplementation() {
523
+ if (hasRequiredImplementation) return implementation;
524
+ hasRequiredImplementation = 1;
525
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
526
+ var toStr2 = Object.prototype.toString;
527
+ var max2 = Math.max;
528
+ var funcType = "[object Function]";
529
+ var concatty = function concatty2(a, b) {
530
+ var arr = [];
531
+ for (var i = 0; i < a.length; i += 1) {
532
+ arr[i] = a[i];
533
+ }
534
+ for (var j = 0; j < b.length; j += 1) {
535
+ arr[j + a.length] = b[j];
536
+ }
537
+ return arr;
538
+ };
539
+ var slicy = function slicy2(arrLike, offset) {
540
+ var arr = [];
541
+ for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
542
+ arr[j] = arrLike[i];
547
543
  }
548
- }
549
- return str;
550
- };
551
- var implementation$1 = function bind(that) {
552
- var target = this;
553
- if (typeof target !== "function" || toStr$3.apply(target) !== funcType) {
554
- throw new TypeError(ERROR_MESSAGE + target);
555
- }
556
- var args = slicy(arguments, 1);
557
- var bound;
558
- var binder = function() {
559
- if (this instanceof bound) {
560
- var result = target.apply(
561
- this,
562
- concatty(args, arguments)
563
- );
564
- if (Object(result) === result) {
565
- return result;
544
+ return arr;
545
+ };
546
+ var joiny = function(arr, joiner) {
547
+ var str = "";
548
+ for (var i = 0; i < arr.length; i += 1) {
549
+ str += arr[i];
550
+ if (i + 1 < arr.length) {
551
+ str += joiner;
566
552
  }
567
- return this;
568
553
  }
569
- return target.apply(
570
- that,
571
- concatty(args, arguments)
572
- );
554
+ return str;
573
555
  };
574
- var boundLength = max$1(0, target.length - args.length);
575
- var boundArgs = [];
576
- for (var i = 0; i < boundLength; i++) {
577
- boundArgs[i] = "$" + i;
578
- }
579
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
580
- if (target.prototype) {
581
- var Empty = function Empty2() {
556
+ implementation = function bind2(that) {
557
+ var target = this;
558
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
559
+ throw new TypeError(ERROR_MESSAGE + target);
560
+ }
561
+ var args = slicy(arguments, 1);
562
+ var bound;
563
+ var binder = function() {
564
+ if (this instanceof bound) {
565
+ var result = target.apply(
566
+ this,
567
+ concatty(args, arguments)
568
+ );
569
+ if (Object(result) === result) {
570
+ return result;
571
+ }
572
+ return this;
573
+ }
574
+ return target.apply(
575
+ that,
576
+ concatty(args, arguments)
577
+ );
582
578
  };
583
- Empty.prototype = target.prototype;
584
- bound.prototype = new Empty();
585
- Empty.prototype = null;
586
- }
587
- return bound;
588
- };
589
- var implementation = implementation$1;
590
- var functionBind = Function.prototype.bind || implementation;
579
+ var boundLength = max2(0, target.length - args.length);
580
+ var boundArgs = [];
581
+ for (var i = 0; i < boundLength; i++) {
582
+ boundArgs[i] = "$" + i;
583
+ }
584
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
585
+ if (target.prototype) {
586
+ var Empty = function Empty2() {
587
+ };
588
+ Empty.prototype = target.prototype;
589
+ bound.prototype = new Empty();
590
+ Empty.prototype = null;
591
+ }
592
+ return bound;
593
+ };
594
+ return implementation;
595
+ }
596
+ var functionBind;
597
+ var hasRequiredFunctionBind;
598
+ function requireFunctionBind() {
599
+ if (hasRequiredFunctionBind) return functionBind;
600
+ hasRequiredFunctionBind = 1;
601
+ var implementation2 = requireImplementation();
602
+ functionBind = Function.prototype.bind || implementation2;
603
+ return functionBind;
604
+ }
591
605
  var functionCall;
592
606
  var hasRequiredFunctionCall;
593
607
  function requireFunctionCall() {
@@ -605,12 +619,12 @@ function requireFunctionApply() {
605
619
  return functionApply;
606
620
  }
607
621
  var reflectApply$1 = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
608
- var bind$3 = functionBind;
622
+ var bind$3 = requireFunctionBind();
609
623
  var $apply$2 = requireFunctionApply();
610
624
  var $call$2 = requireFunctionCall();
611
625
  var $reflectApply = reflectApply$1;
612
626
  var actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2);
613
- var bind$2 = functionBind;
627
+ var bind$2 = requireFunctionBind();
614
628
  var $TypeError$4 = type;
615
629
  var $call$1 = requireFunctionCall();
616
630
  var $actualApply = actualApply$1;
@@ -664,8 +678,8 @@ function requireHasown() {
664
678
  hasRequiredHasown = 1;
665
679
  var call = Function.prototype.call;
666
680
  var $hasOwn = Object.prototype.hasOwnProperty;
667
- var bind3 = functionBind;
668
- hasown = bind3.call(call, $hasOwn);
681
+ var bind2 = requireFunctionBind();
682
+ hasown = bind2.call(call, $hasOwn);
669
683
  return hasown;
670
684
  }
671
685
  var undefined$1;
@@ -679,7 +693,7 @@ var $TypeError$3 = type;
679
693
  var $URIError = uri;
680
694
  var abs = abs$1;
681
695
  var floor = floor$1;
682
- var max = max$2;
696
+ var max = max$1;
683
697
  var min = min$1;
684
698
  var pow = pow$1;
685
699
  var round = round$1;
@@ -884,7 +898,7 @@ var LEGACY_ALIASES = {
884
898
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
885
899
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
886
900
  };
887
- var bind$1 = functionBind;
901
+ var bind$1 = requireFunctionBind();
888
902
  var hasOwn$1 = requireHasown();
889
903
  var $concat = bind$1.call($call, Array.prototype.concat);
890
904
  var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
@@ -1426,11 +1440,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
1426
1440
  }
1427
1441
  return fn2;
1428
1442
  };
1429
- var bind2 = functionBind;
1443
+ var bind = requireFunctionBind();
1430
1444
  var $apply = requireFunctionApply();
1431
1445
  var actualApply = actualApply$1;
1432
1446
  var applyBind = function applyBind2() {
1433
- return actualApply(bind2, $apply, arguments);
1447
+ return actualApply(bind, $apply, arguments);
1434
1448
  };
1435
1449
  (function(module2) {
1436
1450
  var setFunctionLength$1 = setFunctionLength;