vue-book-reader 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  (function(global2, factory) {
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue")) : typeof define === "function" && define.amd ? define(["exports", "vue"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["vue-book-reader"] = {}, global2.Vue));
3
- })(this, function(exports2, vue) {
3
+ })(this, (function(exports2, vue) {
4
4
  "use strict";
5
5
  var __vite_style__ = document.createElement("style");
6
- __vite_style__.textContent = "\n.reader[data-v-1350176b] {\r\n position: absolute;\r\n inset: 50px 50px 20px;\n}\n.viewHolder[data-v-1350176b] {\r\n height: 100%;\r\n width: 100%;\r\n position: relative;\n}\n#viewer[data-v-1350176b] {\r\n height: 100%;\n}\r\n\r\n/* ↓ */\n.tocAreaButton .expansion[data-v-faba9f3e]::before {\r\n transform: rotate(-45deg) translateX(2.5px);\n}\n.tocAreaButton .expansion[data-v-faba9f3e]::after {\r\n transform: rotate(45deg) translateX(-2.5px);\n}\r\n\r\n/* ↑ */\n.tocAreaButton .open[data-v-faba9f3e]::before {\r\n transform: rotate(45deg) translateX(2.5px);\n}\n.tocAreaButton .open[data-v-faba9f3e]::after {\r\n transform: rotate(-45deg) translateX(-2.5px);\n}\n.tocAreaButton[data-v-faba9f3e] {\r\n user-select: none;\r\n appearance: none;\r\n background: none;\r\n border: none;\r\n display: block;\r\n font-family: sans-serif;\r\n width: 100%;\r\n font-size: 0.9em;\r\n text-align: left;\r\n padding: 0.9em 1em;\r\n border-bottom: 1px solid #ddd;\r\n color: #aaa;\r\n box-sizing: border-box;\r\n outline: none;\r\n cursor: pointer;\r\n position: relative;\n}\n.tocAreaButton[data-v-faba9f3e]:hover {\r\n background: rgba(0, 0, 0, 0.05);\n}\n.tocAreaButton[data-v-faba9f3e]:active {\r\n background: rgba(0, 0, 0, 0.1);\n}\n.active[data-v-faba9f3e] {\r\n color: #1565c0;\r\n border-bottom: 2px solid #1565c0;\n}\r\n\r\n/* 二级目录 */\n.tocAreaButton .expansion[data-v-faba9f3e] {\r\n cursor: pointer;\r\n transform: translateY(-50%);\r\n top: 50%;\r\n right: 12px;\r\n position: absolute;\r\n width: 10px;\r\n background-color: #a2a5b4;\r\n transition:\r\n transform 0.3s ease-in-out,\r\n top 0.3s ease-in-out;\n}\n.tocAreaButton .expansion[data-v-faba9f3e]::after,\r\n.tocAreaButton .expansion[data-v-faba9f3e]::before {\r\n content: '';\r\n position: absolute;\r\n width: 6px;\r\n height: 2px;\r\n background-color: currentcolor;\r\n border-radius: 2px;\r\n transition:\r\n transform 0.3s ease-in-out,\r\n top 0.3s ease-in-out;\n}\r\n\r\n/* container */\n.container[data-v-e3dfdabb] {\r\n overflow: hidden;\r\n position: relative;\r\n height: 100%;\n}\n.containerExpanded[data-v-e3dfdabb] {\r\n transform: translateX(256px);\n}\n.readerArea[data-v-e3dfdabb] {\r\n position: relative;\r\n z-index: 1;\r\n height: 100%;\r\n width: 100%;\r\n background-color: #fff;\r\n transition: all 0.3s ease;\n}\n.container .titleArea[data-v-e3dfdabb] {\r\n position: absolute;\r\n top: 20px;\r\n left: 50px;\r\n right: 50px;\r\n text-align: center;\r\n color: #999;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\r\n\r\n/* toc */\n.tocBackground[data-v-e3dfdabb] {\r\n position: absolute;\r\n left: 256px;\r\n top: 0;\r\n bottom: 0;\r\n right: 0;\r\n z-index: 1;\n}\n.tocArea[data-v-e3dfdabb] {\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n bottom: 0;\r\n z-index: 0;\r\n width: 256px;\r\n overflow-y: auto;\r\n -webkit-overflow-scrolling: touch;\r\n background: #f2f2f2;\r\n padding: 10px 0;\n}\r\n\r\n/* 滚动条 */\n.tocArea[data-v-e3dfdabb]::-webkit-scrollbar {\r\n width: 5px;\r\n height: 5px;\n}\n.tocArea[data-v-e3dfdabb]::-webkit-scrollbar-thumb:vertical {\r\n height: 5px;\r\n background-color: rgba(0, 0, 0, 0.1);\r\n border-radius: 0.5rem;\n}\r\n\r\n/* tocButton */\n.tocButton[data-v-e3dfdabb] {\r\n background: none;\r\n border: none;\r\n width: 32px;\r\n height: 32px;\r\n position: absolute;\r\n top: 10px;\r\n left: 10px;\r\n border-radius: 2px;\r\n outline: none;\r\n cursor: pointer;\n}\n.tocButtonBar[data-v-e3dfdabb] {\r\n position: absolute;\r\n width: 60%;\r\n background: #ccc;\r\n height: 2px;\r\n left: 50%;\r\n margin: -1px -30%;\r\n top: 50%;\r\n transition: all 0.5s ease;\n}\n.tocButtonExpanded[data-v-e3dfdabb] {\r\n background: #f2f2f2;\n}\r\n\r\n/* 翻页 */\n.arrow[data-v-e3dfdabb] {\r\n outline: none;\r\n border: none;\r\n background: none;\r\n position: absolute;\r\n top: 50%;\r\n margin-top: -32px;\r\n font-size: 64px;\r\n padding: 0 10px;\r\n color: #e2e2e2;\r\n font-family: arial, sans-serif;\r\n cursor: pointer;\r\n user-select: none;\r\n appearance: none;\r\n font-weight: normal;\n}\n.arrow[data-v-e3dfdabb]:hover {\r\n color: #777;\n}\n.arrow[data-v-e3dfdabb]:disabled {\r\n cursor: not-allowed;\r\n color: #e2e2e2;\n}\n.prev[data-v-e3dfdabb] {\r\n left: 1px;\n}\n.next[data-v-e3dfdabb] {\r\n right: 1px;\n}\r\n\r\n/* loading */\n.loadingView[data-v-e3dfdabb] {\r\n position: absolute;\r\n top: 50%;\r\n left: 10%;\r\n right: 10%;\r\n color: #ccc;\r\n text-align: center;\r\n margin-top: -0.5em;\n}\r\n\r\n/* errorView */\n.errorView[data-v-e3dfdabb] {\r\n position: absolute;\r\n top: 50%;\r\n left: 10%;\r\n right: 10%;\r\n color: #c00;\r\n text-align: center;\r\n margin-top: -0.5em;\n}\r\n/*$vite$:1*/";
6
+ __vite_style__.textContent = "\n.reader[data-v-cbfdb46e] {\r\n position: absolute;\r\n inset: 50px 50px 20px;\n}\n.viewHolder[data-v-cbfdb46e] {\r\n height: 100%;\r\n width: 100%;\r\n position: relative;\n}\n#viewer[data-v-cbfdb46e] {\r\n height: 100%;\n}\r\n\r\n/* ↓ */\n.tocAreaButton .expansion[data-v-56e71b55]::before {\r\n transform: rotate(-45deg) translateX(2.5px);\n}\n.tocAreaButton .expansion[data-v-56e71b55]::after {\r\n transform: rotate(45deg) translateX(-2.5px);\n}\r\n\r\n/* ↑ */\n.tocAreaButton .open[data-v-56e71b55]::before {\r\n transform: rotate(45deg) translateX(2.5px);\n}\n.tocAreaButton .open[data-v-56e71b55]::after {\r\n transform: rotate(-45deg) translateX(-2.5px);\n}\n.tocAreaButton[data-v-56e71b55] {\r\n user-select: none;\r\n appearance: none;\r\n background: none;\r\n border: none;\r\n display: block;\r\n font-family: sans-serif;\r\n width: 100%;\r\n font-size: 0.9em;\r\n text-align: left;\r\n padding: 0.9em 1em;\r\n border-bottom: 1px solid #ddd;\r\n color: #aaa;\r\n box-sizing: border-box;\r\n outline: none;\r\n cursor: pointer;\r\n position: relative;\n}\n.tocAreaButton[data-v-56e71b55]:hover {\r\n background: rgba(0, 0, 0, 0.05);\n}\n.tocAreaButton[data-v-56e71b55]:active {\r\n background: rgba(0, 0, 0, 0.1);\n}\n.active[data-v-56e71b55] {\r\n color: #1565c0;\r\n border-bottom: 2px solid #1565c0;\n}\r\n\r\n/* 二级目录 */\n.tocAreaButton .expansion[data-v-56e71b55] {\r\n cursor: pointer;\r\n transform: translateY(-50%);\r\n top: 50%;\r\n right: 12px;\r\n position: absolute;\r\n width: 10px;\r\n background-color: #a2a5b4;\r\n transition:\r\n transform 0.3s ease-in-out,\r\n top 0.3s ease-in-out;\n}\n.tocAreaButton .expansion[data-v-56e71b55]::after,\r\n.tocAreaButton .expansion[data-v-56e71b55]::before {\r\n content: '';\r\n position: absolute;\r\n width: 6px;\r\n height: 2px;\r\n background-color: currentcolor;\r\n border-radius: 2px;\r\n transition:\r\n transform 0.3s ease-in-out,\r\n top 0.3s ease-in-out;\n}\r\n\r\n/* container */\n.container[data-v-ce33d15c] {\r\n overflow: hidden;\r\n position: relative;\r\n height: 100%;\n}\n.containerExpanded[data-v-ce33d15c] {\r\n transform: translateX(256px);\n}\n.readerArea[data-v-ce33d15c] {\r\n position: relative;\r\n z-index: 1;\r\n height: 100%;\r\n width: 100%;\r\n background-color: #fff;\r\n transition: all 0.3s ease;\n}\n.container .titleArea[data-v-ce33d15c] {\r\n position: absolute;\r\n top: 20px;\r\n left: 50px;\r\n right: 50px;\r\n text-align: center;\r\n color: #999;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\r\n\r\n/* toc */\n.tocBackground[data-v-ce33d15c] {\r\n position: absolute;\r\n left: 256px;\r\n top: 0;\r\n bottom: 0;\r\n right: 0;\r\n z-index: 1;\n}\n.tocArea[data-v-ce33d15c] {\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n bottom: 0;\r\n z-index: 0;\r\n width: 256px;\r\n overflow-y: auto;\r\n -webkit-overflow-scrolling: touch;\r\n background: #f2f2f2;\r\n padding: 10px 0;\n}\r\n\r\n/* 滚动条 */\n.tocArea[data-v-ce33d15c]::-webkit-scrollbar {\r\n width: 5px;\r\n height: 5px;\n}\n.tocArea[data-v-ce33d15c]::-webkit-scrollbar-thumb:vertical {\r\n height: 5px;\r\n background-color: rgba(0, 0, 0, 0.1);\r\n border-radius: 0.5rem;\n}\r\n\r\n/* tocButton */\n.tocButton[data-v-ce33d15c] {\r\n background: none;\r\n border: none;\r\n width: 32px;\r\n height: 32px;\r\n position: absolute;\r\n top: 10px;\r\n left: 10px;\r\n border-radius: 2px;\r\n outline: none;\r\n cursor: pointer;\n}\n.tocButtonBar[data-v-ce33d15c] {\r\n position: absolute;\r\n width: 60%;\r\n background: #ccc;\r\n height: 2px;\r\n left: 50%;\r\n margin: -1px -30%;\r\n top: 50%;\r\n transition: all 0.5s ease;\n}\n.tocButtonExpanded[data-v-ce33d15c] {\r\n background: #f2f2f2;\n}\r\n\r\n/* 翻页 */\n.arrow[data-v-ce33d15c] {\r\n outline: none;\r\n border: none;\r\n background: none;\r\n position: absolute;\r\n top: 50%;\r\n margin-top: -32px;\r\n font-size: 64px;\r\n padding: 0 10px;\r\n color: #e2e2e2;\r\n font-family: arial, sans-serif;\r\n cursor: pointer;\r\n user-select: none;\r\n appearance: none;\r\n font-weight: normal;\n}\n.arrow[data-v-ce33d15c]:hover {\r\n color: #777;\n}\n.arrow[data-v-ce33d15c]:disabled {\r\n cursor: not-allowed;\r\n color: #e2e2e2;\n}\n.prev[data-v-ce33d15c] {\r\n left: 1px;\n}\n.next[data-v-ce33d15c] {\r\n right: 1px;\n}\r\n\r\n/* loading */\n.loadingView[data-v-ce33d15c] {\r\n position: absolute;\r\n top: 50%;\r\n left: 10%;\r\n right: 10%;\r\n color: #ccc;\r\n text-align: center;\r\n margin-top: -0.5em;\n}\r\n\r\n/* errorView */\n.errorView[data-v-ce33d15c] {\r\n position: absolute;\r\n top: 50%;\r\n left: 10%;\r\n right: 10%;\r\n color: #c00;\r\n text-align: center;\r\n margin-top: -0.5em;\n}\r\n/*$vite$:1*/";
7
7
  document.head.appendChild(__vite_style__);
8
8
  function keyListener(el, fn) {
9
9
  el.addEventListener(
@@ -86,949 +86,1535 @@
86
86
  );
87
87
  }
88
88
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
89
- var check = function(it2) {
90
- return it2 && it2.Math === Math && it2;
91
- };
92
- var globalThis_1 = (
93
- // eslint-disable-next-line es/no-global-this -- safe
89
+ var arrayGroupingV2 = {};
90
+ var esnext_map_groupBy = {};
91
+ var es_map_groupBy = {};
92
+ var globalThis_1;
93
+ var hasRequiredGlobalThis;
94
+ function requireGlobalThis() {
95
+ if (hasRequiredGlobalThis) return globalThis_1;
96
+ hasRequiredGlobalThis = 1;
97
+ var check = function(it2) {
98
+ return it2 && it2.Math === Math && it2;
99
+ };
100
+ globalThis_1 = // eslint-disable-next-line es/no-global-this -- safe
94
101
  check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
95
- check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
96
- /* @__PURE__ */ function() {
102
+ check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || check(typeof globalThis_1 == "object" && globalThis_1) || // eslint-disable-next-line no-new-func -- fallback
103
+ /* @__PURE__ */ (function() {
97
104
  return this;
98
- }() || Function("return this")()
99
- );
105
+ })() || Function("return this")();
106
+ return globalThis_1;
107
+ }
100
108
  var objectGetOwnPropertyDescriptor = {};
101
- var fails$a = function(exec) {
102
- try {
103
- return !!exec();
104
- } catch (error) {
105
- return true;
106
- }
107
- };
108
- var fails$9 = fails$a;
109
- var descriptors = !fails$9(function() {
110
- return Object.defineProperty({}, 1, { get: function() {
111
- return 7;
112
- } })[1] !== 7;
113
- });
114
- var fails$8 = fails$a;
115
- var functionBindNative = !fails$8(function() {
116
- var test2 = (function() {
117
- }).bind();
118
- return typeof test2 != "function" || test2.hasOwnProperty("prototype");
119
- });
120
- var NATIVE_BIND$2 = functionBindNative;
121
- var call$7 = Function.prototype.call;
122
- var functionCall = NATIVE_BIND$2 ? call$7.bind(call$7) : function() {
123
- return call$7.apply(call$7, arguments);
124
- };
109
+ var fails;
110
+ var hasRequiredFails;
111
+ function requireFails() {
112
+ if (hasRequiredFails) return fails;
113
+ hasRequiredFails = 1;
114
+ fails = function(exec) {
115
+ try {
116
+ return !!exec();
117
+ } catch (error) {
118
+ return true;
119
+ }
120
+ };
121
+ return fails;
122
+ }
123
+ var descriptors;
124
+ var hasRequiredDescriptors;
125
+ function requireDescriptors() {
126
+ if (hasRequiredDescriptors) return descriptors;
127
+ hasRequiredDescriptors = 1;
128
+ var fails2 = requireFails();
129
+ descriptors = !fails2(function() {
130
+ return Object.defineProperty({}, 1, { get: function() {
131
+ return 7;
132
+ } })[1] !== 7;
133
+ });
134
+ return descriptors;
135
+ }
136
+ var functionBindNative;
137
+ var hasRequiredFunctionBindNative;
138
+ function requireFunctionBindNative() {
139
+ if (hasRequiredFunctionBindNative) return functionBindNative;
140
+ hasRequiredFunctionBindNative = 1;
141
+ var fails2 = requireFails();
142
+ functionBindNative = !fails2(function() {
143
+ var test = (function() {
144
+ }).bind();
145
+ return typeof test != "function" || test.hasOwnProperty("prototype");
146
+ });
147
+ return functionBindNative;
148
+ }
149
+ var functionCall;
150
+ var hasRequiredFunctionCall;
151
+ function requireFunctionCall() {
152
+ if (hasRequiredFunctionCall) return functionCall;
153
+ hasRequiredFunctionCall = 1;
154
+ var NATIVE_BIND = requireFunctionBindNative();
155
+ var call = Function.prototype.call;
156
+ functionCall = NATIVE_BIND ? call.bind(call) : function() {
157
+ return call.apply(call, arguments);
158
+ };
159
+ return functionCall;
160
+ }
125
161
  var objectPropertyIsEnumerable = {};
126
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
127
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
128
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
129
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V2) {
130
- var descriptor = getOwnPropertyDescriptor$1(this, V2);
131
- return !!descriptor && descriptor.enumerable;
132
- } : $propertyIsEnumerable;
133
- var createPropertyDescriptor$3 = function(bitmap, value) {
134
- return {
135
- enumerable: !(bitmap & 1),
136
- configurable: !(bitmap & 2),
137
- writable: !(bitmap & 4),
138
- value
162
+ var hasRequiredObjectPropertyIsEnumerable;
163
+ function requireObjectPropertyIsEnumerable() {
164
+ if (hasRequiredObjectPropertyIsEnumerable) return objectPropertyIsEnumerable;
165
+ hasRequiredObjectPropertyIsEnumerable = 1;
166
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
167
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
168
+ var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
169
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V2) {
170
+ var descriptor = getOwnPropertyDescriptor(this, V2);
171
+ return !!descriptor && descriptor.enumerable;
172
+ } : $propertyIsEnumerable;
173
+ return objectPropertyIsEnumerable;
174
+ }
175
+ var createPropertyDescriptor;
176
+ var hasRequiredCreatePropertyDescriptor;
177
+ function requireCreatePropertyDescriptor() {
178
+ if (hasRequiredCreatePropertyDescriptor) return createPropertyDescriptor;
179
+ hasRequiredCreatePropertyDescriptor = 1;
180
+ createPropertyDescriptor = function(bitmap, value) {
181
+ return {
182
+ enumerable: !(bitmap & 1),
183
+ configurable: !(bitmap & 2),
184
+ writable: !(bitmap & 4),
185
+ value
186
+ };
139
187
  };
140
- };
141
- var NATIVE_BIND$1 = functionBindNative;
142
- var FunctionPrototype$1 = Function.prototype;
143
- var call$6 = FunctionPrototype$1.call;
144
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$6, call$6);
145
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function(fn) {
146
- return function() {
147
- return call$6.apply(fn, arguments);
188
+ return createPropertyDescriptor;
189
+ }
190
+ var functionUncurryThis;
191
+ var hasRequiredFunctionUncurryThis;
192
+ function requireFunctionUncurryThis() {
193
+ if (hasRequiredFunctionUncurryThis) return functionUncurryThis;
194
+ hasRequiredFunctionUncurryThis = 1;
195
+ var NATIVE_BIND = requireFunctionBindNative();
196
+ var FunctionPrototype = Function.prototype;
197
+ var call = FunctionPrototype.call;
198
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
199
+ functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function(fn) {
200
+ return function() {
201
+ return call.apply(fn, arguments);
202
+ };
148
203
  };
149
- };
150
- var uncurryThis$d = functionUncurryThis;
151
- var toString$2 = uncurryThis$d({}.toString);
152
- var stringSlice$1 = uncurryThis$d("".slice);
153
- var classofRaw$2 = function(it2) {
154
- return stringSlice$1(toString$2(it2), 8, -1);
155
- };
156
- var uncurryThis$c = functionUncurryThis;
157
- var fails$7 = fails$a;
158
- var classof$2 = classofRaw$2;
159
- var $Object$3 = Object;
160
- var split = uncurryThis$c("".split);
161
- var indexedObject = fails$7(function() {
162
- return !$Object$3("z").propertyIsEnumerable(0);
163
- }) ? function(it2) {
164
- return classof$2(it2) === "String" ? split(it2, "") : $Object$3(it2);
165
- } : $Object$3;
166
- var isNullOrUndefined$3 = function(it2) {
167
- return it2 === null || it2 === void 0;
168
- };
169
- var isNullOrUndefined$2 = isNullOrUndefined$3;
170
- var $TypeError$7 = TypeError;
171
- var requireObjectCoercible$4 = function(it2) {
172
- if (isNullOrUndefined$2(it2)) throw new $TypeError$7("Can't call method on " + it2);
173
- return it2;
174
- };
175
- var IndexedObject = indexedObject;
176
- var requireObjectCoercible$3 = requireObjectCoercible$4;
177
- var toIndexedObject$3 = function(it2) {
178
- return IndexedObject(requireObjectCoercible$3(it2));
179
- };
180
- var documentAll = typeof document == "object" && document.all;
181
- var isCallable$b = typeof documentAll == "undefined" && documentAll !== void 0 ? function(argument) {
182
- return typeof argument == "function" || argument === documentAll;
183
- } : function(argument) {
184
- return typeof argument == "function";
185
- };
186
- var isCallable$a = isCallable$b;
187
- var isObject$4 = function(it2) {
188
- return typeof it2 == "object" ? it2 !== null : isCallable$a(it2);
189
- };
190
- var globalThis$b = globalThis_1;
191
- var isCallable$9 = isCallable$b;
192
- var aFunction = function(argument) {
193
- return isCallable$9(argument) ? argument : void 0;
194
- };
195
- var getBuiltIn$3 = function(namespace, method) {
196
- return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
197
- };
198
- var uncurryThis$b = functionUncurryThis;
199
- var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
200
- var globalThis$a = globalThis_1;
201
- var navigator$1 = globalThis$a.navigator;
202
- var userAgent$1 = navigator$1 && navigator$1.userAgent;
203
- var environmentUserAgent = userAgent$1 ? String(userAgent$1) : "";
204
- var globalThis$9 = globalThis_1;
205
- var userAgent = environmentUserAgent;
206
- var process = globalThis$9.process;
207
- var Deno = globalThis$9.Deno;
208
- var versions = process && process.versions || Deno && Deno.version;
209
- var v8 = versions && versions.v8;
210
- var match, version;
211
- if (v8) {
212
- match = v8.split(".");
213
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
214
- }
215
- if (!version && userAgent) {
216
- match = userAgent.match(/Edge\/(\d+)/);
217
- if (!match || match[1] >= 74) {
218
- match = userAgent.match(/Chrome\/(\d+)/);
219
- if (match) version = +match[1];
220
- }
221
- }
222
- var environmentV8Version = version;
223
- var V8_VERSION = environmentV8Version;
224
- var fails$6 = fails$a;
225
- var globalThis$8 = globalThis_1;
226
- var $String$3 = globalThis$8.String;
227
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$6(function() {
228
- var symbol = Symbol("symbol detection");
229
- return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
230
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
231
- });
232
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
233
- var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
234
- var getBuiltIn$2 = getBuiltIn$3;
235
- var isCallable$8 = isCallable$b;
236
- var isPrototypeOf$1 = objectIsPrototypeOf;
237
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
238
- var $Object$2 = Object;
239
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it2) {
240
- return typeof it2 == "symbol";
241
- } : function(it2) {
242
- var $Symbol = getBuiltIn$2("Symbol");
243
- return isCallable$8($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it2));
244
- };
245
- var $String$2 = String;
246
- var tryToString$3 = function(argument) {
247
- try {
248
- return $String$2(argument);
249
- } catch (error) {
250
- return "Object";
251
- }
252
- };
253
- var isCallable$7 = isCallable$b;
254
- var tryToString$2 = tryToString$3;
255
- var $TypeError$6 = TypeError;
256
- var aCallable$5 = function(argument) {
257
- if (isCallable$7(argument)) return argument;
258
- throw new $TypeError$6(tryToString$2(argument) + " is not a function");
259
- };
260
- var aCallable$4 = aCallable$5;
261
- var isNullOrUndefined$1 = isNullOrUndefined$3;
262
- var getMethod$3 = function(V2, P2) {
263
- var func = V2[P2];
264
- return isNullOrUndefined$1(func) ? void 0 : aCallable$4(func);
265
- };
266
- var call$5 = functionCall;
267
- var isCallable$6 = isCallable$b;
268
- var isObject$3 = isObject$4;
269
- var $TypeError$5 = TypeError;
270
- var ordinaryToPrimitive$1 = function(input, pref) {
271
- var fn, val;
272
- if (pref === "string" && isCallable$6(fn = input.toString) && !isObject$3(val = call$5(fn, input))) return val;
273
- if (isCallable$6(fn = input.valueOf) && !isObject$3(val = call$5(fn, input))) return val;
274
- if (pref !== "string" && isCallable$6(fn = input.toString) && !isObject$3(val = call$5(fn, input))) return val;
275
- throw new $TypeError$5("Can't convert object to primitive value");
276
- };
204
+ return functionUncurryThis;
205
+ }
206
+ var classofRaw;
207
+ var hasRequiredClassofRaw;
208
+ function requireClassofRaw() {
209
+ if (hasRequiredClassofRaw) return classofRaw;
210
+ hasRequiredClassofRaw = 1;
211
+ var uncurryThis = requireFunctionUncurryThis();
212
+ var toString2 = uncurryThis({}.toString);
213
+ var stringSlice = uncurryThis("".slice);
214
+ classofRaw = function(it2) {
215
+ return stringSlice(toString2(it2), 8, -1);
216
+ };
217
+ return classofRaw;
218
+ }
219
+ var indexedObject;
220
+ var hasRequiredIndexedObject;
221
+ function requireIndexedObject() {
222
+ if (hasRequiredIndexedObject) return indexedObject;
223
+ hasRequiredIndexedObject = 1;
224
+ var uncurryThis = requireFunctionUncurryThis();
225
+ var fails2 = requireFails();
226
+ var classof2 = requireClassofRaw();
227
+ var $Object = Object;
228
+ var split = uncurryThis("".split);
229
+ indexedObject = fails2(function() {
230
+ return !$Object("z").propertyIsEnumerable(0);
231
+ }) ? function(it2) {
232
+ return classof2(it2) === "String" ? split(it2, "") : $Object(it2);
233
+ } : $Object;
234
+ return indexedObject;
235
+ }
236
+ var isNullOrUndefined;
237
+ var hasRequiredIsNullOrUndefined;
238
+ function requireIsNullOrUndefined() {
239
+ if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
240
+ hasRequiredIsNullOrUndefined = 1;
241
+ isNullOrUndefined = function(it2) {
242
+ return it2 === null || it2 === void 0;
243
+ };
244
+ return isNullOrUndefined;
245
+ }
246
+ var requireObjectCoercible;
247
+ var hasRequiredRequireObjectCoercible;
248
+ function requireRequireObjectCoercible() {
249
+ if (hasRequiredRequireObjectCoercible) return requireObjectCoercible;
250
+ hasRequiredRequireObjectCoercible = 1;
251
+ var isNullOrUndefined2 = requireIsNullOrUndefined();
252
+ var $TypeError = TypeError;
253
+ requireObjectCoercible = function(it2) {
254
+ if (isNullOrUndefined2(it2)) throw new $TypeError("Can't call method on " + it2);
255
+ return it2;
256
+ };
257
+ return requireObjectCoercible;
258
+ }
259
+ var toIndexedObject;
260
+ var hasRequiredToIndexedObject;
261
+ function requireToIndexedObject() {
262
+ if (hasRequiredToIndexedObject) return toIndexedObject;
263
+ hasRequiredToIndexedObject = 1;
264
+ var IndexedObject = requireIndexedObject();
265
+ var requireObjectCoercible2 = requireRequireObjectCoercible();
266
+ toIndexedObject = function(it2) {
267
+ return IndexedObject(requireObjectCoercible2(it2));
268
+ };
269
+ return toIndexedObject;
270
+ }
271
+ var isCallable;
272
+ var hasRequiredIsCallable;
273
+ function requireIsCallable() {
274
+ if (hasRequiredIsCallable) return isCallable;
275
+ hasRequiredIsCallable = 1;
276
+ var documentAll = typeof document == "object" && document.all;
277
+ isCallable = typeof documentAll == "undefined" && documentAll !== void 0 ? function(argument) {
278
+ return typeof argument == "function" || argument === documentAll;
279
+ } : function(argument) {
280
+ return typeof argument == "function";
281
+ };
282
+ return isCallable;
283
+ }
284
+ var isObject;
285
+ var hasRequiredIsObject;
286
+ function requireIsObject() {
287
+ if (hasRequiredIsObject) return isObject;
288
+ hasRequiredIsObject = 1;
289
+ var isCallable2 = requireIsCallable();
290
+ isObject = function(it2) {
291
+ return typeof it2 == "object" ? it2 !== null : isCallable2(it2);
292
+ };
293
+ return isObject;
294
+ }
295
+ var getBuiltIn;
296
+ var hasRequiredGetBuiltIn;
297
+ function requireGetBuiltIn() {
298
+ if (hasRequiredGetBuiltIn) return getBuiltIn;
299
+ hasRequiredGetBuiltIn = 1;
300
+ var globalThis2 = requireGlobalThis();
301
+ var isCallable2 = requireIsCallable();
302
+ var aFunction = function(argument) {
303
+ return isCallable2(argument) ? argument : void 0;
304
+ };
305
+ getBuiltIn = function(namespace, method) {
306
+ return arguments.length < 2 ? aFunction(globalThis2[namespace]) : globalThis2[namespace] && globalThis2[namespace][method];
307
+ };
308
+ return getBuiltIn;
309
+ }
310
+ var objectIsPrototypeOf;
311
+ var hasRequiredObjectIsPrototypeOf;
312
+ function requireObjectIsPrototypeOf() {
313
+ if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf;
314
+ hasRequiredObjectIsPrototypeOf = 1;
315
+ var uncurryThis = requireFunctionUncurryThis();
316
+ objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
317
+ return objectIsPrototypeOf;
318
+ }
319
+ var environmentUserAgent;
320
+ var hasRequiredEnvironmentUserAgent;
321
+ function requireEnvironmentUserAgent() {
322
+ if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
323
+ hasRequiredEnvironmentUserAgent = 1;
324
+ var globalThis2 = requireGlobalThis();
325
+ var navigator2 = globalThis2.navigator;
326
+ var userAgent = navigator2 && navigator2.userAgent;
327
+ environmentUserAgent = userAgent ? String(userAgent) : "";
328
+ return environmentUserAgent;
329
+ }
330
+ var environmentV8Version;
331
+ var hasRequiredEnvironmentV8Version;
332
+ function requireEnvironmentV8Version() {
333
+ if (hasRequiredEnvironmentV8Version) return environmentV8Version;
334
+ hasRequiredEnvironmentV8Version = 1;
335
+ var globalThis2 = requireGlobalThis();
336
+ var userAgent = requireEnvironmentUserAgent();
337
+ var process = globalThis2.process;
338
+ var Deno = globalThis2.Deno;
339
+ var versions = process && process.versions || Deno && Deno.version;
340
+ var v8 = versions && versions.v8;
341
+ var match, version;
342
+ if (v8) {
343
+ match = v8.split(".");
344
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
345
+ }
346
+ if (!version && userAgent) {
347
+ match = userAgent.match(/Edge\/(\d+)/);
348
+ if (!match || match[1] >= 74) {
349
+ match = userAgent.match(/Chrome\/(\d+)/);
350
+ if (match) version = +match[1];
351
+ }
352
+ }
353
+ environmentV8Version = version;
354
+ return environmentV8Version;
355
+ }
356
+ var symbolConstructorDetection;
357
+ var hasRequiredSymbolConstructorDetection;
358
+ function requireSymbolConstructorDetection() {
359
+ if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection;
360
+ hasRequiredSymbolConstructorDetection = 1;
361
+ var V8_VERSION = requireEnvironmentV8Version();
362
+ var fails2 = requireFails();
363
+ var globalThis2 = requireGlobalThis();
364
+ var $String = globalThis2.String;
365
+ symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails2(function() {
366
+ var symbol = /* @__PURE__ */ Symbol("symbol detection");
367
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
368
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
369
+ });
370
+ return symbolConstructorDetection;
371
+ }
372
+ var useSymbolAsUid;
373
+ var hasRequiredUseSymbolAsUid;
374
+ function requireUseSymbolAsUid() {
375
+ if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
376
+ hasRequiredUseSymbolAsUid = 1;
377
+ var NATIVE_SYMBOL = requireSymbolConstructorDetection();
378
+ useSymbolAsUid = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol";
379
+ return useSymbolAsUid;
380
+ }
381
+ var isSymbol;
382
+ var hasRequiredIsSymbol;
383
+ function requireIsSymbol() {
384
+ if (hasRequiredIsSymbol) return isSymbol;
385
+ hasRequiredIsSymbol = 1;
386
+ var getBuiltIn2 = requireGetBuiltIn();
387
+ var isCallable2 = requireIsCallable();
388
+ var isPrototypeOf = requireObjectIsPrototypeOf();
389
+ var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
390
+ var $Object = Object;
391
+ isSymbol = USE_SYMBOL_AS_UID ? function(it2) {
392
+ return typeof it2 == "symbol";
393
+ } : function(it2) {
394
+ var $Symbol = getBuiltIn2("Symbol");
395
+ return isCallable2($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it2));
396
+ };
397
+ return isSymbol;
398
+ }
399
+ var tryToString;
400
+ var hasRequiredTryToString;
401
+ function requireTryToString() {
402
+ if (hasRequiredTryToString) return tryToString;
403
+ hasRequiredTryToString = 1;
404
+ var $String = String;
405
+ tryToString = function(argument) {
406
+ try {
407
+ return $String(argument);
408
+ } catch (error) {
409
+ return "Object";
410
+ }
411
+ };
412
+ return tryToString;
413
+ }
414
+ var aCallable;
415
+ var hasRequiredACallable;
416
+ function requireACallable() {
417
+ if (hasRequiredACallable) return aCallable;
418
+ hasRequiredACallable = 1;
419
+ var isCallable2 = requireIsCallable();
420
+ var tryToString2 = requireTryToString();
421
+ var $TypeError = TypeError;
422
+ aCallable = function(argument) {
423
+ if (isCallable2(argument)) return argument;
424
+ throw new $TypeError(tryToString2(argument) + " is not a function");
425
+ };
426
+ return aCallable;
427
+ }
428
+ var getMethod;
429
+ var hasRequiredGetMethod;
430
+ function requireGetMethod() {
431
+ if (hasRequiredGetMethod) return getMethod;
432
+ hasRequiredGetMethod = 1;
433
+ var aCallable2 = requireACallable();
434
+ var isNullOrUndefined2 = requireIsNullOrUndefined();
435
+ getMethod = function(V2, P2) {
436
+ var func = V2[P2];
437
+ return isNullOrUndefined2(func) ? void 0 : aCallable2(func);
438
+ };
439
+ return getMethod;
440
+ }
441
+ var ordinaryToPrimitive;
442
+ var hasRequiredOrdinaryToPrimitive;
443
+ function requireOrdinaryToPrimitive() {
444
+ if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive;
445
+ hasRequiredOrdinaryToPrimitive = 1;
446
+ var call = requireFunctionCall();
447
+ var isCallable2 = requireIsCallable();
448
+ var isObject2 = requireIsObject();
449
+ var $TypeError = TypeError;
450
+ ordinaryToPrimitive = function(input, pref) {
451
+ var fn, val;
452
+ if (pref === "string" && isCallable2(fn = input.toString) && !isObject2(val = call(fn, input))) return val;
453
+ if (isCallable2(fn = input.valueOf) && !isObject2(val = call(fn, input))) return val;
454
+ if (pref !== "string" && isCallable2(fn = input.toString) && !isObject2(val = call(fn, input))) return val;
455
+ throw new $TypeError("Can't convert object to primitive value");
456
+ };
457
+ return ordinaryToPrimitive;
458
+ }
277
459
  var sharedStore = { exports: {} };
