@libresign/pdf-elements 0.1.0 → 0.1.1

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.
@@ -206,6 +206,22 @@ module.exports = !fails(function () {
206
206
  });
207
207
 
208
208
 
209
+ /***/ },
210
+
211
+ /***/ 655
212
+ (module, __unused_webpack_exports, __webpack_require__) {
213
+
214
+
215
+ var classof = __webpack_require__(6955);
216
+
217
+ var $String = String;
218
+
219
+ module.exports = function (argument) {
220
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
221
+ return $String(argument);
222
+ };
223
+
224
+
209
225
  /***/ },
210
226
 
211
227
  /***/ 679
@@ -280,6 +296,13 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
280
296
  };
281
297
 
282
298
 
299
+ /***/ },
300
+
301
+ /***/ 824
302
+ (module, __unused_webpack_exports, __webpack_require__) {
303
+
304
+ module.exports = __webpack_require__.p + "pdf.worker.min.mjs";
305
+
283
306
  /***/ },
284
307
 
285
308
  /***/ 851
@@ -938,6 +961,20 @@ var POLYFILL = isForced.POLYFILL = 'P';
938
961
  module.exports = isForced;
939
962
 
940
963
 
964
+ /***/ },
965
+
966
+ /***/ 2812
967
+ (module) {
968
+
969
+
970
+ var $TypeError = TypeError;
971
+
972
+ module.exports = function (passed, required) {
973
+ if (passed < required) throw new $TypeError('Not enough arguments');
974
+ return passed;
975
+ };
976
+
977
+
941
978
  /***/ },
942
979
 
943
980
  /***/ 2839
@@ -1266,6 +1303,62 @@ module.exports =
1266
1303
  (function () { return this; })() || Function('return this')();
1267
1304
 
1268
1305
 
1306
+ /***/ },
1307
+
1308
+ /***/ 4603
1309
+ (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
1310
+
1311
+
1312
+ var defineBuiltIn = __webpack_require__(6840);
1313
+ var uncurryThis = __webpack_require__(9504);
1314
+ var toString = __webpack_require__(655);
1315
+ var validateArgumentsLength = __webpack_require__(2812);
1316
+
1317
+ var $URLSearchParams = URLSearchParams;
1318
+ var URLSearchParamsPrototype = $URLSearchParams.prototype;
1319
+ var append = uncurryThis(URLSearchParamsPrototype.append);
1320
+ var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
1321
+ var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
1322
+ var push = uncurryThis([].push);
1323
+ var params = new $URLSearchParams('a=1&a=2&b=3');
1324
+
1325
+ params['delete']('a', 1);
1326
+ // `undefined` case is a Chromium 117 bug
1327
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
1328
+ params['delete']('b', undefined);
1329
+
1330
+ if (params + '' !== 'a=2') {
1331
+ defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
1332
+ var length = arguments.length;
1333
+ var $value = length < 2 ? undefined : arguments[1];
1334
+ if (length && $value === undefined) return $delete(this, name);
1335
+ var entries = [];
1336
+ forEach(this, function (v, k) { // also validates `this`
1337
+ push(entries, { key: k, value: v });
1338
+ });
1339
+ validateArgumentsLength(length, 1);
1340
+ var key = toString(name);
1341
+ var value = toString($value);
1342
+ var index = 0;
1343
+ var dindex = 0;
1344
+ var found = false;
1345
+ var entriesLength = entries.length;
1346
+ var entry;
1347
+ while (index < entriesLength) {
1348
+ entry = entries[index++];
1349
+ if (found || entry.key === key) {
1350
+ found = true;
1351
+ $delete(this, entry.key);
1352
+ } else dindex++;
1353
+ }
1354
+ while (dindex < entriesLength) {
1355
+ entry = entries[dindex++];
1356
+ if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
1357
+ }
1358
+ }, { enumerable: true, unsafe: true });
1359
+ }
1360
+
1361
+
1269
1362
  /***/ },
1270
1363
 
1271
1364
  /***/ 4659
@@ -1890,6 +1983,41 @@ module.exports = function (fn) {
1890
1983
  };
1891
1984
 
1892
1985
 
1986
+ /***/ },
1987
+
1988
+ /***/ 7566
1989
+ (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
1990
+
1991
+
1992
+ var defineBuiltIn = __webpack_require__(6840);
1993
+ var uncurryThis = __webpack_require__(9504);
1994
+ var toString = __webpack_require__(655);
1995
+ var validateArgumentsLength = __webpack_require__(2812);
1996
+
1997
+ var $URLSearchParams = URLSearchParams;
1998
+ var URLSearchParamsPrototype = $URLSearchParams.prototype;
1999
+ var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
2000
+ var $has = uncurryThis(URLSearchParamsPrototype.has);
2001
+ var params = new $URLSearchParams('a=1');
2002
+
2003
+ // `undefined` case is a Chromium 117 bug
2004
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
2005
+ if (params.has('a', 2) || !params.has('a', undefined)) {
2006
+ defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
2007
+ var length = arguments.length;
2008
+ var $value = length < 2 ? undefined : arguments[1];
2009
+ if (length && $value === undefined) return $has(this, name);
2010
+ var values = getAll(this, name); // also validates `this`
2011
+ validateArgumentsLength(length, 1);
2012
+ var value = toString($value);
2013
+ var index = 0;
2014
+ while (index < values.length) {
2015
+ if (values[index++] === value) return true;
2016
+ } return false;
2017
+ }, { enumerable: true, unsafe: true });
2018
+ }
2019
+
2020
+
1893
2021
  /***/ },
