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,WAAUv7B,EAAOu7B,SAAW,IACxCtzB,OAAOy5C,eAAe1hD,EAAQ,UAAW,CACxCotB,YAAY,EACZ5c,IAAK,WACJ,MAAM,IAAIiC,MAAM,0FAA4FzS,EAAO6M,GACpH,IAEM7M,CACR,ECVA0yG,oBAAoBpvD,EAAI,SAAS/6C,EAAKk9E,GAAQ,OAAOx9E,OAAO8D,UAAU63C,eAAe5gD,KAAKuF,EAAKk9E,EAAO,ECCtGitB,oBAAoBrqD,EAAI,SAAStoD,GACX,oBAAXwH,QAA0BA,OAAOyrG,aAC1C/qG,OAAOy5C,eAAe3hD,EAASwH,OAAOyrG,YAAa,CAAEhvG,MAAO,WAE7DiE,OAAOy5C,eAAe3hD,EAAS,aAAc,CAAEiE,OAAO,GACvD,ECHA,IAAIivG,oBAAsBP,oBAAoB,M,2B1fO9C,E","sources":["webpack://eruda/webpack/universalModuleDefinition","webpack://eruda/./node_modules/luna-box-model/esm/share/util.js","webpack://eruda/./node_modules/luna-box-model/esm/share/Component.js","webpack://eruda/./node_modules/luna-box-model/esm/box-model/index.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://eruda/./node_modules/luna-console/esm/console/util.js","webpack://eruda/./node_modules/luna-console/esm/share/util.js","webpack://eruda/./node_modules/luna-console/esm/console/getPreview.js","webpack://eruda/./node_modules/luna-console/esm/console/Log.js","webpack://eruda/./node_modules/luna-console/esm/share/Component.js","webpack://eruda/./node_modules/luna-console/esm/console/index.js","webpack://eruda/./node_modules/luna-data-grid/esm/share/util.js","webpack://eruda/./node_modules/luna-data-grid/esm/share/Component.js","webpack://eruda/./node_modules/luna-data-grid/esm/data-grid/index.js","webpack://eruda/./node_modules/luna-dom-viewer/esm/share/util.js","webpack://eruda/./node_modules/luna-dom-viewer/esm/share/Component.js","webpack://eruda/./node_modules/luna-dom-viewer/esm/dom-viewer/index.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://eruda/./node_modules/luna-modal/esm/share/util.js","webpack://eruda/./node_modules/luna-modal/esm/share/Component.js","webpack://eruda/./node_modules/luna-modal/esm/modal/index.js","webpack://eruda/./node_modules/luna-object-viewer/esm/object-viewer/Visitor.js","webpack://eruda/./node_modules/luna-object-viewer/esm/object-viewer/util.js","webpack://eruda/./node_modules/luna-object-viewer/esm/share/util.js","webpack://eruda/./node_modules/luna-object-viewer/esm/share/Component.js","webpack://eruda/./node_modules/luna-object-viewer/esm/object-viewer/Static.js","webpack://eruda/./node_modules/luna-object-viewer/esm/object-viewer/index.js","webpack://eruda/./node_modules/luna-setting/esm/share/util.js","webpack://eruda/./node_modules/luna-setting/esm/share/Component.js","webpack://eruda/./node_modules/luna-setting/esm/setting/index.js","webpack://eruda/./node_modules/luna-tab/esm/share/util.js","webpack://eruda/./node_modules/luna-tab/esm/share/Component.js","webpack://eruda/./node_modules/luna-tab/esm/tab/index.js","webpack://eruda/./node_modules/luna-text-viewer/esm/share/util.js","webpack://eruda/./node_modules/luna-text-viewer/esm/share/Component.js","webpack://eruda/./node_modules/luna-text-viewer/esm/text-viewer/index.js","webpack://eruda/./src/lib/emitter.js","webpack://eruda/./src/DevTools/Tool.js","webpack://eruda/./src/lib/themes.js","webpack://eruda/./src/lib/evalCss.js","webpack://eruda/./src/Settings/Settings.js","webpack://eruda/./src/lib/util.js","webpack://eruda/./src/EntryBtn/EntryBtn.js","webpack://eruda/./src/lib/logger.js","webpack://eruda/./src/DevTools/DevTools.js","webpack://eruda/./src/Console/Console.js","webpack://eruda/./src/Network/Detail.js","webpack://eruda/./src/lib/chobitsu.js","webpack://eruda/./src/Network/Network.js","webpack://eruda/./src/Network/util.js","webpack://eruda/./src/Elements/CssStore.js","webpack://eruda/./src/Elements/util.js","webpack://eruda/./src/Elements/Detail.js","webpack://eruda/./src/Elements/Elements.js","webpack://eruda/./src/Snippets/defSnippets.js","webpack://eruda/./src/Snippets/Snippets.js","webpack://eruda/./src/Resources/Storage.js","webpack://eruda/./src/Resources/util.js","webpack://eruda/./src/Resources/Cookie.js","webpack://eruda/./src/Resources/Resources.js","webpack://eruda/./src/Info/defInfo.js","webpack://eruda/./src/Info/Info.js","webpack://eruda/./src/Sources/Sources.js","webpack://eruda/./src/eruda.js","webpack://eruda/./src/index.js","webpack://eruda/./src/lib/empty.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/Chobitsu.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/domains/DOM.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/domains/Network.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/domains/Overlay.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/domains/Storage.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/lib/connector.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/lib/evaluate.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/lib/mutationObserver.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/lib/nodeManager.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/lib/objManager.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/lib/request.js","webpack://eruda/./node_modules/chobitsu/dist/cjs/lib/util.js","webpack://eruda/./node_modules/core-js/es/promise/index.js","webpack://eruda/./node_modules/core-js/internals/a-callable.js","webpack://eruda/./node_modules/core-js/internals/a-constructor.js","webpack://eruda/./node_modules/core-js/internals/a-possible-prototype.js","webpack://eruda/./node_modules/core-js/internals/add-to-unscopables.js","webpack://eruda/./node_modules/core-js/internals/an-instance.js","webpack://eruda/./node_modules/core-js/internals/an-object.js","webpack://eruda/./node_modules/core-js/internals/array-buffer-non-extensible.js","webpack://eruda/./node_modules/core-js/internals/array-includes.js","webpack://eruda/./node_modules/core-js/internals/array-slice-simple.js","webpack://eruda/./node_modules/core-js/internals/array-slice.js","webpack://eruda/./node_modules/core-js/internals/check-correctness-of-iteration.js","webpack://eruda/./node_modules/core-js/internals/classof-raw.js","webpack://eruda/./node_modules/core-js/internals/classof.js","webpack://eruda/./node_modules/core-js/internals/collection-strong.js","webpack://eruda/./node_modules/core-js/internals/collection.js","webpack://eruda/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://eruda/./node_modules/core-js/internals/correct-prototype-getter.js","webpack://eruda/./node_modules/core-js/internals/create-iter-result-object.js","webpack://eruda/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://eruda/./node_modules/core-js/internals/create-property-descriptor.js","webpack://eruda/./node_modules/core-js/internals/create-property.js","webpack://eruda/./node_modules/core-js/internals/define-built-in-accessor.js","webpack://eruda/./node_modules/core-js/internals/define-built-in.js","webpack://eruda/./node_modules/core-js/internals/define-built-ins.js","webpack://eruda/./node_modules/core-js/internals/define-global-property.js","webpack://eruda/./node_modules/core-js/internals/descriptors.js","webpack://eruda/./node_modules/core-js/internals/document-all.js","webpack://eruda/./node_modules/core-js/internals/document-create-element.js","webpack://eruda/./node_modules/core-js/internals/dom-iterables.js","webpack://eruda/./node_modules/core-js/internals/dom-token-list-prototype.js","webpack://eruda/./node_modules/core-js/internals/engine-is-browser.js","webpack://eruda/./node_modules/core-js/internals/engine-is-deno.js","webpack://eruda/./node_modules/core-js/internals/engine-is-ios-pebble.js","webpack://eruda/./node_modules/core-js/internals/engine-is-ios.js","webpack://eruda/./node_modules/core-js/internals/engine-is-node.js","webpack://eruda/./node_modules/core-js/internals/engine-is-webos-webkit.js","webpack://eruda/./node_modules/core-js/internals/engine-user-agent.js","webpack://eruda/./node_modules/core-js/internals/engine-v8-version.js","webpack://eruda/./node_modules/core-js/internals/enum-bug-keys.js","webpack://eruda/./node_modules/core-js/internals/error-stack-clear.js","webpack://eruda/./node_modules/core-js/internals/error-stack-install.js","webpack://eruda/./node_modules/core-js/internals/error-stack-installable.js","webpack://eruda/./node_modules/core-js/internals/export.js","webpack://eruda/./node_modules/core-js/internals/fails.js","webpack://eruda/./node_modules/core-js/internals/freezing.js","webpack://eruda/./node_modules/core-js/internals/function-apply.js","webpack://eruda/./node_modules/core-js/internals/function-bind-context.js","webpack://eruda/./node_modules/core-js/internals/function-bind-native.js","webpack://eruda/./node_modules/core-js/internals/function-call.js","webpack://eruda/./node_modules/core-js/internals/function-name.js","webpack://eruda/./node_modules/core-js/internals/function-uncurry-this-accessor.js","webpack://eruda/./node_modules/core-js/internals/function-uncurry-this-clause.js","webpack://eruda/./node_modules/core-js/internals/function-uncurry-this.js","webpack://eruda/./node_modules/core-js/internals/get-built-in.js","webpack://eruda/./node_modules/core-js/internals/get-iterator-method.js","webpack://eruda/./node_modules/core-js/internals/get-iterator.js","webpack://eruda/./node_modules/core-js/internals/get-method.js","webpack://eruda/./node_modules/core-js/internals/global.js","webpack://eruda/./node_modules/core-js/internals/has-own-property.js","webpack://eruda/./node_modules/core-js/internals/hidden-keys.js","webpack://eruda/./node_modules/core-js/internals/host-report-errors.js","webpack://eruda/./node_modules/core-js/internals/html.js","webpack://eruda/./node_modules/core-js/internals/ie8-dom-define.js","webpack://eruda/./node_modules/core-js/internals/indexed-object.js","webpack://eruda/./node_modules/core-js/internals/inherit-if-required.js","webpack://eruda/./node_modules/core-js/internals/inspect-source.js","webpack://eruda/./node_modules/core-js/internals/install-error-cause.js","webpack://eruda/./node_modules/core-js/internals/internal-metadata.js","webpack://eruda/./node_modules/core-js/internals/internal-state.js","webpack://eruda/./node_modules/core-js/internals/is-array-iterator-method.js","webpack://eruda/./node_modules/core-js/internals/is-callable.js","webpack://eruda/./node_modules/core-js/internals/is-constructor.js","webpack://eruda/./node_modules/core-js/internals/is-forced.js","webpack://eruda/./node_modules/core-js/internals/is-null-or-undefined.js","webpack://eruda/./node_modules/core-js/internals/is-object.js","webpack://eruda/./node_modules/core-js/internals/is-pure.js","webpack://eruda/./node_modules/core-js/internals/is-symbol.js","webpack://eruda/./node_modules/core-js/internals/iterate.js","webpack://eruda/./node_modules/core-js/internals/iterator-close.js","webpack://eruda/./node_modules/core-js/internals/iterator-create-constructor.js","webpack://eruda/./node_modules/core-js/internals/iterator-define.js","webpack://eruda/./node_modules/core-js/internals/iterators-core.js","webpack://eruda/./node_modules/core-js/internals/iterators.js","webpack://eruda/./node_modules/core-js/internals/length-of-array-like.js","webpack://eruda/./node_modules/core-js/internals/make-built-in.js","webpack://eruda/./node_modules/core-js/internals/math-trunc.js","webpack://eruda/./node_modules/core-js/internals/microtask.js","webpack://eruda/./node_modules/core-js/internals/new-promise-capability.js","webpack://eruda/./node_modules/core-js/internals/normalize-string-argument.js","webpack://eruda/./node_modules/core-js/internals/object-create.js","webpack://eruda/./node_modules/core-js/internals/object-define-properties.js","webpack://eruda/./node_modules/core-js/internals/object-define-property.js","webpack://eruda/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://eruda/./node_modules/core-js/internals/object-get-own-property-names-external.js","webpack://eruda/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://eruda/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://eruda/./node_modules/core-js/internals/object-get-prototype-of.js","webpack://eruda/./node_modules/core-js/internals/object-is-extensible.js","webpack://eruda/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://eruda/./node_modules/core-js/internals/object-keys-internal.js","webpack://eruda/./node_modules/core-js/internals/object-keys.js","webpack://eruda/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://eruda/./node_modules/core-js/internals/object-set-prototype-of.js","webpack://eruda/./node_modules/core-js/internals/object-to-string.js","webpack://eruda/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://eruda/./node_modules/core-js/internals/own-keys.js","webpack://eruda/./node_modules/core-js/internals/path.js","webpack://eruda/./node_modules/core-js/internals/perform.js","webpack://eruda/./node_modules/core-js/internals/promise-constructor-detection.js","webpack://eruda/./node_modules/core-js/internals/promise-native-constructor.js","webpack://eruda/./node_modules/core-js/internals/promise-resolve.js","webpack://eruda/./node_modules/core-js/internals/promise-statics-incorrect-iteration.js","webpack://eruda/./node_modules/core-js/internals/queue.js","webpack://eruda/./node_modules/core-js/internals/require-object-coercible.js","webpack://eruda/./node_modules/core-js/internals/set-species.js","webpack://eruda/./node_modules/core-js/internals/set-to-string-tag.js","webpack://eruda/./node_modules/core-js/internals/shared-key.js","webpack://eruda/./node_modules/core-js/internals/shared-store.js","webpack://eruda/./node_modules/core-js/internals/shared.js","webpack://eruda/./node_modules/core-js/internals/species-constructor.js","webpack://eruda/./node_modules/core-js/internals/string-multibyte.js","webpack://eruda/./node_modules/core-js/internals/symbol-constructor-detection.js","webpack://eruda/./node_modules/core-js/internals/task.js","webpack://eruda/./node_modules/core-js/internals/to-absolute-index.js","webpack://eruda/./node_modules/core-js/internals/to-indexed-object.js","webpack://eruda/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://eruda/./node_modules/core-js/internals/to-length.js","webpack://eruda/./node_modules/core-js/internals/to-object.js","webpack://eruda/./node_modules/core-js/internals/to-primitive.js","webpack://eruda/./node_modules/core-js/internals/to-property-key.js","webpack://eruda/./node_modules/core-js/internals/to-string-tag-support.js","webpack://eruda/./node_modules/core-js/internals/to-string.js","webpack://eruda/./node_modules/core-js/internals/try-to-string.js","webpack://eruda/./node_modules/core-js/internals/uid.js","webpack://eruda/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://eruda/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://eruda/./node_modules/core-js/internals/validate-arguments-length.js","webpack://eruda/./node_modules/core-js/internals/weak-map-basic-detection.js","webpack://eruda/./node_modules/core-js/internals/well-known-symbol.js","webpack://eruda/./node_modules/core-js/modules/es.aggregate-error.constructor.js","webpack://eruda/./node_modules/core-js/modules/es.aggregate-error.js","webpack://eruda/./node_modules/core-js/modules/es.array.iterator.js","webpack://eruda/./node_modules/core-js/modules/es.map.constructor.js","webpack://eruda/./node_modules/core-js/modules/es.map.js","webpack://eruda/./node_modules/core-js/modules/es.object.to-string.js","webpack://eruda/./node_modules/core-js/modules/es.promise.all-settled.js","webpack://eruda/./node_modules/core-js/modules/es.promise.all.js","webpack://eruda/./node_modules/core-js/modules/es.promise.any.js","webpack://eruda/./node_modules/core-js/modules/es.promise.catch.js","webpack://eruda/./node_modules/core-js/modules/es.promise.constructor.js","webpack://eruda/./node_modules/core-js/modules/es.promise.finally.js","webpack://eruda/./node_modules/core-js/modules/es.promise.js","webpack://eruda/./node_modules/core-js/modules/es.promise.race.js","webpack://eruda/./node_modules/core-js/modules/es.promise.reject.js","webpack://eruda/./node_modules/core-js/modules/es.promise.resolve.js","webpack://eruda/./node_modules/core-js/modules/es.string.iterator.js","webpack://eruda/./node_modules/core-js/modules/web.dom-collections.iterator.js","webpack://eruda/./node_modules/core-js/stable/promise/index.js","webpack://eruda/./src/Console/Console.scss","webpack://eruda/./src/DevTools/DevTools.scss","webpack://eruda/./src/Elements/Elements.scss","webpack://eruda/./src/EntryBtn/EntryBtn.scss","webpack://eruda/./src/Info/Info.scss","webpack://eruda/./src/Network/Network.scss","webpack://eruda/./src/Resources/Resources.scss","webpack://eruda/./src/Settings/Settings.scss","webpack://eruda/./src/Snippets/Snippets.scss","webpack://eruda/./src/Snippets/searchText.scss","webpack://eruda/./src/Sources/Sources.scss","webpack://eruda/./src/style/reset.scss","webpack://eruda/./src/style/style.scss","webpack://eruda/./node_modules/luna-box-model/luna-box-model.css","webpack://eruda/./node_modules/luna-console/luna-console.css","webpack://eruda/./node_modules/luna-data-grid/luna-data-grid.css","webpack://eruda/./node_modules/luna-dom-viewer/luna-dom-viewer.css","webpack://eruda/./node_modules/luna-modal/luna-modal.css","webpack://eruda/./node_modules/luna-notification/luna-notification.css","webpack://eruda/./node_modules/luna-object-viewer/luna-object-viewer.css","webpack://eruda/./node_modules/luna-setting/luna-setting.css","webpack://eruda/./node_modules/luna-tab/luna-tab.css","webpack://eruda/./node_modules/luna-text-viewer/luna-text-viewer.css","webpack://eruda/./src/style/icon.css","webpack://eruda/./node_modules/css-loader/dist/runtime/api.js","webpack://eruda/./node_modules/licia/$.js","webpack://eruda/./node_modules/licia/$attr.js","webpack://eruda/./node_modules/licia/$class.js","webpack://eruda/./node_modules/licia/$css.js","webpack://eruda/./node_modules/licia/$data.js","webpack://eruda/./node_modules/licia/$event.js","webpack://eruda/./node_modules/licia/$insert.js","webpack://eruda/./node_modules/licia/$offset.js","webpack://eruda/./node_modules/licia/$property.js","webpack://eruda/./node_modules/licia/$remove.js","webpack://eruda/./node_modules/licia/$safeEls.js","webpack://eruda/./node_modules/licia/$show.js","webpack://eruda/./node_modules/licia/Class.js","webpack://eruda/./node_modules/licia/Color.js","webpack://eruda/./node_modules/licia/Emitter.js","webpack://eruda/./node_modules/licia/Enum.js","webpack://eruda/./node_modules/licia/LocalStore.js","webpack://eruda/./node_modules/licia/Logger.js","webpack://eruda/./node_modules/licia/MediaQuery.js","webpack://eruda/./node_modules/licia/MutationObserver.js","webpack://eruda/./node_modules/licia/ResizeSensor.js","webpack://eruda/./node_modules/licia/Select.js","webpack://eruda/./node_modules/licia/SingleEmitter.js","webpack://eruda/./node_modules/licia/Stack.js","webpack://eruda/./node_modules/licia/Store.js","webpack://eruda/./node_modules/licia/Url.js","webpack://eruda/./node_modules/licia/ajax.js","webpack://eruda/./node_modules/licia/allKeys.js","webpack://eruda/./node_modules/licia/arrToMap.js","webpack://eruda/./node_modules/licia/base64.js","webpack://eruda/./node_modules/licia/before.js","webpack://eruda/./node_modules/licia/camelCase.js","webpack://eruda/./node_modules/licia/castPath.js","webpack://eruda/./node_modules/licia/chunk.js","webpack://eruda/./node_modules/licia/clamp.js","webpack://eruda/./node_modules/licia/clone.js","webpack://eruda/./node_modules/licia/cloneDeep.js","webpack://eruda/./node_modules/licia/concat.js","webpack://eruda/./node_modules/licia/contain.js","webpack://eruda/./node_modules/licia/convertBin.js","webpack://eruda/./node_modules/licia/cookie.js","webpack://eruda/./node_modules/licia/copy.js","webpack://eruda/./node_modules/licia/create.js","webpack://eruda/./node_modules/licia/createAssigner.js","webpack://eruda/./node_modules/licia/cssSupports.js","webpack://eruda/./node_modules/licia/dateFormat.js","webpack://eruda/./node_modules/licia/debounce.js","webpack://eruda/./node_modules/licia/decodeUriComponent.js","webpack://eruda/./node_modules/licia/defaults.js","webpack://eruda/./node_modules/licia/defineProp.js","webpack://eruda/./node_modules/licia/delegate.js","webpack://eruda/./node_modules/licia/detectBrowser.js","webpack://eruda/./node_modules/licia/detectOs.js","webpack://eruda/./node_modules/licia/difference.js","webpack://eruda/./node_modules/licia/each.js","webpack://eruda/./node_modules/licia/endWith.js","webpack://eruda/./node_modules/licia/escape.js","webpack://eruda/./node_modules/licia/escapeJsStr.js","webpack://eruda/./node_modules/licia/escapeRegExp.js","webpack://eruda/./node_modules/licia/evalCss.js","webpack://eruda/./node_modules/licia/every.js","webpack://eruda/./node_modules/licia/extend.js","webpack://eruda/./node_modules/licia/extendOwn.js","webpack://eruda/./node_modules/licia/extractUrls.js","webpack://eruda/./node_modules/licia/filter.js","webpack://eruda/./node_modules/licia/find.js","webpack://eruda/./node_modules/licia/findIdx.js","webpack://eruda/./node_modules/licia/findKey.js","webpack://eruda/./node_modules/licia/flatten.js","webpack://eruda/./node_modules/licia/freeze.js","webpack://eruda/./node_modules/licia/getProto.js","webpack://eruda/./node_modules/licia/h.js","webpack://eruda/./node_modules/licia/has.js","webpack://eruda/./node_modules/licia/hex.js","webpack://eruda/./node_modules/licia/highlight.js","webpack://eruda/./node_modules/licia/hslToRgb.js","webpack://eruda/./node_modules/licia/html.js","webpack://eruda/./node_modules/licia/identity.js","webpack://eruda/./node_modules/licia/idxOf.js","webpack://eruda/./node_modules/licia/inherits.js","webpack://eruda/./node_modules/licia/invert.js","webpack://eruda/./node_modules/licia/isArgs.js","webpack://eruda/./node_modules/licia/isArr.js","webpack://eruda/./node_modules/licia/isArrBuffer.js","webpack://eruda/./node_modules/licia/isArrLike.js","webpack://eruda/./node_modules/licia/isBool.js","webpack://eruda/./node_modules/licia/isBrowser.js","webpack://eruda/./node_modules/licia/isBuffer.js","webpack://eruda/./node_modules/licia/isDarkMode.js","webpack://eruda/./node_modules/licia/isDate.js","webpack://eruda/./node_modules/licia/isEl.js","webpack://eruda/./node_modules/licia/isEmpty.js","webpack://eruda/./node_modules/licia/isErr.js","webpack://eruda/./node_modules/licia/isFn.js","webpack://eruda/./node_modules/licia/isHidden.js","webpack://eruda/./node_modules/licia/isInt.js","webpack://eruda/./node_modules/licia/isJson.js","webpack://eruda/./node_modules/licia/isMap.js","webpack://eruda/./node_modules/licia/isMatch.js","webpack://eruda/./node_modules/licia/isMiniProgram.js","webpack://eruda/./node_modules/licia/isMobile.js","webpack://eruda/./node_modules/licia/isNaN.js","webpack://eruda/./node_modules/licia/isNative.js","webpack://eruda/./node_modules/licia/isNil.js","webpack://eruda/./node_modules/licia/isNode.js","webpack://eruda/./node_modules/licia/isNull.js","webpack://eruda/./node_modules/licia/isNum.js","webpack://eruda/./node_modules/licia/isObj.js","webpack://eruda/./node_modules/licia/isOdd.js","webpack://eruda/./node_modules/licia/isPrimitive.js","webpack://eruda/./node_modules/licia/isPromise.js","webpack://eruda/./node_modules/licia/isRegExp.js","webpack://eruda/./node_modules/licia/isSet.js","webpack://eruda/./node_modules/licia/isSorted.js","webpack://eruda/./node_modules/licia/isStr.js","webpack://eruda/./node_modules/licia/isSymbol.js","webpack://eruda/./node_modules/licia/isUndef.js","webpack://eruda/./node_modules/licia/kebabCase.js","webpack://eruda/./node_modules/licia/keys.js","webpack://eruda/./node_modules/licia/last.js","webpack://eruda/./node_modules/licia/linkify.js","webpack://eruda/./node_modules/licia/loadJs.js","webpack://eruda/./node_modules/licia/lowerCase.js","webpack://eruda/./node_modules/licia/lpad.js","webpack://eruda/./node_modules/licia/ltrim.js","webpack://eruda/./node_modules/licia/map.js","webpack://eruda/./node_modules/licia/mapObj.js","webpack://eruda/./node_modules/licia/matcher.js","webpack://eruda/./node_modules/licia/max.js","webpack://eruda/./node_modules/licia/memStorage.js","webpack://eruda/./node_modules/licia/memoize.js","webpack://eruda/./node_modules/licia/mergeArr.js","webpack://eruda/./node_modules/licia/meta.js","webpack://eruda/./node_modules/licia/min.js","webpack://eruda/./node_modules/licia/ms.js","webpack://eruda/./node_modules/licia/naturalSort.js","webpack://eruda/./node_modules/licia/nextTick.js","webpack://eruda/./node_modules/licia/noop.js","webpack://eruda/./node_modules/licia/now.js","webpack://eruda/./node_modules/licia/objToStr.js","webpack://eruda/./node_modules/licia/once.js","webpack://eruda/./node_modules/licia/optimizeCb.js","webpack://eruda/./node_modules/licia/orientation.js","webpack://eruda/./node_modules/licia/parseHtml.js","webpack://eruda/./node_modules/licia/partial.js","webpack://eruda/./node_modules/licia/perfNow.js","webpack://eruda/./node_modules/licia/pick.js","webpack://eruda/./node_modules/licia/prefix.js","webpack://eruda/./node_modules/licia/property.js","webpack://eruda/./node_modules/licia/query.js","webpack://eruda/./node_modules/licia/raf.js","webpack://eruda/./node_modules/licia/random.js","webpack://eruda/./node_modules/licia/randomBytes.js","webpack://eruda/./node_modules/licia/ready.js","webpack://eruda/./node_modules/licia/remove.js","webpack://eruda/./node_modules/licia/repeat.js","webpack://eruda/./node_modules/licia/replaceAll.js","webpack://eruda/./node_modules/licia/restArgs.js","webpack://eruda/./node_modules/licia/reverse.js","webpack://eruda/./node_modules/licia/rgbToHsl.js","webpack://eruda/./node_modules/licia/rmCookie.js","webpack://eruda/./node_modules/licia/root.js","webpack://eruda/./node_modules/licia/rtrim.js","webpack://eruda/./node_modules/licia/safeCb.js","webpack://eruda/./node_modules/licia/safeGet.js","webpack://eruda/./node_modules/licia/safeSet.js","webpack://eruda/./node_modules/licia/safeStorage.js","webpack://eruda/./node_modules/licia/sameOrigin.js","webpack://eruda/./node_modules/licia/slice.js","webpack://eruda/./node_modules/licia/some.js","webpack://eruda/./node_modules/licia/sortKeys.js","webpack://eruda/./node_modules/licia/splitCase.js","webpack://eruda/./node_modules/licia/startWith.js","webpack://eruda/./node_modules/licia/stringify.js","webpack://eruda/./node_modules/licia/stringifyAll.js","webpack://eruda/./node_modules/licia/stripHtmlTag.js","webpack://eruda/./node_modules/licia/stripIndent.js","webpack://eruda/./node_modules/licia/throttle.js","webpack://eruda/./node_modules/licia/toArr.js","webpack://eruda/./node_modules/licia/toBool.js","webpack://eruda/./node_modules/licia/toEl.js","webpack://eruda/./node_modules/licia/toInt.js","webpack://eruda/./node_modules/licia/toNum.js","webpack://eruda/./node_modules/licia/toSrc.js","webpack://eruda/./node_modules/licia/toStr.js","webpack://eruda/./node_modules/licia/trim.js","webpack://eruda/./node_modules/licia/truncate.js","webpack://eruda/./node_modules/licia/type.js","webpack://eruda/./node_modules/licia/types.js","webpack://eruda/./node_modules/licia/ucs2.js","webpack://eruda/./node_modules/licia/uncaught.js","webpack://eruda/./node_modules/licia/unescape.js","webpack://eruda/./node_modules/licia/uniqId.js","webpack://eruda/./node_modules/licia/unique.js","webpack://eruda/./node_modules/licia/upperCase.js","webpack://eruda/./node_modules/licia/upperFirst.js","webpack://eruda/./node_modules/licia/utf8.js","webpack://eruda/./node_modules/licia/uuid.js","webpack://eruda/./node_modules/licia/values.js","webpack://eruda/./node_modules/licia/viewportScale.js","webpack://eruda/./node_modules/licia/wrap.js","webpack://eruda/./node_modules/licia/xpath.js","webpack://eruda/./node_modules/luna-dom-highlighter/cjs/dom-highlighter/elementRoles.js","webpack://eruda/./node_modules/luna-dom-highlighter/cjs/dom-highlighter/index.js","webpack://eruda/./node_modules/luna-dom-highlighter/cjs/dom-highlighter/overlay/ColorUtils.js","webpack://eruda/./node_modules/luna-dom-highlighter/cjs/dom-highlighter/overlay/common.js","webpack://eruda/./node_modules/luna-dom-highlighter/cjs/dom-highlighter/overlay/highlight_common.js","webpack://eruda/./node_modules/luna-dom-highlighter/cjs/dom-highlighter/overlay/tool_highlight.js","webpack://eruda/./node_modules/luna-dom-highlighter/cjs/share/Component.js","webpack://eruda/./node_modules/luna-dom-highlighter/cjs/share/util.js","webpack://eruda/./node_modules/luna-notification/cjs/notification/index.js","webpack://eruda/./node_modules/luna-notification/cjs/share/Component.js","webpack://eruda/./node_modules/luna-notification/cjs/share/util.js","webpack://eruda/./node_modules/path2d-polyfill/dist/index.esm.js","webpack://eruda/./node_modules/luna-dom-highlighter/luna-dom-highlighter.css","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/get.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/superPropBase.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/inherits.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://eruda/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://eruda/webpack/bootstrap","webpack://eruda/webpack/runtime/compat get default export","webpack://eruda/webpack/runtime/define property getters","webpack://eruda/webpack/runtime/global","webpack://eruda/webpack/runtime/harmony module decorator","webpack://eruda/webpack/runtime/hasOwnProperty shorthand","webpack://eruda/webpack/runtime/make namespace object","webpack://eruda/webpack/startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"eruda\"] = factory();\n\telse\n\t\troot[\"eruda\"] = factory();\n})(self, function() {\nreturn ","import map from 'licia/map';\nimport trim from 'licia/trim';\nimport root from 'licia/root';\nimport html from 'licia/html';\nimport isNum from 'licia/isNum';\nimport contain from 'licia/contain';\nimport toNum from 'licia/toNum';\nimport detectOs from 'licia/detectOs';\nimport isHidden from 'licia/isHidden';\nexport function exportCjs(module, clazz) {\n try {\n module.exports = clazz;\n module.exports.default = clazz;\n }\n catch (e) {\n }\n}\nexport function classPrefix(name) {\n const prefix = `luna-${name}-`;\n function processClass(str) {\n return map(trim(str).split(/\\s+/), (singleClass) => {\n if (contain(singleClass, prefix)) {\n return singleClass;\n }\n return singleClass.replace(/[\\w-]+/, (match) => `${prefix}${match}`);\n }).join(' ');\n }\n return function (str) {\n if (/<[^>]*>/g.test(str)) {\n try {\n const tree = html.parse(str);\n traverseTree(tree, (node) => {\n if (node.attrs && node.attrs.class) {\n node.attrs.class = processClass(node.attrs.class);\n }\n });\n return html.stringify(tree);\n }\n catch (e) {\n return processClass(str);\n }\n }\n return processClass(str);\n };\n}\nfunction traverseTree(tree, handler) {\n for (let i = 0, len = tree.length; i < len; i++) {\n const node = tree[i];\n handler(node);\n if (node.content) {\n traverseTree(node.content, handler);\n }\n }\n}\nexport const hasTouchSupport = 'ontouchstart' in root;\nconst touchEvents = {\n start: 'touchstart',\n move: 'touchmove',\n end: 'touchend',\n};\nconst mouseEvents = {\n start: 'mousedown',\n move: 'mousemove',\n end: 'mouseup',\n};\nexport function drag(name) {\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\n}\nexport function eventClient(type, e) {\n const name = type === 'x' ? 'clientX' : 'clientY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nexport function eventPage(type, e) {\n const name = type === 'x' ? 'pageX' : 'pageY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nlet scrollbarWidth;\nexport function measuredScrollbarWidth() {\n if (isNum(scrollbarWidth)) {\n return scrollbarWidth;\n }\n if (!document) {\n return 16;\n }\n const scrollDiv = document.createElement('div');\n const innerDiv = document.createElement('div');\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\n innerDiv.setAttribute('style', 'height: 200px');\n scrollDiv.appendChild(innerDiv);\n const container = document.body || document.documentElement;\n container.appendChild(scrollDiv);\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n container.removeChild(scrollDiv);\n return scrollbarWidth;\n}\nexport function hasVerticalScrollbar(el) {\n return el.scrollHeight > el.offsetHeight;\n}\nexport function executeAfterTransition(el, callback) {\n if (isHidden(el)) {\n return callback();\n }\n const handler = (e) => {\n const target = e.target;\n if (target !== el) {\n return;\n }\n el.removeEventListener('transitionend', handler);\n callback();\n };\n el.addEventListener('transitionend', handler);\n}\nexport function pxToNum(str) {\n return toNum(str.replace('px', ''));\n}\nexport function getPlatform() {\n const os = detectOs();\n if (os === 'os x') {\n return 'mac';\n }\n return os;\n}\nexport function resetCanvasSize(canvas) {\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\n}\n","import Emitter from 'licia/Emitter';\nimport $ from 'licia/$';\nimport { classPrefix, getPlatform } from './util';\nimport each from 'licia/each';\nimport extend from 'licia/extend';\nimport defaults from 'licia/defaults';\nimport remove from 'licia/remove';\nexport default class Component extends Emitter {\n constructor(container, { compName }, { theme = 'light' } = {}) {\n super();\n this.subComponents = [];\n this.compName = compName;\n this.c = classPrefix(compName);\n this.options = {};\n this.container = container;\n this.$container = $(container);\n this.$container.addClass([\n `luna-${compName}`,\n this.c(`platform-${getPlatform()}`),\n ]);\n this.on('optionChange', (name, val, oldVal) => {\n const c = this.c;\n if (name === 'theme') {\n this.$container\n .rmClass(c(`theme-${oldVal}`))\n .addClass(c(`theme-${val}`));\n each(this.subComponents, (component) => component.setOption('theme', val));\n }\n });\n this.setOption('theme', theme);\n }\n destroy() {\n this.destroySubComponents();\n const { c } = this;\n this.$container\n .rmClass(`luna-${this.compName}`)\n .rmClass(c(`platform-${getPlatform()}`))\n .rmClass(c(`theme-${this.options.theme}`));\n this.$container.html('');\n this.emit('destroy');\n this.removeAllListeners();\n }\n setOption(name, val) {\n const options = this.options;\n let newOptions = {};\n if (typeof name === 'string') {\n newOptions[name] = val;\n }\n else {\n newOptions = name;\n }\n each(newOptions, (val, name) => {\n const oldVal = options[name];\n options[name] = val;\n this.emit('optionChange', name, val, oldVal);\n });\n }\n getOption(name) {\n return this.options[name];\n }\n addSubComponent(component) {\n component.setOption('theme', this.options.theme);\n this.subComponents.push(component);\n }\n removeSubComponent(component) {\n remove(this.subComponents, (com) => com === component);\n }\n destroySubComponents() {\n each(this.subComponents, (component) => component.destroy());\n this.subComponents = [];\n }\n initOptions(options, defs = {}) {\n defaults(options, defs);\n extend(this.options, options);\n }\n find(selector) {\n return this.$container.find(this.c(selector));\n }\n}\n","import map from 'licia/map';\nimport isNum from 'licia/isNum';\nimport isStr from 'licia/isStr';\nimport { exportCjs, pxToNum } from '../share/util';\nimport Component from '../share/Component';\nexport default class BoxModel extends Component {\n constructor(container, options = {}) {\n super(container, { compName: 'box-model' });\n this.initOptions(options);\n if (this.options.element) {\n this.render();\n }\n this.bindEvent();\n }\n bindEvent() {\n this.on('optionChange', (name) => {\n switch (name) {\n case 'element':\n this.render();\n break;\n }\n });\n }\n render() {\n const { c } = this;\n const boxModel = this.getBoxModelData();\n this.$container.html([`
`,\n boxModel.position ? `
` : '',\n boxModel.position ? `
position
${boxModel.position.top}
${boxModel.position.left}
` : '',\n `
`,\n `
margin
${boxModel.margin.top}
${boxModel.margin.left}
`,\n `
`,\n `
border
${boxModel.border.top}
${boxModel.border.left}
`,\n `
`,\n `
padding
${boxModel.padding.top}
${boxModel.padding.left}
`,\n `
`,\n `${boxModel.content.width} × ${boxModel.content.height} `,\n '
',\n `
${boxModel.padding.right}
${boxModel.padding.bottom}
`,\n '
',\n `
${boxModel.border.right}
${boxModel.border.bottom}
`,\n '
',\n `
${boxModel.margin.right}
${boxModel.margin.bottom}
`,\n '
',\n boxModel.position ? `
${boxModel.position.right}
${boxModel.position.bottom}
` : '',\n boxModel.position ? '
' : '',\n '
'].join(''));\n }\n getBoxModelData() {\n const { element } = this.options;\n const computedStyle = window.getComputedStyle(element);\n function getBoxModelValue(type) {\n let keys = ['top', 'left', 'right', 'bottom'];\n if (type !== 'position') {\n keys = map(keys, (key) => `${type}-${key}`);\n }\n if (type === 'border') {\n keys = map(keys, (key) => `${key}-width`);\n }\n return {\n top: boxModelValue(computedStyle[keys[0]], type),\n left: boxModelValue(computedStyle[keys[1]], type),\n right: boxModelValue(computedStyle[keys[2]], type),\n bottom: boxModelValue(computedStyle[keys[3]], type),\n };\n }\n const boxModel = {\n margin: getBoxModelValue('margin'),\n border: getBoxModelValue('border'),\n padding: getBoxModelValue('padding'),\n content: {\n width: boxModelValue(computedStyle['width']),\n height: boxModelValue(computedStyle['height']),\n },\n };\n if (computedStyle['position'] !== 'static') {\n boxModel.position = getBoxModelValue('position');\n }\n return boxModel;\n }\n}\nfunction boxModelValue(val, type) {\n if (isNum(val))\n return val;\n if (!isStr(val))\n return '‒';\n const ret = pxToNum(val);\n if (isNaN(ret))\n return val;\n if (type === 'position')\n return ret;\n return ret === 0 ? '‒' : ret;\n}\nif (typeof module !== 'undefined') {\n exportCjs(module, BoxModel);\n}\n","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import upperFirst from 'licia/upperFirst';\nexport function getObjType(obj) {\n if (obj.constructor && obj.constructor.name)\n return obj.constructor.name;\n return upperFirst({}.toString.call(obj).replace(/(\\[object )|]/g, ''));\n}\n","import map from 'licia/map';\nimport trim from 'licia/trim';\nimport root from 'licia/root';\nimport html from 'licia/html';\nimport isNum from 'licia/isNum';\nimport contain from 'licia/contain';\nimport toNum from 'licia/toNum';\nimport detectOs from 'licia/detectOs';\nimport isHidden from 'licia/isHidden';\nexport function exportCjs(module, clazz) {\n try {\n module.exports = clazz;\n module.exports.default = clazz;\n }\n catch (e) {\n }\n}\nexport function classPrefix(name) {\n const prefix = `luna-${name}-`;\n function processClass(str) {\n return map(trim(str).split(/\\s+/), (singleClass) => {\n if (contain(singleClass, prefix)) {\n return singleClass;\n }\n return singleClass.replace(/[\\w-]+/, (match) => `${prefix}${match}`);\n }).join(' ');\n }\n return function (str) {\n if (/<[^>]*>/g.test(str)) {\n try {\n const tree = html.parse(str);\n traverseTree(tree, (node) => {\n if (node.attrs && node.attrs.class) {\n node.attrs.class = processClass(node.attrs.class);\n }\n });\n return html.stringify(tree);\n }\n catch (e) {\n return processClass(str);\n }\n }\n return processClass(str);\n };\n}\nfunction traverseTree(tree, handler) {\n for (let i = 0, len = tree.length; i < len; i++) {\n const node = tree[i];\n handler(node);\n if (node.content) {\n traverseTree(node.content, handler);\n }\n }\n}\nexport const hasTouchSupport = 'ontouchstart' in root;\nconst touchEvents = {\n start: 'touchstart',\n move: 'touchmove',\n end: 'touchend',\n};\nconst mouseEvents = {\n start: 'mousedown',\n move: 'mousemove',\n end: 'mouseup',\n};\nexport function drag(name) {\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\n}\nexport function eventClient(type, e) {\n const name = type === 'x' ? 'clientX' : 'clientY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nexport function eventPage(type, e) {\n const name = type === 'x' ? 'pageX' : 'pageY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nlet scrollbarWidth;\nexport function measuredScrollbarWidth() {\n if (isNum(scrollbarWidth)) {\n return scrollbarWidth;\n }\n if (!document) {\n return 16;\n }\n const scrollDiv = document.createElement('div');\n const innerDiv = document.createElement('div');\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\n innerDiv.setAttribute('style', 'height: 200px');\n scrollDiv.appendChild(innerDiv);\n const container = document.body || document.documentElement;\n container.appendChild(scrollDiv);\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n container.removeChild(scrollDiv);\n return scrollbarWidth;\n}\nexport function hasVerticalScrollbar(el) {\n return el.scrollHeight > el.offsetHeight;\n}\nexport function executeAfterTransition(el, callback) {\n if (isHidden(el)) {\n return callback();\n }\n const handler = (e) => {\n const target = e.target;\n if (target !== el) {\n return;\n }\n el.removeEventListener('transitionend', handler);\n callback();\n };\n el.addEventListener('transitionend', handler);\n}\nexport function pxToNum(str) {\n return toNum(str.replace('px', ''));\n}\nexport function getPlatform() {\n const os = detectOs();\n if (os === 'os x') {\n return 'mac';\n }\n return os;\n}\nexport function resetCanvasSize(canvas) {\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\n}\n","import escape from 'licia/escape';\nimport toStr from 'licia/toStr';\nimport contain from 'licia/contain';\nimport startWith from 'licia/startWith';\nimport escapeJsStr from 'licia/escapeJsStr';\nimport each from 'licia/each';\nimport endWith from 'licia/endWith';\nimport isEmpty from 'licia/isEmpty';\nimport truncate from 'licia/truncate';\nimport { getObjType } from './util';\nimport { classPrefix } from '../share/util';\nconst c = classPrefix('console');\nexport default function getPreview(obj, { topObj, level = 0, getterVal = false, unenumerable = true, } = {}) {\n let json = '';\n let type = '';\n const keyNum = 5;\n const parts = [];\n let names = [];\n let objEllipsis = '';\n const circular = false;\n let i;\n topObj = topObj || obj;\n const passOpts = { getterVal, unenumerable, level: level + 1 };\n const doStringify = level === 0;\n const keyWrapper = ``;\n const numWrapper = ``;\n const nullWrapper = ``;\n const strWrapper = ``;\n const boolWrapper = ``;\n const specialWrapper = ``;\n const strEscape = (str) => escape(str)\n .replace(/\\\\n/g, '↵')\n .replace(/\\\\f|\\\\r|\\\\t/g, '')\n .replace(/\\\\/g, '');\n const wrapperEnd = ' ';\n const wrapKey = (key) => keyWrapper + strEscape(key) + wrapperEnd;\n const wrapNum = (num) => numWrapper + num + wrapperEnd;\n const wrapRegExp = (str) => strWrapper + str + wrapperEnd;\n const wrapBool = (bool) => boolWrapper + bool + wrapperEnd;\n const wrapNull = (str) => nullWrapper + str + wrapperEnd;\n function wrapStr(str) {\n str = toStr(str);\n if (contain(SPECIAL_VAL, str) || startWith(str, 'Array[')) {\n return specialWrapper + strEscape(str) + wrapperEnd;\n }\n if (str.length > 100) {\n str = truncate(str, 100, {\n separator: ' ',\n ellipsis: '…',\n });\n }\n return strWrapper + strEscape(`\"${str}\"`) + wrapperEnd;\n }\n function objIteratee(name) {\n if (i > keyNum) {\n objEllipsis = ', …';\n return;\n }\n const key = wrapKey(escapeJsonStr(name));\n if (!getterVal) {\n const descriptor = Object.getOwnPropertyDescriptor(obj, name);\n if (descriptor && descriptor.get) {\n parts.push(`${key}: ${wrapStr('(...)')}`);\n i++;\n return;\n }\n }\n parts.push(`${key}: ${getPreview(topObj[name], passOpts)}`);\n i++;\n }\n try {\n type = {}.toString.call(obj);\n }\n catch (e) {\n type = '[object Object]';\n }\n const isStr = type == '[object String]';\n const isArr = type == '[object Array]';\n const isObj = type == '[object Object]';\n const isNum = type == '[object Number]';\n const isRegExp = type == '[object RegExp]';\n const isSymbol = type == '[object Symbol]';\n const isFn = type == '[object Function]';\n const isBool = type == '[object Boolean]';\n if (circular) {\n json = wrapStr('[circular]');\n }\n else if (isStr) {\n json = wrapStr(escapeJsonStr(obj));\n }\n else if (isRegExp) {\n json = wrapRegExp(escapeJsonStr(obj.toString()));\n }\n else if (isFn) {\n json = wrapStr('ƒ');\n }\n else if (isArr) {\n if (doStringify) {\n json = '[';\n let len = obj.length;\n let arrEllipsis = '';\n if (len > 100) {\n len = 100;\n arrEllipsis = ', …';\n }\n for (let i = 0; i < len; i++) {\n parts.push(`${getPreview(obj[i], passOpts)}`);\n }\n json += parts.join(', ') + arrEllipsis + ']';\n }\n else {\n json = `Array(${obj.length})`;\n }\n }\n else if (isObj) {\n if (canBeProto(obj)) {\n obj = Object.getPrototypeOf(obj);\n }\n names = unenumerable ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n if (doStringify) {\n i = 1;\n json = '{';\n each(names, objIteratee);\n json += parts.join(', ') + objEllipsis + '}';\n }\n else {\n json = getObjType(obj);\n if (json === 'Object')\n json = '{…}';\n }\n }\n else if (isNum) {\n json = obj + '';\n if (endWith(json, 'Infinity') || json === 'NaN') {\n json = `\"${json}\"`;\n }\n else {\n json = wrapNum(json);\n }\n }\n else if (isBool) {\n json = wrapBool(obj ? 'true' : 'false');\n }\n else if (obj === null) {\n json = wrapNull('null');\n }\n else if (isSymbol) {\n json = wrapStr('Symbol');\n }\n else if (obj === undefined) {\n json = wrapStr('undefined');\n }\n else {\n try {\n if (canBeProto(obj)) {\n obj = Object.getPrototypeOf(obj);\n }\n if (doStringify) {\n i = 1;\n json = '{';\n names = unenumerable\n ? Object.getOwnPropertyNames(obj)\n : Object.keys(obj);\n each(names, objIteratee);\n json += parts.join(', ') + objEllipsis + '}';\n }\n else {\n json = getObjType(obj);\n if (json === 'Object')\n json = '{…}';\n }\n }\n catch (e) {\n json = wrapStr(obj);\n }\n }\n return json;\n}\nconst SPECIAL_VAL = ['(...)', 'undefined', 'Symbol', 'Object', 'ƒ'];\nfunction canBeProto(obj) {\n const emptyObj = isEmpty(Object.getOwnPropertyNames(obj));\n const proto = Object.getPrototypeOf(obj);\n return emptyObj && proto && proto !== Object.prototype;\n}\nfunction escapeJsonStr(str) {\n return escapeJsStr(str).replace(/\\\\'/g, \"'\").replace(/\\t/g, '\\\\t');\n}\n","import getPreview from './getPreview';\nimport LunaObjectViewer, { Static as LunaStaticObjectViewer, } from 'luna-object-viewer';\nimport LunaDataGrid from 'luna-data-grid';\nimport LunaDomViewer from 'luna-dom-viewer';\nimport ResizeSensor from 'licia/ResizeSensor';\nimport isObj from 'licia/isObj';\nimport isStr from 'licia/isStr';\nimport isErr from 'licia/isErr';\nimport isPrimitive from 'licia/isPrimitive';\nimport defaults from 'licia/defaults';\nimport isEl from 'licia/isEl';\nimport toStr from 'licia/toStr';\nimport toNum from 'licia/toNum';\nimport toInt from 'licia/toInt';\nimport concat from 'licia/concat';\nimport escape from 'licia/escape';\nimport isNull from 'licia/isNull';\nimport isUndef from 'licia/isUndef';\nimport isFn from 'licia/isFn';\nimport toArr from 'licia/toArr';\nimport isArr from 'licia/isArr';\nimport unique from 'licia/unique';\nimport contain from 'licia/contain';\nimport isEmpty from 'licia/isEmpty';\nimport clone from 'licia/clone';\nimport each from 'licia/each';\nimport map from 'licia/map';\nimport trim from 'licia/trim';\nimport lowerCase from 'licia/lowerCase';\nimport isHidden from 'licia/isHidden';\nimport keys from 'licia/keys';\nimport $ from 'licia/$';\nimport h from 'licia/h';\nimport Emitter from 'licia/Emitter';\nimport debounce from 'licia/debounce';\nimport safeStringify from 'licia/stringify';\nimport copy from 'licia/copy';\nimport stringifyAll from 'licia/stringifyAll';\nimport nextTick from 'licia/nextTick';\nimport linkify from 'licia/linkify';\nimport highlight from 'licia/highlight';\nimport truncate from 'licia/truncate';\nimport some from 'licia/some';\nimport isNum from 'licia/isNum';\nimport { getObjType } from './util';\nimport stripIndent from 'licia/stripIndent';\nimport toEl from 'licia/toEl';\nimport uniqId from 'licia/uniqId';\nimport isBool from 'licia/isBool';\nimport isSymbol from 'licia/isSymbol';\nimport isRegExp from 'licia/isRegExp';\nconst regJsUrl = /https?:\\/\\/([0-9.\\-A-Za-z]+)(?::(\\d+))?\\/[A-Z.a-z0-9/]*\\.js/g;\nconst emptyHighlightStyle = {\n comment: '',\n string: '',\n number: '',\n keyword: '',\n operator: '',\n};\nexport default class Log extends Emitter {\n constructor(console, { type = 'log', args = [], id, group, targetGroup, header, ignoreFilter = false, accessGetter, unenumerable, lazyEvaluation, }) {\n super();\n this.container = h('div');\n this.count = 1;\n this.width = 0;\n this.height = 0;\n this.isHidden = false;\n this.columns = [];\n this.elements = {};\n this.objects = {};\n this.console = console;\n this.type = type;\n this.group = group;\n this.targetGroup = targetGroup;\n this.args = args;\n this.id = id;\n this.header = header;\n this.ignoreFilter = ignoreFilter;\n this.collapsed = false;\n this.container.log = this;\n this.height = 0;\n this.width = 0;\n this.$container = $(this.container);\n this.accessGetter = accessGetter;\n this.unenumerable = unenumerable;\n this.lazyEvaluation = lazyEvaluation;\n let level = 'info';\n switch (type) {\n case 'debug':\n level = 'verbose';\n break;\n case 'error':\n level = 'error';\n break;\n case 'warn':\n level = 'warning';\n break;\n }\n this.level = level;\n this.resizeSensor = new ResizeSensor(this.container);\n this.onResize = debounce(() => {\n if (isHidden(this.container)) {\n this.isHidden = true;\n }\n else {\n if (!this.isHidden) {\n this.updateSize(false);\n }\n this.isHidden = false;\n }\n }, 16);\n this.formatMsg();\n if (this.group) {\n this.checkGroup();\n }\n this.bindEvent();\n }\n checkGroup() {\n let { group } = this;\n let collapsed = false;\n while (group) {\n if (group.collapsed) {\n collapsed = true;\n break;\n }\n group = group.parent;\n }\n if (collapsed !== this.collapsed) {\n this.collapsed = collapsed;\n return true;\n }\n return false;\n }\n updateIcon(icon) {\n const { c } = this.console;\n const $icon = this.$container.find(c('.icon-container')).find(c('.icon'));\n $icon.rmAttr('class').addClass([c('icon'), c(`icon-${icon}`)]);\n return this;\n }\n addCount() {\n this.count++;\n const { $container, count } = this;\n const { c } = this.console;\n const $countContainer = $container.find(c('.count-container'));\n const $icon = $container.find(c('.icon-container'));\n const $count = $countContainer.find(c('.count'));\n if (count === 2) {\n $countContainer.rmClass(c('hidden'));\n }\n $count.text(toStr(count));\n $icon.addClass(c('hidden'));\n return this;\n }\n groupEnd() {\n const { $container } = this;\n const { c } = this.console;\n const $lastNesting = $container\n .find(`.${c('nesting-level')}:not(.${c('group-closed')})`)\n .last();\n $lastNesting.addClass(c('group-closed'));\n return this;\n }\n updateTime(time) {\n const $timeContainer = this.$container.find(this.console.c('.time-container'));\n if (this.header) {\n $timeContainer.find('span').eq(0).text(time);\n this.header.time = time;\n }\n return this;\n }\n isAttached() {\n return !!this.container.parentNode;\n }\n isSimple() {\n return !some(this.args, (arg) => isObj(arg));\n }\n updateSize(silent = true) {\n const { width, height } = this.container.getBoundingClientRect();\n const newHeight = height - 1;\n if (this.height !== newHeight) {\n this.height = newHeight;\n if (!silent) {\n this.emit('updateHeight');\n }\n }\n if (this.width !== width) {\n this.width = width;\n }\n }\n html() {\n return this.container.outerHTML;\n }\n text() {\n return this.content.textContent || '';\n }\n select() {\n this.$container.addClass(this.console.c('selected'));\n }\n deselect() {\n this.$container.rmClass(this.console.c('selected'));\n }\n copy() {\n const { args } = this;\n let str = '';\n each(args, (arg, idx) => {\n if (idx !== 0) {\n str += ' ';\n }\n if (isObj(arg)) {\n str += safeStringify(arg);\n }\n else {\n str += toStr(arg);\n }\n });\n copy(str);\n }\n bindEvent() {\n const { c } = this.console;\n const self = this;\n this.resizeSensor.addListener(this.onResize);\n this.$container\n .on('click', c('.dom-viewer'), (e) => e.stopPropagation())\n .on('click', c('.preview'), function (e) {\n e.stopPropagation();\n const $this = $(this);\n const $icon = $this.find(c('.preview-icon-container')).find(c('.icon'));\n let icon = 'caret-down';\n if ($icon.hasClass(c('icon-caret-down'))) {\n icon = 'caret-right';\n }\n $icon.rmAttr('class').addClass([c('icon'), c(`icon-${icon}`)]);\n self.renderObjectViewer(this);\n })\n .on('click', () => this.click());\n }\n renderEl() {\n const { elements } = this;\n const { c } = this.console;\n const self = this;\n this.$container.find(c('.dom-viewer')).each(function () {\n const $this = $(this);\n const id = $this.data('id');\n new LunaDomViewer(this, {\n node: elements[id],\n theme: self.console.getOption('theme'),\n });\n });\n }\n renderObjectViewer(preview) {\n const { console, unenumerable, accessGetter, lazyEvaluation } = this;\n const { c } = console;\n const $container = $(preview);\n const id = $container.data('id');\n if (!id) {\n return;\n }\n const obj = this.objects[id];\n const $json = $container.find(c('.json'));\n if ($json.hasClass(c('hidden'))) {\n if ($json.data('init') !== 'true') {\n if (!lazyEvaluation) {\n const staticViewer = new LunaStaticObjectViewer($json.get(0));\n staticViewer.setOption('theme', console.getOption('theme'));\n staticViewer.set(obj);\n }\n else {\n const objViewer = new LunaObjectViewer($json.get(0), {\n unenumerable,\n accessGetter,\n });\n objViewer.setOption('theme', console.getOption('theme'));\n objViewer.set(obj);\n }\n $json.data('init', 'true');\n }\n $json.rmClass(c('hidden'));\n }\n else {\n $json.addClass(c('hidden'));\n }\n }\n renderTable(args) {\n const Value = '__LunaConsoleValue';\n const { columns, $container, console } = this;\n const { c } = console;\n const $dataGrid = $container.find(c('.data-grid'));\n const table = args[0];\n const dataGrid = new LunaDataGrid($dataGrid.get(0), {\n columns: concat([\n {\n id: '(index)',\n title: '(index)',\n sortable: true,\n },\n ], map(columns, (column) => {\n return {\n id: column,\n title: column === Value ? 'Value' : column,\n sortable: true,\n };\n })),\n theme: console.getOption('theme'),\n });\n each(table, (obj, idx) => {\n const data = {\n '(index)': toStr(idx),\n };\n columns.forEach((column) => {\n if (isObj(obj)) {\n data[column] =\n column === Value ? '' : this.formatTableVal(obj[column]);\n }\n else if (isPrimitive(obj)) {\n data[column] = column === Value ? this.formatTableVal(obj) : '';\n }\n });\n dataGrid.append(data);\n });\n }\n extractObj(obj, options = {}, cb) {\n const { accessGetter, unenumerable } = this;\n defaults(options, {\n accessGetter,\n unenumerable,\n symbol: unenumerable,\n timeout: 1000,\n });\n stringify(obj, options, (result) => cb(JSON.parse(result)));\n }\n click() {\n const { type, $container, console } = this;\n const { c } = console;\n switch (type) {\n case 'log':\n case 'warn':\n case 'info':\n case 'debug':\n case 'output':\n case 'table':\n case 'dir':\n break;\n case 'group':\n case 'groupCollapsed':\n console.toggleGroup(this);\n break;\n case 'error':\n $container.find(c('.stack')).toggleClass(c('hidden'));\n break;\n }\n }\n formatMsg() {\n let { args } = this;\n const { type, id, header, group } = this;\n const { c } = this.console;\n args = clone(args);\n let msg = '';\n let icon;\n let err;\n if (type === 'group' || type === 'groupCollapsed') {\n if (args.length === 0) {\n args = ['console.group'];\n }\n }\n switch (type) {\n case 'log':\n case 'info':\n case 'debug':\n msg = this.formatCommon(args);\n break;\n case 'dir':\n msg = this.formatDir(args);\n break;\n case 'warn':\n icon = 'warn';\n msg = this.formatCommon(args);\n break;\n case 'error':\n if (isStr(args[0]) && args.length !== 1)\n args = this.substituteStr(args);\n err = args[0];\n icon = 'error';\n err = isErr(err) ? err : new Error(this.formatCommon(args));\n msg = this.formatErr(err);\n break;\n case 'table':\n msg = this.formatTable(args);\n break;\n case 'html':\n msg = args[0];\n break;\n case 'input':\n msg = this.formatJs(args[0]);\n icon = 'input';\n break;\n case 'output':\n msg = this.formatCommon(args);\n icon = 'output';\n break;\n case 'groupCollapsed':\n msg = this.formatCommon(args);\n icon = 'caret-right';\n break;\n case 'group':\n msg = this.formatCommon(args);\n icon = 'caret-down';\n break;\n }\n if (contain(['log', 'debug', 'warn'], type) && this.isSimple()) {\n msg = linkify(msg, (url) => {\n return `${url} `;\n });\n }\n msg = this.render({ msg, type, icon, id, header, group });\n this.$container.addClass(`${c('log-container')}`).html(msg);\n switch (type) {\n case 'table':\n if (!isEmpty(this.columns)) {\n this.renderTable(args);\n }\n break;\n }\n if (!isEmpty(this.elements)) {\n this.renderEl();\n }\n this.$content = this.$container.find(c('.log-content'));\n this.content = this.$content.get(0);\n }\n render(data) {\n const { c } = this.console;\n let html = '';\n let indent = '';\n if (data.group) {\n const { indentLevel } = data.group;\n for (let i = 0; i < indentLevel; i++) {\n indent += `
`;\n }\n }\n if (data.header) {\n html += stripIndent `\n `;\n }\n let icon = '';\n if (data.icon) {\n icon = `
`;\n }\n html += `\n \n ${indent}\n ${icon}\n
\n
\n
`;\n return html;\n }\n formatTable(args) {\n const Value = '__LunaConsoleValue';\n const table = args[0];\n let filter = args[1];\n let columns = [];\n if (isStr(filter))\n filter = toArr(filter);\n if (!isArr(filter))\n filter = null;\n if (!isObj(table))\n return this.formatCommon(args);\n each(table, (val) => {\n if (isPrimitive(val)) {\n columns.push(Value);\n }\n else if (isObj(val)) {\n columns = columns.concat(keys(val));\n }\n });\n columns = unique(columns);\n columns.sort();\n if (filter)\n columns = columns.filter((val) => contain(filter, val));\n if (columns.length > 20)\n columns = columns.slice(0, 20);\n if (isEmpty(columns))\n return this.formatCommon(args);\n this.columns = columns;\n return (this.console.c('
') +\n this.formatPreview(table));\n }\n formatErr(err) {\n let lines = err.stack ? err.stack.split('\\n') : [];\n const msg = `${err.message || lines[0]} `;\n lines = lines.map((val) => escape(val));\n const stack = `${lines\n .slice(1)\n .join(' ')}
`;\n return (msg +\n stack.replace(regJsUrl, (match) => `${match} `));\n }\n formatCommon(args) {\n const { c } = this.console;\n const needStrSubstitution = isStr(args[0]) && args.length !== 1;\n if (needStrSubstitution)\n args = this.substituteStr(args);\n for (let i = 0, len = args.length; i < len; i++) {\n let val = args[i];\n if (isEl(val)) {\n args[i] = this.formatEl(val);\n }\n else if (isFn(val)) {\n args[i] = this.formatFn(val);\n }\n else if (isRegExp(val)) {\n args[i] = `${escape(toStr(val))} `;\n }\n else if (isObj(val)) {\n args[i] = this.formatPreview(val);\n }\n else if (isUndef(val)) {\n args[i] = `undefined `;\n }\n else if (isNull(val)) {\n args[i] = `null `;\n }\n else if (isNum(val)) {\n args[i] = `${toStr(val)} `;\n }\n else if (typeof val === 'bigint') {\n args[i] = `${toStr(val)}n `;\n }\n else if (isBool(val)) {\n args[i] = `${toStr(val)} `;\n }\n else if (isSymbol(val)) {\n args[i] = `${escape(toStr(val))} `;\n }\n else {\n val = toStr(val);\n if (i !== 0 || !needStrSubstitution) {\n val = escape(val);\n }\n if (val.length > 5000) {\n val = truncate(val, 5000, {\n separator: ' ',\n ellipsis: '…',\n });\n }\n args[i] = val;\n }\n }\n return args.join(' ');\n }\n formatDir(args) {\n if (isObj(args[0])) {\n return this.formatPreview(args[0]);\n }\n return this.formatCommon(args);\n }\n formatTableVal(val) {\n const { c } = this.console;\n if (isObj(val))\n return '{…}';\n if (isPrimitive(val))\n return toEl(`${getPreview(val)}
`);\n return toStr(val);\n }\n formatPreview(obj) {\n const { c } = this.console;\n const id = uniqId();\n if (this.lazyEvaluation) {\n this.objects[id] = obj;\n }\n else {\n this.extractObj(obj, {}, (result) => {\n this.objects[id] = result;\n });\n }\n const noPreview = contain(['dir', 'table'], this.type);\n let type = getObjType(obj);\n if (type === 'Array' && obj.length > 1) {\n type = `(${obj.length})`;\n if (noPreview) {\n type = `Array${type}`;\n }\n }\n else if (type === 'RegExp') {\n type = toStr(obj);\n }\n else if (isEl(obj)) {\n type = this.formatElName(obj);\n }\n return (`` +\n `
` +\n `
` +\n `
` +\n `${escape(type)} ` +\n `${noPreview\n ? ''\n : getPreview(obj, {\n getterVal: this.accessGetter,\n unenumerable: false,\n })} ` +\n ' ' +\n `
`);\n }\n substituteStr(args) {\n const str = escape(args[0]);\n let isInCss = false;\n let newStr = '';\n args.shift();\n for (let i = 0, len = str.length; i < len; i++) {\n const c = str[i];\n if (c === '%' && args.length !== 0) {\n i++;\n const arg = args.shift();\n switch (str[i]) {\n case 'i':\n case 'd':\n newStr += toInt(arg);\n break;\n case 'f':\n newStr += toNum(arg);\n break;\n case 's':\n newStr += toStr(arg);\n break;\n case 'O':\n if (isObj(arg)) {\n newStr += this.formatPreview(arg);\n }\n break;\n case 'o':\n if (isEl(arg)) {\n newStr += this.formatEl(arg);\n }\n else if (isObj(arg)) {\n newStr += this.formatPreview(arg);\n }\n break;\n case 'c':\n if (str.length <= i + 1) {\n break;\n }\n if (isInCss)\n newStr += ' ';\n isInCss = true;\n newStr += ``;\n break;\n default:\n i--;\n args.unshift(arg);\n newStr += c;\n }\n }\n else {\n newStr += c;\n }\n }\n if (isInCss)\n newStr += ' ';\n args.unshift(newStr);\n return args;\n }\n formatJs(val) {\n return `${this.console.c(highlight(val, 'js', emptyHighlightStyle))} `;\n }\n formatFn(val) {\n return `${this.formatJs(val.toString())} `;\n }\n formatElName(val) {\n const { id, className } = val;\n let ret = val.tagName.toLowerCase();\n if (id !== '')\n ret += `#${id}`;\n if (isStr(className)) {\n let classes = '';\n each(className.split(/\\s+/g), (val) => {\n if (val.trim() === '')\n return;\n classes += `.${val}`;\n });\n ret += classes;\n }\n return ret;\n }\n formatEl(val) {\n const id = uniqId();\n this.elements[id] = val;\n return this.console.c(`
`);\n }\n}\nfunction correctStyle(val) {\n val = lowerCase(val);\n const rules = val.split(';');\n const style = {};\n each(rules, (rule) => {\n if (!contain(rule, ':'))\n return;\n const [name, val] = rule.split(':');\n style[trim(name)] = trim(val);\n });\n style['display'] = 'inline-block';\n style['max-width'] = '100%';\n delete style.width;\n delete style.height;\n let ret = '';\n each(style, (val, key) => {\n ret += `${key}:${val};`;\n });\n return ret;\n}\nfunction stringify(obj, options, cb) {\n const result = stringifyAll(obj, options);\n nextTick(() => cb(result));\n}\n","import Emitter from 'licia/Emitter';\nimport $ from 'licia/$';\nimport { classPrefix, getPlatform } from './util';\nimport each from 'licia/each';\nimport extend from 'licia/extend';\nimport defaults from 'licia/defaults';\nimport remove from 'licia/remove';\nexport default class Component extends Emitter {\n constructor(container, { compName }, { theme = 'light' } = {}) {\n super();\n this.subComponents = [];\n this.compName = compName;\n this.c = classPrefix(compName);\n this.options = {};\n this.container = container;\n this.$container = $(container);\n this.$container.addClass([\n `luna-${compName}`,\n this.c(`platform-${getPlatform()}`),\n ]);\n this.on('optionChange', (name, val, oldVal) => {\n const c = this.c;\n if (name === 'theme') {\n this.$container\n .rmClass(c(`theme-${oldVal}`))\n .addClass(c(`theme-${val}`));\n each(this.subComponents, (component) => component.setOption('theme', val));\n }\n });\n this.setOption('theme', theme);\n }\n destroy() {\n this.destroySubComponents();\n const { c } = this;\n this.$container\n .rmClass(`luna-${this.compName}`)\n .rmClass(c(`platform-${getPlatform()}`))\n .rmClass(c(`theme-${this.options.theme}`));\n this.$container.html('');\n this.emit('destroy');\n this.removeAllListeners();\n }\n setOption(name, val) {\n const options = this.options;\n let newOptions = {};\n if (typeof name === 'string') {\n newOptions[name] = val;\n }\n else {\n newOptions = name;\n }\n each(newOptions, (val, name) => {\n const oldVal = options[name];\n options[name] = val;\n this.emit('optionChange', name, val, oldVal);\n });\n }\n getOption(name) {\n return this.options[name];\n }\n addSubComponent(component) {\n component.setOption('theme', this.options.theme);\n this.subComponents.push(component);\n }\n removeSubComponent(component) {\n remove(this.subComponents, (com) => com === component);\n }\n destroySubComponents() {\n each(this.subComponents, (component) => component.destroy());\n this.subComponents = [];\n }\n initOptions(options, defs = {}) {\n defaults(options, defs);\n extend(this.options, options);\n }\n find(selector) {\n return this.$container.find(this.c(selector));\n }\n}\n","import Log from './Log';\nimport isUndef from 'licia/isUndef';\nimport perfNow from 'licia/perfNow';\nimport now from 'licia/now';\nimport isStr from 'licia/isStr';\nimport extend from 'licia/extend';\nimport uniqId from 'licia/uniqId';\nimport isRegExp from 'licia/isRegExp';\nimport isFn from 'licia/isFn';\nimport Stack from 'licia/Stack';\nimport isEmpty from 'licia/isEmpty';\nimport contain from 'licia/contain';\nimport copy from 'licia/copy';\nimport each from 'licia/each';\nimport toArr from 'licia/toArr';\nimport keys from 'licia/keys';\nimport last from 'licia/last';\nimport throttle from 'licia/throttle';\nimport xpath from 'licia/xpath';\nimport lowerCase from 'licia/lowerCase';\nimport dateFormat from 'licia/dateFormat';\nimport isHidden from 'licia/isHidden';\nimport stripIndent from 'licia/stripIndent';\nimport ResizeSensor from 'licia/ResizeSensor';\nimport isNull from 'licia/isNull';\nimport Component from '../share/Component';\nimport raf from 'licia/raf';\nimport trim from 'licia/trim';\nimport { exportCjs } from '../share/util';\nconst u = navigator.userAgent;\nconst isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;\nlet id = 0;\nexport default class Console extends Component {\n constructor(container, options = {}) {\n super(container, { compName: 'console' }, options);\n this.spaceHeight = 0;\n this.topSpaceHeight = 0;\n this.bottomSpaceHeight = 0;\n this.lastScrollTop = 0;\n this.lastTimestamp = 0;\n this.speedToleranceFactor = 100;\n this.maxSpeedTolerance = 2000;\n this.minSpeedTolerance = 100;\n this.logs = [];\n this.displayLogs = [];\n this.timer = {};\n this.counter = {};\n this.asyncList = [];\n this.asyncTimer = null;\n this.isAtBottom = true;\n this.groupStack = new Stack();\n this.selectedLog = null;\n this.onScroll = () => {\n const { scrollHeight, offsetHeight, scrollTop } = this\n .container;\n if (scrollTop <= 0)\n return;\n if (offsetHeight + scrollTop > scrollHeight)\n return;\n let isAtBottom = false;\n if (scrollHeight === offsetHeight) {\n isAtBottom = true;\n }\n else if (scrollTop === scrollHeight - offsetHeight) {\n isAtBottom = true;\n }\n this.isAtBottom = isAtBottom;\n const lastScrollTop = this.lastScrollTop;\n const lastTimestamp = this.lastTimestamp;\n const timestamp = now();\n const duration = timestamp - lastTimestamp;\n const distance = scrollTop - lastScrollTop;\n const speed = Math.abs(distance / duration);\n let speedTolerance = speed * this.speedToleranceFactor;\n if (duration > 1000) {\n speedTolerance = 1000;\n }\n if (speedTolerance > this.maxSpeedTolerance) {\n speedTolerance = this.maxSpeedTolerance;\n }\n if (speedTolerance < this.minSpeedTolerance) {\n speedTolerance = this.minSpeedTolerance;\n }\n this.lastScrollTop = scrollTop;\n this.lastTimestamp = timestamp;\n let topTolerance = 0;\n let bottomTolerance = 0;\n if (lastScrollTop < scrollTop) {\n topTolerance = this.minSpeedTolerance;\n bottomTolerance = speedTolerance;\n }\n else {\n topTolerance = speedTolerance;\n bottomTolerance = this.minSpeedTolerance;\n }\n if (this.topSpaceHeight < scrollTop - topTolerance &&\n this.topSpaceHeight + this.el.offsetHeight >\n scrollTop + offsetHeight + bottomTolerance) {\n return;\n }\n this.renderViewport({\n topTolerance: topTolerance * 2,\n bottomTolerance: bottomTolerance * 2,\n });\n };\n this.initTpl();\n this.initOptions(options, {\n maxNum: 0,\n asyncRender: true,\n showHeader: false,\n filter: '',\n level: ['verbose', 'info', 'warning', 'error'],\n accessGetter: false,\n unenumerable: true,\n lazyEvaluation: true,\n });\n this.$el = this.find('.logs');\n this.el = this.$el.get(0);\n this.$fakeEl = this.find('.fake-logs');\n this.fakeEl = this.$fakeEl.get(0);\n this.$space = this.find('.logs-space');\n this.space = this.$space.get(0);\n if (isAndroid) {\n this.speedToleranceFactor = 800;\n this.maxSpeedTolerance = 3000;\n this.minSpeedTolerance = 800;\n }\n this.resizeSensor = new ResizeSensor(container);\n this.renderViewport = throttle((options) => {\n this._renderViewport(options);\n }, 16);\n this.global = {\n copy(value) {\n if (!isStr(value))\n value = JSON.stringify(value, null, 2);\n copy(value);\n },\n $(selectors) {\n return document.querySelector(selectors);\n },\n $$(selectors) {\n return toArr(document.querySelectorAll(selectors));\n },\n $x(path) {\n return xpath(path);\n },\n clear: () => {\n this.clear();\n },\n dir: (value) => {\n this.dir(value);\n },\n table: (data, columns) => {\n this.table(data, columns);\n },\n keys,\n };\n this.bindEvent();\n }\n setGlobal(name, val) {\n this.global[name] = val;\n }\n destroy() {\n this.$container.off('scroll', this.onScroll);\n this.resizeSensor.destroy();\n super.destroy();\n }\n count(label = 'default') {\n const { counter } = this;\n !isUndef(counter[label]) ? counter[label]++ : (counter[label] = 1);\n this.info(`${label}: ${counter[label]}`);\n }\n countReset(label = 'default') {\n this.counter[label] = 0;\n }\n assert(...args) {\n if (isEmpty(args))\n return;\n const exp = args.shift();\n if (!exp) {\n if (args.length === 0)\n args.unshift('console.assert');\n args.unshift('Assertion failed: ');\n this.insert('error', args);\n }\n }\n log(...args) {\n if (isEmpty(args))\n return;\n this.insert('log', args);\n }\n debug(...args) {\n if (isEmpty(args))\n return;\n this.insert('debug', args);\n }\n dir(obj) {\n if (isUndef(obj))\n return;\n this.insert('dir', [obj]);\n }\n table(...args) {\n if (isEmpty(args))\n return;\n this.insert('table', args);\n }\n time(name = 'default') {\n if (this.timer[name]) {\n return this.insert('warn', [`Timer '${name}' already exists`]);\n }\n this.timer[name] = perfNow();\n }\n timeLog(name = 'default') {\n const startTime = this.timer[name];\n if (!startTime) {\n return this.insert('warn', [`Timer '${name}' does not exist`]);\n }\n this.info(`${name}: ${perfNow() - startTime}ms`);\n }\n timeEnd(name = 'default') {\n this.timeLog(name);\n delete this.timer[name];\n }\n clear(silent = false) {\n this.logs = [];\n this.displayLogs = [];\n this.selectLog(null);\n this.lastLog = undefined;\n this.counter = {};\n this.timer = {};\n this.groupStack = new Stack();\n this.asyncList = [];\n if (this.asyncTimer) {\n clearTimeout(this.asyncTimer);\n this.asyncTimer = null;\n }\n if (silent) {\n this.render();\n }\n else {\n this.insert('log', [\n '%cConsole was cleared',\n 'color:#808080;font-style:italic;',\n ]);\n }\n }\n info(...args) {\n if (isEmpty(args))\n return;\n this.insert('info', args);\n }\n error(...args) {\n if (isEmpty(args))\n return;\n this.insert('error', args);\n }\n warn(...args) {\n if (isEmpty(args))\n return;\n this.insert('warn', args);\n }\n group(...args) {\n this.insert({\n type: 'group',\n args,\n ignoreFilter: true,\n });\n }\n groupCollapsed(...args) {\n this.insert({\n type: 'groupCollapsed',\n args,\n ignoreFilter: true,\n });\n }\n groupEnd() {\n this.insert('groupEnd');\n }\n evaluate(code) {\n this.insert({\n type: 'input',\n args: [code],\n ignoreFilter: true,\n });\n try {\n this.output(this.evalJs(code));\n }\n catch (e) {\n this.insert({\n type: 'error',\n ignoreFilter: true,\n args: [e],\n });\n }\n }\n html(...args) {\n this.insert('html', args);\n }\n toggleGroup(log) {\n const { targetGroup } = log;\n targetGroup.collapsed\n ? this.openGroup(log)\n : this.collapseGroup(log);\n }\n output(val) {\n this.insert({\n type: 'output',\n args: [val],\n ignoreFilter: true,\n });\n }\n render() {\n const { logs, selectedLog } = this;\n this.$el.html('');\n this.isAtBottom = true;\n this.updateBottomSpace(0);\n this.updateTopSpace(0);\n this.displayLogs = [];\n for (let i = 0, len = logs.length; i < len; i++) {\n this.attachLog(logs[i]);\n }\n if (selectedLog) {\n if (!contain(this.displayLogs, selectedLog)) {\n this.selectLog(null);\n }\n }\n }\n insert(type, args) {\n const { showHeader, asyncRender } = this.options;\n let header;\n if (showHeader) {\n header = {\n time: getCurTime(),\n from: getFrom(),\n };\n }\n if (asyncRender) {\n return this.insertAsync(type, args, header);\n }\n this.insertSync(type, args, header);\n }\n insertAsync(type, args, header) {\n this.asyncList.push([type, args, header]);\n this.handleAsyncList();\n }\n insertSync(type, args, header) {\n const { logs, groupStack } = this;\n const { maxNum, accessGetter, unenumerable, lazyEvaluation } = this.options;\n let options;\n if (isStr(type)) {\n options = {\n type: type,\n args: args,\n header,\n };\n }\n else {\n options = type;\n }\n if (options.type === 'groupEnd') {\n const lastLog = this.lastLog;\n lastLog.groupEnd();\n this.groupStack.pop();\n return;\n }\n if (groupStack.size > 0) {\n options.group = groupStack.peek();\n }\n extend(options, {\n id: ++id,\n accessGetter,\n unenumerable,\n lazyEvaluation,\n });\n if (options.type === 'group' || options.type === 'groupCollapsed') {\n const group = {\n id: uniqId('group'),\n collapsed: false,\n parent: groupStack.peek(),\n indentLevel: groupStack.size + 1,\n };\n if (options.type === 'groupCollapsed')\n group.collapsed = true;\n options.targetGroup = group;\n groupStack.push(group);\n }\n let log = new Log(this, options);\n log.on('updateHeight', () => {\n this.isAtBottom = false;\n this.renderViewport();\n });\n const lastLog = this.lastLog;\n if (lastLog &&\n !contain(['html', 'group', 'groupCollapsed'], log.type) &&\n lastLog.type === log.type &&\n log.isSimple() &&\n lastLog.text() === log.text()) {\n lastLog.addCount();\n if (log.header)\n lastLog.updateTime(log.header.time);\n log = lastLog;\n this.detachLog(lastLog);\n }\n else {\n logs.push(log);\n this.lastLog = log;\n }\n if (maxNum !== 0 && logs.length > maxNum) {\n const firstLog = logs[0];\n this.detachLog(firstLog);\n logs.shift();\n }\n this.attachLog(log);\n this.emit('insert', log);\n }\n updateTopSpace(height) {\n this.topSpaceHeight = height;\n this.el.style.top = height + 'px';\n }\n updateBottomSpace(height) {\n this.bottomSpaceHeight = height;\n }\n updateSpace(height) {\n if (this.spaceHeight === height)\n return;\n this.spaceHeight = height;\n this.space.style.height = height + 'px';\n }\n detachLog(log) {\n const { displayLogs } = this;\n const idx = displayLogs.indexOf(log);\n if (idx > -1) {\n displayLogs.splice(idx, 1);\n this.renderViewport();\n }\n }\n attachLog(log) {\n if (!this.filterLog(log) || log.collapsed)\n return;\n const { displayLogs } = this;\n if (displayLogs.length === 0) {\n displayLogs.push(log);\n this.renderViewport();\n return;\n }\n const lastDisplayLog = last(displayLogs);\n if (log.id > lastDisplayLog.id) {\n displayLogs.push(log);\n this.renderViewport();\n return;\n }\n let startIdx = 0;\n let endIdx = displayLogs.length - 1;\n let middleLog;\n let middleIdx = 0;\n while (startIdx <= endIdx) {\n middleIdx = startIdx + Math.floor((endIdx - startIdx) / 2);\n middleLog = displayLogs[middleIdx];\n if (middleLog.id === log.id) {\n return;\n }\n if (middleLog.id < log.id) {\n startIdx = middleIdx + 1;\n }\n else {\n endIdx = middleIdx - 1;\n }\n }\n if (middleLog.id < log.id) {\n displayLogs.splice(middleIdx + 1, 0, log);\n }\n else {\n displayLogs.splice(middleIdx, 0, log);\n }\n this.renderViewport();\n }\n handleAsyncList(timeout = 20) {\n const asyncList = this.asyncList;\n if (this.asyncTimer)\n return;\n this.asyncTimer = setTimeout(() => {\n this.asyncTimer = null;\n let done = false;\n const len = asyncList.length;\n let timeout, num;\n if (len < 1000) {\n num = 200;\n timeout = 400;\n }\n else if (len < 5000) {\n num = 500;\n timeout = 800;\n }\n else if (len < 10000) {\n num = 800;\n timeout = 1000;\n }\n else if (len < 25000) {\n num = 1000;\n timeout = 1200;\n }\n else if (len < 50000) {\n num = 1500;\n timeout = 1500;\n }\n else {\n num = 2000;\n timeout = 2500;\n }\n if (num > len) {\n num = len;\n done = true;\n }\n for (let i = 0; i < num; i++) {\n const [type, args, header] = asyncList.shift();\n this.insertSync(type, args, header);\n }\n if (!done) {\n raf(() => this.handleAsyncList(timeout));\n }\n }, timeout);\n }\n injectGlobal() {\n each(this.global, (val, name) => {\n if (window[name])\n return;\n window[name] = val;\n });\n }\n clearGlobal() {\n each(this.global, (val, name) => {\n if (window[name] && window[name] === val) {\n delete window[name];\n }\n });\n }\n evalJs(jsInput) {\n let ret;\n this.injectGlobal();\n try {\n ret = eval.call(window, `(${jsInput})`);\n }\n catch (e) {\n ret = eval.call(window, jsInput);\n }\n this.setGlobal('$_', ret);\n this.clearGlobal();\n return ret;\n }\n filterLog(log) {\n const { level } = this.options;\n let { filter } = this.options;\n if (log.ignoreFilter) {\n return true;\n }\n if (!contain(level, log.level)) {\n return false;\n }\n if (filter) {\n if (isFn(filter)) {\n return filter(log);\n }\n else if (isRegExp(filter)) {\n return filter.test(lowerCase(log.text()));\n }\n else if (isStr(filter)) {\n filter = trim(filter);\n if (filter) {\n return contain(lowerCase(log.text()), lowerCase(filter));\n }\n }\n }\n return true;\n }\n collapseGroup(log) {\n const { targetGroup } = log;\n targetGroup.collapsed = true;\n log.updateIcon('caret-right');\n this.updateGroup(log);\n }\n openGroup(log) {\n const { targetGroup } = log;\n targetGroup.collapsed = false;\n log.updateIcon('caret-down');\n this.updateGroup(log);\n }\n updateGroup(log) {\n const { targetGroup } = log;\n const { logs } = this;\n const len = logs.length;\n let i = logs.indexOf(log) + 1;\n while (i < len) {\n const log = logs[i];\n if (!log.checkGroup() && log.group === targetGroup) {\n break;\n }\n log.collapsed ? this.detachLog(log) : this.attachLog(log);\n i++;\n }\n }\n selectLog(log) {\n if (this.selectedLog) {\n this.selectedLog.deselect();\n this.selectedLog = null;\n }\n if (!isNull(log)) {\n this.selectedLog = log;\n this.selectedLog?.select();\n this.emit('select', log);\n }\n else {\n this.emit('deselect');\n }\n }\n bindEvent() {\n const { $el, c } = this;\n this.resizeSensor.addListener(this.renderViewport);\n const self = this;\n $el.on('click', c('.log-container'), function () {\n self.selectLog(this.log);\n });\n this.on('optionChange', (name, val) => {\n const { logs } = this;\n switch (name) {\n case 'maxNum':\n if (val > 0 && logs.length > val) {\n this.logs = logs.slice(logs.length - val);\n this.render();\n }\n break;\n case 'filter':\n this.render();\n break;\n case 'level':\n this.options.level = toArr(val);\n this.render();\n break;\n }\n });\n this.$container.on('scroll', this.onScroll);\n }\n _renderViewport({ topTolerance = 500, bottomTolerance = 500 } = {}) {\n const { el, container, space } = this;\n if (isHidden(container))\n return;\n const { scrollTop, offsetHeight } = container;\n const containerWidth = space.getBoundingClientRect().width;\n const top = scrollTop - topTolerance;\n const bottom = scrollTop + offsetHeight + bottomTolerance;\n const { displayLogs } = this;\n let topSpaceHeight = 0;\n let bottomSpaceHeight = 0;\n let currentHeight = 0;\n const len = displayLogs.length;\n const { fakeEl } = this;\n const fakeFrag = document.createDocumentFragment();\n const logs = [];\n for (let i = 0; i < len; i++) {\n const log = displayLogs[i];\n const { width, height } = log;\n if (height === 0 || width !== containerWidth) {\n fakeFrag.appendChild(log.container);\n logs.push(log);\n }\n }\n if (logs.length > 0) {\n fakeEl.appendChild(fakeFrag);\n for (let i = 0, len = logs.length; i < len; i++) {\n logs[i].updateSize();\n }\n fakeEl.textContent = '';\n }\n const frag = document.createDocumentFragment();\n for (let i = 0; i < len; i++) {\n const log = displayLogs[i];\n const { container, height } = log;\n if (currentHeight > bottom) {\n bottomSpaceHeight += height;\n }\n else if (currentHeight + height > top) {\n frag.appendChild(container);\n }\n else if (currentHeight < top) {\n topSpaceHeight += height;\n }\n currentHeight += height;\n }\n this.updateSpace(currentHeight);\n this.updateTopSpace(topSpaceHeight);\n this.updateBottomSpace(bottomSpaceHeight);\n while (el.firstChild) {\n if (el.lastChild) {\n el.removeChild(el.lastChild);\n }\n }\n el.appendChild(frag);\n const { scrollHeight } = container;\n if (this.isAtBottom && scrollTop <= scrollHeight - offsetHeight) {\n container.scrollTop = 10000000;\n }\n }\n initTpl() {\n this.$container.html(this.c(stripIndent `\n \n `));\n }\n}\nconst getCurTime = () => dateFormat('HH:MM:ss ');\nfunction getFrom() {\n const e = new Error();\n let ret = '';\n const lines = e.stack ? e.stack.split('\\n') : '';\n for (let i = 0, len = lines.length; i < len; i++) {\n ret = lines[i];\n if (ret.indexOf('winConsole') > -1 && i < len - 1) {\n ret = lines[i + 1];\n break;\n }\n }\n return ret;\n}\nif (typeof module !== 'undefined') {\n exportCjs(module, Console);\n}\n","import map from 'licia/map';\nimport trim from 'licia/trim';\nimport root from 'licia/root';\nimport html from 'licia/html';\nimport isNum from 'licia/isNum';\nimport contain from 'licia/contain';\nimport toNum from 'licia/toNum';\nimport detectOs from 'licia/detectOs';\nimport isHidden from 'licia/isHidden';\nexport function exportCjs(module, clazz) {\n try {\n module.exports = clazz;\n module.exports.default = clazz;\n }\n catch (e) {\n }\n}\nexport function classPrefix(name) {\n const prefix = `luna-${name}-`;\n function processClass(str) {\n return map(trim(str).split(/\\s+/), (singleClass) => {\n if (contain(singleClass, prefix)) {\n return singleClass;\n }\n return singleClass.replace(/[\\w-]+/, (match) => `${prefix}${match}`);\n }).join(' ');\n }\n return function (str) {\n if (/<[^>]*>/g.test(str)) {\n try {\n const tree = html.parse(str);\n traverseTree(tree, (node) => {\n if (node.attrs && node.attrs.class) {\n node.attrs.class = processClass(node.attrs.class);\n }\n });\n return html.stringify(tree);\n }\n catch (e) {\n return processClass(str);\n }\n }\n return processClass(str);\n };\n}\nfunction traverseTree(tree, handler) {\n for (let i = 0, len = tree.length; i < len; i++) {\n const node = tree[i];\n handler(node);\n if (node.content) {\n traverseTree(node.content, handler);\n }\n }\n}\nexport const hasTouchSupport = 'ontouchstart' in root;\nconst touchEvents = {\n start: 'touchstart',\n move: 'touchmove',\n end: 'touchend',\n};\nconst mouseEvents = {\n start: 'mousedown',\n move: 'mousemove',\n end: 'mouseup',\n};\nexport function drag(name) {\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\n}\nexport function eventClient(type, e) {\n const name = type === 'x' ? 'clientX' : 'clientY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nexport function eventPage(type, e) {\n const name = type === 'x' ? 'pageX' : 'pageY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nlet scrollbarWidth;\nexport function measuredScrollbarWidth() {\n if (isNum(scrollbarWidth)) {\n return scrollbarWidth;\n }\n if (!document) {\n return 16;\n }\n const scrollDiv = document.createElement('div');\n const innerDiv = document.createElement('div');\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\n innerDiv.setAttribute('style', 'height: 200px');\n scrollDiv.appendChild(innerDiv);\n const container = document.body || document.documentElement;\n container.appendChild(scrollDiv);\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n container.removeChild(scrollDiv);\n return scrollbarWidth;\n}\nexport function hasVerticalScrollbar(el) {\n return el.scrollHeight > el.offsetHeight;\n}\nexport function executeAfterTransition(el, callback) {\n if (isHidden(el)) {\n return callback();\n }\n const handler = (e) => {\n const target = e.target;\n if (target !== el) {\n return;\n }\n el.removeEventListener('transitionend', handler);\n callback();\n };\n el.addEventListener('transitionend', handler);\n}\nexport function pxToNum(str) {\n return toNum(str.replace('px', ''));\n}\nexport function getPlatform() {\n const os = detectOs();\n if (os === 'os x') {\n return 'mac';\n }\n return os;\n}\nexport function resetCanvasSize(canvas) {\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\n}\n","import Emitter from 'licia/Emitter';\nimport $ from 'licia/$';\nimport { classPrefix, getPlatform } from './util';\nimport each from 'licia/each';\nimport extend from 'licia/extend';\nimport defaults from 'licia/defaults';\nimport remove from 'licia/remove';\nexport default class Component extends Emitter {\n constructor(container, { compName }, { theme = 'light' } = {}) {\n super();\n this.subComponents = [];\n this.compName = compName;\n this.c = classPrefix(compName);\n this.options = {};\n this.container = container;\n this.$container = $(container);\n this.$container.addClass([\n `luna-${compName}`,\n this.c(`platform-${getPlatform()}`),\n ]);\n this.on('optionChange', (name, val, oldVal) => {\n const c = this.c;\n if (name === 'theme') {\n this.$container\n .rmClass(c(`theme-${oldVal}`))\n .addClass(c(`theme-${val}`));\n each(this.subComponents, (component) => component.setOption('theme', val));\n }\n });\n this.setOption('theme', theme);\n }\n destroy() {\n this.destroySubComponents();\n const { c } = this;\n this.$container\n .rmClass(`luna-${this.compName}`)\n .rmClass(c(`platform-${getPlatform()}`))\n .rmClass(c(`theme-${this.options.theme}`));\n this.$container.html('');\n this.emit('destroy');\n this.removeAllListeners();\n }\n setOption(name, val) {\n const options = this.options;\n let newOptions = {};\n if (typeof name === 'string') {\n newOptions[name] = val;\n }\n else {\n newOptions = name;\n }\n each(newOptions, (val, name) => {\n const oldVal = options[name];\n options[name] = val;\n this.emit('optionChange', name, val, oldVal);\n });\n }\n getOption(name) {\n return this.options[name];\n }\n addSubComponent(component) {\n component.setOption('theme', this.options.theme);\n this.subComponents.push(component);\n }\n removeSubComponent(component) {\n remove(this.subComponents, (com) => com === component);\n }\n destroySubComponents() {\n each(this.subComponents, (component) => component.destroy());\n this.subComponents = [];\n }\n initOptions(options, defs = {}) {\n defaults(options, defs);\n extend(this.options, options);\n }\n find(selector) {\n return this.$container.find(this.c(selector));\n }\n}\n","import $ from 'licia/$';\nimport stripIndent from 'licia/stripIndent';\nimport Component from '../share/Component';\nimport each from 'licia/each';\nimport escape from 'licia/escape';\nimport h from 'licia/h';\nimport toStr from 'licia/toStr';\nimport isEl from 'licia/isEl';\nimport isUndef from 'licia/isUndef';\nimport ResizeSensor from 'licia/ResizeSensor';\nimport throttle from 'licia/throttle';\nimport defaults from 'licia/defaults';\nimport startWith from 'licia/startWith';\nimport isNull from 'licia/isNull';\nimport isFn from 'licia/isFn';\nimport isRegExp from 'licia/isRegExp';\nimport isStr from 'licia/isStr';\nimport trim from 'licia/trim';\nimport contain from 'licia/contain';\nimport toNum from 'licia/toNum';\nimport lowerCase from 'licia/lowerCase';\nimport clamp from 'licia/clamp';\nimport max from 'licia/max';\nimport min from 'licia/min';\nimport { exportCjs, drag, eventClient, pxToNum } from '../share/util';\nconst $document = $(document);\nconst MIN_COL_WIDTH = 24;\nexport default class DataGrid extends Component {\n constructor(container, options) {\n super(container, { compName: 'data-grid' }, options);\n this.resizeIdx = 0;\n this.resizeStartX = 0;\n this.resizeStartLeft = 0;\n this.resizeDeltaX = 0;\n this.nodes = [];\n this.colWidthsInitialized = false;\n this.colMap = {};\n this.selectedNode = null;\n this.isAscending = true;\n this.colWidths = [];\n this.onResizeColMove = (e) => {\n const { resizeIdx, $resizers, colWidths, $colgroup } = this;\n e = e.origEvent;\n let deltaX = eventClient('x', e) - this.resizeStartX;\n const leftColWidth = colWidths[resizeIdx];\n const rightColWidth = colWidths[resizeIdx + 1];\n const lowerBound = min(-leftColWidth + MIN_COL_WIDTH, 0);\n const upperBound = max(rightColWidth - MIN_COL_WIDTH, 0);\n deltaX = clamp(deltaX, lowerBound, upperBound);\n $colgroup.each(function () {\n const $cols = $(this).find('col');\n $cols.eq(resizeIdx).css('width', leftColWidth + deltaX + 'px');\n $cols.eq(resizeIdx + 1).css('width', rightColWidth - deltaX + 'px');\n });\n this.resizeDeltaX = deltaX;\n let newLeft = this.resizeStartLeft + deltaX;\n $resizers.eq(resizeIdx).css('left', `${newLeft}px`);\n };\n this.onResizeColEnd = (e) => {\n this.onResizeColMove(e);\n const { c, colWidths, resizeIdx, resizeDeltaX } = this;\n const { columns } = this.options;\n const leftCol = columns[resizeIdx];\n const rightCol = columns[resizeIdx + 1];\n const leftColWidth = colWidths[resizeIdx] + resizeDeltaX;\n const rightColWidth = colWidths[resizeIdx + 1] - resizeDeltaX;\n const totalWidth = leftColWidth + rightColWidth;\n const totalWeight = leftCol.weight + rightCol.weight;\n const leftWeight = totalWeight * (leftColWidth / totalWidth);\n const rightWeight = totalWeight - leftWeight;\n leftCol.weight = leftWeight;\n rightCol.weight = rightWeight;\n this.applyColWeights();\n $(document.body).rmClass(c('resizing'));\n $document.off(drag('move'), this.onResizeColMove);\n $document.off(drag('end'), this.onResizeColEnd);\n };\n this.$container.attr('tabindex', '0');\n this.resizeSensor = new ResizeSensor(container);\n this.onResize = throttle(() => {\n this.updateHeight();\n this.updateWeights();\n }, 16);\n if (options.height) {\n options.maxHeight = options.height;\n options.minHeight = options.height;\n }\n this.initOptions(options, {\n minHeight: 41,\n maxHeight: Infinity,\n filter: '',\n });\n const { columns, minHeight, maxHeight } = this.options;\n each(columns, (column) => {\n defaults(column, {\n sortable: false,\n });\n this.colMap[column.id] = column;\n });\n if (maxHeight < minHeight) {\n this.setOption('maxHeight', minHeight);\n }\n ;\n ('width');\n this.initTpl();\n this.$headerRow = this.find('.header').find('tr');\n this.$fillerRow = this.find('.filler-row');\n this.fillerRow = this.$fillerRow.get(0);\n this.$tableBody = this.find('.data').find('tbody');\n this.tableBody = this.$tableBody.get(0);\n this.$colgroup = this.$container.find('colgroup');\n this.$dataContainer = this.find('.data-container');\n this.renderHeader();\n this.renderResizers();\n this.updateWeights();\n this.updateHeight();\n this.bindEvent();\n }\n destroy() {\n super.destroy();\n this.resizeSensor.destroy();\n this.$container.rmAttr('tabindex');\n }\n remove(node) {\n const { nodes } = this;\n const pos = nodes.indexOf(node);\n if (pos > -1) {\n node.detach();\n nodes.splice(pos, 1);\n if (node === this.selectedNode) {\n this.selectNode(nodes[pos] || nodes[pos - 1] || null);\n }\n this.updateHeight();\n }\n }\n append(data, options) {\n const node = new DataGridNode(this, data, options);\n this.nodes.push(node);\n if (this.sortId) {\n this.sortNodes(this.sortId, this.isAscending);\n }\n else {\n if (this.filterNode(node)) {\n this.tableBody.insertBefore(node.container, this.fillerRow);\n this.updateHeight();\n }\n }\n return node;\n }\n clear() {\n each(this.nodes, (node) => node.detach());\n this.nodes = [];\n this.selectNode(null);\n this.updateHeight();\n }\n updateHeight() {\n const { $fillerRow, c, $container } = this;\n let { maxHeight, minHeight } = this.options;\n this.$dataContainer.css({ height: 'auto' });\n const headerHeight = this.$headerRow.offset().height;\n const borderTopWidth = pxToNum($container.css('border-top-width'));\n const borderBottomWidth = pxToNum($container.css('border-bottom-width'));\n const minusHeight = headerHeight + borderTopWidth + borderBottomWidth;\n minHeight -= minusHeight;\n if (minHeight < 0) {\n minHeight = 0;\n }\n maxHeight -= minusHeight;\n const $tr = this.$dataContainer.find(c('.node'));\n const len = $tr.length;\n let height = 0;\n if (len > 0) {\n const rowHeight = $tr.offset().height;\n height = rowHeight * len;\n }\n if (height > minHeight) {\n $fillerRow.hide();\n }\n else {\n $fillerRow.show();\n }\n if (height < minHeight) {\n height = minHeight;\n }\n else if (height >= maxHeight) {\n height = maxHeight;\n }\n this.$dataContainer.css({ height });\n }\n selectNode(node) {\n if (!isNull(node) && !node?.selectable) {\n return;\n }\n if (this.selectedNode) {\n this.selectedNode.deselect();\n this.selectedNode = null;\n }\n if (!isNull(node)) {\n this.selectedNode = node;\n this.selectedNode?.select();\n this.emit('select', node);\n }\n else {\n this.emit('deselect');\n }\n }\n onResizeColStart(e) {\n const { c, resizeIdx, $resizers } = this;\n e.stopPropagation();\n e.preventDefault();\n e = e.origEvent;\n this.resizeStartX = eventClient('x', e);\n this.resizeStartLeft = pxToNum($resizers.eq(resizeIdx).css('left'));\n $(document.body).addClass(c('resizing'));\n $document.on(drag('move'), this.onResizeColMove);\n $document.on(drag('end'), this.onResizeColEnd);\n }\n bindEvent() {\n const { c, $headerRow, $tableBody, $resizers } = this;\n this.resizeSensor.addListener(this.onResize);\n const self = this;\n $tableBody.on('click', c('.node'), function () {\n self.selectNode(this.dataGridNode);\n });\n $headerRow.on('click', c('.sortable'), function (e) {\n e.stopPropagation();\n const $this = $(this);\n const id = $this.data('id');\n const order = $this.data('order');\n const isAscending = order !== 'descending';\n $this.data('order', isAscending ? 'descending' : 'ascending');\n self.sortNodes(id, isAscending);\n $headerRow.find('th').each(function () {\n const $this = $(this);\n if ($this.data('id') !== id) {\n $this.rmAttr('data-order');\n }\n });\n });\n $resizers.on(drag('start'), function (e) {\n const $this = $(this);\n self.resizeIdx = toNum($this.data('idx'));\n self.onResizeColStart(e);\n });\n this.on('optionChange', (name) => {\n switch (name) {\n case 'minHeight':\n case 'maxHeight':\n this.updateHeight();\n break;\n case 'filter':\n this.renderData();\n break;\n }\n });\n }\n sortNodes(id, isAscending) {\n const column = this.colMap[id];\n const comparator = column.comparator || naturalOrderComparator;\n this.nodes.sort(function (a, b) {\n let aVal = a.data[id];\n let bVal = b.data[id];\n if (isEl(aVal)) {\n aVal = aVal.innerText;\n }\n if (isEl(bVal)) {\n bVal = bVal.innerText;\n }\n return isAscending ? comparator(aVal, bVal) : comparator(bVal, aVal);\n });\n this.renderData();\n this.sortId = id;\n this.isAscending = isAscending;\n }\n updateWeights() {\n const { container, $headerRow } = this;\n const { columns } = this.options;\n const tableWidth = container.offsetWidth;\n if (!this.colWidthsInitialized && tableWidth) {\n for (let i = 0, len = columns.length; i < len; i++) {\n const column = columns[i];\n if (!column.weight) {\n const thWidth = $headerRow.find('th').get(i)\n .offsetWidth;\n column.weight = (100 * thWidth) / tableWidth;\n }\n }\n this.colWidthsInitialized = true;\n }\n this.applyColWeights();\n }\n applyColWeights() {\n const { container, $colgroup } = this;\n const { columns } = this.options;\n const tableWidth = container.offsetWidth;\n if (tableWidth <= 0) {\n return;\n }\n let sumOfWeights = 0;\n const len = columns.length;\n for (let i = 0; i < len; i++) {\n sumOfWeights += columns[i].weight;\n }\n const minColumnWidth = 14;\n let html = '';\n let sum = 0;\n let lastOffset = 0;\n this.colWidths = [];\n for (let i = 0; i < len; i++) {\n const column = columns[i];\n sum += column.weight;\n const offset = ((sum * tableWidth) / sumOfWeights) | 0;\n const width = Math.max(offset - lastOffset, minColumnWidth);\n lastOffset = offset;\n html += ` `;\n this.colWidths[i] = width;\n }\n $colgroup.html(html);\n this.positionResizers();\n }\n positionResizers() {\n const { colWidths } = this;\n const resizerLeft = [];\n const len = colWidths.length - 1;\n for (let i = 0; i < len; i++) {\n resizerLeft[i] = (resizerLeft[i - 1] || 0) + colWidths[i];\n }\n for (let i = 0; i < len; i++) {\n this.$resizers.eq(i).css('left', resizerLeft[i] + 'px');\n }\n }\n renderData() {\n const { tableBody, nodes, fillerRow } = this;\n each(nodes, (node) => node.detach());\n each(nodes, (node) => {\n if (this.filterNode(node)) {\n tableBody.insertBefore(node.container, fillerRow);\n }\n });\n if (this.selectedNode && !this.filterNode(this.selectedNode)) {\n this.selectNode(null);\n }\n this.updateHeight();\n }\n filterNode(node) {\n let { filter } = this.options;\n if (filter) {\n if (isFn(filter)) {\n return filter(node);\n }\n else if (isRegExp(filter)) {\n return filter.test(node.text());\n }\n else if (isStr(filter)) {\n filter = trim(filter);\n if (filter) {\n return contain(lowerCase(node.text()), lowerCase(filter));\n }\n }\n }\n return true;\n }\n renderHeader() {\n const { c } = this;\n let html = '';\n let fillerRowHtml = '';\n each(this.options.columns, (column) => {\n const title = escape(column.title);\n if (column.sortable) {\n html += c(` ${title} `);\n }\n else {\n html += `${title} `;\n }\n fillerRowHtml += ' ';\n });\n this.$headerRow.html(html);\n this.$fillerRow.html(fillerRowHtml);\n }\n renderResizers() {\n let resizers = '';\n const len = this.options.columns.length - 1;\n for (let i = 0; i < len; i++) {\n resizers += this.c(`
`);\n }\n this.$container.append(resizers);\n this.$resizers = this.find('.resizer');\n }\n initTpl() {\n this.$container.html(this.c(stripIndent `\n \n \n `));\n }\n}\nexport class DataGridNode {\n constructor(dataGrid, data, options = {\n selectable: false,\n }) {\n this.container = h('tr');\n this.selectable = false;\n ;\n this.container.dataGridNode = this;\n this.$container = $(this.container);\n this.$container.addClass(dataGrid.c('node'));\n this.dataGrid = dataGrid;\n this.data = data;\n if (options.selectable) {\n this.selectable = options.selectable;\n }\n this.render();\n }\n text() {\n return this.$container.text();\n }\n detach() {\n this.$container.remove();\n }\n select() {\n this.$container.addClass(this.dataGrid.c('selected'));\n }\n deselect() {\n this.$container.rmClass(this.dataGrid.c('selected'));\n }\n render() {\n const { data, $container, container } = this;\n const columns = this.dataGrid.getOption('columns');\n $container.html('');\n each(columns, (column) => {\n const td = h('td');\n const val = data[column.id];\n if (!isUndef(val)) {\n if (isEl(val)) {\n td.appendChild(val);\n }\n else {\n td.innerText = toStr(val);\n }\n }\n container.appendChild(td);\n });\n }\n}\nfunction naturalOrderComparator(a, b) {\n a = toStr(a);\n b = toStr(b);\n if (startWith(a, '_') && !startWith(b, '_')) {\n return 1;\n }\n if (startWith(b, '_') && !startWith(a, '_')) {\n return -1;\n }\n const chunk = /^\\d+|^\\D+/;\n let chunka, chunkb, anum, bnum;\n while (true) {\n if (a) {\n if (!b) {\n return 1;\n }\n }\n else {\n if (b) {\n return -1;\n }\n return 0;\n }\n chunka = a.match(chunk)[0];\n chunkb = b.match(chunk)[0];\n anum = !isNaN(chunka);\n bnum = !isNaN(chunkb);\n if (anum && !bnum) {\n return -1;\n }\n if (bnum && !anum) {\n return 1;\n }\n if (anum && bnum) {\n const diff = chunka - chunkb;\n if (diff) {\n return diff;\n }\n if (chunka.length !== chunkb.length) {\n if (!+chunka && !+chunkb) {\n return chunka.length - chunkb.length;\n }\n return chunkb.length - chunka.length;\n }\n }\n else if (chunka !== chunkb) {\n return chunka < chunkb ? -1 : 1;\n }\n a = a.substring(chunka.length);\n b = b.substring(chunkb.length);\n }\n}\nif (typeof module !== 'undefined') {\n exportCjs(module, DataGrid);\n}\n","import map from 'licia/map';\nimport trim from 'licia/trim';\nimport root from 'licia/root';\nimport html from 'licia/html';\nimport isNum from 'licia/isNum';\nimport contain from 'licia/contain';\nimport toNum from 'licia/toNum';\nimport detectOs from 'licia/detectOs';\nimport isHidden from 'licia/isHidden';\nexport function exportCjs(module, clazz) {\n try {\n module.exports = clazz;\n module.exports.default = clazz;\n }\n catch (e) {\n }\n}\nexport function classPrefix(name) {\n const prefix = `luna-${name}-`;\n function processClass(str) {\n return map(trim(str).split(/\\s+/), (singleClass) => {\n if (contain(singleClass, prefix)) {\n return singleClass;\n }\n return singleClass.replace(/[\\w-]+/, (match) => `${prefix}${match}`);\n }).join(' ');\n }\n return function (str) {\n if (/<[^>]*>/g.test(str)) {\n try {\n const tree = html.parse(str);\n traverseTree(tree, (node) => {\n if (node.attrs && node.attrs.class) {\n node.attrs.class = processClass(node.attrs.class);\n }\n });\n return html.stringify(tree);\n }\n catch (e) {\n return processClass(str);\n }\n }\n return processClass(str);\n };\n}\nfunction traverseTree(tree, handler) {\n for (let i = 0, len = tree.length; i < len; i++) {\n const node = tree[i];\n handler(node);\n if (node.content) {\n traverseTree(node.content, handler);\n }\n }\n}\nexport const hasTouchSupport = 'ontouchstart' in root;\nconst touchEvents = {\n start: 'touchstart',\n move: 'touchmove',\n end: 'touchend',\n};\nconst mouseEvents = {\n start: 'mousedown',\n move: 'mousemove',\n end: 'mouseup',\n};\nexport function drag(name) {\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\n}\nexport function eventClient(type, e) {\n const name = type === 'x' ? 'clientX' : 'clientY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nexport function eventPage(type, e) {\n const name = type === 'x' ? 'pageX' : 'pageY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nlet scrollbarWidth;\nexport function measuredScrollbarWidth() {\n if (isNum(scrollbarWidth)) {\n return scrollbarWidth;\n }\n if (!document) {\n return 16;\n }\n const scrollDiv = document.createElement('div');\n const innerDiv = document.createElement('div');\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\n innerDiv.setAttribute('style', 'height: 200px');\n scrollDiv.appendChild(innerDiv);\n const container = document.body || document.documentElement;\n container.appendChild(scrollDiv);\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n container.removeChild(scrollDiv);\n return scrollbarWidth;\n}\nexport function hasVerticalScrollbar(el) {\n return el.scrollHeight > el.offsetHeight;\n}\nexport function executeAfterTransition(el, callback) {\n if (isHidden(el)) {\n return callback();\n }\n const handler = (e) => {\n const target = e.target;\n if (target !== el) {\n return;\n }\n el.removeEventListener('transitionend', handler);\n callback();\n };\n el.addEventListener('transitionend', handler);\n}\nexport function pxToNum(str) {\n return toNum(str.replace('px', ''));\n}\nexport function getPlatform() {\n const os = detectOs();\n if (os === 'os x') {\n return 'mac';\n }\n return os;\n}\nexport function resetCanvasSize(canvas) {\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\n}\n","import Emitter from 'licia/Emitter';\nimport $ from 'licia/$';\nimport { classPrefix, getPlatform } from './util';\nimport each from 'licia/each';\nimport extend from 'licia/extend';\nimport defaults from 'licia/defaults';\nimport remove from 'licia/remove';\nexport default class Component extends Emitter {\n constructor(container, { compName }, { theme = 'light' } = {}) {\n super();\n this.subComponents = [];\n this.compName = compName;\n this.c = classPrefix(compName);\n this.options = {};\n this.container = container;\n this.$container = $(container);\n this.$container.addClass([\n `luna-${compName}`,\n this.c(`platform-${getPlatform()}`),\n ]);\n this.on('optionChange', (name, val, oldVal) => {\n const c = this.c;\n if (name === 'theme') {\n this.$container\n .rmClass(c(`theme-${oldVal}`))\n .addClass(c(`theme-${val}`));\n each(this.subComponents, (component) => component.setOption('theme', val));\n }\n });\n this.setOption('theme', theme);\n }\n destroy() {\n this.destroySubComponents();\n const { c } = this;\n this.$container\n .rmClass(`luna-${this.compName}`)\n .rmClass(c(`platform-${getPlatform()}`))\n .rmClass(c(`theme-${this.options.theme}`));\n this.$container.html('');\n this.emit('destroy');\n this.removeAllListeners();\n }\n setOption(name, val) {\n const options = this.options;\n let newOptions = {};\n if (typeof name === 'string') {\n newOptions[name] = val;\n }\n else {\n newOptions = name;\n }\n each(newOptions, (val, name) => {\n const oldVal = options[name];\n options[name] = val;\n this.emit('optionChange', name, val, oldVal);\n });\n }\n getOption(name) {\n return this.options[name];\n }\n addSubComponent(component) {\n component.setOption('theme', this.options.theme);\n this.subComponents.push(component);\n }\n removeSubComponent(component) {\n remove(this.subComponents, (com) => com === component);\n }\n destroySubComponents() {\n each(this.subComponents, (component) => component.destroy());\n this.subComponents = [];\n }\n initOptions(options, defs = {}) {\n defaults(options, defs);\n extend(this.options, options);\n }\n find(selector) {\n return this.$container.find(this.c(selector));\n }\n}\n","import Component from '../share/Component';\nimport each from 'licia/each';\nimport $ from 'licia/$';\nimport h from 'licia/h';\nimport map from 'licia/map';\nimport filter from 'licia/filter';\nimport stripIndent from 'licia/stripIndent';\nimport toArr from 'licia/toArr';\nimport MutationObserver from 'licia/MutationObserver';\nimport contain from 'licia/contain';\nimport highlight from 'licia/highlight';\nimport truncate from 'licia/truncate';\nimport escape from 'licia/escape';\nimport trim from 'licia/trim';\nimport every from 'licia/every';\nimport { exportCjs, getPlatform, hasTouchSupport } from '../share/util';\nconst emptyHighlightStyle = {\n comment: '',\n string: '',\n number: '',\n keyword: '',\n operator: '',\n};\nexport default class DomViewer extends Component {\n constructor(container, options = {}) {\n super(container, { compName: 'dom-viewer' }, options);\n this.isExpanded = false;\n this.childNodes = [];\n this.childNodeDomViewers = [];\n this.toggle = () => {\n if (this.isExpanded) {\n this.collapse();\n }\n else {\n this.expand();\n }\n };\n this.initOptions(options, {\n node: document.documentElement,\n parent: null,\n isEndTag: false,\n rootContainer: container,\n rootDomViewer: this,\n ignore: () => false,\n });\n this.initTpl();\n this.bindEvent();\n if (!this.options.isEndTag) {\n this.initObserver();\n }\n }\n select(node) {\n const { c, options } = this;\n if (!node || (node && options.node === node)) {\n if (this.$tag.hasClass(c('selected'))) {\n return;\n }\n $(this.options.rootContainer)\n .find(c('.selected'))\n .rmClass(c('selected'))\n .rmAttr('tabindex');\n this.$tag.attr('tabindex', '0').get(0).focus();\n this.$tag.addClass(c('selected'));\n options.rootDomViewer.emit('select', options.node);\n return;\n }\n if (node.nodeType !== Node.ELEMENT_NODE) {\n return;\n }\n let childNode = node;\n let curNode = node.parentElement;\n while (curNode) {\n if (curNode === options.node) {\n this.expand();\n const childNodeDomViewer = this.childNodeDomViewers[this.childNodes.indexOf(childNode)];\n childNodeDomViewer.select(node);\n break;\n }\n childNode = curNode;\n curNode = curNode.parentElement;\n }\n }\n attach() {\n this.container.appendChild(this.$tag.get(0));\n if (this.$children) {\n this.container.appendChild(this.$children.get(0));\n }\n }\n isAttached() {\n return !!this.$tag.get(0).parentNode;\n }\n detach() {\n this.$tag.remove();\n if (this.$children) {\n this.$children.remove();\n }\n }\n expand() {\n if (!this.isExpandable() || this.isExpanded) {\n return;\n }\n this.isExpanded = true;\n this.renderExpandTag();\n this.renderChildNodes();\n }\n collapse() {\n if (!this.isExpandable() || !this.isExpanded) {\n return;\n }\n this.isExpanded = false;\n this.renderCollapseTag();\n }\n destroy() {\n const { c } = this;\n if (this.$tag.hasClass(c('selected'))) {\n this.options.rootDomViewer.emit('deselect');\n }\n this.detach();\n if (this.observer) {\n this.observer.disconnect();\n }\n this.destroySubComponents();\n if (this.options.rootDomViewer === this) {\n this.$container\n .rmClass(`luna-dom-viewer`)\n .rmClass(c(`platform-${getPlatform()}`))\n .rmClass(c(`theme-${this.options.theme}`));\n }\n this.emit('destroy');\n this.removeAllListeners();\n }\n renderExpandTag() {\n const { $tag, c } = this;\n const { node } = this.options;\n $tag.html(this.renderHtmlTag({\n ...getHtmlTagData(node),\n hasTail: false,\n hasToggleButton: true,\n }));\n $tag.addClass(c('expanded'));\n this.$children.rmClass(c('hidden'));\n }\n renderCollapseTag() {\n const { $tag, c } = this;\n const { node } = this.options;\n this.$children.addClass(c('hidden'));\n this.$tag.html(this.renderHtmlTag({\n ...getHtmlTagData(node),\n hasTail: true,\n hasToggleButton: true,\n }));\n $tag.rmClass(c('expanded'));\n }\n initObserver() {\n this.observer = new MutationObserver((mutations) => {\n each(mutations, (mutation) => {\n this.handleMutation(mutation);\n });\n });\n this.observer.observe(this.options.node, {\n attributes: true,\n childList: true,\n characterData: true,\n });\n }\n handleMutation(mutation) {\n const { $tag, c } = this;\n const { node, ignore } = this.options;\n if (contain(['attributes', 'childList'], mutation.type)) {\n if (mutation.type === 'childList') {\n if (every(mutation.addedNodes, ignore) &&\n every(mutation.removedNodes, ignore)) {\n return;\n }\n this.renderChildNodes();\n }\n if (this.isExpandable()) {\n this.isExpanded ? this.renderExpandTag() : this.renderCollapseTag();\n }\n else {\n this.$children.addClass(c('hidden'));\n $tag.html(this.renderHtmlTag({\n ...getHtmlTagData(node),\n hasTail: false,\n }));\n }\n }\n else if (mutation.type === 'characterData') {\n if (node.nodeType === Node.TEXT_NODE) {\n $tag.html(this.renderTextNode(node));\n }\n else if (node.nodeType === Node.COMMENT_NODE) {\n $tag.html(this.renderHtmlComment(node.nodeValue));\n }\n }\n }\n bindEvent() {\n const { c, $tag } = this;\n const { node } = this.options;\n if (node.nodeType === Node.ELEMENT_NODE) {\n $tag.on('click', c('.toggle'), (e) => {\n e.stopPropagation();\n this.toggle();\n });\n }\n if (hasTouchSupport) {\n $tag.on('click', () => this.select());\n }\n else {\n $tag.on('mousedown', () => this.select());\n }\n }\n isExpandable() {\n const { node } = this.options;\n return (node.nodeType === Node.ELEMENT_NODE && this.getChildNodes().length > 0);\n }\n getChildNodes() {\n const { rootContainer, ignore } = this.options;\n const node = this.options.node;\n let childNodes = toArr(node.childNodes);\n childNodes = filter(childNodes, (child) => {\n if (child.nodeType === Node.TEXT_NODE ||\n child.nodeType === Node.COMMENT_NODE) {\n const value = child.nodeValue;\n if (trim(value) === '') {\n return false;\n }\n }\n return child !== rootContainer && !ignore(child);\n });\n return childNodes;\n }\n initTpl() {\n const { container, c } = this;\n const { node, isEndTag } = this.options;\n const $tag = $(h('li'));\n $tag.addClass(c('tree-item'));\n this.$tag = $tag;\n if (isEndTag) {\n $tag.html(c(`</${node.tagName.toLocaleLowerCase()} > `));\n }\n else if (node.nodeType === Node.ELEMENT_NODE) {\n const isExpandable = this.isExpandable();\n const data = {\n ...getHtmlTagData(node),\n hasTail: isExpandable,\n hasToggleButton: isExpandable,\n };\n $tag.html(this.renderHtmlTag(data));\n }\n else if (node.nodeType === Node.TEXT_NODE) {\n $tag.html(this.renderTextNode(node));\n }\n else if (node.nodeType === Node.COMMENT_NODE) {\n const value = node.nodeValue;\n if (value.trim() === '')\n return;\n $tag.html(this.renderHtmlComment(value));\n }\n else {\n return;\n }\n container.appendChild($tag.get(0));\n if (node.nodeType === node.ELEMENT_NODE) {\n const $children = $(h('ul'));\n $children.addClass([c('children'), c('hidden')]);\n container.appendChild($children.get(0));\n this.$children = $children;\n }\n }\n renderChildNodes() {\n const node = this.options.node;\n const { rootContainer, ignore, rootDomViewer } = this.options;\n const $container = this.$children;\n const container = $container.get(0);\n const oldChildNodes = this.childNodes;\n const oldChildNodeDomViewers = this.childNodeDomViewers;\n each(oldChildNodeDomViewers, (domViewer) => {\n domViewer.detach();\n this.removeSubComponent(domViewer);\n });\n if (this.endTagDomViewer) {\n this.endTagDomViewer.detach();\n }\n const childNodes = this.getChildNodes();\n this.childNodes = childNodes;\n const childNodeDomViewers = [];\n this.childNodeDomViewers = childNodeDomViewers;\n each(childNodes, (node, idx) => {\n const pos = oldChildNodes.indexOf(node);\n let domViewer;\n if (pos > -1) {\n domViewer = oldChildNodeDomViewers[pos];\n }\n else {\n domViewer = new DomViewer(container, {\n node,\n parent: this,\n rootContainer,\n rootDomViewer,\n ignore,\n });\n }\n domViewer.attach();\n childNodeDomViewers[idx] = domViewer;\n this.addSubComponent(domViewer);\n });\n each(oldChildNodeDomViewers, (domViewer) => {\n if (!domViewer.isAttached()) {\n domViewer.destroy();\n }\n });\n if (node) {\n if (this.endTagDomViewer) {\n this.endTagDomViewer.attach();\n }\n else {\n this.endTagDomViewer = new DomViewer(container, {\n node,\n parent: this,\n isEndTag: true,\n rootContainer,\n rootDomViewer,\n ignore,\n });\n this.addSubComponent(this.endTagDomViewer);\n }\n }\n }\n renderHtmlTag(data) {\n const attributes = map(data.attributes, (attribute) => {\n const { name, value, isLink } = attribute;\n return `\n ${escape(name)} ${value\n ? `=\"${escape(value)} \"`\n : ''} `;\n }).join('');\n let tail = '';\n if (data.hasTail) {\n tail = `${data.hasTail ? '…' : ''}</${data.tagName} > `;\n }\n else if (!this.isExpandable()) {\n tail = `</${data.tagName} > `;\n }\n let toggle = '';\n if (data.hasToggleButton) {\n toggle =\n '
';\n }\n return this.c(stripIndent `\n ${toggle}\n <${data.tagName} ${attributes}> ${tail}\n `);\n }\n renderTextNode(node) {\n const { c } = this;\n const value = node.nodeValue;\n const parent = node.parentElement;\n const prepend = '';\n const append = ' ';\n if (parent && value.length < 10000) {\n if (parent.tagName === 'STYLE') {\n return c(`${prepend}${highlight(value, 'css', emptyHighlightStyle)}${append}`);\n }\n else if (parent.tagName === 'SCRIPT') {\n return c(`${prepend}${highlight(value, 'js', emptyHighlightStyle)}${append}`);\n }\n }\n return c(`\"${prepend}${escape(truncate(value, 10000, {\n separator: ' ',\n ellipsis: '…',\n }))}${append}\"`);\n }\n renderHtmlComment(value) {\n return this.c(` `);\n }\n}\nfunction getHtmlTagData(el) {\n const ret = {\n tagName: '',\n attributes: [],\n };\n ret.tagName = el.tagName.toLocaleLowerCase();\n const attributes = [];\n each(el.attributes, (attribute) => {\n const { name, value } = attribute;\n attributes.push({\n name,\n value,\n isLink: isUrlAttribute(el, name),\n });\n });\n ret.attributes = attributes;\n return ret;\n}\nfunction isUrlAttribute(el, name) {\n const tagName = el.tagName;\n if (tagName === 'SCRIPT' ||\n tagName === 'IMAGE' ||\n tagName === 'VIDEO' ||\n tagName === 'AUDIO') {\n if (name === 'src')\n return true;\n }\n if (tagName === 'LINK') {\n if (name === 'href')\n return true;\n }\n return false;\n}\nif (typeof module !== undefined) {\n exportCjs(module, DomViewer);\n}\n","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import map from 'licia/map';\nimport trim from 'licia/trim';\nimport root from 'licia/root';\nimport html from 'licia/html';\nimport isNum from 'licia/isNum';\nimport contain from 'licia/contain';\nimport toNum from 'licia/toNum';\nimport detectOs from 'licia/detectOs';\nimport isHidden from 'licia/isHidden';\nexport function exportCjs(module, clazz) {\n try {\n module.exports = clazz;\n module.exports.default = clazz;\n }\n catch (e) {\n }\n}\nexport function classPrefix(name) {\n const prefix = `luna-${name}-`;\n function processClass(str) {\n return map(trim(str).split(/\\s+/), (singleClass) => {\n if (contain(singleClass, prefix)) {\n return singleClass;\n }\n return singleClass.replace(/[\\w-]+/, (match) => `${prefix}${match}`);\n }).join(' ');\n }\n return function (str) {\n if (/<[^>]*>/g.test(str)) {\n try {\n const tree = html.parse(str);\n traverseTree(tree, (node) => {\n if (node.attrs && node.attrs.class) {\n node.attrs.class = processClass(node.attrs.class);\n }\n });\n return html.stringify(tree);\n }\n catch (e) {\n return processClass(str);\n }\n }\n return processClass(str);\n };\n}\nfunction traverseTree(tree, handler) {\n for (let i = 0, len = tree.length; i < len; i++) {\n const node = tree[i];\n handler(node);\n if (node.content) {\n traverseTree(node.content, handler);\n }\n }\n}\nconst hasTouchSupport = 'ontouchstart' in root;\nconst touchEvents = {\n start: 'touchstart',\n move: 'touchmove',\n end: 'touchend',\n};\nconst mouseEvents = {\n start: 'mousedown',\n move: 'mousemove',\n end: 'mouseup',\n};\nexport function drag(name) {\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\n}\nexport function eventClient(type, e) {\n const name = type === 'x' ? 'clientX' : 'clientY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nexport function eventPage(type, e) {\n const name = type === 'x' ? 'pageX' : 'pageY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nlet scrollbarWidth;\nexport function measuredScrollbarWidth() {\n if (isNum(scrollbarWidth)) {\n return scrollbarWidth;\n }\n if (!document) {\n return 16;\n }\n const scrollDiv = document.createElement('div');\n const innerDiv = document.createElement('div');\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\n innerDiv.setAttribute('style', 'height: 200px');\n scrollDiv.appendChild(innerDiv);\n document.body.appendChild(scrollDiv);\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n return scrollbarWidth;\n}\nexport function hasVerticalScrollbar(el) {\n return el.scrollHeight > el.offsetHeight;\n}\nexport function executeAfterTransition(el, callback) {\n if (isHidden(el)) {\n return callback();\n }\n const handler = (e) => {\n const target = e.target;\n if (target !== el) {\n return;\n }\n el.removeEventListener('transitionend', handler);\n callback();\n };\n el.addEventListener('transitionend', handler);\n}\nexport function pxToNum(str) {\n return toNum(str.replace('px', ''));\n}\nexport function getPlatform() {\n const os = detectOs();\n if (os === 'os x') {\n return 'mac';\n }\n return os;\n}\nexport function resetCanvasSize(canvas) {\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\n}\n","import Emitter from 'licia/Emitter';\nimport $ from 'licia/$';\nimport { classPrefix, getPlatform } from './util';\nimport each from 'licia/each';\nimport extend from 'licia/extend';\nimport defaults from 'licia/defaults';\nimport remove from 'licia/remove';\nexport default class Component extends Emitter {\n constructor(container, { compName }, { theme = 'light' } = {}) {\n super();\n this.subComponents = [];\n this.compName = compName;\n this.c = classPrefix(compName);\n this.options = {};\n this.container = container;\n this.$container = $(container);\n this.$container.addClass([\n `luna-${compName}`,\n this.c(`platform-${getPlatform()}`),\n ]);\n this.on('optionChange', (name, val, oldVal) => {\n const c = this.c;\n if (name === 'theme') {\n this.$container\n .rmClass(c(`theme-${oldVal}`))\n .addClass(c(`theme-${val}`));\n each(this.subComponents, (component) => component.setOption('theme', val));\n }\n });\n this.setOption('theme', theme);\n }\n destroy() {\n this.destroySubComponents();\n const { c } = this;\n this.$container\n .rmClass(`luna-${this.compName}`)\n .rmClass(c(`platform-${getPlatform()}`))\n .rmClass(c(`theme-${this.options.theme}`));\n this.$container.html('');\n this.emit('destroy');\n this.removeAllListeners();\n }\n setOption(name, val) {\n const options = this.options;\n let newOptions = {};\n if (typeof name === 'string') {\n newOptions[name] = val;\n }\n else {\n newOptions = name;\n }\n each(newOptions, (val, name) => {\n const oldVal = options[name];\n options[name] = val;\n this.emit('optionChange', name, val, oldVal);\n });\n }\n getOption(name) {\n return this.options[name];\n }\n addSubComponent(component) {\n component.setOption('theme', this.options.theme);\n this.subComponents.push(component);\n }\n removeSubComponent(component) {\n remove(this.subComponents, (com) => com === component);\n }\n destroySubComponents() {\n each(this.subComponents, (component) => component.destroy());\n this.subComponents = [];\n }\n initOptions(options, defs = {}) {\n defaults(options, defs);\n extend(this.options, options);\n }\n find(selector) {\n return this.$container.find(this.c(selector));\n }\n}\n","import Component from '../share/Component';\nimport stripIndent from 'licia/stripIndent';\nimport $ from 'licia/$';\nimport h from 'licia/h';\nimport map from 'licia/map';\nimport { exportCjs } from '../share/util';\nexport default class Modal extends Component {\n constructor(container, options = {}) {\n super(container, { compName: 'modal' }, options);\n this.hide = () => {\n this.$container.addClass(this.c('hidden'));\n };\n this.render = () => {\n const { options, c, $body } = this;\n if (!options.title) {\n $body.addClass(c('no-title'));\n }\n else {\n $body.rmClass(c('no-title'));\n this.$title.text(options.title);\n }\n if (!options.footer) {\n $body.addClass(c('no-footer'));\n }\n else {\n $body.rmClass(c('no-footer'));\n this.$footer.html('').append(options.footer);\n }\n if (!options.showClose) {\n this.$close.hide();\n }\n else {\n this.$close.show();\n }\n this.$body.css('width', options.width + 'px');\n this.$content.html('').append(options.content);\n };\n this.hide();\n this.initOptions(options, {\n title: '',\n content: '',\n footer: '',\n showClose: true,\n width: getDefaultWidth(),\n });\n this.initTpl();\n this.$title = this.find('.title');\n this.$content = this.find('.content');\n this.$body = this.find('.body');\n this.$footer = this.find('.footer');\n this.$close = this.find('.icon-close');\n this.bindEvent();\n }\n show() {\n this.render();\n this.$container.rmClass(this.c('hidden'));\n }\n destroy() {\n super.destroy();\n this.$container.rmClass(this.c('hidden'));\n }\n static alert(msg) {\n const modal = getGlobalModal();\n const { c } = modal;\n modal.setOption({\n title: '',\n content: msg,\n width: getDefaultWidth(),\n footer: createButtons({\n OK: {\n type: 'primary',\n onclick() {\n modal.hide();\n },\n },\n }, c),\n });\n modal.show();\n }\n static confirm(msg) {\n return new Promise((resolve) => {\n const modal = getGlobalModal();\n const { c } = modal;\n modal.setOption({\n title: '',\n content: msg,\n width: getDefaultWidth(),\n footer: createButtons({\n Cancel: {\n type: 'secondary',\n onclick() {\n modal.hide();\n resolve(false);\n },\n },\n OK: {\n type: 'primary',\n onclick() {\n modal.hide();\n resolve(true);\n },\n },\n }, c),\n });\n modal.show();\n });\n }\n static prompt(title = '', defaultText = '') {\n return new Promise((resolve) => {\n const modal = getGlobalModal();\n const { c } = modal;\n const input = h('input' + c('.input'), {\n value: defaultText,\n });\n function ok() {\n modal.hide();\n resolve(input.value);\n }\n $(input).on('keypress', (e) => {\n e = e.origEvent;\n if (e.key === 'Enter') {\n ok();\n }\n });\n modal.setOption({\n title,\n content: input,\n width: getDefaultWidth(),\n footer: createButtons({\n Cancel: {\n type: 'secondary',\n onclick() {\n modal.hide();\n resolve(null);\n },\n },\n OK: {\n type: 'primary',\n onclick: ok,\n },\n }, c),\n });\n modal.show();\n const end = input.value.length;\n input.setSelectionRange(end, end);\n input.focus();\n });\n }\n static setContainer(container) {\n globalContainer = container;\n }\n bindEvent() {\n this.$body.on('click', this.c('.icon-close'), this.hide);\n this.on('optionChange', this.render);\n }\n initTpl() {\n this.$container.html(this.c(stripIndent `\n \n `));\n }\n}\nlet globalModal = null;\nlet globalContainer = null;\nfunction getGlobalModal() {\n if (!globalContainer) {\n globalContainer = h('div');\n document.body.append(globalContainer);\n }\n if (!globalModal) {\n globalModal = new Modal(globalContainer, {\n showClose: false,\n });\n }\n return globalModal;\n}\nfunction createButtons(buttons, c) {\n const buttonEls = map(buttons, (button, key) => {\n return h(c('.button') + c('.' + button.type), {\n onclick: button.onclick,\n }, key);\n });\n return h(c('.button-group'), {}, ...buttonEls);\n}\nfunction getDefaultWidth() {\n if (window.innerWidth < 500) {\n return window.innerWidth - 16 * 2;\n }\n return 500;\n}\nif (typeof module !== 'undefined') {\n exportCjs(module, Modal);\n}\n","import extend from 'licia/extend';\nexport default class Visitor {\n constructor() {\n this.id = 0;\n this.visited = [];\n }\n set(val, extra) {\n const { visited, id } = this;\n const obj = {\n id,\n val,\n };\n extend(obj, extra);\n visited.push(obj);\n this.id++;\n return id;\n }\n get(val) {\n const { visited } = this;\n for (let i = 0, len = visited.length; i < len; i++) {\n const obj = visited[i];\n if (val === obj.val)\n return obj;\n }\n return false;\n }\n}\n","import toStr from 'licia/toStr';\nimport trim from 'licia/trim';\nimport escape from 'licia/escape';\nexport const encode = (val) => {\n return escape(toStr(val))\n .replace(/\\n/g, '↵')\n .replace(/\\f|\\r|\\t/g, '');\n};\nexport function getFnAbstract(str) {\n if (str.length > 500)\n str = str.slice(0, 500) + '...';\n return 'ƒ ' + trim(extractFnHead(str).replace('function', ''));\n}\nconst regFnHead = /function(.*?)\\((.*?)\\)/;\nfunction extractFnHead(str) {\n const fnHead = str.match(regFnHead);\n if (fnHead)\n return fnHead[0];\n return str;\n}\n","import map from 'licia/map';\nimport trim from 'licia/trim';\nimport root from 'licia/root';\nimport html from 'licia/html';\nimport isNum from 'licia/isNum';\nimport contain from 'licia/contain';\nimport toNum from 'licia/toNum';\nimport detectOs from 'licia/detectOs';\nimport isHidden from 'licia/isHidden';\nexport function exportCjs(module, clazz) {\n try {\n module.exports = clazz;\n module.exports.default = clazz;\n }\n catch (e) {\n }\n}\nexport function classPrefix(name) {\n const prefix = `luna-${name}-`;\n function processClass(str) {\n return map(trim(str).split(/\\s+/), (singleClass) => {\n if (contain(singleClass, prefix)) {\n return singleClass;\n }\n return singleClass.replace(/[\\w-]+/, (match) => `${prefix}${match}`);\n }).join(' ');\n }\n return function (str) {\n if (/<[^>]*>/g.test(str)) {\n try {\n const tree = html.parse(str);\n traverseTree(tree, (node) => {\n if (node.attrs && node.attrs.class) {\n node.attrs.class = processClass(node.attrs.class);\n }\n });\n return html.stringify(tree);\n }\n catch (e) {\n return processClass(str);\n }\n }\n return processClass(str);\n };\n}\nfunction traverseTree(tree, handler) {\n for (let i = 0, len = tree.length; i < len; i++) {\n const node = tree[i];\n handler(node);\n if (node.content) {\n traverseTree(node.content, handler);\n }\n }\n}\nconst hasTouchSupport = 'ontouchstart' in root;\nconst touchEvents = {\n start: 'touchstart',\n move: 'touchmove',\n end: 'touchend',\n};\nconst mouseEvents = {\n start: 'mousedown',\n move: 'mousemove',\n end: 'mouseup',\n};\nexport function drag(name) {\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\n}\nexport function eventClient(type, e) {\n const name = type === 'x' ? 'clientX' : 'clientY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nexport function eventPage(type, e) {\n const name = type === 'x' ? 'pageX' : 'pageY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nlet scrollbarWidth;\nexport function measuredScrollbarWidth() {\n if (isNum(scrollbarWidth)) {\n return scrollbarWidth;\n }\n if (!document) {\n return 16;\n }\n const scrollDiv = document.createElement('div');\n const innerDiv = document.createElement('div');\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\n innerDiv.setAttribute('style', 'height: 200px');\n scrollDiv.appendChild(innerDiv);\n const container = document.body || document.documentElement;\n container.appendChild(scrollDiv);\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n container.removeChild(scrollDiv);\n return scrollbarWidth;\n}\nexport function hasVerticalScrollbar(el) {\n return el.scrollHeight > el.offsetHeight;\n}\nexport function executeAfterTransition(el, callback) {\n if (isHidden(el)) {\n return callback();\n }\n const handler = (e) => {\n const target = e.target;\n if (target !== el) {\n return;\n }\n el.removeEventListener('transitionend', handler);\n callback();\n };\n el.addEventListener('transitionend', handler);\n}\nexport function pxToNum(str) {\n return toNum(str.replace('px', ''));\n}\nexport function getPlatform() {\n const os = detectOs();\n if (os === 'os x') {\n return 'mac';\n }\n return os;\n}\nexport function resetCanvasSize(canvas) {\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\n}\n","import Emitter from 'licia/Emitter';\nimport $ from 'licia/$';\nimport { classPrefix, getPlatform } from './util';\nimport each from 'licia/each';\nimport extend from 'licia/extend';\nimport defaults from 'licia/defaults';\nimport remove from 'licia/remove';\nexport default class Component extends Emitter {\n constructor(container, { compName }, { theme = 'light' } = {}) {\n super();\n this.subComponents = [];\n this.compName = compName;\n this.c = classPrefix(compName);\n this.options = {};\n this.container = container;\n this.$container = $(container);\n this.$container.addClass([\n `luna-${compName}`,\n this.c(`platform-${getPlatform()}`),\n ]);\n this.on('optionChange', (name, val, oldVal) => {\n const c = this.c;\n if (name === 'theme') {\n this.$container\n .rmClass(c(`theme-${oldVal}`))\n .addClass(c(`theme-${val}`));\n each(this.subComponents, (component) => component.setOption('theme', val));\n }\n });\n this.setOption('theme', theme);\n }\n destroy() {\n this.destroySubComponents();\n const { c } = this;\n this.$container\n .rmClass(`luna-${this.compName}`)\n .rmClass(c(`platform-${getPlatform()}`))\n .rmClass(c(`theme-${this.options.theme}`));\n this.$container.html('');\n this.emit('destroy');\n this.removeAllListeners();\n }\n setOption(name, val) {\n const options = this.options;\n let newOptions = {};\n if (typeof name === 'string') {\n newOptions[name] = val;\n }\n else {\n newOptions = name;\n }\n each(newOptions, (val, name) => {\n const oldVal = options[name];\n options[name] = val;\n this.emit('optionChange', name, val, oldVal);\n });\n }\n getOption(name) {\n return this.options[name];\n }\n addSubComponent(component) {\n component.setOption('theme', this.options.theme);\n this.subComponents.push(component);\n }\n removeSubComponent(component) {\n remove(this.subComponents, (com) => com === component);\n }\n destroySubComponents() {\n each(this.subComponents, (component) => component.destroy());\n this.subComponents = [];\n }\n initOptions(options, defs = {}) {\n defaults(options, defs);\n extend(this.options, options);\n }\n find(selector) {\n return this.$container.find(this.c(selector));\n }\n}\n","import $ from 'licia/$';\nimport startWith from 'licia/startWith';\nimport isObj from 'licia/isObj';\nimport uniqId from 'licia/uniqId';\nimport upperFirst from 'licia/upperFirst';\nimport toNum from 'licia/toNum';\nimport chunk from 'licia/chunk';\nimport each from 'licia/each';\nimport isNaN from 'licia/isNaN';\nimport isNum from 'licia/isNum';\nimport isBool from 'licia/isBool';\nimport isStr from 'licia/isStr';\nimport truncate from 'licia/truncate';\nimport keys from 'licia/keys';\nimport lowerCase from 'licia/lowerCase';\nimport naturalSort from 'licia/naturalSort';\nimport { encode, getFnAbstract } from './util';\nimport Component from '../share/Component';\nexport default class JsonViewer extends Component {\n constructor(container) {\n super(container, { compName: 'object-viewer' });\n this.onItemClick = (e) => {\n const { map, c } = this;\n const $this = $(e.curTarget);\n const circularId = $this.data('object-id');\n const $firstSpan = $this.find('span').eq(0);\n if ($this.data('first-level'))\n return;\n if (circularId) {\n $this.find('ul').html(this.objToHtml(map[circularId], false));\n $this.rmAttr('data-object-id');\n }\n e.stopImmediatePropagation();\n if (!$firstSpan.hasClass(c('expanded')))\n return;\n const $ul = $this.find('ul').eq(0);\n if ($firstSpan.hasClass(c('collapsed'))) {\n $firstSpan.rmClass(c('collapsed'));\n $ul.show();\n }\n else {\n $firstSpan.addClass(c('collapsed'));\n $ul.hide();\n }\n this.emit('change');\n };\n this.bindEvent();\n }\n set(data) {\n if (isStr(data))\n data = JSON.parse(data);\n this.data = {\n id: uniqId('json'),\n enumerable: {\n 0: data,\n },\n };\n this.map = {};\n createMap(this.map, this.data);\n this.render();\n }\n destroy() {\n super.destroy();\n this.$container.off('click', 'li', this.onItemClick);\n }\n objToHtml(data, firstLevel) {\n let ret = '';\n each(['enumerable', 'unenumerable', 'symbol'], (type) => {\n if (!data[type])\n return;\n const typeKeys = keys(data[type]);\n naturalSort(typeKeys);\n for (let i = 0, len = typeKeys.length; i < len; i++) {\n const key = typeKeys[i];\n ret += this.createEl(key, data[type][key], type, firstLevel);\n }\n });\n if (data.proto) {\n if (ret === '') {\n ret = this.objToHtml(data.proto);\n }\n else {\n ret += this.createEl('[[Prototype]]', data.proto, 'proto');\n }\n }\n return ret;\n }\n createEl(key, val, keyType, firstLevel = false) {\n const { c } = this;\n let type = typeof val;\n if (val === null) {\n return `${wrapKey(key)}null `;\n }\n else if (isNum(val) || isBool(val)) {\n return `${wrapKey(key)}${encode(val)} `;\n }\n if (val.type === 'RegExp')\n type = 'regexp';\n if (val.type === 'Number')\n type = 'number';\n if (val.type === 'Number' || val.type === 'RegExp') {\n return `${wrapKey(key)}${encode(val.value)} `;\n }\n else if (val.type === 'Undefined' || val.type === 'Symbol') {\n return `${wrapKey(key)}${lowerCase(val.type)} `;\n }\n else if (val === '(...)') {\n return `${wrapKey(key)}${val} `;\n }\n else if (isObj(val)) {\n const id = val.id;\n const referenceId = val.reference;\n const objAbstract = getObjAbstract(val) || upperFirst(type);\n const icon = firstLevel\n ? ''\n : ` `;\n let obj = `${icon}${wrapKey(key)}${firstLevel ? '' : objAbstract} `;\n if (firstLevel)\n obj += this.objToHtml(this.map[id]);\n return obj + ` `;\n }\n function wrapKey(key) {\n if (firstLevel)\n return '';\n if (isObj(val) && val.jsonSplitArr)\n return '';\n let keyClass = c('key');\n if (keyType === 'unenumerable' || keyType === 'symbol') {\n keyClass = c('key-lighter');\n }\n else if (keyType === 'proto') {\n keyClass = c('key-special');\n }\n return `${encode(key)} : `;\n }\n if (isStr(val) && val.length > 10000) {\n val = truncate(val, 50, {\n separator: ' ',\n ellipsis: '…',\n });\n }\n return `${wrapKey(key)}\"${encode(val)}\" `;\n }\n render() {\n const data = this.map[this.data.id];\n this.$container.html(this.objToHtml(data, true));\n }\n bindEvent() {\n this.$container.on('click', 'li', this.onItemClick);\n }\n}\nfunction createMap(map, data) {\n const id = data.id;\n if (!id && id !== 0)\n return;\n const isArr = data.type && startWith(data.type, 'Array');\n if (isArr && data.enumerable) {\n const arr = objToArr(data, id, data.type);\n if (arr.length > 100)\n data = splitBigArr(arr);\n }\n map[id] = data;\n const values = [];\n each(['enumerable', 'unenumerable', 'symbol'], (type) => {\n if (!data[type])\n return;\n for (const key in data[type]) {\n values.push(data[type][key]);\n }\n });\n if (data.proto) {\n values.push(data.proto);\n }\n for (let i = 0, len = values.length; i < len; i++) {\n const val = values[i];\n if (isObj(val))\n createMap(map, val);\n }\n}\nfunction splitBigArr(data) {\n let idx = 0;\n const enumerable = {};\n each(chunk(data, 100), (val) => {\n const obj = {};\n const startIdx = idx;\n obj.type = '[' + startIdx;\n obj.enumerable = {};\n each(val, (val) => {\n obj.enumerable[idx] = val;\n idx += 1;\n });\n const endIdx = idx - 1;\n obj.type += (endIdx - startIdx > 0 ? ' … ' + endIdx : '') + ']';\n obj.id = uniqId('json');\n obj.jsonSplitArr = true;\n enumerable[idx] = obj;\n });\n const ret = {};\n ret.enumerable = enumerable;\n ret.id = data.id;\n ret.type = data.type;\n if (data.unenumerable)\n ret.unenumerable = data.unenumerable;\n if (data.symbol)\n ret.symbol = data.symbol;\n if (data.proto)\n ret.proto = data.proto;\n return ret;\n}\nfunction objToArr(data, id, type) {\n const ret = [];\n const enumerable = {};\n each(data.enumerable, (val, key) => {\n const idx = toNum(key);\n if (!isNaN(idx)) {\n ret[idx] = val;\n }\n else {\n enumerable[key] = val;\n }\n });\n ret.enumerable = enumerable;\n ret.type = type;\n ret.id = id;\n if (data.unenumerable)\n ret.unenumerable = data.unenumerable;\n if (data.symbol)\n ret.symbol = data.symbol;\n if (data.proto)\n ret.proto = data.proto;\n return ret;\n}\nexport function getObjAbstract(data) {\n const { type, value } = data;\n if (!type)\n return;\n if (type === 'Function') {\n return getFnAbstract(value);\n }\n if (type === 'Array' && data.unenumerable) {\n return `Array(${data.unenumerable.length})`;\n }\n return data.type;\n}\n","import getProto from 'licia/getProto';\nimport isNum from 'licia/isNum';\nimport isBool from 'licia/isBool';\nimport lowerCase from 'licia/lowerCase';\nimport isObj from 'licia/isObj';\nimport isArr from 'licia/isArr';\nimport upperFirst from 'licia/upperFirst';\nimport keys from 'licia/keys';\nimport each from 'licia/each';\nimport toSrc from 'licia/toSrc';\nimport isPromise from 'licia/isPromise';\nimport type from 'licia/type';\nimport $ from 'licia/$';\nimport difference from 'licia/difference';\nimport truncate from 'licia/truncate';\nimport isStr from 'licia/isStr';\nimport allKeys from 'licia/allKeys';\nimport filter from 'licia/filter';\nimport chunk from 'licia/chunk';\nimport toStr from 'licia/toStr';\nimport noop from 'licia/noop';\nimport naturalSort from 'licia/naturalSort';\nimport Visitor from './Visitor';\nimport { encode, getFnAbstract } from './util';\nimport Static from './Static';\nimport Component from '../share/Component';\nimport { exportCjs } from '../share/util';\nexport default class ObjectViewer extends Component {\n constructor(container, options = {}) {\n super(container, { compName: 'object-viewer' });\n this.onItemClick = (e) => {\n const { map, c } = this;\n const $this = $(e.curTarget);\n const circularId = $this.data('object-id');\n const $firstSpan = $this.find('span').eq(0);\n if ($this.data('first-level'))\n return;\n if (circularId) {\n $this.find('ul').html(this.objToHtml(map[circularId], false));\n $this.rmAttr('data-object-id');\n }\n e.stopImmediatePropagation();\n if (!$firstSpan.hasClass(c('expanded')))\n return;\n const $ul = $this.find('ul').eq(0);\n if ($firstSpan.hasClass(c('collapsed'))) {\n $firstSpan.rmClass(c('collapsed'));\n $ul.show();\n }\n else {\n $firstSpan.addClass(c('collapsed'));\n $ul.hide();\n }\n this.emit('change');\n };\n this.initOptions(options, {\n unenumerable: false,\n accessGetter: false,\n });\n this.bindEvent();\n }\n set(data) {\n this.data = [data];\n this.visitor = new Visitor();\n this.map = {};\n this.render();\n }\n destroy() {\n super.destroy();\n this.$container.off('click', 'li', this.onItemClick);\n }\n objToHtml(data, firstLevel) {\n const { visitor } = this;\n let self = data;\n let isBigArr = false;\n const visitedObj = visitor.get(data);\n if (visitedObj && visitedObj.self) {\n self = visitedObj.self;\n }\n let ret = '';\n const types = ['enumerable'];\n let enumerableKeys = keys(data);\n let unenumerableKeys = [];\n let symbolKeys = [];\n let virtualKeys = [];\n const virtualData = {};\n if (this.options.unenumerable && !firstLevel) {\n types.push('unenumerable');\n types.push('symbol');\n unenumerableKeys = difference(allKeys(data, {\n prototype: false,\n unenumerable: true,\n }), enumerableKeys);\n symbolKeys = filter(allKeys(data, {\n prototype: false,\n symbol: true,\n }), (key) => {\n return typeof key === 'symbol';\n });\n }\n if (isArr(data) && data.length > 100) {\n types.unshift('virtual');\n isBigArr = true;\n let idx = 0;\n const map = {};\n each(chunk(data, 100), (val) => {\n const obj = Object.create(null);\n const startIdx = idx;\n let key = '[' + startIdx;\n each(val, (val) => {\n obj[idx] = val;\n map[idx] = true;\n idx++;\n });\n const endIdx = idx - 1;\n key += (endIdx - startIdx > 0 ? ' … ' + endIdx : '') + ']';\n virtualData[key] = obj;\n });\n virtualKeys = keys(virtualData);\n enumerableKeys = filter(enumerableKeys, (val) => !map[val]);\n }\n each(types, (type) => {\n let typeKeys = [];\n if (type === 'symbol') {\n typeKeys = symbolKeys;\n }\n else if (type === 'unenumerable') {\n typeKeys = unenumerableKeys;\n }\n else if (type === 'virtual') {\n typeKeys = virtualKeys;\n }\n else {\n typeKeys = enumerableKeys;\n }\n if (!isBigArr) {\n naturalSort(typeKeys);\n }\n for (let i = 0, len = typeKeys.length; i < len; i++) {\n const key = toStr(typeKeys[i]);\n let val = '';\n const descriptor = Object.getOwnPropertyDescriptor(data, key);\n const hasGetter = descriptor && descriptor.get;\n const hasSetter = descriptor && descriptor.set;\n if (hasGetter && !this.options.accessGetter) {\n val = '(...)';\n }\n else {\n try {\n if (type === 'virtual') {\n val = virtualData[key];\n }\n else {\n val = self[key];\n }\n if (isPromise(val)) {\n ;\n val.catch(noop);\n }\n }\n catch (e) {\n if (e instanceof Error) {\n val = e.message;\n }\n else {\n val = toStr(e);\n }\n }\n }\n ret += this.createEl(key, data, val, type, firstLevel);\n if (hasGetter) {\n ret += this.createEl(`get ${key}`, data, descriptor.get, type, firstLevel);\n }\n if (hasSetter) {\n ret += this.createEl(`set ${key}`, data, descriptor.set, type, firstLevel);\n }\n }\n });\n const proto = getProto(data);\n if (!firstLevel && proto) {\n if (ret === '') {\n const id = visitor.set(proto, {\n self: data,\n });\n this.map[id] = proto;\n ret = this.objToHtml(proto);\n }\n else {\n ret += this.createEl('[[Prototype]]', self || data, proto, 'proto');\n }\n }\n return ret;\n }\n createEl(key, self, val, keyType, firstLevel = false) {\n const { visitor, c } = this;\n let t = typeof val;\n let valType = type(val, false);\n if (keyType === 'virtual')\n valType = key;\n if (val === null) {\n return `${wrapKey(key)}null `;\n }\n else if (isNum(val) || isBool(val)) {\n return `${wrapKey(key)}${encode(val)} `;\n }\n if (valType === 'RegExp')\n t = 'regexp';\n if (valType === 'Number')\n t = 'number';\n if (valType === 'Undefined' || valType === 'Symbol') {\n return `${wrapKey(key)}${lowerCase(valType)} `;\n }\n else if (val === '(...)') {\n return `${wrapKey(key)}${val} `;\n }\n else if (isObj(val)) {\n const visitedObj = visitor.get(val);\n let id;\n if (visitedObj) {\n id = visitedObj.id;\n }\n else {\n const extra = {};\n if (keyType === 'proto') {\n extra.self = self;\n }\n id = visitor.set(val, extra);\n this.map[id] = val;\n }\n let objAbstract = 'Object';\n if (t === 'regexp') {\n objAbstract = `${encode(val)}`;\n }\n else {\n objAbstract = encode(getObjAbstract(val, valType) || upperFirst(t));\n }\n const icon = firstLevel\n ? ''\n : ` `;\n let obj = `${icon}${wrapKey(key)}${firstLevel ? '' : objAbstract} `;\n if (firstLevel)\n obj += this.objToHtml(val);\n return obj + ` `;\n }\n function wrapKey(key) {\n if (firstLevel)\n return '';\n if (isObj(val) && keyType === 'virtual')\n return '';\n let keyClass = c('key');\n if (keyType === 'unenumerable' || keyType === 'symbol') {\n keyClass = c('key-lighter');\n }\n else if (keyType === 'proto') {\n keyClass = c('key-special');\n }\n return `${encode(key)} : `;\n }\n if (isStr(val) && val.length > 10000) {\n val = truncate(val, 50, {\n separator: ' ',\n ellipsis: '…',\n });\n }\n return `${wrapKey(key)}\"${encode(val)}\" `;\n }\n render() {\n this.$container.html(this.objToHtml(this.data, true));\n }\n bindEvent() {\n this.$container.on('click', 'li', this.onItemClick);\n }\n}\nexport { Static };\nfunction getObjAbstract(data, type) {\n if (!type)\n return;\n if (type === 'Function') {\n return getFnAbstract(toSrc(data));\n }\n if (type === 'Array') {\n return `Array(${data.length})`;\n }\n return type;\n}\nif (typeof module !== 'undefined') {\n ;\n ObjectViewer.Static = Static;\n exportCjs(module, ObjectViewer);\n}\n","import map from 'licia/map';\nimport trim from 'licia/trim';\nimport root from 'licia/root';\nimport html from 'licia/html';\nimport isNum from 'licia/isNum';\nimport contain from 'licia/contain';\nimport toNum from 'licia/toNum';\nimport detectOs from 'licia/detectOs';\nimport isHidden from 'licia/isHidden';\nexport function exportCjs(module, clazz) {\n try {\n module.exports = clazz;\n module.exports.default = clazz;\n }\n catch (e) {\n }\n}\nexport function classPrefix(name) {\n const prefix = `luna-${name}-`;\n function processClass(str) {\n return map(trim(str).split(/\\s+/), (singleClass) => {\n if (contain(singleClass, prefix)) {\n return singleClass;\n }\n return singleClass.replace(/[\\w-]+/, (match) => `${prefix}${match}`);\n }).join(' ');\n }\n return function (str) {\n if (/<[^>]*>/g.test(str)) {\n try {\n const tree = html.parse(str);\n traverseTree(tree, (node) => {\n if (node.attrs && node.attrs.class) {\n node.attrs.class = processClass(node.attrs.class);\n }\n });\n return html.stringify(tree);\n }\n catch (e) {\n return processClass(str);\n }\n }\n return processClass(str);\n };\n}\nfunction traverseTree(tree, handler) {\n for (let i = 0, len = tree.length; i < len; i++) {\n const node = tree[i];\n handler(node);\n if (node.content) {\n traverseTree(node.content, handler);\n }\n }\n}\nexport const hasTouchSupport = 'ontouchstart' in root;\nconst touchEvents = {\n start: 'touchstart',\n move: 'touchmove',\n end: 'touchend',\n};\nconst mouseEvents = {\n start: 'mousedown',\n move: 'mousemove',\n end: 'mouseup',\n};\nexport function drag(name) {\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\n}\nexport function eventClient(type, e) {\n const name = type === 'x' ? 'clientX' : 'clientY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nexport function eventPage(type, e) {\n const name = type === 'x' ? 'pageX' : 'pageY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nlet scrollbarWidth;\nexport function measuredScrollbarWidth() {\n if (isNum(scrollbarWidth)) {\n return scrollbarWidth;\n }\n if (!document) {\n return 16;\n }\n const scrollDiv = document.createElement('div');\n const innerDiv = document.createElement('div');\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\n innerDiv.setAttribute('style', 'height: 200px');\n scrollDiv.appendChild(innerDiv);\n const container = document.body || document.documentElement;\n container.appendChild(scrollDiv);\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n container.removeChild(scrollDiv);\n return scrollbarWidth;\n}\nexport function hasVerticalScrollbar(el) {\n return el.scrollHeight > el.offsetHeight;\n}\nexport function executeAfterTransition(el, callback) {\n if (isHidden(el)) {\n return callback();\n }\n const handler = (e) => {\n const target = e.target;\n if (target !== el) {\n return;\n }\n el.removeEventListener('transitionend', handler);\n callback();\n };\n el.addEventListener('transitionend', handler);\n}\nexport function pxToNum(str) {\n return toNum(str.replace('px', ''));\n}\nexport function getPlatform() {\n const os = detectOs();\n if (os === 'os x') {\n return 'mac';\n }\n return os;\n}\nexport function resetCanvasSize(canvas) {\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\n}\n","import Emitter from 'licia/Emitter';\nimport $ from 'licia/$';\nimport { classPrefix, getPlatform } from './util';\nimport each from 'licia/each';\nimport extend from 'licia/extend';\nimport defaults from 'licia/defaults';\nimport remove from 'licia/remove';\nexport default class Component extends Emitter {\n constructor(container, { compName }, { theme = 'light' } = {}) {\n super();\n this.subComponents = [];\n this.compName = compName;\n this.c = classPrefix(compName);\n this.options = {};\n this.container = container;\n this.$container = $(container);\n this.$container.addClass([\n `luna-${compName}`,\n this.c(`platform-${getPlatform()}`),\n ]);\n this.on('optionChange', (name, val, oldVal) => {\n const c = this.c;\n if (name === 'theme') {\n this.$container\n .rmClass(c(`theme-${oldVal}`))\n .addClass(c(`theme-${val}`));\n each(this.subComponents, (component) => component.setOption('theme', val));\n }\n });\n this.setOption('theme', theme);\n }\n destroy() {\n this.destroySubComponents();\n const { c } = this;\n this.$container\n .rmClass(`luna-${this.compName}`)\n .rmClass(c(`platform-${getPlatform()}`))\n .rmClass(c(`theme-${this.options.theme}`));\n this.$container.html('');\n this.emit('destroy');\n this.removeAllListeners();\n }\n setOption(name, val) {\n const options = this.options;\n let newOptions = {};\n if (typeof name === 'string') {\n newOptions[name] = val;\n }\n else {\n newOptions = name;\n }\n each(newOptions, (val, name) => {\n const oldVal = options[name];\n options[name] = val;\n this.emit('optionChange', name, val, oldVal);\n });\n }\n getOption(name) {\n return this.options[name];\n }\n addSubComponent(component) {\n component.setOption('theme', this.options.theme);\n this.subComponents.push(component);\n }\n removeSubComponent(component) {\n remove(this.subComponents, (com) => com === component);\n }\n destroySubComponents() {\n each(this.subComponents, (component) => component.destroy());\n this.subComponents = [];\n }\n initOptions(options, defs = {}) {\n defaults(options, defs);\n extend(this.options, options);\n }\n find(selector) {\n return this.$container.find(this.c(selector));\n }\n}\n","import $ from 'licia/$';\nimport h from 'licia/h';\nimport escape from 'licia/escape';\nimport uniqId from 'licia/uniqId';\nimport isObj from 'licia/isObj';\nimport defaults from 'licia/defaults';\nimport map from 'licia/map';\nimport toNum from 'licia/toNum';\nimport toStr from 'licia/toStr';\nimport isFn from 'licia/isFn';\nimport last from 'licia/last';\nimport isRegExp from 'licia/isRegExp';\nimport isStr from 'licia/isStr';\nimport trim from 'licia/trim';\nimport contain from 'licia/contain';\nimport lowerCase from 'licia/lowerCase';\nimport isNull from 'licia/isNull';\nimport each from 'licia/each';\nimport { micromark } from 'micromark';\nimport Component from '../share/Component';\nimport { exportCjs } from '../share/util';\nexport default class Setting extends Component {\n constructor(container, options = {}) {\n super(container, { compName: 'setting' }, options);\n this.items = [];\n this.selectedItem = null;\n this.initOptions(options, {\n separatorCollapse: true,\n filter: '',\n });\n this.bindEvent();\n }\n appendTitle(title) {\n const settingTitle = new SettingTitle(this, title);\n this.append(settingTitle);\n return settingTitle;\n }\n appendSeparator() {\n const { items } = this;\n const { separatorCollapse } = this.options;\n const lastItem = last(items);\n if (separatorCollapse && lastItem instanceof SettingSeparator) {\n return lastItem;\n }\n const settingSeparator = new SettingSeparator(this);\n this.append(settingSeparator);\n return settingSeparator;\n }\n appendNumber(key, value, title, description, options) {\n if (isObj(description)) {\n options = description;\n description = '';\n }\n const settingNumber = new SettingNumber(this, key, value, title, description, options);\n this.append(settingNumber);\n return settingNumber;\n }\n appendButton(title, description, handler) {\n if (isFn(description)) {\n handler = description;\n description = '';\n }\n const settingButton = new SettingButton(this, title, description, handler);\n this.append(settingButton);\n return settingButton;\n }\n appendInput(key, value, title, description = '') {\n const settingInput = new SettingInput(this, key, value, title, description);\n this.append(settingInput);\n return settingInput;\n }\n appendCheckbox(key, value, title, description) {\n if (!description) {\n description = title;\n title = '';\n }\n const settingCheckbox = new SettingCheckbox(this, key, value, title, description);\n this.append(settingCheckbox);\n return settingCheckbox;\n }\n appendSelect(key, value, title, description, options) {\n if (isObj(description)) {\n options = description;\n description = '';\n }\n const settingSelect = new SettingSelect(this, key, value, title, description, options);\n this.append(settingSelect);\n return settingSelect;\n }\n remove(item) {\n const { items } = this;\n const pos = items.indexOf(item);\n if (pos > -1) {\n item.detach();\n items.splice(pos, 1);\n if (item === this.selectedItem) {\n this.selectItem(null);\n }\n }\n }\n clear() {\n each(this.items, (item) => item.detach());\n this.items = [];\n this.selectItem(null);\n }\n selectItem(item) {\n if (this.selectedItem) {\n this.selectedItem.deselect();\n this.selectedItem = null;\n }\n if (!isNull(item)) {\n this.selectedItem = item;\n this.selectedItem?.select();\n }\n }\n renderSettings() {\n const { items } = this;\n each(items, (item) => item.detach());\n each(items, (item) => {\n if (this.filterItem(item)) {\n this.$container.append(item.container);\n }\n });\n }\n bindEvent() {\n const { c } = this;\n this.on('optionChange', (name) => {\n switch (name) {\n case 'filter':\n this.renderSettings();\n break;\n }\n });\n const self = this;\n this.$container.on('click', c('.item'), function () {\n self.selectItem(this.settingItem);\n });\n }\n filterItem(item) {\n let { filter } = this.options;\n if (filter) {\n if (isFn(filter)) {\n return filter(item);\n }\n else if (isRegExp(filter)) {\n return filter.test(item.text());\n }\n else if (isStr(filter)) {\n filter = trim(filter);\n if (filter) {\n return contain(lowerCase(item.text()), lowerCase(filter));\n }\n }\n }\n return true;\n }\n append(item) {\n this.items.push(item);\n if (this.filterItem(item)) {\n this.$container.append(item.container);\n }\n }\n}\nclass SettingItem {\n constructor(setting, key, value, type) {\n this.container = h('div', {\n tabindex: '0',\n });\n this.setting = setting;\n this.container.settingItem = this;\n this.$container = $(this.container);\n this.$container\n .addClass(setting.c('item'))\n .addClass(setting.c(`item-${type}`));\n this.key = key;\n this.value = value;\n }\n select() {\n this.$container.addClass(this.setting.c('selected'));\n }\n deselect() {\n this.$container.rmClass(this.setting.c('selected'));\n }\n detach() {\n this.$container.remove();\n }\n text() {\n return this.$container.text();\n }\n onChange(value) {\n this.setting.emit('change', this.key, value, this.value);\n this.value = value;\n }\n}\nclass SettingTitle extends SettingItem {\n constructor(setting, title) {\n super(setting, '', '', 'title');\n this.$container.text(title);\n }\n}\nclass SettingSeparator extends SettingItem {\n constructor(setting) {\n super(setting, '', '', 'separator');\n }\n}\nclass SettingInput extends SettingItem {\n constructor(setting, key, value, title, description) {\n super(setting, key, value, 'input');\n const { c } = setting;\n this.$container.html(`${escape(title)}
\n ${micromark(description)}
\n \n \n
`);\n const $input = this.$container.find('input');\n $input.val(value);\n $input.on('change', () => this.onChange($input.val()));\n }\n}\nclass SettingNumber extends SettingItem {\n constructor(setting, key, value, title, description, options = {}) {\n super(setting, key, value, 'number');\n defaults(options, {\n min: 0,\n max: 10,\n step: 1,\n });\n const { $container } = this;\n const { c } = setting;\n const range = !!options.range;\n delete options.range;\n const min = options.min;\n const max = options.max;\n let input = ` ` ${key}=\"${val}\"`)}>`;\n if (range) {\n input = `${min}${value} /${max}`;\n }\n $container.html(`${escape(title)}
\n ${micromark(description)}
\n ${input}
`);\n const $value = $container.find(c('.value'));\n const $input = $container.find('input');\n const $trackProgress = $container.find(c('.range-track-progress'));\n $input.val(toStr(value));\n $input.on('change', () => {\n const val = toNum($input.val());\n this.onChange(val);\n });\n $input.on('input', () => {\n const val = toNum($input.val());\n $trackProgress.css('width', progress(val, min, max) + '%');\n $value.text(toStr(val));\n });\n }\n}\nconst progress = (val, min, max) => {\n return (((val - min) / (max - min)) * 100).toFixed(2);\n};\nclass SettingCheckbox extends SettingItem {\n constructor(setting, key, value, title, description) {\n super(setting, key, value, 'checkbox');\n const { c } = setting;\n const id = uniqId(setting.c('checkbox-'));\n this.$container.html(`${escape(title)}
\n \n \n ${micromark(description)} \n
`);\n const $input = this.$container.find('input');\n const input = $input.get(0);\n input.checked = value;\n $input.on('change', () => this.onChange(input.checked));\n }\n}\nclass SettingSelect extends SettingItem {\n constructor(setting, key, value, title, description, options) {\n super(setting, key, value, 'select');\n const { c } = setting;\n this.$container.html(`${escape(title)}
\n ${micromark(description)}
\n \n
\n \n ${map(options, (val, key) => `${escape(key)} `).join('')}\n \n
\n
`);\n const $select = this.$container.find('select');\n $select.on('change', () => this.onChange($select.val()));\n }\n}\nclass SettingButton extends SettingItem {\n constructor(setting, title, description, handler) {\n super(setting, '', '', 'button');\n if (!description) {\n description = title;\n title = '';\n }\n this.$container.html(setting.c(`${escape(title)}
\n \n ${escape(description)} \n
`));\n const $button = this.$container.find('button');\n $button.on('click', handler);\n }\n}\nif (typeof module !== 'undefined') {\n exportCjs(module, Setting);\n}\n","import map from 'licia/map';\nimport trim from 'licia/trim';\nimport root from 'licia/root';\nimport html from 'licia/html';\nimport isNum from 'licia/isNum';\nimport contain from 'licia/contain';\nimport toNum from 'licia/toNum';\nimport detectOs from 'licia/detectOs';\nimport isHidden from 'licia/isHidden';\nexport function exportCjs(module, clazz) {\n try {\n module.exports = clazz;\n module.exports.default = clazz;\n }\n catch (e) {\n }\n}\nexport function classPrefix(name) {\n const prefix = `luna-${name}-`;\n function processClass(str) {\n return map(trim(str).split(/\\s+/), (singleClass) => {\n if (contain(singleClass, prefix)) {\n return singleClass;\n }\n return singleClass.replace(/[\\w-]+/, (match) => `${prefix}${match}`);\n }).join(' ');\n }\n return function (str) {\n if (/<[^>]*>/g.test(str)) {\n try {\n const tree = html.parse(str);\n traverseTree(tree, (node) => {\n if (node.attrs && node.attrs.class) {\n node.attrs.class = processClass(node.attrs.class);\n }\n });\n return html.stringify(tree);\n }\n catch (e) {\n return processClass(str);\n }\n }\n return processClass(str);\n };\n}\nfunction traverseTree(tree, handler) {\n for (let i = 0, len = tree.length; i < len; i++) {\n const node = tree[i];\n handler(node);\n if (node.content) {\n traverseTree(node.content, handler);\n }\n }\n}\nexport const hasTouchSupport = 'ontouchstart' in root;\nconst touchEvents = {\n start: 'touchstart',\n move: 'touchmove',\n end: 'touchend',\n};\nconst mouseEvents = {\n start: 'mousedown',\n move: 'mousemove',\n end: 'mouseup',\n};\nexport function drag(name) {\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\n}\nexport function eventClient(type, e) {\n const name = type === 'x' ? 'clientX' : 'clientY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nexport function eventPage(type, e) {\n const name = type === 'x' ? 'pageX' : 'pageY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nlet scrollbarWidth;\nexport function measuredScrollbarWidth() {\n if (isNum(scrollbarWidth)) {\n return scrollbarWidth;\n }\n if (!document) {\n return 16;\n }\n const scrollDiv = document.createElement('div');\n const innerDiv = document.createElement('div');\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\n innerDiv.setAttribute('style', 'height: 200px');\n scrollDiv.appendChild(innerDiv);\n const container = document.body || document.documentElement;\n container.appendChild(scrollDiv);\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n container.removeChild(scrollDiv);\n return scrollbarWidth;\n}\nexport function hasVerticalScrollbar(el) {\n return el.scrollHeight > el.offsetHeight;\n}\nexport function executeAfterTransition(el, callback) {\n if (isHidden(el)) {\n return callback();\n }\n const handler = (e) => {\n const target = e.target;\n if (target !== el) {\n return;\n }\n el.removeEventListener('transitionend', handler);\n callback();\n };\n el.addEventListener('transitionend', handler);\n}\nexport function pxToNum(str) {\n return toNum(str.replace('px', ''));\n}\nexport function getPlatform() {\n const os = detectOs();\n if (os === 'os x') {\n return 'mac';\n }\n return os;\n}\nexport function resetCanvasSize(canvas) {\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\n}\n","import Emitter from 'licia/Emitter';\nimport $ from 'licia/$';\nimport { classPrefix, getPlatform } from './util';\nimport each from 'licia/each';\nimport extend from 'licia/extend';\nimport defaults from 'licia/defaults';\nimport remove from 'licia/remove';\nexport default class Component extends Emitter {\n constructor(container, { compName }, { theme = 'light' } = {}) {\n super();\n this.subComponents = [];\n this.compName = compName;\n this.c = classPrefix(compName);\n this.options = {};\n this.container = container;\n this.$container = $(container);\n this.$container.addClass([\n `luna-${compName}`,\n this.c(`platform-${getPlatform()}`),\n ]);\n this.on('optionChange', (name, val, oldVal) => {\n const c = this.c;\n if (name === 'theme') {\n this.$container\n .rmClass(c(`theme-${oldVal}`))\n .addClass(c(`theme-${val}`));\n each(this.subComponents, (component) => component.setOption('theme', val));\n }\n });\n this.setOption('theme', theme);\n }\n destroy() {\n this.destroySubComponents();\n const { c } = this;\n this.$container\n .rmClass(`luna-${this.compName}`)\n .rmClass(c(`platform-${getPlatform()}`))\n .rmClass(c(`theme-${this.options.theme}`));\n this.$container.html('');\n this.emit('destroy');\n this.removeAllListeners();\n }\n setOption(name, val) {\n const options = this.options;\n let newOptions = {};\n if (typeof name === 'string') {\n newOptions[name] = val;\n }\n else {\n newOptions = name;\n }\n each(newOptions, (val, name) => {\n const oldVal = options[name];\n options[name] = val;\n this.emit('optionChange', name, val, oldVal);\n });\n }\n getOption(name) {\n return this.options[name];\n }\n addSubComponent(component) {\n component.setOption('theme', this.options.theme);\n this.subComponents.push(component);\n }\n removeSubComponent(component) {\n remove(this.subComponents, (com) => com === component);\n }\n destroySubComponents() {\n each(this.subComponents, (component) => component.destroy());\n this.subComponents = [];\n }\n initOptions(options, defs = {}) {\n defaults(options, defs);\n extend(this.options, options);\n }\n find(selector) {\n return this.$container.find(this.c(selector));\n }\n}\n","import Component from '../share/Component';\nimport stripIndent from 'licia/stripIndent';\nimport $ from 'licia/$';\nimport escape from 'licia/escape';\nimport isNum from 'licia/isNum';\nimport { measuredScrollbarWidth, exportCjs } from '../share/util';\nexport default class Tab extends Component {\n constructor(container, options = {}) {\n super(container, { compName: 'tab' }, options);\n this.initOptions(options, {\n height: 30,\n });\n this.initTpl();\n this.$tabs = this.find('.tabs');\n this.tabs = this.$tabs.get(0);\n this.$slider = this.find('.slider');\n this.bindEvent();\n this.updateHeight();\n }\n get length() {\n return this.$tabs.find(this.c('.item')).length;\n }\n insert(pos, tab) {\n const { c, $tabs } = this;\n const itemHeight = this.options.height - 1;\n const $items = $tabs.find(c('.item'));\n const len = $items.length;\n const html = `${escape(tab.title)}
`;\n if (pos > len - 1) {\n $tabs.append(html);\n }\n else {\n $items.eq(pos).before(html);\n }\n this.updateSlider();\n }\n append(tab) {\n this.insert(this.length, tab);\n }\n remove(id) {\n const { c } = this;\n const self = this;\n this.$tabs.find(c('.item')).each(function () {\n const $this = $(this);\n if ($this.data('id') === id) {\n if ($this.hasClass(c('selected'))) {\n if (self.length > 0) {\n const id = self.$tabs.find(c('.item')).eq(0).data('id');\n self.select(id);\n }\n else {\n self.emit('deselect');\n }\n }\n $this.remove();\n }\n });\n this.updateSlider();\n }\n select(id) {\n const { c } = this;\n const self = this;\n this.$tabs.find(c('.item')).each(function () {\n const $this = $(this);\n if ($this.data('id') === id) {\n $this.addClass(c('selected'));\n self.updateSlider();\n self.scrollToSelected();\n self.emit('select', id);\n }\n else {\n $this.rmClass(c('selected'));\n }\n });\n }\n scrollToSelected() {\n const { $tabs, tabs, c } = this;\n const item = $tabs.find(c('.selected')).get(0);\n const itemLeft = item.offsetLeft;\n const itemWidth = item.offsetWidth;\n const containerWidth = tabs.offsetWidth;\n const scrollLeft = tabs.scrollLeft;\n let targetScrollLeft;\n if (itemLeft < scrollLeft) {\n targetScrollLeft = itemLeft;\n }\n else if (itemLeft + itemWidth > containerWidth + scrollLeft) {\n targetScrollLeft = itemLeft + itemWidth - containerWidth;\n }\n if (!isNum(targetScrollLeft)) {\n return;\n }\n tabs.scrollLeft = targetScrollLeft;\n }\n hideScrollbar() {\n const { $tabs } = this;\n if (getComputedStyle(this.tabs, '::-webkit-scrollbar').display === 'none') {\n return;\n }\n const scrollbarHeight = measuredScrollbarWidth();\n $tabs.css('height', this.options.height - 1 + scrollbarHeight + 'px');\n }\n updateSlider() {\n const { $slider, $tabs, c } = this;\n const selected = $tabs.find(c('.selected')).get(0);\n if (!selected) {\n $slider.css({ width: 0 });\n return;\n }\n $slider.css({\n width: selected.offsetWidth,\n left: selected.offsetLeft - $tabs.get(0).scrollLeft,\n });\n }\n updateHeight() {\n const { height } = this.options;\n const itemHeight = height - 1;\n this.find('.tabs-container').css('height', height + 'px');\n this.find('.item').css({\n height: itemHeight,\n lineHeight: itemHeight,\n });\n this.hideScrollbar();\n }\n bindEvent() {\n const { tabs, c } = this;\n this.on('optionChange', (name) => {\n switch (name) {\n case 'height':\n this.updateHeight();\n break;\n }\n });\n const self = this;\n this.$tabs\n .on('wheel', function (e) {\n e.preventDefault();\n tabs.scrollLeft += e.origEvent.deltaY;\n })\n .on('click', c('.item'), function () {\n const $item = $(this);\n self.select($item.data('id'));\n })\n .on('scroll', () => {\n this.updateSlider();\n });\n }\n initTpl() {\n this.$container.html(this.c(stripIndent `\n \n
\n `));\n }\n}\nif (typeof module !== 'undefined') {\n exportCjs(module, Tab);\n}\n","import map from 'licia/map';\r\nimport trim from 'licia/trim';\r\nimport root from 'licia/root';\r\nimport html from 'licia/html';\r\nimport isNum from 'licia/isNum';\r\nimport contain from 'licia/contain';\r\nimport toNum from 'licia/toNum';\r\nimport detectOs from 'licia/detectOs';\r\nimport isHidden from 'licia/isHidden';\r\nexport function exportCjs(module, clazz) {\r\n try {\r\n module.exports = clazz;\r\n module.exports.default = clazz;\r\n }\r\n catch (e) {\r\n }\r\n}\r\nexport function classPrefix(name) {\r\n const prefix = `luna-${name}-`;\r\n function processClass(str) {\r\n return map(trim(str).split(/\\s+/), (singleClass) => {\r\n if (contain(singleClass, prefix)) {\r\n return singleClass;\r\n }\r\n return singleClass.replace(/[\\w-]+/, (match) => `${prefix}${match}`);\r\n }).join(' ');\r\n }\r\n return function (str) {\r\n if (/<[^>]*>/g.test(str)) {\r\n try {\r\n const tree = html.parse(str);\r\n traverseTree(tree, (node) => {\r\n if (node.attrs && node.attrs.class) {\r\n node.attrs.class = processClass(node.attrs.class);\r\n }\r\n });\r\n return html.stringify(tree);\r\n }\r\n catch (e) {\r\n return processClass(str);\r\n }\r\n }\r\n return processClass(str);\r\n };\r\n}\r\nfunction traverseTree(tree, handler) {\r\n for (let i = 0, len = tree.length; i < len; i++) {\r\n const node = tree[i];\r\n handler(node);\r\n if (node.content) {\r\n traverseTree(node.content, handler);\r\n }\r\n }\r\n}\r\nexport const hasTouchSupport = 'ontouchstart' in root;\r\nconst touchEvents = {\r\n start: 'touchstart',\r\n move: 'touchmove',\r\n end: 'touchend',\r\n};\r\nconst mouseEvents = {\r\n start: 'mousedown',\r\n move: 'mousemove',\r\n end: 'mouseup',\r\n};\r\nexport function drag(name) {\r\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\r\n}\r\nexport function eventClient(type, e) {\r\n const name = type === 'x' ? 'clientX' : 'clientY';\r\n if (e[name]) {\r\n return e[name];\r\n }\r\n if (e.changedTouches) {\r\n return e.changedTouches[0][name];\r\n }\r\n return 0;\r\n}\r\nexport function eventPage(type, e) {\r\n const name = type === 'x' ? 'pageX' : 'pageY';\r\n if (e[name]) {\r\n return e[name];\r\n }\r\n if (e.changedTouches) {\r\n return e.changedTouches[0][name];\r\n }\r\n return 0;\r\n}\r\nlet scrollbarWidth;\r\nexport function measuredScrollbarWidth() {\r\n if (isNum(scrollbarWidth)) {\r\n return scrollbarWidth;\r\n }\r\n if (!document) {\r\n return 16;\r\n }\r\n const scrollDiv = document.createElement('div');\r\n const innerDiv = document.createElement('div');\r\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\r\n innerDiv.setAttribute('style', 'height: 200px');\r\n scrollDiv.appendChild(innerDiv);\r\n const container = document.body || document.documentElement;\r\n container.appendChild(scrollDiv);\r\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\r\n container.removeChild(scrollDiv);\r\n return scrollbarWidth;\r\n}\r\nexport function hasVerticalScrollbar(el) {\r\n return el.scrollHeight > el.offsetHeight;\r\n}\r\nexport function executeAfterTransition(el, callback) {\r\n if (isHidden(el)) {\r\n return callback();\r\n }\r\n const handler = (e) => {\r\n const target = e.target;\r\n if (target !== el) {\r\n return;\r\n }\r\n el.removeEventListener('transitionend', handler);\r\n callback();\r\n };\r\n el.addEventListener('transitionend', handler);\r\n}\r\nexport function pxToNum(str) {\r\n return toNum(str.replace('px', ''));\r\n}\r\nexport function getPlatform() {\r\n const os = detectOs();\r\n if (os === 'os x') {\r\n return 'mac';\r\n }\r\n return os;\r\n}\r\nexport function resetCanvasSize(canvas) {\r\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\r\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\r\n}\r\n","import Emitter from 'licia/Emitter';\r\nimport $ from 'licia/$';\r\nimport { classPrefix, getPlatform } from './util';\r\nimport each from 'licia/each';\r\nimport extend from 'licia/extend';\r\nimport defaults from 'licia/defaults';\r\nimport remove from 'licia/remove';\r\nexport default class Component extends Emitter {\r\n constructor(container, { compName }, { theme = 'light' } = {}) {\r\n super();\r\n this.subComponents = [];\r\n this.compName = compName;\r\n this.c = classPrefix(compName);\r\n this.options = {};\r\n this.container = container;\r\n this.$container = $(container);\r\n this.$container.addClass([\r\n `luna-${compName}`,\r\n this.c(`platform-${getPlatform()}`),\r\n ]);\r\n this.on('optionChange', (name, val, oldVal) => {\r\n const c = this.c;\r\n if (name === 'theme') {\r\n this.$container\r\n .rmClass(c(`theme-${oldVal}`))\r\n .addClass(c(`theme-${val}`));\r\n each(this.subComponents, (component) => component.setOption('theme', val));\r\n }\r\n });\r\n this.setOption('theme', theme);\r\n }\r\n destroy() {\r\n this.destroySubComponents();\r\n const { c } = this;\r\n this.$container\r\n .rmClass(`luna-${this.compName}`)\r\n .rmClass(c(`platform-${getPlatform()}`))\r\n .rmClass(c(`theme-${this.options.theme}`));\r\n this.$container.html('');\r\n this.emit('destroy');\r\n this.removeAllListeners();\r\n }\r\n setOption(name, val) {\r\n const options = this.options;\r\n let newOptions = {};\r\n if (typeof name === 'string') {\r\n newOptions[name] = val;\r\n }\r\n else {\r\n newOptions = name;\r\n }\r\n each(newOptions, (val, name) => {\r\n const oldVal = options[name];\r\n options[name] = val;\r\n this.emit('optionChange', name, val, oldVal);\r\n });\r\n }\r\n getOption(name) {\r\n return this.options[name];\r\n }\r\n addSubComponent(component) {\r\n component.setOption('theme', this.options.theme);\r\n this.subComponents.push(component);\r\n }\r\n removeSubComponent(component) {\r\n remove(this.subComponents, (com) => com === component);\r\n }\r\n destroySubComponents() {\r\n each(this.subComponents, (component) => component.destroy());\r\n this.subComponents = [];\r\n }\r\n initOptions(options, defs = {}) {\r\n defaults(options, defs);\r\n extend(this.options, options);\r\n }\r\n find(selector) {\r\n return this.$container.find(this.c(selector));\r\n }\r\n}\r\n","import Component from '../share/Component';\r\nimport last from 'licia/last';\r\nimport trim from 'licia/trim';\r\nimport isEmpty from 'licia/isEmpty';\r\nimport each from 'licia/each';\r\nimport throttle from 'licia/throttle';\r\nimport debounce from 'licia/debounce';\r\nimport copy from 'licia/copy';\r\nimport escape from 'licia/escape';\r\nimport unescape from 'licia/unescape';\r\nimport stripHtmlTag from 'licia/stripHtmlTag';\r\nimport { exportCjs, hasTouchSupport } from '../share/util';\r\nexport default class TextViewer extends Component {\r\n constructor(container, options = {}) {\r\n super(container, { compName: 'text-viewer' }, options);\r\n this.lineNum = 0;\r\n this.copy = () => {\r\n const { c } = this;\r\n const { text, escape } = this.options;\r\n copy(escape ? text : unescape(stripHtmlTag(text)));\r\n const $icon = this.$copy.find(c('.icon'));\r\n $icon.addClass(c('icon-check')).rmClass(c('icon-copy'));\r\n setTimeout(() => {\r\n $icon.rmClass(c('icon-check')).addClass(c('icon-copy'));\r\n }, 1000);\r\n };\r\n this._updateCopyPos = () => {\r\n const { container } = this;\r\n this.$copy.css({\r\n top: container.scrollTop + 5,\r\n right: -container.scrollLeft + 5,\r\n });\r\n };\r\n this.initOptions(options, {\r\n text: '',\r\n escape: true,\r\n showLineNumbers: true,\r\n wrapLongLines: true,\r\n maxHeight: Infinity,\r\n });\r\n this.render = throttle(() => this._render(), 16);\r\n this.updateCopyPos = debounce(() => this._updateCopyPos(), 300);\r\n this.initTpl();\r\n this.$text = this.find('.text');\r\n this.$copy = this.find('.copy');\r\n if (hasTouchSupport) {\r\n this.$copy.css('opacity', '1');\r\n }\r\n if (this.options.text) {\r\n this.render();\r\n }\r\n this.bindEvent();\r\n this.updateHeight();\r\n }\r\n append(text) {\r\n const { options, $copy, c, $text } = this;\r\n const { showLineNumbers } = options;\r\n this.options.text += text;\r\n if (!showLineNumbers) {\r\n return this.$text.append(options.escape ? escape(text) : text);\r\n }\r\n let lines = getLines(text);\r\n if (isEmpty(lines)) {\r\n lines = [' '];\r\n }\r\n if (!trim(last(lines))) {\r\n lines.pop();\r\n }\r\n let body = '';\r\n each(lines, (line, idx) => {\r\n this.lineNum += 1;\r\n body += `${this.lineNum}
${options.escape ? escape(line) : line || ' '}
`;\r\n });\r\n $text.find(c('.table')).append(body);\r\n $copy.hide();\r\n if ($text.offset().height > 40) {\r\n $copy.show();\r\n }\r\n this.updateCopyPos();\r\n }\r\n destroy() {\r\n this.$container.off('scroll', this.updateCopyPos);\r\n super.destroy();\r\n }\r\n updateHeight() {\r\n const { maxHeight } = this.options;\r\n if (maxHeight > 0 && maxHeight !== Infinity) {\r\n this.$text.css('max-height', maxHeight);\r\n }\r\n else {\r\n this.$text.css('max-height', 'none');\r\n }\r\n }\r\n initTpl() {\r\n this.$container.html(this.c(`
`));\r\n }\r\n bindEvent() {\r\n this.on('optionChange', (name) => {\r\n switch (name) {\r\n case 'maxHeight':\r\n this.updateHeight();\r\n break;\r\n default:\r\n this.render();\r\n break;\r\n }\r\n });\r\n this.$container.on('scroll', this.updateCopyPos);\r\n this.$copy.on('click', this.copy);\r\n }\r\n _render() {\r\n const { c, $text, options } = this;\r\n const { text, wrapLongLines, showLineNumbers } = options;\r\n if (wrapLongLines) {\r\n $text.addClass(c('wrap-long-lines'));\r\n }\r\n else {\r\n $text.rmClass(c('wrap-long-lines'));\r\n }\r\n if (!showLineNumbers) {\r\n $text.rmClass(c('line-numbers'));\r\n }\r\n else {\r\n $text.addClass(c('line-numbers'));\r\n }\r\n $text.html(`
`);\r\n this.lineNum = 0;\r\n this.options.text = '';\r\n this.append(text);\r\n }\r\n}\r\nconst regBreakLine = /\\r\\n|\\r|\\n/g;\r\nfunction getLines(text) {\r\n if (text.length === 0) {\r\n return [];\r\n }\r\n return text.split(regBreakLine);\r\n}\r\nif (typeof module !== 'undefined') {\r\n exportCjs(module, TextViewer);\r\n}\r\n","import Emitter from 'licia/Emitter'\n\nconst emitter = new Emitter()\nemitter.ADD = 'ADD'\nemitter.SHOW = 'SHOW'\nemitter.SCALE = 'SCALE'\n\nexport default emitter\n","import Class from 'licia/Class'\n\nexport default Class({\n init($el) {\n this._$el = $el\n },\n show() {\n this._$el.show()\n\n return this\n },\n hide() {\n this._$el.hide()\n\n return this\n },\n destroy() {\n this._$el.remove()\n },\n})\n","import extend from 'licia/extend'\nimport isArr from 'licia/isArr'\nimport contain from 'licia/contain'\n\nconst keyMap = [\n 'background',\n 'foreground',\n 'selectForeground',\n 'accent',\n 'highlight',\n 'border',\n 'primary',\n 'contrast',\n 'varColor',\n 'stringColor',\n 'keywordColor',\n 'numberColor',\n 'operatorColor',\n 'linkColor',\n 'textColor',\n 'tagNameColor',\n 'functionColor',\n 'attributeNameColor',\n 'commentColor',\n]\n\nconst keyMapLen = keyMap.length\n\nfunction arrToMap(arr) {\n const ret = {}\n\n for (let i = 0; i < keyMapLen; i++) {\n ret[keyMap[i]] = arr[i]\n }\n\n return ret\n}\n\nfunction createDarkTheme(theme) {\n if (isArr(theme)) theme = arrToMap(theme)\n if (!theme.darkerBackground) theme.darkerBackground = theme.contrast\n return extend(\n {\n consoleWarnBackground: '#332a00',\n consoleWarnForeground: '#ffcb6b',\n consoleWarnBorder: '#650',\n consoleErrorBackground: '#290000',\n consoleErrorForeground: '#ff8080',\n consoleErrorBorder: '#5c0000',\n light: '#ccc',\n dark: '#aaa',\n },\n theme\n )\n}\n\nfunction createLightTheme(theme) {\n if (isArr(theme)) theme = arrToMap(theme)\n if (!theme.darkerBackground) theme.darkerBackground = theme.contrast\n return extend(\n {\n consoleWarnBackground: '#fffbe5',\n consoleWarnForeground: '#5c5c00',\n consoleWarnBorder: '#fff5c2',\n consoleErrorBackground: '#fff0f0',\n consoleErrorForeground: '#f00',\n consoleErrorBorder: '#ffd6d6',\n light: '#fff',\n dark: '#eee',\n },\n theme\n )\n}\n\nconst darkThemes = [\n 'Dark',\n 'Material Oceanic',\n 'Material Darker',\n 'Material Palenight',\n 'Material Deep Ocean',\n 'Monokai Pro',\n 'Dracula',\n 'Arc Dark',\n 'Atom One Dark',\n 'Solarized Dark',\n 'Night Owl',\n]\n\nexport function isDarkTheme(theme) {\n return contain(darkThemes, theme)\n}\n\n// prettier-ignore\nexport default {\n Light: createLightTheme({\n darkerBackground: '#f3f3f3',\n background: '#fff',\n foreground: '#333',\n selectForeground: '#333',\n accent: '#1a73e8',\n highlight: '#eaeaea',\n border: '#ccc',\n primary: '#333',\n contrast: '#f2f7fd',\n varColor: '#c80000',\n stringColor: '#1a1aa6',\n keywordColor: '#881280',\n numberColor: '#1c00cf',\n operatorColor: '#808080',\n linkColor: '#1155cc',\n textColor: '#8097bd',\n tagNameColor: '#881280',\n functionColor: '#222',\n attributeNameColor: '#994500',\n commentColor: '#236e25',\n cssProperty: '#c80000',\n }),\n Dark: createDarkTheme({\n darkerBackground: '#333',\n background: '#242424',\n foreground: '#a5a5a5',\n selectForeground: '#eaeaea',\n accent: '#555',\n highlight: '#000',\n border: '#3d3d3d',\n primary: '#ccc',\n contrast: '#0b2544',\n varColor: '#e36eec',\n stringColor: '#f29766',\n keywordColor: '#9980ff',\n numberColor: '#9980ff',\n operatorColor: '#7f7f7f',\n linkColor: '#ababab',\n textColor: '#42597f',\n tagNameColor: '#5db0d7',\n functionColor: '#d5d5d5',\n attributeNameColor: '#9bbbdc',\n commentColor: '#747474',\n }),\n 'Material Oceanic': createDarkTheme([\n '#263238', '#B0BEC5', '#FFFFFF', '#009688', '#425B67',\n '#2A373E', '#607D8B', '#1E272C', '#eeffff', '#c3e88d',\n '#c792ea', '#f78c6c', '#89ddff', '#80cbc4', '#B0BEC5',\n '#f07178', '#82aaff', '#ffcb6b', '#546e7a',\n ]),\n 'Material Darker': createDarkTheme([\n '#212121', '#B0BEC5', '#FFFFFF', '#FF9800', '#3F3F3F',\n '#292929', '#727272', '#1A1A1A', '#eeffff', '#c3e88d',\n '#c792ea', '#f78c6c', '#89ddff', '#80cbc4', '#B0BEC5',\n '#f07178', '#82aaff', '#ffcb6b', '#616161',\n ]),\n 'Material Lighter': createLightTheme([\n '#FAFAFA', '#546E7A', '#546e7a', '#00BCD4', '#E7E7E8',\n '#d3e1e8', '#94A7B0', '#F4F4F4', '#272727', '#91B859',\n '#7C4DFF', '#F76D47', '#39ADB5', '#39ADB5', '#546E7A',\n '#E53935', '#6182B8', '#F6A434', '#AABFC9',\n ]),\n 'Material Palenight': createDarkTheme([\n '#292D3E', '#A6ACCD', '#FFFFFF', '#ab47bc', '#444267',\n '#2b2a3e', '#676E95', '#202331', '#eeffff', '#c3e88d',\n '#c792ea', '#f78c6c', '#89ddff', '#80cbc4', '#A6ACCD',\n '#f07178', '#82aaff', '#ffcb6b', '#676E95',\n ]),\n 'Material Deep Ocean': createDarkTheme([\n '#0F111A', '#8F93A2', '#FFFFFF', '#84ffff', '#1F2233',\n '#41465b', '#4B526D', '#090B10', '#eeffff', '#c3e88d',\n '#c792ea', '#f78c6c', '#89ddff', '#80cbc4', '#8F93A2',\n '#f07178', '#82aaff', '#ffcb6b', '#717CB4',\n ]),\n 'Monokai Pro': createDarkTheme([\n '#2D2A2E', '#fcfcfa', '#FFFFFF', '#ffd866', '#5b595c',\n '#423f43', '#939293', '#221F22', '#FCFCFA', '#FFD866',\n '#FF6188', '#AB9DF2', '#FF6188', '#78DCE8', '#fcfcfa',\n '#FF6188', '#A9DC76', '#78DCE8', '#727072',\n ]),\n Dracula: createDarkTheme([\n '#282A36', '#F8F8F2', '#8BE9FD', '#FF79C5', '#6272A4',\n '#21222C', '#6272A4', '#191A21', '#F8F8F2', '#F1FA8C',\n '#FF79C6', '#BD93F9', '#FF79C6', '#F1FA8C', '#F8F8F2',\n '#FF79C6', '#50FA78', '#50FA7B', '#6272A4',\n ]),\n 'Arc Dark': createDarkTheme([\n '#2f343f', '#D3DAE3', '#FFFFFF', '#42A5F5', '#3F3F46',\n '#404552', '#8b9eb5', '#262b33', '#CF6A4C', '#8F9D6A',\n '#9B859D', '#CDA869', '#A7A7A7', '#7587A6', '#D3DAE3',\n '#CF6A4C', '#7587A6', '#F9EE98', '#747C84',\n ]),\n 'Atom One Dark': createDarkTheme([\n '#282C34', '#979FAD', '#FFFFFF', '#2979ff', '#383D48',\n '#2e3239', '#979FAD', '#21252B', '#D19A66', '#98C379',\n '#C679DD', '#D19A66', '#61AFEF', '#56B6C2', '#979FAD',\n '#F07178', '#61AEEF', '#E5C17C', '#59626F',\n ]),\n 'Atom One Light': createLightTheme([\n '#FAFAFA', '#232324', '#232324', '#2979ff', '#EAEAEB',\n '#DBDBDC', '#9D9D9F', '#FFFFFF', '#986801', '#50A14E',\n '#A626A4', '#986801', '#4078F2', '#0184BC', '#232324',\n '#E4564A', '#4078F2', '#C18401', '#A0A1A7',\n ]),\n 'Solarized Dark': createDarkTheme([\n '#002B36', '#839496', '#FFFFFF', '#d33682', '#11353F',\n '#0D3640', '#586e75', '#00252E', '#268BD2', '#2AA198',\n '#859900', '#D33682', '#93A1A1', '#268BD2', '#839496',\n '#268BD2', '#B58900', '#B58900', '#657B83',\n ]),\n 'Solarized Light': createLightTheme([\n '#fdf6e3', '#586e75', '#002b36', '#d33682', '#F6F0DE',\n '#f7f2e2', '#93a1a1', '#eee8d5', '#268BD2', '#2AA198',\n '#859900', '#D33682', '#657B83', '#268BD2', '#586e75',\n '#268BD2', '#B58900', '#657B83', '#93A1A1',\n ]),\n Github: createLightTheme([\n '#F7F8FA', '#5B6168', '#FFFFFF', '#79CB60', '#CCE5FF',\n '#DFE1E4', '#292D31', '#FFFFFF', '#24292E', '#032F62',\n '#D73A49', '#005CC5', '#D73A49', '#005CC5', '#5B6168',\n '#22863A', '#6F42C1', '#6F42C1', '#6A737D',\n ]),\n 'Night Owl': createDarkTheme([\n '#011627', '#b0bec5', '#ffffff', '#7e57c2', '#152C3B',\n '#2a373e', '#607d8b', '#001424', '#addb67', '#ecc48d',\n '#c792ea', '#f78c6c', '#c792ea', '#80CBC4', '#b0bec5',\n '#7fdbca', '#82AAFF', '#FAD430', '#637777',\n ]),\n 'Light Owl': createLightTheme([\n '#FAFAFA', '#546e7a', '#403f53', '#269386', '#E0E7EA',\n '#efefef', '#403F53', '#FAFAFA', '#0C969B', '#c96765',\n '#994cc3', '#aa0982', '#7d818b', '#994cc3', '#546e7a',\n '#994cc3', '#4876d6', '#4876d6', '#637777',\n ]),\n}\n","import toStr from 'licia/toStr'\nimport each from 'licia/each'\nimport filter from 'licia/filter'\nimport isStr from 'licia/isStr'\nimport keys from 'licia/keys'\nimport kebabCase from 'licia/kebabCase'\nimport defaults from 'licia/defaults'\nimport themes from './themes'\n\nlet styleList = []\nlet scale = 1\n\nlet curTheme = themes.Light\n\nconst exports = function (css, container) {\n css = toStr(css)\n\n for (let i = 0, len = styleList.length; i < len; i++) {\n if (styleList[i].css === css) return\n }\n\n container = container || exports.container || document.head\n const el = document.createElement('style')\n\n el.type = 'text/css'\n container.appendChild(el)\n\n const style = { css, el, container }\n resetStyle(style)\n styleList.push(style)\n\n return style\n}\n\nexports.setScale = function (s) {\n scale = s\n resetStyles()\n}\n\nexports.setTheme = function (theme) {\n if (isStr(theme)) {\n curTheme = themes[theme] || themes.Light\n } else {\n curTheme = defaults(theme, themes.Light)\n }\n\n resetStyles()\n}\n\nexports.getCurTheme = () => curTheme\n\nexports.getThemes = () => themes\n\nexports.clear = function () {\n each(styleList, ({ container, el }) => container.removeChild(el))\n styleList = []\n}\n\nexports.remove = function (style) {\n styleList = filter(styleList, (s) => s !== style)\n\n style.container.removeChild(style.el)\n}\n\nfunction resetStyles() {\n each(styleList, (style) => resetStyle(style))\n}\n\nfunction resetStyle({ css, el }) {\n css = css.replace(/(\\d+)px/g, ($0, $1) => +$1 * scale + 'px')\n css = css.replace(/_/g, 'eruda-')\n const _keys = keys(themes.Light)\n each(_keys, (key) => {\n css = css.replace(\n new RegExp(`var\\\\(--${kebabCase(key)}\\\\)`, 'g'),\n curTheme[key]\n )\n })\n el.innerText = css\n}\n\nexport default exports\n","import Tool from '../DevTools/Tool'\nimport $ from 'licia/$'\nimport LocalStore from 'licia/LocalStore'\nimport uniqId from 'licia/uniqId'\nimport each from 'licia/each'\nimport filter from 'licia/filter'\nimport isStr from 'licia/isStr'\nimport contain from 'licia/contain'\nimport clone from 'licia/clone'\nimport evalCss from '../lib/evalCss'\nimport LunaSetting from 'luna-setting'\n\nexport default class Settings extends Tool {\n constructor() {\n super()\n\n this._style = evalCss(require('./Settings.scss'))\n\n this.name = 'settings'\n this._settings = []\n }\n init($el) {\n super.init($el)\n\n this._setting = new LunaSetting($el.get(0))\n\n this._bindEvent()\n }\n remove(config, key) {\n if (isStr(config)) {\n const self = this\n this._$el.find('.luna-setting-item-title').each(function () {\n const $this = $(this)\n if ($this.text() === config) {\n self._setting.remove(this.settingItem)\n }\n })\n } else {\n this._settings = filter(this._settings, (setting) => {\n if (setting.config === config && setting.key === key) {\n this._setting.remove(setting.item)\n return false\n }\n\n return true\n })\n }\n\n this._cleanSeparator()\n\n return this\n }\n destroy() {\n this._setting.destroy()\n super.destroy()\n\n evalCss.remove(this._style)\n }\n clear() {\n this._settings = []\n this._setting.clear()\n }\n switch(config, key, desc) {\n const id = this._genId('settings')\n\n const item = this._setting.appendCheckbox(id, !!config.get(key), desc)\n this._settings.push({ config, key, id, item })\n\n return this\n }\n select(config, key, desc, selections) {\n const id = this._genId('settings')\n\n const selectOptions = {}\n each(selections, (selection) => (selectOptions[selection] = selection))\n const item = this._setting.appendSelect(\n id,\n config.get(key),\n '',\n desc,\n selectOptions\n )\n this._settings.push({ config, key, id, item })\n\n return this\n }\n range(config, key, desc, { min = 0, max = 1, step = 0.1 }) {\n const id = this._genId('settings')\n\n const item = this._setting.appendNumber(id, config.get(key), desc, {\n max,\n min,\n step,\n range: true,\n })\n this._settings.push({ config, key, min, max, step, id, item })\n\n return this\n }\n button(text, handler) {\n this._setting.appendButton(text, handler)\n\n return this\n }\n separator() {\n this._setting.appendSeparator()\n\n return this\n }\n text(text) {\n this._setting.appendTitle(text)\n\n return this\n }\n // Merge adjacent separators\n _cleanSeparator() {\n const children = clone(this._$el.get(0).children)\n\n function isSeparator(node) {\n return contain(node.getAttribute('class'), 'luna-setting-item-separator')\n }\n\n for (let i = 0, len = children.length; i < len - 1; i++) {\n if (isSeparator(children[i]) && isSeparator(children[i + 1])) {\n $(children[i]).remove()\n }\n }\n }\n _genId() {\n return uniqId('eruda-settings')\n }\n _getSetting(id) {\n let ret\n\n each(this._settings, (setting) => {\n if (setting.id === id) ret = setting\n })\n\n return ret\n }\n _bindEvent() {\n this._setting.on('change', (id, val) => {\n const setting = this._getSetting(id)\n setting.config.set(setting.key, val)\n })\n }\n static createCfg(name, data) {\n return new LocalStore('eruda-' + name, data)\n }\n}\n","import $ from 'licia/$'\nimport $attr from 'licia/$attr'\nimport $class from 'licia/$class'\nimport $css from 'licia/$css'\nimport $data from 'licia/$data'\nimport $event from 'licia/$event'\nimport $insert from 'licia/$insert'\nimport $offset from 'licia/$offset'\nimport $property from 'licia/$property'\nimport $remove from 'licia/$remove'\nimport $safeEls from 'licia/$safeEls'\nimport $show from 'licia/$show'\nimport Class from 'licia/Class'\nimport Emitter from 'licia/Emitter'\nimport Enum from 'licia/Enum'\nimport LocalStore from 'licia/LocalStore'\nimport Logger from 'licia/Logger'\nimport MediaQuery from 'licia/MediaQuery'\nimport MutationObserver from 'licia/MutationObserver'\nimport Select from 'licia/Select'\nimport SingleEmitter from 'licia/SingleEmitter'\nimport Stack from 'licia/Stack'\nimport Store from 'licia/Store'\nimport Url from 'licia/Url'\nimport ajax from 'licia/ajax'\nimport allKeys from 'licia/allKeys'\nimport before from 'licia/before'\nimport camelCase from 'licia/camelCase'\nimport castPath from 'licia/castPath'\nimport clamp from 'licia/clamp'\nimport clone from 'licia/clone'\nimport cloneDeep from 'licia/cloneDeep'\nimport concat from 'licia/concat'\nimport contain from 'licia/contain'\nimport copy from 'licia/copy'\nimport create from 'licia/create'\nimport createAssigner from 'licia/createAssigner'\nimport dateFormat from 'licia/dateFormat'\nimport debounce from 'licia/debounce'\nimport defaults from 'licia/defaults'\nimport defineProp from 'licia/defineProp'\nimport delegate from 'licia/delegate'\nimport detectBrowser from 'licia/detectBrowser'\nimport detectOs from 'licia/detectOs'\nimport difference from 'licia/difference'\nimport each from 'licia/each'\nimport endWith from 'licia/endWith'\nimport escape from 'licia/escape'\nimport escapeJsStr from 'licia/escapeJsStr'\nimport escapeRegExp from 'licia/escapeRegExp'\nimport extend from 'licia/extend'\nimport extendOwn from 'licia/extendOwn'\nimport extractUrls from 'licia/extractUrls'\nimport filter from 'licia/filter'\nimport flatten from 'licia/flatten'\nimport freeze from 'licia/freeze'\nimport getProto from 'licia/getProto'\nimport has from 'licia/has'\nimport highlight from 'licia/highlight'\nimport identity from 'licia/identity'\nimport idxOf from 'licia/idxOf'\nimport inherits from 'licia/inherits'\nimport isArgs from 'licia/isArgs'\nimport isArr from 'licia/isArr'\nimport isArrLike from 'licia/isArrLike'\nimport isBool from 'licia/isBool'\nimport isBrowser from 'licia/isBrowser'\nimport isBuffer from 'licia/isBuffer'\nimport isDarkMode from 'licia/isDarkMode'\nimport isDate from 'licia/isDate'\nimport isEl from 'licia/isEl'\nimport isEmpty from 'licia/isEmpty'\nimport isErr from 'licia/isErr'\nimport isFn from 'licia/isFn'\nimport isHidden from 'licia/isHidden'\nimport isMatch from 'licia/isMatch'\nimport isMiniProgram from 'licia/isMiniProgram'\nimport isMobile from 'licia/isMobile'\nimport isNaN from 'licia/isNaN'\nimport isNil from 'licia/isNil'\nimport isNull from 'licia/isNull'\nimport isNum from 'licia/isNum'\nimport isObj from 'licia/isObj'\nimport isPrimitive from 'licia/isPrimitive'\nimport isPromise from 'licia/isPromise'\nimport isRegExp from 'licia/isRegExp'\nimport isSorted from 'licia/isSorted'\nimport isStr from 'licia/isStr'\nimport isUndef from 'licia/isUndef'\nimport kebabCase from 'licia/kebabCase'\nimport keys from 'licia/keys'\nimport last from 'licia/last'\nimport linkify from 'licia/linkify'\nimport loadJs from 'licia/loadJs'\nimport lowerCase from 'licia/lowerCase'\nimport lpad from 'licia/lpad'\nimport ltrim from 'licia/ltrim'\nimport map from 'licia/map'\nimport mapObj from 'licia/mapObj'\nimport matcher from 'licia/matcher'\nimport memStorage from 'licia/memStorage'\nimport memoize from 'licia/memoize'\nimport mergeArr from 'licia/mergeArr'\nimport meta from 'licia/meta'\nimport ms from 'licia/ms'\nimport nextTick from 'licia/nextTick'\nimport noop from 'licia/noop'\nimport now from 'licia/now'\nimport objToStr from 'licia/objToStr'\nimport once from 'licia/once'\nimport optimizeCb from 'licia/optimizeCb'\nimport orientation from 'licia/orientation'\nimport partial from 'licia/partial'\nimport perfNow from 'licia/perfNow'\nimport pick from 'licia/pick'\nimport prefix from 'licia/prefix'\nimport property from 'licia/property'\nimport query from 'licia/query'\nimport raf from 'licia/raf'\nimport repeat from 'licia/repeat'\nimport restArgs from 'licia/restArgs'\nimport reverse from 'licia/reverse'\nimport root from 'licia/root'\nimport rtrim from 'licia/rtrim'\nimport safeCb from 'licia/safeCb'\nimport safeGet from 'licia/safeGet'\nimport safeSet from 'licia/safeSet'\nimport sameOrigin from 'licia/sameOrigin'\nimport slice from 'licia/slice'\nimport some from 'licia/some'\nimport sortKeys from 'licia/sortKeys'\nimport splitCase from 'licia/splitCase'\nimport startWith from 'licia/startWith'\nimport stringify from 'licia/stringify'\nimport stringifyAll from 'licia/stringifyAll'\nimport throttle from 'licia/throttle'\nimport toArr from 'licia/toArr'\nimport toInt from 'licia/toInt'\nimport toNum from 'licia/toNum'\nimport toSrc from 'licia/toSrc'\nimport toStr from 'licia/toStr'\nimport trim from 'licia/trim'\nimport type from 'licia/type'\nimport types from 'licia/types'\nimport uncaught from 'licia/uncaught'\nimport uniqId from 'licia/uniqId'\nimport unique from 'licia/unique'\nimport upperFirst from 'licia/upperFirst'\nimport values from 'licia/values'\nimport viewportScale from 'licia/viewportScale'\nimport wrap from 'licia/wrap'\nimport xpath from 'licia/xpath'\nimport html from 'licia/html'\nimport evalCssUtil from './evalCss'\n\n// https://stackoverflow.com/questions/46318395/detecting-mobile-device-notch\nexport function hasSafeArea() {\n let proceed = false\n const div = document.createElement('div')\n if (CSS.supports('padding-bottom: env(safe-area-inset-bottom)')) {\n div.style.paddingBottom = 'env(safe-area-inset-bottom)'\n proceed = true\n } else if (CSS.supports('padding-bottom: constant(safe-area-inset-bottom)')) {\n div.style.paddingBottom = 'constant(safe-area-inset-bottom)'\n proceed = true\n }\n if (proceed) {\n document.body.appendChild(div)\n const calculatedPadding = parseInt(\n window.getComputedStyle(div).paddingBottom\n )\n document.body.removeChild(div)\n if (calculatedPadding > 0) {\n return true\n }\n }\n return false\n}\n\nexport function escapeJsonStr(str) {\n /* eslint-disable quotes */\n return escapeJsStr(str).replace(/\\\\'/g, \"'\").replace(/\\t/g, '\\\\t')\n}\n\nexport function safeStorage(type, memReplacement) {\n if (isUndef(memReplacement)) memReplacement = true\n\n let ret\n\n switch (type) {\n case 'local':\n ret = window.localStorage\n break\n case 'session':\n ret = window.sessionStorage\n break\n }\n\n try {\n // Safari private browsing\n const x = 'test-localStorage-' + Date.now()\n ret.setItem(x, x)\n const y = ret.getItem(x)\n ret.removeItem(x)\n if (y !== x) throw new Error()\n } catch (e) {\n if (memReplacement) return memStorage\n return\n }\n\n return ret\n}\n\nexport function getFileName(url) {\n let ret = last(url.split('/'))\n\n if (ret === '') {\n url = new Url(url)\n ret = url.hostname\n }\n\n return ret\n}\n\nexport function pxToNum(str) {\n return toNum(str.replace('px', ''))\n}\n\nexport function isErudaEl(el) {\n while (el) {\n if (el.id === 'eruda') return true\n el = el.parentNode\n }\n\n return false\n}\n\nexport function isChobitsuEl(el) {\n while (el) {\n let className = ''\n if (el.getAttribute) {\n className = el.getAttribute('class') || ''\n }\n if (contain(className, '__chobitsu-hide__')) {\n return true\n }\n el = el.parentNode\n }\n\n return false\n}\n\nexport const evalCss = evalCssUtil\n\nexport function classPrefix(str) {\n if (/<[^>]*>/g.test(str)) {\n try {\n const tree = html.parse(str)\n traverseTree(tree, (node) => {\n if (node.attrs && node.attrs.class) {\n node.attrs.class = processClass(node.attrs.class)\n }\n })\n return html.stringify(tree)\n } catch (e) {\n return processClass(str)\n }\n }\n\n return processClass(str)\n}\n\nfunction traverseTree(tree, handler) {\n for (let i = 0, len = tree.length; i < len; i++) {\n const node = tree[i]\n handler(node)\n if (node.content) {\n traverseTree(node.content, handler)\n }\n }\n}\n\nfunction processClass(str) {\n const prefix = `eruda-`\n\n return map(trim(str).split(/\\s+/), (singleClass) => {\n if (contain(singleClass, prefix)) {\n return singleClass\n }\n\n return singleClass.replace(/[\\w-]+/, (match) => `${prefix}${match}`)\n }).join(' ')\n}\n\nconst hasTouchSupport = 'ontouchstart' in root\nconst touchEvents = {\n start: 'touchstart',\n move: 'touchmove',\n end: 'touchend',\n}\nconst mouseEvents = {\n start: 'mousedown',\n move: 'mousemove',\n end: 'mouseup',\n}\n\nexport function drag(name) {\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name]\n}\n\nexport function eventClient(type, e) {\n const name = type === 'x' ? 'clientX' : 'clientY'\n\n if (e[name]) {\n return e[name]\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name]\n }\n\n return 0\n}\n\nexport function eventPage(type, e) {\n const name = type === 'x' ? 'pageX' : 'pageY'\n\n if (e[name]) {\n return e[name]\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name]\n }\n\n return 0\n}\n\n// To be removed in 3.0.0\nexport {\n $,\n $attr,\n $class,\n $css,\n $data,\n $event,\n $insert,\n $offset,\n $property,\n $remove,\n $safeEls,\n $show,\n Class,\n Emitter,\n Enum,\n LocalStore,\n Logger,\n MediaQuery,\n MutationObserver,\n Select,\n SingleEmitter,\n Stack,\n Store,\n Url,\n ajax,\n allKeys,\n before,\n camelCase,\n castPath,\n clamp,\n clone,\n cloneDeep,\n concat,\n contain,\n copy,\n create,\n createAssigner,\n dateFormat,\n debounce,\n defaults,\n defineProp,\n delegate,\n detectBrowser,\n detectOs,\n difference,\n each,\n endWith,\n escape,\n escapeJsStr,\n escapeRegExp,\n extend,\n extendOwn,\n extractUrls,\n filter,\n flatten,\n freeze,\n getProto,\n has,\n highlight,\n identity,\n idxOf,\n inherits,\n isArgs,\n isArr,\n isArrLike,\n isBool,\n isBrowser,\n isBuffer,\n isDarkMode,\n isDate,\n isEl,\n isEmpty,\n isErr,\n isFn,\n isHidden,\n isMatch,\n isMiniProgram,\n isMobile,\n isNaN,\n isNil,\n isNull,\n isNum,\n isObj,\n isPrimitive,\n isPromise,\n isRegExp,\n isSorted,\n isStr,\n isUndef,\n kebabCase,\n keys,\n last,\n linkify,\n loadJs,\n lowerCase,\n lpad,\n ltrim,\n map,\n mapObj,\n matcher,\n memStorage,\n memoize,\n mergeArr,\n meta,\n ms,\n nextTick,\n noop,\n now,\n objToStr,\n once,\n optimizeCb,\n orientation,\n partial,\n perfNow,\n pick,\n prefix,\n property,\n query,\n raf,\n repeat,\n restArgs,\n reverse,\n root,\n rtrim,\n safeCb,\n safeGet,\n safeSet,\n sameOrigin,\n slice,\n some,\n sortKeys,\n splitCase,\n startWith,\n stringify,\n stringifyAll,\n throttle,\n toArr,\n toInt,\n toNum,\n toSrc,\n toStr,\n trim,\n type,\n types,\n uncaught,\n uniqId,\n unique,\n upperFirst,\n values,\n viewportScale,\n wrap,\n xpath,\n}\n","import emitter from '../lib/emitter'\nimport Settings from '../Settings/Settings'\nimport Emitter from 'licia/Emitter'\nimport $ from 'licia/$'\nimport nextTick from 'licia/nextTick'\nimport orientation from 'licia/orientation'\nimport { pxToNum, classPrefix as c, drag, eventClient } from '../lib/util'\nimport evalCss from '../lib/evalCss'\n\nconst $document = $(document)\n\nexport default class EntryBtn extends Emitter {\n constructor($container) {\n super()\n\n this._style = evalCss(require('./EntryBtn.scss'))\n\n this._$container = $container\n this._initTpl()\n this._bindEvent()\n this._registerListener()\n }\n hide() {\n this._$el.hide()\n }\n show() {\n this._$el.show()\n }\n setPos(pos) {\n if (this._isOutOfRange(pos)) {\n pos = this._getDefPos()\n }\n\n this._$el.css({\n left: pos.x,\n top: pos.y,\n })\n\n this.config.set('pos', pos)\n }\n getPos() {\n return this.config.get('pos')\n }\n destroy() {\n evalCss.remove(this._style)\n this._unregisterListener()\n this._$el.remove()\n }\n _isOutOfRange(pos) {\n pos = pos || this.config.get('pos')\n const defPos = this._getDefPos()\n\n return (\n pos.x > defPos.x + 10 || pos.x < 0 || pos.y < 0 || pos.y > defPos.y + 10\n )\n }\n _registerListener() {\n this._scaleListener = () =>\n nextTick(() => {\n if (this._isOutOfRange()) this._resetPos()\n })\n emitter.on(emitter.SCALE, this._scaleListener)\n }\n _unregisterListener() {\n emitter.off(emitter.SCALE, this._scaleListener)\n }\n _initTpl() {\n const $container = this._$container\n\n $container.append(\n c('
')\n )\n this._$el = $container.find('.eruda-entry-btn')\n }\n _resetPos(orientationChanged) {\n const cfg = this.config\n let pos = cfg.get('pos')\n const defPos = this._getDefPos()\n\n if (!cfg.get('rememberPos') || orientationChanged) {\n pos = defPos\n }\n\n this.setPos(pos)\n }\n _onDragStart = (e) => {\n const $el = this._$el\n $el.addClass(c('active'))\n\n this._isClick = true\n e = e.origEvent\n this._startX = eventClient('x', e)\n this._oldX = pxToNum($el.css('left'))\n this._oldY = pxToNum($el.css('top'))\n this._startY = eventClient('y', e)\n $document.on(drag('move'), this._onDragMove)\n $document.on(drag('end'), this._onDragEnd)\n }\n _onDragMove = (e) => {\n const btnSize = this._$el.get(0).offsetWidth\n const maxWidth = this._$container.get(0).offsetWidth\n const maxHeight = this._$container.get(0).offsetHeight\n\n e = e.origEvent\n const deltaX = eventClient('x', e) - this._startX\n const deltaY = eventClient('y', e) - this._startY\n if (Math.abs(deltaX) > 3 || Math.abs(deltaY) > 3) {\n this._isClick = false\n }\n let newX = this._oldX + deltaX\n let newY = this._oldY + deltaY\n if (newX < 0) {\n newX = 0\n } else if (newX > maxWidth - btnSize) {\n newX = maxWidth - btnSize\n }\n if (newY < 0) {\n newY = 0\n } else if (newY > maxHeight - btnSize) {\n newY = maxHeight - btnSize\n }\n this._$el.css({\n left: newX,\n top: newY,\n })\n }\n _onDragEnd = (e) => {\n const $el = this._$el\n\n if (this._isClick) {\n this.emit('click')\n }\n\n this._onDragMove(e)\n $document.off(drag('move'), this._onDragMove)\n $document.off(drag('end'), this._onDragEnd)\n\n const cfg = this.config\n\n if (cfg.get('rememberPos')) {\n cfg.set('pos', {\n x: pxToNum($el.css('left')),\n y: pxToNum($el.css('top')),\n })\n }\n\n $el.rmClass('eruda-active')\n }\n _bindEvent() {\n const $el = this._$el\n\n $el.on(drag('start'), this._onDragStart)\n\n orientation.on('change', () => this._resetPos(true))\n window.addEventListener('resize', () => this._resetPos())\n }\n initCfg(settings) {\n const cfg = (this.config = Settings.createCfg('entry-button', {\n rememberPos: true,\n pos: this._getDefPos(),\n }))\n\n settings.switch(cfg, 'rememberPos', 'Remember Entry Button Position')\n\n this._resetPos()\n }\n _getDefPos() {\n const minWidth = this._$el.get(0).offsetWidth + 10\n\n return {\n x: window.innerWidth - minWidth,\n y: window.innerHeight - minWidth,\n }\n }\n}\n","import Logger from 'licia/Logger'\n\nlet logger\n\nexport default logger = new Logger(\n '[Eruda]',\n ENV === 'production' ? 'warn' : 'debug'\n)\n\nlogger.formatter = function (type, argList) {\n argList.unshift(this.name)\n\n return argList\n}\n","import logger from '../lib/logger'\nimport Tool from './Tool'\nimport Settings from '../Settings/Settings'\nimport Emitter from 'licia/Emitter'\nimport defaults from 'licia/defaults'\nimport keys from 'licia/keys'\nimport last from 'licia/last'\nimport each from 'licia/each'\nimport isNum from 'licia/isNum'\nimport nextTick from 'licia/nextTick'\nimport $ from 'licia/$'\nimport toNum from 'licia/toNum'\nimport isDarkMode from 'licia/isDarkMode'\nimport extend from 'licia/extend'\nimport isStr from 'licia/isStr'\nimport startWith from 'licia/startWith'\nimport ready from 'licia/ready'\nimport evalCss from '../lib/evalCss'\nimport emitter from '../lib/emitter'\nimport { isDarkTheme } from '../lib/themes'\nimport LunaNotification from 'luna-notification'\nimport LunaModal from 'luna-modal'\nimport LunaTab from 'luna-tab'\nimport {\n classPrefix as c,\n drag,\n eventClient,\n hasSafeArea,\n safeStorage,\n} from '../lib/util'\n\nexport default class DevTools extends Emitter {\n constructor($container, { defaults = {} } = {}) {\n super()\n\n this._defCfg = extend(\n {\n transparency: 1,\n displaySize: 80,\n theme: isDarkMode() ? 'Dark' : 'Light',\n },\n defaults\n )\n\n this._style = evalCss(require('./DevTools.scss'))\n\n this.$container = $container\n this._isShow = false\n this._opacity = 1\n this._tools = {}\n this._isResizing = false\n this._resizeTimer = null\n this._resizeStartY = 0\n this._resizeStartSize = 0\n\n this._initTpl()\n this._initTab()\n this._initNotification()\n this._initModal()\n\n ready(() => this._checkSafeArea())\n this._bindEvent()\n }\n show() {\n this._isShow = true\n\n this._$el.show()\n this._tab.updateSlider()\n\n // Need a delay after show to enable transition effect.\n setTimeout(() => {\n this._$el.css('opacity', this._opacity)\n }, 50)\n\n this.emit('show')\n\n return this\n }\n hide() {\n this._isShow = false\n this.emit('hide')\n\n this._$el.css({ opacity: 0 })\n setTimeout(() => this._$el.hide(), 300)\n\n return this\n }\n toggle() {\n return this._isShow ? this.hide() : this.show()\n }\n add(tool) {\n const tab = this._tab\n\n if (!(tool instanceof Tool)) {\n const { init, show, hide, destroy } = new Tool()\n defaults(tool, { init, show, hide, destroy })\n }\n\n let name = tool.name\n if (!name) return logger.error('You must specify a name for a tool')\n name = name.toLowerCase()\n if (this._tools[name]) return logger.warn(`Tool ${name} already exists`)\n\n this._$tools.prepend(\n `
`\n )\n tool.init(this._$tools.find(`.${c(name)}.${c('tool')}`), this)\n tool.active = false\n this._tools[name] = tool\n\n if (name === 'settings') {\n tab.append({\n id: name,\n title: name,\n })\n } else {\n tab.insert(tab.length - 1, {\n id: name,\n title: name,\n })\n }\n\n return this\n }\n remove(name) {\n const tools = this._tools\n\n if (!tools[name]) return logger.warn(`Tool ${name} doesn't exist`)\n\n this._tab.remove(name)\n\n const tool = tools[name]\n delete tools[name]\n if (tool.active) {\n const toolKeys = keys(tools)\n if (toolKeys.length > 0) this.showTool(tools[last(toolKeys)].name)\n }\n tool.destroy()\n\n return this\n }\n removeAll() {\n each(this._tools, (tool) => this.remove(tool.name))\n\n return this\n }\n get(name) {\n const tool = this._tools[name]\n\n if (tool) return tool\n }\n showTool(name) {\n if (this._curTool === name) return this\n this._curTool = name\n\n const tools = this._tools\n\n const tool = tools[name]\n if (!tool) return\n\n let lastTool = {}\n\n each(tools, (tool) => {\n if (tool.active) {\n lastTool = tool\n tool.active = false\n tool.hide()\n }\n })\n\n tool.active = true\n tool.show()\n\n this._tab.select(name)\n\n this.emit('showTool', name, lastTool)\n\n return this\n }\n initCfg(settings) {\n const cfg = (this.config = Settings.createCfg('dev-tools', this._defCfg))\n\n this._setTransparency(cfg.get('transparency'))\n this._setDisplaySize(cfg.get('displaySize'))\n this._setTheme(cfg.get('theme'))\n\n cfg.on('change', (key, val) => {\n switch (key) {\n case 'transparency':\n return this._setTransparency(val)\n case 'displaySize':\n return this._setDisplaySize(val)\n case 'theme':\n return this._setTheme(val)\n }\n })\n\n settings\n .separator()\n .select(cfg, 'theme', 'Theme', keys(evalCss.getThemes()))\n .range(cfg, 'transparency', 'Transparency', {\n min: 0.2,\n max: 1,\n step: 0.01,\n })\n .range(cfg, 'displaySize', 'Display Size', {\n min: 40,\n max: 100,\n step: 1,\n })\n .button('Restore defaults and reload', function () {\n const store = safeStorage('local')\n\n const data = JSON.parse(JSON.stringify(store))\n each(data, (val, key) => {\n if (!isStr(val)) {\n return\n }\n\n if (startWith(key, 'eruda')) {\n store.removeItem(key)\n }\n })\n\n window.location.reload()\n })\n .separator()\n }\n notify(content, options) {\n this._notification.notify(content, options)\n }\n destroy() {\n evalCss.remove(this._style)\n this.removeAll()\n this._tab.destroy()\n this._$el.remove()\n window.removeEventListener('resize', this._checkSafeArea)\n emitter.off(emitter.SCALE, this._updateTabHeight)\n }\n _checkSafeArea = () => {\n const { $container } = this\n\n if (hasSafeArea()) {\n $container.addClass(c('safe-area'))\n } else {\n $container.rmClass(c('safe-area'))\n }\n }\n _setTheme(theme) {\n const { $container } = this\n\n if (isDarkTheme(theme)) {\n $container.addClass(c('dark'))\n } else {\n $container.rmClass(c('dark'))\n }\n evalCss.setTheme(theme)\n }\n _setTransparency(opacity) {\n if (!isNum(opacity)) return\n\n this._opacity = opacity\n if (this._isShow) this._$el.css({ opacity })\n }\n _setDisplaySize(height) {\n if (!isNum(height)) return\n\n this._$el.css({ height: height + '%' })\n }\n _initTpl() {\n const $container = this.$container\n\n $container.append(\n c(`\n \n `)\n )\n\n this._$el = $container.find(c('.dev-tools'))\n this._$tools = this._$el.find(c('.tools'))\n }\n _initTab() {\n this._tab = new LunaTab(this._$el.find(c('.tab')).get(0), {\n height: 40,\n })\n this._tab.on('select', (id) => this.showTool(id))\n }\n _updateTabHeight = (scale) => {\n this._tab.setOption('height', 40 * scale)\n nextTick(() => {\n this._tab.updateSlider()\n })\n }\n _initNotification() {\n this._notification = new LunaNotification(\n this._$el.find(c('.notification')).get(0),\n {\n position: {\n x: 'center',\n y: 'top',\n },\n }\n )\n }\n _initModal() {\n LunaModal.setContainer(this._$el.find(c('.modal')).get(0))\n }\n _bindEvent() {\n const $resizer = this._$el.find(c('.resizer'))\n const $navBar = this._$el.find(c('.nav-bar'))\n const $document = $(document)\n\n const startListener = (e) => {\n e.preventDefault()\n e.stopPropagation()\n\n e = e.origEvent\n this._isResizing = true\n this._resizeStartSize = this.config.get('displaySize')\n this._resizeStartY = eventClient('y', e)\n\n $resizer.css('height', '100%')\n\n $document.on(drag('move'), moveListener)\n $document.on(drag('end'), endListener)\n }\n const moveListener = (e) => {\n if (!this._isResizing) {\n return\n }\n e.preventDefault()\n e.stopPropagation()\n\n e = e.origEvent\n const deltaY =\n ((this._resizeStartY - eventClient('y', e)) / window.innerHeight) * 100\n let displaySize = this._resizeStartSize + deltaY\n if (displaySize < 40) {\n displaySize = 40\n } else if (displaySize > 100) {\n displaySize = 100\n }\n this.config.set('displaySize', toNum(displaySize.toFixed(2)))\n }\n const endListener = () => {\n clearTimeout(this._resizeTimer)\n this._isResizing = false\n\n $resizer.css('height', 10)\n\n $document.off(drag('move'), moveListener)\n $document.off(drag('end'), endListener)\n }\n $resizer.css('height', 10)\n $resizer.on(drag('start'), startListener)\n\n $navBar.on('contextmenu', (e) => e.preventDefault())\n this.$container.on('click', (e) => e.stopPropagation())\n window.addEventListener('resize', this._checkSafeArea)\n\n emitter.on(emitter.SCALE, this._updateTabHeight)\n }\n}\n","import Tool from '../DevTools/Tool'\nimport noop from 'licia/noop'\nimport $ from 'licia/$'\nimport toStr from 'licia/toStr'\nimport isFn from 'licia/isFn'\nimport Emitter from 'licia/Emitter'\nimport isStr from 'licia/isStr'\nimport isRegExp from 'licia/isRegExp'\nimport uncaught from 'licia/uncaught'\nimport trim from 'licia/trim'\nimport upperFirst from 'licia/upperFirst'\nimport isHidden from 'licia/isHidden'\nimport isNull from 'licia/isNull'\nimport isArr from 'licia/isArr'\nimport extend from 'licia/extend'\nimport evalCss from '../lib/evalCss'\nimport Settings from '../Settings/Settings'\nimport LunaConsole from 'luna-console'\nimport LunaModal from 'luna-modal'\nimport { classPrefix as c } from '../lib/util'\n\nuncaught.start()\n\nexport default class Console extends Tool {\n constructor({ name = 'console' } = {}) {\n super()\n\n Emitter.mixin(this)\n\n this.name = name\n this._selectedLog = null\n }\n init($el, container) {\n super.init($el)\n this._container = container\n\n this._appendTpl()\n\n this._initCfg()\n\n this._initLogger()\n this._exposeLogger()\n this._bindEvent()\n }\n show() {\n super.show()\n this._handleShow()\n }\n overrideConsole() {\n const origConsole = (this._origConsole = {})\n const winConsole = window.console\n\n CONSOLE_METHOD.forEach((name) => {\n let origin = (origConsole[name] = noop)\n if (winConsole[name]) {\n origin = origConsole[name] = winConsole[name].bind(winConsole)\n }\n\n winConsole[name] = (...args) => {\n this[name](...args)\n origin(...args)\n }\n })\n\n return this\n }\n setGlobal(name, val) {\n this._logger.setGlobal(name, val)\n }\n restoreConsole() {\n if (!this._origConsole) return this\n\n CONSOLE_METHOD.forEach(\n (name) => (window.console[name] = this._origConsole[name])\n )\n delete this._origConsole\n\n return this\n }\n catchGlobalErr() {\n uncaught.addListener(this._handleErr)\n\n return this\n }\n ignoreGlobalErr() {\n uncaught.rmListener(this._handleErr)\n\n return this\n }\n filter(filter) {\n const $filterText = this._$filterText\n const logger = this._logger\n\n if (isStr(filter)) {\n $filterText.text(filter)\n logger.setOption('filter', trim(filter))\n } else if (isRegExp(filter)) {\n $filterText.text(toStr(filter))\n logger.setOption('filter', filter)\n } else if (isFn(filter)) {\n $filterText.text('Æ’')\n logger.setOption('filter', filter)\n }\n }\n destroy() {\n this._logger.destroy()\n super.destroy()\n\n this._container.off('show', this._handleShow)\n\n if (this._style) {\n evalCss.remove(this._style)\n }\n this.ignoreGlobalErr()\n this.restoreConsole()\n this._rmCfg()\n }\n _handleShow = () => {\n if (isHidden(this._$el.get(0))) return\n this._logger.renderViewport()\n }\n _handleErr = (err) => {\n this._logger.error(err)\n }\n _enableJsExecution(enabled) {\n const $el = this._$el\n const $jsInput = $el.find(c('.js-input'))\n\n if (enabled) {\n $jsInput.show()\n $el.rmClass(c('js-input-hidden'))\n } else {\n $jsInput.hide()\n $el.addClass(c('js-input-hidden'))\n }\n }\n _appendTpl() {\n const $el = this._$el\n\n this._style = evalCss(require('./Console.scss'))\n $el.append(\n c(`\n \n \n All \n Info \n Warning \n Error \n \n \n \n
\n
\n \n `)\n )\n\n const _$inputContainer = $el.find(c('.js-input'))\n const _$input = _$inputContainer.find('textarea')\n const _$inputBtns = _$inputContainer.find(c('.buttons'))\n\n extend(this, {\n _$control: $el.find(c('.control')),\n _$logs: $el.find(c('.logs-container')),\n _$inputContainer,\n _$input,\n _$inputBtns,\n _$filterText: $el.find(c('.filter-text')),\n })\n }\n _initLogger() {\n const cfg = this.config\n let maxLogNum = cfg.get('maxLogNum')\n maxLogNum = maxLogNum === 'infinite' ? 0 : +maxLogNum\n\n const $level = this._$control.find(c('.level'))\n const logger = new LunaConsole(this._$logs.get(0), {\n asyncRender: cfg.get('asyncRender'),\n maxNum: maxLogNum,\n showHeader: cfg.get('displayExtraInfo'),\n unenumerable: cfg.get('displayUnenumerable'),\n accessGetter: cfg.get('displayGetterVal'),\n lazyEvaluation: cfg.get('lazyEvaluation'),\n })\n\n logger.on('optionChange', (name, val) => {\n switch (name) {\n case 'level':\n $level.each(function () {\n const $this = $(this)\n const level = $this.data('level')\n const isMatch = level === val || (level === 'all' && isArr(val))\n\n $this[isMatch ? 'addClass' : 'rmClass'](c('active'))\n })\n break\n }\n })\n\n if (cfg.get('overrideConsole')) this.overrideConsole()\n\n this._logger = logger\n }\n _exposeLogger() {\n const logger = this._logger\n const methods = ['html'].concat(CONSOLE_METHOD)\n\n methods.forEach(\n (name) =>\n (this[name] = (...args) => {\n logger[name](...args)\n this.emit(name, ...args)\n\n return this\n })\n )\n }\n _bindEvent() {\n const container = this._container\n const $input = this._$input\n const $inputBtns = this._$inputBtns\n const $control = this._$control\n\n const logger = this._logger\n const config = this.config\n\n $control\n .on('click', c('.clear-console'), () => logger.clear(true))\n .on('click', c('.level'), function () {\n let level = $(this).data('level')\n if (level === 'all') {\n level = ['verbose', 'info', 'warning', 'error']\n }\n logger.setOption('level', level)\n })\n .on('click', c('.filter'), () => {\n LunaModal.prompt('Filter').then((filter) => {\n if (isNull(filter)) return\n this.filter(filter)\n })\n })\n .on('click', c('.copy'), () => {\n this._selectedLog.copy()\n container.notify('Copied')\n })\n\n $inputBtns\n .on('click', c('.cancel'), () => this._hideInput())\n .on('click', c('.execute'), () => {\n const jsInput = $input.val().trim()\n if (jsInput === '') return\n\n logger.evaluate(jsInput)\n $input.val('').get(0).blur()\n this._hideInput()\n })\n\n $input.on('focusin', () => this._showInput())\n\n logger.on('insert', (log) => {\n const autoShow = log.type === 'error' && config.get('displayIfErr')\n\n if (autoShow) container.showTool('console').show()\n })\n\n logger.on('select', (log) => {\n this._selectedLog = log\n $control.find(c('.icon-copy')).rmClass(c('icon-disabled'))\n })\n\n logger.on('deselect', () => {\n this._selectedLog = null\n $control.find(c('.icon-copy')).addClass(c('icon-disabled'))\n })\n\n container.on('show', this._handleShow)\n }\n _hideInput() {\n this._$inputContainer.rmClass(c('active'))\n this._$inputBtns.css('display', 'none')\n }\n _showInput() {\n this._$inputContainer.addClass(c('active'))\n this._$inputBtns.css('display', 'flex')\n }\n _rmCfg() {\n const cfg = this.config\n\n const settings = this._container.get('settings')\n if (!settings) return\n\n settings\n .remove(cfg, 'asyncRender')\n .remove(cfg, 'jsExecution')\n .remove(cfg, 'catchGlobalErr')\n .remove(cfg, 'overrideConsole')\n .remove(cfg, 'displayExtraInfo')\n .remove(cfg, 'displayUnenumerable')\n .remove(cfg, 'displayGetterVal')\n .remove(cfg, 'lazyEvaluation')\n .remove(cfg, 'displayIfErr')\n .remove(cfg, 'maxLogNum')\n .remove(upperFirst(this.name))\n }\n _initCfg() {\n const container = this._container\n\n const cfg = (this.config = Settings.createCfg(this.name, {\n asyncRender: true,\n catchGlobalErr: true,\n jsExecution: true,\n overrideConsole: true,\n displayExtraInfo: false,\n displayUnenumerable: true,\n displayGetterVal: true,\n lazyEvaluation: true,\n displayIfErr: false,\n maxLogNum: 'infinite',\n }))\n\n this._enableJsExecution(cfg.get('jsExecution'))\n if (cfg.get('catchGlobalErr')) this.catchGlobalErr()\n\n cfg.on('change', (key, val) => {\n const logger = this._logger\n switch (key) {\n case 'asyncRender':\n return logger.setOption('asyncRender', val)\n case 'jsExecution':\n return this._enableJsExecution(val)\n case 'catchGlobalErr':\n return val ? this.catchGlobalErr() : this.ignoreGlobalErr()\n case 'overrideConsole':\n return val ? this.overrideConsole() : this.restoreConsole()\n case 'maxLogNum':\n return logger.setOption('maxNum', val === 'infinite' ? 0 : +val)\n case 'displayExtraInfo':\n return logger.setOption('showHeader', val)\n case 'displayUnenumerable':\n return logger.setOption('unenumerable', val)\n case 'displayGetterVal':\n return logger.setOption('accessGetter', val)\n case 'lazyEvaluation':\n return logger.setOption('lazyEvaluation', val)\n }\n })\n\n const settings = container.get('settings')\n if (!settings) return\n\n settings\n .text(upperFirst(this.name))\n .switch(cfg, 'asyncRender', 'Asynchronous Rendering')\n .switch(cfg, 'jsExecution', 'Enable JavaScript Execution')\n .switch(cfg, 'catchGlobalErr', 'Catch Global Errors')\n .switch(cfg, 'overrideConsole', 'Override Console')\n .switch(cfg, 'displayIfErr', 'Auto Display If Error Occurs')\n .switch(cfg, 'displayExtraInfo', 'Display Extra Information')\n .switch(cfg, 'displayUnenumerable', 'Display Unenumerable Properties')\n .switch(cfg, 'displayGetterVal', 'Access Getter Value')\n .switch(cfg, 'lazyEvaluation', 'Lazy Evaluation')\n .select(cfg, 'maxLogNum', 'Max Log Number', [\n 'infinite',\n '250',\n '125',\n '100',\n '50',\n '10',\n ])\n .separator()\n }\n}\n\nconst CONSOLE_METHOD = [\n 'log',\n 'error',\n 'info',\n 'warn',\n 'dir',\n 'time',\n 'timeLog',\n 'timeEnd',\n 'clear',\n 'table',\n 'assert',\n 'count',\n 'countReset',\n 'debug',\n 'group',\n 'groupCollapsed',\n 'groupEnd',\n]\n","import trim from 'licia/trim'\nimport isEmpty from 'licia/isEmpty'\nimport map from 'licia/map'\nimport each from 'licia/each'\nimport escape from 'licia/escape'\nimport copy from 'licia/copy'\nimport isJson from 'licia/isJson'\nimport Emitter from 'licia/Emitter'\nimport truncate from 'licia/truncate'\nimport { classPrefix as c } from '../lib/util'\n\nexport default class Detail extends Emitter {\n constructor($container, devtools) {\n super()\n this._$container = $container\n this._devtools = devtools\n\n this._detailData = {}\n this._bindEvent()\n }\n show(data) {\n if (data.resTxt && trim(data.resTxt) === '') {\n delete data.resTxt\n }\n if (isEmpty(data.resHeaders)) {\n delete data.resHeaders\n }\n if (isEmpty(data.reqHeaders)) {\n delete data.reqHeaders\n }\n\n let postData = ''\n if (data.data) {\n postData = `${escape(data.data)} `\n }\n\n let reqHeaders = 'Empty '\n if (data.reqHeaders) {\n reqHeaders = map(data.reqHeaders, (val, key) => {\n return `\n ${escape(key)} \n ${escape(val)} \n `\n }).join('')\n }\n\n let resHeaders = 'Empty '\n if (data.resHeaders) {\n resHeaders = map(data.resHeaders, (val, key) => {\n return `\n ${escape(key)} \n ${escape(val)} \n `\n }).join('')\n }\n\n let resTxt = ''\n if (data.resTxt) {\n let text = data.resTxt\n if (text.length > MAX_RES_LEN) {\n text = truncate(text, MAX_RES_LEN)\n }\n resTxt = `${escape(text)} `\n }\n\n const html = `\n \n \n ${escape(data.url)} \n \n
\n \n ${postData}\n
\n
Response Headers \n \n \n
\n
Request Headers \n \n \n ${resTxt}\n
`\n\n this._$container.html(html).show()\n this._detailData = data\n }\n hide() {\n this._$container.hide()\n this.emit('hide')\n }\n _copyRes = () => {\n const detailData = this._detailData\n\n let data = `${detailData.method} ${detailData.url} ${detailData.status}\\n`\n if (!isEmpty(detailData.reqHeaders)) {\n data += '\\nRequest Headers\\n\\n'\n each(detailData.reqHeaders, (val, key) => (data += `${key}: ${val}\\n`))\n }\n if (!isEmpty(detailData.resHeaders)) {\n data += '\\nResponse Headers\\n\\n'\n each(detailData.resHeaders, (val, key) => (data += `${key}: ${val}\\n`))\n }\n if (detailData.resTxt) {\n data += `\\n${detailData.resTxt}\\n`\n }\n\n copy(data)\n this._devtools.notify('Copied')\n }\n _bindEvent() {\n const devtools = this._devtools\n\n this._$container\n .on('click', c('.back'), () => this.hide())\n .on('click', c('.copy-res'), this._copyRes)\n .on('click', c('.http .response'), () => {\n const data = this._detailData\n const resTxt = data.resTxt\n\n if (isJson(resTxt)) {\n return showSources('object', resTxt)\n }\n\n switch (data.subType) {\n case 'css':\n return showSources('css', resTxt)\n case 'html':\n return showSources('html', resTxt)\n case 'javascript':\n return showSources('js', resTxt)\n case 'json':\n return showSources('object', resTxt)\n }\n switch (data.type) {\n case 'image':\n return showSources('img', data.url)\n }\n })\n\n const showSources = (type, data) => {\n const sources = devtools.get('sources')\n if (!sources) {\n return\n }\n\n sources.set(type, data)\n\n devtools.showTool('sources')\n }\n }\n}\n\nconst MAX_RES_LEN = 100000\n","import Chobitsu from 'chobitsu/Chobitsu'\nimport * as Network from 'chobitsu/domains/Network'\nimport * as Overlay from 'chobitsu/domains/Overlay'\nimport * as DOM from 'chobitsu/domains/DOM'\nimport * as Storage from 'chobitsu/domains/Storage'\n\nconst chobitsu = new Chobitsu()\nchobitsu.register('Network', Network)\nchobitsu.register('Overlay', Overlay)\nchobitsu.register('DOM', {\n ...DOM,\n getNodeId: DOM.getDOMNodeId,\n getNode: DOM.getDOMNode,\n})\nchobitsu.register('Storage', Storage)\n\nexport default chobitsu\n","import Tool from '../DevTools/Tool'\nimport $ from 'licia/$'\nimport ms from 'licia/ms'\nimport each from 'licia/each'\nimport map from 'licia/map'\nimport Detail from './Detail'\nimport throttle from 'licia/throttle'\nimport { getFileName, classPrefix as c } from '../lib/util'\nimport evalCss from '../lib/evalCss'\nimport chobitsu from '../lib/chobitsu'\nimport emitter from '../lib/emitter'\nimport LunaDataGrid from 'luna-data-grid'\nimport ResizeSensor from 'licia/ResizeSensor'\nimport MediaQuery from 'licia/MediaQuery'\nimport { getType } from './util'\nimport copy from 'licia/copy'\nimport extend from 'licia/extend'\nimport trim from 'licia/trim'\nimport isNull from 'licia/isNull'\nimport LunaModal from 'luna-modal'\nimport { curlStr } from './util'\n\nexport default class Network extends Tool {\n constructor() {\n super()\n\n this._style = evalCss(require('./Network.scss'))\n\n this.name = 'network'\n this._requests = {}\n this._selectedRequest = null\n this._isRecording = true\n }\n init($el, container) {\n super.init($el)\n\n this._container = container\n this._initTpl()\n this._detail = new Detail(this._$detail, container)\n this._splitMediaQuery = new MediaQuery('screen and (min-width: 680px)')\n this._splitMode = this._splitMediaQuery.isMatch()\n this._requestDataGrid = new LunaDataGrid(this._$requests.get(0), {\n columns: [\n {\n id: 'name',\n title: 'Name',\n sortable: true,\n weight: 30,\n },\n {\n id: 'method',\n title: 'Method',\n sortable: true,\n weight: 14,\n },\n {\n id: 'status',\n title: 'Status',\n sortable: true,\n weight: 14,\n },\n {\n id: 'type',\n title: 'Type',\n sortable: true,\n weight: 14,\n },\n {\n id: 'size',\n title: 'Size',\n sortable: true,\n weight: 14,\n },\n {\n id: 'time',\n title: 'Time',\n sortable: true,\n weight: 14,\n },\n ],\n })\n this._resizeSensor = new ResizeSensor($el.get(0))\n this._bindEvent()\n }\n show() {\n super.show()\n this._updateDataGridHeight()\n }\n clear() {\n this._requests = {}\n this._requestDataGrid.clear()\n }\n requests() {\n const ret = []\n each(this._requests, (request) => {\n ret.push(request)\n })\n return ret\n }\n _updateDataGridHeight() {\n const height = this._$el.offset().height - this._$control.offset().height\n this._requestDataGrid.setOption({\n minHeight: height,\n maxHeight: height,\n })\n }\n _reqWillBeSent = (params) => {\n if (!this._isRecording) {\n return\n }\n\n const request = {\n name: getFileName(params.request.url),\n url: params.request.url,\n status: 'pending',\n type: 'unknown',\n subType: 'unknown',\n size: 0,\n data: params.request.postData,\n method: params.request.method,\n startTime: params.timestamp * 1000,\n time: 0,\n resTxt: '',\n done: false,\n reqHeaders: params.request.headers || {},\n resHeaders: {},\n }\n let node\n request.render = () => {\n const data = {\n name: request.name,\n method: request.method,\n status: request.status,\n type: request.subType,\n size: request.size,\n time: request.displayTime,\n }\n if (node) {\n node.data = data\n node.render()\n } else {\n node = this._requestDataGrid.append(data, { selectable: true })\n $(node.container).data('id', params.requestId)\n }\n if (request.hasErr) {\n $(node.container).addClass(c('request-error'))\n }\n }\n request.render()\n this._requests[params.requestId] = request\n }\n _resReceivedExtraInfo = (params) => {\n const request = this._requests[params.requestId]\n if (!this._isRecording || !request) {\n return\n }\n\n request.resHeaders = params.headers\n\n this._updateType(request)\n request.render()\n }\n _updateType(request) {\n const contentType = request.resHeaders['content-type'] || ''\n const { type, subType } = getType(contentType)\n request.type = type\n request.subType = subType\n }\n _resReceived = (params) => {\n const request = this._requests[params.requestId]\n if (!this._isRecording || !request) {\n return\n }\n\n const { response } = params\n const { status, headers } = response\n request.status = status\n if (status < 200 || status >= 300) {\n request.hasErr = true\n }\n if (headers) {\n request.resHeaders = headers\n this._updateType(request)\n }\n\n request.render()\n }\n _loadingFinished = (params) => {\n const request = this._requests[params.requestId]\n if (!this._isRecording || !request) {\n return\n }\n\n const time = params.timestamp * 1000\n request.time = time - request.startTime\n request.displayTime = ms(request.time)\n\n request.size = params.encodedDataLength\n request.done = true\n request.resTxt = chobitsu.domain('Network').getResponseBody({\n requestId: params.requestId,\n }).body\n\n request.render()\n }\n _copyCurl = () => {\n const request = this._selectedRequest\n\n copy(\n curlStr({\n requestMethod: request.method,\n url() {\n return request.url\n },\n requestFormData() {\n return request.data\n },\n requestHeaders() {\n const reqHeaders = request.reqHeaders || {}\n extend(reqHeaders, {\n 'User-Agent': navigator.userAgent,\n Referer: location.href,\n })\n\n return map(reqHeaders, (value, name) => {\n return {\n name,\n value,\n }\n })\n },\n })\n )\n\n this._container.notify('Copied')\n }\n _updateButtons() {\n const $control = this._$control\n const $showDetail = $control.find(c('.show-detail'))\n const $copyCurl = $control.find(c('.copy-curl'))\n const iconDisabled = c('icon-disabled')\n\n $showDetail.addClass(iconDisabled)\n $copyCurl.addClass(iconDisabled)\n\n if (this._selectedRequest) {\n $showDetail.rmClass(iconDisabled)\n $copyCurl.rmClass(iconDisabled)\n }\n }\n _toggleRecording = () => {\n this._$control.find(c('.record')).toggleClass(c('recording'))\n this._isRecording = !this._isRecording\n }\n _showDetail = () => {\n if (this._selectedRequest) {\n if (this._splitMode) {\n this._$network.css('width', '50%')\n }\n this._detail.show(this._selectedRequest)\n }\n }\n _bindEvent() {\n const $control = this._$control\n const $filterText = this._$filterText\n const requestDataGrid = this._requestDataGrid\n\n const self = this\n\n $control\n .on('click', c('.clear-request'), () => this.clear())\n .on('click', c('.show-detail'), this._showDetail)\n .on('click', c('.copy-curl'), this._copyCurl)\n .on('click', c('.record'), this._toggleRecording)\n .on('click', c('.filter'), () => {\n LunaModal.prompt('Filter').then((filter) => {\n if (isNull(filter)) return\n\n $filterText.text(filter)\n requestDataGrid.setOption('filter', trim(filter))\n })\n })\n\n requestDataGrid.on('select', (node) => {\n const id = $(node.container).data('id')\n const request = self._requests[id]\n this._selectedRequest = request\n this._updateButtons()\n if (this._splitMode) {\n this._showDetail()\n }\n })\n\n requestDataGrid.on('deselect', () => {\n this._selectedRequest = null\n this._updateButtons()\n this._detail.hide()\n })\n\n this._resizeSensor.addListener(\n throttle(() => this._updateDataGridHeight(), 15)\n )\n\n this._splitMediaQuery.on('match', () => {\n this._detail.hide()\n this._splitMode = true\n })\n this._splitMediaQuery.on('unmatch', () => {\n this._detail.hide()\n this._splitMode = false\n })\n this._detail.on('hide', () => {\n if (this._splitMode) {\n this._$network.css('width', '100%')\n }\n })\n\n chobitsu.domain('Network').enable()\n\n const network = chobitsu.domain('Network')\n network.on('requestWillBeSent', this._reqWillBeSent)\n network.on('responseReceivedExtraInfo', this._resReceivedExtraInfo)\n network.on('responseReceived', this._resReceived)\n network.on('loadingFinished', this._loadingFinished)\n\n emitter.on(emitter.SCALE, this._updateScale)\n }\n _updateScale = (scale) => {\n this._splitMediaQuery.setQuery(`screen and (min-width: ${680 * scale}px)`)\n }\n destroy() {\n super.destroy()\n\n this._resizeSensor.destroy()\n evalCss.remove(this._style)\n this._splitMediaQuery.removeAllListeners()\n\n const network = chobitsu.domain('Network')\n network.off('requestWillBeSent', this._reqWillBeSent)\n network.off('responseReceivedExtraInfo', this._resReceivedExtraInfo)\n network.off('responseReceived', this._resReceived)\n network.off('loadingFinished', this._loadingFinished)\n\n emitter.off(emitter.SCALE, this._updateScale)\n }\n _initTpl() {\n const $el = this._$el\n $el.html(\n c(`\n
\n \n \n \n \n \n \n
\n
\n
\n
`)\n )\n this._$network = $el.find(c('.network'))\n this._$detail = $el.find(c('.detail'))\n this._$requests = $el.find(c('.requests'))\n this._$control = $el.find(c('.control'))\n this._$filterText = $el.find(c('.filter-text'))\n }\n}\n","import last from 'licia/last'\nimport detectOs from 'licia/detectOs'\nimport arrToMap from 'licia/arrToMap'\n\nexport function getType(contentType) {\n if (!contentType) return 'unknown'\n\n const type = contentType.split(';')[0].split('/')\n\n return {\n type: type[0],\n subType: last(type),\n }\n}\n\nexport function curlStr(request) {\n let platform = detectOs()\n if (platform === 'windows') {\n platform = 'win'\n }\n /* eslint-disable */\n let command = []\n const ignoredHeaders = arrToMap([\n 'accept-encoding',\n 'host',\n 'method',\n 'path',\n 'scheme',\n 'version',\n ])\n\n function escapeStringWin(str) {\n const encapsChars = /[\\r\\n]/.test(str) ? '^\"' : '\"'\n return (\n encapsChars +\n str\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\"/g, '\\\\\"')\n .replace(/[^a-zA-Z0-9\\s_\\-:=+~'\\/.',?;()*`&]/g, '^$&')\n .replace(/%(?=[a-zA-Z0-9_])/g, '%^')\n .replace(/\\r?\\n/g, '^\\n\\n') +\n encapsChars\n )\n }\n\n function escapeStringPosix(str) {\n function escapeCharacter(x) {\n const code = x.charCodeAt(0)\n let hexString = code.toString(16)\n while (hexString.length < 4) {\n hexString = '0' + hexString\n }\n\n return '\\\\u' + hexString\n }\n\n if (/[\\0-\\x1F\\x7F-\\x9F!]|\\'/.test(str)) {\n return (\n \"$'\" +\n str\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\\'/g, \"\\\\'\")\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/[\\0-\\x1F\\x7F-\\x9F!]/g, escapeCharacter) +\n \"'\"\n )\n }\n return \"'\" + str + \"'\"\n }\n\n const escapeString = platform === 'win' ? escapeStringWin : escapeStringPosix\n\n command.push(escapeString(request.url()).replace(/[[{}\\]]/g, '\\\\$&'))\n\n let inferredMethod = 'GET'\n const data = []\n const formData = request.requestFormData()\n if (formData) {\n data.push('--data-raw ' + escapeString(formData))\n ignoredHeaders['content-length'] = true\n inferredMethod = 'POST'\n }\n\n if (request.requestMethod !== inferredMethod) {\n command.push('-X ' + escapeString(request.requestMethod))\n }\n\n const requestHeaders = request.requestHeaders()\n for (let i = 0; i < requestHeaders.length; i++) {\n const header = requestHeaders[i]\n const name = header.name.replace(/^:/, '')\n if (ignoredHeaders[name.toLowerCase()]) {\n continue\n }\n command.push('-H ' + escapeString(name + ': ' + header.value))\n }\n command = command.concat(data)\n command.push('--compressed')\n\n return (\n 'curl ' +\n command.join(\n command.length >= 3 ? (platform === 'win' ? ' ^\\n ' : ' \\\\\\n ') : ' '\n )\n )\n}\n","import each from 'licia/each'\nimport sortKeys from 'licia/sortKeys'\n\nfunction formatStyle(style) {\n const ret = {}\n\n for (let i = 0, len = style.length; i < len; i++) {\n const name = style[i]\n\n if (style[name] === 'initial') continue\n\n ret[name] = style[name]\n }\n\n return sortStyleKeys(ret)\n}\n\nconst elProto = Element.prototype\n\nlet matchesSel = function () {\n return false\n}\n\nif (elProto.webkitMatchesSelector) {\n matchesSel = (el, selText) => el.webkitMatchesSelector(selText)\n} else if (elProto.mozMatchesSelector) {\n matchesSel = (el, selText) => el.mozMatchesSelector(selText)\n}\n\nexport default class CssStore {\n constructor(el) {\n this._el = el\n }\n getComputedStyle() {\n const computedStyle = window.getComputedStyle(this._el)\n\n return formatStyle(computedStyle)\n }\n getMatchedCSSRules() {\n const ret = []\n\n each(document.styleSheets, (styleSheet) => {\n try {\n // Started with version 64, Chrome does not allow cross origin script to access this property.\n if (!styleSheet.cssRules) return\n } catch (e) {\n return\n }\n\n each(styleSheet.cssRules, (cssRule) => {\n let matchesEl = false\n\n // Mobile safari will throw DOM Exception 12 error, need to try catch it.\n try {\n matchesEl = this._elMatchesSel(cssRule.selectorText)\n /* eslint-disable no-empty */\n } catch (e) {}\n\n if (!matchesEl) return\n\n ret.push({\n selectorText: cssRule.selectorText,\n style: formatStyle(cssRule.style),\n })\n })\n })\n\n return ret\n }\n _elMatchesSel(selText) {\n return matchesSel(this._el, selText)\n }\n}\n\nfunction sortStyleKeys(style) {\n return sortKeys(style, {\n comparator: (a, b) => {\n const lenA = a.length\n const lenB = b.length\n const len = lenA > lenB ? lenB : lenA\n\n for (let i = 0; i < len; i++) {\n const codeA = a.charCodeAt(i)\n const codeB = b.charCodeAt(i)\n const cmpResult = cmpCode(codeA, codeB)\n\n if (cmpResult !== 0) return cmpResult\n }\n\n if (lenA > lenB) return 1\n if (lenA < lenB) return -1\n\n return 0\n },\n })\n}\n\nfunction cmpCode(a, b) {\n a = transCode(a)\n b = transCode(b)\n\n if (a > b) return 1\n if (a < b) return -1\n return 0\n}\n\nfunction transCode(code) {\n // - should be placed after lowercase chars.\n if (code === 45) return 123\n return code\n}\n","import each from 'licia/each'\nimport isStr from 'licia/isStr'\nimport { classPrefix as c } from '../lib/util'\n\nexport function formatNodeName(node, { noAttr = false } = {}) {\n if (node.nodeType === Node.TEXT_NODE) {\n return `(text) `\n } else if (node.nodeType === Node.COMMENT_NODE) {\n return ` `\n }\n\n const { id, className, attributes } = node\n\n let ret = `${node.tagName.toLowerCase()} `\n\n if (id !== '') ret += `#${id} `\n\n if (isStr(className)) {\n let classes = ''\n each(className.split(/\\s+/g), (val) => {\n if (val.trim() === '') return\n classes += `.${val}`\n })\n ret += `${classes} `\n }\n\n if (!noAttr) {\n each(attributes, (attr) => {\n const name = attr.name\n if (name === 'id' || name === 'class' || name === 'style') return\n ret += ` ${name} =\" ${attr.value} \" `\n })\n }\n\n return ret\n}\n","import isEmpty from 'licia/isEmpty'\nimport lowerCase from 'licia/lowerCase'\nimport pick from 'licia/pick'\nimport toStr from 'licia/toStr'\nimport map from 'licia/map'\nimport isEl from 'licia/isEl'\nimport escape from 'licia/escape'\nimport startWith from 'licia/startWith'\nimport contain from 'licia/contain'\nimport unique from 'licia/unique'\nimport each from 'licia/each'\nimport keys from 'licia/keys'\nimport isNull from 'licia/isNull'\nimport trim from 'licia/trim'\nimport isFn from 'licia/isFn'\nimport isBool from 'licia/isBool'\nimport safeGet from 'licia/safeGet'\nimport $ from 'licia/$'\nimport h from 'licia/h'\nimport MutationObserver from 'licia/MutationObserver'\nimport CssStore from './CssStore'\nimport Settings from '../Settings/Settings'\nimport LunaModal from 'luna-modal'\nimport LunaBoxModel from 'luna-box-model'\nimport chobitsu from '../lib/chobitsu'\nimport { formatNodeName } from './util'\nimport { isErudaEl, classPrefix as c } from '../lib/util'\n\nexport default class Detail {\n constructor($container, devtools) {\n this._$container = $container\n this._devtools = devtools\n this._curEl = document.documentElement\n this._bindEvent()\n this._initObserver()\n this._initCfg()\n this._initTpl()\n }\n show(el) {\n this._curEl = el\n this._rmDefComputedStyle = true\n this._computedStyleSearchKeyword = ''\n this._enableObserver()\n this._render()\n\n const { nodeId } = chobitsu.domain('DOM').getNodeId({ node: el })\n chobitsu.domain('Overlay').highlightNode({\n nodeId,\n highlightConfig: {\n showInfo: true,\n contentColor: 'rgba(111, 168, 220, .66)',\n paddingColor: 'rgba(147, 196, 125, .55)',\n borderColor: 'rgba(255, 229, 153, .66)',\n marginColor: 'rgba(246, 178, 107, .66)',\n },\n })\n }\n hide = () => {\n this._$container.hide()\n this._disableObserver()\n chobitsu.domain('Overlay').hideHighlight()\n }\n destroy() {\n this._disableObserver()\n this.restoreEventTarget()\n this._rmCfg()\n }\n overrideEventTarget() {\n const winEventProto = getWinEventProto()\n\n const origAddEvent = (this._origAddEvent = winEventProto.addEventListener)\n const origRmEvent = (this._origRmEvent = winEventProto.removeEventListener)\n\n winEventProto.addEventListener = function (type, listener, useCapture) {\n addEvent(this, type, listener, useCapture)\n origAddEvent.apply(this, arguments)\n }\n\n winEventProto.removeEventListener = function (type, listener, useCapture) {\n rmEvent(this, type, listener, useCapture)\n origRmEvent.apply(this, arguments)\n }\n }\n restoreEventTarget() {\n const winEventProto = getWinEventProto()\n\n if (this._origAddEvent) winEventProto.addEventListener = this._origAddEvent\n if (this._origRmEvent) winEventProto.removeEventListener = this._origRmEvent\n }\n _initTpl() {\n const $container = this._$container\n\n const html = `\n \n \n \n
\n `\n\n $container.html(html)\n\n this._$elementName = $container.find(c('.element-name'))\n this._$attributes = $container.find(c('.attributes'))\n this._$styles = $container.find(c('.styles'))\n this._$listeners = $container.find(c('.listeners'))\n this._$computedStyle = $container.find(c('.computed-style'))\n\n const boxModelContainer = h('div')\n this._$boxModel = $(boxModelContainer)\n this._boxModel = new LunaBoxModel(boxModelContainer)\n }\n _toggleAllComputedStyle() {\n this._rmDefComputedStyle = !this._rmDefComputedStyle\n\n this._render()\n }\n _render() {\n const data = this._getData(this._curEl)\n const $attributes = this._$attributes\n const $elementName = this._$elementName\n const $styles = this._$styles\n const $computedStyle = this._$computedStyle\n const $listeners = this._$listeners\n\n $elementName.html(data.name)\n\n let attributes = 'Empty '\n if (!isEmpty(data.attributes)) {\n attributes = map(data.attributes, ({ name, value }) => {\n return `\n ${escape(name)} \n ${value} \n `\n }).join('')\n }\n attributes = `Attributes \n \n
\n \n ${attributes} \n \n
\n
`\n $attributes.html(attributes)\n\n let styles = ''\n if (!isEmpty(data.styles)) {\n const style = map(data.styles, ({ selectorText, style }) => {\n style = map(style, (val, key) => {\n return `${escape(\n key\n )} : ${val};
`\n }).join('')\n return `\n
${escape(selectorText)} {
\n ${style}\n
}
\n
`\n }).join('')\n styles = `Styles \n \n ${style}\n
`\n $styles.html(styles).show()\n } else {\n $styles.hide()\n }\n\n let computedStyle = ''\n if (data.computedStyle) {\n let toggleButton = c(`\n \n
`)\n if (data.rmDefComputedStyle) {\n toggleButton = c(`\n \n
`)\n }\n\n computedStyle = `\n Computed Style\n ${toggleButton}\n \n \n
\n ${\n data.computedStyleSearchKeyword\n ? `${escape(\n data.computedStyleSearchKeyword\n )}
`\n : ''\n }\n \n
\n \n
\n \n ${map(data.computedStyle, (val, key) => {\n return `\n ${escape(key)} \n ${val} \n `\n }).join('')}\n \n
\n
`\n\n $computedStyle.html(computedStyle).show()\n this._boxModel.setOption('element', this._curEl)\n $computedStyle.find(c('.box-model')).append(this._$boxModel.get(0))\n } else {\n $computedStyle.text('').hide()\n }\n\n let listeners = ''\n if (data.listeners) {\n listeners = map(data.listeners, (listeners, key) => {\n listeners = map(listeners, ({ useCapture, listenerStr }) => {\n return `${escape(\n listenerStr\n )} `\n }).join('')\n return ``\n }).join('')\n listeners = `Event Listeners \n \n ${listeners} \n
`\n $listeners.html(listeners).show()\n } else {\n $listeners.hide()\n }\n\n this._$container.show()\n }\n _getData(el) {\n const ret = {}\n\n const cssStore = new CssStore(el)\n\n const { className, id, attributes, tagName } = el\n\n ret.computedStyleSearchKeyword = this._computedStyleSearchKeyword\n ret.attributes = formatAttr(attributes)\n ret.name = formatNodeName({ tagName, id, className, attributes })\n\n const events = el.erudaEvents\n if (events && keys(events).length !== 0) ret.listeners = events\n\n if (needNoStyle(tagName)) return ret\n\n let computedStyle = cssStore.getComputedStyle()\n\n const styles = cssStore.getMatchedCSSRules()\n styles.unshift(getInlineStyle(el.style))\n styles.forEach((style) => processStyleRules(style.style))\n ret.styles = styles\n\n if (this._rmDefComputedStyle) {\n computedStyle = rmDefComputedStyle(computedStyle, styles)\n }\n ret.rmDefComputedStyle = this._rmDefComputedStyle\n const computedStyleSearchKeyword = lowerCase(ret.computedStyleSearchKeyword)\n if (computedStyleSearchKeyword) {\n computedStyle = pick(computedStyle, (val, property) => {\n return (\n contain(property, computedStyleSearchKeyword) ||\n contain(val, computedStyleSearchKeyword)\n )\n })\n }\n processStyleRules(computedStyle)\n ret.computedStyle = computedStyle\n\n return ret\n }\n _bindEvent() {\n const devtools = this._devtools\n\n this._$container\n .on('click', c('.toggle-all-computed-style'), () =>\n this._toggleAllComputedStyle()\n )\n .on('click', c('.computed-style-search'), () => {\n LunaModal.prompt('Filter').then((filter) => {\n if (isNull(filter)) return\n filter = trim(filter)\n this._computedStyleSearchKeyword = filter\n this._render()\n })\n })\n .on('click', '.eruda-listener-content', function () {\n const text = $(this).text()\n const sources = devtools.get('sources')\n\n if (sources) {\n sources.set('js', text)\n devtools.showTool('sources')\n }\n })\n .on('click', c('.element-name'), () => {\n const sources = devtools.get('sources')\n\n if (sources) {\n sources.set('object', this._curEl)\n devtools.showTool('sources')\n }\n })\n .on('click', c('.back'), this.hide)\n .on('click', c('.refresh'), () => {\n this._render()\n devtools.notify('Refreshed')\n })\n }\n _initObserver() {\n this._observer = new MutationObserver((mutations) => {\n each(mutations, (mutation) => this._handleMutation(mutation))\n })\n }\n _enableObserver() {\n this._observer.observe(document.documentElement, {\n attributes: true,\n childList: true,\n subtree: true,\n })\n }\n _disableObserver() {\n this._observer.disconnect()\n }\n _handleMutation(mutation) {\n if (isErudaEl(mutation.target)) return\n\n if (mutation.type === 'attributes') {\n if (mutation.target !== this._curEl) return\n this._render()\n }\n }\n _rmCfg() {\n const cfg = this.config\n\n const settings = this._devtools.get('settings')\n\n if (!settings) return\n\n settings\n .remove(cfg, 'overrideEventTarget')\n .remove(cfg, 'observeElement')\n .remove('Elements')\n }\n _initCfg() {\n const cfg = (this.config = Settings.createCfg('elements', {\n overrideEventTarget: true,\n }))\n\n if (cfg.get('overrideEventTarget')) this.overrideEventTarget()\n\n cfg.on('change', (key, val) => {\n switch (key) {\n case 'overrideEventTarget':\n return val ? this.overrideEventTarget() : this.restoreEventTarget()\n }\n })\n\n const settings = this._devtools.get('settings')\n if (!settings) return\n\n settings\n .text('Elements')\n .switch(cfg, 'overrideEventTarget', 'Catch Event Listeners')\n\n settings.separator()\n }\n}\n\nfunction processStyleRules(style) {\n each(style, (val, key) => (style[key] = processStyleRule(val)))\n}\n\nconst formatAttr = (attributes) =>\n map(attributes, (attr) => {\n let { value } = attr\n const { name } = attr\n value = escape(value)\n\n const isLink =\n (name === 'src' || name === 'href') && !startWith(value, 'data')\n if (isLink) value = wrapLink(value)\n if (name === 'style') value = processStyleRule(value)\n\n return { name, value }\n })\n\nconst regColor = /rgba?\\((.*?)\\)/g\nconst regCssUrl = /url\\(\"?(.*?)\"?\\)/g\n\nfunction processStyleRule(val) {\n // For css custom properties, val is unable to retrieved.\n val = toStr(val)\n\n return val\n .replace(\n regColor,\n ' $&'\n )\n .replace(regCssUrl, (match, url) => `url(\"${wrapLink(url)}\")`)\n}\n\nfunction getInlineStyle(style) {\n const ret = {\n selectorText: 'element.style',\n style: {},\n }\n\n for (let i = 0, len = style.length; i < len; i++) {\n const s = style[i]\n\n ret.style[s] = style[s]\n }\n\n return ret\n}\n\nfunction rmDefComputedStyle(computedStyle, styles) {\n const ret = {}\n\n let keepStyles = ['display', 'width', 'height']\n each(styles, (style) => {\n keepStyles = keepStyles.concat(keys(style.style))\n })\n keepStyles = unique(keepStyles)\n\n each(computedStyle, (val, key) => {\n if (!contain(keepStyles, key)) return\n\n ret[key] = val\n })\n\n return ret\n}\n\nconst NO_STYLE_TAG = ['script', 'style', 'meta', 'title', 'link', 'head']\n\nconst needNoStyle = (tagName) =>\n NO_STYLE_TAG.indexOf(tagName.toLowerCase()) > -1\n\nconst wrapLink = (link) => `${link} `\n\nfunction addEvent(el, type, listener, useCapture = false) {\n if (!isEl(el) || !isFn(listener) || !isBool(useCapture)) return\n\n const events = (el.erudaEvents = el.erudaEvents || {})\n\n events[type] = events[type] || []\n events[type].push({\n listener: listener,\n listenerStr: listener.toString(),\n useCapture: useCapture,\n })\n}\n\nfunction rmEvent(el, type, listener, useCapture = false) {\n if (!isEl(el) || !isFn(listener) || !isBool(useCapture)) return\n\n const events = el.erudaEvents\n\n if (!(events && events[type])) return\n\n const listeners = events[type]\n\n for (let i = 0, len = listeners.length; i < len; i++) {\n if (listeners[i].listener === listener) {\n listeners.splice(i, 1)\n break\n }\n }\n\n if (listeners.length === 0) delete events[type]\n if (keys(events).length === 0) delete el.erudaEvents\n}\n\nconst getWinEventProto = () => {\n return safeGet(window, 'EventTarget.prototype') || window.Node.prototype\n}\n","import Tool from '../DevTools/Tool'\nimport $ from 'licia/$'\nimport isEl from 'licia/isEl'\nimport nextTick from 'licia/nextTick'\nimport Emitter from 'licia/Emitter'\nimport map from 'licia/map'\nimport MediaQuery from 'licia/MediaQuery'\nimport isEmpty from 'licia/isEmpty'\nimport toNum from 'licia/toNum'\nimport copy from 'licia/copy'\nimport isMobile from 'licia/isMobile'\nimport LunaDomViewer from 'luna-dom-viewer'\nimport { isErudaEl, classPrefix as c, isChobitsuEl } from '../lib/util'\nimport evalCss from '../lib/evalCss'\nimport Detail from './Detail'\nimport chobitsu from '../lib/chobitsu'\nimport emitter from '../lib/emitter'\nimport { formatNodeName } from './util'\n\nexport default class Elements extends Tool {\n constructor() {\n super()\n\n this._style = evalCss(require('./Elements.scss'))\n\n this.name = 'elements'\n this._selectElement = false\n this._observeElement = true\n this._history = []\n\n Emitter.mixin(this)\n }\n init($el, container) {\n super.init($el)\n\n this._container = container\n\n this._initTpl()\n this._htmlEl = document.documentElement\n this._detail = new Detail(this._$detail, container)\n this.config = this._detail.config\n this._splitMediaQuery = new MediaQuery('screen and (min-width: 680px)')\n this._splitMode = this._splitMediaQuery.isMatch()\n this._domViewer = new LunaDomViewer(this._$domViewer.get(0), {\n node: this._htmlEl,\n ignore: (node) => isErudaEl(node) || isChobitsuEl(node),\n })\n this._domViewer.expand()\n this._bindEvent()\n chobitsu.domain('Overlay').enable()\n\n nextTick(() => this._updateHistory())\n }\n show() {\n super.show()\n this._isShow = true\n\n if (!this._curNode) {\n this.select(document.body)\n } else if (this._splitMode) {\n this._showDetail()\n }\n }\n hide() {\n super.hide()\n this._isShow = false\n\n chobitsu.domain('Overlay').hideHighlight()\n }\n // To be removed in 3.0.0\n set(node) {\n return this.select(node)\n }\n select(node) {\n this._domViewer.select(node)\n this._setNode(node)\n this.emit('change', node)\n return this\n }\n destroy() {\n super.destroy()\n\n emitter.off(emitter.SCALE, this._updateScale)\n evalCss.remove(this._style)\n this._detail.destroy()\n chobitsu\n .domain('Overlay')\n .off('inspectNodeRequested', this._inspectNodeRequested)\n chobitsu.domain('Overlay').disable()\n this._splitMediaQuery.removeAllListeners()\n }\n _updateButtons() {\n const $control = this._$control\n const $showDetail = $control.find(c('.show-detail'))\n const $copyNode = $control.find(c('.copy-node'))\n const $deleteNode = $control.find(c('.delete-node'))\n const iconDisabled = c('icon-disabled')\n\n $showDetail.addClass(iconDisabled)\n $copyNode.addClass(iconDisabled)\n $deleteNode.addClass(iconDisabled)\n\n const node = this._curNode\n\n if (!node) {\n return\n }\n\n if (node !== document.documentElement && node !== document.body) {\n $deleteNode.rmClass(iconDisabled)\n }\n $copyNode.rmClass(iconDisabled)\n\n if (node.nodeType === Node.ELEMENT_NODE) {\n $showDetail.rmClass(iconDisabled)\n }\n }\n _showDetail = () => {\n if (!this._isShow || !this._curNode) {\n return\n }\n if (this._curNode.nodeType === Node.ELEMENT_NODE) {\n this._detail.show(this._curNode)\n } else {\n this._detail.show(this._curNode.parentNode)\n }\n }\n _initTpl() {\n const $el = this._$el\n\n $el.html(\n c(`\n
\n \n \n \n \n
\n
\n
\n
\n
`)\n )\n\n this._$detail = $el.find(c('.detail'))\n this._$domViewer = $el.find(c('.dom-viewer'))\n this._$control = $el.find(c('.control'))\n this._$crumbs = $el.find(c('.crumbs'))\n }\n _renderCrumbs() {\n const crumbs = getCrumbs(this._curNode)\n let html = ''\n if (!isEmpty(crumbs)) {\n html = map(crumbs, ({ text, idx }) => {\n return `${text} `\n }).join('')\n }\n this._$crumbs.html(html)\n }\n _back = () => {\n if (this._curNode === this._htmlEl) return\n\n const parentQueue = this._curParentQueue\n let parent = parentQueue.shift()\n\n while (!isElExist(parent)) {\n parent = parentQueue.shift()\n }\n\n this.set(parent)\n }\n _bindEvent() {\n const self = this\n\n this._$el.on('click', c('.crumb'), function () {\n let idx = toNum($(this).data('idx'))\n let node = self._curNode\n\n while (idx-- && node.parentElement) {\n node = node.parentElement\n }\n\n if (isElExist(node)) {\n self.select(node)\n }\n })\n\n this._$control\n .on('click', c('.select'), this._toggleSelect)\n .on('click', c('.show-detail'), this._showDetail)\n .on('click', c('.copy-node'), this._copyNode)\n .on('click', c('.delete-node'), this._deleteNode)\n\n this._domViewer.on('select', this._setNode).on('deselect', this._back)\n\n chobitsu\n .domain('Overlay')\n .on('inspectNodeRequested', this._inspectNodeRequested)\n\n this._splitMediaQuery.on('match', () => {\n this._splitMode = true\n this._showDetail()\n })\n this._splitMediaQuery.on('unmatch', () => {\n this._splitMode = false\n this._detail.hide()\n })\n\n emitter.on(emitter.SCALE, this._updateScale)\n }\n _updateScale = (scale) => {\n this._splitMediaQuery.setQuery(`screen and (min-width: ${680 * scale}px)`)\n }\n _deleteNode = () => {\n const node = this._curNode\n\n if (node.parentNode) {\n node.parentNode.removeChild(node)\n }\n }\n _copyNode = () => {\n const node = this._curNode\n\n if (node.nodeType === Node.ELEMENT_NODE) {\n copy(node.outerHTML)\n } else {\n copy(node.nodeValue)\n }\n\n this._container.notify('Copied')\n }\n _toggleSelect = () => {\n this._$el.find(c('.select')).toggleClass(c('active'))\n this._selectElement = !this._selectElement\n\n if (this._selectElement) {\n chobitsu.domain('Overlay').setInspectMode({\n mode: 'searchForNode',\n highlightConfig: {\n showInfo: !isMobile(),\n showRulers: false,\n showAccessibilityInfo: !isMobile(),\n showExtensionLines: false,\n contrastAlgorithm: 'aa',\n contentColor: 'rgba(111, 168, 220, .66)',\n paddingColor: 'rgba(147, 196, 125, .55)',\n borderColor: 'rgba(255, 229, 153, .66)',\n marginColor: 'rgba(246, 178, 107, .66)',\n },\n })\n this._container.hide()\n } else {\n chobitsu.domain('Overlay').setInspectMode({\n mode: 'none',\n })\n chobitsu.domain('Overlay').hideHighlight()\n }\n }\n _inspectNodeRequested = ({ backendNodeId }) => {\n this._container.show()\n this._toggleSelect()\n const { node } = chobitsu.domain('DOM').getNode({ nodeId: backendNodeId })\n this.select(node)\n }\n _setNode = (node) => {\n if (node === this._curNode) return\n\n this._curNode = node\n this._renderCrumbs()\n\n const parentQueue = []\n\n let parent = node.parentNode\n while (parent) {\n parentQueue.push(parent)\n parent = parent.parentNode\n }\n this._curParentQueue = parentQueue\n\n if (this._splitMode) {\n this._showDetail()\n }\n this._updateButtons()\n this._updateHistory()\n }\n _updateHistory() {\n const console = this._container.get('console')\n if (!console) return\n\n const history = this._history\n history.unshift(this._curNode)\n if (history.length > 5) history.pop()\n for (let i = 0; i < 5; i++) {\n console.setGlobal(`$${i}`, history[i])\n }\n }\n}\n\nconst isElExist = (val) => isEl(val) && val.parentNode\n\nfunction getCrumbs(el) {\n const ret = []\n let i = 0\n\n while (el) {\n ret.push({\n text: formatNodeName(el, { noAttr: true }),\n idx: i++,\n })\n\n el = el.parentElement\n }\n\n return ret.reverse()\n}\n","import logger from '../lib/logger'\nimport emitter from '../lib/emitter'\nimport Url from 'licia/Url'\nimport now from 'licia/now'\nimport startWith from 'licia/startWith'\nimport $ from 'licia/$'\nimport upperFirst from 'licia/upperFirst'\nimport loadJs from 'licia/loadJs'\nimport trim from 'licia/trim'\nimport LunaModal from 'luna-modal'\nimport { isErudaEl } from '../lib/util'\nimport evalCss from '../lib/evalCss'\n\nlet style = null\n\nexport default [\n {\n name: 'Border All',\n fn() {\n if (style) {\n evalCss.remove(style)\n style = null\n return\n }\n\n style = evalCss(\n '* { outline: 2px dashed #707d8b; outline-offset: -3px; }',\n document.head\n )\n },\n desc: 'Add color borders to all elements',\n },\n {\n name: 'Refresh Page',\n fn() {\n const url = new Url()\n url.setQuery('timestamp', now())\n\n window.location.replace(url.toString())\n },\n desc: 'Add timestamp to url and refresh',\n },\n {\n name: 'Search Text',\n fn() {\n LunaModal.prompt('Enter the text').then((keyword) => {\n if (!keyword || trim(keyword) === '') {\n return\n }\n\n search(keyword)\n })\n },\n desc: 'Highlight given text on page',\n },\n {\n name: 'Edit Page',\n fn() {\n const body = document.body\n\n body.contentEditable = body.contentEditable !== 'true'\n },\n desc: 'Toggle body contentEditable',\n },\n {\n name: 'Fit Screen',\n // https://achrafkassioui.com/birdview/\n fn() {\n const body = document.body\n const html = document.documentElement\n const $body = $(body)\n if ($body.data('scaled')) {\n window.scrollTo(0, +$body.data('scaled'))\n $body.rmAttr('data-scaled')\n $body.css('transform', 'none')\n } else {\n const documentHeight = Math.max(\n body.scrollHeight,\n body.offsetHeight,\n html.clientHeight,\n html.scrollHeight,\n html.offsetHeight\n )\n const viewportHeight = Math.max(\n document.documentElement.clientHeight,\n window.innerHeight || 0\n )\n const scaleVal = viewportHeight / documentHeight\n $body.css('transform', `scale(${scaleVal})`)\n $body.data('scaled', window.scrollY)\n window.scrollTo(0, documentHeight / 2 - viewportHeight / 2)\n }\n },\n desc: 'Scale down the whole page to fit screen',\n },\n {\n name: 'Load Fps Plugin',\n fn() {\n loadPlugin('fps')\n },\n desc: 'Display page fps',\n },\n {\n name: 'Load Features Plugin',\n fn() {\n loadPlugin('features')\n },\n desc: 'Browser feature detections',\n },\n {\n name: 'Load Timing Plugin',\n fn() {\n loadPlugin('timing')\n },\n desc: 'Show performance and resource timing',\n },\n {\n name: 'Load Memory Plugin',\n fn() {\n loadPlugin('memory')\n },\n desc: 'Display memory',\n },\n {\n name: 'Load Code Plugin',\n fn() {\n loadPlugin('code')\n },\n desc: 'Edit and run JavaScript',\n },\n {\n name: 'Load Benchmark Plugin',\n fn() {\n loadPlugin('benchmark')\n },\n desc: 'Run JavaScript benchmarks',\n },\n {\n name: 'Load Geolocation Plugin',\n fn() {\n loadPlugin('geolocation')\n },\n desc: 'Test geolocation',\n },\n {\n name: 'Load Orientation Plugin',\n fn() {\n loadPlugin('orientation')\n },\n desc: 'Test orientation api',\n },\n {\n name: 'Load Touches Plugin',\n fn() {\n loadPlugin('touches')\n },\n desc: 'Visualize screen touches',\n },\n]\n\nevalCss(require('./searchText.scss'), document.head)\n\nfunction search(text) {\n const root = document.body\n const regText = new RegExp(text, 'ig')\n\n traverse(root, (node) => {\n const $node = $(node)\n\n if (!$node.hasClass('eruda-search-highlight-block')) return\n\n return document.createTextNode($node.text())\n })\n\n traverse(root, (node) => {\n if (node.nodeType !== 3) return\n\n let val = node.nodeValue\n val = val.replace(\n regText,\n (match) => `${match} `\n )\n if (val === node.nodeValue) return\n\n const $ret = $(document.createElement('div'))\n\n $ret.html(val)\n $ret.addClass('eruda-search-highlight-block')\n\n return $ret.get(0)\n })\n}\n\nfunction traverse(root, processor) {\n const childNodes = root.childNodes\n\n if (isErudaEl(root)) return\n\n for (let i = 0, len = childNodes.length; i < len; i++) {\n const newNode = traverse(childNodes[i], processor)\n if (newNode) root.replaceChild(newNode, childNodes[i])\n }\n\n return processor(root)\n}\n\nfunction loadPlugin(name) {\n const globalName = 'eruda' + upperFirst(name)\n if (window[globalName]) return\n\n let protocol = location.protocol\n if (!startWith(protocol, 'http')) protocol = 'http:'\n\n loadJs(\n `${protocol}//cdn.jsdelivr.net/npm/eruda-${name}@${pluginVersion[name]}`,\n (isLoaded) => {\n if (!isLoaded || !window[globalName])\n return logger.error('Fail to load plugin ' + name)\n\n emitter.emit(emitter.ADD, window[globalName])\n emitter.emit(emitter.SHOW, name)\n }\n )\n}\n\nconst pluginVersion = {\n fps: '2.0.0',\n features: '2.0.0',\n timing: '2.0.1',\n memory: '2.0.0',\n code: '2.1.0',\n benchmark: '2.0.0',\n geolocation: '2.0.0',\n dom: '2.0.0',\n orientation: '2.0.0',\n touches: '2.0.0',\n}\n","import Tool from '../DevTools/Tool'\nimport defSnippets from './defSnippets'\nimport $ from 'licia/$'\nimport each from 'licia/each'\nimport escape from 'licia/escape'\nimport map from 'licia/map'\nimport evalCss from '../lib/evalCss'\nimport { classPrefix as c } from '../lib/util'\n\nexport default class Snippets extends Tool {\n constructor() {\n super()\n\n this._style = evalCss(require('./Snippets.scss'))\n\n this.name = 'snippets'\n\n this._snippets = []\n }\n init($el) {\n super.init($el)\n\n this._bindEvent()\n this._addDefSnippets()\n }\n destroy() {\n super.destroy()\n\n evalCss.remove(this._style)\n }\n add(name, fn, desc) {\n this._snippets.push({ name, fn, desc })\n\n this._render()\n\n return this\n }\n remove(name) {\n const snippets = this._snippets\n\n for (let i = 0, len = snippets.length; i < len; i++) {\n if (snippets[i].name === name) snippets.splice(i, 1)\n }\n\n this._render()\n\n return this\n }\n run(name) {\n const snippets = this._snippets\n\n for (let i = 0, len = snippets.length; i < len; i++) {\n if (snippets[i].name === name) this._run(i)\n }\n\n return this\n }\n clear() {\n this._snippets = []\n this._render()\n\n return this\n }\n _bindEvent() {\n const self = this\n\n this._$el.on('click', '.eruda-run', function () {\n const idx = $(this).data('idx')\n\n self._run(idx)\n })\n }\n _run(idx) {\n this._snippets[idx].fn.call(null)\n }\n _addDefSnippets() {\n each(defSnippets, (snippet) => {\n this.add(snippet.name, snippet.fn, snippet.desc)\n })\n }\n _render() {\n const html = map(this._snippets, (snippet, idx) => {\n return `\n
${escape(snippet.name)}\n \n \n
\n \n
\n ${escape(snippet.desc)}\n
\n
`\n }).join('')\n\n this._renderHtml(html)\n }\n _renderHtml(html) {\n if (html === this._lastHtml) return\n this._lastHtml = html\n this._$el.html(html)\n }\n}\n","import each from 'licia/each'\nimport isStr from 'licia/isStr'\nimport startWith from 'licia/startWith'\nimport truncate from 'licia/truncate'\nimport LunaModal from 'luna-modal'\nimport LunaDataGrid from 'luna-data-grid'\nimport isNull from 'licia/isNull'\nimport trim from 'licia/trim'\nimport copy from 'licia/copy'\nimport emitter from '../lib/emitter'\nimport { safeStorage, classPrefix as c } from '../lib/util'\n\nexport default class Storage {\n constructor($container, devtools, resources, type) {\n this._type = type\n this._$container = $container\n this._devtools = devtools\n this._resources = resources\n this._selectedItem = null\n this._storeData = []\n\n this._initTpl()\n this._dataGrid = new LunaDataGrid(this._$dataGrid.get(0), {\n columns: [\n {\n id: 'key',\n title: 'Key',\n weight: 30,\n },\n {\n id: 'value',\n title: 'Value',\n weight: 90,\n },\n ],\n minHeight: 60,\n maxHeight: 223,\n })\n\n this._bindEvent()\n }\n destroy() {\n emitter.off(emitter.SCALE, this._updateGridHeight)\n }\n refresh() {\n const dataGrid = this._dataGrid\n\n this._refreshStorage()\n dataGrid.clear()\n\n each(this._storeData, ({ key, val }) => {\n dataGrid.append(\n {\n key,\n value: val,\n },\n {\n selectable: true,\n }\n )\n })\n }\n _refreshStorage() {\n const resources = this._resources\n\n let store = safeStorage(this._type, false)\n\n if (!store) return\n\n const storeData = []\n\n // Mobile safari is not able to loop through localStorage directly.\n store = JSON.parse(JSON.stringify(store))\n\n each(store, (val, key) => {\n // According to issue 20, not all values are guaranteed to be string.\n if (!isStr(val)) return\n\n if (resources.config.get('hideErudaSetting')) {\n if (startWith(key, 'eruda') || key === 'active-eruda') return\n }\n\n storeData.push({\n key: key,\n val: truncate(val, 200),\n })\n })\n\n this._storeData = storeData\n }\n _updateButtons() {\n const $container = this._$container\n const $showDetail = $container.find(c('.show-detail'))\n const $deleteStorage = $container.find(c('.delete-storage'))\n const $copyStorage = $container.find(c('.copy-storage'))\n const btnDisabled = c('btn-disabled')\n\n $showDetail.addClass(btnDisabled)\n $deleteStorage.addClass(btnDisabled)\n $copyStorage.addClass(btnDisabled)\n\n if (this._selectedItem) {\n $showDetail.rmClass(btnDisabled)\n $deleteStorage.rmClass(btnDisabled)\n $copyStorage.rmClass(btnDisabled)\n }\n }\n _initTpl() {\n const $container = this._$container\n const type = this._type\n\n $container.html(\n c(`\n ${type === 'local' ? 'Local' : 'Session'} Storage\n \n \n
\n \n \n
\n \n \n
\n \n \n
\n \n \n
\n \n \n
\n
\n \n
`)\n )\n\n this._$dataGrid = $container.find(c('.data-grid'))\n this._$filterText = $container.find(c('.filter-text'))\n }\n _getVal(key) {\n return this._type === 'local'\n ? localStorage.getItem(key)\n : sessionStorage.getItem(key)\n }\n _updateGridHeight = (scale) => {\n this._dataGrid.setOption({\n minHeight: 60 * scale,\n maxHeight: 223 * scale,\n })\n }\n _bindEvent() {\n const type = this._type\n const devtools = this._devtools\n\n this._$container\n .on('click', c('.refresh-storage'), () => {\n devtools.notify('Refreshed')\n this.refresh()\n })\n .on('click', c('.clear-storage'), () => {\n each(this._storeData, (val) => {\n if (type === 'local') {\n localStorage.removeItem(val.key)\n } else {\n sessionStorage.removeItem(val.key)\n }\n })\n this.refresh()\n })\n .on('click', c('.show-detail'), () => {\n const key = this._selectedItem\n const val = this._getVal(key)\n\n try {\n showSources('object', JSON.parse(val))\n } catch (e) {\n showSources('raw', val)\n }\n })\n .on('click', c('.copy-storage'), () => {\n const key = this._selectedItem\n copy(this._getVal(key))\n devtools.notify('Copied')\n })\n .on('click', c('.filter'), () => {\n LunaModal.prompt('Filter').then((filter) => {\n if (isNull(filter)) return\n filter = trim(filter)\n this._$filterText.text(filter)\n this._dataGrid.setOption('filter', filter)\n })\n })\n .on('click', c('.delete-storage'), () => {\n const key = this._selectedItem\n\n if (type === 'local') {\n localStorage.removeItem(key)\n } else {\n sessionStorage.removeItem(key)\n }\n\n this.refresh()\n })\n\n function showSources(type, data) {\n const sources = devtools.get('sources')\n if (!sources) return\n\n sources.set(type, data)\n\n devtools.showTool('sources')\n\n return true\n }\n\n this._dataGrid\n .on('select', (node) => {\n this._selectedItem = node.data.key\n this._updateButtons()\n })\n .on('deselect', () => {\n this._selectedItem = null\n this._updateButtons()\n })\n\n emitter.on(emitter.SCALE, this._updateGridHeight)\n }\n}\n","import { classPrefix as c } from '../lib/util'\n\nexport function setState($el, state) {\n $el\n .rmClass(c('ok'))\n .rmClass(c('danger'))\n .rmClass(c('warn'))\n .addClass(c(state))\n}\n\nexport function getState(type, len) {\n if (len === 0) return ''\n\n let warn = 0\n let danger = 0\n\n switch (type) {\n case 'cookie':\n warn = 30\n danger = 60\n break\n case 'script':\n warn = 5\n danger = 10\n break\n case 'stylesheet':\n warn = 4\n danger = 8\n break\n case 'image':\n warn = 50\n danger = 100\n break\n }\n\n if (len >= danger) return 'danger'\n if (len >= warn) return 'warn'\n\n return 'ok'\n}\n","import map from 'licia/map'\nimport trim from 'licia/trim'\nimport isNull from 'licia/isNull'\nimport each from 'licia/each'\nimport copy from 'licia/copy'\nimport LunaModal from 'luna-modal'\nimport LunaDataGrid from 'luna-data-grid'\nimport { setState, getState } from './util'\nimport chobitsu from '../lib/chobitsu'\nimport { classPrefix as c } from '../lib/util'\n\nexport default class Cookie {\n constructor($container, devtools) {\n this._$container = $container\n this._devtools = devtools\n this._selectedItem = null\n\n this._initTpl()\n this._dataGrid = new LunaDataGrid(this._$dataGrid.get(0), {\n columns: [\n {\n id: 'key',\n title: 'Key',\n weight: 30,\n },\n {\n id: 'value',\n title: 'Value',\n weight: 90,\n },\n ],\n minHeight: 60,\n maxHeight: 223,\n })\n\n this._bindEvent()\n }\n refresh() {\n const $container = this._$container\n const dataGrid = this._dataGrid\n\n const { cookies } = chobitsu.domain('Network').getCookies()\n const cookieData = map(cookies, ({ name, value }) => ({\n key: name,\n val: value,\n }))\n\n dataGrid.clear()\n each(cookieData, ({ key, val }) => {\n dataGrid.append(\n {\n key,\n value: val,\n },\n {\n selectable: true,\n }\n )\n })\n\n const cookieState = getState('cookie', cookieData.length)\n setState($container, cookieState)\n }\n _initTpl() {\n const $container = this._$container\n\n $container.html(\n c(`\n Cookie\n \n \n
\n \n \n
\n \n \n
\n \n \n
\n \n \n
\n \n \n
\n
\n \n
`)\n )\n\n this._$dataGrid = $container.find(c('.data-grid'))\n this._$filterText = $container.find(c('.filter-text'))\n }\n _updateButtons() {\n const $container = this._$container\n const $showDetail = $container.find(c('.show-detail'))\n const $deleteCookie = $container.find(c('.delete-cookie'))\n const $copyCookie = $container.find(c('.copy-cookie'))\n const btnDisabled = c('btn-disabled')\n\n $showDetail.addClass(btnDisabled)\n $deleteCookie.addClass(btnDisabled)\n $copyCookie.addClass(btnDisabled)\n\n if (this._selectedItem) {\n $showDetail.rmClass(btnDisabled)\n $deleteCookie.rmClass(btnDisabled)\n $copyCookie.rmClass(btnDisabled)\n }\n }\n _getVal(key) {\n const { cookies } = chobitsu.domain('Network').getCookies()\n\n for (let i = 0, len = cookies.length; i < len; i++) {\n if (cookies[i].name === key) {\n return cookies[i].value\n }\n }\n\n return ''\n }\n _bindEvent() {\n const devtools = this._devtools\n\n this._$container\n .on('click', c('.refresh-cookie'), () => {\n devtools.notify('Refreshed')\n this.refresh()\n })\n .on('click', c('.clear-cookie'), () => {\n chobitsu.domain('Storage').clearDataForOrigin({\n storageTypes: 'cookies',\n })\n this.refresh()\n })\n .on('click', c('.delete-cookie'), () => {\n const key = this._selectedItem\n\n chobitsu.domain('Network').deleteCookies({ name: key })\n this.refresh()\n })\n .on('click', c('.show-detail'), () => {\n const key = this._selectedItem\n const val = this._getVal(key)\n\n try {\n showSources('object', JSON.parse(val))\n } catch (e) {\n showSources('raw', val)\n }\n })\n .on('click', c('.copy-cookie'), () => {\n const key = this._selectedItem\n copy(this._getVal(key))\n devtools.notify('Copied')\n })\n .on('click', c('.filter'), () => {\n LunaModal.prompt('Filter').then((filter) => {\n if (isNull(filter)) return\n filter = trim(filter)\n this._filter = filter\n this._$filterText.text(filter)\n this._dataGrid.setOption('filter', filter)\n })\n })\n\n function showSources(type, data) {\n const sources = devtools.get('sources')\n if (!sources) return\n\n sources.set(type, data)\n\n devtools.showTool('sources')\n\n return true\n }\n\n this._dataGrid\n .on('select', (node) => {\n this._selectedItem = node.data.key\n this._updateButtons()\n })\n .on('deselect', () => {\n this._selectedItem = null\n this._updateButtons()\n })\n }\n}\n","import Tool from '../DevTools/Tool'\nimport Settings from '../Settings/Settings'\nimport $ from 'licia/$'\nimport escape from 'licia/escape'\nimport isEmpty from 'licia/isEmpty'\nimport contain from 'licia/contain'\nimport unique from 'licia/unique'\nimport each from 'licia/each'\nimport sameOrigin from 'licia/sameOrigin'\nimport ajax from 'licia/ajax'\nimport MutationObserver from 'licia/MutationObserver'\nimport toArr from 'licia/toArr'\nimport concat from 'licia/concat'\nimport map from 'licia/map'\nimport { isErudaEl, classPrefix as c } from '../lib/util'\nimport evalCss from '../lib/evalCss'\nimport Storage from './Storage'\nimport Cookie from './Cookie'\nimport { setState, getState } from './util'\n\nexport default class Resources extends Tool {\n constructor() {\n super()\n\n this._style = evalCss(require('./Resources.scss'))\n\n this.name = 'resources'\n this._hideErudaSetting = false\n this._observeElement = true\n }\n init($el, container) {\n super.init($el)\n\n this._container = container\n\n this._initTpl()\n this._localStorage = new Storage(\n this._$localStorage,\n container,\n this,\n 'local'\n )\n this._sessionStorage = new Storage(\n this._$sessionStorage,\n container,\n this,\n 'session'\n )\n this._cookie = new Cookie(this._$cookie, container)\n\n this._bindEvent()\n this._initObserver()\n this._initCfg()\n }\n refresh() {\n return this.refreshLocalStorage()\n .refreshSessionStorage()\n .refreshCookie()\n .refreshScript()\n .refreshStylesheet()\n .refreshIframe()\n .refreshImage()\n }\n destroy() {\n super.destroy()\n\n this._localStorage.destroy()\n this._sessionStorage.destroy()\n this._disableObserver()\n evalCss.remove(this._style)\n this._rmCfg()\n }\n refreshScript() {\n let scriptData = []\n\n $('script').each(function () {\n const src = this.src\n\n if (src !== '') scriptData.push(src)\n })\n\n scriptData = unique(scriptData)\n\n const scriptState = getState('script', scriptData.length)\n let scriptDataHtml = 'Empty '\n if (!isEmpty(scriptData)) {\n scriptDataHtml = map(scriptData, (script) => {\n script = escape(script)\n return `${script} `\n }).join('')\n }\n\n const scriptHtml = `\n Script\n \n \n
\n \n `\n\n const $script = this._$script\n setState($script, scriptState)\n $script.html(scriptHtml)\n\n return this\n }\n refreshStylesheet() {\n let stylesheetData = []\n\n $('link').each(function () {\n if (this.rel !== 'stylesheet') return\n\n stylesheetData.push(this.href)\n })\n\n stylesheetData = unique(stylesheetData)\n\n const stylesheetState = getState('stylesheet', stylesheetData.length)\n let stylesheetDataHtml = 'Empty '\n if (!stylesheetData) {\n stylesheetDataHtml = map(stylesheetData, (stylesheet) => {\n stylesheet = escape(stylesheet)\n return ` ${stylesheet} `\n }).join('')\n }\n\n const stylesheetHtml = `\n Stylesheet\n \n \n
\n \n \n ${stylesheetDataHtml}\n `\n\n const $stylesheet = this._$stylesheet\n setState($stylesheet, stylesheetState)\n $stylesheet.html(stylesheetHtml)\n\n return this\n }\n refreshIframe() {\n let iframeData = []\n\n $('iframe').each(function () {\n const $this = $(this)\n const src = $this.attr('src')\n\n if (src) iframeData.push(src)\n })\n\n iframeData = unique(iframeData)\n\n let iframeDataHtml = 'Empty '\n if (!isEmpty(iframeData)) {\n iframeDataHtml = map(iframeData, (iframe) => {\n iframe = escape(iframe)\n return `${iframe} `\n }).join('')\n }\n const iframeHtml = `\n Iframe\n \n \n
\n \n `\n\n this._$iframe.html(iframeHtml)\n\n return this\n }\n refreshLocalStorage() {\n this._localStorage.refresh()\n\n return this\n }\n refreshSessionStorage() {\n this._sessionStorage.refresh()\n\n return this\n }\n refreshCookie() {\n this._cookie.refresh()\n\n return this\n }\n refreshImage() {\n let imageData = []\n\n const performance = (this._performance =\n window.webkitPerformance || window.performance)\n if (performance && performance.getEntries) {\n const entries = this._performance.getEntries()\n entries.forEach((entry) => {\n if (entry.initiatorType === 'img' || isImg(entry.name)) {\n if (contain(entry.name, 'exclude=true')) {\n return\n }\n imageData.push(entry.name)\n }\n })\n } else {\n $('img').each(function () {\n const $this = $(this)\n const src = $this.attr('src')\n\n if ($this.data('exclude') === 'true') {\n return\n }\n\n imageData.push(src)\n })\n }\n\n imageData = unique(imageData)\n imageData.sort()\n\n const imageState = getState('image', imageData.length)\n let imageDataHtml = 'Empty '\n if (!isEmpty(imageData)) {\n imageDataHtml = map(imageData, (image) => {\n return `\n \n `\n }).join('')\n }\n\n const imageHtml = `\n Image\n \n \n
\n \n `\n\n const $image = this._$image\n setState($image, imageState)\n $image.html(imageHtml)\n\n return this\n }\n show() {\n super.show()\n if (this._observeElement) this._enableObserver()\n\n return this.refresh()\n }\n hide() {\n this._disableObserver()\n\n return super.hide()\n }\n _initTpl() {\n const $el = this._$el\n $el.html(\n c(`
\n
\n
\n
\n
\n
\n
`)\n )\n this._$localStorage = $el.find(c('.local-storage'))\n this._$sessionStorage = $el.find(c('.session-storage'))\n this._$cookie = $el.find(c('.cookie'))\n this._$script = $el.find(c('.script'))\n this._$stylesheet = $el.find(c('.stylesheet'))\n this._$iframe = $el.find(c('.iframe'))\n this._$image = $el.find(c('.image'))\n }\n _bindEvent() {\n const $el = this._$el\n const container = this._container\n\n $el\n .on('click', '.eruda-refresh-script', () => {\n container.notify('Refreshed')\n this.refreshScript()\n })\n .on('click', '.eruda-refresh-stylesheet', () => {\n container.notify('Refreshed')\n this.refreshStylesheet()\n })\n .on('click', '.eruda-refresh-iframe', () => {\n container.notify('Refreshed')\n this.refreshIframe()\n })\n .on('click', '.eruda-refresh-image', () => {\n container.notify('Refreshed')\n this.refreshImage()\n })\n .on('click', '.eruda-img-link', function () {\n const src = $(this).attr('src')\n\n showSources('img', src)\n })\n .on('click', '.eruda-css-link', linkFactory('css'))\n .on('click', '.eruda-js-link', linkFactory('js'))\n .on('click', '.eruda-iframe-link', linkFactory('iframe'))\n\n function showSources(type, data) {\n const sources = container.get('sources')\n if (!sources) return\n\n sources.set(type, data)\n\n container.showTool('sources')\n\n return true\n }\n\n function linkFactory(type) {\n return function (e) {\n if (!container.get('sources')) return\n e.preventDefault()\n\n const url = $(this).attr('href')\n\n if (type === 'iframe' || !sameOrigin(location.href, url)) {\n showSources('iframe', url)\n } else {\n ajax({\n url,\n success: (data) => {\n showSources(type, data)\n },\n dataType: 'raw',\n })\n }\n }\n }\n }\n _rmCfg() {\n const cfg = this.config\n\n const settings = this._container.get('settings')\n\n if (!settings) return\n\n settings\n .remove(cfg, 'hideErudaSetting')\n .remove(cfg, 'observeElement')\n .remove('Resources')\n }\n _initCfg() {\n const cfg = (this.config = Settings.createCfg('resources', {\n hideErudaSetting: true,\n observeElement: true,\n }))\n\n if (cfg.get('hideErudaSetting')) this._hideErudaSetting = true\n if (!cfg.get('observeElement')) this._observeElement = false\n\n cfg.on('change', (key, val) => {\n switch (key) {\n case 'hideErudaSetting':\n this._hideErudaSetting = val\n return\n case 'observeElement':\n this._observeElement = val\n return val ? this._enableObserver() : this._disableObserver()\n }\n })\n\n const settings = this._container.get('settings')\n settings\n .text('Resources')\n .switch(cfg, 'hideErudaSetting', 'Hide Eruda Setting')\n .switch(cfg, 'observeElement', 'Auto Refresh Elements')\n .separator()\n }\n _initObserver() {\n this._observer = new MutationObserver((mutations) => {\n each(mutations, (mutation) => {\n this._handleMutation(mutation)\n })\n })\n }\n _handleMutation(mutation) {\n if (isErudaEl(mutation.target)) return\n\n const checkEl = (el) => {\n const tagName = getLowerCaseTagName(el)\n switch (tagName) {\n case 'script':\n this.refreshScript()\n break\n case 'img':\n this.refreshImage()\n break\n case 'link':\n this.refreshStylesheet()\n break\n }\n }\n\n if (mutation.type === 'attributes') {\n checkEl(mutation.target)\n } else if (mutation.type === 'childList') {\n checkEl(mutation.target)\n let nodes = toArr(mutation.addedNodes)\n nodes = concat(nodes, toArr(mutation.removedNodes))\n\n for (const node of nodes) {\n checkEl(node)\n }\n }\n }\n _enableObserver() {\n this._observer.observe(document.documentElement, {\n attributes: true,\n childList: true,\n subtree: true,\n })\n }\n _disableObserver() {\n this._observer.disconnect()\n }\n}\n\nfunction getLowerCaseTagName(el) {\n if (!el.tagName) return ''\n return el.tagName.toLowerCase()\n}\n\nconst regImg = /\\.(jpeg|jpg|gif|png)$/\n\nconst isImg = (url) => regImg.test(url)\n","import detectBrowser from 'licia/detectBrowser'\nimport detectOs from 'licia/detectOs'\nimport escape from 'licia/escape'\n\nconst browser = detectBrowser()\n\nexport default [\n {\n name: 'Location',\n val() {\n return escape(location.href)\n },\n },\n {\n name: 'User Agent',\n val: navigator.userAgent,\n },\n {\n name: 'Device',\n val: [\n '',\n `screen ${screen.width} * ${screen.height} `,\n `viewport ${window.innerWidth} * ${window.innerHeight} `,\n `pixel ratio ${window.devicePixelRatio} `,\n '
',\n ].join(''),\n },\n {\n name: 'System',\n val: [\n '',\n `os ${detectOs()} `,\n `browser ${\n browser.name + ' ' + browser.version\n } `,\n '
',\n ].join(''),\n },\n {\n name: 'About',\n val:\n 'Eruda v' +\n VERSION +\n ' ',\n },\n {\n name: 'Backers',\n val() {\n return ` `\n },\n },\n]\n","import Tool from '../DevTools/Tool'\nimport defInfo from './defInfo'\nimport each from 'licia/each'\nimport isFn from 'licia/isFn'\nimport isUndef from 'licia/isUndef'\nimport cloneDeep from 'licia/cloneDeep'\nimport evalCss from '../lib/evalCss'\nimport map from 'licia/map'\nimport escape from 'licia/escape'\nimport copy from 'licia/copy'\nimport $ from 'licia/$'\nimport { classPrefix as c } from '../lib/util'\n\nexport default class Info extends Tool {\n constructor() {\n super()\n\n this._style = evalCss(require('./Info.scss'))\n\n this.name = 'info'\n this._infos = []\n }\n init($el, container) {\n super.init($el)\n this._container = container\n\n this._addDefInfo()\n this._bindEvent()\n }\n destroy() {\n super.destroy()\n\n evalCss.remove(this._style)\n }\n add(name, val) {\n const infos = this._infos\n let isUpdate = false\n\n each(infos, (info) => {\n if (name !== info.name) return\n\n info.val = val\n isUpdate = true\n })\n\n if (!isUpdate) infos.push({ name, val })\n\n this._render()\n\n return this\n }\n get(name) {\n const infos = this._infos\n\n if (isUndef(name)) {\n return cloneDeep(infos)\n }\n\n let result\n\n each(infos, (info) => {\n if (name === info.name) result = info.val\n })\n\n return result\n }\n remove(name) {\n const infos = this._infos\n\n for (let i = infos.length - 1; i >= 0; i--) {\n if (infos[i].name === name) infos.splice(i, 1)\n }\n\n this._render()\n\n return this\n }\n clear() {\n this._infos = []\n\n this._render()\n\n return this\n }\n _addDefInfo() {\n each(defInfo, (info) => this.add(info.name, info.val))\n }\n _render() {\n const infos = []\n\n each(this._infos, ({ name, val }) => {\n if (isFn(val)) val = val()\n\n infos.push({ name, val })\n })\n\n const html = `${map(\n infos,\n (info) =>\n `${escape(info.name)} ${info.val}
`\n ).join('')} `\n\n this._renderHtml(html)\n }\n _bindEvent() {\n const container = this._container\n\n this._$el.on('click', c('.copy'), function () {\n const $li = $(this).parent().parent()\n const name = $li.find(c('.title')).text()\n const content = $li.find(c('.content')).text()\n copy(`${name}: ${content}`)\n container.notify('Copied')\n })\n }\n _renderHtml(html) {\n if (html === this._lastHtml) return\n this._lastHtml = html\n this._$el.html(html)\n }\n}\n","import Tool from '../DevTools/Tool'\nimport LunaObjectViewer from 'luna-object-viewer'\nimport Settings from '../Settings/Settings'\nimport ajax from 'licia/ajax'\nimport each from 'licia/each'\nimport isStr from 'licia/isStr'\nimport escape from 'licia/escape'\nimport truncate from 'licia/truncate'\nimport replaceAll from 'licia/replaceAll'\nimport highlight from 'licia/highlight'\nimport LunaTextViewer from 'luna-text-viewer'\nimport evalCss from '../lib/evalCss'\nimport { classPrefix as c } from '../lib/util'\n\nexport default class Sources extends Tool {\n constructor() {\n super()\n\n this._style = evalCss(require('./Sources.scss'))\n\n this.name = 'sources'\n this._showLineNum = true\n }\n init($el, container) {\n super.init($el)\n\n this._container = container\n this._bindEvent()\n this._initCfg()\n }\n destroy() {\n super.destroy()\n\n evalCss.remove(this._style)\n this._rmCfg()\n }\n set(type, val) {\n if (type === 'img') {\n this._isFetchingData = true\n\n const img = new Image()\n\n const self = this\n\n img.onload = function () {\n self._isFetchingData = false\n self._data = {\n type: 'img',\n val: {\n width: this.width,\n height: this.height,\n src: val,\n },\n }\n\n self._render()\n }\n img.onerror = function () {\n self._isFetchingData = false\n }\n\n img.src = val\n\n return\n }\n\n this._data = { type, val }\n\n this._render()\n\n return this\n }\n show() {\n super.show()\n\n if (!this._data && !this._isFetchingData) {\n this._renderDef()\n }\n\n return this\n }\n _renderDef() {\n if (this._html) {\n this._data = {\n type: 'html',\n val: this._html,\n }\n\n return this._render()\n }\n\n if (this._isGettingHtml) return\n this._isGettingHtml = true\n\n ajax({\n url: location.href,\n success: (data) => (this._html = data),\n error: () => (this._html = 'Sorry, unable to fetch source code:('),\n complete: () => {\n this._isGettingHtml = false\n this._renderDef()\n },\n dataType: 'raw',\n })\n }\n _bindEvent() {\n this._container.on('showTool', (name, lastTool) => {\n if (name !== this.name && lastTool.name === this.name) {\n delete this._data\n }\n })\n }\n _rmCfg() {\n const cfg = this.config\n\n const settings = this._container.get('settings')\n\n if (!settings) return\n\n settings.remove(cfg, 'showLineNum').remove('Sources')\n }\n _initCfg() {\n const cfg = (this.config = Settings.createCfg('sources', {\n showLineNum: true,\n }))\n\n if (!cfg.get('showLineNum')) this._showLineNum = false\n\n cfg.on('change', (key, val) => {\n switch (key) {\n case 'showLineNum':\n this._showLineNum = val\n return\n }\n })\n\n const settings = this._container.get('settings')\n settings\n .text('Sources')\n .switch(cfg, 'showLineNum', 'Show Line Numbers')\n .separator()\n }\n _render() {\n this._isInit = true\n\n const data = this._data\n\n switch (data.type) {\n case 'html':\n case 'js':\n case 'css':\n return this._renderCode()\n case 'img':\n return this._renderImg()\n case 'object':\n return this._renderObj()\n case 'raw':\n return this._renderRaw()\n case 'iframe':\n return this._renderIframe()\n }\n }\n _renderImg() {\n const { width, height, src } = this._data.val\n\n this._renderHtml(`\n
${escape(src)}
\n
\n
\n
\n
${escape(width)} × ${escape(height)}
\n
`)\n }\n _renderCode() {\n const data = this._data\n\n this._renderHtml(\n `
`,\n false\n )\n\n let code = data.val\n const len = data.val.length\n\n if (len > MAX_RAW_LEN) {\n code = truncate(code, MAX_RAW_LEN)\n }\n\n // If source code too big, don't process it.\n if (len < MAX_BEAUTIFY_LEN) {\n code = highlight(code, data.type, {\n comment: '',\n string: '',\n number: '',\n keyword: '',\n operator: '',\n })\n each(['comment', 'string', 'number', 'keyword', 'operator'], (type) => {\n code = replaceAll(code, `class=\"${type}\"`, `class=\"${c(type)}\"`)\n })\n } else {\n code = escape(code)\n }\n\n const container = this._$el.find(c('.code')).get(0)\n new LunaTextViewer(container, {\n text: code,\n escape: false,\n wrapLongLines: true,\n showLineNumbers: data.val.length < MAX_LINE_NUM_LEN && this._showLineNum,\n })\n }\n _renderObj() {\n // Using cache will keep binding events to the same elements.\n this._renderHtml(``, false)\n\n let val = this._data.val\n\n try {\n if (isStr(val)) {\n val = JSON.parse(val)\n }\n /* eslint-disable no-empty */\n } catch (e) {}\n\n const objViewer = new LunaObjectViewer(\n this._$el.find('.eruda-json').get(0),\n {\n unenumerable: true,\n accessGetter: true,\n }\n )\n objViewer.set(val)\n }\n _renderRaw() {\n const data = this._data\n\n this._renderHtml(``)\n\n let val = data.val\n const container = this._$el.find(c('.raw')).get(0)\n if (val.length > MAX_RAW_LEN) {\n val = truncate(val, MAX_RAW_LEN)\n }\n\n new LunaTextViewer(container, {\n text: val,\n wrapLongLines: true,\n showLineNumbers: val.length < MAX_LINE_NUM_LEN && this._showLineNum,\n })\n }\n _renderIframe() {\n this._renderHtml(``)\n }\n _renderHtml(html, cache = true) {\n if (cache && html === this._lastHtml) return\n this._lastHtml = html\n this._$el.html(html)\n // Need setTimeout to make it work\n setTimeout(() => (this._$el.get(0).scrollTop = 0), 0)\n }\n}\n\nconst MAX_BEAUTIFY_LEN = 30000\nconst MAX_LINE_NUM_LEN = 80000\nconst MAX_RAW_LEN = 100000\n","import 'core-js/modules/es.map'\nimport 'core-js/stable/promise'\nimport EntryBtn from './EntryBtn/EntryBtn'\nimport DevTools from './DevTools/DevTools'\nimport Tool from './DevTools/Tool'\nimport Console from './Console/Console'\nimport Network from './Network/Network'\nimport Elements from './Elements/Elements'\nimport Snippets from './Snippets/Snippets'\nimport Resources from './Resources/Resources'\nimport Info from './Info/Info'\nimport Sources from './Sources/Sources'\nimport Settings from './Settings/Settings'\nimport emitter from './lib/emitter'\nimport logger from './lib/logger'\nimport * as util from './lib/util'\nimport isFn from 'licia/isFn'\nimport isNum from 'licia/isNum'\nimport isObj from 'licia/isObj'\nimport isMobile from 'licia/isMobile'\nimport viewportScale from 'licia/viewportScale'\nimport detectBrowser from 'licia/detectBrowser'\nimport $ from 'licia/$'\nimport toArr from 'licia/toArr'\nimport upperFirst from 'licia/upperFirst'\nimport nextTick from 'licia/nextTick'\nimport extend from 'licia/extend'\nimport evalCss from './lib/evalCss'\nimport chobitsu from './lib/chobitsu'\n\nexport default {\n init({\n container,\n tool,\n autoScale = true,\n useShadowDom = true,\n defaults = {},\n } = {}) {\n if (this._isInit) return\n\n this._isInit = true\n this._scale = 1\n\n this._initContainer(container, useShadowDom)\n this._initStyle()\n this._initDevTools(defaults)\n this._initEntryBtn()\n this._initSettings()\n this._initTools(tool)\n this._registerListener()\n\n if (autoScale) this._autoScale()\n },\n _isInit: false,\n version: VERSION,\n util,\n chobitsu,\n Tool,\n Console,\n Elements,\n Network,\n Sources,\n Resources,\n Info,\n Snippets,\n Settings,\n get(name) {\n if (!this._checkInit()) return\n\n if (name === 'entryBtn') return this._entryBtn\n\n const devTools = this._devTools\n\n return name ? devTools.get(name) : devTools\n },\n add(tool) {\n if (!this._checkInit()) return\n\n if (isFn(tool)) tool = tool(this)\n\n this._devTools.add(tool)\n\n return this\n },\n remove(name) {\n this._devTools.remove(name)\n\n return this\n },\n show(name) {\n if (!this._checkInit()) return\n\n const devTools = this._devTools\n\n name ? devTools.showTool(name) : devTools.show()\n\n return this\n },\n hide() {\n if (!this._checkInit()) return\n\n this._devTools.hide()\n\n return this\n },\n destroy() {\n this._devTools.destroy()\n delete this._devTools\n this._entryBtn.destroy()\n delete this._entryBtn\n this._unregisterListener()\n $(this._container).remove()\n evalCss.clear()\n this._isInit = false\n this._container = null\n this._shadowRoot = null\n },\n scale(s) {\n if (isNum(s)) {\n this._scale = s\n emitter.emit(emitter.SCALE, s)\n return this\n }\n\n return this._scale\n },\n position(p) {\n const entryBtn = this._entryBtn\n\n if (isObj(p)) {\n entryBtn.setPos(p)\n return this\n }\n\n return entryBtn.getPos()\n },\n _autoScale() {\n if (!isMobile()) return\n\n this.scale(1 / viewportScale())\n },\n _registerListener() {\n this._addListener = (...args) => this.add(...args)\n this._showListener = (...args) => this.show(...args)\n\n emitter.on(emitter.ADD, this._addListener)\n emitter.on(emitter.SHOW, this._showListener)\n emitter.on(emitter.SCALE, evalCss.setScale)\n },\n _unregisterListener() {\n emitter.off(emitter.ADD, this._addListener)\n emitter.off(emitter.SHOW, this._showListener)\n emitter.off(emitter.SCALE, evalCss.setScale)\n },\n _checkInit() {\n if (!this._isInit) logger.error('Please call \"eruda.init()\" first')\n return this._isInit\n },\n _initContainer(container, useShadowDom) {\n if (!container) {\n container = document.createElement('div')\n document.documentElement.appendChild(container)\n }\n\n container.id = 'eruda'\n container.style.all = 'initial'\n this._container = container\n\n let shadowRoot\n let el\n if (useShadowDom) {\n if (container.attachShadow) {\n shadowRoot = container.attachShadow({ mode: 'open' })\n } else if (container.createShadowRoot) {\n shadowRoot = container.createShadowRoot()\n }\n if (shadowRoot) {\n // font-face doesn't work inside shadow dom.\n evalCss.container = document.head\n evalCss(\n require('./style/icon.css') +\n require('luna-console/luna-console.css') +\n require('luna-object-viewer/luna-object-viewer.css') +\n require('luna-dom-viewer/luna-dom-viewer.css') +\n require('luna-text-viewer/luna-text-viewer.css')\n )\n\n el = document.createElement('div')\n shadowRoot.appendChild(el)\n this._shadowRoot = shadowRoot\n }\n }\n\n if (!this._shadowRoot) {\n el = document.createElement('div')\n container.appendChild(el)\n }\n\n extend(el, {\n className: 'eruda-container __chobitsu-hide__',\n contentEditable: false,\n })\n\n // http://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari\n if (detectBrowser().name === 'ios') el.setAttribute('ontouchstart', '')\n\n this._$el = $(el)\n },\n _initDevTools(defaults) {\n this._devTools = new DevTools(this._$el, {\n defaults,\n })\n },\n _initStyle() {\n const className = 'eruda-style-container'\n const $el = this._$el\n\n if (this._shadowRoot) {\n evalCss.container = this._shadowRoot\n evalCss(':host { all: initial }')\n } else {\n $el.append(`
`)\n evalCss.container = $el.find(`.${className}`).get(0)\n }\n\n evalCss(\n require('./style/reset.scss') +\n require('luna-object-viewer/luna-object-viewer.css') +\n require('luna-console/luna-console.css') +\n require('luna-notification/luna-notification.css') +\n require('luna-data-grid/luna-data-grid.css') +\n require('luna-dom-viewer/luna-dom-viewer.css') +\n require('luna-modal/luna-modal.css') +\n require('luna-tab/luna-tab.css') +\n require('luna-text-viewer/luna-text-viewer.css') +\n require('luna-setting/luna-setting.css') +\n require('luna-box-model/luna-box-model.css') +\n require('./style/style.scss') +\n require('./style/icon.css')\n )\n },\n _initEntryBtn() {\n this._entryBtn = new EntryBtn(this._$el)\n this._entryBtn.on('click', () => this._devTools.toggle())\n },\n _initSettings() {\n const devTools = this._devTools\n const settings = new Settings()\n\n devTools.add(settings)\n\n this._entryBtn.initCfg(settings)\n devTools.initCfg(settings)\n },\n _initTools(\n tool = [\n 'console',\n 'elements',\n 'network',\n 'resources',\n 'sources',\n 'info',\n 'snippets',\n ]\n ) {\n tool = toArr(tool)\n\n const devTools = this._devTools\n\n tool.forEach((name) => {\n const Tool = this[upperFirst(name)]\n try {\n if (Tool) devTools.add(new Tool())\n } catch (e) {\n // Use nextTick to make sure it is possible to be caught by console panel.\n nextTick(() => {\n logger.error(\n `Something wrong when initializing tool ${name}:`,\n e.message\n )\n })\n }\n })\n\n devTools.showTool(tool[0] || 'settings')\n },\n}\n","const eruda = require('./eruda').default\nmodule.exports = eruda\nmodule.exports.default = eruda\n\n//# sourceMappingURL=index.js.map\n","export default {}\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar connector_1 = __importDefault(require(\"./lib/connector\"));\nvar noop_1 = __importDefault(require(\"licia/noop\"));\nvar uuid_1 = __importDefault(require(\"licia/uuid\"));\nvar each_1 = __importDefault(require(\"licia/each\"));\nvar Emitter_1 = __importDefault(require(\"licia/Emitter\"));\nvar util_1 = require(\"./lib/util\");\nvar Chobitsu = (function () {\n function Chobitsu() {\n var _this = this;\n this.resolves = new Map();\n this.domains = new Map();\n this.onMessage = noop_1.default;\n connector_1.default.on('message', function (message) {\n var parsedMessage = JSON.parse(message);\n var resolve = _this.resolves.get(parsedMessage.id);\n if (resolve) {\n resolve(parsedMessage.result);\n }\n if (!parsedMessage.id) {\n var _a = parsedMessage.method.split('.'), name_1 = _a[0], method = _a[1];\n var domain = _this.domains.get(name_1);\n if (domain) {\n domain.emit(method, parsedMessage.params);\n }\n }\n _this.onMessage(message);\n });\n }\n Chobitsu.prototype.domain = function (name) {\n return this.domains.get(name);\n };\n Chobitsu.prototype.setOnMessage = function (onMessage) {\n this.onMessage = onMessage;\n };\n Chobitsu.prototype.sendMessage = function (method, params) {\n var _this = this;\n if (params === void 0) { params = {}; }\n var id = uuid_1.default();\n this.sendRawMessage(JSON.stringify({\n id: id,\n method: method,\n params: params,\n }));\n return new Promise(function (resolve) {\n _this.resolves.set(id, resolve);\n });\n };\n Chobitsu.prototype.sendRawMessage = function (message) {\n return __awaiter(this, void 0, void 0, function () {\n var parsedMessage, method, params, id, resultMsg, _a, e_1;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n parsedMessage = JSON.parse(message);\n method = parsedMessage.method, params = parsedMessage.params, id = parsedMessage.id;\n resultMsg = {\n id: id,\n };\n _b.label = 1;\n case 1:\n _b.trys.push([1, 3, , 4]);\n _a = resultMsg;\n return [4, this.callMethod(method, params)];\n case 2:\n _a.result = _b.sent();\n return [3, 4];\n case 3:\n e_1 = _b.sent();\n if (e_1 instanceof util_1.ErrorWithCode) {\n resultMsg.error = {\n message: e_1.message,\n code: e_1.code,\n };\n }\n else if (e_1 instanceof Error) {\n resultMsg.error = {\n message: e_1.message,\n };\n }\n return [3, 4];\n case 4:\n connector_1.default.emit('message', JSON.stringify(resultMsg));\n return [2];\n }\n });\n });\n };\n Chobitsu.prototype.register = function (name, methods) {\n var domains = this.domains;\n var domain = domains.get(name);\n if (!domain) {\n domain = {};\n Emitter_1.default.mixin(domain);\n }\n each_1.default(methods, function (fn, method) {\n domain[method] = fn;\n });\n domains.set(name, domain);\n };\n Chobitsu.prototype.callMethod = function (method, params) {\n return __awaiter(this, void 0, void 0, function () {\n var _a, domainName, methodName, domain;\n return __generator(this, function (_b) {\n _a = method.split('.'), domainName = _a[0], methodName = _a[1];\n domain = this.domain(domainName);\n if (domain) {\n if (domain[methodName]) {\n return [2, domain[methodName](params) || {}];\n }\n }\n throw Error(method + \" unimplemented\");\n });\n });\n };\n return Chobitsu;\n}());\nexports.default = Chobitsu;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getDOMNode = exports.getDOMNodeId = exports.setOuterHTML = exports.setNodeValue = exports.setInspectedNode = exports.setAttributeValue = exports.setAttributesAsText = exports.resolveNode = exports.requestNode = exports.requestChildNodes = exports.removeNode = exports.pushNodesByBackendIdsToFrontend = exports.discardSearchResults = exports.pushNodesToFrontend = exports.getSearchResults = exports.performSearch = exports.moveTo = exports.getOuterHTML = exports.getDocument = exports.enable = exports.copyTo = exports.collectClassNamesFromSubtree = void 0;\nvar connector_1 = __importDefault(require(\"../lib/connector\"));\nvar nodeManager = __importStar(require(\"../lib/nodeManager\"));\nvar nodeManager_1 = require(\"../lib/nodeManager\");\nvar objManager = __importStar(require(\"../lib/objManager\"));\nvar mutationObserver_1 = __importDefault(require(\"../lib/mutationObserver\"));\nvar _1 = __importDefault(require(\"licia/$\"));\nvar isNull_1 = __importDefault(require(\"licia/isNull\"));\nvar isEmpty_1 = __importDefault(require(\"licia/isEmpty\"));\nvar html_1 = __importDefault(require(\"licia/html\"));\nvar map_1 = __importDefault(require(\"licia/map\"));\nvar unique_1 = __importDefault(require(\"licia/unique\"));\nvar contain_1 = __importDefault(require(\"licia/contain\"));\nvar lowerCase_1 = __importDefault(require(\"licia/lowerCase\"));\nvar each_1 = __importDefault(require(\"licia/each\"));\nvar toArr_1 = __importDefault(require(\"licia/toArr\"));\nvar xpath_1 = __importDefault(require(\"licia/xpath\"));\nvar concat_1 = __importDefault(require(\"licia/concat\"));\nvar evaluate_1 = require(\"../lib/evaluate\");\nvar util_1 = require(\"../lib/util\");\nfunction collectClassNamesFromSubtree(params) {\n var node = nodeManager_1.getNode(params.nodeId);\n var classNames = [];\n traverseNode(node, function (node) {\n if (node.nodeType !== 1)\n return;\n var className = node.getAttribute('class');\n if (className) {\n var names = className.split(/\\s+/);\n for (var _i = 0, names_1 = names; _i < names_1.length; _i++) {\n var name_1 = names_1[_i];\n classNames.push(name_1);\n }\n }\n });\n return {\n classNames: unique_1.default(classNames),\n };\n}\nexports.collectClassNamesFromSubtree = collectClassNamesFromSubtree;\nfunction copyTo(params) {\n var nodeId = params.nodeId, targetNodeId = params.targetNodeId;\n var node = nodeManager_1.getNode(nodeId);\n var targetNode = nodeManager_1.getNode(targetNodeId);\n var cloneNode = node.cloneNode(true);\n targetNode.appendChild(cloneNode);\n}\nexports.copyTo = copyTo;\nfunction enable() {\n mutationObserver_1.default.observe();\n nodeManager.clear();\n}\nexports.enable = enable;\nfunction getDocument() {\n return {\n root: nodeManager.wrap(document, {\n depth: 2,\n }),\n };\n}\nexports.getDocument = getDocument;\nfunction getOuterHTML(params) {\n var node = nodeManager_1.getNode(params.nodeId);\n return {\n outerHTML: node.outerHTML,\n };\n}\nexports.getOuterHTML = getOuterHTML;\nfunction moveTo(params) {\n var nodeId = params.nodeId, targetNodeId = params.targetNodeId;\n var node = nodeManager_1.getNode(nodeId);\n var targetNode = nodeManager_1.getNode(targetNodeId);\n targetNode.appendChild(node);\n}\nexports.moveTo = moveTo;\nvar searchResults = new Map();\nfunction performSearch(params) {\n var query = lowerCase_1.default(params.query);\n var result = [];\n try {\n result = concat_1.default(result, toArr_1.default(document.querySelectorAll(query)));\n }\n catch (e) {\n }\n try {\n result = concat_1.default(result, xpath_1.default(query));\n }\n catch (e) {\n }\n traverseNode(document, function (node) {\n var nodeType = node.nodeType;\n if (nodeType === 1) {\n var localName = node.localName;\n if (contain_1.default(\"<\" + localName + \" \", query) ||\n contain_1.default(\"\" + localName + \">\", query)) {\n result.push(node);\n return;\n }\n var attributes_1 = [];\n each_1.default(node.attributes, function (_a) {\n var name = _a.name, value = _a.value;\n return attributes_1.push(name, value);\n });\n for (var i = 0, len = attributes_1.length; i < len; i++) {\n if (contain_1.default(lowerCase_1.default(attributes_1[i]), query)) {\n result.push(node);\n break;\n }\n }\n }\n else if (nodeType === 3) {\n if (contain_1.default(lowerCase_1.default(node.nodeValue), query)) {\n result.push(node);\n }\n }\n });\n var searchId = util_1.createId();\n searchResults.set(searchId, result);\n return {\n searchId: searchId,\n resultCount: result.length,\n };\n}\nexports.performSearch = performSearch;\nfunction getSearchResults(params) {\n var searchId = params.searchId, fromIndex = params.fromIndex, toIndex = params.toIndex;\n var searchResult = searchResults.get(searchId);\n var result = searchResult.slice(fromIndex, toIndex);\n var nodeIds = map_1.default(result, function (node) {\n var nodeId = nodeManager_1.getNodeId(node);\n if (!nodeId) {\n return pushNodesToFrontend(node);\n }\n return nodeId;\n });\n return {\n nodeIds: nodeIds,\n };\n}\nexports.getSearchResults = getSearchResults;\nfunction pushNodesToFrontend(node) {\n var nodes = [node];\n var parentNode = node.parentNode;\n while (parentNode) {\n nodes.push(parentNode);\n var nodeId = nodeManager_1.getNodeId(parentNode);\n if (nodeId) {\n break;\n }\n else {\n parentNode = parentNode.parentNode;\n }\n }\n while (nodes.length) {\n var node_1 = nodes.pop();\n var nodeId = nodeManager_1.getNodeId(node_1);\n connector_1.default.trigger('DOM.setChildNodes', {\n parentId: nodeId,\n nodes: nodeManager.getChildNodes(node_1, 1),\n });\n }\n return nodeManager_1.getNodeId(node);\n}\nexports.pushNodesToFrontend = pushNodesToFrontend;\nfunction discardSearchResults(params) {\n searchResults.delete(params.searchId);\n}\nexports.discardSearchResults = discardSearchResults;\nfunction pushNodesByBackendIdsToFrontend(params) {\n return {\n nodeIds: params.backendNodeIds,\n };\n}\nexports.pushNodesByBackendIdsToFrontend = pushNodesByBackendIdsToFrontend;\nfunction removeNode(params) {\n var node = nodeManager_1.getNode(params.nodeId);\n _1.default(node).remove();\n}\nexports.removeNode = removeNode;\nfunction requestChildNodes(params) {\n var nodeId = params.nodeId, _a = params.depth, depth = _a === void 0 ? 1 : _a;\n var node = nodeManager_1.getNode(nodeId);\n connector_1.default.trigger('DOM.setChildNodes', {\n parentId: nodeId,\n nodes: nodeManager.getChildNodes(node, depth),\n });\n}\nexports.requestChildNodes = requestChildNodes;\nfunction requestNode(params) {\n var node = objManager.getObj(params.objectId);\n return {\n nodeId: nodeManager_1.getNodeId(node),\n };\n}\nexports.requestNode = requestNode;\nfunction resolveNode(params) {\n var node = nodeManager_1.getNode(params.nodeId);\n return {\n object: objManager.wrap(node),\n };\n}\nexports.resolveNode = resolveNode;\nfunction setAttributesAsText(params) {\n var name = params.name, text = params.text, nodeId = params.nodeId;\n var node = nodeManager_1.getNode(nodeId);\n if (name) {\n node.removeAttribute(name);\n }\n _1.default(node).attr(parseAttributes(text));\n}\nexports.setAttributesAsText = setAttributesAsText;\nfunction setAttributeValue(params) {\n var nodeId = params.nodeId, name = params.name, value = params.value;\n var node = nodeManager_1.getNode(nodeId);\n node.setAttribute(name, value);\n}\nexports.setAttributeValue = setAttributeValue;\nvar history = [];\nfunction setInspectedNode(params) {\n var node = nodeManager_1.getNode(params.nodeId);\n history.unshift(node);\n if (history.length > 5)\n history.pop();\n for (var i = 0; i < 5; i++) {\n evaluate_1.setGlobal(\"$\" + i, history[i]);\n }\n}\nexports.setInspectedNode = setInspectedNode;\nfunction setNodeValue(params) {\n var nodeId = params.nodeId, value = params.value;\n var node = nodeManager_1.getNode(nodeId);\n node.nodeValue = value;\n}\nexports.setNodeValue = setNodeValue;\nfunction setOuterHTML(params) {\n var nodeId = params.nodeId, outerHTML = params.outerHTML;\n var node = nodeManager_1.getNode(nodeId);\n node.outerHTML = outerHTML;\n}\nexports.setOuterHTML = setOuterHTML;\nfunction getDOMNodeId(params) {\n var node = params.node;\n return {\n nodeId: nodeManager.getOrCreateNodeId(node),\n };\n}\nexports.getDOMNodeId = getDOMNodeId;\nfunction getDOMNode(params) {\n var nodeId = params.nodeId;\n return {\n node: nodeManager_1.getNode(nodeId),\n };\n}\nexports.getDOMNode = getDOMNode;\nfunction parseAttributes(str) {\n str = \"
\";\n return html_1.default.parse(str)[0].attrs;\n}\nfunction traverseNode(node, cb) {\n var childNodes = nodeManager.filterNodes(node.childNodes);\n for (var i = 0, len = childNodes.length; i < len; i++) {\n var child = childNodes[i];\n cb(child);\n traverseNode(child, cb);\n }\n}\nmutationObserver_1.default.on('attributes', function (target, name) {\n var nodeId = nodeManager_1.getNodeId(target);\n if (!nodeId)\n return;\n var value = target.getAttribute(name);\n if (isNull_1.default(value)) {\n connector_1.default.trigger('DOM.attributeRemoved', {\n nodeId: nodeId,\n name: name,\n });\n }\n else {\n connector_1.default.trigger('DOM.attributeModified', {\n nodeId: nodeId,\n name: name,\n value: value,\n });\n }\n});\nmutationObserver_1.default.on('childList', function (target, addedNodes, removedNodes) {\n var parentNodeId = nodeManager_1.getNodeId(target);\n if (!parentNodeId)\n return;\n addedNodes = nodeManager.filterNodes(addedNodes);\n removedNodes = nodeManager.filterNodes(removedNodes);\n function childNodeCountUpdated() {\n connector_1.default.trigger('DOM.childNodeCountUpdated', {\n childNodeCount: nodeManager.wrap(target, {\n depth: 0,\n }).childNodeCount,\n nodeId: parentNodeId,\n });\n }\n if (!isEmpty_1.default(addedNodes)) {\n childNodeCountUpdated();\n for (var i = 0, len = addedNodes.length; i < len; i++) {\n var node = addedNodes[i];\n var previousNode = nodeManager.getPreviousNode(node);\n var previousNodeId = previousNode ? nodeManager_1.getNodeId(previousNode) : 0;\n var params = {\n node: nodeManager.wrap(node, {\n depth: 0,\n }),\n parentNodeId: parentNodeId,\n previousNodeId: previousNodeId,\n };\n connector_1.default.trigger('DOM.childNodeInserted', params);\n }\n }\n if (!isEmpty_1.default(removedNodes)) {\n for (var i = 0, len = removedNodes.length; i < len; i++) {\n var node = removedNodes[i];\n var nodeId = nodeManager_1.getNodeId(node);\n if (!nodeId) {\n childNodeCountUpdated();\n break;\n }\n connector_1.default.trigger('DOM.childNodeRemoved', {\n nodeId: nodeManager_1.getNodeId(node),\n parentNodeId: parentNodeId,\n });\n }\n }\n});\nmutationObserver_1.default.on('characterData', function (target) {\n var nodeId = nodeManager_1.getNodeId(target);\n if (!nodeId)\n return;\n connector_1.default.trigger('DOM.characterDataModified', {\n characterData: target.nodeValue,\n nodeId: nodeId,\n });\n});\n","\"use strict\";\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getResponseBody = exports.enable = exports.getCookies = exports.deleteCookies = void 0;\nvar trim_1 = __importDefault(require(\"licia/trim\"));\nvar each_1 = __importDefault(require(\"licia/each\"));\nvar decodeUriComponent_1 = __importDefault(require(\"licia/decodeUriComponent\"));\nvar rmCookie_1 = __importDefault(require(\"licia/rmCookie\"));\nvar once_1 = __importDefault(require(\"licia/once\"));\nvar isNative_1 = __importDefault(require(\"licia/isNative\"));\nvar contain_1 = __importDefault(require(\"licia/contain\"));\nvar request_1 = require(\"../lib/request\");\nvar connector_1 = __importDefault(require(\"../lib/connector\"));\nfunction deleteCookies(params) {\n rmCookie_1.default(params.name);\n}\nexports.deleteCookies = deleteCookies;\nfunction getCookies() {\n var cookies = [];\n var cookie = document.cookie;\n if (trim_1.default(cookie) !== '') {\n each_1.default(cookie.split(';'), function (value) {\n value = value.split('=');\n var name = trim_1.default(value.shift());\n value = decodeUriComponent_1.default(value.join('='));\n cookies.push({\n name: name,\n value: value,\n });\n });\n }\n return { cookies: cookies };\n}\nexports.getCookies = getCookies;\nvar resTxtMap = new Map();\nexports.enable = once_1.default(function () {\n var winXhrProto = window.XMLHttpRequest.prototype;\n var origSend = winXhrProto.send;\n var origOpen = winXhrProto.open;\n var origSetRequestHeader = winXhrProto.setRequestHeader;\n winXhrProto.open = function (method, url) {\n if (!isValidUrl(url)) {\n return origOpen.apply(this, arguments);\n }\n var xhr = this;\n var req = (xhr.chobitsuRequest = new request_1.XhrRequest(xhr, method, url));\n req.on('send', function (id, data) {\n var request = {\n method: data.method,\n url: data.url,\n headers: data.reqHeaders,\n };\n if (data.data) {\n request.postData = data.data;\n }\n connector_1.default.trigger('Network.requestWillBeSent', {\n requestId: id,\n type: 'XHR',\n request: request,\n timestamp: data.time / 1000,\n });\n });\n req.on('headersReceived', function (id, data) {\n connector_1.default.trigger('Network.responseReceivedExtraInfo', {\n requestId: id,\n blockedCookies: [],\n headers: data.resHeaders,\n });\n });\n req.on('done', function (id, data) {\n connector_1.default.trigger('Network.responseReceived', {\n requestId: id,\n type: 'XHR',\n response: {\n status: data.status,\n },\n timestamp: data.time / 1000,\n });\n resTxtMap.set(id, data.resTxt);\n connector_1.default.trigger('Network.loadingFinished', {\n requestId: id,\n encodedDataLength: data.size,\n timestamp: data.time / 1000,\n });\n });\n xhr.addEventListener('readystatechange', function () {\n switch (xhr.readyState) {\n case 2:\n return req.handleHeadersReceived();\n case 4:\n return req.handleDone();\n }\n });\n origOpen.apply(this, arguments);\n };\n winXhrProto.send = function (data) {\n var req = this.chobitsuRequest;\n if (req)\n req.handleSend(data);\n origSend.apply(this, arguments);\n };\n winXhrProto.setRequestHeader = function (key, val) {\n var req = this.chobitsuRequest;\n if (req) {\n req.handleReqHeadersSet(key, val);\n }\n origSetRequestHeader.apply(this, arguments);\n };\n var isFetchSupported = false;\n if (window.fetch) {\n isFetchSupported = isNative_1.default(window.fetch);\n }\n if (!isFetchSupported && navigator.serviceWorker) {\n isFetchSupported = true;\n }\n if (!isFetchSupported)\n return;\n var origFetch = window.fetch;\n window.fetch = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var req = new (request_1.FetchRequest.bind.apply(request_1.FetchRequest, __spreadArrays([void 0], args)))();\n req.on('send', function (id, data) {\n var request = {\n method: data.method,\n url: data.url,\n headers: data.reqHeaders,\n };\n if (data.data) {\n request.postData = data.data;\n }\n connector_1.default.trigger('Network.requestWillBeSent', {\n requestId: id,\n type: 'Fetch',\n request: request,\n timestamp: data.time / 1000,\n });\n });\n req.on('done', function (id, data) {\n connector_1.default.trigger('Network.responseReceived', {\n requestId: id,\n type: 'Fetch',\n response: {\n status: data.status,\n headers: data.resHeaders,\n },\n timestamp: data.time / 1000,\n });\n resTxtMap.set(id, data.resTxt);\n connector_1.default.trigger('Network.loadingFinished', {\n requestId: id,\n encodedDataLength: data.size,\n timestamp: data.time / 1000,\n });\n });\n var fetchResult = origFetch.apply(void 0, args);\n req.send(fetchResult);\n return fetchResult;\n };\n});\nfunction getResponseBody(params) {\n return {\n base64Encoded: false,\n body: resTxtMap.get(params.requestId),\n };\n}\nexports.getResponseBody = getResponseBody;\nfunction isValidUrl(url) {\n return !contain_1.default(url, '__chobitsu-hide__=true');\n}\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setInspectMode = exports.setShowViewportSizeOnResize = exports.hideHighlight = exports.highlightNode = exports.disable = exports.enable = void 0;\nvar nodeManager_1 = require(\"../lib/nodeManager\");\nvar DOM_1 = require(\"./DOM\");\nvar _1 = __importDefault(require(\"licia/$\"));\nvar h_1 = __importDefault(require(\"licia/h\"));\nvar evalCss_1 = __importDefault(require(\"licia/evalCss\"));\nvar defaults_1 = __importDefault(require(\"licia/defaults\"));\nvar extend_1 = __importDefault(require(\"licia/extend\"));\nvar connector_1 = __importDefault(require(\"../lib/connector\"));\nvar root_1 = __importDefault(require(\"licia/root\"));\nvar toBool_1 = __importDefault(require(\"licia/toBool\"));\nvar cssSupports_1 = __importDefault(require(\"licia/cssSupports\"));\nvar luna_dom_highlighter_1 = __importDefault(require(\"luna-dom-highlighter\"));\nvar objManager = __importStar(require(\"../lib/objManager\"));\nvar domHighlighter;\nvar isCssLoaded = false;\nvar $container;\nvar isEnable = false;\nvar showInfo = cssSupports_1.default('clip-path', 'polygon(50% 0px, 0px 100%, 100% 100%)');\nvar hasTouchSupport = 'ontouchstart' in root_1.default;\nvar css = require('luna-dom-highlighter/luna-dom-highlighter.css').replace('/*# sourceMappingURL=luna-dom-highlighter.css.map*/', '');\nfunction enable() {\n if (isEnable) {\n return;\n }\n var container = h_1.default('div', {\n class: '__chobitsu-hide__',\n style: {\n all: 'initial',\n },\n });\n $container = _1.default(container);\n document.documentElement.appendChild(container);\n var domHighlighterContainer = null;\n var shadowRoot = null;\n if (container.attachShadow) {\n shadowRoot = container.attachShadow({ mode: 'open' });\n }\n else if (container.createShadowRoot) {\n shadowRoot = container.createShadowRoot();\n }\n if (shadowRoot) {\n var style = document.createElement('style');\n style.textContent = css;\n style.type = 'text/css';\n shadowRoot.appendChild(style);\n domHighlighterContainer = document.createElement('div');\n shadowRoot.appendChild(domHighlighterContainer);\n }\n else {\n domHighlighterContainer = document.createElement('div');\n container.appendChild(domHighlighterContainer);\n if (!isCssLoaded) {\n evalCss_1.default(css);\n isCssLoaded = true;\n }\n }\n domHighlighter = new luna_dom_highlighter_1.default(domHighlighterContainer, {\n monitorResize: toBool_1.default(root_1.default.ResizeObserver),\n showInfo: showInfo,\n });\n window.addEventListener('resize', resizeHandler);\n isEnable = true;\n}\nexports.enable = enable;\nfunction disable() {\n domHighlighter.destroy();\n $container.remove();\n window.removeEventListener('resize', resizeHandler);\n isEnable = false;\n}\nexports.disable = disable;\nfunction highlightNode(params) {\n var nodeId = params.nodeId, highlightConfig = params.highlightConfig, objectId = params.objectId;\n var node;\n if (nodeId) {\n node = nodeManager_1.getNode(nodeId);\n }\n if (objectId) {\n node = objManager.getObj(objectId);\n }\n if (node.nodeType !== 1 && node.nodeType !== 3)\n return;\n defaults_1.default(highlightConfig, {\n contentColor: 'transparent',\n paddingColor: 'transparent',\n borderColor: 'transparent',\n marginColor: 'transparent',\n });\n if (!showInfo) {\n extend_1.default(highlightConfig, {\n showInfo: false,\n });\n }\n domHighlighter.highlight(node, highlightConfig);\n}\nexports.highlightNode = highlightNode;\nfunction hideHighlight() {\n domHighlighter.hide();\n}\nexports.hideHighlight = hideHighlight;\nvar showViewportSizeOnResize = false;\nfunction setShowViewportSizeOnResize(params) {\n showViewportSizeOnResize = params.show;\n}\nexports.setShowViewportSizeOnResize = setShowViewportSizeOnResize;\nvar highlightConfig = {};\nvar inspectMode = 'none';\nfunction setInspectMode(params) {\n highlightConfig = params.highlightConfig;\n inspectMode = params.mode;\n}\nexports.setInspectMode = setInspectMode;\nfunction getElementFromPoint(e) {\n if (hasTouchSupport) {\n var touch = e.touches[0] || e.changedTouches[0];\n return document.elementFromPoint(touch.clientX, touch.clientY);\n }\n return document.elementFromPoint(e.clientX, e.clientY);\n}\nvar lastNodeId = -1;\nfunction moveListener(e) {\n if (inspectMode === 'none')\n return;\n var node = getElementFromPoint(e);\n if (!node || !nodeManager_1.isValidNode(node)) {\n return;\n }\n var nodeId = nodeManager_1.getNodeId(node);\n if (!nodeId) {\n nodeId = DOM_1.pushNodesToFrontend(node);\n }\n highlightNode({\n nodeId: nodeId,\n highlightConfig: highlightConfig,\n });\n if (nodeId !== lastNodeId) {\n connector_1.default.trigger('Overlay.nodeHighlightRequested', {\n nodeId: nodeId,\n });\n lastNodeId = nodeId;\n }\n}\nfunction outListener() {\n if (inspectMode === 'none')\n return;\n hideHighlight();\n}\nfunction clickListener(e) {\n if (inspectMode === 'none')\n return;\n e.preventDefault();\n e.stopImmediatePropagation();\n var node = getElementFromPoint(e);\n connector_1.default.trigger('Overlay.inspectNodeRequested', {\n backendNodeId: nodeManager_1.getNodeId(node),\n });\n lastNodeId = -1;\n hideHighlight();\n}\nfunction addEvent(type, listener) {\n document.documentElement.addEventListener(type, listener, true);\n}\nif (hasTouchSupport) {\n addEvent('touchstart', moveListener);\n addEvent('touchmove', moveListener);\n addEvent('touchend', clickListener);\n}\nelse {\n addEvent('mousemove', moveListener);\n addEvent('mouseout', outListener);\n addEvent('click', clickListener);\n}\nvar viewportSize = h_1.default('div', {\n class: '__chobitsu-hide__',\n style: {\n position: 'fixed',\n right: 0,\n top: 0,\n background: '#fff',\n fontSize: 13,\n opacity: 0.5,\n padding: '4px 6px',\n },\n});\nfunction resizeHandler() {\n if (!showViewportSizeOnResize)\n return;\n $viewportSize.text(window.innerWidth + \"px \\u00D7 \" + window.innerHeight + \"px\");\n if (viewportSizeTimer) {\n clearTimeout(viewportSizeTimer);\n }\n else {\n document.documentElement.appendChild(viewportSize);\n }\n viewportSizeTimer = setTimeout(function () {\n $viewportSize.remove();\n viewportSizeTimer = null;\n }, 1000);\n}\nvar $viewportSize = _1.default(viewportSize);\nvar viewportSizeTimer;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getTrustTokens = exports.clearDataForOrigin = exports.getUsageAndQuota = void 0;\nvar each_1 = __importDefault(require(\"licia/each\"));\nvar rmCookie_1 = __importDefault(require(\"licia/rmCookie\"));\nvar safeStorage_1 = __importDefault(require(\"licia/safeStorage\"));\nvar Network_1 = require(\"./Network\");\nvar localStore = safeStorage_1.default('local');\nvar sessionStore = safeStorage_1.default('session');\nfunction getUsageAndQuota() {\n return {\n quota: 0,\n usage: 0,\n usageBreakdown: [],\n };\n}\nexports.getUsageAndQuota = getUsageAndQuota;\nfunction clearDataForOrigin(params) {\n var storageTypes = params.storageTypes.split(',');\n each_1.default(storageTypes, function (type) {\n if (type === 'cookies') {\n var cookies = Network_1.getCookies().cookies;\n each_1.default(cookies, function (_a) {\n var name = _a.name;\n return rmCookie_1.default(name);\n });\n }\n else if (type === 'local_storage') {\n localStore.clear();\n sessionStore.clear();\n }\n });\n}\nexports.clearDataForOrigin = clearDataForOrigin;\nfunction getTrustTokens() {\n return {\n tokens: [],\n };\n}\nexports.getTrustTokens = getTrustTokens;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Emitter_1 = __importDefault(require(\"licia/Emitter\"));\nvar Connector = (function (_super) {\n __extends(Connector, _super);\n function Connector() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Connector.prototype.trigger = function (method, params) {\n this.emit('message', JSON.stringify({\n method: method,\n params: params,\n }));\n };\n return Connector;\n}(Emitter_1.default));\nexports.default = new Connector();\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setGlobal = void 0;\nvar isStr_1 = __importDefault(require(\"licia/isStr\"));\nvar copy_1 = __importDefault(require(\"licia/copy\"));\nvar toArr_1 = __importDefault(require(\"licia/toArr\"));\nvar keys_1 = __importDefault(require(\"licia/keys\"));\nvar xpath_1 = __importDefault(require(\"licia/xpath\"));\nvar each_1 = __importDefault(require(\"licia/each\"));\nvar global = {\n copy: function (value) {\n if (!isStr_1.default(value))\n value = JSON.stringify(value, null, 2);\n copy_1.default(value);\n },\n $: function (selector) {\n return document.querySelector(selector);\n },\n $$: function (selector) {\n return toArr_1.default(document.querySelectorAll(selector));\n },\n $x: function (path) {\n return xpath_1.default(path);\n },\n keys: keys_1.default,\n};\nfunction injectGlobal() {\n each_1.default(global, function (val, name) {\n if (window[name])\n return;\n window[name] = val;\n });\n}\nfunction clearGlobal() {\n each_1.default(global, function (val, name) {\n if (window[name] && window[name] === val) {\n delete window[name];\n }\n });\n}\nfunction setGlobal(name, val) {\n global[name] = val;\n}\nexports.setGlobal = setGlobal;\nfunction evaluate(expression) {\n var ret;\n injectGlobal();\n try {\n ret = eval.call(window, \"(\" + expression + \")\");\n }\n catch (e) {\n ret = eval.call(window, expression);\n }\n clearGlobal();\n return ret;\n}\nexports.default = evaluate;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Emitter_1 = __importDefault(require(\"licia/Emitter\"));\nvar each_1 = __importDefault(require(\"licia/each\"));\nvar Observer = (function (_super) {\n __extends(Observer, _super);\n function Observer() {\n var _this = _super.call(this) || this;\n _this.observer = new MutationObserver(function (mutations) {\n each_1.default(mutations, function (mutation) { return _this.handleMutation(mutation); });\n });\n return _this;\n }\n Observer.prototype.observe = function () {\n var observer = this.observer;\n observer.disconnect();\n observer.observe(document.documentElement, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true,\n });\n };\n Observer.prototype.handleMutation = function (mutation) {\n if (mutation.type === 'attributes') {\n this.emit('attributes', mutation.target, mutation.attributeName);\n }\n else if (mutation.type === 'childList') {\n this.emit('childList', mutation.target, mutation.addedNodes, mutation.removedNodes);\n }\n else if (mutation.type === 'characterData') {\n this.emit('characterData', mutation.target);\n }\n };\n return Observer;\n}(Emitter_1.default));\nexports.default = new Observer();\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getNode = exports.isValidNode = exports.filterNodes = exports.getPreviousNode = exports.getChildNodes = exports.wrap = exports.getNodeId = exports.clear = exports.getOrCreateNodeId = void 0;\nvar map_1 = __importDefault(require(\"licia/map\"));\nvar filter_1 = __importDefault(require(\"licia/filter\"));\nvar each_1 = __importDefault(require(\"licia/each\"));\nvar trim_1 = __importDefault(require(\"licia/trim\"));\nvar contain_1 = __importDefault(require(\"licia/contain\"));\nvar extend_1 = __importDefault(require(\"licia/extend\"));\nvar util_1 = require(\"./util\");\nvar nodes = new Map();\nvar nodeIds = new Map();\nvar id = 1;\nfunction getOrCreateNodeId(node) {\n var nodeId = nodeIds.get(node);\n if (nodeId)\n return nodeId;\n nodeId = id++;\n nodeIds.set(node, nodeId);\n nodes.set(nodeId, node);\n return nodeId;\n}\nexports.getOrCreateNodeId = getOrCreateNodeId;\nfunction clear() {\n nodes.clear();\n nodeIds.clear();\n}\nexports.clear = clear;\nfunction getNodeId(node) {\n return nodeIds.get(node);\n}\nexports.getNodeId = getNodeId;\nfunction wrap(node, _a) {\n var _b = (_a === void 0 ? {} : _a).depth, depth = _b === void 0 ? 1 : _b;\n var nodeId = getOrCreateNodeId(node);\n var ret = {\n nodeName: node.nodeName,\n nodeType: node.nodeType,\n localName: node.localName || '',\n nodeValue: node.nodeValue || '',\n nodeId: nodeId,\n backendNodeId: nodeId,\n };\n if (node.parentNode) {\n ret.parentId = getOrCreateNodeId(node.parentNode);\n }\n if (node.nodeType === 10) {\n return extend_1.default(ret, {\n publicId: '',\n systemId: '',\n });\n }\n if (node.attributes) {\n var attributes_1 = [];\n each_1.default(node.attributes, function (_a) {\n var name = _a.name, value = _a.value;\n return attributes_1.push(name, value);\n });\n ret.attributes = attributes_1;\n }\n var childNodes = filterNodes(node.childNodes);\n ret.childNodeCount = childNodes.length;\n var hasOneTextNode = ret.childNodeCount === 1 && childNodes[0].nodeType === 3;\n if (depth > 0 || hasOneTextNode) {\n ret.children = getChildNodes(node, depth);\n }\n return ret;\n}\nexports.wrap = wrap;\nfunction getChildNodes(node, depth) {\n var childNodes = filterNodes(node.childNodes);\n return map_1.default(childNodes, function (node) { return wrap(node, { depth: depth - 1 }); });\n}\nexports.getChildNodes = getChildNodes;\nfunction getPreviousNode(node) {\n var previousNode = node.previousSibling;\n if (!previousNode)\n return;\n while (!isValidNode(previousNode) && previousNode.previousSibling) {\n previousNode = previousNode.previousSibling;\n }\n if (previousNode && isValidNode(previousNode)) {\n return previousNode;\n }\n}\nexports.getPreviousNode = getPreviousNode;\nfunction filterNodes(childNodes) {\n return filter_1.default(childNodes, function (node) { return isValidNode(node); });\n}\nexports.filterNodes = filterNodes;\nfunction isValidNode(node) {\n if (node.nodeType === 1) {\n var className = node.getAttribute('class') || '';\n if (contain_1.default(className, '__chobitsu-hide__') ||\n contain_1.default(className, 'html2canvas-container')) {\n return false;\n }\n }\n var isValid = !(node.nodeType === 3 && trim_1.default(node.nodeValue || '') === '');\n if (isValid && node.parentNode) {\n return isValidNode(node.parentNode);\n }\n return isValid;\n}\nexports.isValidNode = isValidNode;\nfunction getNode(nodeId) {\n var node = nodes.get(nodeId);\n if (!node || node.nodeType === 10) {\n throw util_1.createErr(-32000, 'Could not find node with given id');\n }\n return node;\n}\nexports.getNode = getNode;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getProperties = exports.releaseObj = exports.getObj = exports.wrap = exports.clear = void 0;\nvar toStr_1 = __importDefault(require(\"licia/toStr\"));\nvar isNull_1 = __importDefault(require(\"licia/isNull\"));\nvar isArr_1 = __importDefault(require(\"licia/isArr\"));\nvar isFn_1 = __importDefault(require(\"licia/isFn\"));\nvar isEl_1 = __importDefault(require(\"licia/isEl\"));\nvar isErr_1 = __importDefault(require(\"licia/isErr\"));\nvar isMap_1 = __importDefault(require(\"licia/isMap\"));\nvar isSet_1 = __importDefault(require(\"licia/isSet\"));\nvar isRegExp_1 = __importDefault(require(\"licia/isRegExp\"));\nvar type_1 = __importDefault(require(\"licia/type\"));\nvar keys_1 = __importDefault(require(\"licia/keys\"));\nvar toSrc_1 = __importDefault(require(\"licia/toSrc\"));\nvar allKeys_1 = __importDefault(require(\"licia/allKeys\"));\nvar isNative_1 = __importDefault(require(\"licia/isNative\"));\nvar getProto_1 = __importDefault(require(\"licia/getProto\"));\nvar isSymbol_1 = __importDefault(require(\"licia/isSymbol\"));\nvar has_1 = __importDefault(require(\"licia/has\"));\nvar objects = new Map();\nvar objectIds = new Map();\nvar selfs = new Map();\nvar entries = new Map();\nvar id = 1;\nfunction getOrCreateObjId(obj, self) {\n var objId = objectIds.get(obj);\n if (objId)\n return objId;\n objId = JSON.stringify({\n injectedScriptId: 0,\n id: id++,\n });\n objectIds.set(obj, objId);\n objects.set(objId, obj);\n selfs.set(objId, self);\n return objId;\n}\nfunction clear() {\n objects.clear();\n objectIds.clear();\n selfs.clear();\n}\nexports.clear = clear;\nfunction wrap(value, _a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.generatePreview, generatePreview = _c === void 0 ? false : _c, _d = _b.self, self = _d === void 0 ? value : _d;\n var ret = basic(value);\n var type = ret.type, subtype = ret.subtype;\n if (type === 'undefined') {\n return ret;\n }\n if (type === 'string' || type === 'boolean' || subtype === 'null') {\n ret.value = value;\n return ret;\n }\n ret.description = getDescription(value, self);\n if (type === 'number') {\n ret.value = value;\n return ret;\n }\n if (type === 'symbol') {\n ret.objectId = getOrCreateObjId(value, self);\n return ret;\n }\n if (type === 'function') {\n ret.className = 'Function';\n }\n else if (subtype === 'array') {\n ret.className = 'Array';\n }\n else if (subtype === 'map') {\n ret.className = 'Map';\n }\n else if (subtype === 'set') {\n ret.className = 'Set';\n }\n else if (subtype === 'regexp') {\n ret.className = 'RegExp';\n }\n else if (subtype === 'error') {\n ret.className = value.name;\n }\n else {\n ret.className = type_1.default(value, false);\n }\n if (generatePreview) {\n ret.preview = getPreview(value, self);\n }\n ret.objectId = getOrCreateObjId(value, self);\n return ret;\n}\nexports.wrap = wrap;\nfunction getObj(objectId) {\n return objects.get(objectId);\n}\nexports.getObj = getObj;\nfunction releaseObj(objectId) {\n var object = getObj(objectId);\n objectIds.delete(object);\n selfs.delete(objectId);\n objects.delete(objectId);\n}\nexports.releaseObj = releaseObj;\nfunction getProperties(params) {\n var accessorPropertiesOnly = params.accessorPropertiesOnly, objectId = params.objectId, ownProperties = params.ownProperties, generatePreview = params.generatePreview;\n var properties = [];\n var options = {\n prototype: !ownProperties,\n unenumerable: true,\n symbol: !accessorPropertiesOnly,\n };\n var obj = objects.get(objectId);\n var self = selfs.get(objectId);\n var keys = allKeys_1.default(obj, options);\n var proto = getProto_1.default(obj);\n for (var i = 0, len = keys.length; i < len; i++) {\n var name_1 = keys[i];\n var propVal = void 0;\n try {\n propVal = self[name_1];\n }\n catch (e) {\n }\n var property = {\n name: toStr_1.default(name_1),\n isOwn: has_1.default(self, name_1),\n };\n var descriptor = Object.getOwnPropertyDescriptor(obj, name_1);\n if (!descriptor && proto) {\n descriptor = Object.getOwnPropertyDescriptor(proto, name_1);\n }\n if (descriptor) {\n if (accessorPropertiesOnly) {\n if (!descriptor.get && !descriptor.set) {\n continue;\n }\n }\n property.configurable = descriptor.configurable;\n property.enumerable = descriptor.enumerable;\n property.writable = descriptor.writable;\n if (descriptor.get) {\n property.get = wrap(descriptor.get);\n }\n if (descriptor.set) {\n property.set = wrap(descriptor.set);\n }\n }\n if (proto && has_1.default(proto, name_1) && property.enumerable) {\n property.isOwn = true;\n }\n var accessValue = true;\n if (!property.isOwn && property.get)\n accessValue = false;\n if (accessValue) {\n if (isSymbol_1.default(name_1)) {\n property.symbol = wrap(name_1);\n property.value = { type: 'undefined' };\n }\n else {\n property.value = wrap(propVal, {\n generatePreview: generatePreview,\n });\n }\n }\n if (accessorPropertiesOnly) {\n if (isFn_1.default(propVal) && isNative_1.default(propVal))\n continue;\n }\n properties.push(property);\n }\n if (proto && !ownProperties && !noPrototype(obj)) {\n properties.push({\n name: '__proto__',\n configurable: true,\n enumerable: false,\n isOwn: has_1.default(obj, '__proto__'),\n value: wrap(proto, {\n self: self,\n }),\n writable: false,\n });\n }\n if (accessorPropertiesOnly) {\n return {\n result: properties,\n };\n }\n var internalProperties = [];\n if (proto && !noPrototype(obj)) {\n internalProperties.push({\n name: '[[Prototype]]',\n value: wrap(proto, {\n self: self,\n }),\n });\n }\n if (isMap_1.default(obj) || isSet_1.default(obj)) {\n var internalEntries = createInternalEntries(obj);\n internalProperties.push({\n name: '[[Entries]]',\n value: wrap(internalEntries),\n });\n }\n return {\n internalProperties: internalProperties,\n result: properties,\n };\n}\nexports.getProperties = getProperties;\nvar MAX_PREVIEW_LEN = 5;\nfunction getPreview(obj, self) {\n if (self === void 0) { self = obj; }\n var ret = basic(obj);\n ret.description = getDescription(obj, self);\n var overflow = false;\n var properties = [];\n var keys = keys_1.default(obj);\n var len = keys.length;\n if (len > MAX_PREVIEW_LEN) {\n len = MAX_PREVIEW_LEN;\n overflow = true;\n }\n for (var i = 0; i < len; i++) {\n var name_2 = keys[i];\n properties.push(getPropertyPreview(name_2, self[name_2]));\n }\n ret.properties = properties;\n if (isMap_1.default(obj)) {\n var entries_1 = [];\n var i = 0;\n var keys_2 = obj.keys();\n var key = keys_2.next().value;\n while (key) {\n if (i > MAX_PREVIEW_LEN) {\n overflow = true;\n break;\n }\n entries_1.push({\n key: getPreview(key),\n value: getPreview(obj.get(key)),\n });\n i++;\n key = keys_2.next().value;\n }\n ret.entries = entries_1;\n }\n else if (isSet_1.default(obj)) {\n var entries_2 = [];\n var i = 0;\n var keys_3 = obj.keys();\n var key = keys_3.next().value;\n while (key) {\n if (i > MAX_PREVIEW_LEN) {\n overflow = true;\n break;\n }\n entries_2.push({\n value: getPreview(key),\n });\n i++;\n key = keys_3.next().value;\n }\n ret.entries = entries_2;\n }\n ret.overflow = overflow;\n return ret;\n}\nfunction getPropertyPreview(name, propVal) {\n var property = basic(propVal);\n property.name = name;\n var subtype = property.subtype, type = property.type;\n var value;\n if (type === 'object') {\n if (subtype === 'null') {\n value = 'null';\n }\n else if (subtype === 'array') {\n value = \"Array(\" + propVal.length + \")\";\n }\n else if (subtype === 'map') {\n value = \"Map(\" + propVal.size + \")\";\n }\n else if (subtype === 'set') {\n value = \"Set(\" + propVal.size + \")\";\n }\n else {\n value = type_1.default(propVal, false);\n }\n }\n else {\n value = toStr_1.default(propVal);\n }\n property.value = value;\n return property;\n}\nfunction getDescription(obj, self) {\n if (self === void 0) { self = obj; }\n var description = '';\n var _a = basic(obj), type = _a.type, subtype = _a.subtype;\n if (type === 'string') {\n description = obj;\n }\n else if (type === 'number') {\n description = toStr_1.default(obj);\n }\n else if (type === 'symbol') {\n description = toStr_1.default(obj);\n }\n else if (type === 'function') {\n description = toSrc_1.default(obj);\n }\n else if (subtype === 'array') {\n description = \"Array(\" + obj.length + \")\";\n }\n else if (subtype === 'map') {\n description = \"Map(\" + self.size + \")\";\n }\n else if (subtype === 'set') {\n description = \"Set(\" + self.size + \")\";\n }\n else if (subtype === 'regexp') {\n description = toStr_1.default(obj);\n }\n else if (subtype === 'error') {\n description = obj.stack;\n }\n else if (subtype === 'internal#entry') {\n if (obj.name) {\n description = \"{\\\"\" + toStr_1.default(obj.name) + \"\\\" => \\\"\" + toStr_1.default(obj.value) + \"\\\"}\";\n }\n else {\n description = \"\\\"\" + toStr_1.default(obj.value) + \"\\\"\";\n }\n }\n else {\n description = type_1.default(obj, false);\n }\n return description;\n}\nfunction basic(value) {\n var type = typeof value;\n var subtype = 'object';\n if (value instanceof InternalEntry) {\n subtype = 'internal#entry';\n }\n else if (isNull_1.default(value)) {\n subtype = 'null';\n }\n else if (isArr_1.default(value)) {\n subtype = 'array';\n }\n else if (isRegExp_1.default(value)) {\n subtype = 'regexp';\n }\n else if (isErr_1.default(value)) {\n subtype = 'error';\n }\n else if (isMap_1.default(value)) {\n subtype = 'map';\n }\n else if (isSet_1.default(value)) {\n subtype = 'set';\n }\n else {\n try {\n if (isEl_1.default(value)) {\n subtype = 'node';\n }\n }\n catch (e) {\n }\n }\n return {\n type: type,\n subtype: subtype,\n };\n}\nvar InternalEntry = (function () {\n function InternalEntry(value, name) {\n if (name) {\n this.name = name;\n }\n this.value = value;\n }\n return InternalEntry;\n}());\nfunction noPrototype(obj) {\n if (obj instanceof InternalEntry) {\n return true;\n }\n if (obj[0] && obj[0] instanceof InternalEntry) {\n return true;\n }\n return false;\n}\nfunction createInternalEntries(obj) {\n var entryId = entries.get(obj);\n var internalEntries = entryId ? getObj(entryId) : [];\n var objEntries = obj.entries();\n var entry = objEntries.next().value;\n while (entry) {\n if (isMap_1.default(obj)) {\n internalEntries.push(new InternalEntry(entry[1], entry[0]));\n }\n else {\n internalEntries.push(new InternalEntry(entry[1]));\n }\n entry = objEntries.next().value;\n }\n return internalEntries;\n}\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fullUrl = exports.FetchRequest = exports.XhrRequest = void 0;\nvar Emitter_1 = __importDefault(require(\"licia/Emitter\"));\nvar isStr_1 = __importDefault(require(\"licia/isStr\"));\nvar last_1 = __importDefault(require(\"licia/last\"));\nvar Url_1 = __importDefault(require(\"licia/Url\"));\nvar isEmpty_1 = __importDefault(require(\"licia/isEmpty\"));\nvar trim_1 = __importDefault(require(\"licia/trim\"));\nvar now_1 = __importDefault(require(\"licia/now\"));\nvar each_1 = __importDefault(require(\"licia/each\"));\nvar startWith_1 = __importDefault(require(\"licia/startWith\"));\nvar toNum_1 = __importDefault(require(\"licia/toNum\"));\nvar util_1 = require(\"./util\");\nvar XhrRequest = (function (_super) {\n __extends(XhrRequest, _super);\n function XhrRequest(xhr, method, url) {\n var _this = _super.call(this) || this;\n _this.xhr = xhr;\n _this.reqHeaders = {};\n _this.method = method;\n _this.url = fullUrl(url);\n _this.id = util_1.createId();\n return _this;\n }\n XhrRequest.prototype.toJSON = function () {\n return {\n method: this.method,\n url: this.url,\n id: this.id,\n };\n };\n XhrRequest.prototype.handleSend = function (data) {\n if (!isStr_1.default(data))\n data = '';\n data = {\n name: getFileName(this.url),\n url: this.url,\n data: data,\n time: now_1.default(),\n reqHeaders: this.reqHeaders,\n method: this.method,\n };\n if (!isEmpty_1.default(this.reqHeaders)) {\n data.reqHeaders = this.reqHeaders;\n }\n this.emit('send', this.id, data);\n };\n XhrRequest.prototype.handleReqHeadersSet = function (key, val) {\n if (key && val) {\n this.reqHeaders[key] = val;\n }\n };\n XhrRequest.prototype.handleHeadersReceived = function () {\n var xhr = this.xhr;\n var type = getType(xhr.getResponseHeader('Content-Type') || '');\n this.emit('headersReceived', this.id, {\n type: type.type,\n subType: type.subType,\n size: getSize(xhr, true, this.url),\n time: now_1.default(),\n resHeaders: getHeaders(xhr),\n });\n };\n XhrRequest.prototype.handleDone = function () {\n var _this = this;\n var xhr = this.xhr;\n var resType = xhr.responseType;\n var resTxt = '';\n var update = function () {\n _this.emit('done', _this.id, {\n status: xhr.status,\n size: getSize(xhr, false, _this.url),\n time: now_1.default(),\n resTxt: resTxt,\n });\n };\n var type = getType(xhr.getResponseHeader('Content-Type') || '');\n if (resType === 'blob' &&\n (type.type === 'text' ||\n type.subType === 'javascript' ||\n type.subType === 'json')) {\n readBlobAsText(xhr.response, function (err, result) {\n if (result)\n resTxt = result;\n update();\n });\n }\n else {\n if (resType === '' || resType === 'text')\n resTxt = xhr.responseText;\n if (resType === 'json')\n resTxt = JSON.stringify(xhr.response);\n update();\n }\n };\n return XhrRequest;\n}(Emitter_1.default));\nexports.XhrRequest = XhrRequest;\nvar FetchRequest = (function (_super) {\n __extends(FetchRequest, _super);\n function FetchRequest(url, options) {\n if (options === void 0) { options = {}; }\n var _this = _super.call(this) || this;\n if (url instanceof window.Request)\n url = url.url;\n _this.url = fullUrl(url);\n _this.id = util_1.createId();\n _this.options = options;\n _this.reqHeaders = options.headers || {};\n _this.method = options.method || 'GET';\n return _this;\n }\n FetchRequest.prototype.send = function (fetchResult) {\n var _this = this;\n var options = this.options;\n var data = isStr_1.default(options.body) ? options.body : '';\n this.emit('send', this.id, {\n name: getFileName(this.url),\n url: this.url,\n data: data,\n reqHeaders: this.reqHeaders,\n time: now_1.default(),\n method: this.method,\n });\n fetchResult.then(function (res) {\n res = res.clone();\n var type = getType(res.headers.get('Content-Type'));\n res.text().then(function (resTxt) {\n var data = {\n type: type.type,\n subType: type.subType,\n time: now_1.default(),\n size: getFetchSize(res, resTxt),\n resTxt: resTxt,\n resHeaders: getFetchHeaders(res),\n status: res.status,\n };\n if (!isEmpty_1.default(_this.reqHeaders)) {\n data.reqHeaders = _this.reqHeaders;\n }\n _this.emit('done', _this.id, data);\n });\n return res;\n });\n };\n return FetchRequest;\n}(Emitter_1.default));\nexports.FetchRequest = FetchRequest;\nfunction getFetchSize(res, resTxt) {\n var size = 0;\n var contentLen = res.headers.get('Content-length');\n if (contentLen) {\n size = toNum_1.default(contentLen);\n }\n else {\n size = lenToUtf8Bytes(resTxt);\n }\n return size;\n}\nfunction getFetchHeaders(res) {\n var ret = {};\n res.headers.forEach(function (val, key) { return (ret[key] = val); });\n return ret;\n}\nfunction getHeaders(xhr) {\n var raw = xhr.getAllResponseHeaders();\n var lines = raw.split('\\n');\n var ret = {};\n each_1.default(lines, function (line) {\n line = trim_1.default(line);\n if (line === '')\n return;\n var _a = line.split(':', 2), key = _a[0], val = _a[1];\n ret[key] = trim_1.default(val);\n });\n return ret;\n}\nfunction getSize(xhr, headersOnly, url) {\n var size = 0;\n function getStrSize() {\n if (!headersOnly) {\n var resType = xhr.responseType;\n var resTxt = '';\n if (resType === '' || resType === 'text')\n resTxt = xhr.responseText;\n if (resTxt)\n size = lenToUtf8Bytes(resTxt);\n }\n }\n if (isCrossOrig(url)) {\n getStrSize();\n }\n else {\n try {\n size = toNum_1.default(xhr.getResponseHeader('Content-Length'));\n }\n catch (e) {\n getStrSize();\n }\n }\n if (size === 0)\n getStrSize();\n return size;\n}\nvar link = document.createElement('a');\nfunction fullUrl(href) {\n link.href = href;\n return (link.protocol + '//' + link.host + link.pathname + link.search + link.hash);\n}\nexports.fullUrl = fullUrl;\nfunction getFileName(url) {\n var ret = last_1.default(url.split('/'));\n if (ret.indexOf('?') > -1)\n ret = trim_1.default(ret.split('?')[0]);\n if (ret === '') {\n var urlObj = new Url_1.default(url);\n ret = urlObj.hostname;\n }\n return ret;\n}\nfunction getType(contentType) {\n if (!contentType)\n return {\n type: 'unknown',\n subType: 'unknown',\n };\n var type = contentType.split(';')[0].split('/');\n return {\n type: type[0],\n subType: last_1.default(type),\n };\n}\nfunction readBlobAsText(blob, callback) {\n var reader = new FileReader();\n reader.onload = function () {\n callback(null, reader.result);\n };\n reader.onerror = function (err) {\n callback(err);\n };\n reader.readAsText(blob);\n}\nvar origin = window.location.origin;\nfunction isCrossOrig(url) {\n return !startWith_1.default(url, origin);\n}\nfunction lenToUtf8Bytes(str) {\n var m = encodeURIComponent(str).match(/%[89ABab]/g);\n return str.length + (m ? m.length : 0);\n}\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getBase64Content = exports.getTextContent = exports.getOrigin = exports.getUrl = exports.createErr = exports.ErrorWithCode = exports.getAbsoluteUrl = exports.createId = void 0;\nvar uniqId_1 = __importDefault(require(\"licia/uniqId\"));\nvar random_1 = __importDefault(require(\"licia/random\"));\nvar startWith_1 = __importDefault(require(\"licia/startWith\"));\nvar Url_1 = __importDefault(require(\"licia/Url\"));\nvar convertBin_1 = __importDefault(require(\"licia/convertBin\"));\nvar axios_1 = __importDefault(require(\"axios\"));\nvar prefix = random_1.default(1000, 9999) + '.';\nfunction createId() {\n return uniqId_1.default(prefix);\n}\nexports.createId = createId;\nfunction getAbsoluteUrl(url) {\n var a = document.createElement('a');\n a.href = url;\n return a.href;\n}\nexports.getAbsoluteUrl = getAbsoluteUrl;\nvar ErrorWithCode = (function (_super) {\n __extends(ErrorWithCode, _super);\n function ErrorWithCode(code, message) {\n var _newTarget = this.constructor;\n var _this = _super.call(this, message) || this;\n _this.code = code;\n Object.setPrototypeOf(_this, _newTarget.prototype);\n return _this;\n }\n return ErrorWithCode;\n}(Error));\nexports.ErrorWithCode = ErrorWithCode;\nfunction createErr(code, message) {\n return new ErrorWithCode(code, message);\n}\nexports.createErr = createErr;\nfunction getUrl() {\n var href = location.href;\n if (startWith_1.default(href, 'about:')) {\n return parent.location.href;\n }\n return href;\n}\nexports.getUrl = getUrl;\nfunction getOrigin() {\n var origin = location.origin;\n if (origin === 'null') {\n return parent.location.origin;\n }\n return origin;\n}\nexports.getOrigin = getOrigin;\nfunction getTextContent(url, proxy) {\n if (proxy === void 0) { proxy = ''; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4, getContent(url, 'text', proxy)];\n case 1: return [2, _a.sent()];\n }\n });\n });\n}\nexports.getTextContent = getTextContent;\nfunction getBase64Content(url, proxy) {\n if (proxy === void 0) { proxy = ''; }\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = convertBin_1.default;\n return [4, getContent(url, 'arraybuffer', proxy)];\n case 1: return [2, _a.apply(void 0, [_b.sent(), 'base64'])];\n }\n });\n });\n}\nexports.getBase64Content = getBase64Content;\nfunction getContent(url, responseType, proxy) {\n if (proxy === void 0) { proxy = ''; }\n return __awaiter(this, void 0, void 0, function () {\n var urlObj, result, e_1, result, e_2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 2, , 8]);\n urlObj = new Url_1.default(url);\n urlObj.setQuery('__chobitsu-hide__', 'true');\n return [4, axios_1.default.get(urlObj.toString(), {\n responseType: responseType,\n })];\n case 1:\n result = _a.sent();\n return [2, result.data];\n case 2:\n e_1 = _a.sent();\n if (!proxy) return [3, 7];\n _a.label = 3;\n case 3:\n _a.trys.push([3, 6, , 7]);\n return [4, axios_1.default.get(proxyUrl(proxy, url), {\n responseType: responseType,\n })];\n case 4:\n result = _a.sent();\n return [4, result.data];\n case 5: return [2, _a.sent()];\n case 6:\n e_2 = _a.sent();\n return [3, 7];\n case 7: return [3, 8];\n case 8: return [2, responseType === 'arraybuffer' ? new ArrayBuffer(0) : ''];\n }\n });\n });\n}\nfunction proxyUrl(proxy, url) {\n var urlObj = new Url_1.default(proxy);\n urlObj.setQuery('url', url);\n urlObj.setQuery('__chobitsu-hide__', 'true');\n return urlObj.toString();\n}\n","require('../../modules/es.aggregate-error');\nrequire('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.promise');\nrequire('../../modules/es.promise.all-settled');\nrequire('../../modules/es.promise.any');\nrequire('../../modules/es.promise.finally');\nrequire('../../modules/es.string.iterator');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Promise;\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar create = require('../internals/object-create');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\n\n// non-standard V8\nvar captureStackTrace = Error.captureStackTrace;\n\nmodule.exports = function (error, C, stack, dropEntries) {\n if (ERROR_STACK_INSTALLABLE) {\n if (captureStackTrace) captureStackTrace(error, C);\n else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));\n }\n};\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n return error.stack !== 7;\n});\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n if (isObject(options) && 'cause' in options) {\n createNonEnumerableProperty(O, 'cause', options.cause);\n }\n};\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","module.exports = {};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar installErrorCause = require('../internals/install-error-cause');\nvar installErrorStack = require('../internals/error-stack-install');\nvar iterate = require('../internals/iterate');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Error = Error;\nvar push = [].push;\n\nvar $AggregateError = function AggregateError(errors, message /* , options */) {\n var isInstance = isPrototypeOf(AggregateErrorPrototype, this);\n var that;\n if (setPrototypeOf) {\n that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);\n } else {\n that = isInstance ? this : create(AggregateErrorPrototype);\n createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));\n installErrorStack(that, $AggregateError, that.stack, 1);\n if (arguments.length > 2) installErrorCause(that, arguments[2]);\n var errorsArray = [];\n iterate(errors, push, { that: errorsArray });\n createNonEnumerableProperty(that, 'errors', errorsArray);\n return that;\n};\n\nif (setPrototypeOf) setPrototypeOf($AggregateError, $Error);\nelse copyConstructorProperties($AggregateError, $Error, { name: true });\n\nvar AggregateErrorPrototype = $AggregateError.prototype = create($Error.prototype, {\n constructor: createPropertyDescriptor(1, $AggregateError),\n message: createPropertyDescriptor(1, ''),\n name: createPropertyDescriptor(1, 'AggregateError')\n});\n\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$({ global: true, constructor: true, arity: 2 }, {\n AggregateError: $AggregateError\n});\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.aggregate-error.constructor');\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Map` constructor\n// https://tc39.es/ecma262/#sec-map-objects\ncollection('Map', function (init) {\n return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.map.constructor');\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.allSettled` method\n// https://tc39.es/ecma262/#sec-promise.allsettled\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n allSettled: function allSettled(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call(promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (error) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: error };\n --remaining || resolve(values);\n });\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar getBuiltIn = require('../internals/get-built-in');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\nvar PROMISE_ANY_ERROR = 'No one promise resolved';\n\n// `Promise.any` method\n// https://tc39.es/ecma262/#sec-promise.any\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n any: function any(iterable) {\n var C = this;\n var AggregateError = getBuiltIn('AggregateError');\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aCallable(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n remaining++;\n call(promiseResolve, C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromiseConstructor && fails(function () {\n // eslint-disable-next-line unicorn/no-thenable -- required for testing\n NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn('Promise'));\n var isFunction = isCallable(onFinally);\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\n// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['finally'];\n if (NativePromisePrototype['finally'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });\n }\n}\n","// TODO: Remove this module from `core-js@4` since it's split to modules listed below\nrequire('../modules/es.promise.constructor');\nrequire('../modules/es.promise.all');\nrequire('../modules/es.promise.catch');\nrequire('../modules/es.promise.race');\nrequire('../modules/es.promise.reject');\nrequire('../modules/es.promise.resolve');\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","var parent = require('../../es/promise');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"#_console{padding-top:40px;padding-bottom:24px;width:100%;height:100%}#_console._js-input-hidden{padding-bottom:0}#_console ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px 10px 10px 35px}#_console ._control [class*=' _icon-'],#_console ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_console ._control [class*=' _icon-']._active,#_console ._control [class*=' _icon-']:active,#_console ._control [class^='_icon-']._active,#_console ._control [class^='_icon-']:active{color:var(--accent)}#_console ._control ._icon-clear{padding-right:0;left:0}#_console ._control ._icon-copy{right:0}#_console ._control ._icon-filter{right:23px}#_console ._control ._level{cursor:pointer;font-size:12px;height:20px;display:inline-block;margin:0 2px;padding:0 4px;line-height:20px;transition:background-color .3s,color .3s}#_console ._control ._level._active{background:var(--highlight);color:var(--select-foreground)}#_console ._control ._filter-text{white-space:nowrap;position:absolute;line-height:20px;max-width:80px;overflow:hidden;right:55px;font-size:14px;text-overflow:ellipsis}#_console ._js-input{pointer-events:none;position:absolute;z-index:100;left:0;bottom:0;width:100%;border-top:1px solid var(--border);height:24px}#_console ._js-input ._icon-arrow-right{line-height:23px;color:var(--accent);position:absolute;left:10px;top:0;z-index:10}#_console ._js-input._active{height:100%;padding-top:40px;padding-bottom:40px;border-top:none}#_console ._js-input._active ._icon-arrow-right{display:none}#_console ._js-input._active textarea{overflow:auto;padding-left:10px}#_console ._js-input ._buttons{display:none;position:absolute;left:0;bottom:0;width:100%;height:40px;color:var(--primary);background:var(--darker-background);font-size:12px;border-top:1px solid var(--border)}#_console ._js-input ._buttons ._button{pointer-events:all;cursor:pointer;flex:1;text-align:center;border-right:1px solid var(--border);height:40px;line-height:40px;transition:background-color .3s,color .3s}#_console ._js-input ._buttons ._button:last-child{border-right:none}#_console ._js-input ._buttons ._button:active{color:var(--select-foreground);background:var(--highlight)}#_console ._js-input textarea{overflow:hidden;pointer-events:all;padding:3px 10px;padding-left:25px;outline:0;border:none;font-size:14px;width:100%;height:100%;-webkit-user-select:text;user-select:text;resize:none;color:var(--primary);background:var(--background)}._safe-area #_console{padding-bottom:calc(24px + env(safe-area-inset-bottom))}._safe-area #_console._js-input-hidden{padding-bottom:0}._safe-area #_console ._js-input{height:calc(24px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input._active{height:100%;padding-bottom:calc(40px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input ._buttons{height:calc(40px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input ._buttons ._button{height:calc(40px + env(safe-area-inset-bottom))}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"._dev-tools{position:absolute;width:100%;height:100%;left:0;bottom:0;background:var(--background);z-index:500;display:none;padding-top:40px!important;opacity:0;transition:opacity .3s;border-top:1px solid var(--border)}._dev-tools ._resizer{position:absolute;width:100%;left:0;top:-8px;cursor:row-resize;z-index:120}._dev-tools ._tools{overflow:auto;-webkit-overflow-scrolling:touch;height:100%;width:100%;position:relative}._dev-tools ._tools ._tool{position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;display:none}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"#_elements ._elements{position:absolute;width:100%;height:100%;left:0;top:0;padding-top:40px;padding-bottom:24px;font-size:14px}#_elements ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px 0}#_elements ._control [class*=' _icon-'],#_elements ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_elements ._control [class*=' _icon-']._active,#_elements ._control [class*=' _icon-']:active,#_elements ._control [class^='_icon-']._active,#_elements ._control [class^='_icon-']:active{color:var(--accent)}#_elements ._control ._icon-eye{right:0}#_elements ._control ._icon-copy{right:23px}#_elements ._control ._icon-delete{right:46px}#_elements ._dom-viewer-container{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;padding:5px 0}#_elements ._crumbs{position:absolute;width:100%;height:24px;left:0;top:0;top:initial;line-height:24px;bottom:0;border-top:1px solid var(--border);background:var(--darker-background);color:var(--primary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#_elements ._crumbs li{cursor:pointer;padding:0 7px;display:inline-block}#_elements ._crumbs li:hover,#_elements ._crumbs li:last-child{background:var(--highlight)}#_elements ._crumbs ._icon-arrow-right{font-size:12px;position:relative;top:1px}#_elements ._detail{position:absolute;width:100%;height:100%;left:0;top:0;z-index:10;padding-top:40px;display:none;background:var(--background)}#_elements ._detail ._control{padding:10px 35px}#_elements ._detail ._control ._element-name{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block}#_elements ._detail ._control ._icon-arrow-left{left:0}#_elements ._detail ._control ._icon-refresh{right:0}#_elements ._detail ._element{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%}#_elements ._section{border-bottom:1px solid var(--border);color:var(--foreground);margin:10px 0}#_elements ._section h2{color:var(--primary);background:var(--darker-background);border-top:1px solid var(--border);padding:10px;line-height:18px;font-size:14px;transition:background-color .3s}#_elements ._section h2 ._btn{margin-left:5px;float:right;color:var(--primary);width:18px;height:18px;font-size:16px;cursor:pointer;transition:color .3s}#_elements ._section h2 ._btn._filter-text{width:auto;max-width:80px;font-size:14px;overflow:hidden;font-weight:400;text-overflow:ellipsis;display:inline-block}#_elements ._section h2 ._btn:active{color:var(--accent)}#_elements ._section h2 ._btn._btn-disabled{color:inherit!important;cursor:default!important;pointer-events:none;opacity:.5}#_elements ._section h2 ._btn._btn-disabled *{pointer-events:none}#_elements ._section h2._active-effect{cursor:pointer}#_elements ._section h2._active-effect:active{background:var(--highlight);color:var(--select-foreground)}#_elements ._attributes{font-size:12px}#_elements ._attributes a{color:var(--link-color)}#_elements ._attributes ._table-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch}#_elements ._attributes table td{padding:5px 10px}#_elements ._text-content{background:#fff}#_elements ._text-content ._content{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px}#_elements ._style-color{position:relative;top:1px;width:10px;height:10px;border-radius:50%;margin-right:2px;border:1px solid var(--border);display:inline-block}#_elements ._box-model{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;text-align:center;border-bottom:1px solid var(--color)}#_elements ._computed-style{font-size:12px}#_elements ._computed-style a{color:var(--link-color)}#_elements ._computed-style ._table-wrapper{overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:200px;border-top:1px solid var(--border)}#_elements ._computed-style table td{padding:5px 10px}#_elements ._computed-style table td._key{white-space:nowrap;color:var(--var-color)}#_elements ._styles{font-size:12px}#_elements ._styles ._style-wrapper{padding:10px}#_elements ._styles ._style-wrapper ._style-rules{border:1px solid var(--border);padding:10px;margin-bottom:10px}#_elements ._styles ._style-wrapper ._style-rules ._rule{padding-left:2em;word-break:break-all}#_elements ._styles ._style-wrapper ._style-rules ._rule a{color:var(--link-color)}#_elements ._styles ._style-wrapper ._style-rules ._rule span{color:var(--var-color)}#_elements ._styles ._style-wrapper ._style-rules:last-child{margin-bottom:0}#_elements ._listeners{font-size:12px}#_elements ._listeners ._listener-wrapper{padding:10px}#_elements ._listeners ._listener-wrapper ._listener{margin-bottom:10px;overflow:hidden;border:1px solid var(--border)}#_elements ._listeners ._listener-wrapper ._listener ._listener-type{padding:10px;background:var(--darker-background);color:var(--primary)}#_elements ._listeners ._listener-wrapper ._listener ._listener-content li{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;border-top:none}._safe-area #_elements ._elements{padding-bottom:calc(24px + env(safe-area-inset-bottom))}._safe-area #_elements ._crumbs{height:calc(24px + env(safe-area-inset-bottom))}._safe-area #_elements ._element{padding-bottom:calc(0px + env(safe-area-inset-bottom))}@media screen and (min-width:680px){#_elements ._elements{width:50%}#_elements ._elements ._control ._icon-eye{display:none}#_elements ._elements ._control ._icon-copy{right:0}#_elements ._elements ._control ._icon-delete{right:23px}#_elements ._detail{width:50%;left:initial;right:0;border-left:1px solid var(--border)}#_elements ._detail ._control{padding-left:10px}#_elements ._detail ._control ._icon-arrow-left{display:none}}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"._container ._entry-btn{touch-action:none;width:40px;height:40px;display:flex;background:#000;opacity:.3;border-radius:10px;position:relative;z-index:1000;transition:opacity .3s;color:#fff;font-size:25px;align-items:center;justify-content:center}._container ._entry-btn._active,._container ._entry-btn:active{opacity:.8}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"#_info{overflow-y:auto;-webkit-overflow-scrolling:touch}#_info li{margin:10px;border:1px solid var(--border)}#_info li ._content,#_info li ._title{padding:10px}#_info li ._title{position:relative;padding-bottom:0;color:var(--accent)}#_info li ._title ._icon-copy{position:absolute;right:10px;top:14px;color:var(--primary);cursor:pointer;transition:color .3s}#_info li ._title ._icon-copy:active{color:var(--accent)}#_info li ._content{margin:0;-webkit-user-select:text;user-select:text;color:var(--foreground);font-size:12px;word-break:break-all}#_info li ._content table{width:100%;border-collapse:collapse}#_info li ._content table td,#_info li ._content table th{border:1px solid var(--border);padding:10px}#_info li ._content *{-webkit-user-select:text;user-select:text}#_info li ._content a{color:var(--link-color)}#_info li ._device-key,#_info li ._system-key{width:100px}._safe-area #_info{padding-bottom:calc(10px + env(safe-area-inset-bottom))}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"#_network ._network{position:absolute;width:100%;height:100%;left:0;top:0;padding-top:39px}#_network ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px;border-bottom:none}#_network ._control [class*=' _icon-'],#_network ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_network ._control [class*=' _icon-']._active,#_network ._control [class*=' _icon-']:active,#_network ._control [class^='_icon-']._active,#_network ._control [class^='_icon-']:active{color:var(--accent)}#_network ._control ._title{font-size:14px}#_network ._control ._icon-clear{left:23px}#_network ._control ._icon-eye{right:0}#_network ._control ._icon-copy{right:23px}#_network ._control ._icon-filter{right:46px}#_network ._control ._filter-text{white-space:nowrap;position:absolute;line-height:20px;max-width:80px;overflow:hidden;right:88px;font-size:14px;text-overflow:ellipsis}#_network ._control ._icon-record{left:0}#_network ._control ._icon-record._recording{color:var(--console-error-foreground);text-shadow:0 0 4px var(--console-error-foreground)}#_network ._request-error{color:var(--console-error-foreground)}#_network .luna-data-grid:focus .luna-data-grid-data-container ._request-error.luna-data-grid-selected{background:var(--console-error-background)}#_network .luna-data-grid{border-left:none;border-right:none}#_network ._detail{position:absolute;width:100%;height:100%;left:0;top:0;z-index:10;display:none;padding-top:40px;background:var(--background)}#_network ._detail ._control{padding:10px 35px;border-bottom:1px solid var(--border)}#_network ._detail ._control ._url{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block}#_network ._detail ._control ._icon-arrow-left{left:0}#_network ._detail ._control ._icon-delete{left:0;display:none}#_network ._detail ._control ._icon-copy{right:0}#_network ._detail ._http{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%}#_network ._detail ._http ._section{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-top:10px;margin-bottom:10px}#_network ._detail ._http ._section h2{background:var(--darker-background);color:var(--primary);padding:10px;line-height:18px;font-size:14px}#_network ._detail ._http ._section table{color:var(--foreground)}#_network ._detail ._http ._section table *{-webkit-user-select:text;user-select:text}#_network ._detail ._http ._section table td{font-size:12px;padding:5px 10px;word-break:break-all}#_network ._detail ._http ._section table ._key{white-space:nowrap;font-weight:700;color:var(--accent)}#_network ._detail ._http ._data,#_network ._detail ._http ._response{-webkit-user-select:text;user-select:text;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;font-size:12px;margin:10px 0;white-space:pre-wrap;border-top:1px solid var(--border);color:var(--foreground);border-bottom:1px solid var(--border)}._safe-area #_network ._http{padding-bottom:calc(0px + env(safe-area-inset-bottom))}@media screen and (min-width:680px){#_network ._network ._control ._icon-eye{display:none}#_network ._network ._control ._icon-copy{right:0}#_network ._network ._control ._icon-filter{right:23px}#_network ._network ._control ._filter-text{right:55px}#_network ._detail{width:50%;left:initial;right:0;border-left:1px solid var(--border)}#_network ._detail ._control ._icon-arrow-left{display:none}#_network ._detail ._control ._icon-delete{display:block}}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"#_resources{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px;font-size:14px}#_resources ._section{margin-bottom:10px;overflow:hidden;border:1px solid var(--border)}#_resources ._section._warn{border:1px solid var(--console-warn-border)}#_resources ._section._warn ._title{background:var(--console-warn-background);color:var(--console-warn-foreground)}#_resources ._section._danger{border:1px solid var(--console-error-border)}#_resources ._section._danger ._title{background:var(--console-error-background);color:var(--console-error-foreground)}#_resources ._section._cookie,#_resources ._section._local-storage,#_resources ._section._session-storage{border:none}#_resources ._section._cookie ._title,#_resources ._section._local-storage ._title,#_resources ._section._session-storage ._title{border:1px solid var(--border);border-bottom:none}#_resources ._title{padding:10px;line-height:18px;color:var(--primary);background:var(--darker-background)}#_resources ._title ._btn{margin-left:5px;float:right;color:var(--primary);width:18px;height:18px;font-size:16px;cursor:pointer;transition:color .3s}#_resources ._title ._btn._filter-text{width:auto;max-width:80px;font-size:14px;overflow:hidden;font-weight:400;text-overflow:ellipsis;display:inline-block}#_resources ._title ._btn:active{color:var(--accent)}#_resources ._title ._btn._btn-disabled{color:inherit!important;cursor:default!important;pointer-events:none;opacity:.5}#_resources ._title ._btn._btn-disabled *{pointer-events:none}#_resources ._link-list{font-size:12px;color:var(--foreground)}#_resources ._link-list li{padding:10px;word-break:break-all}#_resources ._link-list li a{color:var(--link-color)!important}#_resources ._image-list{color:var(--foreground);font-size:12px;display:flex;flex-wrap:wrap;padding:10px!important}#_resources ._image-list:after{content:'';display:block;clear:both}#_resources ._image-list li{flex-grow:1;cursor:pointer;overflow-y:hidden}#_resources ._image-list li._image{height:100px;font-size:0}#_resources ._image-list li img{height:100px;min-width:100%;-o-object-fit:cover;object-fit:cover}._safe-area #_resources{padding-bottom:calc(10px + env(safe-area-inset-bottom))}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"#_settings{overflow-y:auto;-webkit-overflow-scrolling:touch}._safe-area #_settings{padding-bottom:calc(0px + env(safe-area-inset-bottom))}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"#_snippets{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px}#_snippets ._section{margin-bottom:10px;border:1px solid var(--border);overflow:hidden;cursor:pointer}#_snippets ._section:active ._name{background:var(--highlight);color:var(--select-foreground)}#_snippets ._section ._name{padding:10px;line-height:18px;color:var(--primary);background:var(--darker-background);transition:background-color .3s}#_snippets ._section ._name ._btn{margin-left:10px;float:right;text-align:center;width:18px;height:18px;font-size:12px}#_snippets ._section ._description{font-size:12px;color:var(--foreground);padding:10px;transition:background-color .3s}._safe-area #_snippets{padding-bottom:calc(10px + env(safe-area-inset-bottom))}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"._search-highlight-block{display:inline}._search-highlight-block ._keyword{background:var(--console-warn-background);color:var(--console-warn-foreground)}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"#_sources{font-size:0;overflow-y:auto;-webkit-overflow-scrolling:touch;color:var(--foreground)}#_sources ._code-wrapper,#_sources ._raw-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;min-height:100%}#_sources ._code,#_sources ._raw{height:100%}#_sources ._code ._keyword,#_sources ._raw ._keyword{color:var(--keyword-color)}#_sources ._code ._comment,#_sources ._raw ._comment{color:var(--comment-color)}#_sources ._code ._number,#_sources ._raw ._number{color:var(--number-color)}#_sources ._code ._string,#_sources ._raw ._string{color:var(--string-color)}#_sources ._code ._operator,#_sources ._raw ._operator{color:var(--operator-color)}#_sources ._code[data-type=html] ._keyword,#_sources ._raw[data-type=html] ._keyword{color:var(--tag-name-color)}#_sources ._image{font-size:12px}#_sources ._image ._breadcrumb{background:var(--darker-background);color:var(--primary);-webkit-user-select:text;user-select:text;margin-bottom:10px;word-break:break-all;padding:10px;font-size:16px;min-height:40px;border-bottom:1px solid var(--border)}#_sources ._image ._img-container{text-align:center}#_sources ._image ._img-container img{max-width:100%}#_sources ._image ._img-info{text-align:center;margin:20px 0;color:var(--foreground)}#_sources ._json{padding:0 10px}#_sources ._json *{-webkit-user-select:text;user-select:text}#_sources iframe{width:100%;height:100%}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"._container a,._container abbr,._container acronym,._container address,._container applet,._container article,._container aside,._container audio,._container b,._container big,._container blockquote,._container canvas,._container caption,._container center,._container cite,._container code,._container dd,._container del,._container details,._container dfn,._container dl,._container dt,._container em,._container embed,._container fieldset,._container figcaption,._container figure,._container footer,._container form,._container h1,._container h2,._container h3,._container h4,._container h5,._container h6,._container header,._container hgroup,._container i,._container iframe,._container img,._container ins,._container kbd,._container label,._container legend,._container li,._container mark,._container menu,._container nav,._container object,._container ol,._container output,._container p,._container pre,._container q,._container ruby,._container s,._container samp,._container section,._container small,._container span,._container strike,._container strong,._container sub,._container summary,._container sup,._container table,._container tbody,._container td,._container tfoot,._container th,._container thead,._container time,._container tr,._container tt,._container u,._container ul,._container var,._container video{margin:0;padding:0;border:0;font-size:100%}._container article,._container aside,._container details,._container figcaption,._container figure,._container footer,._container header,._container hgroup,._container menu,._container nav,._container section{display:block}._container body{line-height:1}._container ol,._container ul{list-style:none}._container blockquote,._container q{quotes:none}._container blockquote:after,._container blockquote:before,._container q:after,._container q:before{content:'';content:none}._container table{border-collapse:collapse;border-spacing:0}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".luna-console{background:var(--background)}.luna-console-header{color:var(--link-color);border-bottom-color:var(--border)}.luna-console-nesting-level{border-right-color:var(--border)}.luna-console-nesting-level::before{border-bottom-color:var(--border)}.luna-console-log-container.luna-console-selected .luna-console-log-item{background:var(--contrast)}.luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:var(--border)}.luna-console-log-item{border-bottom-color:var(--border);color:var(--foreground)}.luna-console-log-item a{color:var(--link-color)!important}.luna-console-log-item .luna-console-icon-container .luna-console-icon{color:var(--foreground)}.luna-console-log-item .luna-console-icon-container .luna-console-icon-error{color:#ef3842}.luna-console-log-item .luna-console-icon-container .luna-console-icon-warn{color:#e8a400}.luna-console-log-item .luna-console-count{color:var(--select-foreground);background:var(--highlight)}.luna-console-log-item.luna-console-warn{color:var(--console-warn-foreground);background:var(--console-warn-background);border-color:var(--console-warn-border)}.luna-console-log-item.luna-console-error{background:var(--console-error-background);color:var(--console-error-foreground);border-color:var(--console-error-border)}.luna-console-log-item.luna-console-error .luna-console-count{background:var(--console-error-foreground)}.luna-console-log-item .luna-console-code .luna-console-key{color:var(--var-color)}.luna-console-log-item .luna-console-code .luna-console-number{color:var(--number-color)}.luna-console-log-item .luna-console-code .luna-console-null{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-string{color:var(--string-color)}.luna-console-log-item .luna-console-code .luna-console-boolean{color:var(--keyword-color)}.luna-console-log-item .luna-console-code .luna-console-special{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-keyword{color:var(--keyword-color)}.luna-console-log-item .luna-console-code .luna-console-operator{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-comment{color:var(--comment-color)}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:var(--operator-color)}.luna-console-log-item .luna-console-log-content .luna-console-number{color:var(--number-color)}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:var(--keyword-color)}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:var(--var-color)}.luna-console-preview .luna-console-key{color:var(--var-color)}.luna-console-preview .luna-console-number{color:var(--number-color)}.luna-console-preview .luna-console-null{color:var(--operator-color)}.luna-console-preview .luna-console-string{color:var(--string-color)}.luna-console-preview .luna-console-boolean{color:var(--keyword-color)}.luna-console-preview .luna-console-special{color:var(--operator-color)}.luna-console-preview .luna-console-keyword{color:var(--keyword-color)}.luna-console-preview .luna-console-operator{color:var(--operator-color)}.luna-console-preview .luna-console-comment{color:var(--comment-color)}.luna-object-viewer{color:var(--primary);font-size:12px!important}.luna-object-viewer-null{color:var(--operator-color)}.luna-object-viewer-regexp,.luna-object-viewer-string{color:var(--string-color)}.luna-object-viewer-number{color:var(--number-color)}.luna-object-viewer-boolean{color:var(--keyword-color)}.luna-object-viewer-special{color:var(--operator-color)}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:var(--var-color)}.luna-object-viewer-expanded:before{border-color:transparent;border-top-color:var(--foreground)}.luna-object-viewer-collapsed:before{border-top-color:transparent;border-left-color:var(--foreground)}.luna-notification{pointer-events:none!important;padding:10px;z-index:1000}.luna-notification-item{z-index:500;color:var(--foreground);background:var(--background);box-shadow:none;padding:5px 10px;border:1px solid var(--border)}.luna-notification-upper{margin-bottom:10px}.luna-notification-lower{margin-top:10px}.luna-data-grid{color:var(--foreground);background:var(--background);border-color:var(--border)}.luna-data-grid:focus .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:var(--accent)}.luna-data-grid td,.luna-data-grid th{border-color:var(--border)}.luna-data-grid th{background:var(--darker-background)}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{color:var(--select-foreground);background:var(--highlight)}.luna-data-grid .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:var(--highlight)}.luna-data-grid .luna-data-grid-data-container tr:nth-child(even){background:var(--contrast)}.luna-dom-viewer{color:var(--foreground)}.luna-dom-viewer .luna-dom-viewer-html-tag,.luna-dom-viewer .luna-dom-viewer-tag-name{color:var(--tag-name-color)}.luna-dom-viewer .luna-dom-viewer-attribute-name{color:var(--attribute-name-color)}.luna-dom-viewer .luna-dom-viewer-attribute-value{color:var(--string-color)}.luna-dom-viewer .luna-dom-viewer-html-comment{color:var(--comment-color)}.luna-dom-viewer .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:var(--contrast)}.luna-dom-viewer .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:var(--highlight)}.luna-dom-viewer .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:var(--accent);opacity:.2}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-key{color:var(--var-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-number{color:var(--number-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-null{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-string{color:var(--string-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-boolean{color:var(--keyword-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-special{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:var(--keyword-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:var(--comment-color)}.luna-dom-viewer-children{margin:0;padding-left:15px!important}.luna-modal{z-index:9999999}.luna-modal-body,.luna-modal-input{color:var(--foreground);background:var(--background)}.luna-modal-input{-webkit-user-select:text!important;user-select:text!important;border-color:var(--border)}.luna-modal-button-group .luna-modal-secondary{border-color:var(--border);color:var(--foreground);background:var(--background)}.luna-modal-button-group .luna-modal-primary{background:var(--accent)}.luna-modal-button-group .luna-modal-button:active::before{background:var(--accent)}.luna-tab{position:absolute;left:0;top:0;color:var(--foreground);background:var(--darker-background)}.luna-tab-tabs-container{border-color:var(--border)}.luna-tab-item.luna-tab-selected,.luna-tab-item:hover{background:var(--highlight);color:var(--select-foreground)}.luna-tab-slider{background:var(--accent)}.luna-text-viewer{color:var(--foreground);border:none;border-bottom:1px solid var(--border);background:var(--background);font-size:12px}.luna-text-viewer .luna-text-viewer-line-text{-webkit-user-select:text;user-select:text}.luna-text-viewer .luna-text-viewer-line-text *{-webkit-user-select:text;user-select:text}.luna-text-viewer .luna-text-viewer-copy,.luna-text-viewer .luna-text-viewer-line-number{border-color:var(--border)}.luna-text-viewer .luna-text-viewer-copy .luna-text-viewer-icon-check{color:var(--accent)}.luna-text-viewer .luna-text-viewer-copy{background-color:var(--background)}.luna-setting{color:var(--foreground);background:var(--background)}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:var(--darker-background)}.luna-setting-item.luna-setting-selected:focus{outline:0}.luna-setting-item-title{font-size:14px}.luna-setting-item-separator{border-color:var(--border)}.luna-setting-item-checkbox input{border-color:var(--border)}.luna-setting-item-checkbox input:checked{background-color:var(--accent);border-color:var(--accent)}.luna-setting-item-select .luna-setting-select select{color:var(--foreground);border-color:var(--border);background:var(--background)}.luna-setting-item-select .luna-setting-select:after{border-top-color:var(--foreground)}.luna-setting-item-button button{color:var(--accent);background:var(--background);border-color:var(--border)}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:var(--darker-background)}.luna-setting-item-button button:active{border:1px solid var(--accent)}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:var(--border)}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{background:var(--accent)}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:var(--border);background:radial-gradient(circle at center,var(--dark) 0,var(--dark) 15%,var(--light) 22%,var(--light) 100%)}.luna-box-model{background:0 0}.luna-box-model-position{color:var(--foreground)}._container{min-width:320px;pointer-events:none;position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999999;color:var(--foreground);font-family:\\\".SFNSDisplay-Regular\\\",\\\"Helvetica Neue\\\",\\\"Lucida Grande\\\",\\\"Segoe UI\\\",Tahoma,sans-serif;font-size:14px;direction:ltr}._container._dark{color-scheme:dark}._container *{box-sizing:border-box;pointer-events:all;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none}._container ul{list-style:none;padding:0;margin:0}._container h1,._container h2,._container h3,._container h4{margin:0}._container h2{font-size:14px}._container h2 [class*=' _icon-'],._container h2 [class^='_icon-']{font-weight:400}._hidden{display:none}._icon-disabled{opacity:.5;pointer-events:none;cursor:default!important}._icon-disabled:active{color:inherit!important}._tag-name-color{color:var(--tag-name-color)}._function-color{color:var(--function-color)}._attribute-name-color{color:var(--attribute-name-color)}._operator-color{color:var(--operator-color)}._string-color{color:var(--string-color)}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".luna-box-model{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;display:inline-block;color:#222;font-size:12px;text-align:center;white-space:nowrap}.luna-box-model.luna-box-model-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-box-model.luna-box-model-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-box-model .luna-box-model-hidden,.luna-box-model.luna-box-model-hidden{display:none}.luna-box-model .luna-box-model-invisible,.luna-box-model.luna-box-model-invisible{visibility:hidden}.luna-box-model *{box-sizing:border-box}.luna-box-model.luna-box-model-theme-dark{color:#a5a5a5;background-color:#242424}.luna-box-model-label{position:absolute;margin-left:3px;padding:0 2px}.luna-box-model-bottom,.luna-box-model-left,.luna-box-model-right,.luna-box-model-top{display:inline-block}.luna-box-model-left,.luna-box-model-right{vertical-align:middle}.luna-box-model-border,.luna-box-model-content,.luna-box-model-margin,.luna-box-model-padding,.luna-box-model-position{position:relative;display:inline-block;text-align:center;vertical-align:middle;padding:3px;margin:3px}.luna-box-model-position{border:1px grey dotted}.luna-box-model-margin{color:#333;border:1px dashed;background:rgba(246,178,107,.66)}.luna-box-model-border{color:#333;border:1px #000 solid;background:rgba(255,229,153,.66)}.luna-box-model-padding{color:#333;border:1px grey dashed;background:rgba(147,196,125,.55)}.luna-box-model-content{color:#333;border:1px grey solid;min-width:100px;background:rgba(111,168,220,.66)}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"@font-face{font-family:luna-console-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAasAAsAAAAACnAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAI4AAADcIsYnIk9TLzIAAAGYAAAAPgAAAFZWmlGRY21hcAAAAdgAAAD2AAACyDioZ9NnbHlmAAAC0AAAAZgAAAH8Lq6nDGhlYWQAAARoAAAAMQAAADZ25cSzaGhlYQAABJwAAAAdAAAAJAgCBBRobXR4AAAEvAAAABkAAABYGAH//GxvY2EAAATYAAAAGAAAAC4J8glUbWF4cAAABPAAAAAfAAAAIAEjAFBuYW1lAAAFEAAAASkAAAIWm5e+CnBvc3QAAAY8AAAAcAAAAJ7qA/7MeJxNjTsOwjAQRJ8TJzE2hPBrKBBHQByAAiGqFBRcIBVCiqhyBA7O2AgRr9Y7M2+lxQCeAyeyy7W9U/fd8GKL5fsiH2vTPx8d7ufEbJpO/aagYc+RM7fEjBKnmiRuySmZUTNNf0wybYSRj9VoO4iU7NQh+Up8qelZs5EupP75Shfm2oz3Kmkvt/gARcgJKwAAeJxjYGQUZ5zAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHGHQ/srGAuDEsTGBhRhABALQ1CMwAAHiczdJNbsIwEIbh1+QHQsJviNRFF1XX7aEQRZQNRQjEHXqgrnopn4B+E8+qqip117GeRB4nk4lloAAyeZIcwicBiw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82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxtxksOgjAUQNF3kaIW/x9cBYtqgEAnLXlp0+1rwtQzuVcq2Vj5r6NiR42hYc+BI5aWE2cuXLlx58GTF286PmIm1ajGhzWnJub0S12cBjs4nVI/xhLabdXPS2JCiXgCK5lEwTHQMzKziHwBqnYYpg==') format('woff')}[class*=' luna-console-icon-'],[class^=luna-console-icon-]{display:inline-block;font-family:luna-console-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-console-icon-error:before{content:'\\\\f101'}.luna-console-icon-input:before{content:'\\\\f102'}.luna-console-icon-output:before{content:'\\\\f103'}.luna-console-icon-warn:before{content:'\\\\f104'}.luna-console-icon-caret-down:before{content:'\\\\f105'}.luna-console-icon-caret-right:before{content:'\\\\f106'}.luna-console{background:#fff;overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;position:relative;will-change:scroll-position;cursor:default;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.luna-console.luna-console-theme-dark{background-color:#242424}.luna-console-hidden{display:none}.luna-console-fake-logs{position:absolute;left:0;top:0;pointer-events:none;visibility:hidden;width:100%}.luna-console-logs{padding-top:1px;position:absolute;width:100%}.luna-console-log-container{box-sizing:content-box}.luna-console-log-container.luna-console-selected .luna-console-log-item{background:#ecf1f8}.luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#ccdef5}.luna-console-header{white-space:nowrap;display:flex;font-size:11px;color:#545454;border-top:1px solid transparent;border-bottom:1px solid #ccc}.luna-console-header .luna-console-time-from-container{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:3px 10px}.luna-console-nesting-level{width:14px;flex-shrink:0;margin-top:-1px;margin-bottom:-1px;position:relative;border-right:1px solid #ccc}.luna-console-nesting-level.luna-console-group-closed::before{content:''}.luna-console-nesting-level::before{border-bottom:1px solid #ccc;position:absolute;top:0;left:0;margin-left:100%;width:5px;height:100%;box-sizing:border-box}.luna-console-log-item{position:relative;display:flex;border-top:1px solid transparent;border-bottom:1px solid #ccc;margin-top:-1px;color:#333}.luna-console-log-item:after{content:'';display:block;clear:both}.luna-console-log-item .luna-console-code{display:inline;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.luna-console-log-item .luna-console-code .luna-console-keyword{color:#881280}.luna-console-log-item .luna-console-code .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-code .luna-console-operator{color:grey}.luna-console-log-item .luna-console-code .luna-console-comment{color:#236e25}.luna-console-log-item .luna-console-code .luna-console-string{color:#1a1aa6}.luna-console-log-item a{color:#15c!important}.luna-console-log-item .luna-console-icon-container{margin:0 -6px 0 10px}.luna-console-log-item .luna-console-icon-container .luna-console-icon{line-height:20px;font-size:12px;color:#333;position:relative}.luna-console-log-item .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-log-item .luna-console-icon-container .luna-console-icon-caret-right{top:0;left:-2px}.luna-console-log-item .luna-console-icon-container .luna-console-icon-error{top:0;color:#ef3842}.luna-console-log-item .luna-console-icon-container .luna-console-icon-warn{top:0;color:#e8a400}.luna-console-log-item .luna-console-count{background:#8097bd;color:#fff;padding:2px 4px;border-radius:10px;font-size:12px;float:left;margin:1px -6px 0 10px}.luna-console-log-item .luna-console-log-content-wrapper{flex:1;overflow:hidden}.luna-console-log-item .luna-console-log-content{padding:3px 0;margin:0 10px;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:pre-wrap;-webkit-user-select:text;user-select:text}.luna-console-log-item .luna-console-log-content *{-webkit-user-select:text;user-select:text}.luna-console-log-item .luna-console-log-content>*{vertical-align:top}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#5e5e5e}.luna-console-log-item .luna-console-log-content .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:#0d22aa}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#881391}.luna-console-log-item .luna-console-data-grid,.luna-console-log-item .luna-console-dom-viewer{white-space:initial}.luna-console-log-item.luna-console-error{z-index:50;background:#fff0f0;color:red;border-top:1px solid #ffd6d6;border-bottom:1px solid #ffd6d6}.luna-console-log-item.luna-console-error .luna-console-stack{padding-left:1.2em;white-space:nowrap}.luna-console-log-item.luna-console-error .luna-console-count{background:red}.luna-console-log-item.luna-console-debug{z-index:20}.luna-console-log-item.luna-console-input{border-bottom-color:transparent}.luna-console-log-item.luna-console-warn{z-index:40;color:#5c5c00;background:#fffbe5;border-top:1px solid #fff5c2;border-bottom:1px solid #fff5c2}.luna-console-log-item.luna-console-warn .luna-console-count{background:#e8a400}.luna-console-log-item.luna-console-info{z-index:30}.luna-console-log-item.luna-console-group,.luna-console-log-item.luna-console-groupCollapsed{font-weight:700}.luna-console-preview{display:inline-block}.luna-console-preview .luna-console-preview-container{display:flex;align-items:center}.luna-console-preview .luna-console-json{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-left:12px}.luna-console-preview .luna-console-preview-icon-container{display:block}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon{position:relative;font-size:12px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-down{top:2px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-right{top:1px}.luna-console-preview .luna-console-preview-content-container{word-break:break-all}.luna-console-preview .luna-console-descriptor,.luna-console-preview .luna-console-object-preview{font-style:italic}.luna-console-preview .luna-console-key{color:#881391}.luna-console-preview .luna-console-number{color:#1c00cf}.luna-console-preview .luna-console-null{color:#5e5e5e}.luna-console-preview .luna-console-string{color:#c41a16}.luna-console-preview .luna-console-boolean{color:#0d22aa}.luna-console-preview .luna-console-special{color:#5e5e5e}.luna-console-theme-dark{color-scheme:dark}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item{background:#29323d}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#4173b4}.luna-console-theme-dark .luna-console-log-item{color:#a5a5a5;border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-keyword{color:#e36eec}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-operator{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-comment{color:#747474}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-log-item.luna-console-error{background:#290000;color:#ff8080;border-top-color:#5c0000;border-bottom-color:#5c0000}.luna-console-theme-dark .luna-console-log-item.luna-console-error .luna-console-count{background:#ff8080}.luna-console-theme-dark .luna-console-log-item.luna-console-warn{color:#ffcb6b;background:#332a00;border-top-color:#650;border-bottom-color:#650}.luna-console-theme-dark .luna-console-log-item .luna-console-count{background:#42597f;color:#949494}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-boolean,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#e36eec}.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-right{color:#9aa0a6}.luna-console-theme-dark .luna-console-header{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level{border-right-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level::before{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-preview .luna-console-key{color:#e36eec}.luna-console-theme-dark .luna-console-preview .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-null{color:#7f7f7f}.luna-console-theme-dark .luna-console-preview .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-preview .luna-console-boolean{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-special{color:#7f7f7f}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".luna-data-grid{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:relative;font-size:12px;border:1px solid #ccc;overflow:hidden;outline:0}.luna-data-grid.luna-data-grid-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-data-grid.luna-data-grid-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-data-grid .luna-data-grid-hidden,.luna-data-grid.luna-data-grid-hidden{display:none}.luna-data-grid .luna-data-grid-invisible,.luna-data-grid.luna-data-grid-invisible{visibility:hidden}.luna-data-grid *{box-sizing:border-box}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background-color:#242424}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background:#242424;border-color:#3d3d3d}.luna-data-grid table{width:100%;height:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.luna-data-grid td,.luna-data-grid th{padding:1px 4px;border-left:1px solid #ccc;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.luna-data-grid td:first-child,.luna-data-grid th:first-child{border-left:none}.luna-data-grid th{font-weight:400;border-bottom:1px solid #ccc;text-align:left;background:#f3f3f3}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{background:#e6e6e6}.luna-data-grid td{height:20px;cursor:default;-webkit-user-select:text;user-select:text}.luna-data-grid:focus .luna-data-grid-node.luna-data-grid-selected{color:#fff;background:#1a73e8}.luna-data-grid:focus.luna-data-grid-theme-dark .luna-data-grid-node.luna-data-grid-selected{background:#0e639c}.luna-data-grid-data-container,.luna-data-grid-header-container{overflow:hidden}.luna-data-grid-header-container{height:21px}.luna-data-grid-data-container{overflow-y:auto}.luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#ddd}.luna-data-grid-data-container tr:nth-child(even){background:#f2f7fd}.luna-data-grid-filler-row td{height:auto}.luna-data-grid-resizer{position:absolute;top:0;bottom:0;width:5px;z-index:500;cursor:col-resize}.luna-data-grid-resizing{cursor:col-resize!important}.luna-data-grid-resizing .luna-data-grid *{cursor:col-resize!important}.luna-data-grid-theme-dark{color-scheme:dark}.luna-data-grid-theme-dark td,.luna-data-grid-theme-dark th{border-color:#3d3d3d}.luna-data-grid-theme-dark th{background:#292a2d}.luna-data-grid-theme-dark th.luna-data-grid-sortable:hover{background:#303030}.luna-data-grid-theme-dark .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#393939}.luna-data-grid-theme-dark .luna-data-grid-data-container tr:nth-child(even){background:#0b2544}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"@font-face{font-family:luna-dom-viewer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z/wXwGAAomASkAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxk0KgCAUAOE3/adlJ/FQgqBuFETw+i2kTd9mRiYZvv4ZJmYWVjZ2Dk4UmosbwyPK1Vq69aVnPbamEBuOSqFj8WQSgUgTeQGPtA2iAAA=') format('woff')}[class*=' luna-dom-viewer-icon-'],[class^=luna-dom-viewer-icon-]{display:inline-block;font-family:luna-dom-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-dom-viewer-icon-arrow-down:before{content:'\\\\f101'}.luna-dom-viewer-icon-arrow-right:before{content:'\\\\f102'}.luna-dom-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;background:0 0;overflow-x:hidden;word-wrap:break-word;padding:0 0 0 12px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;cursor:default;list-style:none}.luna-dom-viewer.luna-dom-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-viewer.luna-dom-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-viewer .luna-dom-viewer-hidden,.luna-dom-viewer.luna-dom-viewer-hidden{display:none}.luna-dom-viewer .luna-dom-viewer-invisible,.luna-dom-viewer.luna-dom-viewer-invisible{visibility:hidden}.luna-dom-viewer *{box-sizing:border-box}.luna-dom-viewer ul{list-style:none}.luna-dom-viewer.luna-dom-viewer-theme-dark{color:#e8eaed}.luna-dom-viewer-toggle{min-width:12px;margin-left:-12px}.luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-icon-arrow-right{position:absolute!important;font-size:12px!important}.luna-dom-viewer-tree-item{line-height:16px;min-height:16px;position:relative;z-index:10;outline:0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection,.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{display:block}.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#f2f7fd}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#e0e0e0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#cfe8fc}.luna-dom-viewer-tree-item .luna-dom-viewer-icon-arrow-down{display:none}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-down{display:inline-block}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-right{display:none}.luna-dom-viewer-html-tag{color:#881280}.luna-dom-viewer-tag-name{color:#881280}.luna-dom-viewer-attribute-name{color:#994500}.luna-dom-viewer-attribute-value{color:#1a1aa6}.luna-dom-viewer-attribute-value.luna-dom-viewer-attribute-underline{text-decoration:underline}.luna-dom-viewer-html-comment{color:#236e25}.luna-dom-viewer-selection{position:absolute;display:none;left:-10000px;right:-10000px;top:0;bottom:0;z-index:-1}.luna-dom-viewer-children{margin:0;overflow-x:visible;overflow-y:visible;padding-left:15px}.luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#881280}.luna-dom-viewer-text-node .luna-dom-viewer-number{color:#1c00cf}.luna-dom-viewer-text-node .luna-dom-viewer-operator{color:grey}.luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#236e25}.luna-dom-viewer-text-node .luna-dom-viewer-string{color:#1a1aa6}.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-right{color:#9aa0a6}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-tag,.luna-dom-viewer-theme-dark .luna-dom-viewer-tag-name{color:#5db0d7}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-name{color:#9bbbdc}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-value{color:#f29766}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-comment{color:#898989}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#083c69}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#454545}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#073d69}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#e36eec}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-number{color:#9980ff}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:#7f7f7f}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#747474}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-string{color:#f29766}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"@font-face{font-family:luna-modal-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAQwAAsAAAAABpQAAQAAAAAAAAAAAAAA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Tv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxjYGKAABiNDtgZmRiZGVkYWRnZGNkZORhYk3Pyi1MZkxlzGPMZixlTGRgANIEEbAAAAA==') format('woff')}[class*=' luna-modal-icon-'],[class^=luna-modal-icon-]{display:inline-block;font-family:luna-modal-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-modal-icon-close:before{content:'\\\\f101'}.luna-modal{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center}.luna-modal.luna-modal-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-modal.luna-modal-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-modal .luna-modal-hidden,.luna-modal.luna-modal-hidden{display:none}.luna-modal .luna-modal-invisible,.luna-modal.luna-modal-invisible{visibility:hidden}.luna-modal *{box-sizing:border-box}.luna-modal-icon-close{position:absolute;right:16px;top:18px;cursor:pointer;font-size:20px}.luna-modal-body{position:relative;background:#fff;max-height:100%;display:flex;flex-direction:column;border-radius:4px}.luna-modal-body.luna-modal-no-title{position:static}.luna-modal-body.luna-modal-no-title .luna-modal-title{display:none}.luna-modal-body.luna-modal-no-title .luna-modal-icon-close{color:#fff}.luna-modal-body.luna-modal-no-footer .luna-modal-footer{display:none}.luna-modal-hidden{display:none}.luna-modal-title{padding:16px;padding-right:36px;padding-bottom:0;font-size:18px;height:46px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-modal-content{padding:16px;overflow-y:auto}.luna-modal-footer{padding:12px}.luna-modal-button-group{display:flex;justify-content:flex-end}.luna-modal-button{padding:0 12px;background:#e9ecef;cursor:default;position:relative;-webkit-user-select:none;user-select:none;margin:0 4px;font-size:12px;border-radius:4px;overflow:hidden;height:28px;line-height:28px}.luna-modal-button:active::before{background:#1a73e8;content:'';opacity:.4;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.luna-modal-button.luna-modal-secondary{color:#1a73e8;border:1px solid #ccc;background:#fff}.luna-modal-button.luna-modal-primary{color:#fff;background:#1a73e8}.luna-modal-input{box-sizing:border-box;outline:0;width:100%;font-size:16px;padding:6px 12px;border:1px solid #ccc;-webkit-appearance:none;-moz-appearance:none}.luna-modal-theme-dark{color:#a5a5a5}.luna-modal-theme-dark .luna-modal-body{background:#242424}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".luna-notification{position:fixed;top:0;left:0;width:100%;height:100%;padding:20px;box-sizing:border-box;pointer-events:none;display:flex;flex-direction:column;font-size:14px;font-family:Arial,Helvetica,sans-serif}.luna-notification-item{display:flex;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);padding:10px 16px;color:#333;background:#fff}.luna-notification-lower{margin-top:16px}.luna-notification-upper{margin-bottom:16px}.luna-notification-theme-dark .luna-notification-item{box-shadow:0 2px 2px 0 rgba(255,255,255,.07),0 1px 5px 0 rgba(255,255,255,.1);color:#a5a5a5;background:#242424}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"@font-face{font-family:luna-object-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS8AAsAAAAAB7QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAGEAAACMISgl+k9TLzIAAAFsAAAAPQAAAFZLxUkWY21hcAAAAawAAADWAAACdBU42qdnbHlmAAAChAAAAC4AAAAwabU7V2hlYWQAAAK0AAAALwAAADZzjr4faGhlYQAAAuQAAAAYAAAAJAFyANlobXR4AAAC/AAAABAAAABAAZAAAGxvY2EAAAMMAAAAEAAAACIAtACobWF4cAAAAxwAAAAfAAAAIAEbAA9uYW1lAAADPAAAASkAAAIWm5e+CnBvc3QAAARoAAAAUwAAAHZW8MNZeJxNjTsOQFAQRc/z/+sV1mABohKV0gZeJRJR2X9cT4RJZu7nFIMBMjoGvHGaF6rdngcNAc/c/O/Nvq2W5E1igdNE2zv1iGh1c5FQPlYXUlJRyxt9+/pUKadQa/AveGEGZQAAAHicY2BkkGScwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAQfcjE8MJIFcITDIwMIIIAFqDCGkAAAB4nM2STQ4BQRCFv54ZP8MwFhYW4gQcShBsSERi50BWDuFCcwJedddKRGKnOt8k9aanqudVAy0gF3NRQLgTsLhJDVHP6UW94Kp8zEhKwYIlG/YcOXHm0mTPp96aumLLwdUQ1fcIqmJrwpSZL+iqak5JmyE1Ayr1bdGhr/2ZPmp/qPQtuj/uJzqQl+pfDyypesQD6AT/ElV8PjyrMccT9rdLR3PUFBI227VTio1jbm6dodg5VnPvmAsHxzofHfmi+Sbs/pwdWcXFkWdNSNg9arIE2QufuSCyAAB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOINe2b6x/PbfGXgZjgBFIjifLyvAUEDwUqGZUCSg4EJxAEAUn4LLAB4nGNgZGBgOMHAACdXMjAyoAIBADizAkx4nGNgAIITUEwGAABZUAGReJxjYAACHgYJ3BAAE94BXXicY2BkYGAQYGBmANEMDExAzAWEDAz/wXwGAApcASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxjkOgCAUANE/uOOGB+FQBIjaaEJIuL6FsfE1M6Lk9fXPoKioaWjp6BnQjEzMLKwYNtHepZhtuMs1vpvO/ch4HIlIxhK4KVyc7BwiD8nvDlkA') format('woff')}[class*=' luna-object-viewer-icon-'],[class^=luna-object-viewer-icon-]{display:inline-block;font-family:luna-object-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-object-viewer-icon-caret-down:before{content:'\\\\f101'}.luna-object-viewer-icon-caret-right:before{content:'\\\\f102'}.luna-object-viewer{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;cursor:default;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.2;min-height:100%;color:#333;list-style:none!important}.luna-object-viewer ul{list-style:none!important;padding:0!important;padding-left:12px!important;margin:0!important}.luna-object-viewer li{position:relative;white-space:nowrap;line-height:16px;min-height:16px}.luna-object-viewer>li>.luna-object-viewer-key{display:none}.luna-object-viewer span{position:static!important}.luna-object-viewer li .luna-object-viewer-collapsed~.luna-object-viewer-close:before{color:#999}.luna-object-viewer-array .luna-object-viewer-object .luna-object-viewer-key{display:inline}.luna-object-viewer-null{color:#5e5e5e}.luna-object-viewer-regexp,.luna-object-viewer-string{color:#c41a16}.luna-object-viewer-number{color:#1c00cf}.luna-object-viewer-boolean{color:#0d22aa}.luna-object-viewer-special{color:#5e5e5e}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:#881391}.luna-object-viewer-key-lighter{opacity:.6}.luna-object-viewer-key-special{color:#5e5e5e}.luna-object-viewer-collapsed .luna-object-viewer-icon,.luna-object-viewer-expanded .luna-object-viewer-icon{position:absolute!important;left:-12px;color:#727272;font-size:12px}.luna-object-viewer-icon-caret-right{top:0}.luna-object-viewer-icon-caret-down{top:1px}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-down{display:inline}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-right{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-down{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-right{display:inline}.luna-object-viewer-hidden~ul{display:none}.luna-object-viewer-theme-dark{color:#fff}.luna-object-viewer-theme-dark .luna-object-viewer-null,.luna-object-viewer-theme-dark .luna-object-viewer-special{color:#a1a1a1}.luna-object-viewer-theme-dark .luna-object-viewer-regexp,.luna-object-viewer-theme-dark .luna-object-viewer-string{color:#f28b54}.luna-object-viewer-theme-dark .luna-object-viewer-boolean,.luna-object-viewer-theme-dark .luna-object-viewer-number{color:#9980ff}.luna-object-viewer-theme-dark .luna-object-viewer-key,.luna-object-viewer-theme-dark .luna-object-viewer-key-lighter{color:#5db0d7}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".luna-setting{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;min-width:320px}.luna-setting.luna-setting-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-setting.luna-setting-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-setting .luna-setting-hidden,.luna-setting.luna-setting-hidden{display:none}.luna-setting .luna-setting-invisible,.luna-setting.luna-setting-invisible{visibility:hidden}.luna-setting *{box-sizing:border-box}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:#f3f3f3}.luna-setting-item.luna-setting-selected:focus{outline:1px solid #1a73e8}.luna-setting-item .luna-setting-title{line-height:1.4em;font-weight:600}.luna-setting-item .luna-setting-description{line-height:1.4em}.luna-setting-item .luna-setting-description *{margin:0}.luna-setting-item .luna-setting-description strong{font-weight:600}.luna-setting-item .luna-setting-description a{background-color:transparent;color:#0969da;text-decoration:none}.luna-setting-item .luna-setting-control,.luna-setting-item .luna-setting-description{font-size:12px}.luna-setting-item .luna-setting-description{margin-bottom:8px}.luna-setting-item .luna-setting-control{display:flex;align-items:center}.luna-setting-item-button,.luna-setting-item-checkbox,.luna-setting-item-input,.luna-setting-item-number,.luna-setting-item-select,.luna-setting-item-title{padding:10px}.luna-setting-item-title{font-size:18px;font-weight:600}.luna-setting-item-input input{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:100%}.luna-setting-item-number input[type=number]{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:200px;padding:2px}.luna-setting-item-number .luna-setting-range-container{flex:2;position:relative;top:1px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track{height:4px;width:100%;padding:0 10px;position:absolute;left:0;top:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#ccc;border-radius:2px;overflow:hidden;width:100%;height:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{height:100%;background:#1a73e8;width:50%}.luna-setting-item-number .luna-setting-range-container input{-webkit-appearance:none;background:0 0;height:4px;width:100%;position:relative;top:-3px;margin:0 auto;outline:0;border-radius:2px}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{-webkit-appearance:none;position:relative;top:0;z-index:1;width:16px;border:none;height:16px;border-radius:10px;border:1px solid #ccc;background:radial-gradient(circle at center,#eee 0,#eee 15%,#fff 22%,#fff 100%)}.luna-setting-item-checkbox input{-webkit-appearance:none;appearance:none;width:14px;height:14px;border:1px solid #ccc;border-radius:0;position:relative;outline:0;margin-left:0;margin-right:8px;transition:background-color .1s;align-self:flex-start;flex-shrink:0}.luna-setting-item-checkbox input:checked{background-color:#1a73e8;border-color:#1a73e8}.luna-setting-item-checkbox input:checked:after{content:\\\"\\\";width:100%;height:100%;position:absolute;left:0;top:0;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjZmZmZmZmIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgdmVyc2lvbj0iMS4xIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPmljb25fYnlfUG9zaGx5YWtvdjEwPC90aXRsZT48ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz48ZyBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjZmZmZmZmIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi4wMDAwMDAsIDI2LjAwMDAwMCkiPjxwYXRoIGQ9Ik0xNy45OTk5ODc4LDMyLjQgTDEwLjk5OTk4NzgsMjUuNCBDMTAuMjI2Nzg5MSwyNC42MjY4MDE0IDguOTczMTg2NDQsMjQuNjI2ODAxNCA4LjE5OTk4Nzc5LDI1LjQgTDguMTk5OTg3NzksMjUuNCBDNy40MjY3ODkxNCwyNi4xNzMxOTg2IDcuNDI2Nzg5MTQsMjcuNDI2ODAxNCA4LjE5OTk4Nzc5LDI4LjIgTDE2LjU4NTc3NDIsMzYuNTg1Nzg2NCBDMTcuMzY2ODIyOCwzNy4zNjY4MzUgMTguNjMzMTUyOCwzNy4zNjY4MzUgMTkuNDE0MjAxNCwzNi41ODU3ODY0IEw0MC41OTk5ODc4LDE1LjQgQzQxLjM3MzE4NjQsMTQuNjI2ODAxNCA0MS4zNzMxODY0LDEzLjM3MzE5ODYgNDAuNTk5OTg3OCwxMi42IEw0MC41OTk5ODc4LDEyLjYgQzM5LjgyNjc4OTEsMTEuODI2ODAxNCAzOC41NzMxODY0LDExLjgyNjgwMTQgMzcuNzk5OTg3OCwxMi42IEwxNy45OTk5ODc4LDMyLjQgWiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvc3ZnPg==);background-size:30px;background-repeat:no-repeat;background-position:center}.luna-setting-item-checkbox label{-webkit-tap-highlight-color:transparent}.luna-setting-item-checkbox label *{margin:0}.luna-setting-item-select .luna-setting-select{position:relative}.luna-setting-item-select .luna-setting-select select{margin:0;font-size:14px;background:#fff;-webkit-appearance:none;appearance:none;border:1px solid #ccc;padding:2px 8px;padding-right:18px;outline:0;color:#333;border-radius:0;-webkit-tap-highlight-color:transparent}.luna-setting-item-select .luna-setting-select:after{content:'';width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #333;position:absolute;top:0;bottom:0;right:6px;margin:auto;pointer-events:none}.luna-setting-item-select .luna-setting-select select{width:300px}.luna-setting-item-button button{-webkit-tap-highlight-color:transparent;background:#fff;border:1px solid #ccc;padding:2px 8px;color:#1a73e8;font-size:14px;border-radius:2px}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:#f3f3f3}.luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-item-separator{border-bottom:1px solid #ccc}.luna-setting-theme-dark{color-scheme:dark;color:#a5a5a5;background:#242424}.luna-setting-theme-dark .luna-setting-item.luna-setting-selected,.luna-setting-theme-dark .luna-setting-item:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item .luna-setting-description a{background-color:transparent;color:#58a6ff}.luna-setting-theme-dark .luna-setting-item-separator{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-input input{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-checkbox input{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select select{color:#a5a5a5;border-color:#3d3d3d;background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select:after{border-top-color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-button button{background:#242424;border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-button button:active,.luna-setting-theme-dark .luna-setting-item-button button:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-theme-dark .luna-setting-item-number input[type=number]{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:#3d3d3d;background:radial-gradient(circle at center,#aaa 0,#aaa 15%,#ccc 22%,#ccc 100%)}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".luna-tab{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:relative;overflow:hidden;width:100%}.luna-tab.luna-tab-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-tab.luna-tab-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-tab .luna-tab-hidden,.luna-tab.luna-tab-hidden{display:none}.luna-tab .luna-tab-invisible,.luna-tab.luna-tab-invisible{visibility:hidden}.luna-tab *{box-sizing:border-box}.luna-tab.luna-tab-theme-dark{color:#a5a5a5;background-color:#242424}.luna-tab-tabs-container{border-bottom:1px solid #ccc}.luna-tab-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;width:100%;height:100%;font-size:0;white-space:nowrap}.luna-tab-tabs::-webkit-scrollbar{display:none;width:0;height:0}.luna-tab-item{cursor:pointer;display:inline-block;padding:0 10px;font-size:12px;text-align:center;text-transform:capitalize}.luna-tab-item:hover{background:#f3f3f3}.luna-tab-slider{transition:left .3s,width .3s;height:1px;background:#1a73e8;position:absolute;bottom:0;left:0}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"@font-face{font-family:luna-text-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS0AAsAAAAAB2QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFQAAAB0INElr09TLzIAAAFcAAAAPQAAAFZL+0klY21hcAAAAZwAAACfAAACEAEewxRnbHlmAAACPAAAAIYAAACkNSDggmhlYWQAAALEAAAALgAAADZzrb4oaGhlYQAAAvQAAAAWAAAAJAGRANNobXR4AAADDAAAABAAAAAoAZAAAGxvY2EAAAMcAAAAEAAAABYBWgFIbWF4cAAAAywAAAAdAAAAIAEXADtuYW1lAAADTAAAASkAAAIWm5e+CnBvc3QAAAR4AAAAOwAAAFJIW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4qQ5LaCTYI0MIe9W91CumLSr6tVaYIMD4KrVgqmiSIZXGhsk1jqwVDjxtStcxrfhazuSkucxq3iQjK/7vurejE9EPsG2mSsww4hNf5IPmDvk/PRFeqAAAAHicXcU7CsAgFEXBe4x/l/kQBAtt3X0KSZNpRk7X91/F8eAJRBKZQqUp2Og2va19MAadyWJzpBd4kgcWAA==') format('woff')}[class*=' luna-text-viewer-icon-'],[class^=luna-text-viewer-icon-]{display:inline-block;font-family:luna-text-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-text-viewer-icon-check:before{content:'\\\\f101'}.luna-text-viewer-icon-copy:before{content:'\\\\f102'}.luna-text-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;padding:0;unicode-bidi:embed;position:relative;overflow:auto;border:1px solid #ccc}.luna-text-viewer.luna-text-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-text-viewer.luna-text-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-text-viewer .luna-text-viewer-hidden,.luna-text-viewer.luna-text-viewer-hidden{display:none}.luna-text-viewer .luna-text-viewer-invisible,.luna-text-viewer.luna-text-viewer-invisible{visibility:hidden}.luna-text-viewer *{box-sizing:border-box}.luna-text-viewer.luna-text-viewer-theme-dark{color:#d9d9d9;border-color:#3d3d3d;background:#242424}.luna-text-viewer:hover .luna-text-viewer-copy{opacity:1}.luna-text-viewer-table{display:table}.luna-text-viewer-table .luna-text-viewer-line-number,.luna-text-viewer-table .luna-text-viewer-line-text{padding:0}.luna-text-viewer-table-row{display:table-row}.luna-text-viewer-line-number{display:table-cell;padding:0 3px 0 8px!important;text-align:right;vertical-align:top;-webkit-user-select:none;user-select:none;border-right:1px solid #ccc}.luna-text-viewer-line-text{display:table-cell;padding-left:4px!important;-webkit-user-select:text;user-select:text}.luna-text-viewer-copy{background:#fff;opacity:0;position:absolute;right:5px;top:5px;border:1px solid #ccc;border-radius:4px;width:25px;height:25px;text-align:center;line-height:25px;cursor:pointer;transition:opacity .3s,top .3s}.luna-text-viewer-copy .luna-text-viewer-icon-check{color:#188037}.luna-text-viewer-text{padding:4px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;box-sizing:border-box;white-space:pre;display:block}.luna-text-viewer-text.luna-text-viewer-line-numbers{padding:0}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines{white-space:pre-wrap}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines .luna-text-viewer-line-text{word-break:break-all}.luna-text-viewer-theme-dark{color-scheme:dark}.luna-text-viewer-theme-dark .luna-text-viewer-copy,.luna-text-viewer-theme-dark .luna-text-viewer-line-number{border-color:#3d3d3d}.luna-text-viewer-theme-dark .luna-text-viewer-copy .luna-text-viewer-icon-check{color:#81c995}.luna-text-viewer-theme-dark .luna-text-viewer-copy{background-color:#242424}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"@font-face{font-family:eruda-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAA6UAAsAAAAAGvAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAARoAAAHeLjoycE9TLzIAAAIkAAAAPwAAAFZWm1KoY21hcAAAAmQAAAFdAAADwhPu1O9nbHlmAAADxAAAB+wAAA9I7RPQpGhlYWQAAAuwAAAAMQAAADZ26MSyaGhlYQAAC+QAAAAdAAAAJAgEBC9obXR4AAAMBAAAAB0AAACwXAv//GxvY2EAAAwkAAAAOwAAAFpuVmoybWF4cAAADGAAAAAfAAAAIAE9AQ1uYW1lAAAMgAAAASkAAAIWm5e+CnBvc3QAAA2sAAAA5QAAAU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55pNHwEyJNGDSMRHj70nKtD7Zly45G0YA0+h8LRoyJSVBMmLJDyoxd9tjngEOOOOaEU84454JLrrjmhlvuuGfOA4888cwLr7zxzgeffPHNgixKtfeuzawUYTZYv16VITXaS8hy11azwf7FibGi/dS4Te2laWLj6k7lYiVIIv3aK9nWusqng2TLsXR900m2VMXaBvFxbXWnvBjn84mXor8pk54kqKa/NmUvVkyIg3NW/VK2jFvtKzQeR0uGRSgIrFlRYsip2FDT0LGNoh/MCkh9AAAA') format('woff')}[class*=' _icon-'],[class^='_icon-']{display:inline-block;font-family:eruda-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._icon-arrow-left:before{content:'\\\\f101'}._icon-arrow-right:before{content:'\\\\f102'}._icon-caret-down:before{content:'\\\\f103'}._icon-caret-right:before{content:'\\\\f104'}._icon-clear:before{content:'\\\\f105'}._icon-compress:before{content:'\\\\f106'}._icon-copy:before{content:'\\\\f107'}._icon-delete:before{content:'\\\\f108'}._icon-error:before{content:'\\\\f109'}._icon-expand:before{content:'\\\\f10a'}._icon-eye:before{content:'\\\\f10b'}._icon-filter:before{content:'\\\\f10c'}._icon-play:before{content:'\\\\f10d'}._icon-record:before{content:'\\\\f10e'}._icon-refresh:before{content:'\\\\f10f'}._icon-reset:before{content:'\\\\f110'}._icon-search:before{content:'\\\\f111'}._icon-select:before{content:'\\\\f112'}._icon-tool:before{content:'\\\\f113'}._icon-warn:before{content:'\\\\f114'}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || '').concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\n}","var Select = require('./Select');\nvar $offset = require('./$offset');\nvar $show = require('./$show');\nvar $css = require('./$css');\nvar $attr = require('./$attr');\nvar $property = require('./$property');\nvar last = require('./last');\nvar $remove = require('./$remove');\nvar $data = require('./$data');\nvar $event = require('./$event');\nvar $class = require('./$class');\nvar $insert = require('./$insert');\nvar isUndef = require('./isUndef');\nvar isStr = require('./isStr');\nexports = function(selector) {\n return new Select(selector);\n};\nSelect.methods({\n offset: function() {\n return $offset(this);\n },\n hide: function() {\n return this.css('display', 'none');\n },\n show: function() {\n $show(this);\n return this;\n },\n first: function() {\n return exports(this[0]);\n },\n last: function() {\n return exports(last(this));\n },\n get: function(idx) {\n return this[idx];\n },\n eq: function(idx) {\n return exports(this[idx]);\n },\n on: function(event, selector, handler) {\n $event.on(this, event, selector, handler);\n return this;\n },\n off: function(event, selector, handler) {\n $event.off(this, event, selector, handler);\n return this;\n },\n html: function(val) {\n var result = $property.html(this, val);\n if (isUndef(val)) return result;\n return this;\n },\n text: function(val) {\n var result = $property.text(this, val);\n if (isUndef(val)) return result;\n return this;\n },\n val: function(val) {\n var result = $property.val(this, val);\n if (isUndef(val)) return result;\n return this;\n },\n css: function(name, val) {\n var result = $css(this, name, val);\n if (isGetter(name, val)) return result;\n return this;\n },\n attr: function(name, val) {\n var result = $attr(this, name, val);\n if (isGetter(name, val)) return result;\n return this;\n },\n data: function(name, val) {\n var result = $data(this, name, val);\n if (isGetter(name, val)) return result;\n return this;\n },\n rmAttr: function(name) {\n $attr.remove(this, name);\n return this;\n },\n remove: function() {\n $remove(this);\n return this;\n },\n addClass: function(name) {\n $class.add(this, name);\n return this;\n },\n rmClass: function(name) {\n $class.remove(this, name);\n return this;\n },\n toggleClass: function(name) {\n $class.toggle(this, name);\n return this;\n },\n hasClass: function(name) {\n return $class.has(this, name);\n },\n parent: function() {\n return exports(this[0].parentNode);\n },\n append: function(val) {\n $insert.append(this, val);\n return this;\n },\n prepend: function(val) {\n $insert.prepend(this, val);\n return this;\n },\n before: function(val) {\n $insert.before(this, val);\n return this;\n },\n after: function(val) {\n $insert.after(this, val);\n return this;\n }\n});\nvar isGetter = function(name, val) {\n return isUndef(val) && isStr(name);\n};\n\nmodule.exports = exports;\n","var toArr = require('./toArr');\nvar isObj = require('./isObj');\nvar isStr = require('./isStr');\nvar each = require('./each');\nvar isUndef = require('./isUndef');\nvar $safeEls = require('./$safeEls');\nexports = function(els, name, val) {\n els = $safeEls(els);\n var isGetter = isUndef(val) && isStr(name);\n if (isGetter) return getAttr(els[0], name);\n var attrs = name;\n if (!isObj(attrs)) {\n attrs = {};\n attrs[name] = val;\n }\n setAttr(els, attrs);\n};\nexports.remove = function(els, names) {\n els = $safeEls(els);\n names = toArr(names);\n each(els, function(node) {\n each(names, function(name) {\n node.removeAttribute(name);\n });\n });\n};\nfunction getAttr(el, name) {\n return el.getAttribute(name);\n}\nfunction setAttr(els, attrs) {\n each(els, function(el) {\n each(attrs, function(val, name) {\n el.setAttribute(name, val);\n });\n });\n}\n\nmodule.exports = exports;\n","var toArr = require('./toArr');\nvar some = require('./some');\nvar $safeEls = require('./$safeEls');\nvar isStr = require('./isStr');\nvar each = require('./each');\nexports = {\n add: function(els, name) {\n els = $safeEls(els);\n var names = safeName(name);\n each(els, function(el) {\n var classList = [];\n each(names, function(name) {\n if (!exports.has(el, name)) classList.push(name);\n });\n if (classList.length !== 0) {\n el.className += (el.className ? ' ' : '') + classList.join(' ');\n }\n });\n },\n has: function(els, name) {\n els = $safeEls(els);\n var regName = new RegExp('(^|\\\\s)' + name + '(\\\\s|$)');\n return some(els, function(el) {\n return regName.test(el.className);\n });\n },\n toggle: function(els, name) {\n els = $safeEls(els);\n each(els, function(el) {\n if (!exports.has(el, name)) return exports.add(el, name);\n exports.remove(el, name);\n });\n },\n remove: function(els, name) {\n els = $safeEls(els);\n var names = safeName(name);\n each(els, function(el) {\n each(names, function(name) {\n el.classList.remove(name);\n });\n });\n }\n};\nfunction safeName(name) {\n return isStr(name) ? name.split(/\\s+/) : toArr(name);\n}\n\nmodule.exports = exports;\n","var isStr = require('./isStr');\nvar isObj = require('./isObj');\nvar kebabCase = require('./kebabCase');\nvar isUndef = require('./isUndef');\nvar contain = require('./contain');\nvar isNum = require('./isNum');\nvar $safeEls = require('./$safeEls');\nvar prefix = require('./prefix');\nvar each = require('./each');\nexports = function(nodes, name, val) {\n nodes = $safeEls(nodes);\n var isGetter = isUndef(val) && isStr(name);\n if (isGetter) return getCss(nodes[0], name);\n var css = name;\n if (!isObj(css)) {\n css = {};\n css[name] = val;\n }\n setCss(nodes, css);\n};\nfunction getCss(node, name) {\n return (\n node.style[prefix(name)] ||\n getComputedStyle(node, '').getPropertyValue(name)\n );\n}\nfunction setCss(nodes, css) {\n each(nodes, function(node) {\n var cssText = ';';\n each(css, function(val, key) {\n key = prefix.dash(key);\n cssText += key + ':' + addPx(key, val) + ';';\n });\n node.style.cssText += cssText;\n });\n}\nvar cssNumProps = [\n 'column-count',\n 'columns',\n 'font-weight',\n 'line-weight',\n 'opacity',\n 'z-index',\n 'zoom'\n];\nfunction addPx(key, val) {\n var needPx = isNum(val) && !contain(cssNumProps, kebabCase(key));\n return needPx ? val + 'px' : val;\n}\n\nmodule.exports = exports;\n","var $attr = require('./$attr');\nvar isStr = require('./isStr');\nvar isObj = require('./isObj');\nvar each = require('./each');\nvar $safeEls = require('./$safeEls');\nexports = function(nodes, name, val) {\n var dataName = name;\n if (isStr(name)) dataName = 'data-' + name;\n if (isObj(name)) {\n dataName = {};\n each(name, function(val, key) {\n dataName['data-' + key] = val;\n });\n }\n return $attr(nodes, dataName, val);\n};\n\nmodule.exports = exports;\n","var delegate = require('./delegate');\nvar isUndef = require('./isUndef');\nvar $safeEls = require('./$safeEls');\nvar each = require('./each');\nexports = {\n on: eventFactory('add'),\n off: eventFactory('remove')\n};\nfunction eventFactory(type) {\n return function(nodes, event, selector, handler) {\n nodes = $safeEls(nodes);\n if (isUndef(handler)) {\n handler = selector;\n selector = undefined;\n }\n each(nodes, function(node) {\n delegate[type](node, event, selector, handler);\n });\n };\n}\n\nmodule.exports = exports;\n","var each = require('./each');\nvar $safeEls = require('./$safeEls');\nvar isStr = require('./isStr');\nexports = {\n before: insertFactory('beforebegin'),\n after: insertFactory('afterend'),\n append: insertFactory('beforeend'),\n prepend: insertFactory('afterbegin')\n};\nfunction insertFactory(type) {\n return function(nodes, val) {\n nodes = $safeEls(nodes);\n each(nodes, function(node) {\n if (isStr(val)) {\n node.insertAdjacentHTML(type, val);\n } else {\n var parentNode = node.parentNode;\n switch (type) {\n case 'beforebegin':\n if (parentNode) {\n parentNode.insertBefore(val, node);\n }\n break;\n case 'afterend':\n if (parentNode) {\n parentNode.insertBefore(val, node.nextSibling);\n }\n break;\n case 'beforeend':\n node.appendChild(val);\n break;\n case 'afterbegin':\n node.prepend(val);\n break;\n }\n }\n });\n };\n}\n\nmodule.exports = exports;\n","var $safeEls = require('./$safeEls');\nexports = function(els) {\n els = $safeEls(els);\n var el = els[0];\n var clientRect = el.getBoundingClientRect();\n return {\n left: clientRect.left + window.pageXOffset,\n top: clientRect.top + window.pageYOffset,\n width: Math.round(clientRect.width),\n height: Math.round(clientRect.height)\n };\n};\n\nmodule.exports = exports;\n","var isUndef = require('./isUndef');\nvar each = require('./each');\nvar $safeEls = require('./$safeEls');\nexports = {\n html: propFactory('innerHTML'),\n text: propFactory('textContent'),\n val: propFactory('value')\n};\nfunction propFactory(name) {\n return function(nodes, val) {\n nodes = $safeEls(nodes);\n var node = nodes[0];\n if (isUndef(val)) {\n return node ? node[name] : '';\n }\n if (!node) return;\n each(nodes, function(node) {\n node[name] = val;\n });\n };\n}\n\nmodule.exports = exports;\n","var each = require('./each');\nvar $safeEls = require('./$safeEls');\nexports = function(els) {\n els = $safeEls(els);\n each(els, function(el) {\n var parent = el.parentNode;\n if (parent) parent.removeChild(el);\n });\n};\n\nmodule.exports = exports;\n","var isStr = require('./isStr');\nvar toArr = require('./toArr');\nvar Select = require('./Select');\nexports = function(val) {\n return toArr(isStr(val) ? new Select(val) : val);\n};\n\nmodule.exports = exports;\n","var each = require('./each');\nvar $safeEls = require('./$safeEls');\nexports = function(els) {\n els = $safeEls(els);\n each(els, function(el) {\n if (isHidden(el)) {\n el.style.display = getDefDisplay(el.nodeName);\n }\n });\n};\nfunction isHidden(el) {\n return getComputedStyle(el, '').getPropertyValue('display') == 'none';\n}\nvar elDisplay = {};\nfunction getDefDisplay(elName) {\n var el, display;\n if (!elDisplay[elName]) {\n el = document.createElement(elName);\n document.documentElement.appendChild(el);\n display = getComputedStyle(el, '').getPropertyValue('display');\n el.parentNode.removeChild(el);\n display == 'none' && (display = 'block');\n elDisplay[elName] = display;\n }\n return elDisplay[elName];\n}\n\nmodule.exports = exports;\n","var extend = require('./extend');\nvar toArr = require('./toArr');\nvar inherits = require('./inherits');\nvar safeGet = require('./safeGet');\nvar isMiniProgram = require('./isMiniProgram');\nexports = function(methods, statics) {\n return Base.extend(methods, statics);\n};\nfunction makeClass(parent, methods, statics) {\n statics = statics || {};\n var className =\n methods.className || safeGet(methods, 'initialize.name') || '';\n delete methods.className;\n var ctor = function() {\n var args = toArr(arguments);\n return this.initialize\n ? this.initialize.apply(this, args) || this\n : this;\n };\n if (!isMiniProgram) {\n try {\n ctor = new Function(\n 'toArr',\n 'return function ' +\n className +\n '()' +\n '{' +\n 'var args = toArr(arguments);' +\n 'return this.initialize ? this.initialize.apply(this, args) || this : this;' +\n '};'\n )(toArr);\n } catch (e) {}\n }\n inherits(ctor, parent);\n ctor.prototype.constructor = ctor;\n ctor.extend = function(methods, statics) {\n return makeClass(ctor, methods, statics);\n };\n ctor.inherits = function(Class) {\n inherits(ctor, Class);\n };\n ctor.methods = function(methods) {\n extend(ctor.prototype, methods);\n return ctor;\n };\n ctor.statics = function(statics) {\n extend(ctor, statics);\n return ctor;\n };\n ctor.methods(methods).statics(statics);\n return ctor;\n}\nvar Base = (exports.Base = makeClass(Object, {\n className: 'Base',\n callSuper: function(parent, name, args) {\n var superMethod = parent.prototype[name];\n return superMethod.apply(this, args);\n },\n toString: function() {\n return this.constructor.name;\n }\n}));\n\nmodule.exports = exports;\n","var Class = require('./Class');\nvar isStr = require('./isStr');\nvar clamp = require('./clamp');\nvar rgbToHsl = require('./rgbToHsl');\nvar hslToRgb = require('./hslToRgb');\nvar hex = require('./hex');\nexports = Class(\n {\n initialize: function Color(color) {\n if (isStr(color)) color = exports.parse(color);\n this.model = color.model;\n this.val = color.val;\n },\n toRgb: function() {\n var val = this.val;\n if (this.model === 'hsl') val = hslToRgb(val);\n var prefix = 'rgba';\n if (val[3] === 1) {\n prefix = 'rgb';\n val = val.slice(0, 3);\n }\n return prefix + '(' + val.join(', ') + ')';\n },\n toHex: function() {\n var val = this.val;\n if (this.model === 'hsl') val = hslToRgb(val);\n var ret = hex.encode(val.slice(0, 3));\n if (ret[0] === ret[1] && ret[2] === ret[3] && ret[4] === ret[5]) {\n ret = ret[0] + ret[2] + ret[5];\n }\n return '#' + ret;\n },\n toHsl: function() {\n var val = this.val;\n if (this.model === 'rgb') val = rgbToHsl(val);\n var prefix = 'hsla';\n if (val[3] === 1) {\n prefix = 'hsl';\n val = val.slice(0, 3);\n }\n val[1] = val[1] + '%';\n val[2] = val[2] + '%';\n return prefix + '(' + val.join(', ') + ')';\n }\n },\n {\n parse: function(colorStr) {\n var i, match;\n var val = [0, 0, 0, 1],\n model = 'rgb';\n\n if ((match = colorStr.match(regHexAbbr))) {\n match = match[1];\n for (i = 0; i < 3; i++) {\n val[i] = parseInt(match[i] + match[i], 16);\n }\n } else if ((match = colorStr.match(regHex))) {\n match = match[1];\n for (i = 0; i < 3; i++) {\n var i2 = i * 2;\n val[i] = parseInt(match.slice(i2, i2 + 2), 16);\n }\n } else if ((match = colorStr.match(regRgba))) {\n for (i = 0; i < 3; i++) {\n val[i] = parseInt(match[i + 1], 0);\n }\n if (match[4]) val[3] = parseFloat(match[4]);\n } else if ((match = colorStr.match(regRgbaPer))) {\n for (i = 0; i < 3; i++) {\n val[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n }\n if (match[4]) val[3] = parseFloat(match[4]);\n } else if ((match = colorStr.match(regHsla))) {\n model = 'hsl';\n val = [\n ((parseFloat(match[1]) % 360) + 360) % 360,\n clamp(parseFloat(match[2]), 0, 100),\n clamp(parseFloat(match[3]), 0, 100),\n clamp(parseFloat(match[4]), 0, 1)\n ];\n }\n return {\n val: val,\n model: model\n };\n }\n }\n);\nvar regHexAbbr = /^#([a-fA-F0-9]{3})$/;\nvar regHex = /^#([a-fA-F0-9]{6})$/;\nvar regRgba = /^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d.]+)\\s*)?\\)$/;\nvar regRgbaPer = /^rgba?\\(\\s*([+-]?[\\d.]+)%\\s*,\\s*([+-]?[\\d.]+)%\\s*,\\s*([+-]?[\\d.]+)%\\s*(?:,\\s*([+-]?[\\d.]+)\\s*)?\\)$/;\nvar regHsla = /^hsla?\\(\\s*([+-]?\\d*[.]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d.]+)%\\s*,\\s*([+-]?[\\d.]+)%\\s*(?:,\\s*([+-]?[\\d.]+)\\s*)?\\)$/;\n\nmodule.exports = exports;\n","var Class = require('./Class');\nvar has = require('./has');\nvar each = require('./each');\nvar slice = require('./slice');\nvar once = require('./once');\nvar clone = require('./clone');\nexports = Class(\n {\n initialize: function Emitter() {\n this._events = this._events || {};\n },\n on: function(event, listener) {\n this._events[event] = this._events[event] || [];\n this._events[event].push(listener);\n return this;\n },\n off: function(event, listener) {\n var events = this._events;\n if (!has(events, event)) return;\n var idx = events[event].indexOf(listener);\n if (idx > -1) {\n events[event].splice(idx, 1);\n }\n return this;\n },\n once: function(event, listener) {\n this.on(event, once(listener));\n return this;\n },\n emit: function(event) {\n var _this = this;\n if (!has(this._events, event)) return;\n var args = slice(arguments, 1);\n var events = clone(this._events[event]);\n each(\n events,\n function(val) {\n return val.apply(_this, args);\n },\n this\n );\n return this;\n },\n removeAllListeners: function(event) {\n if (!event) {\n this._events = {};\n } else {\n delete this._events[event];\n }\n return this;\n }\n },\n {\n mixin: function(obj) {\n each(['on', 'off', 'once', 'emit', 'removeAllListeners'], function(\n val\n ) {\n obj[val] = exports.prototype[val];\n });\n obj._events = obj._events || {};\n }\n }\n);\n\nmodule.exports = exports;\n","var Class = require('./Class');\nvar freeze = require('./freeze');\nvar isArr = require('./isArr');\nvar each = require('./each');\nvar keys = require('./keys');\nexports = Class({\n initialize: function Enum(map) {\n if (isArr(map)) {\n this.size = map.length;\n each(\n map,\n function(member, val) {\n this[member] = val;\n },\n this\n );\n } else {\n this.size = keys(map).length;\n each(\n map,\n function(val, member) {\n this[member] = val;\n },\n this\n );\n }\n freeze(this);\n }\n});\n\nmodule.exports = exports;\n","var Store = require('./Store');\nvar safeStorage = require('./safeStorage');\nvar isEmpty = require('./isEmpty');\nvar stringify = require('./stringify');\nvar defaults = require('./defaults');\nvar isObj = require('./isObj');\nvar localStorage = safeStorage('local');\nexports = Store.extend({\n initialize: function LocalStore(name, data) {\n this._name = name;\n data = data || {};\n var localData = localStorage.getItem(name);\n try {\n localData = JSON.parse(localData);\n } catch (e) {\n localData = {};\n }\n if (!isObj(localData)) localData = {};\n data = defaults(localData, data);\n this.callSuper(Store, 'initialize', [data]);\n },\n save: function(data) {\n if (isEmpty(data)) return localStorage.removeItem(this._name);\n localStorage.setItem(this._name, stringify(data));\n }\n});\n\nmodule.exports = exports;\n","var Emitter = require('./Emitter');\nvar Enum = require('./Enum');\nvar toArr = require('./toArr');\nvar isUndef = require('./isUndef');\nvar clone = require('./clone');\nvar isStr = require('./isStr');\nvar isNum = require('./isNum');\nexports = Emitter.extend(\n {\n initialize: function Logger(name, level) {\n this.name = name;\n this.setLevel(isUndef(level) ? exports.level.DEBUG : level);\n this.callSuper(Emitter, 'initialize', arguments);\n },\n setLevel: function(level) {\n if (isStr(level)) {\n level = exports.level[level.toUpperCase()];\n if (level) this._level = level;\n return this;\n }\n if (isNum(level)) this._level = level;\n return this;\n },\n getLevel: function() {\n return this._level;\n },\n formatter: function(type, argList) {\n return argList;\n },\n trace: function() {\n return this._log('trace', arguments);\n },\n debug: function() {\n return this._log('debug', arguments);\n },\n info: function() {\n return this._log('info', arguments);\n },\n warn: function() {\n return this._log('warn', arguments);\n },\n error: function() {\n return this._log('error', arguments);\n },\n _log: function(type, argList) {\n argList = toArr(argList);\n if (argList.length === 0) return this;\n this.emit('all', type, clone(argList));\n if (exports.level[type.toUpperCase()] < this._level) return this;\n this.emit(type, clone(argList));\n\n var consoleMethod = type === 'debug' ? console.log : console[type];\n consoleMethod.apply(console, this.formatter(type, argList));\n return this;\n }\n },\n {\n level: new Enum({\n TRACE: 0,\n DEBUG: 1,\n INFO: 2,\n WARN: 3,\n ERROR: 4,\n SILENT: 5\n })\n }\n);\n\nmodule.exports = exports;\n","var Emitter = require('./Emitter');\nexports = Emitter.extend({\n className: 'MediaQuery',\n initialize: function(query) {\n var _this = this;\n this.callSuper(Emitter, 'initialize');\n this._listener = function() {\n _this.emit(_this.isMatch() ? 'match' : 'unmatch');\n };\n this.setQuery(query);\n },\n setQuery: function(query) {\n if (this._mql) {\n this._mql.removeListener(this._listener);\n }\n this._mql = window.matchMedia(query);\n this._mql.addListener(this._listener);\n },\n isMatch: function() {\n return this._mql.matches;\n }\n});\n\nmodule.exports = exports;\n","var Class = require('./Class');\nexports =\n window.MutationObserver ||\n window.WebKitMutationObserver ||\n window.MozMutationObserver;\nif (!exports) {\n exports = Class({\n initialize: function MutationObserver() {},\n observe: function() {},\n disconnect: function() {},\n takeRecords: function() {}\n });\n}\n\nmodule.exports = exports;\n","var SingleEmitter = require('./SingleEmitter');\nvar h = require('./h');\nvar $event = require('./$event');\nvar $css = require('./$css');\nvar contain = require('./contain');\nvar extend = require('./extend');\nvar root = require('./root');\nif (root.ResizeObserver && !false) {\n exports = SingleEmitter.extend({\n initialize: function ResizeSensor(el) {\n var _this = this;\n if (el._resizeSensor) {\n return el._resizeSensor;\n }\n this.callSuper(SingleEmitter, 'initialize');\n var resizeObserver = new root.ResizeObserver(function() {\n return _this.emit();\n });\n resizeObserver.observe(el);\n el._resizeSensor = this;\n this._resizeObserver = resizeObserver;\n this._el = el;\n },\n destroy: function() {\n var el = this._el;\n if (!el._resizeSensor) {\n return;\n }\n this.rmAllListeners();\n delete el._resizeSensor;\n this._resizeObserver.unobserve(el);\n }\n });\n} else {\n exports = SingleEmitter.extend({\n initialize: function ResizeSensor(el) {\n if (el._resizeSensor) {\n return el._resizeSensor;\n }\n this.callSuper(SingleEmitter, 'initialize');\n this._el = el;\n el._resizeSensor = this;\n if (\n !contain(\n ['absolute', 'relative', 'fixed', 'sticky'],\n $css(el, 'position')\n )\n ) {\n $css(el, 'position', 'relative');\n }\n this._appendResizeSensor();\n this._bindEvent();\n },\n destroy: function() {\n var el = this._el;\n if (!el._resizeSensor) {\n return;\n }\n this.rmAllListeners();\n delete el._resizeSensor;\n el.removeChild(this._resizeSensorEl);\n },\n _appendResizeSensor: function() {\n var el = this._el;\n var style = {\n pointerEvents: 'none',\n position: 'absolute',\n left: '0px',\n top: '0px',\n right: '0px',\n bottom: '0px',\n overflow: 'hidden',\n zIndex: '-1',\n visibility: 'hidden',\n maxWidth: '100%'\n };\n var styleChild = {\n position: 'absolute',\n left: '0px',\n top: '0px',\n transition: '0s'\n };\n var expandChildEl = h('div', {\n style: styleChild\n });\n var expandEl = h(\n 'div.resize-sensor-expand',\n {\n style: style\n },\n expandChildEl\n );\n var shrinkEl = h(\n 'div.resize-sensor-shrink',\n {\n style: style\n },\n h('div', {\n style: extend(\n {\n width: '200%',\n height: '200%'\n },\n styleChild\n )\n })\n );\n var resizeSensorEl = h(\n 'div.resize-sensor',\n {\n dir: 'ltr',\n style: style\n },\n expandEl,\n shrinkEl\n );\n this._expandEl = expandEl;\n this._expandChildEl = expandChildEl;\n this._shrinkEl = shrinkEl;\n this._resizeSensorEl = resizeSensorEl;\n el.appendChild(resizeSensorEl);\n this._resetExpandShrink();\n },\n _bindEvent: function() {\n var _this2 = this;\n $event.on(this._expandEl, 'scroll', function() {\n return _this2._onScroll();\n });\n $event.on(this._shrinkEl, 'scroll', function() {\n return _this2._onScroll();\n });\n },\n _onScroll: function() {\n this.emit();\n this._resetExpandShrink();\n },\n _resetExpandShrink: function() {\n var el = this._el;\n var width = el.offsetWidth;\n var height = el.offsetHeight;\n $css(this._expandChildEl, {\n width: width + 10,\n height: height + 10\n });\n extend(this._expandEl, {\n scrollLeft: width + 10,\n scrollTop: height + 10\n });\n extend(this._shrinkEl, {\n scrollLeft: width + 10,\n scrollTop: height + 10\n });\n }\n });\n}\n\nmodule.exports = exports;\n","var Class = require('./Class');\nvar isStr = require('./isStr');\nvar each = require('./each');\nvar mergeArr = require('./mergeArr');\nexports = Class({\n className: 'Select',\n initialize: function(selector) {\n this.length = 0;\n if (!selector) return this;\n if (isStr(selector)) return rootSelect.find(selector);\n if (selector.nodeType) {\n this[0] = selector;\n this.length = 1;\n }\n },\n find: function(selector) {\n var ret = new exports();\n this.each(function() {\n mergeArr(ret, this.querySelectorAll(selector));\n });\n return ret;\n },\n each: function(fn) {\n each(this, function(element, idx) {\n fn.call(element, idx, element);\n });\n return this;\n }\n});\nvar rootSelect = new exports(document);\n\nmodule.exports = exports;\n","var Class = require('./Class');\nvar clone = require('./clone');\nvar each = require('./each');\nvar toArr = require('./toArr');\nexports = Class(\n {\n initialize: function SingleEmitter() {\n this._listeners = [];\n },\n addListener: function(listener) {\n this._listeners.push(listener);\n },\n rmListener: function(listener) {\n var idx = this._listeners.indexOf(listener);\n if (idx > -1) {\n this._listeners.splice(idx, 1);\n }\n },\n rmAllListeners: function() {\n this._listeners = [];\n },\n emit: function() {\n var _this = this;\n var args = toArr(arguments);\n var listeners = clone(this._listeners);\n each(\n listeners,\n function(listener) {\n return listener.apply(_this, args);\n },\n this\n );\n }\n },\n {\n mixin: function(obj) {\n each(\n ['addListener', 'rmListener', 'emit', 'rmAllListeners'],\n function(val) {\n obj[val] = exports.prototype[val];\n }\n );\n obj._listeners = obj._listeners || [];\n }\n }\n);\n\nmodule.exports = exports;\n","var Class = require('./Class');\nvar reverse = require('./reverse');\nexports = Class({\n initialize: function Stack() {\n this.clear();\n },\n clear: function() {\n this._items = [];\n this.size = 0;\n },\n push: function(item) {\n this._items.push(item);\n return ++this.size;\n },\n pop: function() {\n if (!this.size) return;\n this.size--;\n return this._items.pop();\n },\n peek: function() {\n return this._items[this.size - 1];\n },\n forEach: function(iterator, ctx) {\n ctx = arguments.length > 1 ? ctx : this;\n var items = this._items;\n for (var i = this.size - 1, j = 0; i >= 0; i--, j++) {\n iterator.call(ctx, items[i], j, this);\n }\n },\n toArr: function() {\n return reverse(this._items);\n }\n});\n\nmodule.exports = exports;\n","var Emitter = require('./Emitter');\nvar isStr = require('./isStr');\nvar isObj = require('./isObj');\nvar each = require('./each');\nvar toArr = require('./toArr');\nexports = Emitter.extend({\n initialize: function Store(data) {\n this.callSuper(Emitter, 'initialize', arguments);\n this._data = data || {};\n this.save(this._data);\n },\n set: function(key, val) {\n var data;\n if (isStr(key)) {\n data = {};\n data[key] = val;\n } else if (isObj(key)) {\n data = key;\n }\n var self = this;\n each(data, function(val, key) {\n var oldVal = self._data[key];\n self._data[key] = val;\n self.emit('change', key, val, oldVal);\n });\n this.save(this._data);\n },\n get: function(key) {\n var data = this._data;\n if (isStr(key)) return data[key];\n var ret = {};\n each(key, function(val) {\n ret[val] = data[val];\n });\n return ret;\n },\n remove: function(key) {\n key = toArr(key);\n var data = this._data;\n each(key, function(val) {\n delete data[val];\n });\n this.save(data);\n },\n clear: function() {\n this._data = {};\n this.save(this._data);\n },\n each: function(fn) {\n each(this._data, fn);\n },\n\n save: function(data) {\n this._data = data;\n }\n});\n\nmodule.exports = exports;\n","var Class = require('./Class');\nvar extend = require('./extend');\nvar trim = require('./trim');\nvar query = require('./query');\nvar isEmpty = require('./isEmpty');\nvar each = require('./each');\nvar isArr = require('./isArr');\nvar toArr = require('./toArr');\nvar isBrowser = require('./isBrowser');\nvar isObj = require('./isObj');\nvar toStr = require('./toStr');\nexports = Class(\n {\n className: 'Url',\n initialize: function(url) {\n if (!url && isBrowser) url = window.location.href;\n extend(this, exports.parse(url || ''));\n },\n setQuery: function(name, val) {\n var query = this.query;\n if (isObj(name)) {\n each(name, function(val, key) {\n query[key] = toStr(val);\n });\n } else {\n query[name] = toStr(val);\n }\n return this;\n },\n rmQuery: function(name) {\n var query = this.query;\n if (!isArr(name)) name = toArr(name);\n each(name, function(key) {\n delete query[key];\n });\n return this;\n },\n toString: function() {\n return exports.stringify(this);\n }\n },\n {\n parse: function(url) {\n var ret = {\n protocol: '',\n auth: '',\n hostname: '',\n hash: '',\n query: {},\n port: '',\n pathname: '',\n slashes: false\n };\n var rest = trim(url);\n var slashes = false;\n var proto = rest.match(regProto);\n if (proto) {\n proto = proto[0];\n ret.protocol = proto.toLowerCase();\n rest = rest.substr(proto.length);\n }\n if (proto) {\n slashes = rest.substr(0, 2) === '//';\n if (slashes) {\n rest = rest.slice(2);\n ret.slashes = true;\n }\n }\n if (slashes) {\n var host = rest;\n var hostEnd = -1;\n for (var i = 0, len = hostEndingChars.length; i < len; i++) {\n var pos = rest.indexOf(hostEndingChars[i]);\n if (pos !== -1 && (hostEnd === -1 || pos < hostEnd))\n hostEnd = pos;\n }\n if (hostEnd > -1) {\n host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd);\n }\n var atSign = host.lastIndexOf('@');\n if (atSign !== -1) {\n ret.auth = decodeURIComponent(host.slice(0, atSign));\n host = host.slice(atSign + 1);\n }\n ret.hostname = host;\n var port = host.match(regPort);\n if (port) {\n port = port[0];\n if (port !== ':') ret.port = port.substr(1);\n ret.hostname = host.substr(0, host.length - port.length);\n }\n }\n var hash = rest.indexOf('#');\n if (hash !== -1) {\n ret.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n var queryMark = rest.indexOf('?');\n if (queryMark !== -1) {\n ret.query = query.parse(rest.substr(queryMark + 1));\n rest = rest.slice(0, queryMark);\n }\n ret.pathname = rest || '/';\n return ret;\n },\n stringify: function(obj) {\n var ret =\n obj.protocol +\n (obj.slashes ? '//' : '') +\n (obj.auth ? encodeURIComponent(obj.auth) + '@' : '') +\n obj.hostname +\n (obj.port ? ':' + obj.port : '') +\n obj.pathname;\n if (!isEmpty(obj.query)) ret += '?' + query.stringify(obj.query);\n if (obj.hash) ret += obj.hash;\n return ret;\n }\n }\n);\nvar regProto = /^([a-z0-9.+-]+:)/i;\nvar regPort = /:[0-9]*$/;\nvar hostEndingChars = ['/', '?', '#'];\n\nmodule.exports = exports;\n","var isFn = require('./isFn');\nvar noop = require('./noop');\nvar defaults = require('./defaults');\nvar isObj = require('./isObj');\nvar query = require('./query');\nexports = function(options) {\n defaults(options, exports.setting);\n var type = options.type;\n var url = options.url;\n var data = options.data;\n var dataType = options.dataType;\n var success = options.success;\n var error = options.error;\n var timeout = options.timeout;\n var complete = options.complete;\n var xhr = options.xhr();\n var abortTimeout;\n xhr.onreadystatechange = function() {\n if (xhr.readyState !== 4) return;\n clearTimeout(abortTimeout);\n var result;\n var status = xhr.status;\n if ((status >= 200 && status < 300) || status === 304) {\n result = xhr.responseText;\n if (dataType === 'xml') result = xhr.responseXML;\n try {\n if (dataType === 'json') result = JSON.parse(result);\n } catch (e) {}\n success(result, xhr);\n } else {\n error(xhr);\n }\n complete(xhr);\n };\n if (type === 'GET') {\n data = query.stringify(data);\n if (data) url += url.indexOf('?') > -1 ? '&' + data : '?' + data;\n } else if (options.contentType === 'application/x-www-form-urlencoded') {\n if (isObj(data)) data = query.stringify(data);\n } else if (options.contentType === 'application/json') {\n if (isObj(data)) data = JSON.stringify(data);\n }\n xhr.open(type, url, true);\n xhr.setRequestHeader('Content-Type', options.contentType);\n if (timeout > 0) {\n abortTimeout = setTimeout(function() {\n xhr.onreadystatechange = noop;\n xhr.abort();\n error(xhr, 'timeout');\n complete(xhr);\n }, timeout);\n }\n xhr.send(type === 'GET' ? null : data);\n return xhr;\n};\nexports.setting = {\n type: 'GET',\n success: noop,\n error: noop,\n complete: noop,\n dataType: 'json',\n contentType: 'application/x-www-form-urlencoded',\n data: {},\n xhr: function() {\n return new XMLHttpRequest();\n },\n timeout: 0\n};\nexports.get = function() {\n return exports(parseArgs.apply(null, arguments));\n};\nexports.post = function() {\n var options = parseArgs.apply(null, arguments);\n options.type = 'POST';\n return exports(options);\n};\nfunction parseArgs(url, data, success, dataType) {\n if (isFn(data)) {\n dataType = success;\n success = data;\n data = {};\n }\n return {\n url: url,\n data: data,\n success: success,\n dataType: dataType\n };\n}\n\nmodule.exports = exports;\n","var keys = require('./keys');\nvar getProto = require('./getProto');\nvar unique = require('./unique');\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nexports = function(obj) {\n var _ref =\n arguments.length > 1 && arguments[1] !== undefined\n ? arguments[1]\n : {},\n _ref$prototype = _ref.prototype,\n prototype = _ref$prototype === void 0 ? true : _ref$prototype,\n _ref$unenumerable = _ref.unenumerable,\n unenumerable = _ref$unenumerable === void 0 ? false : _ref$unenumerable,\n _ref$symbol = _ref.symbol,\n symbol = _ref$symbol === void 0 ? false : _ref$symbol;\n var ret = [];\n if ((unenumerable || symbol) && getOwnPropertyNames) {\n var getKeys = keys;\n if (unenumerable && getOwnPropertyNames) getKeys = getOwnPropertyNames;\n do {\n ret = ret.concat(getKeys(obj));\n if (symbol && getOwnPropertySymbols) {\n ret = ret.concat(getOwnPropertySymbols(obj));\n }\n } while (\n prototype &&\n (obj = getProto(obj)) &&\n obj !== Object.prototype\n );\n ret = unique(ret);\n } else {\n if (prototype) {\n for (var key in obj) ret.push(key);\n } else {\n ret = keys(obj);\n }\n }\n return ret;\n};\n\nmodule.exports = exports;\n","var each = require('./each');\nvar isUndef = require('./isUndef');\nvar isFn = require('./isFn');\nexports = function(arr, val) {\n if (isUndef(val)) val = true;\n var _isFn = isFn(val);\n var ret = {};\n each(arr, function(key) {\n ret[key] = _isFn ? val(key) : val;\n });\n return ret;\n};\n\nmodule.exports = exports;\n","exports = {\n encode: function(bytes) {\n var ret = [];\n var len = bytes.length;\n var remain = len % 3;\n len = len - remain;\n for (var i = 0; i < len; i += 3) {\n ret.push(\n numToBase64(\n (bytes[i] << 16) + (bytes[i + 1] << 8) + bytes[i + 2]\n )\n );\n }\n len = bytes.length;\n var tmp;\n if (remain === 1) {\n tmp = bytes[len - 1];\n ret.push(code[tmp >> 2]);\n ret.push(code[(tmp << 4) & 0x3f]);\n ret.push('==');\n } else if (remain === 2) {\n tmp = (bytes[len - 2] << 8) + bytes[len - 1];\n ret.push(code[tmp >> 10]);\n ret.push(code[(tmp >> 4) & 0x3f]);\n ret.push(code[(tmp << 2) & 0x3f]);\n ret.push('=');\n }\n return ret.join('');\n },\n decode: function(str) {\n var len = str.length,\n remain = 0;\n if (str[len - 2] === '=') remain = 2;\n else if (str[len - 1] === '=') remain = 1;\n var ret = new Array((len * 3) / 4 - remain);\n len = remain > 0 ? len - 4 : len;\n var i, j;\n for (i = 0, j = 0; i < len; i += 4) {\n var num = base64ToNum(str[i], str[i + 1], str[i + 2], str[i + 3]);\n ret[j++] = (num >> 16) & 0xff;\n ret[j++] = (num >> 8) & 0xff;\n ret[j++] = num & 0xff;\n }\n var tmp;\n if (remain === 2) {\n tmp =\n (codeMap[str.charCodeAt(i)] << 2) |\n (codeMap[str.charCodeAt(i + 1)] >> 4);\n ret[j++] = tmp & 0xff;\n } else if (remain === 1) {\n tmp =\n (codeMap[str.charCodeAt(i)] << 10) |\n (codeMap[str.charCodeAt(i + 1)] << 4) |\n (codeMap[str.charCodeAt(i + 2)] >> 2);\n ret[j++] = (tmp >> 8) & 0xff;\n ret[j++] = tmp & 0xff;\n }\n return ret;\n }\n};\nvar codeMap = [];\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nfor (var i = 0, len = code.length; i < len; i++) {\n codeMap[code.charCodeAt(i)] = i;\n}\nfunction numToBase64(num) {\n return (\n code[(num >> 18) & 0x3f] +\n code[(num >> 12) & 0x3f] +\n code[(num >> 6) & 0x3f] +\n code[num & 0x3f]\n );\n}\nfunction base64ToNum(str1, str2, str3, str4) {\n return (\n (codeMap[str1.charCodeAt(0)] << 18) |\n (codeMap[str2.charCodeAt(0)] << 12) |\n (codeMap[str3.charCodeAt(0)] << 6) |\n codeMap[str4.charCodeAt(0)]\n );\n}\n\nmodule.exports = exports;\n","exports = function(n, fn) {\n var memo;\n return function() {\n if (--n > 0) memo = fn.apply(this, arguments);\n if (n <= 1) fn = null;\n return memo;\n };\n};\n\nmodule.exports = exports;\n","var splitCase = require('./splitCase');\nexports = function(str) {\n var arr = splitCase(str);\n var ret = arr[0];\n arr.shift();\n arr.forEach(capitalize, arr);\n ret += arr.join('');\n return ret;\n};\nfunction capitalize(val, idx) {\n this[idx] = val.replace(/\\w/, function(match) {\n return match.toUpperCase();\n });\n}\n\nmodule.exports = exports;\n","var has = require('./has');\nvar isArr = require('./isArr');\nexports = function(str, obj) {\n if (isArr(str)) return str;\n if (obj && has(obj, str)) return [str];\n var ret = [];\n str.replace(regPropName, function(match, number, quote, str) {\n ret.push(quote ? str.replace(regEscapeChar, '$1') : number || match);\n });\n return ret;\n};\n\nvar regPropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\nvar regEscapeChar = /\\\\(\\\\)?/g;\n\nmodule.exports = exports;\n","exports = function(arr, size) {\n var ret = [];\n size = size || 1;\n for (var i = 0, len = Math.ceil(arr.length / size); i < len; i++) {\n var start = i * size;\n var end = start + size;\n ret.push(arr.slice(start, end));\n }\n return ret;\n};\n\nmodule.exports = exports;\n","var isUndef = require('./isUndef');\nexports = function(n, lower, upper) {\n if (isUndef(upper)) {\n upper = lower;\n lower = undefined;\n }\n if (!isUndef(lower) && n < lower) return lower;\n if (n > upper) return upper;\n return n;\n};\n\nmodule.exports = exports;\n","var isObj = require('./isObj');\nvar isArr = require('./isArr');\nvar extend = require('./extend');\nexports = function(obj) {\n if (!isObj(obj)) return obj;\n return isArr(obj) ? obj.slice() : extend({}, obj);\n};\n\nmodule.exports = exports;\n","var isObj = require('./isObj');\nvar isFn = require('./isFn');\nvar isArr = require('./isArr');\nvar mapObj = require('./mapObj');\nexports = function(obj) {\n if (isArr(obj)) {\n return obj.map(function(val) {\n return exports(val);\n });\n }\n if (isObj(obj) && !isFn(obj)) {\n return mapObj(obj, function(val) {\n return exports(val);\n });\n }\n return obj;\n};\n\nmodule.exports = exports;\n","var toArr = require('./toArr');\nexports = function() {\n var args = toArr(arguments);\n var ret = [];\n for (var i = 0, len = args.length; i < len; i++) {\n ret = ret.concat(toArr(args[i]));\n }\n return ret;\n};\n\nmodule.exports = exports;\n","var idxOf = require('./idxOf');\nvar isStr = require('./isStr');\nvar isArrLike = require('./isArrLike');\nvar values = require('./values');\nexports = function(arr, val) {\n if (isStr(arr)) return arr.indexOf(val) > -1;\n if (!isArrLike(arr)) arr = values(arr);\n return idxOf(arr, val) >= 0;\n};\n\nmodule.exports = exports;\n","var isStr = require('./isStr');\nvar base64 = require('./base64');\nvar isArrBuffer = require('./isArrBuffer');\nvar isArr = require('./isArr');\nvar isBuffer = require('./isBuffer');\nvar type = require('./type');\nvar lowerCase = require('./lowerCase');\nexports = function(bin, t) {\n var result;\n t = lowerCase(t);\n if (isStr(bin)) {\n result = new Uint8Array(base64.decode(bin));\n } else if (isArrBuffer(bin)) {\n bin = bin.slice(0);\n result = new Uint8Array(bin);\n } else if (isArr(bin)) {\n result = new Uint8Array(bin);\n } else if (type(bin) === 'uint8array') {\n result = bin.slice(0);\n } else if (isBuffer(bin)) {\n result = new Uint8Array(bin.length);\n for (var i = 0; i < bin.length; i++) {\n result[i] = bin[i];\n }\n }\n if (result) {\n switch (t) {\n case 'base64':\n result = base64.encode(result);\n break;\n case 'arraybuffer':\n result = result.buffer;\n break;\n case 'array':\n result = [].slice.call(result);\n break;\n case 'buffer':\n result = Buffer.from(result);\n break;\n case 'blob':\n result = new Blob([result.buffer]);\n break;\n }\n }\n return result;\n};\nexports.blobToArrBuffer = function(blob) {\n return new Promise(function(resolve, reject) {\n var fileReader = new FileReader();\n fileReader.onload = function(e) {\n resolve(e.target.result);\n };\n fileReader.onerror = function(err) {\n reject(err);\n };\n fileReader.readAsArrayBuffer(blob);\n });\n};\n\nmodule.exports = exports;\n","var defaults = require('./defaults');\nvar isNum = require('./isNum');\nvar isUndef = require('./isUndef');\nvar decodeUriComponent = require('./decodeUriComponent');\nvar defOpts = {\n path: '/'\n};\nfunction setCookie(key, val, options) {\n if (!isUndef(val)) {\n options = options || {};\n options = defaults(options, defOpts);\n if (isNum(options.expires)) {\n var expires = new Date();\n expires.setMilliseconds(\n expires.getMilliseconds() + options.expires * 864e5\n );\n options.expires = expires;\n }\n val = encodeURIComponent(val);\n key = encodeURIComponent(key);\n document.cookie = [\n key,\n '=',\n val,\n options.expires && '; expires=' + options.expires.toUTCString(),\n options.path && '; path=' + options.path,\n options.domain && '; domain=' + options.domain,\n options.secure ? '; secure' : ''\n ].join('');\n return exports;\n }\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var result = key ? undefined : {};\n for (var i = 0, len = cookies.length; i < len; i++) {\n var c = cookies[i];\n var parts = c.split('=');\n var name = decodeUriComponent(parts.shift());\n c = parts.join('=');\n c = decodeUriComponent(c);\n if (key === name) {\n result = c;\n break;\n }\n if (!key) result[name] = c;\n }\n return result;\n}\nexports = {\n get: setCookie,\n set: setCookie,\n remove: function(key, options) {\n options = options || {};\n options.expires = -1;\n return setCookie(key, '', options);\n }\n};\n\nmodule.exports = exports;\n","var extend = require('./extend');\nvar noop = require('./noop');\nexports = function(text, cb) {\n cb = cb || noop;\n var el = document.createElement('textarea');\n var body = document.body;\n extend(el.style, {\n fontSize: '12pt',\n border: '0',\n padding: '0',\n margin: '0',\n position: 'absolute',\n left: '-9999px'\n });\n el.value = text;\n body.appendChild(el);\n\n el.setAttribute('readonly', '');\n el.select();\n el.setSelectionRange(0, text.length);\n try {\n document.execCommand('copy');\n cb();\n } catch (e) {\n cb(e);\n } finally {\n body.removeChild(el);\n }\n};\n\nmodule.exports = exports;\n","var isObj = require('./isObj');\nexports = function(proto) {\n if (!isObj(proto)) return {};\n if (objCreate && !false) return objCreate(proto);\n function noop() {}\n noop.prototype = proto;\n return new noop();\n};\nvar objCreate = Object.create;\n\nmodule.exports = exports;\n","var isUndef = require('./isUndef');\nvar each = require('./each');\nexports = function(keysFn, defaults) {\n return function(obj) {\n each(arguments, function(src, idx) {\n if (idx === 0) return;\n var keys = keysFn(src);\n each(keys, function(key) {\n if (!defaults || isUndef(obj[key])) obj[key] = src[key];\n });\n });\n return obj;\n };\n};\n\nmodule.exports = exports;\n","var memoize = require('./memoize');\nvar isUndef = require('./isUndef');\nvar camelCase = require('./camelCase');\nexports = memoize(\n function(name, value) {\n if (isUndef(value)) {\n name = camelCase(name);\n return !isUndef(style[name]);\n }\n style.cssText = '';\n style.cssText = name + ':' + value;\n return !!style.length;\n },\n function(name, value) {\n return name + ' ' + value;\n }\n);\nvar style = document.createElement('p').style;\n\nmodule.exports = exports;\n","var isStr = require('./isStr');\nvar isDate = require('./isDate');\nvar toStr = require('./toStr');\nvar lpad = require('./lpad');\nexports = function(date, mask, utc, gmt) {\n if (arguments.length === 1 && isStr(date) && !regNum.test(date)) {\n mask = date;\n date = undefined;\n }\n date = date || new Date();\n if (!isDate(date)) date = new Date(date);\n mask = toStr(exports.masks[mask] || mask || exports.masks['default']);\n var maskSlice = mask.slice(0, 4);\n if (maskSlice === 'UTC:' || maskSlice === 'GMT:') {\n mask = mask.slice(4);\n utc = true;\n if (maskSlice === 'GMT:') gmt = true;\n }\n var prefix = utc ? 'getUTC' : 'get';\n var d = date[prefix + 'Date']();\n var D = date[prefix + 'Day']();\n var m = date[prefix + 'Month']();\n var y = date[prefix + 'FullYear']();\n var H = date[prefix + 'Hours']();\n var M = date[prefix + 'Minutes']();\n var s = date[prefix + 'Seconds']();\n var L = date[prefix + 'Milliseconds']();\n var o = utc ? 0 : date.getTimezoneOffset();\n var flags = {\n d: d,\n dd: padZero(d),\n ddd: exports.i18n.dayNames[D],\n dddd: exports.i18n.dayNames[D + 7],\n m: m + 1,\n mm: padZero(m + 1),\n mmm: exports.i18n.monthNames[m],\n mmmm: exports.i18n.monthNames[m + 12],\n yy: toStr(y).slice(2),\n yyyy: y,\n h: H % 12 || 12,\n hh: padZero(H % 12 || 12),\n H: H,\n HH: padZero(H),\n M: M,\n MM: padZero(M),\n s: s,\n ss: padZero(s),\n l: padZero(L, 3),\n L: padZero(Math.round(L / 10)),\n t: H < 12 ? 'a' : 'p',\n tt: H < 12 ? 'am' : 'pm',\n T: H < 12 ? 'A' : 'P',\n TT: H < 12 ? 'AM' : 'PM',\n Z: gmt\n ? 'GMT'\n : utc\n ? 'UTC'\n : (toStr(date).match(regTimezone) || [''])\n .pop()\n .replace(regTimezoneClip, ''),\n o:\n (o > 0 ? '-' : '+') +\n padZero(Math.floor(Math.abs(o) / 60) * 100 + (Math.abs(o) % 60), 4),\n S: ['th', 'st', 'nd', 'rd'][\n d % 10 > 3 ? 0 : (((d % 100) - (d % 10) != 10) * d) % 10\n ]\n };\n return mask.replace(regToken, function(match) {\n if (match in flags) return flags[match];\n return match.slice(1, match.length - 1);\n });\n};\nvar padZero = function(str) {\n var len =\n arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;\n return lpad(toStr(str), len, '0');\n};\nvar regToken = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\\1?|[LloSZWN]|\"[^\"]*\"|'[^']*'/g;\nvar regTimezone = /\\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\\d{4})?)\\b/g;\nvar regNum = /\\d/;\nvar regTimezoneClip = /[^-+\\dA-Z]/g;\nexports.masks = {\n default: 'ddd mmm dd yyyy HH:MM:ss',\n shortDate: 'm/d/yy',\n mediumDate: 'mmm d, yyyy',\n longDate: 'mmmm d, yyyy',\n fullDate: 'dddd, mmmm d, yyyy',\n shortTime: 'h:MM TT',\n mediumTime: 'h:MM:ss TT',\n longTime: 'h:MM:ss TT Z',\n isoDate: 'yyyy-mm-dd',\n isoTime: 'HH:MM:ss',\n isoDateTime: \"yyyy-mm-dd'T'HH:MM:sso\",\n isoUtcDateTime: \"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'\",\n expiresHeaderFormat: 'ddd, dd mmm yyyy HH:MM:ss Z'\n};\nexports.i18n = {\n dayNames: [\n 'Sun',\n 'Mon',\n 'Tue',\n 'Wed',\n 'Thu',\n 'Fri',\n 'Sat',\n 'Sunday',\n 'Monday',\n 'Tuesday',\n 'Wednesday',\n 'Thursday',\n 'Friday',\n 'Saturday'\n ],\n monthNames: [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec',\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n ]\n};\n\nmodule.exports = exports;\n","exports = function(fn, wait, immediate) {\n var timeout;\n return function() {\n var ctx = this;\n var args = arguments;\n var throttler = function() {\n timeout = null;\n fn.apply(ctx, args);\n };\n if (!immediate) clearTimeout(timeout);\n if (!immediate || !timeout) timeout = setTimeout(throttler, wait);\n };\n};\n\nmodule.exports = exports;\n","var each = require('./each');\nvar ucs2 = require('./ucs2');\nvar map = require('./map');\nvar utf8 = require('./utf8');\nexports = function(str) {\n try {\n return decodeURIComponent(str);\n } catch (e) {\n var matches = str.match(regMatcher);\n if (!matches) {\n return str;\n }\n each(matches, function(match) {\n str = str.replace(match, decode(match));\n });\n return str;\n }\n};\nfunction decode(str) {\n str = str.split('%').slice(1);\n var bytes = map(str, hexToInt);\n str = ucs2.encode(bytes);\n str = utf8.decode(str, true);\n return str;\n}\nfunction hexToInt(numStr) {\n return +('0x' + numStr);\n}\nvar regMatcher = /(%[a-f0-9]{2})+/gi;\n\nmodule.exports = exports;\n","var createAssigner = require('./createAssigner');\nvar allKeys = require('./allKeys');\nexports = createAssigner(allKeys, true);\n\nmodule.exports = exports;\n","var castPath = require('./castPath');\nvar isStr = require('./isStr');\nvar isObj = require('./isObj');\nvar each = require('./each');\nexports = function(obj, prop, descriptor) {\n if (isStr(prop)) {\n defineProp(obj, prop, descriptor);\n } else if (isObj(prop)) {\n each(prop, function(descriptor, prop) {\n defineProp(obj, prop, descriptor);\n });\n }\n return obj;\n};\nfunction defineProp(obj, prop, descriptor) {\n var path = castPath(prop, obj);\n var lastProp = path.pop();\n\n while ((prop = path.shift())) {\n if (!obj[prop]) obj[prop] = {};\n obj = obj[prop];\n }\n Object.defineProperty(obj, lastProp, descriptor);\n}\n\nmodule.exports = exports;\n","var Class = require('./Class');\nvar contain = require('./contain');\nfunction retTrue() {\n return true;\n}\nfunction retFalse() {\n return false;\n}\nfunction trigger(e) {\n var handlers = this.events[e.type];\n var handler;\n var handlerQueue = formatHandlers.call(this, e, handlers);\n e = new exports.Event(e);\n var i = 0,\n j,\n matched,\n ret;\n while ((matched = handlerQueue[i++]) && !e.isPropagationStopped()) {\n e.curTarget = matched.el;\n j = 0;\n while (\n (handler = matched.handlers[j++]) &&\n !e.isImmediatePropagationStopped()\n ) {\n ret = handler.handler.apply(matched.el, [e]);\n if (ret === false) {\n e.preventDefault();\n e.stopPropagation();\n }\n }\n }\n}\nfunction formatHandlers(e, handlers) {\n var current = e.target;\n var ret = [];\n var delegateCount = handlers.delegateCount;\n var selector;\n var matches;\n var handler;\n var i;\n if (current.nodeType) {\n for (; current !== this; current = current.parentNode || this) {\n matches = [];\n for (i = 0; i < delegateCount; i++) {\n handler = handlers[i];\n selector = handler.selector + ' ';\n if (matches[selector] === undefined) {\n matches[selector] = contain(\n this.querySelectorAll(selector),\n current\n );\n }\n if (matches[selector]) matches.push(handler);\n }\n if (matches.length)\n ret.push({\n el: current,\n handlers: matches\n });\n }\n }\n if (delegateCount < handlers.length) {\n ret.push({\n el: this,\n handlers: handlers.slice(delegateCount)\n });\n }\n return ret;\n}\nexports = {\n add: function(el, type, selector, fn) {\n var handler = {\n selector: selector,\n handler: fn\n };\n var handlers;\n if (!el.events) el.events = {};\n if (!(handlers = el.events[type])) {\n handlers = el.events[type] = [];\n handlers.delegateCount = 0;\n el.addEventListener(\n type,\n function() {\n trigger.apply(el, arguments);\n },\n false\n );\n }\n selector\n ? handlers.splice(handlers.delegateCount++, 0, handler)\n : handlers.push(handler);\n },\n remove: function(el, type, selector, fn) {\n var events = el.events;\n if (!events || !events[type]) return;\n var handlers = events[type];\n var i = handlers.length;\n var handler;\n while (i--) {\n handler = handlers[i];\n if (\n (!selector || handler.selector == selector) &&\n handler.handler == fn\n ) {\n handlers.splice(i, 1);\n if (handler.selector) {\n handlers.delegateCount--;\n }\n }\n }\n },\n Event: Class({\n className: 'Event',\n initialize: function Event(e) {\n this.origEvent = e;\n },\n isDefaultPrevented: retFalse,\n isPropagationStopped: retFalse,\n isImmediatePropagationStopped: retFalse,\n preventDefault: function() {\n var e = this.origEvent;\n this.isDefaultPrevented = retTrue;\n if (e && e.preventDefault) e.preventDefault();\n },\n stopPropagation: function() {\n var e = this.origEvent;\n this.isPropagationStopped = retTrue;\n if (e && e.stopPropagation) e.stopPropagation();\n },\n stopImmediatePropagation: function() {\n var e = this.origEvent;\n this.isImmediatePropagationStopped = retTrue;\n if (e && e.stopImmediatePropagation) e.stopImmediatePropagation();\n this.stopPropagation();\n }\n })\n};\n\nmodule.exports = exports;\n","var isBrowser = require('./isBrowser');\nvar toInt = require('./toInt');\nvar keys = require('./keys');\nexports = function(ua) {\n ua = ua || (isBrowser ? navigator.userAgent : '');\n ua = ua.toLowerCase();\n var ieVer = getVer(ua, 'msie ');\n if (ieVer)\n return {\n version: ieVer,\n name: 'ie'\n };\n if (regIe11.test(ua))\n return {\n version: 11,\n name: 'ie'\n };\n for (var i = 0, len = browsers.length; i < len; i++) {\n var name = browsers[i];\n var match = ua.match(regBrowsers[name]);\n if (match == null) continue;\n var version = toInt(match[1].split('.')[0]);\n if (name === 'opera') version = getVer(ua, 'version/') || version;\n return {\n name: name,\n version: version\n };\n }\n return {\n name: 'unknown',\n version: -1\n };\n};\nvar regBrowsers = {\n edge: /edge\\/([0-9._]+)/,\n firefox: /firefox\\/([0-9.]+)(?:\\s|$)/,\n opera: /opera\\/([0-9.]+)(?:\\s|$)/,\n android: /android\\s([0-9.]+)/,\n ios: /version\\/([0-9._]+).*mobile.*safari.*/,\n safari: /version\\/([0-9._]+).*safari/,\n chrome: /(?!chrom.*opr)chrom(?:e|ium)\\/([0-9.]+)(:?\\s|$)/\n};\nvar regIe11 = /trident\\/7\\./;\nvar browsers = keys(regBrowsers);\nfunction getVer(ua, mark) {\n var idx = ua.indexOf(mark);\n if (idx > -1)\n return toInt(ua.substring(idx + mark.length, ua.indexOf('.', idx)));\n}\n\nmodule.exports = exports;\n","var isBrowser = require('./isBrowser');\nexports = function(ua) {\n ua = ua || (isBrowser ? navigator.userAgent : '');\n ua = ua.toLowerCase();\n if (detect('windows phone')) return 'windows phone';\n if (detect('win')) return 'windows';\n if (detect('android')) return 'android';\n if (detect('ipad') || detect('iphone') || detect('ipod')) return 'ios';\n if (detect('mac')) return 'os x';\n if (detect('linux')) return 'linux';\n function detect(keyword) {\n return ua.indexOf(keyword) > -1;\n }\n return 'unknown';\n};\n\nmodule.exports = exports;\n","var restArgs = require('./restArgs');\nvar flatten = require('./flatten');\nvar filter = require('./filter');\nvar contain = require('./contain');\nexports = restArgs(function(arr, args) {\n args = flatten(args);\n return filter(arr, function(val) {\n return !contain(args, val);\n });\n});\n\nmodule.exports = exports;\n","var isArrLike = require('./isArrLike');\nvar keys = require('./keys');\nvar optimizeCb = require('./optimizeCb');\nexports = function(obj, iterator, ctx) {\n iterator = optimizeCb(iterator, ctx);\n var i, len;\n if (isArrLike(obj)) {\n for (i = 0, len = obj.length; i < len; i++) iterator(obj[i], i, obj);\n } else {\n var _keys = keys(obj);\n for (i = 0, len = _keys.length; i < len; i++) {\n iterator(obj[_keys[i]], _keys[i], obj);\n }\n }\n return obj;\n};\n\nmodule.exports = exports;\n","exports = function(str, suffix) {\n var idx = str.length - suffix.length;\n return idx >= 0 && str.indexOf(suffix, idx) === idx;\n};\n\nmodule.exports = exports;\n","var keys = require('./keys');\nexports = function(str) {\n return regTest.test(str) ? str.replace(regReplace, replaceFn) : str;\n};\nvar map = (exports.map = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`'\n});\nvar regSrc = '(?:' + keys(map).join('|') + ')';\nvar regTest = new RegExp(regSrc);\nvar regReplace = new RegExp(regSrc, 'g');\nvar replaceFn = function(match) {\n return map[match];\n};\n\nmodule.exports = exports;\n","var toStr = require('./toStr');\nexports = function(str) {\n return toStr(str).replace(regEscapeChars, function(char) {\n switch (char) {\n case '\"':\n case \"'\":\n case '\\\\':\n return '\\\\' + char;\n case '\\n':\n return '\\\\n';\n case '\\r':\n return '\\\\r';\n // Line separator\n case '\\u2028':\n return '\\\\u2028';\n // Paragraph separator\n case '\\u2029':\n return '\\\\u2029';\n }\n });\n};\nvar regEscapeChars = /[\"'\\\\\\n\\r\\u2028\\u2029]/g;\n\nmodule.exports = exports;\n","exports = function(str) {\n return str.replace(/\\W/g, '\\\\$&');\n};\n\nmodule.exports = exports;\n","exports = function(css) {\n var style = document.createElement('style');\n style.textContent = css;\n style.type = 'text/css';\n document.head.appendChild(style);\n return style;\n};\n\nmodule.exports = exports;\n","var safeCb = require('./safeCb');\nvar isArrLike = require('./isArrLike');\nvar keys = require('./keys');\nexports = function(obj, predicate, ctx) {\n predicate = safeCb(predicate, ctx);\n var _keys = !isArrLike(obj) && keys(obj);\n var len = (_keys || obj).length;\n for (var i = 0; i < len; i++) {\n var curKey = _keys ? _keys[i] : i;\n if (!predicate(obj[curKey], curKey, obj)) return false;\n }\n return true;\n};\n\nmodule.exports = exports;\n","var createAssigner = require('./createAssigner');\nvar allKeys = require('./allKeys');\nexports = createAssigner(allKeys);\n\nmodule.exports = exports;\n","var keys = require('./keys');\nvar createAssigner = require('./createAssigner');\nexports = createAssigner(keys);\n\nmodule.exports = exports;\n","var unique = require('./unique');\nvar trim = require('./trim');\nvar map = require('./map');\nvar toArr = require('./toArr');\nexports = function(str) {\n var urlList = toArr(str.match(regUrl));\n return unique(\n map(urlList, function(url) {\n return trim(url);\n })\n );\n};\nvar regUrl = /((https?)|(ftp)):\\/\\/[\\w.]+[^ \\f\\n\\r\\t\\v\"\\\\<>[\\]\\u2100-\\uFFFF(),]*/gi;\n\nmodule.exports = exports;\n","var safeCb = require('./safeCb');\nvar each = require('./each');\nexports = function(obj, predicate, ctx) {\n var ret = [];\n predicate = safeCb(predicate, ctx);\n each(obj, function(val, idx, list) {\n if (predicate(val, idx, list)) ret.push(val);\n });\n return ret;\n};\n\nmodule.exports = exports;\n","var findKey = require('./findKey');\nvar findIdx = require('./findIdx');\nvar isArrLike = require('./isArrLike');\nvar isUndef = require('./isUndef');\nexports = function(obj, predicate, ctx) {\n var keyFinder = isArrLike(obj) ? findIdx : findKey;\n var key = keyFinder(obj, predicate, ctx);\n if (!isUndef(key) && key !== -1) return obj[key];\n};\n\nmodule.exports = exports;\n","var safeCb = require('./safeCb');\nexports = function(arr, predicate, ctx, dir) {\n dir = dir || 1;\n predicate = safeCb(predicate, ctx);\n var len = arr.length;\n var i = dir > 0 ? 0 : len - 1;\n while (i >= 0 && i < len) {\n if (predicate(arr[i], i, arr)) return i;\n i += dir;\n }\n return -1;\n};\n\nmodule.exports = exports;\n","var safeCb = require('./safeCb');\nvar keys = require('./keys');\nexports = function(obj, predicate, ctx) {\n predicate = safeCb(predicate, ctx);\n var _keys = keys(obj);\n var key;\n for (var i = 0, len = _keys.length; i < len; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n};\n\nmodule.exports = exports;\n","var isArr = require('./isArr');\nexports = function(arr) {\n return flat(arr, []);\n};\nfunction flat(arr, res) {\n var len = arr.length,\n i = -1,\n cur;\n while (len--) {\n cur = arr[++i];\n isArr(cur) ? flat(cur, res) : res.push(cur);\n }\n return res;\n}\n\nmodule.exports = exports;\n","var keys = require('./keys');\nexports = function(obj) {\n if (Object.freeze) return Object.freeze(obj);\n keys(obj).forEach(function(prop) {\n if (!Object.getOwnPropertyDescriptor(obj, prop).configurable) return;\n Object.defineProperty(obj, prop, {\n writable: false,\n configurable: false\n });\n });\n return obj;\n};\n\nmodule.exports = exports;\n","var isObj = require('./isObj');\nvar isFn = require('./isFn');\nvar getPrototypeOf = Object.getPrototypeOf;\nvar ObjectCtr = {}.constructor;\nexports = function(obj) {\n if (!isObj(obj)) return;\n if (getPrototypeOf && !false) return getPrototypeOf(obj);\n var proto = obj.__proto__;\n if (proto || proto === null) return proto;\n if (isFn(obj.constructor)) return obj.constructor.prototype;\n if (obj instanceof ObjectCtr) return ObjectCtr.prototype;\n};\n\nmodule.exports = exports;\n","var isEl = require('./isEl');\nvar isStr = require('./isStr');\nvar startWith = require('./startWith');\nvar $class = require('./$class');\nvar $css = require('./$css');\nvar each = require('./each');\nvar isFn = require('./isFn');\nexports = function(tag, attrs) {\n for (\n var _len = arguments.length,\n children = new Array(_len > 2 ? _len - 2 : 0),\n _key = 2;\n _key < _len;\n _key++\n ) {\n children[_key - 2] = arguments[_key];\n }\n if (isEl(attrs) || isStr(attrs)) {\n children.unshift(attrs);\n attrs = null;\n }\n if (!attrs) attrs = {};\n var _parseTag = parseTag(tag),\n tagName = _parseTag.tagName,\n id = _parseTag.id,\n classes = _parseTag.classes;\n var el = document.createElement(tagName);\n if (id) el.setAttribute('id', id);\n $class.add(el, classes);\n each(children, function(child) {\n if (isStr(child)) {\n el.appendChild(document.createTextNode(child));\n } else if (isEl(child)) {\n el.appendChild(child);\n }\n });\n each(attrs, function(val, key) {\n if (isStr(val)) {\n el.setAttribute(key, val);\n } else if (isFn(val) && startWith(key, 'on')) {\n el.addEventListener(key.slice(2), val, false);\n } else if (key === 'style') {\n $css(el, val);\n }\n });\n return el;\n};\nfunction parseTag(tag) {\n var tagName = 'div';\n var id = '';\n var classes = [];\n var words = [];\n var word = '';\n for (var i = 0, len = tag.length; i < len; i++) {\n var c = tag[i];\n if (c === '#' || c === '.') {\n words.push(word);\n word = c;\n } else {\n word += c;\n }\n }\n words.push(word);\n for (var _i = 0, _len2 = words.length; _i < _len2; _i++) {\n word = words[_i];\n if (!word) continue;\n if (startWith(word, '#')) {\n id = word.slice(1);\n } else if (startWith(word, '.')) {\n classes.push(word.slice(1));\n } else {\n tagName = word;\n }\n }\n return {\n tagName: tagName,\n id: id,\n classes: classes\n };\n}\n\nmodule.exports = exports;\n","var hasOwnProp = Object.prototype.hasOwnProperty;\nexports = function(obj, key) {\n return hasOwnProp.call(obj, key);\n};\n\nmodule.exports = exports;\n","var isOdd = require('./isOdd');\nexports = {\n encode: function(bytes) {\n var hex = [];\n for (var i = 0, len = bytes.length; i < len; i++) {\n var byte = bytes[i];\n hex.push((byte >>> 4).toString(16));\n hex.push((byte & 0xf).toString(16));\n }\n return hex.join('');\n },\n decode: function(str) {\n var bytes = [];\n var len = str.length;\n if (isOdd(len)) len--;\n for (var i = 0; i < len; i += 2) {\n bytes.push(parseInt(str.substr(i, 2), 16));\n }\n return bytes;\n }\n};\n\nmodule.exports = exports;\n","var each = require('./each');\nvar defaults = require('./defaults');\n\nexports = function(str) {\n var lang =\n arguments.length > 1 && arguments[1] !== undefined\n ? arguments[1]\n : 'js';\n var style =\n arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n defaults(style, defStyle);\n str = str.replace(//g, '>');\n lang = language[lang];\n var subLangSi = 0;\n var subLangs = [];\n each(lang, function(val) {\n if (!val.language) return;\n str = str.replace(val.re, function($1, $2) {\n if (!$2) {\n return $1;\n }\n subLangs[subLangSi++] = exports($2, val.language, style);\n return $1.replace($2, '___subtmpl' + (subLangSi - 1) + '___');\n });\n });\n each(lang, function(val, key) {\n if (language[val.language]) return;\n str = str.replace(val.re, '___' + key + '___$1___end' + key + '___');\n });\n var levels = [];\n str = str.replace(/___(?!subtmpl)\\w+?___/g, function($0) {\n var end = $0.substr(3, 3) === 'end',\n tag = (!end ? $0.substr(3) : $0.substr(6)).replace(/_/g, ''),\n lastTag = levels.length > 0 ? levels[levels.length - 1] : null;\n if (\n !end &&\n (lastTag == null ||\n tag == lastTag ||\n (lastTag != null &&\n lang[lastTag] &&\n lang[lastTag].embed != undefined &&\n lang[lastTag].embed.indexOf(tag) > -1))\n ) {\n levels.push(tag);\n return $0;\n } else if (end && tag == lastTag) {\n levels.pop();\n return $0;\n }\n return '';\n });\n each(lang, function(val, key) {\n var s = style[val.style]\n ? ' style=\"'.concat(style[val.style], '\"')\n : '';\n str = str\n .replace(new RegExp('___end' + key + '___', 'g'), ' ')\n .replace(\n new RegExp('___' + key + '___', 'g'),\n '')\n );\n });\n each(lang, function(val) {\n if (!val.language) return;\n str = str.replace(/___subtmpl\\d+___/g, function($tmpl) {\n var i = parseInt($tmpl.replace(/___subtmpl(\\d+)___/, '$1'), 10);\n return subLangs[i];\n });\n });\n return str;\n};\nvar defStyle = {\n comment: 'color:#63a35c;',\n string: 'color:#183691;',\n number: 'color:#0086b3;',\n keyword: 'color:#a71d5d;',\n operator: 'color:#994500;'\n};\nvar language = {};\nlanguage.js = {\n comment: {\n re: /(\\/\\/.*|\\/\\*([\\s\\S]*?)\\*\\/)/g,\n style: 'comment'\n },\n string: {\n re: /(('.*?')|(\".*?\"))/g,\n style: 'string'\n },\n numbers: {\n re: /(-?(\\d+|\\d+\\.\\d+|\\.\\d+))/g,\n style: 'number'\n },\n keywords: {\n re: /(?:\\b)(function|for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|const|let|false|true|null|undefined)(?:\\b)/gi,\n style: 'keyword'\n },\n operator: {\n re: /(\\+|-|\\/|\\*|%|=|<|>|\\||\\?|\\.)/g,\n style: 'operator'\n }\n};\nlanguage.html = {\n comment: {\n re: /(<!--([\\s\\S]*?)-->)/g,\n style: 'comment'\n },\n tag: {\n re: /(<\\/?\\w(.|\\n)*?\\/?>)/g,\n style: 'keyword',\n embed: ['string']\n },\n string: language.js.string,\n css: {\n re: /(?:<style.*?>)([\\s\\S]*)?(?:<\\/style>)/gi,\n language: 'css'\n },\n script: {\n re: /(?:<script.*?>)([\\s\\S]*?)(?:<\\/script>)/gi,\n language: 'js'\n }\n};\nlanguage.css = {\n comment: language.js.comment,\n string: language.js.string,\n numbers: {\n re: /((-?(\\d+|\\d+\\.\\d+|\\.\\d+)(%|px|em|pt|in)?)|#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,\n style: 'number'\n },\n keywords: {\n re: /(@\\w+|:?:\\w+|[a-z-]+:)/g,\n style: 'keyword'\n }\n};\n\nmodule.exports = exports;\n","exports = function(hsl) {\n var h = hsl[0] / 360;\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var ret = [];\n var t2;\n var t3;\n var val;\n if (hsl[3]) ret[3] = hsl[3];\n if (s === 0) {\n val = round(l * 255);\n ret[0] = ret[1] = ret[2] = val;\n return ret;\n }\n if (l < 0.5) {\n t2 = l * (1 + s);\n } else {\n t2 = l + s - l * s;\n }\n var t1 = 2 * l - t2;\n for (var i = 0; i < 3; i++) {\n t3 = h + (1 / 3) * -(i - 1);\n if (t3 < 0) t3++;\n if (t3 > 1) t3--;\n if (6 * t3 < 1) {\n val = t1 + (t2 - t1) * 6 * t3;\n } else if (2 * t3 < 1) {\n val = t2;\n } else if (3 * t3 < 2) {\n val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n } else {\n val = t1;\n }\n ret[i] = round(val * 255);\n }\n return ret;\n};\nvar round = Math.round;\n\nmodule.exports = exports;\n","var parseHtml = require('./parseHtml');\nvar Stack = require('./Stack');\nvar isArr = require('./isArr');\nvar each = require('./each');\nvar isStr = require('./isStr');\nvar mapObj = require('./mapObj');\nfunction parse(html) {\n var ret = [];\n var stack = new Stack();\n parseHtml(html, {\n start: function(tag, attrs) {\n attrs = mapObj(attrs, function(val) {\n return unescapeQuote(val);\n });\n stack.push({\n tag: tag,\n attrs: attrs\n });\n },\n end: function() {\n var node = stack.pop();\n if (!stack.size) {\n ret.push(node);\n return;\n }\n var lastNode = stack.peek();\n if (!isArr(lastNode.content)) {\n lastNode.content = [];\n }\n lastNode.content.push(node);\n },\n comment: function(text) {\n var comment = '');\n var lastNode = stack.peek();\n if (!lastNode) {\n ret.push(comment);\n return;\n }\n if (!lastNode.content) lastNode.content = [];\n lastNode.content.push(comment);\n },\n text: function(text) {\n var lastNode = stack.peek();\n if (!lastNode) {\n ret.push(text);\n return;\n }\n if (!lastNode.content) lastNode.content = [];\n lastNode.content.push(text);\n }\n });\n return ret;\n}\nfunction stringify(tree) {\n var ret = '';\n if (isArr(tree)) {\n each(tree, function(node) {\n return (ret += stringify(node));\n });\n } else if (isStr(tree)) {\n ret = tree;\n } else {\n ret += '<'.concat(tree.tag);\n each(tree.attrs, function(val, key) {\n return (ret += ' '.concat(key, '=\"').concat(escapeQuote(val), '\"'));\n });\n ret += '>';\n if (tree.content) ret += stringify(tree.content);\n ret += ''.concat(tree.tag, '>');\n }\n return ret;\n}\nvar unescapeQuote = function(str) {\n return str.replace(/"/g, '\"');\n};\nvar escapeQuote = function(str) {\n return str.replace(/\"/g, '"');\n};\nexports = {\n parse: parse,\n stringify: stringify\n};\n\nmodule.exports = exports;\n","exports = function(val) {\n return val;\n};\n\nmodule.exports = exports;\n","exports = function(arr, val, fromIdx) {\n return Array.prototype.indexOf.call(arr, val, fromIdx);\n};\n\nmodule.exports = exports;\n","var create = require('./create');\nexports = function(Class, SuperClass) {\n Class.prototype = create(SuperClass.prototype);\n};\n\nmodule.exports = exports;\n","var each = require('./each');\nexports = function(obj) {\n var ret = {};\n each(obj, function(val, key) {\n ret[val] = key;\n });\n return ret;\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports = function(val) {\n return objToStr(val) === '[object Arguments]';\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nif (Array.isArray && !false) {\n exports = Array.isArray;\n} else {\n exports = function(val) {\n return objToStr(val) === '[object Array]';\n };\n}\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports = function(val) {\n return objToStr(val) === '[object ArrayBuffer]';\n};\n\nmodule.exports = exports;\n","var isNum = require('./isNum');\nvar isFn = require('./isFn');\nvar MAX_ARR_IDX = Math.pow(2, 53) - 1;\nexports = function(val) {\n if (!val) return false;\n var len = val.length;\n return isNum(len) && len >= 0 && len <= MAX_ARR_IDX && !isFn(val);\n};\n\nmodule.exports = exports;\n","exports = function(val) {\n return val === true || val === false;\n};\n\nmodule.exports = exports;\n","exports =\n typeof window === 'object' &&\n typeof document === 'object' &&\n document.nodeType === 9;\n\nmodule.exports = exports;\n","var isFn = require('./isFn');\nexports = function(val) {\n if (val == null) return false;\n if (val._isBuffer) return true;\n return (\n val.constructor &&\n isFn(val.constructor.isBuffer) &&\n val.constructor.isBuffer(val)\n );\n};\n\nmodule.exports = exports;\n","var MediaQuery = require('./MediaQuery');\nvar m = new MediaQuery('(prefers-color-scheme: dark)');\nexports = function() {\n return m.isMatch();\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports = function(val) {\n return objToStr(val) === '[object Date]';\n};\n\nmodule.exports = exports;\n","exports = function(val) {\n return !!(val && val.nodeType === 1);\n};\n\nmodule.exports = exports;\n","var isArrLike = require('./isArrLike');\nvar isArr = require('./isArr');\nvar isStr = require('./isStr');\nvar isArgs = require('./isArgs');\nvar keys = require('./keys');\nexports = function(val) {\n if (val == null) return true;\n if (isArrLike(val) && (isArr(val) || isStr(val) || isArgs(val))) {\n return val.length === 0;\n }\n return keys(val).length === 0;\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports = function(val) {\n return objToStr(val) === '[object Error]';\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports = function(val) {\n var objStr = objToStr(val);\n return (\n objStr === '[object Function]' ||\n objStr === '[object GeneratorFunction]' ||\n objStr === '[object AsyncFunction]'\n );\n};\n\nmodule.exports = exports;\n","var root = require('./root');\nvar getComputedStyle = root.getComputedStyle;\nvar document = root.document;\nexports = function(el) {\n var _ref =\n arguments.length > 1 && arguments[1] !== undefined\n ? arguments[1]\n : {},\n _ref$display = _ref.display,\n display = _ref$display === void 0 ? true : _ref$display,\n _ref$visibility = _ref.visibility,\n visibility = _ref$visibility === void 0 ? false : _ref$visibility,\n _ref$opacity = _ref.opacity,\n opacity = _ref$opacity === void 0 ? false : _ref$opacity,\n _ref$size = _ref.size,\n size = _ref$size === void 0 ? false : _ref$size,\n _ref$viewport = _ref.viewport,\n viewport = _ref$viewport === void 0 ? false : _ref$viewport,\n _ref$overflow = _ref.overflow,\n overflow = _ref$overflow === void 0 ? false : _ref$overflow;\n if (display) {\n return el.offsetParent === null;\n }\n var computedStyle = getComputedStyle(el);\n if (visibility && computedStyle.visibility === 'hidden') {\n return true;\n }\n if (opacity) {\n if (computedStyle.opacity === '0') {\n return true;\n } else {\n var cur = el;\n while ((cur = cur.parentElement)) {\n var _computedStyle = getComputedStyle(cur);\n if (_computedStyle.opacity === '0') {\n return true;\n }\n }\n }\n }\n var clientRect = el.getBoundingClientRect();\n if (size && (clientRect.width === 0 || clientRect.height === 0)) {\n return true;\n }\n if (viewport) {\n var containerRect = {\n top: 0,\n left: 0,\n right: document.documentElement.clientWidth,\n bottom: document.documentElement.clientHeight\n };\n return isOutside(clientRect, containerRect);\n }\n if (overflow) {\n var _cur = el;\n while ((_cur = _cur.parentElement)) {\n var _computedStyle2 = getComputedStyle(_cur);\n var _overflow = _computedStyle2.overflow;\n if (_overflow === 'scroll' || _overflow === 'hidden') {\n var curRect = _cur.getBoundingClientRect();\n if (isOutside(clientRect, curRect)) return true;\n }\n }\n }\n return false;\n};\nfunction isOutside(clientRect, containerRect) {\n return (\n clientRect.right < containerRect.left ||\n clientRect.left > containerRect.right ||\n clientRect.bottom < containerRect.top ||\n clientRect.top > containerRect.bottom\n );\n}\n\nmodule.exports = exports;\n","var isNum = require('./isNum');\nexports = function(val) {\n return isNum(val) && val % 1 === 0;\n};\n\nmodule.exports = exports;\n","exports = function(val) {\n try {\n JSON.parse(val);\n return true;\n } catch (e) {\n return false;\n }\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports = function(val) {\n return objToStr(val) === '[object Map]';\n};\n\nmodule.exports = exports;\n","var keys = require('./keys');\nexports = function(obj, src) {\n var _keys = keys(src);\n var len = _keys.length;\n if (obj == null) return !len;\n obj = Object(obj);\n for (var i = 0; i < len; i++) {\n var key = _keys[i];\n if (src[key] !== obj[key] || !(key in obj)) return false;\n }\n return true;\n};\n\nmodule.exports = exports;\n","var isFn = require('./isFn');\n\nexports = typeof wx !== 'undefined' && isFn(wx.openLocation);\n\nmodule.exports = exports;\n","var isBrowser = require('./isBrowser');\nvar memoize = require('./memoize');\nvar regMobileAll = /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i;\nvar regMobileFour = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i;\nexports = memoize(function(ua) {\n ua = ua || (isBrowser ? navigator.userAgent : '');\n return regMobileAll.test(ua) || regMobileFour.test(ua.substr(0, 4));\n});\n\nmodule.exports = exports;\n","var isNum = require('./isNum');\nexports = function(val) {\n return isNum(val) && val !== +val;\n};\n\nmodule.exports = exports;\n","var isObj = require('./isObj');\nvar isFn = require('./isFn');\nvar toSrc = require('./toSrc');\nexports = function(val) {\n if (!isObj(val)) return false;\n if (isFn(val)) return regIsNative.test(toSrc(val));\n\n return regIsHostCtor.test(toSrc(val));\n};\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar regIsNative = new RegExp(\n '^' +\n toSrc(hasOwnProperty)\n .replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&')\n .replace(\n /hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\n '$1.*?'\n ) +\n '$'\n);\nvar regIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\nmodule.exports = exports;\n","exports = function(val) {\n return val == null;\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports =\n typeof process !== 'undefined' && objToStr(process) === '[object process]';\n\nmodule.exports = exports;\n","exports = function(val) {\n return val === null;\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports = function(val) {\n return objToStr(val) === '[object Number]';\n};\n\nmodule.exports = exports;\n","exports = function(val) {\n var type = typeof val;\n return !!val && (type === 'function' || type === 'object');\n};\n\nmodule.exports = exports;\n","var isInt = require('./isInt');\nexports = function(num) {\n if (!isInt(num)) return false;\n return num % 2 !== 0;\n};\n\nmodule.exports = exports;\n","exports = function(val) {\n var type = typeof val;\n return val == null || (type !== 'function' && type !== 'object');\n};\n\nmodule.exports = exports;\n","var isObj = require('./isObj');\nvar isFn = require('./isFn');\nexports = function(val) {\n return isObj(val) && isFn(val.then) && isFn(val.catch);\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports = function(val) {\n return objToStr(val) === '[object RegExp]';\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports = function(val) {\n return objToStr(val) === '[object Set]';\n};\n\nmodule.exports = exports;\n","exports = function(arr) {\n var cmp =\n arguments.length > 1 && arguments[1] !== undefined\n ? arguments[1]\n : exports.defComparator;\n for (var i = 0, len = arr.length; i < len - 1; i++) {\n if (cmp(arr[i], arr[i + 1]) > 0) return false;\n }\n return true;\n};\nexports.defComparator = function(a, b) {\n if (a < b) return -1;\n if (a > b) return 1;\n return 0;\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nexports = function(val) {\n return objToStr(val) === '[object String]';\n};\n\nmodule.exports = exports;\n","exports = function(val) {\n return typeof val === 'symbol';\n};\n\nmodule.exports = exports;\n","exports = function(val) {\n return val === void 0;\n};\n\nmodule.exports = exports;\n","var splitCase = require('./splitCase');\nexports = function(str) {\n return splitCase(str).join('-');\n};\n\nmodule.exports = exports;\n","var has = require('./has');\nif (Object.keys && !false) {\n exports = Object.keys;\n} else {\n exports = function(obj) {\n var ret = [];\n for (var key in obj) {\n if (has(obj, key)) ret.push(key);\n }\n return ret;\n };\n}\n\nmodule.exports = exports;\n","exports = function(arr) {\n var len = arr ? arr.length : 0;\n if (len) return arr[len - 1];\n};\n\nmodule.exports = exports;\n","var extractUrls = require('./extractUrls');\nvar each = require('./each');\nvar escapeRegExp = require('./escapeRegExp');\nexports = function(str, hyperlink) {\n hyperlink = hyperlink || defHyperlink;\n var urlList = extractUrls(str);\n each(urlList, function(url) {\n str = str.replace(new RegExp(escapeRegExp(url), 'g'), hyperlink);\n });\n return str;\n};\nfunction defHyperlink(url) {\n return '' + url + ' ';\n}\n\nmodule.exports = exports;\n","exports = function(src, cb) {\n var script = document.createElement('script');\n script.src = src;\n script.onload = function() {\n var isNotLoaded =\n script.readyState &&\n script.readyState != 'complete' &&\n script.readyState != 'loaded';\n cb && cb(!isNotLoaded);\n };\n script.onerror = function() {\n cb(false);\n };\n document.body.appendChild(script);\n};\n\nmodule.exports = exports;\n","var toStr = require('./toStr');\nexports = function(str) {\n return toStr(str).toLocaleLowerCase();\n};\n\nmodule.exports = exports;\n","var repeat = require('./repeat');\nvar toStr = require('./toStr');\nexports = function(str, len, chars) {\n str = toStr(str);\n var strLen = str.length;\n chars = chars || ' ';\n if (strLen < len) str = (repeat(chars, len - strLen) + str).slice(-len);\n return str;\n};\n\nmodule.exports = exports;\n","var regSpace = /^\\s+/;\nexports = function(str, chars) {\n if (chars == null) {\n if (str.trimLeft) {\n return str.trimLeft();\n }\n return str.replace(regSpace, '');\n }\n var start = 0;\n var len = str.length;\n var charLen = chars.length;\n var found = true;\n var i;\n var c;\n while (found && start < len) {\n found = false;\n i = -1;\n c = str.charAt(start);\n while (++i < charLen) {\n if (c === chars[i]) {\n found = true;\n start++;\n break;\n }\n }\n }\n return start >= len ? '' : str.substr(start, len);\n};\n\nmodule.exports = exports;\n","var safeCb = require('./safeCb');\nvar keys = require('./keys');\nvar isArrLike = require('./isArrLike');\nexports = function(obj, iterator, ctx) {\n iterator = safeCb(iterator, ctx);\n var _keys = !isArrLike(obj) && keys(obj);\n var len = (_keys || obj).length;\n var results = Array(len);\n for (var i = 0; i < len; i++) {\n var curKey = _keys ? _keys[i] : i;\n results[i] = iterator(obj[curKey], curKey, obj);\n }\n return results;\n};\n\nmodule.exports = exports;\n","var safeCb = require('./safeCb');\nvar keys = require('./keys');\nexports = function(obj, iterator, ctx) {\n iterator = safeCb(iterator, ctx);\n var _keys = keys(obj);\n var len = _keys.length;\n var ret = {};\n for (var i = 0; i < len; i++) {\n var curKey = _keys[i];\n ret[curKey] = iterator(obj[curKey], curKey, obj);\n }\n return ret;\n};\n\nmodule.exports = exports;\n","var extendOwn = require('./extendOwn');\nvar isMatch = require('./isMatch');\nexports = function(attrs) {\n attrs = extendOwn({}, attrs);\n return function(obj) {\n return isMatch(obj, attrs);\n };\n};\n\nmodule.exports = exports;\n","exports = function() {\n var arr = arguments;\n var ret = arr[0];\n for (var i = 1, len = arr.length; i < len; i++) {\n if (arr[i] > ret) ret = arr[i];\n }\n return ret;\n};\n\nmodule.exports = exports;\n","var keys = require('./keys');\nexports = {\n getItem: function(key) {\n return (API_KEYS[key] ? cloak[key] : this[key]) || null;\n },\n setItem: function(key, val) {\n API_KEYS[key] ? (cloak[key] = val) : (this[key] = val);\n },\n removeItem: function(key) {\n API_KEYS[key] ? delete cloak[key] : delete this[key];\n },\n key: function(i) {\n var keys = enumerableKeys();\n return i >= 0 && i < keys.length ? keys[i] : null;\n },\n clear: function() {\n var keys = uncloakedKeys();\n\n for (var i = 0, key; (key = keys[i]); i++) delete this[key];\n keys = cloakedKeys();\n\n for (var _i = 0, _key; (_key = keys[_i]); _i++) delete cloak[_key];\n }\n};\nObject.defineProperty(exports, 'length', {\n enumerable: false,\n configurable: true,\n get: function() {\n return enumerableKeys().length;\n }\n});\nvar cloak = {};\nvar API_KEYS = {\n getItem: 1,\n setItem: 1,\n removeItem: 1,\n key: 1,\n clear: 1,\n length: 1\n};\nfunction enumerableKeys() {\n return uncloakedKeys().concat(cloakedKeys());\n}\nfunction uncloakedKeys() {\n return keys(exports).filter(function(key) {\n return !API_KEYS[key];\n });\n}\nfunction cloakedKeys() {\n return keys(cloak);\n}\n\nmodule.exports = exports;\n","var has = require('./has');\nexports = function(fn, hashFn) {\n var memoize = function(key) {\n var cache = memoize.cache;\n var address = '' + (hashFn ? hashFn.apply(this, arguments) : key);\n if (!has(cache, address)) cache[address] = fn.apply(this, arguments);\n return cache[address];\n };\n memoize.cache = {};\n return memoize;\n};\n\nmodule.exports = exports;\n","var restArgs = require('./restArgs');\nexports = restArgs(function(first, arrays) {\n var end = first.length;\n for (var i = 0, len = arrays.length; i < len; i++) {\n var arr = arrays[i];\n for (var j = 0, _len = arr.length; j < _len; j++) {\n first[end++] = arr[j];\n }\n }\n first.length = end;\n return first;\n});\n\nmodule.exports = exports;\n","var each = require('./each');\nvar isStr = require('./isStr');\nvar isUndef = require('./isUndef');\nvar contain = require('./contain');\nvar isArr = require('./isArr');\nvar isObj = require('./isObj');\nvar toArr = require('./toArr');\nexports = function(name, content) {\n if (isUndef(name)) return getAllMeta();\n var isGetter = (isStr(name) && isUndef(content)) || isArr(name);\n if (isGetter) return getMeta(name);\n var metas = name;\n if (!isObj(metas)) {\n metas = {};\n metas[name] = content;\n }\n setMeta(metas);\n};\nexports.remove = function(nameList) {\n nameList = toArr(nameList);\n each(nameList, function(name) {\n var meta = selectMeta(name);\n if (meta) doc.head.removeChild(meta);\n });\n};\nvar doc = document;\nfunction getAllMeta() {\n var ret = {};\n metaEach(function(name, content) {\n ret[name] = content;\n });\n return ret;\n}\nfunction getMeta(name) {\n if (isStr(name)) {\n var meta = selectMeta(name);\n if (meta) return meta.getAttribute('content');\n } else {\n var ret = {};\n metaEach(function(key, val) {\n if (contain(name, key)) ret[key] = val;\n });\n return ret;\n }\n}\nfunction setMeta(metas) {\n each(metas, function(content, name) {\n var meta = selectMeta(name);\n if (meta) return meta.setAttribute('content', content);\n meta = doc.createElement('meta');\n meta.setAttribute('name', name);\n meta.setAttribute('content', content);\n doc.head.appendChild(meta);\n });\n}\nfunction metaEach(fn) {\n var metaList = doc.querySelectorAll('meta');\n each(metaList, function(meta) {\n var name = meta.getAttribute('name');\n var content = meta.getAttribute('content');\n if (!name || !content) return;\n fn(name, content);\n });\n}\nfunction selectMeta(name) {\n return doc.querySelector('meta[name=\"' + name + '\"]');\n}\n\nmodule.exports = exports;\n","exports = function() {\n var arr = arguments;\n var ret = arr[0];\n for (var i = 1, len = arr.length; i < len; i++) {\n if (arr[i] < ret) ret = arr[i];\n }\n return ret;\n};\n\nmodule.exports = exports;\n","var toNum = require('./toNum');\nvar isStr = require('./isStr');\nexports = function(str) {\n if (isStr(str)) {\n var match = str.match(regStrTime);\n if (!match) return 0;\n return toNum(match[1]) * factor[match[2] || 'ms'];\n } else {\n var num = str;\n var suffix = 'ms';\n for (var i = 0, len = suffixList.length; i < len; i++) {\n if (num >= factor[suffixList[i]]) {\n suffix = suffixList[i];\n break;\n }\n }\n return +(num / factor[suffix]).toFixed(2) + suffix;\n }\n};\nvar factor = {\n ms: 1,\n s: 1000\n};\nfactor.m = factor.s * 60;\nfactor.h = factor.m * 60;\nfactor.d = factor.h * 24;\nfactor.y = factor.d * 365.25;\nvar suffixList = ['y', 'd', 'h', 'm', 's'];\nvar regStrTime = /^((?:\\d+)?\\.?\\d+) *(s|m|h|d|y)?$/;\n\nmodule.exports = exports;\n","var startWith = require('./startWith');\nvar root = require('./root');\nvar toStr = require('./toStr');\nexports = function(arr) {\n return arr.sort(naturalOrderComparator);\n};\n\nfunction naturalOrderComparator(a, b) {\n a = toStr(a);\n b = toStr(b);\n if (startWith(a, '_') && !startWith(b, '_')) {\n return 1;\n }\n if (startWith(b, '_') && !startWith(a, '_')) {\n return -1;\n }\n var chunk = /^\\d+|^\\D+/;\n var chunka, chunkb, anum, bnum;\n\n while (true) {\n if (a) {\n if (!b) {\n return 1;\n }\n } else {\n if (b) {\n return -1;\n }\n return 0;\n }\n chunka = a.match(chunk)[0];\n chunkb = b.match(chunk)[0];\n anum = !root.isNaN(chunka);\n bnum = !root.isNaN(chunkb);\n if (anum && !bnum) {\n return -1;\n }\n if (bnum && !anum) {\n return 1;\n }\n if (anum && bnum) {\n var diff = chunka - chunkb;\n if (diff) {\n return diff;\n }\n if (chunka.length !== chunkb.length) {\n if (!+chunka && !+chunkb) {\n return chunka.length - chunkb.length;\n }\n return chunkb.length - chunka.length;\n }\n } else if (chunka !== chunkb) {\n return chunka < chunkb ? -1 : 1;\n }\n a = a.substring(chunka.length);\n b = b.substring(chunkb.length);\n }\n}\n\nmodule.exports = exports;\n","if (typeof process === 'object' && process.nextTick && !false) {\n exports = process.nextTick;\n} else if (typeof setImmediate === 'function') {\n exports = function(cb) {\n setImmediate(ensureCallable(cb));\n };\n} else {\n exports = function(cb) {\n setTimeout(ensureCallable(cb), 0);\n };\n}\nfunction ensureCallable(fn) {\n if (typeof fn !== 'function')\n throw new TypeError(fn + ' is not a function');\n return fn;\n}\n\nmodule.exports = exports;\n","exports = function() {};\n\nmodule.exports = exports;\n","if (Date.now && !false) {\n exports = Date.now;\n} else {\n exports = function() {\n return new Date().getTime();\n };\n}\n\nmodule.exports = exports;\n","var ObjToStr = Object.prototype.toString;\nexports = function(val) {\n return ObjToStr.call(val);\n};\n\nmodule.exports = exports;\n","var partial = require('./partial');\nvar before = require('./before');\nexports = partial(before, 2);\n\nmodule.exports = exports;\n","var isUndef = require('./isUndef');\nexports = function(fn, ctx, argCount) {\n if (isUndef(ctx)) return fn;\n switch (argCount == null ? 3 : argCount) {\n case 1:\n return function(val) {\n return fn.call(ctx, val);\n };\n case 3:\n return function(val, idx, collection) {\n return fn.call(ctx, val, idx, collection);\n };\n case 4:\n return function(accumulator, val, idx, collection) {\n return fn.call(ctx, accumulator, val, idx, collection);\n };\n }\n return function() {\n return fn.apply(ctx, arguments);\n };\n};\n\nmodule.exports = exports;\n","var Emitter = require('./Emitter');\nvar safeGet = require('./safeGet');\nvar screen = window.screen;\nexports = {\n get: function() {\n if (screen) {\n var orientation = safeGet(screen, 'orientation.type');\n if (orientation) return orientation.split('-').shift();\n }\n return window.innerWidth > window.innerHeight\n ? 'landscape'\n : 'portrait';\n }\n};\nEmitter.mixin(exports);\nwindow.addEventListener(\n 'orientationchange',\n function() {\n setTimeout(function() {\n exports.emit('change', exports.get());\n }, 200);\n },\n false\n);\n\nmodule.exports = exports;\n","var last = require('./last');\nvar arrToMap = require('./arrToMap');\nvar startWith = require('./startWith');\nvar lowerCase = require('./lowerCase');\n\nexports = function(html, handler) {\n var stack = [];\n var text;\n var lastHtml = html;\n while (html) {\n text = true;\n if (!last(stack) || !SPECIAL[last(stack)]) {\n if (startWith(html, '');\n if (endIdx >= 0) {\n if (handler.comment) {\n handler.comment(html.substring(4, endIdx));\n }\n html = html.substring(endIdx + 3);\n text = false;\n }\n } else if (startWith(html, ']*>')).exec(\n html\n );\n if (execRes) {\n var _text2 = html.substring(0, execRes.index);\n html = html.substring(execRes.index + execRes[0].length);\n if (_text2 && handler.text) handler.text(_text2);\n }\n parseEndTag('', last(stack));\n }\n if (lastHtml === html) {\n throw Error('Parse Error: ' + html);\n }\n lastHtml = html;\n }\n parseEndTag();\n function parseStartTag(tag, tagName, rest, unary) {\n tagName = lowerCase(tagName);\n unary = !!unary;\n if (!unary) stack.push(tagName);\n if (handler.start) {\n var attrs = {};\n rest.replace(regAttr, function(all, $1, $2, $3, $4) {\n attrs[$1] = $2 || $3 || $4 || '';\n });\n handler.start(tagName, attrs, unary);\n }\n }\n function parseEndTag(tag, tagName) {\n tagName = lowerCase(tagName);\n var pos;\n if (!tagName) {\n pos = 0;\n } else {\n for (pos = stack.length - 1; pos >= 0; pos--) {\n if (stack[pos] === tagName) break;\n }\n }\n if (pos >= 0) {\n for (var i = stack.length - 1; i >= pos; i--) {\n if (handler.end) handler.end(stack[i]);\n }\n stack.length = pos;\n }\n }\n};\nvar regDoctype = /^\\s]+))?)*)\\s*(\\/?)>/i;\nvar regEndTag = /^<\\/([-A-Za-z0-9_]+)[^>]*>/;\nvar regStartTag = /^<([-A-Za-z0-9_]+)((?:\\s+[-A-Za-z0-9_:@.]+(?:\\s*=\\s*(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>\\s]+))?)*)\\s*(\\/?)>/i;\nvar regAttr = /([-A-Za-z0-9_:@.]+)(?:\\s*=\\s*(?:(?:\"((?:\\\\.|[^\"])*)\")|(?:'((?:\\\\.|[^'])*)')|([^>\\s]+)))?/g;\n\nvar SPECIAL = arrToMap('script,style'.split(','));\n\nmodule.exports = exports;\n","var restArgs = require('./restArgs');\nvar toArr = require('./toArr');\nexports = restArgs(function(fn, partials) {\n return function() {\n var args = [];\n args = args.concat(partials);\n args = args.concat(toArr(arguments));\n return fn.apply(this, args);\n };\n});\n\nmodule.exports = exports;\n","var now = require('./now');\nvar root = require('./root');\nvar performance = root.performance;\nvar process = root.process;\nvar loadTime;\nif (performance && performance.now) {\n exports = function() {\n return performance.now();\n };\n} else if (process && process.hrtime) {\n var getNanoSeconds = function() {\n var hr = process.hrtime();\n return hr[0] * 1e9 + hr[1];\n };\n loadTime = getNanoSeconds() - process.uptime() * 1e9;\n exports = function() {\n return (getNanoSeconds() - loadTime) / 1e6;\n };\n} else {\n loadTime = now();\n exports = function() {\n return now() - loadTime;\n };\n}\n\nmodule.exports = exports;\n","var isStr = require('./isStr');\nvar isArr = require('./isArr');\nvar contain = require('./contain');\nvar each = require('./each');\nexports = function(obj, filter, omit) {\n if (isStr(filter)) filter = [filter];\n if (isArr(filter)) {\n var keys = filter;\n filter = function(val, key) {\n return contain(keys, key);\n };\n }\n var ret = {};\n var iteratee = function(val, key) {\n if (filter(val, key)) ret[key] = val;\n };\n if (omit) {\n iteratee = function(val, key) {\n if (!filter(val, key)) ret[key] = val;\n };\n }\n each(obj, iteratee);\n return ret;\n};\n\nmodule.exports = exports;\n","var memoize = require('./memoize');\nvar camelCase = require('./camelCase');\nvar upperFirst = require('./upperFirst');\nvar has = require('./has');\nvar kebabCase = require('./kebabCase');\nexports = memoize(function(name) {\n name = name.replace(regPrefixes, '');\n name = camelCase(name);\n if (has(style, name)) return name;\n var i = prefixes.length;\n while (i--) {\n var prefixName = prefixes[i] + upperFirst(name);\n if (has(style, prefixName)) return prefixName;\n }\n return name;\n});\nexports.dash = memoize(function(name) {\n var camelCaseResult = exports(name);\n return (\n (regPrefixes.test(camelCaseResult) ? '-' : '') +\n kebabCase(camelCaseResult)\n );\n});\nvar prefixes = ['O', 'ms', 'Moz', 'Webkit'];\nvar regPrefixes = /^(O)|(ms)|(Moz)|(Webkit)|(-o-)|(-ms-)|(-moz-)|(-webkit-)/g;\nvar style = document.createElement('p').style;\n\nmodule.exports = exports;\n","var isArr = require('./isArr');\nvar safeGet = require('./safeGet');\nexports = function(path) {\n if (!isArr(path)) return shallowProperty(path);\n return function(obj) {\n return safeGet(obj, path);\n };\n};\nfunction shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n\nmodule.exports = exports;\n","var trim = require('./trim');\nvar each = require('./each');\nvar isUndef = require('./isUndef');\nvar isArr = require('./isArr');\nvar map = require('./map');\nvar isEmpty = require('./isEmpty');\nvar filter = require('./filter');\nvar isObj = require('./isObj');\nexports = {\n parse: function(str) {\n var ret = {};\n str = trim(str).replace(regIllegalChars, '');\n each(str.split('&'), function(param) {\n var parts = param.split('=');\n var key = parts.shift(),\n val = parts.length > 0 ? parts.join('=') : null;\n key = decodeURIComponent(key);\n val = decodeURIComponent(val);\n if (isUndef(ret[key])) {\n ret[key] = val;\n } else if (isArr(ret[key])) {\n ret[key].push(val);\n } else {\n ret[key] = [ret[key], val];\n }\n });\n return ret;\n },\n stringify: function(obj, arrKey) {\n return filter(\n map(obj, function(val, key) {\n if (isObj(val) && isEmpty(val)) return '';\n if (isArr(val)) return exports.stringify(val, key);\n return (\n (arrKey\n ? encodeURIComponent(arrKey)\n : encodeURIComponent(key)) +\n '=' +\n encodeURIComponent(val)\n );\n }),\n function(str) {\n return str.length > 0;\n }\n ).join('&');\n }\n};\nvar regIllegalChars = /^(\\?|#|&)/g;\n\nmodule.exports = exports;\n","var now = require('./now');\nvar isBrowser = require('./isBrowser');\nvar raf, cancel;\nvar lastTime = 0;\nif (isBrowser) {\n raf = window.requestAnimationFrame;\n cancel = window.cancelAnimationFrame;\n var vendors = ['ms', 'moz', 'webkit', 'o'];\n for (var i = 0, len = vendors.length; i < len && !raf; i++) {\n raf = window[vendors[i] + 'RequestAnimationFrame'];\n cancel =\n window[vendors[i] + 'CancelAnimationFrame'] ||\n window[vendors[i] + 'CancelRequestAnimationFrame'];\n }\n if (raf) {\n raf = raf.bind(window);\n cancel = cancel.bind(window);\n }\n}\nraf =\n raf ||\n function(cb) {\n var curTime = now();\n var timeToCall = Math.max(0, 16 - (curTime - lastTime));\n var id = setTimeout(function() {\n cb(curTime + timeToCall);\n }, timeToCall);\n lastTime = curTime + timeToCall;\n return id;\n };\ncancel =\n cancel ||\n function(id) {\n clearTimeout(id);\n };\nraf.cancel = cancel;\nexports = raf;\n\nmodule.exports = exports;\n","exports = function(min, max, floating) {\n if (max == null) {\n max = min;\n min = 0;\n }\n var rand = Math.random();\n if (floating || min % 1 || max % 1) {\n return Math.min(\n min +\n rand *\n (max - min + parseFloat('1e-' + ((rand + '').length - 1))),\n max\n );\n }\n return min + Math.floor(rand * (max - min + 1));\n};\n\nmodule.exports = exports;\n","var random = require('./random');\nvar isBrowser = require('./isBrowser');\nvar isNode = require('./isNode');\nexports = function(size) {\n var ret = new Uint8Array(size);\n for (var i = 0; i < size; i++) ret[i] = random(0, 255);\n return ret;\n};\nvar crypto;\nif (isBrowser) {\n crypto = window.crypto || window.msCrypto;\n if (crypto) {\n exports = function(size) {\n var ret = new Uint8Array(size);\n crypto.getRandomValues(ret);\n return ret;\n };\n }\n} else if (isNode) {\n crypto = eval('require')('crypto');\n exports = function(size) {\n return crypto.randomBytes(size);\n };\n}\n\nmodule.exports = exports;\n","var fns = [];\nvar listener;\nvar doc = document;\nvar hack = doc.documentElement.doScroll;\nvar domContentLoaded = 'DOMContentLoaded';\nvar loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);\nif (!loaded) {\n doc.addEventListener(\n domContentLoaded,\n (listener = function() {\n doc.removeEventListener(domContentLoaded, listener);\n loaded = 1;\n\n while ((listener = fns.shift())) listener();\n })\n );\n}\nexports = function(fn) {\n loaded ? setTimeout(fn, 0) : fns.push(fn);\n};\n\nmodule.exports = exports;\n","var safeCb = require('./safeCb');\nexports = function(arr, iterator, ctx) {\n var ret = [];\n iterator = safeCb(iterator, ctx);\n var i = -1;\n var len = arr.length;\n while (++i < len) {\n var val = arr[i];\n if (iterator(val, i, arr)) {\n ret.push(val);\n arr.splice(i, 1);\n }\n }\n return ret;\n};\n\nmodule.exports = exports;\n","exports = function(str, n) {\n var ret = '';\n if (n < 1) return '';\n while (n > 0) {\n if (n & 1) ret += str;\n n >>= 1;\n str += str;\n }\n return ret;\n};\n\nmodule.exports = exports;\n","var escapeRegExp = require('./escapeRegExp');\nexports = function(str, substr, newSubstr) {\n return str.replace(new RegExp(escapeRegExp(substr), 'g'), newSubstr);\n};\n\nmodule.exports = exports;\n","exports = function(fn, startIdx) {\n startIdx = startIdx == null ? fn.length - 1 : +startIdx;\n return function() {\n var len = Math.max(arguments.length - startIdx, 0);\n var rest = new Array(len);\n var i;\n for (i = 0; i < len; i++) rest[i] = arguments[i + startIdx];\n\n switch (startIdx) {\n case 0:\n return fn.call(this, rest);\n case 1:\n return fn.call(this, arguments[0], rest);\n case 2:\n return fn.call(this, arguments[0], arguments[1], rest);\n }\n var args = new Array(startIdx + 1);\n for (i = 0; i < startIdx; i++) args[i] = arguments[i];\n args[startIdx] = rest;\n return fn.apply(this, args);\n };\n};\n\nmodule.exports = exports;\n","exports = function(arr) {\n var len = arr.length;\n var ret = Array(len);\n len--;\n for (var i = 0; i <= len; i++) {\n ret[len - i] = arr[i];\n }\n return ret;\n};\n\nmodule.exports = exports;\n","exports = function(rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var min = mMin(r, g, b);\n var max = mMax(r, g, b);\n var delta = max - min;\n var h;\n var s;\n if (max === min) {\n h = 0;\n } else if (r === max) {\n h = (g - b) / delta;\n } else if (g === max) {\n h = 2 + (b - r) / delta;\n } else {\n h = 4 + (r - g) / delta;\n }\n h = mMin(h * 60, 360);\n if (h < 0) h += 360;\n var l = (min + max) / 2;\n if (max === min) {\n s = 0;\n } else if (l <= 0.5) {\n s = delta / (max + min);\n } else {\n s = delta / (2 - max - min);\n }\n var ret = [round(h), round(s * 100), round(l * 100)];\n if (rgb[3]) ret[3] = rgb[3];\n return ret;\n};\nvar mMin = Math.min;\nvar mMax = Math.max;\nvar round = Math.round;\n\nmodule.exports = exports;\n","var cookie = require('./cookie');\nexports = function(key) {\n var location = window.location;\n var hostname = location.hostname;\n var pathname = location.pathname;\n var hostNames = hostname.split('.');\n var pathNames = pathname.split('/');\n var domain = '';\n var pathLen = pathNames.length;\n var path;\n if (del()) return;\n for (var i = hostNames.length - 1; i >= 0; i--) {\n var hostName = hostNames[i];\n if (hostName === '') continue;\n domain = domain === '' ? hostName : hostName + '.' + domain;\n path = '/';\n if (\n del({\n domain: domain,\n path: path\n }) ||\n del({\n domain: domain\n })\n )\n return;\n for (var j = 0; j < pathLen; j++) {\n var pathName = pathNames[j];\n if (pathName === '') continue;\n path += pathName;\n if (\n del({\n domain: domain,\n path: path\n }) ||\n del({\n path: path\n })\n )\n return;\n path += '/';\n if (\n del({\n domain: domain,\n path: path\n }) ||\n del({\n path: path\n })\n )\n return;\n }\n }\n function del(options) {\n options = options || {};\n cookie.remove(key, options);\n return !cookie.get(key);\n }\n};\n\nmodule.exports = exports;\n","var isBrowser = require('./isBrowser');\nexports = isBrowser ? window : global;\n\nmodule.exports = exports;\n","exports = function(str, chars) {\n if (chars == null) {\n if (str.trimRight) {\n return str.trimRight();\n }\n chars = ' \\r\\n\\t\\f\\v';\n }\n var end = str.length - 1;\n var charLen = chars.length;\n var found = true;\n var i;\n var c;\n while (found && end >= 0) {\n found = false;\n i = -1;\n c = str.charAt(end);\n while (++i < charLen) {\n if (c === chars[i]) {\n found = true;\n end--;\n break;\n }\n }\n }\n return end >= 0 ? str.substring(0, end + 1) : '';\n};\n\nmodule.exports = exports;\n","var isFn = require('./isFn');\nvar isObj = require('./isObj');\nvar isArr = require('./isArr');\nvar optimizeCb = require('./optimizeCb');\nvar matcher = require('./matcher');\nvar identity = require('./identity');\nvar property = require('./property');\nexports = function(val, ctx, argCount) {\n if (val == null) return identity;\n if (isFn(val)) return optimizeCb(val, ctx, argCount);\n if (isObj(val) && !isArr(val)) return matcher(val);\n return property(val);\n};\n\nmodule.exports = exports;\n","var isUndef = require('./isUndef');\nvar castPath = require('./castPath');\nexports = function(obj, path) {\n path = castPath(path, obj);\n var prop;\n prop = path.shift();\n while (!isUndef(prop)) {\n obj = obj[prop];\n if (obj == null) return;\n prop = path.shift();\n }\n return obj;\n};\n\nmodule.exports = exports;\n","var castPath = require('./castPath');\nvar isUndef = require('./isUndef');\nvar toStr = require('./toStr');\nvar isSymbol = require('./isSymbol');\nvar isStr = require('./isStr');\nexports = function(obj, path, val) {\n path = castPath(path, obj);\n var lastProp = path.pop();\n var prop;\n prop = path.shift();\n while (!isUndef(prop)) {\n if (!isStr(prop) && !isSymbol(prop)) {\n prop = toStr(prop);\n }\n if (\n prop === '__proto__' ||\n prop === 'constructor' ||\n prop === 'prototype'\n ) {\n return;\n }\n if (!obj[prop]) obj[prop] = {};\n obj = obj[prop];\n prop = path.shift();\n }\n obj[lastProp] = val;\n};\n\nmodule.exports = exports;\n","var memStorage = require('./memStorage');\nexports = function(type) {\n type = type || 'local';\n var ret;\n switch (type) {\n case 'local':\n ret = window.localStorage;\n break;\n case 'session':\n ret = window.sessionStorage;\n break;\n }\n try {\n var x = 'test-localStorage-' + Date.now();\n ret.setItem(x, x);\n var y = ret.getItem(x);\n ret.removeItem(x);\n if (y !== x) throw new Error();\n } catch (e) {\n return memStorage;\n }\n return ret;\n};\n\nmodule.exports = exports;\n","var Url = require('./Url');\nexports = function(url1, url2) {\n url1 = new Url(url1);\n url2 = new Url(url2);\n url1.port = url1.port | 0 || (url1.protocol === 'https' ? 443 : 80);\n url2.port = url2.port | 0 || (url2.protocol === 'https' ? 443 : 80);\n return (\n url1.protocol === url2.protocol &&\n url1.hostname === url2.hostname &&\n url1.port === url2.port\n );\n};\n\nmodule.exports = exports;\n","exports = function(arr, start, end) {\n var len = arr.length;\n if (start == null) {\n start = 0;\n } else if (start < 0) {\n start = Math.max(len + start, 0);\n } else {\n start = Math.min(start, len);\n }\n if (end == null) {\n end = len;\n } else if (end < 0) {\n end = Math.max(len + end, 0);\n } else {\n end = Math.min(end, len);\n }\n var ret = [];\n while (start < end) ret.push(arr[start++]);\n return ret;\n};\n\nmodule.exports = exports;\n","var safeCb = require('./safeCb');\nvar isArrLike = require('./isArrLike');\nvar keys = require('./keys');\nexports = function(obj, predicate, ctx) {\n predicate = safeCb(predicate, ctx);\n var _keys = !isArrLike(obj) && keys(obj);\n var len = (_keys || obj).length;\n for (var i = 0; i < len; i++) {\n var key = _keys ? _keys[i] : i;\n if (predicate(obj[key], key, obj)) return true;\n }\n return false;\n};\n\nmodule.exports = exports;\n","var isSorted = require('./isSorted');\nvar defaults = require('./defaults');\nvar keys = require('./keys');\nvar isArr = require('./isArr');\nvar isObj = require('./isObj');\nexports = function(obj) {\n var options =\n arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n defaults(options, defOpts);\n var deep = options.deep,\n comparator = options.comparator;\n var visited = [];\n var visitedResult = [];\n function sort(obj) {\n var idx = visited.indexOf(obj);\n if (idx > -1) {\n return visitedResult[idx];\n }\n var result;\n if (isArr(obj)) {\n result = [];\n visited.push(obj);\n visitedResult.push(result);\n for (var i = 0, len = obj.length; i < len; i++) {\n var value = obj[i];\n if (deep && isObj(value)) {\n result[i] = sort(value);\n } else {\n result[i] = value;\n }\n }\n } else {\n result = {};\n visited.push(obj);\n visitedResult.push(result);\n var _keys = keys(obj).sort(comparator);\n for (var _i = 0, _len = _keys.length; _i < _len; _i++) {\n var key = _keys[_i];\n var _value = obj[key];\n if (deep && isObj(_value)) {\n result[key] = sort(_value);\n } else {\n result[key] = _value;\n }\n }\n }\n return result;\n }\n return sort(obj);\n};\nvar defOpts = {\n deep: false,\n comparator: isSorted.defComparator\n};\n\nmodule.exports = exports;\n","var regUpperCase = /([A-Z])/g;\nvar regSeparator = /[_.\\- ]+/g;\nvar regTrim = /(^-)|(-$)/g;\nexports = function(str) {\n str = str\n .replace(regUpperCase, '-$1')\n .toLowerCase()\n .replace(regSeparator, '-')\n .replace(regTrim, '');\n return str.split('-');\n};\n\nmodule.exports = exports;\n","exports = function(str, prefix) {\n return str.indexOf(prefix) === 0;\n};\n\nmodule.exports = exports;\n","var type = require('./type');\nvar upperFirst = require('./upperFirst');\nvar toStr = require('./toStr');\nvar isUndef = require('./isUndef');\nvar isFn = require('./isFn');\nvar isRegExp = require('./isRegExp');\nexports = function(obj, spaces) {\n return JSON.stringify(obj, serializer(), spaces);\n};\nfunction serializer() {\n var stack = [];\n var keys = [];\n return function(key, val) {\n if (stack.length > 0) {\n var pos = stack.indexOf(this);\n if (pos > -1) {\n stack.splice(pos + 1);\n keys.splice(pos, Infinity, key);\n } else {\n stack.push(this);\n keys.push(key);\n }\n var valPos = stack.indexOf(val);\n if (valPos > -1) {\n if (stack[0] === val) {\n val = '[Circular ~]';\n } else {\n val =\n '[Circular ~.' + keys.slice(0, valPos).join('.') + ']';\n }\n }\n } else {\n stack.push(val);\n }\n if (isRegExp(val) || isFn(val)) {\n val = '[' + upperFirst(type(val)) + ' ' + toStr(val) + ']';\n } else if (isUndef(val)) {\n val = null;\n }\n return val;\n };\n}\n\nmodule.exports = exports;\n","var escapeJsStr = require('./escapeJsStr');\nvar type = require('./type');\nvar toStr = require('./toStr');\nvar endWith = require('./endWith');\nvar toSrc = require('./toSrc');\nvar keys = require('./keys');\nvar each = require('./each');\nvar Class = require('./Class');\nvar getProto = require('./getProto');\nvar difference = require('./difference');\nvar extend = require('./extend');\nvar isPromise = require('./isPromise');\nvar filter = require('./filter');\nvar now = require('./now');\nvar allKeys = require('./allKeys');\nvar contain = require('./contain');\nvar isObj = require('./isObj');\nvar isMiniProgram = require('./isMiniProgram');\nvar create = require('./create');\nvar startWith = require('./startWith');\nvar safeSet = require('./safeSet');\nvar defineProp = require('./defineProp');\nvar pick = require('./pick');\nvar isArrLike = require('./isArrLike');\nexports = function(obj) {\n var _ref =\n arguments.length > 1 && arguments[1] !== undefined\n ? arguments[1]\n : {},\n self = _ref.self,\n _ref$startTime = _ref.startTime,\n startTime = _ref$startTime === void 0 ? now() : _ref$startTime,\n _ref$timeout = _ref.timeout,\n timeout = _ref$timeout === void 0 ? 0 : _ref$timeout,\n _ref$depth = _ref.depth,\n depth = _ref$depth === void 0 ? 0 : _ref$depth,\n _ref$curDepth = _ref.curDepth,\n curDepth = _ref$curDepth === void 0 ? 1 : _ref$curDepth,\n _ref$visitor = _ref.visitor,\n visitor = _ref$visitor === void 0 ? new Visitor() : _ref$visitor,\n _ref$unenumerable = _ref.unenumerable,\n unenumerable = _ref$unenumerable === void 0 ? false : _ref$unenumerable,\n _ref$symbol = _ref.symbol,\n symbol = _ref$symbol === void 0 ? false : _ref$symbol,\n _ref$accessGetter = _ref.accessGetter,\n accessGetter = _ref$accessGetter === void 0 ? false : _ref$accessGetter,\n _ref$ignore = _ref.ignore,\n ignore = _ref$ignore === void 0 ? [] : _ref$ignore;\n var json = '';\n var options = {\n visitor: visitor,\n unenumerable: unenumerable,\n symbol: symbol,\n accessGetter: accessGetter,\n depth: depth,\n curDepth: curDepth + 1,\n timeout: timeout,\n startTime: startTime,\n ignore: ignore\n };\n var t = type(obj, false);\n if (t === 'String') {\n json = wrapStr(obj);\n } else if (t === 'Number') {\n json = toStr(obj);\n if (endWith(json, 'Infinity')) {\n json = '{\"value\":\"'.concat(json, '\",\"type\":\"Number\"}');\n }\n } else if (t === 'NaN') {\n json = '{\"value\":\"NaN\",\"type\":\"Number\"}';\n } else if (t === 'Boolean') {\n json = obj ? 'true' : 'false';\n } else if (t === 'Null') {\n json = 'null';\n } else if (t === 'Undefined') {\n json = '{\"type\":\"Undefined\"}';\n } else if (t === 'Symbol') {\n var val = 'Symbol';\n try {\n val = toStr(obj);\n } catch (e) {}\n json = '{\"value\":'.concat(wrapStr(val), ',\"type\":\"Symbol\"}');\n } else {\n if (timeout && now() - startTime > timeout) {\n return wrapStr('Timeout');\n }\n if (depth && curDepth > depth) {\n return wrapStr('{...}');\n }\n json = '{';\n var parts = [];\n var visitedObj = visitor.get(obj);\n var id;\n if (visitedObj) {\n id = visitedObj.id;\n parts.push('\"reference\":'.concat(id));\n } else {\n id = visitor.set(obj);\n parts.push('\"id\":'.concat(id));\n }\n parts.push('\"type\":\"'.concat(t, '\"'));\n if (endWith(t, 'Function')) {\n parts.push('\"value\":'.concat(wrapStr(toSrc(obj))));\n } else if (t === 'RegExp') {\n parts.push('\"value\":'.concat(wrapStr(obj)));\n }\n if (!visitedObj) {\n var enumerableKeys = keys(obj);\n if (enumerableKeys.length) {\n parts.push(\n iterateObj(\n 'enumerable',\n enumerableKeys,\n self || obj,\n options\n )\n );\n }\n if (unenumerable) {\n var unenumerableKeys = difference(\n allKeys(obj, {\n prototype: false,\n unenumerable: true\n }),\n enumerableKeys\n );\n if (unenumerableKeys.length) {\n parts.push(\n iterateObj(\n 'unenumerable',\n unenumerableKeys,\n self || obj,\n options\n )\n );\n }\n }\n if (symbol) {\n var symbolKeys = filter(\n allKeys(obj, {\n prototype: false,\n symbol: true\n }),\n function(key) {\n return typeof key === 'symbol';\n }\n );\n if (symbolKeys.length) {\n parts.push(\n iterateObj('symbol', symbolKeys, self || obj, options)\n );\n }\n }\n var prototype = getProto(obj);\n if (prototype && !contain(ignore, prototype)) {\n var proto = '\"proto\":'.concat(\n exports(\n prototype,\n extend(options, {\n self: self || obj\n })\n )\n );\n parts.push(proto);\n }\n }\n json += parts.join(',') + '}';\n }\n return json;\n};\nfunction iterateObj(name, keys, obj, options) {\n var parts = [];\n each(keys, function(key) {\n var val;\n var descriptor = Object.getOwnPropertyDescriptor(obj, key);\n var hasGetter = descriptor && descriptor.get;\n var hasSetter = descriptor && descriptor.set;\n if (!options.accessGetter && hasGetter) {\n val = '(...)';\n } else {\n try {\n val = obj[key];\n if (contain(options.ignore, val)) {\n return;\n }\n if (isPromise(val)) {\n val.catch(function() {});\n }\n } catch (e) {\n val = e.message;\n }\n }\n parts.push(''.concat(wrapKey(key), ':').concat(exports(val, options)));\n if (hasGetter) {\n parts.push(\n ''\n .concat(wrapKey('get ' + toStr(key)), ':')\n .concat(exports(descriptor.get, options))\n );\n }\n if (hasSetter) {\n parts.push(\n ''\n .concat(wrapKey('set ' + toStr(key)), ':')\n .concat(exports(descriptor.set, options))\n );\n }\n });\n return '\"'.concat(name, '\":{') + parts.join(',') + '}';\n}\nfunction wrapKey(key) {\n return '\"'.concat(escapeJsonStr(key), '\"');\n}\nfunction wrapStr(str) {\n return '\"'.concat(escapeJsonStr(toStr(str)), '\"');\n}\nfunction escapeJsonStr(str) {\n return escapeJsStr(str)\n .replace(/\\\\'/g, \"'\")\n .replace(/\\t/g, '\\\\t');\n}\nvar Visitor = Class({\n initialize: function() {\n this.id = 1;\n this.visited = [];\n },\n set: function(val) {\n var visited = this.visited,\n id = this.id;\n var obj = {\n id: id,\n val: val\n };\n visited.push(obj);\n this.id++;\n return id;\n },\n get: function(val) {\n var visited = this.visited;\n for (var i = 0, len = visited.length; i < len; i++) {\n var obj = visited[i];\n if (val === obj.val) return obj;\n }\n return false;\n }\n});\nexports.parse = function(str) {\n var map = {};\n var obj = parse(JSON.parse(str), {\n map: map\n });\n correctReference(map);\n return obj;\n};\nfunction correctReference(map) {\n each(map, function(obj) {\n var enumerableKeys = keys(obj);\n for (var i = 0, len = enumerableKeys.length; i < len; i++) {\n var key = enumerableKeys[i];\n if (isObj(obj[key])) {\n var reference = obj[key].reference;\n if (reference && map[reference]) {\n obj[key] = map[reference];\n }\n }\n }\n var proto = getProto(obj);\n if (proto && proto.reference) {\n if (map[proto.reference]) {\n Object.setPrototypeOf(obj, map[proto.reference]);\n }\n }\n });\n}\nfunction parse(obj, options) {\n var map = options.map;\n if (!isObj(obj)) {\n return obj;\n }\n var id = obj.id,\n type = obj.type,\n value = obj.value,\n proto = obj.proto,\n reference = obj.reference;\n var enumerable = obj.enumerable,\n unenumerable = obj.unenumerable;\n if (reference) {\n return obj;\n }\n if (type === 'Number') {\n if (value === 'Infinity') {\n return Number.POSITIVE_INFINITY;\n } else if (value === '-Infinity') {\n return Number.NEGATIVE_INFINITY;\n }\n return NaN;\n } else if (type === 'Undefined') {\n return undefined;\n }\n var newObj;\n if (type === 'Function') {\n newObj = function() {};\n newObj.toString = function() {\n return value;\n };\n if (proto) {\n Object.setPrototypeOf(newObj, parse(proto, options));\n }\n } else if (type === 'RegExp') {\n newObj = strToRegExp(value);\n } else {\n if (type !== 'Object') {\n var Fn;\n if (!isMiniProgram) {\n Fn = new Function(type, '');\n } else {\n Fn = function() {};\n }\n if (proto) {\n Fn.prototype = parse(proto, options);\n }\n newObj = new Fn();\n } else {\n if (proto) {\n newObj = create(parse(proto, options));\n } else {\n newObj = create(null);\n }\n }\n }\n var defineProps = {};\n if (enumerable) {\n var len;\n if (isArrLike(enumerable)) {\n len = enumerable.length;\n delete enumerable.length;\n }\n enumerable = pick(enumerable, function(value, key) {\n return !handleGetterSetter(enumerable, value, key);\n });\n each(enumerable, function(value, key) {\n var defineProp = defineProps[key] || {};\n if (!defineProp.get) {\n newObj[key] = parse(value, options);\n }\n });\n if (len) {\n newObj.length = len;\n }\n }\n if (unenumerable) {\n unenumerable = pick(unenumerable, function(value, key) {\n return !handleGetterSetter(unenumerable, value, key);\n });\n each(unenumerable, function(value, key) {\n var defineProp = defineProps[key] || {};\n if (!defineProp.get) {\n value = parse(value, options);\n if (isObj(value) && value.reference) {\n var _reference = value.reference;\n value = function() {\n return map[_reference];\n };\n defineProp.get = value;\n } else {\n defineProp.value = value;\n }\n }\n defineProp.enumerable = false;\n defineProps[key] = defineProp;\n });\n }\n defineProp(newObj, defineProps);\n function handleGetterSetter(obj, val, key) {\n key = toStr(key);\n var isGetterAndSetter = false;\n each(['get', 'set'], function(type) {\n if (startWith(key, type + ' ')) {\n var realKey = key.replace(type + ' ', '');\n if (obj[realKey]) {\n val = parse(val, options);\n if (val === 'Timeout') {\n val = retTimeout;\n }\n safeSet(defineProps, [realKey, type], val);\n isGetterAndSetter = true;\n }\n }\n });\n return isGetterAndSetter;\n }\n map[id] = newObj;\n return newObj;\n}\nfunction retTimeout() {\n return 'Timeout';\n}\nfunction strToRegExp(str) {\n var lastSlash = str.lastIndexOf('/');\n return new RegExp(str.slice(1, lastSlash), str.slice(lastSlash + 1));\n}\n\nmodule.exports = exports;\n","var regHtmlTag = /<[^>]*>/g;\nexports = function(str) {\n return str.replace(regHtmlTag, '');\n};\n\nmodule.exports = exports;\n","var isStr = require('./isStr');\nvar toArr = require('./toArr');\nvar min = require('./min');\nvar map = require('./map');\nvar trim = require('./trim');\nexports = function(literals) {\n if (isStr(literals)) literals = toArr(literals);\n var str = '';\n for (\n var _len = arguments.length,\n placeholders = new Array(_len > 1 ? _len - 1 : 0),\n _key = 1;\n _key < _len;\n _key++\n ) {\n placeholders[_key - 1] = arguments[_key];\n }\n for (var i = 0, len = literals.length; i < len; i++) {\n str += literals[i];\n if (placeholders[i]) str += placeholders[i];\n }\n var lines = str.split('\\n');\n var indentLens = [];\n for (var _i = 0, _len2 = lines.length; _i < _len2; _i++) {\n var line = lines[_i];\n var _indent = line.match(regStartSpaces);\n if (_indent) {\n indentLens.push(_indent[1].length);\n }\n }\n var indent = indentLens.length > 0 ? min.apply(null, indentLens) : 0;\n return trim(\n map(lines, function(line) {\n return line[0] === ' ' ? line.slice(indent) : line;\n }).join('\\n')\n );\n};\nvar regStartSpaces = /^(\\s+)\\S+/;\n\nmodule.exports = exports;\n","var debounce = require('./debounce');\nexports = function(fn, wait) {\n return debounce(fn, wait, true);\n};\n\nmodule.exports = exports;\n","var isArrLike = require('./isArrLike');\nvar map = require('./map');\nvar isArr = require('./isArr');\nvar isStr = require('./isStr');\nexports = function(val) {\n if (!val) return [];\n if (isArr(val)) return val;\n if (isArrLike(val) && !isStr(val)) return map(val);\n return [val];\n};\n\nmodule.exports = exports;\n","var isStr = require('./isStr');\nexports = function(val) {\n if (isStr(val)) {\n val = val.toLowerCase();\n return val !== '0' && val !== '' && val !== 'false';\n }\n return !!val;\n};\n\nmodule.exports = exports;\n","var doc = document;\nexports = function(str) {\n var fragment = doc.createElement('body');\n fragment.innerHTML = str;\n return fragment.childNodes[0];\n};\nif (doc.createRange && doc.body) {\n var range = doc.createRange();\n range.selectNode(doc.body);\n if (range.createContextualFragment) {\n exports = function(str) {\n return range.createContextualFragment(str).childNodes[0];\n };\n }\n}\n\nmodule.exports = exports;\n","var toNum = require('./toNum');\nexports = function(val) {\n if (!val) return val === 0 ? val : 0;\n val = toNum(val);\n return val - (val % 1);\n};\n\nmodule.exports = exports;\n","var isNum = require('./isNum');\nvar isObj = require('./isObj');\nvar isFn = require('./isFn');\nvar isStr = require('./isStr');\nexports = function(val) {\n if (isNum(val)) return val;\n if (isObj(val)) {\n var temp = isFn(val.valueOf) ? val.valueOf() : val;\n val = isObj(temp) ? temp + '' : temp;\n }\n if (!isStr(val)) return val === 0 ? val : +val;\n return +val;\n};\n\nmodule.exports = exports;\n","var isNil = require('./isNil');\nexports = function(fn) {\n if (isNil(fn)) return '';\n try {\n return fnToStr.call(fn);\n } catch (e) {}\n try {\n return fn + '';\n } catch (e) {}\n return '';\n};\nvar fnToStr = Function.prototype.toString;\n\nmodule.exports = exports;\n","exports = function(val) {\n return val == null ? '' : val.toString();\n};\n\nmodule.exports = exports;\n","var ltrim = require('./ltrim');\nvar rtrim = require('./rtrim');\nexports = function(str, chars) {\n if (chars == null && str.trim) {\n return str.trim();\n }\n return ltrim(rtrim(str, chars), chars);\n};\n\nmodule.exports = exports;\n","var defaults = require('./defaults');\nvar isUndef = require('./isUndef');\nexports = function(txt, width) {\n var options =\n arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n defaults(options, defOptions);\n var ellipsis = options.ellipsis,\n separator = options.separator;\n var len = txt.length;\n if (width > len) return txt;\n var end = width - ellipsis.length;\n if (end < 1) return ellipsis;\n var ret = txt.slice(0, end);\n if (isUndef(separator)) return ret + ellipsis;\n if (txt.indexOf(separator, end) !== end) {\n var idx = ret.lastIndexOf(separator);\n if (idx > -1) {\n ret = ret.slice(0, idx);\n }\n }\n return ret + ellipsis;\n};\nvar defOptions = {\n ellipsis: '...'\n};\n\nmodule.exports = exports;\n","var objToStr = require('./objToStr');\nvar isNaN = require('./isNaN');\nvar lowerCase = require('./lowerCase');\nvar isBuffer = require('./isBuffer');\nexports = function(val) {\n var lower =\n arguments.length > 1 && arguments[1] !== undefined\n ? arguments[1]\n : true;\n var ret;\n if (val === null) ret = 'Null';\n if (val === undefined) ret = 'Undefined';\n if (isNaN(val)) ret = 'NaN';\n if (isBuffer(val)) ret = 'Buffer';\n if (!ret) {\n ret = objToStr(val).match(regObj);\n if (ret) ret = ret[1];\n }\n if (!ret) return '';\n return lower ? lowerCase(ret) : ret;\n};\nvar regObj = /^\\[object\\s+(.*?)]$/;\n\nmodule.exports = exports;\n","exports = {};\n\nmodule.exports = exports;\n","var chunk = require('./chunk');\nvar map = require('./map');\n\nexports = {\n encode: function(arr) {\n if (arr.length < 32768) {\n return String.fromCodePoint.apply(String, arr);\n }\n return map(chunk(arr, 32767), function(nums) {\n return String.fromCodePoint.apply(String, nums);\n }).join('');\n },\n decode: function(str) {\n var ret = [];\n var i = 0;\n var len = str.length;\n while (i < len) {\n var c = str.charCodeAt(i++);\n\n if (c >= 0xd800 && c <= 0xdbff && i < len) {\n var tail = str.charCodeAt(i++);\n\n if ((tail & 0xfc00) === 0xdc00) {\n ret.push(((c & 0x3ff) << 10) + (tail & 0x3ff) + 0x10000);\n } else {\n ret.push(c);\n i--;\n }\n } else {\n ret.push(c);\n }\n }\n return ret;\n }\n};\n\nmodule.exports = exports;\n","var isBrowser = require('./isBrowser');\nvar SingleEmitter = require('./SingleEmitter');\nvar isOn = false;\nexports = {\n start: function() {\n isOn = true;\n },\n stop: function() {\n isOn = false;\n }\n};\nSingleEmitter.mixin(exports);\nif (isBrowser) {\n window.addEventListener('error', function(event) {\n if (event.error) {\n callListeners(event.error);\n } else if (event.message) {\n var e = new Error(event.message);\n e.stack = 'Error: '\n .concat(event.message, ' \\n at ')\n .concat(event.filename, ':')\n .concat(event.lineno, ':')\n .concat(event.colno);\n callListeners(e);\n }\n });\n window.addEventListener('unhandledrejection', function(e) {\n callListeners(e.reason);\n });\n} else {\n process.on('uncaughtException', callListeners);\n process.on('unhandledRejection', callListeners);\n}\nfunction callListeners(err) {\n if (!isOn) return;\n exports.emit(err);\n}\n\nmodule.exports = exports;\n","var escape = require('./escape');\nvar keys = require('./keys');\nvar invert = require('./invert');\nexports = function(str) {\n return regTest.test(str) ? str.replace(regReplace, replaceFn) : str;\n};\nvar map = invert(escape.map);\nvar regSrc = '(?:' + keys(map).join('|') + ')';\nvar regTest = new RegExp(regSrc);\nvar regReplace = new RegExp(regSrc, 'g');\nfunction replaceFn(match) {\n return map[match];\n}\n\nmodule.exports = exports;\n","var idCounter = 0;\nexports = function(prefix) {\n var id = ++idCounter + '';\n return prefix ? prefix + id : id;\n};\n\nmodule.exports = exports;\n","var filter = require('./filter');\nexports = function(arr, cmp) {\n cmp = cmp || isEqual;\n return filter(arr, function(item, idx, arr) {\n var len = arr.length;\n while (++idx < len) {\n if (cmp(item, arr[idx])) return false;\n }\n return true;\n });\n};\nfunction isEqual(a, b) {\n return a === b;\n}\n\nmodule.exports = exports;\n","var toStr = require('./toStr');\nexports = function(str) {\n return toStr(str).toLocaleUpperCase();\n};\n\nmodule.exports = exports;\n","exports = function(str) {\n if (str.length < 1) return str;\n return str[0].toUpperCase() + str.slice(1);\n};\n\nmodule.exports = exports;\n","var ucs2 = require('./ucs2');\n\nexports = {\n encode: function(str) {\n var codePoints = ucs2.decode(str);\n var byteArr = '';\n for (var i = 0, len = codePoints.length; i < len; i++) {\n byteArr += encodeCodePoint(codePoints[i]);\n }\n return byteArr;\n },\n decode: function(str, safe) {\n byteArr = ucs2.decode(str);\n byteIdx = 0;\n byteCount = byteArr.length;\n codePoint = 0;\n bytesSeen = 0;\n bytesNeeded = 0;\n lowerBoundary = 0x80;\n upperBoundary = 0xbf;\n var codePoints = [];\n var tmp;\n while ((tmp = decodeCodePoint(safe)) !== false) {\n codePoints.push(tmp);\n }\n return ucs2.encode(codePoints);\n }\n};\nvar fromCharCode = String.fromCharCode;\nfunction encodeCodePoint(codePoint) {\n if ((codePoint & 0xffffff80) === 0) {\n return fromCharCode(codePoint);\n }\n var ret = '',\n count,\n offset;\n\n if ((codePoint & 0xfffff800) === 0) {\n count = 1;\n offset = 0xc0;\n } else if ((codePoint & 0xffff0000) === 0) {\n count = 2;\n offset = 0xe0;\n } else if ((codePoint & 0xffe00000) == 0) {\n count = 3;\n offset = 0xf0;\n }\n ret += fromCharCode((codePoint >> (6 * count)) + offset);\n while (count > 0) {\n var tmp = codePoint >> (6 * (count - 1));\n ret += fromCharCode(0x80 | (tmp & 0x3f));\n count--;\n }\n return ret;\n}\nvar byteArr,\n byteIdx,\n byteCount,\n codePoint,\n bytesSeen,\n bytesNeeded,\n lowerBoundary,\n upperBoundary;\nfunction decodeCodePoint(safe) {\n while (true) {\n if (byteIdx >= byteCount && bytesNeeded) {\n if (safe) return goBack();\n throw new Error('Invalid byte index');\n }\n if (byteIdx === byteCount) return false;\n var byte = byteArr[byteIdx];\n byteIdx++;\n if (!bytesNeeded) {\n if ((byte & 0x80) === 0) {\n return byte;\n }\n\n if ((byte & 0xe0) === 0xc0) {\n bytesNeeded = 1;\n codePoint = byte & 0x1f;\n } else if ((byte & 0xf0) === 0xe0) {\n if (byte === 0xe0) lowerBoundary = 0xa0;\n if (byte === 0xed) upperBoundary = 0x9f;\n bytesNeeded = 2;\n codePoint = byte & 0xf;\n } else if ((byte & 0xf8) === 0xf0) {\n if (byte === 0xf0) lowerBoundary = 0x90;\n if (byte === 0xf4) upperBoundary = 0x8f;\n bytesNeeded = 3;\n codePoint = byte & 0x7;\n } else {\n if (safe) return goBack();\n throw new Error('Invalid UTF-8 detected');\n }\n continue;\n }\n if (byte < lowerBoundary || byte > upperBoundary) {\n if (safe) {\n byteIdx--;\n return goBack();\n }\n throw new Error('Invalid continuation byte');\n }\n lowerBoundary = 0x80;\n upperBoundary = 0xbf;\n codePoint = (codePoint << 6) | (byte & 0x3f);\n bytesSeen++;\n if (bytesSeen !== bytesNeeded) continue;\n var tmp = codePoint;\n codePoint = 0;\n bytesNeeded = 0;\n bytesSeen = 0;\n return tmp;\n }\n}\nfunction goBack() {\n var start = byteIdx - bytesSeen - 1;\n byteIdx = start + 1;\n codePoint = 0;\n bytesNeeded = 0;\n bytesSeen = 0;\n lowerBoundary = 0x80;\n upperBoundary = 0xbf;\n return byteArr[start];\n}\n\nmodule.exports = exports;\n","var randomBytes = require('./randomBytes');\nexports = function() {\n var b = randomBytes(16);\n b[6] = (b[6] & 0x0f) | 0x40;\n b[8] = (b[8] & 0x3f) | 0x80;\n return (\n hexBytes[b[0]] +\n hexBytes[b[1]] +\n hexBytes[b[2]] +\n hexBytes[b[3]] +\n '-' +\n hexBytes[b[4]] +\n hexBytes[b[5]] +\n '-' +\n hexBytes[b[6]] +\n hexBytes[b[7]] +\n '-' +\n hexBytes[b[8]] +\n hexBytes[b[9]] +\n '-' +\n hexBytes[b[10]] +\n hexBytes[b[11]] +\n hexBytes[b[12]] +\n hexBytes[b[13]] +\n hexBytes[b[14]] +\n hexBytes[b[15]]\n );\n};\nvar hexBytes = [];\nfor (var i = 0; i < 256; i++) {\n hexBytes[i] = (i + 0x100).toString(16).substr(1);\n}\n\nmodule.exports = exports;\n","var each = require('./each');\nexports = function(obj) {\n var ret = [];\n each(obj, function(val) {\n ret.push(val);\n });\n return ret;\n};\n\nmodule.exports = exports;\n","var meta = require('./meta');\nvar clamp = require('./clamp');\nvar trim = require('./trim');\nvar each = require('./each');\nvar map = require('./map');\nvar isNaN = require('./isNaN');\nexports = function() {\n var viewport = meta('viewport');\n if (!viewport) return 1;\n viewport = map(viewport.split(','), function(val) {\n return trim(val);\n });\n var minScale = 0.25,\n maxScale = 5,\n initialScale = 1;\n each(viewport, function(val) {\n val = val.split('=');\n var key = val[0];\n val = val[1];\n if (key === 'initial-scale') initialScale = +val;\n if (key === 'maximum-scale') maxScale = +val;\n if (key === 'minimum-scale') minScale = +val;\n });\n var ret = clamp(initialScale, minScale, maxScale);\n\n if (isNaN(ret)) return 1;\n return ret;\n};\n\nmodule.exports = exports;\n","var partial = require('./partial');\nexports = function(fn, wrapper) {\n return partial(wrapper, fn);\n};\n\nmodule.exports = exports;\n","exports = function(xpath) {\n var ret = [];\n var nodesSnapshot = document.evaluate(\n xpath,\n document,\n null,\n XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,\n null\n );\n for (var i = 0; i < nodesSnapshot.snapshotLength; i++) {\n ret.push(nodesSnapshot.snapshotItem(i));\n }\n return ret;\n};\n\nmodule.exports = exports;\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar elementRoles = [\r\n ['menuitem', 'command'],\r\n ['rel', 'roletype'],\r\n ['article', 'article'],\r\n ['header', 'banner'],\r\n ['input', 'button', [['type', 'checkbox']]],\r\n ['summary', 'button', [['aria-expanded', 'false']]],\r\n ['summary', 'button', [['aria-expanded', 'true']]],\r\n ['input', 'button', [['type', 'button']]],\r\n ['input', 'button', [['type', 'image']]],\r\n ['input', 'button', [['type', 'reset']]],\r\n ['input', 'button', [['type', 'submit']]],\r\n ['button', 'button'],\r\n ['td', 'cell'],\r\n ['input', 'checkbox', [['type', 'checkbox']]],\r\n ['th', 'columnheader'],\r\n ['input', 'combobox', [['type', 'email']]],\r\n ['input', 'combobox', [['type', 'search']]],\r\n ['input', 'combobox', [['type', 'tel']]],\r\n ['input', 'combobox', [['type', 'text']]],\r\n ['input', 'combobox', [['type', 'url']]],\r\n ['input', 'combobox', [['type', 'url']]],\r\n ['select', 'combobox'],\r\n ['select', 'combobox', [['size', 1]]],\r\n ['aside', 'complementary'],\r\n ['footer', 'contentinfo'],\r\n ['dd', 'definition'],\r\n ['dialog', 'dialog'],\r\n ['body', 'document'],\r\n ['figure', 'figure'],\r\n ['form', 'form'],\r\n ['form', 'form'],\r\n ['form', 'form'],\r\n ['span', 'generic'],\r\n ['div', 'generic'],\r\n ['table', 'grid', [['role', 'grid']]],\r\n ['td', 'gridcell', [['role', 'gridcell']]],\r\n ['details', 'group'],\r\n ['fieldset', 'group'],\r\n ['optgroup', 'group'],\r\n ['h1', 'heading'],\r\n ['h2', 'heading'],\r\n ['h3', 'heading'],\r\n ['h4', 'heading'],\r\n ['h5', 'heading'],\r\n ['h6', 'heading'],\r\n ['img', 'img'],\r\n ['img', 'img'],\r\n ['a', 'link'],\r\n ['area', 'link'],\r\n ['link', 'link'],\r\n ['menu', 'list'],\r\n ['ol', 'list'],\r\n ['ul', 'list'],\r\n ['select', 'listbox'],\r\n ['select', 'listbox'],\r\n ['select', 'listbox'],\r\n ['datalist', 'listbox'],\r\n ['li', 'listitem'],\r\n ['main', 'main'],\r\n ['math', 'math'],\r\n ['menuitem', 'command'],\r\n ['nav', 'navigation'],\r\n ['option', 'option'],\r\n ['progress', 'progressbar'],\r\n ['input', 'radio', [['type', 'radio']]],\r\n ['section', 'region'],\r\n ['section', 'region'],\r\n ['frame', 'region'],\r\n ['tr', 'row'],\r\n ['tbody', 'rowgroup'],\r\n ['tfoot', 'rowgroup'],\r\n ['thead', 'rowgroup'],\r\n ['th', 'rowheader', [['scope', 'row']]],\r\n ['input', 'searchbox', [['type', 'search']]],\r\n ['hr', 'separator'],\r\n ['input', 'slider', [['type', 'range']]],\r\n ['input', 'spinbutton', [['type', 'number']]],\r\n ['output', 'status'],\r\n ['table', 'table'],\r\n ['dfn', 'term'],\r\n ['input', 'textbox'],\r\n ['input', 'textbox', [['type', 'email']]],\r\n ['input', 'textbox', [['type', 'tel']]],\r\n ['input', 'textbox', [['type', 'text']]],\r\n ['input', 'textbox', [['type', 'url']]],\r\n ['textarea', 'textbox'],\r\n];\r\nexports.default = elementRoles;\r\n","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __values = (this && this.__values) || function(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n};\r\nvar __importDefault = (this && this.__importDefault) || function (mod) {\r\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar Component_1 = __importDefault(require(\"../share/Component\"));\r\nvar tool_highlight_1 = require(\"./overlay/tool_highlight\");\r\nvar util_1 = require(\"../share/util\");\r\nvar ResizeSensor_1 = __importDefault(require(\"licia/ResizeSensor\"));\r\nvar throttle_1 = __importDefault(require(\"licia/throttle\"));\r\nvar lowerCase_1 = __importDefault(require(\"licia/lowerCase\"));\r\nvar each_1 = __importDefault(require(\"licia/each\"));\r\nvar Color_1 = __importDefault(require(\"licia/Color\"));\r\nvar hex_1 = __importDefault(require(\"licia/hex\"));\r\nvar upperCase_1 = __importDefault(require(\"licia/upperCase\"));\r\nvar extend_1 = __importDefault(require(\"licia/extend\"));\r\nvar camelCase_1 = __importDefault(require(\"licia/camelCase\"));\r\nvar contain_1 = __importDefault(require(\"licia/contain\"));\r\nvar toNum_1 = __importDefault(require(\"licia/toNum\"));\r\nvar elementRoles_1 = __importDefault(require(\"./elementRoles\"));\r\nvar isStr_1 = __importDefault(require(\"licia/isStr\"));\r\nrequire(\"path2d-polyfill\");\r\nvar DomHighlighter = (function (_super) {\r\n __extends(DomHighlighter, _super);\r\n function DomHighlighter(container, options) {\r\n if (options === void 0) { options = {}; }\r\n var _this = _super.call(this, container, { compName: 'dom-highlighter' }, options) || this;\r\n _this.overlay = new tool_highlight_1.HighlightOverlay(window);\r\n _this.reset = function () {\r\n var viewportWidth = document.documentElement.clientWidth;\r\n var viewportHeight = document.documentElement.clientHeight;\r\n _this.overlay.reset({\r\n viewportSize: {\r\n width: viewportWidth,\r\n height: viewportHeight,\r\n },\r\n deviceScaleFactor: 1,\r\n pageScaleFactor: 1,\r\n pageZoomFactor: 1,\r\n emulationScaleFactor: 1,\r\n scrollX: window.scrollX,\r\n scrollY: window.scrollY,\r\n });\r\n };\r\n _this.initOptions(options, {\r\n showRulers: false,\r\n showExtensionLines: false,\r\n showInfo: true,\r\n showStyles: true,\r\n showAccessibilityInfo: true,\r\n colorFormat: 'hex',\r\n contentColor: 'rgba(111, 168, 220, .66)',\r\n paddingColor: 'rgba(147, 196, 125, .55)',\r\n borderColor: 'rgba(255, 229, 153, .66)',\r\n marginColor: 'rgba(246, 178, 107, .66)',\r\n monitorResize: true,\r\n });\r\n _this.overlay.setContainer(container);\r\n _this.overlay.setPlatform('mac');\r\n _this.redraw = (0, throttle_1.default)(function () {\r\n _this.reset();\r\n _this.draw();\r\n }, 16);\r\n _this.redraw();\r\n _this.bindEvent();\r\n return _this;\r\n }\r\n DomHighlighter.prototype.highlight = function (target, options) {\r\n if (options) {\r\n (0, extend_1.default)(this.options, options);\r\n }\r\n this.target = target;\r\n if (target instanceof HTMLElement && this.options.monitorResize) {\r\n if (this.resizeSensor) {\r\n this.resizeSensor.destroy();\r\n }\r\n this.resizeSensor = new ResizeSensor_1.default(target);\r\n this.resizeSensor.addListener(this.redraw);\r\n }\r\n this.redraw();\r\n };\r\n DomHighlighter.prototype.hide = function () {\r\n this.target = null;\r\n this.redraw();\r\n };\r\n DomHighlighter.prototype.intercept = function (interceptor) {\r\n this.interceptor = interceptor;\r\n };\r\n DomHighlighter.prototype.destroy = function () {\r\n window.removeEventListener('resize', this.redraw);\r\n window.removeEventListener('scroll', this.redraw);\r\n if (this.resizeSensor) {\r\n this.resizeSensor.destroy();\r\n }\r\n _super.prototype.destroy.call(this);\r\n };\r\n DomHighlighter.prototype.draw = function () {\r\n var target = this.target;\r\n if (!target) {\r\n return;\r\n }\r\n if (target instanceof Text) {\r\n this.drawText(target);\r\n }\r\n else {\r\n this.drawElement(target);\r\n }\r\n };\r\n DomHighlighter.prototype.drawText = function (target) {\r\n var options = this.options;\r\n var range = document.createRange();\r\n range.selectNode(target);\r\n var _a = range.getBoundingClientRect(), left = _a.left, top = _a.top, width = _a.width, height = _a.height;\r\n range.detach();\r\n var highlight = {\r\n paths: [\r\n {\r\n path: this.rectToPath({\r\n left: left,\r\n top: top,\r\n width: width,\r\n height: height,\r\n }),\r\n fillColor: normalizeColor(options.contentColor),\r\n name: 'content',\r\n },\r\n ],\r\n showExtensionLines: options.showExtensionLines,\r\n showRulers: options.showRulers,\r\n };\r\n if (options.showInfo) {\r\n highlight.elementInfo = {\r\n tagName: '#text',\r\n nodeWidth: width,\r\n nodeHeight: height,\r\n };\r\n }\r\n this.overlay.drawHighlight(highlight);\r\n };\r\n DomHighlighter.prototype.drawElement = function (target) {\r\n var highlight = {\r\n paths: this.getPaths(target),\r\n showExtensionLines: this.options.showExtensionLines,\r\n showRulers: this.options.showRulers,\r\n colorFormat: this.options.colorFormat,\r\n };\r\n if (this.options.showInfo) {\r\n highlight.elementInfo = this.getElementInfo(target);\r\n }\r\n if (this.interceptor) {\r\n var result = this.interceptor(highlight);\r\n if (result) {\r\n highlight = result;\r\n }\r\n }\r\n this.overlay.drawHighlight(highlight);\r\n };\r\n DomHighlighter.prototype.getPaths = function (target) {\r\n var options = this.options;\r\n var computedStyle = window.getComputedStyle(target);\r\n var _a = target.getBoundingClientRect(), left = _a.left, top = _a.top, width = _a.width, height = _a.height;\r\n var getNumStyle = function (name) {\r\n return (0, util_1.pxToNum)(computedStyle.getPropertyValue(name));\r\n };\r\n var ml = getNumStyle('margin-left');\r\n var mr = getNumStyle('margin-right');\r\n var mt = getNumStyle('margin-top');\r\n var mb = getNumStyle('margin-bottom');\r\n var bl = getNumStyle('border-left-width');\r\n var br = getNumStyle('border-right-width');\r\n var bt = getNumStyle('border-top-width');\r\n var bb = getNumStyle('border-bottom-width');\r\n var pl = getNumStyle('padding-left');\r\n var pr = getNumStyle('padding-right');\r\n var pt = getNumStyle('padding-top');\r\n var pb = getNumStyle('padding-bottom');\r\n var contentPath = {\r\n path: this.rectToPath({\r\n left: left + bl + pl,\r\n top: top + bt + pt,\r\n width: width - bl - pl - br - pr,\r\n height: height - bt - pt - bb - pb,\r\n }),\r\n fillColor: normalizeColor(options.contentColor),\r\n name: 'content',\r\n };\r\n var paddingPath = {\r\n path: this.rectToPath({\r\n left: left + bl,\r\n top: top + bt,\r\n width: width - bl - br,\r\n height: height - bt - bb,\r\n }),\r\n fillColor: normalizeColor(options.paddingColor),\r\n name: 'padding',\r\n };\r\n var borderPath = {\r\n path: this.rectToPath({\r\n left: left,\r\n top: top,\r\n width: width,\r\n height: height,\r\n }),\r\n fillColor: normalizeColor(options.borderColor),\r\n name: 'border',\r\n };\r\n var marginPath = {\r\n path: this.rectToPath({\r\n left: left - ml,\r\n top: top - mt,\r\n width: width + ml + mr,\r\n height: height + mt + mb,\r\n }),\r\n fillColor: normalizeColor(options.marginColor),\r\n name: 'margin',\r\n };\r\n return [contentPath, paddingPath, borderPath, marginPath];\r\n };\r\n DomHighlighter.prototype.getElementInfo = function (target) {\r\n var _a = target.getBoundingClientRect(), width = _a.width, height = _a.height;\r\n var className = target.getAttribute('class') || '';\r\n className = className\r\n .split(/\\s+/)\r\n .map(function (c) { return '.' + c; })\r\n .join('');\r\n var elementInfo = {\r\n tagName: (0, lowerCase_1.default)(target.tagName),\r\n className: className,\r\n idValue: target.id,\r\n nodeWidth: width,\r\n nodeHeight: height,\r\n };\r\n if (this.options.showStyles) {\r\n elementInfo.style = this.getStyles(target);\r\n }\r\n if (this.options.showAccessibilityInfo) {\r\n (0, extend_1.default)(elementInfo, this.getAccessibilityInfo(target));\r\n }\r\n return elementInfo;\r\n };\r\n DomHighlighter.prototype.getStyles = function (target) {\r\n var computedStyle = window.getComputedStyle(target);\r\n var hasTextChildren = false;\r\n var childNodes = target.childNodes;\r\n for (var i = 0, len = childNodes.length; i < len; i++) {\r\n if (childNodes[i].nodeType === 3) {\r\n hasTextChildren = true;\r\n }\r\n }\r\n var properties = [];\r\n if (hasTextChildren) {\r\n properties.push('color', 'font-family', 'font-size', 'line-height');\r\n }\r\n properties.push('padding', 'margin', 'background-color');\r\n return propertiesToValues(computedStyle, properties);\r\n };\r\n DomHighlighter.prototype.getAccessibilityInfo = function (target) {\r\n var computedStyle = window.getComputedStyle(target);\r\n return __assign({ showAccessibilityInfo: true, contrast: __assign({ contrastAlgorithm: 'aa', textOpacity: 0.1 }, propertiesToValues(computedStyle, ['font-size', 'font-weight', 'background-color', 'text-opacity'], true)), isKeyboardFocusable: this.isFocusable(target) }, this.getAccessibleNameAndRole(target));\r\n };\r\n DomHighlighter.prototype.isFocusable = function (target) {\r\n var tagName = (0, lowerCase_1.default)(target.tagName);\r\n if ((0, contain_1.default)(['a', 'button', 'input', 'textarea', 'select', 'details'], tagName)) {\r\n return true;\r\n }\r\n var tabIdx = target.getAttribute('tabindex');\r\n if (tabIdx && (0, toNum_1.default)(tabIdx) > -1) {\r\n return true;\r\n }\r\n return false;\r\n };\r\n DomHighlighter.prototype.getAccessibleNameAndRole = function (target) {\r\n var name = target.getAttribute('labelledby') || target.getAttribute('aria-label');\r\n var role = target.getAttribute('role');\r\n var tagName = (0, lowerCase_1.default)(target.tagName);\r\n elementRoles_1.default.forEach(function (value) {\r\n var e_1, _a;\r\n if (role) {\r\n return;\r\n }\r\n var name = value[0];\r\n var attributes = value[2];\r\n if (name !== tagName) {\r\n return;\r\n }\r\n if (attributes) {\r\n try {\r\n for (var attributes_1 = __values(attributes), attributes_1_1 = attributes_1.next(); !attributes_1_1.done; attributes_1_1 = attributes_1.next()) {\r\n var attribute = attributes_1_1.value;\r\n if (target.getAttribute(attribute[0]) !== attribute[1]) {\r\n return;\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (attributes_1_1 && !attributes_1_1.done && (_a = attributes_1.return)) _a.call(attributes_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n }\r\n role = value[1];\r\n });\r\n return {\r\n accessibleName: name || target.getAttribute('title') || '',\r\n accessibleRole: role || 'generic',\r\n };\r\n };\r\n DomHighlighter.prototype.bindEvent = function () {\r\n var _this = this;\r\n window.addEventListener('resize', this.redraw);\r\n window.addEventListener('scroll', this.redraw);\r\n this.on('optionChange', function () { return _this.redraw(); });\r\n };\r\n DomHighlighter.prototype.rectToPath = function (_a) {\r\n var left = _a.left, top = _a.top, width = _a.width, height = _a.height;\r\n var path = [];\r\n path.push('M', left, top);\r\n path.push('L', left + width, top);\r\n path.push('L', left + width, top + height);\r\n path.push('L', left, top + height);\r\n path.push('Z');\r\n return path;\r\n };\r\n return DomHighlighter;\r\n}(Component_1.default));\r\nexports.default = DomHighlighter;\r\nmodule.exports = DomHighlighter;\r\nmodule.exports.default = DomHighlighter;\r\nvar regRgb = /^rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/;\r\nvar regRgba = /^rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d*(?:\\.\\d+)?)\\)$/;\r\nfunction isColor(color) {\r\n return regRgb.test(color) || regRgba.test(color);\r\n}\r\nfunction rgbToHex(rgb) {\r\n var color = Color_1.default.parse(rgb);\r\n var opacity = color.val[3] || 1;\r\n color.val = color.val.slice(0, 3);\r\n color.val.push(Math.round(255 * opacity));\r\n return '#' + (0, upperCase_1.default)(hex_1.default.encode(color.val));\r\n}\r\nfunction normalizeColor(color) {\r\n if ((0, isStr_1.default)(color)) {\r\n return color;\r\n }\r\n color = color;\r\n if (color.a) {\r\n return \"rgba(\".concat(color.r, \", \").concat(color.g, \", \").concat(color.b, \", \").concat(color.a, \")\");\r\n }\r\n return \"rgb(\".concat(color.r, \", \").concat(color.g, \", \").concat(color.b, \")\");\r\n}\r\nfunction propertiesToValues(computedStyle, properties, useCamelCase) {\r\n if (useCamelCase === void 0) { useCamelCase = false; }\r\n var ret = {};\r\n (0, each_1.default)(properties, function (property) {\r\n var value = computedStyle[property === 'text-opacity' ? 'color' : property];\r\n if (!value) {\r\n return;\r\n }\r\n if (isColor(value)) {\r\n value = rgbToHex(value);\r\n if (property === 'text-opacity') {\r\n value = value.slice(7);\r\n value = hex_1.default.decode(value)[0] / 255;\r\n }\r\n }\r\n if (useCamelCase) {\r\n property = (0, camelCase_1.default)(property);\r\n }\r\n ret[property] = value;\r\n });\r\n return ret;\r\n}\r\n","\"use strict\";\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __values = (this && this.__values) || function(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.getContrastThreshold = exports.isLargeFont = exports.getAPCAThreshold = exports.desiredLuminanceAPCA = exports.contrastRatioByLuminanceAPCA = exports.contrastRatioAPCA = exports.luminanceAPCA = exports.contrastRatio = exports.luminance = exports.rgbaToHsla = exports.blendColors = void 0;\r\nfunction blendColors(fgRGBA, bgRGBA) {\r\n var alpha = fgRGBA[3];\r\n return [\r\n ((1 - alpha) * bgRGBA[0]) + (alpha * fgRGBA[0]),\r\n ((1 - alpha) * bgRGBA[1]) + (alpha * fgRGBA[1]),\r\n ((1 - alpha) * bgRGBA[2]) + (alpha * fgRGBA[2]),\r\n alpha + (bgRGBA[3] * (1 - alpha)),\r\n ];\r\n}\r\nexports.blendColors = blendColors;\r\nfunction rgbaToHsla(_a) {\r\n var _b = __read(_a, 4), r = _b[0], g = _b[1], b = _b[2], a = _b[3];\r\n var max = Math.max(r, g, b);\r\n var min = Math.min(r, g, b);\r\n var diff = max - min;\r\n var sum = max + min;\r\n var h;\r\n if (min === max) {\r\n h = 0;\r\n }\r\n else if (r === max) {\r\n h = ((1 / 6 * (g - b) / diff) + 1) % 1;\r\n }\r\n else if (g === max) {\r\n h = (1 / 6 * (b - r) / diff) + 1 / 3;\r\n }\r\n else {\r\n h = (1 / 6 * (r - g) / diff) + 2 / 3;\r\n }\r\n var l = 0.5 * sum;\r\n var s;\r\n if (l === 0) {\r\n s = 0;\r\n }\r\n else if (l === 1) {\r\n s = 0;\r\n }\r\n else if (l <= 0.5) {\r\n s = diff / sum;\r\n }\r\n else {\r\n s = diff / (2 - sum);\r\n }\r\n return [h, s, l, a];\r\n}\r\nexports.rgbaToHsla = rgbaToHsla;\r\nfunction luminance(_a) {\r\n var _b = __read(_a, 3), rSRGB = _b[0], gSRGB = _b[1], bSRGB = _b[2];\r\n var r = rSRGB <= 0.03928 ? rSRGB / 12.92 : Math.pow(((rSRGB + 0.055) / 1.055), 2.4);\r\n var g = gSRGB <= 0.03928 ? gSRGB / 12.92 : Math.pow(((gSRGB + 0.055) / 1.055), 2.4);\r\n var b = bSRGB <= 0.03928 ? bSRGB / 12.92 : Math.pow(((bSRGB + 0.055) / 1.055), 2.4);\r\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\r\n}\r\nexports.luminance = luminance;\r\nfunction contrastRatio(fgRGBA, bgRGBA) {\r\n var blendedFg = blendColors(fgRGBA, bgRGBA);\r\n var fgLuminance = luminance(blendedFg);\r\n var bgLuminance = luminance(bgRGBA);\r\n var contrastRatio = (Math.max(fgLuminance, bgLuminance) + 0.05) / (Math.min(fgLuminance, bgLuminance) + 0.05);\r\n return contrastRatio;\r\n}\r\nexports.contrastRatio = contrastRatio;\r\nvar mainTRC = 2.4;\r\nvar normBgExp = 0.55;\r\nvar normFgExp = 0.58;\r\nvar revBgExp = 0.62;\r\nvar revFgExp = 0.57;\r\nvar blkThrs = 0.03;\r\nvar blkClmp = 1.45;\r\nvar scaleBoW = 1.25;\r\nvar scaleWoB = 1.25;\r\nvar deltaLuminanceMin = 0.0005;\r\nvar loConThresh = 0.078;\r\nvar loConFactor = 12.82051282051282;\r\nvar loConOffset = 0.06;\r\nvar loClip = 0.001;\r\nfunction luminanceAPCA(_a) {\r\n var _b = __read(_a, 3), rSRGB = _b[0], gSRGB = _b[1], bSRGB = _b[2];\r\n var r = Math.pow(rSRGB, mainTRC);\r\n var g = Math.pow(gSRGB, mainTRC);\r\n var b = Math.pow(bSRGB, mainTRC);\r\n return 0.2126729 * r + 0.7151522 * g + 0.0721750 * b;\r\n}\r\nexports.luminanceAPCA = luminanceAPCA;\r\nfunction contrastRatioAPCA(fgRGBA, bgRGBA) {\r\n return contrastRatioByLuminanceAPCA(luminanceAPCA(fgRGBA), luminanceAPCA(bgRGBA));\r\n}\r\nexports.contrastRatioAPCA = contrastRatioAPCA;\r\nfunction clampLuminance(value) {\r\n return value > blkThrs ? value : (value + Math.pow(blkThrs - value, blkClmp));\r\n}\r\nfunction contrastRatioByLuminanceAPCA(fgLuminance, bgLuminance) {\r\n fgLuminance = clampLuminance(fgLuminance);\r\n bgLuminance = clampLuminance(bgLuminance);\r\n if (Math.abs(fgLuminance - bgLuminance) < deltaLuminanceMin) {\r\n return 0;\r\n }\r\n var result = 0;\r\n if (bgLuminance >= fgLuminance) {\r\n result = (Math.pow(bgLuminance, normBgExp) - Math.pow(fgLuminance, normFgExp)) * scaleBoW;\r\n result = result < loClip ?\r\n 0 :\r\n (result < loConThresh ? result - result * loConFactor * loConOffset : result - loConOffset);\r\n }\r\n else {\r\n result = (Math.pow(bgLuminance, revBgExp) - Math.pow(fgLuminance, revFgExp)) * scaleWoB;\r\n result = result > -loClip ?\r\n 0 :\r\n (result > -loConThresh ? result - result * loConFactor * loConOffset : result + loConOffset);\r\n }\r\n return result * 100;\r\n}\r\nexports.contrastRatioByLuminanceAPCA = contrastRatioByLuminanceAPCA;\r\nfunction desiredLuminanceAPCA(luminance, contrast, lighter) {\r\n luminance = clampLuminance(luminance);\r\n contrast /= 100;\r\n function computeLuminance() {\r\n if (!lighter) {\r\n return Math.pow(Math.abs(Math.pow(luminance, normBgExp) - (contrast + loConOffset) / scaleBoW), 1 / normFgExp);\r\n }\r\n return Math.pow(Math.abs(Math.pow(luminance, revBgExp) - (-contrast - loConOffset) / scaleWoB), 1 / revFgExp);\r\n }\r\n var desiredLuminance = computeLuminance();\r\n if (desiredLuminance < 0 || desiredLuminance > 1) {\r\n lighter = !lighter;\r\n desiredLuminance = computeLuminance();\r\n }\r\n return desiredLuminance;\r\n}\r\nexports.desiredLuminanceAPCA = desiredLuminanceAPCA;\r\nvar contrastAPCALookupTable = [\r\n [12, -1, -1, -1, -1, 100, 90, 80, -1, -1],\r\n [14, -1, -1, -1, 100, 90, 80, 60, 60, -1],\r\n [16, -1, -1, 100, 90, 80, 60, 55, 50, 50],\r\n [18, -1, -1, 90, 80, 60, 55, 50, 40, 40],\r\n [24, -1, 100, 80, 60, 55, 50, 40, 38, 35],\r\n [30, -1, 90, 70, 55, 50, 40, 38, 35, 40],\r\n [36, -1, 80, 60, 50, 40, 38, 35, 30, 25],\r\n [48, 100, 70, 55, 40, 38, 35, 30, 25, 20],\r\n [60, 90, 60, 50, 38, 35, 30, 25, 20, 20],\r\n [72, 80, 55, 40, 35, 30, 25, 20, 20, 20],\r\n [96, 70, 50, 35, 30, 25, 20, 20, 20, 20],\r\n [120, 60, 40, 30, 25, 20, 20, 20, 20, 20],\r\n];\r\ncontrastAPCALookupTable.reverse();\r\nfunction getAPCAThreshold(fontSize, fontWeight) {\r\n var e_1, _a, e_2, _b;\r\n var size = parseFloat(fontSize.replace('px', ''));\r\n var weight = parseFloat(fontWeight);\r\n try {\r\n for (var contrastAPCALookupTable_1 = __values(contrastAPCALookupTable), contrastAPCALookupTable_1_1 = contrastAPCALookupTable_1.next(); !contrastAPCALookupTable_1_1.done; contrastAPCALookupTable_1_1 = contrastAPCALookupTable_1.next()) {\r\n var _c = __read(contrastAPCALookupTable_1_1.value), rowSize = _c[0], rowWeights = _c.slice(1);\r\n if (size >= rowSize) {\r\n try {\r\n for (var _d = (e_2 = void 0, __values([900, 800, 700, 600, 500, 400, 300, 200, 100].entries())), _e = _d.next(); !_e.done; _e = _d.next()) {\r\n var _f = __read(_e.value, 2), idx = _f[0], keywordWeight = _f[1];\r\n if (weight >= keywordWeight) {\r\n var threshold = rowWeights[rowWeights.length - 1 - idx];\r\n return threshold === -1 ? null : threshold;\r\n }\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_e && !_e.done && (_b = _d.return)) _b.call(_d);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (contrastAPCALookupTable_1_1 && !contrastAPCALookupTable_1_1.done && (_a = contrastAPCALookupTable_1.return)) _a.call(contrastAPCALookupTable_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return null;\r\n}\r\nexports.getAPCAThreshold = getAPCAThreshold;\r\nfunction isLargeFont(fontSize, fontWeight) {\r\n var boldWeights = ['bold', 'bolder', '600', '700', '800', '900'];\r\n var fontSizePx = parseFloat(fontSize.replace('px', ''));\r\n var isBold = (boldWeights.indexOf(fontWeight) !== -1);\r\n var fontSizePt = fontSizePx * 72 / 96;\r\n if (isBold) {\r\n return fontSizePt >= 14;\r\n }\r\n return fontSizePt >= 18;\r\n}\r\nexports.isLargeFont = isLargeFont;\r\nvar contrastThresholds = {\r\n largeFont: { aa: 3.0, aaa: 4.5 },\r\n normalFont: { aa: 4.5, aaa: 7.0 },\r\n};\r\nfunction getContrastThreshold(fontSize, fontWeight) {\r\n if (isLargeFont(fontSize, fontWeight)) {\r\n return contrastThresholds.largeFont;\r\n }\r\n return contrastThresholds.normalFont;\r\n}\r\nexports.getContrastThreshold = getContrastThreshold;\r\n","\"use strict\";\r\nvar __values = (this && this.__values) || function(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.adoptStyleSheet = exports.constrainNumber = exports.ellipsify = exports.createElement = exports.createTextChild = exports.createChild = exports.log = exports.Overlay = void 0;\r\nvar Overlay = (function () {\r\n function Overlay(window, style) {\r\n if (style === void 0) { style = []; }\r\n this.viewportSize = { width: 800, height: 600 };\r\n this.deviceScaleFactor = 1;\r\n this.emulationScaleFactor = 1;\r\n this.pageScaleFactor = 1;\r\n this.pageZoomFactor = 1;\r\n this.scrollX = 0;\r\n this.scrollY = 0;\r\n this.canvasWidth = 0;\r\n this.canvasHeight = 0;\r\n this._installed = false;\r\n this._window = window;\r\n this._document = window.document;\r\n if (!Array.isArray(style)) {\r\n style = [style];\r\n }\r\n this.style = style;\r\n }\r\n Overlay.prototype.setCanvas = function (canvas) {\r\n this.canvas = canvas;\r\n this._context = canvas.getContext('2d');\r\n };\r\n Overlay.prototype.install = function () {\r\n var e_1, _a;\r\n try {\r\n for (var _b = __values(this.style), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var style = _c.value;\r\n adoptStyleSheet(style);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n this._installed = true;\r\n };\r\n Overlay.prototype.uninstall = function () {\r\n var e_2, _a;\r\n var _loop_1 = function (style) {\r\n document.adoptedStyleSheets = document.adoptedStyleSheets.filter(function (s) { return s !== style; });\r\n };\r\n try {\r\n for (var _b = __values(this.style), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var style = _c.value;\r\n _loop_1(style);\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n this._installed = false;\r\n };\r\n Overlay.prototype.reset = function (resetData) {\r\n if (resetData) {\r\n this.viewportSize = resetData.viewportSize;\r\n this.visualViewportSize = resetData.visualViewportSize;\r\n this.deviceScaleFactor = resetData.deviceScaleFactor;\r\n this.pageScaleFactor = resetData.pageScaleFactor;\r\n this.pageZoomFactor = resetData.pageZoomFactor;\r\n this.emulationScaleFactor = resetData.emulationScaleFactor;\r\n this.scrollX = Math.round(resetData.scrollX);\r\n this.scrollY = Math.round(resetData.scrollY);\r\n }\r\n this.resetCanvas();\r\n };\r\n Overlay.prototype.resetCanvas = function () {\r\n if (!this.canvas || !this._context) {\r\n return;\r\n }\r\n this.canvas.width = this.deviceScaleFactor * this.viewportSize.width;\r\n this.canvas.height = this.deviceScaleFactor * this.viewportSize.height;\r\n this.canvas.style.width = this.viewportSize.width + 'px';\r\n this.canvas.style.height = this.viewportSize.height + 'px';\r\n this._context.scale(this.deviceScaleFactor, this.deviceScaleFactor);\r\n this.canvasWidth = this.viewportSize.width;\r\n this.canvasHeight = this.viewportSize.height;\r\n };\r\n Overlay.prototype.setPlatform = function (platform) {\r\n this.platform = platform;\r\n if (!this._installed) {\r\n this.install();\r\n }\r\n };\r\n Overlay.prototype.dispatch = function (message) {\r\n var functionName = message.shift();\r\n this[functionName].apply(this, message);\r\n };\r\n Overlay.prototype.eventHasCtrlOrMeta = function (event) {\r\n return this.platform === 'mac' ? (event.metaKey && !event.ctrlKey) : (event.ctrlKey && !event.metaKey);\r\n };\r\n Object.defineProperty(Overlay.prototype, \"context\", {\r\n get: function () {\r\n if (!this._context) {\r\n throw new Error('Context object is missing');\r\n }\r\n return this._context;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(Overlay.prototype, \"document\", {\r\n get: function () {\r\n if (!this._document) {\r\n throw new Error('Document object is missing');\r\n }\r\n return this._document;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(Overlay.prototype, \"window\", {\r\n get: function () {\r\n if (!this._window) {\r\n throw new Error('Window object is missing');\r\n }\r\n return this._window;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(Overlay.prototype, \"installed\", {\r\n get: function () {\r\n return this._installed;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return Overlay;\r\n}());\r\nexports.Overlay = Overlay;\r\nfunction log(text) {\r\n var element = document.getElementById('log');\r\n if (!element) {\r\n element = createChild(document.body, 'div');\r\n element.id = 'log';\r\n }\r\n createChild(element, 'div').textContent = text;\r\n}\r\nexports.log = log;\r\nfunction createChild(parent, tagName, className) {\r\n var element = createElement(tagName, className);\r\n element.addEventListener('click', function (e) {\r\n e.stopPropagation();\r\n }, false);\r\n parent.appendChild(element);\r\n return element;\r\n}\r\nexports.createChild = createChild;\r\nfunction createTextChild(parent, text) {\r\n var element = document.createTextNode(text);\r\n parent.appendChild(element);\r\n return element;\r\n}\r\nexports.createTextChild = createTextChild;\r\nfunction createElement(tagName, className) {\r\n var element = document.createElement(tagName);\r\n if (className) {\r\n var classNames = className.split(/\\s+/);\r\n classNames = classNames.map(function (className) { return 'luna-dom-highlighter-' + className; });\r\n element.className = classNames.join(' ');\r\n }\r\n return element;\r\n}\r\nexports.createElement = createElement;\r\nfunction ellipsify(str, maxLength) {\r\n if (str.length <= maxLength) {\r\n return String(str);\r\n }\r\n return str.substr(0, maxLength - 1) + '\\u2026';\r\n}\r\nexports.ellipsify = ellipsify;\r\nfunction constrainNumber(num, min, max) {\r\n if (num < min) {\r\n num = min;\r\n }\r\n else if (num > max) {\r\n num = max;\r\n }\r\n return num;\r\n}\r\nexports.constrainNumber = constrainNumber;\r\nfunction adoptStyleSheet(styleSheet) {\r\n document.adoptedStyleSheets = __spreadArray(__spreadArray([], __read(document.adoptedStyleSheets), false), [styleSheet], false);\r\n}\r\nexports.adoptStyleSheet = adoptStyleSheet;\r\n","\"use strict\";\r\nvar __values = (this && this.__values) || function(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n};\r\nvar __read = (this && this.__read) || function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n};\r\nvar __importDefault = (this && this.__importDefault) || function (mod) {\r\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.drawPath = exports.formatColor = exports.formatRgba = exports.parseHexa = exports.createPathForQuad = exports.hatchFillPath = exports.applyMatrixToPoint = exports.emptyBounds = exports.buildPath = exports.fillPathWithBoxStyle = exports.drawPathWithLineStyle = void 0;\r\nvar endWith_1 = __importDefault(require(\"licia/endWith\"));\r\nvar ColorUtils_1 = require(\"./ColorUtils\");\r\nfunction drawPathWithLineStyle(context, path, lineStyle, lineWidth) {\r\n if (lineWidth === void 0) { lineWidth = 1; }\r\n if (lineStyle && lineStyle.color) {\r\n context.save();\r\n context.translate(0.5, 0.5);\r\n context.lineWidth = lineWidth;\r\n if (lineStyle.pattern === \"dashed\") {\r\n context.setLineDash([3, 3]);\r\n }\r\n if (lineStyle.pattern === \"dotted\") {\r\n context.setLineDash([2, 2]);\r\n }\r\n context.strokeStyle = lineStyle.color;\r\n context.stroke(path);\r\n context.restore();\r\n }\r\n}\r\nexports.drawPathWithLineStyle = drawPathWithLineStyle;\r\nfunction fillPathWithBoxStyle(context, path, bounds, angle, boxStyle) {\r\n if (!boxStyle) {\r\n return;\r\n }\r\n context.save();\r\n if (boxStyle.fillColor) {\r\n context.fillStyle = boxStyle.fillColor;\r\n context.fill(path);\r\n }\r\n if (boxStyle.hatchColor) {\r\n hatchFillPath(context, path, bounds, 10, boxStyle.hatchColor, angle, false);\r\n }\r\n context.restore();\r\n}\r\nexports.fillPathWithBoxStyle = fillPathWithBoxStyle;\r\nfunction buildPath(commands, bounds, emulationScaleFactor) {\r\n var commandsIndex = 0;\r\n function extractPoints(count) {\r\n var points = [];\r\n for (var i = 0; i < count; ++i) {\r\n var x = Math.round(commands[commandsIndex++] * emulationScaleFactor);\r\n bounds.maxX = Math.max(bounds.maxX, x);\r\n bounds.minX = Math.min(bounds.minX, x);\r\n var y = Math.round(commands[commandsIndex++] * emulationScaleFactor);\r\n bounds.maxY = Math.max(bounds.maxY, y);\r\n bounds.minY = Math.min(bounds.minY, y);\r\n bounds.leftmostXForY[y] = Math.min(bounds.leftmostXForY[y] || Number.MAX_VALUE, x);\r\n bounds.rightmostXForY[y] = Math.max(bounds.rightmostXForY[y] || Number.MIN_VALUE, x);\r\n bounds.topmostYForX[x] = Math.min(bounds.topmostYForX[x] || Number.MAX_VALUE, y);\r\n bounds.bottommostYForX[x] = Math.max(bounds.bottommostYForX[x] || Number.MIN_VALUE, y);\r\n bounds.allPoints.push({ x: x, y: y });\r\n points.push(x, y);\r\n }\r\n return points;\r\n }\r\n var commandsLength = commands.length;\r\n var path = new Path2D();\r\n while (commandsIndex < commandsLength) {\r\n switch (commands[commandsIndex++]) {\r\n case 'M':\r\n path.moveTo.apply(path, extractPoints(1));\r\n break;\r\n case 'L':\r\n path.lineTo.apply(path, extractPoints(1));\r\n break;\r\n case 'C':\r\n path.bezierCurveTo.apply(path, extractPoints(3));\r\n break;\r\n case 'Q':\r\n path.quadraticCurveTo.apply(path, extractPoints(2));\r\n break;\r\n case 'Z':\r\n path.closePath();\r\n break;\r\n }\r\n }\r\n return path;\r\n}\r\nexports.buildPath = buildPath;\r\nfunction emptyBounds() {\r\n var bounds = {\r\n minX: Number.MAX_VALUE,\r\n minY: Number.MAX_VALUE,\r\n maxX: -Number.MAX_VALUE,\r\n maxY: -Number.MAX_VALUE,\r\n leftmostXForY: {},\r\n rightmostXForY: {},\r\n topmostYForX: {},\r\n bottommostYForX: {},\r\n allPoints: [],\r\n };\r\n return bounds;\r\n}\r\nexports.emptyBounds = emptyBounds;\r\nfunction applyMatrixToPoint(point, matrix) {\r\n var domPoint = new DOMPoint(point.x, point.y);\r\n domPoint = domPoint.matrixTransform(matrix);\r\n return { x: domPoint.x, y: domPoint.y };\r\n}\r\nexports.applyMatrixToPoint = applyMatrixToPoint;\r\nvar HATCH_LINE_LENGTH = 5;\r\nvar HATCH_LINE_GAP = 3;\r\nvar hatchLinePattern;\r\nvar hatchLineColor = '';\r\nfunction hatchFillPath(context, path, bounds, delta, color, rotationAngle, flipDirection) {\r\n if (context.canvas.width < bounds.maxX - bounds.minX || context.canvas.height < bounds.maxY - bounds.minY) {\r\n bounds = {\r\n minX: 0,\r\n maxX: context.canvas.width,\r\n minY: 0,\r\n maxY: context.canvas.height,\r\n allPoints: [],\r\n };\r\n }\r\n if (!hatchLinePattern || color !== hatchLineColor) {\r\n hatchLineColor = color;\r\n var offscreenCanvas = document.createElement('canvas');\r\n offscreenCanvas.width = delta;\r\n offscreenCanvas.height = HATCH_LINE_LENGTH + HATCH_LINE_GAP;\r\n var offscreenCtx = offscreenCanvas.getContext('2d');\r\n offscreenCtx.clearRect(0, 0, offscreenCanvas.width, offscreenCanvas.height);\r\n offscreenCtx.rect(0, 0, 1, HATCH_LINE_LENGTH);\r\n offscreenCtx.fillStyle = color;\r\n offscreenCtx.fill();\r\n hatchLinePattern = context.createPattern(offscreenCanvas, 'repeat');\r\n }\r\n context.save();\r\n var matrix = new DOMMatrix();\r\n hatchLinePattern.setTransform(matrix.scale(flipDirection ? -1 : 1, 1).rotate(0, 0, -45 + rotationAngle));\r\n context.fillStyle = hatchLinePattern;\r\n context.fill(path);\r\n context.restore();\r\n}\r\nexports.hatchFillPath = hatchFillPath;\r\nfunction createPathForQuad(outerQuad, quadsToClip, bounds, emulationScaleFactor) {\r\n var e_1, _a;\r\n var commands = [\r\n 'M',\r\n outerQuad.p1.x,\r\n outerQuad.p1.y,\r\n 'L',\r\n outerQuad.p2.x,\r\n outerQuad.p2.y,\r\n 'L',\r\n outerQuad.p3.x,\r\n outerQuad.p3.y,\r\n 'L',\r\n outerQuad.p4.x,\r\n outerQuad.p4.y,\r\n ];\r\n try {\r\n for (var quadsToClip_1 = __values(quadsToClip), quadsToClip_1_1 = quadsToClip_1.next(); !quadsToClip_1_1.done; quadsToClip_1_1 = quadsToClip_1.next()) {\r\n var quad = quadsToClip_1_1.value;\r\n commands = __spreadArray(__spreadArray([], __read(commands), false), [\r\n 'L', quad.p4.x, quad.p4.y, 'L', quad.p3.x, quad.p3.y, 'L', quad.p2.x,\r\n quad.p2.y, 'L', quad.p1.x, quad.p1.y, 'L', quad.p4.x, quad.p4.y, 'L', outerQuad.p4.x,\r\n outerQuad.p4.y,\r\n ], false);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (quadsToClip_1_1 && !quadsToClip_1_1.done && (_a = quadsToClip_1.return)) _a.call(quadsToClip_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n commands.push('Z');\r\n return buildPath(commands, bounds, emulationScaleFactor);\r\n}\r\nexports.createPathForQuad = createPathForQuad;\r\nfunction parseHexa(hexa) {\r\n return (hexa.match(/#(\\w\\w)(\\w\\w)(\\w\\w)(\\w\\w)/) || []).slice(1).map(function (c) { return parseInt(c, 16) / 255; });\r\n}\r\nexports.parseHexa = parseHexa;\r\nfunction formatRgba(rgba, colorFormat) {\r\n if (colorFormat === 'rgb') {\r\n var _a = __read(rgba, 4), r = _a[0], g = _a[1], b = _a[2], a = _a[3];\r\n return \"rgb(\".concat((r * 255).toFixed(), \" \").concat((g * 255).toFixed(), \" \").concat((b * 255).toFixed()).concat(a === 1 ? '' : ' / ' + Math.round(a * 100) / 100, \")\");\r\n }\r\n if (colorFormat === 'hsl') {\r\n var _b = __read((0, ColorUtils_1.rgbaToHsla)(rgba), 4), h = _b[0], s = _b[1], l = _b[2], a = _b[3];\r\n return \"hsl(\".concat(Math.round(h * 360), \"deg \").concat(Math.round(s * 100), \" \").concat(Math.round(l * 100)).concat(a === 1 ? '' : ' / ' + Math.round(a * 100) / 100, \")\");\r\n }\r\n throw new Error('NOT_REACHED');\r\n}\r\nexports.formatRgba = formatRgba;\r\nfunction formatColor(hexa, colorFormat) {\r\n if (colorFormat === 'rgb' || colorFormat === 'hsl') {\r\n return formatRgba(parseHexa(hexa), colorFormat);\r\n }\r\n if ((0, endWith_1.default)(hexa, 'FF')) {\r\n return hexa.substr(0, 7);\r\n }\r\n return hexa;\r\n}\r\nexports.formatColor = formatColor;\r\nfunction drawPath(context, commands, fillColor, outlineColor, outlinePattern, bounds, emulationScaleFactor) {\r\n context.save();\r\n var path = buildPath(commands, bounds, emulationScaleFactor);\r\n if (fillColor) {\r\n context.fillStyle = fillColor;\r\n context.fill(path);\r\n }\r\n if (outlineColor) {\r\n if (outlinePattern === \"dashed\") {\r\n context.setLineDash([3, 3]);\r\n }\r\n if (outlinePattern === \"dotted\") {\r\n context.setLineDash([2, 2]);\r\n }\r\n context.lineWidth = 2;\r\n context.strokeStyle = outlineColor;\r\n context.stroke(path);\r\n }\r\n context.restore();\r\n return path;\r\n}\r\nexports.drawPath = drawPath;\r\n","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __importDefault = (this && this.__importDefault) || function (mod) {\r\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.HighlightOverlay = void 0;\r\nvar endWith_1 = __importDefault(require(\"licia/endWith\"));\r\nvar ColorUtils_1 = require(\"./ColorUtils\");\r\nvar common_1 = require(\"./common\");\r\nvar highlight_common_1 = require(\"./highlight_common\");\r\nvar HighlightOverlay = (function (_super) {\r\n __extends(HighlightOverlay, _super);\r\n function HighlightOverlay() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.gridLabelState = { gridLayerCounter: 0 };\r\n return _this;\r\n }\r\n HighlightOverlay.prototype.setContainer = function (container) {\r\n this._container = container;\r\n };\r\n HighlightOverlay.prototype.setPlatform = function (platform) {\r\n if (this.container) {\r\n this.container.classList.add('luna-dom-highlighter-platform-' + platform);\r\n }\r\n _super.prototype.setPlatform.call(this, platform);\r\n };\r\n Object.defineProperty(HighlightOverlay.prototype, \"container\", {\r\n get: function () {\r\n return this._container;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n HighlightOverlay.prototype.reset = function (resetData) {\r\n _super.prototype.reset.call(this, resetData);\r\n this.tooltip.innerHTML = '';\r\n this.gridLabelState.gridLayerCounter = 0;\r\n };\r\n HighlightOverlay.prototype.install = function () {\r\n var canvas = this.document.createElement('canvas');\r\n canvas.classList.add('luna-dom-highlighter-fill');\r\n this.container.appendChild(canvas);\r\n var tooltip = this.document.createElement('div');\r\n this.container.appendChild(tooltip);\r\n this.tooltip = tooltip;\r\n this.setCanvas(canvas);\r\n _super.prototype.install.call(this);\r\n };\r\n HighlightOverlay.prototype.uninstall = function () {\r\n this.document.body.classList.remove('fill');\r\n this.document.body.innerHTML = '';\r\n _super.prototype.uninstall.call(this);\r\n };\r\n HighlightOverlay.prototype.drawHighlight = function (highlight) {\r\n this.context.save();\r\n var bounds = (0, highlight_common_1.emptyBounds)();\r\n for (var paths = highlight.paths.slice(); paths.length;) {\r\n var path = paths.pop();\r\n if (!path) {\r\n continue;\r\n }\r\n this.context.save();\r\n (0, highlight_common_1.drawPath)(this.context, path.path, path.fillColor, path.outlineColor, undefined, bounds, this.emulationScaleFactor);\r\n if (paths.length) {\r\n this.context.globalCompositeOperation = 'destination-out';\r\n (0, highlight_common_1.drawPath)(this.context, paths[paths.length - 1].path, 'red', undefined, undefined, bounds, this.emulationScaleFactor);\r\n }\r\n this.context.restore();\r\n }\r\n this.context.restore();\r\n this.context.save();\r\n var rulerAtRight = Boolean(highlight.paths.length && highlight.showRulers && bounds.minX < 20 && bounds.maxX + 20 < this.canvasWidth);\r\n var rulerAtBottom = Boolean(highlight.paths.length && highlight.showRulers && bounds.minY < 20 && bounds.maxY + 20 < this.canvasHeight);\r\n if (highlight.showRulers) {\r\n this.drawAxis(this.context, rulerAtRight, rulerAtBottom);\r\n }\r\n if (highlight.paths.length) {\r\n if (highlight.showExtensionLines) {\r\n drawRulers(this.context, bounds, rulerAtRight, rulerAtBottom, undefined, false, this.canvasWidth, this.canvasHeight);\r\n }\r\n if (highlight.elementInfo) {\r\n drawElementTitle(this.tooltip, highlight.elementInfo, highlight.colorFormat, bounds, this.canvasWidth, this.canvasHeight);\r\n }\r\n }\r\n this.context.restore();\r\n return { bounds: bounds };\r\n };\r\n HighlightOverlay.prototype.drawAxis = function (context, rulerAtRight, rulerAtBottom) {\r\n context.save();\r\n var pageFactor = this.pageZoomFactor * this.pageScaleFactor * this.emulationScaleFactor;\r\n var scrollX = this.scrollX * this.pageScaleFactor;\r\n var scrollY = this.scrollY * this.pageScaleFactor;\r\n function zoom(x) {\r\n return Math.round(x * pageFactor);\r\n }\r\n function unzoom(x) {\r\n return Math.round(x / pageFactor);\r\n }\r\n var width = this.canvasWidth / pageFactor;\r\n var height = this.canvasHeight / pageFactor;\r\n var gridSubStep = 5;\r\n var gridStep = 50;\r\n {\r\n context.save();\r\n context.fillStyle = gridBackgroundColor;\r\n if (rulerAtBottom) {\r\n context.fillRect(0, zoom(height) - 15, zoom(width), zoom(height));\r\n }\r\n else {\r\n context.fillRect(0, 0, zoom(width), 15);\r\n }\r\n context.globalCompositeOperation = 'destination-out';\r\n context.fillStyle = 'red';\r\n if (rulerAtRight) {\r\n context.fillRect(zoom(width) - 15, 0, zoom(width), zoom(height));\r\n }\r\n else {\r\n context.fillRect(0, 0, 15, zoom(height));\r\n }\r\n context.restore();\r\n context.fillStyle = gridBackgroundColor;\r\n if (rulerAtRight) {\r\n context.fillRect(zoom(width) - 15, 0, zoom(width), zoom(height));\r\n }\r\n else {\r\n context.fillRect(0, 0, 15, zoom(height));\r\n }\r\n }\r\n context.lineWidth = 1;\r\n context.strokeStyle = darkGridColor;\r\n context.fillStyle = darkGridColor;\r\n {\r\n context.save();\r\n context.translate(-scrollX, 0.5 - scrollY);\r\n var maxY = height + unzoom(scrollY);\r\n for (var y = 2 * gridStep; y < maxY; y += 2 * gridStep) {\r\n context.save();\r\n context.translate(scrollX, zoom(y));\r\n context.rotate(-Math.PI / 2);\r\n context.fillText(String(y), 2, rulerAtRight ? zoom(width) - 7 : 13);\r\n context.restore();\r\n }\r\n context.translate(0.5, -0.5);\r\n var maxX = width + unzoom(scrollX);\r\n for (var x = 2 * gridStep; x < maxX; x += 2 * gridStep) {\r\n context.save();\r\n context.fillText(String(x), zoom(x) + 2, rulerAtBottom ? scrollY + zoom(height) - 7 : scrollY + 13);\r\n context.restore();\r\n }\r\n context.restore();\r\n }\r\n {\r\n context.save();\r\n if (rulerAtRight) {\r\n context.translate(zoom(width), 0);\r\n context.scale(-1, 1);\r\n }\r\n context.translate(-scrollX, 0.5 - scrollY);\r\n var maxY = height + unzoom(scrollY);\r\n for (var y = gridStep; y < maxY; y += gridStep) {\r\n context.beginPath();\r\n context.moveTo(scrollX, zoom(y));\r\n var markLength = (y % (gridStep * 2)) ? 5 : 8;\r\n context.lineTo(scrollX + markLength, zoom(y));\r\n context.stroke();\r\n }\r\n context.strokeStyle = lightGridColor;\r\n for (var y = gridSubStep; y < maxY; y += gridSubStep) {\r\n if (!(y % gridStep)) {\r\n continue;\r\n }\r\n context.beginPath();\r\n context.moveTo(scrollX, zoom(y));\r\n context.lineTo(scrollX + gridSubStep, zoom(y));\r\n context.stroke();\r\n }\r\n context.restore();\r\n }\r\n {\r\n context.save();\r\n if (rulerAtBottom) {\r\n context.translate(0, zoom(height));\r\n context.scale(1, -1);\r\n }\r\n context.translate(0.5 - scrollX, -scrollY);\r\n var maxX = width + unzoom(scrollX);\r\n for (var x = gridStep; x < maxX; x += gridStep) {\r\n context.beginPath();\r\n context.moveTo(zoom(x), scrollY);\r\n var markLength = (x % (gridStep * 2)) ? 5 : 8;\r\n context.lineTo(zoom(x), scrollY + markLength);\r\n context.stroke();\r\n }\r\n context.strokeStyle = lightGridColor;\r\n for (var x = gridSubStep; x < maxX; x += gridSubStep) {\r\n if (!(x % gridStep)) {\r\n continue;\r\n }\r\n context.beginPath();\r\n context.moveTo(zoom(x), scrollY);\r\n context.lineTo(zoom(x), scrollY + gridSubStep);\r\n context.stroke();\r\n }\r\n context.restore();\r\n }\r\n context.restore();\r\n };\r\n return HighlightOverlay;\r\n}(common_1.Overlay));\r\nexports.HighlightOverlay = HighlightOverlay;\r\nvar lightGridColor = 'rgba(0,0,0,0.2)';\r\nvar darkGridColor = 'rgba(0,0,0,0.7)';\r\nvar gridBackgroundColor = 'rgba(255, 255, 255, 0.8)';\r\nfunction getElementLayoutType(elementInfo) {\r\n if (elementInfo.layoutObjectName && (0, endWith_1.default)(elementInfo.layoutObjectName, 'Grid')) {\r\n return 'grid';\r\n }\r\n if (elementInfo.layoutObjectName && elementInfo.layoutObjectName === 'LayoutNGFlexibleBox') {\r\n return 'flex';\r\n }\r\n return null;\r\n}\r\nfunction createElementDescription(elementInfo, colorFormat) {\r\n var elementInfoElement = (0, common_1.createElement)('div', 'element-info');\r\n var elementInfoHeaderElement = (0, common_1.createChild)(elementInfoElement, 'div', 'element-info-header');\r\n var layoutType = getElementLayoutType(elementInfo);\r\n if (layoutType) {\r\n (0, common_1.createChild)(elementInfoHeaderElement, 'div', \"element-layout-type \".concat(layoutType));\r\n }\r\n var descriptionElement = (0, common_1.createChild)(elementInfoHeaderElement, 'div', 'element-description');\r\n var tagNameElement = (0, common_1.createChild)(descriptionElement, 'span', 'material-tag-name');\r\n tagNameElement.textContent = elementInfo.tagName;\r\n var nodeIdElement = (0, common_1.createChild)(descriptionElement, 'span', 'material-node-id');\r\n var maxLength = 80;\r\n nodeIdElement.textContent = elementInfo.idValue ? '#' + (0, common_1.ellipsify)(elementInfo.idValue, maxLength) : '';\r\n nodeIdElement.classList.toggle('hidden', !elementInfo.idValue);\r\n var classNameElement = (0, common_1.createChild)(descriptionElement, 'span', 'material-class-name');\r\n if (nodeIdElement.textContent.length < maxLength) {\r\n classNameElement.textContent = (0, common_1.ellipsify)(elementInfo.className || '', maxLength - nodeIdElement.textContent.length);\r\n }\r\n classNameElement.classList.toggle('hidden', !elementInfo.className);\r\n var dimensionsElement = (0, common_1.createChild)(elementInfoHeaderElement, 'div', 'dimensions');\r\n (0, common_1.createChild)(dimensionsElement, 'span', 'material-node-width').textContent =\r\n String(Math.round(elementInfo.nodeWidth * 100) / 100);\r\n (0, common_1.createTextChild)(dimensionsElement, '\\u00d7');\r\n (0, common_1.createChild)(dimensionsElement, 'span', 'material-node-height').textContent =\r\n String(Math.round(elementInfo.nodeHeight * 100) / 100);\r\n var style = elementInfo.style || {};\r\n var elementInfoBodyElement;\r\n if (elementInfo.isLockedAncestor) {\r\n addTextRow('Showing content-visibility ancestor', '');\r\n }\r\n if (elementInfo.isLocked) {\r\n addTextRow('Descendants are skipped due to content-visibility', '');\r\n }\r\n var color = style['color'];\r\n if (color && color !== '#00000000') {\r\n addColorRow('Color', color, colorFormat);\r\n }\r\n var fontFamily = style['font-family'];\r\n var fontSize = style['font-size'];\r\n if (fontFamily && fontSize !== '0px') {\r\n addTextRow('Font', \"\".concat(fontSize, \" \").concat(fontFamily));\r\n }\r\n var bgcolor = style['background-color'];\r\n if (bgcolor && bgcolor !== '#00000000') {\r\n addColorRow('Background', bgcolor, colorFormat);\r\n }\r\n var margin = style['margin'];\r\n if (margin && margin !== '0px') {\r\n addTextRow('Margin', margin);\r\n }\r\n var padding = style['padding'];\r\n if (padding && padding !== '0px') {\r\n addTextRow('Padding', padding);\r\n }\r\n var cbgColor = elementInfo.contrast ? elementInfo.contrast.backgroundColor : null;\r\n var hasContrastInfo = color && color !== '#00000000' && cbgColor && cbgColor !== '#00000000';\r\n if (elementInfo.showAccessibilityInfo) {\r\n addSection('Accessibility');\r\n if (hasContrastInfo && style['color'] && elementInfo.contrast) {\r\n addContrastRow(style['color'], elementInfo.contrast);\r\n }\r\n addTextRow('Name', elementInfo.accessibleName);\r\n addTextRow('Role', elementInfo.accessibleRole);\r\n addIconRow('Keyboard-focusable', elementInfo.isKeyboardFocusable ? 'a11y-icon a11y-icon-ok' : 'a11y-icon a11y-icon-not-ok');\r\n }\r\n function ensureElementInfoBody() {\r\n if (!elementInfoBodyElement) {\r\n elementInfoBodyElement = (0, common_1.createChild)(elementInfoElement, 'div', 'element-info-body');\r\n }\r\n }\r\n function addSection(name) {\r\n ensureElementInfoBody();\r\n var rowElement = (0, common_1.createChild)(elementInfoBodyElement, 'div', 'element-info-row element-info-section');\r\n var nameElement = (0, common_1.createChild)(rowElement, 'div', 'section-name');\r\n nameElement.textContent = name;\r\n (0, common_1.createChild)((0, common_1.createChild)(rowElement, 'div', 'separator-container'), 'div', 'separator');\r\n }\r\n function addRow(name, rowClassName, valueClassName) {\r\n ensureElementInfoBody();\r\n var rowElement = (0, common_1.createChild)(elementInfoBodyElement, 'div', 'element-info-row');\r\n if (rowClassName) {\r\n rowElement.classList.add(rowClassName);\r\n }\r\n var nameElement = (0, common_1.createChild)(rowElement, 'div', 'element-info-name');\r\n nameElement.textContent = name;\r\n (0, common_1.createChild)(rowElement, 'div', 'element-info-gap');\r\n return (0, common_1.createChild)(rowElement, 'div', valueClassName || '');\r\n }\r\n function addIconRow(name, value) {\r\n (0, common_1.createChild)(addRow(name, '', 'element-info-value-icon'), 'div', value);\r\n }\r\n function addTextRow(name, value) {\r\n (0, common_1.createTextChild)(addRow(name, '', 'element-info-value-text'), value);\r\n }\r\n function addColorRow(name, color, colorFormat) {\r\n var valueElement = addRow(name, '', 'element-info-value-color');\r\n var swatch = (0, common_1.createChild)(valueElement, 'div', 'color-swatch');\r\n var inner = (0, common_1.createChild)(swatch, 'div', 'color-swatch-inner');\r\n inner.style.backgroundColor = color;\r\n (0, common_1.createTextChild)(valueElement, (0, highlight_common_1.formatColor)(color, colorFormat));\r\n }\r\n function addContrastRow(fgColor, contrast) {\r\n var parsedFgColor = (0, highlight_common_1.parseHexa)(fgColor);\r\n var parsedBgColor = (0, highlight_common_1.parseHexa)(contrast.backgroundColor);\r\n parsedFgColor[3] *= contrast.textOpacity;\r\n var valueElement = addRow('Contrast', '', 'element-info-value-contrast');\r\n var sampleText = (0, common_1.createChild)(valueElement, 'div', 'contrast-text');\r\n sampleText.style.color = (0, highlight_common_1.formatRgba)(parsedFgColor, 'rgb');\r\n sampleText.style.backgroundColor = contrast.backgroundColor;\r\n sampleText.textContent = 'Aa';\r\n var valueSpan = (0, common_1.createChild)(valueElement, 'span');\r\n if (contrast.contrastAlgorithm === 'apca') {\r\n var percentage = (0, ColorUtils_1.contrastRatioAPCA)(parsedFgColor, parsedBgColor);\r\n var threshold = (0, ColorUtils_1.getAPCAThreshold)(contrast.fontSize, contrast.fontWeight);\r\n valueSpan.textContent = String(Math.floor(percentage * 100) / 100) + '%';\r\n (0, common_1.createChild)(valueElement, 'div', threshold === null || Math.abs(percentage) < threshold ? 'a11y-icon a11y-icon-warning' :\r\n 'a11y-icon a11y-icon-ok');\r\n }\r\n else if (contrast.contrastAlgorithm === 'aa' || contrast.contrastAlgorithm === 'aaa') {\r\n var ratio = (0, ColorUtils_1.contrastRatio)(parsedFgColor, parsedBgColor);\r\n var threshold = (0, ColorUtils_1.getContrastThreshold)(contrast.fontSize, contrast.fontWeight)[contrast.contrastAlgorithm];\r\n valueSpan.textContent = String(Math.floor(ratio * 100) / 100);\r\n (0, common_1.createChild)(valueElement, 'div', ratio < threshold ? 'a11y-icon a11y-icon-warning' : 'a11y-icon a11y-icon-ok');\r\n }\r\n }\r\n return elementInfoElement;\r\n}\r\nfunction drawElementTitle(tooltipContainer, elementInfo, colorFormat, bounds, canvasWidth, canvasHeight) {\r\n tooltipContainer.innerHTML = '';\r\n var wrapper = (0, common_1.createChild)(tooltipContainer, 'div');\r\n var tooltipContent = (0, common_1.createChild)(wrapper, 'div', 'tooltip-content');\r\n var tooltip = createElementDescription(elementInfo, colorFormat);\r\n tooltipContent.appendChild(tooltip);\r\n var titleWidth = tooltipContent.offsetWidth;\r\n var titleHeight = tooltipContent.offsetHeight;\r\n var arrowHalfWidth = 8;\r\n var pageMargin = 2;\r\n var arrowWidth = arrowHalfWidth * 2;\r\n var arrowInset = arrowHalfWidth + 2;\r\n var containerMinX = pageMargin + arrowInset;\r\n var containerMaxX = canvasWidth - pageMargin - arrowInset - arrowWidth;\r\n var boundsAreTooNarrow = bounds.maxX - bounds.minX < arrowWidth + 2 * arrowInset;\r\n var arrowX;\r\n if (boundsAreTooNarrow) {\r\n arrowX = (bounds.minX + bounds.maxX) * 0.5 - arrowHalfWidth;\r\n }\r\n else {\r\n var xFromLeftBound = bounds.minX + arrowInset;\r\n var xFromRightBound = bounds.maxX - arrowInset - arrowWidth;\r\n if (xFromLeftBound > containerMinX && xFromLeftBound < containerMaxX) {\r\n arrowX = xFromLeftBound;\r\n }\r\n else {\r\n arrowX = (0, common_1.constrainNumber)(containerMinX, xFromLeftBound, xFromRightBound);\r\n }\r\n }\r\n var arrowHidden = arrowX < containerMinX || arrowX > containerMaxX;\r\n var boxX = arrowX - arrowInset;\r\n boxX = (0, common_1.constrainNumber)(boxX, pageMargin, canvasWidth - titleWidth - pageMargin);\r\n var boxY = bounds.minY - arrowHalfWidth - titleHeight;\r\n var onTop = true;\r\n if (boxY < 0) {\r\n boxY = Math.min(canvasHeight - titleHeight, bounds.maxY + arrowHalfWidth);\r\n onTop = false;\r\n }\r\n else if (bounds.minY > canvasHeight) {\r\n boxY = canvasHeight - arrowHalfWidth - titleHeight;\r\n }\r\n var includes = boxX >= bounds.minX && boxX + titleWidth <= bounds.maxX && boxY >= bounds.minY &&\r\n boxY + titleHeight <= bounds.maxY;\r\n var overlaps = boxX < bounds.maxX && boxX + titleWidth > bounds.minX && boxY < bounds.maxY && boxY + titleHeight > bounds.minY;\r\n if (overlaps && !includes) {\r\n tooltipContent.style.display = 'none';\r\n return;\r\n }\r\n tooltipContent.style.top = boxY + 'px';\r\n tooltipContent.style.left = boxX + 'px';\r\n if (arrowHidden) {\r\n return;\r\n }\r\n var tooltipArrow = (0, common_1.createChild)(tooltipContent, 'div', 'tooltip-arrow');\r\n tooltipArrow.style.clipPath = onTop ? 'polygon(0 0, 100% 0, 50% 100%)' : 'polygon(50% 0, 0 100%, 100% 100%)';\r\n tooltipArrow.style.top = (onTop ? titleHeight - 1 : -arrowHalfWidth) + 'px';\r\n tooltipArrow.style.left = (arrowX - boxX) + 'px';\r\n}\r\nvar DEFAULT_RULER_COLOR = 'rgba(128, 128, 128, 0.3)';\r\nfunction drawRulers(context, bounds, rulerAtRight, rulerAtBottom, color, dash, canvasWidth, canvasHeight) {\r\n context.save();\r\n var width = canvasWidth;\r\n var height = canvasHeight;\r\n context.strokeStyle = color || DEFAULT_RULER_COLOR;\r\n context.lineWidth = 1;\r\n context.translate(0.5, 0.5);\r\n if (dash) {\r\n context.setLineDash([3, 3]);\r\n }\r\n if (rulerAtRight) {\r\n for (var y in bounds.rightmostXForY) {\r\n context.beginPath();\r\n context.moveTo(width, Number(y));\r\n context.lineTo(bounds.rightmostXForY[y], Number(y));\r\n context.stroke();\r\n }\r\n }\r\n else {\r\n for (var y in bounds.leftmostXForY) {\r\n context.beginPath();\r\n context.moveTo(0, Number(y));\r\n context.lineTo(bounds.leftmostXForY[y], Number(y));\r\n context.stroke();\r\n }\r\n }\r\n if (rulerAtBottom) {\r\n for (var x in bounds.bottommostYForX) {\r\n context.beginPath();\r\n context.moveTo(Number(x), height);\r\n context.lineTo(Number(x), bounds.topmostYForX[x]);\r\n context.stroke();\r\n }\r\n }\r\n else {\r\n for (var x in bounds.topmostYForX) {\r\n context.beginPath();\r\n context.moveTo(Number(x), 0);\r\n context.lineTo(Number(x), bounds.topmostYForX[x]);\r\n context.stroke();\r\n }\r\n }\r\n context.restore();\r\n}\r\n","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __importDefault = (this && this.__importDefault) || function (mod) {\r\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar Emitter_1 = __importDefault(require(\"licia/Emitter\"));\r\nvar _1 = __importDefault(require(\"licia/$\"));\r\nvar util_1 = require(\"./util\");\r\nvar each_1 = __importDefault(require(\"licia/each\"));\r\nvar extend_1 = __importDefault(require(\"licia/extend\"));\r\nvar defaults_1 = __importDefault(require(\"licia/defaults\"));\r\nvar remove_1 = __importDefault(require(\"licia/remove\"));\r\nvar Component = (function (_super) {\r\n __extends(Component, _super);\r\n function Component(container, _a, _b) {\r\n var compName = _a.compName;\r\n var _c = _b === void 0 ? {} : _b, _d = _c.theme, theme = _d === void 0 ? 'light' : _d;\r\n var _this = _super.call(this) || this;\r\n _this.subComponents = [];\r\n _this.compName = compName;\r\n _this.c = (0, util_1.classPrefix)(compName);\r\n _this.options = {};\r\n _this.container = container;\r\n _this.$container = (0, _1.default)(container);\r\n _this.$container.addClass([\r\n \"luna-\".concat(compName),\r\n _this.c(\"platform-\".concat((0, util_1.getPlatform)())),\r\n ]);\r\n _this.on('optionChange', function (name, val, oldVal) {\r\n var c = _this.c;\r\n if (name === 'theme') {\r\n _this.$container\r\n .rmClass(c(\"theme-\".concat(oldVal)))\r\n .addClass(c(\"theme-\".concat(val)));\r\n (0, each_1.default)(_this.subComponents, function (component) {\r\n return component.setOption('theme', val);\r\n });\r\n }\r\n });\r\n _this.setOption('theme', theme);\r\n return _this;\r\n }\r\n Component.prototype.destroy = function () {\r\n this.destroySubComponents();\r\n var c = this.c;\r\n this.$container\r\n .rmClass(\"luna-\".concat(this.compName))\r\n .rmClass(c(\"platform-\".concat((0, util_1.getPlatform)())))\r\n .rmClass(c(\"theme-\".concat(this.options.theme)));\r\n this.$container.html('');\r\n this.emit('destroy');\r\n this.removeAllListeners();\r\n };\r\n Component.prototype.setOption = function (name, val) {\r\n var _this = this;\r\n var options = this.options;\r\n var newOptions = {};\r\n if (typeof name === 'string') {\r\n newOptions[name] = val;\r\n }\r\n else {\r\n newOptions = name;\r\n }\r\n (0, each_1.default)(newOptions, function (val, name) {\r\n var oldVal = options[name];\r\n options[name] = val;\r\n _this.emit('optionChange', name, val, oldVal);\r\n });\r\n };\r\n Component.prototype.getOption = function (name) {\r\n return this.options[name];\r\n };\r\n Component.prototype.addSubComponent = function (component) {\r\n component.setOption('theme', this.options.theme);\r\n this.subComponents.push(component);\r\n };\r\n Component.prototype.removeSubComponent = function (component) {\r\n (0, remove_1.default)(this.subComponents, function (com) { return com === component; });\r\n };\r\n Component.prototype.destroySubComponents = function () {\r\n (0, each_1.default)(this.subComponents, function (component) { return component.destroy(); });\r\n this.subComponents = [];\r\n };\r\n Component.prototype.initOptions = function (options, defs) {\r\n if (defs === void 0) { defs = {}; }\r\n (0, defaults_1.default)(options, defs);\r\n (0, extend_1.default)(this.options, options);\r\n };\r\n Component.prototype.find = function (selector) {\r\n return this.$container.find(this.c(selector));\r\n };\r\n return Component;\r\n}(Emitter_1.default));\r\nexports.default = Component;\r\n","\"use strict\";\r\nvar __importDefault = (this && this.__importDefault) || function (mod) {\r\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.resetCanvasSize = exports.getPlatform = exports.pxToNum = exports.executeAfterTransition = exports.hasVerticalScrollbar = exports.measuredScrollbarWidth = exports.eventPage = exports.eventClient = exports.drag = exports.classPrefix = void 0;\r\nvar map_1 = __importDefault(require(\"licia/map\"));\r\nvar trim_1 = __importDefault(require(\"licia/trim\"));\r\nvar root_1 = __importDefault(require(\"licia/root\"));\r\nvar html_1 = __importDefault(require(\"licia/html\"));\r\nvar isNum_1 = __importDefault(require(\"licia/isNum\"));\r\nvar contain_1 = __importDefault(require(\"licia/contain\"));\r\nvar toNum_1 = __importDefault(require(\"licia/toNum\"));\r\nvar detectOs_1 = __importDefault(require(\"licia/detectOs\"));\r\nvar isHidden_1 = __importDefault(require(\"licia/isHidden\"));\r\nfunction classPrefix(name) {\r\n var prefix = \"luna-\".concat(name, \"-\");\r\n function processClass(str) {\r\n return (0, map_1.default)((0, trim_1.default)(str).split(/\\s+/), function (singleClass) {\r\n if ((0, contain_1.default)(singleClass, prefix)) {\r\n return singleClass;\r\n }\r\n return singleClass.replace(/[\\w-]+/, function (match) { return \"\".concat(prefix).concat(match); });\r\n }).join(' ');\r\n }\r\n return function (str) {\r\n if (/<[^>]*>/g.test(str)) {\r\n try {\r\n var tree = html_1.default.parse(str);\r\n traverseTree(tree, function (node) {\r\n if (node.attrs && node.attrs.class) {\r\n node.attrs.class = processClass(node.attrs.class);\r\n }\r\n });\r\n return html_1.default.stringify(tree);\r\n }\r\n catch (e) {\r\n return processClass(str);\r\n }\r\n }\r\n return processClass(str);\r\n };\r\n}\r\nexports.classPrefix = classPrefix;\r\nfunction traverseTree(tree, handler) {\r\n for (var i = 0, len = tree.length; i < len; i++) {\r\n var node = tree[i];\r\n handler(node);\r\n if (node.content) {\r\n traverseTree(node.content, handler);\r\n }\r\n }\r\n}\r\nvar hasTouchSupport = 'ontouchstart' in root_1.default;\r\nvar touchEvents = {\r\n start: 'touchstart',\r\n move: 'touchmove',\r\n end: 'touchend',\r\n};\r\nvar mouseEvents = {\r\n start: 'mousedown',\r\n move: 'mousemove',\r\n end: 'mouseup',\r\n};\r\nfunction drag(name) {\r\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\r\n}\r\nexports.drag = drag;\r\nfunction eventClient(type, e) {\r\n var name = type === 'x' ? 'clientX' : 'clientY';\r\n if (e[name]) {\r\n return e[name];\r\n }\r\n if (e.changedTouches) {\r\n return e.changedTouches[0][name];\r\n }\r\n return 0;\r\n}\r\nexports.eventClient = eventClient;\r\nfunction eventPage(type, e) {\r\n var name = type === 'x' ? 'pageX' : 'pageY';\r\n if (e[name]) {\r\n return e[name];\r\n }\r\n if (e.changedTouches) {\r\n return e.changedTouches[0][name];\r\n }\r\n return 0;\r\n}\r\nexports.eventPage = eventPage;\r\nvar scrollbarWidth;\r\nfunction measuredScrollbarWidth() {\r\n if ((0, isNum_1.default)(scrollbarWidth)) {\r\n return scrollbarWidth;\r\n }\r\n if (!document) {\r\n return 16;\r\n }\r\n var scrollDiv = document.createElement('div');\r\n var innerDiv = document.createElement('div');\r\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\r\n innerDiv.setAttribute('style', 'height: 200px');\r\n scrollDiv.appendChild(innerDiv);\r\n document.body.appendChild(scrollDiv);\r\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\r\n document.body.removeChild(scrollDiv);\r\n return scrollbarWidth;\r\n}\r\nexports.measuredScrollbarWidth = measuredScrollbarWidth;\r\nfunction hasVerticalScrollbar(el) {\r\n return el.scrollHeight > el.offsetHeight;\r\n}\r\nexports.hasVerticalScrollbar = hasVerticalScrollbar;\r\nfunction executeAfterTransition(el, callback) {\r\n if ((0, isHidden_1.default)(el)) {\r\n return callback();\r\n }\r\n var handler = function (e) {\r\n var target = e.target;\r\n if (target !== el) {\r\n return;\r\n }\r\n el.removeEventListener('transitionend', handler);\r\n callback();\r\n };\r\n el.addEventListener('transitionend', handler);\r\n}\r\nexports.executeAfterTransition = executeAfterTransition;\r\nfunction pxToNum(str) {\r\n return (0, toNum_1.default)(str.replace('px', ''));\r\n}\r\nexports.pxToNum = pxToNum;\r\nfunction getPlatform() {\r\n var os = (0, detectOs_1.default)();\r\n if (os === 'os x') {\r\n return 'mac';\r\n }\r\n return os;\r\n}\r\nexports.getPlatform = getPlatform;\r\nfunction resetCanvasSize(canvas) {\r\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\r\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\r\n}\r\nexports.resetCanvasSize = resetCanvasSize;\r\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar _1 = __importDefault(require(\"licia/$\"));\nvar uniqId_1 = __importDefault(require(\"licia/uniqId\"));\nvar find_1 = __importDefault(require(\"licia/find\"));\nvar h_1 = __importDefault(require(\"licia/h\"));\nvar Component_1 = __importDefault(require(\"../share/Component\"));\nvar Notification = (function (_super) {\n __extends(Notification, _super);\n function Notification(container, options) {\n if (options === void 0) { options = {}; }\n var _this = _super.call(this, container, { compName: 'notification' }, options) || this;\n _this.notifications = [];\n _this.initOptions(options, {\n position: {\n x: 'right',\n y: 'bottom',\n },\n duration: 2000,\n });\n _this.initTpl();\n return _this;\n }\n Notification.prototype.notify = function (content, options) {\n var _this = this;\n if (options === void 0) { options = {\n duration: this.options.duration,\n }; }\n var notification = new NotificationItem(this, content);\n this.notifications.push(notification);\n this.add(notification);\n setTimeout(function () { return _this.remove(notification.id); }, options.duration);\n };\n Notification.prototype.dismissAll = function () {\n var notifications = this.notifications;\n var notification = notifications[0];\n while (notification) {\n this.remove(notification.id);\n notification = notifications[0];\n }\n };\n Notification.prototype.add = function (notification) {\n this.container.appendChild(notification.container);\n };\n Notification.prototype.remove = function (id) {\n var notifications = this.notifications;\n var notification = (0, find_1.default)(notifications, function (notification) { return notification.id === id; });\n if (!notification)\n return;\n notification.destroy();\n var idx = notifications.indexOf(notification);\n notifications.splice(idx, 1);\n };\n Notification.prototype.initTpl = function () {\n var $container = this.$container;\n var _a = this.options.position, x = _a.x, y = _a.y;\n var justifyContent = 'flex-end';\n var alignItems = 'flex-end';\n switch (x) {\n case 'center':\n alignItems = 'center';\n break;\n case 'left':\n alignItems = 'flex-start';\n break;\n }\n if (y === 'top')\n justifyContent = 'flex-start';\n $container.attr('style', \"justify-content: \".concat(justifyContent, \"; align-items: \").concat(alignItems));\n };\n return Notification;\n}(Component_1.default));\nexports.default = Notification;\nvar NotificationItem = (function () {\n function NotificationItem(notification, content) {\n this.container = (0, h_1.default)('div');\n this.$container = (0, _1.default)(this.container);\n this.notification = notification;\n this.content = content;\n this.id = (0, uniqId_1.default)('luna-notification-');\n this.$container.attr({\n id: this.id,\n class: notification.c(\"item \".concat(notification.getOption('position').y === 'bottom' ? 'lower' : 'upper')),\n });\n this.initTpl();\n }\n NotificationItem.prototype.destroy = function () {\n this.$container.remove();\n };\n NotificationItem.prototype.initTpl = function () {\n this.$container.html(this.notification.c(\"\".concat(this.content, \"
\")));\n };\n return NotificationItem;\n}());\nmodule.exports = Notification;\nmodule.exports.default = Notification;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Emitter_1 = __importDefault(require(\"licia/Emitter\"));\nvar _1 = __importDefault(require(\"licia/$\"));\nvar util_1 = require(\"./util\");\nvar each_1 = __importDefault(require(\"licia/each\"));\nvar extend_1 = __importDefault(require(\"licia/extend\"));\nvar defaults_1 = __importDefault(require(\"licia/defaults\"));\nvar remove_1 = __importDefault(require(\"licia/remove\"));\nvar Component = (function (_super) {\n __extends(Component, _super);\n function Component(container, _a, _b) {\n var compName = _a.compName;\n var _c = _b === void 0 ? {} : _b, _d = _c.theme, theme = _d === void 0 ? 'light' : _d;\n var _this = _super.call(this) || this;\n _this.subComponents = [];\n _this.compName = compName;\n _this.c = (0, util_1.classPrefix)(compName);\n _this.options = {};\n _this.container = container;\n _this.$container = (0, _1.default)(container);\n _this.$container.addClass([\n \"luna-\".concat(compName),\n _this.c(\"platform-\".concat((0, util_1.getPlatform)())),\n ]);\n _this.on('optionChange', function (name, val, oldVal) {\n var c = _this.c;\n if (name === 'theme') {\n _this.$container\n .rmClass(c(\"theme-\".concat(oldVal)))\n .addClass(c(\"theme-\".concat(val)));\n (0, each_1.default)(_this.subComponents, function (component) {\n return component.setOption('theme', val);\n });\n }\n });\n _this.setOption('theme', theme);\n return _this;\n }\n Component.prototype.destroy = function () {\n this.destroySubComponents();\n var c = this.c;\n this.$container\n .rmClass(\"luna-\".concat(this.compName))\n .rmClass(c(\"platform-\".concat((0, util_1.getPlatform)())))\n .rmClass(c(\"theme-\".concat(this.options.theme)));\n this.$container.html('');\n this.emit('destroy');\n this.removeAllListeners();\n };\n Component.prototype.setOption = function (name, val) {\n var _this = this;\n var options = this.options;\n var newOptions = {};\n if (typeof name === 'string') {\n newOptions[name] = val;\n }\n else {\n newOptions = name;\n }\n (0, each_1.default)(newOptions, function (val, name) {\n var oldVal = options[name];\n options[name] = val;\n _this.emit('optionChange', name, val, oldVal);\n });\n };\n Component.prototype.getOption = function (name) {\n return this.options[name];\n };\n Component.prototype.addSubComponent = function (component) {\n component.setOption('theme', this.options.theme);\n this.subComponents.push(component);\n };\n Component.prototype.removeSubComponent = function (component) {\n (0, remove_1.default)(this.subComponents, function (com) { return com === component; });\n };\n Component.prototype.destroySubComponents = function () {\n (0, each_1.default)(this.subComponents, function (component) { return component.destroy(); });\n this.subComponents = [];\n };\n Component.prototype.initOptions = function (options, defs) {\n if (defs === void 0) { defs = {}; }\n (0, defaults_1.default)(options, defs);\n (0, extend_1.default)(this.options, options);\n };\n Component.prototype.find = function (selector) {\n return this.$container.find(this.c(selector));\n };\n return Component;\n}(Emitter_1.default));\nexports.default = Component;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resetCanvasSize = exports.getPlatform = exports.pxToNum = exports.executeAfterTransition = exports.hasVerticalScrollbar = exports.measuredScrollbarWidth = exports.eventClient = exports.drag = exports.classPrefix = void 0;\nvar map_1 = __importDefault(require(\"licia/map\"));\nvar trim_1 = __importDefault(require(\"licia/trim\"));\nvar root_1 = __importDefault(require(\"licia/root\"));\nvar html_1 = __importDefault(require(\"licia/html\"));\nvar isNum_1 = __importDefault(require(\"licia/isNum\"));\nvar contain_1 = __importDefault(require(\"licia/contain\"));\nvar toNum_1 = __importDefault(require(\"licia/toNum\"));\nvar detectOs_1 = __importDefault(require(\"licia/detectOs\"));\nvar isHidden_1 = __importDefault(require(\"licia/isHidden\"));\nfunction classPrefix(name) {\n var prefix = \"luna-\".concat(name, \"-\");\n function processClass(str) {\n return (0, map_1.default)((0, trim_1.default)(str).split(/\\s+/), function (singleClass) {\n if ((0, contain_1.default)(singleClass, prefix)) {\n return singleClass;\n }\n return singleClass.replace(/[\\w-]+/, function (match) { return \"\".concat(prefix).concat(match); });\n }).join(' ');\n }\n return function (str) {\n if (/<[^>]*>/g.test(str)) {\n try {\n var tree = html_1.default.parse(str);\n traverseTree(tree, function (node) {\n if (node.attrs && node.attrs.class) {\n node.attrs.class = processClass(node.attrs.class);\n }\n });\n return html_1.default.stringify(tree);\n }\n catch (e) {\n return processClass(str);\n }\n }\n return processClass(str);\n };\n}\nexports.classPrefix = classPrefix;\nfunction traverseTree(tree, handler) {\n for (var i = 0, len = tree.length; i < len; i++) {\n var node = tree[i];\n handler(node);\n if (node.content) {\n traverseTree(node.content, handler);\n }\n }\n}\nvar hasTouchSupport = 'ontouchstart' in root_1.default;\nvar touchEvents = {\n start: 'touchstart',\n move: 'touchmove',\n end: 'touchend',\n};\nvar mouseEvents = {\n start: 'mousedown',\n move: 'mousemove',\n end: 'mouseup',\n};\nfunction drag(name) {\n return hasTouchSupport ? touchEvents[name] : mouseEvents[name];\n}\nexports.drag = drag;\nfunction eventClient(type, e) {\n var name = type === 'x' ? 'clientX' : 'clientY';\n if (e[name]) {\n return e[name];\n }\n if (e.changedTouches) {\n return e.changedTouches[0][name];\n }\n return 0;\n}\nexports.eventClient = eventClient;\nvar scrollbarWidth;\nfunction measuredScrollbarWidth() {\n if ((0, isNum_1.default)(scrollbarWidth)) {\n return scrollbarWidth;\n }\n if (!document) {\n return 16;\n }\n var scrollDiv = document.createElement('div');\n var innerDiv = document.createElement('div');\n scrollDiv.setAttribute('style', 'display: block; width: 100px; height: 100px; overflow: scroll;');\n innerDiv.setAttribute('style', 'height: 200px');\n scrollDiv.appendChild(innerDiv);\n document.body.appendChild(scrollDiv);\n scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n return scrollbarWidth;\n}\nexports.measuredScrollbarWidth = measuredScrollbarWidth;\nfunction hasVerticalScrollbar(el) {\n return el.scrollHeight > el.offsetHeight;\n}\nexports.hasVerticalScrollbar = hasVerticalScrollbar;\nfunction executeAfterTransition(el, callback) {\n if ((0, isHidden_1.default)(el)) {\n return callback();\n }\n var handler = function (e) {\n var target = e.target;\n if (target !== el) {\n return;\n }\n el.removeEventListener('transitionend', handler);\n callback();\n };\n el.addEventListener('transitionend', handler);\n}\nexports.executeAfterTransition = executeAfterTransition;\nfunction pxToNum(str) {\n return (0, toNum_1.default)(str.replace('px', ''));\n}\nexports.pxToNum = pxToNum;\nfunction getPlatform() {\n var os = (0, detectOs_1.default)();\n if (os === 'os x') {\n return 'mac';\n }\n return os;\n}\nexports.getPlatform = getPlatform;\nfunction resetCanvasSize(canvas) {\n canvas.width = Math.round(canvas.offsetWidth * window.devicePixelRatio);\n canvas.height = Math.round(canvas.offsetHeight * window.devicePixelRatio);\n}\nexports.resetCanvasSize = resetCanvasSize;\n","var ARG_LENGTH = {\n a: 7,\n c: 6,\n h: 1,\n l: 2,\n m: 2,\n q: 4,\n s: 4,\n t: 2,\n v: 1,\n z: 0\n};\nvar SEGMENT_PATTERN = /([astvzqmhlc])([^astvzqmhlc]*)/gi;\nvar NUMBER = /-?[0-9]*\\.?[0-9]+(?:e[-+]?\\d+)?/gi;\nfunction parseValues(args) {\n var numbers = args.match(NUMBER);\n return numbers ? numbers.map(Number) : [];\n}\n\n/**\n * parse an svg path data string. Generates an Array\n * of commands where each command is an Array of the\n * form `[command, arg1, arg2, ...]`\n *\n * https://www.w3.org/TR/SVG/paths.html#PathDataGeneralInformation\n * @ignore\n *\n * @param {string} path\n * @returns {array}\n */\nfunction parse(path) {\n var data = [];\n var p = String(path).trim();\n\n // A path data segment (if there is one) must begin with a \"moveto\" command\n if (p[0] !== \"M\" && p[0] !== \"m\") {\n return data;\n }\n p.replace(SEGMENT_PATTERN, function (_, command, args) {\n var type = command.toLowerCase();\n var theArgs = parseValues(args);\n var theCommand = command;\n // overloaded moveTo\n if (type === \"m\" && theArgs.length > 2) {\n data.push([theCommand].concat(theArgs.splice(0, 2)));\n type = \"l\";\n theCommand = theCommand === \"m\" ? \"l\" : \"L\";\n }\n\n // Ignore invalid commands\n if (theArgs.length < ARG_LENGTH[type]) {\n return \"\";\n }\n data.push([theCommand].concat(theArgs.splice(0, ARG_LENGTH[type])));\n\n // The command letter can be eliminated on subsequent commands if the\n // same command is used multiple times in a row (e.g., you can drop the\n // second \"L\" in \"M 100 200 L 200 100 L -100 -200\" and use\n // \"M 100 200 L 200 100 -100 -200\" instead).\n while (theArgs.length >= ARG_LENGTH[type] && theArgs.length && ARG_LENGTH[type]) {\n data.push([theCommand].concat(theArgs.splice(0, ARG_LENGTH[type])));\n }\n return \"\";\n });\n return data;\n}\nvar parsePath$2 = parse;\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar parsePath$1 = parsePath$2;\n\n/**\n * Work around for https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8438884/\n * @ignore\n */\nfunction supportsSvgPathArgument(window) {\n var canvas = window.document.createElement(\"canvas\");\n var g = canvas.getContext(\"2d\");\n var p = new window.Path2D(\"M0 0 L1 1\");\n g.strokeStyle = \"red\";\n g.lineWidth = 1;\n g.stroke(p);\n var imgData = g.getImageData(0, 0, 1, 1);\n return imgData.data[0] === 255; // Check if pixel is red\n}\n\nfunction rotatePoint(point, angle) {\n var nx = point.x * Math.cos(angle) - point.y * Math.sin(angle);\n var ny = point.y * Math.cos(angle) + point.x * Math.sin(angle);\n point.x = nx;\n point.y = ny;\n}\nfunction translatePoint(point, dx, dy) {\n point.x += dx;\n point.y += dy;\n}\nfunction scalePoint(point, s) {\n point.x *= s;\n point.y *= s;\n}\nfunction polyFillPath2D(window) {\n if (typeof window === \"undefined\" || !window.CanvasRenderingContext2D) {\n return;\n }\n if (window.Path2D && supportsSvgPathArgument(window)) {\n return;\n }\n\n /**\n * Crates a Path2D polyfill object\n * @constructor\n * @ignore\n * @param {String} path\n */\n var Path2D = /*#__PURE__*/function () {\n function Path2D(path) {\n _classCallCheck(this, Path2D);\n this.segments = [];\n if (path && path instanceof Path2D) {\n var _this$segments;\n (_this$segments = this.segments).push.apply(_this$segments, _toConsumableArray(path.segments));\n } else if (path) {\n this.segments = parsePath$1(path);\n }\n }\n _createClass(Path2D, [{\n key: \"addPath\",\n value: function addPath(path) {\n if (path && path instanceof Path2D) {\n var _this$segments2;\n (_this$segments2 = this.segments).push.apply(_this$segments2, _toConsumableArray(path.segments));\n }\n }\n }, {\n key: \"moveTo\",\n value: function moveTo(x, y) {\n this.segments.push([\"M\", x, y]);\n }\n }, {\n key: \"lineTo\",\n value: function lineTo(x, y) {\n this.segments.push([\"L\", x, y]);\n }\n }, {\n key: \"arc\",\n value: function arc(x, y, r, start, end, ccw) {\n this.segments.push([\"AC\", x, y, r, start, end, !!ccw]);\n }\n }, {\n key: \"arcTo\",\n value: function arcTo(x1, y1, x2, y2, r) {\n this.segments.push([\"AT\", x1, y1, x2, y2, r]);\n }\n }, {\n key: \"ellipse\",\n value: function ellipse(x, y, rx, ry, angle, start, end, ccw) {\n this.segments.push([\"E\", x, y, rx, ry, angle, start, end, !!ccw]);\n }\n }, {\n key: \"closePath\",\n value: function closePath() {\n this.segments.push([\"Z\"]);\n }\n }, {\n key: \"bezierCurveTo\",\n value: function bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) {\n this.segments.push([\"C\", cp1x, cp1y, cp2x, cp2y, x, y]);\n }\n }, {\n key: \"quadraticCurveTo\",\n value: function quadraticCurveTo(cpx, cpy, x, y) {\n this.segments.push([\"Q\", cpx, cpy, x, y]);\n }\n }, {\n key: \"rect\",\n value: function rect(x, y, width, height) {\n this.segments.push([\"R\", x, y, width, height]);\n }\n }]);\n return Path2D;\n }();\n function buildPath(canvas, segments) {\n var endAngle;\n var startAngle;\n var largeArcFlag;\n var sweepFlag;\n var endPoint;\n var midPoint;\n var angle;\n var lambda;\n var t1;\n var t2;\n var x;\n var x1;\n var y;\n var y1;\n var r;\n var rx;\n var ry;\n var w;\n var h;\n var pathType;\n var centerPoint;\n var cpx;\n var cpy;\n var qcpx;\n var qcpy;\n var ccw;\n var startPoint = {\n x: 0,\n y: 0\n };\n var currentPoint = {\n x: 0,\n y: 0\n };\n canvas.beginPath();\n for (var i = 0; i < segments.length; ++i) {\n var s = segments[i];\n pathType = s[0];\n\n // Reset control point if command is not cubic\n if (pathType !== \"S\" && pathType !== \"s\" && pathType !== \"C\" && pathType !== \"c\") {\n cpx = null;\n cpy = null;\n }\n if (pathType !== \"T\" && pathType !== \"t\" && pathType !== \"Q\" && pathType !== \"q\") {\n qcpx = null;\n qcpy = null;\n }\n switch (pathType) {\n case \"m\":\n case \"M\":\n if (pathType === \"m\") {\n x += s[1];\n y += s[2];\n } else {\n x = s[1];\n y = s[2];\n }\n if (pathType === \"M\" || !startPoint) {\n startPoint = {\n x: x,\n y: y\n };\n }\n canvas.moveTo(x, y);\n break;\n case \"l\":\n x += s[1];\n y += s[2];\n canvas.lineTo(x, y);\n break;\n case \"L\":\n x = s[1];\n y = s[2];\n canvas.lineTo(x, y);\n break;\n case \"H\":\n x = s[1];\n canvas.lineTo(x, y);\n break;\n case \"h\":\n x += s[1];\n canvas.lineTo(x, y);\n break;\n case \"V\":\n y = s[1];\n canvas.lineTo(x, y);\n break;\n case \"v\":\n y += s[1];\n canvas.lineTo(x, y);\n break;\n case \"a\":\n case \"A\":\n if (pathType === \"a\") {\n x += s[6];\n y += s[7];\n } else {\n x = s[6];\n y = s[7];\n }\n rx = s[1]; // rx\n ry = s[2]; // ry\n angle = s[3] * Math.PI / 180;\n largeArcFlag = !!s[4];\n sweepFlag = !!s[5];\n endPoint = {\n x: x,\n y: y\n };\n\n // https://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes\n\n midPoint = {\n x: (currentPoint.x - endPoint.x) / 2,\n y: (currentPoint.y - endPoint.y) / 2\n };\n rotatePoint(midPoint, -angle);\n\n // radius correction\n lambda = midPoint.x * midPoint.x / (rx * rx) + midPoint.y * midPoint.y / (ry * ry);\n if (lambda > 1) {\n lambda = Math.sqrt(lambda);\n rx *= lambda;\n ry *= lambda;\n }\n centerPoint = {\n x: rx * midPoint.y / ry,\n y: -(ry * midPoint.x) / rx\n };\n t1 = rx * rx * ry * ry;\n t2 = rx * rx * midPoint.y * midPoint.y + ry * ry * midPoint.x * midPoint.x;\n if (sweepFlag !== largeArcFlag) {\n scalePoint(centerPoint, Math.sqrt((t1 - t2) / t2) || 0);\n } else {\n scalePoint(centerPoint, -Math.sqrt((t1 - t2) / t2) || 0);\n }\n startAngle = Math.atan2((midPoint.y - centerPoint.y) / ry, (midPoint.x - centerPoint.x) / rx);\n endAngle = Math.atan2(-(midPoint.y + centerPoint.y) / ry, -(midPoint.x + centerPoint.x) / rx);\n rotatePoint(centerPoint, angle);\n translatePoint(centerPoint, (endPoint.x + currentPoint.x) / 2, (endPoint.y + currentPoint.y) / 2);\n canvas.save();\n canvas.translate(centerPoint.x, centerPoint.y);\n canvas.rotate(angle);\n canvas.scale(rx, ry);\n canvas.arc(0, 0, 1, startAngle, endAngle, !sweepFlag);\n canvas.restore();\n break;\n case \"C\":\n cpx = s[3]; // Last control point\n cpy = s[4];\n x = s[5];\n y = s[6];\n canvas.bezierCurveTo(s[1], s[2], cpx, cpy, x, y);\n break;\n case \"c\":\n canvas.bezierCurveTo(s[1] + x, s[2] + y, s[3] + x, s[4] + y, s[5] + x, s[6] + y);\n cpx = s[3] + x; // Last control point\n cpy = s[4] + y;\n x += s[5];\n y += s[6];\n break;\n case \"S\":\n if (cpx === null || cpy === null) {\n cpx = x;\n cpy = y;\n }\n canvas.bezierCurveTo(2 * x - cpx, 2 * y - cpy, s[1], s[2], s[3], s[4]);\n cpx = s[1]; // last control point\n cpy = s[2];\n x = s[3];\n y = s[4];\n break;\n case \"s\":\n if (cpx === null || cpy === null) {\n cpx = x;\n cpy = y;\n }\n canvas.bezierCurveTo(2 * x - cpx, 2 * y - cpy, s[1] + x, s[2] + y, s[3] + x, s[4] + y);\n cpx = s[1] + x; // last control point\n cpy = s[2] + y;\n x += s[3];\n y += s[4];\n break;\n case \"Q\":\n qcpx = s[1]; // last control point\n qcpy = s[2];\n x = s[3];\n y = s[4];\n canvas.quadraticCurveTo(qcpx, qcpy, x, y);\n break;\n case \"q\":\n qcpx = s[1] + x; // last control point\n qcpy = s[2] + y;\n x += s[3];\n y += s[4];\n canvas.quadraticCurveTo(qcpx, qcpy, x, y);\n break;\n case \"T\":\n if (qcpx === null || qcpy === null) {\n qcpx = x;\n qcpy = y;\n }\n qcpx = 2 * x - qcpx; // last control point\n qcpy = 2 * y - qcpy;\n x = s[1];\n y = s[2];\n canvas.quadraticCurveTo(qcpx, qcpy, x, y);\n break;\n case \"t\":\n if (qcpx === null || qcpy === null) {\n qcpx = x;\n qcpy = y;\n }\n qcpx = 2 * x - qcpx; // last control point\n qcpy = 2 * y - qcpy;\n x += s[1];\n y += s[2];\n canvas.quadraticCurveTo(qcpx, qcpy, x, y);\n break;\n case \"z\":\n case \"Z\":\n x = startPoint.x;\n y = startPoint.y;\n startPoint = undefined;\n canvas.closePath();\n break;\n case \"AC\":\n // arc\n x = s[1];\n y = s[2];\n r = s[3];\n startAngle = s[4];\n endAngle = s[5];\n ccw = s[6];\n canvas.arc(x, y, r, startAngle, endAngle, ccw);\n break;\n case \"AT\":\n // arcTo\n x1 = s[1];\n y1 = s[2];\n x = s[3];\n y = s[4];\n r = s[5];\n canvas.arcTo(x1, y1, x, y, r);\n break;\n case \"E\":\n // ellipse\n x = s[1];\n y = s[2];\n rx = s[3];\n ry = s[4];\n angle = s[5];\n startAngle = s[6];\n endAngle = s[7];\n ccw = s[8];\n canvas.save();\n canvas.translate(x, y);\n canvas.rotate(angle);\n canvas.scale(rx, ry);\n canvas.arc(0, 0, 1, startAngle, endAngle, ccw);\n canvas.restore();\n break;\n case \"R\":\n // rect\n x = s[1];\n y = s[2];\n w = s[3];\n h = s[4];\n startPoint = {\n x: x,\n y: y\n };\n canvas.rect(x, y, w, h);\n break;\n // throw new Error(`${pathType} is not implemented`); ?\n }\n\n currentPoint.x = x;\n currentPoint.y = y;\n }\n }\n var cFill = window.CanvasRenderingContext2D.prototype.fill;\n var cStroke = window.CanvasRenderingContext2D.prototype.stroke;\n window.CanvasRenderingContext2D.prototype.fill = function fill() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n var fillRule = \"nonzero\";\n if (args.length === 0 || args.length === 1 && typeof args[0] === \"string\") {\n cFill.apply(this, args);\n return;\n }\n if (arguments.length === 2) {\n fillRule = args[1];\n }\n var path = args[0];\n buildPath(this, path.segments);\n cFill.call(this, fillRule);\n };\n window.CanvasRenderingContext2D.prototype.stroke = function stroke(path) {\n if (!path) {\n cStroke.call(this);\n return;\n }\n buildPath(this, path.segments);\n cStroke.call(this);\n };\n var cIsPointInPath = window.CanvasRenderingContext2D.prototype.isPointInPath;\n window.CanvasRenderingContext2D.prototype.isPointInPath = function isPointInPath() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n // let fillRule = 'nonzero';\n if (args[0].constructor.name === \"Path2D\") {\n // first argument is a Path2D object\n var x = args[1];\n var y = args[2];\n var fillRule = args[3] || \"nonzero\";\n var path = args[0];\n buildPath(this, path.segments);\n return cIsPointInPath.apply(this, [x, y, fillRule]);\n } else {\n return cIsPointInPath.apply(this, args);\n }\n };\n window.Path2D = Path2D;\n}\nvar path2dPolyfill$1 = polyFillPath2D;\n\nvar parsePath = parsePath$2;\nvar path2dPolyfill = path2dPolyfill$1;\nif (typeof window !== \"undefined\") {\n path2dPolyfill(window);\n}\nvar src = {\n path2dPolyfill: path2dPolyfill,\n parsePath: parsePath\n};\n\nexport { src as default };\n//# sourceMappingURL=index.esm.js.map\n","module.exports = \".luna-dom-highlighter{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000;pointer-events:none;font-size:13px}.luna-dom-highlighter-fill{position:absolute;top:0;right:0;bottom:0;left:0}.luna-dom-highlighter-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-highlighter-platform-mac{color:#303942;font-family:'.SFNSDisplay-Regular','Helvetica Neue','Lucida Grande',sans-serif}.luna-dom-highlighter-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-highlighter-px{color:gray}#luna-dom-highlighter-element-title{position:absolute;z-index:10}.luna-dom-highlighter-tooltip-content{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;padding:5px 8px;border:1px solid #fff;border-radius:3px;box-sizing:border-box;min-width:100px;max-width:min(300px,100% - 4px);z-index:2;background-clip:padding-box;will-change:transform;text-rendering:optimizeLegibility;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}.luna-dom-highlighter-tooltip-content .luna-dom-highlighter-tooltip-arrow{background:#fff;width:15px;height:8px;position:absolute}.luna-dom-highlighter-element-info-section{margin-top:12px;margin-bottom:6px}.luna-dom-highlighter-section-name{color:#333;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;line-height:12px}.luna-dom-highlighter-element-info{display:flex;flex-direction:column}.luna-dom-highlighter-element-info-header{display:flex;align-items:center}.luna-dom-highlighter-element-info-body{display:flex;flex-direction:column;padding-top:2px;margin-top:2px}.luna-dom-highlighter-element-info-row{display:flex;line-height:19px}.luna-dom-highlighter-separator-container{display:flex;align-items:center;flex:auto;margin-left:7px}.luna-dom-highlighter-separator{border-top:1px solid #ddd;width:100%}.luna-dom-highlighter-element-info-name{flex-shrink:0;color:#666}.luna-dom-highlighter-element-info-gap{flex:auto}.luna-dom-highlighter-element-info-value-color{display:flex;color:#303942;margin-left:10px;align-items:baseline}.luna-dom-highlighter-a11y-icon{width:16px;height:16px;background-repeat:no-repeat;display:inline-block}.luna-dom-highlighter-element-info-value-contrast{display:flex;align-items:center;text-align:right;color:#303942;margin-left:10px}.luna-dom-highlighter-element-info-value-contrast .luna-dom-highlighter-a11y-icon{margin-left:8px}.luna-dom-highlighter-element-info-value-icon{display:flex;align-items:center}.luna-dom-highlighter-element-info-value-text{text-align:right;color:#303942;margin-left:10px;align-items:baseline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-dom-highlighter-color-swatch{display:flex;margin-right:2px;width:10px;height:10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);line-height:10px}.luna-dom-highlighter-color-swatch-inner{flex:auto;border:1px solid #808002}.luna-dom-highlighter-element-layout-type{margin-right:10px;width:16px;height:16px}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-grid{background-image:url('data:image/svg+xml, ')}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-flex{background-image:url('data:image/svg+xml, ')}.luna-dom-highlighter-element-description{flex:1 1;font-weight:700;word-wrap:break-word;word-break:break-all}.luna-dom-highlighter-dimensions{color:#737373;text-align:right;margin-left:10px}.luna-dom-highlighter-material-node-width{margin-right:2px}.luna-dom-highlighter-material-node-height{margin-left:2px}.luna-dom-highlighter-material-tag-name{color:#881280}.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id{color:#1a1aa6}.luna-dom-highlighter-contrast-text{width:16px;height:16px;text-align:center;line-height:16px;margin-right:8px;border:1px solid #000;padding:0 1px}.luna-dom-highlighter-a11y-icon-not-ok{background-image:url('data:image/svg+xml, ')}.luna-dom-highlighter-a11y-icon-warning{background-image:url('data:image/svg+xml, ')}.luna-dom-highlighter-a11y-icon-ok{background-image:url('data:image/svg+xml, ')}@media (forced-colors:active){:root,body{background-color:transparent;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content{border-color:Highlight;background-color:canvas;color:text;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content::after{background-color:Highlight}.luna-dom-highlighter-color-swatch-inner,.luna-dom-highlighter-contrast-text,.luna-dom-highlighter-separator{border-color:Highlight}.luna-dom-highlighter-section-name{color:Highlight}.luna-dom-highlighter-dimensions,.luna-dom-highlighter-element-info-name,.luna-dom-highlighter-element-info-value-color,.luna-dom-highlighter-element-info-value-contrast,.luna-dom-highlighter-element-info-value-icon,.luna-dom-highlighter-element-info-value-text,.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id,.luna-dom-highlighter-material-tag-name{color:canvastext}}\\n\\n/*# sourceMappingURL=luna-dom-highlighter.css.map*/\";","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import superPropBase from \"./superPropBase.js\";\nexport default function _get() {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n _get = Reflect.get.bind();\n } else {\n _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n if (desc.get) {\n return desc.get.call(arguments.length < 3 ? target : receiver);\n }\n return desc.value;\n };\n }\n return _get.apply(this, arguments);\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nexport default function _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n return object;\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}","export default function _taggedTemplateLiteral(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n return Object.freeze(Object.defineProperties(strings, {\n raw: {\n value: Object.freeze(raw)\n }\n }));\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = function(module) {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: function() {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(2027);\n"],"names":["root","factory","exports","module","define","amd","self","classPrefix","name","prefix","concat","processClass","str","map","trim","split","singleClass","contain","replace","match","join","test","tree","html","traverseTree","node","attrs","class","e","handler","i","len","length","content","getPlatform","os","detectOs","Component","_Emitter","_inherits","_super","_createSuper","container","_ref","_this","compName","_ref2$theme","arguments","undefined","theme","_classCallCheck","call","subComponents","c","options","$container","$","addClass","on","val","oldVal","rmClass","each","component","setOption","_createClass","key","value","this","destroySubComponents","emit","removeAllListeners","_this2","newOptions","push","remove","com","destroy","defs","defaults","extend","selector","find","Emitter","BoxModel","_Component","initOptions","element","render","bindEvent","boxModel","getBoxModelData","position","top","left","margin","border","padding","width","height","right","bottom","computedStyle","window","getComputedStyle","getBoxModelValue","type","keys","boxModelValue","isNum","isStr","ret","toNum","isNaN","clazz","default","exportCjs","_slicedToArray","arr","Array","isArray","_i","Symbol","iterator","_s","_e","_x","_r","_arr","_n","_d","next","Object","done","err","unsupportedIterableToArray","TypeError","getObjType","obj","constructor","upperFirst","toString","getPreview","topObj","_ref$level","level","_ref$getterVal","getterVal","_ref$unenumerable","unenumerable","json","keyNum","parts","names","objEllipsis","passOpts","doStringify","keyWrapper","numWrapper","nullWrapper","strWrapper","boolWrapper","specialWrapper","strEscape","escape","wrapperEnd","wrapKey","wrapStr","toStr","SPECIAL_VAL","startWith","truncate","separator","ellipsis","objIteratee","escapeJsonStr","descriptor","getOwnPropertyDescriptor","get","isArr","isObj","isRegExp","isSymbol","isFn","isBool","arrEllipsis","canBeProto","getPrototypeOf","getOwnPropertyNames","endWith","wrapNull","emptyObj","isEmpty","proto","prototype","escapeJsStr","regJsUrl","emptyHighlightStyle","comment","string","number","keyword","operator","Log","console","_ref$type","_ref$args","args","id","group","targetGroup","header","_ref$ignoreFilter","ignoreFilter","accessGetter","lazyEvaluation","h","count","isHidden","columns","elements","objects","collapsed","log","_assertThisInitialized","resizeSensor","ResizeSensor","onResize","debounce","updateSize","formatMsg","checkGroup","parent","icon","rmAttr","$countContainer","$icon","$count","text","last","time","$timeContainer","eq","parentNode","some","arg","silent","_this$container$getBo","getBoundingClientRect","newHeight","outerHTML","textContent","idx","safeStringify","copy","addListener","stopPropagation","hasClass","renderObjectViewer","click","data","LunaDomViewer","getOption","preview","$json","objViewer","LunaObjectViewer","set","staticViewer","LunaStaticObjectViewer","_this3","Value","$dataGrid","table","dataGrid","LunaDataGrid","title","sortable","column","forEach","formatTableVal","isPrimitive","append","cb","symbol","timeout","result","stringifyAll","nextTick","stringify","JSON","parse","toggleGroup","toggleClass","clone","msg","formatCommon","formatDir","substituteStr","isErr","Error","formatErr","formatTable","formatJs","isSimple","linkify","url","renderTable","renderEl","$content","indent","indentLevel","stripIndent","_templateObject","_taggedTemplateLiteral","from","filter","toArr","unique","sort","slice","formatPreview","lines","stack","message","needStrSubstitution","isEl","formatEl","formatFn","isUndef","isNull","toEl","_this4","uniqId","extractObj","noPreview","formatElName","isInCss","newStr","shift","toInt","correctStyle","unshift","highlight","className","tagName","toLowerCase","classes","rules","lowerCase","style","rule","_rule$split2","u","navigator","userAgent","isAndroid","indexOf","Console","spaceHeight","topSpaceHeight","bottomSpaceHeight","lastScrollTop","lastTimestamp","speedToleranceFactor","maxSpeedTolerance","minSpeedTolerance","logs","displayLogs","timer","counter","asyncList","asyncTimer","isAtBottom","groupStack","Stack","selectedLog","onScroll","_this$container","scrollHeight","offsetHeight","scrollTop","timestamp","now","duration","distance","speedTolerance","Math","abs","topTolerance","bottomTolerance","el","renderViewport","initTpl","maxNum","asyncRender","showHeader","$el","$fakeEl","fakeEl","$space","space","throttle","_renderViewport","global","selectors","document","querySelector","$$","querySelectorAll","$x","path","xpath","clear","dir","off","_get","_getPrototypeOf","label","info","_len","_key","insert","_len2","_key2","_len3","_key3","_len4","_key4","perfNow","startTime","timeLog","selectLog","lastLog","clearTimeout","_len5","_key5","_len6","_key6","_len7","_key7","_len8","_key8","_len9","_key9","code","output","evalJs","_len10","_key10","openGroup","collapseGroup","updateBottomSpace","updateTopSpace","attachLog","_this$options","getCurTime","getFrom","insertAsync","insertSync","handleAsyncList","_this$options2","groupEnd","pop","size","peek","addCount","updateTime","detachLog","firstLog","splice","filterLog","lastDisplayLog","middleLog","startIdx","endIdx","middleIdx","floor","setTimeout","num","_asyncList$shift2","raf","jsInput","injectGlobal","eval","setGlobal","clearGlobal","updateIcon","updateGroup","_this$selectedLog","deselect","select","_ref$topTolerance","_ref$bottomTolerance","containerWidth","currentHeight","fakeFrag","createDocumentFragment","appendChild","frag","updateSpace","firstChild","lastChild","removeChild","dateFormat","hasTouchSupport","touchEvents","start","move","end","mouseEvents","drag","eventClient","changedTouches","pxToNum","$document","MIN_COL_WIDTH","DataGrid","resizeIdx","resizeStartX","resizeStartLeft","resizeDeltaX","nodes","colWidthsInitialized","colMap","selectedNode","isAscending","colWidths","onResizeColMove","_assertThisInitialize","$resizers","$colgroup","deltaX","origEvent","leftColWidth","rightColWidth","lowerBound","min","upperBound","max","clamp","$cols","css","newLeft","onResizeColEnd","_assertThisInitialize2","leftCol","rightCol","totalWidth","totalWeight","weight","leftWeight","rightWeight","applyColWeights","body","attr","updateHeight","updateWeights","maxHeight","minHeight","Infinity","$headerRow","$fillerRow","fillerRow","$tableBody","tableBody","$dataContainer","renderHeader","renderResizers","pos","detach","selectNode","DataGridNode","sortId","sortNodes","filterNode","insertBefore","minusHeight","offset","$tr","hide","show","_this$selectedNode","selectable","preventDefault","dataGridNode","$this","onResizeColStart","renderData","comparator","naturalOrderComparator","a","b","aVal","bVal","innerText","tableWidth","offsetWidth","thWidth","sumOfWeights","sum","lastOffset","positionResizers","resizerLeft","fillerRowHtml","resizers","td","chunka","chunkb","anum","bnum","chunk","diff","substring","DomViewer","isExpanded","childNodes","childNodeDomViewers","toggle","collapse","expand","documentElement","isEndTag","rootContainer","rootDomViewer","ignore","initObserver","$tag","focus","nodeType","Node","ELEMENT_NODE","childNode","curNode","parentElement","$children","isExpandable","renderExpandTag","renderChildNodes","renderCollapseTag","observer","disconnect","renderHtmlTag","_objectSpread","getHtmlTagData","hasTail","hasToggleButton","MutationObserver","mutations","mutation","handleMutation","observe","attributes","childList","characterData","every","addedNodes","removedNodes","TEXT_NODE","renderTextNode","COMMENT_NODE","renderHtmlComment","nodeValue","getChildNodes","child","_this$options3","toLocaleLowerCase","_this$options4","oldChildNodes","oldChildNodeDomViewers","domViewer","removeSubComponent","endTagDomViewer","attach","addSubComponent","isAttached","attribute","isLink","tail","prepend","isUrlAttribute","_typeof","_toConsumableArray","arrayLikeToArray","iter","Modal","$body","$title","footer","$footer","showClose","$close","getDefaultWidth","modal","getGlobalModal","createButtons","OK","onclick","Promise","resolve","Cancel","defaultText","input","ok","setSelectionRange","globalContainer","globalModal","buttons","buttonEls","button","innerWidth","Visitor","visited","extra","encode","getFnAbstract","fnHead","regFnHead","extractFnHead","JsonViewer","onItemClick","curTarget","circularId","$firstSpan","objToHtml","stopImmediatePropagation","$ul","enumerable","createMap","firstLevel","typeKeys","naturalSort","createEl","keyType","referenceId","reference","objAbstract","getObjAbstract","jsonSplitArr","keyClass","objToArr","splitBigArr","values","ObjectViewer","visitor","isBigArr","visitedObj","types","enumerableKeys","unenumerableKeys","symbolKeys","virtualKeys","virtualData","difference","allKeys","create","hasGetter","hasSetter","isPromise","catch","noop","getProto","t","valType","toSrc","Static","Setting","items","selectedItem","separatorCollapse","settingTitle","SettingTitle","lastItem","SettingSeparator","settingSeparator","description","settingNumber","SettingNumber","settingButton","SettingButton","settingInput","SettingInput","settingCheckbox","SettingCheckbox","settingSelect","SettingSelect","item","selectItem","_this$selectedItem","filterItem","renderSettings","settingItem","SettingItem","setting","tabindex","_SettingItem","_super2","_SettingItem2","_super3","_SettingItem3","_super4","_this5","$input","onChange","_SettingItem4","_super5","_this6","step","range","progress","$value","$trackProgress","toFixed","_SettingItem5","_super6","_this7","checked","_SettingItem6","_super7","_this8","$select","_SettingItem7","_super8","_this9","scrollbarWidth","Tab","$tabs","tabs","$slider","tab","itemHeight","$items","before","updateSlider","scrollToSelected","targetScrollLeft","itemLeft","offsetLeft","itemWidth","scrollLeft","display","scrollbarHeight","scrollDiv","createElement","innerDiv","setAttribute","clientWidth","measuredScrollbarWidth","selected","lineHeight","hideScrollbar","deltaY","$item","TextViewer","lineNum","unescape","stripHtmlTag","$copy","_updateCopyPos","showLineNumbers","wrapLongLines","_render","updateCopyPos","$text","regBreakLine","getLines","line","emitter","ADD","SHOW","SCALE","Class","init","_$el","keyMap","keyMapLen","arrToMap","createDarkTheme","darkerBackground","contrast","consoleWarnBackground","consoleWarnForeground","consoleWarnBorder","consoleErrorBackground","consoleErrorForeground","consoleErrorBorder","light","dark","createLightTheme","darkThemes","Light","background","foreground","selectForeground","accent","primary","varColor","stringColor","keywordColor","numberColor","operatorColor","linkColor","textColor","tagNameColor","functionColor","attributeNameColor","commentColor","cssProperty","Dark","Dracula","Github","styleList","scale","curTheme","themes","head","resetStyle","resetStyles","_ref2","$0","$1","_keys","RegExp","kebabCase","setScale","s","setTheme","getCurTheme","getThemes","Settings","_Tool","_style","evalCss","require","_settings","_setting","LunaSetting","_bindEvent","config","_cleanSeparator","desc","_genId","appendCheckbox","selections","selectOptions","selection","appendSelect","_ref$min","_ref$max","_ref$step","appendNumber","appendButton","appendSeparator","appendTitle","children","isSeparator","getAttribute","_getSetting","LocalStore","Tool","hasSafeArea","proceed","div","CSS","supports","paddingBottom","calculatedPadding","parseInt","safeStorage","memReplacement","localStorage","sessionStorage","x","Date","setItem","y","getItem","removeItem","memStorage","getFileName","Url","hostname","isErudaEl","isChobitsuEl","evalCssUtil","eventPage","logger","EntryBtn","_defineProperty","_isClick","_startX","_oldX","_oldY","_startY","_onDragMove","_onDragEnd","btnSize","maxWidth","_$container","newX","newY","cfg","_initTpl","_registerListener","_isOutOfRange","_getDefPos","_unregisterListener","defPos","_scaleListener","_resetPos","orientationChanged","setPos","_onDragStart","orientation","addEventListener","settings","createCfg","rememberPos","switch","minWidth","innerHeight","Logger","formatter","argList","DevTools","_ref$defaults","_tab","_defCfg","transparency","displaySize","isDarkMode","_isShow","_opacity","_tools","_isResizing","_resizeTimer","_resizeStartY","_resizeStartSize","_initTab","_initNotification","_initModal","ready","_checkSafeArea","opacity","tool","_$tools","active","tools","toolKeys","showTool","_curTool","lastTool","_setTransparency","_setDisplaySize","_setTheme","store","location","reload","_notification","notify","removeAll","removeEventListener","_updateTabHeight","isDarkTheme","LunaTab","LunaNotification","LunaModal","$resizer","$navBar","moveListener","endListener","uncaught","_ref$name","_logger","error","_selectedLog","_container","_appendTpl","_initCfg","_initLogger","_exposeLogger","_handleShow","origConsole","_origConsole","winConsole","CONSOLE_METHOD","origin","bind","apply","_handleErr","$filterText","_$filterText","ignoreGlobalErr","restoreConsole","_rmCfg","enabled","$jsInput","_$inputContainer","_$input","_$inputBtns","_$control","_$logs","maxLogNum","$level","LunaConsole","overrideConsole","$inputBtns","$control","then","_hideInput","evaluate","blur","_showInput","catchGlobalErr","jsExecution","displayExtraInfo","displayUnenumerable","displayGetterVal","displayIfErr","_enableJsExecution","Detail","devtools","detailData","_detailData","method","status","reqHeaders","resHeaders","resTxt","_devtools","postData","MAX_RES_LEN","_copyRes","isJson","showSources","subType","sources","chobitsu","Chobitsu","register","Network","Overlay","DOM","getNodeId","getDOMNodeId","getNode","getDOMNode","Storage","params","_isRecording","request","headers","displayTime","_requestDataGrid","requestId","hasErr","_requests","_updateType","response","ms","encodedDataLength","getResponseBody","_selectedRequest","platform","command","ignoredHeaders","escapeString","encapsChars","hexString","charCodeAt","inferredMethod","formData","requestFormData","requestMethod","requestHeaders","curlStr","Referer","href","_splitMode","_$network","_detail","_splitMediaQuery","setQuery","_$detail","MediaQuery","isMatch","_$requests","_resizeSensor","_updateDataGridHeight","_getType","contentType","getType","$showDetail","$copyCurl","iconDisabled","requestDataGrid","_showDetail","_copyCurl","_toggleRecording","_updateButtons","enable","network","_reqWillBeSent","_resReceivedExtraInfo","_resReceived","_loadingFinished","_updateScale","formatStyle","sortKeys","lenA","lenB","cmpResult","cmpCode","sortStyleKeys","elProto","Element","matchesSel","webkitMatchesSelector","selText","mozMatchesSelector","CssStore","_el","styleSheets","styleSheet","cssRules","cssRule","matchesEl","_elMatchesSel","selectorText","transCode","formatNodeName","_ref$noAttr","noAttr","_disableObserver","hideHighlight","_curEl","_initObserver","_rmDefComputedStyle","_computedStyleSearchKeyword","_enableObserver","nodeId","highlightNode","highlightConfig","showInfo","contentColor","paddingColor","borderColor","marginColor","restoreEventTarget","winEventProto","getWinEventProto","origAddEvent","_origAddEvent","origRmEvent","_origRmEvent","listener","useCapture","events","erudaEvents","listenerStr","addEvent","listeners","rmEvent","_$elementName","_$attributes","_$styles","_$listeners","_$computedStyle","boxModelContainer","_$boxModel","_boxModel","LunaBoxModel","_getData","$attributes","$elementName","$styles","$computedStyle","$listeners","styles","toggleButton","rmDefComputedStyle","computedStyleSearchKeyword","_ref3","cssStore","formatAttr","needNoStyle","getMatchedCSSRules","getInlineStyle","processStyleRules","keepStyles","pick","property","_toggleAllComputedStyle","_observer","_handleMutation","subtree","target","overrideEventTarget","processStyleRule","wrapLink","regColor","regCssUrl","NO_STYLE_TAG","link","safeGet","Elements","_curNode","_htmlEl","parentQueue","_curParentQueue","isElExist","_selectElement","setInspectMode","mode","isMobile","showRulers","showAccessibilityInfo","showExtensionLines","contrastAlgorithm","backendNodeId","_toggleSelect","_renderCrumbs","_updateHistory","_observeElement","_history","_domViewer","_$domViewer","_setNode","_inspectNodeRequested","disable","$copyNode","$deleteNode","_$crumbs","crumbs","reverse","getCrumbs","_copyNode","_deleteNode","_back","history","fn","regText","traverse","$node","createTextNode","$ret","search","contentEditable","scrollTo","documentHeight","clientHeight","viewportHeight","scaleVal","scrollY","loadPlugin","processor","newNode","replaceChild","globalName","protocol","loadJs","pluginVersion","isLoaded","fps","features","timing","memory","benchmark","geolocation","dom","touches","Snippets","_snippets","_addDefSnippets","snippets","_run","defSnippets","snippet","add","_renderHtml","_lastHtml","resources","_dataGrid","_type","_resources","_selectedItem","_storeData","_$dataGrid","_updateGridHeight","_refreshStorage","storeData","$deleteStorage","$copyStorage","btnDisabled","refresh","_getVal","setState","state","getState","warn","danger","Cookie","cookies","getCookies","cookieData","$deleteCookie","$copyCookie","clearDataForOrigin","storageTypes","deleteCookies","_filter","Resources","_hideErudaSetting","_localStorage","_$localStorage","_sessionStorage","_$sessionStorage","_cookie","_$cookie","refreshLocalStorage","refreshSessionStorage","refreshCookie","refreshScript","refreshStylesheet","refreshIframe","refreshImage","scriptData","src","scriptState","scriptDataHtml","script","scriptHtml","$script","_$script","stylesheetData","rel","stylesheetState","stylesheetDataHtml","stylesheet","stylesheetHtml","$stylesheet","_$stylesheet","iframeData","iframeDataHtml","iframe","iframeHtml","_$iframe","imageData","performance","_performance","webkitPerformance","getEntries","entry","initiatorType","isImg","imageState","imageDataHtml","image","imageHtml","$image","_$image","linkFactory","sameOrigin","ajax","success","dataType","hideErudaSetting","observeElement","checkEl","getLowerCaseTagName","_step","_iterator","_createForOfIteratorHelper","n","f","regImg","browser","detectBrowser","screen","devicePixelRatio","version","Info","_infos","_addDefInfo","infos","isUpdate","cloneDeep","defInfo","$li","Sources","_showLineNum","_isFetchingData","img","Image","onload","_data","onerror","_renderDef","_html","_isGettingHtml","complete","showLineNum","_isInit","_renderCode","_renderImg","_renderObj","_renderRaw","_renderIframe","_this$_data$val","MAX_RAW_LEN","MAX_BEAUTIFY_LEN","replaceAll","LunaTextViewer","MAX_LINE_NUM_LEN","_ref$autoScale","autoScale","_ref$useShadowDom","useShadowDom","_scale","_initContainer","_initStyle","_initDevTools","_initEntryBtn","_initSettings","_initTools","_autoScale","VERSION","util","_checkInit","_entryBtn","devTools","_devTools","_shadowRoot","p","entryBtn","getPos","viewportScale","_addListener","_showListener","shadowRoot","all","attachShadow","createShadowRoot","initCfg","eruda","__awaiter","thisArg","_arguments","P","generator","reject","fulfilled","rejected","__generator","g","_","sent","trys","ops","verb","v","op","__importDefault","mod","__esModule","defineProperty","connector_1","noop_1","uuid_1","each_1","Emitter_1","util_1","resolves","Map","domains","onMessage","parsedMessage","_a","name_1","domain","setOnMessage","sendMessage","sendRawMessage","resultMsg","e_1","_b","callMethod","ErrorWithCode","methods","mixin","domainName","methodName","__createBinding","o","m","k","k2","__setModuleDefault","__importStar","hasOwnProperty","setOuterHTML","setNodeValue","setInspectedNode","setAttributeValue","setAttributesAsText","resolveNode","requestNode","requestChildNodes","removeNode","pushNodesByBackendIdsToFrontend","discardSearchResults","pushNodesToFrontend","getSearchResults","performSearch","moveTo","getOuterHTML","getDocument","copyTo","collectClassNamesFromSubtree","nodeManager","nodeManager_1","objManager","mutationObserver_1","_1","isNull_1","isEmpty_1","html_1","map_1","unique_1","contain_1","lowerCase_1","toArr_1","xpath_1","concat_1","evaluate_1","classNames","traverseNode","names_1","targetNodeId","targetNode","cloneNode","wrap","depth","searchResults","node_1","trigger","parentId","query","localName","attributes_1","searchId","createId","resultCount","fromIndex","toIndex","nodeIds","delete","backendNodeIds","getObj","objectId","object","removeAttribute","filterNodes","getOrCreateNodeId","parentNodeId","childNodeCountUpdated","previousNode","getPreviousNode","previousNodeId","childNodeCount","__spreadArrays","il","r","j","jl","trim_1","decodeUriComponent_1","rmCookie_1","once_1","isNative_1","request_1","cookie","resTxtMap","winXhrProto","XMLHttpRequest","origSend","send","origOpen","open","origSetRequestHeader","setRequestHeader","isValidUrl","xhr","req","chobitsuRequest","XhrRequest","blockedCookies","readyState","handleHeadersReceived","handleDone","handleSend","handleReqHeadersSet","isFetchSupported","fetch","serviceWorker","origFetch","FetchRequest","fetchResult","base64Encoded","setShowViewportSizeOnResize","domHighlighter","DOM_1","h_1","evalCss_1","defaults_1","extend_1","root_1","toBool_1","cssSupports_1","luna_dom_highlighter_1","isCssLoaded","isEnable","domHighlighterContainer","monitorResize","ResizeObserver","resizeHandler","showViewportSizeOnResize","inspectMode","getElementFromPoint","touch","elementFromPoint","clientX","clientY","lastNodeId","isValidNode","clickListener","viewportSize","fontSize","$viewportSize","viewportSizeTimer","getTrustTokens","getUsageAndQuota","safeStorage_1","Network_1","localStore","sessionStore","quota","usage","usageBreakdown","tokens","extendStatics","__extends","d","setPrototypeOf","__proto__","__","Connector","isStr_1","copy_1","keys_1","expression","Observer","attributeName","filter_1","nodeName","publicId","systemId","hasOneTextNode","isValid","previousSibling","createErr","getProperties","releaseObj","toStr_1","isArr_1","isFn_1","isEl_1","isErr_1","isMap_1","isSet_1","isRegExp_1","type_1","toSrc_1","allKeys_1","getProto_1","isSymbol_1","has_1","objectIds","selfs","entries","getOrCreateObjId","objId","injectedScriptId","_c","generatePreview","basic","subtype","getDescription","accessorPropertiesOnly","ownProperties","properties","propVal","isOwn","configurable","writable","accessValue","noPrototype","internalProperties","internalEntries","entryId","objEntries","InternalEntry","createInternalEntries","MAX_PREVIEW_LEN","overflow","name_2","getPropertyPreview","entries_1","keys_2","entries_2","keys_3","fullUrl","last_1","Url_1","now_1","startWith_1","toNum_1","toJSON","getResponseHeader","getSize","getHeaders","blob","callback","reader","resType","responseType","update","responseText","FileReader","readAsText","Request","res","getFetchSize","getFetchHeaders","contentLen","lenToUtf8Bytes","getAllResponseHeaders","headersOnly","getStrSize","isCrossOrig","host","pathname","hash","encodeURIComponent","getBase64Content","getTextContent","getOrigin","getUrl","getAbsoluteUrl","uniqId_1","random_1","convertBin_1","axios_1","_newTarget","getContent","proxy","urlObj","proxyUrl","ArrayBuffer","isCallable","tryToString","$TypeError","argument","isConstructor","$String","String","wellKnownSymbol","UNSCOPABLES","ArrayPrototype","isPrototypeOf","it","Prototype","isObject","fails","buffer","isExtensible","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","O","index","includes","createProperty","$Array","fin","uncurryThis","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","exec","SKIP_CLOSING","ITERATION_SUPPORT","stringSlice","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","$Object","CORRECT_ARGUMENTS","tag","tryGet","callee","defineBuiltInAccessor","defineBuiltIns","anInstance","isNullOrUndefined","iterate","defineIterator","createIterResultObject","setSpecies","DESCRIPTORS","fastKey","InternalStateModule","setInternalState","internalStateGetterFor","getterFor","getConstructor","wrapper","CONSTRUCTOR_NAME","IS_MAP","ADDER","Constructor","that","iterable","first","AS_ENTRIES","getInternalState","previous","getEntry","removed","prev","callbackfn","boundFunction","has","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","iterated","kind","isForced","defineBuiltIn","InternalMetadataModule","checkCorrectnessOfIteration","setToStringTag","inheritIfRequired","common","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","KEY","uncurriedNativeMethod","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","dummy","forced","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","source","exceptions","F","createPropertyDescriptor","bitmap","toPropertyKey","propertyKey","makeBuiltIn","getter","setter","defineGlobalProperty","simple","unsafe","nonConfigurable","nonWritable","documentAll","IS_HTMLDDA","EXISTS","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","classList","documentCreateElement","DOMTokenListPrototype","IS_DENO","IS_NODE","Deno","Pebble","classof","process","versions","v8","$Error","TEST","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","dropEntries","prepareStackTrace","createNonEnumerableProperty","clearErrorStack","ERROR_STACK_INSTALLABLE","captureStackTrace","C","copyConstructorProperties","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","sham","preventExtensions","NATIVE_BIND","FunctionPrototype","Function","Reflect","aCallable","getDescriptor","PROPER","CONFIGURABLE","uncurryThisWithBind","aFunction","namespace","getMethod","Iterators","anObject","getIteratorMethod","usingIterator","iteratorMethod","V","func","check","globalThis","toObject","getBuiltIn","propertyIsEnumerable","Wrapper","NewTarget","NewTargetPrototype","functionToString","inspectSource","cause","hiddenKeys","getOwnPropertyNamesModule","getOwnPropertyNamesExternalModule","uid","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","getWeakData","onFreeze","NATIVE_WEAK_MAP","shared","sharedKey","OBJECT_ALREADY_INITIALIZED","WeakMap","metadata","facade","STATE","enforce","TYPE","$documentAll","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","replacement","feature","detection","normalize","POLYFILL","NATIVE","USE_SYMBOL_AS_UID","$Symbol","isArrayIteratorMethod","getIterator","iteratorClose","Result","stopped","ResultPrototype","unboundFunction","iterFn","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","innerResult","innerError","IteratorPrototype","returnThis","IteratorConstructor","NAME","ENUMERABLE_NEXT","IS_PURE","FunctionName","createIteratorConstructor","IteratorsCore","PROPER_FUNCTION_NAME","CONFIGURABLE_FUNCTION_NAME","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","ENTRIES","Iterable","DEFAULT","IS_SET","FORCED","CurrentIteratorPrototype","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","PrototypeOfArrayIteratorPrototype","arrayIterator","toLength","enforceInternalState","CONFIGURABLE_LENGTH","TEMPLATE","arity","ceil","trunc","promise","macrotask","Queue","IS_IOS","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","queue","flush","exit","enter","PromiseCapability","$$resolve","$$reject","$default","activeXDocument","definePropertiesModule","enumBugKeys","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","JS","contentWindow","Properties","V8_PROTOTYPE_DEFINE_BUG","objectKeys","defineProperties","props","IE8_DOM_DEFINE","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","propertyIsEnumerableModule","$getOwnPropertyNames","arraySlice","windowNames","getWindowNames","internalObjectKeys","getOwnPropertySymbols","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","$propertyIsEnumerable","NASHORN_BUG","uncurryThisAccessor","aPossiblePrototype","CORRECT_SETTER","pref","valueOf","getOwnPropertySymbolsModule","NativePromiseConstructor","IS_BROWSER","V8_VERSION","NativePromisePrototype","SPECIES","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","CONSTRUCTOR","REJECTION_EVENT","newPromiseCapability","promiseCapability","TAG","SHARED","copyright","license","aConstructor","defaultConstructor","S","toIntegerOrInfinity","requireObjectCoercible","charAt","CONVERT_TO_STRING","second","codeAt","$location","defer","channel","port","validateArgumentsLength","setImmediate","clearImmediate","Dispatch","MessageChannel","ONREADYSTATECHANGE","run","runner","eventListener","event","globalPostMessageDefer","postMessage","port2","port1","onmessage","importScripts","integer","IndexedObject","ordinaryToPrimitive","TO_PRIMITIVE","exoticToPrim","toPrimitive","postfix","random","NATIVE_SYMBOL","passed","required","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","installErrorCause","installErrorStack","normalizeStringArgument","$AggregateError","errors","isInstance","AggregateErrorPrototype","errorsArray","AggregateError","addToUnscopables","ARRAY_ITERATOR","Arguments","collection","newPromiseCapabilityModule","perform","allSettled","capability","promiseResolve","remaining","alreadyCalled","reason","$promiseResolve","PROMISE_STATICS_INCORRECT_ITERATION","PROMISE_ANY_ERROR","any","alreadyResolved","alreadyRejected","real","onRejected","Internal","OwnPromiseCapability","nativeThen","speciesConstructor","task","hostReportErrors","PromiseConstructorDetection","PROMISE","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","initEvent","isUnhandled","unwrap","internalReject","internalResolve","executor","onFulfilled","PromiseWrapper","onFinally","isFunction","race","PromiseConstructorWrapper","CHECK_WRAPPER","STRING_ITERATOR","point","DOMIterables","ArrayIteratorMethods","ArrayValues","handlePrototype","CollectionPrototype","COLLECTION_NAME","METHOD_NAME","___CSS_LOADER_API_IMPORT___","useSourceMap","list","cssMapping","btoa","sourceMapping","sourceMap","base64","sourceURLs","sourceRoot","cssWithMappingToString","modules","mediaQuery","dedupe","alreadyImportedModules","Select","$offset","$show","$css","$attr","$property","$remove","$data","$event","$class","$insert","isGetter","after","$safeEls","els","getAttr","setAttr","safeName","regName","getPropertyValue","getCss","cssText","dash","needPx","cssNumProps","addPx","setCss","dataName","delegate","eventFactory","insertFactory","insertAdjacentHTML","nextSibling","clientRect","pageXOffset","pageYOffset","round","propFactory","elName","elDisplay","getDefDisplay","inherits","isMiniProgram","Base","statics","makeClass","ctor","initialize","callSuper","rgbToHsl","hslToRgb","hex","color","model","toRgb","toHex","toHsl","colorStr","regHexAbbr","regHex","i2","regRgba","parseFloat","regRgbaPer","regHsla","once","_events","freeze","member","Store","_name","localData","save","Enum","setLevel","DEBUG","toUpperCase","_level","getLevel","trace","_log","debug","TRACE","INFO","WARN","ERROR","SILENT","_listener","_mql","removeListener","matchMedia","matches","MozMutationObserver","takeRecords","SingleEmitter","resizeObserver","_resizeObserver","rmAllListeners","unobserve","_appendResizeSensor","_resizeSensorEl","pointerEvents","zIndex","visibility","styleChild","transition","expandChildEl","expandEl","shrinkEl","resizeSensorEl","_expandEl","_expandChildEl","_shrinkEl","_resetExpandShrink","_onScroll","mergeArr","rootSelect","_listeners","rmListener","_items","ctx","isBrowser","rmQuery","auth","slashes","rest","regProto","substr","hostEnd","hostEndingChars","atSign","lastIndexOf","decodeURIComponent","regPort","queryMark","parseArgs","abortTimeout","onreadystatechange","responseXML","abort","post","_ref$prototype","_ref$symbol","getKeys","_isFn","bytes","tmp","remain","decode","str1","str2","str3","str4","codeMap","memo","splitCase","capitalize","regPropName","quote","regEscapeChar","lower","upper","mapObj","idxOf","isArrLike","isArrBuffer","isBuffer","bin","Uint8Array","Buffer","Blob","blobToArrBuffer","fileReader","readAsArrayBuffer","decodeUriComponent","defOpts","setCookie","expires","setMilliseconds","getMilliseconds","toUTCString","secure","execCommand","objCreate","keysFn","memoize","camelCase","isDate","lpad","date","mask","utc","gmt","regNum","maskSlice","masks","D","H","M","L","getTimezoneOffset","flags","dd","padZero","ddd","i18n","dayNames","dddd","mm","mmm","monthNames","mmmm","yy","yyyy","hh","HH","MM","ss","l","tt","T","TT","Z","regTimezone","regTimezoneClip","regToken","shortDate","mediumDate","longDate","fullDate","shortTime","mediumTime","longTime","isoDate","isoTime","isoDateTime","isoUtcDateTime","expiresHeaderFormat","wait","immediate","ucs2","utf8","hexToInt","numStr","regMatcher","createAssigner","castPath","defineProp","prop","lastProp","retTrue","retFalse","handlers","handlerQueue","formatHandlers","Event","matched","isPropagationStopped","isImmediatePropagationStopped","delegateCount","isDefaultPrevented","ua","ieVer","getVer","regIe11","browsers","regBrowsers","edge","firefox","opera","android","ios","safari","chrome","mark","detect","restArgs","flatten","optimizeCb","suffix","regTest","regReplace","replaceFn","regSrc","regEscapeChars","char","safeCb","predicate","curKey","urlList","regUrl","findKey","findIdx","flat","cur","ObjectCtr","_parseTag","words","word","parseTag","hasOwnProp","isOdd","byte","lang","defStyle","language","subLangSi","subLangs","re","$2","levels","lastTag","embed","$tmpl","numbers","keywords","js","hsl","t2","t3","t1","parseHtml","unescapeQuote","escapeQuote","lastNode","fromIdx","SuperClass","objToStr","MAX_ARR_IDX","pow","_isBuffer","isArgs","objStr","isOutside","containerRect","_ref$display","_ref$visibility","_ref$opacity","_ref$size","_ref$viewport","viewport","_ref$overflow","offsetParent","_cur","_overflow","wx","openLocation","regMobileAll","regMobileFour","regIsNative","regIsHostCtor","isInt","cmp","defComparator","extractUrls","escapeRegExp","defHyperlink","hyperlink","isNotLoaded","repeat","chars","strLen","regSpace","trimLeft","charLen","found","results","extendOwn","API_KEYS","cloak","uncloakedKeys","cloakedKeys","hashFn","cache","address","arrays","metaEach","selectMeta","getMeta","metas","doc","setMeta","nameList","metaList","regStrTime","factor","suffixList","ensureCallable","getTime","ObjToStr","partial","argCount","accumulator","lastHtml","SPECIAL","execRes","_text2","parseEndTag","regDoctype","_match","regEndTag","_match2","regStartTag","parseStartTag","_endIdx","_text","unary","regAttr","$3","$4","partials","loadTime","hrtime","getNanoSeconds","hr","uptime","omit","iteratee","regPrefixes","prefixes","prefixName","camelCaseResult","regIllegalChars","param","arrKey","cancel","lastTime","requestAnimationFrame","cancelAnimationFrame","vendors","curTime","timeToCall","floating","rand","isNode","crypto","msCrypto","getRandomValues","randomBytes","fns","hack","doScroll","domContentLoaded","loaded","newSubstr","rgb","mMin","mMax","delta","hostNames","pathNames","pathLen","del","hostName","pathName","trimRight","matcher","identity","url1","url2","isSorted","deep","visitedResult","_value","regUpperCase","regSeparator","regTrim","spaces","valPos","safeSet","iterateObj","_ref$startTime","_ref$timeout","_ref$depth","_ref$curDepth","curDepth","_ref$visitor","_ref$accessGetter","_ref$ignore","Number","POSITIVE_INFINITY","NEGATIVE_INFINITY","NaN","newObj","lastSlash","Fn","defineProps","handleGetterSetter","_reference","isGetterAndSetter","realKey","retTimeout","correctReference","regHtmlTag","literals","placeholders","indentLens","_indent","regStartSpaces","fragment","innerHTML","createRange","createContextualFragment","isNil","fnToStr","ltrim","rtrim","txt","defOptions","regObj","fromCodePoint","nums","isOn","callListeners","filename","lineno","colno","invert","idCounter","isEqual","toLocaleUpperCase","codePoints","byteArr","encodeCodePoint","safe","byteIdx","byteCount","codePoint","bytesSeen","bytesNeeded","lowerBoundary","upperBoundary","decodeCodePoint","fromCharCode","goBack","hexBytes","minScale","maxScale","initialScale","nodesSnapshot","XPathResult","ORDERED_NODE_SNAPSHOT_TYPE","snapshotLength","snapshotItem","__assign","assign","__values","Component_1","tool_highlight_1","ResizeSensor_1","throttle_1","Color_1","hex_1","upperCase_1","camelCase_1","elementRoles_1","DomHighlighter","overlay","HighlightOverlay","reset","viewportWidth","deviceScaleFactor","pageScaleFactor","pageZoomFactor","emulationScaleFactor","scrollX","showStyles","colorFormat","setContainer","setPlatform","redraw","draw","HTMLElement","intercept","interceptor","Text","drawText","drawElement","paths","rectToPath","fillColor","normalizeColor","elementInfo","nodeWidth","nodeHeight","drawHighlight","getPaths","getElementInfo","getNumStyle","ml","mr","mt","mb","bl","br","bt","bb","pl","pr","pt","pb","idValue","getStyles","getAccessibilityInfo","hasTextChildren","propertiesToValues","textOpacity","isKeyboardFocusable","isFocusable","getAccessibleNameAndRole","tabIdx","role","attributes_1_1","e_1_1","return","accessibleName","accessibleRole","regRgb","useCamelCase","rgbToHex","__read","ar","blendColors","fgRGBA","bgRGBA","alpha","luminance","rSRGB","gSRGB","bSRGB","getContrastThreshold","isLargeFont","getAPCAThreshold","desiredLuminanceAPCA","contrastRatioByLuminanceAPCA","contrastRatioAPCA","luminanceAPCA","contrastRatio","rgbaToHsla","fgLuminance","bgLuminance","mainTRC","normBgExp","normFgExp","revBgExp","revFgExp","blkThrs","blkClmp","scaleBoW","scaleWoB","deltaLuminanceMin","loConThresh","loConFactor","loConOffset","loClip","clampLuminance","lighter","computeLuminance","desiredLuminance","contrastAPCALookupTable","fontWeight","fontSizePt","e_2","contrastAPCALookupTable_1","contrastAPCALookupTable_1_1","rowSize","rowWeights","_f","threshold","e_2_1","contrastThresholds","largeFont","aa","aaa","normalFont","__spreadArray","to","pack","adoptStyleSheet","constrainNumber","ellipsify","createTextChild","createChild","canvasWidth","canvasHeight","_installed","_window","_document","setCanvas","canvas","_context","getContext","install","uninstall","_loop_1","adoptedStyleSheets","resetData","visualViewportSize","resetCanvas","dispatch","eventHasCtrlOrMeta","metaKey","ctrlKey","getElementById","maxLength","drawPath","formatColor","formatRgba","parseHexa","createPathForQuad","hatchFillPath","applyMatrixToPoint","emptyBounds","buildPath","fillPathWithBoxStyle","drawPathWithLineStyle","endWith_1","ColorUtils_1","commands","bounds","commandsIndex","extractPoints","points","maxX","minX","maxY","minY","leftmostXForY","MAX_VALUE","rightmostXForY","MIN_VALUE","topmostYForX","bottommostYForX","allPoints","commandsLength","Path2D","lineTo","bezierCurveTo","quadraticCurveTo","closePath","context","lineStyle","lineWidth","translate","pattern","setLineDash","strokeStyle","stroke","restore","angle","boxStyle","fillStyle","fill","hatchColor","matrix","domPoint","DOMPoint","matrixTransform","hatchLinePattern","HATCH_LINE_LENGTH","HATCH_LINE_GAP","hatchLineColor","rotationAngle","flipDirection","offscreenCanvas","offscreenCtx","clearRect","rect","createPattern","DOMMatrix","setTransform","rotate","hexa","rgba","outerQuad","quadsToClip","p1","p2","p3","p4","quadsToClip_1","quadsToClip_1_1","quad","outlineColor","outlinePattern","common_1","highlight_common_1","gridLabelState","gridLayerCounter","tooltip","globalCompositeOperation","rulerAtRight","Boolean","rulerAtBottom","drawAxis","DEFAULT_RULER_COLOR","beginPath","drawRulers","tooltipContainer","tooltipContent","elementInfoElement","elementInfoHeaderElement","layoutType","layoutObjectName","getElementLayoutType","descriptionElement","nodeIdElement","classNameElement","dimensionsElement","elementInfoBodyElement","isLockedAncestor","addTextRow","isLocked","addColorRow","fontFamily","bgcolor","cbgColor","backgroundColor","hasContrastInfo","addSection","addContrastRow","addIconRow","ensureElementInfoBody","rowElement","addRow","rowClassName","valueClassName","valueElement","swatch","fgColor","parsedFgColor","parsedBgColor","sampleText","valueSpan","percentage","ratio","createElementDescription","arrowX","titleWidth","titleHeight","arrowHalfWidth","pageMargin","arrowWidth","arrowInset","containerMinX","containerMaxX","boundsAreTooNarrow","xFromLeftBound","xFromRightBound","arrowHidden","boxX","boxY","onTop","overlaps","tooltipArrow","clipPath","drawElementTitle","pageFactor","zoom","unzoom","gridStep","gridBackgroundColor","fillRect","darkGridColor","PI","fillText","markLength","lightGridColor","remove_1","resetCanvasSize","executeAfterTransition","hasVerticalScrollbar","isNum_1","detectOs_1","isHidden_1","find_1","Notification","notifications","notification","NotificationItem","dismissAll","justifyContent","alignItems","ARG_LENGTH","q","z","SEGMENT_PATTERN","NUMBER","parsePath$2","theArgs","parseValues","theCommand","_defineProperties","_arrayLikeToArray","_arrayWithoutHoles","_iterableToArray","minLen","_unsupportedIterableToArray","_nonIterableSpread","arr2","parsePath$1","rotatePoint","nx","cos","sin","ny","scalePoint","path2dPolyfill$1","CanvasRenderingContext2D","getImageData","supportsSvgPathArgument","_this$segments","segments","protoProps","staticProps","_this$segments2","ccw","x1","y1","x2","y2","rx","ry","cp1x","cp1y","cp2x","cp2y","cpx","cpy","cFill","cStroke","fillRule","cIsPointInPath","isPointInPath","endAngle","startAngle","largeArcFlag","sweepFlag","endPoint","midPoint","lambda","w","pathType","centerPoint","qcpx","qcpy","dx","dy","startPoint","currentPoint","sqrt","atan2","arc","arcTo","parsePath","path2dPolyfill","ReferenceError","receiver","base","_setPrototypeOf","subClass","superClass","_possibleConstructorReturn","strings","raw","_toPropertyKey","hint","prim","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","definition","hmd","toStringTag","__webpack_exports__"],"sourceRoot":""}