278
- var globalThis$7 = globalThis_1;
279
- var defineProperty$1 = Object.defineProperty;
280
- var defineGlobalProperty$3 = function(key, value) {
281
- try {
282
- defineProperty$1(globalThis$7, key, { value, configurable: true, writable: true });
283
- } catch (error) {
284
- globalThis$7[key] = value;
285
- }
286
- return value;
287
- };
288
- var globalThis$6 = globalThis_1;
289
- var defineGlobalProperty$2 = defineGlobalProperty$3;
290
- var SHARED = "__core-js_shared__";
291
- var store$3 = sharedStore.exports = globalThis$6[SHARED] || defineGlobalProperty$2(SHARED, {});
292
- (store$3.versions || (store$3.versions = [])).push({
293
- version: "3.47.0",
294
- mode: "global",
295
- copyright: 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",
296
- license: "https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",
297
- source: "https://github.com/zloirock/core-js"
298
- });
299
- var sharedStoreExports = sharedStore.exports;
300
- var store$2 = sharedStoreExports;
301
- var shared$3 = function(key, value) {
302
- return store$2[key] || (store$2[key] = value || {});
303
- };
304
- var requireObjectCoercible$2 = requireObjectCoercible$4;
305
- var $Object$1 = Object;
306
- var toObject$1 = function(argument) {
307
- return $Object$1(requireObjectCoercible$2(argument));
308
- };
309
- var uncurryThis$a = functionUncurryThis;
310
- var toObject = toObject$1;
311
- var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
312
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn2(it2, key) {
313
- return hasOwnProperty(toObject(it2), key);
314
- };
315
- var uncurryThis$9 = functionUncurryThis;
316
- var id = 0;
317
- var postfix = Math.random();
318
- var toString$1 = uncurryThis$9(1.1.toString);
319
- var uid$2 = function(key) {
320
- return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$1(++id + postfix, 36);
321
- };
322
- var globalThis$5 = globalThis_1;
323
- var shared$2 = shared$3;
324
- var hasOwn$6 = hasOwnProperty_1;
325
- var uid$1 = uid$2;
326
- var NATIVE_SYMBOL = symbolConstructorDetection;
327
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
328
- var Symbol$1 = globalThis$5.Symbol;
329
- var WellKnownSymbolsStore = shared$2("wks");
330
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1["for"] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
331
- var wellKnownSymbol$5 = function(name) {
332
- if (!hasOwn$6(WellKnownSymbolsStore, name)) {
333
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol("Symbol." + name);
334
- }
335
- return WellKnownSymbolsStore[name];
336
- };
337
- var call$4 = functionCall;
338
- var isObject$2 = isObject$4;
339
- var isSymbol$1 = isSymbol$2;
340
- var getMethod$2 = getMethod$3;
341
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
342
- var wellKnownSymbol$4 = wellKnownSymbol$5;
343
- var $TypeError$4 = TypeError;
344
- var TO_PRIMITIVE = wellKnownSymbol$4("toPrimitive");
345
- var toPrimitive$1 = function(input, pref) {
346
- if (!isObject$2(input) || isSymbol$1(input)) return input;
347
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
348
- var result;
349
- if (exoticToPrim) {
350
- if (pref === void 0) pref = "default";
351
- result = call$4(exoticToPrim, input, pref);
352
- if (!isObject$2(result) || isSymbol$1(result)) return result;
353
- throw new $TypeError$4("Can't convert object to primitive value");
354
- }
355
- if (pref === void 0) pref = "number";
356
- return ordinaryToPrimitive(input, pref);
357
- };
358
- var toPrimitive = toPrimitive$1;
359
- var isSymbol = isSymbol$2;
360
- var toPropertyKey$3 = function(argument) {
361
- var key = toPrimitive(argument, "string");
362
- return isSymbol(key) ? key : key + "";
363
- };
364
- var globalThis$4 = globalThis_1;
365
- var isObject$1 = isObject$4;
366
- var document$1 = globalThis$4.document;
367
- var EXISTS$1 = isObject$1(document$1) && isObject$1(document$1.createElement);
368
- var documentCreateElement = function(it2) {
369
- return EXISTS$1 ? document$1.createElement(it2) : {};
370
- };
371
- var DESCRIPTORS$7 = descriptors;
372
- var fails$5 = fails$a;
373
- var createElement = documentCreateElement;
374
- var ie8DomDefine = !DESCRIPTORS$7 && !fails$5(function() {
375
- return Object.defineProperty(createElement("div"), "a", {
376
- get: function() {
377
- return 7;
460
+ var isPure;
461
+ var hasRequiredIsPure;
462
+ function requireIsPure() {
463
+ if (hasRequiredIsPure) return isPure;
464
+ hasRequiredIsPure = 1;
465
+ isPure = false;
466
+ return isPure;
467
+ }
468
+ var defineGlobalProperty;
469
+ var hasRequiredDefineGlobalProperty;
470
+ function requireDefineGlobalProperty() {
471
+ if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
472
+ hasRequiredDefineGlobalProperty = 1;
473
+ var globalThis2 = requireGlobalThis();
474
+ var defineProperty = Object.defineProperty;
475
+ defineGlobalProperty = function(key, value) {
476
+ try {
477
+ defineProperty(globalThis2, key, { value, configurable: true, writable: true });
478
+ } catch (error) {
479
+ globalThis2[key] = value;
378
480
  }
379
- }).a !== 7;
380
- });
381
- var DESCRIPTORS$6 = descriptors;
382
- var call$3 = functionCall;
383
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
384
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
385
- var toIndexedObject$2 = toIndexedObject$3;
386
- var toPropertyKey$2 = toPropertyKey$3;
387
- var hasOwn$5 = hasOwnProperty_1;
388
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
389
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
390
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor2(O2, P2) {
391
- O2 = toIndexedObject$2(O2);
392
- P2 = toPropertyKey$2(P2);
393
- if (IE8_DOM_DEFINE$1) try {
394
- return $getOwnPropertyDescriptor$1(O2, P2);
395
- } catch (error) {
396
- }
397
- if (hasOwn$5(O2, P2)) return createPropertyDescriptor$2(!call$3(propertyIsEnumerableModule.f, O2, P2), O2[P2]);
398
- };
481
+ return value;
482
+ };
483
+ return defineGlobalProperty;
484
+ }
485
+ var hasRequiredSharedStore;
486
+ function requireSharedStore() {
487
+ if (hasRequiredSharedStore) return sharedStore.exports;
488
+ hasRequiredSharedStore = 1;
489
+ var IS_PURE = requireIsPure();
490
+ var globalThis2 = requireGlobalThis();
491
+ var defineGlobalProperty2 = requireDefineGlobalProperty();
492
+ var SHARED = "__core-js_shared__";
493
+ var store = sharedStore.exports = globalThis2[SHARED] || defineGlobalProperty2(SHARED, {});
494
+ (store.versions || (store.versions = [])).push({
495
+ version: "3.47.0",
496
+ mode: IS_PURE ? "pure" : "global",
497
+ copyright: 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",
498
+ license: "https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",
499
+ source: "https://github.com/zloirock/core-js"
500
+ });
501
+ return sharedStore.exports;
502
+ }
503
+ var shared;
504
+ var hasRequiredShared;
505
+ function requireShared() {
506
+ if (hasRequiredShared) return shared;
507
+ hasRequiredShared = 1;
508
+ var store = requireSharedStore();
509
+ shared = function(key, value) {
510
+ return store[key] || (store[key] = value || {});
511
+ };
512
+ return shared;
513
+ }
514
+ var toObject;
515
+ var hasRequiredToObject;
516
+ function requireToObject() {
517
+ if (hasRequiredToObject) return toObject;
518
+ hasRequiredToObject = 1;
519
+ var requireObjectCoercible2 = requireRequireObjectCoercible();
520
+ var $Object = Object;
521
+ toObject = function(argument) {
522
+ return $Object(requireObjectCoercible2(argument));
523
+ };
524
+ return toObject;
525
+ }
526
+ var hasOwnProperty_1;
527
+ var hasRequiredHasOwnProperty;
528
+ function requireHasOwnProperty() {
529
+ if (hasRequiredHasOwnProperty) return hasOwnProperty_1;
530
+ hasRequiredHasOwnProperty = 1;
531
+ var uncurryThis = requireFunctionUncurryThis();
532
+ var toObject2 = requireToObject();
533
+ var hasOwnProperty = uncurryThis({}.hasOwnProperty);
534
+ hasOwnProperty_1 = Object.hasOwn || function hasOwn(it2, key) {
535
+ return hasOwnProperty(toObject2(it2), key);
536
+ };
537
+ return hasOwnProperty_1;
538
+ }
539
+ var uid;
540
+ var hasRequiredUid;
541
+ function requireUid() {
542
+ if (hasRequiredUid) return uid;
543
+ hasRequiredUid = 1;
544
+ var uncurryThis = requireFunctionUncurryThis();
545
+ var id = 0;
546
+ var postfix = Math.random();
547
+ var toString2 = uncurryThis(1.1.toString);
548
+ uid = function(key) {
549
+ return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString2(++id + postfix, 36);
550
+ };
551
+ return uid;
552
+ }
553
+ var wellKnownSymbol;
554
+ var hasRequiredWellKnownSymbol;
555
+ function requireWellKnownSymbol() {
556
+ if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
557
+ hasRequiredWellKnownSymbol = 1;
558
+ var globalThis2 = requireGlobalThis();
559
+ var shared2 = requireShared();
560
+ var hasOwn = requireHasOwnProperty();
561
+ var uid2 = requireUid();
562
+ var NATIVE_SYMBOL = requireSymbolConstructorDetection();
563
+ var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
564
+ var Symbol2 = globalThis2.Symbol;
565
+ var WellKnownSymbolsStore = shared2("wks");
566
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2["for"] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid2;
567
+ wellKnownSymbol = function(name) {
568
+ if (!hasOwn(WellKnownSymbolsStore, name)) {
569
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol2, name) ? Symbol2[name] : createWellKnownSymbol("Symbol." + name);
570
+ }
571
+ return WellKnownSymbolsStore[name];
572
+ };
573
+ return wellKnownSymbol;
574
+ }
575
+ var toPrimitive;
576
+ var hasRequiredToPrimitive;
577
+ function requireToPrimitive() {
578
+ if (hasRequiredToPrimitive) return toPrimitive;
579
+ hasRequiredToPrimitive = 1;
580
+ var call = requireFunctionCall();
581
+ var isObject2 = requireIsObject();
582
+ var isSymbol2 = requireIsSymbol();
583
+ var getMethod2 = requireGetMethod();
584
+ var ordinaryToPrimitive2 = requireOrdinaryToPrimitive();
585
+ var wellKnownSymbol2 = requireWellKnownSymbol();
586
+ var $TypeError = TypeError;
587
+ var TO_PRIMITIVE = wellKnownSymbol2("toPrimitive");
588
+ toPrimitive = function(input, pref) {
589
+ if (!isObject2(input) || isSymbol2(input)) return input;
590
+ var exoticToPrim = getMethod2(input, TO_PRIMITIVE);
591
+ var result;
592
+ if (exoticToPrim) {
593
+ if (pref === void 0) pref = "default";
594
+ result = call(exoticToPrim, input, pref);
595
+ if (!isObject2(result) || isSymbol2(result)) return result;
596
+ throw new $TypeError("Can't convert object to primitive value");
597
+ }
598
+ if (pref === void 0) pref = "number";
599
+ return ordinaryToPrimitive2(input, pref);
600
+ };
601
+ return toPrimitive;
602
+ }
603
+ var toPropertyKey;
604
+ var hasRequiredToPropertyKey;
605
+ function requireToPropertyKey() {
606
+ if (hasRequiredToPropertyKey) return toPropertyKey;
607
+ hasRequiredToPropertyKey = 1;
608
+ var toPrimitive2 = requireToPrimitive();
609
+ var isSymbol2 = requireIsSymbol();
610
+ toPropertyKey = function(argument) {
611
+ var key = toPrimitive2(argument, "string");
612
+ return isSymbol2(key) ? key : key + "";
613
+ };
614
+ return toPropertyKey;
615
+ }
616
+ var documentCreateElement;
617
+ var hasRequiredDocumentCreateElement;
618
+ function requireDocumentCreateElement() {
619
+ if (hasRequiredDocumentCreateElement) return documentCreateElement;
620
+ hasRequiredDocumentCreateElement = 1;
621
+ var globalThis2 = requireGlobalThis();
622
+ var isObject2 = requireIsObject();
623
+ var document2 = globalThis2.document;
624
+ var EXISTS = isObject2(document2) && isObject2(document2.createElement);
625
+ documentCreateElement = function(it2) {
626
+ return EXISTS ? document2.createElement(it2) : {};
627
+ };
628
+ return documentCreateElement;
629
+ }
630
+ var ie8DomDefine;
631
+ var hasRequiredIe8DomDefine;
632
+ function requireIe8DomDefine() {
633
+ if (hasRequiredIe8DomDefine) return ie8DomDefine;
634
+ hasRequiredIe8DomDefine = 1;
635
+ var DESCRIPTORS = requireDescriptors();
636
+ var fails2 = requireFails();
637
+ var createElement = requireDocumentCreateElement();
638
+ ie8DomDefine = !DESCRIPTORS && !fails2(function() {
639
+ return Object.defineProperty(createElement("div"), "a", {
640
+ get: function() {
641
+ return 7;
642
+ }
643
+ }).a !== 7;
644
+ });
645
+ return ie8DomDefine;
646
+ }
647
+ var hasRequiredObjectGetOwnPropertyDescriptor;
648
+ function requireObjectGetOwnPropertyDescriptor() {
649
+ if (hasRequiredObjectGetOwnPropertyDescriptor) return objectGetOwnPropertyDescriptor;
650
+ hasRequiredObjectGetOwnPropertyDescriptor = 1;
651
+ var DESCRIPTORS = requireDescriptors();
652
+ var call = requireFunctionCall();
653
+ var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
654
+ var createPropertyDescriptor2 = requireCreatePropertyDescriptor();
655
+ var toIndexedObject2 = requireToIndexedObject();
656
+ var toPropertyKey2 = requireToPropertyKey();
657
+ var hasOwn = requireHasOwnProperty();
658
+ var IE8_DOM_DEFINE = requireIe8DomDefine();
659
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
660
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O2, P2) {
661
+ O2 = toIndexedObject2(O2);
662
+ P2 = toPropertyKey2(P2);
663
+ if (IE8_DOM_DEFINE) try {
664
+ return $getOwnPropertyDescriptor(O2, P2);
665
+ } catch (error) {
666
+ }
667
+ if (hasOwn(O2, P2)) return createPropertyDescriptor2(!call(propertyIsEnumerableModule.f, O2, P2), O2[P2]);
668
+ };
669
+ return objectGetOwnPropertyDescriptor;
670
+ }
399
671
  var objectDefineProperty = {};
