| 1 |
(function() { |
| 2 |
|
| 3 |
//#region \0rolldown/runtime.js |
| 4 |
var __create = Object.create; |
| 5 |
var __defProp = Object.defineProperty; |
| 6 |
var __name = (target, value) => __defProp(target, "name", { |
| 7 |
value, |
| 8 |
configurable: true |
| 9 |
}); |
| 10 |
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; |
| 11 |
var __getOwnPropNames = Object.getOwnPropertyNames; |
| 12 |
var __getProtoOf = Object.getPrototypeOf; |
| 13 |
var __hasOwnProp = Object.prototype.hasOwnProperty; |
| 14 |
var __esmMin = (fn, res, err) => () => { |
| 15 |
if (err) throw err[0]; |
| 16 |
try { |
| 17 |
return fn && (res = fn(fn = 0)), res; |
| 18 |
} catch (e) { |
| 19 |
throw err = [e], e; |
| 20 |
} |
| 21 |
}; |
| 22 |
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports); |
| 23 |
var __copyProps = (to, from, except, desc) => { |
| 24 |
if (from && typeof from === "object" || typeof from === "function") { |
| 25 |
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { |
| 26 |
key = keys[i]; |
| 27 |
if (!__hasOwnProp.call(to, key) && key !== except) { |
| 28 |
__defProp(to, key, { |
| 29 |
get: ((k) => from[k]).bind(null, key), |
| 30 |
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable |
| 31 |
}); |
| 32 |
} |
| 33 |
} |
| 34 |
} |
| 35 |
return to; |
| 36 |
}; |
| 37 |
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { |
| 38 |
value: mod, |
| 39 |
enumerable: true |
| 40 |
}) : target, mod)); |
| 41 |
|
| 42 |
//#endregion |
| 43 |
|
| 44 |
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js |
| 45 |
function _typeof(o) { |
| 46 |
"@babel/helpers - typeof"; |
| 47 |
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { |
| 48 |
return typeof o; |
| 49 |
} : function(o) { |
| 50 |
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; |
| 51 |
}, _typeof(o); |
| 52 |
} |
| 53 |
var init_typeof = __esmMin((() => {})); |
| 54 |
|
| 55 |
//#endregion |
| 56 |
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js |
| 57 |
function toPrimitive(t, r) { |
| 58 |
if ("object" != _typeof(t) || !t) return t; |
| 59 |
var e = t[Symbol.toPrimitive]; |
| 60 |
if (void 0 !== e) { |
| 61 |
var i = e.call(t, r || "default"); |
| 62 |
if ("object" != _typeof(i)) return i; |
| 63 |
throw new TypeError("@@toPrimitive must return a primitive value."); |
| 64 |
} |
| 65 |
return ("string" === r ? String : Number)(t); |
| 66 |
} |
| 67 |
var init_toPrimitive = __esmMin((() => { |
| 68 |
init_typeof(); |
| 69 |
})); |
| 70 |
|
| 71 |
//#endregion |
| 72 |
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js |
| 73 |
function toPropertyKey(t) { |
| 74 |
var i = toPrimitive(t, "string"); |
| 75 |
return "symbol" == _typeof(i) ? i : i + ""; |
| 76 |
} |
| 77 |
var init_toPropertyKey = __esmMin((() => { |
| 78 |
init_typeof(); |
| 79 |
init_toPrimitive(); |
| 80 |
})); |
| 81 |
|
| 82 |
//#endregion |
| 83 |
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js |
| 84 |
function _defineProperty(e, r, t) { |
| 85 |
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { |
| 86 |
value: t, |
| 87 |
enumerable: !0, |
| 88 |
configurable: !0, |
| 89 |
writable: !0 |
| 90 |
}) : e[r] = t, e; |
| 91 |
} |
| 92 |
var init_defineProperty = __esmMin((() => { |
| 93 |
init_toPropertyKey(); |
| 94 |
})); |
| 95 |
|
| 96 |
//#endregion |
| 97 |
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectSpread2.js |
| 98 |
function ownKeys(e, r) { |
| 99 |
var t = Object.keys(e); |
| 100 |
if (Object.getOwnPropertySymbols) { |
| 101 |
var o = Object.getOwnPropertySymbols(e); |
| 102 |
r && (o = o.filter(function(r) { |
| 103 |
return Object.getOwnPropertyDescriptor(e, r).enumerable; |
| 104 |
})), t.push.apply(t, o); |
| 105 |
} |
| 106 |
return t; |
| 107 |
} |
| 108 |
function _objectSpread2(e) { |
| 109 |
for (var r = 1; r < arguments.length; r++) { |
| 110 |
var t = null != arguments[r] ? arguments[r] : {}; |
| 111 |
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) { |
| 112 |
_defineProperty(e, r, t[r]); |
| 113 |
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) { |
| 114 |
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); |
| 115 |
}); |
| 116 |
} |
| 117 |
return e; |
| 118 |
} |
| 119 |
var init_objectSpread2 = __esmMin((() => { |
| 120 |
init_defineProperty(); |
| 121 |
})); |
| 122 |
|
| 123 |
//#endregion |
| 124 |
//#region node_modules/core-js/internals/global-this.js |
| 125 |
var require_global_this = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 126 |
var check = function(it) { |
| 127 |
return it && it.Math === Math && it; |
| 128 |
}; |
| 129 |
module.exports = check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || check(typeof self == "object" && self) || check(typeof global == "object" && global) || check(typeof exports == "object" && exports) || (function() { |
| 130 |
return this; |
| 131 |
})() || Function("return this")(); |
| 132 |
})); |
| 133 |
|
| 134 |
//#endregion |
| 135 |
//#region node_modules/core-js/internals/fails.js |
| 136 |
var require_fails = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 137 |
module.exports = function(exec) { |
| 138 |
try { |
| 139 |
return !!exec(); |
| 140 |
} catch (error) { |
| 141 |
return true; |
| 142 |
} |
| 143 |
}; |
| 144 |
})); |
| 145 |
|
| 146 |
//#endregion |
| 147 |
//#region node_modules/core-js/internals/descriptors.js |
| 148 |
var require_descriptors = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 149 |
var fails = require_fails(); |
| 150 |
module.exports = !fails(function() { |
| 151 |
return Object.defineProperty({}, 1, { get: function() { |
| 152 |
return 7; |
| 153 |
} })[1] !== 7; |
| 154 |
}); |
| 155 |
})); |
| 156 |
|
| 157 |
//#endregion |
| 158 |
//#region node_modules/core-js/internals/function-bind-native.js |
| 159 |
var require_function_bind_native = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 160 |
var fails = require_fails(); |
| 161 |
module.exports = !fails(function() { |
| 162 |
var test = (function() {}).bind(); |
| 163 |
return typeof test != "function" || test.hasOwnProperty("prototype"); |
| 164 |
}); |
| 165 |
})); |
| 166 |
|
| 167 |
//#endregion |
| 168 |
//#region node_modules/core-js/internals/function-call.js |
| 169 |
var require_function_call = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 170 |
var NATIVE_BIND = require_function_bind_native(); |
| 171 |
var call = Function.prototype.call; |
| 172 |
module.exports = NATIVE_BIND ? call.bind(call) : function() { |
| 173 |
return call.apply(call, arguments); |
| 174 |
}; |
| 175 |
})); |
| 176 |
|
| 177 |
//#endregion |
| 178 |
//#region node_modules/core-js/internals/object-property-is-enumerable.js |
| 179 |
var require_object_property_is_enumerable = /* @__PURE__ */ __commonJSMin(((exports) => { |
| 180 |
var $propertyIsEnumerable = {}.propertyIsEnumerable; |
| 181 |
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; |
| 182 |
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); |
| 183 |
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { |
| 184 |
var descriptor = getOwnPropertyDescriptor(this, V); |
| 185 |
return !!descriptor && descriptor.enumerable; |
| 186 |
} : $propertyIsEnumerable; |
| 187 |
})); |
| 188 |
|
| 189 |
//#endregion |
| 190 |
//#region node_modules/core-js/internals/create-property-descriptor.js |
| 191 |
var require_create_property_descriptor = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 192 |
module.exports = function(bitmap, value) { |
| 193 |
return { |
| 194 |
enumerable: !(bitmap & 1), |
| 195 |
configurable: !(bitmap & 2), |
| 196 |
writable: !(bitmap & 4), |
| 197 |
value |
| 198 |
}; |
| 199 |
}; |
| 200 |
})); |
| 201 |
|
| 202 |
//#endregion |
| 203 |
//#region node_modules/core-js/internals/function-uncurry-this.js |
| 204 |
var require_function_uncurry_this = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 205 |
var NATIVE_BIND = require_function_bind_native(); |
| 206 |
var FunctionPrototype = Function.prototype; |
| 207 |
var call = FunctionPrototype.call; |
| 208 |
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); |
| 209 |
module.exports = NATIVE_BIND ? uncurryThisWithBind : function(fn) { |
| 210 |
return function() { |
| 211 |
return call.apply(fn, arguments); |
| 212 |
}; |
| 213 |
}; |
| 214 |
})); |
| 215 |
|
| 216 |
//#endregion |
| 217 |
//#region node_modules/core-js/internals/classof-raw.js |
| 218 |
var require_classof_raw = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 219 |
var uncurryThis = require_function_uncurry_this(); |
| 220 |
var toString = uncurryThis({}.toString); |
| 221 |
var stringSlice = uncurryThis("".slice); |
| 222 |
module.exports = function(it) { |
| 223 |
return stringSlice(toString(it), 8, -1); |
| 224 |
}; |
| 225 |
})); |
| 226 |
|
| 227 |
//#endregion |
| 228 |
//#region node_modules/core-js/internals/indexed-object.js |
| 229 |
var require_indexed_object = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 230 |
var uncurryThis = require_function_uncurry_this(); |
| 231 |
var fails = require_fails(); |
| 232 |
var classof = require_classof_raw(); |
| 233 |
var $Object = Object; |
| 234 |
var split = uncurryThis("".split); |
| 235 |
module.exports = fails(function() { |
| 236 |
return !$Object("z").propertyIsEnumerable(0); |
| 237 |
}) ? function(it) { |
| 238 |
return classof(it) === "String" ? split(it, "") : $Object(it); |
| 239 |
} : $Object; |
| 240 |
})); |
| 241 |
|
| 242 |
//#endregion |
| 243 |
//#region node_modules/core-js/internals/is-null-or-undefined.js |
| 244 |
var require_is_null_or_undefined = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 245 |
module.exports = function(it) { |
| 246 |
return it === null || it === void 0; |
| 247 |
}; |
| 248 |
})); |
| 249 |
|
| 250 |
//#endregion |
| 251 |
//#region node_modules/core-js/internals/require-object-coercible.js |
| 252 |
var require_require_object_coercible = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 253 |
var isNullOrUndefined = require_is_null_or_undefined(); |
| 254 |
var $TypeError = TypeError; |
| 255 |
module.exports = function(it) { |
| 256 |
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it); |
| 257 |
return it; |
| 258 |
}; |
| 259 |
})); |
| 260 |
|
| 261 |
//#endregion |
| 262 |
//#region node_modules/core-js/internals/to-indexed-object.js |
| 263 |
var require_to_indexed_object = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 264 |
var IndexedObject = require_indexed_object(); |
| 265 |
var requireObjectCoercible = require_require_object_coercible(); |
| 266 |
module.exports = function(it) { |
| 267 |
return IndexedObject(requireObjectCoercible(it)); |
| 268 |
}; |
| 269 |
})); |
| 270 |
|
| 271 |
//#endregion |
| 272 |
//#region node_modules/core-js/internals/is-callable.js |
| 273 |
var require_is_callable = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 274 |
var documentAll = typeof document == "object" && document.all; |
| 275 |
module.exports = typeof documentAll == "undefined" && documentAll !== void 0 ? function(argument) { |
| 276 |
return typeof argument == "function" || argument === documentAll; |
| 277 |
} : function(argument) { |
| 278 |
return typeof argument == "function"; |
| 279 |
}; |
| 280 |
})); |
| 281 |
|
| 282 |
//#endregion |
| 283 |
//#region node_modules/core-js/internals/is-object.js |
| 284 |
var require_is_object = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 285 |
var isCallable = require_is_callable(); |
| 286 |
module.exports = function(it) { |
| 287 |
return typeof it == "object" ? it !== null : isCallable(it); |
| 288 |
}; |
| 289 |
})); |
| 290 |
|
| 291 |
//#endregion |
| 292 |
//#region node_modules/core-js/internals/get-built-in.js |
| 293 |
var require_get_built_in = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 294 |
var globalThis = require_global_this(); |
| 295 |
var isCallable = require_is_callable(); |
| 296 |
var aFunction = function(argument) { |
| 297 |
return isCallable(argument) ? argument : void 0; |
| 298 |
}; |
| 299 |
module.exports = function(namespace, method) { |
| 300 |
return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method]; |
| 301 |
}; |
| 302 |
})); |
| 303 |
|
| 304 |
//#endregion |
| 305 |
//#region node_modules/core-js/internals/object-is-prototype-of.js |
| 306 |
var require_object_is_prototype_of = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 307 |
var uncurryThis = require_function_uncurry_this(); |
| 308 |
module.exports = uncurryThis({}.isPrototypeOf); |
| 309 |
})); |
| 310 |
|
| 311 |
//#endregion |
| 312 |
//#region node_modules/core-js/internals/environment-user-agent.js |
| 313 |
var require_environment_user_agent = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 314 |
var navigator = require_global_this().navigator; |
| 315 |
var userAgent = navigator && navigator.userAgent; |
| 316 |
module.exports = userAgent ? String(userAgent) : ""; |
| 317 |
})); |
| 318 |
|
| 319 |
//#endregion |
| 320 |
//#region node_modules/core-js/internals/environment-v8-version.js |
| 321 |
var require_environment_v8_version = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 322 |
var globalThis = require_global_this(); |
| 323 |
var userAgent = require_environment_user_agent(); |
| 324 |
var process = globalThis.process; |
| 325 |
var Deno = globalThis.Deno; |
| 326 |
var versions = process && process.versions || Deno && Deno.version; |
| 327 |
var v8 = versions && versions.v8; |
| 328 |
var match; |
| 329 |
var version; |
| 330 |
if (v8) { |
| 331 |
match = v8.split("."); |
| 332 |
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); |
| 333 |
} |
| 334 |
if (!version && userAgent) { |
| 335 |
match = userAgent.match(/Edge\/(\d+)/); |
| 336 |
if (!match || match[1] >= 74) { |
| 337 |
match = userAgent.match(/Chrome\/(\d+)/); |
| 338 |
if (match) version = +match[1]; |
| 339 |
} |
| 340 |
} |
| 341 |
module.exports = version; |
| 342 |
})); |
| 343 |
|
| 344 |
//#endregion |
| 345 |
//#region node_modules/core-js/internals/symbol-constructor-detection.js |
| 346 |
var require_symbol_constructor_detection = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 347 |
var V8_VERSION = require_environment_v8_version(); |
| 348 |
var fails = require_fails(); |
| 349 |
var $String = require_global_this().String; |
| 350 |
module.exports = !!Object.getOwnPropertySymbols && !fails(function() { |
| 351 |
var symbol = Symbol("symbol detection"); |
| 352 |
return !$String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41; |
| 353 |
}); |
| 354 |
})); |
| 355 |
|
| 356 |
//#endregion |
| 357 |
//#region node_modules/core-js/internals/use-symbol-as-uid.js |
| 358 |
var require_use_symbol_as_uid = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 359 |
var NATIVE_SYMBOL = require_symbol_constructor_detection(); |
| 360 |
module.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol"; |
| 361 |
})); |
| 362 |
|
| 363 |
//#endregion |
| 364 |
//#region node_modules/core-js/internals/is-symbol.js |
| 365 |
var require_is_symbol = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 366 |
var getBuiltIn = require_get_built_in(); |
| 367 |
var isCallable = require_is_callable(); |
| 368 |
var isPrototypeOf = require_object_is_prototype_of(); |
| 369 |
var USE_SYMBOL_AS_UID = require_use_symbol_as_uid(); |
| 370 |
var $Object = Object; |
| 371 |
module.exports = USE_SYMBOL_AS_UID ? function(it) { |
| 372 |
return typeof it == "symbol"; |
| 373 |
} : function(it) { |
| 374 |
var $Symbol = getBuiltIn("Symbol"); |
| 375 |
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it)); |
| 376 |
}; |
| 377 |
})); |
| 378 |
|
| 379 |
//#endregion |
| 380 |
//#region node_modules/core-js/internals/try-to-string.js |
| 381 |
var require_try_to_string = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 382 |
var $String = String; |
| 383 |
module.exports = function(argument) { |
| 384 |
try { |
| 385 |
return $String(argument); |
| 386 |
} catch (error) { |
| 387 |
return "Object"; |
| 388 |
} |
| 389 |
}; |
| 390 |
})); |
| 391 |
|
| 392 |
//#endregion |
| 393 |
//#region node_modules/core-js/internals/a-callable.js |
| 394 |
var require_a_callable = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 395 |
var isCallable = require_is_callable(); |
| 396 |
var tryToString = require_try_to_string(); |
| 397 |
var $TypeError = TypeError; |
| 398 |
module.exports = function(argument) { |
| 399 |
if (isCallable(argument)) return argument; |
| 400 |
throw new $TypeError(tryToString(argument) + " is not a function"); |
| 401 |
}; |
| 402 |
})); |
| 403 |
|
| 404 |
//#endregion |
| 405 |
//#region node_modules/core-js/internals/get-method.js |
| 406 |
var require_get_method = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 407 |
var aCallable = require_a_callable(); |
| 408 |
var isNullOrUndefined = require_is_null_or_undefined(); |
| 409 |
module.exports = function(V, P) { |
| 410 |
var func = V[P]; |
| 411 |
return isNullOrUndefined(func) ? void 0 : aCallable(func); |
| 412 |
}; |
| 413 |
})); |
| 414 |
|
| 415 |
//#endregion |
| 416 |
//#region node_modules/core-js/internals/ordinary-to-primitive.js |
| 417 |
var require_ordinary_to_primitive = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 418 |
var call = require_function_call(); |
| 419 |
var isCallable = require_is_callable(); |
| 420 |
var isObject = require_is_object(); |
| 421 |
var $TypeError = TypeError; |
| 422 |
module.exports = function(input, pref) { |
| 423 |
var fn; |
| 424 |
var val; |
| 425 |
if (pref === "string" && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; |
| 426 |
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val; |
| 427 |
if (pref !== "string" && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; |
| 428 |
throw new $TypeError("Can't convert object to primitive value"); |
| 429 |
}; |
| 430 |
})); |
| 431 |
|
| 432 |
//#endregion |
| 433 |
//#region node_modules/core-js/internals/is-pure.js |
| 434 |
var require_is_pure = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 435 |
module.exports = false; |
| 436 |
})); |
| 437 |
|
| 438 |
//#endregion |
| 439 |
//#region node_modules/core-js/internals/define-global-property.js |
| 440 |
var require_define_global_property = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 441 |
var globalThis = require_global_this(); |
| 442 |
var defineProperty = Object.defineProperty; |
| 443 |
module.exports = function(key, value) { |
| 444 |
try { |
| 445 |
defineProperty(globalThis, key, { |
| 446 |
value, |
| 447 |
configurable: true, |
| 448 |
writable: true |
| 449 |
}); |
| 450 |
} catch (error) { |
| 451 |
globalThis[key] = value; |
| 452 |
} |
| 453 |
return value; |
| 454 |
}; |
| 455 |
})); |
| 456 |
|
| 457 |
//#endregion |
| 458 |
//#region node_modules/core-js/internals/shared-store.js |
| 459 |
var require_shared_store = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 460 |
var IS_PURE = require_is_pure(); |
| 461 |
var globalThis = require_global_this(); |
| 462 |
var defineGlobalProperty = require_define_global_property(); |
| 463 |
var SHARED = "__core-js_shared__"; |
| 464 |
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {}); |
| 465 |
(store.versions || (store.versions = [])).push({ |
| 466 |
version: "3.46.0", |
| 467 |
mode: IS_PURE ? "pure" : "global", |
| 468 |
copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)", |
| 469 |
license: "https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE", |
| 470 |
source: "https://github.com/zloirock/core-js" |
| 471 |
}); |
| 472 |
})); |
| 473 |
|
| 474 |
//#endregion |
| 475 |
//#region node_modules/core-js/internals/shared.js |
| 476 |
var require_shared = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 477 |
var store = require_shared_store(); |
| 478 |
module.exports = function(key, value) { |
| 479 |
return store[key] || (store[key] = value || {}); |
| 480 |
}; |
| 481 |
})); |
| 482 |
|
| 483 |
//#endregion |
| 484 |
//#region node_modules/core-js/internals/to-object.js |
| 485 |
var require_to_object = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 486 |
var requireObjectCoercible = require_require_object_coercible(); |
| 487 |
var $Object = Object; |
| 488 |
module.exports = function(argument) { |
| 489 |
return $Object(requireObjectCoercible(argument)); |
| 490 |
}; |
| 491 |
})); |
| 492 |
|
| 493 |
//#endregion |
| 494 |
//#region node_modules/core-js/internals/has-own-property.js |
| 495 |
var require_has_own_property = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 496 |
var uncurryThis = require_function_uncurry_this(); |
| 497 |
var toObject = require_to_object(); |
| 498 |
var hasOwnProperty = uncurryThis({}.hasOwnProperty); |
| 499 |
module.exports = Object.hasOwn || function hasOwn(it, key) { |
| 500 |
return hasOwnProperty(toObject(it), key); |
| 501 |
}; |
| 502 |
})); |
| 503 |
|
| 504 |
//#endregion |
| 505 |
//#region node_modules/core-js/internals/uid.js |
| 506 |
var require_uid = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 507 |
var uncurryThis = require_function_uncurry_this(); |
| 508 |
var id = 0; |
| 509 |
var postfix = Math.random(); |
| 510 |
var toString = uncurryThis(1.1.toString); |
| 511 |
module.exports = function(key) { |
| 512 |
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString(++id + postfix, 36); |
| 513 |
}; |
| 514 |
})); |
| 515 |
|
| 516 |
//#endregion |
| 517 |
//#region node_modules/core-js/internals/well-known-symbol.js |
| 518 |
var require_well_known_symbol = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 519 |
var globalThis = require_global_this(); |
| 520 |
var shared = require_shared(); |
| 521 |
var hasOwn = require_has_own_property(); |
| 522 |
var uid = require_uid(); |
| 523 |
var NATIVE_SYMBOL = require_symbol_constructor_detection(); |
| 524 |
var USE_SYMBOL_AS_UID = require_use_symbol_as_uid(); |
| 525 |
var Symbol = globalThis.Symbol; |
| 526 |
var WellKnownSymbolsStore = shared("wks"); |
| 527 |
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol["for"] || Symbol : Symbol && Symbol.withoutSetter || uid; |
| 528 |
module.exports = function(name) { |
| 529 |
if (!hasOwn(WellKnownSymbolsStore, name)) WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name) ? Symbol[name] : createWellKnownSymbol("Symbol." + name); |
| 530 |
return WellKnownSymbolsStore[name]; |
| 531 |
}; |
| 532 |
})); |
| 533 |
|
| 534 |
//#endregion |
| 535 |
//#region node_modules/core-js/internals/to-primitive.js |
| 536 |
var require_to_primitive = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 537 |
var call = require_function_call(); |
| 538 |
var isObject = require_is_object(); |
| 539 |
var isSymbol = require_is_symbol(); |
| 540 |
var getMethod = require_get_method(); |
| 541 |
var ordinaryToPrimitive = require_ordinary_to_primitive(); |
| 542 |
var wellKnownSymbol = require_well_known_symbol(); |
| 543 |
var $TypeError = TypeError; |
| 544 |
var TO_PRIMITIVE = wellKnownSymbol("toPrimitive"); |
| 545 |
module.exports = function(input, pref) { |
| 546 |
if (!isObject(input) || isSymbol(input)) return input; |
| 547 |
var exoticToPrim = getMethod(input, TO_PRIMITIVE); |
| 548 |
var result; |
| 549 |
if (exoticToPrim) { |
| 550 |
if (pref === void 0) pref = "default"; |
| 551 |
result = call(exoticToPrim, input, pref); |
| 552 |
if (!isObject(result) || isSymbol(result)) return result; |
| 553 |
throw new $TypeError("Can't convert object to primitive value"); |
| 554 |
} |
| 555 |
if (pref === void 0) pref = "number"; |
| 556 |
return ordinaryToPrimitive(input, pref); |
| 557 |
}; |
| 558 |
})); |
| 559 |
|
| 560 |
//#endregion |
| 561 |
//#region node_modules/core-js/internals/to-property-key.js |
| 562 |
var require_to_property_key = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 563 |
var toPrimitive = require_to_primitive(); |
| 564 |
var isSymbol = require_is_symbol(); |
| 565 |
module.exports = function(argument) { |
| 566 |
var key = toPrimitive(argument, "string"); |
| 567 |
return isSymbol(key) ? key : key + ""; |
| 568 |
}; |
| 569 |
})); |
| 570 |
|
| 571 |
//#endregion |
| 572 |
//#region node_modules/core-js/internals/document-create-element.js |
| 573 |
var require_document_create_element = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 574 |
var globalThis = require_global_this(); |
| 575 |
var isObject = require_is_object(); |
| 576 |
var document = globalThis.document; |
| 577 |
var EXISTS = isObject(document) && isObject(document.createElement); |
| 578 |
module.exports = function(it) { |
| 579 |
return EXISTS ? document.createElement(it) : {}; |
| 580 |
}; |
| 581 |
})); |
| 582 |
|
| 583 |
//#endregion |
| 584 |
//#region node_modules/core-js/internals/ie8-dom-define.js |
| 585 |
var require_ie8_dom_define = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 586 |
var DESCRIPTORS = require_descriptors(); |
| 587 |
var fails = require_fails(); |
| 588 |
var createElement = require_document_create_element(); |
| 589 |
module.exports = !DESCRIPTORS && !fails(function() { |
| 590 |
return Object.defineProperty(createElement("div"), "a", { get: function() { |
| 591 |
return 7; |
| 592 |
} }).a !== 7; |
| 593 |
}); |
| 594 |
})); |
| 595 |
|
| 596 |
//#endregion |
| 597 |
//#region node_modules/core-js/internals/object-get-own-property-descriptor.js |
| 598 |
var require_object_get_own_property_descriptor = /* @__PURE__ */ __commonJSMin(((exports) => { |
| 599 |
var DESCRIPTORS = require_descriptors(); |
| 600 |
var call = require_function_call(); |
| 601 |
var propertyIsEnumerableModule = require_object_property_is_enumerable(); |
| 602 |
var createPropertyDescriptor = require_create_property_descriptor(); |
| 603 |
var toIndexedObject = require_to_indexed_object(); |
| 604 |
var toPropertyKey = require_to_property_key(); |
| 605 |
var hasOwn = require_has_own_property(); |
| 606 |
var IE8_DOM_DEFINE = require_ie8_dom_define(); |
| 607 |
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; |
| 608 |
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { |
| 609 |
O = toIndexedObject(O); |
| 610 |
P = toPropertyKey(P); |
| 611 |
if (IE8_DOM_DEFINE) try { |
| 612 |
return $getOwnPropertyDescriptor(O, P); |
| 613 |
} catch (error) {} |
| 614 |
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); |
| 615 |
}; |
| 616 |
})); |
| 617 |
|
| 618 |
//#endregion |
| 619 |
//#region node_modules/core-js/internals/v8-prototype-define-bug.js |
| 620 |
var require_v8_prototype_define_bug = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 621 |
var DESCRIPTORS = require_descriptors(); |
| 622 |
var fails = require_fails(); |
| 623 |
module.exports = DESCRIPTORS && fails(function() { |
| 624 |
return Object.defineProperty(function() {}, "prototype", { |
| 625 |
value: 42, |
| 626 |
writable: false |
| 627 |
}).prototype !== 42; |
| 628 |
}); |
| 629 |
})); |
| 630 |
|
| 631 |
//#endregion |
| 632 |
//#region node_modules/core-js/internals/an-object.js |
| 633 |
var require_an_object = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 634 |
var isObject = require_is_object(); |
| 635 |
var $String = String; |
| 636 |
var $TypeError = TypeError; |
| 637 |
module.exports = function(argument) { |
| 638 |
if (isObject(argument)) return argument; |
| 639 |
throw new $TypeError($String(argument) + " is not an object"); |
| 640 |
}; |
| 641 |
})); |
| 642 |
|
| 643 |
//#endregion |
| 644 |
//#region node_modules/core-js/internals/object-define-property.js |
| 645 |
var require_object_define_property = /* @__PURE__ */ __commonJSMin(((exports) => { |
| 646 |
var DESCRIPTORS = require_descriptors(); |
| 647 |
var IE8_DOM_DEFINE = require_ie8_dom_define(); |
| 648 |
var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug(); |
| 649 |
var anObject = require_an_object(); |
| 650 |
var toPropertyKey = require_to_property_key(); |
| 651 |
var $TypeError = TypeError; |
| 652 |
var $defineProperty = Object.defineProperty; |
| 653 |
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; |
| 654 |
var ENUMERABLE = "enumerable"; |
| 655 |
var CONFIGURABLE = "configurable"; |
| 656 |
var WRITABLE = "writable"; |
| 657 |
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { |
| 658 |
anObject(O); |
| 659 |
P = toPropertyKey(P); |
| 660 |
anObject(Attributes); |
| 661 |
if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { |
| 662 |
var current = $getOwnPropertyDescriptor(O, P); |
| 663 |
if (current && current[WRITABLE]) { |
| 664 |
O[P] = Attributes.value; |
| 665 |
Attributes = { |
| 666 |
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE], |
| 667 |
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], |
| 668 |
writable: false |
| 669 |
}; |
| 670 |
} |
| 671 |
} |
| 672 |
return $defineProperty(O, P, Attributes); |
| 673 |
} : $defineProperty : function defineProperty(O, P, Attributes) { |
| 674 |
anObject(O); |
| 675 |
P = toPropertyKey(P); |
| 676 |
anObject(Attributes); |
| 677 |
if (IE8_DOM_DEFINE) try { |
| 678 |
return $defineProperty(O, P, Attributes); |
| 679 |
} catch (error) {} |
| 680 |
if ("get" in Attributes || "set" in Attributes) throw new $TypeError("Accessors not supported"); |
| 681 |
if ("value" in Attributes) O[P] = Attributes.value; |
| 682 |
return O; |
| 683 |
}; |
| 684 |
})); |
| 685 |
|
| 686 |
//#endregion |
| 687 |
//#region node_modules/core-js/internals/create-non-enumerable-property.js |
| 688 |
var require_create_non_enumerable_property = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 689 |
var DESCRIPTORS = require_descriptors(); |
| 690 |
var definePropertyModule = require_object_define_property(); |
| 691 |
var createPropertyDescriptor = require_create_property_descriptor(); |
| 692 |
module.exports = DESCRIPTORS ? function(object, key, value) { |
| 693 |
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); |
| 694 |
} : function(object, key, value) { |
| 695 |
object[key] = value; |
| 696 |
return object; |
| 697 |
}; |
| 698 |
})); |
| 699 |
|
| 700 |
//#endregion |
| 701 |
//#region node_modules/core-js/internals/function-name.js |
| 702 |
var require_function_name = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 703 |
var DESCRIPTORS = require_descriptors(); |
| 704 |
var hasOwn = require_has_own_property(); |
| 705 |
var FunctionPrototype = Function.prototype; |
| 706 |
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; |
| 707 |
var EXISTS = hasOwn(FunctionPrototype, "name"); |
| 708 |
var PROPER = EXISTS && (function something() {}).name === "something"; |
| 709 |
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, "name").configurable); |
| 710 |
module.exports = { |
| 711 |
EXISTS, |
| 712 |
PROPER, |
| 713 |
CONFIGURABLE |
| 714 |
}; |
| 715 |
})); |
| 716 |
|
| 717 |
//#endregion |
| 718 |
//#region node_modules/core-js/internals/inspect-source.js |
| 719 |
var require_inspect_source = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 720 |
var uncurryThis = require_function_uncurry_this(); |
| 721 |
var isCallable = require_is_callable(); |
| 722 |
var store = require_shared_store(); |
| 723 |
var functionToString = uncurryThis(Function.toString); |
| 724 |
if (!isCallable(store.inspectSource)) store.inspectSource = function(it) { |
| 725 |
return functionToString(it); |
| 726 |
}; |
| 727 |
module.exports = store.inspectSource; |
| 728 |
})); |
| 729 |
|
| 730 |
//#endregion |
| 731 |
//#region node_modules/core-js/internals/weak-map-basic-detection.js |
| 732 |
var require_weak_map_basic_detection = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 733 |
var globalThis = require_global_this(); |
| 734 |
var isCallable = require_is_callable(); |
| 735 |
var WeakMap = globalThis.WeakMap; |
| 736 |
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap)); |
| 737 |
})); |
| 738 |
|
| 739 |
//#endregion |
| 740 |
//#region node_modules/core-js/internals/shared-key.js |
| 741 |
var require_shared_key = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 742 |
var shared = require_shared(); |
| 743 |
var uid = require_uid(); |
| 744 |
var keys = shared("keys"); |
| 745 |
module.exports = function(key) { |
| 746 |
return keys[key] || (keys[key] = uid(key)); |
| 747 |
}; |
| 748 |
})); |
| 749 |
|
| 750 |
//#endregion |
| 751 |
//#region node_modules/core-js/internals/hidden-keys.js |
| 752 |
var require_hidden_keys = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 753 |
module.exports = {}; |
| 754 |
})); |
| 755 |
|
| 756 |
//#endregion |
| 757 |
//#region node_modules/core-js/internals/internal-state.js |
| 758 |
var require_internal_state = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 759 |
var NATIVE_WEAK_MAP = require_weak_map_basic_detection(); |
| 760 |
var globalThis = require_global_this(); |
| 761 |
var isObject = require_is_object(); |
| 762 |
var createNonEnumerableProperty = require_create_non_enumerable_property(); |
| 763 |
var hasOwn = require_has_own_property(); |
| 764 |
var shared = require_shared_store(); |
| 765 |
var sharedKey = require_shared_key(); |
| 766 |
var hiddenKeys = require_hidden_keys(); |
| 767 |
var OBJECT_ALREADY_INITIALIZED = "Object already initialized"; |
| 768 |
var TypeError = globalThis.TypeError; |
| 769 |
var WeakMap = globalThis.WeakMap; |
| 770 |
var set; |
| 771 |
var get; |
| 772 |
var has; |
| 773 |
var enforce = function(it) { |
| 774 |
return has(it) ? get(it) : set(it, {}); |
| 775 |
}; |
| 776 |
var getterFor = function(TYPE) { |
| 777 |
return function(it) { |
| 778 |
var state; |
| 779 |
if (!isObject(it) || (state = get(it)).type !== TYPE) throw new TypeError("Incompatible receiver, " + TYPE + " required"); |
| 780 |
return state; |
| 781 |
}; |
| 782 |
}; |
| 783 |
if (NATIVE_WEAK_MAP || shared.state) { |
| 784 |
var store = shared.state || (shared.state = new WeakMap()); |
| 785 |
store.get = store.get; |
| 786 |
store.has = store.has; |
| 787 |
store.set = store.set; |
| 788 |
set = function(it, metadata) { |
| 789 |
if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); |
| 790 |
metadata.facade = it; |
| 791 |
store.set(it, metadata); |
| 792 |
return metadata; |
| 793 |
}; |
| 794 |
get = function(it) { |
| 795 |
return store.get(it) || {}; |
| 796 |
}; |
| 797 |
has = function(it) { |
| 798 |
return store.has(it); |
| 799 |
}; |
| 800 |
} else { |
| 801 |
var STATE = sharedKey("state"); |
| 802 |
hiddenKeys[STATE] = true; |
| 803 |
set = function(it, metadata) { |
| 804 |
if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); |
| 805 |
metadata.facade = it; |
| 806 |
createNonEnumerableProperty(it, STATE, metadata); |
| 807 |
return metadata; |
| 808 |
}; |
| 809 |
get = function(it) { |
| 810 |
return hasOwn(it, STATE) ? it[STATE] : {}; |
| 811 |
}; |
| 812 |
has = function(it) { |
| 813 |
return hasOwn(it, STATE); |
| 814 |
}; |
| 815 |
} |
| 816 |
module.exports = { |
| 817 |
set, |
| 818 |
get, |
| 819 |
has, |
| 820 |
enforce, |
| 821 |
getterFor |
| 822 |
}; |
| 823 |
})); |
| 824 |
|
| 825 |
//#endregion |
| 826 |
//#region node_modules/core-js/internals/make-built-in.js |
| 827 |
var require_make_built_in = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 828 |
var uncurryThis = require_function_uncurry_this(); |
| 829 |
var fails = require_fails(); |
| 830 |
var isCallable = require_is_callable(); |
| 831 |
var hasOwn = require_has_own_property(); |
| 832 |
var DESCRIPTORS = require_descriptors(); |
| 833 |
var CONFIGURABLE_FUNCTION_NAME = require_function_name().CONFIGURABLE; |
| 834 |
var inspectSource = require_inspect_source(); |
| 835 |
var InternalStateModule = require_internal_state(); |
| 836 |
var enforceInternalState = InternalStateModule.enforce; |
| 837 |
var getInternalState = InternalStateModule.get; |
| 838 |
var $String = String; |
| 839 |
var defineProperty = Object.defineProperty; |
| 840 |
var stringSlice = uncurryThis("".slice); |
| 841 |
var replace = uncurryThis("".replace); |
| 842 |
var join = uncurryThis([].join); |
| 843 |
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function() { |
| 844 |
return defineProperty(function() {}, "length", { value: 8 }).length !== 8; |
| 845 |
}); |
| 846 |
var TEMPLATE = String(String).split("String"); |
| 847 |
var makeBuiltIn = module.exports = function(value, name, options) { |
| 848 |
if (stringSlice($String(name), 0, 7) === "Symbol(") name = "[" + replace($String(name), /^Symbol\(([^)]*)\).*$/, "$1") + "]"; |
| 849 |
if (options && options.getter) name = "get " + name; |
| 850 |
if (options && options.setter) name = "set " + name; |
| 851 |
if (!hasOwn(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) if (DESCRIPTORS) defineProperty(value, "name", { |
| 852 |
value: name, |
| 853 |
configurable: true |
| 854 |
}); |
| 855 |
else value.name = name; |
| 856 |
if (CONFIGURABLE_LENGTH && options && hasOwn(options, "arity") && value.length !== options.arity) defineProperty(value, "length", { value: options.arity }); |
| 857 |
try { |
| 858 |
if (options && hasOwn(options, "constructor") && options.constructor) { |
| 859 |
if (DESCRIPTORS) defineProperty(value, "prototype", { writable: false }); |
| 860 |
} else if (value.prototype) value.prototype = void 0; |
| 861 |
} catch (error) {} |
| 862 |
var state = enforceInternalState(value); |
| 863 |
if (!hasOwn(state, "source")) state.source = join(TEMPLATE, typeof name == "string" ? name : ""); |
| 864 |
return value; |
| 865 |
}; |
| 866 |
Function.prototype.toString = makeBuiltIn(function toString() { |
| 867 |
return isCallable(this) && getInternalState(this).source || inspectSource(this); |
| 868 |
}, "toString"); |
| 869 |
})); |
| 870 |
|
| 871 |
//#endregion |
| 872 |
//#region node_modules/core-js/internals/define-built-in.js |
| 873 |
var require_define_built_in = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 874 |
var isCallable = require_is_callable(); |
| 875 |
var definePropertyModule = require_object_define_property(); |
| 876 |
var makeBuiltIn = require_make_built_in(); |
| 877 |
var defineGlobalProperty = require_define_global_property(); |
| 878 |
module.exports = function(O, key, value, options) { |
| 879 |
if (!options) options = {}; |
| 880 |
var simple = options.enumerable; |
| 881 |
var name = options.name !== void 0 ? options.name : key; |
| 882 |
if (isCallable(value)) makeBuiltIn(value, name, options); |
| 883 |
if (options.global) if (simple) O[key] = value; |
| 884 |
else defineGlobalProperty(key, value); |
| 885 |
else { |
| 886 |
try { |
| 887 |
if (!options.unsafe) delete O[key]; |
| 888 |
else if (O[key]) simple = true; |
| 889 |
} catch (error) {} |
| 890 |
if (simple) O[key] = value; |
| 891 |
else definePropertyModule.f(O, key, { |
| 892 |
value, |
| 893 |
enumerable: false, |
| 894 |
configurable: !options.nonConfigurable, |
| 895 |
writable: !options.nonWritable |
| 896 |
}); |
| 897 |
} |
| 898 |
return O; |
| 899 |
}; |
| 900 |
})); |
| 901 |
|
| 902 |
//#endregion |
| 903 |
//#region node_modules/core-js/internals/math-trunc.js |
| 904 |
var require_math_trunc = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 905 |
var ceil = Math.ceil; |
| 906 |
var floor = Math.floor; |
| 907 |
module.exports = Math.trunc || function trunc(x) { |
| 908 |
var n = +x; |
| 909 |
return (n > 0 ? floor : ceil)(n); |
| 910 |
}; |
| 911 |
})); |
| 912 |
|
| 913 |
//#endregion |
| 914 |
//#region node_modules/core-js/internals/to-integer-or-infinity.js |
| 915 |
var require_to_integer_or_infinity = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 916 |
var trunc = require_math_trunc(); |
| 917 |
module.exports = function(argument) { |
| 918 |
var number = +argument; |
| 919 |
return number !== number || number === 0 ? 0 : trunc(number); |
| 920 |
}; |
| 921 |
})); |
| 922 |
|
| 923 |
//#endregion |
| 924 |
//#region node_modules/core-js/internals/to-absolute-index.js |
| 925 |
var require_to_absolute_index = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 926 |
var toIntegerOrInfinity = require_to_integer_or_infinity(); |
| 927 |
var max = Math.max; |
| 928 |
var min = Math.min; |
| 929 |
module.exports = function(index, length) { |
| 930 |
var integer = toIntegerOrInfinity(index); |
| 931 |
return integer < 0 ? max(integer + length, 0) : min(integer, length); |
| 932 |
}; |
| 933 |
})); |
| 934 |
|
| 935 |
//#endregion |
| 936 |
//#region node_modules/core-js/internals/to-length.js |
| 937 |
var require_to_length = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 938 |
var toIntegerOrInfinity = require_to_integer_or_infinity(); |
| 939 |
var min = Math.min; |
| 940 |
module.exports = function(argument) { |
| 941 |
var len = toIntegerOrInfinity(argument); |
| 942 |
return len > 0 ? min(len, 9007199254740991) : 0; |
| 943 |
}; |
| 944 |
})); |
| 945 |
|
| 946 |
//#endregion |
| 947 |
//#region node_modules/core-js/internals/length-of-array-like.js |
| 948 |
var require_length_of_array_like = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 949 |
var toLength = require_to_length(); |
| 950 |
module.exports = function(obj) { |
| 951 |
return toLength(obj.length); |
| 952 |
}; |
| 953 |
})); |
| 954 |
|
| 955 |
//#endregion |
| 956 |
//#region node_modules/core-js/internals/array-includes.js |
| 957 |
var require_array_includes = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 958 |
var toIndexedObject = require_to_indexed_object(); |
| 959 |
var toAbsoluteIndex = require_to_absolute_index(); |
| 960 |
var lengthOfArrayLike = require_length_of_array_like(); |
| 961 |
var createMethod = function(IS_INCLUDES) { |
| 962 |
return function($this, el, fromIndex) { |
| 963 |
var O = toIndexedObject($this); |
| 964 |
var length = lengthOfArrayLike(O); |
| 965 |
if (length === 0) return !IS_INCLUDES && -1; |
| 966 |
var index = toAbsoluteIndex(fromIndex, length); |
| 967 |
var value; |
| 968 |
if (IS_INCLUDES && el !== el) while (length > index) { |
| 969 |
value = O[index++]; |
| 970 |
if (value !== value) return true; |
| 971 |
} |
| 972 |
else for (; length > index; index++) if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; |
| 973 |
return !IS_INCLUDES && -1; |
| 974 |
}; |
| 975 |
}; |
| 976 |
module.exports = { |
| 977 |
includes: createMethod(true), |
| 978 |
indexOf: createMethod(false) |
| 979 |
}; |
| 980 |
})); |
| 981 |
|
| 982 |
//#endregion |
| 983 |
//#region node_modules/core-js/internals/object-keys-internal.js |
| 984 |
var require_object_keys_internal = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 985 |
var uncurryThis = require_function_uncurry_this(); |
| 986 |
var hasOwn = require_has_own_property(); |
| 987 |
var toIndexedObject = require_to_indexed_object(); |
| 988 |
var indexOf = require_array_includes().indexOf; |
| 989 |
var hiddenKeys = require_hidden_keys(); |
| 990 |
var push = uncurryThis([].push); |
| 991 |
module.exports = function(object, names) { |
| 992 |
var O = toIndexedObject(object); |
| 993 |
var i = 0; |
| 994 |
var result = []; |
| 995 |
var key; |
| 996 |
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key); |
| 997 |
while (names.length > i) if (hasOwn(O, key = names[i++])) ~indexOf(result, key) || push(result, key); |
| 998 |
return result; |
| 999 |
}; |
| 1000 |
})); |
| 1001 |
|
| 1002 |
//#endregion |
| 1003 |
//#region node_modules/core-js/internals/enum-bug-keys.js |
| 1004 |
var require_enum_bug_keys = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1005 |
module.exports = [ |
| 1006 |
"constructor", |
| 1007 |
"hasOwnProperty", |
| 1008 |
"isPrototypeOf", |
| 1009 |
"propertyIsEnumerable", |
| 1010 |
"toLocaleString", |
| 1011 |
"toString", |
| 1012 |
"valueOf" |
| 1013 |
]; |
| 1014 |
})); |
| 1015 |
|
| 1016 |
//#endregion |
| 1017 |
//#region node_modules/core-js/internals/object-get-own-property-names.js |
| 1018 |
var require_object_get_own_property_names = /* @__PURE__ */ __commonJSMin(((exports) => { |
| 1019 |
var internalObjectKeys = require_object_keys_internal(); |
| 1020 |
var hiddenKeys = require_enum_bug_keys().concat("length", "prototype"); |
| 1021 |
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { |
| 1022 |
return internalObjectKeys(O, hiddenKeys); |
| 1023 |
}; |
| 1024 |
})); |
| 1025 |
|
| 1026 |
//#endregion |
| 1027 |
//#region node_modules/core-js/internals/object-get-own-property-symbols.js |
| 1028 |
var require_object_get_own_property_symbols = /* @__PURE__ */ __commonJSMin(((exports) => { |
| 1029 |
exports.f = Object.getOwnPropertySymbols; |
| 1030 |
})); |
| 1031 |
|
| 1032 |
//#endregion |
| 1033 |
//#region node_modules/core-js/internals/own-keys.js |
| 1034 |
var require_own_keys = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1035 |
var getBuiltIn = require_get_built_in(); |
| 1036 |
var uncurryThis = require_function_uncurry_this(); |
| 1037 |
var getOwnPropertyNamesModule = require_object_get_own_property_names(); |
| 1038 |
var getOwnPropertySymbolsModule = require_object_get_own_property_symbols(); |
| 1039 |
var anObject = require_an_object(); |
| 1040 |
var concat = uncurryThis([].concat); |
| 1041 |
module.exports = getBuiltIn("Reflect", "ownKeys") || function ownKeys(it) { |
| 1042 |
var keys = getOwnPropertyNamesModule.f(anObject(it)); |
| 1043 |
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; |
| 1044 |
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; |
| 1045 |
}; |
| 1046 |
})); |
| 1047 |
|
| 1048 |
//#endregion |
| 1049 |
//#region node_modules/core-js/internals/copy-constructor-properties.js |
| 1050 |
var require_copy_constructor_properties = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1051 |
var hasOwn = require_has_own_property(); |
| 1052 |
var ownKeys = require_own_keys(); |
| 1053 |
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor(); |
| 1054 |
var definePropertyModule = require_object_define_property(); |
| 1055 |
module.exports = function(target, source, exceptions) { |
| 1056 |
var keys = ownKeys(source); |
| 1057 |
var defineProperty = definePropertyModule.f; |
| 1058 |
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; |
| 1059 |
for (var i = 0; i < keys.length; i++) { |
| 1060 |
var key = keys[i]; |
| 1061 |
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); |
| 1062 |
} |
| 1063 |
}; |
| 1064 |
})); |
| 1065 |
|
| 1066 |
//#endregion |
| 1067 |
//#region node_modules/core-js/internals/is-forced.js |
| 1068 |
var require_is_forced = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1069 |
var fails = require_fails(); |
| 1070 |
var isCallable = require_is_callable(); |
| 1071 |
var replacement = /#|\.prototype\./; |
| 1072 |
var isForced = function(feature, detection) { |
| 1073 |
var value = data[normalize(feature)]; |
| 1074 |
return value === POLYFILL ? true : value === NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection; |
| 1075 |
}; |
| 1076 |
var normalize = isForced.normalize = function(string) { |
| 1077 |
return String(string).replace(replacement, ".").toLowerCase(); |
| 1078 |
}; |
| 1079 |
var data = isForced.data = {}; |
| 1080 |
var NATIVE = isForced.NATIVE = "N"; |
| 1081 |
var POLYFILL = isForced.POLYFILL = "P"; |
| 1082 |
module.exports = isForced; |
| 1083 |
})); |
| 1084 |
|
| 1085 |
//#endregion |
| 1086 |
//#region node_modules/core-js/internals/export.js |
| 1087 |
var require_export = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1088 |
var globalThis = require_global_this(); |
| 1089 |
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f; |
| 1090 |
var createNonEnumerableProperty = require_create_non_enumerable_property(); |
| 1091 |
var defineBuiltIn = require_define_built_in(); |
| 1092 |
var defineGlobalProperty = require_define_global_property(); |
| 1093 |
var copyConstructorProperties = require_copy_constructor_properties(); |
| 1094 |
var isForced = require_is_forced(); |
| 1095 |
module.exports = function(options, source) { |
| 1096 |
var TARGET = options.target; |
| 1097 |
var GLOBAL = options.global; |
| 1098 |
var STATIC = options.stat; |
| 1099 |
var FORCED; |
| 1100 |
var target; |
| 1101 |
var key; |
| 1102 |
var targetProperty; |
| 1103 |
var sourceProperty; |
| 1104 |
var descriptor; |
| 1105 |
if (GLOBAL) target = globalThis; |
| 1106 |
else if (STATIC) target = globalThis[TARGET] || defineGlobalProperty(TARGET, {}); |
| 1107 |
else target = globalThis[TARGET] && globalThis[TARGET].prototype; |
| 1108 |
if (target) for (key in source) { |
| 1109 |
sourceProperty = source[key]; |
| 1110 |
if (options.dontCallGetSet) { |
| 1111 |
descriptor = getOwnPropertyDescriptor(target, key); |
| 1112 |
targetProperty = descriptor && descriptor.value; |
| 1113 |
} else targetProperty = target[key]; |
| 1114 |
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced); |
| 1115 |
if (!FORCED && targetProperty !== void 0) { |
| 1116 |
if (typeof sourceProperty == typeof targetProperty) continue; |
| 1117 |
copyConstructorProperties(sourceProperty, targetProperty); |
| 1118 |
} |
| 1119 |
if (options.sham || targetProperty && targetProperty.sham) createNonEnumerableProperty(sourceProperty, "sham", true); |
| 1120 |
defineBuiltIn(target, key, sourceProperty, options); |
| 1121 |
} |
| 1122 |
}; |
| 1123 |
})); |
| 1124 |
|
| 1125 |
//#endregion |
| 1126 |
//#region node_modules/core-js/internals/object-keys.js |
| 1127 |
var require_object_keys = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1128 |
var internalObjectKeys = require_object_keys_internal(); |
| 1129 |
var enumBugKeys = require_enum_bug_keys(); |
| 1130 |
module.exports = Object.keys || function keys(O) { |
| 1131 |
return internalObjectKeys(O, enumBugKeys); |
| 1132 |
}; |
| 1133 |
})); |
| 1134 |
|
| 1135 |
//#endregion |
| 1136 |
//#region node_modules/core-js/internals/object-define-properties.js |
| 1137 |
var require_object_define_properties = /* @__PURE__ */ __commonJSMin(((exports) => { |
| 1138 |
var DESCRIPTORS = require_descriptors(); |
| 1139 |
var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug(); |
| 1140 |
var definePropertyModule = require_object_define_property(); |
| 1141 |
var anObject = require_an_object(); |
| 1142 |
var toIndexedObject = require_to_indexed_object(); |
| 1143 |
var objectKeys = require_object_keys(); |
| 1144 |
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { |
| 1145 |
anObject(O); |
| 1146 |
var props = toIndexedObject(Properties); |
| 1147 |
var keys = objectKeys(Properties); |
| 1148 |
var length = keys.length; |
| 1149 |
var index = 0; |
| 1150 |
var key; |
| 1151 |
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]); |
| 1152 |
return O; |
| 1153 |
}; |
| 1154 |
})); |
| 1155 |
|
| 1156 |
//#endregion |
| 1157 |
//#region node_modules/core-js/internals/html.js |
| 1158 |
var require_html = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1159 |
var getBuiltIn = require_get_built_in(); |
| 1160 |
module.exports = getBuiltIn("document", "documentElement"); |
| 1161 |
})); |
| 1162 |
|
| 1163 |
//#endregion |
| 1164 |
//#region node_modules/core-js/internals/object-create.js |
| 1165 |
var require_object_create = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1166 |
var anObject = require_an_object(); |
| 1167 |
var definePropertiesModule = require_object_define_properties(); |
| 1168 |
var enumBugKeys = require_enum_bug_keys(); |
| 1169 |
var hiddenKeys = require_hidden_keys(); |
| 1170 |
var html = require_html(); |
| 1171 |
var documentCreateElement = require_document_create_element(); |
| 1172 |
var sharedKey = require_shared_key(); |
| 1173 |
var GT = ">"; |
| 1174 |
var LT = "<"; |
| 1175 |
var PROTOTYPE = "prototype"; |
| 1176 |
var SCRIPT = "script"; |
| 1177 |
var IE_PROTO = sharedKey("IE_PROTO"); |
| 1178 |
var EmptyConstructor = function() {}; |
| 1179 |
var scriptTag = function(content) { |
| 1180 |
return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT; |
| 1181 |
}; |
| 1182 |
var NullProtoObjectViaActiveX = function(activeXDocument) { |
| 1183 |
activeXDocument.write(scriptTag("")); |
| 1184 |
activeXDocument.close(); |
| 1185 |
var temp = activeXDocument.parentWindow.Object; |
| 1186 |
activeXDocument = null; |
| 1187 |
return temp; |
| 1188 |
}; |
| 1189 |
var NullProtoObjectViaIFrame = function() { |
| 1190 |
var iframe = documentCreateElement("iframe"); |
| 1191 |
var JS = "java" + SCRIPT + ":"; |
| 1192 |
var iframeDocument; |
| 1193 |
iframe.style.display = "none"; |
| 1194 |
html.appendChild(iframe); |
| 1195 |
iframe.src = String(JS); |
| 1196 |
iframeDocument = iframe.contentWindow.document; |
| 1197 |
iframeDocument.open(); |
| 1198 |
iframeDocument.write(scriptTag("document.F=Object")); |
| 1199 |
iframeDocument.close(); |
| 1200 |
return iframeDocument.F; |
| 1201 |
}; |
| 1202 |
var activeXDocument; |
| 1203 |
var NullProtoObject = function() { |
| 1204 |
try { |
| 1205 |
activeXDocument = new ActiveXObject("htmlfile"); |
| 1206 |
} catch (error) {} |
| 1207 |
NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); |
| 1208 |
var length = enumBugKeys.length; |
| 1209 |
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; |
| 1210 |
return NullProtoObject(); |
| 1211 |
}; |
| 1212 |
hiddenKeys[IE_PROTO] = true; |
| 1213 |
module.exports = Object.create || function create(O, Properties) { |
| 1214 |
var result; |
| 1215 |
if (O !== null) { |
| 1216 |
EmptyConstructor[PROTOTYPE] = anObject(O); |
| 1217 |
result = new EmptyConstructor(); |
| 1218 |
EmptyConstructor[PROTOTYPE] = null; |
| 1219 |
result[IE_PROTO] = O; |
| 1220 |
} else result = NullProtoObject(); |
| 1221 |
return Properties === void 0 ? result : definePropertiesModule.f(result, Properties); |
| 1222 |
}; |
| 1223 |
})); |
| 1224 |
|
| 1225 |
//#endregion |
| 1226 |
//#region node_modules/core-js/internals/add-to-unscopables.js |
| 1227 |
var require_add_to_unscopables = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1228 |
var wellKnownSymbol = require_well_known_symbol(); |
| 1229 |
var create = require_object_create(); |
| 1230 |
var defineProperty = require_object_define_property().f; |
| 1231 |
var UNSCOPABLES = wellKnownSymbol("unscopables"); |
| 1232 |
var ArrayPrototype = Array.prototype; |
| 1233 |
if (ArrayPrototype[UNSCOPABLES] === void 0) defineProperty(ArrayPrototype, UNSCOPABLES, { |
| 1234 |
configurable: true, |
| 1235 |
value: create(null) |
| 1236 |
}); |
| 1237 |
module.exports = function(key) { |
| 1238 |
ArrayPrototype[UNSCOPABLES][key] = true; |
| 1239 |
}; |
| 1240 |
})); |
| 1241 |
|
| 1242 |
//#endregion |
| 1243 |
//#region node_modules/core-js/modules/es.array.includes.js |
| 1244 |
var require_es_array_includes = /* @__PURE__ */ __commonJSMin((() => { |
| 1245 |
var $ = require_export(); |
| 1246 |
var $includes = require_array_includes().includes; |
| 1247 |
var fails = require_fails(); |
| 1248 |
var addToUnscopables = require_add_to_unscopables(); |
| 1249 |
$({ |
| 1250 |
target: "Array", |
| 1251 |
proto: true, |
| 1252 |
forced: fails(function() { |
| 1253 |
return !Array(1).includes(); |
| 1254 |
}) |
| 1255 |
}, { includes: function includes(el) { |
| 1256 |
return $includes(this, el, arguments.length > 1 ? arguments[1] : void 0); |
| 1257 |
} }); |
| 1258 |
addToUnscopables("includes"); |
| 1259 |
})); |
| 1260 |
|
| 1261 |
//#endregion |
| 1262 |
//#region node_modules/core-js/internals/is-array.js |
| 1263 |
var require_is_array = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1264 |
var classof = require_classof_raw(); |
| 1265 |
module.exports = Array.isArray || function isArray(argument) { |
| 1266 |
return classof(argument) === "Array"; |
| 1267 |
}; |
| 1268 |
})); |
| 1269 |
|
| 1270 |
//#endregion |
| 1271 |
//#region node_modules/core-js/internals/array-set-length.js |
| 1272 |
var require_array_set_length = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1273 |
var DESCRIPTORS = require_descriptors(); |
| 1274 |
var isArray = require_is_array(); |
| 1275 |
var $TypeError = TypeError; |
| 1276 |
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; |
| 1277 |
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function() { |
| 1278 |
if (this !== void 0) return true; |
| 1279 |
try { |
| 1280 |
Object.defineProperty([], "length", { writable: false }).length = 1; |
| 1281 |
} catch (error) { |
| 1282 |
return error instanceof TypeError; |
| 1283 |
} |
| 1284 |
}(); |
| 1285 |
module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length) { |
| 1286 |
if (isArray(O) && !getOwnPropertyDescriptor(O, "length").writable) throw new $TypeError("Cannot set read only .length"); |
| 1287 |
return O.length = length; |
| 1288 |
} : function(O, length) { |
| 1289 |
return O.length = length; |
| 1290 |
}; |
| 1291 |
})); |
| 1292 |
|
| 1293 |
//#endregion |
| 1294 |
//#region node_modules/core-js/internals/does-not-exceed-safe-integer.js |
| 1295 |
var require_does_not_exceed_safe_integer = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1296 |
var $TypeError = TypeError; |
| 1297 |
var MAX_SAFE_INTEGER = 9007199254740991; |
| 1298 |
module.exports = function(it) { |
| 1299 |
if (it > MAX_SAFE_INTEGER) throw $TypeError("Maximum allowed index exceeded"); |
| 1300 |
return it; |
| 1301 |
}; |
| 1302 |
})); |
| 1303 |
|
| 1304 |
//#endregion |
| 1305 |
//#region node_modules/core-js/modules/es.array.push.js |
| 1306 |
var require_es_array_push = /* @__PURE__ */ __commonJSMin((() => { |
| 1307 |
var $ = require_export(); |
| 1308 |
var toObject = require_to_object(); |
| 1309 |
var lengthOfArrayLike = require_length_of_array_like(); |
| 1310 |
var setArrayLength = require_array_set_length(); |
| 1311 |
var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer(); |
| 1312 |
var INCORRECT_TO_LENGTH = require_fails()(function() { |
| 1313 |
return [].push.call({ length: 4294967296 }, 1) !== 4294967297; |
| 1314 |
}); |
| 1315 |
var properErrorOnNonWritableLength = function() { |
| 1316 |
try { |
| 1317 |
Object.defineProperty([], "length", { writable: false }).push(); |
| 1318 |
} catch (error) { |
| 1319 |
return error instanceof TypeError; |
| 1320 |
} |
| 1321 |
}; |
| 1322 |
$({ |
| 1323 |
target: "Array", |
| 1324 |
proto: true, |
| 1325 |
arity: 1, |
| 1326 |
forced: INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength() |
| 1327 |
}, { push: function push(item) { |
| 1328 |
var O = toObject(this); |
| 1329 |
var len = lengthOfArrayLike(O); |
| 1330 |
var argCount = arguments.length; |
| 1331 |
doesNotExceedSafeInteger(len + argCount); |
| 1332 |
for (var i = 0; i < argCount; i++) { |
| 1333 |
O[len] = arguments[i]; |
| 1334 |
len++; |
| 1335 |
} |
| 1336 |
setArrayLength(O, len); |
| 1337 |
return len; |
| 1338 |
} }); |
| 1339 |
})); |
| 1340 |
|
| 1341 |
//#endregion |
| 1342 |
//#region node_modules/core-js/internals/an-instance.js |
| 1343 |
var require_an_instance = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1344 |
var isPrototypeOf = require_object_is_prototype_of(); |
| 1345 |
var $TypeError = TypeError; |
| 1346 |
module.exports = function(it, Prototype) { |
| 1347 |
if (isPrototypeOf(Prototype, it)) return it; |
| 1348 |
throw new $TypeError("Incorrect invocation"); |
| 1349 |
}; |
| 1350 |
})); |
| 1351 |
|
| 1352 |
//#endregion |
| 1353 |
//#region node_modules/core-js/internals/correct-prototype-getter.js |
| 1354 |
var require_correct_prototype_getter = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1355 |
var fails = require_fails(); |
| 1356 |
module.exports = !fails(function() { |
| 1357 |
function F() {} |
| 1358 |
F.prototype.constructor = null; |
| 1359 |
return Object.getPrototypeOf(new F()) !== F.prototype; |
| 1360 |
}); |
| 1361 |
})); |
| 1362 |
|
| 1363 |
//#endregion |
| 1364 |
//#region node_modules/core-js/internals/object-get-prototype-of.js |
| 1365 |
var require_object_get_prototype_of = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1366 |
var hasOwn = require_has_own_property(); |
| 1367 |
var isCallable = require_is_callable(); |
| 1368 |
var toObject = require_to_object(); |
| 1369 |
var sharedKey = require_shared_key(); |
| 1370 |
var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter(); |
| 1371 |
var IE_PROTO = sharedKey("IE_PROTO"); |
| 1372 |
var $Object = Object; |
| 1373 |
var ObjectPrototype = $Object.prototype; |
| 1374 |
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) { |
| 1375 |
var object = toObject(O); |
| 1376 |
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO]; |
| 1377 |
var constructor = object.constructor; |
| 1378 |
if (isCallable(constructor) && object instanceof constructor) return constructor.prototype; |
| 1379 |
return object instanceof $Object ? ObjectPrototype : null; |
| 1380 |
}; |
| 1381 |
})); |
| 1382 |
|
| 1383 |
//#endregion |
| 1384 |
//#region node_modules/core-js/internals/define-built-in-accessor.js |
| 1385 |
var require_define_built_in_accessor = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1386 |
var makeBuiltIn = require_make_built_in(); |
| 1387 |
var defineProperty = require_object_define_property(); |
| 1388 |
module.exports = function(target, name, descriptor) { |
| 1389 |
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true }); |
| 1390 |
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true }); |
| 1391 |
return defineProperty.f(target, name, descriptor); |
| 1392 |
}; |
| 1393 |
})); |
| 1394 |
|
| 1395 |
//#endregion |
| 1396 |
//#region node_modules/core-js/internals/create-property.js |
| 1397 |
var require_create_property = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1398 |
var DESCRIPTORS = require_descriptors(); |
| 1399 |
var definePropertyModule = require_object_define_property(); |
| 1400 |
var createPropertyDescriptor = require_create_property_descriptor(); |
| 1401 |
module.exports = function(object, key, value) { |
| 1402 |
if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value)); |
| 1403 |
else object[key] = value; |
| 1404 |
}; |
| 1405 |
})); |
| 1406 |
|
| 1407 |
//#endregion |
| 1408 |
//#region node_modules/core-js/internals/iterators-core.js |
| 1409 |
var require_iterators_core = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1410 |
var fails = require_fails(); |
| 1411 |
var isCallable = require_is_callable(); |
| 1412 |
var isObject = require_is_object(); |
| 1413 |
var create = require_object_create(); |
| 1414 |
var getPrototypeOf = require_object_get_prototype_of(); |
| 1415 |
var defineBuiltIn = require_define_built_in(); |
| 1416 |
var wellKnownSymbol = require_well_known_symbol(); |
| 1417 |
var IS_PURE = require_is_pure(); |
| 1418 |
var ITERATOR = wellKnownSymbol("iterator"); |
| 1419 |
var BUGGY_SAFARI_ITERATORS = false; |
| 1420 |
var IteratorPrototype; |
| 1421 |
var PrototypeOfArrayIteratorPrototype; |
| 1422 |
var arrayIterator; |
| 1423 |
if ([].keys) { |
| 1424 |
arrayIterator = [].keys(); |
| 1425 |
if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; |
| 1426 |
else { |
| 1427 |
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); |
| 1428 |
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; |
| 1429 |
} |
| 1430 |
} |
| 1431 |
if (!isObject(IteratorPrototype) || fails(function() { |
| 1432 |
var test = {}; |
| 1433 |
return IteratorPrototype[ITERATOR].call(test) !== test; |
| 1434 |
})) IteratorPrototype = {}; |
| 1435 |
else if (IS_PURE) IteratorPrototype = create(IteratorPrototype); |
| 1436 |
if (!isCallable(IteratorPrototype[ITERATOR])) defineBuiltIn(IteratorPrototype, ITERATOR, function() { |
| 1437 |
return this; |
| 1438 |
}); |
| 1439 |
module.exports = { |
| 1440 |
IteratorPrototype, |
| 1441 |
BUGGY_SAFARI_ITERATORS |
| 1442 |
}; |
| 1443 |
})); |
| 1444 |
|
| 1445 |
//#endregion |
| 1446 |
//#region node_modules/core-js/modules/es.iterator.constructor.js |
| 1447 |
var require_es_iterator_constructor = /* @__PURE__ */ __commonJSMin((() => { |
| 1448 |
var $ = require_export(); |
| 1449 |
var globalThis = require_global_this(); |
| 1450 |
var anInstance = require_an_instance(); |
| 1451 |
var anObject = require_an_object(); |
| 1452 |
var isCallable = require_is_callable(); |
| 1453 |
var getPrototypeOf = require_object_get_prototype_of(); |
| 1454 |
var defineBuiltInAccessor = require_define_built_in_accessor(); |
| 1455 |
var createProperty = require_create_property(); |
| 1456 |
var fails = require_fails(); |
| 1457 |
var hasOwn = require_has_own_property(); |
| 1458 |
var wellKnownSymbol = require_well_known_symbol(); |
| 1459 |
var IteratorPrototype = require_iterators_core().IteratorPrototype; |
| 1460 |
var DESCRIPTORS = require_descriptors(); |
| 1461 |
var IS_PURE = require_is_pure(); |
| 1462 |
var CONSTRUCTOR = "constructor"; |
| 1463 |
var ITERATOR = "Iterator"; |
| 1464 |
var TO_STRING_TAG = wellKnownSymbol("toStringTag"); |
| 1465 |
var $TypeError = TypeError; |
| 1466 |
var NativeIterator = globalThis[ITERATOR]; |
| 1467 |
var FORCED = IS_PURE || !isCallable(NativeIterator) || NativeIterator.prototype !== IteratorPrototype || !fails(function() { |
| 1468 |
NativeIterator({}); |
| 1469 |
}); |
| 1470 |
var IteratorConstructor = function Iterator() { |
| 1471 |
anInstance(this, IteratorPrototype); |
| 1472 |
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError("Abstract class Iterator not directly constructable"); |
| 1473 |
}; |
| 1474 |
var defineIteratorPrototypeAccessor = function(key, value) { |
| 1475 |
if (DESCRIPTORS) defineBuiltInAccessor(IteratorPrototype, key, { |
| 1476 |
configurable: true, |
| 1477 |
get: function() { |
| 1478 |
return value; |
| 1479 |
}, |
| 1480 |
set: function(replacement) { |
| 1481 |
anObject(this); |
| 1482 |
if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property"); |
| 1483 |
if (hasOwn(this, key)) this[key] = replacement; |
| 1484 |
else createProperty(this, key, replacement); |
| 1485 |
} |
| 1486 |
}); |
| 1487 |
else IteratorPrototype[key] = value; |
| 1488 |
}; |
| 1489 |
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR); |
| 1490 |
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor); |
| 1491 |
IteratorConstructor.prototype = IteratorPrototype; |
| 1492 |
$({ |
| 1493 |
global: true, |
| 1494 |
constructor: true, |
| 1495 |
forced: FORCED |
| 1496 |
}, { Iterator: IteratorConstructor }); |
| 1497 |
})); |
| 1498 |
|
| 1499 |
//#endregion |
| 1500 |
//#region node_modules/core-js/modules/esnext.iterator.constructor.js |
| 1501 |
var require_esnext_iterator_constructor = /* @__PURE__ */ __commonJSMin((() => { |
| 1502 |
require_es_iterator_constructor(); |
| 1503 |
})); |
| 1504 |
|
| 1505 |
//#endregion |
| 1506 |
//#region node_modules/core-js/internals/function-uncurry-this-clause.js |
| 1507 |
var require_function_uncurry_this_clause = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1508 |
var classofRaw = require_classof_raw(); |
| 1509 |
var uncurryThis = require_function_uncurry_this(); |
| 1510 |
module.exports = function(fn) { |
| 1511 |
if (classofRaw(fn) === "Function") return uncurryThis(fn); |
| 1512 |
}; |
| 1513 |
})); |
| 1514 |
|
| 1515 |
//#endregion |
| 1516 |
//#region node_modules/core-js/internals/function-bind-context.js |
| 1517 |
var require_function_bind_context = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1518 |
var uncurryThis = require_function_uncurry_this_clause(); |
| 1519 |
var aCallable = require_a_callable(); |
| 1520 |
var NATIVE_BIND = require_function_bind_native(); |
| 1521 |
var bind = uncurryThis(uncurryThis.bind); |
| 1522 |
module.exports = function(fn, that) { |
| 1523 |
aCallable(fn); |
| 1524 |
return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() { |
| 1525 |
return fn.apply(that, arguments); |
| 1526 |
}; |
| 1527 |
}; |
| 1528 |
})); |
| 1529 |
|
| 1530 |
//#endregion |
| 1531 |
//#region node_modules/core-js/internals/iterators.js |
| 1532 |
var require_iterators = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1533 |
module.exports = {}; |
| 1534 |
})); |
| 1535 |
|
| 1536 |
//#endregion |
| 1537 |
//#region node_modules/core-js/internals/is-array-iterator-method.js |
| 1538 |
var require_is_array_iterator_method = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1539 |
var wellKnownSymbol = require_well_known_symbol(); |
| 1540 |
var Iterators = require_iterators(); |
| 1541 |
var ITERATOR = wellKnownSymbol("iterator"); |
| 1542 |
var ArrayPrototype = Array.prototype; |
| 1543 |
module.exports = function(it) { |
| 1544 |
return it !== void 0 && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it); |
| 1545 |
}; |
| 1546 |
})); |
| 1547 |
|
| 1548 |
//#endregion |
| 1549 |
//#region node_modules/core-js/internals/to-string-tag-support.js |
| 1550 |
var require_to_string_tag_support = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1551 |
var TO_STRING_TAG = require_well_known_symbol()("toStringTag"); |
| 1552 |
var test = {}; |
| 1553 |
test[TO_STRING_TAG] = "z"; |
| 1554 |
module.exports = String(test) === "[object z]"; |
| 1555 |
})); |
| 1556 |
|
| 1557 |
//#endregion |
| 1558 |
//#region node_modules/core-js/internals/classof.js |
| 1559 |
var require_classof = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1560 |
var TO_STRING_TAG_SUPPORT = require_to_string_tag_support(); |
| 1561 |
var isCallable = require_is_callable(); |
| 1562 |
var classofRaw = require_classof_raw(); |
| 1563 |
var TO_STRING_TAG = require_well_known_symbol()("toStringTag"); |
| 1564 |
var $Object = Object; |
| 1565 |
var CORRECT_ARGUMENTS = classofRaw(function() { |
| 1566 |
return arguments; |
| 1567 |
}()) === "Arguments"; |
| 1568 |
var tryGet = function(it, key) { |
| 1569 |
try { |
| 1570 |
return it[key]; |
| 1571 |
} catch (error) {} |
| 1572 |
}; |
| 1573 |
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) { |
| 1574 |
var O; |
| 1575 |
var tag; |
| 1576 |
var result; |
| 1577 |
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === "Object" && isCallable(O.callee) ? "Arguments" : result; |
| 1578 |
}; |
| 1579 |
})); |
| 1580 |
|
| 1581 |
//#endregion |
| 1582 |
//#region node_modules/core-js/internals/get-iterator-method.js |
| 1583 |
var require_get_iterator_method = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1584 |
var classof = require_classof(); |
| 1585 |
var getMethod = require_get_method(); |
| 1586 |
var isNullOrUndefined = require_is_null_or_undefined(); |
| 1587 |
var Iterators = require_iterators(); |
| 1588 |
var ITERATOR = require_well_known_symbol()("iterator"); |
| 1589 |
module.exports = function(it) { |
| 1590 |
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR) || getMethod(it, "@@iterator") || Iterators[classof(it)]; |
| 1591 |
}; |
| 1592 |
})); |
| 1593 |
|
| 1594 |
//#endregion |
| 1595 |
//#region node_modules/core-js/internals/get-iterator.js |
| 1596 |
var require_get_iterator = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1597 |
var call = require_function_call(); |
| 1598 |
var aCallable = require_a_callable(); |
| 1599 |
var anObject = require_an_object(); |
| 1600 |
var tryToString = require_try_to_string(); |
| 1601 |
var getIteratorMethod = require_get_iterator_method(); |
| 1602 |
var $TypeError = TypeError; |
| 1603 |
module.exports = function(argument, usingIterator) { |
| 1604 |
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator; |
| 1605 |
if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument)); |
| 1606 |
throw new $TypeError(tryToString(argument) + " is not iterable"); |
| 1607 |
}; |
| 1608 |
})); |
| 1609 |
|
| 1610 |
//#endregion |
| 1611 |
//#region node_modules/core-js/internals/iterator-close.js |
| 1612 |
var require_iterator_close = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1613 |
var call = require_function_call(); |
| 1614 |
var anObject = require_an_object(); |
| 1615 |
var getMethod = require_get_method(); |
| 1616 |
module.exports = function(iterator, kind, value) { |
| 1617 |
var innerResult; |
| 1618 |
var innerError; |
| 1619 |
anObject(iterator); |
| 1620 |
try { |
| 1621 |
innerResult = getMethod(iterator, "return"); |
| 1622 |
if (!innerResult) { |
| 1623 |
if (kind === "throw") throw value; |
| 1624 |
return value; |
| 1625 |
} |
| 1626 |
innerResult = call(innerResult, iterator); |
| 1627 |
} catch (error) { |
| 1628 |
innerError = true; |
| 1629 |
innerResult = error; |
| 1630 |
} |
| 1631 |
if (kind === "throw") throw value; |
| 1632 |
if (innerError) throw innerResult; |
| 1633 |
anObject(innerResult); |
| 1634 |
return value; |
| 1635 |
}; |
| 1636 |
})); |
| 1637 |
|
| 1638 |
//#endregion |
| 1639 |
//#region node_modules/core-js/internals/iterate.js |
| 1640 |
var require_iterate = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1641 |
var bind = require_function_bind_context(); |
| 1642 |
var call = require_function_call(); |
| 1643 |
var anObject = require_an_object(); |
| 1644 |
var tryToString = require_try_to_string(); |
| 1645 |
var isArrayIteratorMethod = require_is_array_iterator_method(); |
| 1646 |
var lengthOfArrayLike = require_length_of_array_like(); |
| 1647 |
var isPrototypeOf = require_object_is_prototype_of(); |
| 1648 |
var getIterator = require_get_iterator(); |
| 1649 |
var getIteratorMethod = require_get_iterator_method(); |
| 1650 |
var iteratorClose = require_iterator_close(); |
| 1651 |
var $TypeError = TypeError; |
| 1652 |
var Result = function(stopped, result) { |
| 1653 |
this.stopped = stopped; |
| 1654 |
this.result = result; |
| 1655 |
}; |
| 1656 |
var ResultPrototype = Result.prototype; |
| 1657 |
module.exports = function(iterable, unboundFunction, options) { |
| 1658 |
var that = options && options.that; |
| 1659 |
var AS_ENTRIES = !!(options && options.AS_ENTRIES); |
| 1660 |
var IS_RECORD = !!(options && options.IS_RECORD); |
| 1661 |
var IS_ITERATOR = !!(options && options.IS_ITERATOR); |
| 1662 |
var INTERRUPTED = !!(options && options.INTERRUPTED); |
| 1663 |
var fn = bind(unboundFunction, that); |
| 1664 |
var iterator; |
| 1665 |
var iterFn; |
| 1666 |
var index; |
| 1667 |
var length; |
| 1668 |
var result; |
| 1669 |
var next; |
| 1670 |
var step; |
| 1671 |
var stop = function(condition) { |
| 1672 |
if (iterator) iteratorClose(iterator, "normal"); |
| 1673 |
return new Result(true, condition); |
| 1674 |
}; |
| 1675 |
var callFn = function(value) { |
| 1676 |
if (AS_ENTRIES) { |
| 1677 |
anObject(value); |
| 1678 |
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); |
| 1679 |
} |
| 1680 |
return INTERRUPTED ? fn(value, stop) : fn(value); |
| 1681 |
}; |
| 1682 |
if (IS_RECORD) iterator = iterable.iterator; |
| 1683 |
else if (IS_ITERATOR) iterator = iterable; |
| 1684 |
else { |
| 1685 |
iterFn = getIteratorMethod(iterable); |
| 1686 |
if (!iterFn) throw new $TypeError(tryToString(iterable) + " is not iterable"); |
| 1687 |
if (isArrayIteratorMethod(iterFn)) { |
| 1688 |
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) { |
| 1689 |
result = callFn(iterable[index]); |
| 1690 |
if (result && isPrototypeOf(ResultPrototype, result)) return result; |
| 1691 |
} |
| 1692 |
return new Result(false); |
| 1693 |
} |
| 1694 |
iterator = getIterator(iterable, iterFn); |
| 1695 |
} |
| 1696 |
next = IS_RECORD ? iterable.next : iterator.next; |
| 1697 |
while (!(step = call(next, iterator)).done) { |
| 1698 |
try { |
| 1699 |
result = callFn(step.value); |
| 1700 |
} catch (error) { |
| 1701 |
iteratorClose(iterator, "throw", error); |
| 1702 |
} |
| 1703 |
if (typeof result == "object" && result && isPrototypeOf(ResultPrototype, result)) return result; |
| 1704 |
} |
| 1705 |
return new Result(false); |
| 1706 |
}; |
| 1707 |
})); |
| 1708 |
|
| 1709 |
//#endregion |
| 1710 |
//#region node_modules/core-js/internals/get-iterator-direct.js |
| 1711 |
var require_get_iterator_direct = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1712 |
module.exports = function(obj) { |
| 1713 |
return { |
| 1714 |
iterator: obj, |
| 1715 |
next: obj.next, |
| 1716 |
done: false |
| 1717 |
}; |
| 1718 |
}; |
| 1719 |
})); |
| 1720 |
|
| 1721 |
//#endregion |
| 1722 |
//#region node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js |
| 1723 |
var require_iterator_helper_without_closing_on_early_error = /* @__PURE__ */ __commonJSMin(((exports, module) => { |
| 1724 |
var globalThis = require_global_this(); |
| 1725 |
module.exports = function(METHOD_NAME, ExpectedError) { |
| 1726 |
var Iterator = globalThis.Iterator; |
| 1727 |
var IteratorPrototype = Iterator && Iterator.prototype; |
| 1728 |
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME]; |
| 1729 |
var CLOSED = false; |
| 1730 |
if (method) try { |
| 1731 |
method.call({ |
| 1732 |
next: function() { |
| 1733 |
return { done: true }; |
| 1734 |
}, |
| 1735 |
"return": function() { |
| 1736 |
CLOSED = true; |
| 1737 |
} |
| 1738 |
}, -1); |
| 1739 |
} catch (error) { |
| 1740 |
if (!(error instanceof ExpectedError)) CLOSED = false; |
| 1741 |
} |
| 1742 |
if (!CLOSED) return method; |
| 1743 |
}; |
| 1744 |
})); |
| 1745 |
|
| 1746 |
//#endregion |
| 1747 |
//#region node_modules/core-js/modules/es.iterator.find.js |
| 1748 |
var require_es_iterator_find = /* @__PURE__ */ __commonJSMin((() => { |
| 1749 |
var $ = require_export(); |
| 1750 |
var call = require_function_call(); |
| 1751 |
var iterate = require_iterate(); |
| 1752 |
var aCallable = require_a_callable(); |
| 1753 |
var anObject = require_an_object(); |
| 1754 |
var getIteratorDirect = require_get_iterator_direct(); |
| 1755 |
var iteratorClose = require_iterator_close(); |
| 1756 |
var findWithoutClosingOnEarlyError = require_iterator_helper_without_closing_on_early_error()("find", TypeError); |
| 1757 |
$({ |
| 1758 |
target: "Iterator", |
| 1759 |
proto: true, |
| 1760 |
real: true, |
| 1761 |
forced: findWithoutClosingOnEarlyError |
| 1762 |
}, { find: function find(predicate) { |
| 1763 |
anObject(this); |
| 1764 |
try { |
| 1765 |
aCallable(predicate); |
| 1766 |
} catch (error) { |
| 1767 |
iteratorClose(this, "throw", error); |
| 1768 |
} |
| 1769 |
if (findWithoutClosingOnEarlyError) return call(findWithoutClosingOnEarlyError, this, predicate); |
| 1770 |
var record = getIteratorDirect(this); |
| 1771 |
var counter = 0; |
| 1772 |
return iterate(record, function(value, stop) { |
| 1773 |
if (predicate(value, counter++)) return stop(value); |
| 1774 |
}, { |
| 1775 |
IS_RECORD: true, |
| 1776 |
INTERRUPTED: true |
| 1777 |
}).result; |
| 1778 |
} }); |
| 1779 |
})); |
| 1780 |
|
| 1781 |
//#endregion |
| 1782 |
//#region node_modules/core-js/modules/esnext.iterator.find.js |
| 1783 |
var require_esnext_iterator_find = /* @__PURE__ */ __commonJSMin((() => { |
| 1784 |
require_es_iterator_find(); |
| 1785 |
})); |
| 1786 |
|
| 1787 |
//#endregion |
| 1788 |
//#region node_modules/core-js/modules/es.iterator.for-each.js |
| 1789 |
var require_es_iterator_for_each = /* @__PURE__ */ __commonJSMin((() => { |
| 1790 |
var $ = require_export(); |
| 1791 |
var call = require_function_call(); |
| 1792 |
var iterate = require_iterate(); |
| 1793 |
var aCallable = require_a_callable(); |
| 1794 |
var anObject = require_an_object(); |
| 1795 |
var getIteratorDirect = require_get_iterator_direct(); |
| 1796 |
var iteratorClose = require_iterator_close(); |
| 1797 |
var forEachWithoutClosingOnEarlyError = require_iterator_helper_without_closing_on_early_error()("forEach", TypeError); |
| 1798 |
$({ |
| 1799 |
target: "Iterator", |
| 1800 |
proto: true, |
| 1801 |
real: true, |
| 1802 |
forced: forEachWithoutClosingOnEarlyError |
| 1803 |
}, { forEach: function forEach(fn) { |
| 1804 |
anObject(this); |
| 1805 |
try { |
| 1806 |
aCallable(fn); |
| 1807 |
} catch (error) { |
| 1808 |
iteratorClose(this, "throw", error); |
| 1809 |
} |
| 1810 |
if (forEachWithoutClosingOnEarlyError) return call(forEachWithoutClosingOnEarlyError, this, fn); |
| 1811 |
var record = getIteratorDirect(this); |
| 1812 |
var counter = 0; |
| 1813 |
iterate(record, function(value) { |
| 1814 |
fn(value, counter++); |
| 1815 |
}, { IS_RECORD: true }); |
| 1816 |
} }); |
| 1817 |
})); |
| 1818 |
|
| 1819 |
//#endregion |
| 1820 |
//#region node_modules/core-js/modules/esnext.iterator.for-each.js |
| 1821 |
var require_esnext_iterator_for_each = /* @__PURE__ */ __commonJSMin((() => { |
| 1822 |
require_es_iterator_for_each(); |
| 1823 |
})); |
| 1824 |
|
| 1825 |
//#endregion |
| 1826 |
//#region assets/dev/js/frontend/handlers/container/grid-container.js |
| 1827 |
var require_grid_container = /* @__PURE__ */ __commonJSMin(((exports) => { |
| 1828 |
init_objectSpread2(); |
| 1829 |
init_defineProperty(); |
| 1830 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 1831 |
exports.default = void 0; |
| 1832 |
require_es_array_includes(); |
| 1833 |
require_es_array_push(); |
| 1834 |
require_esnext_iterator_constructor(); |
| 1835 |
require_esnext_iterator_find(); |
| 1836 |
require_esnext_iterator_for_each(); |
| 1837 |
var GridContainer = class GridContainer extends elementorModules.frontend.handlers.Base { |
| 1838 |
static bindDeviceModeListener() { |
| 1839 |
if (GridContainer.isDeviceModeListenerBound) return; |
| 1840 |
GridContainer.isDeviceModeListenerBound = true; |
| 1841 |
elementor.channels.deviceMode.on("change", () => { |
| 1842 |
GridContainer.clearCache(); |
| 1843 |
}); |
| 1844 |
} |
| 1845 |
static clearCache() { |
| 1846 |
GridContainer.cacheByValues.clear(); |
| 1847 |
} |
| 1848 |
static isGridLayoutReady(handler) { |
| 1849 |
var _handler$elements; |
| 1850 |
return (_handler$elements = handler.elements) === null || _handler$elements === void 0 || (_handler$elements = _handler$elements.container) === null || _handler$elements === void 0 ? void 0 : _handler$elements.classList.contains("e-grid"); |
| 1851 |
} |
| 1852 |
static hasValidGridDimensions(dimensions) { |
| 1853 |
var _dimensions$rows; |
| 1854 |
var _dimensions$columns; |
| 1855 |
return (dimensions === null || dimensions === void 0 || (_dimensions$rows = dimensions.rows) === null || _dimensions$rows === void 0 ? void 0 : _dimensions$rows.length) > 0 && (dimensions === null || dimensions === void 0 || (_dimensions$columns = dimensions.columns) === null || _dimensions$columns === void 0 ? void 0 : _dimensions$columns.length) > 0; |
| 1856 |
} |
| 1857 |
static isDimensionsEntryCacheable(handler, entry) { |
| 1858 |
return GridContainer.isGridLayoutReady(handler) && GridContainer.hasValidGridDimensions(entry.dimensions); |
| 1859 |
} |
| 1860 |
static buildCalculationKey(handler) { |
| 1861 |
const device = elementor.channels.deviceMode.request("currentMode"), elementSettings = handler.getElementSettings(), { grid_auto_flow: gridAutoFlow } = elementSettings, rowsSize = elementorFrontend.utils.controls.getResponsiveControlValue(elementSettings, "grid_rows_grid", "size", device), columnsSize = elementorFrontend.utils.controls.getResponsiveControlValue(elementSettings, "grid_columns_grid", "size", device), keyParts = [ |
| 1862 |
device, |
| 1863 |
gridAutoFlow, |
| 1864 |
rowsSize, |
| 1865 |
elementorFrontend.utils.controls.getResponsiveControlValue(elementSettings, "grid_rows_grid", "unit", device), |
| 1866 |
columnsSize, |
| 1867 |
elementorFrontend.utils.controls.getResponsiveControlValue(elementSettings, "grid_columns_grid", "unit", device) |
| 1868 |
], { outlineParentContainer } = handler.elements; |
| 1869 |
if (outlineParentContainer) { |
| 1870 |
var _columnsValue$trim; |
| 1871 |
var _rowsValue$trim; |
| 1872 |
const columnsValue = handler.getComputedStyle(outlineParentContainer, "grid-template-columns"); |
| 1873 |
const rowsValue = handler.getComputedStyle(outlineParentContainer, "grid-template-rows"); |
| 1874 |
keyParts.push((_columnsValue$trim = columnsValue === null || columnsValue === void 0 ? void 0 : columnsValue.trim()) !== null && _columnsValue$trim !== void 0 ? _columnsValue$trim : "", (_rowsValue$trim = rowsValue === null || rowsValue === void 0 ? void 0 : rowsValue.trim()) !== null && _rowsValue$trim !== void 0 ? _rowsValue$trim : ""); |
| 1875 |
} |
| 1876 |
return keyParts.join("|"); |
| 1877 |
} |
| 1878 |
static buildOutlineCacheKey(calculationKey, childrenLength) { |
| 1879 |
return calculationKey + "|children:" + childrenLength; |
| 1880 |
} |
| 1881 |
static computeMaxElementsNumber(handler, gridDimensions) { |
| 1882 |
const elementSettings = handler.getElementSettings(), device = elementor.channels.deviceMode.request("currentMode"), { grid_auto_flow: gridAutoFlow } = elementSettings; |
| 1883 |
if ("row" === gridAutoFlow) { |
| 1884 |
const rows = elementorFrontend.utils.controls.getResponsiveControlValue(elementSettings, "grid_rows_grid", "size", device); |
| 1885 |
const rowsLength = isNaN(rows) ? String(rows).split(" ").length : rows; |
| 1886 |
return gridDimensions.columns.length * rowsLength; |
| 1887 |
} |
| 1888 |
const columns = elementorFrontend.utils.controls.getResponsiveControlValue(elementSettings, "grid_columns_grid", "size", device); |
| 1889 |
const columnsLength = isNaN(columns) ? String(columns).split(" ").length : columns; |
| 1890 |
return gridDimensions.rows.length * columnsLength; |
| 1891 |
} |
| 1892 |
static computeDimensionsCache(handler) { |
| 1893 |
const currentDevice = elementor.channels.deviceMode.request("currentMode"); |
| 1894 |
const dimensions = { |
| 1895 |
rows: handler.getControlValues("grid_rows_grid", currentDevice, "grid-template-rows") || 1, |
| 1896 |
columns: handler.getControlValues("grid_columns_grid", currentDevice, "grid-template-columns") || 1 |
| 1897 |
}; |
| 1898 |
return { |
| 1899 |
dimensions, |
| 1900 |
maxElementsNumber: GridContainer.computeMaxElementsNumber(handler, dimensions) |
| 1901 |
}; |
| 1902 |
} |
| 1903 |
static getDimensionsCache(handler) { |
| 1904 |
const calculationKey = GridContainer.buildCalculationKey(handler); |
| 1905 |
const cached = GridContainer.cacheByValues.get(calculationKey); |
| 1906 |
if (cached === null || cached === void 0 ? void 0 : cached.dimensions) return cached; |
| 1907 |
const entry = GridContainer.computeDimensionsCache(handler); |
| 1908 |
if (GridContainer.isDimensionsEntryCacheable(handler, entry)) GridContainer.cacheByValues.set(calculationKey, entry); |
| 1909 |
return entry; |
| 1910 |
} |
| 1911 |
static getCachedMaxOutlineElementsNumber(handler, childrenLength) { |
| 1912 |
const calculationKey = GridContainer.buildCalculationKey(handler); |
| 1913 |
const outlineCacheKey = GridContainer.buildOutlineCacheKey(calculationKey, childrenLength); |
| 1914 |
const cachedOutlineCount = GridContainer.cacheByValues.get(outlineCacheKey); |
| 1915 |
if (void 0 !== cachedOutlineCount) return cachedOutlineCount; |
| 1916 |
const { dimensions: gridDimensions, maxElementsNumber: maxElementsBySettings } = GridContainer.getDimensionsCache(handler), { grid_auto_flow: gridAutoFlow } = handler.getElementSettings(), flowTypeField = "row" === gridAutoFlow ? "columns" : "rows", maxElementsByItems = Math.ceil(childrenLength / gridDimensions[flowTypeField].length) * gridDimensions[flowTypeField].length, maxOutlineElements = maxElementsBySettings > maxElementsByItems ? maxElementsBySettings : maxElementsByItems, dimensionsEntry = { |
| 1917 |
dimensions: gridDimensions, |
| 1918 |
maxElementsNumber: maxElementsBySettings |
| 1919 |
}; |
| 1920 |
if (GridContainer.isDimensionsEntryCacheable(handler, dimensionsEntry)) GridContainer.cacheByValues.set(outlineCacheKey, maxOutlineElements); |
| 1921 |
return maxOutlineElements; |
| 1922 |
} |
| 1923 |
__construct(settings) { |
| 1924 |
super.__construct(settings); |
| 1925 |
this.onDeviceModeChange = this.onDeviceModeChange.bind(this); |
| 1926 |
this.updateEmptyViewHeight = this.updateEmptyViewHeight.bind(this); |
| 1927 |
} |
| 1928 |
isActive() { |
| 1929 |
return elementorFrontend.isEditMode(); |
| 1930 |
} |
| 1931 |
getDefaultSettings() { |
| 1932 |
return { |
| 1933 |
selectors: { |
| 1934 |
gridOutline: ".e-grid-outline", |
| 1935 |
directGridOverlay: ":scope > .e-grid-outline", |
| 1936 |
boxedContainer: ":scope > .e-con-inner", |
| 1937 |
emptyView: ".elementor-empty-view" |
| 1938 |
}, |
| 1939 |
classes: { |
| 1940 |
outline: "e-grid-outline", |
| 1941 |
outlineItem: "e-grid-outline-item", |
| 1942 |
gridItemControls: [ |
| 1943 |
"_heading_grid_item", |
| 1944 |
"_grid_column", |
| 1945 |
"_grid_column_custom", |
| 1946 |
"_grid_row", |
| 1947 |
"_grid_row_custom", |
| 1948 |
"heading_grid_item", |
| 1949 |
"grid_column", |
| 1950 |
"grid_column_custom", |
| 1951 |
"grid_row", |
| 1952 |
"grid_row_custom" |
| 1953 |
].map((suffix) => `[class*="elementor-control-${suffix}"]`).join(", ") |
| 1954 |
} |
| 1955 |
}; |
| 1956 |
} |
| 1957 |
getDefaultElements() { |
| 1958 |
const selectors = this.getSettings("selectors"); |
| 1959 |
return { |
| 1960 |
outlineParentContainer: null, |
| 1961 |
gridOutline: this.findElement(selectors.gridOutline), |
| 1962 |
directChildGridOverlay: this.findElement(selectors.directGridOverlay), |
| 1963 |
emptyView: this.findElement(selectors.emptyView)[0], |
| 1964 |
container: this.$element[0] |
| 1965 |
}; |
| 1966 |
} |
| 1967 |
onInit() { |
| 1968 |
super.onInit(); |
| 1969 |
this.scheduleInitLayoutOverlay(); |
| 1970 |
this.updateEmptyViewHeight(); |
| 1971 |
elementor.hooks.addAction("panel/open_editor/container", this.onPanelShow); |
| 1972 |
} |
| 1973 |
handleGridControls(sectionName, editor) { |
| 1974 |
if (!["_section_style", "section_layout"].includes(sectionName)) return; |
| 1975 |
if (!this.isItemInGridCell(editor)) this.hideGridControls(editor); |
| 1976 |
} |
| 1977 |
isItemInGridCell(editor) { |
| 1978 |
var _editor$getOption; |
| 1979 |
var _container$parent; |
| 1980 |
var _container$parent2; |
| 1981 |
const container = editor === null || editor === void 0 || (_editor$getOption = editor.getOption("editedElementView")) === null || _editor$getOption === void 0 ? void 0 : _editor$getOption.getContainer(); |
| 1982 |
if ("function" !== typeof (container === null || container === void 0 || (_container$parent = container.parent) === null || _container$parent === void 0 || (_container$parent = _container$parent.model) === null || _container$parent === void 0 ? void 0 : _container$parent.getSetting)) return false; |
| 1983 |
return "grid" === (container === null || container === void 0 || (_container$parent2 = container.parent) === null || _container$parent2 === void 0 || (_container$parent2 = _container$parent2.model) === null || _container$parent2 === void 0 ? void 0 : _container$parent2.getSetting("container_type")); |
| 1984 |
} |
| 1985 |
hideGridControls(editor) { |
| 1986 |
const classes = this.getSettings("classes"); |
| 1987 |
(editor === null || editor === void 0 ? void 0 : editor.el.querySelectorAll(classes.gridItemControls)).forEach((element) => { |
| 1988 |
element.style.display = "none"; |
| 1989 |
}); |
| 1990 |
} |
| 1991 |
onPanelShow(panel, model) { |
| 1992 |
const containerType = model.get("settings").get("container_type"); |
| 1993 |
const $linkElement = panel.$el.find("#elementor-panel__editor__help__link"); |
| 1994 |
const href = "grid" === containerType ? "https://go.elementor.com/widget-container-grid" : "https://go.elementor.com/widget-container"; |
| 1995 |
if ($linkElement) $linkElement.attr("href", href); |
| 1996 |
} |
| 1997 |
bindEvents() { |
| 1998 |
GridContainer.bindDeviceModeListener(); |
| 1999 |
elementor.channels.deviceMode.on("change", this.onDeviceModeChange); |
| 2000 |
elementorFrontend.elements.$window.on("resize", this.onDeviceModeChange); |
| 2001 |
elementorFrontend.elements.$window.on("resize", this.updateEmptyViewHeight); |
| 2002 |
this.addChildLifeCycleEventListeners(); |
| 2003 |
elementor.channels.editor.on("section:activated", this.handleGridControls.bind(this)); |
| 2004 |
} |
| 2005 |
onDestroy() { |
| 2006 |
elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this, arguments); |
| 2007 |
} |
| 2008 |
unbindEvents() { |
| 2009 |
this.removeChildLifeCycleEventListeners(); |
| 2010 |
elementor.channels.deviceMode.off("change", this.onDeviceModeChange); |
| 2011 |
elementorFrontend.elements.$window.off("resize", this.onDeviceModeChange); |
| 2012 |
elementorFrontend.elements.$window.off("resize", this.updateEmptyViewHeight); |
| 2013 |
elementor.channels.editor.off("section:activated", this.handleGridControls.bind(this)); |
| 2014 |
} |
| 2015 |
initLayoutOverlay() { |
| 2016 |
var _this$elements; |
| 2017 |
this.getCorrectContainer(); |
| 2018 |
const selectors = this.getSettings("selectors"); |
| 2019 |
this.elements.emptyView = this.findElement(selectors.emptyView)[0]; |
| 2020 |
if ("grid" === this.getElementSettings("container_type") && ((_this$elements = this.elements) === null || _this$elements === void 0 ? void 0 : _this$elements.emptyView)) this.elements.emptyView.style.display = this.shouldRemoveEmptyView() ? "none" : "block"; |
| 2021 |
this.updateGridOutline(); |
| 2022 |
} |
| 2023 |
updateGridOutline() { |
| 2024 |
if (!this.shouldDrawOutline()) { |
| 2025 |
this.removeExistingOverlay(); |
| 2026 |
return; |
| 2027 |
} |
| 2028 |
const numberOfItems = this.getMaxOutlineElementsNumber(); |
| 2029 |
const gridOutlineElement = this.getGridOutlineElement(); |
| 2030 |
if (numberOfItems > 0 && (gridOutlineElement === null || gridOutlineElement === void 0 ? void 0 : gridOutlineElement.isConnected) && gridOutlineElement.parentElement === this.elements.outlineParentContainer && gridOutlineElement.childElementCount === numberOfItems) { |
| 2031 |
this.setGridOutlineDimensions(); |
| 2032 |
return; |
| 2033 |
} |
| 2034 |
this.removeExistingOverlay(); |
| 2035 |
this.createOverlayContainer(); |
| 2036 |
this.createOverlayItems(); |
| 2037 |
} |
| 2038 |
shouldDrawOutline() { |
| 2039 |
const { grid_outline: gridOutline } = this.getElementSettings(); |
| 2040 |
return gridOutline; |
| 2041 |
} |
| 2042 |
getCorrectContainer() { |
| 2043 |
const container = this.elements.container, { selectors: { boxedContainer } } = this.getDefaultSettings(); |
| 2044 |
this.elements.outlineParentContainer = container.querySelector(boxedContainer) || container; |
| 2045 |
} |
| 2046 |
getGridOutlineElement() { |
| 2047 |
const { gridOutline } = this.elements; |
| 2048 |
if (!gridOutline) return null; |
| 2049 |
return gridOutline[0] || gridOutline; |
| 2050 |
} |
| 2051 |
removeExistingOverlay() { |
| 2052 |
var _this$getGridOutlineE; |
| 2053 |
(_this$getGridOutlineE = this.getGridOutlineElement()) === null || _this$getGridOutlineE === void 0 || _this$getGridOutlineE.remove(); |
| 2054 |
this.elements.gridOutline = null; |
| 2055 |
} |
| 2056 |
createOverlayContainer() { |
| 2057 |
const { outlineParentContainer } = this.elements, { classes: { outline } } = this.getDefaultSettings(), gridOutline = document.createElement("div"); |
| 2058 |
gridOutline.classList.add(outline); |
| 2059 |
outlineParentContainer.appendChild(gridOutline); |
| 2060 |
this.elements.gridOutline = gridOutline; |
| 2061 |
this.setGridOutlineDimensions(); |
| 2062 |
} |
| 2063 |
createOverlayItems() { |
| 2064 |
const { gridOutline } = this.elements, { classes: { outlineItem } } = this.getDefaultSettings(), numberOfItems = this.getMaxOutlineElementsNumber(); |
| 2065 |
const gridOutlineItems = []; |
| 2066 |
for (let i = 0; i < numberOfItems; i++) { |
| 2067 |
const gridOutlineItem = document.createElement("div"); |
| 2068 |
gridOutlineItem.classList.add(outlineItem); |
| 2069 |
gridOutlineItems.push(gridOutlineItem); |
| 2070 |
} |
| 2071 |
gridOutline.append(...gridOutlineItems); |
| 2072 |
} |
| 2073 |
/** |
| 2074 |
* Get the grid dimensions for the current device. |
| 2075 |
* |
| 2076 |
* @return { { columns: { value, length }, rows: { value, length } } } |
| 2077 |
*/ |
| 2078 |
getDeviceGridDimensions() { |
| 2079 |
return GridContainer.getDimensionsCache(this).dimensions; |
| 2080 |
} |
| 2081 |
setGridOutlineDimensions() { |
| 2082 |
const gridOutlineElement = this.getGridOutlineElement(), { rows, columns } = this.getDeviceGridDimensions(); |
| 2083 |
gridOutlineElement.style.gridTemplateColumns = columns.value; |
| 2084 |
gridOutlineElement.style.gridTemplateRows = rows.value; |
| 2085 |
} |
| 2086 |
/** |
| 2087 |
* Set the control value for the current device. |
| 2088 |
* Distinguish between grid custom values and slider controls. |
| 2089 |
* |
| 2090 |
* @param {string} control - The control name. |
| 2091 |
* @param {string} device - The device mode. |
| 2092 |
* @param {string} property - The CSS property name we need to copy from the parent container. |
| 2093 |
* |
| 2094 |
* @return {Object} - E,g. {value: repeat(2, 1fr), length: 2}. |
| 2095 |
*/ |
| 2096 |
getControlValues(control, device, property) { |
| 2097 |
const elementSettings = this.getElementSettings(), { unit, size } = elementSettings[control], { outlineParentContainer } = this.elements, controlValueForCurrentDevice = elementorFrontend.utils.controls.getResponsiveControlValue(elementSettings, control, "size", device), controlValue = this.getComputedStyle(outlineParentContainer, property), computedStyleLength = controlValue.split(" ").length; |
| 2098 |
let controlData; |
| 2099 |
if ("custom" === unit && "string" === typeof controlValueForCurrentDevice || size < computedStyleLength) controlData = { value: controlValue }; |
| 2100 |
else controlData = { value: `repeat(${computedStyleLength}, 1fr)` }; |
| 2101 |
controlData = _objectSpread2(_objectSpread2({}, controlData), {}, { length: computedStyleLength }); |
| 2102 |
return controlData; |
| 2103 |
} |
| 2104 |
getComputedStyle(container, property) { |
| 2105 |
var _window; |
| 2106 |
return (_window = window) === null || _window === void 0 ? void 0 : _window.getComputedStyle(container, null).getPropertyValue(property); |
| 2107 |
} |
| 2108 |
onElementChange(propertyName) { |
| 2109 |
if (this.isControlThatMayAffectEmptyViewHeight(propertyName)) this.updateEmptyViewHeight(); |
| 2110 |
let propsThatTriggerGridLayoutRender = [ |
| 2111 |
"grid_rows_grid", |
| 2112 |
"grid_columns_grid", |
| 2113 |
"grid_gaps", |
| 2114 |
"grid_outline", |
| 2115 |
"container_type", |
| 2116 |
"boxed_width", |
| 2117 |
"content_width", |
| 2118 |
"width", |
| 2119 |
"height", |
| 2120 |
"min_height", |
| 2121 |
"padding", |
| 2122 |
"grid_auto_flow" |
| 2123 |
]; |
| 2124 |
propsThatTriggerGridLayoutRender = this.getResponsiveControlNames(propsThatTriggerGridLayoutRender); |
| 2125 |
if (propsThatTriggerGridLayoutRender.includes(propertyName)) this.scheduleInitLayoutOverlay(); |
| 2126 |
} |
| 2127 |
isControlThatMayAffectEmptyViewHeight(propertyName) { |
| 2128 |
return 0 === propertyName.indexOf("grid_rows_grid") || 0 === propertyName.indexOf("grid_columns_grid") || 0 === propertyName.indexOf("grid_auto_flow"); |
| 2129 |
} |
| 2130 |
/** |
| 2131 |
* GetResponsiveControlNames |
| 2132 |
* Add responsive control names to the list of controls that trigger re-rendering. |
| 2133 |
* |
| 2134 |
* @param {Array} propsThatTriggerGridLayoutRender - array of control names. |
| 2135 |
* |
| 2136 |
* @return {Array} |
| 2137 |
*/ |
| 2138 |
getResponsiveControlNames(propsThatTriggerGridLayoutRender) { |
| 2139 |
const activeBreakpoints = elementorFrontend.breakpoints.getActiveBreakpointsList(); |
| 2140 |
const responsiveControlNames = []; |
| 2141 |
for (const prop of propsThatTriggerGridLayoutRender) for (const breakpoint of activeBreakpoints) responsiveControlNames.push(`${prop}_${breakpoint}`); |
| 2142 |
responsiveControlNames.push(...propsThatTriggerGridLayoutRender); |
| 2143 |
return responsiveControlNames; |
| 2144 |
} |
| 2145 |
onDeviceModeChange() { |
| 2146 |
this.scheduleInitLayoutOverlay(); |
| 2147 |
} |
| 2148 |
isLifecycleEventAffectingThisContainer(event) { |
| 2149 |
var _event$detail; |
| 2150 |
var _event$detail$getCont; |
| 2151 |
const changedContainer = (_event$detail = event.detail) === null || _event$detail === void 0 || (_event$detail = _event$detail.elementView) === null || _event$detail === void 0 || (_event$detail$getCont = _event$detail.getContainer) === null || _event$detail$getCont === void 0 ? void 0 : _event$detail$getCont.call(_event$detail); |
| 2152 |
if (!changedContainer) return false; |
| 2153 |
const thisModelCid = this.getModelCID(); |
| 2154 |
if (changedContainer.model.cid === thisModelCid) return true; |
| 2155 |
const parentContainer = changedContainer.parent; |
| 2156 |
return parentContainer && parentContainer.model.cid === thisModelCid; |
| 2157 |
} |
| 2158 |
onChildLifecycleEvent(event) { |
| 2159 |
if (!this.isLifecycleEventAffectingThisContainer(event)) return; |
| 2160 |
this.scheduleInitLayoutOverlay(); |
| 2161 |
} |
| 2162 |
scheduleInitLayoutOverlay() { |
| 2163 |
if (this.layoutOverlayAnimationFrame) return; |
| 2164 |
this.layoutOverlayAnimationFrame = requestAnimationFrame(() => { |
| 2165 |
this.layoutOverlayAnimationFrame = null; |
| 2166 |
this.initLayoutOverlay(); |
| 2167 |
}); |
| 2168 |
} |
| 2169 |
/** |
| 2170 |
* Rerender Grid Overlay when child element is added or removed from its parent. |
| 2171 |
* |
| 2172 |
* @return {void} |
| 2173 |
*/ |
| 2174 |
addChildLifeCycleEventListeners() { |
| 2175 |
this.lifecycleChangeListener = this.onChildLifecycleEvent.bind(this); |
| 2176 |
window.addEventListener("elementor/editor/element-rendered", this.lifecycleChangeListener); |
| 2177 |
window.addEventListener("elementor/editor/element-destroyed", this.lifecycleChangeListener); |
| 2178 |
} |
| 2179 |
removeChildLifeCycleEventListeners() { |
| 2180 |
window.removeEventListener("elementor/editor/element-rendered", this.lifecycleChangeListener); |
| 2181 |
window.removeEventListener("elementor/editor/element-destroyed", this.lifecycleChangeListener); |
| 2182 |
if (this.layoutOverlayAnimationFrame) { |
| 2183 |
cancelAnimationFrame(this.layoutOverlayAnimationFrame); |
| 2184 |
this.layoutOverlayAnimationFrame = null; |
| 2185 |
} |
| 2186 |
} |
| 2187 |
updateEmptyViewHeight() { |
| 2188 |
if (this.shouldUpdateEmptyViewHeight()) { |
| 2189 |
const { emptyView } = this.elements, currentDevice = elementor.channels.deviceMode.request("currentMode"), elementSettings = this.getElementSettings(), gridRows = "desktop" === currentDevice ? elementSettings.grid_rows_grid : elementSettings.grid_rows_grid + "_" + currentDevice; |
| 2190 |
emptyView === null || emptyView === void 0 || emptyView.style.removeProperty("min-height"); |
| 2191 |
if (this.hasCustomUnit(gridRows) && this.isNotOnlyANumber(gridRows) && this.sizeNotEmpty(gridRows)) emptyView.style.minHeight = "auto"; |
| 2192 |
if ((emptyView === null || emptyView === void 0 ? void 0 : emptyView.offsetHeight) <= 0) emptyView.style.minHeight = "100px"; |
| 2193 |
} |
| 2194 |
} |
| 2195 |
shouldUpdateEmptyViewHeight() { |
| 2196 |
return !!this.elements.container.querySelector(".elementor-empty-view"); |
| 2197 |
} |
| 2198 |
hasCustomUnit(gridRows) { |
| 2199 |
return "custom" === (gridRows === null || gridRows === void 0 ? void 0 : gridRows.unit); |
| 2200 |
} |
| 2201 |
sizeNotEmpty(gridRows) { |
| 2202 |
var _gridRows$size; |
| 2203 |
return "" !== (gridRows === null || gridRows === void 0 || (_gridRows$size = gridRows.size) === null || _gridRows$size === void 0 ? void 0 : _gridRows$size.trim()); |
| 2204 |
} |
| 2205 |
isNotOnlyANumber(gridRows) { |
| 2206 |
return !/^\d+$/.test(gridRows === null || gridRows === void 0 ? void 0 : gridRows.size); |
| 2207 |
} |
| 2208 |
shouldRemoveEmptyView() { |
| 2209 |
const childrenLength = this.elements.outlineParentContainer.querySelectorAll(":scope > .elementor-element").length; |
| 2210 |
if (0 === childrenLength) return false; |
| 2211 |
return this.getMaxElementsNumber() <= childrenLength && this.isFullFilled(childrenLength); |
| 2212 |
} |
| 2213 |
isFullFilled(numberOfElements) { |
| 2214 |
const gridDimensions = GridContainer.getDimensionsCache(this).dimensions, { grid_auto_flow: gridAutoFlow } = this.getElementSettings(); |
| 2215 |
return 0 === numberOfElements % gridDimensions["row" === gridAutoFlow ? "columns" : "rows"].length; |
| 2216 |
} |
| 2217 |
getMaxOutlineElementsNumber() { |
| 2218 |
const childrenLength = this.elements.outlineParentContainer.querySelectorAll(":scope > .elementor-element").length; |
| 2219 |
return GridContainer.getCachedMaxOutlineElementsNumber(this, childrenLength); |
| 2220 |
} |
| 2221 |
getMaxElementsNumber() { |
| 2222 |
return GridContainer.getDimensionsCache(this).maxElementsNumber; |
| 2223 |
} |
| 2224 |
}; |
| 2225 |
_defineProperty(GridContainer, "cacheByValues", /* @__PURE__ */ new Map()); |
| 2226 |
_defineProperty(GridContainer, "isDeviceModeListenerBound", false); |
| 2227 |
exports.default = GridContainer; |
| 2228 |
})); |
| 2229 |
|
| 2230 |
//#endregion |
| 2231 |
//#region \0elementor-chunk-entry |
| 2232 |
var import_grid_container = /* @__PURE__ */ __toESM(require_grid_container()); |
| 2233 |
(window.__elementorChunks = window.__elementorChunks || {})["container-grid-container"] = import_grid_container; |
| 2234 |
|
| 2235 |
//#endregion |
| 2236 |
})(); |
| 2237 |
//# sourceMappingURL=container-grid-container.js.map |