@libresign/pdf-elements 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,22 +196,6 @@ module.exports = !fails(function () {
196
196
  });
197
197
 
198
198
 
199
- /***/ },
200
-
201
- /***/ 655
202
- (module, __unused_webpack_exports, __webpack_require__) {
203
-
204
-
205
- var classof = __webpack_require__(6955);
206
-
207
- var $String = String;
208
-
209
- module.exports = function (argument) {
210
- if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
211
- return $String(argument);
212
- };
213
-
214
-
215
199
  /***/ },
216
200
 
217
201
  /***/ 679
@@ -286,13 +270,6 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
286
270
  };
287
271
 
288
272
 
289
- /***/ },
290
-
291
- /***/ 824
292
- (module, __unused_webpack_exports, __webpack_require__) {
293
-
294
- module.exports = __webpack_require__.p + "pdf.worker.min.mjs";
295
-
296
273
  /***/ },
297
274
 
298
275
  /***/ 851
@@ -951,20 +928,6 @@ var POLYFILL = isForced.POLYFILL = 'P';
951
928
  module.exports = isForced;
952
929
 
953
930
 
954
- /***/ },
955
-
956
- /***/ 2812
957
- (module) {
958
-
959
-
960
- var $TypeError = TypeError;
961
-
962
- module.exports = function (passed, required) {
963
- if (passed < required) throw new $TypeError('Not enough arguments');
964
- return passed;
965
- };
966
-
967
-
968
931
  /***/ },
969
932
 
970
933
  /***/ 2839
@@ -1293,62 +1256,6 @@ module.exports =
1293
1256
  (function () { return this; })() || Function('return this')();
1294
1257
 
1295
1258
 
1296
- /***/ },
1297
-
1298
- /***/ 4603
1299
- (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
1300
-
1301
-
1302
- var defineBuiltIn = __webpack_require__(6840);
1303
- var uncurryThis = __webpack_require__(9504);
1304
- var toString = __webpack_require__(655);
1305
- var validateArgumentsLength = __webpack_require__(2812);
1306
-
1307
- var $URLSearchParams = URLSearchParams;
1308
- var URLSearchParamsPrototype = $URLSearchParams.prototype;
1309
- var append = uncurryThis(URLSearchParamsPrototype.append);
1310
- var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
1311
- var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
1312
- var push = uncurryThis([].push);
1313
- var params = new $URLSearchParams('a=1&a=2&b=3');
1314
-
1315
- params['delete']('a', 1);
1316
- // `undefined` case is a Chromium 117 bug
1317
- // https://bugs.chromium.org/p/v8/issues/detail?id=14222
1318
- params['delete']('b', undefined);
1319
-
1320
- if (params + '' !== 'a=2') {
1321
- defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
1322
- var length = arguments.length;
1323
- var $value = length < 2 ? undefined : arguments[1];
1324
- if (length && $value === undefined) return $delete(this, name);
1325
- var entries = [];
1326
- forEach(this, function (v, k) { // also validates `this`
1327
- push(entries, { key: k, value: v });
1328
- });
1329
- validateArgumentsLength(length, 1);
1330
- var key = toString(name);
1331
- var value = toString($value);
1332
- var index = 0;
1333
- var dindex = 0;
1334
- var found = false;
1335
- var entriesLength = entries.length;
1336
- var entry;
1337
- while (index < entriesLength) {
1338
- entry = entries[index++];
1339
- if (found || entry.key === key) {
1340
- found = true;
1341
- $delete(this, entry.key);
1342
- } else dindex++;
1343
- }
1344
- while (dindex < entriesLength) {
1345
- entry = entries[dindex++];
1346
- if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
1347
- }
1348
- }, { enumerable: true, unsafe: true });
1349
- }
1350
-
1351
-
1352
1259
  /***/ },
1353
1260
 
1354
1261
  /***/ 4659
@@ -1973,41 +1880,6 @@ module.exports = function (fn) {
1973
1880
  };
1974
1881
 
1975
1882
 
1976
- /***/ },
1977
-
1978
- /***/ 7566
1979
- (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
1980
-
1981
-
1982
- var defineBuiltIn = __webpack_require__(6840);
1983
- var uncurryThis = __webpack_require__(9504);
1984
- var toString = __webpack_require__(655);
1985
- var validateArgumentsLength = __webpack_require__(2812);
1986
-
1987
- var $URLSearchParams = URLSearchParams;
1988
- var URLSearchParamsPrototype = $URLSearchParams.prototype;
1989
- var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
1990
- var $has = uncurryThis(URLSearchParamsPrototype.has);
1991
- var params = new $URLSearchParams('a=1');
1992
-
1993
- // `undefined` case is a Chromium 117 bug
1994
- // https://bugs.chromium.org/p/v8/issues/detail?id=14222
1995
- if (params.has('a', 2) || !params.has('a', undefined)) {
1996
- defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
1997
- var length = arguments.length;
1998
- var $value = length < 2 ? undefined : arguments[1];
1999
- if (length && $value === undefined) return $has(this, name);
2000
- var values = getAll(this, name); // also validates `this`
2001
- validateArgumentsLength(length, 1);
2002
- var value = toString($value);
2003
- var index = 0;
2004
- while (index < values.length) {
2005
- if (values[index++] === value) return true;
2006
- } return false;
2007
- }, { enumerable: true, unsafe: true });
2008
- }
2009
-
2010
-
2011
1883
  /***/ },