400
- var DESCRIPTORS$5 = descriptors;
401
- var fails$4 = fails$a;
402
- var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$4(function() {
403
- return Object.defineProperty(function() {
404
- }, "prototype", {
405
- value: 42,
406
- writable: false
407
- }).prototype !== 42;
408
- });
409
- var isObject = isObject$4;
410
- var $String$1 = String;
411
- var $TypeError$3 = TypeError;
412
- var anObject$5 = function(argument) {
413
- if (isObject(argument)) return argument;
414
- throw new $TypeError$3($String$1(argument) + " is not an object");
415
- };
416
- var DESCRIPTORS$4 = descriptors;
417
- var IE8_DOM_DEFINE = ie8DomDefine;
418
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
419
- var anObject$4 = anObject$5;
420
- var toPropertyKey$1 = toPropertyKey$3;
421
- var $TypeError$2 = TypeError;
422
- var $defineProperty = Object.defineProperty;
423
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
424
- var ENUMERABLE = "enumerable";
425
- var CONFIGURABLE$1 = "configurable";
426
- var WRITABLE = "writable";
427
- objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty2(O2, P2, Attributes) {
428
- anObject$4(O2);
429
- P2 = toPropertyKey$1(P2);
430
- anObject$4(Attributes);
431
- if (typeof O2 === "function" && P2 === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
432
- var current = $getOwnPropertyDescriptor(O2, P2);
433
- if (current && current[WRITABLE]) {
434
- O2[P2] = Attributes.value;
435
- Attributes = {
436
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
437
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
438
- writable: false
439
- };
672
+ var v8PrototypeDefineBug;
673
+ var hasRequiredV8PrototypeDefineBug;
674
+ function requireV8PrototypeDefineBug() {
675
+ if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
676
+ hasRequiredV8PrototypeDefineBug = 1;
677
+ var DESCRIPTORS = requireDescriptors();
678
+ var fails2 = requireFails();
679
+ v8PrototypeDefineBug = DESCRIPTORS && fails2(function() {
680
+ return Object.defineProperty(function() {
681
+ }, "prototype", {
682
+ value: 42,
683
+ writable: false
684
+ }).prototype !== 42;
685
+ });
686
+ return v8PrototypeDefineBug;
687
+ }
688
+ var anObject;
689
+ var hasRequiredAnObject;
690
+ function requireAnObject() {
691
+ if (hasRequiredAnObject) return anObject;
692
+ hasRequiredAnObject = 1;
693
+ var isObject2 = requireIsObject();
694
+ var $String = String;
695
+ var $TypeError = TypeError;
696
+ anObject = function(argument) {
697
+ if (isObject2(argument)) return argument;
698
+ throw new $TypeError($String(argument) + " is not an object");
699
+ };
700
+ return anObject;
701
+ }
702
+ var hasRequiredObjectDefineProperty;
703
+ function requireObjectDefineProperty() {
704
+ if (hasRequiredObjectDefineProperty) return objectDefineProperty;
705
+ hasRequiredObjectDefineProperty = 1;
706
+ var DESCRIPTORS = requireDescriptors();
707
+ var IE8_DOM_DEFINE = requireIe8DomDefine();
708
+ var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
709
+ var anObject2 = requireAnObject();
710
+ var toPropertyKey2 = requireToPropertyKey();
711
+ var $TypeError = TypeError;
712
+ var $defineProperty = Object.defineProperty;
713
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
714
+ var ENUMERABLE = "enumerable";
715
+ var CONFIGURABLE = "configurable";
716
+ var WRITABLE = "writable";
717
+ objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O2, P2, Attributes) {
718
+ anObject2(O2);
719
+ P2 = toPropertyKey2(P2);
720
+ anObject2(Attributes);
721
+ if (typeof O2 === "function" && P2 === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
722
+ var current = $getOwnPropertyDescriptor(O2, P2);
723
+ if (current && current[WRITABLE]) {
724
+ O2[P2] = Attributes.value;
725
+ Attributes = {
726
+ configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
727
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
728
+ writable: false
729
+ };
730
+ }
440
731
  }
441
- }
442
- return $defineProperty(O2, P2, Attributes);
443
- } : $defineProperty : function defineProperty2(O2, P2, Attributes) {
444
- anObject$4(O2);
445
- P2 = toPropertyKey$1(P2);
446
- anObject$4(Attributes);
447
- if (IE8_DOM_DEFINE) try {
448
732
  return $defineProperty(O2, P2, Attributes);
449
- } catch (error) {
450
- }
451
- if ("get" in Attributes || "set" in Attributes) throw new $TypeError$2("Accessors not supported");
452
- if ("value" in Attributes) O2[P2] = Attributes.value;
453
- return O2;
454
- };
455
- var DESCRIPTORS$3 = descriptors;
456
- var definePropertyModule$3 = objectDefineProperty;
457
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
458
- var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function(object, key, value) {
459
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
460
- } : function(object, key, value) {
461
- object[key] = value;
462
- return object;
463
- };
464
- var makeBuiltIn$2 = { exports: {} };
465
- var DESCRIPTORS$2 = descriptors;
466
- var hasOwn$4 = hasOwnProperty_1;
467
- var FunctionPrototype = Function.prototype;
468
- var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
469
- var EXISTS = hasOwn$4(FunctionPrototype, "name");
470
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || DESCRIPTORS$2 && getDescriptor(FunctionPrototype, "name").configurable);
471
- var functionName = {
472
- CONFIGURABLE
473
- };
474
- var uncurryThis$8 = functionUncurryThis;
475
- var isCallable$5 = isCallable$b;
476
- var store$1 = sharedStoreExports;
477
- var functionToString = uncurryThis$8(Function.toString);
478
- if (!isCallable$5(store$1.inspectSource)) {
479
- store$1.inspectSource = function(it2) {
480
- return functionToString(it2);
733
+ } : $defineProperty : function defineProperty(O2, P2, Attributes) {
734
+ anObject2(O2);
735
+ P2 = toPropertyKey2(P2);
736
+ anObject2(Attributes);
737
+ if (IE8_DOM_DEFINE) try {
738
+ return $defineProperty(O2, P2, Attributes);
739
+ } catch (error) {
740
+ }
741
+ if ("get" in Attributes || "set" in Attributes) throw new $TypeError("Accessors not supported");
742
+ if ("value" in Attributes) O2[P2] = Attributes.value;
743
+ return O2;
481
744
  };
745
+ return objectDefineProperty;
482
746
  }
483
- var inspectSource$1 = store$1.inspectSource;
484
- var globalThis$3 = globalThis_1;
485
- var isCallable$4 = isCallable$b;
486
- var WeakMap$2 = globalThis$3.WeakMap;
487
- var weakMapBasicDetection = isCallable$4(WeakMap$2) && /native code/.test(String(WeakMap$2));
488
- var shared$1 = shared$3;
489
- var uid = uid$2;
490
- var keys = shared$1("keys");
491
- var sharedKey$1 = function(key) {
492
- return keys[key] || (keys[key] = uid(key));
493
- };
494
- var hiddenKeys$3 = {};
495
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
496
- var globalThis$2 = globalThis_1;
497
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
498
- var hasOwn$3 = hasOwnProperty_1;
499
- var shared = sharedStoreExports;
500
- var sharedKey = sharedKey$1;
501
- var hiddenKeys$2 = hiddenKeys$3;
502
- var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
503
- var TypeError$1 = globalThis$2.TypeError;
504
- var WeakMap$1 = globalThis$2.WeakMap;
505
- var set$1, get$1, has$1;
506
- var enforce = function(it2) {
507
- return has$1(it2) ? get$1(it2) : set$1(it2, {});
508
- };
509
- if (NATIVE_WEAK_MAP || shared.state) {
510
- var store = shared.state || (shared.state = new WeakMap$1());
511
- store.get = store.get;
512
- store.has = store.has;
513
- store.set = store.set;
514
- set$1 = function(it2, metadata) {
515
- if (store.has(it2)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
516
- metadata.facade = it2;
517
- store.set(it2, metadata);
518
- return metadata;
747
+ var createNonEnumerableProperty;
748
+ var hasRequiredCreateNonEnumerableProperty;
749
+ function requireCreateNonEnumerableProperty() {
750
+ if (hasRequiredCreateNonEnumerableProperty) return createNonEnumerableProperty;
751
+ hasRequiredCreateNonEnumerableProperty = 1;
752
+ var DESCRIPTORS = requireDescriptors();
753
+ var definePropertyModule = requireObjectDefineProperty();
754
+ var createPropertyDescriptor2 = requireCreatePropertyDescriptor();
755
+ createNonEnumerableProperty = DESCRIPTORS ? function(object, key, value) {
756
+ return definePropertyModule.f(object, key, createPropertyDescriptor2(1, value));
757
+ } : function(object, key, value) {
758
+ object[key] = value;
759
+ return object;
519
760
  };
520
- get$1 = function(it2) {
521
- return store.get(it2) || {};
761
+ return createNonEnumerableProperty;
762
+ }
763
+ var makeBuiltIn = { exports: {} };
764
+ var functionName;
765
+ var hasRequiredFunctionName;
766
+ function requireFunctionName() {
767
+ if (hasRequiredFunctionName) return functionName;
768
+ hasRequiredFunctionName = 1;
769
+ var DESCRIPTORS = requireDescriptors();
770
+ var hasOwn = requireHasOwnProperty();
771
+ var FunctionPrototype = Function.prototype;
772
+ var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
773
+ var EXISTS = hasOwn(FunctionPrototype, "name");
774
+ var PROPER = EXISTS && (function something() {
775
+ }).name === "something";
776
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, "name").configurable);
777
+ functionName = {
778
+ EXISTS,
779
+ PROPER,
780
+ CONFIGURABLE
522
781
  };
523
- has$1 = function(it2) {
524
- return store.has(it2);
782
+ return functionName;
783
+ }
784
+ var inspectSource;
785
+ var hasRequiredInspectSource;
786
+ function requireInspectSource() {
787
+ if (hasRequiredInspectSource) return inspectSource;
788
+ hasRequiredInspectSource = 1;
789
+ var uncurryThis = requireFunctionUncurryThis();
790
+ var isCallable2 = requireIsCallable();
791
+ var store = requireSharedStore();
792
+ var functionToString = uncurryThis(Function.toString);
793
+ if (!isCallable2(store.inspectSource)) {
794
+ store.inspectSource = function(it2) {
795
+ return functionToString(it2);
796
+ };
797
+ }
798
+ inspectSource = store.inspectSource;
799
+ return inspectSource;
800
+ }
801
+ var weakMapBasicDetection;
802
+ var hasRequiredWeakMapBasicDetection;
803
+ function requireWeakMapBasicDetection() {
804
+ if (hasRequiredWeakMapBasicDetection) return weakMapBasicDetection;
805
+ hasRequiredWeakMapBasicDetection = 1;
806
+ var globalThis2 = requireGlobalThis();
807
+ var isCallable2 = requireIsCallable();
808
+ var WeakMap2 = globalThis2.WeakMap;
809
+ weakMapBasicDetection = isCallable2(WeakMap2) && /native code/.test(String(WeakMap2));
810
+ return weakMapBasicDetection;
811
+ }
812
+ var sharedKey;
813
+ var hasRequiredSharedKey;
814
+ function requireSharedKey() {
815
+ if (hasRequiredSharedKey) return sharedKey;
816
+ hasRequiredSharedKey = 1;
817
+ var shared2 = requireShared();
818
+ var uid2 = requireUid();
819
+ var keys = shared2("keys");
820
+ sharedKey = function(key) {
821
+ return keys[key] || (keys[key] = uid2(key));
525
822
  };
526
- } else {
527
- var STATE = sharedKey("state");
528
- hiddenKeys$2[STATE] = true;
529
- set$1 = function(it2, metadata) {
530
- if (hasOwn$3(it2, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
531
- metadata.facade = it2;
532
- createNonEnumerableProperty$1(it2, STATE, metadata);
533
- return metadata;
823
+ return sharedKey;
824
+ }
825
+ var hiddenKeys;
826
+ var hasRequiredHiddenKeys;
827
+ function requireHiddenKeys() {
828
+ if (hasRequiredHiddenKeys) return hiddenKeys;
829
+ hasRequiredHiddenKeys = 1;
830
+ hiddenKeys = {};
831
+ return hiddenKeys;
832
+ }
833
+ var internalState;
834
+ var hasRequiredInternalState;
835
+ function requireInternalState() {
836
+ if (hasRequiredInternalState) return internalState;
837
+ hasRequiredInternalState = 1;
838
+ var NATIVE_WEAK_MAP = requireWeakMapBasicDetection();
839
+ var globalThis2 = requireGlobalThis();
840
+ var isObject2 = requireIsObject();
841
+ var createNonEnumerableProperty2 = requireCreateNonEnumerableProperty();
842
+ var hasOwn = requireHasOwnProperty();
843
+ var shared2 = requireSharedStore();
844
+ var sharedKey2 = requireSharedKey();
845
+ var hiddenKeys2 = requireHiddenKeys();
846
+ var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
847
+ var TypeError2 = globalThis2.TypeError;
848
+ var WeakMap2 = globalThis2.WeakMap;
849
+ var set, get, has;
850
+ var enforce = function(it2) {
851
+ return has(it2) ? get(it2) : set(it2, {});
534
852
  };
535
- get$1 = function(it2) {
536
- return hasOwn$3(it2, STATE) ? it2[STATE] : {};
853
+ var getterFor = function(TYPE) {
854
+ return function(it2) {
855
+ var state;
856
+ if (!isObject2(it2) || (state = get(it2)).type !== TYPE) {
857
+ throw new TypeError2("Incompatible receiver, " + TYPE + " required");
858
+ }
859
+ return state;
860
+ };
537
861
  };
538
- has$1 = function(it2) {
539
- return hasOwn$3(it2, STATE);
862
+ if (NATIVE_WEAK_MAP || shared2.state) {
863
+ var store = shared2.state || (shared2.state = new WeakMap2());
864
+ store.get = store.get;
865
+ store.has = store.has;
866
+ store.set = store.set;
867
+ set = function(it2, metadata) {
868
+ if (store.has(it2)) throw new TypeError2(OBJECT_ALREADY_INITIALIZED);
869
+ metadata.facade = it2;
870
+ store.set(it2, metadata);
871
+ return metadata;
872
+ };
873
+ get = function(it2) {
874
+ return store.get(it2) || {};
875
+ };
876
+ has = function(it2) {
877
+ return store.has(it2);
878
+ };
879
+ } else {
880
+ var STATE = sharedKey2("state");
881
+ hiddenKeys2[STATE] = true;
882
+ set = function(it2, metadata) {
883
+ if (hasOwn(it2, STATE)) throw new TypeError2(OBJECT_ALREADY_INITIALIZED);
884
+ metadata.facade = it2;
885
+ createNonEnumerableProperty2(it2, STATE, metadata);
886
+ return metadata;
887
+ };
888
+ get = function(it2) {
889
+ return hasOwn(it2, STATE) ? it2[STATE] : {};
890
+ };
891
+ has = function(it2) {
892
+ return hasOwn(it2, STATE);
893
+ };
894
+ }
895
+ internalState = {
896
+ set,
897
+ get,
898
+ has,
899
+ enforce,
900
+ getterFor
540
901
  };
902
+ return internalState;
541
903
  }
542
- var internalState = {
543
- get: get$1,
544
- enforce
545
- };
546
- var uncurryThis$7 = functionUncurryThis;
547
- var fails$3 = fails$a;
548
- var isCallable$3 = isCallable$b;
549
- var hasOwn$2 = hasOwnProperty_1;
550
- var DESCRIPTORS$1 = descriptors;
551
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
552
- var inspectSource = inspectSource$1;
553
- var InternalStateModule = internalState;
554
- var enforceInternalState = InternalStateModule.enforce;
555
- var getInternalState = InternalStateModule.get;
556
- var $String = String;
557
- var defineProperty = Object.defineProperty;
558
- var stringSlice = uncurryThis$7("".slice);
559
- var replace = uncurryThis$7("".replace);
560
- var join = uncurryThis$7([].join);
561
- var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$3(function() {
562
- return defineProperty(function() {
563
- }, "length", { value: 8 }).length !== 8;
564
- });
565
- var TEMPLATE = String(String).split("String");
566
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function(value, name, options) {
567
- if (stringSlice($String(name), 0, 7) === "Symbol(") {
568
- name = "[" + replace($String(name), /^Symbol\(([^)]*)\).*$/, "$1") + "]";
569
- }
570
- if (options && options.getter) name = "get " + name;
571
- if (options && options.setter) name = "set " + name;
572
- if (!hasOwn$2(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
573
- if (DESCRIPTORS$1) defineProperty(value, "name", { value: name, configurable: true });
574
- else value.name = name;
575
- }
576
- if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, "arity") && value.length !== options.arity) {
577
- defineProperty(value, "length", { value: options.arity });
578
- }
579
- try {
580
- if (options && hasOwn$2(options, "constructor") && options.constructor) {
581
- if (DESCRIPTORS$1) defineProperty(value, "prototype", { writable: false });
582
- } else if (value.prototype) value.prototype = void 0;
583
- } catch (error) {
584
- }
585
- var state = enforceInternalState(value);
586
- if (!hasOwn$2(state, "source")) {
587
- state.source = join(TEMPLATE, typeof name == "string" ? name : "");
588
- }
589
- return value;
590
- };
591
- Function.prototype.toString = makeBuiltIn$1(function toString2() {
592
- return isCallable$3(this) && getInternalState(this).source || inspectSource(this);
593
- }, "toString");
594
- var makeBuiltInExports = makeBuiltIn$2.exports;
595
- var isCallable$2 = isCallable$b;
596
- var definePropertyModule$2 = objectDefineProperty;
597
- var makeBuiltIn = makeBuiltInExports;
598
- var defineGlobalProperty$1 = defineGlobalProperty$3;
599
- var defineBuiltIn$1 = function(O2, key, value, options) {
600
- if (!options) options = {};
601
- var simple = options.enumerable;
602
- var name = options.name !== void 0 ? options.name : key;
603
- if (isCallable$2(value)) makeBuiltIn(value, name, options);
604
- if (options.global) {
605
- if (simple) O2[key] = value;
606
- else defineGlobalProperty$1(key, value);
607
- } else {
904
+ var hasRequiredMakeBuiltIn;
905
+ function requireMakeBuiltIn() {
906
+ if (hasRequiredMakeBuiltIn) return makeBuiltIn.exports;
907
+ hasRequiredMakeBuiltIn = 1;
908
+ var uncurryThis = requireFunctionUncurryThis();
909
+ var fails2 = requireFails();
910
+ var isCallable2 = requireIsCallable();
911
+ var hasOwn = requireHasOwnProperty();
912
+ var DESCRIPTORS = requireDescriptors();
913
+ var CONFIGURABLE_FUNCTION_NAME = requireFunctionName().CONFIGURABLE;
914
+ var inspectSource2 = requireInspectSource();
915
+ var InternalStateModule = requireInternalState();
916
+ var enforceInternalState = InternalStateModule.enforce;
917
+ var getInternalState = InternalStateModule.get;
918
+ var $String = String;
919
+ var defineProperty = Object.defineProperty;
920
+ var stringSlice = uncurryThis("".slice);
921
+ var replace = uncurryThis("".replace);
922
+ var join = uncurryThis([].join);
923
+ var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails2(function() {
924
+ return defineProperty(function() {
925
+ }, "length", { value: 8 }).length !== 8;
926
+ });
927
+ var TEMPLATE = String(String).split("String");
928
+ var makeBuiltIn$1 = makeBuiltIn.exports = function(value, name, options) {
929
+ if (stringSlice($String(name), 0, 7) === "Symbol(") {
930
+ name = "[" + replace($String(name), /^Symbol\(([^)]*)\).*$/, "$1") + "]";
931
+ }
932
+ if (options && options.getter) name = "get " + name;
933
+ if (options && options.setter) name = "set " + name;
934
+ if (!hasOwn(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
935
+ if (DESCRIPTORS) defineProperty(value, "name", { value: name, configurable: true });
936
+ else value.name = name;
937
+ }
938
+ if (CONFIGURABLE_LENGTH && options && hasOwn(options, "arity") && value.length !== options.arity) {
939
+ defineProperty(value, "length", { value: options.arity });
940
+ }
608
941
  try {
609
- if (!options.unsafe) delete O2[key];
610
- else if (O2[key]) simple = true;
942
+ if (options && hasOwn(options, "constructor") && options.constructor) {
943
+ if (DESCRIPTORS) defineProperty(value, "prototype", { writable: false });
944
+ } else if (value.prototype) value.prototype = void 0;
611
945
  } catch (error) {
612
946
  }
613
- if (simple) O2[key] = value;
614
- else definePropertyModule$2.f(O2, key, {
615
- value,
616
- enumerable: false,
617
- configurable: !options.nonConfigurable,
618
- writable: !options.nonWritable
619
- });
620
- }
621
- return O2;
622
- };
947
+ var state = enforceInternalState(value);
948
+ if (!hasOwn(state, "source")) {
949
+ state.source = join(TEMPLATE, typeof name == "string" ? name : "");
950
+ }
951
+ return value;
952
+ };
953
+ Function.prototype.toString = makeBuiltIn$1(function toString2() {
954
+ return isCallable2(this) && getInternalState(this).source || inspectSource2(this);
955
+ }, "toString");
956
+ return makeBuiltIn.exports;
957
+ }
958
+ var defineBuiltIn;
959
+ var hasRequiredDefineBuiltIn;
960
+ function requireDefineBuiltIn() {
961
+ if (hasRequiredDefineBuiltIn) return defineBuiltIn;
962
+ hasRequiredDefineBuiltIn = 1;
963
+ var isCallable2 = requireIsCallable();
964
+ var definePropertyModule = requireObjectDefineProperty();
965
+ var makeBuiltIn2 = requireMakeBuiltIn();
966
+ var defineGlobalProperty2 = requireDefineGlobalProperty();
967
+ defineBuiltIn = function(O2, key, value, options) {
968
+ if (!options) options = {};
969
+ var simple = options.enumerable;
970
+ var name = options.name !== void 0 ? options.name : key;
971
+ if (isCallable2(value)) makeBuiltIn2(value, name, options);
972
+ if (options.global) {
973
+ if (simple) O2[key] = value;
974
+ else defineGlobalProperty2(key, value);
975
+ } else {
976
+ try {
977
+ if (!options.unsafe) delete O2[key];
978
+ else if (O2[key]) simple = true;
979
+ } catch (error) {
980
+ }
981
+ if (simple) O2[key] = value;
982
+ else definePropertyModule.f(O2, key, {
983
+ value,
984
+ enumerable: false,
985
+ configurable: !options.nonConfigurable,
986
+ writable: !options.nonWritable
987
+ });
988
+ }
989
+ return O2;
990
+ };
991
+ return defineBuiltIn;
992
+ }
623
993
  var objectGetOwnPropertyNames = {};
624
- var ceil = Math.ceil;
625
- var floor = Math.floor;
626
- var mathTrunc = Math.trunc || function trunc2(x2) {
627
- var n2 = +x2;
628
- return (n2 > 0 ? floor : ceil)(n2);
629
- };
630
- var trunc = mathTrunc;
631
- var toIntegerOrInfinity$2 = function(argument) {
632
- var number = +argument;
633
- return number !== number || number === 0 ? 0 : trunc(number);
634
- };
635
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
636
- var max = Math.max;
637
- var min$1 = Math.min;
638
- var toAbsoluteIndex$1 = function(index, length) {
639
- var integer = toIntegerOrInfinity$1(index);
640
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
641
- };
642
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
643
- var min = Math.min;
644
- var toLength$1 = function(argument) {
645
- var len = toIntegerOrInfinity(argument);
646
- return len > 0 ? min(len, 9007199254740991) : 0;
647
- };
648
- var toLength = toLength$1;
649
- var lengthOfArrayLike$2 = function(obj) {
650
- return toLength(obj.length);
651
- };
652
- var toIndexedObject$1 = toIndexedObject$3;
653
- var toAbsoluteIndex = toAbsoluteIndex$1;
654
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
655
- var createMethod = function(IS_INCLUDES) {
656
- return function($this, el, fromIndex) {
657
- var O2 = toIndexedObject$1($this);
658
- var length = lengthOfArrayLike$1(O2);
659
- if (length === 0) return !IS_INCLUDES && -1;
660
- var index = toAbsoluteIndex(fromIndex, length);
661
- var value;
662
- if (IS_INCLUDES && el !== el) while (length > index) {
663
- value = O2[index++];
664
- if (value !== value) return true;
665
- }
666
- else for (; length > index; index++) {
667
- if ((IS_INCLUDES || index in O2) && O2[index] === el) return IS_INCLUDES || index || 0;
668
- }
669
- return !IS_INCLUDES && -1;
994
+ var mathTrunc;
995
+ var hasRequiredMathTrunc;
996
+ function requireMathTrunc() {
997
+ if (hasRequiredMathTrunc) return mathTrunc;
998
+ hasRequiredMathTrunc = 1;
999
+ var ceil = Math.ceil;
1000
+ var floor = Math.floor;
1001
+ mathTrunc = Math.trunc || function trunc(x2) {
1002
+ var n2 = +x2;
1003
+ return (n2 > 0 ? floor : ceil)(n2);
670
1004
  };
671
- };
672
- var arrayIncludes = {
673
- // `Array.prototype.indexOf` method
674
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
675
- indexOf: createMethod(false)
676
- };
677
- var uncurryThis$6 = functionUncurryThis;
678
- var hasOwn$1 = hasOwnProperty_1;
679
- var toIndexedObject = toIndexedObject$3;
680
- var indexOf = arrayIncludes.indexOf;
681
- var hiddenKeys$1 = hiddenKeys$3;
682
- var push$2 = uncurryThis$6([].push);
683
- var objectKeysInternal = function(object, names) {
684
- var O2 = toIndexedObject(object);
685
- var i2 = 0;
686
- var result = [];
687
- var key;
688
- for (key in O2) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O2, key) && push$2(result, key);
689
- while (names.length > i2) if (hasOwn$1(O2, key = names[i2++])) {
690
- ~indexOf(result, key) || push$2(result, key);
691
- }
692
- return result;
693
- };
694
- var enumBugKeys$1 = [
695
- "constructor",
696
- "hasOwnProperty",
697
- "isPrototypeOf",
698
- "propertyIsEnumerable",
699
- "toLocaleString",
700
- "toString",
701
- "valueOf"
702
- ];
703
- var internalObjectKeys = objectKeysInternal;
704
- var enumBugKeys = enumBugKeys$1;
705
- var hiddenKeys = enumBugKeys.concat("length", "prototype");
706
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O2) {
707
- return internalObjectKeys(O2, hiddenKeys);
708
- };
1005
+ return mathTrunc;
1006
+ }
1007
+ var toIntegerOrInfinity;
1008
+ var hasRequiredToIntegerOrInfinity;
1009
+ function requireToIntegerOrInfinity() {
1010
+ if (hasRequiredToIntegerOrInfinity) return toIntegerOrInfinity;
1011
+ hasRequiredToIntegerOrInfinity = 1;
1012
+ var trunc = requireMathTrunc();
1013
+ toIntegerOrInfinity = function(argument) {
1014
+ var number = +argument;
1015
+ return number !== number || number === 0 ? 0 : trunc(number);
1016
+ };
1017
+ return toIntegerOrInfinity;
1018
+ }
1019
+ var toAbsoluteIndex;
1020
+ var hasRequiredToAbsoluteIndex;
1021
+ function requireToAbsoluteIndex() {
1022
+ if (hasRequiredToAbsoluteIndex) return toAbsoluteIndex;
1023
+ hasRequiredToAbsoluteIndex = 1;
1024
+ var toIntegerOrInfinity2 = requireToIntegerOrInfinity();
1025
+ var max = Math.max;
1026
+ var min = Math.min;
1027
+ toAbsoluteIndex = function(index, length) {
1028
+ var integer = toIntegerOrInfinity2(index);
1029
+ return integer < 0 ? max(integer + length, 0) : min(integer, length);
1030
+ };
1031
+ return toAbsoluteIndex;
1032
+ }
1033
+ var toLength;
1034
+ var hasRequiredToLength;
1035
+ function requireToLength() {
1036
+ if (hasRequiredToLength) return toLength;
1037
+ hasRequiredToLength = 1;
1038
+ var toIntegerOrInfinity2 = requireToIntegerOrInfinity();
1039
+ var min = Math.min;
1040
+ toLength = function(argument) {
1041
+ var len = toIntegerOrInfinity2(argument);
1042
+ return len > 0 ? min(len, 9007199254740991) : 0;
1043
+ };
1044
+ return toLength;
1045
+ }
1046
+ var lengthOfArrayLike;
1047
+ var hasRequiredLengthOfArrayLike;
1048
+ function requireLengthOfArrayLike() {
1049
+ if (hasRequiredLengthOfArrayLike) return lengthOfArrayLike;
1050
+ hasRequiredLengthOfArrayLike = 1;
1051
+ var toLength2 = requireToLength();
1052
+ lengthOfArrayLike = function(obj) {
1053
+ return toLength2(obj.length);
1054
+ };
1055
+ return lengthOfArrayLike;
1056
+ }
1057
+ var arrayIncludes;
1058
+ var hasRequiredArrayIncludes;
1059
+ function requireArrayIncludes() {
1060
+ if (hasRequiredArrayIncludes) return arrayIncludes;
1061
+ hasRequiredArrayIncludes = 1;
1062
+ var toIndexedObject2 = requireToIndexedObject();
1063
+ var toAbsoluteIndex2 = requireToAbsoluteIndex();
1064
+ var lengthOfArrayLike2 = requireLengthOfArrayLike();
1065
+ var createMethod = function(IS_INCLUDES) {
1066
+ return function($this, el, fromIndex) {
1067
+ var O2 = toIndexedObject2($this);
1068
+ var length = lengthOfArrayLike2(O2);
1069
+ if (length === 0) return !IS_INCLUDES && -1;
1070
+ var index = toAbsoluteIndex2(fromIndex, length);
1071
+ var value;
1072
+ if (IS_INCLUDES && el !== el) while (length > index) {
1073
+ value = O2[index++];
1074
+ if (value !== value) return true;
1075
+ }
1076
+ else for (; length > index; index++) {
1077
+ if ((IS_INCLUDES || index in O2) && O2[index] === el) return IS_INCLUDES || index || 0;
1078
+ }
1079
+ return !IS_INCLUDES && -1;
1080
+ };
1081
+ };
1082
+ arrayIncludes = {
1083
+ // `Array.prototype.includes` method
1084
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
1085
+ includes: createMethod(true),
1086
+ // `Array.prototype.indexOf` method
1087
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
1088
+ indexOf: createMethod(false)
1089
+ };
1090
+ return arrayIncludes;
1091
+ }
1092
+ var objectKeysInternal;
1093
+ var hasRequiredObjectKeysInternal;
1094
+ function requireObjectKeysInternal() {
1095
+ if (hasRequiredObjectKeysInternal) return objectKeysInternal;
1096
+ hasRequiredObjectKeysInternal = 1;
1097
+ var uncurryThis = requireFunctionUncurryThis();
1098
+ var hasOwn = requireHasOwnProperty();
1099
+ var toIndexedObject2 = requireToIndexedObject();
1100
+ var indexOf = requireArrayIncludes().indexOf;
1101
+ var hiddenKeys2 = requireHiddenKeys();
1102
+ var push = uncurryThis([].push);
1103
+ objectKeysInternal = function(object, names) {
1104
+ var O2 = toIndexedObject2(object);
1105
+ var i2 = 0;
1106
+ var result = [];
1107
+ var key;
1108
+ for (key in O2) !hasOwn(hiddenKeys2, key) && hasOwn(O2, key) && push(result, key);
1109
+ while (names.length > i2) if (hasOwn(O2, key = names[i2++])) {
1110
+ ~indexOf(result, key) || push(result, key);
1111
+ }
1112
+ return result;
1113
+ };
1114
+ return objectKeysInternal;
1115
+ }
1116
+ var enumBugKeys;
1117
+ var hasRequiredEnumBugKeys;
1118
+ function requireEnumBugKeys() {
1119
+ if (hasRequiredEnumBugKeys) return enumBugKeys;
1120
+ hasRequiredEnumBugKeys = 1;
1121
+ enumBugKeys = [
1122
+ "constructor",
1123
+ "hasOwnProperty",
1124
+ "isPrototypeOf",
1125
+ "propertyIsEnumerable",
1126
+ "toLocaleString",
1127
+ "toString",
1128
+ "valueOf"
1129
+ ];
1130
+ return enumBugKeys;
1131
+ }
1132
+ var hasRequiredObjectGetOwnPropertyNames;
1133
+ function requireObjectGetOwnPropertyNames() {
1134
+ if (hasRequiredObjectGetOwnPropertyNames) return objectGetOwnPropertyNames;
1135
+ hasRequiredObjectGetOwnPropertyNames = 1;
1136
+ var internalObjectKeys = requireObjectKeysInternal();
1137
+ var enumBugKeys2 = requireEnumBugKeys();
1138
+ var hiddenKeys2 = enumBugKeys2.concat("length", "prototype");
1139
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O2) {
1140
+ return internalObjectKeys(O2, hiddenKeys2);
1141
+ };
1142
+ return objectGetOwnPropertyNames;
1143
+ }
709
1144
  var objectGetOwnPropertySymbols = {};
710
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
711
- var getBuiltIn$1 = getBuiltIn$3;
712
- var uncurryThis$5 = functionUncurryThis;
713
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
714
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
715
- var anObject$3 = anObject$5;
716
- var concat = uncurryThis$5([].concat);
717
- var ownKeys$1 = getBuiltIn$1("Reflect", "ownKeys") || function ownKeys2(it2) {
718
- var keys2 = getOwnPropertyNamesModule.f(anObject$3(it2));
719
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
720
- return getOwnPropertySymbols ? concat(keys2, getOwnPropertySymbols(it2)) : keys2;
721
- };
722
- var hasOwn = hasOwnProperty_1;
723
- var ownKeys = ownKeys$1;
724
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
725
- var definePropertyModule$1 = objectDefineProperty;
726
- var copyConstructorProperties$1 = function(target, source, exceptions) {
727
- var keys2 = ownKeys(source);
728
- var defineProperty2 = definePropertyModule$1.f;
729
- var getOwnPropertyDescriptor2 = getOwnPropertyDescriptorModule.f;
730
- for (var i2 = 0; i2 < keys2.length; i2++) {
731
- var key = keys2[i2];
732
- if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
733
- defineProperty2(target, key, getOwnPropertyDescriptor2(source, key));
1145
+ var hasRequiredObjectGetOwnPropertySymbols;
1146
+ function requireObjectGetOwnPropertySymbols() {
1147
+ if (hasRequiredObjectGetOwnPropertySymbols) return objectGetOwnPropertySymbols;
1148
+ hasRequiredObjectGetOwnPropertySymbols = 1;
1149
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1150
+ return objectGetOwnPropertySymbols;
1151
+ }
1152
+ var ownKeys;
1153
+ var hasRequiredOwnKeys;
1154
+ function requireOwnKeys() {
1155
+ if (hasRequiredOwnKeys) return ownKeys;
1156
+ hasRequiredOwnKeys = 1;
1157
+ var getBuiltIn2 = requireGetBuiltIn();
1158
+ var uncurryThis = requireFunctionUncurryThis();
1159
+ var getOwnPropertyNamesModule = requireObjectGetOwnPropertyNames();
1160
+ var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
1161
+ var anObject2 = requireAnObject();
1162
+ var concat = uncurryThis([].concat);
1163
+ ownKeys = getBuiltIn2("Reflect", "ownKeys") || function ownKeys2(it2) {
1164
+ var keys = getOwnPropertyNamesModule.f(anObject2(it2));
1165
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1166
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it2)) : keys;
1167
+ };
1168
+ return ownKeys;
1169
+ }
1170
+ var copyConstructorProperties;
1171
+ var hasRequiredCopyConstructorProperties;
1172
+ function requireCopyConstructorProperties() {
1173
+ if (hasRequiredCopyConstructorProperties) return copyConstructorProperties;
1174
+ hasRequiredCopyConstructorProperties = 1;
1175
+ var hasOwn = requireHasOwnProperty();
1176
+ var ownKeys2 = requireOwnKeys();
1177
+ var getOwnPropertyDescriptorModule = requireObjectGetOwnPropertyDescriptor();
1178
+ var definePropertyModule = requireObjectDefineProperty();
1179
+ copyConstructorProperties = function(target, source, exceptions) {
1180
+ var keys = ownKeys2(source);
1181
+ var defineProperty = definePropertyModule.f;
1182
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1183
+ for (var i2 = 0; i2 < keys.length; i2++) {
1184
+ var key = keys[i2];
1185
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1186
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1187
+ }
734
1188
  }
735
- }
736
- };
737
- var fails$2 = fails$a;
738
- var isCallable$1 = isCallable$b;
739
- var replacement = /#|\.prototype\./;
740
- var isForced$1 = function(feature, detection) {
741
- var value = data[normalize(feature)];
742
- return value === POLYFILL ? true : value === NATIVE ? false : isCallable$1(detection) ? fails$2(detection) : !!detection;
743
- };
744
- var normalize = isForced$1.normalize = function(string) {
745
- return String(string).replace(replacement, ".").toLowerCase();
746
- };
747
- var data = isForced$1.data = {};
748
- var NATIVE = isForced$1.NATIVE = "N";
749
- var POLYFILL = isForced$1.POLYFILL = "P";
750
- var isForced_1 = isForced$1;
751
- var globalThis$1 = globalThis_1;
752
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
753
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
754
- var defineBuiltIn = defineBuiltIn$1;
755
- var defineGlobalProperty = defineGlobalProperty$3;
756
- var copyConstructorProperties = copyConstructorProperties$1;
757
- var isForced = isForced_1;
758
- var _export = function(options, source) {
759
- var TARGET = options.target;
760
- var GLOBAL = options.global;
761
- var STATIC = options.stat;
762
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
763
- if (GLOBAL) {
764
- target = globalThis$1;
765
- } else if (STATIC) {
766
- target = globalThis$1[TARGET] || defineGlobalProperty(TARGET, {});
767
- } else {
768
- target = globalThis$1[TARGET] && globalThis$1[TARGET].prototype;
769
- }
770
- if (target) for (key in source) {
771
- sourceProperty = source[key];
772
- if (options.dontCallGetSet) {
773
- descriptor = getOwnPropertyDescriptor(target, key);
774
- targetProperty = descriptor && descriptor.value;
775
- } else targetProperty = target[key];
776
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
777
- if (!FORCED && targetProperty !== void 0) {
778
- if (typeof sourceProperty == typeof targetProperty) continue;
779
- copyConstructorProperties(sourceProperty, targetProperty);
1189
+ };
1190
+ return copyConstructorProperties;
1191
+ }
1192
+ var isForced_1;
1193
+ var hasRequiredIsForced;
1194
+ function requireIsForced() {
1195
+ if (hasRequiredIsForced) return isForced_1;
1196
+ hasRequiredIsForced = 1;
1197
+ var fails2 = requireFails();
1198
+ var isCallable2 = requireIsCallable();
1199
+ var replacement = /#|\.prototype\./;
1200
+ var isForced = function(feature, detection) {
1201
+ var value = data[normalize(feature)];
1202
+ return value === POLYFILL ? true : value === NATIVE ? false : isCallable2(detection) ? fails2(detection) : !!detection;
1203
+ };
1204
+ var normalize = isForced.normalize = function(string) {
1205
+ return String(string).replace(replacement, ".").toLowerCase();
1206
+ };
1207
+ var data = isForced.data = {};
1208
+ var NATIVE = isForced.NATIVE = "N";
1209
+ var POLYFILL = isForced.POLYFILL = "P";
1210
+ isForced_1 = isForced;
1211
+ return isForced_1;
1212
+ }
1213
+ var _export;
1214
+ var hasRequired_export;
1215
+ function require_export() {
1216
+ if (hasRequired_export) return _export;
1217
+ hasRequired_export = 1;
1218
+ var globalThis2 = requireGlobalThis();
1219
+ var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
1220
+ var createNonEnumerableProperty2 = requireCreateNonEnumerableProperty();
1221
+ var defineBuiltIn2 = requireDefineBuiltIn();
1222
+ var defineGlobalProperty2 = requireDefineGlobalProperty();
1223
+ var copyConstructorProperties2 = requireCopyConstructorProperties();
1224
+ var isForced = requireIsForced();
1225
+ _export = function(options, source) {
1226
+ var TARGET = options.target;
1227
+ var GLOBAL = options.global;
1228
+ var STATIC = options.stat;
1229
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1230
+ if (GLOBAL) {
1231
+ target = globalThis2;
1232
+ } else if (STATIC) {
1233
+ target = globalThis2[TARGET] || defineGlobalProperty2(TARGET, {});
1234
+ } else {
1235
+ target = globalThis2[TARGET] && globalThis2[TARGET].prototype;
1236
+ }
1237
+ if (target) for (key in source) {
1238
+ sourceProperty = source[key];
1239
+ if (options.dontCallGetSet) {
1240
+ descriptor = getOwnPropertyDescriptor(target, key);
1241
+ targetProperty = descriptor && descriptor.value;
1242
+ } else targetProperty = target[key];
1243
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
1244
+ if (!FORCED && targetProperty !== void 0) {
1245
+ if (typeof sourceProperty == typeof targetProperty) continue;
1246
+ copyConstructorProperties2(sourceProperty, targetProperty);
1247
+ }
1248
+ if (options.sham || targetProperty && targetProperty.sham) {
1249
+ createNonEnumerableProperty2(sourceProperty, "sham", true);
1250
+ }
1251
+ defineBuiltIn2(target, key, sourceProperty, options);
780
1252
  }
781
- if (options.sham || targetProperty && targetProperty.sham) {
782
- createNonEnumerableProperty(sourceProperty, "sham", true);
1253
+ };
1254
+ return _export;
1255
+ }
1256
+ var functionUncurryThisClause;
1257
+ var hasRequiredFunctionUncurryThisClause;
1258
+ function requireFunctionUncurryThisClause() {
1259
+ if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause;
1260
+ hasRequiredFunctionUncurryThisClause = 1;
1261
+ var classofRaw2 = requireClassofRaw();
1262
+ var uncurryThis = requireFunctionUncurryThis();
1263
+ functionUncurryThisClause = function(fn) {
1264
+ if (classofRaw2(fn) === "Function") return uncurryThis(fn);
1265
+ };
1266
+ return functionUncurryThisClause;
1267
+ }
1268
+ var functionBindContext;
1269
+ var hasRequiredFunctionBindContext;
1270
+ function requireFunctionBindContext() {
1271
+ if (hasRequiredFunctionBindContext) return functionBindContext;
1272
+ hasRequiredFunctionBindContext = 1;
1273
+ var uncurryThis = requireFunctionUncurryThisClause();
1274
+ var aCallable2 = requireACallable();
1275
+ var NATIVE_BIND = requireFunctionBindNative();
1276
+ var bind = uncurryThis(uncurryThis.bind);
1277
+ functionBindContext = function(fn, that) {
1278
+ aCallable2(fn);
1279
+ return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() {
1280
+ return fn.apply(that, arguments);
1281
+ };
1282
+ };
1283
+ return functionBindContext;
1284
+ }
1285
+ var iterators;
1286
+ var hasRequiredIterators;
1287
+ function requireIterators() {
1288
+ if (hasRequiredIterators) return iterators;
1289
+ hasRequiredIterators = 1;
1290
+ iterators = {};
1291
+ return iterators;
1292
+ }
1293
+ var isArrayIteratorMethod;
1294
+ var hasRequiredIsArrayIteratorMethod;
1295
+ function requireIsArrayIteratorMethod() {
1296
+ if (hasRequiredIsArrayIteratorMethod) return isArrayIteratorMethod;
1297
+ hasRequiredIsArrayIteratorMethod = 1;
1298
+ var wellKnownSymbol2 = requireWellKnownSymbol();
1299
+ var Iterators = requireIterators();
1300
+ var ITERATOR = wellKnownSymbol2("iterator");
1301
+ var ArrayPrototype = Array.prototype;
1302
+ isArrayIteratorMethod = function(it2) {
1303
+ return it2 !== void 0 && (Iterators.Array === it2 || ArrayPrototype[ITERATOR] === it2);
1304
+ };
1305
+ return isArrayIteratorMethod;
1306
+ }
1307
+ var toStringTagSupport;
1308
+ var hasRequiredToStringTagSupport;
1309
+ function requireToStringTagSupport() {
1310
+ if (hasRequiredToStringTagSupport) return toStringTagSupport;
1311
+ hasRequiredToStringTagSupport = 1;
1312
+ var wellKnownSymbol2 = requireWellKnownSymbol();
1313
+ var TO_STRING_TAG = wellKnownSymbol2("toStringTag");
1314
+ var test = {};
1315
+ test[TO_STRING_TAG] = "z";
1316
+ toStringTagSupport = String(test) === "[object z]";
1317
+ return toStringTagSupport;
1318
+ }
1319
+ var classof;
1320
+ var hasRequiredClassof;
1321
+ function requireClassof() {
1322
+ if (hasRequiredClassof) return classof;
1323
+ hasRequiredClassof = 1;
1324
+ var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
1325
+ var isCallable2 = requireIsCallable();
1326
+ var classofRaw2 = requireClassofRaw();
1327
+ var wellKnownSymbol2 = requireWellKnownSymbol();
1328
+ var TO_STRING_TAG = wellKnownSymbol2("toStringTag");
1329
+ var $Object = Object;
1330
+ var CORRECT_ARGUMENTS = classofRaw2(/* @__PURE__ */ (function() {
1331
+ return arguments;
1332
+ })()) === "Arguments";
1333
+ var tryGet = function(it2, key) {
1334
+ try {
1335
+ return it2[key];
1336
+ } catch (error) {
783
1337
  }
784
- defineBuiltIn(target, key, sourceProperty, options);
785
- }
786
- };
787
- var classofRaw$1 = classofRaw$2;
788
- var uncurryThis$4 = functionUncurryThis;
789
- var functionUncurryThisClause = function(fn) {
790
- if (classofRaw$1(fn) === "Function") return uncurryThis$4(fn);
791
- };
792
- var uncurryThis$3 = functionUncurryThisClause;
793
- var aCallable$3 = aCallable$5;
794
- var NATIVE_BIND = functionBindNative;
795
- var bind$1 = uncurryThis$3(uncurryThis$3.bind);
796
- var functionBindContext = function(fn, that) {
797
- aCallable$3(fn);
798
- return that === void 0 ? fn : NATIVE_BIND ? bind$1(fn, that) : function() {
799
- return fn.apply(that, arguments);
800
1338
  };
801
- };
802
- var iterators = {};
803
- var wellKnownSymbol$3 = wellKnownSymbol$5;
804
- var Iterators$1 = iterators;
805
- var ITERATOR$1 = wellKnownSymbol$3("iterator");
806
- var ArrayPrototype = Array.prototype;
807
- var isArrayIteratorMethod$1 = function(it2) {
808
- return it2 !== void 0 && (Iterators$1.Array === it2 || ArrayPrototype[ITERATOR$1] === it2);
809
- };
810
- var wellKnownSymbol$2 = wellKnownSymbol$5;
811
- var TO_STRING_TAG$1 = wellKnownSymbol$2("toStringTag");
812
- var test = {};
813
- test[TO_STRING_TAG$1] = "z";
814
- var toStringTagSupport = String(test) === "[object z]";
815
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
816
- var isCallable = isCallable$b;
817
- var classofRaw = classofRaw$2;
818
- var wellKnownSymbol$1 = wellKnownSymbol$5;
819
- var TO_STRING_TAG = wellKnownSymbol$1("toStringTag");
820
- var $Object = Object;
821
- var CORRECT_ARGUMENTS = classofRaw(/* @__PURE__ */ function() {
822
- return arguments;
823
- }()) === "Arguments";
824
- var tryGet = function(it2, key) {
825
- try {
826
- return it2[key];
827
- } catch (error) {
828
- }
829
- };
830
- var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function(it2) {
831
- var O2, tag, result;
832
- return it2 === void 0 ? "Undefined" : it2 === null ? "Null" : typeof (tag = tryGet(O2 = $Object(it2), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O2) : (result = classofRaw(O2)) === "Object" && isCallable(O2.callee) ? "Arguments" : result;
833
- };
834
- var classof = classof$1;
835
- var getMethod$1 = getMethod$3;
836
- var isNullOrUndefined = isNullOrUndefined$3;
837
- var Iterators = iterators;
838
- var wellKnownSymbol = wellKnownSymbol$5;
839
- var ITERATOR = wellKnownSymbol("iterator");
840
- var getIteratorMethod$2 = function(it2) {
841
- if (!isNullOrUndefined(it2)) return getMethod$1(it2, ITERATOR) || getMethod$1(it2, "@@iterator") || Iterators[classof(it2)];
842
- };
843
- var call$2 = functionCall;
844
- var aCallable$2 = aCallable$5;
845
- var anObject$2 = anObject$5;
846
- var tryToString$1 = tryToString$3;
847
- var getIteratorMethod$1 = getIteratorMethod$2;
848
- var $TypeError$1 = TypeError;
849
- var getIterator$1 = function(argument, usingIterator) {
850
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
851
- if (aCallable$2(iteratorMethod)) return anObject$2(call$2(iteratorMethod, argument));
852
- throw new $TypeError$1(tryToString$1(argument) + " is not iterable");
853
- };
854
- var call$1 = functionCall;
855
- var anObject$1 = anObject$5;
856
- var getMethod = getMethod$3;
857
- var iteratorClose$1 = function(iterator, kind, value) {
858
- var innerResult, innerError;
859
- anObject$1(iterator);
860
- try {
861
- innerResult = getMethod(iterator, "return");
862
- if (!innerResult) {
863
- if (kind === "throw") throw value;
864
- return value;
865
- }
866
- innerResult = call$1(innerResult, iterator);
867
- } catch (error) {
868
- innerError = true;
869
- innerResult = error;
870
- }
871
- if (kind === "throw") throw value;
872
- if (innerError) throw innerResult;
873
- anObject$1(innerResult);
874
- return value;
875
- };
876
- var bind = functionBindContext;
877
- var call = functionCall;
878
- var anObject = anObject$5;
879
- var tryToString = tryToString$3;
880
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
881
- var lengthOfArrayLike = lengthOfArrayLike$2;
882
- var isPrototypeOf = objectIsPrototypeOf;
883
- var getIterator = getIterator$1;
884
- var getIteratorMethod = getIteratorMethod$2;
885
- var iteratorClose = iteratorClose$1;
886
- var $TypeError = TypeError;
887
- var Result = function(stopped, result) {
888
- this.stopped = stopped;
889
- this.result = result;
890
- };
891
- var ResultPrototype = Result.prototype;
892
- var iterate$2 = function(iterable, unboundFunction, options) {
893
- var that = options && options.that;
894
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
895
- var IS_RECORD = !!(options && options.IS_RECORD);
896
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
897
- var INTERRUPTED = !!(options && options.INTERRUPTED);
898
- var fn = bind(unboundFunction, that);
899
- var iterator, iterFn, index, length, result, next, step;
900
- var stop = function(condition) {
901
- if (iterator) iteratorClose(iterator, "normal");
902
- return new Result(true, condition);
1339
+ classof = TO_STRING_TAG_SUPPORT ? classofRaw2 : function(it2) {
1340
+ var O2, tag, result;
1341
+ return it2 === void 0 ? "Undefined" : it2 === null ? "Null" : typeof (tag = tryGet(O2 = $Object(it2), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw2(O2) : (result = classofRaw2(O2)) === "Object" && isCallable2(O2.callee) ? "Arguments" : result;
1342
+ };
1343
+ return classof;
1344
+ }
1345
+ var getIteratorMethod;
1346
+ var hasRequiredGetIteratorMethod;
1347
+ function requireGetIteratorMethod() {
1348
+ if (hasRequiredGetIteratorMethod) return getIteratorMethod;
1349
+ hasRequiredGetIteratorMethod = 1;
1350
+ var classof2 = requireClassof();
1351
+ var getMethod2 = requireGetMethod();
1352
+ var isNullOrUndefined2 = requireIsNullOrUndefined();
1353
+ var Iterators = requireIterators();
1354
+ var wellKnownSymbol2 = requireWellKnownSymbol();
1355
+ var ITERATOR = wellKnownSymbol2("iterator");
1356
+ getIteratorMethod = function(it2) {
1357
+ if (!isNullOrUndefined2(it2)) return getMethod2(it2, ITERATOR) || getMethod2(it2, "@@iterator") || Iterators[classof2(it2)];
903
1358
  };
904
- var callFn = function(value) {
905
- if (AS_ENTRIES) {
906
- anObject(value);
907
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1359
+ return getIteratorMethod;
1360
+ }
1361
+ var getIterator;
1362
+ var hasRequiredGetIterator;
1363
+ function requireGetIterator() {
1364
+ if (hasRequiredGetIterator) return getIterator;
1365
+ hasRequiredGetIterator = 1;
1366
+ var call = requireFunctionCall();
1367
+ var aCallable2 = requireACallable();
1368
+ var anObject2 = requireAnObject();
1369
+ var tryToString2 = requireTryToString();
1370
+ var getIteratorMethod2 = requireGetIteratorMethod();
1371
+ var $TypeError = TypeError;
1372
+ getIterator = function(argument, usingIterator) {
1373
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod2(argument) : usingIterator;
1374
+ if (aCallable2(iteratorMethod)) return anObject2(call(iteratorMethod, argument));
1375
+ throw new $TypeError(tryToString2(argument) + " is not iterable");
1376
+ };
1377
+ return getIterator;
1378
+ }
1379
+ var iteratorClose;
1380
+ var hasRequiredIteratorClose;
1381
+ function requireIteratorClose() {
1382
+ if (hasRequiredIteratorClose) return iteratorClose;
1383
+ hasRequiredIteratorClose = 1;
1384
+ var call = requireFunctionCall();
1385
+ var anObject2 = requireAnObject();
1386
+ var getMethod2 = requireGetMethod();
1387
+ iteratorClose = function(iterator, kind, value) {
1388
+ var innerResult, innerError;
1389
+ anObject2(iterator);
1390
+ try {
1391
+ innerResult = getMethod2(iterator, "return");
1392
+ if (!innerResult) {
1393
+ if (kind === "throw") throw value;
1394
+ return value;
1395
+ }
1396
+ innerResult = call(innerResult, iterator);
1397
+ } catch (error) {
1398
+ innerError = true;
1399
+ innerResult = error;
908
1400
  }
909
- return INTERRUPTED ? fn(value, stop) : fn(value);
1401
+ if (kind === "throw") throw value;
1402
+ if (innerError) throw innerResult;
1403
+ anObject2(innerResult);
1404
+ return value;
910
1405
  };
911
- if (IS_RECORD) {
912
- iterator = iterable.iterator;
913
- } else if (IS_ITERATOR) {
914
- iterator = iterable;
915
- } else {
916
- iterFn = getIteratorMethod(iterable);
917
- if (!iterFn) throw new $TypeError(tryToString(iterable) + " is not iterable");
918
- if (isArrayIteratorMethod(iterFn)) {
919
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
920
- result = callFn(iterable[index]);
921
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
1406
+ return iteratorClose;
1407
+ }
1408
+ var iterate;
1409
+ var hasRequiredIterate;
1410
+ function requireIterate() {
1411
+ if (hasRequiredIterate) return iterate;
1412
+ hasRequiredIterate = 1;
1413
+ var bind = requireFunctionBindContext();
1414
+ var call = requireFunctionCall();
1415
+ var anObject2 = requireAnObject();
1416
+ var tryToString2 = requireTryToString();
1417
+ var isArrayIteratorMethod2 = requireIsArrayIteratorMethod();
1418
+ var lengthOfArrayLike2 = requireLengthOfArrayLike();
1419
+ var isPrototypeOf = requireObjectIsPrototypeOf();
1420
+ var getIterator2 = requireGetIterator();
1421
+ var getIteratorMethod2 = requireGetIteratorMethod();
1422
+ var iteratorClose2 = requireIteratorClose();
1423
+ var $TypeError = TypeError;
1424
+ var Result = function(stopped, result) {
1425
+ this.stopped = stopped;
1426
+ this.result = result;
1427
+ };
1428
+ var ResultPrototype = Result.prototype;
1429
+ iterate = function(iterable, unboundFunction, options) {
1430
+ var that = options && options.that;
1431
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1432
+ var IS_RECORD = !!(options && options.IS_RECORD);
1433
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1434
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1435
+ var fn = bind(unboundFunction, that);
1436
+ var iterator, iterFn, index, length, result, next, step;
1437
+ var stop = function(condition) {
1438
+ if (iterator) iteratorClose2(iterator, "normal");
1439
+ return new Result(true, condition);
1440
+ };
1441
+ var callFn = function(value) {
1442
+ if (AS_ENTRIES) {
1443
+ anObject2(value);
1444
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
922
1445
  }
923
- return new Result(false);
1446
+ return INTERRUPTED ? fn(value, stop) : fn(value);
1447
+ };
1448
+ if (IS_RECORD) {
1449
+ iterator = iterable.iterator;
1450
+ } else if (IS_ITERATOR) {
1451
+ iterator = iterable;
1452
+ } else {
1453
+ iterFn = getIteratorMethod2(iterable);
1454
+ if (!iterFn) throw new $TypeError(tryToString2(iterable) + " is not iterable");
1455
+ if (isArrayIteratorMethod2(iterFn)) {
1456
+ for (index = 0, length = lengthOfArrayLike2(iterable); length > index; index++) {
1457
+ result = callFn(iterable[index]);
1458
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
1459
+ }
1460
+ return new Result(false);
1461
+ }
1462
+ iterator = getIterator2(iterable, iterFn);
924
1463
  }
925
- iterator = getIterator(iterable, iterFn);
926
- }
927
- next = IS_RECORD ? iterable.next : iterator.next;
928
- while (!(step = call(next, iterator)).done) {
929
- try {
930
- result = callFn(step.value);
931
- } catch (error) {
932
- iteratorClose(iterator, "throw", error);
1464
+ next = IS_RECORD ? iterable.next : iterator.next;
1465
+ while (!(step = call(next, iterator)).done) {
1466
+ try {
1467
+ result = callFn(step.value);
1468
+ } catch (error) {
1469
+ iteratorClose2(iterator, "throw", error);
1470
+ }
1471
+ if (typeof result == "object" && result && isPrototypeOf(ResultPrototype, result)) return result;
933
1472
  }
934
- if (typeof result == "object" && result && isPrototypeOf(ResultPrototype, result)) return result;
935
- }
936
- return new Result(false);
937
- };
938
- var uncurryThis$2 = functionUncurryThis;
939
- var MapPrototype = Map.prototype;
940
- var mapHelpers = {
941
- // eslint-disable-next-line es/no-map -- safe
942
- Map,
943
- set: uncurryThis$2(MapPrototype.set),
944
- get: uncurryThis$2(MapPrototype.get),
945
- has: uncurryThis$2(MapPrototype.has),
946
- remove: uncurryThis$2(MapPrototype["delete"])
947
- };
948
- var $$2 = _export;
949
- var uncurryThis$1 = functionUncurryThis;
950
- var aCallable$1 = aCallable$5;
951
- var requireObjectCoercible$1 = requireObjectCoercible$4;
952
- var iterate$1 = iterate$2;
953
- var MapHelpers = mapHelpers;
954
- var fails$1 = fails$a;
955
- var Map$1 = MapHelpers.Map;
956
- var has = MapHelpers.has;
957
- var get = MapHelpers.get;
958
- var set = MapHelpers.set;
959
- var push$1 = uncurryThis$1([].push);
960
- var DOES_NOT_WORK_WITH_PRIMITIVES$1 = fails$1(function() {
961
- return Map$1.groupBy("ab", function(it2) {
962
- return it2;
963
- }).get("a").length !== 1;
964
- });
965
- $$2({ target: "Map", stat: true, forced: DOES_NOT_WORK_WITH_PRIMITIVES$1 }, {
966
- groupBy: function groupBy(items, callbackfn) {
967
- requireObjectCoercible$1(items);
968
- aCallable$1(callbackfn);
969
- var map = new Map$1();
970
- var k2 = 0;
971
- iterate$1(items, function(value) {
972
- var key = callbackfn(value, k2++);
973
- if (!has(map, key)) set(map, key, [value]);
974
- else push$1(get(map, key), value);
975
- });
976
- return map;
977
- }
978
- });
979
- var DESCRIPTORS = descriptors;
980
- var definePropertyModule = objectDefineProperty;
981
- var createPropertyDescriptor = createPropertyDescriptor$3;
982
- var createProperty$1 = function(object, key, value) {
983
- if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
984
- else object[key] = value;
985
- };
986
- var $$1 = _export;
987
- var createProperty = createProperty$1;
988
- var getBuiltIn = getBuiltIn$3;
989
- var uncurryThis = functionUncurryThis;
990
- var aCallable = aCallable$5;
991
- var requireObjectCoercible = requireObjectCoercible$4;
992
- var toPropertyKey = toPropertyKey$3;
993
- var iterate = iterate$2;
994
- var fails = fails$a;
995
- var nativeGroupBy = Object.groupBy;
996
- var create = getBuiltIn("Object", "create");
997
- var push = uncurryThis([].push);
998
- var DOES_NOT_WORK_WITH_PRIMITIVES = !nativeGroupBy || fails(function() {
999
- return nativeGroupBy("ab", function(it2) {
1000
- return it2;
1001
- }).a.length !== 1;
1002
- });
1003
- $$1({ target: "Object", stat: true, forced: DOES_NOT_WORK_WITH_PRIMITIVES }, {
1004
- groupBy: function groupBy(items, callbackfn) {
1005
- requireObjectCoercible(items);
1006
- aCallable(callbackfn);
1007
- var obj = create(null);
1008
- var k2 = 0;
1009
- iterate(items, function(value) {
1010
- var key = toPropertyKey(callbackfn(value, k2++));
1011
- if (key in obj) push(obj[key], value);
1012
- else createProperty(obj, key, [value]);
1013
- });
1014
- return obj;
1015
- }
1016
- });
1017
- const _export_sfc = (sfc, props) => {
1018
- const target = sfc.__vccOpts || sfc;
1019
- for (const [key, val] of props) {
1020
- target[key] = val;
1021
- }
1022
- return target;
1023
- };
1473
+ return new Result(false);
1474
+ };
1475
+ return iterate;
1476
+ }
1477
+ var mapHelpers;
1478
+ var hasRequiredMapHelpers;
1479
+ function requireMapHelpers() {
1480
+ if (hasRequiredMapHelpers) return mapHelpers;
1481
+ hasRequiredMapHelpers = 1;
1482
+ var uncurryThis = requireFunctionUncurryThis();
1483
+ var MapPrototype = Map.prototype;
1484
+ mapHelpers = {
1485
+ // eslint-disable-next-line es/no-map -- safe
1486
+ Map,
1487
+ set: uncurryThis(MapPrototype.set),
1488
+ get: uncurryThis(MapPrototype.get),
1489
+ has: uncurryThis(MapPrototype.has),
1490
+ remove: uncurryThis(MapPrototype["delete"]),
1491
+ proto: MapPrototype
1492
+ };
1493
+ return mapHelpers;
1494
+ }
1495
+ var hasRequiredEs_map_groupBy;
1496
+ function requireEs_map_groupBy() {
1497
+ if (hasRequiredEs_map_groupBy) return es_map_groupBy;
1498
+ hasRequiredEs_map_groupBy = 1;
1499
+ var $2 = require_export();
1500
+ var uncurryThis = requireFunctionUncurryThis();
1501
+ var aCallable2 = requireACallable();
1502
+ var requireObjectCoercible2 = requireRequireObjectCoercible();
1503
+ var iterate2 = requireIterate();
1504
+ var MapHelpers = requireMapHelpers();
1505
+ var IS_PURE = requireIsPure();
1506
+ var fails2 = requireFails();
1507
+ var Map2 = MapHelpers.Map;
1508
+ var has = MapHelpers.has;
1509
+ var get = MapHelpers.get;
1510
+ var set = MapHelpers.set;
1511
+ var push = uncurryThis([].push);
1512
+ var DOES_NOT_WORK_WITH_PRIMITIVES = IS_PURE || fails2(function() {
1513
+ return Map2.groupBy("ab", function(it2) {
1514
+ return it2;
1515
+ }).get("a").length !== 1;
1516
+ });
1517
+ $2({ target: "Map", stat: true, forced: IS_PURE || DOES_NOT_WORK_WITH_PRIMITIVES }, {
1518
+ groupBy: function groupBy(items, callbackfn) {
1519
+ requireObjectCoercible2(items);
1520
+ aCallable2(callbackfn);
1521
+ var map = new Map2();
1522
+ var k2 = 0;
1523
+ iterate2(items, function(value) {
1524
+ var key = callbackfn(value, k2++);
1525
+ if (!has(map, key)) set(map, key, [value]);
1526
+ else push(get(map, key), value);
1527
+ });
1528
+ return map;
1529
+ }
1530
+ });
1531
+ return es_map_groupBy;
1532
+ }
1533
+ var hasRequiredEsnext_map_groupBy;
1534
+ function requireEsnext_map_groupBy() {
1535
+ if (hasRequiredEsnext_map_groupBy) return esnext_map_groupBy;
1536
+ hasRequiredEsnext_map_groupBy = 1;
1537
+ requireEs_map_groupBy();
1538
+ return esnext_map_groupBy;
1539
+ }
1540
+ var esnext_object_groupBy = {};
1541
+ var es_object_groupBy = {};
1542
+ var createProperty;
1543
+ var hasRequiredCreateProperty;
1544
+ function requireCreateProperty() {
1545
+ if (hasRequiredCreateProperty) return createProperty;
1546
+ hasRequiredCreateProperty = 1;
1547
+ var DESCRIPTORS = requireDescriptors();
1548
+ var definePropertyModule = requireObjectDefineProperty();
1549
+ var createPropertyDescriptor2 = requireCreatePropertyDescriptor();
1550
+ createProperty = function(object, key, value) {
1551
+ if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor2(0, value));
1552
+ else object[key] = value;
1553
+ };
1554
+ return createProperty;
1555
+ }
1556
+ var hasRequiredEs_object_groupBy;
1557
+ function requireEs_object_groupBy() {
1558
+ if (hasRequiredEs_object_groupBy) return es_object_groupBy;
1559
+ hasRequiredEs_object_groupBy = 1;
1560
+ var $2 = require_export();
1561
+ var createProperty2 = requireCreateProperty();
1562
+ var getBuiltIn2 = requireGetBuiltIn();
1563
+ var uncurryThis = requireFunctionUncurryThis();
1564
+ var aCallable2 = requireACallable();
1565
+ var requireObjectCoercible2 = requireRequireObjectCoercible();
1566
+ var toPropertyKey2 = requireToPropertyKey();
1567
+ var iterate2 = requireIterate();
1568
+ var fails2 = requireFails();
1569
+ var nativeGroupBy = Object.groupBy;
1570
+ var create = getBuiltIn2("Object", "create");
1571
+ var push = uncurryThis([].push);
1572
+ var DOES_NOT_WORK_WITH_PRIMITIVES = !nativeGroupBy || fails2(function() {
1573
+ return nativeGroupBy("ab", function(it2) {
1574
+ return it2;
1575
+ }).a.length !== 1;
1576
+ });
1577
+ $2({ target: "Object", stat: true, forced: DOES_NOT_WORK_WITH_PRIMITIVES }, {
1578
+ groupBy: function groupBy(items, callbackfn) {
1579
+ requireObjectCoercible2(items);
1580
+ aCallable2(callbackfn);
1581
+ var obj = create(null);
1582
+ var k2 = 0;
1583
+ iterate2(items, function(value) {
1584
+ var key = toPropertyKey2(callbackfn(value, k2++));
1585
+ if (key in obj) push(obj[key], value);
1586
+ else createProperty2(obj, key, [value]);
1587
+ });
1588
+ return obj;
1589
+ }
1590
+ });
1591
+ return es_object_groupBy;
1592
+ }
1593
+ var hasRequiredEsnext_object_groupBy;
1594
+ function requireEsnext_object_groupBy() {
1595
+ if (hasRequiredEsnext_object_groupBy) return esnext_object_groupBy;
1596
+ hasRequiredEsnext_object_groupBy = 1;
1597
+ requireEs_object_groupBy();
1598
+ return esnext_object_groupBy;
1599
+ }
1600
+ var hasRequiredArrayGroupingV2;
1601
+ function requireArrayGroupingV2() {
1602
+ if (hasRequiredArrayGroupingV2) return arrayGroupingV2;
1603
+ hasRequiredArrayGroupingV2 = 1;
1604
+ requireEsnext_map_groupBy();
1605
+ requireEsnext_object_groupBy();
1606
+ return arrayGroupingV2;
1607
+ }
1608
+ requireArrayGroupingV2();
1024
1609
  const _hoisted_1$2 = { class: "reader" };
1025
1610
  const _hoisted_2$2 = { class: "viewHolder" };
1026
1611
  const _hoisted_3$1 = { key: 0 };
1027
- const _sfc_main$2 = {
1612
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1028
1613
  __name: "BookView",
1029
1614
  props: {
1030
1615
  url: {
1031
- type: [String, File]
1616
+ type: [String, File],
1617
+ required: true
1032
1618
  },
1033
1619
  location: {
1034
1620
  type: [String, Number]
@@ -1059,7 +1645,7 @@
1059
1645
  const isError = vue.ref(false);
1060
1646
  const initBook = async () => {
1061
1647
  try {
1062
- if (url.value) {
1648
+ if (url == null ? void 0 : url.value) {
1063
1649
  if (view$1) {
1064
1650
  view$1.close();
1065
1651
  } else {
@@ -1067,7 +1653,7 @@
1067
1653
  viewer.value.append(view$1);
1068
1654
  }
1069
1655
  await view$1.open(url.value);
1070
- getRendition(view$1);
1656
+ getRendition && getRendition(view$1);
1071
1657
  initReader();
1072
1658
  }
1073
1659
  } catch (error) {
@@ -1080,7 +1666,7 @@
1080
1666
  const { book } = view$1;
1081
1667
  registerEvents();
1082
1668
  tocChanged && tocChanged(book.toc);
1083
- if (location.value) {
1669
+ if (location && location.value) {
1084
1670
  view$1 == null ? void 0 : view$1.goTo(location.value);
1085
1671
  } else {
1086
1672
  view$1.renderer.next();
@@ -1134,14 +1720,21 @@
1134
1720
  [vue.vShow, isLoaded.value]
1135
1721
  ]),
1136
1722
  !isLoaded.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$1, [
1137
- !isError.value ? vue.renderSlot(_ctx.$slots, "loadingView", { key: 0 }, void 0, true) : vue.renderSlot(_ctx.$slots, "errorView", { key: 1 }, void 0, true)
1723
+ isError.value ? vue.renderSlot(_ctx.$slots, "errorView", { key: 0 }, void 0, true) : vue.renderSlot(_ctx.$slots, "loadingView", { key: 1 }, void 0, true)
1138
1724
  ])) : vue.createCommentVNode("", true)
1139
1725
  ])
1140
1726
  ]);
1141
1727
  };
1142
1728
  }
1729
+ });
1730
+ const _export_sfc = (sfc, props) => {
1731
+ const target = sfc.__vccOpts || sfc;
1732
+ for (const [key, val] of props) {
1733
+ target[key] = val;
1734
+ }
1735
+ return target;
1143
1736
  };
1144
- const BookView = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-1350176b"]]);
1737
+ const BookView = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-cbfdb46e"]]);
1145
1738
  const _hoisted_1$1 = ["onClick"];
1146
1739
  const _hoisted_2$1 = { key: 0 };
1147
1740
  const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
@@ -1202,32 +1795,14 @@
1202
1795
  };
1203
1796
  }
1204
1797
  });
1205
- const Toc = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-faba9f3e"]]);
1206
- const _withScopeId = (n2) => (vue.pushScopeId("data-v-e3dfdabb"), n2 = n2(), vue.popScopeId(), n2);
1798
+ const Toc = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-56e71b55"]]);
1207
1799
  const _hoisted_1 = { class: "container" };
1208
- const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", {
1209
- class: "tocButtonBar",
1210
- style: { "top": "35%" }
1211
- }, null, -1));
1212
- const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", {
1213
- class: "tocButtonBar",
1214
- style: { "top": "66%" }
1215
- }, null, -1));
1216
- const _hoisted_4 = [
1217
- _hoisted_2,
1218
- _hoisted_3
1219
- ];
1220
- const _hoisted_5 = ["title"];
1221
- const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "loadingView" }, "Loading…", -1));
1222
- const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "errorView" }, "Error loading book", -1));
1223
- const _hoisted_8 = { key: 0 };
1224
- const _hoisted_9 = { class: "tocArea" };
1225
- const _sfc_main = {
1800
+ const _hoisted_2 = ["title"];
1801
+ const _hoisted_3 = { key: 0 };
1802
+ const _hoisted_4 = { class: "tocArea" };
1803
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1226
1804
  __name: "VueReader",
1227
1805
  props: {
1228
- title: {
1229
- type: String
1230
- },
1231
1806
  showToc: {
1232
1807
  type: Boolean,
1233
1808
  default: true
@@ -1250,13 +1825,13 @@
1250
1825
  });
1251
1826
  const { getRendition } = props;
1252
1827
  const { toc, expandedToc } = vue.toRefs(book);
1253
- const bookRef = vue.ref(null);
1828
+ const bookRef = vue.useTemplateRef("bookRef");
1254
1829
  const currentHref = vue.ref(null);
1255
1830
  const bookName = vue.ref("");
1256
1831
  let rendition = null;
1257
1832
  const onRelocate = ({ detail }) => {
1258
1833
  var _a;
1259
- currentHref.value = (_a = detail.tocItem) == null ? void 0 : _a.href;
1834
+ currentHref.value = ((_a = detail.tocItem) == null ? void 0 : _a.href) || null;
1260
1835
  };
1261
1836
  const onGetRendition = (val) => {
1262
1837
  rendition = val;
@@ -1276,12 +1851,10 @@
1276
1851
  expandedToc.value = !expandedToc.value;
1277
1852
  };
1278
1853
  const next = () => {
1279
- var _a;
1280
- (_a = bookRef.value) == null ? void 0 : _a.nextPage();
1854
+ bookRef.value.nextPage();
1281
1855
  };
1282
1856
  const pre = () => {
1283
- var _a;
1284
- (_a = bookRef.value) == null ? void 0 : _a.prevPage();
1857
+ bookRef.value.prevPage();
1285
1858
  };
1286
1859
  const setLocation = (href, close = true) => {
1287
1860
  bookRef.value.setLocation(href);
@@ -1302,12 +1875,21 @@
1302
1875
  class: vue.normalizeClass(["tocButton", { tocButtonExpanded: vue.unref(expandedToc) }]),
1303
1876
  type: "button",
1304
1877
  onClick: toggleToc
1305
- }, _hoisted_4, 2)) : vue.createCommentVNode("", true),
1878
+ }, [..._cache[0] || (_cache[0] = [
1879
+ vue.createElementVNode("span", {
1880
+ class: "tocButtonBar",
1881
+ style: { "top": "35%" }
1882
+ }, null, -1),
1883
+ vue.createElementVNode("span", {
1884
+ class: "tocButtonBar",
1885
+ style: { "top": "66%" }
1886
+ }, null, -1)
1887
+ ])], 2)) : vue.createCommentVNode("", true),
1306
1888
  vue.renderSlot(_ctx.$slots, "title", {}, () => [
1307
1889
  vue.createElementVNode("div", {
1308
1890
  class: "titleArea",
1309
1891
  title: __props.title || bookName.value
1310
- }, vue.toDisplayString(__props.title || bookName.value), 9, _hoisted_5)
1892
+ }, vue.toDisplayString(__props.title || bookName.value), 9, _hoisted_2)
1311
1893
  ], true),
