@emailmaker/emailmaker 1.0.66 → 1.0.67-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/asset-manifest.json +21 -23
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +17 -1
- package/emailmaker.js +1 -1
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/{iframe-eblock.8a49c7ae6b7ddbda68c6.html → iframe-eblock.7f4a25eb84aaea5b3817.html} +1 -1
- package/iframe/iframe.7f4a25eb84aaea5b3817.html +1 -0
- package/iframe/js/882.5826de72.js +1 -0
- package/iframe/js/97.1cb044af.js +1 -0
- package/iframe/sandbox-eblock.js +1 -1
- package/package.json +1 -1
- package/plugin.html +14 -14
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_idigital.html +1 -1
- package/plugin_s.html +1 -1
- package/react/index.js +1 -1
- package/react/index.mjs +1 -1
- package/static/css/{7352.ab1f9d35.chunk.css → 7352.6877a0bf.chunk.css} +1 -1
- package/static/gfonts.json +1 -81857
- package/static/js/{1538.948c6e28.chunk.js → 1538.e13a140c.chunk.js} +2 -2
- package/static/js/2117.ff58a29c.js +2 -0
- package/static/js/{6155.6fa7365b.js → 2327.83204f0b.js} +1 -1
- package/static/js/3017.508a3b04.chunk.js +1 -0
- package/static/js/3600.81d4c730.js +1 -0
- package/static/js/7296.2bbf9459.js +1 -0
- package/static/js/7298.310f64b1.js +2 -0
- package/static/js/{7352.530c404f.chunk.js → 7352.fd77434d.chunk.js} +2 -2
- package/static/js/{8084.be8b9fa1.chunk.js → 8084.67de697a.chunk.js} +1 -1
- package/static/js/{emailmaker_core.f50f1912.js → emailmaker_core.6214b942.js} +2 -2
- package/static/js/mocks.c196c616.chunk.js +1 -0
- package/translations.pot +109 -109
- package/iframe/iframe.8a49c7ae6b7ddbda68c6.html +0 -1
- package/iframe/js/882.0af3b11d.js +0 -1
- package/iframe/js/97.0d035714.js +0 -1
- package/static/js/2150.ad9a6d86.js +0 -2
- package/static/js/3017.cd784f0e.chunk.js +0 -1
- package/static/js/3600.ff635aee.js +0 -1
- package/static/js/5052.b304d1ad.chunk.js +0 -1
- package/static/js/7419.2ade6de6.js +0 -1
- package/static/js/8411.01fb7c30.js +0 -2
- package/static/js/ant-locale/locale-ru_RU-js.a1cd5bb3.chunk.js +0 -1
- package/static/js/mocks.4e11136d.chunk.js +0 -1
- /package/iframe/js/{882.0af3b11d.js.LICENSE.txt → 882.5826de72.js.LICENSE.txt} +0 -0
- /package/static/js/{1538.948c6e28.chunk.js.LICENSE.txt → 1538.e13a140c.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{8411.01fb7c30.js.LICENSE.txt → 2117.ff58a29c.js.LICENSE.txt} +0 -0
- /package/static/js/{2150.ad9a6d86.js.LICENSE.txt → 7298.310f64b1.js.LICENSE.txt} +0 -0
- /package/static/js/{7352.530c404f.chunk.js.LICENSE.txt → 7352.fd77434d.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{emailmaker_core.f50f1912.js.LICENSE.txt → emailmaker_core.6214b942.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 7352.
|
|
2
|
-
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7352],{88106:(e,t,r)=>{"use strict";function n(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}r.d(t,{R$:()=>n,W6:()=>i,j3:()=>a});class i{constructor(e,t,r){this.id=e,this.definition=t,this.description=r,i._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return i._allCodicons}}var a;i._allCodicons=[],i.add=new i("add",{fontCharacter:"\\ea60"}),i.plus=new i("plus",i.add.definition),i.gistNew=new i("gist-new",i.add.definition),i.repoCreate=new i("repo-create",i.add.definition),i.lightbulb=new i("lightbulb",{fontCharacter:"\\ea61"}),i.lightBulb=new i("light-bulb",{fontCharacter:"\\ea61"}),i.repo=new i("repo",{fontCharacter:"\\ea62"}),i.repoDelete=new i("repo-delete",{fontCharacter:"\\ea62"}),i.gistFork=new i("gist-fork",{fontCharacter:"\\ea63"}),i.repoForked=new i("repo-forked",{fontCharacter:"\\ea63"}),i.gitPullRequest=new i("git-pull-request",{fontCharacter:"\\ea64"}),i.gitPullRequestAbandoned=new i("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),i.recordKeys=new i("record-keys",{fontCharacter:"\\ea65"}),i.keyboard=new i("keyboard",{fontCharacter:"\\ea65"}),i.tag=new i("tag",{fontCharacter:"\\ea66"}),i.tagAdd=new i("tag-add",{fontCharacter:"\\ea66"}),i.tagRemove=new i("tag-remove",{fontCharacter:"\\ea66"}),i.person=new i("person",{fontCharacter:"\\ea67"}),i.personFollow=new i("person-follow",{fontCharacter:"\\ea67"}),i.personOutline=new i("person-outline",{fontCharacter:"\\ea67"}),i.personFilled=new i("person-filled",{fontCharacter:"\\ea67"}),i.gitBranch=new i("git-branch",{fontCharacter:"\\ea68"}),i.gitBranchCreate=new i("git-branch-create",{fontCharacter:"\\ea68"}),i.gitBranchDelete=new i("git-branch-delete",{fontCharacter:"\\ea68"}),i.sourceControl=new i("source-control",{fontCharacter:"\\ea68"}),i.mirror=new i("mirror",{fontCharacter:"\\ea69"}),i.mirrorPublic=new i("mirror-public",{fontCharacter:"\\ea69"}),i.star=new i("star",{fontCharacter:"\\ea6a"}),i.starAdd=new i("star-add",{fontCharacter:"\\ea6a"}),i.starDelete=new i("star-delete",{fontCharacter:"\\ea6a"}),i.starEmpty=new i("star-empty",{fontCharacter:"\\ea6a"}),i.comment=new i("comment",{fontCharacter:"\\ea6b"}),i.commentAdd=new i("comment-add",{fontCharacter:"\\ea6b"}),i.alert=new i("alert",{fontCharacter:"\\ea6c"}),i.warning=new i("warning",{fontCharacter:"\\ea6c"}),i.search=new i("search",{fontCharacter:"\\ea6d"}),i.searchSave=new i("search-save",{fontCharacter:"\\ea6d"}),i.logOut=new i("log-out",{fontCharacter:"\\ea6e"}),i.signOut=new i("sign-out",{fontCharacter:"\\ea6e"}),i.logIn=new i("log-in",{fontCharacter:"\\ea6f"}),i.signIn=new i("sign-in",{fontCharacter:"\\ea6f"}),i.eye=new i("eye",{fontCharacter:"\\ea70"}),i.eyeUnwatch=new i("eye-unwatch",{fontCharacter:"\\ea70"}),i.eyeWatch=new i("eye-watch",{fontCharacter:"\\ea70"}),i.circleFilled=new i("circle-filled",{fontCharacter:"\\ea71"}),i.primitiveDot=new i("primitive-dot",{fontCharacter:"\\ea71"}),i.closeDirty=new i("close-dirty",{fontCharacter:"\\ea71"}),i.debugBreakpoint=new i("debug-breakpoint",{fontCharacter:"\\ea71"}),i.debugBreakpointDisabled=new i("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),i.debugHint=new i("debug-hint",{fontCharacter:"\\ea71"}),i.primitiveSquare=new i("primitive-square",{fontCharacter:"\\ea72"}),i.edit=new i("edit",{fontCharacter:"\\ea73"}),i.pencil=new i("pencil",{fontCharacter:"\\ea73"}),i.info=new i("info",{fontCharacter:"\\ea74"}),i.issueOpened=new i("issue-opened",{fontCharacter:"\\ea74"}),i.gistPrivate=new i("gist-private",{fontCharacter:"\\ea75"}),i.gitForkPrivate=new i("git-fork-private",{fontCharacter:"\\ea75"}),i.lock=new i("lock",{fontCharacter:"\\ea75"}),i.mirrorPrivate=new i("mirror-private",{fontCharacter:"\\ea75"}),i.close=new i("close",{fontCharacter:"\\ea76"}),i.removeClose=new i("remove-close",{fontCharacter:"\\ea76"}),i.x=new i("x",{fontCharacter:"\\ea76"}),i.repoSync=new i("repo-sync",{fontCharacter:"\\ea77"}),i.sync=new i("sync",{fontCharacter:"\\ea77"}),i.clone=new i("clone",{fontCharacter:"\\ea78"}),i.desktopDownload=new i("desktop-download",{fontCharacter:"\\ea78"}),i.beaker=new i("beaker",{fontCharacter:"\\ea79"}),i.microscope=new i("microscope",{fontCharacter:"\\ea79"}),i.vm=new i("vm",{fontCharacter:"\\ea7a"}),i.deviceDesktop=new i("device-desktop",{fontCharacter:"\\ea7a"}),i.file=new i("file",{fontCharacter:"\\ea7b"}),i.fileText=new i("file-text",{fontCharacter:"\\ea7b"}),i.more=new i("more",{fontCharacter:"\\ea7c"}),i.ellipsis=new i("ellipsis",{fontCharacter:"\\ea7c"}),i.kebabHorizontal=new i("kebab-horizontal",{fontCharacter:"\\ea7c"}),i.mailReply=new i("mail-reply",{fontCharacter:"\\ea7d"}),i.reply=new i("reply",{fontCharacter:"\\ea7d"}),i.organization=new i("organization",{fontCharacter:"\\ea7e"}),i.organizationFilled=new i("organization-filled",{fontCharacter:"\\ea7e"}),i.organizationOutline=new i("organization-outline",{fontCharacter:"\\ea7e"}),i.newFile=new i("new-file",{fontCharacter:"\\ea7f"}),i.fileAdd=new i("file-add",{fontCharacter:"\\ea7f"}),i.newFolder=new i("new-folder",{fontCharacter:"\\ea80"}),i.fileDirectoryCreate=new i("file-directory-create",{fontCharacter:"\\ea80"}),i.trash=new i("trash",{fontCharacter:"\\ea81"}),i.trashcan=new i("trashcan",{fontCharacter:"\\ea81"}),i.history=new i("history",{fontCharacter:"\\ea82"}),i.clock=new i("clock",{fontCharacter:"\\ea82"}),i.folder=new i("folder",{fontCharacter:"\\ea83"}),i.fileDirectory=new i("file-directory",{fontCharacter:"\\ea83"}),i.symbolFolder=new i("symbol-folder",{fontCharacter:"\\ea83"}),i.logoGithub=new i("logo-github",{fontCharacter:"\\ea84"}),i.markGithub=new i("mark-github",{fontCharacter:"\\ea84"}),i.github=new i("github",{fontCharacter:"\\ea84"}),i.terminal=new i("terminal",{fontCharacter:"\\ea85"}),i.console=new i("console",{fontCharacter:"\\ea85"}),i.repl=new i("repl",{fontCharacter:"\\ea85"}),i.zap=new i("zap",{fontCharacter:"\\ea86"}),i.symbolEvent=new i("symbol-event",{fontCharacter:"\\ea86"}),i.error=new i("error",{fontCharacter:"\\ea87"}),i.stop=new i("stop",{fontCharacter:"\\ea87"}),i.variable=new i("variable",{fontCharacter:"\\ea88"}),i.symbolVariable=new i("symbol-variable",{fontCharacter:"\\ea88"}),i.array=new i("array",{fontCharacter:"\\ea8a"}),i.symbolArray=new i("symbol-array",{fontCharacter:"\\ea8a"}),i.symbolModule=new i("symbol-module",{fontCharacter:"\\ea8b"}),i.symbolPackage=new i("symbol-package",{fontCharacter:"\\ea8b"}),i.symbolNamespace=new i("symbol-namespace",{fontCharacter:"\\ea8b"}),i.symbolObject=new i("symbol-object",{fontCharacter:"\\ea8b"}),i.symbolMethod=new i("symbol-method",{fontCharacter:"\\ea8c"}),i.symbolFunction=new i("symbol-function",{fontCharacter:"\\ea8c"}),i.symbolConstructor=new i("symbol-constructor",{fontCharacter:"\\ea8c"}),i.symbolBoolean=new i("symbol-boolean",{fontCharacter:"\\ea8f"}),i.symbolNull=new i("symbol-null",{fontCharacter:"\\ea8f"}),i.symbolNumeric=new i("symbol-numeric",{fontCharacter:"\\ea90"}),i.symbolNumber=new i("symbol-number",{fontCharacter:"\\ea90"}),i.symbolStructure=new i("symbol-structure",{fontCharacter:"\\ea91"}),i.symbolStruct=new i("symbol-struct",{fontCharacter:"\\ea91"}),i.symbolParameter=new i("symbol-parameter",{fontCharacter:"\\ea92"}),i.symbolTypeParameter=new i("symbol-type-parameter",{fontCharacter:"\\ea92"}),i.symbolKey=new i("symbol-key",{fontCharacter:"\\ea93"}),i.symbolText=new i("symbol-text",{fontCharacter:"\\ea93"}),i.symbolReference=new i("symbol-reference",{fontCharacter:"\\ea94"}),i.goToFile=new i("go-to-file",{fontCharacter:"\\ea94"}),i.symbolEnum=new i("symbol-enum",{fontCharacter:"\\ea95"}),i.symbolValue=new i("symbol-value",{fontCharacter:"\\ea95"}),i.symbolRuler=new i("symbol-ruler",{fontCharacter:"\\ea96"}),i.symbolUnit=new i("symbol-unit",{fontCharacter:"\\ea96"}),i.activateBreakpoints=new i("activate-breakpoints",{fontCharacter:"\\ea97"}),i.archive=new i("archive",{fontCharacter:"\\ea98"}),i.arrowBoth=new i("arrow-both",{fontCharacter:"\\ea99"}),i.arrowDown=new i("arrow-down",{fontCharacter:"\\ea9a"}),i.arrowLeft=new i("arrow-left",{fontCharacter:"\\ea9b"}),i.arrowRight=new i("arrow-right",{fontCharacter:"\\ea9c"}),i.arrowSmallDown=new i("arrow-small-down",{fontCharacter:"\\ea9d"}),i.arrowSmallLeft=new i("arrow-small-left",{fontCharacter:"\\ea9e"}),i.arrowSmallRight=new i("arrow-small-right",{fontCharacter:"\\ea9f"}),i.arrowSmallUp=new i("arrow-small-up",{fontCharacter:"\\eaa0"}),i.arrowUp=new i("arrow-up",{fontCharacter:"\\eaa1"}),i.bell=new i("bell",{fontCharacter:"\\eaa2"}),i.bold=new i("bold",{fontCharacter:"\\eaa3"}),i.book=new i("book",{fontCharacter:"\\eaa4"}),i.bookmark=new i("bookmark",{fontCharacter:"\\eaa5"}),i.debugBreakpointConditionalUnverified=new i("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),i.debugBreakpointConditional=new i("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),i.debugBreakpointConditionalDisabled=new i("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),i.debugBreakpointDataUnverified=new i("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),i.debugBreakpointData=new i("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),i.debugBreakpointDataDisabled=new i("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),i.debugBreakpointLogUnverified=new i("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),i.debugBreakpointLog=new i("debug-breakpoint-log",{fontCharacter:"\\eaab"}),i.debugBreakpointLogDisabled=new i("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),i.briefcase=new i("briefcase",{fontCharacter:"\\eaac"}),i.broadcast=new i("broadcast",{fontCharacter:"\\eaad"}),i.browser=new i("browser",{fontCharacter:"\\eaae"}),i.bug=new i("bug",{fontCharacter:"\\eaaf"}),i.calendar=new i("calendar",{fontCharacter:"\\eab0"}),i.caseSensitive=new i("case-sensitive",{fontCharacter:"\\eab1"}),i.check=new i("check",{fontCharacter:"\\eab2"}),i.checklist=new i("checklist",{fontCharacter:"\\eab3"}),i.chevronDown=new i("chevron-down",{fontCharacter:"\\eab4"}),i.dropDownButton=new i("drop-down-button",i.chevronDown.definition),i.chevronLeft=new i("chevron-left",{fontCharacter:"\\eab5"}),i.chevronRight=new i("chevron-right",{fontCharacter:"\\eab6"}),i.chevronUp=new i("chevron-up",{fontCharacter:"\\eab7"}),i.chromeClose=new i("chrome-close",{fontCharacter:"\\eab8"}),i.chromeMaximize=new i("chrome-maximize",{fontCharacter:"\\eab9"}),i.chromeMinimize=new i("chrome-minimize",{fontCharacter:"\\eaba"}),i.chromeRestore=new i("chrome-restore",{fontCharacter:"\\eabb"}),i.circleOutline=new i("circle-outline",{fontCharacter:"\\eabc"}),i.debugBreakpointUnverified=new i("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),i.circleSlash=new i("circle-slash",{fontCharacter:"\\eabd"}),i.circuitBoard=new i("circuit-board",{fontCharacter:"\\eabe"}),i.clearAll=new i("clear-all",{fontCharacter:"\\eabf"}),i.clippy=new i("clippy",{fontCharacter:"\\eac0"}),i.closeAll=new i("close-all",{fontCharacter:"\\eac1"}),i.cloudDownload=new i("cloud-download",{fontCharacter:"\\eac2"}),i.cloudUpload=new i("cloud-upload",{fontCharacter:"\\eac3"}),i.code=new i("code",{fontCharacter:"\\eac4"}),i.collapseAll=new i("collapse-all",{fontCharacter:"\\eac5"}),i.colorMode=new i("color-mode",{fontCharacter:"\\eac6"}),i.commentDiscussion=new i("comment-discussion",{fontCharacter:"\\eac7"}),i.compareChanges=new i("compare-changes",{fontCharacter:"\\eafd"}),i.creditCard=new i("credit-card",{fontCharacter:"\\eac9"}),i.dash=new i("dash",{fontCharacter:"\\eacc"}),i.dashboard=new i("dashboard",{fontCharacter:"\\eacd"}),i.database=new i("database",{fontCharacter:"\\eace"}),i.debugContinue=new i("debug-continue",{fontCharacter:"\\eacf"}),i.debugDisconnect=new i("debug-disconnect",{fontCharacter:"\\ead0"}),i.debugPause=new i("debug-pause",{fontCharacter:"\\ead1"}),i.debugRestart=new i("debug-restart",{fontCharacter:"\\ead2"}),i.debugStart=new i("debug-start",{fontCharacter:"\\ead3"}),i.debugStepInto=new i("debug-step-into",{fontCharacter:"\\ead4"}),i.debugStepOut=new i("debug-step-out",{fontCharacter:"\\ead5"}),i.debugStepOver=new i("debug-step-over",{fontCharacter:"\\ead6"}),i.debugStop=new i("debug-stop",{fontCharacter:"\\ead7"}),i.debug=new i("debug",{fontCharacter:"\\ead8"}),i.deviceCameraVideo=new i("device-camera-video",{fontCharacter:"\\ead9"}),i.deviceCamera=new i("device-camera",{fontCharacter:"\\eada"}),i.deviceMobile=new i("device-mobile",{fontCharacter:"\\eadb"}),i.diffAdded=new i("diff-added",{fontCharacter:"\\eadc"}),i.diffIgnored=new i("diff-ignored",{fontCharacter:"\\eadd"}),i.diffModified=new i("diff-modified",{fontCharacter:"\\eade"}),i.diffRemoved=new i("diff-removed",{fontCharacter:"\\eadf"}),i.diffRenamed=new i("diff-renamed",{fontCharacter:"\\eae0"}),i.diff=new i("diff",{fontCharacter:"\\eae1"}),i.discard=new i("discard",{fontCharacter:"\\eae2"}),i.editorLayout=new i("editor-layout",{fontCharacter:"\\eae3"}),i.emptyWindow=new i("empty-window",{fontCharacter:"\\eae4"}),i.exclude=new i("exclude",{fontCharacter:"\\eae5"}),i.extensions=new i("extensions",{fontCharacter:"\\eae6"}),i.eyeClosed=new i("eye-closed",{fontCharacter:"\\eae7"}),i.fileBinary=new i("file-binary",{fontCharacter:"\\eae8"}),i.fileCode=new i("file-code",{fontCharacter:"\\eae9"}),i.fileMedia=new i("file-media",{fontCharacter:"\\eaea"}),i.filePdf=new i("file-pdf",{fontCharacter:"\\eaeb"}),i.fileSubmodule=new i("file-submodule",{fontCharacter:"\\eaec"}),i.fileSymlinkDirectory=new i("file-symlink-directory",{fontCharacter:"\\eaed"}),i.fileSymlinkFile=new i("file-symlink-file",{fontCharacter:"\\eaee"}),i.fileZip=new i("file-zip",{fontCharacter:"\\eaef"}),i.files=new i("files",{fontCharacter:"\\eaf0"}),i.filter=new i("filter",{fontCharacter:"\\eaf1"}),i.flame=new i("flame",{fontCharacter:"\\eaf2"}),i.foldDown=new i("fold-down",{fontCharacter:"\\eaf3"}),i.foldUp=new i("fold-up",{fontCharacter:"\\eaf4"}),i.fold=new i("fold",{fontCharacter:"\\eaf5"}),i.folderActive=new i("folder-active",{fontCharacter:"\\eaf6"}),i.folderOpened=new i("folder-opened",{fontCharacter:"\\eaf7"}),i.gear=new i("gear",{fontCharacter:"\\eaf8"}),i.gift=new i("gift",{fontCharacter:"\\eaf9"}),i.gistSecret=new i("gist-secret",{fontCharacter:"\\eafa"}),i.gist=new i("gist",{fontCharacter:"\\eafb"}),i.gitCommit=new i("git-commit",{fontCharacter:"\\eafc"}),i.gitCompare=new i("git-compare",{fontCharacter:"\\eafd"}),i.gitMerge=new i("git-merge",{fontCharacter:"\\eafe"}),i.githubAction=new i("github-action",{fontCharacter:"\\eaff"}),i.githubAlt=new i("github-alt",{fontCharacter:"\\eb00"}),i.globe=new i("globe",{fontCharacter:"\\eb01"}),i.grabber=new i("grabber",{fontCharacter:"\\eb02"}),i.graph=new i("graph",{fontCharacter:"\\eb03"}),i.gripper=new i("gripper",{fontCharacter:"\\eb04"}),i.heart=new i("heart",{fontCharacter:"\\eb05"}),i.home=new i("home",{fontCharacter:"\\eb06"}),i.horizontalRule=new i("horizontal-rule",{fontCharacter:"\\eb07"}),i.hubot=new i("hubot",{fontCharacter:"\\eb08"}),i.inbox=new i("inbox",{fontCharacter:"\\eb09"}),i.issueClosed=new i("issue-closed",{fontCharacter:"\\eba4"}),i.issueReopened=new i("issue-reopened",{fontCharacter:"\\eb0b"}),i.issues=new i("issues",{fontCharacter:"\\eb0c"}),i.italic=new i("italic",{fontCharacter:"\\eb0d"}),i.jersey=new i("jersey",{fontCharacter:"\\eb0e"}),i.json=new i("json",{fontCharacter:"\\eb0f"}),i.kebabVertical=new i("kebab-vertical",{fontCharacter:"\\eb10"}),i.key=new i("key",{fontCharacter:"\\eb11"}),i.law=new i("law",{fontCharacter:"\\eb12"}),i.lightbulbAutofix=new i("lightbulb-autofix",{fontCharacter:"\\eb13"}),i.linkExternal=new i("link-external",{fontCharacter:"\\eb14"}),i.link=new i("link",{fontCharacter:"\\eb15"}),i.listOrdered=new i("list-ordered",{fontCharacter:"\\eb16"}),i.listUnordered=new i("list-unordered",{fontCharacter:"\\eb17"}),i.liveShare=new i("live-share",{fontCharacter:"\\eb18"}),i.loading=new i("loading",{fontCharacter:"\\eb19"}),i.location=new i("location",{fontCharacter:"\\eb1a"}),i.mailRead=new i("mail-read",{fontCharacter:"\\eb1b"}),i.mail=new i("mail",{fontCharacter:"\\eb1c"}),i.markdown=new i("markdown",{fontCharacter:"\\eb1d"}),i.megaphone=new i("megaphone",{fontCharacter:"\\eb1e"}),i.mention=new i("mention",{fontCharacter:"\\eb1f"}),i.milestone=new i("milestone",{fontCharacter:"\\eb20"}),i.mortarBoard=new i("mortar-board",{fontCharacter:"\\eb21"}),i.move=new i("move",{fontCharacter:"\\eb22"}),i.multipleWindows=new i("multiple-windows",{fontCharacter:"\\eb23"}),i.mute=new i("mute",{fontCharacter:"\\eb24"}),i.noNewline=new i("no-newline",{fontCharacter:"\\eb25"}),i.note=new i("note",{fontCharacter:"\\eb26"}),i.octoface=new i("octoface",{fontCharacter:"\\eb27"}),i.openPreview=new i("open-preview",{fontCharacter:"\\eb28"}),i.package_=new i("package",{fontCharacter:"\\eb29"}),i.paintcan=new i("paintcan",{fontCharacter:"\\eb2a"}),i.pin=new i("pin",{fontCharacter:"\\eb2b"}),i.play=new i("play",{fontCharacter:"\\eb2c"}),i.run=new i("run",{fontCharacter:"\\eb2c"}),i.plug=new i("plug",{fontCharacter:"\\eb2d"}),i.preserveCase=new i("preserve-case",{fontCharacter:"\\eb2e"}),i.preview=new i("preview",{fontCharacter:"\\eb2f"}),i.project=new i("project",{fontCharacter:"\\eb30"}),i.pulse=new i("pulse",{fontCharacter:"\\eb31"}),i.question=new i("question",{fontCharacter:"\\eb32"}),i.quote=new i("quote",{fontCharacter:"\\eb33"}),i.radioTower=new i("radio-tower",{fontCharacter:"\\eb34"}),i.reactions=new i("reactions",{fontCharacter:"\\eb35"}),i.references=new i("references",{fontCharacter:"\\eb36"}),i.refresh=new i("refresh",{fontCharacter:"\\eb37"}),i.regex=new i("regex",{fontCharacter:"\\eb38"}),i.remoteExplorer=new i("remote-explorer",{fontCharacter:"\\eb39"}),i.remote=new i("remote",{fontCharacter:"\\eb3a"}),i.remove=new i("remove",{fontCharacter:"\\eb3b"}),i.replaceAll=new i("replace-all",{fontCharacter:"\\eb3c"}),i.replace=new i("replace",{fontCharacter:"\\eb3d"}),i.repoClone=new i("repo-clone",{fontCharacter:"\\eb3e"}),i.repoForcePush=new i("repo-force-push",{fontCharacter:"\\eb3f"}),i.repoPull=new i("repo-pull",{fontCharacter:"\\eb40"}),i.repoPush=new i("repo-push",{fontCharacter:"\\eb41"}),i.report=new i("report",{fontCharacter:"\\eb42"}),i.requestChanges=new i("request-changes",{fontCharacter:"\\eb43"}),i.rocket=new i("rocket",{fontCharacter:"\\eb44"}),i.rootFolderOpened=new i("root-folder-opened",{fontCharacter:"\\eb45"}),i.rootFolder=new i("root-folder",{fontCharacter:"\\eb46"}),i.rss=new i("rss",{fontCharacter:"\\eb47"}),i.ruby=new i("ruby",{fontCharacter:"\\eb48"}),i.saveAll=new i("save-all",{fontCharacter:"\\eb49"}),i.saveAs=new i("save-as",{fontCharacter:"\\eb4a"}),i.save=new i("save",{fontCharacter:"\\eb4b"}),i.screenFull=new i("screen-full",{fontCharacter:"\\eb4c"}),i.screenNormal=new i("screen-normal",{fontCharacter:"\\eb4d"}),i.searchStop=new i("search-stop",{fontCharacter:"\\eb4e"}),i.server=new i("server",{fontCharacter:"\\eb50"}),i.settingsGear=new i("settings-gear",{fontCharacter:"\\eb51"}),i.settings=new i("settings",{fontCharacter:"\\eb52"}),i.shield=new i("shield",{fontCharacter:"\\eb53"}),i.smiley=new i("smiley",{fontCharacter:"\\eb54"}),i.sortPrecedence=new i("sort-precedence",{fontCharacter:"\\eb55"}),i.splitHorizontal=new i("split-horizontal",{fontCharacter:"\\eb56"}),i.splitVertical=new i("split-vertical",{fontCharacter:"\\eb57"}),i.squirrel=new i("squirrel",{fontCharacter:"\\eb58"}),i.starFull=new i("star-full",{fontCharacter:"\\eb59"}),i.starHalf=new i("star-half",{fontCharacter:"\\eb5a"}),i.symbolClass=new i("symbol-class",{fontCharacter:"\\eb5b"}),i.symbolColor=new i("symbol-color",{fontCharacter:"\\eb5c"}),i.symbolCustomColor=new i("symbol-customcolor",{fontCharacter:"\\eb5c"}),i.symbolConstant=new i("symbol-constant",{fontCharacter:"\\eb5d"}),i.symbolEnumMember=new i("symbol-enum-member",{fontCharacter:"\\eb5e"}),i.symbolField=new i("symbol-field",{fontCharacter:"\\eb5f"}),i.symbolFile=new i("symbol-file",{fontCharacter:"\\eb60"}),i.symbolInterface=new i("symbol-interface",{fontCharacter:"\\eb61"}),i.symbolKeyword=new i("symbol-keyword",{fontCharacter:"\\eb62"}),i.symbolMisc=new i("symbol-misc",{fontCharacter:"\\eb63"}),i.symbolOperator=new i("symbol-operator",{fontCharacter:"\\eb64"}),i.symbolProperty=new i("symbol-property",{fontCharacter:"\\eb65"}),i.wrench=new i("wrench",{fontCharacter:"\\eb65"}),i.wrenchSubaction=new i("wrench-subaction",{fontCharacter:"\\eb65"}),i.symbolSnippet=new i("symbol-snippet",{fontCharacter:"\\eb66"}),i.tasklist=new i("tasklist",{fontCharacter:"\\eb67"}),i.telescope=new i("telescope",{fontCharacter:"\\eb68"}),i.textSize=new i("text-size",{fontCharacter:"\\eb69"}),i.threeBars=new i("three-bars",{fontCharacter:"\\eb6a"}),i.thumbsdown=new i("thumbsdown",{fontCharacter:"\\eb6b"}),i.thumbsup=new i("thumbsup",{fontCharacter:"\\eb6c"}),i.tools=new i("tools",{fontCharacter:"\\eb6d"}),i.triangleDown=new i("triangle-down",{fontCharacter:"\\eb6e"}),i.triangleLeft=new i("triangle-left",{fontCharacter:"\\eb6f"}),i.triangleRight=new i("triangle-right",{fontCharacter:"\\eb70"}),i.triangleUp=new i("triangle-up",{fontCharacter:"\\eb71"}),i.twitter=new i("twitter",{fontCharacter:"\\eb72"}),i.unfold=new i("unfold",{fontCharacter:"\\eb73"}),i.unlock=new i("unlock",{fontCharacter:"\\eb74"}),i.unmute=new i("unmute",{fontCharacter:"\\eb75"}),i.unverified=new i("unverified",{fontCharacter:"\\eb76"}),i.verified=new i("verified",{fontCharacter:"\\eb77"}),i.versions=new i("versions",{fontCharacter:"\\eb78"}),i.vmActive=new i("vm-active",{fontCharacter:"\\eb79"}),i.vmOutline=new i("vm-outline",{fontCharacter:"\\eb7a"}),i.vmRunning=new i("vm-running",{fontCharacter:"\\eb7b"}),i.watch=new i("watch",{fontCharacter:"\\eb7c"}),i.whitespace=new i("whitespace",{fontCharacter:"\\eb7d"}),i.wholeWord=new i("whole-word",{fontCharacter:"\\eb7e"}),i.window=new i("window",{fontCharacter:"\\eb7f"}),i.wordWrap=new i("word-wrap",{fontCharacter:"\\eb80"}),i.zoomIn=new i("zoom-in",{fontCharacter:"\\eb81"}),i.zoomOut=new i("zoom-out",{fontCharacter:"\\eb82"}),i.listFilter=new i("list-filter",{fontCharacter:"\\eb83"}),i.listFlat=new i("list-flat",{fontCharacter:"\\eb84"}),i.listSelection=new i("list-selection",{fontCharacter:"\\eb85"}),i.selection=new i("selection",{fontCharacter:"\\eb85"}),i.listTree=new i("list-tree",{fontCharacter:"\\eb86"}),i.debugBreakpointFunctionUnverified=new i("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),i.debugBreakpointFunction=new i("debug-breakpoint-function",{fontCharacter:"\\eb88"}),i.debugBreakpointFunctionDisabled=new i("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),i.debugStackframeActive=new i("debug-stackframe-active",{fontCharacter:"\\eb89"}),i.circleSmallFilled=new i("circle-small-filled",{fontCharacter:"\\eb8a"}),i.debugStackframeDot=new i("debug-stackframe-dot",i.circleSmallFilled.definition),i.debugStackframe=new i("debug-stackframe",{fontCharacter:"\\eb8b"}),i.debugStackframeFocused=new i("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),i.debugBreakpointUnsupported=new i("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),i.symbolString=new i("symbol-string",{fontCharacter:"\\eb8d"}),i.debugReverseContinue=new i("debug-reverse-continue",{fontCharacter:"\\eb8e"}),i.debugStepBack=new i("debug-step-back",{fontCharacter:"\\eb8f"}),i.debugRestartFrame=new i("debug-restart-frame",{fontCharacter:"\\eb90"}),i.callIncoming=new i("call-incoming",{fontCharacter:"\\eb92"}),i.callOutgoing=new i("call-outgoing",{fontCharacter:"\\eb93"}),i.menu=new i("menu",{fontCharacter:"\\eb94"}),i.expandAll=new i("expand-all",{fontCharacter:"\\eb95"}),i.feedback=new i("feedback",{fontCharacter:"\\eb96"}),i.groupByRefType=new i("group-by-ref-type",{fontCharacter:"\\eb97"}),i.ungroupByRefType=new i("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),i.account=new i("account",{fontCharacter:"\\eb99"}),i.bellDot=new i("bell-dot",{fontCharacter:"\\eb9a"}),i.debugConsole=new i("debug-console",{fontCharacter:"\\eb9b"}),i.library=new i("library",{fontCharacter:"\\eb9c"}),i.output=new i("output",{fontCharacter:"\\eb9d"}),i.runAll=new i("run-all",{fontCharacter:"\\eb9e"}),i.syncIgnored=new i("sync-ignored",{fontCharacter:"\\eb9f"}),i.pinned=new i("pinned",{fontCharacter:"\\eba0"}),i.githubInverted=new i("github-inverted",{fontCharacter:"\\eba1"}),i.debugAlt=new i("debug-alt",{fontCharacter:"\\eb91"}),i.serverProcess=new i("server-process",{fontCharacter:"\\eba2"}),i.serverEnvironment=new i("server-environment",{fontCharacter:"\\eba3"}),i.pass=new i("pass",{fontCharacter:"\\eba4"}),i.stopCircle=new i("stop-circle",{fontCharacter:"\\eba5"}),i.playCircle=new i("play-circle",{fontCharacter:"\\eba6"}),i.record=new i("record",{fontCharacter:"\\eba7"}),i.debugAltSmall=new i("debug-alt-small",{fontCharacter:"\\eba8"}),i.vmConnect=new i("vm-connect",{fontCharacter:"\\eba9"}),i.cloud=new i("cloud",{fontCharacter:"\\ebaa"}),i.merge=new i("merge",{fontCharacter:"\\ebab"}),i.exportIcon=new i("export",{fontCharacter:"\\ebac"}),i.graphLeft=new i("graph-left",{fontCharacter:"\\ebad"}),i.magnet=new i("magnet",{fontCharacter:"\\ebae"}),i.notebook=new i("notebook",{fontCharacter:"\\ebaf"}),i.redo=new i("redo",{fontCharacter:"\\ebb0"}),i.checkAll=new i("check-all",{fontCharacter:"\\ebb1"}),i.pinnedDirty=new i("pinned-dirty",{fontCharacter:"\\ebb2"}),i.passFilled=new i("pass-filled",{fontCharacter:"\\ebb3"}),i.circleLargeFilled=new i("circle-large-filled",{fontCharacter:"\\ebb4"}),i.circleLargeOutline=new i("circle-large-outline",{fontCharacter:"\\ebb5"}),i.combine=new i("combine",{fontCharacter:"\\ebb6"}),i.gather=new i("gather",{fontCharacter:"\\ebb6"}),i.table=new i("table",{fontCharacter:"\\ebb7"}),i.variableGroup=new i("variable-group",{fontCharacter:"\\ebb8"}),i.typeHierarchy=new i("type-hierarchy",{fontCharacter:"\\ebb9"}),i.typeHierarchySub=new i("type-hierarchy-sub",{fontCharacter:"\\ebba"}),i.typeHierarchySuper=new i("type-hierarchy-super",{fontCharacter:"\\ebbb"}),i.gitPullRequestCreate=new i("git-pull-request-create",{fontCharacter:"\\ebbc"}),i.runAbove=new i("run-above",{fontCharacter:"\\ebbd"}),i.runBelow=new i("run-below",{fontCharacter:"\\ebbe"}),i.notebookTemplate=new i("notebook-template",{fontCharacter:"\\ebbf"}),i.debugRerun=new i("debug-rerun",{fontCharacter:"\\ebc0"}),i.workspaceTrusted=new i("workspace-trusted",{fontCharacter:"\\ebc1"}),i.workspaceUntrusted=new i("workspace-untrusted",{fontCharacter:"\\ebc2"}),i.workspaceUnspecified=new i("workspace-unspecified",{fontCharacter:"\\ebc3"}),i.terminalCmd=new i("terminal-cmd",{fontCharacter:"\\ebc4"}),i.terminalDebian=new i("terminal-debian",{fontCharacter:"\\ebc5"}),i.terminalLinux=new i("terminal-linux",{fontCharacter:"\\ebc6"}),i.terminalPowershell=new i("terminal-powershell",{fontCharacter:"\\ebc7"}),i.terminalTmux=new i("terminal-tmux",{fontCharacter:"\\ebc8"}),i.terminalUbuntu=new i("terminal-ubuntu",{fontCharacter:"\\ebc9"}),i.terminalBash=new i("terminal-bash",{fontCharacter:"\\ebca"}),i.arrowSwap=new i("arrow-swap",{fontCharacter:"\\ebcb"}),i.copy=new i("copy",{fontCharacter:"\\ebcc"}),i.personAdd=new i("person-add",{fontCharacter:"\\ebcd"}),i.filterFilled=new i("filter-filled",{fontCharacter:"\\ebce"}),i.wand=new i("wand",{fontCharacter:"\\ebcf"}),i.debugLineByLine=new i("debug-line-by-line",{fontCharacter:"\\ebd0"}),i.inspect=new i("inspect",{fontCharacter:"\\ebd1"}),i.layers=new i("layers",{fontCharacter:"\\ebd2"}),i.layersDot=new i("layers-dot",{fontCharacter:"\\ebd3"}),i.layersActive=new i("layers-active",{fontCharacter:"\\ebd4"}),i.compass=new i("compass",{fontCharacter:"\\ebd5"}),i.compassDot=new i("compass-dot",{fontCharacter:"\\ebd6"}),i.compassActive=new i("compass-active",{fontCharacter:"\\ebd7"}),i.azure=new i("azure",{fontCharacter:"\\ebd8"}),i.issueDraft=new i("issue-draft",{fontCharacter:"\\ebd9"}),i.gitPullRequestClosed=new i("git-pull-request-closed",{fontCharacter:"\\ebda"}),i.gitPullRequestDraft=new i("git-pull-request-draft",{fontCharacter:"\\ebdb"}),i.debugAll=new i("debug-all",{fontCharacter:"\\ebdc"}),i.debugCoverage=new i("debug-coverage",{fontCharacter:"\\ebdd"}),i.runErrors=new i("run-errors",{fontCharacter:"\\ebde"}),i.folderLibrary=new i("folder-library",{fontCharacter:"\\ebdf"}),i.debugContinueSmall=new i("debug-continue-small",{fontCharacter:"\\ebe0"}),i.beakerStop=new i("beaker-stop",{fontCharacter:"\\ebe1"}),i.graphLine=new i("graph-line",{fontCharacter:"\\ebe2"}),i.graphScatter=new i("graph-scatter",{fontCharacter:"\\ebe3"}),i.pieChart=new i("pie-chart",{fontCharacter:"\\ebe4"}),i.bracket=new i("bracket",i.json.definition),i.bracketDot=new i("bracket-dot",{fontCharacter:"\\ebe5"}),i.bracketError=new i("bracket-error",{fontCharacter:"\\ebe6"}),i.lockSmall=new i("lock-small",{fontCharacter:"\\ebe7"}),i.azureDevops=new i("azure-devops",{fontCharacter:"\\ebe8"}),i.verifiedFilled=new i("verified-filled",{fontCharacter:"\\ebe9"}),i.newLine=new i("newline",{fontCharacter:"\\ebea"}),i.layout=new i("layout",{fontCharacter:"\\ebeb"}),i.layoutActivitybarLeft=new i("layout-activitybar-left",{fontCharacter:"\\ebec"}),i.layoutActivitybarRight=new i("layout-activitybar-right",{fontCharacter:"\\ebed"}),i.layoutPanelLeft=new i("layout-panel-left",{fontCharacter:"\\ebee"}),i.layoutPanelCenter=new i("layout-panel-center",{fontCharacter:"\\ebef"}),i.layoutPanelJustify=new i("layout-panel-justify",{fontCharacter:"\\ebf0"}),i.layoutPanelRight=new i("layout-panel-right",{fontCharacter:"\\ebf1"}),i.layoutPanel=new i("layout-panel",{fontCharacter:"\\ebf2"}),i.layoutSidebarLeft=new i("layout-sidebar-left",{fontCharacter:"\\ebf3"}),i.layoutSidebarRight=new i("layout-sidebar-right",{fontCharacter:"\\ebf4"}),i.layoutStatusbar=new i("layout-statusbar",{fontCharacter:"\\ebf5"}),i.layoutMenubar=new i("layout-menubar",{fontCharacter:"\\ebf6"}),i.layoutCentered=new i("layout-centered",{fontCharacter:"\\ebf7"}),i.layoutSidebarRightOff=new i("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),i.layoutPanelOff=new i("layout-panel-off",{fontCharacter:"\\ec01"}),i.layoutSidebarLeftOff=new i("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),i.target=new i("target",{fontCharacter:"\\ebf8"}),i.indent=new i("indent",{fontCharacter:"\\ebf9"}),i.recordSmall=new i("record-small",{fontCharacter:"\\ebfa"}),i.errorSmall=new i("error-small",{fontCharacter:"\\ebfb"}),i.arrowCircleDown=new i("arrow-circle-down",{fontCharacter:"\\ebfc"}),i.arrowCircleLeft=new i("arrow-circle-left",{fontCharacter:"\\ebfd"}),i.arrowCircleRight=new i("arrow-circle-right",{fontCharacter:"\\ebfe"}),i.arrowCircleUp=new i("arrow-circle-up",{fontCharacter:"\\ebff"}),i.heartFilled=new i("heart-filled",{fontCharacter:"\\ec04"}),i.map=new i("map",{fontCharacter:"\\ec05"}),i.mapFilled=new i("map-filled",{fontCharacter:"\\ec06"}),i.circleSmall=new i("circle-small",{fontCharacter:"\\ec07"}),i.bellSlash=new i("bell-slash",{fontCharacter:"\\ec08"}),i.bellSlashDot=new i("bell-slash-dot",{fontCharacter:"\\ec09"}),i.commentUnresolved=new i("comment-unresolved",{fontCharacter:"\\ec0a"}),i.dialogError=new i("dialog-error",i.error.definition),i.dialogWarning=new i("dialog-warning",i.warning.definition),i.dialogInfo=new i("dialog-info",i.info.definition),i.dialogClose=new i("dialog-close",i.close.definition),i.treeItemExpanded=new i("tree-item-expanded",i.chevronDown.definition),i.treeFilterOnTypeOn=new i("tree-filter-on-type-on",i.listFilter.definition),i.treeFilterOnTypeOff=new i("tree-filter-on-type-off",i.listSelection.definition),i.treeFilterClear=new i("tree-filter-clear",i.close.definition),i.treeItemLoading=new i("tree-item-loading",i.loading.definition),i.menuSelection=new i("menu-selection",i.check.definition),i.menuSubmenu=new i("menu-submenu",i.chevronRight.definition),i.menuBarMore=new i("menubar-more",i.more.definition),i.scrollbarButtonLeft=new i("scrollbar-button-left",i.triangleLeft.definition),i.scrollbarButtonRight=new i("scrollbar-button-right",i.triangleRight.definition),i.scrollbarButtonUp=new i("scrollbar-button-up",i.triangleUp.definition),i.scrollbarButtonDown=new i("scrollbar-button-down",i.triangleDown.definition),i.toolBarMore=new i("toolbar-more",i.more.definition),i.quickInputBack=new i("quick-input-back",i.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function r(e){if(e instanceof i)return["codicon","codicon-"+e.id];const n=t.exec(e.id);if(!n)return r(i.error);const[,a,o]=n,s=["codicon","codicon-"+a];return o&&s.push("codicon-modifier-"+o.substr(1)),s}e.asClassNameArray=r,e.asClassName=function(e){return r(e).join(" ")},e.asCSSSelector=function(e){return"."+r(e).join(".")}}(a||(a={}))},75909:(e,t,r)=>{"use strict";r.d(t,{AL:()=>l,D7:()=>m,EM:()=>f,MB:()=>c,M_:()=>a,Qg:()=>d,aD:()=>u,cU:()=>o,dz:()=>i,iH:()=>h});const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i(e){c(e)||n.onUnexpectedError(e)}function a(e){c(e)||n.onUnexpectedExternalError(e)}function o(e){if(e instanceof Error){const{name:t,message:r}=e;return{$isError:!0,name:t,message:r,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const s="Canceled";function c(e){return e instanceof l||e instanceof Error&&e.name===s&&e.message===s}class l extends Error{constructor(){super(s),this.name=this.message}}function u(){const e=new Error(s);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class f extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"ErrorNoTelemetry"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},55808:(e,t,r)=>{"use strict";r.d(t,{AS:()=>h,BO:()=>_,Cm:()=>m,HE:()=>b,St:()=>v,Xm:()=>d,jG:()=>g,lC:()=>l,mp:()=>w,qE:()=>f,s:()=>p});var n=r(8663),i=r(16624);let a=null;function o(e){return null===a||void 0===a||a.trackDisposable(e),e}function s(e){null===a||void 0===a||a.markAsDisposed(e)}function c(e,t){null===a||void 0===a||a.setParent(e,t)}function l(e){return null===a||void 0===a||a.markAsSingleton(e),e}class u extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function d(e){return"function"===typeof e.dispose&&0===e.dispose.length}function h(e){if(i.f.is(e)){const r=[];for(const n of e)if(n)try{n.dispose()}catch(t){r.push(t)}if(1===r.length)throw r[0];if(r.length>1)throw new u(r);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=p((()=>h(e)));return function(e,t){if(a)for(const r of e)a.setParent(r,t)}(e,t),t}function p(e){const t=o({dispose:(0,n.O)((()=>{s(t),e()}))});return t}class m{constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(s(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{h(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e,this),this._isDisposed?m.DISABLE_DISPOSED_WARNING:this._toDispose.add(e),e}}m.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new m,o(this),c(this._store,this)}dispose(){s(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}g.None=Object.freeze({dispose(){}});class b{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&c(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,s(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&c(e,null),e}}class w{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,o(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>void 0!==t,this.dispose=()=>{t&&(t(),t=void 0,s(this))},this}}class _{constructor(e){this.object=e}dispose(){}}},3688:(e,t,r)=>{"use strict";r.d(t,{C1:()=>a,Ym:()=>n,kF:()=>i});const n={ctrlCmd:!1,alt:!1};var i,a;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(i||(i={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(a||(a={}));new class{constructor(e){this.options=e}}},43077:(e,t,r)=>{"use strict";r.d(t,{Gn:()=>p,JJ:()=>c,vf:()=>f});var n=r(83921),i=r(11572),a=r(35819),o=r(11332),s=r(1097);const c=Object.freeze({id:"editor",order:5,type:"object",title:a.kg("editorConfigurationTitle","Editor"),scope:5}),l=Object.assign(Object.assign({},c),{properties:{"editor.tabSize":{type:"number",default:i.R.tabSize,minimum:1,markdownDescription:a.kg("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:i.R.insertSpaces,markdownDescription:a.kg("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:i.R.detectIndentation,markdownDescription:a.kg("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:i.R.trimAutoWhitespace,description:a.kg("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:i.R.largeFileOptimizations,description:a.kg("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:a.kg("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[a.kg("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),a.kg("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),a.kg("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:a.kg("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[a.kg("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),a.kg("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),a.kg("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:a.kg("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:a.kg("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:a.kg("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:["array","null"],default:null,description:a.kg("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:a.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:a.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:a.kg("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:a.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:a.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:a.kg("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:a.kg("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:a.kg("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:!0,description:a.kg("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:a.kg("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:a.kg("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:a.kg("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[a.kg("wordWrap.off","Lines will never wrap."),a.kg("wordWrap.on","Lines will wrap at the viewport width."),a.kg("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});for(const m of n.BE){const e=m.schema;if("undefined"!==typeof e)if("undefined"!==typeof(u=e).type||"undefined"!==typeof u.anyOf)l.properties[`editor.${m.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(l.properties[t]=e[t])}var u;let d=null;function h(){return null===d&&(d=Object.create(null),Object.keys(l.properties).forEach((e=>{d[e]=!0}))),d}function f(e){return h()[`editor.${e}`]||!1}function p(e){return h()[`diffEditor.${e}`]||!1}s.O.as(o.Fd.Configuration).registerConfiguration(l)},59806:(e,t,r)=>{"use strict";r.d(t,{Du:()=>h,Su:()=>f,aI:()=>d,b7:()=>u});var n=r(24638),i=r(55977),a=r(52756);let o,s,c;function l(){return o||(o=new TextDecoder("UTF-16LE")),o}function u(){return c||(c=i.cm()?l():(s||(s=new TextDecoder("UTF-16BE")),s)),c}const d="undefined"!==typeof TextDecoder;let h,f;function p(e,t,r){const n=[];let i=0;for(let o=0;o<r;o++){const r=a.$l(e,t);t+=2,n[i++]=String.fromCharCode(r)}return n.join("")}d?(h=e=>new m(e),f=function(e,t,r){const n=new Uint16Array(e.buffer,t,r);if(r>0&&(65279===n[0]||65534===n[0]))return p(e,t,r);return l().decode(n)}):(h=e=>new g,f=p);class m{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return u().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}write1(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||n.pc(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCII(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIIString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let r=0;r<t;r++)this._buffer[this._bufferLength++]=e.charCodeAt(r)}}class g{constructor(){this._pieces=[],this._piecesLen=0}reset(){this._pieces=[],this._piecesLen=0}build(){return this._pieces.join("")}write1(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCII(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCIIString(e){this._pieces[this._piecesLen++]=e}}},97800:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n=r(17924);class i extends n.V{constructor(e){super(0);for(let t=0,r=e.length;t<r;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}const a=function(e){const t={};return r=>(t.hasOwnProperty(r)||(t[r]=e(r)),t[r])}((e=>new i(e)))},76220:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});const n=(0,r(34029).u1)("languageService")},35065:(e,t,r)=>{"use strict";r.d(t,{A5:()=>n,Dg:()=>c,F4:()=>d,L5:()=>u,R3:()=>i,VW:()=>a,Wo:()=>l,X2:()=>s,vd:()=>h});var n,i,a,o=r(61460);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(n||(n={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(i||(i={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(a||(a={}));class s{constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class c{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class l{constructor(e,t,r,n,i,a){this.identifier=e,this.range=t,this.text=r,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=i,this._isTracked=a}}class u{constructor(e,t,r){this.regex=e,this.wordSeparators=t,this.simpleSearch=r}}class d{constructor(e,t,r){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=r}}function h(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},19724:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});const n=(0,r(34029).u1)("modelService")},92320:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});const n=(0,r(34029).u1)("textModelService")},6751:(e,t,r)=>{"use strict";r.d(t,{E6:()=>u,Hw:()=>a,YN:()=>i,b2:()=>n,gf:()=>s,n9:()=>c,oq:()=>o,tu:()=>d,vp:()=>l});var n,i,a,o,s,c,l,u,d,h=r(35819);!function(e){e.noSelection=h.kg("noSelection","No selection"),e.singleSelectionRange=h.kg("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=h.kg("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=h.kg("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=h.kg("multiSelection","{0} selections"),e.emergencyConfOn=h.kg("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=h.kg("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=h.kg("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=h.kg("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=h.kg("readonlyEditor"," in a read-only code editor"),e.editableEditor=h.kg("editableEditor"," in a code editor"),e.changeConfigToOnMac=h.kg("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=h.kg("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=h.kg("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=h.kg("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=h.kg("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=h.kg("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=h.kg("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=h.kg("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=h.kg("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=h.kg("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=h.kg("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=h.kg("showAccessibilityHelpAction","Show Accessibility Help")}(n||(n={})),function(e){e.inspectTokensAction=h.kg("inspectTokens","Developer: Inspect Tokens")}(i||(i={})),function(e){e.gotoLineActionLabel=h.kg("gotoLineActionLabel","Go to Line/Column...")}(a||(a={})),function(e){e.helpQuickAccessActionLabel=h.kg("helpQuickAccess","Show all Quick Access Providers")}(o||(o={})),function(e){e.quickCommandActionLabel=h.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=h.kg("quickCommandActionHelp","Show And Run Commands")}(s||(s={})),function(e){e.quickOutlineActionLabel=h.kg("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=h.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(c||(c={})),function(e){e.editorViewAccessibleLabel=h.kg("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=h.kg("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(l||(l={})),function(e){e.toggleHighContrast=h.kg("toggleHighContrast","Toggle High Contrast Theme")}(u||(u={})),function(e){e.bulkEditServiceSummary=h.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(d||(d={}))},28618:(e,t,r)=>{"use strict";r.d(t,{QE:()=>He,XB:()=>De,Zc:()=>Be});r(10884),r(96696),r(28313),r(53166),r(40098);var n=r(24638),i=r(90491),a=r(41828),o=r(42464),s=r(31401),c=r(55808),l=r(55977),u=r(77721),d=r(65698),h=r(72799),f=r(43077),p=r(73983),m=r(55547),g=r(62915),b=r(19724),w=r(92320),v=r(42982),_=r(16281),y=r(58471),C=r(54925),S=r(21181),k=r(90301),E=r(34029),x=r(85484),A=r(47925),O=r(28951),T=r(11563),D=r(80858),I=r(65491),R=r(70679),N=r(74349),L=r(53229),P=r(45769),z=r(86377),B=r(8547),M=r(6751),j=r(1273),F=r(88459),U=r(91823),W=r(25555),H=r(95166),$=r(64355),Z=r(94411),q=r(4235),V=r(16974),G=r(62848),K=r(84214),Y=r(87594),X=r(38572),J=r(76220),Q=r(76237),ee=r(90324),te=r(47461),re=r(61249),ne=r(85976),ie=r(83238),ae=r(78427),oe=r(88355),se=r(93593),ce=r(50284),le=r(51031),ue=r(43772),de=r(49539),he=r(96810),fe=r(96621),pe=r(7087),me=r(22407),ge=r(40145),be=r(56247),we=r(46025),ve=r(31001),_e=r(87899),ye=(r(84254),r(66578)),Ce=function(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o},Se=function(e,t){return function(r,n){t(r,n,e)}},ke=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(t){a(t)}}function s(e){try{c(n.throw(e))}catch(t){a(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};class Ee{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new o.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let xe=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new c.BO(new Ee(t))):Promise.reject(new Error("Model not found"))}};xe=Ce([Se(0,b.S)],xe);class Ae{show(){return Ae.NULL_PROGRESS_RUNNER}showWhile(e,t){return ke(this,void 0,void 0,(function*(){yield e}))}}Ae.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Oe{info(e){return this.notify({severity:u.A.Info,message:e})}warn(e){return this.notify({severity:u.A.Warning,message:e})}error(e){return this.notify({severity:u.A.Error,message:e})}notify(e){switch(e.severity){case u.A.Error:case u.A.Warning:}return Oe.NO_OP}status(e,t){return c.jG.None}}Oe.NO_OP=new N.Kz;let Te=class{constructor(e){this._onWillExecuteCommand=new o.vl,this._onDidExecuteCommand=new o.vl,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const r=_.wb.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[r.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}};Te=Ce([Se(0,E._Y)],Te);let De=class extends x.E{constructor(e,t,r,n,o,s){super(e,t,r,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const l=e=>{const t=new c.Cm;t.add(i.ko(e,i.Bx.KEY_DOWN,(e=>{const t=new a.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(i.ko(e,i.Bx.KEY_UP,(e=>{const t=new a.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Ie(e,t))},u=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const r=this._domNodeListeners[t];r.domNode===e&&(this._domNodeListeners.splice(t,1),r.dispose())}},d=e=>{e.getOption(55)||l(e.getContainerDomNode())};this._register(s.onCodeEditorAdd(d)),this._register(s.onCodeEditorRemove((e=>{e.getOption(55)||u(e.getContainerDomNode())}))),s.listCodeEditors().forEach(d);const h=e=>{l(e.getContainerDomNode())};this._register(s.onDiffEditorAdd(h)),this._register(s.onDiffEditorRemove((e=>{u(e.getContainerDomNode())}))),s.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,r,n){const i=(0,s.ZU)(t,l.OS),a=new c.Cm;return i&&(this._dynamicKeybindings.push({keybinding:i.parts,command:e,when:n,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),a.add((0,c.s)((()=>{for(let t=0;t<this._dynamicKeybindings.length;t++){if(this._dynamicKeybindings[t].command===e)return this._dynamicKeybindings.splice(t,1),void this.updateResolver()}})))),a.add(_.wb.registerCommand(e,r)),this.updateResolver(),a}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(T.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new O.f(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const r=[];let n=0;for(const i of e){const e=i.when||void 0,a=i.keybinding;if(a){const o=I.j.resolveUserBinding(a,l.OS);for(const a of o)r[n++]=new D.u(a,i.command,i.commandArgs,e,t,null,!1)}else r[n++]=new D.u(void 0,i.command,i.commandArgs,e,t,null,!1)}return r}resolveKeyboardEvent(e){const t=new s.h$(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new I.j(t,l.OS)}};De=Ce([Se(0,S.fN),Se(1,_.wT),Se(2,P.k),Se(3,N.Ot),Se(4,U.rr),Se(5,F.T)],De);class Ie extends c.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Re(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof d.r)}class Ne{constructor(){this._onDidChangeConfiguration=new o.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new C.Vk(new ye.z,new C.S1,new C.S1,new C.S1)}getValue(e,t){const r="string"===typeof e?e:void 0,n=Re(e)?e:Re(t)?t:{};return this._configuration.getValue(r,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},r=[];for(const n of e){const[e,t]=n;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),r.push(e))}if(r.length>0){const e=new C.Xm({keys:r,overrides:[]},t,this._configuration);e.source=7,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,r,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let Le=class{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new o.vl,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,r)=>e.affectsConfiguration(r)})}))}getValue(e,t,r){const n=(m.y.isIPosition(t)?t:null)?"string"===typeof r?r:void 0:"string"===typeof t?t:void 0;return"undefined"===typeof n?this.configurationService.getValue():this.configurationService.getValue(n)}};Le=Ce([Se(0,y.pG)],Le);let Pe=class{constructor(e){this.configurationService=e}getEOL(e,t){const r=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return r&&"string"===typeof r&&"auto"!==r?r:l.j9||l.zx?"\n":"\r\n"}};Pe=Ce([Se(0,y.pG)],Pe);class ze{constructor(){const e=d.r.from({scheme:ze.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new z.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===ze.SCHEME?this.workspace.folders[0]:null}}function Be(e,t,r){if(!t)return;if(!(e instanceof Ne))return;const n=[];Object.keys(t).forEach((e=>{(0,f.vf)(e)&&n.push([`editor.${e}`,t[e]]),r&&(0,f.Gn)(e)&&n.push([`diffEditor.${e}`,t[e]])})),n.length>0&&e.updateValues(n)}ze.SCHEME="inmemory";let Me=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return ke(this,void 0,void 0,(function*(){const t=new Map;for(const n of e){if(!(n instanceof h.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(n.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof n.versionId&&e.getVersionId()!==n.versionId)throw new Error("bad state - model changed in the meantime");let r=t.get(e);r||(r=[],t.set(e,r)),r.push(p.k.replaceMove(g.Q.lift(n.textEdit.range),n.textEdit.text))}let r=0,i=0;for(const[e,n]of t)e.pushStackElement(),e.pushEditOperations([],n,(()=>[])),e.pushStackElement(),i+=1,r+=n.length;return{ariaSummary:n.GP(M.tu.bulkEditServiceSummary,r,i)}}))}};Me=Ce([Se(0,b.S)],Me);let je=class extends $.Y{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,r){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,r)}};je=Ce([Se(0,B.x),Se(1,F.T)],je);class Fe extends Z.g{constructor(){super()}}class Ue extends U.Kc{constructor(){super(new U.Cr)}}let We=class extends q.K{constructor(e,t,r,n,i){super(e,t,r,n,i),this.configure({blockMouse:!1})}};var He;We=Ce([Se(0,P.k),Se(1,N.Ot),Se(2,H.l),Se(3,A.b),Se(4,V.Gy)],We),(0,G.v)(y.pG,Ne),(0,G.v)(v.U,Le),(0,G.v)(v.J,Pe),(0,G.v)(z.VR,ze),(0,G.v)(R.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,j.P8)(e)}}),(0,G.v)(P.k,class{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}),(0,G.v)(k.X,class{confirm(e){return this.doConfirm(e).then((e=>({confirmed:e,checkboxChecked:!1})))}doConfirm(e){let t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Promise.resolve(window.confirm(t))}show(e,t,r,n){return Promise.resolve({choice:0})}}),(0,G.v)(N.Ot,Oe),(0,G.v)(ge.DR,be.m),(0,G.v)(J.L,Fe),(0,G.v)(ie.L,ne.Sx),(0,G.v)(U.rr,Ue),(0,G.v)(b.S,te.JW),(0,G.v)(ee.A,Q.D),(0,G.v)(S.fN,de.i7),(0,G.v)(L.G5,class{withProgress(e,t,r){return t({report:()=>{}})}}),(0,G.v)(L.N8,Ae),(0,G.v)(_e.CS,_e.pc),(0,G.v)(Y.w,X.Bc),(0,G.v)(h.nu,Me),(0,G.v)(W.L,class{constructor(){this._neverEmitter=new o.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}),(0,G.v)(w.b,xe),(0,G.v)(oe.j,ae.s),(0,G.v)(me.PE,me.aG),(0,G.v)(_.wT,Te),(0,G.v)(A.b,De),(0,G.v)(ve.GK,re.oC),(0,G.v)(H.l,je),(0,G.v)(we.Cr,K.J),(0,G.v)(ue.h,le.w),(0,G.v)(H.Z,We),(0,G.v)(se.ez,ce.$),function(e){const t=new pe.a;for(const[i,a]of(0,G.N)())t.set(i,a);const r=new fe.n(t,!0);t.set(E._Y,r),e.get=function(e){const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof he.d?r.invokeFunction((t=>t.get(e))):n};let n=!1;e.initialize=function(e){if(n)return r;n=!0;for(const[r,n]of(0,G.N)())t.get(r)||t.set(r,n);for(const r in e)if(e.hasOwnProperty(r)){const n=(0,E.u1)(r);t.get(n)instanceof he.d&&t.set(n,e[r])}return r}}(He||(He={}))},35819:(e,t,r)=>{"use strict";r.d(t,{AM:()=>o,kg:()=>a});let n="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function i(e,t){let r;return r=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,r)=>{const n=r[0],i=t[n];let a=e;return"string"===typeof i?a=i:"number"!==typeof i&&"boolean"!==typeof i&&void 0!==i&&null!==i||(a=String(i)),a})),n&&(r="\uff3b"+r.replace(/[aouei]/g,"$&$&")+"\uff3d"),r}function a(e,t,...r){return i(t,r)}function o(e){}},34029:(e,t,r)=>{"use strict";var n;r.d(t,{_$:()=>n,_Y:()=>i,u1:()=>a}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(n||(n={}));const i=a("instantiationService");function a(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,r,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,r){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:r}):(t[n.DI_DEPENDENCIES]=[{id:e,index:r}],t[n.DI_TARGET]=t)}(t,e,i)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},72053:(e,t,r)=>{"use strict";(0,r(98173).createContext)(null)},24833:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}var i;r.d(t,{AO:()=>c,Gh:()=>A,HS:()=>O,Rr:()=>l,V1:()=>k,pX:()=>L,pb:()=>S,rc:()=>i,sC:()=>a,tH:()=>R,ue:()=>d}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));function a(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map(((e,t)=>p(e,"string"===typeof e?null:e.state,0===t?"default":void 0)));let l=h(null==n?t.length-1:n),u=i.Pop,d=null;function h(e){return Math.min(Math.max(e,0),t.length-1)}function f(){return t[l]}function p(e,r,n){void 0===r&&(r=null);let i=s(t?f().pathname:"/",e,r,n);return o("/"===i.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),i}return{get index(){return l},get action(){return u},get location(){return f()},createHref:e=>"string"===typeof e?e:c(e),push(e,r){u=i.Push;let n=p(e,r);l+=1,t.splice(l,t.length,n),a&&d&&d({action:u,location:n})},replace(e,r){u=i.Replace;let n=p(e,r);t[l]=n,a&&d&&d({action:u,location:n})},go(e){u=i.Pop,l=h(l+e),d&&d({action:u,location:f()})},listen:e=>(d=e,()=>{d=null})}}function o(e,t){if(!e)try{throw new Error(t)}catch(r){}}function s(e,t,r,i){return void 0===r&&(r=null),n({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?l(t):t,{state:r,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function c(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function l(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var u;function d(e,t,r){void 0===r&&(r="/");let n=S(("string"===typeof t?l(t):t).pathname||"/",r);if(null==n)return null;let i=h(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let o=0;null==a&&o<i.length;++o)a=y(i[o],n);return a}function h(e,t,r,n){return void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n=""),e.forEach(((e,i)=>{let a={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(k(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let o=O([n,a.relativePath]),s=r.concat(a);e.children&&e.children.length>0&&(k(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),h(e.children,t,s,o)),(null!=e.path||e.index)&&t.push({path:o,score:_(o,e.index),routesMeta:s})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(u||(u={}));const f=/^:\w+$/,p=3,m=2,g=1,b=10,w=-2,v=e=>"*"===e;function _(e,t){let r=e.split("/"),n=r.length;return r.some(v)&&(n+=w),t&&(n+=m),r.filter((e=>!v(e))).reduce(((e,t)=>e+(f.test(t)?p:""===t?g:b)),n)}function y(e,t){let{routesMeta:r}=e,n={},i="/",a=[];for(let o=0;o<r.length;++o){let e=r[o],s=o===r.length-1,c="/"===i?t:t.slice(i.length)||"/",l=C({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},c);if(!l)return null;Object.assign(n,l.params);let u=e.route;a.push({params:n,pathname:O([i,l.pathname]),pathnameBase:T(O([i,l.pathnameBase])),route:u}),"/"!==l.pathnameBase&&(i=O([i,l.pathnameBase]))}return a}function C(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);E("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(n.push(t),"([^\\/]+)")));e.endsWith("*")?(n.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let a=new RegExp(i,t?void 0:"i");return[a,n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce(((e,t,r)=>{if("*"===t){let e=s[r]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(r){return E(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(s[r]||"",t),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function S(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function k(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function E(e,t){if(!e)try{throw new Error(t)}catch(r){}}function x(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function A(e,t,r,i){let a;void 0===i&&(i=!1),"string"===typeof e?a=l(e):(a=n({},e),k(!a.pathname||!a.pathname.includes("?"),x("?","pathname","search",a)),k(!a.pathname||!a.pathname.includes("#"),x("#","pathname","hash",a)),k(!a.search||!a.search.includes("#"),x("#","search","hash",a)));let o,s=""===e||""===a.pathname,c=s?"/":a.pathname;if(i||null==c)o=r;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"===typeof e?l(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:D(n),hash:I(i)}}(a,o),d=c&&"/"!==c&&c.endsWith("/"),h=(s||"."===c)&&r.endsWith("/");return u.pathname.endsWith("/")||!d&&!h||(u.pathname+="/"),u}const O=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class R extends Error{}class N{constructor(e,t,r){this.status=e,this.statusText=t||"",this.data=r}}function L(e){return e instanceof N}},41118:(e,t,r)=>{"use strict";r.d(t,{wd:()=>i});var n=r(30942);function i(e,t){var r="string"===typeof t?t:void 0,i="string"!==typeof t?{captureContext:t}:void 0;return(0,n.BF)().captureMessage(e,r,i)}},30942:(e,t,r)=>{"use strict";r.d(t,{BF:()=>m});var n=r(4475),i=r(46310),a=r(83887),o=r(24936),s=r(18631),c=r(49245),l=r(72973),u=4,d=100;class h{__init(){this._stack=[{}]}constructor(e,t=new c.H,r=u){this._version=r,h.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=c.H.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var r=this._lastEventId=t&&t.event_id?t.event_id:(0,n.eJ)(),i=new Error("Sentry syntheticException");return this._withClient(((n,a)=>{n.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},a)})),r}captureMessage(e,t,r){var i=this._lastEventId=r&&r.event_id?r.event_id:(0,n.eJ)(),a=new Error(e);return this._withClient(((n,o)=>{n.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:i},o)})),i}captureEvent(e,t){var r=t&&t.event_id?t.event_id:(0,n.eJ)();return"transaction"!==e.type&&(this._lastEventId=r),this._withClient(((n,i)=>{n.captureEvent(e,{...t,event_id:r},i)})),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:r,client:n}=this.getStackTop();if(!r||!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=d}=n.getOptions&&n.getOptions()||{};if(!(s<=0)){var c={timestamp:(0,i.lu)(),...e},l=o?(0,a.pq)((()=>o(c,t))):c;null!==l&&r.addBreadcrumb(l,s)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var r=this.getScope();r&&r.setTag(e,t)}setExtra(e,t){var r=this.getScope();r&&r.setExtra(e,t)}setContext(e,t){var r=this.getScope();r&&r.setContext(e,t)}configureScope(e){const{scope:t,client:r}=this.getStackTop();t&&r&&e(t)}run(e){var t=p(this);try{e(this)}finally{p(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(r){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,r=t&&t.getSession();r&&(0,l.Vu)(r),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:r}=this.getStackTop(),{release:n,environment:i}=r&&r.getOptions()||{};var a=(0,o.V)();const{userAgent:s}=a.navigator||{};var c=(0,l.fj)({release:n,environment:i,...t&&{user:t.getUser()},...s&&{userAgent:s},...e});if(t){var u=t.getSession&&t.getSession();u&&"ok"===u.status&&(0,l.qO)(u,{status:"exited"}),this.endSession(),t.setSession(c)}return c}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}}_withClient(e){const{scope:t,client:r}=this.getStackTop();r&&e(r,t)}_callExtensionMethod(e,...t){var r=f().__SENTRY__;if(r&&r.extensions&&"function"===typeof r.extensions[e])return r.extensions[e].apply(this,t);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function f(){var e=(0,o.V)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function p(e){var t=f(),r=b(t);return w(t,e),r}function m(){var e=f();return g(e)&&!b(e).isOlderThan(u)||w(e,new h),(0,s.wD)()?function(e){try{var t=f().__SENTRY__,r=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!r)return b(e);if(!g(r)||b(r).isOlderThan(u)){var n=b(e).getStackTop();w(r,new h(n.client,c.H.clone(n.scope)))}return b(r)}catch(i){return b(e)}}(e):b(e)}function g(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function b(e){return(0,o.B)("hub",(()=>new h),e)}function w(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},49245:(e,t,r)=>{"use strict";r.d(t,{H:()=>u});var n=r(30747),i=r(46310),a=r(85195),o=r(83887),s=r(4475),c=r(24936),l=r(72973);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new u;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,l.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"===typeof e){var t=e(this);return t instanceof u?t:this}return e instanceof u?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,n.Qd)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var r="number"===typeof t?t:100;if(r<=0)return this;var n={timestamp:(0,i.lu)(),...e};return this._breadcrumbs=[...this._breadcrumbs,n].slice(-r),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var r=this._span.transaction&&this._span.transaction.name;r&&(e.tags={transaction:r,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,r,i=0){return new a.T2(((a,s)=>{var c=e[i];if(null===t||"function"!==typeof c)a(t);else{var l=c({...t},r);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===l&&o.vF.log(`Event processor "${c.id}" dropped event`),(0,n.Qg)(l)?l.then((t=>this._notifyEventProcessors(e,t,r,i+1).then(a))).then(null,s):this._notifyEventProcessors(e,l,r,i+1).then(a).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,s.k9)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function d(){return(0,c.B)("globalEventProcessors",(()=>[]))}},30747:(e,t,r)=>{"use strict";r.d(t,{Qd:()=>a,Qg:()=>o});var n=Object.prototype.toString;function i(e,t){return n.call(e)===`[object ${t}]`}function a(e){return i(e,"Object")}function o(e){return Boolean(e&&e.then&&"function"===typeof e.then)}},83887:(e,t,r)=>{"use strict";r.d(t,{pq:()=>o,vF:()=>c});var n=r(24936),i=(0,n.V)(),a=["debug","info","warn","error","log","assert","trace"];function o(e){var t=(0,n.V)();if(!("console"in t))return e();var r=t.console,i={};a.forEach((e=>{var n=r[e]&&r[e].__sentry_original__;e in t.console&&n&&(i[e]=r[e],r[e]=n)}));try{return e()}finally{Object.keys(i).forEach((e=>{r[e]=i[e]}))}}function s(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach((r=>{t[r]=(...t)=>{e&&o((()=>{i.console[r](`Sentry Logger [${r}]:`,...t)}))}})):a.forEach((e=>{t[e]=()=>{}})),t}let c;c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,n.B)("logger",s):s()},4475:(e,t,r)=>{"use strict";r.d(t,{eJ:()=>i,k9:()=>a});var n=r(24936);function i(){var e=(0,n.V)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var r=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function a(e){return Array.isArray(e)?e:[e]}},18631:(e,t,r)=>{"use strict";r.d(t,{fj:()=>o,wD:()=>a});var n=r(49728);e=r.hmd(e);var i=r(88295);function a(){return!(0,n.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof i?i:0)}function o(e,t){return e.require(t)}},9576:(e,t,r)=>{"use strict";r.d(t,{Ce:()=>i});var n=r(30747);function i(e){return a(e,new Map)}function a(e,t){if((0,n.Qd)(e)){if(void 0!==(o=t.get(e)))return o;var r={};for(var i of(t.set(e,r),Object.keys(e)))"undefined"!==typeof e[i]&&(r[i]=a(e[i],t));return r}if(Array.isArray(e)){var o;if(void 0!==(o=t.get(e)))return o;r=[];return t.set(e,r),e.forEach((e=>{r.push(a(e,t))})),r}return e}},85195:(e,t,r)=>{"use strict";r.d(t,{T2:()=>a});var n,i=r(30747);!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(n||(n={}));class a{__init(){this._state=n.PENDING}__init2(){this._handlers=[]}constructor(e){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),a.prototype.__init5.call(this),a.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new a(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(i){n(i)}else r(t)},e=>{if(t)try{r(t(e))}catch(i){n(i)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new a(((t,r)=>{let n,i;return this.then((t=>{i=!1,n=t,e&&e()}),(t=>{i=!0,n=t,e&&e()})).then((()=>{i?r(n):t(n)}))}))}__init3(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===n.PENDING&&((0,i.Qg)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==n.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}},46310:(e,t,r)=>{"use strict";r.d(t,{lu:()=>c,zf:()=>l});var n=r(24936),i=r(18631);e=r.hmd(e);var a={nowSeconds:()=>Date.now()/1e3};var o=(0,i.wD)()?function(){try{return(0,i.fj)(e,"perf_hooks").performance}catch(t){return}}():function(){const{performance:e}=(0,n.V)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===o?a:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},c=a.nowSeconds.bind(a),l=s.nowSeconds.bind(s);let u;(()=>{const{performance:e}=(0,n.V)();if(e&&e.now){var t=36e5,r=e.now(),i=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+r-i):t,o=a<t,s=e.timing&&e.timing.navigationStart,c="number"===typeof s?Math.abs(s+r-i):t;return o||c<t?a<=c?(u="timeOrigin",e.timeOrigin):(u="navigationStart",s):(u="dateNow",i)}u="none"})()},94049:(e,t,r)=>{var n=r(45764).Buffer,i=r(88295);e.exports=function e(t,r,n){function i(o,s){if(!r[o]){if(!t[o]){if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[o]={exports:{}};t[o][0].call(l.exports,(function(e){return i(t[o][1][e]||e)}),l,l.exports,e,t,r,n)}return r[o].exports}for(var a=void 0,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,o,s,c,l,u=[],d=0,h=e.length,f=h,p="string"!==n.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],r=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),r=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|r>>4,c=1<f?(15&r)<<2|i>>6:64,l=2<f?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join("")},r.decode=function(e){var t,r,n,o,s,c,l=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&f--,e.charAt(e.length-2)===a.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):new Array(0|f);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,r=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,n=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),h[u++]=t,64!==s&&(h[u++]=r),64!==c&&(h[u++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}(0|t,e,e.length,0):function(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return~e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function c(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new c("Deflate",e)},r.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,o,u){var d,h,f=e.file,p=e.compression,m=u!==s.utf8encode,g=a.transformTo("string",u(f.name)),b=a.transformTo("string",s.utf8encode(f.name)),w=f.comment,v=a.transformTo("string",u(w)),_=a.transformTo("string",s.utf8encode(w)),y=b.length!==f.name.length,C=_.length!==w.length,S="",k="",E="",x=f.dir,A=f.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var T=0;t&&(T|=8),m||!y&&!C||(T|=2048);var D=0,I=0;x&&(D|=16),"UNIX"===o?(I=798,D|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,x)):(I=20,D|=function(e){return 63&(e||0)}(f.dosPermissions)),d=A.getUTCHours(),d<<=6,d|=A.getUTCMinutes(),d<<=5,d|=A.getUTCSeconds()/2,h=A.getUTCFullYear()-1980,h<<=4,h|=A.getUTCMonth()+1,h<<=5,h|=A.getUTCDate(),y&&(k=n(1,1)+n(c(g),4)+b,S+="up"+n(k.length,2)+k),C&&(E=n(1,1)+n(c(v),4)+_,S+="uc"+n(E.length,2)+E);var R="";return R+="\n\0",R+=n(T,2),R+=p.magic,R+=n(d,2),R+=n(h,2),R+=n(O.crc32,4),R+=n(O.compressedSize,4),R+=n(O.uncompressedSize,4),R+=n(g.length,2),R+=n(S.length,2),{fileRecord:l.LOCAL_FILE_HEADER+R+g+S,dirRecord:l.CENTRAL_FILE_HEADER+n(I,2)+R+n(v.length,2)+"\0\0\0\0"+n(D,4)+n(i,4)+g+S+v}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),l=e("../signature");function u(e,t,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=function(e,t,r,i,o){var s=a.transformTo("string",o(i));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(s.length,2)+s}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){"use strict";var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var a=new i(t.streamFiles,r,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,r){o++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},c=r.dir,l=r.date;r._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function l(e){return new i.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new o(t);return r.load(e),r})).then((function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var a=0;a<n.length;a++)r.push(l(n[a]));return i.Promise.all(r)})).then((function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=n.resolve(s.fileNameStr);r.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(r.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(r.comment=i.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){"use strict";var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),r&&r(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){"use strict";t.exports={isNode:"undefined"!=typeof n,newBufferFrom:function(e,t){if(n.from&&n.from!==Uint8Array.from)return n.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new n(e,t)},allocBuffer:function(e){if(n.alloc)return n.alloc(e);var t=new n(e);return t.fill(0),t},isBuffer:function(e){return n.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){"use strict";function n(e,t,r){var n,i=a.getTypeOf(t),s=a.extend(r||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!d),(t instanceof l&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var b=null;b=t instanceof l||t instanceof o?t:h.isNode&&h.isStream(t)?new f(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var w=new u(e,b,s);this.files[e]=w}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),l=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:c.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(b(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(b(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");a.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(e){(t=new o("error")).error(e)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){"use strict";var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,n),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){"use strict";var i=e("../utils"),a=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),c=e("../support"),l=e("../external"),u=null;if(c.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t){return new l.Promise((function(r,a){var o=[],c=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,r){o.push(e),t&&t(r)})).on("error",(function(e){o=[],a(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var r,i=0,a=null,o=0;for(r=0;r<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(o),r=0;r<t.length;r++)a.set(t[r],i),i+=t[r].length;return a;case"nodebuffer":return n.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,o),u);r(e)}catch(e){a(e)}o=[]})).resume()}))}function h(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,i.checkSupport(n),this._worker=e.pipe(new a(n)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return d(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,r)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof n,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),r.blob=0===a.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){"use strict";for(var n=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,r,n,a,o,s=e.length,c=0;for(a=0;a<s;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),a=o=0;o<c;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,a,o=e.length,c=new Array(2*o);for(t=r=0;t<o;)if((i=e[t++])<128)c[r++]=i;else if(4<(a=s[i]))c[r++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return c.length!==r&&(c.subarray?c=c.subarray(0,r):c.length=r),n.applyFromCharCode(c)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(l,o),l.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:r.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=l,n.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var n=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function c(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(t,n){r.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(n)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=l.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=u;var h={};h.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},h.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},h.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},h.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return h[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&a.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var u=r.getTypeOf(t);return u?("arraybuffer"===u?t=r.transformTo("uint8array",t):"string"===u&&(l?t=i.decode(t):a&&!0!==s&&(t=function(e){return c(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),c=e("./compressions"),l=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){"use strict";function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!n&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&n&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<l.length;d++)n.prototype[l[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){"use strict";var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),r=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,r=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;n=!0;for(var r=l.length;r;){for(t=l,l=[],e=-1;++e<r;)t[e]();r=l.length}n=!1}t.exports=function(e){1!==l.push(e)||n||r()}}).call(this,"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){"use strict";var n=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n((function(){var n;try{n=t(r)}catch(n){return a.reject(e,n)}n===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,n)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,a.reject(e,t))}function i(t){r||(r=!0,a.resolve(e,t))}var o=p((function(){t(i,n)}));"error"===o.status&&n(o.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=l).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var r=new this.constructor(i);return this.state!==c?d(r,this.state===s?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return a.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var o=new Array(r),s=0,c=-1,l=new this(i);++c<r;)u(e[c],c);return l;function u(e,i){t.resolve(e).then((function(e){o[i]=e,++s!==r||n||(n=!0,a.resolve(l,o))}),(function(e){n||(n=!0,a.reject(l,e))}))}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var o,s=-1,c=new this(i);++s<r;)o=e[s],t.resolve(o).then((function(e){n||(n=!0,a.resolve(c,e))}),(function(e){n||(n=!0,a.reject(c,e))}));return c}},{immediate:36}],38:[function(e,t,r){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){"use strict";var n=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,l=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==l)throw new Error(o[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==l)throw new Error(o[r]);this._dict_set=!0}}function p(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}f.prototype.push=function(e,t){var r,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,o))&&r!==l)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===o?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l):2!==o||(this.onEnd(l),!(s.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=f,r.deflate=p,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){"use strict";var n=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),l=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==o.Z_OK)throw new Error(s[r]);this.header=new l,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,c,l,d,h,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(h="string"==typeof m?a.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,h)),r===o.Z_BUF_ERROR&&!0===g&&(r=o.Z_OK,g=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=a.utf8border(f.output,f.next_out),l=f.next_out-c,d=a.buf2string(f.output,c),f.next_out=l,f.avail_out=p-l,l&&i.arraySet(f.output,f.output,c,l,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==o.Z_STREAM_END);return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){var t,r,n,i,a,o;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(o=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(n)},{}],42:[function(e,t,r){"use strict";var n=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",o=0;o<t;o++)r+=String.fromCharCode(e[o]);return r}o[254]=o[254]=1,r.string2buf=function(e){var t,r,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(c),a=o=0;o<c;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t},r.buf2binstring=function(e){return c(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,a,s=t||e.length,l=new Array(2*s);for(r=n=0;r<s;)if((i=e[r++])<128)l[n++]=i;else if(4<(a=o[i]))l[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&r<s;)i=i<<6|63&e[r++],a--;1<a?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return c(l,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e,a=e>>>16&65535,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;a=a+(i=i+t[n++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16}},{}],44:[function(e,t,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){"use strict";var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var a=n,o=i+r;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}},{}],46:[function(e,t,r){"use strict";var n,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),c=e("./messages"),l=0,u=4,d=0,h=-2,f=-1,p=4,m=2,g=8,b=9,w=286,v=30,_=19,y=2*w+1,C=15,S=3,k=258,E=k+S+1,x=42,A=113,O=1,T=2,D=3,I=4;function R(e,t){return e.msg=c[t],t}function N(e){return(e<<1)-(4<e?9:0)}function L(e){for(var t=e.length;0<=--t;)e[t]=0}function P(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function z(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,P(e.strm)}function B(e,t){e.pending_buf[e.pending++]=t}function M(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function j(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-E?e.strstart-(e.w_size-E):0,l=e.window,u=e.w_mask,d=e.prev,h=e.strstart+k,f=l[a+o-1],p=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(r=t)+o]===p&&l[r+o-1]===f&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++;do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<h);if(n=k-(h-a),a=h-k,o<n){if(e.match_start=t,s<=(o=n))break;f=l[a+o-1],p=l[a+o]}}}while((t=d[t&u])>c&&0!=--i);return o<=e.lookahead?o:e.lookahead}function F(e){var t,r,n,a,c,l,u,d,h,f,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-E)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);a+=p}if(0===e.strm.avail_in)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=a)<(f=l.avail_in)&&(f=h),r=0===f?0:(l.avail_in-=f,i.arraySet(u,l.input,l.next_in,f,d),1===l.state.wrap?l.adler=o(l.adler,u,f,d):2===l.state.wrap&&(l.adler=s(l.adler,u,f,d)),l.next_in+=f,l.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=S)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+S-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<E&&0!==e.strm.avail_in)}function U(e,t){for(var r,n;;){if(e.lookahead<E){if(F(e),e.lookahead<E&&t===l)return O;if(0===e.lookahead)break}if(r=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-E&&(e.match_length=j(e,r)),e.match_length>=S)if(n=a._tr_tally(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(z(e,!1),0===e.strm.avail_out))return O}return e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(z(e,!0),0===e.strm.avail_out?D:I):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?O:T}function W(e,t){for(var r,n,i;;){if(e.lookahead<E){if(F(e),e.lookahead<E&&t===l)return O;if(0===e.lookahead)break}if(r=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-E&&(e.match_length=j(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===S&&4096<e.strstart-e.match_start)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-S,n=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=S-1,e.strstart++,n&&(z(e,!1),0===e.strm.avail_out))return O}else if(e.match_available){if((n=a._tr_tally(e,0,e.window[e.strstart-1]))&&z(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return O}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(z(e,!0),0===e.strm.avail_out?D:I):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?O:T}function H(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function $(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*y),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*_+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(C+1),this.heap=new i.Buf16(2*w+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*w+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Z(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?x:A,e.adler=2===t.wrap?0:1,t.last_flush=l,a._tr_init(t),d):R(e,h)}function q(e){var t=Z(e);return t===d&&function(e){e.window_size=2*e.w_size,L(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0}(e.state),t}function V(e,t,r,n,a,o){if(!e)return h;var s=1;if(t===f&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),a<1||b<a||r!==g||n<8||15<n||t<0||9<t||o<0||p<o)return R(e,h);8===n&&(n=9);var c=new $;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+S-1)/S),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=r,q(e)}n=[new H(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(F(e),0===e.lookahead&&t===l)return O;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,z(e,!1),0===e.strm.avail_out))return O;if(e.strstart-e.block_start>=e.w_size-E&&(z(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===u?(z(e,!0),0===e.strm.avail_out?D:I):(e.strstart>e.block_start&&(z(e,!1),e.strm.avail_out),O)})),new H(4,4,8,4,U),new H(4,5,16,8,U),new H(4,6,32,32,U),new H(4,4,16,16,W),new H(8,16,32,32,W),new H(8,16,128,128,W),new H(8,32,128,256,W),new H(32,128,258,1024,W),new H(32,258,258,4096,W)],r.deflateInit=function(e,t){return V(e,t,g,15,8,0)},r.deflateInit2=V,r.deflateReset=q,r.deflateResetKeep=Z,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},r.deflate=function(e,t){var r,i,o,c;if(!e||!e.state||5<t||t<0)return e?R(e,h):h;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return R(e,0===e.avail_out?-5:h);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===x)if(2===i.wrap)e.adler=0,B(i,31),B(i,139),B(i,8),i.gzhead?(B(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),B(i,255&i.gzhead.time),B(i,i.gzhead.time>>8&255),B(i,i.gzhead.time>>16&255),B(i,i.gzhead.time>>24&255),B(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),B(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(B(i,255&i.gzhead.extra.length),B(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(B(i,0),B(i,0),B(i,0),B(i,0),B(i,0),B(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),B(i,3),i.status=A);else{var f=g+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=A,M(i,f),0!==i.strstart&&(M(i,e.adler>>>16),M(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),P(e),o=i.pending,i.pending!==i.pending_buf_size));)B(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),P(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,B(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),P(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,B(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&P(e),i.pending+2<=i.pending_buf_size&&(B(i,255&e.adler),B(i,e.adler>>8&255),e.adler=0,i.status=A)):i.status=A),0!==i.pending){if(P(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&N(t)<=N(r)&&t!==u)return R(e,-5);if(666===i.status&&0!==e.avail_in)return R(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==l&&666!==i.status){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(F(e),0===e.lookahead)){if(t===l)return O;break}if(e.match_length=0,r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(z(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===u?(z(e,!0),0===e.strm.avail_out?D:I):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?O:T}(i,t):3===i.strategy?function(e,t){for(var r,n,i,o,s=e.window;;){if(e.lookahead<=k){if(F(e),e.lookahead<=k&&t===l)return O;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=S&&0<e.strstart&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){o=e.strstart+k;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);e.match_length=k-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(r=a._tr_tally(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(z(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===u?(z(e,!0),0===e.strm.avail_out?D:I):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?O:T}(i,t):n[i.level].func(i,t);if(p!==D&&p!==I||(i.status=666),p===O||p===D)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===T&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),P(e),0===e.avail_out))return i.last_flush=-1,d}return t!==u?d:i.wrap<=0?1:(2===i.wrap?(B(i,255&e.adler),B(i,e.adler>>8&255),B(i,e.adler>>16&255),B(i,e.adler>>24&255),B(i,255&e.total_in),B(i,e.total_in>>8&255),B(i,e.total_in>>16&255),B(i,e.total_in>>24&255)):(M(i,e.adler>>>16),M(i,65535&e.adler)),P(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==x&&69!==t&&73!==t&&91!==t&&103!==t&&t!==A&&666!==t?R(e,h):(e.state=null,t===A?R(e,-3):d):h},r.deflateSetDictionary=function(e,t){var r,n,a,s,c,l,u,f,p=t.length;if(!e||!e.state)return h;if(2===(s=(r=e.state).wrap)||1===s&&r.status!==x||r.lookahead)return h;for(1===s&&(e.adler=o(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,p-r.w_size,r.w_size,0),t=f,p=r.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,F(r);r.lookahead>=S;){for(n=r.strstart,a=r.lookahead-(S-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+S-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--a;);r.strstart=n,r.lookahead=S-1,F(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=S-1,r.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,r.wrap=s,d},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){"use strict";t.exports=function(e,t){var r,n,i,a,o,s,c,l,u,d,h,f,p,m,g,b,w,v,_,y,C,S,k,E,x;r=e.state,n=e.next_in,E=e.input,i=n+(e.avail_in-5),a=e.next_out,x=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=r.dmax,l=r.wsize,u=r.whave,d=r.wnext,h=r.window,f=r.hold,p=r.bits,m=r.lencode,g=r.distcode,b=(1<<r.lenbits)-1,w=(1<<r.distbits)-1;e:do{p<15&&(f+=E[n++]<<p,p+=8,f+=E[n++]<<p,p+=8),v=m[f&b];t:for(;;){if(f>>>=_=v>>>24,p-=_,0===(_=v>>>16&255))x[a++]=65535&v;else{if(!(16&_)){if(0==(64&_)){v=m[(65535&v)+(f&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}y=65535&v,(_&=15)&&(p<_&&(f+=E[n++]<<p,p+=8),y+=f&(1<<_)-1,f>>>=_,p-=_),p<15&&(f+=E[n++]<<p,p+=8,f+=E[n++]<<p,p+=8),v=g[f&w];r:for(;;){if(f>>>=_=v>>>24,p-=_,!(16&(_=v>>>16&255))){if(0==(64&_)){v=g[(65535&v)+(f&(1<<_)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(C=65535&v,p<(_&=15)&&(f+=E[n++]<<p,(p+=8)<_&&(f+=E[n++]<<p,p+=8)),c<(C+=f&(1<<_)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=_,p-=_,(_=a-o)<C){if(u<(_=C-_)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=h,(S=0)===d){if(S+=l-_,_<y){for(y-=_;x[a++]=h[S++],--_;);S=a-C,k=x}}else if(d<_){if(S+=l+d-_,(_-=d)<y){for(y-=_;x[a++]=h[S++],--_;);if(S=0,d<y){for(y-=_=d;x[a++]=h[S++],--_;);S=a-C,k=x}}}else if(S+=d-_,_<y){for(y-=_;x[a++]=h[S++],--_;);S=a-C,k=x}for(;2<y;)x[a++]=k[S++],x[a++]=k[S++],x[a++]=k[S++],y-=3;y&&(x[a++]=k[S++],1<y&&(x[a++]=k[S++]))}else{for(S=a-C;x[a++]=x[S++],x[a++]=x[S++],x[a++]=x[S++],2<(y-=3););y&&(x[a++]=x[S++],1<y&&(x[a++]=x[S++]))}break}}break}}while(n<i&&a<s);n-=y=p>>3,f&=(1<<(p-=y<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=a<s?s-a+257:257-(a-s),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){"use strict";var n=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),c=1,l=2,u=0,d=-2,h=1,f=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(f),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):d}function w(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):d}function v(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,w(e))):d}function _(e,t){var r,n;return e?(n=new g,(e.state=n).window=null,(r=v(e,t))!==u&&(e.state=null),r):d}var y,C,S=!0;function k(e){if(S){var t;for(y=new n.Buf32(512),C=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,C,0,e.work,{bits:5}),S=!1}e.lencode=y,e.lenbits=9,e.distcode=C,e.distbits=5}function E(e,t,r,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),n.arraySet(o.window,t,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,t,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}r.inflateReset=w,r.inflateReset2=v,r.inflateResetKeep=b,r.inflateInit=function(e){return _(e,15)},r.inflateInit2=_,r.inflate=function(e,t){var r,f,p,g,b,w,v,_,y,C,S,x,A,O,T,D,I,R,N,L,P,z,B,M,j=0,F=new n.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(r=e.state).mode&&(r.mode=13),b=e.next_out,p=e.output,v=e.avail_out,g=e.next_in,f=e.input,w=e.avail_in,_=r.hold,y=r.bits,C=w,S=v,z=u;e:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;y<16;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(2&r.wrap&&35615===_){F[r.check=0]=255&_,F[1]=_>>>8&255,r.check=a(r.check,F,2,0),y=_=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&_)<<8)+(_>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&_)){e.msg="unknown compression method",r.mode=30;break}if(y-=4,P=8+(15&(_>>>=4)),0===r.wbits)r.wbits=P;else if(P>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<P,e.adler=r.check=1,r.mode=512&_?10:12,y=_=0;break;case 2:for(;y<16;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(r.flags=_,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=_>>8&1),512&r.flags&&(F[0]=255&_,F[1]=_>>>8&255,r.check=a(r.check,F,2,0)),y=_=0,r.mode=3;case 3:for(;y<32;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.head&&(r.head.time=_),512&r.flags&&(F[0]=255&_,F[1]=_>>>8&255,F[2]=_>>>16&255,F[3]=_>>>24&255,r.check=a(r.check,F,4,0)),y=_=0,r.mode=4;case 4:for(;y<16;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.head&&(r.head.xflags=255&_,r.head.os=_>>8),512&r.flags&&(F[0]=255&_,F[1]=_>>>8&255,r.check=a(r.check,F,2,0)),y=_=0,r.mode=5;case 5:if(1024&r.flags){for(;y<16;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.length=_,r.head&&(r.head.extra_len=_),512&r.flags&&(F[0]=255&_,F[1]=_>>>8&255,r.check=a(r.check,F,2,0)),y=_=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(w<(x=r.length)&&(x=w),x&&(r.head&&(P=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,g,x,P)),512&r.flags&&(r.check=a(r.check,f,x,g)),w-=x,g+=x,r.length-=x),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break e;for(x=0;P=f[g+x++],r.head&&P&&r.length<65536&&(r.head.name+=String.fromCharCode(P)),P&&x<w;);if(512&r.flags&&(r.check=a(r.check,f,x,g)),w-=x,g+=x,P)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break e;for(x=0;P=f[g+x++],r.head&&P&&r.length<65536&&(r.head.comment+=String.fromCharCode(P)),P&&x<w;);if(512&r.flags&&(r.check=a(r.check,f,x,g)),w-=x,g+=x,P)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;y<16;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(_!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}y=_=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;y<32;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}e.adler=r.check=m(_),y=_=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=w,r.hold=_,r.bits=y,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){_>>>=7&y,y-=7&y,r.mode=27;break}for(;y<3;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}switch(r.last=1&_,y-=1,3&(_>>>=1)){case 0:r.mode=14;break;case 1:if(k(r),r.mode=20,6!==t)break;_>>>=2,y-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}_>>>=2,y-=2;break;case 14:for(_>>>=7&y,y-=7&y;y<32;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if((65535&_)!=(_>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&_,y=_=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(x=r.length){if(w<x&&(x=w),v<x&&(x=v),0===x)break e;n.arraySet(p,f,g,x,b),w-=x,g+=x,v-=x,b+=x,r.length-=x;break}r.mode=12;break;case 17:for(;y<14;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(r.nlen=257+(31&_),_>>>=5,y-=5,r.ndist=1+(31&_),_>>>=5,y-=5,r.ncode=4+(15&_),_>>>=4,y-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;y<3;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.lens[U[r.have++]]=7&_,_>>>=3,y-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},z=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,z){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;D=(j=r.lencode[_&(1<<r.lenbits)-1])>>>16&255,I=65535&j,!((T=j>>>24)<=y);){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(I<16)_>>>=T,y-=T,r.lens[r.have++]=I;else{if(16===I){for(M=T+2;y<M;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(_>>>=T,y-=T,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}P=r.lens[r.have-1],x=3+(3&_),_>>>=2,y-=2}else if(17===I){for(M=T+3;y<M;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}y-=T,P=0,x=3+(7&(_>>>=T)),_>>>=3,y-=3}else{for(M=T+7;y<M;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}y-=T,P=0,x=11+(127&(_>>>=T)),_>>>=7,y-=7}if(r.have+x>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;x--;)r.lens[r.have++]=P}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,B={bits:r.lenbits},z=s(c,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,z){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},z=s(l,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,z){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=w&&258<=v){e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=w,r.hold=_,r.bits=y,o(e,S),b=e.next_out,p=e.output,v=e.avail_out,g=e.next_in,f=e.input,w=e.avail_in,_=r.hold,y=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;D=(j=r.lencode[_&(1<<r.lenbits)-1])>>>16&255,I=65535&j,!((T=j>>>24)<=y);){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(D&&0==(240&D)){for(R=T,N=D,L=I;D=(j=r.lencode[L+((_&(1<<R+N)-1)>>R)])>>>16&255,I=65535&j,!(R+(T=j>>>24)<=y);){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}_>>>=R,y-=R,r.back+=R}if(_>>>=T,y-=T,r.back+=T,r.length=I,0===D){r.mode=26;break}if(32&D){r.back=-1,r.mode=12;break}if(64&D){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&D,r.mode=22;case 22:if(r.extra){for(M=r.extra;y<M;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.length+=_&(1<<r.extra)-1,_>>>=r.extra,y-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;D=(j=r.distcode[_&(1<<r.distbits)-1])>>>16&255,I=65535&j,!((T=j>>>24)<=y);){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(0==(240&D)){for(R=T,N=D,L=I;D=(j=r.distcode[L+((_&(1<<R+N)-1)>>R)])>>>16&255,I=65535&j,!(R+(T=j>>>24)<=y);){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}_>>>=R,y-=R,r.back+=R}if(_>>>=T,y-=T,r.back+=T,64&D){e.msg="invalid distance code",r.mode=30;break}r.offset=I,r.extra=15&D,r.mode=24;case 24:if(r.extra){for(M=r.extra;y<M;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.offset+=_&(1<<r.extra)-1,_>>>=r.extra,y-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===v)break e;if(x=S-v,r.offset>x){if((x=r.offset-x)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}A=x>r.wnext?(x-=r.wnext,r.wsize-x):r.wnext-x,x>r.length&&(x=r.length),O=r.window}else O=p,A=b-r.offset,x=r.length;for(v<x&&(x=v),v-=x,r.length-=x;p[b++]=O[A++],--x;);0===r.length&&(r.mode=21);break;case 26:if(0===v)break e;p[b++]=r.length,v--,r.mode=21;break;case 27:if(r.wrap){for(;y<32;){if(0===w)break e;w--,_|=f[g++]<<y,y+=8}if(S-=v,e.total_out+=S,r.total+=S,S&&(e.adler=r.check=r.flags?a(r.check,p,S,b-S):i(r.check,p,S,b-S)),S=v,(r.flags?_:m(_))!==r.check){e.msg="incorrect data check",r.mode=30;break}y=_=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;y<32;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(_!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}y=_=0}r.mode=29;case 29:z=1;break e;case 30:z=-3;break e;case 31:return-4;default:return d}return e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=w,r.hold=_,r.bits=y,(r.wsize||S!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&E(e,e.output,e.next_out,S-e.avail_out)?(r.mode=31,-4):(C-=e.avail_in,S-=e.avail_out,e.total_in+=C,e.total_out+=S,r.total+=S,r.wrap&&S&&(e.adler=r.check=r.flags?a(r.check,p,S,e.next_out-S):i(r.check,p,S,e.next_out-S)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==C&&0===S||4===t)&&z===u&&(z=-5),z)},r.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?d:((r.head=t).done=!1,u):d},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?d:11===r.mode&&i(1,t,n,0)!==r.check?-3:E(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,u):d},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){"use strict";var n=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,c,l,u,d,h){var f,p,m,g,b,w,v,_,y,C=h.bits,S=0,k=0,E=0,x=0,A=0,O=0,T=0,D=0,I=0,R=0,N=null,L=0,P=new n.Buf16(16),z=new n.Buf16(16),B=null,M=0;for(S=0;S<=15;S++)P[S]=0;for(k=0;k<c;k++)P[t[r+k]]++;for(A=C,x=15;1<=x&&0===P[x];x--);if(x<A&&(A=x),0===x)return l[u++]=20971520,l[u++]=20971520,h.bits=1,0;for(E=1;E<x&&0===P[E];E++);for(A<E&&(A=E),S=D=1;S<=15;S++)if(D<<=1,(D-=P[S])<0)return-1;if(0<D&&(0===e||1!==x))return-1;for(z[1]=0,S=1;S<15;S++)z[S+1]=z[S]+P[S];for(k=0;k<c;k++)0!==t[r+k]&&(d[z[t[r+k]]++]=k);if(w=0===e?(N=B=d,19):1===e?(N=i,L-=257,B=a,M-=257,256):(N=o,B=s,-1),S=E,b=u,T=k=R=0,m=-1,g=(I=1<<(O=A))-1,1===e&&852<I||2===e&&592<I)return 1;for(;;){for(v=S-T,y=d[k]<w?(_=0,d[k]):d[k]>w?(_=B[M+d[k]],N[L+d[k]]):(_=96,0),f=1<<S-T,E=p=1<<O;l[b+(R>>T)+(p-=f)]=v<<24|_<<16|y,0!==p;);for(f=1<<S-1;R&f;)f>>=1;if(0!==f?(R&=f-1,R+=f):R=0,k++,0==--P[S]){if(S===x)break;S=t[r+d[k]]}if(A<S&&(R&g)!==m){for(0===T&&(T=A),b+=E,D=1<<(O=S-T);O+T<x&&!((D-=P[O+T])<=0);)O++,D<<=1;if(I+=1<<O,1===e&&852<I||2===e&&592<I)return 1;l[m=R&g]=A<<24|O<<16|b-u}}return 0!==R&&(l[b+R]=S-T<<24|64<<16),h.bits=A,0}},{"../utils/common":41}],51:[function(e,t,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){"use strict";var n=e("../utils/common"),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,l=256,u=l+1+c,d=30,h=19,f=2*u+1,p=15,m=16,g=7,b=256,w=16,v=17,_=18,y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=new Array(2*(u+2));o(E);var x=new Array(2*d);o(x);var A=new Array(512);o(A);var O=new Array(256);o(O);var T=new Array(c);o(T);var D,I,R,N=new Array(d);function L(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function P(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function z(e){return e<256?A[e]:A[256+(e>>>7)]}function B(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function M(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<<e.bi_valid&65535,B(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function j(e,t,r){M(e,r[2*t],r[2*t+1])}function F(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function U(e,t,r){var n,i,a=new Array(p+1),o=0;for(n=1;n<=p;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=F(a[s]++,s))}}function W(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function H(e){8<e.bi_valid?B(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function $(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function Z(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&$(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!$(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function q(e,t,r){var n,i,a,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===n?j(e,i,t):(j(e,(a=O[i])+l+1,t),0!==(o=y[a])&&M(e,i-=T[a],o),j(e,a=z(--n),r),0!==(o=C[a])&&M(e,n-=N[a],o)),s<e.last_lit;);j(e,b,t)}function V(e,t){var r,n,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=f,r=0;r<c;r++)0!==a[2*r]?(e.heap[++e.heap_len]=l=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,r=e.heap_len>>1;1<=r;r--)Z(e,a,r);for(i=c;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Z(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,Z(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(a=0;a<=p;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<f;r++)g<(a=c[2*c[2*(n=e.heap[r])+1]+1]+1)&&(a=g,b++),c[2*n+1]=a,l<n||(e.bl_count[a]++,o=0,m<=n&&(o=h[n-m]),s=c[2*n],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*n+1]+o)));if(0!==b){do{for(a=g-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(a=g;0!==a;a--)for(n=e.bl_count[a];0!==n;)l<(i=e.heap[--r])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),n--)}}(e,t),U(a,l,e.bl_count)}function G(e,t,r){var n,i,a=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*w]++):s<=10?e.bl_tree[2*v]++:e.bl_tree[2*_]++,a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function K(e,t,r){var n,i,a=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),n=0;n<=r;n++)if(i=o,o=t[2*(n+1)+1],!(++s<c&&i===o)){if(s<l)for(;j(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(j(e,i,e.bl_tree),s--),j(e,w,e.bl_tree),M(e,s-3,2)):s<=10?(j(e,v,e.bl_tree),M(e,s-3,3)):(j(e,_,e.bl_tree),M(e,s-11,7));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(N);var Y=!1;function X(e,t,r,i){M(e,(s<<1)+(i?1:0),3),function(e,t,r,i){H(e),i&&(B(e,r),B(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}r._tr_init=function(e){Y||(function(){var e,t,r,n,i,a=new Array(p+1);for(n=r=0;n<c-1;n++)for(T[n]=r,e=0;e<1<<y[n];e++)O[r++]=n;for(O[r-1]=n,n=i=0;n<16;n++)for(N[n]=i,e=0;e<1<<C[n];e++)A[i++]=n;for(i>>=7;n<d;n++)for(N[n]=i<<7,e=0;e<1<<C[n]-7;e++)A[256+i++]=n;for(t=0;t<=p;t++)a[t]=0;for(e=0;e<=143;)E[2*e+1]=8,e++,a[8]++;for(;e<=255;)E[2*e+1]=9,e++,a[9]++;for(;e<=279;)E[2*e+1]=7,e++,a[7]++;for(;e<=287;)E[2*e+1]=8,e++,a[8]++;for(U(E,u+1,a),e=0;e<d;e++)x[2*e+1]=5,x[2*e]=F(e,5);D=new L(E,y,l+1,u,p),I=new L(x,C,0,d,p),R=new L(new Array(0),S,0,h,g)}(),Y=!0),e.l_desc=new P(e.dyn_ltree,D),e.d_desc=new P(e.dyn_dtree,I),e.bl_desc=new P(e.bl_tree,R),e.bi_buf=0,e.bi_valid=0,W(e)},r._tr_stored_block=X,r._tr_flush_block=function(e,t,r,n){var o,s,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<l;t++)if(0!==e.dyn_ltree[2*t])return a;return i}(e)),V(e,e.l_desc),V(e,e.d_desc),c=function(e){var t;for(G(e,e.dyn_ltree,e.l_desc.max_code),G(e,e.dyn_dtree,e.d_desc.max_code),V(e,e.bl_desc),t=h-1;3<=t&&0===e.bl_tree[2*k[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==t?X(e,t,r,n):4===e.strategy||s===o?(M(e,2+(n?1:0),3),q(e,E,x)):(M(e,4+(n?1:0),3),function(e,t,r,n){var i;for(M(e,t-257,5),M(e,r-1,5),M(e,n-4,4),i=0;i<n;i++)M(e,e.bl_tree[2*k[i]+1],3);K(e,e.dyn_ltree,t-1),K(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),q(e,e.dyn_ltree,e.dyn_dtree)),W(e),n&&H(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(O[r]+l+1)]++,e.dyn_dtree[2*z(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){M(e,2,3),j(e,b,E),function(e){16===e.bi_valid?(B(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var r,n,a,o,s=1,c={},l=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,r="[object process]"==={}.toString.call(e.process)?function(e){i.nextTick((function(){f(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){a.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(f,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[s]=i,r(s),s++},d.clearImmediate=h}function h(e){delete c[e]}function f(e){if(l)setTimeout(f,0,e);else{var r=c[e];if(r){l=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{h(e),l=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},477:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var n=r(45247),i=r(23906);function a(e){void 0===e&&(e=n.t);var t=e===n.t?i.P:(0,i.N)(e);return function(){return t().dispatch}}var o=a()},26926:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});var n=r(98173),i=r(45247);function a(){return(0,n.useContext)(i.t)}},91270:(e,t,r)=>{"use strict";r.d(t,{d:()=>u});var n=r(98173),i=r(26926),a=r(41968),o=r(14812),s=r(45247),c=function(e,t){return e===t};function l(e){void 0===e&&(e=s.t);var t=e===s.t?i.n:function(){return(0,n.useContext)(e)};return function(e,r){void 0===r&&(r=c);var i=t(),s=function(e,t,r,i){var s,c=(0,n.useReducer)((function(e){return e+1}),0)[1],l=(0,n.useMemo)((function(){return(0,a.K)(r,i)}),[r,i]),u=(0,n.useRef)(),d=(0,n.useRef)(),h=(0,n.useRef)(),f=(0,n.useRef)(),p=r.getState();try{if(e!==d.current||p!==h.current||u.current){var m=e(p);s=void 0!==f.current&&t(m,f.current)?f.current:m}else s=f.current}catch(g){throw u.current&&(g.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),g}return(0,o.E)((function(){d.current=e,h.current=p,f.current=s,u.current=void 0})),(0,o.E)((function(){function e(){try{var e=r.getState();if(e===h.current)return;var n=d.current(e);if(t(n,f.current))return;f.current=n,h.current=e}catch(g){u.current=g}c()}return l.onStateChange=e,l.trySubscribe(),e(),function(){return l.tryUnsubscribe()}}),[r,l]),s}(e,r,i.store,i.subscription);return(0,n.useDebugValue)(s),s}}var u=l()},79245:(e,t,r)=>{"use strict";r.d(t,{N_:()=>u,ok:()=>f});var n=r(98173),i=r(30150),a=r(24833);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function c(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}const l=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];const u=n.forwardRef((function(e,t){let{onClick:r,relative:c,reloadDocument:u,replace:d,state:h,target:f,to:p,preventScrollReset:m}=e,g=s(e,l),b=(0,i.$P)(p,{relative:c}),w=function(e,t){let{target:r,replace:o,state:s,preventScrollReset:c,relative:l}=void 0===t?{}:t,u=(0,i.Zp)(),d=(0,i.zy)(),h=(0,i.x$)(e,{relative:l});return n.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let r=void 0!==o?o:(0,a.AO)(d)===(0,a.AO)(h);u(e,{replace:r,state:s,preventScrollReset:c,relative:l})}}),[d,u,h,o,s,r,e,c,l])}(p,{replace:d,state:h,target:f,preventScrollReset:m,relative:c});return n.createElement("a",o({},g,{href:b,onClick:u?r:function(e){r&&r(e),e.defaultPrevented||w(e)},ref:t,target:f}))}));var d,h;function f(e){let t=n.useRef(c(e)),r=(0,i.zy)(),a=n.useMemo((()=>function(e,t){let r=c(e);for(let n of t.keys())r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}));return r}(r.search,t.current)),[r.search]),o=(0,i.Zp)(),s=n.useCallback(((e,t)=>{const r=c("function"===typeof e?e(a):e);o("?"+r,t)}),[o,a]);return[a,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(d||(d={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(h||(h={}))},30150:(e,t,r)=>{"use strict";var n;r.d(t,{$P:()=>_,BV:()=>U,C5:()=>B,KC:()=>x,Zp:()=>k,fS:()=>z,g:()=>A,qh:()=>j,sv:()=>M,x$:()=>O,zy:()=>C});var i=r(24833),a=r(98173);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}const s="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},{useState:c,useEffect:l,useLayoutEffect:u,useDebugValue:d}=n||(n=r.t(a,2));function h(e){const t=e.getSnapshot,r=e.value;try{const e=t();return!s(r,e)}catch(n){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,(n||(n=r.t(a,2))).useSyncExternalStore;const f=a.createContext(null);const p=a.createContext(null);const m=a.createContext(null);const g=a.createContext(null);const b=a.createContext(null);const w=a.createContext({outlet:null,matches:[]});const v=a.createContext(null);function _(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,i.V1)(!1);let{basename:n,navigator:o}=a.useContext(g),{hash:s,pathname:c,search:l}=O(e,{relative:r}),u=c;return"/"!==n&&(u="/"===c?n:(0,i.HS)([n,c])),o.createHref({pathname:u,search:l,hash:s})}function y(){return null!=a.useContext(b)}function C(){return y()||(0,i.V1)(!1),a.useContext(b).location}function S(e){return e.filter(((t,r)=>0===r||!t.route.index&&t.pathnameBase!==e[r-1].pathnameBase))}function k(){y()||(0,i.V1)(!1);let{basename:e,navigator:t}=a.useContext(g),{matches:r}=a.useContext(w),{pathname:n}=C(),o=JSON.stringify(S(r).map((e=>e.pathnameBase))),s=a.useRef(!1);return a.useEffect((()=>{s.current=!0})),a.useCallback((function(r,a){if(void 0===a&&(a={}),!s.current)return;if("number"===typeof r)return void t.go(r);let c=(0,i.Gh)(r,JSON.parse(o),n,"path"===a.relative);"/"!==e&&(c.pathname="/"===c.pathname?e:(0,i.HS)([e,c.pathname])),(a.replace?t.replace:t.push)(c,a.state,a)}),[e,t,o,n])}const E=a.createContext(null);function x(){return a.useContext(E)}function A(){let{matches:e}=a.useContext(w),t=e[e.length-1];return t?t.params:{}}function O(e,t){let{relative:r}=void 0===t?{}:t,{matches:n}=a.useContext(w),{pathname:o}=C(),s=JSON.stringify(S(n).map((e=>e.pathnameBase)));return a.useMemo((()=>(0,i.Gh)(e,JSON.parse(s),o,"path"===r)),[e,s,o,r])}function T(){let e=function(){var e;let t=a.useContext(v),r=P(L.UseRouteError),n=a.useContext(w),o=n.matches[n.matches.length-1];if(t)return t;return n||(0,i.V1)(!1),!o.route.id&&(0,i.V1)(!1),null==(e=r.errors)?void 0:e[o.route.id]}(),t=(0,i.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},s={padding:"2px 4px",backgroundColor:n};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unhandled Thrown Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:o},r):null,a.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",a.createElement("code",{style:s},"errorElement")," props on\xa0",a.createElement("code",{style:s},"<Route>")))}class D extends a.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){}render(){return this.state.error?a.createElement(v.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function I(e){let{routeContext:t,match:r,children:n}=e,i=a.useContext(f);return i&&r.route.errorElement&&(i._deepestRenderedBoundaryId=r.route.id),a.createElement(w.Provider,{value:t},n)}function R(e,t,r){if(void 0===t&&(t=[]),null==e){if(null==r||!r.errors)return null;e=r.matches}let n=e,o=null==r?void 0:r.errors;if(null!=o){let e=n.findIndex((e=>e.route.id&&(null==o?void 0:o[e.route.id])));e>=0||(0,i.V1)(!1),n=n.slice(0,Math.min(n.length,e+1))}return n.reduceRight(((e,i,s)=>{let c=i.route.id?null==o?void 0:o[i.route.id]:null,l=r?i.route.errorElement||a.createElement(T,null):null,u=()=>a.createElement(I,{match:i,routeContext:{outlet:e,matches:t.concat(n.slice(0,s+1))}},c?l:void 0!==i.route.element?i.route.element:e);return r&&(i.route.errorElement||0===s)?a.createElement(D,{location:r.location,component:l,error:c,children:u()}):u()}),null)}var N,L;function P(e){let t=a.useContext(m);return t||(0,i.V1)(!1),t}!function(e){e.UseRevalidator="useRevalidator"}(N||(N={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(L||(L={}));function z(e){let{basename:t,children:r,initialEntries:n,initialIndex:o}=e,s=a.useRef();null==s.current&&(s.current=(0,i.sC)({initialEntries:n,initialIndex:o,v5Compat:!0}));let c=s.current,[l,u]=a.useState({action:c.action,location:c.location});return a.useLayoutEffect((()=>c.listen(u)),[c]),a.createElement(F,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:c})}function B(e){let{to:t,replace:r,state:n,relative:o}=e;y()||(0,i.V1)(!1);let s=a.useContext(m),c=k();return a.useEffect((()=>{s&&"idle"!==s.navigation.state||c(t,{replace:r,state:n,relative:o})})),null}function M(e){return function(e){let t=a.useContext(w).outlet;return t?a.createElement(E.Provider,{value:e},t):t}(e.context)}function j(e){(0,i.V1)(!1)}function F(e){let{basename:t="/",children:r=null,location:n,navigationType:o=i.rc.Pop,navigator:s,static:c=!1}=e;y()&&(0,i.V1)(!1);let l=t.replace(/^\/*/,"/"),u=a.useMemo((()=>({basename:l,navigator:s,static:c})),[l,s,c]);"string"===typeof n&&(n=(0,i.Rr)(n));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:m="default"}=n,w=a.useMemo((()=>{let e=(0,i.pb)(d,l);return null==e?null:{pathname:e,search:h,hash:f,state:p,key:m}}),[l,d,h,f,p,m]);return null==w?null:a.createElement(g.Provider,{value:u},a.createElement(b.Provider,{children:r,value:{location:w,navigationType:o}}))}function U(e){let{children:t,location:r}=e,n=a.useContext(p);return function(e,t){y()||(0,i.V1)(!1);let r=a.useContext(m),{matches:n}=a.useContext(w),s=n[n.length-1],c=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,d=C();if(t){var h;let e="string"===typeof t?(0,i.Rr)(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||(0,i.V1)(!1),u=e}else u=d;let f=u.pathname||"/",p="/"===l?f:f.slice(l.length)||"/",g=(0,i.ue)(e,{pathname:p}),v=R(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:(0,i.HS)([l,e.pathname]),pathnameBase:"/"===e.pathnameBase?l:(0,i.HS)([l,e.pathnameBase])}))),n,r||void 0);return t?a.createElement(b.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:i.rc.Pop}},v):v}(n&&!t?n.router.routes:H(t),r)}var W;!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(W||(W={}));new Promise((()=>{}));a.Component;function H(e,t){void 0===t&&(t=[]);let r=[];return a.Children.forEach(e,((e,n)=>{if(!a.isValidElement(e))return;if(e.type===a.Fragment)return void r.push.apply(r,H(e.props.children,t));e.type!==j&&(0,i.V1)(!1),e.props.index&&e.props.children&&(0,i.V1)(!1);let o=[...t,n],s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,hasErrorBoundary:null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle};e.props.children&&(s.children=H(e.props.children,o)),r.push(s)})),r}},72510:(e,t,r)=>{"use strict";r.d(t,{A6:()=>l,AH:()=>p,BF:()=>d,Cn:()=>g,Lv:()=>_,M6:()=>u,ST:()=>h,TM:()=>i,b6:()=>C,d1:()=>k,ih:()=>w,ir:()=>v,rq:()=>y,uE:()=>c,uL:()=>S,vq:()=>s,wz:()=>f});const n=new Set(["area","br","col","embed","hr","img","input","link","meta","param"]);function i(e){return"<!DOCTYPE "+e.name+(e.publicId?' PUBLIC "'+e.publicId+'"':"")+(!e.publicId&&e.systemId?" SYSTEM":"")+(e.systemId?' "'+e.systemId+'"':"")+">"}const a=Object.create(null);function o(e,t){const r=a[e]||(a[e]=Object.create(null));let n=r[t];if("boolean"!==typeof n){const i=document.createElement(e)[t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,((e,t)=>t.toUpperCase()))];n=r[t]="undefined"!==typeof i&&"boolean"!==typeof i}return n}function s(e){return e.nodeType===Node.ELEMENT_NODE}function c(e){return s(e)&&!e.ownerSVGElement}function l(e){return"IMG"===e.tagName}function u(e){return"AMP-IMG"===e.tagName}function d(e){return"FORM"===e.tagName}function h(e){return"STYLE"===e.tagName}function f(e){return e.nodeType===Node.DOCUMENT_NODE}let p;var m;function g(e){return e.nodeType===Node.COMMENT_NODE}(m=p||(p={})).isStyleRule=function(e){return"CSSStyleRule"===e.constructor.name},m.isImportRule=function(e){return"CSSImportRule"===e.constructor.name},m.isMediaRule=function(e){return"CSSMediaRule"===e.constructor.name},m.isFontFaceRule=function(e){return"CSSFontFaceRule"===e.constructor.name},m.isPageRule=function(e){return"CSSPageRule"===e.constructor.name},m.isKeyframesRule=function(e){return"CSSKeyframesRule"===e.constructor.name},m.isKeyframeRuleRule=function(e){return"CSSKeyframeRule"===e.constructor.name},m.isNamespaceRule=function(e){return"CSSNamespaceRule"===e.constructor.name},m.isCounterStyleRule=function(e){return"CSSCounterStyleRule"===e.constructor.name},m.isSupportsRule=function(e){return"CSSSupportsRule"===e.constructor.name},m.isFontFeatureValuesRuleRule=function(e){return"CSSFontFeatureValuesRule"===e.constructor.name};const b=/(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\r|\n)*?)((?:<!--)?<!\[endif\]\2>)/gi;function w(e){const t=C(e).matchAll(b);if(t)for(const r of t){const[,e,,t,n]=r;return{open:e,close:n,content:t}}}function v(e){return e.nodeType===Node.TEXT_NODE}function _(e){return"TABLE"===e.tagName}async function y(e,t=5e3){return"undefined"===typeof e.complete||e.complete?getComputedStyle(e):new Promise(((r,n)=>{setTimeout(r,t),e.onload=()=>r(getComputedStyle(e)),e.onerror=e=>{}}))}function C(e){if(s(e))return function(e){var t;const r=(null===(t=Object.getOwnPropertyDescriptor(e,"$$tagName"))||void 0===t?void 0:t.value)||e.tagName.toLowerCase(),i=function(e){const t=e.tagName.toLowerCase();let r="";for(const n of e.attributes){const e=n.name,i=n.value;r+=""!==i||"em"===e||o(t,e)?` ${e}="${i.replaceAll('"',"'")}"`:` ${e}`}return r}(e);return n.has(r.toLowerCase())?`<${r}${i}>`:h(e)?`<${r}${i}>${e.innerHTML}</${r}>`:`<${r}${i}>${S(e)}</${r}>`}(e);if(f(e))return[...e.childNodes].map((e=>C(e))).join("");if(function(e){return e.nodeType===Node.DOCUMENT_TYPE_NODE}(e))return i(e);const t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function S(e){let t="";for(const r of e.childNodes)t+=C(r);return t}function k(e,t){for(const a of e.childNodes)a.remove();let r=t.find((e=>function(e){return"HTML"===e.tagName}(e))),n=t.find((e=>function(e){return"BODY"===e.tagName}(e))),i=e;r||(r=e.createElement("html"),e.appendChild(r),i=r,n||(n=e.createElement("body"),r.appendChild(n),i=n));for(const a of t)i===e&&v(a)?i.appendChild(e.createComment(`%%%{{{${a.data}}}}%%%`)):i.appendChild(a)}},36434:(e,t,r)=>{"use strict";r.d(t,{$$:()=>d,Os:()=>l});var n=r(80599),i=r(39244),a=r(37918);const o=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"],s=new n.H(o),c=new i.X(s);function l(e,t,r){try{e.setAttribute(t,r)}catch{let n=e.tagName.toLowerCase();"html"===n&&(n="div");const i=`<${n} ${t}="${r}"/>`;let a=function(e){let t;switch(null===e||void 0===e?void 0:e.toLowerCase()){case"tr":t=document.createElement("table");break;case"td":t=document.createElement("tr");break;case"head":case"body":t=document.createElement("html");break;case"DocumentType":case"html":{const e=document.implementation.createHTMLDocument();for(const t of[...e.childNodes])t.remove();return e}default:t=document.createElement("div")}return t}(n);if(a instanceof Document)return;a.innerHTML=i;const o=a.querySelector(n);if(!o)throw new Error("targetElement is not defined");const s=o.getAttributeNode(t);s&&e.setAttributeNode(s.cloneNode())}}function u(e,t=!0){let r=e.content;switch(e.type){case a.Z.ROOT:{const r=document.implementation.createHTMLDocument();for(const e of[...r.childNodes])r.removeChild(e);if(t)for(const t of e.children)r.appendChild(u(t));return r}case a.Z.DOCTYPE:return(new DOMParser).parseFromString(`<!DOCTYPE${e.content}>`,"text/html").doctype;case a.Z.COMMENT:return document.createComment(r||"");case a.Z.ELEMENT:if(e.tag){const r=document.createElement(e.tag);if(Object.defineProperty(r,"$$tagName",{enumerable:!1,configurable:!1,value:e.tag}),e.attributes)for(const t of e.attributeNames){const i=e.attributes[t];try{l(r,t,"string"===typeof i?i:"")}catch(n){}}if(t)for(const t of e.children)r.appendChild(u(t));return r}return document.createTextNode("<");case a.Z.HTML:return function(e){if(e){const t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",e),t.firstChild||document.createTextNode("")}return document.createTextNode("")}(r||"");default:throw new Error("unsupported node")}}function d(e){var t;return(t=e,c.parse(t)).roots.map((e=>u(e)))}},19504:(e,t,r)=>{"use strict";r.d(t,{Km:()=>O,Sc:()=>A,Nh:()=>S});var n=r(72510),i=r(36434),a=r(44779),o=r(90717);const s="amp-custom";function c(e,t,r){for(const i of t)if(n.AH.isStyleRule(i)){const t=i.selectorText.split(/\+>~/).flatMap((e=>e.trim().split(" ")));if(1===t.length&&t[0].trim().startsWith(".em-"))for(const a of i.style){if("important"===i.style.getPropertyPriority(a))for(const t of e.querySelectorAll(i.selectorText))if((0,n.uE)(t)){const e=t.style;for(const n of[...e])if(n.startsWith(a)){const i=r(n,e.getPropertyValue(n)),a=t.getAttribute("class");t.setAttribute("class",a?`${i} ${a}`:i),e.removeProperty(n)}}}}else n.AH.isMediaRule(i)&&c(e,i.cssRules,r)}function l(e,t){const r=t.sheet;if(r){const i=new Set;c(e,r.cssRules,((e,a)=>{const o=function(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}(e,a),s=[...r.cssRules],c=`.${o} { ${e}: ${a} }`;return s.find((e=>n.AH.isStyleRule(e)&&e.selectorText===`.${o}`))||i.has(c)||(i.add(c),t.innerHTML=`\n.${o} { ${e}: ${a} };\n${t.innerHTML}`),o})),i.size&&(t.innerHTML=`\n${[...i].join("\n")};\n${t.innerHTML}`)}else;const i=t.innerHTML,a=i.replace(/!important/g,"");i!==a&&(t.innerHTML=a)}const u='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',d="<!doctype html>";async function h(e,t={}){const r=document.createElement("amp-img"),a=await(0,n.rq)(e)||void 0;let s=[];try{let c=e;for(;c&&(0,n.uE)(c);){const e=getComputedStyle(c);"none"===(null===e||void 0===e?void 0:e.display)&&(c.style.display="initial",s.push([c,c.style.display])),c=c.parentElement}const l=null!==a&&void 0!==a&&a.height?`${parseInt(a.height)}`:"",u=null!==a&&void 0!==a&&a.width?`${parseInt(a.width)}`:"",d=(0,o.xm)(e);let h=!1;if(d){let t=d.getAttribute("width");try{let r=u?`${u}px`:"";t||(d.setAttribute("width","720px"),r=getComputedStyle(e).width||""),d.setAttribute("width",!t||parseInt(t)>320?"320px":"720px"),r!==(getComputedStyle(e).width||"")&&(h=!0)}finally{t&&d.setAttribute("width",t||"")}}const f=e.src||e.srcset.split(",")[0];"100%"===e.style.width&&e.style.removeProperty("width"),"100%"===e.style.maxWidth&&e.style.removeProperty("max-width"),t={...(0,o.gu)(e),alt:e.alt,width:u,height:l,src:f,layout:h?"responsive":"fixed",...t};for(const e of Object.keys(t))(0,i.Os)(r,e,t[e])}finally{for(const[e,t]of s)e.style.display=t}return r}function f(e){const t=document.createElement("img"),{layout:r,height:n,...a}=(0,o.gu)(e),s="responsive"===r;for(const o of Object.keys(a))(0,i.Os)(t,o,a[o]);return s&&(t.style.maxWidth=a.width||"0px",t.style.width="100%"),t}var p=r(46496),m=r(16341),g=r(1511);var b=r(9008);const w=new Map;const v=new Map;const _="$GLOBAL_ATTRS",y=new Map;async function C(){if(!y.size){var e;const t=null===(e=(await(0,b.F)()).attrLists.find((e=>e.name===_)))||void 0===e?void 0:e.attrs;if(t)for(const e of t)y.set(e.name,e)}return y}function S(e){var t;return(0,n.vq)(e)&&(e.tagName.startsWith("AMP")||"FORM"===e.tagName||"TEMPLATE"===e.tagName&&"amp-mustache"===(null===(t=e.getAttribute("type"))||void 0===t?void 0:t.toLowerCase()))}function k(e,t,r){var i,a,o;if(t)if((0,n.vq)(e))switch(e.tagName.toLowerCase()){case"body":case r("script"):case"style":case"meta":case"title":return;case"head":case"html":c();break;default:s()||c()}else(0,n.wz)(e)?c():(0,n.ir)(e)&&(null!==(i=e.textContent)&&void 0!==i&&i.trim()||null!==(a=e.nextSibling)&&void 0!==a&&null!==(o=a.textContent)&&void 0!==o&&o.trim()&&(0,n.ir)(e.nextSibling))&&s();function s(){const r=t.compareDocumentPosition(e);if(!(8&r)){if(2&r)return t.insertBefore(e,t.firstChild),!0;if(4&r)return t.appendChild(e),!0}return!1}function c(){const n=[...e.childNodes];for(let e=n.length-1;e>=0;e--)k(n[e],t,r)}}async function E(e,t){const r=new Set,c=e=>t.replaceSelectors(e.toLowerCase());if(t.replaceImages&&await async function(e){const t=e.querySelectorAll("img");for(const n of t)n.replaceWith(await h(n));const r=e.querySelectorAll("picture");for(const n of r){const e=n.querySelector("img");if(e){const t=await h(e);n.replaceWith(t)}else n.remove()}}(e),t.injectExtensions){const S=t.replaceSelectors(g.Vq);if(!e.querySelector(S)){const E=t.createElementFn("script");E.setAttribute("src",g.zq),E.setAttribute("async","");(0,o.xy)(e).appendChild(E)}}t.injectRequiredTags&&((0,m.y)(e,t.createElementFn,c),function(e){const t=e.doctype;if(t){if((0,n.TM)(t)===d)return;const r=(new DOMParser).parseFromString(d,"text/html").doctype;e.replaceChild(r,t)}else{const t=(new DOMParser).parseFromString(d,"text/html").doctype;e.insertBefore(t,e.firstChild)}}(e),(0,a.R)(e),(0,p.C)(e)),t.replaceStylesAndLinks&&function(e){const t=(0,o.xy)(e),r=e.querySelectorAll('link[rel="stylesheet"]'),n=[...e.querySelectorAll("style")].filter((e=>!e.hasAttribute("amp4email-boilerplate")));if(1===n.length){const r=n[0];if(r.parentElement===t&&""===r.getAttribute(s))return void l(e,r)}let i=[];for(const a of n)i.push(a.innerHTML),a.remove();if(i.length){const r=e.createElement("style");r.innerHTML=`\n${i.join("")}\n`,r.setAttribute(s,""),t.append(r),l(e,r)}for(const a of r)a.remove()}(e);const u=await(0,b.F)(),f=await async function(){if(!w.size){const e=await(0,b.F)(),t=e.tags;for(let r=0;r<t.length;r++){const n=t[r],{selector:i,attrs:a,attrLists:o}=n,s=(null===o||void 0===o?void 0:o.flatMap((t=>e.attrLists.filter((({name:e})=>e===t)).flatMap((e=>e.attrs)))))||[];w.set(i,{...n,priority:r,attrs:new Map([...a,...s].map((e=>[e.name,e])))})}}return w}(),_=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),y=new Map;for(let[x,A]of f)if(!A.deprecation){x=c(x);let O=[...e.querySelectorAll(x)].filter((e=>!y.has(e)));A.unique&&O.length&&(O=[O[0]]),t.injectRequiredTags&&A.required&&!O.length&&(O=[...O,t.createElementFn(A.name)]);for(const T of O){if(t.injectRequiredAttributes&&T.getAttribute("on")&&!T.getAttribute("tabindex")&&T.setAttribute("tabindex","0"),t.removeUnsupportedStyles){let I=!1;for(const R of[...T.classList])R.startsWith("i-amphtml")&&(I=!0,T.classList.remove(R));I&&!T.classList.length&&T.removeAttribute("class")}const D=y.get(T);D&&D.priority>A.priority||y.set(T,A)}}for(let[N,L]of y){if(t.injectExtensions&&L.requiresExtension)for(const B of L.requiresExtension)r.add(B);const P=L.requiredParent?"$ROOT"===L.requiredParent?e:e.querySelector(L.requiredParent):null;!P||N.parentNode&&!t.moveInvalidTagPosition?N.parentNode||e.body.appendChild(N):P!==N.parentNode&&("HEAD"===L.name||(0,n.vq)(P)&&"HEAD"===P.tagName?P.insertBefore(N,P.firstChild):P.appendChild(N)),t.removeUnsupportedTags&&_.delete(N);const z=await C();if(t.removeUnsupportedAttributes||t.injectRequiredAttributes){const M=L.attrs,j=t.injectRequiredAttributes?new Set([...M].map((([e,t])=>t)).filter((e=>e.required&&e.value))):void 0,F=N.getAttributeNames();for(const U of F){const W=M.get(U)||z.get(U);if(W){if("id"===U||"class"===U||"style"===U){null===j||void 0===j||j.delete(W);continue}if(t.removeUnsupportedAttributes){const H=N.getAttribute(U);if(W.value&&W.value.indexOf(H)<0){N.removeAttribute(U);continue}if(W.valueRegex){if(!new RegExp(W.valueRegex).test(H)){N.removeAttribute(U);continue}}if(W.disallowedValueRegex){if(new RegExp(W.disallowedValueRegex).test(H)){N.removeAttribute(U);continue}}const $=W.valueUrl;if($)if(""===H){if(!$.allowEmpty){N.removeAttribute(U);continue}}else if(H.indexOf("\x3c!--")>0&&H.indexOf("--\x3e")>0);else if(!$.allowRelative){if(H.startsWith("#")||H.startsWith("/")){N.removeAttribute(U);continue}{const Z=$.protocol.length?$.protocol:["https"];let q=H.substring(0,H.indexOf(":"));if(q){if(Z.indexOf(q)<0){let V=Z[0]+H.substring(H.indexOf(":"));if(!URL.canParse(V)){N.removeAttribute(U);continue}(0,i.Os)(N,U,V)}else if(!URL.canParse(H)){N.removeAttribute(U);continue}}else{let G=Z[0]+H;if(!URL.canParse(G)){N.removeAttribute(U);continue}(0,i.Os)(N,U,G)}}}}null===j||void 0===j||j.delete(W)}else{if("id"===U||"class"===U||"style"===U)continue;t.removeUnsupportedAttributes&&N.removeAttribute(U)}}if(j)for(const K of j)(0,i.Os)(N,K.name,K.value[0])}}t.moveInvalidTagPosition&&k(e,e.body,c);for(const Y of _)Y.remove();if(t.removeUnsupportedStyles){const X=e.querySelectorAll("*"),J=await async function(){if(!v.size){const e=await(0,b.F)();for(const t of e.declarations)v.set(t.name,t)}return v}();function Q(e){const t=e.cssText.replaceAll(/\".*\"/g,"").replaceAll(/\'.*\'/g,"").replaceAll(/\/\*.*\*\/|(-moz-|-ms-|-o-|-webkit-)+\w+(?=:)/g,"").match(/[a-z-]+(?=:[^before|after|hover])/gi)||[];for(const r of t){if(!r)continue;const t=e.getPropertyValue(r);"important"===e.getPropertyPriority(r)&&e.setProperty(r,t);const n=J.get(r);if(n){if(n.value)n.value.indexOf(t)<0&&e.removeProperty(r);else if(n.valueRegex){new RegExp(n.valueRegex).test(t)||e.removeProperty(r)}}else e.removeProperty(r)}}function ee(e){return"CSSStyleRule"===e.constructor.name}function te(e){return"CSSMediaRule"===e.constructor.name}function re(e){const t=e.cssRules;for(let r=t.length-1;r>=0;r--){const n=t[r];ee(n)?n.selectorText.indexOf("[")>=0||n.selectorText.indexOf(":")>=0?e.deleteRule(r):(Q(n.style),n.style.cssText||e.deleteRule(r)):te(n)?(re(n),n.cssRules.length||e.deleteRule(r)):e.deleteRule(r)}}for(const ie of X)if((0,n.uE)(ie)){const ae=ie.getAttribute("style");ae&&(Q(ie.style),ie.style.length?ie.style.cssText!==ae&&ie.setAttribute("style",ie.style.cssText):ie.removeAttribute("style"))}const ne=e.querySelector("style[amp-custom]");if(ne){const oe=ne.sheet;oe&&(re(oe),ne.innerHTML=[...oe.cssRules].map((e=>e.cssText)).join("\n"))}}await async function(e,t,r){for(const{name:a,versions:s}of t){const t=r.replaceSelectors("amp-mustache"===a?`script[async][custom-template='${a}']`:`script[async][custom-element='${a}']`);if(!e.querySelector(t)){const t=(0,o.xy)(e),c=r.createElementFn("script"),l=(n=a,i=s.findLast((e=>"latest"!==e))||"v0",`${g.gP}/${n.toLowerCase()}-${i}.js`);c.setAttribute("async",""),c.setAttribute("amp-mustache"===a?"custom-template":"custom-element",a),c.setAttribute("src",l),t.appendChild(c),t.appendChild(e.createTextNode("\n"))}}var n,i}(e,u.extensions.filter((({name:e})=>r.has(e))),t)}function x(e,t){return Object.keys(t).reduce(((e,r)=>e.replaceAll(r,t[r])),e)}function A(e,t={}){const{correct:r=!0,injectExtensions:n=!0,mappedTags:i={}}=t;return E(e,{replaceImages:r,replaceStylesAndLinks:r,injectRequiredTags:r,injectExtensions:n,formsAsAmpForms:n,injectRequiredAttributes:r,moveInvalidTagPosition:r,removeUnsupportedTags:r,removeUnsupportedAttributes:r,removeUnsupportedStyles:r,createElementFn:t=>e.createElement(i[t.toLowerCase()]||t),replaceSelectors:e=>x(e.toLowerCase(),i)})}function O(e,t={}){const{correct:r=!0,removeExtensions:i=!0,mappedTags:c={}}=t,l=t=>e.createElement(c[t.toLowerCase()]||t),h=e=>x(e,c);if(r){!function(e){const t=e.querySelectorAll("amp-img");for(const r of t)r.replaceWith(f(r))}(e),function(e){const t=e.doctype;if(t&&(0,n.TM)(t).toLowerCase()===d){const r=(new DOMParser).parseFromString(u,"text/html").doctype;e.replaceChild(r,t)}}(e),function(e){const t=e.querySelector(`style[${s}]`);t&&t.removeAttribute(s)}(e),(0,a.C)(e);const t=(0,o.ep)(e);t.removeAttribute("\u26a14email"),t.removeAttribute("data-css-strict")}i&&function(e,t){const r=e.querySelectorAll("*"),n=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const a of n){var i;null!==(i=a.getAttribute("src"))&&void 0!==i&&i.startsWith(g.gP)&&a.remove()}for(const a of r)S(a)&&"FORM"!==a.tagName&&a.remove()}(e,{formsAsAmpForms:t.removeExtensions,createElementFn:l,replaceSelectors:h})}},90121:(e,t,r)=>{"use strict";r.d(t,{D3:()=>d,RS:()=>u});var n=r(2604),i=r(98173),a=r(88296),o=r(81197),s=r(80148),c=r(74568);const l=(0,a.Q)();function u(e,t,r){e instanceof c.m||(e=(0,s.My)(e));e.getOrCreateInstance(l,(()=>new o.v)).fire({id:t,payload:r})}const d=(e,t)=>{const r=function(e){return(0,s.My)(e).getOrCreateInstance(l,(()=>new o.v)).addEventListener}((0,n.Pj)());(0,i.useEffect)((()=>{const n=r((({id:r,payload:n})=>{r===e&&t(n)}));return()=>n.dispose()}),[r,e,t])}},80148:(e,t,r)=>{"use strict";r.d(t,{A$:()=>f,Ff:()=>l,IP:()=>c,My:()=>s.My,Nj:()=>d,lg:()=>u,rl:()=>h});var n=r(98173),i=r(2604),a=r(88296),o=r(74568),s=r(73942);const c=s.if,l=(e,t)=>{if(!e){const e=o.Q.createChild(),t=(0,a.Q)();return o.Q.inject(t,e),t}return e};function u(){const e=(0,i.Pj)(),t=(0,s.My)(e);return function(e,r){t.inject(e,r)}}function d(e){const t=(0,i.Pj)();return(0,s.My)(t).getInstance(e)}function h(e){const[t,r]=(0,n.useState)(),a=(0,i.Pj)(),o=(0,n.useRef)(Promise.resolve()),c=(0,s.My)(a);return(0,n.useEffect)((()=>{const t=o.current=o.current.then((()=>c.getInstanceAsync(e))).then((e=>{t===o.current&&r(e)}),(e=>{}))}),[r,e,a,c]),t}function f(e){const t=(0,i.Pj)();return(0,s.My)(t).getServices(e)}},90614:(e,t,r)=>{"use strict";r.d(t,{Zc:()=>l,_q:()=>u,cZ:()=>s,dB:()=>c,ml:()=>d});var n=r(2604),i=r(88296),a=r(80148),o=r(65470);function s(e){return(0,i.Q)(e)}function c(e,t){return(0,a.My)(e).getOrCreateInstance(t,(()=>new o.lt))}function l(e,t){return(0,a.My)(e).getOrCreateInstance(t,(()=>new o.lt)).event}function u(e){return d(e).event}function d(e){return c((0,n.Pj)(),e)}},30315:(e,t,r)=>{"use strict";r.d(t,{qy:()=>x,An:()=>S,T5:()=>z,pH:()=>g,Ay:()=>w,$l:()=>b,SR:()=>N,Mp:()=>R,gZ:()=>L,PJ:()=>O,bc:()=>E});var n=r(94049),i=r.n(n),a=r(65214),o=r(21679);const s=new(r(62175).A)(o.A,a.A)._freeze();var c=r(81509),l=r(72510),u=r(36434),d=r(39218);const h=Symbol("Error");function f(e){return Promise.all(e.map((e=>e instanceof Promise?e.catch((e=>h)):e))).then((e=>e.filter((e=>e!==h))))}const p=/url(?:\((['|"]?))(.*?\.(png|jpg|gif|jpeg|tiff){1})(?:['|"]?\))/gi,m="data:message/rfc822 eml,";async function g(e,t,r,n,i){const a={Subject:e,"X-Unsent":1,"Content-Type":"function"===typeof i?"text/html;charset=utf-8":'multipart/alternative; boundary="boundary-string"'};return`${Object.keys(a).reduce(((e,t)=>`${e}${t}:${a[t]}\n`),m)}\n${"function"===typeof i?await T(t,r,n,i):(await f(Object.keys(i).map((async e=>`\n--boundary-string\nContent-Type: ${e}\n\n${await T(t,r,n,i[e])}\n\n\n`)))).join("")+"----boundary_string--"}`}function b(e){const t=e.replace("\\","/").split("/");return t[t.length-1].replace(/[\\\/:*?"<>|]/g,"_")}function w(e){return b(e).split(".")}function v(e){return N(e).then((e=>L(e)))}function _(e,t){const r=document.createElement("iframe");r.style.position="absolute",r.style.left="-10000px",document.body.appendChild(r);const n=r.contentWindow.document;try{if(t){const[e,n]=t;void 0!==e&&r.setAttribute("width",String(e)),void 0!==n&&r.setAttribute("height",String(n))}const i=(0,u.$$)(e);(0,l.d1)(n,i)}catch(i){}return[r,()=>document.body.removeChild(r)]}function y(e){return e.replace("<script","<___script").replace("<\/script>","</___script>")}const C=new c.uI((e=>{e.escape("<script","<\/script>",(e=>y(e))).unescape("<___script","</___script>",(e=>e.replace("<___script","<script").replace("</___script>","<\/script>"))),e.escape("<script","/>",(e=>y(e))).unescape("<___script","/>",(e=>e.replace("<___script","<script"))),(0,c.Hk)(e)}));async function S(e,t,r){e=C.getEscapedText(e);const[n,i]=_(e,r);try{const r=n.contentDocument;try{await t(r,e)}catch(a){}const i=r.querySelectorAll("tbody");for(const e of i)e.replaceWith(...e.childNodes);r.querySelectorAll("em-replace").forEach((e=>{if(e.hasAttribute("text")&&(e.insertAdjacentHTML("beforebegin",e.getAttribute("text")),e.parentNode.removeChild(e)),e.hasAttribute("src")){const t=e.querySelector("img");t.setAttribute("src",e.getAttribute("src")),e.replaceWith(t)}})),e=(0,l.b6)(r)}catch(a){}finally{i()}return C.getUnescapedText(e)}function k(e,t,r){try{if("function"===typeof r){const n=[];return String.prototype.replace.call(e,t,(function(){return n.push(r.apply(void 0,arguments)),""})),f(n).then((function(r){return String.prototype.replace.call(e,t,(function(){return r.shift()}))}))}return Promise.resolve(String.prototype.replace.call(e,t,r))}catch(n){return Promise.reject(n)}}async function E(e,t,r,n){const i=new Map;return e=await S(e,(async(e,n)=>{await async function(e,t,r=new Map){const n=e=>{let n=r.get(e);return n||(n=t(e),r.set(e,n)),n};function i(e){return k(e,p,((e,t="",r)=>n(r).then((e=>`url(${t}${e}${t})`))))}async function a(e){const t=e.getAttribute("style");if(t){const r=await i(t);t!==r&&e.setAttribute("style",r)}}const o=document.createNodeIterator(e,NodeFilter.SHOW_ALL),s=[];for(;;){const e=o.nextNode();if(null===e)break;if((0,l.vq)(e)){s.push(a(e));const t=e.getAttribute("background");if(t&&s.push(n(t).then((r=>{e.setAttribute("background",r||t)}))),(0,l.A6)(e)||(0,l.M6)(e)){const t=e.getAttribute("src");t&&s.push(n(t).then((r=>e.src=r||t)))}if((0,l.ST)(e)){const t=e.sheet.cssRules,r=[];for(const e of t){const{cssText:t}=e;t&&r.push(i(t))}s.push(f(r).then((r=>{r.some(((e,r)=>t[r].cssText!==e))&&(e.innerHTML=r.join("\n"))})))}}else if((0,l.Cn)(e)){const t=(0,l.ih)(e),r=null===t||void 0===t?void 0:t.content;r&&s.push(k(r,/<v:fill.*>/gi,(async e=>{const t=await k(e,/src="([^"]*)"/gi,(async(e,t)=>`src="${await n(t)||t}"`));return k(t,/src='([^']*)'/gi,(async(e,t)=>`src='${await n(t)||t}'`))})).then((n=>{r!==n&&e.replaceWith((0,u.$$)(`${t.open}${n}${t.close}`)[0])})))}}return f(s)}(e,t,i),r&&await r(e,n)}),n),e}const x=800;function A(e,t){let r=e.getAttribute("href");if(r&&e.protocol.startsWith("http")){const n=function(e){const t=new Map;let r=0;for(;r>=0;)if(r=e.indexOf("\x3c!--",r),r>=0){const n=e.indexOf("--\x3e",r);t.set(e.substring(r,n+3),(0,d.l)()),r=n}return t}(r);n.forEach(((e,t)=>{r=r.replaceAll(t,e)}));const i=r.indexOf("#");let a=i>=0?r.substring(0,i):r;const o=i>=0?r.substring(i+1):"",s=r.indexOf("?"),c=s>=0?a.substring(s+1):"";if(a=s>=0?a.substring(0,s):a,e.host!==document.location.host){const i=new Map(c.split("&").filter((e=>e.indexOf("=")>=0)).map((e=>e.split("="))));let s=c;if(t){const e=Object.keys(t);for(const r of e)t[r]&&!i.has(r)&&(s=s+(s?"&":"")+`${r}=${t[r]}`)}s!==c&&(r=a+(s?`?${s}`:"")+(o?`#${o}`:""),n.forEach(((e,t)=>{r=r.replaceAll(e,t)})),e.setAttribute("href",r))}}}async function O(e,t,r,n){let[i,a]=t||[x];return"number"===typeof i&&(i+="px"),"number"===typeof a&&(a+="px"),e=await S(e,(t=>{const i=t.querySelectorAll("a");for(const e of i)A(e,r);if(n)return n(t,e)}),[i,a])}async function T(e,t,r,n){let[i,a]=t||[x];return"number"===typeof i&&(i+="px"),"number"===typeof a&&(a+="px"),e=(e=await S(e,(async t=>{const i=t.querySelectorAll("*");for(const e of i)if((0,l.A6)(e)){const t=await(0,l.rq)(e);if(t){const r=parseInt(t.height),n=parseInt(t.width);isNaN(r)||e.setAttribute("height",String(r)),isNaN(n)||e.getAttribute("width")||e.setAttribute("width",String(n))}}else if((0,l.Lv)(e)){const t=parseInt(getComputedStyle(e).width);isNaN(t)||"BODY"===e.parentElement.tagName||e.setAttribute("width",String(t))}else"TD"===e.tagName||"A"===e.tagName&&A(e,r);if(n)return n(t,e)}),[i,a])).replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,"")}const D="images",I=40;async function R(e,t,r,n=v,a){let[o,c]=t||[x];"number"===typeof o&&(o+="px"),"number"===typeof c&&(c+="px");const l=new(i()),u=l.folder(D),d=new Set,h=await E(e,(async e=>{const t=await n(e);let[r,i]=w(e);if(r.length>I&&(r=function(){const e=new Date;return`${e.toISOString().slice(2,10).replace(/-/g,"").concat("_",e.toTimeString().slice(0,5).replace(/:/g,""))}_${Array.from({length:8},(()=>"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random())))).join("")}`}()),!i)try{i=s.getExtension(t.type)}catch(c){}let a=`${r}.${i}`,o=1;for(;d.has(a);)a=`${r}(${++o}).${i}`;return d.add(a),u.file(a,t),`${D}/${a}`}),((e,t)=>{const n=e.querySelectorAll("a");for(const i of n)A(i,r);if(a)return a(e,t)}),[o,c]);return l.file("index.html",new Blob([h],{type:"text/html;charset=utf-8"})),l.generateAsync({type:"blob"})}function N(e){const t=new Image;return t.crossOrigin="anonymous",new Promise(((r,n)=>{t.onload=()=>r(t),t.onerror=n,t.src=e}))}function L(e,t="image/png",r){const n=document.createElement("canvas");n.width=e.width,n.height=e.height;return n.getContext("2d").drawImage(e,0,0),new Promise(((e,i)=>n.toBlob((t=>t?e(t):i("blob is null")),t,r)))}function P(e){var t;const r=null===(t=e.ownerDocument)||void 0===t?void 0:t.body;if(r&&function(e,t){do{if(e===t)return!0;e=e.parentNode}while(e);return!1}(e,r)){if((0,l.vq)(e)){if("IMG"===e.tagName)return"";if("SPAN"===e.tagName&&e.classList.contains("preheader"))return""}if("#text"===e.nodeName)return e.textContent}return e.childNodes?[...e.childNodes].map(P).join(""):""}function z(e){const[t,r]=_(e);try{return P(t.contentDocument.body).replace(/\u2800/g,"").replace(/(\r\n|\r|\n){2,}/g,"\n").trim()}finally{r()}}},40277:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>H,Cl:()=>f,DI:()=>R,Dx:()=>D,EU:()=>N,HT:()=>Z,Hy:()=>q,Id:()=>h,Np:()=>T,Qi:()=>j,Tr:()=>V,X7:()=>U,XZ:()=>B,Yq:()=>p,Z1:()=>W,_9:()=>M,_q:()=>$,au:()=>I,d_:()=>L,el:()=>_,ez:()=>y,fq:()=>m,gq:()=>O,i0:()=>P,iV:()=>z,jG:()=>l.j,ln:()=>G,p6:()=>S,sh:()=>F,wB:()=>k});var n=r(83612),i=r(98173),a=r(32947),o=r(52310),s=r.n(o),c=r(52919),l=r(37357),u=(r(81197),r(39218)),d=r(98173);const h=e=>{Object.keys(a.A9).forEach((t=>{"onboarding_success"!==e.get(a.A9[t])&&e.remove(a.A9[t])}))};function f(e){const t=(0,n.A)(e);return isNaN(t)?new Date(e):t}const p=(e,t,r=!1)=>{Date;const n=new Date,i=e.getDate()===n.getDate()&&e.getMonth()===n.getMonth()&&e.getFullYear()===n.getFullYear();if(r&&i){const r=Math.floor((n-e)/1e3),i=Math.floor(r/60),a=Math.floor(i/60);if(r<60)return t("Just now");if(a>0){const e=i%60;return`${a} ${t("hour","hours",a)} ${e} ${t("minute","minutes",e)}`}return`${i} ${t("minute","minutes",i)}`}{const t=new Intl.DateTimeFormat(navigator.language,{dateStyle:"short"}),r=new Intl.DateTimeFormat(navigator.language,{timeStyle:"short"});return t.format(e)+" "+r.format(e)}},m=e=>{const t=e.match(/(\(copy\))( \d+)?$/),r=null===t||void 0===t?void 0:t[1],n=null===t||void 0===t?void 0:t[2];return r?n?`${e.slice(0,-n.length)} ${+n.slice(1)+1}`:`${e} 2`:`${e} (copy)`};function g(e,t,r){const n=new Map,i=new RegExp(`(${t})(.*?)(${r})`,"gis");return e=e.replaceAll(i,((e,t,r,i)=>{const a=(0,u.l)();return n.set(a,r),t+a+i})),{escapes:n,html:e}}function b(e,t){let r=[];for(const[n,i]of t){const{escapes:t,html:a}=g(e,n,i);e=a,r.push([n,i,t])}return{escapes:r,html:e}}function w(e,t,r,n){const i=new RegExp(`(${t})(.*?)(${r})`,"gis");return e.replaceAll(i,((e,t,r,i)=>{const a=n.get(r);return"string"===typeof a?t+a+i:e}))}const v=/<title>(.*)<\/title>/gm,_=(e,t)=>{let{escapes:r,html:n}=b(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return n=n.replaceAll(v,((e,r)=>r===t?`<title>${m(r)}</title>`:e)),function(e,t){for(const[r,n,i]of t)e=w(e,r,n,i);return e}(n,r.reverse())};function y(e){let{html:t}=b(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(v)].map((e=>e[1])).find((e=>!!e))}const C="bottomRight",S=(e,t,r=C)=>{var n,i,a,o;t.error({innerException:e.error instanceof Error?e.error:void 0,message:d.createElement("div",{dangerouslySetInnerHTML:{__html:(null===(n=e.error)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.code)||(null===(a=e.error)||void 0===a?void 0:a.status)||e.error}}),description:d.createElement("div",{dangerouslySetInnerHTML:{__html:(null===(o=e.error.data)||void 0===o?void 0:o.message)||e.error.error}}),placement:r})},k=(e,t,r=C)=>{t.success({message:e,placement:r})},E="ascend",x="descend",A="desc",O=e=>{switch(e){case E:return"asc";case x:return A;default:return""}},T=e=>{switch(e){case"asc":return E;case A:return x;default:return""}},D=e=>{const t=document.createElement("div");return t.className=e||"resizer",t},I=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,R=e=>new Promise(((t,r)=>{let n=new Image;n.src=e,n.addEventListener("load",(()=>{t("success")})),n.addEventListener("error",(()=>{r("error")})),n=null})),N=(e,t)=>{for(const r of t)"object"===typeof e.properties&&(e=e.properties[r]);return e},L=e=>e instanceof Array?e.map((e=>({label:e,value:e}))):Object.keys(e).map((t=>({label:e[t],value:t}))),P=(e,t,r=!0)=>{const n=Object.keys(t);for(const i of n){const n=t[i];void 0!==n&&null!==n&&(e[i]=r&&"object"===typeof n?P(e[i]||{},n,!0):n)}return e},z=e=>new Promise(((t,r)=>{s().load({google:{families:[e]},classes:!1,active:t,inactive:r})})),B=(e,t)=>{t&&e(t)},M=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,r,n)=>{document.querySelectorAll(".block-search__preview").forEach((e=>e.remove()));const i=document.getElementById("iframe-scroll-top"),o=document.getElementById("iframe-scroll-bottom"),s=document.getElementById("email_iframe"),c=document.body.getBoundingClientRect().height,l=s.getClientRects()[0];l.top<0&&(i.style.display="block"),l.top+l.height>c&&(o.style.display="block");const u={operation:a.Ru.SANDBOX_BLOCK_INSERT,settings:{blockHTML:r||null,targetBlock:null,project:"emailmaker",type:n}};t.dataTransfer.setData("Text",JSON.stringify(u)),e(u)}),[e])},j=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,r,n)=>{const i=document.getElementById("iframe-scroll-top"),o=document.getElementById("iframe-scroll-bottom"),s=document.getElementById("email_iframe"),c=document.body.getBoundingClientRect().height,l=s.getClientRects()[0];l.top<0&&(i.style.display="block"),l.top+l.height>c&&(o.style.display="block");const u={operation:a.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:r.html||null,targetBlock:null}};n(r)&&t.dataTransfer.setData("Text",JSON.stringify(u)),e(u)}),[e])},F=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,r)=>{e({operation:a.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:r}})}),[e])},U=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,r)=>{e({operation:a.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:r}})}),[e])},W=(e,t)=>{t.success({maskClosable:!0,centered:!0,title:e("Coming soon"),content:e("The feature is under development."),okText:e("Ok. I'll be waiting"),onOk:()=>{}})},H=()=>{const e=(0,c.XW)();return(t,r)=>{e({operation:a.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:r})}},$=(e,t="")=>{var r,n;const i=[];return null===(r=e._embedded)||void 0===r||null===(n=r["wp:term"])||void 0===n||n.filter((e=>{var r;return!!e.length&&(!t||(null===(r=e[0])||void 0===r?void 0:r.taxonomy)===t)})).forEach((e=>{const t=e[0].taxonomy;i[t]||(i[t]=[]),i[t]=e.map((e=>({id:e.id,name:e.name,children:e.children}))),i[i.length]=i[t]})),""!==t&&i.length?i[t]:i},Z=(e,t="")=>{var r,n,i,a,o;return(null===(r=e._embedded)||void 0===r||null===(n=r["wp:term"])||void 0===n||null===(i=n.find((e=>{var r;return!!e.length&&(!t||(null===(r=e[0])||void 0===r?void 0:r.taxonomy)===t)})))||void 0===i||null===(a=i.find((e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("project_")})))||void 0===a||null===(o=a.children)||void 0===o?void 0:o.map((e=>({id:e.id,name:e.name,count:e.count}))))||null},q=(e,t)=>{const r=e.target,n=t.getBoundingClientRect().height,i=r.getBoundingClientRect().height-n,a=e.clientY-t.getBoundingClientRect().top-30,o=-i*(Math.min(Math.max(a,0),n-60)/(n-60));r.style.transform=`translateY(${o}px)`},V=({target:e})=>{e.style.transform="translateY(0)"};function G(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}},18444:(e,t,r)=>{"use strict";r.d(t,{B:()=>l,l:()=>c});var n=r(3792),i=r(37357),a=r(29495);function o(e){return t=>{const r=t.queryFn||((e,r,n,i)=>{if(!t.query)throw new Error("query not found EndpointDefinition");return i(t.query(e))});r&&(t.query=void 0,t.queryFn=async(t,i,a,o)=>{try{let s;const c=n.di.getServices(i,e);for(let e=c.length-1;e>=0;e--){const r=c[e];if(s=s?await s((async(...e)=>await r.execute(e))):await r.execute(t),"function"!==typeof s)return{data:s,error:null}}return s=s?await s((async(e,t=i,n=a,s=o)=>{const c=await r(e,t,n,s);if(c.error)throw c.error;return c.data})):await r(t,i,a,o),{data:s,error:null}}catch(s){return{error:s}}})}}const s=new Set;function c(e){return(t,r)=>{const c=Object.create(null),l=Object.keys(r),u=new i.j;for(const i of l){const a=`api_listeners_flag_${t.reducerPath}/${i.toString()}`,l=n.di.createIdentifier(`api_listeners_${t.reducerPath}/${i.toString()}`);s.has(a)||(c[i]=o(l),s.add(a)),u.addDisposable(n.di.addService(e,l,{execute:r[i]}))}return Object.keys(c).length&&t.enhanceEndpoints({endpoints:c}),(0,a.PL)(e).addDisposable(u),u}}function l(e,t){for(const n of Object.keys(t))try{t[n](e)}catch(r){}}},86095:(e,t,r)=>{"use strict";r.d(t,{kx:()=>d,$Z:()=>g,VA:()=>p,fn:()=>b,aD:()=>m,TW:()=>h});var n=r(97993),i=r(98173),a=r(99474),o=r(28618),s=r(19724),c=r(76220);function l(e,t,r,n){return e.createModel(t,r,n)}function u(e,t,r){const n=o.QE.get(c.L),i=n.getLanguageIdByMimeType(t)||t;return function(e,t,r,n,i){if(r=r||"",!n){const n=r.indexOf("\n");let a=r;return-1!==n&&(a=r.substring(0,n)),l(e,r,t.createByFilepathOrFirstLine(i||null,a),i)}return l(e,r,t.createById(n),i)}(o.QE.get(s.S),n,e,i,r)}const d=(0,i.createContext)(null);function h(e){const t=(0,n.y)(),[r,a]=(0,i.useState)({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)});return(0,i.useEffect)((()=>{const r=e.onDidChangeContent((()=>{setTimeout((()=>a({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)})))}));return()=>{r.dispose()}}),[e,t]),r}function f(e){var t;const r=(null===e||void 0===e||null===(t=e.actual)||void 0===t?void 0:t._data)||new a.Ov;return r instanceof a.Ov?r:a.Ov.deserialize(r)}function p(e){const t=(0,n.y)();return{undo:()=>t.undo(e.uri),redo:()=>t.redo(e.uri),clear:()=>t.removeElements(e.uri),getPast:()=>{var r,n;return(null===(r=t._editStacks.get(e.uri.toString()))||void 0===r||null===(n=r._past)||void 0===n?void 0:n.map(f))||[]},getFuture:()=>{var r,n;return(null===(r=t._editStacks.get(e.uri.toString()))||void 0===r||null===(n=r._future)||void 0===n?void 0:n.map(f))||[]},canUndo:()=>t.canUndo(e.uri),canRedo:()=>t.canRedo(e.uri),createSnapshot:()=>t.createSnapshot(e.uri),restoreSnapshot:e=>t.restoreSnapshot(e)}}function m(e){return(0,i.useMemo)((()=>p(e)),[e])}function g(e=""){const t=u(e,"text");return t.setEOL(0),t}function b(){return(0,i.useContext)(d)}},98485:(e,t,r)=>{"use strict";function n(e,t){if(e===t)return!0;if("object"===typeof e&&e&&"object"===typeof t&&t){const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(const a of r)if(!n(e[a],t[a]))return!1;return!0}return!1}function i(e,t){if(!e)return t;const r={};for(const i of Object.keys(t))n(t[i],e[i])||(r[i]=t[i]);return r}r.d(t,{g:()=>i})},29495:(e,t,r)=>{"use strict";r.d(t,{Qq:()=>g,PL:()=>w,KA:()=>b,wz:()=>v});var n=r(3792),i=r(88296),a=r(76550),o=r(40277),s=r(65470);class c extends s.IO{async execute([e],t){for(const r of t){const t=await r(e);t&&(void 0===t.id&&(t.id=e.value.id),e.value=t)}return e.value}}var l=r(98485);class u extends s.lt{}var d=r(95669);class h extends o.jG{constructor(...e){super(...e),this._items=new Map,this._onChangeEmitter=new s.HN,this.onChange=this._onChangeEmitter.event}async _getOrCreate(e,t){const r=this._items;let n;if(r.has(e))try{n=await r.get(e)}catch{t&&(n=await t())}else t&&(n=await t(),n&&this._onChangeEmitter.fire());return n}async _addOrUpdate(e,t){let r;const n=this._items;if(n.has(e))try{r=await n.get(e)}catch{}const i=await t(r);return(0,d.b)(r,i)||this._onChangeEmitter.fire(),i}entries(){return Promise.all([...this._items.entries()].map((([e,t])=>t.then((t=>[e,t]))))).then((e=>e.filter((([e,t])=>!!t))))}values(){return Promise.all([...this._items.values()].map((e=>e)).filter((e=>!!e)))}getOrCreate(e,t){const r=this._getOrCreate(e,(()=>t(e)));return this._items.set(e,r),r}addOrUpdate(e,t){const r=this._addOrUpdate(e,t);return this._items.set(e,r),r}add(e,t){const r=Promise.resolve(t);return this._items.set(e,r),r}remove(e){if(this._items.has(e)){const t=this._items.get(e);return this._items.delete(e),this._onChangeEmitter.fire(),t}return Promise.resolve(void 0)}async setAll(e){try{this.suspendChange();const t=[],r=new Set(Array.from(e).map((([e,t])=>e))),n=(await this.entries()).filter((([e,t])=>!r.has(e)));for(const[i,a]of e)t.push(this.addOrUpdate(i,(()=>a))),r.add(i);for(const[e]of n)t.push(this.remove(e));return await Promise.all(t),n}finally{this.resumeChange()}}clear(){this._items.clear(),this._onChangeEmitter.fire()}suspendChange(){this._onChangeEmitter.suspend()}resumeChange(){this._onChangeEmitter.resume()}}var f=r(39218);class p extends o.jG{constructor(...e){super(...e),this._cache=new h,this._readEmitter=new s.lt,this._saveEmitter=this.addDisposable(new c),this._removeEmitter=this.addDisposable(new u),this._foreignCache=Object.create(null),this.handlerRead=this._readEmitter.event,this.onSave=this._saveEmitter.event,this.onRemove=this._removeEmitter.event,this.onChange=this._cache.onChange}async get(e){return this._cache.getOrCreate(e,(async t=>Object.assign({id:e},...(await this._readEmitter.fire(e)).filter((e=>!!e)))))}get cache(){return this._cache}byForeignKey(e){let t=this._foreignCache[e];if(!t){const r=this.addDisposable(new o.jG);r.addDispose((()=>delete this._foreignCache[e]));const n=r.addDisposable(new h),i=r.addDisposable(new s.lt);t=this._foreignCache[e]={get:async(t,r={})=>(await n.getOrCreate(t,(async()=>{try{const r=function(e=[]){if((e=e.filter((e=>e))).length<=1)return e[0];let t=new Map;for(const r of e)for(const e of r)if(void 0!==e.id){let r=t.get(e.id)||{};t.set(e.id,{...r,...e})}return[...t].map((([e,t])=>t))}(await i.fire(t))||[];for(const n of r)n[e]=t,await this._cache.add(n.id,n);return r}catch{return[]}})),function(e,{filter:t,order:r="asc",orderBy:n,page:i,pageSize:a=20}={}){const o=e.length;let s=e.length;if(void 0!==t){const r=Object.keys(t);s=(e=e.filter((e=>{for(const n of r){const r=e[n],i=t[n];return"id"===n||"string"!==typeof r?r===i:"string"===typeof i&&r.startsWith(i)}return!0}))).length}return n&&(e=e.sort(((e,t)=>(e[n]>t[n]?1:t[n]>e[n]?-1:0)*("asc"===r?1:-1)))),void 0!==i&&(e=e.slice(a*(i-1),a*i-1)),{data:e,filteredTotal:s,total:o,totalPages:Math.floor(o/a)}}(await this._cache.values()||[],r)),first:(e,r={})=>t.get(e,{...r,page:1,pageSize:1}).then((e=>e[0])),handleRead:i.event,clear(){n.clear()},dispose(){r.dispose()}}}return t}async create(e,{source:t="",silent:r}={}){let n=e;return r||(n=await this._saveEmitter.fire({prev:void 0,patch:e,value:n,source:t})),void 0===n.id&&(n.id=(0,f.l)()),await this._cache.addOrUpdate(n.id,(()=>n))}async update(e,t,{source:r="",silent:n}={}){return this._cache.addOrUpdate(e,(async e=>{let i=e?{...e,...t}:t;if(!n)return t=e?(0,l.g)(e,t):t,await this._saveEmitter.fire({prev:e,patch:t,value:i,source:r})}))}async remove(e,{source:t="",silent:r}={}){const n=await this._cache.remove(e);return r||await this._removeEmitter.fire({value:n,source:t}),n}refresh(){this._cache.clear();for(const e of Object.values(this._foreignCache))e.clear()}suspendChange(){this._cache.suspendChange()}resumeChange(){this._cache.resumeChange()}}r(16390);var m=r(13216);function g(){const e=(0,i.Q)();return t=>n.di.getOrCreateInstance(t,e,(()=>new p))}function b(e){const t=n.di.getInstance(e,a.ax);if(!t)throw new Error("Failed");return t}function w(e){const t=n.di.getInstance(e,a.Lz);if(!t)throw new Error("Failed");return t}async function v(e){const t=b(e),r=await t.dispatch(m.Q2.endpoints.getMe.initiate({},{forceRefetch:!0}));return Promise.resolve(r.data)}},25488:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,I:()=>a});var n=r(39218),i=r(31926);function a({code:e,...t},r){var i,a;const o=r.getState();return{...t,...e?{html:e}:{},renderGuid:(0,n.l)(),project:null===(i=o.projectSlice)||void 0===i||null===(a=i.project)||void 0===a?void 0:a.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function o({html:e,renderGuid:t,...r},n){const a=n.getState(),{project:o,config:s}=a.configSlice;return(0,i.TB)({...r,code:e,project:void 0===o?r.project:o,utm_parameters:s.UTMEnabled?r.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0})}},61073:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Ge});var n=r(3792),i=r(16390),a=r(54838),o=r(47014),s=r(13216),c=r(53774),l=r(76550),u=r(14604);function d(e){var t;return{fontSize:e.fontSize,fontFamily:e.fontFamily,tabSize:e.tabSize,wordWrap:"off"!==e.wordWrap,minimap:null===(t=e.minimap)||void 0===t?void 0:t.enabled,insertSpaces:e.insertSpaces}}var h=r(76233),f=r(40277),p=r(29495),m=r(90614),g=r(15626),b=r(54010),w=r(84362),v=r(88195);function _(e){return y((async t=>e(t)))}function y(e){return(0,v.y)((async t=>{const r=await t.getInstanceAsync(l.ax);return await e(r)}))}const C=(0,w.l)((e=>{Promise.resolve().then((()=>r.e(5052).then(r.bind(r,5052)).then((({createStore:t})=>{e.inject(l.ax,t(e))}))))}));const S=_((e=>{const t=(0,p.PL)(e),r=(0,b.m)((0,m.Zc)(e,g.AZ.ON_LIMIT_ID)),w=t.addDisposable(new b.U(r)),v=(0,b.m)((0,m.Zc)(e,g.AZ.READ_LOCALE)),_=t.addDisposable(new b.U(v)),y=e.dispatch,C=n.di.getInstanceAsync(e,l.sZ).then((e=>(null===e||void 0===e?void 0:e.app_config)||{}),(e=>({}))),S=(0,u.y)(),k=async(...t)=>{const r=Object.assign({},...t),n=Object.assign({},...t.map((e=>e.editor))),{locale:o="ru_RU",theme:c,codeModeDirection:l,...u}=r;void 0!==l&&("none"===l?y((0,a.N6)(!1)):(y((0,a.N6)(!0)),y((0,a.Uf)(l))));const d=await(0,p.wz)(e);var h;await y(s.Q2.endpoints.editMe.initiate({...d,code_editor:n?(h=n,{font_size:h.fontSize,font_family:h.fontFamily,tab_size:h.tabSize,word_wrap:h.wordWrap,minimap:h.minimap,insert_spaces:h.insertSpaces}):d.code_editor,locale:"string"===typeof o?o:d.locale,theme:"string"===typeof c?c:d.theme})),y((0,i._R)(u))};let E;const x=S.decorate((async({config:r={},project:a,user:o,advancedConfigs:l})=>{var u;const d=await C,f=l||d.advancedConfigs,m=localStorage.getItem("configSwither");let g=f&&f[(null===r||void 0===r?void 0:r.mode)||m||"pro"]||(null===(u=(0,c.$)((null===r||void 0===r?void 0:r.mode)||m||"pro"))||void 0===u?void 0:u.config);if(g={...g,configSwither:r.configSwither||!1},await k(g,d,r),y((0,i.bn)(String(a))),y((0,i.ee)(f)),o){const r={...await(0,p.wz)(e),email:"",password:"",...o,id:"number"===typeof o.id?String(o.id):o.id};void 0===o.id&&delete r.id,y(s.Q2.endpoints.editMe.initiate(r)),o.id&&t.addDisposable(n.di.addService(e,h.jY,{execute(e){e.headers.append("user_id",r.id)}}))}a&&t.addDisposable(n.di.addService(e,h.jY,{execute(e){e.headers.append("project_id",String(a))}}))}));return{setOptions:S.decorate((async({config:e={},project:t,user:r,advancedConfigs:n,handleReadLocale:i,handleLimitUsage:a})=>{_.setListener(i),w.setListener(a),x({config:e,project:t,user:r,advancedConfigs:n}).catch((e=>{})),E&&E.dispose(),E=new f.jG})),instance:{setConfig:S.decorate((async e=>{var t;const r=null===(t=(0,c.$)((null===e||void 0===e?void 0:e.mode)||"pro"))||void 0===t?void 0:t.config;await k(r,await C,e)})),getConfig:()=>function(e){var t,r;const n=e.getState(),s=n[o.Ay.name],c=n[i.Ay.name],l=n[a.Ay.name];return{...c.config,theme:null===(t=s.currentUser)||void 0===t?void 0:t.theme,locale:null===(r=s.currentUser)||void 0===r?void 0:r.locale,codeModeDirection:l.isCodeMode?l.codeModeDirection:"none",editor:d(s.monacoOptions)}}(e),updateConfig:S.decorate((e=>k(e))),handleReadLocale:v,handleLimitUsage:r}}}));r(97320);var k=r(63335),E=r(98173),x=r(2604);const A=({onLoad:e,children:t})=>{(0,E.useEffect)((()=>{e&&e()}),[e]);const r=(0,x.wA)();return(0,E.useMemo)((()=>r(s.Q2.endpoints.getMe.initiate({}))),[r]),t};var O=r(73013),T=r(30150),D=r(39100),I=r(38826),R=r(49856),N=r(98447),L=r(3326);const P=E.createElement(I.A,{style:{fontSize:48},rev:null,spin:!0}),z={height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},B=({children:e})=>{const[t,r]=(0,E.useState)(),n=(0,L.ZU)(),a=(0,x.d4)(i.p5);return E.createElement(E.Fragment,null,E.createElement("div",{className:"App blocks-app blocks-plugin",style:n?{}:{visibility:"hidden"}},a&&E.createElement("style",{dangerouslySetInnerHTML:{__html:a}}),E.createElement(L.fh.Provider,{value:t},e),E.createElement("div",{ref:r,className:"blocks-modal-container"})),!n&&E.createElement(R.A,{size:"large",style:z},E.createElement(N.A,{indicator:P})))};var M=r(60739);const j=_((e=>{let t=null;const r=n.di.getInstance(e,l.Lz);let i;return{instance:{getElement:()=>t},async setOptions(a){let o=await(0,M.x)(a.element,r);const{instance:s}=n.di.getInstance(e,l.Cd)||{};if(t!==o&&(t&&M.s.delete(t),!(o&&M.s.has(o)&&s))){if(i&&i.dispose(),t=o,i=r.addDisposable(new f.jG),o)M.s.set(o,s);else{const e=document.createElement("div");e.style.position="absolute",e.style.left="-10000px",document.body.appendChild(e);const t=()=>{e.isConnected&&document.body.removeChild(e)};i.addDispose(t),o=e}return(t=>new Promise(((r,n)=>{var a;if(null!==(a=i)&&void 0!==a&&a.isDisposed())r();else{const n=(0,O.H)(t);n.render(E.createElement(E.StrictMode,null,E.createElement(x.Kq,{store:e},E.createElement(A,{onLoad:r},E.createElement(L.or.Provider,{value:{element:t}},E.createElement(T.fS,null,E.createElement(D.Y,null,E.createElement(B,null,E.createElement(k.A,null))))))))),i.addDispose(r),i.addDispose((()=>n.unmount()))}})))(o)}},dispose(){var e;null===(e=i)||void 0===e||e.dispose()}}}));var F=r(18444),U=r(19992);var W=r(33932);var H=r(73668);var $=r(871);var Z=r(705);var q=r(97032);var V=r(92960);var G=r(98119);var K=r(40835);n.di.createIdentifier();var Y=r(46767);var X=r(5618);const J=(0,p.Qq)(),Q=(0,p.Qq)(),ee=(0,m.cZ)(),te=(0,m.cZ)();var re=r(8111),ne=r(19792);function ie(e){return ie="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}function ae(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function oe(e,t){var r,n;(0,ne.A)(1,arguments);var i=function(e){(0,ne.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ie(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):new Date(NaN)}(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var a=String(null!==(r=null===t||void 0===t?void 0:t.format)&&void 0!==r?r:"extended"),o=String(null!==(n=null===t||void 0===t?void 0:t.representation)&&void 0!==n?n:"complete");if("extended"!==a&&"basic"!==a)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",c="",l="extended"===a?"-":"",u="extended"===a?":":"";if("time"!==o){var d=ae(i.getDate(),2),h=ae(i.getMonth()+1,2),f=ae(i.getFullYear(),4);s="".concat(f).concat(l).concat(h).concat(l).concat(d)}if("date"!==o){var p=i.getTimezoneOffset();if(0!==p){var m=Math.abs(p),g=ae(Math.floor(m/60),2),b=ae(m%60,2);c="".concat(p<0?"+":"-").concat(g,":").concat(b)}else c="Z";var w=""===s?"":"T",v=[ae(i.getHours(),2),ae(i.getMinutes(),2),ae(i.getSeconds(),2)].join(u);s="".concat(s).concat(w).concat(v).concat(c)}return s}const se=(0,p.Qq)();var ce=r(12005);var le=r(98845),ue=r(39218);const de=(0,p.Qq)(),he=(0,p.Qq)();const fe={addUserToProjectApiMock:function(e){(0,F.l)(e)(U.B,{addUserToProject:()=>{}})},AiApiMock:function(e){(0,F.l)(e)(W.Zs,{sendMessage:({body:e})=>t=>t({body:e}).catch((()=>new Promise((e=>setTimeout(e,1e3))))),getDialog:e=>t=>t(e)})},authorizationApiMock:function(e){let t={id:"0",username:"",email:"",password:"",code_editor:{},theme:"light",locale:(0,p.KA)(e).getState().userSlice.currentUser.locale,counters:{},avatar_urls:{},autosaves:!0};(0,F.l)(e)(s.Q2,{userRegistration:()=>{},getSchema:()=>e=>e({}),getMe:()=>t,editMe:e=>t={...t,...e},getSubscriptions:()=>[]})},blocksApiMock:function(e){const t=(0,F.l)(e),r=J(e),n=r.byForeignKey("project"),i=Q(e),a=i.byForeignKey("parent"),{dispatch:o,getState:s}=(0,p.KA)(e),c=(0,p.PL)(e);c.addDisposable(r.onChange((()=>o(X.VM.util.invalidateTags(["Blocks"]))))),c.addDisposable(r.onSave((({prev:e,patch:t,value:r})=>{(e=e?{...e,...t}:t)&&r.html===e.html&&r.title===e.title&&(r.renderGuid=e.renderGuid)}),Number.MIN_VALUE));const l=(0,m.dB)(e,te),u=(0,m.dB)(e,ee);t(X.VM,{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await n.get(e.projectId,{filter:t,page:e.page,pageSize:e.pageSize,order:e.order,orderBy:e.orderby}).then((({data:e})=>e))},getBlocksSchema:()=>e=>e({}),getParentEmailBlocks:e=>async t=>{try{const t=s().configSlice.project||"",r=(await u.fire({project:t,emailId:e.emailId||""})).filter((e=>e));if(r.length)return r.flat()}catch(r){}return t(e)},getTemplateBlocks:e=>async t=>{try{const t=s().configSlice.project||"",r=(await l.fire({project:t,emailId:e.emailId||""})).filter((e=>e));if(r.length)return r.flat()}catch(r){}return t(e)},async getBlock(e){const t=s().projectSlice.project.id;return n.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await a.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async t=>{const n=await r.create(e);return s().configSlice.config.preventSendDataToEM||t(n).catch((e=>{})),n},editBlock:({blockId:e,...t})=>r.update(e,t),deleteBlock:e=>r.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>i.create({...t,parent:e})})},commentsApiMock:function(e){const t=(0,F.l)(e),r=se(e),n=r.byForeignKey("post"),{dispatch:i}=(0,p.KA)(e);(0,p.PL)(e).addDisposable(r.onChange((()=>i(re.Jg.util.invalidateTags(["Comments"]))))),t(re.Jg,{getComments:e=>n.get(e).then((({data:e})=>e)),addComment({subjectId:e,author:t,parent:n,content:i,author_name:a,author_email:o,targetId:s}){const c={post:e,author:t,author_name:a,author_email:o,content:i,parent:n,target_id:s,date:oe(new Date),author_avatar_urls:{}};return r.create(c)},deleteComment:e=>r.remove(e),editComment:({commentId:e,...t})=>r.update(e,t),deleteTarget:e=>r.update(e,{target_id:""})})},emailsApiMock:function(e){const t=de(e),r=he(e),n=r.byForeignKey("parent"),{dispatch:i,getState:a}=(0,p.KA)(e),o=(0,p.PL)(e),s=(0,F.l)(e);o.addDisposable(t.onChange((async()=>{i(le.GY.util.invalidateTags(["Email"]))}))),o.addDisposable(r.onChange((()=>{i(le.GY.util.invalidateTags(["EmailAutosaves"]))}))),o.addDisposable(t.onSave((({prev:e,patch:t,value:r})=>{(e=e?{...e,...t}:t)&&r.subject===e.subject&&r.html===e.html&&r.preheader===e.preheader&&r.title===e.title&&(r.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),s(le.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:({emailId:e,page:t=1})=>(n.clear(),async i=>{if(a().configSlice.config.revisionService){const n=await i({emailId:e,page:t});for(const e of n.data)r.cache.add(e.id,e);return n}return{...await n.get(e,{page:t}),args:{emailId:e,page:t}}}),async addEmail({source:e,...r}){const n=await t.create(r,{source:e});return n.renderGuid||(n.renderGuid=(0,ue.l)()),n},editEmail:e=>async r=>{const{emailId:n,source:i,...o}=e;return a().configSlice.config.revisionService&&await r(e),t.update(n,o,{source:i})},deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveEmail:({emailId:e,body:t})=>async n=>(a().configSlice.config.revisionService&&await n({emailId:e,body:t}),await r.create({...t,parent:e,modified:(new Date).toString()}))})},emailRawApiMock:function(e){(0,F.l)(e)(H.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(l.f5)}})},imageApiMock:function(e){(0,F.l)(e)($.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){(0,F.l)(e)(ce.Ad,{getLocale:async({id:e})=>t=>t({id:e}),getLocales:()=>async e=>e({})})},notificationsApiMock:function(e){(0,F.l)(e)(Z.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(l.f5)}})},projectsApiMock:function(e){let t;(0,F.l)(e)(q.Nq,{getProjects:(e={page:1})=>[],getProject:e=>r=>t||(t=r(e).then((t=>({...t,id:e})))),addProject(e){throw new Error},editProject:({projectId:e,...r})=>t=t.then((t=>({...t,...r,id:e}))),deleteProject(e){throw new Error}})},proxyApiMock:function(e){const t=(0,F.l)(e),r=(0,m.dB)(e,g.AZ.FILE_PROXY_EVENT_ID);t(V.Z8,{getFile:async({url:t,tryFetch:n=!0,type:i})=>async a=>{const o=e.getState(),{project:s}=o.configSlice,c=(await r.fire({url:t,project:s})).filter((e=>e instanceof Blob))[0];if(!c)return a({url:t,tryFetch:n,type:i});switch(i){case"json":return JSON.parse(await c.text());case"text":return c.text();default:return c}}})},recoverPasswordApiMock:function(e){(0,F.l)(e)(G.yR,{resetPassword(e){throw new Error(l.f5)},setPassword(e){throw new Error(l.f5)},validateRecoverPasswordCode(e){throw new Error(l.f5)}})},saveFileApiMock:function(e){const t=(0,F.l)(e);if(!n.di.getInstance(e,l.Lz))throw new Error("Something was wrong");const r=(0,m.dB)(e,g.AZ.UPLOAD_EVENT_ID),i=(0,m.dB)(e,g.AZ.ON_SEND_TESTEMAIL_ID),a=(0,m.dB)(e,g.AZ.ON_SEND_LIVEPREVIEW_ID);t(K.yH,{uploadImage:t=>async i=>{const a=e.getState(),{project:o}=a.configSlice,s="tmp"===t.folder?null:await r.fire({file:t.file,project:o}),c=s?s.find((e=>e)):null;return c?[{file_url:c,project:o}]:i({...t,user_id:String((await n.di.getInstanceAsync(e,l.sZ)).app_id)})},sendTestEmail:t=>async r=>{const a=e.getState(),{project:o}=a.configSlice;(await i.fire({project:o,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some((e=>!1===e))&&await r({...t,user_id:String((await n.di.getInstanceAsync(e,l.sZ)).app_id)})},async sendLivePreview(t){const r=e.getState(),{project:n}=r.configSlice;(await a.fire({project:n,id:t.email,subject:t.subject,html:t.content})).some((e=>!1===e))},sendShortLink:e=>t=>t(e)})},tokenApiMock:function(e){(0,F.l)(e)(Y.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}},pe=fe;function me(e){return{emails:de(e),blocks:J(e),emailRevisions:he(e),blocksRevision:Q(e),comments:se(e)}}var ge=r(80148),be=r(95669),we=r(90121),ve=r(13668),_e=r(31926);function ye({code:e,...t},r){var n,i;const a=r.getState();return{...t,...e?{html:e}:{},renderGuid:(0,ue.l)(),project:null===(n=a.projectSlice)||void 0===n||null===(i=n.project)||void 0===i?void 0:i.id}}function Ce({html:e,renderGuid:t,...r},n){const i=n.getState(),{project:a}=i.configSlice;return(0,_e.TB)({...r,code:e,project:void 0===a?r.project:a,guid:void 0,link:void 0,status:void 0,slug:void 0,password:void 0,comment_status:void 0,template:void 0,blocktags:void 0,project_title:void 0,ping_status:void 0,lock:void 0,tag:void 0,is_template:void 0})}var Se=r(25488);function ke({code:e,...t},r,n){const i=r.getState();var a,o;void 0===n&&(n=void 0===t.parent?null===(a=i.emailSlice)||void 0===a||null===(o=a.email)||void 0===o?void 0:o.id:t.parent);return{...t,...e?{html:e}:{},parent:n}}function Ee({html:e,...t},r){return(0,_e.TB)({...t,code:e,guid:void 0,compiled:(0,_e.TB)({html:e,ampHtml:e&&""})})}function xe(e,t,r){const n=t.getState();var i,a;void 0===r&&(r=void 0===e.post?null===(i=n.emailSlice)||void 0===i||null===(a=i.email)||void 0===a?void 0:a.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:r}}function Ae(e,t){return(0,_e.TB)({...e,link:void 0,comment_status:void 0})}var Oe=r(72510),Te=r(30315),De=r(22560),Ie=r(19504),Re=r(1511);const Ne=e=>function(e){var t;return function(e){return"___SCRIPT"===e.tagName}(e)&&(null===(t=e.src)||void 0===t?void 0:t.startsWith(Re.gP))}(e)||(0,Ie.Nh)(e)||(0,Oe.BF)(e);async function Le(e,t){"string"===typeof e&&(e={code:e});const r=e.code?await(0,Te.PJ)(e.code||"",[Te.qy],e.utm_parameters,(async e=>{void 0===t&&(t=(e=>{if(Ne(e))return!0;if((0,Oe.vq)(e)||(0,Oe.wz)(e))for(const t of e.querySelectorAll("*"))if(Ne(t))return!0;return!1})(e)),t&&await(0,De.e)(e,"html")})):"",n=e.code&&t?await(0,Te.PJ)(e.code||"",[Te.qy],e.utm_parameters,(async e=>{await(0,De.e)(e,"amp")})):"";return{...e,compiled:{html:r,ampHtml:n}}}function Pe(e,t){var r;return{severity:Number(t.severity),message:t.message,source:t.source,startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn,get startOffset(){return e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn})},get endOffset(){return e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn})},tags:null===(r=t.tags)||void 0===r?void 0:r.map((e=>Number(e)))}}const ze="EXTERNAL";class Be extends f.jG{constructor(e){super(),this._store=e,this._emailTemplateCache=Object.create(null),this._prevCommand=void 0,this._prevContent=void 0,this._dataSources=void 0,this._eventLock=void 0,this._queue=(0,u.y)(),this._model=void 0,this._currentEmail=void 0,this.show=this._queue.decorate(this._show,this),this.save=this._queue.decorate(this._save,this);const t=(0,ge.My)(e);this._dataSources=me(t),this._eventLock=function(e){const t=Object.values(me(e));return{suspendChange(){t.forEach((e=>e.suspendChange()))},resumeChange(){t.forEach((e=>e.resumeChange()))}}}(t);const r=(0,m.Zc)(e,g.AZ.ON_MODEL_CHANGE),i=(0,m.Zc)(e,g.AZ.ON_EMAIL_CHANGED_ID);this.addDisposable(r((e=>{this._model=e}))),this.addDisposable(i((e=>{this._currentEmail=e}))),this.addDisposable(n.di.addService(e,h.jY,{execute:e=>{var t;null!==(t=this._currentEmail)&&void 0!==t&&t.id&&!this._currentEmail.isNew&&e.headers.append("email_id",this._currentEmail.id)}}))}async getProject(){const e=await n.di.getInstanceAsync(this._store,l.sZ);return null===e||void 0===e?void 0:e.project}async getTemplateEmail(e){e=String(e);let t=this._emailTemplateCache[e];if(!t){const r=await this._store.dispatch(le.GY.endpoints.getTemplateEmail.initiate(e));r.error||(t={...r.data,lock:!1,parent_email:e},delete t.id)}return t}async getBlocks(){const{cache:e}=this._dataSources.blocks,t=await this.getProject();return(await e.values()).filter((e=>e.project===t)).map((e=>Ce(e,this._store)))}async getComments(){const{cache:e}=this._dataSources.comments,t=await this.getEmail();return(await e.values()).filter((e=>e.post===t.id)).map((e=>Ae(e,this._store)))}async getEmailRevisions(){const{cache:e}=this._dataSources.emailRevisions,t=await this.getEmail();return(await e.values()).filter((e=>e.parent===t.id)).map((e=>Ee(e,this._store)))}async setBlocks(e=[]){const{cache:t}=this._dataSources.blocks;await t.setAll(e.filter((e=>void 0!==e.id)).map((e=>[e.id,ye(e,this._store)])))}async setEmailRevisions(e=[],t){const{cache:r}=this._dataSources.emailRevisions,n=e.filter((e=>void 0!==e.id)).map((e=>[e.id,ke(e,this._store,t)]));await r.setAll(n)}async setComments(e=[],t){const{cache:r}=this._dataSources.comments,n=e.filter((e=>void 0!==e.id)).map((e=>[e.id,xe(e,this._store,t)]));await r.setAll(n)}async getEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email;return Le((0,Se.E)({...t,html:this._model?this._model.getValue():t.html},this._store))}async compileEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email;return Le((0,Se.E)({...t,html:this._model?this._model.getValue():t.html},this._store))}async setEmail(e,t,r=!1){const n=this._dataSources.emails,i=n.cache,a=await this.getProject();e="string"===typeof e?{code:e}:{...e};let o=(0,Se.I)(e,this._store);const s=o.id;let c=s;if(void 0!==s?o={...await n.get(s),...o,project:a}:(o={...o,project:a},c=(0,ue.l)(),delete o.project),t){const e=await this.getTemplateEmail(String(t));e&&(o={...e,id:String(t),...o})}await i.setAll([[c,o]]),r&&this._runShowCommand({isNew:void 0===s,id:c,project:a})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,be.b)(this._prevCommand,e)?(0,we.RS)(this._store,ve._1,t):this._store.dispatch((0,i.Ir)(t)),this._prevCommand=e}async _show(e){try{if(!e)return;if(this._eventLock.suspendChange(),e!==this._prevContent){this._prevContent=e;const{email:r,blocks:n,autosaves:i,comments:a,templateId:o}="string"===typeof(t=e)?{email:{code:t}}:function(e){return!e.hasOwnProperty("email")&&!e.hasOwnProperty("block")&&!e.hasOwnProperty("templateId")}(t)?{email:t}:{...t,email:"string"===typeof t.email?{code:t.email}:t.email||{}},s=[];s.push(this.setBlocks(n)),void 0!==r.id&&(s.push(this.setComments(a)),s.push(this.setEmailRevisions(i))),s.push(this.setEmail(r,Number(o),!0)),await Promise.all(s)}}catch(r){}finally{this._eventLock.resumeChange()}var t;return new Promise((e=>{const t=(0,m.Zc)(this._store,g.AZ.ON_EMAIL_INIT_ID)((()=>{t.dispose(),e()}))}))}_save(){return new Promise((async e=>{const t=this._dataSources.emails,r=this.addDisposable(t.onSave((({value:t,source:n})=>{n===ze&&(r.dispose(),e((0,Se.E)(t,this._store)))}),Number.MIN_VALUE));(0,we.RS)(this._store,ve.Kp,ze)}))}getCodeErrors(){var e;const t=this._store.getState(),r=this._model;return r?null===(e=t.emailSlice.problemsList)||void 0===e?void 0:e.map((e=>Pe(r,e))):void 0}}var Me=r(98485),je=r(65470);class Fe extends f.jG{constructor(e){super(),this._store=e,this._events=void 0,this._model=void 0,this._listenersUpdaters=void 0;const t=(0,m.Zc)(e,g.AZ.ON_MODEL_CHANGE);this.addDisposable(t((e=>{this._model=e})))}_get(){const e=this._store,t=(0,ge.My)(e),{blocks:r,emails:n,comments:a,emailRevisions:o}=me(t),s=(0,m.Zc)(e,ee),c=(0,m.Zc)(e,te),l=(0,m.Zc)(e,g.AZ.ON_SAVEBUTTON_CLICK_ID),u=(0,m.Zc)(e,g.AZ.ON_PREVIOUSBUTTON_CLICK_ID),d=(0,m.Zc)(e,g.AZ.ON_NEXTBUTTON_CLICK_ID),h=(0,je.pb)((0,m.Zc)(e,g.AZ.ON_EMAIL_INIT_ID),(e=>!e.reset)),f=(0,m.Zc)(e,g.AZ.ON_EMAIL_CHANGED_ID),p=(0,m.Zc)(e,g.AZ.ON_CONTENT_CHANGED_ID),w=(0,m.Zc)(e,g.AZ.ON_SEND_TESTEMAIL_ID),v=(0,m.Zc)(e,g.AZ.ON_SEND_EMAIL_MODAL_ID),_=(0,m.Zc)(e,g.AZ.ON_EMAIL_CLONE_ID),y=(0,m.Zc)(e,g.AZ.ON_SHARE_ID),C=(0,m.Zc)(e,g.AZ.ON_SHOW_PREVIEW_ID),S=(0,m.Zc)(e,g.AZ.ON_SEND_LIVEPREVIEW_ID),k=(0,m.Zc)(e,g.AZ.ON_CODE_VALIDATE_ID);return{handleValidate:(0,b.m)(k,(e=>this._model?e.map((e=>Pe(this._model,e))):[])),handleReadEmail:(0,b.m)(n.handlerRead,(e=>e),(t=>t&&(0,Se.I)(t,e))),handleSaveEmail:(0,b.m)(n.onSave,(function({prev:t,patch:r,value:n,source:i}){const a=t?(0,Se.E)(t,e):void 0;return{prev:a,patch:(0,Me.g)(a,(0,Se.E)(r,e)),value:(0,Se.E)(n,e),source:i}}),(t=>t?(0,Se.I)(t,e):void 0)),handleRemoveEmail:(0,b.m)(n.onRemove,(({value:t,source:r})=>({value:(0,Se.E)(t,e),source:r})),(()=>{})),handleReadCommonBlocks:(0,b.m)(c,(e=>e.project),(t=>null===t||void 0===t?void 0:t.map((t=>ye(t,e))))),handleReadTemplateBlocks:(0,b.m)(s,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>ye(t,e))))),handleReadBlocks:(0,b.m)(r.byForeignKey("project").handleRead,(t=>(0,i.jY)(e.getState())||String(t)),(t=>null===t||void 0===t?void 0:t.map((t=>ye(t,e))))),handleSaveBlock:(0,b.m)(r.onSave,(function({prev:t,patch:r,value:n,source:i}){const a=t?Ce(t,e):void 0;return{prev:a,patch:(0,Me.g)(a,Ce(r,e)),value:Ce(n,e),source:i}}),(t=>t?ye(t,e):void 0)),handleRemoveBlock:(0,b.m)(r.onRemove,(({value:t,source:r})=>({value:Ce(t,e),source:r})),(()=>{})),handleReadComments:(0,b.m)(a.byForeignKey("post").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>xe(t,e))))),handleSaveComment:(0,b.m)(a.onSave,(function({prev:e,patch:t,value:r,source:n}){const i=e?Ae(e):void 0;return{prev:i,patch:(0,Me.g)(i,Ae(t)),value:Ae(r),source:n}}),(t=>t?xe(t,e):void 0)),handleRemoveComment:(0,b.m)(a.onRemove,(({value:e,source:t})=>({value:Ae(e),source:t})),(()=>{})),handleReadEmailRevisions:(0,b.m)(o.byForeignKey("parent").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>ke(t,e))))),handleEmailAutosave:(0,b.m)(o.onSave,(function({prev:e,patch:t,value:r,source:n}){return{value:Ee(r),source:n}}),(t=>t?ke(t,e):void 0)),handleRemoveEmailAutoSave:(0,b.m)(o.onRemove,(({value:e,source:t})=>({value:Ee(e),source:t})),(()=>{})),handleEmailChanged:(0,b.m)((0,je.sg)(f,100),(t=>(0,Se.E)(t,e))),handleEmailInit:(0,b.m)(h,(t=>(0,Se.E)(t,e))),handlePreviousButtonClick:(0,b.m)(u,(t=>(0,Se.E)(t,e))),handleNextButtonClick:(0,b.m)(d,(t=>(0,Se.E)(t,e))),handleSaveButtonClick:(0,b.m)(l,(t=>(0,Se.E)(t,e))),handleHtmlChanged:(0,b.m)((0,je.sg)(p,100)),handleTestEmailSend:(0,b.m)(w,(({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}}))),handleTestEmailModal:(0,b.m)(v,(t=>(0,Se.E)(t,e))),handleCloneEmail:(0,b.m)(_,(t=>(0,Se.E)(t,e))),handleShareEmail:(0,b.m)(y),handlePreviewEmail:(0,b.m)(C),handleLivePreviewEmail:(0,b.m)(S)}}get(){return this._events||(this._events=this._get())}setOptions(e={}){const t=this.get();let r=this._listenersUpdaters;if(!r){r=this._listenersUpdaters={};for(const e of Object.keys(t))r[e]=this.addDisposable(new b.U(t[e]))}for(const n of Object.keys(t))r[n].setListener(e[n])}}const Ue=y((async e=>{const t=n.di.getInstance(e,l.Ef);if(t){const n=(await r.e(9640).then(r.bind(r,2610))).injectStandaloneMocks;await n(e,t)}(0,F.B)(e,pe);const i=new Be(e),a=new Fe(e);return{async setOptions(e){a.setOptions(e),await i.show(e.content)},instance:{...a.get(),show:e=>i.show(e),save:()=>i.save(),getEmail:()=>i.getEmail(),getBlocks:()=>i.getBlocks(),getEmailRevisions:()=>i.getEmailRevisions(),getComments:()=>i.getComments(),compileEmail:async e=>e?Le(e):await i.compileEmail(),getCodeErrors:()=>i.getCodeErrors()}}})),We=(0,w.l)((e=>{const t=e.getInstance(l.Lz),r=(0,g.Zc)(e,g.AZ.UPLOAD_EVENT_ID),n=(0,g.Zc)(e,g.AZ.FILE_PROXY_EVENT_ID),i=(0,b.m)(r),a=(0,b.m)(n),o=t.addDisposable(new b.U(i)),s=t.addDisposable(new b.U(a));return{setOptions(e){o.setListener(e.handleLoadImage),s.setListener(e.handleFileProxy)},instance:{handleLoadImage:i,handleFileProxy:a}}}));function He(e){return"string"===typeof e?e:e?E.createElement("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function $e(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,_e.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:He(e.message),description:He(e.description),btn:He(e.btn),onClose:e.onClose,duration:e.duration,icon:He(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:He(e.closeIcon),props:e.props,role:e.role})}const Ze=(0,w.l)((e=>{const t=e.getInstance(l.Lz),r=(0,g.Zc)(e,g.AZ.ON_NOTIFICATION),n=(0,je.pb)(r,(e=>"error"===e.type)),i=(0,je.pb)(r,(e=>"success"===e.type)),a=(0,b.m)(r,(e=>e),(e=>"string"===typeof e||"object"===typeof e?$e(e):e)),o=(0,b.m)(n,(e=>e),(e=>"string"===typeof e||"object"===typeof e?$e(e,"error"):e)),s=(0,b.m)(i,(e=>e),(e=>"string"===typeof e||"object"===typeof e?$e(e):e)),c=t.addDisposable(new b.U(a)),u=t.addDisposable(new b.U(o)),d=t.addDisposable(new b.U(s));return{setOptions({handleNotify:e,handleSuccess:t,handleError:r}){c.setListener(e),u.setListener(r),d.setListener(t)},instance:{notify(t){(0,we.RS)(e,ve.Sb,{placement:"bottomRight",...$e(t)})},handleNotify:a,handleError:o,handleSuccess:s}}}));var qe=r(86095);const Ve=(0,w.l)((e=>{let t;const r=(0,p.PL)(e),n=(0,g.Zc)(e,g.AZ.ON_MODEL_CHANGE);return r.addDisposable(n((e=>{t=(0,qe.VA)(e)}))),{instance:{undoRedoService:{undo:()=>t.undo(),redo:()=>t.redo(),clear:()=>t.clear(),getPast:()=>t.getPast(),getFuture:()=>t.getFuture(),canUndo:()=>t.canUndo(),canRedo:()=>t.canRedo(),createSnapshot:()=>t.createSnapshot(),restoreSnapshot:e=>t.restoreSnapshot(e)}}}})),Ge=(0,w.E)([C,Ze,S,We,j,Ve,Ue])},16390:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>S,EV:()=>y,GH:()=>p,Ir:()=>m,Kj:()=>C,RP:()=>d,_R:()=>b,bn:()=>w,ee:()=>v,jY:()=>f,p5:()=>h,s0:()=>l,zg:()=>u});var n=r(1029),i=r(93778),a=r(53774);const o="configSlice",s=(0,i.ur)((0,a.$)("pro")),c=(0,n.createSlice)({name:o,initialState:{...s,initialMergeTags:void 0},reducers:{setPage:(e,t)=>{e.page=t.payload},setConfig:(e,t)=>{e.config={...s.config,...t.payload}},changeConfigMode:(e,t)=>{var r,n,i;const o=null!==(r=null===e||void 0===e||null===(n=e.advancedConfigs)||void 0===n?void 0:n[t.payload])&&void 0!==r?r:null===(i=(0,a.$)(t.payload))||void 0===i?void 0:i.config;if("simple"!==e.config.mode&&"simple"!==t.payload){const t={...e.config,...Object.fromEntries(Object.entries(o).filter((([e])=>a.i.includes(e))))};e.config=t}else e.config={...e.config,...(0,a.$)(t.payload).config}},setInitialMergeTags:(e,t)=>{e.initialMergeTags=t.payload},setMergeTags:(e,t)=>{e.config.mergeTags=t.payload},updateConfig:(e,t)=>{e.config={...e.config,...t.payload}},setProject:(e,t)=>{e.project=t.payload},setAdvancedConfigs:(e,t)=>{e.advancedConfigs=t.payload}},extraReducers:e=>{}}),l=e=>e[o].page,u=e=>e[o].config,d=e=>e[o].config.themes,h=e=>e[o].config.styles,f=e=>e[o].project,p=e=>e[o].config.mergeTags||e[o].initialMergeTags,{setPage:m,setConfig:g,updateConfig:b,setProject:w,setAdvancedConfigs:v,setMergeTags:_,changeConfigMode:y,setInitialMergeTags:C}=c.actions,S=c},54838:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>F,B:()=>T,Bp:()=>k,CS:()=>N,Ct:()=>R,Fk:()=>m,Fv:()=>P,M7:()=>x,N6:()=>C,NQ:()=>I,Oo:()=>f,PM:()=>p,Tn:()=>B,Uf:()=>v,V$:()=>M,Wm:()=>D,Wv:()=>z,cL:()=>O,mi:()=>g,oF:()=>A,oG:()=>j,qf:()=>h,sy:()=>E,vc:()=>b,vs:()=>w,wW:()=>_,wr:()=>y,yy:()=>L});var n=r(1029),i=r(32947),a=r(93778),o=r(5618);const s=window.localStorage.getItem(i.V0.em_code_mode_settings),c=s&&JSON.parse(s),l=(0,a.ur)({activeModal:"",lastActiveSettingsTab:i.Bv,activeSettingsTab:i.Bv,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:(null===c||void 0===c?void 0:c.isCodeMode)||i.EW.isPlugin,codeModeDirection:(null===c||void 0===c?void 0:c.codeModeDirection)||"left",isHeaderCodeMenuOpen:{current:!1,switched:!1},emailWidth:"100%",emailViewType:i.Vp,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:i.WU,parentBlocks:[],isGlobalLoading:!1}),u="emailPageSlice",d=(0,n.createSlice)({name:u,initialState:l,reducers:{openModal:(e,t)=>{e.activeModal=t.payload},closeModal:e=>{e.activeModal=""},setActiveSettingsTab:(e,t)=>{e.lastActiveSettingsTab=e.activeSettingsTab,e.activeSettingsTab=t.payload,t.payload!==i.Vv&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{"Properties"===e.lastActiveSettingsTab?e.activeSettingsTab="Build":e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==i.Vv&&(e.isPanelHistoryCollapsed=!0)},switchIsPanelHistoryCollapsed:(e,t)=>{e.isPanelHistoryCollapsed=t.payload||!e.isPanelHistoryCollapsed},setEmailWidth:(e,{payload:t})=>{e.emailWidth=t,e.emailViewType=t>e.emailMaxWidthSize||"100%"===t?i.Vp:i.ND,window.localStorage.setItem(i.V0.em_default_sizes,JSON.stringify(t))},setEmailMaxWidthSize:(e,{payload:t})=>{e.emailMaxWidthSize=t},setEmailViewType:(e,t)=>{e.emailViewType=t.payload},switchCodeMode:e=>{const t=!e.isCodeMode;e.isCodeMode=t,window.localStorage.setItem(i.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:t}))},setCodeMode:(e,t)=>{const r=t.payload;e.isCodeMode!==r&&(e.isCodeMode=r,window.localStorage.setItem(i.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:r})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(i.V0.em_code_mode_settings,JSON.stringify({isCodeMode:e.isCodeMode,codeModeDirection:t.payload}))},setMobileViewActive:(e,t)=>{e.mobileViewActive=t.payload},setPropertiesPanelKey:(e,t)=>{e.propertiesPanelKey=t.payload},resetParentBlocks:e=>{e.parentBlocks=[]},setParentBlocks:(e,t)=>{e.parentBlocks=t.payload},setIsGlobalLoading:(e,t)=>{e.isGlobalLoading=t.payload},setHeaderCodeMenuOpen:(e,t)=>{e.isHeaderCodeMenuOpen.current&&!t.payload?e.isHeaderCodeMenuOpen.switched=!0:e.isHeaderCodeMenuOpen.switched=!1,e.isHeaderCodeMenuOpen.current=t.payload}},extraReducers:e=>{e.addMatcher(o.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,t)=>{e.parentBlocks=t.payload}))}}),{openModal:h,closeModal:f,setActiveSettingsTab:p,resetToLastActiveSettingsTab:m,switchIsPanelHistoryCollapsed:g,setEmailWidth:b,switchCodeMode:w,switchCodeModeDirection:v,setMobileViewActive:_,setEmailViewType:y,setCodeMode:C,setEmailMaxWidthSize:S,setPropertiesPanelKey:k,resetParentBlocks:E,setIsGlobalLoading:x,setHeaderCodeMenuOpen:A}=d.actions,O=e=>e[u].activeModal,T=e=>e[u].activeSettingsTab,D=e=>e[u].isPanelHistoryCollapsed,I=e=>e[u].emailWidth,R=e=>e[u].emailViewType,N=e=>e[u].mobileViewActive,L=e=>e[u].codeModeDirection,P=e=>e[u].isCodeMode,z=e=>e[u].isHeaderCodeMenuOpen,B=e=>e[u].propertiesPanelKey,M=e=>e[u].parentBlocks,j=e=>e[u].isGlobalLoading,F=d}}]);
|
|
1
|
+
/*! For license information please see 7352.fd77434d.chunk.js.LICENSE.txt */
|
|
2
|
+
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7352],{88106:(e,t,r)=>{"use strict";function n(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}r.d(t,{R$:()=>n,W6:()=>i,j3:()=>a});class i{constructor(e,t,r){this.id=e,this.definition=t,this.description=r,i._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return i._allCodicons}}var a;i._allCodicons=[],i.add=new i("add",{fontCharacter:"\\ea60"}),i.plus=new i("plus",i.add.definition),i.gistNew=new i("gist-new",i.add.definition),i.repoCreate=new i("repo-create",i.add.definition),i.lightbulb=new i("lightbulb",{fontCharacter:"\\ea61"}),i.lightBulb=new i("light-bulb",{fontCharacter:"\\ea61"}),i.repo=new i("repo",{fontCharacter:"\\ea62"}),i.repoDelete=new i("repo-delete",{fontCharacter:"\\ea62"}),i.gistFork=new i("gist-fork",{fontCharacter:"\\ea63"}),i.repoForked=new i("repo-forked",{fontCharacter:"\\ea63"}),i.gitPullRequest=new i("git-pull-request",{fontCharacter:"\\ea64"}),i.gitPullRequestAbandoned=new i("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),i.recordKeys=new i("record-keys",{fontCharacter:"\\ea65"}),i.keyboard=new i("keyboard",{fontCharacter:"\\ea65"}),i.tag=new i("tag",{fontCharacter:"\\ea66"}),i.tagAdd=new i("tag-add",{fontCharacter:"\\ea66"}),i.tagRemove=new i("tag-remove",{fontCharacter:"\\ea66"}),i.person=new i("person",{fontCharacter:"\\ea67"}),i.personFollow=new i("person-follow",{fontCharacter:"\\ea67"}),i.personOutline=new i("person-outline",{fontCharacter:"\\ea67"}),i.personFilled=new i("person-filled",{fontCharacter:"\\ea67"}),i.gitBranch=new i("git-branch",{fontCharacter:"\\ea68"}),i.gitBranchCreate=new i("git-branch-create",{fontCharacter:"\\ea68"}),i.gitBranchDelete=new i("git-branch-delete",{fontCharacter:"\\ea68"}),i.sourceControl=new i("source-control",{fontCharacter:"\\ea68"}),i.mirror=new i("mirror",{fontCharacter:"\\ea69"}),i.mirrorPublic=new i("mirror-public",{fontCharacter:"\\ea69"}),i.star=new i("star",{fontCharacter:"\\ea6a"}),i.starAdd=new i("star-add",{fontCharacter:"\\ea6a"}),i.starDelete=new i("star-delete",{fontCharacter:"\\ea6a"}),i.starEmpty=new i("star-empty",{fontCharacter:"\\ea6a"}),i.comment=new i("comment",{fontCharacter:"\\ea6b"}),i.commentAdd=new i("comment-add",{fontCharacter:"\\ea6b"}),i.alert=new i("alert",{fontCharacter:"\\ea6c"}),i.warning=new i("warning",{fontCharacter:"\\ea6c"}),i.search=new i("search",{fontCharacter:"\\ea6d"}),i.searchSave=new i("search-save",{fontCharacter:"\\ea6d"}),i.logOut=new i("log-out",{fontCharacter:"\\ea6e"}),i.signOut=new i("sign-out",{fontCharacter:"\\ea6e"}),i.logIn=new i("log-in",{fontCharacter:"\\ea6f"}),i.signIn=new i("sign-in",{fontCharacter:"\\ea6f"}),i.eye=new i("eye",{fontCharacter:"\\ea70"}),i.eyeUnwatch=new i("eye-unwatch",{fontCharacter:"\\ea70"}),i.eyeWatch=new i("eye-watch",{fontCharacter:"\\ea70"}),i.circleFilled=new i("circle-filled",{fontCharacter:"\\ea71"}),i.primitiveDot=new i("primitive-dot",{fontCharacter:"\\ea71"}),i.closeDirty=new i("close-dirty",{fontCharacter:"\\ea71"}),i.debugBreakpoint=new i("debug-breakpoint",{fontCharacter:"\\ea71"}),i.debugBreakpointDisabled=new i("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),i.debugHint=new i("debug-hint",{fontCharacter:"\\ea71"}),i.primitiveSquare=new i("primitive-square",{fontCharacter:"\\ea72"}),i.edit=new i("edit",{fontCharacter:"\\ea73"}),i.pencil=new i("pencil",{fontCharacter:"\\ea73"}),i.info=new i("info",{fontCharacter:"\\ea74"}),i.issueOpened=new i("issue-opened",{fontCharacter:"\\ea74"}),i.gistPrivate=new i("gist-private",{fontCharacter:"\\ea75"}),i.gitForkPrivate=new i("git-fork-private",{fontCharacter:"\\ea75"}),i.lock=new i("lock",{fontCharacter:"\\ea75"}),i.mirrorPrivate=new i("mirror-private",{fontCharacter:"\\ea75"}),i.close=new i("close",{fontCharacter:"\\ea76"}),i.removeClose=new i("remove-close",{fontCharacter:"\\ea76"}),i.x=new i("x",{fontCharacter:"\\ea76"}),i.repoSync=new i("repo-sync",{fontCharacter:"\\ea77"}),i.sync=new i("sync",{fontCharacter:"\\ea77"}),i.clone=new i("clone",{fontCharacter:"\\ea78"}),i.desktopDownload=new i("desktop-download",{fontCharacter:"\\ea78"}),i.beaker=new i("beaker",{fontCharacter:"\\ea79"}),i.microscope=new i("microscope",{fontCharacter:"\\ea79"}),i.vm=new i("vm",{fontCharacter:"\\ea7a"}),i.deviceDesktop=new i("device-desktop",{fontCharacter:"\\ea7a"}),i.file=new i("file",{fontCharacter:"\\ea7b"}),i.fileText=new i("file-text",{fontCharacter:"\\ea7b"}),i.more=new i("more",{fontCharacter:"\\ea7c"}),i.ellipsis=new i("ellipsis",{fontCharacter:"\\ea7c"}),i.kebabHorizontal=new i("kebab-horizontal",{fontCharacter:"\\ea7c"}),i.mailReply=new i("mail-reply",{fontCharacter:"\\ea7d"}),i.reply=new i("reply",{fontCharacter:"\\ea7d"}),i.organization=new i("organization",{fontCharacter:"\\ea7e"}),i.organizationFilled=new i("organization-filled",{fontCharacter:"\\ea7e"}),i.organizationOutline=new i("organization-outline",{fontCharacter:"\\ea7e"}),i.newFile=new i("new-file",{fontCharacter:"\\ea7f"}),i.fileAdd=new i("file-add",{fontCharacter:"\\ea7f"}),i.newFolder=new i("new-folder",{fontCharacter:"\\ea80"}),i.fileDirectoryCreate=new i("file-directory-create",{fontCharacter:"\\ea80"}),i.trash=new i("trash",{fontCharacter:"\\ea81"}),i.trashcan=new i("trashcan",{fontCharacter:"\\ea81"}),i.history=new i("history",{fontCharacter:"\\ea82"}),i.clock=new i("clock",{fontCharacter:"\\ea82"}),i.folder=new i("folder",{fontCharacter:"\\ea83"}),i.fileDirectory=new i("file-directory",{fontCharacter:"\\ea83"}),i.symbolFolder=new i("symbol-folder",{fontCharacter:"\\ea83"}),i.logoGithub=new i("logo-github",{fontCharacter:"\\ea84"}),i.markGithub=new i("mark-github",{fontCharacter:"\\ea84"}),i.github=new i("github",{fontCharacter:"\\ea84"}),i.terminal=new i("terminal",{fontCharacter:"\\ea85"}),i.console=new i("console",{fontCharacter:"\\ea85"}),i.repl=new i("repl",{fontCharacter:"\\ea85"}),i.zap=new i("zap",{fontCharacter:"\\ea86"}),i.symbolEvent=new i("symbol-event",{fontCharacter:"\\ea86"}),i.error=new i("error",{fontCharacter:"\\ea87"}),i.stop=new i("stop",{fontCharacter:"\\ea87"}),i.variable=new i("variable",{fontCharacter:"\\ea88"}),i.symbolVariable=new i("symbol-variable",{fontCharacter:"\\ea88"}),i.array=new i("array",{fontCharacter:"\\ea8a"}),i.symbolArray=new i("symbol-array",{fontCharacter:"\\ea8a"}),i.symbolModule=new i("symbol-module",{fontCharacter:"\\ea8b"}),i.symbolPackage=new i("symbol-package",{fontCharacter:"\\ea8b"}),i.symbolNamespace=new i("symbol-namespace",{fontCharacter:"\\ea8b"}),i.symbolObject=new i("symbol-object",{fontCharacter:"\\ea8b"}),i.symbolMethod=new i("symbol-method",{fontCharacter:"\\ea8c"}),i.symbolFunction=new i("symbol-function",{fontCharacter:"\\ea8c"}),i.symbolConstructor=new i("symbol-constructor",{fontCharacter:"\\ea8c"}),i.symbolBoolean=new i("symbol-boolean",{fontCharacter:"\\ea8f"}),i.symbolNull=new i("symbol-null",{fontCharacter:"\\ea8f"}),i.symbolNumeric=new i("symbol-numeric",{fontCharacter:"\\ea90"}),i.symbolNumber=new i("symbol-number",{fontCharacter:"\\ea90"}),i.symbolStructure=new i("symbol-structure",{fontCharacter:"\\ea91"}),i.symbolStruct=new i("symbol-struct",{fontCharacter:"\\ea91"}),i.symbolParameter=new i("symbol-parameter",{fontCharacter:"\\ea92"}),i.symbolTypeParameter=new i("symbol-type-parameter",{fontCharacter:"\\ea92"}),i.symbolKey=new i("symbol-key",{fontCharacter:"\\ea93"}),i.symbolText=new i("symbol-text",{fontCharacter:"\\ea93"}),i.symbolReference=new i("symbol-reference",{fontCharacter:"\\ea94"}),i.goToFile=new i("go-to-file",{fontCharacter:"\\ea94"}),i.symbolEnum=new i("symbol-enum",{fontCharacter:"\\ea95"}),i.symbolValue=new i("symbol-value",{fontCharacter:"\\ea95"}),i.symbolRuler=new i("symbol-ruler",{fontCharacter:"\\ea96"}),i.symbolUnit=new i("symbol-unit",{fontCharacter:"\\ea96"}),i.activateBreakpoints=new i("activate-breakpoints",{fontCharacter:"\\ea97"}),i.archive=new i("archive",{fontCharacter:"\\ea98"}),i.arrowBoth=new i("arrow-both",{fontCharacter:"\\ea99"}),i.arrowDown=new i("arrow-down",{fontCharacter:"\\ea9a"}),i.arrowLeft=new i("arrow-left",{fontCharacter:"\\ea9b"}),i.arrowRight=new i("arrow-right",{fontCharacter:"\\ea9c"}),i.arrowSmallDown=new i("arrow-small-down",{fontCharacter:"\\ea9d"}),i.arrowSmallLeft=new i("arrow-small-left",{fontCharacter:"\\ea9e"}),i.arrowSmallRight=new i("arrow-small-right",{fontCharacter:"\\ea9f"}),i.arrowSmallUp=new i("arrow-small-up",{fontCharacter:"\\eaa0"}),i.arrowUp=new i("arrow-up",{fontCharacter:"\\eaa1"}),i.bell=new i("bell",{fontCharacter:"\\eaa2"}),i.bold=new i("bold",{fontCharacter:"\\eaa3"}),i.book=new i("book",{fontCharacter:"\\eaa4"}),i.bookmark=new i("bookmark",{fontCharacter:"\\eaa5"}),i.debugBreakpointConditionalUnverified=new i("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),i.debugBreakpointConditional=new i("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),i.debugBreakpointConditionalDisabled=new i("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),i.debugBreakpointDataUnverified=new i("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),i.debugBreakpointData=new i("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),i.debugBreakpointDataDisabled=new i("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),i.debugBreakpointLogUnverified=new i("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),i.debugBreakpointLog=new i("debug-breakpoint-log",{fontCharacter:"\\eaab"}),i.debugBreakpointLogDisabled=new i("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),i.briefcase=new i("briefcase",{fontCharacter:"\\eaac"}),i.broadcast=new i("broadcast",{fontCharacter:"\\eaad"}),i.browser=new i("browser",{fontCharacter:"\\eaae"}),i.bug=new i("bug",{fontCharacter:"\\eaaf"}),i.calendar=new i("calendar",{fontCharacter:"\\eab0"}),i.caseSensitive=new i("case-sensitive",{fontCharacter:"\\eab1"}),i.check=new i("check",{fontCharacter:"\\eab2"}),i.checklist=new i("checklist",{fontCharacter:"\\eab3"}),i.chevronDown=new i("chevron-down",{fontCharacter:"\\eab4"}),i.dropDownButton=new i("drop-down-button",i.chevronDown.definition),i.chevronLeft=new i("chevron-left",{fontCharacter:"\\eab5"}),i.chevronRight=new i("chevron-right",{fontCharacter:"\\eab6"}),i.chevronUp=new i("chevron-up",{fontCharacter:"\\eab7"}),i.chromeClose=new i("chrome-close",{fontCharacter:"\\eab8"}),i.chromeMaximize=new i("chrome-maximize",{fontCharacter:"\\eab9"}),i.chromeMinimize=new i("chrome-minimize",{fontCharacter:"\\eaba"}),i.chromeRestore=new i("chrome-restore",{fontCharacter:"\\eabb"}),i.circleOutline=new i("circle-outline",{fontCharacter:"\\eabc"}),i.debugBreakpointUnverified=new i("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),i.circleSlash=new i("circle-slash",{fontCharacter:"\\eabd"}),i.circuitBoard=new i("circuit-board",{fontCharacter:"\\eabe"}),i.clearAll=new i("clear-all",{fontCharacter:"\\eabf"}),i.clippy=new i("clippy",{fontCharacter:"\\eac0"}),i.closeAll=new i("close-all",{fontCharacter:"\\eac1"}),i.cloudDownload=new i("cloud-download",{fontCharacter:"\\eac2"}),i.cloudUpload=new i("cloud-upload",{fontCharacter:"\\eac3"}),i.code=new i("code",{fontCharacter:"\\eac4"}),i.collapseAll=new i("collapse-all",{fontCharacter:"\\eac5"}),i.colorMode=new i("color-mode",{fontCharacter:"\\eac6"}),i.commentDiscussion=new i("comment-discussion",{fontCharacter:"\\eac7"}),i.compareChanges=new i("compare-changes",{fontCharacter:"\\eafd"}),i.creditCard=new i("credit-card",{fontCharacter:"\\eac9"}),i.dash=new i("dash",{fontCharacter:"\\eacc"}),i.dashboard=new i("dashboard",{fontCharacter:"\\eacd"}),i.database=new i("database",{fontCharacter:"\\eace"}),i.debugContinue=new i("debug-continue",{fontCharacter:"\\eacf"}),i.debugDisconnect=new i("debug-disconnect",{fontCharacter:"\\ead0"}),i.debugPause=new i("debug-pause",{fontCharacter:"\\ead1"}),i.debugRestart=new i("debug-restart",{fontCharacter:"\\ead2"}),i.debugStart=new i("debug-start",{fontCharacter:"\\ead3"}),i.debugStepInto=new i("debug-step-into",{fontCharacter:"\\ead4"}),i.debugStepOut=new i("debug-step-out",{fontCharacter:"\\ead5"}),i.debugStepOver=new i("debug-step-over",{fontCharacter:"\\ead6"}),i.debugStop=new i("debug-stop",{fontCharacter:"\\ead7"}),i.debug=new i("debug",{fontCharacter:"\\ead8"}),i.deviceCameraVideo=new i("device-camera-video",{fontCharacter:"\\ead9"}),i.deviceCamera=new i("device-camera",{fontCharacter:"\\eada"}),i.deviceMobile=new i("device-mobile",{fontCharacter:"\\eadb"}),i.diffAdded=new i("diff-added",{fontCharacter:"\\eadc"}),i.diffIgnored=new i("diff-ignored",{fontCharacter:"\\eadd"}),i.diffModified=new i("diff-modified",{fontCharacter:"\\eade"}),i.diffRemoved=new i("diff-removed",{fontCharacter:"\\eadf"}),i.diffRenamed=new i("diff-renamed",{fontCharacter:"\\eae0"}),i.diff=new i("diff",{fontCharacter:"\\eae1"}),i.discard=new i("discard",{fontCharacter:"\\eae2"}),i.editorLayout=new i("editor-layout",{fontCharacter:"\\eae3"}),i.emptyWindow=new i("empty-window",{fontCharacter:"\\eae4"}),i.exclude=new i("exclude",{fontCharacter:"\\eae5"}),i.extensions=new i("extensions",{fontCharacter:"\\eae6"}),i.eyeClosed=new i("eye-closed",{fontCharacter:"\\eae7"}),i.fileBinary=new i("file-binary",{fontCharacter:"\\eae8"}),i.fileCode=new i("file-code",{fontCharacter:"\\eae9"}),i.fileMedia=new i("file-media",{fontCharacter:"\\eaea"}),i.filePdf=new i("file-pdf",{fontCharacter:"\\eaeb"}),i.fileSubmodule=new i("file-submodule",{fontCharacter:"\\eaec"}),i.fileSymlinkDirectory=new i("file-symlink-directory",{fontCharacter:"\\eaed"}),i.fileSymlinkFile=new i("file-symlink-file",{fontCharacter:"\\eaee"}),i.fileZip=new i("file-zip",{fontCharacter:"\\eaef"}),i.files=new i("files",{fontCharacter:"\\eaf0"}),i.filter=new i("filter",{fontCharacter:"\\eaf1"}),i.flame=new i("flame",{fontCharacter:"\\eaf2"}),i.foldDown=new i("fold-down",{fontCharacter:"\\eaf3"}),i.foldUp=new i("fold-up",{fontCharacter:"\\eaf4"}),i.fold=new i("fold",{fontCharacter:"\\eaf5"}),i.folderActive=new i("folder-active",{fontCharacter:"\\eaf6"}),i.folderOpened=new i("folder-opened",{fontCharacter:"\\eaf7"}),i.gear=new i("gear",{fontCharacter:"\\eaf8"}),i.gift=new i("gift",{fontCharacter:"\\eaf9"}),i.gistSecret=new i("gist-secret",{fontCharacter:"\\eafa"}),i.gist=new i("gist",{fontCharacter:"\\eafb"}),i.gitCommit=new i("git-commit",{fontCharacter:"\\eafc"}),i.gitCompare=new i("git-compare",{fontCharacter:"\\eafd"}),i.gitMerge=new i("git-merge",{fontCharacter:"\\eafe"}),i.githubAction=new i("github-action",{fontCharacter:"\\eaff"}),i.githubAlt=new i("github-alt",{fontCharacter:"\\eb00"}),i.globe=new i("globe",{fontCharacter:"\\eb01"}),i.grabber=new i("grabber",{fontCharacter:"\\eb02"}),i.graph=new i("graph",{fontCharacter:"\\eb03"}),i.gripper=new i("gripper",{fontCharacter:"\\eb04"}),i.heart=new i("heart",{fontCharacter:"\\eb05"}),i.home=new i("home",{fontCharacter:"\\eb06"}),i.horizontalRule=new i("horizontal-rule",{fontCharacter:"\\eb07"}),i.hubot=new i("hubot",{fontCharacter:"\\eb08"}),i.inbox=new i("inbox",{fontCharacter:"\\eb09"}),i.issueClosed=new i("issue-closed",{fontCharacter:"\\eba4"}),i.issueReopened=new i("issue-reopened",{fontCharacter:"\\eb0b"}),i.issues=new i("issues",{fontCharacter:"\\eb0c"}),i.italic=new i("italic",{fontCharacter:"\\eb0d"}),i.jersey=new i("jersey",{fontCharacter:"\\eb0e"}),i.json=new i("json",{fontCharacter:"\\eb0f"}),i.kebabVertical=new i("kebab-vertical",{fontCharacter:"\\eb10"}),i.key=new i("key",{fontCharacter:"\\eb11"}),i.law=new i("law",{fontCharacter:"\\eb12"}),i.lightbulbAutofix=new i("lightbulb-autofix",{fontCharacter:"\\eb13"}),i.linkExternal=new i("link-external",{fontCharacter:"\\eb14"}),i.link=new i("link",{fontCharacter:"\\eb15"}),i.listOrdered=new i("list-ordered",{fontCharacter:"\\eb16"}),i.listUnordered=new i("list-unordered",{fontCharacter:"\\eb17"}),i.liveShare=new i("live-share",{fontCharacter:"\\eb18"}),i.loading=new i("loading",{fontCharacter:"\\eb19"}),i.location=new i("location",{fontCharacter:"\\eb1a"}),i.mailRead=new i("mail-read",{fontCharacter:"\\eb1b"}),i.mail=new i("mail",{fontCharacter:"\\eb1c"}),i.markdown=new i("markdown",{fontCharacter:"\\eb1d"}),i.megaphone=new i("megaphone",{fontCharacter:"\\eb1e"}),i.mention=new i("mention",{fontCharacter:"\\eb1f"}),i.milestone=new i("milestone",{fontCharacter:"\\eb20"}),i.mortarBoard=new i("mortar-board",{fontCharacter:"\\eb21"}),i.move=new i("move",{fontCharacter:"\\eb22"}),i.multipleWindows=new i("multiple-windows",{fontCharacter:"\\eb23"}),i.mute=new i("mute",{fontCharacter:"\\eb24"}),i.noNewline=new i("no-newline",{fontCharacter:"\\eb25"}),i.note=new i("note",{fontCharacter:"\\eb26"}),i.octoface=new i("octoface",{fontCharacter:"\\eb27"}),i.openPreview=new i("open-preview",{fontCharacter:"\\eb28"}),i.package_=new i("package",{fontCharacter:"\\eb29"}),i.paintcan=new i("paintcan",{fontCharacter:"\\eb2a"}),i.pin=new i("pin",{fontCharacter:"\\eb2b"}),i.play=new i("play",{fontCharacter:"\\eb2c"}),i.run=new i("run",{fontCharacter:"\\eb2c"}),i.plug=new i("plug",{fontCharacter:"\\eb2d"}),i.preserveCase=new i("preserve-case",{fontCharacter:"\\eb2e"}),i.preview=new i("preview",{fontCharacter:"\\eb2f"}),i.project=new i("project",{fontCharacter:"\\eb30"}),i.pulse=new i("pulse",{fontCharacter:"\\eb31"}),i.question=new i("question",{fontCharacter:"\\eb32"}),i.quote=new i("quote",{fontCharacter:"\\eb33"}),i.radioTower=new i("radio-tower",{fontCharacter:"\\eb34"}),i.reactions=new i("reactions",{fontCharacter:"\\eb35"}),i.references=new i("references",{fontCharacter:"\\eb36"}),i.refresh=new i("refresh",{fontCharacter:"\\eb37"}),i.regex=new i("regex",{fontCharacter:"\\eb38"}),i.remoteExplorer=new i("remote-explorer",{fontCharacter:"\\eb39"}),i.remote=new i("remote",{fontCharacter:"\\eb3a"}),i.remove=new i("remove",{fontCharacter:"\\eb3b"}),i.replaceAll=new i("replace-all",{fontCharacter:"\\eb3c"}),i.replace=new i("replace",{fontCharacter:"\\eb3d"}),i.repoClone=new i("repo-clone",{fontCharacter:"\\eb3e"}),i.repoForcePush=new i("repo-force-push",{fontCharacter:"\\eb3f"}),i.repoPull=new i("repo-pull",{fontCharacter:"\\eb40"}),i.repoPush=new i("repo-push",{fontCharacter:"\\eb41"}),i.report=new i("report",{fontCharacter:"\\eb42"}),i.requestChanges=new i("request-changes",{fontCharacter:"\\eb43"}),i.rocket=new i("rocket",{fontCharacter:"\\eb44"}),i.rootFolderOpened=new i("root-folder-opened",{fontCharacter:"\\eb45"}),i.rootFolder=new i("root-folder",{fontCharacter:"\\eb46"}),i.rss=new i("rss",{fontCharacter:"\\eb47"}),i.ruby=new i("ruby",{fontCharacter:"\\eb48"}),i.saveAll=new i("save-all",{fontCharacter:"\\eb49"}),i.saveAs=new i("save-as",{fontCharacter:"\\eb4a"}),i.save=new i("save",{fontCharacter:"\\eb4b"}),i.screenFull=new i("screen-full",{fontCharacter:"\\eb4c"}),i.screenNormal=new i("screen-normal",{fontCharacter:"\\eb4d"}),i.searchStop=new i("search-stop",{fontCharacter:"\\eb4e"}),i.server=new i("server",{fontCharacter:"\\eb50"}),i.settingsGear=new i("settings-gear",{fontCharacter:"\\eb51"}),i.settings=new i("settings",{fontCharacter:"\\eb52"}),i.shield=new i("shield",{fontCharacter:"\\eb53"}),i.smiley=new i("smiley",{fontCharacter:"\\eb54"}),i.sortPrecedence=new i("sort-precedence",{fontCharacter:"\\eb55"}),i.splitHorizontal=new i("split-horizontal",{fontCharacter:"\\eb56"}),i.splitVertical=new i("split-vertical",{fontCharacter:"\\eb57"}),i.squirrel=new i("squirrel",{fontCharacter:"\\eb58"}),i.starFull=new i("star-full",{fontCharacter:"\\eb59"}),i.starHalf=new i("star-half",{fontCharacter:"\\eb5a"}),i.symbolClass=new i("symbol-class",{fontCharacter:"\\eb5b"}),i.symbolColor=new i("symbol-color",{fontCharacter:"\\eb5c"}),i.symbolCustomColor=new i("symbol-customcolor",{fontCharacter:"\\eb5c"}),i.symbolConstant=new i("symbol-constant",{fontCharacter:"\\eb5d"}),i.symbolEnumMember=new i("symbol-enum-member",{fontCharacter:"\\eb5e"}),i.symbolField=new i("symbol-field",{fontCharacter:"\\eb5f"}),i.symbolFile=new i("symbol-file",{fontCharacter:"\\eb60"}),i.symbolInterface=new i("symbol-interface",{fontCharacter:"\\eb61"}),i.symbolKeyword=new i("symbol-keyword",{fontCharacter:"\\eb62"}),i.symbolMisc=new i("symbol-misc",{fontCharacter:"\\eb63"}),i.symbolOperator=new i("symbol-operator",{fontCharacter:"\\eb64"}),i.symbolProperty=new i("symbol-property",{fontCharacter:"\\eb65"}),i.wrench=new i("wrench",{fontCharacter:"\\eb65"}),i.wrenchSubaction=new i("wrench-subaction",{fontCharacter:"\\eb65"}),i.symbolSnippet=new i("symbol-snippet",{fontCharacter:"\\eb66"}),i.tasklist=new i("tasklist",{fontCharacter:"\\eb67"}),i.telescope=new i("telescope",{fontCharacter:"\\eb68"}),i.textSize=new i("text-size",{fontCharacter:"\\eb69"}),i.threeBars=new i("three-bars",{fontCharacter:"\\eb6a"}),i.thumbsdown=new i("thumbsdown",{fontCharacter:"\\eb6b"}),i.thumbsup=new i("thumbsup",{fontCharacter:"\\eb6c"}),i.tools=new i("tools",{fontCharacter:"\\eb6d"}),i.triangleDown=new i("triangle-down",{fontCharacter:"\\eb6e"}),i.triangleLeft=new i("triangle-left",{fontCharacter:"\\eb6f"}),i.triangleRight=new i("triangle-right",{fontCharacter:"\\eb70"}),i.triangleUp=new i("triangle-up",{fontCharacter:"\\eb71"}),i.twitter=new i("twitter",{fontCharacter:"\\eb72"}),i.unfold=new i("unfold",{fontCharacter:"\\eb73"}),i.unlock=new i("unlock",{fontCharacter:"\\eb74"}),i.unmute=new i("unmute",{fontCharacter:"\\eb75"}),i.unverified=new i("unverified",{fontCharacter:"\\eb76"}),i.verified=new i("verified",{fontCharacter:"\\eb77"}),i.versions=new i("versions",{fontCharacter:"\\eb78"}),i.vmActive=new i("vm-active",{fontCharacter:"\\eb79"}),i.vmOutline=new i("vm-outline",{fontCharacter:"\\eb7a"}),i.vmRunning=new i("vm-running",{fontCharacter:"\\eb7b"}),i.watch=new i("watch",{fontCharacter:"\\eb7c"}),i.whitespace=new i("whitespace",{fontCharacter:"\\eb7d"}),i.wholeWord=new i("whole-word",{fontCharacter:"\\eb7e"}),i.window=new i("window",{fontCharacter:"\\eb7f"}),i.wordWrap=new i("word-wrap",{fontCharacter:"\\eb80"}),i.zoomIn=new i("zoom-in",{fontCharacter:"\\eb81"}),i.zoomOut=new i("zoom-out",{fontCharacter:"\\eb82"}),i.listFilter=new i("list-filter",{fontCharacter:"\\eb83"}),i.listFlat=new i("list-flat",{fontCharacter:"\\eb84"}),i.listSelection=new i("list-selection",{fontCharacter:"\\eb85"}),i.selection=new i("selection",{fontCharacter:"\\eb85"}),i.listTree=new i("list-tree",{fontCharacter:"\\eb86"}),i.debugBreakpointFunctionUnverified=new i("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),i.debugBreakpointFunction=new i("debug-breakpoint-function",{fontCharacter:"\\eb88"}),i.debugBreakpointFunctionDisabled=new i("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),i.debugStackframeActive=new i("debug-stackframe-active",{fontCharacter:"\\eb89"}),i.circleSmallFilled=new i("circle-small-filled",{fontCharacter:"\\eb8a"}),i.debugStackframeDot=new i("debug-stackframe-dot",i.circleSmallFilled.definition),i.debugStackframe=new i("debug-stackframe",{fontCharacter:"\\eb8b"}),i.debugStackframeFocused=new i("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),i.debugBreakpointUnsupported=new i("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),i.symbolString=new i("symbol-string",{fontCharacter:"\\eb8d"}),i.debugReverseContinue=new i("debug-reverse-continue",{fontCharacter:"\\eb8e"}),i.debugStepBack=new i("debug-step-back",{fontCharacter:"\\eb8f"}),i.debugRestartFrame=new i("debug-restart-frame",{fontCharacter:"\\eb90"}),i.callIncoming=new i("call-incoming",{fontCharacter:"\\eb92"}),i.callOutgoing=new i("call-outgoing",{fontCharacter:"\\eb93"}),i.menu=new i("menu",{fontCharacter:"\\eb94"}),i.expandAll=new i("expand-all",{fontCharacter:"\\eb95"}),i.feedback=new i("feedback",{fontCharacter:"\\eb96"}),i.groupByRefType=new i("group-by-ref-type",{fontCharacter:"\\eb97"}),i.ungroupByRefType=new i("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),i.account=new i("account",{fontCharacter:"\\eb99"}),i.bellDot=new i("bell-dot",{fontCharacter:"\\eb9a"}),i.debugConsole=new i("debug-console",{fontCharacter:"\\eb9b"}),i.library=new i("library",{fontCharacter:"\\eb9c"}),i.output=new i("output",{fontCharacter:"\\eb9d"}),i.runAll=new i("run-all",{fontCharacter:"\\eb9e"}),i.syncIgnored=new i("sync-ignored",{fontCharacter:"\\eb9f"}),i.pinned=new i("pinned",{fontCharacter:"\\eba0"}),i.githubInverted=new i("github-inverted",{fontCharacter:"\\eba1"}),i.debugAlt=new i("debug-alt",{fontCharacter:"\\eb91"}),i.serverProcess=new i("server-process",{fontCharacter:"\\eba2"}),i.serverEnvironment=new i("server-environment",{fontCharacter:"\\eba3"}),i.pass=new i("pass",{fontCharacter:"\\eba4"}),i.stopCircle=new i("stop-circle",{fontCharacter:"\\eba5"}),i.playCircle=new i("play-circle",{fontCharacter:"\\eba6"}),i.record=new i("record",{fontCharacter:"\\eba7"}),i.debugAltSmall=new i("debug-alt-small",{fontCharacter:"\\eba8"}),i.vmConnect=new i("vm-connect",{fontCharacter:"\\eba9"}),i.cloud=new i("cloud",{fontCharacter:"\\ebaa"}),i.merge=new i("merge",{fontCharacter:"\\ebab"}),i.exportIcon=new i("export",{fontCharacter:"\\ebac"}),i.graphLeft=new i("graph-left",{fontCharacter:"\\ebad"}),i.magnet=new i("magnet",{fontCharacter:"\\ebae"}),i.notebook=new i("notebook",{fontCharacter:"\\ebaf"}),i.redo=new i("redo",{fontCharacter:"\\ebb0"}),i.checkAll=new i("check-all",{fontCharacter:"\\ebb1"}),i.pinnedDirty=new i("pinned-dirty",{fontCharacter:"\\ebb2"}),i.passFilled=new i("pass-filled",{fontCharacter:"\\ebb3"}),i.circleLargeFilled=new i("circle-large-filled",{fontCharacter:"\\ebb4"}),i.circleLargeOutline=new i("circle-large-outline",{fontCharacter:"\\ebb5"}),i.combine=new i("combine",{fontCharacter:"\\ebb6"}),i.gather=new i("gather",{fontCharacter:"\\ebb6"}),i.table=new i("table",{fontCharacter:"\\ebb7"}),i.variableGroup=new i("variable-group",{fontCharacter:"\\ebb8"}),i.typeHierarchy=new i("type-hierarchy",{fontCharacter:"\\ebb9"}),i.typeHierarchySub=new i("type-hierarchy-sub",{fontCharacter:"\\ebba"}),i.typeHierarchySuper=new i("type-hierarchy-super",{fontCharacter:"\\ebbb"}),i.gitPullRequestCreate=new i("git-pull-request-create",{fontCharacter:"\\ebbc"}),i.runAbove=new i("run-above",{fontCharacter:"\\ebbd"}),i.runBelow=new i("run-below",{fontCharacter:"\\ebbe"}),i.notebookTemplate=new i("notebook-template",{fontCharacter:"\\ebbf"}),i.debugRerun=new i("debug-rerun",{fontCharacter:"\\ebc0"}),i.workspaceTrusted=new i("workspace-trusted",{fontCharacter:"\\ebc1"}),i.workspaceUntrusted=new i("workspace-untrusted",{fontCharacter:"\\ebc2"}),i.workspaceUnspecified=new i("workspace-unspecified",{fontCharacter:"\\ebc3"}),i.terminalCmd=new i("terminal-cmd",{fontCharacter:"\\ebc4"}),i.terminalDebian=new i("terminal-debian",{fontCharacter:"\\ebc5"}),i.terminalLinux=new i("terminal-linux",{fontCharacter:"\\ebc6"}),i.terminalPowershell=new i("terminal-powershell",{fontCharacter:"\\ebc7"}),i.terminalTmux=new i("terminal-tmux",{fontCharacter:"\\ebc8"}),i.terminalUbuntu=new i("terminal-ubuntu",{fontCharacter:"\\ebc9"}),i.terminalBash=new i("terminal-bash",{fontCharacter:"\\ebca"}),i.arrowSwap=new i("arrow-swap",{fontCharacter:"\\ebcb"}),i.copy=new i("copy",{fontCharacter:"\\ebcc"}),i.personAdd=new i("person-add",{fontCharacter:"\\ebcd"}),i.filterFilled=new i("filter-filled",{fontCharacter:"\\ebce"}),i.wand=new i("wand",{fontCharacter:"\\ebcf"}),i.debugLineByLine=new i("debug-line-by-line",{fontCharacter:"\\ebd0"}),i.inspect=new i("inspect",{fontCharacter:"\\ebd1"}),i.layers=new i("layers",{fontCharacter:"\\ebd2"}),i.layersDot=new i("layers-dot",{fontCharacter:"\\ebd3"}),i.layersActive=new i("layers-active",{fontCharacter:"\\ebd4"}),i.compass=new i("compass",{fontCharacter:"\\ebd5"}),i.compassDot=new i("compass-dot",{fontCharacter:"\\ebd6"}),i.compassActive=new i("compass-active",{fontCharacter:"\\ebd7"}),i.azure=new i("azure",{fontCharacter:"\\ebd8"}),i.issueDraft=new i("issue-draft",{fontCharacter:"\\ebd9"}),i.gitPullRequestClosed=new i("git-pull-request-closed",{fontCharacter:"\\ebda"}),i.gitPullRequestDraft=new i("git-pull-request-draft",{fontCharacter:"\\ebdb"}),i.debugAll=new i("debug-all",{fontCharacter:"\\ebdc"}),i.debugCoverage=new i("debug-coverage",{fontCharacter:"\\ebdd"}),i.runErrors=new i("run-errors",{fontCharacter:"\\ebde"}),i.folderLibrary=new i("folder-library",{fontCharacter:"\\ebdf"}),i.debugContinueSmall=new i("debug-continue-small",{fontCharacter:"\\ebe0"}),i.beakerStop=new i("beaker-stop",{fontCharacter:"\\ebe1"}),i.graphLine=new i("graph-line",{fontCharacter:"\\ebe2"}),i.graphScatter=new i("graph-scatter",{fontCharacter:"\\ebe3"}),i.pieChart=new i("pie-chart",{fontCharacter:"\\ebe4"}),i.bracket=new i("bracket",i.json.definition),i.bracketDot=new i("bracket-dot",{fontCharacter:"\\ebe5"}),i.bracketError=new i("bracket-error",{fontCharacter:"\\ebe6"}),i.lockSmall=new i("lock-small",{fontCharacter:"\\ebe7"}),i.azureDevops=new i("azure-devops",{fontCharacter:"\\ebe8"}),i.verifiedFilled=new i("verified-filled",{fontCharacter:"\\ebe9"}),i.newLine=new i("newline",{fontCharacter:"\\ebea"}),i.layout=new i("layout",{fontCharacter:"\\ebeb"}),i.layoutActivitybarLeft=new i("layout-activitybar-left",{fontCharacter:"\\ebec"}),i.layoutActivitybarRight=new i("layout-activitybar-right",{fontCharacter:"\\ebed"}),i.layoutPanelLeft=new i("layout-panel-left",{fontCharacter:"\\ebee"}),i.layoutPanelCenter=new i("layout-panel-center",{fontCharacter:"\\ebef"}),i.layoutPanelJustify=new i("layout-panel-justify",{fontCharacter:"\\ebf0"}),i.layoutPanelRight=new i("layout-panel-right",{fontCharacter:"\\ebf1"}),i.layoutPanel=new i("layout-panel",{fontCharacter:"\\ebf2"}),i.layoutSidebarLeft=new i("layout-sidebar-left",{fontCharacter:"\\ebf3"}),i.layoutSidebarRight=new i("layout-sidebar-right",{fontCharacter:"\\ebf4"}),i.layoutStatusbar=new i("layout-statusbar",{fontCharacter:"\\ebf5"}),i.layoutMenubar=new i("layout-menubar",{fontCharacter:"\\ebf6"}),i.layoutCentered=new i("layout-centered",{fontCharacter:"\\ebf7"}),i.layoutSidebarRightOff=new i("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),i.layoutPanelOff=new i("layout-panel-off",{fontCharacter:"\\ec01"}),i.layoutSidebarLeftOff=new i("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),i.target=new i("target",{fontCharacter:"\\ebf8"}),i.indent=new i("indent",{fontCharacter:"\\ebf9"}),i.recordSmall=new i("record-small",{fontCharacter:"\\ebfa"}),i.errorSmall=new i("error-small",{fontCharacter:"\\ebfb"}),i.arrowCircleDown=new i("arrow-circle-down",{fontCharacter:"\\ebfc"}),i.arrowCircleLeft=new i("arrow-circle-left",{fontCharacter:"\\ebfd"}),i.arrowCircleRight=new i("arrow-circle-right",{fontCharacter:"\\ebfe"}),i.arrowCircleUp=new i("arrow-circle-up",{fontCharacter:"\\ebff"}),i.heartFilled=new i("heart-filled",{fontCharacter:"\\ec04"}),i.map=new i("map",{fontCharacter:"\\ec05"}),i.mapFilled=new i("map-filled",{fontCharacter:"\\ec06"}),i.circleSmall=new i("circle-small",{fontCharacter:"\\ec07"}),i.bellSlash=new i("bell-slash",{fontCharacter:"\\ec08"}),i.bellSlashDot=new i("bell-slash-dot",{fontCharacter:"\\ec09"}),i.commentUnresolved=new i("comment-unresolved",{fontCharacter:"\\ec0a"}),i.dialogError=new i("dialog-error",i.error.definition),i.dialogWarning=new i("dialog-warning",i.warning.definition),i.dialogInfo=new i("dialog-info",i.info.definition),i.dialogClose=new i("dialog-close",i.close.definition),i.treeItemExpanded=new i("tree-item-expanded",i.chevronDown.definition),i.treeFilterOnTypeOn=new i("tree-filter-on-type-on",i.listFilter.definition),i.treeFilterOnTypeOff=new i("tree-filter-on-type-off",i.listSelection.definition),i.treeFilterClear=new i("tree-filter-clear",i.close.definition),i.treeItemLoading=new i("tree-item-loading",i.loading.definition),i.menuSelection=new i("menu-selection",i.check.definition),i.menuSubmenu=new i("menu-submenu",i.chevronRight.definition),i.menuBarMore=new i("menubar-more",i.more.definition),i.scrollbarButtonLeft=new i("scrollbar-button-left",i.triangleLeft.definition),i.scrollbarButtonRight=new i("scrollbar-button-right",i.triangleRight.definition),i.scrollbarButtonUp=new i("scrollbar-button-up",i.triangleUp.definition),i.scrollbarButtonDown=new i("scrollbar-button-down",i.triangleDown.definition),i.toolBarMore=new i("toolbar-more",i.more.definition),i.quickInputBack=new i("quick-input-back",i.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function r(e){if(e instanceof i)return["codicon","codicon-"+e.id];const n=t.exec(e.id);if(!n)return r(i.error);const[,a,o]=n,s=["codicon","codicon-"+a];return o&&s.push("codicon-modifier-"+o.substr(1)),s}e.asClassNameArray=r,e.asClassName=function(e){return r(e).join(" ")},e.asCSSSelector=function(e){return"."+r(e).join(".")}}(a||(a={}))},75909:(e,t,r)=>{"use strict";r.d(t,{AL:()=>l,D7:()=>m,EM:()=>f,MB:()=>c,M_:()=>a,Qg:()=>d,aD:()=>u,cU:()=>o,dz:()=>i,iH:()=>h});const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i(e){c(e)||n.onUnexpectedError(e)}function a(e){c(e)||n.onUnexpectedExternalError(e)}function o(e){if(e instanceof Error){const{name:t,message:r}=e;return{$isError:!0,name:t,message:r,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const s="Canceled";function c(e){return e instanceof l||e instanceof Error&&e.name===s&&e.message===s}class l extends Error{constructor(){super(s),this.name=this.message}}function u(){const e=new Error(s);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class f extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"ErrorNoTelemetry"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},55808:(e,t,r)=>{"use strict";r.d(t,{AS:()=>h,BO:()=>_,Cm:()=>m,HE:()=>b,St:()=>v,Xm:()=>d,jG:()=>g,lC:()=>l,mp:()=>w,qE:()=>f,s:()=>p});var n=r(8663),i=r(16624);let a=null;function o(e){return null===a||void 0===a||a.trackDisposable(e),e}function s(e){null===a||void 0===a||a.markAsDisposed(e)}function c(e,t){null===a||void 0===a||a.setParent(e,t)}function l(e){return null===a||void 0===a||a.markAsSingleton(e),e}class u extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function d(e){return"function"===typeof e.dispose&&0===e.dispose.length}function h(e){if(i.f.is(e)){const r=[];for(const n of e)if(n)try{n.dispose()}catch(t){r.push(t)}if(1===r.length)throw r[0];if(r.length>1)throw new u(r);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=p((()=>h(e)));return function(e,t){if(a)for(const r of e)a.setParent(r,t)}(e,t),t}function p(e){const t=o({dispose:(0,n.O)((()=>{s(t),e()}))});return t}class m{constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(s(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{h(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e,this),this._isDisposed?m.DISABLE_DISPOSED_WARNING:this._toDispose.add(e),e}}m.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new m,o(this),c(this._store,this)}dispose(){s(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}g.None=Object.freeze({dispose(){}});class b{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&c(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,s(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&c(e,null),e}}class w{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,o(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>void 0!==t,this.dispose=()=>{t&&(t(),t=void 0,s(this))},this}}class _{constructor(e){this.object=e}dispose(){}}},3688:(e,t,r)=>{"use strict";r.d(t,{C1:()=>a,Ym:()=>n,kF:()=>i});const n={ctrlCmd:!1,alt:!1};var i,a;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(i||(i={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(a||(a={}));new class{constructor(e){this.options=e}}},43077:(e,t,r)=>{"use strict";r.d(t,{Gn:()=>p,JJ:()=>c,vf:()=>f});var n=r(83921),i=r(11572),a=r(35819),o=r(11332),s=r(1097);const c=Object.freeze({id:"editor",order:5,type:"object",title:a.kg("editorConfigurationTitle","Editor"),scope:5}),l=Object.assign(Object.assign({},c),{properties:{"editor.tabSize":{type:"number",default:i.R.tabSize,minimum:1,markdownDescription:a.kg("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:i.R.insertSpaces,markdownDescription:a.kg("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:i.R.detectIndentation,markdownDescription:a.kg("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:i.R.trimAutoWhitespace,description:a.kg("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:i.R.largeFileOptimizations,description:a.kg("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:a.kg("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[a.kg("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),a.kg("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),a.kg("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:a.kg("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[a.kg("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),a.kg("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),a.kg("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:a.kg("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:a.kg("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:a.kg("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:["array","null"],default:null,description:a.kg("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:a.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:a.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:a.kg("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:a.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:a.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:a.kg("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:a.kg("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:a.kg("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:!0,description:a.kg("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:a.kg("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:a.kg("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:a.kg("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[a.kg("wordWrap.off","Lines will never wrap."),a.kg("wordWrap.on","Lines will wrap at the viewport width."),a.kg("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});for(const m of n.BE){const e=m.schema;if("undefined"!==typeof e)if("undefined"!==typeof(u=e).type||"undefined"!==typeof u.anyOf)l.properties[`editor.${m.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(l.properties[t]=e[t])}var u;let d=null;function h(){return null===d&&(d=Object.create(null),Object.keys(l.properties).forEach((e=>{d[e]=!0}))),d}function f(e){return h()[`editor.${e}`]||!1}function p(e){return h()[`diffEditor.${e}`]||!1}s.O.as(o.Fd.Configuration).registerConfiguration(l)},59806:(e,t,r)=>{"use strict";r.d(t,{Du:()=>h,Su:()=>f,aI:()=>d,b7:()=>u});var n=r(24638),i=r(55977),a=r(52756);let o,s,c;function l(){return o||(o=new TextDecoder("UTF-16LE")),o}function u(){return c||(c=i.cm()?l():(s||(s=new TextDecoder("UTF-16BE")),s)),c}const d="undefined"!==typeof TextDecoder;let h,f;function p(e,t,r){const n=[];let i=0;for(let o=0;o<r;o++){const r=a.$l(e,t);t+=2,n[i++]=String.fromCharCode(r)}return n.join("")}d?(h=e=>new m(e),f=function(e,t,r){const n=new Uint16Array(e.buffer,t,r);if(r>0&&(65279===n[0]||65534===n[0]))return p(e,t,r);return l().decode(n)}):(h=e=>new g,f=p);class m{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return u().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}write1(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||n.pc(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCII(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIIString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let r=0;r<t;r++)this._buffer[this._bufferLength++]=e.charCodeAt(r)}}class g{constructor(){this._pieces=[],this._piecesLen=0}reset(){this._pieces=[],this._piecesLen=0}build(){return this._pieces.join("")}write1(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCII(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCIIString(e){this._pieces[this._piecesLen++]=e}}},97800:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n=r(17924);class i extends n.V{constructor(e){super(0);for(let t=0,r=e.length;t<r;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}const a=function(e){const t={};return r=>(t.hasOwnProperty(r)||(t[r]=e(r)),t[r])}((e=>new i(e)))},76220:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});const n=(0,r(34029).u1)("languageService")},35065:(e,t,r)=>{"use strict";r.d(t,{A5:()=>n,Dg:()=>c,F4:()=>d,L5:()=>u,R3:()=>i,VW:()=>a,Wo:()=>l,X2:()=>s,vd:()=>h});var n,i,a,o=r(61460);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(n||(n={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(i||(i={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(a||(a={}));class s{constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class c{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class l{constructor(e,t,r,n,i,a){this.identifier=e,this.range=t,this.text=r,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=i,this._isTracked=a}}class u{constructor(e,t,r){this.regex=e,this.wordSeparators=t,this.simpleSearch=r}}class d{constructor(e,t,r){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=r}}function h(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},19724:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});const n=(0,r(34029).u1)("modelService")},92320:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});const n=(0,r(34029).u1)("textModelService")},6751:(e,t,r)=>{"use strict";r.d(t,{E6:()=>u,Hw:()=>a,YN:()=>i,b2:()=>n,gf:()=>s,n9:()=>c,oq:()=>o,tu:()=>d,vp:()=>l});var n,i,a,o,s,c,l,u,d,h=r(35819);!function(e){e.noSelection=h.kg("noSelection","No selection"),e.singleSelectionRange=h.kg("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=h.kg("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=h.kg("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=h.kg("multiSelection","{0} selections"),e.emergencyConfOn=h.kg("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=h.kg("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=h.kg("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=h.kg("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=h.kg("readonlyEditor"," in a read-only code editor"),e.editableEditor=h.kg("editableEditor"," in a code editor"),e.changeConfigToOnMac=h.kg("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=h.kg("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=h.kg("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=h.kg("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=h.kg("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=h.kg("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=h.kg("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=h.kg("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=h.kg("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=h.kg("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=h.kg("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=h.kg("showAccessibilityHelpAction","Show Accessibility Help")}(n||(n={})),function(e){e.inspectTokensAction=h.kg("inspectTokens","Developer: Inspect Tokens")}(i||(i={})),function(e){e.gotoLineActionLabel=h.kg("gotoLineActionLabel","Go to Line/Column...")}(a||(a={})),function(e){e.helpQuickAccessActionLabel=h.kg("helpQuickAccess","Show all Quick Access Providers")}(o||(o={})),function(e){e.quickCommandActionLabel=h.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=h.kg("quickCommandActionHelp","Show And Run Commands")}(s||(s={})),function(e){e.quickOutlineActionLabel=h.kg("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=h.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(c||(c={})),function(e){e.editorViewAccessibleLabel=h.kg("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=h.kg("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(l||(l={})),function(e){e.toggleHighContrast=h.kg("toggleHighContrast","Toggle High Contrast Theme")}(u||(u={})),function(e){e.bulkEditServiceSummary=h.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(d||(d={}))},28618:(e,t,r)=>{"use strict";r.d(t,{QE:()=>He,XB:()=>De,Zc:()=>Be});r(10884),r(96696),r(28313),r(53166),r(40098);var n=r(24638),i=r(90491),a=r(41828),o=r(42464),s=r(31401),c=r(55808),l=r(55977),u=r(77721),d=r(65698),h=r(72799),f=r(43077),p=r(73983),m=r(55547),g=r(62915),b=r(19724),w=r(92320),v=r(42982),_=r(16281),y=r(58471),C=r(54925),S=r(21181),k=r(90301),E=r(34029),x=r(85484),A=r(47925),O=r(28951),T=r(11563),D=r(80858),R=r(65491),I=r(70679),N=r(74349),L=r(53229),P=r(45769),z=r(86377),B=r(8547),M=r(6751),j=r(1273),F=r(88459),U=r(91823),W=r(25555),H=r(95166),Z=r(64355),$=r(94411),q=r(4235),V=r(16974),G=r(62848),K=r(84214),Y=r(87594),X=r(38572),J=r(76220),Q=r(76237),ee=r(90324),te=r(47461),re=r(61249),ne=r(85976),ie=r(83238),ae=r(78427),oe=r(88355),se=r(93593),ce=r(50284),le=r(51031),ue=r(43772),de=r(49539),he=r(96810),fe=r(96621),pe=r(7087),me=r(22407),ge=r(40145),be=r(56247),we=r(46025),ve=r(31001),_e=r(87899),ye=(r(84254),r(66578)),Ce=function(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o},Se=function(e,t){return function(r,n){t(r,n,e)}},ke=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(t){a(t)}}function s(e){try{c(n.throw(e))}catch(t){a(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};class Ee{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new o.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let xe=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new c.BO(new Ee(t))):Promise.reject(new Error("Model not found"))}};xe=Ce([Se(0,b.S)],xe);class Ae{show(){return Ae.NULL_PROGRESS_RUNNER}showWhile(e,t){return ke(this,void 0,void 0,(function*(){yield e}))}}Ae.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Oe{info(e){return this.notify({severity:u.A.Info,message:e})}warn(e){return this.notify({severity:u.A.Warning,message:e})}error(e){return this.notify({severity:u.A.Error,message:e})}notify(e){switch(e.severity){case u.A.Error:case u.A.Warning:}return Oe.NO_OP}status(e,t){return c.jG.None}}Oe.NO_OP=new N.Kz;let Te=class{constructor(e){this._onWillExecuteCommand=new o.vl,this._onDidExecuteCommand=new o.vl,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const r=_.wb.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[r.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}};Te=Ce([Se(0,E._Y)],Te);let De=class extends x.E{constructor(e,t,r,n,o,s){super(e,t,r,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const l=e=>{const t=new c.Cm;t.add(i.ko(e,i.Bx.KEY_DOWN,(e=>{const t=new a.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(i.ko(e,i.Bx.KEY_UP,(e=>{const t=new a.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Re(e,t))},u=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const r=this._domNodeListeners[t];r.domNode===e&&(this._domNodeListeners.splice(t,1),r.dispose())}},d=e=>{e.getOption(55)||l(e.getContainerDomNode())};this._register(s.onCodeEditorAdd(d)),this._register(s.onCodeEditorRemove((e=>{e.getOption(55)||u(e.getContainerDomNode())}))),s.listCodeEditors().forEach(d);const h=e=>{l(e.getContainerDomNode())};this._register(s.onDiffEditorAdd(h)),this._register(s.onDiffEditorRemove((e=>{u(e.getContainerDomNode())}))),s.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,r,n){const i=(0,s.ZU)(t,l.OS),a=new c.Cm;return i&&(this._dynamicKeybindings.push({keybinding:i.parts,command:e,when:n,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),a.add((0,c.s)((()=>{for(let t=0;t<this._dynamicKeybindings.length;t++){if(this._dynamicKeybindings[t].command===e)return this._dynamicKeybindings.splice(t,1),void this.updateResolver()}})))),a.add(_.wb.registerCommand(e,r)),this.updateResolver(),a}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(T.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new O.f(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const r=[];let n=0;for(const i of e){const e=i.when||void 0,a=i.keybinding;if(a){const o=R.j.resolveUserBinding(a,l.OS);for(const a of o)r[n++]=new D.u(a,i.command,i.commandArgs,e,t,null,!1)}else r[n++]=new D.u(void 0,i.command,i.commandArgs,e,t,null,!1)}return r}resolveKeyboardEvent(e){const t=new s.h$(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new R.j(t,l.OS)}};De=Ce([Se(0,S.fN),Se(1,_.wT),Se(2,P.k),Se(3,N.Ot),Se(4,U.rr),Se(5,F.T)],De);class Re extends c.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Ie(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof d.r)}class Ne{constructor(){this._onDidChangeConfiguration=new o.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new C.Vk(new ye.z,new C.S1,new C.S1,new C.S1)}getValue(e,t){const r="string"===typeof e?e:void 0,n=Ie(e)?e:Ie(t)?t:{};return this._configuration.getValue(r,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},r=[];for(const n of e){const[e,t]=n;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),r.push(e))}if(r.length>0){const e=new C.Xm({keys:r,overrides:[]},t,this._configuration);e.source=7,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,r,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let Le=class{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new o.vl,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,r)=>e.affectsConfiguration(r)})}))}getValue(e,t,r){const n=(m.y.isIPosition(t)?t:null)?"string"===typeof r?r:void 0:"string"===typeof t?t:void 0;return"undefined"===typeof n?this.configurationService.getValue():this.configurationService.getValue(n)}};Le=Ce([Se(0,y.pG)],Le);let Pe=class{constructor(e){this.configurationService=e}getEOL(e,t){const r=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return r&&"string"===typeof r&&"auto"!==r?r:l.j9||l.zx?"\n":"\r\n"}};Pe=Ce([Se(0,y.pG)],Pe);class ze{constructor(){const e=d.r.from({scheme:ze.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new z.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===ze.SCHEME?this.workspace.folders[0]:null}}function Be(e,t,r){if(!t)return;if(!(e instanceof Ne))return;const n=[];Object.keys(t).forEach((e=>{(0,f.vf)(e)&&n.push([`editor.${e}`,t[e]]),r&&(0,f.Gn)(e)&&n.push([`diffEditor.${e}`,t[e]])})),n.length>0&&e.updateValues(n)}ze.SCHEME="inmemory";let Me=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return ke(this,void 0,void 0,(function*(){const t=new Map;for(const n of e){if(!(n instanceof h.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(n.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof n.versionId&&e.getVersionId()!==n.versionId)throw new Error("bad state - model changed in the meantime");let r=t.get(e);r||(r=[],t.set(e,r)),r.push(p.k.replaceMove(g.Q.lift(n.textEdit.range),n.textEdit.text))}let r=0,i=0;for(const[e,n]of t)e.pushStackElement(),e.pushEditOperations([],n,(()=>[])),e.pushStackElement(),i+=1,r+=n.length;return{ariaSummary:n.GP(M.tu.bulkEditServiceSummary,r,i)}}))}};Me=Ce([Se(0,b.S)],Me);let je=class extends Z.Y{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,r){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,r)}};je=Ce([Se(0,B.x),Se(1,F.T)],je);class Fe extends $.g{constructor(){super()}}class Ue extends U.Kc{constructor(){super(new U.Cr)}}let We=class extends q.K{constructor(e,t,r,n,i){super(e,t,r,n,i),this.configure({blockMouse:!1})}};var He;We=Ce([Se(0,P.k),Se(1,N.Ot),Se(2,H.l),Se(3,A.b),Se(4,V.Gy)],We),(0,G.v)(y.pG,Ne),(0,G.v)(v.U,Le),(0,G.v)(v.J,Pe),(0,G.v)(z.VR,ze),(0,G.v)(I.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,j.P8)(e)}}),(0,G.v)(P.k,class{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}),(0,G.v)(k.X,class{confirm(e){return this.doConfirm(e).then((e=>({confirmed:e,checkboxChecked:!1})))}doConfirm(e){let t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Promise.resolve(window.confirm(t))}show(e,t,r,n){return Promise.resolve({choice:0})}}),(0,G.v)(N.Ot,Oe),(0,G.v)(ge.DR,be.m),(0,G.v)(J.L,Fe),(0,G.v)(ie.L,ne.Sx),(0,G.v)(U.rr,Ue),(0,G.v)(b.S,te.JW),(0,G.v)(ee.A,Q.D),(0,G.v)(S.fN,de.i7),(0,G.v)(L.G5,class{withProgress(e,t,r){return t({report:()=>{}})}}),(0,G.v)(L.N8,Ae),(0,G.v)(_e.CS,_e.pc),(0,G.v)(Y.w,X.Bc),(0,G.v)(h.nu,Me),(0,G.v)(W.L,class{constructor(){this._neverEmitter=new o.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}),(0,G.v)(w.b,xe),(0,G.v)(oe.j,ae.s),(0,G.v)(me.PE,me.aG),(0,G.v)(_.wT,Te),(0,G.v)(A.b,De),(0,G.v)(ve.GK,re.oC),(0,G.v)(H.l,je),(0,G.v)(we.Cr,K.J),(0,G.v)(ue.h,le.w),(0,G.v)(H.Z,We),(0,G.v)(se.ez,ce.$),function(e){const t=new pe.a;for(const[i,a]of(0,G.N)())t.set(i,a);const r=new fe.n(t,!0);t.set(E._Y,r),e.get=function(e){const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof he.d?r.invokeFunction((t=>t.get(e))):n};let n=!1;e.initialize=function(e){if(n)return r;n=!0;for(const[r,n]of(0,G.N)())t.get(r)||t.set(r,n);for(const r in e)if(e.hasOwnProperty(r)){const n=(0,E.u1)(r);t.get(n)instanceof he.d&&t.set(n,e[r])}return r}}(He||(He={}))},35819:(e,t,r)=>{"use strict";r.d(t,{AM:()=>o,kg:()=>a});let n="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function i(e,t){let r;return r=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,r)=>{const n=r[0],i=t[n];let a=e;return"string"===typeof i?a=i:"number"!==typeof i&&"boolean"!==typeof i&&void 0!==i&&null!==i||(a=String(i)),a})),n&&(r="\uff3b"+r.replace(/[aouei]/g,"$&$&")+"\uff3d"),r}function a(e,t,...r){return i(t,r)}function o(e){}},34029:(e,t,r)=>{"use strict";var n;r.d(t,{_$:()=>n,_Y:()=>i,u1:()=>a}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(n||(n={}));const i=a("instantiationService");function a(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,r,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,r){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:r}):(t[n.DI_DEPENDENCIES]=[{id:e,index:r}],t[n.DI_TARGET]=t)}(t,e,i)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},72053:(e,t,r)=>{"use strict";(0,r(98173).createContext)(null)},24833:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}var i;r.d(t,{AO:()=>c,Gh:()=>A,HS:()=>O,Rr:()=>l,V1:()=>k,pX:()=>L,pb:()=>S,rc:()=>i,sC:()=>a,tH:()=>I,ue:()=>d}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));function a(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map(((e,t)=>p(e,"string"===typeof e?null:e.state,0===t?"default":void 0)));let l=h(null==n?t.length-1:n),u=i.Pop,d=null;function h(e){return Math.min(Math.max(e,0),t.length-1)}function f(){return t[l]}function p(e,r,n){void 0===r&&(r=null);let i=s(t?f().pathname:"/",e,r,n);return o("/"===i.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),i}return{get index(){return l},get action(){return u},get location(){return f()},createHref:e=>"string"===typeof e?e:c(e),push(e,r){u=i.Push;let n=p(e,r);l+=1,t.splice(l,t.length,n),a&&d&&d({action:u,location:n})},replace(e,r){u=i.Replace;let n=p(e,r);t[l]=n,a&&d&&d({action:u,location:n})},go(e){u=i.Pop,l=h(l+e),d&&d({action:u,location:f()})},listen:e=>(d=e,()=>{d=null})}}function o(e,t){if(!e)try{throw new Error(t)}catch(r){}}function s(e,t,r,i){return void 0===r&&(r=null),n({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?l(t):t,{state:r,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function c(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function l(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var u;function d(e,t,r){void 0===r&&(r="/");let n=S(("string"===typeof t?l(t):t).pathname||"/",r);if(null==n)return null;let i=h(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let o=0;null==a&&o<i.length;++o)a=y(i[o],n);return a}function h(e,t,r,n){return void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n=""),e.forEach(((e,i)=>{let a={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(k(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let o=O([n,a.relativePath]),s=r.concat(a);e.children&&e.children.length>0&&(k(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),h(e.children,t,s,o)),(null!=e.path||e.index)&&t.push({path:o,score:_(o,e.index),routesMeta:s})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(u||(u={}));const f=/^:\w+$/,p=3,m=2,g=1,b=10,w=-2,v=e=>"*"===e;function _(e,t){let r=e.split("/"),n=r.length;return r.some(v)&&(n+=w),t&&(n+=m),r.filter((e=>!v(e))).reduce(((e,t)=>e+(f.test(t)?p:""===t?g:b)),n)}function y(e,t){let{routesMeta:r}=e,n={},i="/",a=[];for(let o=0;o<r.length;++o){let e=r[o],s=o===r.length-1,c="/"===i?t:t.slice(i.length)||"/",l=C({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},c);if(!l)return null;Object.assign(n,l.params);let u=e.route;a.push({params:n,pathname:O([i,l.pathname]),pathnameBase:T(O([i,l.pathnameBase])),route:u}),"/"!==l.pathnameBase&&(i=O([i,l.pathnameBase]))}return a}function C(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);E("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(n.push(t),"([^\\/]+)")));e.endsWith("*")?(n.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let a=new RegExp(i,t?void 0:"i");return[a,n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce(((e,t,r)=>{if("*"===t){let e=s[r]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(r){return E(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(s[r]||"",t),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function S(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function k(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function E(e,t){if(!e)try{throw new Error(t)}catch(r){}}function x(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function A(e,t,r,i){let a;void 0===i&&(i=!1),"string"===typeof e?a=l(e):(a=n({},e),k(!a.pathname||!a.pathname.includes("?"),x("?","pathname","search",a)),k(!a.pathname||!a.pathname.includes("#"),x("#","pathname","hash",a)),k(!a.search||!a.search.includes("#"),x("#","search","hash",a)));let o,s=""===e||""===a.pathname,c=s?"/":a.pathname;if(i||null==c)o=r;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"===typeof e?l(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:D(n),hash:R(i)}}(a,o),d=c&&"/"!==c&&c.endsWith("/"),h=(s||"."===c)&&r.endsWith("/");return u.pathname.endsWith("/")||!d&&!h||(u.pathname+="/"),u}const O=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",R=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class I extends Error{}class N{constructor(e,t,r){this.status=e,this.statusText=t||"",this.data=r}}function L(e){return e instanceof N}},41118:(e,t,r)=>{"use strict";r.d(t,{wd:()=>i});var n=r(30942);function i(e,t){var r="string"===typeof t?t:void 0,i="string"!==typeof t?{captureContext:t}:void 0;return(0,n.BF)().captureMessage(e,r,i)}},30942:(e,t,r)=>{"use strict";r.d(t,{BF:()=>m});var n=r(4475),i=r(46310),a=r(83887),o=r(24936),s=r(18631),c=r(49245),l=r(72973),u=4,d=100;class h{__init(){this._stack=[{}]}constructor(e,t=new c.H,r=u){this._version=r,h.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=c.H.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var r=this._lastEventId=t&&t.event_id?t.event_id:(0,n.eJ)(),i=new Error("Sentry syntheticException");return this._withClient(((n,a)=>{n.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},a)})),r}captureMessage(e,t,r){var i=this._lastEventId=r&&r.event_id?r.event_id:(0,n.eJ)(),a=new Error(e);return this._withClient(((n,o)=>{n.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:i},o)})),i}captureEvent(e,t){var r=t&&t.event_id?t.event_id:(0,n.eJ)();return"transaction"!==e.type&&(this._lastEventId=r),this._withClient(((n,i)=>{n.captureEvent(e,{...t,event_id:r},i)})),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:r,client:n}=this.getStackTop();if(!r||!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=d}=n.getOptions&&n.getOptions()||{};if(!(s<=0)){var c={timestamp:(0,i.lu)(),...e},l=o?(0,a.pq)((()=>o(c,t))):c;null!==l&&r.addBreadcrumb(l,s)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var r=this.getScope();r&&r.setTag(e,t)}setExtra(e,t){var r=this.getScope();r&&r.setExtra(e,t)}setContext(e,t){var r=this.getScope();r&&r.setContext(e,t)}configureScope(e){const{scope:t,client:r}=this.getStackTop();t&&r&&e(t)}run(e){var t=p(this);try{e(this)}finally{p(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(r){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,r=t&&t.getSession();r&&(0,l.Vu)(r),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:r}=this.getStackTop(),{release:n,environment:i}=r&&r.getOptions()||{};var a=(0,o.V)();const{userAgent:s}=a.navigator||{};var c=(0,l.fj)({release:n,environment:i,...t&&{user:t.getUser()},...s&&{userAgent:s},...e});if(t){var u=t.getSession&&t.getSession();u&&"ok"===u.status&&(0,l.qO)(u,{status:"exited"}),this.endSession(),t.setSession(c)}return c}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}}_withClient(e){const{scope:t,client:r}=this.getStackTop();r&&e(r,t)}_callExtensionMethod(e,...t){var r=f().__SENTRY__;if(r&&r.extensions&&"function"===typeof r.extensions[e])return r.extensions[e].apply(this,t);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.vF.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function f(){var e=(0,o.V)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function p(e){var t=f(),r=b(t);return w(t,e),r}function m(){var e=f();return g(e)&&!b(e).isOlderThan(u)||w(e,new h),(0,s.wD)()?function(e){try{var t=f().__SENTRY__,r=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!r)return b(e);if(!g(r)||b(r).isOlderThan(u)){var n=b(e).getStackTop();w(r,new h(n.client,c.H.clone(n.scope)))}return b(r)}catch(i){return b(e)}}(e):b(e)}function g(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function b(e){return(0,o.B)("hub",(()=>new h),e)}function w(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},49245:(e,t,r)=>{"use strict";r.d(t,{H:()=>u});var n=r(30747),i=r(46310),a=r(85195),o=r(83887),s=r(4475),c=r(24936),l=r(72973);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new u;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,l.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"===typeof e){var t=e(this);return t instanceof u?t:this}return e instanceof u?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,n.Qd)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var r="number"===typeof t?t:100;if(r<=0)return this;var n={timestamp:(0,i.lu)(),...e};return this._breadcrumbs=[...this._breadcrumbs,n].slice(-r),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var r=this._span.transaction&&this._span.transaction.name;r&&(e.tags={transaction:r,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,r,i=0){return new a.T2(((a,s)=>{var c=e[i];if(null===t||"function"!==typeof c)a(t);else{var l=c({...t},r);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===l&&o.vF.log(`Event processor "${c.id}" dropped event`),(0,n.Qg)(l)?l.then((t=>this._notifyEventProcessors(e,t,r,i+1).then(a))).then(null,s):this._notifyEventProcessors(e,l,r,i+1).then(a).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,s.k9)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function d(){return(0,c.B)("globalEventProcessors",(()=>[]))}},30747:(e,t,r)=>{"use strict";r.d(t,{Qd:()=>a,Qg:()=>o});var n=Object.prototype.toString;function i(e,t){return n.call(e)===`[object ${t}]`}function a(e){return i(e,"Object")}function o(e){return Boolean(e&&e.then&&"function"===typeof e.then)}},83887:(e,t,r)=>{"use strict";r.d(t,{pq:()=>o,vF:()=>c});var n=r(24936),i=(0,n.V)(),a=["debug","info","warn","error","log","assert","trace"];function o(e){var t=(0,n.V)();if(!("console"in t))return e();var r=t.console,i={};a.forEach((e=>{var n=r[e]&&r[e].__sentry_original__;e in t.console&&n&&(i[e]=r[e],r[e]=n)}));try{return e()}finally{Object.keys(i).forEach((e=>{r[e]=i[e]}))}}function s(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach((r=>{t[r]=(...t)=>{e&&o((()=>{i.console[r](`Sentry Logger [${r}]:`,...t)}))}})):a.forEach((e=>{t[e]=()=>{}})),t}let c;c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,n.B)("logger",s):s()},4475:(e,t,r)=>{"use strict";r.d(t,{eJ:()=>i,k9:()=>a});var n=r(24936);function i(){var e=(0,n.V)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var r=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function a(e){return Array.isArray(e)?e:[e]}},18631:(e,t,r)=>{"use strict";r.d(t,{fj:()=>o,wD:()=>a});var n=r(49728);e=r.hmd(e);var i=r(88295);function a(){return!(0,n.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof i?i:0)}function o(e,t){return e.require(t)}},9576:(e,t,r)=>{"use strict";r.d(t,{Ce:()=>i});var n=r(30747);function i(e){return a(e,new Map)}function a(e,t){if((0,n.Qd)(e)){if(void 0!==(o=t.get(e)))return o;var r={};for(var i of(t.set(e,r),Object.keys(e)))"undefined"!==typeof e[i]&&(r[i]=a(e[i],t));return r}if(Array.isArray(e)){var o;if(void 0!==(o=t.get(e)))return o;r=[];return t.set(e,r),e.forEach((e=>{r.push(a(e,t))})),r}return e}},85195:(e,t,r)=>{"use strict";r.d(t,{T2:()=>a});var n,i=r(30747);!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(n||(n={}));class a{__init(){this._state=n.PENDING}__init2(){this._handlers=[]}constructor(e){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),a.prototype.__init5.call(this),a.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new a(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(i){n(i)}else r(t)},e=>{if(t)try{r(t(e))}catch(i){n(i)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new a(((t,r)=>{let n,i;return this.then((t=>{i=!1,n=t,e&&e()}),(t=>{i=!0,n=t,e&&e()})).then((()=>{i?r(n):t(n)}))}))}__init3(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===n.PENDING&&((0,i.Qg)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==n.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}},46310:(e,t,r)=>{"use strict";r.d(t,{lu:()=>c,zf:()=>l});var n=r(24936),i=r(18631);e=r.hmd(e);var a={nowSeconds:()=>Date.now()/1e3};var o=(0,i.wD)()?function(){try{return(0,i.fj)(e,"perf_hooks").performance}catch(t){return}}():function(){const{performance:e}=(0,n.V)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===o?a:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},c=a.nowSeconds.bind(a),l=s.nowSeconds.bind(s);let u;(()=>{const{performance:e}=(0,n.V)();if(e&&e.now){var t=36e5,r=e.now(),i=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+r-i):t,o=a<t,s=e.timing&&e.timing.navigationStart,c="number"===typeof s?Math.abs(s+r-i):t;return o||c<t?a<=c?(u="timeOrigin",e.timeOrigin):(u="navigationStart",s):(u="dateNow",i)}u="none"})()},94049:(e,t,r)=>{var n=r(45764).Buffer,i=r(88295);e.exports=function e(t,r,n){function i(o,s){if(!r[o]){if(!t[o]){if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[o]={exports:{}};t[o][0].call(l.exports,(function(e){return i(t[o][1][e]||e)}),l,l.exports,e,t,r,n)}return r[o].exports}for(var a=void 0,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,o,s,c,l,u=[],d=0,h=e.length,f=h,p="string"!==n.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],r=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),r=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|r>>4,c=1<f?(15&r)<<2|i>>6:64,l=2<f?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join("")},r.decode=function(e){var t,r,n,o,s,c,l=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&f--,e.charAt(e.length-2)===a.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):new Array(0|f);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,r=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,n=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),h[u++]=t,64!==s&&(h[u++]=r),64!==c&&(h[u++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}(0|t,e,e.length,0):function(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return~e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function c(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new c("Deflate",e)},r.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,o,u){var d,h,f=e.file,p=e.compression,m=u!==s.utf8encode,g=a.transformTo("string",u(f.name)),b=a.transformTo("string",s.utf8encode(f.name)),w=f.comment,v=a.transformTo("string",u(w)),_=a.transformTo("string",s.utf8encode(w)),y=b.length!==f.name.length,C=_.length!==w.length,S="",k="",E="",x=f.dir,A=f.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var T=0;t&&(T|=8),m||!y&&!C||(T|=2048);var D=0,R=0;x&&(D|=16),"UNIX"===o?(R=798,D|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,x)):(R=20,D|=function(e){return 63&(e||0)}(f.dosPermissions)),d=A.getUTCHours(),d<<=6,d|=A.getUTCMinutes(),d<<=5,d|=A.getUTCSeconds()/2,h=A.getUTCFullYear()-1980,h<<=4,h|=A.getUTCMonth()+1,h<<=5,h|=A.getUTCDate(),y&&(k=n(1,1)+n(c(g),4)+b,S+="up"+n(k.length,2)+k),C&&(E=n(1,1)+n(c(v),4)+_,S+="uc"+n(E.length,2)+E);var I="";return I+="\n\0",I+=n(T,2),I+=p.magic,I+=n(d,2),I+=n(h,2),I+=n(O.crc32,4),I+=n(O.compressedSize,4),I+=n(O.uncompressedSize,4),I+=n(g.length,2),I+=n(S.length,2),{fileRecord:l.LOCAL_FILE_HEADER+I+g+S,dirRecord:l.CENTRAL_FILE_HEADER+n(R,2)+I+n(v.length,2)+"\0\0\0\0"+n(D,4)+n(i,4)+g+S+v}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),l=e("../signature");function u(e,t,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=function(e,t,r,i,o){var s=a.transformTo("string",o(i));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(s.length,2)+s}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){"use strict";var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var a=new i(t.streamFiles,r,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,r){o++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},c=r.dir,l=r.date;r._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function l(e){return new i.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new o(t);return r.load(e),r})).then((function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var a=0;a<n.length;a++)r.push(l(n[a]));return i.Promise.all(r)})).then((function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=n.resolve(s.fileNameStr);r.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(r.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(r.comment=i.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){"use strict";var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),r&&r(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){"use strict";t.exports={isNode:"undefined"!=typeof n,newBufferFrom:function(e,t){if(n.from&&n.from!==Uint8Array.from)return n.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new n(e,t)},allocBuffer:function(e){if(n.alloc)return n.alloc(e);var t=new n(e);return t.fill(0),t},isBuffer:function(e){return n.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){"use strict";function n(e,t,r){var n,i=a.getTypeOf(t),s=a.extend(r||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!d),(t instanceof l&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var b=null;b=t instanceof l||t instanceof o?t:h.isNode&&h.isStream(t)?new f(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var w=new u(e,b,s);this.files[e]=w}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),l=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:c.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(b(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(b(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");a.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(e){(t=new o("error")).error(e)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){"use strict";var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,n),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){"use strict";var i=e("../utils"),a=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),c=e("../support"),l=e("../external"),u=null;if(c.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t){return new l.Promise((function(r,a){var o=[],c=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,r){o.push(e),t&&t(r)})).on("error",(function(e){o=[],a(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var r,i=0,a=null,o=0;for(r=0;r<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(o),r=0;r<t.length;r++)a.set(t[r],i),i+=t[r].length;return a;case"nodebuffer":return n.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,o),u);r(e)}catch(e){a(e)}o=[]})).resume()}))}function h(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,i.checkSupport(n),this._worker=e.pipe(new a(n)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return d(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,r)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof n,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),r.blob=0===a.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){"use strict";for(var n=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,r,n,a,o,s=e.length,c=0;for(a=0;a<s;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),a=o=0;o<c;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,a,o=e.length,c=new Array(2*o);for(t=r=0;t<o;)if((i=e[t++])<128)c[r++]=i;else if(4<(a=s[i]))c[r++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return c.length!==r&&(c.subarray?c=c.subarray(0,r):c.length=r),n.applyFromCharCode(c)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(l,o),l.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:r.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=l,n.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var n=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function c(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(t,n){r.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(n)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=l.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=u;var h={};h.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},h.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},h.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},h.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return h[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&a.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var u=r.getTypeOf(t);return u?("arraybuffer"===u?t=r.transformTo("uint8array",t):"string"===u&&(l?t=i.decode(t):a&&!0!==s&&(t=function(e){return c(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),c=e("./compressions"),l=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){"use strict";function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!n&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&n&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<l.length;d++)n.prototype[l[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){"use strict";var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),r=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,r=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;n=!0;for(var r=l.length;r;){for(t=l,l=[],e=-1;++e<r;)t[e]();r=l.length}n=!1}t.exports=function(e){1!==l.push(e)||n||r()}}).call(this,"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){"use strict";var n=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n((function(){var n;try{n=t(r)}catch(n){return a.reject(e,n)}n===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,n)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,a.reject(e,t))}function i(t){r||(r=!0,a.resolve(e,t))}var o=p((function(){t(i,n)}));"error"===o.status&&n(o.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=l).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var r=new this.constructor(i);return this.state!==c?d(r,this.state===s?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return a.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var o=new Array(r),s=0,c=-1,l=new this(i);++c<r;)u(e[c],c);return l;function u(e,i){t.resolve(e).then((function(e){o[i]=e,++s!==r||n||(n=!0,a.resolve(l,o))}),(function(e){n||(n=!0,a.reject(l,e))}))}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var o,s=-1,c=new this(i);++s<r;)o=e[s],t.resolve(o).then((function(e){n||(n=!0,a.resolve(c,e))}),(function(e){n||(n=!0,a.reject(c,e))}));return c}},{immediate:36}],38:[function(e,t,r){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){"use strict";var n=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,l=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==l)throw new Error(o[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==l)throw new Error(o[r]);this._dict_set=!0}}function p(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}f.prototype.push=function(e,t){var r,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,o))&&r!==l)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===o?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l):2!==o||(this.onEnd(l),!(s.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=f,r.deflate=p,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){"use strict";var n=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),l=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==o.Z_OK)throw new Error(s[r]);this.header=new l,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,c,l,d,h,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(h="string"==typeof m?a.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,h)),r===o.Z_BUF_ERROR&&!0===g&&(r=o.Z_OK,g=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=a.utf8border(f.output,f.next_out),l=f.next_out-c,d=a.buf2string(f.output,c),f.next_out=l,f.avail_out=p-l,l&&i.arraySet(f.output,f.output,c,l,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==o.Z_STREAM_END);return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){var t,r,n,i,a,o;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(o=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(n)},{}],42:[function(e,t,r){"use strict";var n=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",o=0;o<t;o++)r+=String.fromCharCode(e[o]);return r}o[254]=o[254]=1,r.string2buf=function(e){var t,r,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(c),a=o=0;o<c;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t},r.buf2binstring=function(e){return c(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,a,s=t||e.length,l=new Array(2*s);for(r=n=0;r<s;)if((i=e[r++])<128)l[n++]=i;else if(4<(a=o[i]))l[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&r<s;)i=i<<6|63&e[r++],a--;1<a?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return c(l,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e,a=e>>>16&65535,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;a=a+(i=i+t[n++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16}},{}],44:[function(e,t,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){"use strict";var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var a=n,o=i+r;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}},{}],46:[function(e,t,r){"use strict";var n,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),c=e("./messages"),l=0,u=4,d=0,h=-2,f=-1,p=4,m=2,g=8,b=9,w=286,v=30,_=19,y=2*w+1,C=15,S=3,k=258,E=k+S+1,x=42,A=113,O=1,T=2,D=3,R=4;function I(e,t){return e.msg=c[t],t}function N(e){return(e<<1)-(4<e?9:0)}function L(e){for(var t=e.length;0<=--t;)e[t]=0}function P(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function z(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,P(e.strm)}function B(e,t){e.pending_buf[e.pending++]=t}function M(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function j(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-E?e.strstart-(e.w_size-E):0,l=e.window,u=e.w_mask,d=e.prev,h=e.strstart+k,f=l[a+o-1],p=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(r=t)+o]===p&&l[r+o-1]===f&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++;do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<h);if(n=k-(h-a),a=h-k,o<n){if(e.match_start=t,s<=(o=n))break;f=l[a+o-1],p=l[a+o]}}}while((t=d[t&u])>c&&0!=--i);return o<=e.lookahead?o:e.lookahead}function F(e){var t,r,n,a,c,l,u,d,h,f,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-E)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);a+=p}if(0===e.strm.avail_in)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=a)<(f=l.avail_in)&&(f=h),r=0===f?0:(l.avail_in-=f,i.arraySet(u,l.input,l.next_in,f,d),1===l.state.wrap?l.adler=o(l.adler,u,f,d):2===l.state.wrap&&(l.adler=s(l.adler,u,f,d)),l.next_in+=f,l.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=S)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+S-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<E&&0!==e.strm.avail_in)}function U(e,t){for(var r,n;;){if(e.lookahead<E){if(F(e),e.lookahead<E&&t===l)return O;if(0===e.lookahead)break}if(r=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-E&&(e.match_length=j(e,r)),e.match_length>=S)if(n=a._tr_tally(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(z(e,!1),0===e.strm.avail_out))return O}return e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(z(e,!0),0===e.strm.avail_out?D:R):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?O:T}function W(e,t){for(var r,n,i;;){if(e.lookahead<E){if(F(e),e.lookahead<E&&t===l)return O;if(0===e.lookahead)break}if(r=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-E&&(e.match_length=j(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===S&&4096<e.strstart-e.match_start)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-S,n=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=S-1,e.strstart++,n&&(z(e,!1),0===e.strm.avail_out))return O}else if(e.match_available){if((n=a._tr_tally(e,0,e.window[e.strstart-1]))&&z(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return O}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(z(e,!0),0===e.strm.avail_out?D:R):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?O:T}function H(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function Z(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*y),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*_+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(C+1),this.heap=new i.Buf16(2*w+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*w+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function $(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?x:A,e.adler=2===t.wrap?0:1,t.last_flush=l,a._tr_init(t),d):I(e,h)}function q(e){var t=$(e);return t===d&&function(e){e.window_size=2*e.w_size,L(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0}(e.state),t}function V(e,t,r,n,a,o){if(!e)return h;var s=1;if(t===f&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),a<1||b<a||r!==g||n<8||15<n||t<0||9<t||o<0||p<o)return I(e,h);8===n&&(n=9);var c=new Z;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+S-1)/S),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=r,q(e)}n=[new H(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(F(e),0===e.lookahead&&t===l)return O;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,z(e,!1),0===e.strm.avail_out))return O;if(e.strstart-e.block_start>=e.w_size-E&&(z(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===u?(z(e,!0),0===e.strm.avail_out?D:R):(e.strstart>e.block_start&&(z(e,!1),e.strm.avail_out),O)})),new H(4,4,8,4,U),new H(4,5,16,8,U),new H(4,6,32,32,U),new H(4,4,16,16,W),new H(8,16,32,32,W),new H(8,16,128,128,W),new H(8,32,128,256,W),new H(32,128,258,1024,W),new H(32,258,258,4096,W)],r.deflateInit=function(e,t){return V(e,t,g,15,8,0)},r.deflateInit2=V,r.deflateReset=q,r.deflateResetKeep=$,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},r.deflate=function(e,t){var r,i,o,c;if(!e||!e.state||5<t||t<0)return e?I(e,h):h;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return I(e,0===e.avail_out?-5:h);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===x)if(2===i.wrap)e.adler=0,B(i,31),B(i,139),B(i,8),i.gzhead?(B(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),B(i,255&i.gzhead.time),B(i,i.gzhead.time>>8&255),B(i,i.gzhead.time>>16&255),B(i,i.gzhead.time>>24&255),B(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),B(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(B(i,255&i.gzhead.extra.length),B(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(B(i,0),B(i,0),B(i,0),B(i,0),B(i,0),B(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),B(i,3),i.status=A);else{var f=g+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=A,M(i,f),0!==i.strstart&&(M(i,e.adler>>>16),M(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),P(e),o=i.pending,i.pending!==i.pending_buf_size));)B(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),P(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,B(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),P(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,B(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&P(e),i.pending+2<=i.pending_buf_size&&(B(i,255&e.adler),B(i,e.adler>>8&255),e.adler=0,i.status=A)):i.status=A),0!==i.pending){if(P(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&N(t)<=N(r)&&t!==u)return I(e,-5);if(666===i.status&&0!==e.avail_in)return I(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==l&&666!==i.status){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(F(e),0===e.lookahead)){if(t===l)return O;break}if(e.match_length=0,r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(z(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===u?(z(e,!0),0===e.strm.avail_out?D:R):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?O:T}(i,t):3===i.strategy?function(e,t){for(var r,n,i,o,s=e.window;;){if(e.lookahead<=k){if(F(e),e.lookahead<=k&&t===l)return O;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=S&&0<e.strstart&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){o=e.strstart+k;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);e.match_length=k-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(r=a._tr_tally(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(z(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===u?(z(e,!0),0===e.strm.avail_out?D:R):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?O:T}(i,t):n[i.level].func(i,t);if(p!==D&&p!==R||(i.status=666),p===O||p===D)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===T&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),P(e),0===e.avail_out))return i.last_flush=-1,d}return t!==u?d:i.wrap<=0?1:(2===i.wrap?(B(i,255&e.adler),B(i,e.adler>>8&255),B(i,e.adler>>16&255),B(i,e.adler>>24&255),B(i,255&e.total_in),B(i,e.total_in>>8&255),B(i,e.total_in>>16&255),B(i,e.total_in>>24&255)):(M(i,e.adler>>>16),M(i,65535&e.adler)),P(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==x&&69!==t&&73!==t&&91!==t&&103!==t&&t!==A&&666!==t?I(e,h):(e.state=null,t===A?I(e,-3):d):h},r.deflateSetDictionary=function(e,t){var r,n,a,s,c,l,u,f,p=t.length;if(!e||!e.state)return h;if(2===(s=(r=e.state).wrap)||1===s&&r.status!==x||r.lookahead)return h;for(1===s&&(e.adler=o(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,p-r.w_size,r.w_size,0),t=f,p=r.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,F(r);r.lookahead>=S;){for(n=r.strstart,a=r.lookahead-(S-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+S-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--a;);r.strstart=n,r.lookahead=S-1,F(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=S-1,r.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,r.wrap=s,d},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){"use strict";t.exports=function(e,t){var r,n,i,a,o,s,c,l,u,d,h,f,p,m,g,b,w,v,_,y,C,S,k,E,x;r=e.state,n=e.next_in,E=e.input,i=n+(e.avail_in-5),a=e.next_out,x=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=r.dmax,l=r.wsize,u=r.whave,d=r.wnext,h=r.window,f=r.hold,p=r.bits,m=r.lencode,g=r.distcode,b=(1<<r.lenbits)-1,w=(1<<r.distbits)-1;e:do{p<15&&(f+=E[n++]<<p,p+=8,f+=E[n++]<<p,p+=8),v=m[f&b];t:for(;;){if(f>>>=_=v>>>24,p-=_,0===(_=v>>>16&255))x[a++]=65535&v;else{if(!(16&_)){if(0==(64&_)){v=m[(65535&v)+(f&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}y=65535&v,(_&=15)&&(p<_&&(f+=E[n++]<<p,p+=8),y+=f&(1<<_)-1,f>>>=_,p-=_),p<15&&(f+=E[n++]<<p,p+=8,f+=E[n++]<<p,p+=8),v=g[f&w];r:for(;;){if(f>>>=_=v>>>24,p-=_,!(16&(_=v>>>16&255))){if(0==(64&_)){v=g[(65535&v)+(f&(1<<_)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(C=65535&v,p<(_&=15)&&(f+=E[n++]<<p,(p+=8)<_&&(f+=E[n++]<<p,p+=8)),c<(C+=f&(1<<_)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=_,p-=_,(_=a-o)<C){if(u<(_=C-_)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=h,(S=0)===d){if(S+=l-_,_<y){for(y-=_;x[a++]=h[S++],--_;);S=a-C,k=x}}else if(d<_){if(S+=l+d-_,(_-=d)<y){for(y-=_;x[a++]=h[S++],--_;);if(S=0,d<y){for(y-=_=d;x[a++]=h[S++],--_;);S=a-C,k=x}}}else if(S+=d-_,_<y){for(y-=_;x[a++]=h[S++],--_;);S=a-C,k=x}for(;2<y;)x[a++]=k[S++],x[a++]=k[S++],x[a++]=k[S++],y-=3;y&&(x[a++]=k[S++],1<y&&(x[a++]=k[S++]))}else{for(S=a-C;x[a++]=x[S++],x[a++]=x[S++],x[a++]=x[S++],2<(y-=3););y&&(x[a++]=x[S++],1<y&&(x[a++]=x[S++]))}break}}break}}while(n<i&&a<s);n-=y=p>>3,f&=(1<<(p-=y<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=a<s?s-a+257:257-(a-s),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){"use strict";var n=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),c=1,l=2,u=0,d=-2,h=1,f=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(f),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):d}function w(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):d}function v(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,w(e))):d}function _(e,t){var r,n;return e?(n=new g,(e.state=n).window=null,(r=v(e,t))!==u&&(e.state=null),r):d}var y,C,S=!0;function k(e){if(S){var t;for(y=new n.Buf32(512),C=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,C,0,e.work,{bits:5}),S=!1}e.lencode=y,e.lenbits=9,e.distcode=C,e.distbits=5}function E(e,t,r,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),n.arraySet(o.window,t,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,t,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}r.inflateReset=w,r.inflateReset2=v,r.inflateResetKeep=b,r.inflateInit=function(e){return _(e,15)},r.inflateInit2=_,r.inflate=function(e,t){var r,f,p,g,b,w,v,_,y,C,S,x,A,O,T,D,R,I,N,L,P,z,B,M,j=0,F=new n.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(r=e.state).mode&&(r.mode=13),b=e.next_out,p=e.output,v=e.avail_out,g=e.next_in,f=e.input,w=e.avail_in,_=r.hold,y=r.bits,C=w,S=v,z=u;e:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;y<16;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(2&r.wrap&&35615===_){F[r.check=0]=255&_,F[1]=_>>>8&255,r.check=a(r.check,F,2,0),y=_=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&_)<<8)+(_>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&_)){e.msg="unknown compression method",r.mode=30;break}if(y-=4,P=8+(15&(_>>>=4)),0===r.wbits)r.wbits=P;else if(P>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<P,e.adler=r.check=1,r.mode=512&_?10:12,y=_=0;break;case 2:for(;y<16;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(r.flags=_,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=_>>8&1),512&r.flags&&(F[0]=255&_,F[1]=_>>>8&255,r.check=a(r.check,F,2,0)),y=_=0,r.mode=3;case 3:for(;y<32;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.head&&(r.head.time=_),512&r.flags&&(F[0]=255&_,F[1]=_>>>8&255,F[2]=_>>>16&255,F[3]=_>>>24&255,r.check=a(r.check,F,4,0)),y=_=0,r.mode=4;case 4:for(;y<16;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.head&&(r.head.xflags=255&_,r.head.os=_>>8),512&r.flags&&(F[0]=255&_,F[1]=_>>>8&255,r.check=a(r.check,F,2,0)),y=_=0,r.mode=5;case 5:if(1024&r.flags){for(;y<16;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.length=_,r.head&&(r.head.extra_len=_),512&r.flags&&(F[0]=255&_,F[1]=_>>>8&255,r.check=a(r.check,F,2,0)),y=_=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(w<(x=r.length)&&(x=w),x&&(r.head&&(P=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,g,x,P)),512&r.flags&&(r.check=a(r.check,f,x,g)),w-=x,g+=x,r.length-=x),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break e;for(x=0;P=f[g+x++],r.head&&P&&r.length<65536&&(r.head.name+=String.fromCharCode(P)),P&&x<w;);if(512&r.flags&&(r.check=a(r.check,f,x,g)),w-=x,g+=x,P)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===w)break e;for(x=0;P=f[g+x++],r.head&&P&&r.length<65536&&(r.head.comment+=String.fromCharCode(P)),P&&x<w;);if(512&r.flags&&(r.check=a(r.check,f,x,g)),w-=x,g+=x,P)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;y<16;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(_!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}y=_=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;y<32;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}e.adler=r.check=m(_),y=_=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=w,r.hold=_,r.bits=y,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){_>>>=7&y,y-=7&y,r.mode=27;break}for(;y<3;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}switch(r.last=1&_,y-=1,3&(_>>>=1)){case 0:r.mode=14;break;case 1:if(k(r),r.mode=20,6!==t)break;_>>>=2,y-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}_>>>=2,y-=2;break;case 14:for(_>>>=7&y,y-=7&y;y<32;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if((65535&_)!=(_>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&_,y=_=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(x=r.length){if(w<x&&(x=w),v<x&&(x=v),0===x)break e;n.arraySet(p,f,g,x,b),w-=x,g+=x,v-=x,b+=x,r.length-=x;break}r.mode=12;break;case 17:for(;y<14;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(r.nlen=257+(31&_),_>>>=5,y-=5,r.ndist=1+(31&_),_>>>=5,y-=5,r.ncode=4+(15&_),_>>>=4,y-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;y<3;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.lens[U[r.have++]]=7&_,_>>>=3,y-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},z=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,z){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;D=(j=r.lencode[_&(1<<r.lenbits)-1])>>>16&255,R=65535&j,!((T=j>>>24)<=y);){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(R<16)_>>>=T,y-=T,r.lens[r.have++]=R;else{if(16===R){for(M=T+2;y<M;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(_>>>=T,y-=T,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}P=r.lens[r.have-1],x=3+(3&_),_>>>=2,y-=2}else if(17===R){for(M=T+3;y<M;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}y-=T,P=0,x=3+(7&(_>>>=T)),_>>>=3,y-=3}else{for(M=T+7;y<M;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}y-=T,P=0,x=11+(127&(_>>>=T)),_>>>=7,y-=7}if(r.have+x>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;x--;)r.lens[r.have++]=P}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,B={bits:r.lenbits},z=s(c,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,z){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},z=s(l,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,z){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=w&&258<=v){e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=w,r.hold=_,r.bits=y,o(e,S),b=e.next_out,p=e.output,v=e.avail_out,g=e.next_in,f=e.input,w=e.avail_in,_=r.hold,y=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;D=(j=r.lencode[_&(1<<r.lenbits)-1])>>>16&255,R=65535&j,!((T=j>>>24)<=y);){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(D&&0==(240&D)){for(I=T,N=D,L=R;D=(j=r.lencode[L+((_&(1<<I+N)-1)>>I)])>>>16&255,R=65535&j,!(I+(T=j>>>24)<=y);){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}_>>>=I,y-=I,r.back+=I}if(_>>>=T,y-=T,r.back+=T,r.length=R,0===D){r.mode=26;break}if(32&D){r.back=-1,r.mode=12;break}if(64&D){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&D,r.mode=22;case 22:if(r.extra){for(M=r.extra;y<M;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.length+=_&(1<<r.extra)-1,_>>>=r.extra,y-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;D=(j=r.distcode[_&(1<<r.distbits)-1])>>>16&255,R=65535&j,!((T=j>>>24)<=y);){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(0==(240&D)){for(I=T,N=D,L=R;D=(j=r.distcode[L+((_&(1<<I+N)-1)>>I)])>>>16&255,R=65535&j,!(I+(T=j>>>24)<=y);){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}_>>>=I,y-=I,r.back+=I}if(_>>>=T,y-=T,r.back+=T,64&D){e.msg="invalid distance code",r.mode=30;break}r.offset=R,r.extra=15&D,r.mode=24;case 24:if(r.extra){for(M=r.extra;y<M;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}r.offset+=_&(1<<r.extra)-1,_>>>=r.extra,y-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===v)break e;if(x=S-v,r.offset>x){if((x=r.offset-x)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}A=x>r.wnext?(x-=r.wnext,r.wsize-x):r.wnext-x,x>r.length&&(x=r.length),O=r.window}else O=p,A=b-r.offset,x=r.length;for(v<x&&(x=v),v-=x,r.length-=x;p[b++]=O[A++],--x;);0===r.length&&(r.mode=21);break;case 26:if(0===v)break e;p[b++]=r.length,v--,r.mode=21;break;case 27:if(r.wrap){for(;y<32;){if(0===w)break e;w--,_|=f[g++]<<y,y+=8}if(S-=v,e.total_out+=S,r.total+=S,S&&(e.adler=r.check=r.flags?a(r.check,p,S,b-S):i(r.check,p,S,b-S)),S=v,(r.flags?_:m(_))!==r.check){e.msg="incorrect data check",r.mode=30;break}y=_=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;y<32;){if(0===w)break e;w--,_+=f[g++]<<y,y+=8}if(_!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}y=_=0}r.mode=29;case 29:z=1;break e;case 30:z=-3;break e;case 31:return-4;default:return d}return e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=w,r.hold=_,r.bits=y,(r.wsize||S!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&E(e,e.output,e.next_out,S-e.avail_out)?(r.mode=31,-4):(C-=e.avail_in,S-=e.avail_out,e.total_in+=C,e.total_out+=S,r.total+=S,r.wrap&&S&&(e.adler=r.check=r.flags?a(r.check,p,S,e.next_out-S):i(r.check,p,S,e.next_out-S)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==C&&0===S||4===t)&&z===u&&(z=-5),z)},r.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?d:((r.head=t).done=!1,u):d},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?d:11===r.mode&&i(1,t,n,0)!==r.check?-3:E(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,u):d},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){"use strict";var n=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,c,l,u,d,h){var f,p,m,g,b,w,v,_,y,C=h.bits,S=0,k=0,E=0,x=0,A=0,O=0,T=0,D=0,R=0,I=0,N=null,L=0,P=new n.Buf16(16),z=new n.Buf16(16),B=null,M=0;for(S=0;S<=15;S++)P[S]=0;for(k=0;k<c;k++)P[t[r+k]]++;for(A=C,x=15;1<=x&&0===P[x];x--);if(x<A&&(A=x),0===x)return l[u++]=20971520,l[u++]=20971520,h.bits=1,0;for(E=1;E<x&&0===P[E];E++);for(A<E&&(A=E),S=D=1;S<=15;S++)if(D<<=1,(D-=P[S])<0)return-1;if(0<D&&(0===e||1!==x))return-1;for(z[1]=0,S=1;S<15;S++)z[S+1]=z[S]+P[S];for(k=0;k<c;k++)0!==t[r+k]&&(d[z[t[r+k]]++]=k);if(w=0===e?(N=B=d,19):1===e?(N=i,L-=257,B=a,M-=257,256):(N=o,B=s,-1),S=E,b=u,T=k=I=0,m=-1,g=(R=1<<(O=A))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(v=S-T,y=d[k]<w?(_=0,d[k]):d[k]>w?(_=B[M+d[k]],N[L+d[k]]):(_=96,0),f=1<<S-T,E=p=1<<O;l[b+(I>>T)+(p-=f)]=v<<24|_<<16|y,0!==p;);for(f=1<<S-1;I&f;)f>>=1;if(0!==f?(I&=f-1,I+=f):I=0,k++,0==--P[S]){if(S===x)break;S=t[r+d[k]]}if(A<S&&(I&g)!==m){for(0===T&&(T=A),b+=E,D=1<<(O=S-T);O+T<x&&!((D-=P[O+T])<=0);)O++,D<<=1;if(R+=1<<O,1===e&&852<R||2===e&&592<R)return 1;l[m=I&g]=A<<24|O<<16|b-u}}return 0!==I&&(l[b+I]=S-T<<24|64<<16),h.bits=A,0}},{"../utils/common":41}],51:[function(e,t,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){"use strict";var n=e("../utils/common"),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,l=256,u=l+1+c,d=30,h=19,f=2*u+1,p=15,m=16,g=7,b=256,w=16,v=17,_=18,y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=new Array(2*(u+2));o(E);var x=new Array(2*d);o(x);var A=new Array(512);o(A);var O=new Array(256);o(O);var T=new Array(c);o(T);var D,R,I,N=new Array(d);function L(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function P(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function z(e){return e<256?A[e]:A[256+(e>>>7)]}function B(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function M(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<<e.bi_valid&65535,B(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function j(e,t,r){M(e,r[2*t],r[2*t+1])}function F(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function U(e,t,r){var n,i,a=new Array(p+1),o=0;for(n=1;n<=p;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=F(a[s]++,s))}}function W(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function H(e){8<e.bi_valid?B(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Z(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function $(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&Z(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Z(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function q(e,t,r){var n,i,a,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===n?j(e,i,t):(j(e,(a=O[i])+l+1,t),0!==(o=y[a])&&M(e,i-=T[a],o),j(e,a=z(--n),r),0!==(o=C[a])&&M(e,n-=N[a],o)),s<e.last_lit;);j(e,b,t)}function V(e,t){var r,n,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=f,r=0;r<c;r++)0!==a[2*r]?(e.heap[++e.heap_len]=l=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,r=e.heap_len>>1;1<=r;r--)$(e,a,r);for(i=c;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,$(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(a=0;a<=p;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<f;r++)g<(a=c[2*c[2*(n=e.heap[r])+1]+1]+1)&&(a=g,b++),c[2*n+1]=a,l<n||(e.bl_count[a]++,o=0,m<=n&&(o=h[n-m]),s=c[2*n],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*n+1]+o)));if(0!==b){do{for(a=g-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(a=g;0!==a;a--)for(n=e.bl_count[a];0!==n;)l<(i=e.heap[--r])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),n--)}}(e,t),U(a,l,e.bl_count)}function G(e,t,r){var n,i,a=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*w]++):s<=10?e.bl_tree[2*v]++:e.bl_tree[2*_]++,a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function K(e,t,r){var n,i,a=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),n=0;n<=r;n++)if(i=o,o=t[2*(n+1)+1],!(++s<c&&i===o)){if(s<l)for(;j(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(j(e,i,e.bl_tree),s--),j(e,w,e.bl_tree),M(e,s-3,2)):s<=10?(j(e,v,e.bl_tree),M(e,s-3,3)):(j(e,_,e.bl_tree),M(e,s-11,7));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(N);var Y=!1;function X(e,t,r,i){M(e,(s<<1)+(i?1:0),3),function(e,t,r,i){H(e),i&&(B(e,r),B(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}r._tr_init=function(e){Y||(function(){var e,t,r,n,i,a=new Array(p+1);for(n=r=0;n<c-1;n++)for(T[n]=r,e=0;e<1<<y[n];e++)O[r++]=n;for(O[r-1]=n,n=i=0;n<16;n++)for(N[n]=i,e=0;e<1<<C[n];e++)A[i++]=n;for(i>>=7;n<d;n++)for(N[n]=i<<7,e=0;e<1<<C[n]-7;e++)A[256+i++]=n;for(t=0;t<=p;t++)a[t]=0;for(e=0;e<=143;)E[2*e+1]=8,e++,a[8]++;for(;e<=255;)E[2*e+1]=9,e++,a[9]++;for(;e<=279;)E[2*e+1]=7,e++,a[7]++;for(;e<=287;)E[2*e+1]=8,e++,a[8]++;for(U(E,u+1,a),e=0;e<d;e++)x[2*e+1]=5,x[2*e]=F(e,5);D=new L(E,y,l+1,u,p),R=new L(x,C,0,d,p),I=new L(new Array(0),S,0,h,g)}(),Y=!0),e.l_desc=new P(e.dyn_ltree,D),e.d_desc=new P(e.dyn_dtree,R),e.bl_desc=new P(e.bl_tree,I),e.bi_buf=0,e.bi_valid=0,W(e)},r._tr_stored_block=X,r._tr_flush_block=function(e,t,r,n){var o,s,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<l;t++)if(0!==e.dyn_ltree[2*t])return a;return i}(e)),V(e,e.l_desc),V(e,e.d_desc),c=function(e){var t;for(G(e,e.dyn_ltree,e.l_desc.max_code),G(e,e.dyn_dtree,e.d_desc.max_code),V(e,e.bl_desc),t=h-1;3<=t&&0===e.bl_tree[2*k[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==t?X(e,t,r,n):4===e.strategy||s===o?(M(e,2+(n?1:0),3),q(e,E,x)):(M(e,4+(n?1:0),3),function(e,t,r,n){var i;for(M(e,t-257,5),M(e,r-1,5),M(e,n-4,4),i=0;i<n;i++)M(e,e.bl_tree[2*k[i]+1],3);K(e,e.dyn_ltree,t-1),K(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),q(e,e.dyn_ltree,e.dyn_dtree)),W(e),n&&H(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(O[r]+l+1)]++,e.dyn_dtree[2*z(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){M(e,2,3),j(e,b,E),function(e){16===e.bi_valid?(B(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var r,n,a,o,s=1,c={},l=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,r="[object process]"==={}.toString.call(e.process)?function(e){i.nextTick((function(){f(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){a.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(f,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[s]=i,r(s),s++},d.clearImmediate=h}function h(e){delete c[e]}function f(e){if(l)setTimeout(f,0,e);else{var r=c[e];if(r){l=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{h(e),l=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},477:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var n=r(45247),i=r(23906);function a(e){void 0===e&&(e=n.t);var t=e===n.t?i.P:(0,i.N)(e);return function(){return t().dispatch}}var o=a()},26926:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});var n=r(98173),i=r(45247);function a(){return(0,n.useContext)(i.t)}},91270:(e,t,r)=>{"use strict";r.d(t,{d:()=>u});var n=r(98173),i=r(26926),a=r(41968),o=r(14812),s=r(45247),c=function(e,t){return e===t};function l(e){void 0===e&&(e=s.t);var t=e===s.t?i.n:function(){return(0,n.useContext)(e)};return function(e,r){void 0===r&&(r=c);var i=t(),s=function(e,t,r,i){var s,c=(0,n.useReducer)((function(e){return e+1}),0)[1],l=(0,n.useMemo)((function(){return(0,a.K)(r,i)}),[r,i]),u=(0,n.useRef)(),d=(0,n.useRef)(),h=(0,n.useRef)(),f=(0,n.useRef)(),p=r.getState();try{if(e!==d.current||p!==h.current||u.current){var m=e(p);s=void 0!==f.current&&t(m,f.current)?f.current:m}else s=f.current}catch(g){throw u.current&&(g.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),g}return(0,o.E)((function(){d.current=e,h.current=p,f.current=s,u.current=void 0})),(0,o.E)((function(){function e(){try{var e=r.getState();if(e===h.current)return;var n=d.current(e);if(t(n,f.current))return;f.current=n,h.current=e}catch(g){u.current=g}c()}return l.onStateChange=e,l.trySubscribe(),e(),function(){return l.tryUnsubscribe()}}),[r,l]),s}(e,r,i.store,i.subscription);return(0,n.useDebugValue)(s),s}}var u=l()},79245:(e,t,r)=>{"use strict";r.d(t,{N_:()=>u,ok:()=>f});var n=r(98173),i=r(30150),a=r(24833);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function c(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}const l=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];const u=n.forwardRef((function(e,t){let{onClick:r,relative:c,reloadDocument:u,replace:d,state:h,target:f,to:p,preventScrollReset:m}=e,g=s(e,l),b=(0,i.$P)(p,{relative:c}),w=function(e,t){let{target:r,replace:o,state:s,preventScrollReset:c,relative:l}=void 0===t?{}:t,u=(0,i.Zp)(),d=(0,i.zy)(),h=(0,i.x$)(e,{relative:l});return n.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let r=void 0!==o?o:(0,a.AO)(d)===(0,a.AO)(h);u(e,{replace:r,state:s,preventScrollReset:c,relative:l})}}),[d,u,h,o,s,r,e,c,l])}(p,{replace:d,state:h,target:f,preventScrollReset:m,relative:c});return n.createElement("a",o({},g,{href:b,onClick:u?r:function(e){r&&r(e),e.defaultPrevented||w(e)},ref:t,target:f}))}));var d,h;function f(e){let t=n.useRef(c(e)),r=(0,i.zy)(),a=n.useMemo((()=>function(e,t){let r=c(e);for(let n of t.keys())r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}));return r}(r.search,t.current)),[r.search]),o=(0,i.Zp)(),s=n.useCallback(((e,t)=>{const r=c("function"===typeof e?e(a):e);o("?"+r,t)}),[o,a]);return[a,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(d||(d={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(h||(h={}))},30150:(e,t,r)=>{"use strict";var n;r.d(t,{$P:()=>_,BV:()=>U,C5:()=>B,KC:()=>x,Zp:()=>k,fS:()=>z,g:()=>A,qh:()=>j,sv:()=>M,x$:()=>O,zy:()=>C});var i=r(24833),a=r(98173);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}const s="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},{useState:c,useEffect:l,useLayoutEffect:u,useDebugValue:d}=n||(n=r.t(a,2));function h(e){const t=e.getSnapshot,r=e.value;try{const e=t();return!s(r,e)}catch(n){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,(n||(n=r.t(a,2))).useSyncExternalStore;const f=a.createContext(null);const p=a.createContext(null);const m=a.createContext(null);const g=a.createContext(null);const b=a.createContext(null);const w=a.createContext({outlet:null,matches:[]});const v=a.createContext(null);function _(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,i.V1)(!1);let{basename:n,navigator:o}=a.useContext(g),{hash:s,pathname:c,search:l}=O(e,{relative:r}),u=c;return"/"!==n&&(u="/"===c?n:(0,i.HS)([n,c])),o.createHref({pathname:u,search:l,hash:s})}function y(){return null!=a.useContext(b)}function C(){return y()||(0,i.V1)(!1),a.useContext(b).location}function S(e){return e.filter(((t,r)=>0===r||!t.route.index&&t.pathnameBase!==e[r-1].pathnameBase))}function k(){y()||(0,i.V1)(!1);let{basename:e,navigator:t}=a.useContext(g),{matches:r}=a.useContext(w),{pathname:n}=C(),o=JSON.stringify(S(r).map((e=>e.pathnameBase))),s=a.useRef(!1);return a.useEffect((()=>{s.current=!0})),a.useCallback((function(r,a){if(void 0===a&&(a={}),!s.current)return;if("number"===typeof r)return void t.go(r);let c=(0,i.Gh)(r,JSON.parse(o),n,"path"===a.relative);"/"!==e&&(c.pathname="/"===c.pathname?e:(0,i.HS)([e,c.pathname])),(a.replace?t.replace:t.push)(c,a.state,a)}),[e,t,o,n])}const E=a.createContext(null);function x(){return a.useContext(E)}function A(){let{matches:e}=a.useContext(w),t=e[e.length-1];return t?t.params:{}}function O(e,t){let{relative:r}=void 0===t?{}:t,{matches:n}=a.useContext(w),{pathname:o}=C(),s=JSON.stringify(S(n).map((e=>e.pathnameBase)));return a.useMemo((()=>(0,i.Gh)(e,JSON.parse(s),o,"path"===r)),[e,s,o,r])}function T(){let e=function(){var e;let t=a.useContext(v),r=P(L.UseRouteError),n=a.useContext(w),o=n.matches[n.matches.length-1];if(t)return t;return n||(0,i.V1)(!1),!o.route.id&&(0,i.V1)(!1),null==(e=r.errors)?void 0:e[o.route.id]}(),t=(0,i.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},s={padding:"2px 4px",backgroundColor:n};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unhandled Thrown Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:o},r):null,a.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",a.createElement("code",{style:s},"errorElement")," props on\xa0",a.createElement("code",{style:s},"<Route>")))}class D extends a.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){}render(){return this.state.error?a.createElement(v.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function R(e){let{routeContext:t,match:r,children:n}=e,i=a.useContext(f);return i&&r.route.errorElement&&(i._deepestRenderedBoundaryId=r.route.id),a.createElement(w.Provider,{value:t},n)}function I(e,t,r){if(void 0===t&&(t=[]),null==e){if(null==r||!r.errors)return null;e=r.matches}let n=e,o=null==r?void 0:r.errors;if(null!=o){let e=n.findIndex((e=>e.route.id&&(null==o?void 0:o[e.route.id])));e>=0||(0,i.V1)(!1),n=n.slice(0,Math.min(n.length,e+1))}return n.reduceRight(((e,i,s)=>{let c=i.route.id?null==o?void 0:o[i.route.id]:null,l=r?i.route.errorElement||a.createElement(T,null):null,u=()=>a.createElement(R,{match:i,routeContext:{outlet:e,matches:t.concat(n.slice(0,s+1))}},c?l:void 0!==i.route.element?i.route.element:e);return r&&(i.route.errorElement||0===s)?a.createElement(D,{location:r.location,component:l,error:c,children:u()}):u()}),null)}var N,L;function P(e){let t=a.useContext(m);return t||(0,i.V1)(!1),t}!function(e){e.UseRevalidator="useRevalidator"}(N||(N={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(L||(L={}));function z(e){let{basename:t,children:r,initialEntries:n,initialIndex:o}=e,s=a.useRef();null==s.current&&(s.current=(0,i.sC)({initialEntries:n,initialIndex:o,v5Compat:!0}));let c=s.current,[l,u]=a.useState({action:c.action,location:c.location});return a.useLayoutEffect((()=>c.listen(u)),[c]),a.createElement(F,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:c})}function B(e){let{to:t,replace:r,state:n,relative:o}=e;y()||(0,i.V1)(!1);let s=a.useContext(m),c=k();return a.useEffect((()=>{s&&"idle"!==s.navigation.state||c(t,{replace:r,state:n,relative:o})})),null}function M(e){return function(e){let t=a.useContext(w).outlet;return t?a.createElement(E.Provider,{value:e},t):t}(e.context)}function j(e){(0,i.V1)(!1)}function F(e){let{basename:t="/",children:r=null,location:n,navigationType:o=i.rc.Pop,navigator:s,static:c=!1}=e;y()&&(0,i.V1)(!1);let l=t.replace(/^\/*/,"/"),u=a.useMemo((()=>({basename:l,navigator:s,static:c})),[l,s,c]);"string"===typeof n&&(n=(0,i.Rr)(n));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:m="default"}=n,w=a.useMemo((()=>{let e=(0,i.pb)(d,l);return null==e?null:{pathname:e,search:h,hash:f,state:p,key:m}}),[l,d,h,f,p,m]);return null==w?null:a.createElement(g.Provider,{value:u},a.createElement(b.Provider,{children:r,value:{location:w,navigationType:o}}))}function U(e){let{children:t,location:r}=e,n=a.useContext(p);return function(e,t){y()||(0,i.V1)(!1);let r=a.useContext(m),{matches:n}=a.useContext(w),s=n[n.length-1],c=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,d=C();if(t){var h;let e="string"===typeof t?(0,i.Rr)(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||(0,i.V1)(!1),u=e}else u=d;let f=u.pathname||"/",p="/"===l?f:f.slice(l.length)||"/",g=(0,i.ue)(e,{pathname:p}),v=I(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:(0,i.HS)([l,e.pathname]),pathnameBase:"/"===e.pathnameBase?l:(0,i.HS)([l,e.pathnameBase])}))),n,r||void 0);return t?a.createElement(b.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:i.rc.Pop}},v):v}(n&&!t?n.router.routes:H(t),r)}var W;!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(W||(W={}));new Promise((()=>{}));a.Component;function H(e,t){void 0===t&&(t=[]);let r=[];return a.Children.forEach(e,((e,n)=>{if(!a.isValidElement(e))return;if(e.type===a.Fragment)return void r.push.apply(r,H(e.props.children,t));e.type!==j&&(0,i.V1)(!1),e.props.index&&e.props.children&&(0,i.V1)(!1);let o=[...t,n],s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,hasErrorBoundary:null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle};e.props.children&&(s.children=H(e.props.children,o)),r.push(s)})),r}},72510:(e,t,r)=>{"use strict";r.d(t,{A6:()=>l,AH:()=>p,BF:()=>d,Cn:()=>g,Lv:()=>_,M6:()=>u,ST:()=>h,TM:()=>i,b6:()=>C,d1:()=>k,ih:()=>w,ir:()=>v,rq:()=>y,uE:()=>c,uL:()=>S,vq:()=>s,wz:()=>f});const n=new Set(["area","br","col","embed","hr","img","input","link","meta","param"]);function i(e){return"<!DOCTYPE "+e.name+(e.publicId?' PUBLIC "'+e.publicId+'"':"")+(!e.publicId&&e.systemId?" SYSTEM":"")+(e.systemId?' "'+e.systemId+'"':"")+">"}const a=Object.create(null);function o(e,t){const r=a[e]||(a[e]=Object.create(null));let n=r[t];if("boolean"!==typeof n){const i=document.createElement(e)[t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,((e,t)=>t.toUpperCase()))];n=r[t]="undefined"!==typeof i&&"boolean"!==typeof i}return n}function s(e){return e.nodeType===Node.ELEMENT_NODE}function c(e){return s(e)&&!e.ownerSVGElement}function l(e){return"IMG"===e.tagName}function u(e){return"AMP-IMG"===e.tagName}function d(e){return"FORM"===e.tagName}function h(e){return"STYLE"===e.tagName}function f(e){return e.nodeType===Node.DOCUMENT_NODE}let p;var m;function g(e){return e.nodeType===Node.COMMENT_NODE}(m=p||(p={})).isStyleRule=function(e){return"CSSStyleRule"===e.constructor.name},m.isImportRule=function(e){return"CSSImportRule"===e.constructor.name},m.isMediaRule=function(e){return"CSSMediaRule"===e.constructor.name},m.isFontFaceRule=function(e){return"CSSFontFaceRule"===e.constructor.name},m.isPageRule=function(e){return"CSSPageRule"===e.constructor.name},m.isKeyframesRule=function(e){return"CSSKeyframesRule"===e.constructor.name},m.isKeyframeRuleRule=function(e){return"CSSKeyframeRule"===e.constructor.name},m.isNamespaceRule=function(e){return"CSSNamespaceRule"===e.constructor.name},m.isCounterStyleRule=function(e){return"CSSCounterStyleRule"===e.constructor.name},m.isSupportsRule=function(e){return"CSSSupportsRule"===e.constructor.name},m.isFontFeatureValuesRuleRule=function(e){return"CSSFontFeatureValuesRule"===e.constructor.name};const b=/(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\r|\n)*?)((?:<!--)?<!\[endif\]\2>)/gi;function w(e){const t=C(e).matchAll(b);if(t)for(const r of t){const[,e,,t,n]=r;return{open:e,close:n,content:t}}}function v(e){return e.nodeType===Node.TEXT_NODE}function _(e){return"TABLE"===e.tagName}async function y(e,t=5e3){return"undefined"===typeof e.complete||e.complete?getComputedStyle(e):new Promise(((r,n)=>{setTimeout(r,t),e.onload=()=>r(getComputedStyle(e)),e.onerror=e=>{}}))}function C(e){if(s(e))return function(e){var t;const r=(null===(t=Object.getOwnPropertyDescriptor(e,"$$tagName"))||void 0===t?void 0:t.value)||e.tagName.toLowerCase(),i=function(e){const t=e.tagName.toLowerCase();let r="";for(const n of e.attributes){const e=n.name,i=n.value;r+=""!==i||"em"===e||o(t,e)?` ${e}="${i.replaceAll('"',"'")}"`:` ${e}`}return r}(e);return n.has(r.toLowerCase())?`<${r}${i}>`:h(e)?`<${r}${i}>${e.innerHTML}</${r}>`:`<${r}${i}>${S(e)}</${r}>`}(e);if(f(e))return[...e.childNodes].map((e=>C(e))).join("");if(function(e){return e.nodeType===Node.DOCUMENT_TYPE_NODE}(e))return i(e);const t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function S(e){let t="";for(const r of e.childNodes)t+=C(r);return t}function k(e,t){for(const a of e.childNodes)a.remove();let r=t.find((e=>function(e){return"HTML"===e.tagName}(e))),n=t.find((e=>function(e){return"BODY"===e.tagName}(e))),i=e;r||(r=e.createElement("html"),e.appendChild(r),i=r,n||(n=e.createElement("body"),r.appendChild(n),i=n));for(const a of t)i===e&&v(a)?i.appendChild(e.createComment(`%%%{{{${a.data}}}}%%%`)):i.appendChild(a)}},36434:(e,t,r)=>{"use strict";r.d(t,{$$:()=>d,Os:()=>l});var n=r(80599),i=r(39244),a=r(37918);const o=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"],s=new n.H(o),c=new i.X(s);function l(e,t,r){try{e.setAttribute(t,r)}catch{let n=e.tagName.toLowerCase();"html"===n&&(n="div");const i=`<${n} ${t}="${r}"/>`;let a=function(e){let t;switch(null===e||void 0===e?void 0:e.toLowerCase()){case"tr":t=document.createElement("table");break;case"td":t=document.createElement("tr");break;case"head":case"body":t=document.createElement("html");break;case"DocumentType":case"html":{const e=document.implementation.createHTMLDocument();for(const t of[...e.childNodes])t.remove();return e}default:t=document.createElement("div")}return t}(n);if(a instanceof Document)return;a.innerHTML=i;const o=a.querySelector(n);if(!o)throw new Error("targetElement is not defined");const s=o.getAttributeNode(t);s&&e.setAttributeNode(s.cloneNode())}}function u(e,t=!0){let r=e.content;switch(e.type){case a.Z.ROOT:{const r=document.implementation.createHTMLDocument();for(const e of[...r.childNodes])r.removeChild(e);if(t)for(const t of e.children)r.appendChild(u(t));return r}case a.Z.DOCTYPE:return(new DOMParser).parseFromString(`<!DOCTYPE${e.content}>`,"text/html").doctype;case a.Z.COMMENT:return document.createComment(r||"");case a.Z.ELEMENT:if(e.tag){const r=document.createElement(e.tag);if(Object.defineProperty(r,"$$tagName",{enumerable:!1,configurable:!1,value:e.tag}),e.attributes)for(const t of e.attributeNames){const i=e.attributes[t];try{l(r,t,"string"===typeof i?i:"")}catch(n){}}if(t)for(const t of e.children)r.appendChild(u(t));return r}return document.createTextNode("<");case a.Z.HTML:return function(e){if(e){const t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",e),t.firstChild||document.createTextNode("")}return document.createTextNode("")}(r||"");default:throw new Error("unsupported node")}}function d(e){var t;return(t=e,c.parse(t)).roots.map((e=>u(e)))}},19504:(e,t,r)=>{"use strict";r.d(t,{Km:()=>O,Sc:()=>A,Nh:()=>S});var n=r(72510),i=r(36434),a=r(44779),o=r(90717);const s="amp-custom";function c(e,t,r){for(const i of t)if(n.AH.isStyleRule(i)){const t=i.selectorText.split(/\+>~/).flatMap((e=>e.trim().split(" ")));if(1===t.length&&t[0].trim().startsWith(".em-"))for(const a of i.style){if("important"===i.style.getPropertyPriority(a))for(const t of e.querySelectorAll(i.selectorText))if((0,n.uE)(t)){const e=t.style;for(const n of[...e])if(n.startsWith(a)){const i=r(n,e.getPropertyValue(n)),a=t.getAttribute("class");t.setAttribute("class",a?`${i} ${a}`:i),e.removeProperty(n)}}}}else n.AH.isMediaRule(i)&&c(e,i.cssRules,r)}function l(e,t){const r=t.sheet;if(r){const i=new Set;c(e,r.cssRules,((e,a)=>{const o=function(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}(e,a),s=[...r.cssRules],c=`.${o} { ${e}: ${a} }`;return s.find((e=>n.AH.isStyleRule(e)&&e.selectorText===`.${o}`))||i.has(c)||(i.add(c),t.innerHTML=`\n.${o} { ${e}: ${a} };\n${t.innerHTML}`),o})),i.size&&(t.innerHTML=`\n${[...i].join("\n")};\n${t.innerHTML}`)}else;const i=t.innerHTML,a=i.replace(/!important/g,"");i!==a&&(t.innerHTML=a)}const u='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',d="<!doctype html>";async function h(e,t={}){const r=document.createElement("amp-img"),a=await(0,n.rq)(e)||void 0;let s=[];try{let c=e;for(;c&&(0,n.uE)(c);){const e=getComputedStyle(c);"none"===(null===e||void 0===e?void 0:e.display)&&(c.style.display="initial",s.push([c,c.style.display])),c=c.parentElement}const l=null!==a&&void 0!==a&&a.height?`${parseInt(a.height)}`:"",u=null!==a&&void 0!==a&&a.width?`${parseInt(a.width)}`:"",d=(0,o.xm)(e);let h=!1;if(d){let t=d.getAttribute("width");try{let r=u?`${u}px`:"";t||(d.setAttribute("width","720px"),r=getComputedStyle(e).width||""),d.setAttribute("width",!t||parseInt(t)>320?"320px":"720px"),r!==(getComputedStyle(e).width||"")&&(h=!0)}finally{t&&d.setAttribute("width",t||"")}}const f=e.src||e.srcset.split(",")[0];"100%"===e.style.width&&e.style.removeProperty("width"),"100%"===e.style.maxWidth&&e.style.removeProperty("max-width"),t={...(0,o.gu)(e),alt:e.alt,width:u,height:l,src:f,layout:h?"responsive":"fixed",...t};for(const e of Object.keys(t))(0,i.Os)(r,e,t[e])}finally{for(const[e,t]of s)e.style.display=t}return r}function f(e){const t=document.createElement("img"),{layout:r,height:n,...a}=(0,o.gu)(e),s="responsive"===r;for(const o of Object.keys(a))(0,i.Os)(t,o,a[o]);return s&&(t.style.maxWidth=a.width||"0px",t.style.width="100%"),t}var p=r(46496),m=r(16341),g=r(1511);var b=r(9008);const w=new Map;const v=new Map;const _="$GLOBAL_ATTRS",y=new Map;async function C(){if(!y.size){var e;const t=null===(e=(await(0,b.F)()).attrLists.find((e=>e.name===_)))||void 0===e?void 0:e.attrs;if(t)for(const e of t)y.set(e.name,e)}return y}function S(e){var t;return(0,n.vq)(e)&&(e.tagName.startsWith("AMP")||"FORM"===e.tagName||"TEMPLATE"===e.tagName&&"amp-mustache"===(null===(t=e.getAttribute("type"))||void 0===t?void 0:t.toLowerCase()))}function k(e,t,r){var i,a,o;if(t)if((0,n.vq)(e))switch(e.tagName.toLowerCase()){case"body":case r("script"):case"style":case"meta":case"title":return;case"head":case"html":c();break;default:s()||c()}else(0,n.wz)(e)?c():(0,n.ir)(e)&&(null!==(i=e.textContent)&&void 0!==i&&i.trim()||null!==(a=e.nextSibling)&&void 0!==a&&null!==(o=a.textContent)&&void 0!==o&&o.trim()&&(0,n.ir)(e.nextSibling))&&s();function s(){const r=t.compareDocumentPosition(e);if(!(8&r)){if(2&r)return t.insertBefore(e,t.firstChild),!0;if(4&r)return t.appendChild(e),!0}return!1}function c(){const n=[...e.childNodes];for(let e=n.length-1;e>=0;e--)k(n[e],t,r)}}async function E(e,t){const r=new Set,c=e=>t.replaceSelectors(e.toLowerCase());if(t.replaceImages&&await async function(e){const t=e.querySelectorAll("img");for(const n of t)n.replaceWith(await h(n));const r=e.querySelectorAll("picture");for(const n of r){const e=n.querySelector("img");if(e){const t=await h(e);n.replaceWith(t)}else n.remove()}}(e),t.injectExtensions){const S=t.replaceSelectors(g.Vq);if(!e.querySelector(S)){const E=t.createElementFn("script");E.setAttribute("src",g.zq),E.setAttribute("async","");(0,o.xy)(e).appendChild(E)}}t.injectRequiredTags&&((0,m.y)(e,t.createElementFn,c),function(e){const t=e.doctype;if(t){if((0,n.TM)(t)===d)return;const r=(new DOMParser).parseFromString(d,"text/html").doctype;e.replaceChild(r,t)}else{const t=(new DOMParser).parseFromString(d,"text/html").doctype;e.insertBefore(t,e.firstChild)}}(e),(0,a.R)(e),(0,p.C)(e)),t.replaceStylesAndLinks&&function(e){const t=(0,o.xy)(e),r=e.querySelectorAll('link[rel="stylesheet"]'),n=[...e.querySelectorAll("style")].filter((e=>!e.hasAttribute("amp4email-boilerplate")));if(1===n.length){const r=n[0];if(r.parentElement===t&&""===r.getAttribute(s))return void l(e,r)}let i=[];for(const a of n)i.push(a.innerHTML),a.remove();if(i.length){const r=e.createElement("style");r.innerHTML=`\n${i.join("")}\n`,r.setAttribute(s,""),t.append(r),l(e,r)}for(const a of r)a.remove()}(e);const u=await(0,b.F)(),f=await async function(){if(!w.size){const e=await(0,b.F)(),t=e.tags;for(let r=0;r<t.length;r++){const n=t[r],{selector:i,attrs:a,attrLists:o}=n,s=(null===o||void 0===o?void 0:o.flatMap((t=>e.attrLists.filter((({name:e})=>e===t)).flatMap((e=>e.attrs)))))||[];w.set(i,{...n,priority:r,attrs:new Map([...a,...s].map((e=>[e.name,e])))})}}return w}(),_=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),y=new Map;for(let[x,A]of f)if(!A.deprecation){x=c(x);let O=[...e.querySelectorAll(x)].filter((e=>!y.has(e)));A.unique&&O.length&&(O=[O[0]]),t.injectRequiredTags&&A.required&&!O.length&&(O=[...O,t.createElementFn(A.name)]);for(const T of O){if(t.injectRequiredAttributes&&T.getAttribute("on")&&!T.getAttribute("tabindex")&&T.setAttribute("tabindex","0"),t.removeUnsupportedStyles){let R=!1;for(const I of[...T.classList])I.startsWith("i-amphtml")&&(R=!0,T.classList.remove(I));R&&!T.classList.length&&T.removeAttribute("class")}const D=y.get(T);D&&D.priority>A.priority||y.set(T,A)}}for(let[N,L]of y){if(t.injectExtensions&&L.requiresExtension)for(const B of L.requiresExtension)r.add(B);const P=L.requiredParent?"$ROOT"===L.requiredParent?e:e.querySelector(L.requiredParent):null;!P||N.parentNode&&!t.moveInvalidTagPosition?N.parentNode||e.body.appendChild(N):P!==N.parentNode&&("HEAD"===L.name||(0,n.vq)(P)&&"HEAD"===P.tagName?P.insertBefore(N,P.firstChild):P.appendChild(N)),t.removeUnsupportedTags&&_.delete(N);const z=await C();if(t.removeUnsupportedAttributes||t.injectRequiredAttributes){const M=L.attrs,j=t.injectRequiredAttributes?new Set([...M].map((([e,t])=>t)).filter((e=>e.required&&e.value))):void 0,F=N.getAttributeNames();for(const U of F){const W=M.get(U)||z.get(U);if(W){if("id"===U||"class"===U||"style"===U){null===j||void 0===j||j.delete(W);continue}if(t.removeUnsupportedAttributes){const H=N.getAttribute(U);if(W.value&&W.value.indexOf(H)<0){N.removeAttribute(U);continue}if(W.valueRegex){if(!new RegExp(W.valueRegex).test(H)){N.removeAttribute(U);continue}}if(W.disallowedValueRegex){if(new RegExp(W.disallowedValueRegex).test(H)){N.removeAttribute(U);continue}}const Z=W.valueUrl;if(Z)if(""===H){if(!Z.allowEmpty){N.removeAttribute(U);continue}}else if(H.indexOf("\x3c!--")>0&&H.indexOf("--\x3e")>0);else if(!Z.allowRelative){if(H.startsWith("#")||H.startsWith("/")){N.removeAttribute(U);continue}{const $=Z.protocol.length?Z.protocol:["https"];let q=H.substring(0,H.indexOf(":"));if(q){if($.indexOf(q)<0){let V=$[0]+H.substring(H.indexOf(":"));if(!URL.canParse(V)){N.removeAttribute(U);continue}(0,i.Os)(N,U,V)}else if(!URL.canParse(H)){N.removeAttribute(U);continue}}else{let G=$[0]+H;if(!URL.canParse(G)){N.removeAttribute(U);continue}(0,i.Os)(N,U,G)}}}}null===j||void 0===j||j.delete(W)}else{if("id"===U||"class"===U||"style"===U)continue;t.removeUnsupportedAttributes&&N.removeAttribute(U)}}if(j)for(const K of j)(0,i.Os)(N,K.name,K.value[0])}}t.moveInvalidTagPosition&&k(e,e.body,c);for(const Y of _)Y.remove();if(t.removeUnsupportedStyles){const X=e.querySelectorAll("*"),J=await async function(){if(!v.size){const e=await(0,b.F)();for(const t of e.declarations)v.set(t.name,t)}return v}();function Q(e){const t=e.cssText.replaceAll(/\".*\"/g,"").replaceAll(/\'.*\'/g,"").replaceAll(/\/\*.*\*\/|(-moz-|-ms-|-o-|-webkit-)+\w+(?=:)/g,"").match(/[a-z-]+(?=:[^before|after|hover])/gi)||[];for(const r of t){if(!r)continue;const t=e.getPropertyValue(r);"important"===e.getPropertyPriority(r)&&e.setProperty(r,t);const n=J.get(r);if(n){if(n.value)n.value.indexOf(t)<0&&e.removeProperty(r);else if(n.valueRegex){new RegExp(n.valueRegex).test(t)||e.removeProperty(r)}}else e.removeProperty(r)}}function ee(e){return"CSSStyleRule"===e.constructor.name}function te(e){return"CSSMediaRule"===e.constructor.name}function re(e){const t=e.cssRules;for(let r=t.length-1;r>=0;r--){const n=t[r];ee(n)?n.selectorText.indexOf("[")>=0||n.selectorText.indexOf(":")>=0?e.deleteRule(r):(Q(n.style),n.style.cssText||e.deleteRule(r)):te(n)?(re(n),n.cssRules.length||e.deleteRule(r)):e.deleteRule(r)}}for(const ie of X)if((0,n.uE)(ie)){const ae=ie.getAttribute("style");ae&&(Q(ie.style),ie.style.length?ie.style.cssText!==ae&&ie.setAttribute("style",ie.style.cssText):ie.removeAttribute("style"))}const ne=e.querySelector("style[amp-custom]");if(ne){const oe=ne.sheet;oe&&(re(oe),ne.innerHTML=[...oe.cssRules].map((e=>e.cssText)).join("\n"))}}await async function(e,t,r){for(const{name:a,versions:s}of t){const t=r.replaceSelectors("amp-mustache"===a?`script[async][custom-template='${a}']`:`script[async][custom-element='${a}']`);if(!e.querySelector(t)){const t=(0,o.xy)(e),c=r.createElementFn("script"),l=(n=a,i=s.findLast((e=>"latest"!==e))||"v0",`${g.gP}/${n.toLowerCase()}-${i}.js`);c.setAttribute("async",""),c.setAttribute("amp-mustache"===a?"custom-template":"custom-element",a),c.setAttribute("src",l),t.appendChild(c),t.appendChild(e.createTextNode("\n"))}}var n,i}(e,u.extensions.filter((({name:e})=>r.has(e))),t)}function x(e,t){return Object.keys(t).reduce(((e,r)=>e.replaceAll(r,t[r])),e)}function A(e,t={}){const{correct:r=!0,injectExtensions:n=!0,mappedTags:i={}}=t;return E(e,{replaceImages:r,replaceStylesAndLinks:r,injectRequiredTags:r,injectExtensions:n,formsAsAmpForms:n,injectRequiredAttributes:r,moveInvalidTagPosition:r,removeUnsupportedTags:r,removeUnsupportedAttributes:r,removeUnsupportedStyles:r,createElementFn:t=>e.createElement(i[t.toLowerCase()]||t),replaceSelectors:e=>x(e.toLowerCase(),i)})}function O(e,t={}){const{correct:r=!0,removeExtensions:i=!0,mappedTags:c={}}=t,l=t=>e.createElement(c[t.toLowerCase()]||t),h=e=>x(e,c);if(r){!function(e){const t=e.querySelectorAll("amp-img");for(const r of t)r.replaceWith(f(r))}(e),function(e){const t=e.doctype;if(t&&(0,n.TM)(t).toLowerCase()===d){const r=(new DOMParser).parseFromString(u,"text/html").doctype;e.replaceChild(r,t)}}(e),function(e){const t=e.querySelector(`style[${s}]`);t&&t.removeAttribute(s)}(e),(0,a.C)(e);const t=(0,o.ep)(e);t.removeAttribute("\u26a14email"),t.removeAttribute("data-css-strict")}i&&function(e,t){const r=e.querySelectorAll("*"),n=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const a of n){var i;null!==(i=a.getAttribute("src"))&&void 0!==i&&i.startsWith(g.gP)&&a.remove()}for(const a of r)S(a)&&"FORM"!==a.tagName&&a.remove()}(e,{formsAsAmpForms:t.removeExtensions,createElementFn:l,replaceSelectors:h})}},5052:(e,t,r)=>{"use strict";r.d(t,{F:()=>B,y:()=>M});var n=r(1029),i=r(27943),a=r(63233),o=r(13216),s=r(46767),c=r(98119),l=r(97032),u=r(83027),d=r(98845),h=r(19992),f=r(40835),p=r(5618),m=r(73668),g=r(12005),b=r(8111),w=r(92485),v=r(52779),_=r(79965),y=r(94160),C=r(6193),S=r(47491),k=r(90925),E=r(871),x=r(2952),A=r(705),O=r(92960),T=r(33932),D=r(70875),R=r(59089),I=r(30397),N=r(64706),L=r(38251),P=r(88296),z=r(81551);const B=[o.Q2,s.OV,v.S,w.k,c.yR,l.Nq,u.kE,d.GY,h.B,p.VM,m.f,g.Ad,b.Jg,_.M,y.F,C.KA,S.Sd,k.y,E.CL,x.tO,A.vx,O.Z8,f.yH,T.Zs,D.Uu,R.So,I.C,N.N,L.U8];function M(e){let t={};if(e){const r=(0,P.Q)();z.Q.inject(r,e),t={INJECTION:r}}const r=(0,n.configureStore)({reducer:a.A,middleware:e=>e({serializableCheck:!1}).concat(B.map((e=>e.middleware))),preloadedState:t});return(0,i.$k)(r.dispatch),r}},90121:(e,t,r)=>{"use strict";r.d(t,{D3:()=>d,RS:()=>u});var n=r(2604),i=r(98173),a=r(88296),o=r(81197),s=r(80148),c=r(74568);const l=(0,a.Q)();function u(e,t,r){e instanceof c.m||(e=(0,s.My)(e));e.getOrCreateInstance(l,(()=>new o.v)).fire({id:t,payload:r})}const d=(e,t)=>{const r=function(e){return(0,s.My)(e).getOrCreateInstance(l,(()=>new o.v)).addEventListener}((0,n.Pj)());(0,i.useEffect)((()=>{const n=r((({id:r,payload:n})=>{r===e&&t(n)}));return()=>n.dispose()}),[r,e,t])}},80148:(e,t,r)=>{"use strict";r.d(t,{A$:()=>f,Ff:()=>l,IP:()=>c,My:()=>s.My,Nj:()=>d,lg:()=>u,rl:()=>h});var n=r(98173),i=r(2604),a=r(88296),o=r(74568),s=r(73942);const c=s.if,l=(e,t)=>{if(!e){const e=o.Q.createChild(),t=(0,a.Q)();return o.Q.inject(t,e),t}return e};function u(){const e=(0,i.Pj)(),t=(0,s.My)(e);return function(e,r){t.inject(e,r)}}function d(e){const t=(0,i.Pj)();return(0,s.My)(t).getInstance(e)}function h(e){const[t,r]=(0,n.useState)(),a=(0,i.Pj)(),o=(0,n.useRef)(Promise.resolve()),c=(0,s.My)(a);return(0,n.useEffect)((()=>{const t=o.current=o.current.then((()=>c.getInstanceAsync(e))).then((e=>{t===o.current&&r(e)}),(e=>{}))}),[r,e,a,c]),t}function f(e){const t=(0,i.Pj)();return(0,s.My)(t).getServices(e)}},90614:(e,t,r)=>{"use strict";r.d(t,{Zc:()=>l,_q:()=>u,cZ:()=>s,dB:()=>c,ml:()=>d});var n=r(2604),i=r(88296),a=r(80148),o=r(65470);function s(e){return(0,i.Q)(e)}function c(e,t){return(0,a.My)(e).getOrCreateInstance(t,(()=>new o.lt))}function l(e,t){return(0,a.My)(e).getOrCreateInstance(t,(()=>new o.lt)).event}function u(e){return d(e).event}function d(e){return c((0,n.Pj)(),e)}},30315:(e,t,r)=>{"use strict";r.d(t,{qy:()=>x,An:()=>S,T5:()=>z,pH:()=>g,Ay:()=>w,$l:()=>b,SR:()=>N,Mp:()=>I,gZ:()=>L,PJ:()=>O,bc:()=>E});var n=r(94049),i=r.n(n),a=r(65214),o=r(21679);const s=new(r(62175).A)(o.A,a.A)._freeze();var c=r(81509),l=r(72510),u=r(36434),d=r(39218);const h=Symbol("Error");function f(e){return Promise.all(e.map((e=>e instanceof Promise?e.catch((e=>h)):e))).then((e=>e.filter((e=>e!==h))))}const p=/url(?:\((['|"]?))(.*?\.(png|jpg|gif|jpeg|tiff){1})(?:['|"]?\))/gi,m="data:message/rfc822 eml,";async function g(e,t,r,n,i){const a={Subject:e,"X-Unsent":1,"Content-Type":"function"===typeof i?"text/html;charset=utf-8":'multipart/alternative; boundary="boundary-string"'};return`${Object.keys(a).reduce(((e,t)=>`${e}${t}:${a[t]}\n`),m)}\n${"function"===typeof i?await T(t,r,n,i):(await f(Object.keys(i).map((async e=>`\n--boundary-string\nContent-Type: ${e}\n\n${await T(t,r,n,i[e])}\n\n\n`)))).join("")+"----boundary_string--"}`}function b(e){const t=e.replace("\\","/").split("/");return t[t.length-1].replace(/[\\\/:*?"<>|]/g,"_")}function w(e){return b(e).split(".")}function v(e){return N(e).then((e=>L(e)))}function _(e,t){const r=document.createElement("iframe");r.style.position="absolute",r.style.left="-10000px",document.body.appendChild(r);const n=r.contentWindow.document;try{if(t){const[e,n]=t;void 0!==e&&r.setAttribute("width",String(e)),void 0!==n&&r.setAttribute("height",String(n))}const i=(0,u.$$)(e);(0,l.d1)(n,i)}catch(i){}return[r,()=>document.body.removeChild(r)]}function y(e){return e.replace("<script","<___script").replace("<\/script>","</___script>")}const C=new c.uI((e=>{e.escape("<script","<\/script>",(e=>y(e))).unescape("<___script","</___script>",(e=>e.replace("<___script","<script").replace("</___script>","<\/script>"))),e.escape("<script","/>",(e=>y(e))).unescape("<___script","/>",(e=>e.replace("<___script","<script"))),(0,c.Hk)(e)}));async function S(e,t,r){e=C.getEscapedText(e);const[n,i]=_(e,r);try{const r=n.contentDocument;try{await t(r,e)}catch(a){}const i=r.querySelectorAll("tbody");for(const e of i)e.replaceWith(...e.childNodes);r.querySelectorAll("em-replace").forEach((e=>{if(e.hasAttribute("text")&&(e.insertAdjacentHTML("beforebegin",e.getAttribute("text")),e.parentNode.removeChild(e)),e.hasAttribute("src")){const t=e.querySelector("img");t.setAttribute("src",e.getAttribute("src")),e.replaceWith(t)}})),e=(0,l.b6)(r)}catch(a){}finally{i()}return C.getUnescapedText(e)}function k(e,t,r){try{if("function"===typeof r){const n=[];return String.prototype.replace.call(e,t,(function(){return n.push(r.apply(void 0,arguments)),""})),f(n).then((function(r){return String.prototype.replace.call(e,t,(function(){return r.shift()}))}))}return Promise.resolve(String.prototype.replace.call(e,t,r))}catch(n){return Promise.reject(n)}}async function E(e,t,r,n){const i=new Map;return e=await S(e,(async(e,n)=>{await async function(e,t,r=new Map){const n=e=>{let n=r.get(e);return n||(n=t(e),r.set(e,n)),n};function i(e){return k(e,p,((e,t="",r)=>n(r).then((e=>`url(${t}${e}${t})`))))}async function a(e){const t=e.getAttribute("style");if(t){const r=await i(t);t!==r&&e.setAttribute("style",r)}}const o=document.createNodeIterator(e,NodeFilter.SHOW_ALL),s=[];for(;;){const e=o.nextNode();if(null===e)break;if((0,l.vq)(e)){s.push(a(e));const t=e.getAttribute("background");if(t&&s.push(n(t).then((r=>{e.setAttribute("background",r||t)}))),(0,l.A6)(e)||(0,l.M6)(e)){const t=e.getAttribute("src");t&&s.push(n(t).then((r=>e.src=r||t)))}if((0,l.ST)(e)){const t=e.sheet.cssRules,r=[];for(const e of t){const{cssText:t}=e;t&&r.push(i(t))}s.push(f(r).then((r=>{r.some(((e,r)=>t[r].cssText!==e))&&(e.innerHTML=r.join("\n"))})))}}else if((0,l.Cn)(e)){const t=(0,l.ih)(e),r=null===t||void 0===t?void 0:t.content;r&&s.push(k(r,/<v:fill.*>/gi,(async e=>{const t=await k(e,/src="([^"]*)"/gi,(async(e,t)=>`src="${await n(t)||t}"`));return k(t,/src='([^']*)'/gi,(async(e,t)=>`src='${await n(t)||t}'`))})).then((n=>{r!==n&&e.replaceWith((0,u.$$)(`${t.open}${n}${t.close}`)[0])})))}}return f(s)}(e,t,i),r&&await r(e,n)}),n),e}const x=800;function A(e,t){let r=e.getAttribute("href");if(r&&e.protocol.startsWith("http")){const n=function(e){const t=new Map;let r=0;for(;r>=0;)if(r=e.indexOf("\x3c!--",r),r>=0){const n=e.indexOf("--\x3e",r);t.set(e.substring(r,n+3),(0,d.l)()),r=n}return t}(r);n.forEach(((e,t)=>{r=r.replaceAll(t,e)}));const i=r.indexOf("#");let a=i>=0?r.substring(0,i):r;const o=i>=0?r.substring(i+1):"",s=r.indexOf("?"),c=s>=0?a.substring(s+1):"";if(a=s>=0?a.substring(0,s):a,e.host!==document.location.host){const i=new Map(c.split("&").filter((e=>e.indexOf("=")>=0)).map((e=>e.split("="))));let s=c;if(t){const e=Object.keys(t);for(const r of e)t[r]&&!i.has(r)&&(s=s+(s?"&":"")+`${r}=${t[r]}`)}s!==c&&(r=a+(s?`?${s}`:"")+(o?`#${o}`:""),n.forEach(((e,t)=>{r=r.replaceAll(e,t)})),e.setAttribute("href",r))}}}async function O(e,t,r,n){let[i,a]=t||[x];return"number"===typeof i&&(i+="px"),"number"===typeof a&&(a+="px"),e=await S(e,(t=>{const i=t.querySelectorAll("a");for(const e of i)A(e,r);if(n)return n(t,e)}),[i,a])}async function T(e,t,r,n){let[i,a]=t||[x];return"number"===typeof i&&(i+="px"),"number"===typeof a&&(a+="px"),e=(e=await S(e,(async t=>{const i=t.querySelectorAll("*");for(const e of i)if((0,l.A6)(e)){const t=await(0,l.rq)(e);if(t){const r=parseInt(t.height),n=parseInt(t.width);isNaN(r)||e.setAttribute("height",String(r)),isNaN(n)||e.getAttribute("width")||e.setAttribute("width",String(n))}}else if((0,l.Lv)(e)){const t=parseInt(getComputedStyle(e).width);isNaN(t)||"BODY"===e.parentElement.tagName||e.setAttribute("width",String(t))}else"TD"===e.tagName||"A"===e.tagName&&A(e,r);if(n)return n(t,e)}),[i,a])).replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,"")}const D="images",R=40;async function I(e,t,r,n=v,a){let[o,c]=t||[x];"number"===typeof o&&(o+="px"),"number"===typeof c&&(c+="px");const l=new(i()),u=l.folder(D),d=new Set,h=await E(e,(async e=>{const t=await n(e);let[r,i]=w(e);if(r.length>R&&(r=function(){const e=new Date;return`${e.toISOString().slice(2,10).replace(/-/g,"").concat("_",e.toTimeString().slice(0,5).replace(/:/g,""))}_${Array.from({length:8},(()=>"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random())))).join("")}`}()),!i)try{i=s.getExtension(t.type)}catch(c){}let a=`${r}.${i}`,o=1;for(;d.has(a);)a=`${r}(${++o}).${i}`;return d.add(a),u.file(a,t),`${D}/${a}`}),((e,t)=>{const n=e.querySelectorAll("a");for(const i of n)A(i,r);if(a)return a(e,t)}),[o,c]);return l.file("index.html",new Blob([h],{type:"text/html;charset=utf-8"})),l.generateAsync({type:"blob"})}function N(e){const t=new Image;return t.crossOrigin="anonymous",new Promise(((r,n)=>{t.onload=()=>r(t),t.onerror=n,t.src=e}))}function L(e,t="image/png",r){const n=document.createElement("canvas");n.width=e.width,n.height=e.height;return n.getContext("2d").drawImage(e,0,0),new Promise(((e,i)=>n.toBlob((t=>t?e(t):i("blob is null")),t,Number(r)||0)))}function P(e){var t;const r=null===(t=e.ownerDocument)||void 0===t?void 0:t.body;if(r&&function(e,t){do{if(e===t)return!0;e=e.parentNode}while(e);return!1}(e,r)){if((0,l.vq)(e)){if("IMG"===e.tagName)return"";if("SPAN"===e.tagName&&e.classList.contains("preheader"))return""}if("#text"===e.nodeName)return e.textContent}return e.childNodes?[...e.childNodes].map(P).join(""):""}function z(e){const[t,r]=_(e);try{return P(t.contentDocument.body).replace(/\u2800/g,"").replace(/(\r\n|\r|\n){2,}/g,"\n").trim()}finally{r()}}},40277:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>H,Cl:()=>f,DI:()=>I,Dx:()=>D,EU:()=>N,HT:()=>$,Hy:()=>q,Id:()=>h,Np:()=>T,Qi:()=>j,Tr:()=>V,X7:()=>U,XZ:()=>B,Yq:()=>p,Z1:()=>W,_9:()=>M,_q:()=>Z,au:()=>R,d_:()=>L,el:()=>_,ez:()=>y,fq:()=>m,gq:()=>O,i0:()=>P,iV:()=>z,jG:()=>l.j,ln:()=>G,p6:()=>S,sh:()=>F,wB:()=>k});var n=r(83612),i=r(98173),a=r(32947),o=r(52310),s=r.n(o),c=r(52919),l=r(37357),u=(r(81197),r(39218)),d=r(98173);const h=e=>{Object.keys(a.A9).forEach((t=>{"onboarding_success"!==e.get(a.A9[t])&&e.remove(a.A9[t])}))};function f(e){const t=(0,n.A)(e);return isNaN(t)?new Date(e):t}const p=(e,t,r=!1)=>{Date;const n=new Date,i=e.getDate()===n.getDate()&&e.getMonth()===n.getMonth()&&e.getFullYear()===n.getFullYear();if(r&&i){const r=Math.floor((n-e)/1e3),i=Math.floor(r/60),a=Math.floor(i/60);if(r<60)return t("Just now");if(a>0){const e=i%60;return`${a} ${t("hour","hours",a)} ${e} ${t("minute","minutes",e)}`}return`${i} ${t("minute","minutes",i)}`}{const t=new Intl.DateTimeFormat(navigator.language,{dateStyle:"short"}),r=new Intl.DateTimeFormat(navigator.language,{timeStyle:"short"});return t.format(e)+" "+r.format(e)}},m=e=>{const t=e.match(/(\(copy\))( \d+)?$/),r=null===t||void 0===t?void 0:t[1],n=null===t||void 0===t?void 0:t[2];return r?n?`${e.slice(0,-n.length)} ${+n.slice(1)+1}`:`${e} 2`:`${e} (copy)`};function g(e,t,r){const n=new Map,i=new RegExp(`(${t})(.*?)(${r})`,"gis");return e=e.replaceAll(i,((e,t,r,i)=>{const a=(0,u.l)();return n.set(a,r),t+a+i})),{escapes:n,html:e}}function b(e,t){let r=[];for(const[n,i]of t){const{escapes:t,html:a}=g(e,n,i);e=a,r.push([n,i,t])}return{escapes:r,html:e}}function w(e,t,r,n){const i=new RegExp(`(${t})(.*?)(${r})`,"gis");return e.replaceAll(i,((e,t,r,i)=>{const a=n.get(r);return"string"===typeof a?t+a+i:e}))}const v=/<title>(.*)<\/title>/gm,_=(e,t)=>{let{escapes:r,html:n}=b(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return n=n.replaceAll(v,((e,r)=>r===t?`<title>${m(r)}</title>`:e)),function(e,t){for(const[r,n,i]of t)e=w(e,r,n,i);return e}(n,r.reverse())};function y(e){let{html:t}=b(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(v)].map((e=>e[1])).find((e=>!!e))}const C="bottomRight",S=(e,t,r=C)=>{var n,i,a,o;t.error({innerException:e.error instanceof Error?e.error:void 0,message:d.createElement("div",{dangerouslySetInnerHTML:{__html:(null===(n=e.error)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.code)||(null===(a=e.error)||void 0===a?void 0:a.status)||e.error}}),description:d.createElement("div",{dangerouslySetInnerHTML:{__html:(null===(o=e.error.data)||void 0===o?void 0:o.message)||e.error.error}}),placement:r})},k=(e,t,r=C)=>{t.success({message:e,placement:r})},E="ascend",x="descend",A="desc",O=e=>{switch(e){case E:return"asc";case x:return A;default:return""}},T=e=>{switch(e){case"asc":return E;case A:return x;default:return""}},D=e=>{const t=document.createElement("div");return t.className=e||"resizer",t},R=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,I=e=>new Promise(((t,r)=>{let n=new Image;n.src=e,n.addEventListener("load",(()=>{t("success")})),n.addEventListener("error",(()=>{r("error")})),n=null})),N=(e,t)=>{for(const r of t)"object"===typeof e.properties&&(e=e.properties[r]);return e},L=e=>e instanceof Array?e.map((e=>({label:e,value:e}))):Object.keys(e).map((t=>({label:e[t],value:t}))),P=(e,t,r=!0)=>{const n=Object.keys(t);for(const i of n){const n=t[i];void 0!==n&&null!==n&&(e[i]=r&&"object"===typeof n?P(e[i]||{},n,!0):n)}return e},z=e=>new Promise(((t,r)=>{s().load({google:{families:[e]},classes:!1,active:t,inactive:r})})),B=(e,t)=>{t&&e(t)},M=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,r,n)=>{document.querySelectorAll(".block-search__preview").forEach((e=>e.remove()));const i=document.getElementById("iframe-scroll-top"),o=document.getElementById("iframe-scroll-bottom"),s=document.getElementById("email_iframe"),c=document.body.getBoundingClientRect().height,l=s.getClientRects()[0];l.top<0&&(i.style.display="block"),l.top+l.height>c&&(o.style.display="block");const u={operation:a.Ru.SANDBOX_BLOCK_INSERT,settings:{blockHTML:r||null,targetBlock:null,project:"emailmaker",type:n}};t.dataTransfer.setData("Text",JSON.stringify(u)),e(u)}),[e])},j=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,r,n)=>{const i=document.getElementById("iframe-scroll-top"),o=document.getElementById("iframe-scroll-bottom"),s=document.getElementById("email_iframe"),c=document.body.getBoundingClientRect().height,l=s.getClientRects()[0];l.top<0&&(i.style.display="block"),l.top+l.height>c&&(o.style.display="block");const u={operation:a.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:r.html||null,targetBlock:null}};n(r)&&t.dataTransfer.setData("Text",JSON.stringify(u)),e(u)}),[e])},F=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,r)=>{e({operation:a.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:r}})}),[e])},U=()=>{const e=(0,c.XW)();return(0,i.useCallback)(((t,r)=>{e({operation:a.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:r}})}),[e])},W=(e,t)=>{t.success({maskClosable:!0,centered:!0,title:e("Coming soon"),content:e("The feature is under development."),okText:e("Ok. I'll be waiting"),onOk:()=>{}})},H=()=>{const e=(0,c.XW)();return(t,r)=>{e({operation:a.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:r})}},Z=(e,t="")=>{const r=[];var n,i;e&&(null===(n=e._embedded)||void 0===n||null===(i=n["wp:term"])||void 0===i||i.filter((e=>{var r;return!!e.length&&(!t||(null===(r=e[0])||void 0===r?void 0:r.taxonomy)===t)})).forEach((e=>{const t=e[0].taxonomy;r[t]||(r[t]=[]),r[t]=e.map((e=>({id:e.id,name:e.name,children:e.children}))),r[r.length]=r[t]})));return""!==t&&r.length?r[t]:r},$=(e,t="")=>{var r,n,i,a,o;return(null===(r=e._embedded)||void 0===r||null===(n=r["wp:term"])||void 0===n||null===(i=n.find((e=>{var r;return!!e.length&&(!t||(null===(r=e[0])||void 0===r?void 0:r.taxonomy)===t)})))||void 0===i||null===(a=i.find((e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("project_")})))||void 0===a||null===(o=a.children)||void 0===o?void 0:o.map((e=>({id:e.id,name:e.name,count:e.count}))))||null},q=(e,t)=>{const r=e.target,n=t.getBoundingClientRect().height,i=r.getBoundingClientRect().height-n,a=e.clientY-t.getBoundingClientRect().top-30,o=-i*(Math.min(Math.max(a,0),n-60)/(n-60));r.style.transform=`translateY(${o}px)`},V=({target:e})=>{e.style.transform="translateY(0)"};function G(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}},18444:(e,t,r)=>{"use strict";r.d(t,{B:()=>l,l:()=>c});var n=r(3792),i=r(37357),a=r(29495);function o(e){return t=>{const r=t.queryFn||((e,r,n,i)=>{if(!t.query)throw new Error("query not found EndpointDefinition");return i(t.query(e))});r&&(t.query=void 0,t.queryFn=async(t,i,a,o)=>{try{let s;const c=n.di.getServices(i,e);for(let e=c.length-1;e>=0;e--){const r=c[e];if(s=s?await s((async(...e)=>await r.execute(e))):await r.execute(t),"function"!==typeof s)return{data:s,error:null}}return s=s?await s((async(e,t=i,n=a,s=o)=>{const c=await r(e,t,n,s);if(c.error)throw c.error;return c.data})):await r(t,i,a,o),{data:s,error:null}}catch(s){return{error:s}}})}}const s=new Set;function c(e){return(t,r)=>{const c=Object.create(null),l=Object.keys(r),u=new i.j;for(const i of l){const a=`api_listeners_flag_${t.reducerPath}/${i.toString()}`,l=n.di.createIdentifier(`api_listeners_${t.reducerPath}/${i.toString()}`);s.has(a)||(c[i]=o(l),s.add(a)),u.addDisposable(n.di.addService(e,l,{execute:r[i]}))}return Object.keys(c).length&&t.enhanceEndpoints({endpoints:c}),(0,a.PL)(e).addDisposable(u),u}}function l(e,t){for(const n of Object.keys(t))try{t[n](e)}catch(r){}}},86095:(e,t,r)=>{"use strict";r.d(t,{kx:()=>d,$Z:()=>b,Xb:()=>h,VA:()=>m,fn:()=>w,aD:()=>g,TW:()=>f});var n=r(81843),i=r(98173),a=r(99474),o=r(28618),s=r(19724),c=r(76220);function l(e,t,r,n){return e.createModel(t,r,n)}function u(e,t,r){const n=o.QE.get(c.L),i=n.getLanguageIdByMimeType(t)||t;return function(e,t,r,n,i){if(r=r||"",!n){const n=r.indexOf("\n");let a=r;return-1!==n&&(a=r.substring(0,n)),l(e,r,t.createByFilepathOrFirstLine(i||null,a),i)}return l(e,r,t.createById(n),i)}(o.QE.get(s.S),n,e,i,r)}const d=(0,i.createContext)(null);function h(){(0,n.OI)()._updateThemeOrColorMap()}function f(e){const t=(0,n.yc)(),[r,a]=(0,i.useState)({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)});return(0,i.useEffect)((()=>{const r=e.onDidChangeContent((()=>{setTimeout((()=>a({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)})))}));return()=>{r.dispose()}}),[e,t]),r}function p(e){var t;const r=(null===e||void 0===e||null===(t=e.actual)||void 0===t?void 0:t._data)||new a.Ov;return r instanceof a.Ov?r:a.Ov.deserialize(r)}function m(e){const t=(0,n.yc)();return{undo:()=>t.undo(e.uri),redo:()=>t.redo(e.uri),clear:()=>t.removeElements(e.uri),getPast:()=>{var r,n;return(null===(r=t._editStacks.get(e.uri.toString()))||void 0===r||null===(n=r._past)||void 0===n?void 0:n.map(p))||[]},getFuture:()=>{var r,n;return(null===(r=t._editStacks.get(e.uri.toString()))||void 0===r||null===(n=r._future)||void 0===n?void 0:n.map(p))||[]},canUndo:()=>t.canUndo(e.uri),canRedo:()=>t.canRedo(e.uri),createSnapshot:()=>t.createSnapshot(e.uri),restoreSnapshot:e=>t.restoreSnapshot(e)}}function g(e){return(0,i.useMemo)((()=>m(e)),[e])}function b(e=""){const t=u(e,"text");return t.setEOL(0),t}function w(){return(0,i.useContext)(d)}},98485:(e,t,r)=>{"use strict";function n(e,t){if(e===t)return!0;if("object"===typeof e&&e&&"object"===typeof t&&t){const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(const a of r)if(!n(e[a],t[a]))return!1;return!0}return!1}function i(e,t){if(!e)return t;const r={};for(const i of Object.keys(t))n(t[i],e[i])||(r[i]=t[i]);return r}r.d(t,{g:()=>i})},29495:(e,t,r)=>{"use strict";r.d(t,{Qq:()=>g,PL:()=>w,KA:()=>b,wz:()=>v});var n=r(3792),i=r(88296),a=r(76550),o=r(40277),s=r(65470);class c extends s.IO{async execute([e],t){for(const r of t){const t=await r(e);t&&(void 0===t.id&&(t.id=e.value.id),e.value=t)}return e.value}}var l=r(98485);class u extends s.lt{}var d=r(95669);class h extends o.jG{constructor(...e){super(...e),this._items=new Map,this._onChangeEmitter=new s.HN,this.onChange=this._onChangeEmitter.event}async _getOrCreate(e,t){const r=this._items;let n;if(r.has(e))try{n=await r.get(e)}catch{t&&(n=await t())}else t&&(n=await t(),n&&this._onChangeEmitter.fire());return n}async _addOrUpdate(e,t){let r;const n=this._items;if(n.has(e))try{r=await n.get(e)}catch{}const i=await t(r);return(0,d.b)(r,i)||this._onChangeEmitter.fire(),i}entries(){return Promise.all([...this._items.entries()].map((([e,t])=>t.then((t=>[e,t]))))).then((e=>e.filter((([e,t])=>!!t))))}values(){return Promise.all([...this._items.values()].map((e=>e)).filter((e=>!!e)))}getOrCreate(e,t){const r=this._getOrCreate(e,(()=>t(e)));return this._items.set(e,r),r}addOrUpdate(e,t){const r=this._addOrUpdate(e,t);return this._items.set(e,r),r}add(e,t){const r=Promise.resolve(t);return this._items.set(e,r),r}remove(e){if(this._items.has(e)){const t=this._items.get(e);return this._items.delete(e),this._onChangeEmitter.fire(),t}return Promise.resolve(void 0)}async setAll(e){try{this.suspendChange();const t=[],r=new Set(Array.from(e).map((([e,t])=>e))),n=(await this.entries()).filter((([e,t])=>!r.has(e)));for(const[i,a]of e)t.push(this.addOrUpdate(i,(()=>a))),r.add(i);for(const[e]of n)t.push(this.remove(e));return await Promise.all(t),n}finally{this.resumeChange()}}clear(){this._items.clear(),this._onChangeEmitter.fire()}suspendChange(){this._onChangeEmitter.suspend()}resumeChange(){this._onChangeEmitter.resume()}}var f=r(39218);class p extends o.jG{constructor(...e){super(...e),this._cache=new h,this._readEmitter=new s.lt,this._saveEmitter=this.addDisposable(new c),this._removeEmitter=this.addDisposable(new u),this._foreignCache=Object.create(null),this.handlerRead=this._readEmitter.event,this.onSave=this._saveEmitter.event,this.onRemove=this._removeEmitter.event,this.onChange=this._cache.onChange}async get(e){return this._cache.getOrCreate(e,(async t=>Object.assign({id:e},...(await this._readEmitter.fire(e)).filter((e=>!!e)))))}get cache(){return this._cache}byForeignKey(e){let t=this._foreignCache[e];if(!t){const r=this.addDisposable(new o.jG);r.addDispose((()=>delete this._foreignCache[e]));const n=r.addDisposable(new h),i=r.addDisposable(new s.lt);t=this._foreignCache[e]={get:async(t,r={})=>(await n.getOrCreate(t,(async()=>{try{const r=function(e=[]){if((e=e.filter((e=>e))).length<=1)return e[0];let t=new Map;for(const r of e)for(const e of r)if(void 0!==e.id){let r=t.get(e.id)||{};t.set(e.id,{...r,...e})}return[...t].map((([e,t])=>t))}(await i.fire(t))||[];for(const n of r)n[e]=t,await this._cache.add(n.id,n);return r}catch{return[]}})),function(e,{filter:t,order:r="asc",orderBy:n,page:i,pageSize:a=20}={}){const o=e.length;let s=e.length;if(void 0!==t){const r=Object.keys(t);s=(e=e.filter((e=>{for(const n of r){const r=e[n],i=t[n];return"id"===n||"string"!==typeof r?r===i:"string"===typeof i&&r.startsWith(i)}return!0}))).length}return n&&(e=e.sort(((e,t)=>(e[n]>t[n]?1:t[n]>e[n]?-1:0)*("asc"===r?1:-1)))),void 0!==i&&(e=e.slice(a*(i-1),a*i-1)),{data:e,filteredTotal:s,total:o,totalPages:Math.floor(o/a)}}(await this._cache.values()||[],r)),first:(e,r={})=>t.get(e,{...r,page:1,pageSize:1}).then((e=>e[0])),handleRead:i.event,clear(){n.clear()},dispose(){r.dispose()}}}return t}async create(e,{source:t="",silent:r}={}){let n=e;return r||(n=await this._saveEmitter.fire({prev:void 0,patch:e,value:n,source:t})),void 0===n.id&&(n.id=(0,f.l)()),await this._cache.addOrUpdate(n.id,(()=>n))}async update(e,t,{source:r="",silent:n}={}){return this._cache.addOrUpdate(e,(async e=>{let i=e?{...e,...t}:t;if(!n)return t=e?(0,l.g)(e,t):t,await this._saveEmitter.fire({prev:e,patch:t,value:i,source:r})}))}async remove(e,{source:t="",silent:r}={}){const n=await this._cache.remove(e);return r||await this._removeEmitter.fire({value:n,source:t}),n}refresh(){this._cache.clear();for(const e of Object.values(this._foreignCache))e.clear()}suspendChange(){this._cache.suspendChange()}resumeChange(){this._cache.resumeChange()}}r(16390);var m=r(13216);function g(){const e=(0,i.Q)();return t=>n.di.getOrCreateInstance(t,e,(()=>new p))}function b(e){const t=n.di.getInstance(e,a.ax);if(!t)throw new Error("Failed");return t}function w(e){const t=n.di.getInstance(e,a.Lz);if(!t)throw new Error("Failed");return t}async function v(e){const t=b(e),r=await t.dispatch(m.Q2.endpoints.getMe.initiate({},{forceRefetch:!0}));return Promise.resolve(r.data)}},25488:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,I:()=>a});var n=r(39218),i=r(31926);function a({code:e,...t},r){var i,a;const o=r.getState();return{...t,...e?{html:e}:{},renderGuid:(0,n.l)(),project:null===(i=o.projectSlice)||void 0===i||null===(a=i.project)||void 0===a?void 0:a.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function o({html:e,renderGuid:t,...r},n){const a=n.getState(),{project:o,config:s}=a.configSlice;return(0,i.TB)({...r,code:e,project:void 0===o?r.project:o,utm_parameters:s.UTMEnabled?r.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0})}},61073:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Ye});var n=r(3792),i=r(16390),a=r(54838),o=r(47014),s=r(13216),c=r(53774),l=r(76550),u=r(14604);function d(e){var t;return{fontSize:e.fontSize,fontFamily:e.fontFamily,tabSize:e.tabSize,wordWrap:"off"!==e.wordWrap,minimap:null===(t=e.minimap)||void 0===t?void 0:t.enabled,insertSpaces:e.insertSpaces}}var h=r(76233),f=r(40277),p=r(29495),m=r(90614),g=r(15626),b=r(54010),w=r(84362),v=r(5052),_=r(88195);function y(e){return C((async t=>e(t)))}function C(e){return(0,_.y)((async t=>{const r=await t.getInstanceAsync(l.ax);return await e(r)}))}const S=(0,w.l)((e=>{e.inject(l.ax,(0,v.y)(e))}));const k=y((e=>{const t=(0,p.PL)(e),r=(0,b.m)((0,m.Zc)(e,g.AZ.ON_LIMIT_ID)),w=t.addDisposable(new b.U(r)),v=(0,b.m)((0,m.Zc)(e,g.AZ.READ_LOCALE)),_=t.addDisposable(new b.U(v)),y=e.dispatch,C=n.di.getInstanceAsync(e,l.sZ).then((e=>(null===e||void 0===e?void 0:e.app_config)||{}),(e=>({}))),S=(0,u.y)(),k=async(...t)=>{const r=Object.assign({},...t),n=Object.assign({},...t.map((e=>e.editor))),{locale:o="ru_RU",theme:c,codeModeDirection:l,...u}=r;void 0!==l&&("none"===l?y((0,a.N6)(!1)):(y((0,a.N6)(!0)),y((0,a.Uf)(l))));const d=await(0,p.wz)(e);var h;await y(s.Q2.endpoints.editMe.initiate({...d,code_editor:n?(h=n,{font_size:h.fontSize,font_family:h.fontFamily,tab_size:h.tabSize,word_wrap:h.wordWrap,minimap:h.minimap,insert_spaces:h.insertSpaces}):d.code_editor,locale:"string"===typeof o?o:d.locale,theme:"string"===typeof c?c:d.theme})),y((0,i._R)(u))};let E;const x=S.decorate((async({config:r={},project:a,user:o,advancedConfigs:l})=>{var u;const d=await C,f=l||d.advancedConfigs,m=localStorage.getItem("configSwither");let g=f&&f[(null===r||void 0===r?void 0:r.mode)||m||"pro"]||(null===(u=(0,c.$)((null===r||void 0===r?void 0:r.mode)||m||"pro"))||void 0===u?void 0:u.config);if(g={...g,configSwither:r.configSwither||!1},await k(g,d,r),void 0!==typeof a&&y((0,i.bn)(String(a))),y((0,i.ee)(f)),o){const r={...await(0,p.wz)(e),email:"",password:"",...o,id:"number"===typeof o.id?String(o.id):o.id};void 0===o.id&&delete r.id,y(s.Q2.endpoints.editMe.initiate(r)),o.id&&t.addDisposable(n.di.addService(e,h.jY,{execute(e){e.headers.append("user_id",r.id)}}))}a&&t.addDisposable(n.di.addService(e,h.jY,{execute(e){e.headers.append("project_id",String(a))}}))}));return{setOptions:S.decorate((async({config:e={},project:t,user:r,advancedConfigs:n,handleReadLocale:i,handleLimitUsage:a})=>{_.setListener(i),w.setListener(a),x({config:e,project:t,user:r,advancedConfigs:n}).catch((e=>{})),E&&E.dispose(),E=new f.jG})),instance:{setConfig:S.decorate((async e=>{var t;const r=null===(t=(0,c.$)((null===e||void 0===e?void 0:e.mode)||"pro"))||void 0===t?void 0:t.config;await k(r,await C,e)})),getConfig:()=>function(e){var t,r;const n=e.getState(),s=n[o.Ay.name],c=n[i.Ay.name],l=n[a.Ay.name];return{...c.config,theme:null===(t=s.currentUser)||void 0===t?void 0:t.theme,locale:null===(r=s.currentUser)||void 0===r?void 0:r.locale,codeModeDirection:l.isCodeMode?l.codeModeDirection:"none",editor:d(s.monacoOptions)}}(e),updateConfig:S.decorate((e=>k(e))),handleReadLocale:v,handleLimitUsage:r}}}));r(97320);var E=r(62678),x=r(98173),A=r(2604);const O=({onLoad:e,children:t})=>{(0,x.useEffect)((()=>{e&&e()}),[e]);const r=(0,A.wA)();return(0,x.useMemo)((()=>r(s.Q2.endpoints.getMe.initiate({}))),[r]),t};var T=r(73013),D=r(30150),R=r(66330),I=r(38826),N=r(49856),L=r(98447),P=r(3326);const z=x.createElement(I.A,{style:{fontSize:48},rev:null,spin:!0}),B={height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},M=({children:e,handleBeforeRender:t})=>{const[r,n]=(0,x.useState)(),a=(0,P.ZU)(),o=(0,A.d4)(i.p5),s=(0,x.useRef)(!1);return(0,x.useLayoutEffect)((()=>{s.current||(s.current=!0,t&&t())}),[]),x.createElement(x.Fragment,null,x.createElement("div",{className:"App blocks-app blocks-plugin",style:a?{}:{visibility:"hidden"}},o&&x.createElement("style",{dangerouslySetInnerHTML:{__html:o}}),x.createElement(P.fh.Provider,{value:r},e),x.createElement("div",{ref:n,className:"blocks-modal-container"})),!a&&x.createElement(N.A,{size:"large",style:B},x.createElement(L.A,{indicator:z})))};var j=r(60739),F=r(73942);const U=y((e=>{let t=null;const r=(0,F.My)(e),i=(0,g.dB)(r,g.AZ.ON_CHUNKS_LOADED),a=n.di.getInstance(e,l.Lz);let o;return{instance:{getElement:()=>t},async setOptions(r){let s=await(0,j.x)(r.element,a);const{instance:c}=n.di.getInstance(e,l.Cd)||{};if(t!==s&&(a.addDisposable(i.event((()=>{r.handleChunkLoaded&&r.handleChunkLoaded()}))),t&&j.s.delete(t),!(s&&j.s.has(s)&&c))){if(o&&o.dispose(),t=s,o=a.addDisposable(new f.jG),s)j.s.set(s,c);else{const e=document.createElement("div");e.style.position="absolute",e.style.left="-10000px",document.body.appendChild(e);const t=()=>{e.isConnected&&document.body.removeChild(e)};o.addDispose(t),s=e}return(t=>new Promise(((r,n)=>{var a;if(null!==(a=o)&&void 0!==a&&a.isDisposed())r();else{const n=(0,T.H)(t);n.render(x.createElement(A.Kq,{store:e},x.createElement(O,{onLoad:r},x.createElement(P.or.Provider,{value:{element:t}},x.createElement(D.fS,null,x.createElement(R.Y,null,x.createElement(M,{handleBeforeRender:i.fire},x.createElement(E.A,null)))))))),o.addDispose(r),o.addDispose((()=>n.unmount()))}})))(s)}},dispose(){var e;null===(e=o)||void 0===e||e.dispose()}}}));var W=r(18444),H=r(19992);var Z=r(33932);var $=r(73668);var q=r(871);var V=r(705);var G=r(97032);var K=r(92960);var Y=r(98119);var X=r(40835);n.di.createIdentifier();var J=r(46767);var Q=r(5618);const ee=(0,p.Qq)(),te=(0,p.Qq)(),re=(0,m.cZ)(),ne=(0,m.cZ)();var ie=r(8111),ae=r(19792);function oe(e){return oe="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function se(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function ce(e,t){var r,n;(0,ae.A)(1,arguments);var i=function(e){(0,ae.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===oe(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):new Date(NaN)}(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var a=String(null!==(r=null===t||void 0===t?void 0:t.format)&&void 0!==r?r:"extended"),o=String(null!==(n=null===t||void 0===t?void 0:t.representation)&&void 0!==n?n:"complete");if("extended"!==a&&"basic"!==a)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",c="",l="extended"===a?"-":"",u="extended"===a?":":"";if("time"!==o){var d=se(i.getDate(),2),h=se(i.getMonth()+1,2),f=se(i.getFullYear(),4);s="".concat(f).concat(l).concat(h).concat(l).concat(d)}if("date"!==o){var p=i.getTimezoneOffset();if(0!==p){var m=Math.abs(p),g=se(Math.floor(m/60),2),b=se(m%60,2);c="".concat(p<0?"+":"-").concat(g,":").concat(b)}else c="Z";var w=""===s?"":"T",v=[se(i.getHours(),2),se(i.getMinutes(),2),se(i.getSeconds(),2)].join(u);s="".concat(s).concat(w).concat(v).concat(c)}return s}const le=(0,p.Qq)();var ue=r(12005);var de=r(98845),he=r(39218);const fe=(0,p.Qq)(),pe=(0,p.Qq)();const me={addUserToProjectApiMock:function(e){(0,W.l)(e)(H.B,{addUserToProject:()=>{}})},AiApiMock:function(e){(0,W.l)(e)(Z.Zs,{sendMessage:({body:e})=>t=>t({body:e}).catch((()=>new Promise((e=>setTimeout(e,1e3))))),getDialog:e=>t=>t(e)})},authorizationApiMock:function(e){let t={id:"0",username:"",email:"",password:"",code_editor:{},theme:"light",locale:(0,p.KA)(e).getState().userSlice.currentUser.locale,counters:{},avatar_urls:{},autosaves:!0};(0,W.l)(e)(s.Q2,{userRegistration:()=>{},getSchema:()=>e=>e({}),getMe:()=>t,editMe:e=>t={...t,...e},getSubscriptions:()=>[]})},blocksApiMock:function(e){const t=(0,W.l)(e),r=ee(e),n=r.byForeignKey("project"),i=te(e),a=i.byForeignKey("parent"),{dispatch:o,getState:s}=(0,p.KA)(e),c=(0,p.PL)(e);c.addDisposable(r.onChange((()=>o(Q.VM.util.invalidateTags(["Blocks"]))))),c.addDisposable(r.onSave((({prev:e,patch:t,value:r})=>{(e=e?{...e,...t}:t)&&r.html===e.html&&r.title===e.title&&(r.renderGuid=e.renderGuid)}),Number.MIN_VALUE));const l=(0,m.dB)(e,ne),u=(0,m.dB)(e,re);t(Q.VM,{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await n.get(e.projectId,{filter:t,page:e.page,pageSize:e.pageSize,order:e.order,orderBy:e.orderby}).then((({data:e})=>e))},getBlocksSchema:()=>e=>e({}),getParentEmailBlocks:e=>async t=>{try{const t=s().configSlice.project||"",r=(await u.fire({project:t,emailId:e.emailId||""})).filter((e=>e));if(r.length)return r.flat()}catch(r){}return t(e)},getTemplateBlocks:e=>async t=>{try{const t=s().configSlice.project||"",r=(await l.fire({project:t,emailId:e.emailId||""})).filter((e=>e));if(r.length)return r.flat()}catch(r){}return t(e)},async getBlock(e){const t=s().projectSlice.project.id;return n.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await a.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async t=>{const n=await r.create(e);return s().configSlice.config.preventSendDataToEM||t(n).catch((e=>{})),n},editBlock:({blockId:e,...t})=>r.update(e,t),deleteBlock:e=>r.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>i.create({...t,parent:e})})},commentsApiMock:function(e){const t=(0,W.l)(e),r=le(e),n=r.byForeignKey("post"),{dispatch:i}=(0,p.KA)(e);(0,p.PL)(e).addDisposable(r.onChange((()=>i(ie.Jg.util.invalidateTags(["Comments"]))))),t(ie.Jg,{getComments:e=>n.get(e).then((({data:e})=>e)),addComment({subjectId:e,author:t,parent:n,content:i,author_name:a,author_email:o,targetId:s}){const c={post:e,author:t,author_name:a,author_email:o,content:i,parent:n,target_id:s,date:ce(new Date),author_avatar_urls:{}};return r.create(c)},deleteComment:e=>r.remove(e),editComment:({commentId:e,...t})=>r.update(e,t),deleteTarget:e=>r.update(e,{target_id:""})})},emailsApiMock:function(e){const t=fe(e),r=pe(e),n=r.byForeignKey("parent"),{dispatch:i,getState:a}=(0,p.KA)(e),o=(0,p.PL)(e),s=(0,W.l)(e);o.addDisposable(t.onChange((async()=>{i(de.GY.util.invalidateTags(["Email"]))}))),o.addDisposable(r.onChange((()=>{i(de.GY.util.invalidateTags(["EmailAutosaves"]))}))),o.addDisposable(t.onSave((({prev:e,patch:t,value:r})=>{(e=e?{...e,...t}:t)&&r.subject===e.subject&&r.html===e.html&&r.preheader===e.preheader&&r.title===e.title&&(r.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),s(de.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:({emailId:e,page:t=1})=>(n.clear(),async i=>{if(a().configSlice.config.revisionService){const n=await i({emailId:e,page:t});for(const e of n.data)r.cache.add(e.id,e);return n}return{...await n.get(e,{page:t}),args:{emailId:e,page:t}}}),async addEmail({source:e,...r}){const n=await t.create(r,{source:e});return n.renderGuid||(n.renderGuid=(0,he.l)()),n},editEmail:e=>async r=>{const{emailId:n,source:i,...o}=e;return a().configSlice.config.revisionService&&await r(e),t.update(n,o,{source:i})},deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveEmail:({emailId:e,body:t})=>async n=>(a().configSlice.config.revisionService&&await n({emailId:e,body:t}),await r.create({...t,parent:e,modified:(new Date).toString()}))})},emailRawApiMock:function(e){(0,W.l)(e)($.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(l.f5)}})},imageApiMock:function(e){(0,W.l)(e)(q.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){(0,W.l)(e)(ue.Ad,{getLocale:async({id:e})=>t=>t({id:e}),getLocales:()=>async e=>e({})})},notificationsApiMock:function(e){(0,W.l)(e)(V.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(l.f5)}})},projectsApiMock:function(e){let t;(0,W.l)(e)(G.Nq,{getProjects:(e={page:1})=>[],getProject:e=>r=>t||(t=r(e).then((t=>({...t,id:e})))),addProject(e){throw new Error},editProject:({projectId:e,...r})=>t=t.then((t=>({...t,...r,id:e}))),deleteProject(e){throw new Error}})},proxyApiMock:function(e){const t=(0,W.l)(e),r=(0,m.dB)(e,g.AZ.FILE_PROXY_EVENT_ID);t(K.Z8,{getFile:async({url:t,tryFetch:n=!0,type:i})=>async a=>{const o=e.getState(),{project:s}=o.configSlice,c=(await r.fire({url:t,project:s})).filter((e=>e instanceof Blob))[0];if(!c)return a({url:t,tryFetch:n,type:i});switch(i){case"json":return JSON.parse(await c.text());case"text":return c.text();default:return c}}})},recoverPasswordApiMock:function(e){(0,W.l)(e)(Y.yR,{resetPassword(e){throw new Error(l.f5)},setPassword(e){throw new Error(l.f5)},validateRecoverPasswordCode(e){throw new Error(l.f5)}})},saveFileApiMock:function(e){const t=(0,W.l)(e);if(!n.di.getInstance(e,l.Lz))throw new Error("Something was wrong");const r=(0,m.dB)(e,g.AZ.UPLOAD_EVENT_ID),i=(0,m.dB)(e,g.AZ.ON_SEND_TESTEMAIL_ID),a=(0,m.dB)(e,g.AZ.ON_SEND_LIVEPREVIEW_ID);t(X.yH,{uploadImage:t=>async i=>{const a=e.getState(),{project:o}=a.configSlice,s="tmp"===t.folder?null:await r.fire({file:t.file,project:o}),c=s?s.find((e=>e)):null;return c?[{file_url:c,project:o}]:i({...t,user_id:String((await n.di.getInstanceAsync(e,l.sZ)).app_id)})},sendTestEmail:t=>async r=>{const a=e.getState(),{project:o}=a.configSlice;(await i.fire({project:o,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some((e=>!1===e))&&await r({...t,user_id:String((await n.di.getInstanceAsync(e,l.sZ)).app_id)})},async sendLivePreview(t){const r=e.getState(),{project:n}=r.configSlice;(await a.fire({project:n,id:t.email,subject:t.subject,html:t.content})).some((e=>!1===e))},sendShortLink:e=>t=>t(e)})},tokenApiMock:function(e){(0,W.l)(e)(J.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}},ge=me;function be(e){return{emails:fe(e),blocks:ee(e),emailRevisions:pe(e),blocksRevision:te(e),comments:le(e)}}var we=r(80148),ve=r(95669),_e=r(90121),ye=r(13668),Ce=r(31926);function Se({code:e,...t},r){var n,i;const a=r.getState();return{...t,...e?{html:e}:{},renderGuid:(0,he.l)(),project:null===(n=a.projectSlice)||void 0===n||null===(i=n.project)||void 0===i?void 0:i.id}}function ke({html:e,renderGuid:t,...r},n){const i=n.getState(),{project:a}=i.configSlice;return(0,Ce.TB)({...r,code:e,project:void 0===a?r.project:a,guid:void 0,link:void 0,status:void 0,slug:void 0,password:void 0,comment_status:void 0,template:void 0,blocktags:void 0,project_title:void 0,ping_status:void 0,lock:void 0,tag:void 0,is_template:void 0})}var Ee=r(25488);function xe({code:e,...t},r,n){const i=r.getState();var a,o;void 0===n&&(n=void 0===t.parent?null===(a=i.emailSlice)||void 0===a||null===(o=a.email)||void 0===o?void 0:o.id:t.parent);return{...t,...e?{html:e}:{},parent:n}}function Ae({html:e,...t},r){return(0,Ce.TB)({...t,code:e,guid:void 0,compiled:(0,Ce.TB)({html:e,ampHtml:e&&""})})}function Oe(e,t,r){const n=t.getState();var i,a;void 0===r&&(r=void 0===e.post?null===(i=n.emailSlice)||void 0===i||null===(a=i.email)||void 0===a?void 0:a.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:r}}function Te(e,t){return(0,Ce.TB)({...e,link:void 0,comment_status:void 0})}var De=r(72510),Re=r(30315),Ie=r(22560),Ne=r(19504),Le=r(1511);const Pe=e=>function(e){var t;return function(e){return"___SCRIPT"===e.tagName}(e)&&(null===(t=e.src)||void 0===t?void 0:t.startsWith(Le.gP))}(e)||(0,Ne.Nh)(e)||(0,De.BF)(e);async function ze(e,t){"string"===typeof e&&(e={code:e});const r=e.code?await(0,Re.PJ)(e.code||"",[Re.qy],e.utm_parameters,(async e=>{void 0===t&&(t=(e=>{if(Pe(e))return!0;if((0,De.vq)(e)||(0,De.wz)(e))for(const t of e.querySelectorAll("*"))if(Pe(t))return!0;return!1})(e)),t&&await(0,Ie.e)(e,"html")})):"",n=e.code&&t?await(0,Re.PJ)(e.code||"",[Re.qy],e.utm_parameters,(async e=>{await(0,Ie.e)(e,"amp")})):"";return{...e,compiled:{html:r,ampHtml:n}}}function Be(e,t){var r;return{severity:Number(t.severity),message:t.message,source:t.source,startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn,get startOffset(){return e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn})},get endOffset(){return e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn})},tags:null===(r=t.tags)||void 0===r?void 0:r.map((e=>Number(e)))}}const Me="EXTERNAL";class je extends f.jG{constructor(e){super(),this._store=e,this._emailTemplateCache=Object.create(null),this._prevCommand=void 0,this._prevContent=void 0,this._dataSources=void 0,this._eventLock=void 0,this._queue=(0,u.y)(),this._model=void 0,this._currentEmail=void 0,this.show=this._queue.decorate(this._show,this),this.save=this._queue.decorate(this._save,this);const t=(0,we.My)(e);this._dataSources=be(t),this._eventLock=function(e){const t=Object.values(be(e));return{suspendChange(){t.forEach((e=>e.suspendChange()))},resumeChange(){t.forEach((e=>e.resumeChange()))}}}(t);const r=(0,m.Zc)(e,g.AZ.ON_MODEL_CHANGE),i=(0,m.Zc)(e,g.AZ.ON_EMAIL_CHANGED_ID);this.addDisposable(r((e=>{this._model=e}))),this.addDisposable(i((e=>{this._currentEmail=e}))),this.addDisposable(n.di.addService(e,h.jY,{execute:e=>{var t;null!==(t=this._currentEmail)&&void 0!==t&&t.id&&!this._currentEmail.isNew&&e.headers.append("email_id",this._currentEmail.id)}}))}async getProject(){const e=await n.di.getInstanceAsync(this._store,l.sZ);return null===e||void 0===e?void 0:e.project}async getTemplateEmail(e){e=String(e);let t=this._emailTemplateCache[e];if(!t){const r=await this._store.dispatch(de.GY.endpoints.getTemplateEmail.initiate(e));r.error||(t={...r.data,lock:!1,parent_email:e},delete t.id)}return t}async getBlocks(){const{cache:e}=this._dataSources.blocks,t=await this.getProject();return(await e.values()).filter((e=>e.project===t)).map((e=>ke(e,this._store)))}async getComments(){const{cache:e}=this._dataSources.comments,t=await this.getEmail();return(await e.values()).filter((e=>e.post===t.id)).map((e=>Te(e,this._store)))}async getEmailRevisions(){const{cache:e}=this._dataSources.emailRevisions,t=await this.getEmail();return(await e.values()).filter((e=>e.parent===t.id)).map((e=>Ae(e,this._store)))}async setBlocks(e=[]){const{cache:t}=this._dataSources.blocks;await t.setAll(e.filter((e=>void 0!==e.id)).map((e=>[e.id,Se(e,this._store)])))}async setEmailRevisions(e=[],t){const{cache:r}=this._dataSources.emailRevisions,n=e.filter((e=>void 0!==e.id)).map((e=>[e.id,xe(e,this._store,t)]));await r.setAll(n)}async setComments(e=[],t){const{cache:r}=this._dataSources.comments,n=e.filter((e=>void 0!==e.id)).map((e=>[e.id,Oe(e,this._store,t)]));await r.setAll(n)}async getEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email;return ze((0,Ee.E)({...t,html:this._model?this._model.getValue():t.html},this._store))}async compileEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email;return ze((0,Ee.E)({...t,html:this._model?this._model.getValue():t.html},this._store))}async setEmail(e,t,r=!1){const n=this._dataSources.emails,i=n.cache,a=await this.getProject();e="string"===typeof e?{code:e}:{...e};let o=(0,Ee.I)(e,this._store);const s=o.id;let c=s;if(void 0!==s?o={...await n.get(s),...o,project:a}:(o={...o,project:a},c=(0,he.l)(),delete o.project),t){const e=await this.getTemplateEmail(String(t));e&&(o={...e,id:String(t),...o})}await i.setAll([[c,o]]),r&&this._runShowCommand({isNew:void 0===s,id:c,project:a})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,ve.b)(this._prevCommand,e)?(0,_e.RS)(this._store,ye._1,t):this._store.dispatch((0,i.Ir)(t)),this._prevCommand=e}async _show(e){try{if(!e)return;if(this._eventLock.suspendChange(),e!==this._prevContent){this._prevContent=e;const{email:r,blocks:n,autosaves:i,comments:a,templateId:o}="string"===typeof(t=e)?{email:{code:t}}:function(e){return!e.hasOwnProperty("email")&&!e.hasOwnProperty("block")&&!e.hasOwnProperty("templateId")}(t)?{email:t}:{...t,email:"string"===typeof t.email?{code:t.email}:t.email||{}},s=[];s.push(this.setBlocks(n)),void 0!==r.id&&(s.push(this.setComments(a)),s.push(this.setEmailRevisions(i))),s.push(this.setEmail(r,Number(o),!0)),await Promise.all(s)}}catch(r){}finally{this._eventLock.resumeChange()}var t;return new Promise((e=>{const t=(0,m.Zc)(this._store,g.AZ.ON_EMAIL_INIT_ID)((()=>{t.dispose(),e()}))}))}_save(){return new Promise((async e=>{const t=this._dataSources.emails,r=this.addDisposable(t.onSave((({value:t,source:n})=>{n===Me&&(r.dispose(),e((0,Ee.E)(t,this._store)))}),Number.MIN_VALUE));(0,_e.RS)(this._store,ye.Kp,Me)}))}getCodeErrors(){var e;const t=this._store.getState(),r=this._model;return r?null===(e=t.emailSlice.problemsList)||void 0===e?void 0:e.map((e=>Be(r,e))):void 0}}var Fe=r(98485),Ue=r(65470);class We extends f.jG{constructor(e){super(),this._store=e,this._events=void 0,this._model=void 0,this._listenersUpdaters=void 0;const t=(0,m.Zc)(e,g.AZ.ON_MODEL_CHANGE);this.addDisposable(t((e=>{this._model=e})))}_get(){const e=this._store,t=(0,we.My)(e),{blocks:r,emails:n,comments:a,emailRevisions:o}=be(t),s=(0,m.Zc)(e,re),c=(0,m.Zc)(e,ne),l=(0,m.Zc)(e,g.AZ.ON_SAVEBUTTON_CLICK_ID),u=(0,m.Zc)(e,g.AZ.ON_PREVIOUSBUTTON_CLICK_ID),d=(0,m.Zc)(e,g.AZ.ON_NEXTBUTTON_CLICK_ID),h=(0,Ue.pb)((0,m.Zc)(e,g.AZ.ON_EMAIL_INIT_ID),(e=>!e.reset)),f=(0,m.Zc)(e,g.AZ.ON_EMAIL_CHANGED_ID),p=(0,m.Zc)(e,g.AZ.ON_CONTENT_CHANGED_ID),w=(0,m.Zc)(e,g.AZ.ON_SEND_TESTEMAIL_ID),v=(0,m.Zc)(e,g.AZ.ON_SEND_EMAIL_MODAL_ID),_=(0,m.Zc)(e,g.AZ.ON_EMAIL_CLONE_ID),y=(0,m.Zc)(e,g.AZ.ON_SHARE_ID),C=(0,m.Zc)(e,g.AZ.ON_SHOW_PREVIEW_ID),S=(0,m.Zc)(e,g.AZ.ON_SEND_LIVEPREVIEW_ID),k=(0,m.Zc)(e,g.AZ.ON_CODE_VALIDATE_ID);return{handleValidate:(0,b.m)(k,(e=>this._model?e.map((e=>Be(this._model,e))):[])),handleReadEmail:(0,b.m)(n.handlerRead,(e=>e),(t=>t&&(0,Ee.I)(t,e))),handleSaveEmail:(0,b.m)(n.onSave,(function({prev:t,patch:r,value:n,source:i}){const a=t?(0,Ee.E)(t,e):void 0;return{prev:a,patch:(0,Fe.g)(a,(0,Ee.E)(r,e)),value:(0,Ee.E)(n,e),source:i}}),(t=>t?(0,Ee.I)(t,e):void 0)),handleRemoveEmail:(0,b.m)(n.onRemove,(({value:t,source:r})=>({value:(0,Ee.E)(t,e),source:r})),(()=>{})),handleReadCommonBlocks:(0,b.m)(c,(e=>e.project),(t=>null===t||void 0===t?void 0:t.map((t=>Se(t,e))))),handleReadTemplateBlocks:(0,b.m)(s,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>Se(t,e))))),handleReadBlocks:(0,b.m)(r.byForeignKey("project").handleRead,(t=>(0,i.jY)(e.getState())||String(t)),(t=>null===t||void 0===t?void 0:t.map((t=>Se(t,e))))),handleSaveBlock:(0,b.m)(r.onSave,(function({prev:t,patch:r,value:n,source:i}){const a=t?ke(t,e):void 0;return{prev:a,patch:(0,Fe.g)(a,ke(r,e)),value:ke(n,e),source:i}}),(t=>t?Se(t,e):void 0)),handleRemoveBlock:(0,b.m)(r.onRemove,(({value:t,source:r})=>({value:ke(t,e),source:r})),(()=>{})),handleReadComments:(0,b.m)(a.byForeignKey("post").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>Oe(t,e))))),handleSaveComment:(0,b.m)(a.onSave,(function({prev:e,patch:t,value:r,source:n}){const i=e?Te(e):void 0;return{prev:i,patch:(0,Fe.g)(i,Te(t)),value:Te(r),source:n}}),(t=>t?Oe(t,e):void 0)),handleRemoveComment:(0,b.m)(a.onRemove,(({value:e,source:t})=>({value:Te(e),source:t})),(()=>{})),handleReadEmailRevisions:(0,b.m)(o.byForeignKey("parent").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>xe(t,e))))),handleEmailAutosave:(0,b.m)(o.onSave,(function({prev:e,patch:t,value:r,source:n}){return{value:Ae(r),source:n}}),(t=>t?xe(t,e):void 0)),handleRemoveEmailAutoSave:(0,b.m)(o.onRemove,(({value:e,source:t})=>({value:Ae(e),source:t})),(()=>{})),handleEmailChanged:(0,b.m)((0,Ue.sg)(f,100),(t=>(0,Ee.E)(t,e))),handleEmailInit:(0,b.m)(h,(t=>(0,Ee.E)(t,e))),handlePreviousButtonClick:(0,b.m)(u,(t=>(0,Ee.E)(t,e))),handleNextButtonClick:(0,b.m)(d,(t=>(0,Ee.E)(t,e))),handleSaveButtonClick:(0,b.m)(l,(t=>(0,Ee.E)(t,e))),handleHtmlChanged:(0,b.m)((0,Ue.sg)(p,100)),handleTestEmailSend:(0,b.m)(w,(({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}}))),handleTestEmailModal:(0,b.m)(v,(t=>(0,Ee.E)(t,e))),handleCloneEmail:(0,b.m)(_,(t=>(0,Ee.E)(t,e))),handleShareEmail:(0,b.m)(y),handlePreviewEmail:(0,b.m)(C),handleLivePreviewEmail:(0,b.m)(S)}}get(){return this._events||(this._events=this._get())}setOptions(e={}){const t=this.get();let r=this._listenersUpdaters;if(!r){r=this._listenersUpdaters={};for(const e of Object.keys(t))r[e]=this.addDisposable(new b.U(t[e]))}for(const n of Object.keys(t))r[n].setListener(e[n])}}const He=C((async e=>{const t=n.di.getInstance(e,l.Ef);if(t){const n=(await r.e(9640).then(r.bind(r,2610))).injectStandaloneMocks;await n(e,t)}(0,W.B)(e,ge);const i=new je(e),a=new We(e);return{async setOptions(e){a.setOptions(e),await i.show(e.content)},instance:{...a.get(),show:e=>i.show(e),save:()=>i.save(),getEmail:()=>i.getEmail(),getBlocks:()=>i.getBlocks(),getEmailRevisions:()=>i.getEmailRevisions(),getComments:()=>i.getComments(),compileEmail:async e=>e?ze(e):await i.compileEmail(),getCodeErrors:()=>i.getCodeErrors()}}})),Ze=(0,w.l)((e=>{const t=e.getInstance(l.Lz),r=(0,g.Zc)(e,g.AZ.UPLOAD_EVENT_ID),n=(0,g.Zc)(e,g.AZ.FILE_PROXY_EVENT_ID),i=(0,b.m)(r),a=(0,b.m)(n),o=t.addDisposable(new b.U(i)),s=t.addDisposable(new b.U(a));return{setOptions(e){o.setListener(e.handleLoadImage),s.setListener(e.handleFileProxy)},instance:{handleLoadImage:i,handleFileProxy:a}}}));function $e(e){return"string"===typeof e?e:e?x.createElement("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function qe(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,Ce.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:$e(e.message),description:$e(e.description),btn:$e(e.btn),onClose:e.onClose,duration:e.duration,icon:$e(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:$e(e.closeIcon),props:e.props,role:e.role})}const Ve=(0,w.l)((e=>{const t=e.getInstance(l.Lz),r=(0,g.Zc)(e,g.AZ.ON_NOTIFICATION),n=(0,Ue.pb)(r,(e=>"error"===e.type)),i=(0,Ue.pb)(r,(e=>"success"===e.type)),a=(0,b.m)(r,(e=>e),(e=>"string"===typeof e||"object"===typeof e?qe(e):e)),o=(0,b.m)(n,(e=>e),(e=>"string"===typeof e||"object"===typeof e?qe(e,"error"):e)),s=(0,b.m)(i,(e=>e),(e=>"string"===typeof e||"object"===typeof e?qe(e):e)),c=t.addDisposable(new b.U(a)),u=t.addDisposable(new b.U(o)),d=t.addDisposable(new b.U(s));return{setOptions({handleNotify:e,handleSuccess:t,handleError:r}){c.setListener(e),u.setListener(r),d.setListener(t)},instance:{notify(t){(0,_e.RS)(e,ye.Sb,{placement:"bottomRight",...qe(t)})},handleNotify:a,handleError:o,handleSuccess:s}}}));var Ge=r(86095);const Ke=(0,w.l)((e=>{let t;const r=(0,p.PL)(e),n=(0,g.Zc)(e,g.AZ.ON_MODEL_CHANGE);return r.addDisposable(n((e=>{t=(0,Ge.VA)(e)}))),{instance:{undoRedoService:{undo:()=>t.undo(),redo:()=>t.redo(),clear:()=>t.clear(),getPast:()=>t.getPast(),getFuture:()=>t.getFuture(),canUndo:()=>t.canUndo(),canRedo:()=>t.canRedo(),createSnapshot:()=>t.createSnapshot(),restoreSnapshot:e=>t.restoreSnapshot(e)}}}})),Ye=(0,w.E)([S,Ve,k,Ze,U,Ke,He])},16390:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>S,EV:()=>y,GH:()=>p,Ir:()=>m,Kj:()=>C,RP:()=>d,_R:()=>b,bn:()=>w,ee:()=>v,jY:()=>f,p5:()=>h,s0:()=>l,zg:()=>u});var n=r(1029),i=r(93778),a=r(53774);const o="configSlice",s=(0,i.ur)((0,a.$)("pro")),c=(0,n.createSlice)({name:o,initialState:{...s,initialMergeTags:void 0},reducers:{setPage:(e,t)=>{e.page=t.payload},setConfig:(e,t)=>{e.config={...s.config,...t.payload}},changeConfigMode:(e,t)=>{var r,n,i;const o=null!==(r=null===e||void 0===e||null===(n=e.advancedConfigs)||void 0===n?void 0:n[t.payload])&&void 0!==r?r:null===(i=(0,a.$)(t.payload))||void 0===i?void 0:i.config;if("simple"!==e.config.mode&&"simple"!==t.payload){const t={...e.config,...Object.fromEntries(Object.entries(o).filter((([e])=>a.i.includes(e))))};e.config=t}else e.config={...e.config,...(0,a.$)(t.payload).config}},setInitialMergeTags:(e,t)=>{e.initialMergeTags=t.payload},setMergeTags:(e,t)=>{e.config.mergeTags=t.payload},updateConfig:(e,t)=>{e.config={...e.config,...t.payload}},setProject:(e,t)=>{e.project=t.payload},setAdvancedConfigs:(e,t)=>{e.advancedConfigs=t.payload}},extraReducers:e=>{}}),l=e=>e[o].page,u=e=>e[o].config,d=e=>e[o].config.themes,h=e=>e[o].config.styles,f=e=>e[o].project,p=e=>e[o].config.mergeTags||e[o].initialMergeTags,{setPage:m,setConfig:g,updateConfig:b,setProject:w,setAdvancedConfigs:v,setMergeTags:_,changeConfigMode:y,setInitialMergeTags:C}=c.actions,S=c},54838:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>F,B:()=>T,Bp:()=>k,CS:()=>N,Ct:()=>I,Fk:()=>m,Fv:()=>P,M7:()=>x,N6:()=>C,NQ:()=>R,Oo:()=>f,PM:()=>p,Tn:()=>B,Uf:()=>v,V$:()=>M,Wm:()=>D,Wv:()=>z,cL:()=>O,mi:()=>g,oF:()=>A,oG:()=>j,qf:()=>h,sy:()=>E,vc:()=>b,vs:()=>w,wW:()=>_,wr:()=>y,yy:()=>L});var n=r(1029),i=r(32947),a=r(93778),o=r(5618);const s=window.localStorage.getItem(i.V0.em_code_mode_settings),c=s&&JSON.parse(s),l=(0,a.ur)({activeModal:"",lastActiveSettingsTab:i.Bv,activeSettingsTab:i.Bv,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:(null===c||void 0===c?void 0:c.isCodeMode)||i.EW.isPlugin,codeModeDirection:(null===c||void 0===c?void 0:c.codeModeDirection)||"left",isHeaderCodeMenuOpen:{current:!1,switched:!1},emailWidth:"100%",emailViewType:i.Vp,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:i.WU,parentBlocks:[],isGlobalLoading:!1}),u="emailPageSlice",d=(0,n.createSlice)({name:u,initialState:l,reducers:{openModal:(e,t)=>{e.activeModal=t.payload},closeModal:e=>{e.activeModal=""},setActiveSettingsTab:(e,t)=>{e.lastActiveSettingsTab=e.activeSettingsTab,e.activeSettingsTab=t.payload,t.payload!==i.Vv&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{"Properties"===e.lastActiveSettingsTab?e.activeSettingsTab="Build":e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==i.Vv&&(e.isPanelHistoryCollapsed=!0)},switchIsPanelHistoryCollapsed:(e,t)=>{e.isPanelHistoryCollapsed=t.payload||!e.isPanelHistoryCollapsed},setEmailWidth:(e,{payload:t})=>{e.emailWidth=t,e.emailViewType=t>e.emailMaxWidthSize||"100%"===t?i.Vp:i.ND,window.localStorage.setItem(i.V0.em_default_sizes,JSON.stringify(t))},setEmailMaxWidthSize:(e,{payload:t})=>{e.emailMaxWidthSize=t},setEmailViewType:(e,t)=>{e.emailViewType=t.payload},switchCodeMode:e=>{const t=!e.isCodeMode;e.isCodeMode=t,window.localStorage.setItem(i.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:t}))},setCodeMode:(e,t)=>{const r=t.payload;e.isCodeMode!==r&&(e.isCodeMode=r,window.localStorage.setItem(i.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:r})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(i.V0.em_code_mode_settings,JSON.stringify({isCodeMode:e.isCodeMode,codeModeDirection:t.payload}))},setMobileViewActive:(e,t)=>{e.mobileViewActive=t.payload},setPropertiesPanelKey:(e,t)=>{e.propertiesPanelKey=t.payload},resetParentBlocks:e=>{e.parentBlocks=[]},setParentBlocks:(e,t)=>{e.parentBlocks=t.payload},setIsGlobalLoading:(e,t)=>{e.isGlobalLoading=t.payload},setHeaderCodeMenuOpen:(e,t)=>{e.isHeaderCodeMenuOpen.current&&!t.payload?e.isHeaderCodeMenuOpen.switched=!0:e.isHeaderCodeMenuOpen.switched=!1,e.isHeaderCodeMenuOpen.current=t.payload}},extraReducers:e=>{e.addMatcher(o.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,t)=>{e.parentBlocks=t.payload}))}}),{openModal:h,closeModal:f,setActiveSettingsTab:p,resetToLastActiveSettingsTab:m,switchIsPanelHistoryCollapsed:g,setEmailWidth:b,switchCodeMode:w,switchCodeModeDirection:v,setMobileViewActive:_,setEmailViewType:y,setCodeMode:C,setEmailMaxWidthSize:S,setPropertiesPanelKey:k,resetParentBlocks:E,setIsGlobalLoading:x,setHeaderCodeMenuOpen:A}=d.actions,O=e=>e[u].activeModal,T=e=>e[u].activeSettingsTab,D=e=>e[u].isPanelHistoryCollapsed,R=e=>e[u].emailWidth,I=e=>e[u].emailViewType,N=e=>e[u].mobileViewActive,L=e=>e[u].codeModeDirection,P=e=>e[u].isCodeMode,z=e=>e[u].isHeaderCodeMenuOpen,B=e=>e[u].propertiesPanelKey,M=e=>e[u].parentBlocks,j=e=>e[u].isGlobalLoading,F=d}}]);
|