(function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".fera div.svelte-ajgjcf{cursor:pointer}.fera [disabled].svelte-ajgjcf{cursor:default}.fera input.svelte-ajgjcf{display:none}.fera .fera-dot:after{--tw-text-opacity:1;color:rgb(238 35 35 / var(--tw-text-opacity));content:\".\"}.fera{font-size:16px;font-family:Inter,sans-serif;color:#000}.fera .grid-row-1{grid-row:1}.fera .grid-col-1{grid-column:1}.fera *,.fera :before,.fera :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}.fera :before,.fera :after{--tw-content: \"\"}.fera{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,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\"}.fera{margin:0;line-height:inherit}.fera hr{height:0;color:inherit;border-top-width:1px}.fera abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.fera h1,.fera h2,.fera h3,.fera h4,.fera h5,.fera h6{font-size:inherit;font-weight:inherit}.fera a{color:inherit;text-decoration:inherit}.fera b,.fera strong{font-weight:bolder}.fera code,.fera kbd,.fera samp,.fera pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.fera small{font-size:80%}.fera sub,.fera sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.fera sub{bottom:-.25em}.fera sup{top:-.5em}.fera table{text-indent:0;border-color:inherit;border-collapse:collapse}.fera button,.fera input,.fera optgroup,.fera select,.fera textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.fera button,.fera select{text-transform:none}.fera button,.fera [type=button],.fera [type=reset],.fera [type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}.fera :-moz-focusring{outline:auto}.fera :-moz-ui-invalid{box-shadow:none}.fera progress{vertical-align:baseline}.fera ::-webkit-inner-spin-button,.fera ::-webkit-outer-spin-button{height:auto}.fera [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.fera ::-webkit-search-decoration{-webkit-appearance:none}.fera ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.fera summary{display:list-item}.fera blockquote,.fera dl,.fera dd,.fera h1,.fera h2,.fera h3,.fera h4,.fera h5,.fera h6,.fera hr,.fera figure,.fera p,.fera pre{margin:0}.fera fieldset{margin:0;padding:0}.fera legend{padding:0}.fera ol,.fera ul,.fera menu{list-style:none;margin:0;padding:0}.fera textarea{resize:vertical}.fera input::-moz-placeholder,.fera textarea::-moz-placeholder{opacity:1;color:#9ca3af}.fera input::placeholder,.fera textarea::placeholder{opacity:1;color:#9ca3af}.fera button,.fera [role=button]{cursor:pointer}.fera :disabled{cursor:default}.fera img,.fera svg,.fera video,.fera canvas,.fera audio,.fera iframe,.fera embed,.fera object{display:block;vertical-align:middle}.fera img,.fera video{max-width:100%;height:auto}.fera *,.fera :before,.fera :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-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: }.fera ::-webkit-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-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: }.fera ::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-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: }.fera .container{width:100%}@media (min-width: 640px){.fera .container{max-width:640px}}@media (min-width: 768px){.fera .container{max-width:768px}}@media (min-width: 1024px){.fera .container{max-width:1024px}}@media (min-width: 1280px){.fera .container{max-width:1280px}}@media (min-width: 1536px){.fera .container{max-width:1536px}}@media (min-width: 1872px){.fera .container{max-width:1872px}}.fera .static{position:static}.fera .fixed{position:fixed}.fera .absolute{position:absolute}.fera .relative{position:relative}.fera .inset-0{top:0px;right:0px;bottom:0px;left:0px}.fera .top-8{top:16px}.fera .right-8{right:16px}.fera .z-max{z-index:999999}.fera .mx-auto{margin-left:auto;margin-right:auto}.fera .mb-16{margin-bottom:32px}.fera .mb-12{margin-bottom:24px}.fera .mb-8{margin-bottom:16px}.fera .mb-2{margin-bottom:4px}.fera .mr-27{margin-right:54px}.fera .mt-12{margin-top:24px}.fera .mt-2{margin-top:4px}.fera .mr-6{margin-right:12px}.fera .mb-13{margin-bottom:26px}.fera .mb-4{margin-bottom:8px}.fera .mt-5{margin-top:10px}.fera .mb-1{margin-bottom:2px}.fera .mb-15{margin-bottom:30px}.fera .box-content{box-sizing:content-box}.fera .block{display:block}.fera .flex{display:flex}.fera .grid{display:grid}.fera .hidden{display:none}.fera .h-25{height:50px}.fera .h-27{height:54px}.fera .max-h-100{max-height:200px}.fera .min-h-screen{min-height:100vh}.fera .min-h-full{min-height:100%}.fera .w-full{width:100%}.fera .min-w-0{min-width:0px}.fera .max-w-md{max-width:28rem}.fera .flex-none{flex:none}.fera .flex-grow{flex-grow:1}.fera .-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))}.fera .translate-x-0{--tw-translate-x:0px;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))}.fera .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))}.fera .-translate-x-1\\/4{--tw-translate-x:-25%;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))}.fera .translate-x-1\\/4{--tw-translate-x:25%;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))}.fera .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))}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}.fera .animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.fera .cursor-pointer{cursor:pointer}.fera .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.fera .flex-col{flex-direction:column}.fera .place-items-center{place-items:center}.fera .items-center{align-items:center}.fera .justify-center{justify-content:center}.fera .gap-5{gap:10px}.fera .gap-7{gap:14px}.fera .gap-y-5{row-gap:10px}.fera .gap-x-42{-moz-column-gap:84px;column-gap:84px}.fera .overflow-hidden{overflow:hidden}.fera .overflow-y-auto{overflow-y:auto}.fera .overflow-x-hidden{overflow-x:hidden}.fera .text-ellipsis{text-overflow:ellipsis}.fera .whitespace-nowrap{white-space:nowrap}.fera .rounded-xl{border-radius:.625rem}.fera .rounded-2xl{border-radius:1.125rem}.fera .rounded-lg{border-radius:.5rem}.fera .border-1{border-width:1px}.fera .border-dashed{border-style:dashed}.fera .border-grayscale-400{--tw-border-opacity:1;border-color:rgb(237 237 237 / var(--tw-border-opacity))}.fera .border-grayscale-300{--tw-border-opacity:1;border-color:rgb(217 217 217 / var(--tw-border-opacity))}.fera .border-red-50{--tw-border-opacity:1;border-color:rgb(255 57 57 / var(--tw-border-opacity))}.fera .border-grayscale-350{--tw-border-opacity:1;border-color:rgb(224 224 224 / var(--tw-border-opacity))}.fera .bg-grayscale-0{--tw-bg-opacity:1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.fera .bg-white-0{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fera .bg-grayscale-400{--tw-bg-opacity:1;background-color:rgb(237 237 237 / var(--tw-bg-opacity))}.fera .bg-transparent{background-color:transparent}.fera .bg-red-100{--tw-bg-opacity:1;background-color:rgb(238 35 35 / var(--tw-bg-opacity))}.fera .bg-opacity-30{--tw-bg-opacity:.3}.fera .p-20{padding:40px}.fera .p-5{padding:10px}.fera .px-16{padding-left:32px;padding-right:32px}.fera .py-12{padding-top:24px;padding-bottom:24px}.fera .px-10{padding-left:20px;padding-right:20px}.fera .py-5{padding-top:10px;padding-bottom:10px}.fera .px-12{padding-left:24px;padding-right:24px}.fera .px-20{padding-left:40px;padding-right:40px}.fera .text-center{text-align:center}.fera .font-body{font-family:Inter}.fera .font-display{font-family:Euclid}.fera .text-\\[28px\\]{font-size:28px}.fera .text-\\[24px\\]{font-size:24px}.fera .text-p200,.fera .text-sm{font-size:14px}.fera .text-\\[11px\\]{font-size:11px}.fera .text-p100{font-size:15px}.fera .text-h100{font-size:20px}.fera .font-medium{font-weight:500}.fera .font-semibold{font-weight:600}.fera .leading-full{line-height:100%}.fera .text-grayscale-150{--tw-text-opacity:1;color:rgb(87 87 87 / var(--tw-text-opacity))}.fera .text-red-100{--tw-text-opacity:1;color:rgb(238 35 35 / var(--tw-text-opacity))}.fera .text-\\[\\#84CC16\\]{--tw-text-opacity:1;color:rgb(132 204 22 / var(--tw-text-opacity))}.fera .text-grayscale-0{--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity))}.fera .text-white-0{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.fera .line-through{-webkit-text-decoration-line:line-through;text-decoration-line:line-through}.fera .placeholder-grayscale-250::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(166 166 166 / var(--tw-placeholder-opacity))}.fera .placeholder-grayscale-250::placeholder{--tw-placeholder-opacity:1;color:rgb(166 166 166 / var(--tw-placeholder-opacity))}.fera .opacity-0{opacity:0}.fera .opacity-100{opacity:1}.fera .shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.fera .shadow-xs{--tw-shadow:0px 0px 0px 1px rgba(0, 0, 0, .05), 0px 2px 3px rgba(0, 0, 0, .05);--tw-shadow-colored:0px 0px 0px 1px var(--tw-shadow-color), 0px 2px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.fera .outline-none{outline:2px solid transparent;outline-offset:2px}.fera .ring-red-100{--tw-ring-opacity:1;--tw-ring-color:rgb(238 35 35 / var(--tw-ring-opacity))}.fera .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.fera .transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-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-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fera .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fera .duration-300{transition-duration:.3s}.fera .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@font-face{font-family:Euclid;font-style:normal;font-display:swap;font-weight:400;src:url(https://wid-feraru.vercel.app/fonts/euclid/euclidcirculara-regular.woff2) format(\"woff2\"),url(https://wid-feraru.vercel.app/fonts/euclid/euclidcirculara-regular.woff) format(\"woff\")}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(https://wid-feraru.vercel.app/fonts/inter/inter-cyrillic-400-normal.woff2) format(\"woff2\"),url(https://wid-feraru.vercel.app/fonts/inter/inter-cyrillic-400-normal.woff) format(\"woff\");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(https://wid-feraru.vercel.app/fonts/inter/inter-cyrillic-500-normal.woff2) format(\"woff2\"),url(https://wid-feraru.vercel.app/fonts/inter/inter-cyrillic-500-normal.woff) format(\"woff\");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(https://wid-feraru.vercel.app/fonts/inter/inter-latin-400-normal.woff2) format(\"woff2\"),url(https://wid-feraru.vercel.app/fonts/inter/inter-latin-400-normal.woff) format(\"woff\");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(https://wid-feraru.vercel.app/fonts/inter/inter-latin-500-normal.woff2) format(\"woff2\"),url(https://wid-feraru.vercel.app/fonts/inter/inter-latin-500-normal.woff) format(\"woff\");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.fera .hover\\:bg-grayscale-450:hover{--tw-bg-opacity:1;background-color:rgb(246 246 246 / var(--tw-bg-opacity))}.fera .hover\\:bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(255 57 57 / var(--tw-bg-opacity))}.fera .focus\\:border-red-100:focus{--tw-border-opacity:1;border-color:rgb(238 35 35 / var(--tw-border-opacity))}.fera .focus\\:shadow-none:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.fera .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.fera .focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.fera .focus-visible\\:outline:focus-visible{outline-style:solid}.fera .focus-visible\\:outline-2:focus-visible{outline-width:2px}.fera .focus-visible\\:outline-red-100:focus-visible{outline-color:#ee2323}.fera .active\\:bg-red-150:active{--tw-bg-opacity:1;background-color:rgb(224 32 32 / var(--tw-bg-opacity))}.fera .disabled\\:bg-grayscale-450:disabled{--tw-bg-opacity:1;background-color:rgb(246 246 246 / var(--tw-bg-opacity))}.fera .disabled\\:text-grayscale-250:disabled{--tw-text-opacity:1;color:rgb(166 166 166 / var(--tw-text-opacity))}@media (min-width: 640px){.fera .sm\\:grid{display:grid}}@media (min-width: 768px){.fera .md\\:mb-0{margin-bottom:0}.fera .md\\:flex{display:flex}.fera .md\\:w-\\[349px\\]{width:349px}.fera .md\\:flex-col{flex-direction:column}.fera .md\\:border-0{border-width:0px}.fera .md\\:px-0{padding-left:0;padding-right:0}.fera .md\\:py-0{padding-top:0;padding-bottom:0}}@media (min-width: 1024px){.fera .lg\\:mx-\\[55px\\]{margin-left:55px;margin-right:55px}.fera .lg\\:mb-16{margin-bottom:32px}.fera .lg\\:flex{display:flex}.fera .lg\\:w-\\[420px\\]{width:420px}.fera .lg\\:max-w-screen-lg{max-width:1024px}.fera .lg\\:border-1{border-width:1px}.fera .lg\\:border-l-1{border-left-width:1px}.fera .lg\\:px-16{padding-left:32px;padding-right:32px}.fera .lg\\:py-12{padding-top:24px;padding-bottom:24px}.fera .lg\\:pr-53{padding-right:106px}}")); elementStyle.id = "fera-widget-style"; document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();const feraWidget=function(){"use strict";function de(){}function ee(t,e){for(const n in e)t[n]=e[n];return t}function qn(t){return t()}function Un(){return Object.create(null)}function He(t){t.forEach(qn)}function wt(t){return typeof t=="function"}function ke(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Ti(t){return Object.keys(t).length===0}function on(t,...e){if(t==null)return de;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function wi(t){let e;return on(t,n=>e=n)(),e}function Ie(t,e,n){t.$$.on_destroy.push(on(e,n))}function ze(t,e,n,i){if(t){const r=Hn(t,e,n,i);return t[0](r)}}function Hn(t,e,n,i){return t[1]&&i?ee(n.ctx.slice(),t[1](i(e))):n.ctx}function Ye(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const s=[],a=Math.max(e.dirty.length,r.length);for(let u=0;u32){const e=[],n=t.ctx.length/32;for(let i=0;it.removeEventListener(e,n,i)}function pt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function cn(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function Gn(t){return function(e){e.target===this&&t.call(this,e)}}function k(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function mt(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set?t[i]=e[i]:k(t,i,e[i])}function je(t,e){for(const n in e)k(t,n,e[n])}function Si(t){return Array.from(t.childNodes)}function gt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function zn(t,e){t.value=e==null?"":e}function Yn(t,e,n){t.classList[n?"add":"remove"](e)}function Fi(t,e,{bubbles:n=!1,cancelable:i=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,i,e),r}let Ct;function St(t){Ct=t}function st(){if(!Ct)throw new Error("Function called outside component initialization");return Ct}function ut(t){st().$$.on_mount.push(t)}function Oi(t){st().$$.on_destroy.push(t)}function Wn(){const t=st();return(e,n,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[e];if(r){const s=Fi(e,n,{cancelable:i});return r.slice().forEach(a=>{a.call(t,s)}),!s.defaultPrevented}return!0}}function qt(t,e){return st().$$.context.set(t,e),e}function fn(t){return st().$$.context.get(t)}function Re(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const Ft=[],Ze=[],Ut=[],dn=[],Jn=Promise.resolve();let hn=!1;function Qn(){hn||(hn=!0,Jn.then(Kn))}function Xn(){return Qn(),Jn}function pn(t){Ut.push(t)}function Zn(t){dn.push(t)}const mn=new Set;let Ht=0;function Kn(){const t=Ct;do{for(;Ht{Gt.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}}function xi(t,e){t.d(1),e.delete(t.key)}function Ni(t,e,n,i,r,s,a,u,o,l,c,f){let d=t.length,p=s.length,v=d;const N={};for(;v--;)N[t[v].key]=v;const R=[],O=new Map,M=new Map;for(v=p;v--;){const S=f(r,s,v),_=n(S);let y=a.get(_);y?i&&y.p(S,e):(y=l(_,S),y.c()),O.set(_,R[v]=y),_ in N&&M.set(_,Math.abs(v-N[_]))}const j=new Set,P=new Set;function I(S){z(S,1),S.m(u,c),a.set(S.key,S),c=S.first,p--}for(;d&&p;){const S=R[p-1],_=t[d-1],y=S.key,E=_.key;S===_?(c=S.first,d--,p--):O.has(E)?!a.has(y)||j.has(y)?I(S):P.has(E)?d--:M.get(y)>M.get(E)?(P.add(y),I(S)):(j.add(E),d--):(o(_,a),d--)}for(;d--;){const S=t[d];O.has(S.key)||o(S,a)}for(;p;)I(R[p-1]);return R}function Me(t,e){const n={},i={},r={$$scope:1};let s=t.length;for(;s--;){const a=t[s],u=e[s];if(u){for(const o in a)o in u||(i[o]=1);for(const o in u)r[o]||(n[o]=u[o],r[o]=1);t[s]=u}else for(const o in a)r[o]=1}for(const a in i)a in n||(n[a]=void 0);return n}function zt(t){return typeof t=="object"&&t!==null?t:{}}function $n(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function me(t){t&&t.c()}function he(t,e,n,i){const{fragment:r,on_mount:s,on_destroy:a,after_update:u}=t.$$;r&&r.m(e,n),i||pn(()=>{const o=s.map(qn).filter(wt);a?a.push(...o):He(o),t.$$.on_mount=[]}),u.forEach(pn)}function pe(t,e){const n=t.$$;n.fragment!==null&&(He(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ii(t,e){t.$$.dirty[0]===-1&&(Ft.push(t),Qn(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const v=p.length?p[0]:d;return l.ctx&&r(l.ctx[f],l.ctx[f]=v)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](v),c&&Ii(t,f)),d}):[],l.update(),c=!0,He(l.before_update),l.fragment=i?i(l.ctx):!1,e.target){if(e.hydrate){const f=Si(e.target);l.fragment&&l.fragment.l(f),f.forEach(ie)}else l.fragment&&l.fragment.c();e.intro&&z(t.$$.fragment),he(t,e.target,e.anchor,e.customElement),Kn()}St(o)}class Te{$destroy(){pe(this,1),this.$destroy=de}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!Ti(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const vt=[];function Ri(t,e){return{subscribe:Le(t,e).subscribe}}function Le(t,e=de){let n;const i=new Set;function r(u){if(ke(t,u)&&(t=u,n)){const o=!vt.length;for(const l of i)l[1](),vt.push(l,t);if(o){for(let l=0;l{i.delete(l),i.size===0&&(n(),n=null)}}return{set:r,update:s,subscribe:a}}function Yt(t,e,n){const i=!Array.isArray(t),r=i?[t]:t,s=e.length<2;return Ri(n,a=>{let u=!1;const o=[];let l=0,c=de;const f=()=>{if(l)return;c();const p=e(i?o[0]:o,a);s?a(p):c=wt(p)?p:de},d=r.map((p,v)=>on(p,N=>{o[v]=N,l&=~(1<{l|=1<{var o,l;const r=(l=(o=n==null?void 0:n.attributes.getNamedItem("id"))==null?void 0:o.value)!=null?l:tr,s=t[r];if(!s||!s.q)throw new Error(`Widget didn't find LoaderObject for instance [${r}]. The loading script was either modified, no call to 'init' method was done or there is conflicting object defined in \`window.${r}\` .`);if(t[`loaded-${r}`])throw new Error(`Widget with name [${r}] was already loaded. This means you have multiple instances with same identifier (e.g. '${tr}')`);let a=!1;const u=(c,f)=>{switch(c){case"init":const d=Object.assign(e,f);d.debug&&(a=!0,console.log(`Starting widget [${r}]`,d)),d.id||console.error("Fera widget: \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 id \u0434\u043B\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u044B init."),er.set(d.id),i(),t[`loaded-${r}`]=!0;break;case"open":yt.set(!0);break;default:console.warn(`Unsupported method [${c}]`,f)}a&&console.log("received command",c,f)};for(let c=0;c{u(c,f)}};function Wt(t){return Wt=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},Wt(t)}function Fe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nr(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Li(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s=0)&&(n[r]=t[r]);return n}function xt(t,e){if(t==null)return{};var n=Li(t,e),i,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&(!Object.prototype.propertyIsEnumerable.call(t,i)||(n[i]=t[i]))}return n}function Vi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ji(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vi(t)}function Xe(t){var e=Mi();return function(){var i=Z(t),r;if(e){var s=Z(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ji(this,r)}}function rr(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Z(t),t!==null););return t}function ue(){return typeof Reflect<"u"&&Reflect.get?ue=Reflect.get:ue=function(e,n,i){var r=rr(e,n);if(!!r){var s=Object.getOwnPropertyDescriptor(r,n);return s.get?s.get.call(arguments.length<3?e:i):s.value}},ue.apply(this,arguments)}function Jt(t,e,n,i){return typeof Reflect<"u"&&Reflect.set?Jt=Reflect.set:Jt=function(s,a,u,o){var l=rr(s,a),c;if(l){if(c=Object.getOwnPropertyDescriptor(l,a),c.set)return c.set.call(o,u),!0;if(!c.writable)return!1}if(c=Object.getOwnPropertyDescriptor(o,a),c){if(!c.writable)return!1;c.value=u,Object.defineProperty(o,a,c)}else Bi(o,a,u);return!0},Jt(t,e,n,i)}function Ke(t,e,n,i,r){var s=Jt(t,e,n,i||t);if(!s&&r)throw new Error("failed to set property");return n}function $e(t,e){return qi(t)||Ui(t,e)||Hi(t,e)||Gi()}function qi(t){if(Array.isArray(t))return t}function Ui(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i=[],r=!0,s=!1,a,u;try{for(n=n.call(t);!(r=(a=n.next()).done)&&(i.push(a.value),!(e&&i.length===e));r=!0);}catch(o){s=!0,u=o}finally{try{!r&&n.return!=null&&n.return()}finally{if(s)throw u}}return i}}function Hi(t,e){if(!!t){if(typeof t=="string")return ir(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ir(t,e)}}function ir(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;Fe(this,t),this.value=e,this.from=n,this.stop=i}return Oe(t,[{key:"toString",value:function(){return this.value}},{key:"extend",value:function(n){this.value+=String(n)}},{key:"appendTo",value:function(n){return n.append(this.toString(),{tail:!0}).aggregate(n._appendPlaceholder())}},{key:"state",get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(n){Object.assign(this,n)}},{key:"unshift",value:function(n){if(!this.value.length||n!=null&&this.from>=n)return"";var i=this.value[0];return this.value=this.value.slice(1),i}},{key:"shift",value:function(){if(!this.value.length)return"";var n=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),n}}]),t}();function oe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new oe.InputMask(t,e)}var ct=function(){function t(e){Fe(this,t),this._value="",this._update(Object.assign({},t.DEFAULTS,e)),this.isInitialized=!0}return Oe(t,[{key:"updateOptions",value:function(n){!Object.keys(n).length||this.withValueRefresh(this._update.bind(this,n))}},{key:"_update",value:function(n){Object.assign(this,n)}},{key:"state",get:function(){return{_value:this.value}},set:function(n){this._value=n._value}},{key:"reset",value:function(){this._value=""}},{key:"value",get:function(){return this._value},set:function(n){this.resolve(n)}},{key:"resolve",value:function(n){return this.reset(),this.append(n,{input:!0},""),this.doCommit(),this.value}},{key:"unmaskedValue",get:function(){return this.value},set:function(n){this.reset(),this.append(n,{},""),this.doCommit()}},{key:"typedValue",get:function(){return this.doParse(this.value)},set:function(n){this.value=this.doFormat(n)}},{key:"rawInputValue",get:function(){return this.extractInput(0,this.value.length,{raw:!0})},set:function(n){this.reset(),this.append(n,{raw:!0},""),this.doCommit()}},{key:"isComplete",get:function(){return!0}},{key:"isFilled",get:function(){return this.isComplete}},{key:"nearestInputPos",value:function(n,i){return n}},{key:"extractInput",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice(n,i)}},{key:"extractTail",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return new et(this.extractInput(n,i),n)}},{key:"appendTail",value:function(n){return _t(n)&&(n=new et(String(n))),n.appendTo(this)}},{key:"_appendCharRaw",value:function(n){return n?(this._value+=n,new Ee({inserted:n,rawInserted:n})):new Ee}},{key:"_appendChar",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,s=this.state,a,u=yn(this.doPrepare(n,i)),o=$e(u,2);if(n=o[0],a=o[1],a=a.aggregate(this._appendCharRaw(n,i)),a.inserted){var l,c=this.doValidate(i)!==!1;if(c&&r!=null){var f=this.state;this.overwrite===!0&&(l=r.state,r.unshift(this.value.length));var d=this.appendTail(r);c=d.rawInserted===r.toString(),!(c&&d.inserted)&&this.overwrite==="shift"&&(this.state=f,l=r.state,r.shift(),d=this.appendTail(r),c=d.rawInserted===r.toString()),c&&d.inserted&&(this.state=f)}c||(a=new Ee,this.state=s,r&&l&&(r.state=l))}return a}},{key:"_appendPlaceholder",value:function(){return new Ee}},{key:"_appendEager",value:function(){return new Ee}},{key:"append",value:function(n,i,r){if(!_t(n))throw new Error("value should be string");var s=new Ee,a=_t(r)?new et(String(r)):r;i&&i.tail&&(i._beforeTailState=this.state);for(var u=0;u0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this._value=this.value.slice(0,n)+this.value.slice(i),new Ee}},{key:"withValueRefresh",value:function(n){if(this._refreshing||!this.isInitialized)return n();this._refreshing=!0;var i=this.rawInputValue,r=this.value,s=n();return this.rawInputValue=i,this.value&&this.value!==r&&r.indexOf(this.value)===0&&this.append(r.slice(this.value.length),{},""),delete this._refreshing,s}},{key:"runIsolated",value:function(n){if(this._isolated||!this.isInitialized)return n(this);this._isolated=!0;var i=this.state,r=n(this);return this.state=i,delete this._isolated,r}},{key:"doPrepare",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.prepare?this.prepare(n,this,i):n}},{key:"doValidate",value:function(n){return(!this.validate||this.validate(this.value,this,n))&&(!this.parent||this.parent.doValidate(n))}},{key:"doCommit",value:function(){this.commit&&this.commit(this.value,this)}},{key:"doFormat",value:function(n){return this.format?this.format(n,this):n}},{key:"doParse",value:function(n){return this.parse?this.parse(n,this):n}},{key:"splice",value:function(n,i,r,s){var a=n+i,u=this.extractTail(a),o;this.eager&&(s=zi(s),o=this.extractInput(0,a,{raw:!0}));var l=this.nearestInputPos(n,i>1&&n!==0&&!this.eager?Y.NONE:s),c=new Ee({tailShift:l-n}).aggregate(this.remove(l));if(this.eager&&s!==Y.NONE&&o===this.rawInputValue)if(s===Y.FORCE_LEFT)for(var f;o===this.rawInputValue&&(f=this.value.length);)c.aggregate(new Ee({tailShift:-1})).aggregate(this.remove(f-1));else s===Y.FORCE_RIGHT&&u.unshift();return c.aggregate(this.append(r,{input:!0},u))}},{key:"maskEquals",value:function(n){return this.mask===n}}]),t}();ct.DEFAULTS={format:function(e){return e},parse:function(e){return e}},oe.Masked=ct;function sr(t){if(t==null)throw new Error("mask property should be defined");return t instanceof RegExp?oe.MaskedRegExp:_t(t)?oe.MaskedPattern:t instanceof Date||t===Date?oe.MaskedDate:t instanceof Number||typeof t=="number"||t===Number?oe.MaskedNumber:Array.isArray(t)||t===Array?oe.MaskedDynamic:oe.Masked&&t.prototype instanceof oe.Masked?t:t instanceof oe.Masked?t.constructor:t instanceof Function?oe.MaskedFunction:(console.warn("Mask not found for mask",t),oe.Masked)}function ft(t){if(oe.Masked&&t instanceof oe.Masked)return t;t=Object.assign({},t);var e=t.mask;if(oe.Masked&&e instanceof oe.Masked)return e;var n=sr(e);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new n(t)}oe.createMask=ft;var Wi=["mask"],Ji={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},ar=function(){function t(e){Fe(this,t);var n=e.mask,i=xt(e,Wi);this.masked=ft({mask:n}),Object.assign(this,i)}return Oe(t,[{key:"reset",value:function(){this.isFilled=!1,this.masked.reset()}},{key:"remove",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return n===0&&i>=1?(this.isFilled=!1,this.masked.remove(n,i)):new Ee}},{key:"value",get:function(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}},{key:"unmaskedValue",get:function(){return this.masked.unmaskedValue}},{key:"isComplete",get:function(){return Boolean(this.masked.value)||this.isOptional}},{key:"_appendChar",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isFilled)return new Ee;var r=this.masked.state,s=this.masked._appendChar(n,i);return s.inserted&&this.doValidate(i)===!1&&(s.inserted=s.rawInserted="",this.masked.state=r),!s.inserted&&!this.isOptional&&!this.lazy&&!i.input&&(s.inserted=this.placeholderChar),s.skip=!s.inserted&&!this.isOptional,this.isFilled=Boolean(s.inserted),s}},{key:"append",value:function(){var n;return(n=this.masked).append.apply(n,arguments)}},{key:"_appendPlaceholder",value:function(){var n=new Ee;return this.isFilled||this.isOptional||(this.isFilled=!0,n.inserted=this.placeholderChar),n}},{key:"_appendEager",value:function(){return new Ee}},{key:"extractTail",value:function(){var n;return(n=this.masked).extractTail.apply(n,arguments)}},{key:"appendTail",value:function(){var n;return(n=this.masked).appendTail.apply(n,arguments)}},{key:"extractInput",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(n,i,r)}},{key:"nearestInputPos",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Y.NONE,r=0,s=this.value.length,a=Math.min(Math.max(n,r),s);switch(i){case Y.LEFT:case Y.FORCE_LEFT:return this.isComplete?a:r;case Y.RIGHT:case Y.FORCE_RIGHT:return this.isComplete?a:s;case Y.NONE:default:return a}}},{key:"doValidate",value:function(){var n,i;return(n=this.masked).doValidate.apply(n,arguments)&&(!this.parent||(i=this.parent).doValidate.apply(i,arguments))}},{key:"doCommit",value:function(){this.masked.doCommit()}},{key:"state",get:function(){return{masked:this.masked.state,isFilled:this.isFilled}},set:function(n){this.masked.state=n.masked,this.isFilled=n.isFilled}}]),t}(),ur=function(){function t(e){Fe(this,t),Object.assign(this,e),this._value="",this.isFixed=!0}return Oe(t,[{key:"value",get:function(){return this._value}},{key:"unmaskedValue",get:function(){return this.isUnmasking?this.value:""}},{key:"reset",value:function(){this._isRawInput=!1,this._value=""}},{key:"remove",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._value=this._value.slice(0,n)+this._value.slice(i),this._value||(this._isRawInput=!1),new Ee}},{key:"nearestInputPos",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Y.NONE,r=0,s=this._value.length;switch(i){case Y.LEFT:case Y.FORCE_LEFT:return r;case Y.NONE:case Y.RIGHT:case Y.FORCE_RIGHT:default:return s}}},{key:"extractInput",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return r.raw&&this._isRawInput&&this._value.slice(n,i)||""}},{key:"isComplete",get:function(){return!0}},{key:"isFilled",get:function(){return Boolean(this._value)}},{key:"_appendChar",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Ee;if(this._value)return r;var s=this.char===n,a=s&&(this.isUnmasking||i.input||i.raw)&&!this.eager&&!i.tail;return a&&(r.rawInserted=this.char),this._value=r.inserted=this.char,this._isRawInput=a&&(i.raw||i.input),r}},{key:"_appendEager",value:function(){return this._appendChar(this.char)}},{key:"_appendPlaceholder",value:function(){var n=new Ee;return this._value||(this._value=n.inserted=this.char),n}},{key:"extractTail",value:function(){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,new et("")}},{key:"appendTail",value:function(n){return _t(n)&&(n=new et(String(n))),n.appendTo(this)}},{key:"append",value:function(n,i,r){var s=this._appendChar(n[0],i);return r!=null&&(s.tailShift+=this.appendTail(r).tailShift),s}},{key:"doCommit",value:function(){}},{key:"state",get:function(){return{_value:this._value,_isRawInput:this._isRawInput}},set:function(n){Object.assign(this,n)}}]),t}(),Qi=["chunks"],or=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Fe(this,t),this.chunks=e,this.from=n}return Oe(t,[{key:"toString",value:function(){return this.chunks.map(String).join("")}},{key:"extend",value:function(n){if(!!String(n)){_t(n)&&(n=new et(String(n)));var i=this.chunks[this.chunks.length-1],r=i&&(i.stop===n.stop||n.stop==null)&&n.from===i.from+i.toString().length;if(n instanceof et)r?i.extend(n.toString()):this.chunks.push(n);else if(n instanceof t){if(n.stop==null)for(var s;n.chunks.length&&n.chunks[0].stop==null;)s=n.chunks.shift(),s.from+=n.from,this.extend(s);n.toString()&&(n.stop=n.blockIndex,this.chunks.push(n))}}}},{key:"appendTo",value:function(n){if(!(n instanceof oe.MaskedPattern)){var i=new et(this.toString());return i.appendTo(n)}for(var r=new Ee,s=0;s=0)&&r.aggregate(n._appendPlaceholder(o)),l=a instanceof t&&n._blocks[o]),l){var c=l.appendTail(a);c.skip=!1,r.aggregate(c),n._value+=c.inserted;var f=a.toString().slice(c.rawInserted.length);f&&r.aggregate(n.append(f,{tail:!0}))}else r.aggregate(n.append(a.toString(),{tail:!0}))}return r}},{key:"state",get:function(){return{chunks:this.chunks.map(function(n){return n.state}),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(n){var i=n.chunks,r=xt(n,Qi);Object.assign(this,r),this.chunks=i.map(function(s){var a="chunks"in s?new t:new et;return a.state=s,a})}},{key:"unshift",value:function(n){if(!this.chunks.length||n!=null&&this.from>=n)return"";for(var i=n!=null?n-this.from:n,r=0;r=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}},{key:"_pushLeft",value:function(n){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((i=this.block)===null||i===void 0?void 0:i.value.length)||0){var i;if(n())return this.ok=!0}return this.ok=!1}},{key:"_pushRight",value:function(n){for(this.pushState(),this.bindBlock();this.index=0}),ue(Z(n.prototype),"_update",this).call(this,r)}}]),n}(ct);oe.MaskedRegExp=Zi;var Ki=["_blocks"],tt=function(t){Qe(n,t);var e=Xe(n);function n(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Fe(this,n),i.definitions=Object.assign({},Ji,i.definitions),e.call(this,Object.assign({},n.DEFAULTS,i))}return Oe(n,[{key:"_update",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.definitions=Object.assign({},this.definitions,r.definitions),ue(Z(n.prototype),"_update",this).call(this,r),this._rebuildMask()}},{key:"_rebuildMask",value:function(){var r=this,s=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};var a=this.mask;if(!(!a||!s))for(var u=!1,o=!1,l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=this._mapPosToBlock(this.value.length),u=new Ee;if(!a)return u;for(var o=a.index;;++o){var l,c=this._blocks[o];if(!c)break;var f=c._appendChar(r,Object.assign({},s,{_beforeTailState:(l=s._beforeTailState)===null||l===void 0?void 0:l._blocks[o]})),d=f.skip;if(u.aggregate(f),d||f.rawInserted)break}return u}},{key:"extractTail",value:function(){var r=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,u=new or;return s===a||this._forEachBlocksInRange(s,a,function(o,l,c,f){var d=o.extractTail(c,f);d.stop=r._findStopBefore(l),d.from=r._blockStartPos(l),d instanceof or&&(d.blockIndex=l),u.extend(d)}),u}},{key:"extractInput",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r===s)return"";var u="";return this._forEachBlocksInRange(r,s,function(o,l,c,f){u+=o.extractInput(c,f,a)}),u}},{key:"_findStopBefore",value:function(r){for(var s,a=0;a1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2?arguments[2]:void 0,u=this._mapPosToBlock(r);if(u){var o=this._mapPosToBlock(s),l=o&&u.index===o.index,c=u.offset,f=o&&l?o.offset:this._blocks[u.index].value.length;if(a(this._blocks[u.index],u.index,c,f),o&&!l){for(var d=u.index+1;d0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=ue(Z(n.prototype),"remove",this).call(this,r,s);return this._forEachBlocksInRange(r,s,function(u,o,l,c){a.aggregate(u.remove(l,c))}),a}},{key:"nearestInputPos",value:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Y.NONE;if(!this._blocks.length)return 0;var a=new Xi(this,r);if(s===Y.NONE)return a.pushRightBeforeInput()||(a.popState(),a.pushLeftBeforeInput())?a.pos:this.value.length;if(s===Y.LEFT||s===Y.FORCE_LEFT){if(s===Y.LEFT){if(a.pushRightBeforeFilled(),a.ok&&a.pos===r)return r;a.popState()}if(a.pushLeftBeforeInput(),a.pushLeftBeforeRequired(),a.pushLeftBeforeFilled(),s===Y.LEFT){if(a.pushRightBeforeInput(),a.pushRightBeforeRequired(),a.ok&&a.pos<=r||(a.popState(),a.ok&&a.pos<=r))return a.pos;a.popState()}return a.ok?a.pos:s===Y.FORCE_LEFT?0:(a.popState(),a.ok||(a.popState(),a.ok)?a.pos:0)}return s===Y.RIGHT||s===Y.FORCE_RIGHT?(a.pushRightBeforeInput(),a.pushRightBeforeRequired(),a.pushRightBeforeFilled()?a.pos:s===Y.FORCE_RIGHT?this.value.length:(a.popState(),a.ok||(a.popState(),a.ok)?a.pos:this.nearestInputPos(r,Y.LEFT))):r}},{key:"maskedBlock",value:function(r){return this.maskedBlocks(r)[0]}},{key:"maskedBlocks",value:function(r){var s=this,a=this._maskedBlocks[r];return a?a.map(function(u){return s._blocks[u]}):[]}}]),n}(ct);tt.DEFAULTS={lazy:!0,placeholderChar:"_"},tt.STOP_CHAR="`",tt.ESCAPE_CHAR="\\",tt.InputDefinition=ar,tt.FixedDefinition=ur,oe.MaskedPattern=tt;var Qt=function(t){Qe(n,t);var e=Xe(n);function n(){return Fe(this,n),e.apply(this,arguments)}return Oe(n,[{key:"_matchFrom",get:function(){return this.maxLength-String(this.from).length}},{key:"_update",value:function(r){r=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},r);var s=String(r.to).length;r.maxLength!=null&&(s=Math.max(s,r.maxLength)),r.maxLength=s;for(var a=String(r.from).padStart(s,"0"),u=String(r.to).padStart(s,"0"),o=0;o1&&arguments[1]!==void 0?arguments[1]:{},a,u=yn(ue(Z(n.prototype),"doPrepare",this).call(this,r.replace(/\D/g,""),s)),o=$e(u,2);if(r=o[0],a=o[1],!this.autofix||!r)return r;var l=String(this.from).padStart(this.maxLength,"0"),c=String(this.to).padStart(this.maxLength,"0"),f=this.value+r;if(f.length>this.maxLength)return"";var d=this.boundaries(f),p=$e(d,2),v=p[0],N=p[1];return Number(N)this.to?this.autofix==="pad"&&f.length=0}},{key:"date",get:function(){return this.typedValue},set:function(r){this.typedValue=r}},{key:"typedValue",get:function(){return this.isComplete?ue(Z(n.prototype),"typedValue",this):null},set:function(r){Ke(Z(n.prototype),"typedValue",r,this,!0)}},{key:"maskEquals",value:function(r){return r===Date||ue(Z(n.prototype),"maskEquals",this).call(this,r)}}]),n}(tt);kn.DEFAULTS={pattern:"d{.}`m{.}`Y",format:function(e){if(!e)return"";var n=String(e.getDate()).padStart(2,"0"),i=String(e.getMonth()+1).padStart(2,"0"),r=e.getFullYear();return[n,i,r].join(".")},parse:function(e){var n=e.split("."),i=$e(n,3),r=i[0],s=i[1],a=i[2];return new Date(a,s-1,r)}},kn.GET_DEFAULT_BLOCKS=function(){return{d:{mask:Qt,from:1,to:31,maxLength:2},m:{mask:Qt,from:1,to:12,maxLength:2},Y:{mask:Qt,from:1900,to:9999}}},oe.MaskedDate=kn;var En=function(){function t(){Fe(this,t)}return Oe(t,[{key:"selectionStart",get:function(){var n;try{n=this._unsafeSelectionStart}catch{}return n!=null?n:this.value.length}},{key:"selectionEnd",get:function(){var n;try{n=this._unsafeSelectionEnd}catch{}return n!=null?n:this.value.length}},{key:"select",value:function(n,i){if(!(n==null||i==null||n===this.selectionStart&&i===this.selectionEnd))try{this._unsafeSelect(n,i)}catch{}}},{key:"_unsafeSelect",value:function(n,i){}},{key:"isActive",get:function(){return!1}},{key:"bindEvents",value:function(n){}},{key:"unbindEvents",value:function(){}}]),t}();oe.MaskElement=En;var Xt=function(t){Qe(n,t);var e=Xe(n);function n(i){var r;return Fe(this,n),r=e.call(this),r.input=i,r._handlers={},r}return Oe(n,[{key:"rootElement",get:function(){var r,s,a;return(r=(s=(a=this.input).getRootNode)===null||s===void 0?void 0:s.call(a))!==null&&r!==void 0?r:document}},{key:"isActive",get:function(){return this.input===this.rootElement.activeElement}},{key:"_unsafeSelectionStart",get:function(){return this.input.selectionStart}},{key:"_unsafeSelectionEnd",get:function(){return this.input.selectionEnd}},{key:"_unsafeSelect",value:function(r,s){this.input.setSelectionRange(r,s)}},{key:"value",get:function(){return this.input.value},set:function(r){this.input.value=r}},{key:"bindEvents",value:function(r){var s=this;Object.keys(r).forEach(function(a){return s._toggleEventHandler(n.EVENTS_MAP[a],r[a])})}},{key:"unbindEvents",value:function(){var r=this;Object.keys(this._handlers).forEach(function(s){return r._toggleEventHandler(s)})}},{key:"_toggleEventHandler",value:function(r,s){this._handlers[r]&&(this.input.removeEventListener(r,this._handlers[r]),delete this._handlers[r]),s&&(this.input.addEventListener(r,s),this._handlers[r]=s)}}]),n}(En);Xt.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},oe.HTMLMaskElement=Xt;var lr=function(t){Qe(n,t);var e=Xe(n);function n(){return Fe(this,n),e.apply(this,arguments)}return Oe(n,[{key:"_unsafeSelectionStart",get:function(){var r=this.rootElement,s=r.getSelection&&r.getSelection(),a=s&&s.anchorOffset,u=s&&s.focusOffset;return u==null||a==null||au?a:u}},{key:"_unsafeSelect",value:function(r,s){if(!!this.rootElement.createRange){var a=this.rootElement.createRange();a.setStart(this.input.firstChild||this.input,r),a.setEnd(this.input.lastChild||this.input,s);var u=this.rootElement,o=u.getSelection&&u.getSelection();o&&(o.removeAllRanges(),o.addRange(a))}}},{key:"value",get:function(){return this.input.textContent},set:function(r){this.input.textContent=r}}]),n}(Xt);oe.HTMLContenteditableMaskElement=lr;var $i=["mask"],es=function(){function t(e,n){Fe(this,t),this.el=e instanceof En?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new lr(e):new Xt(e),this.masked=ft(n),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}return Oe(t,[{key:"mask",get:function(){return this.masked.mask},set:function(n){if(!this.maskEquals(n)){if(!(n instanceof oe.Masked)&&this.masked.constructor===sr(n)){this.masked.updateOptions({mask:n});return}var i=ft({mask:n});i.unmaskedValue=this.masked.unmaskedValue,this.masked=i}}},{key:"maskEquals",value:function(n){var i;return n==null||((i=this.masked)===null||i===void 0?void 0:i.maskEquals(n))}},{key:"value",get:function(){return this._value},set:function(n){this.masked.value=n,this.updateControl(),this.alignCursor()}},{key:"unmaskedValue",get:function(){return this._unmaskedValue},set:function(n){this.masked.unmaskedValue=n,this.updateControl(),this.alignCursor()}},{key:"typedValue",get:function(){return this.masked.typedValue},set:function(n){this.masked.typedValue=n,this.updateControl(),this.alignCursor()}},{key:"_bindEvents",value:function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}},{key:"_unbindEvents",value:function(){this.el&&this.el.unbindEvents()}},{key:"_fireEvent",value:function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s=0&&this._listeners[n].splice(r,1),this}},{key:"_onInput",value:function(n){if(this._inputEvent=n,this._abortUpdateCursor(),!this._selection)return this.updateValue();var i=new Yi(this.el.value,this.cursorPos,this.value,this._selection),r=this.masked.rawInputValue,s=this.masked.splice(i.startChangePos,i.removed.length,i.inserted,i.removeDirection).offset,a=r===this.masked.rawInputValue?i.removeDirection:Y.NONE,u=this.masked.nearestInputPos(i.startChangePos+s,a);a!==Y.NONE&&(u=this.masked.nearestInputPos(u,Y.NONE)),this.updateControl(),this.updateCursor(u),delete this._inputEvent}},{key:"_onChange",value:function(){this.value!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}},{key:"_onDrop",value:function(n){n.preventDefault(),n.stopPropagation()}},{key:"_onFocus",value:function(n){this.alignCursorFriendly()}},{key:"_onClick",value:function(n){this.alignCursorFriendly()}},{key:"destroy",value:function(){this._unbindEvents(),this._listeners.length=0,delete this.el}}]),t}();oe.InputMask=es;var ts=function(t){Qe(n,t);var e=Xe(n);function n(){return Fe(this,n),e.apply(this,arguments)}return Oe(n,[{key:"_update",value:function(r){r.enum&&(r.mask="*".repeat(r.enum[0].length)),ue(Z(n.prototype),"_update",this).call(this,r)}},{key:"doValidate",value:function(){for(var r=this,s,a=arguments.length,u=new Array(a),o=0;o=0})&&(s=ue(Z(n.prototype),"doValidate",this)).call.apply(s,[this].concat(u))}}]),n}(tt);oe.MaskedEnum=ts;var cr=function(t){Qe(n,t);var e=Xe(n);function n(i){return Fe(this,n),e.call(this,Object.assign({},n.DEFAULTS,i))}return Oe(n,[{key:"_update",value:function(r){ue(Z(n.prototype),"_update",this).call(this,r),this._updateRegExps()}},{key:"_updateRegExps",value:function(){var r="^"+(this.allowNegative?"[+|\\-]?":""),s="(0|([1-9]+\\d*))?",a="\\d*",u=(this.scale?"("+vn(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExpInput=new RegExp(r+s+u),this._numberRegExp=new RegExp(r+a+u),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(vn).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(vn(this.thousandsSeparator),"g")}},{key:"_removeThousandsSeparators",value:function(r){return r.replace(this._thousandsSeparatorRegExp,"")}},{key:"_insertThousandsSeparators",value:function(r){var s=r.split(this.radix);return s[0]=s[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),s.join(this.radix)}},{key:"doPrepare",value:function(r){var s;r=r.replace(this._mapToRadixRegExp,this.radix);for(var a=this._removeThousandsSeparators(r),u=arguments.length,o=new Array(u>1?u-1:0),l=1;l1&&arguments[1]!==void 0?arguments[1]:!1,a=0,u=0;u0&&arguments[0]!==void 0?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(r).length,!0)}},{key:"extractInput",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2?arguments[2]:void 0,u=this._adjustRangeWithSeparators(r,s),o=$e(u,2);return r=o[0],s=o[1],this._removeThousandsSeparators(ue(Z(n.prototype),"extractInput",this).call(this,r,s,a))}},{key:"_appendCharRaw",value:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.thousandsSeparator)return ue(Z(n.prototype),"_appendCharRaw",this).call(this,r,s);var a=s.tail&&s._beforeTailState?s._beforeTailState._value:this._value,u=this._separatorsCountFromSlice(a);this._value=this._removeThousandsSeparators(this.value);var o=ue(Z(n.prototype),"_appendCharRaw",this).call(this,r,s);this._value=this._insertThousandsSeparators(this._value);var l=s.tail&&s._beforeTailState?s._beforeTailState._value:this._value,c=this._separatorsCountFromSlice(l);return o.tailShift+=(c-u)*this.thousandsSeparator.length,o.skip=!o.rawInserted&&r===this.thousandsSeparator,o}},{key:"_findSeparatorAround",value:function(r){if(this.thousandsSeparator){var s=r-this.thousandsSeparator.length+1,a=this.value.indexOf(this.thousandsSeparator,s);if(a<=r)return a}return-1}},{key:"_adjustRangeWithSeparators",value:function(r,s){var a=this._findSeparatorAround(r);a>=0&&(r=a);var u=this._findSeparatorAround(s);return u>=0&&(s=u+this.thousandsSeparator.length),[r,s]}},{key:"remove",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=this._adjustRangeWithSeparators(r,s),u=$e(a,2);r=u[0],s=u[1];var o=this.value.slice(0,r),l=this.value.slice(s),c=this._separatorsCount(o.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(o+l));var f=this._separatorsCountFromSlice(o);return new Ee({tailShift:(f-c)*this.thousandsSeparator.length})}},{key:"nearestInputPos",value:function(r,s){if(!this.thousandsSeparator)return r;switch(s){case Y.NONE:case Y.LEFT:case Y.FORCE_LEFT:{var a=this._findSeparatorAround(r-1);if(a>=0){var u=a+this.thousandsSeparator.length;if(r=0)return o+this.thousandsSeparator.length}}return r}},{key:"doValidate",value:function(r){var s=r.input?this._numberRegExpInput:this._numberRegExp,a=s.test(this._removeThousandsSeparators(this.value));if(a){var u=this.number;a=a&&!isNaN(u)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return a&&ue(Z(n.prototype),"doValidate",this).call(this,r)}},{key:"doCommit",value:function(){if(this.value){var r=this.number,s=r;this.min!=null&&(s=Math.max(s,this.min)),this.max!=null&&(s=Math.min(s,this.max)),s!==r&&(this.unmaskedValue=String(s));var a=this.value;this.normalizeZeros&&(a=this._normalizeZeros(a)),this.padFractionalZeros&&this.scale>0&&(a=this._padFractionalZeros(a)),this._value=a}ue(Z(n.prototype),"doCommit",this).call(this)}},{key:"_normalizeZeros",value:function(r){var s=this._removeThousandsSeparators(r).split(this.radix);return s[0]=s[0].replace(/^(\D*)(0*)(\d*)/,function(a,u,o,l){return u+l}),r.length&&!/\d$/.test(s[0])&&(s[0]=s[0]+"0"),s.length>1&&(s[1]=s[1].replace(/0*$/,""),s[1].length||(s.length=1)),this._insertThousandsSeparators(s.join(this.radix))}},{key:"_padFractionalZeros",value:function(r){if(!r)return r;var s=r.split(this.radix);return s.length<2&&s.push(""),s[1]=s[1].padEnd(this.scale,"0"),s.join(this.radix)}},{key:"unmaskedValue",get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,".")},set:function(r){Ke(Z(n.prototype),"unmaskedValue",r.replace(".",this.radix),this,!0)}},{key:"typedValue",get:function(){return Number(this.unmaskedValue)},set:function(r){Ke(Z(n.prototype),"unmaskedValue",String(r),this,!0)}},{key:"number",get:function(){return this.typedValue},set:function(r){this.typedValue=r}},{key:"allowNegative",get:function(){return this.signed||this.min!=null&&this.min<0||this.max!=null&&this.max<0}}]),n}(ct);cr.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:["."],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1},oe.MaskedNumber=cr;var ns=function(t){Qe(n,t);var e=Xe(n);function n(){return Fe(this,n),e.apply(this,arguments)}return Oe(n,[{key:"_update",value:function(r){r.mask&&(r.validate=r.mask),ue(Z(n.prototype),"_update",this).call(this,r)}}]),n}(ct);oe.MaskedFunction=ns;var rs=["compiledMasks","currentMaskRef","currentMask"],fr=function(t){Qe(n,t);var e=Xe(n);function n(i){var r;return Fe(this,n),r=e.call(this,Object.assign({},n.DEFAULTS,i)),r.currentMask=null,r}return Oe(n,[{key:"_update",value:function(r){ue(Z(n.prototype),"_update",this).call(this,r),"mask"in r&&(this.compiledMasks=Array.isArray(r.mask)?r.mask.map(function(s){return ft(s)}):[])}},{key:"_appendCharRaw",value:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this._applyDispatch(r,s);return this.currentMask&&a.aggregate(this.currentMask._appendChar(r,s)),a}},{key:"_applyDispatch",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=s.tail&&s._beforeTailState!=null?s._beforeTailState._value:this.value,u=this.rawInputValue,o=s.tail&&s._beforeTailState!=null?s._beforeTailState._rawInputValue:u,l=u.slice(o.length),c=this.currentMask,f=new Ee,d=c&&c.state;if(this.currentMask=this.doDispatch(r,Object.assign({},s)),this.currentMask)if(this.currentMask!==c){if(this.currentMask.reset(),o){var p=this.currentMask.append(o,{raw:!0});f.tailShift=p.inserted.length-a.length}l&&(f.tailShift+=this.currentMask.append(l,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=d;return f}},{key:"_appendPlaceholder",value:function(){var r=this._applyDispatch.apply(this,arguments);return this.currentMask&&r.aggregate(this.currentMask._appendPlaceholder()),r}},{key:"_appendEager",value:function(){var r=this._applyDispatch.apply(this,arguments);return this.currentMask&&r.aggregate(this.currentMask._appendEager()),r}},{key:"doDispatch",value:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.dispatch(r,this,s)}},{key:"doValidate",value:function(){for(var r,s,a=arguments.length,u=new Array(a),o=0;o1&&arguments[1]!==void 0?arguments[1]:bn.MASKED,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bn.MASKED,i=ft(t);return function(r){return i.runIsolated(function(s){return s[e]=r,s[n]})}}function is(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;ihr(t,"accept",n)),n.on("complete",()=>hr(t,"complete",n))}return r(e),{update:r,destroy:i}}function as(t){let e,n,i,r,s=[t[0]],a={};for(let u=0;u{O.typedValue=s})}function u(O){Re.call(this,t,O)}function o(O){Re.call(this,t,O)}function l(O){Re.call(this,t,O)}function c(O){Re.call(this,t,O)}function f(O){Re.call(this,t,O)}function d(O){Re.call(this,t,O)}function p(O){Re.call(this,t,O)}function v(O){Re.call(this,t,O)}function N(O){Re.call(this,t,O)}function R(O){Re.call(this,t,O)}return t.$$set=O=>{n(14,e=ee(ee({},e),Ce(O))),"value"in O&&n(3,s=O.value)},t.$$.update=()=>{n(1,{options:i,...r}=e,i,(n(0,r),n(14,e)))},e=Ce(e),[r,i,a,s,u,o,l,c,f,d,p,v,N,R]}class os extends Te{constructor(e){super(),Ae(this,e,us,as,ke,{value:3})}}var pr=Object.prototype.hasOwnProperty;function An(t,e){var n,i;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((i=t.length)===e.length)for(;i--&&An(t[i],e[i]););return i===-1}if(!n||typeof t=="object"){i=0;for(n in t)if(pr.call(t,n)&&++i&&!pr.call(e,n)||!(n in e)||!An(t[n],e[n]))return!1;return Object.keys(e).length===i}}return t!==t&&e!==e}function ls(t){return new Promise(e=>{t.subscribe(e)()})}function cs(t,e,n){t.update(i=>(vr(i,e,n),i))}function fs(t){return JSON.parse(JSON.stringify(t))}function Tn(t){return t==null}function mr(t){return Tn(t)||Object.keys(t).length<=0}function gr(t){let e=[];for(const[,n]of Object.entries(t)){const i=typeof n=="object"?gr(n):[n];e=[...e,...i]}return e}function wn(t,e,n={}){for(const i in e)switch(!0){case(e[i].type==="object"&&!mr(e[i].fields)):{n[i]=wn(t[i],e[i].fields,{...n[i]});break}case e[i].type==="array":{const r=t&&t[i]?t[i]:[];n[i]=r.map(s=>{const a=wn(s,e[i].innerType.fields,{...n[i]});return Object.keys(a).length>0?a:""});break}default:n[i]=""}return n}const ds=An;function Cn(t,e){if(Array.isArray(t))return t.map(i=>Cn(i,e));const n={};for(const i in t)n[i]=typeof t[i]=="object"&&!Tn(t[i])?Cn(t[i],e):e;return n}function vr(t,e,n){if(new Object(t)!==t)return t;Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]);const i=e.slice(0,-1).reduce((r,s,a)=>new Object(r[s])===r[s]?r[s]:r[s]=Math.trunc(Math.abs(e[a+1]))===+e[a+1]?[]:{},t);return i[e[e.length-1]]=n,t}const xe={assignDeep:Cn,cloneDeep:fs,deepEqual:ds,getErrorsFromSchema:wn,getValues:gr,isEmpty:mr,isNullish:Tn,set:vr,subscribeOnce:ls,update:cs},yr="",hs=!0;function ps(t){return t.getAttribute&&t.getAttribute("type")==="checkbox"}function ms(t){return t.getAttribute&&t.getAttribute("type")==="file"}function gs(t){return ms(t)?t.files:ps(t)?t.checked:t.value}const vs=t=>{let e=t.initialValues||{};const n=t.validationSchema,i=t.validate,r=t.onSubmit,s={values:()=>xe.cloneDeep(e),errors:()=>n?xe.getErrorsFromSchema(e,n.fields):xe.assignDeep(e,yr),touched:()=>xe.assignDeep(e,!hs)},a=Le(s.values()),u=Le(s.errors()),o=Le(s.touched()),l=Le(!1),c=Le(!1),f=Yt(u,y=>xe.getValues(y).every(A=>A===yr)),d=Yt(a,y=>{const E=xe.assignDeep(y,!1);for(let A in y)E[A]=!xe.deepEqual(y[A],e[A]);return E}),p=Yt(d,y=>xe.getValues(y).includes(!0));function v(y){return xe.subscribeOnce(a).then(E=>N(y,E[y]))}function N(y,E){return S(y,!0),n?(c.set(!0),n.validateAt(y,wi(a)).then(()=>xe.update(u,y,"")).catch(A=>xe.update(u,y,A.message)).finally(()=>{c.set(!1)})):i?(c.set(!0),Promise.resolve().then(()=>i({[y]:E})).then(A=>xe.update(u,y,xe.isNullish(A)?"":A[y])).finally(()=>{c.set(!1)})):Promise.resolve()}function R(y,E){return I(y,E),N(y,E)}function O(y){const E=y.target,A=E.name||E.id,q=gs(E);return R(A,q)}function M(y){return y&&y.preventDefault&&y.preventDefault(),l.set(!0),xe.subscribeOnce(a).then(E=>typeof i=="function"?(c.set(!0),Promise.resolve().then(()=>i(E)).then(A=>{if(xe.isNullish(A)||xe.getValues(A).length===0)return P(E);u.set(A),l.set(!1)}).finally(()=>c.set(!1))):n?(c.set(!0),n.validate(E,{abortEarly:!1}).then(()=>P(E)).catch(A=>{if(A&&A.inner){const q=s.errors();A.inner.map($=>xe.set(q,$.path,$.message)),u.set(q)}l.set(!1)}).finally(()=>c.set(!1))):P(E))}function j(){a.set(s.values()),u.set(s.errors()),o.set(s.touched())}function P(y){return Promise.resolve().then(()=>u.set(s.errors())).then(()=>r(y,a,u)).finally(()=>l.set(!1))}function I(y,E){xe.update(a,y,E)}function S(y,E){xe.update(o,y,E)}function _(y){e=y,j()}return{form:a,errors:u,touched:o,modified:d,isValid:f,isSubmitting:l,isValidating:c,isModified:p,handleChange:O,handleSubmit:M,handleReset:j,updateField:I,updateValidateField:R,updateTouched:S,validateField:v,updateInitialValues:_,state:Yt([a,u,o,d,f,c,l,p],([y,E,A,q,$,J,h,w])=>({form:y,errors:E,touched:A,modified:q,isValid:$,isSubmitting:h,isValidating:J,isModified:w}))}};var dt;(function(t){t[t.Open=0]="Open",t[t.Closed=1]="Closed"})(dt||(dt={}));const _r="headlessui-open-closed-context";function ys(){return fn(_r)}function _s(t){qt(_r,t)}function Nt(t,e,...n){if(t in e){let r=e[t];return typeof r=="function"?r(...n):r}let i=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Nt),i}let ks=0;function Es(){return++ks}function bs(){return Es()}var kr;(function(t){t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab"})(kr||(kr={}));var Er;(function(t){t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll"})(Er||(Er={}));var br;(function(t){t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow"})(br||(br={}));var Ar;(function(t){t[t.Previous=-1]="Previous",t[t.Next=1]="Next"})(Ar||(Ar={}));var Tr;(function(t){t[t.Strict=0]="Strict",t[t.Loose=1]="Loose"})(Tr||(Tr={}));var wr;(function(t){t[t.Add=0]="Add",t[t.Remove=1]="Remove"})(wr||(wr={}));const Sn="!",As=new RegExp(`^[^${Sn}]+(?:${Sn}(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$`);function Fn(t,e=[]){let n,i=[];t.$on=(s,a)=>{let u=s,o=()=>{};for(let l of e){if(typeof l=="string"&&l===u){const c=t.$$.callbacks[u]||(t.$$.callbacks[u]=[]);return c.push(a),()=>{const f=c.indexOf(a);f!==-1&&c.splice(f,1)}}if(typeof l=="object"&&l.name===u){let c=a;a=(...f)=>{typeof l=="object"&&l.shouldExclude()||c(...f)}}}return n?o=n(u,a):i.push([u,a]),()=>{o()}};function r(s){Re(t,s)}return s=>{const a=[],u={};n=(o,l)=>{let c=o,f=l,d=!1;if(c.match(As)){const R=c.split(Sn);c=R[0];const O=Object.fromEntries(R.slice(1).map(M=>[M,!0]));O.passive&&(d=d||{},d.passive=!0),O.nonpassive&&(d=d||{},d.passive=!1),O.capture&&(d=d||{},d.capture=!0),O.once&&(d=d||{},d.once=!0),O.preventDefault&&(f=pt(f)),O.stopPropagation&&(f=cn(f))}const v=ne(s,c,f,d),N=()=>{v();const R=a.indexOf(N);R>-1&&a.splice(R,1)};return a.push(N),c in u||(u[c]=ne(s,c,r)),N};for(let o=0;o{for(let o=0;o1?n.push(s(t,r[1])):n.push(s(t))}return{update(i){if((i&&i.length||0)!=n.length)throw new Error("You must not change the length of an actions array.");if(i)for(let r=0;r1?s.update(a[1]):s.update()}}},destroy(){for(let i=0;i{i=null}),Dt())},i(r){n||(z(i),n=!0)},o(r){Q(i),n=!1},d(r){i&&i.d(r),r&&ie(e)}}}var rt;(function(t){t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden"})(rt||(rt={}));function Cs(t,e,n){let i,r,s,a,u;const o=["name","as","slotProps","el","use","visible","features","unmount","static","class","style"];let l=Ve(e,o),{$$slots:c={},$$scope:f}=e;const d=Fn(st());let{name:p}=e,{as:v}=e,{slotProps:N}=e,{el:R=null}=e,{use:O=[]}=e,{visible:M=!0}=e,{features:j=nt.None}=e,{unmount:P=!0}=e,{static:I=!1}=e,{class:S=void 0}=e,{style:_=void 0}=e;if(!v)throw new Error(`<${p}> did not provide an \`as\` value to `);if(v!=="div")throw new Error(`<${p}> has an invalid or unsupported \`as\` prop: ${v}`);function y(E){Ze[E?"unshift":"push"](()=>{R=E,n(0,R)})}return t.$$set=E=>{e=ee(ee({},e),Ce(E)),n(6,l=Ve(e,o)),"name"in E&&n(7,p=E.name),"as"in E&&n(8,v=E.as),"slotProps"in E&&n(9,N=E.slotProps),"el"in E&&n(0,R=E.el),"use"in E&&n(1,O=E.use),"visible"in E&&n(10,M=E.visible),"features"in E&&n(11,j=E.features),"unmount"in E&&n(12,P=E.unmount),"static"in E&&n(13,I=E.static),"class"in E&&n(14,S=E.class),"style"in E&&n(15,_=E.style),"$$scope"in E&&n(18,f=E.$$scope)},t.$$.update=()=>{t.$$.dirty&16896&&n(17,i=typeof S=="function"?S(N):S),t.$$.dirty&33280&&n(16,r=typeof _=="function"?_(N):_),t.$$.dirty&15360&&n(4,s=M||j&nt.Static&&I||!(j&nt.RenderStrategy&&P)),t.$$.dirty&15360&&n(3,a=!M&&!(j&nt.Static&&I)&&j&nt.RenderStrategy&&!P),t.$$.dirty&196616&&n(2,u={class:i,style:`${r!=null?r:""}${a?" display: none":""}`||void 0}),t.$$.dirty&4&&u.style===void 0&&delete u.style},[R,O,u,a,s,d,l,p,v,N,M,j,P,I,S,_,r,i,f,c,y]}class Ss extends Te{constructor(e){super(),Ae(this,e,Cs,ws,ke,{name:7,as:8,slotProps:9,el:0,use:1,visible:10,features:11,unmount:12,static:13,class:14,style:15})}}var Sr;(function(t){t[t.Open=0]="Open",t[t.Closed=1]="Closed"})(Sr||(Sr={}));var Fr;(function(t){t[t.Open=0]="Open",t[t.Closed=1]="Closed"})(Fr||(Fr={}));var Or;(function(t){t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing"})(Or||(Or={}));var Dr;(function(t){t[t.Open=0]="Open",t[t.Closed=1]="Closed"})(Dr||(Dr={}));var xr;(function(t){t[t.Open=0]="Open",t[t.Closed=1]="Closed"})(xr||(xr={}));var Nr;(function(t){t[t.Open=0]="Open",t[t.Closed=1]="Closed"})(Nr||(Nr={}));function Fs(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function Ir(){let t=[],e={requestAnimationFrame(...n){let i=requestAnimationFrame(...n);e.add(()=>cancelAnimationFrame(i))},nextFrame(...n){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...n)})},setTimeout(...n){let i=setTimeout(...n);e.add(()=>clearTimeout(i))},add(n){t.push(n)},dispose(){for(let n of t.splice(0))n()}};return e}function On(t,...e){t&&e.length>0&&t.classList.add(...e)}function Zt(t,...e){t&&e.length>0&&t.classList.remove(...e)}var at;(function(t){t.Finished="finished",t.Cancelled="cancelled"})(at||(at={}));function Os(t,e){let n=Ir();if(!t)return n.dispose;let{transitionDuration:i,transitionDelay:r}=getComputedStyle(t),[s,a]=[i,r].map(u=>{let[o=0]=u.split(",").filter(Boolean).map(l=>l.includes("ms")?parseFloat(l):parseFloat(l)*1e3).sort((l,c)=>c-l);return o});return s!==0?n.setTimeout(()=>{e(at.Finished)},s+a):e(at.Finished),n.add(()=>e(at.Cancelled)),n.dispose}function Rr(t,e,n,i,r,s){let a=Ir(),u=s!==void 0?Fs(s):()=>{};return Zt(t,...r),On(t,...e,...n),a.nextFrame(()=>{Zt(t,...n),On(t,...i),a.add(Os(t,o=>(Zt(t,...i,...e),On(t,...r),u(o))))}),a.add(()=>Zt(t,...e,...n,...i)),a.add(()=>u(at.Cancelled)),a.dispose}var ve;(function(t){t.Visible="visible",t.Hidden="hidden"})(ve||(ve={}));const Pr="headlessui-transition-context",Dn="headlessui-nesting-context";function Ds(){let t=fn(Pr);if(t===void 0)throw new Error("A is used but it is missing a parent .");return t}function xs(){let t=fn(Dn);if(t===void 0)throw new Error("A is used but it is missing a parent .");return t}function It(t){return"children"in t?It(t.children):t.filter(({state:e})=>e===ve.Visible).length>0}function Br(t){let e=[];function n(r,s=rt.Hidden){let a=e.findIndex(({id:o})=>o===r);if(a===-1)return;let u=It(e);Nt(s,{[rt.Unmount](){e.splice(a,1)},[rt.Hidden](){e[a].state=ve.Hidden}}),u&&!It(e)&&(t==null||t())}function i(r){let s=e.find(({id:a})=>a===r);return s?s.state!==ve.Visible&&(s.state=ve.Visible):e.push({id:r,state:ve.Visible}),()=>n(r,rt.Unmount)}return{children:e,register:i,unregister:n}}function Ns(t){let e;const n=t[23].default,i=ze(n,t,t[25],null);return{c(){i&&i.c()},m(r,s){i&&i.m(r,s),e=!0},p(r,s){i&&i.p&&(!e||s[0]&33554432)&&We(i,n,r,r[25],e?Ye(n,r[25],s,null):Je(r[25]),null)},i(r){e||(z(i,r),e=!0)},o(r){Q(i,r),e=!1},d(r){i&&i.d(r)}}}function Is(t){let e,n,i;const r=[t[9],{as:t[0]},{use:[...t[1],t[5]]},{slotProps:{}},{name:"TransitionChild"},{class:t[4]},{visible:t[3]===ve.Visible},{features:nt.RenderStrategy}];function s(u){t[24](u)}let a={$$slots:{default:[Ns]},$$scope:{ctx:t}};for(let u=0;u$n(e,"el",s)),{c(){me(e.$$.fragment)},m(u,o){he(e,u,o),i=!0},p(u,o){const l=o[0]&571?Me(r,[o[0]&512&&zt(u[9]),o[0]&1&&{as:u[0]},o[0]&34&&{use:[...u[1],u[5]]},r[3],r[4],o[0]&16&&{class:u[4]},o[0]&8&&{visible:u[3]===ve.Visible},o&0&&{features:nt.RenderStrategy}]):{};o[0]&33554432&&(l.$$scope={dirty:o,ctx:u}),!n&&o[0]&4&&(n=!0,l.el=u[2],Zn(()=>n=!1)),e.$set(l)},i(u){i||(z(e.$$.fragment,u),i=!0)},o(u){Q(e.$$.fragment,u),i=!1},d(u){pe(e,u)}}}function Rs(t,e,n){let i,r,s,a,u,o,l,c,f;const d=["as","use","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"];let p=Ve(e,d),v,N,R,{$$slots:O={},$$scope:M}=e,{as:j="div"}=e,{use:P=[]}=e,{enter:I=""}=e,{enterFrom:S=""}=e,{enterTo:_=""}=e,{entered:y=""}=e,{leave:E=""}=e,{leaveFrom:A=""}=e,{leaveTo:q=""}=e;const $=Wn(),J=Fn(st(),["beforeEnter","beforeLeave","afterEnter","afterLeave"]);let h=null,w=Ds();Ie(t,w,B=>n(21,v=B));let U=xs();Ie(t,U,B=>n(22,N=B));let K=v.initialShow||e.unmount!==!1?ve.Visible:ve.Hidden,g=!0,b=bs(),m=!1,C=Le(Br(()=>{m||(n(3,K=ve.Hidden),N.unregister(b),$("afterLeave"))}));Ie(t,C,B=>n(34,R=B)),ut(()=>N.register(b));function F(B=""){return B.split(" ").filter(ce=>ce.trim().length>1)}let x=!1;ut(()=>n(18,x=!0));function re(B,ce){let we=g&&!ce,fe=h;if(!(!fe||!(fe instanceof HTMLElement))&&!we)return n(17,m=!0),B&&$("beforeEnter"),B||$("beforeLeave"),B?Rr(fe,r,s,a,u,Se=>{n(17,m=!1),Se===at.Finished&&$("afterEnter")}):Rr(fe,o,l,c,u,Se=>{n(17,m=!1),Se===at.Finished&&(It(R)||(n(3,K=ve.Hidden),N.unregister(b),$("afterLeave")))})}let X=null;qt(Dn,C);let te=Le(dt.Closed);_s(te);function L(B){h=B,n(2,h)}return t.$$set=B=>{n(40,e=ee(ee({},e),Ce(B))),n(9,p=Ve(e,d)),"as"in B&&n(0,j=B.as),"use"in B&&n(1,P=B.use),"enter"in B&&n(10,I=B.enter),"enterFrom"in B&&n(11,S=B.enterFrom),"enterTo"in B&&n(12,_=B.enterTo),"entered"in B&&n(13,y=B.entered),"leave"in B&&n(14,E=B.leave),"leaveFrom"in B&&n(15,A=B.leaveFrom),"leaveTo"in B&&n(16,q=B.leaveTo),"$$scope"in B&&n(25,M=B.$$scope)},t.$$.update=()=>{n(20,i=e.unmount===!1?rt.Hidden:rt.Unmount),t.$$.dirty[0]&7340040&&(()=>{if(i===rt.Hidden&&!!b){if(v.show&&K!==ve.Visible){n(3,K=ve.Visible);return}Nt(K,{[ve.Hidden]:()=>N.unregister(b),[ve.Visible]:()=>N.register(b)})}})(),t.$$.dirty[0]&1024&&(r=F(I)),t.$$.dirty[0]&2048&&(s=F(S)),t.$$.dirty[0]&4096&&(a=F(_)),t.$$.dirty[0]&8192&&(u=F(y)),t.$$.dirty[0]&16384&&(o=F(E)),t.$$.dirty[0]&32768&&(l=F(A)),t.$$.dirty[0]&65536&&(c=F(q)),t.$$.dirty[0]&2883584&&x&&(X&&X(),n(19,X=re(v.show,v.appear)),g=!1),t.$$.dirty[0]&8&&te.set(Nt(K,{[ve.Visible]:dt.Open,[ve.Hidden]:dt.Closed})),n(4,f=m?h==null?void 0:h.className:`${e.class||""} ${y}`)},e=Ce(e),[j,P,h,K,f,J,w,U,C,p,I,S,_,y,E,A,q,m,x,X,i,v,N,O,L,M]}class Ps extends Te{constructor(e){super(),Ae(this,e,Rs,Is,ke,{as:0,use:1,enter:10,enterFrom:11,enterTo:12,entered:13,leave:14,leaveFrom:15,leaveTo:16},null,[-1,-1])}}function Mr(t){let e,n;const i=[t[7],{as:t[0]},{use:[...t[1],t[3]]}];let r={$$slots:{default:[Bs]},$$scope:{ctx:t}};for(let s=0;s{i=null}),Dt())},i(r){n||(z(i),n=!0)},o(r){Q(i),n=!1},d(r){i&&i.d(r),r&&ie(e)}}}function Ls(t,e,n){const i=["as","use","show","appear"];let r=Ve(e,i),s,a,{$$slots:u={},$$scope:o}=e;const l=Fn(st(),["beforeEnter","beforeLeave","afterEnter","afterLeave"]);let{as:c="div"}=e,{use:f=[]}=e,{show:d=void 0}=e,{appear:p=!1}=e,v=ys();Ie(t,v,A=>n(13,a=A));function N(A,q){return A===void 0&&q!==void 0?Nt(q,{[dt.Open]:!0,[dt.Closed]:!1}):A}let R=N(d,v!==void 0?a:void 0),O=R,M=R?ve.Visible:ve.Hidden,j=Le(Br(()=>{n(2,M=ve.Hidden)}));Ie(t,j,A=>n(12,s=A));let P=!0,I=Le();ut(()=>{n(11,P=!1)}),qt(Dn,j),qt(Pr,I);function S(A){Re.call(this,t,A)}function _(A){Re.call(this,t,A)}function y(A){Re.call(this,t,A)}function E(A){Re.call(this,t,A)}return t.$$set=A=>{n(6,e=ee(ee({},e),Ce(A))),n(7,r=Ve(e,i)),"as"in A&&n(0,c=A.as),"use"in A&&n(1,f=A.use),"show"in A&&n(8,d=A.show),"appear"in A&&n(9,p=A.appear),"$$scope"in A&&n(19,o=A.$$scope)},t.$$.update=()=>{if(t.$$.dirty&9472&&(n(10,R=N(d,v!==void 0?a:void 0)),R!==!0&&R!==!1))throw new Error("A is used but it is missing a `show={true | false}` prop.");t.$$.dirty&3584&&I.set({show:!!R,appear:p||!P,initialShow:!!O}),t.$$.dirty&7168&&(P||(R?n(2,M=ve.Visible):It(s)||n(2,M=ve.Hidden)))},e=Ce(e),[c,f,M,l,v,j,e,r,d,p,R,P,s,a,u,S,_,y,E,o]}class Lr extends Te{constructor(e){super(),Ae(this,e,Ls,Ms,ke,{as:0,use:1,show:8,appear:9})}}const Vs="c4e49449103ee51ad452e110dce2886699469dcf";async function js(t){return t.length?fetch("https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/party",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Token ${Vs}`},body:JSON.stringify({query:t,count:5})}).then(e=>e.json()).then(e=>e.suggestions.map(n=>n.data)).catch(e=>(console.error(e),[])):[]}function qs(t,e,n){var i=n||{},r=i.noTrailing,s=r===void 0?!1:r,a=i.noLeading,u=a===void 0?!1:a,o=i.debounceMode,l=o===void 0?void 0:o,c,f=!1,d=0;function p(){c&&clearTimeout(c)}function v(R){var O=R||{},M=O.upcomingOnly,j=M===void 0?!1:M;p(),f=!j}function N(){for(var R=arguments.length,O=new Array(R),M=0;Mt?u?(d=Date.now(),s||(c=setTimeout(l?S:I,t))):I():s!==!0&&(c=setTimeout(l?S:I,l===void 0?t-P:t))}return N.cancel=v,N}var ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vr(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var xn={},Nn={exports:{}};(function(t,e){var n=typeof self<"u"?self:ge,i=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(a){var u={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function o(h){return h&&DataView.prototype.isPrototypeOf(h)}if(u.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(h){return h&&l.indexOf(Object.prototype.toString.call(h))>-1};function f(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(h))throw new TypeError("Invalid character in header field name");return h.toLowerCase()}function d(h){return typeof h!="string"&&(h=String(h)),h}function p(h){var w={next:function(){var U=h.shift();return{done:U===void 0,value:U}}};return u.iterable&&(w[Symbol.iterator]=function(){return w}),w}function v(h){this.map={},h instanceof v?h.forEach(function(w,U){this.append(U,w)},this):Array.isArray(h)?h.forEach(function(w){this.append(w[0],w[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(w){this.append(w,h[w])},this)}v.prototype.append=function(h,w){h=f(h),w=d(w);var U=this.map[h];this.map[h]=U?U+", "+w:w},v.prototype.delete=function(h){delete this.map[f(h)]},v.prototype.get=function(h){return h=f(h),this.has(h)?this.map[h]:null},v.prototype.has=function(h){return this.map.hasOwnProperty(f(h))},v.prototype.set=function(h,w){this.map[f(h)]=d(w)},v.prototype.forEach=function(h,w){for(var U in this.map)this.map.hasOwnProperty(U)&&h.call(w,this.map[U],U,this)},v.prototype.keys=function(){var h=[];return this.forEach(function(w,U){h.push(U)}),p(h)},v.prototype.values=function(){var h=[];return this.forEach(function(w){h.push(w)}),p(h)},v.prototype.entries=function(){var h=[];return this.forEach(function(w,U){h.push([U,w])}),p(h)},u.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function N(h){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}function R(h){return new Promise(function(w,U){h.onload=function(){w(h.result)},h.onerror=function(){U(h.error)}})}function O(h){var w=new FileReader,U=R(w);return w.readAsArrayBuffer(h),U}function M(h){var w=new FileReader,U=R(w);return w.readAsText(h),U}function j(h){for(var w=new Uint8Array(h),U=new Array(w.length),K=0;K-1?w:h}function y(h,w){w=w||{};var U=w.body;if(h instanceof y){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,w.headers||(this.headers=new v(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!U&&h._bodyInit!=null&&(U=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=w.credentials||this.credentials||"same-origin",(w.headers||!this.headers)&&(this.headers=new v(w.headers)),this.method=_(w.method||this.method||"GET"),this.mode=w.mode||this.mode||null,this.signal=w.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&U)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(U)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})};function E(h){var w=new FormData;return h.trim().split("&").forEach(function(U){if(U){var K=U.split("="),g=K.shift().replace(/\+/g," "),b=K.join("=").replace(/\+/g," ");w.append(decodeURIComponent(g),decodeURIComponent(b))}}),w}function A(h){var w=new v,U=h.replace(/\r?\n[\t ]+/g," ");return U.split(/\r?\n/).forEach(function(K){var g=K.split(":"),b=g.shift().trim();if(b){var m=g.join(":").trim();w.append(b,m)}}),w}I.call(y.prototype);function q(h,w){w||(w={}),this.type="default",this.status=w.status===void 0?200:w.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in w?w.statusText:"OK",this.headers=new v(w.headers),this.url=w.url||"",this._initBody(h)}I.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},q.error=function(){var h=new q(null,{status:0,statusText:""});return h.type="error",h};var $=[301,302,303,307,308];q.redirect=function(h,w){if($.indexOf(w)===-1)throw new RangeError("Invalid status code");return new q(null,{status:w,headers:{location:h}})},a.DOMException=s.DOMException;try{new a.DOMException}catch{a.DOMException=function(w,U){this.message=w,this.name=U;var K=Error(w);this.stack=K.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function J(h,w){return new Promise(function(U,K){var g=new y(h,w);if(g.signal&&g.signal.aborted)return K(new a.DOMException("Aborted","AbortError"));var b=new XMLHttpRequest;function m(){b.abort()}b.onload=function(){var C={status:b.status,statusText:b.statusText,headers:A(b.getAllResponseHeaders()||"")};C.url="responseURL"in b?b.responseURL:C.headers.get("X-Request-URL");var F="response"in b?b.response:b.responseText;U(new q(F,C))},b.onerror=function(){K(new TypeError("Network request failed"))},b.ontimeout=function(){K(new TypeError("Network request failed"))},b.onabort=function(){K(new a.DOMException("Aborted","AbortError"))},b.open(g.method,g.url,!0),g.credentials==="include"?b.withCredentials=!0:g.credentials==="omit"&&(b.withCredentials=!1),"responseType"in b&&u.blob&&(b.responseType="blob"),g.headers.forEach(function(C,F){b.setRequestHeader(F,C)}),g.signal&&(g.signal.addEventListener("abort",m),b.onreadystatechange=function(){b.readyState===4&&g.signal.removeEventListener("abort",m)}),b.send(typeof g._bodyInit>"u"?null:g._bodyInit)})}return J.polyfill=!0,s.fetch||(s.fetch=J,s.Headers=v,s.Request=y,s.Response=q),a.Headers=v,a.Request=y,a.Response=q,a.fetch=J,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=i;e=r.fetch,e.default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,t.exports=e})(Nn,Nn.exports);function Us(t){return typeof t=="object"&&t!==null}function Hs(t,e){if(!Boolean(t))throw new Error(e!=null?e:"Unexpected invariant triggered.")}const Gs=/\r\n|[\n\r]/g;function In(t,e){let n=0,i=1;for(const r of t.body.matchAll(Gs)){if(typeof r.index=="number"||Hs(!1),r.index>=e)break;n=r.index+r[0].length,i+=1}return{line:i,column:e+1-n}}function zs(t){return jr(t.source,In(t.source,t.start))}function jr(t,e){const n=t.locationOffset.column-1,i="".padStart(n)+t.body,r=e.line-1,s=t.locationOffset.line-1,a=e.line+s,u=e.line===1?n:0,o=e.column+u,l=`${t.name}:${a}:${o} `,c=i.split(/\r\n|[\n\r]/g),f=c[r];if(f.length>120){const d=Math.floor(o/80),p=o%80,v=[];for(let N=0;N["|",N]),["|","^".padStart(p)],["|",v[d+1]]])}return l+qr([[`${a-1} |`,c[r-1]],[`${a} |`,f],["|","^".padStart(o)],[`${a+1} |`,c[r+1]]])}function qr(t){const e=t.filter(([i,r])=>r!==void 0),n=Math.max(...e.map(([i])=>i.length));return e.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(` `)}function Ys(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class Rn extends Error{constructor(e,...n){var i,r,s;const{nodes:a,source:u,positions:o,path:l,originalError:c,extensions:f}=Ys(n);super(e),this.name="GraphQLError",this.path=l!=null?l:void 0,this.originalError=c!=null?c:void 0,this.nodes=Ur(Array.isArray(a)?a:a?[a]:void 0);const d=Ur((i=this.nodes)===null||i===void 0?void 0:i.map(v=>v.loc).filter(v=>v!=null));this.source=u!=null?u:d==null||(r=d[0])===null||r===void 0?void 0:r.source,this.positions=o!=null?o:d==null?void 0:d.map(v=>v.start),this.locations=o&&u?o.map(v=>In(u,v)):d==null?void 0:d.map(v=>In(v.source,v.start));const p=Us(c==null?void 0:c.extensions)?c==null?void 0:c.extensions:void 0;this.extensions=(s=f!=null?f:p)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Rn):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+=` `+zs(n.loc));else if(this.source&&this.locations)for(const n of this.locations)e+=` `+jr(this.source,n);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Ur(t){return t===void 0||t.length===0?void 0:t}function Ne(t,e,n){return new Rn(`Syntax Error: ${n}`,{source:t,positions:[e]})}class Ws{constructor(e,n,i){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Hr{constructor(e,n,i,r,s,a){this.kind=e,this.start=n,this.end=i,this.line=r,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Gr={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"]},Js=new Set(Object.keys(Gr));function zr(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&Js.has(e)}let kt;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(kt||(kt={}));let Pn;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Pn||(Pn={}));let W;(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"})(W||(W={}));function Bn(t){return t===9||t===32}function Rt(t){return t>=48&&t<=57}function Yr(t){return t>=97&&t<=122||t>=65&&t<=90}function Wr(t){return Yr(t)||t===95}function Qs(t){return Yr(t)||Rt(t)||t===95}function Xs(t){var e;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let a=0;au===0?a:a.slice(n)).slice((e=i)!==null&&e!==void 0?e:0,r+1)}function Zs(t){let e=0;for(;e1&&i.slice(1).every(p=>p.length===0||Bn(p.charCodeAt(0))),a=n.endsWith('\\"""'),u=t.endsWith('"')&&!a,o=t.endsWith("\\"),l=u||o,c=!(e!=null&&e.minimize)&&(!r||t.length>70||l||s||a);let f="";const d=r&&Bn(t.charCodeAt(0));return(c&&!d||s)&&(f+=` `),f+=n,(c||l)&&(f+=` `),'"""'+f+'"""'}let T;(function(t){t.SOF="",t.EOF="",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(T||(T={}));class $s{constructor(e){const n=new Hr(T.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==T.EOF)do if(e.next)e=e.next;else{const n=ta(this,e.end);e.next=n,n.prev=e,e=n}while(e.kind===T.COMMENT);return e}}function ea(t){return t===T.BANG||t===T.DOLLAR||t===T.AMP||t===T.PAREN_L||t===T.PAREN_R||t===T.SPREAD||t===T.COLON||t===T.EQUALS||t===T.AT||t===T.BRACKET_L||t===T.BRACKET_R||t===T.BRACE_L||t===T.PIPE||t===T.BRACE_R}function Et(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Kt(t,e){return Jr(t.charCodeAt(e))&&Qr(t.charCodeAt(e+1))}function Jr(t){return t>=55296&&t<=56319}function Qr(t){return t>=56320&&t<=57343}function ht(t,e){const n=t.source.body.codePointAt(e);if(n===void 0)return T.EOF;if(n>=32&&n<=126){const i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function De(t,e,n,i,r){const s=t.line,a=1+n-t.lineStart;return new Hr(e,n,i,s,a,r)}function ta(t,e){const n=t.source.body,i=n.length;let r=e;for(;r=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function ua(t,e){const n=t.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Ne(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function oa(t,e){const n=t.source.body,i=n.length;let r=t.lineStart,s=e+3,a=s,u="";const o=[];for(;sZr)return"["+ma(t)+"]";const i=n.map(([r,s])=>r+": "+en(s,e));return"{ "+i.join(", ")+" }"}function pa(t,e){if(t.length===0)return"[]";if(e.length>Zr)return"[Array]";const n=Math.min(ca,t.length),i=t.length-n,r=[];for(let s=0;s1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function ma(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}const ga=function(e,n){return e instanceof n};class $r{constructor(e,n="GraphQL request",i={line:1,column:1}){typeof e=="string"||$t(!1,`Body must be a string. Received: ${Kr(e)}.`),this.body=e,this.name=n,this.locationOffset=i,this.locationOffset.line>0||$t(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||$t(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function va(t){return ga(t,$r)}function ya(t,e){return new Bt(t,e).parseDocument()}function _a(t,e){const n=new Bt(t,e);n.expectToken(T.SOF);const i=n.parseValueLiteral(!1);return n.expectToken(T.EOF),i}function ka(t,e){const n=new Bt(t,e);n.expectToken(T.SOF);const i=n.parseConstValueLiteral();return n.expectToken(T.EOF),i}function Ea(t,e){const n=new Bt(t,e);n.expectToken(T.SOF);const i=n.parseTypeReference();return n.expectToken(T.EOF),i}class Bt{constructor(e,n){const i=va(e)?e:new $r(e);this._lexer=new $s(i),this._options=n}parseName(){const e=this.expectToken(T.NAME);return this.node(e,{kind:W.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:W.DOCUMENT,definitions:this.many(T.SOF,this.parseDefinition,T.EOF)})}parseDefinition(){if(this.peek(T.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===T.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Ne(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(T.BRACE_L))return this.node(e,{kind:W.OPERATION_DEFINITION,operation:kt.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let i;return this.peek(T.NAME)&&(i=this.parseName()),this.node(e,{kind:W.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(T.NAME);switch(e.value){case"query":return kt.QUERY;case"mutation":return kt.MUTATION;case"subscription":return kt.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(T.PAREN_L,this.parseVariableDefinition,T.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:W.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(T.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(T.DOLLAR),this.node(e,{kind:W.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:W.SELECTION_SET,selections:this.many(T.BRACE_L,this.parseSelection,T.BRACE_R)})}parseSelection(){return this.peek(T.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,n=this.parseName();let i,r;return this.expectOptionalToken(T.COLON)?(i=n,r=this.parseName()):r=n,this.node(e,{kind:W.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(T.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(T.PAREN_L,n,T.PAREN_R)}parseArgument(e=!1){const n=this._lexer.token,i=this.parseName();return this.expectToken(T.COLON),this.node(n,{kind:W.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(T.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(T.NAME)?this.node(e,{kind:W.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:W.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const n=this._lexer.token;return this.expectKeyword("fragment"),((e=this._options)===null||e===void 0?void 0:e.allowLegacyFragmentVariables)===!0?this.node(n,{kind:W.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(n,{kind:W.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const n=this._lexer.token;switch(n.kind){case T.BRACKET_L:return this.parseList(e);case T.BRACE_L:return this.parseObject(e);case T.INT:return this._lexer.advance(),this.node(n,{kind:W.INT,value:n.value});case T.FLOAT:return this._lexer.advance(),this.node(n,{kind:W.FLOAT,value:n.value});case T.STRING:case T.BLOCK_STRING:return this.parseStringLiteral();case T.NAME:switch(this._lexer.advance(),n.value){case"true":return this.node(n,{kind:W.BOOLEAN,value:!0});case"false":return this.node(n,{kind:W.BOOLEAN,value:!1});case"null":return this.node(n,{kind:W.NULL});default:return this.node(n,{kind:W.ENUM,value:n.value})}case T.DOLLAR:if(e)if(this.expectToken(T.DOLLAR),this._lexer.token.kind===T.NAME){const i=this._lexer.token.value;throw Ne(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:W.STRING,value:e.value,block:e.kind===T.BLOCK_STRING})}parseList(e){const n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:W.LIST,values:this.any(T.BRACKET_L,n,T.BRACKET_R)})}parseObject(e){const n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:W.OBJECT,fields:this.any(T.BRACE_L,n,T.BRACE_R)})}parseObjectField(e){const n=this._lexer.token,i=this.parseName();return this.expectToken(T.COLON),this.node(n,{kind:W.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){const n=[];for(;this.peek(T.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const n=this._lexer.token;return this.expectToken(T.AT),this.node(n,{kind:W.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let n;if(this.expectOptionalToken(T.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(T.BRACKET_R),n=this.node(e,{kind:W.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(T.BANG)?this.node(e,{kind:W.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:W.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(T.STRING)||this.peek(T.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),r=this.many(T.BRACE_L,this.parseOperationTypeDefinition,T.BRACE_R);return this.node(e,{kind:W.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,n=this.parseOperationType();this.expectToken(T.COLON);const i=this.parseNamedType();return this.node(e,{kind:W.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:W.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:W.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(T.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(T.BRACE_L,this.parseFieldDefinition,T.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(T.COLON);const s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:W.FIELD_DEFINITION,description:n,name:i,arguments:r,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(T.PAREN_L,this.parseInputValueDef,T.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(T.COLON);const r=this.parseTypeReference();let s;this.expectOptionalToken(T.EQUALS)&&(s=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:W.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:W.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),r=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:W.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(T.EQUALS)?this.delimitedMany(T.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),r=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:W.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:s})}parseEnumValuesDefinition(){return this.optionalMany(T.BRACE_L,this.parseEnumValueDefinition,T.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:W.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Ne(this._lexer.source,this._lexer.token.start,`${tn(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),r=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:W.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(T.BRACE_L,this.parseInputValueDef,T.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===T.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.optionalMany(T.BRACE_L,this.parseOperationTypeDefinition,T.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:W.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(e,{kind:W.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:W.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:W.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:W.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:W.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:W.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(T.AT);const i=this.parseName(),r=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:W.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(T.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Pn,n.value))return n;throw this.unexpected(e)}node(e,n){var i;return((i=this._options)===null||i===void 0?void 0:i.noLocation)!==!0&&(n.loc=new Ws(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){const n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n;throw Ne(this._lexer.source,n.start,`Expected ${ei(e)}, found ${tn(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this._lexer.advance(),!0):!1}expectKeyword(e){const n=this._lexer.token;if(n.kind===T.NAME&&n.value===e)this._lexer.advance();else throw Ne(this._lexer.source,n.start,`Expected "${e}", found ${tn(n)}.`)}expectOptionalKeyword(e){const n=this._lexer.token;return n.kind===T.NAME&&n.value===e?(this._lexer.advance(),!0):!1}unexpected(e){const n=e!=null?e:this._lexer.token;return Ne(this._lexer.source,n.start,`Unexpected ${tn(n)}.`)}any(e,n,i){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(e,n,i){if(this.expectOptionalToken(e)){const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(e,n,i){this.expectToken(e);const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(e,n){this.expectOptionalToken(e);const i=[];do i.push(n.call(this));while(this.expectOptionalToken(e));return i}}function tn(t){const e=t.value;return ei(t.kind)+(e!=null?` "${e}"`:"")}function ei(t){return ea(t)?`"${t}"`:t}const ba=Vr(Object.freeze(Object.defineProperty({__proto__:null,parse:ya,parseValue:_a,parseConstValue:ka,parseType:Ea,Parser:Bt},Symbol.toStringTag,{value:"Module"})));function Aa(t){return`"${t.replace(Ta,wa)}"`}const Ta=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function wa(t){return Ca[t.charCodeAt(0)]}const Ca=["\\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"],Sa=Object.freeze({});function Fa(t,e,n=Gr){const i=new Map;for(const O of Object.values(W))i.set(O,Oa(e,O));let r,s=Array.isArray(t),a=[t],u=-1,o=[],l=t,c,f;const d=[],p=[];do{u++;const O=u===a.length,M=O&&o.length!==0;if(O){if(c=p.length===0?void 0:d[d.length-1],l=f,f=p.pop(),M)if(s){l=l.slice();let P=0;for(const[I,S]of o){const _=I-P;S===null?(l.splice(_,1),P++):l[_]=S}}else{l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(const[P,I]of o)l[P]=I}u=r.index,a=r.keys,o=r.edits,s=r.inArray,r=r.prev}else if(f){if(c=s?u:a[u],l=f[c],l==null)continue;d.push(c)}let j;if(!Array.isArray(l)){var v,N;zr(l)||$t(!1,`Invalid AST Node: ${Kr(l)}.`);const P=O?(v=i.get(l.kind))===null||v===void 0?void 0:v.leave:(N=i.get(l.kind))===null||N===void 0?void 0:N.enter;if(j=P==null?void 0:P.call(e,l,c,f,d,p),j===Sa)break;if(j===!1){if(!O){d.pop();continue}}else if(j!==void 0&&(o.push([c,j]),!O))if(zr(j))l=j;else{d.pop();continue}}if(j===void 0&&M&&o.push([c,l]),O)d.pop();else{var R;r={inArray:s,index:u,keys:a,edits:o,prev:r},s=Array.isArray(l),a=s?l:(R=n[l.kind])!==null&&R!==void 0?R:[],u=-1,o=[],f&&p.push(f),f=l}}while(r!==void 0);return o.length!==0?o[o.length-1][1]:t}function Oa(t,e){const n=t[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function Da(t){return Fa(t,Na)}const xa=80,Na={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>V(t.definitions,` `)},OperationDefinition:{leave(t){const e=le("(",V(t.variableDefinitions,", "),")"),n=V([t.operation,V([t.name,e]),V(t.directives," ")]," ");return(n==="query"?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:i})=>t+": "+e+le(" = ",n)+le(" ",V(i," "))},SelectionSet:{leave:({selections:t})=>Ge(t)},Field:{leave({alias:t,name:e,arguments:n,directives:i,selectionSet:r}){const s=le("",t,": ")+e;let a=s+le("(",V(n,", "),")");return a.length>xa&&(a=s+le(`( `,nn(V(n,` `)),` )`)),V([a,V(i," "),r]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+le(" ",V(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:n})=>V(["...",le("on ",t),V(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${t}${le("(",V(n,", "),")")} on ${e} ${le("",V(i," ")," ")}`+r},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?Ks(t):Aa(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+V(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+V(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+le("(",V(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:n})=>le("",t,` `)+V(["schema",V(e," "),Ge(n)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:n})=>le("",t,` `)+V(["scalar",e,V(n," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:i,fields:r})=>le("",t,` `)+V(["type",e,le("implements ",V(n," & ")),V(i," "),Ge(r)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:n,type:i,directives:r})=>le("",t,` `)+e+(ti(n)?le(`( `,nn(V(n,` `)),` )`):le("(",V(n,", "),")"))+": "+i+le(" ",V(r," "))},InputValueDefinition:{leave:({description:t,name:e,type:n,defaultValue:i,directives:r})=>le("",t,` `)+V([e+": "+n,le("= ",i),V(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:i,fields:r})=>le("",t,` `)+V(["interface",e,le("implements ",V(n," & ")),V(i," "),Ge(r)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:n,types:i})=>le("",t,` `)+V(["union",e,V(n," "),le("= ",V(i," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:n,values:i})=>le("",t,` `)+V(["enum",e,V(n," "),Ge(i)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:n})=>le("",t,` `)+V([e,V(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:n,fields:i})=>le("",t,` `)+V(["input",e,V(n," "),Ge(i)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:n,repeatable:i,locations:r})=>le("",t,` `)+"directive @"+e+(ti(n)?le(`( `,nn(V(n,` `)),` )`):le("(",V(n,", "),")"))+(i?" repeatable":"")+" on "+V(r," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>V(["extend schema",V(t," "),Ge(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>V(["extend scalar",t,V(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:i})=>V(["extend type",t,le("implements ",V(e," & ")),V(n," "),Ge(i)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:i})=>V(["extend interface",t,le("implements ",V(e," & ")),V(n," "),Ge(i)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:n})=>V(["extend union",t,V(e," "),le("= ",V(n," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:n})=>V(["extend enum",t,V(e," "),Ge(n)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:n})=>V(["extend input",t,V(e," "),Ge(n)]," ")}};function V(t,e=""){var n;return(n=t==null?void 0:t.filter(i=>i).join(e))!==null&&n!==void 0?n:""}function Ge(t){return le(`{ `,nn(V(t,` `)),` }`)}function le(t,e,n=""){return e!=null&&e!==""?t+e+n:""}function nn(t){return le(" ",t.replace(/\n/g,` `))}function ti(t){var e;return(e=t==null?void 0:t.some(n=>n.includes(` `)))!==null&&e!==void 0?e:!1}const Ia=Vr(Object.freeze(Object.defineProperty({__proto__:null,print:Da},Symbol.toStringTag,{value:"Module"})));var Ln={},rn={},ni=function(e){var n=e.uri,i=e.name,r=e.type;this.uri=n,this.name=i,this.type=r},Ra=ni,ri=function(e){return typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob||e instanceof Ra},Pa=ri,Ba=function t(e,n,i){n===void 0&&(n=""),i===void 0&&(i=Pa);var r,s=new Map;function a(c,f){var d=s.get(f);d?d.push.apply(d,c):s.set(f,c)}if(i(e))r=null,a([n],e);else{var u=n?n+".":"";if(typeof FileList<"u"&&e instanceof FileList)r=Array.prototype.map.call(e,function(c,f){return a([""+u+f],c),null});else if(Array.isArray(e))r=e.map(function(c,f){var d=t(c,""+u+f,i);return d.files.forEach(a),d.clone});else if(e&&e.constructor===Object){r={};for(var o in e){var l=t(e[o],""+u+o,i);l.files.forEach(a),r[o]=l.clone}}else r=e}return{clone:r,files:s}};rn.ReactNativeFile=ni,rn.extractFiles=Ba,rn.isExtractableFile=ri;var Ma=typeof self=="object"?self.FormData:window.FormData,Mt={};Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.defaultJsonSerializer=void 0,Mt.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify};var La=ge&&ge.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ln,"__esModule",{value:!0});var ii=rn,Va=La(Ma),ja=Mt,qa=function(t){return ii.isExtractableFile(t)||t!==null&&typeof t=="object"&&typeof t.pipe=="function"};function Ua(t,e,n,i){i===void 0&&(i=ja.defaultJsonSerializer);var r=ii.extractFiles({query:t,variables:e,operationName:n},"",qa),s=r.clone,a=r.files;if(a.size===0){if(!Array.isArray(t))return i.stringify(s);if(typeof e<"u"&&!Array.isArray(e))throw new Error("Cannot create request body with given variable type, array expected");var u=t.reduce(function(d,p,v){return d.push({query:p,variables:e?e[v]:void 0}),d},[]);return i.stringify(u)}var o=typeof FormData>"u"?Va.default:FormData,l=new o;l.append("operations",i.stringify(s));var c={},f=0;return a.forEach(function(d){c[++f]=d}),l.append("map",i.stringify(c)),f=0,a.forEach(function(d,p){l.append(""+ ++f,p)}),l}Ln.default=Ua;var Be={};Object.defineProperty(Be,"__esModule",{value:!0}),Be.parseBatchRequestsExtendedArgs=Be.parseRawRequestExtendedArgs=Be.parseRequestExtendedArgs=Be.parseBatchRequestArgs=Be.parseRawRequestArgs=Be.parseRequestArgs=void 0;function Ha(t,e,n){return t.document?t:{document:t,variables:e,requestHeaders:n,signal:void 0}}Be.parseRequestArgs=Ha;function Ga(t,e,n){return t.query?t:{query:t,variables:e,requestHeaders:n,signal:void 0}}Be.parseRawRequestArgs=Ga;function za(t,e){return t.documents?t:{documents:t,requestHeaders:e,signal:void 0}}Be.parseBatchRequestArgs=za;function Ya(t,e,n,i){return t.document?t:{url:t,document:e,variables:n,requestHeaders:i,signal:void 0}}Be.parseRequestExtendedArgs=Ya;function Wa(t,e,n,i){return t.query?t:{url:t,query:e,variables:n,requestHeaders:i,signal:void 0}}Be.parseRawRequestExtendedArgs=Wa;function Ja(t,e,n){return t.documents?t:{url:t,documents:e,requestHeaders:n,signal:void 0}}Be.parseBatchRequestsExtendedArgs=Ja;var Lt={},Qa=ge&&ge.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[s]=r[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.ClientError=void 0;var Xa=function(t){Qa(e,t);function e(n,i){var r=this,s=e.extractMessage(n)+": "+JSON.stringify({response:n,request:i});return r=t.call(this,s)||this,Object.setPrototypeOf(r,e.prototype),r.response=n,r.request=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(r,e),r}return e.extractMessage=function(n){try{return n.errors[0].message}catch{return"GraphQL Error (Code: "+n.status+")"}},e}(Error);Lt.ClientError=Xa;var Vt={},si;function Za(){if(si)return Vt;si=1;var t=ge&&ge.__assign||function(){return t=Object.assign||function(I){for(var S,_=1,y=arguments.length;_0&&A[A.length-1])&&(h[0]===6||h[0]===2)){_=0;continue}if(h[0]===3&&(!A||h[1]>A[0]&&h[1]0&&x[x.length-1])&&(L[0]===6||L[0]===2)){m=0;continue}if(L[0]===3&&(!x||L[1]>x[0]&&L[1]t();function nu(t,e=tu){return{addApplication(n,i){return e(r=>t.request($a,n,{...i,...r}),"addApplication","mutation")},uploadPartnerDocument(n,i){return e(r=>t.request(eu,n,{...i,...r}),"uploadPartnerDocument","mutation")}}}const ru="https://staging.fera.ru/api/graphql",iu=new Ka.GraphQLClient(ru),oi=nu(iu);function li(t){let e,n;return{c(){e=H("div"),n=Pe(t[0]),k(e,"class","text-sm text-red-100 mt-2")},m(i,r){ae(i,e,r),D(e,n)},p(i,r){r&1&>(n,i[0])},d(i){i&&ie(e)}}}function su(t){let e,n=!!t[0]&&li(t);return{c(){n&&n.c(),e=jt()},m(i,r){n&&n.m(i,r),ae(i,e,r)},p(i,[r]){i[0]?n?n.p(i,r):(n=li(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:de,o:de,d(i){n&&n.d(i),i&&ie(e)}}}function au(t,e,n){let{error:i}=e;return t.$$set=r=>{"error"in r&&n(0,i=r.error)},[i]}class bt extends Te{constructor(e){super(),Ae(this,e,au,su,ke,{error:0})}}function ci(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e{n(0,e=ee(ee({},e),Ce(i)))},e=Ce(e),[e]}class lu extends Te{constructor(e){super(),Ae(this,e,ou,uu,ke,{})}}function cu(t){let e,n,i=[{width:"30"},{height:"34"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],r={};for(let s=0;s{n(0,e=ee(ee({},e),Ce(i)))},e=Ce(e),[e]}class du extends Te{constructor(e){super(),Ae(this,e,fu,cu,ke,{})}}function hu(t){let e,n,i,r,s,a,u=[{width:"24"},{height:"24"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],o={};for(let l=0;l{n(0,e=ee(ee({},e),Ce(i)))},e=Ce(e),[e]}class mu extends Te{constructor(e){super(),Ae(this,e,pu,hu,ke,{})}}const Co="",gu=t=>({droppable:t&16}),fi=t=>({droppable:t[4]});function vu(t){let e;return{c(){e=Pe("Upload")},m(n,i){ae(n,e,i)},d(n){n&&ie(e)}}}function yu(t){let e,n,i,r,s,a,u,o;const l=t[14].default,c=ze(l,t,t[13],fi),f=c||vu();return{c(){e=H("div"),f&&f.c(),n=se(),i=H("input"),k(e,"tabindex",t[3]),k(e,"role","button"),k(e,"aria-label","File Upload"),k(e,"class","svelte-ajgjcf"),k(i,"type","file"),k(i,"accept",r=t[0]===null?null:t[0].join(",")),i.multiple=s=t[1]!==1,i.disabled=t[2],k(i,"class","svelte-ajgjcf")},m(d,p){ae(d,e,p),f&&f.m(e,null),ae(d,n,p),ae(d,i,p),t[17](i),a=!0,u||(o=[ne(e,"drop",pt(t[9])),ne(e,"dragover",pt(t[7])),ne(e,"dragenter",pt(t[7])),ne(e,"dragleave",pt(t[8])),ne(e,"keydown",t[11]),ne(e,"click",t[15]),ne(i,"change",t[16]),ne(i,"change",pt(t[10]))],u=!0)},p(d,[p]){c&&c.p&&(!a||p&8208)&&We(c,l,d,d[13],a?Ye(l,d[13],p,gu):Je(d[13]),fi),(!a||p&8)&&k(e,"tabindex",d[3]),(!a||p&1&&r!==(r=d[0]===null?null:d[0].join(",")))&&k(i,"accept",r),(!a||p&2&&s!==(s=d[1]!==1))&&(i.multiple=s),(!a||p&4)&&(i.disabled=d[2])},i(d){a||(z(f,d),a=!0)},o(d){Q(f,d),a=!1},d(d){d&&ie(e),f&&f.d(d),d&&ie(n),d&&ie(i),t[17](null),u=!1,He(o)}}}function _u(t,e,n){let{$$slots:i={},$$scope:r}=e,{handleFiles:s=()=>{}}=e,{acceptedMimes:a=null}=e,{max:u=0}=e,{disabled:o=!1}=e,{tabindex:l=0}=e,c=!1,f;function d(_=[]){let y=[];for(let E=0;E<_.length;E++)(a===null||p(_[E].type))&&y.push(_[E]);return u!==0&&(y=y.slice(0,u)),y}function p(_){if(a===null)return!0;for(const y of a){if(y==="application/*"&&_.startsWith("application/"))return!0;if(y==="audio/*"&&_.startsWith("audio/"))return!0;if(y==="video/*"&&_.startsWith("video/"))return!0;if(y==="image/*"&&_.startsWith("image/"))return!0;if(y==="text/*"&&_.startsWith("text/"))return!0;if(_===y)return!0}return!1}function v(_){var E;if(o)return;const y=Array.from(((E=_.dataTransfer)==null?void 0:E.items)||[]);for(const A of y)if(A.kind==="file"&&p(A.type)){n(4,c=!0);return}}function N(){n(4,c=!1)}function R(_){var E;if(o)return;const y=d((E=_.dataTransfer)==null?void 0:E.files);y.length>0&&s(y),n(4,c=!1)}let O;function M(){const _=d(O);_&&_.length>0&&s(_)}function j(_){(_.key===" "||_.key==="Enter")&&(_.preventDefault(),f.click())}const P=()=>f.click();function I(){O=this.files,n(6,O)}function S(_){Ze[_?"unshift":"push"](()=>{f=_,n(5,f)})}return t.$$set=_=>{"handleFiles"in _&&n(12,s=_.handleFiles),"acceptedMimes"in _&&n(0,a=_.acceptedMimes),"max"in _&&n(1,u=_.max),"disabled"in _&&n(2,o=_.disabled),"tabindex"in _&&n(3,l=_.tabindex),"$$scope"in _&&n(13,r=_.$$scope)},t.$$.update=()=>{t.$$.dirty&4&&o&&n(4,c=!1)},[a,u,o,l,c,f,O,v,N,R,M,j,s,r,i,P,I,S]}class ku extends Te{constructor(e){super(),Ae(this,e,_u,yu,ke,{handleFiles:12,acceptedMimes:0,max:1,disabled:2,tabindex:3})}}function di(t,e,n){const i=t.slice();return i[7]=e[n],i}function Eu(t){let e;return{c(){e=Pe("\u0444\u0430\u0439\u043B \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D")},m(n,i){ae(n,e,i)},p:de,d(n){n&&ie(e)}}}function bu(t){let e=(t[7].size/1024/1024).toFixed(1)+"",n,i;return{c(){n=Pe(e),i=Pe(" Mb")},m(r,s){ae(r,n,s),ae(r,i,s)},p(r,s){s&1&&e!==(e=(r[7].size/1024/1024).toFixed(1)+"")&>(n,e)},d(r){r&&ie(n),r&&ie(i)}}}function hi(t){var q,$;let e,n,i,r=((($=(q=t[7])==null?void 0:q.type)==null?void 0:$.split("/")[1])||"file")+"",s,a,u,o,l,c,f,d=t[7].name+"",p,v,N,R,O,M,j,P,I,S;o=new du({});function _(J,h){return J[7].size?bu:Eu}let y=_(t),E=y(t);M=new mu({props:{class:"cursor-pointer"}});function A(){return t[4](t[7])}return{c(){e=H("div"),n=H("div"),i=H("div"),s=Pe(r),a=se(),u=H("div"),me(o.$$.fragment),l=se(),c=H("div"),f=H("div"),p=Pe(d),v=se(),N=H("div"),E.c(),R=se(),O=H("div"),me(M.$$.fragment),j=se(),k(i,"class","grid-col-1 grid-row-1 text-[11px]"),k(u,"class","grid-col-1 grid-row-1"),k(n,"class","grid place-items-center text-[#84CC16]"),k(f,"class","text-p100 font-medium whitespace-nowrap text-ellipsis flex-none overflow-x-hidden"),k(N,"class","text-grayscale-150"),k(c,"class","flex-grow min-w-0"),k(e,"class","flex w-full gap-7 items-center")},m(J,h){ae(J,e,h),D(e,n),D(n,i),D(i,s),D(n,a),D(n,u),he(o,u,null),D(e,l),D(e,c),D(c,f),D(f,p),D(c,v),D(c,N),E.m(N,null),D(e,R),D(e,O),he(M,O,null),D(e,j),P=!0,I||(S=ne(O,"click",A),I=!0)},p(J,h){var w,U;t=J,(!P||h&1)&&r!==(r=(((U=(w=t[7])==null?void 0:w.type)==null?void 0:U.split("/")[1])||"file")+"")&>(s,r),(!P||h&1)&&d!==(d=t[7].name+"")&>(p,d),y===(y=_(t))&&E?E.p(t,h):(E.d(1),E=y(t),E&&(E.c(),E.m(N,null)))},i(J){P||(z(o.$$.fragment,J),z(M.$$.fragment,J),P=!0)},o(J){Q(o.$$.fragment,J),Q(M.$$.fragment,J),P=!1},d(J){J&&ie(e),pe(o),E.d(),pe(M),I=!1,S()}}}function Au(t){let e,n,i,r;return n=new lu({props:{class:"mr-6"}}),{c(){e=H("div"),me(n.$$.fragment),i=Pe(` \u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0444\u0430\u0439\u043B\u044B`),k(e,"class","rounded-lg h-25 border-1 border-dashed border-grayscale-300 flex items-center justify-center text-grayscale-150"),Yn(e,"border-red-50",t[6])},m(s,a){ae(s,e,a),he(n,e,null),D(e,i),r=!0},p(s,a){a&64&&Yn(e,"border-red-50",s[6])},i(s){r||(z(n.$$.fragment,s),r=!0)},o(s){Q(n.$$.fragment,s),r=!1},d(s){s&&ie(e),pe(n)}}}function Tu(t){let e,n,i,r,s=t[0],a=[];for(let c=0;cQ(a[c],1,1,()=>{a[c]=null}),o=[t[3],{handleFiles:t[1]}];let l={$$slots:{default:[Au,({droppable:c})=>({6:c}),({droppable:c})=>c?64:0]},$$scope:{ctx:t}};for(let c=0;cf!==c))}let{value:o=[]}=e;const l=c=>u(c);return t.$$set=c=>{e=ee(ee({},e),Ce(c)),n(3,r=Ve(e,i)),"value"in c&&n(0,o=c.value)},[o,a,u,r,l]}class Cu extends Te{constructor(e){super(),Ae(this,e,wu,Tu,ke,{value:0})}}function Su(t){let e,n,i=[{width:"24"},{height:"24"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],r={};for(let s=0;s{n(0,e=ee(ee({},e),Ce(i)))},e=Ce(e),[e]}class Ou extends Te{constructor(e){super(),Ae(this,e,Fu,Su,ke,{})}}const Du=["application/pdf","image/*","doc","application/msword","docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/octet-stream","xls","application/vnd.ms-excel","xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/plain","text/x-log","application/zip","application/x-zip-compressed","application/zip-compressed","multipart/x-zip","application/vnd.rar","application/x-rar-compressed","application/x-7z-compressed","application/rtf","application/xml"];function pi(t,e,n){const i=t.slice();return i[33]=e[n],i}function mi(t){let e,n=[],i=new Map,r=t[3];const s=a=>a[33].hid;for(let a=0;a0&&t[2]&&mi(t);M=new bt({props:{error:t[6].inn}}),A=new bt({props:{error:t[6].email}}),w=new os({props:{type:"tel",name:"phone",class:"px-10 py-5 rounded-lg transition ease-in-out border-1 border-grayscale-350 outline-none focus:ring-0 focus:outline-none focus:border-red-100 focus:shadow-none w-full placeholder-grayscale-250",options:t[19],placeholder:"+7 (000) 000-00-00",value:t[7].phone}}),w.$on("accept",t[11]),K=new bt({props:{error:t[6].phone}});function sn(G){t[27](G)}let Tt={acceptedMimes:Du};return t[7].files!==void 0&&(Tt.value=t[7].files),m=new Cu({props:Tt}),Ze.push(()=>$n(m,"value",sn)),x=new bt({props:{error:t[6].files}}),te=new Lr({props:{show:!t[9],class:"relative transition-all transform duration-300 flex items-center justify-center",enterFrom:"-translate-x-1/2 opacity-0",enterTo:"translate-x-0 opacity-100",leaveTo:"translate-x-1/2 opacity-0",$$slots:{default:[xu]},$$scope:{ctx:t}}}),B=new Lr({props:{show:t[9],class:"absolute transition-all transform inset-0 flex justify-center items-center duration-300",enterFrom:"-translate-x-1/4 opacity-0",enterTo:"translate-x-0 opacity-100",leaveTo:"translate-x-1/4 opacity-0",$$slots:{default:[Nu]},$$scope:{ctx:t}}}),fe=new bt({props:{error:t[0]}}),{c(){e=H("form"),n=H("div"),i=H("label"),i.textContent="\u0412\u0430\u0448\u0435 \u0438\u043C\u044F",r=se(),s=H("input"),a=se(),me(u.$$.fragment),o=se(),l=H("div"),c=H("label"),c.textContent="\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438, \u0418\u041F \u0438\u043B\u0438 \u0418\u041D\u041D",f=se(),d=H("div"),p=H("input"),R=se(),be&&be.c(),O=se(),me(M.$$.fragment),j=se(),P=H("div"),I=H("label"),I.textContent="\u0412\u0430\u0448 Email",S=se(),_=H("input"),E=se(),me(A.$$.fragment),q=se(),$=H("div"),J=H("label"),J.textContent="\u0412\u0430\u0448 \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D",h=se(),me(w.$$.fragment),U=se(),me(K.$$.fragment),g=se(),b=H("div"),me(m.$$.fragment),F=se(),me(x.$$.fragment),re=se(),X=H("button"),me(te.$$.fragment),L=se(),me(B.$$.fragment),we=se(),me(fe.$$.fragment),k(i,"for","fio"),k(i,"class","mb-4 block text-sm font-medium"),k(s,"type","text"),k(s,"name","fio"),k(s,"class","px-10 py-5 rounded-lg transition ease-in-out border-1 border-grayscale-350 outline-none focus:ring-0 focus:outline-none focus:border-red-100 focus:shadow-none w-full placeholder-grayscale-250"),k(s,"placeholder","\u0418\u0432\u0430\u043D\u043E\u0432 \u0418\u0432\u0430\u043D"),k(n,"class","mb-13"),k(c,"for","company"),k(c,"class","mb-4 block text-sm font-medium"),k(p,"type","text"),k(p,"name","inn"),k(p,"class","px-10 py-5 rounded-lg transition ease-in-out border-1 border-grayscale-350 outline-none focus:ring-0 focus:outline-none focus:border-red-100 focus:shadow-none w-full placeholder-grayscale-250"),k(p,"placeholder",v=t[2]?"\u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0432\u0432\u043E\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043E\u043A":"\u041E\u041E\u041E \u041A\u043E\u043C\u043F\u0430\u043D\u0438\u044F"),k(p,"autocomplete","off"),p.value=N=t[2]?t[1]:t[16](t[4]),k(d,"class","relative"),k(l,"class","mb-13"),k(I,"for","email"),k(I,"class","mb-4 block text-sm font-medium"),k(_,"type","text"),k(_,"name","email"),k(_,"class","px-10 py-5 rounded-lg transition ease-in-out border-1 border-grayscale-350 outline-none focus:ring-0 focus:outline-none focus:border-red-100 focus:shadow-none w-full placeholder-grayscale-250"),k(_,"placeholder","mail@example.com"),_.value=y=t[7].email,k(P,"class","mb-13"),k(J,"for","phone"),k(J,"class","mb-4 block text-sm font-medium"),k($,"class","mb-13"),k(b,"class","mb-13"),k(X,"type","submit"),X.disabled=ce=!t[8],k(X,"class","block px-20 h-27 bg-red-100 disabled:bg-grayscale-450 disabled:text-grayscale-250 hover:bg-red-50 active:bg-red-150 focus-visible:outline-red-100 focus-visible:outline-2 focus-visible:outline ring-red-100 rounded-xl text-white-0 text-p200 font-semibold leading-full w-full overflow-hidden relative")},m(G,ye){ae(G,e,ye),D(e,n),D(n,i),D(n,r),D(n,s),zn(s,t[7].fio),D(n,a),he(u,n,null),D(e,o),D(e,l),D(l,c),D(l,f),D(l,d),D(d,p),D(d,R),be&&be.m(d,null),t[26](d),D(l,O),he(M,l,null),D(e,j),D(e,P),D(P,I),D(P,S),D(P,_),D(P,E),he(A,P,null),D(e,q),D(e,$),D($,J),D($,h),he(w,$,null),D($,U),he(K,$,null),D(e,g),D(e,b),he(m,b,null),D(b,F),he(x,b,null),D(e,re),D(e,X),he(te,X,null),D(X,L),he(B,X,null),D(e,we),he(fe,e,null),Se=!0,qe||(Ue=[ne(window,"focusin",t[22]),ne(window,"pointerup",t[23]),ne(s,"input",t[24]),ne(s,"input",t[11]),ne(p,"input",t[17]),ne(p,"focusin",t[20]),ne(_,"input",t[11]),ne(e,"submit",t[12]),ne(e,"focusin",t[22])],qe=!0)},p(G,ye){ye[0]&128&&s.value!==G[7].fio&&zn(s,G[7].fio);const an={};ye[0]&64&&(an.error=G[6].fio),u.$set(an),(!Se||ye[0]&4&&v!==(v=G[2]?"\u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0432\u0432\u043E\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043E\u043A":"\u041E\u041E\u041E \u041A\u043E\u043C\u043F\u0430\u043D\u0438\u044F"))&&k(p,"placeholder",v),(!Se||ye[0]&22&&N!==(N=G[2]?G[1]:G[16](G[4]))&&p.value!==N)&&(p.value=N),G[3].length>0&&G[2]?be?be.p(G,ye):(be=mi(G),be.c(),be.m(d,null)):be&&(be.d(1),be=null);const un={};ye[0]&64&&(un.error=G[6].inn),M.$set(un),(!Se||ye[0]&128&&y!==(y=G[7].email)&&_.value!==y)&&(_.value=y);const yi={};ye[0]&64&&(yi.error=G[6].email),A.$set(yi);const _i={};ye[0]&128&&(_i.value=G[7].phone),w.$set(_i);const ki={};ye[0]&64&&(ki.error=G[6].phone),K.$set(ki);const Ei={};!C&&ye[0]&128&&(C=!0,Ei.value=G[7].files,Zn(()=>C=!1)),m.$set(Ei);const bi={};ye[0]&64&&(bi.error=G[6].files),x.$set(bi);const Vn={};ye[0]&512&&(Vn.show=!G[9]),ye[1]&32&&(Vn.$$scope={dirty:ye,ctx:G}),te.$set(Vn);const jn={};ye[0]&512&&(jn.show=G[9]),ye[1]&32&&(jn.$$scope={dirty:ye,ctx:G}),B.$set(jn),(!Se||ye[0]&256&&ce!==(ce=!G[8]))&&(X.disabled=ce);const Ai={};ye[0]&1&&(Ai.error=G[0]),fe.$set(Ai)},i(G){Se||(z(u.$$.fragment,G),z(M.$$.fragment,G),z(A.$$.fragment,G),z(w.$$.fragment,G),z(K.$$.fragment,G),z(m.$$.fragment,G),z(x.$$.fragment,G),z(te.$$.fragment,G),z(B.$$.fragment,G),z(fe.$$.fragment,G),Se=!0)},o(G){Q(u.$$.fragment,G),Q(M.$$.fragment,G),Q(A.$$.fragment,G),Q(w.$$.fragment,G),Q(K.$$.fragment,G),Q(m.$$.fragment,G),Q(x.$$.fragment,G),Q(te.$$.fragment,G),Q(B.$$.fragment,G),Q(fe.$$.fragment,G),Se=!1},d(G){G&&ie(e),pe(u),be&&be.d(),t[26](null),pe(M),pe(A),pe(w),pe(K),pe(m),pe(x),pe(te),pe(B),pe(fe),qe=!1,He(Ue)}}}function Ru(t,e,n){let i,r,s,a,u,o;Ie(t,lt,m=>n(28,i=m)),Ie(t,er,m=>n(29,s=m));let l="",c="",f=!1,d=[],p,v;const N=qs(500,async m=>{n(3,d=await js(m))}),R=vs({initialValues:{fio:"",email:"",phone:"",inn:"",files:[]},validate:m=>{const C={fio:"",email:"",phone:"",inn:"",files:""};return m.fio||(C.fio="\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0424\u0418\u041E"),m.email||(C.email="\u0423\u043A\u0430\u0436\u0438\u0442\u0435 email"),m.phone||(C.phone="\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0442\u0435\u043B\u0435\u0444\u043E\u043D"),m.phone&&m.phone.replace(/\D/g,"").length<11&&(C.phone="\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E"),m.inn||(C.inn="\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u044E \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430"),!C.inn&&!C.fio&&!C.email&&!C.phone?null:C},onSubmit:async m=>{n(0,l="");const C=await oi.addApplication({input:{email:m.email,fio:m.fio,phone:"+"+m.phone.replace(/\D/g,""),inn:m.inn,sourceWidgetPublicId:s,channel:"widget"}}).catch(x=>{var X;const re=(X=x==null?void 0:x.response)==null?void 0:X.errors;if(!re){console.error(x),n(0,l="\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u043E\u043E\u0431\u0449\u0438\u0442\u0435 \u043D\u0430\u043C \u043E\u0431 \u044D\u0442\u043E\u0439 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435");return}re.forEach(te=>{var L,B;if(!((B=(L=te==null?void 0:te.extensions)==null?void 0:L.violations)!=null&&B.length)){console.error(x),n(0,l="\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u043E\u043E\u0431\u0449\u0438\u0442\u0435 \u043D\u0430\u043C \u043E\u0431 \u044D\u0442\u043E\u0439 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435");return}te.extensions.violations.forEach(ce=>{const we=ce.path==="customerCompany.inn"?"inn":ce.path;m[ce.path]?it(I,r[we]=ce.message,r):n(0,l=`${ce.path}: ${ce.message}`)})})});if(!C)return;const F=C.addApplication.application.id;m.files.length&&await Promise.allSettled(m.files.map(async x=>oi.uploadPartnerDocument({input:{file:x,application:F}}))).catch(x=>{console.error(x)}),it(lt,i=!0,i)}}),{form:O,handleChange:M,handleSubmit:j,isValid:P,errors:I,touched:S,isSubmitting:_}=R;Ie(t,O,m=>n(7,a=m)),Ie(t,P,m=>n(8,u=m)),Ie(t,I,m=>n(6,r=m)),Ie(t,_,m=>n(9,o=m));const y=m=>{var C,F;if(m){if((C=m.name)!=null&&C.short_with_opf)return m.name.short_with_opf;if((F=m.name)!=null&&F.full_with_opf)return m.name.full_with_opf}return""},E=m=>{const C=m.target.value;n(1,c=C),N(C)},A=m=>{n(4,p=m),R.updateValidateField("inn",p.inn)},q={mask:"+{7} (000) 000-00-00"},$=()=>{n(2,f=!0)},J=()=>{n(2,f=!1)},h=m=>{var F,x;const C=((x=(F=m==null?void 0:m.target)==null?void 0:F.shadowRoot)==null?void 0:x.activeElement)||m.target;v&&!v.contains(C)&&f&&J()},w=m=>{const C=(m==null?void 0:m.composedPath()[0])||m.target;v&&!v.contains(C)&&f&&J()};function U(){a.fio=this.value,O.set(a)}const K=m=>{m.state.liquidation_date||(A(m),J())};function g(m){Ze[m?"unshift":"push"](()=>{v=m,n(5,v)})}function b(m){t.$$.not_equal(a.files,m)&&(a.files=m,O.set(a))}return[l,c,f,d,p,v,r,a,u,o,O,M,j,P,I,_,y,E,A,q,$,J,h,w,U,K,g,b]}class Pu extends Te{constructor(e){super(),Ae(this,e,Ru,Iu,ke,{},null,[-1,-1])}}function Bu(t){let e,n,i,r=[{width:"90"},{height:"40"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],s={};for(let a=0;a{n(0,e=ee(ee({},e),Ce(i)))},e=Ce(e),[e]}class Lu extends Te{constructor(e){super(),Ae(this,e,Mu,Bu,ke,{})}}function Vu(t){let e,n,i,r,s,a,u,o,l,c,f,d,p,v,N,R,O,M,j;return i=new Lu({props:{class:"mb-12"}}),R=new Pu({}),{c(){e=H("section"),n=H("div"),me(i.$$.fragment),r=se(),s=H("h1"),s.textContent="\u041C\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044C \u2013 \u043C\u044B \u043E\u043F\u043B\u0430\u0442\u0438\u043C",a=se(),u=H("div"),u.textContent=`\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0443 \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043F\u043E\u0441\u0442\u0430\u0432\u0449\u0438\u043A\u0430 \u0438 \u043E\u043F\u043B\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u0435\u0433\u043E \u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u043C\u0438 \u0435\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u043C\u0438 \u043F\u043B\u0430\u0442\u0435\u0436\u0430\u043C\u0438.`,o=se(),l=H("div"),l.innerHTML=`\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u0434\u043B\u044F \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446 \u0438 \u0418\u041F`,c=se(),f=H("div"),f.innerHTML=`
\u043E\u0442 10%
\u0430\u0432\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436
\u043E\u0442 100 000 \u20BD
\u0441\u0443\u043C\u043C\u0430 \u0441\u0434\u0435\u043B\u043A\u0438
\u043E\u0442 6 \u043C\u0435\u0441.
\u0441\u0440\u043E\u043A \u0444\u0438\u043D\u0430\u043D\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F
\u043E\u0442 3-\u0445 \u0447\u0430\u0441\u043E\u0432
\u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u0435 \u0437\u0430\u044F\u0432\u043A\u0438
`,d=se(),p=H("div"),v=se(),N=H("div"),me(R.$$.fragment),O=se(),M=H("div"),M.innerHTML=`\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u044F \u0444\u043E\u0440\u043C\u0443, \u0432\u044B \u0434\u0430\u0435\u0442\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u043D\u0430 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445, \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u0432 \u0437\u0430\u044F\u0432\u043A\u0435, \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u2116 152-\u0424\u0417 \u043E\u0442 27.07.2006 \xAB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\xBB.`,k(s,"class","text-[28px] fera-dot font-display mb-8"),k(u,"class","text-grayscale-150 mb-12"),k(l,"class","mb-12 lg:mb-16"),k(f,"class","lg:flex"),k(n,"class","mb-16 md:mb-0"),k(p,"class","lg:border-l-1 border-grayscale-400 lg:mx-[55px] mr-27"),k(M,"class","mt-12 text-p200"),k(N,"class","lg:w-[420px] md:w-[349px] flex-none"),k(e,"class","md:flex")},m(P,I){ae(P,e,I),D(e,n),he(i,n,null),D(n,r),D(n,s),D(n,a),D(n,u),D(n,o),D(n,l),D(n,c),D(n,f),D(e,d),D(e,p),D(e,v),D(e,N),he(R,N,null),D(N,O),D(N,M),j=!0},p:de,i(P){j||(z(i.$$.fragment,P),z(R.$$.fragment,P),j=!0)},o(P){Q(i.$$.fragment,P),Q(R.$$.fragment,P),j=!1},d(P){P&&ie(e),pe(i),pe(R)}}}class ju extends Te{constructor(e){super(),Ae(this,e,null,Vu,ke,{})}}function qu(t){let e,n,i,r,s,a,u,o,l,c,f,d;return{c(){e=H("section"),n=_e("svg"),i=_e("path"),r=_e("path"),s=se(),a=H("h1"),a.textContent="\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430!",u=se(),o=H("p"),o.textContent="\u0412 \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043C\u044F \u043C\u044B \u0432\u0430\u043C \u043F\u0435\u0440\u0435\u0437\u0432\u043E\u043D\u0438\u043C \u0438 \u043E\u0431\u0441\u0443\u0434\u0438\u043C \u0434\u0430\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0435 \u0448\u0430\u0433\u0438.",l=se(),c=H("button"),c.textContent="\u0417\u0430\u043A\u0440\u044B\u0442\u044C",k(i,"d","M42 73.5C24.6015 73.5 10.5 59.3985 10.5 42C10.5 24.6015 24.6015 10.5 42 10.5C59.3985 10.5 73.5 24.6015 73.5 42C73.5 59.3985 59.3985 73.5 42 73.5Z"),k(i,"stroke","#EE2323"),k(i,"stroke-width","3"),k(i,"stroke-linecap","round"),k(i,"stroke-linejoin","round"),k(r,"d","M56 35L38.5 52.5L28 42"),k(r,"stroke","#EE2323"),k(r,"stroke-width","3"),k(r,"stroke-linecap","round"),k(r,"stroke-linejoin","round"),k(n,"class","mx-auto"),k(n,"width","84"),k(n,"height","84"),k(n,"viewBox","0 0 84 84"),k(n,"fill","none"),k(n,"xmlns","http://www.w3.org/2000/svg"),k(a,"class","font-display text-h100 font-medium mb-8 mt-12"),k(o,"class","text-grayscale-150 mb-15 text-p100"),k(c,"class","block px-20 h-27 bg-red-100 disabled:bg-grayscale-450 disabled:text-grayscale-250 hover:bg-red-50 active:bg-red-150 focus-visible:outline-red-100 focus-visible:outline-2 focus-visible:outline ring-red-100 rounded-xl text-white-0 text-p200 font-semibold leading-full w-full overflow-hidden relative"),k(e,"class","text-center")},m(p,v){ae(p,e,v),D(e,n),D(n,i),D(n,r),D(e,s),D(e,a),D(e,u),D(e,o),D(e,l),D(e,c),f||(d=ne(c,"click",t[2]),f=!0)},p:de,i:de,o:de,d(p){p&&ie(e),f=!1,d()}}}function Uu(t,e,n){let i,r;return Ie(t,yt,a=>n(0,i=a)),Ie(t,lt,a=>n(1,r=a)),[i,r,()=>{it(yt,i=!1,i),it(lt,r=!1,r)}]}class Hu extends Te{constructor(e){super(),Ae(this,e,Uu,qu,ke,{})}}function Gu(t){let e,n,i=[{width:"14"},{height:"14"},{fill:"none"},{xmlns:"http://www.w3.org/2000/svg"},t[0]],r={};for(let s=0;s{n(0,e=ee(ee({},e),Ce(i)))},e=Ce(e),[e]}class Yu extends Te{constructor(e){super(),Ae(this,e,zu,Gu,ke,{})}}function Wu(t){let e,n;const i=t[2].default,r=ze(i,t,t[1],null);return{c(){e=H("div"),r&&r.c(),k(e,"class","fera")},m(s,a){ae(s,e,a),r&&r.m(e,null),t[3](e),n=!0},p(s,[a]){r&&r.p&&(!n||a&2)&&We(r,i,s,s[1],n?Ye(i,s[1],a,null):Je(s[1]),null)},i(s){n||(z(r,s),n=!0)},o(s){Q(r,s),n=!1},d(s){s&&ie(e),r&&r.d(s),t[3](null)}}}function Ju(t,e,n){let{$$slots:i={},$$scope:r}=e,s,a;ut(()=>{a=document.createElement("div");const o=a.attachShadow({mode:"open"});a.setAttribute("data-fera-dialog-portal","true"),a.style.zIndex="99999",document.body.appendChild(a);{const l=document.getElementById("fera-widget-style").cloneNode(!0);o.appendChild(l)}return o.appendChild(s),()=>{document.body.removeChild(a)}});function u(o){Ze[o?"unshift":"push"](()=>{s=o,n(0,s)})}return t.$$set=o=>{"$$scope"in o&&n(1,r=o.$$scope)},[s,r,i,u]}class Qu extends Te{constructor(e){super(),Ae(this,e,Ju,Wu,ke,{})}}function Xu(t){let e;const n=t[2].default,i=ze(n,t,t[1],null);return{c(){i&&i.c()},m(r,s){i&&i.m(r,s),e=!0},p(r,[s]){i&&i.p&&(!e||s&2)&&We(i,n,r,r[1],e?Ye(n,r[1],s,null):Je(r[1]),null)},i(r){e||(z(i,r),e=!0)},o(r){Q(i,r),e=!1},d(r){i&&i.d(r)}}}function Zu(t,e,n){let{$$slots:i={},$$scope:r}=e,{enabled:s}=e,a=[];const u=l=>{a.push({ariaHidden:l.getAttribute("aria-hidden"),inert:l.getAttribute("inert")}),l.setAttribute("aria-hidden","true"),l.setAttribute("inert","true")},o=(l,c)=>{const{ariaHidden:f,inert:d}=a[c];f?l.setAttribute("aria-hidden",f):l.removeAttribute("aria-hidden"),d||l.removeAttribute("inert")};return ut(()=>{if(!s)return;const l=document.querySelectorAll("body > *:not([data-fera-dialog-portal])");return l.forEach(u),()=>{l.forEach(o)}}),t.$$set=l=>{"enabled"in l&&n(0,s=l.enabled),"$$scope"in l&&n(1,r=l.$$scope)},[s,r,i]}class Ku extends Te{constructor(e){super(),Ae(this,e,Zu,Xu,ke,{enabled:0})}}function $u(t){let e,n,i,r;const s=t[5].default,a=ze(s,t,t[4],null);return{c(){e=H("div"),a&&a.c()},m(u,o){ae(u,e,o),a&&a.m(e,null),t[6](e),n=!0,i||(r=ne(window,"keydown",t[1]),i=!0)},p(u,[o]){a&&a.p&&(!n||o&16)&&We(a,s,u,u[4],n?Ye(s,u[4],o,null):Je(u[4]),null)},i(u){n||(z(a,u),n=!0)},o(u){Q(a,u),n=!1},d(u){u&&ie(e),a&&a.d(u),t[6](null),i=!1,r()}}}function eo(t,e,n){let{$$slots:i={},$$scope:r}=e,{initialFocusElement:s}=e,{returnFocusElement:a}=e,u,o,l,c,f;ut(()=>{f=a||document.activeElement,o=[...u.querySelectorAll("*")].filter(v=>v.tabIndex>=0),l=o[0],c=o[o.length-1],Xn().then(()=>{s?s.focus():(u.querySelector("[autofocus]")||l||u.querySelector("[data-fera-dialog-content]")).focus()})}),Oi(()=>{f&&f.focus()});const d=v=>{v.key==="Tab"&&(o.length===0&&v.preventDefault(),v.shiftKey?document.activeElement===l&&(v.preventDefault(),c.focus()):document.activeElement===c&&(v.preventDefault(),l.focus()))};function p(v){Ze[v?"unshift":"push"](()=>{u=v,n(0,u)})}return t.$$set=v=>{"initialFocusElement"in v&&n(2,s=v.initialFocusElement),"returnFocusElement"in v&&n(3,a=v.returnFocusElement),"$$scope"in v&&n(4,r=v.$$scope)},[u,d,s,a,r,i,p]}class to extends Te{constructor(e){super(),Ae(this,e,eo,$u,ke,{initialFocusElement:2,returnFocusElement:3})}}function no(t){let e;const n=t[1].default,i=ze(n,t,t[0],null);return{c(){i&&i.c()},m(r,s){i&&i.m(r,s),e=!0},p(r,[s]){i&&i.p&&(!e||s&1)&&We(i,n,r,r[0],e?Ye(n,r[0],s,null):Je(r[0]),null)},i(r){e||(z(i,r),e=!0)},o(r){Q(i,r),e=!1},d(r){i&&i.d(r)}}}function ro(t,e,n){let{$$slots:i={},$$scope:r}=e;return ut(()=>{const{body:s,documentElement:a}=document,u=window.innerWidth-a.clientWidth,o=parseInt(window.getComputedStyle(s).getPropertyValue("padding-right"))||0;return a.style.position="relative",a.style.overflow="hidden",s.style.position="relative",s.style.overflow="hidden",s.style.paddingRight=`${o+u}px`,()=>{a.style.position="",a.style.overflow="",s.style.position="",s.style.overflow="",s.style.paddingRight=""}}),t.$$set=s=>{"$$scope"in s&&n(0,r=s.$$scope)},[r,i]}class io extends Te{constructor(e){super(),Ae(this,e,ro,no,ke,{})}}function so(t){let e,n,i,r,s;const a=t[7].default,u=ze(a,t,t[8],null);let o=[t[5],{"data-fera-dialog-overlay":""}],l={};for(let c=0;c{u()},d=p=>{p.key==="Escape"&&u()};return t.$$set=p=>{e=ee(ee({},e),Ce(p)),n(5,r=Ve(e,i)),"onDismiss"in p&&n(6,u=p.onDismiss),"initialFocusElement"in p&&n(0,o=p.initialFocusElement),"returnFocusElement"in p&&n(1,l=p.returnFocusElement),"ariaModalLegacy"in p&&n(2,c=p.ariaModalLegacy),"$$scope"in p&&n(8,a=p.$$scope)},[o,l,c,f,d,r,u,s,a]}class co extends Te{constructor(e){super(),Ae(this,e,lo,oo,ke,{onDismiss:6,initialFocusElement:0,returnFocusElement:1,ariaModalLegacy:2})}}function vi(t){let e,n;return e=new Qu({props:{$$slots:{default:[ho]},$$scope:{ctx:t}}}),{c(){me(e.$$.fragment)},m(i,r){he(e,i,r),n=!0},p(i,r){const s={};r&190&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){n||(z(e.$$.fragment,i),n=!0)},o(i){Q(e.$$.fragment,i),n=!1},d(i){pe(e,i)}}}function fo(t){let e;const n=t[6].default,i=ze(n,t,t[7],null);return{c(){i&&i.c()},m(r,s){i&&i.m(r,s),e=!0},p(r,s){i&&i.p&&(!e||s&128)&&We(i,n,r,r[7],e?Ye(n,r[7],s,null):Je(r[7]),null)},i(r){e||(z(i,r),e=!0)},o(r){Q(i,r),e=!1},d(r){i&&i.d(r)}}}function ho(t){let e,n;const i=[t[5],{onDismiss:t[1]},{initialFocusElement:t[2]},{returnFocusElement:t[3]},{ariaModalLegacy:t[4]}];let r={$$slots:{default:[fo]},$$scope:{ctx:t}};for(let s=0;s{i=null}),Dt())},i(r){n||(z(i),n=!0)},o(r){Q(i),n=!1},d(r){i&&i.d(r),r&&ie(e)}}}function mo(t,e,n){const i=["isOpen","onDismiss","initialFocusElement","returnFocusElement","ariaModalLegacy"];let r=Ve(e,i),{$$slots:s={},$$scope:a}=e,{isOpen:u}=e,{onDismiss:o}=e,{initialFocusElement:l=null}=e,{returnFocusElement:c=null}=e,{ariaModalLegacy:f=!1}=e;return t.$$set=d=>{e=ee(ee({},e),Ce(d)),n(5,r=Ve(e,i)),"isOpen"in d&&n(0,u=d.isOpen),"onDismiss"in d&&n(1,o=d.onDismiss),"initialFocusElement"in d&&n(2,l=d.initialFocusElement),"returnFocusElement"in d&&n(3,c=d.returnFocusElement),"ariaModalLegacy"in d&&n(4,f=d.ariaModalLegacy),"$$scope"in d&&n(7,a=d.$$scope)},[u,o,l,c,f,r,s,a]}class go extends Te{constructor(e){super(),Ae(this,e,mo,po,ke,{isOpen:0,onDismiss:1,initialFocusElement:2,returnFocusElement:3,ariaModalLegacy:4})}}const So="";function vo(t){let e,n,i,r,s,a,u,o;return n=new ju({}),s=new Yu({}),{c(){e=H("div"),me(n.$$.fragment),i=se(),r=H("button"),me(s.$$.fragment),k(r,"class","absolute top-8 right-8 cursor-pointer p-5 box-content"),k(e,"class","bg-white-0 relative z-max container lg:max-w-screen-lg p-20 rounded-xl")},m(l,c){ae(l,e,c),he(n,e,null),D(e,i),D(e,r),he(s,r,null),a=!0,u||(o=ne(r,"click",t[2]),u=!0)},p:de,i(l){a||(z(n.$$.fragment,l),z(s.$$.fragment,l),a=!0)},o(l){Q(n.$$.fragment,l),Q(s.$$.fragment,l),a=!1},d(l){l&&ie(e),pe(n),pe(s),u=!1,o()}}}function yo(t){let e,n,i;return n=new Hu({}),{c(){e=H("div"),me(n.$$.fragment),k(e,"class","bg-white-0 relative z-max max-w-md p-20 rounded-xl")},m(r,s){ae(r,e,s),he(n,e,null),i=!0},p:de,i(r){i||(z(n.$$.fragment,r),i=!0)},o(r){Q(n.$$.fragment,r),i=!1},d(r){r&&ie(e),pe(n)}}}function _o(t){let e,n,i,r;const s=[yo,vo],a=[];function u(o,l){return o[1]?0:1}return n=u(t),i=a[n]=s[n](t),{c(){e=H("div"),i.c(),k(e,"data-fera-dialog-content",""),k(e,"aria-modal","true"),k(e,"role","dialog"),k(e,"tabindex","-1")},m(o,l){ae(o,e,l),a[n].m(e,null),r=!0},p(o,l){let c=n;n=u(o),n===c?a[n].p(o,l):(Ot(),Q(a[c],1,1,()=>{a[c]=null}),Dt(),i=a[n],i?i.p(o,l):(i=a[n]=s[n](o),i.c()),z(i,1),i.m(e,null))},i(o){r||(z(i),r=!0)},o(o){Q(i),r=!1},d(o){o&&ie(e),a[n].d()}}}function ko(t){let e,n;return e=new go({props:{class:"bg-grayscale-0 bg-opacity-30 fixed inset-0 overflow-y-auto font-body z-max",isOpen:t[0],initialFocusElement:null,returnFocusElement:null,ariaModalLegacy:!1,onDismiss:t[3],$$slots:{default:[_o]},$$scope:{ctx:t}}}),{c(){me(e.$$.fragment)},m(i,r){he(e,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.isOpen=i[0]),r&3&&(s.onDismiss=i[3]),r&19&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){n||(z(e.$$.fragment,i),n=!0)},o(i){Q(e.$$.fragment,i),n=!1},d(i){pe(e,i)}}}function Eo(t,e,n){let i,r;return Ie(t,yt,u=>n(0,i=u)),Ie(t,lt,u=>n(1,r=u)),[i,r,()=>{it(yt,i=!1,i),it(lt,r=!1,r)},()=>{it(yt,i=!1,i),it(lt,r=!1,r)}]}class bo extends Te{constructor(e){super(),Ae(this,e,Eo,ko,ke,{})}}const Ao=document.createElement("div");return Pi(window,{},window.document.currentScript,()=>new bo({target:Ao})),{}}();