1894
2022
 
1895
2023
  /***/ 7588
@@ -2254,6 +2382,34 @@ module.exports = DESCRIPTORS && fails(function () {
2254
2382
  });
2255
2383
 
2256
2384
 
2385
+ /***/ },
2386
+
2387
+ /***/ 8721
2388
+ (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
2389
+
2390
+
2391
+ var DESCRIPTORS = __webpack_require__(3724);
2392
+ var uncurryThis = __webpack_require__(9504);
2393
+ var defineBuiltInAccessor = __webpack_require__(2106);
2394
+
2395
+ var URLSearchParamsPrototype = URLSearchParams.prototype;
2396
+ var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
2397
+
2398
+ // `URLSearchParams.prototype.size` getter
2399
+ // https://github.com/whatwg/url/pull/734
2400
+ if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
2401
+ defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
2402
+ get: function size() {
2403
+ var count = 0;
2404
+ forEach(this, function () { count++; });
2405
+ return count;
2406
+ },
2407
+ configurable: true,
2408
+ enumerable: true
2409
+ });
2410
+ }
2411
+
2412
+
2257
2413
  /***/ },
2258
2414
 
2259
2415
  /***/ 8727
@@ -2645,6 +2801,9 @@ module.exports = {
2645
2801
  /******/ return module.exports;
2646
2802
  /******/ }
2647
2803
  /******/
2804
+ /******/ // expose the modules object (__webpack_modules__)
2805
+ /******/ __webpack_require__.m = __webpack_modules__;
2806
+ /******/
2648
2807
  /************************************************************************/
2649
2808
  /******/ /* webpack/runtime/define property getters */
2650
2809
  /******/ (() => {
@@ -2668,6 +2827,32 @@ module.exports = {
2668
2827
  /******/ __webpack_require__.p = "";
2669
2828
  /******/ })();
2670
2829
  /******/
2830
+ /******/ /* webpack/runtime/jsonp chunk loading */
2831
+ /******/ (() => {
2832
+ /******/ __webpack_require__.b = (typeof document !== 'undefined' && document.baseURI) || self.location.href;
2833
+ /******/
2834
+ /******/ // object to store loaded and loading chunks
2835
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
2836
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
2837
+ /******/ var installedChunks = {
2838
+ /******/ 899: 0
2839
+ /******/ };
2840
+ /******/
2841
+ /******/ // no chunk on demand loading
2842
+ /******/
2843
+ /******/ // no prefetching
2844
+ /******/
2845
+ /******/ // no preloaded
2846
+ /******/
2847
+ /******/ // no HMR
2848
+ /******/
2849
+ /******/ // no HMR manifest
2850
+ /******/
2851
+ /******/ // no on chunks loaded
2852
+ /******/
2853
+ /******/ // no jsonp function
2854
+ /******/ })();
2855
+ /******/
2671
2856
  /************************************************************************/
2672
2857
  var __webpack_exports__ = {};
2673
2858
 
@@ -3648,6 +3833,12 @@ var DraggableElement_component = normalizeComponent(
3648
3833
  )
3649
3834
 
3650
3835
  /* harmony default export */ const DraggableElement = (DraggableElement_component.exports);
3836
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
3837
+ var web_url_search_params_delete = __webpack_require__(4603);
3838
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
3839
+ var web_url_search_params_has = __webpack_require__(7566);
3840
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
3841
+ var web_url_search_params_size = __webpack_require__(8721);
3651
3842
  ;// ./node_modules/pdfjs-dist/build/pdf.mjs
3652
3843
  /**
3653
3844
  * @licstart The following is the entire license notice for the
@@ -30040,15 +30231,16 @@ globalThis.pdfjsLib = {
30040
30231
 
30041
30232
 
30042
30233
  //# sourceMappingURL=pdf.mjs.map
30043
- ;// ./node_modules/pdfjs-dist/build/pdf.worker.min.mjs
30044
- const pdf_worker_min_namespaceObject = __webpack_require__.p + "pdf.worker.min.mjs";
30045
30234
  ;// ./src/utils/asyncReader.js
30235
+
30236
+
30237
+
30046
30238
  // SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
30047
30239
  // SPDX-License-Identifier: AGPL-3.0-or-later
30048
30240
 
30049
30241
 
30050
-
30051
- GlobalWorkerOptions.workerSrc = pdf_worker_min_namespaceObject;
30242
+ const workerUrl = new URL(/* asset import */ __webpack_require__(824), __webpack_require__.b).href;
30243
+ GlobalWorkerOptions.workerSrc = workerUrl;
30052
30244
  function readAsArrayBuffer(file) {
30053
30245
  return new Promise((resolve, reject) => {
30054
30246
  const reader = new FileReader();