1import { 2 SHOULD_AUTOBATCH, 3 combineReducers, 4 createAction, 5 createAsyncThunk, 6 createSelector, 7 createSlice, 8 defaultMemoize, 9 import_react_dom, 10 isAllOf, 11 isAnyOf, 12 isAsyncThunkAction, 13 isFulfilled, 14 isPending, 15 isPlainObject, 16 isRejected, 17 isRejectedWithValue, 18 nanoid, 19 prepareAutoBatched, 20 shallowEqual, 21 useDispatch, 22 useSelector, 23 useStore 24} from "/admin/node_modules/.strapi/vite/deps/chunk-AH3YIZJN.js?v=d15f9e09"; 25import { 26 require_arrayEach, 27 require_baseAssign, 28 require_baseClone, 29 require_baseCreate, 30 require_clone, 31 require_copyArray, 32 require_getPrototype, 33 require_toPath 34} from "/admin/node_modules/.strapi/vite/deps/chunk-3FNDFHAQ.js?v=d15f9e09"; 35import { 36 T, 37 cn, 38 e, 39 immer_esm_default, 40 pn, 41 r, 42 t 43} from "/admin/node_modules/.strapi/vite/deps/chunk-OY4TXUOL.js?v=d15f9e09"; 44import { 45 require_baseIteratee, 46 require_identity 47} from "/admin/node_modules/.strapi/vite/deps/chunk-CSO7WNU5.js?v=d15f9e09"; 48import { 49 require_Symbol, 50 require_WeakMap, 51 require_arrayPush, 52 require_baseGetTag, 53 require_baseKeys, 54 require_defineProperty, 55 require_getTag, 56 require_isArguments, 57 require_isArray, 58 require_isFunction, 59 require_isIndex, 60 require_isObject, 61 require_isObjectLike, 62 require_isSymbol, 63 require_root 64} from "/admin/node_modules/.strapi/vite/deps/chunk-ZPLLTQTO.js?v=d15f9e09"; 65import { 66 require_react 67} from "/admin/node_modules/.strapi/vite/deps/chunk-VB5JOH6R.js?v=d15f9e09"; 68import { 69 __commonJS, 70 __toESM 71} from "/admin/node_modules/.strapi/vite/deps/chunk-X6GFWOGJ.js?v=d15f9e09"; 72
vendor: 487 bytes, lines 73-86
73// node_modules/.pnpm/[email protected]/node_modules/es-errors/type.js 74var require_type = __commonJS({ 75 "node_modules/.pnpm/[email protected]/node_modules/es-errors/type.js"(exports, module) { 76 "use strict"; 77 module.exports = TypeError; 78 } 79}); 80 81// (disabled):node_modules/.pnpm/[email protected]/node_modules/object-inspect/util.inspect 82var require_util = __commonJS({ 83 "(disabled):node_modules/.pnpm/[email protected]/node_modules/object-inspect/util.inspect"() { 84 } 85}); 86
vendor: 19,164 bytes, lines 87-617
87// node_modules/.pnpm/[email protected]/node_modules/object-inspect/index.js 88var require_object_inspect = __commonJS({ 89 "node_modules/.pnpm/[email protected]/node_modules/object-inspect/index.js"(exports, module) { 90 var hasMap = typeof Map === "function" && Map.prototype; 91 var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null; 92 var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null; 93 var mapForEach = hasMap && Map.prototype.forEach; 94 var hasSet = typeof Set === "function" && Set.prototype; 95 var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null; 96 var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null; 97 var setForEach = hasSet && Set.prototype.forEach; 98 var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype; 99 var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; 100 var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype; 101 var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; 102 var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype; 103 var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; 104 var booleanValueOf = Boolean.prototype.valueOf; 105 var objectToString = Object.prototype.toString; 106 var functionToString = Function.prototype.toString; 107 var $match = String.prototype.match; 108 var $slice = String.prototype.slice; 109 var $replace = String.prototype.replace; 110 var $toUpperCase = String.prototype.toUpperCase; 111 var $toLowerCase = String.prototype.toLowerCase; 112 var $test = RegExp.prototype.test; 113 var $concat = Array.prototype.concat; 114 var $join = Array.prototype.join; 115 var $arrSlice = Array.prototype.slice; 116 var $floor = Math.floor; 117 var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null; 118 var gOPS = Object.getOwnPropertySymbols; 119 var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null; 120 var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object"; 121 var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null; 122 var isEnumerable = Object.prototype.propertyIsEnumerable; 123 var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) { 124 return O.__proto__; 125 } : null); 126 function addNumericSeparator(num, str) { 127 if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) { 128 return str; 129 } 130 var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; 131 if (typeof num === "number") { 132 var int = num < 0 ? -$floor(-num) : $floor(num); 133 if (int !== num) { 134 var intStr = String(int); 135 var dec = $slice.call(str, intStr.length + 1); 136 return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, ""); 137 } 138 } 139 return $replace.call(str, sepRegex, "$&_"); 140 } 141 var utilInspect = require_util(); 142 var inspectCustom = utilInspect.custom; 143 var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; 144 var quotes = { 145 __proto__: null, 146 "double": '"', 147 single: "'" 148 }; 149 var quoteREs = { 150 __proto__: null, 151 "double": /(["\\])/g, 152 single: /(['\\])/g 153 }; 154 module.exports = function inspect_(obj, options, depth, seen) { 155 var opts = options || {}; 156 if (has(opts, "quoteStyle") && !has(quotes, opts.quoteStyle)) { 157 throw new TypeError('option "quoteStyle" must be "single" or "double"'); 158 } 159 if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) { 160 throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); 161 } 162 var customInspect = has(opts, "customInspect") ? opts.customInspect : true; 163 if (typeof customInspect !== "boolean" && customInspect !== "symbol") { 164 throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`"); 165 } 166 if (has(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) { 167 throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); 168 } 169 if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") { 170 throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); 171 } 172 var numericSeparator = opts.numericSeparator; 173 if (typeof obj === "undefined") { 174 return "undefined"; 175 } 176 if (obj === null) { 177 return "null"; 178 } 179 if (typeof obj === "boolean") { 180 return obj ? "true" : "false"; 181 } 182 if (typeof obj === "string") { 183 return inspectString(obj, opts); 184 } 185 if (typeof obj === "number") { 186 if (obj === 0) { 187 return Infinity / obj > 0 ? "0" : "-0"; 188 } 189 var str = String(obj); 190 return numericSeparator ? addNumericSeparator(obj, str) : str; 191 } 192 if (typeof obj === "bigint") { 193 var bigIntStr = String(obj) + "n"; 194 return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; 195 } 196 var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth; 197 if (typeof depth === "undefined") { 198 depth = 0; 199 } 200 if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") { 201 return isArray(obj) ? "[Array]" : "[Object]"; 202 } 203 var indent = getIndent(opts, depth); 204 if (typeof seen === "undefined") { 205 seen = []; 206 } else if (indexOf(seen, obj) >= 0) { 207 return "[Circular]"; 208 } 209 function inspect(value, from, noIndent) { 210 if (from) { 211 seen = $arrSlice.call(seen); 212 seen.push(from); 213 } 214 if (noIndent) { 215 var newOpts = { 216 depth: opts.depth 217 }; 218 if (has(opts, "quoteStyle")) { 219 newOpts.quoteStyle = opts.quoteStyle; 220 } 221 return inspect_(value, newOpts, depth + 1, seen); 222 } 223 return inspect_(value, opts, depth + 1, seen); 224 } 225 if (typeof obj === "function" && !isRegExp(obj)) { 226 var name = nameOf(obj); 227 var keys = arrObjKeys(obj, inspect); 228 return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : ""); 229 } 230 if (isSymbol(obj)) { 231 var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj); 232 return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString; 233 } 234 if (isElement(obj)) { 235 var s = "<" + $toLowerCase.call(String(obj.nodeName)); 236 var attrs = obj.attributes || []; 237 for (var i = 0; i < attrs.length; i++) { 238 s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts); 239 } 240 s += ">"; 241 if (obj.childNodes && obj.childNodes.length) { 242 s += "..."; 243 } 244 s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">"; 245 return s; 246 } 247 if (isArray(obj)) { 248 if (obj.length === 0) { 249 return "[]"; 250 } 251 var xs = arrObjKeys(obj, inspect); 252 if (indent && !singleLineValues(xs)) { 253 return "[" + indentedJoin(xs, indent) + "]"; 254 } 255 return "[ " + $join.call(xs, ", ") + " ]"; 256 } 257 if (isError(obj)) { 258 var parts = arrObjKeys(obj, inspect); 259 if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) { 260 return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }"; 261 } 262 if (parts.length === 0) { 263 return "[" + String(obj) + "]"; 264 } 265 return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }"; 266 } 267 if (typeof obj === "object" && customInspect) { 268 if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) { 269 return utilInspect(obj, { depth: maxDepth - depth }); 270 } else if (customInspect !== "symbol" && typeof obj.inspect === "function") { 271 return obj.inspect(); 272 } 273 } 274 if (isMap(obj)) { 275 var mapParts = []; 276 if (mapForEach) { 277 mapForEach.call(obj, function(value, key) { 278 mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj)); 279 }); 280 } 281 return collectionOf("Map", mapSize.call(obj), mapParts, indent); 282 } 283 if (isSet(obj)) { 284 var setParts = []; 285 if (setForEach) { 286 setForEach.call(obj, function(value) { 287 setParts.push(inspect(value, obj)); 288 }); 289 } 290 return collectionOf("Set", setSize.call(obj), setParts, indent); 291 } 292 if (isWeakMap(obj)) { 293 return weakCollectionOf("WeakMap"); 294 } 295 if (isWeakSet(obj)) { 296 return weakCollectionOf("WeakSet"); 297 } 298 if (isWeakRef(obj)) { 299 return weakCollectionOf("WeakRef"); 300 } 301 if (isNumber(obj)) { 302 return markBoxed(inspect(Number(obj))); 303 } 304 if (isBigInt(obj)) { 305 return markBoxed(inspect(bigIntValueOf.call(obj))); 306 } 307 if (isBoolean(obj)) { 308 return markBoxed(booleanValueOf.call(obj)); 309 } 310 if (isString(obj)) { 311 return markBoxed(inspect(String(obj))); 312 } 313 if (typeof window !== "undefined" && obj === window) { 314 return "{ [object Window] }"; 315 } 316 if (typeof globalThis !== "undefined" && obj === globalThis || typeof global !== "undefined" && obj === global) { 317 return "{ [object globalThis] }"; 318 } 319 if (!isDate(obj) && !isRegExp(obj)) { 320 var ys = arrObjKeys(obj, inspect); 321 var isPlainObject3 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; 322 var protoTag = obj instanceof Object ? "" : "null prototype"; 323 var stringTag = !isPlainObject3 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : ""; 324 var constructorTag = isPlainObject3 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : ""; 325 var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : ""); 326 if (ys.length === 0) { 327 return tag + "{}"; 328 } 329 if (indent) { 330 return tag + "{" + indentedJoin(ys, indent) + "}"; 331 } 332 return tag + "{ " + $join.call(ys, ", ") + " }"; 333 } 334 return String(obj); 335 }; 336 function wrapQuotes(s, defaultStyle, opts) { 337 var style = opts.quoteStyle || defaultStyle; 338 var quoteChar = quotes[style]; 339 return quoteChar + s + quoteChar; 340 } 341 function quote(s) { 342 return $replace.call(String(s), /"/g, """); 343 } 344 function canTrustToString(obj) { 345 return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined")); 346 } 347 function isArray(obj) { 348 return toStr(obj) === "[object Array]" && canTrustToString(obj); 349 } 350 function isDate(obj) { 351 return toStr(obj) === "[object Date]" && canTrustToString(obj); 352 } 353 function isRegExp(obj) { 354 return toStr(obj) === "[object RegExp]" && canTrustToString(obj); 355 } 356 function isError(obj) { 357 return toStr(obj) === "[object Error]" && canTrustToString(obj); 358 } 359 function isString(obj) { 360 return toStr(obj) === "[object String]" && canTrustToString(obj); 361 } 362 function isNumber(obj) { 363 return toStr(obj) === "[object Number]" && canTrustToString(obj); 364 } 365 function isBoolean(obj) { 366 return toStr(obj) === "[object Boolean]" && canTrustToString(obj); 367 } 368 function isSymbol(obj) { 369 if (hasShammedSymbols) { 370 return obj && typeof obj === "object" && obj instanceof Symbol; 371 } 372 if (typeof obj === "symbol") { 373 return true; 374 } 375 if (!obj || typeof obj !== "object" || !symToString) { 376 return false; 377 } 378 try { 379 symToString.call(obj); 380 return true; 381 } catch (e2) { 382 } 383 return false; 384 } 385 function isBigInt(obj) { 386 if (!obj || typeof obj !== "object" || !bigIntValueOf) { 387 return false; 388 } 389 try { 390 bigIntValueOf.call(obj); 391 return true; 392 } catch (e2) { 393 } 394 return false; 395 } 396 var hasOwn = Object.prototype.hasOwnProperty || function(key) { 397 return key in this; 398 }; 399 function has(obj, key) { 400 return hasOwn.call(obj, key); 401 } 402 function toStr(obj) { 403 return objectToString.call(obj); 404 } 405 function nameOf(f) { 406 if (f.name) { 407 return f.name; 408 } 409 var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); 410 if (m) { 411 return m[1]; 412 } 413 return null; 414 } 415 function indexOf(xs, x) { 416 if (xs.indexOf) { 417 return xs.indexOf(x); 418 } 419 for (var i = 0, l = xs.length; i < l; i++) { 420 if (xs[i] === x) { 421 return i; 422 } 423 } 424 return -1; 425 } 426 function isMap(x) { 427 if (!mapSize || !x || typeof x !== "object") { 428 return false; 429 } 430 try { 431 mapSize.call(x); 432 try { 433 setSize.call(x); 434 } catch (s) { 435 return true; 436 } 437 return x instanceof Map; 438 } catch (e2) { 439 } 440 return false; 441 } 442 function isWeakMap(x) { 443 if (!weakMapHas || !x || typeof x !== "object") { 444 return false; 445 } 446 try { 447 weakMapHas.call(x, weakMapHas); 448 try { 449 weakSetHas.call(x, weakSetHas); 450 } catch (s) { 451 return true; 452 } 453 return x instanceof WeakMap; 454 } catch (e2) { 455 } 456 return false; 457 } 458 function isWeakRef(x) { 459 if (!weakRefDeref || !x || typeof x !== "object") { 460 return false; 461 } 462 try { 463 weakRefDeref.call(x); 464 return true; 465 } catch (e2) { 466 } 467 return false; 468 } 469 function isSet(x) { 470 if (!setSize || !x || typeof x !== "object") { 471 return false; 472 } 473 try { 474 setSize.call(x); 475 try { 476 mapSize.call(x); 477 } catch (m) { 478 return true; 479 } 480 return x instanceof Set; 481 } catch (e2) { 482 } 483 return false; 484 } 485 function isWeakSet(x) { 486 if (!weakSetHas || !x || typeof x !== "object") { 487 return false; 488 } 489 try { 490 weakSetHas.call(x, weakSetHas); 491 try { 492 weakMapHas.call(x, weakMapHas); 493 } catch (s) { 494 return true; 495 } 496 return x instanceof WeakSet; 497 } catch (e2) { 498 } 499 return false; 500 } 501 function isElement(x) { 502 if (!x || typeof x !== "object") { 503 return false; 504 } 505 if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) { 506 return true; 507 } 508 return typeof x.nodeName === "string" && typeof x.getAttribute === "function"; 509 } 510 function inspectString(str, opts) { 511 if (str.length > opts.maxStringLength) { 512 var remaining = str.length - opts.maxStringLength; 513 var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : ""); 514 return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; 515 } 516 var quoteRE = quoteREs[opts.quoteStyle || "single"]; 517 quoteRE.lastIndex = 0; 518 var s = $replace.call($replace.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte); 519 return wrapQuotes(s, "single", opts); 520 } 521 function lowbyte(c) { 522 var n = c.charCodeAt(0); 523 var x = { 524 8: "b", 525 9: "t", 526 10: "n", 527 12: "f", 528 13: "r" 529 }[n]; 530 if (x) { 531 return "\\" + x; 532 } 533 return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16)); 534 } 535 function markBoxed(str) { 536 return "Object(" + str + ")"; 537 } 538 function weakCollectionOf(type) { 539 return type + " { ? }"; 540 } 541 function collectionOf(type, size, entries, indent) { 542 var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", "); 543 return type + " (" + size + ") {" + joinedEntries + "}"; 544 } 545 function singleLineValues(xs) { 546 for (var i = 0; i < xs.length; i++) { 547 if (indexOf(xs[i], "\n") >= 0) { 548 return false; 549 } 550 } 551 return true; 552 } 553 function getIndent(opts, depth) { 554 var baseIndent; 555 if (opts.indent === " ") { 556 baseIndent = " "; 557 } else if (typeof opts.indent === "number" && opts.indent > 0) { 558 baseIndent = $join.call(Array(opts.indent + 1), " "); 559 } else { 560 return null; 561 } 562 return { 563 base: baseIndent, 564 prev: $join.call(Array(depth + 1), baseIndent) 565 }; 566 } 567 function indentedJoin(xs, indent) { 568 if (xs.length === 0) { 569 return ""; 570 } 571 var lineJoiner = "\n" + indent.prev + indent.base; 572 return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev; 573 } 574 function arrObjKeys(obj, inspect) { 575 var isArr = isArray(obj); 576 var xs = []; 577 if (isArr) { 578 xs.length = obj.length; 579 for (var i = 0; i < obj.length; i++) { 580 xs[i] = has(obj, i) ? inspect(obj[i], obj) : ""; 581 } 582 } 583 var syms = typeof gOPS === "function" ? gOPS(obj) : []; 584 var symMap; 585 if (hasShammedSymbols) { 586 symMap = {}; 587 for (var k = 0; k < syms.length; k++) { 588 symMap["$" + syms[k]] = syms[k]; 589 } 590 } 591 for (var key in obj) { 592 if (!has(obj, key)) { 593 continue; 594 } 595 if (isArr && String(Number(key)) === key && key < obj.length) { 596 continue; 597 } 598 if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) { 599 continue; 600 } else if ($test.call(/[^\w$]/, key)) { 601 xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj)); 602 } else { 603 xs.push(key + ": " + inspect(obj[key], obj)); 604 } 605 } 606 if (typeof gOPS === "function") { 607 for (var j = 0; j < syms.length; j++) { 608 if (isEnumerable.call(obj, syms[j])) { 609 xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj)); 610 } 611 } 612 } 613 return xs; 614 } 615 } 616}); 617
vendor: 2,620 bytes, lines 618-711
618// node_modules/.pnpm/[email protected]/node_modules/side-channel-list/index.js 619var require_side_channel_list = __commonJS({ 620 "node_modules/.pnpm/[email protected]/node_modules/side-channel-list/index.js"(exports, module) { 621 "use strict"; 622 var inspect = require_object_inspect(); 623 var $TypeError = require_type(); 624 var listGetNode = function(list, key, isDelete) { 625 var prev = list; 626 var curr; 627 for (; (curr = prev.next) != null; prev = curr) { 628 if (curr.key === key) { 629 prev.next = curr.next; 630 if (!isDelete) { 631 curr.next = /** @type {NonNullable<typeof list.next>} */ 632 list.next; 633 list.next = curr; 634 } 635 return curr; 636 } 637 } 638 }; 639 var listGet = function(objects, key) { 640 if (!objects) { 641 return void 0; 642 } 643 var node = listGetNode(objects, key); 644 return node && node.value; 645 }; 646 var listSet = function(objects, key, value) { 647 var node = listGetNode(objects, key); 648 if (node) { 649 node.value = value; 650 } else { 651 objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ 652 { 653 // eslint-disable-line no-param-reassign, no-extra-parens 654 key, 655 next: objects.next, 656 value 657 }; 658 } 659 }; 660 var listHas = function(objects, key) { 661 if (!objects) { 662 return false; 663 } 664 return !!listGetNode(objects, key); 665 }; 666 var listDelete = function(objects, key) { 667 if (objects) { 668 return listGetNode(objects, key, true); 669 } 670 }; 671 module.exports = function getSideChannelList() { 672 var $o; 673 var channel = { 674 assert: function(key) { 675 if (!channel.has(key)) { 676 throw new $TypeError("Side channel does not contain " + inspect(key)); 677 } 678 }, 679 "delete": function(key) { 680 var root = $o && $o.next; 681 var deletedNode = listDelete($o, key); 682 if (deletedNode && root && root === deletedNode) { 683 $o = void 0; 684 } 685 return !!deletedNode; 686 }, 687 get: function(key) { 688 return listGet($o, key); 689 }, 690 has: function(key) { 691 return listHas($o, key); 692 }, 693 set: function(key, value) { 694 if (!$o) { 695 $o = { 696 next: void 0 697 }; 698 } 699 listSet( 700 /** @type {NonNullable<typeof $o>} */ 701 $o, 702 key, 703 value 704 ); 705 } 706 }; 707 return channel; 708 }; 709 } 710}); 711
vendor: 283 bytes, lines 712-719
712// node_modules/.pnpm/[email protected]/node_modules/es-object-atoms/index.js 713var require_es_object_atoms = __commonJS({ 714 "node_modules/.pnpm/[email protected]/node_modules/es-object-atoms/index.js"(exports, module) { 715 "use strict"; 716 module.exports = Object; 717 } 718}); 719
vendor: 252 bytes, lines 720-727
720// node_modules/.pnpm/[email protected]/node_modules/es-errors/index.js 721var require_es_errors = __commonJS({ 722 "node_modules/.pnpm/[email protected]/node_modules/es-errors/index.js"(exports, module) { 723 "use strict"; 724 module.exports = Error; 725 } 726}); 727
vendor: 249 bytes, lines 728-735
728// node_modules/.pnpm/[email protected]/node_modules/es-errors/eval.js 729var require_eval = __commonJS({ 730 "node_modules/.pnpm/[email protected]/node_modules/es-errors/eval.js"(exports, module) { 731 "use strict"; 732 module.exports = EvalError; 733 } 734}); 735
vendor: 253 bytes, lines 736-743
736// node_modules/.pnpm/[email protected]/node_modules/es-errors/range.js 737var require_range = __commonJS({ 738 "node_modules/.pnpm/[email protected]/node_modules/es-errors/range.js"(exports, module) { 739 "use strict"; 740 module.exports = RangeError; 741 } 742}); 743
vendor: 251 bytes, lines 744-751
744// node_modules/.pnpm/[email protected]/node_modules/es-errors/ref.js 745var require_ref = __commonJS({ 746 "node_modules/.pnpm/[email protected]/node_modules/es-errors/ref.js"(exports, module) { 747 "use strict"; 748 module.exports = ReferenceError; 749 } 750}); 751
vendor: 257 bytes, lines 752-759
752// node_modules/.pnpm/[email protected]/node_modules/es-errors/syntax.js 753var require_syntax = __commonJS({ 754 "node_modules/.pnpm/[email protected]/node_modules/es-errors/syntax.js"(exports, module) { 755 "use strict"; 756 module.exports = SyntaxError; 757 } 758}); 759
vendor: 245 bytes, lines 760-767
760// node_modules/.pnpm/[email protected]/node_modules/es-errors/uri.js 761var require_uri = __commonJS({ 762 "node_modules/.pnpm/[email protected]/node_modules/es-errors/uri.js"(exports, module) { 763 "use strict"; 764 module.exports = URIError; 765 } 766}); 767
vendor: 269 bytes, lines 768-775
768// node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/abs.js 769var require_abs = __commonJS({ 770 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/abs.js"(exports, module) { 771 "use strict"; 772 module.exports = Math.abs; 773 } 774}); 775
vendor: 277 bytes, lines 776-783
776// node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/floor.js 777var require_floor = __commonJS({ 778 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/floor.js"(exports, module) { 779 "use strict"; 780 module.exports = Math.floor; 781 } 782}); 783
vendor: 269 bytes, lines 784-791
784// node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/max.js 785var require_max = __commonJS({ 786 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/max.js"(exports, module) { 787 "use strict"; 788 module.exports = Math.max; 789 } 790}); 791
vendor: 269 bytes, lines 792-799
792// node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/min.js 793var require_min = __commonJS({ 794 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/min.js"(exports, module) { 795 "use strict"; 796 module.exports = Math.min; 797 } 798}); 799
vendor: 269 bytes, lines 800-807
800// node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/pow.js 801var require_pow = __commonJS({ 802 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/pow.js"(exports, module) { 803 "use strict"; 804 module.exports = Math.pow; 805 } 806}); 807
vendor: 277 bytes, lines 808-815
808// node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/round.js 809var require_round = __commonJS({ 810 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/round.js"(exports, module) { 811 "use strict"; 812 module.exports = Math.round; 813 } 814}); 815
vendor: 331 bytes, lines 816-825
816// node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/isNaN.js 817var require_isNaN = __commonJS({ 818 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/isNaN.js"(exports, module) { 819 "use strict"; 820 module.exports = Number.isNaN || function isNaN2(a) { 821 return a !== a; 822 }; 823 } 824}); 825
vendor: 436 bytes, lines 826-839
826// node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/sign.js 827var require_sign = __commonJS({ 828 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/sign.js"(exports, module) { 829 "use strict"; 830 var $isNaN = require_isNaN(); 831 module.exports = function sign(number) { 832 if ($isNaN(number) || number === 0) { 833 return number; 834 } 835 return number < 0 ? -1 : 1; 836 }; 837 } 838}); 839
vendor: 251 bytes, lines 840-847
840// node_modules/.pnpm/[email protected]/node_modules/gopd/gOPD.js 841var require_gOPD = __commonJS({ 842 "node_modules/.pnpm/[email protected]/node_modules/gopd/gOPD.js"(exports, module) { 843 "use strict"; 844 module.exports = Object.getOwnPropertyDescriptor; 845 } 846}); 847
vendor: 374 bytes, lines 848-863
848// node_modules/.pnpm/[email protected]/node_modules/gopd/index.js 849var require_gopd = __commonJS({ 850 "node_modules/.pnpm/[email protected]/node_modules/gopd/index.js"(exports, module) { 851 "use strict"; 852 var $gOPD = require_gOPD(); 853 if ($gOPD) { 854 try { 855 $gOPD([], "length"); 856 } catch (e2) { 857 $gOPD = null; 858 } 859 } 860 module.exports = $gOPD; 861 } 862}); 863
vendor: 520 bytes, lines 864-879
864// node_modules/.pnpm/[email protected]/node_modules/es-define-property/index.js 865var require_es_define_property = __commonJS({ 866 "node_modules/.pnpm/[email protected]/node_modules/es-define-property/index.js"(exports, module) { 867 "use strict"; 868 var $defineProperty = Object.defineProperty || false; 869 if ($defineProperty) { 870 try { 871 $defineProperty({}, "a", { value: 1 }); 872 } catch (e2) { 873 $defineProperty = false; 874 } 875 } 876 module.exports = $defineProperty; 877 } 878}); 879
vendor: 1,763 bytes, lines 880-934
880// node_modules/.pnpm/[email protected]/node_modules/has-symbols/shams.js 881var require_shams = __commonJS({ 882 "node_modules/.pnpm/[email protected]/node_modules/has-symbols/shams.js"(exports, module) { 883 "use strict"; 884 module.exports = function hasSymbols() { 885 if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") { 886 return false; 887 } 888 if (typeof Symbol.iterator === "symbol") { 889 return true; 890 } 891 var obj = {}; 892 var sym = Symbol("test"); 893 var symObj = Object(sym); 894 if (typeof sym === "string") { 895 return false; 896 } 897 if (Object.prototype.toString.call(sym) !== "[object Symbol]") { 898 return false; 899 } 900 if (Object.prototype.toString.call(symObj) !== "[object Symbol]") { 901 return false; 902 } 903 var symVal = 42; 904 obj[sym] = symVal; 905 for (var _ in obj) { 906 return false; 907 } 908 if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) { 909 return false; 910 } 911 if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) { 912 return false; 913 } 914 var syms = Object.getOwnPropertySymbols(obj); 915 if (syms.length !== 1 || syms[0] !== sym) { 916 return false; 917 } 918 if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { 919 return false; 920 } 921 if (typeof Object.getOwnPropertyDescriptor === "function") { 922 var descriptor = ( 923 /** @type {PropertyDescriptor} */ 924 Object.getOwnPropertyDescriptor(obj, sym) 925 ); 926 if (descriptor.value !== symVal || descriptor.enumerable !== true) { 927 return false; 928 } 929 } 930 return true; 931 }; 932 } 933}); 934
vendor: 731 bytes, lines 935-958
935// node_modules/.pnpm/[email protected]/node_modules/has-symbols/index.js 936var require_has_symbols = __commonJS({ 937 "node_modules/.pnpm/[email protected]/node_modules/has-symbols/index.js"(exports, module) { 938 "use strict"; 939 var origSymbol = typeof Symbol !== "undefined" && Symbol; 940 var hasSymbolSham = require_shams(); 941 module.exports = function hasNativeSymbols() { 942 if (typeof origSymbol !== "function") { 943 return false; 944 } 945 if (typeof Symbol !== "function") { 946 return false; 947 } 948 if (typeof origSymbol("foo") !== "symbol") { 949 return false; 950 } 951 if (typeof Symbol("bar") !== "symbol") { 952 return false; 953 } 954 return hasSymbolSham(); 955 }; 956 } 957}); 958
vendor: 358 bytes, lines 959-966
959// node_modules/.pnpm/[email protected]/node_modules/get-proto/Reflect.getPrototypeOf.js 960var require_Reflect_getPrototypeOf = __commonJS({ 961 "node_modules/.pnpm/[email protected]/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) { 962 "use strict"; 963 module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null; 964 } 965}); 966
vendor: 366 bytes, lines 967-975
967// node_modules/.pnpm/[email protected]/node_modules/get-proto/Object.getPrototypeOf.js 968var require_Object_getPrototypeOf = __commonJS({ 969 "node_modules/.pnpm/[email protected]/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) { 970 "use strict"; 971 var $Object = require_es_object_atoms(); 972 module.exports = $Object.getPrototypeOf || null; 973 } 974}); 975
vendor: 2,334 bytes, lines 976-1051
976// node_modules/.pnpm/[email protected]/node_modules/function-bind/implementation.js 977var require_implementation = __commonJS({ 978 "node_modules/.pnpm/[email protected]/node_modules/function-bind/implementation.js"(exports, module) { 979 "use strict"; 980 var ERROR_MESSAGE = "Function.prototype.bind called on incompatible "; 981 var toStr = Object.prototype.toString; 982 var max = Math.max; 983 var funcType = "[object Function]"; 984 var concatty = function concatty2(a, b) { 985 var arr = []; 986 for (var i = 0; i < a.length; i += 1) { 987 arr[i] = a[i]; 988 } 989 for (var j = 0; j < b.length; j += 1) { 990 arr[j + a.length] = b[j]; 991 } 992 return arr; 993 }; 994 var slicy = function slicy2(arrLike, offset) { 995 var arr = []; 996 for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) { 997 arr[j] = arrLike[i]; 998 } 999 return arr; 1000 }; 1001 var joiny = function(arr, joiner) { 1002 var str = ""; 1003 for (var i = 0; i < arr.length; i += 1) { 1004 str += arr[i]; 1005 if (i + 1 < arr.length) { 1006 str += joiner; 1007 } 1008 } 1009 return str; 1010 }; 1011 module.exports = function bind(that) { 1012 var target = this; 1013 if (typeof target !== "function" || toStr.apply(target) !== funcType) { 1014 throw new TypeError(ERROR_MESSAGE + target); 1015 } 1016 var args = slicy(arguments, 1); 1017 var bound; 1018 var binder = function() { 1019 if (this instanceof bound) { 1020 var result = target.apply( 1021 this, 1022 concatty(args, arguments) 1023 ); 1024 if (Object(result) === result) { 1025 return result; 1026 } 1027 return this; 1028 } 1029 return target.apply( 1030 that, 1031 concatty(args, arguments) 1032 ); 1033 }; 1034 var boundLength = max(0, target.length - args.length); 1035 var boundArgs = []; 1036 for (var i = 0; i < boundLength; i++) { 1037 boundArgs[i] = "$" + i; 1038 } 1039 bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder); 1040 if (target.prototype) { 1041 var Empty = function Empty2() { 1042 }; 1043 Empty.prototype = target.prototype; 1044 bound.prototype = new Empty(); 1045 Empty.prototype = null; 1046 } 1047 return bound; 1048 }; 1049 } 1050}); 1051
vendor: 359 bytes, lines 1052-1060
1052// node_modules/.pnpm/[email protected]/node_modules/function-bind/index.js 1053var require_function_bind = __commonJS({ 1054 "node_modules/.pnpm/[email protected]/node_modules/function-bind/index.js"(exports, module) { 1055 "use strict"; 1056 var implementation = require_implementation(); 1057 module.exports = Function.prototype.bind || implementation; 1058 } 1059}); 1060
vendor: 343 bytes, lines 1061-1068
1061// node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/functionCall.js 1062var require_functionCall = __commonJS({ 1063 "node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) { 1064 "use strict"; 1065 module.exports = Function.prototype.call; 1066 } 1067}); 1068
vendor: 347 bytes, lines 1069-1076
1069// node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/functionApply.js 1070var require_functionApply = __commonJS({ 1071 "node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) { 1072 "use strict"; 1073 module.exports = Function.prototype.apply; 1074 } 1075}); 1076
vendor: 378 bytes, lines 1077-1084
1077// node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/reflectApply.js 1078var require_reflectApply = __commonJS({ 1079 "node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) { 1080 "use strict"; 1081 module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply; 1082 } 1083}); 1084
vendor: 528 bytes, lines 1085-1096
1085// node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/actualApply.js 1086var require_actualApply = __commonJS({ 1087 "node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) { 1088 "use strict"; 1089 var bind = require_function_bind(); 1090 var $apply = require_functionApply(); 1091 var $call = require_functionCall(); 1092 var $reflectApply = require_reflectApply(); 1093 module.exports = $reflectApply || bind.call($call, $apply); 1094 } 1095}); 1096
vendor: 688 bytes, lines 1097-1113
1097// node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/index.js 1098var require_call_bind_apply_helpers = __commonJS({ 1099 "node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/index.js"(exports, module) { 1100 "use strict"; 1101 var bind = require_function_bind(); 1102 var $TypeError = require_type(); 1103 var $call = require_functionCall(); 1104 var $actualApply = require_actualApply(); 1105 module.exports = function callBindBasic(args) { 1106 if (args.length < 1 || typeof args[0] !== "function") { 1107 throw new $TypeError("a function is required"); 1108 } 1109 return $actualApply(bind, $call, args); 1110 }; 1111 } 1112}); 1113
vendor: 1,133 bytes, lines 1114-1144
1114// node_modules/.pnpm/[email protected]/node_modules/dunder-proto/get.js 1115var require_get = __commonJS({ 1116 "node_modules/.pnpm/[email protected]/node_modules/dunder-proto/get.js"(exports, module) { 1117 "use strict"; 1118 var callBind = require_call_bind_apply_helpers(); 1119 var gOPD = require_gopd(); 1120 var hasProtoAccessor; 1121 try { 1122 hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ 1123 [].__proto__ === Array.prototype; 1124 } catch (e2) { 1125 if (!e2 || typeof e2 !== "object" || !("code" in e2) || e2.code !== "ERR_PROTO_ACCESS") { 1126 throw e2; 1127 } 1128 } 1129 var desc = !!hasProtoAccessor && gOPD && gOPD( 1130 Object.prototype, 1131 /** @type {keyof typeof Object.prototype} */ 1132 "__proto__" 1133 ); 1134 var $Object = Object; 1135 var $getPrototypeOf = $Object.getPrototypeOf; 1136 module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? ( 1137 /** @type {import('./get')} */ 1138 function getDunder(value) { 1139 return $getPrototypeOf(value == null ? value : $Object(value)); 1140 } 1141 ) : false; 1142 } 1143}); 1144
vendor: 789 bytes, lines 1145-1164
1145// node_modules/.pnpm/[email protected]/node_modules/get-proto/index.js 1146var require_get_proto = __commonJS({ 1147 "node_modules/.pnpm/[email protected]/node_modules/get-proto/index.js"(exports, module) { 1148 "use strict"; 1149 var reflectGetProto = require_Reflect_getPrototypeOf(); 1150 var originalGetProto = require_Object_getPrototypeOf(); 1151 var getDunderProto = require_get(); 1152 module.exports = reflectGetProto ? function getProto(O) { 1153 return reflectGetProto(O); 1154 } : originalGetProto ? function getProto(O) { 1155 if (!O || typeof O !== "object" && typeof O !== "function") { 1156 throw new TypeError("getProto: not an object"); 1157 } 1158 return originalGetProto(O); 1159 } : getDunderProto ? function getProto(O) { 1160 return getDunderProto(O); 1161 } : null; 1162 } 1163}); 1164
vendor: 387 bytes, lines 1165-1175
1165// node_modules/.pnpm/[email protected]/node_modules/hasown/index.js 1166var require_hasown = __commonJS({ 1167 "node_modules/.pnpm/[email protected]/node_modules/hasown/index.js"(exports, module) { 1168 "use strict"; 1169 var call = Function.prototype.call; 1170 var $hasOwn = Object.prototype.hasOwnProperty; 1171 var bind = require_function_bind(); 1172 module.exports = bind.call(call, $hasOwn); 1173 } 1174}); 1175
vendor: 15,143 bytes, lines 1176-1506
1176// node_modules/.pnpm/[email protected]/node_modules/get-intrinsic/index.js 1177var require_get_intrinsic = __commonJS({ 1178 "node_modules/.pnpm/[email protected]/node_modules/get-intrinsic/index.js"(exports, module) { 1179 "use strict"; 1180 var undefined2; 1181 var $Object = require_es_object_atoms(); 1182 var $Error = require_es_errors(); 1183 var $EvalError = require_eval(); 1184 var $RangeError = require_range(); 1185 var $ReferenceError = require_ref(); 1186 var $SyntaxError = require_syntax(); 1187 var $TypeError = require_type(); 1188 var $URIError = require_uri(); 1189 var abs = require_abs(); 1190 var floor = require_floor(); 1191 var max = require_max(); 1192 var min = require_min(); 1193 var pow = require_pow(); 1194 var round = require_round(); 1195 var sign = require_sign(); 1196 var $Function = Function; 1197 var getEvalledConstructor = function(expressionSyntax) { 1198 try { 1199 return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")(); 1200 } catch (e2) { 1201 } 1202 }; 1203 var $gOPD = require_gopd(); 1204 var $defineProperty = require_es_define_property(); 1205 var throwTypeError = function() { 1206 throw new $TypeError(); 1207 }; 1208 var ThrowTypeError = $gOPD ? function() { 1209 try { 1210 arguments.callee; 1211 return throwTypeError; 1212 } catch (calleeThrows) { 1213 try { 1214 return $gOPD(arguments, "callee").get; 1215 } catch (gOPDthrows) { 1216 return throwTypeError; 1217 } 1218 } 1219 }() : throwTypeError; 1220 var hasSymbols = require_has_symbols()(); 1221 var getProto = require_get_proto(); 1222 var $ObjectGPO = require_Object_getPrototypeOf(); 1223 var $ReflectGPO = require_Reflect_getPrototypeOf(); 1224 var $apply = require_functionApply(); 1225 var $call = require_functionCall(); 1226 var needsEval = {}; 1227 var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array); 1228 var INTRINSICS = { 1229 __proto__: null, 1230 "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError, 1231 "%Array%": Array, 1232 "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer, 1233 "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2, 1234 "%AsyncFromSyncIteratorPrototype%": undefined2, 1235 "%AsyncFunction%": needsEval, 1236 "%AsyncGenerator%": needsEval, 1237 "%AsyncGeneratorFunction%": needsEval, 1238 "%AsyncIteratorPrototype%": needsEval, 1239 "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics, 1240 "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt, 1241 "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array, 1242 "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array, 1243 "%Boolean%": Boolean, 1244 "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView, 1245 "%Date%": Date, 1246 "%decodeURI%": decodeURI, 1247 "%decodeURIComponent%": decodeURIComponent, 1248 "%encodeURI%": encodeURI, 1249 "%encodeURIComponent%": encodeURIComponent, 1250 "%Error%": $Error, 1251 "%eval%": eval, 1252 // eslint-disable-line no-eval 1253 "%EvalError%": $EvalError, 1254 "%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array, 1255 "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array, 1256 "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array, 1257 "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry, 1258 "%Function%": $Function, 1259 "%GeneratorFunction%": needsEval, 1260 "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array, 1261 "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array, 1262 "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array, 1263 "%isFinite%": isFinite, 1264 "%isNaN%": isNaN, 1265 "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2, 1266 "%JSON%": typeof JSON === "object" ? JSON : undefined2, 1267 "%Map%": typeof Map === "undefined" ? undefined2 : Map, 1268 "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()), 1269 "%Math%": Math, 1270 "%Number%": Number, 1271 "%Object%": $Object, 1272 "%Object.getOwnPropertyDescriptor%": $gOPD, 1273 "%parseFloat%": parseFloat, 1274 "%parseInt%": parseInt, 1275 "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise, 1276 "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy, 1277 "%RangeError%": $RangeError, 1278 "%ReferenceError%": $ReferenceError, 1279 "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect, 1280 "%RegExp%": RegExp, 1281 "%Set%": typeof Set === "undefined" ? undefined2 : Set, 1282 "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()), 1283 "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer, 1284 "%String%": String, 1285 "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2, 1286 "%Symbol%": hasSymbols ? Symbol : undefined2, 1287 "%SyntaxError%": $SyntaxError, 1288 "%ThrowTypeError%": ThrowTypeError, 1289 "%TypedArray%": TypedArray, 1290 "%TypeError%": $TypeError, 1291 "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array, 1292 "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray, 1293 "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array, 1294 "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array, 1295 "%URIError%": $URIError, 1296 "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap, 1297 "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef, 1298 "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet, 1299 "%Function.prototype.call%": $call, 1300 "%Function.prototype.apply%": $apply, 1301 "%Object.defineProperty%": $defineProperty, 1302 "%Object.getPrototypeOf%": $ObjectGPO, 1303 "%Math.abs%": abs, 1304 "%Math.floor%": floor, 1305 "%Math.max%": max, 1306 "%Math.min%": min, 1307 "%Math.pow%": pow, 1308 "%Math.round%": round, 1309 "%Math.sign%": sign, 1310 "%Reflect.getPrototypeOf%": $ReflectGPO 1311 }; 1312 if (getProto) { 1313 try { 1314 null.error; 1315 } catch (e2) { 1316 errorProto = getProto(getProto(e2)); 1317 INTRINSICS["%Error.prototype%"] = errorProto; 1318 } 1319 } 1320 var errorProto; 1321 var doEval = function doEval2(name) { 1322 var value; 1323 if (name === "%AsyncFunction%") { 1324 value = getEvalledConstructor("async function () {}"); 1325 } else if (name === "%GeneratorFunction%") { 1326 value = getEvalledConstructor("function* () {}"); 1327 } else if (name === "%AsyncGeneratorFunction%") { 1328 value = getEvalledConstructor("async function* () {}"); 1329 } else if (name === "%AsyncGenerator%") { 1330 var fn = doEval2("%AsyncGeneratorFunction%"); 1331 if (fn) { 1332 value = fn.prototype; 1333 } 1334 } else if (name === "%AsyncIteratorPrototype%") { 1335 var gen = doEval2("%AsyncGenerator%"); 1336 if (gen && getProto) { 1337 value = getProto(gen.prototype); 1338 } 1339 } 1340 INTRINSICS[name] = value; 1341 return value; 1342 }; 1343 var LEGACY_ALIASES = { 1344 __proto__: null, 1345 "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], 1346 "%ArrayPrototype%": ["Array", "prototype"], 1347 "%ArrayProto_entries%": ["Array", "prototype", "entries"], 1348 "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], 1349 "%ArrayProto_keys%": ["Array", "prototype", "keys"], 1350 "%ArrayProto_values%": ["Array", "prototype", "values"], 1351 "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], 1352 "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], 1353 "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], 1354 "%BooleanPrototype%": ["Boolean", "prototype"], 1355 "%DataViewPrototype%": ["DataView", "prototype"], 1356 "%DatePrototype%": ["Date", "prototype"], 1357 "%ErrorPrototype%": ["Error", "prototype"], 1358 "%EvalErrorPrototype%": ["EvalError", "prototype"], 1359 "%Float32ArrayPrototype%": ["Float32Array", "prototype"], 1360 "%Float64ArrayPrototype%": ["Float64Array", "prototype"], 1361 "%FunctionPrototype%": ["Function", "prototype"], 1362 "%Generator%": ["GeneratorFunction", "prototype"], 1363 "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], 1364 "%Int8ArrayPrototype%": ["Int8Array", "prototype"], 1365 "%Int16ArrayPrototype%": ["Int16Array", "prototype"], 1366 "%Int32ArrayPrototype%": ["Int32Array", "prototype"], 1367 "%JSONParse%": ["JSON", "parse"], 1368 "%JSONStringify%": ["JSON", "stringify"], 1369 "%MapPrototype%": ["Map", "prototype"], 1370 "%NumberPrototype%": ["Number", "prototype"], 1371 "%ObjectPrototype%": ["Object", "prototype"], 1372 "%ObjProto_toString%": ["Object", "prototype", "toString"], 1373 "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], 1374 "%PromisePrototype%": ["Promise", "prototype"], 1375 "%PromiseProto_then%": ["Promise", "prototype", "then"], 1376 "%Promise_all%": ["Promise", "all"], 1377 "%Promise_reject%": ["Promise", "reject"], 1378 "%Promise_resolve%": ["Promise", "resolve"], 1379 "%RangeErrorPrototype%": ["RangeError", "prototype"], 1380 "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], 1381 "%RegExpPrototype%": ["RegExp", "prototype"], 1382 "%SetPrototype%": ["Set", "prototype"], 1383 "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], 1384 "%StringPrototype%": ["String", "prototype"], 1385 "%SymbolPrototype%": ["Symbol", "prototype"], 1386 "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], 1387 "%TypedArrayPrototype%": ["TypedArray", "prototype"], 1388 "%TypeErrorPrototype%": ["TypeError", "prototype"], 1389 "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], 1390 "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], 1391 "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], 1392 "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], 1393 "%URIErrorPrototype%": ["URIError", "prototype"], 1394 "%WeakMapPrototype%": ["WeakMap", "prototype"], 1395 "%WeakSetPrototype%": ["WeakSet", "prototype"] 1396 }; 1397 var bind = require_function_bind(); 1398 var hasOwn = require_hasown(); 1399 var $concat = bind.call($call, Array.prototype.concat); 1400 var $spliceApply = bind.call($apply, Array.prototype.splice); 1401 var $replace = bind.call($call, String.prototype.replace); 1402 var $strSlice = bind.call($call, String.prototype.slice); 1403 var $exec = bind.call($call, RegExp.prototype.exec); 1404 var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; 1405 var reEscapeChar = /\\(\\)?/g; 1406 var stringToPath = function stringToPath2(string) { 1407 var first = $strSlice(string, 0, 1); 1408 var last = $strSlice(string, -1); 1409 if (first === "%" && last !== "%") { 1410 throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`"); 1411 } else if (last === "%" && first !== "%") { 1412 throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`"); 1413 } 1414 var result = []; 1415 $replace(string, rePropName, function(match, number, quote, subString) { 1416 result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match; 1417 }); 1418 return result; 1419 }; 1420 var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) { 1421 var intrinsicName = name; 1422 var alias; 1423 if (hasOwn(LEGACY_ALIASES, intrinsicName)) { 1424 alias = LEGACY_ALIASES[intrinsicName]; 1425 intrinsicName = "%" + alias[0] + "%"; 1426 } 1427 if (hasOwn(INTRINSICS, intrinsicName)) { 1428 var value = INTRINSICS[intrinsicName]; 1429 if (value === needsEval) { 1430 value = doEval(intrinsicName); 1431 } 1432 if (typeof value === "undefined" && !allowMissing) { 1433 throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!"); 1434 } 1435 return { 1436 alias, 1437 name: intrinsicName, 1438 value 1439 }; 1440 } 1441 throw new $SyntaxError("intrinsic " + name + " does not exist!"); 1442 }; 1443 module.exports = function GetIntrinsic(name, allowMissing) { 1444 if (typeof name !== "string" || name.length === 0) { 1445 throw new $TypeError("intrinsic name must be a non-empty string"); 1446 } 1447 if (arguments.length > 1 && typeof allowMissing !== "boolean") { 1448 throw new $TypeError('"allowMissing" argument must be a boolean'); 1449 } 1450 if ($exec(/^%?[^%]*%?$/, name) === null) { 1451 throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); 1452 } 1453 var parts = stringToPath(name); 1454 var intrinsicBaseName = parts.length > 0 ? parts[0] : ""; 1455 var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing); 1456 var intrinsicRealName = intrinsic.name; 1457 var value = intrinsic.value; 1458 var skipFurtherCaching = false; 1459 var alias = intrinsic.alias; 1460 if (alias) { 1461 intrinsicBaseName = alias[0]; 1462 $spliceApply(parts, $concat([0, 1], alias)); 1463 } 1464 for (var i = 1, isOwn = true; i < parts.length; i += 1) { 1465 var part = parts[i]; 1466 var first = $strSlice(part, 0, 1); 1467 var last = $strSlice(part, -1); 1468 if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) { 1469 throw new $SyntaxError("property names with quotes must have matching quotes"); 1470 } 1471 if (part === "constructor" || !isOwn) { 1472 skipFurtherCaching = true; 1473 } 1474 intrinsicBaseName += "." + part; 1475 intrinsicRealName = "%" + intrinsicBaseName + "%"; 1476 if (hasOwn(INTRINSICS, intrinsicRealName)) { 1477 value = INTRINSICS[intrinsicRealName]; 1478 } else if (value != null) { 1479 if (!(part in value)) { 1480 if (!allowMissing) { 1481 throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available."); 1482 } 1483 return void 0; 1484 } 1485 if ($gOPD && i + 1 >= parts.length) { 1486 var desc = $gOPD(value, part); 1487 isOwn = !!desc; 1488 if (isOwn && "get" in desc && !("originalValue" in desc.get)) { 1489 value = desc.get; 1490 } else { 1491 value = value[part]; 1492 } 1493 } else { 1494 isOwn = hasOwn(value, part); 1495 value = value[part]; 1496 } 1497 if (isOwn && !skipFurtherCaching) { 1498 INTRINSICS[intrinsicRealName] = value; 1499 } 1500 } 1501 } 1502 return value; 1503 }; 1504 } 1505}); 1506
vendor: 849 bytes, lines 1507-1529
1507// node_modules/.pnpm/[email protected]/node_modules/call-bound/index.js 1508var require_call_bound = __commonJS({ 1509 "node_modules/.pnpm/[email protected]/node_modules/call-bound/index.js"(exports, module) { 1510 "use strict"; 1511 var GetIntrinsic = require_get_intrinsic(); 1512 var callBindBasic = require_call_bind_apply_helpers(); 1513 var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]); 1514 module.exports = function callBoundIntrinsic(name, allowMissing) { 1515 var intrinsic = ( 1516 /** @type {(this: unknown, ...args: unknown[]) => unknown} */ 1517 GetIntrinsic(name, !!allowMissing) 1518 ); 1519 if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) { 1520 return callBindBasic( 1521 /** @type {const} */ 1522 [intrinsic] 1523 ); 1524 } 1525 return intrinsic; 1526 }; 1527 } 1528}); 1529
vendor: 1,756 bytes, lines 1530-1585
1530// node_modules/.pnpm/[email protected]/node_modules/side-channel-map/index.js 1531var require_side_channel_map = __commonJS({ 1532 "node_modules/.pnpm/[email protected]/node_modules/side-channel-map/index.js"(exports, module) { 1533 "use strict"; 1534 var GetIntrinsic = require_get_intrinsic(); 1535 var callBound = require_call_bound(); 1536 var inspect = require_object_inspect(); 1537 var $TypeError = require_type(); 1538 var $Map = GetIntrinsic("%Map%", true); 1539 var $mapGet = callBound("Map.prototype.get", true); 1540 var $mapSet = callBound("Map.prototype.set", true); 1541 var $mapHas = callBound("Map.prototype.has", true); 1542 var $mapDelete = callBound("Map.prototype.delete", true); 1543 var $mapSize = callBound("Map.prototype.size", true); 1544 module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */ 1545 function getSideChannelMap() { 1546 var $m; 1547 var channel = { 1548 assert: function(key) { 1549 if (!channel.has(key)) { 1550 throw new $TypeError("Side channel does not contain " + inspect(key)); 1551 } 1552 }, 1553 "delete": function(key) { 1554 if ($m) { 1555 var result = $mapDelete($m, key); 1556 if ($mapSize($m) === 0) { 1557 $m = void 0; 1558 } 1559 return result; 1560 } 1561 return false; 1562 }, 1563 get: function(key) { 1564 if ($m) { 1565 return $mapGet($m, key); 1566 } 1567 }, 1568 has: function(key) { 1569 if ($m) { 1570 return $mapHas($m, key); 1571 } 1572 return false; 1573 }, 1574 set: function(key, value) { 1575 if (!$m) { 1576 $m = new $Map(); 1577 } 1578 $mapSet($m, key, value); 1579 } 1580 }; 1581 return channel; 1582 }; 1583 } 1584}); 1585
vendor: 2,648 bytes, lines 1586-1658
1586// node_modules/.pnpm/[email protected]/node_modules/side-channel-weakmap/index.js 1587var require_side_channel_weakmap = __commonJS({ 1588 "node_modules/.pnpm/[email protected]/node_modules/side-channel-weakmap/index.js"(exports, module) { 1589 "use strict"; 1590 var GetIntrinsic = require_get_intrinsic(); 1591 var callBound = require_call_bound(); 1592 var inspect = require_object_inspect(); 1593 var getSideChannelMap = require_side_channel_map(); 1594 var $TypeError = require_type(); 1595 var $WeakMap = GetIntrinsic("%WeakMap%", true); 1596 var $weakMapGet = callBound("WeakMap.prototype.get", true); 1597 var $weakMapSet = callBound("WeakMap.prototype.set", true); 1598 var $weakMapHas = callBound("WeakMap.prototype.has", true); 1599 var $weakMapDelete = callBound("WeakMap.prototype.delete", true); 1600 module.exports = $WeakMap ? ( 1601 /** @type {Exclude<import('.'), false>} */ 1602 function getSideChannelWeakMap() { 1603 var $wm; 1604 var $m; 1605 var channel = { 1606 assert: function(key) { 1607 if (!channel.has(key)) { 1608 throw new $TypeError("Side channel does not contain " + inspect(key)); 1609 } 1610 }, 1611 "delete": function(key) { 1612 if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) { 1613 if ($wm) { 1614 return $weakMapDelete($wm, key); 1615 } 1616 } else if (getSideChannelMap) { 1617 if ($m) { 1618 return $m["delete"](key); 1619 } 1620 } 1621 return false; 1622 }, 1623 get: function(key) { 1624 if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) { 1625 if ($wm) { 1626 return $weakMapGet($wm, key); 1627 } 1628 } 1629 return $m && $m.get(key); 1630 }, 1631 has: function(key) { 1632 if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) { 1633 if ($wm) { 1634 return $weakMapHas($wm, key); 1635 } 1636 } 1637 return !!$m && $m.has(key); 1638 }, 1639 set: function(key, value) { 1640 if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) { 1641 if (!$wm) { 1642 $wm = new $WeakMap(); 1643 } 1644 $weakMapSet($wm, key, value); 1645 } else if (getSideChannelMap) { 1646 if (!$m) { 1647 $m = getSideChannelMap(); 1648 } 1649 $m.set(key, value); 1650 } 1651 } 1652 }; 1653 return channel; 1654 } 1655 ) : getSideChannelMap; 1656 } 1657}); 1658
vendor: 1,366 bytes, lines 1659-1697
1659// node_modules/.pnpm/[email protected]/node_modules/side-channel/index.js 1660var require_side_channel = __commonJS({ 1661 "node_modules/.pnpm/[email protected]/node_modules/side-channel/index.js"(exports, module) { 1662 "use strict"; 1663 var $TypeError = require_type(); 1664 var inspect = require_object_inspect(); 1665 var getSideChannelList = require_side_channel_list(); 1666 var getSideChannelMap = require_side_channel_map(); 1667 var getSideChannelWeakMap = require_side_channel_weakmap(); 1668 var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList; 1669 module.exports = function getSideChannel() { 1670 var $channelData; 1671 var channel = { 1672 assert: function(key) { 1673 if (!channel.has(key)) { 1674 throw new $TypeError("Side channel does not contain " + inspect(key)); 1675 } 1676 }, 1677 "delete": function(key) { 1678 return !!$channelData && $channelData["delete"](key); 1679 }, 1680 get: function(key) { 1681 return $channelData && $channelData.get(key); 1682 }, 1683 has: function(key) { 1684 return !!$channelData && $channelData.has(key); 1685 }, 1686 set: function(key, value) { 1687 if (!$channelData) { 1688 $channelData = makeChannel(); 1689 } 1690 $channelData.set(key, value); 1691 } 1692 }; 1693 return channel; 1694 }; 1695 } 1696}); 1697
vendor: 699 bytes, lines 1698-1723
1698// node_modules/.pnpm/[email protected]/node_modules/qs/lib/formats.js 1699var require_formats = __commonJS({ 1700 "node_modules/.pnpm/[email protected]/node_modules/qs/lib/formats.js"(exports, module) { 1701 "use strict"; 1702 var replace = String.prototype.replace; 1703 var percentTwenties = /%20/g; 1704 var Format = { 1705 RFC1738: "RFC1738", 1706 RFC3986: "RFC3986" 1707 }; 1708 module.exports = { 1709 "default": Format.RFC3986, 1710 formatters: { 1711 RFC1738: function(value) { 1712 return replace.call(value, percentTwenties, "+"); 1713 }, 1714 RFC3986: function(value) { 1715 return String(value); 1716 } 1717 }, 1718 RFC1738: Format.RFC1738, 1719 RFC3986: Format.RFC3986 1720 }; 1721 } 1722}); 1723
vendor: 6,411 bytes, lines 1724-1922
1724// node_modules/.pnpm/[email protected]/node_modules/qs/lib/utils.js 1725var require_utils = __commonJS({ 1726 "node_modules/.pnpm/[email protected]/node_modules/qs/lib/utils.js"(exports, module) { 1727 "use strict"; 1728 var formats = require_formats(); 1729 var has = Object.prototype.hasOwnProperty; 1730 var isArray = Array.isArray; 1731 var hexTable = function() { 1732 var array = []; 1733 for (var i = 0; i < 256; ++i) { 1734 array.push("%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase()); 1735 } 1736 return array; 1737 }(); 1738 var compactQueue = function compactQueue2(queue) { 1739 while (queue.length > 1) { 1740 var item = queue.pop(); 1741 var obj = item.obj[item.prop]; 1742 if (isArray(obj)) { 1743 var compacted = []; 1744 for (var j = 0; j < obj.length; ++j) { 1745 if (typeof obj[j] !== "undefined") { 1746 compacted.push(obj[j]); 1747 } 1748 } 1749 item.obj[item.prop] = compacted; 1750 } 1751 } 1752 }; 1753 var arrayToObject = function arrayToObject2(source, options) { 1754 var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {}; 1755 for (var i = 0; i < source.length; ++i) { 1756 if (typeof source[i] !== "undefined") { 1757 obj[i] = source[i]; 1758 } 1759 } 1760 return obj; 1761 }; 1762 var merge = function merge2(target, source, options) { 1763 if (!source) { 1764 return target; 1765 } 1766 if (typeof source !== "object") { 1767 if (isArray(target)) { 1768 target.push(source); 1769 } else if (target && typeof target === "object") { 1770 if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) { 1771 target[source] = true; 1772 } 1773 } else { 1774 return [target, source]; 1775 } 1776 return target; 1777 } 1778 if (!target || typeof target !== "object") { 1779 return [target].concat(source); 1780 } 1781 var mergeTarget = target; 1782 if (isArray(target) && !isArray(source)) { 1783 mergeTarget = arrayToObject(target, options); 1784 } 1785 if (isArray(target) && isArray(source)) { 1786 source.forEach(function(item, i) { 1787 if (has.call(target, i)) { 1788 var targetItem = target[i]; 1789 if (targetItem && typeof targetItem === "object" && item && typeof item === "object") { 1790 target[i] = merge2(targetItem, item, options); 1791 } else { 1792 target.push(item); 1793 } 1794 } else { 1795 target[i] = item; 1796 } 1797 }); 1798 return target; 1799 } 1800 return Object.keys(source).reduce(function(acc, key) { 1801 var value = source[key]; 1802 if (has.call(acc, key)) { 1803 acc[key] = merge2(acc[key], value, options); 1804 } else { 1805 acc[key] = value; 1806 } 1807 return acc; 1808 }, mergeTarget); 1809 }; 1810 var assign = function assignSingleSource(target, source) { 1811 return Object.keys(source).reduce(function(acc, key) { 1812 acc[key] = source[key]; 1813 return acc; 1814 }, target); 1815 }; 1816 var decode = function(str, decoder, charset) { 1817 var strWithoutPlus = str.replace(/\+/g, " "); 1818 if (charset === "iso-8859-1") { 1819 return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); 1820 } 1821 try { 1822 return decodeURIComponent(strWithoutPlus); 1823 } catch (e2) { 1824 return strWithoutPlus; 1825 } 1826 }; 1827 var encode = function encode2(str, defaultEncoder, charset, kind, format) { 1828 if (str.length === 0) { 1829 return str; 1830 } 1831 var string = str; 1832 if (typeof str === "symbol") { 1833 string = Symbol.prototype.toString.call(str); 1834 } else if (typeof str !== "string") { 1835 string = String(str); 1836 } 1837 if (charset === "iso-8859-1") { 1838 return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) { 1839 return "%26%23" + parseInt($0.slice(2), 16) + "%3B"; 1840 }); 1841 } 1842 var out = ""; 1843 for (var i = 0; i < string.length; ++i) { 1844 var c = string.charCodeAt(i); 1845 if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) { 1846 out += string.charAt(i); 1847 continue; 1848 } 1849 if (c < 128) { 1850 out = out + hexTable[c]; 1851 continue; 1852 } 1853 if (c < 2048) { 1854 out = out + (hexTable[192 | c >> 6] + hexTable[128 | c & 63]); 1855 continue; 1856 } 1857 if (c < 55296 || c >= 57344) { 1858 out = out + (hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]); 1859 continue; 1860 } 1861 i += 1; 1862 c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023); 1863 out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]; 1864 } 1865 return out; 1866 }; 1867 var compact = function compact2(value) { 1868 var queue = [{ obj: { o: value }, prop: "o" }]; 1869 var refs = []; 1870 for (var i = 0; i < queue.length; ++i) { 1871 var item = queue[i]; 1872 var obj = item.obj[item.prop]; 1873 var keys = Object.keys(obj); 1874 for (var j = 0; j < keys.length; ++j) { 1875 var key = keys[j]; 1876 var val = obj[key]; 1877 if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) { 1878 queue.push({ obj, prop: key }); 1879 refs.push(val); 1880 } 1881 } 1882 } 1883 compactQueue(queue); 1884 return value; 1885 }; 1886 var isRegExp = function isRegExp2(obj) { 1887 return Object.prototype.toString.call(obj) === "[object RegExp]"; 1888 }; 1889 var isBuffer = function isBuffer2(obj) { 1890 if (!obj || typeof obj !== "object") { 1891 return false; 1892 } 1893 return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); 1894 }; 1895 var combine = function combine2(a, b) { 1896 return [].concat(a, b); 1897 }; 1898 var maybeMap = function maybeMap2(val, fn) { 1899 if (isArray(val)) { 1900 var mapped = []; 1901 for (var i = 0; i < val.length; i += 1) { 1902 mapped.push(fn(val[i])); 1903 } 1904 return mapped; 1905 } 1906 return fn(val); 1907 }; 1908 module.exports = { 1909 arrayToObject, 1910 assign, 1911 combine, 1912 compact, 1913 decode, 1914 encode, 1915 isBuffer, 1916 isRegExp, 1917 maybeMap, 1918 merge 1919 }; 1920 } 1921}); 1922
vendor: 9,865 bytes, lines 1923-2179
1923// node_modules/.pnpm/[email protected]/node_modules/qs/lib/stringify.js 1924var require_stringify = __commonJS({ 1925 "node_modules/.pnpm/[email protected]/node_modules/qs/lib/stringify.js"(exports, module) { 1926 "use strict"; 1927 var getSideChannel = require_side_channel(); 1928 var utils = require_utils(); 1929 var formats = require_formats(); 1930 var has = Object.prototype.hasOwnProperty; 1931 var arrayPrefixGenerators = { 1932 brackets: function brackets(prefix) { 1933 return prefix + "[]"; 1934 }, 1935 comma: "comma", 1936 indices: function indices(prefix, key) { 1937 return prefix + "[" + key + "]"; 1938 }, 1939 repeat: function repeat(prefix) { 1940 return prefix; 1941 } 1942 }; 1943 var isArray = Array.isArray; 1944 var push = Array.prototype.push; 1945 var pushToArray = function(arr, valueOrArray) { 1946 push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); 1947 }; 1948 var toISO = Date.prototype.toISOString; 1949 var defaultFormat = formats["default"]; 1950 var defaults = { 1951 addQueryPrefix: false, 1952 allowDots: false, 1953 charset: "utf-8", 1954 charsetSentinel: false, 1955 delimiter: "&", 1956 encode: true, 1957 encoder: utils.encode, 1958 encodeValuesOnly: false, 1959 format: defaultFormat, 1960 formatter: formats.formatters[defaultFormat], 1961 // deprecated 1962 indices: false, 1963 serializeDate: function serializeDate(date) { 1964 return toISO.call(date); 1965 }, 1966 skipNulls: false, 1967 strictNullHandling: false 1968 }; 1969 var isNonNullishPrimitive = function isNonNullishPrimitive2(v) { 1970 return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint"; 1971 }; 1972 var sentinel = {}; 1973 var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) { 1974 var obj = object; 1975 var tmpSc = sideChannel; 1976 var step = 0; 1977 var findFlag = false; 1978 while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) { 1979 var pos = tmpSc.get(object); 1980 step += 1; 1981 if (typeof pos !== "undefined") { 1982 if (pos === step) { 1983 throw new RangeError("Cyclic object value"); 1984 } else { 1985 findFlag = true; 1986 } 1987 } 1988 if (typeof tmpSc.get(sentinel) === "undefined") { 1989 step = 0; 1990 } 1991 } 1992 if (typeof filter === "function") { 1993 obj = filter(prefix, obj); 1994 } else if (obj instanceof Date) { 1995 obj = serializeDate(obj); 1996 } else if (generateArrayPrefix === "comma" && isArray(obj)) { 1997 obj = utils.maybeMap(obj, function(value2) { 1998 if (value2 instanceof Date) { 1999 return serializeDate(value2); 2000 } 2001 return value2; 2002 }); 2003 } 2004 if (obj === null) { 2005 if (strictNullHandling) { 2006 return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix; 2007 } 2008 obj = ""; 2009 } 2010 if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { 2011 if (encoder) { 2012 var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format); 2013 return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))]; 2014 } 2015 return [formatter(prefix) + "=" + formatter(String(obj))]; 2016 } 2017 var values = []; 2018 if (typeof obj === "undefined") { 2019 return values; 2020 } 2021 var objKeys; 2022 if (generateArrayPrefix === "comma" && isArray(obj)) { 2023 if (encodeValuesOnly && encoder) { 2024 obj = utils.maybeMap(obj, encoder); 2025 } 2026 objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }]; 2027 } else if (isArray(filter)) { 2028 objKeys = filter; 2029 } else { 2030 var keys = Object.keys(obj); 2031 objKeys = sort ? keys.sort(sort) : keys; 2032 } 2033 var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + "[]" : prefix; 2034 for (var j = 0; j < objKeys.length; ++j) { 2035 var key = objKeys[j]; 2036 var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key]; 2037 if (skipNulls && value === null) { 2038 continue; 2039 } 2040 var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]"); 2041 sideChannel.set(object, step); 2042 var valueSideChannel = getSideChannel(); 2043 valueSideChannel.set(sentinel, sideChannel); 2044 pushToArray(values, stringify2( 2045 value, 2046 keyPrefix, 2047 generateArrayPrefix, 2048 commaRoundTrip, 2049 strictNullHandling, 2050 skipNulls, 2051 generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, 2052 filter, 2053 sort, 2054 allowDots, 2055 serializeDate, 2056 format, 2057 formatter, 2058 encodeValuesOnly, 2059 charset, 2060 valueSideChannel 2061 )); 2062 } 2063 return values; 2064 }; 2065 var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) { 2066 if (!opts) { 2067 return defaults; 2068 } 2069 if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") { 2070 throw new TypeError("Encoder has to be a function."); 2071 } 2072 var charset = opts.charset || defaults.charset; 2073 if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") { 2074 throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); 2075 } 2076 var format = formats["default"]; 2077 if (typeof opts.format !== "undefined") { 2078 if (!has.call(formats.formatters, opts.format)) { 2079 throw new TypeError("Unknown format option provided."); 2080 } 2081 format = opts.format; 2082 } 2083 var formatter = formats.formatters[format]; 2084 var filter = defaults.filter; 2085 if (typeof opts.filter === "function" || isArray(opts.filter)) { 2086 filter = opts.filter; 2087 } 2088 return { 2089 addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix, 2090 allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots, 2091 charset, 2092 charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel, 2093 delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter, 2094 encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode, 2095 encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder, 2096 encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly, 2097 filter, 2098 format, 2099 formatter, 2100 serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate, 2101 skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls, 2102 sort: typeof opts.sort === "function" ? opts.sort : null, 2103 strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling 2104 }; 2105 }; 2106 module.exports = function(object, opts) { 2107 var obj = object; 2108 var options = normalizeStringifyOptions(opts); 2109 var objKeys; 2110 var filter; 2111 if (typeof options.filter === "function") { 2112 filter = options.filter; 2113 obj = filter("", obj); 2114 } else if (isArray(options.filter)) { 2115 filter = options.filter; 2116 objKeys = filter; 2117 } 2118 var keys = []; 2119 if (typeof obj !== "object" || obj === null) { 2120 return ""; 2121 } 2122 var arrayFormat; 2123 if (opts && opts.arrayFormat in arrayPrefixGenerators) { 2124 arrayFormat = opts.arrayFormat; 2125 } else if (opts && "indices" in opts) { 2126 arrayFormat = opts.indices ? "indices" : "repeat"; 2127 } else { 2128 arrayFormat = "indices"; 2129 } 2130 var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; 2131 if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") { 2132 throw new TypeError("`commaRoundTrip` must be a boolean, or absent"); 2133 } 2134 var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip; 2135 if (!objKeys) { 2136 objKeys = Object.keys(obj); 2137 } 2138 if (options.sort) { 2139 objKeys.sort(options.sort); 2140 } 2141 var sideChannel = getSideChannel(); 2142 for (var i = 0; i < objKeys.length; ++i) { 2143 var key = objKeys[i]; 2144 if (options.skipNulls && obj[key] === null) { 2145 continue; 2146 } 2147 pushToArray(keys, stringify( 2148 obj[key], 2149 key, 2150 generateArrayPrefix, 2151 commaRoundTrip, 2152 options.strictNullHandling, 2153 options.skipNulls, 2154 options.encode ? options.encoder : null, 2155 options.filter, 2156 options.sort, 2157 options.allowDots, 2158 options.serializeDate, 2159 options.format, 2160 options.formatter, 2161 options.encodeValuesOnly, 2162 options.charset, 2163 sideChannel 2164 )); 2165 } 2166 var joined = keys.join(options.delimiter); 2167 var prefix = options.addQueryPrefix === true ? "?" : ""; 2168 if (options.charsetSentinel) { 2169 if (options.charset === "iso-8859-1") { 2170 prefix += "utf8=%26%2310003%3B&"; 2171 } else { 2172 prefix += "utf8=%E2%9C%93&"; 2173 } 2174 } 2175 return joined.length > 0 ? prefix + joined : ""; 2176 }; 2177 } 2178}); 2179
vendor: 8,486 bytes, lines 2180-2381
2180// node_modules/.pnpm/[email protected]/node_modules/qs/lib/parse.js 2181var require_parse = __commonJS({ 2182 "node_modules/.pnpm/[email protected]/node_modules/qs/lib/parse.js"(exports, module) { 2183 "use strict"; 2184 var utils = require_utils(); 2185 var has = Object.prototype.hasOwnProperty; 2186 var isArray = Array.isArray; 2187 var defaults = { 2188 allowDots: false, 2189 allowPrototypes: false, 2190 allowSparse: false, 2191 arrayLimit: 20, 2192 charset: "utf-8", 2193 charsetSentinel: false, 2194 comma: false, 2195 decoder: utils.decode, 2196 delimiter: "&", 2197 depth: 5, 2198 ignoreQueryPrefix: false, 2199 interpretNumericEntities: false, 2200 parameterLimit: 1e3, 2201 parseArrays: true, 2202 plainObjects: false, 2203 strictNullHandling: false 2204 }; 2205 var interpretNumericEntities = function(str) { 2206 return str.replace(/&#(\d+);/g, function($0, numberStr) { 2207 return String.fromCharCode(parseInt(numberStr, 10)); 2208 }); 2209 }; 2210 var parseArrayValue = function(val, options) { 2211 if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) { 2212 return val.split(","); 2213 } 2214 return val; 2215 }; 2216 var isoSentinel = "utf8=%26%2310003%3B"; 2217 var charsetSentinel = "utf8=%E2%9C%93"; 2218 var parseValues = function parseQueryStringValues(str, options) { 2219 var obj = {}; 2220 var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str; 2221 var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit; 2222 var parts = cleanStr.split(options.delimiter, limit); 2223 var skipIndex = -1; 2224 var i; 2225 var charset = options.charset; 2226 if (options.charsetSentinel) { 2227 for (i = 0; i < parts.length; ++i) { 2228 if (parts[i].indexOf("utf8=") === 0) { 2229 if (parts[i] === charsetSentinel) { 2230 charset = "utf-8"; 2231 } else if (parts[i] === isoSentinel) { 2232 charset = "iso-8859-1"; 2233 } 2234 skipIndex = i; 2235 i = parts.length; 2236 } 2237 } 2238 } 2239 for (i = 0; i < parts.length; ++i) { 2240 if (i === skipIndex) { 2241 continue; 2242 } 2243 var part = parts[i]; 2244 var bracketEqualsPos = part.indexOf("]="); 2245 var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1; 2246 var key, val; 2247 if (pos === -1) { 2248 key = options.decoder(part, defaults.decoder, charset, "key"); 2249 val = options.strictNullHandling ? null : ""; 2250 } else { 2251 key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key"); 2252 val = utils.maybeMap( 2253 parseArrayValue(part.slice(pos + 1), options), 2254 function(encodedVal) { 2255 return options.decoder(encodedVal, defaults.decoder, charset, "value"); 2256 } 2257 ); 2258 } 2259 if (val && options.interpretNumericEntities && charset === "iso-8859-1") { 2260 val = interpretNumericEntities(val); 2261 } 2262 if (part.indexOf("[]=") > -1) { 2263 val = isArray(val) ? [val] : val; 2264 } 2265 if (has.call(obj, key)) { 2266 obj[key] = utils.combine(obj[key], val); 2267 } else { 2268 obj[key] = val; 2269 } 2270 } 2271 return obj; 2272 }; 2273 var parseObject = function(chain, val, options, valuesParsed) { 2274 var leaf = valuesParsed ? val : parseArrayValue(val, options); 2275 for (var i = chain.length - 1; i >= 0; --i) { 2276 var obj; 2277 var root = chain[i]; 2278 if (root === "[]" && options.parseArrays) { 2279 obj = [].concat(leaf); 2280 } else { 2281 obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {}; 2282 var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root; 2283 var index = parseInt(cleanRoot, 10); 2284 if (!options.parseArrays && cleanRoot === "") { 2285 obj = { 0: leaf }; 2286 } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) { 2287 obj = []; 2288 obj[index] = leaf; 2289 } else if (cleanRoot !== "__proto__") { 2290 obj[cleanRoot] = leaf; 2291 } 2292 } 2293 leaf = obj; 2294 } 2295 return leaf; 2296 }; 2297 var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { 2298 if (!givenKey) { 2299 return; 2300 } 2301 var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey; 2302 var brackets = /(\[[^[\]]*])/; 2303 var child = /(\[[^[\]]*])/g; 2304 var segment = options.depth > 0 && brackets.exec(key); 2305 var parent = segment ? key.slice(0, segment.index) : key; 2306 var keys = []; 2307 if (parent) { 2308 if (!options.plainObjects && has.call(Object.prototype, parent)) { 2309 if (!options.allowPrototypes) { 2310 return; 2311 } 2312 } 2313 keys.push(parent); 2314 } 2315 var i = 0; 2316 while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { 2317 i += 1; 2318 if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { 2319 if (!options.allowPrototypes) { 2320 return; 2321 } 2322 } 2323 keys.push(segment[1]); 2324 } 2325 if (segment) { 2326 keys.push("[" + key.slice(segment.index) + "]"); 2327 } 2328 return parseObject(keys, val, options, valuesParsed); 2329 }; 2330 var normalizeParseOptions = function normalizeParseOptions2(opts) { 2331 if (!opts) { 2332 return defaults; 2333 } 2334 if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") { 2335 throw new TypeError("Decoder has to be a function."); 2336 } 2337 if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") { 2338 throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); 2339 } 2340 var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset; 2341 return { 2342 allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots, 2343 allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes, 2344 allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse, 2345 arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit, 2346 charset, 2347 charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel, 2348 comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma, 2349 decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder, 2350 delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, 2351 // eslint-disable-next-line no-implicit-coercion, no-extra-parens 2352 depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth, 2353 ignoreQueryPrefix: opts.ignoreQueryPrefix === true, 2354 interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities, 2355 parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit, 2356 parseArrays: opts.parseArrays !== false, 2357 plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects, 2358 strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling 2359 }; 2360 }; 2361 module.exports = function(str, opts) { 2362 var options = normalizeParseOptions(opts); 2363 if (str === "" || str === null || typeof str === "undefined") { 2364 return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {}; 2365 } 2366 var tempObj = typeof str === "string" ? parseValues(str, options) : str; 2367 var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {}; 2368 var keys = Object.keys(tempObj); 2369 for (var i = 0; i < keys.length; ++i) { 2370 var key = keys[i]; 2371 var newObj = parseKeys(key, tempObj[key], options, typeof str === "string"); 2372 obj = utils.merge(obj, newObj, options); 2373 } 2374 if (options.allowSparse === true) { 2375 return obj; 2376 } 2377 return utils.compact(obj); 2378 }; 2379 } 2380}); 2381
vendor: 385 bytes, lines 2382-2396
2382// node_modules/.pnpm/[email protected]/node_modules/qs/lib/index.js 2383var require_lib = __commonJS({ 2384 "node_modules/.pnpm/[email protected]/node_modules/qs/lib/index.js"(exports, module) { 2385 "use strict"; 2386 var stringify = require_stringify(); 2387 var parse = require_parse(); 2388 var formats = require_formats(); 2389 module.exports = { 2390 formats, 2391 parse, 2392 stringify 2393 }; 2394 } 2395}); 2396
vendor: 12,313 bytes, lines 2397-2918
2397// node_modules/.pnpm/[email protected]/node_modules/lodash/fp/_mapping.js 2398var require_mapping = __commonJS({ 2399 "node_modules/.pnpm/[email protected]/node_modules/lodash/fp/_mapping.js"(exports) { 2400 exports.aliasToReal = { 2401 // Lodash aliases. 2402 "each": "forEach", 2403 "eachRight": "forEachRight", 2404 "entries": "toPairs", 2405 "entriesIn": "toPairsIn", 2406 "extend": "assignIn", 2407 "extendAll": "assignInAll", 2408 "extendAllWith": "assignInAllWith", 2409 "extendWith": "assignInWith", 2410 "first": "head", 2411 // Methods that are curried variants of others. 2412 "conforms": "conformsTo", 2413 "matches": "isMatch", 2414 "property": "get", 2415 // Ramda aliases. 2416 "__": "placeholder", 2417 "F": "stubFalse", 2418 "T": "stubTrue", 2419 "all": "every", 2420 "allPass": "overEvery", 2421 "always": "constant", 2422 "any": "some", 2423 "anyPass": "overSome", 2424 "apply": "spread", 2425 "assoc": "set", 2426 "assocPath": "set", 2427 "complement": "negate", 2428 "compose": "flowRight", 2429 "contains": "includes", 2430 "dissoc": "unset", 2431 "dissocPath": "unset", 2432 "dropLast": "dropRight", 2433 "dropLastWhile": "dropRightWhile", 2434 "equals": "isEqual", 2435 "identical": "eq", 2436 "indexBy": "keyBy", 2437 "init": "initial", 2438 "invertObj": "invert", 2439 "juxt": "over", 2440 "omitAll": "omit", 2441 "nAry": "ary", 2442 "path": "get", 2443 "pathEq": "matchesProperty", 2444 "pathOr": "getOr", 2445 "paths": "at", 2446 "pickAll": "pick", 2447 "pipe": "flow", 2448 "pluck": "map", 2449 "prop": "get", 2450 "propEq": "matchesProperty", 2451 "propOr": "getOr", 2452 "props": "at", 2453 "symmetricDifference": "xor", 2454 "symmetricDifferenceBy": "xorBy", 2455 "symmetricDifferenceWith": "xorWith", 2456 "takeLast": "takeRight", 2457 "takeLastWhile": "takeRightWhile", 2458 "unapply": "rest", 2459 "unnest": "flatten", 2460 "useWith": "overArgs", 2461 "where": "conformsTo", 2462 "whereEq": "isMatch", 2463 "zipObj": "zipObject" 2464 }; 2465 exports.aryMethod = { 2466 "1": [ 2467 "assignAll", 2468 "assignInAll", 2469 "attempt", 2470 "castArray", 2471 "ceil", 2472 "create", 2473 "curry", 2474 "curryRight", 2475 "defaultsAll", 2476 "defaultsDeepAll", 2477 "floor", 2478 "flow", 2479 "flowRight", 2480 "fromPairs", 2481 "invert", 2482 "iteratee", 2483 "memoize", 2484 "method", 2485 "mergeAll", 2486 "methodOf", 2487 "mixin", 2488 "nthArg", 2489 "over", 2490 "overEvery", 2491 "overSome", 2492 "rest", 2493 "reverse", 2494 "round", 2495 "runInContext", 2496 "spread", 2497 "template", 2498 "trim", 2499 "trimEnd", 2500 "trimStart", 2501 "uniqueId", 2502 "words", 2503 "zipAll" 2504 ], 2505 "2": [ 2506 "add", 2507 "after", 2508 "ary", 2509 "assign", 2510 "assignAllWith", 2511 "assignIn", 2512 "assignInAllWith", 2513 "at", 2514 "before", 2515 "bind", 2516 "bindAll", 2517 "bindKey", 2518 "chunk", 2519 "cloneDeepWith", 2520 "cloneWith", 2521 "concat", 2522 "conformsTo", 2523 "countBy", 2524 "curryN", 2525 "curryRightN", 2526 "debounce", 2527 "defaults", 2528 "defaultsDeep", 2529 "defaultTo", 2530 "delay", 2531 "difference", 2532 "divide", 2533 "drop", 2534 "dropRight", 2535 "dropRightWhile", 2536 "dropWhile", 2537 "endsWith", 2538 "eq", 2539 "every", 2540 "filter", 2541 "find", 2542 "findIndex", 2543 "findKey", 2544 "findLast", 2545 "findLastIndex", 2546 "findLastKey", 2547 "flatMap", 2548 "flatMapDeep", 2549 "flattenDepth", 2550 "forEach", 2551 "forEachRight", 2552 "forIn", 2553 "forInRight", 2554 "forOwn", 2555 "forOwnRight", 2556 "get", 2557 "groupBy", 2558 "gt", 2559 "gte", 2560 "has", 2561 "hasIn", 2562 "includes", 2563 "indexOf", 2564 "intersection", 2565 "invertBy", 2566 "invoke", 2567 "invokeMap", 2568 "isEqual", 2569 "isMatch", 2570 "join", 2571 "keyBy", 2572 "lastIndexOf", 2573 "lt", 2574 "lte", 2575 "map", 2576 "mapKeys", 2577 "mapValues", 2578 "matchesProperty", 2579 "maxBy", 2580 "meanBy", 2581 "merge", 2582 "mergeAllWith", 2583 "minBy", 2584 "multiply", 2585 "nth", 2586 "omit", 2587 "omitBy", 2588 "overArgs", 2589 "pad", 2590 "padEnd", 2591 "padStart", 2592 "parseInt", 2593 "partial", 2594 "partialRight", 2595 "partition", 2596 "pick", 2597 "pickBy", 2598 "propertyOf", 2599 "pull", 2600 "pullAll", 2601 "pullAt", 2602 "random", 2603 "range", 2604 "rangeRight", 2605 "rearg", 2606 "reject", 2607 "remove", 2608 "repeat", 2609 "restFrom", 2610 "result", 2611 "sampleSize", 2612 "some", 2613 "sortBy", 2614 "sortedIndex", 2615 "sortedIndexOf", 2616 "sortedLastIndex", 2617 "sortedLastIndexOf", 2618 "sortedUniqBy", 2619 "split", 2620 "spreadFrom", 2621 "startsWith", 2622 "subtract", 2623 "sumBy", 2624 "take", 2625 "takeRight", 2626 "takeRightWhile", 2627 "takeWhile", 2628 "tap", 2629 "throttle", 2630 "thru", 2631 "times", 2632 "trimChars", 2633 "trimCharsEnd", 2634 "trimCharsStart", 2635 "truncate", 2636 "union", 2637 "uniqBy", 2638 "uniqWith", 2639 "unset", 2640 "unzipWith", 2641 "without", 2642 "wrap", 2643 "xor", 2644 "zip", 2645 "zipObject", 2646 "zipObjectDeep" 2647 ], 2648 "3": [ 2649 "assignInWith", 2650 "assignWith", 2651 "clamp", 2652 "differenceBy", 2653 "differenceWith", 2654 "findFrom", 2655 "findIndexFrom", 2656 "findLastFrom", 2657 "findLastIndexFrom", 2658 "getOr", 2659 "includesFrom", 2660 "indexOfFrom", 2661 "inRange", 2662 "intersectionBy", 2663 "intersectionWith", 2664 "invokeArgs", 2665 "invokeArgsMap", 2666 "isEqualWith", 2667 "isMatchWith", 2668 "flatMapDepth", 2669 "lastIndexOfFrom", 2670 "mergeWith", 2671 "orderBy", 2672 "padChars", 2673 "padCharsEnd", 2674 "padCharsStart", 2675 "pullAllBy", 2676 "pullAllWith", 2677 "rangeStep", 2678 "rangeStepRight", 2679 "reduce", 2680 "reduceRight", 2681 "replace", 2682 "set", 2683 "slice", 2684 "sortedIndexBy", 2685 "sortedLastIndexBy", 2686 "transform", 2687 "unionBy", 2688 "unionWith", 2689 "update", 2690 "xorBy", 2691 "xorWith", 2692 "zipWith" 2693 ], 2694 "4": [ 2695 "fill", 2696 "setWith", 2697 "updateWith" 2698 ] 2699 }; 2700 exports.aryRearg = { 2701 "2": [1, 0], 2702 "3": [2, 0, 1], 2703 "4": [3, 2, 0, 1] 2704 }; 2705 exports.iterateeAry = { 2706 "dropRightWhile": 1, 2707 "dropWhile": 1, 2708 "every": 1, 2709 "filter": 1, 2710 "find": 1, 2711 "findFrom": 1, 2712 "findIndex": 1, 2713 "findIndexFrom": 1, 2714 "findKey": 1, 2715 "findLast": 1, 2716 "findLastFrom": 1, 2717 "findLastIndex": 1, 2718 "findLastIndexFrom": 1, 2719 "findLastKey": 1, 2720 "flatMap": 1, 2721 "flatMapDeep": 1, 2722 "flatMapDepth": 1, 2723 "forEach": 1, 2724 "forEachRight": 1, 2725 "forIn": 1, 2726 "forInRight": 1, 2727 "forOwn": 1, 2728 "forOwnRight": 1, 2729 "map": 1, 2730 "mapKeys": 1, 2731 "mapValues": 1, 2732 "partition": 1, 2733 "reduce": 2, 2734 "reduceRight": 2, 2735 "reject": 1, 2736 "remove": 1, 2737 "some": 1, 2738 "takeRightWhile": 1, 2739 "takeWhile": 1, 2740 "times": 1, 2741 "transform": 2 2742 }; 2743 exports.iterateeRearg = { 2744 "mapKeys": [1], 2745 "reduceRight": [1, 0] 2746 }; 2747 exports.methodRearg = { 2748 "assignInAllWith": [1, 0], 2749 "assignInWith": [1, 2, 0], 2750 "assignAllWith": [1, 0], 2751 "assignWith": [1, 2, 0], 2752 "differenceBy": [1, 2, 0], 2753 "differenceWith": [1, 2, 0], 2754 "getOr": [2, 1, 0], 2755 "intersectionBy": [1, 2, 0], 2756 "intersectionWith": [1, 2, 0], 2757 "isEqualWith": [1, 2, 0], 2758 "isMatchWith": [2, 1, 0], 2759 "mergeAllWith": [1, 0], 2760 "mergeWith": [1, 2, 0], 2761 "padChars": [2, 1, 0], 2762 "padCharsEnd": [2, 1, 0], 2763 "padCharsStart": [2, 1, 0], 2764 "pullAllBy": [2, 1, 0], 2765 "pullAllWith": [2, 1, 0], 2766 "rangeStep": [1, 2, 0], 2767 "rangeStepRight": [1, 2, 0], 2768 "setWith": [3, 1, 2, 0], 2769 "sortedIndexBy": [2, 1, 0], 2770 "sortedLastIndexBy": [2, 1, 0], 2771 "unionBy": [1, 2, 0], 2772 "unionWith": [1, 2, 0], 2773 "updateWith": [3, 1, 2, 0], 2774 "xorBy": [1, 2, 0], 2775 "xorWith": [1, 2, 0], 2776 "zipWith": [1, 2, 0] 2777 }; 2778 exports.methodSpread = { 2779 "assignAll": { "start": 0 }, 2780 "assignAllWith": { "start": 0 }, 2781 "assignInAll": { "start": 0 }, 2782 "assignInAllWith": { "start": 0 }, 2783 "defaultsAll": { "start": 0 }, 2784 "defaultsDeepAll": { "start": 0 }, 2785 "invokeArgs": { "start": 2 }, 2786 "invokeArgsMap": { "start": 2 }, 2787 "mergeAll": { "start": 0 }, 2788 "mergeAllWith": { "start": 0 }, 2789 "partial": { "start": 1 }, 2790 "partialRight": { "start": 1 }, 2791 "without": { "start": 1 }, 2792 "zipAll": { "start": 0 } 2793 }; 2794 exports.mutate = { 2795 "array": { 2796 "fill": true, 2797 "pull": true, 2798 "pullAll": true, 2799 "pullAllBy": true, 2800 "pullAllWith": true, 2801 "pullAt": true, 2802 "remove": true, 2803 "reverse": true 2804 }, 2805 "object": { 2806 "assign": true, 2807 "assignAll": true, 2808 "assignAllWith": true, 2809 "assignIn": true, 2810 "assignInAll": true, 2811 "assignInAllWith": true, 2812 "assignInWith": true, 2813 "assignWith": true, 2814 "defaults": true, 2815 "defaultsAll": true, 2816 "defaultsDeep": true, 2817 "defaultsDeepAll": true, 2818 "merge": true, 2819 "mergeAll": true, 2820 "mergeAllWith": true, 2821 "mergeWith": true 2822 }, 2823 "set": { 2824 "set": true, 2825 "setWith": true, 2826 "unset": true, 2827 "update": true, 2828 "updateWith": true 2829 } 2830 }; 2831 exports.realToAlias = function() { 2832 var hasOwnProperty = Object.prototype.hasOwnProperty, object = exports.aliasToReal, result = {}; 2833 for (var key in object) { 2834 var value = object[key]; 2835 if (hasOwnProperty.call(result, value)) { 2836 result[value].push(key); 2837 } else { 2838 result[value] = [key]; 2839 } 2840 } 2841 return result; 2842 }(); 2843 exports.remap = { 2844 "assignAll": "assign", 2845 "assignAllWith": "assignWith", 2846 "assignInAll": "assignIn", 2847 "assignInAllWith": "assignInWith", 2848 "curryN": "curry", 2849 "curryRightN": "curryRight", 2850 "defaultsAll": "defaults", 2851 "defaultsDeepAll": "defaultsDeep", 2852 "findFrom": "find", 2853 "findIndexFrom": "findIndex", 2854 "findLastFrom": "findLast", 2855 "findLastIndexFrom": "findLastIndex", 2856 "getOr": "get", 2857 "includesFrom": "includes", 2858 "indexOfFrom": "indexOf", 2859 "invokeArgs": "invoke", 2860 "invokeArgsMap": "invokeMap", 2861 "lastIndexOfFrom": "lastIndexOf", 2862 "mergeAll": "merge", 2863 "mergeAllWith": "mergeWith", 2864 "padChars": "pad", 2865 "padCharsEnd": "padEnd", 2866 "padCharsStart": "padStart", 2867 "propertyOf": "get", 2868 "rangeStep": "range", 2869 "rangeStepRight": "rangeRight", 2870 "restFrom": "rest", 2871 "spreadFrom": "spread", 2872 "trimChars": "trim", 2873 "trimCharsEnd": "trimEnd", 2874 "trimCharsStart": "trimStart", 2875 "zipAll": "zip" 2876 }; 2877 exports.skipFixed = { 2878 "castArray": true, 2879 "flow": true, 2880 "flowRight": true, 2881 "iteratee": true, 2882 "mixin": true, 2883 "rearg": true, 2884 "runInContext": true 2885 }; 2886 exports.skipRearg = { 2887 "add": true, 2888 "assign": true, 2889 "assignIn": true, 2890 "bind": true, 2891 "bindKey": true, 2892 "concat": true, 2893 "difference": true, 2894 "divide": true, 2895 "eq": true, 2896 "gt": true, 2897 "gte": true, 2898 "isEqual": true, 2899 "lt": true, 2900 "lte": true, 2901 "matchesProperty": true, 2902 "merge": true, 2903 "multiply": true, 2904 "overArgs": true, 2905 "partial": true, 2906 "partialRight": true, 2907 "propertyOf": true, 2908 "random": true, 2909 "range": true, 2910 "rangeRight": true, 2911 "subtract": true, 2912 "zip": true, 2913 "zipObject": true, 2914 "zipObjectDeep": true 2915 }; 2916 } 2917}); 2918
vendor: 243 bytes, lines 2919-2925
2919// node_modules/.pnpm/[email protected]/node_modules/lodash/fp/placeholder.js 2920var require_placeholder = __commonJS({ 2921 "node_modules/.pnpm/[email protected]/node_modules/lodash/fp/placeholder.js"(exports, module) { 2922 module.exports = {}; 2923 } 2924}); 2925
vendor: 11,523 bytes, lines 2926-3235
2926// node_modules/.pnpm/[email protected]/node_modules/lodash/fp/_baseConvert.js 2927var require_baseConvert = __commonJS({ 2928 "node_modules/.pnpm/[email protected]/node_modules/lodash/fp/_baseConvert.js"(exports, module) { 2929 var mapping = require_mapping(); 2930 var fallbackHolder = require_placeholder(); 2931 var push = Array.prototype.push; 2932 function baseArity(func, n) { 2933 return n == 2 ? function(a, b) { 2934 return func.apply(void 0, arguments); 2935 } : function(a) { 2936 return func.apply(void 0, arguments); 2937 }; 2938 } 2939 function baseAry(func, n) { 2940 return n == 2 ? function(a, b) { 2941 return func(a, b); 2942 } : function(a) { 2943 return func(a); 2944 }; 2945 } 2946 function cloneArray(array) { 2947 var length = array ? array.length : 0, result = Array(length); 2948 while (length--) { 2949 result[length] = array[length]; 2950 } 2951 return result; 2952 } 2953 function createCloner(func) { 2954 return function(object) { 2955 return func({}, object); 2956 }; 2957 } 2958 function flatSpread(func, start) { 2959 return function() { 2960 var length = arguments.length, lastIndex = length - 1, args = Array(length); 2961 while (length--) { 2962 args[length] = arguments[length]; 2963 } 2964 var array = args[start], otherArgs = args.slice(0, start); 2965 if (array) { 2966 push.apply(otherArgs, array); 2967 } 2968 if (start != lastIndex) { 2969 push.apply(otherArgs, args.slice(start + 1)); 2970 } 2971 return func.apply(this, otherArgs); 2972 }; 2973 } 2974 function wrapImmutable(func, cloner) { 2975 return function() { 2976 var length = arguments.length; 2977 if (!length) { 2978 return; 2979 } 2980 var args = Array(length); 2981 while (length--) { 2982 args[length] = arguments[length]; 2983 } 2984 var result = args[0] = cloner.apply(void 0, args); 2985 func.apply(void 0, args); 2986 return result; 2987 }; 2988 } 2989 function baseConvert(util, name, func, options) { 2990 var isLib = typeof name == "function", isObj = name === Object(name); 2991 if (isObj) { 2992 options = func; 2993 func = name; 2994 name = void 0; 2995 } 2996 if (func == null) { 2997 throw new TypeError(); 2998 } 2999 options || (options = {}); 3000 var config = { 3001 "cap": "cap" in options ? options.cap : true, 3002 "curry": "curry" in options ? options.curry : true, 3003 "fixed": "fixed" in options ? options.fixed : true, 3004 "immutable": "immutable" in options ? options.immutable : true, 3005 "rearg": "rearg" in options ? options.rearg : true 3006 }; 3007 var defaultHolder = isLib ? func : fallbackHolder, forceCurry = "curry" in options && options.curry, forceFixed = "fixed" in options && options.fixed, forceRearg = "rearg" in options && options.rearg, pristine = isLib ? func.runInContext() : void 0; 3008 var helpers = isLib ? func : { 3009 "ary": util.ary, 3010 "assign": util.assign, 3011 "clone": util.clone, 3012 "curry": util.curry, 3013 "forEach": util.forEach, 3014 "isArray": util.isArray, 3015 "isError": util.isError, 3016 "isFunction": util.isFunction, 3017 "isWeakMap": util.isWeakMap, 3018 "iteratee": util.iteratee, 3019 "keys": util.keys, 3020 "rearg": util.rearg, 3021 "toInteger": util.toInteger, 3022 "toPath": util.toPath 3023 }; 3024 var ary = helpers.ary, assign = helpers.assign, clone = helpers.clone, curry = helpers.curry, each = helpers.forEach, isArray = helpers.isArray, isError = helpers.isError, isFunction2 = helpers.isFunction, isWeakMap = helpers.isWeakMap, keys = helpers.keys, rearg = helpers.rearg, toInteger = helpers.toInteger, toPath = helpers.toPath; 3025 var aryMethodKeys = keys(mapping.aryMethod); 3026 var wrappers = { 3027 "castArray": function(castArray) { 3028 return function() { 3029 var value = arguments[0]; 3030 return isArray(value) ? castArray(cloneArray(value)) : castArray.apply(void 0, arguments); 3031 }; 3032 }, 3033 "iteratee": function(iteratee) { 3034 return function() { 3035 var func2 = arguments[0], arity = arguments[1], result = iteratee(func2, arity), length = result.length; 3036 if (config.cap && typeof arity == "number") { 3037 arity = arity > 2 ? arity - 2 : 1; 3038 return length && length <= arity ? result : baseAry(result, arity); 3039 } 3040 return result; 3041 }; 3042 }, 3043 "mixin": function(mixin) { 3044 return function(source) { 3045 var func2 = this; 3046 if (!isFunction2(func2)) { 3047 return mixin(func2, Object(source)); 3048 } 3049 var pairs2 = []; 3050 each(keys(source), function(key) { 3051 if (isFunction2(source[key])) { 3052 pairs2.push([key, func2.prototype[key]]); 3053 } 3054 }); 3055 mixin(func2, Object(source)); 3056 each(pairs2, function(pair) { 3057 var value = pair[1]; 3058 if (isFunction2(value)) { 3059 func2.prototype[pair[0]] = value; 3060 } else { 3061 delete func2.prototype[pair[0]]; 3062 } 3063 }); 3064 return func2; 3065 }; 3066 }, 3067 "nthArg": function(nthArg) { 3068 return function(n) { 3069 var arity = n < 0 ? 1 : toInteger(n) + 1; 3070 return curry(nthArg(n), arity); 3071 }; 3072 }, 3073 "rearg": function(rearg2) { 3074 return function(func2, indexes) { 3075 var arity = indexes ? indexes.length : 0; 3076 return curry(rearg2(func2, indexes), arity); 3077 }; 3078 }, 3079 "runInContext": function(runInContext) { 3080 return function(context) { 3081 return baseConvert(util, runInContext(context), options); 3082 }; 3083 } 3084 }; 3085 function castCap(name2, func2) { 3086 if (config.cap) { 3087 var indexes = mapping.iterateeRearg[name2]; 3088 if (indexes) { 3089 return iterateeRearg(func2, indexes); 3090 } 3091 var n = !isLib && mapping.iterateeAry[name2]; 3092 if (n) { 3093 return iterateeAry(func2, n); 3094 } 3095 } 3096 return func2; 3097 } 3098 function castCurry(name2, func2, n) { 3099 return forceCurry || config.curry && n > 1 ? curry(func2, n) : func2; 3100 } 3101 function castFixed(name2, func2, n) { 3102 if (config.fixed && (forceFixed || !mapping.skipFixed[name2])) { 3103 var data = mapping.methodSpread[name2], start = data && data.start; 3104 return start === void 0 ? ary(func2, n) : flatSpread(func2, start); 3105 } 3106 return func2; 3107 } 3108 function castRearg(name2, func2, n) { 3109 return config.rearg && n > 1 && (forceRearg || !mapping.skipRearg[name2]) ? rearg(func2, mapping.methodRearg[name2] || mapping.aryRearg[n]) : func2; 3110 } 3111 function cloneByPath(object, path) { 3112 path = toPath(path); 3113 var index = -1, length = path.length, lastIndex = length - 1, result = clone(Object(object)), nested = result; 3114 while (nested != null && ++index < length) { 3115 var key = path[index], value = nested[key]; 3116 if (value != null && !(isFunction2(value) || isError(value) || isWeakMap(value))) { 3117 nested[key] = clone(index == lastIndex ? value : Object(value)); 3118 } 3119 nested = nested[key]; 3120 } 3121 return result; 3122 } 3123 function convertLib(options2) { 3124 return _.runInContext.convert(options2)(void 0); 3125 } 3126 function createConverter(name2, func2) { 3127 var realName = mapping.aliasToReal[name2] || name2, methodName = mapping.remap[realName] || realName, oldOptions = options; 3128 return function(options2) { 3129 var newUtil = isLib ? pristine : helpers, newFunc = isLib ? pristine[methodName] : func2, newOptions = assign(assign({}, oldOptions), options2); 3130 return baseConvert(newUtil, realName, newFunc, newOptions); 3131 }; 3132 } 3133 function iterateeAry(func2, n) { 3134 return overArg(func2, function(func3) { 3135 return typeof func3 == "function" ? baseAry(func3, n) : func3; 3136 }); 3137 } 3138 function iterateeRearg(func2, indexes) { 3139 return overArg(func2, function(func3) { 3140 var n = indexes.length; 3141 return baseArity(rearg(baseAry(func3, n), indexes), n); 3142 }); 3143 } 3144 function overArg(func2, transform) { 3145 return function() { 3146 var length = arguments.length; 3147 if (!length) { 3148 return func2(); 3149 } 3150 var args = Array(length); 3151 while (length--) { 3152 args[length] = arguments[length]; 3153 } 3154 var index = config.rearg ? 0 : length - 1; 3155 args[index] = transform(args[index]); 3156 return func2.apply(void 0, args); 3157 }; 3158 } 3159 function wrap(name2, func2, placeholder) { 3160 var result, realName = mapping.aliasToReal[name2] || name2, wrapped = func2, wrapper = wrappers[realName]; 3161 if (wrapper) { 3162 wrapped = wrapper(func2); 3163 } else if (config.immutable) { 3164 if (mapping.mutate.array[realName]) { 3165 wrapped = wrapImmutable(func2, cloneArray); 3166 } else if (mapping.mutate.object[realName]) { 3167 wrapped = wrapImmutable(func2, createCloner(func2)); 3168 } else if (mapping.mutate.set[realName]) { 3169 wrapped = wrapImmutable(func2, cloneByPath); 3170 } 3171 } 3172 each(aryMethodKeys, function(aryKey) { 3173 each(mapping.aryMethod[aryKey], function(otherName) { 3174 if (realName == otherName) { 3175 var data = mapping.methodSpread[realName], afterRearg = data && data.afterRearg; 3176 result = afterRearg ? castFixed(realName, castRearg(realName, wrapped, aryKey), aryKey) : castRearg(realName, castFixed(realName, wrapped, aryKey), aryKey); 3177 result = castCap(realName, result); 3178 result = castCurry(realName, result, aryKey); 3179 return false; 3180 } 3181 }); 3182 return !result; 3183 }); 3184 result || (result = wrapped); 3185 if (result == func2) { 3186 result = forceCurry ? curry(result, 1) : function() { 3187 return func2.apply(this, arguments); 3188 }; 3189 } 3190 result.convert = createConverter(realName, func2); 3191 result.placeholder = func2.placeholder = placeholder; 3192 return result; 3193 } 3194 if (!isObj) { 3195 return wrap(name, func, defaultHolder); 3196 } 3197 var _ = func; 3198 var pairs = []; 3199 each(aryMethodKeys, function(aryKey) { 3200 each(mapping.aryMethod[aryKey], function(key) { 3201 var func2 = _[mapping.remap[key] || key]; 3202 if (func2) { 3203 pairs.push([key, wrap(key, func2, _)]); 3204 } 3205 }); 3206 }); 3207 each(keys(_), function(key) { 3208 var func2 = _[key]; 3209 if (typeof func2 == "function") { 3210 var length = pairs.length; 3211 while (length--) { 3212 if (pairs[length][0] == key) { 3213 return; 3214 } 3215 } 3216 func2.convert = createConverter(key, func2); 3217 pairs.push([key, func2]); 3218 } 3219 }); 3220 each(pairs, function(pair) { 3221 _[pair[0]] = pair[1]; 3222 }); 3223 _.convert = convertLib; 3224 _.placeholder = _; 3225 each(keys(_), function(key) { 3226 each(mapping.realToAlias[key] || [], function(alias) { 3227 _[alias] = _[key]; 3228 }); 3229 }); 3230 return _; 3231 } 3232 module.exports = baseConvert; 3233 } 3234}); 3235
vendor: 316 bytes, lines 3236-3244
3236// node_modules/.pnpm/[email protected]/node_modules/lodash/_metaMap.js 3237var require_metaMap = __commonJS({ 3238 "node_modules/.pnpm/[email protected]/node_modules/lodash/_metaMap.js"(exports, module) { 3239 var WeakMap2 = require_WeakMap(); 3240 var metaMap = WeakMap2 && new WeakMap2(); 3241 module.exports = metaMap; 3242 } 3243}); 3244
vendor: 448 bytes, lines 3245-3257
3245// node_modules/.pnpm/[email protected]/node_modules/lodash/_baseSetData.js 3246var require_baseSetData = __commonJS({ 3247 "node_modules/.pnpm/[email protected]/node_modules/lodash/_baseSetData.js"(exports, module) { 3248 var identity = require_identity(); 3249 var metaMap = require_metaMap(); 3250 var baseSetData = !metaMap ? identity : function(func, data) { 3251 metaMap.set(func, data); 3252 return func; 3253 }; 3254 module.exports = baseSetData; 3255 } 3256}); 3257
vendor: 1,250 bytes, lines 3258-3291
3258// node_modules/.pnpm/[email protected]/node_modules/lodash/_createCtor.js 3259var require_createCtor = __commonJS({ 3260 "node_modules/.pnpm/[email protected]/node_modules/lodash/_createCtor.js"(exports, module) { 3261 var baseCreate = require_baseCreate(); 3262 var isObject = require_isObject(); 3263 function createCtor(Ctor) { 3264 return function() { 3265 var args = arguments; 3266 switch (args.length) { 3267 case 0: 3268 return new Ctor(); 3269 case 1: 3270 return new Ctor(args[0]); 3271 case 2: 3272 return new Ctor(args[0], args[1]); 3273 case 3: 3274 return new Ctor(args[0], args[1], args[2]); 3275 case 4: 3276 return new Ctor(args[0], args[1], args[2], args[3]); 3277 case 5: 3278 return new Ctor(args[0], args[1], args[2], args[3], args[4]); 3279 case 6: 3280 return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); 3281 case 7: 3282 return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); 3283 } 3284 var thisBinding = baseCreate(Ctor.prototype), result = Ctor.apply(thisBinding, args); 3285 return isObject(result) ? result : thisBinding; 3286 }; 3287 } 3288 module.exports = createCtor; 3289 } 3290}); 3291
vendor: 671 bytes, lines 3292-3309
3292// node_modules/.pnpm/[email protected]/node_modules/lodash/_createBind.js 3293var require_createBind = __commonJS({ 3294 "node_modules/.pnpm/[email protected]/node_modules/lodash/_createBind.js"(exports, module) { 3295 var createCtor = require_createCtor(); 3296 var root = require_root(); 3297 var WRAP_BIND_FLAG = 1; 3298 function createBind(func, bitmask, thisArg) { 3299 var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); 3300 function wrapper() { 3301 var fn = this && this !== root && this instanceof wrapper ? Ctor : func; 3302 return fn.apply(isBind ? thisArg : this, arguments); 3303 } 3304 return wrapper; 3305 } 3306 module.exports = createBind; 3307 } 3308}); 3309
vendor: 615 bytes, lines 3310-3329
3310// node_modules/.pnpm/[email protected]/node_modules/lodash/_apply.js 3311var require_apply = __commonJS({ 3312 "node_modules/.pnpm/[email protected]/node_modules/lodash/_apply.js"(exports, module) { 3313 function apply(func, thisArg, args) { 3314 switch (args.length) { 3315 case 0: 3316 return func.call(thisArg); 3317 case 1: 3318 return func.call(thisArg, args[0]); 3319 case 2: 3320 return func.call(thisArg, args[0], args[1]); 3321 case 3: 3322 return func.call(thisArg, args[0], args[1], args[2]); 3323 } 3324 return func.apply(thisArg, args); 3325 } 3326 module.exports = apply; 3327 } 3328}); 3329
vendor: 978 bytes, lines 3330-3352
3330// node_modules/.pnpm/[email protected]/node_modules/lodash/_composeArgs.js 3331var require_composeArgs = __commonJS({ 3332 "node_modules/.pnpm/[email protected]/node_modules/lodash/_composeArgs.js"(exports, module) { 3333 var nativeMax = Math.max; 3334 function composeArgs(args, partials, holders, isCurried) { 3335 var argsIndex = -1, argsLength = args.length, holdersLength = holders.length, leftIndex = -1, leftLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result = Array(leftLength + rangeLength), isUncurried = !isCurried; 3336 while (++leftIndex < leftLength) { 3337 result[leftIndex] = partials[leftIndex]; 3338 } 3339 while (++argsIndex < holdersLength) { 3340 if (isUncurried || argsIndex < argsLength) { 3341 result[holders[argsIndex]] = args[argsIndex]; 3342 } 3343 } 3344 while (rangeLength--) { 3345 result[leftIndex++] = args[argsIndex++]; 3346 } 3347 return result; 3348 } 3349 module.exports = composeArgs; 3350 } 3351}); 3352
vendor: 1,093 bytes, lines 3353-3376
3353// node_modules/.pnpm/[email protected]/node_modules/lodash/_composeArgsRight.js 3354var require_composeArgsRight = __commonJS({ 3355 "node_modules/.pnpm/[email protected]/node_modules/lodash/_composeArgsRight.js"(exports, module) { 3356 var nativeMax = Math.max; 3357 function composeArgsRight(args, partials, holders, isCurried) { 3358 var argsIndex = -1, argsLength = args.length, holdersIndex = -1, holdersLength = holders.length, rightIndex = -1, rightLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result = Array(rangeLength + rightLength), isUncurried = !isCurried; 3359 while (++argsIndex < rangeLength) { 3360 result[argsIndex] = args[argsIndex]; 3361 } 3362 var offset = argsIndex; 3363 while (++rightIndex < rightLength) { 3364 result[offset + rightIndex] = partials[rightIndex]; 3365 } 3366 while (++holdersIndex < holdersLength) { 3367 if (isUncurried || argsIndex < argsLength) { 3368 result[offset + holders[holdersIndex]] = args[argsIndex++]; 3369 } 3370 } 3371 return result; 3372 } 3373 module.exports = composeArgsRight; 3374 } 3375}); 3376
vendor: 480 bytes, lines 3377-3392
3377// node_modules/.pnpm/[email protected]/node_modules/lodash/_countHolders.js 3378var require_countHolders = __commonJS({ 3379 "node_modules/.pnpm/[email protected]/node_modules/lodash/_countHolders.js"(exports, module) { 3380 function countHolders(array, placeholder) { 3381 var length = array.length, result = 0; 3382 while (length--) { 3383 if (array[length] === placeholder) { 3384 ++result; 3385 } 3386 } 3387 return result; 3388 } 3389 module.exports = countHolders; 3390 } 3391}); 3392
vendor: 278 bytes, lines 3393-3401
3393// node_modules/.pnpm/[email protected]/node_modules/lodash/_baseLodash.js 3394var require_baseLodash = __commonJS({ 3395 "node_modules/.pnpm/[email protected]/node_modules/lodash/_baseLodash.js"(exports, module) { 3396 function baseLodash() { 3397 } 3398 module.exports = baseLodash; 3399 } 3400}); 3401
vendor: 749 bytes, lines 3402-3422
3402// node_modules/.pnpm/[email protected]/node_modules/lodash/_LazyWrapper.js 3403var require_LazyWrapper = __commonJS({ 3404 "node_modules/.pnpm/[email protected]/node_modules/lodash/_LazyWrapper.js"(exports, module) { 3405 var baseCreate = require_baseCreate(); 3406 var baseLodash = require_baseLodash(); 3407 var MAX_ARRAY_LENGTH = 4294967295; 3408 function LazyWrapper(value) { 3409 this.__wrapped__ = value; 3410 this.__actions__ = []; 3411 this.__dir__ = 1; 3412 this.__filtered__ = false; 3413 this.__iteratees__ = []; 3414 this.__takeCount__ = MAX_ARRAY_LENGTH; 3415 this.__views__ = []; 3416 } 3417 LazyWrapper.prototype = baseCreate(baseLodash.prototype); 3418 LazyWrapper.prototype.constructor = LazyWrapper; 3419 module.exports = LazyWrapper; 3420 } 3421}); 3422
vendor: 246 bytes, lines 3423-3431
3423// node_modules/.pnpm/[email protected]/node_modules/lodash/noop.js 3424var require_noop = __commonJS({ 3425 "node_modules/.pnpm/[email protected]/node_modules/lodash/noop.js"(exports, module) { 3426 function noop() { 3427 } 3428 module.exports = noop; 3429 } 3430}); 3431
vendor: 392 bytes, lines 3432-3443
3432// node_modules/.pnpm/[email protected]/node_modules/lodash/_getData.js 3433var require_getData = __commonJS({ 3434 "node_modules/.pnpm/[email protected]/node_modules/lodash/_getData.js"(exports, module) { 3435 var metaMap = require_metaMap(); 3436 var noop = require_noop(); 3437 var getData = !metaMap ? noop : function(func) { 3438 return metaMap.get(func); 3439 }; 3440 module.exports = getData; 3441 } 3442}); 3443
vendor: 264 bytes, lines 3444-3451
3444// node_modules/.pnpm/[email protected]/node_modules/lodash/_realNames.js 3445var require_realNames = __commonJS({ 3446 "node_modules/.pnpm/[email protected]/node_modules/lodash/_realNames.js"(exports, module) { 3447 var realNames = {}; 3448 module.exports = realNames; 3449 } 3450}); 3451
vendor: 754 bytes, lines 3452-3471
3452// node_modules/.pnpm/[email protected]/node_modules/lodash/_getFuncName.js 3453var require_getFuncName = __commonJS({ 3454 "node_modules/.pnpm/[email protected]/node_modules/lodash/_getFuncName.js"(exports, module) { 3455 var realNames = require_realNames(); 3456 var objectProto = Object.prototype; 3457 var hasOwnProperty = objectProto.hasOwnProperty; 3458 function getFuncName(func) { 3459 var result = func.name + "", array = realNames[result], length = hasOwnProperty.call(realNames, result) ? array.length : 0; 3460 while (length--) { 3461 var data = array[length], otherFunc = data.func; 3462 if (otherFunc == null || otherFunc == func) { 3463 return data.name; 3464 } 3465 } 3466 return result; 3467 } 3468 module.exports = getFuncName; 3469 } 3470}); 3471
vendor: 669 bytes, lines 3472-3489
3472// node_modules/.pnpm/[email protected]/node_modules/lodash/_LodashWrapper.js 3473var require_LodashWrapper = __commonJS({ 3474 "node_modules/.pnpm/[email protected]/node_modules/lodash/_LodashWrapper.js"(exports, module) { 3475 var baseCreate = require_baseCreate(); 3476 var baseLodash = require_baseLodash(); 3477 function LodashWrapper(value, chainAll) { 3478 this.__wrapped__ = value; 3479 this.__actions__ = []; 3480 this.__chain__ = !!chainAll; 3481 this.__index__ = 0; 3482 this.__values__ = void 0; 3483 } 3484 LodashWrapper.prototype = baseCreate(baseLodash.prototype); 3485 LodashWrapper.prototype.constructor = LodashWrapper; 3486 module.exports = LodashWrapper; 3487 } 3488}); 3489
vendor: 762 bytes, lines 3490-3509
3490// node_modules/.pnpm/[email protected]/node_modules/lodash/_wrapperClone.js 3491var require_wrapperClone = __commonJS({ 3492 "node_modules/.pnpm/[email protected]/node_modules/lodash/_wrapperClone.js"(exports, module) { 3493 var LazyWrapper = require_LazyWrapper(); 3494 var LodashWrapper = require_LodashWrapper(); 3495 var copyArray = require_copyArray(); 3496 function wrapperClone(wrapper) { 3497 if (wrapper instanceof LazyWrapper) { 3498 return wrapper.clone(); 3499 } 3500 var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); 3501 result.__actions__ = copyArray(wrapper.__actions__); 3502 result.__index__ = wrapper.__index__; 3503 result.__values__ = wrapper.__values__; 3504 return result; 3505 } 3506 module.exports = wrapperClone; 3507 } 3508}); 3509
vendor: 1,050 bytes, lines 3510-3537
3510// node_modules/.pnpm/[email protected]/node_modules/lodash/wrapperLodash.js 3511var require_wrapperLodash = __commonJS({ 3512 "node_modules/.pnpm/[email protected]/node_modules/lodash/wrapperLodash.js"(exports, module) { 3513 var LazyWrapper = require_LazyWrapper(); 3514 var LodashWrapper = require_LodashWrapper(); 3515 var baseLodash = require_baseLodash(); 3516 var isArray = require_isArray(); 3517 var isObjectLike = require_isObjectLike(); 3518 var wrapperClone = require_wrapperClone(); 3519 var objectProto = Object.prototype; 3520 var hasOwnProperty = objectProto.hasOwnProperty; 3521 function lodash(value) { 3522 if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) { 3523 if (value instanceof LodashWrapper) { 3524 return value; 3525 } 3526 if (hasOwnProperty.call(value, "__wrapped__")) { 3527 return wrapperClone(value); 3528 } 3529 } 3530 return new LodashWrapper(value); 3531 } 3532 lodash.prototype = baseLodash.prototype; 3533 lodash.prototype.constructor = lodash; 3534 module.exports = lodash; 3535 } 3536}); 3537
vendor: 758 bytes, lines 3538-3559
3538// node_modules/.pnpm/[email protected]/node_modules/lodash/_isLaziable.js 3539var require_isLaziable = __commonJS({ 3540 "node_modules/.pnpm/[email protected]/node_modules/lodash/_isLaziable.js"(exports, module) { 3541 var LazyWrapper = require_LazyWrapper(); 3542 var getData = require_getData(); 3543 var getFuncName = require_getFuncName(); 3544 var lodash = require_wrapperLodash(); 3545 function isLaziable(func) { 3546 var funcName = getFuncName(func), other = lodash[funcName]; 3547 if (typeof other != "function" || !(funcName in LazyWrapper.prototype)) { 3548 return false; 3549 } 3550 if (func === other) { 3551 return true; 3552 } 3553 var data = getData(other); 3554 return !!data && func === data[0]; 3555 } 3556 module.exports = isLaziable; 3557 } 3558}); 3559
vendor: 734 bytes, lines 3560-3584
3560// node_modules/.pnpm/[email protected]/node_modules/lodash/_shortOut.js 3561var require_shortOut = __commonJS({ 3562 "node_modules/.pnpm/[email protected]/node_modules/lodash/_shortOut.js"(exports, module) { 3563 var HOT_COUNT = 800; 3564 var HOT_SPAN = 16; 3565 var nativeNow = Date.now; 3566 function shortOut(func) { 3567 var count = 0, lastCalled = 0; 3568 return function() { 3569 var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); 3570 lastCalled = stamp; 3571 if (remaining > 0) { 3572 if (++count >= HOT_COUNT) { 3573 return arguments[0]; 3574 } 3575 } else { 3576 count = 0; 3577 } 3578 return func.apply(void 0, arguments); 3579 }; 3580 } 3581 module.exports = shortOut; 3582 } 3583}); 3584
vendor: 357 bytes, lines 3585-3594
3585// node_modules/.pnpm/[email protected]/node_modules/lodash/_setData.js 3586var require_setData = __commonJS({ 3587 "node_modules/.pnpm/[email protected]/node_modules/lodash/_setData.js"(exports, module) { 3588 var baseSetData = require_baseSetData(); 3589 var shortOut = require_shortOut(); 3590 var setData = shortOut(baseSetData); 3591 module.exports = setData; 3592 } 3593}); 3594
vendor: 504 bytes, lines 3595-3607
3595// node_modules/.pnpm/[email protected]/node_modules/lodash/_getWrapDetails.js 3596var require_getWrapDetails = __commonJS({ 3597 "node_modules/.pnpm/[email protected]/node_modules/lodash/_getWrapDetails.js"(exports, module) { 3598 var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/; 3599 var reSplitDetails = /,? & /; 3600 function getWrapDetails(source) { 3601 var match = source.match(reWrapDetails); 3602 return match ? match[1].split(reSplitDetails) : []; 3603 } 3604 module.exports = getWrapDetails; 3605 } 3606}); 3607
vendor: 736 bytes, lines 3608-3625
3608// node_modules/.pnpm/[email protected]/node_modules/lodash/_insertWrapDetails.js 3609var require_insertWrapDetails = __commonJS({ 3610 "node_modules/.pnpm/[email protected]/node_modules/lodash/_insertWrapDetails.js"(exports, module) { 3611 var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/; 3612 function insertWrapDetails(source, details) { 3613 var length = details.length; 3614 if (!length) { 3615 return source; 3616 } 3617 var lastIndex = length - 1; 3618 details[lastIndex] = (length > 1 ? "& " : "") + details[lastIndex]; 3619 details = details.join(length > 2 ? ", " : " "); 3620 return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n"); 3621 } 3622 module.exports = insertWrapDetails; 3623 } 3624}); 3625
vendor: 328 bytes, lines 3626-3637
3626// node_modules/.pnpm/[email protected]/node_modules/lodash/constant.js 3627var require_constant = __commonJS({ 3628 "node_modules/.pnpm/[email protected]/node_modules/lodash/constant.js"(exports, module) { 3629 function constant(value) { 3630 return function() { 3631 return value; 3632 }; 3633 } 3634 module.exports = constant; 3635 } 3636}); 3637
vendor: 657 bytes, lines 3638-3655
3638// node_modules/.pnpm/[email protected]/node_modules/lodash/_baseSetToString.js 3639var require_baseSetToString = __commonJS({ 3640 "node_modules/.pnpm/[email protected]/node_modules/lodash/_baseSetToString.js"(exports, module) { 3641 var constant = require_constant(); 3642 var defineProperty = require_defineProperty(); 3643 var identity = require_identity(); 3644 var baseSetToString = !defineProperty ? identity : function(func, string) { 3645 return defineProperty(func, "toString", { 3646 "configurable": true, 3647 "enumerable": false, 3648 "value": constant(string), 3649 "writable": true 3650 }); 3651 }; 3652 module.exports = baseSetToString; 3653 } 3654}); 3655
vendor: 389 bytes, lines 3656-3665
3656// node_modules/.pnpm/[email protected]/node_modules/lodash/_setToString.js 3657var require_setToString = __commonJS({ 3658 "node_modules/.pnpm/[email protected]/node_modules/lodash/_setToString.js"(exports, module) { 3659 var baseSetToString = require_baseSetToString(); 3660 var shortOut = require_shortOut(); 3661 var setToString = shortOut(baseSetToString); 3662 module.exports = setToString; 3663 } 3664}); 3665
vendor: 573 bytes, lines 3666-3681
3666// node_modules/.pnpm/[email protected]/node_modules/lodash/_baseFindIndex.js 3667var require_baseFindIndex = __commonJS({ 3668 "node_modules/.pnpm/[email protected]/node_modules/lodash/_baseFindIndex.js"(exports, module) { 3669 function baseFindIndex(array, predicate, fromIndex, fromRight) { 3670 var length = array.length, index = fromIndex + (fromRight ? 1 : -1); 3671 while (fromRight ? index-- : ++index < length) { 3672 if (predicate(array[index], index, array)) { 3673 return index; 3674 } 3675 } 3676 return -1; 3677 } 3678 module.exports = baseFindIndex; 3679 } 3680}); 3681
vendor: 308 bytes, lines 3682-3691
3682// node_modules/.pnpm/[email protected]/node_modules/lodash/_baseIsNaN.js 3683var require_baseIsNaN = __commonJS({ 3684 "node_modules/.pnpm/[email protected]/node_modules/lodash/_baseIsNaN.js"(exports, module) { 3685 function baseIsNaN(value) { 3686 return value !== value; 3687 } 3688 module.exports = baseIsNaN; 3689 } 3690}); 3691
vendor: 502 bytes, lines 3692-3707
3692// node_modules/.pnpm/[email protected]/node_modules/lodash/_strictIndexOf.js 3693var require_strictIndexOf = __commonJS({ 3694 "node_modules/.pnpm/[email protected]/node_modules/lodash/_strictIndexOf.js"(exports, module) { 3695 function strictIndexOf(array, value, fromIndex) { 3696 var index = fromIndex - 1, length = array.length; 3697 while (++index < length) { 3698 if (array[index] === value) { 3699 return index; 3700 } 3701 } 3702 return -1; 3703 } 3704 module.exports = strictIndexOf; 3705 } 3706}); 3707
vendor: 561 bytes, lines 3708-3720
3708// node_modules/.pnpm/[email protected]/node_modules/lodash/_baseIndexOf.js 3709var require_baseIndexOf = __commonJS({ 3710 "node_modules/.pnpm/[email protected]/node_modules/lodash/_baseIndexOf.js"(exports, module) { 3711 var baseFindIndex = require_baseFindIndex(); 3712 var baseIsNaN = require_baseIsNaN(); 3713 var strictIndexOf = require_strictIndexOf(); 3714 function baseIndexOf(array, value, fromIndex) { 3715 return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); 3716 } 3717 module.exports = baseIndexOf; 3718 } 3719}); 3720
vendor: 463 bytes, lines 3721-3732
3721// node_modules/.pnpm/[email protected]/node_modules/lodash/_arrayIncludes.js 3722var require_arrayIncludes = __commonJS({ 3723 "node_modules/.pnpm/[email protected]/node_modules/lodash/_arrayIncludes.js"(exports, module) { 3724 var baseIndexOf = require_baseIndexOf(); 3725 function arrayIncludes(array, value) { 3726 var length = array == null ? 0 : array.length; 3727 return !!length && baseIndexOf(array, value, 0) > -1; 3728 } 3729 module.exports = arrayIncludes; 3730 } 3731}); 3732
vendor: 1,292 bytes, lines 3733-3770
3733// node_modules/.pnpm/[email protected]/node_modules/lodash/_updateWrapDetails.js 3734var require_updateWrapDetails = __commonJS({ 3735 "node_modules/.pnpm/[email protected]/node_modules/lodash/_updateWrapDetails.js"(exports, module) { 3736 var arrayEach = require_arrayEach(); 3737 var arrayIncludes = require_arrayIncludes(); 3738 var WRAP_BIND_FLAG = 1; 3739 var WRAP_BIND_KEY_FLAG = 2; 3740 var WRAP_CURRY_FLAG = 8; 3741 var WRAP_CURRY_RIGHT_FLAG = 16; 3742 var WRAP_PARTIAL_FLAG = 32; 3743 var WRAP_PARTIAL_RIGHT_FLAG = 64; 3744 var WRAP_ARY_FLAG = 128; 3745 var WRAP_REARG_FLAG = 256; 3746 var WRAP_FLIP_FLAG = 512; 3747 var wrapFlags = [ 3748 ["ary", WRAP_ARY_FLAG], 3749 ["bind", WRAP_BIND_FLAG], 3750 ["bindKey", WRAP_BIND_KEY_FLAG], 3751 ["curry", WRAP_CURRY_FLAG], 3752 ["curryRight", WRAP_CURRY_RIGHT_FLAG], 3753 ["flip", WRAP_FLIP_FLAG], 3754 ["partial", WRAP_PARTIAL_FLAG], 3755 ["partialRight", WRAP_PARTIAL_RIGHT_FLAG], 3756 ["rearg", WRAP_REARG_FLAG] 3757 ]; 3758 function updateWrapDetails(details, bitmask) { 3759 arrayEach(wrapFlags, function(pair) { 3760 var value = "_." + pair[0]; 3761 if (bitmask & pair[1] && !arrayIncludes(details, value)) { 3762 details.push(value); 3763 } 3764 }); 3765 return details.sort(); 3766 } 3767 module.exports = updateWrapDetails; 3768 } 3769}); 3770
vendor: 689 bytes, lines 3771-3785
3771// node_modules/.pnpm/[email protected]/node_modules/lodash/_setWrapToString.js 3772var require_setWrapToString = __commonJS({ 3773 "node_modules/.pnpm/[email protected]/node_modules/lodash/_setWrapToString.js"(exports, module) { 3774 var getWrapDetails = require_getWrapDetails(); 3775 var insertWrapDetails = require_insertWrapDetails(); 3776 var setToString = require_setToString(); 3777 var updateWrapDetails = require_updateWrapDetails(); 3778 function setWrapToString(wrapper, reference, bitmask) { 3779 var source = reference + ""; 3780 return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); 3781 } 3782 module.exports = setWrapToString; 3783 } 3784}); 3785
vendor: 1,622 bytes, lines 3786-3827
3786// node_modules/.pnpm/[email protected]/node_modules/lodash/_createRecurry.js 3787var require_createRecurry = __commonJS({ 3788 "node_modules/.pnpm/[email protected]/node_modules/lodash/_createRecurry.js"(exports, module) { 3789 var isLaziable = require_isLaziable(); 3790 var setData = require_setData(); 3791 var setWrapToString = require_setWrapToString(); 3792 var WRAP_BIND_FLAG = 1; 3793 var WRAP_BIND_KEY_FLAG = 2; 3794 var WRAP_CURRY_BOUND_FLAG = 4; 3795 var WRAP_CURRY_FLAG = 8; 3796 var WRAP_PARTIAL_FLAG = 32; 3797 var WRAP_PARTIAL_RIGHT_FLAG = 64; 3798 function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) { 3799 var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : void 0, newHoldersRight = isCurry ? void 0 : holders, newPartials = isCurry ? partials : void 0, newPartialsRight = isCurry ? void 0 : partials; 3800 bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG; 3801 bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG); 3802 if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) { 3803 bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); 3804 } 3805 var newData = [ 3806 func, 3807 bitmask, 3808 thisArg, 3809 newPartials, 3810 newHolders, 3811 newPartialsRight, 3812 newHoldersRight, 3813 argPos, 3814 ary, 3815 arity 3816 ]; 3817 var result = wrapFunc.apply(void 0, newData); 3818 if (isLaziable(func)) { 3819 setData(result, newData); 3820 } 3821 result.placeholder = placeholder; 3822 return setWrapToString(result, func, bitmask); 3823 } 3824 module.exports = createRecurry; 3825 } 3826}); 3827
vendor: 335 bytes, lines 3828-3838
3828// node_modules/.pnpm/[email protected]/node_modules/lodash/_getHolder.js 3829var require_getHolder = __commonJS({ 3830 "node_modules/.pnpm/[email protected]/node_modules/lodash/_getHolder.js"(exports, module) { 3831 function getHolder(func) { 3832 var object = func; 3833 return object.placeholder; 3834 } 3835 module.exports = getHolder; 3836 } 3837}); 3838
vendor: 665 bytes, lines 3839-3856
3839// node_modules/.pnpm/[email protected]/node_modules/lodash/_reorder.js 3840var require_reorder = __commonJS({ 3841 "node_modules/.pnpm/[email protected]/node_modules/lodash/_reorder.js"(exports, module) { 3842 var copyArray = require_copyArray(); 3843 var isIndex = require_isIndex(); 3844 var nativeMin = Math.min; 3845 function reorder(array, indexes) { 3846 var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array); 3847 while (length--) { 3848 var index = indexes[length]; 3849 array[length] = isIndex(index, arrLength) ? oldArray[index] : void 0; 3850 } 3851 return array; 3852 } 3853 module.exports = reorder; 3854 } 3855}); 3856
vendor: 680 bytes, lines 3857-3875
3857// node_modules/.pnpm/[email protected]/node_modules/lodash/_replaceHolders.js 3858var require_replaceHolders = __commonJS({ 3859 "node_modules/.pnpm/[email protected]/node_modules/lodash/_replaceHolders.js"(exports, module) { 3860 var PLACEHOLDER = "__lodash_placeholder__"; 3861 function replaceHolders(array, placeholder) { 3862 var index = -1, length = array.length, resIndex = 0, result = []; 3863 while (++index < length) { 3864 var value = array[index]; 3865 if (value === placeholder || value === PLACEHOLDER) { 3866 array[index] = PLACEHOLDER; 3867 result[resIndex++] = index; 3868 } 3869 } 3870 return result; 3871 } 3872 module.exports = replaceHolders; 3873 } 3874}); 3875
vendor: 2,705 bytes, lines 3876-3946
3876// node_modules/.pnpm/[email protected]/node_modules/lodash/_createHybrid.js 3877var require_createHybrid = __commonJS({ 3878 "node_modules/.pnpm/[email protected]/node_modules/lodash/_createHybrid.js"(exports, module) { 3879 var composeArgs = require_composeArgs(); 3880 var composeArgsRight = require_composeArgsRight(); 3881 var countHolders = require_countHolders(); 3882 var createCtor = require_createCtor(); 3883 var createRecurry = require_createRecurry(); 3884 var getHolder = require_getHolder(); 3885 var reorder = require_reorder(); 3886 var replaceHolders = require_replaceHolders(); 3887 var root = require_root(); 3888 var WRAP_BIND_FLAG = 1; 3889 var WRAP_BIND_KEY_FLAG = 2; 3890 var WRAP_CURRY_FLAG = 8; 3891 var WRAP_CURRY_RIGHT_FLAG = 16; 3892 var WRAP_ARY_FLAG = 128; 3893 var WRAP_FLIP_FLAG = 512; 3894 function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { 3895 var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? void 0 : createCtor(func); 3896 function wrapper() { 3897 var length = arguments.length, args = Array(length), index = length; 3898 while (index--) { 3899 args[index] = arguments[index]; 3900 } 3901 if (isCurried) { 3902 var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder); 3903 } 3904 if (partials) { 3905 args = composeArgs(args, partials, holders, isCurried); 3906 } 3907 if (partialsRight) { 3908 args = composeArgsRight(args, partialsRight, holdersRight, isCurried); 3909 } 3910 length -= holdersCount; 3911 if (isCurried && length < arity) { 3912 var newHolders = replaceHolders(args, placeholder); 3913 return createRecurry( 3914 func, 3915 bitmask, 3916 createHybrid, 3917 wrapper.placeholder, 3918 thisArg, 3919 args, 3920 newHolders, 3921 argPos, 3922 ary, 3923 arity - length 3924 ); 3925 } 3926 var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func; 3927 length = args.length; 3928 if (argPos) { 3929 args = reorder(args, argPos); 3930 } else if (isFlip && length > 1) { 3931 args.reverse(); 3932 } 3933 if (isAry && ary < length) { 3934 args.length = ary; 3935 } 3936 if (this && this !== root && this instanceof wrapper) { 3937 fn = Ctor || createCtor(fn); 3938 } 3939 return fn.apply(thisBinding, args); 3940 } 3941 return wrapper; 3942 } 3943 module.exports = createHybrid; 3944 } 3945}); 3946
vendor: 1,479 bytes, lines 3947-3988
3947// node_modules/.pnpm/[email protected]/node_modules/lodash/_createCurry.js 3948var require_createCurry = __commonJS({ 3949 "node_modules/.pnpm/[email protected]/node_modules/lodash/_createCurry.js"(exports, module) { 3950 var apply = require_apply(); 3951 var createCtor = require_createCtor(); 3952 var createHybrid = require_createHybrid(); 3953 var createRecurry = require_createRecurry(); 3954 var getHolder = require_getHolder(); 3955 var replaceHolders = require_replaceHolders(); 3956 var root = require_root(); 3957 function createCurry(func, bitmask, arity) { 3958 var Ctor = createCtor(func); 3959 function wrapper() { 3960 var length = arguments.length, args = Array(length), index = length, placeholder = getHolder(wrapper); 3961 while (index--) { 3962 args[index] = arguments[index]; 3963 } 3964 var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder); 3965 length -= holders.length; 3966 if (length < arity) { 3967 return createRecurry( 3968 func, 3969 bitmask, 3970 createHybrid, 3971 wrapper.placeholder, 3972 void 0, 3973 args, 3974 holders, 3975 void 0, 3976 void 0, 3977 arity - length 3978 ); 3979 } 3980 var fn = this && this !== root && this instanceof wrapper ? Ctor : func; 3981 return apply(fn, this, args); 3982 } 3983 return wrapper; 3984 } 3985 module.exports = createCurry; 3986 } 3987}); 3988
vendor: 1,054 bytes, lines 3989-4013
3989// node_modules/.pnpm/[email protected]/node_modules/lodash/_createPartial.js 3990var require_createPartial = __commonJS({ 3991 "node_modules/.pnpm/[email protected]/node_modules/lodash/_createPartial.js"(exports, module) { 3992 var apply = require_apply(); 3993 var createCtor = require_createCtor(); 3994 var root = require_root(); 3995 var WRAP_BIND_FLAG = 1; 3996 function createPartial(func, bitmask, thisArg, partials) { 3997 var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); 3998 function wrapper() { 3999 var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func; 4000 while (++leftIndex < leftLength) { 4001 args[leftIndex] = partials[leftIndex]; 4002 } 4003 while (argsLength--) { 4004 args[leftIndex++] = arguments[++argsIndex]; 4005 } 4006 return apply(fn, isBind ? thisArg : this, args); 4007 } 4008 return wrapper; 4009 } 4010 module.exports = createPartial; 4011 } 4012}); 4013
vendor: 2,200 bytes, lines 4014-4067
4014// node_modules/.pnpm/[email protected]/node_modules/lodash/_mergeData.js 4015var require_mergeData = __commonJS({ 4016 "node_modules/.pnpm/[email protected]/node_modules/lodash/_mergeData.js"(exports, module) { 4017 var composeArgs = require_composeArgs(); 4018 var composeArgsRight = require_composeArgsRight(); 4019 var replaceHolders = require_replaceHolders(); 4020 var PLACEHOLDER = "__lodash_placeholder__"; 4021 var WRAP_BIND_FLAG = 1; 4022 var WRAP_BIND_KEY_FLAG = 2; 4023 var WRAP_CURRY_BOUND_FLAG = 4; 4024 var WRAP_CURRY_FLAG = 8; 4025 var WRAP_ARY_FLAG = 128; 4026 var WRAP_REARG_FLAG = 256; 4027 var nativeMin = Math.min; 4028 function mergeData(data, source) { 4029 var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); 4030 var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG; 4031 if (!(isCommon || isCombo)) { 4032 return data; 4033 } 4034 if (srcBitmask & WRAP_BIND_FLAG) { 4035 data[2] = source[2]; 4036 newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; 4037 } 4038 var value = source[3]; 4039 if (value) { 4040 var partials = data[3]; 4041 data[3] = partials ? composeArgs(partials, value, source[4]) : value; 4042 data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4]; 4043 } 4044 value = source[5]; 4045 if (value) { 4046 partials = data[5]; 4047 data[5] = partials ? composeArgsRight(partials, value, source[6]) : value; 4048 data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6]; 4049 } 4050 value = source[7]; 4051 if (value) { 4052 data[7] = value; 4053 } 4054 if (srcBitmask & WRAP_ARY_FLAG) { 4055 data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); 4056 } 4057 if (data[9] == null) { 4058 data[9] = source[9]; 4059 } 4060 data[0] = source[0]; 4061 data[1] = newBitmask; 4062 return data; 4063 } 4064 module.exports = mergeData; 4065 } 4066}); 4067
vendor: 466 bytes, lines 4068-4081
4068// node_modules/.pnpm/[email protected]/node_modules/lodash/_trimmedEndIndex.js 4069var require_trimmedEndIndex = __commonJS({ 4070 "node_modules/.pnpm/[email protected]/node_modules/lodash/_trimmedEndIndex.js"(exports, module) { 4071 var reWhitespace = /\s/; 4072 function trimmedEndIndex(string) { 4073 var index = string.length; 4074 while (index-- && reWhitespace.test(string.charAt(index))) { 4075 } 4076 return index; 4077 } 4078 module.exports = trimmedEndIndex; 4079 } 4080}); 4081
vendor: 459 bytes, lines 4082-4093
4082// node_modules/.pnpm/[email protected]/node_modules/lodash/_baseTrim.js 4083var require_baseTrim = __commonJS({ 4084 "node_modules/.pnpm/[email protected]/node_modules/lodash/_baseTrim.js"(exports, module) { 4085 var trimmedEndIndex = require_trimmedEndIndex(); 4086 var reTrimStart = /^\s+/; 4087 function baseTrim(string) { 4088 return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string; 4089 } 4090 module.exports = baseTrim; 4091 } 4092}); 4093
vendor: 1,157 bytes, lines 4094-4126
4094// node_modules/.pnpm/[email protected]/node_modules/lodash/toNumber.js 4095var require_toNumber = __commonJS({ 4096 "node_modules/.pnpm/[email protected]/node_modules/lodash/toNumber.js"(exports, module) { 4097 var baseTrim = require_baseTrim(); 4098 var isObject = require_isObject(); 4099 var isSymbol = require_isSymbol(); 4100 var NAN = 0 / 0; 4101 var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; 4102 var reIsBinary = /^0b[01]+$/i; 4103 var reIsOctal = /^0o[0-7]+$/i; 4104 var freeParseInt = parseInt; 4105 function toNumber(value) { 4106 if (typeof value == "number") { 4107 return value; 4108 } 4109 if (isSymbol(value)) { 4110 return NAN; 4111 } 4112 if (isObject(value)) { 4113 var other = typeof value.valueOf == "function" ? value.valueOf() : value; 4114 value = isObject(other) ? other + "" : other; 4115 } 4116 if (typeof value != "string") { 4117 return value === 0 ? value : +value; 4118 } 4119 value = baseTrim(value); 4120 var isBinary = reIsBinary.test(value); 4121 return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; 4122 } 4123 module.exports = toNumber; 4124 } 4125}); 4126
vendor: 659 bytes, lines 4127-4147
4127// node_modules/.pnpm/[email protected]/node_modules/lodash/toFinite.js 4128var require_toFinite = __commonJS({ 4129 "node_modules/.pnpm/[email protected]/node_modules/lodash/toFinite.js"(exports, module) { 4130 var toNumber = require_toNumber(); 4131 var INFINITY = 1 / 0; 4132 var MAX_INTEGER = 17976931348623157e292; 4133 function toFinite(value) { 4134 if (!value) { 4135 return value === 0 ? value : 0; 4136 } 4137 value = toNumber(value); 4138 if (value === INFINITY || value === -INFINITY) { 4139 var sign = value < 0 ? -1 : 1; 4140 return sign * MAX_INTEGER; 4141 } 4142 return value === value ? value : 0; 4143 } 4144 module.exports = toFinite; 4145 } 4146}); 4147
vendor: 453 bytes, lines 4148-4159
4148// node_modules/.pnpm/[email protected]/node_modules/lodash/toInteger.js 4149var require_toInteger = __commonJS({ 4150 "node_modules/.pnpm/[email protected]/node_modules/lodash/toInteger.js"(exports, module) { 4151 var toFinite = require_toFinite(); 4152 function toInteger(value) { 4153 var result = toFinite(value), remainder = result % 1; 4154 return result === result ? remainder ? result - remainder : result : 0; 4155 } 4156 module.exports = toInteger; 4157 } 4158}); 4159
vendor: 3,059 bytes, lines 4160-4238
4160// node_modules/.pnpm/[email protected]/node_modules/lodash/_createWrap.js 4161var require_createWrap = __commonJS({ 4162 "node_modules/.pnpm/[email protected]/node_modules/lodash/_createWrap.js"(exports, module) { 4163 var baseSetData = require_baseSetData(); 4164 var createBind = require_createBind(); 4165 var createCurry = require_createCurry(); 4166 var createHybrid = require_createHybrid(); 4167 var createPartial = require_createPartial(); 4168 var getData = require_getData(); 4169 var mergeData = require_mergeData(); 4170 var setData = require_setData(); 4171 var setWrapToString = require_setWrapToString(); 4172 var toInteger = require_toInteger(); 4173 var FUNC_ERROR_TEXT = "Expected a function"; 4174 var WRAP_BIND_FLAG = 1; 4175 var WRAP_BIND_KEY_FLAG = 2; 4176 var WRAP_CURRY_FLAG = 8; 4177 var WRAP_CURRY_RIGHT_FLAG = 16; 4178 var WRAP_PARTIAL_FLAG = 32; 4179 var WRAP_PARTIAL_RIGHT_FLAG = 64; 4180 var nativeMax = Math.max; 4181 function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { 4182 var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; 4183 if (!isBindKey && typeof func != "function") { 4184 throw new TypeError(FUNC_ERROR_TEXT); 4185 } 4186 var length = partials ? partials.length : 0; 4187 if (!length) { 4188 bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); 4189 partials = holders = void 0; 4190 } 4191 ary = ary === void 0 ? ary : nativeMax(toInteger(ary), 0); 4192 arity = arity === void 0 ? arity : toInteger(arity); 4193 length -= holders ? holders.length : 0; 4194 if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { 4195 var partialsRight = partials, holdersRight = holders; 4196 partials = holders = void 0; 4197 } 4198 var data = isBindKey ? void 0 : getData(func); 4199 var newData = [ 4200 func, 4201 bitmask, 4202 thisArg, 4203 partials, 4204 holders, 4205 partialsRight, 4206 holdersRight, 4207 argPos, 4208 ary, 4209 arity 4210 ]; 4211 if (data) { 4212 mergeData(newData, data); 4213 } 4214 func = newData[0]; 4215 bitmask = newData[1]; 4216 thisArg = newData[2]; 4217 partials = newData[3]; 4218 holders = newData[4]; 4219 arity = newData[9] = newData[9] === void 0 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0); 4220 if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) { 4221 bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); 4222 } 4223 if (!bitmask || bitmask == WRAP_BIND_FLAG) { 4224 var result = createBind(func, bitmask, thisArg); 4225 } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { 4226 result = createCurry(func, bitmask, arity); 4227 } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { 4228 result = createPartial(func, bitmask, thisArg, partials); 4229 } else { 4230 result = createHybrid.apply(void 0, newData); 4231 } 4232 var setter = data ? baseSetData : setData; 4233 return setWrapToString(setter(result, newData), func, bitmask); 4234 } 4235 module.exports = createWrap; 4236 } 4237}); 4238
vendor: 485 bytes, lines 4239-4252
4239// node_modules/.pnpm/[email protected]/node_modules/lodash/ary.js 4240var require_ary = __commonJS({ 4241 "node_modules/.pnpm/[email protected]/node_modules/lodash/ary.js"(exports, module) { 4242 var createWrap = require_createWrap(); 4243 var WRAP_ARY_FLAG = 128; 4244 function ary(func, n, guard) { 4245 n = guard ? void 0 : n; 4246 n = func && n == null ? func.length : n; 4247 return createWrap(func, WRAP_ARY_FLAG, void 0, void 0, void 0, void 0, n); 4248 } 4249 module.exports = ary; 4250 } 4251}); 4252
vendor: 575 bytes, lines 4253-4268
4253// node_modules/.pnpm/[email protected]/node_modules/lodash/curry.js 4254var require_curry = __commonJS({ 4255 "node_modules/.pnpm/[email protected]/node_modules/lodash/curry.js"(exports, module) { 4256 var createWrap = require_createWrap(); 4257 var WRAP_CURRY_FLAG = 8; 4258 function curry(func, arity, guard) { 4259 arity = guard ? void 0 : arity; 4260 var result = createWrap(func, WRAP_CURRY_FLAG, void 0, void 0, void 0, void 0, void 0, arity); 4261 result.placeholder = curry.placeholder; 4262 return result; 4263 } 4264 curry.placeholder = {}; 4265 module.exports = curry; 4266 } 4267}); 4268
vendor: 1,090 bytes, lines 4269-4295
4269// node_modules/.pnpm/[email protected]/node_modules/lodash/isPlainObject.js 4270var require_isPlainObject = __commonJS({ 4271 "node_modules/.pnpm/[email protected]/node_modules/lodash/isPlainObject.js"(exports, module) { 4272 var baseGetTag = require_baseGetTag(); 4273 var getPrototype = require_getPrototype(); 4274 var isObjectLike = require_isObjectLike(); 4275 var objectTag = "[object Object]"; 4276 var funcProto = Function.prototype; 4277 var objectProto = Object.prototype; 4278 var funcToString = funcProto.toString; 4279 var hasOwnProperty = objectProto.hasOwnProperty; 4280 var objectCtorString = funcToString.call(Object); 4281 function isPlainObject3(value) { 4282 if (!isObjectLike(value) || baseGetTag(value) != objectTag) { 4283 return false; 4284 } 4285 var proto = getPrototype(value); 4286 if (proto === null) { 4287 return true; 4288 } 4289 var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; 4290 return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; 4291 } 4292 module.exports = isPlainObject3; 4293 } 4294}); 4295
vendor: 732 bytes, lines 4296-4314
4296// node_modules/.pnpm/[email protected]/node_modules/lodash/isError.js 4297var require_isError = __commonJS({ 4298 "node_modules/.pnpm/[email protected]/node_modules/lodash/isError.js"(exports, module) { 4299 var baseGetTag = require_baseGetTag(); 4300 var isObjectLike = require_isObjectLike(); 4301 var isPlainObject3 = require_isPlainObject(); 4302 var domExcTag = "[object DOMException]"; 4303 var errorTag = "[object Error]"; 4304 function isError(value) { 4305 if (!isObjectLike(value)) { 4306 return false; 4307 } 4308 var tag = baseGetTag(value); 4309 return tag == errorTag || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject3(value); 4310 } 4311 module.exports = isError; 4312 } 4313}); 4314
vendor: 464 bytes, lines 4315-4327
4315// node_modules/.pnpm/[email protected]/node_modules/lodash/isWeakMap.js 4316var require_isWeakMap = __commonJS({ 4317 "node_modules/.pnpm/[email protected]/node_modules/lodash/isWeakMap.js"(exports, module) { 4318 var getTag = require_getTag(); 4319 var isObjectLike = require_isObjectLike(); 4320 var weakMapTag = "[object WeakMap]"; 4321 function isWeakMap(value) { 4322 return isObjectLike(value) && getTag(value) == weakMapTag; 4323 } 4324 module.exports = isWeakMap; 4325 } 4326}); 4327
vendor: 483 bytes, lines 4328-4340
4328// node_modules/.pnpm/[email protected]/node_modules/lodash/iteratee.js 4329var require_iteratee = __commonJS({ 4330 "node_modules/.pnpm/[email protected]/node_modules/lodash/iteratee.js"(exports, module) { 4331 var baseClone = require_baseClone(); 4332 var baseIteratee = require_baseIteratee(); 4333 var CLONE_DEEP_FLAG = 1; 4334 function iteratee(func) { 4335 return baseIteratee(typeof func == "function" ? func : baseClone(func, CLONE_DEEP_FLAG)); 4336 } 4337 module.exports = iteratee; 4338 } 4339}); 4340
vendor: 601 bytes, lines 4341-4354
4341// node_modules/.pnpm/[email protected]/node_modules/lodash/_isFlattenable.js 4342var require_isFlattenable = __commonJS({ 4343 "node_modules/.pnpm/[email protected]/node_modules/lodash/_isFlattenable.js"(exports, module) { 4344 var Symbol2 = require_Symbol(); 4345 var isArguments = require_isArguments(); 4346 var isArray = require_isArray(); 4347 var spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : void 0; 4348 function isFlattenable(value) { 4349 return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); 4350 } 4351 module.exports = isFlattenable; 4352 } 4353}); 4354
vendor: 930 bytes, lines 4355-4381
4355// node_modules/.pnpm/[email protected]/node_modules/lodash/_baseFlatten.js 4356var require_baseFlatten = __commonJS({ 4357 "node_modules/.pnpm/[email protected]/node_modules/lodash/_baseFlatten.js"(exports, module) { 4358 var arrayPush = require_arrayPush(); 4359 var isFlattenable = require_isFlattenable(); 4360 function baseFlatten(array, depth, predicate, isStrict, result) { 4361 var index = -1, length = array.length; 4362 predicate || (predicate = isFlattenable); 4363 result || (result = []); 4364 while (++index < length) { 4365 var value = array[index]; 4366 if (depth > 0 && predicate(value)) { 4367 if (depth > 1) { 4368 baseFlatten(value, depth - 1, predicate, isStrict, result); 4369 } else { 4370 arrayPush(result, value); 4371 } 4372 } else if (!isStrict) { 4373 result[result.length] = value; 4374 } 4375 } 4376 return result; 4377 } 4378 module.exports = baseFlatten; 4379 } 4380}); 4381
vendor: 416 bytes, lines 4382-4393
4382// node_modules/.pnpm/[email protected]/node_modules/lodash/flatten.js 4383var require_flatten = __commonJS({ 4384 "node_modules/.pnpm/[email protected]/node_modules/lodash/flatten.js"(exports, module) { 4385 var baseFlatten = require_baseFlatten(); 4386 function flatten2(array) { 4387 var length = array == null ? 0 : array.length; 4388 return length ? baseFlatten(array, 1) : []; 4389 } 4390 module.exports = flatten2; 4391 } 4392}); 4393
vendor: 898 bytes, lines 4394-4418
4394// node_modules/.pnpm/[email protected]/node_modules/lodash/_overRest.js 4395var require_overRest = __commonJS({ 4396 "node_modules/.pnpm/[email protected]/node_modules/lodash/_overRest.js"(exports, module) { 4397 var apply = require_apply(); 4398 var nativeMax = Math.max; 4399 function overRest(func, start, transform) { 4400 start = nativeMax(start === void 0 ? func.length - 1 : start, 0); 4401 return function() { 4402 var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); 4403 while (++index < length) { 4404 array[index] = args[start + index]; 4405 } 4406 index = -1; 4407 var otherArgs = Array(start + 1); 4408 while (++index < start) { 4409 otherArgs[index] = args[index]; 4410 } 4411 otherArgs[start] = transform(array); 4412 return apply(func, this, otherArgs); 4413 }; 4414 } 4415 module.exports = overRest; 4416 } 4417}); 4418
vendor: 465 bytes, lines 4419-4431
4419// node_modules/.pnpm/[email protected]/node_modules/lodash/_flatRest.js 4420var require_flatRest = __commonJS({ 4421 "node_modules/.pnpm/[email protected]/node_modules/lodash/_flatRest.js"(exports, module) { 4422 var flatten2 = require_flatten(); 4423 var overRest = require_overRest(); 4424 var setToString = require_setToString(); 4425 function flatRest(func) { 4426 return setToString(overRest(func, void 0, flatten2), func + ""); 4427 } 4428 module.exports = flatRest; 4429 } 4430}); 4431
vendor: 475 bytes, lines 4432-4444
4432// node_modules/.pnpm/[email protected]/node_modules/lodash/rearg.js 4433var require_rearg = __commonJS({ 4434 "node_modules/.pnpm/[email protected]/node_modules/lodash/rearg.js"(exports, module) { 4435 var createWrap = require_createWrap(); 4436 var flatRest = require_flatRest(); 4437 var WRAP_REARG_FLAG = 256; 4438 var rearg = flatRest(function(func, indexes) { 4439 return createWrap(func, WRAP_REARG_FLAG, void 0, void 0, void 0, indexes); 4440 }); 4441 module.exports = rearg; 4442 } 4443}); 4444
vendor: 729 bytes, lines 4445-4466
4445// node_modules/.pnpm/[email protected]/node_modules/lodash/fp/_util.js 4446var require_util2 = __commonJS({ 4447 "node_modules/.pnpm/[email protected]/node_modules/lodash/fp/_util.js"(exports, module) { 4448 module.exports = { 4449 "ary": require_ary(), 4450 "assign": require_baseAssign(), 4451 "clone": require_clone(), 4452 "curry": require_curry(), 4453 "forEach": require_arrayEach(), 4454 "isArray": require_isArray(), 4455 "isError": require_isError(), 4456 "isFunction": require_isFunction(), 4457 "isWeakMap": require_isWeakMap(), 4458 "iteratee": require_iteratee(), 4459 "keys": require_baseKeys(), 4460 "rearg": require_rearg(), 4461 "toInteger": require_toInteger(), 4462 "toPath": require_toPath() 4463 }; 4464 } 4465}); 4466
vendor: 416 bytes, lines 4467-4478
4467// node_modules/.pnpm/[email protected]/node_modules/lodash/fp/convert.js 4468var require_convert = __commonJS({ 4469 "node_modules/.pnpm/[email protected]/node_modules/lodash/fp/convert.js"(exports, module) { 4470 var baseConvert = require_baseConvert(); 4471 var util = require_util2(); 4472 function convert(name, func, options) { 4473 return baseConvert(util, name, func, options); 4474 } 4475 module.exports = convert; 4476 } 4477}); 4478
vendor: 2,243 bytes, lines 4479-4534
4479// node_modules/.pnpm/[email protected]/node_modules/lodash/_createFlow.js 4480var require_createFlow = __commonJS({ 4481 "node_modules/.pnpm/[email protected]/node_modules/lodash/_createFlow.js"(exports, module) { 4482 var LodashWrapper = require_LodashWrapper(); 4483 var flatRest = require_flatRest(); 4484 var getData = require_getData(); 4485 var getFuncName = require_getFuncName(); 4486 var isArray = require_isArray(); 4487 var isLaziable = require_isLaziable(); 4488 var FUNC_ERROR_TEXT = "Expected a function"; 4489 var WRAP_CURRY_FLAG = 8; 4490 var WRAP_PARTIAL_FLAG = 32; 4491 var WRAP_ARY_FLAG = 128; 4492 var WRAP_REARG_FLAG = 256; 4493 function createFlow(fromRight) { 4494 return flatRest(function(funcs) { 4495 var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru; 4496 if (fromRight) { 4497 funcs.reverse(); 4498 } 4499 while (index--) { 4500 var func = funcs[index]; 4501 if (typeof func != "function") { 4502 throw new TypeError(FUNC_ERROR_TEXT); 4503 } 4504 if (prereq && !wrapper && getFuncName(func) == "wrapper") { 4505 var wrapper = new LodashWrapper([], true); 4506 } 4507 } 4508 index = wrapper ? index : length; 4509 while (++index < length) { 4510 func = funcs[index]; 4511 var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : void 0; 4512 if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) { 4513 wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); 4514 } else { 4515 wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func); 4516 } 4517 } 4518 return function() { 4519 var args = arguments, value = args[0]; 4520 if (wrapper && args.length == 1 && isArray(value)) { 4521 return wrapper.plant(value).value(); 4522 } 4523 var index2 = 0, result = length ? funcs[index2].apply(this, args) : value; 4524 while (++index2 < length) { 4525 result = funcs[index2].call(this, result); 4526 } 4527 return result; 4528 }; 4529 }); 4530 } 4531 module.exports = createFlow; 4532 } 4533}); 4534
vendor: 290 bytes, lines 4535-4543
4535// node_modules/.pnpm/[email protected]/node_modules/lodash/flow.js 4536var require_flow = __commonJS({ 4537 "node_modules/.pnpm/[email protected]/node_modules/lodash/flow.js"(exports, module) { 4538 var createFlow = require_createFlow(); 4539 var flow = createFlow(); 4540 module.exports = flow; 4541 } 4542}); 4543
vendor: 356 bytes, lines 4544-4553
4544// node_modules/.pnpm/[email protected]/node_modules/lodash/fp/flow.js 4545var require_flow2 = __commonJS({ 4546 "node_modules/.pnpm/[email protected]/node_modules/lodash/fp/flow.js"(exports, module) { 4547 var convert = require_convert(); 4548 var func = convert("flow", require_flow()); 4549 func.placeholder = require_placeholder(); 4550 module.exports = func; 4551 } 4552}); 4553
vendor: 235 bytes, lines 4554-4560
4554// node_modules/.pnpm/[email protected]/node_modules/lodash/fp/pipe.js 4555var require_pipe = __commonJS({ 4556 "node_modules/.pnpm/[email protected]/node_modules/lodash/fp/pipe.js"(exports, module) { 4557 module.exports = require_flow2(); 4558 } 4559}); 4560
vendor: 775 bytes, lines 4561-4580
4561// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/utils/cookies.mjs 4562var getCookieValue = (name) => { 4563 let result = null; 4564 const cookieArray = document.cookie.split(";"); 4565 cookieArray.forEach((cookie) => { 4566 const [key, value] = cookie.split("=").map((item) => item.trim()); 4567 if (key === name) { 4568 result = decodeURIComponent(value); 4569 } 4570 }); 4571 return result; 4572}; 4573var setCookie = (name, value, days) => { 4574 let expires = ""; 4575 document.cookie = `${name}=${encodeURIComponent(value)}; Path=/${expires}`; 4576}; 4577var deleteCookie = (name) => { 4578 document.cookie = `${name}=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;`; 4579}; 4580
vendor: 2,288 bytes, lines 4581-4650
4581// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/reducer.mjs 4582var STORAGE_KEYS = { 4583 TOKEN: "jwtToken", 4584 STATUS: "isLoggedIn" 4585}; 4586var THEME_LOCAL_STORAGE_KEY = "STRAPI_THEME"; 4587var LANGUAGE_LOCAL_STORAGE_KEY = "strapi-admin-language"; 4588var getStoredToken = () => { 4589 const fromLocalStorage = localStorage.getItem(STORAGE_KEYS.TOKEN); 4590 if (fromLocalStorage) { 4591 return JSON.parse(fromLocalStorage); 4592 } 4593 const fromCookie = getCookieValue(STORAGE_KEYS.TOKEN); 4594 return fromCookie ?? null; 4595}; 4596var adminSlice = createSlice({ 4597 name: "admin", 4598 initialState: () => { 4599 return { 4600 language: { 4601 locale: "en", 4602 localeNames: { 4603 en: "English" 4604 } 4605 }, 4606 permissions: {}, 4607 theme: { 4608 availableThemes: [], 4609 currentTheme: localStorage.getItem(THEME_LOCAL_STORAGE_KEY) || "system" 4610 }, 4611 token: null 4612 }; 4613 }, 4614 reducers: { 4615 setAppTheme(state, action) { 4616 state.theme.currentTheme = action.payload; 4617 window.localStorage.setItem(THEME_LOCAL_STORAGE_KEY, action.payload); 4618 }, 4619 setAvailableThemes(state, action) { 4620 state.theme.availableThemes = action.payload; 4621 }, 4622 setLocale(state, action) { 4623 state.language.locale = action.payload; 4624 window.localStorage.setItem(LANGUAGE_LOCAL_STORAGE_KEY, action.payload); 4625 document.documentElement.setAttribute("lang", action.payload); 4626 }, 4627 setToken(state, action) { 4628 state.token = action.payload; 4629 }, 4630 login(state, action) { 4631 const { token, persist } = action.payload; 4632 if (!persist) { 4633 setCookie(STORAGE_KEYS.TOKEN, token); 4634 } else { 4635 window.localStorage.setItem(STORAGE_KEYS.TOKEN, JSON.stringify(token)); 4636 } 4637 window.localStorage.setItem(STORAGE_KEYS.STATUS, "true"); 4638 state.token = token; 4639 }, 4640 logout(state) { 4641 state.token = null; 4642 deleteCookie(STORAGE_KEYS.TOKEN); 4643 window.localStorage.removeItem(STORAGE_KEYS.TOKEN); 4644 window.localStorage.removeItem(STORAGE_KEYS.STATUS); 4645 } 4646 } 4647}); 4648var reducer = adminSlice.reducer; 4649var { setAppTheme, setAvailableThemes, setLocale, setToken, logout, login } = adminSlice.actions; 4650
vendor: 5,580 bytes, lines 4651-4799
4651// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/utils/getFetchClient.mjs 4652var import_pipe = __toESM(require_pipe(), 1); 4653var import_qs = __toESM(require_lib(), 1); 4654var STORAGE_KEYS2 = { 4655 TOKEN: "jwtToken", 4656 USER: "userInfo" 4657}; 4658var FetchError = class _FetchError extends Error { 4659 constructor(message, response) { 4660 var _a, _b, _c, _d; 4661 super(message); 4662 this.name = "FetchError"; 4663 this.message = message; 4664 this.response = response; 4665 this.code = (_b = (_a = response == null ? void 0 : response.data) == null ? void 0 : _a.error) == null ? void 0 : _b.status; 4666 this.status = (_d = (_c = response == null ? void 0 : response.data) == null ? void 0 : _c.error) == null ? void 0 : _d.status; 4667 if (Error.captureStackTrace) { 4668 Error.captureStackTrace(this, _FetchError); 4669 } 4670 } 4671}; 4672var isFetchError = (error) => { 4673 return error instanceof FetchError; 4674}; 4675var getToken = () => { 4676 const fromLocalStorage = localStorage.getItem(STORAGE_KEYS2.TOKEN); 4677 if (fromLocalStorage) { 4678 return JSON.parse(fromLocalStorage); 4679 } 4680 const fromCookie = getCookieValue(STORAGE_KEYS2.TOKEN); 4681 return fromCookie ?? null; 4682}; 4683var getFetchClient = (defaultOptions = {}) => { 4684 const backendURL = window.strapi.backendURL; 4685 const defaultHeader = { 4686 Accept: "application/json", 4687 "Content-Type": "application/json", 4688 Authorization: `Bearer ${getToken()}` 4689 }; 4690 const isFormDataRequest = (body) => body instanceof FormData; 4691 const addPrependingSlash = (url) => url.charAt(0) !== "/" ? `/${url}` : url; 4692 const hasProtocol = (url) => new RegExp("^(?:[a-z+]+:)?//", "i").test(url); 4693 const normalizeUrl = (url) => hasProtocol(url) ? url : addPrependingSlash(url); 4694 const responseInterceptor = async (response, validateStatus) => { 4695 try { 4696 const result = await response.json(); 4697 if (!response.ok && result.error && !(validateStatus == null ? void 0 : validateStatus(response.status))) { 4698 throw new FetchError(result.error.message, { 4699 data: result 4700 }); 4701 } 4702 if (!response.ok && !(validateStatus == null ? void 0 : validateStatus(response.status))) { 4703 throw new FetchError("Unknown Server Error"); 4704 } 4705 return { 4706 data: result 4707 }; 4708 } catch (error) { 4709 if (error instanceof SyntaxError && response.ok) { 4710 return { 4711 data: [], 4712 status: response.status 4713 }; 4714 } else { 4715 throw error; 4716 } 4717 } 4718 }; 4719 const paramsSerializer = (params) => (url) => { 4720 if (params) { 4721 if (typeof params === "string") { 4722 return `${url}?${params}`; 4723 } 4724 const serializedParams = import_qs.default.stringify(params, { 4725 encode: false 4726 }); 4727 return `${url}?${serializedParams}`; 4728 } 4729 return url; 4730 }; 4731 const addBaseUrl = (url) => { 4732 return `${backendURL}${url}`; 4733 }; 4734 const makeCreateRequestUrl = (options) => (0, import_pipe.default)(normalizeUrl, addBaseUrl, paramsSerializer(options == null ? void 0 : options.params)); 4735 const fetchClient = { 4736 get: async (url, options) => { 4737 const headers = new Headers({ 4738 ...defaultHeader, 4739 ...options == null ? void 0 : options.headers 4740 }); 4741 const createRequestUrl = makeCreateRequestUrl(options); 4742 const response = await fetch(createRequestUrl(url), { 4743 signal: (options == null ? void 0 : options.signal) ?? defaultOptions.signal, 4744 method: "GET", 4745 headers 4746 }); 4747 return responseInterceptor(response, options == null ? void 0 : options.validateStatus); 4748 }, 4749 post: async (url, data, options) => { 4750 const headers = new Headers({ 4751 ...defaultHeader, 4752 ...options == null ? void 0 : options.headers 4753 }); 4754 const createRequestUrl = makeCreateRequestUrl(options); 4755 if (isFormDataRequest(data)) { 4756 headers.delete("Content-Type"); 4757 } 4758 const response = await fetch(createRequestUrl(url), { 4759 signal: (options == null ? void 0 : options.signal) ?? defaultOptions.signal, 4760 method: "POST", 4761 headers, 4762 body: isFormDataRequest(data) ? data : JSON.stringify(data) 4763 }); 4764 return responseInterceptor(response, options == null ? void 0 : options.validateStatus); 4765 }, 4766 put: async (url, data, options) => { 4767 const headers = new Headers({ 4768 ...defaultHeader, 4769 ...options == null ? void 0 : options.headers 4770 }); 4771 const createRequestUrl = makeCreateRequestUrl(options); 4772 if (isFormDataRequest(data)) { 4773 headers.delete("Content-Type"); 4774 } 4775 const response = await fetch(createRequestUrl(url), { 4776 signal: (options == null ? void 0 : options.signal) ?? defaultOptions.signal, 4777 method: "PUT", 4778 headers, 4779 body: isFormDataRequest(data) ? data : JSON.stringify(data) 4780 }); 4781 return responseInterceptor(response, options == null ? void 0 : options.validateStatus); 4782 }, 4783 del: async (url, options) => { 4784 const headers = new Headers({ 4785 ...defaultHeader, 4786 ...options == null ? void 0 : options.headers 4787 }); 4788 const createRequestUrl = makeCreateRequestUrl(options); 4789 const response = await fetch(createRequestUrl(url), { 4790 signal: (options == null ? void 0 : options.signal) ?? defaultOptions.signal, 4791 method: "DELETE", 4792 headers 4793 }); 4794 return responseInterceptor(response, options == null ? void 0 : options.validateStatus); 4795 } 4796 }; 4797 return fetchClient; 4798}; 4799
vendor: 3,485 bytes, lines 4800-4916
4800// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/utils/baseQuery.mjs 4801var refreshPromise = null; 4802var isAuthPath = (url) => /^\/admin\/(login|logout|access-token)\b/.test(url); 4803var simpleQuery = async (query, api) => { 4804 var _a, _b, _c, _d; 4805 const { signal, dispatch } = api; 4806 const executeQuery = async (queryToExecute) => { 4807 const { get, post, del, put } = getFetchClient(); 4808 if (typeof queryToExecute === "string") { 4809 const result = await get(queryToExecute, { 4810 signal 4811 }); 4812 return result; 4813 } 4814 const { url, method = "GET", data, config } = queryToExecute; 4815 if (method === "POST") { 4816 return post(url, data, { 4817 ...config, 4818 signal 4819 }); 4820 } 4821 if (method === "DELETE") { 4822 return del(url, { 4823 ...config, 4824 signal 4825 }); 4826 } 4827 if (method === "PUT") { 4828 return put(url, data, { 4829 ...config, 4830 signal 4831 }); 4832 } 4833 return get(url, { 4834 ...config, 4835 signal 4836 }); 4837 }; 4838 try { 4839 const result = await executeQuery(query); 4840 return { 4841 data: result.data 4842 }; 4843 } catch (err) { 4844 if (isFetchError(err)) { 4845 if (err.status === 401) { 4846 const url = typeof query === "string" ? query : query.url; 4847 if (!isAuthPath(url)) { 4848 if (!refreshPromise) { 4849 async function refreshAccessToken() { 4850 var _a2, _b2; 4851 const { post } = getFetchClient(); 4852 const res = await post("/admin/access-token"); 4853 const token = (_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.token; 4854 if (!token) { 4855 throw new Error("access_token_exchange_failed"); 4856 } 4857 const persist = Boolean(localStorage.getItem("jwtToken")); 4858 dispatch(login({ 4859 token, 4860 persist 4861 })); 4862 return token; 4863 } 4864 refreshPromise = refreshAccessToken().finally(() => { 4865 refreshPromise = null; 4866 }); 4867 } 4868 try { 4869 await refreshPromise; 4870 const retry2 = await executeQuery(query); 4871 return { 4872 data: retry2.data 4873 }; 4874 } catch (refreshError) { 4875 try { 4876 const { post } = getFetchClient(); 4877 await post("/admin/logout"); 4878 } catch { 4879 } 4880 dispatch(logout()); 4881 } 4882 } 4883 } 4884 if (typeof ((_a = err.response) == null ? void 0 : _a.data) === "object" && ((_b = err.response) == null ? void 0 : _b.data) !== null && "error" in ((_c = err.response) == null ? void 0 : _c.data)) { 4885 return { 4886 data: void 0, 4887 error: (_d = err.response) == null ? void 0 : _d.data.error 4888 }; 4889 } else { 4890 return { 4891 data: void 0, 4892 error: { 4893 name: "UnknownError", 4894 message: err.message, 4895 details: err.response, 4896 status: err.status 4897 } 4898 }; 4899 } 4900 } 4901 const error = err; 4902 return { 4903 data: void 0, 4904 error: { 4905 name: error.name, 4906 message: error.message, 4907 stack: error.stack 4908 } 4909 }; 4910 } 4911}; 4912var fetchBaseQuery = () => simpleQuery; 4913var isBaseQueryError = (error) => { 4914 return error.name !== void 0; 4915}; 4916
vendor: 82,559 bytes, lines 4917-6967
4917// node_modules/.pnpm/@[email protected][email protected]_@[email protected]_@[email protected]__@types_2qhkbaauoenxtzzzznrtho4mxm/node_modules/@reduxjs/toolkit/dist/query/rtk-query.esm.js 4918var __generator = function(thisArg, body) { 4919 var _ = { label: 0, sent: function() { 4920 if (t2[0] & 1) throw t2[1]; 4921 return t2[1]; 4922 }, trys: [], ops: [] }, f, y, t2, g; 4923 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { 4924 return this; 4925 }), g; 4926 function verb(n) { 4927 return function(v) { 4928 return step([n, v]); 4929 }; 4930 } 4931 function step(op) { 4932 if (f) throw new TypeError("Generator is already executing."); 4933 while (_) try { 4934 if (f = 1, y && (t2 = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t2 = y["return"]) && t2.call(y), 0) : y.next) && !(t2 = t2.call(y, op[1])).done) return t2; 4935 if (y = 0, t2) op = [op[0] & 2, t2.value]; 4936 switch (op[0]) { 4937 case 0: 4938 case 1: 4939 t2 = op; 4940 break; 4941 case 4: 4942 _.label++; 4943 return { value: op[1], done: false }; 4944 case 5: 4945 _.label++; 4946 y = op[1]; 4947 op = [0]; 4948 continue; 4949 case 7: 4950 op = _.ops.pop(); 4951 _.trys.pop(); 4952 continue; 4953 default: 4954 if (!(t2 = _.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) { 4955 _ = 0; 4956 continue; 4957 } 4958 if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) { 4959 _.label = op[1]; 4960 break; 4961 } 4962 if (op[0] === 6 && _.label < t2[1]) { 4963 _.label = t2[1]; 4964 t2 = op; 4965 break; 4966 } 4967 if (t2 && _.label < t2[2]) { 4968 _.label = t2[2]; 4969 _.ops.push(op); 4970 break; 4971 } 4972 if (t2[2]) _.ops.pop(); 4973 _.trys.pop(); 4974 continue; 4975 } 4976 op = body.call(thisArg, _); 4977 } catch (e2) { 4978 op = [6, e2]; 4979 y = 0; 4980 } finally { 4981 f = t2 = 0; 4982 } 4983 if (op[0] & 5) throw op[1]; 4984 return { value: op[0] ? op[1] : void 0, done: true }; 4985 } 4986}; 4987var __spreadArray = function(to, from) { 4988 for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) 4989 to[j] = from[i]; 4990 return to; 4991}; 4992var __defProp = Object.defineProperty; 4993var __defProps = Object.defineProperties; 4994var __getOwnPropDescs = Object.getOwnPropertyDescriptors; 4995var __getOwnPropSymbols = Object.getOwnPropertySymbols; 4996var __hasOwnProp = Object.prototype.hasOwnProperty; 4997var __propIsEnum = Object.prototype.propertyIsEnumerable; 4998var __defNormalProp = function(obj, key, value) { 4999 return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; 5000}; 5001var __spreadValues = function(a, b) { 5002 for (var prop in b || (b = {})) 5003 if (__hasOwnProp.call(b, prop)) 5004 __defNormalProp(a, prop, b[prop]); 5005 if (__getOwnPropSymbols) 5006 for (var _j = 0, _k = __getOwnPropSymbols(b); _j < _k.length; _j++) { 5007 var prop = _k[_j]; 5008 if (__propIsEnum.call(b, prop)) 5009 __defNormalProp(a, prop, b[prop]); 5010 } 5011 return a; 5012}; 5013var __spreadProps = function(a, b) { 5014 return __defProps(a, __getOwnPropDescs(b)); 5015}; 5016var __async = function(__this, __arguments, generator) { 5017 return new Promise(function(resolve, reject) { 5018 var fulfilled = function(value) { 5019 try { 5020 step(generator.next(value)); 5021 } catch (e2) { 5022 reject(e2); 5023 } 5024 }; 5025 var rejected = function(value) { 5026 try { 5027 step(generator.throw(value)); 5028 } catch (e2) { 5029 reject(e2); 5030 } 5031 }; 5032 var step = function(x) { 5033 return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); 5034 }; 5035 step((generator = generator.apply(__this, __arguments)).next()); 5036 }); 5037}; 5038var QueryStatus; 5039(function(QueryStatus2) { 5040 QueryStatus2["uninitialized"] = "uninitialized"; 5041 QueryStatus2["pending"] = "pending"; 5042 QueryStatus2["fulfilled"] = "fulfilled"; 5043 QueryStatus2["rejected"] = "rejected"; 5044})(QueryStatus || (QueryStatus = {})); 5045function getRequestStatusFlags(status) { 5046 return { 5047 status, 5048 isUninitialized: status === QueryStatus.uninitialized, 5049 isLoading: status === QueryStatus.pending, 5050 isSuccess: status === QueryStatus.fulfilled, 5051 isError: status === QueryStatus.rejected 5052 }; 5053} 5054var flatten = function(arr) { 5055 return [].concat.apply([], arr); 5056}; 5057function isOnline() { 5058 return typeof navigator === "undefined" ? true : navigator.onLine === void 0 ? true : navigator.onLine; 5059} 5060function isDocumentVisible() { 5061 if (typeof document === "undefined") { 5062 return true; 5063 } 5064 return document.visibilityState !== "hidden"; 5065} 5066var isPlainObject2 = isPlainObject; 5067function copyWithStructuralSharing(oldObj, newObj) { 5068 if (oldObj === newObj || !(isPlainObject2(oldObj) && isPlainObject2(newObj) || Array.isArray(oldObj) && Array.isArray(newObj))) { 5069 return newObj; 5070 } 5071 var newKeys = Object.keys(newObj); 5072 var oldKeys = Object.keys(oldObj); 5073 var isSameObject = newKeys.length === oldKeys.length; 5074 var mergeObj = Array.isArray(newObj) ? [] : {}; 5075 for (var _j = 0, newKeys_1 = newKeys; _j < newKeys_1.length; _j++) { 5076 var key = newKeys_1[_j]; 5077 mergeObj[key] = copyWithStructuralSharing(oldObj[key], newObj[key]); 5078 if (isSameObject) 5079 isSameObject = oldObj[key] === mergeObj[key]; 5080 } 5081 return isSameObject ? oldObj : mergeObj; 5082} 5083var HandledError = ( 5084 /** @class */ 5085 /* @__PURE__ */ function() { 5086 function HandledError2(value, meta) { 5087 if (meta === void 0) { 5088 meta = void 0; 5089 } 5090 this.value = value; 5091 this.meta = meta; 5092 } 5093 return HandledError2; 5094 }() 5095); 5096function defaultBackoff(attempt, maxRetries) { 5097 if (attempt === void 0) { 5098 attempt = 0; 5099 } 5100 if (maxRetries === void 0) { 5101 maxRetries = 5; 5102 } 5103 return __async(this, null, function() { 5104 var attempts, timeout; 5105 return __generator(this, function(_j) { 5106 switch (_j.label) { 5107 case 0: 5108 attempts = Math.min(attempt, maxRetries); 5109 timeout = ~~((Math.random() + 0.4) * (300 << attempts)); 5110 return [4, new Promise(function(resolve) { 5111 return setTimeout(function(res) { 5112 return resolve(res); 5113 }, timeout); 5114 })]; 5115 case 1: 5116 _j.sent(); 5117 return [ 5118 2 5119 /*return*/ 5120 ]; 5121 } 5122 }); 5123 }); 5124} 5125function fail(e2) { 5126 throw Object.assign(new HandledError({ error: e2 }), { 5127 throwImmediately: true 5128 }); 5129} 5130var EMPTY_OPTIONS = {}; 5131var retryWithBackoff = function(baseQuery, defaultOptions) { 5132 return function(args, api, extraOptions) { 5133 return __async(void 0, null, function() { 5134 var possibleMaxRetries, maxRetries, defaultRetryCondition, options, retry2, result, e_3; 5135 return __generator(this, function(_j) { 5136 switch (_j.label) { 5137 case 0: 5138 possibleMaxRetries = [ 5139 5, 5140 (defaultOptions || EMPTY_OPTIONS).maxRetries, 5141 (extraOptions || EMPTY_OPTIONS).maxRetries 5142 ].filter(function(x) { 5143 return x !== void 0; 5144 }); 5145 maxRetries = possibleMaxRetries.slice(-1)[0]; 5146 defaultRetryCondition = function(_, __, _j2) { 5147 var attempt = _j2.attempt; 5148 return attempt <= maxRetries; 5149 }; 5150 options = __spreadValues(__spreadValues({ 5151 maxRetries, 5152 backoff: defaultBackoff, 5153 retryCondition: defaultRetryCondition 5154 }, defaultOptions), extraOptions); 5155 retry2 = 0; 5156 _j.label = 1; 5157 case 1: 5158 if (false) return [3, 7]; 5159 _j.label = 2; 5160 case 2: 5161 _j.trys.push([2, 4, , 6]); 5162 return [4, baseQuery(args, api, extraOptions)]; 5163 case 3: 5164 result = _j.sent(); 5165 if (result.error) { 5166 throw new HandledError(result); 5167 } 5168 return [2, result]; 5169 case 4: 5170 e_3 = _j.sent(); 5171 retry2++; 5172 if (e_3.throwImmediately) { 5173 if (e_3 instanceof HandledError) { 5174 return [2, e_3.value]; 5175 } 5176 throw e_3; 5177 } 5178 if (e_3 instanceof HandledError && !options.retryCondition(e_3.value.error, args, { 5179 attempt: retry2, 5180 baseQueryApi: api, 5181 extraOptions 5182 })) { 5183 return [2, e_3.value]; 5184 } 5185 return [4, options.backoff(retry2, options.maxRetries)]; 5186 case 5: 5187 _j.sent(); 5188 return [3, 6]; 5189 case 6: 5190 return [3, 1]; 5191 case 7: 5192 return [ 5193 2 5194 /*return*/ 5195 ]; 5196 } 5197 }); 5198 }); 5199 }; 5200}; 5201var retry = Object.assign(retryWithBackoff, { fail }); 5202var onFocus = createAction("__rtkq/focused"); 5203var onFocusLost = createAction("__rtkq/unfocused"); 5204var onOnline = createAction("__rtkq/online"); 5205var onOffline = createAction("__rtkq/offline"); 5206var DefinitionType; 5207(function(DefinitionType22) { 5208 DefinitionType22["query"] = "query"; 5209 DefinitionType22["mutation"] = "mutation"; 5210})(DefinitionType || (DefinitionType = {})); 5211function isQueryDefinition(e2) { 5212 return e2.type === DefinitionType.query; 5213} 5214function isMutationDefinition(e2) { 5215 return e2.type === DefinitionType.mutation; 5216} 5217function calculateProvidedBy(description, result, error, queryArg, meta, assertTagTypes) { 5218 if (isFunction(description)) { 5219 return description(result, error, queryArg, meta).map(expandTagDescription).map(assertTagTypes); 5220 } 5221 if (Array.isArray(description)) { 5222 return description.map(expandTagDescription).map(assertTagTypes); 5223 } 5224 return []; 5225} 5226function isFunction(t2) { 5227 return typeof t2 === "function"; 5228} 5229function expandTagDescription(description) { 5230 return typeof description === "string" ? { type: description } : description; 5231} 5232function isNotNullish(v) { 5233 return v != null; 5234} 5235var forceQueryFnSymbol = Symbol("forceQueryFn"); 5236var isUpsertQuery = function(arg) { 5237 return typeof arg[forceQueryFnSymbol] === "function"; 5238}; 5239function buildInitiate(_j) { 5240 var serializeQueryArgs = _j.serializeQueryArgs, queryThunk = _j.queryThunk, mutationThunk = _j.mutationThunk, api = _j.api, context = _j.context; 5241 var runningQueries = /* @__PURE__ */ new Map(); 5242 var runningMutations = /* @__PURE__ */ new Map(); 5243 var _k = api.internalActions, unsubscribeQueryResult = _k.unsubscribeQueryResult, removeMutationResult = _k.removeMutationResult, updateSubscriptionOptions = _k.updateSubscriptionOptions; 5244 return { 5245 buildInitiateQuery, 5246 buildInitiateMutation, 5247 getRunningQueryThunk, 5248 getRunningMutationThunk, 5249 getRunningQueriesThunk, 5250 getRunningMutationsThunk, 5251 getRunningOperationPromises, 5252 removalWarning 5253 }; 5254 function removalWarning() { 5255 throw new Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR."); 5256 } 5257 function getRunningOperationPromises() { 5258 if (typeof process !== "undefined" && false) { 5259 removalWarning(); 5260 } else { 5261 var extract = function(v) { 5262 return Array.from(v.values()).flatMap(function(queriesForStore) { 5263 return queriesForStore ? Object.values(queriesForStore) : []; 5264 }); 5265 }; 5266 return __spreadArray(__spreadArray([], extract(runningQueries)), extract(runningMutations)).filter(isNotNullish); 5267 } 5268 } 5269 function getRunningQueryThunk(endpointName, queryArgs) { 5270 return function(dispatch) { 5271 var _a; 5272 var endpointDefinition = context.endpointDefinitions[endpointName]; 5273 var queryCacheKey = serializeQueryArgs({ 5274 queryArgs, 5275 endpointDefinition, 5276 endpointName 5277 }); 5278 return (_a = runningQueries.get(dispatch)) == null ? void 0 : _a[queryCacheKey]; 5279 }; 5280 } 5281 function getRunningMutationThunk(_endpointName, fixedCacheKeyOrRequestId) { 5282 return function(dispatch) { 5283 var _a; 5284 return (_a = runningMutations.get(dispatch)) == null ? void 0 : _a[fixedCacheKeyOrRequestId]; 5285 }; 5286 } 5287 function getRunningQueriesThunk() { 5288 return function(dispatch) { 5289 return Object.values(runningQueries.get(dispatch) || {}).filter(isNotNullish); 5290 }; 5291 } 5292 function getRunningMutationsThunk() { 5293 return function(dispatch) { 5294 return Object.values(runningMutations.get(dispatch) || {}).filter(isNotNullish); 5295 }; 5296 } 5297 function middlewareWarning(dispatch) { 5298 if (false) { 5299 if (middlewareWarning.triggered) 5300 return; 5301 var registered = dispatch(api.internalActions.internal_probeSubscription({ 5302 queryCacheKey: "DOES_NOT_EXIST", 5303 requestId: "DUMMY_REQUEST_ID" 5304 })); 5305 middlewareWarning.triggered = true; 5306 if (typeof registered !== "boolean") { 5307 throw new Error('Warning: Middleware for RTK-Query API at reducerPath "' + api.reducerPath + '" has not been added to the store.\nYou must add the middleware for RTK-Query to function correctly!'); 5308 } 5309 } 5310 } 5311 function buildInitiateQuery(endpointName, endpointDefinition) { 5312 var queryAction = function(arg, _j2) { 5313 var _k2 = _j2 === void 0 ? {} : _j2, _l = _k2.subscribe, subscribe = _l === void 0 ? true : _l, forceRefetch = _k2.forceRefetch, subscriptionOptions = _k2.subscriptionOptions, _m = forceQueryFnSymbol, forceQueryFn = _k2[_m]; 5314 return function(dispatch, getState) { 5315 var _j3; 5316 var _a; 5317 var queryCacheKey = serializeQueryArgs({ 5318 queryArgs: arg, 5319 endpointDefinition, 5320 endpointName 5321 }); 5322 var thunk = queryThunk((_j3 = { 5323 type: "query", 5324 subscribe, 5325 forceRefetch, 5326 subscriptionOptions, 5327 endpointName, 5328 originalArgs: arg, 5329 queryCacheKey 5330 }, _j3[forceQueryFnSymbol] = forceQueryFn, _j3)); 5331 var selector = api.endpoints[endpointName].select(arg); 5332 var thunkResult = dispatch(thunk); 5333 var stateAfter = selector(getState()); 5334 middlewareWarning(dispatch); 5335 var requestId = thunkResult.requestId, abort = thunkResult.abort; 5336 var skippedSynchronously = stateAfter.requestId !== requestId; 5337 var runningQuery = (_a = runningQueries.get(dispatch)) == null ? void 0 : _a[queryCacheKey]; 5338 var selectFromState = function() { 5339 return selector(getState()); 5340 }; 5341 var statePromise = Object.assign(forceQueryFn ? thunkResult.then(selectFromState) : skippedSynchronously && !runningQuery ? Promise.resolve(stateAfter) : Promise.all([runningQuery, thunkResult]).then(selectFromState), { 5342 arg, 5343 requestId, 5344 subscriptionOptions, 5345 queryCacheKey, 5346 abort, 5347 unwrap: function() { 5348 return __async(this, null, function() { 5349 var result; 5350 return __generator(this, function(_j4) { 5351 switch (_j4.label) { 5352 case 0: 5353 return [4, statePromise]; 5354 case 1: 5355 result = _j4.sent(); 5356 if (result.isError) { 5357 throw result.error; 5358 } 5359 return [2, result.data]; 5360 } 5361 }); 5362 }); 5363 }, 5364 refetch: function() { 5365 return dispatch(queryAction(arg, { subscribe: false, forceRefetch: true })); 5366 }, 5367 unsubscribe: function() { 5368 if (subscribe) 5369 dispatch(unsubscribeQueryResult({ 5370 queryCacheKey, 5371 requestId 5372 })); 5373 }, 5374 updateSubscriptionOptions: function(options) { 5375 statePromise.subscriptionOptions = options; 5376 dispatch(updateSubscriptionOptions({ 5377 endpointName, 5378 requestId, 5379 queryCacheKey, 5380 options 5381 })); 5382 } 5383 }); 5384 if (!runningQuery && !skippedSynchronously && !forceQueryFn) { 5385 var running_1 = runningQueries.get(dispatch) || {}; 5386 running_1[queryCacheKey] = statePromise; 5387 runningQueries.set(dispatch, running_1); 5388 statePromise.then(function() { 5389 delete running_1[queryCacheKey]; 5390 if (!Object.keys(running_1).length) { 5391 runningQueries.delete(dispatch); 5392 } 5393 }); 5394 } 5395 return statePromise; 5396 }; 5397 }; 5398 return queryAction; 5399 } 5400 function buildInitiateMutation(endpointName) { 5401 return function(arg, _j2) { 5402 var _k2 = _j2 === void 0 ? {} : _j2, _l = _k2.track, track = _l === void 0 ? true : _l, fixedCacheKey = _k2.fixedCacheKey; 5403 return function(dispatch, getState) { 5404 var thunk = mutationThunk({ 5405 type: "mutation", 5406 endpointName, 5407 originalArgs: arg, 5408 track, 5409 fixedCacheKey 5410 }); 5411 var thunkResult = dispatch(thunk); 5412 middlewareWarning(dispatch); 5413 var requestId = thunkResult.requestId, abort = thunkResult.abort, unwrap = thunkResult.unwrap; 5414 var returnValuePromise = thunkResult.unwrap().then(function(data) { 5415 return { data }; 5416 }).catch(function(error) { 5417 return { error }; 5418 }); 5419 var reset = function() { 5420 dispatch(removeMutationResult({ requestId, fixedCacheKey })); 5421 }; 5422 var ret = Object.assign(returnValuePromise, { 5423 arg: thunkResult.arg, 5424 requestId, 5425 abort, 5426 unwrap, 5427 unsubscribe: reset, 5428 reset 5429 }); 5430 var running = runningMutations.get(dispatch) || {}; 5431 runningMutations.set(dispatch, running); 5432 running[requestId] = ret; 5433 ret.then(function() { 5434 delete running[requestId]; 5435 if (!Object.keys(running).length) { 5436 runningMutations.delete(dispatch); 5437 } 5438 }); 5439 if (fixedCacheKey) { 5440 running[fixedCacheKey] = ret; 5441 ret.then(function() { 5442 if (running[fixedCacheKey] === ret) { 5443 delete running[fixedCacheKey]; 5444 if (!Object.keys(running).length) { 5445 runningMutations.delete(dispatch); 5446 } 5447 } 5448 }); 5449 } 5450 return ret; 5451 }; 5452 }; 5453 } 5454} 5455function defaultTransformResponse(baseQueryReturnValue) { 5456 return baseQueryReturnValue; 5457} 5458function buildThunks(_j) { 5459 var _this = this; 5460 var reducerPath = _j.reducerPath, baseQuery = _j.baseQuery, endpointDefinitions = _j.context.endpointDefinitions, serializeQueryArgs = _j.serializeQueryArgs, api = _j.api, assertTagType = _j.assertTagType; 5461 var patchQueryData = function(endpointName, args, patches, updateProvided) { 5462 return function(dispatch, getState) { 5463 var endpointDefinition = endpointDefinitions[endpointName]; 5464 var queryCacheKey = serializeQueryArgs({ 5465 queryArgs: args, 5466 endpointDefinition, 5467 endpointName 5468 }); 5469 dispatch(api.internalActions.queryResultPatched({ queryCacheKey, patches })); 5470 if (!updateProvided) { 5471 return; 5472 } 5473 var newValue = api.endpoints[endpointName].select(args)(getState()); 5474 var providedTags = calculateProvidedBy(endpointDefinition.providesTags, newValue.data, void 0, args, {}, assertTagType); 5475 dispatch(api.internalActions.updateProvidedBy({ queryCacheKey, providedTags })); 5476 }; 5477 }; 5478 var updateQueryData = function(endpointName, args, updateRecipe, updateProvided) { 5479 if (updateProvided === void 0) { 5480 updateProvided = true; 5481 } 5482 return function(dispatch, getState) { 5483 var _j2, _k; 5484 var endpointDefinition = api.endpoints[endpointName]; 5485 var currentState = endpointDefinition.select(args)(getState()); 5486 var ret = { 5487 patches: [], 5488 inversePatches: [], 5489 undo: function() { 5490 return dispatch(api.util.patchQueryData(endpointName, args, ret.inversePatches, updateProvided)); 5491 } 5492 }; 5493 if (currentState.status === QueryStatus.uninitialized) { 5494 return ret; 5495 } 5496 var newValue; 5497 if ("data" in currentState) { 5498 if (t(currentState.data)) { 5499 var _l = cn(currentState.data, updateRecipe), value = _l[0], patches = _l[1], inversePatches = _l[2]; 5500 (_j2 = ret.patches).push.apply(_j2, patches); 5501 (_k = ret.inversePatches).push.apply(_k, inversePatches); 5502 newValue = value; 5503 } else { 5504 newValue = updateRecipe(currentState.data); 5505 ret.patches.push({ op: "replace", path: [], value: newValue }); 5506 ret.inversePatches.push({ 5507 op: "replace", 5508 path: [], 5509 value: currentState.data 5510 }); 5511 } 5512 } 5513 dispatch(api.util.patchQueryData(endpointName, args, ret.patches, updateProvided)); 5514 return ret; 5515 }; 5516 }; 5517 var upsertQueryData = function(endpointName, args, value) { 5518 return function(dispatch) { 5519 var _j2; 5520 return dispatch(api.endpoints[endpointName].initiate(args, (_j2 = { 5521 subscribe: false, 5522 forceRefetch: true 5523 }, _j2[forceQueryFnSymbol] = function() { 5524 return { 5525 data: value 5526 }; 5527 }, _j2))); 5528 }; 5529 }; 5530 var executeEndpoint = function(_0, _1) { 5531 return __async(_this, [_0, _1], function(arg, _j2) { 5532 var endpointDefinition, transformResponse, result, baseQueryApi_1, forceQueryFn, what, err, _k, _l, key, _m, error_1, catchedError, transformErrorResponse, _o, e_4; 5533 var _p, _q; 5534 var signal = _j2.signal, abort = _j2.abort, rejectWithValue = _j2.rejectWithValue, fulfillWithValue = _j2.fulfillWithValue, dispatch = _j2.dispatch, getState = _j2.getState, extra = _j2.extra; 5535 return __generator(this, function(_r) { 5536 switch (_r.label) { 5537 case 0: 5538 endpointDefinition = endpointDefinitions[arg.endpointName]; 5539 _r.label = 1; 5540 case 1: 5541 _r.trys.push([1, 8, , 13]); 5542 transformResponse = defaultTransformResponse; 5543 result = void 0; 5544 baseQueryApi_1 = { 5545 signal, 5546 abort, 5547 dispatch, 5548 getState, 5549 extra, 5550 endpoint: arg.endpointName, 5551 type: arg.type, 5552 forced: arg.type === "query" ? isForcedQuery(arg, getState()) : void 0 5553 }; 5554 forceQueryFn = arg.type === "query" ? arg[forceQueryFnSymbol] : void 0; 5555 if (!forceQueryFn) return [3, 2]; 5556 result = forceQueryFn(); 5557 return [3, 6]; 5558 case 2: 5559 if (!endpointDefinition.query) return [3, 4]; 5560 return [4, baseQuery(endpointDefinition.query(arg.originalArgs), baseQueryApi_1, endpointDefinition.extraOptions)]; 5561 case 3: 5562 result = _r.sent(); 5563 if (endpointDefinition.transformResponse) { 5564 transformResponse = endpointDefinition.transformResponse; 5565 } 5566 return [3, 6]; 5567 case 4: 5568 return [4, endpointDefinition.queryFn(arg.originalArgs, baseQueryApi_1, endpointDefinition.extraOptions, function(arg2) { 5569 return baseQuery(arg2, baseQueryApi_1, endpointDefinition.extraOptions); 5570 })]; 5571 case 5: 5572 result = _r.sent(); 5573 _r.label = 6; 5574 case 6: 5575 if (typeof process !== "undefined" && false) { 5576 what = endpointDefinition.query ? "`baseQuery`" : "`queryFn`"; 5577 err = void 0; 5578 if (!result) { 5579 err = what + " did not return anything."; 5580 } else if (typeof result !== "object") { 5581 err = what + " did not return an object."; 5582 } else if (result.error && result.data) { 5583 err = what + " returned an object containing both `error` and `result`."; 5584 } else if (result.error === void 0 && result.data === void 0) { 5585 err = what + " returned an object containing neither a valid `error` and `result`. At least one of them should not be `undefined`"; 5586 } else { 5587 for (_k = 0, _l = Object.keys(result); _k < _l.length; _k++) { 5588 key = _l[_k]; 5589 if (key !== "error" && key !== "data" && key !== "meta") { 5590 err = "The object returned by " + what + " has the unknown property " + key + "."; 5591 break; 5592 } 5593 } 5594 } 5595 if (err) { 5596 console.error("Error encountered handling the endpoint " + arg.endpointName + ".\n " + err + "\n It needs to return an object with either the shape `{ data: <value> }` or `{ error: <value> }` that may contain an optional `meta` property.\n Object returned was:", result); 5597 } 5598 } 5599 if (result.error) 5600 throw new HandledError(result.error, result.meta); 5601 _m = fulfillWithValue; 5602 return [4, transformResponse(result.data, result.meta, arg.originalArgs)]; 5603 case 7: 5604 return [2, _m.apply(void 0, [_r.sent(), (_p = { 5605 fulfilledTimeStamp: Date.now(), 5606 baseQueryMeta: result.meta 5607 }, _p[SHOULD_AUTOBATCH] = true, _p)])]; 5608 case 8: 5609 error_1 = _r.sent(); 5610 catchedError = error_1; 5611 if (!(catchedError instanceof HandledError)) return [3, 12]; 5612 transformErrorResponse = defaultTransformResponse; 5613 if (endpointDefinition.query && endpointDefinition.transformErrorResponse) { 5614 transformErrorResponse = endpointDefinition.transformErrorResponse; 5615 } 5616 _r.label = 9; 5617 case 9: 5618 _r.trys.push([9, 11, , 12]); 5619 _o = rejectWithValue; 5620 return [4, transformErrorResponse(catchedError.value, catchedError.meta, arg.originalArgs)]; 5621 case 10: 5622 return [2, _o.apply(void 0, [_r.sent(), (_q = { baseQueryMeta: catchedError.meta }, _q[SHOULD_AUTOBATCH] = true, _q)])]; 5623 case 11: 5624 e_4 = _r.sent(); 5625 catchedError = e_4; 5626 return [3, 12]; 5627 case 12: 5628 if (typeof process !== "undefined" && false) { 5629 console.error('An unhandled error occurred processing a request for the endpoint "' + arg.endpointName + '".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".', catchedError); 5630 } else { 5631 console.error(catchedError); 5632 } 5633 throw catchedError; 5634 case 13: 5635 return [ 5636 2 5637 /*return*/ 5638 ]; 5639 } 5640 }); 5641 }); 5642 }; 5643 function isForcedQuery(arg, state) { 5644 var _a, _b, _c, _d; 5645 var requestState = (_b = (_a = state[reducerPath]) == null ? void 0 : _a.queries) == null ? void 0 : _b[arg.queryCacheKey]; 5646 var baseFetchOnMountOrArgChange = (_c = state[reducerPath]) == null ? void 0 : _c.config.refetchOnMountOrArgChange; 5647 var fulfilledVal = requestState == null ? void 0 : requestState.fulfilledTimeStamp; 5648 var refetchVal = (_d = arg.forceRefetch) != null ? _d : arg.subscribe && baseFetchOnMountOrArgChange; 5649 if (refetchVal) { 5650 return refetchVal === true || (Number(/* @__PURE__ */ new Date()) - Number(fulfilledVal)) / 1e3 >= refetchVal; 5651 } 5652 return false; 5653 } 5654 var queryThunk = createAsyncThunk(reducerPath + "/executeQuery", executeEndpoint, { 5655 getPendingMeta: function() { 5656 var _j2; 5657 return _j2 = { startedTimeStamp: Date.now() }, _j2[SHOULD_AUTOBATCH] = true, _j2; 5658 }, 5659 condition: function(queryThunkArgs, _j2) { 5660 var getState = _j2.getState; 5661 var _a, _b, _c; 5662 var state = getState(); 5663 var requestState = (_b = (_a = state[reducerPath]) == null ? void 0 : _a.queries) == null ? void 0 : _b[queryThunkArgs.queryCacheKey]; 5664 var fulfilledVal = requestState == null ? void 0 : requestState.fulfilledTimeStamp; 5665 var currentArg = queryThunkArgs.originalArgs; 5666 var previousArg = requestState == null ? void 0 : requestState.originalArgs; 5667 var endpointDefinition = endpointDefinitions[queryThunkArgs.endpointName]; 5668 if (isUpsertQuery(queryThunkArgs)) { 5669 return true; 5670 } 5671 if ((requestState == null ? void 0 : requestState.status) === "pending") { 5672 return false; 5673 } 5674 if (isForcedQuery(queryThunkArgs, state)) { 5675 return true; 5676 } 5677 if (isQueryDefinition(endpointDefinition) && ((_c = endpointDefinition == null ? void 0 : endpointDefinition.forceRefetch) == null ? void 0 : _c.call(endpointDefinition, { 5678 currentArg, 5679 previousArg, 5680 endpointState: requestState, 5681 state 5682 }))) { 5683 return true; 5684 } 5685 if (fulfilledVal) { 5686 return false; 5687 } 5688 return true; 5689 }, 5690 dispatchConditionRejection: true 5691 }); 5692 var mutationThunk = createAsyncThunk(reducerPath + "/executeMutation", executeEndpoint, { 5693 getPendingMeta: function() { 5694 var _j2; 5695 return _j2 = { startedTimeStamp: Date.now() }, _j2[SHOULD_AUTOBATCH] = true, _j2; 5696 } 5697 }); 5698 var hasTheForce = function(options) { 5699 return "force" in options; 5700 }; 5701 var hasMaxAge = function(options) { 5702 return "ifOlderThan" in options; 5703 }; 5704 var prefetch = function(endpointName, arg, options) { 5705 return function(dispatch, getState) { 5706 var force = hasTheForce(options) && options.force; 5707 var maxAge = hasMaxAge(options) && options.ifOlderThan; 5708 var queryAction = function(force2) { 5709 if (force2 === void 0) { 5710 force2 = true; 5711 } 5712 return api.endpoints[endpointName].initiate(arg, { forceRefetch: force2 }); 5713 }; 5714 var latestStateValue = api.endpoints[endpointName].select(arg)(getState()); 5715 if (force) { 5716 dispatch(queryAction()); 5717 } else if (maxAge) { 5718 var lastFulfilledTs = latestStateValue == null ? void 0 : latestStateValue.fulfilledTimeStamp; 5719 if (!lastFulfilledTs) { 5720 dispatch(queryAction()); 5721 return; 5722 } 5723 var shouldRetrigger = (Number(/* @__PURE__ */ new Date()) - Number(new Date(lastFulfilledTs))) / 1e3 >= maxAge; 5724 if (shouldRetrigger) { 5725 dispatch(queryAction()); 5726 } 5727 } else { 5728 dispatch(queryAction(false)); 5729 } 5730 }; 5731 }; 5732 function matchesEndpoint(endpointName) { 5733 return function(action) { 5734 var _a, _b; 5735 return ((_b = (_a = action == null ? void 0 : action.meta) == null ? void 0 : _a.arg) == null ? void 0 : _b.endpointName) === endpointName; 5736 }; 5737 } 5738 function buildMatchThunkActions(thunk, endpointName) { 5739 return { 5740 matchPending: isAllOf(isPending(thunk), matchesEndpoint(endpointName)), 5741 matchFulfilled: isAllOf(isFulfilled(thunk), matchesEndpoint(endpointName)), 5742 matchRejected: isAllOf(isRejected(thunk), matchesEndpoint(endpointName)) 5743 }; 5744 } 5745 return { 5746 queryThunk, 5747 mutationThunk, 5748 prefetch, 5749 updateQueryData, 5750 upsertQueryData, 5751 patchQueryData, 5752 buildMatchThunkActions 5753 }; 5754} 5755function calculateProvidedByThunk(action, type, endpointDefinitions, assertTagType) { 5756 return calculateProvidedBy(endpointDefinitions[action.meta.arg.endpointName][type], isFulfilled(action) ? action.payload : void 0, isRejectedWithValue(action) ? action.payload : void 0, action.meta.arg.originalArgs, "baseQueryMeta" in action.meta ? action.meta.baseQueryMeta : void 0, assertTagType); 5757} 5758function updateQuerySubstateIfExists(state, queryCacheKey, update) { 5759 var substate = state[queryCacheKey]; 5760 if (substate) { 5761 update(substate); 5762 } 5763} 5764function getMutationCacheKey(id) { 5765 var _a; 5766 return (_a = "arg" in id ? id.arg.fixedCacheKey : id.fixedCacheKey) != null ? _a : id.requestId; 5767} 5768function updateMutationSubstateIfExists(state, id, update) { 5769 var substate = state[getMutationCacheKey(id)]; 5770 if (substate) { 5771 update(substate); 5772 } 5773} 5774var initialState = {}; 5775function buildSlice(_j) { 5776 var reducerPath = _j.reducerPath, queryThunk = _j.queryThunk, mutationThunk = _j.mutationThunk, _k = _j.context, definitions = _k.endpointDefinitions, apiUid = _k.apiUid, extractRehydrationInfo = _k.extractRehydrationInfo, hasRehydrationInfo = _k.hasRehydrationInfo, assertTagType = _j.assertTagType, config = _j.config; 5777 var resetApiState = createAction(reducerPath + "/resetApiState"); 5778 var querySlice = createSlice({ 5779 name: reducerPath + "/queries", 5780 initialState, 5781 reducers: { 5782 removeQueryResult: { 5783 reducer: function(draft, _j2) { 5784 var queryCacheKey = _j2.payload.queryCacheKey; 5785 delete draft[queryCacheKey]; 5786 }, 5787 prepare: prepareAutoBatched() 5788 }, 5789 queryResultPatched: { 5790 reducer: function(draft, _j2) { 5791 var _k2 = _j2.payload, queryCacheKey = _k2.queryCacheKey, patches = _k2.patches; 5792 updateQuerySubstateIfExists(draft, queryCacheKey, function(substate) { 5793 substate.data = pn(substate.data, patches.concat()); 5794 }); 5795 }, 5796 prepare: prepareAutoBatched() 5797 } 5798 }, 5799 extraReducers: function(builder) { 5800 builder.addCase(queryThunk.pending, function(draft, _j2) { 5801 var meta = _j2.meta, arg = _j2.meta.arg; 5802 var _a, _b; 5803 var upserting = isUpsertQuery(arg); 5804 if (arg.subscribe || upserting) { 5805 (_b = draft[_a = arg.queryCacheKey]) != null ? _b : draft[_a] = { 5806 status: QueryStatus.uninitialized, 5807 endpointName: arg.endpointName 5808 }; 5809 } 5810 updateQuerySubstateIfExists(draft, arg.queryCacheKey, function(substate) { 5811 substate.status = QueryStatus.pending; 5812 substate.requestId = upserting && substate.requestId ? substate.requestId : meta.requestId; 5813 if (arg.originalArgs !== void 0) { 5814 substate.originalArgs = arg.originalArgs; 5815 } 5816 substate.startedTimeStamp = meta.startedTimeStamp; 5817 }); 5818 }).addCase(queryThunk.fulfilled, function(draft, _j2) { 5819 var meta = _j2.meta, payload = _j2.payload; 5820 updateQuerySubstateIfExists(draft, meta.arg.queryCacheKey, function(substate) { 5821 var _a; 5822 if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg)) 5823 return; 5824 var merge = definitions[meta.arg.endpointName].merge; 5825 substate.status = QueryStatus.fulfilled; 5826 if (merge) { 5827 if (substate.data !== void 0) { 5828 var fulfilledTimeStamp_1 = meta.fulfilledTimeStamp, arg_1 = meta.arg, baseQueryMeta_1 = meta.baseQueryMeta, requestId_1 = meta.requestId; 5829 var newData = immer_esm_default(substate.data, function(draftSubstateData) { 5830 return merge(draftSubstateData, payload, { 5831 arg: arg_1.originalArgs, 5832 baseQueryMeta: baseQueryMeta_1, 5833 fulfilledTimeStamp: fulfilledTimeStamp_1, 5834 requestId: requestId_1 5835 }); 5836 }); 5837 substate.data = newData; 5838 } else { 5839 substate.data = payload; 5840 } 5841 } else { 5842 substate.data = ((_a = definitions[meta.arg.endpointName].structuralSharing) != null ? _a : true) ? copyWithStructuralSharing(r(substate.data) ? e(substate.data) : substate.data, payload) : payload; 5843 } 5844 delete substate.error; 5845 substate.fulfilledTimeStamp = meta.fulfilledTimeStamp; 5846 }); 5847 }).addCase(queryThunk.rejected, function(draft, _j2) { 5848 var _k2 = _j2.meta, condition = _k2.condition, arg = _k2.arg, requestId = _k2.requestId, error = _j2.error, payload = _j2.payload; 5849 updateQuerySubstateIfExists(draft, arg.queryCacheKey, function(substate) { 5850 if (condition) { 5851 } else { 5852 if (substate.requestId !== requestId) 5853 return; 5854 substate.status = QueryStatus.rejected; 5855 substate.error = payload != null ? payload : error; 5856 } 5857 }); 5858 }).addMatcher(hasRehydrationInfo, function(draft, action) { 5859 var queries = extractRehydrationInfo(action).queries; 5860 for (var _j2 = 0, _k2 = Object.entries(queries); _j2 < _k2.length; _j2++) { 5861 var _l = _k2[_j2], key = _l[0], entry = _l[1]; 5862 if ((entry == null ? void 0 : entry.status) === QueryStatus.fulfilled || (entry == null ? void 0 : entry.status) === QueryStatus.rejected) { 5863 draft[key] = entry; 5864 } 5865 } 5866 }); 5867 } 5868 }); 5869 var mutationSlice = createSlice({ 5870 name: reducerPath + "/mutations", 5871 initialState, 5872 reducers: { 5873 removeMutationResult: { 5874 reducer: function(draft, _j2) { 5875 var payload = _j2.payload; 5876 var cacheKey = getMutationCacheKey(payload); 5877 if (cacheKey in draft) { 5878 delete draft[cacheKey]; 5879 } 5880 }, 5881 prepare: prepareAutoBatched() 5882 } 5883 }, 5884 extraReducers: function(builder) { 5885 builder.addCase(mutationThunk.pending, function(draft, _j2) { 5886 var meta = _j2.meta, _k2 = _j2.meta, requestId = _k2.requestId, arg = _k2.arg, startedTimeStamp = _k2.startedTimeStamp; 5887 if (!arg.track) 5888 return; 5889 draft[getMutationCacheKey(meta)] = { 5890 requestId, 5891 status: QueryStatus.pending, 5892 endpointName: arg.endpointName, 5893 startedTimeStamp 5894 }; 5895 }).addCase(mutationThunk.fulfilled, function(draft, _j2) { 5896 var payload = _j2.payload, meta = _j2.meta; 5897 if (!meta.arg.track) 5898 return; 5899 updateMutationSubstateIfExists(draft, meta, function(substate) { 5900 if (substate.requestId !== meta.requestId) 5901 return; 5902 substate.status = QueryStatus.fulfilled; 5903 substate.data = payload; 5904 substate.fulfilledTimeStamp = meta.fulfilledTimeStamp; 5905 }); 5906 }).addCase(mutationThunk.rejected, function(draft, _j2) { 5907 var payload = _j2.payload, error = _j2.error, meta = _j2.meta; 5908 if (!meta.arg.track) 5909 return; 5910 updateMutationSubstateIfExists(draft, meta, function(substate) { 5911 if (substate.requestId !== meta.requestId) 5912 return; 5913 substate.status = QueryStatus.rejected; 5914 substate.error = payload != null ? payload : error; 5915 }); 5916 }).addMatcher(hasRehydrationInfo, function(draft, action) { 5917 var mutations = extractRehydrationInfo(action).mutations; 5918 for (var _j2 = 0, _k2 = Object.entries(mutations); _j2 < _k2.length; _j2++) { 5919 var _l = _k2[_j2], key = _l[0], entry = _l[1]; 5920 if (((entry == null ? void 0 : entry.status) === QueryStatus.fulfilled || (entry == null ? void 0 : entry.status) === QueryStatus.rejected) && key !== (entry == null ? void 0 : entry.requestId)) { 5921 draft[key] = entry; 5922 } 5923 } 5924 }); 5925 } 5926 }); 5927 var invalidationSlice = createSlice({ 5928 name: reducerPath + "/invalidation", 5929 initialState, 5930 reducers: { 5931 updateProvidedBy: { 5932 reducer: function(draft, action) { 5933 var _a, _b, _c, _d; 5934 var _j2 = action.payload, queryCacheKey = _j2.queryCacheKey, providedTags = _j2.providedTags; 5935 for (var _k2 = 0, _l = Object.values(draft); _k2 < _l.length; _k2++) { 5936 var tagTypeSubscriptions = _l[_k2]; 5937 for (var _m = 0, _o = Object.values(tagTypeSubscriptions); _m < _o.length; _m++) { 5938 var idSubscriptions = _o[_m]; 5939 var foundAt = idSubscriptions.indexOf(queryCacheKey); 5940 if (foundAt !== -1) { 5941 idSubscriptions.splice(foundAt, 1); 5942 } 5943 } 5944 } 5945 for (var _p = 0, providedTags_1 = providedTags; _p < providedTags_1.length; _p++) { 5946 var _q = providedTags_1[_p], type = _q.type, id = _q.id; 5947 var subscribedQueries = (_d = (_b = (_a = draft[type]) != null ? _a : draft[type] = {})[_c = id || "__internal_without_id"]) != null ? _d : _b[_c] = []; 5948 var alreadySubscribed = subscribedQueries.includes(queryCacheKey); 5949 if (!alreadySubscribed) { 5950 subscribedQueries.push(queryCacheKey); 5951 } 5952 } 5953 }, 5954 prepare: prepareAutoBatched() 5955 } 5956 }, 5957 extraReducers: function(builder) { 5958 builder.addCase(querySlice.actions.removeQueryResult, function(draft, _j2) { 5959 var queryCacheKey = _j2.payload.queryCacheKey; 5960 for (var _k2 = 0, _l = Object.values(draft); _k2 < _l.length; _k2++) { 5961 var tagTypeSubscriptions = _l[_k2]; 5962 for (var _m = 0, _o = Object.values(tagTypeSubscriptions); _m < _o.length; _m++) { 5963 var idSubscriptions = _o[_m]; 5964 var foundAt = idSubscriptions.indexOf(queryCacheKey); 5965 if (foundAt !== -1) { 5966 idSubscriptions.splice(foundAt, 1); 5967 } 5968 } 5969 } 5970 }).addMatcher(hasRehydrationInfo, function(draft, action) { 5971 var _a, _b, _c, _d; 5972 var provided = extractRehydrationInfo(action).provided; 5973 for (var _j2 = 0, _k2 = Object.entries(provided); _j2 < _k2.length; _j2++) { 5974 var _l = _k2[_j2], type = _l[0], incomingTags = _l[1]; 5975 for (var _m = 0, _o = Object.entries(incomingTags); _m < _o.length; _m++) { 5976 var _p = _o[_m], id = _p[0], cacheKeys = _p[1]; 5977 var subscribedQueries = (_d = (_b = (_a = draft[type]) != null ? _a : draft[type] = {})[_c = id || "__internal_without_id"]) != null ? _d : _b[_c] = []; 5978 for (var _q = 0, cacheKeys_1 = cacheKeys; _q < cacheKeys_1.length; _q++) { 5979 var queryCacheKey = cacheKeys_1[_q]; 5980 var alreadySubscribed = subscribedQueries.includes(queryCacheKey); 5981 if (!alreadySubscribed) { 5982 subscribedQueries.push(queryCacheKey); 5983 } 5984 } 5985 } 5986 } 5987 }).addMatcher(isAnyOf(isFulfilled(queryThunk), isRejectedWithValue(queryThunk)), function(draft, action) { 5988 var providedTags = calculateProvidedByThunk(action, "providesTags", definitions, assertTagType); 5989 var queryCacheKey = action.meta.arg.queryCacheKey; 5990 invalidationSlice.caseReducers.updateProvidedBy(draft, invalidationSlice.actions.updateProvidedBy({ 5991 queryCacheKey, 5992 providedTags 5993 })); 5994 }); 5995 } 5996 }); 5997 var subscriptionSlice = createSlice({ 5998 name: reducerPath + "/subscriptions", 5999 initialState, 6000 reducers: { 6001 updateSubscriptionOptions: function(d, a) { 6002 }, 6003 unsubscribeQueryResult: function(d, a) { 6004 }, 6005 internal_probeSubscription: function(d, a) { 6006 } 6007 } 6008 }); 6009 var internalSubscriptionsSlice = createSlice({ 6010 name: reducerPath + "/internalSubscriptions", 6011 initialState, 6012 reducers: { 6013 subscriptionsUpdated: { 6014 reducer: function(state, action) { 6015 return pn(state, action.payload); 6016 }, 6017 prepare: prepareAutoBatched() 6018 } 6019 } 6020 }); 6021 var configSlice = createSlice({ 6022 name: reducerPath + "/config", 6023 initialState: __spreadValues({ 6024 online: isOnline(), 6025 focused: isDocumentVisible(), 6026 middlewareRegistered: false 6027 }, config), 6028 reducers: { 6029 middlewareRegistered: function(state, _j2) { 6030 var payload = _j2.payload; 6031 state.middlewareRegistered = state.middlewareRegistered === "conflict" || apiUid !== payload ? "conflict" : true; 6032 } 6033 }, 6034 extraReducers: function(builder) { 6035 builder.addCase(onOnline, function(state) { 6036 state.online = true; 6037 }).addCase(onOffline, function(state) { 6038 state.online = false; 6039 }).addCase(onFocus, function(state) { 6040 state.focused = true; 6041 }).addCase(onFocusLost, function(state) { 6042 state.focused = false; 6043 }).addMatcher(hasRehydrationInfo, function(draft) { 6044 return __spreadValues({}, draft); 6045 }); 6046 } 6047 }); 6048 var combinedReducer = combineReducers({ 6049 queries: querySlice.reducer, 6050 mutations: mutationSlice.reducer, 6051 provided: invalidationSlice.reducer, 6052 subscriptions: internalSubscriptionsSlice.reducer, 6053 config: configSlice.reducer 6054 }); 6055 var reducer2 = function(state, action) { 6056 return combinedReducer(resetApiState.match(action) ? void 0 : state, action); 6057 }; 6058 var actions = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, configSlice.actions), querySlice.actions), subscriptionSlice.actions), internalSubscriptionsSlice.actions), mutationSlice.actions), invalidationSlice.actions), { 6059 unsubscribeMutationResult: mutationSlice.actions.removeMutationResult, 6060 resetApiState 6061 }); 6062 return { reducer: reducer2, actions }; 6063} 6064var skipToken = Symbol.for("RTKQ/skipToken"); 6065var initialSubState = { 6066 status: QueryStatus.uninitialized 6067}; 6068var defaultQuerySubState = immer_esm_default(initialSubState, function() { 6069}); 6070var defaultMutationSubState = immer_esm_default(initialSubState, function() { 6071}); 6072function buildSelectors(_j) { 6073 var serializeQueryArgs = _j.serializeQueryArgs, reducerPath = _j.reducerPath; 6074 var selectSkippedQuery = function(state) { 6075 return defaultQuerySubState; 6076 }; 6077 var selectSkippedMutation = function(state) { 6078 return defaultMutationSubState; 6079 }; 6080 return { buildQuerySelector, buildMutationSelector, selectInvalidatedBy }; 6081 function withRequestFlags(substate) { 6082 return __spreadValues(__spreadValues({}, substate), getRequestStatusFlags(substate.status)); 6083 } 6084 function selectInternalState(rootState) { 6085 var state = rootState[reducerPath]; 6086 if (false) { 6087 if (!state) { 6088 if (selectInternalState.triggered) 6089 return state; 6090 selectInternalState.triggered = true; 6091 console.error("Error: No data found at `state." + reducerPath + "`. Did you forget to add the reducer to the store?"); 6092 } 6093 } 6094 return state; 6095 } 6096 function buildQuerySelector(endpointName, endpointDefinition) { 6097 return function(queryArgs) { 6098 var serializedArgs = serializeQueryArgs({ 6099 queryArgs, 6100 endpointDefinition, 6101 endpointName 6102 }); 6103 var selectQuerySubstate = function(state) { 6104 var _a, _b, _c; 6105 return (_c = (_b = (_a = selectInternalState(state)) == null ? void 0 : _a.queries) == null ? void 0 : _b[serializedArgs]) != null ? _c : defaultQuerySubState; 6106 }; 6107 var finalSelectQuerySubState = queryArgs === skipToken ? selectSkippedQuery : selectQuerySubstate; 6108 return createSelector(finalSelectQuerySubState, withRequestFlags); 6109 }; 6110 } 6111 function buildMutationSelector() { 6112 return function(id) { 6113 var _a; 6114 var mutationId; 6115 if (typeof id === "object") { 6116 mutationId = (_a = getMutationCacheKey(id)) != null ? _a : skipToken; 6117 } else { 6118 mutationId = id; 6119 } 6120 var selectMutationSubstate = function(state) { 6121 var _a2, _b, _c; 6122 return (_c = (_b = (_a2 = selectInternalState(state)) == null ? void 0 : _a2.mutations) == null ? void 0 : _b[mutationId]) != null ? _c : defaultMutationSubState; 6123 }; 6124 var finalSelectMutationSubstate = mutationId === skipToken ? selectSkippedMutation : selectMutationSubstate; 6125 return createSelector(finalSelectMutationSubstate, withRequestFlags); 6126 }; 6127 } 6128 function selectInvalidatedBy(state, tags) { 6129 var _a; 6130 var apiState = state[reducerPath]; 6131 var toInvalidate = /* @__PURE__ */ new Set(); 6132 for (var _j2 = 0, _k = tags.map(expandTagDescription); _j2 < _k.length; _j2++) { 6133 var tag = _k[_j2]; 6134 var provided = apiState.provided[tag.type]; 6135 if (!provided) { 6136 continue; 6137 } 6138 var invalidateSubscriptions = (_a = tag.id !== void 0 ? provided[tag.id] : flatten(Object.values(provided))) != null ? _a : []; 6139 for (var _l = 0, invalidateSubscriptions_1 = invalidateSubscriptions; _l < invalidateSubscriptions_1.length; _l++) { 6140 var invalidate = invalidateSubscriptions_1[_l]; 6141 toInvalidate.add(invalidate); 6142 } 6143 } 6144 return flatten(Array.from(toInvalidate.values()).map(function(queryCacheKey) { 6145 var querySubState = apiState.queries[queryCacheKey]; 6146 return querySubState ? [ 6147 { 6148 queryCacheKey, 6149 endpointName: querySubState.endpointName, 6150 originalArgs: querySubState.originalArgs 6151 } 6152 ] : []; 6153 })); 6154 } 6155} 6156var cache = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0; 6157var defaultSerializeQueryArgs = function(_j) { 6158 var endpointName = _j.endpointName, queryArgs = _j.queryArgs; 6159 var serialized = ""; 6160 var cached = cache == null ? void 0 : cache.get(queryArgs); 6161 if (typeof cached === "string") { 6162 serialized = cached; 6163 } else { 6164 var stringified = JSON.stringify(queryArgs, function(key, value) { 6165 return isPlainObject(value) ? Object.keys(value).sort().reduce(function(acc, key2) { 6166 acc[key2] = value[key2]; 6167 return acc; 6168 }, {}) : value; 6169 }); 6170 if (isPlainObject(queryArgs)) { 6171 cache == null ? void 0 : cache.set(queryArgs, stringified); 6172 } 6173 serialized = stringified; 6174 } 6175 return endpointName + "(" + serialized + ")"; 6176}; 6177function buildCreateApi() { 6178 var modules = []; 6179 for (var _j = 0; _j < arguments.length; _j++) { 6180 modules[_j] = arguments[_j]; 6181 } 6182 return function baseCreateApi(options) { 6183 var extractRehydrationInfo = defaultMemoize(function(action) { 6184 var _a, _b; 6185 return (_b = options.extractRehydrationInfo) == null ? void 0 : _b.call(options, action, { 6186 reducerPath: (_a = options.reducerPath) != null ? _a : "api" 6187 }); 6188 }); 6189 var optionsWithDefaults = __spreadProps(__spreadValues({ 6190 reducerPath: "api", 6191 keepUnusedDataFor: 60, 6192 refetchOnMountOrArgChange: false, 6193 refetchOnFocus: false, 6194 refetchOnReconnect: false 6195 }, options), { 6196 extractRehydrationInfo, 6197 serializeQueryArgs: function(queryArgsApi) { 6198 var finalSerializeQueryArgs = defaultSerializeQueryArgs; 6199 if ("serializeQueryArgs" in queryArgsApi.endpointDefinition) { 6200 var endpointSQA_1 = queryArgsApi.endpointDefinition.serializeQueryArgs; 6201 finalSerializeQueryArgs = function(queryArgsApi2) { 6202 var initialResult = endpointSQA_1(queryArgsApi2); 6203 if (typeof initialResult === "string") { 6204 return initialResult; 6205 } else { 6206 return defaultSerializeQueryArgs(__spreadProps(__spreadValues({}, queryArgsApi2), { 6207 queryArgs: initialResult 6208 })); 6209 } 6210 }; 6211 } else if (options.serializeQueryArgs) { 6212 finalSerializeQueryArgs = options.serializeQueryArgs; 6213 } 6214 return finalSerializeQueryArgs(queryArgsApi); 6215 }, 6216 tagTypes: __spreadArray([], options.tagTypes || []) 6217 }); 6218 var context = { 6219 endpointDefinitions: {}, 6220 batch: function(fn) { 6221 fn(); 6222 }, 6223 apiUid: nanoid(), 6224 extractRehydrationInfo, 6225 hasRehydrationInfo: defaultMemoize(function(action) { 6226 return extractRehydrationInfo(action) != null; 6227 }) 6228 }; 6229 var api = { 6230 injectEndpoints, 6231 enhanceEndpoints: function(_j2) { 6232 var addTagTypes = _j2.addTagTypes, endpoints = _j2.endpoints; 6233 if (addTagTypes) { 6234 for (var _k = 0, addTagTypes_1 = addTagTypes; _k < addTagTypes_1.length; _k++) { 6235 var eT = addTagTypes_1[_k]; 6236 if (!optionsWithDefaults.tagTypes.includes(eT)) { 6237 ; 6238 optionsWithDefaults.tagTypes.push(eT); 6239 } 6240 } 6241 } 6242 if (endpoints) { 6243 for (var _l = 0, _m = Object.entries(endpoints); _l < _m.length; _l++) { 6244 var _o = _m[_l], endpointName = _o[0], partialDefinition = _o[1]; 6245 if (typeof partialDefinition === "function") { 6246 partialDefinition(context.endpointDefinitions[endpointName]); 6247 } else { 6248 Object.assign(context.endpointDefinitions[endpointName] || {}, partialDefinition); 6249 } 6250 } 6251 } 6252 return api; 6253 } 6254 }; 6255 var initializedModules = modules.map(function(m) { 6256 return m.init(api, optionsWithDefaults, context); 6257 }); 6258 function injectEndpoints(inject) { 6259 var evaluatedEndpoints = inject.endpoints({ 6260 query: function(x) { 6261 return __spreadProps(__spreadValues({}, x), { type: DefinitionType.query }); 6262 }, 6263 mutation: function(x) { 6264 return __spreadProps(__spreadValues({}, x), { type: DefinitionType.mutation }); 6265 } 6266 }); 6267 for (var _j2 = 0, _k = Object.entries(evaluatedEndpoints); _j2 < _k.length; _j2++) { 6268 var _l = _k[_j2], endpointName = _l[0], definition = _l[1]; 6269 if (!inject.overrideExisting && endpointName in context.endpointDefinitions) { 6270 if (typeof process !== "undefined" && false) { 6271 console.error("called `injectEndpoints` to override already-existing endpointName " + endpointName + " without specifying `overrideExisting: true`"); 6272 } 6273 continue; 6274 } 6275 context.endpointDefinitions[endpointName] = definition; 6276 for (var _m = 0, initializedModules_1 = initializedModules; _m < initializedModules_1.length; _m++) { 6277 var m = initializedModules_1[_m]; 6278 m.injectEndpoint(endpointName, definition); 6279 } 6280 } 6281 return api; 6282 } 6283 return api.injectEndpoints({ endpoints: options.endpoints }); 6284 }; 6285} 6286function isObjectEmpty(obj) { 6287 for (var k in obj) { 6288 return false; 6289 } 6290 return true; 6291} 6292var THIRTY_TWO_BIT_MAX_TIMER_SECONDS = 2147483647 / 1e3 - 1; 6293var buildCacheCollectionHandler = function(_j) { 6294 var reducerPath = _j.reducerPath, api = _j.api, context = _j.context, internalState = _j.internalState; 6295 var _k = api.internalActions, removeQueryResult = _k.removeQueryResult, unsubscribeQueryResult = _k.unsubscribeQueryResult; 6296 function anySubscriptionsRemainingForKey(queryCacheKey) { 6297 var subscriptions = internalState.currentSubscriptions[queryCacheKey]; 6298 return !!subscriptions && !isObjectEmpty(subscriptions); 6299 } 6300 var currentRemovalTimeouts = {}; 6301 var handler = function(action, mwApi, internalState2) { 6302 var _a; 6303 if (unsubscribeQueryResult.match(action)) { 6304 var state = mwApi.getState()[reducerPath]; 6305 var queryCacheKey = action.payload.queryCacheKey; 6306 handleUnsubscribe(queryCacheKey, (_a = state.queries[queryCacheKey]) == null ? void 0 : _a.endpointName, mwApi, state.config); 6307 } 6308 if (api.util.resetApiState.match(action)) { 6309 for (var _j2 = 0, _k2 = Object.entries(currentRemovalTimeouts); _j2 < _k2.length; _j2++) { 6310 var _l = _k2[_j2], key = _l[0], timeout = _l[1]; 6311 if (timeout) 6312 clearTimeout(timeout); 6313 delete currentRemovalTimeouts[key]; 6314 } 6315 } 6316 if (context.hasRehydrationInfo(action)) { 6317 var state = mwApi.getState()[reducerPath]; 6318 var queries = context.extractRehydrationInfo(action).queries; 6319 for (var _m = 0, _o = Object.entries(queries); _m < _o.length; _m++) { 6320 var _p = _o[_m], queryCacheKey = _p[0], queryState = _p[1]; 6321 handleUnsubscribe(queryCacheKey, queryState == null ? void 0 : queryState.endpointName, mwApi, state.config); 6322 } 6323 } 6324 }; 6325 function handleUnsubscribe(queryCacheKey, endpointName, api2, config) { 6326 var _a; 6327 var endpointDefinition = context.endpointDefinitions[endpointName]; 6328 var keepUnusedDataFor = (_a = endpointDefinition == null ? void 0 : endpointDefinition.keepUnusedDataFor) != null ? _a : config.keepUnusedDataFor; 6329 if (keepUnusedDataFor === Infinity) { 6330 return; 6331 } 6332 var finalKeepUnusedDataFor = Math.max(0, Math.min(keepUnusedDataFor, THIRTY_TWO_BIT_MAX_TIMER_SECONDS)); 6333 if (!anySubscriptionsRemainingForKey(queryCacheKey)) { 6334 var currentTimeout = currentRemovalTimeouts[queryCacheKey]; 6335 if (currentTimeout) { 6336 clearTimeout(currentTimeout); 6337 } 6338 currentRemovalTimeouts[queryCacheKey] = setTimeout(function() { 6339 if (!anySubscriptionsRemainingForKey(queryCacheKey)) { 6340 api2.dispatch(removeQueryResult({ queryCacheKey })); 6341 } 6342 delete currentRemovalTimeouts[queryCacheKey]; 6343 }, finalKeepUnusedDataFor * 1e3); 6344 } 6345 } 6346 return handler; 6347}; 6348var buildInvalidationByTagsHandler = function(_j) { 6349 var reducerPath = _j.reducerPath, context = _j.context, endpointDefinitions = _j.context.endpointDefinitions, mutationThunk = _j.mutationThunk, api = _j.api, assertTagType = _j.assertTagType, refetchQuery = _j.refetchQuery; 6350 var removeQueryResult = api.internalActions.removeQueryResult; 6351 var isThunkActionWithTags = isAnyOf(isFulfilled(mutationThunk), isRejectedWithValue(mutationThunk)); 6352 var handler = function(action, mwApi) { 6353 if (isThunkActionWithTags(action)) { 6354 invalidateTags(calculateProvidedByThunk(action, "invalidatesTags", endpointDefinitions, assertTagType), mwApi); 6355 } 6356 if (api.util.invalidateTags.match(action)) { 6357 invalidateTags(calculateProvidedBy(action.payload, void 0, void 0, void 0, void 0, assertTagType), mwApi); 6358 } 6359 }; 6360 function invalidateTags(tags, mwApi) { 6361 var rootState = mwApi.getState(); 6362 var state = rootState[reducerPath]; 6363 var toInvalidate = api.util.selectInvalidatedBy(rootState, tags); 6364 context.batch(function() { 6365 var _a; 6366 var valuesArray = Array.from(toInvalidate.values()); 6367 for (var _j2 = 0, valuesArray_1 = valuesArray; _j2 < valuesArray_1.length; _j2++) { 6368 var queryCacheKey = valuesArray_1[_j2].queryCacheKey; 6369 var querySubState = state.queries[queryCacheKey]; 6370 var subscriptionSubState = (_a = state.subscriptions[queryCacheKey]) != null ? _a : {}; 6371 if (querySubState) { 6372 if (Object.keys(subscriptionSubState).length === 0) { 6373 mwApi.dispatch(removeQueryResult({ 6374 queryCacheKey 6375 })); 6376 } else if (querySubState.status !== QueryStatus.uninitialized) { 6377 mwApi.dispatch(refetchQuery(querySubState, queryCacheKey)); 6378 } 6379 } 6380 } 6381 }); 6382 } 6383 return handler; 6384}; 6385var buildPollingHandler = function(_j) { 6386 var reducerPath = _j.reducerPath, queryThunk = _j.queryThunk, api = _j.api, refetchQuery = _j.refetchQuery, internalState = _j.internalState; 6387 var currentPolls = {}; 6388 var handler = function(action, mwApi) { 6389 if (api.internalActions.updateSubscriptionOptions.match(action) || api.internalActions.unsubscribeQueryResult.match(action)) { 6390 updatePollingInterval(action.payload, mwApi); 6391 } 6392 if (queryThunk.pending.match(action) || queryThunk.rejected.match(action) && action.meta.condition) { 6393 updatePollingInterval(action.meta.arg, mwApi); 6394 } 6395 if (queryThunk.fulfilled.match(action) || queryThunk.rejected.match(action) && !action.meta.condition) { 6396 startNextPoll(action.meta.arg, mwApi); 6397 } 6398 if (api.util.resetApiState.match(action)) { 6399 clearPolls(); 6400 } 6401 }; 6402 function startNextPoll(_j2, api2) { 6403 var queryCacheKey = _j2.queryCacheKey; 6404 var state = api2.getState()[reducerPath]; 6405 var querySubState = state.queries[queryCacheKey]; 6406 var subscriptions = internalState.currentSubscriptions[queryCacheKey]; 6407 if (!querySubState || querySubState.status === QueryStatus.uninitialized) 6408 return; 6409 var lowestPollingInterval = findLowestPollingInterval(subscriptions); 6410 if (!Number.isFinite(lowestPollingInterval)) 6411 return; 6412 var currentPoll = currentPolls[queryCacheKey]; 6413 if (currentPoll == null ? void 0 : currentPoll.timeout) { 6414 clearTimeout(currentPoll.timeout); 6415 currentPoll.timeout = void 0; 6416 } 6417 var nextPollTimestamp = Date.now() + lowestPollingInterval; 6418 var currentInterval = currentPolls[queryCacheKey] = { 6419 nextPollTimestamp, 6420 pollingInterval: lowestPollingInterval, 6421 timeout: setTimeout(function() { 6422 currentInterval.timeout = void 0; 6423 api2.dispatch(refetchQuery(querySubState, queryCacheKey)); 6424 }, lowestPollingInterval) 6425 }; 6426 } 6427 function updatePollingInterval(_j2, api2) { 6428 var queryCacheKey = _j2.queryCacheKey; 6429 var state = api2.getState()[reducerPath]; 6430 var querySubState = state.queries[queryCacheKey]; 6431 var subscriptions = internalState.currentSubscriptions[queryCacheKey]; 6432 if (!querySubState || querySubState.status === QueryStatus.uninitialized) { 6433 return; 6434 } 6435 var lowestPollingInterval = findLowestPollingInterval(subscriptions); 6436 if (!Number.isFinite(lowestPollingInterval)) { 6437 cleanupPollForKey(queryCacheKey); 6438 return; 6439 } 6440 var currentPoll = currentPolls[queryCacheKey]; 6441 var nextPollTimestamp = Date.now() + lowestPollingInterval; 6442 if (!currentPoll || nextPollTimestamp < currentPoll.nextPollTimestamp) { 6443 startNextPoll({ queryCacheKey }, api2); 6444 } 6445 } 6446 function cleanupPollForKey(key) { 6447 var existingPoll = currentPolls[key]; 6448 if (existingPoll == null ? void 0 : existingPoll.timeout) { 6449 clearTimeout(existingPoll.timeout); 6450 } 6451 delete currentPolls[key]; 6452 } 6453 function clearPolls() { 6454 for (var _j2 = 0, _k = Object.keys(currentPolls); _j2 < _k.length; _j2++) { 6455 var key = _k[_j2]; 6456 cleanupPollForKey(key); 6457 } 6458 } 6459 function findLowestPollingInterval(subscribers) { 6460 if (subscribers === void 0) { 6461 subscribers = {}; 6462 } 6463 var lowestPollingInterval = Number.POSITIVE_INFINITY; 6464 for (var key in subscribers) { 6465 if (!!subscribers[key].pollingInterval) { 6466 lowestPollingInterval = Math.min(subscribers[key].pollingInterval, lowestPollingInterval); 6467 } 6468 } 6469 return lowestPollingInterval; 6470 } 6471 return handler; 6472}; 6473var buildWindowEventHandler = function(_j) { 6474 var reducerPath = _j.reducerPath, context = _j.context, api = _j.api, refetchQuery = _j.refetchQuery, internalState = _j.internalState; 6475 var removeQueryResult = api.internalActions.removeQueryResult; 6476 var handler = function(action, mwApi) { 6477 if (onFocus.match(action)) { 6478 refetchValidQueries(mwApi, "refetchOnFocus"); 6479 } 6480 if (onOnline.match(action)) { 6481 refetchValidQueries(mwApi, "refetchOnReconnect"); 6482 } 6483 }; 6484 function refetchValidQueries(api2, type) { 6485 var state = api2.getState()[reducerPath]; 6486 var queries = state.queries; 6487 var subscriptions = internalState.currentSubscriptions; 6488 context.batch(function() { 6489 for (var _j2 = 0, _k = Object.keys(subscriptions); _j2 < _k.length; _j2++) { 6490 var queryCacheKey = _k[_j2]; 6491 var querySubState = queries[queryCacheKey]; 6492 var subscriptionSubState = subscriptions[queryCacheKey]; 6493 if (!subscriptionSubState || !querySubState) 6494 continue; 6495 var shouldRefetch = Object.values(subscriptionSubState).some(function(sub) { 6496 return sub[type] === true; 6497 }) || Object.values(subscriptionSubState).every(function(sub) { 6498 return sub[type] === void 0; 6499 }) && state.config[type]; 6500 if (shouldRefetch) { 6501 if (Object.keys(subscriptionSubState).length === 0) { 6502 api2.dispatch(removeQueryResult({ 6503 queryCacheKey 6504 })); 6505 } else if (querySubState.status !== QueryStatus.uninitialized) { 6506 api2.dispatch(refetchQuery(querySubState, queryCacheKey)); 6507 } 6508 } 6509 } 6510 }); 6511 } 6512 return handler; 6513}; 6514var neverResolvedError = new Error("Promise never resolved before cacheEntryRemoved."); 6515var buildCacheLifecycleHandler = function(_j) { 6516 var api = _j.api, reducerPath = _j.reducerPath, context = _j.context, queryThunk = _j.queryThunk, mutationThunk = _j.mutationThunk, internalState = _j.internalState; 6517 var isQueryThunk = isAsyncThunkAction(queryThunk); 6518 var isMutationThunk = isAsyncThunkAction(mutationThunk); 6519 var isFulfilledThunk = isFulfilled(queryThunk, mutationThunk); 6520 var lifecycleMap = {}; 6521 var handler = function(action, mwApi, stateBefore) { 6522 var cacheKey = getCacheKey(action); 6523 if (queryThunk.pending.match(action)) { 6524 var oldState = stateBefore[reducerPath].queries[cacheKey]; 6525 var state = mwApi.getState()[reducerPath].queries[cacheKey]; 6526 if (!oldState && state) { 6527 handleNewKey(action.meta.arg.endpointName, action.meta.arg.originalArgs, cacheKey, mwApi, action.meta.requestId); 6528 } 6529 } else if (mutationThunk.pending.match(action)) { 6530 var state = mwApi.getState()[reducerPath].mutations[cacheKey]; 6531 if (state) { 6532 handleNewKey(action.meta.arg.endpointName, action.meta.arg.originalArgs, cacheKey, mwApi, action.meta.requestId); 6533 } 6534 } else if (isFulfilledThunk(action)) { 6535 var lifecycle = lifecycleMap[cacheKey]; 6536 if (lifecycle == null ? void 0 : lifecycle.valueResolved) { 6537 lifecycle.valueResolved({ 6538 data: action.payload, 6539 meta: action.meta.baseQueryMeta 6540 }); 6541 delete lifecycle.valueResolved; 6542 } 6543 } else if (api.internalActions.removeQueryResult.match(action) || api.internalActions.removeMutationResult.match(action)) { 6544 var lifecycle = lifecycleMap[cacheKey]; 6545 if (lifecycle) { 6546 delete lifecycleMap[cacheKey]; 6547 lifecycle.cacheEntryRemoved(); 6548 } 6549 } else if (api.util.resetApiState.match(action)) { 6550 for (var _j2 = 0, _k = Object.entries(lifecycleMap); _j2 < _k.length; _j2++) { 6551 var _l = _k[_j2], cacheKey2 = _l[0], lifecycle = _l[1]; 6552 delete lifecycleMap[cacheKey2]; 6553 lifecycle.cacheEntryRemoved(); 6554 } 6555 } 6556 }; 6557 function getCacheKey(action) { 6558 if (isQueryThunk(action)) 6559 return action.meta.arg.queryCacheKey; 6560 if (isMutationThunk(action)) 6561 return action.meta.requestId; 6562 if (api.internalActions.removeQueryResult.match(action)) 6563 return action.payload.queryCacheKey; 6564 if (api.internalActions.removeMutationResult.match(action)) 6565 return getMutationCacheKey(action.payload); 6566 return ""; 6567 } 6568 function handleNewKey(endpointName, originalArgs, queryCacheKey, mwApi, requestId) { 6569 var endpointDefinition = context.endpointDefinitions[endpointName]; 6570 var onCacheEntryAdded = endpointDefinition == null ? void 0 : endpointDefinition.onCacheEntryAdded; 6571 if (!onCacheEntryAdded) 6572 return; 6573 var lifecycle = {}; 6574 var cacheEntryRemoved = new Promise(function(resolve) { 6575 lifecycle.cacheEntryRemoved = resolve; 6576 }); 6577 var cacheDataLoaded = Promise.race([ 6578 new Promise(function(resolve) { 6579 lifecycle.valueResolved = resolve; 6580 }), 6581 cacheEntryRemoved.then(function() { 6582 throw neverResolvedError; 6583 }) 6584 ]); 6585 cacheDataLoaded.catch(function() { 6586 }); 6587 lifecycleMap[queryCacheKey] = lifecycle; 6588 var selector = api.endpoints[endpointName].select(endpointDefinition.type === DefinitionType.query ? originalArgs : queryCacheKey); 6589 var extra = mwApi.dispatch(function(_, __, extra2) { 6590 return extra2; 6591 }); 6592 var lifecycleApi = __spreadProps(__spreadValues({}, mwApi), { 6593 getCacheEntry: function() { 6594 return selector(mwApi.getState()); 6595 }, 6596 requestId, 6597 extra, 6598 updateCachedData: endpointDefinition.type === DefinitionType.query ? function(updateRecipe) { 6599 return mwApi.dispatch(api.util.updateQueryData(endpointName, originalArgs, updateRecipe)); 6600 } : void 0, 6601 cacheDataLoaded, 6602 cacheEntryRemoved 6603 }); 6604 var runningHandler = onCacheEntryAdded(originalArgs, lifecycleApi); 6605 Promise.resolve(runningHandler).catch(function(e2) { 6606 if (e2 === neverResolvedError) 6607 return; 6608 throw e2; 6609 }); 6610 } 6611 return handler; 6612}; 6613var buildQueryLifecycleHandler = function(_j) { 6614 var api = _j.api, context = _j.context, queryThunk = _j.queryThunk, mutationThunk = _j.mutationThunk; 6615 var isPendingThunk = isPending(queryThunk, mutationThunk); 6616 var isRejectedThunk = isRejected(queryThunk, mutationThunk); 6617 var isFullfilledThunk = isFulfilled(queryThunk, mutationThunk); 6618 var lifecycleMap = {}; 6619 var handler = function(action, mwApi) { 6620 var _a, _b, _c; 6621 if (isPendingThunk(action)) { 6622 var _j2 = action.meta, requestId = _j2.requestId, _k = _j2.arg, endpointName_1 = _k.endpointName, originalArgs_1 = _k.originalArgs; 6623 var endpointDefinition = context.endpointDefinitions[endpointName_1]; 6624 var onQueryStarted = endpointDefinition == null ? void 0 : endpointDefinition.onQueryStarted; 6625 if (onQueryStarted) { 6626 var lifecycle_1 = {}; 6627 var queryFulfilled = new Promise(function(resolve, reject) { 6628 lifecycle_1.resolve = resolve; 6629 lifecycle_1.reject = reject; 6630 }); 6631 queryFulfilled.catch(function() { 6632 }); 6633 lifecycleMap[requestId] = lifecycle_1; 6634 var selector_1 = api.endpoints[endpointName_1].select(endpointDefinition.type === DefinitionType.query ? originalArgs_1 : requestId); 6635 var extra = mwApi.dispatch(function(_, __, extra2) { 6636 return extra2; 6637 }); 6638 var lifecycleApi = __spreadProps(__spreadValues({}, mwApi), { 6639 getCacheEntry: function() { 6640 return selector_1(mwApi.getState()); 6641 }, 6642 requestId, 6643 extra, 6644 updateCachedData: endpointDefinition.type === DefinitionType.query ? function(updateRecipe) { 6645 return mwApi.dispatch(api.util.updateQueryData(endpointName_1, originalArgs_1, updateRecipe)); 6646 } : void 0, 6647 queryFulfilled 6648 }); 6649 onQueryStarted(originalArgs_1, lifecycleApi); 6650 } 6651 } else if (isFullfilledThunk(action)) { 6652 var _l = action.meta, requestId = _l.requestId, baseQueryMeta = _l.baseQueryMeta; 6653 (_a = lifecycleMap[requestId]) == null ? void 0 : _a.resolve({ 6654 data: action.payload, 6655 meta: baseQueryMeta 6656 }); 6657 delete lifecycleMap[requestId]; 6658 } else if (isRejectedThunk(action)) { 6659 var _m = action.meta, requestId = _m.requestId, rejectedWithValue = _m.rejectedWithValue, baseQueryMeta = _m.baseQueryMeta; 6660 (_c = lifecycleMap[requestId]) == null ? void 0 : _c.reject({ 6661 error: (_b = action.payload) != null ? _b : action.error, 6662 isUnhandledError: !rejectedWithValue, 6663 meta: baseQueryMeta 6664 }); 6665 delete lifecycleMap[requestId]; 6666 } 6667 }; 6668 return handler; 6669}; 6670var buildDevCheckHandler = function(_j) { 6671 var api = _j.api, apiUid = _j.context.apiUid, reducerPath = _j.reducerPath; 6672 return function(action, mwApi) { 6673 var _a, _b; 6674 if (api.util.resetApiState.match(action)) { 6675 mwApi.dispatch(api.internalActions.middlewareRegistered(apiUid)); 6676 } 6677 if (typeof process !== "undefined" && false) { 6678 if (api.internalActions.middlewareRegistered.match(action) && action.payload === apiUid && ((_b = (_a = mwApi.getState()[reducerPath]) == null ? void 0 : _a.config) == null ? void 0 : _b.middlewareRegistered) === "conflict") { 6679 console.warn('There is a mismatch between slice and middleware for the reducerPath "' + reducerPath + '".\nYou can only have one api per reducer path, this will lead to crashes in various situations!' + (reducerPath === "api" ? "\nIf you have multiple apis, you *have* to specify the reducerPath option when using createApi!" : "")); 6680 } 6681 } 6682 }; 6683}; 6684var promise; 6685var queueMicrotaskShim = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : globalThis) : function(cb) { 6686 return (promise || (promise = Promise.resolve())).then(cb).catch(function(err) { 6687 return setTimeout(function() { 6688 throw err; 6689 }, 0); 6690 }); 6691}; 6692var buildBatchedActionsHandler = function(_j) { 6693 var api = _j.api, queryThunk = _j.queryThunk, internalState = _j.internalState; 6694 var subscriptionsPrefix = api.reducerPath + "/subscriptions"; 6695 var previousSubscriptions = null; 6696 var dispatchQueued = false; 6697 var _k = api.internalActions, updateSubscriptionOptions = _k.updateSubscriptionOptions, unsubscribeQueryResult = _k.unsubscribeQueryResult; 6698 var actuallyMutateSubscriptions = function(mutableState, action) { 6699 var _a, _b, _c, _d, _e, _f, _g, _h, _i; 6700 if (updateSubscriptionOptions.match(action)) { 6701 var _j2 = action.payload, queryCacheKey = _j2.queryCacheKey, requestId = _j2.requestId, options = _j2.options; 6702 if ((_a = mutableState == null ? void 0 : mutableState[queryCacheKey]) == null ? void 0 : _a[requestId]) { 6703 mutableState[queryCacheKey][requestId] = options; 6704 } 6705 return true; 6706 } 6707 if (unsubscribeQueryResult.match(action)) { 6708 var _k2 = action.payload, queryCacheKey = _k2.queryCacheKey, requestId = _k2.requestId; 6709 if (mutableState[queryCacheKey]) { 6710 delete mutableState[queryCacheKey][requestId]; 6711 } 6712 return true; 6713 } 6714 if (api.internalActions.removeQueryResult.match(action)) { 6715 delete mutableState[action.payload.queryCacheKey]; 6716 return true; 6717 } 6718 if (queryThunk.pending.match(action)) { 6719 var _l = action.meta, arg = _l.arg, requestId = _l.requestId; 6720 if (arg.subscribe) { 6721 var substate = (_c = mutableState[_b = arg.queryCacheKey]) != null ? _c : mutableState[_b] = {}; 6722 substate[requestId] = (_e = (_d = arg.subscriptionOptions) != null ? _d : substate[requestId]) != null ? _e : {}; 6723 return true; 6724 } 6725 } 6726 if (queryThunk.rejected.match(action)) { 6727 var _m = action.meta, condition = _m.condition, arg = _m.arg, requestId = _m.requestId; 6728 if (condition && arg.subscribe) { 6729 var substate = (_g = mutableState[_f = arg.queryCacheKey]) != null ? _g : mutableState[_f] = {}; 6730 substate[requestId] = (_i = (_h = arg.subscriptionOptions) != null ? _h : substate[requestId]) != null ? _i : {}; 6731 return true; 6732 } 6733 } 6734 return false; 6735 }; 6736 return function(action, mwApi) { 6737 var _a, _b; 6738 if (!previousSubscriptions) { 6739 previousSubscriptions = JSON.parse(JSON.stringify(internalState.currentSubscriptions)); 6740 } 6741 if (api.util.resetApiState.match(action)) { 6742 previousSubscriptions = internalState.currentSubscriptions = {}; 6743 return [true, false]; 6744 } 6745 if (api.internalActions.internal_probeSubscription.match(action)) { 6746 var _j2 = action.payload, queryCacheKey = _j2.queryCacheKey, requestId = _j2.requestId; 6747 var hasSubscription = !!((_a = internalState.currentSubscriptions[queryCacheKey]) == null ? void 0 : _a[requestId]); 6748 return [false, hasSubscription]; 6749 } 6750 var didMutate = actuallyMutateSubscriptions(internalState.currentSubscriptions, action); 6751 if (didMutate) { 6752 if (!dispatchQueued) { 6753 queueMicrotaskShim(function() { 6754 var newSubscriptions = JSON.parse(JSON.stringify(internalState.currentSubscriptions)); 6755 var _j3 = cn(previousSubscriptions, function() { 6756 return newSubscriptions; 6757 }), patches = _j3[1]; 6758 mwApi.next(api.internalActions.subscriptionsUpdated(patches)); 6759 previousSubscriptions = newSubscriptions; 6760 dispatchQueued = false; 6761 }); 6762 dispatchQueued = true; 6763 } 6764 var isSubscriptionSliceAction = !!((_b = action.type) == null ? void 0 : _b.startsWith(subscriptionsPrefix)); 6765 var isAdditionalSubscriptionAction = queryThunk.rejected.match(action) && action.meta.condition && !!action.meta.arg.subscribe; 6766 var actionShouldContinue = !isSubscriptionSliceAction && !isAdditionalSubscriptionAction; 6767 return [actionShouldContinue, false]; 6768 } 6769 return [true, false]; 6770 }; 6771}; 6772function buildMiddleware(input) { 6773 var reducerPath = input.reducerPath, queryThunk = input.queryThunk, api = input.api, context = input.context; 6774 var apiUid = context.apiUid; 6775 var actions = { 6776 invalidateTags: createAction(reducerPath + "/invalidateTags") 6777 }; 6778 var isThisApiSliceAction = function(action) { 6779 return !!action && typeof action.type === "string" && action.type.startsWith(reducerPath + "/"); 6780 }; 6781 var handlerBuilders = [ 6782 buildDevCheckHandler, 6783 buildCacheCollectionHandler, 6784 buildInvalidationByTagsHandler, 6785 buildPollingHandler, 6786 buildCacheLifecycleHandler, 6787 buildQueryLifecycleHandler 6788 ]; 6789 var middleware = function(mwApi) { 6790 var initialized2 = false; 6791 var internalState = { 6792 currentSubscriptions: {} 6793 }; 6794 var builderArgs = __spreadProps(__spreadValues({}, input), { 6795 internalState, 6796 refetchQuery 6797 }); 6798 var handlers = handlerBuilders.map(function(build) { 6799 return build(builderArgs); 6800 }); 6801 var batchedActionsHandler = buildBatchedActionsHandler(builderArgs); 6802 var windowEventsHandler = buildWindowEventHandler(builderArgs); 6803 return function(next) { 6804 return function(action) { 6805 if (!initialized2) { 6806 initialized2 = true; 6807 mwApi.dispatch(api.internalActions.middlewareRegistered(apiUid)); 6808 } 6809 var mwApiWithNext = __spreadProps(__spreadValues({}, mwApi), { next }); 6810 var stateBefore = mwApi.getState(); 6811 var _j = batchedActionsHandler(action, mwApiWithNext, stateBefore), actionShouldContinue = _j[0], hasSubscription = _j[1]; 6812 var res; 6813 if (actionShouldContinue) { 6814 res = next(action); 6815 } else { 6816 res = hasSubscription; 6817 } 6818 if (!!mwApi.getState()[reducerPath]) { 6819 windowEventsHandler(action, mwApiWithNext, stateBefore); 6820 if (isThisApiSliceAction(action) || context.hasRehydrationInfo(action)) { 6821 for (var _k = 0, handlers_1 = handlers; _k < handlers_1.length; _k++) { 6822 var handler = handlers_1[_k]; 6823 handler(action, mwApiWithNext, stateBefore); 6824 } 6825 } 6826 } 6827 return res; 6828 }; 6829 }; 6830 }; 6831 return { middleware, actions }; 6832 function refetchQuery(querySubState, queryCacheKey, override) { 6833 if (override === void 0) { 6834 override = {}; 6835 } 6836 return queryThunk(__spreadValues({ 6837 type: "query", 6838 endpointName: querySubState.endpointName, 6839 originalArgs: querySubState.originalArgs, 6840 subscribe: false, 6841 forceRefetch: true, 6842 queryCacheKey 6843 }, override)); 6844 } 6845} 6846function assertCast(v) { 6847} 6848function safeAssign(target) { 6849 var args = []; 6850 for (var _j = 1; _j < arguments.length; _j++) { 6851 args[_j - 1] = arguments[_j]; 6852 } 6853 Object.assign.apply(Object, __spreadArray([target], args)); 6854} 6855var coreModuleName = Symbol(); 6856var coreModule = function() { 6857 return { 6858 name: coreModuleName, 6859 init: function(api, _j, context) { 6860 var baseQuery = _j.baseQuery, tagTypes = _j.tagTypes, reducerPath = _j.reducerPath, serializeQueryArgs = _j.serializeQueryArgs, keepUnusedDataFor = _j.keepUnusedDataFor, refetchOnMountOrArgChange = _j.refetchOnMountOrArgChange, refetchOnFocus = _j.refetchOnFocus, refetchOnReconnect = _j.refetchOnReconnect; 6861 T(); 6862 assertCast(serializeQueryArgs); 6863 var assertTagType = function(tag) { 6864 if (typeof process !== "undefined" && false) { 6865 if (!tagTypes.includes(tag.type)) { 6866 console.error("Tag type '" + tag.type + "' was used, but not specified in `tagTypes`!"); 6867 } 6868 } 6869 return tag; 6870 }; 6871 Object.assign(api, { 6872 reducerPath, 6873 endpoints: {}, 6874 internalActions: { 6875 onOnline, 6876 onOffline, 6877 onFocus, 6878 onFocusLost 6879 }, 6880 util: {} 6881 }); 6882 var _k = buildThunks({ 6883 baseQuery, 6884 reducerPath, 6885 context, 6886 api, 6887 serializeQueryArgs, 6888 assertTagType 6889 }), queryThunk = _k.queryThunk, mutationThunk = _k.mutationThunk, patchQueryData = _k.patchQueryData, updateQueryData = _k.updateQueryData, upsertQueryData = _k.upsertQueryData, prefetch = _k.prefetch, buildMatchThunkActions = _k.buildMatchThunkActions; 6890 var _l = buildSlice({ 6891 context, 6892 queryThunk, 6893 mutationThunk, 6894 reducerPath, 6895 assertTagType, 6896 config: { 6897 refetchOnFocus, 6898 refetchOnReconnect, 6899 refetchOnMountOrArgChange, 6900 keepUnusedDataFor, 6901 reducerPath 6902 } 6903 }), reducer2 = _l.reducer, sliceActions = _l.actions; 6904 safeAssign(api.util, { 6905 patchQueryData, 6906 updateQueryData, 6907 upsertQueryData, 6908 prefetch, 6909 resetApiState: sliceActions.resetApiState 6910 }); 6911 safeAssign(api.internalActions, sliceActions); 6912 var _m = buildMiddleware({ 6913 reducerPath, 6914 context, 6915 queryThunk, 6916 mutationThunk, 6917 api, 6918 assertTagType 6919 }), middleware = _m.middleware, middlewareActions = _m.actions; 6920 safeAssign(api.util, middlewareActions); 6921 safeAssign(api, { reducer: reducer2, middleware }); 6922 var _o = buildSelectors({ 6923 serializeQueryArgs, 6924 reducerPath 6925 }), buildQuerySelector = _o.buildQuerySelector, buildMutationSelector = _o.buildMutationSelector, selectInvalidatedBy = _o.selectInvalidatedBy; 6926 safeAssign(api.util, { selectInvalidatedBy }); 6927 var _p = buildInitiate({ 6928 queryThunk, 6929 mutationThunk, 6930 api, 6931 serializeQueryArgs, 6932 context 6933 }), buildInitiateQuery = _p.buildInitiateQuery, buildInitiateMutation = _p.buildInitiateMutation, getRunningMutationThunk = _p.getRunningMutationThunk, getRunningMutationsThunk = _p.getRunningMutationsThunk, getRunningQueriesThunk = _p.getRunningQueriesThunk, getRunningQueryThunk = _p.getRunningQueryThunk, getRunningOperationPromises = _p.getRunningOperationPromises, removalWarning = _p.removalWarning; 6934 safeAssign(api.util, { 6935 getRunningOperationPromises, 6936 getRunningOperationPromise: removalWarning, 6937 getRunningMutationThunk, 6938 getRunningMutationsThunk, 6939 getRunningQueryThunk, 6940 getRunningQueriesThunk 6941 }); 6942 return { 6943 name: coreModuleName, 6944 injectEndpoint: function(endpointName, definition) { 6945 var _a, _b; 6946 var anyApi = api; 6947 (_b = (_a = anyApi.endpoints)[endpointName]) != null ? _b : _a[endpointName] = {}; 6948 if (isQueryDefinition(definition)) { 6949 safeAssign(anyApi.endpoints[endpointName], { 6950 name: endpointName, 6951 select: buildQuerySelector(endpointName, definition), 6952 initiate: buildInitiateQuery(endpointName, definition) 6953 }, buildMatchThunkActions(queryThunk, endpointName)); 6954 } else if (isMutationDefinition(definition)) { 6955 safeAssign(anyApi.endpoints[endpointName], { 6956 name: endpointName, 6957 select: buildMutationSelector(), 6958 initiate: buildInitiateMutation(endpointName) 6959 }, buildMatchThunkActions(mutationThunk, endpointName)); 6960 } 6961 } 6962 }; 6963 } 6964 }; 6965}; 6966var createApi = buildCreateApi(coreModule()); 6967
vendor: 20,564 bytes, lines 6968-7427
6968// node_modules/.pnpm/@[email protected][email protected]_@[email protected]_@[email protected]__@types_2qhkbaauoenxtzzzznrtho4mxm/node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js 6969var import_react = __toESM(require_react()); 6970var import_react2 = __toESM(require_react()); 6971var import_react3 = __toESM(require_react()); 6972var import_react4 = __toESM(require_react()); 6973var import_react5 = __toESM(require_react()); 6974var __spreadArray2 = function(to, from) { 6975 for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) 6976 to[j] = from[i]; 6977 return to; 6978}; 6979var __defProp2 = Object.defineProperty; 6980var __defProps2 = Object.defineProperties; 6981var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors; 6982var __getOwnPropSymbols2 = Object.getOwnPropertySymbols; 6983var __hasOwnProp2 = Object.prototype.hasOwnProperty; 6984var __propIsEnum2 = Object.prototype.propertyIsEnumerable; 6985var __defNormalProp2 = function(obj, key, value) { 6986 return key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; 6987}; 6988var __spreadValues2 = function(a, b) { 6989 for (var prop in b || (b = {})) 6990 if (__hasOwnProp2.call(b, prop)) 6991 __defNormalProp2(a, prop, b[prop]); 6992 if (__getOwnPropSymbols2) 6993 for (var _i = 0, _c = __getOwnPropSymbols2(b); _i < _c.length; _i++) { 6994 var prop = _c[_i]; 6995 if (__propIsEnum2.call(b, prop)) 6996 __defNormalProp2(a, prop, b[prop]); 6997 } 6998 return a; 6999}; 7000var __spreadProps2 = function(a, b) { 7001 return __defProps2(a, __getOwnPropDescs2(b)); 7002}; 7003function useStableQueryArgs(queryArgs, serialize, endpointDefinition, endpointName) { 7004 var incoming = (0, import_react2.useMemo)(function() { 7005 return { 7006 queryArgs, 7007 serialized: typeof queryArgs == "object" ? serialize({ queryArgs, endpointDefinition, endpointName }) : queryArgs 7008 }; 7009 }, [queryArgs, serialize, endpointDefinition, endpointName]); 7010 var cache22 = (0, import_react2.useRef)(incoming); 7011 (0, import_react2.useEffect)(function() { 7012 if (cache22.current.serialized !== incoming.serialized) { 7013 cache22.current = incoming; 7014 } 7015 }, [incoming]); 7016 return cache22.current.serialized === incoming.serialized ? cache22.current.queryArgs : queryArgs; 7017} 7018var UNINITIALIZED_VALUE = Symbol(); 7019function useShallowStableValue(value) { 7020 var cache22 = (0, import_react3.useRef)(value); 7021 (0, import_react3.useEffect)(function() { 7022 if (!shallowEqual(cache22.current, value)) { 7023 cache22.current = value; 7024 } 7025 }, [value]); 7026 return shallowEqual(cache22.current, value) ? cache22.current : value; 7027} 7028var cache2 = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0; 7029var defaultSerializeQueryArgs2 = function(_c) { 7030 var endpointName = _c.endpointName, queryArgs = _c.queryArgs; 7031 var serialized = ""; 7032 var cached = cache2 == null ? void 0 : cache2.get(queryArgs); 7033 if (typeof cached === "string") { 7034 serialized = cached; 7035 } else { 7036 var stringified = JSON.stringify(queryArgs, function(key, value) { 7037 return isPlainObject(value) ? Object.keys(value).sort().reduce(function(acc, key2) { 7038 acc[key2] = value[key2]; 7039 return acc; 7040 }, {}) : value; 7041 }); 7042 if (isPlainObject(queryArgs)) { 7043 cache2 == null ? void 0 : cache2.set(queryArgs, stringified); 7044 } 7045 serialized = stringified; 7046 } 7047 return endpointName + "(" + serialized + ")"; 7048}; 7049var useIsomorphicLayoutEffect = typeof window !== "undefined" && !!window.document && !!window.document.createElement ? import_react.useLayoutEffect : import_react.useEffect; 7050var defaultMutationStateSelector = function(x) { 7051 return x; 7052}; 7053var noPendingQueryStateSelector = function(selected) { 7054 if (selected.isUninitialized) { 7055 return __spreadProps2(__spreadValues2({}, selected), { 7056 isUninitialized: false, 7057 isFetching: true, 7058 isLoading: selected.data !== void 0 ? false : true, 7059 status: QueryStatus.pending 7060 }); 7061 } 7062 return selected; 7063}; 7064function buildHooks(_c) { 7065 var api = _c.api, _d = _c.moduleOptions, batch = _d.batch, useDispatch2 = _d.useDispatch, useSelector2 = _d.useSelector, useStore2 = _d.useStore, unstable__sideEffectsInRender = _d.unstable__sideEffectsInRender, serializeQueryArgs = _c.serializeQueryArgs, context = _c.context; 7066 var usePossiblyImmediateEffect = unstable__sideEffectsInRender ? function(cb) { 7067 return cb(); 7068 } : import_react.useEffect; 7069 return { buildQueryHooks, buildMutationHook, usePrefetch }; 7070 function queryStatePreSelector(currentState, lastResult, queryArgs) { 7071 if ((lastResult == null ? void 0 : lastResult.endpointName) && currentState.isUninitialized) { 7072 var endpointName = lastResult.endpointName; 7073 var endpointDefinition = context.endpointDefinitions[endpointName]; 7074 if (serializeQueryArgs({ 7075 queryArgs: lastResult.originalArgs, 7076 endpointDefinition, 7077 endpointName 7078 }) === serializeQueryArgs({ 7079 queryArgs, 7080 endpointDefinition, 7081 endpointName 7082 })) 7083 lastResult = void 0; 7084 } 7085 var data = currentState.isSuccess ? currentState.data : lastResult == null ? void 0 : lastResult.data; 7086 if (data === void 0) 7087 data = currentState.data; 7088 var hasData = data !== void 0; 7089 var isFetching = currentState.isLoading; 7090 var isLoading = !hasData && isFetching; 7091 var isSuccess = currentState.isSuccess || isFetching && hasData; 7092 return __spreadProps2(__spreadValues2({}, currentState), { 7093 data, 7094 currentData: currentState.data, 7095 isFetching, 7096 isLoading, 7097 isSuccess 7098 }); 7099 } 7100 function usePrefetch(endpointName, defaultOptions) { 7101 var dispatch = useDispatch2(); 7102 var stableDefaultOptions = useShallowStableValue(defaultOptions); 7103 return (0, import_react.useCallback)(function(arg, options) { 7104 return dispatch(api.util.prefetch(endpointName, arg, __spreadValues2(__spreadValues2({}, stableDefaultOptions), options))); 7105 }, [endpointName, dispatch, stableDefaultOptions]); 7106 } 7107 function buildQueryHooks(name) { 7108 var useQuerySubscription = function(arg, _c2) { 7109 var _d2 = _c2 === void 0 ? {} : _c2, refetchOnReconnect = _d2.refetchOnReconnect, refetchOnFocus = _d2.refetchOnFocus, refetchOnMountOrArgChange = _d2.refetchOnMountOrArgChange, _e = _d2.skip, skip = _e === void 0 ? false : _e, _f = _d2.pollingInterval, pollingInterval = _f === void 0 ? 0 : _f; 7110 var initiate = api.endpoints[name].initiate; 7111 var dispatch = useDispatch2(); 7112 var stableArg = useStableQueryArgs(skip ? skipToken : arg, defaultSerializeQueryArgs2, context.endpointDefinitions[name], name); 7113 var stableSubscriptionOptions = useShallowStableValue({ 7114 refetchOnReconnect, 7115 refetchOnFocus, 7116 pollingInterval 7117 }); 7118 var lastRenderHadSubscription = (0, import_react.useRef)(false); 7119 var promiseRef = (0, import_react.useRef)(); 7120 var _g = promiseRef.current || {}, queryCacheKey = _g.queryCacheKey, requestId = _g.requestId; 7121 var currentRenderHasSubscription = false; 7122 if (queryCacheKey && requestId) { 7123 var returnedValue = dispatch(api.internalActions.internal_probeSubscription({ 7124 queryCacheKey, 7125 requestId 7126 })); 7127 if (false) { 7128 if (typeof returnedValue !== "boolean") { 7129 throw new Error('Warning: Middleware for RTK-Query API at reducerPath "' + api.reducerPath + '" has not been added to the store.\n You must add the middleware for RTK-Query to function correctly!'); 7130 } 7131 } 7132 currentRenderHasSubscription = !!returnedValue; 7133 } 7134 var subscriptionRemoved = !currentRenderHasSubscription && lastRenderHadSubscription.current; 7135 usePossiblyImmediateEffect(function() { 7136 lastRenderHadSubscription.current = currentRenderHasSubscription; 7137 }); 7138 usePossiblyImmediateEffect(function() { 7139 if (subscriptionRemoved) { 7140 promiseRef.current = void 0; 7141 } 7142 }, [subscriptionRemoved]); 7143 usePossiblyImmediateEffect(function() { 7144 var _a; 7145 var lastPromise = promiseRef.current; 7146 if (typeof process !== "undefined" && false) { 7147 console.log(subscriptionRemoved); 7148 } 7149 if (stableArg === skipToken) { 7150 lastPromise == null ? void 0 : lastPromise.unsubscribe(); 7151 promiseRef.current = void 0; 7152 return; 7153 } 7154 var lastSubscriptionOptions = (_a = promiseRef.current) == null ? void 0 : _a.subscriptionOptions; 7155 if (!lastPromise || lastPromise.arg !== stableArg) { 7156 lastPromise == null ? void 0 : lastPromise.unsubscribe(); 7157 var promise2 = dispatch(initiate(stableArg, { 7158 subscriptionOptions: stableSubscriptionOptions, 7159 forceRefetch: refetchOnMountOrArgChange 7160 })); 7161 promiseRef.current = promise2; 7162 } else if (stableSubscriptionOptions !== lastSubscriptionOptions) { 7163 lastPromise.updateSubscriptionOptions(stableSubscriptionOptions); 7164 } 7165 }, [ 7166 dispatch, 7167 initiate, 7168 refetchOnMountOrArgChange, 7169 stableArg, 7170 stableSubscriptionOptions, 7171 subscriptionRemoved 7172 ]); 7173 (0, import_react.useEffect)(function() { 7174 return function() { 7175 var _a; 7176 (_a = promiseRef.current) == null ? void 0 : _a.unsubscribe(); 7177 promiseRef.current = void 0; 7178 }; 7179 }, []); 7180 return (0, import_react.useMemo)(function() { 7181 return { 7182 refetch: function() { 7183 var _a; 7184 if (!promiseRef.current) 7185 throw new Error("Cannot refetch a query that has not been started yet."); 7186 return (_a = promiseRef.current) == null ? void 0 : _a.refetch(); 7187 } 7188 }; 7189 }, []); 7190 }; 7191 var useLazyQuerySubscription = function(_c2) { 7192 var _d2 = _c2 === void 0 ? {} : _c2, refetchOnReconnect = _d2.refetchOnReconnect, refetchOnFocus = _d2.refetchOnFocus, _e = _d2.pollingInterval, pollingInterval = _e === void 0 ? 0 : _e; 7193 var initiate = api.endpoints[name].initiate; 7194 var dispatch = useDispatch2(); 7195 var _f = (0, import_react.useState)(UNINITIALIZED_VALUE), arg = _f[0], setArg = _f[1]; 7196 var promiseRef = (0, import_react.useRef)(); 7197 var stableSubscriptionOptions = useShallowStableValue({ 7198 refetchOnReconnect, 7199 refetchOnFocus, 7200 pollingInterval 7201 }); 7202 usePossiblyImmediateEffect(function() { 7203 var _a, _b; 7204 var lastSubscriptionOptions = (_a = promiseRef.current) == null ? void 0 : _a.subscriptionOptions; 7205 if (stableSubscriptionOptions !== lastSubscriptionOptions) { 7206 (_b = promiseRef.current) == null ? void 0 : _b.updateSubscriptionOptions(stableSubscriptionOptions); 7207 } 7208 }, [stableSubscriptionOptions]); 7209 var subscriptionOptionsRef = (0, import_react.useRef)(stableSubscriptionOptions); 7210 usePossiblyImmediateEffect(function() { 7211 subscriptionOptionsRef.current = stableSubscriptionOptions; 7212 }, [stableSubscriptionOptions]); 7213 var trigger = (0, import_react.useCallback)(function(arg2, preferCacheValue) { 7214 if (preferCacheValue === void 0) { 7215 preferCacheValue = false; 7216 } 7217 var promise2; 7218 batch(function() { 7219 var _a; 7220 (_a = promiseRef.current) == null ? void 0 : _a.unsubscribe(); 7221 promiseRef.current = promise2 = dispatch(initiate(arg2, { 7222 subscriptionOptions: subscriptionOptionsRef.current, 7223 forceRefetch: !preferCacheValue 7224 })); 7225 setArg(arg2); 7226 }); 7227 return promise2; 7228 }, [dispatch, initiate]); 7229 (0, import_react.useEffect)(function() { 7230 return function() { 7231 var _a; 7232 (_a = promiseRef == null ? void 0 : promiseRef.current) == null ? void 0 : _a.unsubscribe(); 7233 }; 7234 }, []); 7235 (0, import_react.useEffect)(function() { 7236 if (arg !== UNINITIALIZED_VALUE && !promiseRef.current) { 7237 trigger(arg, true); 7238 } 7239 }, [arg, trigger]); 7240 return (0, import_react.useMemo)(function() { 7241 return [trigger, arg]; 7242 }, [trigger, arg]); 7243 }; 7244 var useQueryState = function(arg, _c2) { 7245 var _d2 = _c2 === void 0 ? {} : _c2, _e = _d2.skip, skip = _e === void 0 ? false : _e, selectFromResult = _d2.selectFromResult; 7246 var select = api.endpoints[name].select; 7247 var stableArg = useStableQueryArgs(skip ? skipToken : arg, serializeQueryArgs, context.endpointDefinitions[name], name); 7248 var lastValue = (0, import_react.useRef)(); 7249 var selectDefaultResult = (0, import_react.useMemo)(function() { 7250 return createSelector([ 7251 select(stableArg), 7252 function(_, lastResult) { 7253 return lastResult; 7254 }, 7255 function(_) { 7256 return stableArg; 7257 } 7258 ], queryStatePreSelector); 7259 }, [select, stableArg]); 7260 var querySelector = (0, import_react.useMemo)(function() { 7261 return selectFromResult ? createSelector([selectDefaultResult], selectFromResult) : selectDefaultResult; 7262 }, [selectDefaultResult, selectFromResult]); 7263 var currentState = useSelector2(function(state) { 7264 return querySelector(state, lastValue.current); 7265 }, shallowEqual); 7266 var store = useStore2(); 7267 var newLastValue = selectDefaultResult(store.getState(), lastValue.current); 7268 useIsomorphicLayoutEffect(function() { 7269 lastValue.current = newLastValue; 7270 }, [newLastValue]); 7271 return currentState; 7272 }; 7273 return { 7274 useQueryState, 7275 useQuerySubscription, 7276 useLazyQuerySubscription, 7277 useLazyQuery: function(options) { 7278 var _c2 = useLazyQuerySubscription(options), trigger = _c2[0], arg = _c2[1]; 7279 var queryStateResults = useQueryState(arg, __spreadProps2(__spreadValues2({}, options), { 7280 skip: arg === UNINITIALIZED_VALUE 7281 })); 7282 var info = (0, import_react.useMemo)(function() { 7283 return { lastArg: arg }; 7284 }, [arg]); 7285 return (0, import_react.useMemo)(function() { 7286 return [trigger, queryStateResults, info]; 7287 }, [trigger, queryStateResults, info]); 7288 }, 7289 useQuery: function(arg, options) { 7290 var querySubscriptionResults = useQuerySubscription(arg, options); 7291 var queryStateResults = useQueryState(arg, __spreadValues2({ 7292 selectFromResult: arg === skipToken || (options == null ? void 0 : options.skip) ? void 0 : noPendingQueryStateSelector 7293 }, options)); 7294 var data = queryStateResults.data, status = queryStateResults.status, isLoading = queryStateResults.isLoading, isSuccess = queryStateResults.isSuccess, isError = queryStateResults.isError, error = queryStateResults.error; 7295 (0, import_react.useDebugValue)({ data, status, isLoading, isSuccess, isError, error }); 7296 return (0, import_react.useMemo)(function() { 7297 return __spreadValues2(__spreadValues2({}, queryStateResults), querySubscriptionResults); 7298 }, [queryStateResults, querySubscriptionResults]); 7299 } 7300 }; 7301 } 7302 function buildMutationHook(name) { 7303 return function(_c2) { 7304 var _d2 = _c2 === void 0 ? {} : _c2, _e = _d2.selectFromResult, selectFromResult = _e === void 0 ? defaultMutationStateSelector : _e, fixedCacheKey = _d2.fixedCacheKey; 7305 var _f = api.endpoints[name], select = _f.select, initiate = _f.initiate; 7306 var dispatch = useDispatch2(); 7307 var _g = (0, import_react.useState)(), promise2 = _g[0], setPromise = _g[1]; 7308 (0, import_react.useEffect)(function() { 7309 return function() { 7310 if (!(promise2 == null ? void 0 : promise2.arg.fixedCacheKey)) { 7311 promise2 == null ? void 0 : promise2.reset(); 7312 } 7313 }; 7314 }, [promise2]); 7315 var triggerMutation = (0, import_react.useCallback)(function(arg) { 7316 var promise22 = dispatch(initiate(arg, { fixedCacheKey })); 7317 setPromise(promise22); 7318 return promise22; 7319 }, [dispatch, initiate, fixedCacheKey]); 7320 var requestId = (promise2 || {}).requestId; 7321 var mutationSelector = (0, import_react.useMemo)(function() { 7322 return createSelector([select({ fixedCacheKey, requestId: promise2 == null ? void 0 : promise2.requestId })], selectFromResult); 7323 }, [select, promise2, selectFromResult, fixedCacheKey]); 7324 var currentState = useSelector2(mutationSelector, shallowEqual); 7325 var originalArgs = fixedCacheKey == null ? promise2 == null ? void 0 : promise2.arg.originalArgs : void 0; 7326 var reset = (0, import_react.useCallback)(function() { 7327 batch(function() { 7328 if (promise2) { 7329 setPromise(void 0); 7330 } 7331 if (fixedCacheKey) { 7332 dispatch(api.internalActions.removeMutationResult({ 7333 requestId, 7334 fixedCacheKey 7335 })); 7336 } 7337 }); 7338 }, [dispatch, fixedCacheKey, promise2, requestId]); 7339 var endpointName = currentState.endpointName, data = currentState.data, status = currentState.status, isLoading = currentState.isLoading, isSuccess = currentState.isSuccess, isError = currentState.isError, error = currentState.error; 7340 (0, import_react.useDebugValue)({ 7341 endpointName, 7342 data, 7343 status, 7344 isLoading, 7345 isSuccess, 7346 isError, 7347 error 7348 }); 7349 var finalState = (0, import_react.useMemo)(function() { 7350 return __spreadProps2(__spreadValues2({}, currentState), { originalArgs, reset }); 7351 }, [currentState, originalArgs, reset]); 7352 return (0, import_react.useMemo)(function() { 7353 return [triggerMutation, finalState]; 7354 }, [triggerMutation, finalState]); 7355 }; 7356 } 7357} 7358var DefinitionType2; 7359(function(DefinitionType22) { 7360 DefinitionType22["query"] = "query"; 7361 DefinitionType22["mutation"] = "mutation"; 7362})(DefinitionType2 || (DefinitionType2 = {})); 7363function isQueryDefinition2(e2) { 7364 return e2.type === DefinitionType2.query; 7365} 7366function isMutationDefinition2(e2) { 7367 return e2.type === DefinitionType2.mutation; 7368} 7369function capitalize(str) { 7370 return str.replace(str[0], str[0].toUpperCase()); 7371} 7372function safeAssign2(target) { 7373 var args = []; 7374 for (var _i = 1; _i < arguments.length; _i++) { 7375 args[_i - 1] = arguments[_i]; 7376 } 7377 Object.assign.apply(Object, __spreadArray2([target], args)); 7378} 7379var reactHooksModuleName = Symbol(); 7380var reactHooksModule = function(_c) { 7381 var _d = _c === void 0 ? {} : _c, _e = _d.batch, batch = _e === void 0 ? import_react_dom.unstable_batchedUpdates : _e, _f = _d.useDispatch, useDispatch2 = _f === void 0 ? useDispatch : _f, _g = _d.useSelector, useSelector2 = _g === void 0 ? useSelector : _g, _h = _d.useStore, useStore2 = _h === void 0 ? useStore : _h, _j = _d.unstable__sideEffectsInRender, unstable__sideEffectsInRender = _j === void 0 ? false : _j; 7382 return { 7383 name: reactHooksModuleName, 7384 init: function(api, _c2, context) { 7385 var serializeQueryArgs = _c2.serializeQueryArgs; 7386 var anyApi = api; 7387 var _d2 = buildHooks({ 7388 api, 7389 moduleOptions: { 7390 batch, 7391 useDispatch: useDispatch2, 7392 useSelector: useSelector2, 7393 useStore: useStore2, 7394 unstable__sideEffectsInRender 7395 }, 7396 serializeQueryArgs, 7397 context 7398 }), buildQueryHooks = _d2.buildQueryHooks, buildMutationHook = _d2.buildMutationHook, usePrefetch = _d2.usePrefetch; 7399 safeAssign2(anyApi, { usePrefetch }); 7400 safeAssign2(context, { batch }); 7401 return { 7402 injectEndpoint: function(endpointName, definition) { 7403 if (isQueryDefinition2(definition)) { 7404 var _c3 = buildQueryHooks(endpointName), useQuery = _c3.useQuery, useLazyQuery = _c3.useLazyQuery, useLazyQuerySubscription = _c3.useLazyQuerySubscription, useQueryState = _c3.useQueryState, useQuerySubscription = _c3.useQuerySubscription; 7405 safeAssign2(anyApi.endpoints[endpointName], { 7406 useQuery, 7407 useLazyQuery, 7408 useLazyQuerySubscription, 7409 useQueryState, 7410 useQuerySubscription 7411 }); 7412 api["use" + capitalize(endpointName) + "Query"] = useQuery; 7413 api["useLazy" + capitalize(endpointName) + "Query"] = useLazyQuery; 7414 } else if (isMutationDefinition2(definition)) { 7415 var useMutation = buildMutationHook(endpointName); 7416 safeAssign2(anyApi.endpoints[endpointName], { 7417 useMutation 7418 }); 7419 api["use" + capitalize(endpointName) + "Mutation"] = useMutation; 7420 } 7421 } 7422 }; 7423 } 7424 }; 7425}; 7426var createApi2 = buildCreateApi(coreModule(), reactHooksModule()); 7427
vendor: 1,124 bytes, lines 7428-7477
7428// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/services/api.mjs 7429var adminApi = createApi2({ 7430 reducerPath: "adminApi", 7431 baseQuery: fetchBaseQuery(), 7432 tagTypes: [ 7433 "GuidedTourMeta", 7434 "HomepageKeyStatistics", 7435 "AIUsage", 7436 "AIFeatureConfig" 7437 ], 7438 endpoints: () => ({}) 7439}); 7440 7441export { 7442 require_isPlainObject, 7443 require_apply, 7444 require_overRest, 7445 require_setToString, 7446 require_baseFlatten, 7447 require_flatRest, 7448 require_lib, 7449 getCookieValue, 7450 THEME_LOCAL_STORAGE_KEY, 7451 LANGUAGE_LOCAL_STORAGE_KEY, 7452 getStoredToken, 7453 reducer, 7454 setAppTheme, 7455 setAvailableThemes, 7456 setLocale, 7457 logout, 7458 login, 7459 skipToken, 7460 require_placeholder, 7461 require_baseConvert, 7462 require_noop, 7463 require_baseIndexOf, 7464 require_arrayIncludes, 7465 require_trimmedEndIndex, 7466 require_toNumber, 7467 require_toInteger, 7468 require_convert, 7469 require_pipe, 7470 FetchError, 7471 isFetchError, 7472 getFetchClient, 7473 fetchBaseQuery, 7474 isBaseQueryError, 7475 adminApi 7476}; 7477//# sourceMappingURL=chunk-I5GSXQM4.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.