2012
1884
 
2013
1885
  /***/ 7588
@@ -2372,34 +2244,6 @@ module.exports = DESCRIPTORS && fails(function () {
2372
2244
  });
2373
2245
 
2374
2246
 
2375
- /***/ },
2376
-
2377
- /***/ 8721
2378
- (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
2379
-
2380
-
2381
- var DESCRIPTORS = __webpack_require__(3724);
2382
- var uncurryThis = __webpack_require__(9504);
2383
- var defineBuiltInAccessor = __webpack_require__(2106);
2384
-
2385
- var URLSearchParamsPrototype = URLSearchParams.prototype;
2386
- var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
2387
-
2388
- // `URLSearchParams.prototype.size` getter
2389
- // https://github.com/whatwg/url/pull/734
2390
- if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
2391
- defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
2392
- get: function size() {
2393
- var count = 0;
2394
- forEach(this, function () { count++; });
2395
- return count;
2396
- },
2397
- configurable: true,
2398
- enumerable: true
2399
- });
2400
- }
2401
-
2402
-
2403
2247
  /***/ },
2404
2248
 
2405
2249
  /***/ 8727
@@ -2791,9 +2635,6 @@ module.exports = {
2791
2635
  /******/ return module.exports;
2792
2636
  /******/ }
2793
2637
  /******/
2794
- /******/ // expose the modules object (__webpack_modules__)
2795
- /******/ __webpack_require__.m = __webpack_modules__;
2796
- /******/
2797
2638
  /************************************************************************/
2798
2639
  /******/ /* webpack/runtime/define property getters */
2799
2640
  /******/ (() => {
@@ -2817,32 +2658,6 @@ module.exports = {
2817
2658
  /******/ __webpack_require__.p = "";
2818
2659
  /******/ })();
2819
2660
  /******/
2820
- /******/ /* webpack/runtime/jsonp chunk loading */
2821
- /******/ (() => {
2822
- /******/ __webpack_require__.b = (typeof document !== 'undefined' && document.baseURI) || self.location.href;
2823
- /******/
2824
- /******/ // object to store loaded and loading chunks
2825
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
2826
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
2827
- /******/ var installedChunks = {
2828
- /******/ 380: 0
2829
- /******/ };
2830
- /******/
2831
- /******/ // no chunk on demand loading
2832
- /******/
2833
- /******/ // no prefetching
2834
- /******/
2835
- /******/ // no preloaded
2836
- /******/
2837
- /******/ // no HMR
2838
- /******/
2839
- /******/ // no HMR manifest
2840
- /******/
2841
- /******/ // no on chunks loaded
2842
- /******/
2843
- /******/ // no jsonp function
2844
- /******/ })();
2845
- /******/
2846
2661
  /************************************************************************/
2847
2662
  var __webpack_exports__ = {};
2848
2663
 
@@ -3823,12 +3638,6 @@ var DraggableElement_component = normalizeComponent(
3823
3638
  )
3824
3639
 
3825
3640
  /* harmony default export */ const DraggableElement = (DraggableElement_component.exports);
3826
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
3827
- var web_url_search_params_delete = __webpack_require__(4603);
3828
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
3829
- var web_url_search_params_has = __webpack_require__(7566);
3830
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
3831
- var web_url_search_params_size = __webpack_require__(8721);
3832
3641
  ;// ./node_modules/pdfjs-dist/build/pdf.mjs
3833
3642
  /**
3834
3643
  * @licstart The following is the entire license notice for the
@@ -30221,16 +30030,15 @@ globalThis.pdfjsLib = {
30221
30030
 
30222
30031
 
30223
30032
  //# sourceMappingURL=pdf.mjs.map
30033
+ ;// ./node_modules/pdfjs-dist/build/pdf.worker.min.mjs
30034
+ const pdf_worker_min_namespaceObject = __webpack_require__.p + "pdf.worker.min.mjs";
30224
30035
  ;// ./src/utils/asyncReader.js
30225
-
30226
-
30227
-
30228
30036
  // SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
30229
30037
  // SPDX-License-Identifier: AGPL-3.0-or-later
30230
30038
 
30231
30039
 
30232
- const workerUrl = new URL(/* asset import */ __webpack_require__(824), __webpack_require__.b).href;
30233
- GlobalWorkerOptions.workerSrc = workerUrl;
30040
+
30041
+ GlobalWorkerOptions.workerSrc = pdf_worker_min_namespaceObject;
30234
30042
  function readAsArrayBuffer(file) {
30235
30043
  return new Promise((resolve, reject) => {
30236
30044
  const reader = new FileReader();