1312
1894
  vue.createVNode(BookView, vue.mergeProps({
1313
1895
  ref_key: "bookRef",
@@ -1318,12 +1900,12 @@
1318
1900
  }), {
1319
1901
  loadingView: vue.withCtx(() => [
1320
1902
  vue.renderSlot(_ctx.$slots, "loadingView", {}, () => [
1321
- _hoisted_6
1903
+ _cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "loadingView" }, "Loading…", -1))
1322
1904
  ], true)
1323
1905
  ]),
1324
1906
  errorView: vue.withCtx(() => [
1325
1907
  vue.renderSlot(_ctx.$slots, "errorView", {}, () => [
1326
- _hoisted_7
1908
+ _cache[2] || (_cache[2] = vue.createElementVNode("div", { class: "errorView" }, "Error loading book", -1))
1327
1909
  ], true)
1328
1910
  ]),
1329
1911
  _: 3
@@ -1337,8 +1919,8 @@
1337
1919
  onClick: next
1338
1920
  }, "›")
1339
1921
  ], 2),
1340
- __props.showToc ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
1341
- vue.createElementVNode("div", _hoisted_9, [
1922
+ __props.showToc ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
1923
+ vue.createElementVNode("div", _hoisted_4, [
1342
1924
  vue.createVNode(Toc, {
1343
1925
  toc: vue.unref(toc),
1344
1926
  current: currentHref.value,
@@ -1354,8 +1936,8 @@
1354
1936
  ]);
1355
1937
  };
1356
1938
  }
1357
- };
1358
- const VueReader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e3dfdabb"]]);
1939
+ });
1940
+ const VueReader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ce33d15c"]]);
1359
1941
  const findIndices = (arr, f2) => arr.map((x2, i2, a2) => f2(x2, i2, a2) ? i2 : null).filter((x2) => x2 != null);
