ed-widget 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/dist/assets/favicon.ico +0 -0
- package/dist/ed-widget.js +607 -0
- package/dist/en-Bl6-omxP.mjs +24 -0
- package/dist/no-KEr0c7Nd.mjs +24 -0
- package/npm/assets/favicon.ico +0 -0
- package/npm/ed-widget.js +427 -0
- package/npm/en-Bl6-omxP.mjs +24 -0
- package/npm/no-KEr0c7Nd.mjs +24 -0
- package/package.json +77 -0
package/npm/ed-widget.js
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,wght@0,100..900;1,100..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}h1{font-size:32px;font-weight:600}h2{font-size:1.5rem;line-height:2rem;font-weight:600}h3{font-size:1.25rem;line-height:1.75rem;font-weight:500}h4{font-size:1.125rem;line-height:1.75rem;font-weight:500}h5{font-size:1rem;line-height:1.5rem;font-weight:500}h6{font-size:.875rem;line-height:1.25rem;font-weight:500}p{font-size:.875rem;line-height:1.25rem;font-weight:400}span{font-size:.75rem;line-height:1rem;font-weight:400}@keyframes stripes{0%{background-position:0 0}to{background-position:160px 0}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.ed-pointer-events-none{pointer-events:none}.ed-absolute{position:absolute}.ed-relative{position:relative}.ed-sticky{position:sticky}.ed-inset-2{top:.5rem;right:.5rem;bottom:.5rem;left:.5rem}.ed-bottom-0{bottom:0}.ed-bottom-12{bottom:3rem}.ed-left-0{left:0}.ed-left-1\\/2{left:50%}.ed-right-0{right:0}.ed-right-12{right:3rem}.ed-top-0{top:0}.ed-top-1\\/2{top:50%}.ed-z-10{z-index:10}.ed-z-\\[9999999\\]{z-index:9999999}.ed--mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.ed-mx-3{margin-left:.75rem;margin-right:.75rem}.ed-my-10{margin-top:2.5rem;margin-bottom:2.5rem}.ed-my-2{margin-top:.5rem;margin-bottom:.5rem}.ed-my-4{margin-top:1rem;margin-bottom:1rem}.ed-mb-1{margin-bottom:.25rem}.ed-mb-2{margin-bottom:.5rem}.ed-mb-4{margin-bottom:1rem}.ed-mb-5{margin-bottom:1.25rem}.ed-mb-6{margin-bottom:1.5rem}.ed-ml-1{margin-left:.25rem}.ed-ml-2{margin-left:.5rem}.ed-ml-auto{margin-left:auto}.ed-mr-1{margin-right:.25rem}.ed-mt-1\\.5{margin-top:.375rem}.ed-mt-2{margin-top:.5rem}.ed-mt-2\\.5{margin-top:.625rem}.ed-mt-3{margin-top:.75rem}.ed-mt-4{margin-top:1rem}.ed-mt-5{margin-top:1.25rem}.ed-block{display:block}.ed-inline-block{display:inline-block}.ed-inline{display:inline}.ed-flex{display:flex}.ed-inline-flex{display:inline-flex}.ed-grid{display:grid}.ed-hidden{display:none}.ed-size-10{width:2.5rem;height:2.5rem}.ed-size-11{width:2.75rem;height:2.75rem}.ed-size-12{width:3rem;height:3rem}.ed-size-4{width:1rem;height:1rem}.ed-size-5{width:1.25rem;height:1.25rem}.ed-size-7{width:1.75rem;height:1.75rem}.ed-size-9{width:2.25rem;height:2.25rem}.ed-h-0{height:0px}.ed-h-10{height:2.5rem}.ed-h-2{height:.5rem}.ed-h-2\\/3{height:66.666667%}.ed-h-20{height:5rem}.ed-h-4{height:1rem}.ed-h-5{height:1.25rem}.ed-h-7{height:1.75rem}.ed-h-8{height:2rem}.ed-h-\\[41px\\]{height:41px}.ed-h-\\[calc\\(100vh-200px\\)\\]{height:calc(100vh - 200px)}.ed-h-\\[calc\\(100vh-25rem\\)\\]{height:calc(100vh - 25rem)}.ed-h-dvh{height:100dvh}.ed-h-full{height:100%}.ed-h-max{height:-moz-max-content;height:max-content}.ed-max-h-0{max-height:0px}.ed-max-h-96{max-height:24rem}.ed-min-h-\\[24px\\]{min-height:24px}.ed-min-h-min{min-height:-moz-min-content;min-height:min-content}.ed-w-0{width:0px}.ed-w-10{width:2.5rem}.ed-w-11\\/12{width:91.666667%}.ed-w-2{width:.5rem}.ed-w-4{width:1rem}.ed-w-5{width:1.25rem}.ed-w-7{width:1.75rem}.ed-w-8{width:2rem}.ed-w-full{width:100%}.ed-w-max{width:-moz-max-content;width:max-content}.ed-w-screen{width:100vw}.ed-min-w-0{min-width:0px}.ed-min-w-\\[16rem\\]{min-width:16rem}.ed-max-w-\\[100px\\]{max-width:100px}.ed-max-w-\\[85\\%\\]{max-width:85%}.ed-max-w-\\[87\\%\\]{max-width:87%}.ed-flex-1{flex:1 1 0%}.ed-flex-shrink-0{flex-shrink:0}.ed-origin-center{transform-origin:center}.ed--translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed--translate-x-2{--tw-translate-x: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed--translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed-rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed-rotate-\\[360deg\\]{--tw-rotate: 360deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed-scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed-scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ed-bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.ed-animate-bounce{animation:ed-bounce 1s infinite}@keyframes ed-spin{to{transform:rotate(360deg)}}.ed-animate-spin{animation:ed-spin 1s linear infinite}.ed-cursor-pointer{cursor:pointer}.ed-resize-none{resize:none}.ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ed-flex-col{flex-direction:column}.ed-flex-wrap{flex-wrap:wrap}.ed-items-start{align-items:flex-start}.ed-items-center{align-items:center}.ed-justify-start{justify-content:flex-start}.ed-justify-end{justify-content:flex-end}.ed-justify-center{justify-content:center}.ed-justify-between{justify-content:space-between}.ed-gap-2{gap:.5rem}.ed-gap-2\\.5{gap:.625rem}.ed-gap-3{gap:.75rem}.ed-gap-4{gap:1rem}.ed-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.ed-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.ed-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ed-space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.ed-overflow-hidden{overflow:hidden}.ed-overflow-x-auto{overflow-x:auto}.ed-overflow-y-auto{overflow-y:auto}.ed-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ed-whitespace-nowrap{white-space:nowrap}.\\!ed-rounded{border-radius:.25rem!important}.ed-rounded{border-radius:.25rem}.ed-rounded-3xl{border-radius:1.5rem}.ed-rounded-\\[10px\\]{border-radius:10px}.ed-rounded-\\[20px\\]{border-radius:20px}.ed-rounded-\\[8px\\]{border-radius:8px}.ed-rounded-full{border-radius:9999px}.ed-rounded-lg{border-radius:.5rem}.ed-rounded-md{border-radius:.375rem}.ed-rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.ed-rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.ed-border{border-width:1px}.ed-border-0{border-width:0px}.ed-border-2{border-width:2px}.ed-border-y{border-top-width:1px;border-bottom-width:1px}.ed-border-b{border-bottom-width:1px}.ed-border-l{border-left-width:1px}.ed-border-solid{border-style:solid}.ed-border-dashed{border-style:dashed}.ed-border-border-light{--tw-border-opacity: 1;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))}.ed-border-brand{border-color:var(--ed-brand-color)}.ed-border-disabled{--tw-border-opacity: 1;border-color:rgb(248 249 251 / var(--tw-border-opacity, 1))}.ed-border-gray{--tw-border-opacity: 1;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))}.ed-border-red{--tw-border-opacity: 1;border-color:rgb(254 71 91 / var(--tw-border-opacity, 1))}.ed-bg-black\\/15{background-color:#00000026}.ed-bg-blue-light{--tw-bg-opacity: 1;background-color:rgb(227 242 253 / var(--tw-bg-opacity, 1))}.ed-bg-brand{background-color:var(--ed-brand-color)}.ed-bg-brand-light{--tw-bg-opacity: 1;background-color:rgb(230 246 252 / var(--tw-bg-opacity, 1))}.ed-bg-gray{--tw-bg-opacity: 1;background-color:rgb(243 244 248 / var(--tw-bg-opacity, 1))}.ed-bg-gray-deep{--tw-bg-opacity: 1;background-color:rgb(143 153 173 / var(--tw-bg-opacity, 1))}.ed-bg-green{--tw-bg-opacity: 1;background-color:rgb(12 170 27 / var(--tw-bg-opacity, 1))}.ed-bg-red{--tw-bg-opacity: 1;background-color:rgb(254 71 91 / var(--tw-bg-opacity, 1))}.ed-bg-transparent{background-color:transparent}.ed-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.ed-bg-white-light{--tw-bg-opacity: 1;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))}.ed-bg-yellow{--tw-bg-opacity: 1;background-color:rgb(255 171 0 / var(--tw-bg-opacity, 1))}.ed-bg-none{background-image:none}.ed-fill-border-regular{fill:#797979}.ed-fill-brand{fill:var(--ed-brand-color)}.ed-fill-white{fill:#fff}.ed-stroke-border-regular{stroke:#797979}.ed-stroke-brand{stroke:var(--ed-brand-color)}.ed-object-cover{-o-object-fit:cover;object-fit:cover}.ed-p-0\\.5{padding:.125rem}.ed-p-1{padding:.25rem}.ed-p-1\\.5{padding:.375rem}.ed-p-2{padding:.5rem}.ed-p-2\\.5{padding:.625rem}.ed-p-4{padding:1rem}.ed-p-5{padding:1.25rem}.ed-px-2{padding-left:.5rem;padding-right:.5rem}.ed-px-4{padding-left:1rem;padding-right:1rem}.ed-px-5{padding-left:1.25rem;padding-right:1.25rem}.ed-px-6{padding-left:1.5rem;padding-right:1.5rem}.ed-px-7{padding-left:1.75rem;padding-right:1.75rem}.ed-px-\\[25px\\]{padding-left:25px;padding-right:25px}.ed-py-1{padding-top:.25rem;padding-bottom:.25rem}.ed-py-2{padding-top:.5rem;padding-bottom:.5rem}.ed-py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.ed-py-3{padding-top:.75rem;padding-bottom:.75rem}.ed-py-4{padding-top:1rem;padding-bottom:1rem}.ed-py-5{padding-top:1.25rem;padding-bottom:1.25rem}.ed-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.ed-py-8{padding-top:2rem;padding-bottom:2rem}.ed-py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.ed-pb-5{padding-bottom:1.25rem}.ed-pt-1{padding-top:.25rem}.ed-pt-2\\.5{padding-top:.625rem}.ed-pt-3{padding-top:.75rem}.ed-pt-5{padding-top:1.25rem}.ed-text-left{text-align:left}.ed-text-center{text-align:center}.ed-text-12{font-size:12px}.ed-text-14{font-size:14px}.ed-text-16{font-size:16px}.ed-text-18{font-size:18px}.ed-text-24{font-size:24px}.ed-text-sm{font-size:.875rem;line-height:1.25rem}.ed-font-bold{font-weight:700}.ed-font-medium{font-weight:500}.ed-font-normal{font-weight:400}.ed-font-semibold{font-weight:600}.ed-lowercase{text-transform:lowercase}.ed-leading-none{line-height:1}.ed-text-blue-950{--tw-text-opacity: 1;color:rgb(23 37 84 / var(--tw-text-opacity, 1))}.ed-text-border{--tw-text-opacity: 1;color:rgb(183 183 183 / var(--tw-text-opacity, 1))}.ed-text-border-dark{--tw-text-opacity: 1;color:rgb(59 59 59 / var(--tw-text-opacity, 1))}.ed-text-border-regular{--tw-text-opacity: 1;color:rgb(121 121 121 / var(--tw-text-opacity, 1))}.ed-text-brand{color:var(--ed-brand-color)}.ed-text-brand-link{--tw-text-opacity: 1;color:rgb(0 78 146 / var(--tw-text-opacity, 1))}.ed-text-dark{--tw-text-opacity: 1;color:rgb(33 33 78 / var(--tw-text-opacity, 1))}.ed-text-red{--tw-text-opacity: 1;color:rgb(254 71 91 / var(--tw-text-opacity, 1))}.ed-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.ed-opacity-0{opacity:0}.ed-opacity-100{opacity:1}.ed-opacity-25{opacity:.25}.ed-opacity-75{opacity:.75}.ed-shadow-\\[0_-8px_10px_rgba\\(0\\,0\\,0\\,0\\.02\\)\\]{--tw-shadow: 0 -8px 10px rgba(0,0,0,.02);--tw-shadow-colored: 0 -8px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ed-shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ed-outline-none{outline:2px solid transparent;outline-offset:2px}.ed-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ed-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ed-transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ed-delay-150{transition-delay:.15s}.ed-delay-75{transition-delay:75ms}.ed-duration-200{transition-duration:.2s}.ed-duration-300{transition-duration:.3s}.ed-duration-500{transition-duration:.5s}.ed-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}:root{--ed-brand-color: #00a1e0;--brand-link-color: #004e92;--ed-border-light: #d8e0ed;--ed-border: #b7b7b7;--ed-font-montserrat: "Montserrat";--main-font: "Poppins"}body{font-family:var(--main-font)}input[type=text]:focus{outline:none!important;border-color:#3b3b3b!important}input[type=email]:focus{outline:none!important;border-color:#3b3b3b!important}input[type=password]:focus{outline:none!important;border-color:#3b3b3b!important}textarea:focus{outline:none!important;border-color:#3b3b3b!important}.contactSelectInput .ant-select-selector:hover{border-color:#3b3b3b!important}.workflow_content_wrapping{display:-webkit-box;max-width:100%;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rc-virtual-list-scrollbar-thumb{display:none!important}.email-select-input .ant-select-selection-item{color:#797979!important}.email-select-input .ant-select-selector{border:none!important}.ant-multi-select-component .ant-select-selection-search{width:200px!important;margin-left:10px!important;margin-inline-start:5px!important}@media screen and (max-width: 768px){.ant-select-selection-search{margin-top:5px!important}}@media screen and (min-width: 768px){.email-select-popup{width:380px!important}}.hide-chart-line ul{display:none!important}.margin-bottom-0{margin-bottom:0!important}.ant-picker-presets>ul>li{padding-top:5px!important;padding-bottom:5px!important}.filter-range-popup-panel>.ant-picker-panel{visibility:hidden!important}.first-letter-capitalize:first-letter{text-transform:capitalize!important}.hide-ant-header .ant-picker-header{display:none!important}.ant-picker-panels .ant-picker-header{border-bottom:none!important}.ant-picker-dropdown .ant-picker-footer{border-top:none!important}.ant-picker-range-arrow{display:none!important}.inline-datepicker-popup>.ant-picker-panel-container{box-shadow:none!important}.ant-picker-panels>*:nth-child(2){display:none}.ant-picker-panels>*:first-child button.ant-picker-header-next-btn{visibility:visible!important}.ant-picker-panels>*:first-child button.ant-picker-header-super-next-btn{visibility:visible!important}.custom-inline-date-range-picke-popup{padding:0}.custom-inline-date-range-picke-popup .ant-picker-panel-container{box-shadow:none!important;background-color:#fff!important}.custom-ok-button .ant-btn-primary{background-color:var(--brand-color)!important;border-color:var(--brand-color)!important}.active-button-style{color:var(--brand-color)}.ant-select{width:100%}.ant-select-selector{border:1px solid #d1d5db;border-radius:.375rem;height:2.5rem}.ant-select-selection-placeholder,.ant-select-selection-item{font-size:.875rem;font-weight:500;color:#4b5563}.ant-select-selector .ant-select-selection-item svg{display:none!important}.ant-select-dropdown{border-radius:.375rem}.tickets_filter_popup .ant-select-item-option-grouped{padding-inline-start:12px!important}.ant_multi_select_tag{background:#f8f9fb!important;border-radius:15px!important;padding:5px 10px!important;display:flex!important;align-items:center!important}.ant-multi-select-component .ant-select-selection-overflow{padding:0 0 5px!important}.ant_multi_select_tag .ant-tag-close-icon{color:red!important;margin-left:5px!important}.ant-popover-content{margin-inline:-10px!important}.ant-popover-content .ant-popover-inner{padding:0!important}.ant-popover-arrow{display:none!important}.ant-tabs-ink-bar{width:0!important;color:#fff!important;background-color:#fff!important}.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:var(--brand-color)!important}.ant-tabs-card .ant-tabs-nav .ant-tabs-tab{background:none!important}.ant-tabs-card .ant-tabs-nav .ant-tabs-tab-active{background:var(--brand-color)!important;border-radius:10px!important}.ant-tabs-card .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn{color:#fff!important}.ant-tabs-card .ant-tabs-nav .ant-tabs-tab-btn{color:#8d91a5}.ant-tabs-tab-btn:hover{color:var(--brand-color)}.ant-tabs-content-holder{border-left:none!important}.ant-select .ant-select-selector{padding:6px}.react-tel-input .form-control{height:38px!important;width:100%!important}.ant-radio-wrapper .ant-radio-input{opacity:1!important}.revert-list-style ol,.revert-list-style ul{list-style:revert;margin-left:40px}.hovered-svg:hover .fill-hover-color{fill:var(--brand-color);stroke:var(--brand-color)}.hovered-svg .fill-hover-color{stroke:#797979}.hovered-svg:hover .fill-with-stroke-color{stroke:var(--brand-color)}.hovered-svg .fill-with-stroke-color{stroke:#797979}.sidebar-active-item .fill-with-stroke-color{stroke:var(--brand-color)}.sidebar-active-item .white-stroke{stroke:#fff}.sidebar-active-item .fill-hover-color{fill:var(--brand-color);stroke:var(--brand-color)}.hovered-svg:hover .white-stroke{stroke:#fff}.custom-radio{display:flex;align-items:center}.custom-radio input{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:18px;height:18px;border-radius:50%;outline:1px solid #797979;border:4px solid #fbfaff;margin-right:8px}.custom-radio input:checked{background-color:var(--brand-color);outline:1px solid var(--brand-color);border:4px solid #fbfaff}.custom-radio input[type=radio]:checked{padding:4px}.ant-drawer .ant-drawer-header{padding:0!important;border-bottom:none!important}.ant-drawer-body{padding:0!important}.ant-drawer-mask{background:#0000000d!important}.ant-drawer-content-wrapper{box-shadow:none!important}.ant-drawer-content,.ant-drawer-wrapper-body{background:#fff}@media screen and (max-width: "768px"){.ant-drawer-content-wrapper .ant-drawer-content{background:transparent}}.ant-picker-input input::-moz-placeholder,.app-select-payrun input::-moz-placeholder{color:#8d91a5!important;font-size:14px!important}.ant-picker-input input::placeholder,.app-select-payrun input::placeholder,.ant-picker-input .ant-picker-suffix svg,.ant-picker-suffix .anticon-calendar svg{color:#8d91a5!important;font-size:14px!important}.ant-picker-input>input[disabled]{color:#21214e!important}.single-date-picker .ant-picker-input input{padding-top:3px;padding-bottom:3px}.single-date-picker .ant-picker-input .ant-picker-suffix{font-size:16px}.ant-picker-presets>ul>li{padding:0!important}.ant-picker{min-width:320px!important}.ant-picker-presets{width:auto!important;max-height:none!important}.ant-picker-presets li{height:auto!important;white-space:nowrap}.ant-picker-dropdown{width:auto!important}.ant-picker-cell-inner{height:40px!important;line-height:40px!important;font-size:16px!important}.ant-picker-input>input{height:30px!important}.custom-date-picker .ant-space{gap:0!important}.ant-select-open div{opacity:.7}.ant-select-selector,.ant-select-selector:focus,.ant-select-selector:active{box-shadow:none!important}.borderless-select .ant-select-selector,.ant-select-selector:focus,.ant-select-selector:active{border:none!important;box-shadow:none!important}.dashboard-top-filter .ant-select-selector,.ant-select-selector:focus,.ant-select-selector:active{border:none!important;box-shadow:none!important;color:var(--brand-link-color)!important}.ant-select-selector:hover,.ant-select-focused .ant-select-selector{border-color:#3b3b3b!important}.dashboard-top-filter .ant-select-selector .ant-select-selection-item,.dashboard-top-filter .ant-select-dropdown .ant-select-item-option-content{color:var(--brand-link-color)!important}.dashboard-top-filter .ant-select-item .ant-select-item-option .ant-select-item-option-active .ant-select-item-option-selected .ant-select-item-option-content{color:var(--brand-link-color)!important;background-color:green!important}.ant-picker-dropdown .css-dev-only-do-not-override-1k979oh .ant-picker-dropdown-range .ant-picker-dropdown-placement-bottomRight{min-width:-moz-max-content!important;min-width:max-content!important;width:40%!important}.ant-picker-presets>ul>li>p{padding:5px 50px 5px 20px!important;font-size:14px!important;font-weight:500!important}.jodit-status-bar__item a{display:none!important}.react-tel-input{position:relative!important}.react-tel-input .country-list .country.highlight,.react-tel-input .country-list .country.highlight:hover{background:#fafbfc!important}.react-tel-input .country-list .country,.react-tel-input .country-list .country:hover{background:#fff!important}.input-phone-number.react-tel-input .form-control{width:100%!important;height:43px!important}.react-tel-input .form-control{padding-left:68px!important;background:transparent!important;width:100%!important;border:1px solid #d8e0ed!important}.react-tel-input .flag-dropdown{background-color:transparent!important;border-right:none!important;border-left:1px solid #d8e0ed!important;border-top:1px solid #d8e0ed!important;border-bottom:1px solid #d8e0ed!important}.react-tel-input .flag-dropdown .selected-flag{padding:0 0 0 15px!important}.react-tel-input .flag-dropdown .selected-flag .arrow{display:none}.react-tel-input .flag-dropdown .selected-flag:after{content:"";position:absolute;top:47%;left:51px;transform:translate(-50%,-50%) rotate(315deg);width:9px;height:9px;border-left:2px solid #3b3b3b!important;border-bottom:2px solid #3b3b3b!important}.word-wrap{word-wrap:break-word}.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon{display:none!important}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}@keyframes openModalFromTop{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.desktop-style-class{animation-name:openModalFromTop;animation-duration:.3s;animation-timing-function:ease-in-out;animation-iteration-count:1}.jodit-workplace{padding:5px!important}.jodit-placeholder{top:5px!important;left:10px!important;font-size:14px!important}.btn_hover_color{position:relative}.btn_hover_color:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;transition:.3s ease}.btn_hover_color:hover:before{background:#0003}@keyframes stripes{0%{background-position:1rem 0}to{background-position:0 0}}.animate-striped{animation:stripes .5s linear infinite;background:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--brand-color)!important;border-color:var(--brand-color)!important}.disabled-checkbox-wrapper .ant-checkbox-checked .ant-checkbox-inner{background-color:#b7b7b7!important;border-color:#b7b7b7!important;color:#fff}.disabled-checkbox-wrapper .ant-checkbox-inner:after{border-color:#fff!important}.checkbox-custom .ant-checkbox-checked .ant-checkbox-inner:after{border-color:#fff}.jodit-react-editor.editor-toolbar-bottom .jodit-toolbar__box{position:absolute;bottom:0;left:0;right:0;z-index:10;border-top:1px solid #ccc}.jodit-react-editor{position:relative}.ant-tooltip{z-index:9999999!important}.ant-tooltip-inner{size:12px!important;font-weight:500!important;color:#b7b7b7!important;font-family:var(--font-montserrat);background-color:#fff!important;box-shadow:0 0 15px #0000000f}.ant-tooltip-arrow{display:none!important}.boards-dropdown .ant-select-single{height:auto!important}.boards-dropdown .ant-select-selector{padding:4px 12px!important;border:1px solid #d8e0ed!important;border-radius:8px!important}.boards-dropdown .ant-select-selection-item{font-size:14px!important;font-weight:600!important;color:#797979!important}.boards-dropdown-popup .ant-select-item-option-content{font-size:14px!important;font-weight:600!important;padding:4px 18px!important;border-radius:5px!important}.boards-dropdown-popup .ant-select-item-option-active{font-size:14px!important;font-weight:600!important;color:var(--brand-color)!important;background-color:#e3f2fd!important;padding:4px 12px!important;border-radius:5px!important}.ant-switch-checked{background:var(--brand-color)!important}.hover\\:ed-size-12:hover{width:3rem;height:3rem}.hover\\:ed-text-border-dark:hover{--tw-text-opacity: 1;color:rgb(59 59 59 / var(--tw-text-opacity, 1))}.disabled\\:ed-bg-brand:disabled{background-color:var(--ed-brand-color)}.disabled\\:ed-opacity-50:disabled{opacity:.5}@media (min-width: 768px){.md\\:ed-bottom-24{bottom:6rem}.md\\:ed-right-6{right:1.5rem}.md\\:ed-h-\\[80vh\\]{height:80vh}.md\\:ed-max-h-\\[704px\\]{max-height:704px}.md\\:ed-w-\\[400px\\]{width:400px}.md\\:ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:ed-rounded-\\[10px\\]{border-radius:10px}.md\\:ed-rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.md\\:ed-rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
(function(xr,q){typeof exports=="object"&&typeof module<"u"?q(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],q):(xr=typeof globalThis<"u"?globalThis:xr||self,q(xr.EasyDeskChatWidget={},xr.React,xr.ReactDOM))})(this,function(xr,q,ti){"use strict";var WH=Object.defineProperty;var GH=(xr,q,ti)=>q in xr?WH(xr,q,{enumerable:!0,configurable:!0,writable:!0,value:ti}):xr[q]=ti;var iT=(xr,q,ti)=>GH(xr,typeof q!="symbol"?q+"":q,ti);function oT(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}function sT(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const Z=oT(q);var ul=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pd={exports:{}},Is={},i0;function uT(){if(i0)return Is;i0=1;/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/return function(){var t=q,e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function b(G){if(G===null||typeof G!="object")return null;var Ee=m&&G[m]||G[y];return typeof Ee=="function"?Ee:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(G){{for(var Ee=arguments.length,ke=new Array(Ee>1?Ee-1:0),ze=1;ze<Ee;ze++)ke[ze-1]=arguments[ze];S("error",G,ke)}}function S(G,Ee,ke){{var ze=w.ReactDebugCurrentFrame,pt=ze.getStackAddendum();pt!==""&&(Ee+="%s",ke=ke.concat([pt]));var vt=ke.map(function(tt){return String(tt)});vt.unshift("Warning: "+Ee),Function.prototype.apply.call(console[G],console,vt)}}var C=!1,_=!1,T=!1,O=!1,k=!1,P;P=Symbol.for("react.module.reference");function N(G){return!!(typeof G=="string"||typeof G=="function"||G===n||G===a||k||G===i||G===f||G===d||O||G===v||C||_||T||typeof G=="object"&&G!==null&&(G.$$typeof===p||G.$$typeof===h||G.$$typeof===o||G.$$typeof===u||G.$$typeof===l||G.$$typeof===P||G.getModuleId!==void 0))}function M(G,Ee,ke){var ze=G.displayName;if(ze)return ze;var pt=Ee.displayName||Ee.name||"";return pt!==""?ke+"("+pt+")":ke}function z(G){return G.displayName||"Context"}function H(G){if(G==null)return null;if(typeof G.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof G=="function")return G.displayName||G.name||null;if(typeof G=="string")return G;switch(G){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case d:return"SuspenseList"}if(typeof G=="object")switch(G.$$typeof){case u:var Ee=G;return z(Ee)+".Consumer";case o:var ke=G;return z(ke._context)+".Provider";case l:return M(G,G.render,"ForwardRef");case h:var ze=G.displayName||null;return ze!==null?ze:H(G.type)||"Memo";case p:{var pt=G,vt=pt._payload,tt=pt._init;try{return H(tt(vt))}catch{return null}}}return null}var L=Object.assign,F=0,U,Y,V,K,$,Q,ae;function ie(){}ie.__reactDisabledLog=!0;function te(){{if(F===0){U=console.log,Y=console.info,V=console.warn,K=console.error,$=console.group,Q=console.groupCollapsed,ae=console.groupEnd;var G={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:G,log:G,warn:G,error:G,group:G,groupCollapsed:G,groupEnd:G})}F++}}function fe(){{if(F--,F===0){var G={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},G,{value:U}),info:L({},G,{value:Y}),warn:L({},G,{value:V}),error:L({},G,{value:K}),group:L({},G,{value:$}),groupCollapsed:L({},G,{value:Q}),groupEnd:L({},G,{value:ae})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=w.ReactCurrentDispatcher,W;function de(G,Ee,ke){{if(W===void 0)try{throw Error()}catch(pt){var ze=pt.stack.trim().match(/\n( *(at )?)/);W=ze&&ze[1]||""}return`
|
|
11
|
+
`+W+G}}var ye=!1,Se;{var J=typeof WeakMap=="function"?WeakMap:Map;Se=new J}function j(G,Ee){if(!G||ye)return"";{var ke=Se.get(G);if(ke!==void 0)return ke}var ze;ye=!0;var pt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var vt;vt=ue.current,ue.current=null,te();try{if(Ee){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(Ut){ze=Ut}Reflect.construct(G,[],tt)}else{try{tt.call()}catch(Ut){ze=Ut}G.call(tt.prototype)}}else{try{throw Error()}catch(Ut){ze=Ut}G()}}catch(Ut){if(Ut&&ze&&typeof Ut.stack=="string"){for(var Ke=Ut.stack.split(`
|
|
12
|
+
`),Wt=ze.stack.split(`
|
|
13
|
+
`),Ct=Ke.length-1,qt=Wt.length-1;Ct>=1&&qt>=0&&Ke[Ct]!==Wt[qt];)qt--;for(;Ct>=1&&qt>=0;Ct--,qt--)if(Ke[Ct]!==Wt[qt]){if(Ct!==1||qt!==1)do if(Ct--,qt--,qt<0||Ke[Ct]!==Wt[qt]){var St=`
|
|
14
|
+
`+Ke[Ct].replace(" at new "," at ");return G.displayName&&St.includes("<anonymous>")&&(St=St.replace("<anonymous>",G.displayName)),typeof G=="function"&&Se.set(G,St),St}while(Ct>=1&&qt>=0);break}}}finally{ye=!1,ue.current=vt,fe(),Error.prepareStackTrace=pt}var Pr=G?G.displayName||G.name:"",cn=Pr?de(Pr):"";return typeof G=="function"&&Se.set(G,cn),cn}function Re(G,Ee,ke){return j(G,!1)}function oe(G){var Ee=G.prototype;return!!(Ee&&Ee.isReactComponent)}function xe(G,Ee,ke){if(G==null)return"";if(typeof G=="function")return j(G,oe(G));if(typeof G=="string")return de(G);switch(G){case f:return de("Suspense");case d:return de("SuspenseList")}if(typeof G=="object")switch(G.$$typeof){case l:return Re(G.render);case h:return xe(G.type,Ee,ke);case p:{var ze=G,pt=ze._payload,vt=ze._init;try{return xe(vt(pt),Ee,ke)}catch{}}}return""}var Fe=Object.prototype.hasOwnProperty,He={},Ye=w.ReactDebugCurrentFrame;function Xe(G){if(G){var Ee=G._owner,ke=xe(G.type,G._source,Ee?Ee.type:null);Ye.setExtraStackFrame(ke)}else Ye.setExtraStackFrame(null)}function ht(G,Ee,ke,ze,pt){{var vt=Function.call.bind(Fe);for(var tt in G)if(vt(G,tt)){var Ke=void 0;try{if(typeof G[tt]!="function"){var Wt=Error((ze||"React class")+": "+ke+" type `"+tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof G[tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Wt.name="Invariant Violation",Wt}Ke=G[tt](Ee,tt,ze,ke,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ct){Ke=Ct}Ke&&!(Ke instanceof Error)&&(Xe(pt),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ze||"React class",ke,tt,typeof Ke),Xe(null)),Ke instanceof Error&&!(Ke.message in He)&&(He[Ke.message]=!0,Xe(pt),E("Failed %s type: %s",ke,Ke.message),Xe(null))}}}var je=Array.isArray;function Te(G){return je(G)}function we(G){{var Ee=typeof Symbol=="function"&&Symbol.toStringTag,ke=Ee&&G[Symbol.toStringTag]||G.constructor.name||"Object";return ke}}function ot(G){try{return _e(G),!1}catch{return!0}}function _e(G){return""+G}function Ce(G){if(ot(G))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",we(G)),_e(G)}var he=w.ReactCurrentOwner,Ne={key:!0,ref:!0,__self:!0,__source:!0},Oe,Me;function et(G){if(Fe.call(G,"ref")){var Ee=Object.getOwnPropertyDescriptor(G,"ref").get;if(Ee&&Ee.isReactWarning)return!1}return G.ref!==void 0}function It(G){if(Fe.call(G,"key")){var Ee=Object.getOwnPropertyDescriptor(G,"key").get;if(Ee&&Ee.isReactWarning)return!1}return G.key!==void 0}function Jt(G,Ee){typeof G.ref=="string"&&he.current}function vr(G,Ee){{var ke=function(){Oe||(Oe=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ee))};ke.isReactWarning=!0,Object.defineProperty(G,"key",{get:ke,configurable:!0})}}function Oi(G,Ee){{var ke=function(){Me||(Me=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ee))};ke.isReactWarning=!0,Object.defineProperty(G,"ref",{get:ke,configurable:!0})}}var un=function(G,Ee,ke,ze,pt,vt,tt){var Ke={$$typeof:e,type:G,key:Ee,ref:ke,props:tt,_owner:vt};return Ke._store={},Object.defineProperty(Ke._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ke,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ze}),Object.defineProperty(Ke,"_source",{configurable:!1,enumerable:!1,writable:!1,value:pt}),Object.freeze&&(Object.freeze(Ke.props),Object.freeze(Ke)),Ke};function gr(G,Ee,ke,ze,pt){{var vt,tt={},Ke=null,Wt=null;ke!==void 0&&(Ce(ke),Ke=""+ke),It(Ee)&&(Ce(Ee.key),Ke=""+Ee.key),et(Ee)&&(Wt=Ee.ref,Jt(Ee,pt));for(vt in Ee)Fe.call(Ee,vt)&&!Ne.hasOwnProperty(vt)&&(tt[vt]=Ee[vt]);if(G&&G.defaultProps){var Ct=G.defaultProps;for(vt in Ct)tt[vt]===void 0&&(tt[vt]=Ct[vt])}if(Ke||Wt){var qt=typeof G=="function"?G.displayName||G.name||"Unknown":G;Ke&&vr(tt,qt),Wt&&Oi(tt,qt)}return un(G,Ke,Wt,pt,ze,he.current,tt)}}var Gr=w.ReactCurrentOwner,oa=w.ReactDebugCurrentFrame;function ln(G){if(G){var Ee=G._owner,ke=xe(G.type,G._source,Ee?Ee.type:null);oa.setExtraStackFrame(ke)}else oa.setExtraStackFrame(null)}var ui;ui=!1;function li(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function jr(){{if(Gr.current){var G=H(Gr.current.type);if(G)return`
|
|
15
|
+
|
|
16
|
+
Check the render method of \``+G+"`."}return""}}function wr(G){return""}var ci={};function lr(G){{var Ee=jr();if(!Ee){var ke=typeof G=="string"?G:G.displayName||G.name;ke&&(Ee=`
|
|
17
|
+
|
|
18
|
+
Check the top-level render call using <`+ke+">.")}return Ee}}function Qr(G,Ee){{if(!G._store||G._store.validated||G.key!=null)return;G._store.validated=!0;var ke=lr(Ee);if(ci[ke])return;ci[ke]=!0;var ze="";G&&G._owner&&G._owner!==Gr.current&&(ze=" It was passed a child from "+H(G._owner.type)+"."),ln(G),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ke,ze),ln(null)}}function xt(G,Ee){{if(typeof G!="object")return;if(Te(G))for(var ke=0;ke<G.length;ke++){var ze=G[ke];li(ze)&&Qr(ze,Ee)}else if(li(G))G._store&&(G._store.validated=!0);else if(G){var pt=b(G);if(typeof pt=="function"&&pt!==G.entries)for(var vt=pt.call(G),tt;!(tt=vt.next()).done;)li(tt.value)&&Qr(tt.value,Ee)}}}function Mt(G){{var Ee=G.type;if(Ee==null||typeof Ee=="string")return;var ke;if(typeof Ee=="function")ke=Ee.propTypes;else if(typeof Ee=="object"&&(Ee.$$typeof===l||Ee.$$typeof===h))ke=Ee.propTypes;else return;if(ke){var ze=H(Ee);ht(ke,G.props,"prop",ze,G)}else if(Ee.PropTypes!==void 0&&!ui){ui=!0;var pt=H(Ee);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",pt||"Unknown")}typeof Ee.getDefaultProps=="function"&&!Ee.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $r(G){{for(var Ee=Object.keys(G.props),ke=0;ke<Ee.length;ke++){var ze=Ee[ke];if(ze!=="children"&&ze!=="key"){ln(G),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ze),ln(null);break}}G.ref!==null&&(ln(G),E("Invalid attribute `ref` supplied to `React.Fragment`."),ln(null))}}var Yr={};function fi(G,Ee,ke,ze,pt,vt){{var tt=N(G);if(!tt){var Ke="";(G===void 0||typeof G=="object"&&G!==null&&Object.keys(G).length===0)&&(Ke+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Wt=wr();Wt?Ke+=Wt:Ke+=jr();var Ct;G===null?Ct="null":Te(G)?Ct="array":G!==void 0&&G.$$typeof===e?(Ct="<"+(H(G.type)||"Unknown")+" />",Ke=" Did you accidentally export a JSX literal instead of a component?"):Ct=typeof G,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ct,Ke)}var qt=gr(G,Ee,ke,pt,vt);if(qt==null)return qt;if(tt){var St=Ee.children;if(St!==void 0)if(ze)if(Te(St)){for(var Pr=0;Pr<St.length;Pr++)xt(St[Pr],G);Object.freeze&&Object.freeze(St)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xt(St,G)}if(Fe.call(Ee,"key")){var cn=H(G),Ut=Object.keys(Ee).filter(function(ua){return ua!=="key"}),di=Ut.length>0?"{key: someKey, "+Ut.join(": ..., ")+": ...}":"{key: someKey}";if(!Yr[cn+di]){var Ga=Ut.length>0?"{"+Ut.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
19
|
+
let props = %s;
|
|
20
|
+
<%s {...props} />
|
|
21
|
+
React keys must be passed directly to JSX without using spread:
|
|
22
|
+
let props = %s;
|
|
23
|
+
<%s key={someKey} {...props} />`,di,cn,Ga,cn),Yr[cn+di]=!0}}return G===n?$r(qt):Mt(qt),qt}}function mr(G,Ee,ke){return fi(G,Ee,ke,!0)}function sa(G,Ee,ke){return fi(G,Ee,ke,!1)}var Ri=sa,Rn=mr;Is.Fragment=n,Is.jsx=Ri,Is.jsxs=Rn}(),Is}var a0;function ll(){return a0||(a0=1,pd.exports=uT()),pd.exports}var R=ll(),cl={},o0;function lT(){if(o0)return cl;o0=1;var t=ti;{var e=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;cl.createRoot=function(r,n){e.usingClientEntryPoint=!0;try{return t.createRoot(r,n)}finally{e.usingClientEntryPoint=!1}},cl.hydrateRoot=function(r,n,i){e.usingClientEntryPoint=!0;try{return t.hydrateRoot(r,n,i)}finally{e.usingClientEntryPoint=!1}}}return cl}var cT=lT(),vd=function(t,e){return vd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},vd(t,e)};function yn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");vd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ee=function(){return ee=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ee.apply(this,arguments)};function bn(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function Ui(t,e,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function u(d){try{f(n.next(d))}catch(h){o(h)}}function l(d){try{f(n.throw(d))}catch(h){o(h)}}function f(d){d.done?a(d.value):i(d.value).then(u,l)}f((n=n.apply(t,e||[])).next())})}function zi(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(f){return function(d){return l([f,d])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(r=0)),r;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(d){f=[6,d],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Cr(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var gd="Invariant Violation",s0=Object.setPrototypeOf,fT=s0===void 0?function(t,e){return t.__proto__=e,t}:s0,u0=function(t){yn(e,t);function e(r){r===void 0&&(r=gd);var n=t.call(this,typeof r=="number"?gd+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=gd,fT(n,e.prototype),n}return e}(Error);function wa(t,e){if(!t)throw new u0(e)}var l0=["debug","log","warn","error","silent"],dT=l0.indexOf("log");function fl(t){return function(){if(l0.indexOf(t)>=dT){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=fl("debug"),t.log=fl("log"),t.warn=fl("warn"),t.error=fl("error")})(wa||(wa={}));var md="3.13.8";function $n(t){try{return t()}catch{}}const yd=$n(function(){return globalThis})||$n(function(){return window})||$n(function(){return self})||$n(function(){return global})||$n(function(){return $n.constructor("return this")()});var c0=new Map;function bd(t){var e=c0.get(t)||1;return c0.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function f0(t,e){e===void 0&&(e=0);var r=bd("stringifyForDisplay");return JSON.stringify(t,function(n,i){return i===void 0?r:i},e).split(JSON.stringify(r)).join("<undefined>")}function dl(t){return function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(typeof e=="number"){var i=e;e=_d(i),e||(e=wd(i,r),r=[])}t.apply(void 0,[e].concat(r))}}var Pe=Object.assign(function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e||wa(e,_d(r,n)||wd(r,n))},{debug:dl(wa.debug),log:dl(wa.log),warn:dl(wa.warn),error:dl(wa.error)});function Lr(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return new u0(_d(t,e)||wd(t,e))}var d0=Symbol.for("ApolloErrorMessageHandler_"+md);function h0(t){if(typeof t=="string")return t;try{return f0(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function _d(t,e){if(e===void 0&&(e=[]),!!t)return yd[d0]&&yd[d0](t,e.map(h0))}function wd(t,e){if(e===void 0&&(e=[]),!!t)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:md,message:t,args:e.map(h0)})))}function hT(t,e){if(!!!t)throw new Error(e)}const p0={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},pT=new Set(Object.keys(p0));function v0(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&pT.has(e)}var g0;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(g0||(g0={}));var Ht;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Ht||(Ht={}));function m0(t){return t===9||t===32}function vT(t,e){const r=t.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=n.length===1,a=n.length>1&&n.slice(1).every(v=>v.length===0||m0(v.charCodeAt(0))),o=r.endsWith('\\"""'),u=t.endsWith('"')&&!o,l=t.endsWith("\\"),f=u||l,d=!i||t.length>70||f||a||o;let h="";const p=i&&m0(t.charCodeAt(0));return(d&&!p||a)&&(h+=`
|
|
24
|
+
`),h+=r,(d||f)&&(h+=`
|
|
25
|
+
`),'"""'+h+'"""'}const gT=10,y0=2;function mT(t){return hl(t,[])}function hl(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return yT(t,e);default:return String(t)}}function yT(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const r=[...e,t];if(bT(t)){const n=t.toJSON();if(n!==t)return typeof n=="string"?n:hl(n,r)}else if(Array.isArray(t))return wT(t,r);return _T(t,r)}function bT(t){return typeof t.toJSON=="function"}function _T(t,e){const r=Object.entries(t);return r.length===0?"{}":e.length>y0?"["+ET(t)+"]":"{ "+r.map(([i,a])=>i+": "+hl(a,e)).join(", ")+" }"}function wT(t,e){if(t.length===0)return"[]";if(e.length>y0)return"[Array]";const r=Math.min(gT,t.length),n=t.length-r,i=[];for(let a=0;a<r;++a)i.push(hl(t[a],e));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function ET(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}function ST(t){return`"${t.replace(xT,CT)}"`}const xT=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function CT(t){return TT[t.charCodeAt(0)]}const TT=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],pl=Object.freeze({});function qn(t,e,r=p0){const n=new Map;for(const w of Object.values(Ht))n.set(w,OT(e,w));let i,a=Array.isArray(t),o=[t],u=-1,l=[],f=t,d,h;const p=[],v=[];do{u++;const w=u===o.length,E=w&&l.length!==0;if(w){if(d=v.length===0?void 0:p[p.length-1],f=h,h=v.pop(),E)if(a){f=f.slice();let C=0;for(const[_,T]of l){const O=_-C;T===null?(f.splice(O,1),C++):f[O]=T}}else{f={...f};for(const[C,_]of l)f[C]=_}u=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(h){if(d=a?u:o[u],f=h[d],f==null)continue;p.push(d)}let S;if(!Array.isArray(f)){var m,y;v0(f)||hT(!1,`Invalid AST Node: ${mT(f)}.`);const C=w?(m=n.get(f.kind))===null||m===void 0?void 0:m.leave:(y=n.get(f.kind))===null||y===void 0?void 0:y.enter;if(S=C==null?void 0:C.call(e,f,d,h,p,v),S===pl)break;if(S===!1){if(!w){p.pop();continue}}else if(S!==void 0&&(l.push([d,S]),!w))if(v0(S))f=S;else{p.pop();continue}}if(S===void 0&&E&&l.push([d,f]),w)p.pop();else{var b;i={inArray:a,index:u,keys:o,edits:l,prev:i},a=Array.isArray(f),o=a?f:(b=r[f.kind])!==null&&b!==void 0?b:[],u=-1,l=[],h&&v.push(h),h=f}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:t}function OT(t,e){const r=t[e];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}function RT(t){return qn(t,AT)}const kT=80,AT={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>qe(t.definitions,`
|
|
26
|
+
|
|
27
|
+
`)},OperationDefinition:{leave(t){const e=mt("(",qe(t.variableDefinitions,", "),")"),r=qe([t.operation,qe([t.name,e]),qe(t.directives," ")]," ");return(r==="query"?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+mt(" = ",r)+mt(" ",qe(n," "))},SelectionSet:{leave:({selections:t})=>Un(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:i}){const a=mt("",t,": ")+e;let o=a+mt("(",qe(r,", "),")");return o.length>kT&&(o=a+mt(`(
|
|
28
|
+
`,vl(qe(r,`
|
|
29
|
+
`)),`
|
|
30
|
+
)`)),qe([o,qe(n," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+mt(" ",qe(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>qe(["...",mt("on ",t),qe(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${t}${mt("(",qe(r,", "),")")} on ${e} ${mt("",qe(n," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?vT(t):ST(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+qe(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+qe(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+mt("(",qe(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>mt("",t,`
|
|
31
|
+
`)+qe(["schema",qe(e," "),Un(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>mt("",t,`
|
|
32
|
+
`)+qe(["scalar",e,qe(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>mt("",t,`
|
|
33
|
+
`)+qe(["type",e,mt("implements ",qe(r," & ")),qe(n," "),Un(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:i})=>mt("",t,`
|
|
34
|
+
`)+e+(b0(r)?mt(`(
|
|
35
|
+
`,vl(qe(r,`
|
|
36
|
+
`)),`
|
|
37
|
+
)`):mt("(",qe(r,", "),")"))+": "+n+mt(" ",qe(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:i})=>mt("",t,`
|
|
38
|
+
`)+qe([e+": "+r,mt("= ",n),qe(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>mt("",t,`
|
|
39
|
+
`)+qe(["interface",e,mt("implements ",qe(r," & ")),qe(n," "),Un(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:n})=>mt("",t,`
|
|
40
|
+
`)+qe(["union",e,qe(r," "),mt("= ",qe(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:n})=>mt("",t,`
|
|
41
|
+
`)+qe(["enum",e,qe(r," "),Un(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>mt("",t,`
|
|
42
|
+
`)+qe([e,qe(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>mt("",t,`
|
|
43
|
+
`)+qe(["input",e,qe(r," "),Un(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:n,locations:i})=>mt("",t,`
|
|
44
|
+
`)+"directive @"+e+(b0(r)?mt(`(
|
|
45
|
+
`,vl(qe(r,`
|
|
46
|
+
`)),`
|
|
47
|
+
)`):mt("(",qe(r,", "),")"))+(n?" repeatable":"")+" on "+qe(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>qe(["extend schema",qe(t," "),Un(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>qe(["extend scalar",t,qe(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>qe(["extend type",t,mt("implements ",qe(e," & ")),qe(r," "),Un(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>qe(["extend interface",t,mt("implements ",qe(e," & ")),qe(r," "),Un(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>qe(["extend union",t,qe(e," "),mt("= ",qe(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>qe(["extend enum",t,qe(e," "),Un(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>qe(["extend input",t,qe(e," "),Un(r)]," ")}};function qe(t,e=""){var r;return(r=t==null?void 0:t.filter(n=>n).join(e))!==null&&r!==void 0?r:""}function Un(t){return mt(`{
|
|
48
|
+
`,vl(qe(t,`
|
|
49
|
+
`)),`
|
|
50
|
+
}`)}function mt(t,e,r=""){return e!=null&&e!==""?t+e+r:""}function vl(t){return mt(" ",t.replace(/\n/g,`
|
|
51
|
+
`))}function b0(t){var e;return(e=t==null?void 0:t.some(r=>r.includes(`
|
|
52
|
+
`)))!==null&&e!==void 0?e:!1}function _0(t){return t.kind===Ht.FIELD||t.kind===Ht.FRAGMENT_SPREAD||t.kind===Ht.INLINE_FRAGMENT}function Ls(t,e){var r=t.directives;return!r||!r.length?!0:IT(r).every(function(n){var i=n.directive,a=n.ifArgument,o=!1;return a.value.kind==="Variable"?(o=e&&e[a.value.name.value],Pe(o!==void 0,78,i.name.value)):o=a.value.value,i.name.value==="skip"?!o:o})}function Ms(t,e,r){var n=new Set(t),i=n.size;return qn(e,{Directive:function(a){if(n.delete(a.name.value)&&(!r||!n.size))return pl}}),r?!n.size:n.size<i}function PT(t){return t&&Ms(["client","export"],t,!0)}function NT(t){var e=t.name.value;return e==="skip"||e==="include"}function IT(t){var e=[];return t&&t.length&&t.forEach(function(r){if(NT(r)){var n=r.arguments,i=r.name.value;Pe(n&&n.length===1,79,i);var a=n[0];Pe(a.name&&a.name.value==="if",80,i);var o=a.value;Pe(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),81,i),e.push({directive:r,ifArgument:a})}}),e}function LT(t){var e,r,n=(e=t.directives)===null||e===void 0?void 0:e.find(function(a){var o=a.name;return o.value==="unmask"});if(!n)return"mask";var i=(r=n.arguments)===null||r===void 0?void 0:r.find(function(a){var o=a.name;return o.value==="mode"});return globalThis.__DEV__!==!1&&i&&(i.value.kind===Ht.VARIABLE?globalThis.__DEV__!==!1&&Pe.warn(82):i.value.kind!==Ht.STRING?globalThis.__DEV__!==!1&&Pe.warn(83):i.value.value!=="migrate"&&globalThis.__DEV__!==!1&&Pe.warn(84,i.value.value)),i&&"value"in i.value&&i.value.value==="migrate"?"migrate":"unmask"}const MT=()=>Object.create(null),{forEach:DT,slice:w0}=Array.prototype,{hasOwnProperty:FT}=Object.prototype;class Ei{constructor(e=!0,r=MT){this.weakness=e,this.makeData=r}lookup(){return this.lookupArray(arguments)}lookupArray(e){let r=this;return DT.call(e,n=>r=r.getChildTrie(n)),FT.call(r,"data")?r.data:r.data=this.makeData(w0.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&n<i;++n){const a=r.mapFor(e[n],!1);r=a&&a.get(e[n])}return r&&r.data}remove(){return this.removeArray(arguments)}removeArray(e){let r;if(e.length){const n=e[0],i=this.mapFor(n,!1),a=i&&i.get(n);a&&(r=a.removeArray(w0.call(e,1)),!a.data&&!a.weak&&!(a.strong&&a.strong.size)&&i.delete(n))}else r=this.data,delete this.data;return r}getChildTrie(e){const r=this.mapFor(e,!0);let n=r.get(e);return n||r.set(e,n=new Ei(this.weakness,this.makeData)),n}mapFor(e,r){return this.weakness&&jT(e)?this.weak||(r?this.weak=new WeakMap:void 0):this.strong||(r?this.strong=new Map:void 0)}}function jT(t){switch(typeof t){case"object":if(t===null)break;case"function":return!0}return!1}var E0=$n(function(){return navigator.product})=="ReactNative",Ea=typeof WeakMap=="function"&&!(E0&&!global.HermesInternal),Ed=typeof WeakSet=="function",Sd=typeof Symbol=="function"&&typeof Symbol.for=="function",gl=Sd&&Symbol.asyncIterator,S0=typeof $n(function(){return window.document.createElement})=="function",$T=$n(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,qT=(S0||E0)&&!$T;function Bt(t){return t!==null&&typeof t=="object"}function UT(t,e){var r=e,n=[];t.definitions.forEach(function(a){if(a.kind==="OperationDefinition")throw Lr(85,a.operation,a.name?" named '".concat(a.name.value,"'"):"");a.kind==="FragmentDefinition"&&n.push(a)}),typeof r>"u"&&(Pe(n.length===1,86,n.length),r=n[0].name.value);var i=ee(ee({},t),{definitions:Cr([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)});return i}function fo(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function ml(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{var r=t.name.value;if(typeof e=="function")return e(r);var n=e&&e[r];return Pe(n,87,r),n||null}default:return null}}function zT(t){var e=!0;return qn(t,{FragmentSpread:function(r){if(e=!!r.directives&&r.directives.some(function(n){return n.name.value==="unmask"}),!e)return pl}}),e}function HT(){}class xd{constructor(e=1/0,r=HT){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}get size(){return this.map.size}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}}function Cd(){}const VT=Cd,BT=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},WT=typeof WeakMap<"u"?WeakMap:Map,GT=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Cd,unregister:Cd}},QT=10024;class yl{constructor(e=1/0,r=VT){this.max=e,this.dispose=r,this.map=new WT,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let i=0;i<QT;i++){const a=n.next().value;if(!a)break;this.unfinalizedNodes.delete(a);const o=a.key;delete a.key,a.keyRef=new BT(o),this.registry.register(o,a,a)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new GT(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const r=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,r),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),r&&this.map.delete(r)}delete(e){const r=this.map.get(e);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var Td=new WeakSet;function x0(t){t.size<=(t.max||-1)||Td.has(t)||(Td.add(t),setTimeout(function(){t.clean(),Td.delete(t)},100))}var Od=function(t,e){var r=new yl(t,e);return r.set=function(n,i){var a=yl.prototype.set.call(this,n,i);return x0(this),a},r},YT=function(t,e){var r=new xd(t,e);return r.set=function(n,i){var a=xd.prototype.set.call(this,n,i);return x0(this),a},r},KT=Symbol.for("apollo.cacheSize"),ri=ee({},yd[KT]),Sa={};function Rd(t,e){Sa[t]=e}var XT=globalThis.__DEV__!==!1?tO:void 0,ZT=globalThis.__DEV__!==!1?rO:void 0,JT=globalThis.__DEV__!==!1?C0:void 0;function eO(){var t={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(t).map(function(e){var r=e[0],n=e[1];return[r,ri[r]||n]}))}function tO(){var t,e,r,n,i;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:eO(),sizes:ee({print:(t=Sa.print)===null||t===void 0?void 0:t.call(Sa),parser:(e=Sa.parser)===null||e===void 0?void 0:e.call(Sa),canonicalStringify:(r=Sa.canonicalStringify)===null||r===void 0?void 0:r.call(Sa),links:Ad(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:O0(this.queryManager.documentTransform)}},(i=(n=this.cache).getMemoryInternals)===null||i===void 0?void 0:i.call(n))}}function C0(){return{cache:{fragmentQueryDocuments:Hi(this.getFragmentDoc)}}}function rO(){var t=this.config.fragments;return ee(ee({},C0.apply(this)),{addTypenameDocumentTransform:O0(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Hi(this.storeReader.executeSelectionSet),executeSubSelectedArray:Hi(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Hi(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Hi(t==null?void 0:t.findFragmentSpreads),lookup:Hi(t==null?void 0:t.lookup),transform:Hi(t==null?void 0:t.transform)}})}function nO(t){return!!t&&"dirtyKey"in t}function Hi(t){return nO(t)?t.size:void 0}function T0(t){return t!=null}function O0(t){return kd(t).map(function(e){return{cache:e}})}function kd(t){return t?Cr(Cr([Hi(t==null?void 0:t.performWork)],kd(t==null?void 0:t.left),!0),kd(t==null?void 0:t.right),!0).filter(T0):[]}function Ad(t){var e;return t?Cr(Cr([(e=t==null?void 0:t.getMemoryInternals)===null||e===void 0?void 0:e.call(t)],Ad(t==null?void 0:t.left),!0),Ad(t==null?void 0:t.right),!0).filter(T0):[]}var Vi=Object.assign(function(e){return JSON.stringify(e,iO)},{reset:function(){ho=new YT(ri.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&Rd("canonicalStringify",function(){return ho.size});var ho;Vi.reset();function iO(t,e){if(e&&typeof e=="object"){var r=Object.getPrototypeOf(e);if(r===Object.prototype||r===null){var n=Object.keys(e);if(n.every(aO))return e;var i=JSON.stringify(n),a=ho.get(i);if(!a){n.sort();var o=JSON.stringify(n);a=ho.get(o)||n,ho.set(i,a),ho.set(o,a)}var u=Object.create(r);return a.forEach(function(l){u[l]=e[l]}),u}}return e}function aO(t,e,r){return e===0||r[e-1]<=t}function po(t){return{__ref:String(t)}}function Rt(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function oO(t){return Bt(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function sO(t){return t.kind==="StringValue"}function uO(t){return t.kind==="BooleanValue"}function lO(t){return t.kind==="IntValue"}function cO(t){return t.kind==="FloatValue"}function fO(t){return t.kind==="Variable"}function dO(t){return t.kind==="ObjectValue"}function hO(t){return t.kind==="ListValue"}function pO(t){return t.kind==="EnumValue"}function vO(t){return t.kind==="NullValue"}function vo(t,e,r,n){if(lO(r)||cO(r))t[e.value]=Number(r.value);else if(uO(r)||sO(r))t[e.value]=r.value;else if(dO(r)){var i={};r.fields.map(function(o){return vo(i,o.name,o.value,n)}),t[e.value]=i}else if(fO(r)){var a=(n||{})[r.name.value];t[e.value]=a}else if(hO(r))t[e.value]=r.values.map(function(o){var u={};return vo(u,e,o,n),u[e.value]});else if(pO(r))t[e.value]=r.value;else if(vO(r))t[e.value]=null;else throw Lr(96,e.value,r.kind)}function gO(t,e){var r=null;t.directives&&(r={},t.directives.forEach(function(i){r[i.name.value]={},i.arguments&&i.arguments.forEach(function(a){var o=a.name,u=a.value;return vo(r[i.name.value],o,u,e)})}));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach(function(i){var a=i.name,o=i.value;return vo(n,a,o,e)})),R0(t.name.value,n,r)}var mO=["connection","include","skip","client","rest","export","nonreactive"],Ds=Vi,R0=Object.assign(function(t,e,r){if(e&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(u){i[u]=e[u]}),"".concat(r.connection.key,"(").concat(Ds(i),")")}else return r.connection.key;var a=t;if(e){var o=Ds(e);a+="(".concat(o,")")}return r&&Object.keys(r).forEach(function(u){mO.indexOf(u)===-1&&(r[u]&&Object.keys(r[u]).length?a+="@".concat(u,"(").concat(Ds(r[u]),")"):a+="@".concat(u))}),a},{setStringify:function(t){var e=Ds;return Ds=t,e}});function bl(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach(function(n){var i=n.name,a=n.value;return vo(r,i,a,e)}),r}return null}function Si(t){return t.alias?t.alias.value:t.name.value}function Pd(t,e,r){for(var n,i=0,a=e.selections;i<a.length;i++){var o=a[i];if(Bi(o)){if(o.name.value==="__typename")return t[Si(o)]}else n?n.push(o):n=[o]}if(typeof t.__typename=="string")return t.__typename;if(n)for(var u=0,l=n;u<l.length;u++){var o=l[u],f=Pd(t,ml(o,r).selectionSet,r);if(typeof f=="string")return f}}function Bi(t){return t.kind==="Field"}function yO(t){return t.kind==="InlineFragment"}function go(t){Pe(t&&t.kind==="Document",88);var e=t.definitions.filter(function(r){return r.kind!=="FragmentDefinition"}).map(function(r){if(r.kind!=="OperationDefinition")throw Lr(89,r.kind);return r});return Pe(e.length<=1,90,e.length),t}function xa(t){return go(t),t.definitions.filter(function(e){return e.kind==="OperationDefinition"})[0]}function Fs(t){return t.definitions.filter(function(e){return e.kind==="OperationDefinition"&&!!e.name}).map(function(e){return e.name.value})[0]||null}function mo(t){return t.definitions.filter(function(e){return e.kind==="FragmentDefinition"})}function k0(t){var e=xa(t);return Pe(e&&e.operation==="query",91),e}function A0(t){Pe(t.kind==="Document",92),Pe(t.definitions.length<=1,93);var e=t.definitions[0];return Pe(e.kind==="FragmentDefinition",94),e}function yo(t){go(t);for(var e,r=0,n=t.definitions;r<n.length;r++){var i=n[r];if(i.kind==="OperationDefinition"){var a=i.operation;if(a==="query"||a==="mutation"||a==="subscription")return i}i.kind==="FragmentDefinition"&&!e&&(e=i)}if(e)return e;throw Lr(95)}function Nd(t){var e=Object.create(null),r=t&&t.variableDefinitions;return r&&r.length&&r.forEach(function(n){n.defaultValue&&vo(e,n.variable.name,n.defaultValue)}),e}let br=null;const P0={};let bO=1;const _O=()=>class{constructor(){this.id=["slot",bO++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=br;e;e=e.parent)if(this.id in e.slots){const r=e.slots[this.id];if(r===P0)break;return e!==br&&(br.slots[this.id]=r),!0}return br&&(br.slots[this.id]=P0),!1}getValue(){if(this.hasValue())return br.slots[this.id]}withValue(e,r,n,i){const a={__proto__:null,[this.id]:e},o=br;br={parent:o,slots:a};try{return r.apply(i,n)}finally{br=o}}static bind(e){const r=br;return function(){const n=br;try{return br=r,e.apply(this,arguments)}finally{br=n}}}static noContext(e,r,n){if(br){const i=br;try{return br=null,e.apply(n,r)}finally{br=i}}else return e.apply(n,r)}};function N0(t){try{return t()}catch{}}const Id="@wry/context:Slot",I0=N0(()=>globalThis)||N0(()=>global)||Object.create(null),js=I0[Id]||Array[Id]||function(t){try{Object.defineProperty(I0,Id,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(_O()),{bind:YH,noContext:KH}=js,_l=new js,{hasOwnProperty:wO}=Object.prototype,Ld=Array.from||function(t){const e=[];return t.forEach(r=>e.push(r)),e};function Md(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const $s=[],EO=100;function bo(t,e){if(!t)throw new Error(e||"assertion failure")}function L0(t,e){const r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}function M0(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function D0(t){return t.slice(0)}class wl{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++wl.count}peek(){if(this.value.length===1&&!Wi(this))return F0(this),this.value[0]}recompute(e){return bo(!this.recomputing,"already recomputing"),F0(this),Wi(this)?SO(this,e):M0(this.value)}setDirty(){this.dirty||(this.dirty=!0,j0(this),Md(this))}dispose(){this.setDirty(),H0(this),Dd(this,(e,r)=>{e.setDirty(),V0(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=$s.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Ld(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),$s.push(this.deps),this.deps=null)}}wl.count=0;function F0(t){const e=_l.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),Wi(t)?q0(e,t):U0(e,t),e}function SO(t,e){return H0(t),_l.withValue(t,xO,[t,e]),TO(t,e)&&CO(t),M0(t.value)}function xO(t,e){t.recomputing=!0;const{normalizeResult:r}=t;let n;r&&t.value.length===1&&(n=D0(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,e),r&&n&&!L0(n,t.value))try{t.value[0]=r(t.value[0],n[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function Wi(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function CO(t){t.dirty=!1,!Wi(t)&&$0(t)}function j0(t){Dd(t,q0)}function $0(t){Dd(t,U0)}function Dd(t,e){const r=t.parents.size;if(r){const n=Ld(t.parents);for(let i=0;i<r;++i)e(n[i],t)}}function q0(t,e){bo(t.childValues.has(e)),bo(Wi(e));const r=!Wi(t);if(!t.dirtyChildren)t.dirtyChildren=$s.pop()||new Set;else if(t.dirtyChildren.has(e))return;t.dirtyChildren.add(e),r&&j0(t)}function U0(t,e){bo(t.childValues.has(e)),bo(!Wi(e));const r=t.childValues.get(e);r.length===0?t.childValues.set(e,D0(e.value)):L0(r,e.value)||t.setDirty(),z0(t,e),!Wi(t)&&$0(t)}function z0(t,e){const r=t.dirtyChildren;r&&(r.delete(e),r.size===0&&($s.length<EO&&$s.push(r),t.dirtyChildren=null))}function H0(t){t.childValues.size>0&&t.childValues.forEach((e,r)=>{V0(t,r)}),t.forgetDeps(),bo(t.dirtyChildren===null)}function V0(t,e){e.parents.delete(t),t.childValues.delete(e),z0(t,e)}function TO(t,e){if(typeof t.subscribe=="function")try{Md(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const OO={setDirty:!0,dispose:!0,forget:!0};function B0(t){const e=new Map;function r(n){const i=_l.getValue();if(i){let a=e.get(n);a||e.set(n,a=new Set),i.dependOn(a)}}return r.dirty=function(i,a){const o=e.get(i);if(o){const u=a&&wO.call(OO,a)?a:"setDirty";Ld(o).forEach(l=>l[u]()),e.delete(i),Md(o)}},r}let W0;function RO(...t){return(W0||(W0=new Ei(typeof WeakMap=="function"))).lookupArray(t)}const Fd=new Set;function qs(t,{max:e=Math.pow(2,16),keyArgs:r,makeCacheKey:n=RO,normalizeResult:i,subscribe:a,cache:o=xd}=Object.create(null)){const u=typeof o=="function"?new o(e,p=>p.dispose()):o,l=function(){const p=n.apply(null,r?r.apply(null,arguments):arguments);if(p===void 0)return t.apply(null,arguments);let v=u.get(p);v||(u.set(p,v=new wl(t)),v.normalizeResult=i,v.subscribe=a,v.forget=()=>u.delete(p));const m=v.recompute(Array.prototype.slice.call(arguments));return u.set(p,v),Fd.add(u),_l.hasValue()||(Fd.forEach(y=>y.clean()),Fd.clear()),m};Object.defineProperty(l,"size",{get:()=>u.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:e,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:u});function f(p){const v=p&&u.get(p);v&&v.setDirty()}l.dirtyKey=f,l.dirty=function(){f(n.apply(null,arguments))};function d(p){const v=p&&u.get(p);if(v)return v.peek()}l.peekKey=d,l.peek=function(){return d(n.apply(null,arguments))};function h(p){return p?u.delete(p):!1}return l.forgetKey=h,l.forget=function(){return h(n.apply(null,arguments))},l.makeCacheKey=n,l.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(l)}function kO(t){return t}var G0=function(){function t(e,r){r===void 0&&(r=Object.create(null)),this.resultCache=Ed?new WeakSet:new Set,this.transform=e,r.getCacheKey&&(this.getCacheKey=r.getCacheKey),this.cached=r.cache!==!1,this.resetCache()}return t.prototype.getCacheKey=function(e){return[e]},t.identity=function(){return new t(kO,{cache:!1})},t.split=function(e,r,n){return n===void 0&&(n=t.identity()),Object.assign(new t(function(i){var a=e(i)?r:n;return a.transformDocument(i)},{cache:!1}),{left:r,right:n})},t.prototype.resetCache=function(){var e=this;if(this.cached){var r=new Ei(Ea);this.performWork=qs(t.prototype.performWork.bind(this),{makeCacheKey:function(n){var i=e.getCacheKey(n);if(i)return Pe(Array.isArray(i),77),r.lookupArray(i)},max:ri["documentTransform.cache"],cache:yl})}},t.prototype.performWork=function(e){return go(e),this.transform(e)},t.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var r=this.performWork(e);return this.resultCache.add(r),r},t.prototype.concat=function(e){var r=this;return Object.assign(new t(function(n){return e.transformDocument(r.transformDocument(n))},{cache:!1}),{left:this,right:e})},t}(),Us,Gi=Object.assign(function(t){var e=Us.get(t);return e||(e=RT(t),Us.set(t,e)),e},{reset:function(){Us=new Od(ri.print||2e3)}});Gi.reset(),globalThis.__DEV__!==!1&&Rd("print",function(){return Us?Us.size:0});var Zt=Array.isArray;function _n(t){return Array.isArray(t)&&t.length>0}var Q0={kind:Ht.FIELD,name:{kind:Ht.NAME,value:"__typename"}};function Y0(t,e){return!t||t.selectionSet.selections.every(function(r){return r.kind===Ht.FRAGMENT_SPREAD&&Y0(e[r.name.value],e)})}function AO(t){return Y0(xa(t)||A0(t),fo(mo(t)))?null:t}function PO(t){var e=new Map,r=new Map;return t.forEach(function(n){n&&(n.name?e.set(n.name,n):n.test&&r.set(n.test,n))}),function(n){var i=e.get(n.name.value);return!i&&r.size&&r.forEach(function(a,o){o(n)&&(i=a)}),i}}function K0(t){var e=new Map;return function(n){n===void 0&&(n=t);var i=e.get(n);return i||e.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function X0(t,e){go(e);for(var r=K0(""),n=K0(""),i=function(w){for(var E=0,S=void 0;E<w.length&&(S=w[E]);++E)if(!Zt(S)){if(S.kind===Ht.OPERATION_DEFINITION)return r(S.name&&S.name.value);if(S.kind===Ht.FRAGMENT_DEFINITION)return n(S.name.value)}return globalThis.__DEV__!==!1&&Pe.error(97),null},a=0,o=e.definitions.length-1;o>=0;--o)e.definitions[o].kind===Ht.OPERATION_DEFINITION&&++a;var u=PO(t),l=function(w){return _n(w)&&w.map(u).some(function(E){return E&&E.remove})},f=new Map,d=!1,h={enter:function(w){if(l(w.directives))return d=!0,null}},p=qn(e,{Field:h,InlineFragment:h,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(w,E,S,C,_){var T=i(_);T&&T.variables.add(w.name.value)}},FragmentSpread:{enter:function(w,E,S,C,_){if(l(w.directives))return d=!0,null;var T=i(_);T&&T.fragmentSpreads.add(w.name.value)}},FragmentDefinition:{enter:function(w,E,S,C){f.set(JSON.stringify(C),w)},leave:function(w,E,S,C){var _=f.get(JSON.stringify(C));if(w===_)return w;if(a>0&&w.selectionSet.selections.every(function(T){return T.kind===Ht.FIELD&&T.name.value==="__typename"}))return n(w.name.value).removed=!0,d=!0,null}},Directive:{leave:function(w){if(u(w))return d=!0,null}}});if(!d)return e;var v=function(w){return w.transitiveVars||(w.transitiveVars=new Set(w.variables),w.removed||w.fragmentSpreads.forEach(function(E){v(n(E)).transitiveVars.forEach(function(S){w.transitiveVars.add(S)})})),w},m=new Set;p.definitions.forEach(function(w){w.kind===Ht.OPERATION_DEFINITION?v(r(w.name&&w.name.value)).fragmentSpreads.forEach(function(E){m.add(E)}):w.kind===Ht.FRAGMENT_DEFINITION&&a===0&&!n(w.name.value).removed&&m.add(w.name.value)}),m.forEach(function(w){v(n(w)).fragmentSpreads.forEach(function(E){m.add(E)})});var y=function(w){return!!(!m.has(w)||n(w).removed)},b={enter:function(w){if(y(w.name.value))return null}};return AO(qn(p,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(w){if(w.variableDefinitions){var E=v(r(w.name&&w.name.value)).transitiveVars;if(E.size<w.variableDefinitions.length)return ee(ee({},w),{variableDefinitions:w.variableDefinitions.filter(function(S){return E.has(S.variable.name.value)})})}}}}))}var jd=Object.assign(function(t){return qn(t,{SelectionSet:{enter:function(e,r,n){if(!(n&&n.kind===Ht.OPERATION_DEFINITION)){var i=e.selections;if(i){var a=i.some(function(u){return Bi(u)&&(u.name.value==="__typename"||u.name.value.lastIndexOf("__",0)===0)});if(!a){var o=n;if(!(Bi(o)&&o.directives&&o.directives.some(function(u){return u.name.value==="export"})))return ee(ee({},e),{selections:Cr(Cr([],i,!0),[Q0],!1)})}}}}}})},{added:function(t){return t===Q0}});function NO(t){var e=yo(t),r=e.operation;if(r==="query")return t;var n=qn(t,{OperationDefinition:{enter:function(i){return ee(ee({},i),{operation:"query"})}}});return n}function Z0(t){go(t);var e=X0([{test:function(r){return r.name.value==="client"},remove:!0}],t);return e}function IO(t){return go(t),qn(t,{FragmentSpread:function(e){var r;if(!(!((r=e.directives)===null||r===void 0)&&r.some(function(n){return n.name.value==="unmask"})))return ee(ee({},e),{directives:Cr(Cr([],e.directives||[],!0),[{kind:Ht.DIRECTIVE,name:{kind:Ht.NAME,value:"nonreactive"}}],!1)})}})}var LO=Object.prototype.hasOwnProperty;function J0(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return El(t)}function El(t){var e=t[0]||{},r=t.length;if(r>1)for(var n=new Qi,i=1;i<r;++i)e=n.merge(e,t[i]);return e}var MO=function(t,e,r){return this.merge(t[r],e[r])},Qi=function(){function t(e){e===void 0&&(e=MO),this.reconciler=e,this.isObject=Bt,this.pastCopies=new Set}return t.prototype.merge=function(e,r){for(var n=this,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return Bt(r)&&Bt(e)?(Object.keys(r).forEach(function(o){if(LO.call(e,o)){var u=e[o];if(r[o]!==u){var l=n.reconciler.apply(n,Cr([e,r,o],i,!1));l!==u&&(e=n.shallowCopyForMerge(e),e[o]=l)}}else e=n.shallowCopyForMerge(e),e[o]=r[o]}),e):r},t.prototype.shallowCopyForMerge=function(e){return Bt(e)&&(this.pastCopies.has(e)||(Array.isArray(e)?e=e.slice(0):e=ee({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},t}();function DO(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=FO(t))||e){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
53
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FO(t,e){if(t){if(typeof t=="string")return ey(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ey(t,e)}}function ey(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ty(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $d(t,e,r){return e&&ty(t.prototype,e),r&&ty(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var qd=function(){return typeof Symbol=="function"},Ud=function(t){return qd()&&!!Symbol[t]},zd=function(t){return Ud(t)?Symbol[t]:"@@"+t};qd()&&!Ud("observable")&&(Symbol.observable=Symbol("observable"));var jO=zd("iterator"),Hd=zd("observable"),ry=zd("species");function Sl(t,e){var r=t[e];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function zs(t){var e=t.constructor;return e!==void 0&&(e=e[ry],e===null&&(e=void 0)),e!==void 0?e:kt}function $O(t){return t instanceof kt}function _o(t){_o.log?_o.log(t):setTimeout(function(){throw t})}function xl(t){Promise.resolve().then(function(){try{t()}catch(e){_o(e)}})}function ny(t){var e=t._cleanup;if(e!==void 0&&(t._cleanup=void 0,!!e))try{if(typeof e=="function")e();else{var r=Sl(e,"unsubscribe");r&&r.call(e)}}catch(n){_o(n)}}function Vd(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function qO(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var r=0;r<e.length&&(iy(t,e[r].type,e[r].value),t._state!=="closed");++r);}}function iy(t,e,r){t._state="running";var n=t._observer;try{var i=Sl(n,e);switch(e){case"next":i&&i.call(n,r);break;case"error":if(Vd(t),i)i.call(n,r);else throw r;break;case"complete":Vd(t),i&&i.call(n);break}}catch(a){_o(a)}t._state==="closed"?ny(t):t._state==="running"&&(t._state="ready")}function Bd(t,e,r){if(t._state!=="closed"){if(t._state==="buffering"){t._queue.push({type:e,value:r});return}if(t._state!=="ready"){t._state="buffering",t._queue=[{type:e,value:r}],xl(function(){return qO(t)});return}iy(t,e,r)}}var UO=function(){function t(r,n){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var i=new zO(this);try{this._cleanup=n.call(void 0,i)}catch(a){i.error(a)}this._state==="initializing"&&(this._state="ready")}var e=t.prototype;return e.unsubscribe=function(){this._state!=="closed"&&(Vd(this),ny(this))},$d(t,[{key:"closed",get:function(){return this._state==="closed"}}]),t}(),zO=function(){function t(r){this._subscription=r}var e=t.prototype;return e.next=function(n){Bd(this._subscription,"next",n)},e.error=function(n){Bd(this._subscription,"error",n)},e.complete=function(){Bd(this._subscription,"complete")},$d(t,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),t}(),kt=function(){function t(r){if(!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if(typeof r!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=r}var e=t.prototype;return e.subscribe=function(n){return(typeof n!="object"||n===null)&&(n={next:n,error:arguments[1],complete:arguments[2]}),new UO(n,this._subscriber)},e.forEach=function(n){var i=this;return new Promise(function(a,o){if(typeof n!="function"){o(new TypeError(n+" is not a function"));return}function u(){l.unsubscribe(),a()}var l=i.subscribe({next:function(f){try{n(f,u)}catch(d){o(d),l.unsubscribe()}},error:o,complete:a})})},e.map=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=zs(this);return new a(function(o){return i.subscribe({next:function(u){try{u=n(u)}catch(l){return o.error(l)}o.next(u)},error:function(u){o.error(u)},complete:function(){o.complete()}})})},e.filter=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=zs(this);return new a(function(o){return i.subscribe({next:function(u){try{if(!n(u))return}catch(l){return o.error(l)}o.next(u)},error:function(u){o.error(u)},complete:function(){o.complete()}})})},e.reduce=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=zs(this),o=arguments.length>1,u=!1,l=arguments[1],f=l;return new a(function(d){return i.subscribe({next:function(h){var p=!u;if(u=!0,!p||o)try{f=n(f,h)}catch(v){return d.error(v)}else f=h},error:function(h){d.error(h)},complete:function(){if(!u&&!o)return d.error(new TypeError("Cannot reduce an empty sequence"));d.next(f),d.complete()}})})},e.concat=function(){for(var n=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var u=zs(this);return new u(function(l){var f,d=0;function h(p){f=p.subscribe({next:function(v){l.next(v)},error:function(v){l.error(v)},complete:function(){d===a.length?(f=void 0,l.complete()):h(u.from(a[d++]))}})}return h(n),function(){f&&(f.unsubscribe(),f=void 0)}})},e.flatMap=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=zs(this);return new a(function(o){var u=[],l=i.subscribe({next:function(d){if(n)try{d=n(d)}catch(p){return o.error(p)}var h=a.from(d).subscribe({next:function(p){o.next(p)},error:function(p){o.error(p)},complete:function(){var p=u.indexOf(h);p>=0&&u.splice(p,1),f()}});u.push(h)},error:function(d){o.error(d)},complete:function(){f()}});function f(){l.closed&&u.length===0&&o.complete()}return function(){u.forEach(function(d){return d.unsubscribe()}),l.unsubscribe()}})},e[Hd]=function(){return this},t.from=function(n){var i=typeof this=="function"?this:t;if(n==null)throw new TypeError(n+" is not an object");var a=Sl(n,Hd);if(a){var o=a.call(n);if(Object(o)!==o)throw new TypeError(o+" is not an object");return $O(o)&&o.constructor===i?o:new i(function(u){return o.subscribe(u)})}if(Ud("iterator")&&(a=Sl(n,jO),a))return new i(function(u){xl(function(){if(!u.closed){for(var l=DO(a.call(n)),f;!(f=l()).done;){var d=f.value;if(u.next(d),u.closed)return}u.complete()}})});if(Array.isArray(n))return new i(function(u){xl(function(){if(!u.closed){for(var l=0;l<n.length;++l)if(u.next(n[l]),u.closed)return;u.complete()}})});throw new TypeError(n+" is not observable")},t.of=function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=typeof this=="function"?this:t;return new o(function(u){xl(function(){if(!u.closed){for(var l=0;l<i.length;++l)if(u.next(i[l]),u.closed)return;u.complete()}})})},$d(t,null,[{key:ry,get:function(){return this}}]),t}();qd()&&Object.defineProperty(kt,Symbol("extensions"),{value:{symbol:Hd,hostReportError:_o},configurable:!0});function HO(t){var e,r=t.Symbol;if(typeof r=="function")if(r.observable)e=r.observable;else{typeof r.for=="function"?e=r.for("https://github.com/benlesh/symbol-observable"):e=r("https://github.com/benlesh/symbol-observable");try{r.observable=e}catch{}}else e="@@observable";return e}var wo;typeof self<"u"?wo=self:typeof window<"u"?wo=window:typeof global<"u"?wo=global:typeof module<"u"?wo=module:wo=Function("return this")(),HO(wo);var ay=kt.prototype,oy="@@observable";ay[oy]||(ay[oy]=function(){return this});function VO(t){return t.catch(function(){}),t}var BO=Object.prototype.toString;function sy(t){return Wd(t)}function Wd(t,e){switch(BO.call(t)){case"[object Array]":{if(e=e||new Map,e.has(t))return e.get(t);var r=t.slice(0);return e.set(t,r),r.forEach(function(i,a){r[a]=Wd(i,e)}),r}case"[object Object]":{if(e=e||new Map,e.has(t))return e.get(t);var n=Object.create(Object.getPrototypeOf(t));return e.set(t,n),Object.keys(t).forEach(function(i){n[i]=Wd(t[i],e)}),n}default:return t}}function WO(t){var e=new Set([t]);return e.forEach(function(r){Bt(r)&&GO(r)===r&&Object.getOwnPropertyNames(r).forEach(function(n){Bt(r[n])&&e.add(r[n])})}),t}function GO(t){if(globalThis.__DEV__!==!1&&!Object.isFrozen(t))try{Object.freeze(t)}catch(e){if(e instanceof TypeError)return null;throw e}return t}function Eo(t){return globalThis.__DEV__!==!1&&WO(t),t}function Hs(t,e,r){var n=[];t.forEach(function(i){return i[e]&&n.push(i)}),n.forEach(function(i){return i[e](r)})}function Gd(t,e,r){return new kt(function(n){var i={then:function(l){return new Promise(function(f){return f(l())})}};function a(l,f){return function(d){if(l){var h=function(){return n.closed?0:l(d)};i=i.then(h,h).then(function(p){return n.next(p)},function(p){return n.error(p)})}else n[f](d)}}var o={next:a(e,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},u=t.subscribe(o);return function(){return u.unsubscribe()}})}function uy(t){function e(r){Object.defineProperty(t,r,{value:kt})}return Sd&&Symbol.species&&e(Symbol.species),e("@@species"),t}function ly(t){return t&&typeof t.then=="function"}var So=function(t){yn(e,t);function e(r){var n=t.call(this,function(i){return n.addObserver(i),function(){return n.removeObserver(i)}})||this;return n.observers=new Set,n.promise=new Promise(function(i,a){n.resolve=i,n.reject=a}),n.handlers={next:function(i){n.sub!==null&&(n.latest=["next",i],n.notify("next",i),Hs(n.observers,"next",i))},error:function(i){var a=n.sub;a!==null&&(a&&setTimeout(function(){return a.unsubscribe()}),n.sub=null,n.latest=["error",i],n.reject(i),n.notify("error",i),Hs(n.observers,"error",i))},complete:function(){var i=n,a=i.sub,o=i.sources,u=o===void 0?[]:o;if(a!==null){var l=u.shift();l?ly(l)?l.then(function(f){return n.sub=f.subscribe(n.handlers)},n.handlers.error):n.sub=l.subscribe(n.handlers):(a&&setTimeout(function(){return a.unsubscribe()}),n.sub=null,n.latest&&n.latest[0]==="next"?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),Hs(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(i){n.reject(i),n.sources=[],n.handlers.error(i)},n.promise.catch(function(i){}),typeof r=="function"&&(r=[new kt(r)]),ly(r)?r.then(function(i){return n.start(i)},n.handlers.error):n.start(r),n}return e.prototype.start=function(r){this.sub===void 0&&(this.sources=Array.from(r),this.handlers.complete())},e.prototype.deliverLastMessage=function(r){if(this.latest){var n=this.latest[0],i=r[n];i&&i.call(r,this.latest[1]),this.sub===null&&n==="next"&&r.complete&&r.complete()}},e.prototype.addObserver=function(r){this.observers.has(r)||(this.deliverLastMessage(r),this.observers.add(r))},e.prototype.removeObserver=function(r){this.observers.delete(r)&&this.observers.size<1&&this.handlers.complete()},e.prototype.notify=function(r,n){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(a){return a(r,n)}))},e.prototype.beforeNext=function(r){var n=!1;this.nextResultListeners.add(function(i,a){n||(n=!0,r(i,a))})},e}(kt);uy(So);function xo(t){return"incremental"in t}function QO(t){return"hasNext"in t&&"data"in t}function YO(t){return xo(t)||QO(t)}function KO(t){return Bt(t)&&"payload"in t}function cy(t,e){var r=t,n=new Qi;return xo(e)&&_n(e.incremental)&&e.incremental.forEach(function(i){for(var a=i.data,o=i.path,u=o.length-1;u>=0;--u){var l=o[u],f=!isNaN(+l),d=f?[]:{};d[l]=a,a=d}r=n.merge(r,a)}),r}function Cl(t){var e=Qd(t);return _n(e)}function Qd(t){var e=_n(t.errors)?t.errors.slice(0):[];return xo(t)&&_n(t.incremental)&&t.incremental.forEach(function(r){r.errors&&e.push.apply(e,r.errors)}),e}function Ca(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object.create(null);return t.forEach(function(n){n&&Object.keys(n).forEach(function(i){var a=n[i];a!==void 0&&(r[i]=a)})}),r}function Ta(t,e){return Ca(t,e,e.variables&&{variables:Ca(ee(ee({},t&&t.variables),e.variables))})}function Yd(t){return new kt(function(e){e.error(t)})}var fy=function(t,e,r){var n=new Error(r);throw n.name="ServerError",n.response=t,n.statusCode=t.status,n.result=e,n};function XO(t){for(var e=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];if(e.indexOf(i)<0)throw Lr(46,i)}return t}function ZO(t,e){var r=ee({},t),n=function(a){typeof a=="function"?r=ee(ee({},r),a(r)):r=ee(ee({},r),a)},i=function(){return ee({},r)};return Object.defineProperty(e,"setContext",{enumerable:!1,value:n}),Object.defineProperty(e,"getContext",{enumerable:!1,value:i}),e}function JO(t){var e={variables:t.variables||{},extensions:t.extensions||{},operationName:t.operationName,query:t.query};return e.operationName||(e.operationName=typeof e.query!="string"?Fs(e.query)||void 0:""),e}function e4(t,e){var r=ee({},t),n=new Set(Object.keys(t));return qn(e,{Variable:function(i,a,o){o&&o.kind!=="VariableDefinition"&&n.delete(i.name.value)}}),n.forEach(function(i){delete r[i]}),r}function dy(t,e){return e?e(t):kt.of()}function Vs(t){return typeof t=="function"?new zn(t):t}function Tl(t){return t.request.length<=1}var zn=function(){function t(e){e&&(this.request=e)}return t.empty=function(){return new t(function(){return kt.of()})},t.from=function(e){return e.length===0?t.empty():e.map(Vs).reduce(function(r,n){return r.concat(n)})},t.split=function(e,r,n){var i=Vs(r),a=Vs(n||new t(dy)),o;return Tl(i)&&Tl(a)?o=new t(function(u){return e(u)?i.request(u)||kt.of():a.request(u)||kt.of()}):o=new t(function(u,l){return e(u)?i.request(u,l)||kt.of():a.request(u,l)||kt.of()}),Object.assign(o,{left:i,right:a})},t.execute=function(e,r){return e.request(ZO(r.context,JO(XO(r))))||kt.of()},t.concat=function(e,r){var n=Vs(e);if(Tl(n))return globalThis.__DEV__!==!1&&Pe.warn(38,n),n;var i=Vs(r),a;return Tl(i)?a=new t(function(o){return n.request(o,function(u){return i.request(u)||kt.of()})||kt.of()}):a=new t(function(o,u){return n.request(o,function(l){return i.request(l,u)||kt.of()})||kt.of()}),Object.assign(a,{left:n,right:i})},t.prototype.split=function(e,r,n){return this.concat(t.split(e,r,n||new t(dy)))},t.prototype.concat=function(e){return t.concat(this,e)},t.prototype.request=function(e,r){throw Lr(39)},t.prototype.onError=function(e,r){if(r&&r.error)return r.error(e),!1;throw e},t.prototype.setOnError=function(e){return this.onError=e,this},t}(),t4=zn.from,r4=zn.split,Kd=zn.execute;function n4(t){var e,r=t[Symbol.asyncIterator]();return e={next:function(){return r.next()}},e[Symbol.asyncIterator]=function(){return this},e}function i4(t){var e=null,r=null,n=!1,i=[],a=[];function o(h){if(!r){if(a.length){var p=a.shift();if(Array.isArray(p)&&p[0])return p[0]({value:h,done:!1})}i.push(h)}}function u(h){r=h;var p=a.slice();p.forEach(function(v){v[1](h)}),!e||e()}function l(){n=!0;var h=a.slice();h.forEach(function(p){p[0]({value:void 0,done:!0})}),!e||e()}e=function(){e=null,t.removeListener("data",o),t.removeListener("error",u),t.removeListener("end",l),t.removeListener("finish",l),t.removeListener("close",l)},t.on("data",o),t.on("error",u),t.on("end",l),t.on("finish",l),t.on("close",l);function f(){return new Promise(function(h,p){if(r)return p(r);if(i.length)return h({value:i.shift(),done:!1});if(n)return h({value:void 0,done:!0});a.push([h,p])})}var d={next:function(){return f()}};return gl&&(d[Symbol.asyncIterator]=function(){return this}),d}function a4(t){var e=!1,r={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise(function(n,i){t.then(function(a){n({value:a,done:!1})}).catch(i)}))}};return gl&&(r[Symbol.asyncIterator]=function(){return this}),r}function hy(t){var e={next:function(){return t.read()}};return gl&&(e[Symbol.asyncIterator]=function(){return this}),e}function o4(t){return!!t.body}function s4(t){return!!t.getReader}function u4(t){return!!(gl&&t[Symbol.asyncIterator])}function l4(t){return!!t.stream}function c4(t){return!!t.arrayBuffer}function f4(t){return!!t.pipe}function d4(t){var e=t;if(o4(t)&&(e=t.body),u4(e))return n4(e);if(s4(e))return hy(e.getReader());if(l4(e))return hy(e.stream().getReader());if(c4(e))return a4(e.arrayBuffer());if(f4(e))return i4(e);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Ol=Symbol();function py(t){return t.extensions?Array.isArray(t.extensions[Ol]):!1}function vy(t){return t.hasOwnProperty("graphQLErrors")}var h4=function(t){var e=Cr(Cr(Cr([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&e.push(t.networkError),e.map(function(r){return Bt(r)&&r.message||"Error message not found."}).join(`
|
|
54
|
+
`)},tn=function(t){yn(e,t);function e(r){var n=r.graphQLErrors,i=r.protocolErrors,a=r.clientErrors,o=r.networkError,u=r.errorMessage,l=r.extraInfo,f=t.call(this,u)||this;return f.name="ApolloError",f.graphQLErrors=n||[],f.protocolErrors=i||[],f.clientErrors=a||[],f.networkError=o||null,f.message=u||h4(f),f.extraInfo=l,f.cause=Cr(Cr(Cr([o],n||[],!0),i||[],!0),a||[],!0).find(function(d){return!!d})||null,f.__proto__=e.prototype,f}return e}(Error),gy=Object.prototype.hasOwnProperty;function p4(t,e){return Ui(this,void 0,void 0,function(){var r,n,i,a,o,u,l,f,d,h,p,v,m,y,b,w,E,S,C,_,T,O,k,P;return zi(this,function(N){switch(N.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=(P=t.headers)===null||P===void 0?void 0:P.get("content-type"),i="boundary=",a=n!=null&&n.includes(i)?n==null?void 0:n.substring((n==null?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",o=`\r
|
|
55
|
+
--`.concat(a),u="",l=d4(t),f=!0,N.label=1;case 1:return f?[4,l.next()]:[3,3];case 2:for(d=N.sent(),h=d.value,p=d.done,v=typeof h=="string"?h:r.decode(h),m=u.length-o.length+1,f=!p,u+=v,y=u.indexOf(o,m);y>-1;){if(b=void 0,O=[u.slice(0,y),u.slice(y+o.length)],b=O[0],u=O[1],w=b.indexOf(`\r
|
|
56
|
+
\r
|
|
57
|
+
`),E=v4(b.slice(0,w)),S=E["content-type"],S&&S.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(C=b.slice(w),C){if(_=my(t,C),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)if(KO(_)){if(T={},"payload"in _){if(Object.keys(_).length===1&&_.payload===null)return[2];T=ee({},_.payload)}"errors"in _&&(T=ee(ee({},T),{extensions:ee(ee({},"extensions"in T?T.extensions:null),(k={},k[Ol]=_.errors,k))})),e(T)}else e(_);else if(Object.keys(_).length===1&&"hasNext"in _&&!_.hasNext)return[2]}y=u.indexOf(o)}return[3,1];case 3:return[2]}})})}function v4(t){var e={};return t.split(`
|
|
58
|
+
`).forEach(function(r){var n=r.indexOf(":");if(n>-1){var i=r.slice(0,n).trim().toLowerCase(),a=r.slice(n+1).trim();e[i]=a}}),e}function my(t,e){if(t.status>=300){var r=function(){try{return JSON.parse(e)}catch{return e}};fy(t,r(),"Response not successful: Received status code ".concat(t.status))}try{return JSON.parse(e)}catch(i){var n=i;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}function g4(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function m4(t){return function(e){return e.text().then(function(r){return my(e,r)}).then(function(r){return!Array.isArray(r)&&!gy.call(r,"data")&&!gy.call(r,"errors")&&fy(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(n){return n.operationName}):t.operationName,"'.")),r})}}var Xd=function(t,e){var r;try{r=JSON.stringify(t)}catch(i){var n=Lr(42,e,i.message);throw n.parseError=i,n}return r},y4={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},b4={accept:"*/*","content-type":"application/json"},_4={method:"POST"},w4={http:y4,headers:b4,options:_4},E4=function(t,e){return e(t)};function S4(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},a={};r.forEach(function(h){i=ee(ee(ee({},i),h.options),{headers:ee(ee({},i.headers),h.headers)}),h.credentials&&(i.credentials=h.credentials),a=ee(ee({},a),h.http)}),i.headers&&(i.headers=x4(i.headers,a.preserveHeaderCase));var o=t.operationName,u=t.extensions,l=t.variables,f=t.query,d={operationName:o,variables:l};return a.includeExtensions&&(d.extensions=u),a.includeQuery&&(d.query=e(f,Gi)),{options:i,body:d}}function x4(t,e){if(!e){var r={};return Object.keys(Object(t)).forEach(function(a){r[a.toLowerCase()]=t[a]}),r}var n={};Object.keys(Object(t)).forEach(function(a){n[a.toLowerCase()]={originalName:a,value:t[a]}});var i={};return Object.keys(n).forEach(function(a){i[n[a].originalName]=n[a].value}),i}var C4=function(t){if(!t&&typeof fetch>"u")throw Lr(40)},T4=function(t,e){var r=t.getContext(),n=r.uri;return n||(typeof e=="function"?e(t):e||"/graphql")};function O4(t,e){var r=[],n=function(h,p){r.push("".concat(h,"=").concat(encodeURIComponent(p)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var i=void 0;try{i=Xd(e.variables,"Variables map")}catch(h){return{parseError:h}}n("variables",i)}if(e.extensions){var a=void 0;try{a=Xd(e.extensions,"Extensions map")}catch(h){return{parseError:h}}n("extensions",a)}var o="",u=t,l=t.indexOf("#");l!==-1&&(o=t.substr(l),u=t.substr(0,l));var f=u.indexOf("?")===-1?"?":"&",d=u+f+r.join("&")+o;return{newURI:d}}var yy=$n(function(){return fetch}),by=function(t){t===void 0&&(t={});var e=t.uri,r=e===void 0?"/graphql":e,n=t.fetch,i=t.print,a=i===void 0?E4:i,o=t.includeExtensions,u=t.preserveHeaderCase,l=t.useGETForQueries,f=t.includeUnusedVariables,d=f===void 0?!1:f,h=bn(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&C4(n||yy);var p={http:{includeExtensions:o,preserveHeaderCase:u},options:h.fetchOptions,credentials:h.credentials,headers:h.headers};return new zn(function(v){var m=T4(v,r),y=v.getContext(),b={};if(y.clientAwareness){var w=y.clientAwareness,E=w.name,S=w.version;E&&(b["apollographql-client-name"]=E),S&&(b["apollographql-client-version"]=S)}var C=ee(ee({},b),y.headers),_={http:y.http,options:y.fetchOptions,credentials:y.credentials,headers:C};if(Ms(["client"],v.query)){var T=Z0(v.query);if(!T)return Yd(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));v.query=T}var O=S4(v,a,w4,p,_),k=O.options,P=O.body;P.variables&&!d&&(P.variables=e4(P.variables,v.query));var N;!k.signal&&typeof AbortController<"u"&&(N=new AbortController,k.signal=N.signal);var M=function(K){return K.kind==="OperationDefinition"&&K.operation==="mutation"},z=function(K){return K.kind==="OperationDefinition"&&K.operation==="subscription"},H=z(yo(v.query)),L=Ms(["defer"],v.query);if(l&&!v.query.definitions.some(M)&&(k.method="GET"),L||H){k.headers=k.headers||{};var F="multipart/mixed;";H&&L&&globalThis.__DEV__!==!1&&Pe.warn(41),H?F+="boundary=graphql;subscriptionSpec=1.0,application/json":L&&(F+="deferSpec=20220824,application/json"),k.headers.accept=F}if(k.method==="GET"){var U=O4(m,P),Y=U.newURI,V=U.parseError;if(V)return Yd(V);m=Y}else try{k.body=Xd(P,"Payload")}catch(K){return Yd(K)}return new kt(function(K){var $=n||$n(function(){return fetch})||yy,Q=K.next.bind(K);return $(m,k).then(function(ae){var ie;v.setContext({response:ae});var te=(ie=ae.headers)===null||ie===void 0?void 0:ie.get("content-type");return te!==null&&/^multipart\/mixed/i.test(te)?p4(ae,Q):m4(v)(ae).then(Q)}).then(function(){N=void 0,K.complete()}).catch(function(ae){N=void 0,g4(ae,K)}),function(){N&&N.abort()}})})},R4=function(t){yn(e,t);function e(r){r===void 0&&(r={});var n=t.call(this,by(r).request)||this;return n.options=r,n}return e}(zn);const{toString:_y,hasOwnProperty:k4}=Object.prototype,wy=Function.prototype.toString,Zd=new Map;function Et(t,e){try{return Jd(t,e)}finally{Zd.clear()}}function Jd(t,e){if(t===e)return!0;const r=_y.call(t),n=_y.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(Sy(t,e))return!0;const i=Ey(t),a=Ey(e),o=i.length;if(o!==a.length)return!1;for(let u=0;u<o;++u)if(!k4.call(e,i[u]))return!1;for(let u=0;u<o;++u){const l=i[u];if(!Jd(t[l],e[l]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(Sy(t,e))return!0;const i=t.entries(),a=r==="[object Map]";for(;;){const o=i.next();if(o.done)break;const[u,l]=o.value;if(!e.has(u)||a&&!Jd(l,e.get(u)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let i=t.byteLength;if(i===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=wy.call(t);return i!==wy.call(e)?!1:!N4(i,P4)}}return!1}function Ey(t){return Object.keys(t).filter(A4,t)}function A4(t){return this[t]!==void 0}const P4="{ [native code] }";function N4(t,e){const r=t.length-e.length;return r>=0&&t.indexOf(e,r)===r}function Sy(t,e){let r=Zd.get(t);if(r){if(r.has(e))return!0}else Zd.set(t,r=new Set);return r.add(e),!1}function xy(t,e,r,n){var i=e.data,a=bn(e,["data"]),o=r.data,u=bn(r,["data"]);return Et(a,u)&&Rl(yo(t).selectionSet,i,o,{fragmentMap:fo(mo(t)),variables:n})}function Rl(t,e,r,n){if(e===r)return!0;var i=new Set;return t.selections.every(function(a){if(i.has(a)||(i.add(a),!Ls(a,n.variables))||Cy(a))return!0;if(Bi(a)){var o=Si(a),u=e&&e[o],l=r&&r[o],f=a.selectionSet;if(!f)return Et(u,l);var d=Array.isArray(u),h=Array.isArray(l);if(d!==h)return!1;if(d&&h){var p=u.length;if(l.length!==p)return!1;for(var v=0;v<p;++v)if(!Rl(f,u[v],l[v],n))return!1;return!0}return Rl(f,u,l,n)}else{var m=ml(a,n.fragmentMap);if(m)return Cy(m)?!0:Rl(m.selectionSet,e,r,n)}})}function Cy(t){return!!t.directives&&t.directives.some(I4)}function I4(t){return t.name.value==="nonreactive"}var Ty=Ea?WeakMap:Map,Oy=Ed?WeakSet:Set,eh=new js,Ry=!1;function ky(){Ry||(Ry=!0,globalThis.__DEV__!==!1&&Pe.warn(52))}function Ay(t,e,r){return eh.withValue(!0,function(){var n=Bs(t,e,r,!1);return Object.isFrozen(t)&&Eo(n),n})}function L4(t,e){if(e.has(t))return e.get(t);var r=Array.isArray(t)?[]:Object.create(null);return e.set(t,r),r}function Bs(t,e,r,n,i){var a,o=r.knownChanged,u=L4(t,r.mutableTargets);if(Array.isArray(t)){for(var l=0,f=Array.from(t.entries());l<f.length;l++){var d=f[l],h=d[0],p=d[1];if(p===null){u[h]=null;continue}var v=Bs(p,e,r,n,globalThis.__DEV__!==!1?"".concat(i||"","[").concat(h,"]"):void 0);o.has(v)&&o.add(u),u[h]=v}return o.has(u)?u:t}for(var m=0,y=e.selections;m<y.length;m++){var b=y[m],w=void 0;if(n&&o.add(u),b.kind===Ht.FIELD){var E=Si(b),S=b.selectionSet;if(w=u[E]||t[E],w===void 0)continue;if(S&&w!==null){var v=Bs(t[E],S,r,n,globalThis.__DEV__!==!1?"".concat(i||"",".").concat(E):void 0);o.has(v)&&(w=v)}globalThis.__DEV__===!1&&(u[E]=w),globalThis.__DEV__!==!1&&(n&&E!=="__typename"&&!(!((a=Object.getOwnPropertyDescriptor(u,E))===null||a===void 0)&&a.value)?Object.defineProperty(u,E,M4(E,w,i||"",r.operationName,r.operationType)):(delete u[E],u[E]=w))}if(b.kind===Ht.INLINE_FRAGMENT&&(!b.typeCondition||r.cache.fragmentMatches(b,t.__typename))&&(w=Bs(t,b.selectionSet,r,n,i)),b.kind===Ht.FRAGMENT_SPREAD){var C=b.name.value,_=r.fragmentMap[C]||(r.fragmentMap[C]=r.cache.lookupFragment(C));Pe(_,47,C);var T=LT(b);T!=="mask"&&(w=Bs(t,_.selectionSet,r,T==="migrate",i))}o.has(w)&&o.add(u)}return"__typename"in t&&!("__typename"in u)&&(u.__typename=t.__typename),Object.keys(u).length!==Object.keys(t).length&&o.add(u),o.has(u)?u:t}function M4(t,e,r,n,i){var a=function(){return eh.getValue()||(globalThis.__DEV__!==!1&&Pe.warn(48,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(t).replace(/^\./,"")),a=function(){return e}),e};return{get:function(){return a()},set:function(o){a=function(){return o}},enumerable:!0,configurable:!0}}function Py(t,e,r,n){if(!r.fragmentMatches)return globalThis.__DEV__!==!1&&ky(),t;var i=e.definitions.filter(function(o){return o.kind===Ht.FRAGMENT_DEFINITION});typeof n>"u"&&(Pe(i.length===1,49,i.length),n=i[0].name.value);var a=i.find(function(o){return o.name.value===n});return Pe(!!a,50,n),t==null||Et(t,{})?t:Ay(t,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:fo(mo(e)),cache:r,mutableTargets:new Ty,knownChanged:new Oy})}function D4(t,e,r){var n;if(!r.fragmentMatches)return globalThis.__DEV__!==!1&&ky(),t;var i=xa(e);return Pe(i,51),t==null?t:Ay(t,i.selectionSet,{operationType:i.operation,operationName:(n=i.name)===null||n===void 0?void 0:n.value,fragmentMap:fo(mo(e)),cache:r,mutableTargets:new Ty,knownChanged:new Oy})}var Ny=function(){function t(){this.assumeImmutableResults=!1,this.getFragmentDoc=qs(UT,{max:ri["cache.fragmentQueryDocuments"]||1e3,cache:yl})}return t.prototype.lookupFragment=function(e){return null},t.prototype.batch=function(e){var r=this,n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=e.update(r)},n),i},t.prototype.recordOptimisticTransaction=function(e,r){this.performTransaction(e,r)},t.prototype.transformDocument=function(e){return e},t.prototype.transformForLink=function(e){return e},t.prototype.identify=function(e){},t.prototype.gc=function(){return[]},t.prototype.modify=function(e){return!1},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(ee(ee({},e),{rootId:e.id||"ROOT_QUERY",optimistic:r}))},t.prototype.watchFragment=function(e){var r=this,n=e.fragment,i=e.fragmentName,a=e.from,o=e.optimistic,u=o===void 0?!0:o,l=bn(e,["fragment","fragmentName","from","optimistic"]),f=this.getFragmentDoc(n,i),d=typeof a>"u"||typeof a=="string"?a:this.identify(a),h=!!e[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var p=i||A0(n).name.value;d||globalThis.__DEV__!==!1&&Pe.warn(1,p)}var v=ee(ee({},l),{returnPartialData:!0,id:d,query:f,optimistic:u}),m;return new kt(function(y){return r.watch(ee(ee({},v),{immediate:!0,callback:function(b){var w=h?Py(b.result,n,r,i):b.result;if(!(m&&xy(f,{data:m.result},{data:w},e.variables))){var E={data:w,complete:!!b.complete};b.missing&&(E.missing=El(b.missing.map(function(S){return S.missing}))),m=ee(ee({},b),{result:w}),y.next(E)}}}))})},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(ee(ee({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:r}))},t.prototype.writeQuery=function(e){var r=e.id,n=e.data,i=bn(e,["id","data"]);return this.write(Object.assign(i,{dataId:r||"ROOT_QUERY",result:n}))},t.prototype.writeFragment=function(e){var r=e.id,n=e.data,i=e.fragment,a=e.fragmentName,o=bn(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:r,result:n}))},t.prototype.updateQuery=function(e,r){return this.batch({update:function(n){var i=n.readQuery(e),a=r(i);return a==null?i:(n.writeQuery(ee(ee({},e),{data:a})),a)}})},t.prototype.updateFragment=function(e,r){return this.batch({update:function(n){var i=n.readFragment(e),a=r(i);return a==null?i:(n.writeFragment(ee(ee({},e),{data:a})),a)}})},t}();globalThis.__DEV__!==!1&&(Ny.prototype.getMemoryInternals=JT);var Iy=function(t){yn(e,t);function e(r,n,i,a){var o,u=t.call(this,r)||this;if(u.message=r,u.path=n,u.query=i,u.variables=a,Array.isArray(u.path)){u.missing=u.message;for(var l=u.path.length-1;l>=0;--l)u.missing=(o={},o[u.path[l]]=u.missing,o)}else u.missing=u.path;return u.__proto__=e.prototype,u}return e}(Error),dr=Object.prototype.hasOwnProperty;function Ws(t){return t==null}function Ly(t,e){var r=t.__typename,n=t.id,i=t._id;if(typeof r=="string"&&(e&&(e.keyObject=Ws(n)?Ws(i)?void 0:{_id:i}:{id:n}),Ws(n)&&!Ws(i)&&(n=i),!Ws(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var My={dataIdFromObject:Ly,addTypename:!0,resultCaching:!0,canonizeResults:!1};function F4(t){return Ca(My,t)}function Dy(t){var e=t.canonizeResults;return e===void 0?My.canonizeResults:e}function j4(t,e){return Rt(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var Fy=/^[_a-z][_0-9a-z]*/i;function Yi(t){var e=t.match(Fy);return e?e[0]:t}function th(t,e,r){return Bt(e)?Zt(e)?e.every(function(n){return th(t,n,r)}):t.selections.every(function(n){if(Bi(n)&&Ls(n,r)){var i=Si(n);return dr.call(e,i)&&(!n.selectionSet||th(n.selectionSet,e[i],r))}return!0}):!1}function Co(t){return Bt(t)&&!Rt(t)&&!Zt(t)}function $4(){return new Qi}function jy(t,e){var r=fo(mo(t));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&e&&(i=e.lookup(n)),i||null}}}var kl=Object.create(null),rh=function(){return kl},$y=Object.create(null),Gs=function(){function t(e,r){var n=this;this.policies=e,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,a){return Eo(Rt(i)?n.get(i.__ref,a):i&&i[a])},this.canRead=function(i){return Rt(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,a){if(typeof i=="string")return po(i);if(Rt(i))return i;var o=n.policies.identify(i)[0];if(o){var u=po(o);return a&&n.merge(o,i),u}}}return t.prototype.toObject=function(){return ee({},this.data)},t.prototype.has=function(e){return this.lookup(e,!0)!==void 0},t.prototype.get=function(e,r){if(this.group.depend(e,r),dr.call(this.data,e)){var n=this.data[e];if(n&&dr.call(n,r))return n[r]}if(r==="__typename"&&dr.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof Ki)return this.parent.get(e,r)},t.prototype.lookup=function(e,r){if(r&&this.group.depend(e,"__exists"),dr.call(this.data,e))return this.data[e];if(this instanceof Ki)return this.parent.lookup(e,r);if(this.policies.rootTypenamesById[e])return Object.create(null)},t.prototype.merge=function(e,r){var n=this,i;Rt(e)&&(e=e.__ref),Rt(r)&&(r=r.__ref);var a=typeof e=="string"?this.lookup(i=e):e,o=typeof r=="string"?this.lookup(i=r):r;if(o){Pe(typeof i=="string",2);var u=new Qi(U4).merge(a,o);if(this.data[i]=u,u!==a&&(delete this.refs[i],this.group.caching)){var l=Object.create(null);a||(l.__exists=1),Object.keys(o).forEach(function(f){if(!a||a[f]!==u[f]){l[f]=1;var d=Yi(f);d!==f&&!n.policies.hasKeyArgs(u.__typename,d)&&(l[d]=1),u[f]===void 0&&!(n instanceof Ki)&&delete u[f]}}),l.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[i]===u.__typename&&delete l.__typename,Object.keys(l).forEach(function(f){return n.group.dirty(i,f)})}}},t.prototype.modify=function(e,r){var n=this,i=this.lookup(e);if(i){var a=Object.create(null),o=!1,u=!0,l={DELETE:kl,INVALIDATE:$y,isReference:Rt,toReference:this.toReference,canRead:this.canRead,readField:function(f,d){return n.policies.readField(typeof f=="string"?{fieldName:f,from:d||po(e)}:f,{store:n})}};if(Object.keys(i).forEach(function(f){var d=Yi(f),h=i[f];if(h!==void 0){var p=typeof r=="function"?r:r[f]||r[d];if(p){var v=p===rh?kl:p(Eo(h),ee(ee({},l),{fieldName:d,storeFieldName:f,storage:n.getStorage(e,f)}));if(v===$y)n.group.dirty(e,f);else if(v===kl&&(v=void 0),v!==h&&(a[f]=v,o=!0,h=v,globalThis.__DEV__!==!1)){var m=function(_){if(n.lookup(_.__ref)===void 0)return globalThis.__DEV__!==!1&&Pe.warn(3,_),!0};if(Rt(v))m(v);else if(Array.isArray(v))for(var y=!1,b=void 0,w=0,E=v;w<E.length;w++){var S=E[w];if(Rt(S)){if(y=!0,m(S))break}else if(typeof S=="object"&&S){var C=n.policies.identify(S)[0];C&&(b=S)}if(y&&b!==void 0){globalThis.__DEV__!==!1&&Pe.warn(4,b);break}}}}h!==void 0&&(u=!1)}}),o)return this.merge(e,a),u&&(this instanceof Ki?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},t.prototype.delete=function(e,r,n){var i,a=this.lookup(e);if(a){var o=this.getFieldValue(a,"__typename"),u=r&&n?this.policies.getStoreFieldName({typename:o,fieldName:r,args:n}):r;return this.modify(e,u?(i={},i[u]=rh,i):rh)}return!1},t.prototype.evict=function(e,r){var n=!1;return e.id&&(dr.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Ki&&this!==r&&(n=this.parent.evict(e,r)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var e=this,r=this.toObject(),n=[];return this.getRootIdSet().forEach(function(i){dr.call(e.policies.rootTypenamesById,i)||n.push(i)}),n.length&&(r.__META={extraRootIds:n.sort()}),r},t.prototype.replace=function(e){var r=this;if(Object.keys(this.data).forEach(function(a){e&&dr.call(e,a)||r.delete(a)}),e){var n=e.__META,i=bn(e,["__META"]);Object.keys(i).forEach(function(a){r.merge(a,i[a])}),n&&n.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},t.prototype.release=function(e){if(this.rootIds[e]>0){var r=--this.rootIds[e];return r||delete this.rootIds[e],r}return 0},t.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Ki?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},t.prototype.gc=function(){var e=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(o){dr.call(n,o)&&(Object.keys(e.findChildRefIds(o)).forEach(r.add,r),delete n[o])});var i=Object.keys(n);if(i.length){for(var a=this;a instanceof Ki;)a=a.parent;i.forEach(function(o){return a.delete(o)})}return i},t.prototype.findChildRefIds=function(e){if(!dr.call(this.refs,e)){var r=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return r;var i=new Set([n]);i.forEach(function(a){Rt(a)&&(r[a.__ref]=!0),Bt(a)&&Object.keys(a).forEach(function(o){var u=a[o];Bt(u)&&i.add(u)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),qy=function(){function t(e,r){r===void 0&&(r=null),this.caching=e,this.parent=r,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?B0():null,this.keyMaker=new Ei(Ea)},t.prototype.depend=function(e,r){if(this.d){this.d(nh(e,r));var n=Yi(r);n!==r&&this.d(nh(e,n)),this.parent&&this.parent.depend(e,r)}},t.prototype.dirty=function(e,r){this.d&&this.d.dirty(nh(e,r),r==="__exists"?"forget":"setDirty")},t}();function nh(t,e){return e+"#"+t}function Uy(t,e){Qs(t)&&t.group.depend(e,"__exists")}(function(t){var e=function(r){yn(n,r);function n(i){var a=i.policies,o=i.resultCaching,u=o===void 0?!0:o,l=i.seed,f=r.call(this,a,new qy(u))||this;return f.stump=new q4(f),f.storageTrie=new Ei(Ea),l&&f.replace(l),f}return n.prototype.addLayer=function(i,a){return this.stump.addLayer(i,a)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(t);t.Root=e})(Gs||(Gs={}));var Ki=function(t){yn(e,t);function e(r,n,i,a){var o=t.call(this,n.policies,a)||this;return o.id=r,o.parent=n,o.replay=i,o.group=a,i(o),o}return e.prototype.addLayer=function(r,n){return new e(r,this,n,this.group)},e.prototype.removeLayer=function(r){var n=this,i=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var o=n.data[a],u=i.lookup(a);u?o?o!==u&&Object.keys(o).forEach(function(l){Et(o[l],u[l])||n.group.dirty(a,l)}):(n.group.dirty(a,"__exists"),Object.keys(u).forEach(function(l){n.group.dirty(a,l)})):n.delete(a)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return ee(ee({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return dr.call(this.data,r)?ee(ee({},n),t.prototype.findChildRefIds.call(this,r)):n},e.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},e}(Gs),q4=function(t){yn(e,t);function e(r){return t.call(this,"EntityStore.Stump",r,function(){},new qy(r.group.caching,r.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(r,n){return this.parent.merge(r,n)},e}(Ki);function U4(t,e,r){var n=t[r],i=e[r];return Et(n,i)?n:i}function Qs(t){return!!(t instanceof Gs&&t.group.caching)}function z4(t){return Bt(t)?Zt(t)?t.slice(0):ee({__proto__:Object.getPrototypeOf(t)},t):t}var zy=function(){function t(){this.known=new(Ed?WeakSet:Set),this.pool=new Ei(Ea),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return Bt(e)&&this.known.has(e)},t.prototype.pass=function(e){if(Bt(e)){var r=z4(e);return this.passes.set(r,e),r}return e},t.prototype.admit=function(e){var r=this;if(Bt(e)){var n=this.passes.get(e);if(n)return n;var i=Object.getPrototypeOf(e);switch(i){case Array.prototype:{if(this.known.has(e))return e;var a=e.map(this.admit,this),o=this.pool.lookupArray(a);return o.array||(this.known.add(o.array=a),globalThis.__DEV__!==!1&&Object.freeze(a)),o.array}case null:case Object.prototype:{if(this.known.has(e))return e;var u=Object.getPrototypeOf(e),l=[u],f=this.sortedKeys(e);l.push(f.json);var d=l.length;f.sorted.forEach(function(v){l.push(r.admit(e[v]))});var o=this.pool.lookupArray(l);if(!o.object){var h=o.object=Object.create(u);this.known.add(h),f.sorted.forEach(function(v,m){h[v]=l[d+m]}),globalThis.__DEV__!==!1&&Object.freeze(h)}return o.object}}}return e},t.prototype.sortedKeys=function(e){var r=Object.keys(e),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var i=JSON.stringify(r);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:r,json:i})}return n.keys},t}();function Hy(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var H4=function(){function t(e){var r=this;this.knownResults=new(Ea?WeakMap:Map),this.config=Ca(e,{addTypename:e.addTypename!==!1,canonizeResults:Dy(e)}),this.canon=e.canon||new zy,this.executeSelectionSet=qs(function(n){var i,a=n.context.canonizeResults,o=Hy(n);o[3]=!a;var u=(i=r.executeSelectionSet).peek.apply(i,o);return u?a?ee(ee({},u),{result:r.canon.admit(u.result)}):u:(Uy(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize||ri["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Hy,makeCacheKey:function(n,i,a,o){if(Qs(a.store))return a.store.makeCacheKey(n,Rt(i)?i.__ref:i,a.varString,o)}}),this.executeSubSelectedArray=qs(function(n){return Uy(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize||ri["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(n){var i=n.field,a=n.array,o=n.context;if(Qs(o.store))return o.store.makeCacheKey(i,a,o.varString)}})}return t.prototype.resetCanon=function(){this.canon=new zy},t.prototype.diffQueryAgainstStore=function(e){var r=e.store,n=e.query,i=e.rootId,a=i===void 0?"ROOT_QUERY":i,o=e.variables,u=e.returnPartialData,l=u===void 0?!0:u,f=e.canonizeResults,d=f===void 0?this.config.canonizeResults:f,h=this.config.cache.policies;o=ee(ee({},Nd(k0(n))),o);var p=po(a),v=this.executeSelectionSet({selectionSet:yo(n).selectionSet,objectOrReference:p,enclosingRef:p,context:ee({store:r,query:n,policies:h,variables:o,varString:Vi(o),canonizeResults:d},jy(n,this.config.fragments))}),m;if(v.missing&&(m=[new Iy(V4(v.missing),v.missing,n,o)],!l))throw m[0];return{result:v.result,complete:!m,missing:m}},t.prototype.isFresh=function(e,r,n,i){if(Qs(i.store)&&this.knownResults.get(e)===n){var a=this.executeSelectionSet.peek(n,r,i,this.canon.isKnown(e));if(a&&e===a.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(e){var r=this,n=e.selectionSet,i=e.objectOrReference,a=e.enclosingRef,o=e.context;if(Rt(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=o.variables,l=o.policies,f=o.store,d=f.getFieldValue(i,"__typename"),h=[],p,v=new Qi;this.config.addTypename&&typeof d=="string"&&!l.rootIdsByTypename[d]&&h.push({__typename:d});function m(S,C){var _;return S.missing&&(p=v.merge(p,(_={},_[C]=S.missing,_))),S.result}var y=new Set(n.selections);y.forEach(function(S){var C,_;if(Ls(S,u))if(Bi(S)){var T=l.readField({fieldName:S.name.value,field:S,variables:o.variables,from:i},o),O=Si(S);T===void 0?jd.added(S)||(p=v.merge(p,(C={},C[O]="Can't find field '".concat(S.name.value,"' on ").concat(Rt(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),C))):Zt(T)?T.length>0&&(T=m(r.executeSubSelectedArray({field:S,array:T,enclosingRef:a,context:o}),O)):S.selectionSet?T!=null&&(T=m(r.executeSelectionSet({selectionSet:S.selectionSet,objectOrReference:T,enclosingRef:Rt(T)?T:a,context:o}),O)):o.canonizeResults&&(T=r.canon.pass(T)),T!==void 0&&h.push((_={},_[O]=T,_))}else{var k=ml(S,o.lookupFragment);if(!k&&S.kind===Ht.FRAGMENT_SPREAD)throw Lr(10,S.name.value);k&&l.fragmentMatches(k,d)&&k.selectionSet.selections.forEach(y.add,y)}});var b=El(h),w={result:b,missing:p},E=o.canonizeResults?this.canon.admit(w):Eo(w);return E.result&&this.knownResults.set(E.result,n),E},t.prototype.execSubSelectedArrayImpl=function(e){var r=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,u,l=new Qi;function f(d,h){var p;return d.missing&&(u=l.merge(u,(p={},p[h]=d.missing,p))),d.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(d,h){return d===null?null:Zt(d)?f(r.executeSubSelectedArray({field:n,array:d,enclosingRef:a,context:o}),h):n.selectionSet?f(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:d,enclosingRef:Rt(d)?d:a,context:o}),h):(globalThis.__DEV__!==!1&&B4(o.store,n,d),d)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:u}},t}();function V4(t){try{JSON.stringify(t,function(e,r){if(typeof r=="string")throw r;return r})}catch(e){return e}}function B4(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach(function(i){Bt(i)&&(Pe(!Rt(i),11,j4(t,i),e.name.value),Object.values(i).forEach(n.add,n))})}}var ih=new js,Vy=new WeakMap;function Ys(t){var e=Vy.get(t);return e||Vy.set(t,e={vars:new Set,dep:B0()}),e}function By(t){Ys(t).vars.forEach(function(e){return e.forgetCache(t)})}function W4(t){Ys(t).vars.forEach(function(e){return e.attachCache(t)})}function G4(t){var e=new Set,r=new Set,n=function(a){if(arguments.length>0){if(t!==a){t=a,e.forEach(function(l){Ys(l).dep.dirty(n),Q4(l)});var o=Array.from(r);r.clear(),o.forEach(function(l){return l(t)})}}else{var u=ih.getValue();u&&(i(u),Ys(u).dep(n))}return t};n.onNextChange=function(a){return r.add(a),function(){r.delete(a)}};var i=n.attachCache=function(a){return e.add(a),Ys(a).vars.add(n),n};return n.forgetCache=function(a){return e.delete(a)},n}function Q4(t){t.broadcastWatches&&t.broadcastWatches()}var Wy=Object.create(null);function ah(t){var e=JSON.stringify(t);return Wy[e]||(Wy[e]=Object.create(null))}function Gy(t){var e=ah(t);return e.keyFieldsFn||(e.keyFieldsFn=function(r,n){var i=function(o,u){return n.readField(u,o)},a=n.keyObject=oh(t,function(o){var u=To(n.storeObject,o,i);return u===void 0&&r!==n.storeObject&&dr.call(r,o[0])&&(u=To(r,o,Ky)),Pe(u!==void 0,5,o.join("."),r),u});return"".concat(n.typename,":").concat(JSON.stringify(a))})}function Qy(t){var e=ah(t);return e.keyArgsFn||(e.keyArgsFn=function(r,n){var i=n.field,a=n.variables,o=n.fieldName,u=oh(t,function(f){var d=f[0],h=d.charAt(0);if(h==="@"){if(i&&_n(i.directives)){var p=d.slice(1),v=i.directives.find(function(w){return w.name.value===p}),m=v&&bl(v,a);return m&&To(m,f.slice(1))}return}if(h==="$"){var y=d.slice(1);if(a&&dr.call(a,y)){var b=f.slice(0);return b[0]=y,To(a,b)}return}if(r)return To(r,f)}),l=JSON.stringify(u);return(r||l!=="{}")&&(o+=":"+l),o})}function oh(t,e){var r=new Qi;return Yy(t).reduce(function(n,i){var a,o=e(i);if(o!==void 0){for(var u=i.length-1;u>=0;--u)o=(a={},a[i[u]]=o,a);n=r.merge(n,o)}return n},Object.create(null))}function Yy(t){var e=ah(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach(function(i,a){Zt(i)?(Yy(i).forEach(function(o){return r.push(n.concat(o))}),n.length=0):(n.push(i),Zt(t[a+1])||(r.push(n.slice(0)),n.length=0))})}return e.paths}function Ky(t,e){return t[e]}function To(t,e,r){return r=r||Ky,Xy(e.reduce(function n(i,a){return Zt(i)?i.map(function(o){return n(o,a)}):i&&r(i,a)},t))}function Xy(t){return Bt(t)?Zt(t)?t.map(Xy):oh(Object.keys(t).sort(),function(e){return To(t,e)}):t}function sh(t){return t.args!==void 0?t.args:t.field?bl(t.field,t.variables):null}var Y4=function(){},Zy=function(t,e){return e.fieldName},Jy=function(t,e,r){var n=r.mergeObjects;return n(t,e)},eb=function(t,e){return e},K4=function(){function t(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=ee({dataIdFromObject:Ly},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return t.prototype.identify=function(e,r){var n,i=this,a=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o=r&&r.storeObject||e,u=ee(ee({},r),{typename:a,storeObject:o,readField:r&&r.readField||function(){var h=uh(arguments,o);return i.readField(h,{store:i.cache.data,variables:h.variables})}}),l,f=a&&this.getTypePolicy(a),d=f&&f.keyFn||this.config.dataIdFromObject;return eh.withValue(!0,function(){for(;d;){var h=d(ee(ee({},e),o),u);if(Zt(h))d=Gy(h);else{l=h;break}}}),l=l?String(l):void 0,u.keyObject?[l,u.keyObject]:[l]},t.prototype.addTypePolicies=function(e){var r=this;Object.keys(e).forEach(function(n){var i=e[n],a=i.queryType,o=i.mutationType,u=i.subscriptionType,l=bn(i,["queryType","mutationType","subscriptionType"]);a&&r.setRootTypename("Query",n),o&&r.setRootTypename("Mutation",n),u&&r.setRootTypename("Subscription",n),dr.call(r.toBeAdded,n)?r.toBeAdded[n].push(l):r.toBeAdded[n]=[l]})},t.prototype.updateTypePolicy=function(e,r){var n=this,i=this.getTypePolicy(e),a=r.keyFields,o=r.fields;function u(l,f){l.merge=typeof f=="function"?f:f===!0?Jy:f===!1?eb:l.merge}u(i,r.merge),i.keyFn=a===!1?Y4:Zt(a)?Gy(a):typeof a=="function"?a:i.keyFn,o&&Object.keys(o).forEach(function(l){var f=n.getFieldPolicy(e,l,!0),d=o[l];if(typeof d=="function")f.read=d;else{var h=d.keyArgs,p=d.read,v=d.merge;f.keyFn=h===!1?Zy:Zt(h)?Qy(h):typeof h=="function"?h:f.keyFn,typeof p=="function"&&(f.read=p),u(f,v)}f.read&&f.merge&&(f.keyFn=f.keyFn||Zy)})},t.prototype.setRootTypename=function(e,r){r===void 0&&(r=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(Pe(!i||i===e,6,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},t.prototype.addPossibleTypes=function(e){var r=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){r.getSupertypeSet(n,!0),e[n].forEach(function(i){r.getSupertypeSet(i,!0).add(n);var a=i.match(Fy);(!a||a[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},t.prototype.getTypePolicy=function(e){var r=this;if(!dr.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(o,u){if(o.test(e)){var l=r.supertypeMap.get(u);l&&l.forEach(function(f){return i.add(f)})}})),i&&i.size&&i.forEach(function(o){var u=r.getTypePolicy(o),l=u.fields,f=bn(u,["fields"]);Object.assign(n,f),Object.assign(n.fields,l)})}var a=this.toBeAdded[e];return a&&a.length&&a.splice(0).forEach(function(o){r.updateTypePolicy(e,o)}),this.typePolicies[e]},t.prototype.getFieldPolicy=function(e,r,n){if(e){var i=this.getTypePolicy(e).fields;return i[r]||n&&(i[r]=Object.create(null))}},t.prototype.getSupertypeSet=function(e,r){var n=this.supertypeMap.get(e);return!n&&r&&this.supertypeMap.set(e,n=new Set),n},t.prototype.fragmentMatches=function(e,r,n,i){var a=this;if(!e.typeCondition)return!0;if(!r)return!1;var o=e.typeCondition.name.value;if(r===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var u=this.getSupertypeSet(r,!0),l=[u],f=function(m){var y=a.getSupertypeSet(m,!1);y&&y.size&&l.indexOf(y)<0&&l.push(y)},d=!!(n&&this.fuzzySubtypes.size),h=!1,p=0;p<l.length;++p){var v=l[p];if(v.has(o))return u.has(o)||(h&&globalThis.__DEV__!==!1&&Pe.warn(7,r,o),u.add(o)),!0;v.forEach(f),d&&p===l.length-1&&th(e.selectionSet,n,i)&&(d=!1,h=!0,this.fuzzySubtypes.forEach(function(m,y){var b=r.match(m);b&&b[0]===r&&f(y)}))}return!1},t.prototype.hasKeyArgs=function(e,r){var n=this.getFieldPolicy(e,r,!1);return!!(n&&n.keyFn)},t.prototype.getStoreFieldName=function(e){var r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),a,o=i&&i.keyFn;if(o&&r)for(var u={typename:r,fieldName:n,field:e.field||null,variables:e.variables},l=sh(e);o;){var f=o(l,u);if(Zt(f))o=Qy(f);else{a=f||n;break}}return a===void 0&&(a=e.field?gO(e.field,e.variables):R0(n,sh(e))),a===!1?n:n===Yi(a)?a:n+":"+a},t.prototype.readField=function(e,r){var n=e.from;if(n){var i=e.field||e.fieldName;if(i){if(e.typename===void 0){var a=r.store.getFieldValue(n,"__typename");a&&(e.typename=a)}var o=this.getStoreFieldName(e),u=Yi(o),l=r.store.getFieldValue(n,o),f=this.getFieldPolicy(e.typename,u,!1),d=f&&f.read;if(d){var h=tb(this,n,e,r,r.store.getStorage(Rt(n)?n.__ref:n,o));return ih.withValue(this.cache,d,[l,h])}return l}}},t.prototype.getReadFunction=function(e,r){var n=this.getFieldPolicy(e,r,!1);return n&&n.read},t.prototype.getMergeFunction=function(e,r,n){var i=this.getFieldPolicy(e,r,!1),a=i&&i.merge;return!a&&n&&(i=this.getTypePolicy(n),a=i&&i.merge),a},t.prototype.runMergeFunction=function(e,r,n,i,a){var o=n.field,u=n.typename,l=n.merge;return l===Jy?rb(i.store)(e,r):l===eb?r:(i.overwrite&&(e=void 0),l(e,r,tb(this,void 0,{typename:u,fieldName:o.name.value,field:o,variables:i.variables},i,a||Object.create(null))))},t}();function tb(t,e,r,n,i){var a=t.getStoreFieldName(r),o=Yi(a),u=r.variables||n.variables,l=n.store,f=l.toReference,d=l.canRead;return{args:sh(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:u,isReference:Rt,toReference:f,storage:i,cache:t.cache,canRead:d,readField:function(){return t.readField(uh(arguments,e,u),n)},mergeObjects:rb(n.store)}}function uh(t,e,r){var n=t[0],i=t[1],a=t.length,o;return typeof n=="string"?o={fieldName:n,from:a>1?i:e}:(o=ee({},n),dr.call(o,"from")||(o.from=e)),globalThis.__DEV__!==!1&&o.from===void 0&&globalThis.__DEV__!==!1&&Pe.warn(8,f0(Array.from(t))),o.variables===void 0&&(o.variables=r),o}function rb(t){return function(r,n){if(Zt(r)||Zt(n))throw Lr(9);if(Bt(r)&&Bt(n)){var i=t.getFieldValue(r,"__typename"),a=t.getFieldValue(n,"__typename"),o=i&&a&&i!==a;if(o)return n;if(Rt(r)&&Co(n))return t.merge(r.__ref,n),r;if(Co(r)&&Rt(n))return t.merge(r,n.__ref),n;if(Co(r)&&Co(n))return ee(ee({},r),n)}return n}}function lh(t,e,r){var n="".concat(e).concat(r),i=t.flavors.get(n);return i||t.flavors.set(n,i=t.clientOnly===e&&t.deferred===r?t:ee(ee({},t),{clientOnly:e,deferred:r})),i}var X4=function(){function t(e,r,n){this.cache=e,this.reader=r,this.fragments=n}return t.prototype.writeToStore=function(e,r){var n=this,i=r.query,a=r.result,o=r.dataId,u=r.variables,l=r.overwrite,f=xa(i),d=$4();u=ee(ee({},Nd(f)),u);var h=ee(ee({store:e,written:Object.create(null),merge:function(v,m){return d.merge(v,m)},variables:u,varString:Vi(u)},jy(i,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:a||Object.create(null),dataId:o,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:h});if(!Rt(p))throw Lr(12,a);return h.incomingById.forEach(function(v,m){var y=v.storeObject,b=v.mergeTree,w=v.fieldNodeSet,E=po(m);if(b&&b.map.size){var S=n.applyMerges(b,E,y,h);if(Rt(S))return;y=S}if(globalThis.__DEV__!==!1&&!h.overwrite){var C=Object.create(null);w.forEach(function(O){O.selectionSet&&(C[O.name.value]=!0)});var _=function(O){return C[Yi(O)]===!0},T=function(O){var k=b&&b.map.get(O);return!!(k&&k.info&&k.info.merge)};Object.keys(y).forEach(function(O){_(O)&&!T(O)&&Z4(E,y,O,h.store)})}e.merge(m,y)}),e.retain(p.__ref),p},t.prototype.processSelectionSet=function(e){var r=this,n=e.dataId,i=e.result,a=e.selectionSet,o=e.context,u=e.mergeTree,l=this.cache.policies,f=Object.create(null),d=n&&l.rootTypenamesById[n]||Pd(i,a,o.fragmentMap)||n&&o.store.get(n,"__typename");typeof d=="string"&&(f.__typename=d);var h=function(){var S=uh(arguments,f,o.variables);if(Rt(S.from)){var C=o.incomingById.get(S.from.__ref);if(C){var _=l.readField(ee(ee({},S),{from:C.storeObject}),o);if(_!==void 0)return _}}return l.readField(S,o)},p=new Set;this.flattenFields(a,i,o,d).forEach(function(S,C){var _,T=Si(C),O=i[T];if(p.add(C),O!==void 0){var k=l.getStoreFieldName({typename:d,fieldName:C.name.value,field:C,variables:S.variables}),P=ib(u,k),N=r.processFieldValue(O,C,C.selectionSet?lh(S,!1,!1):S,P),M=void 0;C.selectionSet&&(Rt(N)||Co(N))&&(M=h("__typename",N));var z=l.getMergeFunction(d,C.name.value,M);z?P.info={field:C,typename:d,merge:z}:ab(u,k),f=S.merge(f,(_={},_[k]=N,_))}else globalThis.__DEV__!==!1&&!S.clientOnly&&!S.deferred&&!jd.added(C)&&!l.getReadFunction(d,C.name.value)&&globalThis.__DEV__!==!1&&Pe.error(13,Si(C),i)});try{var v=l.identify(i,{typename:d,selectionSet:a,fragmentMap:o.fragmentMap,storeObject:f,readField:h}),m=v[0],y=v[1];n=n||m,y&&(f=o.merge(f,y))}catch(S){if(!n)throw S}if(typeof n=="string"){var b=po(n),w=o.written[n]||(o.written[n]=[]);if(w.indexOf(a)>=0||(w.push(a),this.reader&&this.reader.isFresh(i,b,a,o)))return b;var E=o.incomingById.get(n);return E?(E.storeObject=o.merge(E.storeObject,f),E.mergeTree=ch(E.mergeTree,u),p.forEach(function(S){return E.fieldNodeSet.add(S)})):o.incomingById.set(n,{storeObject:f,mergeTree:Al(u)?void 0:u,fieldNodeSet:p}),b}return f},t.prototype.processFieldValue=function(e,r,n,i){var a=this;return!r.selectionSet||e===null?globalThis.__DEV__!==!1?sy(e):e:Zt(e)?e.map(function(o,u){var l=a.processFieldValue(o,r,n,ib(i,u));return ab(i,u),l}):this.processSelectionSet({result:e,selectionSet:r.selectionSet,context:n,mergeTree:i})},t.prototype.flattenFields=function(e,r,n,i){i===void 0&&(i=Pd(r,e,n.fragmentMap));var a=new Map,o=this.cache.policies,u=new Ei(!1);return function l(f,d){var h=u.lookup(f,d.clientOnly,d.deferred);h.visited||(h.visited=!0,f.selections.forEach(function(p){if(Ls(p,n.variables)){var v=d.clientOnly,m=d.deferred;if(!(v&&m)&&_n(p.directives)&&p.directives.forEach(function(w){var E=w.name.value;if(E==="client"&&(v=!0),E==="defer"){var S=bl(w,n.variables);(!S||S.if!==!1)&&(m=!0)}}),Bi(p)){var y=a.get(p);y&&(v=v&&y.clientOnly,m=m&&y.deferred),a.set(p,lh(n,v,m))}else{var b=ml(p,n.lookupFragment);if(!b&&p.kind===Ht.FRAGMENT_SPREAD)throw Lr(14,p.name.value);b&&o.fragmentMatches(b,i,r,n.variables)&&l(b.selectionSet,lh(n,v,m))}}}))}(e,n),a},t.prototype.applyMerges=function(e,r,n,i,a){var o,u=this;if(e.map.size&&!Rt(n)){var l=!Zt(n)&&(Rt(r)||Co(r))?r:void 0,f=n;l&&!a&&(a=[Rt(l)?l.__ref:l]);var d,h=function(p,v){return Zt(p)?typeof v=="number"?p[v]:void 0:i.store.getFieldValue(p,String(v))};e.map.forEach(function(p,v){var m=h(l,v),y=h(f,v);if(y!==void 0){a&&a.push(v);var b=u.applyMerges(p,m,y,i,a);b!==y&&(d=d||new Map,d.set(v,b)),a&&Pe(a.pop()===v)}}),d&&(n=Zt(f)?f.slice(0):ee({},f),d.forEach(function(p,v){n[v]=p}))}return e.info?this.cache.policies.runMergeFunction(r,n,e.info,i,a&&(o=i.store).getStorage.apply(o,a)):n},t}(),nb=[];function ib(t,e){var r=t.map;return r.has(e)||r.set(e,nb.pop()||{map:new Map}),r.get(e)}function ch(t,e){if(t===e||!e||Al(e))return t;if(!t||Al(t))return e;var r=t.info&&e.info?ee(ee({},t.info),e.info):t.info||e.info,n=t.map.size&&e.map.size,i=n?new Map:t.map.size?t.map:e.map,a={info:r,map:i};if(n){var o=new Set(e.map.keys());t.map.forEach(function(u,l){a.map.set(l,ch(u,e.map.get(l))),o.delete(l)}),o.forEach(function(u){a.map.set(u,ch(e.map.get(u),t.map.get(u)))})}return a}function Al(t){return!t||!(t.info||t.map.size)}function ab(t,e){var r=t.map,n=r.get(e);n&&Al(n)&&(nb.push(n),r.delete(e))}var ob=new Set;function Z4(t,e,r,n){var i=function(h){var p=n.getFieldValue(h,r);return typeof p=="object"&&p},a=i(t);if(a){var o=i(e);if(o&&!Rt(a)&&!Et(a,o)&&!Object.keys(a).every(function(h){return n.getFieldValue(o,h)!==void 0})){var u=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),l=Yi(r),f="".concat(u,".").concat(l);if(!ob.has(f)){ob.add(f);var d=[];!Zt(a)&&!Zt(o)&&[a,o].forEach(function(h){var p=n.getFieldValue(h,"__typename");typeof p=="string"&&!d.includes(p)&&d.push(p)}),globalThis.__DEV__!==!1&&Pe.warn(15,l,u,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",f,ee({},a),ee({},o))}}}}var sb=function(t){yn(e,t);function e(r){r===void 0&&(r={});var n=t.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new G0(jd),n.assumeImmutableResults=!0,n.makeVar=G4,n.txCount=0,n.config=F4(r),n.addTypename=!!n.config.addTypename,n.policies=new K4({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return e.prototype.init=function(){var r=this.data=new Gs.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=r.stump,this.resetResultCache()},e.prototype.resetResultCache=function(r){var n=this,i=this.storeReader,a=this.config.fragments;this.storeWriter=new X4(this,this.storeReader=new H4({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Dy(this.config),canon:r?void 0:i&&i.canon,fragments:a}),a),this.maybeBroadcastWatch=qs(function(o,u){return n.broadcastWatch(o,u)},{max:this.config.resultCacheMaxSize||ri["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(o){var u=o.optimistic?n.optimisticData:n.data;if(Qs(u)){var l=o.optimistic,f=o.id,d=o.variables;return u.makeCacheKey(o.query,o.callback,Vi({optimistic:l,id:f,variables:d}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(o){return o.resetCaching()})},e.prototype.restore=function(r){return this.init(),r&&this.data.replace(r),this},e.prototype.extract=function(r){return r===void 0&&(r=!1),(r?this.optimisticData:this.data).extract()},e.prototype.read=function(r){var n=r.returnPartialData,i=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(ee(ee({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(a){if(a instanceof Iy)return null;throw a}},e.prototype.write=function(r){try{return++this.txCount,this.storeWriter.writeToStore(this.data,r)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(r){if(dr.call(r,"id")&&!r.id)return!1;var n=r.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(r.id||"ROOT_QUERY",r.fields)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(r){return this.storeReader.diffQueryAgainstStore(ee(ee({},r),{store:r.optimistic?this.optimisticData:this.data,rootId:r.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(r){var n=this;return this.watches.size||W4(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&By(n),n.maybeBroadcastWatch.forget(r)}},e.prototype.gc=function(r){var n;Vi.reset(),Gi.reset(),this.addTypenameTransform.resetCache(),(n=this.config.fragments)===null||n===void 0||n.resetCaches();var i=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),i},e.prototype.retain=function(r,n){return(n?this.optimisticData:this.data).retain(r)},e.prototype.release=function(r,n){return(n?this.optimisticData:this.data).release(r)},e.prototype.identify=function(r){if(Rt(r))return r.__ref;try{return this.policies.identify(r)[0]}catch(n){globalThis.__DEV__!==!1&&Pe.warn(n)}},e.prototype.evict=function(r){if(!r.id){if(dr.call(r,"id"))return!1;r=ee(ee({},r),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(r,this.data)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(r){var n=this;return this.init(),Vi.reset(),r&&r.discardWatches?(this.watches.forEach(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),By(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(r){var n=this.optimisticData.removeLayer(r);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},e.prototype.batch=function(r){var n=this,i=r.update,a=r.optimistic,o=a===void 0?!0:a,u=r.removeOptimistic,l=r.onWatchUpdated,f,d=function(p){var v=n,m=v.data,y=v.optimisticData;++n.txCount,p&&(n.data=n.optimisticData=p);try{return f=i(n)}finally{--n.txCount,n.data=m,n.optimisticData=y}},h=new Set;return l&&!this.txCount&&this.broadcastWatches(ee(ee({},r),{onWatchUpdated:function(p){return h.add(p),!1}})),typeof o=="string"?this.optimisticData=this.optimisticData.addLayer(o,d):o===!1?d(this.data):d(),typeof u=="string"&&(this.optimisticData=this.optimisticData.removeLayer(u)),l&&h.size?(this.broadcastWatches(ee(ee({},r),{onWatchUpdated:function(p,v){var m=l.call(this,p,v);return m!==!1&&h.delete(p),m}})),h.size&&h.forEach(function(p){return n.maybeBroadcastWatch.dirty(p)})):this.broadcastWatches(r),f},e.prototype.performTransaction=function(r,n){return this.batch({update:r,optimistic:n||n!==null})},e.prototype.transformDocument=function(r){return this.addTypenameToDocument(this.addFragmentsToDocument(r))},e.prototype.fragmentMatches=function(r,n){return this.policies.fragmentMatches(r,n)},e.prototype.lookupFragment=function(r){var n;return((n=this.config.fragments)===null||n===void 0?void 0:n.lookup(r))||null},e.prototype.broadcastWatches=function(r){var n=this;this.txCount||this.watches.forEach(function(i){return n.maybeBroadcastWatch(i,r)})},e.prototype.addFragmentsToDocument=function(r){var n=this.config.fragments;return n?n.transform(r):r},e.prototype.addTypenameToDocument=function(r){return this.addTypename?this.addTypenameTransform.transformDocument(r):r},e.prototype.broadcastWatch=function(r,n){var i=r.lastDiff,a=this.diff(r);n&&(r.optimistic&&typeof n.optimistic=="string"&&(a.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,r,a,i)===!1)||(!i||!Et(i.result,a.result))&&r.callback(r.lastDiff=a,i)},e}(Ny);globalThis.__DEV__!==!1&&(sb.prototype.getMemoryInternals=ZT);var _t;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"})(_t||(_t={}));function Oo(t){return t?t<7:!1}var ub=Object.assign,J4=Object.hasOwnProperty,Ks=function(t){yn(e,t);function e(r){var n=r.queryManager,i=r.queryInfo,a=r.options,o=this,u=e.inactiveOnCreation.getValue();o=t.call(this,function(w){u&&(n.queries.set(o.queryId,i),u=!1);try{var E=w._subscription._observer;E&&!E.error&&(E.error=e8)}catch{}var S=!o.observers.size;o.observers.add(w);var C=o.last;return C&&C.error?w.error&&w.error(C.error):C&&C.result&&w.next&&w.next(o.maskResult(C.result)),S&&o.reobserve().catch(function(){}),function(){o.observers.delete(w)&&!o.observers.size&&o.tearDownQuery()}})||this,o.observers=new Set,o.subscriptions=new Set,o.dirty=!1,o.queryInfo=i,o.queryManager=n,o.waitForOwnResult=fh(a.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var l=n.defaultOptions.watchQuery,f=l===void 0?{}:l,d=f.fetchPolicy,h=d===void 0?"cache-first":d,p=a.fetchPolicy,v=p===void 0?h:p,m=a.initialFetchPolicy,y=m===void 0?v==="standby"?h:v:m;o.options=ee(ee({},a),{initialFetchPolicy:y,fetchPolicy:v}),o.queryId=i.queryId||n.generateQueryId();var b=xa(o.query);return o.queryName=b&&b.name&&b.name.value,o}return Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var r=this;return new Promise(function(n,i){var a={next:function(u){n(u),r.observers.delete(a),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){o.unsubscribe()},0)},error:i},o=r.subscribe(a)})},e.prototype.resetDiff=function(){this.queryInfo.resetDiff()},e.prototype.getCurrentFullResult=function(r){r===void 0&&(r=!0);var n=this.getLastResult(!0),i=this.queryInfo.networkStatus||n&&n.networkStatus||_t.ready,a=ee(ee({},n),{loading:Oo(i),networkStatus:i}),o=this.options.fetchPolicy,u=o===void 0?"cache-first":o;if(!(fh(u)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(a.data=l.result),Et(a.data,{})&&(a.data=void 0),l.complete?(delete a.partial,l.complete&&a.networkStatus===_t.loading&&(u==="cache-first"||u==="cache-only")&&(a.networkStatus=_t.ready,a.loading=!1)):a.partial=!0,a.networkStatus===_t.ready&&(a.error||a.errors)&&(a.networkStatus=_t.error),globalThis.__DEV__!==!1&&!l.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&lb(l.missing)}return r&&this.updateLastResult(a),a},e.prototype.getCurrentResult=function(r){return r===void 0&&(r=!0),this.maskResult(this.getCurrentFullResult(r))},e.prototype.isDifferentFromLastResult=function(r,n){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),a=this.queryManager.dataMasking,o=a?i.nonReactiveQuery:this.query,u=a||i.hasNonreactiveDirective?!xy(o,this.last.result,r,this.variables):!Et(this.last.result,r);return u||n&&!Et(this.last.variables,n)},e.prototype.getLast=function(r,n){var i=this.last;if(i&&i[r]&&(!n||Et(i.variables,this.variables)))return i[r]},e.prototype.getLastResult=function(r){return this.getLast("result",r)},e.prototype.getLastError=function(r){return this.getLast("error",r)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(r){var n,i={pollInterval:0},a=this.options.fetchPolicy;if(a==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&J4.call(r,"variables")){var o=k0(this.query),u=o.variableDefinitions;(!u||!u.some(function(l){return l.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&Pe.warn(21,r,((n=o.name)===null||n===void 0?void 0:n.value)||o)}return r&&!Et(this.options.variables,r)&&(i.variables=this.options.variables=ee(ee({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(i,_t.refetch)},e.prototype.fetchMore=function(r){var n=this,i=ee(ee({},r.query?r:ee(ee(ee(ee({},this.options),{query:this.options.query}),r),{variables:ee(ee({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var a=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):i.query;var o=this.queryInfo,u=o.networkStatus;o.networkStatus=_t.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set,f=r==null?void 0:r.updateQuery,d=this.options.fetchPolicy!=="no-cache";return d||Pe(f,22),this.queryManager.fetchQuery(a,i,_t.fetchMore).then(function(h){if(n.queryManager.removeQuery(a),o.networkStatus===_t.fetchMore&&(o.networkStatus=u),d)n.queryManager.cache.batch({update:function(m){var y=r.updateQuery;y?m.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(b){return y(b,{fetchMoreResult:h.data,variables:i.variables})}):m.writeQuery({query:i.query,variables:i.variables,data:h.data})},onWatchUpdated:function(m){l.add(m.query)}});else{var p=n.getLast("result"),v=f(p.data,{fetchMoreResult:h.data,variables:i.variables});n.reportResult(ee(ee({},p),{networkStatus:u,loading:Oo(u),data:v}),n.variables)}return n.maskResult(h)}).finally(function(){d&&!l.has(n.query)&&n.reobserveCacheFirst()})},e.prototype.subscribeToMore=function(r){var n=this,i=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(a){var o=r.updateQuery;o&&n.updateQuery(function(u,l){return o(u,ee({subscriptionData:a},l))})},error:function(a){if(r.onError){r.onError(a);return}globalThis.__DEV__!==!1&&Pe.error(23,a)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},e.prototype.setOptions=function(r){return this.reobserve(r)},e.prototype.silentSetOptions=function(r){var n=Ca(this.options,r||{});ub(this.options,n)},e.prototype.setVariables=function(r){return Et(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},_t.setVariables):Promise.resolve())},e.prototype.updateQuery=function(r){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),a=i.result,o=i.complete,u=r(a,{variables:this.variables,complete:!!o,previousData:a});u&&(n.cache.writeQuery({query:this.options.query,data:u,variables:this.variables}),n.broadcastQueries())},e.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,a=i===void 0?"cache-first":i,o=n.initialFetchPolicy,u=o===void 0?a:o;a==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(a,{reason:r,options:n,observable:this,initialFetchPolicy:u}):r==="variables-changed"?n.fetchPolicy=u:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},e.prototype.fetch=function(r,n,i){var a=this.queryManager.getOrCreateQuery(this.queryId);return a.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(a,r,n,i)},e.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,a=n.options.pollInterval;if(!a||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===a)){Pe(a,24);var o=i||(this.pollingInfo={});o.interval=a;var u=function(){var f,d;r.pollingInfo&&(!Oo(r.queryInfo.networkStatus)&&!(!((d=(f=r.options).skipPollAttempt)===null||d===void 0)&&d.call(f))?r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},_t.poll).then(l,l):l())},l=function(){var f=r.pollingInfo;f&&(clearTimeout(f.timeout),f.timeout=setTimeout(u,f.interval))};l()}}},e.prototype.updateLastResult=function(r,n){n===void 0&&(n=this.variables);var i=this.getLastError();return i&&this.last&&!Et(n,this.last.variables)&&(i=void 0),this.last=ee({result:this.queryManager.assumeImmutableResults?r:sy(r),variables:n},i?{error:i}:null)},e.prototype.reobserveAsConcast=function(r,n){var i=this;this.isTornDown=!1;var a=n===_t.refetch||n===_t.fetchMore||n===_t.poll,o=this.options.variables,u=this.options.fetchPolicy,l=Ca(this.options,r||{}),f=a?l:ub(this.options,l),d=this.transformDocument(f.query);this.lastQuery=d,a||(this.updatePolling(),r&&r.variables&&!Et(r.variables,o)&&f.fetchPolicy!=="standby"&&(f.fetchPolicy===u||typeof f.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",f),n===void 0&&(n=_t.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=fh(f.fetchPolicy));var h=function(){i.concast===m&&(i.waitForOwnResult=!1)},p=f.variables&&ee({},f.variables),v=this.fetch(f,n,d),m=v.concast,y=v.fromLink,b={next:function(w){Et(i.variables,p)&&(h(),i.reportResult(w,p))},error:function(w){Et(i.variables,p)&&(vy(w)||(w=new tn({networkError:w})),h(),i.reportError(w,p))}};return!a&&(y||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=b),m.addObserver(b),m},e.prototype.reobserve=function(r,n){return VO(this.reobserveAsConcast(r,n).promise.then(this.maskResult))},e.prototype.resubscribeAfterError=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=this.last;this.resetLastResults();var a=this.subscribe.apply(this,r);return this.last=i,a},e.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},e.prototype.reportResult=function(r,n){var i=this.getLastError(),a=this.isDifferentFromLastResult(r,n);(i||!r.partial||this.options.returnPartialData)&&this.updateLastResult(r,n),(i||a)&&Hs(this.observers,"next",this.maskResult(r))},e.prototype.reportError=function(r,n){var i=ee(ee({},this.getLastResult()),{error:r,errors:r.graphQLErrors,networkStatus:_t.error,loading:!1});this.updateLastResult(i,n),Hs(this.observers,"error",this.last.error=r)},e.prototype.hasObservers=function(){return this.observers.size>0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(r){return this.queryManager.transform(r)},e.prototype.maskResult=function(r){return r&&"data"in r?ee(ee({},r),{data:this.queryManager.maskOperation({document:this.query,data:r.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):r},e.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},e.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},e.prototype.scheduleNotify=function(){var r=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},e.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!Oo(this.queryInfo.networkStatus))){var r=this.queryInfo.getDiff();r.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},e.prototype.reobserveCacheFirst=function(){var r=this.options,n=r.fetchPolicy,i=r.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(a,o){return this.nextFetchPolicy=i,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(a,o):n}}):this.reobserve()},e.inactiveOnCreation=new js,e}(kt);uy(Ks);function e8(t){globalThis.__DEV__!==!1&&Pe.error(25,t.message,t.stack)}function lb(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&Pe.debug(26,t)}function fh(t){return t==="network-only"||t==="no-cache"||t==="standby"}var Ro=new(Ea?WeakMap:Map);function dh(t,e){var r=t[e];typeof r=="function"&&(t[e]=function(){return Ro.set(t,(Ro.get(t)+1)%1e15),r.apply(this,arguments)})}var hh=function(){function t(e,r){r===void 0&&(r=e.generateQueryId()),this.queryId=r,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;Ro.has(n)||(Ro.set(n,0),dh(n,"evict"),dh(n,"modify"),dh(n,"reset"))}return t.prototype.init=function(e){var r=e.networkStatus||_t.loading;return this.variables&&this.networkStatus!==_t.loading&&!Et(this.variables,e.variables)&&(r=_t.setVariables),Et(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:r}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.resetDiff=function(){this.lastDiff=void 0},t.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Et(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},t.prototype.updateLastDiff=function(e,r){this.lastDiff=e?{diff:e,options:r||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){var r;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(r=this.observableQuery)===null||r===void 0?void 0:r.options.canonizeResults}},t.prototype.setDiff=function(e){var r,n,i=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(!((r=this.observableQuery)===null||r===void 0)&&r.getLastError())||(this.updateLastDiff(e),Et(i&&i.result,e&&e.result)||(n=this.observableQuery)===null||n===void 0||n.scheduleNotify())},t.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},t.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,(e=this.observableQuery)===null||e===void 0||e.resetNotifications(),this.cancel();var r=this.observableQuery;r&&r.stopPolling()}},t.prototype.cancel=function(){var e;(e=this.cancelWatch)===null||e===void 0||e.call(this),this.cancelWatch=void 0},t.prototype.updateWatch=function(e){var r=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var i=ee(ee({},this.getDiffOptions(e)),{watcher:this,callback:function(a){return r.setDiff(a)}});(!this.lastWatch||!Et(i,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,r){var n=this.lastWrite;return!(n&&n.dmCount===Ro.get(this.cache)&&Et(r,n.variables)&&Et(e.data,n.result.data))},t.prototype.markResult=function(e,r,n,i){var a=this,o,u=new Qi,l=_n(e.errors)?e.errors.slice(0):[];if((o=this.observableQuery)===null||o===void 0||o.resetNotifications(),"incremental"in e&&_n(e.incremental)){var f=cy(this.getDiff().result,e);e.data=f}else if("hasNext"in e&&e.hasNext){var d=this.getDiff();e.data=u.merge(d.result,e.data)}this.graphQLErrors=l,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(ph(e,n.errorPolicy)?this.cache.performTransaction(function(h){if(a.shouldWrite(e,n.variables))h.writeQuery({query:r,data:e.data,variables:n.variables,overwrite:i===1}),a.lastWrite={result:e,variables:n.variables,dmCount:Ro.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var p=a.getDiffOptions(n.variables),v=h.diff(p);!a.stopped&&Et(a.variables,n.variables)&&a.updateWatch(n.variables),a.updateLastDiff(v,p),v.complete&&(e.data=v.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=_t.ready},t.prototype.markError=function(e){var r;return this.networkStatus=_t.error,this.lastWrite=void 0,(r=this.observableQuery)===null||r===void 0||r.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function ph(t,e){e===void 0&&(e="none");var r=e==="ignore"||e==="all",n=!Cl(t);return!n&&r&&t.data&&(n=!0),n}var t8=Object.prototype.hasOwnProperty,cb=Object.create(null),r8=function(){function t(e){var r=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Od(ri["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Ei(!1),this.noCacheWarningsByQueryId=new Set;var n=new G0(function(a){return r.cache.transformDocument(a)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var i=e.documentTransform;this.documentTransform=i?n.concat(i).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(r,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(Lr(27))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(r){return r(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){return Ui(this,arguments,void 0,function(r){var n,i,a,o,u,l,f,d=r.mutation,h=r.variables,p=r.optimisticResponse,v=r.updateQueries,m=r.refetchQueries,y=m===void 0?[]:m,b=r.awaitRefetchQueries,w=b===void 0?!1:b,E=r.update,S=r.onQueryUpdated,C=r.fetchPolicy,_=C===void 0?((l=this.defaultOptions.mutate)===null||l===void 0?void 0:l.fetchPolicy)||"network-only":C,T=r.errorPolicy,O=T===void 0?((f=this.defaultOptions.mutate)===null||f===void 0?void 0:f.errorPolicy)||"none":T,k=r.keepRootFields,P=r.context;return zi(this,function(N){switch(N.label){case 0:return Pe(d,28),Pe(_==="network-only"||_==="no-cache",29),n=this.generateMutationId(),d=this.cache.transformForLink(this.transform(d)),i=this.getDocumentInfo(d).hasClientExports,h=this.getVariables(d,h),i?[4,this.localState.addExportedVariables(d,h,P)]:[3,2];case 1:h=N.sent(),N.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[n]={mutation:d,variables:h,loading:!0,error:null}),o=p&&this.markMutationOptimistic(p,{mutationId:n,document:d,variables:h,fetchPolicy:_,errorPolicy:O,context:P,updateQueries:v,update:E,keepRootFields:k}),this.broadcastQueries(),u=this,[2,new Promise(function(M,z){return Gd(u.getObservableFromLink(d,ee(ee({},P),{optimisticResponse:o?p:void 0}),h,{},!1),function(H){if(Cl(H)&&O==="none")throw new tn({graphQLErrors:Qd(H)});a&&(a.loading=!1,a.error=null);var L=ee({},H);return typeof y=="function"&&(y=y(L)),O==="ignore"&&Cl(L)&&delete L.errors,u.markMutationResult({mutationId:n,result:L,document:d,variables:h,fetchPolicy:_,errorPolicy:O,context:P,update:E,updateQueries:v,awaitRefetchQueries:w,refetchQueries:y,removeOptimistic:o?n:void 0,onQueryUpdated:S,keepRootFields:k})}).subscribe({next:function(H){u.broadcastQueries(),(!("hasNext"in H)||H.hasNext===!1)&&M(ee(ee({},H),{data:u.maskOperation({document:d,data:H.data,fetchPolicy:_,id:n})}))},error:function(H){a&&(a.loading=!1,a.error=H),o&&u.cache.removeOptimistic(n),u.broadcastQueries(),z(H instanceof tn?H:new tn({networkError:H}))}})})]}})})},t.prototype.markMutationResult=function(e,r){var n=this;r===void 0&&(r=this.cache);var i=e.result,a=[],o=e.fetchPolicy==="no-cache";if(!o&&ph(i,e.errorPolicy)){if(xo(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),xo(i)&&_n(i.incremental)){var u=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),l=void 0;u.result&&(l=cy(u.result,i)),typeof l<"u"&&(i.data=l,a.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var f=e.updateQueries;f&&this.queries.forEach(function(h,p){var v=h.observableQuery,m=v&&v.queryName;if(!(!m||!t8.call(f,m))){var y=f[m],b=n.queries.get(p),w=b.document,E=b.variables,S=r.diff({query:w,variables:E,returnPartialData:!0,optimistic:!1}),C=S.result,_=S.complete;if(_&&C){var T=y(C,{mutationResult:i,queryName:w&&Fs(w)||void 0,queryVariables:E});T&&a.push({result:T,dataId:"ROOT_QUERY",query:w,variables:E})}}})}if(a.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(h){o||a.forEach(function(y){return h.write(y)});var p=e.update,v=!YO(i)||xo(i)&&!i.hasNext;if(p){if(!o){var m=h.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});m.complete&&(i=ee(ee({},i),{data:m.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}v&&p(h,i,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&v&&h.modify({id:"ROOT_MUTATION",fields:function(y,b){var w=b.fieldName,E=b.DELETE;return w==="__typename"?y:E}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(h){return d.push(h)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(d).then(function(){return i})}return Promise.resolve(i)},t.prototype.markMutationOptimistic=function(e,r){var n=this,i=typeof e=="function"?e(r.variables,{IGNORE:cb}):e;return i===cb?!1:(this.cache.recordOptimisticTransaction(function(a){try{n.markMutationResult(ee(ee({},r),{result:{data:i}}),a)}catch(o){globalThis.__DEV__!==!1&&Pe.error(o)}},r.mutationId),!0)},t.prototype.fetchQuery=function(e,r,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),r,n).concast.promise},t.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(r,n){e[n]={variables:r.variables,networkStatus:r.networkStatus,networkError:r.networkError,graphQLErrors:r.graphQLErrors}}),e},t.prototype.resetErrors=function(e){var r=this.queries.get(e);r&&(r.networkError=void 0,r.graphQLErrors=[])},t.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},t.prototype.getDocumentInfo=function(e){var r=this.transformCache;if(!r.has(e)){var n={hasClientExports:PT(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Ms(["nonreactive"],e),nonReactiveQuery:IO(e),clientQuery:this.localState.clientQuery(e),serverQuery:X0([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:Nd(xa(e)),asQuery:ee(ee({},e),{definitions:e.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?ee(ee({},i),{operation:"query"}):i})})};r.set(e,n)}return r.get(e)},t.prototype.getVariables=function(e,r){return ee(ee({},this.getDocumentInfo(e).defaultVars),r)},t.prototype.watchQuery=function(e){var r=this.transform(e.query);e=ee(ee({},e),{variables:this.getVariables(r,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new hh(this),i=new Ks({queryManager:this,queryInfo:n,options:e});return i.lastQuery=r,Ks.inactiveOnCreation.getValue()||this.queries.set(i.queryId,n),n.init({document:r,observableQuery:i,variables:i.variables}),i},t.prototype.query=function(e,r){var n=this;r===void 0&&(r=this.generateQueryId()),Pe(e.query,30),Pe(e.query.kind==="Document",31),Pe(!e.returnPartialData,32),Pe(!e.pollInterval,33);var i=this.transform(e.query);return this.fetchQuery(r,ee(ee({},e),{query:i})).then(function(a){return a&&ee(ee({},a),{data:n.maskOperation({document:i,data:a.data,fetchPolicy:e.fetchPolicy,id:r})})}).finally(function(){return n.stopQuery(r)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(e){var r=this.queries.get(e);r&&r.stop()},t.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(Lr(34)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=_t.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},t.prototype.getObservableQueries=function(e){var r=this;e===void 0&&(e="active");var n=new Map,i=new Map,a=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(u){if(typeof u=="string")i.set(u,u),a.set(u,!1);else if(oO(u)){var l=Gi(r.transform(u));i.set(l,Fs(u)),a.set(l,!1)}else Bt(u)&&u.query&&o.add(u)}),this.queries.forEach(function(u,l){var f=u.observableQuery,d=u.document;if(f){if(e==="all"){n.set(l,f);return}var h=f.queryName,p=f.options.fetchPolicy;if(p==="standby"||e==="active"&&!f.hasObservers())return;(e==="active"||h&&a.has(h)||d&&a.has(Gi(d)))&&(n.set(l,f),h&&a.set(h,!0),d&&a.set(Gi(d),!0))}}),o.size&&o.forEach(function(u){var l=bd("legacyOneTimeQuery"),f=r.getOrCreateQuery(l).init({document:u.query,variables:u.variables}),d=new Ks({queryManager:r,queryInfo:f,options:ee(ee({},u),{fetchPolicy:"network-only"})});Pe(d.queryId===l),f.setObservableQuery(d),n.set(l,d)}),globalThis.__DEV__!==!1&&a.size&&a.forEach(function(u,l){if(!u){var f=i.get(l);f?globalThis.__DEV__!==!1&&Pe.warn(35,f):globalThis.__DEV__!==!1&&Pe.warn(36)}}),n},t.prototype.reFetchObservableQueries=function(e){var r=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,a){var o=i.options.fetchPolicy;i.resetLastResults(),(e||o!=="standby"&&o!=="cache-only")&&n.push(i.refetch()),(r.queries.get(a)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},t.prototype.startGraphQLSubscription=function(e){var r=this,n=e.query,i=e.variables,a=e.fetchPolicy,o=e.errorPolicy,u=o===void 0?"none":o,l=e.context,f=l===void 0?{}:l,d=e.extensions,h=d===void 0?{}:d;n=this.transform(n),i=this.getVariables(n,i);var p=function(m){return r.getObservableFromLink(n,f,m,h).map(function(y){a!=="no-cache"&&(ph(y,u)&&r.cache.write({query:n,result:y.data,dataId:"ROOT_SUBSCRIPTION",variables:m}),r.broadcastQueries());var b=Cl(y),w=py(y);if(b||w){var E={};if(b&&(E.graphQLErrors=y.errors),w&&(E.protocolErrors=y.extensions[Ol]),u==="none"||w)throw new tn(E)}return u==="ignore"&&delete y.errors,y})};if(this.getDocumentInfo(n).hasClientExports){var v=this.localState.addExportedVariables(n,i,f).then(p);return new kt(function(m){var y=null;return v.then(function(b){return y=b.subscribe(m)},m.error),function(){return y&&y.unsubscribe()}})}return p(i)},t.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},t.prototype.removeQuery=function(e){var r;this.fetchCancelFns.delete(e),this.queries.has(e)&&((r=this.queries.get(e))===null||r===void 0||r.stop(),this.queries.delete(e))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var r;return(r=e.observableQuery)===null||r===void 0?void 0:r.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(e,r,n,i,a){var o=this,u;a===void 0&&(a=(u=r==null?void 0:r.queryDeduplication)!==null&&u!==void 0?u:this.queryDeduplication);var l,f=this.getDocumentInfo(e),d=f.serverQuery,h=f.clientQuery;if(d){var p=this,v=p.inFlightLinkObservables,m=p.link,y={query:d,variables:n,operationName:Fs(d)||void 0,context:this.prepareContext(ee(ee({},r),{forceFetch:!a})),extensions:i};if(r=y.context,a){var b=Gi(d),w=Vi(n),E=v.lookup(b,w);if(l=E.observable,!l){var S=new So([Kd(m,y)]);l=E.observable=S,S.beforeNext(function C(_,T){_==="next"&&"hasNext"in T&&T.hasNext?S.beforeNext(C):v.remove(b,w)})}}else l=new So([Kd(m,y)])}else l=new So([kt.of({data:{}})]),r=this.prepareContext(r);return h&&(l=Gd(l,function(C){return o.localState.runResolvers({document:h,remoteResult:C,context:r,variables:n})})),l},t.prototype.getResultsFromLink=function(e,r,n){var i=e.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(n.query);return Gd(this.getObservableFromLink(a,n.context,n.variables),function(o){var u=Qd(o),l=u.length>0,f=n.errorPolicy;if(i>=e.lastRequestId){if(l&&f==="none")throw e.markError(new tn({graphQLErrors:u}));e.markResult(o,a,n,r),e.markReady()}var d={data:o.data,loading:!1,networkStatus:_t.ready};return l&&f==="none"&&(d.data=void 0),l&&f!=="ignore"&&(d.errors=u,d.networkStatus=_t.error),d},function(o){var u=vy(o)?o:new tn({networkError:o});throw i>=e.lastRequestId&&e.markError(u),u})},t.prototype.fetchConcastWithInfo=function(e,r,n,i){var a=this;n===void 0&&(n=_t.loading),i===void 0&&(i=r.query);var o=this.getVariables(i,r.variables),u=this.defaultOptions.watchQuery,l=r.fetchPolicy,f=l===void 0?u&&u.fetchPolicy||"cache-first":l,d=r.errorPolicy,h=d===void 0?u&&u.errorPolicy||"none":d,p=r.returnPartialData,v=p===void 0?!1:p,m=r.notifyOnNetworkStatusChange,y=m===void 0?!1:m,b=r.context,w=b===void 0?{}:b,E=Object.assign({},r,{query:i,variables:o,fetchPolicy:f,errorPolicy:h,returnPartialData:v,notifyOnNetworkStatusChange:y,context:w}),S=function(k){E.variables=k;var P=a.fetchQueryByPolicy(e,E,n);return E.fetchPolicy!=="standby"&&P.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",r),P},C=function(){return a.fetchCancelFns.delete(e.queryId)};this.fetchCancelFns.set(e.queryId,function(k){C(),setTimeout(function(){return _.cancel(k)})});var _,T;if(this.getDocumentInfo(E.query).hasClientExports)_=new So(this.localState.addExportedVariables(E.query,E.variables,E.context).then(S).then(function(k){return k.sources})),T=!0;else{var O=S(E.variables);T=O.fromLink,_=new So(O.sources)}return _.promise.then(C,C),{concast:_,fromLink:T}},t.prototype.refetchQueries=function(e){var r=this,n=e.updateCache,i=e.include,a=e.optimistic,o=a===void 0?!1:a,u=e.removeOptimistic,l=u===void 0?o?bd("refetchQueries"):void 0:u,f=e.onQueryUpdated,d=new Map;i&&this.getObservableQueries(i).forEach(function(p,v){d.set(v,{oq:p,lastDiff:(r.queries.get(v)||p.queryInfo).getDiff()})});var h=new Map;return n&&this.cache.batch({update:n,optimistic:o&&l||!1,removeOptimistic:l,onWatchUpdated:function(p,v,m){var y=p.watcher instanceof hh&&p.watcher.observableQuery;if(y){if(f){d.delete(y.queryId);var b=f(y,v,m);return b===!0&&(b=y.refetch()),b!==!1&&h.set(y,b),b}f!==null&&d.set(y.queryId,{oq:y,lastDiff:m,diff:v})}}}),d.size&&d.forEach(function(p,v){var m=p.oq,y=p.lastDiff,b=p.diff,w;f&&(b||(b=r.cache.diff(m.queryInfo.getDiffOptions())),w=f(m,b,y)),(!f||w===!0)&&(w=m.refetch()),w!==!1&&h.set(m,w),v.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(v)}),l&&this.cache.removeOptimistic(l),h},t.prototype.maskOperation=function(e){var r,n,i,a=e.document,o=e.data;if(globalThis.__DEV__!==!1){var u=e.fetchPolicy,l=e.id,f=(r=xa(a))===null||r===void 0?void 0:r.operation,d=((n=f==null?void 0:f[0])!==null&&n!==void 0?n:"o")+l;this.dataMasking&&u==="no-cache"&&!zT(a)&&!this.noCacheWarningsByQueryId.has(d)&&(this.noCacheWarningsByQueryId.add(d),globalThis.__DEV__!==!1&&Pe.warn(37,(i=Fs(a))!==null&&i!==void 0?i:"Unnamed ".concat(f??"operation")))}return this.dataMasking?D4(o,a,this.cache):o},t.prototype.maskFragment=function(e){var r=e.data,n=e.fragment,i=e.fragmentName;return this.dataMasking?Py(r,n,this.cache,i):r},t.prototype.fetchQueryByPolicy=function(e,r,n){var i=this,a=r.query,o=r.variables,u=r.fetchPolicy,l=r.refetchWritePolicy,f=r.errorPolicy,d=r.returnPartialData,h=r.context,p=r.notifyOnNetworkStatusChange,v=e.networkStatus;e.init({document:a,variables:o,networkStatus:n});var m=function(){return e.getDiff()},y=function(C,_){_===void 0&&(_=e.networkStatus||_t.loading);var T=C.result;globalThis.__DEV__!==!1&&!d&&!Et(T,{})&&lb(C.missing);var O=function(k){return kt.of(ee({data:k,loading:Oo(_),networkStatus:_},C.complete?null:{partial:!0}))};return T&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:T},context:h,variables:o,onlyRunForcedResolvers:!0}).then(function(k){return O(k.data||void 0)}):f==="none"&&_===_t.refetch&&Array.isArray(C.missing)?O(void 0):O(T)},b=u==="no-cache"?0:n===_t.refetch&&l!=="merge"?1:2,w=function(){return i.getResultsFromLink(e,b,{query:a,variables:o,context:h,fetchPolicy:u,errorPolicy:f})},E=p&&typeof v=="number"&&v!==n&&Oo(n);switch(u){default:case"cache-first":{var S=m();return S.complete?{fromLink:!1,sources:[y(S,e.markReady())]}:d||E?{fromLink:!0,sources:[y(S),w()]}:{fromLink:!0,sources:[w()]}}case"cache-and-network":{var S=m();return S.complete||d||E?{fromLink:!0,sources:[y(S),w()]}:{fromLink:!0,sources:[w()]}}case"cache-only":return{fromLink:!1,sources:[y(m(),e.markReady())]};case"network-only":return E?{fromLink:!0,sources:[y(m()),w()]}:{fromLink:!0,sources:[w()]};case"no-cache":return E?{fromLink:!0,sources:[y(e.getDiff()),w()]}:{fromLink:!0,sources:[w()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new hh(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var r=this.localState.prepareContext(e);return ee(ee(ee({},this.defaultContext),r),{clientAwareness:this.clientAwareness})},t}(),n8=function(){function t(e){var r=e.cache,n=e.client,i=e.resolvers,a=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=r,n&&(this.client=n),i&&this.addResolvers(i),a&&this.setFragmentMatcher(a)}return t.prototype.addResolvers=function(e){var r=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(n){r.resolvers=J0(r.resolvers,n)}):this.resolvers=J0(this.resolvers,e)},t.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(e){return Ui(this,arguments,void 0,function(r){var n=r.document,i=r.remoteResult,a=r.context,o=r.variables,u=r.onlyRunForcedResolvers,l=u===void 0?!1:u;return zi(this,function(f){return n?[2,this.resolveDocument(n,i.data,a,o,this.fragmentMatcher,l).then(function(d){return ee(ee({},i),{data:d.result})})]:[2,i]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return Ms(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return Z0(e)},t.prototype.prepareContext=function(e){var r=this.cache;return ee(ee({},e),{cache:r,getCacheKey:function(n){return r.identify(n)}})},t.prototype.addExportedVariables=function(e){return Ui(this,arguments,void 0,function(r,n,i){return n===void 0&&(n={}),i===void 0&&(i={}),zi(this,function(a){return r?[2,this.resolveDocument(r,this.buildRootValueFromCache(r,n)||{},this.prepareContext(i),n).then(function(o){return ee(ee({},n),o.exportedVariables)})]:[2,ee({},n)]})})},t.prototype.shouldForceResolvers=function(e){var r=!1;return qn(e,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(r=n.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),r))return pl}}}),r},t.prototype.buildRootValueFromCache=function(e,r){return this.cache.diff({query:NO(e),variables:r,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,r){return Ui(this,arguments,void 0,function(n,i,a,o,u,l){var f,d,h,p,v,m,y,b,w,E,S;return a===void 0&&(a={}),o===void 0&&(o={}),u===void 0&&(u=function(){return!0}),l===void 0&&(l=!1),zi(this,function(C){return f=yo(n),d=mo(n),h=fo(d),p=this.collectSelectionsToResolve(f,h),v=f.operation,m=v?v.charAt(0).toUpperCase()+v.slice(1):"Query",y=this,b=y.cache,w=y.client,E={fragmentMap:h,context:ee(ee({},a),{cache:b,client:w}),variables:o,fragmentMatcher:u,defaultOperationType:m,exportedVariables:{},selectionsToResolve:p,onlyRunForcedResolvers:l},S=!1,[2,this.resolveSelectionSet(f.selectionSet,S,i,E).then(function(_){return{result:_,exportedVariables:E.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,r,n,i){return Ui(this,void 0,void 0,function(){var a,o,u,l,f,d=this;return zi(this,function(h){return a=i.fragmentMap,o=i.context,u=i.variables,l=[n],f=function(p){return Ui(d,void 0,void 0,function(){var v,m;return zi(this,function(y){return!r&&!i.selectionsToResolve.has(p)?[2]:Ls(p,u)?Bi(p)?[2,this.resolveField(p,r,n,i).then(function(b){var w;typeof b<"u"&&l.push((w={},w[Si(p)]=b,w))})]:(yO(p)?v=p:(v=a[p.name.value],Pe(v,19,p.name.value)),v&&v.typeCondition&&(m=v.typeCondition.name.value,i.fragmentMatcher(n,m,o))?[2,this.resolveSelectionSet(v.selectionSet,r,n,i).then(function(b){l.push(b)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(f)).then(function(){return El(l)})]})})},t.prototype.resolveField=function(e,r,n,i){return Ui(this,void 0,void 0,function(){var a,o,u,l,f,d,h,p,v,m=this;return zi(this,function(y){return n?(a=i.variables,o=e.name.value,u=Si(e),l=o!==u,f=n[u]||n[o],d=Promise.resolve(f),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(h=n.__typename||i.defaultOperationType,p=this.resolvers&&this.resolvers[h],p&&(v=p[l?o:u],v&&(d=Promise.resolve(ih.withValue(this.cache,v,[n,bl(e,a),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,d.then(function(b){var w,E;if(b===void 0&&(b=f),e.directives&&e.directives.forEach(function(C){C.name.value==="export"&&C.arguments&&C.arguments.forEach(function(_){_.name.value==="as"&&_.value.kind==="StringValue"&&(i.exportedVariables[_.value.value]=b)})}),!e.selectionSet||b==null)return b;var S=(E=(w=e.directives)===null||w===void 0?void 0:w.some(function(C){return C.name.value==="client"}))!==null&&E!==void 0?E:!1;if(Array.isArray(b))return m.resolveSubSelectedArray(e,r||S,b,i);if(e.selectionSet)return m.resolveSelectionSet(e.selectionSet,r||S,b,i)})]):[2,null]})})},t.prototype.resolveSubSelectedArray=function(e,r,n,i){var a=this;return Promise.all(n.map(function(o){if(o===null)return null;if(Array.isArray(o))return a.resolveSubSelectedArray(e,r,o,i);if(e.selectionSet)return a.resolveSelectionSet(e.selectionSet,r,o,i)}))},t.prototype.collectSelectionsToResolve=function(e,r){var n=function(o){return!Array.isArray(o)},i=this.selectionsToResolveCache;function a(o){if(!i.has(o)){var u=new Set;i.set(o,u),qn(o,{Directive:function(l,f,d,h,p){l.name.value==="client"&&p.forEach(function(v){n(v)&&_0(v)&&u.add(v)})},FragmentSpread:function(l,f,d,h,p){var v=r[l.name.value];Pe(v,20,l.name.value);var m=a(v);m.size>0&&(p.forEach(function(y){n(y)&&_0(y)&&u.add(y)}),u.add(l),m.forEach(function(y){u.add(y)}))}})}return i.get(o)}return a(e)},t}(),fb=!1,db=function(){function t(e){var r=this,n;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw Lr(16);var i=e.uri,a=e.credentials,o=e.headers,u=e.cache,l=e.documentTransform,f=e.ssrMode,d=f===void 0?!1:f,h=e.ssrForceFetchDelay,p=h===void 0?0:h,v=e.connectToDevTools,m=e.queryDeduplication,y=m===void 0?!0:m,b=e.defaultOptions,w=e.defaultContext,E=e.assumeImmutableResults,S=E===void 0?u.assumeImmutableResults:E,C=e.resolvers,_=e.typeDefs,T=e.fragmentMatcher,O=e.name,k=e.version,P=e.devtools,N=e.dataMasking,M=e.link;M||(M=i?new R4({uri:i,credentials:a,headers:o}):zn.empty()),this.link=M,this.cache=u,this.disableNetworkFetches=d||p>0,this.queryDeduplication=y,this.defaultOptions=b||Object.create(null),this.typeDefs=_,this.devtoolsConfig=ee(ee({},P),{enabled:(n=P==null?void 0:P.enabled)!==null&&n!==void 0?n:v}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),p&&setTimeout(function(){return r.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=md,this.localState=new n8({cache:u,client:this,resolvers:C,fragmentMatcher:T}),this.queryManager=new r8({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:w,documentTransform:l,queryDeduplication:y,ssrMode:d,dataMasking:!!N,clientAwareness:{name:O,version:k},localState:this.localState,assumeImmutableResults:S,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return t.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var e=window,r=Symbol.for("apollo.devtools");(e[r]=e[r]||[]).push(this),e.__APOLLO_CLIENT__=this,!fb&&globalThis.__DEV__!==!1&&(fb=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,i=n&&n.userAgent,a=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&globalThis.__DEV__!==!1&&Pe.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(t.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Ta(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=ee(ee({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=Ta(this.defaultOptions.query,e)),Pe(e.fetchPolicy!=="cache-and-network",17),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=ee(ee({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Ta(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},t.prototype.subscribe=function(e){var r=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return ee(ee({},i),{data:r.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:n})})})},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!1),this.cache.readQuery(e,r)},t.prototype.watchFragment=function(e){var r;return this.cache.watchFragment(ee(ee({},e),(r={},r[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,r)))},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!1),this.cache.readFragment(e,r)},t.prototype.writeQuery=function(e){var r=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.writeFragment=function(e){var r=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},t.prototype.__requestRaw=function(e){return Kd(this.link,e)},t.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(r){return r()}))}).then(function(){return e.reFetchObservableQueries()})},t.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(r){return r()}))})},t.prototype.onResetStore=function(e){var r=this;return this.resetStoreCallbacks.push(e),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.onClearStore=function(e){var r=this;return this.clearStoreCallbacks.push(e),function(){r.clearStoreCallbacks=r.clearStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},t.prototype.refetchQueries=function(e){var r=this.queryManager.refetchQueries(e),n=[],i=[];r.forEach(function(o,u){n.push(u),i.push(o)});var a=Promise.all(i);return a.queries=n,a.results=i,a.catch(function(o){globalThis.__DEV__!==!1&&Pe.debug(18,o)}),a},t.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},t.prototype.extract=function(e){return this.cache.extract(e)},t.prototype.restore=function(e){return this.cache.restore(e)},t.prototype.addResolvers=function(e){this.localState.addResolvers(e)},t.prototype.setResolvers=function(e){this.localState.setResolvers(e)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},t.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(t.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),t}();globalThis.__DEV__!==!1&&(db.prototype.getMemoryInternals=XT);var vh={exports:{}},hb;function i8(){return hb||(hb=1,function(t){t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(t.exports,q)}(vh)),vh.exports}var Ze=i8();const pb=sT({__proto__:null,default:wi(Ze)},[Ze]);var vb=Sd?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function gh(){Pe("createContext"in pb,54);var t=Ze.createContext[vb];return t||(Object.defineProperty(Ze.createContext,vb,{value:t=Ze.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}var a8=function(t){var e=t.client,r=t.children,n=gh(),i=Ze.useContext(n),a=Ze.useMemo(function(){return ee(ee({},i),{client:e||i.client})},[i,e]);return Pe(a.client,55),Ze.createElement(n.Provider,{value:a},r)};function mh(t){var e=Ze.useContext(gh()),r=t||e.client;return Pe(!!r,58),r}var gb=!1,o8="useSyncExternalStore",s8=pb[o8],mb=s8||function(t,e,r){var n=e();globalThis.__DEV__!==!1&&!gb&&n!==e()&&(gb=!0,globalThis.__DEV__!==!1&&Pe.error(68));var i=Ze.useState({inst:{value:n,getSnapshot:e}}),a=i[0].inst,o=i[1];return qT?Ze.useLayoutEffect(function(){Object.assign(a,{value:n,getSnapshot:e}),yh(a)&&o({inst:a})},[t,n,e]):Object.assign(a,{value:n,getSnapshot:e}),Ze.useEffect(function(){return yh(a)&&o({inst:a}),t(function(){yh(a)&&o({inst:a})})},[t]),n};function yh(t){var e=t.value,r=t.getSnapshot;try{return e!==r()}catch{return!0}}var Hn;(function(t){t[t.Query=0]="Query",t[t.Mutation=1]="Mutation",t[t.Subscription=2]="Subscription"})(Hn||(Hn={}));var Oa;function yb(t){var e;switch(t){case Hn.Query:e="Query";break;case Hn.Mutation:e="Mutation";break;case Hn.Subscription:e="Subscription";break}return e}function bb(t){Oa||(Oa=new Od(ri.parser||1e3));var e=Oa.get(t);if(e)return e;var r,n,i;Pe(!!t&&!!t.kind,70,t);for(var a=[],o=[],u=[],l=[],f=0,d=t.definitions;f<d.length;f++){var h=d[f];if(h.kind==="FragmentDefinition"){a.push(h);continue}if(h.kind==="OperationDefinition")switch(h.operation){case"query":o.push(h);break;case"mutation":u.push(h);break;case"subscription":l.push(h);break}}Pe(!a.length||o.length||u.length||l.length,71),Pe(o.length+u.length+l.length<=1,72,t,o.length,l.length,u.length),n=o.length?Hn.Query:Hn.Mutation,!o.length&&!u.length&&(n=Hn.Subscription);var p=o.length?o:u.length?u:l;Pe(p.length===1,73,t,p.length);var v=p[0];r=v.variableDefinitions||[],v.name&&v.name.kind==="Name"?i=v.name.value:i="data";var m={name:i,type:n,variables:r};return Oa.set(t,m),m}bb.resetCache=function(){Oa=void 0},globalThis.__DEV__!==!1&&Rd("parser",function(){return Oa?Oa.size:0});function bh(t,e){var r=bb(t),n=yb(e),i=yb(r.type);Pe(r.type===e,74,n,n,i)}function u8(t,e){var r=Ze.useRef(void 0);return(!r.current||!Et(r.current.deps,e))&&(r.current={value:t(),deps:e}),r.current.value}var Pl=S0?Ze.useLayoutEffect:Ze.useEffect,l8=Object.prototype.hasOwnProperty;function _b(){}var Nl=Symbol();function c8(t,e,r,n,i){function a(h){var p;bh(e,Hn.Query);var v={client:t,query:e,observable:n&&n.getSSRObservable(i())||Ks.inactiveOnCreation.withValue(!n,function(){return t.watchQuery(_h(void 0,t,r,i()))}),resultData:{previousData:(p=h==null?void 0:h.resultData.current)===null||p===void 0?void 0:p.data}};return v}var o=Ze.useState(a),u=o[0],l=o[1];function f(h){var p,v;Object.assign(u.observable,(p={},p[Nl]=h,p));var m=u.resultData;l(ee(ee({},u),{query:h.query,resultData:Object.assign(m,{previousData:((v=m.current)===null||v===void 0?void 0:v.data)||m.previousData,current:void 0})}))}if(t!==u.client||e!==u.query){var d=a(u);return l(d),[d,f]}return[u,f]}function f8(t,e){var r=mh(e.client),n=Ze.useContext(gh()).renderPromises,i=!!n,a=r.disableNetworkFetches,o=e.ssr!==!1&&!e.skip,u=e.partialRefetch,l=wb(r,t,e,i),f=c8(r,t,e,n,l),d=f[0],h=d.observable,p=d.resultData,v=f[1],m=l(h);p8(p,h,r,e,m);var y=Ze.useMemo(function(){return m8(h)},[h]);h8(h,n,o);var b=d8(p,h,r,e,m,a,u,i,{onCompleted:e.onCompleted||_b,onError:e.onError||_b});return{result:b,obsQueryFields:y,observable:h,resultData:p,client:r,onQueryExecuted:v}}function d8(t,e,r,n,i,a,o,u,l){var f=Ze.useRef(l);Ze.useEffect(function(){f.current=l});var d=(u||a)&&n.ssr===!1&&!n.skip?xb:n.skip||i.fetchPolicy==="standby"?Cb:void 0,h=t.previousData,p=Ze.useMemo(function(){return d&&Il(d,h,e,r)},[r,e,d,h]);return mb(Ze.useCallback(function(v){if(u)return function(){};var m=function(){var w=t.current,E=e.getCurrentResult();w&&w.loading===E.loading&&w.networkStatus===E.networkStatus&&Et(w.data,E.data)||wh(E,t,e,r,o,v,f.current)},y=function(w){if(b.current.unsubscribe(),b.current=e.resubscribeAfterError(m,y),!l8.call(w,"graphQLErrors"))throw w;var E=t.current;(!E||E&&E.loading||!Et(w,E.error))&&wh({data:E&&E.data,error:w,loading:!1,networkStatus:_t.error},t,e,r,o,v,f.current)},b={current:e.subscribe(m,y)};return function(){setTimeout(function(){return b.current.unsubscribe()})}},[a,u,e,t,o,r]),function(){return p||Eb(t,e,f.current,o,r)},function(){return p||Eb(t,e,f.current,o,r)})}function h8(t,e,r){e&&r&&(e.registerSSRObservable(t),t.getCurrentResult().loading&&e.addObservableQueryPromise(t))}function p8(t,e,r,n,i){var a;e[Nl]&&!Et(e[Nl],i)&&(e.reobserve(_h(e,r,n,i)),t.previousData=((a=t.current)===null||a===void 0?void 0:a.data)||t.previousData,t.current=void 0),e[Nl]=i}function wb(t,e,r,n){r===void 0&&(r={});var i=r.skip;r.ssr,r.onCompleted,r.onError;var a=r.defaultOptions,o=bn(r,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(u){var l=Object.assign(o,{query:e});return n&&(l.fetchPolicy==="network-only"||l.fetchPolicy==="cache-and-network")&&(l.fetchPolicy="cache-first"),l.variables||(l.variables={}),i?(l.initialFetchPolicy=l.initialFetchPolicy||l.fetchPolicy||Eh(a,t.defaultOptions),l.fetchPolicy="standby"):l.fetchPolicy||(l.fetchPolicy=(u==null?void 0:u.options.initialFetchPolicy)||Eh(a,t.defaultOptions)),l}}function _h(t,e,r,n){var i=[],a=e.defaultOptions.watchQuery;return a&&i.push(a),r.defaultOptions&&i.push(r.defaultOptions),i.push(Ca(t&&t.options,n)),i.reduce(Ta)}function wh(t,e,r,n,i,a,o){var u=e.current;u&&u.data&&(e.previousData=u.data),!t.error&&_n(t.errors)&&(t.error=new tn({graphQLErrors:t.errors})),e.current=Il(g8(t,r,i),e.previousData,r,n),a(),v8(t,u==null?void 0:u.networkStatus,o)}function v8(t,e,r){if(!t.loading){var n=Sb(t);Promise.resolve().then(function(){n?r.onError(n):t.data&&e!==t.networkStatus&&t.networkStatus===_t.ready&&r.onCompleted(t.data)}).catch(function(i){globalThis.__DEV__!==!1&&Pe.warn(i)})}}function Eb(t,e,r,n,i){return t.current||wh(e.getCurrentResult(),t,e,i,n,function(){},r),t.current}function Eh(t,e){var r;return(t==null?void 0:t.fetchPolicy)||((r=e==null?void 0:e.watchQuery)===null||r===void 0?void 0:r.fetchPolicy)||"cache-first"}function Sb(t){return _n(t.errors)?new tn({graphQLErrors:t.errors}):t.error}function Il(t,e,r,n){var i=t.data;t.partial;var a=bn(t,["data","partial"]),o=ee(ee({data:i},a),{client:n,observable:r,variables:r.variables,called:t!==xb&&t!==Cb,previousData:e});return o}function g8(t,e,r){return t.partial&&r&&!t.loading&&(!t.data||Object.keys(t.data).length===0)&&e.options.fetchPolicy!=="cache-only"?(e.refetch(),ee(ee({},t),{loading:!0,networkStatus:_t.refetch})):t}var xb=Eo({loading:!0,data:void 0,error:void 0,networkStatus:_t.loading}),Cb=Eo({loading:!1,data:void 0,error:void 0,networkStatus:_t.ready});function m8(t){return{refetch:t.refetch.bind(t),reobserve:t.reobserve.bind(t),fetchMore:t.fetchMore.bind(t),updateQuery:t.updateQuery.bind(t),startPolling:t.startPolling.bind(t),stopPolling:t.stopPolling.bind(t),subscribeToMore:t.subscribeToMore.bind(t)}}var y8=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function Ra(t,e){var r,n=Ze.useRef(void 0),i=Ze.useRef(void 0),a=Ze.useRef(void 0),o=Ta(e,n.current||{}),u=(r=o==null?void 0:o.query)!==null&&r!==void 0?r:t;i.current=e,a.current=u;var l=ee(ee({},o),{skip:!n.current}),f=f8(u,l),d=f.obsQueryFields,h=f.result,p=f.client,v=f.resultData,m=f.observable,y=f.onQueryExecuted,b=m.options.initialFetchPolicy||Eh(l.defaultOptions,p.defaultOptions),w=Ze.useReducer(function(k){return k+1},0)[1],E=Ze.useMemo(function(){for(var k={},P=function(H){var L=d[H];k[H]=function(){return n.current||(n.current=Object.create(null),w()),L.apply(this,arguments)}},N=0,M=y8;N<M.length;N++){var z=M[N];P(z)}return k},[w,d]),S=!!n.current,C=Ze.useMemo(function(){return ee(ee(ee({},h),E),{called:S})},[h,E,S]),_=Ze.useCallback(function(k){n.current=k?ee(ee({},k),{fetchPolicy:k.fetchPolicy||b}):{fetchPolicy:b};var P=Ta(i.current,ee({query:a.current},n.current)),N=b8(v,m,p,u,ee(ee({},P),{skip:!1}),y).then(function(M){return Object.assign(M,E)});return N.catch(function(){}),N},[p,u,E,b,m,v,y]),T=Ze.useRef(_);Pl(function(){T.current=_});var O=Ze.useCallback(function(){for(var k=[],P=0;P<arguments.length;P++)k[P]=arguments[P];return T.current.apply(T,k)},[]);return[O,C]}function b8(t,e,r,n,i,a){var o=i.query||n,u=wb(r,o,i,!1)(e),l=e.reobserveAsConcast(_h(e,r,i,u));return a(u),new Promise(function(f){var d;l.subscribe({next:function(h){d=h},error:function(){f(Il(e.getCurrentResult(),t.previousData,e,r))},complete:function(){f(Il(e.maskResult(d),t.previousData,e,r))}})})}function ka(t,e){var r=mh(void 0);bh(t,Hn.Mutation);var n=Ze.useState({called:!1,loading:!1,client:r}),i=n[0],a=n[1],o=Ze.useRef({result:i,mutationId:0,isMounted:!0,client:r,mutation:t,options:e});Pl(function(){Object.assign(o.current,{client:r,options:e,mutation:t})});var u=Ze.useCallback(function(f){f===void 0&&(f={});var d=o.current,h=d.options,p=d.mutation,v=ee(ee({},h),{mutation:p}),m=f.client||o.current.client;!o.current.result.loading&&!v.ignoreResults&&o.current.isMounted&&a(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:m});var y=++o.current.mutationId,b=Ta(v,f);return m.mutate(b).then(function(w){var E,S,C=w.data,_=w.errors,T=_&&_.length>0?new tn({graphQLErrors:_}):void 0,O=f.onError||((E=o.current.options)===null||E===void 0?void 0:E.onError);if(T&&O&&O(T,b),y===o.current.mutationId&&!b.ignoreResults){var k={called:!0,loading:!1,data:C,error:T,client:m};o.current.isMounted&&!Et(o.current.result,k)&&a(o.current.result=k)}var P=f.onCompleted||((S=o.current.options)===null||S===void 0?void 0:S.onCompleted);return T||P==null||P(w.data,b),w},function(w){var E;if(y===o.current.mutationId&&o.current.isMounted){var S={loading:!1,error:w,data:void 0,called:!0,client:m};Et(o.current.result,S)||a(o.current.result=S)}var C=f.onError||((E=o.current.options)===null||E===void 0?void 0:E.onError);if(C)return C(w,b),{data:void 0,errors:w};throw w})},[]),l=Ze.useCallback(function(){if(o.current.isMounted){var f={called:!1,loading:!1,client:o.current.client};Object.assign(o.current,{mutationId:0,result:f}),a(f)}},[]);return Ze.useEffect(function(){var f=o.current;return f.isMounted=!0,function(){f.isMounted=!1}},[]),[u,ee({reset:l},i)]}function _8(t,e){e===void 0&&(e=Object.create(null));var r=Ze.useRef(!1),n=mh(e.client);bh(t,Hn.Subscription),r.current||(r.current=!0,e.onSubscriptionData&&globalThis.__DEV__!==!1&&Pe.warn(e.onData?61:62),e.onSubscriptionComplete&&globalThis.__DEV__!==!1&&Pe.warn(e.onComplete?63:64));var i=e.skip,a=e.fetchPolicy,o=e.errorPolicy,u=e.shouldResubscribe,l=e.context,f=e.extensions,d=e.ignoreResults,h=u8(function(){return e.variables},[e.variables]),p=function(){return w8(n,t,h,a,o,l,f)},v=Ze.useState(e.skip?null:p),m=v[0],y=v[1],b=Ze.useRef(p);Pl(function(){b.current=p}),i?m&&y(m=null):(!m||(n!==m.__.client||t!==m.__.query||a!==m.__.fetchPolicy||o!==m.__.errorPolicy||!Et(h,m.__.variables))&&(typeof u=="function"?!!u(e):u)!==!1)&&y(m=p());var w=Ze.useRef(e);Ze.useEffect(function(){w.current=e});var E=!i&&!d,S=Ze.useMemo(function(){return{loading:E,error:void 0,data:void 0,variables:h}},[E,h]),C=Ze.useRef(d);Pl(function(){C.current=d});var _=mb(Ze.useCallback(function(O){if(!m)return function(){};var k=!1,P=m.__.variables,N=m.__.client,M=m.subscribe({next:function(z){var H,L;if(!k){var F={loading:!1,data:z.data,error:Sb(z),variables:P};m.__.setResult(F),C.current||O(),F.error?(L=(H=w.current).onError)===null||L===void 0||L.call(H,F.error):w.current.onData?w.current.onData({client:N,data:F}):w.current.onSubscriptionData&&w.current.onSubscriptionData({client:N,subscriptionData:F})}},error:function(z){var H,L;z=z instanceof tn?z:new tn({protocolErrors:[z]}),k||(m.__.setResult({loading:!1,data:void 0,error:z,variables:P}),C.current||O(),(L=(H=w.current).onError)===null||L===void 0||L.call(H,z))},complete:function(){k||(w.current.onComplete?w.current.onComplete():w.current.onSubscriptionComplete&&w.current.onSubscriptionComplete())}});return function(){k=!0,setTimeout(function(){M.unsubscribe()})}},[m]),function(){return m&&!i&&!d?m.__.result:S},function(){return S}),T=Ze.useCallback(function(){Pe(!w.current.skip,65),y(b.current())},[w,b]);return Ze.useMemo(function(){return ee(ee({},_),{restart:T})},[_,T])}function w8(t,e,r,n,i,a,o){var u={query:e,variables:r,fetchPolicy:n,errorPolicy:i,context:a,extensions:o},l=ee(ee({},u),{client:t,result:{loading:!0,data:void 0,error:void 0,variables:r},setResult:function(d){l.result=d}}),f=null;return Object.assign(new kt(function(d){f||(f=t.subscribe(u));var h=f.subscribe(d);return function(){return h.unsubscribe()}}),{__:l})}function Tb(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=Tb(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Xi(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=Tb(t))&&(n&&(n+=" "),n+=e);return n}const Xs=t=>typeof t=="number"&&!isNaN(t),Aa=t=>typeof t=="string",rn=t=>typeof t=="function",Ll=t=>Aa(t)||rn(t)?t:null,Sh=t=>q.isValidElement(t)||Aa(t)||rn(t)||Xs(t);function E8(t,e,r){r===void 0&&(r=300);const{scrollHeight:n,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,r)})})}function Ml(t){let{enter:e,exit:r,appendPosition:n=!1,collapse:i=!0,collapseDuration:a=300}=t;return function(o){let{children:u,position:l,preventExitTransition:f,done:d,nodeRef:h,isIn:p,playToast:v}=o;const m=n?`${e}--${l}`:e,y=n?`${r}--${l}`:r,b=q.useRef(0);return q.useLayoutEffect(()=>{const w=h.current,E=m.split(" "),S=C=>{C.target===h.current&&(v(),w.removeEventListener("animationend",S),w.removeEventListener("animationcancel",S),b.current===0&&C.type!=="animationcancel"&&w.classList.remove(...E))};w.classList.add(...E),w.addEventListener("animationend",S),w.addEventListener("animationcancel",S)},[]),q.useEffect(()=>{const w=h.current,E=()=>{w.removeEventListener("animationend",E),i?E8(w,d,a):d()};p||(f?E():(b.current=1,w.className+=` ${y}`,w.addEventListener("animationend",E)))},[p]),q.createElement(q.Fragment,null,u)}}function Ob(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const Mr=new Map;let Zs=[];const xh=new Set,S8=t=>xh.forEach(e=>e(t)),Rb=()=>Mr.size>0;function kb(t,e){var r;if(e)return!((r=Mr.get(e))==null||!r.isToastActive(t));let n=!1;return Mr.forEach(i=>{i.isToastActive(t)&&(n=!0)}),n}function Ab(t,e){Sh(t)&&(Rb()||Zs.push({content:t,options:e}),Mr.forEach(r=>{r.buildToast(t,e)}))}function Pb(t,e){Mr.forEach(r=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===r.id&&r.toggle(t,e==null?void 0:e.id):r.toggle(t,e==null?void 0:e.id)})}function x8(t){const{subscribe:e,getSnapshot:r,setProps:n}=q.useRef(function(a){const o=a.containerId||1;return{subscribe(u){const l=function(d,h,p){let v=1,m=0,y=[],b=[],w=[],E=h;const S=new Map,C=new Set,_=()=>{w=Array.from(S.values()),C.forEach(k=>k())},T=k=>{b=k==null?[]:b.filter(P=>P!==k),_()},O=k=>{const{toastId:P,onOpen:N,updateId:M,children:z}=k.props,H=M==null;k.staleId&&S.delete(k.staleId),S.set(P,k),b=[...b,k.props.toastId].filter(L=>L!==k.staleId),_(),p(Ob(k,H?"added":"updated")),H&&rn(N)&&N(q.isValidElement(z)&&z.props)};return{id:d,props:E,observe:k=>(C.add(k),()=>C.delete(k)),toggle:(k,P)=>{S.forEach(N=>{P!=null&&P!==N.props.toastId||rn(N.toggle)&&N.toggle(k)})},removeToast:T,toasts:S,clearQueue:()=>{m-=y.length,y=[]},buildToast:(k,P)=>{if((ae=>{let{containerId:ie,toastId:te,updateId:fe}=ae;const ue=ie?ie!==d:d!==1,W=S.has(te)&&fe==null;return ue||W})(P))return;const{toastId:N,updateId:M,data:z,staleId:H,delay:L}=P,F=()=>{T(N)},U=M==null;U&&m++;const Y={...E,style:E.toastStyle,key:v++,...Object.fromEntries(Object.entries(P).filter(ae=>{let[ie,te]=ae;return te!=null})),toastId:N,updateId:M,data:z,closeToast:F,isIn:!1,className:Ll(P.className||E.toastClassName),bodyClassName:Ll(P.bodyClassName||E.bodyClassName),progressClassName:Ll(P.progressClassName||E.progressClassName),autoClose:!P.isLoading&&(V=P.autoClose,K=E.autoClose,V===!1||Xs(V)&&V>0?V:K),deleteToast(){const ae=S.get(N),{onClose:ie,children:te}=ae.props;rn(ie)&&ie(q.isValidElement(te)&&te.props),p(Ob(ae,"removed")),S.delete(N),m--,m<0&&(m=0),y.length>0?O(y.shift()):_()}};var V,K;Y.closeButton=E.closeButton,P.closeButton===!1||Sh(P.closeButton)?Y.closeButton=P.closeButton:P.closeButton===!0&&(Y.closeButton=!Sh(E.closeButton)||E.closeButton);let $=k;q.isValidElement(k)&&!Aa(k.type)?$=q.cloneElement(k,{closeToast:F,toastProps:Y,data:z}):rn(k)&&($=k({closeToast:F,toastProps:Y,data:z}));const Q={content:$,props:Y,staleId:H};E.limit&&E.limit>0&&m>E.limit&&U?y.push(Q):Xs(L)?setTimeout(()=>{O(Q)},L):O(Q)},setProps(k){E=k},setToggle:(k,P)=>{S.get(k).toggle=P},isToastActive:k=>b.some(P=>P===k),getSnapshot:()=>w}}(o,a,S8);Mr.set(o,l);const f=l.observe(u);return Zs.forEach(d=>Ab(d.content,d.options)),Zs=[],()=>{f(),Mr.delete(o)}},setProps(u){var l;(l=Mr.get(o))==null||l.setProps(u)},getSnapshot(){var u;return(u=Mr.get(o))==null?void 0:u.getSnapshot()}}}(t)).current;n(t);const i=q.useSyncExternalStore(e,r,r);return{getToastToRender:function(a){if(!i)return[];const o=new Map;return t.newestOnTop&&i.reverse(),i.forEach(u=>{const{position:l}=u.props;o.has(l)||o.set(l,[]),o.get(l).push(u)}),Array.from(o,u=>a(u[0],u[1]))},isToastActive:kb,count:i==null?void 0:i.length}}function C8(t){const[e,r]=q.useState(!1),[n,i]=q.useState(!1),a=q.useRef(null),o=q.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:l,closeToast:f,onClick:d,closeOnClick:h}=t;var p,v;function m(){r(!0)}function y(){r(!1)}function b(S){const C=a.current;o.canDrag&&C&&(o.didMove=!0,e&&y(),o.delta=t.draggableDirection==="x"?S.clientX-o.start:S.clientY-o.start,o.start!==S.clientX&&(o.canCloseOnClick=!1),C.style.transform=`translate3d(${t.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,C.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function w(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",w);const S=a.current;if(o.canDrag&&o.didMove&&S){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();S.style.transition="transform 0.2s, opacity 0.2s",S.style.removeProperty("transform"),S.style.removeProperty("opacity")}}(v=Mr.get((p={id:t.toastId,containerId:t.containerId,fn:r}).containerId||1))==null||v.setToggle(p.id,p.fn),q.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",m),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",y)}},[t.pauseOnFocusLoss]);const E={onPointerDown:function(S){if(t.draggable===!0||t.draggable===S.pointerType){o.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",w);const C=a.current;o.canCloseOnClick=!0,o.canDrag=!0,C.style.transition="none",t.draggableDirection==="x"?(o.start=S.clientX,o.removalDistance=C.offsetWidth*(t.draggablePercent/100)):(o.start=S.clientY,o.removalDistance=C.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(S){const{top:C,bottom:_,left:T,right:O}=a.current.getBoundingClientRect();S.nativeEvent.type!=="touchend"&&t.pauseOnHover&&S.clientX>=T&&S.clientX<=O&&S.clientY>=C&&S.clientY<=_?y():m()}};return u&&l&&(E.onMouseEnter=y,t.stacked||(E.onMouseLeave=m)),h&&(E.onClick=S=>{d&&d(S),o.canCloseOnClick&&f()}),{playToast:m,pauseToast:y,isRunning:e,preventExitTransition:n,toastRef:a,eventHandlers:E}}function T8(t){let{delay:e,isRunning:r,closeToast:n,type:i="default",hide:a,className:o,style:u,controlledProgress:l,progress:f,rtl:d,isIn:h,theme:p}=t;const v=a||l&&f===0,m={...u,animationDuration:`${e}ms`,animationPlayState:r?"running":"paused"};l&&(m.transform=`scaleX(${f})`);const y=Xi("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),b=rn(o)?o({rtl:d,type:i,defaultClassName:y}):Xi(y,o),w={[l&&f>=1?"onTransitionEnd":"onAnimationEnd"]:l&&f<1?null:()=>{h&&n()}};return q.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":v},q.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${i}`}),q.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:b,style:m,...w}))}let O8=1;const Nb=()=>""+O8++;function R8(t){return t&&(Aa(t.toastId)||Xs(t.toastId))?t.toastId:Nb()}function Js(t,e){return Ab(t,e),e.toastId}function Dl(t,e){return{...e,type:e&&e.type||t,toastId:R8(e)}}function Fl(t){return(e,r)=>Js(e,Dl(t,r))}function $t(t,e){return Js(t,Dl("default",e))}$t.loading=(t,e)=>Js(t,Dl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),$t.promise=function(t,e,r){let n,{pending:i,error:a,success:o}=e;i&&(n=Aa(i)?$t.loading(i,r):$t.loading(i.render,{...r,...i}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(d,h,p)=>{if(h==null)return void $t.dismiss(n);const v={type:d,...u,...r,data:p},m=Aa(h)?{render:h}:h;return n?$t.update(n,{...v,...m}):$t(m.render,{...v,...m}),p},f=rn(t)?t():t;return f.then(d=>l("success",o,d)).catch(d=>l("error",a,d)),f},$t.success=Fl("success"),$t.info=Fl("info"),$t.error=Fl("error"),$t.warning=Fl("warning"),$t.warn=$t.warning,$t.dark=(t,e)=>Js(t,Dl("default",{theme:"dark",...e})),$t.dismiss=function(t){(function(e){var r;if(Rb()){if(e==null||Aa(r=e)||Xs(r))Mr.forEach(n=>{n.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const n=Mr.get(e.containerId);n?n.removeToast(e.id):Mr.forEach(i=>{i.removeToast(e.id)})}}else Zs=Zs.filter(n=>e!=null&&n.options.toastId!==e)})(t)},$t.clearWaitingQueue=function(t){t===void 0&&(t={}),Mr.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},$t.isActive=kb,$t.update=function(t,e){e===void 0&&(e={});const r=((n,i)=>{var a;let{containerId:o}=i;return(a=Mr.get(o||1))==null?void 0:a.toasts.get(n)})(t,e);if(r){const{props:n,content:i}=r,a={delay:100,...n,...e,toastId:e.toastId||t,updateId:Nb()};a.toastId!==t&&(a.staleId=t);const o=a.render||i;delete a.render,Js(o,a)}},$t.done=t=>{$t.update(t,{progress:1})},$t.onChange=function(t){return xh.add(t),()=>{xh.delete(t)}},$t.play=t=>Pb(!0,t),$t.pause=t=>Pb(!1,t);const k8=typeof window<"u"?q.useLayoutEffect:q.useEffect,jl=t=>{let{theme:e,type:r,isLoading:n,...i}=t;return q.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...i})},Ch={info:function(t){return q.createElement(jl,{...t},q.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return q.createElement(jl,{...t},q.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return q.createElement(jl,{...t},q.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return q.createElement(jl,{...t},q.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return q.createElement("div",{className:"Toastify__spinner"})}},A8=t=>{const{isRunning:e,preventExitTransition:r,toastRef:n,eventHandlers:i,playToast:a}=C8(t),{closeButton:o,children:u,autoClose:l,onClick:f,type:d,hideProgressBar:h,closeToast:p,transition:v,position:m,className:y,style:b,bodyClassName:w,bodyStyle:E,progressClassName:S,progressStyle:C,updateId:_,role:T,progress:O,rtl:k,toastId:P,deleteToast:N,isIn:M,isLoading:z,closeOnClick:H,theme:L}=t,F=Xi("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":H}),U=rn(y)?y({rtl:k,position:m,type:d,defaultClassName:F}):Xi(F,y),Y=function(Q){let{theme:ae,type:ie,isLoading:te,icon:fe}=Q,ue=null;const W={theme:ae,type:ie};return fe===!1||(rn(fe)?ue=fe({...W,isLoading:te}):q.isValidElement(fe)?ue=q.cloneElement(fe,W):te?ue=Ch.spinner():(de=>de in Ch)(ie)&&(ue=Ch[ie](W))),ue}(t),V=!!O||!l,K={closeToast:p,type:d,theme:L};let $=null;return o===!1||($=rn(o)?o(K):q.isValidElement(o)?q.cloneElement(o,K):function(Q){let{closeToast:ae,theme:ie,ariaLabel:te="close"}=Q;return q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ie}`,type:"button",onClick:fe=>{fe.stopPropagation(),ae(fe)},"aria-label":te},q.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},q.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(K)),q.createElement(v,{isIn:M,done:N,position:m,preventExitTransition:r,nodeRef:n,playToast:a},q.createElement("div",{id:P,onClick:f,"data-in":M,className:U,...i,style:b,ref:n},q.createElement("div",{...M&&{role:T},className:rn(w)?w({type:d}):Xi("Toastify__toast-body",w),style:E},Y!=null&&q.createElement("div",{className:Xi("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!z})},Y),q.createElement("div",null,u)),$,q.createElement(T8,{..._&&!V?{key:`pb-${_}`}:{},rtl:k,theme:L,delay:l,isRunning:e,isIn:M,closeToast:p,hide:h,type:d,style:C,className:S,controlledProgress:V,progress:O||0})))},$l=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},P8=Ml($l("bounce",!0));Ml($l("slide",!0)),Ml($l("zoom")),Ml($l("flip"));const N8={position:"top-right",transition:P8,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function I8(t){let e={...N8,...t};const r=t.stacked,[n,i]=q.useState(!0),a=q.useRef(null),{getToastToRender:o,isToastActive:u,count:l}=x8(e),{className:f,style:d,rtl:h,containerId:p}=e;function v(y){const b=Xi("Toastify__toast-container",`Toastify__toast-container--${y}`,{"Toastify__toast-container--rtl":h});return rn(f)?f({position:y,rtl:h,defaultClassName:b}):Xi(b,Ll(f))}function m(){r&&(i(!0),$t.play())}return k8(()=>{if(r){var y;const b=a.current.querySelectorAll('[data-in="true"]'),w=12,E=(y=e.position)==null?void 0:y.includes("top");let S=0,C=0;Array.from(b).reverse().forEach((_,T)=>{const O=_;O.classList.add("Toastify__toast--stacked"),T>0&&(O.dataset.collapsed=`${n}`),O.dataset.pos||(O.dataset.pos=E?"top":"bot");const k=S*(n?.2:1)+(n?0:w*T);O.style.setProperty("--y",`${E?k:-1*k}px`),O.style.setProperty("--g",`${w}`),O.style.setProperty("--s",""+(1-(n?C:0))),S+=O.offsetHeight,C+=.025})}},[n,l,r]),q.createElement("div",{ref:a,className:"Toastify",id:p,onMouseEnter:()=>{r&&(i(!1),$t.pause())},onMouseLeave:m},o((y,b)=>{const w=b.length?{...d}:{...d,pointerEvents:"none"};return q.createElement("div",{className:v(y),style:w,key:`container-${y}`},b.map(E=>{let{content:S,props:C}=E;return q.createElement(A8,{...C,stacked:r,collapseAll:m,isIn:u(C.toastId,C.containerId),style:C.style,key:`toast-${C.key}`},S)}))}))}function L8(t){return new zn(function(e,r){var n=bn(e,[]);return new kt(function(i){var a,o=!1;return Promise.resolve(n).then(function(u){return t(u,e.getContext())}).then(e.setContext).then(function(){o||(a=r(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})}/*! js-cookie v3.0.5 | MIT */function ql(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var M8={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Th(t,e){function r(i,a,o){if(!(typeof document>"u")){o=ql({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+t.write(a,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},u=0;u<a.length;u++){var l=a[u].split("="),f=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(o[d]=t.read(f,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",ql({},a,{expires:-1}))},withAttributes:function(i){return Th(this.converter,ql({},this.attributes,i))},withConverter:function(i){return Th(ql({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var ko=Th(M8,{path:"/"}),Ul={exports:{}},D8=Ul.exports,Ib;function F8(){return Ib||(Ib=1,function(t,e){(function(r,n){t.exports=n()})(D8,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",o="second",u="minute",l="hour",f="day",d="week",h="month",p="quarter",v="year",m="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var F=["th","st","nd","rd"],U=L%100;return"["+L+(F[(U-20)%10]||F[U]||F[0])+"]"}},S=function(L,F,U){var Y=String(L);return!Y||Y.length>=F?L:""+Array(F+1-Y.length).join(U)+L},C={s:S,z:function(L){var F=-L.utcOffset(),U=Math.abs(F),Y=Math.floor(U/60),V=U%60;return(F<=0?"+":"-")+S(Y,2,"0")+":"+S(V,2,"0")},m:function L(F,U){if(F.date()<U.date())return-L(U,F);var Y=12*(U.year()-F.year())+(U.month()-F.month()),V=F.clone().add(Y,h),K=U-V<0,$=F.clone().add(Y+(K?-1:1),h);return+(-(Y+(U-V)/(K?V-$:$-V))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:h,y:v,w:d,d:f,D:m,h:l,m:u,s:o,ms:a,Q:p}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},_="en",T={};T[_]=E;var O="$isDayjsObject",k=function(L){return L instanceof z||!(!L||!L[O])},P=function L(F,U,Y){var V;if(!F)return _;if(typeof F=="string"){var K=F.toLowerCase();T[K]&&(V=K),U&&(T[K]=U,V=K);var $=F.split("-");if(!V&&$.length>1)return L($[0])}else{var Q=F.name;T[Q]=F,V=Q}return!Y&&V&&(_=V),V||!Y&&_},N=function(L,F){if(k(L))return L.clone();var U=typeof F=="object"?F:{};return U.date=L,U.args=arguments,new z(U)},M=C;M.l=P,M.i=k,M.w=function(L,F){return N(L,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var z=function(){function L(U){this.$L=P(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[O]=!0}var F=L.prototype;return F.parse=function(U){this.$d=function(Y){var V=Y.date,K=Y.utc;if(V===null)return new Date(NaN);if(M.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var $=V.match(b);if($){var Q=$[2]-1||0,ae=($[7]||"0").substring(0,3);return K?new Date(Date.UTC($[1],Q,$[3]||1,$[4]||0,$[5]||0,$[6]||0,ae)):new Date($[1],Q,$[3]||1,$[4]||0,$[5]||0,$[6]||0,ae)}}return new Date(V)}(U),this.init()},F.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},F.$utils=function(){return M},F.isValid=function(){return this.$d.toString()!==y},F.isSame=function(U,Y){var V=N(U);return this.startOf(Y)<=V&&V<=this.endOf(Y)},F.isAfter=function(U,Y){return N(U)<this.startOf(Y)},F.isBefore=function(U,Y){return this.endOf(Y)<N(U)},F.$g=function(U,Y,V){return M.u(U)?this[Y]:this.set(V,U)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(U,Y){var V=this,K=!!M.u(Y)||Y,$=M.p(U),Q=function(ye,Se){var J=M.w(V.$u?Date.UTC(V.$y,Se,ye):new Date(V.$y,Se,ye),V);return K?J:J.endOf(f)},ae=function(ye,Se){return M.w(V.toDate()[ye].apply(V.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(Se)),V)},ie=this.$W,te=this.$M,fe=this.$D,ue="set"+(this.$u?"UTC":"");switch($){case v:return K?Q(1,0):Q(31,11);case h:return K?Q(1,te):Q(0,te+1);case d:var W=this.$locale().weekStart||0,de=(ie<W?ie+7:ie)-W;return Q(K?fe-de:fe+(6-de),te);case f:case m:return ae(ue+"Hours",0);case l:return ae(ue+"Minutes",1);case u:return ae(ue+"Seconds",2);case o:return ae(ue+"Milliseconds",3);default:return this.clone()}},F.endOf=function(U){return this.startOf(U,!1)},F.$set=function(U,Y){var V,K=M.p(U),$="set"+(this.$u?"UTC":""),Q=(V={},V[f]=$+"Date",V[m]=$+"Date",V[h]=$+"Month",V[v]=$+"FullYear",V[l]=$+"Hours",V[u]=$+"Minutes",V[o]=$+"Seconds",V[a]=$+"Milliseconds",V)[K],ae=K===f?this.$D+(Y-this.$W):Y;if(K===h||K===v){var ie=this.clone().set(m,1);ie.$d[Q](ae),ie.init(),this.$d=ie.set(m,Math.min(this.$D,ie.daysInMonth())).$d}else Q&&this.$d[Q](ae);return this.init(),this},F.set=function(U,Y){return this.clone().$set(U,Y)},F.get=function(U){return this[M.p(U)]()},F.add=function(U,Y){var V,K=this;U=Number(U);var $=M.p(Y),Q=function(te){var fe=N(K);return M.w(fe.date(fe.date()+Math.round(te*U)),K)};if($===h)return this.set(h,this.$M+U);if($===v)return this.set(v,this.$y+U);if($===f)return Q(1);if($===d)return Q(7);var ae=(V={},V[u]=n,V[l]=i,V[o]=r,V)[$]||1,ie=this.$d.getTime()+U*ae;return M.w(ie,this)},F.subtract=function(U,Y){return this.add(-1*U,Y)},F.format=function(U){var Y=this,V=this.$locale();if(!this.isValid())return V.invalidDate||y;var K=U||"YYYY-MM-DDTHH:mm:ssZ",$=M.z(this),Q=this.$H,ae=this.$m,ie=this.$M,te=V.weekdays,fe=V.months,ue=V.meridiem,W=function(Se,J,j,Re){return Se&&(Se[J]||Se(Y,K))||j[J].slice(0,Re)},de=function(Se){return M.s(Q%12||12,Se,"0")},ye=ue||function(Se,J,j){var Re=Se<12?"AM":"PM";return j?Re.toLowerCase():Re};return K.replace(w,function(Se,J){return J||function(j){switch(j){case"YY":return String(Y.$y).slice(-2);case"YYYY":return M.s(Y.$y,4,"0");case"M":return ie+1;case"MM":return M.s(ie+1,2,"0");case"MMM":return W(V.monthsShort,ie,fe,3);case"MMMM":return W(fe,ie);case"D":return Y.$D;case"DD":return M.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return W(V.weekdaysMin,Y.$W,te,2);case"ddd":return W(V.weekdaysShort,Y.$W,te,3);case"dddd":return te[Y.$W];case"H":return String(Q);case"HH":return M.s(Q,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return ye(Q,ae,!0);case"A":return ye(Q,ae,!1);case"m":return String(ae);case"mm":return M.s(ae,2,"0");case"s":return String(Y.$s);case"ss":return M.s(Y.$s,2,"0");case"SSS":return M.s(Y.$ms,3,"0");case"Z":return $}return null}(Se)||$.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(U,Y,V){var K,$=this,Q=M.p(Y),ae=N(U),ie=(ae.utcOffset()-this.utcOffset())*n,te=this-ae,fe=function(){return M.m($,ae)};switch(Q){case v:K=fe()/12;break;case h:K=fe();break;case p:K=fe()/3;break;case d:K=(te-ie)/6048e5;break;case f:K=(te-ie)/864e5;break;case l:K=te/i;break;case u:K=te/n;break;case o:K=te/r;break;default:K=te}return V?K:M.a(K)},F.daysInMonth=function(){return this.endOf(h).$D},F.$locale=function(){return T[this.$L]},F.locale=function(U,Y){if(!U)return this.$L;var V=this.clone(),K=P(U,Y,!0);return K&&(V.$L=K),V},F.clone=function(){return M.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},L}(),H=z.prototype;return N.prototype=H,[["$ms",a],["$s",o],["$m",u],["$H",l],["$W",f],["$M",h],["$y",v],["$D",m]].forEach(function(L){H[L[1]]=function(F){return this.$g(F,L[0],L[1])}}),N.extend=function(L,F){return L.$i||(L(F,z,N),L.$i=!0),N},N.locale=P,N.isDayjs=k,N.unix=function(L){return N(1e3*L)},N.en=T[_],N.Ls=T,N.p={},N})}(Ul)),Ul.exports}var j8=F8();const eu=wi(j8);var zl={exports:{}},$8=zl.exports,Lb;function q8(){return Lb||(Lb=1,function(t,e){(function(r,n){t.exports=n()})($8,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,o,u){var l=o.prototype;u.utc=function(y){var b={date:y,utc:!0,args:arguments};return new o(b)},l.utc=function(y){var b=u(this.toDate(),{locale:this.$L,utc:!0});return y?b.add(this.utcOffset(),r):b},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var f=l.parse;l.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),f.call(this,y)};var d=l.init;l.init=function(){if(this.$u){var y=this.$d;this.$y=y.getUTCFullYear(),this.$M=y.getUTCMonth(),this.$D=y.getUTCDate(),this.$W=y.getUTCDay(),this.$H=y.getUTCHours(),this.$m=y.getUTCMinutes(),this.$s=y.getUTCSeconds(),this.$ms=y.getUTCMilliseconds()}else d.call(this)};var h=l.utcOffset;l.utcOffset=function(y,b){var w=this.$utils().u;if(w(y))return this.$u?0:w(this.$offset)?h.call(this):this.$offset;if(typeof y=="string"&&(y=function(_){_===void 0&&(_="");var T=_.match(n);if(!T)return null;var O=(""+T[0]).match(i)||["-",0,0],k=O[0],P=60*+O[1]+ +O[2];return P===0?0:k==="+"?P:-P}(y),y===null))return this;var E=Math.abs(y)<=16?60*y:y,S=this;if(b)return S.$offset=E,S.$u=y===0,S;if(y!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(S=this.local().add(E+C,r)).$offset=E,S.$x.$localOffset=C}else S=this.utc();return S};var p=l.format;l.format=function(y){var b=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,b)},l.valueOf=function(){var y=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*y},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var v=l.toDate;l.toDate=function(y){return y==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var m=l.diff;l.diff=function(y,b,w){if(y&&this.$u===y.$u)return m.call(this,y,b,w);var E=this.local(),S=u(y).local();return m.call(E,S,b,w)}}})}(zl)),zl.exports}var U8=q8();const z8=wi(U8);class H8 extends Error{}H8.prototype.name="InvalidTokenError";var tu={exports:{}};/**
|
|
59
|
+
* @license
|
|
60
|
+
* Lodash <https://lodash.com/>
|
|
61
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
62
|
+
* Released under MIT license <https://lodash.com/license>
|
|
63
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
64
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
65
|
+
*/var V8=tu.exports,Mb;function B8(){return Mb||(Mb=1,function(t,e){(function(){var r,n="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",h=1,p=2,v=4,m=1,y=2,b=1,w=2,E=4,S=8,C=16,_=32,T=64,O=128,k=256,P=512,N=30,M="...",z=800,H=16,L=1,F=2,U=3,Y=1/0,V=9007199254740991,K=17976931348623157e292,$=NaN,Q=4294967295,ae=Q-1,ie=Q>>>1,te=[["ary",O],["bind",b],["bindKey",w],["curry",S],["curryRight",C],["flip",P],["partial",_],["partialRight",T],["rearg",k]],fe="[object Arguments]",ue="[object Array]",W="[object AsyncFunction]",de="[object Boolean]",ye="[object Date]",Se="[object DOMException]",J="[object Error]",j="[object Function]",Re="[object GeneratorFunction]",oe="[object Map]",xe="[object Number]",Fe="[object Null]",He="[object Object]",Ye="[object Promise]",Xe="[object Proxy]",ht="[object RegExp]",je="[object Set]",Te="[object String]",we="[object Symbol]",ot="[object Undefined]",_e="[object WeakMap]",Ce="[object WeakSet]",he="[object ArrayBuffer]",Ne="[object DataView]",Oe="[object Float32Array]",Me="[object Float64Array]",et="[object Int8Array]",It="[object Int16Array]",Jt="[object Int32Array]",vr="[object Uint8Array]",Oi="[object Uint8ClampedArray]",un="[object Uint16Array]",gr="[object Uint32Array]",Gr=/\b__p \+= '';/g,oa=/\b(__p \+=) '' \+/g,ln=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ui=/&(?:amp|lt|gt|quot|#39);/g,li=/[&<>"']/g,jr=RegExp(ui.source),wr=RegExp(li.source),ci=/<%-([\s\S]+?)%>/g,lr=/<%([\s\S]+?)%>/g,Qr=/<%=([\s\S]+?)%>/g,xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mt=/^\w*$/,$r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yr=/[\\^$.*+?()[\]{}|]/g,fi=RegExp(Yr.source),mr=/^\s+/,sa=/\s/,Ri=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rn=/\{\n\/\* \[wrapped with (.+)\] \*/,G=/,? & /,Ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ke=/[()=,{}\[\]\/\s]/,ze=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vt=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,Ke=/^0b[01]+$/i,Wt=/^\[object .+?Constructor\]$/,Ct=/^0o[0-7]+$/i,qt=/^(?:0|[1-9]\d*)$/,St=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pr=/($^)/,cn=/['\n\r\u2028\u2029\\]/g,Ut="\\ud800-\\udfff",di="\\u0300-\\u036f",Ga="\\ufe20-\\ufe2f",ua="\\u20d0-\\u20ff",Qa=di+Ga+ua,hi="\\u2700-\\u27bf",Ya="a-z\\xdf-\\xf6\\xf8-\\xff",la="\\xac\\xb1\\xd7\\xf7",Kn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ls="\\u2000-\\u206f",cs=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fn="A-Z\\xc0-\\xd6\\xd8-\\xde",Kr="\\ufe0e\\ufe0f",ki=la+Kn+ls+cs,pi="['’]",kn="["+Ut+"]",fs="["+ki+"]",Ai="["+Qa+"]",ds="\\d+",Ka="["+hi+"]",hs="["+Ya+"]",ps="[^"+Ut+ki+ds+hi+Ya+fn+"]",Xa="\\ud83c[\\udffb-\\udfff]",vs="(?:"+Ai+"|"+Xa+")",gs="[^"+Ut+"]",Za="(?:\\ud83c[\\udde6-\\uddff]){2}",ca="[\\ud800-\\udbff][\\udc00-\\udfff]",vi="["+fn+"]",ms="\\u200d",fa="(?:"+hs+"|"+ps+")",An="(?:"+vi+"|"+ps+")",ys="(?:"+pi+"(?:d|ll|m|re|s|t|ve))?",qr="(?:"+pi+"(?:D|LL|M|RE|S|T|VE))?",Ja=vs+"?",Pi="["+Kr+"]?",gi="(?:"+ms+"(?:"+[gs,Za,ca].join("|")+")"+Pi+Ja+")*",mi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",to=Pi+Ja+gi,Hu="(?:"+[Ka,Za,ca].join("|")+")"+to,Vu="(?:"+[gs+Ai+"?",Ai,Za,ca,kn].join("|")+")",Bu=RegExp(pi,"g"),$e=RegExp(Ai,"g"),Ve=RegExp(Xa+"(?="+Xa+")|"+Vu+to,"g"),Vt=RegExp([vi+"?"+hs+"+"+ys+"(?="+[fs,vi,"$"].join("|")+")",An+"+"+qr+"(?="+[fs,vi+fa,"$"].join("|")+")",vi+"?"+fa+"+"+ys,vi+"+"+qr,eo,mi,ds,Hu].join("|"),"g"),ir=RegExp("["+ms+Ut+Qa+Kr+"]"),Gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wu=-1,jt={};jt[Oe]=jt[Me]=jt[et]=jt[It]=jt[Jt]=jt[vr]=jt[Oi]=jt[un]=jt[gr]=!0,jt[fe]=jt[ue]=jt[he]=jt[de]=jt[Ne]=jt[ye]=jt[J]=jt[j]=jt[oe]=jt[xe]=jt[He]=jt[ht]=jt[je]=jt[Te]=jt[_e]=!1;var Tt={};Tt[fe]=Tt[ue]=Tt[he]=Tt[Ne]=Tt[de]=Tt[ye]=Tt[Oe]=Tt[Me]=Tt[et]=Tt[It]=Tt[Jt]=Tt[oe]=Tt[xe]=Tt[He]=Tt[ht]=Tt[je]=Tt[Te]=Tt[we]=Tt[vr]=Tt[Oi]=Tt[un]=Tt[gr]=!0,Tt[J]=Tt[j]=Tt[_e]=!1;var uF={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},lF={"&":"&","<":"<",">":">",'"':""","'":"'"},cF={"&":"&","<":"<",">":">",""":'"',"'":"'"},fF={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dF=parseFloat,hF=parseInt,XC=typeof ul=="object"&&ul&&ul.Object===Object&&ul,pF=typeof self=="object"&&self&&self.Object===Object&&self,Er=XC||pF||Function("return this")(),Jm=e&&!e.nodeType&&e,ro=Jm&&!0&&t&&!t.nodeType&&t,ZC=ro&&ro.exports===Jm,e1=ZC&&XC.process,Pn=function(){try{var re=ro&&ro.require&&ro.require("util").types;return re||e1&&e1.binding&&e1.binding("util")}catch{}}(),JC=Pn&&Pn.isArrayBuffer,e5=Pn&&Pn.isDate,t5=Pn&&Pn.isMap,r5=Pn&&Pn.isRegExp,n5=Pn&&Pn.isSet,i5=Pn&&Pn.isTypedArray;function dn(re,pe,le){switch(le.length){case 0:return re.call(pe);case 1:return re.call(pe,le[0]);case 2:return re.call(pe,le[0],le[1]);case 3:return re.call(pe,le[0],le[1],le[2])}return re.apply(pe,le)}function vF(re,pe,le,De){for(var rt=-1,Ot=re==null?0:re.length;++rt<Ot;){var cr=re[rt];pe(De,cr,le(cr),re)}return De}function Nn(re,pe){for(var le=-1,De=re==null?0:re.length;++le<De&&pe(re[le],le,re)!==!1;);return re}function gF(re,pe){for(var le=re==null?0:re.length;le--&&pe(re[le],le,re)!==!1;);return re}function a5(re,pe){for(var le=-1,De=re==null?0:re.length;++le<De;)if(!pe(re[le],le,re))return!1;return!0}function da(re,pe){for(var le=-1,De=re==null?0:re.length,rt=0,Ot=[];++le<De;){var cr=re[le];pe(cr,le,re)&&(Ot[rt++]=cr)}return Ot}function kf(re,pe){var le=re==null?0:re.length;return!!le&&_s(re,pe,0)>-1}function t1(re,pe,le){for(var De=-1,rt=re==null?0:re.length;++De<rt;)if(le(pe,re[De]))return!0;return!1}function Qt(re,pe){for(var le=-1,De=re==null?0:re.length,rt=Array(De);++le<De;)rt[le]=pe(re[le],le,re);return rt}function ha(re,pe){for(var le=-1,De=pe.length,rt=re.length;++le<De;)re[rt+le]=pe[le];return re}function r1(re,pe,le,De){var rt=-1,Ot=re==null?0:re.length;for(De&&Ot&&(le=re[++rt]);++rt<Ot;)le=pe(le,re[rt],rt,re);return le}function mF(re,pe,le,De){var rt=re==null?0:re.length;for(De&&rt&&(le=re[--rt]);rt--;)le=pe(le,re[rt],rt,re);return le}function n1(re,pe){for(var le=-1,De=re==null?0:re.length;++le<De;)if(pe(re[le],le,re))return!0;return!1}var yF=i1("length");function bF(re){return re.split("")}function _F(re){return re.match(Ee)||[]}function o5(re,pe,le){var De;return le(re,function(rt,Ot,cr){if(pe(rt,Ot,cr))return De=Ot,!1}),De}function Af(re,pe,le,De){for(var rt=re.length,Ot=le+(De?1:-1);De?Ot--:++Ot<rt;)if(pe(re[Ot],Ot,re))return Ot;return-1}function _s(re,pe,le){return pe===pe?NF(re,pe,le):Af(re,s5,le)}function wF(re,pe,le,De){for(var rt=le-1,Ot=re.length;++rt<Ot;)if(De(re[rt],pe))return rt;return-1}function s5(re){return re!==re}function u5(re,pe){var le=re==null?0:re.length;return le?o1(re,pe)/le:$}function i1(re){return function(pe){return pe==null?r:pe[re]}}function a1(re){return function(pe){return re==null?r:re[pe]}}function l5(re,pe,le,De,rt){return rt(re,function(Ot,cr,zt){le=De?(De=!1,Ot):pe(le,Ot,cr,zt)}),le}function EF(re,pe){var le=re.length;for(re.sort(pe);le--;)re[le]=re[le].value;return re}function o1(re,pe){for(var le,De=-1,rt=re.length;++De<rt;){var Ot=pe(re[De]);Ot!==r&&(le=le===r?Ot:le+Ot)}return le}function s1(re,pe){for(var le=-1,De=Array(re);++le<re;)De[le]=pe(le);return De}function SF(re,pe){return Qt(pe,function(le){return[le,re[le]]})}function c5(re){return re&&re.slice(0,p5(re)+1).replace(mr,"")}function hn(re){return function(pe){return re(pe)}}function u1(re,pe){return Qt(pe,function(le){return re[le]})}function Gu(re,pe){return re.has(pe)}function f5(re,pe){for(var le=-1,De=re.length;++le<De&&_s(pe,re[le],0)>-1;);return le}function d5(re,pe){for(var le=re.length;le--&&_s(pe,re[le],0)>-1;);return le}function xF(re,pe){for(var le=re.length,De=0;le--;)re[le]===pe&&++De;return De}var CF=a1(uF),TF=a1(lF);function OF(re){return"\\"+fF[re]}function RF(re,pe){return re==null?r:re[pe]}function ws(re){return ir.test(re)}function kF(re){return Gt.test(re)}function AF(re){for(var pe,le=[];!(pe=re.next()).done;)le.push(pe.value);return le}function l1(re){var pe=-1,le=Array(re.size);return re.forEach(function(De,rt){le[++pe]=[rt,De]}),le}function h5(re,pe){return function(le){return re(pe(le))}}function pa(re,pe){for(var le=-1,De=re.length,rt=0,Ot=[];++le<De;){var cr=re[le];(cr===pe||cr===d)&&(re[le]=d,Ot[rt++]=le)}return Ot}function Pf(re){var pe=-1,le=Array(re.size);return re.forEach(function(De){le[++pe]=De}),le}function PF(re){var pe=-1,le=Array(re.size);return re.forEach(function(De){le[++pe]=[De,De]}),le}function NF(re,pe,le){for(var De=le-1,rt=re.length;++De<rt;)if(re[De]===pe)return De;return-1}function IF(re,pe,le){for(var De=le+1;De--;)if(re[De]===pe)return De;return De}function Es(re){return ws(re)?MF(re):yF(re)}function Xn(re){return ws(re)?DF(re):bF(re)}function p5(re){for(var pe=re.length;pe--&&sa.test(re.charAt(pe)););return pe}var LF=a1(cF);function MF(re){for(var pe=Ve.lastIndex=0;Ve.test(re);)++pe;return pe}function DF(re){return re.match(Ve)||[]}function FF(re){return re.match(Vt)||[]}var jF=function re(pe){pe=pe==null?Er:Ss.defaults(Er.Object(),pe,Ss.pick(Er,bs));var le=pe.Array,De=pe.Date,rt=pe.Error,Ot=pe.Function,cr=pe.Math,zt=pe.Object,c1=pe.RegExp,$F=pe.String,In=pe.TypeError,Nf=le.prototype,qF=Ot.prototype,xs=zt.prototype,If=pe["__core-js_shared__"],Lf=qF.toString,Dt=xs.hasOwnProperty,UF=0,v5=function(){var s=/[^.]+$/.exec(If&&If.keys&&If.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Mf=xs.toString,zF=Lf.call(zt),HF=Er._,VF=c1("^"+Lf.call(Dt).replace(Yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Df=ZC?pe.Buffer:r,va=pe.Symbol,Ff=pe.Uint8Array,g5=Df?Df.allocUnsafe:r,jf=h5(zt.getPrototypeOf,zt),m5=zt.create,y5=xs.propertyIsEnumerable,$f=Nf.splice,b5=va?va.isConcatSpreadable:r,Qu=va?va.iterator:r,no=va?va.toStringTag:r,qf=function(){try{var s=uo(zt,"defineProperty");return s({},"",{}),s}catch{}}(),BF=pe.clearTimeout!==Er.clearTimeout&&pe.clearTimeout,WF=De&&De.now!==Er.Date.now&&De.now,GF=pe.setTimeout!==Er.setTimeout&&pe.setTimeout,Uf=cr.ceil,zf=cr.floor,f1=zt.getOwnPropertySymbols,QF=Df?Df.isBuffer:r,_5=pe.isFinite,YF=Nf.join,KF=h5(zt.keys,zt),fr=cr.max,Nr=cr.min,XF=De.now,ZF=pe.parseInt,w5=cr.random,JF=Nf.reverse,d1=uo(pe,"DataView"),Yu=uo(pe,"Map"),h1=uo(pe,"Promise"),Cs=uo(pe,"Set"),Ku=uo(pe,"WeakMap"),Xu=uo(zt,"create"),Hf=Ku&&new Ku,Ts={},ej=lo(d1),tj=lo(Yu),rj=lo(h1),nj=lo(Cs),ij=lo(Ku),Vf=va?va.prototype:r,Zu=Vf?Vf.valueOf:r,E5=Vf?Vf.toString:r;function I(s){if(er(s)&&!it(s)&&!(s instanceof bt)){if(s instanceof Ln)return s;if(Dt.call(s,"__wrapped__"))return S6(s)}return new Ln(s)}var Os=function(){function s(){}return function(c){if(!Xt(c))return{};if(m5)return m5(c);s.prototype=c;var g=new s;return s.prototype=r,g}}();function Bf(){}function Ln(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=r}I.templateSettings={escape:ci,evaluate:lr,interpolate:Qr,variable:"",imports:{_:I}},I.prototype=Bf.prototype,I.prototype.constructor=I,Ln.prototype=Os(Bf.prototype),Ln.prototype.constructor=Ln;function bt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function aj(){var s=new bt(this.__wrapped__);return s.__actions__=Xr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Xr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Xr(this.__views__),s}function oj(){if(this.__filtered__){var s=new bt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function sj(){var s=this.__wrapped__.value(),c=this.__dir__,g=it(s),x=c<0,A=g?s.length:0,D=b$(0,A,this.__views__),B=D.start,X=D.end,ne=X-B,ge=x?X:B-1,me=this.__iteratees__,be=me.length,Ae=0,Ue=Nr(ne,this.__takeCount__);if(!g||!x&&A==ne&&Ue==ne)return W5(s,this.__actions__);var Ge=[];e:for(;ne--&&Ae<Ue;){ge+=c;for(var ct=-1,Qe=s[ge];++ct<be;){var gt=me[ct],wt=gt.iteratee,gn=gt.type,Hr=wt(Qe);if(gn==F)Qe=Hr;else if(!Hr){if(gn==L)continue e;break e}}Ge[Ae++]=Qe}return Ge}bt.prototype=Os(Bf.prototype),bt.prototype.constructor=bt;function io(s){var c=-1,g=s==null?0:s.length;for(this.clear();++c<g;){var x=s[c];this.set(x[0],x[1])}}function uj(){this.__data__=Xu?Xu(null):{},this.size=0}function lj(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function cj(s){var c=this.__data__;if(Xu){var g=c[s];return g===l?r:g}return Dt.call(c,s)?c[s]:r}function fj(s){var c=this.__data__;return Xu?c[s]!==r:Dt.call(c,s)}function dj(s,c){var g=this.__data__;return this.size+=this.has(s)?0:1,g[s]=Xu&&c===r?l:c,this}io.prototype.clear=uj,io.prototype.delete=lj,io.prototype.get=cj,io.prototype.has=fj,io.prototype.set=dj;function Ni(s){var c=-1,g=s==null?0:s.length;for(this.clear();++c<g;){var x=s[c];this.set(x[0],x[1])}}function hj(){this.__data__=[],this.size=0}function pj(s){var c=this.__data__,g=Wf(c,s);if(g<0)return!1;var x=c.length-1;return g==x?c.pop():$f.call(c,g,1),--this.size,!0}function vj(s){var c=this.__data__,g=Wf(c,s);return g<0?r:c[g][1]}function gj(s){return Wf(this.__data__,s)>-1}function mj(s,c){var g=this.__data__,x=Wf(g,s);return x<0?(++this.size,g.push([s,c])):g[x][1]=c,this}Ni.prototype.clear=hj,Ni.prototype.delete=pj,Ni.prototype.get=vj,Ni.prototype.has=gj,Ni.prototype.set=mj;function Ii(s){var c=-1,g=s==null?0:s.length;for(this.clear();++c<g;){var x=s[c];this.set(x[0],x[1])}}function yj(){this.size=0,this.__data__={hash:new io,map:new(Yu||Ni),string:new io}}function bj(s){var c=id(this,s).delete(s);return this.size-=c?1:0,c}function _j(s){return id(this,s).get(s)}function wj(s){return id(this,s).has(s)}function Ej(s,c){var g=id(this,s),x=g.size;return g.set(s,c),this.size+=g.size==x?0:1,this}Ii.prototype.clear=yj,Ii.prototype.delete=bj,Ii.prototype.get=_j,Ii.prototype.has=wj,Ii.prototype.set=Ej;function ao(s){var c=-1,g=s==null?0:s.length;for(this.__data__=new Ii;++c<g;)this.add(s[c])}function Sj(s){return this.__data__.set(s,l),this}function xj(s){return this.__data__.has(s)}ao.prototype.add=ao.prototype.push=Sj,ao.prototype.has=xj;function Zn(s){var c=this.__data__=new Ni(s);this.size=c.size}function Cj(){this.__data__=new Ni,this.size=0}function Tj(s){var c=this.__data__,g=c.delete(s);return this.size=c.size,g}function Oj(s){return this.__data__.get(s)}function Rj(s){return this.__data__.has(s)}function kj(s,c){var g=this.__data__;if(g instanceof Ni){var x=g.__data__;if(!Yu||x.length<i-1)return x.push([s,c]),this.size=++g.size,this;g=this.__data__=new Ii(x)}return g.set(s,c),this.size=g.size,this}Zn.prototype.clear=Cj,Zn.prototype.delete=Tj,Zn.prototype.get=Oj,Zn.prototype.has=Rj,Zn.prototype.set=kj;function S5(s,c){var g=it(s),x=!g&&co(s),A=!g&&!x&&_a(s),D=!g&&!x&&!A&&Ps(s),B=g||x||A||D,X=B?s1(s.length,$F):[],ne=X.length;for(var ge in s)(c||Dt.call(s,ge))&&!(B&&(ge=="length"||A&&(ge=="offset"||ge=="parent")||D&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||Fi(ge,ne)))&&X.push(ge);return X}function x5(s){var c=s.length;return c?s[x1(0,c-1)]:r}function Aj(s,c){return ad(Xr(s),oo(c,0,s.length))}function Pj(s){return ad(Xr(s))}function p1(s,c,g){(g!==r&&!Jn(s[c],g)||g===r&&!(c in s))&&Li(s,c,g)}function Ju(s,c,g){var x=s[c];(!(Dt.call(s,c)&&Jn(x,g))||g===r&&!(c in s))&&Li(s,c,g)}function Wf(s,c){for(var g=s.length;g--;)if(Jn(s[g][0],c))return g;return-1}function Nj(s,c,g,x){return ga(s,function(A,D,B){c(x,A,g(A),B)}),x}function C5(s,c){return s&&bi(c,yr(c),s)}function Ij(s,c){return s&&bi(c,Jr(c),s)}function Li(s,c,g){c=="__proto__"&&qf?qf(s,c,{configurable:!0,enumerable:!0,value:g,writable:!0}):s[c]=g}function v1(s,c){for(var g=-1,x=c.length,A=le(x),D=s==null;++g<x;)A[g]=D?r:Y1(s,c[g]);return A}function oo(s,c,g){return s===s&&(g!==r&&(s=s<=g?s:g),c!==r&&(s=s>=c?s:c)),s}function Mn(s,c,g,x,A,D){var B,X=c&h,ne=c&p,ge=c&v;if(g&&(B=A?g(s,x,A,D):g(s)),B!==r)return B;if(!Xt(s))return s;var me=it(s);if(me){if(B=w$(s),!X)return Xr(s,B)}else{var be=Ir(s),Ae=be==j||be==Re;if(_a(s))return Y5(s,X);if(be==He||be==fe||Ae&&!A){if(B=ne||Ae?{}:p6(s),!X)return ne?c$(s,Ij(B,s)):l$(s,C5(B,s))}else{if(!Tt[be])return A?s:{};B=E$(s,be,X)}}D||(D=new Zn);var Ue=D.get(s);if(Ue)return Ue;D.set(s,B),H6(s)?s.forEach(function(Qe){B.add(Mn(Qe,c,g,Qe,s,D))}):U6(s)&&s.forEach(function(Qe,gt){B.set(gt,Mn(Qe,c,g,gt,s,D))});var Ge=ge?ne?M1:L1:ne?Jr:yr,ct=me?r:Ge(s);return Nn(ct||s,function(Qe,gt){ct&&(gt=Qe,Qe=s[gt]),Ju(B,gt,Mn(Qe,c,g,gt,s,D))}),B}function Lj(s){var c=yr(s);return function(g){return T5(g,s,c)}}function T5(s,c,g){var x=g.length;if(s==null)return!x;for(s=zt(s);x--;){var A=g[x],D=c[A],B=s[A];if(B===r&&!(A in s)||!D(B))return!1}return!0}function O5(s,c,g){if(typeof s!="function")throw new In(o);return ol(function(){s.apply(r,g)},c)}function el(s,c,g,x){var A=-1,D=kf,B=!0,X=s.length,ne=[],ge=c.length;if(!X)return ne;g&&(c=Qt(c,hn(g))),x?(D=t1,B=!1):c.length>=i&&(D=Gu,B=!1,c=new ao(c));e:for(;++A<X;){var me=s[A],be=g==null?me:g(me);if(me=x||me!==0?me:0,B&&be===be){for(var Ae=ge;Ae--;)if(c[Ae]===be)continue e;ne.push(me)}else D(c,be,x)||ne.push(me)}return ne}var ga=e6(yi),R5=e6(m1,!0);function Mj(s,c){var g=!0;return ga(s,function(x,A,D){return g=!!c(x,A,D),g}),g}function Gf(s,c,g){for(var x=-1,A=s.length;++x<A;){var D=s[x],B=c(D);if(B!=null&&(X===r?B===B&&!vn(B):g(B,X)))var X=B,ne=D}return ne}function Dj(s,c,g,x){var A=s.length;for(g=ut(g),g<0&&(g=-g>A?0:A+g),x=x===r||x>A?A:ut(x),x<0&&(x+=A),x=g>x?0:B6(x);g<x;)s[g++]=c;return s}function k5(s,c){var g=[];return ga(s,function(x,A,D){c(x,A,D)&&g.push(x)}),g}function Sr(s,c,g,x,A){var D=-1,B=s.length;for(g||(g=x$),A||(A=[]);++D<B;){var X=s[D];c>0&&g(X)?c>1?Sr(X,c-1,g,x,A):ha(A,X):x||(A[A.length]=X)}return A}var g1=t6(),A5=t6(!0);function yi(s,c){return s&&g1(s,c,yr)}function m1(s,c){return s&&A5(s,c,yr)}function Qf(s,c){return da(c,function(g){return ji(s[g])})}function so(s,c){c=ya(c,s);for(var g=0,x=c.length;s!=null&&g<x;)s=s[_i(c[g++])];return g&&g==x?s:r}function P5(s,c,g){var x=c(s);return it(s)?x:ha(x,g(s))}function Ur(s){return s==null?s===r?ot:Fe:no&&no in zt(s)?y$(s):P$(s)}function y1(s,c){return s>c}function Fj(s,c){return s!=null&&Dt.call(s,c)}function jj(s,c){return s!=null&&c in zt(s)}function $j(s,c,g){return s>=Nr(c,g)&&s<fr(c,g)}function b1(s,c,g){for(var x=g?t1:kf,A=s[0].length,D=s.length,B=D,X=le(D),ne=1/0,ge=[];B--;){var me=s[B];B&&c&&(me=Qt(me,hn(c))),ne=Nr(me.length,ne),X[B]=!g&&(c||A>=120&&me.length>=120)?new ao(B&&me):r}me=s[0];var be=-1,Ae=X[0];e:for(;++be<A&&ge.length<ne;){var Ue=me[be],Ge=c?c(Ue):Ue;if(Ue=g||Ue!==0?Ue:0,!(Ae?Gu(Ae,Ge):x(ge,Ge,g))){for(B=D;--B;){var ct=X[B];if(!(ct?Gu(ct,Ge):x(s[B],Ge,g)))continue e}Ae&&Ae.push(Ge),ge.push(Ue)}}return ge}function qj(s,c,g,x){return yi(s,function(A,D,B){c(x,g(A),D,B)}),x}function tl(s,c,g){c=ya(c,s),s=y6(s,c);var x=s==null?s:s[_i(Fn(c))];return x==null?r:dn(x,s,g)}function N5(s){return er(s)&&Ur(s)==fe}function Uj(s){return er(s)&&Ur(s)==he}function zj(s){return er(s)&&Ur(s)==ye}function rl(s,c,g,x,A){return s===c?!0:s==null||c==null||!er(s)&&!er(c)?s!==s&&c!==c:Hj(s,c,g,x,rl,A)}function Hj(s,c,g,x,A,D){var B=it(s),X=it(c),ne=B?ue:Ir(s),ge=X?ue:Ir(c);ne=ne==fe?He:ne,ge=ge==fe?He:ge;var me=ne==He,be=ge==He,Ae=ne==ge;if(Ae&&_a(s)){if(!_a(c))return!1;B=!0,me=!1}if(Ae&&!me)return D||(D=new Zn),B||Ps(s)?f6(s,c,g,x,A,D):g$(s,c,ne,g,x,A,D);if(!(g&m)){var Ue=me&&Dt.call(s,"__wrapped__"),Ge=be&&Dt.call(c,"__wrapped__");if(Ue||Ge){var ct=Ue?s.value():s,Qe=Ge?c.value():c;return D||(D=new Zn),A(ct,Qe,g,x,D)}}return Ae?(D||(D=new Zn),m$(s,c,g,x,A,D)):!1}function Vj(s){return er(s)&&Ir(s)==oe}function _1(s,c,g,x){var A=g.length,D=A,B=!x;if(s==null)return!D;for(s=zt(s);A--;){var X=g[A];if(B&&X[2]?X[1]!==s[X[0]]:!(X[0]in s))return!1}for(;++A<D;){X=g[A];var ne=X[0],ge=s[ne],me=X[1];if(B&&X[2]){if(ge===r&&!(ne in s))return!1}else{var be=new Zn;if(x)var Ae=x(ge,me,ne,s,c,be);if(!(Ae===r?rl(me,ge,m|y,x,be):Ae))return!1}}return!0}function I5(s){if(!Xt(s)||T$(s))return!1;var c=ji(s)?VF:Wt;return c.test(lo(s))}function Bj(s){return er(s)&&Ur(s)==ht}function Wj(s){return er(s)&&Ir(s)==je}function Gj(s){return er(s)&&fd(s.length)&&!!jt[Ur(s)]}function L5(s){return typeof s=="function"?s:s==null?en:typeof s=="object"?it(s)?F5(s[0],s[1]):D5(s):rT(s)}function w1(s){if(!al(s))return KF(s);var c=[];for(var g in zt(s))Dt.call(s,g)&&g!="constructor"&&c.push(g);return c}function Qj(s){if(!Xt(s))return A$(s);var c=al(s),g=[];for(var x in s)x=="constructor"&&(c||!Dt.call(s,x))||g.push(x);return g}function E1(s,c){return s<c}function M5(s,c){var g=-1,x=Zr(s)?le(s.length):[];return ga(s,function(A,D,B){x[++g]=c(A,D,B)}),x}function D5(s){var c=F1(s);return c.length==1&&c[0][2]?g6(c[0][0],c[0][1]):function(g){return g===s||_1(g,s,c)}}function F5(s,c){return $1(s)&&v6(c)?g6(_i(s),c):function(g){var x=Y1(g,s);return x===r&&x===c?K1(g,s):rl(c,x,m|y)}}function Yf(s,c,g,x,A){s!==c&&g1(c,function(D,B){if(A||(A=new Zn),Xt(D))Yj(s,c,B,g,Yf,x,A);else{var X=x?x(U1(s,B),D,B+"",s,c,A):r;X===r&&(X=D),p1(s,B,X)}},Jr)}function Yj(s,c,g,x,A,D,B){var X=U1(s,g),ne=U1(c,g),ge=B.get(ne);if(ge){p1(s,g,ge);return}var me=D?D(X,ne,g+"",s,c,B):r,be=me===r;if(be){var Ae=it(ne),Ue=!Ae&&_a(ne),Ge=!Ae&&!Ue&&Ps(ne);me=ne,Ae||Ue||Ge?it(X)?me=X:ar(X)?me=Xr(X):Ue?(be=!1,me=Y5(ne,!0)):Ge?(be=!1,me=K5(ne,!0)):me=[]:sl(ne)||co(ne)?(me=X,co(X)?me=W6(X):(!Xt(X)||ji(X))&&(me=p6(ne))):be=!1}be&&(B.set(ne,me),A(me,ne,x,D,B),B.delete(ne)),p1(s,g,me)}function j5(s,c){var g=s.length;if(g)return c+=c<0?g:0,Fi(c,g)?s[c]:r}function $5(s,c,g){c.length?c=Qt(c,function(D){return it(D)?function(B){return so(B,D.length===1?D[0]:D)}:D}):c=[en];var x=-1;c=Qt(c,hn(We()));var A=M5(s,function(D,B,X){var ne=Qt(c,function(ge){return ge(D)});return{criteria:ne,index:++x,value:D}});return EF(A,function(D,B){return u$(D,B,g)})}function Kj(s,c){return q5(s,c,function(g,x){return K1(s,x)})}function q5(s,c,g){for(var x=-1,A=c.length,D={};++x<A;){var B=c[x],X=so(s,B);g(X,B)&&nl(D,ya(B,s),X)}return D}function Xj(s){return function(c){return so(c,s)}}function S1(s,c,g,x){var A=x?wF:_s,D=-1,B=c.length,X=s;for(s===c&&(c=Xr(c)),g&&(X=Qt(s,hn(g)));++D<B;)for(var ne=0,ge=c[D],me=g?g(ge):ge;(ne=A(X,me,ne,x))>-1;)X!==s&&$f.call(X,ne,1),$f.call(s,ne,1);return s}function U5(s,c){for(var g=s?c.length:0,x=g-1;g--;){var A=c[g];if(g==x||A!==D){var D=A;Fi(A)?$f.call(s,A,1):O1(s,A)}}return s}function x1(s,c){return s+zf(w5()*(c-s+1))}function Zj(s,c,g,x){for(var A=-1,D=fr(Uf((c-s)/(g||1)),0),B=le(D);D--;)B[x?D:++A]=s,s+=g;return B}function C1(s,c){var g="";if(!s||c<1||c>V)return g;do c%2&&(g+=s),c=zf(c/2),c&&(s+=s);while(c);return g}function dt(s,c){return z1(m6(s,c,en),s+"")}function Jj(s){return x5(Ns(s))}function e$(s,c){var g=Ns(s);return ad(g,oo(c,0,g.length))}function nl(s,c,g,x){if(!Xt(s))return s;c=ya(c,s);for(var A=-1,D=c.length,B=D-1,X=s;X!=null&&++A<D;){var ne=_i(c[A]),ge=g;if(ne==="__proto__"||ne==="constructor"||ne==="prototype")return s;if(A!=B){var me=X[ne];ge=x?x(me,ne,X):r,ge===r&&(ge=Xt(me)?me:Fi(c[A+1])?[]:{})}Ju(X,ne,ge),X=X[ne]}return s}var z5=Hf?function(s,c){return Hf.set(s,c),s}:en,t$=qf?function(s,c){return qf(s,"toString",{configurable:!0,enumerable:!1,value:Z1(c),writable:!0})}:en;function r$(s){return ad(Ns(s))}function Dn(s,c,g){var x=-1,A=s.length;c<0&&(c=-c>A?0:A+c),g=g>A?A:g,g<0&&(g+=A),A=c>g?0:g-c>>>0,c>>>=0;for(var D=le(A);++x<A;)D[x]=s[x+c];return D}function n$(s,c){var g;return ga(s,function(x,A,D){return g=c(x,A,D),!g}),!!g}function Kf(s,c,g){var x=0,A=s==null?x:s.length;if(typeof c=="number"&&c===c&&A<=ie){for(;x<A;){var D=x+A>>>1,B=s[D];B!==null&&!vn(B)&&(g?B<=c:B<c)?x=D+1:A=D}return A}return T1(s,c,en,g)}function T1(s,c,g,x){var A=0,D=s==null?0:s.length;if(D===0)return 0;c=g(c);for(var B=c!==c,X=c===null,ne=vn(c),ge=c===r;A<D;){var me=zf((A+D)/2),be=g(s[me]),Ae=be!==r,Ue=be===null,Ge=be===be,ct=vn(be);if(B)var Qe=x||Ge;else ge?Qe=Ge&&(x||Ae):X?Qe=Ge&&Ae&&(x||!Ue):ne?Qe=Ge&&Ae&&!Ue&&(x||!ct):Ue||ct?Qe=!1:Qe=x?be<=c:be<c;Qe?A=me+1:D=me}return Nr(D,ae)}function H5(s,c){for(var g=-1,x=s.length,A=0,D=[];++g<x;){var B=s[g],X=c?c(B):B;if(!g||!Jn(X,ne)){var ne=X;D[A++]=B===0?0:B}}return D}function V5(s){return typeof s=="number"?s:vn(s)?$:+s}function pn(s){if(typeof s=="string")return s;if(it(s))return Qt(s,pn)+"";if(vn(s))return E5?E5.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function ma(s,c,g){var x=-1,A=kf,D=s.length,B=!0,X=[],ne=X;if(g)B=!1,A=t1;else if(D>=i){var ge=c?null:p$(s);if(ge)return Pf(ge);B=!1,A=Gu,ne=new ao}else ne=c?[]:X;e:for(;++x<D;){var me=s[x],be=c?c(me):me;if(me=g||me!==0?me:0,B&&be===be){for(var Ae=ne.length;Ae--;)if(ne[Ae]===be)continue e;c&&ne.push(be),X.push(me)}else A(ne,be,g)||(ne!==X&&ne.push(be),X.push(me))}return X}function O1(s,c){return c=ya(c,s),s=y6(s,c),s==null||delete s[_i(Fn(c))]}function B5(s,c,g,x){return nl(s,c,g(so(s,c)),x)}function Xf(s,c,g,x){for(var A=s.length,D=x?A:-1;(x?D--:++D<A)&&c(s[D],D,s););return g?Dn(s,x?0:D,x?D+1:A):Dn(s,x?D+1:0,x?A:D)}function W5(s,c){var g=s;return g instanceof bt&&(g=g.value()),r1(c,function(x,A){return A.func.apply(A.thisArg,ha([x],A.args))},g)}function R1(s,c,g){var x=s.length;if(x<2)return x?ma(s[0]):[];for(var A=-1,D=le(x);++A<x;)for(var B=s[A],X=-1;++X<x;)X!=A&&(D[A]=el(D[A]||B,s[X],c,g));return ma(Sr(D,1),c,g)}function G5(s,c,g){for(var x=-1,A=s.length,D=c.length,B={};++x<A;){var X=x<D?c[x]:r;g(B,s[x],X)}return B}function k1(s){return ar(s)?s:[]}function A1(s){return typeof s=="function"?s:en}function ya(s,c){return it(s)?s:$1(s,c)?[s]:E6(Lt(s))}var i$=dt;function ba(s,c,g){var x=s.length;return g=g===r?x:g,!c&&g>=x?s:Dn(s,c,g)}var Q5=BF||function(s){return Er.clearTimeout(s)};function Y5(s,c){if(c)return s.slice();var g=s.length,x=g5?g5(g):new s.constructor(g);return s.copy(x),x}function P1(s){var c=new s.constructor(s.byteLength);return new Ff(c).set(new Ff(s)),c}function a$(s,c){var g=c?P1(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.byteLength)}function o$(s){var c=new s.constructor(s.source,vt.exec(s));return c.lastIndex=s.lastIndex,c}function s$(s){return Zu?zt(Zu.call(s)):{}}function K5(s,c){var g=c?P1(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.length)}function X5(s,c){if(s!==c){var g=s!==r,x=s===null,A=s===s,D=vn(s),B=c!==r,X=c===null,ne=c===c,ge=vn(c);if(!X&&!ge&&!D&&s>c||D&&B&&ne&&!X&&!ge||x&&B&&ne||!g&&ne||!A)return 1;if(!x&&!D&&!ge&&s<c||ge&&g&&A&&!x&&!D||X&&g&&A||!B&&A||!ne)return-1}return 0}function u$(s,c,g){for(var x=-1,A=s.criteria,D=c.criteria,B=A.length,X=g.length;++x<B;){var ne=X5(A[x],D[x]);if(ne){if(x>=X)return ne;var ge=g[x];return ne*(ge=="desc"?-1:1)}}return s.index-c.index}function Z5(s,c,g,x){for(var A=-1,D=s.length,B=g.length,X=-1,ne=c.length,ge=fr(D-B,0),me=le(ne+ge),be=!x;++X<ne;)me[X]=c[X];for(;++A<B;)(be||A<D)&&(me[g[A]]=s[A]);for(;ge--;)me[X++]=s[A++];return me}function J5(s,c,g,x){for(var A=-1,D=s.length,B=-1,X=g.length,ne=-1,ge=c.length,me=fr(D-X,0),be=le(me+ge),Ae=!x;++A<me;)be[A]=s[A];for(var Ue=A;++ne<ge;)be[Ue+ne]=c[ne];for(;++B<X;)(Ae||A<D)&&(be[Ue+g[B]]=s[A++]);return be}function Xr(s,c){var g=-1,x=s.length;for(c||(c=le(x));++g<x;)c[g]=s[g];return c}function bi(s,c,g,x){var A=!g;g||(g={});for(var D=-1,B=c.length;++D<B;){var X=c[D],ne=x?x(g[X],s[X],X,g,s):r;ne===r&&(ne=s[X]),A?Li(g,X,ne):Ju(g,X,ne)}return g}function l$(s,c){return bi(s,j1(s),c)}function c$(s,c){return bi(s,d6(s),c)}function Zf(s,c){return function(g,x){var A=it(g)?vF:Nj,D=c?c():{};return A(g,s,We(x,2),D)}}function Rs(s){return dt(function(c,g){var x=-1,A=g.length,D=A>1?g[A-1]:r,B=A>2?g[2]:r;for(D=s.length>3&&typeof D=="function"?(A--,D):r,B&&zr(g[0],g[1],B)&&(D=A<3?r:D,A=1),c=zt(c);++x<A;){var X=g[x];X&&s(c,X,x,D)}return c})}function e6(s,c){return function(g,x){if(g==null)return g;if(!Zr(g))return s(g,x);for(var A=g.length,D=c?A:-1,B=zt(g);(c?D--:++D<A)&&x(B[D],D,B)!==!1;);return g}}function t6(s){return function(c,g,x){for(var A=-1,D=zt(c),B=x(c),X=B.length;X--;){var ne=B[s?X:++A];if(g(D[ne],ne,D)===!1)break}return c}}function f$(s,c,g){var x=c&b,A=il(s);function D(){var B=this&&this!==Er&&this instanceof D?A:s;return B.apply(x?g:this,arguments)}return D}function r6(s){return function(c){c=Lt(c);var g=ws(c)?Xn(c):r,x=g?g[0]:c.charAt(0),A=g?ba(g,1).join(""):c.slice(1);return x[s]()+A}}function ks(s){return function(c){return r1(eT(J6(c).replace(Bu,"")),s,"")}}function il(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var g=Os(s.prototype),x=s.apply(g,c);return Xt(x)?x:g}}function d$(s,c,g){var x=il(s);function A(){for(var D=arguments.length,B=le(D),X=D,ne=As(A);X--;)B[X]=arguments[X];var ge=D<3&&B[0]!==ne&&B[D-1]!==ne?[]:pa(B,ne);if(D-=ge.length,D<g)return s6(s,c,Jf,A.placeholder,r,B,ge,r,r,g-D);var me=this&&this!==Er&&this instanceof A?x:s;return dn(me,this,B)}return A}function n6(s){return function(c,g,x){var A=zt(c);if(!Zr(c)){var D=We(g,3);c=yr(c),g=function(X){return D(A[X],X,A)}}var B=s(c,g,x);return B>-1?A[D?c[B]:B]:r}}function i6(s){return Di(function(c){var g=c.length,x=g,A=Ln.prototype.thru;for(s&&c.reverse();x--;){var D=c[x];if(typeof D!="function")throw new In(o);if(A&&!B&&nd(D)=="wrapper")var B=new Ln([],!0)}for(x=B?x:g;++x<g;){D=c[x];var X=nd(D),ne=X=="wrapper"?D1(D):r;ne&&q1(ne[0])&&ne[1]==(O|S|_|k)&&!ne[4].length&&ne[9]==1?B=B[nd(ne[0])].apply(B,ne[3]):B=D.length==1&&q1(D)?B[X]():B.thru(D)}return function(){var ge=arguments,me=ge[0];if(B&&ge.length==1&&it(me))return B.plant(me).value();for(var be=0,Ae=g?c[be].apply(this,ge):me;++be<g;)Ae=c[be].call(this,Ae);return Ae}})}function Jf(s,c,g,x,A,D,B,X,ne,ge){var me=c&O,be=c&b,Ae=c&w,Ue=c&(S|C),Ge=c&P,ct=Ae?r:il(s);function Qe(){for(var gt=arguments.length,wt=le(gt),gn=gt;gn--;)wt[gn]=arguments[gn];if(Ue)var Hr=As(Qe),mn=xF(wt,Hr);if(x&&(wt=Z5(wt,x,A,Ue)),D&&(wt=J5(wt,D,B,Ue)),gt-=mn,Ue&><ge){var or=pa(wt,Hr);return s6(s,c,Jf,Qe.placeholder,g,wt,or,X,ne,ge-gt)}var ei=be?g:this,qi=Ae?ei[s]:s;return gt=wt.length,X?wt=N$(wt,X):Ge&>>1&&wt.reverse(),me&&ne<gt&&(wt.length=ne),this&&this!==Er&&this instanceof Qe&&(qi=ct||il(qi)),qi.apply(ei,wt)}return Qe}function a6(s,c){return function(g,x){return qj(g,s,c(x),{})}}function ed(s,c){return function(g,x){var A;if(g===r&&x===r)return c;if(g!==r&&(A=g),x!==r){if(A===r)return x;typeof g=="string"||typeof x=="string"?(g=pn(g),x=pn(x)):(g=V5(g),x=V5(x)),A=s(g,x)}return A}}function N1(s){return Di(function(c){return c=Qt(c,hn(We())),dt(function(g){var x=this;return s(c,function(A){return dn(A,x,g)})})})}function td(s,c){c=c===r?" ":pn(c);var g=c.length;if(g<2)return g?C1(c,s):c;var x=C1(c,Uf(s/Es(c)));return ws(c)?ba(Xn(x),0,s).join(""):x.slice(0,s)}function h$(s,c,g,x){var A=c&b,D=il(s);function B(){for(var X=-1,ne=arguments.length,ge=-1,me=x.length,be=le(me+ne),Ae=this&&this!==Er&&this instanceof B?D:s;++ge<me;)be[ge]=x[ge];for(;ne--;)be[ge++]=arguments[++X];return dn(Ae,A?g:this,be)}return B}function o6(s){return function(c,g,x){return x&&typeof x!="number"&&zr(c,g,x)&&(g=x=r),c=$i(c),g===r?(g=c,c=0):g=$i(g),x=x===r?c<g?1:-1:$i(x),Zj(c,g,x,s)}}function rd(s){return function(c,g){return typeof c=="string"&&typeof g=="string"||(c=jn(c),g=jn(g)),s(c,g)}}function s6(s,c,g,x,A,D,B,X,ne,ge){var me=c&S,be=me?B:r,Ae=me?r:B,Ue=me?D:r,Ge=me?r:D;c|=me?_:T,c&=~(me?T:_),c&E||(c&=-4);var ct=[s,c,A,Ue,be,Ge,Ae,X,ne,ge],Qe=g.apply(r,ct);return q1(s)&&b6(Qe,ct),Qe.placeholder=x,_6(Qe,s,c)}function I1(s){var c=cr[s];return function(g,x){if(g=jn(g),x=x==null?0:Nr(ut(x),292),x&&_5(g)){var A=(Lt(g)+"e").split("e"),D=c(A[0]+"e"+(+A[1]+x));return A=(Lt(D)+"e").split("e"),+(A[0]+"e"+(+A[1]-x))}return c(g)}}var p$=Cs&&1/Pf(new Cs([,-0]))[1]==Y?function(s){return new Cs(s)}:t0;function u6(s){return function(c){var g=Ir(c);return g==oe?l1(c):g==je?PF(c):SF(c,s(c))}}function Mi(s,c,g,x,A,D,B,X){var ne=c&w;if(!ne&&typeof s!="function")throw new In(o);var ge=x?x.length:0;if(ge||(c&=-97,x=A=r),B=B===r?B:fr(ut(B),0),X=X===r?X:ut(X),ge-=A?A.length:0,c&T){var me=x,be=A;x=A=r}var Ae=ne?r:D1(s),Ue=[s,c,g,x,A,me,be,D,B,X];if(Ae&&k$(Ue,Ae),s=Ue[0],c=Ue[1],g=Ue[2],x=Ue[3],A=Ue[4],X=Ue[9]=Ue[9]===r?ne?0:s.length:fr(Ue[9]-ge,0),!X&&c&(S|C)&&(c&=-25),!c||c==b)var Ge=f$(s,c,g);else c==S||c==C?Ge=d$(s,c,X):(c==_||c==(b|_))&&!A.length?Ge=h$(s,c,g,x):Ge=Jf.apply(r,Ue);var ct=Ae?z5:b6;return _6(ct(Ge,Ue),s,c)}function l6(s,c,g,x){return s===r||Jn(s,xs[g])&&!Dt.call(x,g)?c:s}function c6(s,c,g,x,A,D){return Xt(s)&&Xt(c)&&(D.set(c,s),Yf(s,c,r,c6,D),D.delete(c)),s}function v$(s){return sl(s)?r:s}function f6(s,c,g,x,A,D){var B=g&m,X=s.length,ne=c.length;if(X!=ne&&!(B&&ne>X))return!1;var ge=D.get(s),me=D.get(c);if(ge&&me)return ge==c&&me==s;var be=-1,Ae=!0,Ue=g&y?new ao:r;for(D.set(s,c),D.set(c,s);++be<X;){var Ge=s[be],ct=c[be];if(x)var Qe=B?x(ct,Ge,be,c,s,D):x(Ge,ct,be,s,c,D);if(Qe!==r){if(Qe)continue;Ae=!1;break}if(Ue){if(!n1(c,function(gt,wt){if(!Gu(Ue,wt)&&(Ge===gt||A(Ge,gt,g,x,D)))return Ue.push(wt)})){Ae=!1;break}}else if(!(Ge===ct||A(Ge,ct,g,x,D))){Ae=!1;break}}return D.delete(s),D.delete(c),Ae}function g$(s,c,g,x,A,D,B){switch(g){case Ne:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case he:return!(s.byteLength!=c.byteLength||!D(new Ff(s),new Ff(c)));case de:case ye:case xe:return Jn(+s,+c);case J:return s.name==c.name&&s.message==c.message;case ht:case Te:return s==c+"";case oe:var X=l1;case je:var ne=x&m;if(X||(X=Pf),s.size!=c.size&&!ne)return!1;var ge=B.get(s);if(ge)return ge==c;x|=y,B.set(s,c);var me=f6(X(s),X(c),x,A,D,B);return B.delete(s),me;case we:if(Zu)return Zu.call(s)==Zu.call(c)}return!1}function m$(s,c,g,x,A,D){var B=g&m,X=L1(s),ne=X.length,ge=L1(c),me=ge.length;if(ne!=me&&!B)return!1;for(var be=ne;be--;){var Ae=X[be];if(!(B?Ae in c:Dt.call(c,Ae)))return!1}var Ue=D.get(s),Ge=D.get(c);if(Ue&&Ge)return Ue==c&&Ge==s;var ct=!0;D.set(s,c),D.set(c,s);for(var Qe=B;++be<ne;){Ae=X[be];var gt=s[Ae],wt=c[Ae];if(x)var gn=B?x(wt,gt,Ae,c,s,D):x(gt,wt,Ae,s,c,D);if(!(gn===r?gt===wt||A(gt,wt,g,x,D):gn)){ct=!1;break}Qe||(Qe=Ae=="constructor")}if(ct&&!Qe){var Hr=s.constructor,mn=c.constructor;Hr!=mn&&"constructor"in s&&"constructor"in c&&!(typeof Hr=="function"&&Hr instanceof Hr&&typeof mn=="function"&&mn instanceof mn)&&(ct=!1)}return D.delete(s),D.delete(c),ct}function Di(s){return z1(m6(s,r,T6),s+"")}function L1(s){return P5(s,yr,j1)}function M1(s){return P5(s,Jr,d6)}var D1=Hf?function(s){return Hf.get(s)}:t0;function nd(s){for(var c=s.name+"",g=Ts[c],x=Dt.call(Ts,c)?g.length:0;x--;){var A=g[x],D=A.func;if(D==null||D==s)return A.name}return c}function As(s){var c=Dt.call(I,"placeholder")?I:s;return c.placeholder}function We(){var s=I.iteratee||J1;return s=s===J1?L5:s,arguments.length?s(arguments[0],arguments[1]):s}function id(s,c){var g=s.__data__;return C$(c)?g[typeof c=="string"?"string":"hash"]:g.map}function F1(s){for(var c=yr(s),g=c.length;g--;){var x=c[g],A=s[x];c[g]=[x,A,v6(A)]}return c}function uo(s,c){var g=RF(s,c);return I5(g)?g:r}function y$(s){var c=Dt.call(s,no),g=s[no];try{s[no]=r;var x=!0}catch{}var A=Mf.call(s);return x&&(c?s[no]=g:delete s[no]),A}var j1=f1?function(s){return s==null?[]:(s=zt(s),da(f1(s),function(c){return y5.call(s,c)}))}:r0,d6=f1?function(s){for(var c=[];s;)ha(c,j1(s)),s=jf(s);return c}:r0,Ir=Ur;(d1&&Ir(new d1(new ArrayBuffer(1)))!=Ne||Yu&&Ir(new Yu)!=oe||h1&&Ir(h1.resolve())!=Ye||Cs&&Ir(new Cs)!=je||Ku&&Ir(new Ku)!=_e)&&(Ir=function(s){var c=Ur(s),g=c==He?s.constructor:r,x=g?lo(g):"";if(x)switch(x){case ej:return Ne;case tj:return oe;case rj:return Ye;case nj:return je;case ij:return _e}return c});function b$(s,c,g){for(var x=-1,A=g.length;++x<A;){var D=g[x],B=D.size;switch(D.type){case"drop":s+=B;break;case"dropRight":c-=B;break;case"take":c=Nr(c,s+B);break;case"takeRight":s=fr(s,c-B);break}}return{start:s,end:c}}function _$(s){var c=s.match(Rn);return c?c[1].split(G):[]}function h6(s,c,g){c=ya(c,s);for(var x=-1,A=c.length,D=!1;++x<A;){var B=_i(c[x]);if(!(D=s!=null&&g(s,B)))break;s=s[B]}return D||++x!=A?D:(A=s==null?0:s.length,!!A&&fd(A)&&Fi(B,A)&&(it(s)||co(s)))}function w$(s){var c=s.length,g=new s.constructor(c);return c&&typeof s[0]=="string"&&Dt.call(s,"index")&&(g.index=s.index,g.input=s.input),g}function p6(s){return typeof s.constructor=="function"&&!al(s)?Os(jf(s)):{}}function E$(s,c,g){var x=s.constructor;switch(c){case he:return P1(s);case de:case ye:return new x(+s);case Ne:return a$(s,g);case Oe:case Me:case et:case It:case Jt:case vr:case Oi:case un:case gr:return K5(s,g);case oe:return new x;case xe:case Te:return new x(s);case ht:return o$(s);case je:return new x;case we:return s$(s)}}function S$(s,c){var g=c.length;if(!g)return s;var x=g-1;return c[x]=(g>1?"& ":"")+c[x],c=c.join(g>2?", ":" "),s.replace(Ri,`{
|
|
66
|
+
/* [wrapped with `+c+`] */
|
|
67
|
+
`)}function x$(s){return it(s)||co(s)||!!(b5&&s&&s[b5])}function Fi(s,c){var g=typeof s;return c=c??V,!!c&&(g=="number"||g!="symbol"&&qt.test(s))&&s>-1&&s%1==0&&s<c}function zr(s,c,g){if(!Xt(g))return!1;var x=typeof c;return(x=="number"?Zr(g)&&Fi(c,g.length):x=="string"&&c in g)?Jn(g[c],s):!1}function $1(s,c){if(it(s))return!1;var g=typeof s;return g=="number"||g=="symbol"||g=="boolean"||s==null||vn(s)?!0:Mt.test(s)||!xt.test(s)||c!=null&&s in zt(c)}function C$(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function q1(s){var c=nd(s),g=I[c];if(typeof g!="function"||!(c in bt.prototype))return!1;if(s===g)return!0;var x=D1(g);return!!x&&s===x[0]}function T$(s){return!!v5&&v5 in s}var O$=If?ji:n0;function al(s){var c=s&&s.constructor,g=typeof c=="function"&&c.prototype||xs;return s===g}function v6(s){return s===s&&!Xt(s)}function g6(s,c){return function(g){return g==null?!1:g[s]===c&&(c!==r||s in zt(g))}}function R$(s){var c=ld(s,function(x){return g.size===f&&g.clear(),x}),g=c.cache;return c}function k$(s,c){var g=s[1],x=c[1],A=g|x,D=A<(b|w|O),B=x==O&&g==S||x==O&&g==k&&s[7].length<=c[8]||x==(O|k)&&c[7].length<=c[8]&&g==S;if(!(D||B))return s;x&b&&(s[2]=c[2],A|=g&b?0:E);var X=c[3];if(X){var ne=s[3];s[3]=ne?Z5(ne,X,c[4]):X,s[4]=ne?pa(s[3],d):c[4]}return X=c[5],X&&(ne=s[5],s[5]=ne?J5(ne,X,c[6]):X,s[6]=ne?pa(s[5],d):c[6]),X=c[7],X&&(s[7]=X),x&O&&(s[8]=s[8]==null?c[8]:Nr(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=A,s}function A$(s){var c=[];if(s!=null)for(var g in zt(s))c.push(g);return c}function P$(s){return Mf.call(s)}function m6(s,c,g){return c=fr(c===r?s.length-1:c,0),function(){for(var x=arguments,A=-1,D=fr(x.length-c,0),B=le(D);++A<D;)B[A]=x[c+A];A=-1;for(var X=le(c+1);++A<c;)X[A]=x[A];return X[c]=g(B),dn(s,this,X)}}function y6(s,c){return c.length<2?s:so(s,Dn(c,0,-1))}function N$(s,c){for(var g=s.length,x=Nr(c.length,g),A=Xr(s);x--;){var D=c[x];s[x]=Fi(D,g)?A[D]:r}return s}function U1(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var b6=w6(z5),ol=GF||function(s,c){return Er.setTimeout(s,c)},z1=w6(t$);function _6(s,c,g){var x=c+"";return z1(s,S$(x,I$(_$(x),g)))}function w6(s){var c=0,g=0;return function(){var x=XF(),A=H-(x-g);if(g=x,A>0){if(++c>=z)return arguments[0]}else c=0;return s.apply(r,arguments)}}function ad(s,c){var g=-1,x=s.length,A=x-1;for(c=c===r?x:c;++g<c;){var D=x1(g,A),B=s[D];s[D]=s[g],s[g]=B}return s.length=c,s}var E6=R$(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace($r,function(g,x,A,D){c.push(A?D.replace(ze,"$1"):x||g)}),c});function _i(s){if(typeof s=="string"||vn(s))return s;var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function lo(s){if(s!=null){try{return Lf.call(s)}catch{}try{return s+""}catch{}}return""}function I$(s,c){return Nn(te,function(g){var x="_."+g[0];c&g[1]&&!kf(s,x)&&s.push(x)}),s.sort()}function S6(s){if(s instanceof bt)return s.clone();var c=new Ln(s.__wrapped__,s.__chain__);return c.__actions__=Xr(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function L$(s,c,g){(g?zr(s,c,g):c===r)?c=1:c=fr(ut(c),0);var x=s==null?0:s.length;if(!x||c<1)return[];for(var A=0,D=0,B=le(Uf(x/c));A<x;)B[D++]=Dn(s,A,A+=c);return B}function M$(s){for(var c=-1,g=s==null?0:s.length,x=0,A=[];++c<g;){var D=s[c];D&&(A[x++]=D)}return A}function D$(){var s=arguments.length;if(!s)return[];for(var c=le(s-1),g=arguments[0],x=s;x--;)c[x-1]=arguments[x];return ha(it(g)?Xr(g):[g],Sr(c,1))}var F$=dt(function(s,c){return ar(s)?el(s,Sr(c,1,ar,!0)):[]}),j$=dt(function(s,c){var g=Fn(c);return ar(g)&&(g=r),ar(s)?el(s,Sr(c,1,ar,!0),We(g,2)):[]}),$$=dt(function(s,c){var g=Fn(c);return ar(g)&&(g=r),ar(s)?el(s,Sr(c,1,ar,!0),r,g):[]});function q$(s,c,g){var x=s==null?0:s.length;return x?(c=g||c===r?1:ut(c),Dn(s,c<0?0:c,x)):[]}function U$(s,c,g){var x=s==null?0:s.length;return x?(c=g||c===r?1:ut(c),c=x-c,Dn(s,0,c<0?0:c)):[]}function z$(s,c){return s&&s.length?Xf(s,We(c,3),!0,!0):[]}function H$(s,c){return s&&s.length?Xf(s,We(c,3),!0):[]}function V$(s,c,g,x){var A=s==null?0:s.length;return A?(g&&typeof g!="number"&&zr(s,c,g)&&(g=0,x=A),Dj(s,c,g,x)):[]}function x6(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var A=g==null?0:ut(g);return A<0&&(A=fr(x+A,0)),Af(s,We(c,3),A)}function C6(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var A=x-1;return g!==r&&(A=ut(g),A=g<0?fr(x+A,0):Nr(A,x-1)),Af(s,We(c,3),A,!0)}function T6(s){var c=s==null?0:s.length;return c?Sr(s,1):[]}function B$(s){var c=s==null?0:s.length;return c?Sr(s,Y):[]}function W$(s,c){var g=s==null?0:s.length;return g?(c=c===r?1:ut(c),Sr(s,c)):[]}function G$(s){for(var c=-1,g=s==null?0:s.length,x={};++c<g;){var A=s[c];x[A[0]]=A[1]}return x}function O6(s){return s&&s.length?s[0]:r}function Q$(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var A=g==null?0:ut(g);return A<0&&(A=fr(x+A,0)),_s(s,c,A)}function Y$(s){var c=s==null?0:s.length;return c?Dn(s,0,-1):[]}var K$=dt(function(s){var c=Qt(s,k1);return c.length&&c[0]===s[0]?b1(c):[]}),X$=dt(function(s){var c=Fn(s),g=Qt(s,k1);return c===Fn(g)?c=r:g.pop(),g.length&&g[0]===s[0]?b1(g,We(c,2)):[]}),Z$=dt(function(s){var c=Fn(s),g=Qt(s,k1);return c=typeof c=="function"?c:r,c&&g.pop(),g.length&&g[0]===s[0]?b1(g,r,c):[]});function J$(s,c){return s==null?"":YF.call(s,c)}function Fn(s){var c=s==null?0:s.length;return c?s[c-1]:r}function eq(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var A=x;return g!==r&&(A=ut(g),A=A<0?fr(x+A,0):Nr(A,x-1)),c===c?IF(s,c,A):Af(s,s5,A,!0)}function tq(s,c){return s&&s.length?j5(s,ut(c)):r}var rq=dt(R6);function R6(s,c){return s&&s.length&&c&&c.length?S1(s,c):s}function nq(s,c,g){return s&&s.length&&c&&c.length?S1(s,c,We(g,2)):s}function iq(s,c,g){return s&&s.length&&c&&c.length?S1(s,c,r,g):s}var aq=Di(function(s,c){var g=s==null?0:s.length,x=v1(s,c);return U5(s,Qt(c,function(A){return Fi(A,g)?+A:A}).sort(X5)),x});function oq(s,c){var g=[];if(!(s&&s.length))return g;var x=-1,A=[],D=s.length;for(c=We(c,3);++x<D;){var B=s[x];c(B,x,s)&&(g.push(B),A.push(x))}return U5(s,A),g}function H1(s){return s==null?s:JF.call(s)}function sq(s,c,g){var x=s==null?0:s.length;return x?(g&&typeof g!="number"&&zr(s,c,g)?(c=0,g=x):(c=c==null?0:ut(c),g=g===r?x:ut(g)),Dn(s,c,g)):[]}function uq(s,c){return Kf(s,c)}function lq(s,c,g){return T1(s,c,We(g,2))}function cq(s,c){var g=s==null?0:s.length;if(g){var x=Kf(s,c);if(x<g&&Jn(s[x],c))return x}return-1}function fq(s,c){return Kf(s,c,!0)}function dq(s,c,g){return T1(s,c,We(g,2),!0)}function hq(s,c){var g=s==null?0:s.length;if(g){var x=Kf(s,c,!0)-1;if(Jn(s[x],c))return x}return-1}function pq(s){return s&&s.length?H5(s):[]}function vq(s,c){return s&&s.length?H5(s,We(c,2)):[]}function gq(s){var c=s==null?0:s.length;return c?Dn(s,1,c):[]}function mq(s,c,g){return s&&s.length?(c=g||c===r?1:ut(c),Dn(s,0,c<0?0:c)):[]}function yq(s,c,g){var x=s==null?0:s.length;return x?(c=g||c===r?1:ut(c),c=x-c,Dn(s,c<0?0:c,x)):[]}function bq(s,c){return s&&s.length?Xf(s,We(c,3),!1,!0):[]}function _q(s,c){return s&&s.length?Xf(s,We(c,3)):[]}var wq=dt(function(s){return ma(Sr(s,1,ar,!0))}),Eq=dt(function(s){var c=Fn(s);return ar(c)&&(c=r),ma(Sr(s,1,ar,!0),We(c,2))}),Sq=dt(function(s){var c=Fn(s);return c=typeof c=="function"?c:r,ma(Sr(s,1,ar,!0),r,c)});function xq(s){return s&&s.length?ma(s):[]}function Cq(s,c){return s&&s.length?ma(s,We(c,2)):[]}function Tq(s,c){return c=typeof c=="function"?c:r,s&&s.length?ma(s,r,c):[]}function V1(s){if(!(s&&s.length))return[];var c=0;return s=da(s,function(g){if(ar(g))return c=fr(g.length,c),!0}),s1(c,function(g){return Qt(s,i1(g))})}function k6(s,c){if(!(s&&s.length))return[];var g=V1(s);return c==null?g:Qt(g,function(x){return dn(c,r,x)})}var Oq=dt(function(s,c){return ar(s)?el(s,c):[]}),Rq=dt(function(s){return R1(da(s,ar))}),kq=dt(function(s){var c=Fn(s);return ar(c)&&(c=r),R1(da(s,ar),We(c,2))}),Aq=dt(function(s){var c=Fn(s);return c=typeof c=="function"?c:r,R1(da(s,ar),r,c)}),Pq=dt(V1);function Nq(s,c){return G5(s||[],c||[],Ju)}function Iq(s,c){return G5(s||[],c||[],nl)}var Lq=dt(function(s){var c=s.length,g=c>1?s[c-1]:r;return g=typeof g=="function"?(s.pop(),g):r,k6(s,g)});function A6(s){var c=I(s);return c.__chain__=!0,c}function Mq(s,c){return c(s),s}function od(s,c){return c(s)}var Dq=Di(function(s){var c=s.length,g=c?s[0]:0,x=this.__wrapped__,A=function(D){return v1(D,s)};return c>1||this.__actions__.length||!(x instanceof bt)||!Fi(g)?this.thru(A):(x=x.slice(g,+g+(c?1:0)),x.__actions__.push({func:od,args:[A],thisArg:r}),new Ln(x,this.__chain__).thru(function(D){return c&&!D.length&&D.push(r),D}))});function Fq(){return A6(this)}function jq(){return new Ln(this.value(),this.__chain__)}function $q(){this.__values__===r&&(this.__values__=V6(this.value()));var s=this.__index__>=this.__values__.length,c=s?r:this.__values__[this.__index__++];return{done:s,value:c}}function qq(){return this}function Uq(s){for(var c,g=this;g instanceof Bf;){var x=S6(g);x.__index__=0,x.__values__=r,c?A.__wrapped__=x:c=x;var A=x;g=g.__wrapped__}return A.__wrapped__=s,c}function zq(){var s=this.__wrapped__;if(s instanceof bt){var c=s;return this.__actions__.length&&(c=new bt(this)),c=c.reverse(),c.__actions__.push({func:od,args:[H1],thisArg:r}),new Ln(c,this.__chain__)}return this.thru(H1)}function Hq(){return W5(this.__wrapped__,this.__actions__)}var Vq=Zf(function(s,c,g){Dt.call(s,g)?++s[g]:Li(s,g,1)});function Bq(s,c,g){var x=it(s)?a5:Mj;return g&&zr(s,c,g)&&(c=r),x(s,We(c,3))}function Wq(s,c){var g=it(s)?da:k5;return g(s,We(c,3))}var Gq=n6(x6),Qq=n6(C6);function Yq(s,c){return Sr(sd(s,c),1)}function Kq(s,c){return Sr(sd(s,c),Y)}function Xq(s,c,g){return g=g===r?1:ut(g),Sr(sd(s,c),g)}function P6(s,c){var g=it(s)?Nn:ga;return g(s,We(c,3))}function N6(s,c){var g=it(s)?gF:R5;return g(s,We(c,3))}var Zq=Zf(function(s,c,g){Dt.call(s,g)?s[g].push(c):Li(s,g,[c])});function Jq(s,c,g,x){s=Zr(s)?s:Ns(s),g=g&&!x?ut(g):0;var A=s.length;return g<0&&(g=fr(A+g,0)),dd(s)?g<=A&&s.indexOf(c,g)>-1:!!A&&_s(s,c,g)>-1}var eU=dt(function(s,c,g){var x=-1,A=typeof c=="function",D=Zr(s)?le(s.length):[];return ga(s,function(B){D[++x]=A?dn(c,B,g):tl(B,c,g)}),D}),tU=Zf(function(s,c,g){Li(s,g,c)});function sd(s,c){var g=it(s)?Qt:M5;return g(s,We(c,3))}function rU(s,c,g,x){return s==null?[]:(it(c)||(c=c==null?[]:[c]),g=x?r:g,it(g)||(g=g==null?[]:[g]),$5(s,c,g))}var nU=Zf(function(s,c,g){s[g?0:1].push(c)},function(){return[[],[]]});function iU(s,c,g){var x=it(s)?r1:l5,A=arguments.length<3;return x(s,We(c,4),g,A,ga)}function aU(s,c,g){var x=it(s)?mF:l5,A=arguments.length<3;return x(s,We(c,4),g,A,R5)}function oU(s,c){var g=it(s)?da:k5;return g(s,cd(We(c,3)))}function sU(s){var c=it(s)?x5:Jj;return c(s)}function uU(s,c,g){(g?zr(s,c,g):c===r)?c=1:c=ut(c);var x=it(s)?Aj:e$;return x(s,c)}function lU(s){var c=it(s)?Pj:r$;return c(s)}function cU(s){if(s==null)return 0;if(Zr(s))return dd(s)?Es(s):s.length;var c=Ir(s);return c==oe||c==je?s.size:w1(s).length}function fU(s,c,g){var x=it(s)?n1:n$;return g&&zr(s,c,g)&&(c=r),x(s,We(c,3))}var dU=dt(function(s,c){if(s==null)return[];var g=c.length;return g>1&&zr(s,c[0],c[1])?c=[]:g>2&&zr(c[0],c[1],c[2])&&(c=[c[0]]),$5(s,Sr(c,1),[])}),ud=WF||function(){return Er.Date.now()};function hU(s,c){if(typeof c!="function")throw new In(o);return s=ut(s),function(){if(--s<1)return c.apply(this,arguments)}}function I6(s,c,g){return c=g?r:c,c=s&&c==null?s.length:c,Mi(s,O,r,r,r,r,c)}function L6(s,c){var g;if(typeof c!="function")throw new In(o);return s=ut(s),function(){return--s>0&&(g=c.apply(this,arguments)),s<=1&&(c=r),g}}var B1=dt(function(s,c,g){var x=b;if(g.length){var A=pa(g,As(B1));x|=_}return Mi(s,x,c,g,A)}),M6=dt(function(s,c,g){var x=b|w;if(g.length){var A=pa(g,As(M6));x|=_}return Mi(c,x,s,g,A)});function D6(s,c,g){c=g?r:c;var x=Mi(s,S,r,r,r,r,r,c);return x.placeholder=D6.placeholder,x}function F6(s,c,g){c=g?r:c;var x=Mi(s,C,r,r,r,r,r,c);return x.placeholder=F6.placeholder,x}function j6(s,c,g){var x,A,D,B,X,ne,ge=0,me=!1,be=!1,Ae=!0;if(typeof s!="function")throw new In(o);c=jn(c)||0,Xt(g)&&(me=!!g.leading,be="maxWait"in g,D=be?fr(jn(g.maxWait)||0,c):D,Ae="trailing"in g?!!g.trailing:Ae);function Ue(or){var ei=x,qi=A;return x=A=r,ge=or,B=s.apply(qi,ei),B}function Ge(or){return ge=or,X=ol(gt,c),me?Ue(or):B}function ct(or){var ei=or-ne,qi=or-ge,nT=c-ei;return be?Nr(nT,D-qi):nT}function Qe(or){var ei=or-ne,qi=or-ge;return ne===r||ei>=c||ei<0||be&&qi>=D}function gt(){var or=ud();if(Qe(or))return wt(or);X=ol(gt,ct(or))}function wt(or){return X=r,Ae&&x?Ue(or):(x=A=r,B)}function gn(){X!==r&&Q5(X),ge=0,x=ne=A=X=r}function Hr(){return X===r?B:wt(ud())}function mn(){var or=ud(),ei=Qe(or);if(x=arguments,A=this,ne=or,ei){if(X===r)return Ge(ne);if(be)return Q5(X),X=ol(gt,c),Ue(ne)}return X===r&&(X=ol(gt,c)),B}return mn.cancel=gn,mn.flush=Hr,mn}var pU=dt(function(s,c){return O5(s,1,c)}),vU=dt(function(s,c,g){return O5(s,jn(c)||0,g)});function gU(s){return Mi(s,P)}function ld(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new In(o);var g=function(){var x=arguments,A=c?c.apply(this,x):x[0],D=g.cache;if(D.has(A))return D.get(A);var B=s.apply(this,x);return g.cache=D.set(A,B)||D,B};return g.cache=new(ld.Cache||Ii),g}ld.Cache=Ii;function cd(s){if(typeof s!="function")throw new In(o);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function mU(s){return L6(2,s)}var yU=i$(function(s,c){c=c.length==1&&it(c[0])?Qt(c[0],hn(We())):Qt(Sr(c,1),hn(We()));var g=c.length;return dt(function(x){for(var A=-1,D=Nr(x.length,g);++A<D;)x[A]=c[A].call(this,x[A]);return dn(s,this,x)})}),W1=dt(function(s,c){var g=pa(c,As(W1));return Mi(s,_,r,c,g)}),$6=dt(function(s,c){var g=pa(c,As($6));return Mi(s,T,r,c,g)}),bU=Di(function(s,c){return Mi(s,k,r,r,r,c)});function _U(s,c){if(typeof s!="function")throw new In(o);return c=c===r?c:ut(c),dt(s,c)}function wU(s,c){if(typeof s!="function")throw new In(o);return c=c==null?0:fr(ut(c),0),dt(function(g){var x=g[c],A=ba(g,0,c);return x&&ha(A,x),dn(s,this,A)})}function EU(s,c,g){var x=!0,A=!0;if(typeof s!="function")throw new In(o);return Xt(g)&&(x="leading"in g?!!g.leading:x,A="trailing"in g?!!g.trailing:A),j6(s,c,{leading:x,maxWait:c,trailing:A})}function SU(s){return I6(s,1)}function xU(s,c){return W1(A1(c),s)}function CU(){if(!arguments.length)return[];var s=arguments[0];return it(s)?s:[s]}function TU(s){return Mn(s,v)}function OU(s,c){return c=typeof c=="function"?c:r,Mn(s,v,c)}function RU(s){return Mn(s,h|v)}function kU(s,c){return c=typeof c=="function"?c:r,Mn(s,h|v,c)}function AU(s,c){return c==null||T5(s,c,yr(c))}function Jn(s,c){return s===c||s!==s&&c!==c}var PU=rd(y1),NU=rd(function(s,c){return s>=c}),co=N5(function(){return arguments}())?N5:function(s){return er(s)&&Dt.call(s,"callee")&&!y5.call(s,"callee")},it=le.isArray,IU=JC?hn(JC):Uj;function Zr(s){return s!=null&&fd(s.length)&&!ji(s)}function ar(s){return er(s)&&Zr(s)}function LU(s){return s===!0||s===!1||er(s)&&Ur(s)==de}var _a=QF||n0,MU=e5?hn(e5):zj;function DU(s){return er(s)&&s.nodeType===1&&!sl(s)}function FU(s){if(s==null)return!0;if(Zr(s)&&(it(s)||typeof s=="string"||typeof s.splice=="function"||_a(s)||Ps(s)||co(s)))return!s.length;var c=Ir(s);if(c==oe||c==je)return!s.size;if(al(s))return!w1(s).length;for(var g in s)if(Dt.call(s,g))return!1;return!0}function jU(s,c){return rl(s,c)}function $U(s,c,g){g=typeof g=="function"?g:r;var x=g?g(s,c):r;return x===r?rl(s,c,r,g):!!x}function G1(s){if(!er(s))return!1;var c=Ur(s);return c==J||c==Se||typeof s.message=="string"&&typeof s.name=="string"&&!sl(s)}function qU(s){return typeof s=="number"&&_5(s)}function ji(s){if(!Xt(s))return!1;var c=Ur(s);return c==j||c==Re||c==W||c==Xe}function q6(s){return typeof s=="number"&&s==ut(s)}function fd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=V}function Xt(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function er(s){return s!=null&&typeof s=="object"}var U6=t5?hn(t5):Vj;function UU(s,c){return s===c||_1(s,c,F1(c))}function zU(s,c,g){return g=typeof g=="function"?g:r,_1(s,c,F1(c),g)}function HU(s){return z6(s)&&s!=+s}function VU(s){if(O$(s))throw new rt(a);return I5(s)}function BU(s){return s===null}function WU(s){return s==null}function z6(s){return typeof s=="number"||er(s)&&Ur(s)==xe}function sl(s){if(!er(s)||Ur(s)!=He)return!1;var c=jf(s);if(c===null)return!0;var g=Dt.call(c,"constructor")&&c.constructor;return typeof g=="function"&&g instanceof g&&Lf.call(g)==zF}var Q1=r5?hn(r5):Bj;function GU(s){return q6(s)&&s>=-9007199254740991&&s<=V}var H6=n5?hn(n5):Wj;function dd(s){return typeof s=="string"||!it(s)&&er(s)&&Ur(s)==Te}function vn(s){return typeof s=="symbol"||er(s)&&Ur(s)==we}var Ps=i5?hn(i5):Gj;function QU(s){return s===r}function YU(s){return er(s)&&Ir(s)==_e}function KU(s){return er(s)&&Ur(s)==Ce}var XU=rd(E1),ZU=rd(function(s,c){return s<=c});function V6(s){if(!s)return[];if(Zr(s))return dd(s)?Xn(s):Xr(s);if(Qu&&s[Qu])return AF(s[Qu]());var c=Ir(s),g=c==oe?l1:c==je?Pf:Ns;return g(s)}function $i(s){if(!s)return s===0?s:0;if(s=jn(s),s===Y||s===-1/0){var c=s<0?-1:1;return c*K}return s===s?s:0}function ut(s){var c=$i(s),g=c%1;return c===c?g?c-g:c:0}function B6(s){return s?oo(ut(s),0,Q):0}function jn(s){if(typeof s=="number")return s;if(vn(s))return $;if(Xt(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=Xt(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=c5(s);var g=Ke.test(s);return g||Ct.test(s)?hF(s.slice(2),g?2:8):tt.test(s)?$:+s}function W6(s){return bi(s,Jr(s))}function JU(s){return s?oo(ut(s),-9007199254740991,V):s===0?s:0}function Lt(s){return s==null?"":pn(s)}var ez=Rs(function(s,c){if(al(c)||Zr(c)){bi(c,yr(c),s);return}for(var g in c)Dt.call(c,g)&&Ju(s,g,c[g])}),G6=Rs(function(s,c){bi(c,Jr(c),s)}),hd=Rs(function(s,c,g,x){bi(c,Jr(c),s,x)}),tz=Rs(function(s,c,g,x){bi(c,yr(c),s,x)}),rz=Di(v1);function nz(s,c){var g=Os(s);return c==null?g:C5(g,c)}var iz=dt(function(s,c){s=zt(s);var g=-1,x=c.length,A=x>2?c[2]:r;for(A&&zr(c[0],c[1],A)&&(x=1);++g<x;)for(var D=c[g],B=Jr(D),X=-1,ne=B.length;++X<ne;){var ge=B[X],me=s[ge];(me===r||Jn(me,xs[ge])&&!Dt.call(s,ge))&&(s[ge]=D[ge])}return s}),az=dt(function(s){return s.push(r,c6),dn(Q6,r,s)});function oz(s,c){return o5(s,We(c,3),yi)}function sz(s,c){return o5(s,We(c,3),m1)}function uz(s,c){return s==null?s:g1(s,We(c,3),Jr)}function lz(s,c){return s==null?s:A5(s,We(c,3),Jr)}function cz(s,c){return s&&yi(s,We(c,3))}function fz(s,c){return s&&m1(s,We(c,3))}function dz(s){return s==null?[]:Qf(s,yr(s))}function hz(s){return s==null?[]:Qf(s,Jr(s))}function Y1(s,c,g){var x=s==null?r:so(s,c);return x===r?g:x}function pz(s,c){return s!=null&&h6(s,c,Fj)}function K1(s,c){return s!=null&&h6(s,c,jj)}var vz=a6(function(s,c,g){c!=null&&typeof c.toString!="function"&&(c=Mf.call(c)),s[c]=g},Z1(en)),gz=a6(function(s,c,g){c!=null&&typeof c.toString!="function"&&(c=Mf.call(c)),Dt.call(s,c)?s[c].push(g):s[c]=[g]},We),mz=dt(tl);function yr(s){return Zr(s)?S5(s):w1(s)}function Jr(s){return Zr(s)?S5(s,!0):Qj(s)}function yz(s,c){var g={};return c=We(c,3),yi(s,function(x,A,D){Li(g,c(x,A,D),x)}),g}function bz(s,c){var g={};return c=We(c,3),yi(s,function(x,A,D){Li(g,A,c(x,A,D))}),g}var _z=Rs(function(s,c,g){Yf(s,c,g)}),Q6=Rs(function(s,c,g,x){Yf(s,c,g,x)}),wz=Di(function(s,c){var g={};if(s==null)return g;var x=!1;c=Qt(c,function(D){return D=ya(D,s),x||(x=D.length>1),D}),bi(s,M1(s),g),x&&(g=Mn(g,h|p|v,v$));for(var A=c.length;A--;)O1(g,c[A]);return g});function Ez(s,c){return Y6(s,cd(We(c)))}var Sz=Di(function(s,c){return s==null?{}:Kj(s,c)});function Y6(s,c){if(s==null)return{};var g=Qt(M1(s),function(x){return[x]});return c=We(c),q5(s,g,function(x,A){return c(x,A[0])})}function xz(s,c,g){c=ya(c,s);var x=-1,A=c.length;for(A||(A=1,s=r);++x<A;){var D=s==null?r:s[_i(c[x])];D===r&&(x=A,D=g),s=ji(D)?D.call(s):D}return s}function Cz(s,c,g){return s==null?s:nl(s,c,g)}function Tz(s,c,g,x){return x=typeof x=="function"?x:r,s==null?s:nl(s,c,g,x)}var K6=u6(yr),X6=u6(Jr);function Oz(s,c,g){var x=it(s),A=x||_a(s)||Ps(s);if(c=We(c,4),g==null){var D=s&&s.constructor;A?g=x?new D:[]:Xt(s)?g=ji(D)?Os(jf(s)):{}:g={}}return(A?Nn:yi)(s,function(B,X,ne){return c(g,B,X,ne)}),g}function Rz(s,c){return s==null?!0:O1(s,c)}function kz(s,c,g){return s==null?s:B5(s,c,A1(g))}function Az(s,c,g,x){return x=typeof x=="function"?x:r,s==null?s:B5(s,c,A1(g),x)}function Ns(s){return s==null?[]:u1(s,yr(s))}function Pz(s){return s==null?[]:u1(s,Jr(s))}function Nz(s,c,g){return g===r&&(g=c,c=r),g!==r&&(g=jn(g),g=g===g?g:0),c!==r&&(c=jn(c),c=c===c?c:0),oo(jn(s),c,g)}function Iz(s,c,g){return c=$i(c),g===r?(g=c,c=0):g=$i(g),s=jn(s),$j(s,c,g)}function Lz(s,c,g){if(g&&typeof g!="boolean"&&zr(s,c,g)&&(c=g=r),g===r&&(typeof c=="boolean"?(g=c,c=r):typeof s=="boolean"&&(g=s,s=r)),s===r&&c===r?(s=0,c=1):(s=$i(s),c===r?(c=s,s=0):c=$i(c)),s>c){var x=s;s=c,c=x}if(g||s%1||c%1){var A=w5();return Nr(s+A*(c-s+dF("1e-"+((A+"").length-1))),c)}return x1(s,c)}var Mz=ks(function(s,c,g){return c=c.toLowerCase(),s+(g?Z6(c):c)});function Z6(s){return X1(Lt(s).toLowerCase())}function J6(s){return s=Lt(s),s&&s.replace(St,CF).replace($e,"")}function Dz(s,c,g){s=Lt(s),c=pn(c);var x=s.length;g=g===r?x:oo(ut(g),0,x);var A=g;return g-=c.length,g>=0&&s.slice(g,A)==c}function Fz(s){return s=Lt(s),s&&wr.test(s)?s.replace(li,TF):s}function jz(s){return s=Lt(s),s&&fi.test(s)?s.replace(Yr,"\\$&"):s}var $z=ks(function(s,c,g){return s+(g?"-":"")+c.toLowerCase()}),qz=ks(function(s,c,g){return s+(g?" ":"")+c.toLowerCase()}),Uz=r6("toLowerCase");function zz(s,c,g){s=Lt(s),c=ut(c);var x=c?Es(s):0;if(!c||x>=c)return s;var A=(c-x)/2;return td(zf(A),g)+s+td(Uf(A),g)}function Hz(s,c,g){s=Lt(s),c=ut(c);var x=c?Es(s):0;return c&&x<c?s+td(c-x,g):s}function Vz(s,c,g){s=Lt(s),c=ut(c);var x=c?Es(s):0;return c&&x<c?td(c-x,g)+s:s}function Bz(s,c,g){return g||c==null?c=0:c&&(c=+c),ZF(Lt(s).replace(mr,""),c||0)}function Wz(s,c,g){return(g?zr(s,c,g):c===r)?c=1:c=ut(c),C1(Lt(s),c)}function Gz(){var s=arguments,c=Lt(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var Qz=ks(function(s,c,g){return s+(g?"_":"")+c.toLowerCase()});function Yz(s,c,g){return g&&typeof g!="number"&&zr(s,c,g)&&(c=g=r),g=g===r?Q:g>>>0,g?(s=Lt(s),s&&(typeof c=="string"||c!=null&&!Q1(c))&&(c=pn(c),!c&&ws(s))?ba(Xn(s),0,g):s.split(c,g)):[]}var Kz=ks(function(s,c,g){return s+(g?" ":"")+X1(c)});function Xz(s,c,g){return s=Lt(s),g=g==null?0:oo(ut(g),0,s.length),c=pn(c),s.slice(g,g+c.length)==c}function Zz(s,c,g){var x=I.templateSettings;g&&zr(s,c,g)&&(c=r),s=Lt(s),c=hd({},c,x,l6);var A=hd({},c.imports,x.imports,l6),D=yr(A),B=u1(A,D),X,ne,ge=0,me=c.interpolate||Pr,be="__p += '",Ae=c1((c.escape||Pr).source+"|"+me.source+"|"+(me===Qr?pt:Pr).source+"|"+(c.evaluate||Pr).source+"|$","g"),Ue="//# sourceURL="+(Dt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wu+"]")+`
|
|
68
|
+
`;s.replace(Ae,function(Qe,gt,wt,gn,Hr,mn){return wt||(wt=gn),be+=s.slice(ge,mn).replace(cn,OF),gt&&(X=!0,be+=`' +
|
|
69
|
+
__e(`+gt+`) +
|
|
70
|
+
'`),Hr&&(ne=!0,be+=`';
|
|
71
|
+
`+Hr+`;
|
|
72
|
+
__p += '`),wt&&(be+=`' +
|
|
73
|
+
((__t = (`+wt+`)) == null ? '' : __t) +
|
|
74
|
+
'`),ge=mn+Qe.length,Qe}),be+=`';
|
|
75
|
+
`;var Ge=Dt.call(c,"variable")&&c.variable;if(!Ge)be=`with (obj) {
|
|
76
|
+
`+be+`
|
|
77
|
+
}
|
|
78
|
+
`;else if(ke.test(Ge))throw new rt(u);be=(ne?be.replace(Gr,""):be).replace(oa,"$1").replace(ln,"$1;"),be="function("+(Ge||"obj")+`) {
|
|
79
|
+
`+(Ge?"":`obj || (obj = {});
|
|
80
|
+
`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(ne?`, __j = Array.prototype.join;
|
|
81
|
+
function print() { __p += __j.call(arguments, '') }
|
|
82
|
+
`:`;
|
|
83
|
+
`)+be+`return __p
|
|
84
|
+
}`;var ct=tT(function(){return Ot(D,Ue+"return "+be).apply(r,B)});if(ct.source=be,G1(ct))throw ct;return ct}function Jz(s){return Lt(s).toLowerCase()}function eH(s){return Lt(s).toUpperCase()}function tH(s,c,g){if(s=Lt(s),s&&(g||c===r))return c5(s);if(!s||!(c=pn(c)))return s;var x=Xn(s),A=Xn(c),D=f5(x,A),B=d5(x,A)+1;return ba(x,D,B).join("")}function rH(s,c,g){if(s=Lt(s),s&&(g||c===r))return s.slice(0,p5(s)+1);if(!s||!(c=pn(c)))return s;var x=Xn(s),A=d5(x,Xn(c))+1;return ba(x,0,A).join("")}function nH(s,c,g){if(s=Lt(s),s&&(g||c===r))return s.replace(mr,"");if(!s||!(c=pn(c)))return s;var x=Xn(s),A=f5(x,Xn(c));return ba(x,A).join("")}function iH(s,c){var g=N,x=M;if(Xt(c)){var A="separator"in c?c.separator:A;g="length"in c?ut(c.length):g,x="omission"in c?pn(c.omission):x}s=Lt(s);var D=s.length;if(ws(s)){var B=Xn(s);D=B.length}if(g>=D)return s;var X=g-Es(x);if(X<1)return x;var ne=B?ba(B,0,X).join(""):s.slice(0,X);if(A===r)return ne+x;if(B&&(X+=ne.length-X),Q1(A)){if(s.slice(X).search(A)){var ge,me=ne;for(A.global||(A=c1(A.source,Lt(vt.exec(A))+"g")),A.lastIndex=0;ge=A.exec(me);)var be=ge.index;ne=ne.slice(0,be===r?X:be)}}else if(s.indexOf(pn(A),X)!=X){var Ae=ne.lastIndexOf(A);Ae>-1&&(ne=ne.slice(0,Ae))}return ne+x}function aH(s){return s=Lt(s),s&&jr.test(s)?s.replace(ui,LF):s}var oH=ks(function(s,c,g){return s+(g?" ":"")+c.toUpperCase()}),X1=r6("toUpperCase");function eT(s,c,g){return s=Lt(s),c=g?r:c,c===r?kF(s)?FF(s):_F(s):s.match(c)||[]}var tT=dt(function(s,c){try{return dn(s,r,c)}catch(g){return G1(g)?g:new rt(g)}}),sH=Di(function(s,c){return Nn(c,function(g){g=_i(g),Li(s,g,B1(s[g],s))}),s});function uH(s){var c=s==null?0:s.length,g=We();return s=c?Qt(s,function(x){if(typeof x[1]!="function")throw new In(o);return[g(x[0]),x[1]]}):[],dt(function(x){for(var A=-1;++A<c;){var D=s[A];if(dn(D[0],this,x))return dn(D[1],this,x)}})}function lH(s){return Lj(Mn(s,h))}function Z1(s){return function(){return s}}function cH(s,c){return s==null||s!==s?c:s}var fH=i6(),dH=i6(!0);function en(s){return s}function J1(s){return L5(typeof s=="function"?s:Mn(s,h))}function hH(s){return D5(Mn(s,h))}function pH(s,c){return F5(s,Mn(c,h))}var vH=dt(function(s,c){return function(g){return tl(g,s,c)}}),gH=dt(function(s,c){return function(g){return tl(s,g,c)}});function e0(s,c,g){var x=yr(c),A=Qf(c,x);g==null&&!(Xt(c)&&(A.length||!x.length))&&(g=c,c=s,s=this,A=Qf(c,yr(c)));var D=!(Xt(g)&&"chain"in g)||!!g.chain,B=ji(s);return Nn(A,function(X){var ne=c[X];s[X]=ne,B&&(s.prototype[X]=function(){var ge=this.__chain__;if(D||ge){var me=s(this.__wrapped__),be=me.__actions__=Xr(this.__actions__);return be.push({func:ne,args:arguments,thisArg:s}),me.__chain__=ge,me}return ne.apply(s,ha([this.value()],arguments))})}),s}function mH(){return Er._===this&&(Er._=HF),this}function t0(){}function yH(s){return s=ut(s),dt(function(c){return j5(c,s)})}var bH=N1(Qt),_H=N1(a5),wH=N1(n1);function rT(s){return $1(s)?i1(_i(s)):Xj(s)}function EH(s){return function(c){return s==null?r:so(s,c)}}var SH=o6(),xH=o6(!0);function r0(){return[]}function n0(){return!1}function CH(){return{}}function TH(){return""}function OH(){return!0}function RH(s,c){if(s=ut(s),s<1||s>V)return[];var g=Q,x=Nr(s,Q);c=We(c),s-=Q;for(var A=s1(x,c);++g<s;)c(g);return A}function kH(s){return it(s)?Qt(s,_i):vn(s)?[s]:Xr(E6(Lt(s)))}function AH(s){var c=++UF;return Lt(s)+c}var PH=ed(function(s,c){return s+c},0),NH=I1("ceil"),IH=ed(function(s,c){return s/c},1),LH=I1("floor");function MH(s){return s&&s.length?Gf(s,en,y1):r}function DH(s,c){return s&&s.length?Gf(s,We(c,2),y1):r}function FH(s){return u5(s,en)}function jH(s,c){return u5(s,We(c,2))}function $H(s){return s&&s.length?Gf(s,en,E1):r}function qH(s,c){return s&&s.length?Gf(s,We(c,2),E1):r}var UH=ed(function(s,c){return s*c},1),zH=I1("round"),HH=ed(function(s,c){return s-c},0);function VH(s){return s&&s.length?o1(s,en):0}function BH(s,c){return s&&s.length?o1(s,We(c,2)):0}return I.after=hU,I.ary=I6,I.assign=ez,I.assignIn=G6,I.assignInWith=hd,I.assignWith=tz,I.at=rz,I.before=L6,I.bind=B1,I.bindAll=sH,I.bindKey=M6,I.castArray=CU,I.chain=A6,I.chunk=L$,I.compact=M$,I.concat=D$,I.cond=uH,I.conforms=lH,I.constant=Z1,I.countBy=Vq,I.create=nz,I.curry=D6,I.curryRight=F6,I.debounce=j6,I.defaults=iz,I.defaultsDeep=az,I.defer=pU,I.delay=vU,I.difference=F$,I.differenceBy=j$,I.differenceWith=$$,I.drop=q$,I.dropRight=U$,I.dropRightWhile=z$,I.dropWhile=H$,I.fill=V$,I.filter=Wq,I.flatMap=Yq,I.flatMapDeep=Kq,I.flatMapDepth=Xq,I.flatten=T6,I.flattenDeep=B$,I.flattenDepth=W$,I.flip=gU,I.flow=fH,I.flowRight=dH,I.fromPairs=G$,I.functions=dz,I.functionsIn=hz,I.groupBy=Zq,I.initial=Y$,I.intersection=K$,I.intersectionBy=X$,I.intersectionWith=Z$,I.invert=vz,I.invertBy=gz,I.invokeMap=eU,I.iteratee=J1,I.keyBy=tU,I.keys=yr,I.keysIn=Jr,I.map=sd,I.mapKeys=yz,I.mapValues=bz,I.matches=hH,I.matchesProperty=pH,I.memoize=ld,I.merge=_z,I.mergeWith=Q6,I.method=vH,I.methodOf=gH,I.mixin=e0,I.negate=cd,I.nthArg=yH,I.omit=wz,I.omitBy=Ez,I.once=mU,I.orderBy=rU,I.over=bH,I.overArgs=yU,I.overEvery=_H,I.overSome=wH,I.partial=W1,I.partialRight=$6,I.partition=nU,I.pick=Sz,I.pickBy=Y6,I.property=rT,I.propertyOf=EH,I.pull=rq,I.pullAll=R6,I.pullAllBy=nq,I.pullAllWith=iq,I.pullAt=aq,I.range=SH,I.rangeRight=xH,I.rearg=bU,I.reject=oU,I.remove=oq,I.rest=_U,I.reverse=H1,I.sampleSize=uU,I.set=Cz,I.setWith=Tz,I.shuffle=lU,I.slice=sq,I.sortBy=dU,I.sortedUniq=pq,I.sortedUniqBy=vq,I.split=Yz,I.spread=wU,I.tail=gq,I.take=mq,I.takeRight=yq,I.takeRightWhile=bq,I.takeWhile=_q,I.tap=Mq,I.throttle=EU,I.thru=od,I.toArray=V6,I.toPairs=K6,I.toPairsIn=X6,I.toPath=kH,I.toPlainObject=W6,I.transform=Oz,I.unary=SU,I.union=wq,I.unionBy=Eq,I.unionWith=Sq,I.uniq=xq,I.uniqBy=Cq,I.uniqWith=Tq,I.unset=Rz,I.unzip=V1,I.unzipWith=k6,I.update=kz,I.updateWith=Az,I.values=Ns,I.valuesIn=Pz,I.without=Oq,I.words=eT,I.wrap=xU,I.xor=Rq,I.xorBy=kq,I.xorWith=Aq,I.zip=Pq,I.zipObject=Nq,I.zipObjectDeep=Iq,I.zipWith=Lq,I.entries=K6,I.entriesIn=X6,I.extend=G6,I.extendWith=hd,e0(I,I),I.add=PH,I.attempt=tT,I.camelCase=Mz,I.capitalize=Z6,I.ceil=NH,I.clamp=Nz,I.clone=TU,I.cloneDeep=RU,I.cloneDeepWith=kU,I.cloneWith=OU,I.conformsTo=AU,I.deburr=J6,I.defaultTo=cH,I.divide=IH,I.endsWith=Dz,I.eq=Jn,I.escape=Fz,I.escapeRegExp=jz,I.every=Bq,I.find=Gq,I.findIndex=x6,I.findKey=oz,I.findLast=Qq,I.findLastIndex=C6,I.findLastKey=sz,I.floor=LH,I.forEach=P6,I.forEachRight=N6,I.forIn=uz,I.forInRight=lz,I.forOwn=cz,I.forOwnRight=fz,I.get=Y1,I.gt=PU,I.gte=NU,I.has=pz,I.hasIn=K1,I.head=O6,I.identity=en,I.includes=Jq,I.indexOf=Q$,I.inRange=Iz,I.invoke=mz,I.isArguments=co,I.isArray=it,I.isArrayBuffer=IU,I.isArrayLike=Zr,I.isArrayLikeObject=ar,I.isBoolean=LU,I.isBuffer=_a,I.isDate=MU,I.isElement=DU,I.isEmpty=FU,I.isEqual=jU,I.isEqualWith=$U,I.isError=G1,I.isFinite=qU,I.isFunction=ji,I.isInteger=q6,I.isLength=fd,I.isMap=U6,I.isMatch=UU,I.isMatchWith=zU,I.isNaN=HU,I.isNative=VU,I.isNil=WU,I.isNull=BU,I.isNumber=z6,I.isObject=Xt,I.isObjectLike=er,I.isPlainObject=sl,I.isRegExp=Q1,I.isSafeInteger=GU,I.isSet=H6,I.isString=dd,I.isSymbol=vn,I.isTypedArray=Ps,I.isUndefined=QU,I.isWeakMap=YU,I.isWeakSet=KU,I.join=J$,I.kebabCase=$z,I.last=Fn,I.lastIndexOf=eq,I.lowerCase=qz,I.lowerFirst=Uz,I.lt=XU,I.lte=ZU,I.max=MH,I.maxBy=DH,I.mean=FH,I.meanBy=jH,I.min=$H,I.minBy=qH,I.stubArray=r0,I.stubFalse=n0,I.stubObject=CH,I.stubString=TH,I.stubTrue=OH,I.multiply=UH,I.nth=tq,I.noConflict=mH,I.noop=t0,I.now=ud,I.pad=zz,I.padEnd=Hz,I.padStart=Vz,I.parseInt=Bz,I.random=Lz,I.reduce=iU,I.reduceRight=aU,I.repeat=Wz,I.replace=Gz,I.result=xz,I.round=zH,I.runInContext=re,I.sample=sU,I.size=cU,I.snakeCase=Qz,I.some=fU,I.sortedIndex=uq,I.sortedIndexBy=lq,I.sortedIndexOf=cq,I.sortedLastIndex=fq,I.sortedLastIndexBy=dq,I.sortedLastIndexOf=hq,I.startCase=Kz,I.startsWith=Xz,I.subtract=HH,I.sum=VH,I.sumBy=BH,I.template=Zz,I.times=RH,I.toFinite=$i,I.toInteger=ut,I.toLength=B6,I.toLower=Jz,I.toNumber=jn,I.toSafeInteger=JU,I.toString=Lt,I.toUpper=eH,I.trim=tH,I.trimEnd=rH,I.trimStart=nH,I.truncate=iH,I.unescape=aH,I.uniqueId=AH,I.upperCase=oH,I.upperFirst=X1,I.each=P6,I.eachRight=N6,I.first=O6,e0(I,function(){var s={};return yi(I,function(c,g){Dt.call(I.prototype,g)||(s[g]=c)}),s}(),{chain:!1}),I.VERSION=n,Nn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){I[s].placeholder=I}),Nn(["drop","take"],function(s,c){bt.prototype[s]=function(g){g=g===r?1:fr(ut(g),0);var x=this.__filtered__&&!c?new bt(this):this.clone();return x.__filtered__?x.__takeCount__=Nr(g,x.__takeCount__):x.__views__.push({size:Nr(g,Q),type:s+(x.__dir__<0?"Right":"")}),x},bt.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),Nn(["filter","map","takeWhile"],function(s,c){var g=c+1,x=g==L||g==U;bt.prototype[s]=function(A){var D=this.clone();return D.__iteratees__.push({iteratee:We(A,3),type:g}),D.__filtered__=D.__filtered__||x,D}}),Nn(["head","last"],function(s,c){var g="take"+(c?"Right":"");bt.prototype[s]=function(){return this[g](1).value()[0]}}),Nn(["initial","tail"],function(s,c){var g="drop"+(c?"":"Right");bt.prototype[s]=function(){return this.__filtered__?new bt(this):this[g](1)}}),bt.prototype.compact=function(){return this.filter(en)},bt.prototype.find=function(s){return this.filter(s).head()},bt.prototype.findLast=function(s){return this.reverse().find(s)},bt.prototype.invokeMap=dt(function(s,c){return typeof s=="function"?new bt(this):this.map(function(g){return tl(g,s,c)})}),bt.prototype.reject=function(s){return this.filter(cd(We(s)))},bt.prototype.slice=function(s,c){s=ut(s);var g=this;return g.__filtered__&&(s>0||c<0)?new bt(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),c!==r&&(c=ut(c),g=c<0?g.dropRight(-c):g.take(c-s)),g)},bt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},bt.prototype.toArray=function(){return this.take(Q)},yi(bt.prototype,function(s,c){var g=/^(?:filter|find|map|reject)|While$/.test(c),x=/^(?:head|last)$/.test(c),A=I[x?"take"+(c=="last"?"Right":""):c],D=x||/^find/.test(c);A&&(I.prototype[c]=function(){var B=this.__wrapped__,X=x?[1]:arguments,ne=B instanceof bt,ge=X[0],me=ne||it(B),be=function(gt){var wt=A.apply(I,ha([gt],X));return x&&Ae?wt[0]:wt};me&&g&&typeof ge=="function"&&ge.length!=1&&(ne=me=!1);var Ae=this.__chain__,Ue=!!this.__actions__.length,Ge=D&&!Ae,ct=ne&&!Ue;if(!D&&me){B=ct?B:new bt(this);var Qe=s.apply(B,X);return Qe.__actions__.push({func:od,args:[be],thisArg:r}),new Ln(Qe,Ae)}return Ge&&ct?s.apply(this,X):(Qe=this.thru(be),Ge?x?Qe.value()[0]:Qe.value():Qe)})}),Nn(["pop","push","shift","sort","splice","unshift"],function(s){var c=Nf[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",x=/^(?:pop|shift)$/.test(s);I.prototype[s]=function(){var A=arguments;if(x&&!this.__chain__){var D=this.value();return c.apply(it(D)?D:[],A)}return this[g](function(B){return c.apply(it(B)?B:[],A)})}}),yi(bt.prototype,function(s,c){var g=I[c];if(g){var x=g.name+"";Dt.call(Ts,x)||(Ts[x]=[]),Ts[x].push({name:c,func:g})}}),Ts[Jf(r,w).name]=[{name:"wrapper",func:r}],bt.prototype.clone=aj,bt.prototype.reverse=oj,bt.prototype.value=sj,I.prototype.at=Dq,I.prototype.chain=Fq,I.prototype.commit=jq,I.prototype.next=$q,I.prototype.plant=Uq,I.prototype.reverse=zq,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=Hq,I.prototype.first=I.prototype.head,Qu&&(I.prototype[Qu]=qq),I},Ss=jF();ro?((ro.exports=Ss)._=Ss,Jm._=Ss):Er._=Ss}).call(V8)}(tu,tu.exports)),tu.exports}var lt=B8();const Db="3.7.7",W8=Db,Ao=typeof Buffer=="function",Fb=typeof TextDecoder=="function"?new TextDecoder:void 0,jb=typeof TextEncoder=="function"?new TextEncoder:void 0,ru=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Hl=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(ru),G8=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_r=String.fromCharCode.bind(String),$b=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),qb=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Ub=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),zb=t=>{let e,r,n,i,a="";const o=t.length%3;for(let u=0;u<t.length;){if((r=t.charCodeAt(u++))>255||(n=t.charCodeAt(u++))>255||(i=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|i,a+=ru[e>>18&63]+ru[e>>12&63]+ru[e>>6&63]+ru[e&63]}return o?a.slice(0,o-3)+"===".substring(o):a},Oh=typeof btoa=="function"?t=>btoa(t):Ao?t=>Buffer.from(t,"binary").toString("base64"):zb,Rh=Ao?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,i=t.length;n<i;n+=4096)r.push(_r.apply(null,t.subarray(n,n+4096)));return Oh(r.join(""))},Vl=(t,e=!1)=>e?qb(Rh(t)):Rh(t),Q8=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?_r(192|e>>>6)+_r(128|e&63):_r(224|e>>>12&15)+_r(128|e>>>6&63)+_r(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return _r(240|e>>>18&7)+_r(128|e>>>12&63)+_r(128|e>>>6&63)+_r(128|e&63)}},Y8=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Hb=t=>t.replace(Y8,Q8),Vb=Ao?t=>Buffer.from(t,"utf8").toString("base64"):jb?t=>Rh(jb.encode(t)):t=>Oh(Hb(t)),Po=(t,e=!1)=>e?qb(Vb(t)):Vb(t),Bb=t=>Po(t,!0),K8=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,X8=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return _r((r>>>10)+55296)+_r((r&1023)+56320);case 3:return _r((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return _r((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Wb=t=>t.replace(K8,X8),Gb=t=>{if(t=t.replace(/\s+/g,""),!G8.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,i;for(let a=0;a<t.length;)e=Hl[t.charAt(a++)]<<18|Hl[t.charAt(a++)]<<12|(n=Hl[t.charAt(a++)])<<6|(i=Hl[t.charAt(a++)]),r+=n===64?_r(e>>16&255):i===64?_r(e>>16&255,e>>8&255):_r(e>>16&255,e>>8&255,e&255);return r},kh=typeof atob=="function"?t=>atob(Ub(t)):Ao?t=>Buffer.from(t,"base64").toString("binary"):Gb,Qb=Ao?t=>$b(Buffer.from(t,"base64")):t=>$b(kh(t).split("").map(e=>e.charCodeAt(0))),Yb=t=>Qb(Kb(t)),Z8=Ao?t=>Buffer.from(t,"base64").toString("utf8"):Fb?t=>Fb.decode(Qb(t)):t=>Wb(kh(t)),Kb=t=>Ub(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Ah=t=>Z8(Kb(t)),J8=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},Xb=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Zb=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,Xb(r));t("fromBase64",function(){return Ah(this)}),t("toBase64",function(e){return Po(this,e)}),t("toBase64URI",function(){return Po(this,!0)}),t("toBase64URL",function(){return Po(this,!0)}),t("toUint8Array",function(){return Yb(this)})},Jb=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,Xb(r));t("toBase64",function(e){return Vl(this,e)}),t("toBase64URI",function(){return Vl(this,!0)}),t("toBase64URL",function(){return Vl(this,!0)})},eR={version:Db,VERSION:W8,atob:kh,atobPolyfill:Gb,btoa:Oh,btoaPolyfill:zb,fromBase64:Ah,toBase64:Po,encode:Po,encodeURI:Bb,encodeURL:Bb,utob:Hb,btou:Wb,decode:Ah,isValid:J8,fromUint8Array:Vl,toUint8Array:Yb,extendString:Zb,extendUint8Array:Jb,extendBuiltins:()=>{Zb(),Jb()}};var Ph={exports:{}},Nh={exports:{}},e2;function tR(){return e2||(e2=1,function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(r,n){return r<<n|r>>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return e.rotl(r,8)&16711935|e.rotl(r,24)&4278255360;for(var n=0;n<r.length;n++)r[n]=e.endian(r[n]);return r},randomBytes:function(r){for(var n=[];r>0;r--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(r){for(var n=[],i=0,a=0;i<r.length;i++,a+=8)n[a>>>5]|=r[i]<<24-a%32;return n},wordsToBytes:function(r){for(var n=[],i=0;i<r.length*32;i+=8)n.push(r[i>>>5]>>>24-i%32&255);return n},bytesToHex:function(r){for(var n=[],i=0;i<r.length;i++)n.push((r[i]>>>4).toString(16)),n.push((r[i]&15).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],i=0;i<r.length;i+=2)n.push(parseInt(r.substr(i,2),16));return n},bytesToBase64:function(r){for(var n=[],i=0;i<r.length;i+=3)for(var a=r[i]<<16|r[i+1]<<8|r[i+2],o=0;o<4;o++)i*8+o*6<=r.length*8?n.push(t.charAt(a>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],i=0,a=0;i<r.length;a=++i%4)a!=0&&n.push((t.indexOf(r.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<a*2|t.indexOf(r.charAt(i))>>>6-a*2);return n}};Nh.exports=e}()),Nh.exports}var Ih,t2;function r2(){if(t2)return Ih;t2=1;var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var r=[],n=0;n<e.length;n++)r.push(e.charCodeAt(n)&255);return r},bytesToString:function(e){for(var r=[],n=0;n<e.length;n++)r.push(String.fromCharCode(e[n]));return r.join("")}}};return Ih=t,Ih}/*!
|
|
85
|
+
* Determine if an object is a Buffer
|
|
86
|
+
*
|
|
87
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
88
|
+
* @license MIT
|
|
89
|
+
*/var Lh,n2;function rR(){if(n2)return Lh;n2=1,Lh=function(r){return r!=null&&(t(r)||e(r)||!!r._isBuffer)};function t(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function e(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&t(r.slice(0,0))}return Lh}var i2;function nR(){return i2||(i2=1,function(){var t=tR(),e=r2().utf8,r=rR(),n=r2().bin,i=function(a,o){a.constructor==String?o&&o.encoding==="binary"?a=n.stringToBytes(a):a=e.stringToBytes(a):r(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var u=t.bytesToWords(a),l=a.length*8,f=1732584193,d=-271733879,h=-1732584194,p=271733878,v=0;v<u.length;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360;u[l>>>5]|=128<<l%32,u[(l+64>>>9<<4)+14]=l;for(var m=i._ff,y=i._gg,b=i._hh,w=i._ii,v=0;v<u.length;v+=16){var E=f,S=d,C=h,_=p;f=m(f,d,h,p,u[v+0],7,-680876936),p=m(p,f,d,h,u[v+1],12,-389564586),h=m(h,p,f,d,u[v+2],17,606105819),d=m(d,h,p,f,u[v+3],22,-1044525330),f=m(f,d,h,p,u[v+4],7,-176418897),p=m(p,f,d,h,u[v+5],12,1200080426),h=m(h,p,f,d,u[v+6],17,-1473231341),d=m(d,h,p,f,u[v+7],22,-45705983),f=m(f,d,h,p,u[v+8],7,1770035416),p=m(p,f,d,h,u[v+9],12,-1958414417),h=m(h,p,f,d,u[v+10],17,-42063),d=m(d,h,p,f,u[v+11],22,-1990404162),f=m(f,d,h,p,u[v+12],7,1804603682),p=m(p,f,d,h,u[v+13],12,-40341101),h=m(h,p,f,d,u[v+14],17,-1502002290),d=m(d,h,p,f,u[v+15],22,1236535329),f=y(f,d,h,p,u[v+1],5,-165796510),p=y(p,f,d,h,u[v+6],9,-1069501632),h=y(h,p,f,d,u[v+11],14,643717713),d=y(d,h,p,f,u[v+0],20,-373897302),f=y(f,d,h,p,u[v+5],5,-701558691),p=y(p,f,d,h,u[v+10],9,38016083),h=y(h,p,f,d,u[v+15],14,-660478335),d=y(d,h,p,f,u[v+4],20,-405537848),f=y(f,d,h,p,u[v+9],5,568446438),p=y(p,f,d,h,u[v+14],9,-1019803690),h=y(h,p,f,d,u[v+3],14,-187363961),d=y(d,h,p,f,u[v+8],20,1163531501),f=y(f,d,h,p,u[v+13],5,-1444681467),p=y(p,f,d,h,u[v+2],9,-51403784),h=y(h,p,f,d,u[v+7],14,1735328473),d=y(d,h,p,f,u[v+12],20,-1926607734),f=b(f,d,h,p,u[v+5],4,-378558),p=b(p,f,d,h,u[v+8],11,-2022574463),h=b(h,p,f,d,u[v+11],16,1839030562),d=b(d,h,p,f,u[v+14],23,-35309556),f=b(f,d,h,p,u[v+1],4,-1530992060),p=b(p,f,d,h,u[v+4],11,1272893353),h=b(h,p,f,d,u[v+7],16,-155497632),d=b(d,h,p,f,u[v+10],23,-1094730640),f=b(f,d,h,p,u[v+13],4,681279174),p=b(p,f,d,h,u[v+0],11,-358537222),h=b(h,p,f,d,u[v+3],16,-722521979),d=b(d,h,p,f,u[v+6],23,76029189),f=b(f,d,h,p,u[v+9],4,-640364487),p=b(p,f,d,h,u[v+12],11,-421815835),h=b(h,p,f,d,u[v+15],16,530742520),d=b(d,h,p,f,u[v+2],23,-995338651),f=w(f,d,h,p,u[v+0],6,-198630844),p=w(p,f,d,h,u[v+7],10,1126891415),h=w(h,p,f,d,u[v+14],15,-1416354905),d=w(d,h,p,f,u[v+5],21,-57434055),f=w(f,d,h,p,u[v+12],6,1700485571),p=w(p,f,d,h,u[v+3],10,-1894986606),h=w(h,p,f,d,u[v+10],15,-1051523),d=w(d,h,p,f,u[v+1],21,-2054922799),f=w(f,d,h,p,u[v+8],6,1873313359),p=w(p,f,d,h,u[v+15],10,-30611744),h=w(h,p,f,d,u[v+6],15,-1560198380),d=w(d,h,p,f,u[v+13],21,1309151649),f=w(f,d,h,p,u[v+4],6,-145523070),p=w(p,f,d,h,u[v+11],10,-1120210379),h=w(h,p,f,d,u[v+2],15,718787259),d=w(d,h,p,f,u[v+9],21,-343485551),f=f+E>>>0,d=d+S>>>0,h=h+C>>>0,p=p+_>>>0}return t.endian([f,d,h,p])};i._ff=function(a,o,u,l,f,d,h){var p=a+(o&u|~o&l)+(f>>>0)+h;return(p<<d|p>>>32-d)+o},i._gg=function(a,o,u,l,f,d,h){var p=a+(o&l|u&~l)+(f>>>0)+h;return(p<<d|p>>>32-d)+o},i._hh=function(a,o,u,l,f,d,h){var p=a+(o^u^l)+(f>>>0)+h;return(p<<d|p>>>32-d)+o},i._ii=function(a,o,u,l,f,d,h){var p=a+(u^(o|~l))+(f>>>0)+h;return(p<<d|p>>>32-d)+o},i._blocksize=16,i._digestsize=16,Ph.exports=function(a,o){if(a==null)throw new Error("Illegal argument "+a);var u=t.wordsToBytes(i(a,o));return o&&o.asBytes?u:o&&o.asString?n.bytesToString(u):t.bytesToHex(u)}}()),Ph.exports}var iR=nR();const aR=wi(iR),a2=/\+/g;function o2(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function oR(t){return o2(t.replace(a2," "))}function sR(t){return o2(t.replace(a2," "))}function uR(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const r of t.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const i=oR(n[1]);if(i==="__proto__"||i==="constructor")continue;const a=sR(n[2]||"");e[i]===void 0?e[i]=a:Array.isArray(e[i])?e[i].push(a):e[i]=[e[i],a]}return e}const lR=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,cR=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,fR=/^([/\\]\s*){2,}[^/\\]/;function s2(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?lR.test(t):cR.test(t)||(e.acceptRelative?fR.test(t):!1)}function u2(t){return uR(Mh(t).search)}const dR=Symbol.for("ufo:protocolRelative");function Mh(t="",e){const r=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,h,p=""]=r;return{protocol:h.toLowerCase(),pathname:p,href:h+p,auth:"",host:"",search:"",hash:""}}if(!s2(t,{acceptRelative:!0}))return e?Mh(e+t):l2(t);const[,n="",i,a=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",u=""]=a.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(u=u.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:f,hash:d}=l2(u);return{protocol:n.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:l,search:f,hash:d,[dR]:!n}}function l2(t=""){const[e="",r="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:r,hash:n}}function hR(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],l=!0,f=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(d){f=!0,i=d}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(f)throw i}}return u}}function c2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Tr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?c2(Object(r),!0).forEach(function(n){gR(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c2(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Dh(t){"@babel/helpers - typeof";return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dh(t)}function pR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f2(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p2(n.key),n)}}function vR(t,e,r){return e&&f2(t.prototype,e),r&&f2(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gR(t,e,r){return e=p2(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d2(t,e){return yR(t)||hR(t,e)||h2(t,e)||wR()}function Fh(t){return mR(t)||bR(t)||h2(t)||_R()}function mR(t){if(Array.isArray(t))return jh(t)}function yR(t){if(Array.isArray(t))return t}function bR(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function h2(t,e){if(t){if(typeof t=="string")return jh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jh(t,e)}}function jh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _R(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
90
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
91
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ER(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function p2(t){var e=ER(t,"string");return typeof e=="symbol"?e:String(e)}var SR="3.8.0",xR=/^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i,v2=100,g2=8192,CR=.08,TR={1:75,2:50,3:35,4:23,5:20},OR=[1,2,3,4,5],RR={domain:null,useHTTPS:!0,includeLibraryParam:!0,urlPrefix:"https://",secureURLToken:null};function $h(t){var e=t.url,r=e===void 0?"":e,n=t.useHttps,i=n===void 0?!1:n,a=i?"https://":"http://";return s2(r,!0)?Mh(r):$h({url:a+r})}function kR(t){var e;t.widthTolerance!==void 0?(y2(t.widthTolerance),e=t.widthTolerance):e=CR;var r=t.minWidth===void 0?v2:t.minWidth,n=t.maxWidth===void 0?g2:t.maxWidth;return(r!=v2||n!=g2)&&m2(r,n),[e,r,n]}function m2(t,e){if(!(Number.isInteger(t)&&Number.isInteger(e))||t<=0||e<=0||t>e)throw new Error("The min and max srcset widths can only be passed positive Number values, and min must be less than max. Found min: ".concat(t," and max: ").concat(e,"."))}function y2(t){if(typeof t!="number"||t<.01)throw new Error("The srcset widthTolerance must be a number greater than or equal to 0.01")}function AR(t){if(!Array.isArray(t)||!t.length)throw new Error("The widths argument can only be passed a valid non-empty array of integers");var e=t.every(function(r){return Number.isInteger(r)&&r>0});if(!e)throw new Error("A custom widths argument can only contain positive integer values")}function PR(t){if(typeof t!="boolean")throw new Error("The disableVariableQuality argument can only be passed a Boolean value")}function NR(t){if(!Array.isArray(t)||!t.length)throw new Error("The devicePixelRatios argument can only be passed a valid non-empty array of integers");var e=t.every(function(r){return typeof r=="number"&&r>=1&&r<=5});if(!e)throw new Error("The devicePixelRatios argument can only contain positive integer values between 1 and 5")}function IR(t){if(Dh(t)!=="object")throw new Error("The variableQualities argument can only be an object")}var LR=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(pR(this,t),this.settings=Tr(Tr({},RR),e),this.targetWidthsCache={},typeof this.settings.domain!="string")throw new Error("ImgixClient must be passed a valid string domain");if(xR.exec(this.settings.domain)==null)throw new Error('Domain must be passed in as fully-qualified domain name and should not include a protocol or any path element, i.e. "example.imgix.net".');this.settings.includeLibraryParam&&(this.settings.libraryParam="js-"+t.version()),this.settings.urlPrefix=this.settings.useHTTPS?"https://":"http://"}return vR(t,[{key:"buildURL",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this._sanitizePath(r,i),o=this._buildParams(n,i);return this.settings.secureURLToken&&(o=this._signParams(a,o)),this.settings.urlPrefix+this.settings.domain+a+o}},{key:"_buildParams",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=!!n.encoder,a=n.encoder,o=[].concat(Fh(this.settings.libraryParam?["ixlib=".concat(this.settings.libraryParam)]:[]),Fh(Object.entries(r).reduce(function(u,l){var f=d2(l,2),d=f[0],h=f[1];if(h==null)return u;var p=i?a(d,h):encodeURIComponent(d),v=d.substr(-2)==="64"?i?a(h,d):eR.encodeURI(h):i?a(h,d):encodeURIComponent(h);return u.push("".concat(p,"=").concat(v)),u},[])));return"".concat(o.length>0?"?":"").concat(o.join("&"))}},{key:"_signParams",value:function(r,n){var i=this.settings.secureURLToken+r+n,a=aR(i);return n.length>0?n+"&s="+a:"?s="+a}},{key:"_sanitizePath",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.replace(/^\//,"");return n.disablePathEncoding||(n.encoder?i=n.encoder(i):/^https?:\/\//.test(i)?i=encodeURIComponent(i):i=encodeURI(i).replace(/[#?:+]/g,encodeURIComponent)),"/"+i}},{key:"buildSrcSet",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.w,o=n.h;return a||o?this._buildDPRSrcSet(r,n,i):this._buildSrcSetPairs(r,n,i)}},{key:"_buildSrcSetPairs",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=kR(a),u=d2(o,3),l=u[0],f=u[1],d=u[2],h;a.widths?(AR(a.widths),h=Fh(a.widths)):h=t.targetWidths(f,d,l,this.targetWidthsCache);var p=h.map(function(v){return"".concat(n.buildURL(r,Tr(Tr({},i),{},{w:v}),a)," ").concat(v,"w")});return p.join(`,
|
|
92
|
+
`)}},{key:"_buildDPRSrcSet",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};a.devicePixelRatios&&NR(a.devicePixelRatios);var o=a.devicePixelRatios||OR,u=a.disableVariableQuality||!1;u||PR(u),a.variableQualities&&IR(a.variableQualities);var l=Tr(Tr({},TR),a.variableQualities),f=function(p,v,m){return"".concat(n.buildURL(p,Tr(Tr({},v),{},{dpr:m,q:v.q||l[m]||l[Math.floor(m)]}),a)," ").concat(m,"x")},d=u?o.map(function(h){return"".concat(n.buildURL(r,Tr(Tr({},i),{},{dpr:h}),a)," ").concat(h,"x")}):o.map(function(h){return f(r,i,h)});return d.join(`,
|
|
93
|
+
`)}}],[{key:"version",value:function(){return SR}},{key:"_buildURL",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r==null)return"";var a=$h({url:r,useHTTPS:i.useHTTPS}),o=a.host,u=a.pathname,l=a.search,f=Tr(Tr({},u2(l)),n);if(!o.length||!u.length)throw new Error("_buildURL: URL must match {host}/{pathname}?{query}");var d=new t(Tr({domain:o},i));return d.buildURL(u,f)}},{key:"_buildSrcSet",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(r==null)return"";var o=$h({url:r,useHTTPS:a.useHTTPS}),u=o.host,l=o.pathname,f=o.search,d=Tr(Tr({},u2(f)),n);if(!u.length||!l.length)throw new Error("_buildOneStepURL: URL must match {host}/{pathname}?{query}");var h=new t(Tr({domain:u},a));return h.buildSrcSet(l,d,i)}},{key:"targetWidths",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8192,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.08,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=Math.floor(r),u=Math.floor(n);m2(r,n),y2(i);var l=i+"/"+o+"/"+u;if(l in a)return a[l];if(o===u)return[o];for(var f=[],d=o;d<u;)f.push(Math.round(d)),d*=1+i*2;return f[f.length-1]<u&&f.push(u),a[l]=f,f}}]),t}();const MR=async({fit:t,height:e,path:r,quality:n,rotate:i,width:a,needActualSize:o=!1})=>{try{return new LR({domain:`${Uh("cdnDomain")}-public.imgix.net`}).buildURL(r,{f:t,h:o?1:e,q:n,r:i,w:o?1:a})}catch(u){return console.log("+++ Error happened when building file URL, error:",u,"+++"),null}};eu.extend(z8);let qh={};function Uh(t){return qh[t]}function b2(t){qh={...qh,...t}}const zh=()=>Uh("apiBaseUrl"),_2=t=>{const{hostname:e}=window.location,r=t||e.split(".")[0];return e.replace(r,"")},DR=()=>typeof window<"u"?_2().replace(".",""):"",Hh=()=>ko.get("accessToken")||"",FR=()=>ko.get("refreshToken")||"",Vh=()=>ko.get("publicAccessToken")||ko.get("easydesk_chat_widget_public_access_token")||"",Bh=(t,e,r={})=>ko.set(t,e,r),jR=(t,e={expires:1})=>{Object.keys(t).map(r=>{const n=t[r];n&&Bh(r,n,e)})},$R=async()=>{try{const t=Hh(),e=FR();if(!(t&&e))return!1;const r=await i_().post("/auth/refresh-token",{access_token:t,refresh_token:e}),{data:n}=(r==null?void 0:r.data)||{};if(!(n!=null&&n.access_token))return handleLogOut(),!1;const i=_2(sub_domain),a=DR();return jR({[`${a}_access_token`]:n==null?void 0:n.access_token,[`${a}_refresh_token`]:n==null?void 0:n.refresh_token},{domain:i,expires:30}),!0}catch{return!1}},Wh=t=>/^[\w%\+\-]+(\.[\w%\+\-]+)*@[\w%\+\-]+(\.[\w%\+\-]+)+$/.test(t),qR=(t,e,r="")=>{let n="";return t&&(n=t),e&&(n=`${n} ${e}`),!n&&r&&(n=r),n},nu=(t,e,r)=>t&&e?iu(t)+iu(e):t?t.length>1?iu(t)+t.charAt(1).toUpperCase():iu(t):r?iu(r):"",UR="IMAGE_KEY",zR=async t=>{const e=new DOMParser().parseFromString(t,"text/html"),r=e.querySelectorAll(`.${UR}`);for(const n of r){const i=await MR({path:n.innerHTML,fit:"scale",needActualSize:!0,quality:100});if(i){const a=document.createElement("img");a.src=i,a.classList.add("cursor-pointer"),a.setAttribute("data-key",n.innerHTML),n.replaceWith(a)}}return e.body.innerHTML},iu=t=>(t==null?void 0:t.charAt(0).toUpperCase())||"",Gh=["info","success","warning","error","default"],tr=(t,e,r,n,i={autoClose:1e4})=>{Gh!=null&&Gh.includes(t)?$t[t](e,{position:r,toastId:n,...i}):$t(e||"Default Toast",{position:r,toastId:n,...i})};function w2(t,e){return function(){return t.apply(e,arguments)}}const{toString:HR}=Object.prototype,{getPrototypeOf:Qh}=Object,{iterator:Bl,toStringTag:E2}=Symbol,Wl=(t=>e=>{const r=HR.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Vn=t=>(t=t.toLowerCase(),e=>Wl(e)===t),Gl=t=>e=>typeof e===t,{isArray:No}=Array,au=Gl("undefined");function VR(t){return t!==null&&!au(t)&&t.constructor!==null&&!au(t.constructor)&&Vr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const S2=Vn("ArrayBuffer");function BR(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&S2(t.buffer),e}const WR=Gl("string"),Vr=Gl("function"),x2=Gl("number"),Ql=t=>t!==null&&typeof t=="object",GR=t=>t===!0||t===!1,Yl=t=>{if(Wl(t)!=="object")return!1;const e=Qh(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(E2 in t)&&!(Bl in t)},QR=Vn("Date"),YR=Vn("File"),KR=Vn("Blob"),XR=Vn("FileList"),ZR=t=>Ql(t)&&Vr(t.pipe),JR=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Vr(t.append)&&((e=Wl(t))==="formdata"||e==="object"&&Vr(t.toString)&&t.toString()==="[object FormData]"))},e3=Vn("URLSearchParams"),[t3,r3,n3,i3]=["ReadableStream","Request","Response","Headers"].map(Vn),a3=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ou(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),No(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{const a=r?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let u;for(n=0;n<o;n++)u=a[n],e.call(null,t[u],u,t)}}function C2(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const Pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,T2=t=>!au(t)&&t!==Pa;function Yh(){const{caseless:t}=T2(this)&&this||{},e={},r=(n,i)=>{const a=t&&C2(e,i)||i;Yl(e[a])&&Yl(n)?e[a]=Yh(e[a],n):Yl(n)?e[a]=Yh({},n):No(n)?e[a]=n.slice():e[a]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ou(arguments[n],r);return e}const o3=(t,e,r,{allOwnKeys:n}={})=>(ou(e,(i,a)=>{r&&Vr(i)?t[a]=w2(i,r):t[a]=i},{allOwnKeys:n}),t),s3=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),u3=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},l3=(t,e,r,n)=>{let i,a,o;const u={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!n||n(o,t,e))&&!u[o]&&(e[o]=t[o],u[o]=!0);t=r!==!1&&Qh(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},c3=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},f3=t=>{if(!t)return null;if(No(t))return t;let e=t.length;if(!x2(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},d3=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Qh(Uint8Array)),h3=(t,e)=>{const n=(t&&t[Bl]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},p3=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},v3=Vn("HTMLFormElement"),g3=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),O2=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),m3=Vn("RegExp"),R2=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};ou(r,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(n[a]=o||i)}),Object.defineProperties(t,n)},y3=t=>{R2(t,(e,r)=>{if(Vr(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Vr(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},b3=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return No(t)?n(t):n(String(t).split(e)),r},_3=()=>{},w3=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function E3(t){return!!(t&&Vr(t.append)&&t[E2]==="FormData"&&t[Bl])}const S3=t=>{const e=new Array(10),r=(n,i)=>{if(Ql(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const a=No(n)?[]:{};return ou(n,(o,u)=>{const l=r(o,i+1);!au(l)&&(a[u]=l)}),e[i]=void 0,a}}return n};return r(t,0)},x3=Vn("AsyncFunction"),C3=t=>t&&(Ql(t)||Vr(t))&&Vr(t.then)&&Vr(t.catch),k2=((t,e)=>t?setImmediate:e?((r,n)=>(Pa.addEventListener("message",({source:i,data:a})=>{i===Pa&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Pa.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Vr(Pa.postMessage)),T3=typeof queueMicrotask<"u"?queueMicrotask.bind(Pa):typeof process<"u"&&process.nextTick||k2,ce={isArray:No,isArrayBuffer:S2,isBuffer:VR,isFormData:JR,isArrayBufferView:BR,isString:WR,isNumber:x2,isBoolean:GR,isObject:Ql,isPlainObject:Yl,isReadableStream:t3,isRequest:r3,isResponse:n3,isHeaders:i3,isUndefined:au,isDate:QR,isFile:YR,isBlob:KR,isRegExp:m3,isFunction:Vr,isStream:ZR,isURLSearchParams:e3,isTypedArray:d3,isFileList:XR,forEach:ou,merge:Yh,extend:o3,trim:a3,stripBOM:s3,inherits:u3,toFlatObject:l3,kindOf:Wl,kindOfTest:Vn,endsWith:c3,toArray:f3,forEachEntry:h3,matchAll:p3,isHTMLForm:v3,hasOwnProperty:O2,hasOwnProp:O2,reduceDescriptors:R2,freezeMethods:y3,toObjectSet:b3,toCamelCase:g3,noop:_3,toFiniteNumber:w3,findKey:C2,global:Pa,isContextDefined:T2,isSpecCompliantForm:E3,toJSONObject:S3,isAsyncFn:x3,isThenable:C3,setImmediate:k2,asap:T3,isIterable:t=>t!=null&&Vr(t[Bl])};function at(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}ce.inherits(at,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ce.toJSONObject(this.config),code:this.code,status:this.status}}});const A2=at.prototype,P2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{P2[t]={value:t}}),Object.defineProperties(at,P2),Object.defineProperty(A2,"isAxiosError",{value:!0}),at.from=(t,e,r,n,i,a)=>{const o=Object.create(A2);return ce.toFlatObject(t,o,function(l){return l!==Error.prototype},u=>u!=="isAxiosError"),at.call(o,t.message,e,r,n,i),o.cause=t,o.name=t.name,a&&Object.assign(o,a),o};const O3=null;function Kh(t){return ce.isPlainObject(t)||ce.isArray(t)}function N2(t){return ce.endsWith(t,"[]")?t.slice(0,-2):t}function I2(t,e,r){return t?t.concat(e).map(function(i,a){return i=N2(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function R3(t){return ce.isArray(t)&&!t.some(Kh)}const k3=ce.toFlatObject(ce,{},null,function(e){return/^is[A-Z]/.test(e)});function Kl(t,e,r){if(!ce.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=ce.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!ce.isUndefined(b[y])});const n=r.metaTokens,i=r.visitor||d,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&ce.isSpecCompliantForm(e);if(!ce.isFunction(i))throw new TypeError("visitor must be a function");function f(m){if(m===null)return"";if(ce.isDate(m))return m.toISOString();if(!l&&ce.isBlob(m))throw new at("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(m)||ce.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,y,b){let w=m;if(m&&!b&&typeof m=="object"){if(ce.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if(ce.isArray(m)&&R3(m)||(ce.isFileList(m)||ce.endsWith(y,"[]"))&&(w=ce.toArray(m)))return y=N2(y),w.forEach(function(S,C){!(ce.isUndefined(S)||S===null)&&e.append(o===!0?I2([y],C,a):o===null?y:y+"[]",f(S))}),!1}return Kh(m)?!0:(e.append(I2(b,y,a),f(m)),!1)}const h=[],p=Object.assign(k3,{defaultVisitor:d,convertValue:f,isVisitable:Kh});function v(m,y){if(!ce.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(m),ce.forEach(m,function(w,E){(!(ce.isUndefined(w)||w===null)&&i.call(e,w,ce.isString(E)?E.trim():E,y,p))===!0&&v(w,y?y.concat(E):[E])}),h.pop()}}if(!ce.isObject(t))throw new TypeError("data must be an object");return v(t),e}function L2(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Xh(t,e){this._pairs=[],t&&Kl(t,this,e)}const M2=Xh.prototype;M2.append=function(e,r){this._pairs.push([e,r])},M2.toString=function(e){const r=e?function(n){return e.call(this,n,L2)}:L2;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function A3(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function D2(t,e,r){if(!e)return t;const n=r&&r.encode||A3;ce.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let a;if(i?a=i(e,r):a=ce.isURLSearchParams(e)?e.toString():new Xh(e,r).toString(n),a){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class F2{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ce.forEach(this.handlers,function(n){n!==null&&e(n)})}}const j2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},P3={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xh,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Zh=typeof window<"u"&&typeof document<"u",Jh=typeof navigator=="object"&&navigator||void 0,N3=Zh&&(!Jh||["ReactNative","NativeScript","NS"].indexOf(Jh.product)<0),I3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",L3=Zh&&window.location.href||"http://localhost",Or={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zh,hasStandardBrowserEnv:N3,hasStandardBrowserWebWorkerEnv:I3,navigator:Jh,origin:L3},Symbol.toStringTag,{value:"Module"})),...P3};function M3(t,e){return Kl(t,new Or.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return Or.isNode&&ce.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function D3(t){return ce.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function F3(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],e[a]=t[a];return e}function $2(t){function e(r,n,i,a){let o=r[a++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=a>=r.length;return o=!o&&ce.isArray(i)?i.length:o,l?(ce.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!ce.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],a)&&ce.isArray(i[o])&&(i[o]=F3(i[o])),!u)}if(ce.isFormData(t)&&ce.isFunction(t.entries)){const r={};return ce.forEachEntry(t,(n,i)=>{e(D3(n),i,r,0)}),r}return null}function j3(t,e,r){if(ce.isString(t))try{return(e||JSON.parse)(t),ce.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const su={transitional:j2,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=ce.isObject(e);if(a&&ce.isHTMLForm(e)&&(e=new FormData(e)),ce.isFormData(e))return i?JSON.stringify($2(e)):e;if(ce.isArrayBuffer(e)||ce.isBuffer(e)||ce.isStream(e)||ce.isFile(e)||ce.isBlob(e)||ce.isReadableStream(e))return e;if(ce.isArrayBufferView(e))return e.buffer;if(ce.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return M3(e,this.formSerializer).toString();if((u=ce.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Kl(u?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),j3(e)):e}],transformResponse:[function(e){const r=this.transitional||su.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(ce.isResponse(e)||ce.isReadableStream(e))return e;if(e&&ce.isString(e)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(u){if(o)throw u.name==="SyntaxError"?at.from(u,at.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Or.classes.FormData,Blob:Or.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],t=>{su.headers[t]={}});const $3=ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),q3=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
94
|
+
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||e[r]&&$3[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},q2=Symbol("internals");function uu(t){return t&&String(t).trim().toLowerCase()}function Xl(t){return t===!1||t==null?t:ce.isArray(t)?t.map(Xl):String(t)}function U3(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const z3=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ep(t,e,r,n,i){if(ce.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!ce.isString(e)){if(ce.isString(n))return e.indexOf(n)!==-1;if(ce.isRegExp(n))return n.test(e)}}function H3(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function V3(t,e){const r=ce.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,a,o){return this[n].call(this,e,i,a,o)},configurable:!0})})}let Br=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function a(u,l,f){const d=uu(l);if(!d)throw new Error("header name must be a non-empty string");const h=ce.findKey(i,d);(!h||i[h]===void 0||f===!0||f===void 0&&i[h]!==!1)&&(i[h||l]=Xl(u))}const o=(u,l)=>ce.forEach(u,(f,d)=>a(f,d,l));if(ce.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(ce.isString(e)&&(e=e.trim())&&!z3(e))o(q3(e),r);else if(ce.isObject(e)&&ce.isIterable(e)){let u={},l,f;for(const d of e){if(!ce.isArray(d))throw TypeError("Object iterator must return a key-value pair");u[f=d[0]]=(l=u[f])?ce.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}o(u,r)}else e!=null&&a(r,e,n);return this}get(e,r){if(e=uu(e),e){const n=ce.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return U3(i);if(ce.isFunction(r))return r.call(this,i,n);if(ce.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=uu(e),e){const n=ce.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||ep(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function a(o){if(o=uu(o),o){const u=ce.findKey(n,o);u&&(!r||ep(n,n[u],u,r))&&(delete n[u],i=!0)}}return ce.isArray(e)?e.forEach(a):a(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!e||ep(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const r=this,n={};return ce.forEach(this,(i,a)=>{const o=ce.findKey(n,a);if(o){r[o]=Xl(i),delete r[a];return}const u=e?H3(a):String(a).trim();u!==a&&delete r[a],r[u]=Xl(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return ce.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&ce.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
95
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[q2]=this[q2]={accessors:{}}).accessors,i=this.prototype;function a(o){const u=uu(o);n[u]||(V3(i,o),n[u]=!0)}return ce.isArray(e)?e.forEach(a):a(e),this}};Br.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ce.reduceDescriptors(Br.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}}),ce.freezeMethods(Br);function tp(t,e){const r=this||su,n=e||r,i=Br.from(n.headers);let a=n.data;return ce.forEach(t,function(u){a=u.call(r,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function U2(t){return!!(t&&t.__CANCEL__)}function Io(t,e,r){at.call(this,t??"canceled",at.ERR_CANCELED,e,r),this.name="CanceledError"}ce.inherits(Io,at,{__CANCEL__:!0});function z2(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new at("Request failed with status code "+r.status,[at.ERR_BAD_REQUEST,at.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function B3(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function W3(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(l){const f=Date.now(),d=n[a];o||(o=f),r[i]=l,n[i]=f;let h=a,p=0;for(;h!==i;)p+=r[h++],h=h%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),f-o<e)return;const v=d&&f-d;return v?Math.round(p*1e3/v):void 0}}function G3(t,e){let r=0,n=1e3/e,i,a;const o=(f,d=Date.now())=>{r=d,i=null,a&&(clearTimeout(a),a=null),t.apply(null,f)};return[(...f)=>{const d=Date.now(),h=d-r;h>=n?o(f,d):(i=f,a||(a=setTimeout(()=>{a=null,o(i)},n-h)))},()=>i&&o(i)]}const Zl=(t,e,r=3)=>{let n=0;const i=W3(50,250);return G3(a=>{const o=a.loaded,u=a.lengthComputable?a.total:void 0,l=o-n,f=i(l),d=o<=u;n=o;const h={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&d?(u-o)/f:void 0,event:a,lengthComputable:u!=null,[e?"download":"upload"]:!0};t(h)},r)},H2=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},V2=t=>(...e)=>ce.asap(()=>t(...e)),Q3=Or.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Or.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Or.origin),Or.navigator&&/(msie|trident)/i.test(Or.navigator.userAgent)):()=>!0,Y3=Or.hasStandardBrowserEnv?{write(t,e,r,n,i,a){const o=[t+"="+encodeURIComponent(e)];ce.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),ce.isString(n)&&o.push("path="+n),ce.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function K3(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function X3(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function B2(t,e,r){let n=!K3(e);return t&&(n||r==!1)?X3(t,e):e}const W2=t=>t instanceof Br?{...t}:t;function Na(t,e){e=e||{};const r={};function n(f,d,h,p){return ce.isPlainObject(f)&&ce.isPlainObject(d)?ce.merge.call({caseless:p},f,d):ce.isPlainObject(d)?ce.merge({},d):ce.isArray(d)?d.slice():d}function i(f,d,h,p){if(ce.isUndefined(d)){if(!ce.isUndefined(f))return n(void 0,f,h,p)}else return n(f,d,h,p)}function a(f,d){if(!ce.isUndefined(d))return n(void 0,d)}function o(f,d){if(ce.isUndefined(d)){if(!ce.isUndefined(f))return n(void 0,f)}else return n(void 0,d)}function u(f,d,h){if(h in e)return n(f,d);if(h in t)return n(void 0,f)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(f,d,h)=>i(W2(f),W2(d),h,!0)};return ce.forEach(Object.keys(Object.assign({},t,e)),function(d){const h=l[d]||i,p=h(t[d],e[d],d);ce.isUndefined(p)&&h!==u||(r[d]=p)}),r}const G2=t=>{const e=Na({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:u}=e;e.headers=o=Br.from(o),e.url=D2(B2(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let l;if(ce.isFormData(r)){if(Or.hasStandardBrowserEnv||Or.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[f,...d]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([f||"multipart/form-data",...d].join("; "))}}if(Or.hasStandardBrowserEnv&&(n&&ce.isFunction(n)&&(n=n(e)),n||n!==!1&&Q3(e.url))){const f=i&&a&&Y3.read(a);f&&o.set(i,f)}return e},Z3=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(r,n){const i=G2(t);let a=i.data;const o=Br.from(i.headers).normalize();let{responseType:u,onUploadProgress:l,onDownloadProgress:f}=i,d,h,p,v,m;function y(){v&&v(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function w(){if(!b)return;const S=Br.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),_={data:!u||u==="text"||u==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:S,config:t,request:b};z2(function(O){r(O),y()},function(O){n(O),y()},_),b=null}"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(w)},b.onabort=function(){b&&(n(new at("Request aborted",at.ECONNABORTED,t,b)),b=null)},b.onerror=function(){n(new at("Network Error",at.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||j2;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),n(new at(C,_.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,t,b)),b=null},a===void 0&&o.setContentType(null),"setRequestHeader"in b&&ce.forEach(o.toJSON(),function(C,_){b.setRequestHeader(_,C)}),ce.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),u&&u!=="json"&&(b.responseType=i.responseType),f&&([p,m]=Zl(f,!0),b.addEventListener("progress",p)),l&&b.upload&&([h,v]=Zl(l),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(d=S=>{b&&(n(!S||S.type?new Io(null,t,b):S),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const E=B3(i.url);if(E&&Or.protocols.indexOf(E)===-1){n(new at("Unsupported protocol "+E+":",at.ERR_BAD_REQUEST,t));return}b.send(a||null)})},J3=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const a=function(f){if(!i){i=!0,u();const d=f instanceof Error?f:this.reason;n.abort(d instanceof at?d:new Io(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,a(new at(`timeout ${e} of ms exceeded`,at.ETIMEDOUT))},e);const u=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(a):f.removeEventListener("abort",a)}),t=null)};t.forEach(f=>f.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>ce.asap(u),l}},ek=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},tk=async function*(t,e){for await(const r of rk(t))yield*ek(r,e)},rk=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},Q2=(t,e,r,n)=>{const i=tk(t,e);let a=0,o,u=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:f,value:d}=await i.next();if(f){u(),l.close();return}let h=d.byteLength;if(r){let p=a+=h;r(p)}l.enqueue(new Uint8Array(d))}catch(f){throw u(f),f}},cancel(l){return u(l),i.return()}},{highWaterMark:2})},Jl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Y2=Jl&&typeof ReadableStream=="function",nk=Jl&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),K2=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ik=Y2&&K2(()=>{let t=!1;const e=new Request(Or.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),X2=64*1024,rp=Y2&&K2(()=>ce.isReadableStream(new Response("").body)),ec={stream:rp&&(t=>t.body)};Jl&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ec[e]&&(ec[e]=ce.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new at(`Response type '${e}' is not supported`,at.ERR_NOT_SUPPORT,n)})})})(new Response);const ak=async t=>{if(t==null)return 0;if(ce.isBlob(t))return t.size;if(ce.isSpecCompliantForm(t))return(await new Request(Or.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(ce.isArrayBufferView(t)||ce.isArrayBuffer(t))return t.byteLength;if(ce.isURLSearchParams(t)&&(t=t+""),ce.isString(t))return(await nk(t)).byteLength},ok=async(t,e)=>{const r=ce.toFiniteNumber(t.getContentLength());return r??ak(e)},np={http:O3,xhr:Z3,fetch:Jl&&(async t=>{let{url:e,method:r,data:n,signal:i,cancelToken:a,timeout:o,onDownloadProgress:u,onUploadProgress:l,responseType:f,headers:d,withCredentials:h="same-origin",fetchOptions:p}=G2(t);f=f?(f+"").toLowerCase():"text";let v=J3([i,a&&a.toAbortSignal()],o),m;const y=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let b;try{if(l&&ik&&r!=="get"&&r!=="head"&&(b=await ok(d,n))!==0){let _=new Request(e,{method:"POST",body:n,duplex:"half"}),T;if(ce.isFormData(n)&&(T=_.headers.get("content-type"))&&d.setContentType(T),_.body){const[O,k]=H2(b,Zl(V2(l)));n=Q2(_.body,X2,O,k)}}ce.isString(h)||(h=h?"include":"omit");const w="credentials"in Request.prototype;m=new Request(e,{...p,signal:v,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:w?h:void 0});let E=await fetch(m);const S=rp&&(f==="stream"||f==="response");if(rp&&(u||S&&y)){const _={};["status","statusText","headers"].forEach(P=>{_[P]=E[P]});const T=ce.toFiniteNumber(E.headers.get("content-length")),[O,k]=u&&H2(T,Zl(V2(u),!0))||[];E=new Response(Q2(E.body,X2,O,()=>{k&&k(),y&&y()}),_)}f=f||"text";let C=await ec[ce.findKey(ec,f)||"text"](E,t);return!S&&y&&y(),await new Promise((_,T)=>{z2(_,T,{data:C,headers:Br.from(E.headers),status:E.status,statusText:E.statusText,config:t,request:m})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new at("Network Error",at.ERR_NETWORK,t,m),{cause:w.cause||w}):at.from(w,w&&w.code,t,m)}})};ce.forEach(np,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Z2=t=>`- ${t}`,sk=t=>ce.isFunction(t)||t===null||t===!1,J2={getAdapter:t=>{t=ce.isArray(t)?t:[t];const{length:e}=t;let r,n;const i={};for(let a=0;a<e;a++){r=t[a];let o;if(n=r,!sk(r)&&(n=np[(o=String(r)).toLowerCase()],n===void 0))throw new at(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+a]=n}if(!n){const a=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since :
|
|
96
|
+
`+a.map(Z2).join(`
|
|
97
|
+
`):" "+Z2(a[0]):"as no adapter specified";throw new at("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:np};function ip(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Io(null,t)}function e_(t){return ip(t),t.headers=Br.from(t.headers),t.data=tp.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),J2.getAdapter(t.adapter||su.adapter)(t).then(function(n){return ip(t),n.data=tp.call(t,t.transformResponse,n),n.headers=Br.from(n.headers),n},function(n){return U2(n)||(ip(t),n&&n.response&&(n.response.data=tp.call(t,t.transformResponse,n.response),n.response.headers=Br.from(n.response.headers))),Promise.reject(n)})}const t_="1.9.0",tc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{tc[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const r_={};tc.transitional=function(e,r,n){function i(a,o){return"[Axios v"+t_+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,u)=>{if(e===!1)throw new at(i(o," has been removed"+(r?" in "+r:"")),at.ERR_DEPRECATED);return r&&!r_[o]&&(r_[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,u):!0}},tc.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function uk(t,e,r){if(typeof t!="object")throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const a=n[i],o=e[a];if(o){const u=t[a],l=u===void 0||o(u,a,t);if(l!==!0)throw new at("option "+a+" must be "+l,at.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new at("Unknown option "+a,at.ERR_BAD_OPTION)}}const rc={assertOptions:uk,validators:tc},ni=rc.validators;let Ia=class{constructor(e){this.defaults=e||{},this.interceptors={request:new F2,response:new F2}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
98
|
+
`+a):n.stack=a}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Na(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&rc.assertOptions(n,{silentJSONParsing:ni.transitional(ni.boolean),forcedJSONParsing:ni.transitional(ni.boolean),clarifyTimeoutError:ni.transitional(ni.boolean)},!1),i!=null&&(ce.isFunction(i)?r.paramsSerializer={serialize:i}:rc.assertOptions(i,{encode:ni.function,serialize:ni.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),rc.assertOptions(r,{baseUrl:ni.spelling("baseURL"),withXsrfToken:ni.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&ce.merge(a.common,a[r.method]);a&&ce.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),r.headers=Br.concat(o,a);const u=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(l=l&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let d,h=0,p;if(!l){const m=[e_.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,f),p=m.length,d=Promise.resolve(r);h<p;)d=d.then(m[h++],m[h++]);return d}p=u.length;let v=r;for(h=0;h<p;){const m=u[h++],y=u[h++];try{v=m(v)}catch(b){y.call(this,b);break}}try{d=e_.call(this,v)}catch(m){return Promise.reject(m)}for(h=0,p=f.length;h<p;)d=d.then(f[h++],f[h++]);return d}getUri(e){e=Na(this.defaults,e);const r=B2(e.baseURL,e.url,e.allowAbsoluteUrls);return D2(r,e.params,e.paramsSerializer)}};ce.forEach(["delete","get","head","options"],function(e){Ia.prototype[e]=function(r,n){return this.request(Na(n||{},{method:e,url:r,data:(n||{}).data}))}}),ce.forEach(["post","put","patch"],function(e){function r(n){return function(a,o,u){return this.request(Na(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Ia.prototype[e]=r(),Ia.prototype[e+"Form"]=r(!0)});let lk=class aT{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(u=>{n.subscribe(u),a=u}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},e(function(a,o,u){n.reason||(n.reason=new Io(a,o,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new aT(function(i){e=i}),cancel:e}}};function ck(t){return function(r){return t.apply(null,r)}}function fk(t){return ce.isObject(t)&&t.isAxiosError===!0}const ap={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ap).forEach(([t,e])=>{ap[e]=t});function n_(t){const e=new Ia(t),r=w2(Ia.prototype.request,e);return ce.extend(r,Ia.prototype,e,{allOwnKeys:!0}),ce.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return n_(Na(t,i))},r}const Yt=n_(su);Yt.Axios=Ia,Yt.CanceledError=Io,Yt.CancelToken=lk,Yt.isCancel=U2,Yt.VERSION=t_,Yt.toFormData=Kl,Yt.AxiosError=at,Yt.Cancel=Yt.CanceledError,Yt.all=function(e){return Promise.all(e)},Yt.spread=ck,Yt.isAxiosError=fk,Yt.mergeConfig=Na,Yt.AxiosHeaders=Br,Yt.formToJSON=t=>$2(ce.isHTMLForm(t)?new FormData(t):t),Yt.getAdapter=J2.getAdapter,Yt.HttpStatusCode=ap,Yt.default=Yt;const{Axios:sV,AxiosError:uV,CanceledError:lV,isCancel:cV,CancelToken:fV,VERSION:dV,all:hV,Cancel:pV,isAxiosError:vV,spread:gV,toFormData:mV,AxiosHeaders:yV,HttpStatusCode:bV,formToJSON:_V,getAdapter:wV,mergeConfig:EV}=Yt,i_=()=>Yt.create({baseURL:zh(),headers:{Authorization:Vh()}});function dk(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];La(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const a_={};function op(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];La(e[0])&&a_[e[0]]||(La(e[0])&&(a_[e[0]]=new Date),dk(...e))}const o_=(t,e)=>()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}},s_=(t,e,r)=>{t.loadNamespaces(e,o_(t,r))},u_=(t,e,r,n)=>{La(r)&&(r=[r]),r.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,o_(t,n))},hk=function(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=e.languages[0],i=e.options?e.options.fallbackLng:!1,a=e.languages[e.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const o=(u,l)=>{const f=e.services.backendConnector.state[`${u}|${l}`];return f===-1||f===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!o(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(n,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||o(n,t)&&(!i||o(a,t)))},pk=function(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(op("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:r.lng,precheck:(i,a)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,t))return!1}}):hk(t,e,r)},La=t=>typeof t=="string",vk=t=>typeof t=="object"&&t!==null,gk=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,mk={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},yk=t=>mk[t];let sp={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(gk,yk)};const bk=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sp={...sp,...t}},_k=()=>sp;let l_;const wk=t=>{l_=t},Ek=()=>l_,Sk={type:"3rdParty",init(t){bk(t.options.react),wk(t)}},xk=q.createContext();class Ck{constructor(){iT(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}}const Tk=(t,e)=>{const r=q.useRef();return q.useEffect(()=>{r.current=t},[t,e]),r.current},c_=(t,e,r,n)=>t.getFixedT(e,r,n),Ok=(t,e,r,n)=>q.useCallback(c_(t,e,r,n),[t,e,r,n]),Rk=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=e,{i18n:n,defaultNS:i}=q.useContext(xk)||{},a=r||n||Ek();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Ck),!a){op("You will need to pass in an i18next instance by using initReactI18next");const C=(T,O)=>La(O)?O:vk(O)&&La(O.defaultValue)?O.defaultValue:Array.isArray(T)?T[T.length-1]:T,_=[C,{},!1];return _.t=C,_.i18n={},_.ready=!1,_}a.options.react&&a.options.react.wait!==void 0&&op("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={..._k(),...a.options.react,...e},{useSuspense:u,keyPrefix:l}=o;let f=t||i||a.options&&a.options.defaultNS;f=La(f)?[f]:f||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(f);const d=(a.isInitialized||a.initializedStoreOnce)&&f.every(C=>pk(C,a,o)),h=Ok(a,e.lng||null,o.nsMode==="fallback"?f:f[0],l),p=()=>h,v=()=>c_(a,e.lng||null,o.nsMode==="fallback"?f:f[0],l),[m,y]=q.useState(p);let b=f.join();e.lng&&(b=`${e.lng}${b}`);const w=Tk(b),E=q.useRef(!0);q.useEffect(()=>{const{bindI18n:C,bindI18nStore:_}=o;E.current=!0,!d&&!u&&(e.lng?u_(a,e.lng,f,()=>{E.current&&y(v)}):s_(a,f,()=>{E.current&&y(v)})),d&&w&&w!==b&&E.current&&y(v);const T=()=>{E.current&&y(v)};return C&&a&&a.on(C,T),_&&a&&a.store.on(_,T),()=>{E.current=!1,C&&a&&C.split(" ").forEach(O=>a.off(O,T)),_&&a&&_.split(" ").forEach(O=>a.store.off(O,T))}},[a,b]),q.useEffect(()=>{E.current&&d&&y(p)},[a,l,d]);const S=[m,a,d];if(S.t=m,S.i18n=a,S.ready=d,d||!d&&!u)return S;throw new Promise(C=>{e.lng?u_(a,e.lng,f,()=>C()):s_(a,f,()=>C())})},kk=L8((t,{headers:e})=>({headers:{...e,Authorization:Hh()||Vh()}}));function f_(t){return new zn(function(e,r){return new kt(function(n){var i,a,o;try{i=r(e).subscribe({next:function(u){if(u.errors?o=t({graphQLErrors:u.errors,response:u,operation:e,forward:r}):py(u)&&(o=t({protocolErrors:u.extensions[Ol],response:u,operation:e,forward:r})),o){a=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(u)},error:function(u){if(o=t({operation:e,networkError:u,graphQLErrors:u&&u.result&&u.result.errors||void 0,forward:r}),o){a=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(u)},complete:function(){o||n.complete.bind(n)()}})}catch(u){t({networkError:u,operation:e,forward:r}),n.error(u)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}(function(t){yn(e,t);function e(r){var n=t.call(this)||this;return n.link=f_(r),n}return e.prototype.request=function(r,n){return this.link.request(r,n)},e})(zn);const up=async()=>{$R().then(t=>{t?window.location.replace(window.location.href):tr("error","Something went wrong!","top-right")})},Ak=lt.debounce(t=>{t===401||t===503?up():t===404?tr("error","Not found!","top-right"):t===500?tr("error","Internal server error!","top-right"):tr("error","Something went wrong! Please try again.","top-right")},1e3),Pk=f_(({graphQLErrors:t,networkError:e})=>{if(lt.size(t)&&t.forEach(({message:r})=>{var n;(n=r==null?void 0:r.includes)!=null&&n.call(r,"Token expired at")&&up()}),lt.size(e)){const{statusCode:r}=e;r===401?up():Ak(r)}return""}),Nk=t=>by({uri:`${t}/graphql`});function Ik(t){return Bt(t)&&"code"in t&&"reason"in t}function Lk(t){var e;return Bt(t)&&((e=t.target)===null||e===void 0?void 0:e.readyState)===WebSocket.CLOSED}var Mk=function(t){yn(e,t);function e(r){var n=t.call(this)||this;return n.client=r,n}return e.prototype.request=function(r){var n=this;return new kt(function(i){return n.client.subscribe(ee(ee({},r),{query:Gi(r.query)}),{next:i.next.bind(i),complete:i.complete.bind(i),error:function(a){if(a instanceof Error)return i.error(a);var o=Ik(a);return o||Lk(a)?i.error(new Error("Socket closed".concat(o?" with event ".concat(a.code):"").concat(o?" ".concat(a.reason):""))):i.error(new tn({graphQLErrors:Array.isArray(a)?a:[a]}))}})})},e}(zn);function Wr(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function Ma(t){return Wr(t)==="object"}function Dk(t){return Array.isArray(t)&&t.length>0&&t.every(e=>"message"in e)}function d_(t,e){return t.length<124?t:e}const Fk="graphql-transport-ws";var nn;(function(t){t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(nn||(nn={}));var rr;(function(t){t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete"})(rr||(rr={}));function h_(t){if(!Ma(t))throw new Error(`Message is expected to be an object, but got ${Wr(t)}`);if(!t.type)throw new Error("Message is missing the 'type' property");if(typeof t.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Wr(t.type)}`);switch(t.type){case rr.ConnectionInit:case rr.ConnectionAck:case rr.Ping:case rr.Pong:{if(t.payload!=null&&!Ma(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${t.payload}"`);break}case rr.Subscribe:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${Wr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!Ma(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${Wr(t.payload)}`);if(typeof t.payload.query!="string")throw new Error(`"${t.type}" message payload expects the 'query' property to be a string, but got ${Wr(t.payload.query)}`);if(t.payload.variables!=null&&!Ma(t.payload.variables))throw new Error(`"${t.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Wr(t.payload.variables)}`);if(t.payload.operationName!=null&&Wr(t.payload.operationName)!=="string")throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Wr(t.payload.operationName)}`);if(t.payload.extensions!=null&&!Ma(t.payload.extensions))throw new Error(`"${t.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Wr(t.payload.extensions)}`);break}case rr.Next:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${Wr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!Ma(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${Wr(t.payload)}`);break}case rr.Error:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${Wr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!Dk(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(t.payload)}`);break}case rr.Complete:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${Wr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${t.type}"`)}return t}function jk(t,e){return h_(typeof t=="string"?JSON.parse(t,e):t)}function lu(t,e){return h_(t),JSON.stringify(t,e)}var Lo=function(t){return this instanceof Lo?(this.v=t,this):new Lo(t)},$k=function(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(v){return function(m){return Promise.resolve(m).then(v,h)}}function u(v,m){n[v]&&(i[v]=function(y){return new Promise(function(b,w){a.push([v,y,b,w])>1||l(v,y)})},m&&(i[v]=m(i[v])))}function l(v,m){try{f(n[v](m))}catch(y){p(a[0][3],y)}}function f(v){v.value instanceof Lo?Promise.resolve(v.value.v).then(d,h):p(a[0][2],v)}function d(v){l("next",v)}function h(v){l("throw",v)}function p(v,m){v(m),a.shift(),a.length&&l(a[0][0],a[0][1])}};function qk(t){const{url:e,connectionParams:r,lazy:n=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:u,connectionAckWaitTimeout:l=0,retryAttempts:f=5,retryWait:d=async function(U){let Y=1e3;for(let V=0;V<U;V++)Y*=2;await new Promise(V=>setTimeout(V,Y+Math.floor(Math.random()*2700+300)))},shouldRetry:h=lp,isFatalConnectionProblem:p,on:v,webSocketImpl:m,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,U=>{const Y=Math.random()*16|0;return(U=="x"?Y:Y&3|8).toString(16)})},jsonMessageReplacer:b,jsonMessageReviver:w}=t;let E;if(m){if(!zk(m))throw new Error("Invalid WebSocket implementation provided");E=m}else typeof WebSocket<"u"?E=WebSocket:typeof global<"u"?E=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(E=window.WebSocket||window.MozWebSocket);if(!E)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const S=E,C=(()=>{const F=(()=>{const Y={};return{on(V,K){return Y[V]=K,()=>{delete Y[V]}},emit(V){var K;"id"in V&&((K=Y[V.id])===null||K===void 0||K.call(Y,V))}}})(),U={connecting:v!=null&&v.connecting?[v.connecting]:[],opened:v!=null&&v.opened?[v.opened]:[],connected:v!=null&&v.connected?[v.connected]:[],ping:v!=null&&v.ping?[v.ping]:[],pong:v!=null&&v.pong?[v.pong]:[],message:v!=null&&v.message?[F.emit,v.message]:[F.emit],closed:v!=null&&v.closed?[v.closed]:[],error:v!=null&&v.error?[v.error]:[]};return{onMessage:F.on,on(Y,V){const K=U[Y];return K.push(V),()=>{K.splice(K.indexOf(V),1)}},emit(Y,...V){for(const K of[...U[Y]])K(...V)}}})();function _(F){const U=[C.on("error",Y=>{U.forEach(V=>V()),F(Y)}),C.on("closed",Y=>{U.forEach(V=>V()),F(Y)})]}let T,O=0,k,P=!1,N=0,M=!1;async function z(){clearTimeout(k);const[F,U]=await(T??(T=new Promise((K,$)=>(async()=>{if(P){if(await d(N),!O)return T=void 0,$({code:1e3,reason:"All Subscriptions Gone"});N++}C.emit("connecting",P);const Q=new S(typeof e=="function"?await e():e,Fk);let ae,ie;function te(){isFinite(o)&&o>0&&(clearTimeout(ie),ie=setTimeout(()=>{Q.readyState===S.OPEN&&(Q.send(lu({type:rr.Ping})),C.emit("ping",!1,void 0))},o))}_(ue=>{T=void 0,clearTimeout(ae),clearTimeout(ie),$(ue),ue instanceof p_&&(Q.close(4499,"Terminated"),Q.onerror=null,Q.onclose=null)}),Q.onerror=ue=>C.emit("error",ue),Q.onclose=ue=>C.emit("closed",ue),Q.onopen=async()=>{try{C.emit("opened",Q);const ue=typeof r=="function"?await r():r;if(Q.readyState!==S.OPEN)return;Q.send(lu(ue?{type:rr.ConnectionInit,payload:ue}:{type:rr.ConnectionInit},b)),isFinite(l)&&l>0&&(ae=setTimeout(()=>{Q.close(nn.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),te()}catch(ue){C.emit("error",ue),Q.close(nn.InternalClientError,d_(ue instanceof Error?ue.message:new Error(ue).message,"Internal client error"))}};let fe=!1;Q.onmessage=({data:ue})=>{try{const W=jk(ue,w);if(C.emit("message",W),W.type==="ping"||W.type==="pong"){C.emit(W.type,!0,W.payload),W.type==="pong"?te():u||(Q.send(lu(W.payload?{type:rr.Pong,payload:W.payload}:{type:rr.Pong})),C.emit("pong",!1,W.payload));return}if(fe)return;if(W.type!==rr.ConnectionAck)throw new Error(`First message cannot be of type ${W.type}`);clearTimeout(ae),fe=!0,C.emit("connected",Q,W.payload,P),P=!1,N=0,K([Q,new Promise((de,ye)=>_(ye))])}catch(W){Q.onmessage=null,C.emit("error",W),Q.close(nn.BadResponse,d_(W instanceof Error?W.message:new Error(W).message,"Bad response"))}}})())));F.readyState===S.CLOSING&&await U;let Y=()=>{};const V=new Promise(K=>Y=K);return[F,Y,Promise.race([V.then(()=>{if(!O){const K=()=>F.close(1e3,"Normal Closure");isFinite(a)&&a>0?k=setTimeout(()=>{F.readyState===S.OPEN&&K()},a):K()}}),U])]}function H(F){if(lp(F)&&(Uk(F.code)||[nn.InternalServerError,nn.InternalClientError,nn.BadRequest,nn.BadResponse,nn.Unauthorized,nn.SubprotocolNotAcceptable,nn.SubscriberAlreadyExists,nn.TooManyInitialisationRequests].includes(F.code)))throw F;if(M)return!1;if(lp(F)&&F.code===1e3)return O>0;if(!f||N>=f||!h(F)||p!=null&&p(F))throw F;return P=!0}n||(async()=>{for(O++;;)try{const[,,F]=await z();await F}catch(F){try{if(!H(F))return}catch(U){return i==null?void 0:i(U)}}})();function L(F,U){const Y=y(F);let V=!1,K=!1,$=()=>{O--,V=!0};return(async()=>{for(O++;;)try{const[Q,ae,ie]=await z();if(V)return ae();const te=C.onMessage(Y,fe=>{switch(fe.type){case rr.Next:{U.next(fe.payload);return}case rr.Error:{K=!0,V=!0,U.error(fe.payload),$();return}case rr.Complete:{V=!0,$();return}}});Q.send(lu({id:Y,type:rr.Subscribe,payload:F},b)),$=()=>{!V&&Q.readyState===S.OPEN&&Q.send(lu({id:Y,type:rr.Complete},b)),O--,V=!0,ae()},await ie.finally(te);return}catch(Q){if(!H(Q))return}})().then(()=>{K||U.complete()}).catch(Q=>{U.error(Q)}),()=>{V||$()}}return{on:C.on,subscribe:L,iterate(F){const U=[],Y={done:!1,error:null,resolve:()=>{}},V=L(F,{next($){U.push($),Y.resolve()},error($){Y.done=!0,Y.error=$,Y.resolve()},complete(){Y.done=!0,Y.resolve()}}),K=function(){return $k(this,arguments,function*(){for(;;){for(U.length||(yield Lo(new Promise(ae=>Y.resolve=ae)));U.length;)yield yield Lo(U.shift());if(Y.error)throw Y.error;if(Y.done)return yield Lo(void 0)}})}();return K.throw=async $=>(Y.done||(Y.done=!0,Y.error=$,Y.resolve()),{done:!0,value:void 0}),K.return=async()=>(V(),{done:!0,value:void 0}),K},async dispose(){if(M=!0,T){const[F]=await T;F.close(1e3,"Normal Closure")}},terminate(){T&&C.emit("closed",new p_)}}}class p_ extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function lp(t){return Ma(t)&&"code"in t&&"reason"in t}function Uk(t){return[1e3,1001,1006,1005,1012,1013,1014].includes(t)?!1:t>=1e3&&t<=1999}function zk(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}const Hk=t=>new Mk(qk({connectionParams:{Authorization:Hh()||Vh()},url:`${t==null?void 0:t.replace("http","ws")}/graphql`})),cp=t=>new db({link:t4([kk,Pk,r4(({query:e})=>{const r=yo(e);return r.kind==="OperationDefinition"&&r.operation==="subscription"},Hk(t),Nk(t))]),cache:new sb});cp();var fp={exports:{}},dp={exports:{}},At={},v_;function Vk(){if(v_)return At;v_=1;/** @license React v16.13.1
|
|
99
|
+
* react-is.development.js
|
|
100
|
+
*
|
|
101
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the MIT license found in the
|
|
104
|
+
* LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/return function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function S(j){return typeof j=="string"||typeof j=="function"||j===n||j===f||j===a||j===i||j===h||j===p||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===v||j.$$typeof===o||j.$$typeof===u||j.$$typeof===d||j.$$typeof===b||j.$$typeof===w||j.$$typeof===E||j.$$typeof===y)}function C(j){if(typeof j=="object"&&j!==null){var Re=j.$$typeof;switch(Re){case e:var oe=j.type;switch(oe){case l:case f:case n:case a:case i:case h:return oe;default:var xe=oe&&oe.$$typeof;switch(xe){case u:case d:case m:case v:case o:return xe;default:return Re}}case r:return Re}}}var _=l,T=f,O=u,k=o,P=e,N=d,M=n,z=m,H=v,L=r,F=a,U=i,Y=h,V=!1;function K(j){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(j)||C(j)===l}function $(j){return C(j)===f}function Q(j){return C(j)===u}function ae(j){return C(j)===o}function ie(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function te(j){return C(j)===d}function fe(j){return C(j)===n}function ue(j){return C(j)===m}function W(j){return C(j)===v}function de(j){return C(j)===r}function ye(j){return C(j)===a}function Se(j){return C(j)===i}function J(j){return C(j)===h}At.AsyncMode=_,At.ConcurrentMode=T,At.ContextConsumer=O,At.ContextProvider=k,At.Element=P,At.ForwardRef=N,At.Fragment=M,At.Lazy=z,At.Memo=H,At.Portal=L,At.Profiler=F,At.StrictMode=U,At.Suspense=Y,At.isAsyncMode=K,At.isConcurrentMode=$,At.isContextConsumer=Q,At.isContextProvider=ae,At.isElement=ie,At.isForwardRef=te,At.isFragment=fe,At.isLazy=ue,At.isMemo=W,At.isPortal=de,At.isProfiler=ye,At.isStrictMode=Se,At.isSuspense=J,At.isValidElementType=S,At.typeOf=C}(),At}var g_;function m_(){return g_||(g_=1,dp.exports=Vk()),dp.exports}/*
|
|
106
|
+
object-assign
|
|
107
|
+
(c) Sindre Sorhus
|
|
108
|
+
@license MIT
|
|
109
|
+
*/var hp,y_;function Bk(){if(y_)return hp;y_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(d){f[d]=d}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return hp=i()?Object.assign:function(a,o){for(var u,l=n(a),f,d=1;d<arguments.length;d++){u=Object(arguments[d]);for(var h in u)e.call(u,h)&&(l[h]=u[h]);if(t){f=t(u);for(var p=0;p<f.length;p++)r.call(u,f[p])&&(l[f[p]]=u[f[p]])}}return l},hp}var pp,b_;function __(){if(b_)return pp;b_=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pp=t,pp}var vp,w_;function E_(){return w_||(w_=1,vp=Function.call.bind(Object.prototype.hasOwnProperty)),vp}var gp,S_;function Wk(){if(S_)return gp;S_=1;var t=function(){};{var e=__(),r={},n=E_();t=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,u,l,f){for(var d in a)if(n(a,d)){var h;try{if(typeof a[d]!="function"){var p=Error((l||"React class")+": "+u+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}h=a[d](o,d,l,u,null,e)}catch(m){h=m}if(h&&!(h instanceof Error)&&t((l||"React class")+": type specification of "+u+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var v=f?f():"";t("Failed "+u+" type: "+h.message+(v??""))}}}return i.resetWarningCache=function(){r={}},gp=i,gp}var mp,x_;function Gk(){if(x_)return mp;x_=1;var t=m_(),e=Bk(),r=__(),n=E_(),i=Wk(),a=function(){};a=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}};function o(){return null}return mp=function(u,l){var f=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h($){var Q=$&&(f&&$[f]||$[d]);if(typeof Q=="function")return Q}var p="<<anonymous>>",v={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:E(),arrayOf:S,element:C(),elementType:_(),instanceOf:T,node:N(),objectOf:k,oneOf:O,oneOfType:P,shape:z,exact:H};function m($,Q){return $===Q?$!==0||1/$===1/Q:$!==$&&Q!==Q}function y($,Q){this.message=$,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}y.prototype=Error.prototype;function b($){var Q={},ae=0;function ie(fe,ue,W,de,ye,Se,J){if(de=de||p,Se=Se||W,J!==r){if(l){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(typeof console<"u"){var Re=de+":"+W;!Q[Re]&&ae<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Se+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Q[Re]=!0,ae++)}}return ue[W]==null?fe?ue[W]===null?new y("The "+ye+" `"+Se+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new y("The "+ye+" `"+Se+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:$(ue,W,de,ye,Se)}var te=ie.bind(null,!1);return te.isRequired=ie.bind(null,!0),te}function w($){function Q(ae,ie,te,fe,ue,W){var de=ae[ie],ye=U(de);if(ye!==$){var Se=Y(de);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+Se+"` supplied to `"+te+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return b(Q)}function E(){return b(o)}function S($){function Q(ae,ie,te,fe,ue){if(typeof $!="function")return new y("Property `"+ue+"` of component `"+te+"` has invalid PropType notation inside arrayOf.");var W=ae[ie];if(!Array.isArray(W)){var de=U(W);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+de+"` supplied to `"+te+"`, expected an array."))}for(var ye=0;ye<W.length;ye++){var Se=$(W,ye,te,fe,ue+"["+ye+"]",r);if(Se instanceof Error)return Se}return null}return b(Q)}function C(){function $(Q,ae,ie,te,fe){var ue=Q[ae];if(!u(ue)){var W=U(ue);return new y("Invalid "+te+" `"+fe+"` of type "+("`"+W+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return b($)}function _(){function $(Q,ae,ie,te,fe){var ue=Q[ae];if(!t.isValidElementType(ue)){var W=U(ue);return new y("Invalid "+te+" `"+fe+"` of type "+("`"+W+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return b($)}function T($){function Q(ae,ie,te,fe,ue){if(!(ae[ie]instanceof $)){var W=$.name||p,de=K(ae[ie]);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+de+"` supplied to `"+te+"`, expected ")+("instance of `"+W+"`."))}return null}return b(Q)}function O($){if(!Array.isArray($))return arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array."),o;function Q(ae,ie,te,fe,ue){for(var W=ae[ie],de=0;de<$.length;de++)if(m(W,$[de]))return null;var ye=JSON.stringify($,function(J,j){var Re=Y(j);return Re==="symbol"?String(j):j});return new y("Invalid "+fe+" `"+ue+"` of value `"+String(W)+"` "+("supplied to `"+te+"`, expected one of "+ye+"."))}return b(Q)}function k($){function Q(ae,ie,te,fe,ue){if(typeof $!="function")return new y("Property `"+ue+"` of component `"+te+"` has invalid PropType notation inside objectOf.");var W=ae[ie],de=U(W);if(de!=="object")return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+de+"` supplied to `"+te+"`, expected an object."));for(var ye in W)if(n(W,ye)){var Se=$(W,ye,te,fe,ue+"."+ye,r);if(Se instanceof Error)return Se}return null}return b(Q)}function P($){if(!Array.isArray($))return a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var Q=0;Q<$.length;Q++){var ae=$[Q];if(typeof ae!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(ae)+" at index "+Q+"."),o}function ie(te,fe,ue,W,de){for(var ye=[],Se=0;Se<$.length;Se++){var J=$[Se],j=J(te,fe,ue,W,de,r);if(j==null)return null;j.data&&n(j.data,"expectedType")&&ye.push(j.data.expectedType)}var Re=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new y("Invalid "+W+" `"+de+"` supplied to "+("`"+ue+"`"+Re+"."))}return b(ie)}function N(){function $(Q,ae,ie,te,fe){return L(Q[ae])?null:new y("Invalid "+te+" `"+fe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return b($)}function M($,Q,ae,ie,te){return new y(($||"React class")+": "+Q+" type `"+ae+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+te+"`.")}function z($){function Q(ae,ie,te,fe,ue){var W=ae[ie],de=U(W);if(de!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+de+"` "+("supplied to `"+te+"`, expected `object`."));for(var ye in $){var Se=$[ye];if(typeof Se!="function")return M(te,fe,ue,ye,Y(Se));var J=Se(W,ye,te,fe,ue+"."+ye,r);if(J)return J}return null}return b(Q)}function H($){function Q(ae,ie,te,fe,ue){var W=ae[ie],de=U(W);if(de!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+de+"` "+("supplied to `"+te+"`, expected `object`."));var ye=e({},ae[ie],$);for(var Se in ye){var J=$[Se];if(n($,Se)&&typeof J!="function")return M(te,fe,ue,Se,Y(J));if(!J)return new y("Invalid "+fe+" `"+ue+"` key `"+Se+"` supplied to `"+te+"`.\nBad object: "+JSON.stringify(ae[ie],null," ")+`
|
|
110
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var j=J(W,Se,te,fe,ue+"."+Se,r);if(j)return j}return null}return b(Q)}function L($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(L);if($===null||u($))return!0;var Q=h($);if(Q){var ae=Q.call($),ie;if(Q!==$.entries){for(;!(ie=ae.next()).done;)if(!L(ie.value))return!1}else for(;!(ie=ae.next()).done;){var te=ie.value;if(te&&!L(te[1]))return!1}}else return!1;return!0;default:return!1}}function F($,Q){return $==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function U($){var Q=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":F(Q,$)?"symbol":Q}function Y($){if(typeof $>"u"||$===null)return""+$;var Q=U($);if(Q==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return Q}function V($){var Q=Y($);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function K($){return!$.constructor||!$.constructor.name?p:$.constructor.name}return v.checkPropTypes=i,v.resetWarningCache=i.resetWarningCache,v.PropTypes=v,v},mp}var C_;function Qk(){if(C_)return fp.exports;C_=1;{var t=m_(),e=!0;fp.exports=Gk()(t.isElement,e)}return fp.exports}var Yk=Qk();const Ie=wi(Yk);function yp(){return yp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yp.apply(this,arguments)}function Kk(t,e){if(t==null)return{};var r=Xk(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Xk(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var nc=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=Kk(t,["color","size"]);return q.createElement("svg",yp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("polyline",{points:"20 6 9 17 4 12"}))});nc.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},nc.displayName="Check";function bp(){return bp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bp.apply(this,arguments)}function Zk(t,e){if(t==null)return{};var r=Jk(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Jk(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var cu=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=Zk(t,["color","size"]);return q.createElement("svg",bp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("polyline",{points:"6 9 12 15 18 9"}))});cu.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},cu.displayName="ChevronDown";function _p(){return _p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},_p.apply(this,arguments)}function eA(t,e){if(t==null)return{};var r=tA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function tA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var wp=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=eA(t,["color","size"]);return q.createElement("svg",_p({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("polyline",{points:"15 18 9 12 15 6"}))});wp.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},wp.displayName="ChevronLeft";function Ep(){return Ep=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ep.apply(this,arguments)}function rA(t,e){if(t==null)return{};var r=nA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function nA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Mo=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=rA(t,["color","size"]);return q.createElement("svg",Ep({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("polyline",{points:"9 18 15 12 9 6"}))});Mo.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Mo.displayName="ChevronRight";function Sp(){return Sp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sp.apply(this,arguments)}function iA(t,e){if(t==null)return{};var r=aA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function aA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var xp=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=iA(t,["color","size"]);return q.createElement("svg",Sp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("polyline",{points:"18 15 12 9 6 15"}))});xp.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},xp.displayName="ChevronUp";function Cp(){return Cp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cp.apply(this,arguments)}function oA(t,e){if(t==null)return{};var r=sA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function sA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Tp=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=oA(t,["color","size"]);return q.createElement("svg",Cp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),q.createElement("polyline",{points:"7 10 12 15 17 10"}),q.createElement("line",{x1:"12",y1:"15",x2:"12",y2:"3"}))});Tp.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Tp.displayName="Download";function Op(){return Op=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Op.apply(this,arguments)}function uA(t,e){if(t==null)return{};var r=lA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function lA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Rp=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=uA(t,["color","size"]);return q.createElement("svg",Op({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),q.createElement("polyline",{points:"15 3 21 3 21 9"}),q.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))});Rp.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Rp.displayName="ExternalLink";function kp(){return kp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},kp.apply(this,arguments)}function cA(t,e){if(t==null)return{};var r=fA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function fA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Ap=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=cA(t,["color","size"]);return q.createElement("svg",kp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),q.createElement("polyline",{points:"14 2 14 8 20 8"}),q.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),q.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),q.createElement("polyline",{points:"10 9 9 9 8 9"}))});Ap.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Ap.displayName="FileText";function Pp(){return Pp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Pp.apply(this,arguments)}function dA(t,e){if(t==null)return{};var r=hA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function hA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var xi=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=dA(t,["color","size"]);return q.createElement("svg",Pp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),q.createElement("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),q.createElement("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),q.createElement("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),q.createElement("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),q.createElement("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),q.createElement("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),q.createElement("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"}))});xi.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},xi.displayName="Loader";function Np(){return Np=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Np.apply(this,arguments)}function pA(t,e){if(t==null)return{};var r=vA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function vA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Ip=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=pA(t,["color","size"]);return q.createElement("svg",Np({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("path",{d:"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"}))});Ip.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Ip.displayName="Paperclip";function Lp(){return Lp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lp.apply(this,arguments)}function gA(t,e){if(t==null)return{};var r=mA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function mA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Mp=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=gA(t,["color","size"]);return q.createElement("svg",Lp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("circle",{cx:"11",cy:"11",r:"8"}),q.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Mp.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Mp.displayName="Search";function Dp(){return Dp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dp.apply(this,arguments)}function yA(t,e){if(t==null)return{};var r=bA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function bA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Fp=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=yA(t,["color","size"]);return q.createElement("svg",Dp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),q.createElement("polygon",{points:"22 2 15 22 11 13 2 9 22 2"}))});Fp.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Fp.displayName="Send";function jp(){return jp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jp.apply(this,arguments)}function _A(t,e){if(t==null)return{};var r=wA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function wA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var $p=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=_A(t,["color","size"]);return q.createElement("svg",jp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("path",{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"}))});$p.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},$p.displayName="ThumbsDown";function qp(){return qp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qp.apply(this,arguments)}function EA(t,e){if(t==null)return{};var r=SA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function SA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Up=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=EA(t,["color","size"]);return q.createElement("svg",qp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"}))});Up.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Up.displayName="ThumbsUp";function zp(){return zp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zp.apply(this,arguments)}function xA(t,e){if(t==null)return{};var r=CA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function CA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Hp=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=xA(t,["color","size"]);return q.createElement("svg",zp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("polyline",{points:"3 6 5 6 21 6"}),q.createElement("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}))});Hp.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Hp.displayName="Trash";function Vp(){return Vp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vp.apply(this,arguments)}function TA(t,e){if(t==null)return{};var r=OA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function OA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Bp=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=TA(t,["color","size"]);return q.createElement("svg",Vp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),q.createElement("polyline",{points:"17 8 12 3 7 8"}),q.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"}))});Bp.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Bp.displayName="Upload";function Wp(){return Wp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wp.apply(this,arguments)}function RA(t,e){if(t==null)return{};var r=kA(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function kA(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Zi=q.forwardRef(function(t,e){var r=t.color,n=r===void 0?"currentColor":r,i=t.size,a=i===void 0?24:i,o=RA(t,["color","size"]);return q.createElement("svg",Wp({ref:e,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),q.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),q.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});Zi.propTypes={color:Ie.string,size:Ie.oneOfType([Ie.string,Ie.number])},Zi.displayName="X";const T_=t=>{const[e,r]=q.useState(typeof window<"u"&&window.matchMedia(t).matches);return q.useLayoutEffect(()=>{const n=window.matchMedia(t),i=a=>{r(a.matches)};return n.addEventListener("change",i),()=>n.removeEventListener("change",i)},[t]),e},AA=(t,e)=>{const r=q.useRef(null);return q.useEffect(()=>()=>{r.current&&clearTimeout(r.current)},[]),(...i)=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{t(...i)},e)}},PA=async()=>{var e;const t=await i_().get("/organization-brand/widget");return((e=t==null?void 0:t.data)==null?void 0:e.data)||{}},NA=t=>{const e=t||"#00a1e0";document.documentElement.style.setProperty("--ed-brand-color",e)},IA=t=>{const e=t||"Poppins";document.documentElement.style.setProperty("--main-font",e)};var fu={},Do={},ic={},Da={},Fa={},Gp={},O_;function R_(){return O_||(O_=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype}(Gp)),Gp}var st={},k_;function A_(){if(k_)return st;k_=1;var t=st&&st.__extends||function(){var _=function(T,O){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,P){k.__proto__=P}||function(k,P){for(var N in P)Object.prototype.hasOwnProperty.call(P,N)&&(k[N]=P[N])},_(T,O)};return function(T,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");_(T,O);function k(){this.constructor=T}T.prototype=O===null?Object.create(O):(k.prototype=O.prototype,new k)}}(),e=st&&st.__assign||function(){return e=Object.assign||function(_){for(var T,O=1,k=arguments.length;O<k;O++){T=arguments[O];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(_[P]=T[P])}return _},e.apply(this,arguments)};Object.defineProperty(st,"__esModule",{value:!0}),st.cloneNode=st.hasChildren=st.isDocument=st.isDirective=st.isComment=st.isText=st.isCDATA=st.isTag=st.Element=st.Document=st.CDATA=st.NodeWithChildren=st.ProcessingInstruction=st.Comment=st.Text=st.DataNode=st.Node=void 0;var r=R_(),n=function(){function _(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(_.prototype,"parentNode",{get:function(){return this.parent},set:function(T){this.parent=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"previousSibling",{get:function(){return this.prev},set:function(T){this.prev=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"nextSibling",{get:function(){return this.next},set:function(T){this.next=T},enumerable:!1,configurable:!0}),_.prototype.cloneNode=function(T){return T===void 0&&(T=!1),S(this,T)},_}();st.Node=n;var i=function(_){t(T,_);function T(O){var k=_.call(this)||this;return k.data=O,k}return Object.defineProperty(T.prototype,"nodeValue",{get:function(){return this.data},set:function(O){this.data=O},enumerable:!1,configurable:!0}),T}(n);st.DataNode=i;var a=function(_){t(T,_);function T(){var O=_!==null&&_.apply(this,arguments)||this;return O.type=r.ElementType.Text,O}return Object.defineProperty(T.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),T}(i);st.Text=a;var o=function(_){t(T,_);function T(){var O=_!==null&&_.apply(this,arguments)||this;return O.type=r.ElementType.Comment,O}return Object.defineProperty(T.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),T}(i);st.Comment=o;var u=function(_){t(T,_);function T(O,k){var P=_.call(this,k)||this;return P.name=O,P.type=r.ElementType.Directive,P}return Object.defineProperty(T.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),T}(i);st.ProcessingInstruction=u;var l=function(_){t(T,_);function T(O){var k=_.call(this)||this;return k.children=O,k}return Object.defineProperty(T.prototype,"firstChild",{get:function(){var O;return(O=this.children[0])!==null&&O!==void 0?O:null},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"childNodes",{get:function(){return this.children},set:function(O){this.children=O},enumerable:!1,configurable:!0}),T}(n);st.NodeWithChildren=l;var f=function(_){t(T,_);function T(){var O=_!==null&&_.apply(this,arguments)||this;return O.type=r.ElementType.CDATA,O}return Object.defineProperty(T.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),T}(l);st.CDATA=f;var d=function(_){t(T,_);function T(){var O=_!==null&&_.apply(this,arguments)||this;return O.type=r.ElementType.Root,O}return Object.defineProperty(T.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),T}(l);st.Document=d;var h=function(_){t(T,_);function T(O,k,P,N){P===void 0&&(P=[]),N===void 0&&(N=O==="script"?r.ElementType.Script:O==="style"?r.ElementType.Style:r.ElementType.Tag);var M=_.call(this,P)||this;return M.name=O,M.attribs=k,M.type=N,M}return Object.defineProperty(T.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"tagName",{get:function(){return this.name},set:function(O){this.name=O},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"attributes",{get:function(){var O=this;return Object.keys(this.attribs).map(function(k){var P,N;return{name:k,value:O.attribs[k],namespace:(P=O["x-attribsNamespace"])===null||P===void 0?void 0:P[k],prefix:(N=O["x-attribsPrefix"])===null||N===void 0?void 0:N[k]}})},enumerable:!1,configurable:!0}),T}(l);st.Element=h;function p(_){return(0,r.isTag)(_)}st.isTag=p;function v(_){return _.type===r.ElementType.CDATA}st.isCDATA=v;function m(_){return _.type===r.ElementType.Text}st.isText=m;function y(_){return _.type===r.ElementType.Comment}st.isComment=y;function b(_){return _.type===r.ElementType.Directive}st.isDirective=b;function w(_){return _.type===r.ElementType.Root}st.isDocument=w;function E(_){return Object.prototype.hasOwnProperty.call(_,"children")}st.hasChildren=E;function S(_,T){T===void 0&&(T=!1);var O;if(m(_))O=new a(_.data);else if(y(_))O=new o(_.data);else if(p(_)){var k=T?C(_.children):[],P=new h(_.name,e({},_.attribs),k);k.forEach(function(H){return H.parent=P}),_.namespace!=null&&(P.namespace=_.namespace),_["x-attribsNamespace"]&&(P["x-attribsNamespace"]=e({},_["x-attribsNamespace"])),_["x-attribsPrefix"]&&(P["x-attribsPrefix"]=e({},_["x-attribsPrefix"])),O=P}else if(v(_)){var k=T?C(_.children):[],N=new f(k);k.forEach(function(L){return L.parent=N}),O=N}else if(w(_)){var k=T?C(_.children):[],M=new d(k);k.forEach(function(L){return L.parent=M}),_["x-mode"]&&(M["x-mode"]=_["x-mode"]),O=M}else if(b(_)){var z=new u(_.name,_.data);_["x-name"]!=null&&(z["x-name"]=_["x-name"],z["x-publicId"]=_["x-publicId"],z["x-systemId"]=_["x-systemId"]),O=z}else throw new Error("Not implemented yet: ".concat(_.type));return O.startIndex=_.startIndex,O.endIndex=_.endIndex,_.sourceCodeLocation!=null&&(O.sourceCodeLocation=_.sourceCodeLocation),O}st.cloneNode=S;function C(_){for(var T=_.map(function(k){return S(k,!0)}),O=1;O<T.length;O++)T[O].prev=T[O-1],T[O-1].next=T[O];return T}return st}var P_;function N_(){return P_||(P_=1,function(t){var e=Fa&&Fa.__createBinding||(Object.create?function(u,l,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(l,f);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(u,d,h)}:function(u,l,f,d){d===void 0&&(d=f),u[d]=l[f]}),r=Fa&&Fa.__exportStar||function(u,l){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(l,f)&&e(l,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=R_(),i=A_();r(A_(),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function u(l,f,d){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(d=f,f=a),typeof l=="object"&&(f=l,l=void 0),this.callback=l??null,this.options=f??a,this.elementCB=d??null}return u.prototype.onparserinit=function(l){this.parser=l},u.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(l){this.handleCallback(l)},u.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},u.prototype.onopentag=function(l,f){var d=this.options.xmlMode?n.ElementType.Tag:void 0,h=new i.Element(l,f,void 0,d);this.addNode(h),this.tagStack.push(h)},u.prototype.ontext=function(l){var f=this.lastNode;if(f&&f.type===n.ElementType.Text)f.data+=l,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var d=new i.Text(l);this.addNode(d),this.lastNode=d}},u.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=l;return}var f=new i.Comment(l);this.addNode(f),this.lastNode=f},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var l=new i.Text(""),f=new i.CDATA([l]);this.addNode(f),l.parent=f,this.lastNode=l},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(l,f){var d=new i.ProcessingInstruction(l,f);this.addNode(d)},u.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},u.prototype.addNode=function(l){var f=this.tagStack[this.tagStack.length-1],d=f.children[f.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),f.children.push(l),d&&(l.prev=d,d.next=l),l.parent=f,this.lastNode=null},u}();t.DomHandler=o,t.default=o}(Fa)),Fa}var Qp={},I_;function LA(){return I_||(I_=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,r){return e[r.toLowerCase()]=r,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")}(Qp)),Qp}var L_;function M_(){if(L_)return Da;L_=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.formatAttributes=n,Da.escapeSpecialCharacters=a,Da.revertEscapedCharacters=o,Da.formatDOM=u;var t=N_(),e=LA();function r(l){return e.CASE_SENSITIVE_TAG_NAMES_MAP[l]}function n(l){for(var f={},d=0,h=l.length;d<h;d++){var p=l[d];f[p.name]=p.value}return f}function i(l){l=l.toLowerCase();var f=r(l);return f||l}function a(l){return l.replace(e.CARRIAGE_RETURN_REGEX,e.CARRIAGE_RETURN_PLACEHOLDER)}function o(l){return l.replace(e.CARRIAGE_RETURN_PLACEHOLDER_REGEX,e.CARRIAGE_RETURN)}function u(l,f,d){f===void 0&&(f=null);for(var h=[],p,v=0,m=l.length;v<m;v++){var y=l[v];switch(y.nodeType){case 1:{var b=i(y.nodeName);p=new t.Element(b,n(y.attributes)),p.children=u(b==="template"?y.content.childNodes:y.childNodes,p);break}case 3:p=new t.Text(o(y.nodeValue));break;case 8:p=new t.Comment(y.nodeValue);break;default:continue}var w=h[v-1]||null;w&&(w.next=p),p.parent=f,p.prev=w,p.next=null,h.push(p)}return d&&(p=new t.ProcessingInstruction(d.substring(0,d.indexOf(" ")).toLowerCase(),d),p.next=h[0]||null,p.parent=f,h.unshift(p),h[1]&&(h[1].prev=h[0])),h}return Da}var D_;function MA(){if(D_)return ic;D_=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.default=y;var t=M_(),e="html",r="head",n="body",i=/<([a-zA-Z]+[0-9]?)/,a=/<head[^]*>/i,o=/<body[^]*>/i,u=function(b,w){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(b,w){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},f=typeof window=="object"&&window.DOMParser;if(typeof f=="function"){var d=new f,h="text/html";l=function(b,w){return w&&(b="<".concat(w,">").concat(b,"</").concat(w,">")),d.parseFromString(b,h)},u=l}if(typeof document=="object"&&document.implementation){var p=document.implementation.createHTMLDocument();u=function(b,w){if(w){var E=p.documentElement.querySelector(w);return E&&(E.innerHTML=b),p}return p.documentElement.innerHTML=b,p}}var v=typeof document=="object"&&document.createElement("template"),m;v&&v.content&&(m=function(b){return v.innerHTML=b,v.content.childNodes});function y(b){var w,E;b=(0,t.escapeSpecialCharacters)(b);var S=b.match(i),C=S&&S[1]?S[1].toLowerCase():"";switch(C){case e:{var _=l(b);if(!a.test(b)){var T=_.querySelector(r);(w=T==null?void 0:T.parentNode)===null||w===void 0||w.removeChild(T)}if(!o.test(b)){var T=_.querySelector(n);(E=T==null?void 0:T.parentNode)===null||E===void 0||E.removeChild(T)}return _.querySelectorAll(e)}case r:case n:{var O=u(b).querySelectorAll(C);return o.test(b)&&a.test(b)?O[0].parentNode.childNodes:O}default:{if(m)return m(b);var T=u(b,n).querySelector(n);return T.childNodes}}}return ic}var F_;function DA(){if(F_)return Do;F_=1;var t=Do&&Do.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=i;var e=t(MA()),r=M_(),n=/<(![a-zA-Z\s]+)>/;function i(a){if(typeof a!="string")throw new TypeError("First argument must be a string");if(!a)return[];var o=a.match(n),u=o?o[1]:void 0;return(0,r.formatDOM)((0,e.default)(a),null,u)}return Do}var ac={},wn={},du={},j_;function FA(){if(j_)return du;j_=1;var t=0;du.SAME=t;var e=1;return du.CAMELCASE=e,du.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},du}var $_;function jA(){if($_)return wn;$_=1;const t=0,e=1,r=2,n=3,i=4,a=5,o=6;function u(_){return f.hasOwnProperty(_)?f[_]:null}function l(_,T,O,k,P,N,M){this.acceptsBooleans=T===r||T===n||T===i,this.attributeName=k,this.attributeNamespace=P,this.mustUseProperty=O,this.propertyName=_,this.type=T,this.sanitizeURL=N,this.removeEmptyString=M}const f={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(_=>{f[_]=new l(_,t,!1,_,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([_,T])=>{f[_]=new l(_,e,!1,T,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(_=>{f[_]=new l(_,r,!1,_.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(_=>{f[_]=new l(_,r,!1,_,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(_=>{f[_]=new l(_,n,!1,_.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(_=>{f[_]=new l(_,n,!0,_,null,!1,!1)}),["capture","download"].forEach(_=>{f[_]=new l(_,i,!1,_,null,!1,!1)}),["cols","rows","size","span"].forEach(_=>{f[_]=new l(_,o,!1,_,null,!1,!1)}),["rowSpan","start"].forEach(_=>{f[_]=new l(_,a,!1,_.toLowerCase(),null,!1,!1)});const h=/[\-\:]([a-z])/g,p=_=>_[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(_=>{const T=_.replace(h,p);f[T]=new l(T,e,!1,_,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(_=>{const T=_.replace(h,p);f[T]=new l(T,e,!1,_,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(_=>{const T=_.replace(h,p);f[T]=new l(T,e,!1,_,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(_=>{f[_]=new l(_,e,!1,_.toLowerCase(),null,!1,!1)});const v="xlinkHref";f[v]=new l("xlinkHref",e,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(_=>{f[_]=new l(_,e,!1,_.toLowerCase(),null,!0,!0)});const{CAMELCASE:m,SAME:y,possibleStandardNames:b}=FA(),E=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",S=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+E+"]*$")),C=Object.keys(b).reduce((_,T)=>{const O=b[T];return O===y?_[T]=T:O===m?_[T.toLowerCase()]=T:_[T]=O,_},{});return wn.BOOLEAN=n,wn.BOOLEANISH_STRING=r,wn.NUMERIC=a,wn.OVERLOADED_BOOLEAN=i,wn.POSITIVE_NUMERIC=o,wn.RESERVED=t,wn.STRING=e,wn.getPropertyInfo=u,wn.isCustomAttribute=S,wn.possibleStandardNames=C,wn}var hu={},Fo={},Yp,q_;function $A(){if(q_)return Yp;q_=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,u=/^\s+|\s+$/g,l=`
|
|
111
|
+
`,f="/",d="*",h="",p="comment",v="declaration";Yp=function(y,b){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];b=b||{};var w=1,E=1;function S(H){var L=H.match(e);L&&(w+=L.length);var F=H.lastIndexOf(l);E=~F?H.length-F:E+H.length}function C(){var H={line:w,column:E};return function(L){return L.position=new _(H),k(),L}}function _(H){this.start=H,this.end={line:w,column:E},this.source=b.source}_.prototype.content=y;function T(H){var L=new Error(b.source+":"+w+":"+E+": "+H);if(L.reason=H,L.filename=b.source,L.line=w,L.column=E,L.source=y,!b.silent)throw L}function O(H){var L=H.exec(y);if(L){var F=L[0];return S(F),y=y.slice(F.length),L}}function k(){O(r)}function P(H){var L;for(H=H||[];L=N();)L!==!1&&H.push(L);return H}function N(){var H=C();if(!(f!=y.charAt(0)||d!=y.charAt(1))){for(var L=2;h!=y.charAt(L)&&(d!=y.charAt(L)||f!=y.charAt(L+1));)++L;if(L+=2,h===y.charAt(L-1))return T("End of comment missing");var F=y.slice(2,L-2);return E+=2,S(F),y=y.slice(L),E+=2,H({type:p,comment:F})}}function M(){var H=C(),L=O(n);if(L){if(N(),!O(i))return T("property missing ':'");var F=O(a),U=H({type:v,property:m(L[0].replace(t,h)),value:F?m(F[0].replace(t,h)):h});return O(o),U}}function z(){var H=[];P(H);for(var L;L=M();)L!==!1&&(H.push(L),P(H));return H}return k(),z()};function m(y){return y?y.replace(u,h):h}return Yp}var U_;function qA(){if(U_)return Fo;U_=1;var t=Fo&&Fo.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=r;var e=t($A());function r(n,i){var a=null;if(!n||typeof n!="string")return a;var o=(0,e.default)(n),u=typeof i=="function";return o.forEach(function(l){if(l.type==="declaration"){var f=l.property,d=l.value;u?i(f,d,l):d&&(a=a||{},a[f]=d)}}),a}return Fo}var pu={},z_;function UA(){if(z_)return pu;z_=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(f){return!f||r.test(f)||t.test(f)},o=function(f,d){return d.toUpperCase()},u=function(f,d){return"".concat(d,"-")},l=function(f,d){return d===void 0&&(d={}),a(f)?f:(f=f.toLowerCase(),d.reactCompat?f=f.replace(i,u):f=f.replace(n,u),f.replace(e,o))};return pu.camelCase=l,pu}var vu,H_;function zA(){if(H_)return vu;H_=1;var t=vu&&vu.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(qA()),r=UA();function n(i,a){var o={};return!i||typeof i!="string"||(0,e.default)(i,function(u,l){u&&l&&(o[(0,r.camelCase)(u,a)]=l)}),o}return n.default=n,vu=n,vu}var V_;function B_(){return V_||(V_=1,function(t){var e=hu&&hu.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=a,t.setStyleProp=u;var r=q,n=e(zA()),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function a(d,h){return d.includes("-")?!i.has(d):!!(h&&typeof h.is=="string")}var o={reactCompat:!0};function u(d,h){if(typeof d=="string"){if(!d.trim()){h.style={};return}try{h.style=(0,n.default)(d,o)}catch{h.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var l=function(d){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(d.name)};t.canTextBeChildOfNode=l;var f=function(d){return d};t.returnFirstArg=f}(hu)),hu}var W_;function G_(){if(W_)return ac;W_=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.default=a;var t=jA(),e=B_(),r=["checked","value"],n=["input","select","textarea"],i={reset:!0,submit:!0};function a(u,l){u===void 0&&(u={});var f={},d=!!(u.type&&i[u.type]);for(var h in u){var p=u[h];if((0,t.isCustomAttribute)(h)){f[h]=p;continue}var v=h.toLowerCase(),m=o(v);if(m){var y=(0,t.getPropertyInfo)(m);switch(r.includes(m)&&n.includes(l)&&!d&&(m=o("default"+v)),f[m]=p,y&&y.type){case t.BOOLEAN:f[m]=!0;break;case t.OVERLOADED_BOOLEAN:p===""&&(f[m]=!0);break}continue}e.PRESERVE_CUSTOM_ATTRIBUTES&&(f[h]=p)}return(0,e.setStyleProp)(u.style,f),f}function o(u){return t.possibleStandardNames[u]}return ac}var jo={},Q_;function HA(){if(Q_)return jo;Q_=1;var t=jo&&jo.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=a;var e=q,r=t(G_()),n=B_(),i={cloneElement:e.cloneElement,createElement:e.createElement,isValidElement:e.isValidElement};function a(u,l){l===void 0&&(l={});for(var f=[],d=typeof l.replace=="function",h=l.transform||n.returnFirstArg,p=l.library||i,v=p.cloneElement,m=p.createElement,y=p.isValidElement,b=u.length,w=0;w<b;w++){var E=u[w];if(d){var S=l.replace(E,w);if(y(S)){b>1&&(S=v(S,{key:S.key||w})),f.push(h(S,E,w));continue}}if(E.type==="text"){var C=!E.data.trim().length;if(C&&E.parent&&!(0,n.canTextBeChildOfNode)(E.parent)||l.trim&&C)continue;f.push(h(E.data,E,w));continue}var _=E,T={};o(_)?((0,n.setStyleProp)(_.attribs.style,_.attribs),T=_.attribs):_.attribs&&(T=(0,r.default)(_.attribs,_.name));var O=void 0;switch(E.type){case"script":case"style":E.children[0]&&(T.dangerouslySetInnerHTML={__html:E.children[0].data});break;case"tag":E.name==="textarea"&&E.children[0]?T.defaultValue=E.children[0].data:E.children&&E.children.length&&(O=a(E.children,l));break;default:continue}b>1&&(T.key=w),f.push(h(m(E.name,T,O),E,w))}return f.length===1?f[0]:f}function o(u){return n.PRESERVE_CUSTOM_ATTRIBUTES&&u.type==="tag"&&(0,n.isCustomComponent)(u.name,u.attribs)}return jo}var Y_;function VA(){return Y_||(Y_=1,function(t){var e=fu&&fu.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=u;var r=e(DA());t.htmlToDOM=r.default;var n=e(G_());t.attributesToProps=n.default;var i=e(HA());t.domToReact=i.default;var a=N_();Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function u(l,f){if(typeof l!="string")throw new TypeError("First argument must be a string");return l?(0,i.default)((0,r.default)(l,(f==null?void 0:f.htmlparser2)||o),f):[]}}(fu)),fu}var BA=VA();const K_=wi(BA),gu=K_.default||K_,WA=({articlesData:t,setArticleId:e,setSearchedText:r,setArticlesData:n})=>R.jsxs("div",{children:[R.jsxs("p",{className:"ed-text-14 ed-text-border-regular ed-font-medium ed-py-4 ed-px-2 ed-border-b ed-border-border-light ed-block ed-first-letter:uppercase ed-lowercase",children:[lt.size(t)," articles"]}),R.jsx("div",{className:"ed-mt-4 ed-space-y-4",children:t==null?void 0:t.map(i=>R.jsxs("button",{type:"button",className:"ed-flex ed-items-center ed-gap-2 ed-flex-1 ed-w-full ed-px-5 ed-py-2 ed-hover:bg-white-light ed-group ed-text-left",onClick:()=>{e(i==null?void 0:i.id),r(""),n([])},children:[R.jsx("p",{className:"ed-text-border-dark ed-text-14 ed-font-medium ed-group-hover:text-brand-link ed-flex-1 ed-duration-500 ed-ease-in-out ed-transition-all",children:gu((i==null?void 0:i.title)||"")}),R.jsx("div",{className:"ed-size-4 ed--translate-x-2 ed-opacity-0 ed-group-hover:opacity-100 ed-group-hover:translate-x-2 ed-duration-300 ed-transition-all",children:R.jsx(Mo,{className:"ed-text-border ed-size-4"})})]},i==null?void 0:i.id))})]});for(var ja=256,X_=[],Z_=256,oc;ja--;)X_[ja]=(ja+256).toString(16).substring(1);function Kp(t){var e=0,r=11;if(!oc||ja+r>Z_*2)for(oc="",ja=0;e<Z_;e++)oc+=X_[Math.random()*256|0];return oc.substring(ja,ja+++r)}const GA=(t,e,r)=>{const n=t[e];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((i,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})},Je=t=>typeof t=="string",mu=()=>{let t,e;const r=new Promise((n,i)=>{t=n,e=i});return r.resolve=t,r.reject=e,r},J_=t=>t==null?"":""+t,QA=(t,e,r)=>{t.forEach(n=>{e[n]&&(r[n]=e[n])})},YA=/###/g,ew=t=>t&&t.indexOf("###")>-1?t.replace(YA,"."):t,tw=t=>!t||Je(t),yu=(t,e,r)=>{const n=Je(e)?e.split("."):e;let i=0;for(;i<n.length-1;){if(tw(t))return{};const a=ew(n[i]);!t[a]&&r&&(t[a]=new r),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++i}return tw(t)?{}:{obj:t,k:ew(n[i])}},rw=(t,e,r)=>{const{obj:n,k:i}=yu(t,e,Object);if(n!==void 0||e.length===1){n[i]=r;return}let a=e[e.length-1],o=e.slice(0,e.length-1),u=yu(t,o,Object);for(;u.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),u=yu(t,o,Object),u&&u.obj&&typeof u.obj[`${u.k}.${a}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${a}`]=r},KA=(t,e,r,n)=>{const{obj:i,k:a}=yu(t,e,Object);i[a]=i[a]||[],i[a].push(r)},sc=(t,e)=>{const{obj:r,k:n}=yu(t,e);if(r)return r[n]},XA=(t,e,r)=>{const n=sc(t,r);return n!==void 0?n:sc(e,r)},nw=(t,e,r)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?Je(t[n])||t[n]instanceof String||Je(e[n])||e[n]instanceof String?r&&(t[n]=e[n]):nw(t[n],e[n],r):t[n]=e[n]);return t},$o=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ZA={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const JA=t=>Je(t)?t.replace(/[&<>"'\/]/g,e=>ZA[e]):t;class e9{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const t9=[" ",",","?","!",";"],r9=new e9(20),n9=(t,e,r)=>{e=e||"",r=r||"";const n=t9.filter(o=>e.indexOf(o)<0&&r.indexOf(o)<0);if(n.length===0)return!0;const i=r9.getRegExp(`(${n.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(t);if(!a){const o=t.indexOf(r);o>0&&!i.test(t.substring(0,o))&&(a=!0)}return a},Xp=function(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(r);let i=t;for(let a=0;a<n.length;){if(!i||typeof i!="object")return;let o,u="";for(let l=a;l<n.length;++l)if(l!==a&&(u+=r),u+=n[l],o=i[u],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<n.length-1)continue;a+=l-a+1;break}i=o}return i},uc=t=>t&&t.replace("_","-"),i9={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class lc{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||i9,this.options=r,this.debug=r.debug}log(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(e,r,n,i){return i&&!this.debug?null:(Je(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[r](e))}create(e){return new lc(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new lc(this.logger,e)}}var ii=new lc;class cc{constructor(){this.observers={}}on(e,r){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(r)||0;this.observers[n].set(r,i+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(o=>{let[u,l]=o;for(let f=0;f<l;f++)u(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[u,l]=o;for(let f=0;f<l;f++)u.apply(u,[e,...n])})}}class iw extends cc{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;e.indexOf(".")>-1?u=e.split("."):(u=[e,r],n&&(Array.isArray(n)?u.push(...n):Je(n)&&a?u.push(...n.split(a)):u.push(n)));const l=sc(this.data,u);return!l&&!r&&!n&&e.indexOf(".")>-1&&(e=u[0],r=u[1],n=u.slice(2).join(".")),l||!o||!Je(n)?l:Xp(this.data&&this.data[e]&&this.data[e][r],n,a)}addResource(e,r,n,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let u=[e,r];n&&(u=u.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(u=e.split("."),i=r,r=u[1]),this.addNamespaces(r),rw(this.data,u,i),a.silent||this.emit("added",e,r,n,i)}addResources(e,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in n)(Je(n[a])||Array.isArray(n[a]))&&this.addResource(e,r,a,n[a],{silent:!0});i.silent||this.emit("added",e,r,n)}addResourceBundle(e,r,n,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[e,r];e.indexOf(".")>-1&&(u=e.split("."),i=n,n=r,r=u[1]),this.addNamespaces(r);let l=sc(this.data,u)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?nw(l,n,a):l={...l,...n},rw(this.data,u,l),o.silent||this.emit("added",e,r,n)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,r)}:this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var aw={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,i){return t.forEach(a=>{this.processors[a]&&(e=this.processors[a].process(e,r,n,i))}),e}};const ow={};class fc extends cc{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),QA(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ii.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,r);return n&&n.res!==void 0}extractFromKey(e,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,u=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!n9(e,n,i);if(o&&!u){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:Je(a)?[a]:a};const f=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(f[0])>-1)&&(a=f.shift()),e=f.join(i)}return{key:e,namespaces:Je(a)?[a]:a}}translate(e,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:u}=this.extractFromKey(e[e.length-1],r),l=u[u.length-1],f=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){const C=r.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${C}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${C}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:o}const h=this.resolve(e,r);let p=h&&h.res;const v=h&&h.usedKey||o,m=h&&h.exactUsedKey||o,y=Object.prototype.toString.apply(p),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,S=!Je(p)&&typeof p!="boolean"&&typeof p!="number";if(E&&p&&S&&b.indexOf(y)<0&&!(Je(w)&&Array.isArray(p))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,p,{...r,ns:u}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=C,h.usedParams=this.getUsedParamsDetails(r),h):C}if(a){const C=Array.isArray(p),_=C?[]:{},T=C?m:v;for(const O in p)if(Object.prototype.hasOwnProperty.call(p,O)){const k=`${T}${a}${O}`;_[O]=this.translate(k,{...r,joinArrays:!1,ns:u}),_[O]===k&&(_[O]=p[O])}p=_}}else if(E&&Je(w)&&Array.isArray(p))p=p.join(w),p&&(p=this.extendTranslation(p,e,r,n));else{let C=!1,_=!1;const T=r.count!==void 0&&!Je(r.count),O=fc.hasDefaultValue(r),k=T?this.pluralResolver.getSuffix(f,r.count,r):"",P=r.ordinal&&T?this.pluralResolver.getSuffix(f,r.count,{ordinal:!1}):"",N=T&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),M=N&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${k}`]||r[`defaultValue${P}`]||r.defaultValue;!this.isValidLookup(p)&&O&&(C=!0,p=M),this.isValidLookup(p)||(_=!0,p=o);const H=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&_?void 0:p,L=O&&M!==p&&this.options.updateMissing;if(_||C||L){if(this.logger.log(L?"updateKey":"missingKey",f,l,o,L?M:p),a){const V=this.resolve(o,{...r,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&U&&U[0])for(let V=0;V<U.length;V++)F.push(U[V]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(r.lng||this.language):F.push(r.lng||this.language);const Y=(V,K,$)=>{const Q=O&&$!==p?$:H;this.options.missingKeyHandler?this.options.missingKeyHandler(V,l,K,Q,L,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(V,l,K,Q,L,r),this.emit("missingKey",V,l,K,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?F.forEach(V=>{const K=this.pluralResolver.getSuffixes(V,r);N&&r[`defaultValue${this.options.pluralSeparator}zero`]&&K.indexOf(`${this.options.pluralSeparator}zero`)<0&&K.push(`${this.options.pluralSeparator}zero`),K.forEach($=>{Y([V],o+$,r[`defaultValue${$}`]||M)})}):Y(F,o,M))}p=this.extendTranslation(p,e,r,h,n),_&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${o}`),(_||C)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,C?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(h.res=p,h.usedParams=this.getUsedParamsDetails(r),h):p}extendTranslation(e,r,n,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const f=Je(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(f){const p=e.match(this.interpolator.nestingRegexp);d=p&&p.length}let h=n.replace&&!Je(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,n.lng||this.language||i.usedLng,n),f){const p=e.match(this.interpolator.nestingRegexp),v=p&&p.length;d<v&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return a&&a[0]===v[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${r[0]}`),null):o.translate(...v,r)},n)),n.interpolation&&this.interpolator.reset()}const u=n.postProcess||this.options.postProcess,l=Je(u)?[u]:u;return e!=null&&l&&l.length&&n.applyPostProcessor!==!1&&(e=aw.handle(l,e,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,a,o,u;return Je(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(n))return;const f=this.extractFromKey(l,r),d=f.key;i=d;let h=f.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=r.count!==void 0&&!Je(r.count),v=p&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),m=r.context!==void 0&&(Je(r.context)||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);h.forEach(b=>{this.isValidLookup(n)||(u=b,!ow[`${y[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(ow[`${y[0]}-${b}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(w=>{if(this.isValidLookup(n))return;o=w;const E=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(E,d,w,b,r);else{let C;p&&(C=this.pluralResolver.getSuffix(w,r.count,r));const _=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(E.push(d+C),r.ordinal&&C.indexOf(T)===0&&E.push(d+C.replace(T,this.options.pluralSeparator)),v&&E.push(d+_)),m){const O=`${d}${this.options.contextSeparator}${r.context}`;E.push(O),p&&(E.push(O+C),r.ordinal&&C.indexOf(T)===0&&E.push(O+C.replace(T,this.options.pluralSeparator)),v&&E.push(O+_))}}let S;for(;S=E.pop();)this.isValidLookup(n)||(a=S,n=this.getResource(w,b,S,r))}))})}),{res:n,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:u}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,r,n,i):this.resourceStore.getResource(e,r,n,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!Je(e.replace);let i=n?e.replace:e;if(n&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const a of r)delete i[a]}return i}static hasDefaultValue(e){const r="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r===n.substring(0,r.length)&&e[n]!==void 0)return!0;return!1}}const Zp=t=>t.charAt(0).toUpperCase()+t.slice(1);class sw{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ii.create("languageUtils")}getScriptPartFromCode(e){if(e=uc(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=uc(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(Je(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(e)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(i=>i.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Zp(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Zp(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Zp(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(n=>{if(r)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&e.forEach(n=>{if(r)return;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),Je(e)&&(e=[e]),Array.isArray(e))return e;if(!r)return e.default||[];let n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}toResolveHierarchy(e,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],e),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return Je(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):Je(e)&&a(this.formatLanguageCode(e)),n.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}let a9=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],o9={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const s9=["v1","v2","v3"],u9=["v4"],uw={zero:0,one:1,two:2,few:3,many:4,other:5},l9=()=>{const t={};return a9.forEach(e=>{e.lngs.forEach(r=>{t[r]={numbers:e.nr,plurals:o9[e.fc]}})}),t};class c9{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=r,this.logger=ii.create("pluralResolver"),(!this.options.compatibilityJSON||u9.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=l9(),this.pluralRulesCache={}}addRule(e,r){this.rules[e]=r}clearCache(){this.pluralRulesCache={}}getRule(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const n=uc(e==="dev"?"en":e),i=r.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:n,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(n,{type:i})}catch{if(!e.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,r)}return this.pluralRulesCache[a]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(i=>`${r}${i}`)}getSuffixes(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((i,a)=>uw[i]-uw[a]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):n.numbers.map(i=>this.getSuffix(e,i,r)):[]}getSuffix(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:this.getSuffixRetroCompatible(i,r):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,r){const n=e.noAbs?e.plurals(r):e.plurals(Math.abs(r));let i=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!s9.includes(this.options.compatibilityJSON)}}const lw=function(t,e,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=XA(t,e,r);return!a&&i&&Je(r)&&(a=Xp(t,r,n),a===void 0&&(a=Xp(e,r,n))),a},Jp=t=>t.replace(/\$/g,"$$$$");class f9{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ii.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(r=>r),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:u,suffixEscaped:l,formatSeparator:f,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:v,nestingSuffix:m,nestingSuffixEscaped:y,nestingOptionsSeparator:b,maxReplaces:w,alwaysFormat:E}=e.interpolation;this.escape=r!==void 0?r:JA,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?$o(a):o||"{{",this.suffix=u?$o(u):l||"}}",this.formatSeparator=f||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?$o(p):v||$o("$t("),this.nestingSuffix=m?$o(m):y||$o(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=w||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,r,n,i){let a,o,u;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=v=>{if(v.indexOf(this.formatSeparator)<0){const w=lw(r,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,n,{...i,...r,interpolationkey:v}):w}const m=v.split(this.formatSeparator),y=m.shift().trim(),b=m.join(this.formatSeparator).trim();return this.format(lw(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),b,n,{...i,...r,interpolationkey:y})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Jp(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Jp(this.escape(v)):Jp(v)}].forEach(v=>{for(u=0;a=v.regex.exec(e);){const m=a[1].trim();if(o=f(m),o===void 0)if(typeof d=="function"){const b=d(e,a,i);o=Je(b)?b:""}else if(i&&Object.prototype.hasOwnProperty.call(i,m))o="";else if(h){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),o="";else!Je(o)&&!this.useRawValueToEscape&&(o=J_(o));const y=v.safeValue(o);if(e=e.replace(a[0],y),h?(v.regex.lastIndex+=o.length,v.regex.lastIndex-=a[0].length):v.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),e}nest(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;const u=(l,f)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const h=l.split(new RegExp(`${d}[ ]*{`));let p=`{${h[1]}`;l=h[0],p=this.interpolate(p,o);const v=p.match(/'/g),m=p.match(/"/g);(v&&v.length%2===0&&!m||m.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),f&&(o={...f,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${d}${p}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(e);){let l=[];o={...n},o=o.replace&&!Je(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let f=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=d.shift(),l=d,f=!0}if(a=r(u.call(this,i[1].trim(),o),o),a&&i[0]===e&&!Je(a))return a;Je(a)||(a=J_(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),a=""),f&&(a=l.reduce((d,h)=>this.format(d,h,n.lng,{...n,interpolationkey:i[1].trim()}),a.trim())),e=e.replace(i[0],a),this.regexp.lastIndex=0}return e}}const d9=t=>{let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);e==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(o=>{if(o){const[u,...l]=o.split(":"),f=l.join(":").trim().replace(/^'+|'+$/g,""),d=u.trim();r[d]||(r[d]=f),f==="false"&&(r[d]=!1),f==="true"&&(r[d]=!0),isNaN(f)||(r[d]=parseInt(f,10))}})}return{formatName:e,formatOptions:r}},qo=t=>{const e={};return(r,n,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const o=n+JSON.stringify(a);let u=e[o];return u||(u=t(uc(n),i),e[o]=u),u(r)}};class h9{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ii.create("formatter"),this.options=e,this.formats={number:qo((r,n)=>{const i=new Intl.NumberFormat(r,{...n});return a=>i.format(a)}),currency:qo((r,n)=>{const i=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>i.format(a)}),datetime:qo((r,n)=>{const i=new Intl.DateTimeFormat(r,{...n});return a=>i.format(a)}),relativetime:qo((r,n)=>{const i=new Intl.RelativeTimeFormat(r,{...n});return a=>i.format(a,n.range||"day")}),list:qo((r,n)=>{const i=new Intl.ListFormat(r,{...n});return a=>i.format(a)})},this.init(e)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=qo(r)}format(e,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(u=>u.indexOf(")")>-1)){const u=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,u)].join(this.formatSeparator)}return a.reduce((u,l)=>{const{formatName:f,formatOptions:d}=d9(l);if(this.formats[f]){let h=u;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},v=p.locale||p.lng||i.locale||i.lng||n;h=this.formats[f](u,v,{...d,...i,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${f}`);return u},e)}}const p9=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class v9 extends cc{constructor(e,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=ii.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(e,r,n,i){const a={},o={},u={},l={};return e.forEach(f=>{let d=!0;r.forEach(h=>{const p=`${f}|${h}`;!n.reload&&this.store.hasResourceBundle(f,h)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,d=!1,o[p]===void 0&&(o[p]=!0),a[p]===void 0&&(a[p]=!0),l[h]===void 0&&(l[h]=!0)))}),d||(u[f]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(l)}}loaded(e,r,n){const i=e.split("|"),a=i[0],o=i[1];r&&this.emit("failedLoading",a,o,r),!r&&n&&this.store.addResourceBundle(a,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=r?-1:2,r&&n&&(this.state[e]=0);const u={};this.queue.forEach(l=>{KA(l.loaded,[a],o),p9(l,e),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(f=>{u[f]||(u[f]={});const d=l.loaded[f];d.length&&d.forEach(h=>{u[f][h]===void 0&&(u[f][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(l=>!l.done)}read(e,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:n,tried:i,wait:a,callback:o});return}this.readingCalls++;const u=(f,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(f&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,r,n,i+1,a*2,o)},a);return}o(f,d)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const f=l(e,r);f&&typeof f.then=="function"?f.then(d=>u(null,d)).catch(u):u(null,f)}catch(f){u(f)}return}return l(e,r,u)}prepareLoading(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Je(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Je(r)&&(r=[r]);const a=this.queueLoad(e,r,n,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,r,n){this.prepareLoading(e,r,{},n)}reload(e,r,n){this.prepareLoading(e,r,{reload:!0},n)}loadOne(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),i=n[0],a=n[1];this.read(i,a,"read",void 0,void 0,(o,u)=>{o&&this.logger.warn(`${r}loading namespace ${a} for language ${i} failed`,o),!o&&u&&this.logger.log(`${r}loaded namespace ${a} for language ${i}`,u),this.loaded(e,o,u)})}saveMissing(e,r,n,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:a},f=this.backend.create.bind(this.backend);if(f.length<6)try{let d;f.length===5?d=f(e,r,n,i,l):d=f(e,r,n,i),d&&typeof d.then=="function"?d.then(h=>u(null,h)).catch(u):u(null,d)}catch(d){u(d)}else f(e,r,n,i,u,l)}!e||!e[0]||this.store.addResource(e[0],r,n,i)}}}const cw=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Je(t[1])&&(e.defaultValue=t[1]),Je(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(n=>{e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),fw=t=>(Je(t.ns)&&(t.ns=[t.ns]),Je(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Je(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),dc=()=>{},g9=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(r=>{typeof t[r]=="function"&&(t[r]=t[r].bind(t))})};class bu extends cc{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=fw(e),this.services={},this.logger=ii,this.modules={external:[]},g9(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(){var e=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(Je(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const i=cw();this.options={...i,...this.options,...fw(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const a=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?ii.init(a(this.modules.logger),this.options):ii.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=h9);const h=new sw(this.options);this.store=new iw(this.options.resources,this.options);const p=this.services;p.logger=ii,p.resourceStore=this.store,p.languageUtils=h,p.pluralResolver=new c9(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=a(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new f9(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new v9(a(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(v){for(var m=arguments.length,y=new Array(m>1?m-1:0),b=1;b<m;b++)y[b-1]=arguments[b];e.emit(v,...y)}),this.modules.languageDetector&&(p.languageDetector=a(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=a(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new fc(this.services,this.options),this.translator.on("*",function(v){for(var m=arguments.length,y=new Array(m>1?m-1:0),b=1;b<m;b++)y[b-1]=arguments[b];e.emit(v,...y)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=dc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const l=mu(),f=()=>{const d=(h,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),n(h,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dc;const i=Je(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],o=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&a.indexOf(f)<0&&a.push(f)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(u=>o(u)),this.services.backendConnector.load(a,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(e,r,n){const i=mu();return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r=void 0),e||(e=this.languages),r||(r=this.options.ns),n||(n=dc),this.services.backendConnector.reload(e,r,a=>{i.resolve(),n(a)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&aw.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,r){var n=this;this.isLanguageChangingTo=e;const i=mu();this.emit("languageChanging",e);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,f)=>{f?(a(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},u=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const f=Je(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);f&&(this.language||a(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,d=>{o(d,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),i}getFixedT(e,r,n){var i=this;const a=function(o,u){let l;if(typeof u!="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),h=2;h<f;h++)d[h-2]=arguments[h];l=i.options.overloadTranslationOptionHandler([o,u].concat(d))}else l={...u};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||a.keyPrefix);const p=i.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(o)?v=o.map(m=>`${l.keyPrefix}${p}${m}`):v=l.keyPrefix?`${l.keyPrefix}${p}${o}`:o,i.t(v,l)};return Je(e)?a.lng=e:a.lngs=e,a.ns=r,a.keyPrefix=n,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const o=(u,l)=>{const f=this.services.backendConnector.state[`${u}|${l}`];return f===-1||f===0||f===2};if(r.precheck){const u=r.precheck(this,o);if(u!==void 0)return u}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,e)&&(!i||o(a,e)))}loadNamespaces(e,r){const n=mu();return this.options.ns?(Je(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(e,r){const n=mu();Je(e)&&(e=[e]);const i=this.options.preload||[],a=e.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new sw(cw());return r.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new bu(e,r)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dc;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},a=new bu(i);return(e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(u=>{a[u]=this[u]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new iw(this.store.data,i),a.services.resourceStore=a.store),a.translator=new fc(a.services,i),a.translator.on("*",function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),d=1;d<l;d++)f[d-1]=arguments[d];a.emit(u,...f)}),a.init(i,r),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Rr=bu.createInstance();Rr.createInstance=bu.createInstance,Rr.createInstance,Rr.dir,Rr.init,Rr.loadResources,Rr.reloadResources,Rr.use,Rr.changeLanguage,Rr.getFixedT,Rr.t,Rr.exists,Rr.setDefaultNamespace,Rr.hasLoadedNamespace,Rr.loadNamespaces,Rr.loadLanguages;var hc={};/*!
|
|
112
|
+
* cookie
|
|
113
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
114
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
115
|
+
* MIT Licensed
|
|
116
|
+
*/var dw;function m9(){if(dw)return hc;dw=1,hc.parse=o,hc.serialize=f;var t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function o(v,m){if(typeof v!="string")throw new TypeError("argument str must be a string");var y={},b=v.length;if(b<2)return y;var w=m&&m.decode||d,E=0,S=0,C=0;do{if(S=v.indexOf("=",E),S===-1)break;if(C=v.indexOf(";",E),C===-1)C=b;else if(S>C){E=v.lastIndexOf(";",S-1)+1;continue}var _=u(v,E,S),T=l(v,S,_),O=v.slice(_,T);if(!e.call(y,O)){var k=u(v,S+1,C),P=l(v,C,k);v.charCodeAt(k)===34&&v.charCodeAt(P-1)===34&&(k++,P--);var N=v.slice(k,P);y[O]=p(N,w)}E=C+1}while(E<b);return y}function u(v,m,y){do{var b=v.charCodeAt(m);if(b!==32&&b!==9)return m}while(++m<y);return y}function l(v,m,y){for(;m>y;){var b=v.charCodeAt(--m);if(b!==32&&b!==9)return m+1}return y}function f(v,m,y){var b=y&&y.encode||encodeURIComponent;if(typeof b!="function")throw new TypeError("option encode is invalid");if(!r.test(v))throw new TypeError("argument name is invalid");var w=b(m);if(!n.test(w))throw new TypeError("argument val is invalid");var E=v+"="+w;if(!y)return E;if(y.maxAge!=null){var S=Math.floor(y.maxAge);if(!isFinite(S))throw new TypeError("option maxAge is invalid");E+="; Max-Age="+S}if(y.domain){if(!i.test(y.domain))throw new TypeError("option domain is invalid");E+="; Domain="+y.domain}if(y.path){if(!a.test(y.path))throw new TypeError("option path is invalid");E+="; Path="+y.path}if(y.expires){var C=y.expires;if(!h(C)||isNaN(C.valueOf()))throw new TypeError("option expires is invalid");E+="; Expires="+C.toUTCString()}if(y.httpOnly&&(E+="; HttpOnly"),y.secure&&(E+="; Secure"),y.partitioned&&(E+="; Partitioned"),y.priority){var _=typeof y.priority=="string"?y.priority.toLowerCase():y.priority;switch(_){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(y.sameSite){var T=typeof y.sameSite=="string"?y.sameSite.toLowerCase():y.sameSite;switch(T){case!0:E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"strict":E+="; SameSite=Strict";break;case"none":E+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return E}function d(v){return v.indexOf("%")!==-1?decodeURIComponent(v):v}function h(v){return t.call(v)==="[object Date]"}function p(v,m){try{return m(v)}catch{return v}}return hc}var pc=m9();function y9(){const t=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof t=="boolean"?t:typeof document=="object"&&typeof document.cookie=="string"}function b9(t){return typeof t=="string"?pc.parse(t):typeof t=="object"&&t!==null?t:{}}function ev(t,e={}){const r=_9(t);if(!e.doNotParse)try{return JSON.parse(r)}catch{}return t}function _9(t){return t&&t[0]==="j"&&t[1]===":"?t.substr(2):t}class w9{constructor(e,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=pc.parse(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=b9(e||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=y9()}_emitChange(e){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(n=>{e[n]!==this.cookies[n]&&this._emitChange({name:n,value:ev(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,r={}){return r.doNotUpdate||this.update(),ev(this.cookies[e],r)}getAll(e={}){e.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=ev(this.cookies[n],e);return r}set(e,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const i=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=pc.serialize(e,i,n)),this._emitChange({name:e,value:r,options:n})}remove(e,r){const n=r=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=pc.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:r})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){const r=this.changeListeners.indexOf(e);r>=0&&this.changeListeners.splice(r,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const hw=Z.createContext(new w9),{Provider:xV,Consumer:CV}=hw;typeof SuppressedError=="function"&&SuppressedError;var tv={exports:{}},Pt={};/** @license React v16.13.1
|
|
117
|
+
* react-is.development.js
|
|
118
|
+
*
|
|
119
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the MIT license found in the
|
|
122
|
+
* LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/var pw;function E9(){return pw||(pw=1,function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function S(j){return typeof j=="string"||typeof j=="function"||j===n||j===f||j===a||j===i||j===h||j===p||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===v||j.$$typeof===o||j.$$typeof===u||j.$$typeof===d||j.$$typeof===b||j.$$typeof===w||j.$$typeof===E||j.$$typeof===y)}function C(j){if(typeof j=="object"&&j!==null){var Re=j.$$typeof;switch(Re){case e:var oe=j.type;switch(oe){case l:case f:case n:case a:case i:case h:return oe;default:var xe=oe&&oe.$$typeof;switch(xe){case u:case d:case m:case v:case o:return xe;default:return Re}}case r:return Re}}}var _=l,T=f,O=u,k=o,P=e,N=d,M=n,z=m,H=v,L=r,F=a,U=i,Y=h,V=!1;function K(j){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(j)||C(j)===l}function $(j){return C(j)===f}function Q(j){return C(j)===u}function ae(j){return C(j)===o}function ie(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function te(j){return C(j)===d}function fe(j){return C(j)===n}function ue(j){return C(j)===m}function W(j){return C(j)===v}function de(j){return C(j)===r}function ye(j){return C(j)===a}function Se(j){return C(j)===i}function J(j){return C(j)===h}Pt.AsyncMode=_,Pt.ConcurrentMode=T,Pt.ContextConsumer=O,Pt.ContextProvider=k,Pt.Element=P,Pt.ForwardRef=N,Pt.Fragment=M,Pt.Lazy=z,Pt.Memo=H,Pt.Portal=L,Pt.Profiler=F,Pt.StrictMode=U,Pt.Suspense=Y,Pt.isAsyncMode=K,Pt.isConcurrentMode=$,Pt.isContextConsumer=Q,Pt.isContextProvider=ae,Pt.isElement=ie,Pt.isForwardRef=te,Pt.isFragment=fe,Pt.isLazy=ue,Pt.isMemo=W,Pt.isPortal=de,Pt.isProfiler=ye,Pt.isStrictMode=Se,Pt.isSuspense=J,Pt.isValidElementType=S,Pt.typeOf=C}()),Pt}var vw;function S9(){return vw||(vw=1,tv.exports=E9()),tv.exports}var rv,gw;function x9(){if(gw)return rv;gw=1;var t=S9(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=n,a[t.Memo]=i;function o(m){return t.isMemo(m)?i:a[m.$$typeof]||e}var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;function v(m,y,b){if(typeof y!="string"){if(p){var w=h(y);w&&w!==p&&v(m,w,b)}var E=l(y);f&&(E=E.concat(f(y)));for(var S=o(m),C=o(y),_=0;_<E.length;++_){var T=E[_];if(!r[T]&&!(b&&b[T])&&!(C&&C[T])&&!(S&&S[T])){var O=d(y,T);try{u(m,T,O)}catch{}}}}return m}return rv=v,rv}x9();function C9(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function T9(t,e){const r=q.useContext(hw);if(!r)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),e),[a,o]=q.useState(()=>r.getAll(i));C9()&&q.useLayoutEffect(()=>{function d(){const h=r.getAll(i);O9(t||null,h,a)&&o(h)}return r.addChangeListener(d),()=>{r.removeChangeListener(d)}},[r,a]);const u=q.useMemo(()=>r.set.bind(r),[r]),l=q.useMemo(()=>r.remove.bind(r),[r]),f=q.useMemo(()=>r.update.bind(r),[r]);return[a,u,l,f]}function O9(t,e,r){if(!t)return!0;for(let n of t)if(e[n]!==r[n])return!0;return!1}var R9=function(e){return{type:"backend",init:function(n,i,a){},read:function(n,i,a){if(typeof e=="function"){if(e.length<3){try{var o=e(n,i);o&&typeof o.then=="function"?o.then(function(u){return a(null,u&&u.default||u)}).catch(a):a(null,o)}catch(u){a(u)}return}e(n,i,a);return}a(null,e&&e[n]&&e[n][i])}}};const{slice:k9,forEach:A9}=[];function P9(t){return A9.call(k9.call(arguments,1),e=>{if(e)for(const r in e)t[r]===void 0&&(t[r]=e[r])}),t}function N9(t){return typeof t!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(r=>r.test(t))}const mw=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,I9=function(t,e){const n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(e);let a=`${t}=${i}`;if(n.maxAge>0){const o=n.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(o)}`}if(n.domain){if(!mw.test(n.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${n.domain}`}if(n.path){if(!mw.test(n.path))throw new TypeError("option path is invalid");a+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(a+="; Partitioned"),a},yw={create(t,e,r,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+r*60*1e3)),n&&(i.domain=n),document.cookie=I9(t,encodeURIComponent(e),i)},read(t){const e=`${t}=`,r=document.cookie.split(";");for(let n=0;n<r.length;n++){let i=r[n];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(e)===0)return i.substring(e.length,i.length)}return null},remove(t){this.create(t,"",-1)}};var L9={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return yw.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:r,cookieMinutes:n,cookieDomain:i,cookieOptions:a}=e;r&&typeof document<"u"&&yw.create(r,t,n,i,a)}},M9={name:"querystring",lookup(t){var n;let{lookupQuerystring:e}=t,r;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&((n=window.location.hash)==null?void 0:n.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const o=i.substring(1).split("&");for(let u=0;u<o.length;u++){const l=o[u].indexOf("=");l>0&&o[u].substring(0,l)===e&&(r=o[u].substring(l+1))}}return r}};let Uo=null;const bw=()=>{if(Uo!==null)return Uo;try{if(Uo=typeof window<"u"&&window.localStorage!==null,!Uo)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Uo=!1}return Uo};var D9={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&bw())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:r}=e;r&&bw()&&window.localStorage.setItem(r,t)}};let zo=null;const _w=()=>{if(zo!==null)return zo;try{if(zo=typeof window<"u"&&window.sessionStorage!==null,!zo)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{zo=!1}return zo};var F9={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&_w())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:r}=e;r&&_w()&&window.sessionStorage.setItem(r,t)}},j9={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:i}=navigator;if(r)for(let a=0;a<r.length;a++)e.push(r[a]);n&&e.push(n),i&&e.push(i)}return e.length>0?e:void 0}},$9={name:"htmlTag",lookup(t){let{htmlTag:e}=t,r;const n=e||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},q9={name:"path",lookup(t){var i;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?(i=r[typeof e=="number"?e:0])==null?void 0:i.replace("/",""):void 0}},U9={name:"subdomain",lookup(t){var i,a;let{lookupFromSubdomainIndex:e}=t;const r=typeof e=="number"?e+1:1,n=typeof window<"u"&&((a=(i=window.location)==null?void 0:i.hostname)==null?void 0:a.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(n)return n[r]}};let ww=!1;try{document.cookie,ww=!0}catch{}const Ew=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];ww||Ew.splice(1,1);const z9=()=>({order:Ew,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class Sw{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,r)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=P9(r,this.options||{},z9()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(L9),this.addDetector(M9),this.addDetector(D9),this.addDetector(F9),this.addDetector(j9),this.addDetector($9),this.addDetector(q9),this.addDetector(U9)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,r=[];return e.forEach(n=>{if(this.detectors[n]){let i=this.detectors[n].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(r=r.concat(i))}}),r=r.filter(n=>n!=null&&!N9(n)).map(n=>this.options.convertDetectedLanguage(n)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(e,this.options)}))}}Sw.type="languageDetector";const nv="en",xw=[nv,"no"],iv="translation",av="i18next";function H9(t=nv,e=iv){return{returnObjects:!0,debug:!1,supportedLngs:xw,fallbackLng:nv,lng:t,fallbackNS:iv,defaultNS:iv,ns:e,interpolation:{escapeValue:!1}}}const V9=typeof window>"u",B9={order:["path","navigator","localStorage","cookie","htmlTag"],lookupQuerystring:"lng",lookupCookie:"linaroResourcesHubLang",lookupLocalStorage:"linaroResourcesHubLang",lookupSessionStorage:"linaroResourcesHubLang",lookupFromPathIndex:0,lookupFromSubdomainIndex:0,caches:["localStorage","cookie"],excludeCacheFor:["cimode"],cookieOptions:{path:"/",sameSite:"strict"}};Rr.use(Sk).use(Sw).use(R9((t,e)=>GA(Object.assign({"../../helpers/lang/en.js":()=>Promise.resolve().then(()=>oF),"../../helpers/lang/no.js":()=>Promise.resolve().then(()=>sF)}),`../../helpers/lang/${t}.js`,5))).init({...H9(),lng:void 0,detection:B9,preload:V9?xw:[]});function Ho(t,e,r){const[n,i]=T9([av]),a=Rk(e,r),{i18n:o}=a,u=n[av];{const[l,f]=q.useState(o.resolvedLanguage);q.useEffect(()=>{l!==o.resolvedLanguage&&f(o.resolvedLanguage)},[l,o.resolvedLanguage]),q.useEffect(()=>{},[t,o]),q.useEffect(()=>{u!==t&&i(av,t,{path:"/"})},[t,u,i])}return a}const Cw=()=>R.jsxs("svg",{"aria-hidden":"true",role:"status",className:"ed-inline ed-w-4 ed-h-4 ed-mr-1 ed-text-white ed-animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),R.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),_u=({Icon:t=nc,btnType:e="btn_primary",title:r="Save",disabled:n=!1,loader:i=!1,loaderText:a="loading",callBack:o=()=>{},customClass:u="",fullWidthBtn:l=!1,customPadding:f="ed-px-7 ed-h-[41px]",btnBorder:d="ed-border-light",buttonTitleStylings:h="ed-text-sm ed-font-medium",buttonWidth:p="w-[100%]",iconSize:v=20,iconPosition:m="left",loaderPosition:y="left",submitType:b=!1,noIcon:w=!1})=>{const{t:E}=Ho(),S=()=>{const _=O=>!w&&!i&&m===O||i&&y===O,T=()=>i?R.jsx(Cw,{}):!w&&R.jsx(t,{size:v});return R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2.5",children:[_("left")&&T(),R.jsx("span",{className:`whitespace-nowrap ${h}`,children:E(i?a:r)}),_("right")&&T()]})},C={btn_primary:R.jsx("button",{type:b?"submit":"button",className:`ed-flex ${u||""} ${p} ${l&&"ed-lg:w-max"} ${f||"ed-px-7 ed-h-[41px]"} ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-whitespace-nowrap ed-focus:outline-none ed-text-white disabled:ed-bg-brand disabled:ed-opacity-50 ed-bg-brand ${n?"":"btn_hover_color"}`,onClick:o,disabled:n,children:S()}),btn_secondary:R.jsx("button",{type:"button",className:`${u||""} ed-flex ${p} ed-lg:w-max px-7 ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-h-[41px] ed-text-center ed-text-white ed-bg-gray-deep disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-light ${n?"":"btn_hover_color"}`,onClick:o,disabled:n,children:S()}),btn_danger:R.jsx("button",{type:"button",className:`ed-flex ${u||""} ${p} ed-lg:w-max px-7 ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-red disabled:ed-opacity-50 ${n?"":"btn_hover_color"}`,onClick:o,disabled:n,children:S()}),btn_bordered:R.jsx("button",{type:"button",className:`${u||""} ed-flex ${f||"ed-px-7 ed-h-[41px]"} ${p} ${!l&&"lg:w-max"} ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-whitespace-nowrap ed-text-center ed-text-border-regular disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-${d||"light"}`,onClick:o,disabled:n,children:S()}),btn_bordered_danger:R.jsx("button",{type:"button",className:`ed-flex ${u||""} ${p} ${!l&&"ed-lg:w-max"} ed-px-[25px] ed-gap-2.5 ed-items-center ed-text-14 ed-font-medium ed-h-[41px] ed-text-center ed-text-red disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-red`,onClick:o,disabled:n,children:S()}),btn_success:R.jsx("button",{type:"button",className:`ed-flex ${u||""} ${p} ed-gap-2.5 ed-px-[25px] ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-green ed-hover:bg-green-600 disabled:ed-opacity-50 ${n?"":"btn_hover_color"}`,onClick:o,disabled:n,children:S()}),btn_warning:R.jsx("button",{type:"button",className:`ed-flex ed-gap-2.5 ${u||""} ${p} ed-lg:w-max px-7 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-yellow disabled:ed-opacity-50 ${n?"":"btn_hover_color"}`,onClick:o,disabled:n,children:S()}),btn_preview:R.jsxs("button",{type:"button",className:`ed-flex ed-gap-2.5 ${u||""} ${p} ed-lg:w-max ed-px-7 ed-md:px-3 ed-xl:px-7 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white disabled:ed-bg-brand disabled:ed-opacity-50 ed-bg-brand ${n?"":"btn_hover_color"}`,onClick:o,disabled:n,children:[S()," ",R.jsx("div",{className:"ed-border ed-border-l ed-border-gray ed-h-2/3 ed-flex ed-items-center ed-mx-3"})," ",R.jsx(cu,{className:"ed-w-5 ed-h-5"})]}),btn_bordered_brand:R.jsx("button",{type:"button",className:`gap-2.5 ${u}`,onClick:o,disabled:n,children:S()})};return R.jsx("div",{className:"ed-flex",children:C[e]})},W9=()=>R.jsxs("svg",{width:"240",height:"240",viewBox:"0 0 240 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsxs("g",{"clip-path":"url(#clip0_28564_181684)",children:[R.jsx("path",{d:"M240 183.523H0V183.643H240V183.523Z",fill:"#E0E0E0"}),R.jsx("path",{d:"M181.28 188.609H164.766V188.729H181.28V188.609Z",fill:"#E0E0E0"}),R.jsx("path",{d:"M53.3001 188.672H44.0078V188.792H53.3001V188.672Z",fill:"#E0E0E0"}),R.jsx("path",{d:"M120.481 188.391H101.646V188.511H120.481V188.391Z",fill:"#E0E0E0"}),R.jsx("path",{d:"M101.166 186.68H92.7461V186.8H101.166V186.68Z",fill:"#E0E0E0"}),R.jsx("path",{d:"M203.786 186.734H178.354V186.854H203.786V186.734Z",fill:"#E0E0E0"}),R.jsx("path",{d:"M23.4492 72.2422L132.875 87.9934L147.561 102.813L23.4492 72.2422Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.6",d:"M23.4492 72.2422L132.875 87.9934L147.561 102.813L23.4492 72.2422Z",fill:"white"}),R.jsx("path",{d:"M23.4492 72.2422L132.875 87.9934L127.797 109.423L23.4492 72.2422Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.2",d:"M23.4492 72.2422L132.875 87.9934L127.797 109.423L23.4492 72.2422Z",fill:"black"}),R.jsx("path",{d:"M125.55 47.4265L131.904 77.1995C132.248 78.8118 131.211 80.4126 129.598 80.7568L72.9203 92.8523C71.308 93.1964 69.7072 92.1587 69.363 90.5464L63.0093 60.7734C62.8293 59.9305 63.0275 59.0886 63.4873 58.4286C63.9088 57.8305 64.5457 57.3803 65.3152 57.2161L121.993 45.1206C122.763 44.9564 123.528 45.1072 124.157 45.4811C124.846 45.8958 125.371 46.5836 125.55 47.4265Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.4",d:"M125.55 47.4265L131.904 77.1995C132.248 78.8118 131.211 80.4126 129.598 80.7568L72.9203 92.8523C71.308 93.1964 69.7072 92.1587 69.363 90.5464L63.0093 60.7734C62.8293 59.9305 63.0275 59.0886 63.4873 58.4286C63.9088 57.8305 64.5457 57.3803 65.3152 57.2161L121.993 45.1206C122.763 44.9564 123.528 45.1072 124.157 45.4811C124.846 45.8958 125.371 46.5836 125.55 47.4265Z",fill:"black"}),R.jsx("path",{d:"M124.156 45.4815L105.217 68.7288C101.6 73.1688 95.3799 74.496 90.2655 71.9194L63.4863 58.4285C63.9078 57.8304 64.5447 57.3802 65.3142 57.216L121.992 45.1205C122.762 44.9564 123.528 45.1076 124.156 45.4815Z",fill:"#00A1E0"}),R.jsx("path",{d:"M23.4492 72.2422L113.705 93.691L127.797 109.423L23.4492 72.2422Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.6",d:"M23.4492 72.2422L113.705 93.691L127.797 109.423L23.4492 72.2422Z",fill:"white"}),R.jsx("path",{d:"M56.3718 92.937L56.1289 93.3516L66.1707 99.2349L66.4135 98.8203L56.3718 92.937Z",fill:"#00A1E0"}),R.jsx("path",{d:"M70.8483 101.414L70.6055 101.828L74.218 103.945L74.4609 103.53L70.8483 101.414Z",fill:"#00A1E0"}),R.jsx("path",{d:"M23.4492 72.25L113.705 93.6988L96.1615 114.846L23.4492 72.25Z",fill:"#00A1E0"}),R.jsx("path",{d:"M144.174 122.501C144.057 122.501 143.937 122.479 143.821 122.432L129.117 116.611C128.624 116.416 128.382 115.858 128.578 115.365C128.772 114.872 129.328 114.63 129.824 114.826L144.528 120.647C145.021 120.842 145.262 121.4 145.067 121.893C144.918 122.27 144.556 122.501 144.174 122.501Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.3",d:"M144.174 122.501C144.057 122.501 143.937 122.479 143.821 122.432L129.117 116.611C128.624 116.416 128.382 115.858 128.578 115.365C128.772 114.872 129.328 114.63 129.824 114.826L144.528 120.647C145.021 120.842 145.262 121.4 145.067 121.893C144.918 122.27 144.556 122.501 144.174 122.501Z",fill:"black"}),R.jsx("path",{d:"M143.306 114.071C143.189 114.071 143.069 114.049 142.953 114.003L135.056 110.877C134.563 110.682 134.322 110.124 134.517 109.631C134.711 109.138 135.268 108.895 135.763 109.092L143.66 112.218C144.153 112.413 144.394 112.971 144.199 113.464C144.049 113.841 143.688 114.071 143.306 114.071Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.5",d:"M143.306 114.071C143.189 114.071 143.069 114.049 142.953 114.003L135.056 110.877C134.563 110.682 134.322 110.124 134.517 109.631C134.711 109.138 135.268 108.895 135.763 109.092L143.66 112.218C144.153 112.413 144.394 112.971 144.199 113.464C144.049 113.841 143.688 114.071 143.306 114.071Z",fill:"white"}),R.jsx("path",{d:"M126.799 122.355C126.682 122.355 126.562 122.333 126.446 122.287L112.109 116.611C111.616 116.416 111.374 115.858 111.57 115.365C111.765 114.872 112.322 114.63 112.816 114.826L127.153 120.502C127.646 120.697 127.887 121.255 127.692 121.748C127.543 122.125 127.181 122.355 126.799 122.355Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.3",d:"M126.799 122.355C126.682 122.355 126.562 122.333 126.446 122.287L112.109 116.611C111.616 116.416 111.374 115.858 111.57 115.365C111.765 114.872 112.322 114.63 112.816 114.826L127.153 120.502C127.646 120.697 127.887 121.255 127.692 121.748C127.543 122.125 127.181 122.355 126.799 122.355Z",fill:"black"}),R.jsx("path",{d:"M178.705 79.125C179.976 81.6085 181.143 84.0925 182.25 86.6389C183.35 89.1853 184.394 91.7581 185.293 94.4586L185.621 95.4824C185.677 95.6644 185.762 95.9634 185.807 96.176C185.852 96.3978 185.9 96.6268 185.926 96.8298C186.053 97.666 186.075 98.4215 186.089 99.1645C186.113 100.645 186.013 102.057 185.89 103.461C185.621 106.264 185.184 108.992 184.583 111.728L181.951 111.436C181.917 108.732 181.892 106.002 181.798 103.338C181.751 102.009 181.675 100.683 181.54 99.4324C181.472 98.8112 181.372 98.2021 181.255 97.6924C181.228 97.5575 181.192 97.4548 181.161 97.3434C181.123 97.2244 181.107 97.1965 181.055 97.054L180.693 96.1463C179.69 93.7175 178.561 91.2671 177.41 88.8292L173.926 81.5173L178.705 79.125Z",fill:"#E4897B"}),R.jsx("path",{d:"M181.991 110.617L180.762 112.915L184.686 114.01C184.686 114.01 185.434 112.161 184.544 110.704L181.991 110.617Z",fill:"#E4897B"}),R.jsx("path",{d:"M179.256 116.228L182.865 116.513L184.686 114.009L180.761 112.914L179.256 116.228Z",fill:"#E4897B"}),R.jsx("path",{d:"M162.18 62.5371C162.123 62.816 161.929 63.0118 161.747 62.9749C161.565 62.9379 161.463 62.6821 161.52 62.4032C161.576 62.1243 161.77 61.9285 161.952 61.9654C162.134 62.0029 162.236 62.2587 162.18 62.5371Z",fill:"#263238"}),R.jsx("path",{d:"M161.955 63.0234C161.955 63.0234 160.994 64.5028 160.139 65.1364C160.538 65.697 161.419 65.6572 161.419 65.6572L161.955 63.0234Z",fill:"#DE5753"}),R.jsx("path",{d:"M163.515 61.2049C163.469 61.2049 163.425 61.1867 163.392 61.1511C162.892 60.6097 162.298 60.698 162.272 60.7009C162.184 60.7167 162.095 60.6543 162.08 60.5631C162.065 60.4724 162.126 60.3865 162.217 60.3711C162.248 60.3654 163.01 60.2449 163.637 60.9236C163.7 60.9913 163.696 61.0969 163.628 61.1598C163.596 61.19 163.555 61.2049 163.515 61.2049Z",fill:"#263238"}),R.jsx("path",{d:"M170.119 66.4609C169.613 69.0405 169.108 73.7675 170.913 75.4888C170.913 75.4888 170.208 78.1057 165.415 78.1057C160.144 78.1057 162.896 75.4893 162.896 75.4893C165.772 74.8024 165.698 72.6678 165.197 70.6638L170.119 66.4609Z",fill:"#E4897B"}),R.jsx("path",{d:"M171.637 77.1177C172.018 75.8534 172.437 74.4067 171.57 73.9535C170.616 73.4548 165.396 72.9465 163.596 73.8825C161.796 74.8185 162.307 77.3827 162.307 77.3827L171.637 77.1177Z",fill:"#263238"}),R.jsx("path",{d:"M182.708 196.822C182.347 196.822 181.998 196.767 181.862 196.59C181.804 196.515 181.758 196.386 181.864 196.193C181.92 196.092 182.008 196.026 182.127 195.999C182.644 195.88 183.615 196.545 183.657 196.573C183.684 196.591 183.698 196.624 183.691 196.657C183.685 196.689 183.661 196.715 183.629 196.723C183.448 196.766 183.072 196.822 182.708 196.822ZM182.268 196.15C182.231 196.15 182.197 196.153 182.165 196.161C182.094 196.178 182.043 196.215 182.011 196.273C181.935 196.41 181.98 196.469 181.995 196.488C182.145 196.686 182.866 196.689 183.392 196.6C183.088 196.413 182.588 196.15 182.268 196.15Z",fill:"#00A1E0"}),R.jsx("path",{d:"M183.61 196.721C183.596 196.721 183.582 196.718 183.57 196.711C183.205 196.513 182.499 195.741 182.574 195.348C182.587 195.276 182.64 195.153 182.84 195.128C182.966 195.114 183.089 195.148 183.195 195.236C183.605 195.57 183.689 196.588 183.693 196.631C183.696 196.661 183.681 196.691 183.655 196.707C183.641 196.717 183.625 196.721 183.61 196.721ZM182.897 195.292C182.885 195.292 182.872 195.293 182.86 195.295C182.751 195.308 182.742 195.358 182.737 195.379C182.694 195.612 183.143 196.196 183.506 196.47C183.465 196.173 183.352 195.58 183.089 195.365C183.029 195.316 182.966 195.292 182.897 195.292Z",fill:"#00A1E0"}),R.jsx("path",{d:"M161.534 196.826C161.082 196.826 160.645 196.763 160.499 196.56C160.447 196.489 160.407 196.367 160.506 196.195C160.561 196.098 160.65 196.032 160.771 195.999C161.355 195.843 162.59 196.542 162.642 196.572C162.672 196.589 162.689 196.623 162.683 196.658C162.677 196.692 162.651 196.719 162.617 196.726C162.391 196.771 161.956 196.826 161.534 196.826ZM160.975 196.141C160.917 196.141 160.863 196.148 160.814 196.161C160.737 196.182 160.684 196.22 160.65 196.277C160.591 196.381 160.613 196.432 160.634 196.462C160.793 196.682 161.683 196.694 162.345 196.603C162.018 196.435 161.388 196.141 160.975 196.141Z",fill:"#00A1E0"}),R.jsx("path",{d:"M162.599 196.721C162.588 196.721 162.576 196.718 162.565 196.714C162.14 196.523 161.297 195.761 161.361 195.361C161.376 195.268 161.442 195.151 161.672 195.128C161.842 195.112 161.998 195.159 162.135 195.271C162.584 195.64 162.678 196.589 162.682 196.63C162.685 196.659 162.672 196.688 162.648 196.705C162.633 196.716 162.617 196.721 162.599 196.721ZM161.739 195.292C161.723 195.292 161.706 195.293 161.689 195.294C161.538 195.31 161.529 195.369 161.525 195.388C161.487 195.628 162.06 196.227 162.494 196.488C162.449 196.211 162.323 195.642 162.029 195.4C161.94 195.327 161.845 195.292 161.739 195.292Z",fill:"#00A1E0"}),R.jsx("path",{d:"M166.477 196.642H162.951L162.6 188.477H166.126L166.477 196.642Z",fill:"#E4897B"}),R.jsx("path",{d:"M187.65 196.642H184.124L182.352 188.477H185.878L187.65 196.642Z",fill:"#E4897B"}),R.jsx("path",{d:"M183.872 196.234H187.834C187.978 196.234 188.103 196.335 188.134 196.475L188.831 199.61C188.903 199.935 188.647 200.242 188.314 200.237C186.931 200.213 186.259 200.131 184.517 200.131C183.445 200.131 181.237 200.243 179.757 200.243C178.309 200.243 178.083 198.779 178.689 198.647C181.406 198.053 182.43 197.233 183.3 196.451C183.457 196.31 183.662 196.234 183.872 196.234Z",fill:"#263238"}),R.jsx("path",{d:"M162.975 196.234H166.826C166.97 196.234 167.095 196.335 167.126 196.475L167.823 199.61C167.895 199.935 167.648 200.242 167.316 200.237C165.926 200.214 163.919 200.132 162.173 200.132C160.132 200.132 158.369 200.243 155.975 200.243C154.527 200.243 154.125 198.78 154.731 198.647C157.49 198.044 159.742 197.979 162.126 196.509C162.385 196.35 162.671 196.234 162.975 196.234Z",fill:"#263238"}),R.jsx("path",{d:"M161.273 81.6813C158.283 81.4476 155.409 81.0607 152.486 80.513C151.031 80.2336 149.573 79.9212 148.116 79.529C146.657 79.1378 145.196 78.6943 143.718 78.0775C143.349 77.9258 142.976 77.7554 142.604 77.5783C142.137 77.3474 141.748 77.1074 141.406 76.8799C140.713 76.422 140.12 75.9496 139.529 75.4788C138.355 74.5384 137.262 73.5612 136.184 72.5733C134.037 70.588 132 68.5332 130.039 66.3712L131.805 64.3984L138.769 69.4034C139.919 70.2324 141.079 71.0416 142.22 71.8053C142.789 72.1831 143.371 72.5416 143.9 72.8402C144.168 72.9924 144.406 73.1061 144.591 73.1791C144.876 73.2909 145.165 73.4013 145.469 73.5026C147.907 74.3157 150.663 74.838 153.401 75.2791C156.142 75.713 158.974 76.0701 161.71 76.3538L161.273 81.6813Z",fill:"#E4897B"}),R.jsx("path",{d:"M177.227 76.2875C180.531 77.0454 183.873 86.7083 183.873 86.7083L177.07 91.588C177.07 91.588 175.17 87.0875 173.3 83.1515C171.341 79.0274 173.847 75.5128 177.227 76.2875Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.4",d:"M177.227 76.2875C180.531 77.0454 183.873 86.7083 183.873 86.7083L177.07 91.588C177.07 91.588 175.17 87.0875 173.3 83.1515C171.341 79.0274 173.847 75.5128 177.227 76.2875Z",fill:"black"}),R.jsx("path",{d:"M175.32 81.5625L173.971 84.5817C175.368 87.5961 176.644 90.5817 176.985 91.3785C176.937 87.8121 176.26 83.3865 175.32 81.5625Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.6",d:"M175.32 81.5625L173.971 84.5817C175.368 87.5961 176.644 90.5817 176.985 91.3785C176.937 87.8121 176.26 83.3865 175.32 81.5625Z",fill:"black"}),R.jsx("path",{d:"M157.472 76.4562C157.472 76.4562 153.719 80.6955 157.263 106.935C162.946 106.935 173.358 106.935 176.124 106.935C176.254 104.039 174.435 89.9158 177.227 76.2742C177.227 76.2742 173.994 75.6253 170.913 75.4769C168.503 75.3608 165.014 75.284 162.895 75.4774C160.103 75.7323 157.472 76.4562 157.472 76.4562Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.4",d:"M157.472 76.4562C157.472 76.4562 153.719 80.6955 157.263 106.935C162.946 106.935 173.358 106.935 176.124 106.935C176.254 104.039 174.435 89.9158 177.227 76.2742C177.227 76.2742 173.994 75.6253 170.913 75.4769C168.503 75.3608 165.014 75.284 162.895 75.4774C160.103 75.7323 157.472 76.4562 157.472 76.4562Z",fill:"black"}),R.jsx("path",{d:"M156.078 81.5625C155.953 82.5561 155.857 83.7321 155.795 85.1193C157.355 84.6345 159.294 83.8569 161.046 82.6521L156.078 81.5625Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.6",d:"M156.078 81.5625C155.953 82.5561 155.857 83.7321 155.795 85.1193C157.355 84.6345 159.294 83.8569 161.046 82.6521L156.078 81.5625Z",fill:"black"}),R.jsx("path",{d:"M164.148 82.08C161.625 84.3158 151.986 84.0922 151.986 84.0922L151.668 74.7734C151.668 74.7734 157.133 75.5746 161.493 75.4858C166.88 75.3768 166.918 79.6262 164.148 82.08Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.4",d:"M164.148 82.08C161.625 84.3158 151.986 84.0922 151.986 84.0922L151.668 74.7734C151.668 74.7734 157.133 75.5746 161.493 75.4858C166.88 75.3768 166.918 79.6262 164.148 82.08Z",fill:"black"}),R.jsx("path",{d:"M131.889 64.443L129.469 61.6172L126.885 64.479C126.885 64.479 128.475 67.1549 131.009 66.7325L131.889 64.443Z",fill:"#E4897B"}),R.jsx("path",{d:"M126.052 58.3281L125.121 62.0155L126.886 64.486L129.469 61.6238L126.052 58.3281Z",fill:"#E4897B"}),R.jsx("path",{d:"M162.602 188.484L162.782 192.694H166.31L166.129 188.484H162.602Z",fill:"#CE6F64"}),R.jsx("path",{d:"M185.88 188.484H182.352L183.267 192.694H186.795L185.88 188.484Z",fill:"#CE6F64"}),R.jsx("path",{d:"M164.726 59.0347C161.563 57.5731 160.563 51.1929 169.663 52.7731C169.663 52.7731 168.291 54.2933 171.077 55.2533C173.863 56.2128 171.531 62.1797 164.726 59.0347Z",fill:"#263238"}),R.jsx("path",{d:"M171.597 63.8387C170.691 67.2188 170.333 69.2435 168.247 70.6494C165.109 72.7638 161.202 70.3374 161.08 66.7542C160.97 63.5291 162.47 58.5428 166.097 57.8617C169.671 57.1907 172.503 60.4585 171.597 63.8387Z",fill:"#E4897B"}),R.jsx("path",{d:"M169.537 54.4899C171.69 55.6942 174.609 56.4123 174.316 58.1197C173.958 60.2067 176.081 58.9011 175.587 62.0106C175.264 64.041 171.519 70.1936 168.883 69.8931C164.92 69.4414 165.422 63.3882 165.409 60.2072C165.401 58.3323 165.313 52.1278 169.537 54.4899Z",fill:"#263238"}),R.jsx("path",{d:"M164.932 57.1875C163.972 57.4141 162.7 62.9475 166.418 63.4544C170.699 64.0376 164.932 57.1875 164.932 57.1875Z",fill:"#263238"}),R.jsx("path",{d:"M165.031 59.153C163.855 59.2567 161.201 57.8407 161.518 55.7109C161.518 55.7109 163.209 58.2031 165.031 59.153Z",fill:"#263238"}),R.jsx("path",{d:"M166.774 63.8966C166.406 64.7361 165.709 65.3966 165.034 65.7479C164.02 66.2759 163.45 65.5036 163.679 64.4889C163.886 63.5754 164.663 62.1998 165.706 62.087C166.735 61.9756 167.195 62.9366 166.774 63.8966Z",fill:"#E4897B"}),R.jsx("path",{d:"M172.057 59.9843C172.769 59.6219 174.391 58.8001 174.833 56.4688C174.833 56.4688 176.418 60.8919 172.057 59.9843Z",fill:"#263238"}),R.jsx("path",{d:"M176.061 59.9373C175.705 59.729 174.898 59.2543 173.764 59.7108C173.764 59.7108 175.242 57.7932 176.061 59.9373Z",fill:"#263238"}),R.jsx("path",{d:"M163.955 106.945C163.955 106.945 167.957 133.893 170.154 143.989C172.56 155.045 181.623 191.872 181.623 191.872H188.082C188.082 191.872 182.105 155.937 180.733 144.992C179.243 133.112 176.125 106.945 176.125 106.945H163.955Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.5",d:"M163.955 106.945C163.955 106.945 167.957 133.893 170.154 143.989C172.56 155.045 181.623 191.872 181.623 191.872H188.082C188.082 191.872 182.105 155.937 180.733 144.992C179.243 133.112 176.125 106.945 176.125 106.945H163.955Z",fill:"white"}),R.jsx("path",{d:"M180.591 189.492C180.563 189.492 181.257 191.972 181.257 191.972H188.524L188.39 189.759L180.591 189.492Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.1",d:"M180.591 189.492C180.563 189.492 181.257 191.972 181.257 191.972H188.524L188.39 189.759L180.591 189.492Z",fill:"black"}),R.jsx("path",{d:"M166.483 116.544C171.11 117.451 170.621 134.707 170.064 143.582C168.729 137.309 166.776 125.237 165.441 116.669C165.749 116.515 166.094 116.467 166.483 116.544Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.4",d:"M166.483 116.544C171.11 117.451 170.621 134.707 170.064 143.582C168.729 137.309 166.776 125.237 165.441 116.669C165.749 116.515 166.094 116.467 166.483 116.544Z",fill:"white"}),R.jsx("path",{d:"M157.265 106.945C157.265 106.945 156.78 133.31 157.163 144.064C157.562 155.249 161.469 191.872 161.469 191.872H167.442C167.442 191.872 167.662 155.902 167.927 144.918C168.217 132.942 169.663 106.946 169.663 106.946H157.265V106.945Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.5",d:"M157.265 106.945C157.265 106.945 156.78 133.31 157.163 144.064C157.562 155.249 161.469 191.872 161.469 191.872H167.442C167.442 191.872 167.662 155.902 167.927 144.918C168.217 132.942 169.663 106.946 169.663 106.946H157.265V106.945Z",fill:"white"}),R.jsx("path",{d:"M162.712 187.581C162.682 187.581 162.656 187.558 162.653 187.528C161.6 177.391 159.117 152.865 158.803 144.066C158.482 135.085 158.773 114.935 158.87 108.973C158.871 108.94 158.898 108.914 158.93 108.914H158.931C158.964 108.915 158.991 108.942 158.99 108.975C158.893 114.936 158.602 135.084 158.923 144.062C159.236 152.857 161.719 177.38 162.772 187.515C162.776 187.548 162.752 187.577 162.718 187.581C162.716 187.581 162.714 187.581 162.712 187.581Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.4",d:"M162.712 187.581C162.682 187.581 162.656 187.558 162.653 187.528C161.6 177.391 159.117 152.865 158.803 144.066C158.482 135.085 158.773 114.935 158.87 108.973C158.871 108.94 158.898 108.914 158.93 108.914H158.931C158.964 108.915 158.991 108.942 158.99 108.975C158.893 114.936 158.602 135.084 158.923 144.062C159.236 152.857 161.719 177.38 162.772 187.515C162.776 187.548 162.752 187.577 162.718 187.581C162.716 187.581 162.714 187.581 162.712 187.581Z",fill:"white"}),R.jsx("path",{d:"M160.318 189.492C160.291 189.492 160.655 191.972 160.655 191.972H167.922L168.118 189.759L160.318 189.492Z",fill:"#00A1E0"}),R.jsx("path",{opacity:"0.1",d:"M160.318 189.492C160.291 189.492 160.655 191.972 160.655 191.972H167.922L168.118 189.759L160.318 189.492Z",fill:"black"})]}),R.jsx("defs",{children:R.jsx("clipPath",{id:"clip0_28564_181684",children:R.jsx("rect",{width:"240",height:"240",fill:"white"})})})]}),Tw=({value:t,onChange:e,placeholder:r="Type something...",className:n="",rows:i=4,disabled:a=!1,label:o,isRequired:u=!1,stylings:{wrapperRounded:l="ed-rounded-md",wrapperPadding:f="ed-py-2.5 ed-px-4",placeholderStyle:d="ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border-regular",labelCustomClass:h=""}={},name:p="",...v})=>R.jsxs("div",{children:[o&&R.jsxs("label",{className:`ed-text-14 ed-font-semibold ed-text-border-dark ed-mb-1 ed-inline-block ${h}`,children:[o," ",u&&R.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),R.jsx("textarea",{value:t,onChange:e,placeholder:r,rows:i,name:p,disabled:a,className:`ed-w-full ed-border ed-border-border-light ed-focus:outline-none ed-resize-none ed-transition ed-duration-200 ${f} ${l} ${d}`,...v})]});var ov={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_FILE_UPLOADING_URL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FileUploadingPolicyInputDataType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getFileUploadingURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:140}};ov.loc.source={body:`query GET_FILE_UPLOADING_URL($queryData: FileUploadingPolicyInputDataType!) {
|
|
124
|
+
getFileUploadingURL(queryData: $queryData) {
|
|
125
|
+
key
|
|
126
|
+
url
|
|
127
|
+
}
|
|
128
|
+
}`,name:"GraphQL request",locationOffset:{line:1,column:1}};function vc(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){vc(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){vc(n,e)}),t.definitions&&t.definitions.forEach(function(n){vc(n,e)})}var sv={};(function(){ov.definitions.forEach(function(e){if(e.name){var r=new Set;vc(e,r),sv[e.name.value]=r}})})();function Ow(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function G9(t,e){var r={kind:t.kind,definitions:[Ow(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=sv[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=sv[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=Ow(t,u);l&&r.definitions.push(l)}),r}const Q9=G9(ov,"GET_FILE_UPLOADING_URL"),uv=async(t={})=>{var r;const e=cp(zh());try{const n=await e.query({query:Q9,variables:{queryData:t}});return(r=n==null?void 0:n.data)==null?void 0:r.getFileUploadingURL}catch{return null}},lv=async({key:t,url:e},r)=>{try{const n=await Yt.put(e,r);return n&&(n.status===204||n.status===200)?{key:t,success:!0}:{error:!0,success:!1}}catch{return{error:!0,success:!1}}},Vo=({label:t,isRequired:e=!1,placeholder:r,value:n="",type:i="text",onChange:a=()=>{},stylings:{wrapperRounded:o="ed-rounded-md",wrapperPadding:u="ed-py-2.5 ed-px-4",placeholderStyle:l="ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border-regular",labelCustomClass:f=""}={},name:d=""})=>R.jsxs("div",{children:[t&&R.jsxs("label",{className:`ed-text-14 font-semibold ed-text-border-dark ed-mb-1 ed-inline-block ${f}`,children:[t," ",e&&R.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),R.jsx("input",{type:i,className:`ed-w-full ed-border ed-border-border-light ${u} ${o} ${l}`,placeholder:r,onChange:a,value:n,name:d})]}),Rw=()=>R.jsxs("div",{className:"ed-flex ed-justify-start ed-items-center ed-space-x-2",children:[R.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full ed-animate-bounce"}),R.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full ed-animate-bounce ed-delay-75"}),R.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full aed-nimate-bounce ed-delay-150"})]});var cv={},gc={},kw;function Ci(){if(kw)return gc;kw=1,gc._=gc._interop_require_default=t;function t(e){return e&&e.__esModule?e:{default:e}}return gc}var fv={},dv={},Aw;function hv(){return Aw||(Aw=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return e}});let e=r=>{};{const r=new Set;e=n=>{r.has(n)||console.warn(n),r.add(n)}}}(dv)),dv}var pv={},Pw;function Y9(){return Pw||(Pw=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return e}});function e(r){let{widthInt:n,heightInt:i,blurWidth:a,blurHeight:o,blurDataURL:u,objectFit:l}=r;const f=20,d=a?a*40:n,h=o?o*40:i,p=d&&h?"viewBox='0 0 "+d+" "+h+"'":"",v=p?"none":l==="contain"?"xMidYMid":l==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+p+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+f+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+f+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+v+"' style='filter: url(%23b);' href='"+u+"'/%3E%3C/svg%3E"}}(pv)),pv}var vv={},Nw;function gv(){return Nw||(Nw=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(i,a){for(var o in a)Object.defineProperty(i,o,{enumerable:!0,get:a[o]})}e(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}}(vv)),vv}var Iw;function Lw(){return Iw||(Iw=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return v}});const e=hv(),r=Y9(),n=gv(),i=["lazy","eager",void 0];function a(m){return m.default!==void 0}function o(m){return m.src!==void 0}function u(m){return typeof m=="object"&&(a(m)||o(m))}const l=new Map;let f;function d(m){return typeof m>"u"?m:typeof m=="number"?Number.isFinite(m)?m:NaN:typeof m=="string"&&/^[0-9]+$/.test(m)?parseInt(m,10):NaN}function h(m,y,b){let{deviceSizes:w,allSizes:E}=m;if(b){const C=/(^|\s)(1?\d?\d)vw/g,_=[];for(let T;T=C.exec(b);T)_.push(parseInt(T[2]));if(_.length){const T=Math.min(..._)*.01;return{widths:E.filter(O=>O>=w[0]*T),kind:"w"}}return{widths:E,kind:"w"}}return typeof y!="number"?{widths:w,kind:"w"}:{widths:[...new Set([y,y*2].map(C=>E.find(_=>_>=C)||E[E.length-1]))],kind:"x"}}function p(m){let{config:y,src:b,unoptimized:w,width:E,quality:S,sizes:C,loader:_}=m;if(w)return{src:b,srcSet:void 0,sizes:void 0};const{widths:T,kind:O}=h(y,E,C),k=T.length-1;return{sizes:!C&&O==="w"?"100vw":C,srcSet:T.map((P,N)=>_({config:y,src:b,quality:S,width:P})+" "+(O==="w"?P:N+1)+O).join(", "),src:_({config:y,src:b,quality:S,width:T[k]})}}function v(m,y){let{src:b,sizes:w,unoptimized:E=!1,priority:S=!1,loading:C,className:_,quality:T,width:O,height:k,fill:P=!1,style:N,overrideSrc:M,onLoad:z,onLoadingComplete:H,placeholder:L="empty",blurDataURL:F,fetchPriority:U,decoding:Y="async",layout:V,objectFit:K,objectPosition:$,lazyBoundary:Q,lazyRoot:ae,...ie}=m;const{imgConf:te,showAltText:fe,blurComplete:ue,defaultLoader:W}=y;let de,ye=te||n.imageConfigDefault;if("allSizes"in ye)de=ye;else{var Se;const Ce=[...ye.deviceSizes,...ye.imageSizes].sort((Oe,Me)=>Oe-Me),he=ye.deviceSizes.sort((Oe,Me)=>Oe-Me),Ne=(Se=ye.qualities)==null?void 0:Se.sort((Oe,Me)=>Oe-Me);de={...ye,allSizes:Ce,deviceSizes:he,qualities:Ne}}if(typeof W>"u")throw new Error(`images.loaderFile detected but the file is missing default export.
|
|
129
|
+
Read more: https://nextjs.org/docs/messages/invalid-images-config`);let J=ie.loader||W;delete ie.loader,delete ie.srcSet;const j="__next_img_default"in J;if(j){if(de.loader==="custom")throw new Error('Image with src "'+b+`" is missing "loader" prop.
|
|
130
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const Ce=J;J=he=>{const{config:Ne,...Oe}=he;return Ce(Oe)}}if(V){V==="fill"&&(P=!0);const Ce={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},he={responsive:"100vw",fill:"100vw"},Ne=Ce[V];Ne&&(N={...N,...Ne});const Oe=he[V];Oe&&!w&&(w=Oe)}let Re="",oe=d(O),xe=d(k),Fe,He;if(u(b)){const Ce=a(b)?b.default:b;if(!Ce.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(Ce));if(!Ce.height||!Ce.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(Ce));if(Fe=Ce.blurWidth,He=Ce.blurHeight,F=F||Ce.blurDataURL,Re=Ce.src,!P){if(!oe&&!xe)oe=Ce.width,xe=Ce.height;else if(oe&&!xe){const he=oe/Ce.width;xe=Math.round(Ce.height*he)}else if(!oe&&xe){const he=xe/Ce.height;oe=Math.round(Ce.width*he)}}}b=typeof b=="string"?b:Re;let Ye=!S&&(C==="lazy"||typeof C>"u");(!b||b.startsWith("data:")||b.startsWith("blob:"))&&(E=!0,Ye=!1),de.unoptimized&&(E=!0),j&&b.endsWith(".svg")&&!de.dangerouslyAllowSVG&&(E=!0),S&&(U="high");const Xe=d(T);{if(de.output==="export"&&j&&!E)throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");if(!b)E=!0;else if(P){if(O)throw new Error('Image with src "'+b+'" has both "width" and "fill" properties. Only one should be used.');if(k)throw new Error('Image with src "'+b+'" has both "height" and "fill" properties. Only one should be used.');if(N!=null&&N.position&&N.position!=="absolute")throw new Error('Image with src "'+b+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(N!=null&&N.width&&N.width!=="100%")throw new Error('Image with src "'+b+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(N!=null&&N.height&&N.height!=="100%")throw new Error('Image with src "'+b+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof oe>"u")throw new Error('Image with src "'+b+'" is missing required "width" property.');if(isNaN(oe))throw new Error('Image with src "'+b+'" has invalid "width" property. Expected a numeric value in pixels but received "'+O+'".');if(typeof xe>"u")throw new Error('Image with src "'+b+'" is missing required "height" property.');if(isNaN(xe))throw new Error('Image with src "'+b+'" has invalid "height" property. Expected a numeric value in pixels but received "'+k+'".')}if(!i.includes(C))throw new Error('Image with src "'+b+'" has invalid "loading" property. Provided "'+C+'" should be one of '+i.map(String).join(",")+".");if(S&&C==="lazy")throw new Error('Image with src "'+b+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(L!=="empty"&&L!=="blur"&&!L.startsWith("data:image/"))throw new Error('Image with src "'+b+'" has invalid "placeholder" property "'+L+'".');if(L!=="empty"&&oe&&xe&&oe*xe<1600&&(0,e.warnOnce)('Image with src "'+b+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),L==="blur"&&!F){const Ce=["jpeg","png","webp","avif"];throw new Error('Image with src "'+b+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
131
|
+
Possible solutions:
|
|
132
|
+
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
133
|
+
- Change the "src" property to a static import with one of the supported file types: `+Ce.join(",")+` (animated images not supported)
|
|
134
|
+
- Remove the "placeholder" property, effectively no blur effect
|
|
135
|
+
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in ie&&(0,e.warnOnce)('Image with src "'+b+'" is using unsupported "ref" property. Consider using the "onLoad" property instead.'),!E&&!j){const Ce=J({config:de,src:b,width:oe||400,quality:Xe||75});let he;try{he=new URL(Ce)}catch{}(Ce===b||he&&he.pathname===b&&!he.search)&&(0,e.warnOnce)('Image with src "'+b+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
|
|
136
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}H&&(0,e.warnOnce)('Image with src "'+b+'" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');for(const[Ce,he]of Object.entries({layout:V,objectFit:K,objectPosition:$,lazyBoundary:Q,lazyRoot:ae}))he&&(0,e.warnOnce)('Image with src "'+b+'" has legacy prop "'+Ce+`". Did you forget to run the codemod?
|
|
137
|
+
Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!f&&window.PerformanceObserver){f=new PerformanceObserver(Ce=>{for(const Ne of Ce.getEntries()){var he;const Oe=(Ne==null||(he=Ne.element)==null?void 0:he.src)||"",Me=l.get(Oe);Me&&!Me.priority&&Me.placeholder==="empty"&&!Me.src.startsWith("data:")&&!Me.src.startsWith("blob:")&&(0,e.warnOnce)('Image with src "'+Me.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
|
|
138
|
+
Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{f.observe({type:"largest-contentful-paint",buffered:!0})}catch(Ce){console.error(Ce)}}}const ht=Object.assign(P?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:K,objectPosition:$}:{},fe?{}:{color:"transparent"},N),je=!ue&&L!=="empty"?L==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:oe,heightInt:xe,blurWidth:Fe,blurHeight:He,blurDataURL:F||"",objectFit:ht.objectFit})+'")':'url("'+L+'")':null;let Te=je?{backgroundSize:ht.objectFit||"cover",backgroundPosition:ht.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:je}:{};const we=p({config:de,src:b,unoptimized:E,width:oe,quality:Xe,sizes:w,loader:J});if(typeof window<"u"){let Ce;try{Ce=new URL(we.src)}catch{Ce=new URL(we.src,window.location.href)}l.set(Ce.href,{src:b,priority:S,placeholder:L})}return{props:{...ie,loading:Ye?"lazy":C,fetchPriority:U,width:oe,height:xe,decoding:Y,className:_,style:{...ht,...Te},sizes:we.sizes,srcSet:we.srcSet,src:M||we.src},meta:{unoptimized:E,priority:S,placeholder:L,fill:P}}}}(fv)),fv}var mc={exports:{}},yc={},Mw;function mv(){if(Mw)return yc;Mw=1;function t(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,i=new WeakMap;return(t=function(a){return a?i:n})(r)}yc._=yc._interop_require_wildcard=e;function e(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var i=t(n);if(i&&i.has(r))return i.get(r);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in r)if(u!=="default"&&Object.prototype.hasOwnProperty.call(r,u)){var l=o?Object.getOwnPropertyDescriptor(r,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=r[u]}return a.default=r,i&&i.set(r,a),a}return yc}var bc={exports:{}},yv={},Dw;function K9(){return Dw||(Dw=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});const e=q,r=typeof window>"u",n=r?()=>{}:e.useLayoutEffect,i=r?()=>{}:e.useEffect;function a(o){const{headManager:u,reduceComponentsToState:l}=o;function f(){if(u&&u.mountedInstances){const h=e.Children.toArray(Array.from(u.mountedInstances).filter(Boolean));u.updateHead(l(h,o))}}if(r){var d;u==null||(d=u.mountedInstances)==null||d.add(o.children),f()}return n(()=>{var h;return u==null||(h=u.mountedInstances)==null||h.add(o.children),()=>{var p;u==null||(p=u.mountedInstances)==null||p.delete(o.children)}}),n(()=>(u&&(u._pendingUpdate=f),()=>{u&&(u._pendingUpdate=f)})),i(()=>(u&&u._pendingUpdate&&(u._pendingUpdate(),u._pendingUpdate=null),()=>{u&&u._pendingUpdate&&(u._pendingUpdate(),u._pendingUpdate=null)})),null}}(yv)),yv}var bv={},Fw;function X9(){return Fw||(Fw=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Ci()._(q).default.createContext({});n.displayName="AmpStateContext"}(bv)),bv}var _v={},jw;function Z9(){return jw||(jw=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Ci()._(q).default.createContext({});n.displayName="HeadManagerContext"}(_v)),_v}var wv={},$w;function J9(){return $w||($w=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return e}});function e(r){let{ampFirst:n=!1,hybrid:i=!1,hasQuery:a=!1}=r===void 0?{}:r;return n||i&&a}}(wv)),wv}var qw;function e7(){return qw||(qw=1,function(t,e){"use client";var r={};Object.defineProperty(e,"__esModule",{value:!0});function n(S,C){for(var _ in C)Object.defineProperty(S,_,{enumerable:!0,get:C[_]})}n(e,{default:function(){return E},defaultHead:function(){return p}});const i=Ci(),a=mv(),o=ll(),u=a._(q),l=i._(K9()),f=X9(),d=Z9(),h=J9();hv();function p(S){S===void 0&&(S=!1);const C=[(0,o.jsx)("meta",{charSet:"utf-8"})];return S||C.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"})),C}function v(S,C){return typeof C=="string"||typeof C=="number"?S:C.type===u.default.Fragment?S.concat(u.default.Children.toArray(C.props.children).reduce((_,T)=>typeof T=="string"||typeof T=="number"?_:_.concat(T),[])):S.concat(C)}const m=["name","httpEquiv","charSet","itemProp"];function y(){const S=new Set,C=new Set,_=new Set,T={};return O=>{let k=!0,P=!1;if(O.key&&typeof O.key!="number"&&O.key.indexOf("$")>0){P=!0;const N=O.key.slice(O.key.indexOf("$")+1);S.has(N)?k=!1:S.add(N)}switch(O.type){case"title":case"base":C.has(O.type)?k=!1:C.add(O.type);break;case"meta":for(let N=0,M=m.length;N<M;N++){const z=m[N];if(O.props.hasOwnProperty(z))if(z==="charSet")_.has(z)?k=!1:_.add(z);else{const H=O.props[z],L=T[z]||new Set;(z!=="name"||!P)&&L.has(H)?k=!1:(L.add(H),T[z]=L)}}break}return k}}function b(S,C){const{inAmpMode:_}=C;return S.reduce(v,[]).reverse().concat(p(_).reverse()).filter(y()).reverse().map((T,O)=>{const k=T.key||O;if(r.__NEXT_OPTIMIZE_FONTS&&!_&&T.type==="link"&&T.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(P=>T.props.href.startsWith(P))){const P={...T.props||{}};return P["data-href"]=P.href,P.href=void 0,P["data-optimized-fonts"]=!0,u.default.cloneElement(T,P)}return u.default.cloneElement(T,{key:k})})}function w(S){let{children:C}=S;const _=(0,u.useContext)(f.AmpStateContext),T=(0,u.useContext)(d.HeadManagerContext);return(0,o.jsx)(l.default,{reduceComponentsToState:b,headManager:T,inAmpMode:(0,h.isInAmpMode)(_),children:C})}const E=w;(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(bc,bc.exports)),bc.exports}var Ev={},Uw;function t7(){return Uw||(Uw=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return i}});const r=Ci()._(q),n=gv(),i=r.default.createContext(n.imageConfigDefault);i.displayName="ImageConfigContext"}(Ev)),Ev}var Sv={},zw;function Hw(){return zw||(zw=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Ci()._(q).default.createContext(null);n.displayName="RouterContext"}(Sv)),Sv}var xv={},Cv={},Tv={exports:{}},Vw;function Bw(){return Vw||(Vw=1,(()=>{var t={170:(i,a,o)=>{const u=o(510),l=()=>{if(typeof navigator<"u"&&navigator.platform){const d=navigator.platform.toLowerCase();return d==="win32"||d==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};function f(d,h,p=!1){return h&&(h.windows===null||h.windows===void 0)&&(h={...h,windows:l()}),u(d,h,p)}Object.assign(f,u),i.exports=f},154:i=>{const a="\\\\/",o=`[^${a}]`,u="\\.",l="\\+",f="\\?",d="\\/",h="(?=.)",p="[^/]",v=`(?:${d}|$)`,m=`(?:^|${d})`,y=`${u}{1,2}${v}`,b=`(?!${u})`,w=`(?!${m}${y})`,E=`(?!${u}{0,1}${v})`,S=`(?!${y})`,C=`[^.${d}]`,_=`${p}*?`,O={DOT_LITERAL:u,PLUS_LITERAL:l,QMARK_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:h,QMARK:p,END_ANCHOR:v,DOTS_SLASH:y,NO_DOT:b,NO_DOTS:w,NO_DOT_SLASH:E,NO_DOTS_SLASH:S,QMARK_NO_DOT:C,STAR:_,START_ANCHOR:m,SEP:"/"},k={...O,SLASH_LITERAL:`[${a}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${u}{1,2}(?:[${a}]|$)`,NO_DOT:`(?!${u})`,NO_DOTS:`(?!(?:^|[${a}])${u}{1,2}(?:[${a}]|$))`,NO_DOT_SLASH:`(?!${u}{0,1}(?:[${a}]|$))`,NO_DOTS_SLASH:`(?!${u}{1,2}(?:[${a}]|$))`,QMARK_NO_DOT:`[^.${a}]`,START_ANCHOR:`(?:^|[${a}])`,END_ANCHOR:`(?:[${a}]|$)`,SEP:"\\"},P={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};i.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:P,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(N){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${N.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(N){return N===!0?k:O}}},697:(i,a,o)=>{const u=o(154),l=o(96),{MAX_LENGTH:f,POSIX_REGEX_SOURCE:d,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:p,REPLACEMENTS:v}=u,m=(w,E)=>{if(typeof E.expandRange=="function")return E.expandRange(...w,E);w.sort();const S=`[${w.join("-")}]`;try{new RegExp(S)}catch{return w.map(_=>l.escapeRegex(_)).join("..")}return S},y=(w,E)=>`Missing ${w}: "${E}" - use "\\\\${E}" to match literal characters`,b=(w,E)=>{if(typeof w!="string")throw new TypeError("Expected a string");w=v[w]||w;const S={...E},C=typeof S.maxLength=="number"?Math.min(f,S.maxLength):f;let _=w.length;if(_>C)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${C}`);const T={type:"bos",value:"",output:S.prepend||""},O=[T],k=S.capture?"":"?:",P=u.globChars(S.windows),N=u.extglobChars(P),{DOT_LITERAL:M,PLUS_LITERAL:z,SLASH_LITERAL:H,ONE_CHAR:L,DOTS_SLASH:F,NO_DOT:U,NO_DOT_SLASH:Y,NO_DOTS_SLASH:V,QMARK:K,QMARK_NO_DOT:$,STAR:Q,START_ANCHOR:ae}=P,ie=_e=>`(${k}(?:(?!${ae}${_e.dot?F:M}).)*?)`,te=S.dot?"":U,fe=S.dot?K:$;let ue=S.bash===!0?ie(S):Q;S.capture&&(ue=`(${ue})`),typeof S.noext=="boolean"&&(S.noextglob=S.noext);const W={input:w,index:-1,start:0,dot:S.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:O};w=l.removePrefix(w,W),_=w.length;const de=[],ye=[],Se=[];let J=T,j;const Re=()=>W.index===_-1,oe=W.peek=(_e=1)=>w[W.index+_e],xe=W.advance=()=>w[++W.index]||"",Fe=()=>w.slice(W.index+1),He=(_e="",Ce=0)=>{W.consumed+=_e,W.index+=Ce},Ye=_e=>{W.output+=_e.output!=null?_e.output:_e.value,He(_e.value)},Xe=()=>{let _e=1;for(;oe()==="!"&&(oe(2)!=="("||oe(3)==="?");)xe(),W.start++,_e++;return _e%2===0?!1:(W.negated=!0,W.start++,!0)},ht=_e=>{W[_e]++,Se.push(_e)},je=_e=>{W[_e]--,Se.pop()},Te=_e=>{if(J.type==="globstar"){const Ce=W.braces>0&&(_e.type==="comma"||_e.type==="brace"),he=_e.extglob===!0||de.length&&(_e.type==="pipe"||_e.type==="paren");_e.type!=="slash"&&_e.type!=="paren"&&!Ce&&!he&&(W.output=W.output.slice(0,-J.output.length),J.type="star",J.value="*",J.output=ue,W.output+=J.output)}if(de.length&&_e.type!=="paren"&&(de[de.length-1].inner+=_e.value),(_e.value||_e.output)&&Ye(_e),J&&J.type==="text"&&_e.type==="text"){J.output=(J.output||J.value)+_e.value,J.value+=_e.value;return}_e.prev=J,O.push(_e),J=_e},we=(_e,Ce)=>{const he={...N[Ce],conditions:1,inner:""};he.prev=J,he.parens=W.parens,he.output=W.output;const Ne=(S.capture?"(":"")+he.open;ht("parens"),Te({type:_e,value:Ce,output:W.output?"":L}),Te({type:"paren",extglob:!0,value:xe(),output:Ne}),de.push(he)},ot=_e=>{let Ce=_e.close+(S.capture?")":""),he;if(_e.type==="negate"){let Ne=ue;if(_e.inner&&_e.inner.length>1&&_e.inner.includes("/")&&(Ne=ie(S)),(Ne!==ue||Re()||/^\)+$/.test(Fe()))&&(Ce=_e.close=`)$))${Ne}`),_e.inner.includes("*")&&(he=Fe())&&/^\.[^\\/.]+$/.test(he)){const Oe=b(he,{...E,fastpaths:!1}).output;Ce=_e.close=`)${Oe})${Ne})`}_e.prev.type==="bos"&&(W.negatedExtglob=!0)}Te({type:"paren",extglob:!0,value:j,output:Ce}),je("parens")};if(S.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(w)){let _e=!1,Ce=w.replace(p,(he,Ne,Oe,Me,et,It)=>Me==="\\"?(_e=!0,he):Me==="?"?Ne?Ne+Me+(et?K.repeat(et.length):""):It===0?fe+(et?K.repeat(et.length):""):K.repeat(Oe.length):Me==="."?M.repeat(Oe.length):Me==="*"?Ne?Ne+Me+(et?ue:""):ue:Ne?he:`\\${he}`);return _e===!0&&(S.unescape===!0?Ce=Ce.replace(/\\/g,""):Ce=Ce.replace(/\\+/g,he=>he.length%2===0?"\\\\":he?"\\":"")),Ce===w&&S.contains===!0?(W.output=w,W):(W.output=l.wrapOutput(Ce,W,E),W)}for(;!Re();){if(j=xe(),j==="\0")continue;if(j==="\\"){const he=oe();if(he==="/"&&S.bash!==!0||he==="."||he===";")continue;if(!he){j+="\\",Te({type:"text",value:j});continue}const Ne=/^\\+/.exec(Fe());let Oe=0;if(Ne&&Ne[0].length>2&&(Oe=Ne[0].length,W.index+=Oe,Oe%2!==0&&(j+="\\")),S.unescape===!0?j=xe():j+=xe(),W.brackets===0){Te({type:"text",value:j});continue}}if(W.brackets>0&&(j!=="]"||J.value==="["||J.value==="[^")){if(S.posix!==!1&&j===":"){const he=J.value.slice(1);if(he.includes("[")&&(J.posix=!0,he.includes(":"))){const Ne=J.value.lastIndexOf("["),Oe=J.value.slice(0,Ne),Me=J.value.slice(Ne+2),et=d[Me];if(et){J.value=Oe+et,W.backtrack=!0,xe(),!T.output&&O.indexOf(J)===1&&(T.output=L);continue}}}(j==="["&&oe()!==":"||j==="-"&&oe()==="]")&&(j=`\\${j}`),j==="]"&&(J.value==="["||J.value==="[^")&&(j=`\\${j}`),S.posix===!0&&j==="!"&&J.value==="["&&(j="^"),J.value+=j,Ye({value:j});continue}if(W.quotes===1&&j!=='"'){j=l.escapeRegex(j),J.value+=j,Ye({value:j});continue}if(j==='"'){W.quotes=W.quotes===1?0:1,S.keepQuotes===!0&&Te({type:"text",value:j});continue}if(j==="("){ht("parens"),Te({type:"paren",value:j});continue}if(j===")"){if(W.parens===0&&S.strictBrackets===!0)throw new SyntaxError(y("opening","("));const he=de[de.length-1];if(he&&W.parens===he.parens+1){ot(de.pop());continue}Te({type:"paren",value:j,output:W.parens?")":"\\)"}),je("parens");continue}if(j==="["){if(S.nobracket===!0||!Fe().includes("]")){if(S.nobracket!==!0&&S.strictBrackets===!0)throw new SyntaxError(y("closing","]"));j=`\\${j}`}else ht("brackets");Te({type:"bracket",value:j});continue}if(j==="]"){if(S.nobracket===!0||J&&J.type==="bracket"&&J.value.length===1){Te({type:"text",value:j,output:`\\${j}`});continue}if(W.brackets===0){if(S.strictBrackets===!0)throw new SyntaxError(y("opening","["));Te({type:"text",value:j,output:`\\${j}`});continue}je("brackets");const he=J.value.slice(1);if(J.posix!==!0&&he[0]==="^"&&!he.includes("/")&&(j=`/${j}`),J.value+=j,Ye({value:j}),S.literalBrackets===!1||l.hasRegexChars(he))continue;const Ne=l.escapeRegex(J.value);if(W.output=W.output.slice(0,-J.value.length),S.literalBrackets===!0){W.output+=Ne,J.value=Ne;continue}J.value=`(${k}${Ne}|${J.value})`,W.output+=J.value;continue}if(j==="{"&&S.nobrace!==!0){ht("braces");const he={type:"brace",value:j,output:"(",outputIndex:W.output.length,tokensIndex:W.tokens.length};ye.push(he),Te(he);continue}if(j==="}"){const he=ye[ye.length-1];if(S.nobrace===!0||!he){Te({type:"text",value:j,output:j});continue}let Ne=")";if(he.dots===!0){const Oe=O.slice(),Me=[];for(let et=Oe.length-1;et>=0&&(O.pop(),Oe[et].type!=="brace");et--)Oe[et].type!=="dots"&&Me.unshift(Oe[et].value);Ne=m(Me,S),W.backtrack=!0}if(he.comma!==!0&&he.dots!==!0){const Oe=W.output.slice(0,he.outputIndex),Me=W.tokens.slice(he.tokensIndex);he.value=he.output="\\{",j=Ne="\\}",W.output=Oe;for(const et of Me)W.output+=et.output||et.value}Te({type:"brace",value:j,output:Ne}),je("braces"),ye.pop();continue}if(j==="|"){de.length>0&&de[de.length-1].conditions++,Te({type:"text",value:j});continue}if(j===","){let he=j;const Ne=ye[ye.length-1];Ne&&Se[Se.length-1]==="braces"&&(Ne.comma=!0,he="|"),Te({type:"comma",value:j,output:he});continue}if(j==="/"){if(J.type==="dot"&&W.index===W.start+1){W.start=W.index+1,W.consumed="",W.output="",O.pop(),J=T;continue}Te({type:"slash",value:j,output:H});continue}if(j==="."){if(W.braces>0&&J.type==="dot"){J.value==="."&&(J.output=M);const he=ye[ye.length-1];J.type="dots",J.output+=j,J.value+=j,he.dots=!0;continue}if(W.braces+W.parens===0&&J.type!=="bos"&&J.type!=="slash"){Te({type:"text",value:j,output:M});continue}Te({type:"dot",value:j,output:M});continue}if(j==="?"){if(!(J&&J.value==="(")&&S.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){we("qmark",j);continue}if(J&&J.type==="paren"){const Ne=oe();let Oe=j;(J.value==="("&&!/[!=<:]/.test(Ne)||Ne==="<"&&!/<([!=]|\w+>)/.test(Fe()))&&(Oe=`\\${j}`),Te({type:"text",value:j,output:Oe});continue}if(S.dot!==!0&&(J.type==="slash"||J.type==="bos")){Te({type:"qmark",value:j,output:$});continue}Te({type:"qmark",value:j,output:K});continue}if(j==="!"){if(S.noextglob!==!0&&oe()==="("&&(oe(2)!=="?"||!/[!=<:]/.test(oe(3)))){we("negate",j);continue}if(S.nonegate!==!0&&W.index===0){Xe();continue}}if(j==="+"){if(S.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){we("plus",j);continue}if(J&&J.value==="("||S.regex===!1){Te({type:"plus",value:j,output:z});continue}if(J&&(J.type==="bracket"||J.type==="paren"||J.type==="brace")||W.parens>0){Te({type:"plus",value:j});continue}Te({type:"plus",value:z});continue}if(j==="@"){if(S.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){Te({type:"at",extglob:!0,value:j,output:""});continue}Te({type:"text",value:j});continue}if(j!=="*"){(j==="$"||j==="^")&&(j=`\\${j}`);const he=h.exec(Fe());he&&(j+=he[0],W.index+=he[0].length),Te({type:"text",value:j});continue}if(J&&(J.type==="globstar"||J.star===!0)){J.type="star",J.star=!0,J.value+=j,J.output=ue,W.backtrack=!0,W.globstar=!0,He(j);continue}let _e=Fe();if(S.noextglob!==!0&&/^\([^?]/.test(_e)){we("star",j);continue}if(J.type==="star"){if(S.noglobstar===!0){He(j);continue}const he=J.prev,Ne=he.prev,Oe=he.type==="slash"||he.type==="bos",Me=Ne&&(Ne.type==="star"||Ne.type==="globstar");if(S.bash===!0&&(!Oe||_e[0]&&_e[0]!=="/")){Te({type:"star",value:j,output:""});continue}const et=W.braces>0&&(he.type==="comma"||he.type==="brace"),It=de.length&&(he.type==="pipe"||he.type==="paren");if(!Oe&&he.type!=="paren"&&!et&&!It){Te({type:"star",value:j,output:""});continue}for(;_e.slice(0,3)==="/**";){const Jt=w[W.index+4];if(Jt&&Jt!=="/")break;_e=_e.slice(3),He("/**",3)}if(he.type==="bos"&&Re()){J.type="globstar",J.value+=j,J.output=ie(S),W.output=J.output,W.globstar=!0,He(j);continue}if(he.type==="slash"&&he.prev.type!=="bos"&&!Me&&Re()){W.output=W.output.slice(0,-(he.output+J.output).length),he.output=`(?:${he.output}`,J.type="globstar",J.output=ie(S)+(S.strictSlashes?")":"|$)"),J.value+=j,W.globstar=!0,W.output+=he.output+J.output,He(j);continue}if(he.type==="slash"&&he.prev.type!=="bos"&&_e[0]==="/"){const Jt=_e[1]!==void 0?"|$":"";W.output=W.output.slice(0,-(he.output+J.output).length),he.output=`(?:${he.output}`,J.type="globstar",J.output=`${ie(S)}${H}|${H}${Jt})`,J.value+=j,W.output+=he.output+J.output,W.globstar=!0,He(j+xe()),Te({type:"slash",value:"/",output:""});continue}if(he.type==="bos"&&_e[0]==="/"){J.type="globstar",J.value+=j,J.output=`(?:^|${H}|${ie(S)}${H})`,W.output=J.output,W.globstar=!0,He(j+xe()),Te({type:"slash",value:"/",output:""});continue}W.output=W.output.slice(0,-J.output.length),J.type="globstar",J.output=ie(S),J.value+=j,W.output+=J.output,W.globstar=!0,He(j);continue}const Ce={type:"star",value:j,output:ue};if(S.bash===!0){Ce.output=".*?",(J.type==="bos"||J.type==="slash")&&(Ce.output=te+Ce.output),Te(Ce);continue}if(J&&(J.type==="bracket"||J.type==="paren")&&S.regex===!0){Ce.output=j,Te(Ce);continue}(W.index===W.start||J.type==="slash"||J.type==="dot")&&(J.type==="dot"?(W.output+=Y,J.output+=Y):S.dot===!0?(W.output+=V,J.output+=V):(W.output+=te,J.output+=te),oe()!=="*"&&(W.output+=L,J.output+=L)),Te(Ce)}for(;W.brackets>0;){if(S.strictBrackets===!0)throw new SyntaxError(y("closing","]"));W.output=l.escapeLast(W.output,"["),je("brackets")}for(;W.parens>0;){if(S.strictBrackets===!0)throw new SyntaxError(y("closing",")"));W.output=l.escapeLast(W.output,"("),je("parens")}for(;W.braces>0;){if(S.strictBrackets===!0)throw new SyntaxError(y("closing","}"));W.output=l.escapeLast(W.output,"{"),je("braces")}if(S.strictSlashes!==!0&&(J.type==="star"||J.type==="bracket")&&Te({type:"maybe_slash",value:"",output:`${H}?`}),W.backtrack===!0){W.output="";for(const _e of W.tokens)W.output+=_e.output!=null?_e.output:_e.value,_e.suffix&&(W.output+=_e.suffix)}return W};b.fastpaths=(w,E)=>{const S={...E},C=typeof S.maxLength=="number"?Math.min(f,S.maxLength):f,_=w.length;if(_>C)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${C}`);w=v[w]||w;const{DOT_LITERAL:T,SLASH_LITERAL:O,ONE_CHAR:k,DOTS_SLASH:P,NO_DOT:N,NO_DOTS:M,NO_DOTS_SLASH:z,STAR:H,START_ANCHOR:L}=u.globChars(S.windows),F=S.dot?M:N,U=S.dot?z:N,Y=S.capture?"":"?:",V={negated:!1,prefix:""};let K=S.bash===!0?".*?":H;S.capture&&(K=`(${K})`);const $=te=>te.noglobstar===!0?K:`(${Y}(?:(?!${L}${te.dot?P:T}).)*?)`,Q=te=>{switch(te){case"*":return`${F}${k}${K}`;case".*":return`${T}${k}${K}`;case"*.*":return`${F}${K}${T}${k}${K}`;case"*/*":return`${F}${K}${O}${k}${U}${K}`;case"**":return F+$(S);case"**/*":return`(?:${F}${$(S)}${O})?${U}${k}${K}`;case"**/*.*":return`(?:${F}${$(S)}${O})?${U}${K}${T}${k}${K}`;case"**/.*":return`(?:${F}${$(S)}${O})?${T}${k}${K}`;default:{const fe=/^(.*?)\.(\w+)$/.exec(te);if(!fe)return;const ue=Q(fe[1]);return ue?ue+T+fe[2]:void 0}}},ae=l.removePrefix(w,V);let ie=Q(ae);return ie&&S.strictSlashes!==!0&&(ie+=`${O}?`),ie},i.exports=b},510:(i,a,o)=>{const u=o(716),l=o(697),f=o(96),d=o(154),h=v=>v&&typeof v=="object"&&!Array.isArray(v),p=(v,m,y=!1)=>{if(Array.isArray(v)){const O=v.map(P=>p(P,m,y));return P=>{for(const N of O){const M=N(P);if(M)return M}return!1}}const b=h(v)&&v.tokens&&v.input;if(v===""||typeof v!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const w=m||{},E=w.windows,S=b?p.compileRe(v,m):p.makeRe(v,m,!1,!0),C=S.state;delete S.state;let _=()=>!1;if(w.ignore){const O={...m,ignore:null,onMatch:null,onResult:null};_=p(w.ignore,O,y)}const T=(O,k=!1)=>{const{isMatch:P,match:N,output:M}=p.test(O,S,m,{glob:v,posix:E}),z={glob:v,state:C,regex:S,posix:E,input:O,output:M,match:N,isMatch:P};return typeof w.onResult=="function"&&w.onResult(z),P===!1?(z.isMatch=!1,k?z:!1):_(O)?(typeof w.onIgnore=="function"&&w.onIgnore(z),z.isMatch=!1,k?z:!1):(typeof w.onMatch=="function"&&w.onMatch(z),k?z:!0)};return y&&(T.state=C),T};p.test=(v,m,y,{glob:b,posix:w}={})=>{if(typeof v!="string")throw new TypeError("Expected input to be a string");if(v==="")return{isMatch:!1,output:""};const E=y||{},S=E.format||(w?f.toPosixSlashes:null);let C=v===b,_=C&&S?S(v):v;return C===!1&&(_=S?S(v):v,C=_===b),(C===!1||E.capture===!0)&&(E.matchBase===!0||E.basename===!0?C=p.matchBase(v,m,y,w):C=m.exec(_)),{isMatch:!!C,match:C,output:_}},p.matchBase=(v,m,y)=>(m instanceof RegExp?m:p.makeRe(m,y)).test(f.basename(v)),p.isMatch=(v,m,y)=>p(m,y)(v),p.parse=(v,m)=>Array.isArray(v)?v.map(y=>p.parse(y,m)):l(v,{...m,fastpaths:!1}),p.scan=(v,m)=>u(v,m),p.compileRe=(v,m,y=!1,b=!1)=>{if(y===!0)return v.output;const w=m||{},E=w.contains?"":"^",S=w.contains?"":"$";let C=`${E}(?:${v.output})${S}`;v&&v.negated===!0&&(C=`^(?!${C}).*$`);const _=p.toRegex(C,m);return b===!0&&(_.state=v),_},p.makeRe=(v,m={},y=!1,b=!1)=>{if(!v||typeof v!="string")throw new TypeError("Expected a non-empty string");let w={negated:!1,fastpaths:!0};return m.fastpaths!==!1&&(v[0]==="."||v[0]==="*")&&(w.output=l.fastpaths(v,m)),w.output||(w=l(v,m)),p.compileRe(w,m,y,b)},p.toRegex=(v,m)=>{try{const y=m||{};return new RegExp(v,y.flags||(y.nocase?"i":""))}catch(y){if(m&&m.debug===!0)throw y;return/$^/}},p.constants=d,i.exports=p},716:(i,a,o)=>{const u=o(96),{CHAR_ASTERISK:l,CHAR_AT:f,CHAR_BACKWARD_SLASH:d,CHAR_COMMA:h,CHAR_DOT:p,CHAR_EXCLAMATION_MARK:v,CHAR_FORWARD_SLASH:m,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:b,CHAR_LEFT_SQUARE_BRACKET:w,CHAR_PLUS:E,CHAR_QUESTION_MARK:S,CHAR_RIGHT_CURLY_BRACE:C,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:T}=o(154),O=N=>N===m||N===d,k=N=>{N.isPrefix!==!0&&(N.depth=N.isGlobstar?1/0:1)},P=(N,M)=>{const z=M||{},H=N.length-1,L=z.parts===!0||z.scanToEnd===!0,F=[],U=[],Y=[];let V=N,K=-1,$=0,Q=0,ae=!1,ie=!1,te=!1,fe=!1,ue=!1,W=!1,de=!1,ye=!1,Se=!1,J=!1,j=0,Re,oe,xe={value:"",depth:0,isGlob:!1};const Fe=()=>K>=H,He=()=>V.charCodeAt(K+1),Ye=()=>(Re=oe,V.charCodeAt(++K));for(;K<H;){oe=Ye();let we;if(oe===d){de=xe.backslashes=!0,oe=Ye(),oe===y&&(W=!0);continue}if(W===!0||oe===y){for(j++;Fe()!==!0&&(oe=Ye());){if(oe===d){de=xe.backslashes=!0,Ye();continue}if(oe===y){j++;continue}if(W!==!0&&oe===p&&(oe=Ye())===p){if(ae=xe.isBrace=!0,te=xe.isGlob=!0,J=!0,L===!0)continue;break}if(W!==!0&&oe===h){if(ae=xe.isBrace=!0,te=xe.isGlob=!0,J=!0,L===!0)continue;break}if(oe===C&&(j--,j===0)){W=!1,ae=xe.isBrace=!0,J=!0;break}}if(L===!0)continue;break}if(oe===m){if(F.push(K),U.push(xe),xe={value:"",depth:0,isGlob:!1},J===!0)continue;if(Re===p&&K===$+1){$+=2;continue}Q=K+1;continue}if(z.noext!==!0&&(oe===E||oe===f||oe===l||oe===S||oe===v)===!0&&He()===b){if(te=xe.isGlob=!0,fe=xe.isExtglob=!0,J=!0,oe===v&&K===$&&(Se=!0),L===!0){for(;Fe()!==!0&&(oe=Ye());){if(oe===d){de=xe.backslashes=!0,oe=Ye();continue}if(oe===_){te=xe.isGlob=!0,J=!0;break}}continue}break}if(oe===l){if(Re===l&&(ue=xe.isGlobstar=!0),te=xe.isGlob=!0,J=!0,L===!0)continue;break}if(oe===S){if(te=xe.isGlob=!0,J=!0,L===!0)continue;break}if(oe===w){for(;Fe()!==!0&&(we=Ye());){if(we===d){de=xe.backslashes=!0,Ye();continue}if(we===T){ie=xe.isBracket=!0,te=xe.isGlob=!0,J=!0;break}}if(L===!0)continue;break}if(z.nonegate!==!0&&oe===v&&K===$){ye=xe.negated=!0,$++;continue}if(z.noparen!==!0&&oe===b){if(te=xe.isGlob=!0,L===!0){for(;Fe()!==!0&&(oe=Ye());){if(oe===b){de=xe.backslashes=!0,oe=Ye();continue}if(oe===_){J=!0;break}}continue}break}if(te===!0){if(J=!0,L===!0)continue;break}}z.noext===!0&&(fe=!1,te=!1);let Xe=V,ht="",je="";$>0&&(ht=V.slice(0,$),V=V.slice($),Q-=$),Xe&&te===!0&&Q>0?(Xe=V.slice(0,Q),je=V.slice(Q)):te===!0?(Xe="",je=V):Xe=V,Xe&&Xe!==""&&Xe!=="/"&&Xe!==V&&O(Xe.charCodeAt(Xe.length-1))&&(Xe=Xe.slice(0,-1)),z.unescape===!0&&(je&&(je=u.removeBackslashes(je)),Xe&&de===!0&&(Xe=u.removeBackslashes(Xe)));const Te={prefix:ht,input:N,start:$,base:Xe,glob:je,isBrace:ae,isBracket:ie,isGlob:te,isExtglob:fe,isGlobstar:ue,negated:ye,negatedExtglob:Se};if(z.tokens===!0&&(Te.maxDepth=0,O(oe)||U.push(xe),Te.tokens=U),z.parts===!0||z.tokens===!0){let we;for(let ot=0;ot<F.length;ot++){const _e=we?we+1:$,Ce=F[ot],he=N.slice(_e,Ce);z.tokens&&(ot===0&&$!==0?(U[ot].isPrefix=!0,U[ot].value=ht):U[ot].value=he,k(U[ot]),Te.maxDepth+=U[ot].depth),(ot!==0||he!=="")&&Y.push(he),we=Ce}if(we&&we+1<N.length){const ot=N.slice(we+1);Y.push(ot),z.tokens&&(U[U.length-1].value=ot,k(U[U.length-1]),Te.maxDepth+=U[U.length-1].depth)}Te.slashes=F,Te.parts=Y}return Te};i.exports=P},96:(i,a,o)=>{const{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:l,REGEX_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_GLOBAL:d}=o(154);a.isObject=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),a.hasRegexChars=h=>f.test(h),a.isRegexChar=h=>h.length===1&&a.hasRegexChars(h),a.escapeRegex=h=>h.replace(d,"\\$1"),a.toPosixSlashes=h=>h.replace(u,"/"),a.removeBackslashes=h=>h.replace(l,p=>p==="\\"?"":p),a.escapeLast=(h,p,v)=>{const m=h.lastIndexOf(p,v);return m===-1?h:h[m-1]==="\\"?a.escapeLast(h,p,m-1):`${h.slice(0,m)}\\${h.slice(m)}`},a.removePrefix=(h,p={})=>{let v=h;return v.startsWith("./")&&(v=v.slice(2),p.prefix="./"),v},a.wrapOutput=(h,p={},v={})=>{const m=v.contains?"":"^",y=v.contains?"":"$";let b=`${m}(?:${h})${y}`;return p.negated===!0&&(b=`(?:^(?!${b}).*$)`),b},a.basename=(h,{windows:p}={})=>{const v=h.split(p?/[\\/]/:"/"),m=v[v.length-1];return m===""?v[v.length-2]:m}}},e={};function r(i){var a=e[i];if(a!==void 0)return a.exports;var o=e[i]={exports:{}},u=!0;try{t[i](o,o.exports,r),u=!1}finally{u&&delete e[i]}return o.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(170);Tv.exports=n})()),Tv.exports}var Ww;function r7(){return Ww||(Ww=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}e(t,{hasLocalMatch:function(){return i},matchLocalPattern:function(){return n}});const r=Bw();function n(a,o){if(a.search!==void 0&&a.search!==o.search)return!1;var u;return!!(0,r.makeRe)((u=a.pathname)!=null?u:"**",{dot:!0}).test(o.pathname)}function i(a,o){if(!a)return!0;const u=new URL(o,"http://n");return a.some(l=>n(l,u))}}(Cv)),Cv}var Ov={},Gw;function n7(){return Gw||(Gw=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}e(t,{hasRemoteMatch:function(){return i},matchRemotePattern:function(){return n}});const r=Bw();function n(a,o){if(a.protocol!==void 0){const l=o.protocol.slice(0,-1);if(a.protocol!==l)return!1}if(a.port!==void 0&&a.port!==o.port)return!1;if(a.hostname===void 0)throw new Error(`Pattern should define hostname but found
|
|
139
|
+
`+JSON.stringify(a));if(!(0,r.makeRe)(a.hostname).test(o.hostname)||a.search!==void 0&&a.search!==o.search)return!1;var u;return!!(0,r.makeRe)((u=a.pathname)!=null?u:"**",{dot:!0}).test(o.pathname)}function i(a,o,u){return a.some(l=>u.hostname===l)||o.some(l=>n(l,u))}}(Ov)),Ov}var Qw;function Yw(){return Qw||(Qw=1,function(t){var e={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const r=75;function n(a){let{config:o,src:u,width:l,quality:f}=a;var d;{const p=[];if(u||p.push("src"),l||p.push("width"),p.length>0)throw new Error("Next Image Optimization requires "+p.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:u,width:l,quality:f}));if(u.startsWith("//"))throw new Error('Failed to parse src "'+u+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(u.startsWith("/")&&o.localPatterns&&e.NEXT_RUNTIME!=="edge"){const{hasLocalMatch:v}=r7();if(!v(o.localPatterns,u))throw new Error("Invalid src prop ("+u+") on `next/image` does not match `images.localPatterns` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns")}if(!u.startsWith("/")&&(o.domains||o.remotePatterns)){let v;try{v=new URL(u)}catch(m){throw console.error(m),new Error('Failed to parse src "'+u+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(e.NEXT_RUNTIME!=="edge"){const{hasRemoteMatch:m}=n7();if(!m(o.domains,o.remotePatterns,v))throw new Error("Invalid src prop ("+u+') on `next/image`, hostname "'+v.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}if(f&&o.qualities&&!o.qualities.includes(f))throw new Error("Invalid quality prop ("+f+") on `next/image` does not match `images.qualities` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-qualities")}const h=f||((d=o.qualities)==null?void 0:d.reduce((p,v)=>Math.abs(v-r)<Math.abs(p-r)?v:p))||r;return o.path+"?url="+encodeURIComponent(u)+"&w="+l+"&q="+h+(e.NEXT_DEPLOYMENT_ID?"&dpl="+e.NEXT_DEPLOYMENT_ID:"")}n.__next_img_default=!0;const i=n}(xv)),xv}var Kw;function i7(){return Kw||(Kw=1,function(t,e){"use client";var r={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return C}});const n=Ci(),i=mv(),a=ll(),o=i._(q),u=n._(ti),l=n._(e7()),f=Lw(),d=gv(),h=t7(),p=hv(),v=Hw(),m=n._(Yw()),y=r.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function b(_,T,O,k,P,N,M){const z=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===z)return;_["data-loaded-src"]=z,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(T!=="empty"&&P(!0),O!=null&&O.current){const L=new Event("load");Object.defineProperty(L,"target",{writable:!1,value:_});let F=!1,U=!1;O.current({...L,nativeEvent:L,currentTarget:_,target:_,isDefaultPrevented:()=>F,isPropagationStopped:()=>U,persist:()=>{},preventDefault:()=>{F=!0,L.preventDefault()},stopPropagation:()=>{U=!0,L.stopPropagation()}})}k!=null&&k.current&&k.current(_);{const L=new URL(z,"http://n").searchParams.get("url")||z;if(_.getAttribute("data-nimg")==="fill"){if(!N&&(!M||M==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(M==="100vw"?(0,p.warnOnce)('Image with src "'+L+'" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'):(0,p.warnOnce)('Image with src "'+L+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes')),_.parentElement){const{position:Y}=window.getComputedStyle(_.parentElement),V=["absolute","fixed","relative"];V.includes(Y)||(0,p.warnOnce)('Image with src "'+L+'" has "fill" and parent element with invalid "position". Provided "'+Y+'" should be one of '+V.map(String).join(",")+".")}_.height===0&&(0,p.warnOnce)('Image with src "'+L+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const F=_.height.toString()!==_.getAttribute("height"),U=_.width.toString()!==_.getAttribute("width");(F&&!U||!F&&U)&&(0,p.warnOnce)('Image with src "'+L+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function w(_){return o.use?{fetchPriority:_}:{fetchpriority:_}}const E=(0,o.forwardRef)((_,T)=>{let{src:O,srcSet:k,sizes:P,height:N,width:M,decoding:z,className:H,style:L,fetchPriority:F,placeholder:U,loading:Y,unoptimized:V,fill:K,onLoadRef:$,onLoadingCompleteRef:Q,setBlurComplete:ae,setShowAltText:ie,sizesInput:te,onLoad:fe,onError:ue,...W}=_;return(0,a.jsx)("img",{...W,...w(F),loading:Y,width:M,height:N,decoding:z,"data-nimg":K?"fill":"1",className:H,style:L,sizes:P,srcSet:k,src:O,ref:(0,o.useCallback)(de=>{T&&(typeof T=="function"?T(de):typeof T=="object"&&(T.current=de)),de&&(ue&&(de.src=de.src),O||console.error('Image is missing required "src" property:',de),de.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.'),de.complete&&b(de,U,$,Q,ae,V,te))},[O,U,$,Q,ae,ue,V,te,T]),onLoad:de=>{const ye=de.currentTarget;b(ye,U,$,Q,ae,V,te)},onError:de=>{ie(!0),U!=="empty"&&ae(!0),ue&&ue(de)}})});function S(_){let{isAppRouter:T,imgAttributes:O}=_;const k={as:"image",imageSrcSet:O.srcSet,imageSizes:O.sizes,crossOrigin:O.crossOrigin,referrerPolicy:O.referrerPolicy,...w(O.fetchPriority)};return T&&u.default.preload?(u.default.preload(O.src,k),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:O.srcSet?void 0:O.src,...k},"__nimg-"+O.src+O.srcSet+O.sizes)})}const C=(0,o.forwardRef)((_,T)=>{const k=!(0,o.useContext)(v.RouterContext),P=(0,o.useContext)(h.ImageConfigContext),N=(0,o.useMemo)(()=>{var Q;const ae=y||P||d.imageConfigDefault,ie=[...ae.deviceSizes,...ae.imageSizes].sort((ue,W)=>ue-W),te=ae.deviceSizes.sort((ue,W)=>ue-W),fe=(Q=ae.qualities)==null?void 0:Q.sort((ue,W)=>ue-W);return{...ae,allSizes:ie,deviceSizes:te,qualities:fe}},[P]),{onLoad:M,onLoadingComplete:z}=_,H=(0,o.useRef)(M);(0,o.useEffect)(()=>{H.current=M},[M]);const L=(0,o.useRef)(z);(0,o.useEffect)(()=>{L.current=z},[z]);const[F,U]=(0,o.useState)(!1),[Y,V]=(0,o.useState)(!1),{props:K,meta:$}=(0,f.getImgProps)(_,{defaultLoader:m.default,imgConf:N,blurComplete:F,showAltText:Y});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(E,{...K,unoptimized:$.unoptimized,placeholder:$.placeholder,fill:$.fill,onLoadRef:H,onLoadingCompleteRef:L,setBlurComplete:U,setShowAltText:V,sizesInput:_.sizes,ref:T}),$.priority?(0,a.jsx)(S,{isAppRouter:k,imgAttributes:K}):null]})});(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(mc,mc.exports)),mc.exports}var Xw;function a7(){return Xw||(Xw=1,function(t){var e={};Object.defineProperty(t,"__esModule",{value:!0});function r(f,d){for(var h in d)Object.defineProperty(f,h,{enumerable:!0,get:d[h]})}r(t,{default:function(){return l},getImageProps:function(){return u}});const n=Ci(),i=Lw(),a=i7(),o=n._(Yw());function u(f){const{props:d}=(0,i.getImgProps)(f,{defaultLoader:o.default,imgConf:e.__NEXT_IMAGE_OPTS});for(const[h,p]of Object.entries(d))p===void 0&&delete d[h];return{props:d}}const l=a.Image}(cv)),cv}var Rv,Zw;function o7(){return Zw||(Zw=1,Rv=a7()),Rv}var s7=o7();const u7=wi(s7),Ji=({alt:t="Image",className:e,height:r=500,path:n,src:i,rotate:a,width:o=500,quality:u=100,defaultImageName:l="",defaultImageClasses:f="ed-w-5 ed-h-5",defaultUserNameTextSize:d="ed-text-16"})=>{var w,E;const[h,p]=q.useState(""),[v,m]=q.useState(!1),[y,b]=q.useState(!!n);return q.useLayoutEffect(()=>{(async()=>{if(!v&&n){const C=`https://${Uh("cdnDomain")}-public.imgix.net/${n}?h=${r}&w=${o}&q=${u}`;C?p(C):m(!0),b(!1)}})()},[r,n,a,o]),y?R.jsx("div",{className:`ed-flex ed-items-center ed-justify-center ${e}`,children:R.jsxs("svg",{className:`ed-animate-spin ed-h-${((w=r==null?void 0:r.replace)==null?void 0:w.call(r,"px",""))||10} ed-w-${((E=o==null?void 0:o.replace)==null?void 0:E.call(o,"px",""))||10} ed-text-brand`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[R.jsx("circle",{className:"ed-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),R.jsx("path",{className:"ed-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):i||h?R.jsx(u7,{alt:t,className:e,height:r,loading:"lazy",placeholder:"blur",blurDataURL:"Loading...",onError:()=>{m(!0)},src:i||h,width:o}):R.jsx("div",{className:`${e} ed-bg-blue-light ed-text-brand ed-rounded-full ed-flex ed-items-center ed-justify-center ${f}`,children:R.jsx("p",{className:`ed-text-brand ed-font-medium ${d}`,children:l||"ED"})})},Jw=({selectedFiles:t,setSelectedFiles:e,options:{bgColor:r=""}={},subtitle:n="Works with any jpg, png file and max 5 files"})=>{const i=q.useRef(null),[a,o]=q.useState(!1),u=v=>{v.preventDefault();const m=5,y=5*1024*1024,b=Array.from(v.target.files);if(lt.size(t)+b.length>m){tr("error","You can upload a maximum of 5 files","top-right");return}if(b.filter(E=>E.size>y).length>0){tr("error","Each file must be under 5MB","top-right");return}e(E=>[...E,...b])},l=v=>{v.preventDefault(),v.stopPropagation(),o(!0)},f=v=>{v.preventDefault(),v.stopPropagation(),v.currentTarget===i.current&&o(!1)},d=v=>{v.preventDefault(),v.stopPropagation()},h=v=>{if(v.preventDefault(),v.stopPropagation(),lt.size(t)>5){tr("error","You can upload maximum 5 files","top-right");return}o(!1),e(m=>[...m,...Array.from(v.dataTransfer.files)])},p=v=>{e(m=>m==null?void 0:m.filter(y=>(y==null?void 0:y.name)!==(v==null?void 0:v.name)))};return R.jsxs("div",{className:"ed-mt-5",children:[R.jsx("p",{className:"ed-text-14 ed-font-semibold ed-text-border-dark ed-mb-1",children:"Attachment"}),R.jsxs("label",{htmlFor:"image_upload",ref:i,onDragEnter:l,onDragLeave:f,onDragOver:d,onDrop:h,className:`ed-relative ed-mb-1 ed-py-8 ed-flex ed-flex-col ed-items-center ed-justify-center ed-border-2 ${r} ${a?"ed-border-brand ed-border-solid ed-bg-brand-light":"ed-border-border-light ed-border-dashed"} ed-cursor-pointer ed-rounded-md ed-hover:bg-brand-light ed-duration-500`,children:[R.jsx("input",{id:"image_upload",type:"file",className:"ed-hidden",multiple:!0,accept:".jpg,.jpeg,.png,.gif,.svg,.pdf",onChange:u,max:5,disabled:lt.size(t)>=5}),R.jsx(Bp,{size:24,className:"ed-text-brand-link"}),R.jsxs("p",{className:"ed-text-14 ed-font-semibold ed-text-border-regular ed-mt-4 ed-mb-1",children:["Drag & drop or"," ",R.jsx("span",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:"choose file"})," to upload"]}),R.jsx("span",{className:"ed-text-12 ed-font-medium ed-text-border",children:n})]}),lt.size(t)>0&&(t==null?void 0:t.map(v=>{const m=URL==null?void 0:URL.createObjectURL(v),y=(v==null?void 0:v.type)==="application/pdf";return R.jsx("div",{className:"ed-p-4 ed-border ed-border-border-light ed-rounded-[10px] ed-mt-2",children:R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-w-full",children:[y?R.jsx(Ap,{size:48,className:"ed-text-border"}):R.jsx(Ji,{className:"ed-size-12 ed-rounded-md",defaultImageClasses:"h-12 w-12",src:m}),R.jsxs("div",{className:"ed-flex-1 ed-flex ed-items-center ed-justify-between",children:[R.jsxs("div",{children:[R.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-dark ed-leading-none",children:v==null?void 0:v.name}),R.jsxs("span",{className:"ed-text-12 ed-font-medium ed-text-border",children:[(v.size/(1024*1024)).toFixed(2)," MB"]})]}),R.jsx(Hp,{size:16,className:"ed-text-border-regular ed-cursor-pointer",onClick:()=>p(v)})]})]})},v==null?void 0:v.name)}))]})};var kv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_A_TICKET_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TicketCreateForPortalInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createATicketForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:146}};kv.loc.source={body:`mutation CREATE_A_TICKET_FOR_PORTAL($inputData: TicketCreateForPortalInputType!) {
|
|
140
|
+
createATicketForPortal(inputData: $inputData) {
|
|
141
|
+
id
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function _c(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){_c(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){_c(n,e)}),t.definitions&&t.definitions.forEach(function(n){_c(n,e)})}var Av={};(function(){kv.definitions.forEach(function(e){if(e.name){var r=new Set;_c(e,r),Av[e.name.value]=r}})})();function eE(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function l7(t,e){var r={kind:t.kind,definitions:[eE(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=Av[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Av[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=eE(t,u);l&&r.definitions.push(l)}),r}const tE=l7(kv,"CREATE_A_TICKET_FOR_PORTAL"),c7=({setIsCreatNewTicketClicked:t,isAuthenticated:e,setSearchedText:r,searchedText:n})=>{var C,_,T;const{t:i}=Ho(),[a,o]=q.useState([]),[u,l]=q.useState(!1),[f,d]=q.useState({ticket_title:n}),[h,p]=q.useState(!1),[v,{loading:m}]=ka(tE),y=async()=>{var O;try{if(l(!0),lt.size(a)&<.size(a)>5){tr("error","You can upload maximum 5 files","top-right");return}const k=[],P=[];lt.forEach(a,M=>{const z=`${Kp()}.${lt.last(lt.split(M.name,"."))}`;k.push({name:z,title:M.name,size:M.size,type:"ticket_activity_attachment"}),P.push({file:M,name:z})});const{data:N}=await v({variables:{inputData:{...f,ticket_activity_files:k}}});(O=N==null?void 0:N.createATicketForPortal)!=null&&O.id&&(lt.size(P)&&P.forEach(async M=>{var z;try{const H=await uv({name:M.name,type:"ticket_activity_attachment",sub_type:(z=N==null?void 0:N.createATicketForPortal)==null?void 0:z.id});if(H!=null&&H.error){tr("error",`Failed to process ${M.name}`,"top-right");return}await lv({key:H.key,url:H.url},M.file)}catch(H){console.error(`Error processing file ${M.name}:`,H),tr("error",`Failed to upload ${M.name}`,"top-right")}}),p(!0),r(""))}catch(k){tr("error","Something went wrong","top-right"),console.error("error",k)}finally{l(!1)}},b=(O,k)=>{d(P=>({...P,[O]:k}))},w=Wh(f.contact_person_email),E=!e&&(!((C=f.contact_person_name)!=null&&C.trim())||!w||!f.contact_person_email)||!((_=f.ticket_title)!=null&&_.trim())||!((T=f.ticket_activity)!=null&&T.trim()),S=()=>m||u?!0:E;return R.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto no-scrollbar",children:[R.jsxs("div",{className:"ed-p-5 ed-flex ed-items-center ed-justify-between ed-sticky ed-top-0 ed-bg-white ed-z-10",children:[R.jsx("h6",{className:"ed-text-18 ed-font-semibold ed-text-border-dark",children:i("widget.label.create_a_ticket")}),R.jsx("button",{type:"button",onClick:()=>t(!1),children:R.jsx(Zi,{className:"ed-text-border-dark ed-size-5"})})]}),h?R.jsxs("div",{className:"ed-p-5 ed-space-y-4 ed-flex ed-items-center ed-justify-center ed-flex-col ed-h-[calc(100vh-25rem)]",children:[R.jsx(W9,{}),R.jsxs("div",{className:"ed-text-center",children:[R.jsx("h6",{className:"ed-leading-none ed-text-16 ed-font-semibold ed-text-border-dark ed-mb-1",children:i("widget.label.ticket_created")}),R.jsx("p",{className:"ed-text-border-regular",children:i("widget.label.soon_get_response")})]}),R.jsx(_u,{title:i("widget.label.explore_more_articles"),iconPosition:"right",Icon:Mo,callBack:()=>t(!1)})]}):R.jsxs("div",{className:"ed-p-5 ed-space-y-4",children:[!e&&R.jsxs(R.Fragment,{children:[R.jsx(Vo,{isRequired:!0,label:"Name",placeholder:"Enter your name",value:f.contact_person_name,onChange:O=>b("contact_person_name",O.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_name"}),R.jsx(Vo,{isRequired:!0,type:"email",label:"Email",placeholder:"Enter your email",value:f.contact_person_email,onChange:O=>b("contact_person_email",O.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_email"}),(f==null?void 0:f.contact_person_email)&&!w&&R.jsx("span",{className:"ed-text-red ed-font-12",children:"Please enter a valid email address!"})]}),R.jsx(Vo,{isRequired:!0,label:"Subject",placeholder:"Tell us what this feedback is about",value:f.ticket_title,onChange:O=>b("ticket_title",O.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_title"}),R.jsx(Tw,{label:`${e?"Summary":"Description"}`,isRequired:!0,placeholder:"Add more details for us to resolve the issue",value:f.ticket_activity,onChange:O=>b("ticket_activity",O.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_activity"}),R.jsx(Jw,{subtitle:"Supported file types: jpg, png, pdf (max 5MB)",selectedFiles:a,setSelectedFiles:o}),R.jsx(_u,{title:"Create ticket",fullWidthBtn:!0,disabled:S(),loader:m||u,callBack:y})]})]})};/*! *****************************************************************************
|
|
145
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
146
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
147
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
148
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
149
|
+
|
|
150
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
151
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
152
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
153
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
154
|
+
|
|
155
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
156
|
+
and limitations under the License.
|
|
157
|
+
***************************************************************************** */var Pv=function(t,e){return Pv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Pv(t,e)};function f7(t,e){Pv(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var wu=function(){return wu=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},wu.apply(this,arguments)};function d7(t,e,r,n){var i,a=!1,o=0;function u(){i&&clearTimeout(i)}function l(){u(),a=!0}typeof e!="boolean"&&(n=r,r=e,e=void 0);function f(){var d=this,h=Date.now()-o,p=arguments;if(a)return;function v(){o=Date.now(),r.apply(d,p)}function m(){i=void 0}n&&!i&&v(),u(),n===void 0&&h>t?v():e!==!0&&(i=setTimeout(n?m:v,n===void 0?t-h:t))}return f.cancel=l,f}var Bo={Pixel:"Pixel",Percent:"Percent"},rE={unit:Bo.Percent,value:.8};function nE(t){return typeof t=="number"?{unit:Bo.Percent,value:t*100}:typeof t=="string"?t.match(/^(\d*(\.\d+)?)px$/)?{unit:Bo.Pixel,value:parseFloat(t)}:t.match(/^(\d*(\.\d+)?)%$/)?{unit:Bo.Percent,value:parseFloat(t)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),rE):(console.warn("scrollThreshold should be string or number"),rE)}var iE=function(t){f7(e,t);function e(r){var n=t.call(this,r)||this;return n.lastScrollTop=0,n.actionTriggered=!1,n.startY=0,n.currentY=0,n.dragging=!1,n.maxPullDownDistance=0,n.getScrollableTarget=function(){return n.props.scrollableTarget instanceof HTMLElement?n.props.scrollableTarget:typeof n.props.scrollableTarget=="string"?document.getElementById(n.props.scrollableTarget):(n.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might
|
|
158
|
+
happen because the element may not have been added to DOM yet.
|
|
159
|
+
See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.
|
|
160
|
+
`),null)},n.onStart=function(i){n.lastScrollTop||(n.dragging=!0,i instanceof MouseEvent?n.startY=i.pageY:i instanceof TouchEvent&&(n.startY=i.touches[0].pageY),n.currentY=n.startY,n._infScroll&&(n._infScroll.style.willChange="transform",n._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},n.onMove=function(i){n.dragging&&(i instanceof MouseEvent?n.currentY=i.pageY:i instanceof TouchEvent&&(n.currentY=i.touches[0].pageY),!(n.currentY<n.startY)&&(n.currentY-n.startY>=Number(n.props.pullDownToRefreshThreshold)&&n.setState({pullToRefreshThresholdBreached:!0}),!(n.currentY-n.startY>n.maxPullDownDistance*1.5)&&n._infScroll&&(n._infScroll.style.overflow="visible",n._infScroll.style.transform="translate3d(0px, "+(n.currentY-n.startY)+"px, 0px)")))},n.onEnd=function(){n.startY=0,n.currentY=0,n.dragging=!1,n.state.pullToRefreshThresholdBreached&&(n.props.refreshFunction&&n.props.refreshFunction(),n.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){n._infScroll&&(n._infScroll.style.overflow="auto",n._infScroll.style.transform="none",n._infScroll.style.willChange="unset")})},n.onScrollListener=function(i){typeof n.props.onScroll=="function"&&setTimeout(function(){return n.props.onScroll&&n.props.onScroll(i)},0);var a=n.props.height||n._scrollableNode?i.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!n.actionTriggered){var o=n.props.inverse?n.isElementAtTop(a,n.props.scrollThreshold):n.isElementAtBottom(a,n.props.scrollThreshold);o&&n.props.hasMore&&(n.actionTriggered=!0,n.setState({showLoader:!0}),n.props.next&&n.props.next()),n.lastScrollTop=a.scrollTop}},n.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:r.dataLength},n.throttledOnScrollListener=d7(150,n.onScrollListener).bind(n),n.onStart=n.onStart.bind(n),n.onMove=n.onMove.bind(n),n.onEnd=n.onEnd.bind(n),n}return e.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing.
|
|
161
|
+
Pull Down To Refresh functionality will not work
|
|
162
|
+
as expected. Check README.md for usage'`)},e.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},e.prototype.componentDidUpdate=function(r){this.props.dataLength!==r.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},e.getDerivedStateFromProps=function(r,n){var i=r.dataLength!==n.prevDataLength;return i?wu(wu({},n),{prevDataLength:r.dataLength}):null},e.prototype.isElementAtTop=function(r,n){n===void 0&&(n=.8);var i=r===document.body||r===document.documentElement?window.screen.availHeight:r.clientHeight,a=nE(n);return a.unit===Bo.Pixel?r.scrollTop<=a.value+i-r.scrollHeight+1:r.scrollTop<=a.value/100+i-r.scrollHeight+1},e.prototype.isElementAtBottom=function(r,n){n===void 0&&(n=.8);var i=r===document.body||r===document.documentElement?window.screen.availHeight:r.clientHeight,a=nE(n);return a.unit===Bo.Pixel?r.scrollTop+i>=r.scrollHeight-a.value:r.scrollTop+i>=a.value/100*r.scrollHeight},e.prototype.render=function(){var r=this,n=wu({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),i=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),a=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return q.createElement("div",{style:a,className:"infinite-scroll-component__outerdiv"},q.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(o){return r._infScroll=o},style:n},this.props.pullDownToRefresh&&q.createElement("div",{style:{position:"relative"},ref:function(o){return r._pullDown=o}},q.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!i&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},e}(q.Component),Nv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_OR_UPDATE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivityRealtimeStatusCreateInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createOrUpdateAConversationActivityRealtimeStatus"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:226}};Nv.loc.source={body:`mutation CREATE_OR_UPDATE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS(
|
|
163
|
+
$inputData: ConversationActivityRealtimeStatusCreateInputType!
|
|
164
|
+
) {
|
|
165
|
+
createOrUpdateAConversationActivityRealtimeStatus(inputData: $inputData) {
|
|
166
|
+
id
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function wc(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){wc(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){wc(n,e)}),t.definitions&&t.definitions.forEach(function(n){wc(n,e)})}var Iv={};(function(){Nv.definitions.forEach(function(e){if(e.name){var r=new Set;wc(e,r),Iv[e.name.value]=r}})})();function aE(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function h7(t,e){var r={kind:t.kind,definitions:[aE(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=Iv[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Iv[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=aE(t,u);l&&r.definitions.push(l)}),r}const p7=h7(Nv,"CREATE_OR_UPDATE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS"),oE=()=>{const[t]=ka(p7);return{handleCreateOrUpdateRealtimeStatus:async(r,n=()=>{})=>{try{const{data:i}=await t({variables:{inputData:r}});n(i==null?void 0:i.createOrUpdateAConversationActivityRealtimeStatus)}catch(i){console.error(i)}}}};var Lv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DELETE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivityRealtimeStatusUpdatedQueryInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAConversationActivityRealtimeStatus"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:214}};Lv.loc.source={body:`mutation DELETE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS(
|
|
170
|
+
$queryData: ConversationActivityRealtimeStatusUpdatedQueryInputType!
|
|
171
|
+
) {
|
|
172
|
+
deleteAConversationActivityRealtimeStatus(queryData: $queryData) {
|
|
173
|
+
id
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Ec(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){Ec(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){Ec(n,e)}),t.definitions&&t.definitions.forEach(function(n){Ec(n,e)})}var Mv={};(function(){Lv.definitions.forEach(function(e){if(e.name){var r=new Set;Ec(e,r),Mv[e.name.value]=r}})})();function sE(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function v7(t,e){var r={kind:t.kind,definitions:[sE(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=Mv[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Mv[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=sE(t,u);l&&r.definitions.push(l)}),r}const g7=v7(Lv,"DELETE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS"),m7=()=>{const[t]=ka(g7);return{handleDeleteARealtimeStatus:async(r,n=()=>{})=>{try{const{data:i}=await t({variables:{queryData:{conversation_id:r}}});n(i==null?void 0:i.deleteAConversationActivityRealtimeStatus)}catch(i){console.error(i)}}}},y7=({channels:t,handleCreateMessage:e})=>t==null?void 0:t.map(r=>R.jsx("div",{className:"ed-max-w-[87%] ed-ml-auto ed-mb-2",children:R.jsx("button",{type:"button",className:"ed-border ed-border-brand ed-text-12 ed-text-brand ed-p-1 ed-rounded",onClick:()=>e({selected_channel_id:r==null?void 0:r.id,message:`<span className="ed-text-12 ed-p-1 ed-text-blue-950 ed-font-semibold">${r==null?void 0:r.name}</span>
|
|
177
|
+
`}),children:r==null?void 0:r.name})},r==null?void 0:r.id));var Dv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_A_CONVERSATION_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationCreateForPortalInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createAConversationForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:164}};Dv.loc.source={body:`mutation CREATE_A_CONVERSATION_FOR_PORTAL($inputData: ConversationCreateForPortalInputType!) {
|
|
178
|
+
createAConversationForPortal(inputData: $inputData) {
|
|
179
|
+
id
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Sc(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){Sc(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){Sc(n,e)}),t.definitions&&t.definitions.forEach(function(n){Sc(n,e)})}var Fv={};(function(){Dv.definitions.forEach(function(e){if(e.name){var r=new Set;Sc(e,r),Fv[e.name.value]=r}})})();function uE(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function b7(t,e){var r={kind:t.kind,definitions:[uE(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=Fv[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Fv[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=uE(t,u);l&&r.definitions.push(l)}),r}const _7=b7(Dv,"CREATE_A_CONVERSATION_FOR_PORTAL"),w7=({orgBrandSetting:t,setSelectedConversationId:e})=>{const[r,n]=q.useState({contact_person_name:"",contact_person_email:""}),[i,a]=q.useState(!0);q.useEffect(()=>{const m=setTimeout(()=>{a(!1)},1e3);return()=>clearTimeout(m)},[]);const{agent_open_hour_initial_message:o,agent_open_hour_followup_message:u,brand:l}=t,[f,{loading:d}]=ka(_7),h=async m=>{var y;m.preventDefault();try{const{data:b}=await f({variables:{inputData:{...r,conversation_activities:[{message:o,is_customer_reply:!1},{message:`<div className="ed-min-w-[16rem] ed-rounded-[20px] ed-border ed-border-border-light ed-p-5 ed-space-y-5">
|
|
183
|
+
<div>
|
|
184
|
+
<h6 className="ed-text-14 ed-font-semibold ed-text-border-dark">Name</h6>
|
|
185
|
+
<p className="ed-text-border-regular">${r==null?void 0:r.contact_person_name}</p>
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
<div>
|
|
189
|
+
<h6 className="ed-text-14 ed-font-semibold ed-text-border-dark">Email</h6>
|
|
190
|
+
<p className="ed-text-border-regular">${r==null?void 0:r.contact_person_email}</p>
|
|
191
|
+
</div>
|
|
192
|
+
</div>`,is_customer_reply:!0},{message:u,is_customer_reply:!1}]}}}),w=b==null?void 0:b.createAConversationForPortal;w!=null&&w.id&&(e(w==null?void 0:w.id),Bh("easydesk_chat_widget_conversation_id",w==null?void 0:w.id,{expires:30}))}catch(b){const{message:w,response:E}=b;tr("error",((y=E==null?void 0:E.data)==null?void 0:y.message)||w,"top-left")}},p=m=>{const{name:y,value:b}=m.target;n(w=>({...w,[y]:b}))},v=q.useMemo(()=>!(r!=null&&r.contact_person_name)||!(r!=null&&r.contact_person_email)||!Wh(r==null?void 0:r.contact_person_email),[r]);return R.jsxs("div",{className:"ed-space-y-5",children:[R.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[R.jsx("div",{children:R.jsx(Ji,{className:"ed-size-7 ed-object-cover ed-rounded-full",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:l==null?void 0:l.logo_icon_key,defaultImageName:nu(l==null?void 0:l.name)})}),R.jsxs("div",{children:[R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[R.jsx("p",{className:"ed-text-border-regular",children:l==null?void 0:l.name}),R.jsx("span",{className:"ed-text-border ed-font-medium",children:eu().format("HH:MM")})]}),i?R.jsx("div",{className:"ed-py-4",children:R.jsx(Rw,{})}):R.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-rounded-lg ed-mt-2",children:R.jsx("p",{className:"ed-text-border-dark",children:o})})]})]}),!i&&R.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto",children:R.jsxs("form",{onSubmit:h,className:"ed-p-5 ed-rounded-[20px] ed-bg-white-light ed-space-y-5",children:[R.jsxs("div",{className:"ed-space-y-2",children:[R.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Name ",R.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),R.jsx("input",{type:"text",name:"contact_person_name",required:!0,placeholder:"Enter your name",value:r==null?void 0:r.contact_person_name,onChange:p,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white"})]}),R.jsxs("div",{className:"ed-space-y-2",children:[R.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Email ",R.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),R.jsx("input",{type:"email",name:"contact_person_email",required:!0,placeholder:"Enter your email",value:r==null?void 0:r.contact_person_email,onChange:p,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white"})]}),R.jsx("div",{className:"ed-flex ed-justify-end",children:R.jsx("button",{type:"submit",disabled:v,className:"ed-bg-brand ed-text-white ed-px-6 ed-py-2.5 ed-rounded-lg ed-text-14 ed-font-semibold ed-disabled:opacity-50 ed-disabled:cursor-not-allowed ed-flex ed-items-center ed-gap-2 ed-disabled:ed-pointer-events-none",children:d?"Submitting":R.jsxs(R.Fragment,{children:[R.jsx(nc,{size:20}),"Submit"]})})})]})})]})},E7=({height:t="48",width:e="49"})=>R.jsx("svg",{width:e,height:t,viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{d:"M42.5 23.0001C42.5069 25.6398 41.8901 28.2438 40.7 30.6001C39.2889 33.4235 37.1195 35.7984 34.4349 37.4586C31.7503 39.1188 28.6565 39.9988 25.5 40.0001C22.8603 40.0069 20.2562 39.3902 17.9 38.2001L6.5 42.0001L10.3 30.6001C9.10986 28.2438 8.49312 25.6398 8.5 23.0001C8.50122 19.8436 9.38122 16.7498 11.0414 14.0652C12.7017 11.3806 15.0765 9.21119 17.9 7.80006C20.2562 6.60992 22.8603 5.99317 25.5 6.00006H26.5C30.6687 6.23004 34.6061 7.98958 37.5583 10.9418C40.5105 13.894 42.27 17.8314 42.5 22.0001V23.0001Z",fill:"white",stroke:"#00A1E0",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),S7=()=>R.jsxs("svg",{width:"192",height:"165",viewBox:"0 0 192 165",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{opacity:"0.4",d:"M124.365 148.68H57.3652L63.8177 119.68H117.913L124.365 148.68Z",fill:"#44A9F1"}),R.jsx("path",{opacity:"0.4",d:"M173.775 119.874H7.99173C3.77973 119.874 0.365234 116.459 0.365234 112.247V7.80619C0.365234 3.59419 3.77973 0.179688 7.99173 0.179688H173.775C177.987 0.179688 181.402 3.59419 181.402 7.80619V112.247C181.402 116.459 177.987 119.874 173.775 119.874Z",fill:"#44A9F1"}),R.jsx("path",{d:"M169.382 107.314H12.3843C8.17232 107.314 4.75781 103.9 4.75781 99.6877V11.4077C4.75781 7.19575 8.17232 3.78125 12.3843 3.78125H169.382C173.594 3.78125 177.009 7.19575 177.009 11.4077V99.6877C177.009 103.9 173.594 107.314 169.382 107.314Z",fill:"white"}),R.jsx("path",{opacity:"0.4",d:"M138.348 159.397H43.418V154.811C43.418 151.265 46.2925 148.391 49.8385 148.391H131.927C135.473 148.391 138.348 151.265 138.348 154.811V159.397Z",fill:"#44A9F1"}),R.jsx("path",{d:"M10.375 107.312H168.21",stroke:"#3B3B3B","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),R.jsx("path",{d:"M47.5977 157.107V154.699C47.5977 153.243 48.7781 152.062 50.2346 152.062H121.432",stroke:"#3B3B3B","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),R.jsx("path",{d:"M113.863 123.398L116.385 142.66",stroke:"#3B3B3B","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),R.jsx("path",{d:"M89.2912 117.684C91.331 117.684 92.9847 116.03 92.9847 113.99C92.9847 111.951 91.331 110.297 89.2912 110.297C87.2513 110.297 85.5977 111.951 85.5977 113.99C85.5977 116.03 87.2513 117.684 89.2912 117.684Z",fill:"white"}),R.jsx("path",{d:"M141.84 10.8125H161.445C165.181 10.8125 168.209 13.841 168.209 17.577V58.3125",stroke:"white","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),R.jsx("g",{opacity:"0.5",children:R.jsx("path",{d:"M88.1608 69.8837C88.0874 66.9345 88.253 64.5539 88.6584 62.7429C89.0634 60.9321 89.8966 59.2607 91.1596 57.7286C91.8875 56.8101 92.7171 56.0144 93.6518 55.3405C94.5848 54.6678 95.4423 53.9582 96.2249 53.213C97.0058 52.469 97.6603 51.639 98.1883 50.7253C98.7159 49.8117 98.9617 48.6306 98.9257 47.1804C98.8644 44.7316 98.1469 43.0353 96.7729 42.0943C95.3989 41.1533 93.7863 40.7055 91.9372 40.7516C89.2865 40.8179 87.4805 41.6012 86.518 43.1003C85.5544 44.6005 84.9787 46.6032 84.7917 49.1089L75.1185 49.3502C75.0577 46.9012 75.4013 44.6662 76.1517 42.6464C76.9013 40.6275 77.9965 38.8991 79.4365 37.4622C80.8761 36.0265 82.6238 34.9069 84.6804 34.105C86.7351 33.3035 89.0133 32.8716 91.5136 32.8092C96.9126 32.6746 101.201 33.6687 104.382 35.79C107.56 37.9127 109.212 41.4473 109.335 46.3966C109.375 47.9972 109.247 49.4003 108.953 50.6083C108.657 51.8161 108.196 52.9155 107.572 53.9068C106.945 54.8976 106.168 55.8304 105.24 56.7039C104.311 57.578 103.258 58.479 102.081 59.4086C101.002 60.2865 100.135 61.0962 99.4778 61.837C98.821 62.5793 98.3267 63.3549 97.9977 64.1625C97.6672 64.9714 97.4633 65.8153 97.3853 66.6912C97.3066 67.5691 97.2818 68.5583 97.3095 69.6569L88.1608 69.8837ZM88.2219 84.3642L87.977 74.5405L98.1001 74.2883L98.345 84.112L88.2219 84.3642Z",fill:"#44A9F1"})}),R.jsx("path",{d:"M189.428 162.528C186.451 165.558 181.581 165.6 178.551 162.622L142.516 127.208L153.299 116.236L189.333 151.65C192.364 154.628 192.406 159.498 189.428 162.528Z",fill:"#004E92"}),R.jsx("path",{opacity:"0.2",d:"M156.307 99.3327C156.268 82.1553 142.311 68.2623 125.133 68.3018C107.956 68.3413 94.0628 82.2984 94.1023 99.4757C94.1418 116.653 108.099 130.546 125.276 130.507C142.454 130.467 156.347 116.51 156.307 99.3327Z",fill:"#F8F9FB"}),R.jsx("path",{d:"M99.6105 74.257C85.7147 88.3958 85.9121 111.123 100.051 125.018C114.19 138.914 136.917 138.717 150.813 124.577C164.709 110.439 164.511 87.7118 150.372 73.816C136.232 59.9202 113.506 60.1176 99.6105 74.257ZM146.295 120.137C134.851 131.781 116.136 131.944 104.491 120.5C92.8472 109.057 92.6847 90.341 104.128 78.6972C115.571 67.0533 134.287 66.8909 145.932 78.3342C157.576 89.777 157.738 108.493 146.295 120.137Z",fill:"#004E92"}),R.jsx("path",{d:"M156.613 124.724L185.106 152.727",stroke:"white","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),R.jsx("path",{d:"M91.8946 96.8405C91.0045 105.663 94.0498 114.81 100.05 121.339C106.052 127.869 114.91 131.672 123.777 131.527",stroke:"white","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})]}),x7=({height:t="238",width:e="300"})=>R.jsxs("svg",{width:e,height:t,viewBox:"0 0 300 238",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M59.041 51C59.041 51 177.481 15.24 231.121 19.26C231.121 19.26 256.261 126.48 250.321 133.08C244.381 139.68 87.121 166.2 82.681 162.84C78.241 159.48 59.041 51 59.041 51Z",fill:"#00A1E0"}),R.jsx("path",{d:"M77.7021 72.12C77.7021 72.12 77.5221 74.58 78.1821 74.64C78.8421 74.7 89.4021 72.42 89.4021 72.42C89.4021 72.42 93.1821 97.92 94.5621 98.34C95.9421 98.76 99.7221 97.32 99.7221 97.32L93.9621 71.22C93.9621 71.22 106.562 69.3 106.442 68.52L106.082 66.54L77.7021 72.12Z",fill:"#F2EBEB"}),R.jsx("path",{d:"M109.98 66.4201C110.16 66.3601 110.28 66.3001 110.46 66.2401C111.54 65.7601 114.06 64.6201 114.6 65.5201C115.26 66.6601 117.72 77.3401 117.72 77.3401L130.2 74.8801C130.2 74.8801 127.56 62.6401 128.28 62.1601C129 61.6801 131.82 61.1401 132.54 61.3201C133.26 61.5001 138.18 87.6601 138 89.0401C137.82 90.4201 134.28 90.9601 133.8 90.3601C133.32 89.7601 130.92 77.1601 130.92 77.1601L117.84 79.1401C117.84 79.1401 120.72 93.1201 119.94 93.6601C119.16 94.2001 116.76 94.8001 115.86 94.4401C114.96 94.0801 109.98 66.4201 109.98 66.4201Z",fill:"#F2EBEB"}),R.jsx("path",{d:"M144.841 88.6799C145.681 88.3199 146.521 87.8399 147.181 87.2399C147.841 86.4599 150.901 65.2199 150.901 65.2199C150.901 65.2199 163.441 85.2599 164.041 84.9599C164.641 84.6599 169.321 83.3999 169.321 83.3999C169.321 83.3999 152.701 56.9999 151.381 57.2999L150.061 57.5999C150.061 57.5999 143.641 87.8399 144.841 88.6799Z",fill:"#F2EBEB"}),R.jsx("path",{d:"M147.781 77.3999L159.181 75.1799L158.821 73.4399L148.501 74.9399L147.061 77.5799L147.781 77.3999Z",fill:"#F2EBEB"}),R.jsx("path",{d:"M175.26 81.6601C175.26 81.6601 176.4 81.9601 176.7 81.3601C177 80.7601 172.08 58.0201 172.08 58.0201C172.08 58.0201 192.72 77.9401 194.1 77.8801C194.88 77.8801 195.66 77.7601 196.44 77.6401C196.44 77.6401 191.88 50.6401 191.04 50.2201C190.2 49.8001 188.34 50.7601 188.34 50.7601L192.54 70.5001C192.54 70.5001 174.48 53.1001 173.46 53.4601C172.44 53.8201 169.74 53.8201 168.9 54.3601C168.06 54.9001 175.26 81.6601 175.26 81.6601Z",fill:"#F2EBEB"}),R.jsx("path",{d:"M203.941 76.2001C203.941 76.2001 208.261 76.0201 208.501 75.3001C208.741 74.5801 206.161 63.5401 206.161 63.5401C206.161 63.5401 221.461 73.0201 223.021 72.7201C224.581 72.4201 229.741 71.6401 229.561 71.1601C229.381 70.6801 208.681 60.2401 208.681 60.2401C208.681 60.2401 219.661 46.2601 219.481 45.4201C219.301 44.5801 215.281 45.1201 215.281 45.1201L205.381 60.1201C205.381 60.1201 203.341 47.5201 202.981 47.5201C202.621 47.5201 198.001 48.5401 197.881 49.0201C197.761 49.5001 203.941 76.2001 203.941 76.2001Z",fill:"#F2EBEB"}),R.jsx("path",{d:"M118.08 111.36C118.08 111.36 130.92 124.02 131.4 125.52C131.88 127.02 133.38 135.54 134.28 136.2C135.18 136.86 137.22 135.9 137.88 135.48C138.54 135.06 135.72 124.5 135.72 124.5C135.72 124.5 143.58 105.54 142.56 105.3C141.54 105.06 139.26 105.96 139.26 105.96L133.92 121.8C133.92 121.8 122.82 109.2 121.8 109.44C120.78 109.68 116.94 110.22 118.08 111.36Z",fill:"#F2EBEB"}),R.jsx("path",{d:"M177.84 98.3397C177.84 98.3397 182.94 96.5997 183.24 97.8597C183.54 99.1197 185.28 119.82 189.84 122.16C194.4 124.5 202.2 120 201.78 116.04C201.36 112.08 198 95.5797 198.78 95.0397C199.56 94.4997 201.36 93.7197 201.78 96.4197C202.2 99.1197 207.18 115.62 202.62 120.3C198.06 124.98 185.46 128.1 181.98 119.34C178.5 110.58 177.84 98.3397 177.84 98.3397Z",fill:"#F2EBEB"}),R.jsx("path",{d:"M173.581 111.6C170.881 103.56 162.061 100.2 155.881 102.54C155.881 102.54 147.421 105.24 146.161 113.82C144.901 122.4 151.321 131.52 161.521 130.92C171.721 130.32 176.281 119.64 173.581 111.6ZM162.481 127.74C155.761 127.92 151.201 120.54 151.861 113.76C152.521 106.98 157.981 105.12 157.981 105.12C162.001 103.44 167.941 106.38 169.981 112.8C172.021 119.22 169.201 127.56 162.481 127.74Z",fill:"#F2EBEB"}),R.jsx("path",{d:"M52.2605 112.2L49.5005 111C53.2205 102.3 53.2805 99.9603 53.1605 99.3603C52.2605 99.3603 49.9205 100.62 48.3605 101.46C45.1805 103.14 41.6405 105 38.5805 104.76C36.4805 104.58 35.5805 103.5 35.2205 102.6C33.3005 98.0403 41.8205 87.4203 44.4605 84.3003L46.7405 86.2203C41.8805 91.9803 37.2005 99.4803 37.9805 101.46C38.0405 101.64 38.3405 101.76 38.8205 101.82C40.9805 102 44.2805 100.26 46.9805 98.8203C50.5805 96.9003 53.4605 95.4003 55.2605 97.0803C57.3605 99.0003 55.7405 104.1 52.2605 112.2Z",fill:"#00A1E0"}),R.jsx("path",{d:"M258.481 51.3602L256.621 49.0202C258.541 47.4602 258.961 46.5602 259.021 46.3202C258.781 46.2002 258.001 45.7802 255.481 45.8402C252.241 45.9002 250.381 45.1202 249.841 43.3802C248.941 40.5602 252.661 37.6202 254.881 36.1202C255.721 35.5802 256.081 35.1002 256.021 34.8602C255.961 34.2002 254.221 33.0602 252.841 32.5202L253.921 29.7002C254.701 30.0002 258.721 31.6202 259.021 34.5002C259.201 36.0002 258.361 37.3802 256.561 38.5802C253.741 40.4402 252.781 41.9402 252.721 42.3602C252.841 42.4802 253.501 42.7802 255.421 42.7802C256.801 42.7202 260.941 42.6602 261.841 45.1802C262.501 47.0402 261.421 49.0202 258.481 51.3602Z",fill:"#004E92"}),R.jsx("path",{d:"M49.0805 60.9C48.9605 60.3 45.8405 46.56 54.2405 43.5L55.2605 46.32C49.4405 48.42 52.0205 60.06 52.0205 60.18L49.0805 60.9Z",fill:"#004E92"}),R.jsx("path",{d:"M253.92 164.04L253.44 161.1C259.26 160.2 261.06 159.42 261.54 159C260.88 158.28 258.66 157.02 257.16 156.12C254.28 154.44 250.98 152.58 249.24 150.24C247.8 148.32 248.1 146.94 248.64 146.16C250.68 142.8 260.76 144.18 265.02 144.96L264.48 147.9C258.42 146.82 252.18 146.76 251.22 147.66C251.34 147.96 251.46 148.2 251.64 148.44C252.96 150.24 255.96 151.98 258.6 153.48C262.32 155.64 265.02 157.14 264.6 159.48C264.3 161.7 261.36 162.9 253.92 164.04Z",fill:"#00A1E0"}),R.jsx("path",{d:"M61.0198 156.66C60.2398 156.36 56.2198 154.74 55.9198 151.86C55.7398 150.36 56.5798 148.98 58.3798 147.78C61.1998 145.92 62.1598 144.42 62.2198 144C62.0998 143.88 61.4398 143.52 59.5198 143.58C58.1398 143.64 53.9998 143.7 53.0998 141.18C52.4398 139.44 53.5798 137.46 56.4598 135.12L58.3198 137.46C56.3998 139.02 55.9798 139.92 55.9198 140.16C56.1598 140.28 56.9998 140.7 59.4598 140.64C62.6998 140.58 64.5598 141.42 65.0998 143.1C65.9998 145.92 62.2798 148.86 60.0598 150.36C59.2198 150.9 58.9198 151.38 58.9198 151.62C58.9798 152.28 60.7198 153.42 62.0998 153.96L61.0198 156.66Z",fill:"#00A1E0"}),R.jsx("path",{d:"M258.421 83.2799L257.881 80.3399C259.561 80.0399 260.641 79.3799 261.121 78.4799C261.841 77.1599 261.241 75.2399 260.941 74.6399L263.641 73.3799C263.701 73.4999 265.261 76.9199 263.761 79.8599C262.861 81.5999 261.061 82.7999 258.421 83.2799Z",fill:"#00A1E0"}),R.jsx("path",{d:"M46.5003 195.48C42.8403 190.44 41.9403 188.1 43.0803 186.54C44.4003 184.74 47.2203 185.58 51.1803 186.84C53.8803 187.68 56.8803 188.64 59.0403 188.52C59.2203 188.52 59.4603 188.46 59.6403 188.46C59.0403 187.14 55.5603 183.9 51.7803 181.26L53.5203 178.8C58.1403 182.04 63.4803 186.54 62.6403 189.48C62.4003 190.38 61.5603 191.4 59.1603 191.52C56.5203 191.64 53.1603 190.62 50.2803 189.72C48.7803 189.18 47.2803 188.82 45.7203 188.52C45.9603 189.18 46.6803 190.68 48.9003 193.74L46.5003 195.48Z",fill:"#004E92"}),R.jsx("path",{d:"M194.281 164.46L191.521 163.38C191.821 162.6 192.421 160.2 191.581 158.58C191.101 157.68 190.141 157.02 188.701 156.72L189.301 153.78C191.641 154.26 193.261 155.4 194.221 157.14C195.841 160.32 194.341 164.28 194.281 164.46Z",fill:"#004E92"}),R.jsx("path",{d:"M240.54 218.22L238.86 215.76C238.86 215.76 241.38 214.02 241.68 211.8C241.8 210.6 241.38 209.46 240.54 208.56C237.78 205.32 235.38 200.76 236.88 197.82C237.3 196.92 238.5 195.42 241.56 195.6C242.88 195.66 243.84 195.42 244.08 194.94C244.44 194.22 244.14 192.3 241.98 189.18L244.44 187.5C247.08 191.28 247.8 194.4 246.72 196.44C246.12 197.52 244.68 198.78 241.44 198.66C240.72 198.66 239.82 198.72 239.58 199.26C239.04 200.34 240 203.34 242.88 206.76C244.26 208.26 244.92 210.3 244.68 212.34C244.14 215.76 240.66 218.1 240.54 218.22Z",fill:"#004E92"})]}),C7=({isActive:t=!1})=>R.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M3.5 21.29V6C3.5 5.46957 3.71071 4.96086 4.08579 4.58579C4.46086 4.21071 4.96957 4 5.5 4H19.5C20.0304 4 20.5391 4.21071 20.9142 4.58579C21.2893 4.96086 21.5 5.46957 21.5 6V16C21.5 16.5304 21.2893 17.0391 20.9142 17.4142C20.5391 17.7893 20.0304 18 19.5 18H8.461C8.16123 18 7.86531 18.0675 7.59511 18.1973C7.32491 18.3271 7.08735 18.516 6.9 18.75L4.569 21.664C4.49143 21.7612 4.38556 21.8319 4.26604 21.8664C4.14652 21.9008 4.01926 21.8972 3.90186 21.8561C3.78446 21.815 3.68273 21.7385 3.61073 21.6371C3.53874 21.5357 3.50005 21.4144 3.5 21.29Z",className:t?"ed-stroke-brand":"ed-fill-white",stroke:"#797979",strokeWidth:"1.5"}),R.jsx("path",{d:"M7.5 13H17.5M7.5 9H13.5",className:t?"ed-stroke-brand":"ed-stroke-border-regular",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),T7=({isActive:t=!1})=>R.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8571 7.5H13.7857L13.3357 7.68987L12.5 8.5L11.6643 7.68987L11.2143 7.5H4.14286L3.5 8.13291V20.7911L4.14286 21.424H10.9443L12.05 22.5H12.95L14.0557 21.424H20.8571L21.5 20.7911V8.13291L20.8571 7.5ZM11.8571 20.5633L11.6257 20.3481L11.2143 20.1582H4.78571V8.76582H10.9443L11.8957 9.70253L11.8571 20.5633ZM20.2143 20.1582H13.7857L13.3357 20.3481L13.1557 20.5127V9.6519L14.0557 8.76582H20.2143V20.1582ZM9.92857 12.2975H6.07143C5.3 12.2975 5.3 13.5633 6.07143 13.5633H9.92857C10.7 13.5633 10.7 12.2975 9.92857 12.2975ZM9.92857 17.3608H6.07143C5.3 17.3608 5.3 18.6266 6.07143 18.6266H9.92857C10.7 18.6266 10.7 17.3608 9.92857 17.3608ZM6.07143 14.8291H9.92857C10.7 14.8291 10.7 16.0949 9.92857 16.0949H6.07143C5.29297 16.0949 5.3 14.8291 6.07143 14.8291ZM18.9286 12.2975H15.0714C14.3 12.2975 14.3 13.5633 15.0714 13.5633H18.9286C19.7 13.5633 19.7 12.2975 18.9286 12.2975ZM15.0714 14.8291H18.9286C19.7 14.8291 19.7 16.0949 18.9286 16.0949H15.0714C14.3 16.0949 14.3 14.8291 15.0714 14.8291ZM15.0714 17.3608H18.9286C19.7 17.3608 19.7 18.6266 18.9286 18.6266H15.0714C14.3 18.6266 14.3 17.3608 15.0714 17.3608Z",className:t?"ed-fill-brand":"ed-fill-border-regular"}),R.jsx("path",{d:"M11.3634 7.22827C11.1775 8.71234 10.1635 9.30535 9.72555 9.73582C9.28695 10.1676 9.3655 10.2535 9.39496 10.8867C9.39988 10.965 9.38801 11.0435 9.36008 11.1173C9.33216 11.191 9.28877 11.2585 9.23259 11.3156C9.17641 11.3727 9.10863 11.4182 9.03343 11.4492C8.95823 11.4802 8.87719 11.4961 8.79532 11.496H7.05532C6.97351 11.4959 6.89258 11.4798 6.81748 11.4487C6.74237 11.4175 6.67467 11.3721 6.6185 11.3151C6.56232 11.2581 6.51886 11.1907 6.49075 11.117C6.46265 11.0434 6.45049 10.965 6.45503 10.8867C6.45503 10.2654 6.51525 10.1211 6.12509 9.73582C5.62757 9.25891 4.4571 8.58558 4.4571 6.73378C4.45411 6.27381 4.55056 5.81824 4.74036 5.39577C4.93017 4.9733 5.20922 4.59311 5.55992 4.27916C5.91062 3.9652 6.32536 3.72429 6.77801 3.57161C7.23066 3.41894 7.71139 3.3578 8.18991 3.39206C8.66843 3.42632 9.13436 3.55524 9.55833 3.77068C9.98229 3.98612 10.3551 4.28342 10.6533 4.64383C10.9514 5.00424 11.1684 5.41996 11.2907 5.86476C11.4129 6.30957 11.4377 6.77382 11.3634 7.22827Z",fill:"white",className:t?"ed-stroke-brand":"ed-stroke-border-regular",strokeLinecap:"round",strokeLinejoin:"round"}),R.jsx("path",{d:"M6.91717 11.4599V12.4087C6.91717 12.6679 7.06773 12.8806 7.25299 12.8806H8.59694C8.78351 12.8806 8.93342 12.6672 8.93342 12.4087V11.4599M10.5 2.5L11.5 1.5M8 1L8 2M4.5 1.5L5.5 2.5",className:t?"ed-stroke-brand":"ed-stroke-border-regular",strokeLinecap:"round",strokeLinejoin:"round"})]}),O7=()=>R.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M4.875 0C4.04662 0 3.375 0.671625 3.375 1.5V22.5C3.375 23.3284 4.04662 24 4.875 24H19.125C19.9534 24 20.625 23.3284 20.625 22.5V6L14.625 0H4.875Z",fill:"#E2E7F0"}),R.jsx("path",{d:"M16.125 6H20.625L14.625 0V4.5C14.625 5.32837 15.2966 6 16.125 6ZM9 7.5H15C15.207 7.5 15.375 7.668 15.375 7.875C15.375 8.082 15.207 8.25 15 8.25H9C8.793 8.25 8.625 8.082 8.625 7.875C8.625 7.668 8.793 7.5 9 7.5ZM6.75 15.375H17.25C17.457 15.375 17.625 15.543 17.625 15.75C17.625 15.957 17.457 16.125 17.25 16.125H6.75C6.543 16.125 6.375 15.957 6.375 15.75C6.375 15.543 6.543 15.375 6.75 15.375ZM6.75 19.875H12.75C12.957 19.875 13.125 20.043 13.125 20.25C13.125 20.457 12.957 20.625 12.75 20.625H6.75C6.543 20.625 6.375 20.457 6.375 20.25C6.375 20.043 6.543 19.875 6.75 19.875ZM6.75 17.625H17.25C17.457 17.625 17.625 17.793 17.625 18C17.625 18.207 17.457 18.375 17.25 18.375H6.75C6.543 18.375 6.375 18.207 6.375 18C6.375 17.793 6.543 17.625 6.75 17.625ZM6.75 13.125H17.25C17.457 13.125 17.625 13.293 17.625 13.5C17.625 13.707 17.457 13.875 17.25 13.875H6.75C6.543 13.875 6.375 13.707 6.375 13.5C6.375 13.293 6.543 13.125 6.75 13.125ZM6.75 10.875H17.25C17.457 10.875 17.625 11.043 17.625 11.25C17.625 11.457 17.457 11.625 17.25 11.625H6.75C6.543 11.625 6.375 11.457 6.375 11.25C6.375 11.043 6.543 10.875 6.75 10.875Z",fill:"#9DACBA"}),R.jsx("path",{d:"M16.125 6L19.6537 9.52875C19.7239 9.59855 19.7796 9.68153 19.8175 9.77292C19.8555 9.8643 19.875 9.96229 19.875 10.0612V22.5C19.875 22.9144 19.5394 23.25 19.125 23.25H5.625C5.21062 23.25 4.875 23.5856 4.875 24H19.125C19.9534 24 20.625 23.3284 20.625 22.5V6H16.125Z",fill:"#C9D5E3"})]});var jv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_FILE_DOWNLOADING_URL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FileDownloadingInputDataType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getFileDownloadingURLForWidget"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[]}]}}],loc:{start:0,end:134}};jv.loc.source={body:`query GET_FILE_DOWNLOADING_URL($queryData: FileDownloadingInputDataType!) {
|
|
193
|
+
getFileDownloadingURLForWidget(queryData: $queryData)
|
|
194
|
+
}
|
|
195
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function xc(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){xc(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){xc(n,e)}),t.definitions&&t.definitions.forEach(function(n){xc(n,e)})}var $v={};(function(){jv.definitions.forEach(function(e){if(e.name){var r=new Set;xc(e,r),$v[e.name.value]=r}})})();function lE(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function R7(t,e){var r={kind:t.kind,definitions:[lE(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=$v[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=$v[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=lE(t,u);l&&r.definitions.push(l)}),r}const k7=R7(jv,"GET_FILE_DOWNLOADING_URL"),A7=({filesData:t=[]})=>{var d;const[e,r]=q.useState(!1),n=t==null?void 0:t.filter(h=>/\.(jpg|jpeg|png|gif|webp)$/i.test(h.name)),i=t==null?void 0:t.filter(h=>!/\.(jpg|jpeg|png|gif|webp)$/i.test(h.name)),a=()=>r(!0),o=e?n:n==null?void 0:n.slice(0,1),u=lt.size(n)-2,[l]=Ra(k7,{errorPolicy:"all",fetchPolicy:"no-cache"}),f=async h=>{const v=(await l({variables:{queryData:{file_id:h,content_disposition:"inline"}}})).data.getFileDownloadingURLForWidget;window.open(v,"_blank")};return R.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-3",children:[lt.size(n)>0&&R.jsxs("div",{className:"ed-grid ed-grid-cols-2 ed-gap-2.5",children:[o.map(h=>R.jsx(Ji,{path:h.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"},h==null?void 0:h.id)),!e&&u>0&&R.jsxs("div",{role:"button",tabIndex:0,className:"ed-relative cursor-pointer",onClick:a,children:[R.jsx(Ji,{path:(d=n[2])==null?void 0:d.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"}),R.jsx("div",{className:"ed-w-full ed-h-full ed-bg-black/15 ed-absolute ed-top-0 ed-left-0 ed-rounded",children:R.jsx("div",{className:"ed-bg-white ed-h-8 ed-w-8 ed-flex ed-items-center ed-justify-center ed-rounded-full ed-absolute ed-top-1/2 ed-left-1/2 ed--translate-x-1/2 ed--translate-y-1/2",children:R.jsxs("span",{className:"ed-text-12 ed-text-border-dark ed-font-semibold",children:["+",u]})})})]})]}),lt.size(i)>0&&R.jsx("div",{className:"ed-flex ed-flex-col ed-gap-2.5",children:i.map(h=>R.jsxs("div",{className:"ed-p-2.5 ed-bg-white-light ed-rounded-lg ed-flex ed-items-center ed-justify-between",children:[R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[R.jsx(O7,{}),R.jsx("p",{className:"ed-text-12 ed-font-semibold ed-text-border-dark",children:h.name})]}),R.jsx("button",{type:"button",onClick:()=>f(h==null?void 0:h.id),children:R.jsx(Tp,{className:"ed-text-brand-link ed-size-5"})})]},h==null?void 0:h.id))})]})},cE=({message:t="",filesData:e=[],timeStamp:r="",author:n="",isFromUser:i=!1,isReplying:a=!1})=>{const o=()=>R.jsxs("div",{className:`ed-p-2.5 ${i?"ed-bg-blue-light":"ed-bg-white-light"} ed-rounded-lg ed-mt-2`,children:[R.jsx("p",{className:"ed-text-border-dark",children:t}),R.jsx(A7,{filesData:e})]});return i?R.jsx("div",{className:"ed-max-w-[85%] ed-w-max ed-ml-auto",children:o()}):R.jsxs("div",{className:"ed-flex ed-gap-4 ed-my-4 ed-max-w-[85%] ed-w-max",children:[R.jsx("div",{children:R.jsx(Ji,{className:"ed-size-7 ed-object-cover ed-rounded-full",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:n==null?void 0:n.logo_icon_key,defaultImageName:nu(n==null?void 0:n.name)})}),R.jsxs("div",{children:[R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[R.jsx("p",{className:"ed-text-border-regular",children:n==null?void 0:n.name}),R.jsx("span",{className:"ed-text-border ed-font-medium",children:r})]}),a?R.jsx("div",{className:"ed-py-4",children:R.jsx(Rw,{})}):o()]})]})};var qv={exports:{}};/*!
|
|
196
|
+
Copyright (c) 2018 Jed Watson.
|
|
197
|
+
Licensed under the MIT License (MIT), see
|
|
198
|
+
http://jedwatson.github.io/classnames
|
|
199
|
+
*/var fE;function P7(){return fE||(fE=1,function(t){(function(){var e={}.hasOwnProperty;function r(){for(var a="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(a=i(a,n(u)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var u in a)e.call(a,u)&&a[u]&&(o=i(o,u));return o}function i(a,o){return o?a?a+" "+o:a+o:a}t.exports?(r.default=r,t.exports=r):window.classNames=r})()}(qv)),qv.exports}var N7=P7();const Dr=wi(N7);function ai(){return ai=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ai.apply(null,arguments)}function nt(t){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(t)}var I7=Symbol.for("react.element"),L7=Symbol.for("react.transitional.element"),M7=Symbol.for("react.fragment");function dE(t){return t&&nt(t)==="object"&&(t.$$typeof===I7||t.$$typeof===L7)&&t.type===M7}function Cc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return q.Children.forEach(t,function(n){n==null&&!e.keepEmpty||(Array.isArray(n)?r=r.concat(Cc(n)):dE(n)&&n.props?r=r.concat(Cc(n.props.children,e)):r.push(n))}),r}var Uv={},zv=[],D7=function(e){zv.push(e)};function Wo(t,e){if(!t&&console!==void 0){var r=zv.reduce(function(n,i){return i(n??"","warning")},e);r&&console.error("Warning: ".concat(r))}}function F7(t,e){if(!t&&console!==void 0){var r=zv.reduce(function(n,i){return i(n??"","note")},e);r&&console.warn("Note: ".concat(r))}}function j7(){Uv={}}function hE(t,e,r){!e&&!Uv[r]&&(t(!1,r),Uv[r]=!0)}function Kt(t,e){hE(Wo,t,e)}function $7(t,e){hE(F7,t,e)}Kt.preMessage=D7,Kt.resetWarned=j7,Kt.noteOnce=$7;function q7(t,e){if(nt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pE(t){var e=q7(t,"string");return nt(e)=="symbol"?e:e+""}function se(t,e,r){return(e=pE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ve(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vE(Object(r),!0).forEach(function(n){se(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vE(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Eu(t){return t instanceof HTMLElement||t instanceof SVGElement}function U7(t){return t&&nt(t)==="object"&&Eu(t.nativeElement)?t.nativeElement:Eu(t)?t:null}function Tc(t){var e=U7(t);if(e)return e;if(t instanceof q.Component){var r;return(r=ti.findDOMNode)===null||r===void 0?void 0:r.call(ti,t)}return null}var Hv={exports:{}},Nt={},gE;function z7(){if(gE)return Nt;gE=1;/**
|
|
200
|
+
* @license React
|
|
201
|
+
* react-is.development.js
|
|
202
|
+
*
|
|
203
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the MIT license found in the
|
|
206
|
+
* LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/return function(){var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=!1,y=!1,b=!1,w=!1,E=!1,S;S=Symbol.for("react.module.reference");function C(oe){return!!(typeof oe=="string"||typeof oe=="function"||oe===r||oe===i||E||oe===n||oe===f||oe===d||w||oe===v||m||y||b||typeof oe=="object"&&oe!==null&&(oe.$$typeof===p||oe.$$typeof===h||oe.$$typeof===a||oe.$$typeof===o||oe.$$typeof===l||oe.$$typeof===S||oe.getModuleId!==void 0))}function _(oe){if(typeof oe=="object"&&oe!==null){var xe=oe.$$typeof;switch(xe){case t:var Fe=oe.type;switch(Fe){case r:case i:case n:case f:case d:return Fe;default:var He=Fe&&Fe.$$typeof;switch(He){case u:case o:case l:case p:case h:case a:return He;default:return xe}}case e:return xe}}}var T=o,O=a,k=t,P=l,N=r,M=p,z=h,H=e,L=i,F=n,U=f,Y=d,V=!1,K=!1;function $(oe){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(oe){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(oe){return _(oe)===o}function ie(oe){return _(oe)===a}function te(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function fe(oe){return _(oe)===l}function ue(oe){return _(oe)===r}function W(oe){return _(oe)===p}function de(oe){return _(oe)===h}function ye(oe){return _(oe)===e}function Se(oe){return _(oe)===i}function J(oe){return _(oe)===n}function j(oe){return _(oe)===f}function Re(oe){return _(oe)===d}Nt.ContextConsumer=T,Nt.ContextProvider=O,Nt.Element=k,Nt.ForwardRef=P,Nt.Fragment=N,Nt.Lazy=M,Nt.Memo=z,Nt.Portal=H,Nt.Profiler=L,Nt.StrictMode=F,Nt.Suspense=U,Nt.SuspenseList=Y,Nt.isAsyncMode=$,Nt.isConcurrentMode=Q,Nt.isContextConsumer=ae,Nt.isContextProvider=ie,Nt.isElement=te,Nt.isForwardRef=fe,Nt.isFragment=ue,Nt.isLazy=W,Nt.isMemo=de,Nt.isPortal=ye,Nt.isProfiler=Se,Nt.isStrictMode=J,Nt.isSuspense=j,Nt.isSuspenseList=Re,Nt.isValidElementType=C,Nt.typeOf=_}(),Nt}var mE;function H7(){return mE||(mE=1,Hv.exports=z7()),Hv.exports}var Vv=H7();function V7(t,e,r){var n=Z.useRef({});return(!("value"in n.current)||r(n.current.condition,e))&&(n.current.value=t(),n.current.condition=e),n.current.value}var B7=Number(q.version.split(".")[0]),Bv=function(e,r){typeof e=="function"?e(r):nt(e)==="object"&&e&&"current"in e&&(e.current=r)},yE=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=r.filter(Boolean);return i.length<=1?i[0]:function(a){r.forEach(function(o){Bv(o,a)})}},Wv=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return V7(function(){return yE.apply(void 0,r)},r,function(i,a){return i.length!==a.length||i.every(function(o,u){return o!==a[u]})})},Oc=function(e){var r,n;if(!e)return!1;if(bE(e)&&B7>=19)return!0;var i=Vv.isMemo(e)?e.type.type:e.type;return!(typeof i=="function"&&!((r=i.prototype)!==null&&r!==void 0&&r.render)&&i.$$typeof!==Vv.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==Vv.ForwardRef)};function bE(t){return q.isValidElement(t)&&!dE(t)}var Gv=function(e){if(e&&bE(e)){var r=e;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},Qv=Z.createContext(null);function W7(t){var e=t.children,r=t.onBatchResize,n=Z.useRef(0),i=Z.useRef([]),a=Z.useContext(Qv),o=Z.useCallback(function(u,l,f){n.current+=1;var d=n.current;i.current.push({size:u,element:l,data:f}),Promise.resolve().then(function(){d===n.current&&(r==null||r(i.current),i.current=[])}),a==null||a(u,l,f)},[r,a]);return Z.createElement(Qv.Provider,{value:o},e)}var _E=function(){if(typeof Map<"u")return Map;function t(e,r){var n=-1;return e.some(function(i,a){return i[0]===r?(n=a,!0):!1}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(r){var n=t(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(r,n){var i=t(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},e.prototype.delete=function(r){var n=this.__entries__,i=t(n,r);~i&&n.splice(i,1)},e.prototype.has=function(r){return!!~t(this.__entries__,r)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];r.call(n,o[1],o[0])}},e}()}(),Yv=typeof window<"u"&&typeof document<"u"&&window.document===document,Rc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),G7=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Rc):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),Q7=2;function Y7(t,e){var r=!1,n=!1,i=0;function a(){r&&(r=!1,t()),n&&u()}function o(){G7(a)}function u(){var l=Date.now();if(r){if(l-i<Q7)return;n=!0}else r=!0,n=!1,setTimeout(o,e);i=l}return u}var K7=20,X7=["top","right","bottom","left","width","height","size","weight"],Z7=typeof MutationObserver<"u",J7=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Y7(this.refresh.bind(this),K7)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var r=this.observers_,n=r.indexOf(e);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return e.forEach(function(r){return r.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!Yv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Z7?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!Yv||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var r=e.propertyName,n=r===void 0?"":r,i=X7.some(function(a){return!!~n.indexOf(a)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),wE=function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},Go=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Rc},EE=Ac(0,0,0,0);function kc(t){return parseFloat(t)||0}function SE(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce(function(n,i){var a=t["border-"+i+"-width"];return n+kc(a)},0)}function eP(t){for(var e=["top","right","bottom","left"],r={},n=0,i=e;n<i.length;n++){var a=i[n],o=t["padding-"+a];r[a]=kc(o)}return r}function tP(t){var e=t.getBBox();return Ac(0,0,e.width,e.height)}function rP(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return EE;var n=Go(t).getComputedStyle(t),i=eP(n),a=i.left+i.right,o=i.top+i.bottom,u=kc(n.width),l=kc(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+a)!==e&&(u-=SE(n,"left","right")+a),Math.round(l+o)!==r&&(l-=SE(n,"top","bottom")+o)),!iP(t)){var f=Math.round(u+a)-e,d=Math.round(l+o)-r;Math.abs(f)!==1&&(u-=f),Math.abs(d)!==1&&(l-=d)}return Ac(i.left,i.top,u,l)}var nP=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Go(t).SVGGraphicsElement}:function(t){return t instanceof Go(t).SVGElement&&typeof t.getBBox=="function"}}();function iP(t){return t===Go(t).document.documentElement}function aP(t){return Yv?nP(t)?tP(t):rP(t):EE}function oP(t){var e=t.x,r=t.y,n=t.width,i=t.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return wE(o,{x:e,y:r,width:n,height:i,top:r,right:e+n,bottom:i+r,left:e}),o}function Ac(t,e,r,n){return{x:t,y:e,width:r,height:n}}var sP=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ac(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=aP(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),uP=function(){function t(e,r){var n=oP(r);wE(this,{target:e,contentRect:n})}return t}(),lP=function(){function t(e,r,n){if(this.activeObservations_=[],this.observations_=new _E,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=r,this.callbackCtx_=n}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Go(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)||(r.set(e,new sP(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Go(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)&&(r.delete(e),r.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&e.activeObservations_.push(r)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new uP(n.target,n.broadcastRect())});this.callback_.call(e,r,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),xE=typeof WeakMap<"u"?new WeakMap:new _E,CE=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=J7.getInstance(),n=new lP(e,r,this);xE.set(this,n)}return t}();["observe","unobserve","disconnect"].forEach(function(t){CE.prototype[t]=function(){var e;return(e=xE.get(this))[t].apply(e,arguments)}});var cP=function(){return typeof Rc.ResizeObserver<"u"?Rc.ResizeObserver:CE}(),ea=new Map;function fP(t){t.forEach(function(e){var r,n=e.target;(r=ea.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var TE=new cP(fP);function dP(t,e){ea.has(t)||(ea.set(t,new Set),TE.observe(t)),ea.get(t).add(e)}function hP(t,e){ea.has(t)&&(ea.get(t).delete(e),ea.get(t).size||(TE.unobserve(t),ea.delete(t)))}function kr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function OE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pE(n.key),n)}}function Ar(t,e,r){return e&&OE(t.prototype,e),r&&OE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Su(t,e){return Su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Su(t,e)}function $a(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Su(t,e)}function xu(t){return xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xu(t)}function Kv(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kv=function(){return!!t})()}function ft(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pP(t,e){if(e&&(nt(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ft(t)}function qa(t){var e=Kv();return function(){var r,n=xu(t);if(e){var i=xu(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return pP(this,r)}}var vP=function(t){$a(r,t);var e=qa(r);function r(){return kr(this,r),e.apply(this,arguments)}return Ar(r,[{key:"render",value:function(){return this.props.children}}]),r}(Z.Component);function gP(t,e){var r=t.children,n=t.disabled,i=Z.useRef(null),a=Z.useRef(null),o=Z.useContext(Qv),u=typeof r=="function",l=u?r(i):r,f=Z.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!u&&Z.isValidElement(l)&&Oc(l),h=d?Gv(l):null,p=Wv(h,i),v=function(){var w;return Tc(i.current)||(i.current&&nt(i.current)==="object"?Tc((w=i.current)===null||w===void 0?void 0:w.nativeElement):null)||Tc(a.current)};Z.useImperativeHandle(e,function(){return v()});var m=Z.useRef(t);m.current=t;var y=Z.useCallback(function(b){var w=m.current,E=w.onResize,S=w.data,C=b.getBoundingClientRect(),_=C.width,T=C.height,O=b.offsetWidth,k=b.offsetHeight,P=Math.floor(_),N=Math.floor(T);if(f.current.width!==P||f.current.height!==N||f.current.offsetWidth!==O||f.current.offsetHeight!==k){var M={width:P,height:N,offsetWidth:O,offsetHeight:k};f.current=M;var z=O===Math.round(_)?_:O,H=k===Math.round(T)?T:k,L=ve(ve({},M),{},{offsetWidth:z,offsetHeight:H});o==null||o(L,b,S),E&&Promise.resolve().then(function(){E(L,b)})}},[]);return Z.useEffect(function(){var b=v();return b&&!n&&dP(b,y),function(){return hP(b,y)}},[i.current,n]),Z.createElement(vP,{ref:a},d?Z.cloneElement(l,{ref:p}):l)}var RE=Z.forwardRef(gP);RE.displayName="SingleObserver";var mP="rc-observer-key";function yP(t,e){var r=t.children,n=typeof r=="function"?[r]:Cc(r);return n.length>1?Wo(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Wo(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),n.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat(mP,"-").concat(a);return Z.createElement(RE,ai({},t,{key:o,ref:a===0?e:void 0}),i)})}var Pc=Z.forwardRef(yP);Pc.displayName="ResizeObserver",Pc.Collection=W7;function Xv(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function bP(t){if(Array.isArray(t))return Xv(t)}function kE(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Zv(t,e){if(t){if(typeof t=="string")return Xv(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xv(t,e):void 0}}function _P(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
208
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Be(t){return bP(t)||kE(t)||Zv(t)||_P()}var AE=function(e){return+setTimeout(e,16)},PE=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(AE=function(e){return window.requestAnimationFrame(e)},PE=function(e){return window.cancelAnimationFrame(e)});var NE=0,Nc=new Map;function IE(t){Nc.delete(t)}var Ic=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;NE+=1;var n=NE;function i(a){if(a===0)IE(n),e();else{var o=AE(function(){i(a-1)});Nc.set(n,o)}}return i(r),n};Ic.cancel=function(t){var e=Nc.get(t);return IE(t),PE(e)},Ic.ids=function(){return Nc};function LE(t){if(Array.isArray(t))return t}function wP(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],l=!0,f=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(d){f=!0,i=d}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(f)throw i}}return u}}function ME(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
209
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Le(t,e){return LE(t)||wP(t,e)||Zv(t,e)||ME()}function Cu(t){for(var e=0,r,n=0,i=t.length;i>=4;++n,i-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function an(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function EP(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var r=e;r;){if(r===t)return!0;r=r.parentNode}return!1}var DE="data-rc-order",FE="data-rc-priority",SP="rc-util-key",Jv=new Map;function jE(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):SP}function Lc(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function xP(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function eg(t){return Array.from((Jv.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function $E(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!an())return null;var r=e.csp,n=e.prepend,i=e.priority,a=i===void 0?0:i,o=xP(n),u=o==="prependQueue",l=document.createElement("style");l.setAttribute(DE,o),u&&a&&l.setAttribute(FE,"".concat(a)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=t;var f=Lc(e),d=f.firstChild;if(n){if(u){var h=(e.styles||eg(f)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(DE)))return!1;var v=Number(p.getAttribute(FE)||0);return a>=v});if(h.length)return f.insertBefore(l,h[h.length-1].nextSibling),l}f.insertBefore(l,d)}else f.appendChild(l);return l}function qE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Lc(e);return(e.styles||eg(r)).find(function(n){return n.getAttribute(jE(e))===t})}function Tu(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=qE(t,e);if(r){var n=Lc(e);n.removeChild(r)}}function CP(t,e){var r=Jv.get(t);if(!r||!EP(document,r)){var n=$E("",e),i=n.parentNode;Jv.set(t,i),t.removeChild(n)}}function Ua(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Lc(r),i=eg(n),a=ve(ve({},r),{},{styles:i});CP(n,a);var o=qE(e,a);if(o){var u,l;if((u=a.csp)!==null&&u!==void 0&&u.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var f;o.nonce=(f=a.csp)===null||f===void 0?void 0:f.nonce}return o.innerHTML!==t&&(o.innerHTML=t),o}var d=$E(t,a);return d.setAttribute(jE(a),e),d}function TP(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function za(t,e){if(t==null)return{};var r,n,i=TP(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function UE(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(a,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(a);if(Kt(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(r&&u>1)return!1;n.add(a);var f=u+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var d=0;d<a.length;d++)if(!i(a[d],o[d],f))return!1;return!0}if(a&&o&&nt(a)==="object"&&nt(o)==="object"){var h=Object.keys(a);return h.length!==Object.keys(o).length?!1:h.every(function(p){return i(a[p],o[p],f)})}return!1}return i(t,e)}var OP="%";function tg(t){return t.join(OP)}var RP=function(){function t(e){kr(this,t),se(this,"instanceId",void 0),se(this,"cache",new Map),this.instanceId=e}return Ar(t,[{key:"get",value:function(r){return this.opGet(tg(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(tg(r),n)}},{key:"opUpdate",value:function(r,n){var i=this.cache.get(r),a=n(i);a===null?this.cache.delete(r):this.cache.set(r,a)}}]),t}(),Qo="data-token-hash",Bn="data-css-hash",kP="data-cache-path",ta="__cssinjs_instance__";function AP(){var t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(Bn,"]"))||[],r=document.head.firstChild;Array.from(e).forEach(function(i){i[ta]=i[ta]||t,i[ta]===t&&document.head.insertBefore(i,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Bn,"]"))).forEach(function(i){var a=i.getAttribute(Bn);if(n[a]){if(i[ta]===t){var o;(o=i.parentNode)===null||o===void 0||o.removeChild(i)}}else n[a]=!0})}return new RP(t)}var Mc=Z.createContext({hashPriority:"low",cache:AP(),defaultCache:!0});function PP(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}var rg=function(){function t(){kr(this,t),se(this,"cache",void 0),se(this,"keys",void 0),se(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ar(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return r.forEach(function(u){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(u)}}),(n=o)!==null&&n!==void 0&&n.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(f,d){var h=Le(f,2),p=h[1];return i.internalGet(d)[1]<p?[d,i.internalGet(d)[1]]:f},[this.keys[0],this.cacheCallTimes]),o=Le(a,1),u=o[0];this.delete(u)}this.keys.push(r)}var l=this.cache;r.forEach(function(f,d){if(d===r.length-1)l.set(f,{value:[n,i.cacheCallTimes++]});else{var h=l.get(f);h?h.map||(h.map=new Map):l.set(f,{map:new Map}),l=l.get(f).map}})}},{key:"deleteByPath",value:function(r,n){var i=r.get(n[0]);if(n.length===1){var a;return i.map?r.set(n[0],{map:i.map}):r.delete(n[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var o=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),o}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!PP(n,r)}),this.deleteByPath(this.cache,r)}}]),t}();se(rg,"MAX_CACHE_SIZE",20),se(rg,"MAX_CACHE_OFFSET",5);var zE=0,HE=function(){function t(e){kr(this,t),se(this,"derivatives",void 0),se(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=zE,e.length===0&&Wo(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),zE+=1}return Ar(t,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),t}(),ng=new rg;function NP(t){var e=Array.isArray(t)?t:[t];return ng.has(e)||ng.set(e,new HE(e)),ng.get(e)}var IP=new WeakMap,ig={};function LP(t,e){for(var r=IP,n=0;n<e.length;n+=1){var i=e[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(ig)||r.set(ig,t()),r.get(ig)}var VE=new WeakMap;function Ou(t){var e=VE.get(t)||"";return e||(Object.keys(t).forEach(function(r){var n=t[r];e+=r,n instanceof HE?e+=n.id:n&&nt(n)==="object"?e+=Ou(n):e+=n}),e=Cu(e),VE.set(t,e)),e}function BE(t,e){return Cu("".concat(e,"_").concat(Ou(t)))}var ag=an();function Ha(t){return typeof t=="number"?"".concat(t,"px"):t}function Dc(t,e,r){var n,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return t;var o=ve(ve({},i),{},(n={},se(n,Qo,e),se(n,Bn,r),n)),u=Object.keys(o).map(function(l){var f=o[l];return f?"".concat(l,'="').concat(f,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(u,">").concat(t,"</style>")}var Fc=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},MP=function(e,r,n){return Object.keys(e).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(i){var a=Le(i,2),o=a[0],u=a[1];return"".concat(o,":").concat(u,";")}).join(""),"}"):""},WE=function(e,r,n){var i={},a={};return Object.entries(e).forEach(function(o){var u,l,f=Le(o,2),d=f[0],h=f[1];if(n!=null&&(u=n.preserve)!==null&&u!==void 0&&u[d])a[d]=h;else if((typeof h=="string"||typeof h=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[d])){var p,v=Fc(d,n==null?void 0:n.prefix);i[v]=typeof h=="number"&&!(n!=null&&(p=n.unitless)!==null&&p!==void 0&&p[d])?"".concat(h,"px"):String(h),a[d]="var(".concat(v,")")}}),[a,MP(i,r,{scope:n==null?void 0:n.scope})]},GE=an()?Z.useLayoutEffect:Z.useEffect,Fr=function(e,r){var n=Z.useRef(!0);GE(function(){return e(n.current)},r),GE(function(){return n.current=!1,function(){n.current=!0}},[])},QE=function(e,r){Fr(function(n){if(!n)return e()},r)},DP=ve({},Z),YE=DP.useInsertionEffect,FP=function(e,r,n){Z.useMemo(e,n),Fr(function(){return r(!0)},n)},jP=YE?function(t,e,r){return YE(function(){return t(),e()},r)}:FP,$P=ve({},Z),qP=$P.useInsertionEffect,UP=function(e){var r=[],n=!1;function i(a){if(n){Wo(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(a)}return Z.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(a){return a()})}},e),i},zP=function(){return function(e){e()}},HP=typeof qP<"u"?UP:zP,og=!1;function VP(){return og}const BP=VP;if(typeof module<"u"&&module&&module.hot&&typeof window<"u"){var jc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(jc&&typeof jc.webpackHotUpdate=="function"){var WP=jc.webpackHotUpdate;jc.webpackHotUpdate=function(){return og=!0,setTimeout(function(){og=!1},0),WP.apply(void 0,arguments)}}}function sg(t,e,r,n,i){var a=Z.useContext(Mc),o=a.cache,u=[t].concat(Be(e)),l=tg(u),f=HP([l]),d=BP(),h=function(y){o.opUpdate(l,function(b){var w=b||[void 0,void 0],E=Le(w,2),S=E[0],C=S===void 0?0:S,_=E[1],T=_;_&&d&&(n==null||n(T,d),T=null);var O=T||r(),k=[C,O];return y?y(k):k})};Z.useMemo(function(){h()},[l]);var p=o.opGet(l);p||(h(),p=o.opGet(l));var v=p[1];return jP(function(){i==null||i(v)},function(m){return h(function(y){var b=Le(y,2),w=b[0],E=b[1];return m&&w===0&&(i==null||i(v)),[w+1,E]}),function(){o.opUpdate(l,function(y){var b=y||[],w=Le(b,2),E=w[0],S=E===void 0?0:E,C=w[1],_=S-1;return _===0?(f(function(){(m||!o.opGet(l))&&(n==null||n(C,!1))}),null):[S-1,C]})}},[l]),v}var GP={},QP="css-dev-only-do-not-override",Va=new Map;function YP(t){Va.set(t,(Va.get(t)||0)+1)}function KP(t,e){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Qo,'="').concat(t,'"]'));r.forEach(function(n){if(n[ta]===e){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var XP=0;function ZP(t,e){Va.set(t,(Va.get(t)||0)-1);var r=Array.from(Va.keys()),n=r.filter(function(i){var a=Va.get(i)||0;return a<=0});r.length-n.length>XP&&n.forEach(function(i){KP(i,e),Va.delete(i)})}var JP=function(e,r,n,i){var a=n.getDerivativeToken(e),o=ve(ve({},a),r);return i&&(o=i(o)),o},KE="token";function eN(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=q.useContext(Mc),i=n.cache.instanceId,a=n.container,o=r.salt,u=o===void 0?"":o,l=r.override,f=l===void 0?GP:l,d=r.formatToken,h=r.getComputedToken,p=r.cssVar,v=LP(function(){return Object.assign.apply(Object,[{}].concat(Be(e)))},e),m=Ou(v),y=Ou(f),b=p?Ou(p):"",w=sg(KE,[u,t.id,m,y,b],function(){var E,S=h?h(v,f,t):JP(v,f,t,d),C=ve({},S),_="";if(p){var T=WE(S,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),O=Le(T,2);S=O[0],_=O[1]}var k=BE(S,u);S._tokenKey=k,C._tokenKey=BE(C,u);var P=(E=p==null?void 0:p.key)!==null&&E!==void 0?E:k;S._themeKey=P,YP(P);var N="".concat(QP,"-").concat(Cu(k));return S._hashId=N,[S,N,C,_,(p==null?void 0:p.key)||""]},function(E){ZP(E[0]._themeKey,i)},function(E){var S=Le(E,4),C=S[0],_=S[3];if(p&&_){var T=Ua(_,Cu("css-variables-".concat(C._themeKey)),{mark:Bn,prepend:"queue",attachTo:a,priority:-999});T[ta]=i,T.setAttribute(Qo,C._themeKey)}});return w}var tN=function(e,r,n){var i=Le(e,5),a=i[2],o=i[3],u=i[4],l=n||{},f=l.plain;if(!o)return null;var d=a._tokenKey,h=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},v=Dc(o,u,d,p,f);return[h,d,v]},rN={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},XE="comm",ZE="rule",JE="decl",nN="@import",iN="@namespace",aN="@keyframes",oN="@layer",eS=Math.abs,ug=String.fromCharCode;function tS(t){return t.trim()}function $c(t,e,r){return t.replace(e,r)}function sN(t,e,r){return t.indexOf(e,r)}function Yo(t,e){return t.charCodeAt(e)|0}function Ko(t,e,r){return t.slice(e,r)}function oi(t){return t.length}function uN(t){return t.length}function qc(t,e){return e.push(t),t}var Uc=1,Xo=1,rS=0,En=0,sr=0,Zo="";function lg(t,e,r,n,i,a,o,u){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:Uc,column:Xo,length:o,return:"",siblings:u}}function lN(){return sr}function cN(){return sr=En>0?Yo(Zo,--En):0,Xo--,sr===10&&(Xo=1,Uc--),sr}function Wn(){return sr=En<rS?Yo(Zo,En++):0,Xo++,sr===10&&(Xo=1,Uc++),sr}function ra(){return Yo(Zo,En)}function zc(){return En}function Hc(t,e){return Ko(Zo,t,e)}function Ru(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fN(t){return Uc=Xo=1,rS=oi(Zo=t),En=0,[]}function dN(t){return Zo="",t}function cg(t){return tS(Hc(En-1,fg(t===91?t+2:t===40?t+1:t)))}function hN(t){for(;(sr=ra())&&sr<33;)Wn();return Ru(t)>2||Ru(sr)>3?"":" "}function pN(t,e){for(;--e&&Wn()&&!(sr<48||sr>102||sr>57&&sr<65||sr>70&&sr<97););return Hc(t,zc()+(e<6&&ra()==32&&Wn()==32))}function fg(t){for(;Wn();)switch(sr){case t:return En;case 34:case 39:t!==34&&t!==39&&fg(sr);break;case 40:t===41&&fg(t);break;case 92:Wn();break}return En}function vN(t,e){for(;Wn()&&t+sr!==57;)if(t+sr===84&&ra()===47)break;return"/*"+Hc(e,En-1)+"*"+ug(t===47?t:Wn())}function gN(t){for(;!Ru(ra());)Wn();return Hc(t,En)}function mN(t){return dN(Vc("",null,null,null,[""],t=fN(t),0,[0],t))}function Vc(t,e,r,n,i,a,o,u,l){for(var f=0,d=0,h=o,p=0,v=0,m=0,y=1,b=1,w=1,E=0,S="",C=i,_=a,T=n,O=S;b;)switch(m=E,E=Wn()){case 40:if(m!=108&&Yo(O,h-1)==58){sN(O+=$c(cg(E),"&","&\f"),"&\f",eS(f?u[f-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:O+=cg(E);break;case 9:case 10:case 13:case 32:O+=hN(m);break;case 92:O+=pN(zc()-1,7);continue;case 47:switch(ra()){case 42:case 47:qc(yN(vN(Wn(),zc()),e,r,l),l),(Ru(m||1)==5||Ru(ra()||1)==5)&&oi(O)&&Ko(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*y:u[f++]=oi(O)*w;case 125*y:case 59:case 0:switch(E){case 0:case 125:b=0;case 59+d:w==-1&&(O=$c(O,/\f/g,"")),v>0&&(oi(O)-h||y===0&&m===47)&&qc(v>32?iS(O+";",n,r,h-1,l):iS($c(O," ","")+";",n,r,h-2,l),l);break;case 59:O+=";";default:if(qc(T=nS(O,e,r,f,d,i,u,S,C=[],_=[],h,a),a),E===123)if(d===0)Vc(O,e,T,T,C,a,h,u,_);else{switch(p){case 99:if(Yo(O,3)===110)break;case 108:if(Yo(O,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Vc(t,T,T,n&&qc(nS(t,T,T,0,0,i,u,S,i,C=[],h,_),_),i,_,h,u,n?C:_):Vc(O,T,T,T,[""],_,0,u,_)}}f=d=v=0,y=w=1,S=O="",h=o;break;case 58:h=1+oi(O),v=m;default:if(y<1){if(E==123)--y;else if(E==125&&y++==0&&cN()==125)continue}switch(O+=ug(E),E*y){case 38:w=d>0?1:(O+="\f",-1);break;case 44:u[f++]=(oi(O)-1)*w,w=1;break;case 64:ra()===45&&(O+=cg(Wn())),p=ra(),d=h=oi(S=O+=gN(zc())),E++;break;case 45:m===45&&oi(O)==2&&(y=0)}}return a}function nS(t,e,r,n,i,a,o,u,l,f,d,h){for(var p=i-1,v=i===0?a:[""],m=uN(v),y=0,b=0,w=0;y<n;++y)for(var E=0,S=Ko(t,p+1,p=eS(b=o[y])),C=t;E<m;++E)(C=tS(b>0?v[E]+" "+S:$c(S,/&\f/g,v[E])))&&(l[w++]=C);return lg(t,e,r,i===0?ZE:u,l,f,d,h)}function yN(t,e,r,n){return lg(t,e,r,XE,ug(lN()),Ko(t,2,-2),0,n)}function iS(t,e,r,n,i){return lg(t,e,r,JE,Ko(t,0,n),Ko(t,n+1,-1),n,i)}function dg(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function bN(t,e,r,n){switch(t.type){case oN:if(t.children.length)break;case nN:case iN:case JE:return t.return=t.return||t.value;case XE:return"";case aN:return t.return=t.value+"{"+dg(t.children,n)+"}";case ZE:if(!oi(t.value=t.props.join(",")))return""}return oi(r=dg(t.children,n))?t.return=t.value+"{"+r+"}":""}function aS(t,e){var r=e.path,n=e.parentSelectors;Kt(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(t).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var _N=function(e,r,n){if(e==="content"){var i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof r!="string"||a.indexOf(r)===-1&&!i.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&aS("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},wN=function(e,r,n){e==="animation"&&n.hashId&&r!=="none"&&aS("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},oS="data-ant-cssinjs-cache-path",sS="_FILE_STYLE__",Ba,uS=!0;function EN(){if(!Ba&&(Ba={},an())){var t=document.createElement("div");t.className=oS,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";e=e.replace(/^"/,"").replace(/"$/,""),e.split(";").forEach(function(i){var a=i.split(":"),o=Le(a,2),u=o[0],l=o[1];Ba[u]=l});var r=document.querySelector("style[".concat(oS,"]"));if(r){var n;uS=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(t)}}function SN(t){return EN(),!!Ba[t]}function xN(t){var e=Ba[t],r=null;if(e&&an())if(uS)r=sS;else{var n=document.querySelector("style[".concat(Bn,'="').concat(Ba[t],'"]'));n?r=n.innerHTML:delete Ba[t]}return[r,e]}var lS="_skip_check_",cS="_multi_value_";function Bc(t){var e=dg(mN(t),bN);return e.replace(/\{%%%\:[^;];}/g,";")}function CN(t){return nt(t)==="object"&&t&&(lS in t||cS in t)}function fS(t,e,r){if(!e)return t;var n=".".concat(e),i=r==="low"?":where(".concat(n,")"):n,a=t.split(",").map(function(o){var u,l=o.trim().split(/\s+/),f=l[0]||"",d=((u=f.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return f="".concat(d).concat(i).concat(f.slice(d.length)),[f].concat(Be(l.slice(1))).join(" ")});return a.join(",")}var TN=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,a=n.injectHash,o=n.parentSelectors,u=r.hashId,l=r.layer,f=r.path,d=r.hashPriority,h=r.transformers,p=h===void 0?[]:h,v=r.linters,m=v===void 0?[]:v,y="",b={};function w(C){var _=C.getName(u);if(!b[_]){var T=t(C.style,r,{root:!1,parentSelectors:o}),O=Le(T,1),k=O[0];b[_]="@keyframes ".concat(C.getName(u)).concat(k)}}function E(C){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(T){Array.isArray(T)?E(T,_):T&&_.push(T)}),_}var S=E(Array.isArray(e)?e:[e]);return S.forEach(function(C){var _=typeof C=="string"&&!i?{}:C;if(typeof _=="string")y+="".concat(_,`
|
|
210
|
+
`);else if(_._keyframe)w(_);else{var T=p.reduce(function(O,k){var P;return(k==null||(P=k.visit)===null||P===void 0?void 0:P.call(k,O))||O},_);Object.keys(T).forEach(function(O){var k=T[O];if(nt(k)==="object"&&k&&(O!=="animationName"||!k._keyframe)&&!CN(k)){var P=!1,N=O.trim(),M=!1;(i||a)&&u?N.startsWith("@")?P=!0:N==="&"?N=fS("",u,d):N=fS(O,u,d):i&&!u&&(N==="&"||N==="")&&(N="",M=!0);var z=t(k,r,{root:M,injectHash:P,parentSelectors:[].concat(Be(o),[N])}),H=Le(z,2),L=H[0],F=H[1];b=ve(ve({},b),F),y+="".concat(N).concat(L)}else{let V=function(K,$){(nt(k)!=="object"||!(k!=null&&k[lS]))&&[_N,wN].concat(Be(m)).forEach(function(ie){return ie(K,$,{path:f,hashId:u,parentSelectors:o})});var Q=K.replace(/[A-Z]/g,function(ie){return"-".concat(ie.toLowerCase())}),ae=$;!rN[K]&&typeof ae=="number"&&ae!==0&&(ae="".concat(ae,"px")),K==="animationName"&&$!==null&&$!==void 0&&$._keyframe&&(w($),ae=$.getName(u)),y+="".concat(Q,":").concat(ae,";")};var U,Y=(U=k==null?void 0:k.value)!==null&&U!==void 0?U:k;nt(k)==="object"&&k!==null&&k!==void 0&&k[cS]&&Array.isArray(Y)?Y.forEach(function(K){V(O,K)}):V(O,Y)}})}}),i?l&&(y&&(y="@layer ".concat(l.name," {").concat(y,"}")),l.dependencies&&(b["@layer ".concat(l.name)]=l.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(l.name,";")}).join(`
|
|
211
|
+
`))):y="{".concat(y,"}"),[y,b]};function dS(t,e){return Cu("".concat(t.join("%")).concat(e))}function ON(){return null}var hS="style";function pS(t,e){var r=t.token,n=t.path,i=t.hashId,a=t.layer,o=t.nonce,u=t.clientOnly,l=t.order,f=l===void 0?0:l,d=Z.useContext(Mc),h=d.autoClear,p=d.mock,v=d.defaultCache,m=d.hashPriority,y=d.container,b=d.ssrInline,w=d.transformers,E=d.linters,S=d.cache,C=d.layer,_=r._tokenKey,T=[_];C&&T.push("layer"),T.push.apply(T,Be(n));var O=ag;p!==void 0&&(O=p==="client");var k=sg(hS,T,function(){var H=T.join("|");if(SN(H)){var L=xN(H),F=Le(L,2),U=F[0],Y=F[1];if(U)return[U,_,Y,{},u,f]}var V=e(),K=TN(V,{hashId:i,hashPriority:m,layer:C?a:void 0,path:n.join("-"),transformers:w,linters:E}),$=Le(K,2),Q=$[0],ae=$[1],ie=Bc(Q),te=dS(T,ie);return[ie,_,te,ae,u,f]},function(H,L){var F=Le(H,3),U=F[2];(L||h)&&ag&&Tu(U,{mark:Bn})},function(H){var L=Le(H,4),F=L[0];L[1];var U=L[2],Y=L[3];if(O&&F!==sS){var V={mark:Bn,prepend:C?!1:"queue",attachTo:y,priority:f},K=typeof o=="function"?o():o;K&&(V.csp={nonce:K});var $=[],Q=[];Object.keys(Y).forEach(function(ie){ie.startsWith("@layer")?$.push(ie):Q.push(ie)}),$.forEach(function(ie){Ua(Bc(Y[ie]),"_layer-".concat(ie),ve(ve({},V),{},{prepend:!0}))});var ae=Ua(F,U,V);ae[ta]=S.instanceId,ae.setAttribute(Qo,_),ae.setAttribute(kP,T.join("|")),Q.forEach(function(ie){Ua(Bc(Y[ie]),"_effect-".concat(ie),V)})}}),P=Le(k,3),N=P[0],M=P[1],z=P[2];return function(H){var L;if(!b||O||!v)L=Z.createElement(ON,null);else{var F;L=Z.createElement("style",ai({},(F={},se(F,Qo,M),se(F,Bn,z),F),{dangerouslySetInnerHTML:{__html:N}}))}return Z.createElement(Z.Fragment,null,L,H)}}var RN=function(e,r,n){var i=Le(e,6),a=i[0],o=i[1],u=i[2],l=i[3],f=i[4],d=i[5],h=n||{},p=h.plain;if(f)return null;var v=a,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return v=Dc(a,o,u,m,p),l&&Object.keys(l).forEach(function(y){if(!r[y]){r[y]=!0;var b=Bc(l[y]),w=Dc(b,o,"_effect-".concat(y),m,p);y.startsWith("@layer")?v=w+v:v+=w}}),[d,u,v]},vS="cssVar",kN=function(e,r){var n=e.key,i=e.prefix,a=e.unitless,o=e.ignore,u=e.token,l=e.scope,f=l===void 0?"":l,d=q.useContext(Mc),h=d.cache.instanceId,p=d.container,v=u._tokenKey,m=[].concat(Be(e.path),[n,f,v]),y=sg(vS,m,function(){var b=r(),w=WE(b,n,{prefix:i,unitless:a,ignore:o,scope:f}),E=Le(w,2),S=E[0],C=E[1],_=dS(m,C);return[S,C,_,n]},function(b){var w=Le(b,3),E=w[2];ag&&Tu(E,{mark:Bn})},function(b){var w=Le(b,3),E=w[1],S=w[2];if(E){var C=Ua(E,S,{mark:Bn,prepend:"queue",attachTo:p,priority:-999});C[ta]=h,C.setAttribute(Qo,n)}});return y},AN=function(e,r,n){var i=Le(e,4),a=i[1],o=i[2],u=i[3],l=n||{},f=l.plain;if(!a)return null;var d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=Dc(a,u,o,h,f);return[d,o,p]},ku;ku={},se(ku,hS,RN),se(ku,KE,tN),se(ku,vS,AN);var Sn=function(){function t(e,r){kr(this,t),se(this,"name",void 0),se(this,"style",void 0),se(this,"_keyframe",!0),this.name=e,this.style=r}return Ar(t,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),t}();function Jo(t){return t.notSplit=!0,t}Jo(["borderTop","borderBottom"]),Jo(["borderTop"]),Jo(["borderBottom"]),Jo(["borderLeft","borderRight"]),Jo(["borderLeft"]),Jo(["borderRight"]);function PN(t){return LE(t)||kE(t)||Zv(t)||ME()}function si(t,e){for(var r=t,n=0;n<e.length;n+=1){if(r==null)return;r=r[e[n]]}return r}function gS(t,e,r,n){if(!e.length)return r;var i=PN(e),a=i[0],o=i.slice(1),u;return!t&&typeof a=="number"?u=[]:Array.isArray(t)?u=Be(t):u=ve({},t),n&&r===void 0&&o.length===1?delete u[a][o[0]]:u[a]=gS(u[a],o,r,n),u}function Gn(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&n&&r===void 0&&!si(t,e.slice(0,-1))?t:gS(t,e,r,n)}function NN(t){return nt(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function mS(t){return Array.isArray(t)?[]:{}}var IN=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Au(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=mS(e[0]);return e.forEach(function(i){function a(o,u){var l=new Set(u),f=si(i,o),d=Array.isArray(f);if(d||NN(f)){if(!l.has(f)){l.add(f);var h=si(n,o);d?n=Gn(n,o,[]):(!h||nt(h)!=="object")&&(n=Gn(n,o,mS(f))),IN(f).forEach(function(p){a([].concat(Be(o),[p]),l)})}}else n=Gn(n,o,f)}a([])}),n}function LN(){}let na=null,yS=LN;yS=(t,e,r)=>{Kt(t,`[antd: ${e}] ${r}`)};const MN=Z.createContext({}),bS=t=>{const{strict:e}=Z.useContext(MN),r=(n,i,a)=>{if(!n)if(e===!1&&i==="deprecated"){const o=na;na||(na={}),na[t]=na[t]||[],na[t].includes(a||"")||na[t].push(a||""),o||console.warn("[antd] There exists deprecated usage in your code:",na)}else yS(n,t,a)};return r.deprecated=(n,i,a,o)=>{r(n,"deprecated",`\`${i}\` is deprecated. Please use \`${a}\` instead.${o?` ${o}`:""}`)},r},_S={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Wc=Object.assign(Object.assign({},_S),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
212
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
213
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),hr=Math.round;function hg(t,e){const r=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=e(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const wS=(t,e,r)=>r===0?t:t/100;function Pu(t,e){const r=e||255;return t>r?r:t<0?0:t}class pr{constructor(e){se(this,"isValid",!0),se(this,"r",0),se(this,"g",0),se(this,"b",0),se(this,"a",1),se(this,"_h",void 0),se(this,"_s",void 0),se(this,"_l",void 0),se(this,"_v",void 0),se(this,"_max",void 0),se(this,"_min",void 0),se(this,"_brightness",void 0);function r(n){return n[0]in e&&n[1]in e&&n[2]in e}if(e)if(typeof e=="string"){let i=function(a){return n.startsWith(a)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(e instanceof pr)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(r("rgb"))this.r=Pu(e.r),this.g=Pu(e.g),this.b=Pu(e.b),this.a=typeof e.a=="number"?Pu(e.a,1):1;else if(r("hsl"))this.fromHsl(e);else if(r("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const r=this.toHsv();return r.h=e,this._c(r)}getLuminance(){function e(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const r=e(this.r),n=e(this.g),i=e(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=hr(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(e=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(e,r=50){const n=this._c(e),i=r/100,a=u=>(n[u]-this[u])*i+this[u],o={r:hr(a("r")),g:hr(a("g")),b:hr(a("b")),a:hr(a("a")*100)/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const r=this._c(e),n=this.a+r.a*(1-this.a),i=a=>hr((this[a]*this.a+r[a]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const r=(this.r||0).toString(16);e+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);e+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=hr(this.a*255).toString(16);e+=a.length===2?a:"0"+a}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),r=hr(this.getSaturation()*100),n=hr(this.getLightness()*100);return this.a!==1?`hsla(${e},${r}%,${n}%,${this.a})`:`hsl(${e},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,r,n){const i=this.clone();return i[e]=Pu(r,n),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const r=e.replace("#","");function n(i,a){return parseInt(r[i]+r[a||i],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:e,s:r,l:n,a:i}){if(this._h=e%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const p=hr(n*255);this.r=p,this.g=p,this.b=p}let a=0,o=0,u=0;const l=e/60,f=(1-Math.abs(2*n-1))*r,d=f*(1-Math.abs(l%2-1));l>=0&&l<1?(a=f,o=d):l>=1&&l<2?(a=d,o=f):l>=2&&l<3?(o=f,u=d):l>=3&&l<4?(o=d,u=f):l>=4&&l<5?(a=d,u=f):l>=5&&l<6&&(a=f,u=d);const h=n-f/2;this.r=hr((a+h)*255),this.g=hr((o+h)*255),this.b=hr((u+h)*255)}fromHsv({h:e,s:r,v:n,a:i}){this._h=e%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const a=hr(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const o=e/60,u=Math.floor(o),l=o-u,f=hr(n*(1-r)*255),d=hr(n*(1-r*l)*255),h=hr(n*(1-r*(1-l))*255);switch(u){case 0:this.g=h,this.b=f;break;case 1:this.r=d,this.b=f;break;case 2:this.r=f,this.b=h;break;case 3:this.r=f,this.g=d;break;case 4:this.r=h,this.g=f;break;case 5:default:this.g=f,this.b=d;break}}fromHsvString(e){const r=hg(e,wS);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(e){const r=hg(e,wS);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(e){const r=hg(e,(n,i)=>i.includes("%")?hr(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var Gc=2,ES=.16,DN=.05,FN=.05,jN=.15,SS=5,xS=4,$N=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function CS(t,e,r){var n;return Math.round(t.h)>=60&&Math.round(t.h)<=240?n=r?Math.round(t.h)-Gc*e:Math.round(t.h)+Gc*e:n=r?Math.round(t.h)+Gc*e:Math.round(t.h)-Gc*e,n<0?n+=360:n>=360&&(n-=360),n}function TS(t,e,r){if(t.h===0&&t.s===0)return t.s;var n;return r?n=t.s-ES*e:e===xS?n=t.s+ES:n=t.s+DN*e,n>1&&(n=1),r&&e===SS&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function OS(t,e,r){var n;return r?n=t.v+FN*e:n=t.v-jN*e,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function RS(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new pr(t),i=n.toHsv(),a=SS;a>0;a-=1){var o=new pr({h:CS(i,a,!0),s:TS(i,a,!0),v:OS(i,a,!0)});r.push(o)}r.push(n);for(var u=1;u<=xS;u+=1){var l=new pr({h:CS(i,u),s:TS(i,u),v:OS(i,u)});r.push(l)}return e.theme==="dark"?$N.map(function(f){var d=f.index,h=f.amount;return new pr(e.backgroundColor||"#141414").mix(r[d],h).toHexString()}):r.map(function(f){return f.toHexString()})}var pg={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},vg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];vg.primary=vg[5];var gg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];gg.primary=gg[5];var mg=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];mg.primary=mg[5];var yg=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];yg.primary=yg[5];var bg=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];bg.primary=bg[5];var _g=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];_g.primary=_g[5];var wg=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];wg.primary=wg[5];var Eg=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Eg.primary=Eg[5];var Sg=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Sg.primary=Sg[5];var xg=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];xg.primary=xg[5];var Cg=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Cg.primary=Cg[5];var Tg=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Tg.primary=Tg[5];var Og=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Og.primary=Og[5];var Rg={red:vg,volcano:gg,orange:mg,gold:yg,yellow:bg,lime:_g,green:wg,cyan:Eg,blue:Sg,geekblue:xg,purple:Cg,magenta:Tg,grey:Og};function qN(t,e){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=e;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:u,colorPrimary:l,colorBgBase:f,colorTextBase:d}=t,h=r(l),p=r(i),v=r(a),m=r(o),y=r(u),b=n(f,d),w=t.colorLink||t.colorInfo,E=r(w),S=new pr(m[1]).mix(new pr(m[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:S,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:E[4],colorLink:E[6],colorLinkActive:E[7],colorBgMask:new pr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const UN=t=>{let e=t,r=t,n=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?r=4:t<8&&t>=7?r=5:t<14&&t>=8?r=6:t<16&&t>=14?r=7:t>=16&&(r=8),t<6&&t>=2?n=1:t>=6&&(n=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:e,borderRadiusOuter:i}};function zN(t){const{motionUnit:e,motionBase:r,borderRadius:n,lineWidth:i}=t;return Object.assign({motionDurationFast:`${(r+e).toFixed(1)}s`,motionDurationMid:`${(r+e*2).toFixed(1)}s`,motionDurationSlow:`${(r+e*3).toFixed(1)}s`,lineWidthBold:i+1},UN(n))}const HN=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function VN(t){return(t+8)/t}function BN(t){const e=Array.from({length:10}).map((r,n)=>{const i=n-1,a=t*Math.pow(Math.E,i/5),o=n>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return e[1]=t,e.map(r=>({size:r,lineHeight:VN(r)}))}const WN=t=>{const e=BN(t),r=e.map(d=>d.size),n=e.map(d=>d.lineHeight),i=r[1],a=r[0],o=r[2],u=n[1],l=n[0],f=n[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:u,lineHeightLG:f,lineHeightSM:l,fontHeight:Math.round(u*i),fontHeightLG:Math.round(f*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function GN(t){const{sizeUnit:e,sizeStep:r}=t;return{sizeXXL:e*(r+8),sizeXL:e*(r+4),sizeLG:e*(r+2),sizeMD:e*(r+1),sizeMS:e*r,size:e*r,sizeSM:e*(r-1),sizeXS:e*(r-2),sizeXXS:e*(r-3)}}const xn=(t,e)=>new pr(t).setA(e).toRgbString(),Nu=(t,e)=>new pr(t).darken(e).toHexString(),QN=t=>{const e=RS(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},YN=(t,e)=>{const r=t||"#fff",n=e||"#000";return{colorBgBase:r,colorTextBase:n,colorText:xn(n,.88),colorTextSecondary:xn(n,.65),colorTextTertiary:xn(n,.45),colorTextQuaternary:xn(n,.25),colorFill:xn(n,.15),colorFillSecondary:xn(n,.06),colorFillTertiary:xn(n,.04),colorFillQuaternary:xn(n,.02),colorBgSolid:xn(n,1),colorBgSolidHover:xn(n,.75),colorBgSolidActive:xn(n,.95),colorBgLayout:Nu(r,4),colorBgContainer:Nu(r,0),colorBgElevated:Nu(r,0),colorBgSpotlight:xn(n,.85),colorBgBlur:"transparent",colorBorder:Nu(r,15),colorBorderSecondary:Nu(r,6)}};function KN(t){pg.pink=pg.magenta,Rg.pink=Rg.magenta;const e=Object.keys(_S).map(r=>{const n=t[r]===pg[r]?Rg[r]:RS(t[r]);return Array.from({length:10},()=>1).reduce((i,a,o)=>(i[`${r}-${o+1}`]=n[o],i[`${r}${o+1}`]=n[o],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),e),qN(t,{generateColorPalettes:QN,generateNeutralColorPalettes:YN})),WN(t.fontSize)),GN(t)),HN(t)),zN(t))}const XN=NP(KN),ZN={token:Wc,override:{override:Wc},hashed:!0},JN=q.createContext(ZN),kS="ant",AS="anticon",eI=(t,e)=>e||(t?`${kS}-${t}`:kS),Iu=Z.createContext({getPrefixCls:eI,iconPrefixCls:AS}),{Consumer:TV}=Iu,PS={};function tI(t){const e=Z.useContext(Iu),{getPrefixCls:r,direction:n,getPopupContainer:i}=e,a=e[t];return Object.assign(Object.assign({classNames:PS,styles:PS},a),{getPrefixCls:r,direction:n,getPopupContainer:i})}var NS=Ar(function t(){kr(this,t)}),IS="CALC_UNIT",rI=new RegExp(IS,"g");function kg(t){return typeof t=="number"?"".concat(t).concat(IS):t}var nI=function(t){$a(r,t);var e=qa(r);function r(n,i){var a;kr(this,r),a=e.call(this),se(ft(a),"result",""),se(ft(a),"unitlessCssVar",void 0),se(ft(a),"lowPriority",void 0);var o=nt(n);return a.unitlessCssVar=i,n instanceof r?a.result="(".concat(n.result,")"):o==="number"?a.result=kg(n):o==="string"&&(a.result=n),a}return Ar(r,[{key:"add",value:function(i){return i instanceof r?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(kg(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof r?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(kg(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,o=i||{},u=o.unit,l=!0;return typeof u=="boolean"?l=u:Array.from(this.unitlessCssVar).some(function(f){return a.result.includes(f)})&&(l=!1),this.result=this.result.replace(rI,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(NS),iI=function(t){$a(r,t);var e=qa(r);function r(n){var i;return kr(this,r),i=e.call(this),se(ft(i),"result",0),n instanceof r?i.result=n.result:typeof n=="number"&&(i.result=n),i}return Ar(r,[{key:"add",value:function(i){return i instanceof r?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof r?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof r?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof r?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),r}(NS),aI=function(e,r){var n=e==="css"?nI:iI;return function(i){return new n(i,r)}},LS=function(e,r){return"".concat([r,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Cn(t){var e=Z.useRef();e.current=t;var r=Z.useCallback(function(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(n=e.current)===null||n===void 0?void 0:n.call.apply(n,[e].concat(a))},[]);return r}function Lu(t){var e=Z.useRef(!1),r=Z.useState(t),n=Le(r,2),i=n[0],a=n[1];Z.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function o(u,l){l&&e.current||a(u)}return[i,o]}function Ag(t){return t!==void 0}function oI(t,e){var r=e||{},n=r.defaultValue,i=r.value,a=r.onChange,o=r.postState,u=Lu(function(){return Ag(i)?i:Ag(n)?typeof n=="function"?n():n:t}),l=Le(u,2),f=l[0],d=l[1],h=i!==void 0?i:f,p=o?o(h):h,v=Cn(a),m=Lu([h]),y=Le(m,2),b=y[0],w=y[1];QE(function(){var S=b[0];f!==S&&v(f,S)},[b]),QE(function(){Ag(i)||d(i)},[i]);var E=Cn(function(S,C){d(S,C),w([h],C)});return[p,E]}function MS(t,e,r,n){var i=ve({},e[t]);if(n!=null&&n.deprecatedTokens){var a=n.deprecatedTokens;a.forEach(function(u){var l=Le(u,2),f=l[0],d=l[1];if(Kt(!(i!=null&&i[f]),"Component Token `".concat(String(f),"` of ").concat(String(t)," is deprecated. Please use `").concat(String(d),"` instead.")),i!=null&&i[f]||i!=null&&i[d]){var h;(h=i[d])!==null&&h!==void 0||(i[d]=i==null?void 0:i[f])}})}var o=ve(ve({},r),i);return Object.keys(o).forEach(function(u){o[u]===e[u]&&delete o[u]}),o}var Pg=!0;function Qc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Pg=!1;var n={};return e.forEach(function(i){if(nt(i)==="object"){var a=Object.keys(i);a.forEach(function(o){Object.defineProperty(n,o,{configurable:!0,enumerable:!0,get:function(){return i[o]}})})}}),Pg=!0,n}var DS={};function sI(){}var uI=function(e){var r,n=e,i=sI;return typeof Proxy<"u"&&(r=new Set,n=new Proxy(e,{get:function(o,u){if(Pg){var l;(l=r)===null||l===void 0||l.add(u)}return o[u]}}),i=function(o,u){var l;DS[o]={global:Array.from(r),component:ve(ve({},(l=DS[o])===null||l===void 0?void 0:l.component),u)}}),{token:n,keys:r,flush:i}};function FS(t,e,r){if(typeof r=="function"){var n;return r(Qc(e,(n=e[t])!==null&&n!==void 0?n:{}))}return r??{}}function lI(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"max(".concat(n.map(function(a){return Ha(a)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"min(".concat(n.map(function(a){return Ha(a)}).join(","),")")}}}var cI=1e3*60*10,fI=function(){function t(){kr(this,t),se(this,"map",new Map),se(this,"objectIDMap",new WeakMap),se(this,"nextID",0),se(this,"lastAccessBeat",new Map),se(this,"accessBeat",0)}return Ar(t,[{key:"set",value:function(r,n){this.clear();var i=this.getCompositeKey(r);this.map.set(i,n),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),i=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(r){var n=this,i=r.map(function(a){return a&&nt(a)==="object"?"obj_".concat(n.getObjectID(a)):"".concat(nt(a),"_").concat(a)});return i.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,a){n-i>cI&&(r.map.delete(a),r.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),t}(),jS=new fI;function dI(t,e){return q.useMemo(function(){var r=jS.get(e);if(r)return r;var n=t();return jS.set(e,n),n},e)}var hI=function(){return{}};function pI(t){var e=t.useCSP,r=e===void 0?hI:e,n=t.useToken,i=t.usePrefix,a=t.getResetStyles,o=t.getCommonStyle,u=t.getCompUnitless;function l(p,v,m,y){var b=Array.isArray(p)?p[0]:p;function w(k){return"".concat(String(b)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var E=(y==null?void 0:y.unitless)||{},S=typeof u=="function"?u(p):{},C=ve(ve({},S),{},se({},w("zIndexPopup"),!0));Object.keys(E).forEach(function(k){C[w(k)]=E[k]});var _=ve(ve({},y),{},{unitless:C,prefixToken:w}),T=d(p,v,m,_),O=f(b,m,_);return function(k){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,N=T(k,P),M=Le(N,2),z=M[1],H=O(P),L=Le(H,2),F=L[0],U=L[1];return[F,z,U]}}function f(p,v,m){var y=m.unitless,b=m.injectStyle,w=b===void 0?!0:b,E=m.prefixToken,S=m.ignore,C=function(O){var k=O.rootCls,P=O.cssVar,N=P===void 0?{}:P,M=n(),z=M.realToken;return kN({path:[p],prefix:N.prefix,key:N.key,unitless:y,ignore:S,token:z,scope:k},function(){var H=FS(p,z,v),L=MS(p,z,H,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(H).forEach(function(F){L[E(F)]=L[F],delete L[F]}),L}),null},_=function(O){var k=n(),P=k.cssVar;return[function(N){return w&&P?q.createElement(q.Fragment,null,q.createElement(C,{rootCls:O,cssVar:P,component:p}),N):N},P==null?void 0:P.key]};return _}function d(p,v,m){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(p)?p:[p,p],w=Le(b,1),E=w[0],S=b.join("-"),C=t.layer||{name:"antd"};return function(_){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,O=n(),k=O.theme,P=O.realToken,N=O.hashId,M=O.token,z=O.cssVar,H=i(),L=H.rootPrefixCls,F=H.iconPrefixCls,U=r(),Y=z?"css":"js",V=dI(function(){var te=new Set;return z&&Object.keys(y.unitless||{}).forEach(function(fe){te.add(Fc(fe,z.prefix)),te.add(Fc(fe,LS(E,z.prefix)))}),aI(Y,te)},[Y,E,z==null?void 0:z.prefix]),K=lI(Y),$=K.max,Q=K.min,ae={theme:k,token:M,hashId:N,nonce:function(){return U.nonce},clientOnly:y.clientOnly,layer:C,order:y.order||-999};typeof a=="function"&&pS(ve(ve({},ae),{},{clientOnly:!1,path:["Shared",L]}),function(){return a(M,{prefix:{rootPrefixCls:L,iconPrefixCls:F},csp:U})});var ie=pS(ve(ve({},ae),{},{path:[S,_,F]}),function(){if(y.injectStyle===!1)return[];var te=uI(M),fe=te.token,ue=te.flush,W=FS(E,P,m),de=".".concat(_),ye=MS(E,P,W,{deprecatedTokens:y.deprecatedTokens});z&&W&&nt(W)==="object"&&Object.keys(W).forEach(function(Re){W[Re]="var(".concat(Fc(Re,LS(E,z.prefix)),")")});var Se=Qc(fe,{componentCls:de,prefixCls:_,iconCls:".".concat(F),antCls:".".concat(L),calc:V,max:$,min:Q},z?W:ye),J=v(Se,{hashId:N,prefixCls:_,rootPrefixCls:L,iconPrefixCls:F});ue(E,ye);var j=typeof o=="function"?o(Se,_,T,y.resetFont):null;return[y.resetStyle===!1?null:j,J]});return[ie,N]}}function h(p,v,m){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(p,v,m,ve({resetStyle:!1,order:-998},y)),w=function(S){var C=S.prefixCls,_=S.rootCls,T=_===void 0?C:_;return b(C,T),null};return w.displayName="SubStyle_".concat(String(Array.isArray(p)?p.join("."):p)),w}return{genStyleHooks:l,genSubStyleComponent:h,genComponentStyleHook:d}}const Yc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],vI="5.24.9";function Ng(t){return t>=0&&t<=255}function Kc(t,e){const{r,g:n,b:i,a}=new pr(t).toRgb();if(a<1)return t;const{r:o,g:u,b:l}=new pr(e).toRgb();for(let f=.01;f<=1;f+=.01){const d=Math.round((r-o*(1-f))/f),h=Math.round((n-u*(1-f))/f),p=Math.round((i-l*(1-f))/f);if(Ng(d)&&Ng(h)&&Ng(p))return new pr({r:d,g:h,b:p,a:Math.round(f*100)/100}).toRgbString()}return new pr({r,g:n,b:i,a:1}).toRgbString()}var gI=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};function $S(t){const{override:e}=t,r=gI(t,["override"]),n=Object.assign({},e);Object.keys(Wc).forEach(p=>{delete n[p]});const i=Object.assign(Object.assign({},r),n),a=480,o=576,u=768,l=992,f=1200,d=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Kc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Kc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Kc(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Kc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
214
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
215
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
216
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
217
|
+
`,boxShadowSecondary:`
|
|
218
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
219
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
220
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
221
|
+
`,boxShadowTertiary:`
|
|
222
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
223
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
224
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
225
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:f-1,screenXL:f,screenXLMin:f,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
226
|
+
0 1px 2px -2px ${new pr("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
227
|
+
0 3px 6px 0 ${new pr("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
228
|
+
0 5px 12px 4px ${new pr("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
229
|
+
`,boxShadowDrawerRight:`
|
|
230
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
231
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
232
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
233
|
+
`,boxShadowDrawerLeft:`
|
|
234
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
235
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
236
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
237
|
+
`,boxShadowDrawerUp:`
|
|
238
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
239
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
240
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
241
|
+
`,boxShadowDrawerDown:`
|
|
242
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
243
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
244
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
245
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var qS=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const US={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},mI={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},yI={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},zS=(t,e,r)=>{const n=r.getDerivativeToken(t),{override:i}=e,a=qS(e,["override"]);let o=Object.assign(Object.assign({},n),{override:i});return o=$S(o),a&&Object.entries(a).forEach(u=>{let[l,f]=u;const{theme:d}=f,h=qS(f,["theme"]);let p=h;d&&(p=zS(Object.assign(Object.assign({},o),h),{override:h},d)),o[l]=p}),o};function Ig(){const{token:t,hashed:e,theme:r,override:n,cssVar:i}=q.useContext(JN),a=`${vI}-${e||""}`,o=r||XN,[u,l,f]=eN(o,[Wc,t],{salt:a,override:n,getComputedToken:zS,formatToken:$S,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:US,ignore:mI,preserve:yI}});return[o,f,e?l:"",u,i]}const bI=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:e?"inherit":t.fontFamily}},_I=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),wI=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),EI=(t,e,r,n)=>{const i=`[class^="${e}"], [class*=" ${e}"]`,a=r?`.${r}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return n!==!1&&(u={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},u),o),{[i]:o})}},SI=t=>({[`.${t}`]:Object.assign(Object.assign({},_I()),{[`.${t} .${t}-icon`]:{display:"block"}})}),{genStyleHooks:xI}=pI({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:e}=q.useContext(Iu);return{rootPrefixCls:t(),iconPrefixCls:e}},useToken:()=>{const[t,e,r,n,i]=Ig();return{theme:t,realToken:e,hashId:r,token:n,cssVar:i}},useCSP:()=>{const{csp:t}=q.useContext(Iu);return t??{}},getResetStyles:(t,e)=>{var r;const n=wI(t);return[n,{"&":n},SI((r=e==null?void 0:e.prefix.iconPrefixCls)!==null&&r!==void 0?r:AS)]},getCommonStyle:EI,getCompUnitless:()=>US});function CI(t,e){return Yc.reduce((r,n)=>{const i=t[`${n}1`],a=t[`${n}3`],o=t[`${n}6`],u=t[`${n}7`];return Object.assign(Object.assign({},r),e(n,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:u}))},{})}var TI=Z.createContext({}),OI=function(t){$a(r,t);var e=qa(r);function r(){return kr(this,r),e.apply(this,arguments)}return Ar(r,[{key:"render",value:function(){return this.props.children}}]),r}(Z.Component);function RI(t){var e=Z.useReducer(function(u){return u+1},0),r=Le(e,2),n=r[1],i=Z.useRef(t),a=Cn(function(){return i.current}),o=Cn(function(u){i.current=typeof u=="function"?u(i.current):u,n()});return[a,o]}var ia="none",Xc="appear",Zc="enter",Jc="leave",HS="none",Qn="prepare",es="start",ts="active",Lg="end",VS="prepared";function BS(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit".concat(t)]="webkit".concat(e),r["Moz".concat(t)]="moz".concat(e),r["ms".concat(t)]="MS".concat(e),r["O".concat(t)]="o".concat(e.toLowerCase()),r}function kI(t,e){var r={animationend:BS("Animation","AnimationEnd"),transitionend:BS("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete r.animationend.animation,"TransitionEvent"in e||delete r.transitionend.transition),r}var AI=kI(an(),typeof window<"u"?window:{}),WS={};if(an()){var PI=document.createElement("div");WS=PI.style}var ef={};function GS(t){if(ef[t])return ef[t];var e=AI[t];if(e)for(var r=Object.keys(e),n=r.length,i=0;i<n;i+=1){var a=r[i];if(Object.prototype.hasOwnProperty.call(e,a)&&a in WS)return ef[t]=e[a],ef[t]}return""}var QS=GS("animationend"),YS=GS("transitionend"),KS=!!(QS&&YS),XS=QS||"animationend",ZS=YS||"transitionend";function JS(t,e){if(!t)return null;if(nt(t)==="object"){var r=e.replace(/-\w/g,function(n){return n[1].toUpperCase()});return t[r]}return"".concat(t,"-").concat(e)}const NI=function(t){var e=q.useRef();function r(i){i&&(i.removeEventListener(ZS,t),i.removeEventListener(XS,t))}function n(i){e.current&&e.current!==i&&r(e.current),i&&i!==e.current&&(i.addEventListener(ZS,t),i.addEventListener(XS,t),e.current=i)}return Z.useEffect(function(){return function(){r(e.current)}},[]),[n,r]};var ex=an()?q.useLayoutEffect:q.useEffect;const II=function(){var t=Z.useRef(null);function e(){Ic.cancel(t.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var a=Ic(function(){i<=1?n({isCanceled:function(){return a!==t.current}}):r(n,i-1)});t.current=a}return Z.useEffect(function(){return function(){e()}},[]),[r,e]};var LI=[Qn,es,ts,Lg],MI=[Qn,VS],tx=!1,DI=!0;function rx(t){return t===ts||t===Lg}const FI=function(t,e,r){var n=Lu(HS),i=Le(n,2),a=i[0],o=i[1],u=II(),l=Le(u,2),f=l[0],d=l[1];function h(){o(Qn,!0)}var p=e?MI:LI;return ex(function(){if(a!==HS&&a!==Lg){var v=p.indexOf(a),m=p[v+1],y=r(a);y===tx?o(m,!0):m&&f(function(b){function w(){b.isCanceled()||o(m,!0)}y===!0?w():Promise.resolve(y).then(w)})}},[t,a]),Z.useEffect(function(){return function(){d()}},[]),[h,a]};function jI(t,e,r,n){var i=n.motionEnter,a=i===void 0?!0:i,o=n.motionAppear,u=o===void 0?!0:o,l=n.motionLeave,f=l===void 0?!0:l,d=n.motionDeadline,h=n.motionLeaveImmediately,p=n.onAppearPrepare,v=n.onEnterPrepare,m=n.onLeavePrepare,y=n.onAppearStart,b=n.onEnterStart,w=n.onLeaveStart,E=n.onAppearActive,S=n.onEnterActive,C=n.onLeaveActive,_=n.onAppearEnd,T=n.onEnterEnd,O=n.onLeaveEnd,k=n.onVisibleChanged,P=Lu(),N=Le(P,2),M=N[0],z=N[1],H=RI(ia),L=Le(H,2),F=L[0],U=L[1],Y=Lu(null),V=Le(Y,2),K=V[0],$=V[1],Q=F(),ae=q.useRef(!1),ie=q.useRef(null);function te(){return r()}var fe=q.useRef(!1);function ue(){U(ia),$(null,!0)}var W=Cn(function(je){var Te=F();if(Te!==ia){var we=te();if(!(je&&!je.deadline&&je.target!==we)){var ot=fe.current,_e;Te===Xc&&ot?_e=_==null?void 0:_(we,je):Te===Zc&&ot?_e=T==null?void 0:T(we,je):Te===Jc&&ot&&(_e=O==null?void 0:O(we,je)),ot&&_e!==!1&&ue()}}}),de=NI(W),ye=Le(de,1),Se=ye[0],J=function(Te){switch(Te){case Xc:return se(se(se({},Qn,p),es,y),ts,E);case Zc:return se(se(se({},Qn,v),es,b),ts,S);case Jc:return se(se(se({},Qn,m),es,w),ts,C);default:return{}}},j=Z.useMemo(function(){return J(Q)},[Q]),Re=FI(Q,!t,function(je){if(je===Qn){var Te=j[Qn];return Te?Te(te()):tx}if(Fe in j){var we;$(((we=j[Fe])===null||we===void 0?void 0:we.call(j,te(),null))||null)}return Fe===ts&&Q!==ia&&(Se(te()),d>0&&(clearTimeout(ie.current),ie.current=setTimeout(function(){W({deadline:!0})},d))),Fe===VS&&ue(),DI}),oe=Le(Re,2),xe=oe[0],Fe=oe[1],He=rx(Fe);fe.current=He;var Ye=q.useRef(null);ex(function(){if(!(ae.current&&Ye.current===e)){z(e);var je=ae.current;ae.current=!0;var Te;!je&&e&&u&&(Te=Xc),je&&e&&a&&(Te=Zc),(je&&!e&&f||!je&&h&&!e&&f)&&(Te=Jc);var we=J(Te);Te&&(t||we[Qn])?(U(Te),xe()):U(ia),Ye.current=e}},[e]),q.useEffect(function(){(Q===Xc&&!u||Q===Zc&&!a||Q===Jc&&!f)&&U(ia)},[u,a,f]),q.useEffect(function(){return function(){ae.current=!1,clearTimeout(ie.current)}},[]);var Xe=Z.useRef(!1);q.useEffect(function(){M&&(Xe.current=!0),M!==void 0&&Q===ia&&((Xe.current||M)&&(k==null||k(M)),Xe.current=!0)},[M,Q]);var ht=K;return j[Qn]&&Fe===es&&(ht=ve({transition:"none"},ht)),[Q,Fe,ht,M??e]}function $I(t){var e=t;nt(t)==="object"&&(e=t.transitionSupport);function r(i,a){return!!(i.motionName&&e&&a!==!1)}var n=Z.forwardRef(function(i,a){var o=i.visible,u=o===void 0?!0:o,l=i.removeOnLeave,f=l===void 0?!0:l,d=i.forceRender,h=i.children,p=i.motionName,v=i.leavedClassName,m=i.eventProps,y=Z.useContext(TI),b=y.motion,w=r(i,b),E=q.useRef(),S=q.useRef();function C(){try{return E.current instanceof HTMLElement?E.current:Tc(S.current)}catch{return null}}var _=jI(w,u,C,i),T=Le(_,4),O=T[0],k=T[1],P=T[2],N=T[3],M=Z.useRef(N);N&&(M.current=!0);var z=Z.useCallback(function(V){E.current=V,Bv(a,V)},[a]),H,L=ve(ve({},m),{},{visible:u});if(!h)H=null;else if(O===ia)N?H=h(ve({},L),z):!f&&M.current&&v?H=h(ve(ve({},L),{},{className:v}),z):d||!f&&!v?H=h(ve(ve({},L),{},{style:{display:"none"}}),z):H=null;else{var F;k===Qn?F="prepare":rx(k)?F="active":k===es&&(F="start");var U=JS(p,"".concat(O,"-").concat(F));H=h(ve(ve({},L),{},{className:Dr(JS(p,O),se(se({},U,U&&F),p,typeof p=="string")),style:P}),z)}if(Z.isValidElement(H)&&Oc(H)){var Y=Gv(H);Y||(H=Z.cloneElement(H,{ref:z}))}return Z.createElement(OI,{ref:S},H)});return n.displayName="CSSMotion",n}const Mg=$I(KS);var Dg="add",Fg="keep",jg="remove",$g="removed";function qI(t){var e;return t&&nt(t)==="object"&&"key"in t?e=t:e={key:t},ve(ve({},e),{},{key:String(e.key)})}function qg(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(qI)}function UI(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=e.length,a=qg(t),o=qg(e);a.forEach(function(f){for(var d=!1,h=n;h<i;h+=1){var p=o[h];if(p.key===f.key){n<h&&(r=r.concat(o.slice(n,h).map(function(v){return ve(ve({},v),{},{status:Dg})})),n=h),r.push(ve(ve({},p),{},{status:Fg})),n+=1,d=!0;break}}d||r.push(ve(ve({},f),{},{status:jg}))}),n<i&&(r=r.concat(o.slice(n).map(function(f){return ve(ve({},f),{},{status:Dg})})));var u={};r.forEach(function(f){var d=f.key;u[d]=(u[d]||0)+1});var l=Object.keys(u).filter(function(f){return u[f]>1});return l.forEach(function(f){r=r.filter(function(d){var h=d.key,p=d.status;return h!==f||p!==jg}),r.forEach(function(d){d.key===f&&(d.status=Fg)})}),r}var zI=["component","children","onVisibleChanged","onAllRemoved"],HI=["status"],VI=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function BI(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mg,r=function(n){$a(a,n);var i=qa(a);function a(){var o;kr(this,a);for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return o=i.call.apply(i,[this].concat(l)),se(ft(o),"state",{keyEntities:[]}),se(ft(o),"removeKey",function(d){o.setState(function(h){var p=h.keyEntities.map(function(v){return v.key!==d?v:ve(ve({},v),{},{status:$g})});return{keyEntities:p}},function(){var h=o.state.keyEntities,p=h.filter(function(v){var m=v.status;return m!==$g}).length;p===0&&o.props.onAllRemoved&&o.props.onAllRemoved()})}),o}return Ar(a,[{key:"render",value:function(){var u=this,l=this.state.keyEntities,f=this.props,d=f.component,h=f.children,p=f.onVisibleChanged;f.onAllRemoved;var v=za(f,zI),m=d||Z.Fragment,y={};return VI.forEach(function(b){y[b]=v[b],delete v[b]}),delete v.keys,Z.createElement(m,v,l.map(function(b,w){var E=b.status,S=za(b,HI),C=E===Dg||E===Fg;return Z.createElement(e,ai({},y,{key:S.key,visible:C,eventProps:S,onVisibleChanged:function(T){p==null||p(T,{key:S.key}),T||u.removeKey(S.key)}}),function(_,T){return h(ve(ve({},_),{},{index:w}),T)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,l){var f=u.keys,d=l.keyEntities,h=qg(f),p=UI(d,h);return{keyEntities:p.filter(function(v){var m=d.find(function(y){var b=y.key;return v.key===b});return!(m&&m.status===$g&&v.status===jg)})}}}]),a}(Z.Component);return se(r,"defaultProps",{component:"div"}),r}BI(KS);function nx(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}function WI(t){return nx(t)instanceof ShadowRoot}function Ug(t){return WI(t)?nx(t):null}function GI(t){return t&&q.isValidElement(t)&&t.type===q.Fragment}const QI=(t,e,r)=>q.isValidElement(t)?q.cloneElement(t,typeof r=="function"?r(t.props||{}):r):e;function YI(t,e){return QI(t,t,e)}const zg=q.createContext(void 0);zg.displayName="zIndexContext";const Ti=100,KI=Ti*10+Ti,ix={Modal:Ti,Drawer:Ti,Popover:Ti,Popconfirm:Ti,Tooltip:Ti,Tour:Ti,FloatButton:Ti},XI={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function ZI(t){return t in ix}const JI=(t,e)=>{const[,r]=Ig(),n=q.useContext(zg),i=ZI(t);let a;if(e!==void 0)a=[e,e];else{let o=n??0;i?o+=(n?0:r.zIndexPopupBase)+ix[t]:o+=XI[t],a=[n===void 0?e:o,o]}{const o=bS(t),u=r.zIndexPopupBase+KI,l=a[0]||0;o(e!==void 0||l<=u,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a};function Yn(){Yn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(N,M,z,H){return Object.defineProperty(N,M,{value:z,enumerable:!H,configurable:!H,writable:!H})}try{l({},"")}catch{l=function(z,H,L){return z[H]=L}}function f(N,M,z,H){var L=M&&M.prototype instanceof p?M:p,F=Object.create(L.prototype);return l(F,"_invoke",function(U,Y,V){var K=1;return function($,Q){if(K===3)throw Error("Generator is already running");if(K===4){if($==="throw")throw Q;return{value:t,done:!0}}for(V.method=$,V.arg=Q;;){var ae=V.delegate;if(ae){var ie=_(ae,V);if(ie){if(ie===h)continue;return ie}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(K===1)throw K=4,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);K=3;var te=d(U,Y,V);if(te.type==="normal"){if(K=V.done?4:2,te.arg===h)continue;return{value:te.arg,done:V.done}}te.type==="throw"&&(K=4,V.method="throw",V.arg=te.arg)}}}(N,z,new k(H||[])),!0),F}function d(N,M,z){try{return{type:"normal",arg:N.call(M,z)}}catch(H){return{type:"throw",arg:H}}}e.wrap=f;var h={};function p(){}function v(){}function m(){}var y={};l(y,a,function(){return this});var b=Object.getPrototypeOf,w=b&&b(b(P([])));w&&w!==r&&n.call(w,a)&&(y=w);var E=m.prototype=p.prototype=Object.create(y);function S(N){["next","throw","return"].forEach(function(M){l(N,M,function(z){return this._invoke(M,z)})})}function C(N,M){function z(L,F,U,Y){var V=d(N[L],N,F);if(V.type!=="throw"){var K=V.arg,$=K.value;return $&&nt($)=="object"&&n.call($,"__await")?M.resolve($.__await).then(function(Q){z("next",Q,U,Y)},function(Q){z("throw",Q,U,Y)}):M.resolve($).then(function(Q){K.value=Q,U(K)},function(Q){return z("throw",Q,U,Y)})}Y(V.arg)}var H;l(this,"_invoke",function(L,F){function U(){return new M(function(Y,V){z(L,F,Y,V)})}return H=H?H.then(U,U):U()},!0)}function _(N,M){var z=M.method,H=N.i[z];if(H===t)return M.delegate=null,z==="throw"&&N.i.return&&(M.method="return",M.arg=t,_(N,M),M.method==="throw")||z!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+z+"' method")),h;var L=d(H,N.i,M.arg);if(L.type==="throw")return M.method="throw",M.arg=L.arg,M.delegate=null,h;var F=L.arg;return F?F.done?(M[N.r]=F.value,M.next=N.n,M.method!=="return"&&(M.method="next",M.arg=t),M.delegate=null,h):F:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,h)}function T(N){this.tryEntries.push(N)}function O(N){var M=N[4]||{};M.type="normal",M.arg=t,N[4]=M}function k(N){this.tryEntries=[[-1]],N.forEach(T,this),this.reset(!0)}function P(N){if(N!=null){var M=N[a];if(M)return M.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var z=-1,H=function L(){for(;++z<N.length;)if(n.call(N,z))return L.value=N[z],L.done=!1,L;return L.value=t,L.done=!0,L};return H.next=H}}throw new TypeError(nt(N)+" is not iterable")}return v.prototype=m,l(E,"constructor",m),l(m,"constructor",v),v.displayName=l(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(N){var M=typeof N=="function"&&N.constructor;return!!M&&(M===v||(M.displayName||M.name)==="GeneratorFunction")},e.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,m):(N.__proto__=m,l(N,u,"GeneratorFunction")),N.prototype=Object.create(E),N},e.awrap=function(N){return{__await:N}},S(C.prototype),l(C.prototype,o,function(){return this}),e.AsyncIterator=C,e.async=function(N,M,z,H,L){L===void 0&&(L=Promise);var F=new C(f(N,M,z,H),L);return e.isGeneratorFunction(M)?F:F.next().then(function(U){return U.done?U.value:F.next()})},S(E),l(E,u,"Generator"),l(E,a,function(){return this}),l(E,"toString",function(){return"[object Generator]"}),e.keys=function(N){var M=Object(N),z=[];for(var H in M)z.unshift(H);return function L(){for(;z.length;)if((H=z.pop())in M)return L.value=H,L.done=!1,L;return L.done=!0,L}},e.values=P,k.prototype={constructor:k,reset:function(M){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!M)for(var z in this)z.charAt(0)==="t"&&n.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=t)},stop:function(){this.done=!0;var M=this.tryEntries[0][4];if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var z=this;function H($){U.type="throw",U.arg=M,z.next=$}for(var L=z.tryEntries.length-1;L>=0;--L){var F=this.tryEntries[L],U=F[4],Y=this.prev,V=F[1],K=F[2];if(F[0]===-1)return H("end"),!1;if(!V&&!K)throw Error("try statement without catch or finally");if(F[0]!=null&&F[0]<=Y){if(Y<V)return this.method="next",this.arg=t,H(V),!0;if(Y<K)return H(K),!1}}},abrupt:function(M,z){for(var H=this.tryEntries.length-1;H>=0;--H){var L=this.tryEntries[H];if(L[0]>-1&&L[0]<=this.prev&&this.prev<L[2]){var F=L;break}}F&&(M==="break"||M==="continue")&&F[0]<=z&&z<=F[2]&&(F=null);var U=F?F[4]:{};return U.type=M,U.arg=z,F?(this.method="next",this.next=F[2],h):this.complete(U)},complete:function(M,z){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&z&&(this.next=z),h},finish:function(M){for(var z=this.tryEntries.length-1;z>=0;--z){var H=this.tryEntries[z];if(H[2]===M)return this.complete(H[4],H[3]),O(H),h}},catch:function(M){for(var z=this.tryEntries.length-1;z>=0;--z){var H=this.tryEntries[z];if(H[0]===M){var L=H[4];if(L.type==="throw"){var F=L.arg;O(H)}return F}}throw Error("illegal catch attempt")},delegateYield:function(M,z,H){return this.delegate={i:P(M),r:z,n:H},this.method==="next"&&(this.arg=t),h}},e}function ax(t,e,r,n,i,a,o){try{var u=t[a](o),l=u.value}catch(f){return void r(f)}u.done?e(l):Promise.resolve(l).then(n,i)}function Mu(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function o(l){ax(a,n,i,o,u,"next",l)}function u(l){ax(a,n,i,o,u,"throw",l)}o(void 0)})}}const eL=(t,e,r)=>r!==void 0?r:`${t}-${e}`,tL=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),r=e.width,n=e.height;if(r||n)return!0}if(t.getBoundingClientRect){var i=t.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},rL=Z.createContext(null),nL=t=>{const{children:e}=t;return Z.createElement(rL.Provider,{value:null},e)},iL=t=>({animationDuration:t,animationFillMode:"both"}),aL=t=>({animationDuration:t,animationFillMode:"both"}),oL=function(t,e,r,n){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
246
|
+
${a}${t}-enter,
|
|
247
|
+
${a}${t}-appear
|
|
248
|
+
`]:Object.assign(Object.assign({},iL(n)),{animationPlayState:"paused"}),[`${a}${t}-leave`]:Object.assign(Object.assign({},aL(n)),{animationPlayState:"paused"}),[`
|
|
249
|
+
${a}${t}-enter${t}-enter-active,
|
|
250
|
+
${a}${t}-appear${t}-appear-active
|
|
251
|
+
`]:{animationName:e,animationPlayState:"running"},[`${a}${t}-leave${t}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},sL=new Sn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),uL=new Sn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ox=new Sn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sx=new Sn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),lL=new Sn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),cL=new Sn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),fL=new Sn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),dL=new Sn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),hL=new Sn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),pL=new Sn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),vL=new Sn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),gL=new Sn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),mL={zoom:{inKeyframes:sL,outKeyframes:uL},"zoom-big":{inKeyframes:ox,outKeyframes:sx},"zoom-big-fast":{inKeyframes:ox,outKeyframes:sx},"zoom-left":{inKeyframes:fL,outKeyframes:dL},"zoom-right":{inKeyframes:hL,outKeyframes:pL},"zoom-up":{inKeyframes:lL,outKeyframes:cL},"zoom-down":{inKeyframes:vL,outKeyframes:gL}},yL=(t,e)=>{const{antCls:r}=t,n=`${r}-${e}`,{inKeyframes:i,outKeyframes:a}=mL[e];return[oL(n,i,a,t.motionDurationFast),{[`
|
|
252
|
+
${n}-enter,
|
|
253
|
+
${n}-appear
|
|
254
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]};var ux=Z.createContext(null),lx=[];function bL(t,e){var r=Z.useState(function(){if(!an())return null;var m=document.createElement("div");return e&&m.setAttribute("data-debug",e),m}),n=Le(r,1),i=n[0],a=Z.useRef(!1),o=Z.useContext(ux),u=Z.useState(lx),l=Le(u,2),f=l[0],d=l[1],h=o||(a.current?void 0:function(m){d(function(y){var b=[m].concat(Be(y));return b})});function p(){i.parentElement||document.body.appendChild(i),a.current=!0}function v(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),a.current=!1}return Fr(function(){return t?o?o(p):p():v(),v},[t]),Fr(function(){f.length&&(f.forEach(function(m){return m()}),d(lx))},[f]),[i,h]}function _L(t){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=e;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var i,a;if(t){var o=getComputedStyle(t);n.scrollbarColor=o.scrollbarColor,n.scrollbarWidth=o.scrollbarWidth;var u=getComputedStyle(t,"::-webkit-scrollbar"),l=parseInt(u.width,10),f=parseInt(u.height,10);try{var d=l?"width: ".concat(u.width,";"):"",h=f?"height: ".concat(u.height,";"):"";Ua(`
|
|
255
|
+
#`.concat(e,`::-webkit-scrollbar {
|
|
256
|
+
`).concat(d,`
|
|
257
|
+
`).concat(h,`
|
|
258
|
+
}`),e)}catch(m){console.error(m),i=l,a=f}}document.body.appendChild(r);var p=t&&i&&!isNaN(i)?i:r.offsetWidth-r.clientWidth,v=t&&a&&!isNaN(a)?a:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Tu(e),{width:p,height:v}}function wL(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:_L(t)}function EL(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var SL="rc-util-locker-".concat(Date.now()),cx=0;function xL(t){var e=!!t,r=Z.useState(function(){return cx+=1,"".concat(SL,"_").concat(cx)}),n=Le(r,1),i=n[0];Fr(function(){if(e){var a=wL(document.body).width,o=EL();Ua(`
|
|
259
|
+
html body {
|
|
260
|
+
overflow-y: hidden;
|
|
261
|
+
`.concat(o?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
262
|
+
}`),i)}else Tu(i);return function(){Tu(i)}},[e,i])}var CL=!1;function TL(t){return CL}var fx=function(e){return e===!1?!1:!an()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},Hg=Z.forwardRef(function(t,e){var r=t.open,n=t.autoLock,i=t.getContainer,a=t.debug,o=t.autoDestroy,u=o===void 0?!0:o,l=t.children,f=Z.useState(r),d=Le(f,2),h=d[0],p=d[1],v=h||r;Kt(an()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),Z.useEffect(function(){(u||r)&&p(r)},[r,u]);var m=Z.useState(function(){return fx(i)}),y=Le(m,2),b=y[0],w=y[1];Z.useEffect(function(){var z=fx(i);w(z??null)});var E=bL(v&&!b,a),S=Le(E,2),C=S[0],_=S[1],T=b??C;xL(n&&r&&an()&&(T===C||T===document.body));var O=null;if(l&&Oc(l)&&e){var k=l;O=k.ref}var P=Wv(O,e);if(!v||!an()||b===void 0)return null;var N=T===!1||TL(),M=l;return e&&(M=Z.cloneElement(l,{ref:P})),Z.createElement(ux.Provider,{value:_},N?M:ti.createPortal(M,T))});Hg.displayName="Portal";function OL(){var t=ve({},Z);return t.useId}var dx=0,hx=OL();const px=hx?function(e){var r=hx();return e||r}:function(e){var r=Z.useState("ssr-id"),n=Le(r,2),i=n[0],a=n[1];return Z.useEffect(function(){var o=dx;dx+=1,a("rc_unique_".concat(o))},[]),e||i};var Wa="RC_FORM_INTERNAL_HOOKS",Ft=function(){Kt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},rs=Z.createContext({getFieldValue:Ft,getFieldsValue:Ft,getFieldError:Ft,getFieldWarning:Ft,getFieldsError:Ft,isFieldsTouched:Ft,isFieldTouched:Ft,isFieldValidating:Ft,isFieldsValidating:Ft,resetFields:Ft,setFields:Ft,setFieldValue:Ft,setFieldsValue:Ft,validateFields:Ft,submit:Ft,getInternalHooks:function(){return Ft(),{dispatch:Ft,initEntityValue:Ft,registerField:Ft,useSubscribe:Ft,setInitialValues:Ft,destroyForm:Ft,setCallbacks:Ft,registerWatch:Ft,getFields:Ft,setValidateMessages:Ft,setPreserve:Ft,getInitialValue:Ft}}}),tf=Z.createContext(null);function Vg(t){return t==null?[]:Array.isArray(t)?t:[t]}function RL(t){return t&&!!t._init}function Bg(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Wg=Bg();function kL(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function AL(t,e,r){if(Kv())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&Su(i,r.prototype),i}function Gg(t){var e=typeof Map=="function"?new Map:void 0;return Gg=function(n){if(n===null||!kL(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return AL(n,arguments,xu(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Su(i,n)},Gg(t)}var vx={NODE_ENV:'"production"'},PL=/%[sdj%]/g,gx=function(){};typeof process<"u"&&vx&&vx.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(gx=function(e,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(e,r)});function Qg(t){if(!t||!t.length)return null;var e={};return t.forEach(function(r){var n=r.field;e[n]=e[n]||[],e[n].push(r)}),e}function on(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var i=0,a=r.length;if(typeof t=="function")return t.apply(null,r);if(typeof t=="string"){var o=t.replace(PL,function(u){if(u==="%%")return"%";if(i>=a)return u;switch(u){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return u}});return o}return t}function NL(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function ur(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||NL(e)&&typeof t=="string"&&!t)}function IL(t,e,r){var n=[],i=0,a=t.length;function o(u){n.push.apply(n,Be(u||[])),i++,i===a&&r(n)}t.forEach(function(u){e(u,o)})}function mx(t,e,r){var n=0,i=t.length;function a(o){if(o&&o.length){r(o);return}var u=n;n=n+1,u<i?e(t[u],a):r([])}a([])}function LL(t){var e=[];return Object.keys(t).forEach(function(r){e.push.apply(e,Be(t[r]||[]))}),e}var yx=function(t){$a(r,t);var e=qa(r);function r(n,i){var a;return kr(this,r),a=e.call(this,"Async Validation Error"),se(ft(a),"errors",void 0),se(ft(a),"fields",void 0),a.errors=n,a.fields=i,a}return Ar(r)}(Gg(Error));function ML(t,e,r,n,i){if(e.first){var a=new Promise(function(p,v){var m=function(w){return n(w),w.length?v(new yx(w,Qg(w))):p(i)},y=LL(t);mx(y,r,m)});return a.catch(function(p){return p}),a}var o=e.firstFields===!0?Object.keys(t):e.firstFields||[],u=Object.keys(t),l=u.length,f=0,d=[],h=new Promise(function(p,v){var m=function(b){if(d.push.apply(d,b),f++,f===l)return n(d),d.length?v(new yx(d,Qg(d))):p(i)};u.length||(n(d),p(i)),u.forEach(function(y){var b=t[y];o.indexOf(y)!==-1?mx(b,r,m):IL(b,r,m)})});return h.catch(function(p){return p}),h}function DL(t){return!!(t&&t.message!==void 0)}function FL(t,e){for(var r=t,n=0;n<e.length;n++){if(r==null)return r;r=r[e[n]]}return r}function bx(t,e){return function(r){var n;return t.fullFields?n=FL(e,t.fullFields):n=e[r.field||t.fullField],DL(r)?(r.field=r.field||t.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||t.fullField}}}function _x(t,e){if(e){for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];nt(n)==="object"&&nt(t[r])==="object"?t[r]=ve(ve({},t[r]),n):t[r]=n}}return t}var ns="enum",jL=function(e,r,n,i,a){e[ns]=Array.isArray(e[ns])?e[ns]:[],e[ns].indexOf(r)===-1&&i.push(on(a.messages[ns],e.fullField,e[ns].join(", ")))},$L=function(e,r,n,i,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(r)||i.push(on(a.messages.pattern.mismatch,e.fullField,r,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(r)||i.push(on(a.messages.pattern.mismatch,e.fullField,r,e.pattern))}}},qL=function(e,r,n,i,a){var o=typeof e.len=="number",u=typeof e.min=="number",l=typeof e.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,h=null,p=typeof r=="number",v=typeof r=="string",m=Array.isArray(r);if(p?h="number":v?h="string":m&&(h="array"),!h)return!1;m&&(d=r.length),v&&(d=r.replace(f,"_").length),o?d!==e.len&&i.push(on(a.messages[h].len,e.fullField,e.len)):u&&!l&&d<e.min?i.push(on(a.messages[h].min,e.fullField,e.min)):l&&!u&&d>e.max?i.push(on(a.messages[h].max,e.fullField,e.max)):u&&l&&(d<e.min||d>e.max)&&i.push(on(a.messages[h].range,e.fullField,e.min,e.max))},wx=function(e,r,n,i,a,o){e.required&&(!n.hasOwnProperty(e.field)||ur(r,o||e.type))&&i.push(on(a.messages.required,e.fullField))},rf;const UL=function(){if(rf)return rf;var t="[a-fA-F\\d:]",e=function(T){return T&&T.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(t,")|(?<=").concat(t,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),u=new RegExp("(?:^".concat(r,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(r,"$")),f=new RegExp("^".concat(o,"$")),d=function(T){return T&&T.exact?u:new RegExp("(?:".concat(e(T)).concat(r).concat(e(T),")|(?:").concat(e(T)).concat(o).concat(e(T),")"),"g")};d.v4=function(_){return _&&_.exact?l:new RegExp("".concat(e(_)).concat(r).concat(e(_)),"g")},d.v6=function(_){return _&&_.exact?f:new RegExp("".concat(e(_)).concat(o).concat(e(_)),"g")};var h="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",v=d.v4().source,m=d.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",E="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',C="(?:".concat(h,"|www\\.)").concat(p,"(?:localhost|").concat(v,"|").concat(m,"|").concat(y).concat(b).concat(w,")").concat(E).concat(S);return rf=new RegExp("(?:^".concat(C,"$)"),"i"),rf};var Ex={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Du={integer:function(e){return Du.number(e)&&parseInt(e,10)===e},float:function(e){return Du.number(e)&&!Du.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return nt(e)==="object"&&!Du.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Ex.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(UL())},hex:function(e){return typeof e=="string"&&!!e.match(Ex.hex)}},zL=function(e,r,n,i,a){if(e.required&&r===void 0){wx(e,r,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=e.type;o.indexOf(u)>-1?Du[u](r)||i.push(on(a.messages.types[u],e.fullField,e.type)):u&&nt(r)!==e.type&&i.push(on(a.messages.types[u],e.fullField,e.type))},HL=function(e,r,n,i,a){(/^\s+$/.test(r)||r==="")&&i.push(on(a.messages.whitespace,e.fullField))};const yt={required:wx,whitespace:HL,type:zL,range:qL,enum:jL,pattern:$L};var VL=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r)&&!e.required)return n();yt.required(e,r,i,o,a)}n(o)},BL=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(r==null&&!e.required)return n();yt.required(e,r,i,o,a,"array"),r!=null&&(yt.type(e,r,i,o,a),yt.range(e,r,i,o,a))}n(o)},WL=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r)&&!e.required)return n();yt.required(e,r,i,o,a),r!==void 0&&yt.type(e,r,i,o,a)}n(o)},GL=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r,"date")&&!e.required)return n();if(yt.required(e,r,i,o,a),!ur(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),yt.type(e,l,i,o,a),l&&yt.range(e,l.getTime(),i,o,a)}}n(o)},QL="enum",YL=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r)&&!e.required)return n();yt.required(e,r,i,o,a),r!==void 0&&yt[QL](e,r,i,o,a)}n(o)},KL=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r)&&!e.required)return n();yt.required(e,r,i,o,a),r!==void 0&&(yt.type(e,r,i,o,a),yt.range(e,r,i,o,a))}n(o)},XL=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r)&&!e.required)return n();yt.required(e,r,i,o,a),r!==void 0&&(yt.type(e,r,i,o,a),yt.range(e,r,i,o,a))}n(o)},ZL=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r)&&!e.required)return n();yt.required(e,r,i,o,a),r!==void 0&&yt.type(e,r,i,o,a)}n(o)},JL=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(r===""&&(r=void 0),ur(r)&&!e.required)return n();yt.required(e,r,i,o,a),r!==void 0&&(yt.type(e,r,i,o,a),yt.range(e,r,i,o,a))}n(o)},eM=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r)&&!e.required)return n();yt.required(e,r,i,o,a),r!==void 0&&yt.type(e,r,i,o,a)}n(o)},tM=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r,"string")&&!e.required)return n();yt.required(e,r,i,o,a),ur(r,"string")||yt.pattern(e,r,i,o,a)}n(o)},rM=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r)&&!e.required)return n();yt.required(e,r,i,o,a),ur(r)||yt.type(e,r,i,o,a)}n(o)},nM=function(e,r,n,i,a){var o=[],u=Array.isArray(r)?"array":nt(r);yt.required(e,r,i,o,a,u),n(o)},iM=function(e,r,n,i,a){var o=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(ur(r,"string")&&!e.required)return n();yt.required(e,r,i,o,a,"string"),ur(r,"string")||(yt.type(e,r,i,o,a),yt.range(e,r,i,o,a),yt.pattern(e,r,i,o,a),e.whitespace===!0&&yt.whitespace(e,r,i,o,a))}n(o)},Yg=function(e,r,n,i,a){var o=e.type,u=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(ur(r,o)&&!e.required)return n();yt.required(e,r,i,u,a,o),ur(r,o)||yt.type(e,r,i,u,a)}n(u)};const Fu={string:iM,method:ZL,number:JL,boolean:WL,regexp:rM,integer:XL,float:KL,array:BL,object:eM,enum:YL,pattern:tM,date:GL,url:Yg,hex:Yg,email:Yg,required:nM,any:VL};var ju=function(){function t(e){kr(this,t),se(this,"rules",null),se(this,"_messages",Wg),this.define(e)}return Ar(t,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(nt(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];n.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(r){return r&&(this._messages=_x(Bg(),r)),this._messages}},{key:"validate",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=r,u=i,l=a;if(typeof u=="function"&&(l=u,u={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function f(m){var y=[],b={};function w(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,Be(S))}else y.push(S)}for(var E=0;E<m.length;E++)w(m[E]);y.length?(b=Qg(y),l(y,b)):l(null,o)}if(u.messages){var d=this.messages();d===Wg&&(d=Bg()),_x(d,u.messages),u.messages=d}else u.messages=this.messages();var h={},p=u.keys||Object.keys(this.rules);p.forEach(function(m){var y=n.rules[m],b=o[m];y.forEach(function(w){var E=w;typeof E.transform=="function"&&(o===r&&(o=ve({},o)),b=o[m]=E.transform(b),b!=null&&(E.type=E.type||(Array.isArray(b)?"array":nt(b)))),typeof E=="function"?E={validator:E}:E=ve({},E),E.validator=n.getValidationMethod(E),E.validator&&(E.field=m,E.fullField=E.fullField||m,E.type=n.getType(E),h[m]=h[m]||[],h[m].push({rule:E,value:b,source:o,field:m}))})});var v={};return ML(h,u,function(m,y){var b=m.rule,w=(b.type==="object"||b.type==="array")&&(nt(b.fields)==="object"||nt(b.defaultField)==="object");w=w&&(b.required||!b.required&&m.value),b.field=m.field;function E(O,k){return ve(ve({},k),{},{fullField:"".concat(b.fullField,".").concat(O),fullFields:b.fullFields?[].concat(Be(b.fullFields),[O]):[O]})}function S(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(O)?O:[O];!u.suppressWarning&&k.length&&t.warning("async-validator:",k),k.length&&b.message!==void 0&&(k=[].concat(b.message));var P=k.map(bx(b,o));if(u.first&&P.length)return v[b.field]=1,y(P);if(!w)y(P);else{if(b.required&&!m.value)return b.message!==void 0?P=[].concat(b.message).map(bx(b,o)):u.error&&(P=[u.error(b,on(u.messages.required,b.field))]),y(P);var N={};b.defaultField&&Object.keys(m.value).map(function(H){N[H]=b.defaultField}),N=ve(ve({},N),m.rule.fields);var M={};Object.keys(N).forEach(function(H){var L=N[H],F=Array.isArray(L)?L:[L];M[H]=F.map(E.bind(null,H))});var z=new t(M);z.messages(u.messages),m.rule.options&&(m.rule.options.messages=u.messages,m.rule.options.error=u.error),z.validate(m.value,m.rule.options||u,function(H){var L=[];P&&P.length&&L.push.apply(L,Be(P)),H&&H.length&&L.push.apply(L,Be(H)),y(L.length?L:null)})}}var C;if(b.asyncValidator)C=b.asyncValidator(b,m.value,S,m.source,u);else if(b.validator){try{C=b.validator(b,m.value,S,m.source,u)}catch(O){var _,T;(_=(T=console).error)===null||_===void 0||_.call(T,O),u.suppressValidatorError||setTimeout(function(){throw O},0),S(O.message)}C===!0?S():C===!1?S(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):C instanceof Array?S(C):C instanceof Error&&S(C.message)}C&&C.then&&C.then(function(){return S()},function(O){return S(O)})},function(m){f(m)},o)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Fu.hasOwnProperty(r.type))throw new Error(on("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),i=n.indexOf("message");return i!==-1&&n.splice(i,1),n.length===1&&n[0]==="required"?Fu.required:Fu[this.getType(r)]||void 0}}]),t}();se(ju,"register",function(e,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Fu[e]=r}),se(ju,"warning",gx),se(ju,"messages",Wg),se(ju,"validators",Fu);var sn="'${name}' is not a valid ${type}",Sx={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:sn,method:sn,array:sn,object:sn,number:sn,date:sn,boolean:sn,integer:sn,float:sn,regexp:sn,email:sn,url:sn,hex:sn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},xx=ju;function aM(t,e){return t.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return e[n]})}var Cx="CODE_LOGIC_ERROR";function Kg(t,e,r,n,i){return Xg.apply(this,arguments)}function Xg(){return Xg=Mu(Yn().mark(function t(e,r,n,i,a){var o,u,l,f,d,h,p,v,m;return Yn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return o=ve({},n),delete o.ruleIndex,xx.warning=function(){},o.validator&&(u=o.validator,o.validator=function(){try{return u.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject(Cx)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),f=new xx(se({},e,[o])),d=Au(Sx,i.validateMessages),f.messages(d),h=[],b.prev=10,b.next=13,Promise.resolve(f.validate(se({},e,r),ve({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(h=b.t0.errors.map(function(w,E){var S=w.message,C=S===Cx?d.default:S;return Z.isValidElement(C)?Z.cloneElement(C,{key:"error_".concat(E)}):C}));case 18:if(!(!h.length&&l)){b.next=23;break}return b.next=21,Promise.all(r.map(function(w,E){return Kg("".concat(e,".").concat(E),w,l,i,a)}));case 21:return p=b.sent,b.abrupt("return",p.reduce(function(w,E){return[].concat(Be(w),Be(E))},[]));case 23:return v=ve(ve({},n),{},{name:e,enum:(n.enum||[]).join(", ")},a),m=h.map(function(w){return typeof w=="string"?aM(w,v):w}),b.abrupt("return",m);case 26:case"end":return b.stop()}},t,null,[[10,15]])})),Xg.apply(this,arguments)}function oM(t,e,r,n,i,a){var o=t.join("."),u=r.map(function(d,h){var p=d.validator,v=ve(ve({},d),{},{ruleIndex:h});return p&&(v.validator=function(m,y,b){var w=!1,E=function(){for(var _=arguments.length,T=new Array(_),O=0;O<_;O++)T[O]=arguments[O];Promise.resolve().then(function(){Kt(!w,"Your validator function has already return a promise. `callback` will be ignored."),w||b.apply(void 0,T)})},S=p(m,y,E);w=S&&typeof S.then=="function"&&typeof S.catch=="function",Kt(w,"`callback` is deprecated. Please return a promise instead."),w&&S.then(function(){b()}).catch(function(C){b(C||" ")})}),v}).sort(function(d,h){var p=d.warningOnly,v=d.ruleIndex,m=h.warningOnly,y=h.ruleIndex;return!!p==!!m?v-y:p?1:-1}),l;if(i===!0)l=new Promise(function(){var d=Mu(Yn().mark(function h(p,v){var m,y,b;return Yn().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:m=0;case 1:if(!(m<u.length)){E.next=12;break}return y=u[m],E.next=5,Kg(o,e,y,n,a);case 5:if(b=E.sent,!b.length){E.next=9;break}return v([{errors:b,rule:y}]),E.abrupt("return");case 9:m+=1,E.next=1;break;case 12:p([]);case 13:case"end":return E.stop()}},h)}));return function(h,p){return d.apply(this,arguments)}}());else{var f=u.map(function(d){return Kg(o,e,d,n,a).then(function(h){return{errors:h,rule:d}})});l=(i?uM(f):sM(f)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function sM(t){return Zg.apply(this,arguments)}function Zg(){return Zg=Mu(Yn().mark(function t(e){return Yn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(e).then(function(i){var a,o=(a=[]).concat.apply(a,Be(i));return o}));case 1:case"end":return n.stop()}},t)})),Zg.apply(this,arguments)}function uM(t){return Jg.apply(this,arguments)}function Jg(){return Jg=Mu(Yn().mark(function t(e){var r;return Yn().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(a){e.forEach(function(o){o.then(function(u){u.errors.length&&a([u]),r+=1,r===e.length&&a([])})})}));case 2:case"end":return i.stop()}},t)})),Jg.apply(this,arguments)}function nr(t){return Vg(t)}function Tx(t,e){var r={};return e.forEach(function(n){var i=si(t,n);r=Gn(r,n,i)}),r}function is(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return t&&t.some(function(n){return Ox(e,n,r)})}function Ox(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t||!e||!r&&t.length!==e.length?!1:e.every(function(n,i){return t[i]===n})}function lM(t,e){if(t===e)return!0;if(!t&&e||t&&!e||!t||!e||nt(t)!=="object"||nt(e)!=="object")return!1;var r=Object.keys(t),n=Object.keys(e),i=new Set([].concat(r,n));return Be(i).every(function(a){var o=t[a],u=e[a];return typeof o=="function"&&typeof u=="function"?!0:o===u})}function cM(t){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&nt(e.target)==="object"&&t in e.target?e.target[t]:e}function Rx(t,e,r){var n=t.length;if(e<0||e>=n||r<0||r>=n)return t;var i=t[e],a=e-r;return a>0?[].concat(Be(t.slice(0,r)),[i],Be(t.slice(r,e)),Be(t.slice(e+1,n))):a<0?[].concat(Be(t.slice(0,e)),Be(t.slice(e+1,r+1)),[i],Be(t.slice(r+1,n))):t}var fM=["name"],Tn=[];function em(t,e,r,n,i,a){return typeof t=="function"?t(e,r,"source"in a?{source:a.source}:{}):n!==i}var tm=function(t){$a(r,t);var e=qa(r);function r(n){var i;if(kr(this,r),i=e.call(this,n),se(ft(i),"state",{resetCount:0}),se(ft(i),"cancelRegisterFunc",null),se(ft(i),"mounted",!1),se(ft(i),"touched",!1),se(ft(i),"dirty",!1),se(ft(i),"validatePromise",void 0),se(ft(i),"prevValidating",void 0),se(ft(i),"errors",Tn),se(ft(i),"warnings",Tn),se(ft(i),"cancelRegister",function(){var l=i.props,f=l.preserve,d=l.isListField,h=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,f,nr(h)),i.cancelRegisterFunc=null}),se(ft(i),"getNamePath",function(){var l=i.props,f=l.name,d=l.fieldContext,h=d.prefixName,p=h===void 0?[]:h;return f!==void 0?[].concat(Be(p),Be(f)):[]}),se(ft(i),"getRules",function(){var l=i.props,f=l.rules,d=f===void 0?[]:f,h=l.fieldContext;return d.map(function(p){return typeof p=="function"?p(h):p})}),se(ft(i),"refresh",function(){i.mounted&&i.setState(function(l){var f=l.resetCount;return{resetCount:f+1}})}),se(ft(i),"metaCache",null),se(ft(i),"triggerMetaEvent",function(l){var f=i.props.onMetaChange;if(f){var d=ve(ve({},i.getMeta()),{},{destroy:l});UE(i.metaCache,d)||f(d),i.metaCache=d}else i.metaCache=null}),se(ft(i),"onStoreChange",function(l,f,d){var h=i.props,p=h.shouldUpdate,v=h.dependencies,m=v===void 0?[]:v,y=h.onReset,b=d.store,w=i.getNamePath(),E=i.getValue(l),S=i.getValue(b),C=f&&is(f,w);switch(d.type==="valueUpdate"&&d.source==="external"&&!UE(E,S)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Tn,i.warnings=Tn,i.triggerMetaEvent()),d.type){case"reset":if(!f||C){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Tn,i.warnings=Tn,i.triggerMetaEvent(),y==null||y(),i.refresh();return}break;case"remove":{if(p&&em(p,l,b,E,S,d)){i.reRender();return}break}case"setField":{var _=d.data;if(C){"touched"in _&&(i.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(i.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(i.errors=_.errors||Tn),"warnings"in _&&(i.warnings=_.warnings||Tn),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in _&&is(f,w,!0)){i.reRender();return}if(p&&!w.length&&em(p,l,b,E,S,d)){i.reRender();return}break}case"dependenciesUpdate":{var T=m.map(nr);if(T.some(function(O){return is(d.relatedFields,O)})){i.reRender();return}break}default:if(C||(!m.length||w.length||p)&&em(p,l,b,E,S,d)){i.reRender();return}break}p===!0&&i.reRender()}),se(ft(i),"validateRules",function(l){var f=i.getNamePath(),d=i.getValue(),h=l||{},p=h.triggerName,v=h.validateOnly,m=v===void 0?!1:v,y=Promise.resolve().then(Mu(Yn().mark(function b(){var w,E,S,C,_,T,O;return Yn().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(i.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(w=i.props,E=w.validateFirst,S=E===void 0?!1:E,C=w.messageVariables,_=w.validateDebounce,T=i.getRules(),p&&(T=T.filter(function(N){return N}).filter(function(N){var M=N.validateTrigger;if(!M)return!0;var z=Vg(M);return z.includes(p)})),!(_&&p)){P.next=10;break}return P.next=8,new Promise(function(N){setTimeout(N,_)});case 8:if(i.validatePromise===y){P.next=10;break}return P.abrupt("return",[]);case 10:return O=oM(f,d,T,l,S,C),O.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn;if(i.validatePromise===y){var M;i.validatePromise=null;var z=[],H=[];(M=N.forEach)===null||M===void 0||M.call(N,function(L){var F=L.rule.warningOnly,U=L.errors,Y=U===void 0?Tn:U;F?H.push.apply(H,Be(Y)):z.push.apply(z,Be(Y))}),i.errors=z,i.warnings=H,i.triggerMetaEvent(),i.reRender()}}),P.abrupt("return",O);case 13:case"end":return P.stop()}},b)})));return m||(i.validatePromise=y,i.dirty=!0,i.errors=Tn,i.warnings=Tn,i.triggerMetaEvent(),i.reRender()),y}),se(ft(i),"isFieldValidating",function(){return!!i.validatePromise}),se(ft(i),"isFieldTouched",function(){return i.touched}),se(ft(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,f=l.getInternalHooks(Wa),d=f.getInitialValue;return d(i.getNamePath())!==void 0}),se(ft(i),"getErrors",function(){return i.errors}),se(ft(i),"getWarnings",function(){return i.warnings}),se(ft(i),"isListField",function(){return i.props.isListField}),se(ft(i),"isList",function(){return i.props.isList}),se(ft(i),"isPreserve",function(){return i.props.preserve}),se(ft(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),se(ft(i),"getOnlyChild",function(l){if(typeof l=="function"){var f=i.getMeta();return ve(ve({},i.getOnlyChild(l(i.getControlled(),f,i.props.fieldContext))),{},{isFunction:!0})}var d=Cc(l);return d.length!==1||!Z.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),se(ft(i),"getValue",function(l){var f=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return si(l||f(!0),d)}),se(ft(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=i.props,d=f.name,h=f.trigger,p=f.validateTrigger,v=f.getValueFromEvent,m=f.normalize,y=f.valuePropName,b=f.getValueProps,w=f.fieldContext,E=p!==void 0?p:w.validateTrigger,S=i.getNamePath(),C=w.getInternalHooks,_=w.getFieldsValue,T=C(Wa),O=T.dispatch,k=i.getValue(),P=b||function(L){return se({},y,L)},N=l[h],M=d!==void 0?P(k):{};M&&Object.keys(M).forEach(function(L){Kt(typeof M[L]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(L,")"))});var z=ve(ve({},l),M);z[h]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var L,F=arguments.length,U=new Array(F),Y=0;Y<F;Y++)U[Y]=arguments[Y];v?L=v.apply(void 0,U):L=cM.apply(void 0,[y].concat(U)),m&&(L=m(L,k,_(!0))),L!==k&&O({type:"updateValue",namePath:S,value:L}),N&&N.apply(void 0,U)};var H=Vg(E||[]);return H.forEach(function(L){var F=z[L];z[L]=function(){F&&F.apply(void 0,arguments);var U=i.props.rules;U&&U.length&&O({type:"validateField",namePath:S,triggerName:L})}}),z}),n.fieldContext){var a=n.fieldContext.getInternalHooks,o=a(Wa),u=o.initEntityValue;u(ft(i))}return i}return Ar(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,o=i.fieldContext;if(this.mounted=!0,o){var u=o.getInternalHooks,l=u(Wa),f=l.registerField;this.cancelRegisterFunc=f(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,a=this.props.children,o=this.getOnlyChild(a),u=o.child,l=o.isFunction,f;return l?f=u:Z.isValidElement(u)?f=Z.cloneElement(u,this.getControlled(u.props)):(Kt(!u,"`children` of Field is not validate ReactElement."),f=u),Z.createElement(Z.Fragment,{key:i},f)}}]),r}(Z.Component);se(tm,"contextType",rs),se(tm,"defaultProps",{trigger:"onChange",valuePropName:"value"});function kx(t){var e,r=t.name,n=za(t,fM),i=Z.useContext(rs),a=Z.useContext(tf),o=r!==void 0?nr(r):void 0,u=(e=n.isListField)!==null&&e!==void 0?e:!!a,l="keep";return u||(l="_".concat((o||[]).join("_"))),n.preserve===!1&&u&&o.length<=1&&Kt(!1,"`preserve` should not apply on Form.List fields."),Z.createElement(tm,ai({key:l,name:o,isListField:u},n,{fieldContext:i}))}function dM(t){var e=t.name,r=t.initialValue,n=t.children,i=t.rules,a=t.validateTrigger,o=t.isListField,u=Z.useContext(rs),l=Z.useContext(tf),f=Z.useRef({keys:[],id:0}),d=f.current,h=Z.useMemo(function(){var y=nr(u.prefixName)||[];return[].concat(Be(y),Be(nr(e)))},[u.prefixName,e]),p=Z.useMemo(function(){return ve(ve({},u),{},{prefixName:h})},[u,h]),v=Z.useMemo(function(){return{getKey:function(b){var w=h.length,E=b[w];return[d.keys[E],b.slice(w+1)]}}},[h]);if(typeof n!="function")return Kt(!1,"Form.List only accepts function as children."),null;var m=function(b,w,E){var S=E.source;return S==="internal"?!1:b!==w};return Z.createElement(tf.Provider,{value:v},Z.createElement(rs.Provider,{value:p},Z.createElement(kx,{name:[],shouldUpdate:m,rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:o??!!l},function(y,b){var w=y.value,E=w===void 0?[]:w,S=y.onChange,C=u.getFieldValue,_=function(){var P=C(h||[]);return P||[]},T={add:function(P,N){var M=_();N>=0&&N<=M.length?(d.keys=[].concat(Be(d.keys.slice(0,N)),[d.id],Be(d.keys.slice(N))),S([].concat(Be(M.slice(0,N)),[P],Be(M.slice(N))))):((N<0||N>M.length)&&Kt(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(Be(d.keys),[d.id]),S([].concat(Be(M),[P]))),d.id+=1},remove:function(P){var N=_(),M=new Set(Array.isArray(P)?P:[P]);M.size<=0||(d.keys=d.keys.filter(function(z,H){return!M.has(H)}),S(N.filter(function(z,H){return!M.has(H)})))},move:function(P,N){if(P!==N){var M=_();P<0||P>=M.length||N<0||N>=M.length||(d.keys=Rx(d.keys,P,N),S(Rx(M,P,N)))}}},O=E||[];return Array.isArray(O)||(O=[],Kt(!1,"Current value of '".concat(h.join(" > "),"' is not an array type."))),n(O.map(function(k,P){var N=d.keys[P];return N===void 0&&(d.keys[P]=d.id,N=d.keys[P],d.id+=1),{name:P,key:N,isListField:!0}}),T,b)})))}function hM(t){var e=!1,r=t.length,n=[];return t.length?new Promise(function(i,a){t.forEach(function(o,u){o.catch(function(l){return e=!0,l}).then(function(l){r-=1,n[u]=l,!(r>0)&&(e&&a(n),i(n))})})}):Promise.resolve([])}var Ax="__@field_split__";function rm(t){return t.map(function(e){return"".concat(nt(e),":").concat(e)}).join(Ax)}var as=function(){function t(){kr(this,t),se(this,"kvs",new Map)}return Ar(t,[{key:"set",value:function(r,n){this.kvs.set(rm(r),n)}},{key:"get",value:function(r){return this.kvs.get(rm(r))}},{key:"update",value:function(r,n){var i=this.get(r),a=n(i);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(rm(r))}},{key:"map",value:function(r){return Be(this.kvs.entries()).map(function(n){var i=Le(n,2),a=i[0],o=i[1],u=a.split(Ax);return r({key:u.map(function(l){var f=l.match(/^([^:]*):(.*)$/),d=Le(f,3),h=d[1],p=d[2];return h==="number"?Number(p):p}),value:o})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,a=n.value;return r[i.join(".")]=a,null}),r}}]),t}(),pM=["name"],vM=Ar(function t(e){var r=this;kr(this,t),se(this,"formHooked",!1),se(this,"forceRootUpdate",void 0),se(this,"subscribable",!0),se(this,"store",{}),se(this,"fieldEntities",[]),se(this,"initialValues",{}),se(this,"callbacks",{}),se(this,"validateMessages",null),se(this,"preserve",null),se(this,"lastValidatePromise",null),se(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),se(this,"getInternalHooks",function(n){return n===Wa?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Kt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),se(this,"useSubscribe",function(n){r.subscribable=n}),se(this,"prevWithoutPreserves",null),se(this,"setInitialValues",function(n,i){if(r.initialValues=n||{},i){var a,o=Au(n,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(u){var l=u.key;o=Gn(o,l,si(n,l))}),r.prevWithoutPreserves=null,r.updateStore(o)}}),se(this,"destroyForm",function(n){if(n)r.updateStore({});else{var i=new as;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=i}}),se(this,"getInitialValue",function(n){var i=si(r.initialValues,n);return n.length?Au(i):i}),se(this,"setCallbacks",function(n){r.callbacks=n}),se(this,"setValidateMessages",function(n){r.validateMessages=n}),se(this,"setPreserve",function(n){r.preserve=n}),se(this,"watchList",[]),se(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n})}}),se(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(o){o(i,a,n)})}}),se(this,"timeoutId",null),se(this,"warningUnhooked",function(){!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||Kt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),se(this,"updateStore",function(n){r.store=n}),se(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities}),se(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new as;return r.getFieldEntities(n).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),se(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(a){var o=nr(a);return i.get(o)||{INVALIDATE_NAME_PATH:nr(a)}})}),se(this,"getFieldsValue",function(n,i){r.warningUnhooked();var a,o,u;if(n===!0||Array.isArray(n)?(a=n,o=i):n&&nt(n)==="object"&&(u=n.strict,o=n.filter),a===!0&&!o)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),f=[];return l.forEach(function(d){var h,p,v="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(u){var m,y;if((m=(y=d).isList)!==null&&m!==void 0&&m.call(y))return}else if(!a&&(h=(p=d).isListField)!==null&&h!==void 0&&h.call(p))return;if(!o)f.push(v);else{var b="getMeta"in d?d.getMeta():null;o(b)&&f.push(v)}}),Tx(r.store,f.map(nr))}),se(this,"getFieldValue",function(n){r.warningUnhooked();var i=nr(n);return si(r.store,i)}),se(this,"getFieldsError",function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:nr(n[o]),errors:[],warnings:[]}})}),se(this,"getFieldError",function(n){r.warningUnhooked();var i=nr(n),a=r.getFieldsError([i])[0];return a.errors}),se(this,"getFieldWarning",function(n){r.warningUnhooked();var i=nr(n),a=r.getFieldsError([i])[0];return a.warnings}),se(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i[0],u=i[1],l,f=!1;i.length===0?l=null:i.length===1?Array.isArray(o)?(l=o.map(nr),f=!1):(l=null,f=o):(l=o.map(nr),f=u);var d=r.getFieldEntities(!0),h=function(b){return b.isFieldTouched()};if(!l)return f?d.every(function(y){return h(y)||y.isList()}):d.some(h);var p=new as;l.forEach(function(y){p.set(y,[])}),d.forEach(function(y){var b=y.getNamePath();l.forEach(function(w){w.every(function(E,S){return b[S]===E})&&p.update(w,function(E){return[].concat(Be(E),[y])})})});var v=function(b){return b.some(h)},m=p.map(function(y){var b=y.value;return b});return f?m.every(v):m.some(v)}),se(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),se(this,"isFieldsValidating",function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(o){return o.isFieldValidating()});var a=n.map(nr);return i.some(function(o){var u=o.getNamePath();return is(a,u)&&o.isFieldValidating()})}),se(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),se(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new as,a=r.getFieldEntities(!0);a.forEach(function(l){var f=l.props.initialValue,d=l.getNamePath();if(f!==void 0){var h=i.get(d)||new Set;h.add({entity:l,value:f}),i.set(d,h)}});var o=function(f){f.forEach(function(d){var h=d.props.initialValue;if(h!==void 0){var p=d.getNamePath(),v=r.getInitialValue(p);if(v!==void 0)Kt(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var m=i.get(p);if(m&&m.size>1)Kt(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var y=r.getFieldValue(p),b=d.isListField();!b&&(!n.skipExist||y===void 0)&&r.updateStore(Gn(r.store,p,Be(m)[0].value))}}}})},u;n.entities?u=n.entities:n.namePathList?(u=[],n.namePathList.forEach(function(l){var f=i.get(l);if(f){var d;(d=u).push.apply(d,Be(Be(f).map(function(h){return h.entity})))}})):u=a,o(u)}),se(this,"resetFields",function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(Au(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var a=n.map(nr);a.forEach(function(o){var u=r.getInitialValue(o);r.updateStore(Gn(r.store,o,u))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(i,a,{type:"reset"}),r.notifyWatch(a)}),se(this,"setFields",function(n){r.warningUnhooked();var i=r.store,a=[];n.forEach(function(o){var u=o.name,l=za(o,pM),f=nr(u);a.push(f),"value"in l&&r.updateStore(Gn(r.store,f,l.value)),r.notifyObservers(i,[f],{type:"setField",data:o})}),r.notifyWatch(a)}),se(this,"getFields",function(){var n=r.getFieldEntities(!0),i=n.map(function(a){var o=a.getNamePath(),u=a.getMeta(),l=ve(ve({},u),{},{name:o,value:r.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),se(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var a=n.getNamePath(),o=si(r.store,a);o===void 0&&r.updateStore(Gn(r.store,a,i))}}),se(this,"isMergedPreserve",function(n){var i=n!==void 0?n:r.preserve;return i??!0}),se(this,"registerField",function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(a,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,u){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(h){return h!==n}),!r.isMergedPreserve(u)&&(!o||l.length>1)){var f=o?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==f&&r.fieldEntities.every(function(h){return!Ox(h.getNamePath(),i)})){var d=r.store;r.updateStore(Gn(d,i,f,!0)),r.notifyObservers(d,[i],{type:"remove"}),r.triggerDependenciesUpdate(d,i)}}r.notifyWatch([i])}}),se(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,a=n.value;r.updateValue(i,a);break}case"validateField":{var o=n.namePath,u=n.triggerName;r.validateFields([o],{triggerName:u});break}}}),se(this,"notifyObservers",function(n,i,a){if(r.subscribable){var o=ve(ve({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(u){var l=u.onStoreChange;l(n,i,o)})}else r.forceRootUpdate()}),se(this,"triggerDependenciesUpdate",function(n,i){var a=r.getDependencyChildrenFields(i);return a.length&&r.validateFields(a),r.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[i].concat(Be(a))}),a}),se(this,"updateValue",function(n,i){var a=nr(n),o=r.store;r.updateStore(Gn(r.store,a,i)),r.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var u=r.triggerDependenciesUpdate(o,a),l=r.callbacks.onValuesChange;if(l){var f=Tx(r.store,[a]);l(f,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(Be(u)))}),se(this,"setFieldsValue",function(n){r.warningUnhooked();var i=r.store;if(n){var a=Au(r.store,n);r.updateStore(a)}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),se(this,"setFieldValue",function(n,i){r.setFields([{name:n,value:i,errors:[],warnings:[]}])}),se(this,"getDependencyChildrenFields",function(n){var i=new Set,a=[],o=new as;r.getFieldEntities().forEach(function(l){var f=l.props.dependencies;(f||[]).forEach(function(d){var h=nr(d);o.update(h,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var u=function l(f){var d=o.get(f)||new Set;d.forEach(function(h){if(!i.has(h)){i.add(h);var p=h.getNamePath();h.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return u(n),a}),se(this,"triggerOnFieldsChange",function(n,i){var a=r.callbacks.onFieldsChange;if(a){var o=r.getFields();if(i){var u=new as;i.forEach(function(f){var d=f.name,h=f.errors;u.set(d,h)}),o.forEach(function(f){f.errors=u.get(f.name)||f.errors})}var l=o.filter(function(f){var d=f.name;return is(n,d)});l.length&&a(l,o)}}),se(this,"validateFields",function(n,i){r.warningUnhooked();var a,o;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(a=n,o=i):o=n;var u=!!a,l=u?a.map(nr):[],f=[],d=String(Date.now()),h=new Set,p=o||{},v=p.recursive,m=p.dirty;r.getFieldEntities(!0).forEach(function(E){if(u||l.push(E.getNamePath()),!(!E.props.rules||!E.props.rules.length)&&!(m&&!E.isFieldDirty())){var S=E.getNamePath();if(h.add(S.join(d)),!u||is(l,S,v)){var C=E.validateRules(ve({validateMessages:ve(ve({},Sx),r.validateMessages)},o));f.push(C.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(_){var T,O=[],k=[];return(T=_.forEach)===null||T===void 0||T.call(_,function(P){var N=P.rule.warningOnly,M=P.errors;N?k.push.apply(k,Be(M)):O.push.apply(O,Be(M))}),O.length?Promise.reject({name:S,errors:O,warnings:k}):{name:S,errors:O,warnings:k}}))}}});var y=hM(f);r.lastValidatePromise=y,y.catch(function(E){return E}).then(function(E){var S=E.map(function(C){var _=C.name;return _});r.notifyObservers(r.store,S,{type:"validateFinish"}),r.triggerOnFieldsChange(S,E)});var b=y.then(function(){return r.lastValidatePromise===y?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(E){var S=E.filter(function(C){return C&&C.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:S,outOfDate:r.lastValidatePromise!==y})});b.catch(function(E){return E});var w=l.filter(function(E){return h.has(E.join(d))});return r.triggerOnFieldsChange(w),b}),se(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n)}catch(a){console.error(a)}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n)})}),this.forceRootUpdate=e});function Px(t){var e=Z.useRef(),r=Z.useState({}),n=Le(r,2),i=n[1];if(!e.current)if(t)e.current=t;else{var a=function(){i({})},o=new vM(a);e.current=o.getForm()}return[e.current]}var nm=Z.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),gM=function(e){var r=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,a=e.children,o=Z.useContext(nm),u=Z.useRef({});return Z.createElement(nm.Provider,{value:ve(ve({},o),{},{validateMessages:ve(ve({},o.validateMessages),r),triggerFormChange:function(f,d){n&&n(f,{changedFields:d,forms:u.current}),o.triggerFormChange(f,d)},triggerFormFinish:function(f,d){i&&i(f,{values:d,forms:u.current}),o.triggerFormFinish(f,d)},registerForm:function(f,d){f&&(u.current=ve(ve({},u.current),{},se({},f,d))),o.registerForm(f,d)},unregisterForm:function(f){var d=ve({},u.current);delete d[f],u.current=d,o.unregisterForm(f)}})},a)},mM=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],yM=function(e,r){var n=e.name,i=e.initialValues,a=e.fields,o=e.form,u=e.preserve,l=e.children,f=e.component,d=f===void 0?"form":f,h=e.validateMessages,p=e.validateTrigger,v=p===void 0?"onChange":p,m=e.onValuesChange,y=e.onFieldsChange,b=e.onFinish,w=e.onFinishFailed,E=e.clearOnDestroy,S=za(e,mM),C=Z.useRef(null),_=Z.useContext(nm),T=Px(o),O=Le(T,1),k=O[0],P=k.getInternalHooks(Wa),N=P.useSubscribe,M=P.setInitialValues,z=P.setCallbacks,H=P.setValidateMessages,L=P.setPreserve,F=P.destroyForm;Z.useImperativeHandle(r,function(){return ve(ve({},k),{},{nativeElement:C.current})}),Z.useEffect(function(){return _.registerForm(n,k),function(){_.unregisterForm(n)}},[_,k,n]),H(ve(ve({},_.validateMessages),h)),z({onValuesChange:m,onFieldsChange:function(te){if(_.triggerFormChange(n,te),y){for(var fe=arguments.length,ue=new Array(fe>1?fe-1:0),W=1;W<fe;W++)ue[W-1]=arguments[W];y.apply(void 0,[te].concat(ue))}},onFinish:function(te){_.triggerFormFinish(n,te),b&&b(te)},onFinishFailed:w}),L(u);var U=Z.useRef(null);M(i,!U.current),U.current||(U.current=!0),Z.useEffect(function(){return function(){return F(E)}},[]);var Y,V=typeof l=="function";if(V){var K=k.getFieldsValue(!0);Y=l(K,k)}else Y=l;N(!V);var $=Z.useRef();Z.useEffect(function(){lM($.current||[],a||[])||k.setFields(a||[]),$.current=a},[a,k]);var Q=Z.useMemo(function(){return ve(ve({},k),{},{validateTrigger:v})},[k,v]),ae=Z.createElement(tf.Provider,{value:null},Z.createElement(rs.Provider,{value:Q},Y));return d===!1?ae:Z.createElement(d,ai({},S,{ref:C,onSubmit:function(te){te.preventDefault(),te.stopPropagation(),k.submit()},onReset:function(te){var fe;te.preventDefault(),k.resetFields(),(fe=S.onReset)===null||fe===void 0||fe.call(S,te)}}),ae)};function Nx(t){try{return JSON.stringify(t)}catch{return Math.random()}}var bM=function(t){var e=t.join("__RC_FIELD_FORM_SPLIT__"),r=q.useRef(e);Kt(r.current===e,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")};function _M(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],a=i===void 0?{}:i,o=RL(a)?{form:a}:a,u=o.form,l=q.useState(),f=Le(l,2),d=f[0],h=f[1],p=q.useMemo(function(){return Nx(d)},[d]),v=q.useRef(p);v.current=p;var m=q.useContext(rs),y=u||m,b=y&&y._init;Kt(e.length===2?u?b:!0:b,"useWatch requires a form instance since it can not auto detect from context.");var w=nr(n),E=q.useRef(w);return E.current=w,bM(w),q.useEffect(function(){if(b){var S=y.getFieldsValue,C=y.getInternalHooks,_=C(Wa),T=_.registerWatch,O=function(M,z){var H=o.preserve?z:M;return typeof n=="function"?n(H):si(H,E.current)},k=T(function(N,M){var z=O(N,M),H=Nx(z);v.current!==H&&(v.current=H,h(z))}),P=O(S(),S(!0));return d!==P&&h(P),k}},[b]),d}var wM=Z.forwardRef(yM),$u=wM;$u.FormProvider=gM,$u.Field=kx,$u.List=dM,$u.useForm=Px,$u.useWatch=_M;const im=Z.createContext({});im.displayName="FormItemInputContext";const EM=t=>{let{children:e,status:r,override:n}=t;const i=Z.useContext(im),a=Z.useMemo(()=>{const o=Object.assign({},i);return n&&delete o.isFormItemInput,r&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[r,n,i]);return Z.createElement(im.Provider,{value:a},e)},SM=t=>{const{space:e,form:r,children:n}=t;if(n==null)return null;let i=n;return r&&(i=q.createElement(EM,{override:!0,status:!0},i)),e&&(i=q.createElement(nL,null,i)),i},xM=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substr(0,4))};function CM(t){var e=t.prefixCls,r=t.align,n=t.arrow,i=t.arrowPos,a=n||{},o=a.className,u=a.content,l=i.x,f=l===void 0?0:l,d=i.y,h=d===void 0?0:d,p=Z.useRef();if(!r||!r.points)return null;var v={position:"absolute"};if(r.autoArrow!==!1){var m=r.points[0],y=r.points[1],b=m[0],w=m[1],E=y[0],S=y[1];b===E||!["t","b"].includes(b)?v.top=h:b==="t"?v.top=0:v.bottom=0,w===S||!["l","r"].includes(w)?v.left=f:w==="l"?v.left=0:v.right=0}return Z.createElement("div",{ref:p,className:Dr("".concat(e,"-arrow"),o),style:v},u)}function TM(t){var e=t.prefixCls,r=t.open,n=t.zIndex,i=t.mask,a=t.motion;return i?Z.createElement(Mg,ai({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(o){var u=o.className;return Z.createElement("div",{style:{zIndex:n},className:Dr("".concat(e,"-mask"),u)})}):null}var Ix=Z.memo(function(t){var e=t.children;return e},function(t,e){return e.cache});Ix.displayName="PopupContent";var Lx=Z.forwardRef(function(t,e){var r=t.popup,n=t.className,i=t.prefixCls,a=t.style,o=t.target,u=t.onVisibleChanged,l=t.open,f=t.keepDom,d=t.fresh,h=t.onClick,p=t.mask,v=t.arrow,m=t.arrowPos,y=t.align,b=t.motion,w=t.maskMotion,E=t.forceRender,S=t.getPopupContainer,C=t.autoDestroy,_=t.portal,T=t.zIndex,O=t.onMouseEnter,k=t.onMouseLeave,P=t.onPointerEnter,N=t.onPointerDownCapture,M=t.ready,z=t.offsetX,H=t.offsetY,L=t.offsetR,F=t.offsetB,U=t.onAlign,Y=t.onPrepare,V=t.stretch,K=t.targetWidth,$=t.targetHeight,Q=typeof r=="function"?r():r,ae=l||f,ie=(S==null?void 0:S.length)>0,te=Z.useState(!S||!ie),fe=Le(te,2),ue=fe[0],W=fe[1];if(Fr(function(){!ue&&ie&&o&&W(!0)},[ue,ie,o]),!ue)return null;var de="auto",ye={left:"-1000vw",top:"-1000vh",right:de,bottom:de};if(M||!l){var Se,J=y.points,j=y.dynamicInset||((Se=y._experimental)===null||Se===void 0?void 0:Se.dynamicInset),Re=j&&J[0][1]==="r",oe=j&&J[0][0]==="b";Re?(ye.right=L,ye.left=de):(ye.left=z,ye.right=de),oe?(ye.bottom=F,ye.top=de):(ye.top=H,ye.bottom=de)}var xe={};return V&&(V.includes("height")&&$?xe.height=$:V.includes("minHeight")&&$&&(xe.minHeight=$),V.includes("width")&&K?xe.width=K:V.includes("minWidth")&&K&&(xe.minWidth=K)),l||(xe.pointerEvents="none"),Z.createElement(_,{open:E||ae,getContainer:S&&function(){return S(o)},autoDestroy:C},Z.createElement(TM,{prefixCls:i,open:l,zIndex:T,mask:p,motion:w}),Z.createElement(Pc,{onResize:U,disabled:!l},function(Fe){return Z.createElement(Mg,ai({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:Y,onEnterPrepare:Y,visible:l,onVisibleChanged:function(Ye){var Xe;b==null||(Xe=b.onVisibleChanged)===null||Xe===void 0||Xe.call(b,Ye),u(Ye)}}),function(He,Ye){var Xe=He.className,ht=He.style,je=Dr(i,Xe,n);return Z.createElement("div",{ref:yE(Fe,e,Ye),className:je,style:ve(ve(ve(ve({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ye),xe),ht),{},{boxSizing:"border-box",zIndex:T},a),onMouseEnter:O,onMouseLeave:k,onPointerEnter:P,onClick:h,onPointerDownCapture:N},v&&Z.createElement(CM,{prefixCls:i,arrow:v,arrowPos:m,align:y}),Z.createElement(Ix,{cache:!l&&!d},Q))})}))});Lx.displayName="Popup";var Mx=Z.forwardRef(function(t,e){var r=t.children,n=t.getTriggerDOMNode,i=Oc(r),a=Z.useCallback(function(u){Bv(e,n?n(u):u)},[n]),o=Wv(a,Gv(r));return i?Z.cloneElement(r,{ref:o}):r});Mx.displayName="TriggerWrapper";var Dx=Z.createContext(null);function Fx(t){return t?Array.isArray(t)?t:[t]:[]}function OM(t,e,r,n){return Z.useMemo(function(){var i=Fx(r??e),a=Fx(n??e),o=new Set(i),u=new Set(a);return t&&(o.has("hover")&&(o.delete("hover"),o.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[o,u]},[t,e,r,n])}function RM(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function kM(t,e,r,n){for(var i=r.points,a=Object.keys(t),o=0;o<a.length;o+=1){var u,l=a[o];if(RM((u=t[l])===null||u===void 0?void 0:u.points,i,n))return"".concat(e,"-placement-").concat(l)}return""}function jx(t,e,r,n){return e||(r?{motionName:"".concat(t,"-").concat(r)}:n?{motionName:n}:null)}function qu(t){return t.ownerDocument.defaultView}function am(t){for(var e=[],r=t==null?void 0:t.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=qu(r).getComputedStyle(r),a=i.overflowX,o=i.overflowY,u=i.overflow;[a,o,u].some(function(l){return n.includes(l)})&&e.push(r),r=r.parentElement}return e}function Uu(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?e:t}function zu(t){return Uu(parseFloat(t),0)}function $x(t,e){var r=ve({},t);return(e||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=qu(n).getComputedStyle(n),a=i.overflow,o=i.overflowClipMargin,u=i.borderTopWidth,l=i.borderBottomWidth,f=i.borderLeftWidth,d=i.borderRightWidth,h=n.getBoundingClientRect(),p=n.offsetHeight,v=n.clientHeight,m=n.offsetWidth,y=n.clientWidth,b=zu(u),w=zu(l),E=zu(f),S=zu(d),C=Uu(Math.round(h.width/m*1e3)/1e3),_=Uu(Math.round(h.height/p*1e3)/1e3),T=(m-y-E-S)*C,O=(p-v-b-w)*_,k=b*_,P=w*_,N=E*C,M=S*C,z=0,H=0;if(a==="clip"){var L=zu(o);z=L*C,H=L*_}var F=h.x+N-z,U=h.y+k-H,Y=F+h.width+2*z-N-M-T,V=U+h.height+2*H-k-P-O;r.left=Math.max(r.left,F),r.top=Math.max(r.top,U),r.right=Math.min(r.right,Y),r.bottom=Math.min(r.bottom,V)}}),r}function qx(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(e),n=r.match(/^(.*)\%$/);return n?t*(parseFloat(n[1])/100):parseFloat(r)}function Ux(t,e){var r=e||[],n=Le(r,2),i=n[0],a=n[1];return[qx(t.width,i),qx(t.height,a)]}function zx(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}function os(t,e){var r=e[0],n=e[1],i,a;return r==="t"?a=t.y:r==="b"?a=t.y+t.height:a=t.y+t.height/2,n==="l"?i=t.x:n==="r"?i=t.x+t.width:i=t.x+t.width/2,{x:i,y:a}}function aa(t,e){var r={t:"b",b:"t",l:"r",r:"l"};return t.map(function(n,i){return i===e?r[n]||"c":n}).join("")}function AM(t,e,r,n,i,a,o){var u=Z.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),l=Le(u,2),f=l[0],d=l[1],h=Z.useRef(0),p=Z.useMemo(function(){return e?am(e):[]},[e]),v=Z.useRef({}),m=function(){v.current={}};t||m();var y=Cn(function(){if(e&&r&&t){let qr=function(Pi,gi){var mi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ot,eo=te.x+Pi,to=te.y+gi,Hu=eo+Re,Vu=to+j,Bu=Math.max(eo,mi.left),$e=Math.max(to,mi.top),Ve=Math.min(Hu,mi.right),Vt=Math.min(Vu,mi.bottom);return Math.max(0,(Ve-Bu)*(Vt-$e))},Ja=function(){vt=te.y+Mt,tt=vt+j,Ke=te.x+xt,Wt=Ke+Re};var E,S,C,_,T=e,O=T.ownerDocument,k=qu(T),P=k.getComputedStyle(T),N=P.width,M=P.height,z=P.position,H=T.style.left,L=T.style.top,F=T.style.right,U=T.style.bottom,Y=T.style.overflow,V=ve(ve({},i[n]),a),K=O.createElement("div");(E=T.parentElement)===null||E===void 0||E.appendChild(K),K.style.left="".concat(T.offsetLeft,"px"),K.style.top="".concat(T.offsetTop,"px"),K.style.position=z,K.style.height="".concat(T.offsetHeight,"px"),K.style.width="".concat(T.offsetWidth,"px"),T.style.left="0",T.style.top="0",T.style.right="auto",T.style.bottom="auto",T.style.overflow="hidden";var $;if(Array.isArray(r))$={x:r[0],y:r[1],width:0,height:0};else{var Q,ae,ie=r.getBoundingClientRect();ie.x=(Q=ie.x)!==null&&Q!==void 0?Q:ie.left,ie.y=(ae=ie.y)!==null&&ae!==void 0?ae:ie.top,$={x:ie.x,y:ie.y,width:ie.width,height:ie.height}}var te=T.getBoundingClientRect();te.x=(S=te.x)!==null&&S!==void 0?S:te.left,te.y=(C=te.y)!==null&&C!==void 0?C:te.top;var fe=O.documentElement,ue=fe.clientWidth,W=fe.clientHeight,de=fe.scrollWidth,ye=fe.scrollHeight,Se=fe.scrollTop,J=fe.scrollLeft,j=te.height,Re=te.width,oe=$.height,xe=$.width,Fe={left:0,top:0,right:ue,bottom:W},He={left:-J,top:-Se,right:de-J,bottom:ye-Se},Ye=V.htmlRegion,Xe="visible",ht="visibleFirst";Ye!=="scroll"&&Ye!==ht&&(Ye=Xe);var je=Ye===ht,Te=$x(He,p),we=$x(Fe,p),ot=Ye===Xe?we:Te,_e=je?we:ot;T.style.left="auto",T.style.top="auto",T.style.right="0",T.style.bottom="0";var Ce=T.getBoundingClientRect();T.style.left=H,T.style.top=L,T.style.right=F,T.style.bottom=U,T.style.overflow=Y,(_=T.parentElement)===null||_===void 0||_.removeChild(K);var he=Uu(Math.round(Re/parseFloat(N)*1e3)/1e3),Ne=Uu(Math.round(j/parseFloat(M)*1e3)/1e3);if(he===0||Ne===0||Eu(r)&&!tL(r))return;var Oe=V.offset,Me=V.targetOffset,et=Ux(te,Oe),It=Le(et,2),Jt=It[0],vr=It[1],Oi=Ux($,Me),un=Le(Oi,2),gr=un[0],Gr=un[1];$.x-=gr,$.y-=Gr;var oa=V.points||[],ln=Le(oa,2),ui=ln[0],li=ln[1],jr=zx(li),wr=zx(ui),ci=os($,jr),lr=os(te,wr),Qr=ve({},V),xt=ci.x-lr.x+Jt,Mt=ci.y-lr.y+vr,$r=qr(xt,Mt),Yr=qr(xt,Mt,we),fi=os($,["t","l"]),mr=os(te,["t","l"]),sa=os($,["b","r"]),Ri=os(te,["b","r"]),Rn=V.overflow||{},G=Rn.adjustX,Ee=Rn.adjustY,ke=Rn.shiftX,ze=Rn.shiftY,pt=function(gi){return typeof gi=="boolean"?gi:gi>=0},vt,tt,Ke,Wt;Ja();var Ct=pt(Ee),qt=wr[0]===jr[0];if(Ct&&wr[0]==="t"&&(tt>_e.bottom||v.current.bt)){var St=Mt;qt?St-=j-oe:St=fi.y-Ri.y-vr;var Pr=qr(xt,St),cn=qr(xt,St,we);Pr>$r||Pr===$r&&(!je||cn>=Yr)?(v.current.bt=!0,Mt=St,vr=-vr,Qr.points=[aa(wr,0),aa(jr,0)]):v.current.bt=!1}if(Ct&&wr[0]==="b"&&(vt<_e.top||v.current.tb)){var Ut=Mt;qt?Ut+=j-oe:Ut=sa.y-mr.y-vr;var di=qr(xt,Ut),Ga=qr(xt,Ut,we);di>$r||di===$r&&(!je||Ga>=Yr)?(v.current.tb=!0,Mt=Ut,vr=-vr,Qr.points=[aa(wr,0),aa(jr,0)]):v.current.tb=!1}var ua=pt(G),Qa=wr[1]===jr[1];if(ua&&wr[1]==="l"&&(Wt>_e.right||v.current.rl)){var hi=xt;Qa?hi-=Re-xe:hi=fi.x-Ri.x-Jt;var Ya=qr(hi,Mt),la=qr(hi,Mt,we);Ya>$r||Ya===$r&&(!je||la>=Yr)?(v.current.rl=!0,xt=hi,Jt=-Jt,Qr.points=[aa(wr,1),aa(jr,1)]):v.current.rl=!1}if(ua&&wr[1]==="r"&&(Ke<_e.left||v.current.lr)){var Kn=xt;Qa?Kn+=Re-xe:Kn=sa.x-mr.x-Jt;var ls=qr(Kn,Mt),cs=qr(Kn,Mt,we);ls>$r||ls===$r&&(!je||cs>=Yr)?(v.current.lr=!0,xt=Kn,Jt=-Jt,Qr.points=[aa(wr,1),aa(jr,1)]):v.current.lr=!1}Ja();var fn=ke===!0?0:ke;typeof fn=="number"&&(Ke<we.left&&(xt-=Ke-we.left-Jt,$.x+xe<we.left+fn&&(xt+=$.x-we.left+xe-fn)),Wt>we.right&&(xt-=Wt-we.right-Jt,$.x>we.right-fn&&(xt+=$.x-we.right+fn)));var Kr=ze===!0?0:ze;typeof Kr=="number"&&(vt<we.top&&(Mt-=vt-we.top-vr,$.y+oe<we.top+Kr&&(Mt+=$.y-we.top+oe-Kr)),tt>we.bottom&&(Mt-=tt-we.bottom-vr,$.y>we.bottom-Kr&&(Mt+=$.y-we.bottom+Kr)));var ki=te.x+xt,pi=ki+Re,kn=te.y+Mt,fs=kn+j,Ai=$.x,ds=Ai+xe,Ka=$.y,hs=Ka+oe,ps=Math.max(ki,Ai),Xa=Math.min(pi,ds),vs=(ps+Xa)/2,gs=vs-ki,Za=Math.max(kn,Ka),ca=Math.min(fs,hs),vi=(Za+ca)/2,ms=vi-kn;o==null||o(e,Qr);var fa=Ce.right-te.x-(xt+te.width),An=Ce.bottom-te.y-(Mt+te.height);he===1&&(xt=Math.round(xt),fa=Math.round(fa)),Ne===1&&(Mt=Math.round(Mt),An=Math.round(An));var ys={ready:!0,offsetX:xt/he,offsetY:Mt/Ne,offsetR:fa/he,offsetB:An/Ne,arrowX:gs/he,arrowY:ms/Ne,scaleX:he,scaleY:Ne,align:Qr};d(ys)}}),b=function(){h.current+=1;var S=h.current;Promise.resolve().then(function(){h.current===S&&y()})},w=function(){d(function(S){return ve(ve({},S),{},{ready:!1})})};return Fr(w,[n]),Fr(function(){t||w()},[t]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,b]}function PM(t,e,r,n,i){Fr(function(){if(t&&e&&r){let h=function(){n(),i()};var a=e,o=r,u=am(a),l=am(o),f=qu(o),d=new Set([f].concat(Be(u),Be(l)));return d.forEach(function(p){p.addEventListener("scroll",h,{passive:!0})}),f.addEventListener("resize",h,{passive:!0}),n(),function(){d.forEach(function(p){p.removeEventListener("scroll",h),f.removeEventListener("resize",h)})}}},[t,e,r])}function NM(t,e,r,n,i,a,o,u){var l=Z.useRef(t);l.current=t;var f=Z.useRef(!1);Z.useEffect(function(){if(e&&n&&(!i||a)){var h=function(){f.current=!1},p=function(C){var _;l.current&&!o(((_=C.composedPath)===null||_===void 0||(_=_.call(C))===null||_===void 0?void 0:_[0])||C.target)&&!f.current&&u(!1)},v=qu(n);v.addEventListener("pointerdown",h,!0),v.addEventListener("mousedown",p,!0),v.addEventListener("contextmenu",p,!0);var m=Ug(r);m&&(m.addEventListener("mousedown",p,!0),m.addEventListener("contextmenu",p,!0));{var y,b,w=r==null||(y=r.getRootNode)===null||y===void 0?void 0:y.call(r),E=(b=n.getRootNode)===null||b===void 0?void 0:b.call(n);Wo(w===E,"trigger element and popup element should in same shadow root.")}return function(){v.removeEventListener("pointerdown",h,!0),v.removeEventListener("mousedown",p,!0),v.removeEventListener("contextmenu",p,!0),m&&(m.removeEventListener("mousedown",p,!0),m.removeEventListener("contextmenu",p,!0))}}},[e,r,n,i,a]);function d(){f.current=!0}return d}var IM=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function LM(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hg,e=Z.forwardRef(function(r,n){var i=r.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=r.children,u=r.action,l=u===void 0?"hover":u,f=r.showAction,d=r.hideAction,h=r.popupVisible,p=r.defaultPopupVisible,v=r.onPopupVisibleChange,m=r.afterPopupVisibleChange,y=r.mouseEnterDelay,b=r.mouseLeaveDelay,w=b===void 0?.1:b,E=r.focusDelay,S=r.blurDelay,C=r.mask,_=r.maskClosable,T=_===void 0?!0:_,O=r.getPopupContainer,k=r.forceRender,P=r.autoDestroy,N=r.destroyPopupOnHide,M=r.popup,z=r.popupClassName,H=r.popupStyle,L=r.popupPlacement,F=r.builtinPlacements,U=F===void 0?{}:F,Y=r.popupAlign,V=r.zIndex,K=r.stretch,$=r.getPopupClassNameFromAlign,Q=r.fresh,ae=r.alignPoint,ie=r.onPopupClick,te=r.onPopupAlign,fe=r.arrow,ue=r.popupMotion,W=r.maskMotion,de=r.popupTransitionName,ye=r.popupAnimation,Se=r.maskTransitionName,J=r.maskAnimation,j=r.className,Re=r.getTriggerDOMNode,oe=za(r,IM),xe=P||N||!1,Fe=Z.useState(!1),He=Le(Fe,2),Ye=He[0],Xe=He[1];Fr(function(){Xe(xM())},[]);var ht=Z.useRef({}),je=Z.useContext(Dx),Te=Z.useMemo(function(){return{registerSubPopup:function(Ve,Vt){ht.current[Ve]=Vt,je==null||je.registerSubPopup(Ve,Vt)}}},[je]),we=px(),ot=Z.useState(null),_e=Le(ot,2),Ce=_e[0],he=_e[1],Ne=Z.useRef(null),Oe=Cn(function($e){Ne.current=$e,Eu($e)&&Ce!==$e&&he($e),je==null||je.registerSubPopup(we,$e)}),Me=Z.useState(null),et=Le(Me,2),It=et[0],Jt=et[1],vr=Z.useRef(null),Oi=Cn(function($e){Eu($e)&&It!==$e&&(Jt($e),vr.current=$e)}),un=Z.Children.only(o),gr=(un==null?void 0:un.props)||{},Gr={},oa=Cn(function($e){var Ve,Vt,ir=It;return(ir==null?void 0:ir.contains($e))||((Ve=Ug(ir))===null||Ve===void 0?void 0:Ve.host)===$e||$e===ir||(Ce==null?void 0:Ce.contains($e))||((Vt=Ug(Ce))===null||Vt===void 0?void 0:Vt.host)===$e||$e===Ce||Object.values(ht.current).some(function(Gt){return(Gt==null?void 0:Gt.contains($e))||$e===Gt})}),ln=jx(a,ue,ye,de),ui=jx(a,W,J,Se),li=Z.useState(p||!1),jr=Le(li,2),wr=jr[0],ci=jr[1],lr=h??wr,Qr=Cn(function($e){h===void 0&&ci($e)});Fr(function(){ci(h||!1)},[h]);var xt=Z.useRef(lr);xt.current=lr;var Mt=Z.useRef([]);Mt.current=[];var $r=Cn(function($e){var Ve;Qr($e),((Ve=Mt.current[Mt.current.length-1])!==null&&Ve!==void 0?Ve:lr)!==$e&&(Mt.current.push($e),v==null||v($e))}),Yr=Z.useRef(),fi=function(){clearTimeout(Yr.current)},mr=function(Ve){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;fi(),Vt===0?$r(Ve):Yr.current=setTimeout(function(){$r(Ve)},Vt*1e3)};Z.useEffect(function(){return fi},[]);var sa=Z.useState(!1),Ri=Le(sa,2),Rn=Ri[0],G=Ri[1];Fr(function($e){(!$e||lr)&&G(!0)},[lr]);var Ee=Z.useState(null),ke=Le(Ee,2),ze=ke[0],pt=ke[1],vt=Z.useState(null),tt=Le(vt,2),Ke=tt[0],Wt=tt[1],Ct=function(Ve){Wt([Ve.clientX,Ve.clientY])},qt=AM(lr,Ce,ae&&Ke!==null?Ke:It,L,U,Y,te),St=Le(qt,11),Pr=St[0],cn=St[1],Ut=St[2],di=St[3],Ga=St[4],ua=St[5],Qa=St[6],hi=St[7],Ya=St[8],la=St[9],Kn=St[10],ls=OM(Ye,l,f,d),cs=Le(ls,2),fn=cs[0],Kr=cs[1],ki=fn.has("click"),pi=Kr.has("click")||Kr.has("contextMenu"),kn=Cn(function(){Rn||Kn()}),fs=function(){xt.current&&ae&&pi&&mr(!1)};PM(lr,It,Ce,kn,fs),Fr(function(){kn()},[Ke,L]),Fr(function(){lr&&!(U!=null&&U[L])&&kn()},[JSON.stringify(Y)]);var Ai=Z.useMemo(function(){var $e=kM(U,a,la,ae);return Dr($e,$==null?void 0:$(la))},[la,$,U,a,ae]);Z.useImperativeHandle(n,function(){return{nativeElement:vr.current,popupElement:Ne.current,forceAlign:kn}});var ds=Z.useState(0),Ka=Le(ds,2),hs=Ka[0],ps=Ka[1],Xa=Z.useState(0),vs=Le(Xa,2),gs=vs[0],Za=vs[1],ca=function(){if(K&&It){var Ve=It.getBoundingClientRect();ps(Ve.width),Za(Ve.height)}},vi=function(){ca(),kn()},ms=function(Ve){G(!1),Kn(),m==null||m(Ve)},fa=function(){return new Promise(function(Ve){ca(),pt(function(){return Ve})})};Fr(function(){ze&&(Kn(),ze(),pt(null))},[ze]);function An($e,Ve,Vt,ir){Gr[$e]=function(Gt){var bs;ir==null||ir(Gt),mr(Ve,Vt);for(var Wu=arguments.length,jt=new Array(Wu>1?Wu-1:0),Tt=1;Tt<Wu;Tt++)jt[Tt-1]=arguments[Tt];(bs=gr[$e])===null||bs===void 0||bs.call.apply(bs,[gr,Gt].concat(jt))}}(ki||pi)&&(Gr.onClick=function($e){var Ve;xt.current&&pi?mr(!1):!xt.current&&ki&&(Ct($e),mr(!0));for(var Vt=arguments.length,ir=new Array(Vt>1?Vt-1:0),Gt=1;Gt<Vt;Gt++)ir[Gt-1]=arguments[Gt];(Ve=gr.onClick)===null||Ve===void 0||Ve.call.apply(Ve,[gr,$e].concat(ir))});var ys=NM(lr,pi,It,Ce,C,T,oa,mr),qr=fn.has("hover"),Ja=Kr.has("hover"),Pi,gi;qr&&(An("onMouseEnter",!0,y,function($e){Ct($e)}),An("onPointerEnter",!0,y,function($e){Ct($e)}),Pi=function(Ve){(lr||Rn)&&Ce!==null&&Ce!==void 0&&Ce.contains(Ve.target)&&mr(!0,y)},ae&&(Gr.onMouseMove=function($e){var Ve;(Ve=gr.onMouseMove)===null||Ve===void 0||Ve.call(gr,$e)})),Ja&&(An("onMouseLeave",!1,w),An("onPointerLeave",!1,w),gi=function(){mr(!1,w)}),fn.has("focus")&&An("onFocus",!0,E),Kr.has("focus")&&An("onBlur",!1,S),fn.has("contextMenu")&&(Gr.onContextMenu=function($e){var Ve;xt.current&&Kr.has("contextMenu")?mr(!1):(Ct($e),mr(!0)),$e.preventDefault();for(var Vt=arguments.length,ir=new Array(Vt>1?Vt-1:0),Gt=1;Gt<Vt;Gt++)ir[Gt-1]=arguments[Gt];(Ve=gr.onContextMenu)===null||Ve===void 0||Ve.call.apply(Ve,[gr,$e].concat(ir))}),j&&(Gr.className=Dr(gr.className,j));var mi=ve(ve({},gr),Gr),eo={},to=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];to.forEach(function($e){oe[$e]&&(eo[$e]=function(){for(var Ve,Vt=arguments.length,ir=new Array(Vt),Gt=0;Gt<Vt;Gt++)ir[Gt]=arguments[Gt];(Ve=mi[$e])===null||Ve===void 0||Ve.call.apply(Ve,[mi].concat(ir)),oe[$e].apply(oe,ir)})});var Hu=Z.cloneElement(un,ve(ve({},mi),eo)),Vu={x:ua,y:Qa},Bu=fe?ve({},fe!==!0?fe:{}):null;return Z.createElement(Z.Fragment,null,Z.createElement(Pc,{disabled:!lr,ref:Oi,onResize:vi},Z.createElement(Mx,{getTriggerDOMNode:Re},Hu)),Z.createElement(Dx.Provider,{value:Te},Z.createElement(Lx,{portal:t,ref:Oe,prefixCls:a,popup:M,className:Dr(z,Ai),style:H,target:It,onMouseEnter:Pi,onMouseLeave:gi,onPointerEnter:Pi,zIndex:V,open:lr,keepDom:Rn,fresh:Q,onClick:ie,onPointerDownCapture:ys,mask:C,motion:ln,maskMotion:ui,onVisibleChanged:ms,onPrepare:fa,forceRender:k,autoDestroy:xe,getPopupContainer:O,align:la,arrow:Bu,arrowPos:Vu,ready:Pr,offsetX:cn,offsetY:Ut,offsetR:di,offsetB:Ga,onAlign:kn,stretch:K,targetWidth:hs/hi,targetHeight:gs/Ya})))});return e.displayName="Trigger",e}const MM=LM(Hg);function Hx(t){var e=t.children,r=t.prefixCls,n=t.id,i=t.overlayInnerStyle,a=t.bodyClassName,o=t.className,u=t.style;return Z.createElement("div",{className:Dr("".concat(r,"-content"),o),style:u},Z.createElement("div",{className:Dr("".concat(r,"-inner"),a),id:n,role:"tooltip",style:i},typeof e=="function"?e():e))}var ss={shiftX:64,adjustY:1},us={adjustX:1,shiftY:!0},On=[0,0],DM={left:{points:["cr","cl"],overflow:us,offset:[-4,0],targetOffset:On},right:{points:["cl","cr"],overflow:us,offset:[4,0],targetOffset:On},top:{points:["bc","tc"],overflow:ss,offset:[0,-4],targetOffset:On},bottom:{points:["tc","bc"],overflow:ss,offset:[0,4],targetOffset:On},topLeft:{points:["bl","tl"],overflow:ss,offset:[0,-4],targetOffset:On},leftTop:{points:["tr","tl"],overflow:us,offset:[-4,0],targetOffset:On},topRight:{points:["br","tr"],overflow:ss,offset:[0,-4],targetOffset:On},rightTop:{points:["tl","tr"],overflow:us,offset:[4,0],targetOffset:On},bottomRight:{points:["tr","br"],overflow:ss,offset:[0,4],targetOffset:On},rightBottom:{points:["bl","br"],overflow:us,offset:[4,0],targetOffset:On},bottomLeft:{points:["tl","bl"],overflow:ss,offset:[0,4],targetOffset:On},leftBottom:{points:["br","bl"],overflow:us,offset:[-4,0],targetOffset:On}},FM=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],jM=function(e,r){var n=e.overlayClassName,i=e.trigger,a=i===void 0?["hover"]:i,o=e.mouseEnterDelay,u=o===void 0?0:o,l=e.mouseLeaveDelay,f=l===void 0?.1:l,d=e.overlayStyle,h=e.prefixCls,p=h===void 0?"rc-tooltip":h,v=e.children,m=e.onVisibleChange,y=e.afterVisibleChange,b=e.transitionName,w=e.animation,E=e.motion,S=e.placement,C=S===void 0?"right":S,_=e.align,T=_===void 0?{}:_,O=e.destroyTooltipOnHide,k=O===void 0?!1:O,P=e.defaultVisible,N=e.getTooltipContainer,M=e.overlayInnerStyle;e.arrowContent;var z=e.overlay,H=e.id,L=e.showArrow,F=L===void 0?!0:L,U=e.classNames,Y=e.styles,V=za(e,FM),K=px(H),$=q.useRef(null);q.useImperativeHandle(r,function(){return $.current});var Q=ve({},V);"visible"in e&&(Q.popupVisible=e.visible);var ae=function(){return Z.createElement(Hx,{key:"content",prefixCls:p,id:K,bodyClassName:U==null?void 0:U.body,overlayInnerStyle:ve(ve({},M),Y==null?void 0:Y.body)},z)},ie=function(){var fe=Z.Children.only(v),ue=(fe==null?void 0:fe.props)||{},W=ve(ve({},ue),{},{"aria-describedby":z?K:null});return Z.cloneElement(v,W)};return Z.createElement(MM,ai({popupClassName:Dr(n,U==null?void 0:U.root),prefixCls:p,popup:ae,action:a,builtinPlacements:DM,popupPlacement:C,ref:$,popupAlign:T,getPopupContainer:N,onPopupVisibleChange:m,afterPopupVisibleChange:y,popupTransitionName:b,popupAnimation:w,popupMotion:E,defaultPopupVisible:P,autoDestroy:k,mouseLeaveDelay:f,popupStyle:ve(ve({},d),Y==null?void 0:Y.root),mouseEnterDelay:u,arrow:F},Q),ie())};const $M=q.forwardRef(jM);function qM(t){const{sizePopupArrow:e,borderRadiusXS:r,borderRadiusOuter:n}=t,i=e/2,a=0,o=i,u=n*1/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),f=i-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),h=2*i-f,p=d,v=2*i-u,m=l,y=2*i-a,b=o,w=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),E=n*(Math.sqrt(2)-1),S=`polygon(${E}px 100%, 50% ${E}px, ${2*i-E}px 100%, ${E}px 100%)`,C=`path('M ${a} ${o} A ${n} ${n} 0 0 0 ${u} ${l} L ${f} ${d} A ${r} ${r} 0 0 1 ${h} ${p} L ${v} ${m} A ${n} ${n} 0 0 0 ${y} ${b} Z')`;return{arrowShadowWidth:w,arrowPath:C,arrowPolygon:S}}const UM=(t,e,r)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:u,calc:l}=t;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:e,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ha(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Vx=8;function Bx(t){const{contentRadius:e,limitVerticalRadius:r}=t,n=e>12?e+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Vx:n}}function nf(t,e){return t?e:{}}function zM(t,e,r){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=t,{arrowDistance:u=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},UM(t,e,i)),{"&:before":{background:e}})]},nf(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ha(o)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),nf(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ha(o)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),nf(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),nf(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function HM(t,e,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},a={};switch(t){case"top":case"bottom":a.shiftX=e.arrowOffsetHorizontal*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=e.arrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const Wx={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},VM={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},BM=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function WM(t){const{arrowWidth:e,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:a}=t,o=e/2,u={};return Object.keys(Wx).forEach(l=>{const f=n&&VM[l]||Wx[l],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(u[l]=d,BM.has(l)&&(d.autoArrow=!1),l){case"top":case"topLeft":case"topRight":d.offset[1]=-o-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=o+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-o-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=o+i;break}const h=Bx({contentRadius:a,limitVerticalRadius:!0});if(n)switch(l){case"topLeft":case"bottomLeft":d.offset[0]=-h.arrowOffsetHorizontal-o;break;case"topRight":case"bottomRight":d.offset[0]=h.arrowOffsetHorizontal+o;break;case"leftTop":case"rightTop":d.offset[1]=-h.arrowOffsetHorizontal*2+o;break;case"leftBottom":case"rightBottom":d.offset[1]=h.arrowOffsetHorizontal*2-o;break}d.overflow=HM(l,h,e,r),d.htmlRegion="visibleFirst"}),u}const GM=t=>{const{calc:e,componentCls:r,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:u,controlHeight:l,boxShadowSecondary:f,paddingSM:d,paddingXS:h,arrowOffsetHorizontal:p,sizePopupArrow:v}=t,m=e(o).add(v).add(p).equal(),y=e(o).mul(2).add(v).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},bI(t)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${r}-inner`]:{minWidth:y,minHeight:l,padding:`${Ha(t.calc(d).div(2).equal())} ${Ha(h)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:f,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:t.min(o,Vx)}},[`${r}-content`]:{position:"relative"}}),CI(t,(b,w)=>{let{darkColor:E}=w;return{[`&${r}-${b}`]:{[`${r}-inner`]:{backgroundColor:E},[`${r}-arrow`]:{"--antd-arrow-background-color":E}}}})),{"&-rtl":{direction:"rtl"}})},zM(t,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]},QM=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70},Bx({contentRadius:t.borderRadius,limitVerticalRadius:!0})),qM(Qc(t,{borderRadiusOuter:Math.min(t.borderRadiusOuter,4)}))),Gx=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return xI("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=n,u=Qc(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[GM(u),yL(n,"zoom-big-fast")]},QM,{resetStyle:!1,injectStyle:e})(t)},YM=Yc.map(t=>`${t}-inverse`);function KM(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Be(YM),Be(Yc)).includes(t):Yc.includes(t)}function Qx(t,e){const r=KM(e),n=Dr({[`${t}-${e}`]:e&&r}),i={},a={};return e&&!r&&(i.background=e,a["--antd-arrow-background-color"]=e),{className:n,overlayStyle:i,arrowStyle:a}}const XM=t=>{const{prefixCls:e,className:r,placement:n="top",title:i,color:a,overlayInnerStyle:o}=t,{getPrefixCls:u}=Z.useContext(Iu),l=u("tooltip",e),[f,d,h]=Gx(l),p=Qx(l,a),v=p.arrowStyle,m=Object.assign(Object.assign({},o),p.overlayStyle),y=Dr(d,h,l,`${l}-pure`,`${l}-placement-${n}`,r,p.className);return f(Z.createElement("div",{className:y,style:v},Z.createElement("div",{className:`${l}-arrow`}),Z.createElement(Hx,Object.assign({},t,{className:d,prefixCls:l,overlayInnerStyle:m}),i)))};var ZM=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const om=Z.forwardRef((t,e)=>{var r,n;const{prefixCls:i,openClassName:a,getTooltipContainer:o,color:u,overlayInnerStyle:l,children:f,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:p,arrow:v=!0,title:m,overlay:y,builtinPlacements:b,arrowPointAtCenter:w=!1,autoAdjustOverflow:E=!0,motion:S,getPopupContainer:C,placement:_="top",mouseEnterDelay:T=.1,mouseLeaveDelay:O=.1,overlayStyle:k,rootClassName:P,overlayClassName:N,styles:M,classNames:z}=t,H=ZM(t,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),L=!!v,[,F]=Ig(),{getPopupContainer:U,getPrefixCls:Y,direction:V,className:K,style:$,classNames:Q,styles:ae}=tI("tooltip"),ie=bS("Tooltip"),te=Z.useRef(null),fe=()=>{var Me;(Me=te.current)===null||Me===void 0||Me.forceAlign()};Z.useImperativeHandle(e,()=>{var Me,et;return{forceAlign:fe,forcePopupAlign:()=>{ie.deprecated(!1,"forcePopupAlign","forceAlign"),fe()},nativeElement:(Me=te.current)===null||Me===void 0?void 0:Me.nativeElement,popupElement:(et=te.current)===null||et===void 0?void 0:et.popupElement}}),[["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(Me=>{let[et,It]=Me;ie.deprecated(!(et in t),et,It)}),ie(!p||typeof p=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),ie(!v||typeof v=="boolean"||!("arrowPointAtCenter"in v),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.");const[ue,W]=oI(!1,{value:(r=t.open)!==null&&r!==void 0?r:t.visible,defaultValue:(n=t.defaultOpen)!==null&&n!==void 0?n:t.defaultVisible}),de=!m&&!y&&m!==0,ye=Me=>{var et,It;W(de?!1:Me),de||((et=t.onOpenChange)===null||et===void 0||et.call(t,Me),(It=t.onVisibleChange)===null||It===void 0||It.call(t,Me))},Se=Z.useMemo(()=>{var Me,et;let It=w;return typeof v=="object"&&(It=(et=(Me=v.pointAtCenter)!==null&&Me!==void 0?Me:v.arrowPointAtCenter)!==null&&et!==void 0?et:w),b||WM({arrowPointAtCenter:It,autoAdjustOverflow:E,arrowWidth:L?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS})},[w,v,b,F]),J=Z.useMemo(()=>m===0?m:y||m||"",[y,m]),j=Z.createElement(SM,{space:!0},typeof J=="function"?J():J),Re=Y("tooltip",i),oe=Y(),xe=t["data-popover-inject"];let Fe=ue;!("open"in t)&&!("visible"in t)&&de&&(Fe=!1);const He=Z.isValidElement(f)&&!GI(f)?f:Z.createElement("span",null,f),Ye=He.props,Xe=!Ye.className||typeof Ye.className=="string"?Dr(Ye.className,a||`${Re}-open`):Ye.className,[ht,je,Te]=Gx(Re,!xe),we=Qx(Re,u),ot=we.arrowStyle,_e=Dr(N,{[`${Re}-rtl`]:V==="rtl"},we.className,P,je,Te,K,Q.root,z==null?void 0:z.root),Ce=Dr(Q.body,z==null?void 0:z.body),[he,Ne]=JI("Tooltip",H.zIndex),Oe=Z.createElement($M,Object.assign({},H,{zIndex:he,showArrow:L,placement:_,mouseEnterDelay:T,mouseLeaveDelay:O,prefixCls:Re,classNames:{root:_e,body:Ce},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ot),ae.root),$),k),M==null?void 0:M.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ae.body),l),M==null?void 0:M.body),we.overlayStyle)},getTooltipContainer:C||o||U,ref:te,builtinPlacements:Se,overlay:j,visible:Fe,onVisibleChange:ye,afterVisibleChange:d??h,arrowContent:Z.createElement("span",{className:`${Re}-arrow-content`}),motion:{motionName:eL(oe,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),Fe?YI(He,{className:Xe}):He);return ht(Z.createElement(zg.Provider,{value:Ne},Oe))});om.displayName="Tooltip",om._InternalPanelDoNotUseOrYouWillBeFired=XM;const JM=async(t,e)=>{const{policy:r,file:n}=t||{};return(await lv(r,n)).success?{name:t==null?void 0:t.name,title:n==null?void 0:n.name,size:n==null?void 0:n.size,sub_type:e,type:"conversation_activity_attachment"}:{}},eD=async(t,e)=>{var n;const r=[];try{const i=[];for(let a=0;a<t.length;a+=1)(n=t[a])!=null&&n.id||i.push(JM(t[a],e));r.push(...await Promise.all(i))}catch(i){console.error("Error occurred during file upload:",i),tr("error","File upload fails","top-left")}return r},tD=({conversationId:t,handleCreateMessage:e})=>{const r=q.useRef(null),n=q.useRef(null),i=q.useRef(null),[a,o]=q.useState(""),[u,l]=q.useState([]),[f,d]=q.useState(!1),{handleCreateOrUpdateRealtimeStatus:h}=oE(),p=async C=>{var N;const _=C==null?void 0:C.name,T=(N=_==null?void 0:_.split)==null?void 0:N.call(_,"."),O=lt.last(T),k=`${Kp()}.${O}`,P=await uv({name:k,sub_type:t,type:"conversation_activity_attachment"});return P!=null&&P.url?{name:k,file:C,title:_,policy:P}:(tr("error",`${_} cannot be uploaded`,"top-left"),null)},v=async C=>{C.preventDefault();const _=5,T=5*1024*1024,O=Array.from(C.target.files);if(lt.size(u)+O.length>_){tr("error","Max 5 files can be upload","top-left");return}if(O.filter(P=>P.size>T).length>0){tr("error","Each file must be under 5MB","top-left");return}try{const P=[];for(let M=0;M<O.length;M+=1)P.push(p(O[M]));const N=await Promise.all(P);l(M=>[...M,...N.filter(z=>z!==null)])}catch(P){console.error("Error occurred while fetching policies:",P)}i.current.value=null},m=C=>{l(_=>_.filter((T,O)=>O!==C)),i.current&&(i.current.value="")};q.useEffect(()=>{const C=r.current,_=n.current;if(C&&_){C.style.height="auto";const O=_.offsetWidth*.5,k=Math.min(C.scrollHeight,O);C.style.height=`${k}px`,_.style.height=`${k+16}px`,C.style.overflowY=C.scrollHeight>O?"auto":"hidden"}},[a,u]);const y=u.slice(0,5),b=Math.max(0,u.length-5),w=async C=>{C.preventDefault(),d(!0);const _=lt.size(u)&&await eD(u,t);await e({message:a,..._&&{files:_}}),o(""),l([]),d(!1)},E=q.useMemo(()=>!a&&!lt.size(u),[a,u]),S=async C=>{C?await h({conversation_id:t,is_writing_reply:!0}):await h({conversation_id:t,is_writing_reply:!1})};return R.jsxs(R.Fragment,{children:[u.length>0&&R.jsxs("div",{className:"ed-flex ed-flex-wrap ed-items-center ed-gap-2 ed-mb-2",children:[y.map((C,_)=>R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-text-12 ed-font-medium ed-text-border-regular ed-bg-white-light ed-p-1.5 ed-rounded-full",children:[R.jsx("span",{className:"ed-truncate ed-max-w-[100px]",children:C.name}),R.jsx("button",{type:"button",onClick:()=>m(_),className:"ed-text-border hover:ed-text-border-dark ed-flex-shrink-0",children:R.jsx(Zi,{size:14})})]},C)),b>0&&R.jsxs("span",{className:"ed-text-12 ed-text-border-regular",children:["+",b," ",b===1?"item":"items"]})]}),R.jsxs("div",{ref:n,className:"ed-border ed-border-border-light ed-rounded-3xl ed-flex ed-items-center ed-justify-between ed-transition-all ed-duration-200",style:{padding:"8px 16px"},children:[R.jsx("div",{className:"ed-flex-1 ed-flex ed-flex-col ed-min-w-0",children:R.jsx("textarea",{ref:r,value:a,onBlur:()=>S(!1),onChange:C=>o(C.target.value),onFocus:()=>S(!0),rows:1,className:"ed-w-full ed-min-h-[24px] ed-resize-none ed-overflow-x-auto ed-outline-none ed-bg-transparent no-scrollbar",placeholder:"Enter your meesage"})}),R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2.5 ed-ml-2 ed-flex-shrink-0",children:[R.jsx("input",{type:"file",ref:i,onChange:v,className:"ed-hidden",accept:".pdf, .doc, .docx, .txt, .rtf, .odt,.xls, .xlsx, .sxc, .csv, .tsv, .ods, .ppt, .pptx, .pps, .ppsx, .odp, .sxi, .png, .jpeg, .gif",multiple:!0}),R.jsx(om,{title:"Supported file types: jpg, png, pdf (max 5MB)",children:R.jsx("button",{type:"button",onClick:()=>{var C;return(C=i.current)==null?void 0:C.click()},className:"ed-text-border hover:ed-text-border-dark",children:R.jsx(Ip,{className:"ed-size-5 ed-cursor-pointer"})})}),R.jsx("button",{onClick:w,type:"button",disabled:E,children:f?R.jsx(xi,{className:"ed-size-5"}):R.jsx(Fp,{className:`${E?"ed-text-border":"ed-text-brand"} ed-size-5`})})]})]})]})};var sm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CONVERSATION_ACTIVITIES_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivitiesForPortalQueryInputType"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getConversationActivitiesForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"created_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"files"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"meta_data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filtered_rows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_rows"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:563}};sm.loc.source={body:`query GET_CONVERSATION_ACTIVITIES_FOR_PORTAL(
|
|
263
|
+
$queryData: ConversationActivitiesForPortalQueryInputType!
|
|
264
|
+
$optionData: OptionDataType
|
|
265
|
+
) {
|
|
266
|
+
getConversationActivitiesForPortal(queryData: $queryData, optionData: $optionData) {
|
|
267
|
+
data {
|
|
268
|
+
created_at
|
|
269
|
+
message
|
|
270
|
+
is_customer_reply
|
|
271
|
+
author {
|
|
272
|
+
last_name
|
|
273
|
+
first_name
|
|
274
|
+
email
|
|
275
|
+
id
|
|
276
|
+
avatar_file {
|
|
277
|
+
key
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
id
|
|
281
|
+
files {
|
|
282
|
+
id
|
|
283
|
+
name
|
|
284
|
+
key
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
meta_data {
|
|
288
|
+
filtered_rows
|
|
289
|
+
total_rows
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function af(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){af(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){af(n,e)}),t.definitions&&t.definitions.forEach(function(n){af(n,e)})}var um={};(function(){sm.definitions.forEach(function(e){if(e.name){var r=new Set;af(e,r),um[e.name.value]=r}})})();function Yx(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function rD(t,e){var r={kind:t.kind,definitions:[Yx(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=um[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=um[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=Yx(t,u);l&&r.definitions.push(l)}),r}const nD=rD(sm,"GET_CONVERSATION_ACTIVITIES_FOR_PORTAL");var lm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CHANNELS_FOR_PORTAL"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getChannelsForPortal"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:100}};lm.loc.source={body:`query GET_CHANNELS_FOR_PORTAL {
|
|
294
|
+
getChannelsForPortal {
|
|
295
|
+
data {
|
|
296
|
+
id
|
|
297
|
+
name
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function of(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){of(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){of(n,e)}),t.definitions&&t.definitions.forEach(function(n){of(n,e)})}var cm={};(function(){lm.definitions.forEach(function(e){if(e.name){var r=new Set;of(e,r),cm[e.name.value]=r}})})();function Kx(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function iD(t,e){var r={kind:t.kind,definitions:[Kx(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=cm[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=cm[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=Kx(t,u);l&&r.definitions.push(l)}),r}const aD=iD(lm,"GET_CHANNELS_FOR_PORTAL");var fm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_A_CONVERSATION_ACTIVITY_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivityForPortalCreateInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createAConversationActivityForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"files"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:275}};fm.loc.source={body:`mutation CREATE_A_CONVERSATION_ACTIVITY_FOR_PORTAL(
|
|
302
|
+
$inputData: ConversationActivityForPortalCreateInputType!
|
|
303
|
+
) {
|
|
304
|
+
createAConversationActivityForPortal(inputData: $inputData) {
|
|
305
|
+
id
|
|
306
|
+
message
|
|
307
|
+
files {
|
|
308
|
+
id
|
|
309
|
+
key
|
|
310
|
+
name
|
|
311
|
+
}
|
|
312
|
+
is_customer_reply
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function sf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){sf(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){sf(n,e)}),t.definitions&&t.definitions.forEach(function(n){sf(n,e)})}var dm={};(function(){fm.definitions.forEach(function(e){if(e.name){var r=new Set;sf(e,r),dm[e.name.value]=r}})})();function Xx(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function oD(t,e){var r={kind:t.kind,definitions:[Xx(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=dm[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=dm[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=Xx(t,u);l&&r.definitions.push(l)}),r}const sD=oD(fm,"CREATE_A_CONVERSATION_ACTIVITY_FOR_PORTAL");var hm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"CONVERSATION_ACTIVITY_REALTIME_STATUS_UPDATED"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivityRealtimeStatusUpdatedQueryInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"conversationActivityRealtimeStatusUpdated"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"is_writing_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"conversation_activity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"files"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:370}};hm.loc.source={body:`subscription CONVERSATION_ACTIVITY_REALTIME_STATUS_UPDATED(
|
|
316
|
+
$queryData: ConversationActivityRealtimeStatusUpdatedQueryInputType!
|
|
317
|
+
) {
|
|
318
|
+
conversationActivityRealtimeStatusUpdated(queryData: $queryData) {
|
|
319
|
+
is_writing_reply
|
|
320
|
+
conversation_activity {
|
|
321
|
+
id
|
|
322
|
+
message
|
|
323
|
+
is_customer_reply
|
|
324
|
+
files {
|
|
325
|
+
id
|
|
326
|
+
name
|
|
327
|
+
key
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function uf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){uf(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){uf(n,e)}),t.definitions&&t.definitions.forEach(function(n){uf(n,e)})}var pm={};(function(){hm.definitions.forEach(function(e){if(e.name){var r=new Set;uf(e,r),pm[e.name.value]=r}})})();function Zx(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function uD(t,e){var r={kind:t.kind,definitions:[Zx(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=pm[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=pm[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=Zx(t,u);l&&r.definitions.push(l)}),r}const lD=uD(hm,"CONVERSATION_ACTIVITY_REALTIME_STATUS_UPDATED"),cD=({orgBrandSetting:t={}})=>{var S,C,_;const e=q.useRef(null),[r,n]=q.useState([]),[i,a]=q.useState(null),[o,u]=q.useState({messages:[],loadingActivities:!1,optionData:{limit:50,offset:0},isReplying:!1}),{handleCreateOrUpdateRealtimeStatus:l}=oE(),{handleDeleteARealtimeStatus:f}=m7(),d=ko.get("easydesk_chat_widget_conversation_id"),{brand:h}=t,[p,{loading:v}]=Ra(nD,{errorPolicy:"all",fetchPolicy:"no-cache",onCompleted:T=>{const O=T==null?void 0:T.getConversationActivitiesForPortal;u(k=>{var P;return((P=k==null?void 0:k.optionData)==null?void 0:P.offset)===0?{...k,messages:O==null?void 0:O.data,metaData:O==null?void 0:O.meta_data}:{...k,messages:[...k.messages,...O.data],metaData:O==null?void 0:O.meta_data}})}}),[m]=Ra(aD,{errorPolicy:"all",fetchPolicy:"no-cache",onCompleted:T=>{var O;n((O=T==null?void 0:T.getChannelsForPortal)==null?void 0:O.data)}}),[y]=ka(sD),b=async T=>{var O;try{const{data:k}=await y({variables:{inputData:{conversation_id:d,...T}}}),P=k==null?void 0:k.createAConversationActivityForPortal;P!=null&&P.id&&u(N=>({...N,messages:[...N.messages,P]}))}catch(k){const{message:P,response:N}=k;tr("error",((O=N==null?void 0:N.data)==null?void 0:O.message)||P,"top-left")}};q.useEffect(()=>((d||i)&&(p({variables:{queryData:{conversation_id:i||d},optionData:{order:[["created_at","asc"]]}}}),l({conversation_id:i||d,is_viewing:!0})),()=>{f(i||d)}),[d||i]),q.useEffect(()=>{lt.size(o==null?void 0:o.messages)===3?m():n([])},[lt.size(o==null?void 0:o.messages)]);const w=((S=o==null?void 0:o.metaData)==null?void 0:S.filtered_rows)&<.size(o==null?void 0:o.messages)<((C=o==null?void 0:o.metaData)==null?void 0:C.filtered_rows),E=()=>{u(T=>({...T,loadingActivities:!0,optionData:{...T.optionData,offset:T.optionData.offset+T.optionData.limit}}))};return q.useEffect(()=>{const T=setTimeout(()=>{var P;const O=(P=e.current)==null?void 0:P.querySelectorAll(".single-message"),k=O==null?void 0:O[lt.size(O)-1];k==null||k.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(T)},[lt.size(o==null?void 0:o.messages)]),_8(lD,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{conversation_id:i||d}},onData:({data:T})=>{var k;const O=(k=T==null?void 0:T.data)==null?void 0:k.conversationActivityRealtimeStatusUpdated;u(P=>({...P,isReplying:O==null?void 0:O.is_writing_reply,messages:[...P.messages,O==null?void 0:O.conversation_activity]})),console.log(T)}}),v?R.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:R.jsx(xi,{})}):R.jsxs("div",{children:[R.jsx("div",{ref:e,id:"activities-scroll-target",className:"ed-flex ed-flex-col ed-pb-5 ed-space-y-5 ed-h-[calc(100vh-200px)] ed-overflow-y-auto no-scrollbar",children:R.jsx(iE,{dataLength:lt.size(o==null?void 0:o.messages),hasMore:w,loader:o!=null&&o.loadingActivities?"Loading...":"",scrollableTarget:"activities-scroll-target",inverse:!0,next:E,children:R.jsxs("div",{className:"ed-flex-1 ed-pt-3",children:[lt.size(o==null?void 0:o.messages)?(_=o==null?void 0:o.messages)==null?void 0:_.map(T=>R.jsx("div",{className:"single-message",children:R.jsx(cE,{author:h,filesData:T==null?void 0:T.files,isFromUser:T==null?void 0:T.is_customer_reply,message:gu(T==null?void 0:T.message),timeStamp:eu(T==null?void 0:T.created_at).format("hh:mm A")})},T==null?void 0:T.id)):R.jsx(w7,{orgBrandSetting:t,setSelectedConversationId:a}),lt.size(r)>0&&R.jsx(y7,{channels:r,handleCreateMessage:b}),(o==null?void 0:o.isReplying)&&R.jsx("div",{className:"single-message",children:R.jsx(cE,{author:h,isFromUser:!1,isReplying:!0,timeStamp:eu().format("hh:mm A")})})]})})}),lt.size(o==null?void 0:o.messages)>=4&&R.jsx("div",{className:"ed-sticky ed-bottom-0 ed-bg-white ed-py-5 ed-border-y ed-border-border-light ed--mx-5 ed-px-5",children:R.jsx(tD,{conversationId:d,handleCreateMessage:b})})]})};var lf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CATEGORIES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"CategoryQueryInput"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getCategories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_faqs"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_sections"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organization_brands"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"setting"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"serial"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"meta_data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filtered_rows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_rows"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:606}};lf.loc.source={body:`query GET_CATEGORIES($queryData: CategoryQueryInput, $optionData: OptionDataType) {
|
|
333
|
+
getCategories(queryData: $queryData, optionData: $optionData) {
|
|
334
|
+
data {
|
|
335
|
+
id
|
|
336
|
+
name
|
|
337
|
+
total_faqs
|
|
338
|
+
total_sections
|
|
339
|
+
organization_brands {
|
|
340
|
+
id
|
|
341
|
+
name
|
|
342
|
+
setting {
|
|
343
|
+
id
|
|
344
|
+
color
|
|
345
|
+
icon {
|
|
346
|
+
id
|
|
347
|
+
key
|
|
348
|
+
title
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
icon {
|
|
353
|
+
id
|
|
354
|
+
key
|
|
355
|
+
title
|
|
356
|
+
}
|
|
357
|
+
type
|
|
358
|
+
description
|
|
359
|
+
serial
|
|
360
|
+
total_articles
|
|
361
|
+
}
|
|
362
|
+
meta_data {
|
|
363
|
+
filtered_rows
|
|
364
|
+
total_rows
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function cf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){cf(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){cf(n,e)}),t.definitions&&t.definitions.forEach(function(n){cf(n,e)})}var vm={};(function(){lf.definitions.forEach(function(e){if(e.name){var r=new Set;cf(e,r),vm[e.name.value]=r}})})();function Jx(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function fD(t,e){var r={kind:t.kind,definitions:[Jx(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=vm[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=vm[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=Jx(t,u);l&&r.definitions.push(l)}),r}fD(lf,"GET_CATEGORIES");const dD=({setSelectedCategory:t})=>{const[e,r]=q.useState([]),[n,i]=q.useState({limit:50,offset:0,order:[["serial","asc"]]}),[a,o]=q.useState({}),[u,l]=q.useState({initialLoading:!0,fetchMoreLoading:!0}),[f]=Ra(lf,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{type:"ARTICLE"},optionData:n},onCompleted:p=>{var m,y;const v=(m=p==null?void 0:p.getCategories)==null?void 0:m.data;(n==null?void 0:n.offset)===0?r(v):r([...e,...v]),o((y=p==null?void 0:p.getCategories)==null?void 0:y.meta_data),l({initialLoading:!1,fetchMoreLoading:!1})},onError:p=>{console.error(p)}}),d=()=>{l({initialLoading:!1,fetchMoreLoading:!0});const p=n.offset+n.limit;i(v=>({...v,offset:p}))},h=!!(a!=null&&a.filtered_rows&<.size(e)<(a==null?void 0:a.filtered_rows));return q.useEffect(()=>{f()},[]),u.initialLoading?R.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:R.jsx(xi,{})}):R.jsx(iE,{dataLength:lt.size(e),next:d,hasMore:h,scrollableTarget:"root-scrollbar",loader:"",children:R.jsxs("div",{children:[e==null?void 0:e.map(p=>R.jsxs("div",{role:"button",tabIndex:0,onClick:()=>t(p==null?void 0:p.id),className:"ed-py-3 ed-px-5 ed-mt-3 ed-rounded-lg ed-border ed-border-border-light ed-group ed-hover:shadow-lg ed-duration-300 ed-transition-all ed-cursor-pointer",children:[R.jsx("h6",{className:"ed-text-16 ed-font-semibold ed-text-border-dark ed-group-hover:text-brand-link",children:p==null?void 0:p.name}),R.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-group-hover:text-border-dark ed-my-2 ed-duration-300 ed-transition-all",children:p==null?void 0:p.description}),R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[R.jsxs("span",{className:"ed-text-14 ed-text-border ed-group-hover:text-border-regular ed-duration-300 ed-transition-all",children:[p==null?void 0:p.total_articles," article",(p==null?void 0:p.total_articles)>1&&"s"]}),R.jsx("div",{className:"ed-size-4 ed--translate-x-2 ed-opacity-0 ed-group-hover:opacity-100 ed-group-hover:translate-x-2 ed-duration-300 ed-transition-all",children:R.jsx(Mo,{className:"ed-text-border ed-size-4"})})]})]},p==null?void 0:p.id)),(u==null?void 0:u.fetchMoreLoading)&&R.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:R.jsx(xi,{})})]})})};var ff={exports:{}},df={exports:{}},gm={},eC;function tC(){return eC||(eC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,u){for(var l in u)Object.defineProperty(o,l,{enumerable:!0,get:u[l]})}e(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i}});function r(o){const u={};return o.forEach((l,f)=>{typeof u[f]>"u"?u[f]=l:Array.isArray(u[f])?u[f].push(l):u[f]=[u[f],l]}),u}function n(o){return typeof o=="string"||typeof o=="number"&&!isNaN(o)||typeof o=="boolean"?String(o):""}function i(o){const u=new URLSearchParams;return Object.entries(o).forEach(l=>{let[f,d]=l;Array.isArray(d)?d.forEach(h=>u.append(f,n(h))):u.set(f,n(d))}),u}function a(o){for(var u=arguments.length,l=new Array(u>1?u-1:0),f=1;f<u;f++)l[f-1]=arguments[f];return l.forEach(d=>{Array.from(d.keys()).forEach(h=>o.delete(h)),d.forEach((h,p)=>o.append(p,h))}),o}}(gm)),gm}var mm={},rC;function nC(){return rC||(rC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(l,f){for(var d in f)Object.defineProperty(l,d,{enumerable:!0,get:f[d]})}e(t,{formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return o}});const n=mv()._(tC()),i=/https?|ftp|gopher|file/;function a(l){let{auth:f,hostname:d}=l,h=l.protocol||"",p=l.pathname||"",v=l.hash||"",m=l.query||"",y=!1;f=f?encodeURIComponent(f).replace(/%3A/i,":")+"@":"",l.host?y=f+l.host:d&&(y=f+(~d.indexOf(":")?"["+d+"]":d),l.port&&(y+=":"+l.port)),m&&typeof m=="object"&&(m=String(n.urlQueryToSearchParams(m)));let b=l.search||m&&"?"+m||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||i.test(h))&&y!==!1?(y="//"+(y||""),p&&p[0]!=="/"&&(p="/"+p)):y||(y=""),v&&v[0]!=="#"&&(v="#"+v),b&&b[0]!=="?"&&(b="?"+b),p=p.replace(/[?#]/g,encodeURIComponent),b=b.replace("#","%23"),""+h+y+p+b+v}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(l){return a(l)}}(mm)),mm}var ym={},iC;function hD(){return iC||(iC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}});function e(r,n){const i={};return Object.keys(r).forEach(a=>{n.includes(a)||(i[a]=r[a])}),i}}(ym)),ym}var bm={},aC;function hf(){return aC||(aC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(C,_){for(var T in _)Object.defineProperty(C,T,{enumerable:!0,get:_[T]})}e(t,{DecodeError:function(){return m},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return w},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return p},ST:function(){return v},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return S}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(C){let _=!1,T;return function(){for(var O=arguments.length,k=new Array(O),P=0;P<O;P++)k[P]=arguments[P];return _||(_=!0,T=C(...k)),T}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=C=>i.test(C);function o(){const{protocol:C,hostname:_,port:T}=window.location;return C+"//"+_+(T?":"+T:"")}function u(){const{href:C}=window.location,_=o();return C.substring(_.length)}function l(C){return typeof C=="string"?C:C.displayName||C.name||"Unknown"}function f(C){return C.finished||C.headersSent}function d(C){const _=C.split("?");return _[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(_[1]?"?"+_.slice(1).join("?"):"")}async function h(C,_){{var T;if((T=C.prototype)!=null&&T.getInitialProps){const P='"'+l(C)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(P)}}const O=_.res||_.ctx&&_.ctx.res;if(!C.getInitialProps)return _.ctx&&_.Component?{pageProps:await h(_.Component,_.ctx)}:{};const k=await C.getInitialProps(_);if(O&&f(O))return k;if(!k){const P='"'+l(C)+'.getInitialProps()" should resolve to an object. But found "'+k+'" instead.';throw new Error(P)}return Object.keys(k).length===0&&!_.ctx&&console.warn(""+l(C)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),k}const p=typeof performance<"u",v=p&&["mark","measure","getEntriesByName"].every(C=>typeof performance[C]=="function");class m extends Error{}class y extends Error{}class b extends Error{constructor(_){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+_}}class w extends Error{constructor(_,T){super(),this.message="Failed to load static file for page: "+_+" "+T}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(C){return JSON.stringify({message:C.message,stack:C.stack})}}(bm)),bm}var pf={exports:{}},_m={},oC;function sC(){return oC||(oC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}}(_m)),_m}var wm={},uC;function Em(){return uC||(uC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),i=r.indexOf("?"),a=i>-1&&(n<0||i<n);return a||n>-1?{pathname:r.substring(0,a?i:n),query:a?r.substring(i,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(wm)),wm}var lC;function vf(){return lC||(lC=1,function(t,e){var r={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});const n=sC(),i=Em(),a=o=>{if(!o.startsWith("/")||r.__NEXT_MANUAL_TRAILING_SLASH)return o;const{pathname:u,query:l,hash:f}=(0,i.parsePath)(o);return r.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(u)?""+(0,n.removeTrailingSlash)(u)+l+f:u.endsWith("/")?""+u+l+f:u+"/"+l+f:""+(0,n.removeTrailingSlash)(u)+l+f};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(pf,pf.exports)),pf.exports}var Sm={},gf={exports:{}},xm={},cC;function fC(){return cC||(cC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=Em();function r(n,i){if(typeof n!="string")return!1;const{pathname:a}=(0,e.parsePath)(n);return a===i||a.startsWith(i+"/")}}(xm)),xm}var dC;function pD(){return dC||(dC=1,function(t,e){var r={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return a}});const n=fC(),i=r.__NEXT_ROUTER_BASEPATH||"";function a(o){return(0,n.pathHasPrefix)(o,i)}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(gf,gf.exports)),gf.exports}var hC;function pC(){return hC||(hC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return n}});const e=hf(),r=pD();function n(i){if(!(0,e.isAbsoluteUrl)(i))return!0;try{const a=(0,e.getLocationOrigin)(),o=new URL(i,a);return o.origin===a&&(0,r.hasBasePath)(o.pathname)}catch{return!1}}}(Sm)),Sm}var Cm={},Tm={},vC;function vD(){return vC||(vC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class e{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i){i===void 0&&(i="/");const a=[...this.children.keys()].sort();this.slugName!==null&&a.splice(a.indexOf("[]"),1),this.restSlugName!==null&&a.splice(a.indexOf("[...]"),1),this.optionalRestSlugName!==null&&a.splice(a.indexOf("[[...]]"),1);const o=a.map(u=>this.children.get(u)._smoosh(""+i+u+"/")).reduce((u,l)=>[...u,...l],[]);if(this.slugName!==null&&o.push(...this.children.get("[]")._smoosh(i+"["+this.slugName+"]/")),!this.placeholder){const u=i==="/"?"/":i.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+u+'" and "'+u+"[[..."+this.optionalRestSlugName+']]").');o.unshift(u)}return this.restSlugName!==null&&o.push(...this.children.get("[...]")._smoosh(i+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&o.push(...this.children.get("[[...]]")._smoosh(i+"[[..."+this.optionalRestSlugName+"]]/")),o}_insert(i,a,o){if(i.length===0){this.placeholder=!1;return}if(o)throw new Error("Catch-all must be the last part of the URL.");let u=i[0];if(u.startsWith("[")&&u.endsWith("]")){let d=function(h,p){if(h!==null&&h!==p)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+p+"').");a.forEach(v=>{if(v===p)throw new Error('You cannot have the same slug name "'+p+'" repeat within a single dynamic path');if(v.replace(/\W/g,"")===u.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+v+'" and "'+p+'" differ only by non-word symbols within a single dynamic path')}),a.push(p)},l=u.slice(1,-1),f=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),f=!0),l.startsWith("...")&&(l=l.substring(3),o=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(o)if(f){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+i[0]+'" ).');d(this.optionalRestSlugName,l),this.optionalRestSlugName=l,u="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+i[0]+'").');d(this.restSlugName,l),this.restSlugName=l,u="[...]"}else{if(f)throw new Error('Optional route parameters are not yet supported ("'+i[0]+'").');d(this.slugName,l),this.slugName=l,u="[]"}}this.children.has(u)||this.children.set(u,new e),this.children.get(u)._insert(i.slice(1),a,o)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const i=new e;return n.forEach(a=>i.insert(a)),i.smoosh()}}(Tm)),Tm}var Om={},Rm={},km={},Am={},gC;function gD(){return gC||(gC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.startsWith("/")?r:"/"+r}}(Am)),Am}var Pm={},mC;function mD(){return mC||(mC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}e(t,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return n},isGroupSegment:function(){return r}});function r(a){return a[0]==="("&&a.endsWith(")")}const n="__PAGE__",i="__DEFAULT__"}(Pm)),Pm}var yC;function yD(){return yC||(yC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,u){for(var l in u)Object.defineProperty(o,l,{enumerable:!0,get:u[l]})}e(t,{normalizeAppPath:function(){return i},normalizeRscURL:function(){return a}});const r=gD(),n=mD();function i(o){return(0,r.ensureLeadingSlash)(o.split("/").reduce((u,l,f,d)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&f===d.length-1?u:u+"/"+l,""))}function a(o){return o.replace(/\.rsc($|\?)/,"$1")}}(km)),km}var bC;function _C(){return bC||(bC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,u){for(var l in u)Object.defineProperty(o,l,{enumerable:!0,get:u[l]})}e(t,{INTERCEPTION_ROUTE_MARKERS:function(){return n},extractInterceptionRouteInformation:function(){return a},isInterceptionRouteAppPath:function(){return i}});const r=yD(),n=["(..)(..)","(.)","(..)","(...)"];function i(o){return o.split("/").find(u=>n.find(l=>u.startsWith(l)))!==void 0}function a(o){let u,l,f;for(const d of o.split("/"))if(l=n.find(h=>d.startsWith(h)),l){[u,f]=o.split(l,2);break}if(!u||!l||!f)throw new Error(`Invalid interception route: ${o}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(u=(0,r.normalizeAppPath)(u),l){case"(.)":u==="/"?f=`/${f}`:f=u+"/"+f;break;case"(..)":if(u==="/")throw new Error(`Invalid interception route: ${o}. Cannot use (..) marker at the root level, use (.) instead.`);f=u.split("/").slice(0,-1).concat(f).join("/");break;case"(...)":f="/"+f;break;case"(..)(..)":const d=u.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${o}. Cannot use (..)(..) marker at the root level or one level up.`);f=d.slice(0,-2).concat(f).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:u,interceptedRoute:f}}}(Rm)),Rm}var wC;function bD(){return wC||(wC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const e=_C(),r=/\/\[[^/]+?\](?=\/|$)/;function n(i){return(0,e.isInterceptionRouteAppPath)(i)&&(i=(0,e.extractInterceptionRouteInformation)(i).interceptedRoute),r.test(i)}}(Om)),Om}var EC;function _D(){return EC||(EC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(i,a){for(var o in a)Object.defineProperty(i,o,{enumerable:!0,get:a[o]})}e(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=vD(),n=bD()}(Cm)),Cm}var Nm={},Im={},SC;function wD(){return SC||(SC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const e=hf();function r(n){let{re:i,groups:a}=n;return o=>{const u=i.exec(o);if(!u)return!1;const l=d=>{try{return decodeURIComponent(d)}catch{throw new e.DecodeError("failed to decode param")}},f={};return Object.keys(a).forEach(d=>{const h=a[d],p=u[h.pos];p!==void 0&&(f[d]=~p.indexOf("/")?p.split("/").map(v=>l(v)):h.repeat?[l(p)]:l(p))}),f}}}(Im)),Im}var Lm={},Mm={},xC;function ED(){return xC||(xC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(oe,xe){for(var Fe in xe)Object.defineProperty(oe,Fe,{enumerable:!0,get:xe[Fe]})}e(t,{ACTION_SUFFIX:function(){return l},APP_DIR_ALIAS:function(){return M},CACHE_ONE_YEAR:function(){return C},DOT_NEXT_ALIAS:function(){return P},ESLINT_DEFAULT_DIRS:function(){return ye},GSP_NO_RETURNED_VALUE:function(){return ie},GSSP_COMPONENT_MEMBER_ERROR:function(){return ue},GSSP_NO_RETURNED_VALUE:function(){return te},INSTRUMENTATION_HOOK_FILENAME:function(){return O},MIDDLEWARE_FILENAME:function(){return _},MIDDLEWARE_LOCATION_REGEXP:function(){return T},NEXT_BODY_SUFFIX:function(){return h},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return S},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return m},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return y},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return v},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return E},NEXT_CACHE_TAGS_HEADER:function(){return p},NEXT_CACHE_TAG_MAX_ITEMS:function(){return b},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return d},NEXT_QUERY_PARAM_PREFIX:function(){return r},NON_STANDARD_NODE_ENV:function(){return W},PAGES_DIR_ALIAS:function(){return k},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Y},ROOT_DIR_ALIAS:function(){return N},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return U},RSC_ACTION_ENCRYPTION_ALIAS:function(){return F},RSC_ACTION_PROXY_ALIAS:function(){return L},RSC_ACTION_VALIDATE_ALIAS:function(){return H},RSC_MOD_REF_PROXY_ALIAS:function(){return z},RSC_PREFETCH_SUFFIX:function(){return o},RSC_SUFFIX:function(){return u},SERVER_PROPS_EXPORT_ERROR:function(){return ae},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return K},SERVER_PROPS_SSG_CONFLICT:function(){return $},SERVER_RUNTIME:function(){return Se},SSG_FALLBACK_EXPORT_ERROR:function(){return de},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return V},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Q},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return fe},WEBPACK_LAYERS:function(){return j},WEBPACK_RESOURCE_QUERIES:function(){return Re}});const r="nxtP",n="nxtI",i="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",o=".prefetch.rsc",u=".rsc",l=".action",f=".json",d=".meta",h=".body",p="x-next-cache-tags",v="x-next-cache-soft-tags",m="x-next-revalidated-tags",y="x-next-revalidate-tag-token",b=128,w=256,E=1024,S="_N_T_",C=31536e3,_="middleware",T=`(?:src/)?${_}`,O="instrumentation",k="private-next-pages",P="private-dot-next",N="private-next-root-dir",M="private-next-app-dir",z="private-next-rsc-mod-ref-proxy",H="private-next-rsc-action-validate",L="private-next-rsc-server-reference",F="private-next-rsc-action-encryption",U="private-next-rsc-action-client-wrapper",Y="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",V="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",K="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",$="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Q="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",ae="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",ie="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",te="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",fe="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",ue="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",W='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',de="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ye=["app","pages","components","lib","src"],Se={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},J={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},j={...J,GROUP:{serverOnly:[J.reactServerComponents,J.actionBrowser,J.appMetadataRoute,J.appRouteHandler,J.instrument],clientOnly:[J.serverSideRendering,J.appPagesBrowser],nonClientServerTarget:[J.middleware,J.api],app:[J.reactServerComponents,J.actionBrowser,J.appMetadataRoute,J.appRouteHandler,J.serverSideRendering,J.appPagesBrowser,J.shared,J.instrument]}},Re={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(Mm)),Mm}var Dm={},CC;function SD(){return CC||(CC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const e=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(i){return e.test(i)?i.replace(r,"\\$&"):i}}(Dm)),Dm}var TC;function xD(){return TC||(TC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(m,y){for(var b in y)Object.defineProperty(m,b,{enumerable:!0,get:y[b]})}e(t,{getNamedMiddlewareRegex:function(){return v},getNamedRouteRegex:function(){return p},getRouteRegex:function(){return l},parseParameter:function(){return o}});const r=ED(),n=_C(),i=SD(),a=sC();function o(m){const y=m.startsWith("[")&&m.endsWith("]");y&&(m=m.slice(1,-1));const b=m.startsWith("...");return b&&(m=m.slice(3)),{key:m,repeat:b,optional:y}}function u(m){const y=(0,a.removeTrailingSlash)(m).slice(1).split("/"),b={};let w=1;return{parameterizedRoute:y.map(E=>{const S=n.INTERCEPTION_ROUTE_MARKERS.find(_=>E.startsWith(_)),C=E.match(/\[((?:\[.*\])|.+)\]/);if(S&&C){const{key:_,optional:T,repeat:O}=o(C[1]);return b[_]={pos:w++,repeat:O,optional:T},"/"+(0,i.escapeStringRegexp)(S)+"([^/]+?)"}else if(C){const{key:_,repeat:T,optional:O}=o(C[1]);return b[_]={pos:w++,repeat:T,optional:O},T?O?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,i.escapeStringRegexp)(E)}).join(""),groups:b}}function l(m){const{parameterizedRoute:y,groups:b}=u(m);return{re:new RegExp("^"+y+"(?:/)?$"),groups:b}}function f(){let m=0;return()=>{let y="",b=++m;for(;b>0;)y+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return y}}function d(m){let{interceptionMarker:y,getSafeRouteKey:b,segment:w,routeKeys:E,keyPrefix:S}=m;const{key:C,optional:_,repeat:T}=o(w);let O=C.replace(/\W/g,"");S&&(O=""+S+O);let k=!1;(O.length===0||O.length>30)&&(k=!0),isNaN(parseInt(O.slice(0,1)))||(k=!0),k&&(O=b()),S?E[O]=""+S+C:E[O]=C;const P=y?(0,i.escapeStringRegexp)(y):"";return T?_?"(?:/"+P+"(?<"+O+">.+?))?":"/"+P+"(?<"+O+">.+?)":"/"+P+"(?<"+O+">[^/]+?)"}function h(m,y){const b=(0,a.removeTrailingSlash)(m).slice(1).split("/"),w=f(),E={};return{namedParameterizedRoute:b.map(S=>{const C=n.INTERCEPTION_ROUTE_MARKERS.some(T=>S.startsWith(T)),_=S.match(/\[((?:\[.*\])|.+)\]/);if(C&&_){const[T]=S.split(_[0]);return d({getSafeRouteKey:w,interceptionMarker:T,segment:_[1],routeKeys:E,keyPrefix:y?r.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}else return _?d({getSafeRouteKey:w,segment:_[1],routeKeys:E,keyPrefix:y?r.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,i.escapeStringRegexp)(S)}).join(""),routeKeys:E}}function p(m,y){const b=h(m,y);return{...l(m),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function v(m,y){const{parameterizedRoute:b}=u(m),{catchAll:w=!0}=y;if(b==="/")return{namedRegex:"^/"+(w?".*":"")+"$"};const{namedParameterizedRoute:E}=h(m,!1);let S=w?"(?:(/.*)?)":"";return{namedRegex:"^"+E+S+"$"}}}(Lm)),Lm}var OC;function CD(){return OC||(OC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return n}});const e=wD(),r=xD();function n(i,a,o){let u="";const l=(0,r.getRouteRegex)(i),f=l.groups,d=(a!==i?(0,e.getRouteMatcher)(l)(a):"")||o;u=i;const h=Object.keys(f);return h.every(p=>{let v=d[p]||"";const{repeat:m,optional:y}=f[p];let b="["+(m?"...":"")+p+"]";return y&&(b=(v?"":"/")+"["+b+"]"),m&&!Array.isArray(v)&&(v=[v]),(y||p in d)&&(u=u.replace(b,m?v.map(w=>encodeURIComponent(w)).join("/"):encodeURIComponent(v))||"/")})||(u=""),{params:h,result:u}}}(Nm)),Nm}var RC;function TD(){return RC||(RC=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return d}});const r=tC(),n=nC(),i=hD(),a=hf(),o=vf(),u=pC(),l=_D(),f=CD();function d(h,p,v){let m,y=typeof p=="string"?p:(0,n.formatWithValidation)(p);const b=y.match(/^[a-zA-Z]{1,}:\/\//),w=b?y.slice(b[0].length):y;if((w.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const S=(0,a.normalizeRepeatedSlashes)(w);y=(b?b[0]:"")+S}if(!(0,u.isLocalURL)(y))return v?[y]:y;try{m=new URL(y.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{m=new URL("/","http://n")}try{const S=new URL(y,m);S.pathname=(0,o.normalizePathTrailingSlash)(S.pathname);let C="";if((0,l.isDynamicRoute)(S.pathname)&&S.searchParams&&v){const T=(0,r.searchParamsToUrlQuery)(S.searchParams),{result:O,params:k}=(0,f.interpolateAs)(S.pathname,S.pathname,T);O&&(C=(0,n.formatWithValidation)({pathname:O,hash:S.hash,query:(0,i.omit)(T,k)}))}const _=S.origin===m.origin?S.href.slice(S.origin.length):S.href;return v?[_,C||_]:_}catch{return v?[y]:y}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(df,df.exports)),df.exports}var mf={exports:{}},Fm={},jm={},kC;function AC(){return kC||(kC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=Em();function r(n,i){if(!n.startsWith("/")||!i)return n;const{pathname:a,query:o,hash:u}=(0,e.parsePath)(n);return""+i+a+o+u}}(jm)),jm}var PC;function OD(){return PC||(PC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=AC(),r=fC();function n(i,a,o,u){if(!a||a===o)return i;const l=i.toLowerCase();return!u&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+a.toLowerCase()))?i:(0,e.addPathPrefix)(i,"/"+a)}}(Fm)),Fm}var NC;function RD(){return NC||(NC=1,function(t,e){var r={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return i}});const n=vf(),i=function(a){for(var o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];return r.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(OD().addLocale(a,...u)):a};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(mf,mf.exports)),mf.exports}var $m={},IC;function kD(){return IC||(IC=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function e(f,d){for(var h in d)Object.defineProperty(f,h,{enumerable:!0,get:d[h]})}e(t,{AppRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return o},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return u}});const n=Ci()._(q),i=n.default.createContext(null),a=n.default.createContext(null),o=n.default.createContext(null),u=n.default.createContext(null);i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",o.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext";const l=n.default.createContext(new Set)}($m)),$m}var yf={exports:{}},bf={exports:{}},LC;function AD(){return LC||(LC=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}r(e,{cancelIdleCallback:function(){return i},requestIdleCallback:function(){return n}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let o=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})},1)},i=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(bf,bf.exports)),bf.exports}var MC;function PD(){return MC||(MC=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return f}});const r=q,n=AD(),i=typeof IntersectionObserver=="function",a=new Map,o=[];function u(d){const h={root:d.root||null,margin:d.rootMargin||""},p=o.find(b=>b.root===h.root&&b.margin===h.margin);let v;if(p&&(v=a.get(p),v))return v;const m=new Map,y=new IntersectionObserver(b=>{b.forEach(w=>{const E=m.get(w.target),S=w.isIntersecting||w.intersectionRatio>0;E&&S&&E(S)})},d);return v={id:h,observer:y,elements:m},o.push(h),a.set(h,v),v}function l(d,h,p){const{id:v,observer:m,elements:y}=u(p);return y.set(d,h),m.observe(d),function(){if(y.delete(d),m.unobserve(d),y.size===0){m.disconnect(),a.delete(v);const w=o.findIndex(E=>E.root===v.root&&E.margin===v.margin);w>-1&&o.splice(w,1)}}}function f(d){let{rootRef:h,rootMargin:p,disabled:v}=d;const m=v||!i,[y,b]=(0,r.useState)(!1),w=(0,r.useRef)(null),E=(0,r.useCallback)(C=>{w.current=C},[]);(0,r.useEffect)(()=>{if(i){if(m||y)return;const C=w.current;if(C&&C.tagName)return l(C,T=>T&&b(T),{root:h==null?void 0:h.current,rootMargin:p})}else if(!y){const C=(0,n.requestIdleCallback)(()=>b(!0));return()=>(0,n.cancelIdleCallback)(C)}},[m,p,h,y,w.current]);const S=(0,r.useCallback)(()=>{b(!1)},[]);return[E,y,S]}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(yf,yf.exports)),yf.exports}var _f={exports:{}},wf={exports:{}},qm={},DC;function ND(){return DC||(DC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let i;const a=r.split("/");return(n||[]).some(o=>a[1]&&a[1].toLowerCase()===o.toLowerCase()?(i=o,a.splice(1,1),r=a.join("/")||"/",!0):!1),{pathname:r,detectedLocale:i}}}(qm)),qm}var FC;function ID(){return FC||(FC=1,function(t,e){var r={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(i,a)=>r.__NEXT_I18N_SUPPORT?ND().normalizeLocalePath(i,a):{pathname:i,detectedLocale:void 0};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(wf,wf.exports)),wf.exports}var Ef={exports:{}},Um={},jC;function LD(){return jC||(jC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,i){if(r){i&&(i=i.toLowerCase());for(const u of r){var a,o;const l=(a=u.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===l||i===u.defaultLocale.toLowerCase()||(o=u.locales)!=null&&o.some(f=>f.toLowerCase()===i))return u}}}}(Um)),Um}var $C;function MD(){return $C||($C=1,function(t,e){var r={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];if(r.__NEXT_I18N_SUPPORT)return LD().detectDomainLocale(...a)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Ef,Ef.exports)),Ef.exports}var qC;function DD(){return qC||(qC=1,function(t,e){var r={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return a}});const n=vf(),i=r.__NEXT_ROUTER_BASEPATH||"";function a(o,u,l,f){if(r.__NEXT_I18N_SUPPORT){const d=ID().normalizeLocalePath,h=MD().detectDomainLocale,p=u||d(o,l).detectedLocale,v=h(f,void 0,p);if(v){const m="http"+(v.http?"":"s")+"://",y=p===v.defaultLocale?"":"/"+p;return""+m+v.domain+(0,n.normalizePathTrailingSlash)(""+i+y+o)}return!1}else return!1}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(_f,_f.exports)),_f.exports}var Sf={exports:{}},UC;function FD(){return UC||(UC=1,function(t,e){var r={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return o}});const n=AC(),i=vf(),a=r.__NEXT_ROUTER_BASEPATH||"";function o(u,l){return(0,i.normalizePathTrailingSlash)(r.__NEXT_MANUAL_CLIENT_BASE_PATH&&!l?u:(0,n.addPathPrefix)(u,a))}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Sf,Sf.exports)),Sf.exports}var xf={exports:{}},zC;function jD(){return zC||(zC=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(v,m){for(var y in m)Object.defineProperty(v,y,{enumerable:!0,get:m[y]})}r(e,{ACTION_FAST_REFRESH:function(){return l},ACTION_NAVIGATE:function(){return i},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return n},ACTION_RESTORE:function(){return a},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return o},PrefetchCacheEntryStatus:function(){return h},PrefetchKind:function(){return d},isThenable:function(){return p}});const n="refresh",i="navigate",a="restore",o="server-patch",u="prefetch",l="fast-refresh",f="server-action";var d;(function(v){v.AUTO="auto",v.FULL="full",v.TEMPORARY="temporary"})(d||(d={}));var h;(function(v){v.fresh="fresh",v.reusable="reusable",v.expired="expired",v.stale="stale"})(h||(h={}));function p(v){return v&&(typeof v=="object"||typeof v=="function")&&typeof v.then=="function"}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(xf,xf.exports)),xf.exports}var HC;function $D(){return HC||(HC=1,function(t,e){"use client";var r={NODE_ENV:'"production"'};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return O}});const n=Ci(),i=ll(),a=n._(q),o=TD(),u=pC(),l=nC(),f=hf(),d=RD(),h=Hw(),p=kD(),v=PD(),m=DD(),y=FD(),b=jD(),w=new Set;function E(k,P,N,M,z,H){if(typeof window>"u"||!H&&!(0,u.isLocalURL)(P))return;if(!M.bypassPrefetchedCheck){const F=typeof M.locale<"u"?M.locale:"locale"in k?k.locale:void 0,U=P+"%"+N+"%"+F;if(w.has(U))return;w.add(U)}(async()=>H?k.prefetch(P,z):k.prefetch(P,N,M))().catch(F=>{throw F})}function S(k){const N=k.currentTarget.getAttribute("target");return N&&N!=="_self"||k.metaKey||k.ctrlKey||k.shiftKey||k.altKey||k.nativeEvent&&k.nativeEvent.which===2}function C(k,P,N,M,z,H,L,F,U){const{nodeName:Y}=k.currentTarget;if(Y.toUpperCase()==="A"&&(S(k)||!U&&!(0,u.isLocalURL)(N)))return;k.preventDefault();const K=()=>{const $=L??!0;"beforePopState"in P?P[z?"replace":"push"](N,M,{shallow:H,locale:F,scroll:$}):P[z?"replace":"push"](M||N,{scroll:$})};U?a.default.startTransition(K):K()}function _(k){return typeof k=="string"?k:(0,l.formatUrl)(k)}const O=a.default.forwardRef(function(P,N){let M;const{href:z,as:H,children:L,prefetch:F=null,passHref:U,replace:Y,shallow:V,scroll:K,locale:$,onClick:Q,onMouseEnter:ae,onTouchStart:ie,legacyBehavior:te=!1,...fe}=P;M=L,te&&(typeof M=="string"||typeof M=="number")&&(M=(0,i.jsx)("a",{children:M}));const ue=a.default.useContext(h.RouterContext),W=a.default.useContext(p.AppRouterContext),de=ue??W,ye=!ue,Se=F!==!1,J=F===null?b.PrefetchKind.AUTO:b.PrefetchKind.FULL;{let we=function(Oe){return new Error("Failed prop type: The prop `"+Oe.key+"` expects a "+Oe.expected+" in `<Link>`, but got `"+Oe.actual+"` instead."+(typeof window<"u"?`
|
|
369
|
+
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(Oe=>{if(Oe==="href"&&(P[Oe]==null||typeof P[Oe]!="string"&&typeof P[Oe]!="object"))throw we({key:Oe,expected:"`string` or `object`",actual:P[Oe]===null?"null":typeof P[Oe]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(Oe=>{const Me=typeof P[Oe];if(Oe==="as"){if(P[Oe]&&Me!=="string"&&Me!=="object")throw we({key:Oe,expected:"`string` or `object`",actual:Me})}else if(Oe==="locale"){if(P[Oe]&&Me!=="string")throw we({key:Oe,expected:"`string`",actual:Me})}else if(Oe==="onClick"||Oe==="onMouseEnter"||Oe==="onTouchStart"){if(P[Oe]&&Me!=="function")throw we({key:Oe,expected:"`function`",actual:Me})}else if((Oe==="replace"||Oe==="scroll"||Oe==="shallow"||Oe==="passHref"||Oe==="prefetch"||Oe==="legacyBehavior")&&P[Oe]!=null&&Me!=="boolean")throw we({key:Oe,expected:"`boolean`",actual:Me})});const Ne=a.default.useRef(!1);P.prefetch&&!Ne.current&&!ye&&(Ne.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(ye&&!H){let we;if(typeof z=="string"?we=z:typeof z=="object"&&typeof z.pathname=="string"&&(we=z.pathname),we&&we.split("/").some(_e=>_e.startsWith("[")&&_e.endsWith("]")))throw new Error("Dynamic href `"+we+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:j,as:Re}=a.default.useMemo(()=>{if(!ue){const _e=_(z);return{href:_e,as:H?_(H):_e}}const[we,ot]=(0,o.resolveHref)(ue,z,!0);return{href:we,as:H?(0,o.resolveHref)(ue,H):ot||we}},[ue,z,H]),oe=a.default.useRef(j),xe=a.default.useRef(Re);let Fe;te&&(Fe=a.default.Children.only(M));const He=te?Fe&&typeof Fe=="object"&&Fe.ref:N,[Ye,Xe,ht]=(0,v.useIntersection)({rootMargin:"200px"}),je=a.default.useCallback(we=>{(xe.current!==Re||oe.current!==j)&&(ht(),xe.current=Re,oe.current=j),Ye(we),He&&(typeof He=="function"?He(we):typeof He=="object"&&(He.current=we))},[Re,He,j,ht,Ye]);a.default.useEffect(()=>{},[Re,j,Xe,$,Se,ue==null?void 0:ue.locale,de,ye,J]);const Te={ref:je,onClick(we){if(!we)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!te&&typeof Q=="function"&&Q(we),te&&Fe.props&&typeof Fe.props.onClick=="function"&&Fe.props.onClick(we),de&&(we.defaultPrevented||C(we,de,j,Re,Y,V,K,$,ye))},onMouseEnter(we){!te&&typeof ae=="function"&&ae(we),te&&Fe.props&&typeof Fe.props.onMouseEnter=="function"&&Fe.props.onMouseEnter(we),de&&((!Se||r.NODE_ENV==="development")&&ye||E(de,j,Re,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:J},ye))},onTouchStart:r.__NEXT_LINK_NO_TOUCH_START?void 0:function(ot){!te&&typeof ie=="function"&&ie(ot),te&&Fe.props&&typeof Fe.props.onTouchStart=="function"&&Fe.props.onTouchStart(ot),de&&(!Se&&ye||E(de,j,Re,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:J},ye))}};if((0,f.isAbsoluteUrl)(Re))Te.href=Re;else if(!te||U||Fe.type==="a"&&!("href"in Fe.props)){const we=typeof $<"u"?$:ue==null?void 0:ue.locale,ot=(ue==null?void 0:ue.isLocaleDomain)&&(0,m.getDomainLocale)(Re,we,ue==null?void 0:ue.locales,ue==null?void 0:ue.domainLocales);Te.href=ot||(0,y.addBasePath)((0,d.addLocale)(Re,we,ue==null?void 0:ue.defaultLocale))}return te?a.default.cloneElement(Fe,Te):(0,i.jsx)("a",{...fe,...Te,children:M})});(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ff,ff.exports)),ff.exports}var zm,VC;function qD(){return VC||(VC=1,zm=$D()),zm}var UD=qD();const BC=wi(UD),zD=({setFeedbackForTheArticle:t,reqId:e,isAuthenticated:r})=>{var b,w,E;const[n,i]=q.useState([]),[a,o]=q.useState(!1),[u,l]=q.useState({}),[f,{loading:d}]=ka(tE),h=async()=>{var S;try{if(o(!0),lt.size(n)&<.size(n)>5){tr("error","You can upload maximum 5 files","top-right");return}const C=[],_=[];lt.forEach(n,O=>{const k=`${Kp()}.${lt.last(lt.split(O.name,"."))}`;C.push({name:k,title:O.name,size:O.size,type:"ticket_activity_attachment"}),_.push({file:O,name:k})});const{data:T}=await f({variables:{inputData:{...u,...e,ticket_activity_files:C}}});(S=T==null?void 0:T.createATicketForPortal)!=null&&S.id&&(lt.size(_)&&_.forEach(async O=>{var k;try{const P=await uv({name:O.name,type:"ticket_activity_attachment",sub_type:(k=T==null?void 0:T.createATicketForPortal)==null?void 0:k.id});if(P!=null&&P.error){tr("error",`Failed to process ${O.name}`,"top-right");return}await lv({key:P.key,url:P.url},O.file)}catch(P){console.error(`Error processing file ${O.name}:`,P),tr("error",`Failed to upload ${O.name}`,"top-right")}}),t({notHelpfulModal:!1,isNotHelpful:!0}))}catch(C){tr("error","Something went wrong","top-right"),console.error("error",C)}finally{o(!1)}},p=(S,C)=>{l(_=>({..._,[S]:C}))},v=Wh(u.contact_person_email),m=!r&&(!((b=u.contact_person_name)!=null&&b.trim())||!v||!u.contact_person_email)||!((w=u.ticket_title)!=null&&w.trim())||!((E=u.ticket_activity)!=null&&E.trim()),y=()=>d||a?!0:m;return R.jsxs("div",{className:"ed-px-5 ed-pb-5",children:[R.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between ed-pt-5 ed-sticky ed-top-0 ed-bg-white",children:[R.jsx("h5",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-mb-5",children:"Get in touch"}),R.jsx(Zi,{size:24,className:"ed-text-border-dark ed-cursor-pointer",onClick:()=>t(S=>({...S,notHelpfulModal:!1}))})]}),R.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mt-5 ed-mb-4 ed-inline-block ed-w-11/12",children:"Tell us how can we make our product more useful for you."}),R.jsxs("div",{className:"ed-space-y-4 ed-mb-6",children:[!r&&R.jsxs(R.Fragment,{children:[R.jsx(Vo,{isRequired:!0,label:"Name",placeholder:"Enter your name",value:u.contact_person_name,onChange:S=>p("contact_person_name",S.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_name"}),R.jsx(Vo,{isRequired:!0,type:"email",label:"Email",placeholder:"Enter your email",value:u.contact_person_email,onChange:S=>p("contact_person_email",S.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_email"}),(u==null?void 0:u.contact_person_email)&&!v&&R.jsx("span",{className:"ed-text-red ed-font-12",children:"Please enter a valid email address!"})]}),R.jsx(Vo,{isRequired:!0,label:"Subject",placeholder:"Tell us what this feedback is about",value:u.ticket_title,onChange:S=>p("ticket_title",S.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_title"}),R.jsx(Tw,{label:`${r?"Summary":"Description"}`,isRequired:!0,placeholder:"Add more details for us to resolve the issue",value:u.ticket_activity,onChange:S=>p("ticket_activity",S.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_activity"}),R.jsx(Jw,{selectedFiles:n,setSelectedFiles:i})]}),R.jsx(_u,{title:"Submit",fullWidthBtn:!0,disabled:y(),loader:d||a,callBack:h})]})};var Hm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_AN_ARTICLE"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"EntityIdOrSlugInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAnArticle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"section"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"published_at"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:358}};Hm.loc.source={body:`query GET_AN_ARTICLE($queryData: EntityIdOrSlugInputType!) {
|
|
370
|
+
getAnArticle(queryData: $queryData) {
|
|
371
|
+
id
|
|
372
|
+
author {
|
|
373
|
+
id
|
|
374
|
+
first_name
|
|
375
|
+
email
|
|
376
|
+
last_name
|
|
377
|
+
avatar_file {
|
|
378
|
+
id
|
|
379
|
+
key
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
title
|
|
383
|
+
content
|
|
384
|
+
category {
|
|
385
|
+
id
|
|
386
|
+
name
|
|
387
|
+
}
|
|
388
|
+
section {
|
|
389
|
+
id
|
|
390
|
+
name
|
|
391
|
+
}
|
|
392
|
+
published_at
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Cf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){Cf(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){Cf(n,e)}),t.definitions&&t.definitions.forEach(function(n){Cf(n,e)})}var Vm={};(function(){Hm.definitions.forEach(function(e){if(e.name){var r=new Set;Cf(e,r),Vm[e.name.value]=r}})})();function WC(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function HD(t,e){var r={kind:t.kind,definitions:[WC(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=Vm[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Vm[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=WC(t,u);l&&r.definitions.push(l)}),r}const VD=HD(Hm,"GET_AN_ARTICLE");var Bm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_AN_ARTICLE_ANALYTIC"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ArticleAnalyticCreateInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createAnArticleAnalytic"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:147}};Bm.loc.source={body:`mutation CREATE_AN_ARTICLE_ANALYTIC($inputData: ArticleAnalyticCreateInputType!) {
|
|
396
|
+
createAnArticleAnalytic(inputData: $inputData) {
|
|
397
|
+
id
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Tf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){Tf(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){Tf(n,e)}),t.definitions&&t.definitions.forEach(function(n){Tf(n,e)})}var Wm={};(function(){Bm.definitions.forEach(function(e){if(e.name){var r=new Set;Tf(e,r),Wm[e.name.value]=r}})})();function GC(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function BD(t,e){var r={kind:t.kind,definitions:[GC(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=Wm[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Wm[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=GC(t,u);l&&r.definitions.push(l)}),r}const WD=BD(Bm,"CREATE_AN_ARTICLE_ANALYTIC"),GD=({articleId:t,setArticleId:e,isAuthenticated:r})=>{var b,w,E,S,C,_,T,O,k,P;const{t:n}=Ho(),[i,a]=q.useState({}),[o,u]=q.useState(""),[l,f]=q.useState(!0),[d,h]=q.useState({isHelpful:!1,isNotHelpful:!1,notHelpfulModal:!1}),[p]=Ra(VD,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{entity_id:t}},onCompleted:N=>{a(N==null?void 0:N.getAnArticle)},onError:N=>{console.error(N),f(!1)}}),[v,{loading:m}]=ka(WD),y=async N=>{try{await v({variables:{inputData:{article_id:t,action_type:N}}}),N==="like"&&h({isHelpful:!0})}catch(M){console.error(M)}};return q.useEffect(()=>{p(),y("view")},[]),q.useEffect(()=>{i!=null&&i.content&&(async()=>(u(await zR(i==null?void 0:i.content)),f(!1)))()},[i]),l?R.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:R.jsx(xi,{})}):R.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto no-scrollbar",children:[!d.notHelpfulModal&&R.jsxs(R.Fragment,{children:[R.jsx("div",{className:"ed-flex ed-items-center ed-justify-end",children:R.jsx("button",{type:"button",onClick:()=>e(null),className:"ed-p-5 ed-sticky ed-top-0 ed-bg-white ed-z-10",children:R.jsx(Zi,{className:"ed-text-border-regular ed-size-5"})})}),R.jsxs("div",{className:"ed-px-5",children:[R.jsxs("div",{className:"ed-group ed-flex ed-items-center ed-justify-between ed-mb-4 ed-cursor-pointer ed-duration-300 ed-ease-in-out ed-transition-all",children:[R.jsx("h3",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-group-hover:underline ed-flex-1",children:gu((i==null?void 0:i.title)||"")}),R.jsx(BC,{href:`/solutions/articles/${i==null?void 0:i.id}`,target:"_blank",rel:"noreferrer",children:R.jsx(Rp,{className:"ed-group-hover:opacity-100 ed-opacity-0 ed-size-5 ed-text-brand-link"})})]}),R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[R.jsx(Ji,{alt:`${(w=(b=i==null?void 0:i.author)==null?void 0:b.avatar_file)==null?void 0:w.first_name}'s profile`,defaultUserNameTextSize:"text-10",className:"ed-size-9 ed-object-cover ed-rounded-full",defaultImageClasses:"w-9 h-9",path:(S=(E=i==null?void 0:i.author)==null?void 0:E.image)==null?void 0:S.key,defaultImageName:nu((C=i==null?void 0:i.author)==null?void 0:C.first_name,(_=i==null?void 0:i.author)==null?void 0:_.last_name,(T=i==null?void 0:i.author)==null?void 0:T.email)}),R.jsxs("div",{children:[R.jsxs("h6",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:[" ",qR((O=i==null?void 0:i.author)==null?void 0:O.first_name,(k=i==null?void 0:i.author)==null?void 0:k.last_name,(P=i==null?void 0:i.author)==null?void 0:P.email)]}),R.jsx("p",{className:"ed-text-12 ed-font-medium ed-text-border-regular",children:eu(i==null?void 0:i.published_at).format("DD MMMM, YYYY")})]})]}),R.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular",children:(i==null?void 0:i.content)&&gu(o)}),R.jsxs("div",{className:"ed-px-5 ed-py-6 ed-mt-4 ed-rounded-[10px] ed-bg-gray ed-mb-5",children:[!d.isHelpful&&!(d!=null&&d.isNotHelpful)&&R.jsxs("div",{children:[R.jsx("h6",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mb-4 ed-text-center",children:"Was this information helpful?"}),R.jsxs("div",{className:"ed-grid md:ed-grid-cols-2 ed-gap-2",children:[R.jsx(_u,{title:"Helpful",Icon:Up,btnType:"btn_bordered",fullWidthBtn:!0,loader:m,callBack:()=>y("like")}),R.jsx(_u,{title:"Not helpful",Icon:$p,btnType:"btn_bordered",fullWidthBtn:!0,callBack:()=>h({...d,notHelpfulModal:!0})})]})]}),(d.isHelpful||(d==null?void 0:d.isNotHelpful))&&R.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[R.jsx(x7,{width:"105",height:"80"}),R.jsx("p",{className:"ed-mt-2.5 ed-text-14 ed-font-medium ed-text-border-regular ed-text-center",children:n("widget.label.thank_you_for_your_feedback")})]})]})]})]}),d.notHelpfulModal&&R.jsx(zD,{setFeedbackForTheArticle:h,reqId:{article_id:t},isAuthenticated:r})]})};var Gm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_SECTIONS_WITH_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SectionQueryInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSectionsWithArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"section_articles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:388}};Gm.loc.source={body:`query GET_SECTIONS_WITH_ARTICLES($queryData: SectionQueryInput!, $optionData: OptionDataType) {
|
|
401
|
+
getSectionsWithArticles(queryData: $queryData, optionData: $optionData) {
|
|
402
|
+
data {
|
|
403
|
+
id
|
|
404
|
+
description
|
|
405
|
+
name
|
|
406
|
+
parent_category {
|
|
407
|
+
id
|
|
408
|
+
name
|
|
409
|
+
description
|
|
410
|
+
}
|
|
411
|
+
total_articles
|
|
412
|
+
section_articles {
|
|
413
|
+
id
|
|
414
|
+
title
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Of(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){Of(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){Of(n,e)}),t.definitions&&t.definitions.forEach(function(n){Of(n,e)})}var Qm={};(function(){Gm.definitions.forEach(function(e){if(e.name){var r=new Set;Of(e,r),Qm[e.name.value]=r}})})();function QC(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function QD(t,e){var r={kind:t.kind,definitions:[QC(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=Qm[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Qm[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=QC(t,u);l&&r.definitions.push(l)}),r}const YD=QD(Gm,"GET_SECTIONS_WITH_ARTICLES"),KD=({setArticleId:t,selectedCategory:e})=>{const[r,n]=q.useState(null),[i,a]=q.useState([]),o=f=>{n(r===f?null:f)},[u,{loading:l}]=Ra(YD,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{category_id:e},optionData:{order:[["serial","asc"]]}},onCompleted:f=>{var d;a((d=f==null?void 0:f.getSectionsWithArticles)==null?void 0:d.data)},onError:f=>{console.error(f)}});return q.useEffect(()=>{u()},[]),l?R.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:R.jsx(xi,{})}):R.jsx("div",{children:i.map(f=>{var d;return R.jsx("div",{className:`ed-border-b ed-border-disabled ${r===f.id?"pb-2":""}`,children:R.jsxs("div",{className:"ed-py-3 ed-px-4",children:[R.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(f.id),className:`ed-flex ed-items-center ed-justify-between ed-gap-2 ed-p-2 ed-cursor-pointer ed-transition-all ed-duration-300 ed-ease-in-out ${r===f.id?"ed-bg-white-light":""}`,children:[R.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-border-dark",children:f.name}),R.jsx("div",{className:"ed-transform ed-transition-transform ed-duration-300 ed-ease-in-out",children:r===f.id?R.jsx(xp,{className:"ed-text-border-regular ed-size-5"}):R.jsx(cu,{className:"ed-text-border-regular ed-size-5"})})]}),R.jsx("div",{className:`ed-overflow-hidden ed-transition-all ed-ease-in-out ${r===f.id?"ed-max-h-96 ed-opacity-100 ed-mt-3":"ed-max-h-0 ed-opacity-0"}`,children:(d=f==null?void 0:f.section_articles)==null?void 0:d.map(h=>R.jsxs("button",{type:"button",onClick:()=>t(h==null?void 0:h.id),className:"ed-flex ed-items-center ed-gap-2 ed-flex-1 ed-w-full ed-px-6 ed-py-2 ed-hover:bg-white-light ed-group ed-text-left",children:[R.jsx("p",{className:"ed-text-border-dark ed-text-14 ed-font-medium ed-group-hover:text-brand-link ed-flex-1 ed-ease-in-out ed-transition-all",children:gu((h==null?void 0:h.title)||"")}),R.jsx("div",{className:"ed-size-4 ed--translate-x-2 ed-opacity-0 ed-group-hover:opacity-100 ed-group-hover:translate-x-2 ed-transition-all",children:R.jsx(Mo,{className:"ed-text-border ed-size-4"})})]},h.id))})]})},f.id)})})},XD=({loading:t,selectedCategory:e,setArticleId:r,articleId:n,isAuthenticated:i,setSelectedCategory:a})=>R.jsx("div",{children:t?R.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:R.jsx(xi,{})}):e&&n||!e&&n?R.jsx(GD,{articleId:n,setArticleId:r,isAuthenticated:i}):e&&!n?R.jsx(KD,{setArticleId:r,selectedCategory:e}):R.jsx(dD,{setSelectedCategory:a})}),ZD=({setIsCreatNewTicketClicked:t})=>{const{t:e}=Ho();return R.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center ed-min-h-min ed-h-full",children:[R.jsx(S7,{}),R.jsxs("p",{className:"ed-text-14 ed-text-border-regular ed-text-center",children:[e("widget.label.no_article_found"),R.jsx("button",{type:"button",onClick:()=>t(!0),className:"ed-text-14 ed-font-semibold ed-text-brand-link ed-ml-1",children:e("widget.label.click_here")})]})]})},JD=({isPopupOpen:t,handlePopupTrigger:e,orgBrandSetting:r})=>{const n=T_("(max-width: 768px)"),{brand:i,widget_icon_key:a}=r;return R.jsx("button",{type:"button",onClick:e,style:{transformOrigin:"center",translate:"50% 50%"},className:`${n&&t?"ed-hidden":""} hover:ed-size-12 ed-absolute ed-bottom-12 ed-right-12 ed-rounded-full ed-inline-flex ed-justify-center ed-items-center ed-bg-brand ed-size-11 ed-cursor-pointer ed-origin-center ed-transition-all ed-duration-200 ed-ease-in-out`,children:R.jsxs("div",{className:"ed-relative ed-w-8 ed-h-8 ed-flex ed-items-center ed-justify-center",children:[R.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${t?"ed-opacity-100 ed-scale-100 ed-rotate-[360deg]":"ed-opacity-0 ed-scale-0 ed-rotate-0"}`,children:R.jsx(cu,{className:"ed-size-7 ed-text-white"})}),R.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${t?"ed-opacity-0 ed-scale-0 ed-rotate-[360deg]":"ed-opacity-100 ed-scale-100 ed-rotate-0"}`,children:a?R.jsx(Ji,{alt:`${i==null?void 0:i.name}'s widget icon`,defaultUserNameTextSize:"text-10",className:"ed-size-9 ed-object-cover ed-rounded-full",defaultImageClasses:"w-9 h-9",path:a,defaultImageName:nu(i==null?void 0:i.name)}):R.jsx(E7,{height:28,width:28})})]})})},eF=({activeTab:t,handleTabChange:e,orgBrandSetting:r={}})=>{const{t:n}=Ho(),{remove_app_branding:i,is_knowledge_base_enabled:a,is_live_chat_enabled:o}=r,u=[{id:1,key:"messages",label:"Messages",icon:C7},{id:2,key:"knowledge_base",label:"Knowledge base",icon:T7}],l=q.useMemo(()=>a&&o,[a,o]);return R.jsxs("div",{className:`${l&&"ed-shadow-[0_-8px_10px_rgba(0,0,0,0.02)] ed-pt-2.5"} 'ed-h-max'`,children:[a&&o&&R.jsx("div",{className:"ed-grid ed-grid-cols-2",children:u.map(f=>{const d=t===f.key;return R.jsxs("button",{type:"button",onClick:()=>e(f.key),className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[R.jsx(f.icon,{isActive:d}),R.jsx("h3",{className:`ed-text-14 ed-font-semibold ${d?"ed-text-brand":"ed-text-border-regular"} ed-inline-block`,children:f.label})]},f.id)})}),!i&&R.jsxs("p",{className:"ed-py-2 ed-text-center ed-text-12 ed-font-medium ed-text-border-regular ed-bg-gray md:ed-rounded-b-[10px] ed-mt-1.5",children:[n("widget.label.powerd_by")," ",R.jsx(BC,{href:"https://easydesk.app/",target:"_blank",className:"ed-text-14 ed-font-semibold ed-text-border-regular",children:n("widget.label.easydesk")})]})]})},tF=({searchedText:t,selectedCategory:e,setSearchedText:r,setArticleId:n,setSelectedCategory:i,setIsPopupOpen:a,handleSearch:o,setArticlesData:u,brandInfo:l,activeTab:f})=>{const{t:d}=Ho(),h=T_("(max-width: 768px)"),p=()=>{r(""),n(null),i(null)};return R.jsx("div",{className:"ed-bg-brand ed-py-8 ed-px-5 md:ed-rounded-t-[10px] ed-h-max",children:f==="messages"?R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[R.jsx(Ji,{className:"ed-size-10 ed-rounded-full ed-object-cover",defaultImageClasses:"ed-h-10 ed-w-10",path:l==null?void 0:l.logo_icon_key,defaultImageName:nu(l==null?void 0:l.name)}),R.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-white",children:l==null?void 0:l.name})]}):R.jsxs("div",{children:[R.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between",children:[lt.size(t)||e?R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[R.jsx(wp,{onClick:p,className:"ed-text-white ed-size-5"}),R.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-white",children:d("widget.label.knowledge_base")})]}):R.jsxs("div",{children:[R.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-white",children:d("widget.label.lets_explore")}),R.jsx("h4",{className:"ed-text-24 ed-font-bold ed-text-white ed-mt-2 ed-mb-4",children:d("widget.label.knowledge_base")})]}),h&&R.jsx("button",{type:"button",onClick:()=>a(!1),children:R.jsx(Zi,{size:20,className:"ed-text-white"})})]}),R.jsxs("div",{className:"ed-bg-white ed-rounded-full ed-border ed-border-border-light ed-flex ed-items-center ed-justify-between ed-gap-2 ed-px-4 ed-py-2.5",children:[R.jsx("input",{value:t,onChange:v=>o(v.target.value),placeholder:d("widget.placeholder.search_for_articles"),type:"text",className:"ed-bg-transparent ed-outline-none ed-w-full ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border"}),R.jsxs("div",{className:"ed-flex ed-items-center ed-gap-3",children:[t&&R.jsx("button",{type:"button",onClick:()=>{r(""),u([])},children:R.jsx(Zi,{size:20,className:"ed-text-border"})}),R.jsx(Mp,{size:24,className:"ed-text-border"})]})]})]})})};var Ym={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"ArticleQueryInputType"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:193}};Ym.loc.source={body:`query GET_ARTICLES($queryData: ArticleQueryInputType, $optionData: OptionDataType) {
|
|
420
|
+
getArticles(queryData: $queryData, optionData: $optionData) {
|
|
421
|
+
data {
|
|
422
|
+
id
|
|
423
|
+
title
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Rf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var r=t.type;r.kind==="NamedType"&&e.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(n){Rf(n,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(n){Rf(n,e)}),t.definitions&&t.definitions.forEach(function(n){Rf(n,e)})}var Km={};(function(){Ym.definitions.forEach(function(e){if(e.name){var r=new Set;Rf(e,r),Km[e.name.value]=r}})})();function YC(t,e){for(var r=0;r<t.definitions.length;r++){var n=t.definitions[r];if(n.name&&n.name.value==e)return n}}function rF(t,e){var r={kind:t.kind,definitions:[YC(t,e)]};t.hasOwnProperty("loc")&&(r.loc=t.loc);var n=Km[e]||new Set,i=new Set,a=new Set;for(n.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Km[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=YC(t,u);l&&r.definitions.push(l)}),r}const nF=rF(Ym,"GET_ARTICLES"),iF=t=>{const{isAuthenticated:e}=t||{},[r,n]=q.useState(!1),[i,a]=q.useState(""),[o,u]=q.useState(null),[l,f]=q.useState(null),[d,h]=q.useState(!1),[p,v]=q.useState([]),[m,y]=q.useState(""),[b,w]=q.useState(!1),[E,S]=q.useState({}),[C,{loading:_}]=Ra(nF,{errorPolicy:"all",fetchPolicy:"no-cache",onCompleted:F=>{var U;v(((U=F==null?void 0:F.getArticles)==null?void 0:U.data)||[])},onError:F=>{console.error(F)}}),T=AA(F=>{C({variables:{queryData:{search_keyword:F}}})},500),O=F=>{a(F),T(F)},k=()=>{n(!r),a(""),u(null),f(null),h(!1)},P=async()=>{w(!0);try{const F=await PA();if(F){const{font:U,is_knowledge_base_enabled:Y,is_live_chat_enabled:V,theme_color:K}=F;S(F),NA(K),IA(U),(Y&&!V||Y&&V)&&y("knowledge_base"),!Y&&V&&y("messages"),w(!1)}}catch(F){console.error(F),w(!1)}};q.useEffect(()=>{P()},[]);const N=()=>m==="knowledge_base"?R.jsx(XD,{loading:_,articleId:l,isAuthenticated:e,selectedCategory:o,setArticleId:f,setSelectedCategory:u}):m==="messages"?R.jsx(cD,{orgBrandSetting:E}):null,{brand:M,is_knowledge_base_enabled:z,is_live_chat_enabled:H}=E||{},L=F=>{y(F),a(""),u(null),f(null),h(!1)};return!z&&!H?null:R.jsxs("div",{children:[R.jsx(JD,{isPopupOpen:r,handlePopupTrigger:k,orgBrandSetting:E}),R.jsx("div",{className:`ed-absolute ${r?"ed-opacity-100 ed-w-screen ed-h-dvh md:ed-max-h-[704px] md:ed-h-[80vh] md:ed-w-[400px]":"ed-opacity-0 ed-max-h-0 ed-h-0 ed-w-0 ed-pointer-events-none"} md:ed-bottom-24 md:ed-right-6 ed-bottom-0 ed-right-0 ed-bg-white ed-shadow-lg md:ed-rounded-[10px] ed-z-[9999999] ed-p-0.5 ed-overflow-hidden ed-transition-all ed-duration-300 ed-ease-in-out ed-flex ed-flex-col`,children:r&&R.jsxs(R.Fragment,{children:[R.jsx(tF,{searchedText:i,selectedCategory:o,setSearchedText:a,setArticleId:f,setSelectedCategory:u,setIsPopupOpen:n,handleSearch:O,setArticlesData:v,brandInfo:M,activeTab:m}),R.jsx("div",{className:`ed-flex-1 ed-overflow-y-auto no-scrollbar ed-px-5 ${m==="knowledge_base"?"ed-pb-5":""} ed-pt-1 ed-root-scrollbar`,children:i?R.jsx("div",{className:"ed-h-full",children:lt.size(p)?R.jsx(WA,{}):R.jsx(ZD,{setIsCreatNewTicketClicked:h})}):R.jsx("div",{className:`${m==="knowledge_base"?"ed-py-1":""} ed-space-y-4`,children:N()})}),R.jsx(eF,{activeTab:m,handleTabChange:L,orgBrandSetting:E}),d&&R.jsx(c7,{setIsCreatNewTicketClicked:h,setSearchedText:a,searchedText:i,isAuthenticated:e})]})})]})},aF=async t=>{var e;try{const r=await Yt.post(`${zh()}/auth/widget-login`,{api_key:t});return((e=r==null?void 0:r.data)==null?void 0:e.data)||{}}catch{return{access_token:null,refresh_token:null}}},Xm=t=>{const{apiKey:e,envVariables:r}=t,[n,i]=q.useState(!1),[a,o]=q.useState(!1),u=async d=>{i(!0);const h=await aF(d);h!=null&&h.access_token&&(Bh("easydesk_chat_widget_public_access_token",h==null?void 0:h.access_token,{expires:30}),i(!1))};q.useEffect(()=>{e&&u(e)},[e]),q.useEffect(()=>{b2(r||{apiBaseUrl:"https://api.easydesk.app",cdnDomain:"easydesk-prod"}),o(!0)},[r]);const l=(r==null?void 0:r.apiBaseUrl)||"https://api.easydesk.app",f=q.useMemo(()=>cp(l),[l]);return n||!a?R.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:R.jsx(Cw,{})}):R.jsxs(a8,{client:f,children:[R.jsx(I8,{}),R.jsx(iF,{...t})]})},Zm=t=>{let e=document.getElementById("easydesk-chat-container");e||(e=document.createElement("div"),e.id="ed-widget",document.body.appendChild(e)),cT.createRoot(e).render(R.jsx(Xm,{...t}))},KC=()=>{const t=document.getElementById("ed-widget");if(t){const e=t.getAttribute("ed-key");e?Zm({apiKey:e}):console.error("ChatKey: API key is required for initialization")}};typeof window<"u"&&(window.ChatKey={init:Zm},document.readyState==="complete"?KC():window.addEventListener("load",KC));const oF=Object.freeze(Object.defineProperty({__proto__:null,default:{widget:{label:{click_here:"click here",copy_code:"Copy code",create_a_ticket:"Create a ticket",easydesk:"Easydesk",explore_more_articles:"Explore more articles",knowledge_base:"Knowledge Base",lets_explore:"Let's explore",no_article_found:"We couldn't find any articles that match your search. Want to create a ticket?",powerd_by:"Powered by",soon_get_response:"Soon you will get an email",ticket_created:"Ticket created",thank_you_for_your_feedback:"Thank you for your valuable feedback!"},placeholder:{search_for_articles:"Search for articles"}}}},Symbol.toStringTag,{value:"Module"})),sF=Object.freeze(Object.defineProperty({__proto__:null,default:{widget:{label:{click_here:"klikk her",copy_code:"Kopier kode",create_a_ticket:"Opprett en sak",easydesk:"Easydesk",explore_more_articles:"Utforsk flere artikler",knowledge_base:"Kunnskapsbase",lets_explore:"La oss utforske",no_article_found:"Vi fant ingen artikler som samsvarer med søket ditt. Vil du opprette en sak?",powerd_by:"Drevet av",soon_get_response:"Du vil snart motta en e-post",ticket_created:"Sak opprettet",thank_you_for_your_feedback:"Takk for tilbakemeldingen din!"},placeholder:{search_for_articles:"Søk etter artikler"}}}},Symbol.toStringTag,{value:"Module"}));xr.Widget=Xm,xr.default=Xm,xr.initChatKey=Zm,Object.defineProperties(xr,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|