@emailmaker/emailmaker 1.0.95 → 1.0.97
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 +24 -24
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +3 -2
- package/emailmaker.js +1 -1
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/iframe-eblock.e8d51b90ab45966000c9.html +1 -0
- package/iframe/iframe.e8d51b90ab45966000c9.html +1 -0
- package/iframe/js/826.c93ee277.js +1 -0
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +1 -1
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_idigital.html +1 -1
- package/plugin_nota.html +1 -1
- package/plugin_s.html +1 -1
- package/static/css/57.3f9e7de8.chunk.css +1 -0
- package/static/js/1303.f6ad7f62.js +2 -0
- package/static/js/{1538.f85eeb54.chunk.js → 1538.7a45fa30.chunk.js} +2 -2
- package/static/js/{1654.640dc26f.js → 1654.d922b07e.js} +2 -2
- package/static/js/{2715.b20df3af.js → 2715.c21845e3.js} +2 -2
- package/static/js/3017.6335b77e.chunk.js +1 -0
- package/static/js/3220.db24c24f.js +2 -0
- package/static/js/{101.c6a17a34.chunk.js.LICENSE.txt → 3220.db24c24f.js.LICENSE.txt} +7 -0
- package/static/js/542.c5e7e839.js +2 -0
- package/static/js/{1390.25844bb5.js.LICENSE.txt → 542.c5e7e839.js.LICENSE.txt} +0 -7
- package/static/js/{57.cb438003.chunk.js → 57.4cd2b40e.chunk.js} +1 -1
- package/static/js/6501.7570e270.chunk.js +1 -0
- package/static/js/6798.20c2d528.chunk.js +2 -0
- package/static/js/{959.ef84be6d.js.LICENSE.txt → 6798.20c2d528.chunk.js.LICENSE.txt} +7 -0
- package/static/js/6819.85c72c79.chunk.js +2 -0
- package/static/js/8473.54e12d36.chunk.js +2 -0
- package/static/js/9981.656d52eb.js +1 -0
- package/static/js/emailmaker_core.596eeeca.js +2 -0
- package/translations.pot +190 -190
- package/iframe/iframe-eblock.b7776037d7d9514a0cf8.html +0 -1
- package/iframe/iframe.b7776037d7d9514a0cf8.html +0 -1
- package/iframe/js/826.a266c0a2.js +0 -1
- package/static/css/57.f1674cba.chunk.css +0 -1
- package/static/js/101.c6a17a34.chunk.js +0 -2
- package/static/js/1303.0207966d.js +0 -2
- package/static/js/1390.25844bb5.js +0 -2
- package/static/js/3017.8dd21fe4.chunk.js +0 -1
- package/static/js/3694.99fbd947.js +0 -1
- package/static/js/6501.876f3ec2.chunk.js +0 -1
- package/static/js/6819.efc5bf71.chunk.js +0 -2
- package/static/js/8473.6019be55.chunk.js +0 -2
- package/static/js/959.ef84be6d.js +0 -2
- package/static/js/emailmaker_core.07ab8c7d.js +0 -2
- /package/iframe/js/{826.a266c0a2.js.LICENSE.txt → 826.c93ee277.js.LICENSE.txt} +0 -0
- /package/static/css/{101.94b6a519.chunk.css → 6798.94b6a519.chunk.css} +0 -0
- /package/static/js/{1303.0207966d.js.LICENSE.txt → 1303.f6ad7f62.js.LICENSE.txt} +0 -0
- /package/static/js/{1538.f85eeb54.chunk.js.LICENSE.txt → 1538.7a45fa30.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{1654.640dc26f.js.LICENSE.txt → 1654.d922b07e.js.LICENSE.txt} +0 -0
- /package/static/js/{2715.b20df3af.js.LICENSE.txt → 2715.c21845e3.js.LICENSE.txt} +0 -0
- /package/static/js/{6819.efc5bf71.chunk.js.LICENSE.txt → 6819.85c72c79.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{8473.6019be55.chunk.js.LICENSE.txt → 8473.54e12d36.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{emailmaker_core.07ab8c7d.js.LICENSE.txt → emailmaker_core.596eeeca.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 101.c6a17a34.chunk.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[101],{88106:(e,t,r)=>{"use strict";function n(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}r.d(t,{R$:()=>n,W6:()=>a,j3:()=>i});class a{constructor(e,t,r){this.id=e,this.definition=t,this.description=r,a._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 a._allCodicons}}var i;a._allCodicons=[],a.add=new a("add",{fontCharacter:"\\ea60"}),a.plus=new a("plus",a.add.definition),a.gistNew=new a("gist-new",a.add.definition),a.repoCreate=new a("repo-create",a.add.definition),a.lightbulb=new a("lightbulb",{fontCharacter:"\\ea61"}),a.lightBulb=new a("light-bulb",{fontCharacter:"\\ea61"}),a.repo=new a("repo",{fontCharacter:"\\ea62"}),a.repoDelete=new a("repo-delete",{fontCharacter:"\\ea62"}),a.gistFork=new a("gist-fork",{fontCharacter:"\\ea63"}),a.repoForked=new a("repo-forked",{fontCharacter:"\\ea63"}),a.gitPullRequest=new a("git-pull-request",{fontCharacter:"\\ea64"}),a.gitPullRequestAbandoned=new a("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),a.recordKeys=new a("record-keys",{fontCharacter:"\\ea65"}),a.keyboard=new a("keyboard",{fontCharacter:"\\ea65"}),a.tag=new a("tag",{fontCharacter:"\\ea66"}),a.tagAdd=new a("tag-add",{fontCharacter:"\\ea66"}),a.tagRemove=new a("tag-remove",{fontCharacter:"\\ea66"}),a.person=new a("person",{fontCharacter:"\\ea67"}),a.personFollow=new a("person-follow",{fontCharacter:"\\ea67"}),a.personOutline=new a("person-outline",{fontCharacter:"\\ea67"}),a.personFilled=new a("person-filled",{fontCharacter:"\\ea67"}),a.gitBranch=new a("git-branch",{fontCharacter:"\\ea68"}),a.gitBranchCreate=new a("git-branch-create",{fontCharacter:"\\ea68"}),a.gitBranchDelete=new a("git-branch-delete",{fontCharacter:"\\ea68"}),a.sourceControl=new a("source-control",{fontCharacter:"\\ea68"}),a.mirror=new a("mirror",{fontCharacter:"\\ea69"}),a.mirrorPublic=new a("mirror-public",{fontCharacter:"\\ea69"}),a.star=new a("star",{fontCharacter:"\\ea6a"}),a.starAdd=new a("star-add",{fontCharacter:"\\ea6a"}),a.starDelete=new a("star-delete",{fontCharacter:"\\ea6a"}),a.starEmpty=new a("star-empty",{fontCharacter:"\\ea6a"}),a.comment=new a("comment",{fontCharacter:"\\ea6b"}),a.commentAdd=new a("comment-add",{fontCharacter:"\\ea6b"}),a.alert=new a("alert",{fontCharacter:"\\ea6c"}),a.warning=new a("warning",{fontCharacter:"\\ea6c"}),a.search=new a("search",{fontCharacter:"\\ea6d"}),a.searchSave=new a("search-save",{fontCharacter:"\\ea6d"}),a.logOut=new a("log-out",{fontCharacter:"\\ea6e"}),a.signOut=new a("sign-out",{fontCharacter:"\\ea6e"}),a.logIn=new a("log-in",{fontCharacter:"\\ea6f"}),a.signIn=new a("sign-in",{fontCharacter:"\\ea6f"}),a.eye=new a("eye",{fontCharacter:"\\ea70"}),a.eyeUnwatch=new a("eye-unwatch",{fontCharacter:"\\ea70"}),a.eyeWatch=new a("eye-watch",{fontCharacter:"\\ea70"}),a.circleFilled=new a("circle-filled",{fontCharacter:"\\ea71"}),a.primitiveDot=new a("primitive-dot",{fontCharacter:"\\ea71"}),a.closeDirty=new a("close-dirty",{fontCharacter:"\\ea71"}),a.debugBreakpoint=new a("debug-breakpoint",{fontCharacter:"\\ea71"}),a.debugBreakpointDisabled=new a("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),a.debugHint=new a("debug-hint",{fontCharacter:"\\ea71"}),a.primitiveSquare=new a("primitive-square",{fontCharacter:"\\ea72"}),a.edit=new a("edit",{fontCharacter:"\\ea73"}),a.pencil=new a("pencil",{fontCharacter:"\\ea73"}),a.info=new a("info",{fontCharacter:"\\ea74"}),a.issueOpened=new a("issue-opened",{fontCharacter:"\\ea74"}),a.gistPrivate=new a("gist-private",{fontCharacter:"\\ea75"}),a.gitForkPrivate=new a("git-fork-private",{fontCharacter:"\\ea75"}),a.lock=new a("lock",{fontCharacter:"\\ea75"}),a.mirrorPrivate=new a("mirror-private",{fontCharacter:"\\ea75"}),a.close=new a("close",{fontCharacter:"\\ea76"}),a.removeClose=new a("remove-close",{fontCharacter:"\\ea76"}),a.x=new a("x",{fontCharacter:"\\ea76"}),a.repoSync=new a("repo-sync",{fontCharacter:"\\ea77"}),a.sync=new a("sync",{fontCharacter:"\\ea77"}),a.clone=new a("clone",{fontCharacter:"\\ea78"}),a.desktopDownload=new a("desktop-download",{fontCharacter:"\\ea78"}),a.beaker=new a("beaker",{fontCharacter:"\\ea79"}),a.microscope=new a("microscope",{fontCharacter:"\\ea79"}),a.vm=new a("vm",{fontCharacter:"\\ea7a"}),a.deviceDesktop=new a("device-desktop",{fontCharacter:"\\ea7a"}),a.file=new a("file",{fontCharacter:"\\ea7b"}),a.fileText=new a("file-text",{fontCharacter:"\\ea7b"}),a.more=new a("more",{fontCharacter:"\\ea7c"}),a.ellipsis=new a("ellipsis",{fontCharacter:"\\ea7c"}),a.kebabHorizontal=new a("kebab-horizontal",{fontCharacter:"\\ea7c"}),a.mailReply=new a("mail-reply",{fontCharacter:"\\ea7d"}),a.reply=new a("reply",{fontCharacter:"\\ea7d"}),a.organization=new a("organization",{fontCharacter:"\\ea7e"}),a.organizationFilled=new a("organization-filled",{fontCharacter:"\\ea7e"}),a.organizationOutline=new a("organization-outline",{fontCharacter:"\\ea7e"}),a.newFile=new a("new-file",{fontCharacter:"\\ea7f"}),a.fileAdd=new a("file-add",{fontCharacter:"\\ea7f"}),a.newFolder=new a("new-folder",{fontCharacter:"\\ea80"}),a.fileDirectoryCreate=new a("file-directory-create",{fontCharacter:"\\ea80"}),a.trash=new a("trash",{fontCharacter:"\\ea81"}),a.trashcan=new a("trashcan",{fontCharacter:"\\ea81"}),a.history=new a("history",{fontCharacter:"\\ea82"}),a.clock=new a("clock",{fontCharacter:"\\ea82"}),a.folder=new a("folder",{fontCharacter:"\\ea83"}),a.fileDirectory=new a("file-directory",{fontCharacter:"\\ea83"}),a.symbolFolder=new a("symbol-folder",{fontCharacter:"\\ea83"}),a.logoGithub=new a("logo-github",{fontCharacter:"\\ea84"}),a.markGithub=new a("mark-github",{fontCharacter:"\\ea84"}),a.github=new a("github",{fontCharacter:"\\ea84"}),a.terminal=new a("terminal",{fontCharacter:"\\ea85"}),a.console=new a("console",{fontCharacter:"\\ea85"}),a.repl=new a("repl",{fontCharacter:"\\ea85"}),a.zap=new a("zap",{fontCharacter:"\\ea86"}),a.symbolEvent=new a("symbol-event",{fontCharacter:"\\ea86"}),a.error=new a("error",{fontCharacter:"\\ea87"}),a.stop=new a("stop",{fontCharacter:"\\ea87"}),a.variable=new a("variable",{fontCharacter:"\\ea88"}),a.symbolVariable=new a("symbol-variable",{fontCharacter:"\\ea88"}),a.array=new a("array",{fontCharacter:"\\ea8a"}),a.symbolArray=new a("symbol-array",{fontCharacter:"\\ea8a"}),a.symbolModule=new a("symbol-module",{fontCharacter:"\\ea8b"}),a.symbolPackage=new a("symbol-package",{fontCharacter:"\\ea8b"}),a.symbolNamespace=new a("symbol-namespace",{fontCharacter:"\\ea8b"}),a.symbolObject=new a("symbol-object",{fontCharacter:"\\ea8b"}),a.symbolMethod=new a("symbol-method",{fontCharacter:"\\ea8c"}),a.symbolFunction=new a("symbol-function",{fontCharacter:"\\ea8c"}),a.symbolConstructor=new a("symbol-constructor",{fontCharacter:"\\ea8c"}),a.symbolBoolean=new a("symbol-boolean",{fontCharacter:"\\ea8f"}),a.symbolNull=new a("symbol-null",{fontCharacter:"\\ea8f"}),a.symbolNumeric=new a("symbol-numeric",{fontCharacter:"\\ea90"}),a.symbolNumber=new a("symbol-number",{fontCharacter:"\\ea90"}),a.symbolStructure=new a("symbol-structure",{fontCharacter:"\\ea91"}),a.symbolStruct=new a("symbol-struct",{fontCharacter:"\\ea91"}),a.symbolParameter=new a("symbol-parameter",{fontCharacter:"\\ea92"}),a.symbolTypeParameter=new a("symbol-type-parameter",{fontCharacter:"\\ea92"}),a.symbolKey=new a("symbol-key",{fontCharacter:"\\ea93"}),a.symbolText=new a("symbol-text",{fontCharacter:"\\ea93"}),a.symbolReference=new a("symbol-reference",{fontCharacter:"\\ea94"}),a.goToFile=new a("go-to-file",{fontCharacter:"\\ea94"}),a.symbolEnum=new a("symbol-enum",{fontCharacter:"\\ea95"}),a.symbolValue=new a("symbol-value",{fontCharacter:"\\ea95"}),a.symbolRuler=new a("symbol-ruler",{fontCharacter:"\\ea96"}),a.symbolUnit=new a("symbol-unit",{fontCharacter:"\\ea96"}),a.activateBreakpoints=new a("activate-breakpoints",{fontCharacter:"\\ea97"}),a.archive=new a("archive",{fontCharacter:"\\ea98"}),a.arrowBoth=new a("arrow-both",{fontCharacter:"\\ea99"}),a.arrowDown=new a("arrow-down",{fontCharacter:"\\ea9a"}),a.arrowLeft=new a("arrow-left",{fontCharacter:"\\ea9b"}),a.arrowRight=new a("arrow-right",{fontCharacter:"\\ea9c"}),a.arrowSmallDown=new a("arrow-small-down",{fontCharacter:"\\ea9d"}),a.arrowSmallLeft=new a("arrow-small-left",{fontCharacter:"\\ea9e"}),a.arrowSmallRight=new a("arrow-small-right",{fontCharacter:"\\ea9f"}),a.arrowSmallUp=new a("arrow-small-up",{fontCharacter:"\\eaa0"}),a.arrowUp=new a("arrow-up",{fontCharacter:"\\eaa1"}),a.bell=new a("bell",{fontCharacter:"\\eaa2"}),a.bold=new a("bold",{fontCharacter:"\\eaa3"}),a.book=new a("book",{fontCharacter:"\\eaa4"}),a.bookmark=new a("bookmark",{fontCharacter:"\\eaa5"}),a.debugBreakpointConditionalUnverified=new a("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),a.debugBreakpointConditional=new a("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),a.debugBreakpointConditionalDisabled=new a("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),a.debugBreakpointDataUnverified=new a("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),a.debugBreakpointData=new a("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),a.debugBreakpointDataDisabled=new a("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),a.debugBreakpointLogUnverified=new a("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),a.debugBreakpointLog=new a("debug-breakpoint-log",{fontCharacter:"\\eaab"}),a.debugBreakpointLogDisabled=new a("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),a.briefcase=new a("briefcase",{fontCharacter:"\\eaac"}),a.broadcast=new a("broadcast",{fontCharacter:"\\eaad"}),a.browser=new a("browser",{fontCharacter:"\\eaae"}),a.bug=new a("bug",{fontCharacter:"\\eaaf"}),a.calendar=new a("calendar",{fontCharacter:"\\eab0"}),a.caseSensitive=new a("case-sensitive",{fontCharacter:"\\eab1"}),a.check=new a("check",{fontCharacter:"\\eab2"}),a.checklist=new a("checklist",{fontCharacter:"\\eab3"}),a.chevronDown=new a("chevron-down",{fontCharacter:"\\eab4"}),a.dropDownButton=new a("drop-down-button",a.chevronDown.definition),a.chevronLeft=new a("chevron-left",{fontCharacter:"\\eab5"}),a.chevronRight=new a("chevron-right",{fontCharacter:"\\eab6"}),a.chevronUp=new a("chevron-up",{fontCharacter:"\\eab7"}),a.chromeClose=new a("chrome-close",{fontCharacter:"\\eab8"}),a.chromeMaximize=new a("chrome-maximize",{fontCharacter:"\\eab9"}),a.chromeMinimize=new a("chrome-minimize",{fontCharacter:"\\eaba"}),a.chromeRestore=new a("chrome-restore",{fontCharacter:"\\eabb"}),a.circleOutline=new a("circle-outline",{fontCharacter:"\\eabc"}),a.debugBreakpointUnverified=new a("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),a.circleSlash=new a("circle-slash",{fontCharacter:"\\eabd"}),a.circuitBoard=new a("circuit-board",{fontCharacter:"\\eabe"}),a.clearAll=new a("clear-all",{fontCharacter:"\\eabf"}),a.clippy=new a("clippy",{fontCharacter:"\\eac0"}),a.closeAll=new a("close-all",{fontCharacter:"\\eac1"}),a.cloudDownload=new a("cloud-download",{fontCharacter:"\\eac2"}),a.cloudUpload=new a("cloud-upload",{fontCharacter:"\\eac3"}),a.code=new a("code",{fontCharacter:"\\eac4"}),a.collapseAll=new a("collapse-all",{fontCharacter:"\\eac5"}),a.colorMode=new a("color-mode",{fontCharacter:"\\eac6"}),a.commentDiscussion=new a("comment-discussion",{fontCharacter:"\\eac7"}),a.compareChanges=new a("compare-changes",{fontCharacter:"\\eafd"}),a.creditCard=new a("credit-card",{fontCharacter:"\\eac9"}),a.dash=new a("dash",{fontCharacter:"\\eacc"}),a.dashboard=new a("dashboard",{fontCharacter:"\\eacd"}),a.database=new a("database",{fontCharacter:"\\eace"}),a.debugContinue=new a("debug-continue",{fontCharacter:"\\eacf"}),a.debugDisconnect=new a("debug-disconnect",{fontCharacter:"\\ead0"}),a.debugPause=new a("debug-pause",{fontCharacter:"\\ead1"}),a.debugRestart=new a("debug-restart",{fontCharacter:"\\ead2"}),a.debugStart=new a("debug-start",{fontCharacter:"\\ead3"}),a.debugStepInto=new a("debug-step-into",{fontCharacter:"\\ead4"}),a.debugStepOut=new a("debug-step-out",{fontCharacter:"\\ead5"}),a.debugStepOver=new a("debug-step-over",{fontCharacter:"\\ead6"}),a.debugStop=new a("debug-stop",{fontCharacter:"\\ead7"}),a.debug=new a("debug",{fontCharacter:"\\ead8"}),a.deviceCameraVideo=new a("device-camera-video",{fontCharacter:"\\ead9"}),a.deviceCamera=new a("device-camera",{fontCharacter:"\\eada"}),a.deviceMobile=new a("device-mobile",{fontCharacter:"\\eadb"}),a.diffAdded=new a("diff-added",{fontCharacter:"\\eadc"}),a.diffIgnored=new a("diff-ignored",{fontCharacter:"\\eadd"}),a.diffModified=new a("diff-modified",{fontCharacter:"\\eade"}),a.diffRemoved=new a("diff-removed",{fontCharacter:"\\eadf"}),a.diffRenamed=new a("diff-renamed",{fontCharacter:"\\eae0"}),a.diff=new a("diff",{fontCharacter:"\\eae1"}),a.discard=new a("discard",{fontCharacter:"\\eae2"}),a.editorLayout=new a("editor-layout",{fontCharacter:"\\eae3"}),a.emptyWindow=new a("empty-window",{fontCharacter:"\\eae4"}),a.exclude=new a("exclude",{fontCharacter:"\\eae5"}),a.extensions=new a("extensions",{fontCharacter:"\\eae6"}),a.eyeClosed=new a("eye-closed",{fontCharacter:"\\eae7"}),a.fileBinary=new a("file-binary",{fontCharacter:"\\eae8"}),a.fileCode=new a("file-code",{fontCharacter:"\\eae9"}),a.fileMedia=new a("file-media",{fontCharacter:"\\eaea"}),a.filePdf=new a("file-pdf",{fontCharacter:"\\eaeb"}),a.fileSubmodule=new a("file-submodule",{fontCharacter:"\\eaec"}),a.fileSymlinkDirectory=new a("file-symlink-directory",{fontCharacter:"\\eaed"}),a.fileSymlinkFile=new a("file-symlink-file",{fontCharacter:"\\eaee"}),a.fileZip=new a("file-zip",{fontCharacter:"\\eaef"}),a.files=new a("files",{fontCharacter:"\\eaf0"}),a.filter=new a("filter",{fontCharacter:"\\eaf1"}),a.flame=new a("flame",{fontCharacter:"\\eaf2"}),a.foldDown=new a("fold-down",{fontCharacter:"\\eaf3"}),a.foldUp=new a("fold-up",{fontCharacter:"\\eaf4"}),a.fold=new a("fold",{fontCharacter:"\\eaf5"}),a.folderActive=new a("folder-active",{fontCharacter:"\\eaf6"}),a.folderOpened=new a("folder-opened",{fontCharacter:"\\eaf7"}),a.gear=new a("gear",{fontCharacter:"\\eaf8"}),a.gift=new a("gift",{fontCharacter:"\\eaf9"}),a.gistSecret=new a("gist-secret",{fontCharacter:"\\eafa"}),a.gist=new a("gist",{fontCharacter:"\\eafb"}),a.gitCommit=new a("git-commit",{fontCharacter:"\\eafc"}),a.gitCompare=new a("git-compare",{fontCharacter:"\\eafd"}),a.gitMerge=new a("git-merge",{fontCharacter:"\\eafe"}),a.githubAction=new a("github-action",{fontCharacter:"\\eaff"}),a.githubAlt=new a("github-alt",{fontCharacter:"\\eb00"}),a.globe=new a("globe",{fontCharacter:"\\eb01"}),a.grabber=new a("grabber",{fontCharacter:"\\eb02"}),a.graph=new a("graph",{fontCharacter:"\\eb03"}),a.gripper=new a("gripper",{fontCharacter:"\\eb04"}),a.heart=new a("heart",{fontCharacter:"\\eb05"}),a.home=new a("home",{fontCharacter:"\\eb06"}),a.horizontalRule=new a("horizontal-rule",{fontCharacter:"\\eb07"}),a.hubot=new a("hubot",{fontCharacter:"\\eb08"}),a.inbox=new a("inbox",{fontCharacter:"\\eb09"}),a.issueClosed=new a("issue-closed",{fontCharacter:"\\eba4"}),a.issueReopened=new a("issue-reopened",{fontCharacter:"\\eb0b"}),a.issues=new a("issues",{fontCharacter:"\\eb0c"}),a.italic=new a("italic",{fontCharacter:"\\eb0d"}),a.jersey=new a("jersey",{fontCharacter:"\\eb0e"}),a.json=new a("json",{fontCharacter:"\\eb0f"}),a.kebabVertical=new a("kebab-vertical",{fontCharacter:"\\eb10"}),a.key=new a("key",{fontCharacter:"\\eb11"}),a.law=new a("law",{fontCharacter:"\\eb12"}),a.lightbulbAutofix=new a("lightbulb-autofix",{fontCharacter:"\\eb13"}),a.linkExternal=new a("link-external",{fontCharacter:"\\eb14"}),a.link=new a("link",{fontCharacter:"\\eb15"}),a.listOrdered=new a("list-ordered",{fontCharacter:"\\eb16"}),a.listUnordered=new a("list-unordered",{fontCharacter:"\\eb17"}),a.liveShare=new a("live-share",{fontCharacter:"\\eb18"}),a.loading=new a("loading",{fontCharacter:"\\eb19"}),a.location=new a("location",{fontCharacter:"\\eb1a"}),a.mailRead=new a("mail-read",{fontCharacter:"\\eb1b"}),a.mail=new a("mail",{fontCharacter:"\\eb1c"}),a.markdown=new a("markdown",{fontCharacter:"\\eb1d"}),a.megaphone=new a("megaphone",{fontCharacter:"\\eb1e"}),a.mention=new a("mention",{fontCharacter:"\\eb1f"}),a.milestone=new a("milestone",{fontCharacter:"\\eb20"}),a.mortarBoard=new a("mortar-board",{fontCharacter:"\\eb21"}),a.move=new a("move",{fontCharacter:"\\eb22"}),a.multipleWindows=new a("multiple-windows",{fontCharacter:"\\eb23"}),a.mute=new a("mute",{fontCharacter:"\\eb24"}),a.noNewline=new a("no-newline",{fontCharacter:"\\eb25"}),a.note=new a("note",{fontCharacter:"\\eb26"}),a.octoface=new a("octoface",{fontCharacter:"\\eb27"}),a.openPreview=new a("open-preview",{fontCharacter:"\\eb28"}),a.package_=new a("package",{fontCharacter:"\\eb29"}),a.paintcan=new a("paintcan",{fontCharacter:"\\eb2a"}),a.pin=new a("pin",{fontCharacter:"\\eb2b"}),a.play=new a("play",{fontCharacter:"\\eb2c"}),a.run=new a("run",{fontCharacter:"\\eb2c"}),a.plug=new a("plug",{fontCharacter:"\\eb2d"}),a.preserveCase=new a("preserve-case",{fontCharacter:"\\eb2e"}),a.preview=new a("preview",{fontCharacter:"\\eb2f"}),a.project=new a("project",{fontCharacter:"\\eb30"}),a.pulse=new a("pulse",{fontCharacter:"\\eb31"}),a.question=new a("question",{fontCharacter:"\\eb32"}),a.quote=new a("quote",{fontCharacter:"\\eb33"}),a.radioTower=new a("radio-tower",{fontCharacter:"\\eb34"}),a.reactions=new a("reactions",{fontCharacter:"\\eb35"}),a.references=new a("references",{fontCharacter:"\\eb36"}),a.refresh=new a("refresh",{fontCharacter:"\\eb37"}),a.regex=new a("regex",{fontCharacter:"\\eb38"}),a.remoteExplorer=new a("remote-explorer",{fontCharacter:"\\eb39"}),a.remote=new a("remote",{fontCharacter:"\\eb3a"}),a.remove=new a("remove",{fontCharacter:"\\eb3b"}),a.replaceAll=new a("replace-all",{fontCharacter:"\\eb3c"}),a.replace=new a("replace",{fontCharacter:"\\eb3d"}),a.repoClone=new a("repo-clone",{fontCharacter:"\\eb3e"}),a.repoForcePush=new a("repo-force-push",{fontCharacter:"\\eb3f"}),a.repoPull=new a("repo-pull",{fontCharacter:"\\eb40"}),a.repoPush=new a("repo-push",{fontCharacter:"\\eb41"}),a.report=new a("report",{fontCharacter:"\\eb42"}),a.requestChanges=new a("request-changes",{fontCharacter:"\\eb43"}),a.rocket=new a("rocket",{fontCharacter:"\\eb44"}),a.rootFolderOpened=new a("root-folder-opened",{fontCharacter:"\\eb45"}),a.rootFolder=new a("root-folder",{fontCharacter:"\\eb46"}),a.rss=new a("rss",{fontCharacter:"\\eb47"}),a.ruby=new a("ruby",{fontCharacter:"\\eb48"}),a.saveAll=new a("save-all",{fontCharacter:"\\eb49"}),a.saveAs=new a("save-as",{fontCharacter:"\\eb4a"}),a.save=new a("save",{fontCharacter:"\\eb4b"}),a.screenFull=new a("screen-full",{fontCharacter:"\\eb4c"}),a.screenNormal=new a("screen-normal",{fontCharacter:"\\eb4d"}),a.searchStop=new a("search-stop",{fontCharacter:"\\eb4e"}),a.server=new a("server",{fontCharacter:"\\eb50"}),a.settingsGear=new a("settings-gear",{fontCharacter:"\\eb51"}),a.settings=new a("settings",{fontCharacter:"\\eb52"}),a.shield=new a("shield",{fontCharacter:"\\eb53"}),a.smiley=new a("smiley",{fontCharacter:"\\eb54"}),a.sortPrecedence=new a("sort-precedence",{fontCharacter:"\\eb55"}),a.splitHorizontal=new a("split-horizontal",{fontCharacter:"\\eb56"}),a.splitVertical=new a("split-vertical",{fontCharacter:"\\eb57"}),a.squirrel=new a("squirrel",{fontCharacter:"\\eb58"}),a.starFull=new a("star-full",{fontCharacter:"\\eb59"}),a.starHalf=new a("star-half",{fontCharacter:"\\eb5a"}),a.symbolClass=new a("symbol-class",{fontCharacter:"\\eb5b"}),a.symbolColor=new a("symbol-color",{fontCharacter:"\\eb5c"}),a.symbolCustomColor=new a("symbol-customcolor",{fontCharacter:"\\eb5c"}),a.symbolConstant=new a("symbol-constant",{fontCharacter:"\\eb5d"}),a.symbolEnumMember=new a("symbol-enum-member",{fontCharacter:"\\eb5e"}),a.symbolField=new a("symbol-field",{fontCharacter:"\\eb5f"}),a.symbolFile=new a("symbol-file",{fontCharacter:"\\eb60"}),a.symbolInterface=new a("symbol-interface",{fontCharacter:"\\eb61"}),a.symbolKeyword=new a("symbol-keyword",{fontCharacter:"\\eb62"}),a.symbolMisc=new a("symbol-misc",{fontCharacter:"\\eb63"}),a.symbolOperator=new a("symbol-operator",{fontCharacter:"\\eb64"}),a.symbolProperty=new a("symbol-property",{fontCharacter:"\\eb65"}),a.wrench=new a("wrench",{fontCharacter:"\\eb65"}),a.wrenchSubaction=new a("wrench-subaction",{fontCharacter:"\\eb65"}),a.symbolSnippet=new a("symbol-snippet",{fontCharacter:"\\eb66"}),a.tasklist=new a("tasklist",{fontCharacter:"\\eb67"}),a.telescope=new a("telescope",{fontCharacter:"\\eb68"}),a.textSize=new a("text-size",{fontCharacter:"\\eb69"}),a.threeBars=new a("three-bars",{fontCharacter:"\\eb6a"}),a.thumbsdown=new a("thumbsdown",{fontCharacter:"\\eb6b"}),a.thumbsup=new a("thumbsup",{fontCharacter:"\\eb6c"}),a.tools=new a("tools",{fontCharacter:"\\eb6d"}),a.triangleDown=new a("triangle-down",{fontCharacter:"\\eb6e"}),a.triangleLeft=new a("triangle-left",{fontCharacter:"\\eb6f"}),a.triangleRight=new a("triangle-right",{fontCharacter:"\\eb70"}),a.triangleUp=new a("triangle-up",{fontCharacter:"\\eb71"}),a.twitter=new a("twitter",{fontCharacter:"\\eb72"}),a.unfold=new a("unfold",{fontCharacter:"\\eb73"}),a.unlock=new a("unlock",{fontCharacter:"\\eb74"}),a.unmute=new a("unmute",{fontCharacter:"\\eb75"}),a.unverified=new a("unverified",{fontCharacter:"\\eb76"}),a.verified=new a("verified",{fontCharacter:"\\eb77"}),a.versions=new a("versions",{fontCharacter:"\\eb78"}),a.vmActive=new a("vm-active",{fontCharacter:"\\eb79"}),a.vmOutline=new a("vm-outline",{fontCharacter:"\\eb7a"}),a.vmRunning=new a("vm-running",{fontCharacter:"\\eb7b"}),a.watch=new a("watch",{fontCharacter:"\\eb7c"}),a.whitespace=new a("whitespace",{fontCharacter:"\\eb7d"}),a.wholeWord=new a("whole-word",{fontCharacter:"\\eb7e"}),a.window=new a("window",{fontCharacter:"\\eb7f"}),a.wordWrap=new a("word-wrap",{fontCharacter:"\\eb80"}),a.zoomIn=new a("zoom-in",{fontCharacter:"\\eb81"}),a.zoomOut=new a("zoom-out",{fontCharacter:"\\eb82"}),a.listFilter=new a("list-filter",{fontCharacter:"\\eb83"}),a.listFlat=new a("list-flat",{fontCharacter:"\\eb84"}),a.listSelection=new a("list-selection",{fontCharacter:"\\eb85"}),a.selection=new a("selection",{fontCharacter:"\\eb85"}),a.listTree=new a("list-tree",{fontCharacter:"\\eb86"}),a.debugBreakpointFunctionUnverified=new a("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),a.debugBreakpointFunction=new a("debug-breakpoint-function",{fontCharacter:"\\eb88"}),a.debugBreakpointFunctionDisabled=new a("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),a.debugStackframeActive=new a("debug-stackframe-active",{fontCharacter:"\\eb89"}),a.circleSmallFilled=new a("circle-small-filled",{fontCharacter:"\\eb8a"}),a.debugStackframeDot=new a("debug-stackframe-dot",a.circleSmallFilled.definition),a.debugStackframe=new a("debug-stackframe",{fontCharacter:"\\eb8b"}),a.debugStackframeFocused=new a("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),a.debugBreakpointUnsupported=new a("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),a.symbolString=new a("symbol-string",{fontCharacter:"\\eb8d"}),a.debugReverseContinue=new a("debug-reverse-continue",{fontCharacter:"\\eb8e"}),a.debugStepBack=new a("debug-step-back",{fontCharacter:"\\eb8f"}),a.debugRestartFrame=new a("debug-restart-frame",{fontCharacter:"\\eb90"}),a.callIncoming=new a("call-incoming",{fontCharacter:"\\eb92"}),a.callOutgoing=new a("call-outgoing",{fontCharacter:"\\eb93"}),a.menu=new a("menu",{fontCharacter:"\\eb94"}),a.expandAll=new a("expand-all",{fontCharacter:"\\eb95"}),a.feedback=new a("feedback",{fontCharacter:"\\eb96"}),a.groupByRefType=new a("group-by-ref-type",{fontCharacter:"\\eb97"}),a.ungroupByRefType=new a("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),a.account=new a("account",{fontCharacter:"\\eb99"}),a.bellDot=new a("bell-dot",{fontCharacter:"\\eb9a"}),a.debugConsole=new a("debug-console",{fontCharacter:"\\eb9b"}),a.library=new a("library",{fontCharacter:"\\eb9c"}),a.output=new a("output",{fontCharacter:"\\eb9d"}),a.runAll=new a("run-all",{fontCharacter:"\\eb9e"}),a.syncIgnored=new a("sync-ignored",{fontCharacter:"\\eb9f"}),a.pinned=new a("pinned",{fontCharacter:"\\eba0"}),a.githubInverted=new a("github-inverted",{fontCharacter:"\\eba1"}),a.debugAlt=new a("debug-alt",{fontCharacter:"\\eb91"}),a.serverProcess=new a("server-process",{fontCharacter:"\\eba2"}),a.serverEnvironment=new a("server-environment",{fontCharacter:"\\eba3"}),a.pass=new a("pass",{fontCharacter:"\\eba4"}),a.stopCircle=new a("stop-circle",{fontCharacter:"\\eba5"}),a.playCircle=new a("play-circle",{fontCharacter:"\\eba6"}),a.record=new a("record",{fontCharacter:"\\eba7"}),a.debugAltSmall=new a("debug-alt-small",{fontCharacter:"\\eba8"}),a.vmConnect=new a("vm-connect",{fontCharacter:"\\eba9"}),a.cloud=new a("cloud",{fontCharacter:"\\ebaa"}),a.merge=new a("merge",{fontCharacter:"\\ebab"}),a.exportIcon=new a("export",{fontCharacter:"\\ebac"}),a.graphLeft=new a("graph-left",{fontCharacter:"\\ebad"}),a.magnet=new a("magnet",{fontCharacter:"\\ebae"}),a.notebook=new a("notebook",{fontCharacter:"\\ebaf"}),a.redo=new a("redo",{fontCharacter:"\\ebb0"}),a.checkAll=new a("check-all",{fontCharacter:"\\ebb1"}),a.pinnedDirty=new a("pinned-dirty",{fontCharacter:"\\ebb2"}),a.passFilled=new a("pass-filled",{fontCharacter:"\\ebb3"}),a.circleLargeFilled=new a("circle-large-filled",{fontCharacter:"\\ebb4"}),a.circleLargeOutline=new a("circle-large-outline",{fontCharacter:"\\ebb5"}),a.combine=new a("combine",{fontCharacter:"\\ebb6"}),a.gather=new a("gather",{fontCharacter:"\\ebb6"}),a.table=new a("table",{fontCharacter:"\\ebb7"}),a.variableGroup=new a("variable-group",{fontCharacter:"\\ebb8"}),a.typeHierarchy=new a("type-hierarchy",{fontCharacter:"\\ebb9"}),a.typeHierarchySub=new a("type-hierarchy-sub",{fontCharacter:"\\ebba"}),a.typeHierarchySuper=new a("type-hierarchy-super",{fontCharacter:"\\ebbb"}),a.gitPullRequestCreate=new a("git-pull-request-create",{fontCharacter:"\\ebbc"}),a.runAbove=new a("run-above",{fontCharacter:"\\ebbd"}),a.runBelow=new a("run-below",{fontCharacter:"\\ebbe"}),a.notebookTemplate=new a("notebook-template",{fontCharacter:"\\ebbf"}),a.debugRerun=new a("debug-rerun",{fontCharacter:"\\ebc0"}),a.workspaceTrusted=new a("workspace-trusted",{fontCharacter:"\\ebc1"}),a.workspaceUntrusted=new a("workspace-untrusted",{fontCharacter:"\\ebc2"}),a.workspaceUnspecified=new a("workspace-unspecified",{fontCharacter:"\\ebc3"}),a.terminalCmd=new a("terminal-cmd",{fontCharacter:"\\ebc4"}),a.terminalDebian=new a("terminal-debian",{fontCharacter:"\\ebc5"}),a.terminalLinux=new a("terminal-linux",{fontCharacter:"\\ebc6"}),a.terminalPowershell=new a("terminal-powershell",{fontCharacter:"\\ebc7"}),a.terminalTmux=new a("terminal-tmux",{fontCharacter:"\\ebc8"}),a.terminalUbuntu=new a("terminal-ubuntu",{fontCharacter:"\\ebc9"}),a.terminalBash=new a("terminal-bash",{fontCharacter:"\\ebca"}),a.arrowSwap=new a("arrow-swap",{fontCharacter:"\\ebcb"}),a.copy=new a("copy",{fontCharacter:"\\ebcc"}),a.personAdd=new a("person-add",{fontCharacter:"\\ebcd"}),a.filterFilled=new a("filter-filled",{fontCharacter:"\\ebce"}),a.wand=new a("wand",{fontCharacter:"\\ebcf"}),a.debugLineByLine=new a("debug-line-by-line",{fontCharacter:"\\ebd0"}),a.inspect=new a("inspect",{fontCharacter:"\\ebd1"}),a.layers=new a("layers",{fontCharacter:"\\ebd2"}),a.layersDot=new a("layers-dot",{fontCharacter:"\\ebd3"}),a.layersActive=new a("layers-active",{fontCharacter:"\\ebd4"}),a.compass=new a("compass",{fontCharacter:"\\ebd5"}),a.compassDot=new a("compass-dot",{fontCharacter:"\\ebd6"}),a.compassActive=new a("compass-active",{fontCharacter:"\\ebd7"}),a.azure=new a("azure",{fontCharacter:"\\ebd8"}),a.issueDraft=new a("issue-draft",{fontCharacter:"\\ebd9"}),a.gitPullRequestClosed=new a("git-pull-request-closed",{fontCharacter:"\\ebda"}),a.gitPullRequestDraft=new a("git-pull-request-draft",{fontCharacter:"\\ebdb"}),a.debugAll=new a("debug-all",{fontCharacter:"\\ebdc"}),a.debugCoverage=new a("debug-coverage",{fontCharacter:"\\ebdd"}),a.runErrors=new a("run-errors",{fontCharacter:"\\ebde"}),a.folderLibrary=new a("folder-library",{fontCharacter:"\\ebdf"}),a.debugContinueSmall=new a("debug-continue-small",{fontCharacter:"\\ebe0"}),a.beakerStop=new a("beaker-stop",{fontCharacter:"\\ebe1"}),a.graphLine=new a("graph-line",{fontCharacter:"\\ebe2"}),a.graphScatter=new a("graph-scatter",{fontCharacter:"\\ebe3"}),a.pieChart=new a("pie-chart",{fontCharacter:"\\ebe4"}),a.bracket=new a("bracket",a.json.definition),a.bracketDot=new a("bracket-dot",{fontCharacter:"\\ebe5"}),a.bracketError=new a("bracket-error",{fontCharacter:"\\ebe6"}),a.lockSmall=new a("lock-small",{fontCharacter:"\\ebe7"}),a.azureDevops=new a("azure-devops",{fontCharacter:"\\ebe8"}),a.verifiedFilled=new a("verified-filled",{fontCharacter:"\\ebe9"}),a.newLine=new a("newline",{fontCharacter:"\\ebea"}),a.layout=new a("layout",{fontCharacter:"\\ebeb"}),a.layoutActivitybarLeft=new a("layout-activitybar-left",{fontCharacter:"\\ebec"}),a.layoutActivitybarRight=new a("layout-activitybar-right",{fontCharacter:"\\ebed"}),a.layoutPanelLeft=new a("layout-panel-left",{fontCharacter:"\\ebee"}),a.layoutPanelCenter=new a("layout-panel-center",{fontCharacter:"\\ebef"}),a.layoutPanelJustify=new a("layout-panel-justify",{fontCharacter:"\\ebf0"}),a.layoutPanelRight=new a("layout-panel-right",{fontCharacter:"\\ebf1"}),a.layoutPanel=new a("layout-panel",{fontCharacter:"\\ebf2"}),a.layoutSidebarLeft=new a("layout-sidebar-left",{fontCharacter:"\\ebf3"}),a.layoutSidebarRight=new a("layout-sidebar-right",{fontCharacter:"\\ebf4"}),a.layoutStatusbar=new a("layout-statusbar",{fontCharacter:"\\ebf5"}),a.layoutMenubar=new a("layout-menubar",{fontCharacter:"\\ebf6"}),a.layoutCentered=new a("layout-centered",{fontCharacter:"\\ebf7"}),a.layoutSidebarRightOff=new a("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),a.layoutPanelOff=new a("layout-panel-off",{fontCharacter:"\\ec01"}),a.layoutSidebarLeftOff=new a("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),a.target=new a("target",{fontCharacter:"\\ebf8"}),a.indent=new a("indent",{fontCharacter:"\\ebf9"}),a.recordSmall=new a("record-small",{fontCharacter:"\\ebfa"}),a.errorSmall=new a("error-small",{fontCharacter:"\\ebfb"}),a.arrowCircleDown=new a("arrow-circle-down",{fontCharacter:"\\ebfc"}),a.arrowCircleLeft=new a("arrow-circle-left",{fontCharacter:"\\ebfd"}),a.arrowCircleRight=new a("arrow-circle-right",{fontCharacter:"\\ebfe"}),a.arrowCircleUp=new a("arrow-circle-up",{fontCharacter:"\\ebff"}),a.heartFilled=new a("heart-filled",{fontCharacter:"\\ec04"}),a.map=new a("map",{fontCharacter:"\\ec05"}),a.mapFilled=new a("map-filled",{fontCharacter:"\\ec06"}),a.circleSmall=new a("circle-small",{fontCharacter:"\\ec07"}),a.bellSlash=new a("bell-slash",{fontCharacter:"\\ec08"}),a.bellSlashDot=new a("bell-slash-dot",{fontCharacter:"\\ec09"}),a.commentUnresolved=new a("comment-unresolved",{fontCharacter:"\\ec0a"}),a.dialogError=new a("dialog-error",a.error.definition),a.dialogWarning=new a("dialog-warning",a.warning.definition),a.dialogInfo=new a("dialog-info",a.info.definition),a.dialogClose=new a("dialog-close",a.close.definition),a.treeItemExpanded=new a("tree-item-expanded",a.chevronDown.definition),a.treeFilterOnTypeOn=new a("tree-filter-on-type-on",a.listFilter.definition),a.treeFilterOnTypeOff=new a("tree-filter-on-type-off",a.listSelection.definition),a.treeFilterClear=new a("tree-filter-clear",a.close.definition),a.treeItemLoading=new a("tree-item-loading",a.loading.definition),a.menuSelection=new a("menu-selection",a.check.definition),a.menuSubmenu=new a("menu-submenu",a.chevronRight.definition),a.menuBarMore=new a("menubar-more",a.more.definition),a.scrollbarButtonLeft=new a("scrollbar-button-left",a.triangleLeft.definition),a.scrollbarButtonRight=new a("scrollbar-button-right",a.triangleRight.definition),a.scrollbarButtonUp=new a("scrollbar-button-up",a.triangleUp.definition),a.scrollbarButtonDown=new a("scrollbar-button-down",a.triangleDown.definition),a.toolBarMore=new a("toolbar-more",a.more.definition),a.quickInputBack=new a("quick-input-back",a.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 a)return["codicon","codicon-"+e.id];const n=t.exec(e.id);if(!n)return r(a.error);const[,i,o]=n,s=["codicon","codicon-"+i];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(".")}}(i||(i={}))},75909:(e,t,r)=>{"use strict";r.d(t,{AL:()=>l,D7:()=>m,EM:()=>f,MB:()=>c,M_:()=>i,Qg:()=>d,aD:()=>u,cU:()=>o,dz:()=>a,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 a(e){c(e)||n.onUnexpectedError(e)}function i(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:()=>w,Cm:()=>m,HE:()=>b,St:()=>v,Xm:()=>d,jG:()=>g,lC:()=>l,mp:()=>y,qE:()=>f,s:()=>p});var n=r(8663),a=r(16624);let i=null;function o(e){return null===i||void 0===i||i.trackDisposable(e),e}function s(e){null===i||void 0===i||i.markAsDisposed(e)}function c(e,t){null===i||void 0===i||i.setParent(e,t)}function l(e){return null===i||void 0===i||i.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(a.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(i)for(const r of e)i.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 y{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 w{constructor(e){this.object=e}dispose(){}}},1273:(e,t,r)=>{"use strict";r.d(t,{B6:()=>k,Fd:()=>y,LC:()=>m,P8:()=>p,Pi:()=>f,er:()=>d,iZ:()=>v,n4:()=>h,o1:()=>w,pD:()=>g,su:()=>l,uJ:()=>b});var n=r(78284),a=r(46442),i=r(72142),o=r(55977),s=r(24638),c=r(65698);function l(e){return(0,c.I)(e,!0)}class u{constructor(e){this._ignorePathCasing=e}compare(e,t,r=!1){return e===t?0:(0,s.UD)(this.getComparisonKey(e,r),this.getComparisonKey(t,r))}isEqual(e,t,r=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,r)===this.getComparisonKey(t,r)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,r=!1){if(e.scheme===t.scheme){if(e.scheme===a.ny.file)return n._1(l(e),l(t),this._ignorePathCasing(e))&&e.query===t.query&&(r||e.fragment===t.fragment);if(_(e.authority,t.authority))return n._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(r||e.fragment===t.fragment)}return!1}joinPath(e,...t){return c.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return i.SA.basename(e.path)}extname(e){return i.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===a.ny.file?t=c.r.file(i.pD(l(e))).path:(t=i.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===a.ny.file?c.r.file(i.S8(l(e))).path:i.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!_(e.authority,t.authority))return;if(e.scheme===a.ny.file){const r=i.V8(l(e),l(t));return o.uF?n.TH(r):r}let r=e.path||"/";const s=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(r.length,s.length);e<t&&(r.charCodeAt(e)===s.charCodeAt(e)||r.charAt(e).toLowerCase()===s.charAt(e).toLowerCase());e++);r=s.substr(0,e)+r.substr(e)}return i.SA.relative(r,s)}resolvePath(e,t){if(e.scheme===a.ny.file){const r=c.r.file(i.hd(l(e),t));return e.with({authority:r.authority,path:r.path})}return t=n.kb(t),e.with({path:i.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,s.Q_)(e,t)}hasTrailingPathSeparator(e,t=i.Vn){if(e.scheme===a.ny.file){const r=l(e);return r.length>n.Zn(r).length&&r[r.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=i.Vn){return C(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=i.Vn){let r=!1;if(e.scheme===a.ny.file){const a=l(e);r=void 0!==a&&a.length===n.Zn(a).length&&a[a.length-1]===t}else{t="/";const n=e.path;r=1===n.length&&47===n.charCodeAt(n.length-1)}return r||C(e,t)?e:e.with({path:e.path+"/"})}}const d=new u((()=>!1)),h=(new u((e=>e.scheme!==a.ny.file||!o.j9)),new u((e=>!0)),d.isEqual.bind(d)),f=(d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d)),p=d.basename.bind(d),m=d.extname.bind(d),g=d.dirname.bind(d),b=d.joinPath.bind(d),y=d.normalizePath.bind(d),v=d.relativePath.bind(d),w=d.resolvePath.bind(d),_=(d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),C=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var k;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const r=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&r.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&r.set(e.META_DATA_MIME,n),r}}(k||(k={}))},3688:(e,t,r)=>{"use strict";r.d(t,{C1:()=>i,Ym:()=>n,kF:()=>a});const n={ctrlCmd:!1,alt:!1};var a,i;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(a||(a={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(i||(i={}));new class{constructor(e){this.options=e}}},59806:(e,t,r)=>{"use strict";r.d(t,{Du:()=>h,Su:()=>f,aI:()=>d,b7:()=>u});var n=r(24638),a=r(55977),i=r(52756);let o,s,c;function l(){return o||(o=new TextDecoder("UTF-16LE")),o}function u(){return c||(c=a.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 a=0;for(let o=0;o<r;o++){const r=i.$l(e,t);t+=2,n[a++]=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:()=>i});var n=r(17924);class a 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 i=function(e){const t={};return r=>(t.hasOwnProperty(r)||(t[r]=e(r)),t[r])}((e=>new a(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:()=>a,VW:()=>i,Wo:()=>l,X2:()=>s,vd:()=>h});var n,a,i,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"}(a||(a={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(i||(i={}));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,a,i){this.identifier=e,this.range=t,this.text=r,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=a,this._isTracked=i}}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:()=>i,YN:()=>a,b2:()=>n,gf:()=>s,n9:()=>c,oq:()=>o,tu:()=>d,vp:()=>l});var n,a,i,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")}(a||(a={})),function(e){e.gotoLineActionLabel=h.kg("gotoLineActionLabel","Go to Line/Column...")}(i||(i={})),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:()=>We,XB:()=>Ie,Zc:()=>Le});r(10884),r(96696),r(28313),r(53166),r(40098);var n=r(24638),a=r(90491),i=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),y=r(92320),v=r(42982),w=r(16281),_=r(58471),C=r(54925),k=r(21181),S=r(90301),E=r(34029),A=r(85484),x=r(47925),T=r(28951),O=r(11563),I=r(80858),P=r(65491),D=r(70679),R=r(74349),M=r(53229),N=r(45769),B=r(86377),L=r(8547),j=r(6751),z=r(1273),F=r(88459),U=r(91823),q=r(25555),W=r(95166),$=r(64355),Z=r(94411),H=r(4235),G=r(16974),V=r(62848),K=r(84214),Q=r(87594),Y=r(38572),J=r(76220),X=r(76237),ee=r(90324),te=r(47461),re=r(61249),ne=r(85976),ae=r(83238),ie=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),ye=r(46025),ve=r(31001),we=r(87899),_e=(r(61873),r(66578)),Ce=function(e,t,r,n){var a,i=arguments.length,o=i<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--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ke=function(e,t){return function(r,n){t(r,n,e)}},Se=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(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 Ae=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"))}};Ae=Ce([ke(0,b.S)],Ae);class xe{show(){return xe.NULL_PROGRESS_RUNNER}showWhile(e,t){return Se(this,void 0,void 0,(function*(){yield e}))}}xe.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Te{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 Te.NO_OP}status(e,t){return c.jG.None}}Te.NO_OP=new R.Kz;let Oe=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=w.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)}}};Oe=Ce([ke(0,E._Y)],Oe);let Ie=class extends A.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(a.ko(e,a.Bx.KEY_DOWN,(e=>{const t=new i.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(a.ko(e,a.Bx.KEY_UP,(e=>{const t=new i.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Pe(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 a=(0,s.ZU)(t,l.OS),i=new c.Cm;return a&&(this._dynamicKeybindings.push({keybinding:a.parts,command:e,when:n,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),i.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()}})))),i.add(w.wb.registerCommand(e,r)),this.updateResolver(),i}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(O.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new T.f(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const r=[];let n=0;for(const a of e){const e=a.when||void 0,i=a.keybinding;if(i){const o=P.j.resolveUserBinding(i,l.OS);for(const i of o)r[n++]=new I.u(i,a.command,a.commandArgs,e,t,null,!1)}else r[n++]=new I.u(void 0,a.command,a.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 P.j(t,l.OS)}};Ie=Ce([ke(0,k.fN),ke(1,w.wT),ke(2,N.k),ke(3,R.Ot),ke(4,U.rr),ke(5,F.T)],Ie);class Pe extends c.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function De(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof d.r)}class Re{constructor(){this._onDidChangeConfiguration=new o.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new C.Vk(new _e.z,new C.S1,new C.S1,new C.S1)}getValue(e,t){const r="string"===typeof e?e:void 0,n=De(e)?e:De(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 Me=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)}};Me=Ce([ke(0,_.pG)],Me);let Ne=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"}};Ne=Ce([ke(0,_.pG)],Ne);class Be{constructor(){const e=d.r.from({scheme:Be.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new B.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Be.SCHEME?this.workspace.folders[0]:null}}function Le(e,t,r){if(!t)return;if(!(e instanceof Re))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)}Be.SCHEME="inmemory";let je=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return Se(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,a=0;for(const[e,n]of t)e.pushStackElement(),e.pushEditOperations([],n,(()=>[])),e.pushStackElement(),a+=1,r+=n.length;return{ariaSummary:n.GP(j.tu.bulkEditServiceSummary,r,a)}}))}};je=Ce([ke(0,b.S)],je);let ze=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)}};ze=Ce([ke(0,L.x),ke(1,F.T)],ze);class Fe extends Z.g{constructor(){super()}}class Ue extends U.Kc{constructor(){super(new U.Cr)}}let qe=class extends H.K{constructor(e,t,r,n,a){super(e,t,r,n,a),this.configure({blockMouse:!1})}};var We;qe=Ce([ke(0,N.k),ke(1,R.Ot),ke(2,W.l),ke(3,x.b),ke(4,G.Gy)],qe),(0,V.v)(_.pG,Re),(0,V.v)(v.U,Me),(0,V.v)(v.J,Ne),(0,V.v)(B.VR,Be),(0,V.v)(D.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,z.P8)(e)}}),(0,V.v)(N.k,class{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}),(0,V.v)(S.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,V.v)(R.Ot,Te),(0,V.v)(ge.DR,be.m),(0,V.v)(J.L,Fe),(0,V.v)(ae.L,ne.Sx),(0,V.v)(U.rr,Ue),(0,V.v)(b.S,te.JW),(0,V.v)(ee.A,X.D),(0,V.v)(k.fN,de.i7),(0,V.v)(M.G5,class{withProgress(e,t,r){return t({report:()=>{}})}}),(0,V.v)(M.N8,xe),(0,V.v)(we.CS,we.pc),(0,V.v)(Q.w,Y.Bc),(0,V.v)(h.nu,je),(0,V.v)(q.L,class{constructor(){this._neverEmitter=new o.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}),(0,V.v)(y.b,Ae),(0,V.v)(oe.j,ie.s),(0,V.v)(me.PE,me.aG),(0,V.v)(w.wT,Oe),(0,V.v)(x.b,Ie),(0,V.v)(ve.GK,re.oC),(0,V.v)(W.l,ze),(0,V.v)(ye.Cr,K.J),(0,V.v)(ue.h,le.w),(0,V.v)(W.Z,qe),(0,V.v)(se.ez,ce.$),function(e){const t=new pe.a;for(const[a,i]of(0,V.N)())t.set(a,i);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,V.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}}(We||(We={}))},35819:(e,t,r)=>{"use strict";r.d(t,{AM:()=>o,kg:()=>i});let n="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function a(e,t){let r;return r=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,r)=>{const n=r[0],a=t[n];let i=e;return"string"===typeof a?i=a:"number"!==typeof a&&"boolean"!==typeof a&&void 0!==a&&null!==a||(i=String(a)),i})),n&&(r="\uff3b"+r.replace(/[aouei]/g,"$&$&")+"\uff3d"),r}function i(e,t,...r){return a(t,r)}function o(e){}},34029:(e,t,r)=>{"use strict";var n;r.d(t,{_$:()=>n,_Y:()=>a,u1:()=>i}),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 a=i("instantiationService");function i(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,r,a){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,a)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},94049:(e,t,r)=>{var n=r(45764).Buffer,a=r(88295);e.exports=function e(t,r,n){function a(o,s){if(!r[o]){if(!t[o]){if(i)return i(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 a(t[o][1][e]||e)}),l,l.exports,e,t,r,n)}return r[o].exports}for(var i=void 0,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,r){"use strict";var n=e("./utils"),a=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,a,o,s,c,l,u=[],d=0,h=e.length,f=h,p="string"!==n.getTypeOf(e);d<e.length;)f=h-d,a=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|a>>6:64,l=2<f?63&a:64,u.push(i.charAt(o)+i.charAt(s)+i.charAt(c)+i.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)===i.charAt(64)&&f--,e.charAt(e.length-2)===i.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=a.uint8array?new Uint8Array(0|f):new Array(0|f);l<e.length;)t=i.indexOf(e.charAt(l++))<<2|(o=i.indexOf(e.charAt(l++)))>>4,r=(15&o)<<4|(s=i.indexOf(e.charAt(l++)))>>2,n=(3&s)<<6|(c=i.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"),a=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,r,n,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var e=new a(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 a(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 i).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"),a=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 i=a,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^i[255&(e^t[s])];return~e}(0|t,e,e.length,0):function(e,t,r,n){var i=a,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^i[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,a=e("pako"),i=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",i.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.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 a[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 a(e,t,r,a,o,u){var d,h,f=e.file,p=e.compression,m=u!==s.utf8encode,g=i.transformTo("string",u(f.name)),b=i.transformTo("string",s.utf8encode(f.name)),y=f.comment,v=i.transformTo("string",u(y)),w=i.transformTo("string",s.utf8encode(y)),_=b.length!==f.name.length,C=w.length!==y.length,k="",S="",E="",A=f.dir,x=f.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var O=0;t&&(O|=8),m||!_&&!C||(O|=2048);var I=0,P=0;A&&(I|=16),"UNIX"===o?(P=798,I|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,A)):(P=20,I|=function(e){return 63&(e||0)}(f.dosPermissions)),d=x.getUTCHours(),d<<=6,d|=x.getUTCMinutes(),d<<=5,d|=x.getUTCSeconds()/2,h=x.getUTCFullYear()-1980,h<<=4,h|=x.getUTCMonth()+1,h<<=5,h|=x.getUTCDate(),_&&(S=n(1,1)+n(c(g),4)+b,k+="up"+n(S.length,2)+S),C&&(E=n(1,1)+n(c(v),4)+w,k+="uc"+n(E.length,2)+E);var D="";return D+="\n\0",D+=n(O,2),D+=p.magic,D+=n(d,2),D+=n(h,2),D+=n(T.crc32,4),D+=n(T.compressedSize,4),D+=n(T.uncompressedSize,4),D+=n(g.length,2),D+=n(k.length,2),{fileRecord:l.LOCAL_FILE_HEADER+D+g+k,dirRecord:l.CENTRAL_FILE_HEADER+n(P,2)+D+n(v.length,2)+"\0\0\0\0"+n(I,4)+n(a,4)+g+k+v}}var i=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=[]}i.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=a(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=a(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,a=function(e,t,r,a,o){var s=i.transformTo("string",o(a));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:a,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"),a=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var i=new a(t.streamFiles,r,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,r){o++;var a=function(e,t){var r=e||t,a=n[r];if(!a)throw new Error(r+" is not a valid compression method !");return a}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},c=r.dir,l=r.date;r._compressWorker(a,s).withStreamInfo("file",{name:e,dir:c,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(i)})),i.entriesCount=o}catch(e){i.error(e)}return i}},{"../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"),a=e("./external"),i=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function l(e){return new a.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:i.utf8decode}),c.isNode&&c.isStream(e)?a.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=[a.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var i=0;i<n.length;i++)r.push(l(n[i]));return a.Promise.all(r)})).then((function(e){for(var a=e.shift(),i=a.files,o=0;o<i.length;o++){var s=i[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 a.zipComment.length&&(r.comment=a.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"),a=e("../stream/GenericWorker");function i(e,t){a.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(i,a),i.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()}))},i.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){"use strict";var n=e("readable-stream").Readable;function a(e,t,r){n.call(this,t),this._helper=e;var a=this;e.on("data",(function(e,t){a.push(e)||a._helper.pause(),r&&r(t)})).on("error",(function(e){a.emit("error",e)})).on("end",(function(){a.push(null)}))}e("../utils").inherits(a,n),a.prototype._read=function(){this._helper.resume()},t.exports=a},{"../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,a=i.getTypeOf(t),s=i.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"===a&&!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",a="string");var b=null;b=t instanceof l||t instanceof o?t:h.isNode&&h.isStream(t)?new f(e,t):i.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,b,s);this.files[e]=y}var a=e("./utf8"),i=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 y={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 a=e;return this.filter((function(e,t){return!t.dir&&a.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i: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=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.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.");i.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=y},{"./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 a(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data[this.zero+e]},a.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===a)return i-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&a===i[3]},a.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=a},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){"use strict";var n=e("../utils");function a(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a.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=a},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.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=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},a.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=a},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.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=a},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),a=e("../support"),i=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||a.uint8array?"nodebuffer"===t?new s(e):a.uint8array?new c(n.transformTo("uint8array",e)):new i(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"),a=e("../utils");function i(e){n.call(this,"ConvertWorker to "+e),this.destType=e}a.inherits(i,n),i.prototype.processChunk=function(e){this.push({data:a.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),a=e("../crc32");function i(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,n),i.prototype.processChunk=function(e){this.streamInfo.crc32=a(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),a=e("./GenericWorker");function i(e){a.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(i,a),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}a.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),a=e("./GenericWorker");function i(e){a.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(i,a),i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.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=i},{"../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 a=e("../utils"),i=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,i){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=[],i(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return a.newBlob(a.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return a.transformTo(e,t)}}(l,function(e,t){var r,a=0,i=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(i=new Uint8Array(o),r=0;r<t.length;r++)i.set(t[r],a),a+=t[r].length;return i;case"nodebuffer":return n.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,o),u);r(e)}catch(e){i(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,a.checkSupport(n),this._worker=e.pipe(new i(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(){a.delay(t,arguments,r)})),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(a.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 a=new ArrayBuffer(0);try{r.blob=0===new Blob([a],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(a),r.blob=0===i.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"),a=e("./support"),i=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 a.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,r,n,i,o,s=e.length,c=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=a.uint8array?new Uint8Array(c):new Array(c),i=o=0;o<c;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),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 a.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,a,i,o=e.length,c=new Array(2*o);for(t=r=0;t<o;)if((a=e[t++])<128)c[r++]=a;else if(4<(i=s[a]))c[r++]=65533,t+=i-1;else{for(a&=2===i?31:3===i?15:7;1<i&&t<o;)a=a<<6|63&e[t++],i--;1<i?c[r++]=65533:a<65536?c[r++]=a:(a-=65536,c[r++]=55296|a>>10&1023,c[r++]=56320|1023&a)}return c.length!==r&&(c.subarray?c=c.subarray(0,r):c.length=r),n.applyFromCharCode(c)}(e=n.transformTo(a.uint8array?"uint8array":"array",e))},n.inherits(l,o),l.prototype.processChunk=function(e){var t=n.transformTo(a.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,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&&(a.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"),a=e("./base64"),i=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 a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(t),a.getBlob(n)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,r){var n=[],a=0,i=e.length;if(i<=r)return String.fromCharCode.apply(null,e);for(;a<i;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,i)))),a+=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,i.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,n=r.getTypeOf(e),a=!0;if("uint8array"===n?a=l.applyCanBeUsed.uint8array:"nodebuffer"===n&&(a=l.applyCanBeUsed.nodebuffer),a)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,i.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 i.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 i.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 i.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 a=t[n];"."===a||""===a&&0!==n&&n!==t.length-1||(".."===a?r.pop():r.push(a))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&i.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,i,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=a.decode(t):i&&!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"),a=e("./utils"),i=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 ("+a.pretty(t)+", expected "+a.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=a.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(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.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(i.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,i.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(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.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(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.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(i.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,i.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"),a=e("./utils"),i=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 "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new i(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===a.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,a=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<a;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(a)},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=a.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=a.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},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 a=e("./stream/StreamHelper"),i=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 i=!this._dataBinary;i&&!n&&(t=t.pipe(new o.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new a(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 i(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,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var i=0,o=new a(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),r=function(){s.data=i=++i%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 a(){}var i={},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!==a&&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 i.reject(e,n)}n===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.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,i.reject(e,t))}function a(t){r||(r=!0,i.resolve(e,t))}var o=p((function(){t(a,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(a);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){i.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){i.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},i.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return i.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=s,e.outcome=t;for(var a=-1,o=e.queue.length;++a<o;)e.queue[a].callFulfilled(t)}return e},i.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:i.resolve(new this(a),e)},l.reject=function(e){var t=new this(a);return i.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(a);++c<r;)u(e[c],c);return l;function u(e,a){t.resolve(e).then((function(e){o[a]=e,++s!==r||n||(n=!0,i.resolve(l,o))}),(function(e){n||(n=!0,i.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(a);++s<r;)o=e[s],t.resolve(o).then((function(e){n||(n=!0,i.resolve(c,e))}),(function(e){n||(n=!0,i.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"),a=e("./utils/common"),i=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=a.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?i.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=i.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 a.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(i.buf2binstring(a.shrinkBuf(s.output,s.next_out))):this.onData(a.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=a.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"),a=e("./utils/common"),i=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=a.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=i.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 a.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?i.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=i.utf8border(f.output,f.next_out),l=f.next_out-c,d=i.buf2string(f.output,c),f.next_out=l,f.avail_out=p-l,l&&a.arraySet(f.output,f.output,c,l,0),this.onData(d)):this.onData(a.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=a.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 a={arraySet:function(e,t,r,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),a);else for(var i=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){var t,r,n,a,i,o;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(o=new Uint8Array(n),t=a=0,r=e.length;t<r;t++)i=e[t],o.set(i,a),a+=i.length;return o}},i={arraySet:function(e,t,r,n,a){for(var i=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,a)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,i))},r.setTyped(n)},{}],42:[function(e,t,r){"use strict";var n=e("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!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&&i||!e.subarray&&a))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,a,i,o,s=e.length,c=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(a=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(a-56320),i++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(c),i=o=0;o<c;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(a=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(a-56320),i++),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,a=t.length;r<a;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,a,i,s=t||e.length,l=new Array(2*s);for(r=n=0;r<s;)if((a=e[r++])<128)l[n++]=a;else if(4<(i=o[a]))l[n++]=65533,r+=i-1;else{for(a&=2===i?31:3===i?15:7;1<i&&r<s;)a=a<<6|63&e[r++],i--;1<i?l[n++]=65533:a<65536?l[n++]=a:(a-=65536,l[n++]=55296|a>>10&1023,l[n++]=56320|1023&a)}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 a=65535&e,i=e>>>16&65535,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;i=i+(a=a+t[n++]|0)|0,--o;);a%=65521,i%=65521}return a|i<<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,a){var i=n,o=a+r;e^=-1;for(var s=a;s<o;s++)e=e>>>8^i[255&(e^t[s])];return~e}},{}],46:[function(e,t,r){"use strict";var n,a=e("../utils/common"),i=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,y=286,v=30,w=19,_=2*y+1,C=15,k=3,S=258,E=S+k+1,A=42,x=113,T=1,O=2,I=3,P=4;function D(e,t){return e.msg=c[t],t}function R(e){return(e<<1)-(4<e?9:0)}function M(e){for(var t=e.length;0<=--t;)e[t]=0}function N(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(a.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 B(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,N(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function j(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function z(e,t){var r,n,a=e.max_chain_length,i=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+S,f=l[i+o-1],p=l[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(r=t)+o]===p&&l[r+o-1]===f&&l[r]===l[i]&&l[++r]===l[i+1]){i+=2,r++;do{}while(l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&i<h);if(n=S-(h-i),i=h-S,o<n){if(e.match_start=t,s<=(o=n))break;f=l[i+o-1],p=l[i+o]}}}while((t=d[t&u])>c&&0!=--a);return o<=e.lookahead?o:e.lookahead}function F(e){var t,r,n,i,c,l,u,d,h,f,p=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-E)){for(a.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;);i+=p}if(0===e.strm.avail_in)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=i)<(f=l.avail_in)&&(f=h),r=0===f?0:(l.avail_in-=f,a.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>=k)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+k-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<k)););}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 T;if(0===e.lookahead)break}if(r=0,e.lookahead>=k&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-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=z(e,r)),e.match_length>=k)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-k),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=k){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-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=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(B(e,!1),0===e.strm.avail_out))return T}return e.insert=e.strstart<k-1?e.strstart:k-1,t===u?(B(e,!0),0===e.strm.avail_out?I:P):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?T:O}function q(e,t){for(var r,n,a;;){if(e.lookahead<E){if(F(e),e.lookahead<E&&t===l)return T;if(0===e.lookahead)break}if(r=0,e.lookahead>=k&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-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=k-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-E&&(e.match_length=z(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===k&&4096<e.strstart-e.match_start)&&(e.match_length=k-1)),e.prev_length>=k&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-k,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-k),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-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=k-1,e.strstart++,n&&(B(e,!1),0===e.strm.avail_out))return T}else if(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&B(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return T}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<k-1?e.strstart:k-1,t===u?(B(e,!0),0===e.strm.avail_out?I:P):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?T:O}function W(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}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 a.Buf16(2*_),this.dyn_dtree=new a.Buf16(2*(2*v+1)),this.bl_tree=new a.Buf16(2*(2*w+1)),M(this.dyn_ltree),M(this.dyn_dtree),M(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(C+1),this.heap=new a.Buf16(2*y+1),M(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*y+1),M(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?A:x,e.adler=2===t.wrap?0:1,t.last_flush=l,i._tr_init(t),d):D(e,h)}function H(e){var t=Z(e);return t===d&&function(e){e.window_size=2*e.w_size,M(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=k-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,r,n,i,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),i<1||b<i||r!==g||n<8||15<n||t<0||9<t||o<0||p<o)return D(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=i+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+k-1)/k),c.window=new a.Buf8(2*c.w_size),c.head=new a.Buf16(c.hash_size),c.prev=new a.Buf16(c.w_size),c.lit_bufsize=1<<i+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new a.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,H(e)}n=[new W(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 T;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,B(e,!1),0===e.strm.avail_out))return T;if(e.strstart-e.block_start>=e.w_size-E&&(B(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(B(e,!0),0===e.strm.avail_out?I:P):(e.strstart>e.block_start&&(B(e,!1),e.strm.avail_out),T)})),new W(4,4,8,4,U),new W(4,5,16,8,U),new W(4,6,32,32,U),new W(4,4,16,16,q),new W(8,16,32,32,q),new W(8,16,128,128,q),new W(8,32,128,256,q),new W(32,128,258,1024,q),new W(32,258,258,4096,q)],r.deflateInit=function(e,t){return G(e,t,g,15,8,0)},r.deflateInit2=G,r.deflateReset=H,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,a,o,c;if(!e||!e.state||5<t||t<0)return e?D(e,h):h;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||666===a.status&&t!==u)return D(e,0===e.avail_out?-5:h);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===A)if(2===a.wrap)e.adler=0,L(a,31),L(a,139),L(a,8),a.gzhead?(L(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),L(a,255&a.gzhead.time),L(a,a.gzhead.time>>8&255),L(a,a.gzhead.time>>16&255),L(a,a.gzhead.time>>24&255),L(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),L(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(L(a,255&a.gzhead.extra.length),L(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=s(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(L(a,0),L(a,0),L(a,0),L(a,0),L(a,0),L(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),L(a,3),a.status=x);else{var f=g+(a.w_bits-8<<4)<<8;f|=(2<=a.strategy||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(f|=32),f+=31-f%31,a.status=x,j(a,f),0!==a.strstart&&(j(a,e.adler>>>16),j(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(o=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),N(e),o=a.pending,a.pending!==a.pending_buf_size));)L(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),N(e),o=a.pending,a.pending===a.pending_buf_size)){c=1;break}c=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,L(a,c)}while(0!==c);a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===c&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),N(e),o=a.pending,a.pending===a.pending_buf_size)){c=1;break}c=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,L(a,c)}while(0!==c);a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===c&&(a.status=103)}else a.status=103;if(103===a.status&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&N(e),a.pending+2<=a.pending_buf_size&&(L(a,255&e.adler),L(a,e.adler>>8&255),e.adler=0,a.status=x)):a.status=x),0!==a.pending){if(N(e),0===e.avail_out)return a.last_flush=-1,d}else if(0===e.avail_in&&R(t)<=R(r)&&t!==u)return D(e,-5);if(666===a.status&&0!==e.avail_in)return D(e,-5);if(0!==e.avail_in||0!==a.lookahead||t!==l&&666!==a.status){var p=2===a.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(F(e),0===e.lookahead)){if(t===l)return T;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(B(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(B(e,!0),0===e.strm.avail_out?I:P):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?T:O}(a,t):3===a.strategy?function(e,t){for(var r,n,a,o,s=e.window;;){if(e.lookahead<=S){if(F(e),e.lookahead<=S&&t===l)return T;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=k&&0<e.strstart&&(n=s[a=e.strstart-1])===s[++a]&&n===s[++a]&&n===s[++a]){o=e.strstart+S;do{}while(n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&a<o);e.match_length=S-(o-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=k?(r=i._tr_tally(e,1,e.match_length-k),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(B(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(B(e,!0),0===e.strm.avail_out?I:P):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?T:O}(a,t):n[a.level].func(a,t);if(p!==I&&p!==P||(a.status=666),p===T||p===I)return 0===e.avail_out&&(a.last_flush=-1),d;if(p===O&&(1===t?i._tr_align(a):5!==t&&(i._tr_stored_block(a,0,0,!1),3===t&&(M(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),N(e),0===e.avail_out))return a.last_flush=-1,d}return t!==u?d:a.wrap<=0?1:(2===a.wrap?(L(a,255&e.adler),L(a,e.adler>>8&255),L(a,e.adler>>16&255),L(a,e.adler>>24&255),L(a,255&e.total_in),L(a,e.total_in>>8&255),L(a,e.total_in>>16&255),L(a,e.total_in>>24&255)):(j(a,e.adler>>>16),j(a,65535&e.adler)),N(e),0<a.wrap&&(a.wrap=-a.wrap),0!==a.pending?d:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==A&&69!==t&&73!==t&&91!==t&&103!==t&&t!==x&&666!==t?D(e,h):(e.state=null,t===x?D(e,-3):d):h},r.deflateSetDictionary=function(e,t){var r,n,i,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!==A||r.lookahead)return h;for(1===s&&(e.adler=o(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(M(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new a.Buf8(r.w_size),a.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>=k;){for(n=r.strstart,i=r.lookahead-(k-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+k-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=k-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=k-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,a,i,o,s,c,l,u,d,h,f,p,m,g,b,y,v,w,_,C,k,S,E,A;r=e.state,n=e.next_in,E=e.input,a=n+(e.avail_in-5),i=e.next_out,A=e.output,o=i-(t-e.avail_out),s=i+(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,y=(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>>>=w=v>>>24,p-=w,0===(w=v>>>16&255))A[i++]=65535&v;else{if(!(16&w)){if(0==(64&w)){v=m[(65535&v)+(f&(1<<w)-1)];continue t}if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}_=65535&v,(w&=15)&&(p<w&&(f+=E[n++]<<p,p+=8),_+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=E[n++]<<p,p+=8,f+=E[n++]<<p,p+=8),v=g[f&y];r:for(;;){if(f>>>=w=v>>>24,p-=w,!(16&(w=v>>>16&255))){if(0==(64&w)){v=g[(65535&v)+(f&(1<<w)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(C=65535&v,p<(w&=15)&&(f+=E[n++]<<p,(p+=8)<w&&(f+=E[n++]<<p,p+=8)),c<(C+=f&(1<<w)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=w,p-=w,(w=i-o)<C){if(u<(w=C-w)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(S=h,(k=0)===d){if(k+=l-w,w<_){for(_-=w;A[i++]=h[k++],--w;);k=i-C,S=A}}else if(d<w){if(k+=l+d-w,(w-=d)<_){for(_-=w;A[i++]=h[k++],--w;);if(k=0,d<_){for(_-=w=d;A[i++]=h[k++],--w;);k=i-C,S=A}}}else if(k+=d-w,w<_){for(_-=w;A[i++]=h[k++],--w;);k=i-C,S=A}for(;2<_;)A[i++]=S[k++],A[i++]=S[k++],A[i++]=S[k++],_-=3;_&&(A[i++]=S[k++],1<_&&(A[i++]=S[k++]))}else{for(k=i-C;A[i++]=A[k++],A[i++]=A[k++],A[i++]=A[k++],2<(_-=3););_&&(A[i++]=A[k++],1<_&&(A[i++]=A[k++]))}break}}break}}while(n<a&&i<s);n-=_=p>>3,f&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<a?a-n+5:5-(n-a),e.avail_out=i<s?s-i+257:257-(i-s),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){"use strict";var n=e("../utils/common"),a=e("./adler32"),i=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 y(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,y(e))):d}function w(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 _,C,k=!0;function S(e){if(k){var t;for(_=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,_,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}),k=!1}e.lencode=_,e.lenbits=9,e.distcode=C,e.distbits=5}function E(e,t,r,a){var i,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)),a>=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a<(i=o.wsize-o.wnext)&&(i=a),n.arraySet(o.window,t,r-a,i,o.wnext),(a-=i)?(n.arraySet(o.window,t,r-a,a,0),o.wnext=a,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}r.inflateReset=y,r.inflateReset2=v,r.inflateResetKeep=b,r.inflateInit=function(e){return w(e,15)},r.inflateInit2=w,r.inflate=function(e,t){var r,f,p,g,b,y,v,w,_,C,k,A,x,T,O,I,P,D,R,M,N,B,L,j,z=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,y=e.avail_in,w=r.hold,_=r.bits,C=y,k=v,B=u;e:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}if(2&r.wrap&&35615===w){F[r.check=0]=255&w,F[1]=w>>>8&255,r.check=i(r.check,F,2,0),_=w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",r.mode=30;break}if(_-=4,N=8+(15&(w>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<N,e.adler=r.check=1,r.mode=512&w?10:12,_=w=0;break;case 2:for(;_<16;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}if(r.flags=w,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=w>>8&1),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=i(r.check,F,2,0)),_=w=0,r.mode=3;case 3:for(;_<32;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,F[2]=w>>>16&255,F[3]=w>>>24&255,r.check=i(r.check,F,4,0)),_=w=0,r.mode=4;case 4:for(;_<16;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=i(r.check,F,2,0)),_=w=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=i(r.check,F,2,0)),_=w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(y<(A=r.length)&&(A=y),A&&(r.head&&(N=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,A,N)),512&r.flags&&(r.check=i(r.check,f,A,g)),y-=A,g+=A,r.length-=A),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break e;for(A=0;N=f[g+A++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N)),N&&A<y;);if(512&r.flags&&(r.check=i(r.check,f,A,g)),y-=A,g+=A,N)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===y)break e;for(A=0;N=f[g+A++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N)),N&&A<y;);if(512&r.flags&&(r.check=i(r.check,f,A,g)),y-=A,g+=A,N)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}if(w!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}_=w=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(;_<32;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}e.adler=r.check=m(w),_=w=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=y,r.hold=w,r.bits=_,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(S(r),r.mode=20,6!==t)break;w>>>=2,_-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&w,_=w=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(A=r.length){if(y<A&&(A=y),v<A&&(A=v),0===A)break e;n.arraySet(p,f,g,A,b),y-=A,g+=A,v-=A,b+=A,r.length-=A;break}r.mode=12;break;case 17:for(;_<14;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=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(;_<3;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}r.lens[U[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,L={bits:r.lenbits},B=s(0,r.lens,0,19,r.lencode,0,r.work,L),r.lenbits=L.bits,B){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(;I=(z=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,P=65535&z,!((O=z>>>24)<=_);){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}if(P<16)w>>>=O,_-=O,r.lens[r.have++]=P;else{if(16===P){for(j=O+2;_<j;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}if(w>>>=O,_-=O,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}N=r.lens[r.have-1],A=3+(3&w),w>>>=2,_-=2}else if(17===P){for(j=O+3;_<j;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}_-=O,N=0,A=3+(7&(w>>>=O)),w>>>=3,_-=3}else{for(j=O+7;_<j;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}_-=O,N=0,A=11+(127&(w>>>=O)),w>>>=7,_-=7}if(r.have+A>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;A--;)r.lens[r.have++]=N}}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,L={bits:r.lenbits},B=s(c,r.lens,0,r.nlen,r.lencode,0,r.work,L),r.lenbits=L.bits,B){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,L={bits:r.distbits},B=s(l,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,L),r.distbits=L.bits,B){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<=y&&258<=v){e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=y,r.hold=w,r.bits=_,o(e,k),b=e.next_out,p=e.output,v=e.avail_out,g=e.next_in,f=e.input,y=e.avail_in,w=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;I=(z=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,P=65535&z,!((O=z>>>24)<=_);){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}if(I&&0==(240&I)){for(D=O,R=I,M=P;I=(z=r.lencode[M+((w&(1<<D+R)-1)>>D)])>>>16&255,P=65535&z,!(D+(O=z>>>24)<=_);){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}w>>>=D,_-=D,r.back+=D}if(w>>>=O,_-=O,r.back+=O,r.length=P,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=12;break}if(64&I){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(j=r.extra;_<j;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(z=r.distcode[w&(1<<r.distbits)-1])>>>16&255,P=65535&z,!((O=z>>>24)<=_);){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}if(0==(240&I)){for(D=O,R=I,M=P;I=(z=r.distcode[M+((w&(1<<D+R)-1)>>D)])>>>16&255,P=65535&z,!(D+(O=z>>>24)<=_);){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}w>>>=D,_-=D,r.back+=D}if(w>>>=O,_-=O,r.back+=O,64&I){e.msg="invalid distance code",r.mode=30;break}r.offset=P,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(j=r.extra;_<j;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=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(A=k-v,r.offset>A){if((A=r.offset-A)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}x=A>r.wnext?(A-=r.wnext,r.wsize-A):r.wnext-A,A>r.length&&(A=r.length),T=r.window}else T=p,x=b-r.offset,A=r.length;for(v<A&&(A=v),v-=A,r.length-=A;p[b++]=T[x++],--A;);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(;_<32;){if(0===y)break e;y--,w|=f[g++]<<_,_+=8}if(k-=v,e.total_out+=k,r.total+=k,k&&(e.adler=r.check=r.flags?i(r.check,p,k,b-k):a(r.check,p,k,b-k)),k=v,(r.flags?w:m(w))!==r.check){e.msg="incorrect data check",r.mode=30;break}_=w=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===y)break e;y--,w+=f[g++]<<_,_+=8}if(w!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}_=w=0}r.mode=29;case 29:B=1;break e;case 30:B=-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=y,r.hold=w,r.bits=_,(r.wsize||k!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&E(e,e.output,e.next_out,k-e.avail_out)?(r.mode=31,-4):(C-=e.avail_in,k-=e.avail_out,e.total_in+=C,e.total_out+=k,r.total+=k,r.wrap&&k&&(e.adler=r.check=r.flags?i(r.check,p,k,e.next_out-k):a(r.check,p,k,e.next_out-k)),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===k||4===t)&&B===u&&(B=-5),B)},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&&a(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"),a=[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],i=[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,y,v,w,_,C=h.bits,k=0,S=0,E=0,A=0,x=0,T=0,O=0,I=0,P=0,D=0,R=null,M=0,N=new n.Buf16(16),B=new n.Buf16(16),L=null,j=0;for(k=0;k<=15;k++)N[k]=0;for(S=0;S<c;S++)N[t[r+S]]++;for(x=C,A=15;1<=A&&0===N[A];A--);if(A<x&&(x=A),0===A)return l[u++]=20971520,l[u++]=20971520,h.bits=1,0;for(E=1;E<A&&0===N[E];E++);for(x<E&&(x=E),k=I=1;k<=15;k++)if(I<<=1,(I-=N[k])<0)return-1;if(0<I&&(0===e||1!==A))return-1;for(B[1]=0,k=1;k<15;k++)B[k+1]=B[k]+N[k];for(S=0;S<c;S++)0!==t[r+S]&&(d[B[t[r+S]]++]=S);if(y=0===e?(R=L=d,19):1===e?(R=a,M-=257,L=i,j-=257,256):(R=o,L=s,-1),k=E,b=u,O=S=D=0,m=-1,g=(P=1<<(T=x))-1,1===e&&852<P||2===e&&592<P)return 1;for(;;){for(v=k-O,_=d[S]<y?(w=0,d[S]):d[S]>y?(w=L[j+d[S]],R[M+d[S]]):(w=96,0),f=1<<k-O,E=p=1<<T;l[b+(D>>O)+(p-=f)]=v<<24|w<<16|_,0!==p;);for(f=1<<k-1;D&f;)f>>=1;if(0!==f?(D&=f-1,D+=f):D=0,S++,0==--N[k]){if(k===A)break;k=t[r+d[S]]}if(x<k&&(D&g)!==m){for(0===O&&(O=x),b+=E,I=1<<(T=k-O);T+O<A&&!((I-=N[T+O])<=0);)T++,I<<=1;if(P+=1<<T,1===e&&852<P||2===e&&592<P)return 1;l[m=D&g]=x<<24|T<<16|b-u}}return 0!==D&&(l[b+D]=k-O<<24|64<<16),h.bits=x,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"),a=0,i=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,y=16,v=17,w=18,_=[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],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[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 A=new Array(2*d);o(A);var x=new Array(512);o(x);var T=new Array(256);o(T);var O=new Array(c);o(O);var I,P,D,R=new Array(d);function M(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}function N(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function B(e){return e<256?x[e]:x[256+(e>>>7)]}function L(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function j(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<<e.bi_valid&65535,L(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 z(e,t,r){j(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,a,i=new Array(p+1),o=0;for(n=1;n<=p;n++)i[n]=o=o+r[n-1]<<1;for(a=0;a<=t;a++){var s=e[2*a+1];0!==s&&(e[2*a]=F(i[s]++,s))}}function q(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 W(e){8<e.bi_valid?L(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 a=2*t,i=2*r;return e[a]<e[i]||e[a]===e[i]&&n[t]<=n[r]}function Z(e,t,r){for(var n=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&$(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!$(t,n,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=n}function H(e,t,r){var n,a,i,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],a=e.pending_buf[e.l_buf+s],s++,0===n?z(e,a,t):(z(e,(i=T[a])+l+1,t),0!==(o=_[i])&&j(e,a-=O[i],o),z(e,i=B(--n),r),0!==(o=C[i])&&j(e,n-=R[i],o)),s<e.last_lit;);z(e,b,t)}function G(e,t){var r,n,a,i=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!==i[2*r]?(e.heap[++e.heap_len]=l=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(a=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[a]=0,e.opt_len--,s&&(e.static_len-=o[2*a+1]);for(t.max_code=l,r=e.heap_len>>1;1<=r;r--)Z(e,i,r);for(a=c;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Z(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*a]=i[2*r]+i[2*n],e.depth[a]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=a,e.heap[1]=a++,Z(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,a,i,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(i=0;i<=p;i++)e.bl_count[i]=0;for(c[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<f;r++)g<(i=c[2*c[2*(n=e.heap[r])+1]+1]+1)&&(i=g,b++),c[2*n+1]=i,l<n||(e.bl_count[i]++,o=0,m<=n&&(o=h[n-m]),s=c[2*n],e.opt_len+=s*(i+o),d&&(e.static_len+=s*(u[2*n+1]+o)));if(0!==b){do{for(i=g-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(i=g;0!==i;i--)for(n=e.bl_count[i];0!==n;)l<(a=e.heap[--r])||(c[2*a+1]!==i&&(e.opt_len+=(i-c[2*a+1])*c[2*a],c[2*a+1]=i),n--)}}(e,t),U(i,l,e.bl_count)}function V(e,t,r){var n,a,i=-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++)a=o,o=t[2*(n+1)+1],++s<c&&a===o||(s<l?e.bl_tree[2*a]+=s:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[2*y]++):s<=10?e.bl_tree[2*v]++:e.bl_tree[2*w]++,i=a,l=(s=0)===o?(c=138,3):a===o?(c=6,3):(c=7,4))}function K(e,t,r){var n,a,i=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),n=0;n<=r;n++)if(a=o,o=t[2*(n+1)+1],!(++s<c&&a===o)){if(s<l)for(;z(e,a,e.bl_tree),0!=--s;);else 0!==a?(a!==i&&(z(e,a,e.bl_tree),s--),z(e,y,e.bl_tree),j(e,s-3,2)):s<=10?(z(e,v,e.bl_tree),j(e,s-3,3)):(z(e,w,e.bl_tree),j(e,s-11,7));i=a,l=(s=0)===o?(c=138,3):a===o?(c=6,3):(c=7,4)}}o(R);var Q=!1;function Y(e,t,r,a){j(e,(s<<1)+(a?1:0),3),function(e,t,r,a){W(e),a&&(L(e,r),L(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){Q||(function(){var e,t,r,n,a,i=new Array(p+1);for(n=r=0;n<c-1;n++)for(O[n]=r,e=0;e<1<<_[n];e++)T[r++]=n;for(T[r-1]=n,n=a=0;n<16;n++)for(R[n]=a,e=0;e<1<<C[n];e++)x[a++]=n;for(a>>=7;n<d;n++)for(R[n]=a<<7,e=0;e<1<<C[n]-7;e++)x[256+a++]=n;for(t=0;t<=p;t++)i[t]=0;for(e=0;e<=143;)E[2*e+1]=8,e++,i[8]++;for(;e<=255;)E[2*e+1]=9,e++,i[9]++;for(;e<=279;)E[2*e+1]=7,e++,i[7]++;for(;e<=287;)E[2*e+1]=8,e++,i[8]++;for(U(E,u+1,i),e=0;e<d;e++)A[2*e+1]=5,A[2*e]=F(e,5);I=new M(E,_,l+1,u,p),P=new M(A,C,0,d,p),D=new M(new Array(0),k,0,h,g)}(),Q=!0),e.l_desc=new N(e.dyn_ltree,I),e.d_desc=new N(e.dyn_dtree,P),e.bl_desc=new N(e.bl_tree,D),e.bi_buf=0,e.bi_valid=0,q(e)},r._tr_stored_block=Y,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 a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return i;for(t=32;t<l;t++)if(0!==e.dyn_ltree[2*t])return i;return a}(e)),G(e,e.l_desc),G(e,e.d_desc),c=function(e){var t;for(V(e,e.dyn_ltree,e.l_desc.max_code),V(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=h-1;3<=t&&0===e.bl_tree[2*S[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?Y(e,t,r,n):4===e.strategy||s===o?(j(e,2+(n?1:0),3),H(e,E,A)):(j(e,4+(n?1:0),3),function(e,t,r,n){var a;for(j(e,t-257,5),j(e,r-1,5),j(e,n-4,4),a=0;a<n;a++)j(e,e.bl_tree[2*S[a]+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),H(e,e.dyn_ltree,e.dyn_dtree)),q(e),n&&W(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*(T[r]+l+1)]++,e.dyn_dtree[2*B(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){j(e,2,3),z(e,b,E),function(e){16===e.bi_valid?(L(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,i,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){a.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?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.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 a={callback:e,args:t};return c[s]=a,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),a=r(23906);function i(e){void 0===e&&(e=n.t);var t=e===n.t?a.P:(0,a.N)(e);return function(){return t().dispatch}}var o=i()},26926:(e,t,r)=>{"use strict";r.d(t,{n:()=>i});var n=r(98173),a=r(45247);function i(){return(0,n.useContext)(a.t)}},91270:(e,t,r)=>{"use strict";r.d(t,{d:()=>u});var n=r(98173),a=r(26926),i=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?a.n:function(){return(0,n.useContext)(e)};return function(e,r){void 0===r&&(r=c);var a=t(),s=function(e,t,r,a){var s,c=(0,n.useReducer)((function(e){return e+1}),0)[1],l=(0,n.useMemo)((function(){return(0,i.K)(r,a)}),[r,a]),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,a.store,a.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),a=r(62272),i=r(80699);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,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}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,a.$P)(p,{relative:c}),y=function(e,t){let{target:r,replace:o,state:s,preventScrollReset:c,relative:l}=void 0===t?{}:t,u=(0,a.Zp)(),d=(0,a.zy)(),h=(0,a.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,i.AO)(d)===(0,i.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||y(e)},ref:t,target:f}))}));var d,h;function f(e){let t=n.useRef(c(e)),r=(0,a.zy)(),i=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,a.Zp)(),s=n.useCallback(((e,t)=>{const r=c("function"===typeof e?e(i):e);o("?"+r,t)}),[o,i]);return[i,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(d||(d={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(h||(h={}))},80699:(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 a;r.d(t,{AO:()=>c,Gh:()=>x,HS:()=>T,Rr:()=>l,V1:()=>S,pX:()=>M,pb:()=>k,rc:()=>a,sC:()=>i,tH:()=>D,ue:()=>d}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));function i(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:i=!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=a.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 a=s(t?f().pathname:"/",e,r,n);return o("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}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=a.Push;let n=p(e,r);l+=1,t.splice(l,t.length,n),i&&d&&d({action:u,location:n})},replace(e,r){u=a.Replace;let n=p(e,r);t[l]=n,i&&d&&d({action:u,location:n})},go(e){u=a.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,a){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||a||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=k(("string"===typeof t?l(t):t).pathname||"/",r);if(null==n)return null;let a=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)))))}(a);let i=null;for(let o=0;null==i&&o<a.length;++o)i=_(a[o],n);return i}function h(e,t,r,n){return void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n=""),e.forEach(((e,a)=>{let i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(S(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let o=T([n,i.relativePath]),s=r.concat(i);e.children&&e.children.length>0&&(S(!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:w(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,y=-2,v=e=>"*"===e;function w(e,t){let r=e.split("/"),n=r.length;return r.some(v)&&(n+=y),t&&(n+=m),r.filter((e=>!v(e))).reduce(((e,t)=>e+(f.test(t)?p:""===t?g:b)),n)}function _(e,t){let{routesMeta:r}=e,n={},a="/",i=[];for(let o=0;o<r.length;++o){let e=r[o],s=o===r.length-1,c="/"===a?t:t.slice(a.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;i.push({params:n,pathname:T([a,l.pathname]),pathnameBase:O(T([a,l.pathnameBase])),route:u}),"/"!==l.pathnameBase&&(a=T([a,l.pathnameBase]))}return i}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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(n.push(t),"([^\\/]+)")));e.endsWith("*")?(n.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let i=new RegExp(a,t?void 0:"i");return[i,n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce(((e,t,r)=>{if("*"===t){let e=s[r]||"";o=i.slice(0,i.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:i,pathnameBase:o,pattern:e}}function k(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 S(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 A(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 x(e,t,r,a){let i;void 0===a&&(a=!1),"string"===typeof e?i=l(e):(i=n({},e),S(!i.pathname||!i.pathname.includes("?"),A("?","pathname","search",i)),S(!i.pathname||!i.pathname.includes("#"),A("#","pathname","hash",i)),S(!i.search||!i.search.includes("#"),A("#","search","hash",i)));let o,s=""===e||""===i.pathname,c=s?"/":i.pathname;if(a||null==c)o=r;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"===typeof e?l(e):e,i=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:i,search:I(n),hash:P(a)}}(i,o),d=c&&"/"!==c&&c.endsWith("/"),h=(s||"."===c)&&r.endsWith("/");return u.pathname.endsWith("/")||!d&&!h||(u.pathname+="/"),u}const T=e=>e.join("/").replace(/\/\/+/g,"/"),O=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",P=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class D extends Error{}class R{constructor(e,t,r){this.status=e,this.statusText=t||"",this.data=r}}function M(e){return e instanceof R}},62272:(e,t,r)=>{"use strict";var n;r.d(t,{$P:()=>w,BV:()=>U,C5:()=>L,KC:()=>A,Zp:()=>S,fS:()=>B,g:()=>x,qh:()=>z,sv:()=>j,x$:()=>T,zy:()=>C});var a=r(80699),i=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(i,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(i,2))).useSyncExternalStore;const f=i.createContext(null);const p=i.createContext(null);const m=i.createContext(null);const g=i.createContext(null);const b=i.createContext(null);const y=i.createContext({outlet:null,matches:[]});const v=i.createContext(null);function w(e,t){let{relative:r}=void 0===t?{}:t;_()||(0,a.V1)(!1);let{basename:n,navigator:o}=i.useContext(g),{hash:s,pathname:c,search:l}=T(e,{relative:r}),u=c;return"/"!==n&&(u="/"===c?n:(0,a.HS)([n,c])),o.createHref({pathname:u,search:l,hash:s})}function _(){return null!=i.useContext(b)}function C(){return _()||(0,a.V1)(!1),i.useContext(b).location}function k(e){return e.filter(((t,r)=>0===r||!t.route.index&&t.pathnameBase!==e[r-1].pathnameBase))}function S(){_()||(0,a.V1)(!1);let{basename:e,navigator:t}=i.useContext(g),{matches:r}=i.useContext(y),{pathname:n}=C(),o=JSON.stringify(k(r).map((e=>e.pathnameBase))),s=i.useRef(!1);return i.useEffect((()=>{s.current=!0})),i.useCallback((function(r,i){if(void 0===i&&(i={}),!s.current)return;if("number"===typeof r)return void t.go(r);let c=(0,a.Gh)(r,JSON.parse(o),n,"path"===i.relative);"/"!==e&&(c.pathname="/"===c.pathname?e:(0,a.HS)([e,c.pathname])),(i.replace?t.replace:t.push)(c,i.state,i)}),[e,t,o,n])}const E=i.createContext(null);function A(){return i.useContext(E)}function x(){let{matches:e}=i.useContext(y),t=e[e.length-1];return t?t.params:{}}function T(e,t){let{relative:r}=void 0===t?{}:t,{matches:n}=i.useContext(y),{pathname:o}=C(),s=JSON.stringify(k(n).map((e=>e.pathnameBase)));return i.useMemo((()=>(0,a.Gh)(e,JSON.parse(s),o,"path"===r)),[e,s,o,r])}function O(){let e=function(){var e;let t=i.useContext(v),r=N(M.UseRouteError),n=i.useContext(y),o=n.matches[n.matches.length-1];if(t)return t;return n||(0,a.V1)(!1),!o.route.id&&(0,a.V1)(!1),null==(e=r.errors)?void 0:e[o.route.id]}(),t=(0,a.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 i.createElement(i.Fragment,null,i.createElement("h2",null,"Unhandled Thrown Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:o},r):null,i.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",i.createElement("code",{style:s},"errorElement")," props on\xa0",i.createElement("code",{style:s},"<Route>")))}class I extends i.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?i.createElement(v.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function P(e){let{routeContext:t,match:r,children:n}=e,a=i.useContext(f);return a&&r.route.errorElement&&(a._deepestRenderedBoundaryId=r.route.id),i.createElement(y.Provider,{value:t},n)}function D(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,a.V1)(!1),n=n.slice(0,Math.min(n.length,e+1))}return n.reduceRight(((e,a,s)=>{let c=a.route.id?null==o?void 0:o[a.route.id]:null,l=r?a.route.errorElement||i.createElement(O,null):null,u=()=>i.createElement(P,{match:a,routeContext:{outlet:e,matches:t.concat(n.slice(0,s+1))}},c?l:void 0!==a.route.element?a.route.element:e);return r&&(a.route.errorElement||0===s)?i.createElement(I,{location:r.location,component:l,error:c,children:u()}):u()}),null)}var R,M;function N(e){let t=i.useContext(m);return t||(0,a.V1)(!1),t}!function(e){e.UseRevalidator="useRevalidator"}(R||(R={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(M||(M={}));function B(e){let{basename:t,children:r,initialEntries:n,initialIndex:o}=e,s=i.useRef();null==s.current&&(s.current=(0,a.sC)({initialEntries:n,initialIndex:o,v5Compat:!0}));let c=s.current,[l,u]=i.useState({action:c.action,location:c.location});return i.useLayoutEffect((()=>c.listen(u)),[c]),i.createElement(F,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:c})}function L(e){let{to:t,replace:r,state:n,relative:o}=e;_()||(0,a.V1)(!1);let s=i.useContext(m),c=S();return i.useEffect((()=>{s&&"idle"!==s.navigation.state||c(t,{replace:r,state:n,relative:o})})),null}function j(e){return function(e){let t=i.useContext(y).outlet;return t?i.createElement(E.Provider,{value:e},t):t}(e.context)}function z(e){(0,a.V1)(!1)}function F(e){let{basename:t="/",children:r=null,location:n,navigationType:o=a.rc.Pop,navigator:s,static:c=!1}=e;_()&&(0,a.V1)(!1);let l=t.replace(/^\/*/,"/"),u=i.useMemo((()=>({basename:l,navigator:s,static:c})),[l,s,c]);"string"===typeof n&&(n=(0,a.Rr)(n));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:m="default"}=n,y=i.useMemo((()=>{let e=(0,a.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==y?null:i.createElement(g.Provider,{value:u},i.createElement(b.Provider,{children:r,value:{location:y,navigationType:o}}))}function U(e){let{children:t,location:r}=e,n=i.useContext(p);return function(e,t){_()||(0,a.V1)(!1);let r=i.useContext(m),{matches:n}=i.useContext(y),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,a.Rr)(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||(0,a.V1)(!1),u=e}else u=d;let f=u.pathname||"/",p="/"===l?f:f.slice(l.length)||"/",g=(0,a.ue)(e,{pathname:p}),v=D(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:(0,a.HS)([l,e.pathname]),pathnameBase:"/"===e.pathnameBase?l:(0,a.HS)([l,e.pathnameBase])}))),n,r||void 0);return t?i.createElement(b.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:a.rc.Pop}},v):v}(n&&!t?n.router.routes:W(t),r)}var q;!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(q||(q={}));new Promise((()=>{}));i.Component;function W(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,((e,n)=>{if(!i.isValidElement(e))return;if(e.type===i.Fragment)return void r.push.apply(r,W(e.props.children,t));e.type!==z&&(0,a.V1)(!1),e.props.index&&e.props.children&&(0,a.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=W(e.props.children,o)),r.push(s)})),r}},72510:(e,t,r)=>{"use strict";r.d(t,{A6:()=>l,AH:()=>m,BF:()=>d,Cn:()=>b,K8:()=>p,Lv:()=>C,M6:()=>u,ST:()=>h,Sb:()=>y,TM:()=>a,b6:()=>S,d1:()=>A,ih:()=>w,ir:()=>_,rq:()=>k,uE:()=>c,uL:()=>E,vq:()=>s,wz:()=>f});var n=r(35574);function a(e){return"<!DOCTYPE "+e.name+(e.publicId?' PUBLIC "'+e.publicId+'"':"")+(!e.publicId&&e.systemId?" SYSTEM":"")+(e.systemId?' "'+e.systemId+'"':"")+">"}const i=Object.create(null);function o(e,t){const r=i[e]||(i[e]=Object.create(null));let n=r[t];if("boolean"!==typeof n){const a=document.createElement(e)[t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,((e,t)=>t.toUpperCase()))];n=r[t]="undefined"!==typeof a&&"boolean"!==typeof a}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}function p(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}let m;var g;function b(e){return e.nodeType===Node.COMMENT_NODE}function y(e){const t=e.getRootNode()||window.document;return function(e){return e&&!!e.host&&!!e.mode}(t)?t:null}(g=m||(m={})).isStyleRule=function(e){return"CSSStyleRule"===e.constructor.name},g.isImportRule=function(e){return"CSSImportRule"===e.constructor.name},g.isMediaRule=function(e){return"CSSMediaRule"===e.constructor.name},g.isFontFaceRule=function(e){return"CSSFontFaceRule"===e.constructor.name},g.isPageRule=function(e){return"CSSPageRule"===e.constructor.name},g.isKeyframesRule=function(e){return"CSSKeyframesRule"===e.constructor.name},g.isKeyframeRuleRule=function(e){return"CSSKeyframeRule"===e.constructor.name},g.isNamespaceRule=function(e){return"CSSNamespaceRule"===e.constructor.name},g.isCounterStyleRule=function(e){return"CSSCounterStyleRule"===e.constructor.name},g.isSupportsRule=function(e){return"CSSSupportsRule"===e.constructor.name},g.isFontFeatureValuesRuleRule=function(e){return"CSSFontFeatureValuesRule"===e.constructor.name};const v=/(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\r|\n)*?)((?:<!--)?<!\[endif\]\2>)/gi;function w(e){const t=S(e).matchAll(v);if(t)for(const r of t){const[,e,,t,n]=r;return{open:e,close:n,content:t}}}function _(e){return e.nodeType===Node.TEXT_NODE}function C(e){return"TABLE"===e.tagName}async function k(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 S(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(),a=function(e){const t=e.tagName.toLowerCase();let r="";for(const n of e.attributes){const e=n.name,a=n.value;r+=""!==a||"em"===e||o(t,e)?` ${e}="${a.replaceAll('"',"'")}"`:` ${e}`}return r}(e);return n.n1.has(r.toLowerCase())?"vk-snippet-end"===r?`<${r}${a}/>`:`<${r}${a}>`:h(e)?`<${r}${a}>${e.innerHTML}</${r}>`:`<${r}${a}>${E(e)}</${r}>`}(e);if(f(e))return[...e.childNodes].map((e=>S(e))).join("");if(function(e){return e.nodeType===Node.DOCUMENT_TYPE_NODE}(e))return a(e);const t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function E(e){let t="";for(const r of e.childNodes)t+=S(r);return t}function A(e,t){for(const i of e.childNodes)i.remove();let r=t.find((e=>function(e){return"HTML"===e.tagName}(e))),n=t.find((e=>function(e){return"BODY"===e.tagName}(e))),a=e;r||(r=e.createElement("html"),e.appendChild(r),a=r,n||(n=e.createElement("body"),r.appendChild(n),a=n));for(const i of t)a===e&&_(i)?a.appendChild(e.createComment(`%%%{{{${i.data}}}}%%%`)):a.appendChild(i)}},36434:(e,t,r)=>{"use strict";r.d(t,{$$:()=>d,Os:()=>l});var n=r(80599),a=r(39244),i=r(93607);const o=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"],s=new n.H(o),c=new a.X(s);function l(e,t,r){try{e.setAttribute(t,r)}catch{let n=e.tagName.toLowerCase();"html"===n&&(n="div");const a=`<${n} ${t}="${r}"/>`;let i=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(i instanceof Document)return;i.innerHTML=a;const o=i.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 i.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 i.Z.DOCTYPE:return(new DOMParser).parseFromString(`<!DOCTYPE${e.content}>`,"text/html").doctype;case i.Z.COMMENT:return document.createComment(r||"");case i.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 a=e.attributes[t];try{l(r,t,"string"===typeof a?a:"")}catch(n){}}if(t)for(const t of e.children)r.appendChild(u(t));return r}return document.createTextNode("<");case i.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:()=>T,Sc:()=>x,Nh:()=>k});var n=r(72510),a=r(36434),i=r(44779),o=r(90717);const s="amp-custom";function c(e,t,r){for(const a of t)if(n.AH.isStyleRule(a)){const t=a.selectorText.split(/\+>~/).flatMap((e=>e.trim().split(" ")));if(1===t.length&&t[0].trim().startsWith(".em-"))for(const i of a.style){if("important"===a.style.getPropertyPriority(i))for(const t of e.querySelectorAll(a.selectorText))if((0,n.uE)(t)){const e=t.style;for(const n of[...e])if(n.startsWith(i)){const a=r(n,e.getPropertyValue(n)),i=t.getAttribute("class");t.setAttribute("class",i?`${a} ${i}`:a),e.removeProperty(n)}}}}else n.AH.isMediaRule(a)&&c(e,a.cssRules,r)}function l(e,t){const r=t.sheet;if(r){const a=new Set;c(e,r.cssRules,((e,i)=>{const o=function(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}(e,i),s=[...r.cssRules],c=`.${o} { ${e}: ${i} }`;return s.find((e=>n.AH.isStyleRule(e)&&e.selectorText===`.${o}`))||a.has(c)||(a.add(c),t.innerHTML=`\n.${o} { ${e}: ${i} };\n${t.innerHTML}`),o})),a.size&&(t.innerHTML=`\n${[...a].join("\n")};\n${t.innerHTML}`)}else;const a=t.innerHTML,i=a.replace(/!important/g,"");a!==i&&(t.innerHTML=i)}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"),i=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!==i&&void 0!==i&&i.height?`${parseInt(i.height)}`:"",u=null!==i&&void 0!==i&&i.width?`${parseInt(i.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,a.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,...i}=(0,o.gu)(e),s="responsive"===r;for(const o of Object.keys(i))(0,a.Os)(t,o,i[o]);return s&&(t.style.maxWidth=i.width||"0px",t.style.width="100%"),t}var p=r(46496),m=r(16341),g=r(1511);var b=r(9008);const y=new Map;const v=new Map;const w="$GLOBAL_ATTRS",_=new Map;async function C(){if(!_.size){var e;const t=null===(e=(await(0,b.F)()).attrLists.find((e=>e.name===w)))||void 0===e?void 0:e.attrs;if(t)for(const e of t)_.set(e.name,e)}return _}function k(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 S(e,t,r){var a,i,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!==(a=e.textContent)&&void 0!==a&&a.trim()||null!==(i=e.nextSibling)&&void 0!==i&&null!==(o=i.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--)S(n[e],t,r)}}async function E(e,t){const r=new Set,c=t.commit,u=e=>t.replaceSelectors(e.toLowerCase());if(t.replaceImages&&await async function(e,t){const r=[...e.querySelectorAll("img")],n=[];for(const i of r)n.push(h(i).then((e=>[i,e]),(()=>[i,void 0])));const a=[...e.querySelectorAll("picture")];for(const i of a){const e=i.querySelector("img");e?n.push(h(e).then((e=>[i,e]),(()=>[i,void 0]))):n.push([i,void 0])}if(n.length){const e=await Promise.all(n);for(const[t,r]of e)r?t.replaceWith(r):t.remove();null===t||void 0===t||t()}}(e,c),t.injectExtensions){const E=t.replaceSelectors(g.Vq);if(!e.querySelector(E)){const A=t.createElementFn("script");A.setAttribute("src",g.zq),A.setAttribute("async","");(0,o.xy)(e).appendChild(A),null===c||void 0===c||c()}}t.injectRequiredTags&&((0,m.y)(e,t.createElementFn,u),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,i.R)(e),(0,p.C)(e),null===c||void 0===c||c()),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 a=[];for(const i of n)a.push(i.innerHTML),i.remove();if(a.length){const r=e.createElement("style");r.innerHTML=`\n${a.join("")}\n`,r.setAttribute(s,""),t.append(r),l(e,r)}for(const i of r)i.remove()}(e),null===c||void 0===c||c());const f=await(0,b.F)(),w=await async function(){if(!y.size){const e=await(0,b.F)(),t=e.tags;for(let r=0;r<t.length;r++){const n=t[r],{selector:a,attrs:i,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)))))||[];y.set(a,{...n,priority:r,attrs:new Map([...i,...s].map((e=>[e.name,e])))})}}return y}(),_=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),k=new Map;for(let[x,T]of w)if(!T.deprecation){x=u(x);let O=[...e.querySelectorAll(x)].filter((e=>!k.has(e)));T.unique&&O.length&&(O=[O[0]]),t.injectRequiredTags&&T.required&&!O.length&&(O=[...O,t.createElementFn(T.name)]);for(const I of O){if(t.injectRequiredAttributes&&I.getAttribute("on")&&!I.getAttribute("tabindex")&&I.setAttribute("tabindex","0"),t.removeUnsupportedStyles){let D=!1;for(const R of[...I.classList])R.startsWith("i-amphtml")&&(D=!0,I.classList.remove(R));D&&!I.classList.length&&I.removeAttribute("class")}const P=k.get(I);P&&P.priority>T.priority||k.set(I,T)}}null===c||void 0===c||c();for(let[M,N]of k){if(t.injectExtensions&&N.requiresExtension)for(const j of N.requiresExtension)r.add(j);const B=N.requiredParent?"$ROOT"===N.requiredParent?e:e.querySelector(N.requiredParent):null;!B||M.parentNode&&!t.moveInvalidTagPosition?M.parentNode||e.body.appendChild(M):B!==M.parentNode&&("HEAD"===N.name||(0,n.vq)(B)&&"HEAD"===B.tagName?B.insertBefore(M,B.firstChild):B.appendChild(M)),t.removeUnsupportedTags&&_.delete(M),null===c||void 0===c||c();const L=await C();if(t.removeUnsupportedAttributes||t.injectRequiredAttributes){const z=N.attrs,F=t.injectRequiredAttributes?new Set([...z].map((([e,t])=>t)).filter((e=>e.required&&e.value))):void 0,U=M.getAttributeNames();for(const q of U){const W=z.get(q)||L.get(q);if(W){if("id"===q||"class"===q||"style"===q){null===F||void 0===F||F.delete(W);continue}if(t.removeUnsupportedAttributes){const $=M.getAttribute(q);if(W.value&&W.value.indexOf($)<0){M.removeAttribute(q);continue}if(W.valueRegex){if(!new RegExp(W.valueRegex).test($)){M.removeAttribute(q);continue}}if(W.disallowedValueRegex){if(new RegExp(W.disallowedValueRegex).test($)){M.removeAttribute(q);continue}}const Z=W.valueUrl;if(Z)if(""===$){if(!Z.allowEmpty){M.removeAttribute(q);continue}}else if($.indexOf("\x3c!--")>0&&$.indexOf("--\x3e")>0);else if(!Z.allowRelative){if($.startsWith("#")||$.startsWith("/")){M.removeAttribute(q);continue}{const H=Z.protocol.length?Z.protocol:["https"];let G=$.substring(0,$.indexOf(":"));if(G){if(H.indexOf(G)<0){let V=H[0]+$.substring($.indexOf(":"));if(!URL.canParse(V)){M.removeAttribute(q);continue}(0,a.Os)(M,q,V)}else if(!URL.canParse($)){M.removeAttribute(q);continue}}else{let K=H[0]+$;if(!URL.canParse(K)){M.removeAttribute(q);continue}(0,a.Os)(M,q,K)}}}}null===F||void 0===F||F.delete(W)}else{if("id"===q||"class"===q||"style"===q)continue;t.removeUnsupportedAttributes&&M.removeAttribute(q)}}if(F)for(const Q of F)(0,a.Os)(M,Q.name,Q.value[0])}null===c||void 0===c||c()}t.moveInvalidTagPosition&&(S(e,e.body,u),null===c||void 0===c||c());for(const Y of _)Y.remove();if(null===c||void 0===c||c(),t.removeUnsupportedStyles){const J=e.querySelectorAll("*"),X=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 ee(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=X.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)}null===c||void 0===c||c()}function te(e){return"CSSStyleRule"===e.constructor.name}function re(e){return"CSSMediaRule"===e.constructor.name}function ne(e){const t=e.cssRules;for(let r=t.length-1;r>=0;r--){const n=t[r];te(n)?n.selectorText.indexOf("[")>=0||n.selectorText.indexOf(":")>=0?e.deleteRule(r):(ee(n.style),n.style.cssText||e.deleteRule(r)):re(n)?(ne(n),n.cssRules.length||e.deleteRule(r)):e.deleteRule(r)}}for(const ie of J)if((0,n.uE)(ie)){const oe=ie.getAttribute("style");oe&&(ee(ie.style),ie.style.length?ie.style.cssText!==oe&&ie.setAttribute("style",ie.style.cssText):ie.removeAttribute("style"))}const ae=e.querySelector("style[amp-custom]");if(ae){const se=ae.sheet;se&&(ne(se),ae.innerHTML=[...se.cssRules].map((e=>e.cssText)).join("\n")),null===c||void 0===c||c()}}await async function(e,t,r){for(const{name:i,versions:s}of t){const t=r.replaceSelectors("amp-mustache"===i?`script[async][custom-template='${i}']`:`script[async][custom-element='${i}']`);if(!e.querySelector(t)){const t=(0,o.xy)(e),c=r.createElementFn("script"),l=(n=i,a=s.findLast((e=>"latest"!==e))||"v0",`${g.gP}/${n.toLowerCase()}-${a}.js`);c.setAttribute("async",""),c.setAttribute("amp-mustache"===i?"custom-template":"custom-element",i),c.setAttribute("src",l),t.appendChild(c),t.appendChild(e.createTextNode("\n"))}}var n,a}(e,f.extensions.filter((({name:e})=>r.has(e))),t)}function A(e,t){return Object.keys(t).reduce(((e,r)=>e.replaceAll(r,t[r])),e)}function x(e,t={}){const{correct:r=!0,injectExtensions:n=!0,mappedTags:a={}}=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(a[t.toLowerCase()]||t),replaceSelectors:e=>A(e.toLowerCase(),a),commit:t.commit})}function T(e,t={}){const{correct:r=!0,removeExtensions:a=!0,mappedTags:c={}}=t,l=t.commit,h=t=>e.createElement(c[t.toLowerCase()]||t),p=e=>A(e,c);if(r){!function(e,t){const r=[...e.querySelectorAll("amp-img")];for(const n of r)n.replaceWith(f(n));r.length&&(null===t||void 0===t||t())}(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,i.C)(e);const t=(0,o.ep)(e);t.removeAttribute("\u26a14email"),t.removeAttribute("data-css-strict"),null===l||void 0===l||l()}a&&(!function(e,t){const r=e.querySelectorAll("*"),n=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const i of n){var a;null!==(a=i.getAttribute("src"))&&void 0!==a&&a.startsWith(g.gP)&&i.remove()}for(const i of r)k(i)&&"FORM"!==i.tagName&&i.remove()}(e,{formsAsAmpForms:t.removeExtensions,createElementFn:h,replaceSelectors:p}),null===l||void 0===l||l())}},90121:(e,t,r)=>{"use strict";r.d(t,{D3:()=>d,RS:()=>u});var n=r(2604),a=r(98173),i=r(88296),o=r(81197),s=r(80148),c=r(74568);const l=(0,i.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,a.useEffect)((()=>{const n=r((({id:r,payload:n})=>{r===e&&t(n)}));return()=>n.dispose()}),[r,e,t])}},90614:(e,t,r)=>{"use strict";r.d(t,{Zc:()=>u,_q:()=>d,cZ:()=>c,dB:()=>l,ml:()=>h});var n=r(2604),a=r(88296),i=r(80148),o=r(65470),s=r(98173);function c(e){return(0,a.Q)(e)}function l(e,t){return(0,i.My)(e).getOrCreateInstance(t,(()=>new o.lt))}function u(e,t){return(0,i.My)(e).getOrCreateInstance(t,(()=>new o.lt)).event}function d(e){return h(e).event}function h(e){const t=(0,n.Pj)();return(0,s.useMemo)((()=>l(t,e)),[t,e])}},94779:(e,t,r)=>{"use strict";r.d(t,{qy:()=>D,An:()=>O,T5:()=>W,pH:()=>C,Ay:()=>S,$l:()=>k,SR:()=>F,hs:()=>z,Ce:()=>j,gZ:()=>U,CM:()=>T,PJ:()=>M,bc:()=>P});var n=r(94049),a=r.n(n),i=r(83339),o=r(46805),s=r(72510),c=r(36434),l=r(39218);const u=Symbol("Error");function d(e){return Promise.all(e.map((e=>e instanceof Promise?e.catch((e=>u)):e))).then((e=>e.filter((e=>e!==u))))}var h=r(61631),f=r(72717),p=r(82899),m=r(19581);class g extends h.j{constructor(e){super(),this._commitPromise=void 0,this._mutationCollector=void 0,this._onLostSummaries=e=>{try{this._mutationCollector.stop(),(0,p.f)(e)}finally{this._mutationCollector.start()}},this._mutationCollector=this.addDisposable(new f.R({rootNode:e,oldPreviousSibling:!0})),this._mutationCollector.onLost(this._onLostSummaries)}commit(){if(this._commitPromise)return this._commitPromise;{const e=()=>new Promise((e=>{const t=this._mutationCollector.onMutate((r=>{this._commitPromise=void 0,e(),t.dispose()}));(0,m.A)((()=>{this._commitPromise=void 0,e(),t.dispose()}))}));return this._commitPromise=e().catch((e=>{}))}}}var b=r(1473),y=r(65053);const v=/url(?:\((['|"]?))(.*?\.(png|jpg|gif|jpeg|tiff){1})(?:['|"]?\))/gi,w="data:message/rfc822 eml,";function _(e){return e.replaceAll(/[\\\/:*?"<>|]/g,"_")}async function C(e,t,r,n,a){const i={Subject:e,"X-Unsent":1,"Content-Type":"function"===typeof a?"text/html;charset=utf-8":'multipart/alternative; boundary="boundary-string"'};return`${Object.keys(i).reduce(((e,t)=>`${e}${t}:${i[t]}\n`),w)}\n${"function"===typeof a?await N(t,r,n,a):(await d(Object.keys(a).map((async e=>`\n--boundary-string\nContent-Type: ${e}\n\n${await N(t,r,n,a[e])}\n\n\n`)))).join("")+"----boundary_string--"}`}function k(e,t=!0){const r=e.replace("\\","/").split("/"),n=r[r.length-1];return t?_(n):n}function S(e){const t=e.replace("\\","/").split("/"),r=t[t.length-1],n=r.lastIndexOf("."),a=r.slice(n+1);return-1!==n&&function(e){return!(e.length>8||e.length<1)&&!/[^\x00-\x7F]/.test(e)&&!/[\\\/:*?"<>|&=%]/.test(e)&&!!/[a-zA-Z]/.test(e)&&!/^\d+$/.test(e)}(a)?[_(r.slice(0,n)),a]:[_(r),""]}function E(e){return F(e).then((e=>U(e)))}function A(e,t){const r=document.createElement("iframe");r.style.position="absolute",r.style.left="-10000px",document.body.appendChild(r);const n=new g(r.contentDocument),a=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,c.$$)(e);(0,s.d1)(a,i),n.commit()}catch(i){}return[r,()=>document.body.removeChild(r),n]}function x(e){return e.replace("<script","<___script").replace("<\/script>","</___script>")}const T=new o.uI((e=>{e.escape("<script","<\/script>",(e=>x(e))).unescape("<___script","</___script>",(e=>e.replace("<___script","<script").replace("</___script>","<\/script>"))),e.escape("<script","/>",(e=>x(e))).unescape("<___script","/>",(e=>e.replace("<___script","<script"))),(0,o.Hk)(e)}));async function O(e,t,r){e=T.getEscapedText(e);const[n,a,i]=await A(e,r);try{const r=n.contentDocument,a=r.querySelectorAll("tbody");for(const e of a)e.replaceWith(...e.childNodes);let c;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)}})),i.commit();try{c=await t(r,e,i)}catch(o){}e="string"===typeof c?c:(0,s.b6)(r)}catch(o){}finally{a()}return T.getUnescapedText(e)}function I(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)),""})),d(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 P(e,t,r,n=new Map){await async function(e,t,r=new Map,n){const a=e=>{let n=r.get(e);return n||(n=t(e),r.set(e,n)),n instanceof Promise?n:Promise.resolve(n)};function i(e){return I(e,v,(async(e,t="",r)=>`url(${t}${await a(r)}${t})`))}async function o(e){const t=e.getAttribute("style");if(t){t!==await i(t)&&n.commit()}}const l=document.createNodeIterator(e,NodeFilter.SHOW_ALL),u=[];for(;;){const e=l.nextNode();if(null===e)break;if((0,s.vq)(e)){u.push(o(e));const t=e.getAttribute("background");if(t&&u.push(a(t).then((r=>{e.setAttribute("background",r||t),n.commit()}))),(0,s.A6)(e)||(0,s.M6)(e)){const t=e.getAttribute("src");t&&u.push(a(t).then((r=>{r||(r=t),"string"===typeof e.src?e.src=r:e.setAttribute("src",(0,y.A)(r)),n.commit()})))}if((0,s.ST)(e)){const t=e.sheet.cssRules,r=[];for(const e of t){const{cssText:t}=e;t&&r.push(i(t))}u.push(d(r).then((r=>{r.some(((e,r)=>t[r].cssText!==e))&&(e.innerHTML=r.join("\n"),n.commit())})))}}else if((0,s.Cn)(e)){const t=(0,s.ih)(e),r=null===t||void 0===t?void 0:t.content;r&&u.push(I(r,/<v:fill.*>/gi,(async e=>{const t=await I(e,/src="([^"]*)"/gi,(async(e,t)=>`src="${await a(t)||t}"`));return I(t,/src='([^']*)'/gi,(async(e,t)=>`src='${await a(t)||t}'`))})).then((a=>{r!==a&&(e.replaceWith((0,c.$$)(`${t.open}${a}${t.close}`)[0]),n.commit())})))}}return d(u)}(e,t,n,r)}const D=800;function R(e,t,r){let n=e.getAttribute("href");if(n&&e.protocol.startsWith("http")){const a=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,l.l)()),r=n}return t}(n);a.forEach(((e,t)=>{n=n.replaceAll(t,e)}));const i=n.indexOf("#");let o=i>=0?n.substring(0,i):n;const s=i>=0?n.substring(i+1):"",c=n.indexOf("?"),u=c>=0?o.substring(c+1):"";if(o=c>=0?o.substring(0,c):o,e.host!==document.location.host){const i=new Map(u.split("&").filter((e=>e.indexOf("=")>=0)).map((e=>e.split("="))));let c=u;if(t){const e=Object.keys(t);for(const r of e)t[r]&&!i.has(r)&&(c=c+(c?"&":"")+`${r}=${t[r]}`)}c!==u&&(n=o+(c?`?${c}`:"")+(s?`#${s}`:""),a.forEach(((e,t)=>{n=n.replaceAll(e,t)})),e.setAttribute("href",n),r.commit())}}}async function M(e,t,r,n){let[a,i]=t||[D];return"number"===typeof a&&(a+="px"),"number"===typeof i&&(i+="px"),e=await O(e,(async(t,a,i)=>{await P(t,(e=>T.getEscapedText(e)!==e?e:(0,b.o)(e)),i);const o=t.querySelectorAll("a");for(const e of o)R(e,r,i);if(i.commit(),n)return n(t,e,i)}),[a,i])}async function N(e,t,r,n){let[a,i]=t||[D];return"number"===typeof a&&(a+="px"),"number"===typeof i&&(i+="px"),e=(e=await O(e,(async(t,a,i)=>{await P(t,(e=>T.getEscapedText(e)!==e?e:(0,b.o)(e)),i);const o=t.querySelectorAll("*");for(const e of o)if((0,s.A6)(e)){const t=await(0,s.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))}i.commit()}else if((0,s.Lv)(e)){const t=parseInt(getComputedStyle(e).width);isNaN(t)||"BODY"===e.parentElement.tagName||e.setAttribute("width",String(t)),i.commit()}else"TD"===e.tagName||"A"===e.tagName&&(R(e,r,i),i.commit());if(n)return n(t,e,i)}),[a,i])).replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,"")}const B="images",L=40;async function j(e,t,r,n=E,a){const o=Object.create(null);let[s,c]=t||[D];"number"===typeof s&&(s+="px"),"number"===typeof c&&(c+="px");const l=new Set,u=await O(e,(async(e,t,s)=>{await P(e,(async e=>{T.getEscapedText(e)===e&&(e=(0,b.o)(e));const t=await n(e);let[r,a]=S(e);if(r.length>L&&(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("")}`}()),!a||!i.A.getType(a))try{a=i.A.getExtension(t.type)}catch(d){}let s=`${r}.${a}`,c=1;for(;l.has(s);)s=`${r}(${++c}).${a}`;l.add(s);const u=`${B}/${s}`;return o[u]=t,u}),s);const c=e.querySelectorAll("a");for(const n of c)R(n,r,s);if(a)return a(e,t,s)}),[s,c]);return o["index.html"]=new Blob([u],{type:"text/html;charset=utf-8"}),o}function z(e){const t=new(a());for(const r of Object.keys(e)){let n=t;const a=r.split("/"),i=a.length-1;for(let e=0;e<i;e++)n=t.folder(a[e]);n.file(a[i],e[r])}return t.generateAsync({type:"blob",compression:"DEFLATE"})}function F(e){const t=new Image;return t.crossOrigin="anonymous",new Promise(((r,n)=>{t.onload=()=>r(t),t.onerror=n,t.src=e}))}function U(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,a)=>n.toBlob((t=>t?e(t):a("blob is null")),t,Number(r)||0)))}function q(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,s.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(q).join(""):""}function W(e){const[t,r]=A(e);try{return q(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:()=>z,Cl:()=>f,DI:()=>T,EU:()=>O,HT:()=>U,Hy:()=>q,Id:()=>h,Np:()=>A,Qi:()=>N,Tr:()=>W,X7:()=>L,XZ:()=>R,Yq:()=>p,Z1:()=>j,_9:()=>M,_q:()=>F,au:()=>x,d_:()=>I,el:()=>w,ez:()=>_,fq:()=>m,gq:()=>E,i0:()=>P,iV:()=>D,jG:()=>l.j,ln:()=>$,sh:()=>B});var n=r(98173),a=r(83612),i=r(32947),o=r(52310),s=r.n(o),c=r(52919),l=r(37357),u=(r(81197),r(39218)),d=r(3326);const h=e=>{Object.keys(i.A9).forEach((t=>{"onboarding_success"!==e.get(i.A9[t])&&e.remove(i.A9[t])}))};function f(e){const t=(0,a.A)(e);return isNaN(t)?new Date(e):t}const p=(e,t,r=!1)=>{Date;const n=new Date,a=e.getDate()===n.getDate()&&e.getMonth()===n.getMonth()&&e.getFullYear()===n.getFullYear();if(r&&a){const r=Math.floor((n-e)/1e3),a=Math.floor(r/60),i=Math.floor(a/60);if(r<60)return t("Just now");if(i>0){const e=a%60;return`${i} ${t("hour","hours",i)} ${e} ${t("minute","minutes",e)}`}return`${a} ${t("minute","minutes",a)}`}{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,a=new RegExp(`(${t})(.*?)(${r})`,"gis");return e=e.replaceAll(a,((e,t,r,a)=>{const i=(0,u.l)();return n.set(i,r),t+i+a})),{escapes:n,html:e}}function b(e,t){let r=[];for(const[n,a]of t){const{escapes:t,html:i}=g(e,n,a);e=i,r.push([n,a,t])}return{escapes:r,html:e}}function y(e,t,r,n){const a=new RegExp(`(${t})(.*?)(${r})`,"gis");return e.replaceAll(a,((e,t,r,a)=>{const i=n.get(r);return"string"===typeof i?t+i+a:e}))}const v=/<title>(.*)<\/title>/gm,w=(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,a]of t)e=y(e,r,n,a);return e}(n,r.reverse())};function _(e){let{html:t}=b(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(v)].map((e=>e[1])).find((e=>!!e))}const C="ascend",k="descend",S="desc",E=e=>{switch(e){case C:return"asc";case k:return S;default:return""}},A=e=>{switch(e){case"asc":return C;case S:return k;default:return""}},x=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,T=e=>new Promise(((t,r)=>{const n=new Image;n.onload=()=>{t("success")},n.onerror=()=>{r("error")},n.src=e})),O=(e,t)=>{for(const r of t)"object"===typeof e.properties&&(e=e.properties[r]);return e},I=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 a of n){const n=t[a];void 0!==n&&null!==n&&(e[a]=r&&"object"===typeof n?P(e[a]||{},n,!0):n)}return e},D=e=>new Promise(((t,r)=>{s().load({google:{families:[e]},classes:!1,active:t,inactive:r})})),R=(e,t)=>{t&&e(t)},M=()=>{const e=(0,c.XW)(),t=(0,d.cR)();return(0,n.useCallback)(((r,n,a)=>{t.querySelectorAll(".block-search__preview").forEach((e=>e.remove()));const o=t.querySelector("#iframe-scroll-top"),s=t.querySelector("#iframe-scroll-bottom"),c=t.querySelector("#email_iframe"),l=document.body.getBoundingClientRect().height,u=c.getClientRects()[0];u.top<0&&(o.style.display="block"),u.top+u.height>l&&(s.style.display="block");const d={operation:i.Ru.SANDBOX_BLOCK_INSERT,settings:{blockHTML:n||null,targetBlock:null,project:"emailmaker",type:a}};r.dataTransfer.setData("Text",JSON.stringify(d)),e(d)}),[e])},N=()=>{const e=(0,c.XW)(),t=(0,d.cR)();return(0,n.useCallback)(((r,n,a)=>{const o=t.querySelector("#iframe-scroll-top"),s=t.querySelector("#iframe-scroll-bottom"),c=t.querySelector("#email_iframe"),l=document.body.getBoundingClientRect().height,u=c.getClientRects()[0];u.top<0&&(o.style.display="block"),u.top+u.height>l&&(s.style.display="block");const d={operation:i.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:n.html||null,targetBlock:null}};a(n)&&r.dataTransfer.setData("Text",JSON.stringify(d)),e(d)}),[e,t])},B=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,r,n)=>{e({operation:i.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:r,type:n}})}),[e])},L=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,r)=>{e({operation:i.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:r}})}),[e])},j=(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:()=>{}})},z=()=>{const e=(0,c.XW)();return(t,r)=>{e({operation:i.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:r})}},F=(e,t="")=>{const r=[];var n,a;e&&(null===(n=e._embedded)||void 0===n||null===(a=n["wp:term"])||void 0===a||a.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},U=(e,t="")=>{var r,n,a,i,o;return(null===(r=e._embedded)||void 0===r||null===(n=r["wp:term"])||void 0===n||null===(a=n.find((e=>{var r;return!!e.length&&(!t||(null===(r=e[0])||void 0===r?void 0:r.taxonomy)===t)})))||void 0===a||null===(i=a.find((e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("project_")})))||void 0===i||null===(o=i.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,a=r.getBoundingClientRect().height-n,i=e.clientY-t.getBoundingClientRect().top-30,o=-a*(Math.min(Math.max(i,0),n-60)/(n-60));r.style.transform=`translateY(${o}px)`},W=({target:e})=>{e.style.transform="translateY(0)"};function $(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}},86095:(e,t,r)=>{"use strict";r.d(t,{kx:()=>d,$Z:()=>b,Xb:()=>h,VA:()=>m,fn:()=>y,aD:()=>g,TW:()=>f});var n=r(81843),a=r(98173),i=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),a=n.getLanguageIdByMimeType(t)||t;return function(e,t,r,n,a){if(r=r||"",!n){const n=r.indexOf("\n");let i=r;return-1!==n&&(i=r.substring(0,n)),l(e,r,t.createByFilepathOrFirstLine(a||null,i),a)}return l(e,r,t.createById(n),a)}(o.QE.get(s.S),n,e,a,r)}const d=(0,a.createContext)(null);function h(){(0,n.OI)()._updateThemeOrColorMap()}function f(e){const t=(0,n.yc)(),[r,i]=(0,a.useState)({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)});return(0,a.useEffect)((()=>{const r=e.onDidChangeContent((()=>{setTimeout((()=>i({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 i.Ov;return r instanceof i.Ov?r:i.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,a.useMemo)((()=>m(e)),[e])}function b(e=""){const t=u(e,"text");return t.setEOL(0),t}function y(){return(0,a.useContext)(d)}},25488:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,I:()=>i});var n=r(39218),a=r(31926);function i({code:e,...t},r){var a,i;const o=r.getState();return{...t,...e?{html:e}:{},renderGuid:(0,n.l)(),project:null===(a=o.projectSlice)||void 0===a||null===(i=a.project)||void 0===i?void 0:i.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function o({html:e,renderGuid:t,...r},n){const i=n.getState(),{project:o,config:s}=i.configSlice;return(0,a.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})}},64351:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Gt});var n=r(3792),a=r(16390),i=r(54838),o=r(47014),s=r(78915),c=r(76550),l=r(14604);function u(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 d=r(76233),h=r(40277),f=r(88296),p=r(65470);class m extends p.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}}function g(e,t){if(e===t)return!0;if("object"===typeof e&&e&&"object"===typeof t&&t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r)if(!g(e[a],t[a]))return!1;return!0}return!1}function b(e,t){if(!e)return t;const r={};for(const n of Object.keys(t))g(t[n],e[n])||(r[n]=t[n]);return r}class y extends p.lt{}var v=r(95669);class w extends h.jG{constructor(...e){super(...e),this._items=new Map,this._onChangeEmitter=new p.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 a=await t(r);return(0,v.b)(r,a)||this._onChangeEmitter.fire(),a}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[a,i]of e)t.push(this.addOrUpdate(a,(()=>i))),r.add(a);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 _=r(39218);class C extends h.jG{constructor(...e){super(...e),this._cache=new w,this._readEmitter=new p.lt,this._saveEmitter=this.addDisposable(new m),this._removeEmitter=this.addDisposable(new y),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 h.jG);r.addDispose((()=>delete this._foreignCache[e]));const n=r.addDisposable(new w),a=r.addDisposable(new p.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 a.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:a,pageSize:i=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],a=t[n];return"id"===n||"string"!==typeof r?r===a:"string"===typeof a&&r.startsWith(a)}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!==a&&(e=e.slice(i*(a-1),i*a-1)),{data:e,filteredTotal:s,total:o,totalPages:Math.floor(o/i)}}(await this._cache.values()||[],r)),first:(e,r={})=>t.get(e,{...r,page:1,pageSize:1}).then((e=>e[0])),handleRead:a.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,_.l)()),await this._cache.addOrUpdate(n.id,(()=>n))}async update(e,t,{source:r="",silent:n}={}){return this._cache.addOrUpdate(e,(async e=>{let a=e?{...e,...t}:t;if(!n)return t=e?b(e,t):t,await this._saveEmitter.fire({prev:e,patch:t,value:a,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()}}function k(){const e=(0,f.Q)();return t=>n.di.getOrCreateInstance(t,e,(()=>new C))}function S(e){const t=n.di.getInstance(e,c.ax);if(!t)throw new Error("Failed");return t}function E(e){const t=n.di.getInstance(e,c.Lz);if(!t)throw new Error("Failed");return t}async function A(e){const t=S(e),r=await t.dispatch(s.Q2.endpoints.getMe.initiate({},{forceRefetch:!0}));return Promise.resolve(r.data)}var x=r(90614),T=r(15626),O=r(54010),I=r(1029),P=r(27943),D=r(63233),R=r(46767),M=r(98119),N=r(65716),B=r(83027),L=r(98845),j=r(19992),z=r(40835),F=r(68984),U=r(73668),q=r(12005),W=r(8111),$=r(92485),Z=r(52779),H=r(79965),G=r(94160),V=r(6193),K=r(47491),Q=r(90925),Y=r(871),J=r(2952),X=r(705),ee=r(92960),te=r(33932),re=r(12744),ne=r(59089),ae=r(30397),ie=r(64706),oe=r(38251),se=r(81551);const ce=[s.Q2,R.OV,Z.S,$.k,M.yR,N.Nq,B.kE,L.GY,j.B,F.VM,U.f,q.Ad,W.Jg,H.M,G.F,V.KA,K.Sd,Q.y,Y.CL,J.tO,X.vx,ee.Z8,z.yH,te.Zs,re.Uu,ne.So,ae.C,ie.N,oe.U8];var le=r(88195),ue=r(94049),de=r.n(ue),he=r(37357);function fe(e){return t=>{const r=t.queryFn||((e,r,n,a)=>{if(!t.query)throw new Error("query not found EndpointDefinition");return a(t.query(e))});r&&(t.query=void 0,t.queryFn=async(t,a,i,o)=>{try{let s;const c=n.di.getServices(a,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=a,n=i,s=o)=>{const c=await r(e,t,n,s);if(c.error)throw c.error;return c.data})):await r(t,a,i,o),{data:s,error:null}}catch(s){return{error:s}}})}}const pe=new Set;function me(e){return(t,r)=>{const a=Object.create(null),i=Object.keys(r),o=new he.j;for(const s of i){const i=`api_listeners_flag_${t.reducerPath}/${s.toString()}`,c=n.di.createIdentifier(`api_listeners_${t.reducerPath}/${s.toString()}`);pe.has(i)||(a[s]=fe(c),pe.add(i)),o.addDisposable(n.di.addService(e,c,{execute:r[s]}))}return Object.keys(a).length&&t.enhanceEndpoints({endpoints:a}),E(e).addDisposable(o),o}}async function ge(e,t){try{var r;const a=function(t){n.di.inject(e,c.sZ,(async()=>t))},i=me(e),o=await de().loadAsync(t,{base64:!0}),s=await(null===(r=o.files.key)||void 0===r?void 0:r.async("text"));if("string"===typeof s){const e=await function(e){const t=`blocks_${(0,_.l)().replaceAll("-","")}`,r=document.createElement("script");return r.type="text/javascript",r.text=`window.${t}(function(module, exports, require) { ${e}; })`,new Promise(((e,n)=>{window[t]=function(t){const r={exports:{}};t(r,r.exports,(()=>{})),e(r.exports)},document.head.appendChild(r)})).finally((()=>{r.remove(),delete window[t]}))}(s);"object"===typeof e&&"function"===typeof e.execute&&e.execute(a,i,ce)}}catch{}}n.di.createIdentifier();const be=k(),ye=k(),ve=(0,x.cZ)(),we=(0,x.cZ)();var _e=r(19792);function Ce(e){return Ce="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},Ce(e)}function ke(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function Se(e,t){var r,n;(0,_e.A)(1,arguments);var a=function(e){(0,_e.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Ce(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):new Date(NaN)}(e);if(isNaN(a.getTime()))throw new RangeError("Invalid time value");var i=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"!==i&&"basic"!==i)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"===i?"-":"",u="extended"===i?":":"";if("time"!==o){var d=ke(a.getDate(),2),h=ke(a.getMonth()+1,2),f=ke(a.getFullYear(),4);s="".concat(f).concat(l).concat(h).concat(l).concat(d)}if("date"!==o){var p=a.getTimezoneOffset();if(0!==p){var m=Math.abs(p),g=ke(Math.floor(m/60),2),b=ke(m%60,2);c="".concat(p<0?"+":"-").concat(g,":").concat(b)}else c="Z";var y=""===s?"":"T",v=[ke(a.getHours(),2),ke(a.getMinutes(),2),ke(a.getSeconds(),2)].join(u);s="".concat(s).concat(y).concat(v).concat(c)}return s}const Ee=k();const Ae=k(),xe=k();const Te={addUserToProjectApiMock:function(e){me(e)(j.B,{addUserToProject:()=>{}})},AiApiMock:function(e){me(e)(te.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:S(e).getState().userSlice.currentUser.locale,counters:{},avatar_urls:{},autosaves:!0};me(e)(s.Q2,{userRegistration:()=>{},getSchema:()=>e=>e({}),getMe:()=>t,editMe:e=>t={...t,...e},getSubscriptions:()=>[]})},blocksApiMock:function(e){const t=me(e),r=be(e),n=r.byForeignKey("project"),a=ye(e),i=a.byForeignKey("parent"),{dispatch:o,getState:s}=S(e),c=E(e);c.addDisposable(r.onChange((()=>o(F.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,x.dB)(e,we),u=(0,x.dB)(e,ve);t(F.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 i.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})=>a.create({...t,parent:e})})},commentsApiMock:function(e){const t=me(e),r=Ee(e),n=r.byForeignKey("post"),{dispatch:a}=S(e);E(e).addDisposable(r.onChange((()=>a(W.Jg.util.invalidateTags(["Comments"]))))),t(W.Jg,{getComments:e=>n.get(e).then((({data:e})=>e)),addComment({subjectId:e,author:t,parent:n,content:a,author_name:i,author_email:o,targetId:s}){const c={post:e,author:t,author_name:i,author_email:o,content:a,parent:n,target_id:s,date:Se(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=Ae(e),r=xe(e),n=r.byForeignKey("parent"),{dispatch:a,getState:i}=S(e),o=E(e),s=me(e);o.addDisposable(t.onChange((async()=>{a(L.GY.util.invalidateTags(["Email"]))}))),o.addDisposable(r.onChange((()=>{a(L.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(L.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:({emailId:e,page:t=1})=>(n.clear(),async a=>{if(i().configSlice.config.revisionService){const n=await a({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,_.l)()),n},editEmail:e=>async r=>{const{emailId:n,source:a,...o}=e;return i().configSlice.config.revisionService&&await r(e),t.update(n,o,{source:a})},deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveEmail:({emailId:e,body:t})=>async n=>(i().configSlice.config.revisionService&&await n({emailId:e,body:t}),await r.create({...t,parent:e,modified:(new Date).toString()}))})},emailRawApiMock:function(e){me(e)(U.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(c.f5)}})},imageApiMock:function(e){me(e)(Y.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){me(e)(q.Ad,{getLocale:async({id:e})=>t=>t({id:e}),getLocales:()=>async e=>e()})},notificationsApiMock:function(e){me(e)(X.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(c.f5)}})},projectsApiMock:function(e){let t;me(e)(N.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=me(e),r=(0,x.dB)(e,T.AZ.FILE_PROXY_EVENT_ID);t(ee.Z8,{getFile:async({url:t,tryFetch:n=!0,type:a})=>async i=>{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 i({url:t,tryFetch:n,type:a});switch(a){case"json":return JSON.parse(await c.text());case"text":return c.text();default:return c}}})},recoverPasswordApiMock:function(e){me(e)(M.yR,{resetPassword(e){throw new Error(c.f5)},setPassword(e){throw new Error(c.f5)},validateRecoverPasswordCode(e){throw new Error(c.f5)}})},saveFileApiMock:function(e){const t=me(e);if(!n.di.getInstance(e,c.Lz))throw new Error("Something was wrong");const r=(0,x.dB)(e,T.AZ.UPLOAD_EVENT_ID),a=(0,x.dB)(e,T.AZ.ON_SEND_TESTEMAIL_ID),i=(0,x.dB)(e,T.AZ.ON_SEND_LIVEPREVIEW_ID);t(z.yH,{uploadImage:t=>async a=>{const i=e.getState(),{project:o}=i.configSlice,s="tmp"===t.folder?null:await r.fire({file:t.file,project:o}),l=s?s.find((e=>e)):null;return l?[{file_url:l,project:o}]:a({...t,user_id:String((await n.di.getInstanceAsync(e,c.sZ)).app_id)})},sendTestEmail:t=>async r=>{const i=e.getState(),{project:o}=i.configSlice;(await a.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,c.sZ)).app_id)})},async sendLivePreview(t){const r=e.getState(),{project:n}=r.configSlice;(await i.fire({project:n,id:t.email,subject:t.subject,html:t.content})).some((e=>!1===e))},sendShortLink:e=>t=>t(e)})},tokenApiMock:function(e){me(e)(R.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}},Oe=Te;function Ie(e){return Pe((async t=>e(t)))}function Pe(e){return(0,le.y)((async t=>{const r=await t.getInstanceAsync(c.ax);return await e(r)}))}const De=(0,le.y)((async e=>{const t=function(e){let t={};if(e){const r=(0,f.Q)();se.Q.inject(r,e),t={INJECTION:r}}const r=(0,I.configureStore)({reducer:D.A,middleware:e=>e({serializableCheck:!1}).concat(ce.map((e=>e.middleware))),preloadedState:t});return(0,P.$k)(r.dispatch),r}(e);e.inject(c.ax,t);const r=e.getInstance(c.Ef);return r&&await ge(t,r),function(e,t){for(const n of Object.keys(t))try{t[n](e)}catch(r){}}(t,Oe),{instance:{}}}));var Re=r(74029);function Me(e){return e.getState()[a.Ay.name]}const Ne=Ie((e=>{const t=E(e),r=(0,O.m)((0,x.Zc)(e,T.AZ.ON_LIMIT_ID)),f=t.addDisposable(new O.U(r)),p=(0,O.m)((0,x.Zc)(e,T.AZ.READ_LOCALE)),m=t.addDisposable(new O.U(p)),g=e.dispatch,b=n.di.getInstanceAsync(e,c.sZ).then((e=>(null===e||void 0===e?void 0:e.app_config)||{}),(e=>({}))),y=(0,l.y)(),v=async t=>{g((0,a.rh)(t));const{locale:r,theme:n,codeModeDirection:o,editor:c}=Me(e).config;void 0!==o&&("none"===o?g((0,i.N6)(!1)):(g((0,i.N6)(!0)),g((0,i.Uf)(o))));const l=await A(e);var u;await g(s.Q2.endpoints.editMe.initiate({...l,code_editor:c?(u=c,{font_size:u.fontSize,font_family:u.fontFamily,tab_size:u.tabSize,word_wrap:u.wordWrap,minimap:u.minimap,insert_spaces:u.insertSpaces}):l.code_editor,locale:("string"===typeof r?r:l.locale)||"ru_RU",theme:"string"===typeof n?n:l.theme}))};let w;const _=y.decorate((async({config:r={},project:i,user:o,advancedConfigs:c})=>{if(await v({advancedConfigs:c,user:r,serverSide:await b}),void 0!==typeof i&&g((0,a.bn)(String(i))),o){const r={...await A(e),email:"",password:"",...o,id:"number"===typeof o.id?String(o.id):o.id};void 0===o.id&&delete r.id,g(s.Q2.endpoints.editMe.initiate(r)),o.id&&t.addDisposable(n.di.addService(e,d.jY,{execute(e){e.headers.append("user_id",r.id)}}))}i&&t.addDisposable(n.di.addService(e,d.jY,{execute(e){e.headers.append("project_id",String(i))}}))}));return{setOptions:y.decorate((async({config:t={},project:r,user:a,advancedConfigs:i,handleReadLocale:o,handleLimitUsage:s,storageProvider:c})=>{n.di.inject(e,Re.M4,c),m.setListener(o),f.setListener(s),_({config:t,project:r,user:a,advancedConfigs:i}).catch((e=>{})),w&&w.dispose(),w=new h.jG})),instance:{setConfig:y.decorate((async t=>{await v({advancedConfigs:Me(e).advancedConfigs,serverSide:await b,user:t})})),getConfig:()=>function(e){var t,r;const n=e.getState(),s=n[o.Ay.name],c=n[a.Ay.name],l=n[i.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:u(s.monacoOptions)}}(e),updateConfig:y.decorate((async t=>{await v({advancedConfigs:Me(e).advancedConfigs,serverSide:await b,user:{...Me(e).user,...t}})})),handleReadLocale:p,handleLimitUsage:r}}}));var Be=r(84362),Le=(r(97320),r(55760)),je=r(12602),ze=r(98173),Fe=r(2604);const Ue=({onLoad:e,children:t})=>{(0,ze.useEffect)((()=>{e&&e()}),[e]);const r=(0,Fe.wA)();return(0,ze.useMemo)((()=>r(s.Q2.endpoints.getMe.initiate({}))),[r]),t};var qe=r(73013),We=r(62272),$e=r(66330),Ze=r(38826),He=r(49856),Ge=r(98447),Ve=r(3326),Ke=r(72510);const Qe=ze.createElement(Ze.A,{style:{fontSize:48},spin:!0}),Ye={height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},Je=({children:e,handleBeforeRender:t})=>{const[r,n]=(0,ze.useState)(),i=(0,Ve.ZU)(),o=(0,Fe.d4)(a.p5),s=(0,ze.useRef)(!1),c=(0,Ve.cR)();return(0,ze.useLayoutEffect)((()=>{s.current||(s.current=!0,t&&t())}),[]),ze.createElement(je.N7,{container:(0,Ke.Sb)(c)||document.head},ze.createElement("div",{className:"App blocks-app blocks-plugin",style:i?{}:{visibility:"hidden"}},o&&ze.createElement("style",{dangerouslySetInnerHTML:{__html:o}}),ze.createElement(Ve.fh.Provider,{value:r},e),ze.createElement("div",{ref:n,className:"blocks-modal-container"})),!i&&ze.createElement(He.A,{size:"large",style:Ye},ze.createElement(Ge.A,{indicator:Qe})))};var Xe=r(60739),et=r(73942),tt=r(97041),rt=r(47908),nt=r(67007),at=r(89687),it=r(41882),ot=r(96087),st=r(19858),ct=r(14107),lt=r(32947),ut=r(27941),dt=r(96734),ht=r(5558);We.BV.propTypes={};const ft=()=>{const e=(0,Fe.wA)(),t=(0,dt.p)(),r=(0,Fe.d4)(o.C1);(0,ze.useEffect)((()=>{const t=null===r||void 0===r?void 0:r.code_editor;t&&e((0,o.ww)(t))}),[r,e]),(0,ze.useEffect)((()=>{const r=t.get(lt.A9.em_token),n=t.get(lt.A9.promocode);r&&n&&(e(ne.So.endpoints.checkPromo.initiate({code:n,type:"by_link"})),t.remove(lt.A9.promocode))}),[e,t]);const n=(0,Fe.d4)(a.s0),i=n.project?(0,ut.Mu)(n):void 0;return(0,ht.O5)(),lt.EW.isPlugin&&void 0===i?ze.createElement(ze.Fragment,null):ze.createElement(We.BV,null,ze.createElement(We.qh,{path:"/",element:ze.createElement(tt.A,null,ze.createElement(rt.A,null))},ze.createElement(We.qh,{index:!0,element:ze.createElement(nt.A,{to:i||"error"})}),ze.createElement(We.qh,{path:"emails"},ze.createElement(We.qh,{index:!0,element:ze.createElement(at.A,null)}),ze.createElement(We.qh,{path:"new",element:ze.createElement(at.A,null)})),ze.createElement(We.qh,{path:"projects"},ze.createElement(We.qh,{path:":projectId",element:ze.createElement(ct.A,null)},ze.createElement(We.qh,{path:"emails"},ze.createElement(We.qh,{path:":emailId",element:ze.createElement(st.A,null)},ze.createElement(We.qh,{path:":preview",element:ze.createElement(st.A,null)})),ze.createElement(We.qh,{path:"new",element:ze.createElement(st.A,null)}),ze.createElement(We.qh,{path:"new_from"},ze.createElement(We.qh,{path:":emailId",element:ze.createElement(it.A,null)}))))),ze.createElement(We.qh,{path:"*",element:ze.createElement(ot.A,null)})))};class pt{constructor({shadowRoot:e,markerAttr:t="data-emailmaker"}){this.shadowRoot=void 0,this.markerAttr=void 0,this.observer=void 0,this.addedKeys=new Set,this.handleMutations=e=>{for(const t of e)for(const e of t.addedNodes)1===e.nodeType&&(e instanceof HTMLStyleElement||e instanceof HTMLLinkElement)&&e.hasAttribute(this.markerAttr)&&this.cloneAndInjectNode(e)},this.shadowRoot=e,this.markerAttr=t,this.observer=new MutationObserver(this.handleMutations),this.observer.observe(document.head,{childList:!0,subtree:!1}),this.syncExistingStyles()}syncExistingStyles(){const e=document.querySelectorAll(`style[${this.markerAttr}], link[${this.markerAttr}]`);for(let t=e.length-1;t>=0;t--)this.cloneAndInjectNode(e[t])}getNodeKey(e){return"STYLE"===e.tagName?(e.textContent||"").trim():"LINK"===e.tagName?e.href:null}cloneAndInjectNode(e){const t=this.getNodeKey(e);if(!t||this.addedKeys.has(t))return;const r=e.cloneNode(!0);this.shadowRoot.insertBefore(r,this.shadowRoot.firstChild),this.addedKeys.add(t)}dispose(){this.observer.disconnect(),this.addedKeys.clear()}}Symbol("ElementCloneSymb");const mt=Ie((e=>{let t=null;const r=(0,et.My)(e),a=(0,T.dB)(r,T.AZ.ON_CHUNKS_LOADED),i=n.di.getInstance(e,c.Lz);let o,s=!1;const l=()=>{s||(s=!0,a.fire())};return{instance:{getElement:()=>t},async setOptions(r){let s=await(0,Xe.x)(r.element,i);const{instance:u}=n.di.getInstance(e,c.Cd)||{};if(t!==s&&(i.addDisposable(a.event((()=>{r.handleChunkLoaded&&r.handleChunkLoaded()}))),t&&Xe.s.delete(t),!(s&&Xe.s.has(s)&&u))){if(o&&o.dispose(),t=s,o=i.addDisposable(new h.jG),s){Xe.s.set(s,u);const e=(0,Ke.Sb)(s);e&&o.addDisposable(new pt({shadowRoot:e}))}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,qe.H)(t);n.render(ze.createElement(ze.StrictMode,null,ze.createElement(Fe.Kq,{store:e},ze.createElement(Ue,{onLoad:r},ze.createElement(Ve.or.Provider,{value:{element:t}},ze.createElement(We.fS,null,ze.createElement(je.N7,{container:(0,Ke.K8)(t)?document.head:t},ze.createElement($e.Y,null,ze.createElement(Je,{handleBeforeRender:l},ze.createElement(Le.A,null,ze.createElement(ft,null))))))))))),o.addDispose(r),o.addDispose((()=>n.unmount()))}})))(s)}},dispose(){var e;null===(e=o)||void 0===e||e.dispose()}}}));function gt(e){return{emails:Ae(e),blocks:be(e),emailRevisions:xe(e),blocksRevision:ye(e),comments:Ee(e)}}var bt=r(80148),yt=r(90121),vt=r(13668),wt=r(31926);function _t({code:e,...t},r){var n,a;const i=r.getState();return{...t,...e?{html:e}:{},renderGuid:(0,_.l)(),project:null===(n=i.projectSlice)||void 0===n||null===(a=n.project)||void 0===a?void 0:a.id}}function Ct({html:e,renderGuid:t,...r},n){const a=n.getState(),{project:i}=a.configSlice;return(0,wt.TB)({...r,code:e,project:void 0===i?r.project:i,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 kt=r(25488);function St({code:e,...t},r,n){const a=r.getState();var i,o;void 0===n&&(n=void 0===t.parent?null===(i=a.emailSlice)||void 0===i||null===(o=i.email)||void 0===o?void 0:o.id:t.parent);return{...t,...e?{html:e}:{},parent:n}}function Et({html:e,...t},r){return(0,wt.TB)({...t,code:e,guid:void 0,compiled:(0,wt.TB)({html:e,ampHtml:e&&""})})}function At(e,t,r){const n=t.getState();var a,i;void 0===r&&(r=void 0===e.post?null===(a=n.emailSlice)||void 0===a||null===(i=a.email)||void 0===i?void 0:i.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:r}}function xt(e,t){return(0,wt.TB)({...e,link:void 0,comment_status:void 0})}var Tt=r(94779),Ot=r(22560),It=r(19504),Pt=r(1511),Dt=r(634),Rt=r(47904);const Mt=e=>function(e){var t;return function(e){return"___SCRIPT"===e.tagName}(e)&&(null===(t=e.src)||void 0===t?void 0:t.startsWith(Pt.gP))}(e)||(0,It.Nh)(e)||(0,Ke.BF)(e);async function Nt(e,t=!0){const r=!0===t||"object"===typeof t&&t.amp,n=!0===t||"object"===typeof t&&t.text;let a;"string"===typeof e&&(e={code:e});const i=e.code?await(0,Tt.PJ)(e.code||"",[Tt.qy],e.utm_parameters,(async(e,t,r)=>{a=(e=>{if(Mt(e))return!0;if((0,Ke.vq)(e)||(0,Ke.wz)(e))for(const t of e.querySelectorAll("*"))if(Mt(t))return!0;return!1})(e),a&&await(0,Ot.e)(e,"html",r)})):"",o=r&&e.code&&a?await(0,Tt.PJ)(e.code||"",[Tt.qy],e.utm_parameters,(async(e,t,r)=>{await(0,Ot.e)(e,"amp",r)})):"",s=n&&e.code?await(0,Tt.PJ)(e.code||"",[Tt.qy],e.utm_parameters,(async(e,t,r)=>(0,Dt.G9)(e,Rt.l))):"";return{...e,compiled:{html:i,ampHtml:o,text:s}}}function Bt(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 Lt="EXTERNAL";class jt extends h.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,l.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,bt.My)(e);this._dataSources=gt(t),this._eventLock=function(e){const t=Object.values(gt(e));return{suspendChange(){t.forEach((e=>e.suspendChange()))},resumeChange(){t.forEach((e=>e.resumeChange()))}}}(t);const r=(0,x.Zc)(e,T.AZ.ON_MODEL_CHANGE),a=(0,x.Zc)(e,T.AZ.ON_EMAIL_CHANGED_ID);this.addDisposable(r((e=>{this._model=e}))),this.addDisposable(a((e=>{this._currentEmail=e}))),this.addDisposable(n.di.addService(e,d.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,c.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(L.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=>Ct(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=>xt(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=>Et(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,_t(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,St(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,At(e,this._store,t)]));await r.setAll(n)}async getEmail(e=!0){const t=this._store.getState(),r=t.emailSlice.email.id?t.emailSlice.email:t.newEmailSlice.email;return Nt((0,kt.E)({...r,html:this._model?this._model.getValue():r.html},this._store),e)}async compileEmail(e=!0){const t=this._store.getState(),r=t.emailSlice.email.id?t.emailSlice.email:t.newEmailSlice.email;return Nt((0,kt.E)({...r,html:this._model?this._model.getValue():r.html},this._store),e)}async setEmail(e,t,r=!1){const n=this._dataSources.emails,a=n.cache,i=await this.getProject();e="string"===typeof e?{code:e}:{...e};let o=(0,kt.I)(e,this._store);const s=o.id;let c=s;if(void 0!==s?o={...await n.get(s),...o,project:i}:(o={...o,project:i},c=(0,_.l)(),delete o.project),t){const e=await this.getTemplateEmail(String(t));e&&(o={...e,id:String(t),...o})}await a.setAll([[c,o]]),r&&this._runShowCommand({isNew:void 0===s,id:c,project:i})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,v.b)(this._prevCommand,e)?(0,yt.RS)(this._store,vt._1,t):this._store.dispatch((0,a.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:a,comments:i,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(i)),s.push(this.setEmailRevisions(a))),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,x.Zc)(this._store,T.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===Lt&&(r.dispose(),e((0,kt.E)(t,this._store)))}),Number.MIN_VALUE));(0,yt.RS)(this._store,vt.Kp,Lt)}))}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=>Bt(r,e))):void 0}}class zt extends h.jG{constructor(e){super(),this._store=e,this._events=void 0,this._model=void 0,this._listenersUpdaters=void 0;const t=(0,x.Zc)(e,T.AZ.ON_MODEL_CHANGE);this.addDisposable(t((e=>{this._model=e})))}_get(){const e=this._store,t=(0,bt.My)(e),{blocks:r,emails:n,comments:i,emailRevisions:o}=gt(t),s=(0,x.Zc)(e,ve),c=(0,x.Zc)(e,we),l=(0,x.Zc)(e,T.AZ.ON_SAVEBUTTON_CLICK_ID),u=(0,x.Zc)(e,T.AZ.ON_PREVIOUSBUTTON_CLICK_ID),d=(0,x.Zc)(e,T.AZ.ON_NEXTBUTTON_CLICK_ID),h=(0,p.pb)((0,x.Zc)(e,T.AZ.ON_EMAIL_INIT_ID),(e=>!e.reset)),f=(0,x.Zc)(e,T.AZ.ON_EMAIL_CHANGED_ID),m=(0,x.Zc)(e,T.AZ.ON_CONTENT_CHANGED_ID),g=(0,x.Zc)(e,T.AZ.ON_SEND_TESTEMAIL_ID),y=(0,x.Zc)(e,T.AZ.ON_SEND_EMAIL_MODAL_ID),v=(0,x.Zc)(e,T.AZ.ON_EMAIL_CLONE_ID),w=(0,x.Zc)(e,T.AZ.ON_SHARE_ID),_=(0,x.Zc)(e,T.AZ.ON_SHOW_PREVIEW_ID),C=(0,x.Zc)(e,T.AZ.ON_SEND_LIVEPREVIEW_ID),k=(0,x.Zc)(e,T.AZ.ON_CODE_VALIDATE_ID),S=(0,x.Zc)(e,T.AZ.ON_PREHEADER_CHANGED_ID),E=(0,x.Zc)(e,T.AZ.ON_SUBJECT_CHANGED_ID);return{handlePreheaderChanged:(0,O.m)(S),handleSubjectChanged:(0,O.m)(E),handleValidate:(0,O.m)(k,(e=>this._model?e.map((e=>Bt(this._model,e))):[])),handleReadEmail:(0,O.m)(n.handlerRead,(e=>e),(t=>t&&(0,kt.I)(t,e))),handleSaveEmail:(0,O.m)(n.onSave,(function({prev:t,patch:r,value:n,source:a}){const i=t?(0,kt.E)(t,e):void 0;return{prev:i,patch:b(i,(0,kt.E)(r,e)),value:(0,kt.E)(n,e),source:a}}),(t=>t?(0,kt.I)(t,e):void 0)),handleRemoveEmail:(0,O.m)(n.onRemove,(({value:t,source:r})=>({value:(0,kt.E)(t,e),source:r})),(()=>{})),handleReadCommonBlocks:(0,O.m)(c,(e=>e.project),(t=>null===t||void 0===t?void 0:t.map((t=>_t(t,e))))),handleReadTemplateBlocks:(0,O.m)(s,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>_t(t,e))))),handleReadBlocks:(0,O.m)(r.byForeignKey("project").handleRead,(t=>(0,a.jY)(e.getState())||String(t)),(t=>null===t||void 0===t?void 0:t.map((t=>_t(t,e))))),handleSaveBlock:(0,O.m)(r.onSave,(function({prev:t,patch:r,value:n,source:a}){const i=t?Ct(t,e):void 0;return{prev:i,patch:b(i,Ct(r,e)),value:Ct(n,e),source:a}}),(t=>t?_t(t,e):void 0)),handleRemoveBlock:(0,O.m)(r.onRemove,(({value:t,source:r})=>({value:Ct(t,e),source:r})),(()=>{})),handleReadComments:(0,O.m)(i.byForeignKey("post").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>At(t,e))))),handleSaveComment:(0,O.m)(i.onSave,(function({prev:e,patch:t,value:r,source:n}){const a=e?xt(e):void 0;return{prev:a,patch:b(a,xt(t)),value:xt(r),source:n}}),(t=>t?At(t,e):void 0)),handleRemoveComment:(0,O.m)(i.onRemove,(({value:e,source:t})=>({value:xt(e),source:t})),(()=>{})),handleReadEmailRevisions:(0,O.m)(o.byForeignKey("parent").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>St(t,e))))),handleEmailAutosave:(0,O.m)(o.onSave,(function({prev:e,patch:t,value:r,source:n}){return{value:Et(r),source:n}}),(t=>t?St(t,e):void 0)),handleRemoveEmailAutoSave:(0,O.m)(o.onRemove,(({value:e,source:t})=>({value:Et(e),source:t})),(()=>{})),handleEmailChanged:(0,O.m)((0,p.sg)(f,100),(t=>(0,kt.E)(t,e))),handleEmailInit:(0,O.m)(h,(t=>(0,kt.E)(t,e))),handlePreviousButtonClick:(0,O.m)(u,(t=>(0,kt.E)(t,e))),handleNextButtonClick:(0,O.m)(d,(t=>(0,kt.E)(t,e))),handleSaveButtonClick:(0,O.m)(l,(t=>(0,kt.E)(t,e))),handleHtmlChanged:(0,O.m)((0,p.sg)(m,100)),handleTestEmailSend:(0,O.m)(g,(({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}}))),handleTestEmailModal:(0,O.m)(y,(t=>(0,kt.E)(t,e))),handleCloneEmail:(0,O.m)(v,(t=>(0,kt.E)(t,e))),handleShareEmail:(0,O.m)(w),handlePreviewEmail:(0,O.m)(_),handleLivePreviewEmail:(0,O.m)(C)}}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 O.U(t[e]))}for(const n of Object.keys(t))r[n].setListener(e[n])}}const Ft=Pe((e=>{const t=new jt(e),r=new zt(e);return{async setOptions(e){r.setOptions(e),await t.show(e.content)},instance:{...r.get(),show:e=>t.show(e),save:()=>t.save(),getEmail:()=>t.getEmail(),getBlocks:()=>t.getBlocks(),getEmailRevisions:()=>t.getEmailRevisions(),getComments:()=>t.getComments(),compileEmail:async(e,r=!0)=>e?Nt(e,r):await t.compileEmail(r),getCodeErrors:()=>t.getCodeErrors()}}})),Ut=(0,Be.l)((e=>{const t=e.getInstance(c.Lz),r=(0,T.Zc)(e,T.AZ.UPLOAD_EVENT_ID),n=(0,T.Zc)(e,T.AZ.FILE_PROXY_EVENT_ID),a=(0,O.m)(r),i=(0,O.m)(n),o=t.addDisposable(new O.U(a)),s=t.addDisposable(new O.U(i));return{setOptions(e){o.setListener(e.handleLoadImage),s.setListener(e.handleFileProxy)},instance:{handleLoadImage:a,handleFileProxy:i}}}));function qt(e){return"string"===typeof e?e:e?ze.createElement("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function Wt(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,wt.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:qt(e.message),description:qt(e.description),btn:qt(e.btn),onClose:e.onClose,duration:e.duration,icon:qt(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:qt(e.closeIcon),props:e.props,role:e.role})}const $t=(0,Be.l)((e=>{const t=e.getInstance(c.Lz),r=(0,T.Zc)(e,T.AZ.ON_NOTIFICATION),n=(0,p.pb)(r,(e=>"error"===e.type)),a=(0,p.pb)(r,(e=>"success"===e.type)),i=(0,O.m)(r,(e=>e),(e=>"string"===typeof e||"object"===typeof e?Wt(e):e)),o=(0,O.m)(n,(e=>e),(e=>"string"===typeof e||"object"===typeof e?Wt(e,"error"):e)),s=(0,O.m)(a,(e=>e),(e=>"string"===typeof e||"object"===typeof e?Wt(e):e)),l=t.addDisposable(new O.U(i)),u=t.addDisposable(new O.U(o)),d=t.addDisposable(new O.U(s));return{setOptions({handleNotify:e,handleSuccess:t,handleError:r}){l.setListener(e),u.setListener(r),d.setListener(t)},instance:{notify(t){(0,yt.RS)(e,vt.Sb,{placement:"bottomRight",...Wt(t)})},handleNotify:i,handleError:o,handleSuccess:s}}}));var Zt=r(86095);const Ht=(0,Be.l)((e=>{let t;const r=E(e),n=(0,T.Zc)(e,T.AZ.ON_MODEL_CHANGE);return r.addDisposable(n((e=>{t=(0,Zt.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)}}}})),Gt=(0,Be.E)([De,$t,Ne,Ut,mt,Ht,Ft])},19992:(e,t,r)=>{"use strict";r.d(t,{B:()=>o});var n=r(14721),a=r(39539),i=r(58521);const o=(0,n.xP)({reducerPath:"addUserToProjectApi",baseQuery:(0,i.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/user_to_project/v1/add_user"}),endpoints:e=>({addUserToProject:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).userToProject.add_user_create(e,{type:a.cM.FormData})})})}),{useAddUserToProjectMutation:s}=o},78915:(e,t,r)=>{"use strict";r.d(t,{CR:()=>d,Q2:()=>u,W5:()=>m,b9:()=>f,hZ:()=>p,i2:()=>g,on:()=>h});var n=r(14721),a=r(39539),i=r(93778),o=r(68936),s=r(71676),c=r(31926),l=r(58521);const u=(0,n.xP)({reducerPath:"authorizationApi",baseQuery:(0,l.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({userRegistration:e.mutation({queryFn:(e,t)=>(0,l.KU)(t).wp.users_register_create({body:e,type:a.cM.Json})}),emailUserRegistration:e.mutation({query:e=>({url:`${"https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g,"")}/wp-json/auth/v1/users/register`,method:"POST",body:e})}),getMailConfirmation:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.confirmation_list({...e})}),getSchema:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.users_me_list(void 0,{method:"OPTIONS",extraQuery:{_fields:"schema"}})}),getMe:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.users_me_list(null).then((0,i.SC)((e=>e instanceof Array?e[0]:e))).then((0,i.SC)(s.F))}),getUser:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.users_detail({id:e}).then((0,i.SC)(s.F))}),editMe:e.mutation({queryFn(e,t){const r=(0,l.KU)(t),n=(0,c.TB)((0,s.L)(e),!0);return r.wp.users_me_create(n,{type:a.cM.Json}).then((0,i.SC)(s.F))}}),getSubscriptions:e.query({queryFn:(e,t)=>(0,l.KU)(t).wp.subscription_list(void 0).then((0,i.Ih)(o.i))}),activateTrial:e.mutation({query:e=>({url:`${"https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g,"")}/wp-json/subscription/v2/activate_trial`,method:"GET",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"}})})})}),{useGetMeQuery:d,useLazyGetMeQuery:h,useEditMeMutation:f,useLazyGetSchemaQuery:p,useGetSubscriptionsQuery:m,useLazyGetMailConfirmationQuery:g,useEmailUserRegistrationMutation:b,useActivateTrialMutation:y}=u},68984:(e,t,r)=>{"use strict";r.d(t,{Gr:()=>k,OD:()=>w,OZ:()=>C,SB:()=>p,VM:()=>f,h1:()=>v,kz:()=>E,lx:()=>y,pP:()=>_,yW:()=>S});var n=r(14721),a=r(39539),i=r(93778),o=r(15422),s=r(17487),c=r(31926),l=r(98664),u=r(58521),d=r(50861),h=r(32947);const f=(0,n.xP)({reducerPath:"blocksApi",tagTypes:["Blocks","TemplatesBlocks","ParentsBlocks","Block"],baseQuery:(0,u.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getBlocks:e.query({queryFn(e,t){var r,n;const a=(0,u.KU)(t),s={order:"desc",orderby:"modified"},c={};if(e.notEmbed||(c._embed=""),e.projectId&&(c._embed="author",c._fields="id,title,blocktags,blockfolder,group,modified,date,type,acf.lock,acf.project.ID,acf.type,author,acf.is_template,acf.html",s["filter[meta_key]"]="project",s["filter[meta_value]"]=e.projectId),e.fields&&(c._fields=e.fields),e.page&&(s.page=e.page),e.order&&(s.order=e.order),e.orderby&&(s.orderby=e.orderby),e.folderTag&&e.folderTag!==h.y2?(s["filter[tax_query][relation]"]="AND",s["filter[tax_query][0][taxonomy]"]="blockfolder",s["filter[tax_query][0][field]"]="id",s["filter[tax_query][0][terms]"]=e.folderTag,s["filter[tax_query][0][include_children]"]="0"):!e.hasOwnProperty("folderTag")||e.folderTag===h.y2&&("object"!==typeof e.folderTag||null!==e.folderTag)||null!==(r=e.tags)&&void 0!==r&&r.length||!e.status||"trash"===e.status||(s["filter[tax_query][0][taxonomy]"]="blockfolder",s["filter[tax_query][0][operator]"]="NOT EXISTS"),(null===(n=e.tags)||void 0===n?void 0:n.length)>0&&"trash"!==e.status){s["filter[tax_query][relation]"]="AND";for(let t=0,r=e.tags.length;t<r;t++){const r=e.tags[t];s[`filter[tax_query][${t+1}][taxonomy]`]="blocktags",s[`filter[tax_query][${t+1}][field]`]="id",s[`filter[tax_query][${t+1}][terms]`]=r}}return e.type&&(s["filter[meta_query][2][key]"]="type",s["filter[meta_query][2][value]"]=e.type),e.name&&(s.search=e.name),e.pageSize&&(s.per_page=e.pageSize),"trash"===e.status&&(c.status="trash"),a.wp.eblock_list(s,{extraQuery:c}).then((0,i.Ih)(o.Y))},providesTags:e=>e?[...e.map((({id:e})=>({type:"Blocks",id:e}))),{type:"Blocks",id:"LIST"}]:[{type:"Blocks",id:"LIST"}],keepUnusedDataFor:0}),getBlocksSchema:e.query({queryFn:(e,t)=>(0,u.KU)(t).wp.eblock_list(void 0,{method:"OPTIONS",extraQuery:{_fields:"schema.properties.acf"}})}),getParentEmailBlocks:e.query({queryFn(e,t){var r;const n=(0,u.KU)(t),a={"filter[meta_query][0][compare]":"LIKE"},s={};if(e.notEmbed||(s._embed=""),e.emailId&&(a["filter[meta_query][0][key]"]="related_email",a["filter[meta_query][0][value]"]=e.emailId),e.fields&&(s._fields=e.fields),e.page&&(a.page=e.page),(null===(r=e.tags)||void 0===r?void 0:r.length)>0){a["filter[tax_query][relation]"]="AND";for(let t=0,r=e.tags.length;t<r;t++){const r=e.tags[t];a[`filter[tax_query][${t}][taxonomy]`]="blocktags",a[`filter[tax_query][${t}][field]`]="id",a[`filter[tax_query][${t}][terms]`]=r}}return e.type&&(a["filter[meta_query][2][key]"]="type",a["filter[meta_query][2][value]"]=e.type),e.name&&(a.search=e.name),e.pageSize&&(a.per_page=e.pageSize),n.wp.eblock_list(a,{extraQuery:s}).then((0,i.Ih)(o.Y))},providesTags:e=>e?[...e.map((({id:e})=>({type:"ParentsBlocks",id:e}))),{type:"ParentsBlocks",id:"LIST"}]:[{type:"ParentsBlocks",id:"LIST"}],keepUnusedDataFor:0}),getTemplateBlocks:e.query({queryFn:(e,t)=>{var r;const n=(0,u.KU)(t),a={"filter[meta_query][1][key]":"is_template","filter[meta_query][1][value]":"1",orderby:"modified",order:"desc"},s={};if(e.notEmbed||(s._embed=""),e.fields&&(s._fields=e.fields),e.page&&(a.page=e.page),(null===(r=e.tags)||void 0===r?void 0:r.length)>0){a["filter[tax_query][relation]"]="AND";for(let t=0,r=e.tags.length;t<r;t++){const r=e.tags[t];a[`filter[tax_query][${t}][taxonomy]`]="blocktags",a[`filter[tax_query][${t}][field]`]="id",a[`filter[tax_query][${t}][terms]`]=r}}return e.type&&(a["filter[meta_query][2][key]"]="type",a["filter[meta_query][2][value]"]=e.type),e.name&&(a.search=e.name),e.pageSize&&(a.per_page=e.pageSize),n.wp.eblock_list(a,{extraQuery:s}).then((0,i.Ih)(o.Y))},providesTags:e=>e?[...e.map((({id:e})=>({type:"TemplatesBlocks",id:e}))),{type:"TemplatesBlocks",id:"LIST"}]:[{type:"TemplatesBlocks",id:"LIST"}],keepUnusedDataFor:0}),getBlock:e.query({queryFn:(e,t)=>(0,u.KU)(t).wp.eblock_detail({id:(0,c.mQ)(e)},{extraQuery:{_embed:""}}).then((0,i.SC)(o.Y)),providesTags:(e,t,r)=>[{type:"Block",id:r}],keepUnusedDataFor:0}),getBlockHistory:e.query({queryFn:({blockId:e,page:t=1},r)=>(0,u.KU)(r).wp.eblock_revisions_list({parent:e,per_page:20,page:t},{extraQuery:{_fields:"author,slug,date,modified,title,acf.html,acf.common_styles,id"}}).then((r=>(0,i.SA)(r,((r,n)=>({data:r.filter((e=>e.acf.html)).map((e=>({...e,acf:{...e.acf,html:e.acf.html}}))).map(s.H),totalPages:+n.response.headers.get("X-WP-TotalPages"),args:{blockId:e,page:t}}))))),keepUnusedDataFor:0}),addBlock:e.mutation({queryFn:(e,t)=>(0,u.KU)(t).wp.eblock_create({...(0,o.F)(e),status:"publish"},{type:a.cM.Json}).then((0,i.SC)(o.Y)),invalidatesTags:[{type:"Blocks",id:"LIST"}]}),editBlock:e.mutation({queryFn:(0,d.p)((e=>({blockId:t,source:r,...n},s)=>{const l=(0,u.KU)(e),d=(0,c.TB)((0,o.F)(n));return l.wp.eblock_partial_update(t,d,{type:a.cM.Json,extraQuery:{_embed:"wp:term"}}).then((0,i.SC)(o.Y))}))}),deleteBlock:e.mutation({queryFn(e,t){const r=(0,u.KU)(t);let n,a;return"object"===typeof e?(n=e.id,a=e.force):(n=e,a=!1),r.wp.eblock_delete(n,{force:a}).then((0,i.PI)(o.Y))},invalidatesTags:(e,t,r)=>[{type:"Blocks",id:r}]}),addTag:e.mutation({queryFn:(e,t)=>(0,u.KU)(t).wp.blocktags_create({...e},{type:a.cM.Json})}),getDeletableTag:e.query({queryFn:([e,t],r)=>(0,u.KU)(r).wp.eblock_list({status:["private"],"filter[meta_key]":"project","filter[meta_value]":e,blocktags:[t]},{extraQuery:{"_fields[]":"blocktags"}}).then((0,i.Ih)(o.Y))}),autoSaveBlock:e.mutation({queryFn({blockId:e,body:t},r){const n=(0,u.KU)(r),o=(0,l.n)(t);return n.wp.eblock_autosaves_create(e,o,{type:a.cM.FormData}).then((0,i.SC)(s.H))}})})}),{useGetBlocksQuery:p,useGetBlockQuery:m,useLazyGetBlockQuery:g,useGetBlockHistoryQuery:b,useLazyGetBlockHistoryQuery:y,useGetBlocksSchemaQuery:v,useGetParentEmailBlocksQuery:w,useAddBlockMutation:_,useEditBlockMutation:C,useAddTagMutation:k,useAutoSaveBlockMutation:S,useGetTemplateBlocksQuery:E}=f},73668:(e,t,r)=>{"use strict";r.d(t,{f:()=>l});var n=r(14721),a=r(27943),i=r(93778),o=r(93207),s=r(76233);const c="EmailRaw",l=(0,n.xP)({reducerPath:"emailRawApi",tagTypes:[c],baseQuery:(0,a.cw)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getEmailRaw:e.query({queryFn:function({emailId:e,secret_hash:t},r){return(0,s.mg)(r).wp.email_detail({id:e},{extraQuery:{secret_hash:t}}).then((0,i.SC)(o.V))},providesTags:(e,t,r)=>[{type:c,id:r}]})})}),{useGetEmailRawQuery:u}=l},90925:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n=r(14721),a=r(27943);const i=(0,n.xP)({reducerPath:"getCheckoutUrlApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({GetCheckoutUrl:e.mutation({query:e=>({url:`?proxy_url=${encodeURIComponent({}.REACT_APP_PIPEDREAM_GET_CHECKOUT_URL)}`,method:"POST",body:e})})})}),{useGetCheckoutUrlMutation:o}=i},92485:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});var n=r(14721),a=r(58521);const i=(0,n.xP)({reducerPath:"googleAuthApi",baseQuery:(0,a.hI)({baseUrl:"https://app.emailmaker.ru/api//wp-json/auth/v1/google/callback"}),endpoints:e=>({validateGoogleToken:e.mutation({query:e=>({url:"",method:"POST",body:e})})})}),{useValidateGoogleTokenMutation:o}=i},65716:(e,t,r)=>{"use strict";r.d(t,{Nq:()=>u,OD:()=>p,fo:()=>h});var n=r(14721),a=r(39539),i=r(93778),o=r(16618),s=r(31926),c=r(58521);const l="Projects",u=(0,n.xP)({reducerPath:"projectsApi",tagTypes:[l,"project"],baseQuery:(0,c.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({getProjects:e.query({queryFn(e={page:1},t){const r=(0,c.KU)(t),n={status:["private"]};return e.page&&(n.page=e.page),e.order&&(n.order=e.order),e.orderby&&(n.orderby=e.order),r.wp.project_list(n).then((0,i.Ih)(o.d))},providesTags:e=>e?[...e.map((({id:e})=>({type:l,id:e}))),{type:l,id:"LIST"}]:[{type:l,id:"LIST"}]}),getProject:e.query({queryFn:(e,t)=>(0,c.KU)(t).wp.project_detail({id:e},{extraQuery:{_embed:"wp:term"}}).then((0,i.SC)(o.d)),providesTags:(e,t,r)=>[{type:"project",id:r}]}),addProject:e.mutation({queryFn:(e,t)=>(0,c.KU)(t).wp.project_create({status:"private",...(0,o.b)(e)},{type:a.cM.Json}).then((0,i.SC)(o.d)),invalidatesTags:[{type:l,id:"LIST"}]}),editProject:e.mutation({queryFn({projectId:e,...t},r){const n=(0,c.KU)(r),l=(0,s.TB)((0,o.b)(t),!0);return n.wp.project_partial_update(e,l,{type:a.cM.Json}).then((0,i.SC)(o.d))},invalidatesTags:(e,t,{projectId:r})=>[{type:l,id:r}]}),deleteProject:e.mutation({queryFn:(e,t)=>(0,c.KU)(t).wp.project_delete(e,{}).then((0,i.PI)(o.d)),invalidatesTags:(e,t,r)=>[{type:l,id:r}]})})}),{useGetProjectsQuery:d,useGetProjectQuery:h,useAddProjectMutation:f,useEditProjectMutation:p}=u},98119:(e,t,r)=>{"use strict";r.d(t,{yR:()=>s});var n=r(14721),a=r(27943),i=r(39539),o=r(76233);const s=(0,n.xP)({reducerPath:"recoverPasswordApi",baseQuery:(0,a.cw)({baseUrl:"https://app.emailmaker.ru/api/wp-json/bdpwr/v1/"}),endpoints:e=>({resetPassword:e.mutation({queryFn:(e,t)=>(0,o.mg)(t).bdpwr.reset_password_create({body:e,type:i.cM.Json})}),setPassword:e.mutation({queryFn:(e,t)=>(0,o.mg)(t).bdpwr.set_password_create({body:e,type:i.cM.Json})}),validateRecoverPasswordCode:e.mutation({queryFn:(e,t)=>(0,o.mg)(t).bdpwr.validate_code_create({body:e,type:i.cM.Json})})})}),{useResetPasswordMutation:c,useSetPasswordMutation:l,useValidateRecoverPasswordCodeMutation:u}=s},6193:(e,t,r)=>{"use strict";r.d(t,{KA:()=>i});var n=r(14721),a=r(27943);const i=(0,n.xP)({reducerPath:"recurrenceSubscriptionsOffApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({getCanselRecurrence:e.query({query:e=>({url:`?proxy_url=${encodeURIComponent(`https://webhook.latenode.com/5868/prod/07ae4159-132b-4a00-998b-bc47c20365ba?subscription_id=${e.sid}&user_id=${e.uid}`)}`})})})}),{useLazyGetCanselRecurrenceQuery:o,useGetCanselRecurrenceQuery:s}=i},47491:(e,t,r)=>{"use strict";r.d(t,{Sd:()=>i});var n=r(14721),a=r(27943);const i=(0,n.xP)({reducerPath:"recurrenceSubscriptionsOnApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({getRecurrence:e.query({query:e=>({url:`?proxy_url=${encodeURIComponent(`https://webhook.latenode.com/5868/prod/e1dd37b1-c3d4-4441-b329-d6b3aa51bfe7?subscription_id=${e.sid}&user_id=${e.uid}`)}`})})})}),{useLazyGetRecurrenceQuery:o,useGetRecurrenceQuery:s}=i},79965:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(14721),a=r(27943);const i=(0,n.xP)({reducerPath:"requestPlaneApi",baseQuery:(0,a.cw)({baseUrl:"https://px0.emailmaker.ru/"}),endpoints:e=>({getRequest:e.mutation({query:e=>({url:`?proxy_url=${encodeURIComponent("https://webhook.latenode.com/5868/prod/9e7a6445-2244-4dd5-bda4-5bca82997bf8")}`,method:"POST",body:e})})})}),{useGetRequestMutation:o}=i},83027:(e,t,r)=>{"use strict";r.d(t,{CE:()=>d,JI:()=>h,Jz:()=>s,Lh:()=>u,Oo:()=>c,kE:()=>o,y$:()=>l});var n=r(14721),a=r(58521);const i=()=>window.location.toString().includes("/blocks")?"block":"",o=(0,n.xP)({reducerPath:"taxonomiesApi",tagTypes:["Taxonomies","folder","block_folder","Group"],baseQuery:(0,a.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/wp/v2/"}),endpoints:e=>({addFolder:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp[i()+"folder_create"](e).then((e=>e))}),editFolder:e.mutation({queryFn:({id:e,data:t},r)=>(0,a.KU)(r).wp[i()+"folder_partial_update"](e,t).then((e=>e))}),deleteFolder:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp[i()+"folder_delete"](e,{force:!0}).then((e=>e))}),getFolders:e.query({queryFn:(e,t)=>(0,a.KU)(t).wp[i()+"folder_list"]({per_page:100,...e}).then((e=>e)),providesTags:(e,t,r)=>[{type:"folder",id:r}]}),addGroup:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp[i()+"group_create"](e).then((e=>e))}),editGroup:e.mutation({queryFn:({id:e,data:t},r)=>(0,a.KU)(r).wp[i()+"group_partial_update"](e,t).then((e=>e))}),getGroups:e.query({queryFn:(e,t)=>(0,a.KU)(t).wp[i()+"group_list"]({per_page:100,...e}).then((e=>e)),providesTags:(e,t,r)=>[{type:"Group",id:r}]}),deleteGroup:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp[i()+"group_delete"](e,{force:!0}).then((e=>e))}),addEmailsTag:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp.emailtags_create(e).then((e=>e))}),editEmailsTag:e.mutation({queryFn:({id:e,...t},r)=>(0,a.KU)(r).wp.emailtags_partial_update(e,t).then((e=>e))}),deleteEmailsTag:e.mutation({queryFn:(e,t)=>(0,a.KU)(t).wp.emailtags_delete(e,{force:!0}).then((e=>e))}),getTags:e.query({queryFn:(e,t)=>(0,a.KU)(t).wp[(window.location.toString().includes("/blocks")?"block":"email")+"tags_list"]({per_page:100,...e}).then((e=>e))})})}),{useGetFoldersQuery:s,useGetGroupsQuery:c,useLazyGetGroupsQuery:l,useDeleteGroupMutation:u,useEditGroupMutation:d,useAddGroupMutation:h,useGetTagsQuery:f,useLazyGetFoldersQuery:p,useAddFolderMutation:m,useEditFolderMutation:g}=o},46767:(e,t,r)=>{"use strict";r.d(t,{OV:()=>o});var n=r(14721),a=r(39539),i=r(58521);const o=(0,n.xP)({reducerPath:"tokenApi",baseQuery:(0,i.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/jwt-auth/v1/"}),endpoints:e=>({tokenCreate:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).jwtAuth.token_create({body:e,type:a.cM.Json})}),tokenValidate:e.mutation({queryFn:(e,t)=>(0,i.KU)(t).jwtAuth.token_validate_create({type:a.cM.Json})})})}),{useTokenCreateMutation:s,useTokenValidateMutation:c}=o},52779:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(14721),a=r(58521);const i=(0,n.xP)({reducerPath:"yandexAuthApi",baseQuery:(0,a.hI)({baseUrl:"https://app.emailmaker.ru/api/wp-json/auth/v1/yandex/callback"}),endpoints:e=>({validateYandexToken:e.mutation({query:e=>({url:"",method:"POST",body:e})})})}),{useValidateYandexTokenMutation:o}=i},22536:(e,t,r)=>{"use strict";r.d(t,{A9:()=>h,Ay:()=>E,Dz:()=>d,Fv:()=>y,JV:()=>w,Up:()=>v,b9:()=>k,eX:()=>u,gm:()=>S,iy:()=>C,nJ:()=>g,om:()=>p,qX:()=>_,rc:()=>f});var n=r(1029),a=r(93778),i=r(68984);const o=(0,a.ur)({invalidateBlockId:null,isCodeMode:!1,codeModeDirection:"right",editorThemeColor:"light",isSettingsDisabled:!1,settings:{width:""},elementSettings:{},searchFilters:{},block:{id:void 0,isNew:!1,subject:"",description:"",html:"",project:void 0,project_title:"",project_author:void 0,tags:[],type:"Other",title:null,isAmp:!1},monacoDidMount:!1}),s="blockSlice",c=(0,n.createSlice)({name:s,initialState:o,reducers:{switchCodeMode:e=>{e.isCodeMode=!e.isCodeMode},setEditorThemeColor:(e,t)=>{e.editorThemeColor=t.payload},setBlockSettings:(e,t)=>{Object.assign(e,{...e,settings:t.payload,isSettingsDisabled:!1})},setBlockSettingsDisable:(e,t)=>{e.isSettingsDisabled=t.payload},setElementSettings:(e,t)=>{e.elementSettings=t.payload},setSearchFilters:(e,t)=>{e.searchFilters=t.payload},setBlockHtml:(e,t)=>{e.block.html=t.payload},resetBlockSlice:()=>o,setBlockIsAmp:(e,t)=>{e.block.isAmp=t.payload}},extraReducers:e=>{e.addMatcher((e=>"blocksApi/queries/queryResultPatched"===e.type),((e,t)=>{var r,n;const a=t.payload.queryCacheKey.match(/\(([0-9]+)\)/),i=null===(r=t.payload)||void 0===r?void 0:r.patches[0];if(null!==i&&void 0!==i&&null!==(n=i.path)&&void 0!==n&&n[0]&&(e.block[null===i||void 0===i?void 0:i.path[0]]=i.value),null!==a&&void 0!==a&&a[1]&&(e.invalidateBlockId=a[1]),t.payload.queryCacheKey.startsWith("getBlock")){var o,s;const r=null===(o=t.payload)||void 0===o?void 0:o.patches[0];null!==r&&void 0!==r&&null!==(s=r.path)&&void 0!==s&&s[0]&&(e.block[null===r||void 0===r?void 0:r.path[0]]=r.value)}})),e.addMatcher((e=>"blocksApi/invalidateTags"===e.type),((e,t)=>{if(t.payload[0].id===+e.invalidateBlockId)return{...o,isCodeMode:null===e||void 0===e?void 0:e.isCodeMode,codeModeDirection:e.codeModeDirection}})),e.addMatcher(i.VM.endpoints.editBlock.matchFulfilled,((e,{payload:t})=>{e.invalidateBlockId=null,e.block={...e.block,...t,renderGuid:e.block.renderGuid}})),e.addMatcher(i.VM.endpoints.autoSaveBlock.matchFulfilled,((e,t)=>{var r,n;(null===e||void 0===e||null===(r=e.block.id)||void 0===r?void 0:r.toString())===(null===(n=t.payload.id)||void 0===n?void 0:n.toString())&&(e.block.html=t.payload.html)})),e.addMatcher(i.VM.endpoints.getBlock.matchFulfilled,((e,{payload:t})=>{e.block={...o.block,...t}}))}}),{switchCodeMode:l,setEditorThemeColor:u,setBlockSettings:d,setElementSettings:h,setBlockSettingsDisable:f,setSearchFilters:p,setBlockHtml:m,resetBlockSlice:g,setBlockIsAmp:b}=c.actions,y=e=>e[s].isCodeMode,v=e=>e[s].editorThemeColor,w=e=>e[s].settings,_=e=>e[s].elementSettings,C=e=>e[s].isSettingsDisabled,k=e=>e[s].searchFilters,S=e=>e[s].block,E=c},15812:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>b,D2:()=>p,hc:()=>m,jr:()=>g});var n=r(1029),a=r(68984),i=r(18987),o=r(32947);const s=(0,r(93778).ur)({blocksTotal:null,blocksTotalPages:null,parentEmailBlocksTotal:null,parentEmailBlocksTotalPages:null,templateBlocks:[],templateBlocksTotal:null,templateBlocksTotalPages:null,elementsView:!o.EW.isPlugin&&i.A.get(o.A9.em_elements_view)||o.Y$,elementsList:[],customFolders:{},blocksTrashTotal:0,elementsTrashList:[]}),c="blocksPageSlice",l=(0,n.createSlice)({name:c,initialState:s,reducers:{resetPagesAndTotal:()=>s,resetElementsList:e=>{e.elementsList=[]},toggleElementsView:(e,t)=>{e.elementsView=t.payload},removeBlockFromList:(e,{payload:t})=>{var r;const n=e.customFolders;t.folder!==o.y2&&null!==(r=n[t.folder])&&void 0!==r&&r.list&&(n[t.folder]={...n[t.folder],list:n[t.folder].list.filter((e=>e.id!==t.emailId)),total:n[t.folder].total-1},e.customFolders=n)}},extraReducers:e=>{e.addMatcher(a.VM.endpoints.getBlocks.matchFulfilled,((e,{meta:t,payload:r})=>{var n,a,i,o,s,c,l,u;const d=(null===(n=t.baseQueryMeta)||void 0===n?void 0:n.response.headers.get("X-WP-Total"))||(null===r||void 0===r?void 0:r.length),h="trash"===(null===(a=t.arg.originalArgs)||void 0===a?void 0:a.status),f=!(null===(i=t.arg.originalArgs)||void 0===i||null===(o=i.name)||void 0===o||!o.length),p=null===(s=t.arg.originalArgs)||void 0===s?void 0:s.page,m=(null===(c=t.arg.originalArgs)||void 0===c?void 0:c.folderTag)||(null===(l=t.arg.originalArgs)||void 0===l||null===(u=l.tags)||void 0===u?void 0:u[0]);h?(f||(e.blocksTrashTotal=d),e.elementsTrashList=r):m?e.customFolders={...e.customFolders,[m]:{list:r,page:p,total:d}}:(t.arg.originalArgs.tags||f||(e.blocksTotal=d),e.elementsList=r)})),e.addMatcher(a.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,{meta:t,payload:r})=>{var n,a;const i=(null===(n=t.baseQueryMeta)||void 0===n?void 0:n.response.headers.get("X-WP-Total"))||(null===r||void 0===r?void 0:r.length)||null,o=null===(a=t.baseQueryMeta)||void 0===a?void 0:a.response.headers.get("X-WP-TotalPages");e.parentEmailBlocksTotal=i,e.parentEmailBlocksTotalPages=o})),e.addMatcher(a.VM.endpoints.getTemplateBlocks.matchFulfilled,((e,{meta:t,payload:r})=>{var n,a;const i=(null===(n=t.baseQueryMeta)||void 0===n?void 0:n.response.headers.get("X-WP-Total"))||(null===r||void 0===r?void 0:r.length)||null,o=null===(a=t.baseQueryMeta)||void 0===a?void 0:a.response.headers.get("X-WP-TotalPages");e.templateBlocks=r,e.templateBlocksTotal=i,e.templateBlocksTotalPages=o})),e.addMatcher(a.VM.endpoints.editBlock.matchFulfilled,((e,{payload:t})=>{e.elementsList.map((e=>{var r,n;return(null===(r=e.id)||void 0===r?void 0:r.toString())===(null===(n=t.id)||void 0===n?void 0:n.toString())?Object.assign(e,{lock:t.lock,title:t.title,blocktags:t.blocktags}):e}))}))}}),{resetPagesAndTotal:u,resetElementsList:d,toggleElementsView:h,removeBlockFromList:f}=l.actions,p=e=>e[c].blocksTotal,m=e=>e[c].parentEmailBlocksTotal,g=e=>e[c].templateBlocksTotal,b=l},16390:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>x,EV:()=>S,GH:()=>b,Ir:()=>y,Kj:()=>E,RP:()=>p,bn:()=>C,jY:()=>g,p5:()=>m,rh:()=>v,s0:()=>h,wj:()=>A,zg:()=>f});var n=r(1029),a=r(93778),i=r(53774),o=r(27941);const s="configSlice",c=(0,a.ur)((0,i.$)("pro"));function l(e){var t;const r=e.user.mode||e.serverSide.mode||localStorage.getItem("configSwither")||"pro";return(null===(t=(0,i.$)(r))||void 0===t?void 0:t.config)||{}}function u(e){var t,r,n;const a=e.user.mode||e.serverSide.mode||localStorage.getItem("configSwither")||"pro";return{...(null===e||void 0===e||null===(t=e.serverSide.advancedConfigs)||void 0===t?void 0:t[a])||{},...(null===e||void 0===e||null===(r=e.advancedConfigs)||void 0===r?void 0:r[a])||{},...(null===e||void 0===e||null===(n=e.user.advancedConfigs)||void 0===n?void 0:n[a])||{}}}const d=(0,n.createSlice)({name:s,initialState:()=>{const e={...c,config:{...c.config,mergeTags:void 0}};return{base:e.config,serverSide:{},user:{},advancedConfigs:{},config:e.config,page:e.page,project:e.project}},reducers:{setPage:(e,t)=>{e.page=t.payload},setAllConfigs:(e,{payload:t})=>{e.user=t.user,e.serverSide=t.serverSide,e.advancedConfigs=t.advancedConfigs,e.config={...e.base,...l(e),...e.serverSide,...e.user,...u(e)}},changeConfigMode:(e,t)=>{e.user.mode=t.payload,e.config={...e.base,...l(e),...e.serverSide,...e.user,...u(e)}},setInitialMergeTags:(e,t)=>{e.base.mergeTags=t.payload;const r=l(e),n=u(e);e.config.mergeTags=(0,o.ZJ)([n,e.user,e.serverSide,r,e.base],"mergeTags")},setMergeTags:(e,t)=>{e.user.mergeTags=t.payload;const r=l(e),n=u(e);e.config.mergeTags=(0,o.ZJ)([n,e.user,e.serverSide,r,e.base],"mergeTags")},setUserConfig:(e,{payload:t})=>{e.user=t,e.config={...e.base,...l(e),...e.serverSide,...e.user,...u(e)}},updateUserConfig:(e,{payload:t})=>{e.user={...e.user,...t},e.config={...e.base,...l(e),...e.serverSide,...e.user,...u(e)}},setProject:(e,t)=>{e.project=t.payload},setActiveNextButton:(e,t)=>{e.user.activeNextButton=t.payload;const r=l(e),n=u(e);e.config.activeNextButton=void 0!==(0,o.ZJ)([n,e.user,e.serverSide,r,e.base],"activeNextButton")}},extraReducers:e=>{}}),h=e=>e[s].page,f=e=>e[s].config,p=e=>e[s].config.themes,m=e=>e[s].config.styles,g=e=>e[s].project,b=e=>e[s].config.mergeTags,{setPage:y,setAllConfigs:v,updateUserConfig:w,setUserConfig:_,setProject:C,setMergeTags:k,changeConfigMode:S,setInitialMergeTags:E,setActiveNextButton:A}=d.actions,x=d},54838:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>F,B:()=>O,Bp:()=>S,CS:()=>R,Ct:()=>D,Fk:()=>m,Fv:()=>N,M7:()=>A,N6:()=>C,NQ:()=>P,Oo:()=>f,PM:()=>p,Tn:()=>L,Uf:()=>v,V$:()=>j,Wm:()=>I,Wv:()=>B,cL:()=>T,mi:()=>g,oF:()=>x,oG:()=>z,qf:()=>h,sy:()=>E,vc:()=>b,vs:()=>y,wW:()=>w,wr:()=>_,yy:()=>M});var n=r(1029),a=r(32947),i=r(93778),o=r(68984);const s=window.localStorage.getItem(a.V0.em_code_mode_settings),c=s&&JSON.parse(s),l=(0,i.ur)({activeModal:"",lastActiveSettingsTab:a.Bv,activeSettingsTab:a.Bv,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:(null===c||void 0===c?void 0:c.isCodeMode)||a.EW.isPlugin&&void 0===(null===c||void 0===c?void 0:c.isCodeMode),codeModeDirection:(null===c||void 0===c?void 0:c.codeModeDirection)||"left",isHeaderCodeMenuOpen:{current:!1,switched:!1},emailWidth:"100%",emailViewType:a.Vp,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:a.WU,parentBlocks:[],isGlobalLoading:!1});localStorage.getItem(a.V0.em_code_mode_settings)||window.localStorage.setItem(a.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:l.codeModeDirection,isCodeMode:l.isCodeMode}));const 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!==a.Vv&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{"Properties"===e.lastActiveSettingsTab?e.activeSettingsTab="Build":e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==a.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?a.Vp:a.ND,window.localStorage.setItem(a.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(a.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(a.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:r})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(a.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:y,switchCodeModeDirection:v,setMobileViewActive:w,setEmailViewType:_,setCodeMode:C,setEmailMaxWidthSize:k,setPropertiesPanelKey:S,resetParentBlocks:E,setIsGlobalLoading:A,setHeaderCodeMenuOpen:x}=d.actions,T=e=>e[u].activeModal,O=e=>e[u].activeSettingsTab,I=e=>e[u].isPanelHistoryCollapsed,P=e=>e[u].emailWidth,D=e=>e[u].emailViewType,R=e=>e[u].mobileViewActive,M=e=>e[u].codeModeDirection,N=e=>e[u].isCodeMode,B=e=>e[u].isHeaderCodeMenuOpen,L=e=>e[u].propertiesPanelKey,j=e=>e[u].parentBlocks,z=e=>e[u].isGlobalLoading,F=d},79253:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>v,FC:()=>h,MY:()=>p,NP:()=>y,X:()=>f,aO:()=>b,ff:()=>u,qM:()=>m,ux:()=>g});var n=r(1029),a=r(98845),i=r(18987),o=r(32947);const s=(0,r(93778).ur)({emailsTotal:0,elementsList:[],emailsTrashTotal:0,elementsTrashList:[],customFolders:{},elementsView:!o.EW.isPlugin&&i.A.get(o.A9.em_elements_view)||o.Y$}),c="emailsPageSlice",l=(0,n.createSlice)({name:c,initialState:s,reducers:{resetPagesAndTotal:()=>s,resetElementsList:e=>{e.elementsList=[]},toggleElementsView:(e,t)=>{e.elementsView=t.payload},removeEmailFromList:(e,{payload:t})=>{var r;let n=e.customFolders;t.folder!==o.y2&&null!==(r=n[t.folder])&&void 0!==r&&r.list&&(n[t.folder]={...n[t.folder],list:n[t.folder].list.filter((e=>e.id!==t.emailId)),total:n[t.folder].total-1},e.customFolders=n)}},extraReducers:e=>{e.addMatcher(a.GY.endpoints.getEmails.matchFulfilled,((e,{meta:t,payload:r})=>{var n,a,i,o,s,c,l,u;const d=+(null===(n=t.baseQueryMeta)||void 0===n?void 0:n.response.headers.get("X-WP-Total"))||0,h="trash"===(null===(a=t.arg.originalArgs)||void 0===a?void 0:a.status),f=!(null===(i=t.arg.originalArgs)||void 0===i||null===(o=i.name)||void 0===o||!o.length),p=null===(s=t.arg.originalArgs)||void 0===s?void 0:s.page,m=(null===(c=t.arg.originalArgs)||void 0===c?void 0:c.folderTag)||(null===(l=t.arg.originalArgs)||void 0===l||null===(u=l.tags)||void 0===u?void 0:u[0]);h?(f||(e.emailsTrashTotal=d),e.elementsTrashList=r):m?e.customFolders={...e.customFolders,[m]:{list:r,page:p,total:d}}:(t.arg.originalArgs.tags||f||(e.emailsTotal=d),e.elementsList=r)})),e.addMatcher(a.GY.endpoints.getTemplateEmails.matchFulfilled,((e,{meta:t,payload:r})=>{var n;const a=+(null===(n=t.baseQueryMeta)||void 0===n?void 0:n.response.headers.get("X-WP-Total"))||0;e.elementsList=r,e.emailsTotal=a;const{projectGroup:i,projectId:o,tags:s}=t.arg.originalArgs;!(null!==i&&void 0!==i&&i.length&&o||null!==s&&void 0!==s&&s.length)&&(null!==s&&void 0!==s&&s.length||null!==i&&void 0!==i&&i.length)||(e.emailsTotal=a)})),e.addMatcher(a.GY.endpoints.editEmail.matchFulfilled,((e,{payload:t})=>{e.elementsList.map((e=>{var r,n;return(null===(r=e.id)||void 0===r?void 0:r.toString())===(null===(n=t.id)||void 0===n?void 0:n.toString())?Object.assign(e,{lock:t.lock,title:t.title,emailtags:t.emailtags}):e}))}))}}),{resetPagesAndTotal:u,toggleElementsView:d,resetElementsList:h,removeEmailFromList:f}=l.actions,p=e=>e[c].emailsTotal,m=e=>e[c].elementsList,g=e=>e[c].elementsTrashList,b=e=>e[c].emailsTrashTotal,y=e=>e[c].customFolders,v=l},39206:(e,t,r)=>{"use strict";r.d(t,{AS:()=>f,Ay:()=>v,Sl:()=>y,TB:()=>m,X8:()=>g});var n=r(1029),a=r(68984),i=r(65716),o=r(92048),s=r.n(o);const c=(0,r(93778).ur)({block:{isNew:!0,subject:"",description:"",html:'<table cellspacing="0" cellpadding="0" border="0" width="100%">'+s()+"</table>",project:void 0,project_title:"",tags:[],type:"Other",title:null},hasChanged:!1}),l="newBlockSlice",u=(0,n.createSlice)({name:l,initialState:c,reducers:{setNewBlockAll:(e,{payload:{subject:t="",description:r="",renderGuid:n,html:a='<table cellspacing="0" cellpadding="0" border="0" width="100%">'+s()+"</table>",tags:i=[],type:o="Other",title:c,isAmp:l=!1}})=>{e.hasChanged||(e.hasChanged=!0),e.block.title=c,e.block.subject=t,e.block.description=r,e.block.html=a,e.block.tags=i,e.block.type=o,e.block.renderGuid=n,e.block.isAmp=l},setNewBlockTitle:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.block.title=t.payload},setNewBlockDescription:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.block.description=t.payload},setNewBlockHtml:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.block.html=t.payload},setNewBlockTags:(e,t)=>{e.hasChanged||(e.hasChanged=!0),e.block.tags=t.payload},resetNewBlockSlice:e=>({...c,block:{...c.block,project:e.block.project,project_title:e.block.project_title}}),setBlockIsAmp:(e,t)=>{e.block.isAmp=t.payload}},extraReducers:e=>{e.addMatcher(i.Nq.endpoints.getProject.matchFulfilled,((e,t)=>{e.block.project=t.payload.id,e.block.project_title=t.payload.title})),e.addMatcher(a.VM.endpoints.getBlock.matchFulfilled,(e=>({...c,block:{...c.block,project:e.block.project,project_title:e.block.project_title}})))}}),{setNewBlockAll:d,setNewBlockTitle:h,setNewBlockDescription:f,setNewBlockHtml:p,setNewBlockTags:m,resetNewBlockSlice:g,setBlockIsAmp:b}=u.actions,y=e=>e[l].hasChanged,v=u},23424:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>S,Oo:()=>g,Os:()=>y,Wz:()=>b,YF:()=>m,cL:()=>_,gU:()=>k,qf:()=>p,sK:()=>C});var n=r(1029),a=r(93778),i=r(65716),o=r(83027),s=r(32947);const c=new URLSearchParams(window.location.search),l=c.get("tag"),u=c.get("folder"),d=(0,a.ur)({activeModal:"",secondModal:"",projectsTotal:"",projectsTotalPages:"",folders:[],activeTagId:l||null,activeFolderId:u||(l?null:s.y2),activeTab:null}),h="projectsPageSlice",f=(0,n.createSlice)({name:h,initialState:d,reducers:{openModal(e,t){e.activeModal=t.payload},setActiveTab(e,t){e.activeTab=t.payload},closeModal(e){e.activeModal=""},openSecondModal(e,t){e.secondModal=t.payload},closeSecondModal(e){e.secondModal=""},setFolders(e,{payload:t}){e.folders=t},setActiveTagId(e,{payload:t}){e.activeTagId=t}},extraReducers:e=>{e.addMatcher(i.Nq.endpoints.getProjects.matchFulfilled,((e,{meta:t})=>{var r,n;const a=null===(r=t.baseQueryMeta)||void 0===r?void 0:r.response.headers.get("X-WP-Total"),i=null===(n=t.baseQueryMeta)||void 0===n?void 0:n.response.headers.get("X-WP-TotalPages");e.projectsTotal=a,e.projectsTotalPages=i})),e.addMatcher(o.kE.endpoints.getFolders.matchFulfilled,((e,{payload:t})=>{e.folders=t}))}}),{openModal:p,setActiveTab:m,closeModal:g,openSecondModal:b,closeSecondModal:y,setFolders:v,setActiveTagId:w}=f.actions,_=e=>e[h].activeModal,C=e=>e[h].secondModal,k=e=>e[h].activeTab,S=f},74036:(e,t,r)=>{"use strict";r.d(t,{rm:()=>i});var n=r(22010),a=r(73100);function i(){const e=(0,a.EU)();return(0,n.h)(e).getIsolationScope()}},76487:(e,t,r)=>{"use strict";r.d(t,{gV:()=>a});var n=r(74036);function a(e){(0,n.rm)().setUser(e)}},22972:(e,t,r)=>{"use strict";r.d(t,{qO:()=>i});var n=r(96452),a=r(48461);function i(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,a.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,n.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}},84254:(e,t,r)=>{"use strict";r.d(t,{Yz:()=>u});var n=r(73100),a=r(69110),i=r(29641);const o={};function s(){return l().enabled}function c(e,...t){a.T&&s()&&function(e){if(!("console"in i.O))return e();const t=i.O.console,r={},n=Object.keys(o);n.forEach((e=>{const n=o[e];r[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=r[e]}))}}((()=>{i.O.console[e](`Sentry Logger [${e}]:`,...t)}))}function l(){return a.T?(0,n.BY)("loggerSettings",(()=>({enabled:!1}))):{enabled:!1}}const u={enable:function(){l().enabled=!0},disable:function(){l().enabled=!1},isEnabled:s,log:function(...e){c("log",...e)},warn:function(...e){c("warn",...e)},error:function(...e){c("error",...e)}}},25276:(e,t,r)=>{"use strict";r.d(t,{Qd:()=>i,Qg:()=>o});const n=Object.prototype.toString;function a(e,t){return n.call(e)===`[object ${t}]`}function i(e){return a(e,"Object")}function o(e){return Boolean(e?.then&&"function"===typeof e.then)}},96452:(e,t,r)=>{"use strict";r.d(t,{eJ:()=>a});var n=r(29641);function a(e=function(){const e=n.O;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&t())>>e/4).toString(16)))}},12279:(e,t,r)=>{"use strict";r.d(t,{my:()=>i});var n=r(69110),a=r(84254);function i(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.T&&a.Yz.log(`Failed to add non-enumerable property "${t}" to object`,e)}}},49961:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(96452);function a(){return(0,n.eJ)()}},44513:(e,t,r)=>{"use strict";function n(e,t=0){return"string"!==typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}r.d(t,{xv:()=>n})},48461:(e,t,r)=>{"use strict";r.d(t,{lu:()=>i,zf:()=>s});var n=r(29641);const a=1e3;function i(){return Date.now()/a}let o;function s(){return(o??(o=function(){const{performance:e}=n.O;if(!e?.now||!e.timeOrigin)return i;const t=e.timeOrigin;return()=>(t+e.now())/a}()))()}},83339:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(65214),a=r(21679);const i=new(r(62175).A)(a.A,n.A)._freeze()}}]);
|