1360
1942
  const splitAt = (arr, is) => [-1, ...is, arr.length].reduce(({ xs, a: a2 }, b2) => ({ xs: (xs == null ? void 0 : xs.concat([arr.slice(a2 + 1, b2)])) ?? [], a: b2 }), {}).xs;
1361
1943
  const concatArrays = (a2, b2) => a2.slice(0, -1).concat([a2[a2.length - 1].concat(b2[0])]).concat(b2.slice(1));
@@ -1375,43 +1957,43 @@
1375
1957
  const tokenizer = (str) => {
1376
1958
  const tokens = [];
1377
1959
  let state, escape, value = "";
1378
- const push2 = (x2) => (tokens.push(x2), state = null, value = "");
1960
+ const push = (x2) => (tokens.push(x2), state = null, value = "");
1379
1961
  const cat = (x2) => (value += x2, escape = false);
1380
1962
  for (const char of Array.from(str.trim()).concat("")) {
1381
1963
  if (char === "^" && !escape) {
1382
1964
  escape = true;
1383
1965
  continue;
1384
1966
  }
1385
- if (state === "!") push2(["!"]);
1386
- else if (state === ",") push2([","]);
1967
+ if (state === "!") push(["!"]);
1968
+ else if (state === ",") push([","]);
1387
1969
  else if (state === "/" || state === ":") {
1388
1970
  if (isNumber.test(char)) {
1389
1971
  cat(char);
1390
1972
  continue;
1391
- } else push2([state, parseInt(value)]);
1973
+ } else push([state, parseInt(value)]);
1392
1974
  } else if (state === "~") {
1393
1975
  if (isNumber.test(char) || char === ".") {
1394
1976
  cat(char);
1395
1977
  continue;
1396
- } else push2(["~", parseFloat(value)]);
1978
+ } else push(["~", parseFloat(value)]);
1397
1979
  } else if (state === "@") {
1398
1980
  if (char === ":") {
1399
- push2(["@", parseFloat(value)]);
1981
+ push(["@", parseFloat(value)]);
1400
1982
  state = "@";
1401
1983
  continue;
1402
1984
  }
1403
1985
  if (isNumber.test(char) || char === ".") {
1404
1986
  cat(char);
1405
1987
  continue;
1406
- } else push2(["@", parseFloat(value)]);
1988
+ } else push(["@", parseFloat(value)]);
1407
1989
  } else if (state === "[") {
1408
1990
  if (char === ";" && !escape) {
1409
- push2(["[", value]);
1991
+ push(["[", value]);
1410
1992
  state = ";";
1411
1993
  } else if (char === "," && !escape) {
1412
- push2(["[", value]);
1994
+ push(["[", value]);
1413
1995
  state = "[";
1414
- } else if (char === "]" && !escape) push2(["[", value]);
1996
+ } else if (char === "]" && !escape) push(["[", value]);
1415
1997
  else cat(char);
