@emailmaker/emailmaker 1.0.91 → 1.0.92

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.
Files changed (69) hide show
  1. package/README.md +32 -2
  2. package/asset-manifest.json +31 -26
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.js +1 -1
  5. package/iframe/429.js +1 -1
  6. package/iframe/766.js +1 -1
  7. package/iframe/iframe-eblock.bd2a2a73469f802abf17.html +1 -0
  8. package/iframe/iframe.bd2a2a73469f802abf17.html +1 -0
  9. package/iframe/js/826.c1a995fb.js +1 -0
  10. package/iframe/sandbox-eblock.js +1 -1
  11. package/iframe/sandbox.js +1 -1
  12. package/package.json +1 -1
  13. package/plugin.html +1 -1
  14. package/plugin_blocks_test.html +1 -1
  15. package/plugin_default.html +1 -1
  16. package/plugin_idigital.html +1 -1
  17. package/plugin_nota.html +1 -1
  18. package/plugin_s.html +1 -1
  19. package/static/css/2458.05166c0a.chunk.css +1 -0
  20. package/static/css/6501.e131603e.chunk.css +1 -0
  21. package/static/css/9272.a4e58dd0.chunk.css +1 -0
  22. package/static/js/1390.87d39fe1.js +2 -0
  23. package/static/js/{1538.c37b25fc.chunk.js → 1538.06811304.chunk.js} +2 -2
  24. package/static/js/241.9aaa5790.js +2 -0
  25. package/static/js/{6498.bfe18798.js.LICENSE.txt → 241.9aaa5790.js.LICENSE.txt} +1 -1
  26. package/static/js/2458.504bef1c.chunk.js +2 -0
  27. package/static/js/3017.2e1f6413.chunk.js +1 -0
  28. package/static/js/3085.b9d27236.chunk.js +2 -0
  29. package/static/js/4560.b03bbb3f.chunk.js +2 -0
  30. package/static/js/4560.b03bbb3f.chunk.js.LICENSE.txt +101 -0
  31. package/static/js/6501.616f4dec.chunk.js +1 -0
  32. package/static/js/7091.d1a56e4b.js +1 -0
  33. package/static/js/7729.13361a78.js +1 -0
  34. package/static/js/8285.c8bdf11b.js +2 -0
  35. package/static/js/{1302.39ea1b43.js.LICENSE.txt → 8285.c8bdf11b.js.LICENSE.txt} +1 -14
  36. package/static/js/8408.459779d0.js +2 -0
  37. package/static/js/8408.459779d0.js.LICENSE.txt +9 -0
  38. package/static/js/898.2dcef4f3.js +2 -0
  39. package/static/js/9272.d5a35d82.chunk.js +1 -0
  40. package/static/js/9960.6dcf66f0.chunk.js +2 -0
  41. package/static/js/9960.6dcf66f0.chunk.js.LICENSE.txt +30 -0
  42. package/static/js/emailmaker_core.1c694217.js +2 -0
  43. package/static/media/project-email-back.0ce470def19ce7c063e0.svg +29 -0
  44. package/translations.pot +39 -15
  45. package/emailmaker.d.ts +0 -1292
  46. package/iframe/iframe-eblock.71b56f41e572450c6715.html +0 -1
  47. package/iframe/iframe.71b56f41e572450c6715.html +0 -1
  48. package/iframe/js/826.f9cbc257.js +0 -1
  49. package/static/css/3397.f2d44d65.chunk.css +0 -1
  50. package/static/js/1302.39ea1b43.js +0 -2
  51. package/static/js/3017.1bbeda89.chunk.js +0 -1
  52. package/static/js/3085.59662838.chunk.js +0 -2
  53. package/static/js/3273.6cedb8e0.js +0 -2
  54. package/static/js/3397.19e55db9.chunk.js +0 -2
  55. package/static/js/3758.c4bda075.js +0 -2
  56. package/static/js/3927.eb1dc39e.js +0 -1
  57. package/static/js/4138.7f4f36d7.js +0 -1
  58. package/static/js/6498.bfe18798.js +0 -2
  59. package/static/js/985.162f7f7b.js +0 -1
  60. package/static/js/9880.74dc5e4f.chunk.js +0 -2
  61. package/static/js/9880.74dc5e4f.chunk.js.LICENSE.txt +0 -9
  62. package/static/js/emailmaker_core.4a93d2c5.js +0 -2
  63. /package/iframe/js/{826.f9cbc257.js.LICENSE.txt → 826.c1a995fb.js.LICENSE.txt} +0 -0
  64. /package/static/js/{3273.6cedb8e0.js.LICENSE.txt → 1390.87d39fe1.js.LICENSE.txt} +0 -0
  65. /package/static/js/{1538.c37b25fc.chunk.js.LICENSE.txt → 1538.06811304.chunk.js.LICENSE.txt} +0 -0
  66. /package/static/js/{3397.19e55db9.chunk.js.LICENSE.txt → 2458.504bef1c.chunk.js.LICENSE.txt} +0 -0
  67. /package/static/js/{3085.59662838.chunk.js.LICENSE.txt → 3085.b9d27236.chunk.js.LICENSE.txt} +0 -0
  68. /package/static/js/{3758.c4bda075.js.LICENSE.txt → 898.2dcef4f3.js.LICENSE.txt} +0 -0
  69. /package/static/js/{emailmaker_core.4a93d2c5.js.LICENSE.txt → emailmaker_core.1c694217.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 3758.c4bda075.js.LICENSE.txt */
2
- (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[3758],{88106:(e,t,n)=>{"use strict";function r(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}n.d(t,{R$:()=>r,W6:()=>i,j3:()=>s});class i{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,i._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return i._allCodicons}}var s;i._allCodicons=[],i.add=new i("add",{fontCharacter:"\\ea60"}),i.plus=new i("plus",i.add.definition),i.gistNew=new i("gist-new",i.add.definition),i.repoCreate=new i("repo-create",i.add.definition),i.lightbulb=new i("lightbulb",{fontCharacter:"\\ea61"}),i.lightBulb=new i("light-bulb",{fontCharacter:"\\ea61"}),i.repo=new i("repo",{fontCharacter:"\\ea62"}),i.repoDelete=new i("repo-delete",{fontCharacter:"\\ea62"}),i.gistFork=new i("gist-fork",{fontCharacter:"\\ea63"}),i.repoForked=new i("repo-forked",{fontCharacter:"\\ea63"}),i.gitPullRequest=new i("git-pull-request",{fontCharacter:"\\ea64"}),i.gitPullRequestAbandoned=new i("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),i.recordKeys=new i("record-keys",{fontCharacter:"\\ea65"}),i.keyboard=new i("keyboard",{fontCharacter:"\\ea65"}),i.tag=new i("tag",{fontCharacter:"\\ea66"}),i.tagAdd=new i("tag-add",{fontCharacter:"\\ea66"}),i.tagRemove=new i("tag-remove",{fontCharacter:"\\ea66"}),i.person=new i("person",{fontCharacter:"\\ea67"}),i.personFollow=new i("person-follow",{fontCharacter:"\\ea67"}),i.personOutline=new i("person-outline",{fontCharacter:"\\ea67"}),i.personFilled=new i("person-filled",{fontCharacter:"\\ea67"}),i.gitBranch=new i("git-branch",{fontCharacter:"\\ea68"}),i.gitBranchCreate=new i("git-branch-create",{fontCharacter:"\\ea68"}),i.gitBranchDelete=new i("git-branch-delete",{fontCharacter:"\\ea68"}),i.sourceControl=new i("source-control",{fontCharacter:"\\ea68"}),i.mirror=new i("mirror",{fontCharacter:"\\ea69"}),i.mirrorPublic=new i("mirror-public",{fontCharacter:"\\ea69"}),i.star=new i("star",{fontCharacter:"\\ea6a"}),i.starAdd=new i("star-add",{fontCharacter:"\\ea6a"}),i.starDelete=new i("star-delete",{fontCharacter:"\\ea6a"}),i.starEmpty=new i("star-empty",{fontCharacter:"\\ea6a"}),i.comment=new i("comment",{fontCharacter:"\\ea6b"}),i.commentAdd=new i("comment-add",{fontCharacter:"\\ea6b"}),i.alert=new i("alert",{fontCharacter:"\\ea6c"}),i.warning=new i("warning",{fontCharacter:"\\ea6c"}),i.search=new i("search",{fontCharacter:"\\ea6d"}),i.searchSave=new i("search-save",{fontCharacter:"\\ea6d"}),i.logOut=new i("log-out",{fontCharacter:"\\ea6e"}),i.signOut=new i("sign-out",{fontCharacter:"\\ea6e"}),i.logIn=new i("log-in",{fontCharacter:"\\ea6f"}),i.signIn=new i("sign-in",{fontCharacter:"\\ea6f"}),i.eye=new i("eye",{fontCharacter:"\\ea70"}),i.eyeUnwatch=new i("eye-unwatch",{fontCharacter:"\\ea70"}),i.eyeWatch=new i("eye-watch",{fontCharacter:"\\ea70"}),i.circleFilled=new i("circle-filled",{fontCharacter:"\\ea71"}),i.primitiveDot=new i("primitive-dot",{fontCharacter:"\\ea71"}),i.closeDirty=new i("close-dirty",{fontCharacter:"\\ea71"}),i.debugBreakpoint=new i("debug-breakpoint",{fontCharacter:"\\ea71"}),i.debugBreakpointDisabled=new i("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),i.debugHint=new i("debug-hint",{fontCharacter:"\\ea71"}),i.primitiveSquare=new i("primitive-square",{fontCharacter:"\\ea72"}),i.edit=new i("edit",{fontCharacter:"\\ea73"}),i.pencil=new i("pencil",{fontCharacter:"\\ea73"}),i.info=new i("info",{fontCharacter:"\\ea74"}),i.issueOpened=new i("issue-opened",{fontCharacter:"\\ea74"}),i.gistPrivate=new i("gist-private",{fontCharacter:"\\ea75"}),i.gitForkPrivate=new i("git-fork-private",{fontCharacter:"\\ea75"}),i.lock=new i("lock",{fontCharacter:"\\ea75"}),i.mirrorPrivate=new i("mirror-private",{fontCharacter:"\\ea75"}),i.close=new i("close",{fontCharacter:"\\ea76"}),i.removeClose=new i("remove-close",{fontCharacter:"\\ea76"}),i.x=new i("x",{fontCharacter:"\\ea76"}),i.repoSync=new i("repo-sync",{fontCharacter:"\\ea77"}),i.sync=new i("sync",{fontCharacter:"\\ea77"}),i.clone=new i("clone",{fontCharacter:"\\ea78"}),i.desktopDownload=new i("desktop-download",{fontCharacter:"\\ea78"}),i.beaker=new i("beaker",{fontCharacter:"\\ea79"}),i.microscope=new i("microscope",{fontCharacter:"\\ea79"}),i.vm=new i("vm",{fontCharacter:"\\ea7a"}),i.deviceDesktop=new i("device-desktop",{fontCharacter:"\\ea7a"}),i.file=new i("file",{fontCharacter:"\\ea7b"}),i.fileText=new i("file-text",{fontCharacter:"\\ea7b"}),i.more=new i("more",{fontCharacter:"\\ea7c"}),i.ellipsis=new i("ellipsis",{fontCharacter:"\\ea7c"}),i.kebabHorizontal=new i("kebab-horizontal",{fontCharacter:"\\ea7c"}),i.mailReply=new i("mail-reply",{fontCharacter:"\\ea7d"}),i.reply=new i("reply",{fontCharacter:"\\ea7d"}),i.organization=new i("organization",{fontCharacter:"\\ea7e"}),i.organizationFilled=new i("organization-filled",{fontCharacter:"\\ea7e"}),i.organizationOutline=new i("organization-outline",{fontCharacter:"\\ea7e"}),i.newFile=new i("new-file",{fontCharacter:"\\ea7f"}),i.fileAdd=new i("file-add",{fontCharacter:"\\ea7f"}),i.newFolder=new i("new-folder",{fontCharacter:"\\ea80"}),i.fileDirectoryCreate=new i("file-directory-create",{fontCharacter:"\\ea80"}),i.trash=new i("trash",{fontCharacter:"\\ea81"}),i.trashcan=new i("trashcan",{fontCharacter:"\\ea81"}),i.history=new i("history",{fontCharacter:"\\ea82"}),i.clock=new i("clock",{fontCharacter:"\\ea82"}),i.folder=new i("folder",{fontCharacter:"\\ea83"}),i.fileDirectory=new i("file-directory",{fontCharacter:"\\ea83"}),i.symbolFolder=new i("symbol-folder",{fontCharacter:"\\ea83"}),i.logoGithub=new i("logo-github",{fontCharacter:"\\ea84"}),i.markGithub=new i("mark-github",{fontCharacter:"\\ea84"}),i.github=new i("github",{fontCharacter:"\\ea84"}),i.terminal=new i("terminal",{fontCharacter:"\\ea85"}),i.console=new i("console",{fontCharacter:"\\ea85"}),i.repl=new i("repl",{fontCharacter:"\\ea85"}),i.zap=new i("zap",{fontCharacter:"\\ea86"}),i.symbolEvent=new i("symbol-event",{fontCharacter:"\\ea86"}),i.error=new i("error",{fontCharacter:"\\ea87"}),i.stop=new i("stop",{fontCharacter:"\\ea87"}),i.variable=new i("variable",{fontCharacter:"\\ea88"}),i.symbolVariable=new i("symbol-variable",{fontCharacter:"\\ea88"}),i.array=new i("array",{fontCharacter:"\\ea8a"}),i.symbolArray=new i("symbol-array",{fontCharacter:"\\ea8a"}),i.symbolModule=new i("symbol-module",{fontCharacter:"\\ea8b"}),i.symbolPackage=new i("symbol-package",{fontCharacter:"\\ea8b"}),i.symbolNamespace=new i("symbol-namespace",{fontCharacter:"\\ea8b"}),i.symbolObject=new i("symbol-object",{fontCharacter:"\\ea8b"}),i.symbolMethod=new i("symbol-method",{fontCharacter:"\\ea8c"}),i.symbolFunction=new i("symbol-function",{fontCharacter:"\\ea8c"}),i.symbolConstructor=new i("symbol-constructor",{fontCharacter:"\\ea8c"}),i.symbolBoolean=new i("symbol-boolean",{fontCharacter:"\\ea8f"}),i.symbolNull=new i("symbol-null",{fontCharacter:"\\ea8f"}),i.symbolNumeric=new i("symbol-numeric",{fontCharacter:"\\ea90"}),i.symbolNumber=new i("symbol-number",{fontCharacter:"\\ea90"}),i.symbolStructure=new i("symbol-structure",{fontCharacter:"\\ea91"}),i.symbolStruct=new i("symbol-struct",{fontCharacter:"\\ea91"}),i.symbolParameter=new i("symbol-parameter",{fontCharacter:"\\ea92"}),i.symbolTypeParameter=new i("symbol-type-parameter",{fontCharacter:"\\ea92"}),i.symbolKey=new i("symbol-key",{fontCharacter:"\\ea93"}),i.symbolText=new i("symbol-text",{fontCharacter:"\\ea93"}),i.symbolReference=new i("symbol-reference",{fontCharacter:"\\ea94"}),i.goToFile=new i("go-to-file",{fontCharacter:"\\ea94"}),i.symbolEnum=new i("symbol-enum",{fontCharacter:"\\ea95"}),i.symbolValue=new i("symbol-value",{fontCharacter:"\\ea95"}),i.symbolRuler=new i("symbol-ruler",{fontCharacter:"\\ea96"}),i.symbolUnit=new i("symbol-unit",{fontCharacter:"\\ea96"}),i.activateBreakpoints=new i("activate-breakpoints",{fontCharacter:"\\ea97"}),i.archive=new i("archive",{fontCharacter:"\\ea98"}),i.arrowBoth=new i("arrow-both",{fontCharacter:"\\ea99"}),i.arrowDown=new i("arrow-down",{fontCharacter:"\\ea9a"}),i.arrowLeft=new i("arrow-left",{fontCharacter:"\\ea9b"}),i.arrowRight=new i("arrow-right",{fontCharacter:"\\ea9c"}),i.arrowSmallDown=new i("arrow-small-down",{fontCharacter:"\\ea9d"}),i.arrowSmallLeft=new i("arrow-small-left",{fontCharacter:"\\ea9e"}),i.arrowSmallRight=new i("arrow-small-right",{fontCharacter:"\\ea9f"}),i.arrowSmallUp=new i("arrow-small-up",{fontCharacter:"\\eaa0"}),i.arrowUp=new i("arrow-up",{fontCharacter:"\\eaa1"}),i.bell=new i("bell",{fontCharacter:"\\eaa2"}),i.bold=new i("bold",{fontCharacter:"\\eaa3"}),i.book=new i("book",{fontCharacter:"\\eaa4"}),i.bookmark=new i("bookmark",{fontCharacter:"\\eaa5"}),i.debugBreakpointConditionalUnverified=new i("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),i.debugBreakpointConditional=new i("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),i.debugBreakpointConditionalDisabled=new i("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),i.debugBreakpointDataUnverified=new i("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),i.debugBreakpointData=new i("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),i.debugBreakpointDataDisabled=new i("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),i.debugBreakpointLogUnverified=new i("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),i.debugBreakpointLog=new i("debug-breakpoint-log",{fontCharacter:"\\eaab"}),i.debugBreakpointLogDisabled=new i("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),i.briefcase=new i("briefcase",{fontCharacter:"\\eaac"}),i.broadcast=new i("broadcast",{fontCharacter:"\\eaad"}),i.browser=new i("browser",{fontCharacter:"\\eaae"}),i.bug=new i("bug",{fontCharacter:"\\eaaf"}),i.calendar=new i("calendar",{fontCharacter:"\\eab0"}),i.caseSensitive=new i("case-sensitive",{fontCharacter:"\\eab1"}),i.check=new i("check",{fontCharacter:"\\eab2"}),i.checklist=new i("checklist",{fontCharacter:"\\eab3"}),i.chevronDown=new i("chevron-down",{fontCharacter:"\\eab4"}),i.dropDownButton=new i("drop-down-button",i.chevronDown.definition),i.chevronLeft=new i("chevron-left",{fontCharacter:"\\eab5"}),i.chevronRight=new i("chevron-right",{fontCharacter:"\\eab6"}),i.chevronUp=new i("chevron-up",{fontCharacter:"\\eab7"}),i.chromeClose=new i("chrome-close",{fontCharacter:"\\eab8"}),i.chromeMaximize=new i("chrome-maximize",{fontCharacter:"\\eab9"}),i.chromeMinimize=new i("chrome-minimize",{fontCharacter:"\\eaba"}),i.chromeRestore=new i("chrome-restore",{fontCharacter:"\\eabb"}),i.circleOutline=new i("circle-outline",{fontCharacter:"\\eabc"}),i.debugBreakpointUnverified=new i("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),i.circleSlash=new i("circle-slash",{fontCharacter:"\\eabd"}),i.circuitBoard=new i("circuit-board",{fontCharacter:"\\eabe"}),i.clearAll=new i("clear-all",{fontCharacter:"\\eabf"}),i.clippy=new i("clippy",{fontCharacter:"\\eac0"}),i.closeAll=new i("close-all",{fontCharacter:"\\eac1"}),i.cloudDownload=new i("cloud-download",{fontCharacter:"\\eac2"}),i.cloudUpload=new i("cloud-upload",{fontCharacter:"\\eac3"}),i.code=new i("code",{fontCharacter:"\\eac4"}),i.collapseAll=new i("collapse-all",{fontCharacter:"\\eac5"}),i.colorMode=new i("color-mode",{fontCharacter:"\\eac6"}),i.commentDiscussion=new i("comment-discussion",{fontCharacter:"\\eac7"}),i.compareChanges=new i("compare-changes",{fontCharacter:"\\eafd"}),i.creditCard=new i("credit-card",{fontCharacter:"\\eac9"}),i.dash=new i("dash",{fontCharacter:"\\eacc"}),i.dashboard=new i("dashboard",{fontCharacter:"\\eacd"}),i.database=new i("database",{fontCharacter:"\\eace"}),i.debugContinue=new i("debug-continue",{fontCharacter:"\\eacf"}),i.debugDisconnect=new i("debug-disconnect",{fontCharacter:"\\ead0"}),i.debugPause=new i("debug-pause",{fontCharacter:"\\ead1"}),i.debugRestart=new i("debug-restart",{fontCharacter:"\\ead2"}),i.debugStart=new i("debug-start",{fontCharacter:"\\ead3"}),i.debugStepInto=new i("debug-step-into",{fontCharacter:"\\ead4"}),i.debugStepOut=new i("debug-step-out",{fontCharacter:"\\ead5"}),i.debugStepOver=new i("debug-step-over",{fontCharacter:"\\ead6"}),i.debugStop=new i("debug-stop",{fontCharacter:"\\ead7"}),i.debug=new i("debug",{fontCharacter:"\\ead8"}),i.deviceCameraVideo=new i("device-camera-video",{fontCharacter:"\\ead9"}),i.deviceCamera=new i("device-camera",{fontCharacter:"\\eada"}),i.deviceMobile=new i("device-mobile",{fontCharacter:"\\eadb"}),i.diffAdded=new i("diff-added",{fontCharacter:"\\eadc"}),i.diffIgnored=new i("diff-ignored",{fontCharacter:"\\eadd"}),i.diffModified=new i("diff-modified",{fontCharacter:"\\eade"}),i.diffRemoved=new i("diff-removed",{fontCharacter:"\\eadf"}),i.diffRenamed=new i("diff-renamed",{fontCharacter:"\\eae0"}),i.diff=new i("diff",{fontCharacter:"\\eae1"}),i.discard=new i("discard",{fontCharacter:"\\eae2"}),i.editorLayout=new i("editor-layout",{fontCharacter:"\\eae3"}),i.emptyWindow=new i("empty-window",{fontCharacter:"\\eae4"}),i.exclude=new i("exclude",{fontCharacter:"\\eae5"}),i.extensions=new i("extensions",{fontCharacter:"\\eae6"}),i.eyeClosed=new i("eye-closed",{fontCharacter:"\\eae7"}),i.fileBinary=new i("file-binary",{fontCharacter:"\\eae8"}),i.fileCode=new i("file-code",{fontCharacter:"\\eae9"}),i.fileMedia=new i("file-media",{fontCharacter:"\\eaea"}),i.filePdf=new i("file-pdf",{fontCharacter:"\\eaeb"}),i.fileSubmodule=new i("file-submodule",{fontCharacter:"\\eaec"}),i.fileSymlinkDirectory=new i("file-symlink-directory",{fontCharacter:"\\eaed"}),i.fileSymlinkFile=new i("file-symlink-file",{fontCharacter:"\\eaee"}),i.fileZip=new i("file-zip",{fontCharacter:"\\eaef"}),i.files=new i("files",{fontCharacter:"\\eaf0"}),i.filter=new i("filter",{fontCharacter:"\\eaf1"}),i.flame=new i("flame",{fontCharacter:"\\eaf2"}),i.foldDown=new i("fold-down",{fontCharacter:"\\eaf3"}),i.foldUp=new i("fold-up",{fontCharacter:"\\eaf4"}),i.fold=new i("fold",{fontCharacter:"\\eaf5"}),i.folderActive=new i("folder-active",{fontCharacter:"\\eaf6"}),i.folderOpened=new i("folder-opened",{fontCharacter:"\\eaf7"}),i.gear=new i("gear",{fontCharacter:"\\eaf8"}),i.gift=new i("gift",{fontCharacter:"\\eaf9"}),i.gistSecret=new i("gist-secret",{fontCharacter:"\\eafa"}),i.gist=new i("gist",{fontCharacter:"\\eafb"}),i.gitCommit=new i("git-commit",{fontCharacter:"\\eafc"}),i.gitCompare=new i("git-compare",{fontCharacter:"\\eafd"}),i.gitMerge=new i("git-merge",{fontCharacter:"\\eafe"}),i.githubAction=new i("github-action",{fontCharacter:"\\eaff"}),i.githubAlt=new i("github-alt",{fontCharacter:"\\eb00"}),i.globe=new i("globe",{fontCharacter:"\\eb01"}),i.grabber=new i("grabber",{fontCharacter:"\\eb02"}),i.graph=new i("graph",{fontCharacter:"\\eb03"}),i.gripper=new i("gripper",{fontCharacter:"\\eb04"}),i.heart=new i("heart",{fontCharacter:"\\eb05"}),i.home=new i("home",{fontCharacter:"\\eb06"}),i.horizontalRule=new i("horizontal-rule",{fontCharacter:"\\eb07"}),i.hubot=new i("hubot",{fontCharacter:"\\eb08"}),i.inbox=new i("inbox",{fontCharacter:"\\eb09"}),i.issueClosed=new i("issue-closed",{fontCharacter:"\\eba4"}),i.issueReopened=new i("issue-reopened",{fontCharacter:"\\eb0b"}),i.issues=new i("issues",{fontCharacter:"\\eb0c"}),i.italic=new i("italic",{fontCharacter:"\\eb0d"}),i.jersey=new i("jersey",{fontCharacter:"\\eb0e"}),i.json=new i("json",{fontCharacter:"\\eb0f"}),i.kebabVertical=new i("kebab-vertical",{fontCharacter:"\\eb10"}),i.key=new i("key",{fontCharacter:"\\eb11"}),i.law=new i("law",{fontCharacter:"\\eb12"}),i.lightbulbAutofix=new i("lightbulb-autofix",{fontCharacter:"\\eb13"}),i.linkExternal=new i("link-external",{fontCharacter:"\\eb14"}),i.link=new i("link",{fontCharacter:"\\eb15"}),i.listOrdered=new i("list-ordered",{fontCharacter:"\\eb16"}),i.listUnordered=new i("list-unordered",{fontCharacter:"\\eb17"}),i.liveShare=new i("live-share",{fontCharacter:"\\eb18"}),i.loading=new i("loading",{fontCharacter:"\\eb19"}),i.location=new i("location",{fontCharacter:"\\eb1a"}),i.mailRead=new i("mail-read",{fontCharacter:"\\eb1b"}),i.mail=new i("mail",{fontCharacter:"\\eb1c"}),i.markdown=new i("markdown",{fontCharacter:"\\eb1d"}),i.megaphone=new i("megaphone",{fontCharacter:"\\eb1e"}),i.mention=new i("mention",{fontCharacter:"\\eb1f"}),i.milestone=new i("milestone",{fontCharacter:"\\eb20"}),i.mortarBoard=new i("mortar-board",{fontCharacter:"\\eb21"}),i.move=new i("move",{fontCharacter:"\\eb22"}),i.multipleWindows=new i("multiple-windows",{fontCharacter:"\\eb23"}),i.mute=new i("mute",{fontCharacter:"\\eb24"}),i.noNewline=new i("no-newline",{fontCharacter:"\\eb25"}),i.note=new i("note",{fontCharacter:"\\eb26"}),i.octoface=new i("octoface",{fontCharacter:"\\eb27"}),i.openPreview=new i("open-preview",{fontCharacter:"\\eb28"}),i.package_=new i("package",{fontCharacter:"\\eb29"}),i.paintcan=new i("paintcan",{fontCharacter:"\\eb2a"}),i.pin=new i("pin",{fontCharacter:"\\eb2b"}),i.play=new i("play",{fontCharacter:"\\eb2c"}),i.run=new i("run",{fontCharacter:"\\eb2c"}),i.plug=new i("plug",{fontCharacter:"\\eb2d"}),i.preserveCase=new i("preserve-case",{fontCharacter:"\\eb2e"}),i.preview=new i("preview",{fontCharacter:"\\eb2f"}),i.project=new i("project",{fontCharacter:"\\eb30"}),i.pulse=new i("pulse",{fontCharacter:"\\eb31"}),i.question=new i("question",{fontCharacter:"\\eb32"}),i.quote=new i("quote",{fontCharacter:"\\eb33"}),i.radioTower=new i("radio-tower",{fontCharacter:"\\eb34"}),i.reactions=new i("reactions",{fontCharacter:"\\eb35"}),i.references=new i("references",{fontCharacter:"\\eb36"}),i.refresh=new i("refresh",{fontCharacter:"\\eb37"}),i.regex=new i("regex",{fontCharacter:"\\eb38"}),i.remoteExplorer=new i("remote-explorer",{fontCharacter:"\\eb39"}),i.remote=new i("remote",{fontCharacter:"\\eb3a"}),i.remove=new i("remove",{fontCharacter:"\\eb3b"}),i.replaceAll=new i("replace-all",{fontCharacter:"\\eb3c"}),i.replace=new i("replace",{fontCharacter:"\\eb3d"}),i.repoClone=new i("repo-clone",{fontCharacter:"\\eb3e"}),i.repoForcePush=new i("repo-force-push",{fontCharacter:"\\eb3f"}),i.repoPull=new i("repo-pull",{fontCharacter:"\\eb40"}),i.repoPush=new i("repo-push",{fontCharacter:"\\eb41"}),i.report=new i("report",{fontCharacter:"\\eb42"}),i.requestChanges=new i("request-changes",{fontCharacter:"\\eb43"}),i.rocket=new i("rocket",{fontCharacter:"\\eb44"}),i.rootFolderOpened=new i("root-folder-opened",{fontCharacter:"\\eb45"}),i.rootFolder=new i("root-folder",{fontCharacter:"\\eb46"}),i.rss=new i("rss",{fontCharacter:"\\eb47"}),i.ruby=new i("ruby",{fontCharacter:"\\eb48"}),i.saveAll=new i("save-all",{fontCharacter:"\\eb49"}),i.saveAs=new i("save-as",{fontCharacter:"\\eb4a"}),i.save=new i("save",{fontCharacter:"\\eb4b"}),i.screenFull=new i("screen-full",{fontCharacter:"\\eb4c"}),i.screenNormal=new i("screen-normal",{fontCharacter:"\\eb4d"}),i.searchStop=new i("search-stop",{fontCharacter:"\\eb4e"}),i.server=new i("server",{fontCharacter:"\\eb50"}),i.settingsGear=new i("settings-gear",{fontCharacter:"\\eb51"}),i.settings=new i("settings",{fontCharacter:"\\eb52"}),i.shield=new i("shield",{fontCharacter:"\\eb53"}),i.smiley=new i("smiley",{fontCharacter:"\\eb54"}),i.sortPrecedence=new i("sort-precedence",{fontCharacter:"\\eb55"}),i.splitHorizontal=new i("split-horizontal",{fontCharacter:"\\eb56"}),i.splitVertical=new i("split-vertical",{fontCharacter:"\\eb57"}),i.squirrel=new i("squirrel",{fontCharacter:"\\eb58"}),i.starFull=new i("star-full",{fontCharacter:"\\eb59"}),i.starHalf=new i("star-half",{fontCharacter:"\\eb5a"}),i.symbolClass=new i("symbol-class",{fontCharacter:"\\eb5b"}),i.symbolColor=new i("symbol-color",{fontCharacter:"\\eb5c"}),i.symbolCustomColor=new i("symbol-customcolor",{fontCharacter:"\\eb5c"}),i.symbolConstant=new i("symbol-constant",{fontCharacter:"\\eb5d"}),i.symbolEnumMember=new i("symbol-enum-member",{fontCharacter:"\\eb5e"}),i.symbolField=new i("symbol-field",{fontCharacter:"\\eb5f"}),i.symbolFile=new i("symbol-file",{fontCharacter:"\\eb60"}),i.symbolInterface=new i("symbol-interface",{fontCharacter:"\\eb61"}),i.symbolKeyword=new i("symbol-keyword",{fontCharacter:"\\eb62"}),i.symbolMisc=new i("symbol-misc",{fontCharacter:"\\eb63"}),i.symbolOperator=new i("symbol-operator",{fontCharacter:"\\eb64"}),i.symbolProperty=new i("symbol-property",{fontCharacter:"\\eb65"}),i.wrench=new i("wrench",{fontCharacter:"\\eb65"}),i.wrenchSubaction=new i("wrench-subaction",{fontCharacter:"\\eb65"}),i.symbolSnippet=new i("symbol-snippet",{fontCharacter:"\\eb66"}),i.tasklist=new i("tasklist",{fontCharacter:"\\eb67"}),i.telescope=new i("telescope",{fontCharacter:"\\eb68"}),i.textSize=new i("text-size",{fontCharacter:"\\eb69"}),i.threeBars=new i("three-bars",{fontCharacter:"\\eb6a"}),i.thumbsdown=new i("thumbsdown",{fontCharacter:"\\eb6b"}),i.thumbsup=new i("thumbsup",{fontCharacter:"\\eb6c"}),i.tools=new i("tools",{fontCharacter:"\\eb6d"}),i.triangleDown=new i("triangle-down",{fontCharacter:"\\eb6e"}),i.triangleLeft=new i("triangle-left",{fontCharacter:"\\eb6f"}),i.triangleRight=new i("triangle-right",{fontCharacter:"\\eb70"}),i.triangleUp=new i("triangle-up",{fontCharacter:"\\eb71"}),i.twitter=new i("twitter",{fontCharacter:"\\eb72"}),i.unfold=new i("unfold",{fontCharacter:"\\eb73"}),i.unlock=new i("unlock",{fontCharacter:"\\eb74"}),i.unmute=new i("unmute",{fontCharacter:"\\eb75"}),i.unverified=new i("unverified",{fontCharacter:"\\eb76"}),i.verified=new i("verified",{fontCharacter:"\\eb77"}),i.versions=new i("versions",{fontCharacter:"\\eb78"}),i.vmActive=new i("vm-active",{fontCharacter:"\\eb79"}),i.vmOutline=new i("vm-outline",{fontCharacter:"\\eb7a"}),i.vmRunning=new i("vm-running",{fontCharacter:"\\eb7b"}),i.watch=new i("watch",{fontCharacter:"\\eb7c"}),i.whitespace=new i("whitespace",{fontCharacter:"\\eb7d"}),i.wholeWord=new i("whole-word",{fontCharacter:"\\eb7e"}),i.window=new i("window",{fontCharacter:"\\eb7f"}),i.wordWrap=new i("word-wrap",{fontCharacter:"\\eb80"}),i.zoomIn=new i("zoom-in",{fontCharacter:"\\eb81"}),i.zoomOut=new i("zoom-out",{fontCharacter:"\\eb82"}),i.listFilter=new i("list-filter",{fontCharacter:"\\eb83"}),i.listFlat=new i("list-flat",{fontCharacter:"\\eb84"}),i.listSelection=new i("list-selection",{fontCharacter:"\\eb85"}),i.selection=new i("selection",{fontCharacter:"\\eb85"}),i.listTree=new i("list-tree",{fontCharacter:"\\eb86"}),i.debugBreakpointFunctionUnverified=new i("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),i.debugBreakpointFunction=new i("debug-breakpoint-function",{fontCharacter:"\\eb88"}),i.debugBreakpointFunctionDisabled=new i("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),i.debugStackframeActive=new i("debug-stackframe-active",{fontCharacter:"\\eb89"}),i.circleSmallFilled=new i("circle-small-filled",{fontCharacter:"\\eb8a"}),i.debugStackframeDot=new i("debug-stackframe-dot",i.circleSmallFilled.definition),i.debugStackframe=new i("debug-stackframe",{fontCharacter:"\\eb8b"}),i.debugStackframeFocused=new i("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),i.debugBreakpointUnsupported=new i("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),i.symbolString=new i("symbol-string",{fontCharacter:"\\eb8d"}),i.debugReverseContinue=new i("debug-reverse-continue",{fontCharacter:"\\eb8e"}),i.debugStepBack=new i("debug-step-back",{fontCharacter:"\\eb8f"}),i.debugRestartFrame=new i("debug-restart-frame",{fontCharacter:"\\eb90"}),i.callIncoming=new i("call-incoming",{fontCharacter:"\\eb92"}),i.callOutgoing=new i("call-outgoing",{fontCharacter:"\\eb93"}),i.menu=new i("menu",{fontCharacter:"\\eb94"}),i.expandAll=new i("expand-all",{fontCharacter:"\\eb95"}),i.feedback=new i("feedback",{fontCharacter:"\\eb96"}),i.groupByRefType=new i("group-by-ref-type",{fontCharacter:"\\eb97"}),i.ungroupByRefType=new i("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),i.account=new i("account",{fontCharacter:"\\eb99"}),i.bellDot=new i("bell-dot",{fontCharacter:"\\eb9a"}),i.debugConsole=new i("debug-console",{fontCharacter:"\\eb9b"}),i.library=new i("library",{fontCharacter:"\\eb9c"}),i.output=new i("output",{fontCharacter:"\\eb9d"}),i.runAll=new i("run-all",{fontCharacter:"\\eb9e"}),i.syncIgnored=new i("sync-ignored",{fontCharacter:"\\eb9f"}),i.pinned=new i("pinned",{fontCharacter:"\\eba0"}),i.githubInverted=new i("github-inverted",{fontCharacter:"\\eba1"}),i.debugAlt=new i("debug-alt",{fontCharacter:"\\eb91"}),i.serverProcess=new i("server-process",{fontCharacter:"\\eba2"}),i.serverEnvironment=new i("server-environment",{fontCharacter:"\\eba3"}),i.pass=new i("pass",{fontCharacter:"\\eba4"}),i.stopCircle=new i("stop-circle",{fontCharacter:"\\eba5"}),i.playCircle=new i("play-circle",{fontCharacter:"\\eba6"}),i.record=new i("record",{fontCharacter:"\\eba7"}),i.debugAltSmall=new i("debug-alt-small",{fontCharacter:"\\eba8"}),i.vmConnect=new i("vm-connect",{fontCharacter:"\\eba9"}),i.cloud=new i("cloud",{fontCharacter:"\\ebaa"}),i.merge=new i("merge",{fontCharacter:"\\ebab"}),i.exportIcon=new i("export",{fontCharacter:"\\ebac"}),i.graphLeft=new i("graph-left",{fontCharacter:"\\ebad"}),i.magnet=new i("magnet",{fontCharacter:"\\ebae"}),i.notebook=new i("notebook",{fontCharacter:"\\ebaf"}),i.redo=new i("redo",{fontCharacter:"\\ebb0"}),i.checkAll=new i("check-all",{fontCharacter:"\\ebb1"}),i.pinnedDirty=new i("pinned-dirty",{fontCharacter:"\\ebb2"}),i.passFilled=new i("pass-filled",{fontCharacter:"\\ebb3"}),i.circleLargeFilled=new i("circle-large-filled",{fontCharacter:"\\ebb4"}),i.circleLargeOutline=new i("circle-large-outline",{fontCharacter:"\\ebb5"}),i.combine=new i("combine",{fontCharacter:"\\ebb6"}),i.gather=new i("gather",{fontCharacter:"\\ebb6"}),i.table=new i("table",{fontCharacter:"\\ebb7"}),i.variableGroup=new i("variable-group",{fontCharacter:"\\ebb8"}),i.typeHierarchy=new i("type-hierarchy",{fontCharacter:"\\ebb9"}),i.typeHierarchySub=new i("type-hierarchy-sub",{fontCharacter:"\\ebba"}),i.typeHierarchySuper=new i("type-hierarchy-super",{fontCharacter:"\\ebbb"}),i.gitPullRequestCreate=new i("git-pull-request-create",{fontCharacter:"\\ebbc"}),i.runAbove=new i("run-above",{fontCharacter:"\\ebbd"}),i.runBelow=new i("run-below",{fontCharacter:"\\ebbe"}),i.notebookTemplate=new i("notebook-template",{fontCharacter:"\\ebbf"}),i.debugRerun=new i("debug-rerun",{fontCharacter:"\\ebc0"}),i.workspaceTrusted=new i("workspace-trusted",{fontCharacter:"\\ebc1"}),i.workspaceUntrusted=new i("workspace-untrusted",{fontCharacter:"\\ebc2"}),i.workspaceUnspecified=new i("workspace-unspecified",{fontCharacter:"\\ebc3"}),i.terminalCmd=new i("terminal-cmd",{fontCharacter:"\\ebc4"}),i.terminalDebian=new i("terminal-debian",{fontCharacter:"\\ebc5"}),i.terminalLinux=new i("terminal-linux",{fontCharacter:"\\ebc6"}),i.terminalPowershell=new i("terminal-powershell",{fontCharacter:"\\ebc7"}),i.terminalTmux=new i("terminal-tmux",{fontCharacter:"\\ebc8"}),i.terminalUbuntu=new i("terminal-ubuntu",{fontCharacter:"\\ebc9"}),i.terminalBash=new i("terminal-bash",{fontCharacter:"\\ebca"}),i.arrowSwap=new i("arrow-swap",{fontCharacter:"\\ebcb"}),i.copy=new i("copy",{fontCharacter:"\\ebcc"}),i.personAdd=new i("person-add",{fontCharacter:"\\ebcd"}),i.filterFilled=new i("filter-filled",{fontCharacter:"\\ebce"}),i.wand=new i("wand",{fontCharacter:"\\ebcf"}),i.debugLineByLine=new i("debug-line-by-line",{fontCharacter:"\\ebd0"}),i.inspect=new i("inspect",{fontCharacter:"\\ebd1"}),i.layers=new i("layers",{fontCharacter:"\\ebd2"}),i.layersDot=new i("layers-dot",{fontCharacter:"\\ebd3"}),i.layersActive=new i("layers-active",{fontCharacter:"\\ebd4"}),i.compass=new i("compass",{fontCharacter:"\\ebd5"}),i.compassDot=new i("compass-dot",{fontCharacter:"\\ebd6"}),i.compassActive=new i("compass-active",{fontCharacter:"\\ebd7"}),i.azure=new i("azure",{fontCharacter:"\\ebd8"}),i.issueDraft=new i("issue-draft",{fontCharacter:"\\ebd9"}),i.gitPullRequestClosed=new i("git-pull-request-closed",{fontCharacter:"\\ebda"}),i.gitPullRequestDraft=new i("git-pull-request-draft",{fontCharacter:"\\ebdb"}),i.debugAll=new i("debug-all",{fontCharacter:"\\ebdc"}),i.debugCoverage=new i("debug-coverage",{fontCharacter:"\\ebdd"}),i.runErrors=new i("run-errors",{fontCharacter:"\\ebde"}),i.folderLibrary=new i("folder-library",{fontCharacter:"\\ebdf"}),i.debugContinueSmall=new i("debug-continue-small",{fontCharacter:"\\ebe0"}),i.beakerStop=new i("beaker-stop",{fontCharacter:"\\ebe1"}),i.graphLine=new i("graph-line",{fontCharacter:"\\ebe2"}),i.graphScatter=new i("graph-scatter",{fontCharacter:"\\ebe3"}),i.pieChart=new i("pie-chart",{fontCharacter:"\\ebe4"}),i.bracket=new i("bracket",i.json.definition),i.bracketDot=new i("bracket-dot",{fontCharacter:"\\ebe5"}),i.bracketError=new i("bracket-error",{fontCharacter:"\\ebe6"}),i.lockSmall=new i("lock-small",{fontCharacter:"\\ebe7"}),i.azureDevops=new i("azure-devops",{fontCharacter:"\\ebe8"}),i.verifiedFilled=new i("verified-filled",{fontCharacter:"\\ebe9"}),i.newLine=new i("newline",{fontCharacter:"\\ebea"}),i.layout=new i("layout",{fontCharacter:"\\ebeb"}),i.layoutActivitybarLeft=new i("layout-activitybar-left",{fontCharacter:"\\ebec"}),i.layoutActivitybarRight=new i("layout-activitybar-right",{fontCharacter:"\\ebed"}),i.layoutPanelLeft=new i("layout-panel-left",{fontCharacter:"\\ebee"}),i.layoutPanelCenter=new i("layout-panel-center",{fontCharacter:"\\ebef"}),i.layoutPanelJustify=new i("layout-panel-justify",{fontCharacter:"\\ebf0"}),i.layoutPanelRight=new i("layout-panel-right",{fontCharacter:"\\ebf1"}),i.layoutPanel=new i("layout-panel",{fontCharacter:"\\ebf2"}),i.layoutSidebarLeft=new i("layout-sidebar-left",{fontCharacter:"\\ebf3"}),i.layoutSidebarRight=new i("layout-sidebar-right",{fontCharacter:"\\ebf4"}),i.layoutStatusbar=new i("layout-statusbar",{fontCharacter:"\\ebf5"}),i.layoutMenubar=new i("layout-menubar",{fontCharacter:"\\ebf6"}),i.layoutCentered=new i("layout-centered",{fontCharacter:"\\ebf7"}),i.layoutSidebarRightOff=new i("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),i.layoutPanelOff=new i("layout-panel-off",{fontCharacter:"\\ec01"}),i.layoutSidebarLeftOff=new i("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),i.target=new i("target",{fontCharacter:"\\ebf8"}),i.indent=new i("indent",{fontCharacter:"\\ebf9"}),i.recordSmall=new i("record-small",{fontCharacter:"\\ebfa"}),i.errorSmall=new i("error-small",{fontCharacter:"\\ebfb"}),i.arrowCircleDown=new i("arrow-circle-down",{fontCharacter:"\\ebfc"}),i.arrowCircleLeft=new i("arrow-circle-left",{fontCharacter:"\\ebfd"}),i.arrowCircleRight=new i("arrow-circle-right",{fontCharacter:"\\ebfe"}),i.arrowCircleUp=new i("arrow-circle-up",{fontCharacter:"\\ebff"}),i.heartFilled=new i("heart-filled",{fontCharacter:"\\ec04"}),i.map=new i("map",{fontCharacter:"\\ec05"}),i.mapFilled=new i("map-filled",{fontCharacter:"\\ec06"}),i.circleSmall=new i("circle-small",{fontCharacter:"\\ec07"}),i.bellSlash=new i("bell-slash",{fontCharacter:"\\ec08"}),i.bellSlashDot=new i("bell-slash-dot",{fontCharacter:"\\ec09"}),i.commentUnresolved=new i("comment-unresolved",{fontCharacter:"\\ec0a"}),i.dialogError=new i("dialog-error",i.error.definition),i.dialogWarning=new i("dialog-warning",i.warning.definition),i.dialogInfo=new i("dialog-info",i.info.definition),i.dialogClose=new i("dialog-close",i.close.definition),i.treeItemExpanded=new i("tree-item-expanded",i.chevronDown.definition),i.treeFilterOnTypeOn=new i("tree-filter-on-type-on",i.listFilter.definition),i.treeFilterOnTypeOff=new i("tree-filter-on-type-off",i.listSelection.definition),i.treeFilterClear=new i("tree-filter-clear",i.close.definition),i.treeItemLoading=new i("tree-item-loading",i.loading.definition),i.menuSelection=new i("menu-selection",i.check.definition),i.menuSubmenu=new i("menu-submenu",i.chevronRight.definition),i.menuBarMore=new i("menubar-more",i.more.definition),i.scrollbarButtonLeft=new i("scrollbar-button-left",i.triangleLeft.definition),i.scrollbarButtonRight=new i("scrollbar-button-right",i.triangleRight.definition),i.scrollbarButtonUp=new i("scrollbar-button-up",i.triangleUp.definition),i.scrollbarButtonDown=new i("scrollbar-button-down",i.triangleDown.definition),i.toolBarMore=new i("toolbar-more",i.more.definition),i.quickInputBack=new i("quick-input-back",i.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){if(e instanceof i)return["codicon","codicon-"+e.id];const r=t.exec(e.id);if(!r)return n(i.error);const[,s,a]=r,o=["codicon","codicon-"+s];return a&&o.push("codicon-modifier-"+a.substr(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")}}(s||(s={}))},75909:(e,t,n)=>{"use strict";n.d(t,{AL:()=>l,D7:()=>m,EM:()=>f,MB:()=>c,M_:()=>s,Qg:()=>d,aD:()=>u,cU:()=>a,dz:()=>i,iH:()=>h});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i(e){c(e)||r.onUnexpectedError(e)}function s(e){c(e)||r.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const o="Canceled";function c(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function u(){const e=new Error(o);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,n)=>{"use strict";n.d(t,{AS:()=>h,BO:()=>_,Cm:()=>m,HE:()=>y,St:()=>b,Xm:()=>d,jG:()=>g,lC:()=>l,mp:()=>v,qE:()=>f,s:()=>p});var r=n(8663),i=n(16624);let s=null;function a(e){return null===s||void 0===s||s.trackDisposable(e),e}function o(e){null===s||void 0===s||s.markAsDisposed(e)}function c(e,t){null===s||void 0===s||s.setParent(e,t)}function l(e){return null===s||void 0===s||s.markAsSingleton(e),e}class u extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function d(e){return"function"===typeof e.dispose&&0===e.dispose.length}function h(e){if(i.f.is(e)){const n=[];for(const r of e)if(r)try{r.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new u(n);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=p((()=>h(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function p(e){const t=a({dispose:(0,r.O)((()=>{o(t),e()}))});return t}class m{constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(o(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,a(this),c(this._store,this)}dispose(){o(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 y{constructor(){this._isDisposed=!1,a(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,o(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 v{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class b{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,a(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>void 0!==t,this.dispose=()=>{t&&(t(),t=void 0,o(this))},this}}class _{constructor(e){this.object=e}dispose(){}}},1273:(e,t,n)=>{"use strict";n.d(t,{B6:()=>k,Fd:()=>v,LC:()=>m,P8:()=>p,Pi:()=>f,er:()=>d,iZ:()=>b,n4:()=>h,o1:()=>_,pD:()=>g,su:()=>l,uJ:()=>y});var r=n(78284),i=n(46442),s=n(72142),a=n(55977),o=n(24638),c=n(65698);function l(e){return(0,c.I)(e,!0)}class u{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,o.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}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,n=!1){if(e.scheme===t.scheme){if(e.scheme===i.ny.file)return r._1(l(e),l(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(w(e.authority,t.authority))return r._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||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 s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===i.ny.file?t=c.r.file(s.pD(l(e))).path:(t=s.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===i.ny.file?c.r.file(s.S8(l(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!w(e.authority,t.authority))return;if(e.scheme===i.ny.file){const n=s.V8(l(e),l(t));return a.uF?r.TH(n):n}let n=e.path||"/";const o=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,o.length);e<t&&(n.charCodeAt(e)===o.charCodeAt(e)||n.charAt(e).toLowerCase()===o.charAt(e).toLowerCase());e++);n=o.substr(0,e)+n.substr(e)}return s.SA.relative(n,o)}resolvePath(e,t){if(e.scheme===i.ny.file){const n=c.r.file(s.hd(l(e),t));return e.with({authority:n.authority,path:n.path})}return t=r.kb(t),e.with({path:s.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,o.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===i.ny.file){const n=l(e);return n.length>r.Zn(n).length&&n[n.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=s.Vn){return S(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===i.ny.file){const i=l(e);n=void 0!==i&&i.length===r.Zn(i).length&&i[i.length-1]===t}else{t="/";const r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||S(e,t)?e:e.with({path:e.path+"/"})}}const d=new u((()=>!1)),h=(new u((e=>e.scheme!==i.ny.file||!a.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),y=d.joinPath.bind(d),v=d.normalizePath.bind(d),b=d.relativePath.bind(d),_=d.resolvePath.bind(d),w=(d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),S=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 n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,r]=e.split(":");t&&r&&n.set(t,r)}));const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(k||(k={}))},3688:(e,t,n)=>{"use strict";n.d(t,{C1:()=>s,Ym:()=>r,kF:()=>i});const r={ctrlCmd:!1,alt:!1};var i,s;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(i||(i={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(s||(s={}));new class{constructor(e){this.options=e}}},59806:(e,t,n)=>{"use strict";n.d(t,{Du:()=>h,Su:()=>f,aI:()=>d,b7:()=>u});var r=n(24638),i=n(55977),s=n(52756);let a,o,c;function l(){return a||(a=new TextDecoder("UTF-16LE")),a}function u(){return c||(c=i.cm()?l():(o||(o=new TextDecoder("UTF-16BE")),o)),c}const d="undefined"!==typeof TextDecoder;let h,f;function p(e,t,n){const r=[];let i=0;for(let a=0;a<n;a++){const n=s.$l(e,t);t+=2,r[i++]=String.fromCharCode(n)}return r.join("")}d?(h=e=>new m(e),f=function(e,t,n){const r=new Uint16Array(e.buffer,t,n);if(n>0&&(65279===r[0]||65534===r[0]))return p(e,t,n);return l().decode(r)}):(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||r.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 n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)}}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,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(17924);class i extends r.V{constructor(e){super(0);for(let t=0,n=e.length;t<n;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}const s=function(e){const t={};return n=>(t.hasOwnProperty(n)||(t[n]=e(n)),t[n])}((e=>new i(e)))},76220:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=(0,n(34029).u1)("languageService")},35065:(e,t,n)=>{"use strict";n.d(t,{A5:()=>r,Dg:()=>c,F4:()=>d,L5:()=>u,R3:()=>i,VW:()=>s,Wo:()=>l,X2:()=>o,vd:()=>h});var r,i,s,a=n(61460);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(r||(r={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(i||(i={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class o{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,a.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,n,r,i,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=i,this._isTracked=s}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class d{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function h(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},19724:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});const r=(0,n(34029).u1)("modelService")},92320:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(34029).u1)("textModelService")},6751:(e,t,n)=>{"use strict";n.d(t,{E6:()=>u,Hw:()=>s,YN:()=>i,b2:()=>r,gf:()=>o,n9:()=>c,oq:()=>a,tu:()=>d,vp:()=>l});var r,i,s,a,o,c,l,u,d,h=n(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")}(r||(r={})),function(e){e.inspectTokensAction=h.kg("inspectTokens","Developer: Inspect Tokens")}(i||(i={})),function(e){e.gotoLineActionLabel=h.kg("gotoLineActionLabel","Go to Line/Column...")}(s||(s={})),function(e){e.helpQuickAccessActionLabel=h.kg("helpQuickAccess","Show all Quick Access Providers")}(a||(a={})),function(e){e.quickCommandActionLabel=h.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=h.kg("quickCommandActionHelp","Show And Run Commands")}(o||(o={})),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,n)=>{"use strict";n.d(t,{QE:()=>We,XB:()=>Oe,Zc:()=>Le});n(10884),n(96696),n(28313),n(53166),n(40098);var r=n(24638),i=n(90491),s=n(41828),a=n(42464),o=n(31401),c=n(55808),l=n(55977),u=n(77721),d=n(65698),h=n(72799),f=n(43077),p=n(73983),m=n(55547),g=n(62915),y=n(19724),v=n(92320),b=n(42982),_=n(16281),w=n(58471),S=n(54925),k=n(21181),C=n(90301),E=n(34029),x=n(85484),T=n(47925),I=n(28951),A=n(11563),O=n(80858),R=n(65491),D=n(70679),M=n(74349),F=n(53229),z=n(45769),N=n(86377),L=n(8547),P=n(6751),B=n(1273),j=n(88459),U=n(91823),$=n(25555),W=n(95166),H=n(64355),q=n(94411),K=n(4235),G=n(16974),V=n(62848),J=n(84214),Z=n(87594),X=n(38572),Y=n(76220),Q=n(76237),ee=n(90324),te=n(47461),ne=n(61249),re=n(85976),ie=n(83238),se=n(78427),ae=n(88355),oe=n(93593),ce=n(50284),le=n(51031),ue=n(43772),de=n(49539),he=n(96810),fe=n(96621),pe=n(7087),me=n(22407),ge=n(40145),ye=n(56247),ve=n(46025),be=n(31001),_e=n(87899),we=(n(84254),n(66578)),Se=function(e,t,n,r){var i,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,n,a):i(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},ke=function(e,t){return function(n,r){t(n,r,e)}},Ce=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(t){s(t)}}function o(e){try{c(r.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))};class Ee{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new a.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let xe=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new c.BO(new Ee(t))):Promise.reject(new Error("Model not found"))}};xe=Se([ke(0,y.S)],xe);class Te{show(){return Te.NULL_PROGRESS_RUNNER}showWhile(e,t){return Ce(this,void 0,void 0,(function*(){yield e}))}}Te.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Ie{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 Ie.NO_OP}status(e,t){return c.jG.None}}Ie.NO_OP=new M.Kz;let Ae=class{constructor(e){this._onWillExecuteCommand=new a.vl,this._onDidExecuteCommand=new a.vl,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const n=_.wb.getCommand(e);if(!n)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const r=this._instantiationService.invokeFunction.apply(this._instantiationService,[n.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(r)}catch(r){return Promise.reject(r)}}};Ae=Se([ke(0,E._Y)],Ae);let Oe=class extends x.E{constructor(e,t,n,r,a,o){super(e,t,n,r,a),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const l=e=>{const t=new c.Cm;t.add(i.ko(e,i.Bx.KEY_DOWN,(e=>{const t=new s.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(i.ko(e,i.Bx.KEY_UP,(e=>{const t=new s.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Re(e,t))},u=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const n=this._domNodeListeners[t];n.domNode===e&&(this._domNodeListeners.splice(t,1),n.dispose())}},d=e=>{e.getOption(55)||l(e.getContainerDomNode())};this._register(o.onCodeEditorAdd(d)),this._register(o.onCodeEditorRemove((e=>{e.getOption(55)||u(e.getContainerDomNode())}))),o.listCodeEditors().forEach(d);const h=e=>{l(e.getContainerDomNode())};this._register(o.onDiffEditorAdd(h)),this._register(o.onDiffEditorRemove((e=>{u(e.getContainerDomNode())}))),o.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,n,r){const i=(0,o.ZU)(t,l.OS),s=new c.Cm;return i&&(this._dynamicKeybindings.push({keybinding:i.parts,command:e,when:r,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),s.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()}})))),s.add(_.wb.registerCommand(e,n)),this.updateResolver(),s}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(A.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new I.f(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const n=[];let r=0;for(const i of e){const e=i.when||void 0,s=i.keybinding;if(s){const a=R.j.resolveUserBinding(s,l.OS);for(const s of a)n[r++]=new O.u(s,i.command,i.commandArgs,e,t,null,!1)}else n[r++]=new O.u(void 0,i.command,i.commandArgs,e,t,null,!1)}return n}resolveKeyboardEvent(e){const t=new o.h$(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new R.j(t,l.OS)}};Oe=Se([ke(0,k.fN),ke(1,_.wT),ke(2,z.k),ke(3,M.Ot),ke(4,U.rr),ke(5,j.T)],Oe);class Re 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 Me{constructor(){this._onDidChangeConfiguration=new a.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new S.Vk(new we.z,new S.S1,new S.S1,new S.S1)}getValue(e,t){const n="string"===typeof e?e:void 0,r=De(e)?e:De(t)?t:{};return this._configuration.getValue(n,r,void 0)}updateValues(e){const t={data:this._configuration.toData()},n=[];for(const r of e){const[e,t]=r;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),n.push(e))}if(n.length>0){const e=new S.Xm({keys:n,overrides:[]},t,this._configuration);e.source=7,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,n,r){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let Fe=class{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new a.vl,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,n)=>e.affectsConfiguration(n)})}))}getValue(e,t,n){const r=(m.y.isIPosition(t)?t:null)?"string"===typeof n?n:void 0:"string"===typeof t?t:void 0;return"undefined"===typeof r?this.configurationService.getValue():this.configurationService.getValue(r)}};Fe=Se([ke(0,w.pG)],Fe);let ze=class{constructor(e){this.configurationService=e}getEOL(e,t){const n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"string"===typeof n&&"auto"!==n?n:l.j9||l.zx?"\n":"\r\n"}};ze=Se([ke(0,w.pG)],ze);class Ne{constructor(){const e=d.r.from({scheme:Ne.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new N.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Ne.SCHEME?this.workspace.folders[0]:null}}function Le(e,t,n){if(!t)return;if(!(e instanceof Me))return;const r=[];Object.keys(t).forEach((e=>{(0,f.vf)(e)&&r.push([`editor.${e}`,t[e]]),n&&(0,f.Gn)(e)&&r.push([`diffEditor.${e}`,t[e]])})),r.length>0&&e.updateValues(r)}Ne.SCHEME="inmemory";let Pe=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return Ce(this,void 0,void 0,(function*(){const t=new Map;for(const r of e){if(!(r instanceof h.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(r.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof r.versionId&&e.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let n=t.get(e);n||(n=[],t.set(e,n)),n.push(p.k.replaceMove(g.Q.lift(r.textEdit.range),r.textEdit.text))}let n=0,i=0;for(const[e,r]of t)e.pushStackElement(),e.pushEditOperations([],r,(()=>[])),e.pushStackElement(),i+=1,n+=r.length;return{ariaSummary:r.GP(P.tu.bulkEditServiceSummary,n,i)}}))}};Pe=Se([ke(0,y.S)],Pe);let Be=class extends H.Y{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,n){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,n)}};Be=Se([ke(0,L.x),ke(1,j.T)],Be);class je extends q.g{constructor(){super()}}class Ue extends U.Kc{constructor(){super(new U.Cr)}}let $e=class extends K.K{constructor(e,t,n,r,i){super(e,t,n,r,i),this.configure({blockMouse:!1})}};var We;$e=Se([ke(0,z.k),ke(1,M.Ot),ke(2,W.l),ke(3,T.b),ke(4,G.Gy)],$e),(0,V.v)(w.pG,Me),(0,V.v)(b.U,Fe),(0,V.v)(b.J,ze),(0,V.v)(N.VR,Ne),(0,V.v)(D.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,B.P8)(e)}}),(0,V.v)(z.k,class{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}),(0,V.v)(C.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,n,r){return Promise.resolve({choice:0})}}),(0,V.v)(M.Ot,Ie),(0,V.v)(ge.DR,ye.m),(0,V.v)(Y.L,je),(0,V.v)(ie.L,re.Sx),(0,V.v)(U.rr,Ue),(0,V.v)(y.S,te.JW),(0,V.v)(ee.A,Q.D),(0,V.v)(k.fN,de.i7),(0,V.v)(F.G5,class{withProgress(e,t,n){return t({report:()=>{}})}}),(0,V.v)(F.N8,Te),(0,V.v)(_e.CS,_e.pc),(0,V.v)(Z.w,X.Bc),(0,V.v)(h.nu,Pe),(0,V.v)($.L,class{constructor(){this._neverEmitter=new a.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}),(0,V.v)(v.b,xe),(0,V.v)(ae.j,se.s),(0,V.v)(me.PE,me.aG),(0,V.v)(_.wT,Ae),(0,V.v)(T.b,Oe),(0,V.v)(be.GK,ne.oC),(0,V.v)(W.l,Be),(0,V.v)(ve.Cr,J.J),(0,V.v)(ue.h,le.w),(0,V.v)(W.Z,$e),(0,V.v)(oe.ez,ce.$),function(e){const t=new pe.a;for(const[i,s]of(0,V.N)())t.set(i,s);const n=new fe.n(t,!0);t.set(E._Y,n),e.get=function(e){const r=t.get(e);if(!r)throw new Error("Missing service "+e);return r instanceof he.d?n.invokeFunction((t=>t.get(e))):r};let r=!1;e.initialize=function(e){if(r)return n;r=!0;for(const[n,r]of(0,V.N)())t.get(n)||t.set(n,r);for(const n in e)if(e.hasOwnProperty(n)){const r=(0,E.u1)(n);t.get(r)instanceof he.d&&t.set(r,e[n])}return n}}(We||(We={}))},35819:(e,t,n)=>{"use strict";n.d(t,{AM:()=>a,kg:()=>s});let r="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function i(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],i=t[r];let s=e;return"string"===typeof i?s=i:"number"!==typeof i&&"boolean"!==typeof i&&void 0!==i&&null!==i||(s=String(i)),s})),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function s(e,t,...n){return i(t,n)}function a(e){}},34029:(e,t,n)=>{"use strict";var r;n.d(t,{_$:()=>r,_Y:()=>i,u1:()=>s}),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]||[]}}(r||(r={}));const i=s("instantiationService");function s(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n}],t[r.DI_TARGET]=t)}(t,e,i)};return t.toString=()=>e,r.serviceIds.set(e,t),t}},95856:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9793),i=n(98173);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};var a=n(8880),o=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:s}))};const c=i.forwardRef(o)},6987:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9793),i=n(98173);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};var a=n(8880),o=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:s}))};const c=i.forwardRef(o)},48426:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9793),i=n(98173);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"};var a=n(8880),o=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:s}))};const c=i.forwardRef(o)},73773:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9793),i=n(98173);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 01520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 01270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 010 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"}}]},name:"login",theme:"outlined"};var a=n(8880),o=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:s}))};const c=i.forwardRef(o)},47459:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9793),i=n(98173);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-80.8 108.9L531.7 514.4c-7.8 6.1-18.7 6.1-26.5 0L189.6 268.9A7.2 7.2 0 01194 256h648.8a7.2 7.2 0 014.4 12.9z"}}]},name:"mail",theme:"filled"};var a=n(8880),o=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:s}))};const c=i.forwardRef(o)},27010:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9793),i=n(98173);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"right-square",theme:"outlined"};var a=n(8880),o=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:s}))};const c=i.forwardRef(o)},59913:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9793),i=n(98173);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"};var a=n(8880),o=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:s}))};const c=i.forwardRef(o)},17488:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9793),i=n(98173);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"};var a=n(8880),o=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:s}))};const c=i.forwardRef(o)},1096:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9793),i=n(98173);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z"}}]},name:"usergroup-add",theme:"outlined"};var a=n(8880),o=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:s}))};const c=i.forwardRef(o)},72053:(e,t,n)=>{"use strict";n.d(t,{G_:()=>s});var r=n(98173);const i=(0,r.createContext)(null);function s({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:s,children:a}){const o=function(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:i}=e,[s,a]=(0,r.useState)(!1),o=(0,r.useRef)(n);o.current=n;const c=(0,r.useRef)(i);return c.current=i,(0,r.useEffect)((()=>{const e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.nonce=t,e.onload=()=>{var e;a(!0),null===(e=o.current)||void 0===e||e.call(o)},e.onerror=()=>{var e;a(!1),null===(e=c.current)||void 0===e||e.call(c)},document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[t]),s}({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:s}),c=(0,r.useMemo)((()=>({clientId:e,scriptLoadedSuccessfully:o})),[e,o]);return r.createElement(i.Provider,{value:c},a)}},24833:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i;n.d(t,{AO:()=>l,Gh:()=>A,HS:()=>O,Rr:()=>u,V1:()=>x,pX:()=>N,pb:()=>E,rc:()=>i,tH:()=>F,ue:()=>f,zR:()=>a}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const s="popstate";function a(e){return void 0===e&&(e={}),d((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return c("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:l(t)}),null,e)}function o(e){return{usr:e.state,key:e.key}}function c(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?u(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function l(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function u(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function d(e,t,n,r){void 0===r&&(r={});let{window:a=document.defaultView,v5Compat:l=!1}=r,u=a.history,d=i.Pop,h=null;function f(){d=i.Pop,h&&h({action:d,location:p.location})}let p={get action(){return d},get location(){return e(a,u)},listen(e){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(s,f),h=e,()=>{a.removeEventListener(s,f),h=null}},createHref:e=>t(a,e),push:function(e,t){d=i.Push;let r=c(p.location,e,t);n&&n(r,e);let s=o(r),f=p.createHref(r);try{u.pushState(s,"",f)}catch(m){a.location.assign(f)}l&&h&&h({action:d,location:r})},replace:function(e,t){d=i.Replace;let r=c(p.location,e,t);n&&n(r,e);let s=o(r),a=p.createHref(r);u.replaceState(s,"",a),l&&h&&h({action:d,location:r})},go:e=>u.go(e)};return p}var h;function f(e,t,n){void 0===n&&(n="/");let r=E(("string"===typeof t?u(t):t).pathname||"/",n);if(null==r)return null;let i=p(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let s=null;for(let a=0;null==s&&a<i.length;++a)s=k(i[a],r);return s}function p(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach(((e,i)=>{let s={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(x(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let a=O([r,s.relativePath]),o=n.concat(s);e.children&&e.children.length>0&&(x(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),p(e.children,t,o,a)),(null!=e.path||e.index)&&t.push({path:a,score:S(a,e.index),routesMeta:o})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));const m=/^:\w+$/,g=3,y=2,v=1,b=10,_=-2,w=e=>"*"===e;function S(e,t){let n=e.split("/"),r=n.length;return n.some(w)&&(r+=_),t&&(r+=y),n.filter((e=>!w(e))).reduce(((e,t)=>e+(m.test(t)?g:""===t?v:b)),r)}function k(e,t){let{routesMeta:n}=e,r={},i="/",s=[];for(let a=0;a<n.length;++a){let e=n[a],o=a===n.length-1,c="/"===i?t:t.slice(i.length)||"/",l=C({path:e.relativePath,caseSensitive:e.caseSensitive,end:o},c);if(!l)return null;Object.assign(r,l.params);let u=e.route;s.push({params:r,pathname:O([i,l.pathname]),pathnameBase:R(O([i,l.pathnameBase])),route:u}),"/"!==l.pathnameBase&&(i=O([i,l.pathnameBase]))}return s}function C(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);T("*"===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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(r.push(t),"([^\\/]+)")));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let s=new RegExp(i,t?void 0:"i");return[s,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=o[n]||"";a=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return T(!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 ('+n+")."),e}}(o[n]||"",t),e}),{}),pathname:s,pathnameBase:a,pattern:e}}function E(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function x(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function T(e,t){if(!e)try{throw new Error(t)}catch(n){}}function I(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function A(e,t,n,i){let s;void 0===i&&(i=!1),"string"===typeof e?s=u(e):(s=r({},e),x(!s.pathname||!s.pathname.includes("?"),I("?","pathname","search",s)),x(!s.pathname||!s.pathname.includes("#"),I("#","pathname","hash",s)),x(!s.search||!s.search.includes("#"),I("#","search","hash",s)));let a,o=""===e||""===s.pathname,c=o?"/":s.pathname;if(i||null==c)a=n;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?u(e):e,s=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:s,search:D(r),hash:M(i)}}(s,a),d=c&&"/"!==c&&c.endsWith("/"),h=(o||"."===c)&&n.endsWith("/");return l.pathname.endsWith("/")||!d&&!h||(l.pathname+="/"),l}const O=e=>e.join("/").replace(/\/\/+/g,"/"),R=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",M=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class F extends Error{}class z{constructor(e,t,n){this.status=e,this.statusText=t||"",this.data=n}}function N(e){return e instanceof z}},56750:(e,t,n)=>{"use strict";n.d(t,{dp:()=>Re});var r=n(83887),i=n(46310),s=n(2119),a=n(31006),o=n(4475),c=n(9576);let l;function u(e){return l?l.get(e):void 0}function d(e){const t=u(e);if(!t)return;const n={};for(const[,[r,i]]of t)n[r]||(n[r]=[]),n[r].push((0,c.Ce)(i));return n}var h,f=n(11620),p=n(24083);function m(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}!function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(h||(h={}));function g(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=m(t);"unknown_error"!==n&&e.setStatus(n)}class y{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class v{constructor(e={}){this._traceId=e.traceId||(0,o.eJ)(),this._spanId=e.spanId||(0,o.eJ)().substring(16),this._startTime=e.startTimestamp||(0,i.zf)(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[f.JD]:e.origin||"manual",[f.uT]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[f.uT]}set op(e){this.setAttribute(f.uT,e)}get origin(){return this._attributes[f.JD]}set origin(e){this.setAttribute(f.JD,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?a.aO:a.CC}}startChild(e){const t=new v({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=(0,p.z)(this);if(t.transaction=n,s.T&&n){const i=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${(0,a.et)(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;r.vF.log(i),this._logMessage=i}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return g(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=(0,p.z)(this);if(s.T&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&r.vF.log(e.replace("Starting","Finishing"))}this._endTime=(0,a.cI)(e)}toTraceparent(){return(0,a.Qh)(this)}toContext(){return(0,c.Ce)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return(0,a.kX)(this)}getSpanJSON(){return(0,c.Ce)({data:this._getData(),description:this._name,op:this._attributes[f.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[f.JD],_metrics_summary:d(this),profile_id:this._attributes[f.E1],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}var b=n(39434),_=n(80409),w=n(7994);function S(e){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=(0,w.KU)(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function k(e){if(!S())return;const t=x(e),n=(0,b.BF)(),r=e.scope?e.scope.getSpan():C();if(e.onlyIfParent&&!r)return;const i=(e.scope||(0,w.o5)()).clone();return E(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:i})}function C(){return(0,w.o5)().getSpan()}function E(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!S())return;const s=(0,b.rm)();let o;if(t&&!r)o=t.startChild(n);else if(t){const r=(0,_.k)(t),{traceId:i,spanId:s}=t.spanContext(),c=(0,a.pK)(t);o=e.startTransaction({traceId:i,parentSpanId:s,parentSampled:c,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{const{traceId:t,dsc:r,parentSpanId:a,sampled:c}={...s.getPropagationContext(),...i.getPropagationContext()};o=e.startTransaction({traceId:t,parentSpanId:a,parentSampled:c,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return i.setSpan(o),function(e,t,n){e&&((0,c.my)(e,I,n),(0,c.my)(e,T,t))}(o,i,s),o}function x(e){if(e.startTime){const t={...e};return t.startTimestamp=(0,a.cI)(e.startTime),delete t.startTime,t}return e}const T="_sentryScope",I="_sentryIsolationScope";class A extends v{constructor(e,t){super(e),this._contexts={},this._hub=t||(0,b.BF)(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[f.i_]&&{source:this._attributes[f.i_]},...this._attributes[f.sy]&&{sampleRate:this._attributes[f.sy]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(f.i_,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new y(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=(0,a.cI)(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){const e=super.toContext();return(0,c.Ce)({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return(0,_.k)(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(s.T&&r.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return s.T&&r.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&(0,a.et)(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>(0,a.et)(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:i,isolationScope:o}={scope:(l=this)[T],isolationScope:l[I]};var l;const{metadata:u}=this,{source:h}=u,f={contexts:{...this._contexts,trace:(0,a.kX)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...u,capturedSpanScope:i,capturedSpanIsolationScope:o,...(0,c.Ce)({dynamicSamplingContext:(0,_.k)(this)})},_metrics_summary:d(this),...h&&{transaction_info:{source:h}}};return Object.keys(this._measurements).length>0&&(s.T&&r.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),f.measurements=this._measurements),s.T&&r.vF.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),f}}const O={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},R=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class D extends y{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===(0,a.et)(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class M extends A{constructor(e,t,n=O.idleTimeout,i=O.finalTimeout,a=O.heartbeatInterval,o=!1,c=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=R[4],this._autoFinishAllowed=!c,o&&(s.T&&r.vF.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),c||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=R[3],this.end())}),this._finalTimeout)}end(e){const t=(0,a.cI)(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){s.T&&r.vF.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;(0,a.et)(e).timestamp||(e.setStatus("cancelled"),e.end(t),s.T&&r.vF.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:i}=(0,a.et)(e),o=n&&n<t,c=(this._finalTimeout+this._idleTimeout)/1e3,l=i&&n&&i-n<c;if(s.T){const t=JSON.stringify(e,void 0,2);o?l||r.vF.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):r.vF.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return o&&l})),s.T&&r.vF.log("[Tracing] flushing IdleTransaction")}else s.T&&r.vF.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new D(t,n,this.spanContext().spanId,e),s.T&&r.vF.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=R[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(s.T&&r.vF.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=R[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),s.T&&r.vF.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,s.T&&r.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(s.T&&r.vF.log(`[Tracing] popActivity ${e}`),delete this.activities[e],s.T&&r.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=(0,i.zf)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=R[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(s.T&&r.vF.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=R[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){s.T&&r.vF.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}var F=n(19150),z=n(87976);function N(e){return(e||(0,b.BF)()).getScope().getTransaction()}let L=!1;function P(){const e=N();if(e){const t="internal_error";s.T&&r.vF.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}P.tag="sentry_tracingErrorCallback";var B=n(30747);function j(e,t,n){if(!S(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(f.sy,Number(e.sampled)),e;let i;return"function"===typeof t.tracesSampler?(i=t.tracesSampler(n),e.setAttribute(f.sy,Number(i))):void 0!==n.parentSampled?i=n.parentSampled:"undefined"!==typeof t.tracesSampleRate?(i=t.tracesSampleRate,e.setAttribute(f.sy,Number(i))):(i=1,e.setAttribute(f.sy,i)),U(i)?i?(e.sampled=Math.random()<i,e.sampled?(s.T&&r.vF.log(`[Tracing] starting ${e.op} transaction - ${(0,a.et)(e).description}`),e):(s.T&&r.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),e)):(s.T&&r.vF.log("[Tracing] Discarding transaction because "+("function"===typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(s.T&&r.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function U(e){return(0,B.yr)(e)||"number"!==typeof e&&"boolean"!==typeof e?(s.T&&r.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0||e>1)||(s.T&&r.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function $(){const e=this.getScope().getSpan();return e?{"sentry-trace":(0,a.Qh)(e)}:{}}function W(e,t){const n=this.getClient(),i=n&&n.getOptions()||{},a=i.instrumenter||"sentry",o=e.instrumenter||"sentry";a!==o&&(s.T&&r.vF.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${a}\` instrumenter.\nThe transaction will not be sampled. Please use the ${a} instrumentation to start transactions.`),e.sampled=!1);let c=new A(e,this);return c=j(c,i,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),c.isRecording()&&c.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",c),c}function H(e,t,n,r,i,s,a,o=!1){const c=e.getClient(),l=c&&c.getOptions()||{};let u=new M(t,e,n,r,a,i,o);return u=j(u,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...s}),u.isRecording()&&u.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",u),u}function q(){const e=(0,b.EU)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=W),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=$),L||(L=!0,(0,F.L)(P),(0,z.r)(P)))}var K=n(34241),G=n(22059),V=n(70411),J=n(12514),Z=n(34866);var X=n(35172),Y=n(30246),Q=n(44103);function ee(e,t){const n={sent_at:(new Date).toISOString()};t&&(n.dsn=(0,Y.SB)(t));const r=e.map(te);return(0,Q.h4)(n,r)}function te(e){return[{type:"span"},e]}var ne=n(50014),re=n(81812);function ie(e){return"number"===typeof e&&isFinite(e)}function se(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}var ae=n(22894);function oe(e){return e/1e3}function ce(){return Z.j&&Z.j.addEventListener&&Z.j.performance}let le,ue,de=0,he={};function fe(){const e=ce();if(e&&i.k3){e.mark&&Z.j.performance.mark("sentry-tracing-init");const t=(0,X.T5)((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=oe(i.k3),s=oe(t.startTime);J.T&&r.vF.log("[Measurements] Adding FID"),he.fid={value:e.value,unit:"millisecond"},he["mark.fid"]={value:n+s,unit:"second"}})),n=(0,X.a9)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(J.T&&r.vF.log("[Measurements] Adding CLS"),he.cls={value:e.value,unit:""},ue=t)}),!0),s=(0,X.Pt)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(J.T&&r.vF.log("[Measurements] Adding LCP"),he.lcp={value:e.value,unit:"millisecond"},le=t)}),!0),a=(0,X.YG)((({metric:e})=>{e.entries[e.entries.length-1]&&(J.T&&r.vF.log("[Measurements] Adding TTFB"),he.ttfb={value:e.value,unit:"millisecond"})}));return()=>{t(),n(),s(),a()}}return()=>{}}function pe(e,t){if(ce()&&i.k3){const n=function(e,t){return(0,X.hT)((({metric:n})=>{if(void 0===n.value)return;const s=n.entries.find((e=>e.duration===n.value&&void 0!==me[e.name])),a=(0,w.KU)();if(!s||!a)return;const o=me[s.name],c=a.getOptions(),l=oe(i.k3+s.startTime),u=oe(n.value),d=void 0!==s.interactionId?e[s.interactionId]:void 0;if(void 0===d)return;const{routeName:h,parentContext:f,activeTransaction:p,user:m,replayId:g}=d,y=void 0!==m?m.email||m.id||m.ip_address:void 0,b=void 0!==p?p.getProfileId():void 0,_=new v({startTimestamp:l,endTimestamp:l+u,op:`ui.interaction.${o}`,name:(0,V.Hd)(s.target),attributes:{release:c.release,environment:c.environment,transaction:h,...void 0!==y&&""!==y?{user:y}:{},...void 0!==b?{profile_id:b}:{},...void 0!==g?{replay_id:g}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),k=function(e,t,n){if(!S(t))return!1;let i;i=void 0!==e&&"function"===typeof t.tracesSampler?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:Z.j.location}):void 0!==e&&void 0!==e.sampled?e.sampled:"undefined"!==typeof t.tracesSampleRate?t.tracesSampleRate:1;if(!U(i))return J.T&&r.vF.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1;if(!0===i)return n;if(!1===i)return 0;return i*n}(f,c,t);if(k)if(Math.random()<k){const e=_?ee([_],a.getDsn()):void 0,t=a&&a.getTransport();t&&e&&t.send(e).then(null,(e=>{J.T&&r.vF.error("Error while sending interaction:",e)}))}else;}))}(e,t);return()=>{n()}}return()=>{}}const me={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ge(e){const t=ce();if(!t||!Z.j.performance.getEntries||!i.k3)return;J.T&&r.vF.log("[Tracing] Adding & adjusting spans using Performance API");const n=oe(i.k3),s=t.getEntries(),{op:o,start_timestamp:c}=(0,a.et)(e);if(s.slice(de).forEach((t=>{const i=oe(t.startTime),s=oe(t.duration);if(!("navigation"===e.op&&c&&n+i<c))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{ye(e,t,r,n)})),ye(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),ye(e,t,"fetch",n,"cache","domainLookupStart"),ye(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(se(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+oe(t.requestStart),endTimestamp:n+oe(t.responseEnd)}),se(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+oe(t.responseStart),endTimestamp:n+oe(t.responseEnd)}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){const s=i+n,a=s+r;se(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(e,t,i,s,n);const a=(0,re.N)(),o=t.startTime<a.firstHiddenTime;"first-paint"===t.name&&o&&(J.T&&r.vF.log("[Measurements] Adding FP"),he.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(J.T&&r.vF.log("[Measurements] Adding FCP"),he.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,i,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a=(0,ne.Dl)(n),o={};ve(o,t,"transferSize","http.response_transfer_size"),ve(o,t,"encodedBodySize","http.response_content_length"),ve(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus);a.protocol&&(o["url.scheme"]=a.protocol.split(":").pop());a.host&&(o["server.address"]=a.host);o["url.same_origin"]=n.includes(Z.j.location.origin);const c=s+r,l=c+i;se(e,{description:n.replace(Z.j.location.origin,""),endTimestamp:l,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:o})}(e,t,t.name,i,s,n)}})),de=Math.max(s.length-1,0),function(e){const t=Z.j.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),ie(n.rtt)&&(he["connection.rtt"]={value:n.rtt,unit:"millisecond"}));ie(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);ie(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===o){!function(e){const t=(0,ae.z)();if(!t)return;const{responseStart:n,requestStart:i}=t;i<=n&&(J.T&&r.vF.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-i,unit:"millisecond"})}(he),["fcp","fp","lcp"].forEach((e=>{if(!he[e]||!c||n>=c)return;const t=he[e].value,i=n+oe(t),s=Math.abs(1e3*(i-c)),a=s-t;J.T&&r.vF.log(`[Measurements] Normalized ${e} from ${t} to ${s} (${a})`),he[e].value=s}));const t=he["mark.fid"];t&&he.fid&&(se(e,{description:"first input delay",endTimestamp:t.value+oe(he.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete he["mark.fid"]),"fcp"in he||delete he.cls,Object.keys(he).forEach((e=>{!function(e,t,n){const r=N();r&&r.setMeasurement(e,t,n)}(e,he[e].value,he[e].unit)})),function(e){le&&(J.T&&r.vF.log("[Measurements] Adding LCP Data"),le.element&&e.setTag("lcp.element",(0,V.Hd)(le.element)),le.id&&e.setTag("lcp.id",le.id),le.url&&e.setTag("lcp.url",le.url.trim().slice(0,200)),e.setTag("lcp.size",le.size));ue&&ue.sources&&(J.T&&r.vF.log("[Measurements] Adding CLS Data"),ue.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,(0,V.Hd)(t.node)))))}(e)}le=void 0,ue=void 0,he={}}function ye(e,t,n,r,i,s){const a=s?t[s]:t[`${n}End`],o=t[`${n}Start`];o&&a&&se(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+oe(o),endTimestamp:r+oe(a)})}function ve(e,t,n,r){const i=t[n];null!=i&&i<2147483647&&(e[r]=i)}var be=n(36733),_e=n(4795),we=n(78198),Se=n(28921);function ke(e,t,n,r,i="auto.http.browser"){if(!S()||!e.fetchData)return;const s=t(e.fetchData.url);if(e.endTimestamp&&s){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(!function(e,t){if(t.response){g(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}(n,e),delete r[t]))}const o=(0,w.o5)(),c=(0,w.KU)(),{method:l,url:u}=e.fetchData,d=function(e){try{return new URL(e).href}catch(t){return}}(u),h=d?(0,ne.Dl)(d).host:void 0,p=s?k({name:`${l} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":l,"http.url":d,"server.address":h,[f.JD]:i},op:"http.client"}):void 0;if(p&&(e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p),n(e.fetchData.url)&&c){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,i){const s=i||n.getSpan(),o=(0,b.rm)(),{traceId:c,spanId:l,sampled:u,dsc:d}={...o.getPropagationContext(),...n.getPropagationContext()},h=s?(0,a.Qh)(s):(0,K.TC)(c,l,u),f=(0,Se.De)(d||(s?(0,_.k)(s):(0,_.l)(c,t,n))),p=r.headers||("undefined"!==typeof Request&&(0,B.tH)(e,Request)?e.headers:void 0);if(p){if("undefined"!==typeof Headers&&(0,B.tH)(p,Headers)){const e=new Headers(p);return e.append("sentry-trace",h),f&&e.append(Se.hF,f),e}if(Array.isArray(p)){const e=[...p,["sentry-trace",h]];return f&&e.push([Se.hF,f]),e}{const e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),f&&t.push(f),{...p,"sentry-trace":h,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":h,baggage:f}}(t,c,o,n,p)}return p}const Ce=["localhost",/^\/(?!\/)/],Ee={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Ce,tracePropagationTargets:Ce};function xe(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o}={traceFetch:Ee.traceFetch,traceXHR:Ee.traceXHR,...e},c="function"===typeof s?s:e=>!0,l=e=>function(e,t){return(0,we.Xr)(e,t||Ce)}(e,r||i),u={};t&&(0,be.u)((e=>{const t=ke(e,c,l,u);if(t){const n=Ae(e.fetchData.url),r=n?(0,ne.Dl)(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}o&&t&&Te(t)})),n&&(0,_e.Mn)((e=>{const t=function(e,t,n,r){const i=e.xhr,s=i&&i[_e.Er];if(!S()||!i||i.__sentry_own_request__||!s)return;const o=t(s.url);if(e.endTimestamp&&o){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==s.status_code&&(g(t,s.status_code),t.end(),delete r[e]))}const c=(0,w.o5)(),l=(0,b.rm)(),u=Ae(s.url),d=u?(0,ne.Dl)(u).host:void 0,h=o?k({name:`${s.method} ${s.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":s.method,"http.url":u,url:s.url,"server.address":d,[f.JD]:"auto.http.browser"},op:"http.client"}):void 0;h&&(i.__sentry_xhr_span_id__=h.spanContext().spanId,r[i.__sentry_xhr_span_id__]=h);const p=(0,w.KU)();if(i.setRequestHeader&&n(s.url)&&p){const{traceId:e,spanId:t,sampled:n,dsc:r}={...l.getPropagationContext(),...c.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Se.hF,n)}catch(r){}}(i,h?(0,a.Qh)(h):(0,K.TC)(e,t,n),(0,Se.De)(r||(h?(0,_.k)(h):(0,_.l)(e,p,c))))}return h}(e,c,l,u);o&&t&&Te(t)}))}function Te(e){const{url:t}=(0,a.et)(e).data||{};if(!t||"string"!==typeof t)return;const n=(0,X.wv)("resource",(({entries:r})=>{r.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"===typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}r===e&&(t=r);return{name:t,version:n}}(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!i.k3)return r;return[...r,["http.request.redirect_start",Ie(e.redirectStart)],["http.request.fetch_start",Ie(e.fetchStart)],["http.request.domain_lookup_start",Ie(e.domainLookupStart)],["http.request.domain_lookup_end",Ie(e.domainLookupEnd)],["http.request.connect_start",Ie(e.connectStart)],["http.request.secure_connection_start",Ie(e.secureConnectionStart)],["http.request.connection_end",Ie(e.connectEnd)],["http.request.request_start",Ie(e.requestStart)],["http.request.response_start",Ie(e.responseStart)],["http.request.response_end",Ie(e.responseEnd)]]})(r).forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function Ie(e=0){return((i.k3||performance.timeOrigin)+e)/1e3}function Ae(e){try{return new URL(e,Z.j.location.origin).href}catch(t){return}}const Oe={...O,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Ee},Re=(e={})=>{const t=!!J.T&&!(!e.tracePropagationTargets&&!e.tracingOrigins);q(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...Oe,...e},s=fe(),o={};n.enableInp&&pe(o,n.interactionsSampleRate),n.enableLongTask&&(0,X.wv)("longtask",(({entries:e})=>{for(const t of e){const e=N();if(!e)return;const n=oe(i.k3+t.startTime),r=oe(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})),n._experiments.enableInteractions&&(0,X.wv)("event",(({entries:e})=>{for(const t of e){const e=N();if(!e)return;if("click"===t.name){const n=oe(i.k3+t.startTime),r=oe(t.duration),s={description:(0,V.Hd)(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},a=(0,V.xE)(t.target);a&&(s.attributes={"ui.component_name":a}),e.startChild(s)}}}));const c={name:void 0,context:void 0};function l(e){const t=(0,b.BF)(),{beforeStartSpan:i,idleTimeout:a,finalTimeout:o,heartbeatInterval:l}=n,u="pageload"===e.op;let d;if(u){const t=u?De("sentry-trace"):"",n=u?De("baggage"):void 0,{traceId:r,dsc:i,parentSpanId:s,sampled:a}=(0,K.kM)(t,n);d={traceId:r,parentSpanId:s,parentSampled:a,...e,metadata:{...e.metadata,dynamicSamplingContext:i},trimEnd:!0}}else d={trimEnd:!0,...e};const h=i?i(d):d;h.metadata=h.name!==d.name?{...h.metadata,source:"custom"}:h.metadata,c.name=h.name,c.context=h,!1===h.sampled&&J.T&&r.vF.log(`[Tracing] Will not send ${h.op} transaction because of beforeNavigate.`),J.T&&r.vF.log(`[Tracing] Starting ${h.op} transaction on scope`);const{location:f}=Z.j,p=H(t,h,a,o,!0,{location:f},l,u);return u&&Z.j.document&&(Z.j.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(Z.j.document.readyState)&&p.sendAutoFinishSignal()})),["interactive","complete"].includes(Z.j.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback((e=>{s(),ge(e)})),p}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const s=e.getOptions(),{markBackgroundSpan:u,traceFetch:d,traceXHR:h,shouldCreateSpanForRequest:p,enableHTTPTimings:m,_experiments:g}=n,y=s&&s.tracePropagationTargets,v=y||n.tracePropagationTargets;let _;J.T&&t&&y&&r.vF.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let S=Z.j.location&&Z.j.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{_&&(J.T&&r.vF.log(`[Tracing] Finishing current transaction with op: ${(0,a.et)(_).op}`),_.end()),_=l({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{_&&(J.T&&r.vF.log(`[Tracing] Finishing current transaction with op: ${(0,a.et)(_).op}`),_.end()),_=l({op:"pageload",...e})}))),n.instrumentPageLoad&&e.emit&&Z.j.location){const t={name:Z.j.location.pathname,startTimestamp:i.k3?i.k3/1e3:void 0,origin:"auto.pageload.browser",attributes:{[f.i_]:"url"}};!function(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=C();n&&(0,a.et)(n).op}(e,t)}n.instrumentNavigation&&e.emit&&Z.j.location&&(0,G._)((({to:t,from:n})=>{if(void 0===n&&S&&-1!==S.indexOf(t))S=void 0;else if(n!==t){S=void 0;const t={name:Z.j.location.pathname,origin:"auto.navigation.browser",attributes:{[f.i_]:"url"}};!function(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=C();n&&(0,a.et)(n).op}(e,t)}})),u&&(Z.j.document?Z.j.document.addEventListener("visibilitychange",(()=>{const e=N();if(Z.j.document.hidden&&e){const t="cancelled",{op:n,status:i}=(0,a.et)(e);J.T&&r.vF.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),i||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):J.T&&r.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")),g.enableInteractions&&function(e,t){let n;const i=()=>{const{idleTimeout:i,finalTimeout:s,heartbeatInterval:a}=e,o="ui.action.click",c=N();if(c&&c.op&&["navigation","pageload"].includes(c.op))return void(J.T&&r.vF.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`));if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name)return void(J.T&&r.vF.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`));const{location:l}=Z.j,u={name:t.name,op:o,trimEnd:!0,data:{[f.i_]:t.context?Fe(t.context):"url"}};n=H((0,b.BF)(),u,i,s,!0,{location:l},a)};["click"].forEach((e=>{Z.j.document&&addEventListener(e,i,{once:!1,capture:!0})}))}(n,c),n.enableInp&&function(e,t){const n=({entries:n})=>{const r=(0,w.KU)(),i=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,s=void 0!==i?i.getReplayId():void 0,a=N(),o=(0,w.o5)(),c=void 0!==o?o.getUser():void 0;n.forEach((n=>{if(function(e){return"duration"in e}(n)){const r=n.interactionId;if(void 0===r)return;const i=e[r],o=n.duration,l=n.startTime,u=Object.keys(e),d=u.length>0?u.reduce(((t,n)=>e[t].duration<e[n].duration?t:n)):void 0;if("first-input"===n.entryType){if(u.map((t=>e[t])).some((e=>e.duration===o&&e.startTime===l)))return}if(!r)return;if(i)i.duration=Math.max(i.duration,o);else if(u.length<Me||void 0===d||o>e[d].duration){const n=t.name,i=t.context;n&&i&&(d&&Object.keys(e).length>=Me&&delete e[d],e[r]={routeName:n,duration:o,parentContext:i,user:c,activeTransaction:a,replayId:s,startTime:l})}}}))};(0,X.wv)("event",n),(0,X.wv)("first-input",n)}(o,c),xe({traceFetch:d,traceXHR:h,tracePropagationTargets:v,shouldCreateSpanForRequest:p,enableHTTPTimings:m})},options:n}};function De(e){const t=(0,V.NX)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}const Me=10;function Fe(e){const t=e.attributes&&e.attributes[f.i_],n=e.data&&e.data[f.i_],r=e.metadata&&e.metadata.source;return t||n||r}},35172:(e,t,n)=>{"use strict";n.d(t,{a9:()=>P,T5:()=>U,hT:()=>$,Pt:()=>B,wv:()=>W,YG:()=>j});var r=n(83887),i=n(84814),s=n(12514);const a=(e,t,n)=>{let r,i;return s=>{t.value>=0&&(s||n)&&(i=t.value-(r||0),(i||void 0===r)&&(r=t.value,t.delta=i,e(t)))}};var o=n(34866);var c=n(22894);const l=()=>{const e=(0,c.z)();return e&&e.activationStart||0},u=(e,t)=>{const n=(0,c.z)();let r="navigate";return n&&(r=o.j.document&&o.j.document.prerendering||l()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:"undefined"===typeof t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},d=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}};var h=n(18441);const f=(e,t={})=>{const n=u("CLS",0);let r,i=0,s=[];const o=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=s[0],a=s[s.length-1];i&&0!==s.length&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e]),i>n.value&&(n.value=i,n.entries=s,r&&r())}}))},c=d("layout-shift",o);if(c){r=a(e,n,t.reportAllChanges);const i=()=>{o(c.takeRecords()),r(!0)};return(0,h.Q)(i),i}};var p=n(81812);const m=e=>{const t=(0,p.N)(),n=u("FID");let r;const i=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),r(!0))},s=e=>{e.forEach(i)},o=d("first-input",s);r=a(e,n),o&&(0,h.Q)((()=>{s(o.takeRecords()),o.disconnect()}),!0)};let g=0,y=1/0,v=0;const b=e=>{e.forEach((e=>{e.interactionId&&(y=Math.min(y,e.interactionId),v=Math.max(v,e.interactionId),g=v?(v-y)/7+1:0)}))};let _;const w=()=>{"interactionCount"in performance||_||(_=d("event",b,{type:"event",buffered:!0,durationThreshold:0}))},S=()=>_?g:performance.interactionCount||0,k=[],C={},E=e=>{const t=k[k.length-1],n=C[e.interactionId];if(n||k.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};C[t.id]=t,k.push(t)}k.sort(((e,t)=>t.latency-e.latency)),k.splice(10).forEach((e=>{delete C[e.id]}))}},x=(e,t)=>{t=t||{},w();const n=u("INP");let r;const i=e=>{e.forEach((e=>{if(e.interactionId&&E(e),"first-input"===e.entryType){!k.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&E(e)}}));const t=(()=>{const e=Math.min(k.length-1,Math.floor(S()/50));return k[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},s=d("event",i,{durationThreshold:t.durationThreshold||40});r=a(e,n,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),(0,h.Q)((()=>{i(s.takeRecords()),n.value<0&&S()>0&&(n.value=0,n.entries=[]),r(!0)})))},T={},I=e=>{const t=(0,p.N)(),n=u("LCP");let r;const i=e=>{const i=e[e.length-1];if(i){const e=Math.max(i.startTime-l(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[i],r())}},s=d("largest-contentful-paint",i);if(s){r=a(e,n);const t=()=>{T[n.id]||(i(s.takeRecords()),s.disconnect(),T[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{o.j.document&&addEventListener(e,t,{once:!0,capture:!0})})),(0,h.Q)(t,!0),t}},A=e=>{o.j.document&&(o.j.document.prerendering?addEventListener("prerenderingchange",(()=>A(e)),!0):"complete"!==o.j.document.readyState?addEventListener("load",(()=>A(e)),!0):setTimeout(e,0))},O=(e,t)=>{t=t||{};const n=u("TTFB"),r=a(e,n,t.reportAllChanges);A((()=>{const e=(0,c.z)();if(e){if(n.value=Math.max(e.responseStart-l(),0),n.value<0||n.value>performance.now())return;n.entries=[e],r(!0)}}))},R={},D={};let M,F,z,N,L;function P(e,t=!1){return Z("cls",e,q,M,t)}function B(e,t=!1){return Z("lcp",e,G,z,t)}function j(e){return Z("ttfb",e,V,N)}function U(e){return Z("fid",e,K,F)}function $(e){return Z("inp",e,J,L)}function W(e,t){return X(e,t),D[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);d(e,(t=>{H(e,{entries:t})}),t)}(e),D[e]=!0),Y(e,t)}function H(e,t){const n=R[e];if(n&&n.length)for(const o of n)try{o(t)}catch(a){s.T&&r.vF.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.qQ)(o)}\nError:`,a)}}function q(){return f((e=>{H("cls",{metric:e}),M=e}),{reportAllChanges:!0})}function K(){return m((e=>{H("fid",{metric:e}),F=e}))}function G(){return I((e=>{H("lcp",{metric:e}),z=e}))}function V(){return O((e=>{H("ttfb",{metric:e}),N=e}))}function J(){return x((e=>{H("inp",{metric:e}),L=e}))}function Z(e,t,n,r,i=!1){let s;return X(e,t),D[e]||(s=n(),D[e]=!0),r&&t({metric:r}),Y(e,t,i?s:void 0)}function X(e,t){R[e]=R[e]||[],R[e].push(t)}function Y(e,t,n){return()=>{n&&n();const r=R[e];if(!r)return;const i=r.indexOf(t);-1!==i&&r.splice(i,1)}}},34866:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});const r=n(91444).OW},22894:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(34866);const i=()=>r.j.__WEB_VITALS_POLYFILL__?r.j.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=r.j.performance.timing,t=r.j.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const r in e)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n})()):r.j.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},81812:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(34866),i=n(18441);let s=-1;const a=()=>(s<0&&(r.j.document&&r.j.document.visibilityState&&(s="hidden"!==r.j.document.visibilityState||r.j.document.prerendering?1/0:0),(0,i.Q)((({timeStamp:e})=>{s=e}),!0)),{get firstHiddenTime(){return s}})},18441:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(34866);const i=(e,t)=>{const n=i=>{"pagehide"!==i.type&&"hidden"!==r.j.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};r.j.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))}},12514:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},75020:(e,t,n)=>{"use strict";n.d(t,{V:()=>S,S:()=>E});var r=n(30246),i=n(83887),s=n(4475),a=n(30747),o=n(85195),c=n(44103),l=n(36229),u=n(9576);function d(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function h(e,t={}){const n="string"===typeof t?t:t.tunnel,r="string"!==typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${d(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,u.u4)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`}var f=n(2119);var p=n(7994),m=n(39434),g=n(31171);function y(e,t,n,i){const s={sent_at:(new Date).toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),i&&t&&(s.dsn=(0,r.SB)(t));const a=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return(0,c.h4)(s,[a])}var v=n(45897),b=n(80409),_=n(14730);const w="Not capturing exception because it's already been captured.";class S{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,r.AD)(e.dsn):f.T&&i.vF.warn("No DSN provided, client will not send events."),this._dsn){const t=h(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if((0,s.GR)(e))return void(f.T&&i.vF.log(w));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;const s=(0,a.NF)(e)?e:String(e),o=(0,a.sO)(e)?this.eventFromMessage(s,t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,s.GR)(t.originalException))return void(f.T&&i.vF.log(w));let r=t&&t.event_id;const a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,a||n).then((e=>{r=e}))),r}captureSession(e){"string"!==typeof e.release?f.T&&i.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,v.qO)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):(0,o.XW)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return f.T&&i.vF.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];(0,g.qm)(this,e,this._integrations),t||(0,g.lc)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=(0,c.Cj)(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=(0,c.n2)(e,i,r,t);delete e.sdkProcessingMetadata;const o=[{type:s},e];return(0,c.h4)(a,[o])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of t.attachments||[])n=(0,c.W3)(n,(0,c.bm)(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,i){const s=(0,c.Cj)(n),a={sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!i&&t&&{dsn:(0,r.SB)(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,c.h4)(a,[o])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"===typeof n?n:1,s=`${e}:${t}`;f.T&&i.vF.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}captureAggregateMetrics(e){f.T&&i.vF.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=y(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,g.P$)(this,e),(0,g.lc)(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&((0,v.qO)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new o.T2((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=(0,m.rm)()){const i=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),(0,_.mG)(i,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:r,spanId:i,parentSpanId:s,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:s},...e.contexts};const o=a||(0,b.l)(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(f.T){const t=e;"log"===t.logLevel?i.vF.log(t.message):i.vF.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,s=C(e),c=k(e),u=e.type||"error",d=`before send for type \`${u}\``;if(c&&"number"===typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,o.xg)(new l.U(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const h="replay_event"===u?"replay":u,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,f).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",h,e),new l.U("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(k(t)&&r)return r(t,n);if(C(t)&&i){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,a.Qg)(e))return e.then((e=>{if(!(0,a.Qd)(e)&&null!==e)throw new l.U(n);return e}),(e=>{throw new l.U(`${t} rejected with ${e}`)}));if(!(0,a.Qd)(e)&&null!==e)throw new l.U(n);return e}(i,d)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",h,e),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new l.U(`${d} returned \`null\`, will not send event.`,"log")}const i=n&&n.getSession();if(!s&&i&&this._updateSessionFromEvent(i,r),s){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const a=r.transaction_info;if(s&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof l.U)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new l.U(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{f.T&&i.vF.error("Error while sending event:",e)}));f.T&&i.vF.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function k(e){return void 0===e.type}function C(e){return"transaction"===e.type}function E(e){const t=(0,p.KU)();t&&t.addEventProcessor&&t.addEventProcessor(e)}},26488:(e,t,n)=>{"use strict";n.d(t,{jB:()=>u,lG:()=>c,lb:()=>l});var r=n(91444),i=n(85195),s=n(83887),a=n(30747),o=n(2119);function c(){return(0,r.BY)("globalEventProcessors",(()=>[]))}function l(e){c().push(e)}function u(e,t,n,r=0){return new i.T2(((i,c)=>{const l=e[r];if(null===t||"function"!==typeof l)i(t);else{const d=l({...t},n);o.T&&l.id&&null===d&&s.vF.log(`Event processor "${l.id}" dropped event`),(0,a.Qg)(d)?d.then((t=>u(e,t,n,r+1).then(i))).then(null,c):u(e,d,n,r+1).then(i).then(null,c)}}))}},7994:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>c,J0:()=>y,J5:()=>_,KU:()=>m,ZQ:()=>d,gV:()=>f,o:()=>h,o5:()=>g,r:()=>u,v4:()=>p,wd:()=>l});var r=n(91444),i=n(53888),s=n(39434),a=n(45897),o=n(14730);function c(e,t){return(0,s.BF)().captureException(e,(0,o.li)(t))}function l(e,t){const n="string"===typeof t?t:void 0,r="string"!==typeof t?{captureContext:t}:void 0;return(0,s.BF)().captureMessage(e,n,r)}function u(e,t){return(0,s.BF)().captureEvent(e,t)}function d(e,t){(0,s.BF)().addBreadcrumb(e,t)}function h(e,t){(0,s.BF)().setContext(e,t)}function f(e){(0,s.BF)().setUser(e)}function p(...e){const t=(0,s.BF)();if(2===e.length){const[n,r]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,r(n)))):t.withScope(r)}return t.withScope(e[0])}function m(){return(0,s.BF)().getClient()}function g(){return(0,s.BF)().getScope()}function y(e){const t=m(),n=(0,s.rm)(),o=g(),{release:c,environment:l=i.U}=t&&t.getOptions()||{},{userAgent:u}=r.OW.navigator||{},d=(0,a.fj)({release:c,environment:l,user:o.getUser()||n.getUser(),...u&&{userAgent:u},...e}),h=n.getSession();return h&&"ok"===h.status&&(0,a.qO)(h,{status:"exited"}),v(),n.setSession(d),o.setSession(d),d}function v(){const e=(0,s.rm)(),t=g(),n=t.getSession()||e.getSession();n&&(0,a.Vu)(n),b(),e.setSession(),t.setSession()}function b(){const e=(0,s.rm)(),t=g(),n=m(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function _(e=!1){e?v():b()}},39434:(e,t,n)=>{"use strict";n.d(t,{BF:()=>v,EU:()=>g,rm:()=>b});var r=n(30747),i=n(4475),s=n(46310),a=n(83887),o=n(91444),c=n(53888),l=n(2119),u=n(19409),d=n(45897),h=n(19097);const f=parseFloat(h.M),p=100;class m{constructor(e,t,n,r=f){let i,s;this._version=r,t?i=t:(i=new u.HG,i.setClient(e)),n?s=n:(s=new u.HG,s.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=s}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(i){throw this.popScope(),i}return(0,r.Qg)(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,i.eJ)(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:(0,i.eJ)(),s=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,i.eJ)();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=p}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const c={timestamp:(0,s.lu)(),...e},l=i?(0,a.pq)((()=>i(c,t))):c;null!==l&&(r.emit&&r.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=y(this);try{e(this)}finally{y(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return l.T&&a.vF.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(l.T&&!n){this.getClient()?a.vF.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):a.vF.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,d.Vu)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=c.U}=n&&n.getOptions()||{},{userAgent:s}=o.OW.navigator||{},a=(0,d.fj)({release:r,environment:i,user:t.getUser(),...s&&{userAgent:s},...e}),l=t.getSession&&t.getSession();return l&&"ok"===l.status&&(0,d.qO)(l,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=g().__SENTRY__;if(n&&n.extensions&&"function"===typeof n.extensions[e])return n.extensions[e].apply(this,t);l.T&&a.vF.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function g(){return o.OW.__SENTRY__=o.OW.__SENTRY__||{extensions:{},hub:void 0},o.OW}function y(e){const t=g(),n=S(t);return k(t,e),n}function v(){const e=g();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return _(e)}function b(){return v().getIsolationScope()}function _(e=g()){return w(e)&&!S(e).isOlderThan(f)||k(e,new m),S(e)}function w(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function S(e){return(0,o.BY)("hub",(()=>new m),e)}function k(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},31171:(e,t,n)=>{"use strict";n.d(t,{F:()=>f,P$:()=>u,_C:()=>p,lc:()=>d,mH:()=>l,qm:()=>h});var r=n(4475),i=n(83887),s=n(2119),a=n(26488),o=n(39434);const c=[];function l(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(n)?[...t,...n]:"function"===typeof n?(0,r.k9)(n(t)):t;const s=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(i),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(s,(e=>"Debug"===e.name));if(-1!==a){const[e]=s.splice(a,1);s.push(e)}return s}function u(e,t){const n={};return t.forEach((t=>{t&&h(e,t,n)})),n}function d(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function h(e,t,n){if(n[t.name])s.T&&i.vF.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===c.indexOf(t.name)&&(t.setupOnce(a.lb,o.BF),c.push(t.name)),t.setup&&"function"===typeof t.setup&&t.setup(e),e.on&&"function"===typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"===typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}s.T&&i.vF.log(`Integration installed: ${t.name}`)}}function f(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}function p(e){return e}},19409:(e,t,n)=>{"use strict";n.d(t,{HG:()=>d,m6:()=>h});var r=n(30747),i=n(46310),s=n(4475),a=n(83887),o=n(26488),c=n(45897),l=n(25136);let u;class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=f()}static clone(e){return e?e.clone():new d}clone(){const e=new d;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,c.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"===typeof e?e(this):e;if(t instanceof d){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if((0,r.Qd)(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=f(),this}addBreadcrumb(e,t){const n="number"===typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,i.lu)(),...e},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:s,_level:a,_fingerprint:o,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:u,_transactionName:d,_span:h}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:s,level:a,fingerprint:o||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:u,transactionName:d,span:h}}applyToEvent(e,t={},n=[]){(0,l.e2)(e,this.getScopeData());const r=[...n,...(0,o.lG)(),...this._eventProcessors];return(0,o.jB)(r,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:(0,s.eJ)();if(!this._client)return a.vF.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:(0,s.eJ)();if(!this._client)return a.vF.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,s.eJ)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(a.vF.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function h(){return u||(u=new d),u}function f(){return{traceId:(0,s.eJ)(),spanId:(0,s.eJ)().substring(16)}}},11620:(e,t,n)=>{"use strict";n.d(t,{E1:()=>o,JD:()=>a,i_:()=>r,sy:()=>i,uT:()=>s});const r="sentry.source",i="sentry.sample_rate",s="sentry.op",a="sentry.origin",o="profile_id"},80409:(e,t,n)=>{"use strict";n.d(t,{k:()=>l,l:()=>c});var r=n(9576),i=n(53888),s=n(7994),a=n(24083),o=n(31006);function c(e,t,n){const s=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},c=(0,r.Ce)({environment:s.environment||i.U,release:s.release,user_segment:o,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",c),c}function l(e){const t=(0,s.KU)();if(!t)return{};const n=c((0,o.et)(e).trace_id||"",t,(0,s.o5)()),r=(0,a.z)(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:l,source:u}=r.metadata;null!=l&&(n.sample_rate=`${l}`);const d=(0,o.et)(r);return u&&"url"!==u&&(n.transaction=d.description),n.sampled=String((0,o.pK)(r)),t.emit&&t.emit("createDsc",n),n}},25136:(e,t,n)=>{"use strict";n.d(t,{Rg:()=>l,e2:()=>c});var r=n(9576),i=n(4475),s=n(80409),a=n(24083),o=n(31006);function c(e,t){const{fingerprint:n,span:c,breadcrumbs:l,sdkProcessingMetadata:u}=t;!function(e,t){const{extra:n,tags:i,user:s,contexts:a,level:o,transactionName:c}=t,l=(0,r.Ce)(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=(0,r.Ce)(i);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=(0,r.Ce)(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const h=(0,r.Ce)(a);h&&Object.keys(h).length&&(e.contexts={...h,...e.contexts});o&&(e.level=o);c&&(e.transaction=c)}(e,t),c&&function(e,t){e.contexts={trace:(0,o.kX)(t),...e.contexts};const n=(0,a.z)(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:(0,s.k)(t),...e.sdkProcessingMetadata};const r=(0,o.et)(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,c),function(e,t){e.fingerprint=e.fingerprint?(0,i.k9)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,l),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,u)}function l(e,t){const{extra:n,tags:r,user:i,contexts:s,level:a,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:l,eventProcessors:d,attachments:h,propagationContext:f,transactionName:p,span:m}=t;u(e,"extra",n),u(e,"tags",r),u(e,"user",i),u(e,"contexts",s),u(e,"sdkProcessingMetadata",o),a&&(e.level=a),p&&(e.transactionName=p),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...f}}function u(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}},14730:(e,t,n)=>{"use strict";n.d(t,{li:()=>m,mG:()=>f});var r=n(4475),i=n(46310),s=n(78198),a=n(91444),o=n(96008),c=n(53888),l=n(26488),u=n(19409),d=n(25136),h=n(31006);function f(e,t,n,f,m,g){const{normalizeDepth:y=3,normalizeMaxBreadth:v=1e3}=e,b={...t,event_id:t.event_id||n.event_id||(0,r.eJ)(),timestamp:t.timestamp||(0,i.lu)()},_=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:c.U);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,s.xv)(e.message,a));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=(0,s.xv)(o.value,a));const l=e.request;l&&l.url&&(l.url=(0,s.xv)(l.url,a))}(b,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(b,_),void 0===t.type&&function(e,t){const n=a.OW._sentryDebugIds;if(!n)return;let r;const i=p.get(t);i?r=i:(r=new Map,p.set(t,r));const s=Object.keys(n).reduce(((e,i)=>{let s;const a=r.get(i);a?s=a:(s=t(i),r.set(i,s));for(let t=s.length-1;t>=0;t--){const r=s[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=s[e.filename])}))}))}catch(o){}}(b,e.stackParser);const w=function(e,t){if(!t)return e;const n=e?e.clone():new u.HG;return n.update(t),n}(f,n.captureContext);n.mechanism&&(0,r.M6)(b,n.mechanism);const S=m&&m.getEventProcessors?m.getEventProcessors():[],k=(0,u.m6)().getScopeData();if(g){const e=g.getScopeData();(0,d.Rg)(k,e)}if(w){const e=w.getScopeData();(0,d.Rg)(k,e)}const C=[...n.attachments||[],...k.attachments];C.length&&(n.attachments=C),(0,d.e2)(b,k);const E=[...S,...(0,l.lG)(),...k.eventProcessors];return(0,l.jB)(E,b,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"===typeof y&&y>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,o.S8)(e.data,t,n)}})))},...e.user&&{user:(0,o.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,o.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,o.S8)(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,o.S8)(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>{const r=(0,h.et)(e).data;return r&&(e.data=(0,o.S8)(r,t,n)),e})));return r}(e,y,v):e)))}const p=new WeakMap;function m(e){if(e)return function(e){return e instanceof u.HG||"function"===typeof e}(e)||function(e){return Object.keys(e).some((e=>g.includes(e)))}(e)?{captureContext:e}:e}const g=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},31006:(e,t,n)=>{"use strict";n.d(t,{CC:()=>a,Qh:()=>l,aO:()=>o,cI:()=>u,et:()=>h,kX:()=>c,pK:()=>f});var r=n(9576),i=n(34241),s=n(46310);const a=0,o=1;function c(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:s,parent_span_id:a,status:o,tags:c,origin:l}=h(e);return(0,r.Ce)({data:i,op:s,parent_span_id:a,span_id:t,status:o,tags:c,trace_id:n,origin:l})}function l(e){const{traceId:t,spanId:n}=e.spanContext(),r=f(e);return(0,i.TC)(t,n,r)}function u(e){return"number"===typeof e?d(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?d(e.getTime()):(0,s.zf)()}function d(e){return e>9999999999?e/1e3:e}function h(e){return function(e){return"function"===typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"===typeof e.toJSON?e.toJSON():{}}function f(e){const{traceFlags:t}=e.spanContext();return Boolean(t&o)}},29442:(e,t,n)=>{"use strict";n.d(t,{T:()=>et});var r=n(83887),i=n(4475),s=n(78198),a=n(2119),o=n(31171);const c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],l=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],u="InboundFilters",d=(0,o._C)(((e={})=>({name:u,setupOnce(){},processEvent(t,n,o){const u=o.getOptions(),d=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:c],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:l],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,u);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return a.T&&r.vF.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,i.$X)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(s){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));a.T&&0===t.length&&r.vF.error(`Could not extract message for event ${(0,i.$X)(e)}`);return t}(e).some((e=>(0,s.Xr)(e,t)))}(e,t.ignoreErrors))return a.T&&r.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,i.$X)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,s.Xr)(n,t)}(e,t.ignoreTransactions))return a.T&&r.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,i.$X)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=h(e);return!!n&&(0,s.Xr)(n,t)}(e,t.denyUrls))return a.T&&r.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,i.$X)(e)}.\nUrl: ${h(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=h(e);return!n||(0,s.Xr)(n,t)}(e,t.allowUrls))return a.T&&r.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,i.$X)(e)}.\nUrl: ${h(e)}`),!0;return!1}(t,d)?null:t}})));(0,o.F)(u,d);function h(e){try{let n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return a.T&&r.vF.error(`Cannot extract url for event ${(0,i.$X)(e)}`),null}}var f=n(9576),p=n(7994);let m;const g="FunctionToString",y=new WeakMap,v=(0,o._C)((()=>({name:g,setupOnce(){m=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,f.sp)(this),n=y.has((0,p.KU)())&&void 0!==t?t:this;return m.apply(n,e)}}catch(e){}},setup(e){y.set(e,!0)}})));(0,o.F)(g,v);var b=n(39434);function _(e,t){!0===t.debug&&(a.T?r.vF.enable():(0,r.pq)((()=>{})));(0,p.o5)().update(t.initialScope);const n=new e(t);!function(e){const t=(0,b.BF)().getStackTop();t.client=e,t.scope.setClient(e)}(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}var w=n(84814),S=n(9863),k=n(22059),C=n(75020),E=n(19097);function x(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:E.M}))),version:E.M}),e._metadata=i}var T=n(49728),I=n(44103),A=n(46310);var O=n(30246),R=n(68765),D=n(30747),M=n(96008),F=n(85195);function z(e,t){const n=L(e,t),r={type:t&&t.name,value:B(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function N(e,t){return{exception:{values:[z(e,t)]}}}function L(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(P.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(i){}return[]}const P=/Minified React error #\d+;/i;function B(e){const t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function j(e,t,n,r,s){let a;if((0,D.T2)(t)&&t.error){return N(e,t.error)}if((0,D.BD)(t)||(0,D.W6)(t)){const s=t;if("stack"in t)a=N(e,t);else{const t=s.name||((0,D.BD)(s)?"DOMError":"DOMException"),o=s.message?`${t}: ${s.message}`:t;a=U(e,o,n,r),(0,i.gO)(a,o)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}if((0,D.bJ)(t))return N(e,t);if((0,D.Qd)(t)||(0,D.xH)(t)){return a=function(e,t,n,r){const i=(0,p.KU)(),s=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:(0,D.xH)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:$(t,{isUnhandledRejection:r})}]},extra:{__serialized__:(0,M.cd)(t,s)}};if(n){const t=L(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,s),(0,i.M6)(a,{synthetic:!0}),a}return a=U(e,t,n,r),(0,i.gO)(a,`${t}`,void 0),(0,i.M6)(a,{synthetic:!0}),a}function U(e,t,n,r){const i={};if(r&&n){const r=L(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,D.NF)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function $(e,{isUnhandledRejection:t}){const n=(0,f.HF)(e),r=t?"promise rejection":"exception";if((0,D.T2)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,D.xH)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}var W=n(77278);class H extends C.V{constructor(e){x(e,"browser",["browser"],W.jf.SENTRY_SDK_SOURCE||(0,T.e)()),super(e),e.sendClientReports&&W.jf.document&&W.jf.document.addEventListener("visibilitychange",(()=>{"hidden"===W.jf.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const s=j(e,t,n&&n.syntheticException||void 0,r);return(0,i.M6)(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),(0,F.XW)(s)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const s=U(e,t,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),(0,F.XW)(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(R.T&&r.vF.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,O.SB)(r)}},s=function(e){return[{type:"user_report"},e]}(e);return(0,I.h4)(i,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(R.T&&r.vF.log("No outcomes to send"));if(!this._dsn)return void(R.T&&r.vF.log("No dsn provided, will not send outcomes"));R.T&&r.vF.log("Sending outcomes:",e);const t=function(e,t,n){const r=[{type:"client_report"},{timestamp:n||(0,A.lu)(),discarded_events:e}];return(0,I.h4)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,O.SB)(this._dsn));this._sendEnvelope(t)}}var q=n(91444),K=n(6957);function G(){"console"in q.OW&&r.Ow.forEach((function(e){e in q.OW.console&&(0,f.GS)(q.OW.console,e,(function(t){return r.Z9[e]=t,function(...t){const n={args:t,level:e};(0,K.aj)("console",n);const i=r.Z9[e];i&&i.apply(q.OW.console,t)}}))}))}var V=n(5333),J=n(4795),Z=n(36733),X=n(70411);const Y=["fatal","error","warning","log","info","debug"];function Q(e){return"warn"===e?"warning":Y.includes(e)?e:"log"}var ee=n(50014);const te=1024,ne="Breadcrumbs",re=(0,o._C)(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ne,setupOnce(){},setup(e){t.console&&function(e){const t="console";(0,K.s5)(t,e),(0,K.AS)(t,G)}(function(e){return function(t){if((0,p.KU)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Q(t.level),message:(0,s.gt)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,s.gt)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,p.ZQ)(n,{input:t.args,level:t.level})}}(e)),t.dom&&(0,V.i)(function(e,t){return function(n){if((0,p.KU)()!==e)return;let i,s,a="object"===typeof t?t.serializeAttribute:void 0,o="object"===typeof t&&"number"===typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>te&&(R.T&&r.vF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=te),"string"===typeof a&&(a=[a]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;i=(0,X.Hd)(t,{keyAttrs:a,maxStringLength:o}),s=(0,X.xE)(t)}catch(l){i="<unknown>"}if(0===i.length)return;const c={category:`ui.${n.name}`,message:i};s&&(c.data={"ui.component_name":s}),(0,p.ZQ)(c,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&(0,J.Mn)(function(e){return function(t){if((0,p.KU)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[J.Er];if(!n||!r||!i)return;const{method:s,url:a,status_code:o,body:c}=i,l={method:s,url:a,status_code:o},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};(0,p.ZQ)({category:"xhr",data:l,type:"http"},u)}}(e)),t.fetch&&(0,Z.u)(function(e){return function(t){if((0,p.KU)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};(0,p.ZQ)({category:"fetch",data:e,level:"error",type:"http"},i)}else{const e=t.response,i={...t.fetchData,status_code:e&&e.status},s={input:t.args,response:e,startTimestamp:n,endTimestamp:r};(0,p.ZQ)({category:"fetch",data:i,type:"http"},s)}}}(e)),t.history&&(0,k._)(function(e){return function(t){if((0,p.KU)()!==e)return;let n=t.from,r=t.to;const i=(0,ee.Dl)(W.jf.location.href);let s=n?(0,ee.Dl)(n):void 0;const a=(0,ee.Dl)(r);s&&s.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),(0,p.ZQ)({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){(0,p.KU)()===e&&(0,p.ZQ)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,i.$X)(t)},{event:t})}}(e))}}}));(0,o.F)(ne,re);const ie="Dedupe",se=(0,o._C)((()=>{let e;return{name:ie,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!oe(e,t))return!1;if(!ae(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=ce(t),r=ce(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!oe(e,t))return!1;if(!ae(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return R.T&&r.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}}));(0,o.F)(ie,se);function ae(e,t){let n=le(e),r=le(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const e=r[i],t=n[i];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function oe(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function ce(e){return e.exception&&e.exception.values&&e.exception.values[0]}function le(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){return}}var ue=n(19150),de=n(87976);const he="GlobalHandlers",fe=(0,o._C)(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:he,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){(0,ue.L)((t=>{const{stackParser:n,attachStacktrace:r}=ge();if((0,p.KU)()!==e||(0,W.jN)())return;const{msg:i,url:s,line:a,column:o,error:c}=t,l=void 0===c&&(0,D.Kg)(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=(0,D.T2)(e)?e.message:e,a="Error";const o=s.match(i);o&&(a=o[1],s=o[2]);const c={exception:{values:[{type:a,value:s}]}};return pe(c,t,n,r)}(i,s,a,o):pe(j(n,c||i,void 0,r,!1),s,a,o);l.level="error",(0,p.r)(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(e),me("onerror")),t.onunhandledrejection&&(!function(e){(0,de.r)((t=>{const{stackParser:n,attachStacktrace:r}=ge();if((0,p.KU)()!==e||(0,W.jN)())return;const i=function(e){if((0,D.sO)(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(n){}return e}(t),s=(0,D.sO)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:j(n,i,void 0,r,!0);s.level="error",(0,p.r)(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),me("onunhandledrejection"))}}}));(0,o.F)(he,fe);function pe(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},c=o.frames=o.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=(0,D.Kg)(t)&&t.length>0?t:(0,X.$N)();return 0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u}),e}function me(e){R.T&&r.vF.log(`Global Handler attached: ${e}`)}function ge(){const e=(0,p.KU)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const ye="HttpContext",ve=(0,o._C)((()=>({name:ye,setupOnce(){},preprocessEvent(e){if(!W.jf.navigator&&!W.jf.location&&!W.jf.document)return;const t=e.request&&e.request.url||W.jf.location&&W.jf.location.href,{referrer:n}=W.jf.document||{},{userAgent:r}=W.jf.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:i};e.request=s}})));(0,o.F)(ye,ve);function be(e,t,n=250,r,i,a,o){if(!a.exception||!a.exception.values||!o||!(0,D.tH)(o.originalException,Error))return;const c=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var l,u;c&&(a.exception.values=(l=_e(e,t,i,o.originalException,r,a.exception.values,c,0),u=n,l.map((e=>(e.value&&(e.value=(0,s.xv)(e.value,u)),e)))))}function _e(e,t,n,r,i,s,a,o){if(s.length>=n+1)return s;let c=[...s];if((0,D.tH)(r[i],Error)){we(a,o);const s=e(t,r[i]),l=c.length;Se(s,i,l,o),c=_e(e,t,n,r[i],i,[s,...c],s,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if((0,D.tH)(r,Error)){we(a,o);const l=e(t,r),u=c.length;Se(l,`errors[${s}]`,u,o),c=_e(e,t,n,r,i,[l,...c],l,u)}})),c}function we(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Se(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const ke="LinkedErrors",Ce=(0,o._C)(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:ke,setupOnce(){},preprocessEvent(e,r,i){const s=i.getOptions();be(z,s.stackParser,s.maxValueLength,n,t,e,r)}}})),Ee=((0,o.F)(ke,Ce),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"]),xe="TryCatch",Te=(0,o._C)(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:xe,setupOnce(){t.setTimeout&&(0,f.GS)(W.jf,"setTimeout",Ie),t.setInterval&&(0,f.GS)(W.jf,"setInterval",Ie),t.requestAnimationFrame&&(0,f.GS)(W.jf,"requestAnimationFrame",Ae),t.XMLHttpRequest&&"XMLHttpRequest"in W.jf&&(0,f.GS)(XMLHttpRequest.prototype,"send",Oe);const e=t.eventTarget;if(e){(Array.isArray(e)?e:Ee).forEach(Re)}}}}));(0,o.F)(xe,Te);function Ie(e){return function(...t){const n=t[0];return t[0]=(0,W.LV)(n,{mechanism:{data:{function:(0,w.qQ)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ae(e){return function(t){return e.apply(this,[(0,W.LV)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,w.qQ)(e)},handled:!1,type:"instrument"}})])}}function Oe(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"===typeof n[e]&&(0,f.GS)(n,e,(function(t){const n={mechanism:{data:{function:e,handler:(0,w.qQ)(t)},handled:!1,type:"instrument"}},r=(0,f.sp)(t);return r&&(n.mechanism.data.handler=(0,w.qQ)(r)),(0,W.LV)(t,n)}))})),e.apply(this,t)}}function Re(e){const t=W.jf,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,f.GS)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=(0,W.LV)(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,w.qQ)(r),target:e},handled:!1,type:"instrument"}}))}catch(s){}return t.apply(this,[n,(0,W.LV)(r,{mechanism:{data:{function:"addEventListener",handler:(0,w.qQ)(r),target:e},handled:!1,type:"instrument"}}),i])}})),(0,f.GS)(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(s){}return e.call(this,t,i,r)}})))}const De="?";function Me(e,t,n,r){const i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const Fe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ze=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ne=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Le=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Pe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Be=[[30,e=>{const t=Fe.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=ze.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Ue(t[1]||De,t[2]);return Me(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Ne.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Le.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||De;return[n,e]=Ue(n,e),Me(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Pe.exec(e);return t?Me(t[2],t[1]||De,+t[3],t[4]?+t[4]:void 0):void 0}]],je=(0,w.gd)(...Be),Ue=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:De,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var $e=n(36229);function We(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,F.xg)(new $e.U("Not adding Promise because buffer limit was reached."));const i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new F.T2(((n,r)=>{let i=t.length;if(!i)return n(!0);const s=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,F.XW)(e).then((()=>{--i||(clearTimeout(s),n(!0))}),r)}))}))}}}var He=n(16350);const qe=30;function Ke(e,t,n=We(e.bufferSize||qe)){let i={};function s(s){const o=[];if((0,I.yH)(s,((t,n)=>{const r=(0,I.zk)(n);if((0,He.Jz)(i,r)){const i=Ge(t,n);e.recordDroppedEvent("ratelimit_backoff",r,i)}else o.push(t)})),0===o.length)return(0,F.XW)();const c=(0,I.h4)(s[0],o),l=t=>{(0,I.yH)(c,((n,r)=>{const i=Ge(n,r);e.recordDroppedEvent(t,(0,I.zk)(r),i)}))};return n.add((()=>t({body:(0,I.bN)(c,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&a.T&&r.vF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=(0,He.wq)(i,e),e)),(e=>{throw l("network_error"),e})))).then((e=>e),(e=>{if(e instanceof $e.U)return a.T&&r.vF.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,F.XW)();throw e}))}return s.__sentry__baseTransport__=!0,{send:s,flush:e=>n.drain(e)}}function Ge(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Ve;function Je(e,t=function(){if(Ve)return Ve;if((0,S.ap)(W.jf.fetch))return Ve=W.jf.fetch.bind(W.jf);const e=W.jf.document;let t=W.jf.fetch;if(e&&"function"===typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){R.T&&r.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Ve=t.bind(W.jf)}()){let n=0,i=0;return Ke(e,(function(r){const s=r.body.length;n+=s,i++;const a={body:r.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=s,i--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(o){return Ve=void 0,n-=s,i--,(0,F.xg)(o)}}))}const Ze=4;function Xe(e){return Ke(e,(function(t){return new F.T2(((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===Ze&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}const Ye=[d(),v(),Te(),re(),fe(),Ce(),se(),ve()];function Qe(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...Ye]),void 0===e.release&&("string"===typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),W.jf.SENTRY_RELEASE&&W.jf.SENTRY_RELEASE.id&&(e.release=W.jf.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(0,w.vk)(e.stackParser||je),integrations:(0,o.mH)(e),transport:e.transport||((0,S.vm)()?Je:Xe)};_(H,t),e.autoSessionTracking&&function(){if("undefined"===typeof W.jf.document)return void(R.T&&r.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));(0,p.J0)({ignoreDuration:!0}),(0,p.J5)(),(0,k._)((({from:e,to:t})=>{void 0!==e&&e!==t&&((0,p.J0)({ignoreDuration:!0}),(0,p.J5)())}))}()}function et(e){const t={...e};x(t,"react"),Qe(t)}},68765:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});const r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},77278:(e,t,n)=>{"use strict";n.d(t,{LV:()=>u,jN:()=>l,jf:()=>o});var r=n(7994),i=n(91444),s=n(9576),a=n(4475);const o=i.OW;let c=0;function l(){return c>0}function u(e,t={},n){if("function"!==typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"===typeof t?t:e;if((0,s.sp)(e))return e}catch(o){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);const r=i.map((e=>u(e,t)));return e.apply(this,r)}catch(s){throw c++,setTimeout((()=>{c--})),(0,r.v4)((e=>{e.addEventProcessor((e=>(t.mechanism&&((0,a.gO)(e,void 0,void 0),(0,a.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),(0,r.Cp)(s)})),s}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(l){}(0,s.pO)(i,e),(0,s.my)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(l){}return i}},70651:(e,t,n)=>{"use strict";n.d(t,{f:()=>L});var r=n(7994),i=n(31171),s=n(83887),a=n(68765),o=n(31006),c=n(46310),l=n(4475),u=n(77278),d=n(53888),h=n(44103),f=n(91444);const p=1e6,m=String(0),g="main";let y="",v="",b="",_=u.jf.navigator&&u.jf.navigator.userAgent||"",w="";const S=u.jf.navigator&&u.jf.navigator.language||u.jf.navigator&&u.jf.navigator.languages&&u.jf.navigator.languages[0]||"";const k=u.jf.navigator&&u.jf.navigator.userAgentData;var C;function E(e){return function(e){return!("thread_metadata"in e)}(e)?function(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[m]:{name:g}}};if(!e.samples.length)return r;const i=e.samples[0].timestamp,s="number"===typeof performance.timeOrigin?performance.timeOrigin:c.k3||0,a=s-(c.k3||s);for(let o=0;o<e.samples.length;o++){const s=e.samples[o];if(void 0===s.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[o]={elapsed_since_start_ns:((s.timestamp+a-i)*p).toFixed(0),stack_id:t,thread_id:m};continue}let c=e.stacks[s.stackId];const l=[];for(;c;){l.push(c.frameId);const t=e.frames[c.frameId];void 0===r.frames[c.frameId]&&(r.frames[c.frameId]={function:t.name,abs_path:"number"===typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),c=void 0===c.parentId?void 0:e.stacks[c.parentId]}const u={elapsed_since_start_ns:((s.timestamp+a-i)*p).toFixed(0),stack_id:n,thread_id:m};r.stacks[n]=l,r.samples[o]=u,n++}return r}(e):e}function x(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(void 0===n||null===n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return"string"===typeof t&&32!==t.length&&a.T&&s.vF.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!==typeof t?"":t}(r),o=E(n),c=t||("number"===typeof r.start_timestamp?1e3*r.start_timestamp:Date.now()),h="number"===typeof r.timestamp?1e3*r.timestamp:Date.now();return{event_id:e,timestamp:new Date(c).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||d.U,runtime:{name:"javascript",version:u.jf.navigator.userAgent},os:{name:y,version:v,build_number:_},device:{locale:S,model:w,manufacturer:_,architecture:b,is_emulator:!1},debug_meta:{images:A(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||(0,l.eJ)(),trace_id:i,active_thread_id:m,relative_start_ns:"0",relative_end_ns:(1e6*(h-c)).toFixed(0)}]}}function T(e){return"pageload"===e.op}"object"===typeof(C=k)&&null!==C&&"getHighEntropyValues"in C&&k.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{if(y=e.platform||"",b=e.architecture||"",w=e.model||"",v=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];_=`${t.brand} ${t.version}`}})).catch((e=>{}));const I=new WeakMap;function A(e){const t=f.OW._sentryDebugIds;if(!t)return[];const n=(0,r.KU)(),i=n&&n.getOptions(),s=i&&i.stackParser;if(!s)return[];let a;const o=I.get(s);o?a=o:(a=new Map,I.set(s,a));const c=Object.keys(t).reduce(((e,n)=>{let r;const i=a.get(n);i?r=i:(r=s(n),a.set(n,r));for(let s=r.length-1;s>=0;s--){const i=r[s],a=i&&i.filename;if(i&&a){e[a]=t[n];break}}return e}),{}),l=[];for(const r of e)r&&c[r]&&l.push({type:"sourcemap",code_file:r,debug_id:c[r]});return l}let O=!1;function R(e){if(O)return a.T&&s.vF.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return a.T&&s.vF.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=(0,r.KU)(),n=t&&t.getOptions();if(!n)return a.T&&s.vF.log("[Profiling] Profiling disabled, no options found."),!1;const i=n.profilesSampleRate;if(!("number"!==typeof(o=i)&&"boolean"!==typeof o||"number"===typeof o&&isNaN(o)?(a.T&&s.vF.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),0):!0===o||!1===o||!(o<0||o>1)||(a.T&&s.vF.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${o}.`),0)))return a.T&&s.vF.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;var o;if(!i)return a.T&&s.vF.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===i||Math.random()<i)||(a.T&&s.vF.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(i)})`),!1)}function D(e,t,n,r){return function(e){return e.samples.length<2?(a.T&&s.vF.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(a.T&&s.vF.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?x(e,t,n,r):null}const M=new Map;function F(e){const t=M.get(e);return t&&M.delete(e),t}function z(e){let t;T(e)&&(t=1e3*(0,c.zf)());const n=function(){const e=u.jf.Profiler;if("function"!==typeof e)return void(a.T&&s.vF.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(n){a.T&&(s.vF.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),s.vF.log("[Profiling] Disabling profiling for current user session.")),O=!0}}();if(!n)return e;a.T&&s.vF.log(`[Profiling] started profiling transaction: ${(0,o.et)(e).description}`);const r=(0,l.eJ)();async function i(){return e&&n?n.stop().then((t=>(d&&(u.jf.clearTimeout(d),d=void 0),a.T&&s.vF.log(`[Profiling] stopped profiling of transaction: ${(0,o.et)(e).description}`),t?(function(e,t){if(M.set(e,t),M.size>30){const e=M.keys().next().value;M.delete(e)}}(r,t),null):(a.T&&s.vF.log(`[Profiling] profiler returned null profile for: ${(0,o.et)(e).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null)))).catch((e=>(a.T&&s.vF.log("[Profiling] error while stopping profiler:",e),null))):null}let d=u.jf.setTimeout((()=>{a.T&&s.vF.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,o.et)(e).description),i()}),3e4);const h=e.end.bind(e);return e.end=function(){return e?(i().then((()=>{e.setContext("profile",{profile_id:r,start_timestamp:t}),h()}),(()=>{h()})),e):h()},e}const N="BrowserProfiling",L=(0,i._C)((()=>({name:N,setupOnce(){},setup(e){const t=(0,r.o5)().getTransaction();t&&T(t)&&R(t)&&z(t),"function"===typeof e.on?(e.on("startTransaction",(e=>{R(e)&&z(e)})),e.on("beforeEnvelope",(e=>{if(!M.size)return;const t=function(e){const t=[];return(0,h.yH)(e,((e,n)=>{if("transaction"===n)for(let r=1;r<e.length;r++){const n=e[r];n&&n.contexts&&n.contexts.profile&&n.contexts.profile.profile_id&&t.push(e[r])}})),t}(e);if(!t.length)return;const n=[];for(const r of t){const e=r&&r.contexts,t=e&&e.profile&&e.profile.profile_id,i=e&&e.profile&&e.profile.start_timestamp;if("string"!==typeof t){a.T&&s.vF.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!t){a.T&&s.vF.log("[Profiling] cannot find profile for a transaction without a profile context");continue}e&&e.profile&&delete e.profile;const o=F(t);if(!o){a.T&&s.vF.log(`[Profiling] Could not retrieve profile for transaction: ${t}`);continue}const c=D(t,i,o,r);c&&n.push(c)}!function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n])}(e,n)}))):s.vF.warn("[Profiling] Client does not support hooks, profiling will be disabled")}})));(0,i.F)(N,L)},78437:(e,t,n)=>{"use strict";function r(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):"call"!==i&&"optionalCall"!==i||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}n.d(t,{J$:()=>br});var i=n(7994);function s(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,r=n&&n.getDsn(),i=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){if(!t)return!1;return a(e)===a(t)}(e,i)}function a(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var o=n(75020),c=n(14730),l=n(39434),u=n(31006),d=n(11620),h=n(91444),f=n(96008),p=n(9576),m=n(70411),g=n(46310),y=n(83887),v=n(4475),b=n(4795),_=n(78198),w=n(36733),S=n(5333),k=n(22059),C=n(44103),E=n(16350),x=n(18631);function T(){return"undefined"!==typeof window&&(!(0,x.wD)()||void 0!==h.OW.process&&"renderer"===h.OW.process.type)}var I=n(35172);const A=h.OW,O="sentryReplaySession",R="Unable to send Replay",D=15e4,M=5e3,F=2e7,z=36e5;function N(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):"call"!==i&&"optionalCall"!==i||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}var L;function P(e){const t=N([e,"optionalAccess",e=>e.host]);return Boolean(N([t,"optionalAccess",e=>e.shadowRoot])===e)}function B(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function j(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,U).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(n){return null}var t}function U(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=j(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(n){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(L||(L={}));class ${constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=N([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return r=()=>-1,null!=(n=t)?n:r();var n,r}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function W({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function H({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function q(e){return e.toLowerCase()}function K(e){return e.toUpperCase()}const G="__rrweb_original__";function V(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?q(t):null}function J(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let Z=1;const X=new RegExp("[^a-z0-9-_:]");function Y(){return Z++}let Q,ee;const te=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ne=/^(?:[a-z+]+:)?\/\//i,re=/^www\..*/i,ie=/^(data:)([^,]*),(.*)/i;function se(e,t){return(e||"").replace(te,((e,n,r,i,s,a)=>{const o=r||s||a,c=n||i||"";if(!o)return e;if(ne.test(o)||re.test(o))return`url(${c}${o}${c})`;if(ie.test(o))return`url(${c}${o}${c})`;if("/"===o[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+o}${c})`;const l=t.split("/"),u=o.split("/");l.pop();for(const t of u)"."!==t&&(".."===t?l.pop():l.push(t));return`url(${c}${l.join("/")}${c})`}))}const ae=/^[^ \t\n\r\u000c]+/,oe=/^[, \t\n\r\u000c]+/;function ce(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function le(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function ue(){const e=document.createElement("a");return e.href="",e.href}function de(e,t,n,r,i,s){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?ce(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}const i=[];for(;r(oe),!(n>=t.length);){let s=r(ae);if(","===s.slice(-1))s=ce(e,s.substring(0,s.length-1)),i.push(s);else{let r="";s=ce(e,s);let a=!1;for(;;){const e=t.charAt(n);if(""===e){i.push((s+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,i.push((s+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?se(r,ue()):"object"===t&&"data"===n?ce(e,r):"function"===typeof s?s(n,r,i):r:ce(e,r):r}function he(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function fe(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:fe(e.parentNode,t,n,r+1):-1}function pe(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"===typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(i){return!1}}}function me(e,t,n,r,i,s){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,c=-1;if(s){if(c=fe(a,pe(r,i)),c<0)return!0;o=fe(a,pe(t,n),c>=0?c:1/0)}else{if(o=fe(a,pe(t,n)),o<0)return!1;c=fe(a,pe(r,i),o>=0?o:1/0)}return o>=0?!(c>=0)||o<=c:!(c>=0)&&!!s}catch(a){}return!!s}function ge(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:p={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,S=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:L.Document,childNodes:[],compatMode:e.compatMode}:{type:L.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:L.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:s,inlineStylesheet:a,maskInputOptions:o={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:p=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,w=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"===typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(i){}return!1}(e,r,i,s),S=function(e){if(e instanceof HTMLFormElement)return"form";const t=q(e.tagName);return X.test(t)?"div":t}(e);let k={};const C=e.attributes.length;for(let T=0;T<C;T++){const t=e.attributes[T];t.name&&!he(S,t.name,t.value)&&(k[t.name]=de(n,S,q(t.name),t.value,e,c))}if("link"===S&&a){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=j(t)),r&&(delete k.rel,delete k.href,k._cssText=se(r,t.href))}if("style"===S&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=j(e.sheet);t&&(k._cssText=se(t,ue()))}if("input"===S||"textarea"===S||"select"===S||"option"===S){const t=e,n=V(t),r=J(t,K(S),n),i=t.checked;if("submit"!==n&&"button"!==n&&r){const e=me(t,y,b,v,_,W({type:n,tagName:K(S),maskInputOptions:o}));k.value=H({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(k.checked=i)}"option"===S&&(e.selected&&!o.select?k.selected=!0:delete k.selected);if("canvas"===S&&h)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const i=t.getImageData,s=G in i?i[G]:i;if(new Uint32Array(s.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(u.type,u.quality)&&(k.rr_dataURL=t)}if("img"===S&&d){Q||(Q=n.createElement("canvas"),ee=Q.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const i=()=>{t.removeEventListener("load",i);try{Q.width=t.naturalWidth,Q.height=t.naturalHeight,ee.drawImage(t,0,0),k.rr_dataURL=Q.toDataURL(u.type,u.quality)}catch(e){}r?k.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==S&&"video"!==S||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime);p||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop));if(w){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==S||f(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src);let E;try{customElements.get(S)&&(E=!0)}catch(x){}return{type:L.Element,tagName:S,attributes:k,childNodes:[],isSVG:le(e)||void 0,needBlock:w,rootId:m,isCustom:E}}(e,{doc:n,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:p,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:S,maskAllText:o,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:a,maskTextFn:o,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const f="STYLE"===d||void 0,p="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&h){try{e.nextSibling||e.previousSibling||N([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(h=j(e.parentNode.sheet))}catch(y){}h=se(h,ue())}p&&(h="SCRIPT_PLACEHOLDER");const g=me(e,r,s,i,a,n);f||p||m||!h||!g||(h=o?o(h,e.parentElement):h.replace(/[\S]/g,"*"));m&&h&&(c.textarea||g)&&(h=l?l(h,e.parentNode):h.replace(/[\S]/g,"*"));if("OPTION"===d&&h){h=H({isMasked:me(e,r,s,i,a,W({type:null,tagName:d,maskInputOptions:c})),element:e,value:h,maskInputFn:l})}return{type:L.Text,textContent:h||"",isStyle:f,rootId:u}}(e,{maskAllText:o,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:m,maskInputOptions:p,maskInputFn:g,rootId:S});case e.CDATA_SECTION_NODE:return{type:L.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:L.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function ye(e){return void 0===e||null===e?"":e.toLowerCase()}function ve(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h=!1,inlineStylesheet:f=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:C=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:A=!0}=t;const O=ge(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:o,unblockSelector:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:p,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:T,newlyAddedElement:I});if(!O)return null;let R;R=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===L.Comment)return!0;if(e.type===L.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ye(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ye(e.attributes.name)||"icon"===ye(e.attributes.rel)||"apple-touch-icon"===ye(e.attributes.rel)||"shortcut icon"===ye(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ye(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ye(e.attributes.property).match(/^(og|twitter|fb):/)||ye(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ye(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ye(e.attributes.name)||"googlebot"===ye(e.attributes.name)||"bingbot"===ye(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ye(e.attributes.name)||"generator"===ye(e.attributes.name)||"framework"===ye(e.attributes.name)||"publisher"===ye(e.attributes.name)||"progid"===ye(e.attributes.name)||ye(e.attributes.property).match(/^article:/)||ye(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ye(e.attributes.name)||"yandex-verification"===ye(e.attributes.name)||"csrf-token"===ye(e.attributes.name)||"p:domain_verify"===ye(e.attributes.name)||"verify-v1"===ye(e.attributes.name)||"verification"===ye(e.attributes.name)||"shopify-checkout-api-token"===ye(e.attributes.name)))return!0}}return!1}(O,v)&&(A||O.type!==L.Text||O.isStyle||O.textContent.replace(/^\s+|\s+$/gm,"").length)?Y():-2;const D=Object.assign(O,{id:R});if(r.add(e,D),-2===R)return null;S&&S(e);let M=!h;if(D.type===L.Element){M=M&&!D.needBlock,delete D.needBlock;const t=e.shadowRoot;t&&B(t)&&(D.isShadowHost=!0)}if((D.type===L.Document||D.type===L.Element)&&M){v.headWhitespace&&D.type===L.Element&&"head"===D.tagName&&(A=!1);const t={doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:o,unblockSelector:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h,inlineStylesheet:f,maskInputOptions:p,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:A,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:C,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=ve(n,t);e&&D.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=ve(n,t);r&&(B(e.shadowRoot)&&(r.isShadow=!0),D.childNodes.push(r))}}return e.parentNode&&P(e.parentNode)&&B(e.parentNode)&&(D.isShadow=!0),D.type===L.Element&&"iframe"===D.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let i,s=!1;try{i=r.document.readyState}catch(o){return}if("complete"!==i){const r=setTimeout((()=>{s||(t(),s=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),s=!0,t()}))}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&k){const n=ve(t,{doc:t,mirror:r,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:p,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:A,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:C,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:T});n&&k(e,n)}}),C),D.type===L.Element&&"link"===D.tagName&&"stylesheet"===D.attributes.rel&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(a){return}if(r)return;const s=setTimeout((()=>{i||(t(),i=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(s),i=!0,t()}))}(e,(()=>{if(E){const t=ve(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:p,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:A,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:C,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:T});t&&E(e,t)}}),x),D}function be(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):"call"!==i&&"optionalCall"!==i||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function _e(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let we={map:{},getId:()=>-1,getNode:()=>null,removeNodeFromMap(){},has:()=>!1,reset(){}};function Se(e,t,n={}){let r=null,i=0;return function(...s){const a=Date.now();i||!1!==n.leading||(i=a);const o=t-(a-i),c=this;o<=0||o>t?(r&&(!function(...e){$e("clearTimeout")(...e)}(r),r=null),i=a,e.apply(c,s)):r||!1===n.trailing||(r=We((()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(c,s)}),o))}}function ke(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){We((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>ke(e,t,s||{},!0)}function Ce(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(r){return()=>{}}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(we=new Proxy(we,{get:(e,t,n)=>Reflect.get(e,t,n)}));let Ee=Date.now;function xe(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:be([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||be([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||be([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:be([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||be([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||be([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Te(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ie(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ae(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function Oe(e,t,n,r,i){if(!e)return!1;const s=Ae(e);if(!s)return!1;const a=pe(t,n);if(!i){const e=r&&s.matches(r);return a(s)&&!e}const o=fe(s,a);let c=-1;return!(o<0)&&(r&&(c=fe(s,pe(null,r))),o>-1&&c<0||o<c)}function Re(e,t){return-2===t.getId(e)}function De(e,t){if(P(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||De(e.parentNode,t))}function Me(e){return Boolean(e.changedTouches)}function Fe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ze(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Ne(e){return Boolean(be([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ee=()=>(new Date).getTime());class Le{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Pe(e){let t=null;return be([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Be(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Pe(n);)n=t;return n}(e);return t.contains(n)}function je(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Be(e))}const Ue={};function $e(e){const t=Ue[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"===typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(i){}return Ue[e]=r.bind(window)}function We(...e){return $e("setTimeout")(...e)}var He=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(He||{}),qe=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(qe||{}),Ke=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ke||{}),Ge=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ge||{});function Ve(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):"call"!==i&&"optionalCall"!==i||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function Je(e){return"__ln"in e}class Ze{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=Ve([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Je(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Je(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Xe=(e,t)=>`${e}@${t}`;class Ye{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Ze,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!je(i))return;const s=P(i.parentNode)?this.mirror.getId(Pe(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===s||-1===a)return n.addNode(i);const o=ve(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Fe(e,this.mirror)&&this.iframeManager.addIframe(e),ze(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ne(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});o&&(e.push({parentId:s,nextId:a,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const o of this.movedSet)et(this.removes,o,this.mirror)&&!this.movedSet.has(o.parentNode)||i(o);for(const o of this.addedSet)nt(this.droppedSet,o)||et(this.removes,o,this.mirror)?nt(this.movedSet,o)?i(o):this.droppedSet.add(o):i(o);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),i(e.value)}const a={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"===typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!Re(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:me(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Ae(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,i=e.target.getAttribute(r);if("value"===r){const t=V(n),r=n.tagName;i=J(n,r,t);const s=W({maskInputOptions:this.maskInputOptions,tagName:r,type:t});i=H({isMasked:me(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:n,value:i,maskInputFn:this.maskInputFn})}if(Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===n.tagName&&"src"===r&&!this.keepIframeSrcFn(i)){if(n.contentDocument)return;r="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===r&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!he(n.tagName,r)&&(s.attributes[r]=de(this.doc,q(n.tagName),q(r),i,n,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(n.style)){const t=n.style.getPropertyValue(e),i=n.style.getPropertyPriority(e);t!==r.style.getPropertyValue(e)||i!==r.style.getPropertyPriority(e)?s.styleDiff[e]=""===i?t:[t,i]:s._unchangedStyles[e]=[t,i]}for(const e of Array.from(r.style))""===n.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=P(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Re(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Qe(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||De(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Xe(n,r)]?Qe(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!P(e.target)||!B(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Re(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Xe(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Oe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Ne(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Qe(e,t){e.delete(t),t.childNodes.forEach((t=>Qe(e,t)))}function et(e,t,n){return 0!==e.length&&tt(e,t,n)}function tt(e,t,n){const{parentNode:r}=t;if(!r)return!1;const i=n.getId(r);return!!e.some((e=>e.id===i))||tt(e,r,n)}function nt(e,t){return 0!==e.size&&rt(e,t)}function rt(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||rt(e,n))}let it;function st(e){it=e}function at(){it=void 0}const ot=e=>{if(!it)return e;return(...t)=>{try{return e(...t)}catch(n){if(it&&!0===it(n))return()=>{};throw n}}};function ct(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):"call"!==i&&"optionalCall"!==i||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}const lt=[];function ut(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function dt(e,t){const n=new Ye;lt.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=ct([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);const s=new r(ot((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function ht({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const o=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];let l=null;return Object.keys(Ke).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e])).forEach((a=>{let o=q(a);const u=(t=>a=>{const o=ut(a);if(Oe(o,r,i,s,!0))return;let c=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":c=Ge.Mouse;break;case"touch":c=Ge.Touch;break;case"pen":c=Ge.Pen}c===Ge.Touch?Ke[t]===Ke.MouseDown?u="TouchStart":Ke[t]===Ke.MouseUp&&(u="TouchEnd"):Ge.Pen}else Me(a)&&(c=Ge.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===Ge.Touch||u.startsWith("Mouse")&&c===Ge.Mouse)&&(c=null)):Ke[t]===Ke.Click&&(c=l,l=null);const d=Me(a)?a.changedTouches[0]:a;if(!d)return;const h=n.getId(o),{clientX:f,clientY:p}=d;ot(e)({type:Ke[u],id:h,x:f,y:p,...null!==c&&{pointerType:c}})})(a);if(window.PointerEvent)switch(Ke[a]){case Ke.MouseDown:case Ke.MouseUp:o=o.replace("mouse","pointer");break;case Ke.TouchStart:case Ke.TouchEnd:return}c.push(_e(o,u,t))})),ot((()=>{c.forEach((e=>e()))}))}function ft({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:a}){return _e("scroll",ot(Se(ot((a=>{const o=ut(a);if(!o||Oe(o,r,i,s,!0))return;const c=n.getId(o);if(o===t&&t.defaultView){const n=xe(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:o.scrollLeft,y:o.scrollTop})})),a.scroll||100)),t)}const pt=["INPUT","TEXTAREA","SELECT"],mt=new WeakMap;function gt({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:a,ignoreSelector:o,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m}){function g(e){let n=ut(e);const u=e.isTrusted,g=n&&K(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||pt.indexOf(g)<0||Oe(n,r,i,s,!0))return;const v=n;if(v.classList.contains(a)||o&&v.matches(o))return;const b=V(n);let _=J(v,g,b),w=!1;const S=W({maskInputOptions:c,tagName:g,type:b}),k=me(n,h,p,f,m,S);"radio"!==b&&"checkbox"!==b||(w=n.checked),_=H({isMasked:k,element:n,value:_,maskInputFn:l}),y(n,d?{text:_,isChecked:w,userTriggered:u}:{text:_,isChecked:w});const C=n.name;"radio"===b&&C&&w&&t.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach((e=>{if(e!==n){const t=H({isMasked:k,element:e,value:J(e,g,b),maskInputFn:l});y(e,d?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function y(t,r){const i=mt.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){mt.set(t,r);const i=n.getId(t);ot(e)({...r,id:i})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>_e(e,ot(g),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...w.map((e=>ke(e[0],e[1],{set(){ot(g)({target:this,isTrusted:!1})}},!1,b)))),ot((()=>{v.forEach((e=>e()))}))}function yt(e){return function(e,t){if(wt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||wt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||wt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||wt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function vt(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function bt({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const i="#document"===n.nodeName?ct([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):ct([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=ct([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(ct([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return ct([s,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=ct([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(i){}return n}}),ot((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))):()=>{}}function _t(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=dt(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const i="number"===typeof t.mousemove?t.mousemove:50,s="number"===typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,o=[];const c=Se(ot((t=>{const n=Date.now()-a;e(o.map((e=>(e.timeOffset-=n,e))),t),o=[],a=null})),s),l=ot(Se(ot((e=>{const t=ut(e),{clientX:n,clientY:i}=Me(e)?e.changedTouches[0]:e;a||(a=Ee()),o.push({x:n,y:i,id:r.getId(t),timeOffset:Ee()-a}),c("undefined"!==typeof DragEvent&&e instanceof DragEvent?qe.Drag:e instanceof MouseEvent?qe.MouseMove:qe.TouchMove)})),i,{trailing:!1})),u=[_e("mousemove",l,n),_e("touchmove",l,n),_e("drag",l,n)];return ot((()=>{u.forEach((e=>e()))}))}(e),s=ht(e),a=ft(e),o=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return _e("resize",ot(Se(ot((()=>{const t=Te(),i=Ie();n===t&&r===i||(e({width:Number(i),height:Number(t)}),n=t,r=i)})),200)),t)}(e,{win:n}),c=gt(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:a}){const o=ot((a=>Se(ot((s=>{const o=ut(s);if(!o||Oe(o,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=o;e({type:a,id:i.getId(o),currentTime:c,volume:l,muted:u,playbackRate:d})})),s.media||500))),c=[_e("play",o(0),a),_e("pause",o(1),a),_e("seeked",o(2),a),_e("volumechange",o(3),a),_e("ratechange",o(4),a)];return ot((()=>{c.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:ot(((r,i,s)=>{const[a,o]=s,{id:c,styleId:l}=vt(i,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:a,index:o}]}),r.apply(i,s)}))});const s=r.CSSStyleSheet.prototype.deleteRule;let a,o;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:ot(((r,i,s)=>{const[a]=s,{id:o,styleId:c}=vt(i,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,removes:[{index:a}]}),r.apply(i,s)}))}),r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:ot(((r,i,s)=>{const[a]=s,{id:o,styleId:c}=vt(i,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,replace:a}),r.apply(i,s)}))})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:ot(((r,i,s)=>{const[a]=s,{id:o,styleId:c}=vt(i,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,replaceSync:a}),r.apply(i,s)}))}));const c={};St("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(St("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),St("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),St("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:ot(((r,i,s)=>{const[a,o]=s,{id:c,styleId:l}=vt(i.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:a,index:[...yt(i),o||0]}]}),r.apply(i,s)}))}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:ot(((r,i,s)=>{const[a]=s,{id:o,styleId:c}=vt(i.parentStyleSheet,t,n.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,removes:[{index:[...yt(i),a]}]}),r.apply(i,s)}))})})),ot((()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=s,a&&(r.CSSStyleSheet.prototype.replace=a),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),d=bt(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:ot(((i,a,o)=>{const[c,l,u]=o;if(n.has(c))return s.apply(a,[c,l,u]);const{id:d,styleId:h}=vt(ct([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:c,value:l,priority:u},index:yt(a.parentRule)}),i.apply(a,o)}))});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:ot(((i,s,o)=>{const[c]=o;if(n.has(c))return a.apply(s,[c]);const{id:l,styleId:u}=vt(ct([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:yt(s.parentRule)}),i.apply(s,o)}))}),ot((()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:n}),f=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return i.set(r,{family:e,buffer:"string"!==typeof t,descriptors:n,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const a=Ce(t.fonts,"add",(function(t){return function(n){return We(ot((()=>{const t=i.get(n);t&&(e(t),i.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=s})),r.push(a),ot((()=>{r.forEach((e=>e()))}))}(e):()=>{},p=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:a}=e;let o=!0;const c=ot((()=>{const e=t.getSelection();if(!e||o&&ct([e,"optionalAccess",e=>e.isCollapsed]))return;o=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const a=e.getRangeAt(t),{startContainer:o,startOffset:l,endContainer:u,endOffset:d}=a;Oe(o,r,i,s,!0)||Oe(u,r,i,s,!0)||c.push({start:n.getId(o),startOffset:l,end:n.getId(u),endOffset:d})}a({ranges:c})}));return c(),_e("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Ce(n.customElements,"define",(function(e){return function(n,r,i){try{t({define:{name:n}})}catch(s){}return e.apply(this,[n,r,i])}})):()=>{}}(e),g=[];for(const y of e.plugins)g.push(y.observer(y.callback,n,y.options));return ot((()=>{lt.forEach((e=>e.reset())),r.disconnect(),i(),s(),a(),o(),c(),l(),u(),d(),h(),f(),p(),m(),g.forEach((e=>e()))}))}function wt(e){return"undefined"!==typeof window[e]}function St(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class kt{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const i=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e);let a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),s.set(a,t)),a}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;const i=r.get(t);return i||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Ct(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):"call"!==i&&"optionalCall"!==i||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}class Et{constructor(){this.crossOriginIframeMirror=new kt(Y),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class xt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new kt(Y),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new kt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Ct([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case He.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:He.IncrementalSnapshot,data:{source:qe.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case He.Meta:case He.Load:case He.DomContentLoaded:return!1;case He.Plugin:return t;case He.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case He.IncrementalSnapshot:switch(t.data.source){case qe.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case qe.Drag:case qe.TouchMove:case qe.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case qe.ViewportResize:return!1;case qe.MediaInteraction:case qe.MouseInteraction:case qe.Scroll:case qe.CanvasMutation:case qe.Input:return this.replaceIds(t.data,e,["id"]),t;case qe.StyleSheetRule:case qe.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case qe.Font:return t;case qe.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case qe.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Ct([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const i of r)(Array.isArray(t[i])||"number"===typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===L.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Tt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class It{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!B(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=dt({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(ft({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),We((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(bt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Ce(e.prototype,"attachShadow",(function(e){return function(r){const i=e.call(this,r);return this.shadowRoot&&je(this)&&n.addShadowRoot(this.shadowRoot,t),i}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class At{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class Ot{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Le,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const i of e){let e;this.styleMirror.has(i)?e=this.styleMirror.getId(i):(e=this.styleMirror.add(i),r.push({styleId:e,rules:Array.from(i.rules||CSSRule,((e,t)=>({rule:U(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Rt{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){$e("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Dt,Mt;const Ft=new $;function zt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:a=null,unblockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:l=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:v,maskAttributeFn:b,maskInputFn:_,maskTextFn:w,maxCanvasSize:S=null,packFn:k,sampling:C={},dataURLOptions:E={},mousemoveWait:x,recordCanvas:T=!1,recordCrossOriginIframes:I=!1,recordAfter:A=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:R=!1,inlineImages:D=!1,plugins:M,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:z=new Set([]),errorHandler:N,onMutation:L,getCanvasManager:P}=e;st(N);const B=!I||window.parent===window;let j=!1;if(!B)try{window.parent.document&&(j=!1)}catch(ne){j=!0}if(B&&!t)throw new Error("emit function is required");void 0!==x&&void 0===C.mousemove&&(C.mousemove=x),Ft.reset();const U=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},W=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};let H;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let q=0;const K=e=>{for(const t of M||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!j&&(e=k(e)),e};Dt=(e,s)=>{const a=e;if(a.timestamp=Ee(),!r([lt,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||a.type===He.FullSnapshot||a.type===He.IncrementalSnapshot&&a.data.source===qe.Mutation||lt.forEach((e=>e.unfreeze())),B)r([t,"optionalCall",e=>e(K(a),s)]);else if(j){const e={type:"rrweb",event:K(a),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(a.type===He.FullSnapshot)H=a,q=0;else if(a.type===He.IncrementalSnapshot){if(a.data.source===qe.Mutation&&a.data.isAttachIframe)return;q++;const e=i&&q>=i,t=n&&H&&a.timestamp-H.timestamp>n;(e||t)&&te(!0)}};const G=e=>{Dt({type:He.IncrementalSnapshot,data:{source:qe.Mutation,...e}})},V=e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.Scroll,...e}}),J=e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.CanvasMutation,...e}}),Z=new Ot({mutationCb:G,adoptedStyleSheetCb:e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.AdoptedStyleSheet,...e}})}),X="boolean"===typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Et:new xt({mirror:Ft,mutationCb:G,stylesheetManager:Z,recordCrossOriginIframes:I,wrappedEmit:Dt});for(const r of M||[])r.getMirror&&r.getMirror({nodeMirror:Ft,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Y=new Rt,Q=function(e,t){try{return e?e(t):new At}catch(n){return new At}}(P,{mirror:Ft,win:window,mutationCb:e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.CanvasMutation,...e}}),recordCanvas:T,blockClass:s,blockSelector:a,unblockSelector:o,maxCanvasSize:S,sampling:C.canvas,dataURLOptions:E,errorHandler:N}),ee="boolean"===typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Tt:new It({mutationCb:G,scrollCb:V,bypassOptions:{onMutation:L,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:U,dataURLOptions:E,maskAttributeFn:b,maskTextFn:w,maskInputFn:_,recordCanvas:T,inlineImages:D,sampling:C,slimDOMOptions:W,iframeManager:X,stylesheetManager:Z,canvasManager:Q,keepIframeSrcFn:F,processedNodeManager:Y},mirror:Ft}),te=(e=!1)=>{Dt({type:He.Meta,data:{href:window.location.href,width:Ie(),height:Te()}},e),Z.reset(),ee.init(),lt.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new $,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:a=!1,maskTextClass:o="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:f=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:x=()=>!1}=t||{};return ve(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:o,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===p?{}:p,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:h,recordCanvas:f,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:Ft,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:U,maskAttributeFn:b,maskInputFn:_,maskTextFn:w,slimDOM:W,dataURLOptions:E,recordCanvas:T,inlineImages:D,onSerialize:e=>{Fe(e,Ft)&&X.addIframe(e),ze(e,Ft)&&Z.trackLinkElement(e),Ne(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Z.attachLinkElement(e,t)},keepIframeSrcFn:F});t&&(Dt({type:He.FullSnapshot,data:{node:t,initialOffset:xe(window)}}),lt.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Z.adoptStyleSheets(document.adoptedStyleSheets,Ft.getId(document)))};Mt=te;try{const e=[],t=e=>ot(_t)({onMutation:L,mutationCb:G,mousemoveCb:(e,t)=>Dt({type:He.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.MouseInteraction,...e}}),scrollCb:V,viewportResizeCb:e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.ViewportResize,...e}}),inputCb:e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.Input,...e}}),mediaInteractionCb:e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.MediaInteraction,...e}}),styleSheetRuleCb:e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.StyleSheetRule,...e}}),styleDeclarationCb:e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.StyleDeclaration,...e}}),canvasMutationCb:J,fontCb:e=>Dt({type:He.IncrementalSnapshot,data:{source:qe.Font,...e}}),selectionCb:e=>{Dt({type:He.IncrementalSnapshot,data:{source:qe.Selection,...e}})},customElementCb:e=>{Dt({type:He.IncrementalSnapshot,data:{source:qe.CustomElement,...e}})},blockClass:s,ignoreClass:c,ignoreSelector:l,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:U,inlineStylesheet:m,sampling:C,recordCanvas:T,inlineImages:D,userTriggeredOnInput:O,collectFonts:R,doc:e,maskAttributeFn:b,maskInputFn:_,maskTextFn:w,keepIframeSrcFn:F,blockSelector:a,unblockSelector:o,slimDOMOptions:W,dataURLOptions:E,mirror:Ft,iframeManager:X,stylesheetManager:Z,shadowDomManager:ee,processedNodeManager:Y,canvasManager:Q,ignoreCSSAttributes:z,plugins:r([M,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Dt({type:He.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});X.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(r){}}));const n=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(_e("DOMContentLoaded",(()=>{Dt({type:He.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&n()}))),e.push(_e("load",(()=>{Dt({type:He.Load,data:{}}),"load"===A&&n()}),window))),()=>{e.forEach((e=>e())),Y.destroy(),Mt=void 0,at()}}catch(re){}}zt.mirror=Ft,zt.takeFullSnapshot=function(e){if(!Mt)throw new Error("please take full snapshot after start recording");Mt(e)};function Nt(e){return e>9999999999?e:1e3*e}function Lt(e){return e>9999999999?e/1e3:e}function Pt(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:He.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,f.S8)(t,10,1e3)}}),"console"===t.category))))}function Bt(e){return e.closest("button,a")||e}function jt(e){const t=Ut(e);return t&&t instanceof Element?Bt(t):t}function Ut(e){return function(e){return"object"===typeof e&&!!e&&"target"in e}(e)?e.target:e}let $t;function Wt(e){return $t||($t=[],(0,p.GS)(A,"open",(function(e){return function(...t){if($t)try{$t.forEach((e=>e()))}catch(n){}return e.apply(A,t)}}))),$t.push(e),()=>{const t=$t?$t.indexOf(e):-1;t>-1&&$t.splice(t,1)}}class Ht{constructor(e,t,n=Pt){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=Wt((()=>{this._lastMutation=Kt()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!qt.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!==typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:Lt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Lt(e)}registerScroll(e=Date.now()){this._lastScroll=Lt(e)}registerClick(e){const t=Bt(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Kt();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const n of e){const e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:s,clickBreadcrumb:a}=e;if(i){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:A.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}};this._addBreadcrumbEvent(t,i)}else if(s>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:A.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const qt=["A","BUTTON","INPUT"];function Kt(){return Date.now()/1e3}function Gt(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(n===qe.Mutation&&e.registerMutation(t.timestamp),n===qe.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===qe.MouseInteraction}(t)){const{type:n,id:r}=t.data,i=zt.mirror.getNode(r);i instanceof HTMLElement&&n===Ke.Click&&e.registerClick(i)}}catch(n){}}function Vt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Jt;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Jt||(Jt={}));const Zt=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Xt(e){const t={};for(const n in e)if(Zt.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const Yt=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?jt(e.event):Ut(e.event),n=(0,m.Hd)(r,{maxStringLength:200})||"<unknown>"}catch(i){n="<unknown>"}return{target:r,message:n}}(e);return Vt({category:`ui.${e.name}`,...Qt(t,n)})}(t);if(!n)return;const r="click"===t.name,i=r?t.event:void 0;!(r&&e.clickDetector&&i&&i.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,jt(t.event)),Pt(e,n)};function Qt(e,t){const n=zt.mirror.getId(e),r=n&&zt.mirror.getNode(n),i=r&&zt.mirror.getMeta(r),s=i&&function(e){return e.type===Jt.Element}(i)?i:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map((e=>e.type===Jt.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Xt(s.attributes)}}:{}}}function en(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:s,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!s)return null;const o=t||r||i,c=1===s.length;if(!o&&c)return null;const l=(0,m.Hd)(a,{maxStringLength:200})||"<unknown>",u=Qt(a,l);return Vt({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:s}})}(t);n&&Pt(e,n)}const tn={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:a,encodedBodySize:o,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:rn(s),end:rn(i),name:r,data:{size:l,statusCode:c,decodedBodySize:a,encodedBodySize:o}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:i}=e,s=rn(i);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:a,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:f,transferSize:p,type:m}=e;if(0===i)return null;return{type:`${t}.${m}`,start:rn(f),end:rn(s),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:l,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:h}}}};function nn(e){return tn[e.entryType]?tn[e.entryType](e):null}function rn(e){return((g.k3||A.performance.timeOrigin)+e)/1e3}function sn(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push((0,I.wv)(e,n))})),r.push((0,I.Pt)((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,i=e.value,s=rn(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:s,end:s,data:{value:i,size:i,nodeId:r?zt.mirror.getId(r):void 0}}}(t))}))),()=>{r.forEach((e=>e()))}}const an="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function on(e,t){an&&(y.vF.info(e),t&&ln(e))}function cn(e,t){an&&(y.vF.info(e),t&&setTimeout((()=>{ln(e)}),0))}function ln(e){(0,i.ZQ)({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class un extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class dn{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>F)throw new un;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Nt(e):null}}class hn{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){on("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,i)=>{const s=({data:t})=>{const a=t;if(a.method===e&&a.id===n){if(this._worker.removeEventListener("message",s),!a.success)return an&&y.vF.error("[Replay]",a.response),void i(new Error("Error in compression worker"));r(a.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class fn{constructor(e){this._worker=new hn(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Nt(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>F?Promise.reject(new un):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{an&&y.vF.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class pn{constructor(e){this._fallback=new dn,this._compression=new fn(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void on("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const i of e)n.push(this._compression.addEvent(i));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(r){an&&y.vF.warn("[Replay] Failed to add events when switching buffers.",r)}}}function mn({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"===typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([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,0,0,0]),i=new t([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,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;on("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new pn(n)}catch(t){on("[Replay] Failed to create compression worker")}}(t);if(e)return e}return on("[Replay] Using simple buffer"),new dn}function gn(){try{return"sessionStorage"in A&&!!A.sessionStorage}catch(e){return!1}}function yn(e){!function(){if(!gn())return;try{A.sessionStorage.removeItem(O)}catch(e){}}(),e.session=void 0}function vn(e){return void 0!==e&&Math.random()<e}function bn(e){const t=Date.now();return{id:e.id||(0,v.eJ)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function _n(e){if(gn())try{A.sessionStorage.setItem(O,JSON.stringify(e))}catch(t){}}function wn({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=function(e,t){return vn(e)?"session":!!t&&"buffer"}(e,t),s=bn({sampled:i,previousSessionId:r});return n&&_n(s),s}function Sn(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function kn(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Sn(e.started,t,r)||Sn(e.lastActivity,n,r)}function Cn(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!kn(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function En({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},i){const s=i.stickySession&&function(e){if(!gn())return null;try{const t=A.sessionStorage.getItem(O);if(!t)return null;const n=JSON.parse(t);return cn("[Replay] Loading existing session",e),bn(n)}catch(t){return null}}(e);return s?Cn(s,{sessionIdleExpire:t,maxReplayDuration:n})?(cn("[Replay] Session in sessionStorage is expired, creating new one..."),wn(i,{previousSessionId:s.id})):s:(cn("[Replay] Creating new session",e),wn(i,{previousSessionId:r}))}function xn(e,t,n){return!!In(e,t)&&(Tn(e,t,n),!0)}async function Tn(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=function(e,t){try{if("function"===typeof t&&function(e){return e.type===He.Custom}(e))return t(e)}catch(n){return an&&y.vF.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!r)return;return await e.eventBuffer.addEvent(r)}catch(r){const t=r&&r instanceof un?"addEventSizeExceeded":"addEvent";an&&y.vF.error(r),await e.stop({reason:t});const n=(0,i.KU)();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function In(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Nt(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(on(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function An(e){return!e.type}function On(e){return"transaction"===e.type}function Rn(e){return"feedback"===e.type}function Dn(e){const t=function(){const e=(0,i.KU)();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!e.isEnabled()||!An(n)&&!On(n))return;const i=r&&r.statusCode;t&&(!i||i<200||i>=300)||(On(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"===typeof r&&!r(t))return;setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function Mn(e){return t=>{e.isEnabled()&&An(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!==typeof n)return;if(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Pt(e,Vt({category:"replay.hydrate-error"}))}}(e,t)}}function Fn(e,t=!1){const n=t?Dn(e):void 0;return Object.assign(((t,r)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!An(t)&&!On(t)&&!Rn(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(Rn(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:He.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return an&&y.vF.log("[Replay] Ignoring error from rrweb internals",t),null;const i=function(e,t){return"buffer"===e.recordingMode&&t.message!==R&&!(!t.exception||t.type)&&vn(e.getOptions().errorSampleRate)}(e,t);return(i||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}),{id:"Replay"})}function zn(e,t){return t.map((({type:t,start:n,end:r,name:i,data:s})=>{const a=e.throttledAddEvent({type:He.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:s}}});return"string"===typeof a?Promise.resolve(null):a}))}function Nn(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(zn(e,[n]),!1))))}}function Ln(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!an||!e.getOptions()._experiments.traceInternals)&&s(t,(0,i.KU)())}(e,t.name)||e.addUpdate((()=>(zn(e,[t]),!0))))}function Pn(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[b.Er];if(!t||!n||!i)return null;const{method:s,url:a,status_code:o}=i;return void 0===a?null:{type:"resource.xhr",name:a,start:t/1e3,end:n/1e3,data:{method:s,statusCode:o}}}(t);Ln(e,n)}}function Bn(e,t){if(e)try{if("string"===typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Gn(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(n){}}function jn(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Un(e){try{if("string"===typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Gn(e)];if(!e)return[void 0]}catch(t){return an&&y.vF.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return an&&y.vF.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function $n(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Wn(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:a,request:o,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:(0,p.Ce)({method:s,statusCode:a,request:o,response:c})}}function Hn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function qn(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:s}=function(e){if(!e||"string"!==typeof e)return{body:e};const t=e.length>D,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,D);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(r){}return{body:e}}(n);return r.body=i,s&&s.length>0&&(r._meta={warnings:s}),r}function Kn(e,t){return Object.keys(e).reduce(((n,r)=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n}),{})}function Gn(e){return new URLSearchParams(e).toString()}function Vn(e,t){const n=function(e,t=A.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(A.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return(0,_.Xr)(n,t)}async function Jn(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=t,{url:a,method:o,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=Vn(a,n.networkDetailAllowUrls)&&!Vn(a,n.networkDetailDenyUrls),h=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?function(e,t){if(1===e.length&&"string"!==typeof e[0])return Yn(e[0],t);if(2===e.length)return Yn(e[1],t);return{}}(n,t):{};if(!e)return qn(i,r,void 0);const s=Zn(n),[a,o]=Un(s),c=qn(i,r,a);if(o)return $n(c,o);return c}(n,t.input,l):Hn(l),f=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,s){if(!e&&void 0!==s)return Hn(s);const a=i?Xn(i.headers,r):{};if(!i||!t&&void 0!==s)return qn(a,s,void 0);const[o,c]=await async function(e){const t=function(e){try{return e.clone()}catch(t){an&&y.vF.warn("[Replay] Failed to clone response body",t)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(n){return an&&y.vF.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}(i),l=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:i,headers:s}){try{const a=e&&e.length&&void 0===r?Bn(e,n):r;return i?qn(s,a,t?e:void 0):Hn(a)}catch(a){return an&&y.vF.warn("[Replay] Failed to serialize response body",a),qn(s,r,void 0)}}(o,{networkCaptureBodies:t,textEncoder:n,responseBodySize:s,captureDetails:e,headers:a});if(c)return $n(l,c);return l}(d,n,t.response,u);return{startTimestamp:i,endTimestamp:s,url:a,method:o,statusCode:c,request:h,response:f}}(e,t,n),i=Wn("resource.fetch",r);Ln(n.replay,i)}catch(r){an&&y.vF.error("[Replay] Failed to capture fetch breadcrumb",r)}}function Zn(e=[]){if(2===e.length&&"object"===typeof e[1])return e[1].body}function Xn(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Yn(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Xn(n,t):Array.isArray(n)?{}:Kn(n,t):{}}async function Qn(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:a,xhr:o}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!c)return null;if(!o||!Vn(c,n.networkDetailAllowUrls)||Vn(c,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:s,url:c,method:l,statusCode:u,request:Hn(d),response:Hn(h)}}const f=o[b.Er],p=f?Kn(f.request_headers,n.networkRequestHeaders):{},m=Kn(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{})}(o),n.networkResponseHeaders),[g,v]=n.networkCaptureBodies?Un(a):[void 0],[_,w]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return function(e,t){try{if("string"===typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"===typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return an&&y.vF.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return an&&y.vF.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(n){t.push(n)}return an&&y.vF.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(o):[void 0],S=qn(p,d,g),k=qn(m,h,_);return{startTimestamp:i,endTimestamp:s,url:c,method:l,statusCode:u,request:v?$n(S,v):S,response:w?$n(k,w):k}}(e,t,n),i=Wn("resource.xhr",r);Ln(n.replay,i)}catch(r){an&&y.vF.error("[Replay] Failed to capture xhr breadcrumb",r)}}function er(e,t,n){const{xhr:r,input:i}=t;if(!r)return;const s=Bn(i,n.textEncoder),a=r.getResponseHeader("content-length")?jn(r.getResponseHeader("content-length")):function(e,t,n){try{return Bn("json"===t&&e&&"object"===typeof e?JSON.stringify(e):e,n)}catch(r){return}}(r.response,r.responseType,n.textEncoder);void 0!==s&&(e.data.request_body_size=s),void 0!==a&&(e.data.response_body_size=a)}function tr(e){const t=(0,i.KU)();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(er(t,n,e),Qn(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:r,response:i}=t,s=Bn(r?Zn(r):void 0,n.textEncoder),a=i?jn(i.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==a&&(e.data.response_body_size=a)}(t,n,e),Jn(t,n,e))}catch(r){an&&y.vF.warn("Error when enriching network breadcrumb")}}(c,e,t))):((0,w.u)(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;const{method:s,url:a}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:a,data:{method:s,statusCode:i?i.status:void 0}}}(t);Ln(e,n)}}(e)),(0,b.Mn)(Pn(e)))}catch(n){}}let nr=null;const rr=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(nr===t||!t)return null;if(nr=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Vt(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"===typeof e)return e.length>M?(n=!0,`${e.slice(0,M)}\u2026`):e;if("object"===typeof e)try{const t=(0,f.S8)(e,7);return JSON.stringify(t).length>M?(n=!0,`${JSON.stringify(t,null,2).slice(0,M)}\u2026`):t}catch(t){}return e}));return Vt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return Vt(t)}(t);n&&Pt(e,n)};function ir(e){return!(!e||!e.on)}function sr(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function ar(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(an&&y.vF.warn("[Replay] Received replay event after session expired."));const i=r||!t;t=!0,e.clickDetector&&Gt(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!xn(e,n,i))return!0;if(!i)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;xn(e,function(e){const t=e.getOptions();return{type:He.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(on(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&_n(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}function or(e,t,n,r){return(0,C.h4)((0,C.n2)(e,(0,C.Cj)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"===typeof t?(new TextEncoder).encode(t).length:t.length},t]])}async function cr({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:a}){const o=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"===typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:d,traceIds:h,initialTimestamp:f}=r,p=(0,i.KU)(),m=(0,i.o5)(),g=p&&p.getTransport(),y=p&&p.getDsn();if(!p||!g||!y||!a.sampled)return;const v={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:s/1e3,error_ids:d,trace_ids:h,urls:u,replay_id:t,segment_id:n,replay_type:a.sampled},b=await async function({client:e,scope:t,replayId:n,event:r}){const i={event_id:n,integrations:"object"!==typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",r,i);const s=await(0,c.mG)(e.getOptions(),r,i,t,e,(0,l.rm)());if(!s)return null;s.platform=s.platform||"javascript";const a=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:u}=a&&a.sdk||{};return s.sdk={...s.sdk,name:o||"sentry.javascript.unknown",version:u||"0.0.0"},s}({scope:m,client:p,replayId:t,event:v});if(!b)return p.recordDroppedEvent("event_processor","replay",v),void on("An event processor returned `null`, will not send event.");delete b.sdkProcessingMetadata;const _=or(b,o,y,p.getOptions().tunnel);let w;try{w=await g.send(_)}catch(k){const e=new Error(R);try{e.cause=k}catch(C){}throw e}if(!w)return w;if("number"===typeof w.statusCode&&(w.statusCode<200||w.statusCode>=300))throw new lr(w.statusCode);const S=(0,E.wq)({},w);if((0,E.Jz)(S,"replay"))throw new ur(S);return w}class lr extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ur extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function dr(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;if(n.length)try{return await cr(e),!0}catch(s){if(s instanceof lr||s instanceof ur)throw s;if((0,i.o)("Replays",{_retryCount:t.count}),an&&r._experiments&&r._experiments.captureExceptions&&(0,i.Cp)(s),t.count>=3){const e=new Error(`${R} - max retries exceeded`);try{e.cause=s}catch(a){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{setTimeout((async()=>{try{await dr(e,t),n(!0)}catch(s){r(s)}}),t.interval)}))}}const hr="__THROTTLED";function fr(e,t,n){const r=new Map;let i=!1;return(...s)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(a),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=i;return i=!0,e?"__SKIPPED":hr}i=!1;const o=r.get(a)||0;return r.set(a,o+1),e(...s)}}class pr{constructor({options:e,recordingOptions:t}){pr.prototype.__init.call(this),pr.prototype.__init2.call(this),pr.prototype.__init3.call(this),pr.prototype.__init4.call(this),pr.prototype.__init5.call(this),pr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,s;const a=n&&n.maxWait?Math.max(n.maxWait,t):0;function o(){return c(),r=e(),r}function c(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function l(){return i&&clearTimeout(i),i=setTimeout(o,t),a&&void 0===s&&(s=setTimeout(o,a)),r}return l.cancel=c,l.flush=function(){return void 0!==i||void 0!==s?o():r},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=fr(((e,t)=>function(e,t,n){return In(e,t)?Tn(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new Ht(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",cn(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");cn("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=En({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");cn("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=En({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=zt({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:ar(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{on("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,yn(this)}catch(n){this._handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),on("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),on("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();on("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Sn(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${A.location.pathname}${A.location.hash}${A.location.search}`,t=`${A.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===hr){const e=Vt({category:"replay.throttled"});this.addUpdate((()=>!xn(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||(0,i.o5)().getTransaction(),t=(e&&(0,u.et)(e).data||{})[d.i_];if(e&&t&&["route","custom"].includes(t))return(0,u.et)(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=mn({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){an&&y.vF.error("[Replay]",e),an&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,i.Cp)(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=En({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Cn(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{A.document.addEventListener("visibilitychange",this._handleVisibilityChange),A.addEventListener("blur",this._handleWindowBlur),A.addEventListener("focus",this._handleWindowFocus),A.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=(0,i.o5)(),n=(0,i.KU)();t.addScopeListener(rr(e)),(0,S.i)(Yt(e)),(0,k._)(Nn(e)),tr(e);const r=Fn(e,!ir(n));n&&n.addEventProcessor?n.addEventProcessor(r):(0,o.S)(r),ir(n)&&(n.on("beforeSendEvent",Mn(e)),n.on("afterSendEvent",Dn(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})),n.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=sn(this)}_removeListeners(){try{A.document.removeEventListener("visibilitychange",this._handleVisibilityChange),A.removeEventListener("blur",this._handleWindowBlur),A.removeEventListener("focus",this._handleWindowFocus),A.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===A.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Vt({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Vt({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{en(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;kn(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):on("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:He.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(nn).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(zn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(zn(e,[sr(A.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await dr({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(t){this._handleException(t),this.stop({reason:"sendReplay"});const e=(0,i.KU)();e&&e.recordDroppedEvent("send_error","replay")}}else an&&y.vF.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(an&&y.vF.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i)return on(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const s=this.eventBuffer;if(s&&0===this.session.segmentId&&!s.hasCheckout&&on("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(a){an&&y.vF.error(a)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&_n(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Vt({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function mr(e,t,n,r){const i=[...e,..."string"===typeof r?r.split(","):[],...t];return"undefined"!==typeof n&&("string"===typeof n&&i.push(`.${n}`),(0,y.pq)((()=>{}))),i.join(",")}const gr='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',yr=["content-length","content-type","accept"];let vr=!1;const br=e=>new _r(e);class _r{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:o={},sessionSampleRate:c,errorSampleRate:l,maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:h=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:v=[],networkCaptureBodies:b=!0,networkRequestHeaders:_=[],networkResponseHeaders:w=[],mask:S=[],maskAttributes:k=["title","placeholder"],unmask:C=[],block:E=[],unblock:x=[],ignore:I=[],maskFn:A,beforeAddRecordingEvent:O,beforeErrorSampling:R,blockClass:D,blockSelector:M,maskInputOptions:F,maskTextClass:N,maskTextSelector:L,ignoreClass:P}={}){this.name=_r.id;const B=function({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:s,blockSelector:a,maskTextClass:o,maskTextSelector:c,ignoreClass:l}){const u={maskTextSelector:mr(e,[".sentry-mask","[data-sentry-mask]"],o,c),unmaskTextSelector:mr(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:mr(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],s,a),unblockSelector:mr(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:mr(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return s instanceof RegExp&&(u.blockClass=s),o instanceof RegExp&&(u.maskTextClass=o),u}({mask:S,unmask:C,block:E,unblock:x,ignore:I,blockClass:D,blockSelector:M,maskTextClass:N,maskTextSelector:L,ignoreClass:P});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{...F||{},password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return r?i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s:s}({maskAttributes:k,maskAllText:u,privacyOptions:B,key:e,value:t,el:n}),...B,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,z),stickySession:i,sessionSampleRate:c,errorSampleRate:l,useCompression:s,workerUrl:a,blockAllMedia:h,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:v,networkCaptureBodies:b,networkRequestHeaders:wr(_),networkResponseHeaders:wr(w),beforeAddRecordingEvent:O,beforeErrorSampling:R,_experiments:o},"number"===typeof c&&(this._initialOptions.sessionSampleRate=c),"number"===typeof l&&(this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${gr}`:gr),this._isInitialized&&T())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return vr}set _isInitialized(e){vr=e}setupOnce(){T()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=(0,i.KU)(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,p.Ce)(e)};if(!n)return(0,y.pq)((()=>{})),r;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&(0,y.pq)((()=>{}));"number"===typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate);"number"===typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate);return r}(this._initialOptions);this._replay=new pr({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=(0,i.KU)().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function wr(e){return[...yr,...e.map((e=>e.toLowerCase()))]}_r.__initStatic()},28921:(e,t,n)=>{"use strict";n.d(t,{De:()=>d,hF:()=>a,yD:()=>u});var r=n(5189),i=n(30747),s=n(83887);const a="baggage",o="sentry-",c=/^sentry-/,l=8192;function u(e){if(!(0,i.Kg)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=h(t);for(const r of Object.keys(n))e[r]=n[r];return e}),{});else{if(!e)return;t=h(e)}const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(c)){e[t.slice(o.length)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function d(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===i?a:`${e},${a}`;return o.length>l?(r.T&&s.vF.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${o}${t}`]=n),e)),{}))}function h(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}},70411:(e,t,n)=>{"use strict";n.d(t,{$N:()=>c,Hd:()=>a,NX:()=>l,xE:()=>u});var r=n(30747);const i=(0,n(91444).VZ)(),s=80;function a(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let a=0,c=0;const l=" > ",u=l.length;let d;const h=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||s;for(;n&&a++<r&&(d=o(n,h),!("html"===d||a>1&&c+i.length*u+d.length>=f));)i.push(d),c+=d.length,n=n.parentNode;return i.reverse().join(l)}catch(n){return"<unknown>"}}function o(e,t){const n=e,s=[];let a,o,c,l,u;if(!n||!n.tagName)return"";if(i.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;s.push(n.tagName.toLowerCase());const d=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(d&&d.length)d.forEach((e=>{s.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&s.push(`#${n.id}`),a=n.className,a&&(0,r.Kg)(a))for(o=a.split(/\s+/),u=0;u<o.length;u++)s.push(`.${o[u]}`);const h=["aria-label","type","name","title","alt"];for(u=0;u<h.length;u++)c=h[u],l=n.getAttribute(c),l&&s.push(`[${c}="${l}"]`);return s.join("")}function c(){try{return i.document.location.href}catch(e){return""}}function l(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function u(e){if(!i.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}},30246:(e,t,n)=>{"use strict";n.d(t,{AD:()=>c,SB:()=>a});var r=n(5189),i=n(83887);const s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function o(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){const t="string"===typeof e?function(e){const t=s.exec(e);if(!t)return void(0,i.pq)((()=>{}));const[n,r,a="",c,l="",u]=t.slice(1);let d="",h=u;const f=h.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),h=f.pop()),h){const e=h.match(/^\d+/);e&&(h=e[0])}return o({host:c,pass:a,path:d,projectId:h,port:l,protocol:n,publicKey:r})}(e):o(e);if(t&&function(e){if(!r.T)return!0;const{port:t,projectId:n,protocol:s}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(i.vF.error(`Invalid Sentry Dsn: ${t} missing`),!0)))&&(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(s)?!t||!isNaN(parseInt(t,10))||(i.vF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.vF.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),!1):(i.vF.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}},49728:(e,t,n)=>{"use strict";function r(){return"undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{Z:()=>r,e:()=>i})},44103:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>p,W3:()=>o,bN:()=>u,bm:()=>d,h4:()=>a,n2:()=>m,yH:()=>c,zk:()=>f});var r=n(30246),i=n(96008),s=n(9576);function a(e,t=[]){return[e,t]}function o(e,t){const[n,r]=e;return[n,[...r,t]]}function c(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function l(e,t){return(t||new TextEncoder).encode(e)}function u(e,t){const[n,r]=e;let s=JSON.stringify(n);function a(e){"string"===typeof s?s="string"===typeof e?s+e:[l(s,t),e]:s.push("string"===typeof e?l(e,t):e)}for(const c of r){const[e,t]=c;if(a(`\n${JSON.stringify(e)}\n`),"string"===typeof t||t instanceof Uint8Array)a(t);else{let e;try{e=JSON.stringify(t)}catch(o){e=JSON.stringify((0,i.S8)(t))}a(e)}}return"string"===typeof s?s:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(s)}function d(e,t){const n="string"===typeof e.data?l(e.data,t):e.data;return[(0,s.Ce)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const h={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function f(e){return h[e]}function p(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function m(e,t,n,i){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:(0,r.SB)(i)},...a&&{trace:(0,s.Ce)({...a})}}}},36229:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});class r extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},6957:(e,t,n)=>{"use strict";n.d(t,{AS:()=>l,aj:()=>u,s5:()=>c});var r=n(5189),i=n(83887),s=n(84814);const a={},o={};function c(e,t){a[e]=a[e]||[],a[e].push(t)}function l(e,t){o[e]||(t(),o[e]=!0)}function u(e,t){const n=e&&a[e];if(n)for(const a of n)try{a(t)}catch(o){r.T&&i.vF.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,s.qQ)(a)}\nError:`,o)}}},5333:(e,t,n)=>{"use strict";n.d(t,{i:()=>h});var r=n(4475),i=n(9576),s=n(91444),a=n(6957);const o=s.OW,c=1e3;let l,u,d;function h(e){(0,a.s5)("dom",e),(0,a.AS)("dom",f)}function f(){if(!o.document)return;const e=a.aj.bind(null,"dom"),t=p(e,!0);o.document.addEventListener("click",t,!1),o.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=o[t]&&o[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,i.GS)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=s[n]=s[n]||{refCount:0};if(!a.handler){const r=p(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(s){}return t.call(this,n,r,i)}})),(0,i.GS)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},s=i[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(i){}return e.call(this,t,n,r)}})))}))}function p(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const s=function(e){try{return e.target}catch(t){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,s))return;(0,i.my)(n,"_sentryCaptured",!0),s&&!s._sentryId&&(0,i.my)(s,"_sentryId",(0,r.eJ)());const a="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==u)return!1;try{if(!e.target||e.target._sentryId!==d)return!1}catch(t){}return!0}(n)){e({event:n,name:a,global:t}),u=n.type,d=s?s._sentryId:void 0}clearTimeout(l),l=o.setTimeout((()=>{d=void 0,u=void 0}),c)}}},36733:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r=n(9576),i=n(9863),s=n(91444),a=n(6957);function o(e){const t="fetch";(0,a.s5)(t,e),(0,a.AS)(t,c)}function c(){(0,i.m7)()&&(0,r.GS)(s.OW,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:u(t),method:l(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:u(t),method:l(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return(0,a.aj)("fetch",{...i}),e.apply(s.OW,t).then((e=>{const t={...i,endTimestamp:Date.now(),response:e};return(0,a.aj)("fetch",t),e}),(e=>{const t={...i,endTimestamp:Date.now(),error:e};throw(0,a.aj)("fetch",t),e}))}}))}function l(e,t){return!!e&&"object"===typeof e&&!!e[t]}function u(e){return"string"===typeof e?e:e?l(e,"url")?e.url:e.toString?e.toString():"":""}},19150:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(91444),i=n(6957);let s=null;function a(e){const t="error";(0,i.s5)(t,e),(0,i.AS)(t,o)}function o(){s=r.OW.onerror,r.OW.onerror=function(e,t,n,r,a){const o={column:r,error:a,line:n,msg:e,url:t};return(0,i.aj)("error",o),!(!s||s.__SENTRY_LOADER__)&&s.apply(this,arguments)},r.OW.onerror.__SENTRY_INSTRUMENTED__=!0}},87976:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(91444),i=n(6957);let s=null;function a(e){const t="unhandledrejection";(0,i.s5)(t,e),(0,i.AS)(t,o)}function o(){s=r.OW.onunhandledrejection,r.OW.onunhandledrejection=function(e){const t=e;return(0,i.aj)("unhandledrejection",t),!(s&&!s.__SENTRY_LOADER__)||s.apply(this,arguments)},r.OW.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},22059:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(9576),i=n(91444);const s=(0,i.VZ)();var a=n(6957);const o=i.OW;let c;function l(e){const t="history";(0,a.s5)(t,e),(0,a.AS)(t,u)}function u(){if(!function(){const e=s.chrome,t=e&&e.app&&e.app.runtime,n="history"in s&&!!s.history.pushState&&!!s.history.replaceState;return!t&&n}())return;const e=o.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=c,t=String(n);c=t;const r={from:e,to:t};(0,a.aj)("history",r)}return e.apply(this,t)}}o.onpopstate=function(...t){const n=o.location.href,r=c;c=n;const i={from:r,to:n};if((0,a.aj)("history",i),e)try{return e.apply(this,t)}catch(s){}},(0,r.GS)(o.history,"pushState",t),(0,r.GS)(o.history,"replaceState",t)}},4795:(e,t,n)=>{"use strict";n.d(t,{Er:()=>c,Mn:()=>l});var r=n(30747),i=n(9576),s=n(91444),a=n(6957);const o=s.OW,c="__sentry_xhr_v3__";function l(e){(0,a.s5)("xhr",e),(0,a.AS)("xhr",u)}function u(){if(!o.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,i.GS)(e,"open",(function(e){return function(...t){const n=Date.now(),s=(0,r.Kg)(t[0])?t[0].toUpperCase():void 0,o=function(e){if((0,r.Kg)(e))return e;try{return e.toString()}catch(t){}return}(t[1]);if(!s||!o)return e.apply(this,t);this[c]={method:s,url:o,request_headers:{}},"POST"===s&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const l=()=>{const e=this[c];if(e&&4===this.readyState){try{e.status_code=this.status}catch(t){}const r={args:[s,o],endTimestamp:Date.now(),startTimestamp:n,xhr:this};(0,a.aj)("xhr",r)}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?(0,i.GS)(this,"onreadystatechange",(function(e){return function(...t){return l(),e.apply(this,t)}})):this.addEventListener("readystatechange",l),(0,i.GS)(this,"setRequestHeader",(function(e){return function(...t){const[n,i]=t,s=this[c];return s&&(0,r.Kg)(n)&&(0,r.Kg)(i)&&(s.request_headers[n.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),(0,i.GS)(e,"send",(function(e){return function(...t){const n=this[c];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);const r={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return(0,a.aj)("xhr",r),e.apply(this,t)}}))}},30747:(e,t,n)=>{"use strict";n.d(t,{BD:()=>o,Kg:()=>l,L2:()=>_,NF:()=>u,Qd:()=>h,Qg:()=>g,T2:()=>a,W6:()=>c,bJ:()=>i,gd:()=>m,mE:()=>y,sO:()=>d,tH:()=>b,vq:()=>p,xH:()=>f,yr:()=>v});const r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function s(e,t){return r.call(e)===`[object ${t}]`}function a(e){return s(e,"ErrorEvent")}function o(e){return s(e,"DOMError")}function c(e){return s(e,"DOMException")}function l(e){return s(e,"String")}function u(e){return"object"===typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!==typeof e&&"function"!==typeof e}function h(e){return s(e,"Object")}function f(e){return"undefined"!==typeof Event&&b(e,Event)}function p(e){return"undefined"!==typeof Element&&b(e,Element)}function m(e){return s(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function y(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"===typeof e&&e!==e}function b(e,t){try{return e instanceof t}catch(n){return!1}}function _(e){return!("object"!==typeof e||null===e||!e.__isVue&&!e._isVue)}},83887:(e,t,n)=>{"use strict";n.d(t,{Ow:()=>s,Z9:()=>a,pq:()=>o,vF:()=>c});var r=n(5189),i=n(91444);const s=["debug","info","warn","error","log","assert","trace"],a={};function o(e){if(!("console"in i.OW))return e();const t=i.OW.console,n={},r=Object.keys(a);r.forEach((e=>{const r=a[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const c=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.T?s.forEach((n=>{t[n]=(...t)=>{e&&o((()=>{i.OW.console[n](`Sentry Logger [${n}]:`,...t)}))}})):s.forEach((e=>{t[e]=()=>{}})),t}()},4475:(e,t,n)=>{"use strict";n.d(t,{$X:()=>o,GR:()=>u,M6:()=>l,eJ:()=>s,gO:()=>c,k9:()=>d});var r=n(9576),i=n(91444);function s(){const e=i.OW,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function o(e){const{message:t,event_id:n}=e;if(t)return t;const r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function c(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function l(e,t){const n=a(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.my)(e,"__sentry_captured__",!0)}catch(t){}return!1}function d(e){return Array.isArray(e)?e:[e]}},18631:(e,t,n)=>{"use strict";n.d(t,{wD:()=>s});var r=n(49728);e=n.hmd(e);var i=n(88295);function s(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof i?i:0)}},96008:(e,t,n)=>{"use strict";n.d(t,{S8:()=>a,cd:()=>o});var r=n(30747);var i=n(9576),s=n(84814);function a(e,t=100,n=1/0){try{return c("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function o(e,t=3,n=102400){const r=a(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?o(e,t-1,n):r;var i}function c(e,t,a=1/0,o=1/0,l=function(){const e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[u,d]=l;if(null==t||["number","boolean","string"].includes(typeof t)&&!(0,r.yr)(t))return t;const h=function(e,t){try{if("domain"===e&&t&&"object"===typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!==typeof n.g&&t===n.g)return"[Global]";if("undefined"!==typeof window&&t===window)return"[Window]";if("undefined"!==typeof document&&t===document)return"[Document]";if((0,r.L2)(t))return"[VueViewModel]";if((0,r.mE)(t))return"[SyntheticEvent]";if("number"===typeof t&&t!==t)return"[NaN]";if("function"===typeof t)return`[Function: ${(0,s.qQ)(t)}]`;if("symbol"===typeof t)return`[${String(t)}]`;if("bigint"===typeof t)return`[BigInt: ${String(t)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(i){return`**non-serializable** (${i})`}}(e,t);if(!h.startsWith("[object "))return h;if(t.__sentry_skip_normalization__)return t;const f="number"===typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:a;if(0===f)return h.replace("object ","");if(u(t))return"[Circular ~]";const p=t;if(p&&"function"===typeof p.toJSON)try{return c("",p.toJSON(),f-1,o,l)}catch(v){}const m=Array.isArray(t)?[]:{};let g=0;const y=(0,i.W4)(t);for(const n in y){if(!Object.prototype.hasOwnProperty.call(y,n))continue;if(g>=o){m[n]="[MaxProperties ~]";break}const e=y[n];m[n]=c(n,e,f-1,o,l),g++}return d(t),m}},9576:(e,t,n)=>{"use strict";n.d(t,{Ce:()=>y,GS:()=>c,HF:()=>g,W4:()=>f,my:()=>l,pO:()=>u,sp:()=>d,u4:()=>h});var r=n(70411),i=n(5189),s=n(30747),a=n(83887),o=n(78198);function c(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"===typeof i&&u(i,r),e[t]=i}function l(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){i.T&&a.vF.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}catch(n){}}function d(e){return e.__sentry_original__}function h(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function f(e){if((0,s.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if((0,s.xH)(e)){const t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...m(e)};return"undefined"!==typeof CustomEvent&&(0,s.tH)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function p(e){try{return(0,s.vq)(e)?(0,r.Hd)(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}}function m(e){if("object"===typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function g(e,t=40){const n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,o.xv)(n[0],t);for(let r=n.length;r>0;r--){const e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:(0,o.xv)(e,t)}return""}function y(e){return v(e,new Map)}function v(e,t){if(function(e){if(!(0,s.Qd)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const i of Object.keys(e))"undefined"!==typeof e[i]&&(r[i]=v(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(v(e,t))})),r}return e}},16350:(e,t,n)=>{"use strict";n.d(t,{Jz:()=>i,wq:()=>s});const r=6e4;function i(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function s(e,{statusCode:t,headers:n},i=Date.now()){const s={...e},a=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(a)for(const r of a.trim().split(",")){const[e,t,,,n]=r.split(":",5),a=parseInt(e,10),o=1e3*(isNaN(a)?60:a);if(t)for(const r of t.split(";"))"metric_bucket"===r&&n&&!n.split(";").includes("custom")||(s[r]=i+o);else s.all=i+o}else o?s.all=i+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?r:i-t}(o,i):429===t&&(s.all=i+6e4);return s}},84814:(e,t,n)=>{"use strict";n.d(t,{gd:()=>a,qQ:()=>l,vk:()=>o});const r=50,i=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const a=[],o=e.split("\n");for(let s=n;s<o.length;s++){const e=o[s];if(e.length>1024)continue;const n=i.test(e)?e.replace(i,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){a.push(t);break}}if(a.length>=r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),s.test(t[t.length-1].function||"")&&(t.pop(),s.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,r).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(a)}}function o(e){return Array.isArray(e)?a(...e):e}const c="<anonymous>";function l(e){try{return e&&"function"===typeof e&&e.name||c}catch(t){return c}}},78198:(e,t,n)=>{"use strict";n.d(t,{Xr:()=>a,gt:()=>s,xv:()=>i});var r=n(30747);function i(e,t=0){return"string"!==typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t){if(!Array.isArray(e))return"";const n=[];for(let s=0;s<e.length;s++){const t=e[s];try{(0,r.L2)(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(i){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):!!(0,r.Kg)(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}},9863:(e,t,n)=>{"use strict";n.d(t,{ap:()=>o,m7:()=>c,vm:()=>a});var r=n(5189),i=n(83887);const s=(0,n(91444).VZ)();function a(){if(!("fetch"in s))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function o(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function c(){if("string"===typeof EdgeRuntime)return!0;if(!a())return!1;if(o(s.fetch))return!0;let e=!1;const t=s.document;if(t&&"function"===typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=o(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){r.T&&i.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}},85195:(e,t,n)=>{"use strict";n.d(t,{T2:()=>o,XW:()=>s,xg:()=>a});var r,i=n(30747);function s(e){return new o((t=>{t(e)}))}function a(e){return new o(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(r||(r={}));class o{constructor(e){o.prototype.__init.call(this),o.prototype.__init2.call(this),o.prototype.__init3.call(this),o.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new o(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new o(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,i.Qg)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},46310:(e,t,n)=>{"use strict";n.d(t,{k3:()=>c,lu:()=>s,zf:()=>a});var r=n(91444);const i=1e3;function s(){return Date.now()/i}const a=function(){const{performance:e}=r.OW;if(!e||!e.now)return s;const t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/i}();let o;const c=(()=>{const{performance:e}=r.OW;if(!e||!e.now)return void(o="none");const t=36e5,n=e.now(),i=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=s<t,c=e.timing&&e.timing.navigationStart,l="number"===typeof c?Math.abs(c+n-i):t;return a||l<t?s<=l?(o="timeOrigin",e.timeOrigin):(o="navigationStart",c):(o="dateNow",i)})()},34241:(e,t,n)=>{"use strict";n.d(t,{TC:()=>c,kM:()=>o});var r=n(28921),i=n(4475);const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){if(!e)return;const t=e.match(s);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function o(e,t){const n=a(e),s=(0,r.yD)(t),{traceId:o,parentSpanId:c,parentSampled:l}=n||{};return n?{traceId:o||(0,i.eJ)(),parentSpanId:c||(0,i.eJ)().substring(16),spanId:(0,i.eJ)().substring(16),sampled:l,dsc:s||{}}:{traceId:o||(0,i.eJ)(),spanId:(0,i.eJ)().substring(16)}}function c(e=(0,i.eJ)(),t=(0,i.eJ)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},50014:(e,t,n)=>{"use strict";function r(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}n.d(t,{Dl:()=>r})},91444:(e,t,n)=>{"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{BY:()=>a,OW:()=>i,VZ:()=>s});const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function s(){return i}function a(e,t,n){const r=n||i,s=r.__SENTRY__=r.__SENTRY__||{};return s[e]||(s[e]=t())}},23255:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(98173),i=n(26298),s=n.n(i),a=n(77275),o=n(45400),c=n(93790),l=n(5462),u=n(28420),d=n(56532);const h=r.createContext({});var f=n(76660),p=n(33456),m=n(41887);const g=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:s,containerSize:a,containerSizeLG:o,containerSizeSM:c,textFontSize:l,textFontSizeLG:u,textFontSizeSM:d,borderRadius:h,borderRadiusLG:p,borderRadiusSM:m,lineWidth:g,lineType:y}=e,v=(e,t,i)=>({width:e,height:e,lineHeight:e-2*g+"px",borderRadius:"50%",[`&${n}-square`]:{borderRadius:i},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,f.dF)(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:s,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${g}px ${y} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(a,l,h)),{"&-lg":Object.assign({},v(o,u,p)),"&-sm":Object.assign({},v(c,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},y=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},v=(0,p.A)("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=(0,m.h1)(e,{avatarBg:n,avatarColor:t});return[g(r),y(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:s,fontSizeXL:a,fontSizeHeading3:o,marginXS:c,marginXXS:l,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((s+a)/2),textFontSizeLG:o,textFontSizeSM:i,groupSpace:l,groupOverlapping:-c,groupBorderColor:u}}));var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const _=(e,t)=>{const[n,i]=r.useState(1),[f,p]=r.useState(!1),[m,g]=r.useState(!0),y=r.useRef(null),_=r.useRef(null),w=(0,o.K4)(t,y),{getPrefixCls:S,avatar:k}=r.useContext(l.QO),C=r.useContext(h),E=()=>{if(!_.current||!y.current)return;const t=_.current.offsetWidth,n=y.current.offsetWidth;if(0!==t&&0!==n){const{gap:r=4}=e;2*r<n&&i(n-2*r<t?(n-2*r)/t:1)}};r.useEffect((()=>{p(!0)}),[]),r.useEffect((()=>{g(!0),i(1)}),[e.src]),r.useEffect(E,[e.gap]);const x=()=>{const{onError:t}=e;!1!==(null===t||void 0===t?void 0:t())&&g(!1)},{prefixCls:T,shape:I,size:A,src:O,srcSet:R,icon:D,className:M,rootClassName:F,alt:z,draggable:N,children:L,crossOrigin:P}=e,B=b(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),j=(0,u.A)((e=>{var t,n;return null!==(n=null!==(t=null!==A&&void 0!==A?A:null===C||void 0===C?void 0:C.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),U=Object.keys("object"===typeof j&&j||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),$=(0,d.A)(U),W=r.useMemo((()=>{if("object"!==typeof j)return{};const e=c.ye.find((e=>$[e])),t=j[e];return t?{width:t,height:t,lineHeight:`${t}px`,fontSize:t&&(D||L)?t/2:18}:{}}),[$,j]);const H=S("avatar",T),[q,K]=v(H),G=s()({[`${H}-lg`]:"large"===j,[`${H}-sm`]:"small"===j}),V=r.isValidElement(O),J=I||(null===C||void 0===C?void 0:C.shape)||"circle",Z=s()(H,G,null===k||void 0===k?void 0:k.className,`${H}-${J}`,{[`${H}-image`]:V||O&&m,[`${H}-icon`]:!!D},M,F,K),X="number"===typeof j?{width:j,height:j,lineHeight:`${j}px`,fontSize:D?j/2:18}:{};let Y;if("string"===typeof O&&m)Y=r.createElement("img",{src:O,draggable:N,srcSet:R,onError:x,alt:z,crossOrigin:P});else if(V)Y=O;else if(D)Y=D;else if(f||1!==n){const e=`scale(${n}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},i="number"===typeof j?{lineHeight:`${j}px`}:{};Y=r.createElement(a.A,{onResize:E},r.createElement("span",{className:`${H}-string`,ref:_,style:Object.assign(Object.assign({},i),t)},L))}else Y=r.createElement("span",{className:`${H}-string`,style:{opacity:0},ref:_},L);return delete B.onError,delete B.gap,q(r.createElement("span",Object.assign({},B,{style:Object.assign(Object.assign(Object.assign(Object.assign({},X),W),null===k||void 0===k?void 0:k.style),B.style),className:Z,ref:w}),Y))};const w=r.forwardRef(_);var S=n(87191),k=n(29684),C=n(66823);const E=e=>{const{size:t,shape:n}=r.useContext(h),i=r.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return r.createElement(h.Provider,{value:i},e.children)},x=e=>{const{getPrefixCls:t,direction:n}=r.useContext(l.QO),{prefixCls:i,className:a,rootClassName:o,style:c,maxCount:u,maxStyle:d,size:h,shape:f,maxPopoverPlacement:p="top",maxPopoverTrigger:m="hover",children:g}=e,y=t("avatar",i),b=`${y}-group`,[_,x]=v(y),T=s()(b,{[`${b}-rtl`]:"rtl"===n},a,o,x),I=(0,S.A)(g).map(((e,t)=>(0,C.Ob)(e,{key:`avatar-key-${t}`}))),A=I.length;if(u&&u<A){const e=I.slice(0,u),t=I.slice(u,A);return e.push(r.createElement(k.A,{key:"avatar-popover-key",content:t,trigger:m,placement:p,overlayClassName:`${b}-popover`},r.createElement(w,{style:d},"+"+(A-u)))),_(r.createElement(E,{shape:f,size:h},r.createElement("div",{className:T,style:c},e)))}return _(r.createElement(E,{shape:f,size:h},r.createElement("div",{className:T,style:c},I)))},T=w;T.Group=x;const I=T},94049:(e,t,n)=>{var r=n(45764).Buffer,i=n(88295);e.exports=function e(t,n,r){function i(a,o){if(!n[a]){if(!t[a]){if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var s=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,a,o,c,l,u=[],d=0,h=e.length,f=h,p="string"!==r.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],n=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),n=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),a=t>>2,o=(3&t)<<4|n>>4,c=1<f?(15&n)<<2|i>>6:64,l=2<f?63&i:64,u.push(s.charAt(a)+s.charAt(o)+s.charAt(c)+s.charAt(l));return u.join("")},n.decode=function(e){var t,n,r,a,o,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)===s.charAt(64)&&f--,e.charAt(e.length-2)===s.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):new Array(0|f);l<e.length;)t=s.indexOf(e.charAt(l++))<<2|(a=s.indexOf(e.charAt(l++)))>>4,n=(15&a)<<4|(o=s.indexOf(e.charAt(l++)))>>2,r=(3&o)<<6|(c=s.indexOf(e.charAt(l++))),h[u++]=t,64!==o&&(h[u++]=n),64!==c&&(h[u++]=r);return h}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),s=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function o(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}o.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,n){return e.pipe(new s).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var s=i,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^s[255&(e^t[o])];return~e}(0|t,e,e.length,0):function(e,t,n,r){var s=i,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^s[255&(e^t.charCodeAt(o))];return~e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),s=e("./utils"),a=e("./stream/GenericWorker"),o=r?"uint8array":"array";function c(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",s.inherits(c,a),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},c.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,a,u){var d,h,f=e.file,p=e.compression,m=u!==o.utf8encode,g=s.transformTo("string",u(f.name)),y=s.transformTo("string",o.utf8encode(f.name)),v=f.comment,b=s.transformTo("string",u(v)),_=s.transformTo("string",o.utf8encode(v)),w=y.length!==f.name.length,S=_.length!==v.length,k="",C="",E="",x=f.dir,T=f.date,I={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var A=0;t&&(A|=8),m||!w&&!S||(A|=2048);var O=0,R=0;x&&(O|=16),"UNIX"===a?(R=798,O|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(f.unixPermissions,x)):(R=20,O|=function(e){return 63&(e||0)}(f.dosPermissions)),d=T.getUTCHours(),d<<=6,d|=T.getUTCMinutes(),d<<=5,d|=T.getUTCSeconds()/2,h=T.getUTCFullYear()-1980,h<<=4,h|=T.getUTCMonth()+1,h<<=5,h|=T.getUTCDate(),w&&(C=r(1,1)+r(c(g),4)+y,k+="up"+r(C.length,2)+C),S&&(E=r(1,1)+r(c(b),4)+_,k+="uc"+r(E.length,2)+E);var D="";return D+="\n\0",D+=r(A,2),D+=p.magic,D+=r(d,2),D+=r(h,2),D+=r(I.crc32,4),D+=r(I.compressedSize,4),D+=r(I.uncompressedSize,4),D+=r(g.length,2),D+=r(k.length,2),{fileRecord:l.LOCAL_FILE_HEADER+D+g+k,dirRecord:l.CENTRAL_FILE_HEADER+r(R,2)+D+r(b.length,2)+"\0\0\0\0"+r(O,4)+r(i,4)+g+k+b}}var s=e("../utils"),a=e("../stream/GenericWorker"),o=e("../utf8"),c=e("../crc32"),l=e("../signature");function u(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n: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 n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.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 n=this.bytesWritten-e,i=function(e,t,n,i,a){var o=s.transformTo("string",a(i));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(o.length,2)+o}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!a.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(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){a.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,n){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var s=new i(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),o=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,o).withStreamInfo("file",{name:e,dir:c,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(s)})),s.entriesCount=a}catch(e){s.error(e)}return s}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;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 r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./external"),s=e("./utf8"),a=e("./zipEntries"),o=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function l(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new o);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var s=0;s<r.length;s++)n.push(l(r[s]));return i.Promise.all(n)})).then((function(e){for(var i=e.shift(),s=i.files,a=0;a<s.length;a++){var o=s[a],c=o.fileNameStr,l=r.resolve(o.fileNameStr);n.file(l,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders}),o.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");function s(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(s,i),s.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()}))},s.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof r,newBufferFrom:function(e,t){if(r.from&&r.from!==Uint8Array.from)return r.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new r(e,t)},allocBuffer:function(e){if(r.alloc)return r.alloc(e);var t=new r(e);return t.fill(0),t},isBuffer:function(e){return r.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,i=s.getTypeOf(t),o=s.extend(n||{},c);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(e=m(e)),o.createFolders&&(r=p(e))&&g.call(this,r,!0);var d="string"===i&&!1===o.binary&&!1===o.base64;n&&void 0!==n.binary||(o.binary=!d),(t instanceof l&&0===t.uncompressedSize||o.dir||!t||0===t.length)&&(o.base64=!1,o.binary=!0,t="",o.compression="STORE",i="string");var y=null;y=t instanceof l||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):s.prepareContent(e,t,o.binary,o.optimizedBinaryString,o.base64);var v=new u(e,y,o);this.files[e]=v}var i=e("./utf8"),s=e("./utils"),a=e("./stream/GenericWorker"),o=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]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function y(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(y(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var s=this.files[this.root+e];return s&&!s.dir?s:null},folder:function(e){if(!e)return this;if(y(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},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 n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].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,n={};try{if((n=s.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");s.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=d.generateWorker(this,n,r)}catch(e){(t=new a("error")).error(e)}return new o(t,n.type||"string",n.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=v},{"./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,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===t&&this.data[s+1]===n&&this.data[s+2]===r&&this.data[s+3]===i)return s-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&n===s[1]&&r===s[2]&&i===s[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),s=e("./ArrayReader"),a=e("./StringReader"),o=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new o(e):i.uint8array?new c(r.transformTo("uint8array",e)):new s(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function s(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(s,r),s.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function s(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,r),s.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function s(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(s,i),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function s(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(s,i),s.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.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=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(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}r.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 n=0;n<this._listeners[e].length;n++)this._listeners[e][n].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=r},{}],29:[function(e,t,n){"use strict";var i=e("../utils"),s=e("./ConvertWorker"),a=e("./GenericWorker"),o=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(n,s){var a=[],c=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,n){a.push(e),t&&t(n)})).on("error",(function(e){a=[],s(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return o.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var n,i=0,s=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(s=new Uint8Array(a),n=0;n<t.length;n++)s.set(t[n],i),i+=t[n].length;return s;case"nodebuffer":return r.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,a),u);n(e)}catch(e){s(e)}a=[]})).resume()}))}function h(e,t,n){var r=t;switch(t){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=t,this._mimeType=n,i.checkSupport(r),this._worker=e.pipe(new s(r)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return d(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof r,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(i),n.blob=0===s.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),s=e("./nodejsUtils"),a=e("./stream/GenericWorker"),o=new Array(256),c=0;c<256;c++)o[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}o[254]=o[254]=1,n.utf8encode=function(e){return i.nodebuffer?s.newBufferFrom(e,"utf-8"):function(e){var t,n,r,s,a,o=e.length,c=0;for(s=0;s<o;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),s=a=0;a<c;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,s,a=e.length,c=new Array(2*a);for(t=n=0;t<a;)if((i=e[t++])<128)c[n++]=i;else if(4<(s=o[i]))c[n++]=65533,t+=s-1;else{for(i&=2===s?31:3===s?15:7;1<s&&t<a;)i=i<<6|63&e[t++],s--;1<s?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(l,a),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var s=t;(t=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),t.set(s,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+o[e[n]]>t?n:t}(t),c=t;a!==t.length&&(i.uint8array?(c=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(c=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),s=e("./nodejsUtils"),a=e("./external");function o(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(t,r){n.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,s=e.length;if(s<=n)return String.fromCharCode.apply(null,e);for(;i<s;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,s)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,s)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=l.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var h={};h.string={string:o,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,s.allocBuffer(e.length))}},h.array={string:u,array:o,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.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:o,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.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:o,nodebuffer:function(e){return s.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:o},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return h[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&s.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,s,o,l){return a.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var u=n.getTypeOf(t);return u?("arraybuffer"===u?t=n.transformTo("uint8array",t):"string"===u&&(l?t=i.decode(t):s&&!0!==o&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.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,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),s=e("./signature"),a=e("./zipEntry"),o=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},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=o.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},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,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},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(s.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(e=new a({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(s.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,s.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(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(s.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(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.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(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,s.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(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,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),s=e("./compressedObject"),a=e("./crc32"),o=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,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new s(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=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var s=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:o.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,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),s=e("./stream/DataWorker"),a=e("./utf8"),o=e("./compressedObject"),c=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var s=!this._dataBinary;s&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!s&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,n,"")},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 o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof c?this._data:new s(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++)r.prototype[l[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var s=0,a=new i(u),o=e.document.createTextNode("");a.observe(o,{characterData:!0}),n=function(){o.data=s=++s%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="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,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){1!==l.push(e)||r||n()}}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function i(){}var s={},a=["REJECTED"],o=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return s.reject(e,r)}r===e?s.reject(e,new TypeError("Cannot resolve promise with itself")):s.resolve(e,r)}))}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 n=!1;function r(t){n||(n=!0,s.reject(e,t))}function i(t){n||(n=!0,s.resolve(e,t))}var a=p((function(){t(i,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=l).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==c?d(n,this.state===o?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){s.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){s.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},s.resolve=function(e,t){var n=p(h,t);if("error"===n.status)return s.reject(e,n.value);var r=n.value;if(r)f(e,r);else{e.state=o,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},s.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:s.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return s.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 n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),o=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then((function(e){a[i]=e,++o!==n||r||(r=!0,s.resolve(l,a))}),(function(e){r||(r=!0,s.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 n=e.length,r=!1;if(!n)return this.resolve([]);for(var a,o=-1,c=new this(i);++o<n;)a=e[o],t.resolve(a).then((function(e){r||(r=!0,s.resolve(c,e))}),(function(e){r||(r=!0,s.reject(c,e))}));return c}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),s=e("./utils/strings"),a=e("./zlib/messages"),o=e("./zlib/zstream"),c=Object.prototype.toString,l=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==l)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==l)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}f.prototype.push=function(e,t){var n,a,o=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=s.string2buf(e):"[object ArrayBuffer]"===c.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new i.Buf8(u),o.next_out=0,o.avail_out=u),1!==(n=r.deflate(o,a))&&n!==l)return this.onEnd(n),!(this.ended=!0);0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(i.shrinkBuf(o.output,o.next_out))):this.onData(i.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):2!==a||(this.onEnd(l),!(o.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.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,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),s=e("./utils/strings"),a=e("./zlib/constants"),o=e("./zlib/messages"),c=e("./zlib/zstream"),l=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(o[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function h(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}d.prototype.push=function(e,t){var n,o,c,l,d,h,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=s.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(h="string"==typeof m?s.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=s.utf8border(f.output,f.next_out),l=f.next_out-c,d=s.buf2string(f.output,c),f.next_out=l,f.avail_out=p-l,l&&i.arraySet(f.output,f.output,c,l,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(o=a.Z_FINISH),o===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.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,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var s=0;s<r;s++)e[i+s]=t[n+s]},flattenChunks:function(e){var t,n,r,i,s,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)s=e[t],a.set(s,i),i+=s.length;return a}},s={arraySet:function(e,t,n,r,i){for(var s=0;s<r;s++)e[i+s]=t[n+s]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),i=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var a=new r.Buf8(256),o=0;o<256;o++)a[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function c(e,t){if(t<65537&&(e.subarray&&s||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,s,a,o=e.length,c=0;for(s=0;s<o;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(i=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(i-56320),s++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),s=a=0;a<c;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(i=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(i-56320),s++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,s,o=t||e.length,l=new Array(2*o);for(n=r=0;n<o;)if((i=e[n++])<128)l[r++]=i;else if(4<(s=a[i]))l[r++]=65533,n+=s-1;else{for(i&=2===s?31:3===s?15:7;1<s&&n<o;)i=i<<6|63&e[n++],s--;1<s?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e,s=e>>>16&65535,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;s=s+(i=i+t[r++]|0)|0,--a;);i%=65521,s%=65521}return i|s<<16}},{}],44:[function(e,t,n){"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,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var s=r,a=i+n;e^=-1;for(var o=i;o<a;o++)e=e>>>8^s[255&(e^t[o])];return~e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),s=e("./trees"),a=e("./adler32"),o=e("./crc32"),c=e("./messages"),l=0,u=4,d=0,h=-2,f=-1,p=4,m=2,g=8,y=9,v=286,b=30,_=19,w=2*v+1,S=15,k=3,C=258,E=C+k+1,x=42,T=113,I=1,A=2,O=3,R=4;function D(e,t){return e.msg=c[t],t}function M(e){return(e<<1)-(4<e?9:0)}function F(e){for(var t=e.length;0<=--t;)e[t]=0}function z(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function N(e,t){s._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,z(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function P(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function B(e,t){var n,r,i=e.max_chain_length,s=e.strstart,a=e.prev_length,o=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+C,f=l[s+a-1],p=l[s+a];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(l[(n=t)+a]===p&&l[n+a-1]===f&&l[n]===l[s]&&l[++n]===l[s+1]){s+=2,n++;do{}while(l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&s<h);if(r=C-(h-s),s=h-C,a<r){if(e.match_start=t,o<=(a=r))break;f=l[s+a-1],p=l[s+a]}}}while((t=d[t&u])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function j(e){var t,n,r,s,c,l,u,d,h,f,p=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-E)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);s+=p}if(0===e.strm.avail_in)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=s)<(f=l.avail_in)&&(f=h),n=0===f?0:(l.avail_in-=f,i.arraySet(u,l.input,l.next_in,f,d),1===l.state.wrap?l.adler=a(l.adler,u,f,d):2===l.state.wrap&&(l.adler=o(l.adler,u,f,d)),l.next_in+=f,l.total_in+=f,f),e.lookahead+=n,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 n,r;;){if(e.lookahead<E){if(j(e),e.lookahead<E&&t===l)return I;if(0===e.lookahead)break}if(n=0,e.lookahead>=k&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-E&&(e.match_length=B(e,n)),e.match_length>=k)if(r=s._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,n=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 r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(N(e,!1),0===e.strm.avail_out))return I}return e.insert=e.strstart<k-1?e.strstart:k-1,t===u?(N(e,!0),0===e.strm.avail_out?O:R):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?I:A}function $(e,t){for(var n,r,i;;){if(e.lookahead<E){if(j(e),e.lookahead<E&&t===l)return I;if(0===e.lookahead)break}if(n=0,e.lookahead>=k&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,n=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!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-E&&(e.match_length=B(e,n),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(i=e.strstart+e.lookahead-k,r=s._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<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,n=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++,r&&(N(e,!1),0===e.strm.avail_out))return I}else if(e.match_available){if((r=s._tr_tally(e,0,e.window[e.strstart-1]))&&N(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return I}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=s._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?(N(e,!0),0===e.strm.avail_out?O:R):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?I:A}function W(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function H(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*_+1)),F(this.dyn_ltree),F(this.dyn_dtree),F(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(S+1),this.heap=new i.Buf16(2*v+1),F(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),F(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 q(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?x:T,e.adler=2===t.wrap?0:1,t.last_flush=l,s._tr_init(t),d):D(e,h)}function K(e){var t=q(e);return t===d&&function(e){e.window_size=2*e.w_size,F(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[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,n,r,s,a){if(!e)return h;var o=1;if(t===f&&(t=6),r<0?(o=0,r=-r):15<r&&(o=2,r-=16),s<1||y<s||n!==g||r<8||15<r||t<0||9<t||a<0||p<a)return D(e,h);8===r&&(r=9);var c=new H;return(e.state=c).strm=e,c.wrap=o,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=s+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 i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<s+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,K(e)}r=[new W(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(j(e),0===e.lookahead&&t===l)return I;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,N(e,!1),0===e.strm.avail_out))return I;if(e.strstart-e.block_start>=e.w_size-E&&(N(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(N(e,!0),0===e.strm.avail_out?O:R):(e.strstart>e.block_start&&(N(e,!1),e.strm.avail_out),I)})),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,$),new W(8,16,32,32,$),new W(8,16,128,128,$),new W(8,32,128,256,$),new W(32,128,258,1024,$),new W(32,258,258,4096,$)],n.deflateInit=function(e,t){return G(e,t,g,15,8,0)},n.deflateInit2=G,n.deflateReset=K,n.deflateResetKeep=q,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},n.deflate=function(e,t){var n,i,a,c;if(!e||!e.state||5<t||t<0)return e?D(e,h):h;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return D(e,0===e.avail_out?-5:h);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===x)if(2===i.wrap)e.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),L(i,255&i.gzhead.time),L(i,i.gzhead.time>>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),L(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,255&i.gzhead.extra.length),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=o(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),L(i,3),i.status=T);else{var f=g+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=T,P(i,f),0!==i.strstart&&(P(i,e.adler>>>16),P(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),z(e),a=i.pending,i.pending!==i.pending_buf_size));)L(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),z(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,L(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),z(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,L(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&z(e),i.pending+2<=i.pending_buf_size&&(L(i,255&e.adler),L(i,e.adler>>8&255),e.adler=0,i.status=T)):i.status=T),0!==i.pending){if(z(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&M(t)<=M(n)&&t!==u)return D(e,-5);if(666===i.status&&0!==e.avail_in)return D(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==l&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(j(e),0===e.lookahead)){if(t===l)return I;break}if(e.match_length=0,n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(N(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(N(e,!0),0===e.strm.avail_out?O:R):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?I:A}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=C){if(j(e),e.lookahead<=C&&t===l)return I;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=k&&0<e.strstart&&(r=o[i=e.strstart-1])===o[++i]&&r===o[++i]&&r===o[++i]){a=e.strstart+C;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=C-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=k?(n=s._tr_tally(e,1,e.match_length-k),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(N(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(N(e,!0),0===e.strm.avail_out?O:R):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?I:A}(i,t):r[i.level].func(i,t);if(p!==O&&p!==R||(i.status=666),p===I||p===O)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===A&&(1===t?s._tr_align(i):5!==t&&(s._tr_stored_block(i,0,0,!1),3===t&&(F(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),z(e),0===e.avail_out))return i.last_flush=-1,d}return t!==u?d:i.wrap<=0?1:(2===i.wrap?(L(i,255&e.adler),L(i,e.adler>>8&255),L(i,e.adler>>16&255),L(i,e.adler>>24&255),L(i,255&e.total_in),L(i,e.total_in>>8&255),L(i,e.total_in>>16&255),L(i,e.total_in>>24&255)):(P(i,e.adler>>>16),P(i,65535&e.adler)),z(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==x&&69!==t&&73!==t&&91!==t&&103!==t&&t!==T&&666!==t?D(e,h):(e.state=null,t===T?D(e,-3):d):h},n.deflateSetDictionary=function(e,t){var n,r,s,o,c,l,u,f,p=t.length;if(!e||!e.state)return h;if(2===(o=(n=e.state).wrap)||1===o&&n.status!==x||n.lookahead)return h;for(1===o&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===o&&(F(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,j(n);n.lookahead>=k;){for(r=n.strstart,s=n.lookahead-(k-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+k-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--s;);n.strstart=r,n.lookahead=k-1,j(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=k-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=o,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"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,n){"use strict";t.exports=function(e,t){var n,r,i,s,a,o,c,l,u,d,h,f,p,m,g,y,v,b,_,w,S,k,C,E,x;n=e.state,r=e.next_in,E=e.input,i=r+(e.avail_in-5),s=e.next_out,x=e.output,a=s-(t-e.avail_out),o=s+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,m=n.lencode,g=n.distcode,y=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{p<15&&(f+=E[r++]<<p,p+=8,f+=E[r++]<<p,p+=8),b=m[f&y];t:for(;;){if(f>>>=_=b>>>24,p-=_,0===(_=b>>>16&255))x[s++]=65535&b;else{if(!(16&_)){if(0==(64&_)){b=m[(65535&b)+(f&(1<<_)-1)];continue t}if(32&_){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&b,(_&=15)&&(p<_&&(f+=E[r++]<<p,p+=8),w+=f&(1<<_)-1,f>>>=_,p-=_),p<15&&(f+=E[r++]<<p,p+=8,f+=E[r++]<<p,p+=8),b=g[f&v];n:for(;;){if(f>>>=_=b>>>24,p-=_,!(16&(_=b>>>16&255))){if(0==(64&_)){b=g[(65535&b)+(f&(1<<_)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(S=65535&b,p<(_&=15)&&(f+=E[r++]<<p,(p+=8)<_&&(f+=E[r++]<<p,p+=8)),c<(S+=f&(1<<_)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=_,p-=_,(_=s-a)<S){if(u<(_=S-_)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(C=h,(k=0)===d){if(k+=l-_,_<w){for(w-=_;x[s++]=h[k++],--_;);k=s-S,C=x}}else if(d<_){if(k+=l+d-_,(_-=d)<w){for(w-=_;x[s++]=h[k++],--_;);if(k=0,d<w){for(w-=_=d;x[s++]=h[k++],--_;);k=s-S,C=x}}}else if(k+=d-_,_<w){for(w-=_;x[s++]=h[k++],--_;);k=s-S,C=x}for(;2<w;)x[s++]=C[k++],x[s++]=C[k++],x[s++]=C[k++],w-=3;w&&(x[s++]=C[k++],1<w&&(x[s++]=C[k++]))}else{for(k=s-S;x[s++]=x[k++],x[s++]=x[k++],x[s++]=x[k++],2<(w-=3););w&&(x[s++]=x[k++],1<w&&(x[s++]=x[k++]))}break}}break}}while(r<i&&s<o);r-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=s,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=s<o?o-s+257:257-(s-o),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),s=e("./crc32"),a=e("./inffast"),o=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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(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 r.Buf32(f),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,u):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,y(e)):d}function b(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,v(e))):d}function _(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=b(e,t))!==u&&(e.state=null),n):d}var w,S,k=!0;function C(e){if(k){var t;for(w=new r.Buf32(512),S=new r.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(o(c,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(l,e.lens,0,32,S,0,e.work,{bits:5}),k=!1}e.lencode=w,e.lenbits=9,e.distcode=S,e.distbits=5}function E(e,t,n,i){var s,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(s=a.wsize-a.wnext)&&(s=i),r.arraySet(a.window,t,n-i,s,a.wnext),(i-=s)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=s,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=s))),0}n.inflateReset=v,n.inflateReset2=b,n.inflateResetKeep=y,n.inflateInit=function(e){return _(e,15)},n.inflateInit2=_,n.inflate=function(e,t){var n,f,p,g,y,v,b,_,w,S,k,x,T,I,A,O,R,D,M,F,z,N,L,P,B=0,j=new r.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===(n=e.state).mode&&(n.mode=13),y=e.next_out,p=e.output,b=e.avail_out,g=e.next_in,f=e.input,v=e.avail_in,_=n.hold,w=n.bits,S=v,k=b,N=u;e:for(;;)switch(n.mode){case h:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}if(2&n.wrap&&35615===_){j[n.check=0]=255&_,j[1]=_>>>8&255,n.check=s(n.check,j,2,0),w=_=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&_)<<8)+(_>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&_)){e.msg="unknown compression method",n.mode=30;break}if(w-=4,z=8+(15&(_>>>=4)),0===n.wbits)n.wbits=z;else if(z>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<z,e.adler=n.check=1,n.mode=512&_?10:12,w=_=0;break;case 2:for(;w<16;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}if(n.flags=_,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=_>>8&1),512&n.flags&&(j[0]=255&_,j[1]=_>>>8&255,n.check=s(n.check,j,2,0)),w=_=0,n.mode=3;case 3:for(;w<32;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}n.head&&(n.head.time=_),512&n.flags&&(j[0]=255&_,j[1]=_>>>8&255,j[2]=_>>>16&255,j[3]=_>>>24&255,n.check=s(n.check,j,4,0)),w=_=0,n.mode=4;case 4:for(;w<16;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}n.head&&(n.head.xflags=255&_,n.head.os=_>>8),512&n.flags&&(j[0]=255&_,j[1]=_>>>8&255,n.check=s(n.check,j,2,0)),w=_=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}n.length=_,n.head&&(n.head.extra_len=_),512&n.flags&&(j[0]=255&_,j[1]=_>>>8&255,n.check=s(n.check,j,2,0)),w=_=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(x=n.length)&&(x=v),x&&(n.head&&(z=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,f,g,x,z)),512&n.flags&&(n.check=s(n.check,f,x,g)),v-=x,g+=x,n.length-=x),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break e;for(x=0;z=f[g+x++],n.head&&z&&n.length<65536&&(n.head.name+=String.fromCharCode(z)),z&&x<v;);if(512&n.flags&&(n.check=s(n.check,f,x,g)),v-=x,g+=x,z)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break e;for(x=0;z=f[g+x++],n.head&&z&&n.length<65536&&(n.head.comment+=String.fromCharCode(z)),z&&x<v;);if(512&n.flags&&(n.check=s(n.check,f,x,g)),v-=x,g+=x,z)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}if(_!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}w=_=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}e.adler=n.check=m(_),w=_=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=y,e.avail_out=b,e.next_in=g,e.avail_in=v,n.hold=_,n.bits=w,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){_>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}switch(n.last=1&_,w-=1,3&(_>>>=1)){case 0:n.mode=14;break;case 1:if(C(n),n.mode=20,6!==t)break;_>>>=2,w-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}_>>>=2,w-=2;break;case 14:for(_>>>=7&w,w-=7&w;w<32;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}if((65535&_)!=(_>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&_,w=_=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(x=n.length){if(v<x&&(x=v),b<x&&(x=b),0===x)break e;r.arraySet(p,f,g,x,y),v-=x,g+=x,b-=x,y+=x,n.length-=x;break}n.mode=12;break;case 17:for(;w<14;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}if(n.nlen=257+(31&_),_>>>=5,w-=5,n.ndist=1+(31&_),_>>>=5,w-=5,n.ncode=4+(15&_),_>>>=4,w-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}n.lens[U[n.have++]]=7&_,_>>>=3,w-=3}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},N=o(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,N){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;O=(B=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,R=65535&B,!((A=B>>>24)<=w);){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}if(R<16)_>>>=A,w-=A,n.lens[n.have++]=R;else{if(16===R){for(P=A+2;w<P;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}if(_>>>=A,w-=A,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}z=n.lens[n.have-1],x=3+(3&_),_>>>=2,w-=2}else if(17===R){for(P=A+3;w<P;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}w-=A,z=0,x=3+(7&(_>>>=A)),_>>>=3,w-=3}else{for(P=A+7;w<P;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}w-=A,z=0,x=11+(127&(_>>>=A)),_>>>=7,w-=7}if(n.have+x>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;x--;)n.lens[n.have++]=z}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,L={bits:n.lenbits},N=o(c,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,N){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},N=o(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,N){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=b){e.next_out=y,e.avail_out=b,e.next_in=g,e.avail_in=v,n.hold=_,n.bits=w,a(e,k),y=e.next_out,p=e.output,b=e.avail_out,g=e.next_in,f=e.input,v=e.avail_in,_=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;O=(B=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,R=65535&B,!((A=B>>>24)<=w);){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}if(O&&0==(240&O)){for(D=A,M=O,F=R;O=(B=n.lencode[F+((_&(1<<D+M)-1)>>D)])>>>16&255,R=65535&B,!(D+(A=B>>>24)<=w);){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}_>>>=D,w-=D,n.back+=D}if(_>>>=A,w-=A,n.back+=A,n.length=R,0===O){n.mode=26;break}if(32&O){n.back=-1,n.mode=12;break}if(64&O){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&O,n.mode=22;case 22:if(n.extra){for(P=n.extra;w<P;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}n.length+=_&(1<<n.extra)-1,_>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;O=(B=n.distcode[_&(1<<n.distbits)-1])>>>16&255,R=65535&B,!((A=B>>>24)<=w);){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}if(0==(240&O)){for(D=A,M=O,F=R;O=(B=n.distcode[F+((_&(1<<D+M)-1)>>D)])>>>16&255,R=65535&B,!(D+(A=B>>>24)<=w);){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}_>>>=D,w-=D,n.back+=D}if(_>>>=A,w-=A,n.back+=A,64&O){e.msg="invalid distance code",n.mode=30;break}n.offset=R,n.extra=15&O,n.mode=24;case 24:if(n.extra){for(P=n.extra;w<P;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}n.offset+=_&(1<<n.extra)-1,_>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break e;if(x=k-b,n.offset>x){if((x=n.offset-x)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}T=x>n.wnext?(x-=n.wnext,n.wsize-x):n.wnext-x,x>n.length&&(x=n.length),I=n.window}else I=p,T=y-n.offset,x=n.length;for(b<x&&(x=b),b-=x,n.length-=x;p[y++]=I[T++],--x;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break e;p[y++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===v)break e;v--,_|=f[g++]<<w,w+=8}if(k-=b,e.total_out+=k,n.total+=k,k&&(e.adler=n.check=n.flags?s(n.check,p,k,y-k):i(n.check,p,k,y-k)),k=b,(n.flags?_:m(_))!==n.check){e.msg="incorrect data check",n.mode=30;break}w=_=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===v)break e;v--,_+=f[g++]<<w,w+=8}if(_!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}w=_=0}n.mode=29;case 29:N=1;break e;case 30:N=-3;break e;case 31:return-4;default:return d}return e.next_out=y,e.avail_out=b,e.next_in=g,e.avail_in=v,n.hold=_,n.bits=w,(n.wsize||k!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&E(e,e.output,e.next_out,k-e.avail_out)?(n.mode=31,-4):(S-=e.avail_in,k-=e.avail_out,e.total_in+=S,e.total_out+=k,n.total+=k,n.wrap&&k&&(e.adler=n.check=n.flags?s(n.check,p,k,e.next_out-k):i(n.check,p,k,e.next_out-k)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==S&&0===k||4===t)&&N===u&&(N=-5),N)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?d:((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&i(1,t,r,0)!==n.check?-3:E(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[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],a=[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],o=[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,n,c,l,u,d,h){var f,p,m,g,y,v,b,_,w,S=h.bits,k=0,C=0,E=0,x=0,T=0,I=0,A=0,O=0,R=0,D=0,M=null,F=0,z=new r.Buf16(16),N=new r.Buf16(16),L=null,P=0;for(k=0;k<=15;k++)z[k]=0;for(C=0;C<c;C++)z[t[n+C]]++;for(T=S,x=15;1<=x&&0===z[x];x--);if(x<T&&(T=x),0===x)return l[u++]=20971520,l[u++]=20971520,h.bits=1,0;for(E=1;E<x&&0===z[E];E++);for(T<E&&(T=E),k=O=1;k<=15;k++)if(O<<=1,(O-=z[k])<0)return-1;if(0<O&&(0===e||1!==x))return-1;for(N[1]=0,k=1;k<15;k++)N[k+1]=N[k]+z[k];for(C=0;C<c;C++)0!==t[n+C]&&(d[N[t[n+C]]++]=C);if(v=0===e?(M=L=d,19):1===e?(M=i,F-=257,L=s,P-=257,256):(M=a,L=o,-1),k=E,y=u,A=C=D=0,m=-1,g=(R=1<<(I=T))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(b=k-A,w=d[C]<v?(_=0,d[C]):d[C]>v?(_=L[P+d[C]],M[F+d[C]]):(_=96,0),f=1<<k-A,E=p=1<<I;l[y+(D>>A)+(p-=f)]=b<<24|_<<16|w,0!==p;);for(f=1<<k-1;D&f;)f>>=1;if(0!==f?(D&=f-1,D+=f):D=0,C++,0==--z[k]){if(k===x)break;k=t[n+d[C]]}if(T<k&&(D&g)!==m){for(0===A&&(A=T),y+=E,O=1<<(I=k-A);I+A<x&&!((O-=z[I+A])<=0);)I++,O<<=1;if(R+=1<<I,1===e&&852<R||2===e&&592<R)return 1;l[m=D&g]=T<<24|I<<16|y-u}}return 0!==D&&(l[y+D]=k-A<<24|64<<16),h.bits=T,0}},{"../utils/common":41}],51:[function(e,t,n){"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,n){"use strict";var r=e("../utils/common"),i=0,s=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var o=0,c=29,l=256,u=l+1+c,d=30,h=19,f=2*u+1,p=15,m=16,g=7,y=256,v=16,b=17,_=18,w=[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],S=[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],C=[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));a(E);var x=new Array(2*d);a(x);var T=new Array(512);a(T);var I=new Array(256);a(I);var A=new Array(c);a(A);var O,R,D,M=new Array(d);function F(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function z(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function N(e){return e<256?T[e]:T[256+(e>>>7)]}function L(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function P(e,t,n){e.bi_valid>m-n?(e.bi_buf|=t<<e.bi_valid&65535,L(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=n-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function B(e,t,n){P(e,n[2*t],n[2*t+1])}function j(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function U(e,t,n){var r,i,s=new Array(p+1),a=0;for(r=1;r<=p;r++)s[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=j(s[o]++,o))}}function $(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*y]=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 H(e,t,n,r){var i=2*t,s=2*n;return e[i]<e[s]||e[i]===e[s]&&r[t]<=r[n]}function q(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&H(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!H(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function K(e,t,n){var r,i,s,a,o=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*o]<<8|e.pending_buf[e.d_buf+2*o+1],i=e.pending_buf[e.l_buf+o],o++,0===r?B(e,i,t):(B(e,(s=I[i])+l+1,t),0!==(a=w[s])&&P(e,i-=A[s],a),B(e,s=N(--r),n),0!==(a=S[s])&&P(e,r-=M[s],a)),o<e.last_lit;);B(e,y,t)}function G(e,t){var n,r,i,s=t.dyn_tree,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=f,n=0;n<c;n++)0!==s[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):s[2*n+1]=0;for(;e.heap_len<2;)s[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,o&&(e.static_len-=a[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)q(e,s,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],q(e,s,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,s[2*i]=s[2*n]+s[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,s[2*n+1]=s[2*r+1]=i,e.heap[1]=i++,q(e,s,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,s,a,o,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,y=0;for(s=0;s<=p;s++)e.bl_count[s]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<f;n++)g<(s=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(s=g,y++),c[2*r+1]=s,l<r||(e.bl_count[s]++,a=0,m<=r&&(a=h[r-m]),o=c[2*r],e.opt_len+=o*(s+a),d&&(e.static_len+=o*(u[2*r+1]+a)));if(0!==y){do{for(s=g-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[g]--,y-=2}while(0<y);for(s=g;0!==s;s--)for(r=e.bl_count[s];0!==r;)l<(i=e.heap[--n])||(c[2*i+1]!==s&&(e.opt_len+=(s-c[2*i+1])*c[2*i],c[2*i+1]=s),r--)}}(e,t),U(s,l,e.bl_count)}function V(e,t,n){var r,i,s=-1,a=t[1],o=0,c=7,l=4;for(0===a&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++o<c&&i===a||(o<l?e.bl_tree[2*i]+=o:0!==i?(i!==s&&e.bl_tree[2*i]++,e.bl_tree[2*v]++):o<=10?e.bl_tree[2*b]++:e.bl_tree[2*_]++,s=i,l=(o=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4))}function J(e,t,n){var r,i,s=-1,a=t[1],o=0,c=7,l=4;for(0===a&&(c=138,l=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++o<c&&i===a)){if(o<l)for(;B(e,i,e.bl_tree),0!=--o;);else 0!==i?(i!==s&&(B(e,i,e.bl_tree),o--),B(e,v,e.bl_tree),P(e,o-3,2)):o<=10?(B(e,b,e.bl_tree),P(e,o-3,3)):(B(e,_,e.bl_tree),P(e,o-11,7));s=i,l=(o=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4)}}a(M);var Z=!1;function X(e,t,n,i){P(e,(o<<1)+(i?1:0),3),function(e,t,n,i){W(e),i&&(L(e,n),L(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){Z||(function(){var e,t,n,r,i,s=new Array(p+1);for(r=n=0;r<c-1;r++)for(A[r]=n,e=0;e<1<<w[r];e++)I[n++]=r;for(I[n-1]=r,r=i=0;r<16;r++)for(M[r]=i,e=0;e<1<<S[r];e++)T[i++]=r;for(i>>=7;r<d;r++)for(M[r]=i<<7,e=0;e<1<<S[r]-7;e++)T[256+i++]=r;for(t=0;t<=p;t++)s[t]=0;for(e=0;e<=143;)E[2*e+1]=8,e++,s[8]++;for(;e<=255;)E[2*e+1]=9,e++,s[9]++;for(;e<=279;)E[2*e+1]=7,e++,s[7]++;for(;e<=287;)E[2*e+1]=8,e++,s[8]++;for(U(E,u+1,s),e=0;e<d;e++)x[2*e+1]=5,x[2*e]=j(e,5);O=new F(E,w,l+1,u,p),R=new F(x,S,0,d,p),D=new F(new Array(0),k,0,h,g)}(),Z=!0),e.l_desc=new z(e.dyn_ltree,O),e.d_desc=new z(e.dyn_dtree,R),e.bl_desc=new z(e.bl_tree,D),e.bi_buf=0,e.bi_valid=0,$(e)},n._tr_stored_block=X,n._tr_flush_block=function(e,t,n,r){var a,o,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return s;for(t=32;t<l;t++)if(0!==e.dyn_ltree[2*t])return s;return i}(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*C[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=a&&(a=o)):a=o=n+5,n+4<=a&&-1!==t?X(e,t,n,r):4===e.strategy||o===a?(P(e,2+(r?1:0),3),K(e,E,x)):(P(e,4+(r?1:0),3),function(e,t,n,r){var i;for(P(e,t-257,5),P(e,n-1,5),P(e,r-4,4),i=0;i<r;i++)P(e,e.bl_tree[2*C[i]+1],3);J(e,e.dyn_ltree,t-1),J(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),K(e,e.dyn_ltree,e.dyn_dtree)),$(e),r&&W(e)},n._tr_tally=function(e,t,n){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&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(I[n]+l+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){P(e,2,3),B(e,y,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,n){"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,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,r,s,a,o=1,c={},l=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,n="[object process]"==={}.toString.call(e.process)?function(e){i.nextTick((function(){f(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){s.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.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),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return c[o]=i,n(o),o++},d.clearImmediate=h}function h(e){delete c[e]}function f(e){if(l)setTimeout(f,0,e);else{var n=c[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{h(e),l=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&f(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},477:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var r=n(45247),i=n(23906);function s(e){void 0===e&&(e=r.t);var t=e===r.t?i.P:(0,i.N)(e);return function(){return t().dispatch}}var a=s()},26926:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(98173),i=n(45247);function s(){return(0,r.useContext)(i.t)}},91270:(e,t,n)=>{"use strict";n.d(t,{d:()=>u});var r=n(98173),i=n(26926),s=n(41968),a=n(14812),o=n(45247),c=function(e,t){return e===t};function l(e){void 0===e&&(e=o.t);var t=e===o.t?i.n:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=c);var i=t(),o=function(e,t,n,i){var o,c=(0,r.useReducer)((function(e){return e+1}),0)[1],l=(0,r.useMemo)((function(){return(0,s.K)(n,i)}),[n,i]),u=(0,r.useRef)(),d=(0,r.useRef)(),h=(0,r.useRef)(),f=(0,r.useRef)(),p=n.getState();try{if(e!==d.current||p!==h.current||u.current){var m=e(p);o=void 0!==f.current&&t(m,f.current)?f.current:m}else o=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,a.E)((function(){d.current=e,h.current=p,f.current=o,u.current=void 0})),(0,a.E)((function(){function e(){try{var e=n.getState();if(e===h.current)return;var r=d.current(e);if(t(r,f.current))return;f.current=r,h.current=e}catch(g){u.current=g}c()}return l.onStateChange=e,l.trySubscribe(),e(),function(){return l.tryUnsubscribe()}}),[n,l]),o}(e,n,i.store,i.subscription);return(0,r.useDebugValue)(o),o}}var u=l()},79245:(e,t,n)=>{"use strict";n.d(t,{Kd:()=>u,N_:()=>d,ok:()=>p});var r=n(98173),i=n(30150),s=n(24833);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function o(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function c(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}const l=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function u(e){let{basename:t,children:n,window:a}=e,o=r.useRef();null==o.current&&(o.current=(0,s.zR)({window:a,v5Compat:!0}));let c=o.current,[l,u]=r.useState({action:c.action,location:c.location});return r.useLayoutEffect((()=>c.listen(u)),[c]),r.createElement(i.Ix,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:c})}const d=r.forwardRef((function(e,t){let{onClick:n,relative:c,reloadDocument:u,replace:d,state:h,target:f,to:p,preventScrollReset:m}=e,g=o(e,l),y=(0,i.$P)(p,{relative:c}),v=function(e,t){let{target:n,replace:a,state:o,preventScrollReset:c,relative:l}=void 0===t?{}:t,u=(0,i.Zp)(),d=(0,i.zy)(),h=(0,i.x$)(e,{relative:l});return r.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,n)){t.preventDefault();let n=void 0!==a?a:(0,s.AO)(d)===(0,s.AO)(h);u(e,{replace:n,state:o,preventScrollReset:c,relative:l})}}),[d,u,h,a,o,n,e,c,l])}(p,{replace:d,state:h,target:f,preventScrollReset:m,relative:c});return r.createElement("a",a({},g,{href:y,onClick:u?n:function(e){n&&n(e),e.defaultPrevented||v(e)},ref:t,target:f}))}));var h,f;function p(e){let t=r.useRef(c(e)),n=(0,i.zy)(),s=r.useMemo((()=>function(e,t){let n=c(e);for(let r of t.keys())n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}));return n}(n.search,t.current)),[n.search]),a=(0,i.Zp)(),o=r.useCallback(((e,t)=>{const n=c("function"===typeof e?e(s):e);a("?"+n,t)}),[a,s]);return[s,o]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(h||(h={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(f||(f={}))},30150:(e,t,n)=>{"use strict";var r;n.d(t,{$P:()=>_,BV:()=>j,C5:()=>N,Ix:()=>B,KC:()=>x,Zp:()=>C,g:()=>T,qh:()=>P,sv:()=>L,x$:()=>I,zy:()=>S});var i=n(24833),s=n(98173);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const o="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}=r||(r=n.t(s,2));function h(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!o(n,e)}catch(r){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,(r||(r=n.t(s,2))).useSyncExternalStore;const f=s.createContext(null);const p=s.createContext(null);const m=s.createContext(null);const g=s.createContext(null);const y=s.createContext(null);const v=s.createContext({outlet:null,matches:[]});const b=s.createContext(null);function _(e,t){let{relative:n}=void 0===t?{}:t;w()||(0,i.V1)(!1);let{basename:r,navigator:a}=s.useContext(g),{hash:o,pathname:c,search:l}=I(e,{relative:n}),u=c;return"/"!==r&&(u="/"===c?r:(0,i.HS)([r,c])),a.createHref({pathname:u,search:l,hash:o})}function w(){return null!=s.useContext(y)}function S(){return w()||(0,i.V1)(!1),s.useContext(y).location}function k(e){return e.filter(((t,n)=>0===n||!t.route.index&&t.pathnameBase!==e[n-1].pathnameBase))}function C(){w()||(0,i.V1)(!1);let{basename:e,navigator:t}=s.useContext(g),{matches:n}=s.useContext(v),{pathname:r}=S(),a=JSON.stringify(k(n).map((e=>e.pathnameBase))),o=s.useRef(!1);return s.useEffect((()=>{o.current=!0})),s.useCallback((function(n,s){if(void 0===s&&(s={}),!o.current)return;if("number"===typeof n)return void t.go(n);let c=(0,i.Gh)(n,JSON.parse(a),r,"path"===s.relative);"/"!==e&&(c.pathname="/"===c.pathname?e:(0,i.HS)([e,c.pathname])),(s.replace?t.replace:t.push)(c,s.state,s)}),[e,t,a,r])}const E=s.createContext(null);function x(){return s.useContext(E)}function T(){let{matches:e}=s.useContext(v),t=e[e.length-1];return t?t.params:{}}function I(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=s.useContext(v),{pathname:a}=S(),o=JSON.stringify(k(r).map((e=>e.pathnameBase)));return s.useMemo((()=>(0,i.Gh)(e,JSON.parse(o),a,"path"===n)),[e,o,a,n])}function A(){let e=function(){var e;let t=s.useContext(b),n=z(F.UseRouteError),r=s.useContext(v),a=r.matches[r.matches.length-1];if(t)return t;return r||(0,i.V1)(!1),!a.route.id&&(0,i.V1)(!1),null==(e=n.errors)?void 0:e[a.route.id]}(),t=(0,i.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return s.createElement(s.Fragment,null,s.createElement("h2",null,"Unhandled Thrown Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),n?s.createElement("pre",{style:a},n):null,s.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),s.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",s.createElement("code",{style:o},"errorElement")," props on\xa0",s.createElement("code",{style:o},"<Route>")))}class O extends s.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?s.createElement(b.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function R(e){let{routeContext:t,match:n,children:r}=e,i=s.useContext(f);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),s.createElement(v.Provider,{value:t},r)}function D(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}let r=e,a=null==n?void 0:n.errors;if(null!=a){let e=r.findIndex((e=>e.route.id&&(null==a?void 0:a[e.route.id])));e>=0||(0,i.V1)(!1),r=r.slice(0,Math.min(r.length,e+1))}return r.reduceRight(((e,i,o)=>{let c=i.route.id?null==a?void 0:a[i.route.id]:null,l=n?i.route.errorElement||s.createElement(A,null):null,u=()=>s.createElement(R,{match:i,routeContext:{outlet:e,matches:t.concat(r.slice(0,o+1))}},c?l:void 0!==i.route.element?i.route.element:e);return n&&(i.route.errorElement||0===o)?s.createElement(O,{location:n.location,component:l,error:c,children:u()}):u()}),null)}var M,F;function z(e){let t=s.useContext(m);return t||(0,i.V1)(!1),t}!function(e){e.UseRevalidator="useRevalidator"}(M||(M={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(F||(F={}));function N(e){let{to:t,replace:n,state:r,relative:a}=e;w()||(0,i.V1)(!1);let o=s.useContext(m),c=C();return s.useEffect((()=>{o&&"idle"!==o.navigation.state||c(t,{replace:n,state:r,relative:a})})),null}function L(e){return function(e){let t=s.useContext(v).outlet;return t?s.createElement(E.Provider,{value:e},t):t}(e.context)}function P(e){(0,i.V1)(!1)}function B(e){let{basename:t="/",children:n=null,location:r,navigationType:a=i.rc.Pop,navigator:o,static:c=!1}=e;w()&&(0,i.V1)(!1);let l=t.replace(/^\/*/,"/"),u=s.useMemo((()=>({basename:l,navigator:o,static:c})),[l,o,c]);"string"===typeof r&&(r=(0,i.Rr)(r));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:m="default"}=r,v=s.useMemo((()=>{let e=(0,i.pb)(d,l);return null==e?null:{pathname:e,search:h,hash:f,state:p,key:m}}),[l,d,h,f,p,m]);return null==v?null:s.createElement(g.Provider,{value:u},s.createElement(y.Provider,{children:n,value:{location:v,navigationType:a}}))}function j(e){let{children:t,location:n}=e,r=s.useContext(p);return function(e,t){w()||(0,i.V1)(!1);let n=s.useContext(m),{matches:r}=s.useContext(v),o=r[r.length-1],c=o?o.params:{},l=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let u,d=S();if(t){var h;let e="string"===typeof t?(0,i.Rr)(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||(0,i.V1)(!1),u=e}else u=d;let f=u.pathname||"/",p="/"===l?f:f.slice(l.length)||"/",g=(0,i.ue)(e,{pathname:p}),b=D(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:(0,i.HS)([l,e.pathname]),pathnameBase:"/"===e.pathnameBase?l:(0,i.HS)([l,e.pathnameBase])}))),r,n||void 0);return t?s.createElement(y.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:i.rc.Pop}},b):b}(r&&!t?r.router.routes:$(t),n)}var U;!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(U||(U={}));new Promise((()=>{}));s.Component;function $(e,t){void 0===t&&(t=[]);let n=[];return s.Children.forEach(e,((e,r)=>{if(!s.isValidElement(e))return;if(e.type===s.Fragment)return void n.push.apply(n,$(e.props.children,t));e.type!==P&&(0,i.V1)(!1),e.props.index&&e.props.children&&(0,i.V1)(!1);let a=[...t,r],o={id:e.props.id||a.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&&(o.children=$(e.props.children,a)),n.push(o)})),n}},40512:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(98173),i=n(2407),s=n.n(i),a="undefined"!==typeof window?window:null,o=null===a,c=o?void 0:a.document,l="addEventListener",u="removeEventListener",d="getBoundingClientRect",h="_a",f="_b",p="_c",m="horizontal",g=function(){return!1},y=o?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=c.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",v=function(e){return"string"===typeof e||e instanceof String},b=function(e){if(v(e)){var t=c.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},_=function(e,t,n){var r=e[t];return void 0!==r?r:n},w=function(e,t,n,r){if(t){if("end"===r)return 0;if("center"===r)return e/2}else if(n){if("start"===r)return 0;if("center"===r)return e/2}return e},S=function(e,t){var n=c.createElement("div");return n.className="gutter gutter-"+t,n},k=function(e,t,n){var r={};return v(t)?r[e]=t:r[e]=y+"("+t+"% - "+n+"px)",r},C=function(e,t){var n;return(n={})[e]=t+"px",n};const E=function(e,t){if(void 0===t&&(t={}),o)return{};var n,r,i,s,y,v,E=e;Array.from&&(E=Array.from(E));var x=b(E[0]).parentNode,T=getComputedStyle?getComputedStyle(x):null,I=T?T.flexDirection:null,A=_(t,"sizes")||E.map((function(){return 100/E.length})),O=_(t,"minSize",100),R=Array.isArray(O)?O:E.map((function(){return O})),D=_(t,"maxSize",1/0),M=Array.isArray(D)?D:E.map((function(){return D})),F=_(t,"expandToMin",!1),z=_(t,"gutterSize",10),N=_(t,"gutterAlign","center"),L=_(t,"snapOffset",30),P=Array.isArray(L)?L:E.map((function(){return L})),B=_(t,"dragInterval",1),j=_(t,"direction",m),U=_(t,"cursor",j===m?"col-resize":"row-resize"),$=_(t,"gutter",S),W=_(t,"elementStyle",k),H=_(t,"gutterStyle",C);function q(e,t,r,i){var s=W(n,t,r,i);Object.keys(s).forEach((function(t){e.style[t]=s[t]}))}function K(){return v.map((function(e){return e.size}))}function G(e){return"touches"in e?e.touches[0][r]:e[r]}function V(e){var t=v[this.a],n=v[this.b],r=t.size+n.size;t.size=e/this.size*r,n.size=r-e/this.size*r,q(t.element,t.size,this[f],t.i),q(n.element,n.size,this[p],n.i)}function J(e){var n,r=v[this.a],i=v[this.b];this.dragging&&(n=G(e)-this.start+(this[f]-this.dragOffset),B>1&&(n=Math.round(n/B)*B),n<=r.minSize+r.snapOffset+this[f]?n=r.minSize+this[f]:n>=this.size-(i.minSize+i.snapOffset+this[p])&&(n=this.size-(i.minSize+this[p])),n>=r.maxSize-r.snapOffset+this[f]?n=r.maxSize+this[f]:n<=this.size-(i.maxSize-i.snapOffset+this[p])&&(n=this.size-(i.maxSize+this[p])),V.call(this,n),_(t,"onDrag",g)(K()))}function Z(){var e=v[this.a].element,t=v[this.b].element,r=e[d](),a=t[d]();this.size=r[n]+a[n]+this[f]+this[p],this.start=r[i],this.end=r[s]}function X(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var n=e[y];return 0===n?null:n-=j===m?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(x);if(null===t)return e;if(R.reduce((function(e,t){return e+t}),0)>t)return e;var n=0,r=[],i=e.map((function(i,s){var a=t*i/100,o=w(z,0===s,s===e.length-1,N),c=R[s]+o;return a<c?(n+=c-a,r.push(0),c):(r.push(a-c),a)}));return 0===n?e:i.map((function(e,i){var s=e;if(n>0&&r[i]-n>0){var a=Math.min(n,r[i]-n);n-=a,s=e-a}return s/t*100}))}function Y(){var e=this,n=v[e.a].element,r=v[e.b].element;e.dragging&&_(t,"onDragEnd",g)(K()),e.dragging=!1,a[u]("mouseup",e.stop),a[u]("touchend",e.stop),a[u]("touchcancel",e.stop),a[u]("mousemove",e.move),a[u]("touchmove",e.move),e.stop=null,e.move=null,n[u]("selectstart",g),n[u]("dragstart",g),r[u]("selectstart",g),r[u]("dragstart",g),n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",c.body.style.cursor=""}function Q(e){if(!("button"in e)||0===e.button){var n=this,r=v[n.a].element,i=v[n.b].element;n.dragging||_(t,"onDragStart",g)(K()),e.preventDefault(),n.dragging=!0,n.move=J.bind(n),n.stop=Y.bind(n),a[l]("mouseup",n.stop),a[l]("touchend",n.stop),a[l]("touchcancel",n.stop),a[l]("mousemove",n.move),a[l]("touchmove",n.move),r[l]("selectstart",g),r[l]("dragstart",g),i[l]("selectstart",g),i[l]("dragstart",g),r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",i.style.userSelect="none",i.style.webkitUserSelect="none",i.style.MozUserSelect="none",i.style.pointerEvents="none",n.gutter.style.cursor=U,n.parent.style.cursor=U,c.body.style.cursor=U,Z.call(n),n.dragOffset=G(e)-n.end}}j===m?(n="width",r="clientX",i="left",s="right",y="clientWidth"):"vertical"===j&&(n="height",r="clientY",i="top",s="bottom",y="clientHeight"),A=X(A);var ee=[];function te(e){var t=e.i===ee.length,n=t?ee[e.i-1]:ee[e.i];Z.call(n);var r=t?n.size-e.minSize-n[p]:e.minSize+n[f];V.call(n,r)}return(v=E.map((function(e,t){var r,i={element:b(e),size:A[t],minSize:R[t],maxSize:M[t],snapOffset:P[t],i:t};if(t>0&&((r={a:t-1,b:t,dragging:!1,direction:j,parent:x})[f]=w(z,t-1===0,!1,N),r[p]=w(z,!1,t===E.length-1,N),"row-reverse"===I||"column-reverse"===I)){var s=r.a;r.a=r.b,r.b=s}if(t>0){var a=$(t,j,i.element);!function(e,t,r){var i=H(n,t,r);Object.keys(i).forEach((function(t){e.style[t]=i[t]}))}(a,z,t),r[h]=Q.bind(r),a[l]("mousedown",r[h]),a[l]("touchstart",r[h]),x.insertBefore(a,i.element),r.gutter=a}return q(i.element,i.size,w(z,0===t,t===E.length-1,N),t),t>0&&ee.push(r),i}))).forEach((function(e){var t=e.element[d]()[n];t<e.minSize&&(F?te(e):e.minSize=t)})),{setSizes:function(e){var t=X(e);t.forEach((function(e,n){if(n>0){var r=ee[n-1],i=v[r.a],s=v[r.b];i.size=t[n-1],s.size=e,q(i.element,i.size,r[f],i.i),q(s.element,s.size,r[p],s.i)}}))},getSizes:K,collapse:function(e){te(v[e])},destroy:function(e,t){ee.forEach((function(r){if(!0!==t?r.parent.removeChild(r.gutter):(r.gutter[u]("mousedown",r[h]),r.gutter[u]("touchstart",r[h])),!0!==e){var i=W(n,r.a.size,r[f]);Object.keys(i).forEach((function(e){v[r.a].element.style[e]="",v[r.b].element.style[e]=""}))}}))},parent:x,pairs:ee}};function x(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var T=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,n=x(e,["children","gutter"]);n.gutter=function(e,n){var r;return t?r=t(e,n):(r=document.createElement("div")).className="gutter gutter-"+n,r.__isSplitGutter=!0,r},this.split=E(this.parent.children,n)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props;n.children;var r=n.minSize,i=n.sizes,s=n.collapsed,a=x(n,["children","minSize","sizes","collapsed"]),o=e.minSize,c=e.sizes,l=e.collapsed,u=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(n){return t.props[n]!==e[n]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(r)&&Array.isArray(o)){var d=!1;r.forEach((function(e,t){d=d||e!==o[t]})),u=u||d}else u=!(!Array.isArray(r)&&!Array.isArray(o))||(u||r!==o);if(u)a.minSize=r,a.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),a.gutter=function(e,t,n){return n.previousSibling},this.split=E(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),a);else if(i){var h=!1;i.forEach((function(e,t){h=h||e!==c[t]})),h&&this.split.setSizes(this.props.sizes)}Number.isInteger(s)&&(s!==l||u)&&this.split.collapse(s)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var n=t.children,i=x(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return r.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},i),n)},t}(r.Component);T.propTypes={sizes:s().arrayOf(s().number),minSize:s().oneOfType([s().number,s().arrayOf(s().number)]),maxSize:s().oneOfType([s().number,s().arrayOf(s().number)]),expandToMin:s().bool,gutterSize:s().number,gutterAlign:s().string,snapOffset:s().oneOfType([s().number,s().arrayOf(s().number)]),dragInterval:s().number,direction:s().string,cursor:s().string,gutter:s().func,elementStyle:s().func,gutterStyle:s().func,onDrag:s().func,onDragStart:s().func,onDragEnd:s().func,collapsed:s().number,children:s().arrayOf(s().element)},T.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const I=T},83339:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(65214),i=n(21679);const s=new(n(62175).A)(i.A,r.A)._freeze()}}]);