1416
1998
  continue;
1417
1999
  } else if (state == null ? void 0 : state.startsWith(";")) {
@@ -1419,9 +2001,9 @@
1419
2001
  state = `;${value}`;
1420
2002
  value = "";
1421
2003
  } else if (char === ";" && !escape) {
1422
- push2([state, value]);
2004
+ push([state, value]);
1423
2005
  state = ";";
1424
- } else if (char === "]" && !escape) push2([state, value]);
2006
+ } else if (char === "]" && !escape) push([state, value]);
1425
2007
  else cat(char);
1426
2008
  continue;
1427
2009
  }
@@ -1461,10 +2043,10 @@
1461
2043
  const [parent, start, end] = splitAt(tokens, commas).map(parserIndir);
1462
2044
  return { parent, start, end };
1463
2045
  };
1464
- const partToString = ({ index, id: id2, offset, temporal, spatial, text, side }) => {
2046
+ const partToString = ({ index, id, offset, temporal, spatial, text, side }) => {
1465
2047
  var _a;
1466
2048
  const param = side ? `;s=${side}` : "";
1467
- return `/${index}` + (id2 ? `[${escapeCFI(id2)}${param}]` : "") + (offset != null && index % 2 ? `:${offset}` : "") + (temporal ? `~${temporal}` : "") + (spatial ? `@${spatial.join(":")}` : "") + (text || !id2 && side ? "[" + (((_a = text == null ? void 0 : text.map(escapeCFI)) == null ? void 0 : _a.join(",")) ?? "") + param + "]" : "");
2049
+ return `/${index}` + (id ? `[${escapeCFI(id)}${param}]` : "") + (offset != null && index % 2 ? `:${offset}` : "") + (temporal ? `~${temporal}` : "") + (spatial ? `@${spatial.join(":")}` : "") + (text || !id && side ? "[" + (((_a = text == null ? void 0 : text.map(escapeCFI)) == null ? void 0 : _a.join(",")) ?? "") + param + "]" : "");
1468
2050
  };
1469
2051
  const toInnerString = (parsed) => parsed.parent ? [parsed.parent, parsed.start, parsed.end].map(toInnerString).join(",") : parsed.map((parts) => parts.map(partToString).join("")).join("!");
1470
2052
  const toString = (parsed) => wrap(toInnerString(parsed));
@@ -1522,9 +2104,9 @@
1522
2104
  return nodes;
1523
2105
  };
1524
2106
  const partsToNode = (node, parts, filter2) => {
1525
- const { id: id2 } = parts[parts.length - 1];
1526
- if (id2) {
1527
- const el = node.ownerDocument.getElementById(id2);
2107
+ const { id } = parts[parts.length - 1];
2108
+ if (id) {
2109
+ const el = node.ownerDocument.getElementById(id);
1528
2110
  if (el) return { node: el, offset: 0 };
1529
2111
  }
1530
2112
  for (const { index } of parts) {
@@ -1545,7 +2127,7 @@
1545
2127
  }
1546
2128
  };
1547
2129
  const nodeToParts = (node, offset, filter2) => {
1548
- const { parentNode, id: id2 } = node;
2130
+ const { parentNode, id } = node;
1549
2131
  const indexed = indexChildNodes(parentNode, filter2);
1550
2132
  const index = indexed.findIndex((x2) => Array.isArray(x2) ? x2.some((x3) => x3 === node) : x2 === node);
1551
2133
  const chunk = indexed[index];
@@ -1559,7 +2141,7 @@
1559
2141
  }
1560
2142
  offset = sum;
1561
2143
  }
1562
- const part = { id: id2, index, offset };
2144
+ const part = { id, index, offset };
1563
2145
  return (parentNode !== node.ownerDocument.documentElement ? nodeToParts(parentNode, null, filter2).concat(part) : [part]).filter((x2) => x2.index !== -1);
1564
2146
  };
1565
2147
  const fromRange = (range, filter2) => {
@@ -1601,9 +2183,9 @@
1601
2183
  toIndex: (parts) => (parts == null ? void 0 : parts.at(-1).index) / 2 - 1
1602
2184
  };
1603
2185
  const assignIDs = (toc) => {
1604
- let id2 = 0;
2186
+ let id = 0;
1605
2187
  const assignID = (item) => {
1606
- item.id = id2++;
2188
+ item.id = id++;
1607
2189
  if (item.subitems) for (const subitem of item.subitems) assignID(subitem);
1608
2190
  };
1609
2191
  for (const item of toc) assignID(item);
@@ -1619,15 +2201,15 @@
1619
2201
  const items = flatten(toc);
1620
2202
  const grouped = /* @__PURE__ */ new Map();
1621
2203
  for (const [i2, item] of items.entries()) {
1622
- const [id2, fragment] = await splitHref(item == null ? void 0 : item.href) ?? [];
2204
+ const [id, fragment] = await splitHref(item == null ? void 0 : item.href) ?? [];
1623
2205
  const value = { fragment, item };
1624
- if (grouped.has(id2)) grouped.get(id2).items.push(value);
1625
- else grouped.set(id2, { prev: items[i2 - 1], items: [value] });
2206
+ if (grouped.has(id)) grouped.get(id).items.push(value);
2207
+ else grouped.set(id, { prev: items[i2 - 1], items: [value] });
1626
2208
  }
1627
2209
  const map = /* @__PURE__ */ new Map();
1628
- for (const [i2, id2] of ids.entries()) {
1629
- if (grouped.has(id2)) map.set(id2, grouped.get(id2));
1630
- else map.set(id2, map.get(ids[i2 - 1]));
2210
+ for (const [i2, id] of ids.entries()) {
2211
+ if (grouped.has(id)) map.set(id, grouped.get(id));
2212
+ else map.set(id, map.get(ids[i2 - 1]));
1631
2213
  }
1632
2214
  this.ids = ids;
1633
2215
  this.map = map;
@@ -1636,8 +2218,8 @@
1636
2218
  getProgress(index, range) {
1637
2219
  var _a;
1638
2220
  if (!this.ids) return;
1639
- const id2 = this.ids[index];
1640
- const obj = this.map.get(id2);
2221
+ const id = this.ids[index];
2222
+ const obj = this.map.get(id);
1641
2223
  if (!obj) return null;
1642
2224
  const { prev, items } = obj;
1643
2225
  if (!items) return prev;
@@ -1921,7 +2503,7 @@
1921
2503
  range.setEnd(nodes[endIndex], endOffset);
1922
2504
  return range;
1923
2505
  };
1924
- for (const match2 of func(strs, makeRange2)) yield match2;
2506
+ for (const match of func(strs, makeRange2)) yield match;
1925
2507
  };
1926
2508
  const SEARCH_PREFIX = "foliate-search:";
1927
2509
  const isZip = async (file) => {
@@ -2035,9 +2617,9 @@
2035
2617
  #el;
2036
2618
  #check;
2037
2619
  #state;
2038
- constructor(el, check2, state = {}) {
2620
+ constructor(el, check, state = {}) {
2039
2621
  this.#el = el;
2040
- this.#check = check2;
2622
+ this.#check = check;
2041
2623
  this.#state = state;
2042
2624
  if (this.#state.hidden) this.hide();
2043
2625
  this.#el.addEventListener("mousemove", ({ screenX, screenY }) => {
@@ -2045,7 +2627,7 @@
2045
2627
  this.#state.x = screenX, this.#state.y = screenY;
2046
2628
  this.show();
2047
2629
  if (this.#timeout) clearTimeout(this.#timeout);
2048
- if (check2()) this.#timeout = setTimeout(this.hide.bind(this), 1e3);
2630
+ if (check()) this.#timeout = setTimeout(this.hide.bind(this), 1e3);
2049
2631
  }, false);
2050
2632
  }
2051
2633
  cloneFor(el) {
@@ -3171,13 +3753,13 @@
3171
3753
  class fe extends TransformStream {
3172
3754
  constructor({ password: e2, rawPassword: t2, signed: n2, encryptionStrength: i2, checkPasswordOnly: r2 }) {
3173
3755
  super({ start() {
3174
- Object.assign(this, { ready: new Promise((e3) => this.resolveReady = e3), password: be(e2, t2), signed: n2, strength: i2 - 1, pending: new Uint8Array() });
3756
+ Object.assign(this, { ready: new Promise(((e3) => this.resolveReady = e3)), password: be(e2, t2), signed: n2, strength: i2 - 1, pending: new Uint8Array() });
3175
3757
  }, async transform(e3, t3) {
3176
3758
  const n3 = this, { password: i3, strength: a2, resolveReady: s2, ready: o2 } = n3;
3177
- i3 ? (await async function(e4, t4, n4, i4) {
3759
+ i3 ? (await (async function(e4, t4, n4, i4) {
3178
3760
  const r3 = await _e(e4, t4, n4, me(i4, 0, $[t4])), a3 = me(i4, $[t4]);
3179
3761
  if (r3[0] != a3[0] || r3[1] != a3[1]) throw new Error(q);
3180
- }(n3, a2, i3, me(e3, 0, $[a2] + 2)), e3 = me(e3, $[a2] + 2), r2 ? t3.error(new Error(K)) : s2()) : await o2;
3762
+ })(n3, a2, i3, me(e3, 0, $[a2] + 2)), e3 = me(e3, $[a2] + 2), r2 ? t3.error(new Error(K)) : s2()) : await o2;
3181
3763
  const l2 = new Uint8Array(e3.length - te - (e3.length - te) % G);
3182
3764
  t3.enqueue(we(n3, e3, l2, 0, te, true));
3183
3765
  }, async flush(e3) {
@@ -3205,14 +3787,14 @@
3205
3787
  constructor({ password: e2, rawPassword: t2, encryptionStrength: n2 }) {
3206
3788
  let i2;
3207
3789
  super({ start() {
3208
- Object.assign(this, { ready: new Promise((e3) => this.resolveReady = e3), password: be(e2, t2), strength: n2 - 1, pending: new Uint8Array() });
3790
+ Object.assign(this, { ready: new Promise(((e3) => this.resolveReady = e3)), password: be(e2, t2), strength: n2 - 1, pending: new Uint8Array() });
3209
3791
  }, async transform(e3, t3) {
3210
3792
  const n3 = this, { password: i3, strength: r2, resolveReady: a2, ready: s2 } = n3;
3211
3793
  let o2 = new Uint8Array();
3212
- i3 ? (o2 = await async function(e4, t4, n4) {
3794
+ i3 ? (o2 = await (async function(e4, t4, n4) {
3213
3795
  const i4 = Z(new Uint8Array($[t4])), r3 = await _e(e4, t4, n4, i4);
3214
3796
  return pe(i4, r3);
3215
- }(n3, r2, i3), a2()) : await s2;
3797
+ })(n3, r2, i3), a2()) : await s2;
3216
3798
  const l2 = new Uint8Array(o2.length + e3.length - e3.length % G);
3217
3799
  l2.set(o2, 0), t3.enqueue(we(n3, e3, l2, o2.length, 0));
3218
3800
  }, async flush(e3) {
@@ -3232,13 +3814,13 @@
3232
3814
  function we(e2, t2, n2, i2, r2, a2) {
3233
3815
  const { ctr: s2, hmac: o2, pending: l2 } = e2, c2 = t2.length - r2;
3234
3816
  let u2;
3235
- for (l2.length && (t2 = pe(l2, t2), n2 = function(e3, t3) {
3817
+ for (l2.length && (t2 = pe(l2, t2), n2 = (function(e3, t3) {
3236
3818
  if (t3 && t3 > e3.length) {
3237
3819
  const n3 = e3;
3238
3820
  (e3 = new Uint8Array(t3)).set(n3, 0);
3239
3821
  }
3240
3822
  return e3;
3241
- }(n2, c2 - c2 % G)), u2 = 0; u2 <= c2 - G; u2 += G) {
3823
+ })(n2, c2 - c2 % G)), u2 = 0; u2 <= c2 - G; u2 += G) {
3242
3824
  const e3 = ye(se, me(t2, u2, u2 + G));
3243
3825
  a2 && o2.update(e3);
3244
3826
  const r3 = s2.update(e3);
@@ -3248,25 +3830,25 @@
3248
3830
  }
3249
3831
  async function _e(e2, t2, n2, i2) {
3250
3832
  e2.password = null;
3251
- const r2 = await async function(e3, t3, n3, i3, r3) {
3833
+ const r2 = await (async function(e3, t3, n3, i3, r3) {
3252
3834
  if (!ue) return N.importKey(t3);
3253
3835
  try {
3254
3836
  return await re.importKey(e3, t3, n3, i3, r3);
3255
3837
  } catch (e4) {
3256
3838
  return ue = false, N.importKey(t3);
3257
3839
  }
3258
- }("raw", n2, Q, false, Y), a2 = await async function(e3, t3, n3) {
3840
+ })("raw", n2, Q, false, Y), a2 = await (async function(e3, t3, n3) {
3259
3841
  if (!de) return N.pbkdf2(t3, e3.salt, X.iterations, n3);
3260
3842
  try {
3261
3843
  return await re.deriveBits(e3, t3, n3);
3262
3844
  } catch (i3) {
3263
3845
  return de = false, N.pbkdf2(t3, e3.salt, X.iterations, n3);
3264
3846
  }
3265
- }(Object.assign({ salt: i2 }, X), r2, 8 * (2 * ee[t2] + 2)), s2 = new Uint8Array(a2), o2 = ye(se, me(s2, 0, ee[t2])), l2 = ye(se, me(s2, ee[t2], 2 * ee[t2])), c2 = me(s2, 2 * ee[t2]);
3847
+ })(Object.assign({ salt: i2 }, X), r2, 8 * (2 * ee[t2] + 2)), s2 = new Uint8Array(a2), o2 = ye(se, me(s2, 0, ee[t2])), l2 = ye(se, me(s2, ee[t2], 2 * ee[t2])), c2 = me(s2, 2 * ee[t2]);
3266
3848
  return Object.assign(e2, { keys: { key: o2, authentication: l2, passwordVerification: c2 }, ctr: new le(new oe(o2), Array.from(ne)), hmac: new ce(l2) }), c2;
3267
3849
  }
3268
3850
  function be(e2, t2) {
3269
- return t2 === S ? function(e3) {
3851
+ return t2 === S ? (function(e3) {
3270
3852
  if (typeof TextEncoder == z$1) {
3271
3853
  e3 = unescape(encodeURIComponent(e3));
3272
3854
  const t3 = new Uint8Array(e3.length);
@@ -3274,7 +3856,7 @@
3274
3856
  return t3;
3275
3857
  }
3276
3858
  return new TextEncoder().encode(e3);
3277
- }(e2) : t2;
3859
+ })(e2) : t2;
3278
3860
  }
3279
3861
  function pe(e2, t2) {
3280
3862
  let n2 = e2;
@@ -3356,10 +3938,10 @@
3356
3938
  super({});
3357
3939
  const { compressed: r2, encrypted: a2, useCompressionStream: s2, zipCrypto: o2, signed: l2, level: c2 } = e2, u2 = this;
3358
3940
  let d2, f2, h2 = We(super.readable);
3359
- a2 && !o2 || !l2 || (d2 = new j(), h2 = Le(h2, d2)), r2 && (h2 = Me(h2, s2, { level: c2, chunkSize: t2 }, i2, n2)), a2 && (o2 ? h2 = Le(h2, new ve(e2)) : (f2 = new he(e2), h2 = Le(h2, f2))), je(u2, h2, () => {
3941
+ a2 && !o2 || !l2 || (d2 = new j(), h2 = Le(h2, d2)), r2 && (h2 = Me(h2, s2, { level: c2, chunkSize: t2 }, i2, n2)), a2 && (o2 ? h2 = Le(h2, new ve(e2)) : (f2 = new he(e2), h2 = Le(h2, f2))), je(u2, h2, (() => {
3360
3942
  let e3;
3361
3943
  a2 && !o2 && (e3 = f2.signature), a2 && !o2 || !l2 || (e3 = new DataView(d2.value.buffer).getUint32(0)), u2.signature = e3;
3362
- });
3944
+ }));
3363
3945
  }
3364
3946
  }
3365
3947
  class Ce extends TransformStream {
@@ -3367,12 +3949,12 @@
3367
3949
  super({});
3368
3950
  const { zipCrypto: r2, encrypted: a2, signed: s2, signature: o2, compressed: l2, useCompressionStream: c2 } = e2;
3369
3951
  let u2, d2, f2 = We(super.readable);
3370
- a2 && (r2 ? f2 = Le(f2, new ke(e2)) : (d2 = new fe(e2), f2 = Le(f2, d2))), l2 && (f2 = Me(f2, c2, { chunkSize: t2 }, i2, n2)), a2 && !r2 || !s2 || (u2 = new j(), f2 = Le(f2, u2)), je(this, f2, () => {
3952
+ a2 && (r2 ? f2 = Le(f2, new ke(e2)) : (d2 = new fe(e2), f2 = Le(f2, d2))), l2 && (f2 = Me(f2, c2, { chunkSize: t2 }, i2, n2)), a2 && !r2 || !s2 || (u2 = new j(), f2 = Le(f2, u2)), je(this, f2, (() => {
3371
3953
  if ((!a2 || r2) && s2) {
3372
3954
  const e3 = new DataView(u2.value.buffer);
3373
3955
  if (o2 != e3.getUint32(0, false)) throw new Error(H);
3374
3956
  }
3375
- });
3957
+ }));
3376
3958
  }
3377
3959
  }
3378
3960
  function We(e2) {
@@ -3438,10 +4020,10 @@
3438
4020
  class Ze {
3439
4021
  constructor(e2, { readable: t2, writable: n2 }, { options: i2, config: r2, streamOptions: a2, useWebWorkers: s2, transferStreams: o2, scripts: l2 }, c2) {
3440
4022
  const { signal: u2 } = a2;
3441
- return Object.assign(e2, { busy: true, readable: t2.pipeThrough(new He(r2.chunkSize)).pipeThrough(new Ge(t2, a2), { signal: u2 }), writable: n2, options: Object.assign({}, i2), scripts: l2, transferStreams: o2, terminate: () => new Promise((t3) => {
4023
+ return Object.assign(e2, { busy: true, readable: t2.pipeThrough(new He(r2.chunkSize)).pipeThrough(new Ge(t2, a2), { signal: u2 }), writable: n2, options: Object.assign({}, i2), scripts: l2, transferStreams: o2, terminate: () => new Promise(((t3) => {
3442
4024
  const { worker: n3, busy: i3 } = e2;
3443
4025
  n3 ? (i3 ? e2.resolveTerminated = t3 : (n3.terminate(), t3()), e2.interface = null) : t3();
3444
- }), onTaskFinished() {
4026
+ })), onTaskFinished() {
3445
4027
  const { resolveTerminated: t3 } = e2;
3446
4028
  t3 && (e2.resolveTerminated = null, e2.terminated = true, e2.worker.terminate(), t3()), e2.busy = false, c2(e2);
3447
4029
  } }), (s2 && Ke ? Xe : Qe)(e2, r2);
@@ -3466,7 +4048,7 @@
3466
4048
  }
3467
4049
  }
3468
4050
  function Qe(e2, t2) {
3469
- return { run: () => async function({ options: e3, readable: t3, writable: n2, onTaskFinished: i2 }, r2) {
4051
+ return { run: () => (async function({ options: e3, readable: t3, writable: n2, onTaskFinished: i2 }, r2) {
3470
4052
  try {
3471
4053
  const i3 = new qe(e3, r2);
3472
4054
  await t3.pipeThrough(i3).pipeTo(n2, { preventClose: true, preventAbort: true });
@@ -3475,14 +4057,14 @@
3475
4057
  } finally {
3476
4058
  i2();
3477
4059
  }
3478
- }(e2, t2) };
4060
+ })(e2, t2) };
3479
4061
  }
3480
4062
  function Xe(e2, t2) {
3481
4063
  const { baseURL: n2, chunkSize: i2 } = t2;
3482
4064
  if (!e2.interface) {
3483
4065
  let r2;
3484
4066
  try {
3485
- r2 = function(e3, t3, n3) {
4067
+ r2 = (function(e3, t3, n3) {
3486
4068
  const i3 = { type: "module" };
3487
4069
  let r3, a2;
3488
4070
  typeof e3 == A$1 && (e3 = e3());
@@ -3497,7 +4079,7 @@
3497
4079
  Ye = false, a2 = new Worker(r3, i3);
3498
4080
  }
3499
4081
  else a2 = new Worker(r3, i3);
3500
- return a2.addEventListener(Pe, (e4) => async function({ data: e5 }, t4) {
4082
+ return a2.addEventListener(Pe, ((e4) => (async function({ data: e5 }, t4) {
3501
4083
  const { type: n4, value: i4, messageId: r4, result: a3, error: s2 } = e5, { reader: o2, writer: l2, resolveResult: c2, rejectResult: u2, onTaskFinished: d2 } = t4;
3502
4084
  try {
3503
4085
  if (s2) {
@@ -3516,32 +4098,32 @@
3516
4098
  function f2(e6, t5) {
3517
4099
  e6 ? u2(e6) : c2(t5), l2 && l2.releaseLock(), d2();
3518
4100
  }
3519
- }(e4, n3)), a2;
3520
- }(e2.scripts[0], n2, e2);
4101
+ })(e4, n3))), a2;
4102
+ })(e2.scripts[0], n2, e2);
3521
4103
  } catch (n3) {
3522
4104
  return Ke = false, Qe(e2, t2);
3523
4105
  }
3524
- Object.assign(e2, { worker: r2, interface: { run: () => async function(e3, t3) {
4106
+ Object.assign(e2, { worker: r2, interface: { run: () => (async function(e3, t3) {
3525
4107
  let n3, i3;
3526
- const r3 = new Promise((e4, t4) => {
4108
+ const r3 = new Promise(((e4, t4) => {
3527
4109
  n3 = e4, i3 = t4;
3528
- });
4110
+ }));
3529
4111
  Object.assign(e3, { reader: null, writer: null, resolveResult: n3, rejectResult: i3, result: r3 });
3530
- const { readable: a2, options: s2, scripts: o2 } = e3, { writable: l2, closed: c2 } = function(e4) {
4112
+ const { readable: a2, options: s2, scripts: o2 } = e3, { writable: l2, closed: c2 } = (function(e4) {
3531
4113
  let t4;
3532
- const n4 = new Promise((e5) => t4 = e5), i4 = new WritableStream({ async write(t5) {
4114
+ const n4 = new Promise(((e5) => t4 = e5)), i4 = new WritableStream({ async write(t5) {
3533
4115
  const n5 = e4.getWriter();
3534
4116
  await n5.ready, await n5.write(t5), n5.releaseLock();
3535
4117
  }, close() {
3536
4118
  t4();
3537
4119
  }, abort: (t5) => e4.getWriter().abort(t5) });
3538
4120
  return { writable: i4, closed: n4 };
3539
- }(e3.writable), u2 = et({ type: Re, scripts: o2.slice(1), options: s2, config: t3, readable: a2, writable: l2 }, e3);
4121
+ })(e3.writable), u2 = et({ type: Re, scripts: o2.slice(1), options: s2, config: t3, readable: a2, writable: l2 }, e3);
3540
4122
  u2 || Object.assign(e3, { reader: a2.getReader(), writer: l2.getWriter() });
3541
4123
  const d2 = await r3;
3542
4124
  u2 || await l2.getWriter().close();
3543
4125
  return await c2, d2;
3544
- }(e2, { chunkSize: i2 }) } });
4126
+ })(e2, { chunkSize: i2 }) } });
3545
4127
  }
3546
4128
  return e2.interface;
3547
4129
  }
@@ -3567,29 +4149,29 @@
3567
4149
  const { options: n2, config: i2 } = t2, { transferStreams: r2, useWebWorkers: a2, useCompressionStream: s2, codecType: o2, compressed: l2, signed: c2, encrypted: u2 } = n2, { workerScripts: d2, maxWorkers: f2 } = i2;
3568
4150
  t2.transferStreams = r2 || r2 === S;
3569
4151
  const h2 = !(l2 || c2 || u2 || t2.transferStreams);
3570
- return t2.useWebWorkers = !h2 && (a2 || a2 === S && i2.useWebWorkers), t2.scripts = t2.useWebWorkers && d2 ? d2[o2] : [], n2.useCompressionStream = s2 || s2 === S && i2.useCompressionStream, (await async function() {
3571
- const n3 = tt.find((e3) => !e3.busy);
4152
+ return t2.useWebWorkers = !h2 && (a2 || a2 === S && i2.useWebWorkers), t2.scripts = t2.useWebWorkers && d2 ? d2[o2] : [], n2.useCompressionStream = s2 || s2 === S && i2.useCompressionStream, (await (async function() {
4153
+ const n3 = tt.find(((e3) => !e3.busy));
3572
4154
  if (n3) return at(n3), new Ze(n3, e2, t2, w2);
3573
4155
  if (tt.length < f2) {
3574
4156
  const n4 = { indexWorker: it };
3575
4157
  return it++, tt.push(n4), new Ze(n4, e2, t2, w2);
3576
4158
  }
3577
- return new Promise((n4) => nt.push({ resolve: n4, stream: e2, workerOptions: t2 }));
3578
- }()).run();
4159
+ return new Promise(((n4) => nt.push({ resolve: n4, stream: e2, workerOptions: t2 })));
4160
+ })()).run();
3579
4161
  function w2(e3) {
3580
4162
  if (nt.length) {
3581
4163
  const [{ resolve: t3, stream: n3, workerOptions: i3 }] = nt.splice(0, 1);
3582
4164
  t3(new Ze(e3, n3, i3, w2));
3583
- } else e3.worker ? (at(e3), function(e4, t3) {
4165
+ } else e3.worker ? (at(e3), (function(e4, t3) {
3584
4166
  const { config: n3 } = t3, { terminateWorkerTimeout: i3 } = n3;
3585
- Number.isFinite(i3) && i3 >= 0 && (e4.terminated ? e4.terminated = false : e4.terminateTimeout = setTimeout(async () => {
3586
- tt = tt.filter((t4) => t4 != e4);
4167
+ Number.isFinite(i3) && i3 >= 0 && (e4.terminated ? e4.terminated = false : e4.terminateTimeout = setTimeout((async () => {
4168
+ tt = tt.filter(((t4) => t4 != e4));
3587
4169
  try {
3588
4170
  await e4.terminate();
3589
4171
  } catch (e5) {
3590
4172
  }
3591
- }, i3));
3592
- }(e3, t2)) : tt = tt.filter((t3) => t3 != e3);
4173
+ }), i3));
4174
+ })(e3, t2)) : tt = tt.filter(((t3) => t3 != e3));
3593
4175
  }
3594
4176
  }
3595
4177
  function at(e2) {
@@ -3645,9 +4227,9 @@
3645
4227
  if (n2.text && t2) return n2.text();
3646
4228
  {
3647
4229
  const t3 = new FileReader();
3648
- return new Promise((i2, r2) => {
4230
+ return new Promise(((i2, r2) => {
3649
4231
  Object.assign(t3, { onload: ({ target: e3 }) => i2(e3.result), onerror: () => r2(t3.error) }), t3.readAsText(n2, e2);
3650
- });
4232
+ }));
3651
4233
  }
3652
4234
  }
3653
4235
  }
@@ -3657,9 +4239,9 @@
3657
4239
  }
3658
4240
  async init() {
3659
4241
  const e2 = this, { readers: t2 } = e2;
3660
- e2.lastDiskNumber = 0, e2.lastDiskOffset = 0, await Promise.all(t2.map(async (n2, i2) => {
4242
+ e2.lastDiskNumber = 0, e2.lastDiskOffset = 0, await Promise.all(t2.map((async (n2, i2) => {
3661
4243
  await n2.init(), i2 != t2.length - 1 && (e2.lastDiskOffset += n2.size), e2.size += n2.size;
3662
- })), super.init();
4244
+ }))), super.init();
3663
4245
  }
3664
4246
  async readUint8Array(e2, t2, n2 = 0) {
3665
4247
  const i2 = this, { readers: r2 } = this;
@@ -3715,19 +4297,19 @@
3715
4297
  }
3716
4298
  const mt = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""), gt = 256 == mt.length;
3717
4299
  function yt(e2, t2) {
3718
- return t2 && "cp437" == t2.trim().toLowerCase() ? function(e3) {
4300
+ return t2 && "cp437" == t2.trim().toLowerCase() ? (function(e3) {
3719
4301
  if (gt) {
3720
4302
  let t3 = "";
3721
4303
  for (let n2 = 0; n2 < e3.length; n2++) t3 += mt[e3[n2]];
3722
4304
  return t3;
3723
4305
  }
3724
4306
  return new TextDecoder().decode(e3);
3725
- }(e2) : new TextDecoder(t2).decode(e2);
4307
+ })(e2) : new TextDecoder(t2).decode(e2);
3726
4308
  }
3727
4309
  const xt = "filename", kt = "rawFilename", vt = "comment", St = "rawComment", zt = "uncompressedSize", At = "compressedSize", Ut = "offset", Dt = "diskNumberStart", Et = "lastModDate", Tt = "rawLastModDate", Ft = "lastAccessDate", Ot = "rawLastAccessDate", Ct = "creationDate", Wt = "rawCreationDate", jt = [xt, kt, At, zt, Et, Tt, vt, St, Ft, Ct, Ut, Dt, Dt, "internalFileAttribute", "externalFileAttribute", "msDosCompatible", "zip64", "encrypted", "version", "versionMadeBy", "zipCrypto", "directory", "bitFlag", "signature", "filenameUTF8", "commentUTF8", "compressionMethod", "extraField", "rawExtraField", "extraFieldZip64", "extraFieldUnicodePath", "extraFieldUnicodeComment", "extraFieldAES", "extraFieldNTFS", "extraFieldExtendedTimestamp"];
3728
4310
  class Mt {
3729
4311
  constructor(e2) {
3730
- jt.forEach((t2) => this[t2] = e2[t2]);
4312
+ jt.forEach(((t2) => this[t2] = e2[t2]));
3731
4313
  }
3732
4314
  }
3733
4315
  const Lt = "File format is not recognized", Pt = "Zip64 extra field not found", Rt = "Compression method not supported", Bt = "Split zip file", It = "utf-8", Nt = "cp437", Vt = [[zt, g$1], [At, g$1], [Ut, g$1], [Dt, y$1]], qt = { [y$1]: { getValue: tn, bytes: 4 }, [g$1]: { getValue: nn, bytes: 8 } };
@@ -3740,21 +4322,21 @@
3740
4322
  let { reader: n2 } = t2;
3741
4323
  const { config: i2 } = t2;
3742
4324
  if (await _t(n2), n2.size !== S && n2.readUint8Array || (n2 = new ut(await new Response(n2.readable).blob()), await _t(n2)), n2.size < v$1) throw new Error(Lt);
3743
- n2.chunkSize = function(e3) {
4325
+ n2.chunkSize = (function(e3) {
3744
4326
  return Math.max(e3.chunkSize, 64);
3745
- }(i2);
3746
- const r2 = await async function(e3, t3, n3, i3, r3) {
4327
+ })(i2);
4328
+ const r2 = await (async function(e3, t3, n3, i3, r3) {
3747
4329
  const a3 = new Uint8Array(4);
3748
- !function(e4, t4, n4) {
4330
+ !(function(e4, t4, n4) {
3749
4331
  e4.setUint32(t4, n4, true);
3750
- }(rn(a3), 0, t3);
4332
+ })(rn(a3), 0, t3);
3751
4333
  const s3 = i3 + r3;
3752
4334
  return await o3(i3) || await o3(Math.min(s3, n3));
3753
4335
  async function o3(t4) {
3754
4336
  const r4 = n3 - t4, s4 = await pt(e3, r4, t4);
3755
4337
  for (let e4 = s4.length - i3; e4 >= 0; e4--) if (s4[e4] == a3[0] && s4[e4 + 1] == a3[1] && s4[e4 + 2] == a3[2] && s4[e4 + 3] == a3[3]) return { offset: r4 + e4, buffer: s4.slice(e4, e4 + i3).buffer };
3756
4338
  }
3757
- }(n2, 101010256, n2.size, v$1, 1048560);
4339
+ })(n2, 101010256, n2.size, v$1, 1048560);
3758
4340
  if (!r2) {
3759
4341
  throw 134695760 == tn(rn(await pt(n2, 0, 4))) ? new Error(Bt) : new Error("End of central directory not found");
3760
4342
  }
@@ -3842,11 +4424,11 @@
3842
4424
  const k2 = a2 + 30 + _2.filenameLength + _2.extraFieldLength, v2 = w2, z2 = r2.readable;
3843
4425
  Object.assign(z2, { diskNumberStart: s2, offset: k2, size: v2 });
3844
4426
  const U2 = Qt(i2, n2, "signal"), D2 = Qt(i2, n2, "checkPasswordOnly");
3845
- D2 && (e2 = new WritableStream()), e2 = function(e3) {
4427
+ D2 && (e2 = new WritableStream()), e2 = (function(e3) {
3846
4428
  e3.writable === S && typeof e3.next == A$1 && (e3 = new wt(e3)), e3 instanceof WritableStream && (e3 = { writable: e3 });
3847
4429
  const { writable: t3 } = e3;
3848
4430
  return t3.size === S && (t3.size = 0), e3 instanceof wt || Object.assign(e3, { diskNumber: 0, diskOffset: 0, availableSize: 1 / 0, maxSize: 1 / 0 }), e3;
3849
- }(e2), await _t(e2, g2 ? w2 : h2);
4431
+ })(e2), await _t(e2, g2 ? w2 : h2);
3850
4432
  const { writable: E2 } = e2, { onstart: T2, onprogress: F2, onend: O2 } = n2, C2 = { options: { codecType: Ve, password: p2, rawPassword: m2, zipCrypto: x2, encryptionStrength: o2 && o2.strength, signed: Qt(i2, n2, "checkSignature") && !g2, passwordVerification: x2 && (u2.dataDescriptor ? f2 >>> 8 & 255 : d2 >>> 24 & 255), signature: d2, compressed: 0 != l2 && !g2, encrypted: i2.encrypted && !g2, useWebWorkers: Qt(i2, n2, "useWebWorkers"), useCompressionStream: Qt(i2, n2, "useCompressionStream"), transferStreams: Qt(i2, n2, "transferStreams"), checkPasswordOnly: D2 }, config: c2, streamOptions: { signal: U2, size: v2, onstart: T2, onprogress: F2, onend: O2 } };
3851
4433
  let W2 = 0;
3852
4434
  try {
@@ -3877,9 +4459,9 @@
3877
4459
  const c2 = en(n2, i2 + 4);
3878
4460
  Object.assign(t2, { signature: tn(n2, i2 + 10), uncompressedSize: tn(n2, i2 + 18), compressedSize: tn(n2, i2 + 14) });
3879
4461
  const u2 = s2.get(1);
3880
- u2 && (!function(e3, t3) {
4462
+ u2 && (!(function(e3, t3) {
3881
4463
  t3.zip64 = true;
3882
- const n3 = rn(e3.data), i3 = Vt.filter(([e4, n4]) => t3[e4] == n4);
4464
+ const n3 = rn(e3.data), i3 = Vt.filter((([e4, n4]) => t3[e4] == n4));
3883
4465
  for (let r3 = 0, a3 = 0; r3 < i3.length; r3++) {
3884
4466
  const [s3, o3] = i3[r3];
3885
4467
  if (t3[s3] == o3) {
@@ -3887,18 +4469,18 @@
3887
4469
  t3[s3] = e3[s3] = i4.getValue(n3, a3), a3 += i4.bytes;
3888
4470
  } else if (e3[s3]) throw new Error(Pt);
3889
4471
  }
3890
- }(u2, t2), t2.extraFieldZip64 = u2);
4472
+ })(u2, t2), t2.extraFieldZip64 = u2);
3891
4473
  const d2 = s2.get(28789);
3892
4474
  d2 && (await Jt(d2, xt, kt, t2, e2), t2.extraFieldUnicodePath = d2);
3893
4475
  const f2 = s2.get(25461);
3894
4476
  f2 && (await Jt(f2, vt, St, t2, e2), t2.extraFieldUnicodeComment = f2);
3895
4477
  const h2 = s2.get(39169);
3896
- h2 ? (!function(e3, t3, n3) {
4478
+ h2 ? (!(function(e3, t3, n3) {
3897
4479
  const i3 = rn(e3.data), r3 = $t(i3, 4);
3898
4480
  Object.assign(e3, { vendorVersion: $t(i3, 0), vendorId: $t(i3, 2), strength: r3, originalCompressionMethod: n3, compressionMethod: en(i3, 5) }), t3.compressionMethod = e3.compressionMethod;
3899
- }(h2, t2, c2), t2.extraFieldAES = h2) : t2.compressionMethod = c2;
4481
+ })(h2, t2, c2), t2.extraFieldAES = h2) : t2.compressionMethod = c2;
3900
4482
  const w2 = s2.get(10);
3901
- w2 && (!function(e3, t3) {
4483
+ w2 && (!(function(e3, t3) {
3902
4484
  const n3 = rn(e3.data);
3903
4485
  let i3, r3 = 4;
3904
4486
  try {
@@ -3917,13 +4499,13 @@
3917
4499
  }
3918
4500
  } catch (e4) {
3919
4501
  }
3920
- }(w2, t2), t2.extraFieldNTFS = w2);
4502
+ })(w2, t2), t2.extraFieldNTFS = w2);
3921
4503
  const _2 = s2.get(21589);
3922
- _2 && (!function(e3, t3, n3) {
4504
+ _2 && (!(function(e3, t3, n3) {
3923
4505
  const i3 = rn(e3.data), r3 = $t(i3, 0), a3 = [], s3 = [];
3924
4506
  n3 ? (1 & ~r3 || (a3.push(Et), s3.push(Tt)), 2 & ~r3 || (a3.push(Ft), s3.push(Ot)), 4 & ~r3 || (a3.push(Ct), s3.push(Wt))) : e3.data.length >= 5 && (a3.push(Et), s3.push(Tt));
3925
4507
  let o3 = 1;
3926
- a3.forEach((n4, r4) => {
4508
+ a3.forEach(((n4, r4) => {
3927
4509
  if (e3.data.length >= o3 + 4) {
3928
4510
  const a4 = tn(i3, o3);
3929
4511
  t3[n4] = e3[n4] = new Date(1e3 * a4);
@@ -3931,8 +4513,8 @@
3931
4513
  e3[l3] = a4;
3932
4514
  }
3933
4515
  o3 += 4;
3934
- });
3935
- }(_2, t2, r2), t2.extraFieldExtendedTimestamp = _2);
4516
+ }));
4517
+ })(_2, t2, r2), t2.extraFieldExtendedTimestamp = _2);
3936
4518
  const b2 = s2.get(6534);
3937
4519
  b2 && (t2.extraFieldUSDZ = b2);
3938
4520
  }
@@ -3987,9 +4569,9 @@
3987
4569
  if ((a2 || 1 === l2) && t2.avail_in === e3.length) throw new Error("inflating: bad input");
3988
4570
  t2.next_out_index && (t2.next_out_index === i2 ? o2.push(new Uint8Array(r2)) : o2.push(r2.subarray(0, t2.next_out_index))), f2 += t2.next_out_index, s2 && t2.next_in_index > 0 && t2.next_in_index != u2 && (s2(t2.next_in_index), u2 = t2.next_in_index);
3989
4571
  } while (t2.avail_in > 0 || 0 === t2.avail_out);
3990
- return o2.length > 1 ? (c2 = new Uint8Array(f2), o2.forEach(function(e4) {
4572
+ return o2.length > 1 ? (c2 = new Uint8Array(f2), o2.forEach((function(e4) {
3991
4573
  c2.set(e4, d2), d2 += e4.length;
3992
- })) : c2 = o2[0] ? new Uint8Array(o2[0]) : new Uint8Array(), c2;
4574
+ }))) : c2 = o2[0] ? new Uint8Array(o2[0]) : new Uint8Array(), c2;
3993
4575
  }
3994
4576
  }, this.flush = function() {
3995
4577
  t2.inflateEnd();
@@ -4109,8 +4691,8 @@
4109
4691
  obj[key] = tidy(val);
4110
4692
  if (!Object.keys(val).length) delete obj[key];
4111
4693
  }
4112
- const keys2 = Object.keys(obj);
4113
- if (keys2.length === 1 && keys2[0] === "name") return obj[keys2[0]];
4694
+ const keys = Object.keys(obj);
4695
+ if (keys.length === 1 && keys[0] === "name") return obj[keys[0]];
4114
4696
  return obj;
4115
4697
  };
4116
4698
  const getPrefixes = (doc) => {
@@ -4242,14 +4824,14 @@
4242
4824
  };
4243
4825
  const remapContributor = (defaultKey) => (x2) => {
4244
4826
  var _a2;
4245
- const keys2 = new Set((_a2 = x2.role) == null ? void 0 : _a2.map((role) => RELATORS[role] ?? defaultKey));
4246
- return [keys2.size ? keys2 : [defaultKey], x2];
4827
+ const keys = new Set((_a2 = x2.role) == null ? void 0 : _a2.map((role) => RELATORS[role] ?? defaultKey));
4828
+ return [keys.size ? keys : [defaultKey], x2];
4247
4829
  };
4248
- for (const [keys2, val] of [].concat(
4830
+ for (const [keys, val] of [].concat(
4249
4831
  ((_u = (_t2 = dc.creator) == null ? void 0 : _t2.map(makeContributor)) == null ? void 0 : _u.map(remapContributor("author"))) ?? [],
4250
4832
  ((_w = (_v = dc.contributor) == null ? void 0 : _v.map(makeContributor)) == null ? void 0 : _w.map(remapContributor("contributor"))) ?? []
4251
4833
  ))
4252
- for (const key of keys2)
4834
+ for (const key of keys)
4253
4835
  if (metadata[key]) metadata[key].push(val);
4254
4836
  else metadata[key] = [val];
4255
4837
  tidy(metadata);
@@ -4504,8 +5086,8 @@
4504
5086
  const isUUID = /([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})/;
4505
5087
  const getUUID = (opf) => {
4506
5088
  for (const el of opf.getElementsByTagNameNS(NS$2.DC, "identifier")) {
4507
- const [id2] = getElementText$1(el).split(":").slice(-1);
4508
- if (isUUID.test(id2)) return id2;
5089
+ const [id] = getElementText$1(el).split(":").slice(-1);
5090
+ if (isUUID.test(id)) return id;
4509
5091
  }
4510
5092
  return "";
4511
5093
  };
@@ -4519,8 +5101,8 @@
4519
5101
  return new Blob([array, blob.slice(length)], { type: blob.type });
4520
5102
  };
4521
5103
  const WebCryptoSHA1 = async (str) => {
4522
- const data2 = new TextEncoder().encode(str);
4523
- const buffer = await globalThis.crypto.subtle.digest("SHA-1", data2);
5104
+ const data = new TextEncoder().encode(str);
5105
+ const buffer = await globalThis.crypto.subtle.digest("SHA-1", data);
4524
5106
  return new Uint8Array(buffer);
4525
5107
  };
4526
5108
  const deobfuscators = (sha1 = WebCryptoSHA1) => ({
@@ -4545,7 +5127,7 @@
4545
5127
  }
4546
5128
  async init(encryption, opf) {
4547
5129
  if (!encryption) return;
4548
- const data2 = Array.from(
5130
+ const data = Array.from(
4549
5131
  encryption.getElementsByTagNameNS(NS$2.ENC, "EncryptedData"),
4550
5132
  (el) => {
4551
5133
  var _a, _b;
@@ -4555,7 +5137,7 @@
4555
5137
  };
4556
5138
  }
4557
5139
  );
4558
- for (const { algorithm, uri } of data2) {
5140
+ for (const { algorithm, uri } of data) {
4559
5141
  if (!this.#decoders.has(algorithm)) {
4560
5142
  const algo = this.#algorithms[algorithm];
4561
5143
  if (!algo) {
@@ -4603,8 +5185,8 @@
4603
5185
  this.cover = this.getItemByProperty("cover-image") ?? this.getItemByID((_c = $$$(opf, "meta").find(filterAttribute("name", "cover"))) == null ? void 0 : _c.getAttribute("content")) ?? this.getItemByHref((_e2 = (_d = this.guide) == null ? void 0 : _d.find((ref) => ref.type.includes("cover"))) == null ? void 0 : _e2.href);
4604
5186
  this.cfis = fromElements($$itemref);
4605
5187
  }
4606
- getItemByID(id2) {
4607
- return this.manifestById.get(id2);
5188
+ getItemByID(id) {
5189
+ return this.manifestById.get(id);
4608
5190
  }
4609
5191
  getItemByHref(href) {
4610
5192
  return this.manifest.find((item) => item.href === href);
@@ -4640,9 +5222,9 @@
4640
5222
  this.manifest = resources.manifest;
4641
5223
  this.assets = resources.manifest;
4642
5224
  }
4643
- async createURL(href, data2, type, parent) {
4644
- if (!data2) return "";
4645
- const detail = { data: data2, type };
5225
+ async createURL(href, data, type, parent) {
5226
+ if (!data) return "";
5227
+ const detail = { data, type };
4646
5228
  Object.defineProperty(detail, "name", { value: href });
4647
5229
  const event = new CustomEvent("data", { detail });
4648
5230
  this.eventTarget.dispatchEvent(event);
@@ -4738,14 +5320,14 @@
4738
5320
  child = child.nextSibling;
4739
5321
  }
4740
5322
  }
4741
- const replace2 = async (el, attr) => el.setAttribute(
5323
+ const replace = async (el, attr) => el.setAttribute(
4742
5324
  attr,
4743
5325
  await this.loadHref(el.getAttribute(attr), href, parents)
4744
5326
  );
4745
- for (const el of doc.querySelectorAll("link[href]")) await replace2(el, "href");
4746
- for (const el of doc.querySelectorAll("[src]")) await replace2(el, "src");
4747
- for (const el of doc.querySelectorAll("[poster]")) await replace2(el, "poster");
4748
- for (const el of doc.querySelectorAll("object[data]")) await replace2(el, "data");
5327
+ for (const el of doc.querySelectorAll("link[href]")) await replace(el, "href");
5328
+ for (const el of doc.querySelectorAll("[src]")) await replace(el, "src");
5329
+ for (const el of doc.querySelectorAll("[poster]")) await replace(el, "poster");
5330
+ for (const el of doc.querySelectorAll("object[data]")) await replace(el, "data");
4749
5331
  for (const el of doc.querySelectorAll("[*|href]:not([href])"))
4750
5332
  el.setAttributeNS(NS$2.XLINK, "href", await this.loadHref(
4751
5333
  el.getAttributeNS(NS$2.XLINK, "href"),
@@ -4792,14 +5374,14 @@
4792
5374
  const relativeEnc = encodeURI(relative);
4793
5375
  const rootRelative = "/" + asset.href;
4794
5376
  const rootRelativeEnc = encodeURI(rootRelative);
4795
- const set2 = /* @__PURE__ */ new Set([relative, relativeEnc, rootRelative, rootRelativeEnc]);
4796
- for (const url of set2) assetMap.set(url, asset);
4797
- return Array.from(set2);
5377
+ const set = /* @__PURE__ */ new Set([relative, relativeEnc, rootRelative, rootRelativeEnc]);
5378
+ for (const url of set) assetMap.set(url, asset);
5379
+ return Array.from(set);
4798
5380
  }).flat().filter((x2) => x2);
4799
5381
  if (!urls.length) return str;
4800
5382
  const regex = new RegExp(urls.map(regexEscape).join("|"), "g");
4801
- return replaceSeries$1(str, regex, async (match2) => this.loadItem(
4802
- assetMap.get(match2.replace(/^\//, "")),
5383
+ return replaceSeries$1(str, regex, async (match) => this.loadItem(
5384
+ assetMap.get(match.replace(/^\//, "")),
4803
5385
  parents.concat(href)
4804
5386
  ));
4805
5387
  }
@@ -4810,7 +5392,7 @@
4810
5392
  for (const url of this.#cache.values()) URL.revokeObjectURL(url);
4811
5393
  }
4812
5394
  }
4813
- const getHTMLFragment = (doc, id2) => doc.getElementById(id2) ?? doc.querySelector(`[name="${CSS.escape(id2)}"]`);
5395
+ const getHTMLFragment = (doc, id) => doc.getElementById(id) ?? doc.querySelector(`[name="${CSS.escape(id)}"]`);
4814
5396
  const getPageSpread$1 = (properties) => {
4815
5397
  for (const p2 of properties) {
4816
5398
  if (p2 === "page-spread-left" || p2 === "rendition:page-spread-left")
@@ -4944,8 +5526,8 @@ ${doc.querySelector("parsererror").innerText}`);
4944
5526
  splitTOCHref(href) {
4945
5527
  return (href == null ? void 0 : href.split("#")) ?? [];
4946
5528
  }
4947
- getTOCFragment(doc, id2) {
4948
- return doc.getElementById(id2) ?? doc.querySelector(`[name="${CSS.escape(id2)}"]`);
5529
+ getTOCFragment(doc, id) {
5530
+ return doc.getElementById(id) ?? doc.querySelector(`[name="${CSS.escape(id)}"]`);
4949
5531
  }
4950
5532
  isExternal(uri) {
4951
5533
  return isExternal(uri);
@@ -5091,9 +5673,9 @@ ${doc.querySelector("parsererror").innerText}`);
5091
5673
  getImageSrc(el) {
5092
5674
  const href = el.getAttributeNS(NS$1.XLINK, "href");
5093
5675
  if (!href) return "data:,";
5094
- const [, id2] = href.split("#");
5095
- if (!id2) return href;
5096
- const bin = this.bins.get(id2);
5676
+ const [, id] = href.split("#");
5677
+ if (!id) return href;
5678
+ const bin = this.bins.get(id);
5097
5679
  return bin ? `data:${bin.getAttribute("content-type")};base64,${bin.textContent}` : href;
5098
5680
  }
5099
5681
  image(node) {
@@ -5310,17 +5892,17 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
5310
5892
  const idMap = /* @__PURE__ */ new Map();
5311
5893
  book.sections = sectionData.map((section, index) => {
5312
5894
  const { ids, load, createDocument, size, linear } = section;
5313
- for (const id2 of ids) if (id2) idMap.set(id2, index);
5895
+ for (const id of ids) if (id) idMap.set(id, index);
5314
5896
  return { id: index, load, createDocument, size, linear };
5315
5897
  });
5316
5898
  book.toc = sectionData.map(({ title, titles }, index) => {
5317
- const id2 = index.toString();
5899
+ const id = index.toString();
5318
5900
  return {
5319
5901
  label: title,
5320
- href: id2,
5902
+ href: id,
5321
5903
  subitems: (titles == null ? void 0 : titles.length) ? titles.map(({ title: title2, index: index2 }) => ({
5322
5904
  label: title2,
5323
- href: `${id2}#${index2}`
5905
+ href: `${id}#${index2}`
5324
5906
  })) : null
5325
5907
  };
5326
5908
  }).filter((item) => item);
@@ -5332,7 +5914,7 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
5332
5914
  var _a;
5333
5915
  return ((_a = href == null ? void 0 : href.split("#")) == null ? void 0 : _a.map((x2) => Number(x2))) ?? [];
5334
5916
  };
5335
- book.getTOCFragment = (doc2, id2) => doc2.querySelector(`[${dataID}="${id2}"]`);
5917
+ book.getTOCFragment = (doc2, id) => doc2.querySelector(`[${dataID}="${id}"]`);
5336
5918
  book.destroy = () => {
5337
5919
  for (const url of urls) URL.revokeObjectURL(url);
5338
5920
  };
@@ -5428,6 +6010,8 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
5428
6010
  };
5429
6011
  const pdf2 = await pdfjsLib.getDocument({
5430
6012
  range: transport,
6013
+ // cMapUrl: pdfjsPath('cmaps/'),
6014
+ // standardFontDataUrl: pdfjsPath('standard_fonts/'),
5431
6015
  isEvalSupported: false
5432
6016
  }).promise;
5433
6017
  const book = { rendition: { layout: "pre-paginated" } };
@@ -5987,8 +6571,8 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
5987
6571
  const length = getUint(buf.slice(offset + 4, offset + 8));
5988
6572
  if (type in EXTH_RECORD_TYPE) {
5989
6573
  const [name, typ, many] = EXTH_RECORD_TYPE[type];
5990
- const data2 = buf.slice(offset + 8, offset + length);
5991
- const value = typ === "uint" ? getUint(data2) : decoder2.decode(data2);
6574
+ const data = buf.slice(offset + 8, offset + length);
6575
+ const value = typ === "uint" ? getUint(data) : decoder2.decode(data);
5992
6576
  if (many) {
5993
6577
  results[name] ??= [];
5994
6578
  results[name].push(value);
@@ -6366,8 +6950,8 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
6366
6950
  const index = this.#sections.findIndex((section) => section.end > number);
6367
6951
  return [index, `filepos${filepos}`];
6368
6952
  }
6369
- getTOCFragment(doc, id2) {
6370
- return doc.getElementById(id2);
6953
+ getTOCFragment(doc, id) {
6954
+ return doc.getElementById(id);
6371
6955
  }
6372
6956
  isExternal(uri) {
6373
6957
  return /^(?!blob|filepos)\w+:/i.test(uri);
@@ -6380,8 +6964,8 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
6380
6964
  const kindleResourceRegex = /kindle:(flow|embed):(\w+)(?:\?mime=(\w+\/[-+.\w]+))?/;
6381
6965
  const kindlePosRegex = /kindle:pos:fid:(\w+):off:(\w+)/;
6382
6966
  const parseResourceURI = (str) => {
6383
- const [resourceType, id2, type] = str.match(kindleResourceRegex).slice(1);
6384
- return { resourceType, id: parseInt(id2, 32), type };
6967
+ const [resourceType, id, type] = str.match(kindleResourceRegex).slice(1);
6968
+ return { resourceType, id: parseInt(id, 32), type };
6385
6969
  };
6386
6970
  const parsePosURI = (str) => {
6387
6971
  const [fid, off] = str.match(kindlePosRegex).slice(1);
@@ -6389,9 +6973,9 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
6389
6973
  };
6390
6974
  const makePosURI = (fid = 0, off = 0) => `kindle:pos:fid:${fid.toString(32).toUpperCase().padStart(4, "0")}:off:${off.toString(32).toUpperCase().padStart(10, "0")}`;
6391
6975
  const getFragmentSelector = (str) => {
6392
- const match2 = str.match(/\s(id|name|aid)\s*=\s*['"]([^'"]*)['"]/i);
6393
- if (!match2) return;
6394
- const [, attr, value] = match2;
6976
+ const match = str.match(/\s(id|name|aid)\s*=\s*['"]([^'"]*)['"]/i);
6977
+ if (!match) return;
6978
+ const [, attr, value] = match;
6395
6979
  return `[${attr}="${CSS.escape(value)}"]`;
6396
6980
  };
6397
6981
  const replaceSeries = async (str, regex, f2) => {
@@ -6521,15 +7105,15 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
6521
7105
  return this;
6522
7106
  }
6523
7107
  // is this really the only way of getting to RESC, PAGE, etc.?
6524
- async getResourcesByMagic(keys2) {
7108
+ async getResourcesByMagic(keys) {
6525
7109
  const results = {};
6526
7110
  const start = this.mobi.headers.kf8.resourceStart;
6527
7111
  const end = this.mobi.pdb.numRecords;
6528
7112
  for (let i2 = start; i2 < end; i2++) {
6529
7113
  try {
6530
7114
  const magic = await this.mobi.loadMagic(i2);
6531
- const match2 = keys2.find((key) => key === magic);
6532
- if (match2) results[match2] = i2;
7115
+ const match = keys.find((key) => key === magic);
7116
+ if (match) results[match] = i2;
6533
7117
  } catch {
6534
7118
  }
6535
7119
  }
@@ -6552,8 +7136,8 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
6552
7136
  }
6553
7137
  async loadResourceBlob(str) {
6554
7138
  var _a;
6555
- const { resourceType, id: id2, type } = parseResourceURI(str);
6556
- const raw = resourceType === "flow" ? await this.loadFlow(id2) : await this.mobi.loadResource(id2 - 1);
7139
+ const { resourceType, id, type } = parseResourceURI(str);
7140
+ const raw = resourceType === "flow" ? await this.loadFlow(id) : await this.mobi.loadResource(id - 1);
6557
7141
  const result = [MIME.XHTML, MIME.HTML, MIME.CSS, MIME.SVG].includes(type) ? await this.replaceResources(this.mobi.decode(raw)) : raw;
6558
7142
  const detail = { data: result, type };
6559
7143
  const event = new CustomEvent("data", { detail });
@@ -6589,15 +7173,15 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
6589
7173
  if (distanceHead < 0 || distanceHead < distanceEnd) {
6590
7174
  while (this.#rawHead.length < end) {
6591
7175
  const index = ++this.#lastLoadedHead;
6592
- const data2 = await this.mobi.loadText(index);
6593
- this.#rawHead = concatTypedArray(this.#rawHead, data2);
7176
+ const data = await this.mobi.loadText(index);
7177
+ this.#rawHead = concatTypedArray(this.#rawHead, data);
6594
7178
  }
6595
7179
  return this.#rawHead.slice(start, end);
6596
7180
  }
6597
7181
  while (this.#fullRawLength - this.#rawTail.length > start) {
6598
7182
  const index = this.mobi.headers.palmdoc.numTextRecords - 1 - ++this.#lastLoadedTail;
6599
- const data2 = await this.mobi.loadText(index);
6600
- this.#rawTail = concatTypedArray(data2, this.#rawTail);
7183
+ const data = await this.mobi.loadText(index);
7184
+ this.#rawTail = concatTypedArray(data, this.#rawTail);
6601
7185
  }
6602
7186
  const rawTailStart = this.#fullRawLength - this.#rawTail.length;
6603
7187
  return this.#rawTail.slice(start - rawTailStart, end - rawTailStart);
@@ -6655,12 +7239,12 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
6655
7239
  getIndexByFID(fid) {
6656
7240
  return this.#sections.findIndex((section) => section.frags.some((frag) => frag.index === fid));
6657
7241
  }
6658
- #setFragmentSelector(id2, offset, selector) {
6659
- const map = this.#fragmentSelectors.get(id2);
7242
+ #setFragmentSelector(id, offset, selector) {
7243
+ const map = this.#fragmentSelectors.get(id);
6660
7244
  if (map) map.set(offset, selector);
6661
7245
  else {
6662
7246
  const map2 = /* @__PURE__ */ new Map();
6663
- this.#fragmentSelectors.set(id2, map2);
7247
+ this.#fragmentSelectors.set(id, map2);
6664
7248
  map2.set(offset, selector);
6665
7249
  }
6666
7250
  }
@@ -6832,9 +7416,9 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
6832
7416
  }
6833
7417
  e2.l = A2, e2.p = Z2, e2.b = z2, e2.f = x2, A2 && (x2 = 1, e2.m = D2, e2.d = U2, e2.n = F2);
6834
7418
  } while (!x2);
6835
- return z2 != f2.length && d2 ? function(a3, e3, n2) {
7419
+ return z2 != f2.length && d2 ? (function(a3, e3, n2) {
6836
7420
  return (null == n2 || n2 > a3.length) && (n2 = a3.length), new r(a3.subarray(e3, n2));
6837
- }(f2, 0, z2) : f2.subarray(0, z2);
7421
+ })(f2, 0, z2) : f2.subarray(0, z2);
6838
7422
  }, z = new r(0);
6839
7423
  function A(r2, a2) {
6840
7424
  return E(r2.subarray((e2 = r2, n2 = a2 && a2.dictionary, (8 != (15 & e2[0]) || e2[0] >> 4 > 7 || (e2[0] << 8 | e2[1]) % 31) && T(6, "invalid zlib data"), (e2[1] >> 5 & 1) == +!n2 && T(6, "invalid zlib data: " + (32 & e2[1] ? "need" : "unexpected") + " dictionary"), 2 + (e2[1] >> 3 & 4)), -4), { i: 2 }, a2 && a2.out, a2 && a2.dictionary);
@@ -7151,7 +7735,7 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
7151
7735
  timeout = setTimeout(later, wait2);
7152
7736
  };
7153
7737
  };
7154
- const lerp = (min2, max2, x2) => x2 * (max2 - min2) + min2;
7738
+ const lerp = (min, max, x2) => x2 * (max - min) + min;
7155
7739
  const easeOutQuad = (x2) => 1 - (1 - x2) * (1 - x2);
7156
7740
  const animate = (a2, b2, duration, ease, render2) => new Promise((resolve) => {
7157
7741
  let start;
@@ -7732,7 +8316,7 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
7732
8316
  if (detail.type !== "text/css") return;
7733
8317
  const w2 = innerWidth;
7734
8318
  const h2 = innerHeight;
7735
- detail.data = Promise.resolve(detail.data).then((data2) => data2.replace(new RegExp("(?<=[{\\s;])-epub-", "gi"), "").replace(/(\d*\.?\d+)vw/gi, (_2, d2) => parseFloat(d2) * w2 / 100 + "px").replace(/(\d*\.?\d+)vh/gi, (_2, d2) => parseFloat(d2) * h2 / 100 + "px").replace(/page-break-(after|before|inside)\s*:/gi, (_2, x2) => `-webkit-column-break-${x2}:`).replace(/break-(after|before|inside)\s*:\s*(avoid-)?page/gi, (_2, x2, y2) => `break-${x2}: ${y2 ?? ""}column`));
8319
+ detail.data = Promise.resolve(detail.data).then((data) => data.replace(new RegExp("(?<=[{\\s;])-epub-", "gi"), "").replace(/(\d*\.?\d+)vw/gi, (_2, d2) => parseFloat(d2) * w2 / 100 + "px").replace(/(\d*\.?\d+)vh/gi, (_2, d2) => parseFloat(d2) * h2 / 100 + "px").replace(/page-break-(after|before|inside)\s*:/gi, (_2, x2) => `-webkit-column-break-${x2}:`).replace(/break-(after|before|inside)\s*:\s*(avoid-)?page/gi, (_2, x2, y2) => `break-${x2}: ${y2 ?? ""}column`));
7736
8320
  });
7737
8321
  }
7738
8322
  #createView() {
@@ -7834,10 +8418,10 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
7834
8418
  const { scrollProp } = this;
7835
8419
  const [offset, a2, b2] = this.#scrollBounds;
7836
8420
  const rtl = this.#rtl;
7837
- const min2 = rtl ? offset - b2 : offset - a2;
7838
- const max2 = rtl ? offset + a2 : offset + b2;
7839
- element[scrollProp] = Math.max(min2, Math.min(
7840
- max2,
8421
+ const min = rtl ? offset - b2 : offset - a2;
8422
+ const max = rtl ? offset + a2 : offset + b2;
8423
+ element[scrollProp] = Math.max(min, Math.min(
8424
+ max,
7841
8425
  element[scrollProp] + delta
7842
8426
  ));
7843
8427
  }
@@ -7845,11 +8429,11 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
7845
8429
  const velocity = this.#vertical ? vy : vx;
7846
8430
  const [offset, a2, b2] = this.#scrollBounds;
7847
8431
  const { start, end, pages, size } = this;
7848
- const min2 = Math.abs(offset) - a2;
7849
- const max2 = Math.abs(offset) + b2;
8432
+ const min = Math.abs(offset) - a2;
8433
+ const max = Math.abs(offset) + b2;
7850
8434
  const d2 = velocity * (this.#rtl ? -size : size);
7851
8435
  const page = Math.floor(
7852
- Math.max(min2, Math.min(max2, (start + end) / 2 + (isNaN(d2) ? 0 : d2))) / size
8436
+ Math.max(min, Math.min(max, (start + end) / 2 + (isNaN(d2) ? 0 : d2))) / size
7853
8437
  );
7854
8438
  this.#scrollToPage(page, "snap").then(() => {
7855
8439
  const dir = page <= 0 ? -1 : page >= pages - 1 ? 1 : null;
@@ -8173,14 +8757,14 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
8173
8757
  const makeExcerpt = (strs, { startIndex, startOffset, endIndex, endOffset }) => {
8174
8758
  const start = strs[startIndex];
8175
8759
  const end = strs[endIndex];
8176
- const match2 = start === end ? start.slice(startOffset, endOffset) : start.slice(startOffset) + strs.slice(start + 1, end).join("") + end.slice(0, endOffset);
8760
+ const match = start === end ? start.slice(startOffset, endOffset) : start.slice(startOffset) + strs.slice(start + 1, end).join("") + end.slice(0, endOffset);
8177
8761
  const trimmedStart = normalizeWhitespace(start.slice(0, startOffset)).trimStart();
8178
8762
  const trimmedEnd = normalizeWhitespace(end.slice(endOffset)).trimEnd();
8179
8763
  const ellipsisPre = trimmedStart.length < CONTEXT_LENGTH ? "" : "…";
8180
8764
  const ellipsisPost = trimmedEnd.length < CONTEXT_LENGTH ? "" : "…";
8181
8765
  const pre = `${ellipsisPre}${trimmedStart.slice(-CONTEXT_LENGTH)}`;
8182
8766
  const post = `${trimmedEnd.slice(0, CONTEXT_LENGTH)}${ellipsisPost}`;
8183
- return { pre, match: match2, post };
8767
+ return { pre, match, post };
8184
8768
  };
8185
8769
  const simpleSearch = function* (strs, query, options = {}) {
8186
8770
  const { locales = "en", sensitivity } = options;
@@ -8579,4 +9163,4 @@ body:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {
8579
9163
  exports2.VueReader = VueReader;
8580
9164
  exports2.default = VueReader;
8581
9165
  Object.defineProperties(exports2, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
8582
- });
9166
+ }));