@tmsoft/webphone 2.0.35 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -18
- package/dist/lib/types.d.ts +5 -0
- package/dist/src/components/WebPhone.vue.d.ts +3 -0
- package/dist/webphone.component.js +27 -27
- package/dist/webphone.es.js +294 -227
- package/dist/webphone.umd.js +18 -18
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";@import "https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";@layer components;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}[data-v-83878280],[data-v-83878280]:before,[data-v-83878280]:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}[data-v-83878280]::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--wp-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--wp-color-red-500:#fb2c36;--wp-color-amber-100:#fef3c6;--wp-color-amber-400:#fcbb00;--wp-color-amber-500:#f99c00;--wp-color-amber-600:#dd7400;--wp-color-amber-900:#7b3306;--wp-color-green-500:#00c758;--wp-color-emerald-100:#d0fae5;--wp-color-emerald-400:#00d294;--wp-color-emerald-600:#009767;--wp-color-emerald-900:#004e3b;--wp-color-blue-100:#dbeafe;--wp-color-blue-400:#54a2ff;--wp-color-blue-500:#3080ff;--wp-color-blue-600:#155dfc;--wp-color-blue-900:#1c398e;--wp-color-purple-100:#f3e8ff;--wp-color-purple-400:#c07eff;--wp-color-purple-600:#9810fa;--wp-color-purple-900:#59168b;--wp-color-neutral-100:#f5f5f5;--wp-color-neutral-200:#e5e5e5;--wp-color-neutral-400:#a1a1a1;--wp-color-neutral-500:#737373;--wp-color-neutral-600:#525252;--wp-color-neutral-700:#404040;--wp-color-neutral-800:#262626;--wp-color-neutral-900:#171717;--wp-color-black:#000;--wp-color-white:#fff;--wp-spacing:.25rem;--wp-breakpoint-2xl:96rem;--wp-container-sm:24rem;--wp-container-md:28rem;--wp-container-lg:32rem;--wp-text-xs:.75rem;--wp-text-xs--line-height:calc(1 / .75);--wp-text-sm:.875rem;--wp-text-sm--line-height:calc(1.25 / .875);--wp-text-base:1rem;--wp-text-base--line-height:calc(1.5 / 1);--wp-text-lg:1.125rem;--wp-text-lg--line-height:calc(1.75 / 1.125);--wp-text-2xl:1.5rem;--wp-text-2xl--line-height:calc(2 / 1.5);--wp-text-3xl:1.875rem;--wp-text-3xl--line-height:calc(2.25 / 1.875);--wp-font-weight-light:300;--wp-font-weight-medium:500;--wp-font-weight-semibold:600;--wp-font-weight-bold:700;--wp-tracking-wider:.05em;--wp-tracking-widest:.1em;--wp-radius-xs:.125rem;--wp-radius-2xl:1rem;--wp-ease-in-out:cubic-bezier(.4, 0, .2, 1);--wp-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--wp-aspect-video:16 / 9;--wp-default-transition-duration:.15s;--wp-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--wp-default-font-family:"Montserrat", sans-serif;--wp-default-mono-font-family:var(--wp-font-mono)}@supports (color:color(display-p3 0 0 0)){:root,:host{--wp-color-red-500:color(display-p3 .903738 .262579 .253307);--wp-color-amber-100:color(display-p3 .989391 .954583 .796328);--wp-color-amber-400:color(display-p3 .959186 .738519 .118268);--wp-color-amber-500:color(display-p3 .93994 .620584 .0585367);--wp-color-amber-600:color(display-p3 .827144 .467166 .0336006);--wp-color-amber-900:color(display-p3 .445958 .216422 .0823321);--wp-color-green-500:color(display-p3 .308734 .774754 .374307);--wp-color-emerald-100:color(display-p3 .848335 .975974 .901691);--wp-color-emerald-400:color(display-p3 .334701 .819603 .591575);--wp-color-emerald-600:color(display-p3 .206557 .589057 .413962);--wp-color-emerald-900:color(display-p3 .117821 .302975 .234501);--wp-color-blue-100:color(display-p3 .869214 .915931 .989622);--wp-color-blue-400:color(display-p3 .397443 .62813 .992116);--wp-color-blue-500:color(display-p3 .266422 .491219 .988624);--wp-color-blue-600:color(display-p3 .174493 .358974 .950247);--wp-color-blue-900:color(display-p3 .136395 .219428 .537145);--wp-color-purple-100:color(display-p3 .945034 .910569 .992972);--wp-color-purple-400:color(display-p3 .719919 .492497 .995173);--wp-color-purple-600:color(display-p3 .546729 .130167 .94439);--wp-color-purple-900:color(display-p3 .321698 .107597 .524563);--wp-color-neutral-100:color(display-p3 .960587 .960587 .960587);--wp-color-neutral-200:color(display-p3 .898161 .898161 .898161);--wp-color-neutral-400:color(display-p3 .630163 .630163 .630163);--wp-color-neutral-500:color(display-p3 .451519 .451519 .451519);--wp-color-neutral-600:color(display-p3 .321993 .321993 .321993);--wp-color-neutral-700:color(display-p3 .250471 .250471 .250471);--wp-color-neutral-800:color(display-p3 .149382 .149382 .149382);--wp-color-neutral-900:color(display-p3 .0905274 .0905274 .0905274)}}@supports (color:lab(0% 0 0)){:root,:host{--wp-color-red-500:lab(55.4814% 75.0732 48.8528);--wp-color-amber-100:lab(95.916% -1.21653 23.111);--wp-color-amber-400:lab(80.1641% 16.6016 99.2089);--wp-color-amber-500:lab(72.7183% 31.8672 97.9407);--wp-color-amber-600:lab(60.3514% 40.5624 87.1228);--wp-color-amber-900:lab(31.2288% 30.2627 40.0378);--wp-color-green-500:lab(70.5521% -66.5147 45.8073);--wp-color-emerald-100:lab(94.9004% -17.0769 5.63836);--wp-color-emerald-400:lab(75.0771% -60.7313 19.4147);--wp-color-emerald-600:lab(55.0481% -49.9246 15.93);--wp-color-emerald-900:lab(28.8637% -26.9249 5.45986);--wp-color-blue-100:lab(92.0301% -2.24757 -11.6453);--wp-color-blue-400:lab(65.0361% -1.42065 -56.9802);--wp-color-blue-500:lab(54.1736% 13.3369 -74.6839);--wp-color-blue-600:lab(44.0605% 29.0279 -86.0352);--wp-color-blue-900:lab(26.1542% 15.7545 -51.5504);--wp-color-purple-100:lab(93.3333% 6.97437 -9.83434);--wp-color-purple-400:lab(63.6946% 47.6127 -59.2066);--wp-color-purple-600:lab(43.0295% 75.21 -86.5669);--wp-color-purple-900:lab(24.9401% 45.2703 -51.2728);--wp-color-neutral-100:lab(96.52% -.0000298023 .0000119209);--wp-color-neutral-200:lab(90.952% 0 -.0000119209);--wp-color-neutral-400:lab(66.128% -.0000298023 .0000119209);--wp-color-neutral-500:lab(48.496% 0 0);--wp-color-neutral-600:lab(34.924% 0 0);--wp-color-neutral-700:lab(27.036% 0 0);--wp-color-neutral-800:lab(15.204% 0 -.00000596046);--wp-color-neutral-900:lab(7.78201% -.0000149012 0)}}[data-v-83878280]:root,[data-v-83878280]:host{--wp-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--wp-color-red-500:#fb2c36;--wp-color-amber-100:#fef3c6;--wp-color-amber-400:#fcbb00;--wp-color-amber-500:#f99c00;--wp-color-amber-600:#dd7400;--wp-color-amber-900:#7b3306;--wp-color-green-500:#00c758;--wp-color-emerald-100:#d0fae5;--wp-color-emerald-400:#00d294;--wp-color-emerald-600:#009767;--wp-color-emerald-900:#004e3b;--wp-color-blue-100:#dbeafe;--wp-color-blue-400:#54a2ff;--wp-color-blue-500:#3080ff;--wp-color-blue-600:#155dfc;--wp-color-blue-900:#1c398e;--wp-color-purple-100:#f3e8ff;--wp-color-purple-400:#c07eff;--wp-color-purple-600:#9810fa;--wp-color-purple-900:#59168b;--wp-color-neutral-100:#f5f5f5;--wp-color-neutral-200:#e5e5e5;--wp-color-neutral-400:#a1a1a1;--wp-color-neutral-500:#737373;--wp-color-neutral-600:#525252;--wp-color-neutral-700:#404040;--wp-color-neutral-800:#262626;--wp-color-neutral-900:#171717;--wp-color-black:#000;--wp-color-white:#fff;--wp-spacing:.25rem;--wp-breakpoint-2xl:96rem;--wp-container-sm:24rem;--wp-container-md:28rem;--wp-container-lg:32rem;--wp-text-xs:.75rem;--wp-text-xs--line-height:calc(1 / .75);--wp-text-sm:.875rem;--wp-text-sm--line-height:calc(1.25 / .875);--wp-text-base:1rem;--wp-text-base--line-height:calc(1.5 / 1);--wp-text-lg:1.125rem;--wp-text-lg--line-height:calc(1.75 / 1.125);--wp-text-2xl:1.5rem;--wp-text-2xl--line-height:calc(2 / 1.5);--wp-text-3xl:1.875rem;--wp-text-3xl--line-height:calc(2.25 / 1.875);--wp-font-weight-light:300;--wp-font-weight-medium:500;--wp-font-weight-semibold:600;--wp-font-weight-bold:700;--wp-tracking-wider:.05em;--wp-tracking-widest:.1em;--wp-radius-xs:.125rem;--wp-radius-2xl:1rem;--wp-ease-in-out:cubic-bezier(.4, 0, .2, 1);--wp-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--wp-aspect-video:16 / 9;--wp-default-transition-duration:.15s;--wp-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--wp-default-font-family:"Montserrat", sans-serif;--wp-default-mono-font-family:var(--wp-font-mono)}@supports (color:color(display-p3 0 0 0)){[data-v-83878280]:root,[data-v-83878280]:host{--wp-color-red-500:color(display-p3 .903738 .262579 .253307);--wp-color-amber-100:color(display-p3 .989391 .954583 .796328);--wp-color-amber-400:color(display-p3 .959186 .738519 .118268);--wp-color-amber-500:color(display-p3 .93994 .620584 .0585367);--wp-color-amber-600:color(display-p3 .827144 .467166 .0336006);--wp-color-amber-900:color(display-p3 .445958 .216422 .0823321);--wp-color-green-500:color(display-p3 .308734 .774754 .374307);--wp-color-emerald-100:color(display-p3 .848335 .975974 .901691);--wp-color-emerald-400:color(display-p3 .334701 .819603 .591575);--wp-color-emerald-600:color(display-p3 .206557 .589057 .413962);--wp-color-emerald-900:color(display-p3 .117821 .302975 .234501);--wp-color-blue-100:color(display-p3 .869214 .915931 .989622);--wp-color-blue-400:color(display-p3 .397443 .62813 .992116);--wp-color-blue-500:color(display-p3 .266422 .491219 .988624);--wp-color-blue-600:color(display-p3 .174493 .358974 .950247);--wp-color-blue-900:color(display-p3 .136395 .219428 .537145);--wp-color-purple-100:color(display-p3 .945034 .910569 .992972);--wp-color-purple-400:color(display-p3 .719919 .492497 .995173);--wp-color-purple-600:color(display-p3 .546729 .130167 .94439);--wp-color-purple-900:color(display-p3 .321698 .107597 .524563);--wp-color-neutral-100:color(display-p3 .960587 .960587 .960587);--wp-color-neutral-200:color(display-p3 .898161 .898161 .898161);--wp-color-neutral-400:color(display-p3 .630163 .630163 .630163);--wp-color-neutral-500:color(display-p3 .451519 .451519 .451519);--wp-color-neutral-600:color(display-p3 .321993 .321993 .321993);--wp-color-neutral-700:color(display-p3 .250471 .250471 .250471);--wp-color-neutral-800:color(display-p3 .149382 .149382 .149382);--wp-color-neutral-900:color(display-p3 .0905274 .0905274 .0905274)}}@supports (color:lab(0% 0 0)){[data-v-83878280]:root,[data-v-83878280]:host{--wp-color-red-500:lab(55.4814% 75.0732 48.8528);--wp-color-amber-100:lab(95.916% -1.21653 23.111);--wp-color-amber-400:lab(80.1641% 16.6016 99.2089);--wp-color-amber-500:lab(72.7183% 31.8672 97.9407);--wp-color-amber-600:lab(60.3514% 40.5624 87.1228);--wp-color-amber-900:lab(31.2288% 30.2627 40.0378);--wp-color-green-500:lab(70.5521% -66.5147 45.8073);--wp-color-emerald-100:lab(94.9004% -17.0769 5.63836);--wp-color-emerald-400:lab(75.0771% -60.7313 19.4147);--wp-color-emerald-600:lab(55.0481% -49.9246 15.93);--wp-color-emerald-900:lab(28.8637% -26.9249 5.45986);--wp-color-blue-100:lab(92.0301% -2.24757 -11.6453);--wp-color-blue-400:lab(65.0361% -1.42065 -56.9802);--wp-color-blue-500:lab(54.1736% 13.3369 -74.6839);--wp-color-blue-600:lab(44.0605% 29.0279 -86.0352);--wp-color-blue-900:lab(26.1542% 15.7545 -51.5504);--wp-color-purple-100:lab(93.3333% 6.97437 -9.83434);--wp-color-purple-400:lab(63.6946% 47.6127 -59.2066);--wp-color-purple-600:lab(43.0295% 75.21 -86.5669);--wp-color-purple-900:lab(24.9401% 45.2703 -51.2728);--wp-color-neutral-100:lab(96.52% -.0000298023 .0000119209);--wp-color-neutral-200:lab(90.952% 0 -.0000119209);--wp-color-neutral-400:lab(66.128% -.0000298023 .0000119209);--wp-color-neutral-500:lab(48.496% 0 0);--wp-color-neutral-600:lab(34.924% 0 0);--wp-color-neutral-700:lab(27.036% 0 0);--wp-color-neutral-800:lab(15.204% 0 -.00000596046);--wp-color-neutral-900:lab(7.78201% -.0000149012 0)}}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--wp-default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--wp-default-font-feature-settings,normal);font-variation-settings:var(--wp-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--wp-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--wp-default-mono-font-feature-settings,normal);font-variation-settings:var(--wp-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::-webkit-file-upload-button{margin-inline-end:4px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground)}[data-v-83878280],[data-v-83878280]:after,[data-v-83878280]:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-83878280]::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-83878280]::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-83878280]::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html[data-v-83878280],[data-v-83878280]:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--wp-default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--wp-default-font-feature-settings,normal);font-variation-settings:var(--wp-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr[data-v-83878280]{height:0;color:inherit;border-top-width:1px}abbr[data-v-83878280]:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1[data-v-83878280],h2[data-v-83878280],h3[data-v-83878280],h4[data-v-83878280],h5[data-v-83878280],h6[data-v-83878280]{font-size:inherit;font-weight:inherit}a[data-v-83878280]{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b[data-v-83878280],strong[data-v-83878280]{font-weight:bolder}code[data-v-83878280],kbd[data-v-83878280],samp[data-v-83878280],pre[data-v-83878280]{font-family:var(--wp-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--wp-default-mono-font-feature-settings,normal);font-variation-settings:var(--wp-default-mono-font-variation-settings,normal);font-size:1em}small[data-v-83878280]{font-size:80%}sub[data-v-83878280],sup[data-v-83878280]{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub[data-v-83878280]{bottom:-.25em}sup[data-v-83878280]{top:-.5em}table[data-v-83878280]{text-indent:0;border-color:inherit;border-collapse:collapse}[data-v-83878280]:-moz-focusring{outline:auto}progress[data-v-83878280]{vertical-align:baseline}summary[data-v-83878280]{display:list-item}ol[data-v-83878280],ul[data-v-83878280],menu[data-v-83878280]{list-style:none}img[data-v-83878280],svg[data-v-83878280],video[data-v-83878280],canvas[data-v-83878280],audio[data-v-83878280],iframe[data-v-83878280],embed[data-v-83878280],object[data-v-83878280]{vertical-align:middle;display:block}img[data-v-83878280],video[data-v-83878280]{max-width:100%;height:auto}button[data-v-83878280],input[data-v-83878280],select[data-v-83878280],optgroup[data-v-83878280],textarea[data-v-83878280]{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}[data-v-83878280]::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}[data-v-83878280]::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup[data-v-83878280]{font-weight:bolder}:where(select:is([multiple],[size])) optgroup[data-v-83878280]{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option[data-v-83878280]{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option[data-v-83878280]{padding-inline-start:20px}[data-v-83878280]::-webkit-file-upload-button{margin-inline-end:4px}[data-v-83878280]::file-selector-button{margin-inline-end:4px}[data-v-83878280]::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){[data-v-83878280]::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){[data-v-83878280]::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea[data-v-83878280]{resize:vertical}[data-v-83878280]::-webkit-search-decoration{-webkit-appearance:none}[data-v-83878280]::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}[data-v-83878280]::-webkit-datetime-edit{display:inline-flex}[data-v-83878280]::-webkit-datetime-edit-fields-wrapper{padding:0}[data-v-83878280]::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}[data-v-83878280]::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}[data-v-83878280]::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}[data-v-83878280]::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}[data-v-83878280]::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}[data-v-83878280]::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}[data-v-83878280]::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}[data-v-83878280]::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}[data-v-83878280]::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}[data-v-83878280]::-webkit-calendar-picker-indicator{line-height:1}[data-v-83878280]:-moz-ui-invalid{box-shadow:none}button[data-v-83878280]{-webkit-appearance:button;appearance:button}input[data-v-83878280]:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}[data-v-83878280]::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}[data-v-83878280]::file-selector-button{-webkit-appearance:button;appearance:button}[data-v-83878280]::-webkit-inner-spin-button{height:auto}[data-v-83878280]::-webkit-outer-spin-button{height:auto}[hidden][data-v-83878280]:where(:not([hidden=until-found])){display:none!important}[data-v-83878280]{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){[data-v-83878280]{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body[data-v-83878280]{background-color:var(--background);color:var(--foreground)}}@layer utilities{.wp\\:\\@container\\/card-header{container:card-header/inline-size}.wp\\:pointer-events-none{pointer-events:none}.wp\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wp\\:absolute{position:absolute}.wp\\:fixed{position:fixed}.wp\\:relative{position:relative}.wp\\:sticky{position:sticky}.wp\\:inset-0{inset:calc(var(--wp-spacing) * 0)}.wp\\:inset-x-0{inset-inline:calc(var(--wp-spacing) * 0)}.wp\\:top-0{top:calc(var(--wp-spacing) * 0)}.wp\\:top-1\\/2{top:50%}.wp\\:top-2\\.5{top:calc(var(--wp-spacing) * 2.5)}.wp\\:top-4{top:calc(var(--wp-spacing) * 4)}.wp\\:top-\\[50\\%\\]{top:50%}.wp\\:top-full{top:100%}.wp\\:right-0{right:calc(var(--wp-spacing) * 0)}.wp\\:right-1{right:calc(var(--wp-spacing) * 1)}.wp\\:right-2{right:calc(var(--wp-spacing) * 2)}.wp\\:right-4{right:calc(var(--wp-spacing) * 4)}.wp\\:bottom-2{bottom:calc(var(--wp-spacing) * 2)}.wp\\:bottom-full{bottom:100%}.wp\\:left-0{left:calc(var(--wp-spacing) * 0)}.wp\\:left-0\\.5{left:calc(var(--wp-spacing) * .5)}.wp\\:left-2{left:calc(var(--wp-spacing) * 2)}.wp\\:left-\\[50\\%\\]{left:50%}.wp\\:z-10{z-index:10}.wp\\:z-40{z-index:40}.wp\\:z-50{z-index:50}.wp\\:order-first{order:-9999}.wp\\:col-start-2{grid-column-start:2}.wp\\:row-span-2{grid-row:span 2/span 2}.wp\\:row-start-1{grid-row-start:1}.wp\\:container{width:100%}@media (min-width:40rem){.wp\\:container{max-width:40rem}}@media (min-width:48rem){.wp\\:container{max-width:48rem}}@media (min-width:64rem){.wp\\:container{max-width:64rem}}@media (min-width:80rem){.wp\\:container{max-width:80rem}}@media (min-width:96rem){.wp\\:container{max-width:96rem}}.wp\\:-mx-1{margin-inline:calc(var(--wp-spacing) * -1)}.wp\\:mx-2{margin-inline:calc(var(--wp-spacing) * 2)}.wp\\:mx-auto{margin-inline-start:auto;margin-inline-end:auto}.wp\\:my-1{margin-block:calc(var(--wp-spacing) * 1)}.wp\\:my-2{margin-block:calc(var(--wp-spacing) * 2)}.wp\\:my-8{margin-block:calc(var(--wp-spacing) * 8)}.wp\\:mt-1{margin-top:calc(var(--wp-spacing) * 1)}.wp\\:mr-4{margin-right:calc(var(--wp-spacing) * 4)}.wp\\:mr-auto{margin-right:auto}.wp\\:mb-1{margin-bottom:calc(var(--wp-spacing) * 1)}.wp\\:mb-2{margin-bottom:calc(var(--wp-spacing) * 2)}.wp\\:mb-4{margin-bottom:calc(var(--wp-spacing) * 4)}.wp\\:mb-5{margin-bottom:calc(var(--wp-spacing) * 5)}.wp\\:ml-auto{margin-left:auto}.wp\\:block{display:block}.wp\\:flex{display:flex}.wp\\:grid{display:grid}.wp\\:hidden{display:none}.wp\\:inline-flex{display:inline-flex}.wp\\:aspect-square{aspect-ratio:1}.wp\\:aspect-video{aspect-ratio:var(--wp-aspect-video)}.wp\\:size-2{width:calc(var(--wp-spacing) * 2);height:calc(var(--wp-spacing) * 2)}.wp\\:size-2\\.5{width:calc(var(--wp-spacing) * 2.5);height:calc(var(--wp-spacing) * 2.5)}.wp\\:size-3{width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:size-3\\.5{width:calc(var(--wp-spacing) * 3.5);height:calc(var(--wp-spacing) * 3.5)}.wp\\:size-4{width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:size-5{width:calc(var(--wp-spacing) * 5);height:calc(var(--wp-spacing) * 5)}.wp\\:size-6{width:calc(var(--wp-spacing) * 6);height:calc(var(--wp-spacing) * 6)}.wp\\:size-8{width:calc(var(--wp-spacing) * 8);height:calc(var(--wp-spacing) * 8)}.wp\\:size-9{width:calc(var(--wp-spacing) * 9);height:calc(var(--wp-spacing) * 9)}.wp\\:size-10{width:calc(var(--wp-spacing) * 10);height:calc(var(--wp-spacing) * 10)}.wp\\:size-12{width:calc(var(--wp-spacing) * 12);height:calc(var(--wp-spacing) * 12)}.wp\\:size-full{width:100%;height:100%}.wp\\:h-2\\.5{height:calc(var(--wp-spacing) * 2.5)}.wp\\:h-3{height:calc(var(--wp-spacing) * 3)}.wp\\:h-4{height:calc(var(--wp-spacing) * 4)}.wp\\:h-5{height:calc(var(--wp-spacing) * 5)}.wp\\:h-6{height:calc(var(--wp-spacing) * 6)}.wp\\:h-7{height:calc(var(--wp-spacing) * 7)}.wp\\:h-8{height:calc(var(--wp-spacing) * 8)}.wp\\:h-9{height:calc(var(--wp-spacing) * 9)}.wp\\:h-10{height:calc(var(--wp-spacing) * 10)}.wp\\:h-12{height:calc(var(--wp-spacing) * 12)}.wp\\:h-14{height:calc(var(--wp-spacing) * 14)}.wp\\:h-16{height:calc(var(--wp-spacing) * 16)}.wp\\:h-64{height:calc(var(--wp-spacing) * 64)}.wp\\:h-80{height:calc(var(--wp-spacing) * 80)}.wp\\:h-\\[16px\\]{height:16px}.wp\\:h-\\[60vh\\]{height:60vh}.wp\\:h-\\[var\\(--reka-select-trigger-height\\)\\]{height:var(--reka-select-trigger-height)}.wp\\:h-full{height:100%}.wp\\:h-px{height:1px}.wp\\:max-h-\\(--reka-dropdown-menu-content-available-height\\){max-height:var(--reka-dropdown-menu-content-available-height)}.wp\\:max-h-\\(--reka-select-content-available-height\\){max-height:var(--reka-select-content-available-height)}.wp\\:max-h-0{max-height:calc(var(--wp-spacing) * 0)}.wp\\:max-h-40{max-height:calc(var(--wp-spacing) * 40)}.wp\\:max-h-60{max-height:calc(var(--wp-spacing) * 60)}.wp\\:max-h-\\[300px\\]{max-height:300px}.wp\\:min-h-10{min-height:calc(var(--wp-spacing) * 10)}.wp\\:min-h-\\[calc\\(100vh-3\\.5rem\\)\\]{min-height:calc(100vh - 3.5rem)}.wp\\:min-h-screen{min-height:100vh}.wp\\:\\!w-full{width:100%!important}.wp\\:w-2\\.5{width:calc(var(--wp-spacing) * 2.5)}.wp\\:w-3{width:calc(var(--wp-spacing) * 3)}.wp\\:w-4{width:calc(var(--wp-spacing) * 4)}.wp\\:w-5{width:calc(var(--wp-spacing) * 5)}.wp\\:w-6{width:calc(var(--wp-spacing) * 6)}.wp\\:w-8{width:calc(var(--wp-spacing) * 8)}.wp\\:w-9{width:calc(var(--wp-spacing) * 9)}.wp\\:w-12{width:calc(var(--wp-spacing) * 12)}.wp\\:w-16{width:calc(var(--wp-spacing) * 16)}.wp\\:w-24{width:calc(var(--wp-spacing) * 24)}.wp\\:w-48{width:calc(var(--wp-spacing) * 48)}.wp\\:w-72{width:calc(var(--wp-spacing) * 72)}.wp\\:w-\\[16px\\]{width:16px}.wp\\:w-\\[min\\(92vw\\,330px\\)\\]{width:min(92vw,330px)}.wp\\:w-auto{width:auto}.wp\\:w-fit{width:-moz-fit-content;width:fit-content}.wp\\:w-full{width:100%}.wp\\:max-w-80{max-width:calc(var(--wp-spacing) * 80)}.wp\\:max-w-\\[330px\\]{max-width:330px}.wp\\:max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.wp\\:max-w-lg{max-width:var(--wp-container-lg)}.wp\\:max-w-md{max-width:var(--wp-container-md)}.wp\\:max-w-screen-2xl{max-width:var(--wp-breakpoint-2xl)}.wp\\:min-w-0{min-width:calc(var(--wp-spacing) * 0)}.wp\\:min-w-5{min-width:calc(var(--wp-spacing) * 5)}.wp\\:min-w-8{min-width:calc(var(--wp-spacing) * 8)}.wp\\:min-w-9{min-width:calc(var(--wp-spacing) * 9)}.wp\\:min-w-10{min-width:calc(var(--wp-spacing) * 10)}.wp\\:min-w-\\[8rem\\]{min-width:8rem}.wp\\:min-w-\\[var\\(--reka-select-trigger-width\\)\\]{min-width:var(--reka-select-trigger-width)}.wp\\:flex-1{flex:1}.wp\\:shrink-0{flex-shrink:0}.wp\\:grow{flex-grow:1}.wp\\:origin-\\(--reka-dropdown-menu-content-transform-origin\\){transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.wp\\:origin-\\(--reka-popover-content-transform-origin\\){transform-origin:var(--reka-popover-content-transform-origin)}.wp\\:translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-0\\.5{--tw-translate-y:calc(var(--wp-spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:rotate-45{rotate:45deg}.wp\\:animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:animate-pulse{animation:var(--wp-animate-pulse)}.wp\\:cursor-default{cursor:default}.wp\\:cursor-move{cursor:move}.wp\\:cursor-pointer{cursor:pointer}.wp\\:touch-none{touch-action:none}.wp\\:scroll-my-1{scroll-margin-block:calc(var(--wp-spacing) * 1)}.wp\\:scroll-py-1{scroll-padding-block:calc(var(--wp-spacing) * 1)}.wp\\:auto-rows-min{grid-auto-rows:min-content}.wp\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.wp\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.wp\\:grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}.wp\\:flex-col{flex-direction:column}.wp\\:flex-col-reverse{flex-direction:column-reverse}.wp\\:place-items-center{place-items:center}.wp\\:items-center{align-items:center}.wp\\:items-end{align-items:flex-end}.wp\\:items-start{align-items:flex-start}.wp\\:justify-between{justify-content:space-between}.wp\\:justify-center{justify-content:center}.wp\\:gap-0{gap:calc(var(--wp-spacing) * 0)}.wp\\:gap-1{gap:calc(var(--wp-spacing) * 1)}.wp\\:gap-1\\.5{gap:calc(var(--wp-spacing) * 1.5)}.wp\\:gap-2{gap:calc(var(--wp-spacing) * 2)}.wp\\:gap-3{gap:calc(var(--wp-spacing) * 3)}.wp\\:gap-4{gap:calc(var(--wp-spacing) * 4)}.wp\\:gap-6{gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-\\[--spacing\\(var\\(--gap\\)\\)\\]{gap:calc(var(--wp-spacing) * var(--gap))}:where(.wp\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.wp\\:gap-x-6{column-gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-y-3{row-gap:calc(var(--wp-spacing) * 3)}.wp\\:self-start{align-self:flex-start}.wp\\:justify-self-end{justify-self:flex-end}.wp\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wp\\:overflow-auto{overflow:auto}.wp\\:overflow-hidden{overflow:hidden}.wp\\:overflow-x-hidden{overflow-x:hidden}.wp\\:overflow-y-auto{overflow-y:auto}.wp\\:rounded{border-radius:.25rem}.wp\\:rounded-2xl{border-radius:var(--wp-radius-2xl)}.wp\\:rounded-\\[2px\\]{border-radius:2px}.wp\\:rounded-\\[inherit\\]{border-radius:inherit}.wp\\:rounded-full{border-radius:3.40282e38px}.wp\\:rounded-lg{border-radius:var(--radius)}.wp\\:rounded-md{border-radius:calc(var(--radius) - 2px)}.wp\\:rounded-sm{border-radius:calc(var(--radius) - 4px)}.wp\\:rounded-xl{border-radius:calc(var(--radius) + 4px)}.wp\\:rounded-xs{border-radius:var(--wp-radius-xs)}.wp\\:border{border-style:var(--tw-border-style);border-width:1px}.wp\\:border-0{border-style:var(--tw-border-style);border-width:0}.wp\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.wp\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.wp\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.wp\\:border-blue-500{border-color:var(--wp-color-blue-500)}.wp\\:border-border{border-color:var(--border)}.wp\\:border-destructive{border-color:var(--destructive)}.wp\\:border-input{border-color:var(--input)}.wp\\:border-primary{border-color:var(--primary)}.wp\\:border-white\\/20{border-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:border-white\\/20{border-color:color-mix(in oklab, var(--wp-color-white) 20%, transparent)}}.wp\\:border-t-transparent{border-top-color:#0000}.wp\\:border-l-transparent{border-left-color:#0000}.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12{background-color:var(--color-red)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12{background-color:color-mix(in oklab, var(--color-red) 12%, transparent)}}.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12{background-color:color-mix(in oklab, var(--p-primary-color) 12%, transparent)}}.wp\\:bg-amber-100{background-color:var(--wp-color-amber-100)}.wp\\:bg-background,.wp\\:bg-background\\/95{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-background\\/95{background-color:color-mix(in oklab, var(--background) 95%, transparent)}}.wp\\:bg-black,.wp\\:bg-black\\/80{background-color:var(--wp-color-black)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-black\\/80{background-color:color-mix(in oklab, var(--wp-color-black) 80%, transparent)}}.wp\\:bg-blue-100{background-color:var(--wp-color-blue-100)}.wp\\:bg-border{background-color:var(--border)}.wp\\:bg-card{background-color:var(--card)}.wp\\:bg-destructive{background-color:var(--destructive)}.wp\\:bg-emerald-100{background-color:var(--wp-color-emerald-100)}.wp\\:bg-foreground{background-color:var(--foreground)}.wp\\:bg-muted{background-color:var(--muted)}.wp\\:bg-neutral-100{background-color:var(--wp-color-neutral-100)}.wp\\:bg-neutral-800{background-color:var(--wp-color-neutral-800)}.wp\\:bg-popover{background-color:var(--popover)}.wp\\:bg-primary,.wp\\:bg-primary\\/10{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-primary\\/10{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.wp\\:bg-purple-100{background-color:var(--wp-color-purple-100)}.wp\\:bg-secondary{background-color:var(--secondary)}.wp\\:bg-status-available{background-color:var(--status-available)}.wp\\:bg-transparent{background-color:#0000}.wp\\:bg-white,.wp\\:bg-white\\/70{background-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-white\\/70{background-color:color-mix(in oklab, var(--wp-color-white) 70%, transparent)}}.wp\\:bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 80%, transparent)}}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:from-destructive\\/60{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-destructive\\/60{--tw-gradient-from:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:from-destructive\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-\\[color\\:var\\(--p-primary-color\\)\\]\\/100{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-destructive\\/90{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:to-destructive\\/90{--tw-gradient-to:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:to-destructive\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:fill-current{fill:currentColor}.wp\\:fill-foreground{fill:var(--foreground)}.wp\\:object-contain{object-fit:contain}.wp\\:object-cover{object-fit:cover}.wp\\:p-0{padding:calc(var(--wp-spacing) * 0)}.wp\\:p-0\\.5{padding:calc(var(--wp-spacing) * .5)}.wp\\:p-1{padding:calc(var(--wp-spacing) * 1)}.wp\\:p-2{padding:calc(var(--wp-spacing) * 2)}.wp\\:p-3{padding:calc(var(--wp-spacing) * 3)}.wp\\:p-4{padding:calc(var(--wp-spacing) * 4)}.wp\\:p-6{padding:calc(var(--wp-spacing) * 6)}.wp\\:p-px{padding:1px}.wp\\:px-1{padding-inline:calc(var(--wp-spacing) * 1)}.wp\\:px-1\\.5{padding-inline:calc(var(--wp-spacing) * 1.5)}.wp\\:px-2{padding-inline:calc(var(--wp-spacing) * 2)}.wp\\:px-2\\.5{padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:px-3{padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:px-4{padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:px-6{padding-inline:calc(var(--wp-spacing) * 6)}.wp\\:px-10{padding-inline:calc(var(--wp-spacing) * 10)}.wp\\:px-14{padding-inline:calc(var(--wp-spacing) * 14)}.wp\\:py-1{padding-block:calc(var(--wp-spacing) * 1)}.wp\\:py-1\\.5{padding-block:calc(var(--wp-spacing) * 1.5)}.wp\\:py-2{padding-block:calc(var(--wp-spacing) * 2)}.wp\\:py-3{padding-block:calc(var(--wp-spacing) * 3)}.wp\\:py-4{padding-block:calc(var(--wp-spacing) * 4)}.wp\\:py-6{padding-block:calc(var(--wp-spacing) * 6)}.wp\\:py-8{padding-block:calc(var(--wp-spacing) * 8)}.wp\\:pt-0{padding-top:calc(var(--wp-spacing) * 0)}.wp\\:pr-2{padding-right:calc(var(--wp-spacing) * 2)}.wp\\:pr-4{padding-right:calc(var(--wp-spacing) * 4)}.wp\\:pr-8{padding-right:calc(var(--wp-spacing) * 8)}.wp\\:pb-0{padding-bottom:calc(var(--wp-spacing) * 0)}.wp\\:pb-4{padding-bottom:calc(var(--wp-spacing) * 4)}.wp\\:pl-2{padding-left:calc(var(--wp-spacing) * 2)}.wp\\:pl-8{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:text-center{text-align:center}.wp\\:text-left{text-align:left}.wp\\:font-mono{font-family:var(--wp-font-mono)}.wp\\:font-sans{font-family:Montserrat,sans-serif}.wp\\:text-2xl{font-size:var(--wp-text-2xl);line-height:var(--tw-leading,var(--wp-text-2xl--line-height))}.wp\\:text-3xl{font-size:var(--wp-text-3xl);line-height:var(--tw-leading,var(--wp-text-3xl--line-height))}.wp\\:text-base{font-size:var(--wp-text-base);line-height:var(--tw-leading,var(--wp-text-base--line-height))}.wp\\:text-lg{font-size:var(--wp-text-lg);line-height:var(--tw-leading,var(--wp-text-lg--line-height))}.wp\\:text-sm{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:text-xs{font-size:var(--wp-text-xs);line-height:var(--tw-leading,var(--wp-text-xs--line-height))}.wp\\:text-\\[10px\\]{font-size:10px}.wp\\:text-\\[12px\\]{font-size:12px}.wp\\:leading-none{--tw-leading:1;line-height:1}.wp\\:font-bold{--tw-font-weight:var(--wp-font-weight-bold);font-weight:var(--wp-font-weight-bold)}.wp\\:font-light{--tw-font-weight:var(--wp-font-weight-light);font-weight:var(--wp-font-weight-light)}.wp\\:font-medium{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:font-semibold{--tw-font-weight:var(--wp-font-weight-semibold);font-weight:var(--wp-font-weight-semibold)}.wp\\:tracking-wider{--tw-tracking:var(--wp-tracking-wider);letter-spacing:var(--wp-tracking-wider)}.wp\\:tracking-widest{--tw-tracking:var(--wp-tracking-widest);letter-spacing:var(--wp-tracking-widest)}.wp\\:text-balance{text-wrap:balance}.wp\\:whitespace-nowrap{white-space:nowrap}.wp\\:text-\\[var\\(--color-avaible\\)\\]{color:var(--color-avaible)}.wp\\:text-\\[var\\(--color-primary\\)\\]{color:var(--color-primary)}.wp\\:text-\\[var\\(--color-red\\)\\]{color:var(--color-red)}.wp\\:text-\\[var\\(--color-settings\\)\\]{color:var(--color-settings)}.wp\\:text-\\[var\\(--p-primary-color\\)\\]{color:var(--p-primary-color)}.wp\\:text-\\[var\\(--primary\\)\\]{color:var(--primary)}.wp\\:text-amber-500{color:var(--wp-color-amber-500)}.wp\\:text-amber-600{color:var(--wp-color-amber-600)}.wp\\:text-background{color:var(--background)}.wp\\:text-black{color:var(--wp-color-black)}.wp\\:text-blue-500{color:var(--wp-color-blue-500)}.wp\\:text-blue-600{color:var(--wp-color-blue-600)}.wp\\:text-card-foreground{color:var(--card-foreground)}.wp\\:text-destructive{color:var(--destructive)}.wp\\:text-emerald-600{color:var(--wp-color-emerald-600)}.wp\\:text-foreground{color:var(--foreground)}.wp\\:text-green-500{color:var(--wp-color-green-500)}.wp\\:text-muted-foreground{color:var(--muted-foreground)}.wp\\:text-neutral-400{color:var(--wp-color-neutral-400)}.wp\\:text-neutral-500{color:var(--wp-color-neutral-500)}.wp\\:text-neutral-600{color:var(--wp-color-neutral-600)}.wp\\:text-neutral-800{color:var(--wp-color-neutral-800)}.wp\\:text-neutral-900{color:var(--wp-color-neutral-900)}.wp\\:text-popover-foreground{color:var(--popover-foreground)}.wp\\:text-primary{color:var(--primary)}.wp\\:text-primary-foreground{color:var(--primary-foreground)}.wp\\:text-purple-600{color:var(--wp-color-purple-600)}.wp\\:text-red-500{color:var(--wp-color-red-500)}.wp\\:text-secondary-foreground{color:var(--secondary-foreground)}.wp\\:text-status-available{color:var(--status-available)}.wp\\:text-status-disconnected{color:var(--status-disconnected)}.wp\\:text-status-hold{color:var(--status-hold)}.wp\\:text-status-incall{color:var(--status-incall)}.wp\\:text-status-incoming{color:var(--status-incoming)}.wp\\:text-white{color:var(--wp-color-white)}.wp\\:capitalize{text-transform:capitalize}.wp\\:underline-offset-4{text-underline-offset:4px}.wp\\:opacity-0{opacity:0}.wp\\:opacity-50{opacity:.5}.wp\\:opacity-70{opacity:.7}.wp\\:opacity-100{opacity:1}.wp\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:inset-shadow-2xs{--tw-inset-shadow:inset 0 1px var(--tw-inset-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:ring-ring\\/50{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:ring-ring\\/50{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:ring-offset-background{--tw-ring-offset-color:var(--background)}.wp\\:outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:outline-hidden{outline-offset:2px;outline:2px solid #0000}}.wp\\:backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:backdrop-blur-\\[1px\\]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.wp\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.wp\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.wp\\:ease-in-out{--tw-ease:var(--wp-ease-in-out);transition-timing-function:var(--wp-ease-in-out)}.wp\\:fade-in-0{--tw-enter-opacity:0}.wp\\:outline-none{--tw-outline-style:none;outline-style:none}.wp\\:select-none{-webkit-user-select:none;user-select:none}.wp\\:select-text{-webkit-user-select:text;user-select:text}.wp\\:zoom-in-95{--tw-enter-scale:.95}.wp\\:group-data-\\[disabled\\=true\\]\\:pointer-events-none:is(:where(.wp\\:group)[data-disabled=true] *){pointer-events:none}.wp\\:group-data-\\[disabled\\=true\\]\\:opacity-50:is(:where(.wp\\:group)[data-disabled=true] *){opacity:.5}.wp\\:peer-disabled\\:cursor-not-allowed:is(:where(.wp\\:peer):disabled~*){cursor:not-allowed}.wp\\:peer-disabled\\:opacity-50:is(:where(.wp\\:peer):disabled~*){opacity:.5}.wp\\:selection\\:bg-primary ::selection,.wp\\:selection\\:bg-primary::selection{background-color:var(--primary)}.wp\\:selection\\:text-primary-foreground ::selection,.wp\\:selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.wp\\:file\\:inline-flex::-webkit-file-upload-button{display:inline-flex}.wp\\:file\\:inline-flex::file-selector-button{display:inline-flex}.wp\\:file\\:h-7::-webkit-file-upload-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:h-7::file-selector-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:border-0::-webkit-file-upload-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:bg-transparent::-webkit-file-upload-button{background-color:#0000}.wp\\:file\\:bg-transparent::file-selector-button{background-color:#0000}.wp\\:file\\:text-sm::-webkit-file-upload-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:text-sm::file-selector-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:font-medium::-webkit-file-upload-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:font-medium::file-selector-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:text-foreground::-webkit-file-upload-button{color:var(--foreground)}.wp\\:file\\:text-foreground::file-selector-button{color:var(--foreground)}.wp\\:placeholder\\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.wp\\:last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8:hover{background-color:color-mix(in oklab, var(--p-primary-color) 8%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10:hover{background-color:color-mix(in oklab, var(--p-primary-color) 10%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20:hover{background-color:color-mix(in oklab, var(--p-primary-color) 20%, transparent)}}.wp\\:hover\\:bg-accent:hover,.wp\\:hover\\:bg-accent\\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:hover\\:bg-muted:hover{background-color:var(--muted)}.wp\\:hover\\:bg-neutral-100:hover{background-color:var(--wp-color-neutral-100)}.wp\\:hover\\:bg-neutral-200:hover{background-color:var(--wp-color-neutral-200)}.wp\\:hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.wp\\:hover\\:bg-secondary:hover,.wp\\:hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.wp\\:hover\\:bg-status-available\\/90:hover{background-color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-status-available\\/90:hover{background-color:color-mix(in oklab, var(--status-available) 90%, transparent)}}.wp\\:hover\\:bg-transparent:hover{background-color:#0000}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 75%, transparent)}}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-from:color-mix(in oklab, var(--destructive) 70%, transparent)}}.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-\\[color\\:var\\(--p-primary-color\\)\\]:hover{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-to:color-mix(in oklab, var(--destructive) 95%, transparent)}}.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.wp\\:hover\\:text-destructive:hover{color:var(--destructive)}.wp\\:hover\\:text-muted-foreground:hover{color:var(--muted-foreground)}.wp\\:hover\\:text-primary:hover{color:var(--primary)}.wp\\:hover\\:text-status-available\\/80:hover{color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-available\\/80:hover{color:color-mix(in oklab, var(--status-available) 80%, transparent)}}.wp\\:hover\\:text-status-disconnected:hover,.wp\\:hover\\:text-status-disconnected\\/80:hover{color:var(--status-disconnected)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-disconnected\\/80:hover{color:color-mix(in oklab, var(--status-disconnected) 80%, transparent)}}.wp\\:hover\\:text-status-hold\\/80:hover{color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-hold\\/80:hover{color:color-mix(in oklab, var(--status-hold) 80%, transparent)}}.wp\\:hover\\:text-status-incall\\/80:hover{color:var(--status-incall)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incall\\/80:hover{color:color-mix(in oklab, var(--status-incall) 80%, transparent)}}.wp\\:hover\\:text-status-incoming\\/80:hover{color:var(--status-incoming)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incoming\\/80:hover{color:color-mix(in oklab, var(--status-incoming) 80%, transparent)}}.wp\\:hover\\:underline:hover{text-decoration-line:underline}.wp\\:hover\\:opacity-80:hover{opacity:.8}.wp\\:hover\\:opacity-100:hover{opacity:1}.wp\\:hover\\:ring-4:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.wp\\:focus\\:z-10:focus{z-index:10}.wp\\:focus\\:bg-accent:focus{background-color:var(--accent)}.wp\\:focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.wp\\:focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.wp\\:focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:z-10:focus-visible{z-index:10}.wp\\:focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.wp\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[var\\(--p-primary-color\\)\\]:focus-visible{--tw-ring-color:var(--p-primary-color)}.wp\\:focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus-visible\\:ring-offset-white:focus-visible{--tw-ring-offset-color:var(--wp-color-white)}.wp\\:focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.wp\\:active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.wp\\:disabled\\:pointer-events-none:disabled{pointer-events:none}.wp\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.wp\\:disabled\\:opacity-50:disabled{opacity:.5}.wp\\:has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.wp\\:has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.wp\\:data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.wp\\:data-\\[highlighted\\]\\:bg-accent[data-highlighted]{background-color:var(--accent)}.wp\\:data-\\[highlighted\\]\\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.wp\\:data-\\[inset\\]\\:pl-8[data-inset]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal]{height:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal]{height:100%}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.wp\\:data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical]{min-height:calc(var(--wp-spacing) * 44)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical]{width:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical]{width:auto}.wp\\:data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.wp\\:data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical]{flex-direction:column}.wp\\:data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.wp\\:data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.wp\\:data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.wp\\:data-\\[size\\=default\\]\\:h-9[data-size=default]{height:calc(var(--wp-spacing) * 9)}.wp\\:data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:calc(var(--wp-spacing) * 8)}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--wp-spacing) * 2)}.wp\\:data-\\[spacing\\=0\\]\\:rounded-none[data-spacing="0"]{border-radius:0}.wp\\:data-\\[spacing\\=0\\]\\:shadow-none[data-spacing="0"]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:data-\\[spacing\\=0\\]\\:first\\:rounded-l-md[data-spacing="0"]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[spacing\\=0\\]\\:last\\:rounded-r-md[data-spacing="0"]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.wp\\:data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.wp\\:data-\\[state\\=on\\]\\:bg-accent[data-state=on]{background-color:var(--accent)}.wp\\:data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.wp\\:data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.wp\\:data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.wp\\:data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.wp\\:data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:var(--destructive)}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.wp\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline]{border-color:var(--color-primary-500)}.wp\\:data-\\[variant\\=outline\\]\\:focus-visible\\:ring-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline]:focus-visible{--tw-ring-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border[data-spacing="0"][data-variant=outline]{border-style:var(--tw-border-style);border-width:1px}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-spacing="0"][data-variant=outline]{border-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=default\\]\\:data-\\[variant\\=outline\\]\\:shadow-xs[data-spacing=default][data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.wp\\:supports-backdrop-filter\\:bg-background\\/60{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:supports-backdrop-filter\\:bg-background\\/60{background-color:color-mix(in oklab, var(--background) 60%, transparent)}}}@media (min-width:40rem){.wp\\:sm\\:block{display:block}.wp\\:sm\\:inline{display:inline}.wp\\:sm\\:inline-block{display:inline-block}.wp\\:sm\\:max-w-lg{max-width:var(--wp-container-lg)}.wp\\:sm\\:max-w-md{max-width:var(--wp-container-md)}.wp\\:sm\\:max-w-sm{max-width:var(--wp-container-sm)}.wp\\:sm\\:flex-row{flex-direction:row}.wp\\:sm\\:justify-end{justify-content:flex-end}.wp\\:sm\\:gap-0{gap:calc(var(--wp-spacing) * 0)}.wp\\:sm\\:rounded-lg{border-radius:var(--radius)}.wp\\:sm\\:text-left{text-align:left}}@media (min-width:48rem){.wp\\:md\\:w-full{width:100%}.wp\\:md\\:text-sm{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}}.wp\\:dark\\:border-input:where(.dark,.dark *){border-color:var(--input)}.wp\\:dark\\:bg-amber-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-amber-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-amber-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-amber-900) 30%, transparent)}}.wp\\:dark\\:bg-blue-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-blue-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-blue-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-blue-900) 30%, transparent)}}.wp\\:dark\\:bg-destructive\\/60:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-destructive\\/60:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:dark\\:bg-emerald-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-emerald-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-emerald-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-emerald-900) 30%, transparent)}}.wp\\:dark\\:bg-input\\/30:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-input\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.wp\\:dark\\:bg-neutral-700:where(.dark,.dark *){background-color:var(--wp-color-neutral-700)}.wp\\:dark\\:bg-neutral-800:where(.dark,.dark *){background-color:var(--wp-color-neutral-800)}.wp\\:dark\\:bg-neutral-900:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:bg-neutral-900\\/70:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-neutral-900\\/70:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-neutral-900) 70%, transparent)}}.wp\\:dark\\:bg-purple-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-purple-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-purple-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-purple-900) 30%, transparent)}}.wp\\:dark\\:text-amber-400:where(.dark,.dark *){color:var(--wp-color-amber-400)}.wp\\:dark\\:text-blue-400:where(.dark,.dark *){color:var(--wp-color-blue-400)}.wp\\:dark\\:text-emerald-400:where(.dark,.dark *){color:var(--wp-color-emerald-400)}.wp\\:dark\\:text-neutral-400:where(.dark,.dark *){color:var(--wp-color-neutral-400)}.wp\\:dark\\:text-neutral-500:where(.dark,.dark *){color:var(--wp-color-neutral-500)}.wp\\:dark\\:text-purple-400:where(.dark,.dark *){color:var(--wp-color-purple-400)}.wp\\:dark\\:text-white:where(.dark,.dark *){color:var(--wp-color-white)}@media (hover:hover){.wp\\:dark\\:hover\\:bg-accent\\/50:where(.dark,.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-accent\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-input\\/50:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-input\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-600:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-600)}.wp\\:dark\\:hover\\:bg-neutral-800\\/80:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-800)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-neutral-800\\/80:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--wp-color-neutral-800) 80%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-900:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:hover\\:text-neutral-100:where(.dark,.dark *):hover{color:var(--wp-color-neutral-100)}.wp\\:dark\\:hover\\:text-status-disconnected:where(.dark,.dark *):hover{color:var(--status-disconnected)}}.wp\\:dark\\:focus-visible\\:ring-destructive\\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:focus-visible\\:ring-destructive\\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:focus-visible\\:ring-offset-neutral-900:where(.dark,.dark *):focus-visible{--tw-ring-offset-color:var(--wp-color-neutral-900)}.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:\\[\\&_button\\]\\:cursor-pointer button{cursor:pointer}.wp\\:\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.wp\\:\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3 svg:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4 svg:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*="'text-'"]){color:var(--muted-foreground)}.wp\\:\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--wp-spacing) * 6)}.wp\\:\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--wp-spacing) * 6)}:is(.wp\\:\\*\\*\\:\\[\\[role\\=button\\]\\]\\:cursor-pointer *)[role=button]{cursor:pointer}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:flex>*):-webkit-any(span):last-child{display:flex}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center>*):-webkit-any(span):last-child{align-items:center}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2>*):-webkit-any(span):last-child{gap:calc(var(--wp-spacing) * 2)}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--wp-spacing) * 2)}:-webkit-any(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):-webkit-any(svg){color:var(--destructive)!important}:is(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:\\[\\&\\:not\\(\\:first-child\\)\\]\\:border-l-0[data-spacing="0"][data-variant=outline]:not(:first-child){border-left-style:var(--tw-border-style);border-left-width:0}.wp\\:\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg{rotate:180deg}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20{background-color:color-mix(in oklab, var(--background) 20%, transparent)}}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:text-background{color:var(--background)}[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10:where(.dark,.dark *){background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10:where(.dark,.dark *){background-color:color-mix(in oklab, var(--background) 10%, transparent)}}.wp\\:\\@container\\/card-header[data-v-83878280]{container:card-header/inline-size}.wp\\:pointer-events-none[data-v-83878280]{pointer-events:none}.wp\\:sr-only[data-v-83878280]{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wp\\:absolute[data-v-83878280]{position:absolute}.wp\\:fixed[data-v-83878280]{position:fixed}.wp\\:relative[data-v-83878280]{position:relative}.wp\\:sticky[data-v-83878280]{position:sticky}.wp\\:inset-0[data-v-83878280]{inset:calc(var(--wp-spacing) * 0)}.wp\\:inset-x-0[data-v-83878280]{inset-inline:calc(var(--wp-spacing) * 0)}.wp\\:top-0[data-v-83878280]{top:calc(var(--wp-spacing) * 0)}.wp\\:top-1\\/2[data-v-83878280]{top:50%}.wp\\:top-2\\.5[data-v-83878280]{top:calc(var(--wp-spacing) * 2.5)}.wp\\:top-4[data-v-83878280]{top:calc(var(--wp-spacing) * 4)}.wp\\:top-\\[50\\%\\][data-v-83878280]{top:50%}.wp\\:top-full[data-v-83878280]{top:100%}.wp\\:right-0[data-v-83878280]{right:calc(var(--wp-spacing) * 0)}.wp\\:right-1[data-v-83878280]{right:calc(var(--wp-spacing) * 1)}.wp\\:right-2[data-v-83878280]{right:calc(var(--wp-spacing) * 2)}.wp\\:right-4[data-v-83878280]{right:calc(var(--wp-spacing) * 4)}.wp\\:bottom-2[data-v-83878280]{bottom:calc(var(--wp-spacing) * 2)}.wp\\:bottom-full[data-v-83878280]{bottom:100%}.wp\\:left-0[data-v-83878280]{left:calc(var(--wp-spacing) * 0)}.wp\\:left-0\\.5[data-v-83878280]{left:calc(var(--wp-spacing) * .5)}.wp\\:left-2[data-v-83878280]{left:calc(var(--wp-spacing) * 2)}.wp\\:left-\\[50\\%\\][data-v-83878280]{left:50%}.wp\\:z-10[data-v-83878280]{z-index:10}.wp\\:z-40[data-v-83878280]{z-index:40}.wp\\:z-50[data-v-83878280]{z-index:50}.wp\\:order-first[data-v-83878280]{order:-9999}.wp\\:col-start-2[data-v-83878280]{grid-column-start:2}.wp\\:row-span-2[data-v-83878280]{grid-row:span 2/span 2}.wp\\:row-start-1[data-v-83878280]{grid-row-start:1}.wp\\:container[data-v-83878280]{width:100%}@media (min-width:40rem){.wp\\:container[data-v-83878280]{max-width:40rem}}@media (min-width:48rem){.wp\\:container[data-v-83878280]{max-width:48rem}}@media (min-width:64rem){.wp\\:container[data-v-83878280]{max-width:64rem}}@media (min-width:80rem){.wp\\:container[data-v-83878280]{max-width:80rem}}@media (min-width:96rem){.wp\\:container[data-v-83878280]{max-width:96rem}}.wp\\:-mx-1[data-v-83878280]{margin-inline:calc(var(--wp-spacing) * -1)}.wp\\:mx-2[data-v-83878280]{margin-inline:calc(var(--wp-spacing) * 2)}.wp\\:mx-auto[data-v-83878280]{margin-inline-start:auto;margin-inline-end:auto}.wp\\:my-1[data-v-83878280]{margin-block:calc(var(--wp-spacing) * 1)}.wp\\:my-2[data-v-83878280]{margin-block:calc(var(--wp-spacing) * 2)}.wp\\:my-8[data-v-83878280]{margin-block:calc(var(--wp-spacing) * 8)}.wp\\:mt-1[data-v-83878280]{margin-top:calc(var(--wp-spacing) * 1)}.wp\\:mr-4[data-v-83878280]{margin-right:calc(var(--wp-spacing) * 4)}.wp\\:mr-auto[data-v-83878280]{margin-right:auto}.wp\\:mb-1[data-v-83878280]{margin-bottom:calc(var(--wp-spacing) * 1)}.wp\\:mb-2[data-v-83878280]{margin-bottom:calc(var(--wp-spacing) * 2)}.wp\\:mb-4[data-v-83878280]{margin-bottom:calc(var(--wp-spacing) * 4)}.wp\\:mb-5[data-v-83878280]{margin-bottom:calc(var(--wp-spacing) * 5)}.wp\\:ml-auto[data-v-83878280]{margin-left:auto}.wp\\:block[data-v-83878280]{display:block}.wp\\:flex[data-v-83878280]{display:flex}.wp\\:grid[data-v-83878280]{display:grid}.wp\\:hidden[data-v-83878280]{display:none}.wp\\:inline-flex[data-v-83878280]{display:inline-flex}.wp\\:aspect-square[data-v-83878280]{aspect-ratio:1}.wp\\:aspect-video[data-v-83878280]{aspect-ratio:var(--wp-aspect-video)}.wp\\:size-2[data-v-83878280]{width:calc(var(--wp-spacing) * 2);height:calc(var(--wp-spacing) * 2)}.wp\\:size-2\\.5[data-v-83878280]{width:calc(var(--wp-spacing) * 2.5);height:calc(var(--wp-spacing) * 2.5)}.wp\\:size-3[data-v-83878280]{width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:size-3\\.5[data-v-83878280]{width:calc(var(--wp-spacing) * 3.5);height:calc(var(--wp-spacing) * 3.5)}.wp\\:size-4[data-v-83878280]{width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:size-5[data-v-83878280]{width:calc(var(--wp-spacing) * 5);height:calc(var(--wp-spacing) * 5)}.wp\\:size-6[data-v-83878280]{width:calc(var(--wp-spacing) * 6);height:calc(var(--wp-spacing) * 6)}.wp\\:size-8[data-v-83878280]{width:calc(var(--wp-spacing) * 8);height:calc(var(--wp-spacing) * 8)}.wp\\:size-9[data-v-83878280]{width:calc(var(--wp-spacing) * 9);height:calc(var(--wp-spacing) * 9)}.wp\\:size-10[data-v-83878280]{width:calc(var(--wp-spacing) * 10);height:calc(var(--wp-spacing) * 10)}.wp\\:size-12[data-v-83878280]{width:calc(var(--wp-spacing) * 12);height:calc(var(--wp-spacing) * 12)}.wp\\:size-full[data-v-83878280]{width:100%;height:100%}.wp\\:h-2\\.5[data-v-83878280]{height:calc(var(--wp-spacing) * 2.5)}.wp\\:h-3[data-v-83878280]{height:calc(var(--wp-spacing) * 3)}.wp\\:h-4[data-v-83878280]{height:calc(var(--wp-spacing) * 4)}.wp\\:h-5[data-v-83878280]{height:calc(var(--wp-spacing) * 5)}.wp\\:h-6[data-v-83878280]{height:calc(var(--wp-spacing) * 6)}.wp\\:h-7[data-v-83878280]{height:calc(var(--wp-spacing) * 7)}.wp\\:h-8[data-v-83878280]{height:calc(var(--wp-spacing) * 8)}.wp\\:h-9[data-v-83878280]{height:calc(var(--wp-spacing) * 9)}.wp\\:h-10[data-v-83878280]{height:calc(var(--wp-spacing) * 10)}.wp\\:h-12[data-v-83878280]{height:calc(var(--wp-spacing) * 12)}.wp\\:h-14[data-v-83878280]{height:calc(var(--wp-spacing) * 14)}.wp\\:h-16[data-v-83878280]{height:calc(var(--wp-spacing) * 16)}.wp\\:h-64[data-v-83878280]{height:calc(var(--wp-spacing) * 64)}.wp\\:h-80[data-v-83878280]{height:calc(var(--wp-spacing) * 80)}.wp\\:h-\\[16px\\][data-v-83878280]{height:16px}.wp\\:h-\\[60vh\\][data-v-83878280]{height:60vh}.wp\\:h-\\[var\\(--reka-select-trigger-height\\)\\][data-v-83878280]{height:var(--reka-select-trigger-height)}.wp\\:h-full[data-v-83878280]{height:100%}.wp\\:h-px[data-v-83878280]{height:1px}.wp\\:max-h-\\(--reka-dropdown-menu-content-available-height\\)[data-v-83878280]{max-height:var(--reka-dropdown-menu-content-available-height)}.wp\\:max-h-\\(--reka-select-content-available-height\\)[data-v-83878280]{max-height:var(--reka-select-content-available-height)}.wp\\:max-h-0[data-v-83878280]{max-height:calc(var(--wp-spacing) * 0)}.wp\\:max-h-40[data-v-83878280]{max-height:calc(var(--wp-spacing) * 40)}.wp\\:max-h-60[data-v-83878280]{max-height:calc(var(--wp-spacing) * 60)}.wp\\:max-h-\\[300px\\][data-v-83878280]{max-height:300px}.wp\\:min-h-10[data-v-83878280]{min-height:calc(var(--wp-spacing) * 10)}.wp\\:min-h-\\[calc\\(100vh-3\\.5rem\\)\\][data-v-83878280]{min-height:calc(100vh - 3.5rem)}.wp\\:min-h-screen[data-v-83878280]{min-height:100vh}.wp\\:\\!w-full[data-v-83878280]{width:100%!important}.wp\\:w-2\\.5[data-v-83878280]{width:calc(var(--wp-spacing) * 2.5)}.wp\\:w-3[data-v-83878280]{width:calc(var(--wp-spacing) * 3)}.wp\\:w-4[data-v-83878280]{width:calc(var(--wp-spacing) * 4)}.wp\\:w-5[data-v-83878280]{width:calc(var(--wp-spacing) * 5)}.wp\\:w-6[data-v-83878280]{width:calc(var(--wp-spacing) * 6)}.wp\\:w-8[data-v-83878280]{width:calc(var(--wp-spacing) * 8)}.wp\\:w-9[data-v-83878280]{width:calc(var(--wp-spacing) * 9)}.wp\\:w-12[data-v-83878280]{width:calc(var(--wp-spacing) * 12)}.wp\\:w-16[data-v-83878280]{width:calc(var(--wp-spacing) * 16)}.wp\\:w-24[data-v-83878280]{width:calc(var(--wp-spacing) * 24)}.wp\\:w-48[data-v-83878280]{width:calc(var(--wp-spacing) * 48)}.wp\\:w-72[data-v-83878280]{width:calc(var(--wp-spacing) * 72)}.wp\\:w-\\[16px\\][data-v-83878280]{width:16px}.wp\\:w-\\[min\\(92vw\\,330px\\)\\][data-v-83878280]{width:min(92vw,330px)}.wp\\:w-auto[data-v-83878280]{width:auto}.wp\\:w-fit[data-v-83878280]{width:-moz-fit-content;width:fit-content}.wp\\:w-full[data-v-83878280]{width:100%}.wp\\:max-w-80[data-v-83878280]{max-width:calc(var(--wp-spacing) * 80)}.wp\\:max-w-\\[330px\\][data-v-83878280]{max-width:330px}.wp\\:max-w-\\[calc\\(100\\%-2rem\\)\\][data-v-83878280]{max-width:calc(100% - 2rem)}.wp\\:max-w-lg[data-v-83878280]{max-width:var(--wp-container-lg)}.wp\\:max-w-md[data-v-83878280]{max-width:var(--wp-container-md)}.wp\\:max-w-screen-2xl[data-v-83878280]{max-width:var(--wp-breakpoint-2xl)}.wp\\:min-w-0[data-v-83878280]{min-width:calc(var(--wp-spacing) * 0)}.wp\\:min-w-5[data-v-83878280]{min-width:calc(var(--wp-spacing) * 5)}.wp\\:min-w-8[data-v-83878280]{min-width:calc(var(--wp-spacing) * 8)}.wp\\:min-w-9[data-v-83878280]{min-width:calc(var(--wp-spacing) * 9)}.wp\\:min-w-10[data-v-83878280]{min-width:calc(var(--wp-spacing) * 10)}.wp\\:min-w-\\[8rem\\][data-v-83878280]{min-width:8rem}.wp\\:min-w-\\[var\\(--reka-select-trigger-width\\)\\][data-v-83878280]{min-width:var(--reka-select-trigger-width)}.wp\\:flex-1[data-v-83878280]{flex:1}.wp\\:shrink-0[data-v-83878280]{flex-shrink:0}.wp\\:grow[data-v-83878280]{flex-grow:1}.wp\\:origin-\\(--reka-dropdown-menu-content-transform-origin\\)[data-v-83878280]{transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.wp\\:origin-\\(--reka-popover-content-transform-origin\\)[data-v-83878280]{transform-origin:var(--reka-popover-content-transform-origin)}.wp\\:translate-x-\\[-50\\%\\][data-v-83878280]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:-translate-y-1\\/2[data-v-83878280]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-0\\.5[data-v-83878280]{--tw-translate-y:calc(var(--wp-spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[-50\\%\\][data-v-83878280]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[calc\\(-50\\%_-_2px\\)\\][data-v-83878280]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:rotate-45[data-v-83878280]{rotate:45deg}.wp\\:animate-in[data-v-83878280]{animation:enter-83878280 var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:animate-pulse[data-v-83878280]{animation:var(--wp-animate-pulse)}.wp\\:cursor-default[data-v-83878280]{cursor:default}.wp\\:cursor-move[data-v-83878280]{cursor:move}.wp\\:cursor-pointer[data-v-83878280]{cursor:pointer}.wp\\:touch-none[data-v-83878280]{touch-action:none}.wp\\:scroll-my-1[data-v-83878280]{scroll-margin-block:calc(var(--wp-spacing) * 1)}.wp\\:scroll-py-1[data-v-83878280]{scroll-padding-block:calc(var(--wp-spacing) * 1)}.wp\\:auto-rows-min[data-v-83878280]{grid-auto-rows:min-content}.wp\\:grid-cols-2[data-v-83878280]{grid-template-columns:repeat(2,minmax(0,1fr))}.wp\\:grid-cols-3[data-v-83878280]{grid-template-columns:repeat(3,minmax(0,1fr))}.wp\\:grid-rows-\\[auto_auto\\][data-v-83878280]{grid-template-rows:auto auto}.wp\\:flex-col[data-v-83878280]{flex-direction:column}.wp\\:flex-col-reverse[data-v-83878280]{flex-direction:column-reverse}.wp\\:place-items-center[data-v-83878280]{place-items:center}.wp\\:items-center[data-v-83878280]{align-items:center}.wp\\:items-end[data-v-83878280]{align-items:flex-end}.wp\\:items-start[data-v-83878280]{align-items:flex-start}.wp\\:justify-between[data-v-83878280]{justify-content:space-between}.wp\\:justify-center[data-v-83878280]{justify-content:center}.wp\\:gap-0[data-v-83878280]{gap:calc(var(--wp-spacing) * 0)}.wp\\:gap-1[data-v-83878280]{gap:calc(var(--wp-spacing) * 1)}.wp\\:gap-1\\.5[data-v-83878280]{gap:calc(var(--wp-spacing) * 1.5)}.wp\\:gap-2[data-v-83878280]{gap:calc(var(--wp-spacing) * 2)}.wp\\:gap-3[data-v-83878280]{gap:calc(var(--wp-spacing) * 3)}.wp\\:gap-4[data-v-83878280]{gap:calc(var(--wp-spacing) * 4)}.wp\\:gap-6[data-v-83878280]{gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-\\[--spacing\\(var\\(--gap\\)\\)\\][data-v-83878280]{gap:calc(var(--wp-spacing) * var(--gap))}:where(.wp\\:space-y-2[data-v-83878280]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-4[data-v-83878280]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-6[data-v-83878280]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.wp\\:gap-x-6[data-v-83878280]{column-gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-y-3[data-v-83878280]{row-gap:calc(var(--wp-spacing) * 3)}.wp\\:self-start[data-v-83878280]{align-self:flex-start}.wp\\:justify-self-end[data-v-83878280]{justify-self:flex-end}.wp\\:truncate[data-v-83878280]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wp\\:overflow-auto[data-v-83878280]{overflow:auto}.wp\\:overflow-hidden[data-v-83878280]{overflow:hidden}.wp\\:overflow-x-hidden[data-v-83878280]{overflow-x:hidden}.wp\\:overflow-y-auto[data-v-83878280]{overflow-y:auto}.wp\\:rounded[data-v-83878280]{border-radius:.25rem}.wp\\:rounded-2xl[data-v-83878280]{border-radius:var(--wp-radius-2xl)}.wp\\:rounded-\\[2px\\][data-v-83878280]{border-radius:2px}.wp\\:rounded-\\[inherit\\][data-v-83878280]{border-radius:inherit}.wp\\:rounded-full[data-v-83878280]{border-radius:3.40282e38px}.wp\\:rounded-lg[data-v-83878280]{border-radius:var(--radius)}.wp\\:rounded-md[data-v-83878280]{border-radius:calc(var(--radius) - 2px)}.wp\\:rounded-sm[data-v-83878280]{border-radius:calc(var(--radius) - 4px)}.wp\\:rounded-xl[data-v-83878280]{border-radius:calc(var(--radius) + 4px)}.wp\\:rounded-xs[data-v-83878280]{border-radius:var(--wp-radius-xs)}.wp\\:border[data-v-83878280]{border-style:var(--tw-border-style);border-width:1px}.wp\\:border-0[data-v-83878280]{border-style:var(--tw-border-style);border-width:0}.wp\\:border-t[data-v-83878280]{border-top-style:var(--tw-border-style);border-top-width:1px}.wp\\:border-b[data-v-83878280]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.wp\\:border-l[data-v-83878280]{border-left-style:var(--tw-border-style);border-left-width:1px}.wp\\:border-blue-500[data-v-83878280]{border-color:var(--wp-color-blue-500)}.wp\\:border-border[data-v-83878280]{border-color:var(--border)}.wp\\:border-destructive[data-v-83878280]{border-color:var(--destructive)}.wp\\:border-input[data-v-83878280]{border-color:var(--input)}.wp\\:border-primary[data-v-83878280]{border-color:var(--primary)}.wp\\:border-white\\/20[data-v-83878280]{border-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:border-white\\/20[data-v-83878280]{border-color:color-mix(in oklab, var(--wp-color-white) 20%, transparent)}}.wp\\:border-t-transparent[data-v-83878280]{border-top-color:#0000}.wp\\:border-l-transparent[data-v-83878280]{border-left-color:#0000}.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12[data-v-83878280]{background-color:var(--color-red)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12[data-v-83878280]{background-color:color-mix(in oklab, var(--color-red) 12%, transparent)}}.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12[data-v-83878280]{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12[data-v-83878280]{background-color:color-mix(in oklab, var(--p-primary-color) 12%, transparent)}}.wp\\:bg-amber-100[data-v-83878280]{background-color:var(--wp-color-amber-100)}.wp\\:bg-background[data-v-83878280],.wp\\:bg-background\\/95[data-v-83878280]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-background\\/95[data-v-83878280]{background-color:color-mix(in oklab, var(--background) 95%, transparent)}}.wp\\:bg-black[data-v-83878280],.wp\\:bg-black\\/80[data-v-83878280]{background-color:var(--wp-color-black)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-black\\/80[data-v-83878280]{background-color:color-mix(in oklab, var(--wp-color-black) 80%, transparent)}}.wp\\:bg-blue-100[data-v-83878280]{background-color:var(--wp-color-blue-100)}.wp\\:bg-border[data-v-83878280]{background-color:var(--border)}.wp\\:bg-card[data-v-83878280]{background-color:var(--card)}.wp\\:bg-destructive[data-v-83878280]{background-color:var(--destructive)}.wp\\:bg-emerald-100[data-v-83878280]{background-color:var(--wp-color-emerald-100)}.wp\\:bg-foreground[data-v-83878280]{background-color:var(--foreground)}.wp\\:bg-muted[data-v-83878280]{background-color:var(--muted)}.wp\\:bg-neutral-100[data-v-83878280]{background-color:var(--wp-color-neutral-100)}.wp\\:bg-neutral-800[data-v-83878280]{background-color:var(--wp-color-neutral-800)}.wp\\:bg-popover[data-v-83878280]{background-color:var(--popover)}.wp\\:bg-primary[data-v-83878280],.wp\\:bg-primary\\/10[data-v-83878280]{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-primary\\/10[data-v-83878280]{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.wp\\:bg-purple-100[data-v-83878280]{background-color:var(--wp-color-purple-100)}.wp\\:bg-secondary[data-v-83878280]{background-color:var(--secondary)}.wp\\:bg-status-available[data-v-83878280]{background-color:var(--status-available)}.wp\\:bg-transparent[data-v-83878280]{background-color:#0000}.wp\\:bg-white[data-v-83878280],.wp\\:bg-white\\/70[data-v-83878280]{background-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-white\\/70[data-v-83878280]{background-color:color-mix(in oklab, var(--wp-color-white) 70%, transparent)}}.wp\\:bg-gradient-to-r[data-v-83878280]{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-83878280]{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-83878280]{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 80%, transparent)}}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-83878280]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:from-destructive\\/60[data-v-83878280]{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-destructive\\/60[data-v-83878280]{--tw-gradient-from:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:from-destructive\\/60[data-v-83878280]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-\\[color\\:var\\(--p-primary-color\\)\\]\\/100[data-v-83878280]{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-destructive\\/90[data-v-83878280]{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:to-destructive\\/90[data-v-83878280]{--tw-gradient-to:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:to-destructive\\/90[data-v-83878280]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:fill-current[data-v-83878280]{fill:currentColor}.wp\\:fill-foreground[data-v-83878280]{fill:var(--foreground)}.wp\\:object-contain[data-v-83878280]{object-fit:contain}.wp\\:object-cover[data-v-83878280]{object-fit:cover}.wp\\:p-0[data-v-83878280]{padding:calc(var(--wp-spacing) * 0)}.wp\\:p-0\\.5[data-v-83878280]{padding:calc(var(--wp-spacing) * .5)}.wp\\:p-1[data-v-83878280]{padding:calc(var(--wp-spacing) * 1)}.wp\\:p-2[data-v-83878280]{padding:calc(var(--wp-spacing) * 2)}.wp\\:p-3[data-v-83878280]{padding:calc(var(--wp-spacing) * 3)}.wp\\:p-4[data-v-83878280]{padding:calc(var(--wp-spacing) * 4)}.wp\\:p-6[data-v-83878280]{padding:calc(var(--wp-spacing) * 6)}.wp\\:p-px[data-v-83878280]{padding:1px}.wp\\:px-1[data-v-83878280]{padding-inline:calc(var(--wp-spacing) * 1)}.wp\\:px-1\\.5[data-v-83878280]{padding-inline:calc(var(--wp-spacing) * 1.5)}.wp\\:px-2[data-v-83878280]{padding-inline:calc(var(--wp-spacing) * 2)}.wp\\:px-2\\.5[data-v-83878280]{padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:px-3[data-v-83878280]{padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:px-4[data-v-83878280]{padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:px-6[data-v-83878280]{padding-inline:calc(var(--wp-spacing) * 6)}.wp\\:px-10[data-v-83878280]{padding-inline:calc(var(--wp-spacing) * 10)}.wp\\:px-14[data-v-83878280]{padding-inline:calc(var(--wp-spacing) * 14)}.wp\\:py-1[data-v-83878280]{padding-block:calc(var(--wp-spacing) * 1)}.wp\\:py-1\\.5[data-v-83878280]{padding-block:calc(var(--wp-spacing) * 1.5)}.wp\\:py-2[data-v-83878280]{padding-block:calc(var(--wp-spacing) * 2)}.wp\\:py-3[data-v-83878280]{padding-block:calc(var(--wp-spacing) * 3)}.wp\\:py-4[data-v-83878280]{padding-block:calc(var(--wp-spacing) * 4)}.wp\\:py-6[data-v-83878280]{padding-block:calc(var(--wp-spacing) * 6)}.wp\\:py-8[data-v-83878280]{padding-block:calc(var(--wp-spacing) * 8)}.wp\\:pt-0[data-v-83878280]{padding-top:calc(var(--wp-spacing) * 0)}.wp\\:pr-2[data-v-83878280]{padding-right:calc(var(--wp-spacing) * 2)}.wp\\:pr-4[data-v-83878280]{padding-right:calc(var(--wp-spacing) * 4)}.wp\\:pr-8[data-v-83878280]{padding-right:calc(var(--wp-spacing) * 8)}.wp\\:pb-0[data-v-83878280]{padding-bottom:calc(var(--wp-spacing) * 0)}.wp\\:pb-4[data-v-83878280]{padding-bottom:calc(var(--wp-spacing) * 4)}.wp\\:pl-2[data-v-83878280]{padding-left:calc(var(--wp-spacing) * 2)}.wp\\:pl-8[data-v-83878280]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:text-center[data-v-83878280]{text-align:center}.wp\\:text-left[data-v-83878280]{text-align:left}.wp\\:font-mono[data-v-83878280]{font-family:var(--wp-font-mono)}.wp\\:font-sans[data-v-83878280]{font-family:Montserrat,sans-serif}.wp\\:text-2xl[data-v-83878280]{font-size:var(--wp-text-2xl);line-height:var(--tw-leading,var(--wp-text-2xl--line-height))}.wp\\:text-3xl[data-v-83878280]{font-size:var(--wp-text-3xl);line-height:var(--tw-leading,var(--wp-text-3xl--line-height))}.wp\\:text-base[data-v-83878280]{font-size:var(--wp-text-base);line-height:var(--tw-leading,var(--wp-text-base--line-height))}.wp\\:text-lg[data-v-83878280]{font-size:var(--wp-text-lg);line-height:var(--tw-leading,var(--wp-text-lg--line-height))}.wp\\:text-sm[data-v-83878280]{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:text-xs[data-v-83878280]{font-size:var(--wp-text-xs);line-height:var(--tw-leading,var(--wp-text-xs--line-height))}.wp\\:text-\\[10px\\][data-v-83878280]{font-size:10px}.wp\\:text-\\[12px\\][data-v-83878280]{font-size:12px}.wp\\:leading-none[data-v-83878280]{--tw-leading:1;line-height:1}.wp\\:font-bold[data-v-83878280]{--tw-font-weight:var(--wp-font-weight-bold);font-weight:var(--wp-font-weight-bold)}.wp\\:font-light[data-v-83878280]{--tw-font-weight:var(--wp-font-weight-light);font-weight:var(--wp-font-weight-light)}.wp\\:font-medium[data-v-83878280]{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:font-semibold[data-v-83878280]{--tw-font-weight:var(--wp-font-weight-semibold);font-weight:var(--wp-font-weight-semibold)}.wp\\:tracking-wider[data-v-83878280]{--tw-tracking:var(--wp-tracking-wider);letter-spacing:var(--wp-tracking-wider)}.wp\\:tracking-widest[data-v-83878280]{--tw-tracking:var(--wp-tracking-widest);letter-spacing:var(--wp-tracking-widest)}.wp\\:text-balance[data-v-83878280]{text-wrap:balance}.wp\\:whitespace-nowrap[data-v-83878280]{white-space:nowrap}.wp\\:text-\\[var\\(--color-avaible\\)\\][data-v-83878280]{color:var(--color-avaible)}.wp\\:text-\\[var\\(--color-primary\\)\\][data-v-83878280]{color:var(--color-primary)}.wp\\:text-\\[var\\(--color-red\\)\\][data-v-83878280]{color:var(--color-red)}.wp\\:text-\\[var\\(--color-settings\\)\\][data-v-83878280]{color:var(--color-settings)}.wp\\:text-\\[var\\(--p-primary-color\\)\\][data-v-83878280]{color:var(--p-primary-color)}.wp\\:text-\\[var\\(--primary\\)\\][data-v-83878280]{color:var(--primary)}.wp\\:text-amber-500[data-v-83878280]{color:var(--wp-color-amber-500)}.wp\\:text-amber-600[data-v-83878280]{color:var(--wp-color-amber-600)}.wp\\:text-background[data-v-83878280]{color:var(--background)}.wp\\:text-black[data-v-83878280]{color:var(--wp-color-black)}.wp\\:text-blue-500[data-v-83878280]{color:var(--wp-color-blue-500)}.wp\\:text-blue-600[data-v-83878280]{color:var(--wp-color-blue-600)}.wp\\:text-card-foreground[data-v-83878280]{color:var(--card-foreground)}.wp\\:text-destructive[data-v-83878280]{color:var(--destructive)}.wp\\:text-emerald-600[data-v-83878280]{color:var(--wp-color-emerald-600)}.wp\\:text-foreground[data-v-83878280]{color:var(--foreground)}.wp\\:text-green-500[data-v-83878280]{color:var(--wp-color-green-500)}.wp\\:text-muted-foreground[data-v-83878280]{color:var(--muted-foreground)}.wp\\:text-neutral-400[data-v-83878280]{color:var(--wp-color-neutral-400)}.wp\\:text-neutral-500[data-v-83878280]{color:var(--wp-color-neutral-500)}.wp\\:text-neutral-600[data-v-83878280]{color:var(--wp-color-neutral-600)}.wp\\:text-neutral-800[data-v-83878280]{color:var(--wp-color-neutral-800)}.wp\\:text-neutral-900[data-v-83878280]{color:var(--wp-color-neutral-900)}.wp\\:text-popover-foreground[data-v-83878280]{color:var(--popover-foreground)}.wp\\:text-primary[data-v-83878280]{color:var(--primary)}.wp\\:text-primary-foreground[data-v-83878280]{color:var(--primary-foreground)}.wp\\:text-purple-600[data-v-83878280]{color:var(--wp-color-purple-600)}.wp\\:text-red-500[data-v-83878280]{color:var(--wp-color-red-500)}.wp\\:text-secondary-foreground[data-v-83878280]{color:var(--secondary-foreground)}.wp\\:text-status-available[data-v-83878280]{color:var(--status-available)}.wp\\:text-status-disconnected[data-v-83878280]{color:var(--status-disconnected)}.wp\\:text-status-hold[data-v-83878280]{color:var(--status-hold)}.wp\\:text-status-incall[data-v-83878280]{color:var(--status-incall)}.wp\\:text-status-incoming[data-v-83878280]{color:var(--status-incoming)}.wp\\:text-white[data-v-83878280]{color:var(--wp-color-white)}.wp\\:capitalize[data-v-83878280]{text-transform:capitalize}.wp\\:underline-offset-4[data-v-83878280]{text-underline-offset:4px}.wp\\:opacity-0[data-v-83878280]{opacity:0}.wp\\:opacity-50[data-v-83878280]{opacity:.5}.wp\\:opacity-70[data-v-83878280]{opacity:.7}.wp\\:opacity-100[data-v-83878280]{opacity:1}.wp\\:shadow-lg[data-v-83878280]{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-md[data-v-83878280]{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-sm[data-v-83878280]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-xs[data-v-83878280]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:inset-shadow-2xs[data-v-83878280]{--tw-inset-shadow:inset 0 1px var(--tw-inset-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:ring-ring\\/50[data-v-83878280]{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:ring-ring\\/50[data-v-83878280]{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:ring-offset-background[data-v-83878280]{--tw-ring-offset-color:var(--background)}.wp\\:outline-hidden[data-v-83878280]{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:outline-hidden[data-v-83878280]{outline-offset:2px;outline:2px solid #0000}}.wp\\:backdrop-blur[data-v-83878280]{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:backdrop-blur-\\[1px\\][data-v-83878280]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:transition-\\[color\\,box-shadow\\][data-v-83878280]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-all[data-v-83878280]{transition-property:all;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-colors[data-v-83878280]{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-opacity[data-v-83878280]{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-transform[data-v-83878280]{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:duration-150[data-v-83878280]{--tw-duration:.15s;transition-duration:.15s}.wp\\:duration-200[data-v-83878280]{--tw-duration:.2s;transition-duration:.2s}.wp\\:duration-300[data-v-83878280]{--tw-duration:.3s;transition-duration:.3s}.wp\\:ease-in-out[data-v-83878280]{--tw-ease:var(--wp-ease-in-out);transition-timing-function:var(--wp-ease-in-out)}.wp\\:fade-in-0[data-v-83878280]{--tw-enter-opacity:0}.wp\\:outline-none[data-v-83878280]{--tw-outline-style:none;outline-style:none}.wp\\:select-none[data-v-83878280]{-webkit-user-select:none;user-select:none}.wp\\:select-text[data-v-83878280]{-webkit-user-select:text;user-select:text}.wp\\:zoom-in-95[data-v-83878280]{--tw-enter-scale:.95}.wp\\:group-data-\\[disabled\\=true\\]\\:pointer-events-none[data-v-83878280]:is(:where(.wp\\:group)[data-disabled=true] *){pointer-events:none}.wp\\:group-data-\\[disabled\\=true\\]\\:opacity-50[data-v-83878280]:is(:where(.wp\\:group)[data-disabled=true] *){opacity:.5}.wp\\:peer-disabled\\:cursor-not-allowed[data-v-83878280]:is(:where(.wp\\:peer):disabled~*){cursor:not-allowed}.wp\\:peer-disabled\\:opacity-50[data-v-83878280]:is(:where(.wp\\:peer):disabled~*){opacity:.5}.wp\\:selection\\:bg-primary[data-v-83878280] ::selection,.wp\\:selection\\:bg-primary[data-v-83878280]::selection{background-color:var(--primary)}.wp\\:selection\\:text-primary-foreground[data-v-83878280] ::selection,.wp\\:selection\\:text-primary-foreground[data-v-83878280]::selection{color:var(--primary-foreground)}.wp\\:file\\:inline-flex[data-v-83878280]::-webkit-file-upload-button{display:inline-flex}.wp\\:file\\:inline-flex[data-v-83878280]::file-selector-button{display:inline-flex}.wp\\:file\\:h-7[data-v-83878280]::-webkit-file-upload-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:h-7[data-v-83878280]::file-selector-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:border-0[data-v-83878280]::-webkit-file-upload-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:border-0[data-v-83878280]::file-selector-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:bg-transparent[data-v-83878280]::-webkit-file-upload-button{background-color:#0000}.wp\\:file\\:bg-transparent[data-v-83878280]::file-selector-button{background-color:#0000}.wp\\:file\\:text-sm[data-v-83878280]::-webkit-file-upload-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:text-sm[data-v-83878280]::file-selector-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:font-medium[data-v-83878280]::-webkit-file-upload-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:font-medium[data-v-83878280]::file-selector-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:text-foreground[data-v-83878280]::-webkit-file-upload-button{color:var(--foreground)}.wp\\:file\\:text-foreground[data-v-83878280]::file-selector-button{color:var(--foreground)}.wp\\:placeholder\\:text-muted-foreground[data-v-83878280]::placeholder{color:var(--muted-foreground)}.wp\\:last\\:border-b-0[data-v-83878280]:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8[data-v-83878280]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8[data-v-83878280]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 8%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10[data-v-83878280]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10[data-v-83878280]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 10%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20[data-v-83878280]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20[data-v-83878280]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 20%, transparent)}}.wp\\:hover\\:bg-accent[data-v-83878280]:hover,.wp\\:hover\\:bg-accent\\/50[data-v-83878280]:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-accent\\/50[data-v-83878280]:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:hover\\:bg-destructive\\/90[data-v-83878280]:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-destructive\\/90[data-v-83878280]:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:hover\\:bg-muted[data-v-83878280]:hover{background-color:var(--muted)}.wp\\:hover\\:bg-neutral-100[data-v-83878280]:hover{background-color:var(--wp-color-neutral-100)}.wp\\:hover\\:bg-neutral-200[data-v-83878280]:hover{background-color:var(--wp-color-neutral-200)}.wp\\:hover\\:bg-primary\\/90[data-v-83878280]:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-primary\\/90[data-v-83878280]:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.wp\\:hover\\:bg-secondary[data-v-83878280]:hover,.wp\\:hover\\:bg-secondary\\/80[data-v-83878280]:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-secondary\\/80[data-v-83878280]:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.wp\\:hover\\:bg-status-available\\/90[data-v-83878280]:hover{background-color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-status-available\\/90[data-v-83878280]:hover{background-color:color-mix(in oklab, var(--status-available) 90%, transparent)}}.wp\\:hover\\:bg-transparent[data-v-83878280]:hover{background-color:#0000}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-83878280]:hover{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-83878280]:hover{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 75%, transparent)}}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-83878280]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:from-destructive\\/70[data-v-83878280]:hover{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-destructive\\/70[data-v-83878280]:hover{--tw-gradient-from:color-mix(in oklab, var(--destructive) 70%, transparent)}}.wp\\:hover\\:from-destructive\\/70[data-v-83878280]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-\\[color\\:var\\(--p-primary-color\\)\\][data-v-83878280]:hover{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-destructive\\/95[data-v-83878280]:hover{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:to-destructive\\/95[data-v-83878280]:hover{--tw-gradient-to:color-mix(in oklab, var(--destructive) 95%, transparent)}}.wp\\:hover\\:to-destructive\\/95[data-v-83878280]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:text-accent-foreground[data-v-83878280]:hover{color:var(--accent-foreground)}.wp\\:hover\\:text-destructive[data-v-83878280]:hover{color:var(--destructive)}.wp\\:hover\\:text-muted-foreground[data-v-83878280]:hover{color:var(--muted-foreground)}.wp\\:hover\\:text-primary[data-v-83878280]:hover{color:var(--primary)}.wp\\:hover\\:text-status-available\\/80[data-v-83878280]:hover{color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-available\\/80[data-v-83878280]:hover{color:color-mix(in oklab, var(--status-available) 80%, transparent)}}.wp\\:hover\\:text-status-disconnected[data-v-83878280]:hover,.wp\\:hover\\:text-status-disconnected\\/80[data-v-83878280]:hover{color:var(--status-disconnected)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-disconnected\\/80[data-v-83878280]:hover{color:color-mix(in oklab, var(--status-disconnected) 80%, transparent)}}.wp\\:hover\\:text-status-hold\\/80[data-v-83878280]:hover{color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-hold\\/80[data-v-83878280]:hover{color:color-mix(in oklab, var(--status-hold) 80%, transparent)}}.wp\\:hover\\:text-status-incall\\/80[data-v-83878280]:hover{color:var(--status-incall)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incall\\/80[data-v-83878280]:hover{color:color-mix(in oklab, var(--status-incall) 80%, transparent)}}.wp\\:hover\\:text-status-incoming\\/80[data-v-83878280]:hover{color:var(--status-incoming)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incoming\\/80[data-v-83878280]:hover{color:color-mix(in oklab, var(--status-incoming) 80%, transparent)}}.wp\\:hover\\:underline[data-v-83878280]:hover{text-decoration-line:underline}.wp\\:hover\\:opacity-80[data-v-83878280]:hover{opacity:.8}.wp\\:hover\\:opacity-100[data-v-83878280]:hover{opacity:1}.wp\\:hover\\:ring-4[data-v-83878280]:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.wp\\:focus\\:z-10[data-v-83878280]:focus{z-index:10}.wp\\:focus\\:bg-accent[data-v-83878280]:focus{background-color:var(--accent)}.wp\\:focus\\:text-accent-foreground[data-v-83878280]:focus{color:var(--accent-foreground)}.wp\\:focus\\:ring-2[data-v-83878280]:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus\\:ring-ring[data-v-83878280]:focus{--tw-ring-color:var(--ring)}.wp\\:focus\\:ring-offset-2[data-v-83878280]:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus\\:outline-hidden[data-v-83878280]:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus\\:outline-hidden[data-v-83878280]:focus{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:z-10[data-v-83878280]:focus-visible{z-index:10}.wp\\:focus-visible\\:border-ring[data-v-83878280]:focus-visible{border-color:var(--ring)}.wp\\:focus-visible\\:ring-2[data-v-83878280]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-4[data-v-83878280]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[3px\\][data-v-83878280]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[var\\(--p-primary-color\\)\\][data-v-83878280]:focus-visible{--tw-ring-color:var(--p-primary-color)}.wp\\:focus-visible\\:ring-destructive\\/20[data-v-83878280]:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-destructive\\/20[data-v-83878280]:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:focus-visible\\:ring-ring\\/50[data-v-83878280]:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-ring\\/50[data-v-83878280]:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:focus-visible\\:ring-offset-2[data-v-83878280]:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus-visible\\:ring-offset-white[data-v-83878280]:focus-visible{--tw-ring-offset-color:var(--wp-color-white)}.wp\\:focus-visible\\:outline-hidden[data-v-83878280]:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus-visible\\:outline-hidden[data-v-83878280]:focus-visible{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:outline-1[data-v-83878280]:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.wp\\:active\\:scale-95[data-v-83878280]:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.wp\\:disabled\\:pointer-events-none[data-v-83878280]:disabled{pointer-events:none}.wp\\:disabled\\:cursor-not-allowed[data-v-83878280]:disabled{cursor:not-allowed}.wp\\:disabled\\:opacity-50[data-v-83878280]:disabled{opacity:.5}.wp\\:has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\][data-v-83878280]:has([data-slot=card-action]){grid-template-columns:1fr auto}.wp\\:has-\\[\\>svg\\]\\:px-2\\.5[data-v-83878280]:has(>svg){padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:has-\\[\\>svg\\]\\:px-3[data-v-83878280]:has(>svg){padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:has-\\[\\>svg\\]\\:px-4[data-v-83878280]:has(>svg){padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:aria-invalid\\:border-destructive[aria-invalid=true][data-v-83878280]{border-color:var(--destructive)}.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true][data-v-83878280]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true][data-v-83878280]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled][data-v-83878280]{pointer-events:none}.wp\\:data-\\[disabled\\]\\:opacity-50[data-disabled][data-v-83878280]{opacity:.5}.wp\\:data-\\[highlighted\\]\\:bg-accent[data-highlighted][data-v-83878280]{background-color:var(--accent)}.wp\\:data-\\[highlighted\\]\\:text-accent-foreground[data-highlighted][data-v-83878280]{color:var(--accent-foreground)}.wp\\:data-\\[inset\\]\\:pl-8[data-inset][data-v-83878280]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal][data-v-83878280]{height:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal][data-v-83878280]{height:100%}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal][data-v-83878280]{height:1px}.wp\\:data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal][data-v-83878280]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical][data-v-83878280]{height:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical][data-v-83878280]{min-height:calc(var(--wp-spacing) * 44)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical][data-v-83878280]{width:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical][data-v-83878280]{width:auto}.wp\\:data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical][data-v-83878280]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical][data-v-83878280]{width:1px}.wp\\:data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical][data-v-83878280]{flex-direction:column}.wp\\:data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder][data-v-83878280]{color:var(--muted-foreground)}.wp\\:data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom][data-v-83878280]{--tw-translate-y:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom][data-v-83878280]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=left\\]\\:-translate-x-1[data-side=left][data-v-83878280]{--tw-translate-x:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left][data-v-83878280]{--tw-enter-translate-x:calc(2*var(--spacing))}.wp\\:data-\\[side\\=right\\]\\:translate-x-1[data-side=right][data-v-83878280]{--tw-translate-x:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right][data-v-83878280]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=top\\]\\:-translate-y-1[data-side=top][data-v-83878280]{--tw-translate-y:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top][data-v-83878280]{--tw-enter-translate-y:calc(2*var(--spacing))}.wp\\:data-\\[size\\=default\\]\\:h-9[data-size=default][data-v-83878280]{height:calc(var(--wp-spacing) * 9)}.wp\\:data-\\[size\\=sm\\]\\:h-8[data-size=sm][data-v-83878280]{height:calc(var(--wp-spacing) * 8)}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value][data-v-83878280]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value][data-v-83878280]{display:flex}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value][data-v-83878280]{align-items:center}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value][data-v-83878280]{gap:calc(var(--wp-spacing) * 2)}.wp\\:data-\\[spacing\\=0\\]\\:rounded-none[data-spacing="0"][data-v-83878280]{border-radius:0}.wp\\:data-\\[spacing\\=0\\]\\:shadow-none[data-spacing="0"][data-v-83878280]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:data-\\[spacing\\=0\\]\\:first\\:rounded-l-md[data-spacing="0"][data-v-83878280]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[spacing\\=0\\]\\:last\\:rounded-r-md[data-spacing="0"][data-v-83878280]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed][data-v-83878280]{animation:accordion-up-83878280 var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:animate-out[data-state=closed][data-v-83878280]{animation:exit-83878280 var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed][data-v-83878280]{--tw-exit-opacity:0}.wp\\:data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed][data-v-83878280]{--tw-exit-scale:.95}.wp\\:data-\\[state\\=on\\]\\:bg-accent[data-state=on][data-v-83878280]{background-color:var(--accent)}.wp\\:data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on][data-v-83878280]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open][data-v-83878280]{animation:accordion-down-83878280 var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:animate-in[data-state=open][data-v-83878280]{animation:enter-83878280 var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:bg-accent[data-state=open][data-v-83878280]{background-color:var(--accent)}.wp\\:data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open][data-v-83878280]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open][data-v-83878280]{color:var(--muted-foreground)}.wp\\:data-\\[state\\=open\\]\\:fade-in-0[data-state=open][data-v-83878280]{--tw-enter-opacity:0}.wp\\:data-\\[state\\=open\\]\\:zoom-in-95[data-state=open][data-v-83878280]{--tw-enter-scale:.95}.wp\\:data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive][data-v-83878280]{color:var(--destructive)}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive][data-v-83878280]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive][data-v-83878280]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive][data-v-83878280]:focus{color:var(--destructive)}.wp\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline][data-v-83878280]{border-color:var(--color-primary-500)}.wp\\:data-\\[variant\\=outline\\]\\:focus-visible\\:ring-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline][data-v-83878280]:focus-visible{--tw-ring-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border[data-spacing="0"][data-variant=outline][data-v-83878280]{border-style:var(--tw-border-style);border-width:1px}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-spacing="0"][data-variant=outline][data-v-83878280]{border-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=default\\]\\:data-\\[variant\\=outline\\]\\:shadow-xs[data-spacing=default][data-variant=outline][data-v-83878280]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.wp\\:supports-backdrop-filter\\:bg-background\\/60[data-v-83878280]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:supports-backdrop-filter\\:bg-background\\/60[data-v-83878280]{background-color:color-mix(in oklab, var(--background) 60%, transparent)}}}@media (min-width:40rem){.wp\\:sm\\:block[data-v-83878280]{display:block}.wp\\:sm\\:inline[data-v-83878280]{display:inline}.wp\\:sm\\:inline-block[data-v-83878280]{display:inline-block}.wp\\:sm\\:max-w-lg[data-v-83878280]{max-width:var(--wp-container-lg)}.wp\\:sm\\:max-w-md[data-v-83878280]{max-width:var(--wp-container-md)}.wp\\:sm\\:max-w-sm[data-v-83878280]{max-width:var(--wp-container-sm)}.wp\\:sm\\:flex-row[data-v-83878280]{flex-direction:row}.wp\\:sm\\:justify-end[data-v-83878280]{justify-content:flex-end}.wp\\:sm\\:gap-0[data-v-83878280]{gap:calc(var(--wp-spacing) * 0)}.wp\\:sm\\:rounded-lg[data-v-83878280]{border-radius:var(--radius)}.wp\\:sm\\:text-left[data-v-83878280]{text-align:left}}@media (min-width:48rem){.wp\\:md\\:w-full[data-v-83878280]{width:100%}.wp\\:md\\:text-sm[data-v-83878280]{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}}.wp\\:dark\\:border-input[data-v-83878280]:where(.dark,.dark *){border-color:var(--input)}.wp\\:dark\\:bg-amber-900\\/30[data-v-83878280]:where(.dark,.dark *){background-color:var(--wp-color-amber-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-amber-900\\/30[data-v-83878280]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-amber-900) 30%, transparent)}}.wp\\:dark\\:bg-blue-900\\/30[data-v-83878280]:where(.dark,.dark *){background-color:var(--wp-color-blue-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-blue-900\\/30[data-v-83878280]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-blue-900) 30%, transparent)}}.wp\\:dark\\:bg-destructive\\/60[data-v-83878280]:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-destructive\\/60[data-v-83878280]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:dark\\:bg-emerald-900\\/30[data-v-83878280]:where(.dark,.dark *){background-color:var(--wp-color-emerald-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-emerald-900\\/30[data-v-83878280]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-emerald-900) 30%, transparent)}}.wp\\:dark\\:bg-input\\/30[data-v-83878280]:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-input\\/30[data-v-83878280]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.wp\\:dark\\:bg-neutral-700[data-v-83878280]:where(.dark,.dark *){background-color:var(--wp-color-neutral-700)}.wp\\:dark\\:bg-neutral-800[data-v-83878280]:where(.dark,.dark *){background-color:var(--wp-color-neutral-800)}.wp\\:dark\\:bg-neutral-900[data-v-83878280]:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:bg-neutral-900\\/70[data-v-83878280]:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-neutral-900\\/70[data-v-83878280]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-neutral-900) 70%, transparent)}}.wp\\:dark\\:bg-purple-900\\/30[data-v-83878280]:where(.dark,.dark *){background-color:var(--wp-color-purple-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-purple-900\\/30[data-v-83878280]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-purple-900) 30%, transparent)}}.wp\\:dark\\:text-amber-400[data-v-83878280]:where(.dark,.dark *){color:var(--wp-color-amber-400)}.wp\\:dark\\:text-blue-400[data-v-83878280]:where(.dark,.dark *){color:var(--wp-color-blue-400)}.wp\\:dark\\:text-emerald-400[data-v-83878280]:where(.dark,.dark *){color:var(--wp-color-emerald-400)}.wp\\:dark\\:text-neutral-400[data-v-83878280]:where(.dark,.dark *){color:var(--wp-color-neutral-400)}.wp\\:dark\\:text-neutral-500[data-v-83878280]:where(.dark,.dark *){color:var(--wp-color-neutral-500)}.wp\\:dark\\:text-purple-400[data-v-83878280]:where(.dark,.dark *){color:var(--wp-color-purple-400)}.wp\\:dark\\:text-white[data-v-83878280]:where(.dark,.dark *){color:var(--wp-color-white)}@media (hover:hover){.wp\\:dark\\:hover\\:bg-accent\\/50[data-v-83878280]:where(.dark,.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-accent\\/50[data-v-83878280]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-input\\/50[data-v-83878280]:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-input\\/50[data-v-83878280]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-600[data-v-83878280]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-600)}.wp\\:dark\\:hover\\:bg-neutral-800\\/80[data-v-83878280]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-800)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-neutral-800\\/80[data-v-83878280]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--wp-color-neutral-800) 80%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-900[data-v-83878280]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:hover\\:text-neutral-100[data-v-83878280]:where(.dark,.dark *):hover{color:var(--wp-color-neutral-100)}.wp\\:dark\\:hover\\:text-status-disconnected[data-v-83878280]:where(.dark,.dark *):hover{color:var(--status-disconnected)}}.wp\\:dark\\:focus-visible\\:ring-destructive\\/40[data-v-83878280]:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:focus-visible\\:ring-destructive\\/40[data-v-83878280]:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:focus-visible\\:ring-offset-neutral-900[data-v-83878280]:where(.dark,.dark *):focus-visible{--tw-ring-offset-color:var(--wp-color-neutral-900)}.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true][data-v-83878280]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true][data-v-83878280]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive][data-v-83878280]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive][data-v-83878280]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:\\[\\&_button\\]\\:cursor-pointer button[data-v-83878280]{cursor:pointer}.wp\\:\\[\\&_svg\\]\\:pointer-events-none svg[data-v-83878280]{pointer-events:none}.wp\\:\\[\\&_svg\\]\\:shrink-0 svg[data-v-83878280]{flex-shrink:0}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg[data-v-83878280]:not([class*=size-]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3 svg[data-v-83878280]:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4 svg[data-v-83878280]:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-muted-foreground svg[data-v-83878280]:not([class*="'text-'"]){color:var(--muted-foreground)}.wp\\:\\[\\.border-b\\]\\:pb-6.border-b[data-v-83878280]{padding-bottom:calc(var(--wp-spacing) * 6)}.wp\\:\\[\\.border-t\\]\\:pt-6.border-t[data-v-83878280]{padding-top:calc(var(--wp-spacing) * 6)}:is(.wp\\:\\*\\*\\:\\[\\[role\\=button\\]\\]\\:cursor-pointer *)[role=button][data-v-83878280]{cursor:pointer}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:flex[data-v-83878280]>*):-webkit-any(span):last-child{display:flex}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:flex[data-v-83878280]>*):is(span):last-child{display:flex}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center[data-v-83878280]>*):-webkit-any(span):last-child{align-items:center}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center[data-v-83878280]>*):is(span):last-child{align-items:center}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2[data-v-83878280]>*):-webkit-any(span):last-child{gap:calc(var(--wp-spacing) * 2)}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2[data-v-83878280]>*):is(span):last-child{gap:calc(var(--wp-spacing) * 2)}:-webkit-any(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive][data-v-83878280]>*):-webkit-any(svg){color:var(--destructive)!important}:is(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive][data-v-83878280]>*):is(svg){color:var(--destructive)!important}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:\\[\\&\\:not\\(\\:first-child\\)\\]\\:border-l-0[data-spacing="0"][data-variant=outline][data-v-83878280]:not(:first-child){border-left-style:var(--tw-border-style);border-left-width:0}.wp\\:\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg[data-v-83878280]{rotate:180deg}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20[data-v-83878280]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20[data-v-83878280]{background-color:color-mix(in oklab, var(--background) 20%, transparent)}}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:text-background[data-v-83878280]{color:var(--background)}[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10[data-v-83878280]:where(.dark,.dark *){background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10[data-v-83878280]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--background) 10%, transparent)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Ibrand;src:url(/fonts/Ibrand.otf)format("truetype");font-weight:100 900;font-style:normal;font-display:swap}svg [clip-path]{clip-path:none!important}:root{--radius:.625rem;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:var(--p-primary-color,#171717);--color-primary-500:#9b5ff5;--p-primary-color:var(--color-primary-500);--primary-foreground:#fafafa;--secondary:#f5f5f5;--secondary-foreground:#171717;--muted:#f5f5f5;--muted-foreground:#737373;--accent:#f5f5f5;--accent-foreground:#171717;--destructive:#e40014;--border:#e5e5e5;--input:#e5e5e5;--ring:#a1a1a1;--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#0a0a0a;--sidebar-primary:#171717;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f5f5f5;--sidebar-accent-foreground:#171717;--sidebar-border:#e5e5e5;--sidebar-ring:#a1a1a1;--status-available:#00a544;--status-incall:#7a75b5;--status-hold:#f5c632;--status-incoming:#ac4bff;--status-disconnected:#fb2c36;--color-green:#81c200;--color-red:#ed3237;--color-blue:#7a75b5;--color-settings:#b3acd5;--color-avaible:#00c448;font-family:Montserrat,sans-serif}@supports (color:color(display-p3 0 0 0)){:root{--background:color(display-p3 1 1 1);--foreground:color(display-p3 .0393882 .0393882 .0393882);--card:color(display-p3 1 1 1);--card-foreground:color(display-p3 .0393882 .0393882 .0393882);--popover:color(display-p3 1 1 1);--popover-foreground:color(display-p3 .0393882 .0393882 .0393882);--primary:var(--p-primary-color,color(display-p3 .0905274 .0905274 .0905274));--primary-foreground:color(display-p3 .980256 .980256 .980256);--secondary:color(display-p3 .960587 .960587 .960587);--secondary-foreground:color(display-p3 .0905274 .0905274 .0905274);--muted:color(display-p3 .960587 .960587 .960587);--muted-foreground:color(display-p3 .451519 .451519 .451519);--accent:color(display-p3 .960587 .960587 .960587);--accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--destructive:color(display-p3 .830323 .140383 .133196);--border:color(display-p3 .898161 .898161 .898161);--input:color(display-p3 .898161 .898161 .898161);--ring:color(display-p3 .630163 .630163 .630163);--chart-1:color(display-p3 .887467 .341665 .0219962);--chart-2:color(display-p3 .207114 .579584 .53668);--chart-3:color(display-p3 .142586 .302008 .385094);--chart-4:color(display-p3 .959186 .738519 .118268);--chart-5:color(display-p3 .93994 .620584 .0585367);--sidebar:color(display-p3 .980256 .980256 .980256);--sidebar-foreground:color(display-p3 .0393882 .0393882 .0393882);--sidebar-primary:color(display-p3 .0905274 .0905274 .0905274);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .960587 .960587 .960587);--sidebar-accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--sidebar-border:color(display-p3 .898161 .898161 .898161);--sidebar-ring:color(display-p3 .630163 .630163 .630163);--status-available:color(display-p3 .243882 .640824 .294808);--status-incall:color(display-p3 .474968 .45946 .692102);--status-hold:color(display-p3 .930111 .782506 .322764);--status-incoming:color(display-p3 .629519 .30089 .990817);--status-disconnected:color(display-p3 .903738 .262579 .253307);--color-green:color(display-p3 .562304 .754036 .228809);--color-red:color(display-p3 .855599 .269309 .251664);--color-blue:color(display-p3 .474968 .45946 .692102);--color-settings:color(display-p3 .697185 .675441 .822883);--color-avaible:color(display-p3 .345782 .7571 .347428)}}@supports (color:lab(0% 0 0)){:root{--background:lab(100% 0 0);--foreground:lab(2.75381% 0 0);--card:lab(100% 0 0);--card-foreground:lab(2.75381% 0 0);--popover:lab(100% 0 0);--popover-foreground:lab(2.75381% 0 0);--primary:var(--p-primary-color,lab(7.78201% -.0000149012 0));--primary-foreground:lab(98.26% 0 0);--secondary:lab(96.52% -.0000298023 .0000119209);--secondary-foreground:lab(7.78201% -.0000149012 0);--muted:lab(96.52% -.0000298023 .0000119209);--muted-foreground:lab(48.496% 0 0);--accent:lab(96.52% -.0000298023 .0000119209);--accent-foreground:lab(7.78201% -.0000149012 0);--destructive:lab(48.4493% 77.4328 61.5452);--border:lab(90.952% 0 -.0000119209);--input:lab(90.952% 0 -.0000119209);--ring:lab(66.128% -.0000298023 .0000119209);--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.75381% 0 0);--sidebar-primary:lab(7.78201% -.0000149012 0);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.52% -.0000298023 .0000119209);--sidebar-accent-foreground:lab(7.78201% -.0000149012 0);--sidebar-border:lab(90.952% 0 -.0000119209);--sidebar-ring:lab(66.128% -.0000298023 .0000119209);--status-available:lab(59.0978% -58.6621 41.2579);--status-incall:lab(51.7014% 13.4467 -33.5273);--status-hold:lab(82.2725% 7.53289 73.9282);--status-incoming:lab(52.0183% 66.11 -78.2316);--status-disconnected:lab(55.4814% 75.0732 48.8528);--color-green:lab(71.931% -38.9071 70.3045);--color-red:lab(53.3473% 69.9469 45.351);--color-blue:lab(51.7014% 13.4467 -33.5273);--color-settings:lab(71.9851% 8.76683 -19.9302);--color-avaible:lab(69.443% -61.9097 48.3881)}}.dark{--background:#0a0a0a;--foreground:#fafafa;--card:#171717;--card-foreground:#fafafa;--popover:#171717;--popover-foreground:#fafafa;--primary:var(--p-primary-color,#e5e5e5);--primary-foreground:#171717;--secondary:#262626;--secondary-foreground:#fafafa;--muted:#262626;--muted-foreground:#a1a1a1;--accent:#262626;--accent-foreground:#fafafa;--destructive:#ff6568;--border:#ffffff1a;--input:#ffffff26;--ring:#737373;--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#171717;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#262626;--sidebar-accent-foreground:#fafafa;--sidebar-border:#ffffff1a;--sidebar-ring:#737373;--status-available:#41cd6a;--status-incall:#54a2ff;--status-hold:#fccf2c;--status-incoming:#b971ff;--status-disconnected:#ff6568}@supports (color:color(display-p3 0 0 0)){.dark{--background:color(display-p3 .0393882 .0393882 .0393882);--foreground:color(display-p3 .980256 .980256 .980256);--card:color(display-p3 .0905274 .0905274 .0905274);--card-foreground:color(display-p3 .980256 .980256 .980256);--popover:color(display-p3 .0905274 .0905274 .0905274);--popover-foreground:color(display-p3 .980256 .980256 .980256);--primary:var(--p-primary-color,color(display-p3 .898161 .898161 .898161));--primary-foreground:color(display-p3 .0905274 .0905274 .0905274);--secondary:color(display-p3 .149382 .149382 .149382);--secondary-foreground:color(display-p3 .980256 .980256 .980256);--muted:color(display-p3 .149382 .149382 .149382);--muted-foreground:color(display-p3 .630163 .630163 .630163);--accent:color(display-p3 .149382 .149382 .149382);--accent-foreground:color(display-p3 .980256 .980256 .980256);--destructive:color(display-p3 .933534 .431676 .423491);--border:color(display-p3 1 1 1/.1);--input:color(display-p3 1 1 1/.15);--ring:color(display-p3 .451519 .451519 .451519);--chart-1:color(display-p3 .1379 .274983 .867624);--chart-2:color(display-p3 .267113 .726847 .508397);--chart-3:color(display-p3 .93994 .620584 .0585367);--chart-4:color(display-p3 .629519 .30089 .990817);--chart-5:color(display-p3 .921824 .240748 .355666);--sidebar:color(display-p3 .0905274 .0905274 .0905274);--sidebar-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-primary:color(display-p3 .1379 .274983 .867624);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .149382 .149382 .149382);--sidebar-accent-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-border:color(display-p3 1 1 1/.1);--sidebar-ring:color(display-p3 .451519 .451519 .451519);--status-available:color(display-p3 .425834 .792595 .456802);--status-incall:color(display-p3 .397443 .62813 .992116);--status-hold:color(display-p3 .958937 .816675 .321887);--status-incoming:color(display-p3 .692676 .438266 1.01683);--status-disconnected:color(display-p3 .933534 .431676 .423491)}}@supports (color:lab(0% 0 0)){.dark{--background:lab(2.75381% 0 0);--foreground:lab(98.26% 0 0);--card:lab(7.78201% -.0000149012 0);--card-foreground:lab(98.26% 0 0);--popover:lab(7.78201% -.0000149012 0);--popover-foreground:lab(98.26% 0 0);--primary:var(--p-primary-color,lab(90.952% 0 -.0000119209));--primary-foreground:lab(7.78201% -.0000149012 0);--secondary:lab(15.204% 0 -.00000596046);--secondary-foreground:lab(98.26% 0 0);--muted:lab(15.204% 0 -.00000596046);--muted-foreground:lab(66.128% -.0000298023 .0000119209);--accent:lab(15.204% 0 -.00000596046);--accent-foreground:lab(98.26% 0 0);--destructive:lab(63.7053% 60.745 31.3109);--border:lab(100% 0 0/.1);--input:lab(100% 0 0/.15);--ring:lab(48.496% 0 0);--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(7.78201% -.0000149012 0);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.204% 0 -.00000596046);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(100% 0 0/.1);--sidebar-ring:lab(48.496% 0 0);--status-available:lab(73.3941% -54.8093 37.6928);--status-incall:lab(65.0361% -1.42065 -56.9802);--status-hold:lab(85.1352% 6.10837 78.1641);--status-incoming:lab(60.4586% 54.1298 -67.8379);--status-disconnected:lab(63.7053% 60.745 31.3109)}}.ibrand{font-family:Ibrand,sans-serif}.montserrat{font-family:Montserrat,sans-serif}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}.p-input::placeholder{color:#959595;font-size:12px}@font-face{font-family:Ibrand;src:url(/fonts/Ibrand.otf)format("truetype");font-weight:100 900;font-style:normal;font-display:swap}svg [clip-path][data-v-83878280]{clip-path:none!important}[data-v-83878280]:root{--radius:.625rem;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:var(--p-primary-color,#171717);--color-primary-500:#9b5ff5;--p-primary-color:var(--color-primary-500);--primary-foreground:#fafafa;--secondary:#f5f5f5;--secondary-foreground:#171717;--muted:#f5f5f5;--muted-foreground:#737373;--accent:#f5f5f5;--accent-foreground:#171717;--destructive:#e40014;--border:#e5e5e5;--input:#e5e5e5;--ring:#a1a1a1;--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#0a0a0a;--sidebar-primary:#171717;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f5f5f5;--sidebar-accent-foreground:#171717;--sidebar-border:#e5e5e5;--sidebar-ring:#a1a1a1;--status-available:#00a544;--status-incall:#7a75b5;--status-hold:#f5c632;--status-incoming:#ac4bff;--status-disconnected:#fb2c36;--color-green:#81c200;--color-red:#ed3237;--color-blue:#7a75b5;--color-settings:#b3acd5;--color-avaible:#00c448;font-family:Montserrat,sans-serif}@supports (color:color(display-p3 0 0 0)){[data-v-83878280]:root{--background:color(display-p3 1 1 1);--foreground:color(display-p3 .0393882 .0393882 .0393882);--card:color(display-p3 1 1 1);--card-foreground:color(display-p3 .0393882 .0393882 .0393882);--popover:color(display-p3 1 1 1);--popover-foreground:color(display-p3 .0393882 .0393882 .0393882);--primary:var(--p-primary-color,color(display-p3 .0905274 .0905274 .0905274));--primary-foreground:color(display-p3 .980256 .980256 .980256);--secondary:color(display-p3 .960587 .960587 .960587);--secondary-foreground:color(display-p3 .0905274 .0905274 .0905274);--muted:color(display-p3 .960587 .960587 .960587);--muted-foreground:color(display-p3 .451519 .451519 .451519);--accent:color(display-p3 .960587 .960587 .960587);--accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--destructive:color(display-p3 .830323 .140383 .133196);--border:color(display-p3 .898161 .898161 .898161);--input:color(display-p3 .898161 .898161 .898161);--ring:color(display-p3 .630163 .630163 .630163);--chart-1:color(display-p3 .887467 .341665 .0219962);--chart-2:color(display-p3 .207114 .579584 .53668);--chart-3:color(display-p3 .142586 .302008 .385094);--chart-4:color(display-p3 .959186 .738519 .118268);--chart-5:color(display-p3 .93994 .620584 .0585367);--sidebar:color(display-p3 .980256 .980256 .980256);--sidebar-foreground:color(display-p3 .0393882 .0393882 .0393882);--sidebar-primary:color(display-p3 .0905274 .0905274 .0905274);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .960587 .960587 .960587);--sidebar-accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--sidebar-border:color(display-p3 .898161 .898161 .898161);--sidebar-ring:color(display-p3 .630163 .630163 .630163);--status-available:color(display-p3 .243882 .640824 .294808);--status-incall:color(display-p3 .474968 .45946 .692102);--status-hold:color(display-p3 .930111 .782506 .322764);--status-incoming:color(display-p3 .629519 .30089 .990817);--status-disconnected:color(display-p3 .903738 .262579 .253307);--color-green:color(display-p3 .562304 .754036 .228809);--color-red:color(display-p3 .855599 .269309 .251664);--color-blue:color(display-p3 .474968 .45946 .692102);--color-settings:color(display-p3 .697185 .675441 .822883);--color-avaible:color(display-p3 .345782 .7571 .347428)}}@supports (color:lab(0% 0 0)){[data-v-83878280]:root{--background:lab(100% 0 0);--foreground:lab(2.75381% 0 0);--card:lab(100% 0 0);--card-foreground:lab(2.75381% 0 0);--popover:lab(100% 0 0);--popover-foreground:lab(2.75381% 0 0);--primary:var(--p-primary-color,lab(7.78201% -.0000149012 0));--primary-foreground:lab(98.26% 0 0);--secondary:lab(96.52% -.0000298023 .0000119209);--secondary-foreground:lab(7.78201% -.0000149012 0);--muted:lab(96.52% -.0000298023 .0000119209);--muted-foreground:lab(48.496% 0 0);--accent:lab(96.52% -.0000298023 .0000119209);--accent-foreground:lab(7.78201% -.0000149012 0);--destructive:lab(48.4493% 77.4328 61.5452);--border:lab(90.952% 0 -.0000119209);--input:lab(90.952% 0 -.0000119209);--ring:lab(66.128% -.0000298023 .0000119209);--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.75381% 0 0);--sidebar-primary:lab(7.78201% -.0000149012 0);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.52% -.0000298023 .0000119209);--sidebar-accent-foreground:lab(7.78201% -.0000149012 0);--sidebar-border:lab(90.952% 0 -.0000119209);--sidebar-ring:lab(66.128% -.0000298023 .0000119209);--status-available:lab(59.0978% -58.6621 41.2579);--status-incall:lab(51.7014% 13.4467 -33.5273);--status-hold:lab(82.2725% 7.53289 73.9282);--status-incoming:lab(52.0183% 66.11 -78.2316);--status-disconnected:lab(55.4814% 75.0732 48.8528);--color-green:lab(71.931% -38.9071 70.3045);--color-red:lab(53.3473% 69.9469 45.351);--color-blue:lab(51.7014% 13.4467 -33.5273);--color-settings:lab(71.9851% 8.76683 -19.9302);--color-avaible:lab(69.443% -61.9097 48.3881)}}.dark[data-v-83878280]{--background:#0a0a0a;--foreground:#fafafa;--card:#171717;--card-foreground:#fafafa;--popover:#171717;--popover-foreground:#fafafa;--primary:var(--p-primary-color,#e5e5e5);--primary-foreground:#171717;--secondary:#262626;--secondary-foreground:#fafafa;--muted:#262626;--muted-foreground:#a1a1a1;--accent:#262626;--accent-foreground:#fafafa;--destructive:#ff6568;--border:#ffffff1a;--input:#ffffff26;--ring:#737373;--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#171717;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#262626;--sidebar-accent-foreground:#fafafa;--sidebar-border:#ffffff1a;--sidebar-ring:#737373;--status-available:#41cd6a;--status-incall:#54a2ff;--status-hold:#fccf2c;--status-incoming:#b971ff;--status-disconnected:#ff6568}@supports (color:color(display-p3 0 0 0)){.dark[data-v-83878280]{--background:color(display-p3 .0393882 .0393882 .0393882);--foreground:color(display-p3 .980256 .980256 .980256);--card:color(display-p3 .0905274 .0905274 .0905274);--card-foreground:color(display-p3 .980256 .980256 .980256);--popover:color(display-p3 .0905274 .0905274 .0905274);--popover-foreground:color(display-p3 .980256 .980256 .980256);--primary:var(--p-primary-color,color(display-p3 .898161 .898161 .898161));--primary-foreground:color(display-p3 .0905274 .0905274 .0905274);--secondary:color(display-p3 .149382 .149382 .149382);--secondary-foreground:color(display-p3 .980256 .980256 .980256);--muted:color(display-p3 .149382 .149382 .149382);--muted-foreground:color(display-p3 .630163 .630163 .630163);--accent:color(display-p3 .149382 .149382 .149382);--accent-foreground:color(display-p3 .980256 .980256 .980256);--destructive:color(display-p3 .933534 .431676 .423491);--border:color(display-p3 1 1 1/.1);--input:color(display-p3 1 1 1/.15);--ring:color(display-p3 .451519 .451519 .451519);--chart-1:color(display-p3 .1379 .274983 .867624);--chart-2:color(display-p3 .267113 .726847 .508397);--chart-3:color(display-p3 .93994 .620584 .0585367);--chart-4:color(display-p3 .629519 .30089 .990817);--chart-5:color(display-p3 .921824 .240748 .355666);--sidebar:color(display-p3 .0905274 .0905274 .0905274);--sidebar-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-primary:color(display-p3 .1379 .274983 .867624);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .149382 .149382 .149382);--sidebar-accent-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-border:color(display-p3 1 1 1/.1);--sidebar-ring:color(display-p3 .451519 .451519 .451519);--status-available:color(display-p3 .425834 .792595 .456802);--status-incall:color(display-p3 .397443 .62813 .992116);--status-hold:color(display-p3 .958937 .816675 .321887);--status-incoming:color(display-p3 .692676 .438266 1.01683);--status-disconnected:color(display-p3 .933534 .431676 .423491)}}@supports (color:lab(0% 0 0)){.dark[data-v-83878280]{--background:lab(2.75381% 0 0);--foreground:lab(98.26% 0 0);--card:lab(7.78201% -.0000149012 0);--card-foreground:lab(98.26% 0 0);--popover:lab(7.78201% -.0000149012 0);--popover-foreground:lab(98.26% 0 0);--primary:var(--p-primary-color,lab(90.952% 0 -.0000119209));--primary-foreground:lab(7.78201% -.0000149012 0);--secondary:lab(15.204% 0 -.00000596046);--secondary-foreground:lab(98.26% 0 0);--muted:lab(15.204% 0 -.00000596046);--muted-foreground:lab(66.128% -.0000298023 .0000119209);--accent:lab(15.204% 0 -.00000596046);--accent-foreground:lab(98.26% 0 0);--destructive:lab(63.7053% 60.745 31.3109);--border:lab(100% 0 0/.1);--input:lab(100% 0 0/.15);--ring:lab(48.496% 0 0);--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(7.78201% -.0000149012 0);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.204% 0 -.00000596046);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(100% 0 0/.1);--sidebar-ring:lab(48.496% 0 0);--status-available:lab(73.3941% -54.8093 37.6928);--status-incall:lab(65.0361% -1.42065 -56.9802);--status-hold:lab(85.1352% 6.10837 78.1641);--status-incoming:lab(60.4586% 54.1298 -67.8379);--status-disconnected:lab(63.7053% 60.745 31.3109)}}.ibrand[data-v-83878280]{font-family:Ibrand,sans-serif}.montserrat[data-v-83878280]{font-family:Montserrat,sans-serif}@keyframes pulse-83878280{50%{opacity:.5}}@keyframes enter-83878280{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit-83878280{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down-83878280{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up-83878280{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}
|
|
1
|
+
(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";@import "https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";@layer components;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}[data-v-91172c21],[data-v-91172c21]:before,[data-v-91172c21]:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}[data-v-91172c21]::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--wp-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--wp-color-red-500:#fb2c36;--wp-color-amber-100:#fef3c6;--wp-color-amber-400:#fcbb00;--wp-color-amber-500:#f99c00;--wp-color-amber-600:#dd7400;--wp-color-amber-900:#7b3306;--wp-color-green-500:#00c758;--wp-color-emerald-100:#d0fae5;--wp-color-emerald-400:#00d294;--wp-color-emerald-600:#009767;--wp-color-emerald-900:#004e3b;--wp-color-blue-100:#dbeafe;--wp-color-blue-400:#54a2ff;--wp-color-blue-500:#3080ff;--wp-color-blue-600:#155dfc;--wp-color-blue-900:#1c398e;--wp-color-purple-100:#f3e8ff;--wp-color-purple-400:#c07eff;--wp-color-purple-600:#9810fa;--wp-color-purple-900:#59168b;--wp-color-neutral-100:#f5f5f5;--wp-color-neutral-200:#e5e5e5;--wp-color-neutral-400:#a1a1a1;--wp-color-neutral-500:#737373;--wp-color-neutral-600:#525252;--wp-color-neutral-700:#404040;--wp-color-neutral-800:#262626;--wp-color-neutral-900:#171717;--wp-color-black:#000;--wp-color-white:#fff;--wp-spacing:.25rem;--wp-breakpoint-2xl:96rem;--wp-container-sm:24rem;--wp-container-md:28rem;--wp-container-lg:32rem;--wp-text-xs:.75rem;--wp-text-xs--line-height:calc(1 / .75);--wp-text-sm:.875rem;--wp-text-sm--line-height:calc(1.25 / .875);--wp-text-base:1rem;--wp-text-base--line-height:calc(1.5 / 1);--wp-text-lg:1.125rem;--wp-text-lg--line-height:calc(1.75 / 1.125);--wp-text-2xl:1.5rem;--wp-text-2xl--line-height:calc(2 / 1.5);--wp-text-3xl:1.875rem;--wp-text-3xl--line-height:calc(2.25 / 1.875);--wp-font-weight-light:300;--wp-font-weight-medium:500;--wp-font-weight-semibold:600;--wp-font-weight-bold:700;--wp-tracking-wider:.05em;--wp-tracking-widest:.1em;--wp-radius-xs:.125rem;--wp-radius-2xl:1rem;--wp-ease-in-out:cubic-bezier(.4, 0, .2, 1);--wp-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--wp-aspect-video:16 / 9;--wp-default-transition-duration:.15s;--wp-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--wp-default-font-family:"Montserrat", sans-serif;--wp-default-mono-font-family:var(--wp-font-mono)}@supports (color:color(display-p3 0 0 0)){:root,:host{--wp-color-red-500:color(display-p3 .903738 .262579 .253307);--wp-color-amber-100:color(display-p3 .989391 .954583 .796328);--wp-color-amber-400:color(display-p3 .959186 .738519 .118268);--wp-color-amber-500:color(display-p3 .93994 .620584 .0585367);--wp-color-amber-600:color(display-p3 .827144 .467166 .0336006);--wp-color-amber-900:color(display-p3 .445958 .216422 .0823321);--wp-color-green-500:color(display-p3 .308734 .774754 .374307);--wp-color-emerald-100:color(display-p3 .848335 .975974 .901691);--wp-color-emerald-400:color(display-p3 .334701 .819603 .591575);--wp-color-emerald-600:color(display-p3 .206557 .589057 .413962);--wp-color-emerald-900:color(display-p3 .117821 .302975 .234501);--wp-color-blue-100:color(display-p3 .869214 .915931 .989622);--wp-color-blue-400:color(display-p3 .397443 .62813 .992116);--wp-color-blue-500:color(display-p3 .266422 .491219 .988624);--wp-color-blue-600:color(display-p3 .174493 .358974 .950247);--wp-color-blue-900:color(display-p3 .136395 .219428 .537145);--wp-color-purple-100:color(display-p3 .945034 .910569 .992972);--wp-color-purple-400:color(display-p3 .719919 .492497 .995173);--wp-color-purple-600:color(display-p3 .546729 .130167 .94439);--wp-color-purple-900:color(display-p3 .321698 .107597 .524563);--wp-color-neutral-100:color(display-p3 .960587 .960587 .960587);--wp-color-neutral-200:color(display-p3 .898161 .898161 .898161);--wp-color-neutral-400:color(display-p3 .630163 .630163 .630163);--wp-color-neutral-500:color(display-p3 .451519 .451519 .451519);--wp-color-neutral-600:color(display-p3 .321993 .321993 .321993);--wp-color-neutral-700:color(display-p3 .250471 .250471 .250471);--wp-color-neutral-800:color(display-p3 .149382 .149382 .149382);--wp-color-neutral-900:color(display-p3 .0905274 .0905274 .0905274)}}@supports (color:lab(0% 0 0)){:root,:host{--wp-color-red-500:lab(55.4814% 75.0732 48.8528);--wp-color-amber-100:lab(95.916% -1.21653 23.111);--wp-color-amber-400:lab(80.1641% 16.6016 99.2089);--wp-color-amber-500:lab(72.7183% 31.8672 97.9407);--wp-color-amber-600:lab(60.3514% 40.5624 87.1228);--wp-color-amber-900:lab(31.2288% 30.2627 40.0378);--wp-color-green-500:lab(70.5521% -66.5147 45.8073);--wp-color-emerald-100:lab(94.9004% -17.0769 5.63836);--wp-color-emerald-400:lab(75.0771% -60.7313 19.4147);--wp-color-emerald-600:lab(55.0481% -49.9246 15.93);--wp-color-emerald-900:lab(28.8637% -26.9249 5.45986);--wp-color-blue-100:lab(92.0301% -2.24757 -11.6453);--wp-color-blue-400:lab(65.0361% -1.42065 -56.9802);--wp-color-blue-500:lab(54.1736% 13.3369 -74.6839);--wp-color-blue-600:lab(44.0605% 29.0279 -86.0352);--wp-color-blue-900:lab(26.1542% 15.7545 -51.5504);--wp-color-purple-100:lab(93.3333% 6.97437 -9.83434);--wp-color-purple-400:lab(63.6946% 47.6127 -59.2066);--wp-color-purple-600:lab(43.0295% 75.21 -86.5669);--wp-color-purple-900:lab(24.9401% 45.2703 -51.2728);--wp-color-neutral-100:lab(96.52% -.0000298023 .0000119209);--wp-color-neutral-200:lab(90.952% 0 -.0000119209);--wp-color-neutral-400:lab(66.128% -.0000298023 .0000119209);--wp-color-neutral-500:lab(48.496% 0 0);--wp-color-neutral-600:lab(34.924% 0 0);--wp-color-neutral-700:lab(27.036% 0 0);--wp-color-neutral-800:lab(15.204% 0 -.00000596046);--wp-color-neutral-900:lab(7.78201% -.0000149012 0)}}[data-v-91172c21]:root,[data-v-91172c21]:host{--wp-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--wp-color-red-500:#fb2c36;--wp-color-amber-100:#fef3c6;--wp-color-amber-400:#fcbb00;--wp-color-amber-500:#f99c00;--wp-color-amber-600:#dd7400;--wp-color-amber-900:#7b3306;--wp-color-green-500:#00c758;--wp-color-emerald-100:#d0fae5;--wp-color-emerald-400:#00d294;--wp-color-emerald-600:#009767;--wp-color-emerald-900:#004e3b;--wp-color-blue-100:#dbeafe;--wp-color-blue-400:#54a2ff;--wp-color-blue-500:#3080ff;--wp-color-blue-600:#155dfc;--wp-color-blue-900:#1c398e;--wp-color-purple-100:#f3e8ff;--wp-color-purple-400:#c07eff;--wp-color-purple-600:#9810fa;--wp-color-purple-900:#59168b;--wp-color-neutral-100:#f5f5f5;--wp-color-neutral-200:#e5e5e5;--wp-color-neutral-400:#a1a1a1;--wp-color-neutral-500:#737373;--wp-color-neutral-600:#525252;--wp-color-neutral-700:#404040;--wp-color-neutral-800:#262626;--wp-color-neutral-900:#171717;--wp-color-black:#000;--wp-color-white:#fff;--wp-spacing:.25rem;--wp-breakpoint-2xl:96rem;--wp-container-sm:24rem;--wp-container-md:28rem;--wp-container-lg:32rem;--wp-text-xs:.75rem;--wp-text-xs--line-height:calc(1 / .75);--wp-text-sm:.875rem;--wp-text-sm--line-height:calc(1.25 / .875);--wp-text-base:1rem;--wp-text-base--line-height:calc(1.5 / 1);--wp-text-lg:1.125rem;--wp-text-lg--line-height:calc(1.75 / 1.125);--wp-text-2xl:1.5rem;--wp-text-2xl--line-height:calc(2 / 1.5);--wp-text-3xl:1.875rem;--wp-text-3xl--line-height:calc(2.25 / 1.875);--wp-font-weight-light:300;--wp-font-weight-medium:500;--wp-font-weight-semibold:600;--wp-font-weight-bold:700;--wp-tracking-wider:.05em;--wp-tracking-widest:.1em;--wp-radius-xs:.125rem;--wp-radius-2xl:1rem;--wp-ease-in-out:cubic-bezier(.4, 0, .2, 1);--wp-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--wp-aspect-video:16 / 9;--wp-default-transition-duration:.15s;--wp-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--wp-default-font-family:"Montserrat", sans-serif;--wp-default-mono-font-family:var(--wp-font-mono)}@supports (color:color(display-p3 0 0 0)){[data-v-91172c21]:root,[data-v-91172c21]:host{--wp-color-red-500:color(display-p3 .903738 .262579 .253307);--wp-color-amber-100:color(display-p3 .989391 .954583 .796328);--wp-color-amber-400:color(display-p3 .959186 .738519 .118268);--wp-color-amber-500:color(display-p3 .93994 .620584 .0585367);--wp-color-amber-600:color(display-p3 .827144 .467166 .0336006);--wp-color-amber-900:color(display-p3 .445958 .216422 .0823321);--wp-color-green-500:color(display-p3 .308734 .774754 .374307);--wp-color-emerald-100:color(display-p3 .848335 .975974 .901691);--wp-color-emerald-400:color(display-p3 .334701 .819603 .591575);--wp-color-emerald-600:color(display-p3 .206557 .589057 .413962);--wp-color-emerald-900:color(display-p3 .117821 .302975 .234501);--wp-color-blue-100:color(display-p3 .869214 .915931 .989622);--wp-color-blue-400:color(display-p3 .397443 .62813 .992116);--wp-color-blue-500:color(display-p3 .266422 .491219 .988624);--wp-color-blue-600:color(display-p3 .174493 .358974 .950247);--wp-color-blue-900:color(display-p3 .136395 .219428 .537145);--wp-color-purple-100:color(display-p3 .945034 .910569 .992972);--wp-color-purple-400:color(display-p3 .719919 .492497 .995173);--wp-color-purple-600:color(display-p3 .546729 .130167 .94439);--wp-color-purple-900:color(display-p3 .321698 .107597 .524563);--wp-color-neutral-100:color(display-p3 .960587 .960587 .960587);--wp-color-neutral-200:color(display-p3 .898161 .898161 .898161);--wp-color-neutral-400:color(display-p3 .630163 .630163 .630163);--wp-color-neutral-500:color(display-p3 .451519 .451519 .451519);--wp-color-neutral-600:color(display-p3 .321993 .321993 .321993);--wp-color-neutral-700:color(display-p3 .250471 .250471 .250471);--wp-color-neutral-800:color(display-p3 .149382 .149382 .149382);--wp-color-neutral-900:color(display-p3 .0905274 .0905274 .0905274)}}@supports (color:lab(0% 0 0)){[data-v-91172c21]:root,[data-v-91172c21]:host{--wp-color-red-500:lab(55.4814% 75.0732 48.8528);--wp-color-amber-100:lab(95.916% -1.21653 23.111);--wp-color-amber-400:lab(80.1641% 16.6016 99.2089);--wp-color-amber-500:lab(72.7183% 31.8672 97.9407);--wp-color-amber-600:lab(60.3514% 40.5624 87.1228);--wp-color-amber-900:lab(31.2288% 30.2627 40.0378);--wp-color-green-500:lab(70.5521% -66.5147 45.8073);--wp-color-emerald-100:lab(94.9004% -17.0769 5.63836);--wp-color-emerald-400:lab(75.0771% -60.7313 19.4147);--wp-color-emerald-600:lab(55.0481% -49.9246 15.93);--wp-color-emerald-900:lab(28.8637% -26.9249 5.45986);--wp-color-blue-100:lab(92.0301% -2.24757 -11.6453);--wp-color-blue-400:lab(65.0361% -1.42065 -56.9802);--wp-color-blue-500:lab(54.1736% 13.3369 -74.6839);--wp-color-blue-600:lab(44.0605% 29.0279 -86.0352);--wp-color-blue-900:lab(26.1542% 15.7545 -51.5504);--wp-color-purple-100:lab(93.3333% 6.97437 -9.83434);--wp-color-purple-400:lab(63.6946% 47.6127 -59.2066);--wp-color-purple-600:lab(43.0295% 75.21 -86.5669);--wp-color-purple-900:lab(24.9401% 45.2703 -51.2728);--wp-color-neutral-100:lab(96.52% -.0000298023 .0000119209);--wp-color-neutral-200:lab(90.952% 0 -.0000119209);--wp-color-neutral-400:lab(66.128% -.0000298023 .0000119209);--wp-color-neutral-500:lab(48.496% 0 0);--wp-color-neutral-600:lab(34.924% 0 0);--wp-color-neutral-700:lab(27.036% 0 0);--wp-color-neutral-800:lab(15.204% 0 -.00000596046);--wp-color-neutral-900:lab(7.78201% -.0000149012 0)}}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--wp-default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--wp-default-font-feature-settings,normal);font-variation-settings:var(--wp-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--wp-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--wp-default-mono-font-feature-settings,normal);font-variation-settings:var(--wp-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::-webkit-file-upload-button{margin-inline-end:4px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground)}[data-v-91172c21],[data-v-91172c21]:after,[data-v-91172c21]:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-91172c21]::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-91172c21]::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-91172c21]::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html[data-v-91172c21],[data-v-91172c21]:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--wp-default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--wp-default-font-feature-settings,normal);font-variation-settings:var(--wp-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr[data-v-91172c21]{height:0;color:inherit;border-top-width:1px}abbr[data-v-91172c21]:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1[data-v-91172c21],h2[data-v-91172c21],h3[data-v-91172c21],h4[data-v-91172c21],h5[data-v-91172c21],h6[data-v-91172c21]{font-size:inherit;font-weight:inherit}a[data-v-91172c21]{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b[data-v-91172c21],strong[data-v-91172c21]{font-weight:bolder}code[data-v-91172c21],kbd[data-v-91172c21],samp[data-v-91172c21],pre[data-v-91172c21]{font-family:var(--wp-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--wp-default-mono-font-feature-settings,normal);font-variation-settings:var(--wp-default-mono-font-variation-settings,normal);font-size:1em}small[data-v-91172c21]{font-size:80%}sub[data-v-91172c21],sup[data-v-91172c21]{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub[data-v-91172c21]{bottom:-.25em}sup[data-v-91172c21]{top:-.5em}table[data-v-91172c21]{text-indent:0;border-color:inherit;border-collapse:collapse}[data-v-91172c21]:-moz-focusring{outline:auto}progress[data-v-91172c21]{vertical-align:baseline}summary[data-v-91172c21]{display:list-item}ol[data-v-91172c21],ul[data-v-91172c21],menu[data-v-91172c21]{list-style:none}img[data-v-91172c21],svg[data-v-91172c21],video[data-v-91172c21],canvas[data-v-91172c21],audio[data-v-91172c21],iframe[data-v-91172c21],embed[data-v-91172c21],object[data-v-91172c21]{vertical-align:middle;display:block}img[data-v-91172c21],video[data-v-91172c21]{max-width:100%;height:auto}button[data-v-91172c21],input[data-v-91172c21],select[data-v-91172c21],optgroup[data-v-91172c21],textarea[data-v-91172c21]{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}[data-v-91172c21]::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}[data-v-91172c21]::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup[data-v-91172c21]{font-weight:bolder}:where(select:is([multiple],[size])) optgroup[data-v-91172c21]{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option[data-v-91172c21]{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option[data-v-91172c21]{padding-inline-start:20px}[data-v-91172c21]::-webkit-file-upload-button{margin-inline-end:4px}[data-v-91172c21]::file-selector-button{margin-inline-end:4px}[data-v-91172c21]::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){[data-v-91172c21]::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){[data-v-91172c21]::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea[data-v-91172c21]{resize:vertical}[data-v-91172c21]::-webkit-search-decoration{-webkit-appearance:none}[data-v-91172c21]::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}[data-v-91172c21]::-webkit-datetime-edit{display:inline-flex}[data-v-91172c21]::-webkit-datetime-edit-fields-wrapper{padding:0}[data-v-91172c21]::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}[data-v-91172c21]::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}[data-v-91172c21]::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}[data-v-91172c21]::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}[data-v-91172c21]::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}[data-v-91172c21]::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}[data-v-91172c21]::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}[data-v-91172c21]::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}[data-v-91172c21]::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}[data-v-91172c21]::-webkit-calendar-picker-indicator{line-height:1}[data-v-91172c21]:-moz-ui-invalid{box-shadow:none}button[data-v-91172c21]{-webkit-appearance:button;appearance:button}input[data-v-91172c21]:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}[data-v-91172c21]::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}[data-v-91172c21]::file-selector-button{-webkit-appearance:button;appearance:button}[data-v-91172c21]::-webkit-inner-spin-button{height:auto}[data-v-91172c21]::-webkit-outer-spin-button{height:auto}[hidden][data-v-91172c21]:where(:not([hidden=until-found])){display:none!important}[data-v-91172c21]{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){[data-v-91172c21]{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body[data-v-91172c21]{background-color:var(--background);color:var(--foreground)}}@layer utilities{.wp\\:\\@container\\/card-header{container:card-header/inline-size}.wp\\:pointer-events-none{pointer-events:none}.wp\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wp\\:absolute{position:absolute}.wp\\:fixed{position:fixed}.wp\\:relative{position:relative}.wp\\:sticky{position:sticky}.wp\\:inset-0{inset:calc(var(--wp-spacing) * 0)}.wp\\:inset-x-0{inset-inline:calc(var(--wp-spacing) * 0)}.wp\\:top-0{top:calc(var(--wp-spacing) * 0)}.wp\\:top-1\\/2{top:50%}.wp\\:top-2\\.5{top:calc(var(--wp-spacing) * 2.5)}.wp\\:top-4{top:calc(var(--wp-spacing) * 4)}.wp\\:top-\\[50\\%\\]{top:50%}.wp\\:top-full{top:100%}.wp\\:right-0{right:calc(var(--wp-spacing) * 0)}.wp\\:right-1{right:calc(var(--wp-spacing) * 1)}.wp\\:right-2{right:calc(var(--wp-spacing) * 2)}.wp\\:right-4{right:calc(var(--wp-spacing) * 4)}.wp\\:bottom-2{bottom:calc(var(--wp-spacing) * 2)}.wp\\:bottom-full{bottom:100%}.wp\\:left-0{left:calc(var(--wp-spacing) * 0)}.wp\\:left-0\\.5{left:calc(var(--wp-spacing) * .5)}.wp\\:left-2{left:calc(var(--wp-spacing) * 2)}.wp\\:left-\\[50\\%\\]{left:50%}.wp\\:z-10{z-index:10}.wp\\:z-40{z-index:40}.wp\\:z-50{z-index:50}.wp\\:order-first{order:-9999}.wp\\:col-start-2{grid-column-start:2}.wp\\:row-span-2{grid-row:span 2/span 2}.wp\\:row-start-1{grid-row-start:1}.wp\\:container{width:100%}@media (min-width:40rem){.wp\\:container{max-width:40rem}}@media (min-width:48rem){.wp\\:container{max-width:48rem}}@media (min-width:64rem){.wp\\:container{max-width:64rem}}@media (min-width:80rem){.wp\\:container{max-width:80rem}}@media (min-width:96rem){.wp\\:container{max-width:96rem}}.wp\\:-mx-1{margin-inline:calc(var(--wp-spacing) * -1)}.wp\\:mx-2{margin-inline:calc(var(--wp-spacing) * 2)}.wp\\:mx-auto{margin-inline-start:auto;margin-inline-end:auto}.wp\\:my-1{margin-block:calc(var(--wp-spacing) * 1)}.wp\\:my-2{margin-block:calc(var(--wp-spacing) * 2)}.wp\\:my-8{margin-block:calc(var(--wp-spacing) * 8)}.wp\\:mt-1{margin-top:calc(var(--wp-spacing) * 1)}.wp\\:mr-4{margin-right:calc(var(--wp-spacing) * 4)}.wp\\:mr-auto{margin-right:auto}.wp\\:mb-1{margin-bottom:calc(var(--wp-spacing) * 1)}.wp\\:mb-2{margin-bottom:calc(var(--wp-spacing) * 2)}.wp\\:mb-4{margin-bottom:calc(var(--wp-spacing) * 4)}.wp\\:mb-5{margin-bottom:calc(var(--wp-spacing) * 5)}.wp\\:ml-auto{margin-left:auto}.wp\\:block{display:block}.wp\\:flex{display:flex}.wp\\:grid{display:grid}.wp\\:hidden{display:none}.wp\\:inline-flex{display:inline-flex}.wp\\:aspect-square{aspect-ratio:1}.wp\\:aspect-video{aspect-ratio:var(--wp-aspect-video)}.wp\\:size-2{width:calc(var(--wp-spacing) * 2);height:calc(var(--wp-spacing) * 2)}.wp\\:size-2\\.5{width:calc(var(--wp-spacing) * 2.5);height:calc(var(--wp-spacing) * 2.5)}.wp\\:size-3{width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:size-3\\.5{width:calc(var(--wp-spacing) * 3.5);height:calc(var(--wp-spacing) * 3.5)}.wp\\:size-4{width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:size-5{width:calc(var(--wp-spacing) * 5);height:calc(var(--wp-spacing) * 5)}.wp\\:size-6{width:calc(var(--wp-spacing) * 6);height:calc(var(--wp-spacing) * 6)}.wp\\:size-8{width:calc(var(--wp-spacing) * 8);height:calc(var(--wp-spacing) * 8)}.wp\\:size-9{width:calc(var(--wp-spacing) * 9);height:calc(var(--wp-spacing) * 9)}.wp\\:size-10{width:calc(var(--wp-spacing) * 10);height:calc(var(--wp-spacing) * 10)}.wp\\:size-12{width:calc(var(--wp-spacing) * 12);height:calc(var(--wp-spacing) * 12)}.wp\\:size-full{width:100%;height:100%}.wp\\:h-2\\.5{height:calc(var(--wp-spacing) * 2.5)}.wp\\:h-3{height:calc(var(--wp-spacing) * 3)}.wp\\:h-4{height:calc(var(--wp-spacing) * 4)}.wp\\:h-5{height:calc(var(--wp-spacing) * 5)}.wp\\:h-6{height:calc(var(--wp-spacing) * 6)}.wp\\:h-7{height:calc(var(--wp-spacing) * 7)}.wp\\:h-8{height:calc(var(--wp-spacing) * 8)}.wp\\:h-9{height:calc(var(--wp-spacing) * 9)}.wp\\:h-10{height:calc(var(--wp-spacing) * 10)}.wp\\:h-12{height:calc(var(--wp-spacing) * 12)}.wp\\:h-14{height:calc(var(--wp-spacing) * 14)}.wp\\:h-16{height:calc(var(--wp-spacing) * 16)}.wp\\:h-64{height:calc(var(--wp-spacing) * 64)}.wp\\:h-80{height:calc(var(--wp-spacing) * 80)}.wp\\:h-\\[16px\\]{height:16px}.wp\\:h-\\[60vh\\]{height:60vh}.wp\\:h-\\[var\\(--reka-select-trigger-height\\)\\]{height:var(--reka-select-trigger-height)}.wp\\:h-full{height:100%}.wp\\:h-px{height:1px}.wp\\:max-h-\\(--reka-dropdown-menu-content-available-height\\){max-height:var(--reka-dropdown-menu-content-available-height)}.wp\\:max-h-\\(--reka-select-content-available-height\\){max-height:var(--reka-select-content-available-height)}.wp\\:max-h-0{max-height:calc(var(--wp-spacing) * 0)}.wp\\:max-h-40{max-height:calc(var(--wp-spacing) * 40)}.wp\\:max-h-60{max-height:calc(var(--wp-spacing) * 60)}.wp\\:max-h-\\[300px\\]{max-height:300px}.wp\\:min-h-10{min-height:calc(var(--wp-spacing) * 10)}.wp\\:min-h-\\[calc\\(100vh-3\\.5rem\\)\\]{min-height:calc(100vh - 3.5rem)}.wp\\:min-h-screen{min-height:100vh}.wp\\:\\!w-full{width:100%!important}.wp\\:w-2\\.5{width:calc(var(--wp-spacing) * 2.5)}.wp\\:w-3{width:calc(var(--wp-spacing) * 3)}.wp\\:w-4{width:calc(var(--wp-spacing) * 4)}.wp\\:w-5{width:calc(var(--wp-spacing) * 5)}.wp\\:w-6{width:calc(var(--wp-spacing) * 6)}.wp\\:w-8{width:calc(var(--wp-spacing) * 8)}.wp\\:w-9{width:calc(var(--wp-spacing) * 9)}.wp\\:w-12{width:calc(var(--wp-spacing) * 12)}.wp\\:w-16{width:calc(var(--wp-spacing) * 16)}.wp\\:w-24{width:calc(var(--wp-spacing) * 24)}.wp\\:w-48{width:calc(var(--wp-spacing) * 48)}.wp\\:w-72{width:calc(var(--wp-spacing) * 72)}.wp\\:w-\\[16px\\]{width:16px}.wp\\:w-\\[min\\(92vw\\,330px\\)\\]{width:min(92vw,330px)}.wp\\:w-auto{width:auto}.wp\\:w-fit{width:-moz-fit-content;width:fit-content}.wp\\:w-full{width:100%}.wp\\:max-w-80{max-width:calc(var(--wp-spacing) * 80)}.wp\\:max-w-\\[330px\\]{max-width:330px}.wp\\:max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.wp\\:max-w-lg{max-width:var(--wp-container-lg)}.wp\\:max-w-md{max-width:var(--wp-container-md)}.wp\\:max-w-screen-2xl{max-width:var(--wp-breakpoint-2xl)}.wp\\:min-w-0{min-width:calc(var(--wp-spacing) * 0)}.wp\\:min-w-5{min-width:calc(var(--wp-spacing) * 5)}.wp\\:min-w-8{min-width:calc(var(--wp-spacing) * 8)}.wp\\:min-w-9{min-width:calc(var(--wp-spacing) * 9)}.wp\\:min-w-10{min-width:calc(var(--wp-spacing) * 10)}.wp\\:min-w-\\[8rem\\]{min-width:8rem}.wp\\:min-w-\\[var\\(--reka-select-trigger-width\\)\\]{min-width:var(--reka-select-trigger-width)}.wp\\:flex-1{flex:1}.wp\\:shrink-0{flex-shrink:0}.wp\\:grow{flex-grow:1}.wp\\:origin-\\(--reka-dropdown-menu-content-transform-origin\\){transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.wp\\:origin-\\(--reka-popover-content-transform-origin\\){transform-origin:var(--reka-popover-content-transform-origin)}.wp\\:translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-0\\.5{--tw-translate-y:calc(var(--wp-spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:rotate-45{rotate:45deg}.wp\\:animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:animate-pulse{animation:var(--wp-animate-pulse)}.wp\\:cursor-default{cursor:default}.wp\\:cursor-move{cursor:move}.wp\\:cursor-pointer{cursor:pointer}.wp\\:touch-none{touch-action:none}.wp\\:scroll-my-1{scroll-margin-block:calc(var(--wp-spacing) * 1)}.wp\\:scroll-py-1{scroll-padding-block:calc(var(--wp-spacing) * 1)}.wp\\:auto-rows-min{grid-auto-rows:min-content}.wp\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.wp\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.wp\\:grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}.wp\\:flex-col{flex-direction:column}.wp\\:flex-col-reverse{flex-direction:column-reverse}.wp\\:place-items-center{place-items:center}.wp\\:items-center{align-items:center}.wp\\:items-end{align-items:flex-end}.wp\\:items-start{align-items:flex-start}.wp\\:justify-between{justify-content:space-between}.wp\\:justify-center{justify-content:center}.wp\\:gap-0{gap:calc(var(--wp-spacing) * 0)}.wp\\:gap-1{gap:calc(var(--wp-spacing) * 1)}.wp\\:gap-1\\.5{gap:calc(var(--wp-spacing) * 1.5)}.wp\\:gap-2{gap:calc(var(--wp-spacing) * 2)}.wp\\:gap-3{gap:calc(var(--wp-spacing) * 3)}.wp\\:gap-4{gap:calc(var(--wp-spacing) * 4)}.wp\\:gap-6{gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-\\[--spacing\\(var\\(--gap\\)\\)\\]{gap:calc(var(--wp-spacing) * var(--gap))}:where(.wp\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.wp\\:gap-x-6{column-gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-y-3{row-gap:calc(var(--wp-spacing) * 3)}.wp\\:self-start{align-self:flex-start}.wp\\:justify-self-end{justify-self:flex-end}.wp\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wp\\:overflow-auto{overflow:auto}.wp\\:overflow-hidden{overflow:hidden}.wp\\:overflow-x-hidden{overflow-x:hidden}.wp\\:overflow-y-auto{overflow-y:auto}.wp\\:rounded{border-radius:.25rem}.wp\\:rounded-2xl{border-radius:var(--wp-radius-2xl)}.wp\\:rounded-\\[2px\\]{border-radius:2px}.wp\\:rounded-\\[inherit\\]{border-radius:inherit}.wp\\:rounded-full{border-radius:3.40282e38px}.wp\\:rounded-lg{border-radius:var(--radius)}.wp\\:rounded-md{border-radius:calc(var(--radius) - 2px)}.wp\\:rounded-sm{border-radius:calc(var(--radius) - 4px)}.wp\\:rounded-xl{border-radius:calc(var(--radius) + 4px)}.wp\\:rounded-xs{border-radius:var(--wp-radius-xs)}.wp\\:border{border-style:var(--tw-border-style);border-width:1px}.wp\\:border-0{border-style:var(--tw-border-style);border-width:0}.wp\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.wp\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.wp\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.wp\\:border-blue-500{border-color:var(--wp-color-blue-500)}.wp\\:border-border{border-color:var(--border)}.wp\\:border-destructive{border-color:var(--destructive)}.wp\\:border-input{border-color:var(--input)}.wp\\:border-primary{border-color:var(--primary)}.wp\\:border-white\\/20{border-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:border-white\\/20{border-color:color-mix(in oklab, var(--wp-color-white) 20%, transparent)}}.wp\\:border-t-transparent{border-top-color:#0000}.wp\\:border-l-transparent{border-left-color:#0000}.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12{background-color:var(--color-red)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12{background-color:color-mix(in oklab, var(--color-red) 12%, transparent)}}.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12{background-color:color-mix(in oklab, var(--p-primary-color) 12%, transparent)}}.wp\\:bg-amber-100{background-color:var(--wp-color-amber-100)}.wp\\:bg-background,.wp\\:bg-background\\/95{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-background\\/95{background-color:color-mix(in oklab, var(--background) 95%, transparent)}}.wp\\:bg-black,.wp\\:bg-black\\/80{background-color:var(--wp-color-black)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-black\\/80{background-color:color-mix(in oklab, var(--wp-color-black) 80%, transparent)}}.wp\\:bg-blue-100{background-color:var(--wp-color-blue-100)}.wp\\:bg-border{background-color:var(--border)}.wp\\:bg-card{background-color:var(--card)}.wp\\:bg-destructive{background-color:var(--destructive)}.wp\\:bg-emerald-100{background-color:var(--wp-color-emerald-100)}.wp\\:bg-foreground{background-color:var(--foreground)}.wp\\:bg-muted{background-color:var(--muted)}.wp\\:bg-neutral-100{background-color:var(--wp-color-neutral-100)}.wp\\:bg-neutral-800{background-color:var(--wp-color-neutral-800)}.wp\\:bg-popover{background-color:var(--popover)}.wp\\:bg-primary,.wp\\:bg-primary\\/10{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-primary\\/10{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.wp\\:bg-purple-100{background-color:var(--wp-color-purple-100)}.wp\\:bg-secondary{background-color:var(--secondary)}.wp\\:bg-status-available{background-color:var(--status-available)}.wp\\:bg-transparent{background-color:#0000}.wp\\:bg-white,.wp\\:bg-white\\/70{background-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-white\\/70{background-color:color-mix(in oklab, var(--wp-color-white) 70%, transparent)}}.wp\\:bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 80%, transparent)}}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:from-destructive\\/60{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-destructive\\/60{--tw-gradient-from:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:from-destructive\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-\\[color\\:var\\(--p-primary-color\\)\\]\\/100{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-destructive\\/90{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:to-destructive\\/90{--tw-gradient-to:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:to-destructive\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:fill-current{fill:currentColor}.wp\\:fill-foreground{fill:var(--foreground)}.wp\\:object-contain{object-fit:contain}.wp\\:object-cover{object-fit:cover}.wp\\:p-0{padding:calc(var(--wp-spacing) * 0)}.wp\\:p-0\\.5{padding:calc(var(--wp-spacing) * .5)}.wp\\:p-1{padding:calc(var(--wp-spacing) * 1)}.wp\\:p-2{padding:calc(var(--wp-spacing) * 2)}.wp\\:p-3{padding:calc(var(--wp-spacing) * 3)}.wp\\:p-4{padding:calc(var(--wp-spacing) * 4)}.wp\\:p-6{padding:calc(var(--wp-spacing) * 6)}.wp\\:p-px{padding:1px}.wp\\:px-1{padding-inline:calc(var(--wp-spacing) * 1)}.wp\\:px-1\\.5{padding-inline:calc(var(--wp-spacing) * 1.5)}.wp\\:px-2{padding-inline:calc(var(--wp-spacing) * 2)}.wp\\:px-2\\.5{padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:px-3{padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:px-4{padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:px-6{padding-inline:calc(var(--wp-spacing) * 6)}.wp\\:px-10{padding-inline:calc(var(--wp-spacing) * 10)}.wp\\:px-14{padding-inline:calc(var(--wp-spacing) * 14)}.wp\\:py-1{padding-block:calc(var(--wp-spacing) * 1)}.wp\\:py-1\\.5{padding-block:calc(var(--wp-spacing) * 1.5)}.wp\\:py-2{padding-block:calc(var(--wp-spacing) * 2)}.wp\\:py-3{padding-block:calc(var(--wp-spacing) * 3)}.wp\\:py-4{padding-block:calc(var(--wp-spacing) * 4)}.wp\\:py-6{padding-block:calc(var(--wp-spacing) * 6)}.wp\\:py-8{padding-block:calc(var(--wp-spacing) * 8)}.wp\\:pt-0{padding-top:calc(var(--wp-spacing) * 0)}.wp\\:pr-2{padding-right:calc(var(--wp-spacing) * 2)}.wp\\:pr-4{padding-right:calc(var(--wp-spacing) * 4)}.wp\\:pr-8{padding-right:calc(var(--wp-spacing) * 8)}.wp\\:pb-0{padding-bottom:calc(var(--wp-spacing) * 0)}.wp\\:pb-4{padding-bottom:calc(var(--wp-spacing) * 4)}.wp\\:pl-2{padding-left:calc(var(--wp-spacing) * 2)}.wp\\:pl-8{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:text-center{text-align:center}.wp\\:text-left{text-align:left}.wp\\:font-mono{font-family:var(--wp-font-mono)}.wp\\:font-sans{font-family:Montserrat,sans-serif}.wp\\:text-2xl{font-size:var(--wp-text-2xl);line-height:var(--tw-leading,var(--wp-text-2xl--line-height))}.wp\\:text-3xl{font-size:var(--wp-text-3xl);line-height:var(--tw-leading,var(--wp-text-3xl--line-height))}.wp\\:text-base{font-size:var(--wp-text-base);line-height:var(--tw-leading,var(--wp-text-base--line-height))}.wp\\:text-lg{font-size:var(--wp-text-lg);line-height:var(--tw-leading,var(--wp-text-lg--line-height))}.wp\\:text-sm{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:text-xs{font-size:var(--wp-text-xs);line-height:var(--tw-leading,var(--wp-text-xs--line-height))}.wp\\:text-\\[10px\\]{font-size:10px}.wp\\:text-\\[12px\\]{font-size:12px}.wp\\:leading-none{--tw-leading:1;line-height:1}.wp\\:font-bold{--tw-font-weight:var(--wp-font-weight-bold);font-weight:var(--wp-font-weight-bold)}.wp\\:font-light{--tw-font-weight:var(--wp-font-weight-light);font-weight:var(--wp-font-weight-light)}.wp\\:font-medium{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:font-semibold{--tw-font-weight:var(--wp-font-weight-semibold);font-weight:var(--wp-font-weight-semibold)}.wp\\:tracking-wider{--tw-tracking:var(--wp-tracking-wider);letter-spacing:var(--wp-tracking-wider)}.wp\\:tracking-widest{--tw-tracking:var(--wp-tracking-widest);letter-spacing:var(--wp-tracking-widest)}.wp\\:text-balance{text-wrap:balance}.wp\\:whitespace-nowrap{white-space:nowrap}.wp\\:text-\\[var\\(--color-avaible\\)\\]{color:var(--color-avaible)}.wp\\:text-\\[var\\(--color-primary\\)\\]{color:var(--color-primary)}.wp\\:text-\\[var\\(--color-red\\)\\]{color:var(--color-red)}.wp\\:text-\\[var\\(--color-settings\\)\\]{color:var(--color-settings)}.wp\\:text-\\[var\\(--p-primary-color\\)\\]{color:var(--p-primary-color)}.wp\\:text-\\[var\\(--primary\\)\\]{color:var(--primary)}.wp\\:text-amber-500{color:var(--wp-color-amber-500)}.wp\\:text-amber-600{color:var(--wp-color-amber-600)}.wp\\:text-background{color:var(--background)}.wp\\:text-black{color:var(--wp-color-black)}.wp\\:text-blue-500{color:var(--wp-color-blue-500)}.wp\\:text-blue-600{color:var(--wp-color-blue-600)}.wp\\:text-card-foreground{color:var(--card-foreground)}.wp\\:text-destructive{color:var(--destructive)}.wp\\:text-emerald-600{color:var(--wp-color-emerald-600)}.wp\\:text-foreground{color:var(--foreground)}.wp\\:text-green-500{color:var(--wp-color-green-500)}.wp\\:text-muted-foreground{color:var(--muted-foreground)}.wp\\:text-neutral-400{color:var(--wp-color-neutral-400)}.wp\\:text-neutral-500{color:var(--wp-color-neutral-500)}.wp\\:text-neutral-600{color:var(--wp-color-neutral-600)}.wp\\:text-neutral-800{color:var(--wp-color-neutral-800)}.wp\\:text-neutral-900{color:var(--wp-color-neutral-900)}.wp\\:text-popover-foreground{color:var(--popover-foreground)}.wp\\:text-primary{color:var(--primary)}.wp\\:text-primary-foreground{color:var(--primary-foreground)}.wp\\:text-purple-600{color:var(--wp-color-purple-600)}.wp\\:text-red-500{color:var(--wp-color-red-500)}.wp\\:text-secondary-foreground{color:var(--secondary-foreground)}.wp\\:text-status-available{color:var(--status-available)}.wp\\:text-status-disconnected{color:var(--status-disconnected)}.wp\\:text-status-hold{color:var(--status-hold)}.wp\\:text-status-incall{color:var(--status-incall)}.wp\\:text-status-incoming{color:var(--status-incoming)}.wp\\:text-white{color:var(--wp-color-white)}.wp\\:capitalize{text-transform:capitalize}.wp\\:underline-offset-4{text-underline-offset:4px}.wp\\:opacity-0{opacity:0}.wp\\:opacity-50{opacity:.5}.wp\\:opacity-70{opacity:.7}.wp\\:opacity-100{opacity:1}.wp\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:inset-shadow-2xs{--tw-inset-shadow:inset 0 1px var(--tw-inset-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:ring-ring\\/50{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:ring-ring\\/50{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:ring-offset-background{--tw-ring-offset-color:var(--background)}.wp\\:outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:outline-hidden{outline-offset:2px;outline:2px solid #0000}}.wp\\:backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:backdrop-blur-\\[1px\\]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.wp\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.wp\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.wp\\:ease-in-out{--tw-ease:var(--wp-ease-in-out);transition-timing-function:var(--wp-ease-in-out)}.wp\\:fade-in-0{--tw-enter-opacity:0}.wp\\:outline-none{--tw-outline-style:none;outline-style:none}.wp\\:select-none{-webkit-user-select:none;user-select:none}.wp\\:select-text{-webkit-user-select:text;user-select:text}.wp\\:zoom-in-95{--tw-enter-scale:.95}.wp\\:group-data-\\[disabled\\=true\\]\\:pointer-events-none:is(:where(.wp\\:group)[data-disabled=true] *){pointer-events:none}.wp\\:group-data-\\[disabled\\=true\\]\\:opacity-50:is(:where(.wp\\:group)[data-disabled=true] *){opacity:.5}.wp\\:peer-disabled\\:cursor-not-allowed:is(:where(.wp\\:peer):disabled~*){cursor:not-allowed}.wp\\:peer-disabled\\:opacity-50:is(:where(.wp\\:peer):disabled~*){opacity:.5}.wp\\:selection\\:bg-primary ::selection,.wp\\:selection\\:bg-primary::selection{background-color:var(--primary)}.wp\\:selection\\:text-primary-foreground ::selection,.wp\\:selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.wp\\:file\\:inline-flex::-webkit-file-upload-button{display:inline-flex}.wp\\:file\\:inline-flex::file-selector-button{display:inline-flex}.wp\\:file\\:h-7::-webkit-file-upload-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:h-7::file-selector-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:border-0::-webkit-file-upload-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:bg-transparent::-webkit-file-upload-button{background-color:#0000}.wp\\:file\\:bg-transparent::file-selector-button{background-color:#0000}.wp\\:file\\:text-sm::-webkit-file-upload-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:text-sm::file-selector-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:font-medium::-webkit-file-upload-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:font-medium::file-selector-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:text-foreground::-webkit-file-upload-button{color:var(--foreground)}.wp\\:file\\:text-foreground::file-selector-button{color:var(--foreground)}.wp\\:placeholder\\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.wp\\:last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8:hover{background-color:color-mix(in oklab, var(--p-primary-color) 8%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10:hover{background-color:color-mix(in oklab, var(--p-primary-color) 10%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20:hover{background-color:color-mix(in oklab, var(--p-primary-color) 20%, transparent)}}.wp\\:hover\\:bg-accent:hover,.wp\\:hover\\:bg-accent\\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:hover\\:bg-muted:hover{background-color:var(--muted)}.wp\\:hover\\:bg-neutral-100:hover{background-color:var(--wp-color-neutral-100)}.wp\\:hover\\:bg-neutral-200:hover{background-color:var(--wp-color-neutral-200)}.wp\\:hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.wp\\:hover\\:bg-secondary:hover,.wp\\:hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.wp\\:hover\\:bg-status-available\\/90:hover{background-color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-status-available\\/90:hover{background-color:color-mix(in oklab, var(--status-available) 90%, transparent)}}.wp\\:hover\\:bg-transparent:hover{background-color:#0000}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 75%, transparent)}}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-from:color-mix(in oklab, var(--destructive) 70%, transparent)}}.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-\\[color\\:var\\(--p-primary-color\\)\\]:hover{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-to:color-mix(in oklab, var(--destructive) 95%, transparent)}}.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.wp\\:hover\\:text-destructive:hover{color:var(--destructive)}.wp\\:hover\\:text-muted-foreground:hover{color:var(--muted-foreground)}.wp\\:hover\\:text-primary:hover{color:var(--primary)}.wp\\:hover\\:text-status-available\\/80:hover{color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-available\\/80:hover{color:color-mix(in oklab, var(--status-available) 80%, transparent)}}.wp\\:hover\\:text-status-disconnected:hover,.wp\\:hover\\:text-status-disconnected\\/80:hover{color:var(--status-disconnected)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-disconnected\\/80:hover{color:color-mix(in oklab, var(--status-disconnected) 80%, transparent)}}.wp\\:hover\\:text-status-hold\\/80:hover{color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-hold\\/80:hover{color:color-mix(in oklab, var(--status-hold) 80%, transparent)}}.wp\\:hover\\:text-status-incall\\/80:hover{color:var(--status-incall)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incall\\/80:hover{color:color-mix(in oklab, var(--status-incall) 80%, transparent)}}.wp\\:hover\\:text-status-incoming\\/80:hover{color:var(--status-incoming)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incoming\\/80:hover{color:color-mix(in oklab, var(--status-incoming) 80%, transparent)}}.wp\\:hover\\:underline:hover{text-decoration-line:underline}.wp\\:hover\\:opacity-80:hover{opacity:.8}.wp\\:hover\\:opacity-100:hover{opacity:1}.wp\\:hover\\:ring-4:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.wp\\:focus\\:z-10:focus{z-index:10}.wp\\:focus\\:bg-accent:focus{background-color:var(--accent)}.wp\\:focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.wp\\:focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.wp\\:focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:z-10:focus-visible{z-index:10}.wp\\:focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.wp\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[var\\(--p-primary-color\\)\\]:focus-visible{--tw-ring-color:var(--p-primary-color)}.wp\\:focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus-visible\\:ring-offset-white:focus-visible{--tw-ring-offset-color:var(--wp-color-white)}.wp\\:focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.wp\\:active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.wp\\:disabled\\:pointer-events-none:disabled{pointer-events:none}.wp\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.wp\\:disabled\\:opacity-50:disabled{opacity:.5}.wp\\:has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.wp\\:has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.wp\\:data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.wp\\:data-\\[highlighted\\]\\:bg-accent[data-highlighted]{background-color:var(--accent)}.wp\\:data-\\[highlighted\\]\\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.wp\\:data-\\[inset\\]\\:pl-8[data-inset]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal]{height:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal]{height:100%}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.wp\\:data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical]{min-height:calc(var(--wp-spacing) * 44)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical]{width:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical]{width:auto}.wp\\:data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.wp\\:data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical]{flex-direction:column}.wp\\:data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.wp\\:data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.wp\\:data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.wp\\:data-\\[size\\=default\\]\\:h-9[data-size=default]{height:calc(var(--wp-spacing) * 9)}.wp\\:data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:calc(var(--wp-spacing) * 8)}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--wp-spacing) * 2)}.wp\\:data-\\[spacing\\=0\\]\\:rounded-none[data-spacing="0"]{border-radius:0}.wp\\:data-\\[spacing\\=0\\]\\:shadow-none[data-spacing="0"]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:data-\\[spacing\\=0\\]\\:first\\:rounded-l-md[data-spacing="0"]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[spacing\\=0\\]\\:last\\:rounded-r-md[data-spacing="0"]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.wp\\:data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.wp\\:data-\\[state\\=on\\]\\:bg-accent[data-state=on]{background-color:var(--accent)}.wp\\:data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.wp\\:data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.wp\\:data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.wp\\:data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.wp\\:data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:var(--destructive)}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.wp\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline]{border-color:var(--color-primary-500)}.wp\\:data-\\[variant\\=outline\\]\\:focus-visible\\:ring-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline]:focus-visible{--tw-ring-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border[data-spacing="0"][data-variant=outline]{border-style:var(--tw-border-style);border-width:1px}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-spacing="0"][data-variant=outline]{border-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=default\\]\\:data-\\[variant\\=outline\\]\\:shadow-xs[data-spacing=default][data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.wp\\:supports-backdrop-filter\\:bg-background\\/60{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:supports-backdrop-filter\\:bg-background\\/60{background-color:color-mix(in oklab, var(--background) 60%, transparent)}}}@media (min-width:40rem){.wp\\:sm\\:block{display:block}.wp\\:sm\\:inline{display:inline}.wp\\:sm\\:inline-block{display:inline-block}.wp\\:sm\\:max-w-lg{max-width:var(--wp-container-lg)}.wp\\:sm\\:max-w-md{max-width:var(--wp-container-md)}.wp\\:sm\\:max-w-sm{max-width:var(--wp-container-sm)}.wp\\:sm\\:flex-row{flex-direction:row}.wp\\:sm\\:justify-end{justify-content:flex-end}.wp\\:sm\\:gap-0{gap:calc(var(--wp-spacing) * 0)}.wp\\:sm\\:rounded-lg{border-radius:var(--radius)}.wp\\:sm\\:text-left{text-align:left}}@media (min-width:48rem){.wp\\:md\\:w-full{width:100%}.wp\\:md\\:text-sm{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}}.wp\\:dark\\:border-input:where(.dark,.dark *){border-color:var(--input)}.wp\\:dark\\:bg-amber-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-amber-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-amber-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-amber-900) 30%, transparent)}}.wp\\:dark\\:bg-blue-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-blue-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-blue-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-blue-900) 30%, transparent)}}.wp\\:dark\\:bg-destructive\\/60:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-destructive\\/60:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:dark\\:bg-emerald-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-emerald-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-emerald-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-emerald-900) 30%, transparent)}}.wp\\:dark\\:bg-input\\/30:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-input\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.wp\\:dark\\:bg-neutral-700:where(.dark,.dark *){background-color:var(--wp-color-neutral-700)}.wp\\:dark\\:bg-neutral-800:where(.dark,.dark *){background-color:var(--wp-color-neutral-800)}.wp\\:dark\\:bg-neutral-900:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:bg-neutral-900\\/70:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-neutral-900\\/70:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-neutral-900) 70%, transparent)}}.wp\\:dark\\:bg-purple-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-purple-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-purple-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-purple-900) 30%, transparent)}}.wp\\:dark\\:text-amber-400:where(.dark,.dark *){color:var(--wp-color-amber-400)}.wp\\:dark\\:text-blue-400:where(.dark,.dark *){color:var(--wp-color-blue-400)}.wp\\:dark\\:text-emerald-400:where(.dark,.dark *){color:var(--wp-color-emerald-400)}.wp\\:dark\\:text-neutral-400:where(.dark,.dark *){color:var(--wp-color-neutral-400)}.wp\\:dark\\:text-neutral-500:where(.dark,.dark *){color:var(--wp-color-neutral-500)}.wp\\:dark\\:text-purple-400:where(.dark,.dark *){color:var(--wp-color-purple-400)}.wp\\:dark\\:text-white:where(.dark,.dark *){color:var(--wp-color-white)}@media (hover:hover){.wp\\:dark\\:hover\\:bg-accent\\/50:where(.dark,.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-accent\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-input\\/50:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-input\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-600:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-600)}.wp\\:dark\\:hover\\:bg-neutral-800\\/80:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-800)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-neutral-800\\/80:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--wp-color-neutral-800) 80%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-900:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:hover\\:text-neutral-100:where(.dark,.dark *):hover{color:var(--wp-color-neutral-100)}.wp\\:dark\\:hover\\:text-status-disconnected:where(.dark,.dark *):hover{color:var(--status-disconnected)}}.wp\\:dark\\:focus-visible\\:ring-destructive\\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:focus-visible\\:ring-destructive\\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:focus-visible\\:ring-offset-neutral-900:where(.dark,.dark *):focus-visible{--tw-ring-offset-color:var(--wp-color-neutral-900)}.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:\\[\\&_button\\]\\:cursor-pointer button{cursor:pointer}.wp\\:\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.wp\\:\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3 svg:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4 svg:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*="'text-'"]){color:var(--muted-foreground)}.wp\\:\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--wp-spacing) * 6)}.wp\\:\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--wp-spacing) * 6)}:is(.wp\\:\\*\\*\\:\\[\\[role\\=button\\]\\]\\:cursor-pointer *)[role=button]{cursor:pointer}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:flex>*):-webkit-any(span):last-child{display:flex}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center>*):-webkit-any(span):last-child{align-items:center}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2>*):-webkit-any(span):last-child{gap:calc(var(--wp-spacing) * 2)}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--wp-spacing) * 2)}:-webkit-any(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):-webkit-any(svg){color:var(--destructive)!important}:is(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:\\[\\&\\:not\\(\\:first-child\\)\\]\\:border-l-0[data-spacing="0"][data-variant=outline]:not(:first-child){border-left-style:var(--tw-border-style);border-left-width:0}.wp\\:\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg{rotate:180deg}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20{background-color:color-mix(in oklab, var(--background) 20%, transparent)}}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:text-background{color:var(--background)}[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10:where(.dark,.dark *){background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10:where(.dark,.dark *){background-color:color-mix(in oklab, var(--background) 10%, transparent)}}.wp\\:\\@container\\/card-header[data-v-91172c21]{container:card-header/inline-size}.wp\\:pointer-events-none[data-v-91172c21]{pointer-events:none}.wp\\:sr-only[data-v-91172c21]{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wp\\:absolute[data-v-91172c21]{position:absolute}.wp\\:fixed[data-v-91172c21]{position:fixed}.wp\\:relative[data-v-91172c21]{position:relative}.wp\\:sticky[data-v-91172c21]{position:sticky}.wp\\:inset-0[data-v-91172c21]{inset:calc(var(--wp-spacing) * 0)}.wp\\:inset-x-0[data-v-91172c21]{inset-inline:calc(var(--wp-spacing) * 0)}.wp\\:top-0[data-v-91172c21]{top:calc(var(--wp-spacing) * 0)}.wp\\:top-1\\/2[data-v-91172c21]{top:50%}.wp\\:top-2\\.5[data-v-91172c21]{top:calc(var(--wp-spacing) * 2.5)}.wp\\:top-4[data-v-91172c21]{top:calc(var(--wp-spacing) * 4)}.wp\\:top-\\[50\\%\\][data-v-91172c21]{top:50%}.wp\\:top-full[data-v-91172c21]{top:100%}.wp\\:right-0[data-v-91172c21]{right:calc(var(--wp-spacing) * 0)}.wp\\:right-1[data-v-91172c21]{right:calc(var(--wp-spacing) * 1)}.wp\\:right-2[data-v-91172c21]{right:calc(var(--wp-spacing) * 2)}.wp\\:right-4[data-v-91172c21]{right:calc(var(--wp-spacing) * 4)}.wp\\:bottom-2[data-v-91172c21]{bottom:calc(var(--wp-spacing) * 2)}.wp\\:bottom-full[data-v-91172c21]{bottom:100%}.wp\\:left-0[data-v-91172c21]{left:calc(var(--wp-spacing) * 0)}.wp\\:left-0\\.5[data-v-91172c21]{left:calc(var(--wp-spacing) * .5)}.wp\\:left-2[data-v-91172c21]{left:calc(var(--wp-spacing) * 2)}.wp\\:left-\\[50\\%\\][data-v-91172c21]{left:50%}.wp\\:z-10[data-v-91172c21]{z-index:10}.wp\\:z-40[data-v-91172c21]{z-index:40}.wp\\:z-50[data-v-91172c21]{z-index:50}.wp\\:order-first[data-v-91172c21]{order:-9999}.wp\\:col-start-2[data-v-91172c21]{grid-column-start:2}.wp\\:row-span-2[data-v-91172c21]{grid-row:span 2/span 2}.wp\\:row-start-1[data-v-91172c21]{grid-row-start:1}.wp\\:container[data-v-91172c21]{width:100%}@media (min-width:40rem){.wp\\:container[data-v-91172c21]{max-width:40rem}}@media (min-width:48rem){.wp\\:container[data-v-91172c21]{max-width:48rem}}@media (min-width:64rem){.wp\\:container[data-v-91172c21]{max-width:64rem}}@media (min-width:80rem){.wp\\:container[data-v-91172c21]{max-width:80rem}}@media (min-width:96rem){.wp\\:container[data-v-91172c21]{max-width:96rem}}.wp\\:-mx-1[data-v-91172c21]{margin-inline:calc(var(--wp-spacing) * -1)}.wp\\:mx-2[data-v-91172c21]{margin-inline:calc(var(--wp-spacing) * 2)}.wp\\:mx-auto[data-v-91172c21]{margin-inline-start:auto;margin-inline-end:auto}.wp\\:my-1[data-v-91172c21]{margin-block:calc(var(--wp-spacing) * 1)}.wp\\:my-2[data-v-91172c21]{margin-block:calc(var(--wp-spacing) * 2)}.wp\\:my-8[data-v-91172c21]{margin-block:calc(var(--wp-spacing) * 8)}.wp\\:mt-1[data-v-91172c21]{margin-top:calc(var(--wp-spacing) * 1)}.wp\\:mr-4[data-v-91172c21]{margin-right:calc(var(--wp-spacing) * 4)}.wp\\:mr-auto[data-v-91172c21]{margin-right:auto}.wp\\:mb-1[data-v-91172c21]{margin-bottom:calc(var(--wp-spacing) * 1)}.wp\\:mb-2[data-v-91172c21]{margin-bottom:calc(var(--wp-spacing) * 2)}.wp\\:mb-4[data-v-91172c21]{margin-bottom:calc(var(--wp-spacing) * 4)}.wp\\:mb-5[data-v-91172c21]{margin-bottom:calc(var(--wp-spacing) * 5)}.wp\\:ml-auto[data-v-91172c21]{margin-left:auto}.wp\\:block[data-v-91172c21]{display:block}.wp\\:flex[data-v-91172c21]{display:flex}.wp\\:grid[data-v-91172c21]{display:grid}.wp\\:hidden[data-v-91172c21]{display:none}.wp\\:inline-flex[data-v-91172c21]{display:inline-flex}.wp\\:aspect-square[data-v-91172c21]{aspect-ratio:1}.wp\\:aspect-video[data-v-91172c21]{aspect-ratio:var(--wp-aspect-video)}.wp\\:size-2[data-v-91172c21]{width:calc(var(--wp-spacing) * 2);height:calc(var(--wp-spacing) * 2)}.wp\\:size-2\\.5[data-v-91172c21]{width:calc(var(--wp-spacing) * 2.5);height:calc(var(--wp-spacing) * 2.5)}.wp\\:size-3[data-v-91172c21]{width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:size-3\\.5[data-v-91172c21]{width:calc(var(--wp-spacing) * 3.5);height:calc(var(--wp-spacing) * 3.5)}.wp\\:size-4[data-v-91172c21]{width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:size-5[data-v-91172c21]{width:calc(var(--wp-spacing) * 5);height:calc(var(--wp-spacing) * 5)}.wp\\:size-6[data-v-91172c21]{width:calc(var(--wp-spacing) * 6);height:calc(var(--wp-spacing) * 6)}.wp\\:size-8[data-v-91172c21]{width:calc(var(--wp-spacing) * 8);height:calc(var(--wp-spacing) * 8)}.wp\\:size-9[data-v-91172c21]{width:calc(var(--wp-spacing) * 9);height:calc(var(--wp-spacing) * 9)}.wp\\:size-10[data-v-91172c21]{width:calc(var(--wp-spacing) * 10);height:calc(var(--wp-spacing) * 10)}.wp\\:size-12[data-v-91172c21]{width:calc(var(--wp-spacing) * 12);height:calc(var(--wp-spacing) * 12)}.wp\\:size-full[data-v-91172c21]{width:100%;height:100%}.wp\\:h-2\\.5[data-v-91172c21]{height:calc(var(--wp-spacing) * 2.5)}.wp\\:h-3[data-v-91172c21]{height:calc(var(--wp-spacing) * 3)}.wp\\:h-4[data-v-91172c21]{height:calc(var(--wp-spacing) * 4)}.wp\\:h-5[data-v-91172c21]{height:calc(var(--wp-spacing) * 5)}.wp\\:h-6[data-v-91172c21]{height:calc(var(--wp-spacing) * 6)}.wp\\:h-7[data-v-91172c21]{height:calc(var(--wp-spacing) * 7)}.wp\\:h-8[data-v-91172c21]{height:calc(var(--wp-spacing) * 8)}.wp\\:h-9[data-v-91172c21]{height:calc(var(--wp-spacing) * 9)}.wp\\:h-10[data-v-91172c21]{height:calc(var(--wp-spacing) * 10)}.wp\\:h-12[data-v-91172c21]{height:calc(var(--wp-spacing) * 12)}.wp\\:h-14[data-v-91172c21]{height:calc(var(--wp-spacing) * 14)}.wp\\:h-16[data-v-91172c21]{height:calc(var(--wp-spacing) * 16)}.wp\\:h-64[data-v-91172c21]{height:calc(var(--wp-spacing) * 64)}.wp\\:h-80[data-v-91172c21]{height:calc(var(--wp-spacing) * 80)}.wp\\:h-\\[16px\\][data-v-91172c21]{height:16px}.wp\\:h-\\[60vh\\][data-v-91172c21]{height:60vh}.wp\\:h-\\[var\\(--reka-select-trigger-height\\)\\][data-v-91172c21]{height:var(--reka-select-trigger-height)}.wp\\:h-full[data-v-91172c21]{height:100%}.wp\\:h-px[data-v-91172c21]{height:1px}.wp\\:max-h-\\(--reka-dropdown-menu-content-available-height\\)[data-v-91172c21]{max-height:var(--reka-dropdown-menu-content-available-height)}.wp\\:max-h-\\(--reka-select-content-available-height\\)[data-v-91172c21]{max-height:var(--reka-select-content-available-height)}.wp\\:max-h-0[data-v-91172c21]{max-height:calc(var(--wp-spacing) * 0)}.wp\\:max-h-40[data-v-91172c21]{max-height:calc(var(--wp-spacing) * 40)}.wp\\:max-h-60[data-v-91172c21]{max-height:calc(var(--wp-spacing) * 60)}.wp\\:max-h-\\[300px\\][data-v-91172c21]{max-height:300px}.wp\\:min-h-10[data-v-91172c21]{min-height:calc(var(--wp-spacing) * 10)}.wp\\:min-h-\\[calc\\(100vh-3\\.5rem\\)\\][data-v-91172c21]{min-height:calc(100vh - 3.5rem)}.wp\\:min-h-screen[data-v-91172c21]{min-height:100vh}.wp\\:\\!w-full[data-v-91172c21]{width:100%!important}.wp\\:w-2\\.5[data-v-91172c21]{width:calc(var(--wp-spacing) * 2.5)}.wp\\:w-3[data-v-91172c21]{width:calc(var(--wp-spacing) * 3)}.wp\\:w-4[data-v-91172c21]{width:calc(var(--wp-spacing) * 4)}.wp\\:w-5[data-v-91172c21]{width:calc(var(--wp-spacing) * 5)}.wp\\:w-6[data-v-91172c21]{width:calc(var(--wp-spacing) * 6)}.wp\\:w-8[data-v-91172c21]{width:calc(var(--wp-spacing) * 8)}.wp\\:w-9[data-v-91172c21]{width:calc(var(--wp-spacing) * 9)}.wp\\:w-12[data-v-91172c21]{width:calc(var(--wp-spacing) * 12)}.wp\\:w-16[data-v-91172c21]{width:calc(var(--wp-spacing) * 16)}.wp\\:w-24[data-v-91172c21]{width:calc(var(--wp-spacing) * 24)}.wp\\:w-48[data-v-91172c21]{width:calc(var(--wp-spacing) * 48)}.wp\\:w-72[data-v-91172c21]{width:calc(var(--wp-spacing) * 72)}.wp\\:w-\\[16px\\][data-v-91172c21]{width:16px}.wp\\:w-\\[min\\(92vw\\,330px\\)\\][data-v-91172c21]{width:min(92vw,330px)}.wp\\:w-auto[data-v-91172c21]{width:auto}.wp\\:w-fit[data-v-91172c21]{width:-moz-fit-content;width:fit-content}.wp\\:w-full[data-v-91172c21]{width:100%}.wp\\:max-w-80[data-v-91172c21]{max-width:calc(var(--wp-spacing) * 80)}.wp\\:max-w-\\[330px\\][data-v-91172c21]{max-width:330px}.wp\\:max-w-\\[calc\\(100\\%-2rem\\)\\][data-v-91172c21]{max-width:calc(100% - 2rem)}.wp\\:max-w-lg[data-v-91172c21]{max-width:var(--wp-container-lg)}.wp\\:max-w-md[data-v-91172c21]{max-width:var(--wp-container-md)}.wp\\:max-w-screen-2xl[data-v-91172c21]{max-width:var(--wp-breakpoint-2xl)}.wp\\:min-w-0[data-v-91172c21]{min-width:calc(var(--wp-spacing) * 0)}.wp\\:min-w-5[data-v-91172c21]{min-width:calc(var(--wp-spacing) * 5)}.wp\\:min-w-8[data-v-91172c21]{min-width:calc(var(--wp-spacing) * 8)}.wp\\:min-w-9[data-v-91172c21]{min-width:calc(var(--wp-spacing) * 9)}.wp\\:min-w-10[data-v-91172c21]{min-width:calc(var(--wp-spacing) * 10)}.wp\\:min-w-\\[8rem\\][data-v-91172c21]{min-width:8rem}.wp\\:min-w-\\[var\\(--reka-select-trigger-width\\)\\][data-v-91172c21]{min-width:var(--reka-select-trigger-width)}.wp\\:flex-1[data-v-91172c21]{flex:1}.wp\\:shrink-0[data-v-91172c21]{flex-shrink:0}.wp\\:grow[data-v-91172c21]{flex-grow:1}.wp\\:origin-\\(--reka-dropdown-menu-content-transform-origin\\)[data-v-91172c21]{transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.wp\\:origin-\\(--reka-popover-content-transform-origin\\)[data-v-91172c21]{transform-origin:var(--reka-popover-content-transform-origin)}.wp\\:translate-x-\\[-50\\%\\][data-v-91172c21]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:-translate-y-1\\/2[data-v-91172c21]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-0\\.5[data-v-91172c21]{--tw-translate-y:calc(var(--wp-spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[-50\\%\\][data-v-91172c21]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[calc\\(-50\\%_-_2px\\)\\][data-v-91172c21]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:rotate-45[data-v-91172c21]{rotate:45deg}.wp\\:animate-in[data-v-91172c21]{animation:enter-91172c21 var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:animate-pulse[data-v-91172c21]{animation:var(--wp-animate-pulse)}.wp\\:cursor-default[data-v-91172c21]{cursor:default}.wp\\:cursor-move[data-v-91172c21]{cursor:move}.wp\\:cursor-pointer[data-v-91172c21]{cursor:pointer}.wp\\:touch-none[data-v-91172c21]{touch-action:none}.wp\\:scroll-my-1[data-v-91172c21]{scroll-margin-block:calc(var(--wp-spacing) * 1)}.wp\\:scroll-py-1[data-v-91172c21]{scroll-padding-block:calc(var(--wp-spacing) * 1)}.wp\\:auto-rows-min[data-v-91172c21]{grid-auto-rows:min-content}.wp\\:grid-cols-2[data-v-91172c21]{grid-template-columns:repeat(2,minmax(0,1fr))}.wp\\:grid-cols-3[data-v-91172c21]{grid-template-columns:repeat(3,minmax(0,1fr))}.wp\\:grid-rows-\\[auto_auto\\][data-v-91172c21]{grid-template-rows:auto auto}.wp\\:flex-col[data-v-91172c21]{flex-direction:column}.wp\\:flex-col-reverse[data-v-91172c21]{flex-direction:column-reverse}.wp\\:place-items-center[data-v-91172c21]{place-items:center}.wp\\:items-center[data-v-91172c21]{align-items:center}.wp\\:items-end[data-v-91172c21]{align-items:flex-end}.wp\\:items-start[data-v-91172c21]{align-items:flex-start}.wp\\:justify-between[data-v-91172c21]{justify-content:space-between}.wp\\:justify-center[data-v-91172c21]{justify-content:center}.wp\\:gap-0[data-v-91172c21]{gap:calc(var(--wp-spacing) * 0)}.wp\\:gap-1[data-v-91172c21]{gap:calc(var(--wp-spacing) * 1)}.wp\\:gap-1\\.5[data-v-91172c21]{gap:calc(var(--wp-spacing) * 1.5)}.wp\\:gap-2[data-v-91172c21]{gap:calc(var(--wp-spacing) * 2)}.wp\\:gap-3[data-v-91172c21]{gap:calc(var(--wp-spacing) * 3)}.wp\\:gap-4[data-v-91172c21]{gap:calc(var(--wp-spacing) * 4)}.wp\\:gap-6[data-v-91172c21]{gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-\\[--spacing\\(var\\(--gap\\)\\)\\][data-v-91172c21]{gap:calc(var(--wp-spacing) * var(--gap))}:where(.wp\\:space-y-2[data-v-91172c21]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-4[data-v-91172c21]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-6[data-v-91172c21]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.wp\\:gap-x-6[data-v-91172c21]{column-gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-y-3[data-v-91172c21]{row-gap:calc(var(--wp-spacing) * 3)}.wp\\:self-start[data-v-91172c21]{align-self:flex-start}.wp\\:justify-self-end[data-v-91172c21]{justify-self:flex-end}.wp\\:truncate[data-v-91172c21]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wp\\:overflow-auto[data-v-91172c21]{overflow:auto}.wp\\:overflow-hidden[data-v-91172c21]{overflow:hidden}.wp\\:overflow-x-hidden[data-v-91172c21]{overflow-x:hidden}.wp\\:overflow-y-auto[data-v-91172c21]{overflow-y:auto}.wp\\:rounded[data-v-91172c21]{border-radius:.25rem}.wp\\:rounded-2xl[data-v-91172c21]{border-radius:var(--wp-radius-2xl)}.wp\\:rounded-\\[2px\\][data-v-91172c21]{border-radius:2px}.wp\\:rounded-\\[inherit\\][data-v-91172c21]{border-radius:inherit}.wp\\:rounded-full[data-v-91172c21]{border-radius:3.40282e38px}.wp\\:rounded-lg[data-v-91172c21]{border-radius:var(--radius)}.wp\\:rounded-md[data-v-91172c21]{border-radius:calc(var(--radius) - 2px)}.wp\\:rounded-sm[data-v-91172c21]{border-radius:calc(var(--radius) - 4px)}.wp\\:rounded-xl[data-v-91172c21]{border-radius:calc(var(--radius) + 4px)}.wp\\:rounded-xs[data-v-91172c21]{border-radius:var(--wp-radius-xs)}.wp\\:border[data-v-91172c21]{border-style:var(--tw-border-style);border-width:1px}.wp\\:border-0[data-v-91172c21]{border-style:var(--tw-border-style);border-width:0}.wp\\:border-t[data-v-91172c21]{border-top-style:var(--tw-border-style);border-top-width:1px}.wp\\:border-b[data-v-91172c21]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.wp\\:border-l[data-v-91172c21]{border-left-style:var(--tw-border-style);border-left-width:1px}.wp\\:border-blue-500[data-v-91172c21]{border-color:var(--wp-color-blue-500)}.wp\\:border-border[data-v-91172c21]{border-color:var(--border)}.wp\\:border-destructive[data-v-91172c21]{border-color:var(--destructive)}.wp\\:border-input[data-v-91172c21]{border-color:var(--input)}.wp\\:border-primary[data-v-91172c21]{border-color:var(--primary)}.wp\\:border-white\\/20[data-v-91172c21]{border-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:border-white\\/20[data-v-91172c21]{border-color:color-mix(in oklab, var(--wp-color-white) 20%, transparent)}}.wp\\:border-t-transparent[data-v-91172c21]{border-top-color:#0000}.wp\\:border-l-transparent[data-v-91172c21]{border-left-color:#0000}.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12[data-v-91172c21]{background-color:var(--color-red)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12[data-v-91172c21]{background-color:color-mix(in oklab, var(--color-red) 12%, transparent)}}.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12[data-v-91172c21]{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12[data-v-91172c21]{background-color:color-mix(in oklab, var(--p-primary-color) 12%, transparent)}}.wp\\:bg-amber-100[data-v-91172c21]{background-color:var(--wp-color-amber-100)}.wp\\:bg-background[data-v-91172c21],.wp\\:bg-background\\/95[data-v-91172c21]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-background\\/95[data-v-91172c21]{background-color:color-mix(in oklab, var(--background) 95%, transparent)}}.wp\\:bg-black[data-v-91172c21],.wp\\:bg-black\\/80[data-v-91172c21]{background-color:var(--wp-color-black)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-black\\/80[data-v-91172c21]{background-color:color-mix(in oklab, var(--wp-color-black) 80%, transparent)}}.wp\\:bg-blue-100[data-v-91172c21]{background-color:var(--wp-color-blue-100)}.wp\\:bg-border[data-v-91172c21]{background-color:var(--border)}.wp\\:bg-card[data-v-91172c21]{background-color:var(--card)}.wp\\:bg-destructive[data-v-91172c21]{background-color:var(--destructive)}.wp\\:bg-emerald-100[data-v-91172c21]{background-color:var(--wp-color-emerald-100)}.wp\\:bg-foreground[data-v-91172c21]{background-color:var(--foreground)}.wp\\:bg-muted[data-v-91172c21]{background-color:var(--muted)}.wp\\:bg-neutral-100[data-v-91172c21]{background-color:var(--wp-color-neutral-100)}.wp\\:bg-neutral-800[data-v-91172c21]{background-color:var(--wp-color-neutral-800)}.wp\\:bg-popover[data-v-91172c21]{background-color:var(--popover)}.wp\\:bg-primary[data-v-91172c21],.wp\\:bg-primary\\/10[data-v-91172c21]{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-primary\\/10[data-v-91172c21]{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.wp\\:bg-purple-100[data-v-91172c21]{background-color:var(--wp-color-purple-100)}.wp\\:bg-secondary[data-v-91172c21]{background-color:var(--secondary)}.wp\\:bg-status-available[data-v-91172c21]{background-color:var(--status-available)}.wp\\:bg-transparent[data-v-91172c21]{background-color:#0000}.wp\\:bg-white[data-v-91172c21],.wp\\:bg-white\\/70[data-v-91172c21]{background-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-white\\/70[data-v-91172c21]{background-color:color-mix(in oklab, var(--wp-color-white) 70%, transparent)}}.wp\\:bg-gradient-to-r[data-v-91172c21]{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-91172c21]{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-91172c21]{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 80%, transparent)}}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-91172c21]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:from-destructive\\/60[data-v-91172c21]{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-destructive\\/60[data-v-91172c21]{--tw-gradient-from:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:from-destructive\\/60[data-v-91172c21]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-\\[color\\:var\\(--p-primary-color\\)\\]\\/100[data-v-91172c21]{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-destructive\\/90[data-v-91172c21]{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:to-destructive\\/90[data-v-91172c21]{--tw-gradient-to:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:to-destructive\\/90[data-v-91172c21]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:fill-current[data-v-91172c21]{fill:currentColor}.wp\\:fill-foreground[data-v-91172c21]{fill:var(--foreground)}.wp\\:object-contain[data-v-91172c21]{object-fit:contain}.wp\\:object-cover[data-v-91172c21]{object-fit:cover}.wp\\:p-0[data-v-91172c21]{padding:calc(var(--wp-spacing) * 0)}.wp\\:p-0\\.5[data-v-91172c21]{padding:calc(var(--wp-spacing) * .5)}.wp\\:p-1[data-v-91172c21]{padding:calc(var(--wp-spacing) * 1)}.wp\\:p-2[data-v-91172c21]{padding:calc(var(--wp-spacing) * 2)}.wp\\:p-3[data-v-91172c21]{padding:calc(var(--wp-spacing) * 3)}.wp\\:p-4[data-v-91172c21]{padding:calc(var(--wp-spacing) * 4)}.wp\\:p-6[data-v-91172c21]{padding:calc(var(--wp-spacing) * 6)}.wp\\:p-px[data-v-91172c21]{padding:1px}.wp\\:px-1[data-v-91172c21]{padding-inline:calc(var(--wp-spacing) * 1)}.wp\\:px-1\\.5[data-v-91172c21]{padding-inline:calc(var(--wp-spacing) * 1.5)}.wp\\:px-2[data-v-91172c21]{padding-inline:calc(var(--wp-spacing) * 2)}.wp\\:px-2\\.5[data-v-91172c21]{padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:px-3[data-v-91172c21]{padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:px-4[data-v-91172c21]{padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:px-6[data-v-91172c21]{padding-inline:calc(var(--wp-spacing) * 6)}.wp\\:px-10[data-v-91172c21]{padding-inline:calc(var(--wp-spacing) * 10)}.wp\\:px-14[data-v-91172c21]{padding-inline:calc(var(--wp-spacing) * 14)}.wp\\:py-1[data-v-91172c21]{padding-block:calc(var(--wp-spacing) * 1)}.wp\\:py-1\\.5[data-v-91172c21]{padding-block:calc(var(--wp-spacing) * 1.5)}.wp\\:py-2[data-v-91172c21]{padding-block:calc(var(--wp-spacing) * 2)}.wp\\:py-3[data-v-91172c21]{padding-block:calc(var(--wp-spacing) * 3)}.wp\\:py-4[data-v-91172c21]{padding-block:calc(var(--wp-spacing) * 4)}.wp\\:py-6[data-v-91172c21]{padding-block:calc(var(--wp-spacing) * 6)}.wp\\:py-8[data-v-91172c21]{padding-block:calc(var(--wp-spacing) * 8)}.wp\\:pt-0[data-v-91172c21]{padding-top:calc(var(--wp-spacing) * 0)}.wp\\:pr-2[data-v-91172c21]{padding-right:calc(var(--wp-spacing) * 2)}.wp\\:pr-4[data-v-91172c21]{padding-right:calc(var(--wp-spacing) * 4)}.wp\\:pr-8[data-v-91172c21]{padding-right:calc(var(--wp-spacing) * 8)}.wp\\:pb-0[data-v-91172c21]{padding-bottom:calc(var(--wp-spacing) * 0)}.wp\\:pb-4[data-v-91172c21]{padding-bottom:calc(var(--wp-spacing) * 4)}.wp\\:pl-2[data-v-91172c21]{padding-left:calc(var(--wp-spacing) * 2)}.wp\\:pl-8[data-v-91172c21]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:text-center[data-v-91172c21]{text-align:center}.wp\\:text-left[data-v-91172c21]{text-align:left}.wp\\:font-mono[data-v-91172c21]{font-family:var(--wp-font-mono)}.wp\\:font-sans[data-v-91172c21]{font-family:Montserrat,sans-serif}.wp\\:text-2xl[data-v-91172c21]{font-size:var(--wp-text-2xl);line-height:var(--tw-leading,var(--wp-text-2xl--line-height))}.wp\\:text-3xl[data-v-91172c21]{font-size:var(--wp-text-3xl);line-height:var(--tw-leading,var(--wp-text-3xl--line-height))}.wp\\:text-base[data-v-91172c21]{font-size:var(--wp-text-base);line-height:var(--tw-leading,var(--wp-text-base--line-height))}.wp\\:text-lg[data-v-91172c21]{font-size:var(--wp-text-lg);line-height:var(--tw-leading,var(--wp-text-lg--line-height))}.wp\\:text-sm[data-v-91172c21]{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:text-xs[data-v-91172c21]{font-size:var(--wp-text-xs);line-height:var(--tw-leading,var(--wp-text-xs--line-height))}.wp\\:text-\\[10px\\][data-v-91172c21]{font-size:10px}.wp\\:text-\\[12px\\][data-v-91172c21]{font-size:12px}.wp\\:leading-none[data-v-91172c21]{--tw-leading:1;line-height:1}.wp\\:font-bold[data-v-91172c21]{--tw-font-weight:var(--wp-font-weight-bold);font-weight:var(--wp-font-weight-bold)}.wp\\:font-light[data-v-91172c21]{--tw-font-weight:var(--wp-font-weight-light);font-weight:var(--wp-font-weight-light)}.wp\\:font-medium[data-v-91172c21]{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:font-semibold[data-v-91172c21]{--tw-font-weight:var(--wp-font-weight-semibold);font-weight:var(--wp-font-weight-semibold)}.wp\\:tracking-wider[data-v-91172c21]{--tw-tracking:var(--wp-tracking-wider);letter-spacing:var(--wp-tracking-wider)}.wp\\:tracking-widest[data-v-91172c21]{--tw-tracking:var(--wp-tracking-widest);letter-spacing:var(--wp-tracking-widest)}.wp\\:text-balance[data-v-91172c21]{text-wrap:balance}.wp\\:whitespace-nowrap[data-v-91172c21]{white-space:nowrap}.wp\\:text-\\[var\\(--color-avaible\\)\\][data-v-91172c21]{color:var(--color-avaible)}.wp\\:text-\\[var\\(--color-primary\\)\\][data-v-91172c21]{color:var(--color-primary)}.wp\\:text-\\[var\\(--color-red\\)\\][data-v-91172c21]{color:var(--color-red)}.wp\\:text-\\[var\\(--color-settings\\)\\][data-v-91172c21]{color:var(--color-settings)}.wp\\:text-\\[var\\(--p-primary-color\\)\\][data-v-91172c21]{color:var(--p-primary-color)}.wp\\:text-\\[var\\(--primary\\)\\][data-v-91172c21]{color:var(--primary)}.wp\\:text-amber-500[data-v-91172c21]{color:var(--wp-color-amber-500)}.wp\\:text-amber-600[data-v-91172c21]{color:var(--wp-color-amber-600)}.wp\\:text-background[data-v-91172c21]{color:var(--background)}.wp\\:text-black[data-v-91172c21]{color:var(--wp-color-black)}.wp\\:text-blue-500[data-v-91172c21]{color:var(--wp-color-blue-500)}.wp\\:text-blue-600[data-v-91172c21]{color:var(--wp-color-blue-600)}.wp\\:text-card-foreground[data-v-91172c21]{color:var(--card-foreground)}.wp\\:text-destructive[data-v-91172c21]{color:var(--destructive)}.wp\\:text-emerald-600[data-v-91172c21]{color:var(--wp-color-emerald-600)}.wp\\:text-foreground[data-v-91172c21]{color:var(--foreground)}.wp\\:text-green-500[data-v-91172c21]{color:var(--wp-color-green-500)}.wp\\:text-muted-foreground[data-v-91172c21]{color:var(--muted-foreground)}.wp\\:text-neutral-400[data-v-91172c21]{color:var(--wp-color-neutral-400)}.wp\\:text-neutral-500[data-v-91172c21]{color:var(--wp-color-neutral-500)}.wp\\:text-neutral-600[data-v-91172c21]{color:var(--wp-color-neutral-600)}.wp\\:text-neutral-800[data-v-91172c21]{color:var(--wp-color-neutral-800)}.wp\\:text-neutral-900[data-v-91172c21]{color:var(--wp-color-neutral-900)}.wp\\:text-popover-foreground[data-v-91172c21]{color:var(--popover-foreground)}.wp\\:text-primary[data-v-91172c21]{color:var(--primary)}.wp\\:text-primary-foreground[data-v-91172c21]{color:var(--primary-foreground)}.wp\\:text-purple-600[data-v-91172c21]{color:var(--wp-color-purple-600)}.wp\\:text-red-500[data-v-91172c21]{color:var(--wp-color-red-500)}.wp\\:text-secondary-foreground[data-v-91172c21]{color:var(--secondary-foreground)}.wp\\:text-status-available[data-v-91172c21]{color:var(--status-available)}.wp\\:text-status-disconnected[data-v-91172c21]{color:var(--status-disconnected)}.wp\\:text-status-hold[data-v-91172c21]{color:var(--status-hold)}.wp\\:text-status-incall[data-v-91172c21]{color:var(--status-incall)}.wp\\:text-status-incoming[data-v-91172c21]{color:var(--status-incoming)}.wp\\:text-white[data-v-91172c21]{color:var(--wp-color-white)}.wp\\:capitalize[data-v-91172c21]{text-transform:capitalize}.wp\\:underline-offset-4[data-v-91172c21]{text-underline-offset:4px}.wp\\:opacity-0[data-v-91172c21]{opacity:0}.wp\\:opacity-50[data-v-91172c21]{opacity:.5}.wp\\:opacity-70[data-v-91172c21]{opacity:.7}.wp\\:opacity-100[data-v-91172c21]{opacity:1}.wp\\:shadow-lg[data-v-91172c21]{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-md[data-v-91172c21]{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-sm[data-v-91172c21]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-xs[data-v-91172c21]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:inset-shadow-2xs[data-v-91172c21]{--tw-inset-shadow:inset 0 1px var(--tw-inset-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:ring-ring\\/50[data-v-91172c21]{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:ring-ring\\/50[data-v-91172c21]{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:ring-offset-background[data-v-91172c21]{--tw-ring-offset-color:var(--background)}.wp\\:outline-hidden[data-v-91172c21]{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:outline-hidden[data-v-91172c21]{outline-offset:2px;outline:2px solid #0000}}.wp\\:backdrop-blur[data-v-91172c21]{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:backdrop-blur-\\[1px\\][data-v-91172c21]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:transition-\\[color\\,box-shadow\\][data-v-91172c21]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-all[data-v-91172c21]{transition-property:all;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-colors[data-v-91172c21]{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-opacity[data-v-91172c21]{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-transform[data-v-91172c21]{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:duration-150[data-v-91172c21]{--tw-duration:.15s;transition-duration:.15s}.wp\\:duration-200[data-v-91172c21]{--tw-duration:.2s;transition-duration:.2s}.wp\\:duration-300[data-v-91172c21]{--tw-duration:.3s;transition-duration:.3s}.wp\\:ease-in-out[data-v-91172c21]{--tw-ease:var(--wp-ease-in-out);transition-timing-function:var(--wp-ease-in-out)}.wp\\:fade-in-0[data-v-91172c21]{--tw-enter-opacity:0}.wp\\:outline-none[data-v-91172c21]{--tw-outline-style:none;outline-style:none}.wp\\:select-none[data-v-91172c21]{-webkit-user-select:none;user-select:none}.wp\\:select-text[data-v-91172c21]{-webkit-user-select:text;user-select:text}.wp\\:zoom-in-95[data-v-91172c21]{--tw-enter-scale:.95}.wp\\:group-data-\\[disabled\\=true\\]\\:pointer-events-none[data-v-91172c21]:is(:where(.wp\\:group)[data-disabled=true] *){pointer-events:none}.wp\\:group-data-\\[disabled\\=true\\]\\:opacity-50[data-v-91172c21]:is(:where(.wp\\:group)[data-disabled=true] *){opacity:.5}.wp\\:peer-disabled\\:cursor-not-allowed[data-v-91172c21]:is(:where(.wp\\:peer):disabled~*){cursor:not-allowed}.wp\\:peer-disabled\\:opacity-50[data-v-91172c21]:is(:where(.wp\\:peer):disabled~*){opacity:.5}.wp\\:selection\\:bg-primary[data-v-91172c21] ::selection,.wp\\:selection\\:bg-primary[data-v-91172c21]::selection{background-color:var(--primary)}.wp\\:selection\\:text-primary-foreground[data-v-91172c21] ::selection,.wp\\:selection\\:text-primary-foreground[data-v-91172c21]::selection{color:var(--primary-foreground)}.wp\\:file\\:inline-flex[data-v-91172c21]::-webkit-file-upload-button{display:inline-flex}.wp\\:file\\:inline-flex[data-v-91172c21]::file-selector-button{display:inline-flex}.wp\\:file\\:h-7[data-v-91172c21]::-webkit-file-upload-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:h-7[data-v-91172c21]::file-selector-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:border-0[data-v-91172c21]::-webkit-file-upload-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:border-0[data-v-91172c21]::file-selector-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:bg-transparent[data-v-91172c21]::-webkit-file-upload-button{background-color:#0000}.wp\\:file\\:bg-transparent[data-v-91172c21]::file-selector-button{background-color:#0000}.wp\\:file\\:text-sm[data-v-91172c21]::-webkit-file-upload-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:text-sm[data-v-91172c21]::file-selector-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:font-medium[data-v-91172c21]::-webkit-file-upload-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:font-medium[data-v-91172c21]::file-selector-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:text-foreground[data-v-91172c21]::-webkit-file-upload-button{color:var(--foreground)}.wp\\:file\\:text-foreground[data-v-91172c21]::file-selector-button{color:var(--foreground)}.wp\\:placeholder\\:text-muted-foreground[data-v-91172c21]::placeholder{color:var(--muted-foreground)}.wp\\:last\\:border-b-0[data-v-91172c21]:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8[data-v-91172c21]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8[data-v-91172c21]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 8%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10[data-v-91172c21]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10[data-v-91172c21]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 10%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20[data-v-91172c21]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20[data-v-91172c21]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 20%, transparent)}}.wp\\:hover\\:bg-accent[data-v-91172c21]:hover,.wp\\:hover\\:bg-accent\\/50[data-v-91172c21]:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-accent\\/50[data-v-91172c21]:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:hover\\:bg-destructive\\/90[data-v-91172c21]:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-destructive\\/90[data-v-91172c21]:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:hover\\:bg-muted[data-v-91172c21]:hover{background-color:var(--muted)}.wp\\:hover\\:bg-neutral-100[data-v-91172c21]:hover{background-color:var(--wp-color-neutral-100)}.wp\\:hover\\:bg-neutral-200[data-v-91172c21]:hover{background-color:var(--wp-color-neutral-200)}.wp\\:hover\\:bg-primary\\/90[data-v-91172c21]:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-primary\\/90[data-v-91172c21]:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.wp\\:hover\\:bg-secondary[data-v-91172c21]:hover,.wp\\:hover\\:bg-secondary\\/80[data-v-91172c21]:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-secondary\\/80[data-v-91172c21]:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.wp\\:hover\\:bg-status-available\\/90[data-v-91172c21]:hover{background-color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-status-available\\/90[data-v-91172c21]:hover{background-color:color-mix(in oklab, var(--status-available) 90%, transparent)}}.wp\\:hover\\:bg-transparent[data-v-91172c21]:hover{background-color:#0000}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-91172c21]:hover{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-91172c21]:hover{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 75%, transparent)}}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-91172c21]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:from-destructive\\/70[data-v-91172c21]:hover{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-destructive\\/70[data-v-91172c21]:hover{--tw-gradient-from:color-mix(in oklab, var(--destructive) 70%, transparent)}}.wp\\:hover\\:from-destructive\\/70[data-v-91172c21]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-\\[color\\:var\\(--p-primary-color\\)\\][data-v-91172c21]:hover{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-destructive\\/95[data-v-91172c21]:hover{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:to-destructive\\/95[data-v-91172c21]:hover{--tw-gradient-to:color-mix(in oklab, var(--destructive) 95%, transparent)}}.wp\\:hover\\:to-destructive\\/95[data-v-91172c21]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:text-accent-foreground[data-v-91172c21]:hover{color:var(--accent-foreground)}.wp\\:hover\\:text-destructive[data-v-91172c21]:hover{color:var(--destructive)}.wp\\:hover\\:text-muted-foreground[data-v-91172c21]:hover{color:var(--muted-foreground)}.wp\\:hover\\:text-primary[data-v-91172c21]:hover{color:var(--primary)}.wp\\:hover\\:text-status-available\\/80[data-v-91172c21]:hover{color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-available\\/80[data-v-91172c21]:hover{color:color-mix(in oklab, var(--status-available) 80%, transparent)}}.wp\\:hover\\:text-status-disconnected[data-v-91172c21]:hover,.wp\\:hover\\:text-status-disconnected\\/80[data-v-91172c21]:hover{color:var(--status-disconnected)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-disconnected\\/80[data-v-91172c21]:hover{color:color-mix(in oklab, var(--status-disconnected) 80%, transparent)}}.wp\\:hover\\:text-status-hold\\/80[data-v-91172c21]:hover{color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-hold\\/80[data-v-91172c21]:hover{color:color-mix(in oklab, var(--status-hold) 80%, transparent)}}.wp\\:hover\\:text-status-incall\\/80[data-v-91172c21]:hover{color:var(--status-incall)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incall\\/80[data-v-91172c21]:hover{color:color-mix(in oklab, var(--status-incall) 80%, transparent)}}.wp\\:hover\\:text-status-incoming\\/80[data-v-91172c21]:hover{color:var(--status-incoming)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incoming\\/80[data-v-91172c21]:hover{color:color-mix(in oklab, var(--status-incoming) 80%, transparent)}}.wp\\:hover\\:underline[data-v-91172c21]:hover{text-decoration-line:underline}.wp\\:hover\\:opacity-80[data-v-91172c21]:hover{opacity:.8}.wp\\:hover\\:opacity-100[data-v-91172c21]:hover{opacity:1}.wp\\:hover\\:ring-4[data-v-91172c21]:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.wp\\:focus\\:z-10[data-v-91172c21]:focus{z-index:10}.wp\\:focus\\:bg-accent[data-v-91172c21]:focus{background-color:var(--accent)}.wp\\:focus\\:text-accent-foreground[data-v-91172c21]:focus{color:var(--accent-foreground)}.wp\\:focus\\:ring-2[data-v-91172c21]:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus\\:ring-ring[data-v-91172c21]:focus{--tw-ring-color:var(--ring)}.wp\\:focus\\:ring-offset-2[data-v-91172c21]:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus\\:outline-hidden[data-v-91172c21]:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus\\:outline-hidden[data-v-91172c21]:focus{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:z-10[data-v-91172c21]:focus-visible{z-index:10}.wp\\:focus-visible\\:border-ring[data-v-91172c21]:focus-visible{border-color:var(--ring)}.wp\\:focus-visible\\:ring-2[data-v-91172c21]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-4[data-v-91172c21]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[3px\\][data-v-91172c21]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[var\\(--p-primary-color\\)\\][data-v-91172c21]:focus-visible{--tw-ring-color:var(--p-primary-color)}.wp\\:focus-visible\\:ring-destructive\\/20[data-v-91172c21]:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-destructive\\/20[data-v-91172c21]:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:focus-visible\\:ring-ring\\/50[data-v-91172c21]:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-ring\\/50[data-v-91172c21]:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:focus-visible\\:ring-offset-2[data-v-91172c21]:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus-visible\\:ring-offset-white[data-v-91172c21]:focus-visible{--tw-ring-offset-color:var(--wp-color-white)}.wp\\:focus-visible\\:outline-hidden[data-v-91172c21]:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus-visible\\:outline-hidden[data-v-91172c21]:focus-visible{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:outline-1[data-v-91172c21]:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.wp\\:active\\:scale-95[data-v-91172c21]:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.wp\\:disabled\\:pointer-events-none[data-v-91172c21]:disabled{pointer-events:none}.wp\\:disabled\\:cursor-not-allowed[data-v-91172c21]:disabled{cursor:not-allowed}.wp\\:disabled\\:opacity-50[data-v-91172c21]:disabled{opacity:.5}.wp\\:has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\][data-v-91172c21]:has([data-slot=card-action]){grid-template-columns:1fr auto}.wp\\:has-\\[\\>svg\\]\\:px-2\\.5[data-v-91172c21]:has(>svg){padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:has-\\[\\>svg\\]\\:px-3[data-v-91172c21]:has(>svg){padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:has-\\[\\>svg\\]\\:px-4[data-v-91172c21]:has(>svg){padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:aria-invalid\\:border-destructive[aria-invalid=true][data-v-91172c21]{border-color:var(--destructive)}.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true][data-v-91172c21]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true][data-v-91172c21]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled][data-v-91172c21]{pointer-events:none}.wp\\:data-\\[disabled\\]\\:opacity-50[data-disabled][data-v-91172c21]{opacity:.5}.wp\\:data-\\[highlighted\\]\\:bg-accent[data-highlighted][data-v-91172c21]{background-color:var(--accent)}.wp\\:data-\\[highlighted\\]\\:text-accent-foreground[data-highlighted][data-v-91172c21]{color:var(--accent-foreground)}.wp\\:data-\\[inset\\]\\:pl-8[data-inset][data-v-91172c21]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal][data-v-91172c21]{height:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal][data-v-91172c21]{height:100%}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal][data-v-91172c21]{height:1px}.wp\\:data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal][data-v-91172c21]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical][data-v-91172c21]{height:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical][data-v-91172c21]{min-height:calc(var(--wp-spacing) * 44)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical][data-v-91172c21]{width:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical][data-v-91172c21]{width:auto}.wp\\:data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical][data-v-91172c21]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical][data-v-91172c21]{width:1px}.wp\\:data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical][data-v-91172c21]{flex-direction:column}.wp\\:data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder][data-v-91172c21]{color:var(--muted-foreground)}.wp\\:data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom][data-v-91172c21]{--tw-translate-y:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom][data-v-91172c21]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=left\\]\\:-translate-x-1[data-side=left][data-v-91172c21]{--tw-translate-x:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left][data-v-91172c21]{--tw-enter-translate-x:calc(2*var(--spacing))}.wp\\:data-\\[side\\=right\\]\\:translate-x-1[data-side=right][data-v-91172c21]{--tw-translate-x:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right][data-v-91172c21]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=top\\]\\:-translate-y-1[data-side=top][data-v-91172c21]{--tw-translate-y:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top][data-v-91172c21]{--tw-enter-translate-y:calc(2*var(--spacing))}.wp\\:data-\\[size\\=default\\]\\:h-9[data-size=default][data-v-91172c21]{height:calc(var(--wp-spacing) * 9)}.wp\\:data-\\[size\\=sm\\]\\:h-8[data-size=sm][data-v-91172c21]{height:calc(var(--wp-spacing) * 8)}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value][data-v-91172c21]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value][data-v-91172c21]{display:flex}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value][data-v-91172c21]{align-items:center}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value][data-v-91172c21]{gap:calc(var(--wp-spacing) * 2)}.wp\\:data-\\[spacing\\=0\\]\\:rounded-none[data-spacing="0"][data-v-91172c21]{border-radius:0}.wp\\:data-\\[spacing\\=0\\]\\:shadow-none[data-spacing="0"][data-v-91172c21]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:data-\\[spacing\\=0\\]\\:first\\:rounded-l-md[data-spacing="0"][data-v-91172c21]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[spacing\\=0\\]\\:last\\:rounded-r-md[data-spacing="0"][data-v-91172c21]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed][data-v-91172c21]{animation:accordion-up-91172c21 var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:animate-out[data-state=closed][data-v-91172c21]{animation:exit-91172c21 var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed][data-v-91172c21]{--tw-exit-opacity:0}.wp\\:data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed][data-v-91172c21]{--tw-exit-scale:.95}.wp\\:data-\\[state\\=on\\]\\:bg-accent[data-state=on][data-v-91172c21]{background-color:var(--accent)}.wp\\:data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on][data-v-91172c21]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open][data-v-91172c21]{animation:accordion-down-91172c21 var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:animate-in[data-state=open][data-v-91172c21]{animation:enter-91172c21 var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:bg-accent[data-state=open][data-v-91172c21]{background-color:var(--accent)}.wp\\:data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open][data-v-91172c21]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open][data-v-91172c21]{color:var(--muted-foreground)}.wp\\:data-\\[state\\=open\\]\\:fade-in-0[data-state=open][data-v-91172c21]{--tw-enter-opacity:0}.wp\\:data-\\[state\\=open\\]\\:zoom-in-95[data-state=open][data-v-91172c21]{--tw-enter-scale:.95}.wp\\:data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive][data-v-91172c21]{color:var(--destructive)}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive][data-v-91172c21]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive][data-v-91172c21]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive][data-v-91172c21]:focus{color:var(--destructive)}.wp\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline][data-v-91172c21]{border-color:var(--color-primary-500)}.wp\\:data-\\[variant\\=outline\\]\\:focus-visible\\:ring-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline][data-v-91172c21]:focus-visible{--tw-ring-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border[data-spacing="0"][data-variant=outline][data-v-91172c21]{border-style:var(--tw-border-style);border-width:1px}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-spacing="0"][data-variant=outline][data-v-91172c21]{border-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=default\\]\\:data-\\[variant\\=outline\\]\\:shadow-xs[data-spacing=default][data-variant=outline][data-v-91172c21]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.wp\\:supports-backdrop-filter\\:bg-background\\/60[data-v-91172c21]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:supports-backdrop-filter\\:bg-background\\/60[data-v-91172c21]{background-color:color-mix(in oklab, var(--background) 60%, transparent)}}}@media (min-width:40rem){.wp\\:sm\\:block[data-v-91172c21]{display:block}.wp\\:sm\\:inline[data-v-91172c21]{display:inline}.wp\\:sm\\:inline-block[data-v-91172c21]{display:inline-block}.wp\\:sm\\:max-w-lg[data-v-91172c21]{max-width:var(--wp-container-lg)}.wp\\:sm\\:max-w-md[data-v-91172c21]{max-width:var(--wp-container-md)}.wp\\:sm\\:max-w-sm[data-v-91172c21]{max-width:var(--wp-container-sm)}.wp\\:sm\\:flex-row[data-v-91172c21]{flex-direction:row}.wp\\:sm\\:justify-end[data-v-91172c21]{justify-content:flex-end}.wp\\:sm\\:gap-0[data-v-91172c21]{gap:calc(var(--wp-spacing) * 0)}.wp\\:sm\\:rounded-lg[data-v-91172c21]{border-radius:var(--radius)}.wp\\:sm\\:text-left[data-v-91172c21]{text-align:left}}@media (min-width:48rem){.wp\\:md\\:w-full[data-v-91172c21]{width:100%}.wp\\:md\\:text-sm[data-v-91172c21]{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}}.wp\\:dark\\:border-input[data-v-91172c21]:where(.dark,.dark *){border-color:var(--input)}.wp\\:dark\\:bg-amber-900\\/30[data-v-91172c21]:where(.dark,.dark *){background-color:var(--wp-color-amber-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-amber-900\\/30[data-v-91172c21]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-amber-900) 30%, transparent)}}.wp\\:dark\\:bg-blue-900\\/30[data-v-91172c21]:where(.dark,.dark *){background-color:var(--wp-color-blue-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-blue-900\\/30[data-v-91172c21]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-blue-900) 30%, transparent)}}.wp\\:dark\\:bg-destructive\\/60[data-v-91172c21]:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-destructive\\/60[data-v-91172c21]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:dark\\:bg-emerald-900\\/30[data-v-91172c21]:where(.dark,.dark *){background-color:var(--wp-color-emerald-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-emerald-900\\/30[data-v-91172c21]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-emerald-900) 30%, transparent)}}.wp\\:dark\\:bg-input\\/30[data-v-91172c21]:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-input\\/30[data-v-91172c21]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.wp\\:dark\\:bg-neutral-700[data-v-91172c21]:where(.dark,.dark *){background-color:var(--wp-color-neutral-700)}.wp\\:dark\\:bg-neutral-800[data-v-91172c21]:where(.dark,.dark *){background-color:var(--wp-color-neutral-800)}.wp\\:dark\\:bg-neutral-900[data-v-91172c21]:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:bg-neutral-900\\/70[data-v-91172c21]:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-neutral-900\\/70[data-v-91172c21]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-neutral-900) 70%, transparent)}}.wp\\:dark\\:bg-purple-900\\/30[data-v-91172c21]:where(.dark,.dark *){background-color:var(--wp-color-purple-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-purple-900\\/30[data-v-91172c21]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-purple-900) 30%, transparent)}}.wp\\:dark\\:text-amber-400[data-v-91172c21]:where(.dark,.dark *){color:var(--wp-color-amber-400)}.wp\\:dark\\:text-blue-400[data-v-91172c21]:where(.dark,.dark *){color:var(--wp-color-blue-400)}.wp\\:dark\\:text-emerald-400[data-v-91172c21]:where(.dark,.dark *){color:var(--wp-color-emerald-400)}.wp\\:dark\\:text-neutral-400[data-v-91172c21]:where(.dark,.dark *){color:var(--wp-color-neutral-400)}.wp\\:dark\\:text-neutral-500[data-v-91172c21]:where(.dark,.dark *){color:var(--wp-color-neutral-500)}.wp\\:dark\\:text-purple-400[data-v-91172c21]:where(.dark,.dark *){color:var(--wp-color-purple-400)}.wp\\:dark\\:text-white[data-v-91172c21]:where(.dark,.dark *){color:var(--wp-color-white)}@media (hover:hover){.wp\\:dark\\:hover\\:bg-accent\\/50[data-v-91172c21]:where(.dark,.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-accent\\/50[data-v-91172c21]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-input\\/50[data-v-91172c21]:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-input\\/50[data-v-91172c21]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-600[data-v-91172c21]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-600)}.wp\\:dark\\:hover\\:bg-neutral-800\\/80[data-v-91172c21]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-800)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-neutral-800\\/80[data-v-91172c21]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--wp-color-neutral-800) 80%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-900[data-v-91172c21]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:hover\\:text-neutral-100[data-v-91172c21]:where(.dark,.dark *):hover{color:var(--wp-color-neutral-100)}.wp\\:dark\\:hover\\:text-status-disconnected[data-v-91172c21]:where(.dark,.dark *):hover{color:var(--status-disconnected)}}.wp\\:dark\\:focus-visible\\:ring-destructive\\/40[data-v-91172c21]:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:focus-visible\\:ring-destructive\\/40[data-v-91172c21]:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:focus-visible\\:ring-offset-neutral-900[data-v-91172c21]:where(.dark,.dark *):focus-visible{--tw-ring-offset-color:var(--wp-color-neutral-900)}.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true][data-v-91172c21]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true][data-v-91172c21]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive][data-v-91172c21]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive][data-v-91172c21]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:\\[\\&_button\\]\\:cursor-pointer button[data-v-91172c21]{cursor:pointer}.wp\\:\\[\\&_svg\\]\\:pointer-events-none svg[data-v-91172c21]{pointer-events:none}.wp\\:\\[\\&_svg\\]\\:shrink-0 svg[data-v-91172c21]{flex-shrink:0}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg[data-v-91172c21]:not([class*=size-]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3 svg[data-v-91172c21]:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4 svg[data-v-91172c21]:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-muted-foreground svg[data-v-91172c21]:not([class*="'text-'"]){color:var(--muted-foreground)}.wp\\:\\[\\.border-b\\]\\:pb-6.border-b[data-v-91172c21]{padding-bottom:calc(var(--wp-spacing) * 6)}.wp\\:\\[\\.border-t\\]\\:pt-6.border-t[data-v-91172c21]{padding-top:calc(var(--wp-spacing) * 6)}:is(.wp\\:\\*\\*\\:\\[\\[role\\=button\\]\\]\\:cursor-pointer *)[role=button][data-v-91172c21]{cursor:pointer}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:flex[data-v-91172c21]>*):-webkit-any(span):last-child{display:flex}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:flex[data-v-91172c21]>*):is(span):last-child{display:flex}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center[data-v-91172c21]>*):-webkit-any(span):last-child{align-items:center}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center[data-v-91172c21]>*):is(span):last-child{align-items:center}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2[data-v-91172c21]>*):-webkit-any(span):last-child{gap:calc(var(--wp-spacing) * 2)}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2[data-v-91172c21]>*):is(span):last-child{gap:calc(var(--wp-spacing) * 2)}:-webkit-any(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive][data-v-91172c21]>*):-webkit-any(svg){color:var(--destructive)!important}:is(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive][data-v-91172c21]>*):is(svg){color:var(--destructive)!important}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:\\[\\&\\:not\\(\\:first-child\\)\\]\\:border-l-0[data-spacing="0"][data-variant=outline][data-v-91172c21]:not(:first-child){border-left-style:var(--tw-border-style);border-left-width:0}.wp\\:\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg[data-v-91172c21]{rotate:180deg}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20[data-v-91172c21]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20[data-v-91172c21]{background-color:color-mix(in oklab, var(--background) 20%, transparent)}}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:text-background[data-v-91172c21]{color:var(--background)}[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10[data-v-91172c21]:where(.dark,.dark *){background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10[data-v-91172c21]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--background) 10%, transparent)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Ibrand;src:url(/fonts/Ibrand.otf)format("truetype");font-weight:100 900;font-style:normal;font-display:swap}svg [clip-path]{clip-path:none!important}:root{--radius:.625rem;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:var(--p-primary-color,#171717);--color-primary-500:#9b5ff5;--p-primary-color:var(--color-primary-500);--primary-foreground:#fafafa;--secondary:#f5f5f5;--secondary-foreground:#171717;--muted:#f5f5f5;--muted-foreground:#737373;--accent:#f5f5f5;--accent-foreground:#171717;--destructive:#e40014;--border:#e5e5e5;--input:#e5e5e5;--ring:#a1a1a1;--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#0a0a0a;--sidebar-primary:#171717;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f5f5f5;--sidebar-accent-foreground:#171717;--sidebar-border:#e5e5e5;--sidebar-ring:#a1a1a1;--status-available:#00a544;--status-incall:#7a75b5;--status-hold:#f5c632;--status-incoming:#ac4bff;--status-disconnected:#fb2c36;--color-green:#81c200;--color-red:#ed3237;--color-blue:#7a75b5;--color-settings:#b3acd5;--color-avaible:#00c448;font-family:Montserrat,sans-serif}@supports (color:color(display-p3 0 0 0)){:root{--background:color(display-p3 1 1 1);--foreground:color(display-p3 .0393882 .0393882 .0393882);--card:color(display-p3 1 1 1);--card-foreground:color(display-p3 .0393882 .0393882 .0393882);--popover:color(display-p3 1 1 1);--popover-foreground:color(display-p3 .0393882 .0393882 .0393882);--primary:var(--p-primary-color,color(display-p3 .0905274 .0905274 .0905274));--primary-foreground:color(display-p3 .980256 .980256 .980256);--secondary:color(display-p3 .960587 .960587 .960587);--secondary-foreground:color(display-p3 .0905274 .0905274 .0905274);--muted:color(display-p3 .960587 .960587 .960587);--muted-foreground:color(display-p3 .451519 .451519 .451519);--accent:color(display-p3 .960587 .960587 .960587);--accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--destructive:color(display-p3 .830323 .140383 .133196);--border:color(display-p3 .898161 .898161 .898161);--input:color(display-p3 .898161 .898161 .898161);--ring:color(display-p3 .630163 .630163 .630163);--chart-1:color(display-p3 .887467 .341665 .0219962);--chart-2:color(display-p3 .207114 .579584 .53668);--chart-3:color(display-p3 .142586 .302008 .385094);--chart-4:color(display-p3 .959186 .738519 .118268);--chart-5:color(display-p3 .93994 .620584 .0585367);--sidebar:color(display-p3 .980256 .980256 .980256);--sidebar-foreground:color(display-p3 .0393882 .0393882 .0393882);--sidebar-primary:color(display-p3 .0905274 .0905274 .0905274);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .960587 .960587 .960587);--sidebar-accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--sidebar-border:color(display-p3 .898161 .898161 .898161);--sidebar-ring:color(display-p3 .630163 .630163 .630163);--status-available:color(display-p3 .243882 .640824 .294808);--status-incall:color(display-p3 .474968 .45946 .692102);--status-hold:color(display-p3 .930111 .782506 .322764);--status-incoming:color(display-p3 .629519 .30089 .990817);--status-disconnected:color(display-p3 .903738 .262579 .253307);--color-green:color(display-p3 .562304 .754036 .228809);--color-red:color(display-p3 .855599 .269309 .251664);--color-blue:color(display-p3 .474968 .45946 .692102);--color-settings:color(display-p3 .697185 .675441 .822883);--color-avaible:color(display-p3 .345782 .7571 .347428)}}@supports (color:lab(0% 0 0)){:root{--background:lab(100% 0 0);--foreground:lab(2.75381% 0 0);--card:lab(100% 0 0);--card-foreground:lab(2.75381% 0 0);--popover:lab(100% 0 0);--popover-foreground:lab(2.75381% 0 0);--primary:var(--p-primary-color,lab(7.78201% -.0000149012 0));--primary-foreground:lab(98.26% 0 0);--secondary:lab(96.52% -.0000298023 .0000119209);--secondary-foreground:lab(7.78201% -.0000149012 0);--muted:lab(96.52% -.0000298023 .0000119209);--muted-foreground:lab(48.496% 0 0);--accent:lab(96.52% -.0000298023 .0000119209);--accent-foreground:lab(7.78201% -.0000149012 0);--destructive:lab(48.4493% 77.4328 61.5452);--border:lab(90.952% 0 -.0000119209);--input:lab(90.952% 0 -.0000119209);--ring:lab(66.128% -.0000298023 .0000119209);--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.75381% 0 0);--sidebar-primary:lab(7.78201% -.0000149012 0);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.52% -.0000298023 .0000119209);--sidebar-accent-foreground:lab(7.78201% -.0000149012 0);--sidebar-border:lab(90.952% 0 -.0000119209);--sidebar-ring:lab(66.128% -.0000298023 .0000119209);--status-available:lab(59.0978% -58.6621 41.2579);--status-incall:lab(51.7014% 13.4467 -33.5273);--status-hold:lab(82.2725% 7.53289 73.9282);--status-incoming:lab(52.0183% 66.11 -78.2316);--status-disconnected:lab(55.4814% 75.0732 48.8528);--color-green:lab(71.931% -38.9071 70.3045);--color-red:lab(53.3473% 69.9469 45.351);--color-blue:lab(51.7014% 13.4467 -33.5273);--color-settings:lab(71.9851% 8.76683 -19.9302);--color-avaible:lab(69.443% -61.9097 48.3881)}}.dark{--background:#0a0a0a;--foreground:#fafafa;--card:#171717;--card-foreground:#fafafa;--popover:#171717;--popover-foreground:#fafafa;--primary:var(--p-primary-color,#e5e5e5);--primary-foreground:#171717;--secondary:#262626;--secondary-foreground:#fafafa;--muted:#262626;--muted-foreground:#a1a1a1;--accent:#262626;--accent-foreground:#fafafa;--destructive:#ff6568;--border:#ffffff1a;--input:#ffffff26;--ring:#737373;--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#171717;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#262626;--sidebar-accent-foreground:#fafafa;--sidebar-border:#ffffff1a;--sidebar-ring:#737373;--status-available:#41cd6a;--status-incall:#54a2ff;--status-hold:#fccf2c;--status-incoming:#b971ff;--status-disconnected:#ff6568}@supports (color:color(display-p3 0 0 0)){.dark{--background:color(display-p3 .0393882 .0393882 .0393882);--foreground:color(display-p3 .980256 .980256 .980256);--card:color(display-p3 .0905274 .0905274 .0905274);--card-foreground:color(display-p3 .980256 .980256 .980256);--popover:color(display-p3 .0905274 .0905274 .0905274);--popover-foreground:color(display-p3 .980256 .980256 .980256);--primary:var(--p-primary-color,color(display-p3 .898161 .898161 .898161));--primary-foreground:color(display-p3 .0905274 .0905274 .0905274);--secondary:color(display-p3 .149382 .149382 .149382);--secondary-foreground:color(display-p3 .980256 .980256 .980256);--muted:color(display-p3 .149382 .149382 .149382);--muted-foreground:color(display-p3 .630163 .630163 .630163);--accent:color(display-p3 .149382 .149382 .149382);--accent-foreground:color(display-p3 .980256 .980256 .980256);--destructive:color(display-p3 .933534 .431676 .423491);--border:color(display-p3 1 1 1/.1);--input:color(display-p3 1 1 1/.15);--ring:color(display-p3 .451519 .451519 .451519);--chart-1:color(display-p3 .1379 .274983 .867624);--chart-2:color(display-p3 .267113 .726847 .508397);--chart-3:color(display-p3 .93994 .620584 .0585367);--chart-4:color(display-p3 .629519 .30089 .990817);--chart-5:color(display-p3 .921824 .240748 .355666);--sidebar:color(display-p3 .0905274 .0905274 .0905274);--sidebar-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-primary:color(display-p3 .1379 .274983 .867624);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .149382 .149382 .149382);--sidebar-accent-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-border:color(display-p3 1 1 1/.1);--sidebar-ring:color(display-p3 .451519 .451519 .451519);--status-available:color(display-p3 .425834 .792595 .456802);--status-incall:color(display-p3 .397443 .62813 .992116);--status-hold:color(display-p3 .958937 .816675 .321887);--status-incoming:color(display-p3 .692676 .438266 1.01683);--status-disconnected:color(display-p3 .933534 .431676 .423491)}}@supports (color:lab(0% 0 0)){.dark{--background:lab(2.75381% 0 0);--foreground:lab(98.26% 0 0);--card:lab(7.78201% -.0000149012 0);--card-foreground:lab(98.26% 0 0);--popover:lab(7.78201% -.0000149012 0);--popover-foreground:lab(98.26% 0 0);--primary:var(--p-primary-color,lab(90.952% 0 -.0000119209));--primary-foreground:lab(7.78201% -.0000149012 0);--secondary:lab(15.204% 0 -.00000596046);--secondary-foreground:lab(98.26% 0 0);--muted:lab(15.204% 0 -.00000596046);--muted-foreground:lab(66.128% -.0000298023 .0000119209);--accent:lab(15.204% 0 -.00000596046);--accent-foreground:lab(98.26% 0 0);--destructive:lab(63.7053% 60.745 31.3109);--border:lab(100% 0 0/.1);--input:lab(100% 0 0/.15);--ring:lab(48.496% 0 0);--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(7.78201% -.0000149012 0);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.204% 0 -.00000596046);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(100% 0 0/.1);--sidebar-ring:lab(48.496% 0 0);--status-available:lab(73.3941% -54.8093 37.6928);--status-incall:lab(65.0361% -1.42065 -56.9802);--status-hold:lab(85.1352% 6.10837 78.1641);--status-incoming:lab(60.4586% 54.1298 -67.8379);--status-disconnected:lab(63.7053% 60.745 31.3109)}}.ibrand{font-family:Ibrand,sans-serif}.montserrat{font-family:Montserrat,sans-serif}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}.p-input::placeholder{color:#959595;font-size:12px}@font-face{font-family:Ibrand;src:url(/fonts/Ibrand.otf)format("truetype");font-weight:100 900;font-style:normal;font-display:swap}svg [clip-path][data-v-91172c21]{clip-path:none!important}[data-v-91172c21]:root{--radius:.625rem;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:var(--p-primary-color,#171717);--color-primary-500:#9b5ff5;--p-primary-color:var(--color-primary-500);--primary-foreground:#fafafa;--secondary:#f5f5f5;--secondary-foreground:#171717;--muted:#f5f5f5;--muted-foreground:#737373;--accent:#f5f5f5;--accent-foreground:#171717;--destructive:#e40014;--border:#e5e5e5;--input:#e5e5e5;--ring:#a1a1a1;--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#0a0a0a;--sidebar-primary:#171717;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f5f5f5;--sidebar-accent-foreground:#171717;--sidebar-border:#e5e5e5;--sidebar-ring:#a1a1a1;--status-available:#00a544;--status-incall:#7a75b5;--status-hold:#f5c632;--status-incoming:#ac4bff;--status-disconnected:#fb2c36;--color-green:#81c200;--color-red:#ed3237;--color-blue:#7a75b5;--color-settings:#b3acd5;--color-avaible:#00c448;font-family:Montserrat,sans-serif}@supports (color:color(display-p3 0 0 0)){[data-v-91172c21]:root{--background:color(display-p3 1 1 1);--foreground:color(display-p3 .0393882 .0393882 .0393882);--card:color(display-p3 1 1 1);--card-foreground:color(display-p3 .0393882 .0393882 .0393882);--popover:color(display-p3 1 1 1);--popover-foreground:color(display-p3 .0393882 .0393882 .0393882);--primary:var(--p-primary-color,color(display-p3 .0905274 .0905274 .0905274));--primary-foreground:color(display-p3 .980256 .980256 .980256);--secondary:color(display-p3 .960587 .960587 .960587);--secondary-foreground:color(display-p3 .0905274 .0905274 .0905274);--muted:color(display-p3 .960587 .960587 .960587);--muted-foreground:color(display-p3 .451519 .451519 .451519);--accent:color(display-p3 .960587 .960587 .960587);--accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--destructive:color(display-p3 .830323 .140383 .133196);--border:color(display-p3 .898161 .898161 .898161);--input:color(display-p3 .898161 .898161 .898161);--ring:color(display-p3 .630163 .630163 .630163);--chart-1:color(display-p3 .887467 .341665 .0219962);--chart-2:color(display-p3 .207114 .579584 .53668);--chart-3:color(display-p3 .142586 .302008 .385094);--chart-4:color(display-p3 .959186 .738519 .118268);--chart-5:color(display-p3 .93994 .620584 .0585367);--sidebar:color(display-p3 .980256 .980256 .980256);--sidebar-foreground:color(display-p3 .0393882 .0393882 .0393882);--sidebar-primary:color(display-p3 .0905274 .0905274 .0905274);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .960587 .960587 .960587);--sidebar-accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--sidebar-border:color(display-p3 .898161 .898161 .898161);--sidebar-ring:color(display-p3 .630163 .630163 .630163);--status-available:color(display-p3 .243882 .640824 .294808);--status-incall:color(display-p3 .474968 .45946 .692102);--status-hold:color(display-p3 .930111 .782506 .322764);--status-incoming:color(display-p3 .629519 .30089 .990817);--status-disconnected:color(display-p3 .903738 .262579 .253307);--color-green:color(display-p3 .562304 .754036 .228809);--color-red:color(display-p3 .855599 .269309 .251664);--color-blue:color(display-p3 .474968 .45946 .692102);--color-settings:color(display-p3 .697185 .675441 .822883);--color-avaible:color(display-p3 .345782 .7571 .347428)}}@supports (color:lab(0% 0 0)){[data-v-91172c21]:root{--background:lab(100% 0 0);--foreground:lab(2.75381% 0 0);--card:lab(100% 0 0);--card-foreground:lab(2.75381% 0 0);--popover:lab(100% 0 0);--popover-foreground:lab(2.75381% 0 0);--primary:var(--p-primary-color,lab(7.78201% -.0000149012 0));--primary-foreground:lab(98.26% 0 0);--secondary:lab(96.52% -.0000298023 .0000119209);--secondary-foreground:lab(7.78201% -.0000149012 0);--muted:lab(96.52% -.0000298023 .0000119209);--muted-foreground:lab(48.496% 0 0);--accent:lab(96.52% -.0000298023 .0000119209);--accent-foreground:lab(7.78201% -.0000149012 0);--destructive:lab(48.4493% 77.4328 61.5452);--border:lab(90.952% 0 -.0000119209);--input:lab(90.952% 0 -.0000119209);--ring:lab(66.128% -.0000298023 .0000119209);--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.75381% 0 0);--sidebar-primary:lab(7.78201% -.0000149012 0);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.52% -.0000298023 .0000119209);--sidebar-accent-foreground:lab(7.78201% -.0000149012 0);--sidebar-border:lab(90.952% 0 -.0000119209);--sidebar-ring:lab(66.128% -.0000298023 .0000119209);--status-available:lab(59.0978% -58.6621 41.2579);--status-incall:lab(51.7014% 13.4467 -33.5273);--status-hold:lab(82.2725% 7.53289 73.9282);--status-incoming:lab(52.0183% 66.11 -78.2316);--status-disconnected:lab(55.4814% 75.0732 48.8528);--color-green:lab(71.931% -38.9071 70.3045);--color-red:lab(53.3473% 69.9469 45.351);--color-blue:lab(51.7014% 13.4467 -33.5273);--color-settings:lab(71.9851% 8.76683 -19.9302);--color-avaible:lab(69.443% -61.9097 48.3881)}}.dark[data-v-91172c21]{--background:#0a0a0a;--foreground:#fafafa;--card:#171717;--card-foreground:#fafafa;--popover:#171717;--popover-foreground:#fafafa;--primary:var(--p-primary-color,#e5e5e5);--primary-foreground:#171717;--secondary:#262626;--secondary-foreground:#fafafa;--muted:#262626;--muted-foreground:#a1a1a1;--accent:#262626;--accent-foreground:#fafafa;--destructive:#ff6568;--border:#ffffff1a;--input:#ffffff26;--ring:#737373;--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#171717;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#262626;--sidebar-accent-foreground:#fafafa;--sidebar-border:#ffffff1a;--sidebar-ring:#737373;--status-available:#41cd6a;--status-incall:#54a2ff;--status-hold:#fccf2c;--status-incoming:#b971ff;--status-disconnected:#ff6568}@supports (color:color(display-p3 0 0 0)){.dark[data-v-91172c21]{--background:color(display-p3 .0393882 .0393882 .0393882);--foreground:color(display-p3 .980256 .980256 .980256);--card:color(display-p3 .0905274 .0905274 .0905274);--card-foreground:color(display-p3 .980256 .980256 .980256);--popover:color(display-p3 .0905274 .0905274 .0905274);--popover-foreground:color(display-p3 .980256 .980256 .980256);--primary:var(--p-primary-color,color(display-p3 .898161 .898161 .898161));--primary-foreground:color(display-p3 .0905274 .0905274 .0905274);--secondary:color(display-p3 .149382 .149382 .149382);--secondary-foreground:color(display-p3 .980256 .980256 .980256);--muted:color(display-p3 .149382 .149382 .149382);--muted-foreground:color(display-p3 .630163 .630163 .630163);--accent:color(display-p3 .149382 .149382 .149382);--accent-foreground:color(display-p3 .980256 .980256 .980256);--destructive:color(display-p3 .933534 .431676 .423491);--border:color(display-p3 1 1 1/.1);--input:color(display-p3 1 1 1/.15);--ring:color(display-p3 .451519 .451519 .451519);--chart-1:color(display-p3 .1379 .274983 .867624);--chart-2:color(display-p3 .267113 .726847 .508397);--chart-3:color(display-p3 .93994 .620584 .0585367);--chart-4:color(display-p3 .629519 .30089 .990817);--chart-5:color(display-p3 .921824 .240748 .355666);--sidebar:color(display-p3 .0905274 .0905274 .0905274);--sidebar-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-primary:color(display-p3 .1379 .274983 .867624);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .149382 .149382 .149382);--sidebar-accent-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-border:color(display-p3 1 1 1/.1);--sidebar-ring:color(display-p3 .451519 .451519 .451519);--status-available:color(display-p3 .425834 .792595 .456802);--status-incall:color(display-p3 .397443 .62813 .992116);--status-hold:color(display-p3 .958937 .816675 .321887);--status-incoming:color(display-p3 .692676 .438266 1.01683);--status-disconnected:color(display-p3 .933534 .431676 .423491)}}@supports (color:lab(0% 0 0)){.dark[data-v-91172c21]{--background:lab(2.75381% 0 0);--foreground:lab(98.26% 0 0);--card:lab(7.78201% -.0000149012 0);--card-foreground:lab(98.26% 0 0);--popover:lab(7.78201% -.0000149012 0);--popover-foreground:lab(98.26% 0 0);--primary:var(--p-primary-color,lab(90.952% 0 -.0000119209));--primary-foreground:lab(7.78201% -.0000149012 0);--secondary:lab(15.204% 0 -.00000596046);--secondary-foreground:lab(98.26% 0 0);--muted:lab(15.204% 0 -.00000596046);--muted-foreground:lab(66.128% -.0000298023 .0000119209);--accent:lab(15.204% 0 -.00000596046);--accent-foreground:lab(98.26% 0 0);--destructive:lab(63.7053% 60.745 31.3109);--border:lab(100% 0 0/.1);--input:lab(100% 0 0/.15);--ring:lab(48.496% 0 0);--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(7.78201% -.0000149012 0);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.204% 0 -.00000596046);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(100% 0 0/.1);--sidebar-ring:lab(48.496% 0 0);--status-available:lab(73.3941% -54.8093 37.6928);--status-incall:lab(65.0361% -1.42065 -56.9802);--status-hold:lab(85.1352% 6.10837 78.1641);--status-incoming:lab(60.4586% 54.1298 -67.8379);--status-disconnected:lab(63.7053% 60.745 31.3109)}}.ibrand[data-v-91172c21]{font-family:Ibrand,sans-serif}.montserrat[data-v-91172c21]{font-family:Montserrat,sans-serif}@keyframes pulse-91172c21{50%{opacity:.5}}@keyframes enter-91172c21{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit-91172c21{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down-91172c21{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up-91172c21{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(a)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
3
|
-
(function(){var Ec=Object.defineProperty,sg=(e,t)=>{let r={};for(var n in e)Ec(r,n,{get:e[n],enumerable:!0});return t&&Ec(r,Symbol.toStringTag,{value:"Module"}),r};function Is(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}var qe={},Yn=[],Yt=()=>{},Ac=()=>!1,ks=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ra=e=>e.startsWith("onUpdate:"),ze=Object.assign,na=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},ig=Object.prototype.hasOwnProperty,Ue=(e,t)=>ig.call(e,t),ve=Array.isArray,Zn=e=>Xn(e)==="[object Map]",Rn=e=>Xn(e)==="[object Set]",Ic=e=>Xn(e)==="[object Date]",og=e=>Xn(e)==="[object RegExp]",Ae=e=>typeof e=="function",Ze=e=>typeof e=="string",lr=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",sa=e=>(Ve(e)||Ae(e))&&Ae(e.then)&&Ae(e.catch),kc=Object.prototype.toString,Xn=e=>kc.call(e),ag=e=>Xn(e).slice(8,-1),Si=e=>Xn(e)==="[object Object]",Ci=e=>Ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=Is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xi=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},lg=/-\w/g,lt=xi(e=>e.replace(lg,t=>t.slice(1).toUpperCase())),cg=/\B([A-Z])/g,Dt=xi(e=>e.replace(cg,"-$1").toLowerCase()),Rs=xi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qn=xi(e=>e?`on${Rs(e)}`:""),At=(e,t)=>!Object.is(e,t),es=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Rc=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Ti=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ei=e=>{const t=Ze(e)?Number(e):NaN;return isNaN(t)?e:t},$c,Ai=()=>$c||($c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),ug=Is("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function dt(e){if(ve(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],s=Ze(n)?hg(n):dt(n);if(s)for(const i in s)t[i]=s[i]}return t}else if(Ze(e)||Ve(e))return e}var dg=/;(?![^(]*\))/g,fg=/:([^]+)/,pg=/\/\*[^]*?\*\//g;function hg(e){const t={};return e.replace(pg,"").split(dg).forEach(r=>{if(r){const n=r.split(fg);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ye(e){let t="";if(Ze(e))t=e;else if(ve(e))for(let r=0;r<e.length;r++){const n=Ye(e[r]);n&&(t+=n+" ")}else if(Ve(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function cr(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ze(t)&&(e.class=Ye(t)),r&&(e.style=dt(r)),e}var Pc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gg=Is(Pc),ex=Is(Pc+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Dc(e){return!!e||e===""}function vg(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=$r(e[n],t[n]);return r}function $r(e,t){if(e===t)return!0;let r=Ic(e),n=Ic(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=lr(e),n=lr(t),r||n)return e===t;if(r=ve(e),n=ve(t),r||n)return r&&n?vg(e,t):!1;if(r=Ve(e),n=Ve(t),r||n){if(!r||!n||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e){const i=e.hasOwnProperty(s),o=t.hasOwnProperty(s);if(i&&!o||!i&&o||!$r(e[s],t[s]))return!1}}return String(e)===String(t)}function Ii(e,t){return e.findIndex(r=>$r(r,t))}var Oc=e=>!!(e&&e.__v_isRef===!0),He=e=>Ze(e)?e:e==null?"":ve(e)||Ve(e)&&(e.toString===kc||!Ae(e.toString))?Oc(e)?He(e.value):JSON.stringify(e,Hc,2):String(e),Hc=(e,t)=>Oc(t)?Hc(e,t.value):Zn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],i)=>(r[ia(n,i)+" =>"]=s,r),{})}:Rn(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>ia(r))}:lr(t)?ia(t):Ve(t)&&!ve(t)&&!Si(t)?String(t):t,ia=(e,t="")=>{var r;return lr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};function mg(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:(typeof e!="number"||Number.isFinite(e),String(e))}var yt,oa=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=yt,!e&&yt&&(this.index=(yt.scopes||(yt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=yt;try{return yt=this,e()}finally{yt=t}}}on(){++this._on===1&&(this.prevScope=yt,yt=this)}off(){this._on>0&&--this._on===0&&(yt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,r;for(t=0,r=this.effects.length;t<r;t++)this.effects[t].stop();for(this.effects.length=0,t=0,r=this.cleanups.length;t<r;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}};function aa(e){return new oa(e)}function ki(){return yt}function la(e,t=!1){yt&&yt.cleanups.push(e)}var Xe,ca=new WeakSet,$s=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,yt&&yt.active&&yt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ca.has(this)&&(ca.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Vc(this),Nc(this);const e=Xe,t=ur;Xe=this,ur=!0;try{return this.fn()}finally{Bc(this),Xe=e,ur=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)pa(e);this.deps=this.depsTail=void 0,Vc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ca.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){fa(this)&&this.run()}get dirty(){return fa(this)}},Mc=0,Ps,Ds;function qc(e,t=!1){if(e.flags|=8,t){e.next=Ds,Ds=e;return}e.next=Ps,Ps=e}function ua(){Mc++}function da(){if(--Mc>0)return;if(Ds){let t=Ds;for(Ds=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Ps;){let t=Ps;for(Ps=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Nc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Bc(e){let t,r=e.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),pa(n),wg(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=r}function fa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Lc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Lc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Os)||(e.globalVersion=Os,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!fa(e))))return;e.flags|=2;const t=e.dep,r=Xe,n=ur;Xe=e,ur=!0;try{Nc(e);const s=e.fn(e._value);(t.version===0||At(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Xe=r,ur=n,Bc(e),e.flags&=-3}}function pa(e,t=!1){const{dep:r,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)pa(i,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function wg(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function yg(e,t){e.effect instanceof $s&&(e=e.effect.fn);const r=new $s(e);t&&ze(r,t);try{r.run()}catch(s){throw r.stop(),s}const n=r.run.bind(r);return n.effect=r,n}function bg(e){e.effect.stop()}var ur=!0,Fc=[];function Pr(){Fc.push(ur),ur=!1}function Dr(){const e=Fc.pop();ur=e===void 0?!0:e}function Vc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Xe;Xe=void 0;try{t()}finally{Xe=r}}}var Os=0,_g=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ri=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Xe||!ur||Xe===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Xe)t=this.activeLink=new _g(Xe,this),Xe.deps?(t.prevDep=Xe.depsTail,Xe.depsTail.nextDep=t,Xe.depsTail=t):Xe.deps=Xe.depsTail=t,jc(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const r=t.nextDep;r.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=r),t.prevDep=Xe.depsTail,t.nextDep=void 0,Xe.depsTail.nextDep=t,Xe.depsTail=t,Xe.deps===t&&(Xe.deps=r)}return t}trigger(e){this.version++,Os++,this.notify(e)}notify(e){ua();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{da()}}};function jc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)jc(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}var $i=new WeakMap,Pn=Symbol(""),ha=Symbol(""),Hs=Symbol("");function bt(e,t,r){if(ur&&Xe){let n=$i.get(e);n||$i.set(e,n=new Map);let s=n.get(r);s||(n.set(r,s=new Ri),s.map=n,s.key=r),s.track()}}function Or(e,t,r,n,s,i){const o=$i.get(e);if(!o){Os++;return}const a=l=>{l&&l.trigger()};if(ua(),t==="clear")o.forEach(a);else{const l=ve(e),c=l&&Ci(r);if(l&&r==="length"){const u=Number(n);o.forEach((d,p)=>{(p==="length"||p===Hs||!lr(p)&&p>=u)&&a(d)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(Hs)),t){case"add":l?c&&a(o.get("length")):(a(o.get(Pn)),Zn(e)&&a(o.get(ha)));break;case"delete":l||(a(o.get(Pn)),Zn(e)&&a(o.get(ha)));break;case"set":Zn(e)&&a(o.get(Pn));break}}da()}function Sg(e,t){const r=$i.get(e);return r&&r.get(t)}function ts(e){const t=Ne(e);return t===e?t:(bt(t,"iterate",Hs),Ot(e)?t:t.map(dr))}function Pi(e){return bt(e=Ne(e),"iterate",Hs),e}function nn(e,t){return br(e)?rs(Nr(e)?dr(t):t):dr(t)}var Cg={__proto__:null,[Symbol.iterator](){return ga(this,Symbol.iterator,e=>nn(this,e))},concat(...e){return ts(this).concat(...e.map(t=>ve(t)?ts(t):t))},entries(){return ga(this,"entries",e=>(e[1]=nn(this,e[1]),e))},every(e,t){return Hr(this,"every",e,t,void 0,arguments)},filter(e,t){return Hr(this,"filter",e,t,r=>r.map(n=>nn(this,n)),arguments)},find(e,t){return Hr(this,"find",e,t,r=>nn(this,r),arguments)},findIndex(e,t){return Hr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Hr(this,"findLast",e,t,r=>nn(this,r),arguments)},findLastIndex(e,t){return Hr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Hr(this,"forEach",e,t,void 0,arguments)},includes(...e){return va(this,"includes",e)},indexOf(...e){return va(this,"indexOf",e)},join(e){return ts(this).join(e)},lastIndexOf(...e){return va(this,"lastIndexOf",e)},map(e,t){return Hr(this,"map",e,t,void 0,arguments)},pop(){return Ms(this,"pop")},push(...e){return Ms(this,"push",e)},reduce(e,...t){return Uc(this,"reduce",e,t)},reduceRight(e,...t){return Uc(this,"reduceRight",e,t)},shift(){return Ms(this,"shift")},some(e,t){return Hr(this,"some",e,t,void 0,arguments)},splice(...e){return Ms(this,"splice",e)},toReversed(){return ts(this).toReversed()},toSorted(e){return ts(this).toSorted(e)},toSpliced(...e){return ts(this).toSpliced(...e)},unshift(...e){return Ms(this,"unshift",e)},values(){return ga(this,"values",e=>nn(this,e))}};function ga(e,t,r){const n=Pi(e),s=n[t]();return n!==e&&!Ot(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=r(i.value)),i}),s}var xg=Array.prototype;function Hr(e,t,r,n,s,i){const o=Pi(e),a=o!==e&&!Ot(e),l=o[t];if(l!==xg[t]){const d=l.apply(e,i);return a?dr(d):d}let c=r;o!==e&&(a?c=function(d,p){return r.call(this,nn(e,d),p,e)}:r.length>2&&(c=function(d,p){return r.call(this,d,p,e)}));const u=l.call(o,c,n);return a&&s?s(u):u}function Uc(e,t,r,n){const s=Pi(e);let i=r;return s!==e&&(Ot(e)?r.length>3&&(i=function(o,a,l){return r.call(this,o,a,l,e)}):i=function(o,a,l){return r.call(this,o,nn(e,a),l,e)}),s[t](i,...n)}function va(e,t,r){const n=Ne(e);bt(n,"iterate",Hs);const s=n[t](...r);return(s===-1||s===!1)&&qs(r[0])?(r[0]=Ne(r[0]),n[t](...r)):s}function Ms(e,t,r=[]){Pr(),ua();const n=Ne(e)[t].apply(e,r);return da(),Dr(),n}var Tg=Is("__proto__,__v_isRef,__isVue"),zc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(lr));function Eg(e){lr(e)||(e=String(e));const t=Ne(this);return bt(t,"has",e),t.hasOwnProperty(e)}var Kc=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if(t==="__v_skip")return e.__v_skip;const n=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!n;if(t==="__v_isReadonly")return n;if(t==="__v_isShallow")return s;if(t==="__v_raw")return r===(n?s?Xc:Zc:s?Yc:Jc).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const i=ve(e);if(!n){let a;if(i&&(a=Cg[t]))return a;if(t==="hasOwnProperty")return Eg}const o=Reflect.get(e,t,Ge(e)?e:r);if((lr(t)?zc.has(t):Tg(t))||(n||bt(e,"get",t),s))return o;if(Ge(o)){const a=i&&Ci(t)?o:o.value;return n&&Ve(a)?_t(a):a}return Ve(o)?n?_t(o):Mr(o):o}},Wc=class extends Kc{constructor(e=!1){super(!1,e)}set(e,t,r,n){let s=e[t];const i=ve(e)&&Ci(t);if(!this._isShallow){const l=br(s);if(!Ot(r)&&!br(r)&&(s=Ne(s),r=Ne(r)),!i&&Ge(s)&&!Ge(r))return l||(s.value=r),!0}const o=i?Number(t)<e.length:Ue(e,t),a=Reflect.set(e,t,r,Ge(e)?e:n);return e===Ne(n)&&(o?At(r,s)&&Or(e,"set",t,r,s):Or(e,"add",t,r)),a}deleteProperty(e,t){const r=Ue(e,t),n=e[t],s=Reflect.deleteProperty(e,t);return s&&r&&Or(e,"delete",t,void 0,n),s}has(e,t){const r=Reflect.has(e,t);return(!lr(t)||!zc.has(t))&&bt(e,"has",t),r}ownKeys(e){return bt(e,"iterate",ve(e)?"length":Pn),Reflect.ownKeys(e)}},Gc=class extends Kc{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Ag=new Wc,Ig=new Gc,kg=new Wc(!0),Rg=new Gc(!0),ma=e=>e,Di=e=>Reflect.getPrototypeOf(e);function $g(e,t,r){return function(...n){const s=this.__v_raw,i=Ne(s),o=Zn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...n),u=r?ma:t?rs:dr;return!t&&bt(i,"iterate",l?ha:Pn),ze(Object.create(c),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:a?[u(d[0]),u(d[1])]:u(d),done:p}}})}}function Oi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pg(e,t){const r={get(n){const s=this.__v_raw,i=Ne(s),o=Ne(n);e||(At(n,o)&&bt(i,"get",n),bt(i,"get",o));const{has:a}=Di(i),l=t?ma:e?rs:dr;if(a.call(i,n))return l(s.get(n));if(a.call(i,o))return l(s.get(o));s!==i&&s.get(n)},get size(){const n=this.__v_raw;return!e&&bt(Ne(n),"iterate",Pn),n.size},has(n){const s=this.__v_raw,i=Ne(s),o=Ne(n);return e||(At(n,o)&&bt(i,"has",n),bt(i,"has",o)),n===o?s.has(n):s.has(n)||s.has(o)},forEach(n,s){const i=this,o=i.__v_raw,a=Ne(o),l=t?ma:e?rs:dr;return!e&&bt(a,"iterate",Pn),o.forEach((c,u)=>n.call(s,l(c),l(u),i))}};return ze(r,e?{add:Oi("add"),set:Oi("set"),delete:Oi("delete"),clear:Oi("clear")}:{add(n){!t&&!Ot(n)&&!br(n)&&(n=Ne(n));const s=Ne(this);return Di(s).has.call(s,n)||(s.add(n),Or(s,"add",n,n)),this},set(n,s){!t&&!Ot(s)&&!br(s)&&(s=Ne(s));const i=Ne(this),{has:o,get:a}=Di(i);let l=o.call(i,n);l||(n=Ne(n),l=o.call(i,n));const c=a.call(i,n);return i.set(n,s),l?At(s,c)&&Or(i,"set",n,s,c):Or(i,"add",n,s),this},delete(n){const s=Ne(this),{has:i,get:o}=Di(s);let a=i.call(s,n);a||(n=Ne(n),a=i.call(s,n));const l=o?o.call(s,n):void 0,c=s.delete(n);return a&&Or(s,"delete",n,void 0,l),c},clear(){const n=Ne(this),s=n.size!==0,i=void 0,o=n.clear();return s&&Or(n,"clear",void 0,void 0,i),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=$g(n,e,t)}),r}function Hi(e,t){const r=Pg(e,t);return(n,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(Ue(r,s)&&s in n?r:n,s,i)}var Dg={get:Hi(!1,!1)},Og={get:Hi(!1,!0)},Hg={get:Hi(!0,!1)},Mg={get:Hi(!0,!0)},Jc=new WeakMap,Yc=new WeakMap,Zc=new WeakMap,Xc=new WeakMap;function qg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ng(e){return e.__v_skip||!Object.isExtensible(e)?0:qg(ag(e))}function Mr(e){return br(e)?e:Mi(e,!1,Ag,Dg,Jc)}function Qc(e){return Mi(e,!1,kg,Og,Yc)}function _t(e){return Mi(e,!0,Ig,Hg,Zc)}function qr(e){return Mi(e,!0,Rg,Mg,Xc)}function Mi(e,t,r,n,s){if(!Ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Ng(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?n:r);return s.set(e,a),a}function Nr(e){return br(e)?Nr(e.__v_raw):!!(e&&e.__v_isReactive)}function br(e){return!!(e&&e.__v_isReadonly)}function Ot(e){return!!(e&&e.__v_isShallow)}function qs(e){return e?!!e.__v_raw:!1}function Ne(e){const t=e&&e.__v_raw;return t?Ne(t):e}function wa(e){return!Ue(e,"__v_skip")&&Object.isExtensible(e)&&Rc(e,"__v_skip",!0),e}var dr=e=>Ve(e)?Mr(e):e,rs=e=>Ve(e)?_t(e):e;function Ge(e){return e?e.__v_isRef===!0:!1}function F(e){return eu(e,!1)}function et(e){return eu(e,!0)}function eu(e,t){return Ge(e)?e:new Bg(e,t)}var Bg=class{constructor(e,t){this.dep=new Ri,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Ne(e),this._value=t?e:dr(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||Ot(e)||br(e);e=r?e:Ne(e),At(e,t)&&(this._rawValue=e,this._value=r?e:dr(e),this.dep.trigger())}};function tu(e){e.dep&&e.dep.trigger()}function f(e){return Ge(e)?e.value:e}function Ce(e){return Ae(e)?e():f(e)}var Lg={get:(e,t,r)=>t==="__v_raw"?e:f(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return Ge(s)&&!Ge(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function ya(e){return Nr(e)?e:new Proxy(e,Lg)}var Fg=class{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Ri,{get:r,set:n}=e(t.track.bind(t),t.trigger.bind(t));this._get=r,this._set=n}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Ns(e){return new Fg(e)}function St(e){const t=ve(e)?new Array(e.length):{};for(const r in e)t[r]=ru(e,r);return t}var Vg=class{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=Ne(e);let n=!0,s=e;if(!ve(e)||!Ci(String(t)))do n=!qs(s)||Ot(s);while(n&&(s=s.__v_raw));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=f(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Ge(this._raw[this._key])){const t=this._object[this._key];if(Ge(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Sg(this._raw,this._key)}},jg=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function ba(e,t,r){return Ge(e)?e:Ae(e)?new jg(e):Ve(e)&&arguments.length>1?ru(e,t,r):F(e)}function ru(e,t,r){return new Vg(e,t,r)}var Ug=class{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ri(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Os-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Xe!==this)return qc(this,!0),!0}get value(){const e=this.dep.track();return Lc(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function zg(e,t,r=!1){let n,s;return Ae(e)?n=e:(n=e.get,s=e.set),new Ug(n,s,r)}var Kg={GET:"get",HAS:"has",ITERATE:"iterate"},Wg={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},qi={},Ni=new WeakMap,sn=void 0;function Gg(){return sn}function nu(e,t=!1,r=sn){if(r){let n=Ni.get(r);n||Ni.set(r,n=[]),n.push(e)}}function Jg(e,t,r=qe){const{immediate:n,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=r,c=m=>s?m:Ot(m)||s===!1||s===0?Br(m,1):Br(m);let u,d,p,g,w=!1,b=!1;if(Ge(e)?(d=()=>e.value,w=Ot(e)):Nr(e)?(d=()=>c(e),w=!0):ve(e)?(b=!0,w=e.some(m=>Nr(m)||Ot(m)),d=()=>e.map(m=>{if(Ge(m))return m.value;if(Nr(m))return c(m);if(Ae(m))return l?l(m,2):m()})):Ae(e)?t?d=l?()=>l(e,2):e:d=()=>{if(p){Pr();try{p()}finally{Dr()}}const m=sn;sn=u;try{return l?l(e,3,[g]):e(g)}finally{sn=m}}:d=Yt,t&&s){const m=d,_=s===!0?1/0:s;d=()=>Br(m(),_)}const C=ki(),v=()=>{u.stop(),C&&C.active&&na(C.effects,u)};if(i&&t){const m=t;t=(..._)=>{m(..._),v()}}let S=b?new Array(e.length).fill(qi):qi;const y=m=>{if(!(!(u.flags&1)||!u.dirty&&!m))if(t){const _=u.run();if(s||w||(b?_.some((k,M)=>At(k,S[M])):At(_,S))){p&&p();const k=sn;sn=u;try{const M=[_,S===qi?void 0:b&&S[0]===qi?[]:S,g];S=_,l?l(t,3,M):t(...M)}finally{sn=k}}}else u.run()};return a&&a(y),u=new $s(d),u.scheduler=o?()=>o(y,!1):y,g=m=>nu(m,!1,u),p=u.onStop=()=>{const m=Ni.get(u);if(m){if(l)l(m,4);else for(const _ of m)_();Ni.delete(u)}},t?n?y(!0):S=u.run():o?o(y.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function Br(e,t=1/0,r){if(t<=0||!Ve(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Ge(e))Br(e.value,t,r);else if(ve(e))for(let n=0;n<e.length;n++)Br(e[n],t,r);else if(Rn(e)||Zn(e))e.forEach(n=>{Br(n,t,r)});else if(Si(e)){for(const n in e)Br(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Br(e[n],t,r)}return e}var su=[];function Yg(e){su.push(e)}function Zg(){su.pop()}function Xg(e,t){}var Qg={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},ev={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function ns(e,t,r,n){try{return n?e(...n):e()}catch(s){Dn(s,t,r)}}function Zt(e,t,r,n){if(Ae(e)){const s=ns(e,t,r,n);return s&&sa(s)&&s.catch(i=>{Dn(i,t,r)}),s}if(ve(e)){const s=[];for(let i=0;i<e.length;i++)s.push(Zt(e[i],t,r,n));return s}}function Dn(e,t,r,n=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||qe;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}a=a.parent}if(i){Pr(),ns(i,null,10,[e,l,c]),Dr();return}}tv(e,r,s,n,o)}function tv(e,t,r,n=!0,s=!1){if(s)throw e;console.error(e)}var It=[],_r=-1,ss=[],on=null,is=0,iu=Promise.resolve(),Bi=null;function ft(e){const t=Bi||iu;return e?t.then(this?e.bind(this):e):t}function rv(e){let t=_r+1,r=It.length;for(;t<r;){const n=t+r>>>1,s=It[n],i=Ls(s);i<e||i===e&&s.flags&2?t=n+1:r=n}return t}function _a(e){if(!(e.flags&1)){const t=Ls(e),r=It[It.length-1];!r||!(e.flags&2)&&t>=Ls(r)?It.push(e):It.splice(rv(t),0,e),e.flags|=1,ou()}}function ou(){Bi||(Bi=iu.then(lu))}function Bs(e){ve(e)?ss.push(...e):on&&e.id===-1?on.splice(is+1,0,e):e.flags&1||(ss.push(e),e.flags|=1),ou()}function au(e,t,r=_r+1){for(;r<It.length;r++){const n=It[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;It.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Li(e){if(ss.length){const t=[...new Set(ss)].sort((r,n)=>Ls(r)-Ls(n));if(ss.length=0,on){on.push(...t);return}for(on=t,is=0;is<on.length;is++){const r=on[is];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}on=null,is=0}}var Ls=e=>e.id==null?e.flags&2?-1:1/0:e.id;function lu(e){try{for(_r=0;_r<It.length;_r++){const t=It[_r];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ns(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;_r<It.length;_r++){const t=It[_r];t&&(t.flags&=-2)}_r=-1,It.length=0,Li(e),Bi=null,(It.length||ss.length)&&lu(e)}}var os,Fi=[];function cu(e,t){var r,n;os=e,os?(os.enabled=!0,Fi.forEach(({event:s,args:i})=>os.emit(s,...i)),Fi=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{cu(s,t)}),setTimeout(()=>{os||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Fi=[])},3e3)):Fi=[]}var vt=null,Vi=null;function Fs(e){const t=vt;return vt=e,Vi=e&&e.type.__scopeId||null,t}function nv(e){Vi=e}function sv(){Vi=null}var iv=e=>R;function R(e,t=vt,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&ei(-1);const i=Fs(t);let o;try{o=e(...s)}finally{Fs(i),n._d&&ei(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ji(e,t){if(vt===null)return e;const r=ti(vt),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=qe]=t[s];i&&(Ae(i)&&(i={mounted:i,updated:i}),i.deep&&Br(o),n.push({dir:i,instance:r,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Sr(e,t,r,n){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[n];l&&(Pr(),Zt(l,r,8,[e.el,a,e,t]),Dr())}}function as(e,t){if(mt){let r=mt.provides;const n=mt.parent&&mt.parent.provides;n===r&&(r=mt.provides=Object.create(n)),r[e]=t}}function kt(e,t,r=!1){const n=it();if(n||On){let s=On?On._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Ae(t)?t.call(n&&n.proxy):t}}function ov(){return!!(it()||On)}var uu=Symbol.for("v-scx"),du=()=>{{const e=kt(uu);return e}};function Qe(e,t){return Vs(e,null,t)}function Sa(e,t){return Vs(e,null,{flush:"post"})}function fu(e,t){return Vs(e,null,{flush:"sync"})}function ke(e,t,r){return Vs(e,t,r)}function Vs(e,t,r=qe){const{immediate:n,deep:s,flush:i,once:o}=r,a=ze({},r),l=t&&n||!t&&i!=="post";let c;if(hs){if(i==="sync"){const g=du();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=Yt,g.resume=Yt,g.pause=Yt,g}}const u=mt;a.call=(g,w,b)=>Zt(g,u,w,b);let d=!1;i==="post"?a.scheduler=g=>{ot(g,u&&u.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(g,w)=>{w?g():_a(g)}),a.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const p=Jg(e,t,a);return hs&&(c?c.push(p):l&&p()),p}function av(e,t,r){const n=this.proxy,s=Ze(e)?e.includes(".")?pu(n,e):()=>n[e]:e.bind(n,n);let i;Ae(t)?i=t:(i=t.handler,r=t);const o=Nn(this),a=Vs(s,i.bind(n),r);return o(),a}function pu(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}var hu=Symbol("_vte"),gu=e=>e.__isTeleport,js=e=>e&&(e.disabled||e.disabled===""),vu=e=>e&&(e.defer||e.defer===""),mu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,wu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ca=(e,t)=>{const r=e&&e.to;return Ze(r)?t?t(r):null:r},yu={name:"Teleport",__isTeleport:!0,process(e,t,r,n,s,i,o,a,l,c){const{mc:u,pc:d,pbc:p,o:{insert:g,querySelector:w,createText:b,createComment:C}}=c,v=js(t.props);let{shapeFlag:S,children:y,dynamicChildren:m}=t;if(e==null){const _=t.el=b(""),k=t.anchor=b("");g(_,r,n),g(k,r,n);const M=(O,P)=>{S&16&&u(y,O,P,s,i,o,a,l)},h=()=>{const O=t.target=Ca(t.props,w),P=Ta(O,t,b,g);O&&(o!=="svg"&&mu(O)?o="svg":o!=="mathml"&&wu(O)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(O),v||(M(O,P),zi(t,!1)))};v&&(M(r,k),zi(t,!0)),vu(t.props)?(t.el.__isMounted=!1,ot(()=>{h(),delete t.el.__isMounted},i)):h()}else{if(vu(t.props)&&e.el.__isMounted===!1){ot(()=>{yu.process(e,t,r,n,s,i,o,a,l,c)},i);return}t.el=e.el,t.targetStart=e.targetStart;const _=t.anchor=e.anchor,k=t.target=e.target,M=t.targetAnchor=e.targetAnchor,h=js(e.props),O=h?r:k,P=h?_:M;if(o==="svg"||mu(k)?o="svg":(o==="mathml"||wu(k))&&(o="mathml"),m?(p(e.dynamicChildren,m,O,s,i,o,a),za(e,t,!0)):l||d(e,t,O,P,s,i,o,a,!1),v)h?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ui(t,r,_,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const x=t.target=Ca(t.props,w);x&&Ui(t,x,null,c,0)}else h&&Ui(t,k,M,c,1);zi(t,v)}},remove(e,t,r,{um:n,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(s(c),s(u)),i&&s(l),o&16){const g=i||!js(p);for(let w=0;w<a.length;w++){const b=a[w];n(b,t,r,g,!!b.dynamicChildren)}}},move:Ui,hydrate:lv};function Ui(e,t,r,{o:{insert:n},m:s},i=2){i===0&&n(e.targetAnchor,t,r);const{el:o,anchor:a,shapeFlag:l,children:c,props:u}=e,d=i===2;if(d&&n(o,t,r),(!d||js(u))&&l&16)for(let p=0;p<c.length;p++)s(c[p],t,r,2);d&&n(a,t,r)}function lv(e,t,r,n,s,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:c,createText:u}},d){function p(C,v){let S=v;for(;S;){if(S&&S.nodeType===8){if(S.data==="teleport start anchor")t.targetStart=S;else if(S.data==="teleport anchor"){t.targetAnchor=S,C._lpa=t.targetAnchor&&o(t.targetAnchor);break}}S=o(S)}}function g(C,v){v.anchor=d(o(C),v,a(C),r,n,s,i)}const w=t.target=Ca(t.props,l),b=js(t.props);if(w){const C=w._lpa||w.firstChild;t.shapeFlag&16&&(b?(g(e,t),p(w,C),t.targetAnchor||Ta(w,t,u,c,a(e)===w?e:null)):(t.anchor=o(e),p(w,C),t.targetAnchor||Ta(w,t,u,c),d(C&&o(C),t,w,r,n,s,i))),zi(t,b)}else b&&t.shapeFlag&16&&(g(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var xa=yu;function zi(e,t){const r=e.ctx;if(r&&r.ut){let n,s;for(t?(n=e.el,s=e.anchor):(n=e.targetStart,s=e.targetAnchor);n&&n!==s;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Ta(e,t,r,n,s=null){const i=t.targetStart=r(""),o=t.targetAnchor=r("");return i[hu]=o,e&&(n(i,e,s),n(o,e,s)),o}var Cr=Symbol("_leaveCb"),Us=Symbol("_enterCb");function Ea(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ke(()=>{e.isMounted=!0}),fs(()=>{e.isUnmounting=!0}),e}var Xt=[Function,Array],Aa={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xt,onEnter:Xt,onAfterEnter:Xt,onEnterCancelled:Xt,onBeforeLeave:Xt,onLeave:Xt,onAfterLeave:Xt,onLeaveCancelled:Xt,onBeforeAppear:Xt,onAppear:Xt,onAfterAppear:Xt,onAppearCancelled:Xt},bu=e=>{const t=e.subTree;return t.component?bu(t.component):t},cv={name:"BaseTransition",props:Aa,setup(e,{slots:t}){const r=it(),n=Ea();return()=>{const s=t.default&&Ki(t.default(),!0);if(!s||!s.length)return;const i=_u(s),o=Ne(e),{mode:a}=o;if(n.isLeaving)return Ia(i);const l=xu(i);if(!l)return Ia(i);let c=ls(l,o,n,r,d=>c=d);l.type!==st&&Lr(l,c);let u=r.subTree&&xu(r.subTree);if(u&&u.type!==st&&!fr(u,l)&&bu(r).type!==st){let d=ls(u,o,n,r);if(Lr(u,d),a==="out-in"&&l.type!==st)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete d.afterLeave,u=void 0},Ia(i);a==="in-out"&&l.type!==st?d.delayLeave=(p,g,w)=>{const b=Cu(n,u);b[String(u.key)]=u,p[Cr]=()=>{g(),p[Cr]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{w(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function _u(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==st){t=r;break}}return t}var Su=cv;function Cu(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function ls(e,t,r,n,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:g,onAfterLeave:w,onLeaveCancelled:b,onBeforeAppear:C,onAppear:v,onAfterAppear:S,onAppearCancelled:y}=t,m=String(e.key),_=Cu(r,e),k=(O,P)=>{O&&Zt(O,n,9,P)},M=(O,P)=>{const x=P[1];k(O,P),ve(O)?O.every(E=>E.length<=1)&&x():O.length<=1&&x()},h={mode:o,persisted:a,beforeEnter(O){let P=l;if(!r.isMounted)if(i)P=C||l;else return;O[Cr]&&O[Cr](!0);const x=_[m];x&&fr(e,x)&&x.el[Cr]&&x.el[Cr](),k(P,[O])},enter(O){if(_[m]===e)return;let P=c,x=u,E=d;if(!r.isMounted)if(i)P=v||c,x=S||u,E=y||d;else return;let A=!1;O[Us]=Q=>{A||(A=!0,Q?k(E,[O]):k(x,[O]),h.delayedLeave&&h.delayedLeave(),O[Us]=void 0)};const Y=O[Us].bind(null,!1);P?M(P,[O,Y]):Y()},leave(O,P){const x=String(e.key);if(O[Us]&&O[Us](!0),r.isUnmounting)return P();k(p,[O]);let E=!1;O[Cr]=Y=>{E||(E=!0,P(),Y?k(b,[O]):k(w,[O]),O[Cr]=void 0,_[x]===e&&delete _[x])};const A=O[Cr].bind(null,!1);_[x]=e,g?M(g,[O,A]):A()},clone(O){const P=ls(O,t,r,n,s);return s&&s(P),P}};return h}function Ia(e){if(zs(e))return e=pr(e),e.children=null,e}function xu(e){if(!zs(e))return gu(e.type)&&e.children?_u(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ae(r.default))return r.default()}}function Lr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Lr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ki(e,t=!1,r){let n=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=r==null?o.key:String(r)+String(o.key!=null?o.key:i);o.type===Be?(o.patchFlag&128&&s++,n=n.concat(Ki(o.children,t,a))):(t||o.type!==st)&&n.push(a!=null?pr(o,{key:a}):o)}if(s>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function X(e,t){return Ae(e)?ze({name:e.name},t,{setup:e}):e}function Tu(){const e=it();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function ka(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function uv(e){const t=it(),r=et(null);if(t){const n=t.refs===qe?t.refs={}:t.refs;Object.defineProperty(n,e,{enumerable:!0,get:()=>r.value,set:s=>r.value=s})}return r}function Eu(e,t){let r;return!!((r=Object.getOwnPropertyDescriptor(e,t))&&!r.configurable)}var Wi=new WeakMap;function cs(e,t,r,n,s=!1){if(ve(e)){e.forEach((b,C)=>cs(b,t&&(ve(t)?t[C]:t),r,n,s));return}if(Fr(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&cs(e,t,r,n.component.subTree);return}const i=n.shapeFlag&4?ti(n.component):n.el,o=s?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===qe?a.refs={}:a.refs,d=a.setupState,p=Ne(d),g=d===qe?Ac:b=>Eu(u,b)?!1:Ue(p,b),w=(b,C)=>!(C&&Eu(u,C));if(c!=null&&c!==l){if(Au(t),Ze(c))u[c]=null,g(c)&&(d[c]=null);else if(Ge(c)){const b=t;w(c,b.k)&&(c.value=null),b.k&&(u[b.k]=null)}}if(Ae(l))ns(l,a,12,[o,u]);else{const b=Ze(l),C=Ge(l);if(b||C){const v=()=>{if(e.f){const S=b?g(l)?d[l]:u[l]:w(l)||!e.k?l.value:u[e.k];if(s)ve(S)&&na(S,i);else if(ve(S))S.includes(i)||S.push(i);else if(b)u[l]=[i],g(l)&&(d[l]=u[l]);else{const y=[i];w(l,e.k)&&(l.value=y),e.k&&(u[e.k]=y)}}else b?(u[l]=o,g(l)&&(d[l]=o)):C&&(w(l,e.k)&&(l.value=o),e.k&&(u[e.k]=o))};if(o){const S=()=>{v(),Wi.delete(e)};S.id=-1,Wi.set(e,S),ot(S,r)}else Au(e),v()}}}function Au(e){const t=Wi.get(e);t&&(t.flags|=8,Wi.delete(e))}var Iu=!1,us=()=>{Iu||(console.error("Hydration completed but contains mismatches."),Iu=!0)},dv=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",fv=e=>e.namespaceURI.includes("MathML"),Gi=e=>{if(e.nodeType===1){if(dv(e))return"svg";if(fv(e))return"mathml"}},ds=e=>e.nodeType===8;function pv(e){const{mt:t,p:r,o:{patchProp:n,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:c}}=e,u=(y,m)=>{if(!m.hasChildNodes()){r(null,y,m),Li(),m._vnode=y;return}d(m.firstChild,y,null,null,null),Li(),m._vnode=y},d=(y,m,_,k,M,h=!1)=>{h=h||!!m.dynamicChildren;const O=ds(y)&&y.data==="[",P=()=>b(y,m,_,k,M,O),{type:x,ref:E,shapeFlag:A,patchFlag:Y}=m;let Q=y.nodeType;m.el=y,Y===-2&&(h=!1,m.dynamicChildren=null);let W=null;switch(x){case an:Q!==3?m.children===""?(l(m.el=s(""),o(y),y),W=y):W=P():(y.data!==m.children&&(us(),y.data=m.children),W=i(y));break;case st:S(y)?(W=i(y),v(m.el=y.content.firstChild,y,_)):Q!==8||O?W=P():W=i(y);break;case Mn:if(O&&(y=i(y),Q=y.nodeType),Q===1||Q===3){W=y;const Z=!m.children.length;for(let J=0;J<m.staticCount;J++)Z&&(m.children+=W.nodeType===1?W.outerHTML:W.data),J===m.staticCount-1&&(m.anchor=W),W=i(W);return O?i(W):W}else P();break;case Be:O?W=w(y,m,_,k,M,h):W=P();break;default:if(A&1)(Q!==1||m.type.toLowerCase()!==y.tagName.toLowerCase())&&!S(y)?W=P():W=p(y,m,_,k,M,h);else if(A&6){m.slotScopeIds=M;const Z=o(y);if(O?W=C(y):ds(y)&&y.data==="teleport start"?W=C(y,y.data,"teleport end"):W=i(y),t(m,Z,null,_,k,Gi(Z),h),Fr(m)&&!m.type.__asyncResolved){let J;O?(J=H(Be),J.anchor=W?W.previousSibling:Z.lastChild):J=y.nodeType===3?Me(""):H("div"),J.el=y,m.component.subTree=J}}else A&64?Q!==8?W=P():W=m.type.hydrate(y,m,_,k,M,h,e,g):A&128&&(W=m.type.hydrate(y,m,_,k,Gi(o(y)),M,h,e,d))}return E!=null&&cs(E,null,k,m),W},p=(y,m,_,k,M,h)=>{h=h||!!m.dynamicChildren;const{type:O,props:P,patchFlag:x,shapeFlag:E,dirs:A,transition:Y}=m,Q=O==="input"||O==="option";if(Q||x!==-1){A&&Sr(m,null,_,"created");let W=!1;if(S(y)){W=ud(null,Y)&&_&&_.vnode.props&&_.vnode.props.appear;const J=y.content.firstChild;if(W){const ie=J.getAttribute("class");ie&&(J.$cls=ie),Y.beforeEnter(J)}v(J,y,_),m.el=y=J}if(E&16&&!(P&&(P.innerHTML||P.textContent))){let J=g(y.firstChild,m,y,_,k,M,h);for(;J;){Ji(y,1)||us();const ie=J;J=J.nextSibling,a(ie)}}else if(E&8){let J=m.children;J[0]===`
|
|
4
|
-
`&&(
|
|
5
|
-
`)&&(Ji(y,0)||us(),y.textContent=m.children)}if(P){if(Q||!h||x&48){const J=y.tagName.includes("-");for(const ie in P)(Q&&(ie.endsWith("value")||ie==="indeterminate")||ks(ie)&&!$n(ie)||ie[0]==="."||J&&!$n(ie))&&n(y,ie,null,P[ie],void 0,_)}else if(P.onClick)n(y,"onClick",null,P.onClick,void 0,_);else if(x&4&&Nr(P.style))for(const J in P.style)P.style[J]}let Z;(Z=P&&P.onVnodeBeforeMount)&&Mt(Z,_,m),A&&Sr(m,null,_,"beforeMount"),((Z=P&&P.onVnodeMounted)||A||W)&&gd(()=>{Z&&Mt(Z,_,m),W&&Y.enter(y),A&&Sr(m,null,_,"mounted")},k)}return y.nextSibling},g=(y,m,_,k,M,h,O)=>{O=O||!!m.dynamicChildren;const P=m.children,x=P.length;for(let E=0;E<x;E++){const A=O?P[E]:P[E]=Ht(P[E]),Y=A.type===an;y?(Y&&!O&&E+1<x&&Ht(P[E+1]).type===an&&(l(s(y.data.slice(A.children.length)),_,i(y)),y.data=A.children),y=d(y,A,k,M,h,O)):Y&&!A.children?l(A.el=s(""),_):(Ji(_,1)||us(),r(null,A,_,null,k,M,Gi(_),h))}return y},w=(y,m,_,k,M,h)=>{const{slotScopeIds:O}=m;O&&(M=M?M.concat(O):O);const P=o(y),x=g(i(y),m,P,_,k,M,h);return x&&ds(x)&&x.data==="]"?i(m.anchor=x):(us(),l(m.anchor=c("]"),P,x),x)},b=(y,m,_,k,M,h)=>{if(Ji(y.parentElement,1)||us(),m.el=null,h){const x=C(y);for(;;){const E=i(y);if(E&&E!==x)a(E);else break}}const O=i(y),P=o(y);return a(y),r(null,m,P,O,_,k,Gi(P),M),_&&(_.vnode.el=m.el,ro(_,m.el)),O},C=(y,m="[",_="]")=>{let k=0;for(;y;)if(y=i(y),y&&ds(y)&&(y.data===m&&k++,y.data===_)){if(k===0)return i(y);k--}return y},v=(y,m,_)=>{const k=m.parentNode;k&&k.replaceChild(y,m);let M=_;for(;M;)M.vnode.el===m&&(M.vnode.el=M.subTree.el=y),M=M.parent},S=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[u,d]}var ku="data-allow-mismatch",hv={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ji(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ku);)e=e.parentElement;const r=e&&e.getAttribute(ku);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(hv[t])}}var gv=Ai().requestIdleCallback||(e=>setTimeout(e,1)),vv=Ai().cancelIdleCallback||(e=>clearTimeout(e)),mv=(e=1e4)=>t=>{const r=gv(t,{timeout:e});return()=>vv(r)};function wv(e){const{top:t,left:r,bottom:n,right:s}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(t>0&&t<i||n>0&&n<i)&&(r>0&&r<o||s>0&&s<o)}var yv=e=>(t,r)=>{const n=new IntersectionObserver(s=>{for(const i of s)if(i.isIntersecting){n.disconnect(),t();break}},e);return r(s=>{if(s instanceof Element){if(wv(s))return t(),n.disconnect(),!1;n.observe(s)}}),()=>n.disconnect()},bv=e=>t=>{if(e){const r=matchMedia(e);if(r.matches)t();else return r.addEventListener("change",t,{once:!0}),()=>r.removeEventListener("change",t)}},_v=(e=[])=>(t,r)=>{Ze(e)&&(e=[e]);let n=!1;const s=o=>{n||(n=!0,i(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{r(o=>{for(const a of e)o.removeEventListener(a,s)})};return r(o=>{for(const a of e)o.addEventListener(a,s,{once:!0})}),i};function Sv(e,t){if(ds(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(ds(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}var Fr=e=>!!e.type.__asyncLoader;function Cv(e){Ae(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const p=()=>(d++,c=null,g()),g=()=>{let w;return c||(w=c=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),l)return new Promise((C,v)=>{l(b,()=>C(p()),()=>v(b),d+1)});throw b}).then(b=>w!==c&&c?c:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),u=b,b)))};return X({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(w,b,C){let v=!1;(b.bu||(b.bu=[])).push(()=>v=!0);const S=()=>{v||C()},y=i?()=>{const m=i(S,_=>Sv(w,_));m&&(b.bum||(b.bum=[])).push(m)}:S;u?y():g().then(()=>!b.isUnmounted&&y())},get __asyncResolved(){return u},setup(){const w=mt;if(ka(w),u)return()=>Yi(u,w);const b=y=>{c=null,Dn(y,w,13,!n)};if(a&&w.suspense||hs)return g().then(y=>()=>Yi(y,w)).catch(y=>(b(y),()=>n?H(n,{error:y}):null));const C=F(!1),v=F(),S=F(!!s);return s&&setTimeout(()=>{S.value=!1},s),o!=null&&setTimeout(()=>{if(!C.value&&!v.value){const y=new Error(`Async component timed out after ${o}ms.`);b(y),v.value=y}},o),g().then(()=>{C.value=!0,w.parent&&zs(w.parent.vnode)&&w.parent.update()}).catch(y=>{b(y),v.value=y}),()=>{if(C.value&&u)return Yi(u,w);if(v.value&&n)return H(n,{error:v.value});if(r&&!S.value)return Yi(r,w)}}})}function Yi(e,t){const{ref:r,props:n,children:s,ce:i}=t.vnode,o=H(e,n,s);return o.ref=r,o.ce=i,delete t.vnode.ce,o}var zs=e=>e.type.__isKeepAlive,xv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=it(),n=r.ctx;if(!n.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const s=new Map,i=new Set;let o=null;const a=r.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=n,p=d("div");n.activate=(S,y,m,_,k)=>{const M=S.component;c(S,y,m,0,a),l(M.vnode,S,y,m,M,a,_,S.slotScopeIds,k),ot(()=>{M.isDeactivated=!1,M.a&&es(M.a);const h=S.props&&S.props.onVnodeMounted;h&&Mt(h,M.parent,S)},a)},n.deactivate=S=>{const y=S.component;no(y.m),no(y.a),c(S,p,null,1,a),ot(()=>{y.da&&es(y.da);const m=S.props&&S.props.onVnodeUnmounted;m&&Mt(m,y.parent,S),y.isDeactivated=!0},a)};function g(S){Ra(S),u(S,r,a,!0)}function w(S){s.forEach((y,m)=>{const _=Xa(Fr(y)?y.type.__asyncResolved||{}:y.type);_&&!S(_)&&b(m)})}function b(S){const y=s.get(S);y&&(!o||!fr(y,o))?g(y):o&&Ra(o),s.delete(S),i.delete(S)}ke(()=>[e.include,e.exclude],([S,y])=>{S&&w(m=>Ks(S,m)),y&&w(m=>!Ks(y,m))},{flush:"post",deep:!0});let C=null;const v=()=>{C!=null&&(so(r.subTree.type)?ot(()=>{s.set(C,Zi(r.subTree))},r.subTree.suspense):s.set(C,Zi(r.subTree)))};return Ke(v),Ws(v),fs(()=>{s.forEach(S=>{const{subTree:y,suspense:m}=r,_=Zi(y);if(S.type===_.type&&S.key===_.key){Ra(_);const k=_.component.da;k&&ot(k,m);return}g(S)})}),()=>{if(C=null,!t.default)return o=null;const S=t.default(),y=S[0];if(S.length>1)return o=null,S;if(!jr(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let m=Zi(y);if(m.type===st)return o=null,m;const _=m.type,k=Xa(Fr(m)?m.type.__asyncResolved||{}:_),{include:M,exclude:h,max:O}=e;if(M&&(!k||!Ks(M,k))||h&&k&&Ks(h,k))return m.shapeFlag&=-257,o=m,y;const P=m.key==null?_:m.key,x=s.get(P);return m.el&&(m=pr(m),y.shapeFlag&128&&(y.ssContent=m)),C=P,x?(m.el=x.el,m.component=x.component,m.transition&&Lr(m,m.transition),m.shapeFlag|=512,i.delete(P),i.add(P)):(i.add(P),O&&i.size>parseInt(O,10)&&b(i.values().next().value)),m.shapeFlag|=256,o=m,so(y.type)?y:m}}};function Ks(e,t){return ve(e)?e.some(r=>Ks(r,t)):Ze(e)?e.split(",").includes(t):og(e)?(e.lastIndex=0,e.test(t)):!1}function Ru(e,t){Pu(e,"a",t)}function $u(e,t){Pu(e,"da",t)}function Pu(e,t,r=mt){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Xi(t,n,r),r){let s=r.parent;for(;s&&s.parent;)zs(s.parent.vnode)&&Tv(n,t,r,s),s=s.parent}}function Tv(e,t,r,n){const s=Xi(t,e,n,!0);Rt(()=>{na(n[t],s)},r)}function Ra(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Zi(e){return e.shapeFlag&128?e.ssContent:e}function Xi(e,t,r=mt,n=!1){if(r){const s=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Pr();const a=Nn(r),l=Zt(t,r,e,o);return a(),Dr(),l});return n?s.unshift(i):s.push(i),i}}var Vr=e=>(t,r=mt)=>{(!hs||e==="sp")&&Xi(e,(...n)=>t(...n),r)},Du=Vr("bm"),Ke=Vr("m"),$a=Vr("bu"),Ws=Vr("u"),fs=Vr("bum"),Rt=Vr("um"),Ou=Vr("sp"),Hu=Vr("rtg"),Mu=Vr("rtc");function qu(e,t=mt){Xi("ec",e,t)}var Pa="components",Ev="directives";function Av(e,t){return Da(Pa,e,!0,t)||e}var Nu=Symbol.for("v-ndc");function Gs(e){return Ze(e)?Da(Pa,e,!1)||e:e||Nu}function Iv(e){return Da(Ev,e)}function Da(e,t,r=!0,n=!1){const s=vt||mt;if(s){const i=s.type;if(e===Pa){const a=Xa(i,!1);if(a&&(a===t||a===lt(t)||a===Rs(lt(t))))return i}const o=Bu(s[e]||i[e],t)||Bu(s.appContext[e],t);return!o&&n?i:o}}function Bu(e,t){return e&&(e[t]||e[lt(t)]||e[Rs(lt(t))])}function Qt(e,t,r,n){let s;const i=r&&r[n],o=ve(e);if(o||Ze(e)){const a=o&&Nr(e);let l=!1,c=!1;a&&(l=!Ot(e),c=br(e),e=Pi(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(l?c?rs(dr(e[u])):dr(e[u]):e[u],u,void 0,i&&i[u])}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i&&i[a])}else if(Ve(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,i&&i[l])}}else s=[];return r&&(r[n]=s),s}function kv(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(ve(n))for(let s=0;s<n.length;s++)e[n[s].name]=n[s].fn;else n&&(e[n.name]=n.key?(...s)=>{const i=n.fn(...s);return i&&(i.key=n.key),i}:n.fn)}return e}function te(e,t,r={},n,s){if(vt.ce||vt.parent&&Fr(vt.parent)&&vt.parent.ce){const c=Object.keys(r).length>0;return t!=="default"&&(r.name=t),$(),j(Be,null,[H("slot",r,n&&n())],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),$();const o=i&&Oa(i(r)),a=r.key||o&&o.key,l=j(Be,{key:(a&&!lr(a)?a:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Oa(e){return e.some(t=>jr(t)?!(t.type===st||t.type===Be&&!Oa(t.children)):!0)?e:null}function Lu(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Qn(n)]=e[n];return r}var Ha=e=>e?bd(e)?ti(e):Ha(e.parent):null,Js=ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ha(e.parent),$root:e=>Ha(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ba(e),$forceUpdate:e=>e.f||(e.f=()=>{_a(e.update)}),$nextTick:e=>e.n||(e.n=ft.bind(e.proxy)),$watch:e=>av.bind(e)}),Ma=(e,t)=>e!==qe&&!e.__isScriptSetup&&Ue(e,t),qa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return i[t]}else{if(Ma(n,t))return o[t]=1,n[t];if(s!==qe&&Ue(s,t))return o[t]=2,s[t];if(Ue(i,t))return o[t]=3,i[t];if(r!==qe&&Ue(r,t))return o[t]=4,r[t];Na&&(o[t]=0)}}const c=Js[t];let u,d;if(c)return t==="$attrs"&&bt(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(r!==qe&&Ue(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,Ue(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:i}=e;return Ma(s,t)?(s[t]=r,!0):n!==qe&&Ue(n,t)?(n[t]=r,!0):Ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,props:i,type:o}},a){let l;return!!(r[a]||e!==qe&&a[0]!=="$"&&Ue(e,a)||Ma(t,a)||Ue(i,a)||Ue(n,a)||Ue(Js,a)||Ue(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ue(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},Rv=ze({},qa,{get(e,t){if(t!==Symbol.unscopables)return qa.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ug(t)}});function $v(){return null}function Pv(){return null}function Dv(e){}function Ov(e){}function Hv(){return null}function Mv(){}function qv(e,t){return null}function Nv(){return Fu("useSlots").slots}function Bv(){return Fu("useAttrs").attrs}function Fu(e){const t=it();return t.setupContext||(t.setupContext=Cd(t))}function Ys(e){return ve(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Vu(e,t){const r=Ys(e);for(const n in t){if(n.startsWith("__skip"))continue;let s=r[n];s?ve(s)||Ae(s)?s=r[n]={type:s,default:t[n]}:s.default=t[n]:s===null&&(s=r[n]={default:t[n]}),s&&t[`__skip_${n}`]&&(s.skipFactory=!0)}return r}function Lv(e,t){return!e||!t?e||t:ve(e)&&ve(t)?e.concat(t):ze({},Ys(e),Ys(t))}function Fv(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function Vv(e){const t=it();let r=e();ao();const n=()=>{it()!==t&&t.scope.off(),ao()};return sa(r)&&(r=r.catch(s=>{throw Nn(t),Promise.resolve().then(()=>Promise.resolve().then(n)),s})),[r,()=>{Nn(t),Promise.resolve().then(n)}]}var Na=!0;function jv(e){const t=Ba(e),r=e.proxy,n=e.ctx;Na=!1,t.beforeCreate&&ju(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:g,updated:w,activated:b,deactivated:C,beforeDestroy:v,beforeUnmount:S,destroyed:y,unmounted:m,render:_,renderTracked:k,renderTriggered:M,errorCaptured:h,serverPrefetch:O,expose:P,inheritAttrs:x,components:E,directives:A,filters:Y}=t;if(c&&Uv(c,n,null),o)for(const Z in o){const J=o[Z];Ae(J)&&(n[Z]=J.bind(r))}if(s){const Z=s.call(r,r);Ve(Z)&&(e.data=Mr(Z))}if(Na=!0,i)for(const Z in i){const J=i[Z],ie=V({get:Ae(J)?J.bind(r,r):Ae(J.get)?J.get.bind(r,r):Yt,set:!Ae(J)&&Ae(J.set)?J.set.bind(r):Yt});Object.defineProperty(n,Z,{enumerable:!0,configurable:!0,get:()=>ie.value,set:K=>ie.value=K})}if(a)for(const Z in a)Uu(a[Z],n,r,Z);if(l){const Z=Ae(l)?l.call(r):l;Reflect.ownKeys(Z).forEach(J=>{as(J,Z[J])})}u&&ju(u,e,"c");function W(Z,J){ve(J)?J.forEach(ie=>Z(ie.bind(r))):J&&Z(J.bind(r))}if(W(Du,d),W(Ke,p),W($a,g),W(Ws,w),W(Ru,b),W($u,C),W(qu,h),W(Mu,k),W(Hu,M),W(fs,S),W(Rt,m),W(Ou,O),ve(P))if(P.length){const Z=e.exposed||(e.exposed={});P.forEach(J=>{Object.defineProperty(Z,J,{get:()=>r[J],set:ie=>r[J]=ie,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===Yt&&(e.render=_),x!=null&&(e.inheritAttrs=x),E&&(e.components=E),A&&(e.directives=A),O&&ka(e)}function Uv(e,t,r=Yt){ve(e)&&(e=La(e));for(const n in e){const s=e[n];let i;Ve(s)?"default"in s?i=kt(s.from||n,s.default,!0):i=kt(s.from||n):i=kt(s),Ge(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function ju(e,t,r){Zt(ve(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Uu(e,t,r,n){let s=n.includes(".")?pu(r,n):()=>r[n];if(Ze(e)){const i=t[e];Ae(i)&&ke(s,i)}else if(Ae(e))ke(s,e.bind(r));else if(Ve(e))if(ve(e))e.forEach(i=>Uu(i,t,r,n));else{const i=Ae(e.handler)?e.handler.bind(r):t[e.handler];Ae(i)&&ke(s,i,e)}}function Ba(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!r&&!n?l=t:(l={},s.length&&s.forEach(c=>Qi(l,c,o,!0)),Qi(l,t,o)),Ve(t)&&i.set(t,l),l}function Qi(e,t,r,n=!1){const{mixins:s,extends:i}=t;i&&Qi(e,i,r,!0),s&&s.forEach(o=>Qi(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const a=zv[o]||r&&r[o];e[o]=a?a(e[o],t[o]):t[o]}return e}var zv={data:zu,props:Ku,emits:Ku,methods:Zs,computed:Zs,beforeCreate:$t,created:$t,beforeMount:$t,mounted:$t,beforeUpdate:$t,updated:$t,beforeDestroy:$t,beforeUnmount:$t,destroyed:$t,unmounted:$t,activated:$t,deactivated:$t,errorCaptured:$t,serverPrefetch:$t,components:Zs,directives:Zs,watch:Wv,provide:zu,inject:Kv};function zu(e,t){return t?e?function(){return ze(Ae(e)?e.call(this,this):e,Ae(t)?t.call(this,this):t)}:t:e}function Kv(e,t){return Zs(La(e),La(t))}function La(e){if(ve(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function $t(e,t){return e?[...new Set([].concat(e,t))]:t}function Zs(e,t){return e?ze(Object.create(null),e,t):t}function Ku(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:ze(Object.create(null),Ys(e),Ys(t??{})):t}function Wv(e,t){if(!e)return t;if(!t)return e;const r=ze(Object.create(null),e);for(const n in t)r[n]=$t(e[n],t[n]);return r}function Wu(){return{app:null,config:{isNativeTag:Ac,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Gv=0;function Jv(e,t){return function(n,s=null){Ae(n)||(n=ze({},n)),s!=null&&!Ve(s)&&(s=null);const i=Wu(),o=new WeakSet,a=[];let l=!1;const c=i.app={_uid:Gv++,_component:n,_props:s,_container:null,_context:i,_instance:null,version:Td,get config(){return i.config},set config(u){},use(u,...d){return o.has(u)||(u&&Ae(u.install)?(o.add(u),u.install(c,...d)):Ae(u)&&(o.add(u),u(c,...d))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,d){return d?(i.components[u]=d,c):i.components[u]},directive(u,d){return d?(i.directives[u]=d,c):i.directives[u]},mount(u,d,p){if(!l){const g=c._ceVNode||H(n,s);return g.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(g,u):e(g,u,p),l=!0,c._container=u,u.__vue_app__=c,ti(g.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Zt(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return i.provides[u]=d,c},runWithContext(u){const d=On;On=c;try{return u()}finally{On=d}}};return c}}var On=null;function Yv(e,t,r=qe){const n=it(),s=lt(t),i=Dt(t),o=Gu(e,s),a=Ns((l,c)=>{let u,d=qe,p;return fu(()=>{const g=e[s];At(u,g)&&(u=g,c())}),{get(){return l(),r.get?r.get(u):u},set(g){const w=r.set?r.set(g):g;if(!At(w,u)&&!(d!==qe&&At(g,d)))return;const b=n.vnode.props;b&&(t in b||s in b||i in b)&&(`onUpdate:${t}`in b||`onUpdate:${s}`in b||`onUpdate:${i}`in b)||(u=g,c()),n.emit(`update:${t}`,w),At(g,w)&&At(g,d)&&!At(w,p)&&c(),d=g,p=w}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||qe:a,done:!1}:{done:!0}}}},a}var Gu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${lt(t)}Modifiers`]||e[`${Dt(t)}Modifiers`];function Zv(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||qe;let s=r;const i=t.startsWith("update:"),o=i&&Gu(n,t.slice(7));o&&(o.trim&&(s=r.map(u=>Ze(u)?u.trim():u)),o.number&&(s=r.map(Ti)));let a,l=n[a=Qn(t)]||n[a=Qn(lt(t))];!l&&i&&(l=n[a=Qn(Dt(t))]),l&&Zt(l,e,6,s);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Zt(c,e,6,s)}}var Xv=new WeakMap;function Ju(e,t,r=!1){const n=r?Xv:t.emitsCache,s=n.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!Ae(e)){const l=c=>{const u=Ju(c,t,!0);u&&(a=!0,ze(o,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Ve(e)&&n.set(e,null),null):(ve(i)?i.forEach(l=>o[l]=null):ze(o,i),Ve(e)&&n.set(e,o),o)}function eo(e,t){return!e||!ks(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ue(e,t[0].toLowerCase()+t.slice(1))||Ue(e,Dt(t))||Ue(e,t))}function to(e){const{type:t,vnode:r,proxy:n,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:d,data:p,setupState:g,ctx:w,inheritAttrs:b}=e,C=Fs(e);let v,S;try{if(r.shapeFlag&4){const m=s||n,_=m;v=Ht(c.call(_,m,u,d,g,p,w)),S=a}else{const m=t;v=Ht(m.length>1?m(d,{attrs:a,slots:o,emit:l}):m(d,null)),S=t.props?a:em(a)}}catch(m){Qs.length=0,Dn(m,e,1),v=H(st)}let y=v;if(S&&b!==!1){const m=Object.keys(S),{shapeFlag:_}=y;m.length&&_&7&&(i&&m.some(ra)&&(S=tm(S,i)),y=pr(y,S,!1,!0))}return r.dirs&&(y=pr(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&Lr(y,r.transition),v=y,Fs(C),v}function Qv(e,t=!0){let r;for(let n=0;n<e.length;n++){const s=e[n];if(jr(s)){if(s.type!==st||s.children==="v-if"){if(r)return;r=s}}else return}return r}var em=e=>{let t;for(const r in e)(r==="class"||r==="style"||ks(r))&&((t||(t={}))[r]=e[r]);return t},tm=(e,t)=>{const r={};for(const n in e)(!ra(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function rm(e,t,r){const{props:n,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Yu(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(Zu(o,n,p)&&!eo(c,p))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Yu(n,o,c):!0:!!o;return!1}function Yu(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const i=n[s];if(Zu(t,e,i)&&!eo(r,i))return!0}return!1}function Zu(e,t,r){const n=e[r],s=t[r];return r==="style"&&Ve(n)&&Ve(s)?!$r(n,s):n!==s}function ro({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}var Xu={},Qu=()=>Object.create(Xu),ed=e=>Object.getPrototypeOf(e)===Xu;function nm(e,t,r,n=!1){const s={},i=Qu();e.propsDefaults=Object.create(null),td(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);r?e.props=n?s:Qc(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function sm(e,t,r,n){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=Ne(s),[l]=e.propsOptions;let c=!1;if((n||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(eo(e.emitsOptions,p))continue;const g=t[p];if(l)if(Ue(i,p))g!==i[p]&&(i[p]=g,c=!0);else{const w=lt(p);s[w]=Fa(l,a,w,g,e,!1)}else g!==i[p]&&(i[p]=g,c=!0)}}}else{td(e,t,s,i)&&(c=!0);let u;for(const d in a)(!t||!Ue(t,d)&&((u=Dt(d))===d||!Ue(t,u)))&&(l?r&&(r[d]!==void 0||r[u]!==void 0)&&(s[d]=Fa(l,a,d,void 0,e,!0)):delete s[d]);if(i!==a)for(const d in i)(!t||!Ue(t,d))&&(delete i[d],c=!0)}c&&Or(e.attrs,"set","")}function td(e,t,r,n){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if($n(l))continue;const c=t[l];let u;s&&Ue(s,u=lt(l))?!i||!i.includes(u)?r[u]=c:(a||(a={}))[u]=c:eo(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(i){const l=Ne(r),c=a||qe;for(let u=0;u<i.length;u++){const d=i[u];r[d]=Fa(s,l,d,c[d],e,!Ue(c,d))}}return o}function Fa(e,t,r,n,s,i){const o=e[r];if(o!=null){const a=Ue(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Ae(l)){const{propsDefaults:c}=s;if(r in c)n=c[r];else{const u=Nn(s);n=c[r]=l.call(null,t),u()}}else n=l;s.ce&&s.ce._setProp(r,n)}o[0]&&(i&&!a?n=!1:o[1]&&(n===""||n===Dt(r))&&(n=!0))}return n}var im=new WeakMap;function rd(e,t,r=!1){const n=r?im:t.propsCache,s=n.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!Ae(e)){const u=d=>{l=!0;const[p,g]=rd(d,t,!0);ze(o,p),g&&a.push(...g)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Ve(e)&&n.set(e,Yn),Yn;if(ve(i))for(let u=0;u<i.length;u++){const d=lt(i[u]);nd(d)&&(o[d]=qe)}else if(i)for(const u in i){const d=lt(u);if(nd(d)){const p=i[u],g=o[d]=ve(p)||Ae(p)?{type:p}:ze({},p),w=g.type;let b=!1,C=!0;if(ve(w))for(let v=0;v<w.length;++v){const S=w[v],y=Ae(S)&&S.name;if(y==="Boolean"){b=!0;break}else y==="String"&&(C=!1)}else b=Ae(w)&&w.name==="Boolean";g[0]=b,g[1]=C,(b||Ue(g,"default"))&&a.push(d)}}const c=[o,a];return Ve(e)&&n.set(e,c),c}function nd(e){return e[0]!=="$"&&!$n(e)}var Va=e=>e==="_"||e==="_ctx"||e==="$stable",ja=e=>ve(e)?e.map(Ht):[Ht(e)],om=(e,t,r)=>{if(t._n)return t;const n=R((...s)=>ja(t(...s)),r);return n._c=!1,n},sd=(e,t,r)=>{const n=e._ctx;for(const s in e){if(Va(s))continue;const i=e[s];if(Ae(i))t[s]=om(s,i,n);else if(i!=null){const o=ja(i);t[s]=()=>o}}},id=(e,t)=>{const r=ja(t);e.slots.default=()=>r},od=(e,t,r)=>{for(const n in t)(r||!Va(n))&&(e[n]=t[n])},am=(e,t,r)=>{const n=e.slots=Qu();if(e.vnode.shapeFlag&32){const s=t._;s?(od(n,t,r),r&&Rc(n,"_",s,!0)):sd(t,n)}else t&&id(e,t)},lm=(e,t,r)=>{const{vnode:n,slots:s}=e;let i=!0,o=qe;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:od(s,t,r):(i=!t.$stable,sd(t,s)),o=t}else t&&(id(e,t),o={default:1});if(i)for(const a in s)!Va(a)&&o[a]==null&&delete s[a]};function tx(){}var ot=gd;function ad(e){return cd(e)}function ld(e){return cd(e,pv)}function cd(e,t){const r=Ai();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:g=Yt,insertStaticContent:w}=e,b=(T,I,B,D=null,q=null,N=null,ce=void 0,le=null,ue=!!I.dynamicChildren)=>{if(T===I)return;T&&!fr(T,I)&&(D=z(T),de(T,q,N,!0),T=null),I.patchFlag===-2&&(ue=!1,I.dynamicChildren=null);const{type:re,ref:Ee,shapeFlag:ge}=I;switch(re){case an:C(T,I,B,D);break;case st:v(T,I,B,D);break;case Mn:T==null&&S(I,B,D,ce);break;case Be:E(T,I,B,D,q,N,ce,le,ue);break;default:ge&1?_(T,I,B,D,q,N,ce,le,ue):ge&6?A(T,I,B,D,q,N,ce,le,ue):(ge&64||ge&128)&&re.process(T,I,B,D,q,N,ce,le,ue,oe)}Ee!=null&&q?cs(Ee,T&&T.ref,N,I||T,!I):Ee==null&&T&&T.ref!=null&&cs(T.ref,null,N,T,!0)},C=(T,I,B,D)=>{if(T==null)n(I.el=a(I.children),B,D);else{const q=I.el=T.el;I.children!==T.children&&c(q,I.children)}},v=(T,I,B,D)=>{T==null?n(I.el=l(I.children||""),B,D):I.el=T.el},S=(T,I,B,D)=>{[T.el,T.anchor]=w(T.children,I,B,D,T.el,T.anchor)},y=({el:T,anchor:I},B,D)=>{let q;for(;T&&T!==I;)q=p(T),n(T,B,D),T=q;n(I,B,D)},m=({el:T,anchor:I})=>{let B;for(;T&&T!==I;)B=p(T),s(T),T=B;s(I)},_=(T,I,B,D,q,N,ce,le,ue)=>{if(I.type==="svg"?ce="svg":I.type==="math"&&(ce="mathml"),T==null)k(I,B,D,q,N,ce,le,ue);else{const re=T.el&&T.el._isVueCE?T.el:null;try{re&&re._beginPatch(),O(T,I,q,N,ce,le,ue)}finally{re&&re._endPatch()}}},k=(T,I,B,D,q,N,ce,le)=>{let ue,re;const{props:Ee,shapeFlag:ge,transition:be,dirs:$e}=T;if(ue=T.el=o(T.type,N,Ee&&Ee.is,Ee),ge&8?u(ue,T.children):ge&16&&h(T.children,ue,null,D,q,Ua(T,N),ce,le),$e&&Sr(T,null,D,"created"),M(ue,T,T.scopeId,ce,D),Ee){for(const nt in Ee)nt!=="value"&&!$n(nt)&&i(ue,nt,null,Ee[nt],N,D);"value"in Ee&&i(ue,"value",null,Ee.value,N),(re=Ee.onVnodeBeforeMount)&&Mt(re,D,T)}$e&&Sr(T,null,D,"beforeMount");const Fe=ud(q,be);Fe&&be.beforeEnter(ue),n(ue,I,B),((re=Ee&&Ee.onVnodeMounted)||Fe||$e)&&ot(()=>{re&&Mt(re,D,T),Fe&&be.enter(ue),$e&&Sr(T,null,D,"mounted")},q)},M=(T,I,B,D,q)=>{if(B&&g(T,B),D)for(let N=0;N<D.length;N++)g(T,D[N]);if(q){let N=q.subTree;if(I===N||so(N.type)&&(N.ssContent===I||N.ssFallback===I)){const ce=q.vnode;M(T,ce,ce.scopeId,ce.slotScopeIds,q.parent)}}},h=(T,I,B,D,q,N,ce,le,ue=0)=>{for(let re=ue;re<T.length;re++)b(null,T[re]=le?Ur(T[re]):Ht(T[re]),I,B,D,q,N,ce,le)},O=(T,I,B,D,q,N,ce)=>{const le=I.el=T.el;let{patchFlag:ue,dynamicChildren:re,dirs:Ee}=I;ue|=T.patchFlag&16;const ge=T.props||qe,be=I.props||qe;let $e;if(B&&Hn(B,!1),($e=be.onVnodeBeforeUpdate)&&Mt($e,B,I,T),Ee&&Sr(I,T,B,"beforeUpdate"),B&&Hn(B,!0),(ge.innerHTML&&be.innerHTML==null||ge.textContent&&be.textContent==null)&&u(le,""),re?P(T.dynamicChildren,re,le,B,D,Ua(I,q),N):ce||J(T,I,le,null,B,D,Ua(I,q),N,!1),ue>0){if(ue&16)x(le,ge,be,B,q);else if(ue&2&&ge.class!==be.class&&i(le,"class",null,be.class,q),ue&4&&i(le,"style",ge.style,be.style,q),ue&8){const Fe=I.dynamicProps;for(let nt=0;nt<Fe.length;nt++){const We=Fe[nt],Lt=ge[We],Et=be[We];(Et!==Lt||We==="value")&&i(le,We,Lt,Et,q,B)}}ue&1&&T.children!==I.children&&u(le,I.children)}else!ce&&re==null&&x(le,ge,be,B,q);(($e=be.onVnodeUpdated)||Ee)&&ot(()=>{$e&&Mt($e,B,I,T),Ee&&Sr(I,T,B,"updated")},D)},P=(T,I,B,D,q,N,ce)=>{for(let le=0;le<I.length;le++){const ue=T[le],re=I[le];b(ue,re,ue.el&&(ue.type===Be||!fr(ue,re)||ue.shapeFlag&198)?d(ue.el):B,null,D,q,N,ce,!0)}},x=(T,I,B,D,q)=>{if(I!==B){if(I!==qe)for(const N in I)!$n(N)&&!(N in B)&&i(T,N,I[N],null,q,D);for(const N in B){if($n(N))continue;const ce=B[N],le=I[N];ce!==le&&N!=="value"&&i(T,N,le,ce,q,D)}"value"in B&&i(T,"value",I.value,B.value,q)}},E=(T,I,B,D,q,N,ce,le,ue)=>{const re=I.el=T?T.el:a(""),Ee=I.anchor=T?T.anchor:a("");let{patchFlag:ge,dynamicChildren:be,slotScopeIds:$e}=I;$e&&(le=le?le.concat($e):$e),T==null?(n(re,B,D),n(Ee,B,D),h(I.children||[],B,Ee,q,N,ce,le,ue)):ge>0&&ge&64&&be&&T.dynamicChildren&&T.dynamicChildren.length===be.length?(P(T.dynamicChildren,be,B,q,N,ce,le),(I.key!=null||q&&I===q.subTree)&&za(T,I,!0)):J(T,I,B,Ee,q,N,ce,le,ue)},A=(T,I,B,D,q,N,ce,le,ue)=>{I.slotScopeIds=le,T==null?I.shapeFlag&512?q.ctx.activate(I,B,D,ce,ue):Y(I,B,D,q,N,ce,ue):Q(T,I,ue)},Y=(T,I,B,D,q,N,ce)=>{const le=T.component=yd(T,D,q);if(zs(T)&&(le.ctx.renderer=oe),_d(le,!1,ce),le.asyncDep){if(q&&q.registerDep(le,W,ce),!T.el){const ue=le.subTree=H(st);v(null,ue,I,B),T.placeholder=ue.el}}else W(le,T,I,B,q,N,ce)},Q=(T,I,B)=>{const D=I.component=T.component;if(rm(T,I,B))if(D.asyncDep&&!D.asyncResolved){Z(D,I,B);return}else D.next=I,D.update();else I.el=T.el,D.vnode=I},W=(T,I,B,D,q,N,ce)=>{const le=()=>{if(T.isMounted){let{next:ge,bu:be,u:$e,parent:Fe,vnode:nt}=T;{const Gt=dd(T);if(Gt){ge&&(ge.el=nt.el,Z(T,ge,ce)),Gt.asyncDep.then(()=>{ot(()=>{T.isUnmounted||re()},q)});return}}let We=ge,Lt;Hn(T,!1),ge?(ge.el=nt.el,Z(T,ge,ce)):ge=nt,be&&es(be),(Lt=ge.props&&ge.props.onVnodeBeforeUpdate)&&Mt(Lt,Fe,ge,nt),Hn(T,!0);const Et=to(T),yr=T.subTree;T.subTree=Et,b(yr,Et,d(yr.el),z(yr),T,q,N),ge.el=Et.el,We===null&&ro(T,Et.el),$e&&ot($e,q),(Lt=ge.props&&ge.props.onVnodeUpdated)&&ot(()=>Mt(Lt,Fe,ge,nt),q)}else{let ge;const{el:be,props:$e}=I,{bm:Fe,m:nt,parent:We,root:Lt,type:Et}=T,yr=Fr(I);if(Hn(T,!1),Fe&&es(Fe),!yr&&(ge=$e&&$e.onVnodeBeforeMount)&&Mt(ge,We,I),Hn(T,!0),be&&Te){const Gt=()=>{T.subTree=to(T),Te(be,T.subTree,T,q,null)};yr&&Et.__asyncHydrate?Et.__asyncHydrate(be,T,Gt):Gt()}else{Lt.ce&&Lt.ce._hasShadowRoot()&&Lt.ce._injectChildStyle(Et);const Gt=T.subTree=to(T);b(null,Gt,B,D,T,q,N),I.el=Gt.el}if(nt&&ot(nt,q),!yr&&(ge=$e&&$e.onVnodeMounted)){const Gt=I;ot(()=>Mt(ge,We,Gt),q)}(I.shapeFlag&256||We&&Fr(We.vnode)&&We.vnode.shapeFlag&256)&&T.a&&ot(T.a,q),T.isMounted=!0,I=B=D=null}};T.scope.on();const ue=T.effect=new $s(le);T.scope.off();const re=T.update=ue.run.bind(ue),Ee=T.job=ue.runIfDirty.bind(ue);Ee.i=T,Ee.id=T.uid,ue.scheduler=()=>_a(Ee),Hn(T,!0),re()},Z=(T,I,B)=>{I.component=T;const D=T.vnode.props;T.vnode=I,T.next=null,sm(T,I.props,D,B),lm(T,I.children,B),Pr(),au(T),Dr()},J=(T,I,B,D,q,N,ce,le,ue=!1)=>{const re=T&&T.children,Ee=T?T.shapeFlag:0,ge=I.children,{patchFlag:be,shapeFlag:$e}=I;if(be>0){if(be&128){K(re,ge,B,D,q,N,ce,le,ue);return}else if(be&256){ie(re,ge,B,D,q,N,ce,le,ue);return}}$e&8?(Ee&16&&Se(re,q,N),ge!==re&&u(B,ge)):Ee&16?$e&16?K(re,ge,B,D,q,N,ce,le,ue):Se(re,q,N,!0):(Ee&8&&u(B,""),$e&16&&h(ge,B,D,q,N,ce,le,ue))},ie=(T,I,B,D,q,N,ce,le,ue)=>{T=T||Yn,I=I||Yn;const re=T.length,Ee=I.length,ge=Math.min(re,Ee);let be;for(be=0;be<ge;be++){const $e=I[be]=ue?Ur(I[be]):Ht(I[be]);b(T[be],$e,B,null,q,N,ce,le,ue)}re>Ee?Se(T,q,N,!0,!1,ge):h(I,B,D,q,N,ce,le,ue,ge)},K=(T,I,B,D,q,N,ce,le,ue)=>{let re=0;const Ee=I.length;let ge=T.length-1,be=Ee-1;for(;re<=ge&&re<=be;){const $e=T[re],Fe=I[re]=ue?Ur(I[re]):Ht(I[re]);if(fr($e,Fe))b($e,Fe,B,null,q,N,ce,le,ue);else break;re++}for(;re<=ge&&re<=be;){const $e=T[ge],Fe=I[be]=ue?Ur(I[be]):Ht(I[be]);if(fr($e,Fe))b($e,Fe,B,null,q,N,ce,le,ue);else break;ge--,be--}if(re>ge){if(re<=be){const $e=be+1,Fe=$e<Ee?I[$e].el:D;for(;re<=be;)b(null,I[re]=ue?Ur(I[re]):Ht(I[re]),B,Fe,q,N,ce,le,ue),re++}}else if(re>be)for(;re<=ge;)de(T[re],q,N,!0),re++;else{const $e=re,Fe=re,nt=new Map;for(re=Fe;re<=be;re++){const Jt=I[re]=ue?Ur(I[re]):Ht(I[re]);Jt.key!=null&&nt.set(Jt.key,re)}let We,Lt=0;const Et=be-Fe+1;let yr=!1,Gt=0;const _i=new Array(Et);for(re=0;re<Et;re++)_i[re]=0;for(re=$e;re<=ge;re++){const Jt=T[re];if(Lt>=Et){de(Jt,q,N,!0);continue}let Rr;if(Jt.key!=null)Rr=nt.get(Jt.key);else for(We=Fe;We<=be;We++)if(_i[We-Fe]===0&&fr(Jt,I[We])){Rr=We;break}Rr===void 0?de(Jt,q,N,!0):(_i[Rr-Fe]=re+1,Rr>=Gt?Gt=Rr:yr=!0,b(Jt,I[Rr],B,null,q,N,ce,le,ue),Lt++)}const Jh=yr?cm(_i):Yn;for(We=Jh.length-1,re=Et-1;re>=0;re--){const Jt=Fe+re,Rr=I[Jt],Yh=I[Jt+1],Zh=Jt+1<Ee?Yh.el||fd(Yh):D;_i[re]===0?b(null,Rr,B,Zh,q,N,ce,le,ue):yr&&(We<0||re!==Jh[We]?ne(Rr,B,Zh,2):We--)}}},ne=(T,I,B,D,q=null)=>{const{el:N,type:ce,transition:le,children:ue,shapeFlag:re}=T;if(re&6){ne(T.component.subTree,I,B,D);return}if(re&128){T.suspense.move(I,B,D);return}if(re&64){ce.move(T,I,B,oe);return}if(ce===Be){n(N,I,B);for(let Ee=0;Ee<ue.length;Ee++)ne(ue[Ee],I,B,D);n(T.anchor,I,B);return}if(ce===Mn){y(T,I,B);return}if(D!==2&&re&1&&le)if(D===0)le.beforeEnter(N),n(N,I,B),ot(()=>le.enter(N),q);else{const{leave:Ee,delayLeave:ge,afterLeave:be}=le,$e=()=>{T.ctx.isUnmounted?s(N):n(N,I,B)},Fe=()=>{N._isLeaving&&N[Cr](!0),Ee(N,()=>{$e(),be&&be()})};ge?ge(N,$e,Fe):Fe()}else n(N,I,B)},de=(T,I,B,D=!1,q=!1)=>{const{type:N,props:ce,ref:le,children:ue,dynamicChildren:re,shapeFlag:Ee,patchFlag:ge,dirs:be,cacheIndex:$e}=T;if(ge===-2&&(q=!1),le!=null&&(Pr(),cs(le,null,B,T,!0),Dr()),$e!=null&&(I.renderCache[$e]=void 0),Ee&256){I.ctx.deactivate(T);return}const Fe=Ee&1&&be,nt=!Fr(T);let We;if(nt&&(We=ce&&ce.onVnodeBeforeUnmount)&&Mt(We,I,T),Ee&6)_e(T.component,B,D);else{if(Ee&128){T.suspense.unmount(B,D);return}Fe&&Sr(T,null,I,"beforeUnmount"),Ee&64?T.type.remove(T,I,B,oe,D):re&&!re.hasOnce&&(N!==Be||ge>0&&ge&64)?Se(re,I,B,!1,!0):(N===Be&&ge&384||!q&&Ee&16)&&Se(ue,I,B),D&&xe(T)}(nt&&(We=ce&&ce.onVnodeUnmounted)||Fe)&&ot(()=>{We&&Mt(We,I,T),Fe&&Sr(T,null,I,"unmounted")},B)},xe=T=>{const{type:I,el:B,anchor:D,transition:q}=T;if(I===Be){Oe(B,D);return}if(I===Mn){m(T);return}const N=()=>{s(B),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(T.shapeFlag&1&&q&&!q.persisted){const{leave:ce,delayLeave:le}=q,ue=()=>ce(B,N);le?le(T.el,N,ue):ue()}else N()},Oe=(T,I)=>{let B;for(;T!==I;)B=p(T),s(T),T=B;s(I)},_e=(T,I,B)=>{const{bum:D,scope:q,job:N,subTree:ce,um:le,m:ue,a:re}=T;no(ue),no(re),D&&es(D),q.stop(),N&&(N.flags|=8,de(ce,T,I,B)),le&&ot(le,I),ot(()=>{T.isUnmounted=!0},I)},Se=(T,I,B,D=!1,q=!1,N=0)=>{for(let ce=N;ce<T.length;ce++)de(T[ce],I,B,D,q)},z=T=>{if(T.shapeFlag&6)return z(T.component.subTree);if(T.shapeFlag&128)return T.suspense.next();const I=p(T.anchor||T.el),B=I&&I[hu];return B?p(B):I};let se=!1;const G=(T,I,B)=>{let D;T==null?I._vnode&&(de(I._vnode,null,null,!0),D=I._vnode.component):b(I._vnode||null,T,I,null,null,null,B),I._vnode=T,se||(se=!0,au(D),Li(),se=!1)},oe={p:b,um:de,m:ne,r:xe,mt:Y,mc:h,pc:J,pbc:P,n:z,o:e};let ae,Te;return t&&([ae,Te]=t(oe)),{render:G,hydrate:ae,createApp:Jv(G,ae)}}function Ua({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Hn({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ud(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function za(e,t,r=!1){const n=e.children,s=t.children;if(ve(n)&&ve(s))for(let i=0;i<n.length;i++){const o=n[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ur(s[i]),a.el=o.el),!r&&a.patchFlag!==-2&&za(o,a)),a.type===an&&(a.patchFlag===-1&&(a=s[i]=Ur(a)),a.el=o.el),a.type===st&&!a.el&&(a.el=o.el)}}function cm(e){const t=e.slice(),r=[0];let n,s,i,o,a;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(s=r[r.length-1],e[s]<c){t[n]=s,r.push(n);continue}for(i=0,o=r.length-1;i<o;)a=i+o>>1,e[r[a]]<c?i=a+1:o=a;c<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}function dd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:dd(t)}function no(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function fd(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?fd(t.subTree):null}var so=e=>e.__isSuspense,Ka=0,um={name:"Suspense",__isSuspense:!0,process(e,t,r,n,s,i,o,a,l,c){if(e==null)dm(t,r,n,s,i,o,a,l,c);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}fm(e,t,r,n,s,o,a,l,c)}},hydrate:pm,normalize:hm};function Xs(e,t){const r=e.props&&e.props[t];Ae(r)&&r()}function dm(e,t,r,n,s,i,o,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),p=e.suspense=pd(e,s,n,t,d,r,i,o,a,l);c(null,p.pendingBranch=e.ssContent,d,null,n,p,i,o),p.deps>0?(Xs(e,"onPending"),Xs(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,i,o),ps(p,e.ssFallback)):p.resolve(!1,!0)}function fm(e,t,r,n,s,i,o,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,g=t.ssFallback,{activeBranch:w,pendingBranch:b,isInFallback:C,isHydrating:v}=d;if(b)d.pendingBranch=p,fr(b,p)?(l(b,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():C&&(v||(l(w,g,r,n,s,null,i,o,a),ps(d,g)))):(d.pendingId=Ka++,v?(d.isHydrating=!1,d.activeBranch=b):c(b,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),C?(l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():(l(w,g,r,n,s,null,i,o,a),ps(d,g))):w&&fr(w,p)?(l(w,p,r,n,s,d,i,o,a),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0&&d.resolve()));else if(w&&fr(w,p))l(w,p,r,n,s,d,i,o,a),ps(d,p);else if(Xs(t,"onPending"),d.pendingBranch=p,p.shapeFlag&512?d.pendingId=p.component.suspenseId:d.pendingId=Ka++,l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0)d.resolve();else{const{timeout:S,pendingId:y}=d;S>0?setTimeout(()=>{d.pendingId===y&&d.fallback(g)},S):S===0&&d.fallback(g)}}function pd(e,t,r,n,s,i,o,a,l,c,u=!1){const{p:d,m:p,um:g,n:w,o:{parentNode:b,remove:C}}=c;let v;const S=gm(e);S&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const y=e.props?Ei(e.props.timeout):void 0,m=i,_={vnode:e,parent:t,parentComponent:r,namespace:o,container:n,hiddenContainer:s,deps:0,pendingId:Ka++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(k=!1,M=!1){const{vnode:h,activeBranch:O,pendingBranch:P,pendingId:x,effects:E,parentComponent:A,container:Y,isInFallback:Q}=_;let W=!1;_.isHydrating?_.isHydrating=!1:k||(W=O&&P.transition&&P.transition.mode==="out-in",W&&(O.transition.afterLeave=()=>{x===_.pendingId&&(p(P,Y,i===m?w(O):i,0),Bs(E),Q&&h.ssFallback&&(h.ssFallback.el=null))}),O&&(b(O.el)===Y&&(i=w(O)),g(O,A,_,!0),!W&&Q&&h.ssFallback&&ot(()=>h.ssFallback.el=null,_)),W||p(P,Y,i,0)),ps(_,P),_.pendingBranch=null,_.isInFallback=!1;let Z=_.parent,J=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...E),J=!0;break}Z=Z.parent}!J&&!W&&Bs(E),_.effects=[],S&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!M&&t.resolve()),Xs(h,"onResolve")},fallback(k){if(!_.pendingBranch)return;const{vnode:M,activeBranch:h,parentComponent:O,container:P,namespace:x}=_;Xs(M,"onFallback");const E=w(h),A=()=>{_.isInFallback&&(d(null,k,P,E,O,null,x,a,l),ps(_,k))},Y=k.transition&&k.transition.mode==="out-in";Y&&(h.transition.afterLeave=A),_.isInFallback=!0,g(h,O,null,!0),Y||A()},move(k,M,h){_.activeBranch&&p(_.activeBranch,k,M,h),_.container=k},next(){return _.activeBranch&&w(_.activeBranch)},registerDep(k,M,h){const O=!!_.pendingBranch;O&&_.deps++;const P=k.vnode.el;k.asyncDep.catch(x=>{Dn(x,k,0)}).then(x=>{if(k.isUnmounted||_.isUnmounted||_.pendingId!==k.suspenseId)return;k.asyncResolved=!0;const{vnode:E}=k;Ya(k,x,!1),P&&(E.el=P);const A=!P&&k.subTree.el;M(k,E,b(P||k.subTree.el),P?null:w(k.subTree),_,o,h),A&&(E.placeholder=null,C(A)),ro(k,E.el),O&&--_.deps===0&&_.resolve()})},unmount(k,M){_.isUnmounted=!0,_.activeBranch&&g(_.activeBranch,r,k,M),_.pendingBranch&&g(_.pendingBranch,r,k,M)}};return _}function pm(e,t,r,n,s,i,o,a,l){const c=t.suspense=pd(t,n,r,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),u=l(e,c.pendingBranch=t.ssContent,r,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function hm(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=hd(n?r.default:r),e.ssFallback=n?hd(r.fallback):H(st)}function hd(e){let t;if(Ae(e)){const r=qn&&e._c;r&&(e._d=!1,$()),e=e(),r&&(e._d=!0,t=Ct,vd())}return ve(e)&&(e=Qv(e)),e=Ht(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function gd(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):Bs(e)}function ps(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,n&&n.subTree===r&&(n.vnode.el=s,ro(n,s))}function gm(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var Be=Symbol.for("v-fgt"),an=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),Mn=Symbol.for("v-stc"),Qs=[],Ct=null;function $(e=!1){Qs.push(Ct=e?null:[])}function vd(){Qs.pop(),Ct=Qs[Qs.length-1]||null}var qn=1;function ei(e,t=!1){qn+=e,e<0&&Ct&&t&&(Ct.hasOnce=!0)}function md(e){return e.dynamicChildren=qn>0?Ct||Yn:null,vd(),qn>0&&Ct&&Ct.push(e),e}function me(e,t,r,n,s,i){return md(ee(e,t,r,n,s,i,!0))}function j(e,t,r,n,s){return md(H(e,t,r,n,s,!0))}function jr(e){return e?e.__v_isVNode===!0:!1}function fr(e,t){return e.type===t.type&&e.key===t.key}function vm(e){}var wd=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ze(e)||Ge(e)||Ae(e)?{i:vt,r:e,k:t,f:!!r}:e:null);function ee(e,t=null,r=null,n=0,s=null,i=e===Be?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wd(t),ref:t&&io(t),scopeId:Vi,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:vt};return a?(Ga(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=Ze(r)?8:16),qn>0&&!o&&Ct&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ct.push(l),l}var H=mm;function mm(e,t=null,r=null,n=0,s=null,i=!1){if((!e||e===Nu)&&(e=st),jr(e)){const a=pr(e,t,!0);return r&&Ga(a,r),qn>0&&!i&&Ct&&(a.shapeFlag&6?Ct[Ct.indexOf(e)]=a:Ct.push(a)),a.patchFlag=-2,a}if(xm(e)&&(e=e.__vccOpts),t){t=er(t);let{class:a,style:l}=t;a&&!Ze(a)&&(t.class=Ye(a)),Ve(l)&&(qs(l)&&!ve(l)&&(l=ze({},l)),t.style=dt(l))}const o=Ze(e)?1:so(e)?128:gu(e)?64:Ve(e)?4:Ae(e)?2:0;return ee(e,t,r,n,s,o,i,!0)}function er(e){return e?qs(e)||ed(e)?ze({},e):e:null}function pr(e,t,r=!1,n=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,c=t?pe(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&wd(c),ref:t&&t.ref?r&&i?ve(i)?i.concat(io(t)):[i,io(t)]:io(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Be?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pr(e.ssContent),ssFallback:e.ssFallback&&pr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Lr(u,l.clone(u)),u}function Me(e=" ",t=0){return H(an,null,e,t)}function Wa(e,t){const r=H(Mn,null,e);return r.staticCount=t,r}function Pe(e="",t=!1){return t?($(),j(st,null,e)):H(st,null,e)}function Ht(e){return e==null||typeof e=="boolean"?H(st):ve(e)?H(Be,null,e.slice()):jr(e)?Ur(e):H(an,null,String(e))}function Ur(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pr(e)}function Ga(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ve(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),Ga(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!ed(t)?t._ctx=vt:s===3&&vt&&(vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ae(t)?(t={default:t,_ctx:vt},r=32):(t=String(t),n&64?(r=16,t=[Me(t)]):r=8);e.children=t,e.shapeFlag|=r}function pe(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=Ye([t.class,n.class]));else if(s==="style")t.style=dt([t.style,n.style]);else if(ks(s)){const i=t[s],o=n[s];o&&i!==o&&!(ve(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=n[s])}return t}function Mt(e,t,r,n=null){Zt(e,t,7,[r,n])}var wm=Wu(),ym=0;function yd(e,t,r){const n=e.type,s=(t?t.appContext:e.appContext)||wm,i={uid:ym++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new oa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:rd(n,s),emitsOptions:Ju(n,s),emit:null,emitted:null,propsDefaults:qe,inheritAttrs:n.inheritAttrs,ctx:qe,data:qe,props:qe,attrs:qe,slots:qe,refs:qe,setupState:qe,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Zv.bind(null,i),e.ce&&e.ce(i),i}var mt=null,it=()=>mt||vt,oo,Ja;{const e=Ai(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};oo=t("__VUE_INSTANCE_SETTERS__",r=>mt=r),Ja=t("__VUE_SSR_SETTERS__",r=>hs=r)}var Nn=e=>{const t=mt;return oo(e),e.scope.on(),()=>{e.scope.off(),oo(t)}},ao=()=>{mt&&mt.scope.off(),oo(null)};function bd(e){return e.vnode.shapeFlag&4}var hs=!1;function _d(e,t=!1,r=!1){t&&Ja(t);const{props:n,children:s}=e.vnode,i=bd(e);nm(e,n,i,t),am(e,s,r||t);const o=i?bm(e,t):void 0;return t&&Ja(!1),o}function bm(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qa);const{setup:n}=r;if(n){Pr();const s=e.setupContext=n.length>1?Cd(e):null,i=Nn(e),o=ns(n,e,0,[e.props,s]),a=sa(o);if(Dr(),i(),(a||e.sp)&&!Fr(e)&&ka(e),a){if(o.then(ao,ao),t)return o.then(l=>{Ya(e,l,t)}).catch(l=>{Dn(l,e,0)});e.asyncDep=o}else Ya(e,o,t)}else Sd(e,t)}function Ya(e,t,r){Ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ve(t)&&(e.setupState=ya(t)),Sd(e,r)}var lo,Za;function _m(e){lo=e,Za=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Rv))}}var Sm=()=>!lo;function Sd(e,t,r){const n=e.type;if(!e.render){if(!t&&lo&&!n.render){const s=n.template||Ba(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,c=ze(ze({isCustomElement:i,delimiters:a},o),l);n.render=lo(s,c)}}e.render=n.render||Yt,Za&&Za(e)}{const s=Nn(e);Pr();try{jv(e)}finally{Dr(),s()}}}var Cm={get(e,t){return bt(e,"get",""),e[t]}};function Cd(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Cm),slots:e.slots,emit:e.emit,expose:t}}function ti(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ya(wa(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Js)return Js[r](e)},has(t,r){return r in t||r in Js}})):e.proxy}function Xa(e,t=!0){return Ae(e)?e.displayName||e.name:e.name||t&&e.__name}function xm(e){return Ae(e)&&"__vccOpts"in e}var V=(e,t)=>zg(e,t,hs);function tr(e,t,r){try{ei(-1);const n=arguments.length;return n===2?Ve(t)&&!ve(t)?jr(t)?H(e,null,[t]):H(e,t):H(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&jr(r)&&(r=[r]),H(e,t,r))}finally{ei(1)}}function Tm(){return;function e(t,r,n){const s=t[n];if(ve(s)&&s.includes(r)||Ve(s)&&r in s||t.extends&&e(t.extends,r,n)||t.mixins&&t.mixins.some(i=>e(i,r,n)))return!0}}function Em(e,t,r,n){const s=r[n];if(s&&xd(s,e))return s;const i=t();return i.memo=e.slice(),i.cacheIndex=n,r[n]=i}function xd(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(At(r[n],t[n]))return!1;return qn>0&&Ct&&Ct.push(e),!0}var Td="3.5.29",Am=Yt,Im=ev,km=os,Rm=cu,$m={createComponentInstance:yd,setupComponent:_d,renderComponentRoot:to,setCurrentRenderingInstance:Fs,isVNode:jr,normalizeVNode:Ht,getComponentPublicInstance:ti,ensureValidVNode:Oa,pushWarningContext:Yg,popWarningContext:Zg},rx=null,nx=null,sx=null;var Qa=void 0,Ed=typeof window<"u"&&window.trustedTypes;if(Ed)try{Qa=Ed.createPolicy("vue",{createHTML:e=>e})}catch{}var Ad=Qa?e=>Qa.createHTML(e):e=>e,Pm="http://www.w3.org/2000/svg",Dm="http://www.w3.org/1998/Math/MathML",zr=typeof document<"u"?document:null,Id=zr&&zr.createElement("template"),kd={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t==="svg"?zr.createElementNS(Pm,e):t==="mathml"?zr.createElementNS(Dm,e):r?zr.createElement(e,{is:r}):zr.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>zr.createTextNode(e),createComment:e=>zr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,i){const o=r?r.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===i||!(s=s.nextSibling)););else{Id.innerHTML=Ad(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=Id.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},ln="transition",ri="animation",gs=Symbol("_vtc"),Rd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$d=ze({},Aa,Rd),Om=e=>(e.displayName="Transition",e.props=$d,e),Hm=Om((e,{slots:t})=>tr(Su,Dd(e),t)),Bn=(e,t=[])=>{ve(e)?e.forEach(r=>r(...t)):e&&e(...t)},Pd=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Dd(e){const t={};for(const E in e)E in Rd||(t[E]=e[E]);if(e.css===!1)return t;const{name:r="v",type:n,duration:s,enterFromClass:i=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:g=`${r}-leave-to`}=e,w=Mm(s),b=w&&w[0],C=w&&w[1],{onBeforeEnter:v,onEnter:S,onEnterCancelled:y,onLeave:m,onLeaveCancelled:_,onBeforeAppear:k=v,onAppear:M=S,onAppearCancelled:h=y}=t,O=(E,A,Y,Q)=>{E._enterCancelled=Q,cn(E,A?u:a),cn(E,A?c:o),Y&&Y()},P=(E,A)=>{E._isLeaving=!1,cn(E,d),cn(E,g),cn(E,p),A&&A()},x=E=>(A,Y)=>{const Q=E?M:S,W=()=>O(A,E,Y);Bn(Q,[A,W]),Od(()=>{cn(A,E?l:i),xr(A,E?u:a),Pd(Q)||Hd(A,n,b,W)})};return ze(t,{onBeforeEnter(E){Bn(v,[E]),xr(E,i),xr(E,o)},onBeforeAppear(E){Bn(k,[E]),xr(E,l),xr(E,c)},onEnter:x(!1),onAppear:x(!0),onLeave(E,A){E._isLeaving=!0;const Y=()=>P(E,A);xr(E,d),E._enterCancelled?(xr(E,p),tl(E)):(tl(E),xr(E,p)),Od(()=>{E._isLeaving&&(cn(E,d),xr(E,g),Pd(m)||Hd(E,n,C,Y))}),Bn(m,[E,Y])},onEnterCancelled(E){O(E,!1,void 0,!0),Bn(y,[E])},onAppearCancelled(E){O(E,!0,void 0,!0),Bn(h,[E])},onLeaveCancelled(E){P(E),Bn(_,[E])}})}function Mm(e){if(e==null)return null;if(Ve(e))return[el(e.enter),el(e.leave)];{const t=el(e);return[t,t]}}function el(e){return Ei(e)}function xr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[gs]||(e[gs]=new Set)).add(t)}function cn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[gs];r&&(r.delete(t),r.size||(e[gs]=void 0))}function Od(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var qm=0;function Hd(e,t,r,n){const s=e._endId=++qm,i=()=>{s===e._endId&&n()};if(r!=null)return setTimeout(i,r);const{type:o,timeout:a,propCount:l}=Md(e,t);if(!o)return n();const c=o+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=g=>{g.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,p)}function Md(e,t){const r=window.getComputedStyle(e),n=w=>(r[w]||"").split(", "),s=n(`${ln}Delay`),i=n(`${ln}Duration`),o=qd(s,i),a=n(`${ri}Delay`),l=n(`${ri}Duration`),c=qd(a,l);let u=null,d=0,p=0;t===ln?o>0&&(u=ln,d=o,p=i.length):t===ri?c>0&&(u=ri,d=c,p=l.length):(d=Math.max(o,c),u=d>0?o>c?ln:ri:null,p=u?u===ln?i.length:l.length:0);const g=u===ln&&/\b(?:transform|all)(?:,|$)/.test(n(`${ln}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:g}}function qd(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>Nd(r)+Nd(e[n])))}function Nd(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function tl(e){return(e?e.ownerDocument:document).body.offsetHeight}function Nm(e,t,r){const n=e[gs];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}var co=Symbol("_vod"),Bd=Symbol("_vsh"),uo={name:"show",beforeMount(e,{value:t},{transition:r}){e[co]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):ni(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),ni(e,!0),n.enter(e)):n.leave(e,()=>{ni(e,!1)}):ni(e,t))},beforeUnmount(e,{value:t}){ni(e,t)}};function ni(e,t){e.style.display=t?e[co]:"none",e[Bd]=!t}function Bm(){uo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}var Ld=Symbol("");function Lm(e){const t=it();if(!t)return;const r=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>fo(i,s))},n=()=>{const s=e(t.proxy);t.ce?fo(t.ce,s):rl(t.subTree,s),r(s)};$a(()=>{Bs(n)}),Ke(()=>{ke(n,Yt,{flush:"post"});const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),Rt(()=>s.disconnect())})}function rl(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{rl(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fo(e.el,t);else if(e.type===Be)e.children.forEach(r=>rl(r,t));else if(e.type===Mn){let{el:r,anchor:n}=e;for(;r&&(fo(r,t),r!==n);)r=r.nextSibling}}function fo(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const s in t){const i=mg(t[s]);r.setProperty(`--${s}`,i),n+=`--${s}: ${i};`}r[Ld]=n}}var Fm=/(?:^|;)\s*display\s*:/;function Vm(e,t,r){const n=e.style,s=Ze(r);let i=!1;if(r&&!s){if(t)if(Ze(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();r[a]==null&&po(n,a,"")}else for(const o in t)r[o]==null&&po(n,o,"");for(const o in r)o==="display"&&(i=!0),po(n,o,r[o])}else if(s){if(t!==r){const o=n[Ld];o&&(r+=";"+o),n.cssText=r,i=Fm.test(r)}}else t&&e.removeAttribute("style");co in e&&(e[co]=i?n.display:"",e[Bd]&&(n.display="none"))}var Fd=/\s*!important$/;function po(e,t,r){if(ve(r))r.forEach(n=>po(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=jm(e,t);Fd.test(r)?e.setProperty(Dt(n),r.replace(Fd,""),"important"):e[n]=r}}var Vd=["Webkit","Moz","ms"],nl={};function jm(e,t){const r=nl[t];if(r)return r;let n=lt(t);if(n!=="filter"&&n in e)return nl[t]=n;n=Rs(n);for(let s=0;s<Vd.length;s++){const i=Vd[s]+n;if(i in e)return nl[t]=i}return t}var jd="http://www.w3.org/1999/xlink";function Ud(e,t,r,n,s,i=gg(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(jd,t.slice(6,t.length)):e.setAttributeNS(jd,t,r):r==null||i&&!Dc(r)?e.removeAttribute(t):e.setAttribute(t,i?"":lr(r)?String(r):r)}function zd(e,t,r,n,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Ad(r):r);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(a!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=Dc(r):r==null&&a==="string"?(r="",o=!0):a==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(s||t)}function Kr(e,t,r,n){e.addEventListener(t,r,n)}function Um(e,t,r,n){e.removeEventListener(t,r,n)}var Kd=Symbol("_vei");function zm(e,t,r,n,s=null){const i=e[Kd]||(e[Kd]={}),o=i[t];if(n&&o)o.value=n;else{const[a,l]=Km(t);n?Kr(e,a,i[t]=Jm(n,s),l):o&&(Um(e,a,o,l),i[t]=void 0)}}var Wd=/(?:Once|Passive|Capture)$/;function Km(e){let t;if(Wd.test(e)){t={};let r;for(;r=e.match(Wd);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Dt(e.slice(2)),t]}var sl=0,Wm=Promise.resolve(),Gm=()=>sl||(Wm.then(()=>sl=0),sl=Date.now());function Jm(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Zt(Ym(n,r.value),t,5,[n])};return r.value=e,r.attached=Gm(),r}function Ym(e,t){if(ve(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}var Gd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jd=(e,t,r,n,s,i)=>{const o=s==="svg";t==="class"?Nm(e,n,o):t==="style"?Vm(e,r,n):ks(t)?ra(t)||zm(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zm(e,t,n,o))?(zd(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ud(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ze(n))?zd(e,lt(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ud(e,t,n,o))};function Zm(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Gd(t)&&Ae(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Gd(t)&&Ze(r)?!1:t in e}var Yd={};function il(e,t,r){let n=X(e,t);Si(n)&&(n=ze({},n,t));class s extends Zd{constructor(o){super(n,o,r)}}return s.def=n,s}var Xm=((e,t)=>il(e,t,mf)),Qm=typeof HTMLElement<"u"?HTMLElement:class{},Zd=class Xh extends Qm{constructor(t,r={},n=cl){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==cl?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(ze({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Xh){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,ft(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const r of t)this._setAttr(r.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=n;let a;if(i&&!ve(i))for(const l in i){const c=i[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=Ei(this._props[l])),(a||(a=Object.create(null)))[lt(l)]=!0)}this._numberProps=a,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)Ue(this,n)||Object.defineProperty(this,n,{get:()=>f(r[n])})}_resolveProps(t){const{props:r}=t,n=ve(r)?r:Object.keys(r||{});for(const s of Object.keys(this))s[0]!=="_"&&n.includes(s)&&this._setProp(s,this[s]);for(const s of n.map(lt))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):Yd;const s=lt(t);r&&this._numberProps&&this._numberProps[s]&&(n=Ei(n)),this._setProp(s,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,s=!1){if(r!==this._props[t]&&(this._dirty=!0,r===Yd?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),s&&this._instance&&this._update(),n)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),r===!0?this.setAttribute(Dt(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Dt(t),r+""):r||this.removeAttribute(Dt(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),vf(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=H(this._def,ze(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const s=(i,o)=>{this.dispatchEvent(new CustomEvent(i,Si(o[0])?ze({detail:o},o[0]):{detail:o}))};n.emit=(i,...o)=>{s(i,o),Dt(i)!==i&&s(Dt(i),o)},this._setParent()}),r}_applyStyles(t,r){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let s=t.length-1;s>=0;s--){const i=document.createElement("style");n&&i.setAttribute("nonce",n),i.textContent=t[s],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=this._getSlots(),r=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const s=t[n],i=s.getAttribute("name")||"default",o=this._slots[i],a=s.parentNode;if(o)for(const l of o){if(r&&l.nodeType===1){const c=r+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let d;for(;d=u.nextNode();)d.setAttribute(c,"")}a.insertBefore(l,s)}else for(;s.firstChild;)a.insertBefore(s.firstChild,s);a.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const r=new Set;for(const n of t){const s=n.querySelectorAll("slot");for(let i=0;i<s.length;i++)r.add(s[i])}return Array.from(r)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}};function Xd(e){const t=it(),r=t&&t.ce;return r||null}function e0(){const e=Xd();return e&&e.shadowRoot}function t0(e="$style"){{const t=it();if(!t)return qe;const r=t.type.__cssModules;if(!r)return qe;const n=r[e];return n||qe}}var Qd=new WeakMap,ef=new WeakMap,ho=Symbol("_moveCb"),tf=Symbol("_enterCb"),r0=e=>(delete e.props.mode,e),n0=r0({name:"TransitionGroup",props:ze({},$d,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=it(),n=Ea();let s,i;return Ws(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!a0(s[0].el,r.vnode.el,o)){s=[];return}s.forEach(s0),s.forEach(i0);const a=s.filter(o0);tl(r.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;xr(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[ho]=p=>{p&&p.target!==c||(!p||p.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[ho]=null,cn(c,o))};c.addEventListener("transitionend",d)}),s=[]}),()=>{const o=Ne(e),a=Dd(o);let l=o.tag||Be;if(s=[],i)for(let c=0;c<i.length;c++){const u=i[c];u.el&&u.el instanceof Element&&(s.push(u),Lr(u,ls(u,a,n,r)),Qd.set(u,rf(u.el)))}i=t.default?Ki(t.default()):[];for(let c=0;c<i.length;c++){const u=i[c];u.key!=null&&Lr(u,ls(u,a,n,r))}return H(l,null,i)}}});function s0(e){const t=e.el;t[ho]&&t[ho](),t[tf]&&t[tf]()}function i0(e){ef.set(e,rf(e.el))}function o0(e){const t=Qd.get(e),r=ef.get(e),n=t.left-r.left,s=t.top-r.top;if(n||s){const i=e.el,o=i.style,a=i.getBoundingClientRect();let l=1,c=1;return i.offsetWidth&&(l=a.width/i.offsetWidth),i.offsetHeight&&(c=a.height/i.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),o.transform=o.webkitTransform=`translate(${n/l}px,${s/c}px)`,o.transitionDuration="0s",e}}function rf(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function a0(e,t,r){const n=e.cloneNode(),s=e[gs];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:o}=Md(n);return i.removeChild(n),o}var un=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?r=>es(t,r):t};function l0(e){e.target.composing=!0}function nf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var rr=Symbol("_assign");function sf(e,t,r){return t&&(e=e.trim()),r&&(e=Ti(e)),e}var si={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e[rr]=un(s);const i=n||s.props&&s.props.type==="number";Kr(e,t?"change":"input",o=>{o.target.composing||e[rr](sf(e.value,r,i))}),(r||i)&&Kr(e,"change",()=>{e.value=sf(e.value,r,i)}),t||(Kr(e,"compositionstart",l0),Kr(e,"compositionend",nf),Kr(e,"change",nf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:s,number:i}},o){if(e[rr]=un(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Ti(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||s&&e.value.trim()===l)||(e.value=l))}},ol={deep:!0,created(e,t,r){e[rr]=un(r),Kr(e,"change",()=>{const n=e._modelValue,s=vs(e),i=e.checked,o=e[rr];if(ve(n)){const a=Ii(n,s),l=a!==-1;if(i&&!l)o(n.concat(s));else if(!i&&l){const c=[...n];c.splice(a,1),o(c)}}else if(Rn(n)){const a=new Set(n);i?a.add(s):a.delete(s),o(a)}else o(cf(e,i))})},mounted:of,beforeUpdate(e,t,r){e[rr]=un(r),of(e,t,r)}};function of(e,{value:t,oldValue:r},n){e._modelValue=t;let s;if(ve(t))s=Ii(t,n.props.value)>-1;else if(Rn(t))s=t.has(n.props.value);else{if(t===r)return;s=$r(t,cf(e,!0))}e.checked!==s&&(e.checked=s)}var al={created(e,{value:t},r){e.checked=$r(t,r.props.value),e[rr]=un(r),Kr(e,"change",()=>{e[rr](vs(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[rr]=un(n),t!==r&&(e.checked=$r(t,n.props.value))}},af={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const s=Rn(t);Kr(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?Ti(vs(o)):vs(o));e[rr](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,ft(()=>{e._assigning=!1})}),e[rr]=un(n)},mounted(e,{value:t}){lf(e,t)},beforeUpdate(e,t,r){e[rr]=un(r)},updated(e,{value:t}){e._assigning||lf(e,t)}};function lf(e,t){const r=e.multiple,n=ve(t);if(!(r&&!n&&!Rn(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],a=vs(o);if(r)if(n){const l=typeof a;l==="string"||l==="number"?o.selected=t.some(c=>String(c)===String(a)):o.selected=Ii(t,a)>-1}else o.selected=t.has(a);else if($r(vs(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vs(e){return"_value"in e?e._value:e.value}function cf(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}var uf={created(e,t,r){go(e,t,r,null,"created")},mounted(e,t,r){go(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){go(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){go(e,t,r,n,"updated")}};function df(e,t){switch(e){case"SELECT":return af;case"TEXTAREA":return si;default:switch(t){case"checkbox":return ol;case"radio":return al;default:return si}}}function go(e,t,r,n,s){const i=df(e.tagName,r.props&&r.props.type)[s];i&&i(e,t,r,n)}function c0(){si.getSSRProps=({value:e})=>({value:e}),al.getSSRProps=({value:e},t)=>{if(t.props&&$r(t.props.value,e))return{checked:!0}},ol.getSSRProps=({value:e},t)=>{if(ve(e)){if(t.props&&Ii(e,t.props.value)>-1)return{checked:!0}}else if(Rn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},uf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=df(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}var u0=["ctrl","shift","alt","meta"],d0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>u0.some(r=>e[`${r}Key`]&&!t.includes(r))},nr=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=d0[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},f0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ll=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=(s=>{if(!("key"in s))return;const i=Dt(s.key);if(t.some(o=>o===i||f0[o]===i))return e(s)}))},ff=ze({patchProp:Jd},kd),ii,pf=!1;function hf(){return ii||(ii=ad(ff))}function gf(){return ii=pf?ii:ld(ff),pf=!0,ii}var vf=((...e)=>{hf().render(...e)}),p0=((...e)=>{gf().hydrate(...e)}),cl=((...e)=>{const t=hf().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=yf(n);if(!s)return;const i=t._component;!Ae(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=r(s,!1,wf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t}),mf=((...e)=>{const t=gf().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=yf(n);if(s)return r(s,!0,wf(s))},t});function wf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yf(e){return Ze(e)?document.querySelector(e):e}var bf=!1,h0=()=>{bf||(bf=!0,c0(),Bm())},g0=sg({BaseTransition:()=>Su,BaseTransitionPropsValidators:()=>Aa,Comment:()=>st,DeprecationTypes:()=>null,EffectScope:()=>oa,ErrorCodes:()=>Qg,ErrorTypeStrings:()=>Im,Fragment:()=>Be,KeepAlive:()=>xv,ReactiveEffect:()=>$s,Static:()=>Mn,Suspense:()=>um,Teleport:()=>xa,Text:()=>an,TrackOpTypes:()=>Kg,Transition:()=>Hm,TransitionGroup:()=>n0,TriggerOpTypes:()=>Wg,VueElement:()=>Zd,assertNumber:()=>Xg,callWithAsyncErrorHandling:()=>Zt,callWithErrorHandling:()=>ns,camelize:()=>lt,capitalize:()=>Rs,cloneVNode:()=>pr,compatUtils:()=>null,compile:()=>v0,computed:()=>V,createApp:()=>cl,createBlock:()=>j,createCommentVNode:()=>Pe,createElementBlock:()=>me,createElementVNode:()=>ee,createHydrationRenderer:()=>ld,createPropsRestProxy:()=>Fv,createRenderer:()=>ad,createSSRApp:()=>mf,createSlots:()=>kv,createStaticVNode:()=>Wa,createTextVNode:()=>Me,createVNode:()=>H,customRef:()=>Ns,defineAsyncComponent:()=>Cv,defineComponent:()=>X,defineCustomElement:()=>il,defineEmits:()=>Pv,defineExpose:()=>Dv,defineModel:()=>Mv,defineOptions:()=>Ov,defineProps:()=>$v,defineSSRCustomElement:()=>Xm,defineSlots:()=>Hv,devtools:()=>km,effect:()=>yg,effectScope:()=>aa,getCurrentInstance:()=>it,getCurrentScope:()=>ki,getCurrentWatcher:()=>Gg,getTransitionRawChildren:()=>Ki,guardReactiveProps:()=>er,h:()=>tr,handleError:()=>Dn,hasInjectionContext:()=>ov,hydrate:()=>p0,hydrateOnIdle:()=>mv,hydrateOnInteraction:()=>_v,hydrateOnMediaQuery:()=>bv,hydrateOnVisible:()=>yv,initCustomFormatter:()=>Tm,initDirectivesForSSR:()=>h0,inject:()=>kt,isMemoSame:()=>xd,isProxy:()=>qs,isReactive:()=>Nr,isReadonly:()=>br,isRef:()=>Ge,isRuntimeOnly:()=>Sm,isShallow:()=>Ot,isVNode:()=>jr,markRaw:()=>wa,mergeDefaults:()=>Vu,mergeModels:()=>Lv,mergeProps:()=>pe,nextTick:()=>ft,nodeOps:()=>kd,normalizeClass:()=>Ye,normalizeProps:()=>cr,normalizeStyle:()=>dt,onActivated:()=>Ru,onBeforeMount:()=>Du,onBeforeUnmount:()=>fs,onBeforeUpdate:()=>$a,onDeactivated:()=>$u,onErrorCaptured:()=>qu,onMounted:()=>Ke,onRenderTracked:()=>Mu,onRenderTriggered:()=>Hu,onScopeDispose:()=>la,onServerPrefetch:()=>Ou,onUnmounted:()=>Rt,onUpdated:()=>Ws,onWatcherCleanup:()=>nu,openBlock:()=>$,patchProp:()=>Jd,popScopeId:()=>sv,provide:()=>as,proxyRefs:()=>ya,pushScopeId:()=>nv,queuePostFlushCb:()=>Bs,reactive:()=>Mr,readonly:()=>_t,ref:()=>F,registerRuntimeCompiler:()=>_m,render:()=>vf,renderList:()=>Qt,renderSlot:()=>te,resolveComponent:()=>Av,resolveDirective:()=>Iv,resolveDynamicComponent:()=>Gs,resolveFilter:()=>null,resolveTransitionHooks:()=>ls,setBlockTracking:()=>ei,setDevtoolsHook:()=>Rm,setTransitionHooks:()=>Lr,shallowReactive:()=>Qc,shallowReadonly:()=>qr,shallowRef:()=>et,ssrContextKey:()=>uu,ssrUtils:()=>$m,stop:()=>bg,toDisplayString:()=>He,toHandlerKey:()=>Qn,toHandlers:()=>Lu,toRaw:()=>Ne,toRef:()=>ba,toRefs:()=>St,toValue:()=>Ce,transformVNodeArgs:()=>vm,triggerRef:()=>tu,unref:()=>f,useAttrs:()=>Bv,useCssModule:()=>t0,useCssVars:()=>Lm,useHost:()=>Xd,useId:()=>Tu,useModel:()=>Yv,useSSRContext:()=>du,useShadowRoot:()=>e0,useSlots:()=>Nv,useTemplateRef:()=>uv,useTransitionState:()=>Ea,vModelCheckbox:()=>ol,vModelDynamic:()=>uf,vModelRadio:()=>al,vModelSelect:()=>af,vModelText:()=>si,vShow:()=>uo,version:()=>Td,warn:()=>Am,watch:()=>ke,watchEffect:()=>Qe,watchPostEffect:()=>Sa,watchSyncEffect:()=>fu,withAsyncContext:()=>Vv,withCtx:()=>R,withDefaults:()=>qv,withDirectives:()=>ji,withKeys:()=>ll,withMemo:()=>Em,withModifiers:()=>nr,withScopeId:()=>iv},1),v0=()=>{},m0=2;const hr={CALL_HISTORY:"call_history",CONTACTS:"contacts",CONNECTIONS:"connections"},w0=(e="webphone_db")=>{const t=F(null),r=F(!1);return{initDB:()=>new Promise((l,c)=>{if(t.value){l();return}const u=indexedDB.open(e,m0);u.onerror=d=>{console.error("IndexedDB error:",d),c(d)},u.onsuccess=d=>{t.value=d.target.result,r.value=!0,l()},u.onupgradeneeded=d=>{const p=d.target.result;p.objectStoreNames.contains(hr.CALL_HISTORY)||p.createObjectStore(hr.CALL_HISTORY,{keyPath:"id"}),p.objectStoreNames.contains(hr.CONTACTS)||p.createObjectStore(hr.CONTACTS,{keyPath:"number"}),p.objectStoreNames.contains(hr.CONNECTIONS)||p.createObjectStore(hr.CONNECTIONS,{keyPath:"id"})}}),getAll:l=>new Promise((c,u)=>{if(!t.value)return u("DB not initialized");const d=t.value.transaction([l],"readonly").objectStore(l).getAll();d.onsuccess=()=>c(d.result),d.onerror=()=>u(d.error)}),add:(l,c)=>new Promise((u,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).add(c);p.onsuccess=()=>u(),p.onerror=()=>d(p.error)}),put:(l,c)=>new Promise((u,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).put(c);p.onsuccess=()=>u(),p.onerror=()=>d(p.error)}),remove:(l,c)=>new Promise((u,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).delete(c);p.onsuccess=()=>u(),p.onerror=()=>d(p.error)}),isReady:r}},y0=e=>{const t=F(e?.initialConnected??!1),r=F(0),n=F(null),s=F([]),i=F([]),{initDB:o,getAll:a,add:l}=w0(e?.server&&e?.extension?`webphone_${e.server}_${e.extension}`.replace(/[^a-z0-9_]/gi,"_"):"webphone_db");o().then(async()=>{try{s.value=(await a(hr.CALL_HISTORY)).sort((K,ne)=>ne.startTime-K.startTime),i.value=await a(hr.CONTACTS)}catch(K){console.error("Error loading data from IndexedDB:",K)}});const c=F([{id:0,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1},{id:1,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1},{id:2,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1}]),u=F(!0),d=F(""),p=F(!1),g=V(()=>c.value.find(K=>K.id===r.value)||c.value[0]),w=V(()=>g.value?.status||"idle"),b=V(()=>g.value?.remoteNumber||""),C=V(()=>g.value?.isMuted||!1),v=V(()=>g.value?.isHeld||!1),S=V({get:()=>g.value?.keypadValue||"",set:K=>{g.value&&(g.value.keypadValue=K)}}),y=K=>{t.value=K},m=K=>{c.value.some(ne=>ne.id===K)&&(r.value=K)},_=(K,ne)=>{const de=c.value.find(xe=>xe.id===K);de&&Object.assign(de,ne)};return{isConnected:t,activeChannelId:r,channels:c,activeChannel:g,callStatus:w,remoteNumber:b,isMuted:C,isHeld:v,keypadValue:S,isKeypadVisible:u,lastDialedNumber:d,videoModeEnabled:p,transferInProgress:n,setConnected:y,setActiveChannelId:m,updateChannelState:_,setCallStatus:K=>{_(r.value,{status:K})},setIncomingCall:K=>{_(r.value,{remoteNumber:K})},resetCall:()=>{_(r.value,{status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1})},addCallLog:async K=>{const ne={id:crypto.randomUUID(),...K};s.value.unshift(ne);try{await l(hr.CALL_HISTORY,ne)}catch(de){console.error("Error saving call log:",de)}},callHistory:s,contacts:i,addContact:async K=>{try{await l(hr.CONTACTS,K),i.value=await a(hr.CONTACTS)}catch(ne){console.error("Error saving contact:",ne)}},setMuted:K=>{_(r.value,{isMuted:K})},setHeld:K=>{_(r.value,{isHeld:K})},appendKeypad:K=>{S.value+=K},clearKeypad:()=>{S.value=""},backspaceKeypad:()=>{S.value=S.value.slice(0,-1)},toggleKeypad:()=>{u.value=!u.value},setLastDialedNumber:K=>{d.value=K},setTransferInProgress:K=>{n.value=K},toggleVideoMode:()=>{p.value=!p.value}}},b0="0.21.1";var Ln=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}},ul=class extends Ln{constructor(e){super(e||"Unsupported content type.")}},dl=class extends Ln{constructor(e){super(e||"Request pending.")}},_0=class extends Ln{constructor(e){super(e||"Unspecified session description handler error.")}},fl=class extends Ln{constructor(){super("The session has terminated.")}},oi=class extends Ln{constructor(e){super(e||"An error occurred during state transition.")}},S0=class{constructor(e){this.incomingAckRequest=e}get request(){return this.incomingAckRequest.message}},C0=class{constructor(e){this.incomingByeRequest=e}get request(){return this.incomingByeRequest.message}accept(e){return this.incomingByeRequest.accept(e),Promise.resolve()}reject(e){return this.incomingByeRequest.reject(e),Promise.resolve()}},x0=class{constructor(e){this.incomingCancelRequest=e}get request(){return this.incomingCancelRequest}},ai=class{constructor(){this.listeners=new Array}addListener(e,t){const r=n=>{this.removeListener(r),e(n)};t?.once===!0?this.listeners.push(r):this.listeners.push(e)}emit(e){this.listeners.slice().forEach(t=>t(e))}removeAllListeners(){this.listeners=[]}removeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}on(e){return this.addListener(e)}off(e){return this.removeListener(e)}once(e){return this.addListener(e,{once:!0})}},T0=class{constructor(e){this.incomingInfoRequest=e}get request(){return this.incomingInfoRequest.message}accept(e){return this.incomingInfoRequest.accept(e),Promise.resolve()}reject(e){return this.incomingInfoRequest.reject(e),Promise.resolve()}},_f=class{constructor(e){this.parameters={};for(const t in e)e.hasOwnProperty(t)&&this.setParam(t,e[t])}setParam(e,t){e&&(this.parameters[e.toLowerCase()]=typeof t>"u"||t===null?null:t.toString())}getParam(e){if(e)return this.parameters[e.toLowerCase()]}hasParam(e){return!!(e&&this.parameters[e.toLowerCase()]!==void 0)}deleteParam(e){if(e=e.toLowerCase(),this.hasParam(e)){const t=this.parameters[e];return delete this.parameters[e],t}}clearParams(){this.parameters={}}},sr=class Qh extends _f{constructor(t,r,n){super(n),this.uri=t,this._displayName=r}get friendlyName(){return this.displayName||this.uri.aor}get displayName(){return this._displayName}set displayName(t){this._displayName=t}clone(){return new Qh(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))}toString(){let t=this.displayName||this.displayName==="0"?'"'+this.displayName+'" ':"";t+="<"+this.uri.toString()+">";for(const r in this.parameters)this.parameters.hasOwnProperty(r)&&(t+=";"+r,this.parameters[r]!==null&&(t+="="+this.parameters[r]));return t}},dn=class eg extends _f{constructor(t="sip",r,n,s,i,o){if(super(i||{}),this.headers={},!n)throw new TypeError('missing or invalid "host" parameter');for(const a in o)o.hasOwnProperty(a)&&this.setHeader(a,o[a]);this.raw={scheme:t,user:r,host:n,port:s},this.normal={scheme:t.toLowerCase(),user:r,host:n.toLowerCase(),port:s}}get scheme(){return this.normal.scheme}set scheme(t){this.raw.scheme=t,this.normal.scheme=t.toLowerCase()}get user(){return this.normal.user}set user(t){this.normal.user=this.raw.user=t}get host(){return this.normal.host}set host(t){this.raw.host=t,this.normal.host=t.toLowerCase()}get aor(){return this.normal.user+"@"+this.normal.host}get port(){return this.normal.port}set port(t){this.normal.port=this.raw.port=t}setHeader(t,r){this.headers[this.headerize(t)]=r instanceof Array?r:[r]}getHeader(t){if(t)return this.headers[this.headerize(t)]}hasHeader(t){return!!t&&!!this.headers.hasOwnProperty(this.headerize(t))}deleteHeader(t){if(t=this.headerize(t),this.headers.hasOwnProperty(t)){const r=this.headers[t];return delete this.headers[t],r}}clearHeaders(){this.headers={}}clone(){return new eg(this._raw.scheme,this._raw.user||"",this._raw.host,this._raw.port,JSON.parse(JSON.stringify(this.parameters)),JSON.parse(JSON.stringify(this.headers)))}toRaw(){return this._toString(this._raw)}toString(){return this._toString(this._normal)}get _normal(){return this.normal}get _raw(){return this.raw}_toString(t){let r=t.scheme+":";t.scheme.toLowerCase().match("^sips?$")||(r+="//"),t.user&&(r+=this.escapeUser(t.user)+"@"),r+=t.host,(t.port||t.port===0)&&(r+=":"+t.port);for(const s in this.parameters)this.parameters.hasOwnProperty(s)&&(r+=";"+s,this.parameters[s]!==null&&(r+="="+this.parameters[s]));const n=[];for(const s in this.headers)if(this.headers.hasOwnProperty(s))for(const i in this.headers[s])this.headers[s].hasOwnProperty(i)&&n.push(s+"="+this.headers[s][i]);return n.length>0&&(r+="?"+n.join("&")),r}escapeUser(t){let r;try{r=decodeURIComponent(t)}catch(n){throw n}return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}headerize(t){const r={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},n=t.toLowerCase().replace(/_/g,"-").split("-"),s=n.length;let i="";for(let o=0;o<s;o++)o!==0&&(i+="-"),i+=n[o].charAt(0).toUpperCase()+n[o].substring(1);return r[i]&&(i=r[i]),i}};function Sf(e,t){if(e.scheme!==t.scheme||e.user!==t.user||e.host!==t.host||e.port!==t.port)return!1;function r(i,o){const a=Object.keys(i.parameters),l=Object.keys(o.parameters);return!(!a.filter(c=>l.includes(c)).every(c=>i.parameters[c]===o.parameters[c])||!["user","ttl","method","transport"].every(c=>i.hasParam(c)&&o.hasParam(c)||!i.hasParam(c)&&!o.hasParam(c))||!["maddr"].every(c=>i.hasParam(c)&&o.hasParam(c)||!i.hasParam(c)&&!o.hasParam(c)))}if(!r(e,t))return!1;const n=Object.keys(e.headers),s=Object.keys(t.headers);if(n.length!==0||s.length!==0){if(n.length!==s.length)return!1;const i=n.filter(o=>s.includes(o));if(i.length!==s.length||!i.every(o=>e.headers[o].length&&t.headers[o].length&&e.headers[o][0]===t.headers[o][0]))return!1}return!0}function pl(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,r+=r.repeat(t),e+r.slice(0,t))}var Cf=class Qo extends Error{constructor(t,r,n,s){super(),this.message=t,this.expected=r,this.found=n,this.location=s,this.name="SyntaxError",typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(this,Qo.prototype):this.__proto__=Qo.prototype,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Qo)}static buildMessage(t,r){function n(c){return c.charCodeAt(0).toString(16).toUpperCase()}function s(c){return c.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,u=>"\\x0"+n(u)).replace(/[\x10-\x1F\x7F-\x9F]/g,u=>"\\x"+n(u))}function i(c){return c.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,u=>"\\x0"+n(u)).replace(/[\x10-\x1F\x7F-\x9F]/g,u=>"\\x"+n(u))}function o(c){switch(c.type){case"literal":return'"'+s(c.text)+'"';case"class":const u=c.parts.map(d=>Array.isArray(d)?i(d[0])+"-"+i(d[1]):i(d));return"["+(c.inverted?"^":"")+u+"]";case"any":return"any character";case"end":return"end of input";case"other":return c.description}}function a(c){const u=c.map(o);let d,p;if(u.sort(),u.length>0){for(d=1,p=1;d<u.length;d++)u[d-1]!==u[d]&&(u[p]=u[d],p++);u.length=p}switch(u.length){case 1:return u[0];case 2:return u[0]+" or "+u[1];default:return u.slice(0,-1).join(", ")+", or "+u[u.length-1]}}function l(c){return c?'"'+s(c)+'"':"end of input"}return"Expected "+a(t)+" but "+l(r)+" found."}format(t){let r="Error: "+this.message;if(this.location){let n=null,s;for(s=0;s<t.length;s++)if(t[s].source===this.location.source){n=t[s].text.split(/\r\n|\n|\r/g);break}let i=this.location.start,o=this.location.source+":"+i.line+":"+i.column;if(n){let a=this.location.end,l=pl("",i.line.toString().length," "),c=n[i.line-1],u=i.line===a.line?a.column:c.length+1;r+=`
|
|
3
|
+
(function(){var Ec=Object.defineProperty,sg=(e,t)=>{let r={};for(var n in e)Ec(r,n,{get:e[n],enumerable:!0});return t&&Ec(r,Symbol.toStringTag,{value:"Module"}),r};function Is(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}var He={},Yn=[],Yt=()=>{},Ac=()=>!1,Rs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ra=e=>e.startsWith("onUpdate:"),Ue=Object.assign,na=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},ig=Object.prototype.hasOwnProperty,je=(e,t)=>ig.call(e,t),ve=Array.isArray,Zn=e=>Xn(e)==="[object Map]",kn=e=>Xn(e)==="[object Set]",Ic=e=>Xn(e)==="[object Date]",og=e=>Xn(e)==="[object RegExp]",Te=e=>typeof e=="function",Ye=e=>typeof e=="string",lr=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",sa=e=>(Fe(e)||Te(e))&&Te(e.then)&&Te(e.catch),Rc=Object.prototype.toString,Xn=e=>Rc.call(e),ag=e=>Xn(e).slice(8,-1),Si=e=>Xn(e)==="[object Object]",Ci=e=>Ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=Is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xi=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},lg=/-\w/g,lt=xi(e=>e.replace(lg,t=>t.slice(1).toUpperCase())),cg=/\B([A-Z])/g,Dt=xi(e=>e.replace(cg,"-$1").toLowerCase()),ks=xi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qn=xi(e=>e?`on${ks(e)}`:""),At=(e,t)=>!Object.is(e,t),es=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},kc=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Ti=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ei=e=>{const t=Ye(e)?Number(e):NaN;return isNaN(t)?e:t},$c,Ai=()=>$c||($c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),ug=Is("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function dt(e){if(ve(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],s=Ye(n)?hg(n):dt(n);if(s)for(const i in s)t[i]=s[i]}return t}else if(Ye(e)||Fe(e))return e}var dg=/;(?![^(]*\))/g,fg=/:([^]+)/,pg=/\/\*[^]*?\*\//g;function hg(e){const t={};return e.replace(pg,"").split(dg).forEach(r=>{if(r){const n=r.split(fg);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Je(e){let t="";if(Ye(e))t=e;else if(ve(e))for(let r=0;r<e.length;r++){const n=Je(e[r]);n&&(t+=n+" ")}else if(Fe(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function cr(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ye(t)&&(e.class=Je(t)),r&&(e.style=dt(r)),e}var Pc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gg=Is(Pc),ex=Is(Pc+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Dc(e){return!!e||e===""}function vg(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=$r(e[n],t[n]);return r}function $r(e,t){if(e===t)return!0;let r=Ic(e),n=Ic(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=lr(e),n=lr(t),r||n)return e===t;if(r=ve(e),n=ve(t),r||n)return r&&n?vg(e,t):!1;if(r=Fe(e),n=Fe(t),r||n){if(!r||!n||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e){const i=e.hasOwnProperty(s),o=t.hasOwnProperty(s);if(i&&!o||!i&&o||!$r(e[s],t[s]))return!1}}return String(e)===String(t)}function Ii(e,t){return e.findIndex(r=>$r(r,t))}var Oc=e=>!!(e&&e.__v_isRef===!0),Pe=e=>Ye(e)?e:e==null?"":ve(e)||Fe(e)&&(e.toString===Rc||!Te(e.toString))?Oc(e)?Pe(e.value):JSON.stringify(e,Hc,2):String(e),Hc=(e,t)=>Oc(t)?Hc(e,t.value):Zn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],i)=>(r[ia(n,i)+" =>"]=s,r),{})}:kn(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>ia(r))}:lr(t)?ia(t):Fe(t)&&!ve(t)&&!Si(t)?String(t):t,ia=(e,t="")=>{var r;return lr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};function mg(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:(typeof e!="number"||Number.isFinite(e),String(e))}var yt,oa=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=yt,!e&&yt&&(this.index=(yt.scopes||(yt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=yt;try{return yt=this,e()}finally{yt=t}}}on(){++this._on===1&&(this.prevScope=yt,yt=this)}off(){this._on>0&&--this._on===0&&(yt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,r;for(t=0,r=this.effects.length;t<r;t++)this.effects[t].stop();for(this.effects.length=0,t=0,r=this.cleanups.length;t<r;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}};function aa(e){return new oa(e)}function Ri(){return yt}function la(e,t=!1){yt&&yt.cleanups.push(e)}var Ze,ca=new WeakSet,$s=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,yt&&yt.active&&yt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ca.has(this)&&(ca.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Nc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Vc(this),qc(this);const e=Ze,t=ur;Ze=this,ur=!0;try{return this.fn()}finally{Bc(this),Ze=e,ur=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)pa(e);this.deps=this.depsTail=void 0,Vc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ca.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){fa(this)&&this.run()}get dirty(){return fa(this)}},Mc=0,Ps,Ds;function Nc(e,t=!1){if(e.flags|=8,t){e.next=Ds,Ds=e;return}e.next=Ps,Ps=e}function ua(){Mc++}function da(){if(--Mc>0)return;if(Ds){let t=Ds;for(Ds=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Ps;){let t=Ps;for(Ps=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function qc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Bc(e){let t,r=e.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),pa(n),wg(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=r}function fa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Lc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Lc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Os)||(e.globalVersion=Os,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!fa(e))))return;e.flags|=2;const t=e.dep,r=Ze,n=ur;Ze=e,ur=!0;try{qc(e);const s=e.fn(e._value);(t.version===0||At(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ze=r,ur=n,Bc(e),e.flags&=-3}}function pa(e,t=!1){const{dep:r,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)pa(i,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function wg(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function yg(e,t){e.effect instanceof $s&&(e=e.effect.fn);const r=new $s(e);t&&Ue(r,t);try{r.run()}catch(s){throw r.stop(),s}const n=r.run.bind(r);return n.effect=r,n}function bg(e){e.effect.stop()}var ur=!0,Fc=[];function Pr(){Fc.push(ur),ur=!1}function Dr(){const e=Fc.pop();ur=e===void 0?!0:e}function Vc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Ze;Ze=void 0;try{t()}finally{Ze=r}}}var Os=0,_g=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},ki=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ze||!ur||Ze===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ze)t=this.activeLink=new _g(Ze,this),Ze.deps?(t.prevDep=Ze.depsTail,Ze.depsTail.nextDep=t,Ze.depsTail=t):Ze.deps=Ze.depsTail=t,jc(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const r=t.nextDep;r.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=r),t.prevDep=Ze.depsTail,t.nextDep=void 0,Ze.depsTail.nextDep=t,Ze.depsTail=t,Ze.deps===t&&(Ze.deps=r)}return t}trigger(e){this.version++,Os++,this.notify(e)}notify(e){ua();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{da()}}};function jc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)jc(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}var $i=new WeakMap,Pn=Symbol(""),ha=Symbol(""),Hs=Symbol("");function bt(e,t,r){if(ur&&Ze){let n=$i.get(e);n||$i.set(e,n=new Map);let s=n.get(r);s||(n.set(r,s=new ki),s.map=n,s.key=r),s.track()}}function Or(e,t,r,n,s,i){const o=$i.get(e);if(!o){Os++;return}const a=l=>{l&&l.trigger()};if(ua(),t==="clear")o.forEach(a);else{const l=ve(e),c=l&&Ci(r);if(l&&r==="length"){const u=Number(n);o.forEach((d,p)=>{(p==="length"||p===Hs||!lr(p)&&p>=u)&&a(d)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(Hs)),t){case"add":l?c&&a(o.get("length")):(a(o.get(Pn)),Zn(e)&&a(o.get(ha)));break;case"delete":l||(a(o.get(Pn)),Zn(e)&&a(o.get(ha)));break;case"set":Zn(e)&&a(o.get(Pn));break}}da()}function Sg(e,t){const r=$i.get(e);return r&&r.get(t)}function ts(e){const t=Me(e);return t===e?t:(bt(t,"iterate",Hs),Ot(e)?t:t.map(dr))}function Pi(e){return bt(e=Me(e),"iterate",Hs),e}function nn(e,t){return br(e)?rs(qr(e)?dr(t):t):dr(t)}var Cg={__proto__:null,[Symbol.iterator](){return ga(this,Symbol.iterator,e=>nn(this,e))},concat(...e){return ts(this).concat(...e.map(t=>ve(t)?ts(t):t))},entries(){return ga(this,"entries",e=>(e[1]=nn(this,e[1]),e))},every(e,t){return Hr(this,"every",e,t,void 0,arguments)},filter(e,t){return Hr(this,"filter",e,t,r=>r.map(n=>nn(this,n)),arguments)},find(e,t){return Hr(this,"find",e,t,r=>nn(this,r),arguments)},findIndex(e,t){return Hr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Hr(this,"findLast",e,t,r=>nn(this,r),arguments)},findLastIndex(e,t){return Hr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Hr(this,"forEach",e,t,void 0,arguments)},includes(...e){return va(this,"includes",e)},indexOf(...e){return va(this,"indexOf",e)},join(e){return ts(this).join(e)},lastIndexOf(...e){return va(this,"lastIndexOf",e)},map(e,t){return Hr(this,"map",e,t,void 0,arguments)},pop(){return Ms(this,"pop")},push(...e){return Ms(this,"push",e)},reduce(e,...t){return Uc(this,"reduce",e,t)},reduceRight(e,...t){return Uc(this,"reduceRight",e,t)},shift(){return Ms(this,"shift")},some(e,t){return Hr(this,"some",e,t,void 0,arguments)},splice(...e){return Ms(this,"splice",e)},toReversed(){return ts(this).toReversed()},toSorted(e){return ts(this).toSorted(e)},toSpliced(...e){return ts(this).toSpliced(...e)},unshift(...e){return Ms(this,"unshift",e)},values(){return ga(this,"values",e=>nn(this,e))}};function ga(e,t,r){const n=Pi(e),s=n[t]();return n!==e&&!Ot(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=r(i.value)),i}),s}var xg=Array.prototype;function Hr(e,t,r,n,s,i){const o=Pi(e),a=o!==e&&!Ot(e),l=o[t];if(l!==xg[t]){const d=l.apply(e,i);return a?dr(d):d}let c=r;o!==e&&(a?c=function(d,p){return r.call(this,nn(e,d),p,e)}:r.length>2&&(c=function(d,p){return r.call(this,d,p,e)}));const u=l.call(o,c,n);return a&&s?s(u):u}function Uc(e,t,r,n){const s=Pi(e);let i=r;return s!==e&&(Ot(e)?r.length>3&&(i=function(o,a,l){return r.call(this,o,a,l,e)}):i=function(o,a,l){return r.call(this,o,nn(e,a),l,e)}),s[t](i,...n)}function va(e,t,r){const n=Me(e);bt(n,"iterate",Hs);const s=n[t](...r);return(s===-1||s===!1)&&Ns(r[0])?(r[0]=Me(r[0]),n[t](...r)):s}function Ms(e,t,r=[]){Pr(),ua();const n=Me(e)[t].apply(e,r);return da(),Dr(),n}var Tg=Is("__proto__,__v_isRef,__isVue"),zc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(lr));function Eg(e){lr(e)||(e=String(e));const t=Me(this);return bt(t,"has",e),t.hasOwnProperty(e)}var Kc=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if(t==="__v_skip")return e.__v_skip;const n=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!n;if(t==="__v_isReadonly")return n;if(t==="__v_isShallow")return s;if(t==="__v_raw")return r===(n?s?Xc:Zc:s?Yc:Jc).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const i=ve(e);if(!n){let a;if(i&&(a=Cg[t]))return a;if(t==="hasOwnProperty")return Eg}const o=Reflect.get(e,t,We(e)?e:r);if((lr(t)?zc.has(t):Tg(t))||(n||bt(e,"get",t),s))return o;if(We(o)){const a=i&&Ci(t)?o:o.value;return n&&Fe(a)?_t(a):a}return Fe(o)?n?_t(o):Mr(o):o}},Wc=class extends Kc{constructor(e=!1){super(!1,e)}set(e,t,r,n){let s=e[t];const i=ve(e)&&Ci(t);if(!this._isShallow){const l=br(s);if(!Ot(r)&&!br(r)&&(s=Me(s),r=Me(r)),!i&&We(s)&&!We(r))return l||(s.value=r),!0}const o=i?Number(t)<e.length:je(e,t),a=Reflect.set(e,t,r,We(e)?e:n);return e===Me(n)&&(o?At(r,s)&&Or(e,"set",t,r,s):Or(e,"add",t,r)),a}deleteProperty(e,t){const r=je(e,t),n=e[t],s=Reflect.deleteProperty(e,t);return s&&r&&Or(e,"delete",t,void 0,n),s}has(e,t){const r=Reflect.has(e,t);return(!lr(t)||!zc.has(t))&&bt(e,"has",t),r}ownKeys(e){return bt(e,"iterate",ve(e)?"length":Pn),Reflect.ownKeys(e)}},Gc=class extends Kc{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Ag=new Wc,Ig=new Gc,Rg=new Wc(!0),kg=new Gc(!0),ma=e=>e,Di=e=>Reflect.getPrototypeOf(e);function $g(e,t,r){return function(...n){const s=this.__v_raw,i=Me(s),o=Zn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...n),u=r?ma:t?rs:dr;return!t&&bt(i,"iterate",l?ha:Pn),Ue(Object.create(c),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:a?[u(d[0]),u(d[1])]:u(d),done:p}}})}}function Oi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pg(e,t){const r={get(n){const s=this.__v_raw,i=Me(s),o=Me(n);e||(At(n,o)&&bt(i,"get",n),bt(i,"get",o));const{has:a}=Di(i),l=t?ma:e?rs:dr;if(a.call(i,n))return l(s.get(n));if(a.call(i,o))return l(s.get(o));s!==i&&s.get(n)},get size(){const n=this.__v_raw;return!e&&bt(Me(n),"iterate",Pn),n.size},has(n){const s=this.__v_raw,i=Me(s),o=Me(n);return e||(At(n,o)&&bt(i,"has",n),bt(i,"has",o)),n===o?s.has(n):s.has(n)||s.has(o)},forEach(n,s){const i=this,o=i.__v_raw,a=Me(o),l=t?ma:e?rs:dr;return!e&&bt(a,"iterate",Pn),o.forEach((c,u)=>n.call(s,l(c),l(u),i))}};return Ue(r,e?{add:Oi("add"),set:Oi("set"),delete:Oi("delete"),clear:Oi("clear")}:{add(n){!t&&!Ot(n)&&!br(n)&&(n=Me(n));const s=Me(this);return Di(s).has.call(s,n)||(s.add(n),Or(s,"add",n,n)),this},set(n,s){!t&&!Ot(s)&&!br(s)&&(s=Me(s));const i=Me(this),{has:o,get:a}=Di(i);let l=o.call(i,n);l||(n=Me(n),l=o.call(i,n));const c=a.call(i,n);return i.set(n,s),l?At(s,c)&&Or(i,"set",n,s,c):Or(i,"add",n,s),this},delete(n){const s=Me(this),{has:i,get:o}=Di(s);let a=i.call(s,n);a||(n=Me(n),a=i.call(s,n));const l=o?o.call(s,n):void 0,c=s.delete(n);return a&&Or(s,"delete",n,void 0,l),c},clear(){const n=Me(this),s=n.size!==0,i=void 0,o=n.clear();return s&&Or(n,"clear",void 0,void 0,i),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=$g(n,e,t)}),r}function Hi(e,t){const r=Pg(e,t);return(n,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(je(r,s)&&s in n?r:n,s,i)}var Dg={get:Hi(!1,!1)},Og={get:Hi(!1,!0)},Hg={get:Hi(!0,!1)},Mg={get:Hi(!0,!0)},Jc=new WeakMap,Yc=new WeakMap,Zc=new WeakMap,Xc=new WeakMap;function Ng(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qg(e){return e.__v_skip||!Object.isExtensible(e)?0:Ng(ag(e))}function Mr(e){return br(e)?e:Mi(e,!1,Ag,Dg,Jc)}function Qc(e){return Mi(e,!1,Rg,Og,Yc)}function _t(e){return Mi(e,!0,Ig,Hg,Zc)}function Nr(e){return Mi(e,!0,kg,Mg,Xc)}function Mi(e,t,r,n,s){if(!Fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=qg(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?n:r);return s.set(e,a),a}function qr(e){return br(e)?qr(e.__v_raw):!!(e&&e.__v_isReactive)}function br(e){return!!(e&&e.__v_isReadonly)}function Ot(e){return!!(e&&e.__v_isShallow)}function Ns(e){return e?!!e.__v_raw:!1}function Me(e){const t=e&&e.__v_raw;return t?Me(t):e}function wa(e){return!je(e,"__v_skip")&&Object.isExtensible(e)&&kc(e,"__v_skip",!0),e}var dr=e=>Fe(e)?Mr(e):e,rs=e=>Fe(e)?_t(e):e;function We(e){return e?e.__v_isRef===!0:!1}function F(e){return eu(e,!1)}function Qe(e){return eu(e,!0)}function eu(e,t){return We(e)?e:new Bg(e,t)}var Bg=class{constructor(e,t){this.dep=new ki,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Me(e),this._value=t?e:dr(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||Ot(e)||br(e);e=r?e:Me(e),At(e,t)&&(this._rawValue=e,this._value=r?e:dr(e),this.dep.trigger())}};function tu(e){e.dep&&e.dep.trigger()}function f(e){return We(e)?e.value:e}function Ce(e){return Te(e)?e():f(e)}var Lg={get:(e,t,r)=>t==="__v_raw"?e:f(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return We(s)&&!We(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function ya(e){return qr(e)?e:new Proxy(e,Lg)}var Fg=class{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new ki,{get:r,set:n}=e(t.track.bind(t),t.trigger.bind(t));this._get=r,this._set=n}get value(){return this._value=this._get()}set value(e){this._set(e)}};function qs(e){return new Fg(e)}function St(e){const t=ve(e)?new Array(e.length):{};for(const r in e)t[r]=ru(e,r);return t}var Vg=class{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=Me(e);let n=!0,s=e;if(!ve(e)||!Ci(String(t)))do n=!Ns(s)||Ot(s);while(n&&(s=s.__v_raw));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=f(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&We(this._raw[this._key])){const t=this._object[this._key];if(We(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Sg(this._raw,this._key)}},jg=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function ba(e,t,r){return We(e)?e:Te(e)?new jg(e):Fe(e)&&arguments.length>1?ru(e,t,r):F(e)}function ru(e,t,r){return new Vg(e,t,r)}var Ug=class{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new ki(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Os-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ze!==this)return Nc(this,!0),!0}get value(){const e=this.dep.track();return Lc(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function zg(e,t,r=!1){let n,s;return Te(e)?n=e:(n=e.get,s=e.set),new Ug(n,s,r)}var Kg={GET:"get",HAS:"has",ITERATE:"iterate"},Wg={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Ni={},qi=new WeakMap,sn=void 0;function Gg(){return sn}function nu(e,t=!1,r=sn){if(r){let n=qi.get(r);n||qi.set(r,n=[]),n.push(e)}}function Jg(e,t,r=He){const{immediate:n,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=r,c=b=>s?b:Ot(b)||s===!1||s===0?Br(b,1):Br(b);let u,d,p,h,m=!1,y=!1;if(We(e)?(d=()=>e.value,m=Ot(e)):qr(e)?(d=()=>c(e),m=!0):ve(e)?(y=!0,m=e.some(b=>qr(b)||Ot(b)),d=()=>e.map(b=>{if(We(b))return b.value;if(qr(b))return c(b);if(Te(b))return l?l(b,2):b()})):Te(e)?t?d=l?()=>l(e,2):e:d=()=>{if(p){Pr();try{p()}finally{Dr()}}const b=sn;sn=u;try{return l?l(e,3,[h]):e(h)}finally{sn=b}}:d=Yt,t&&s){const b=d,_=s===!0?1/0:s;d=()=>Br(b(),_)}const T=Ri(),v=()=>{u.stop(),T&&T.active&&na(T.effects,u)};if(i&&t){const b=t;t=(..._)=>{b(..._),v()}}let x=y?new Array(e.length).fill(Ni):Ni;const w=b=>{if(!(!(u.flags&1)||!u.dirty&&!b))if(t){const _=u.run();if(s||m||(y?_.some((A,P)=>At(A,x[P])):At(_,x))){p&&p();const A=sn;sn=u;try{const P=[_,x===Ni?void 0:y&&x[0]===Ni?[]:x,h];x=_,l?l(t,3,P):t(...P)}finally{sn=A}}}else u.run()};return a&&a(w),u=new $s(d),u.scheduler=o?()=>o(w,!1):w,h=b=>nu(b,!1,u),p=u.onStop=()=>{const b=qi.get(u);if(b){if(l)l(b,4);else for(const _ of b)_();qi.delete(u)}},t?n?w(!0):x=u.run():o?o(w.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function Br(e,t=1/0,r){if(t<=0||!Fe(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,We(e))Br(e.value,t,r);else if(ve(e))for(let n=0;n<e.length;n++)Br(e[n],t,r);else if(kn(e)||Zn(e))e.forEach(n=>{Br(n,t,r)});else if(Si(e)){for(const n in e)Br(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Br(e[n],t,r)}return e}var su=[];function Yg(e){su.push(e)}function Zg(){su.pop()}function Xg(e,t){}var Qg={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},ev={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function ns(e,t,r,n){try{return n?e(...n):e()}catch(s){Dn(s,t,r)}}function Zt(e,t,r,n){if(Te(e)){const s=ns(e,t,r,n);return s&&sa(s)&&s.catch(i=>{Dn(i,t,r)}),s}if(ve(e)){const s=[];for(let i=0;i<e.length;i++)s.push(Zt(e[i],t,r,n));return s}}function Dn(e,t,r,n=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||He;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}a=a.parent}if(i){Pr(),ns(i,null,10,[e,l,c]),Dr();return}}tv(e,r,s,n,o)}function tv(e,t,r,n=!0,s=!1){if(s)throw e;console.error(e)}var It=[],_r=-1,ss=[],on=null,is=0,iu=Promise.resolve(),Bi=null;function ft(e){const t=Bi||iu;return e?t.then(this?e.bind(this):e):t}function rv(e){let t=_r+1,r=It.length;for(;t<r;){const n=t+r>>>1,s=It[n],i=Ls(s);i<e||i===e&&s.flags&2?t=n+1:r=n}return t}function _a(e){if(!(e.flags&1)){const t=Ls(e),r=It[It.length-1];!r||!(e.flags&2)&&t>=Ls(r)?It.push(e):It.splice(rv(t),0,e),e.flags|=1,ou()}}function ou(){Bi||(Bi=iu.then(lu))}function Bs(e){ve(e)?ss.push(...e):on&&e.id===-1?on.splice(is+1,0,e):e.flags&1||(ss.push(e),e.flags|=1),ou()}function au(e,t,r=_r+1){for(;r<It.length;r++){const n=It[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;It.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Li(e){if(ss.length){const t=[...new Set(ss)].sort((r,n)=>Ls(r)-Ls(n));if(ss.length=0,on){on.push(...t);return}for(on=t,is=0;is<on.length;is++){const r=on[is];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}on=null,is=0}}var Ls=e=>e.id==null?e.flags&2?-1:1/0:e.id;function lu(e){try{for(_r=0;_r<It.length;_r++){const t=It[_r];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ns(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;_r<It.length;_r++){const t=It[_r];t&&(t.flags&=-2)}_r=-1,It.length=0,Li(e),Bi=null,(It.length||ss.length)&&lu(e)}}var os,Fi=[];function cu(e,t){var r,n;os=e,os?(os.enabled=!0,Fi.forEach(({event:s,args:i})=>os.emit(s,...i)),Fi=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{cu(s,t)}),setTimeout(()=>{os||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Fi=[])},3e3)):Fi=[]}var vt=null,Vi=null;function Fs(e){const t=vt;return vt=e,Vi=e&&e.type.__scopeId||null,t}function nv(e){Vi=e}function sv(){Vi=null}var iv=e=>k;function k(e,t=vt,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&ei(-1);const i=Fs(t);let o;try{o=e(...s)}finally{Fs(i),n._d&&ei(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ji(e,t){if(vt===null)return e;const r=ti(vt),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=He]=t[s];i&&(Te(i)&&(i={mounted:i,updated:i}),i.deep&&Br(o),n.push({dir:i,instance:r,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Sr(e,t,r,n){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[n];l&&(Pr(),Zt(l,r,8,[e.el,a,e,t]),Dr())}}function as(e,t){if(mt){let r=mt.provides;const n=mt.parent&&mt.parent.provides;n===r&&(r=mt.provides=Object.create(n)),r[e]=t}}function Rt(e,t,r=!1){const n=st();if(n||On){let s=On?On._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Te(t)?t.call(n&&n.proxy):t}}function ov(){return!!(st()||On)}var uu=Symbol.for("v-scx"),du=()=>{{const e=Rt(uu);return e}};function Xe(e,t){return Vs(e,null,t)}function Sa(e,t){return Vs(e,null,{flush:"post"})}function fu(e,t){return Vs(e,null,{flush:"sync"})}function Ae(e,t,r){return Vs(e,t,r)}function Vs(e,t,r=He){const{immediate:n,deep:s,flush:i,once:o}=r,a=Ue({},r),l=t&&n||!t&&i!=="post";let c;if(hs){if(i==="sync"){const h=du();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Yt,h.resume=Yt,h.pause=Yt,h}}const u=mt;a.call=(h,m,y)=>Zt(h,u,m,y);let d=!1;i==="post"?a.scheduler=h=>{ot(h,u&&u.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(h,m)=>{m?h():_a(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const p=Jg(e,t,a);return hs&&(c?c.push(p):l&&p()),p}function av(e,t,r){const n=this.proxy,s=Ye(e)?e.includes(".")?pu(n,e):()=>n[e]:e.bind(n,n);let i;Te(t)?i=t:(i=t.handler,r=t);const o=qn(this),a=Vs(s,i.bind(n),r);return o(),a}function pu(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}var hu=Symbol("_vte"),gu=e=>e.__isTeleport,js=e=>e&&(e.disabled||e.disabled===""),vu=e=>e&&(e.defer||e.defer===""),mu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,wu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ca=(e,t)=>{const r=e&&e.to;return Ye(r)?t?t(r):null:r},yu={name:"Teleport",__isTeleport:!0,process(e,t,r,n,s,i,o,a,l,c){const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:m,createText:y,createComment:T}}=c,v=js(t.props);let{shapeFlag:x,children:w,dynamicChildren:b}=t;if(e==null){const _=t.el=y(""),A=t.anchor=y("");h(_,r,n),h(A,r,n);const P=(D,O)=>{x&16&&u(w,D,O,s,i,o,a,l)},g=()=>{const D=t.target=Ca(t.props,m),O=Ta(D,t,y,h);D&&(o!=="svg"&&mu(D)?o="svg":o!=="mathml"&&wu(D)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(D),v||(P(D,O),zi(t,!1)))};v&&(P(r,A),zi(t,!0)),vu(t.props)?(t.el.__isMounted=!1,ot(()=>{g(),delete t.el.__isMounted},i)):g()}else{if(vu(t.props)&&e.el.__isMounted===!1){ot(()=>{yu.process(e,t,r,n,s,i,o,a,l,c)},i);return}t.el=e.el,t.targetStart=e.targetStart;const _=t.anchor=e.anchor,A=t.target=e.target,P=t.targetAnchor=e.targetAnchor,g=js(e.props),D=g?r:A,O=g?_:P;if(o==="svg"||mu(A)?o="svg":(o==="mathml"||wu(A))&&(o="mathml"),b?(p(e.dynamicChildren,b,D,s,i,o,a),za(e,t,!0)):l||d(e,t,D,O,s,i,o,a,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ui(t,r,_,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const S=t.target=Ca(t.props,m);S&&Ui(t,S,null,c,0)}else g&&Ui(t,A,P,c,1);zi(t,v)}},remove(e,t,r,{um:n,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(s(c),s(u)),i&&s(l),o&16){const h=i||!js(p);for(let m=0;m<a.length;m++){const y=a[m];n(y,t,r,h,!!y.dynamicChildren)}}},move:Ui,hydrate:lv};function Ui(e,t,r,{o:{insert:n},m:s},i=2){i===0&&n(e.targetAnchor,t,r);const{el:o,anchor:a,shapeFlag:l,children:c,props:u}=e,d=i===2;if(d&&n(o,t,r),(!d||js(u))&&l&16)for(let p=0;p<c.length;p++)s(c[p],t,r,2);d&&n(a,t,r)}function lv(e,t,r,n,s,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:c,createText:u}},d){function p(T,v){let x=v;for(;x;){if(x&&x.nodeType===8){if(x.data==="teleport start anchor")t.targetStart=x;else if(x.data==="teleport anchor"){t.targetAnchor=x,T._lpa=t.targetAnchor&&o(t.targetAnchor);break}}x=o(x)}}function h(T,v){v.anchor=d(o(T),v,a(T),r,n,s,i)}const m=t.target=Ca(t.props,l),y=js(t.props);if(m){const T=m._lpa||m.firstChild;t.shapeFlag&16&&(y?(h(e,t),p(m,T),t.targetAnchor||Ta(m,t,u,c,a(e)===m?e:null)):(t.anchor=o(e),p(m,T),t.targetAnchor||Ta(m,t,u,c),d(T&&o(T),t,m,r,n,s,i))),zi(t,y)}else y&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var xa=yu;function zi(e,t){const r=e.ctx;if(r&&r.ut){let n,s;for(t?(n=e.el,s=e.anchor):(n=e.targetStart,s=e.targetAnchor);n&&n!==s;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Ta(e,t,r,n,s=null){const i=t.targetStart=r(""),o=t.targetAnchor=r("");return i[hu]=o,e&&(n(i,e,s),n(o,e,s)),o}var Cr=Symbol("_leaveCb"),Us=Symbol("_enterCb");function Ea(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ze(()=>{e.isMounted=!0}),fs(()=>{e.isUnmounting=!0}),e}var Xt=[Function,Array],Aa={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xt,onEnter:Xt,onAfterEnter:Xt,onEnterCancelled:Xt,onBeforeLeave:Xt,onLeave:Xt,onAfterLeave:Xt,onLeaveCancelled:Xt,onBeforeAppear:Xt,onAppear:Xt,onAfterAppear:Xt,onAppearCancelled:Xt},bu=e=>{const t=e.subTree;return t.component?bu(t.component):t},cv={name:"BaseTransition",props:Aa,setup(e,{slots:t}){const r=st(),n=Ea();return()=>{const s=t.default&&Ki(t.default(),!0);if(!s||!s.length)return;const i=_u(s),o=Me(e),{mode:a}=o;if(n.isLeaving)return Ia(i);const l=xu(i);if(!l)return Ia(i);let c=ls(l,o,n,r,d=>c=d);l.type!==nt&&Lr(l,c);let u=r.subTree&&xu(r.subTree);if(u&&u.type!==nt&&!fr(u,l)&&bu(r).type!==nt){let d=ls(u,o,n,r);if(Lr(u,d),a==="out-in"&&l.type!==nt)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete d.afterLeave,u=void 0},Ia(i);a==="in-out"&&l.type!==nt?d.delayLeave=(p,h,m)=>{const y=Cu(n,u);y[String(u.key)]=u,p[Cr]=()=>{h(),p[Cr]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function _u(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==nt){t=r;break}}return t}var Su=cv;function Cu(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function ls(e,t,r,n,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:T,onAppear:v,onAfterAppear:x,onAppearCancelled:w}=t,b=String(e.key),_=Cu(r,e),A=(D,O)=>{D&&Zt(D,n,9,O)},P=(D,O)=>{const S=O[1];A(D,O),ve(D)?D.every(E=>E.length<=1)&&S():D.length<=1&&S()},g={mode:o,persisted:a,beforeEnter(D){let O=l;if(!r.isMounted)if(i)O=T||l;else return;D[Cr]&&D[Cr](!0);const S=_[b];S&&fr(e,S)&&S.el[Cr]&&S.el[Cr](),A(O,[D])},enter(D){if(_[b]===e)return;let O=c,S=u,E=d;if(!r.isMounted)if(i)O=v||c,S=x||u,E=w||d;else return;let I=!1;D[Us]=te=>{I||(I=!0,te?A(E,[D]):A(S,[D]),g.delayedLeave&&g.delayedLeave(),D[Us]=void 0)};const J=D[Us].bind(null,!1);O?P(O,[D,J]):J()},leave(D,O){const S=String(e.key);if(D[Us]&&D[Us](!0),r.isUnmounting)return O();A(p,[D]);let E=!1;D[Cr]=J=>{E||(E=!0,O(),J?A(y,[D]):A(m,[D]),D[Cr]=void 0,_[S]===e&&delete _[S])};const I=D[Cr].bind(null,!1);_[S]=e,h?P(h,[D,I]):I()},clone(D){const O=ls(D,t,r,n,s);return s&&s(O),O}};return g}function Ia(e){if(zs(e))return e=pr(e),e.children=null,e}function xu(e){if(!zs(e))return gu(e.type)&&e.children?_u(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Te(r.default))return r.default()}}function Lr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Lr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ki(e,t=!1,r){let n=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=r==null?o.key:String(r)+String(o.key!=null?o.key:i);o.type===Ne?(o.patchFlag&128&&s++,n=n.concat(Ki(o.children,t,a))):(t||o.type!==nt)&&n.push(a!=null?pr(o,{key:a}):o)}if(s>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function Q(e,t){return Te(e)?Ue({name:e.name},t,{setup:e}):e}function Tu(){const e=st();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ra(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function uv(e){const t=st(),r=Qe(null);if(t){const n=t.refs===He?t.refs={}:t.refs;Object.defineProperty(n,e,{enumerable:!0,get:()=>r.value,set:s=>r.value=s})}return r}function Eu(e,t){let r;return!!((r=Object.getOwnPropertyDescriptor(e,t))&&!r.configurable)}var Wi=new WeakMap;function cs(e,t,r,n,s=!1){if(ve(e)){e.forEach((y,T)=>cs(y,t&&(ve(t)?t[T]:t),r,n,s));return}if(Fr(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&cs(e,t,r,n.component.subTree);return}const i=n.shapeFlag&4?ti(n.component):n.el,o=s?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===He?a.refs={}:a.refs,d=a.setupState,p=Me(d),h=d===He?Ac:y=>Eu(u,y)?!1:je(p,y),m=(y,T)=>!(T&&Eu(u,T));if(c!=null&&c!==l){if(Au(t),Ye(c))u[c]=null,h(c)&&(d[c]=null);else if(We(c)){const y=t;m(c,y.k)&&(c.value=null),y.k&&(u[y.k]=null)}}if(Te(l))ns(l,a,12,[o,u]);else{const y=Ye(l),T=We(l);if(y||T){const v=()=>{if(e.f){const x=y?h(l)?d[l]:u[l]:m(l)||!e.k?l.value:u[e.k];if(s)ve(x)&&na(x,i);else if(ve(x))x.includes(i)||x.push(i);else if(y)u[l]=[i],h(l)&&(d[l]=u[l]);else{const w=[i];m(l,e.k)&&(l.value=w),e.k&&(u[e.k]=w)}}else y?(u[l]=o,h(l)&&(d[l]=o)):T&&(m(l,e.k)&&(l.value=o),e.k&&(u[e.k]=o))};if(o){const x=()=>{v(),Wi.delete(e)};x.id=-1,Wi.set(e,x),ot(x,r)}else Au(e),v()}}}function Au(e){const t=Wi.get(e);t&&(t.flags|=8,Wi.delete(e))}var Iu=!1,us=()=>{Iu||(console.error("Hydration completed but contains mismatches."),Iu=!0)},dv=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",fv=e=>e.namespaceURI.includes("MathML"),Gi=e=>{if(e.nodeType===1){if(dv(e))return"svg";if(fv(e))return"mathml"}},ds=e=>e.nodeType===8;function pv(e){const{mt:t,p:r,o:{patchProp:n,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:c}}=e,u=(w,b)=>{if(!b.hasChildNodes()){r(null,w,b),Li(),b._vnode=w;return}d(b.firstChild,w,null,null,null),Li(),b._vnode=w},d=(w,b,_,A,P,g=!1)=>{g=g||!!b.dynamicChildren;const D=ds(w)&&w.data==="[",O=()=>y(w,b,_,A,P,D),{type:S,ref:E,shapeFlag:I,patchFlag:J}=b;let te=w.nodeType;b.el=w,J===-2&&(g=!1,b.dynamicChildren=null);let W=null;switch(S){case an:te!==3?b.children===""?(l(b.el=s(""),o(w),w),W=w):W=O():(w.data!==b.children&&(us(),w.data=b.children),W=i(w));break;case nt:x(w)?(W=i(w),v(b.el=w.content.firstChild,w,_)):te!==8||D?W=O():W=i(w);break;case Mn:if(D&&(w=i(w),te=w.nodeType),te===1||te===3){W=w;const ee=!b.children.length;for(let G=0;G<b.staticCount;G++)ee&&(b.children+=W.nodeType===1?W.outerHTML:W.data),G===b.staticCount-1&&(b.anchor=W),W=i(W);return D?i(W):W}else O();break;case Ne:D?W=m(w,b,_,A,P,g):W=O();break;default:if(I&1)(te!==1||b.type.toLowerCase()!==w.tagName.toLowerCase())&&!x(w)?W=O():W=p(w,b,_,A,P,g);else if(I&6){b.slotScopeIds=P;const ee=o(w);if(D?W=T(w):ds(w)&&w.data==="teleport start"?W=T(w,w.data,"teleport end"):W=i(w),t(b,ee,null,_,A,Gi(ee),g),Fr(b)&&!b.type.__asyncResolved){let G;D?(G=H(Ne),G.anchor=W?W.previousSibling:ee.lastChild):G=w.nodeType===3?Oe(""):H("div"),G.el=w,b.component.subTree=G}}else I&64?te!==8?W=O():W=b.type.hydrate(w,b,_,A,P,g,e,h):I&128&&(W=b.type.hydrate(w,b,_,A,Gi(o(w)),P,g,e,d))}return E!=null&&cs(E,null,A,b),W},p=(w,b,_,A,P,g)=>{g=g||!!b.dynamicChildren;const{type:D,props:O,patchFlag:S,shapeFlag:E,dirs:I,transition:J}=b,te=D==="input"||D==="option";if(te||S!==-1){I&&Sr(b,null,_,"created");let W=!1;if(x(w)){W=ud(null,J)&&_&&_.vnode.props&&_.vnode.props.appear;const G=w.content.firstChild;if(W){const le=G.getAttribute("class");le&&(G.$cls=le),J.beforeEnter(G)}v(G,w,_),b.el=w=G}if(E&16&&!(O&&(O.innerHTML||O.textContent))){let G=h(w.firstChild,b,w,_,A,P,g);for(;G;){Ji(w,1)||us();const le=G;G=G.nextSibling,a(le)}}else if(E&8){let G=b.children;G[0]===`
|
|
4
|
+
`&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&(G=G.slice(1));const{textContent:le}=w;le!==G&&le!==G.replace(/\r\n|\r/g,`
|
|
5
|
+
`)&&(Ji(w,0)||us(),w.textContent=b.children)}if(O){if(te||!g||S&48){const G=w.tagName.includes("-");for(const le in O)(te&&(le.endsWith("value")||le==="indeterminate")||Rs(le)&&!$n(le)||le[0]==="."||G&&!$n(le))&&n(w,le,null,O[le],void 0,_)}else if(O.onClick)n(w,"onClick",null,O.onClick,void 0,_);else if(S&4&&qr(O.style))for(const G in O.style)O.style[G]}let ee;(ee=O&&O.onVnodeBeforeMount)&&Mt(ee,_,b),I&&Sr(b,null,_,"beforeMount"),((ee=O&&O.onVnodeMounted)||I||W)&&gd(()=>{ee&&Mt(ee,_,b),W&&J.enter(w),I&&Sr(b,null,_,"mounted")},A)}return w.nextSibling},h=(w,b,_,A,P,g,D)=>{D=D||!!b.dynamicChildren;const O=b.children,S=O.length;for(let E=0;E<S;E++){const I=D?O[E]:O[E]=Ht(O[E]),J=I.type===an;w?(J&&!D&&E+1<S&&Ht(O[E+1]).type===an&&(l(s(w.data.slice(I.children.length)),_,i(w)),w.data=I.children),w=d(w,I,A,P,g,D)):J&&!I.children?l(I.el=s(""),_):(Ji(_,1)||us(),r(null,I,_,null,A,P,Gi(_),g))}return w},m=(w,b,_,A,P,g)=>{const{slotScopeIds:D}=b;D&&(P=P?P.concat(D):D);const O=o(w),S=h(i(w),b,O,_,A,P,g);return S&&ds(S)&&S.data==="]"?i(b.anchor=S):(us(),l(b.anchor=c("]"),O,S),S)},y=(w,b,_,A,P,g)=>{if(Ji(w.parentElement,1)||us(),b.el=null,g){const S=T(w);for(;;){const E=i(w);if(E&&E!==S)a(E);else break}}const D=i(w),O=o(w);return a(w),r(null,b,O,D,_,A,Gi(O),P),_&&(_.vnode.el=b.el,ro(_,b.el)),D},T=(w,b="[",_="]")=>{let A=0;for(;w;)if(w=i(w),w&&ds(w)&&(w.data===b&&A++,w.data===_)){if(A===0)return i(w);A--}return w},v=(w,b,_)=>{const A=b.parentNode;A&&A.replaceChild(w,b);let P=_;for(;P;)P.vnode.el===b&&(P.vnode.el=P.subTree.el=w),P=P.parent},x=w=>w.nodeType===1&&w.tagName==="TEMPLATE";return[u,d]}var Ru="data-allow-mismatch",hv={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ji(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ru);)e=e.parentElement;const r=e&&e.getAttribute(Ru);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(hv[t])}}var gv=Ai().requestIdleCallback||(e=>setTimeout(e,1)),vv=Ai().cancelIdleCallback||(e=>clearTimeout(e)),mv=(e=1e4)=>t=>{const r=gv(t,{timeout:e});return()=>vv(r)};function wv(e){const{top:t,left:r,bottom:n,right:s}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(t>0&&t<i||n>0&&n<i)&&(r>0&&r<o||s>0&&s<o)}var yv=e=>(t,r)=>{const n=new IntersectionObserver(s=>{for(const i of s)if(i.isIntersecting){n.disconnect(),t();break}},e);return r(s=>{if(s instanceof Element){if(wv(s))return t(),n.disconnect(),!1;n.observe(s)}}),()=>n.disconnect()},bv=e=>t=>{if(e){const r=matchMedia(e);if(r.matches)t();else return r.addEventListener("change",t,{once:!0}),()=>r.removeEventListener("change",t)}},_v=(e=[])=>(t,r)=>{Ye(e)&&(e=[e]);let n=!1;const s=o=>{n||(n=!0,i(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{r(o=>{for(const a of e)o.removeEventListener(a,s)})};return r(o=>{for(const a of e)o.addEventListener(a,s,{once:!0})}),i};function Sv(e,t){if(ds(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(ds(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}var Fr=e=>!!e.type.__asyncLoader;function Cv(e){Te(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const p=()=>(d++,c=null,h()),h=()=>{let m;return c||(m=c=t().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),l)return new Promise((T,v)=>{l(y,()=>T(p()),()=>v(y),d+1)});throw y}).then(y=>m!==c&&c?c:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),u=y,y)))};return Q({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(m,y,T){let v=!1;(y.bu||(y.bu=[])).push(()=>v=!0);const x=()=>{v||T()},w=i?()=>{const b=i(x,_=>Sv(m,_));b&&(y.bum||(y.bum=[])).push(b)}:x;u?w():h().then(()=>!y.isUnmounted&&w())},get __asyncResolved(){return u},setup(){const m=mt;if(Ra(m),u)return()=>Yi(u,m);const y=w=>{c=null,Dn(w,m,13,!n)};if(a&&m.suspense||hs)return h().then(w=>()=>Yi(w,m)).catch(w=>(y(w),()=>n?H(n,{error:w}):null));const T=F(!1),v=F(),x=F(!!s);return s&&setTimeout(()=>{x.value=!1},s),o!=null&&setTimeout(()=>{if(!T.value&&!v.value){const w=new Error(`Async component timed out after ${o}ms.`);y(w),v.value=w}},o),h().then(()=>{T.value=!0,m.parent&&zs(m.parent.vnode)&&m.parent.update()}).catch(w=>{y(w),v.value=w}),()=>{if(T.value&&u)return Yi(u,m);if(v.value&&n)return H(n,{error:v.value});if(r&&!x.value)return Yi(r,m)}}})}function Yi(e,t){const{ref:r,props:n,children:s,ce:i}=t.vnode,o=H(e,n,s);return o.ref=r,o.ce=i,delete t.vnode.ce,o}var zs=e=>e.type.__isKeepAlive,xv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=st(),n=r.ctx;if(!n.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const s=new Map,i=new Set;let o=null;const a=r.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=n,p=d("div");n.activate=(x,w,b,_,A)=>{const P=x.component;c(x,w,b,0,a),l(P.vnode,x,w,b,P,a,_,x.slotScopeIds,A),ot(()=>{P.isDeactivated=!1,P.a&&es(P.a);const g=x.props&&x.props.onVnodeMounted;g&&Mt(g,P.parent,x)},a)},n.deactivate=x=>{const w=x.component;no(w.m),no(w.a),c(x,p,null,1,a),ot(()=>{w.da&&es(w.da);const b=x.props&&x.props.onVnodeUnmounted;b&&Mt(b,w.parent,x),w.isDeactivated=!0},a)};function h(x){ka(x),u(x,r,a,!0)}function m(x){s.forEach((w,b)=>{const _=Xa(Fr(w)?w.type.__asyncResolved||{}:w.type);_&&!x(_)&&y(b)})}function y(x){const w=s.get(x);w&&(!o||!fr(w,o))?h(w):o&&ka(o),s.delete(x),i.delete(x)}Ae(()=>[e.include,e.exclude],([x,w])=>{x&&m(b=>Ks(x,b)),w&&m(b=>!Ks(w,b))},{flush:"post",deep:!0});let T=null;const v=()=>{T!=null&&(so(r.subTree.type)?ot(()=>{s.set(T,Zi(r.subTree))},r.subTree.suspense):s.set(T,Zi(r.subTree)))};return ze(v),Ws(v),fs(()=>{s.forEach(x=>{const{subTree:w,suspense:b}=r,_=Zi(w);if(x.type===_.type&&x.key===_.key){ka(_);const A=_.component.da;A&&ot(A,b);return}h(x)})}),()=>{if(T=null,!t.default)return o=null;const x=t.default(),w=x[0];if(x.length>1)return o=null,x;if(!jr(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return o=null,w;let b=Zi(w);if(b.type===nt)return o=null,b;const _=b.type,A=Xa(Fr(b)?b.type.__asyncResolved||{}:_),{include:P,exclude:g,max:D}=e;if(P&&(!A||!Ks(P,A))||g&&A&&Ks(g,A))return b.shapeFlag&=-257,o=b,w;const O=b.key==null?_:b.key,S=s.get(O);return b.el&&(b=pr(b),w.shapeFlag&128&&(w.ssContent=b)),T=O,S?(b.el=S.el,b.component=S.component,b.transition&&Lr(b,b.transition),b.shapeFlag|=512,i.delete(O),i.add(O)):(i.add(O),D&&i.size>parseInt(D,10)&&y(i.values().next().value)),b.shapeFlag|=256,o=b,so(w.type)?w:b}}};function Ks(e,t){return ve(e)?e.some(r=>Ks(r,t)):Ye(e)?e.split(",").includes(t):og(e)?(e.lastIndex=0,e.test(t)):!1}function ku(e,t){Pu(e,"a",t)}function $u(e,t){Pu(e,"da",t)}function Pu(e,t,r=mt){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Xi(t,n,r),r){let s=r.parent;for(;s&&s.parent;)zs(s.parent.vnode)&&Tv(n,t,r,s),s=s.parent}}function Tv(e,t,r,n){const s=Xi(t,e,n,!0);kt(()=>{na(n[t],s)},r)}function ka(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Zi(e){return e.shapeFlag&128?e.ssContent:e}function Xi(e,t,r=mt,n=!1){if(r){const s=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Pr();const a=qn(r),l=Zt(t,r,e,o);return a(),Dr(),l});return n?s.unshift(i):s.push(i),i}}var Vr=e=>(t,r=mt)=>{(!hs||e==="sp")&&Xi(e,(...n)=>t(...n),r)},Du=Vr("bm"),ze=Vr("m"),$a=Vr("bu"),Ws=Vr("u"),fs=Vr("bum"),kt=Vr("um"),Ou=Vr("sp"),Hu=Vr("rtg"),Mu=Vr("rtc");function Nu(e,t=mt){Xi("ec",e,t)}var Pa="components",Ev="directives";function Av(e,t){return Da(Pa,e,!0,t)||e}var qu=Symbol.for("v-ndc");function Gs(e){return Ye(e)?Da(Pa,e,!1)||e:e||qu}function Iv(e){return Da(Ev,e)}function Da(e,t,r=!0,n=!1){const s=vt||mt;if(s){const i=s.type;if(e===Pa){const a=Xa(i,!1);if(a&&(a===t||a===lt(t)||a===ks(lt(t))))return i}const o=Bu(s[e]||i[e],t)||Bu(s.appContext[e],t);return!o&&n?i:o}}function Bu(e,t){return e&&(e[t]||e[lt(t)]||e[ks(lt(t))])}function Qt(e,t,r,n){let s;const i=r&&r[n],o=ve(e);if(o||Ye(e)){const a=o&&qr(e);let l=!1,c=!1;a&&(l=!Ot(e),c=br(e),e=Pi(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(l?c?rs(dr(e[u])):dr(e[u]):e[u],u,void 0,i&&i[u])}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i&&i[a])}else if(Fe(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,i&&i[l])}}else s=[];return r&&(r[n]=s),s}function Rv(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(ve(n))for(let s=0;s<n.length;s++)e[n[s].name]=n[s].fn;else n&&(e[n.name]=n.key?(...s)=>{const i=n.fn(...s);return i&&(i.key=n.key),i}:n.fn)}return e}function ie(e,t,r={},n,s){if(vt.ce||vt.parent&&Fr(vt.parent)&&vt.parent.ce){const c=Object.keys(r).length>0;return t!=="default"&&(r.name=t),$(),U(Ne,null,[H("slot",r,n&&n())],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),$();const o=i&&Oa(i(r)),a=r.key||o&&o.key,l=U(Ne,{key:(a&&!lr(a)?a:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Oa(e){return e.some(t=>jr(t)?!(t.type===nt||t.type===Ne&&!Oa(t.children)):!0)?e:null}function Lu(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Qn(n)]=e[n];return r}var Ha=e=>e?bd(e)?ti(e):Ha(e.parent):null,Js=Ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ha(e.parent),$root:e=>Ha(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ba(e),$forceUpdate:e=>e.f||(e.f=()=>{_a(e.update)}),$nextTick:e=>e.n||(e.n=ft.bind(e.proxy)),$watch:e=>av.bind(e)}),Ma=(e,t)=>e!==He&&!e.__isScriptSetup&&je(e,t),Na={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return i[t]}else{if(Ma(n,t))return o[t]=1,n[t];if(s!==He&&je(s,t))return o[t]=2,s[t];if(je(i,t))return o[t]=3,i[t];if(r!==He&&je(r,t))return o[t]=4,r[t];qa&&(o[t]=0)}}const c=Js[t];let u,d;if(c)return t==="$attrs"&&bt(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(r!==He&&je(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,je(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:i}=e;return Ma(s,t)?(s[t]=r,!0):n!==He&&je(n,t)?(n[t]=r,!0):je(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,props:i,type:o}},a){let l;return!!(r[a]||e!==He&&a[0]!=="$"&&je(e,a)||Ma(t,a)||je(i,a)||je(n,a)||je(Js,a)||je(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:je(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},kv=Ue({},Na,{get(e,t){if(t!==Symbol.unscopables)return Na.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ug(t)}});function $v(){return null}function Pv(){return null}function Dv(e){}function Ov(e){}function Hv(){return null}function Mv(){}function Nv(e,t){return null}function qv(){return Fu("useSlots").slots}function Bv(){return Fu("useAttrs").attrs}function Fu(e){const t=st();return t.setupContext||(t.setupContext=Cd(t))}function Ys(e){return ve(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Vu(e,t){const r=Ys(e);for(const n in t){if(n.startsWith("__skip"))continue;let s=r[n];s?ve(s)||Te(s)?s=r[n]={type:s,default:t[n]}:s.default=t[n]:s===null&&(s=r[n]={default:t[n]}),s&&t[`__skip_${n}`]&&(s.skipFactory=!0)}return r}function Lv(e,t){return!e||!t?e||t:ve(e)&&ve(t)?e.concat(t):Ue({},Ys(e),Ys(t))}function Fv(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function Vv(e){const t=st();let r=e();ao();const n=()=>{st()!==t&&t.scope.off(),ao()};return sa(r)&&(r=r.catch(s=>{throw qn(t),Promise.resolve().then(()=>Promise.resolve().then(n)),s})),[r,()=>{qn(t),Promise.resolve().then(n)}]}var qa=!0;function jv(e){const t=Ba(e),r=e.proxy,n=e.ctx;qa=!1,t.beforeCreate&&ju(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:h,updated:m,activated:y,deactivated:T,beforeDestroy:v,beforeUnmount:x,destroyed:w,unmounted:b,render:_,renderTracked:A,renderTriggered:P,errorCaptured:g,serverPrefetch:D,expose:O,inheritAttrs:S,components:E,directives:I,filters:J}=t;if(c&&Uv(c,n,null),o)for(const ee in o){const G=o[ee];Te(G)&&(n[ee]=G.bind(r))}if(s){const ee=s.call(r,r);Fe(ee)&&(e.data=Mr(ee))}if(qa=!0,i)for(const ee in i){const G=i[ee],le=V({get:Te(G)?G.bind(r,r):Te(G.get)?G.get.bind(r,r):Yt,set:!Te(G)&&Te(G.set)?G.set.bind(r):Yt});Object.defineProperty(n,ee,{enumerable:!0,configurable:!0,get:()=>le.value,set:K=>le.value=K})}if(a)for(const ee in a)Uu(a[ee],n,r,ee);if(l){const ee=Te(l)?l.call(r):l;Reflect.ownKeys(ee).forEach(G=>{as(G,ee[G])})}u&&ju(u,e,"c");function W(ee,G){ve(G)?G.forEach(le=>ee(le.bind(r))):G&&ee(G.bind(r))}if(W(Du,d),W(ze,p),W($a,h),W(Ws,m),W(ku,y),W($u,T),W(Nu,g),W(Mu,A),W(Hu,P),W(fs,x),W(kt,b),W(Ou,D),ve(O))if(O.length){const ee=e.exposed||(e.exposed={});O.forEach(G=>{Object.defineProperty(ee,G,{get:()=>r[G],set:le=>r[G]=le,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===Yt&&(e.render=_),S!=null&&(e.inheritAttrs=S),E&&(e.components=E),I&&(e.directives=I),D&&Ra(e)}function Uv(e,t,r=Yt){ve(e)&&(e=La(e));for(const n in e){const s=e[n];let i;Fe(s)?"default"in s?i=Rt(s.from||n,s.default,!0):i=Rt(s.from||n):i=Rt(s),We(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function ju(e,t,r){Zt(ve(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Uu(e,t,r,n){let s=n.includes(".")?pu(r,n):()=>r[n];if(Ye(e)){const i=t[e];Te(i)&&Ae(s,i)}else if(Te(e))Ae(s,e.bind(r));else if(Fe(e))if(ve(e))e.forEach(i=>Uu(i,t,r,n));else{const i=Te(e.handler)?e.handler.bind(r):t[e.handler];Te(i)&&Ae(s,i,e)}}function Ba(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!r&&!n?l=t:(l={},s.length&&s.forEach(c=>Qi(l,c,o,!0)),Qi(l,t,o)),Fe(t)&&i.set(t,l),l}function Qi(e,t,r,n=!1){const{mixins:s,extends:i}=t;i&&Qi(e,i,r,!0),s&&s.forEach(o=>Qi(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const a=zv[o]||r&&r[o];e[o]=a?a(e[o],t[o]):t[o]}return e}var zv={data:zu,props:Ku,emits:Ku,methods:Zs,computed:Zs,beforeCreate:$t,created:$t,beforeMount:$t,mounted:$t,beforeUpdate:$t,updated:$t,beforeDestroy:$t,beforeUnmount:$t,destroyed:$t,unmounted:$t,activated:$t,deactivated:$t,errorCaptured:$t,serverPrefetch:$t,components:Zs,directives:Zs,watch:Wv,provide:zu,inject:Kv};function zu(e,t){return t?e?function(){return Ue(Te(e)?e.call(this,this):e,Te(t)?t.call(this,this):t)}:t:e}function Kv(e,t){return Zs(La(e),La(t))}function La(e){if(ve(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function $t(e,t){return e?[...new Set([].concat(e,t))]:t}function Zs(e,t){return e?Ue(Object.create(null),e,t):t}function Ku(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Ue(Object.create(null),Ys(e),Ys(t??{})):t}function Wv(e,t){if(!e)return t;if(!t)return e;const r=Ue(Object.create(null),e);for(const n in t)r[n]=$t(e[n],t[n]);return r}function Wu(){return{app:null,config:{isNativeTag:Ac,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Gv=0;function Jv(e,t){return function(n,s=null){Te(n)||(n=Ue({},n)),s!=null&&!Fe(s)&&(s=null);const i=Wu(),o=new WeakSet,a=[];let l=!1;const c=i.app={_uid:Gv++,_component:n,_props:s,_container:null,_context:i,_instance:null,version:Td,get config(){return i.config},set config(u){},use(u,...d){return o.has(u)||(u&&Te(u.install)?(o.add(u),u.install(c,...d)):Te(u)&&(o.add(u),u(c,...d))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,d){return d?(i.components[u]=d,c):i.components[u]},directive(u,d){return d?(i.directives[u]=d,c):i.directives[u]},mount(u,d,p){if(!l){const h=c._ceVNode||H(n,s);return h.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(h,u):e(h,u,p),l=!0,c._container=u,u.__vue_app__=c,ti(h.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Zt(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return i.provides[u]=d,c},runWithContext(u){const d=On;On=c;try{return u()}finally{On=d}}};return c}}var On=null;function Yv(e,t,r=He){const n=st(),s=lt(t),i=Dt(t),o=Gu(e,s),a=qs((l,c)=>{let u,d=He,p;return fu(()=>{const h=e[s];At(u,h)&&(u=h,c())}),{get(){return l(),r.get?r.get(u):u},set(h){const m=r.set?r.set(h):h;if(!At(m,u)&&!(d!==He&&At(h,d)))return;const y=n.vnode.props;y&&(t in y||s in y||i in y)&&(`onUpdate:${t}`in y||`onUpdate:${s}`in y||`onUpdate:${i}`in y)||(u=h,c()),n.emit(`update:${t}`,m),At(h,m)&&At(h,d)&&!At(m,p)&&c(),d=h,p=m}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||He:a,done:!1}:{done:!0}}}},a}var Gu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${lt(t)}Modifiers`]||e[`${Dt(t)}Modifiers`];function Zv(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||He;let s=r;const i=t.startsWith("update:"),o=i&&Gu(n,t.slice(7));o&&(o.trim&&(s=r.map(u=>Ye(u)?u.trim():u)),o.number&&(s=r.map(Ti)));let a,l=n[a=Qn(t)]||n[a=Qn(lt(t))];!l&&i&&(l=n[a=Qn(Dt(t))]),l&&Zt(l,e,6,s);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Zt(c,e,6,s)}}var Xv=new WeakMap;function Ju(e,t,r=!1){const n=r?Xv:t.emitsCache,s=n.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!Te(e)){const l=c=>{const u=Ju(c,t,!0);u&&(a=!0,Ue(o,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Fe(e)&&n.set(e,null),null):(ve(i)?i.forEach(l=>o[l]=null):Ue(o,i),Fe(e)&&n.set(e,o),o)}function eo(e,t){return!e||!Rs(t)?!1:(t=t.slice(2).replace(/Once$/,""),je(e,t[0].toLowerCase()+t.slice(1))||je(e,Dt(t))||je(e,t))}function to(e){const{type:t,vnode:r,proxy:n,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:d,data:p,setupState:h,ctx:m,inheritAttrs:y}=e,T=Fs(e);let v,x;try{if(r.shapeFlag&4){const b=s||n,_=b;v=Ht(c.call(_,b,u,d,h,p,m)),x=a}else{const b=t;v=Ht(b.length>1?b(d,{attrs:a,slots:o,emit:l}):b(d,null)),x=t.props?a:em(a)}}catch(b){Qs.length=0,Dn(b,e,1),v=H(nt)}let w=v;if(x&&y!==!1){const b=Object.keys(x),{shapeFlag:_}=w;b.length&&_&7&&(i&&b.some(ra)&&(x=tm(x,i)),w=pr(w,x,!1,!0))}return r.dirs&&(w=pr(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&Lr(w,r.transition),v=w,Fs(T),v}function Qv(e,t=!0){let r;for(let n=0;n<e.length;n++){const s=e[n];if(jr(s)){if(s.type!==nt||s.children==="v-if"){if(r)return;r=s}}else return}return r}var em=e=>{let t;for(const r in e)(r==="class"||r==="style"||Rs(r))&&((t||(t={}))[r]=e[r]);return t},tm=(e,t)=>{const r={};for(const n in e)(!ra(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function rm(e,t,r){const{props:n,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Yu(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(Zu(o,n,p)&&!eo(c,p))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Yu(n,o,c):!0:!!o;return!1}function Yu(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const i=n[s];if(Zu(t,e,i)&&!eo(r,i))return!0}return!1}function Zu(e,t,r){const n=e[r],s=t[r];return r==="style"&&Fe(n)&&Fe(s)?!$r(n,s):n!==s}function ro({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}var Xu={},Qu=()=>Object.create(Xu),ed=e=>Object.getPrototypeOf(e)===Xu;function nm(e,t,r,n=!1){const s={},i=Qu();e.propsDefaults=Object.create(null),td(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);r?e.props=n?s:Qc(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function sm(e,t,r,n){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=Me(s),[l]=e.propsOptions;let c=!1;if((n||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(eo(e.emitsOptions,p))continue;const h=t[p];if(l)if(je(i,p))h!==i[p]&&(i[p]=h,c=!0);else{const m=lt(p);s[m]=Fa(l,a,m,h,e,!1)}else h!==i[p]&&(i[p]=h,c=!0)}}}else{td(e,t,s,i)&&(c=!0);let u;for(const d in a)(!t||!je(t,d)&&((u=Dt(d))===d||!je(t,u)))&&(l?r&&(r[d]!==void 0||r[u]!==void 0)&&(s[d]=Fa(l,a,d,void 0,e,!0)):delete s[d]);if(i!==a)for(const d in i)(!t||!je(t,d))&&(delete i[d],c=!0)}c&&Or(e.attrs,"set","")}function td(e,t,r,n){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if($n(l))continue;const c=t[l];let u;s&&je(s,u=lt(l))?!i||!i.includes(u)?r[u]=c:(a||(a={}))[u]=c:eo(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(i){const l=Me(r),c=a||He;for(let u=0;u<i.length;u++){const d=i[u];r[d]=Fa(s,l,d,c[d],e,!je(c,d))}}return o}function Fa(e,t,r,n,s,i){const o=e[r];if(o!=null){const a=je(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Te(l)){const{propsDefaults:c}=s;if(r in c)n=c[r];else{const u=qn(s);n=c[r]=l.call(null,t),u()}}else n=l;s.ce&&s.ce._setProp(r,n)}o[0]&&(i&&!a?n=!1:o[1]&&(n===""||n===Dt(r))&&(n=!0))}return n}var im=new WeakMap;function rd(e,t,r=!1){const n=r?im:t.propsCache,s=n.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!Te(e)){const u=d=>{l=!0;const[p,h]=rd(d,t,!0);Ue(o,p),h&&a.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Fe(e)&&n.set(e,Yn),Yn;if(ve(i))for(let u=0;u<i.length;u++){const d=lt(i[u]);nd(d)&&(o[d]=He)}else if(i)for(const u in i){const d=lt(u);if(nd(d)){const p=i[u],h=o[d]=ve(p)||Te(p)?{type:p}:Ue({},p),m=h.type;let y=!1,T=!0;if(ve(m))for(let v=0;v<m.length;++v){const x=m[v],w=Te(x)&&x.name;if(w==="Boolean"){y=!0;break}else w==="String"&&(T=!1)}else y=Te(m)&&m.name==="Boolean";h[0]=y,h[1]=T,(y||je(h,"default"))&&a.push(d)}}const c=[o,a];return Fe(e)&&n.set(e,c),c}function nd(e){return e[0]!=="$"&&!$n(e)}var Va=e=>e==="_"||e==="_ctx"||e==="$stable",ja=e=>ve(e)?e.map(Ht):[Ht(e)],om=(e,t,r)=>{if(t._n)return t;const n=k((...s)=>ja(t(...s)),r);return n._c=!1,n},sd=(e,t,r)=>{const n=e._ctx;for(const s in e){if(Va(s))continue;const i=e[s];if(Te(i))t[s]=om(s,i,n);else if(i!=null){const o=ja(i);t[s]=()=>o}}},id=(e,t)=>{const r=ja(t);e.slots.default=()=>r},od=(e,t,r)=>{for(const n in t)(r||!Va(n))&&(e[n]=t[n])},am=(e,t,r)=>{const n=e.slots=Qu();if(e.vnode.shapeFlag&32){const s=t._;s?(od(n,t,r),r&&kc(n,"_",s,!0)):sd(t,n)}else t&&id(e,t)},lm=(e,t,r)=>{const{vnode:n,slots:s}=e;let i=!0,o=He;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:od(s,t,r):(i=!t.$stable,sd(t,s)),o=t}else t&&(id(e,t),o={default:1});if(i)for(const a in s)!Va(a)&&o[a]==null&&delete s[a]};function tx(){}var ot=gd;function ad(e){return cd(e)}function ld(e){return cd(e,pv)}function cd(e,t){const r=Ai();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:h=Yt,insertStaticContent:m}=e,y=(C,R,M,j=null,Y=null,Z=null,ce=void 0,ae=null,N=!!R.dynamicChildren)=>{if(C===R)return;C&&!fr(C,R)&&(j=Be(C),de(C,Y,Z,!0),C=null),R.patchFlag===-2&&(N=!1,R.dynamicChildren=null);const{type:q,ref:se,shapeFlag:he}=R;switch(q){case an:T(C,R,M,j);break;case nt:v(C,R,M,j);break;case Mn:C==null&&x(R,M,j,ce);break;case Ne:E(C,R,M,j,Y,Z,ce,ae,N);break;default:he&1?_(C,R,M,j,Y,Z,ce,ae,N):he&6?I(C,R,M,j,Y,Z,ce,ae,N):(he&64||he&128)&&q.process(C,R,M,j,Y,Z,ce,ae,N,ne)}se!=null&&Y?cs(se,C&&C.ref,Z,R||C,!R):se==null&&C&&C.ref!=null&&cs(C.ref,null,Z,C,!0)},T=(C,R,M,j)=>{if(C==null)n(R.el=a(R.children),M,j);else{const Y=R.el=C.el;R.children!==C.children&&c(Y,R.children)}},v=(C,R,M,j)=>{C==null?n(R.el=l(R.children||""),M,j):R.el=C.el},x=(C,R,M,j)=>{[C.el,C.anchor]=m(C.children,R,M,j,C.el,C.anchor)},w=({el:C,anchor:R},M,j)=>{let Y;for(;C&&C!==R;)Y=p(C),n(C,M,j),C=Y;n(R,M,j)},b=({el:C,anchor:R})=>{let M;for(;C&&C!==R;)M=p(C),s(C),C=M;s(R)},_=(C,R,M,j,Y,Z,ce,ae,N)=>{if(R.type==="svg"?ce="svg":R.type==="math"&&(ce="mathml"),C==null)A(R,M,j,Y,Z,ce,ae,N);else{const q=C.el&&C.el._isVueCE?C.el:null;try{q&&q._beginPatch(),D(C,R,Y,Z,ce,ae,N)}finally{q&&q._endPatch()}}},A=(C,R,M,j,Y,Z,ce,ae)=>{let N,q;const{props:se,shapeFlag:he,transition:_e,dirs:Re}=C;if(N=C.el=o(C.type,Z,se&&se.is,se),he&8?u(N,C.children):he&16&&g(C.children,N,null,j,Y,Ua(C,Z),ce,ae),Re&&Sr(C,null,j,"created"),P(N,C,C.scopeId,ce,j),se){for(const rt in se)rt!=="value"&&!$n(rt)&&i(N,rt,null,se[rt],Z,j);"value"in se&&i(N,"value",null,se.value,Z),(q=se.onVnodeBeforeMount)&&Mt(q,j,C)}Re&&Sr(C,null,j,"beforeMount");const Le=ud(Y,_e);Le&&_e.beforeEnter(N),n(N,R,M),((q=se&&se.onVnodeMounted)||Le||Re)&&ot(()=>{q&&Mt(q,j,C),Le&&_e.enter(N),Re&&Sr(C,null,j,"mounted")},Y)},P=(C,R,M,j,Y)=>{if(M&&h(C,M),j)for(let Z=0;Z<j.length;Z++)h(C,j[Z]);if(Y){let Z=Y.subTree;if(R===Z||so(Z.type)&&(Z.ssContent===R||Z.ssFallback===R)){const ce=Y.vnode;P(C,ce,ce.scopeId,ce.slotScopeIds,Y.parent)}}},g=(C,R,M,j,Y,Z,ce,ae,N=0)=>{for(let q=N;q<C.length;q++)y(null,C[q]=ae?Ur(C[q]):Ht(C[q]),R,M,j,Y,Z,ce,ae)},D=(C,R,M,j,Y,Z,ce)=>{const ae=R.el=C.el;let{patchFlag:N,dynamicChildren:q,dirs:se}=R;N|=C.patchFlag&16;const he=C.props||He,_e=R.props||He;let Re;if(M&&Hn(M,!1),(Re=_e.onVnodeBeforeUpdate)&&Mt(Re,M,R,C),se&&Sr(R,C,M,"beforeUpdate"),M&&Hn(M,!0),(he.innerHTML&&_e.innerHTML==null||he.textContent&&_e.textContent==null)&&u(ae,""),q?O(C.dynamicChildren,q,ae,M,j,Ua(R,Y),Z):ce||G(C,R,ae,null,M,j,Ua(R,Y),Z,!1),N>0){if(N&16)S(ae,he,_e,M,Y);else if(N&2&&he.class!==_e.class&&i(ae,"class",null,_e.class,Y),N&4&&i(ae,"style",he.style,_e.style,Y),N&8){const Le=R.dynamicProps;for(let rt=0;rt<Le.length;rt++){const Ke=Le[rt],Lt=he[Ke],Et=_e[Ke];(Et!==Lt||Ke==="value")&&i(ae,Ke,Lt,Et,Y,M)}}N&1&&C.children!==R.children&&u(ae,R.children)}else!ce&&q==null&&S(ae,he,_e,M,Y);((Re=_e.onVnodeUpdated)||se)&&ot(()=>{Re&&Mt(Re,M,R,C),se&&Sr(R,C,M,"updated")},j)},O=(C,R,M,j,Y,Z,ce)=>{for(let ae=0;ae<R.length;ae++){const N=C[ae],q=R[ae];y(N,q,N.el&&(N.type===Ne||!fr(N,q)||N.shapeFlag&198)?d(N.el):M,null,j,Y,Z,ce,!0)}},S=(C,R,M,j,Y)=>{if(R!==M){if(R!==He)for(const Z in R)!$n(Z)&&!(Z in M)&&i(C,Z,R[Z],null,Y,j);for(const Z in M){if($n(Z))continue;const ce=M[Z],ae=R[Z];ce!==ae&&Z!=="value"&&i(C,Z,ae,ce,Y,j)}"value"in M&&i(C,"value",R.value,M.value,Y)}},E=(C,R,M,j,Y,Z,ce,ae,N)=>{const q=R.el=C?C.el:a(""),se=R.anchor=C?C.anchor:a("");let{patchFlag:he,dynamicChildren:_e,slotScopeIds:Re}=R;Re&&(ae=ae?ae.concat(Re):Re),C==null?(n(q,M,j),n(se,M,j),g(R.children||[],M,se,Y,Z,ce,ae,N)):he>0&&he&64&&_e&&C.dynamicChildren&&C.dynamicChildren.length===_e.length?(O(C.dynamicChildren,_e,M,Y,Z,ce,ae),(R.key!=null||Y&&R===Y.subTree)&&za(C,R,!0)):G(C,R,M,se,Y,Z,ce,ae,N)},I=(C,R,M,j,Y,Z,ce,ae,N)=>{R.slotScopeIds=ae,C==null?R.shapeFlag&512?Y.ctx.activate(R,M,j,ce,N):J(R,M,j,Y,Z,ce,N):te(C,R,N)},J=(C,R,M,j,Y,Z,ce)=>{const ae=C.component=yd(C,j,Y);if(zs(C)&&(ae.ctx.renderer=ne),_d(ae,!1,ce),ae.asyncDep){if(Y&&Y.registerDep(ae,W,ce),!C.el){const N=ae.subTree=H(nt);v(null,N,R,M),C.placeholder=N.el}}else W(ae,C,R,M,Y,Z,ce)},te=(C,R,M)=>{const j=R.component=C.component;if(rm(C,R,M))if(j.asyncDep&&!j.asyncResolved){ee(j,R,M);return}else j.next=R,j.update();else R.el=C.el,j.vnode=R},W=(C,R,M,j,Y,Z,ce)=>{const ae=()=>{if(C.isMounted){let{next:he,bu:_e,u:Re,parent:Le,vnode:rt}=C;{const Gt=dd(C);if(Gt){he&&(he.el=rt.el,ee(C,he,ce)),Gt.asyncDep.then(()=>{ot(()=>{C.isUnmounted||q()},Y)});return}}let Ke=he,Lt;Hn(C,!1),he?(he.el=rt.el,ee(C,he,ce)):he=rt,_e&&es(_e),(Lt=he.props&&he.props.onVnodeBeforeUpdate)&&Mt(Lt,Le,he,rt),Hn(C,!0);const Et=to(C),yr=C.subTree;C.subTree=Et,y(yr,Et,d(yr.el),Be(yr),C,Y,Z),he.el=Et.el,Ke===null&&ro(C,Et.el),Re&&ot(Re,Y),(Lt=he.props&&he.props.onVnodeUpdated)&&ot(()=>Mt(Lt,Le,he,rt),Y)}else{let he;const{el:_e,props:Re}=R,{bm:Le,m:rt,parent:Ke,root:Lt,type:Et}=C,yr=Fr(R);if(Hn(C,!1),Le&&es(Le),!yr&&(he=Re&&Re.onVnodeBeforeMount)&&Mt(he,Ke,R),Hn(C,!0),_e&&ue){const Gt=()=>{C.subTree=to(C),ue(_e,C.subTree,C,Y,null)};yr&&Et.__asyncHydrate?Et.__asyncHydrate(_e,C,Gt):Gt()}else{Lt.ce&&Lt.ce._hasShadowRoot()&&Lt.ce._injectChildStyle(Et);const Gt=C.subTree=to(C);y(null,Gt,M,j,C,Y,Z),R.el=Gt.el}if(rt&&ot(rt,Y),!yr&&(he=Re&&Re.onVnodeMounted)){const Gt=R;ot(()=>Mt(he,Ke,Gt),Y)}(R.shapeFlag&256||Ke&&Fr(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&C.a&&ot(C.a,Y),C.isMounted=!0,R=M=j=null}};C.scope.on();const N=C.effect=new $s(ae);C.scope.off();const q=C.update=N.run.bind(N),se=C.job=N.runIfDirty.bind(N);se.i=C,se.id=C.uid,N.scheduler=()=>_a(se),Hn(C,!0),q()},ee=(C,R,M)=>{R.component=C;const j=C.vnode.props;C.vnode=R,C.next=null,sm(C,R.props,j,M),lm(C,R.children,M),Pr(),au(C),Dr()},G=(C,R,M,j,Y,Z,ce,ae,N=!1)=>{const q=C&&C.children,se=C?C.shapeFlag:0,he=R.children,{patchFlag:_e,shapeFlag:Re}=R;if(_e>0){if(_e&128){K(q,he,M,j,Y,Z,ce,ae,N);return}else if(_e&256){le(q,he,M,j,Y,Z,ce,ae,N);return}}Re&8?(se&16&&be(q,Y,Z),he!==q&&u(M,he)):se&16?Re&16?K(q,he,M,j,Y,Z,ce,ae,N):be(q,Y,Z,!0):(se&8&&u(M,""),Re&16&&g(he,M,j,Y,Z,ce,ae,N))},le=(C,R,M,j,Y,Z,ce,ae,N)=>{C=C||Yn,R=R||Yn;const q=C.length,se=R.length,he=Math.min(q,se);let _e;for(_e=0;_e<he;_e++){const Re=R[_e]=N?Ur(R[_e]):Ht(R[_e]);y(C[_e],Re,M,null,Y,Z,ce,ae,N)}q>se?be(C,Y,Z,!0,!1,he):g(R,M,j,Y,Z,ce,ae,N,he)},K=(C,R,M,j,Y,Z,ce,ae,N)=>{let q=0;const se=R.length;let he=C.length-1,_e=se-1;for(;q<=he&&q<=_e;){const Re=C[q],Le=R[q]=N?Ur(R[q]):Ht(R[q]);if(fr(Re,Le))y(Re,Le,M,null,Y,Z,ce,ae,N);else break;q++}for(;q<=he&&q<=_e;){const Re=C[he],Le=R[_e]=N?Ur(R[_e]):Ht(R[_e]);if(fr(Re,Le))y(Re,Le,M,null,Y,Z,ce,ae,N);else break;he--,_e--}if(q>he){if(q<=_e){const Re=_e+1,Le=Re<se?R[Re].el:j;for(;q<=_e;)y(null,R[q]=N?Ur(R[q]):Ht(R[q]),M,Le,Y,Z,ce,ae,N),q++}}else if(q>_e)for(;q<=he;)de(C[q],Y,Z,!0),q++;else{const Re=q,Le=q,rt=new Map;for(q=Le;q<=_e;q++){const Jt=R[q]=N?Ur(R[q]):Ht(R[q]);Jt.key!=null&&rt.set(Jt.key,q)}let Ke,Lt=0;const Et=_e-Le+1;let yr=!1,Gt=0;const _i=new Array(Et);for(q=0;q<Et;q++)_i[q]=0;for(q=Re;q<=he;q++){const Jt=C[q];if(Lt>=Et){de(Jt,Y,Z,!0);continue}let kr;if(Jt.key!=null)kr=rt.get(Jt.key);else for(Ke=Le;Ke<=_e;Ke++)if(_i[Ke-Le]===0&&fr(Jt,R[Ke])){kr=Ke;break}kr===void 0?de(Jt,Y,Z,!0):(_i[kr-Le]=q+1,kr>=Gt?Gt=kr:yr=!0,y(Jt,R[kr],M,null,Y,Z,ce,ae,N),Lt++)}const Jh=yr?cm(_i):Yn;for(Ke=Jh.length-1,q=Et-1;q>=0;q--){const Jt=Le+q,kr=R[Jt],Yh=R[Jt+1],Zh=Jt+1<se?Yh.el||fd(Yh):j;_i[q]===0?y(null,kr,M,Zh,Y,Z,ce,ae,N):yr&&(Ke<0||q!==Jh[Ke]?oe(kr,M,Zh,2):Ke--)}}},oe=(C,R,M,j,Y=null)=>{const{el:Z,type:ce,transition:ae,children:N,shapeFlag:q}=C;if(q&6){oe(C.component.subTree,R,M,j);return}if(q&128){C.suspense.move(R,M,j);return}if(q&64){ce.move(C,R,M,ne);return}if(ce===Ne){n(Z,R,M);for(let se=0;se<N.length;se++)oe(N[se],R,M,j);n(C.anchor,R,M);return}if(ce===Mn){w(C,R,M);return}if(j!==2&&q&1&&ae)if(j===0)ae.beforeEnter(Z),n(Z,R,M),ot(()=>ae.enter(Z),Y);else{const{leave:se,delayLeave:he,afterLeave:_e}=ae,Re=()=>{C.ctx.isUnmounted?s(Z):n(Z,R,M)},Le=()=>{Z._isLeaving&&Z[Cr](!0),se(Z,()=>{Re(),_e&&_e()})};he?he(Z,Re,Le):Le()}else n(Z,R,M)},de=(C,R,M,j=!1,Y=!1)=>{const{type:Z,props:ce,ref:ae,children:N,dynamicChildren:q,shapeFlag:se,patchFlag:he,dirs:_e,cacheIndex:Re}=C;if(he===-2&&(Y=!1),ae!=null&&(Pr(),cs(ae,null,M,C,!0),Dr()),Re!=null&&(R.renderCache[Re]=void 0),se&256){R.ctx.deactivate(C);return}const Le=se&1&&_e,rt=!Fr(C);let Ke;if(rt&&(Ke=ce&&ce.onVnodeBeforeUnmount)&&Mt(Ke,R,C),se&6)Se(C.component,M,j);else{if(se&128){C.suspense.unmount(M,j);return}Le&&Sr(C,null,R,"beforeUnmount"),se&64?C.type.remove(C,R,M,ne,j):q&&!q.hasOnce&&(Z!==Ne||he>0&&he&64)?be(q,R,M,!1,!0):(Z===Ne&&he&384||!Y&&se&16)&&be(N,R,M),j&&xe(C)}(rt&&(Ke=ce&&ce.onVnodeUnmounted)||Le)&&ot(()=>{Ke&&Mt(Ke,R,C),Le&&Sr(C,null,R,"unmounted")},M)},xe=C=>{const{type:R,el:M,anchor:j,transition:Y}=C;if(R===Ne){De(M,j);return}if(R===Mn){b(C);return}const Z=()=>{s(M),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(C.shapeFlag&1&&Y&&!Y.persisted){const{leave:ce,delayLeave:ae}=Y,N=()=>ce(M,Z);ae?ae(C.el,Z,N):N()}else Z()},De=(C,R)=>{let M;for(;C!==R;)M=p(C),s(C),C=M;s(R)},Se=(C,R,M)=>{const{bum:j,scope:Y,job:Z,subTree:ce,um:ae,m:N,a:q}=C;no(N),no(q),j&&es(j),Y.stop(),Z&&(Z.flags|=8,de(ce,C,R,M)),ae&&ot(ae,R),ot(()=>{C.isUnmounted=!0},R)},be=(C,R,M,j=!1,Y=!1,Z=0)=>{for(let ce=Z;ce<C.length;ce++)de(C[ce],R,M,j,Y)},Be=C=>{if(C.shapeFlag&6)return Be(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const R=p(C.anchor||C.el),M=R&&R[hu];return M?p(M):R};let it=!1;const B=(C,R,M)=>{let j;C==null?R._vnode&&(de(R._vnode,null,null,!0),j=R._vnode.component):y(R._vnode||null,C,R,null,null,null,M),R._vnode=C,it||(it=!0,au(j),Li(),it=!1)},ne={p:y,um:de,m:oe,r:xe,mt:J,mc:g,pc:G,pbc:O,n:Be,o:e};let X,ue;return t&&([X,ue]=t(ne)),{render:B,hydrate:X,createApp:Jv(B,X)}}function Ua({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Hn({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ud(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function za(e,t,r=!1){const n=e.children,s=t.children;if(ve(n)&&ve(s))for(let i=0;i<n.length;i++){const o=n[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ur(s[i]),a.el=o.el),!r&&a.patchFlag!==-2&&za(o,a)),a.type===an&&(a.patchFlag===-1&&(a=s[i]=Ur(a)),a.el=o.el),a.type===nt&&!a.el&&(a.el=o.el)}}function cm(e){const t=e.slice(),r=[0];let n,s,i,o,a;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(s=r[r.length-1],e[s]<c){t[n]=s,r.push(n);continue}for(i=0,o=r.length-1;i<o;)a=i+o>>1,e[r[a]]<c?i=a+1:o=a;c<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}function dd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:dd(t)}function no(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function fd(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?fd(t.subTree):null}var so=e=>e.__isSuspense,Ka=0,um={name:"Suspense",__isSuspense:!0,process(e,t,r,n,s,i,o,a,l,c){if(e==null)dm(t,r,n,s,i,o,a,l,c);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}fm(e,t,r,n,s,o,a,l,c)}},hydrate:pm,normalize:hm};function Xs(e,t){const r=e.props&&e.props[t];Te(r)&&r()}function dm(e,t,r,n,s,i,o,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),p=e.suspense=pd(e,s,n,t,d,r,i,o,a,l);c(null,p.pendingBranch=e.ssContent,d,null,n,p,i,o),p.deps>0?(Xs(e,"onPending"),Xs(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,i,o),ps(p,e.ssFallback)):p.resolve(!1,!0)}function fm(e,t,r,n,s,i,o,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:m,pendingBranch:y,isInFallback:T,isHydrating:v}=d;if(y)d.pendingBranch=p,fr(y,p)?(l(y,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():T&&(v||(l(m,h,r,n,s,null,i,o,a),ps(d,h)))):(d.pendingId=Ka++,v?(d.isHydrating=!1,d.activeBranch=y):c(y,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),T?(l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():(l(m,h,r,n,s,null,i,o,a),ps(d,h))):m&&fr(m,p)?(l(m,p,r,n,s,d,i,o,a),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0&&d.resolve()));else if(m&&fr(m,p))l(m,p,r,n,s,d,i,o,a),ps(d,p);else if(Xs(t,"onPending"),d.pendingBranch=p,p.shapeFlag&512?d.pendingId=p.component.suspenseId:d.pendingId=Ka++,l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0)d.resolve();else{const{timeout:x,pendingId:w}=d;x>0?setTimeout(()=>{d.pendingId===w&&d.fallback(h)},x):x===0&&d.fallback(h)}}function pd(e,t,r,n,s,i,o,a,l,c,u=!1){const{p:d,m:p,um:h,n:m,o:{parentNode:y,remove:T}}=c;let v;const x=gm(e);x&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const w=e.props?Ei(e.props.timeout):void 0,b=i,_={vnode:e,parent:t,parentComponent:r,namespace:o,container:n,hiddenContainer:s,deps:0,pendingId:Ka++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(A=!1,P=!1){const{vnode:g,activeBranch:D,pendingBranch:O,pendingId:S,effects:E,parentComponent:I,container:J,isInFallback:te}=_;let W=!1;_.isHydrating?_.isHydrating=!1:A||(W=D&&O.transition&&O.transition.mode==="out-in",W&&(D.transition.afterLeave=()=>{S===_.pendingId&&(p(O,J,i===b?m(D):i,0),Bs(E),te&&g.ssFallback&&(g.ssFallback.el=null))}),D&&(y(D.el)===J&&(i=m(D)),h(D,I,_,!0),!W&&te&&g.ssFallback&&ot(()=>g.ssFallback.el=null,_)),W||p(O,J,i,0)),ps(_,O),_.pendingBranch=null,_.isInFallback=!1;let ee=_.parent,G=!1;for(;ee;){if(ee.pendingBranch){ee.effects.push(...E),G=!0;break}ee=ee.parent}!G&&!W&&Bs(E),_.effects=[],x&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Xs(g,"onResolve")},fallback(A){if(!_.pendingBranch)return;const{vnode:P,activeBranch:g,parentComponent:D,container:O,namespace:S}=_;Xs(P,"onFallback");const E=m(g),I=()=>{_.isInFallback&&(d(null,A,O,E,D,null,S,a,l),ps(_,A))},J=A.transition&&A.transition.mode==="out-in";J&&(g.transition.afterLeave=I),_.isInFallback=!0,h(g,D,null,!0),J||I()},move(A,P,g){_.activeBranch&&p(_.activeBranch,A,P,g),_.container=A},next(){return _.activeBranch&&m(_.activeBranch)},registerDep(A,P,g){const D=!!_.pendingBranch;D&&_.deps++;const O=A.vnode.el;A.asyncDep.catch(S=>{Dn(S,A,0)}).then(S=>{if(A.isUnmounted||_.isUnmounted||_.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:E}=A;Ya(A,S,!1),O&&(E.el=O);const I=!O&&A.subTree.el;P(A,E,y(O||A.subTree.el),O?null:m(A.subTree),_,o,g),I&&(E.placeholder=null,T(I)),ro(A,E.el),D&&--_.deps===0&&_.resolve()})},unmount(A,P){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,r,A,P),_.pendingBranch&&h(_.pendingBranch,r,A,P)}};return _}function pm(e,t,r,n,s,i,o,a,l){const c=t.suspense=pd(t,n,r,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),u=l(e,c.pendingBranch=t.ssContent,r,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function hm(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=hd(n?r.default:r),e.ssFallback=n?hd(r.fallback):H(nt)}function hd(e){let t;if(Te(e)){const r=Nn&&e._c;r&&(e._d=!1,$()),e=e(),r&&(e._d=!0,t=Ct,vd())}return ve(e)&&(e=Qv(e)),e=Ht(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function gd(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):Bs(e)}function ps(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,n&&n.subTree===r&&(n.vnode.el=s,ro(n,s))}function gm(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var Ne=Symbol.for("v-fgt"),an=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),Mn=Symbol.for("v-stc"),Qs=[],Ct=null;function $(e=!1){Qs.push(Ct=e?null:[])}function vd(){Qs.pop(),Ct=Qs[Qs.length-1]||null}var Nn=1;function ei(e,t=!1){Nn+=e,e<0&&Ct&&t&&(Ct.hasOnce=!0)}function md(e){return e.dynamicChildren=Nn>0?Ct||Yn:null,vd(),Nn>0&&Ct&&Ct.push(e),e}function me(e,t,r,n,s,i){return md(re(e,t,r,n,s,i,!0))}function U(e,t,r,n,s){return md(H(e,t,r,n,s,!0))}function jr(e){return e?e.__v_isVNode===!0:!1}function fr(e,t){return e.type===t.type&&e.key===t.key}function vm(e){}var wd=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ye(e)||We(e)||Te(e)?{i:vt,r:e,k:t,f:!!r}:e:null);function re(e,t=null,r=null,n=0,s=null,i=e===Ne?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wd(t),ref:t&&io(t),scopeId:Vi,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:vt};return a?(Ga(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=Ye(r)?8:16),Nn>0&&!o&&Ct&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ct.push(l),l}var H=mm;function mm(e,t=null,r=null,n=0,s=null,i=!1){if((!e||e===qu)&&(e=nt),jr(e)){const a=pr(e,t,!0);return r&&Ga(a,r),Nn>0&&!i&&Ct&&(a.shapeFlag&6?Ct[Ct.indexOf(e)]=a:Ct.push(a)),a.patchFlag=-2,a}if(xm(e)&&(e=e.__vccOpts),t){t=er(t);let{class:a,style:l}=t;a&&!Ye(a)&&(t.class=Je(a)),Fe(l)&&(Ns(l)&&!ve(l)&&(l=Ue({},l)),t.style=dt(l))}const o=Ye(e)?1:so(e)?128:gu(e)?64:Fe(e)?4:Te(e)?2:0;return re(e,t,r,n,s,o,i,!0)}function er(e){return e?Ns(e)||ed(e)?Ue({},e):e:null}function pr(e,t,r=!1,n=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,c=t?pe(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&wd(c),ref:t&&t.ref?r&&i?ve(i)?i.concat(io(t)):[i,io(t)]:io(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pr(e.ssContent),ssFallback:e.ssFallback&&pr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Lr(u,l.clone(u)),u}function Oe(e=" ",t=0){return H(an,null,e,t)}function Wa(e,t){const r=H(Mn,null,e);return r.staticCount=t,r}function ke(e="",t=!1){return t?($(),U(nt,null,e)):H(nt,null,e)}function Ht(e){return e==null||typeof e=="boolean"?H(nt):ve(e)?H(Ne,null,e.slice()):jr(e)?Ur(e):H(an,null,String(e))}function Ur(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pr(e)}function Ga(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ve(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),Ga(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!ed(t)?t._ctx=vt:s===3&&vt&&(vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Te(t)?(t={default:t,_ctx:vt},r=32):(t=String(t),n&64?(r=16,t=[Oe(t)]):r=8);e.children=t,e.shapeFlag|=r}function pe(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=Je([t.class,n.class]));else if(s==="style")t.style=dt([t.style,n.style]);else if(Rs(s)){const i=t[s],o=n[s];o&&i!==o&&!(ve(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=n[s])}return t}function Mt(e,t,r,n=null){Zt(e,t,7,[r,n])}var wm=Wu(),ym=0;function yd(e,t,r){const n=e.type,s=(t?t.appContext:e.appContext)||wm,i={uid:ym++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new oa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:rd(n,s),emitsOptions:Ju(n,s),emit:null,emitted:null,propsDefaults:He,inheritAttrs:n.inheritAttrs,ctx:He,data:He,props:He,attrs:He,slots:He,refs:He,setupState:He,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Zv.bind(null,i),e.ce&&e.ce(i),i}var mt=null,st=()=>mt||vt,oo,Ja;{const e=Ai(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};oo=t("__VUE_INSTANCE_SETTERS__",r=>mt=r),Ja=t("__VUE_SSR_SETTERS__",r=>hs=r)}var qn=e=>{const t=mt;return oo(e),e.scope.on(),()=>{e.scope.off(),oo(t)}},ao=()=>{mt&&mt.scope.off(),oo(null)};function bd(e){return e.vnode.shapeFlag&4}var hs=!1;function _d(e,t=!1,r=!1){t&&Ja(t);const{props:n,children:s}=e.vnode,i=bd(e);nm(e,n,i,t),am(e,s,r||t);const o=i?bm(e,t):void 0;return t&&Ja(!1),o}function bm(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Na);const{setup:n}=r;if(n){Pr();const s=e.setupContext=n.length>1?Cd(e):null,i=qn(e),o=ns(n,e,0,[e.props,s]),a=sa(o);if(Dr(),i(),(a||e.sp)&&!Fr(e)&&Ra(e),a){if(o.then(ao,ao),t)return o.then(l=>{Ya(e,l,t)}).catch(l=>{Dn(l,e,0)});e.asyncDep=o}else Ya(e,o,t)}else Sd(e,t)}function Ya(e,t,r){Te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)&&(e.setupState=ya(t)),Sd(e,r)}var lo,Za;function _m(e){lo=e,Za=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,kv))}}var Sm=()=>!lo;function Sd(e,t,r){const n=e.type;if(!e.render){if(!t&&lo&&!n.render){const s=n.template||Ba(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,c=Ue(Ue({isCustomElement:i,delimiters:a},o),l);n.render=lo(s,c)}}e.render=n.render||Yt,Za&&Za(e)}{const s=qn(e);Pr();try{jv(e)}finally{Dr(),s()}}}var Cm={get(e,t){return bt(e,"get",""),e[t]}};function Cd(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Cm),slots:e.slots,emit:e.emit,expose:t}}function ti(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ya(wa(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Js)return Js[r](e)},has(t,r){return r in t||r in Js}})):e.proxy}function Xa(e,t=!0){return Te(e)?e.displayName||e.name:e.name||t&&e.__name}function xm(e){return Te(e)&&"__vccOpts"in e}var V=(e,t)=>zg(e,t,hs);function tr(e,t,r){try{ei(-1);const n=arguments.length;return n===2?Fe(t)&&!ve(t)?jr(t)?H(e,null,[t]):H(e,t):H(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&jr(r)&&(r=[r]),H(e,t,r))}finally{ei(1)}}function Tm(){return;function e(t,r,n){const s=t[n];if(ve(s)&&s.includes(r)||Fe(s)&&r in s||t.extends&&e(t.extends,r,n)||t.mixins&&t.mixins.some(i=>e(i,r,n)))return!0}}function Em(e,t,r,n){const s=r[n];if(s&&xd(s,e))return s;const i=t();return i.memo=e.slice(),i.cacheIndex=n,r[n]=i}function xd(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(At(r[n],t[n]))return!1;return Nn>0&&Ct&&Ct.push(e),!0}var Td="3.5.29",Am=Yt,Im=ev,Rm=os,km=cu,$m={createComponentInstance:yd,setupComponent:_d,renderComponentRoot:to,setCurrentRenderingInstance:Fs,isVNode:jr,normalizeVNode:Ht,getComponentPublicInstance:ti,ensureValidVNode:Oa,pushWarningContext:Yg,popWarningContext:Zg},rx=null,nx=null,sx=null;var Qa=void 0,Ed=typeof window<"u"&&window.trustedTypes;if(Ed)try{Qa=Ed.createPolicy("vue",{createHTML:e=>e})}catch{}var Ad=Qa?e=>Qa.createHTML(e):e=>e,Pm="http://www.w3.org/2000/svg",Dm="http://www.w3.org/1998/Math/MathML",zr=typeof document<"u"?document:null,Id=zr&&zr.createElement("template"),Rd={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t==="svg"?zr.createElementNS(Pm,e):t==="mathml"?zr.createElementNS(Dm,e):r?zr.createElement(e,{is:r}):zr.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>zr.createTextNode(e),createComment:e=>zr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,i){const o=r?r.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===i||!(s=s.nextSibling)););else{Id.innerHTML=Ad(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=Id.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},ln="transition",ri="animation",gs=Symbol("_vtc"),kd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$d=Ue({},Aa,kd),Om=e=>(e.displayName="Transition",e.props=$d,e),Hm=Om((e,{slots:t})=>tr(Su,Dd(e),t)),Bn=(e,t=[])=>{ve(e)?e.forEach(r=>r(...t)):e&&e(...t)},Pd=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Dd(e){const t={};for(const E in e)E in kd||(t[E]=e[E]);if(e.css===!1)return t;const{name:r="v",type:n,duration:s,enterFromClass:i=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,m=Mm(s),y=m&&m[0],T=m&&m[1],{onBeforeEnter:v,onEnter:x,onEnterCancelled:w,onLeave:b,onLeaveCancelled:_,onBeforeAppear:A=v,onAppear:P=x,onAppearCancelled:g=w}=t,D=(E,I,J,te)=>{E._enterCancelled=te,cn(E,I?u:a),cn(E,I?c:o),J&&J()},O=(E,I)=>{E._isLeaving=!1,cn(E,d),cn(E,h),cn(E,p),I&&I()},S=E=>(I,J)=>{const te=E?P:x,W=()=>D(I,E,J);Bn(te,[I,W]),Od(()=>{cn(I,E?l:i),xr(I,E?u:a),Pd(te)||Hd(I,n,y,W)})};return Ue(t,{onBeforeEnter(E){Bn(v,[E]),xr(E,i),xr(E,o)},onBeforeAppear(E){Bn(A,[E]),xr(E,l),xr(E,c)},onEnter:S(!1),onAppear:S(!0),onLeave(E,I){E._isLeaving=!0;const J=()=>O(E,I);xr(E,d),E._enterCancelled?(xr(E,p),tl(E)):(tl(E),xr(E,p)),Od(()=>{E._isLeaving&&(cn(E,d),xr(E,h),Pd(b)||Hd(E,n,T,J))}),Bn(b,[E,J])},onEnterCancelled(E){D(E,!1,void 0,!0),Bn(w,[E])},onAppearCancelled(E){D(E,!0,void 0,!0),Bn(g,[E])},onLeaveCancelled(E){O(E),Bn(_,[E])}})}function Mm(e){if(e==null)return null;if(Fe(e))return[el(e.enter),el(e.leave)];{const t=el(e);return[t,t]}}function el(e){return Ei(e)}function xr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[gs]||(e[gs]=new Set)).add(t)}function cn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[gs];r&&(r.delete(t),r.size||(e[gs]=void 0))}function Od(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Nm=0;function Hd(e,t,r,n){const s=e._endId=++Nm,i=()=>{s===e._endId&&n()};if(r!=null)return setTimeout(i,r);const{type:o,timeout:a,propCount:l}=Md(e,t);if(!o)return n();const c=o+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=h=>{h.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,p)}function Md(e,t){const r=window.getComputedStyle(e),n=m=>(r[m]||"").split(", "),s=n(`${ln}Delay`),i=n(`${ln}Duration`),o=Nd(s,i),a=n(`${ri}Delay`),l=n(`${ri}Duration`),c=Nd(a,l);let u=null,d=0,p=0;t===ln?o>0&&(u=ln,d=o,p=i.length):t===ri?c>0&&(u=ri,d=c,p=l.length):(d=Math.max(o,c),u=d>0?o>c?ln:ri:null,p=u?u===ln?i.length:l.length:0);const h=u===ln&&/\b(?:transform|all)(?:,|$)/.test(n(`${ln}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:h}}function Nd(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>qd(r)+qd(e[n])))}function qd(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function tl(e){return(e?e.ownerDocument:document).body.offsetHeight}function qm(e,t,r){const n=e[gs];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}var co=Symbol("_vod"),Bd=Symbol("_vsh"),uo={name:"show",beforeMount(e,{value:t},{transition:r}){e[co]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):ni(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),ni(e,!0),n.enter(e)):n.leave(e,()=>{ni(e,!1)}):ni(e,t))},beforeUnmount(e,{value:t}){ni(e,t)}};function ni(e,t){e.style.display=t?e[co]:"none",e[Bd]=!t}function Bm(){uo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}var Ld=Symbol("");function Lm(e){const t=st();if(!t)return;const r=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>fo(i,s))},n=()=>{const s=e(t.proxy);t.ce?fo(t.ce,s):rl(t.subTree,s),r(s)};$a(()=>{Bs(n)}),ze(()=>{Ae(n,Yt,{flush:"post"});const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),kt(()=>s.disconnect())})}function rl(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{rl(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fo(e.el,t);else if(e.type===Ne)e.children.forEach(r=>rl(r,t));else if(e.type===Mn){let{el:r,anchor:n}=e;for(;r&&(fo(r,t),r!==n);)r=r.nextSibling}}function fo(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const s in t){const i=mg(t[s]);r.setProperty(`--${s}`,i),n+=`--${s}: ${i};`}r[Ld]=n}}var Fm=/(?:^|;)\s*display\s*:/;function Vm(e,t,r){const n=e.style,s=Ye(r);let i=!1;if(r&&!s){if(t)if(Ye(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();r[a]==null&&po(n,a,"")}else for(const o in t)r[o]==null&&po(n,o,"");for(const o in r)o==="display"&&(i=!0),po(n,o,r[o])}else if(s){if(t!==r){const o=n[Ld];o&&(r+=";"+o),n.cssText=r,i=Fm.test(r)}}else t&&e.removeAttribute("style");co in e&&(e[co]=i?n.display:"",e[Bd]&&(n.display="none"))}var Fd=/\s*!important$/;function po(e,t,r){if(ve(r))r.forEach(n=>po(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=jm(e,t);Fd.test(r)?e.setProperty(Dt(n),r.replace(Fd,""),"important"):e[n]=r}}var Vd=["Webkit","Moz","ms"],nl={};function jm(e,t){const r=nl[t];if(r)return r;let n=lt(t);if(n!=="filter"&&n in e)return nl[t]=n;n=ks(n);for(let s=0;s<Vd.length;s++){const i=Vd[s]+n;if(i in e)return nl[t]=i}return t}var jd="http://www.w3.org/1999/xlink";function Ud(e,t,r,n,s,i=gg(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(jd,t.slice(6,t.length)):e.setAttributeNS(jd,t,r):r==null||i&&!Dc(r)?e.removeAttribute(t):e.setAttribute(t,i?"":lr(r)?String(r):r)}function zd(e,t,r,n,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Ad(r):r);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(a!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=Dc(r):r==null&&a==="string"?(r="",o=!0):a==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(s||t)}function Kr(e,t,r,n){e.addEventListener(t,r,n)}function Um(e,t,r,n){e.removeEventListener(t,r,n)}var Kd=Symbol("_vei");function zm(e,t,r,n,s=null){const i=e[Kd]||(e[Kd]={}),o=i[t];if(n&&o)o.value=n;else{const[a,l]=Km(t);n?Kr(e,a,i[t]=Jm(n,s),l):o&&(Um(e,a,o,l),i[t]=void 0)}}var Wd=/(?:Once|Passive|Capture)$/;function Km(e){let t;if(Wd.test(e)){t={};let r;for(;r=e.match(Wd);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Dt(e.slice(2)),t]}var sl=0,Wm=Promise.resolve(),Gm=()=>sl||(Wm.then(()=>sl=0),sl=Date.now());function Jm(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Zt(Ym(n,r.value),t,5,[n])};return r.value=e,r.attached=Gm(),r}function Ym(e,t){if(ve(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}var Gd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jd=(e,t,r,n,s,i)=>{const o=s==="svg";t==="class"?qm(e,n,o):t==="style"?Vm(e,r,n):Rs(t)?ra(t)||zm(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zm(e,t,n,o))?(zd(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ud(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ye(n))?zd(e,lt(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ud(e,t,n,o))};function Zm(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Gd(t)&&Te(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Gd(t)&&Ye(r)?!1:t in e}var Yd={};function il(e,t,r){let n=Q(e,t);Si(n)&&(n=Ue({},n,t));class s extends Zd{constructor(o){super(n,o,r)}}return s.def=n,s}var Xm=((e,t)=>il(e,t,mf)),Qm=typeof HTMLElement<"u"?HTMLElement:class{},Zd=class Xh extends Qm{constructor(t,r={},n=cl){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==cl?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ue({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Xh){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,ft(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const r of t)this._setAttr(r.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=n;let a;if(i&&!ve(i))for(const l in i){const c=i[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=Ei(this._props[l])),(a||(a=Object.create(null)))[lt(l)]=!0)}this._numberProps=a,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)je(this,n)||Object.defineProperty(this,n,{get:()=>f(r[n])})}_resolveProps(t){const{props:r}=t,n=ve(r)?r:Object.keys(r||{});for(const s of Object.keys(this))s[0]!=="_"&&n.includes(s)&&this._setProp(s,this[s]);for(const s of n.map(lt))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):Yd;const s=lt(t);r&&this._numberProps&&this._numberProps[s]&&(n=Ei(n)),this._setProp(s,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,s=!1){if(r!==this._props[t]&&(this._dirty=!0,r===Yd?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),s&&this._instance&&this._update(),n)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),r===!0?this.setAttribute(Dt(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Dt(t),r+""):r||this.removeAttribute(Dt(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),vf(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=H(this._def,Ue(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const s=(i,o)=>{this.dispatchEvent(new CustomEvent(i,Si(o[0])?Ue({detail:o},o[0]):{detail:o}))};n.emit=(i,...o)=>{s(i,o),Dt(i)!==i&&s(Dt(i),o)},this._setParent()}),r}_applyStyles(t,r){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let s=t.length-1;s>=0;s--){const i=document.createElement("style");n&&i.setAttribute("nonce",n),i.textContent=t[s],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=this._getSlots(),r=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const s=t[n],i=s.getAttribute("name")||"default",o=this._slots[i],a=s.parentNode;if(o)for(const l of o){if(r&&l.nodeType===1){const c=r+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let d;for(;d=u.nextNode();)d.setAttribute(c,"")}a.insertBefore(l,s)}else for(;s.firstChild;)a.insertBefore(s.firstChild,s);a.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const r=new Set;for(const n of t){const s=n.querySelectorAll("slot");for(let i=0;i<s.length;i++)r.add(s[i])}return Array.from(r)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}};function Xd(e){const t=st(),r=t&&t.ce;return r||null}function e0(){const e=Xd();return e&&e.shadowRoot}function t0(e="$style"){{const t=st();if(!t)return He;const r=t.type.__cssModules;if(!r)return He;const n=r[e];return n||He}}var Qd=new WeakMap,ef=new WeakMap,ho=Symbol("_moveCb"),tf=Symbol("_enterCb"),r0=e=>(delete e.props.mode,e),n0=r0({name:"TransitionGroup",props:Ue({},$d,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=st(),n=Ea();let s,i;return Ws(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!a0(s[0].el,r.vnode.el,o)){s=[];return}s.forEach(s0),s.forEach(i0);const a=s.filter(o0);tl(r.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;xr(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[ho]=p=>{p&&p.target!==c||(!p||p.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[ho]=null,cn(c,o))};c.addEventListener("transitionend",d)}),s=[]}),()=>{const o=Me(e),a=Dd(o);let l=o.tag||Ne;if(s=[],i)for(let c=0;c<i.length;c++){const u=i[c];u.el&&u.el instanceof Element&&(s.push(u),Lr(u,ls(u,a,n,r)),Qd.set(u,rf(u.el)))}i=t.default?Ki(t.default()):[];for(let c=0;c<i.length;c++){const u=i[c];u.key!=null&&Lr(u,ls(u,a,n,r))}return H(l,null,i)}}});function s0(e){const t=e.el;t[ho]&&t[ho](),t[tf]&&t[tf]()}function i0(e){ef.set(e,rf(e.el))}function o0(e){const t=Qd.get(e),r=ef.get(e),n=t.left-r.left,s=t.top-r.top;if(n||s){const i=e.el,o=i.style,a=i.getBoundingClientRect();let l=1,c=1;return i.offsetWidth&&(l=a.width/i.offsetWidth),i.offsetHeight&&(c=a.height/i.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),o.transform=o.webkitTransform=`translate(${n/l}px,${s/c}px)`,o.transitionDuration="0s",e}}function rf(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function a0(e,t,r){const n=e.cloneNode(),s=e[gs];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:o}=Md(n);return i.removeChild(n),o}var un=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?r=>es(t,r):t};function l0(e){e.target.composing=!0}function nf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var rr=Symbol("_assign");function sf(e,t,r){return t&&(e=e.trim()),r&&(e=Ti(e)),e}var si={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e[rr]=un(s);const i=n||s.props&&s.props.type==="number";Kr(e,t?"change":"input",o=>{o.target.composing||e[rr](sf(e.value,r,i))}),(r||i)&&Kr(e,"change",()=>{e.value=sf(e.value,r,i)}),t||(Kr(e,"compositionstart",l0),Kr(e,"compositionend",nf),Kr(e,"change",nf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:s,number:i}},o){if(e[rr]=un(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Ti(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||s&&e.value.trim()===l)||(e.value=l))}},ol={deep:!0,created(e,t,r){e[rr]=un(r),Kr(e,"change",()=>{const n=e._modelValue,s=vs(e),i=e.checked,o=e[rr];if(ve(n)){const a=Ii(n,s),l=a!==-1;if(i&&!l)o(n.concat(s));else if(!i&&l){const c=[...n];c.splice(a,1),o(c)}}else if(kn(n)){const a=new Set(n);i?a.add(s):a.delete(s),o(a)}else o(cf(e,i))})},mounted:of,beforeUpdate(e,t,r){e[rr]=un(r),of(e,t,r)}};function of(e,{value:t,oldValue:r},n){e._modelValue=t;let s;if(ve(t))s=Ii(t,n.props.value)>-1;else if(kn(t))s=t.has(n.props.value);else{if(t===r)return;s=$r(t,cf(e,!0))}e.checked!==s&&(e.checked=s)}var al={created(e,{value:t},r){e.checked=$r(t,r.props.value),e[rr]=un(r),Kr(e,"change",()=>{e[rr](vs(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[rr]=un(n),t!==r&&(e.checked=$r(t,n.props.value))}},af={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const s=kn(t);Kr(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?Ti(vs(o)):vs(o));e[rr](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,ft(()=>{e._assigning=!1})}),e[rr]=un(n)},mounted(e,{value:t}){lf(e,t)},beforeUpdate(e,t,r){e[rr]=un(r)},updated(e,{value:t}){e._assigning||lf(e,t)}};function lf(e,t){const r=e.multiple,n=ve(t);if(!(r&&!n&&!kn(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],a=vs(o);if(r)if(n){const l=typeof a;l==="string"||l==="number"?o.selected=t.some(c=>String(c)===String(a)):o.selected=Ii(t,a)>-1}else o.selected=t.has(a);else if($r(vs(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vs(e){return"_value"in e?e._value:e.value}function cf(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}var uf={created(e,t,r){go(e,t,r,null,"created")},mounted(e,t,r){go(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){go(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){go(e,t,r,n,"updated")}};function df(e,t){switch(e){case"SELECT":return af;case"TEXTAREA":return si;default:switch(t){case"checkbox":return ol;case"radio":return al;default:return si}}}function go(e,t,r,n,s){const i=df(e.tagName,r.props&&r.props.type)[s];i&&i(e,t,r,n)}function c0(){si.getSSRProps=({value:e})=>({value:e}),al.getSSRProps=({value:e},t)=>{if(t.props&&$r(t.props.value,e))return{checked:!0}},ol.getSSRProps=({value:e},t)=>{if(ve(e)){if(t.props&&Ii(e,t.props.value)>-1)return{checked:!0}}else if(kn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},uf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=df(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}var u0=["ctrl","shift","alt","meta"],d0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>u0.some(r=>e[`${r}Key`]&&!t.includes(r))},nr=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=d0[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},f0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ll=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=(s=>{if(!("key"in s))return;const i=Dt(s.key);if(t.some(o=>o===i||f0[o]===i))return e(s)}))},ff=Ue({patchProp:Jd},Rd),ii,pf=!1;function hf(){return ii||(ii=ad(ff))}function gf(){return ii=pf?ii:ld(ff),pf=!0,ii}var vf=((...e)=>{hf().render(...e)}),p0=((...e)=>{gf().hydrate(...e)}),cl=((...e)=>{const t=hf().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=yf(n);if(!s)return;const i=t._component;!Te(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=r(s,!1,wf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t}),mf=((...e)=>{const t=gf().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=yf(n);if(s)return r(s,!0,wf(s))},t});function wf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yf(e){return Ye(e)?document.querySelector(e):e}var bf=!1,h0=()=>{bf||(bf=!0,c0(),Bm())},g0=sg({BaseTransition:()=>Su,BaseTransitionPropsValidators:()=>Aa,Comment:()=>nt,DeprecationTypes:()=>null,EffectScope:()=>oa,ErrorCodes:()=>Qg,ErrorTypeStrings:()=>Im,Fragment:()=>Ne,KeepAlive:()=>xv,ReactiveEffect:()=>$s,Static:()=>Mn,Suspense:()=>um,Teleport:()=>xa,Text:()=>an,TrackOpTypes:()=>Kg,Transition:()=>Hm,TransitionGroup:()=>n0,TriggerOpTypes:()=>Wg,VueElement:()=>Zd,assertNumber:()=>Xg,callWithAsyncErrorHandling:()=>Zt,callWithErrorHandling:()=>ns,camelize:()=>lt,capitalize:()=>ks,cloneVNode:()=>pr,compatUtils:()=>null,compile:()=>v0,computed:()=>V,createApp:()=>cl,createBlock:()=>U,createCommentVNode:()=>ke,createElementBlock:()=>me,createElementVNode:()=>re,createHydrationRenderer:()=>ld,createPropsRestProxy:()=>Fv,createRenderer:()=>ad,createSSRApp:()=>mf,createSlots:()=>Rv,createStaticVNode:()=>Wa,createTextVNode:()=>Oe,createVNode:()=>H,customRef:()=>qs,defineAsyncComponent:()=>Cv,defineComponent:()=>Q,defineCustomElement:()=>il,defineEmits:()=>Pv,defineExpose:()=>Dv,defineModel:()=>Mv,defineOptions:()=>Ov,defineProps:()=>$v,defineSSRCustomElement:()=>Xm,defineSlots:()=>Hv,devtools:()=>Rm,effect:()=>yg,effectScope:()=>aa,getCurrentInstance:()=>st,getCurrentScope:()=>Ri,getCurrentWatcher:()=>Gg,getTransitionRawChildren:()=>Ki,guardReactiveProps:()=>er,h:()=>tr,handleError:()=>Dn,hasInjectionContext:()=>ov,hydrate:()=>p0,hydrateOnIdle:()=>mv,hydrateOnInteraction:()=>_v,hydrateOnMediaQuery:()=>bv,hydrateOnVisible:()=>yv,initCustomFormatter:()=>Tm,initDirectivesForSSR:()=>h0,inject:()=>Rt,isMemoSame:()=>xd,isProxy:()=>Ns,isReactive:()=>qr,isReadonly:()=>br,isRef:()=>We,isRuntimeOnly:()=>Sm,isShallow:()=>Ot,isVNode:()=>jr,markRaw:()=>wa,mergeDefaults:()=>Vu,mergeModels:()=>Lv,mergeProps:()=>pe,nextTick:()=>ft,nodeOps:()=>Rd,normalizeClass:()=>Je,normalizeProps:()=>cr,normalizeStyle:()=>dt,onActivated:()=>ku,onBeforeMount:()=>Du,onBeforeUnmount:()=>fs,onBeforeUpdate:()=>$a,onDeactivated:()=>$u,onErrorCaptured:()=>Nu,onMounted:()=>ze,onRenderTracked:()=>Mu,onRenderTriggered:()=>Hu,onScopeDispose:()=>la,onServerPrefetch:()=>Ou,onUnmounted:()=>kt,onUpdated:()=>Ws,onWatcherCleanup:()=>nu,openBlock:()=>$,patchProp:()=>Jd,popScopeId:()=>sv,provide:()=>as,proxyRefs:()=>ya,pushScopeId:()=>nv,queuePostFlushCb:()=>Bs,reactive:()=>Mr,readonly:()=>_t,ref:()=>F,registerRuntimeCompiler:()=>_m,render:()=>vf,renderList:()=>Qt,renderSlot:()=>ie,resolveComponent:()=>Av,resolveDirective:()=>Iv,resolveDynamicComponent:()=>Gs,resolveFilter:()=>null,resolveTransitionHooks:()=>ls,setBlockTracking:()=>ei,setDevtoolsHook:()=>km,setTransitionHooks:()=>Lr,shallowReactive:()=>Qc,shallowReadonly:()=>Nr,shallowRef:()=>Qe,ssrContextKey:()=>uu,ssrUtils:()=>$m,stop:()=>bg,toDisplayString:()=>Pe,toHandlerKey:()=>Qn,toHandlers:()=>Lu,toRaw:()=>Me,toRef:()=>ba,toRefs:()=>St,toValue:()=>Ce,transformVNodeArgs:()=>vm,triggerRef:()=>tu,unref:()=>f,useAttrs:()=>Bv,useCssModule:()=>t0,useCssVars:()=>Lm,useHost:()=>Xd,useId:()=>Tu,useModel:()=>Yv,useSSRContext:()=>du,useShadowRoot:()=>e0,useSlots:()=>qv,useTemplateRef:()=>uv,useTransitionState:()=>Ea,vModelCheckbox:()=>ol,vModelDynamic:()=>uf,vModelRadio:()=>al,vModelSelect:()=>af,vModelText:()=>si,vShow:()=>uo,version:()=>Td,warn:()=>Am,watch:()=>Ae,watchEffect:()=>Xe,watchPostEffect:()=>Sa,watchSyncEffect:()=>fu,withAsyncContext:()=>Vv,withCtx:()=>k,withDefaults:()=>Nv,withDirectives:()=>ji,withKeys:()=>ll,withMemo:()=>Em,withModifiers:()=>nr,withScopeId:()=>iv},1),v0=()=>{},m0=2;const hr={CALL_HISTORY:"call_history",CONTACTS:"contacts",CONNECTIONS:"connections"},w0=(e="webphone_db")=>{const t=F(null),r=F(!1);return{initDB:()=>new Promise((l,c)=>{if(t.value){l();return}const u=indexedDB.open(e,m0);u.onerror=d=>{console.error("IndexedDB error:",d),c(d)},u.onsuccess=d=>{t.value=d.target.result,r.value=!0,l()},u.onupgradeneeded=d=>{const p=d.target.result;p.objectStoreNames.contains(hr.CALL_HISTORY)||p.createObjectStore(hr.CALL_HISTORY,{keyPath:"id"}),p.objectStoreNames.contains(hr.CONTACTS)||p.createObjectStore(hr.CONTACTS,{keyPath:"number"}),p.objectStoreNames.contains(hr.CONNECTIONS)||p.createObjectStore(hr.CONNECTIONS,{keyPath:"id"})}}),getAll:l=>new Promise((c,u)=>{if(!t.value)return u("DB not initialized");const d=t.value.transaction([l],"readonly").objectStore(l).getAll();d.onsuccess=()=>c(d.result),d.onerror=()=>u(d.error)}),add:(l,c)=>new Promise((u,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).add(c);p.onsuccess=()=>u(),p.onerror=()=>d(p.error)}),put:(l,c)=>new Promise((u,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).put(c);p.onsuccess=()=>u(),p.onerror=()=>d(p.error)}),remove:(l,c)=>new Promise((u,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).delete(c);p.onsuccess=()=>u(),p.onerror=()=>d(p.error)}),isReady:r}},y0=e=>{const t=F(e?.initialConnected??!1),r=F(0),n=F(null),s=F([]),i=F([]),{initDB:o,getAll:a,add:l}=w0(e?.server&&e?.extension?`webphone_${e.server}_${e.extension}`.replace(/[^a-z0-9_]/gi,"_"):"webphone_db");o().then(async()=>{try{s.value=(await a(hr.CALL_HISTORY)).sort((K,oe)=>oe.startTime-K.startTime),i.value=await a(hr.CONTACTS)}catch(K){console.error("Error loading data from IndexedDB:",K)}});const c=F([{id:0,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1},{id:1,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1},{id:2,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1}]),u=F(!0),d=F(""),p=F(!1),h=V(()=>c.value.find(K=>K.id===r.value)||c.value[0]),m=V(()=>h.value?.status||"idle"),y=V(()=>h.value?.remoteNumber||""),T=V(()=>h.value?.isMuted||!1),v=V(()=>h.value?.isHeld||!1),x=V({get:()=>h.value?.keypadValue||"",set:K=>{h.value&&(h.value.keypadValue=K)}}),w=K=>{t.value=K},b=K=>{c.value.some(oe=>oe.id===K)&&(r.value=K)},_=(K,oe)=>{const de=c.value.find(xe=>xe.id===K);de&&Object.assign(de,oe)};return{isConnected:t,activeChannelId:r,channels:c,activeChannel:h,callStatus:m,remoteNumber:y,isMuted:T,isHeld:v,keypadValue:x,isKeypadVisible:u,lastDialedNumber:d,videoModeEnabled:p,transferInProgress:n,setConnected:w,setActiveChannelId:b,updateChannelState:_,setCallStatus:K=>{_(r.value,{status:K})},setIncomingCall:K=>{_(r.value,{remoteNumber:K})},resetCall:()=>{_(r.value,{status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1})},addCallLog:async K=>{const oe={id:crypto.randomUUID(),...K};s.value.unshift(oe);try{await l(hr.CALL_HISTORY,oe)}catch(de){console.error("Error saving call log:",de)}},callHistory:s,contacts:i,addContact:async K=>{try{await l(hr.CONTACTS,K),i.value=await a(hr.CONTACTS)}catch(oe){console.error("Error saving contact:",oe)}},setMuted:K=>{_(r.value,{isMuted:K})},setHeld:K=>{_(r.value,{isHeld:K})},appendKeypad:K=>{x.value+=K},clearKeypad:()=>{x.value=""},backspaceKeypad:()=>{x.value=x.value.slice(0,-1)},toggleKeypad:()=>{u.value=!u.value},setLastDialedNumber:K=>{d.value=K},setTransferInProgress:K=>{n.value=K},toggleVideoMode:()=>{p.value=!p.value}}},b0="0.21.1";var Ln=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}},ul=class extends Ln{constructor(e){super(e||"Unsupported content type.")}},dl=class extends Ln{constructor(e){super(e||"Request pending.")}},_0=class extends Ln{constructor(e){super(e||"Unspecified session description handler error.")}},fl=class extends Ln{constructor(){super("The session has terminated.")}},oi=class extends Ln{constructor(e){super(e||"An error occurred during state transition.")}},S0=class{constructor(e){this.incomingAckRequest=e}get request(){return this.incomingAckRequest.message}},C0=class{constructor(e){this.incomingByeRequest=e}get request(){return this.incomingByeRequest.message}accept(e){return this.incomingByeRequest.accept(e),Promise.resolve()}reject(e){return this.incomingByeRequest.reject(e),Promise.resolve()}},x0=class{constructor(e){this.incomingCancelRequest=e}get request(){return this.incomingCancelRequest}},ai=class{constructor(){this.listeners=new Array}addListener(e,t){const r=n=>{this.removeListener(r),e(n)};t?.once===!0?this.listeners.push(r):this.listeners.push(e)}emit(e){this.listeners.slice().forEach(t=>t(e))}removeAllListeners(){this.listeners=[]}removeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}on(e){return this.addListener(e)}off(e){return this.removeListener(e)}once(e){return this.addListener(e,{once:!0})}},T0=class{constructor(e){this.incomingInfoRequest=e}get request(){return this.incomingInfoRequest.message}accept(e){return this.incomingInfoRequest.accept(e),Promise.resolve()}reject(e){return this.incomingInfoRequest.reject(e),Promise.resolve()}},_f=class{constructor(e){this.parameters={};for(const t in e)e.hasOwnProperty(t)&&this.setParam(t,e[t])}setParam(e,t){e&&(this.parameters[e.toLowerCase()]=typeof t>"u"||t===null?null:t.toString())}getParam(e){if(e)return this.parameters[e.toLowerCase()]}hasParam(e){return!!(e&&this.parameters[e.toLowerCase()]!==void 0)}deleteParam(e){if(e=e.toLowerCase(),this.hasParam(e)){const t=this.parameters[e];return delete this.parameters[e],t}}clearParams(){this.parameters={}}},sr=class Qh extends _f{constructor(t,r,n){super(n),this.uri=t,this._displayName=r}get friendlyName(){return this.displayName||this.uri.aor}get displayName(){return this._displayName}set displayName(t){this._displayName=t}clone(){return new Qh(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))}toString(){let t=this.displayName||this.displayName==="0"?'"'+this.displayName+'" ':"";t+="<"+this.uri.toString()+">";for(const r in this.parameters)this.parameters.hasOwnProperty(r)&&(t+=";"+r,this.parameters[r]!==null&&(t+="="+this.parameters[r]));return t}},dn=class eg extends _f{constructor(t="sip",r,n,s,i,o){if(super(i||{}),this.headers={},!n)throw new TypeError('missing or invalid "host" parameter');for(const a in o)o.hasOwnProperty(a)&&this.setHeader(a,o[a]);this.raw={scheme:t,user:r,host:n,port:s},this.normal={scheme:t.toLowerCase(),user:r,host:n.toLowerCase(),port:s}}get scheme(){return this.normal.scheme}set scheme(t){this.raw.scheme=t,this.normal.scheme=t.toLowerCase()}get user(){return this.normal.user}set user(t){this.normal.user=this.raw.user=t}get host(){return this.normal.host}set host(t){this.raw.host=t,this.normal.host=t.toLowerCase()}get aor(){return this.normal.user+"@"+this.normal.host}get port(){return this.normal.port}set port(t){this.normal.port=this.raw.port=t}setHeader(t,r){this.headers[this.headerize(t)]=r instanceof Array?r:[r]}getHeader(t){if(t)return this.headers[this.headerize(t)]}hasHeader(t){return!!t&&!!this.headers.hasOwnProperty(this.headerize(t))}deleteHeader(t){if(t=this.headerize(t),this.headers.hasOwnProperty(t)){const r=this.headers[t];return delete this.headers[t],r}}clearHeaders(){this.headers={}}clone(){return new eg(this._raw.scheme,this._raw.user||"",this._raw.host,this._raw.port,JSON.parse(JSON.stringify(this.parameters)),JSON.parse(JSON.stringify(this.headers)))}toRaw(){return this._toString(this._raw)}toString(){return this._toString(this._normal)}get _normal(){return this.normal}get _raw(){return this.raw}_toString(t){let r=t.scheme+":";t.scheme.toLowerCase().match("^sips?$")||(r+="//"),t.user&&(r+=this.escapeUser(t.user)+"@"),r+=t.host,(t.port||t.port===0)&&(r+=":"+t.port);for(const s in this.parameters)this.parameters.hasOwnProperty(s)&&(r+=";"+s,this.parameters[s]!==null&&(r+="="+this.parameters[s]));const n=[];for(const s in this.headers)if(this.headers.hasOwnProperty(s))for(const i in this.headers[s])this.headers[s].hasOwnProperty(i)&&n.push(s+"="+this.headers[s][i]);return n.length>0&&(r+="?"+n.join("&")),r}escapeUser(t){let r;try{r=decodeURIComponent(t)}catch(n){throw n}return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}headerize(t){const r={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},n=t.toLowerCase().replace(/_/g,"-").split("-"),s=n.length;let i="";for(let o=0;o<s;o++)o!==0&&(i+="-"),i+=n[o].charAt(0).toUpperCase()+n[o].substring(1);return r[i]&&(i=r[i]),i}};function Sf(e,t){if(e.scheme!==t.scheme||e.user!==t.user||e.host!==t.host||e.port!==t.port)return!1;function r(i,o){const a=Object.keys(i.parameters),l=Object.keys(o.parameters);return!(!a.filter(c=>l.includes(c)).every(c=>i.parameters[c]===o.parameters[c])||!["user","ttl","method","transport"].every(c=>i.hasParam(c)&&o.hasParam(c)||!i.hasParam(c)&&!o.hasParam(c))||!["maddr"].every(c=>i.hasParam(c)&&o.hasParam(c)||!i.hasParam(c)&&!o.hasParam(c)))}if(!r(e,t))return!1;const n=Object.keys(e.headers),s=Object.keys(t.headers);if(n.length!==0||s.length!==0){if(n.length!==s.length)return!1;const i=n.filter(o=>s.includes(o));if(i.length!==s.length||!i.every(o=>e.headers[o].length&&t.headers[o].length&&e.headers[o][0]===t.headers[o][0]))return!1}return!0}function pl(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,r+=r.repeat(t),e+r.slice(0,t))}var Cf=class Qo extends Error{constructor(t,r,n,s){super(),this.message=t,this.expected=r,this.found=n,this.location=s,this.name="SyntaxError",typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(this,Qo.prototype):this.__proto__=Qo.prototype,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Qo)}static buildMessage(t,r){function n(c){return c.charCodeAt(0).toString(16).toUpperCase()}function s(c){return c.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,u=>"\\x0"+n(u)).replace(/[\x10-\x1F\x7F-\x9F]/g,u=>"\\x"+n(u))}function i(c){return c.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,u=>"\\x0"+n(u)).replace(/[\x10-\x1F\x7F-\x9F]/g,u=>"\\x"+n(u))}function o(c){switch(c.type){case"literal":return'"'+s(c.text)+'"';case"class":const u=c.parts.map(d=>Array.isArray(d)?i(d[0])+"-"+i(d[1]):i(d));return"["+(c.inverted?"^":"")+u+"]";case"any":return"any character";case"end":return"end of input";case"other":return c.description}}function a(c){const u=c.map(o);let d,p;if(u.sort(),u.length>0){for(d=1,p=1;d<u.length;d++)u[d-1]!==u[d]&&(u[p]=u[d],p++);u.length=p}switch(u.length){case 1:return u[0];case 2:return u[0]+" or "+u[1];default:return u.slice(0,-1).join(", ")+", or "+u[u.length-1]}}function l(c){return c?'"'+s(c)+'"':"end of input"}return"Expected "+a(t)+" but "+l(r)+" found."}format(t){let r="Error: "+this.message;if(this.location){let n=null,s;for(s=0;s<t.length;s++)if(t[s].source===this.location.source){n=t[s].text.split(/\r\n|\n|\r/g);break}let i=this.location.start,o=this.location.source+":"+i.line+":"+i.column;if(n){let a=this.location.end,l=pl("",i.line.toString().length," "),c=n[i.line-1],u=i.line===a.line?a.column:c.length+1;r+=`
|
|
6
6
|
--> `+o+`
|
|
7
7
|
`+l+` |
|
|
8
8
|
`+i.line+" | "+c+`
|
|
9
9
|
`+l+" | "+pl("",i.column-1," ")+pl("",u-i.column,"^")}else r+=`
|
|
10
10
|
at `+o}return r}};function E0(e,t){t=t!==void 0?t:{};const r={},n=t.grammarSource,s={Contact:119,Name_Addr_Header:156,Record_Route:176,Request_Response:81,SIP_URI:45,Subscription_State:186,Supported:191,Require:182,Via:194,absoluteURI:84,Call_ID:118,Content_Disposition:130,Content_Length:135,Content_Type:136,CSeq:146,displayName:122,Event:149,From:151,host:52,Max_Forwards:154,Min_SE:213,Proxy_Authenticate:157,quoted_string:40,Refer_To:178,Replaces:179,Session_Expires:210,stun_URI:217,To:192,turn_URI:223,uuid:226,WWW_Authenticate:209,challenge:158,sipfrag:230,Referred_By:231};let i=119;const o=[`\r
|
|
11
11
|
`,v(`\r
|
|
12
|
-
`,!1),/^[0-9]/,S([["0","9"]],!1,!1),/^[a-zA-Z]/,S([["a","z"],["A","Z"]],!1,!1),/^[0-9a-fA-F]/,S([["0","9"],["a","f"],["A","F"]],!1,!1),/^[\0-\xFF]/,S([["\0","ÿ"]],!1,!1),/^["]/,S(['"'],!1,!1)," ",v(" ",!1)," ",v(" ",!1),/^[a-zA-Z0-9]/,S([["a","z"],["A","Z"],["0","9"]],!1,!1),";",v(";",!1),"/",v("/",!1),"?",v("?",!1),":",v(":",!1),"@",v("@",!1),"&",v("&",!1),"=",v("=",!1),"+",v("+",!1),"$",v("$",!1),",",v(",",!1),"-",v("-",!1),"_",v("_",!1),".",v(".",!1),"!",v("!",!1),"~",v("~",!1),"*",v("*",!1),"'",v("'",!1),"(",v("(",!1),")",v(")",!1),"%",v("%",!1),function(){return" "},function(){return":"},/^[!-~]/,S([["!","~"]],!1,!1),/^[\x80-\uFFFF]/,S([["",""]],!1,!1),/^[\x80-\xBF]/,S([["","¿"]],!1,!1),/^[a-f]/,S([["a","f"]],!1,!1),"`",v("`",!1),"<",v("<",!1),">",v(">",!1),"\\",v("\\",!1),"[",v("[",!1),"]",v("]",!1),"{",v("{",!1),"}",v("}",!1),function(){return"*"},function(){return"/"},function(){return"="},function(){return"("},function(){return")"},function(){return">"},function(){return"<"},function(){return","},function(){return";"},function(){return":"},function(){return'"'},/^[!-']/,S([["!","'"]],!1,!1),/^[*-[]/,S([["*","["]],!1,!1),/^[\]-~]/,S([["]","~"]],!1,!1),function(x){return x},/^[#-[]/,S([["#","["]],!1,!1),/^[\0-\t]/,S([["\0"," "]],!1,!1),/^[\v-\f]/,S([["\v","\f"]],!1,!1),/^[\x0E-\x7F]/,S([["",""]],!1,!1),function(){t=t||{data:{}},t.data.uri=new dn(t.data.scheme,t.data.user,t.data.host,t.data.port),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port},function(){t=t||{data:{}},t.data.uri=new dn(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params,t.startRule==="SIP_URI"&&(t.data=t.data.uri)},"sips",v("sips",!0),"sip",v("sip",!0),function(x){t=t||{data:{}},t.data.scheme=x},function(){t=t||{data:{}},t.data.user=decodeURIComponent(b().slice(0,-1))},function(){t=t||{data:{}},t.data.password=b()},function(){return t=t||{data:{}},t.data.host=b(),t.data.host},function(){return t=t||{data:{}},t.data.host_type="domain",b()},/^[a-zA-Z0-9_\-]/,S([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),/^[a-zA-Z0-9\-]/,S([["a","z"],["A","Z"],["0","9"],"-"],!1,!1),function(){return t=t||{data:{}},t.data.host_type="IPv6",b()},"::",v("::",!1),function(){return t=t||{data:{}},t.data.host_type="IPv6",b()},function(){return t=t||{data:{}},t.data.host_type="IPv4",b()},"25",v("25",!1),/^[0-5]/,S([["0","5"]],!1,!1),"2",v("2",!1),/^[0-4]/,S([["0","4"]],!1,!1),"1",v("1",!1),/^[1-9]/,S([["1","9"]],!1,!1),function(x){return t=t||{data:{}},x=parseInt(x.join("")),t.data.port=x,x},"transport=",v("transport=",!0),"udp",v("udp",!0),"tcp",v("tcp",!0),"sctp",v("sctp",!0),"tls",v("tls",!0),function(x){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.transport=x.toLowerCase()},"user=",v("user=",!0),"phone",v("phone",!0),"ip",v("ip",!0),function(x){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.user=x.toLowerCase()},"method=",v("method=",!0),function(x){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.method=x},"ttl=",v("ttl=",!0),function(x){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.ttl=x},"maddr=",v("maddr=",!0),function(x){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.maddr=x},"lr",v("lr",!0),function(){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.lr=void 0},function(x,E){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),E===null?E=void 0:E=E[1],t.data.uri_params[x.toLowerCase()]=E},function(x,E){x=x.join("").toLowerCase(),E=E.join(""),t=t||{data:{}},t.data.uri_headers||(t.data.uri_headers={}),t.data.uri_headers[x]?t.data.uri_headers[x].push(E):t.data.uri_headers[x]=[E]},function(){t=t||{data:{}},t.startRule==="Refer_To"&&(t.data.uri=new dn(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params)},"//",v("//",!1),function(){t=t||{data:{}},t.data.scheme=b()},v("SIP",!0),function(){t=t||{data:{}},t.data.sip_version=b()},"INVITE",v("INVITE",!1),"ACK",v("ACK",!1),"VXACH",v("VXACH",!1),"OPTIONS",v("OPTIONS",!1),"BYE",v("BYE",!1),"CANCEL",v("CANCEL",!1),"REGISTER",v("REGISTER",!1),"SUBSCRIBE",v("SUBSCRIBE",!1),"NOTIFY",v("NOTIFY",!1),"REFER",v("REFER",!1),"PUBLISH",v("PUBLISH",!1),function(){return t=t||{data:{}},t.data.method=b(),t.data.method},function(x){t=t||{data:{}},t.data.status_code=parseInt(x.join(""))},function(){t=t||{data:{}},t.data.reason_phrase=b()},function(){t=t||{data:{}},t.data=b()},function(){var x,E;for(t=t||{data:{}},E=t.data.multi_header.length,x=0;x<E;x++)if(t.data.multi_header[x].parsed===null){t.data=null;break}t.data!==null?t.data=t.data.multi_header:t.data=-1},function(){var x;t=t||{data:{}},t.data.multi_header||(t.data.multi_header=[]);try{x=new sr(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch{x=null}t.data.multi_header.push({position:l,offset:C().start.offset,parsed:x})},function(x){x=b().trim(),x[0]==='"'&&(x=x.substring(1,x.length-1)),t=t||{data:{}},t.data.displayName=x},"q",v("q",!0),function(x){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.q=x},"expires",v("expires",!0),function(x){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.expires=x},function(x){return parseInt(x.join(""))},"0",v("0",!1),function(){return parseFloat(b())},function(x,E){t=t||{data:{}},t.data.params||(t.data.params={}),E===null?E=void 0:E=E[1],t.data.params[x.toLowerCase()]=E},"render",v("render",!0),"session",v("session",!0),"icon",v("icon",!0),"alert",v("alert",!0),function(){t=t||{data:{}},t.startRule==="Content_Disposition"&&(t.data.type=b().toLowerCase())},"handling",v("handling",!0),"optional",v("optional",!0),"required",v("required",!0),function(x){t=t||{data:{}},t.data=parseInt(x.join(""))},function(){t=t||{data:{}},t.data=b()},"text",v("text",!0),"image",v("image",!0),"audio",v("audio",!0),"video",v("video",!0),"application",v("application",!0),"message",v("message",!0),"multipart",v("multipart",!0),"x-",v("x-",!0),function(x){t=t||{data:{}},t.data.value=parseInt(x.join(""))},function(x){t=t||{data:{}},t.data=x},function(x){t=t||{data:{}},t.data.event=x.toLowerCase()},function(){t=t||{data:{}};var x=t.data.tag;t.data=new sr(t.data.uri,t.data.displayName,t.data.params),x&&t.data.setParam("tag",x)},"tag",v("tag",!0),function(x){t=t||{data:{}},t.data.tag=x},function(x){t=t||{data:{}},t.data=parseInt(x.join(""))},function(x){t=t||{data:{}},t.data=x},function(){t=t||{data:{}},t.data=new sr(t.data.uri,t.data.displayName,t.data.params)},"digest",v("Digest",!0),"realm",v("realm",!0),function(x){t=t||{data:{}},t.data.realm=x},"domain",v("domain",!0),"nonce",v("nonce",!0),function(x){t=t||{data:{}},t.data.nonce=x},"opaque",v("opaque",!0),function(x){t=t||{data:{}},t.data.opaque=x},"stale",v("stale",!0),"true",v("true",!0),function(){t=t||{data:{}},t.data.stale=!0},"false",v("false",!0),function(){t=t||{data:{}},t.data.stale=!1},"algorithm",v("algorithm",!0),"md5",v("MD5",!0),"md5-sess",v("MD5-sess",!0),function(x){t=t||{data:{}},t.data.algorithm=x.toUpperCase()},"qop",v("qop",!0),"auth-int",v("auth-int",!0),"auth",v("auth",!0),function(x){t=t||{data:{}},t.data.qop||(t.data.qop=[]),t.data.qop.push(x.toLowerCase())},function(x){t=t||{data:{}},t.data.value=parseInt(x.join(""))},function(){var x,E;for(t=t||{data:{}},E=t.data.multi_header.length,x=0;x<E;x++)if(t.data.multi_header[x].parsed===null){t.data=null;break}t.data!==null?t.data=t.data.multi_header:t.data=-1},function(){var x;t=t||{data:{}},t.data.multi_header||(t.data.multi_header=[]);try{x=new sr(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch{x=null}t.data.multi_header.push({position:l,offset:C().start.offset,parsed:x})},function(){t=t||{data:{}},t.data=new sr(t.data.uri,t.data.displayName,t.data.params)},function(){t=t||{data:{}},t.data.replaces_from_tag&&t.data.replaces_to_tag||(t.data=-1)},function(){t=t||{data:{}},t.data={call_id:t.data}},"from-tag",v("from-tag",!0),function(x){t=t||{data:{}},t.data.replaces_from_tag=x},"to-tag",v("to-tag",!0),function(x){t=t||{data:{}},t.data.replaces_to_tag=x},"early-only",v("early-only",!0),function(){t=t||{data:{}},t.data.early_only=!0},function(x,E){return E},function(x,E){return P(x,E)},function(x){t=t||{data:{}},t.startRule==="Require"&&(t.data=x||[])},function(x){t=t||{data:{}},t.data.value=parseInt(x.join(""))},"active",v("active",!0),"pending",v("pending",!0),"terminated",v("terminated",!0),function(){t=t||{data:{}},t.data.state=b()},"reason",v("reason",!0),function(x){t=t||{data:{}},typeof x<"u"&&(t.data.reason=x)},function(x){t=t||{data:{}},typeof x<"u"&&(t.data.expires=x)},"retry_after",v("retry_after",!0),function(x){t=t||{data:{}},typeof x<"u"&&(t.data.retry_after=x)},"deactivated",v("deactivated",!0),"probation",v("probation",!0),"rejected",v("rejected",!0),"timeout",v("timeout",!0),"giveup",v("giveup",!0),"noresource",v("noresource",!0),"invariant",v("invariant",!0),function(x){t=t||{data:{}},t.startRule==="Supported"&&(t.data=x||[])},function(){t=t||{data:{}};var x=t.data.tag;t.data=new sr(t.data.uri,t.data.displayName,t.data.params),x&&t.data.setParam("tag",x)},"ttl",v("ttl",!0),function(x){t=t||{data:{}},t.data.ttl=x},"maddr",v("maddr",!0),function(x){t=t||{data:{}},t.data.maddr=x},"received",v("received",!0),function(x){t=t||{data:{}},t.data.received=x},"branch",v("branch",!0),function(x){t=t||{data:{}},t.data.branch=x},"rport",v("rport",!0),function(x){t=t||{data:{}},typeof x<"u"&&(t.data.rport=x.join(""))},function(x){t=t||{data:{}},t.data.protocol=x},v("UDP",!0),v("TCP",!0),v("TLS",!0),v("SCTP",!0),function(x){t=t||{data:{}},t.data.transport=x},function(){t=t||{data:{}},t.data.host=b()},function(x){t=t||{data:{}},t.data.port=parseInt(x.join(""))},function(x){return parseInt(x.join(""))},function(x){t=t||{data:{}},t.startRule==="Session_Expires"&&(t.data.deltaSeconds=x)},"refresher",v("refresher",!1),"uas",v("uas",!1),"uac",v("uac",!1),function(x){t=t||{data:{}},t.startRule==="Session_Expires"&&(t.data.refresher=x)},function(x){t=t||{data:{}},t.startRule==="Min_SE"&&(t.data=x)},"stuns",v("stuns",!0),"stun",v("stun",!0),function(x){t=t||{data:{}},t.data.scheme=x},function(x){t=t||{data:{}},t.data.host=x},"?transport=",v("?transport=",!1),"turns",v("turns",!0),"turn",v("turn",!0),function(x){t=t||{data:{}},t.data.transport=x},function(){t=t||{data:{}},t.data=b()},"Referred-By",v("Referred-By",!1),"b",v("b",!1),"cid",v("cid",!1)],a=[h('2 ""6 7!'),h('4"""5!7#'),h('4$""5!7%'),h(`4&""5!7'`),h(";'.# &;("),h('4(""5!7)'),h('4*""5!7+'),h('2,""6,7-'),h('2.""6.7/'),h('40""5!71'),h('22""6273. &24""6475.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),h(";).# &;,"),h('2F""6F7G.} &2H""6H7I.q &2J""6J7K.e &2L""6L7M.Y &2N""6N7O.M &2P""6P7Q.A &2R""6R7S.5 &2T""6T7U.) &2V""6V7W'),h(`%%2X""6X7Y/5#;#/,$;#/#$+#)(#'#("'#&'#/"!&,)`),h(`%%$;$0#*;$&/,#; /#$+")("'#&'#." &"/=#$;$/�#*;$&&&#/'$8":Z" )("'#&'#`),h(';.." &"'),h(`%$;'.# &;(0)*;'.# &;(&/?#28""6879/0$;//'$8#:[# )(#'#("'#&'#`),h(`%%$;2/�#*;2&&&#/g#$%$;.0#*;.&/,#;2/#$+")("'#&'#0=*%$;.0#*;.&/,#;2/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),h('4\\""5!7].# &;3'),h('4^""5!7_'),h('4`""5!7a'),h(';!.) &4b""5!7c'),h('%$;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),h('%$;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),h(`2T""6T7U.ã &2V""6V7W.× &2f""6f7g.Ë &2h""6h7i.¿ &2:""6:7;.³ &2D""6D7E.§ &22""6273. &28""6879. &2j""6j7k. &;&.} &24""6475.q &2l""6l7m.e &2n""6n7o.Y &26""6677.M &2>""6>7?.A &2p""6p7q.5 &2r""6r7s.) &;'.# &;(`),h('%$;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s/Ĵ#0ı*;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s&&&#/"!&,)'),h(`%;//?#2P""6P7Q/0$;//'$8#:t# )(#'#("'#&'#`),h(`%;//?#24""6475/0$;//'$8#:u# )(#'#("'#&'#`),h(`%;//?#2>""6>7?/0$;//'$8#:v# )(#'#("'#&'#`),h(`%;//?#2T""6T7U/0$;//'$8#:w# )(#'#("'#&'#`),h(`%;//?#2V""6V7W/0$;//'$8#:x# )(#'#("'#&'#`),h(`%2h""6h7i/0#;//'$8":y" )("'#&'#`),h(`%;//6#2f""6f7g/'$8":z" )("'#&'#`),h(`%;//?#2D""6D7E/0$;//'$8#:{# )(#'#("'#&'#`),h(`%;//?#22""6273/0$;//'$8#:|# )(#'#("'#&'#`),h(`%;//?#28""6879/0$;//'$8#:}# )(#'#("'#&'#`),h(`%;//0#;&/'$8":~" )("'#&'#`),h(`%;&/0#;//'$8":~" )("'#&'#`),h(`%;=/T#$;G.) &;K.# &;F0/*;G.) &;K.# &;F&/,$;>/#$+#)(#'#("'#&'#`),h('4""5!7.A &4""5!7.5 &4""5!7.) &;3.# &;.'),h(`%%;//Q#;&/H$$;J.# &;K0)*;J.# &;K&/,$;&/#$+$)($'#(#'#("'#&'#/"!&,)`),h(`%;//]#;&/T$%$;J.# &;K0)*;J.# &;K&/"!&,)/1$;&/($8$:
$!!)($'#(#'#("'#&'#`),h(';..G &2L""6L7M.; &4""5!7./ &4""5!7.# &;3'),h(`%2j""6j7k/J#4""5!7.5 &4""5!7.) &4""5!7/#$+")("'#&'#`),h(`%;N/M#28""6879/>$;O." &"/0$;S/'$8$:$ )($'#(#'#("'#&'#`),h(`%;N/d#28""6879/U$;O." &"/G$;S/>$;_/5$;l." &"/'$8&:& )(&'#(%'#($'#(#'#("'#&'#`),h(`%3""5$7.) &3""5#7/' 8!:!! )`),h(`%;P/]#%28""6879/,#;R/#$+")("'#&'#." &"/6$2:""6:7;/'$8#:# )(#'#("'#&'#`),h("$;+.) &;-.# &;Q/2#0/*;+.) &;-.# &;Q&&&#"),h('2<""6<7=.q &2>""6>7?.e &2@""6@7A.Y &2B""6B7C.M &2D""6D7E.A &22""6273.5 &26""6677.) &24""6475'),h('%$;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E0e*;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E&/& 8!:! )'),h(`%;T/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),h("%;U.) &;\\.# &;X/& 8!:! )"),h(`%$%;V/2#2J""6J7K/#$+")("'#&'#0<*%;V/2#2J""6J7K/#$+")("'#&'#&/D#;W/;$2J""6J7K." &"/'$8#:# )(#'#("'#&'#`),h('$4""5!7/,#0)*4""5!7&&&#'),h(`%4$""5!7%/?#$4""5!70)*4""5!7&/#$+")("'#&'#`),h(`%2l""6l7m/?#;Y/6$2n""6n7o/'$8#:# )(#'#("'#&'#`),h(`%%;Z/³#28""6879/¤$;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+-)(-'#(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ސ &%2""67/¤#;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+,)(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.۹ &%2""67/#;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ٺ &%2""67/t#;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.ؓ &%2""67/\\#;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+&)(&'#(%'#($'#(#'#("'#&'#.ׄ &%2""67/D#;Z/;$28""6879/,$;[/#$+$)($'#(#'#("'#&'#.֍ &%2""67/,#;[/#$+")("'#&'#.ծ &%2""67/,#;Z/#$+")("'#&'#.Տ &%;Z/#2""67/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$++)(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ӈ &%;Z/ª#%28""6879/,#;Z/#$+")("'#&'#." &"/$2""67/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.а &%;Z/¹#%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/k$2""67/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+))()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ί &%;Z/È#%28""6879/,#;Z/#$+")("'#&'#." &"/¡$%28""6879/,#;Z/#$+")("'#&'#." &"/z$%28""6879/,#;Z/#$+")("'#&'#." &"/S$2""67/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.˕ &%;Z/×#%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;[/#$+')(''#(&'#(%'#($'#(#'#("'#&'#.ȑ &%;Z/þ#%28""6879/,#;Z/#$+")("'#&'#." &"/×$%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;Z/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ħ &%;Z/Ĝ#%28""6879/,#;Z/#$+")("'#&'#." &"/õ$%28""6879/,#;Z/#$+")("'#&'#." &"/Î$%28""6879/,#;Z/#$+")("'#&'#." &"/§$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/Y$%28""6879/,#;Z/#$+")("'#&'#." &"/2$2""67/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#/& 8!: ! )`),h(`%;#/M#;#." &"/?$;#." &"/1$;#." &"/#$+$)($'#(#'#("'#&'#`),h(`%;Z/;#28""6879/,$;Z/#$+#)(#'#("'#&'#.# &;\\`),h(`%;]/o#2J""6J7K/\`$;]/W$2J""6J7K/H$;]/?$2J""6J7K/0$;]/'$8':¡' )(''#(&'#(%'#($'#(#'#("'#&'#`),h(`%2¢""6¢7£/2#4¤""5!7¥/#$+")("'#&'#. &%2¦""6¦7§/;#4¨""5!7©/,$;!/#$+#)(#'#("'#&'#.j &%2ª""6ª7«/5#;!/,$;!/#$+#)(#'#("'#&'#.B &%4¬""5!7/,#;!/#$+")("'#&'#.# &;!`),h(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:®!! )`),h(`$%22""6273/,#;\`/#$+")("'#&'#0<*%22""6273/,#;\`/#$+")("'#&'#&`),h(";a.A &;b.; &;c.5 &;d./ &;e.) &;f.# &;g"),h(`%3¯""5*7°/a#3±""5#7².G &3³""5#7´.; &3µ""5$7¶./ &3·""5#7¸.# &;6/($8":¹"! )("'#&'#`),h(`%3º""5%7»/I#3¼""5%7½./ &3¾""5"7¿.# &;6/($8":À"! )("'#&'#`),h(`%3Á""5'7Â/1#;/($8":Ã"! )("'#&'#`),h(`%3Ä""5$7Å/1#;ð/($8":Æ"! )("'#&'#`),h(`%3Ç""5&7È/1#;T/($8":É"! )("'#&'#`),h(`%3Ê""5"7Ë/N#%2>""6>7?/,#;6/#$+")("'#&'#." &"/'$8":Ì" )("'#&'#`),h(`%;h/P#%2>""6>7?/,#;i/#$+")("'#&'#." &"/)$8":Í""! )("'#&'#`),h('%$;j/�#*;j&&&#/"!&,)'),h('%$;j/�#*;j&&&#/"!&,)'),h(";k.) &;+.# &;-"),h('2l""6l7m.e &2n""6n7o.Y &24""6475.M &28""6879.A &2<""6<7=.5 &2@""6@7A.) &2B""6B7C'),h(`%26""6677/n#;m/e$$%2<""6<7=/,#;m/#$+")("'#&'#0<*%2<""6<7=/,#;m/#$+")("'#&'#&/#$+#)(#'#("'#&'#`),h(`%;n/A#2>""6>7?/2$;o/)$8#:Î#"" )(#'#("'#&'#`),h("$;p.) &;+.# &;-/2#0/*;p.) &;+.# &;-&&&#"),h("$;p.) &;+.# &;-0/*;p.) &;+.# &;-&"),h('2l""6l7m.e &2n""6n7o.Y &24""6475.M &26""6677.A &28""6879.5 &2@""6@7A.) &2B""6B7C'),h(";.# &;r"),h(`%;/G#;'/>$;s/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),h(";M.# &;t"),h(`%;/E#28""6879/6$;u.# &;x/'$8#:Ï# )(#'#("'#&'#`),h(`%;v.# &;w/J#%26""6677/,#;/#$+")("'#&'#." &"/#$+")("'#&'#`),h(`%2Ð""6Ð7Ñ/:#;/1$;w." &"/#$+#)(#'#("'#&'#`),h(`%24""6475/,#;{/#$+")("'#&'#`),h(`%;z/3#$;y0#*;y&/#$+")("'#&'#`),h(";*.) &;+.# &;-"),h(';+. &;-. &22""6273.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),h(`%;|/e#$%24""6475/,#;|/#$+")("'#&'#0<*%24""6475/,#;|/#$+")("'#&'#&/#$+")("'#&'#`),h(`%$;~0#*;~&/e#$%22""6273/,#;}/#$+")("'#&'#0<*%22""6273/,#;}/#$+")("'#&'#&/#$+")("'#&'#`),h("$;~0#*;~&"),h(';+.w &;-.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),h(`%%;"/#$;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K0M*;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K&/#$+")("'#&'#/& 8!:Ò! )`),h(";.# &;"),h(`%%;O/2#2:""6:7;/#$+")("'#&'#." &"/,#;S/#$+")("'#&'#." &"`),h('$;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A/#0*;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A&&&#'),h("$;y0#*;y&"),h(`%3""5#7Ó/q#24""6475/b$$;!/�#*;!&&&#/L$2J""6J7K/=$$;!/�#*;!&&&#/'$8%:Ô% )(%'#($'#(#'#("'#&'#`),h('2Õ""6Õ7Ö'),h('2×""6×7Ø'),h('2Ù""6Ù7Ú'),h('2Û""6Û7Ü'),h('2Ý""6Ý7Þ'),h('2ß""6ß7à'),h('2á""6á7â'),h('2ã""6ã7ä'),h('2å""6å7æ'),h('2ç""6ç7è'),h('2é""6é7ê'),h("%;
.Y &;.S &;.M &;.G &;.A &;.; &;.5 &;./ &;.) &;.# &;6/& 8!:ë! )"),h(`%;/G#;'/>$;/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),h("%;/' 8!:ì!! )"),h(`%;!/5#;!/,$;!/#$+#)(#'#("'#&'#`),h("%$;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(0G*;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(&/& 8!:í! )"),h(`%;¶/Y#$%;A/,#;¶/#$+")("'#&'#06*%;A/,#;¶/#$+")("'#&'#&/#$+")("'#&'#`),h(`%;9/N#%2:""6:7;/,#;9/#$+")("'#&'#." &"/'$8":î" )("'#&'#`),h(`%;:.c &%;/Y#$%;A/,#;/#$+")("'#&'#06*%;A/,#;/#$+")("'#&'#&/#$+")("'#&'#/& 8!:ï! )`),h(`%;L.# &;/]#$%;B/,#;/#$+")("'#&'#06*%;B/,#;/#$+")("'#&'#&/'$8":ð" )("'#&'#`),h(`%;." &"/>#;@/5$;M/,$;?/#$+$)($'#(#'#("'#&'#`),h(`%%;6/Y#$%;./,#;6/#$+")("'#&'#06*%;./,#;6/#$+")("'#&'#&/#$+")("'#&'#.# &;H/' 8!:ñ!! )`),h(";.) &;.# &; "),h(`%3ò""5!7ó/:#;</1$;/($8#:ô#! )(#'#("'#&'#`),h(`%3õ""5'7ö/:#;</1$;/($8#:÷#! )(#'#("'#&'#`),h("%$;!/�#*;!&&&#/' 8!:ø!! )"),h(`%2ù""6ù7ú/o#%2J""6J7K/M#;!." &"/?$;!." &"/1$;!." &"/#$+$)($'#(#'#("'#&'#." &"/'$8":û" )("'#&'#`),h(`%;6/J#%;</,#;¡/#$+")("'#&'#." &"/)$8":ü""! )("'#&'#`),h(";6.) &;T.# &;H"),h(`%;£/Y#$%;B/,#;¤/#$+")("'#&'#06*%;B/,#;¤/#$+")("'#&'#&/#$+")("'#&'#`),h(`%3ý""5&7þ.G &3ÿ""5'7Ā.; &3ā""5$7Ă./ &3ă""5%7Ą.# &;6/& 8!:ą! )`),h(";¥.# &; "),h(`%3Ć""5(7ć/M#;</D$3Ĉ""5(7ĉ./ &3Ċ""5(7ċ.# &;6/#$+#)(#'#("'#&'#`),h(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),h("%$;!/�#*;!&&&#/' 8!:Č!! )"),h("%;©/& 8!:č! )"),h(`%;ª/k#;;/b$;¯/Y$$%;B/,#;°/#$+")("'#&'#06*%;B/,#;°/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),h(";«.# &;¬"),h('3Ď""5$7ď.S &3Đ""5%7đ.G &3Ē""5%7ē.; &3Ĕ""5%7ĕ./ &3Ė""5+7ė.# &;'),h(`3Ę""5'7ę./ &3Ě""5)7ě.# &;`),h(";6.# &;®"),h(`%3Ĝ""5"7ĝ/,#;6/#$+")("'#&'#`),h(";.# &;6"),h(`%;6/5#;</,$;±/#$+#)(#'#("'#&'#`),h(";6.# &;H"),h(`%;³/5#;./,$;/#$+#)(#'#("'#&'#`),h("%$;!/�#*;!&&&#/' 8!:Ğ!! )"),h("%;/' 8!:ğ!! )"),h(`%;¶/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ġ"!!)("'#&'#`),h(`%%;7/e#$%2J""6J7K/,#;7/#$+")("'#&'#0<*%2J""6J7K/,#;7/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),h(`%;L.# &;/]#$%;B/,#;¸/#$+")("'#&'#06*%;B/,#;¸/#$+")("'#&'#&/'$8":ġ" )("'#&'#`),h(";¹.# &; "),h(`%3Ģ""5#7ģ/:#;</1$;6/($8#:Ĥ#! )(#'#("'#&'#`),h("%$;!/�#*;!&&&#/' 8!:ĥ!! )"),h("%;/' 8!:Ħ!! )"),h(`%$;0#*;&/x#;@/o$;M/f$;?/]$$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8%:ħ% )(%'#($'#(#'#("'#&'#`),h(";¾"),h(`%3Ĩ""5&7ĩ/k#;./b$;Á/Y$$%;A/,#;Á/#$+")("'#&'#06*%;A/,#;Á/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#.# &;¿`),h(`%;6/k#;./b$;À/Y$$%;A/,#;À/#$+")("'#&'#06*%;A/,#;À/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),h(`%;6/;#;</2$;6.# &;H/#$+#)(#'#("'#&'#`),h(";Â.G &;Ä.A &;Æ.; &;È.5 &;É./ &;Ê.) &;Ë.# &;À"),h(`%3Ī""5%7ī/5#;</,$;Ã/#$+#)(#'#("'#&'#`),h("%;I/' 8!:Ĭ!! )"),h(`%3ĭ""5&7Į/#;</$;D/
$;Å/|$$%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#0C*%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#&/,$;E/#$+&)(&'#(%'#($'#(#'#("'#&'#`),h(";t.# &;w"),h(`%3į""5%7İ/5#;</,$;Ç/#$+#)(#'#("'#&'#`),h("%;I/' 8!:ı!! )"),h(`%3IJ""5&7ij/:#;</1$;I/($8#:Ĵ#! )(#'#("'#&'#`),h(`%3ĵ""5%7Ķ/]#;</T$%3ķ""5$7ĸ/& 8!:Ĺ! ).4 &%3ĺ""5%7Ļ/& 8!:ļ! )/#$+#)(#'#("'#&'#`),h(`%3Ľ""5)7ľ/R#;</I$3Ŀ""5#7ŀ./ &3Ł""5(7ł.# &;6/($8#:Ń#! )(#'#("'#&'#`),h(`%3ń""5#7Ņ/#;</$;D/$%;Ì/e#$%2D""6D7E/,#;Ì/#$+")("'#&'#0<*%2D""6D7E/,#;Ì/#$+")("'#&'#&/#$+")("'#&'#/,$;E/#$+%)(%'#($'#(#'#("'#&'#`),h(`%3ņ""5(7Ň./ &3ň""5$7ʼn.# &;6/' 8!:Ŋ!! )`),h(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),h(`%;Ï/G#;./>$;Ï/5$;./,$;/#$+%)(%'#($'#(#'#("'#&'#`),h("%$;!/�#*;!&&&#/' 8!:ŋ!! )"),h(`%;Ñ/]#$%;A/,#;Ñ/#$+")("'#&'#06*%;A/,#;Ñ/#$+")("'#&'#&/'$8":Ō" )("'#&'#`),h(`%;/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":ō" )("'#&'#`),h(`%;L.O &;.I &%;@." &"/:#;t/1$;?." &"/#$+#)(#'#("'#&'#/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":Ŏ" )("'#&'#`),h(`%;Ô/]#$%;B/,#;Õ/#$+")("'#&'#06*%;B/,#;Õ/#$+")("'#&'#&/'$8":ŏ" )("'#&'#`),h("%;/& 8!:Ő! )"),h(`%3ő""5(7Œ/:#;</1$;6/($8#:œ#! )(#'#("'#&'#.g &%3Ŕ""5&7ŕ/:#;</1$;6/($8#:Ŗ#! )(#'#("'#&'#.: &%3ŗ""5*7Ř/& 8!:ř! ).# &; `),h(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:Ŝ!! )`),h(`%;Ø/Y#$%;A/,#;Ø/#$+")("'#&'#06*%;A/,#;Ø/#$+")("'#&'#&/#$+")("'#&'#`),h(`%;/Y#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/#$+")("'#&'#`),h("%$;!/�#*;!&&&#/' 8!:ŝ!! )"),h(`%;Û/Y#$%;B/,#;Ü/#$+")("'#&'#06*%;B/,#;Ü/#$+")("'#&'#&/#$+")("'#&'#`),h(`%3Ş""5&7ş.; &3Š""5'7š./ &3Ţ""5*7ţ.# &;6/& 8!:Ť! )`),h(`%3ť""5&7Ŧ/:#;</1$;Ý/($8#:ŧ#! )(#'#("'#&'#.} &%3õ""5'7ö/:#;</1$;/($8#:Ũ#! )(#'#("'#&'#.P &%3ũ""5+7Ū/:#;</1$;/($8#:ū#! )(#'#("'#&'#.# &; `),h(`3Ŭ""5+7ŭ.k &3Ů""5)7ů._ &3Ű""5(7ű.S &3Ų""5'7ų.G &3Ŵ""5&7ŵ.; &3Ŷ""5*7ŷ./ &3Ÿ""5)7Ź.# &;6`),h(';1." &"'),h(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:ź!! )`),h(`%;L.# &;/]#$%;B/,#;á/#$+")("'#&'#06*%;B/,#;á/#$+")("'#&'#&/'$8":Ż" )("'#&'#`),h(";¹.# &; "),h(`%;ã/Y#$%;A/,#;ã/#$+")("'#&'#06*%;A/,#;ã/#$+")("'#&'#&/#$+")("'#&'#`),h(`%;ê/k#;./b$;í/Y$$%;B/,#;ä/#$+")("'#&'#06*%;B/,#;ä/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),h(";å.; &;æ.5 &;ç./ &;è.) &;é.# &; "),h(`%3ż""5#7Ž/:#;</1$;ð/($8#:ž#! )(#'#("'#&'#`),h(`%3ſ""5%7ƀ/:#;</1$;T/($8#:Ɓ#! )(#'#("'#&'#`),h(`%3Ƃ""5(7ƃ/F#;</=$;\\.) &;Y.# &;X/($8#:Ƅ#! )(#'#("'#&'#`),h(`%3ƅ""5&7Ɔ/:#;</1$;6/($8#:Ƈ#! )(#'#("'#&'#`),h(`%3ƈ""5%7Ɖ/A#;</8$$;!0#*;!&/($8#:Ɗ#! )(#'#("'#&'#`),h(`%;ë/G#;;/>$;6/5$;;/,$;ì/#$+%)(%'#($'#(#'#("'#&'#`),h(`%3""5#7Ó.# &;6/' 8!:Ƌ!! )`),h(`%3±""5#7ƌ.G &3³""5#7ƍ.; &3·""5#7Ǝ./ &3µ""5$7Ə.# &;6/' 8!:Ɛ!! )`),h(`%;î/D#%;C/,#;ï/#$+")("'#&'#." &"/#$+")("'#&'#`),h("%;U.) &;\\.# &;X/& 8!:Ƒ! )"),h(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:ƒ!! )`),h(`%%;!/?#;!." &"/1$;!." &"/#$+#)(#'#("'#&'#/' 8!:Ɠ!! )`),h(";¾"),h(`%;/^#$%;B/,#;ó/#$+")("'#&'#06*%;B/,#;ó/#$+")("'#&'#&/($8":Ɣ"!!)("'#&'#`),h(";ô.# &; "),h(`%2ƕ""6ƕ7Ɩ/L#;</C$2Ɨ""6Ɨ7Ƙ.) &2ƙ""6ƙ7ƚ/($8#:ƛ#! )(#'#("'#&'#`),h(`%;/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ɯ"!!)("'#&'#`),h(`%;6/5#;0/,$;÷/#$+#)(#'#("'#&'#`),h("$;2.) &;4.# &;.0/*;2.) &;4.# &;.&"),h("$;%0#*;%&"),h(`%;ú/;#28""6879/,$;û/#$+#)(#'#("'#&'#`),h(`%3Ɲ""5%7ƞ.) &3Ɵ""5$7Ơ/' 8!:ơ!! )`),h(`%;ü/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),h("%;\\.) &;X.# &;/' 8!:Ƣ!! )"),h(';".S &;!.M &2F""6F7G.A &2J""6J7K.5 &2H""6H7I.) &2N""6N7O'),h('2L""6L7M. &2B""6B7C. &2<""6<7=.} &2R""6R7S.q &2T""6T7U.e &2V""6V7W.Y &2P""6P7Q.M &2@""6@7A.A &2D""6D7E.5 &22""6273.) &2>""6>7?'),h(`%;Ā/b#28""6879/S$;û/J$%2ƣ""6ƣ7Ƥ/,#;ì/#$+")("'#&'#." &"/#$+$)($'#(#'#("'#&'#`),h(`%3ƥ""5%7Ʀ.) &3Ƨ""5$7ƨ/' 8!:ơ!! )`),h(`%3±""5#7².6 &3³""5#7´.* &$;+0#*;+&/' 8!:Ʃ!! )`),h(`%;Ą/#2F""6F7G/x$;ă/o$2F""6F7G/\`$;ă/W$2F""6F7G/H$;ă/?$2F""6F7G/0$;ą/'$8):ƪ) )()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#`),h(`%;#/>#;#/5$;#/,$;#/#$+$)($'#(#'#("'#&'#`),h(`%;ă/,#;ă/#$+")("'#&'#`),h(`%;ă/5#;ă/,$;ă/#$+#)(#'#("'#&'#`),h(`%;q/T#$;m0#*;m&/D$%; /,#;ø/#$+")("'#&'#." &"/#$+#)(#'#("'#&'#`),h(`%2ƫ""6ƫ7Ƭ.) &2ƭ""6ƭ7Ʈ/w#;0/n$;Ĉ/e$$%;B/2#;ĉ.# &; /#$+")("'#&'#0<*%;B/2#;ĉ.# &; /#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),h(";.# &;L"),h(`%2Ư""6Ư7ư/5#;</,$;Ċ/#$+#)(#'#("'#&'#`),h(`%;D/S#;,/J$2:""6:7;/;$;,.# &;T/,$;E/#$+%)(%'#($'#(#'#("'#&'#`)];let l=0,c=0;const u=[{line:1,column:1}];let d=0,p=[],g=0,w;if(t.startRule!==void 0){if(!(t.startRule in s))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');i=s[t.startRule]}function b(){return e.substring(c,l)}function C(){return _(c,l)}function v(x,E){return{type:"literal",text:x,ignoreCase:E}}function S(x,E,A){return{type:"class",parts:x,inverted:E,ignoreCase:A}}function y(){return{type:"end"}}function m(x){let E=u[x],A;if(E)return E;for(A=x-1;!u[A];)A--;for(E=u[A],E={line:E.line,column:E.column};A<x;)e.charCodeAt(A)===10?(E.line++,E.column=1):E.column++,A++;return u[x]=E,E}function _(x,E){const A=m(x),Y=m(E);return{source:n,start:{offset:x,line:A.line,column:A.column},end:{offset:E,line:Y.line,column:Y.column}}}function k(x){l<d||(l>d&&(d=l,p=[]),p.push(x))}function M(x,E,A){return new Cf(Cf.buildMessage(x,E),x,E,A)}function h(x){return x.split("").map(E=>E.charCodeAt(0)-32)}function O(x){const E=a[x];let A=0;const Y=[];let Q=E.length;const W=[],Z=[];let J;for(;;){for(;A<Q;)switch(E[A]){case 0:Z.push(o[E[A+1]]),A+=2;break;case 1:Z.push(void 0),A++;break;case 2:Z.push(null),A++;break;case 3:Z.push(r),A++;break;case 4:Z.push([]),A++;break;case 5:Z.push(l),A++;break;case 6:Z.pop(),A++;break;case 7:l=Z.pop(),A++;break;case 8:Z.length-=E[A+1],A+=2;break;case 9:Z.splice(-2,1),A++;break;case 10:Z[Z.length-2].push(Z.pop()),A++;break;case 11:Z.push(Z.splice(Z.length-E[A+1],E[A+1])),A+=2;break;case 12:Z.push(e.substring(Z.pop(),l)),A++;break;case 13:W.push(Q),Y.push(A+3+E[A+1]+E[A+2]),Z[Z.length-1]?(Q=A+3+E[A+1],A+=3):(Q=A+3+E[A+1]+E[A+2],A+=3+E[A+1]);break;case 14:W.push(Q),Y.push(A+3+E[A+1]+E[A+2]),Z[Z.length-1]===r?(Q=A+3+E[A+1],A+=3):(Q=A+3+E[A+1]+E[A+2],A+=3+E[A+1]);break;case 15:W.push(Q),Y.push(A+3+E[A+1]+E[A+2]),Z[Z.length-1]!==r?(Q=A+3+E[A+1],A+=3):(Q=A+3+E[A+1]+E[A+2],A+=3+E[A+1]);break;case 16:Z[Z.length-1]!==r?(W.push(Q),Y.push(A),Q=A+2+E[A+1],A+=2):A+=2+E[A+1];break;case 17:W.push(Q),Y.push(A+3+E[A+1]+E[A+2]),e.length>l?(Q=A+3+E[A+1],A+=3):(Q=A+3+E[A+1]+E[A+2],A+=3+E[A+1]);break;case 18:W.push(Q),Y.push(A+4+E[A+2]+E[A+3]),e.substr(l,o[E[A+1]].length)===o[E[A+1]]?(Q=A+4+E[A+2],A+=4):(Q=A+4+E[A+2]+E[A+3],A+=4+E[A+2]);break;case 19:W.push(Q),Y.push(A+4+E[A+2]+E[A+3]),e.substr(l,o[E[A+1]].length).toLowerCase()===o[E[A+1]]?(Q=A+4+E[A+2],A+=4):(Q=A+4+E[A+2]+E[A+3],A+=4+E[A+2]);break;case 20:W.push(Q),Y.push(A+4+E[A+2]+E[A+3]),o[E[A+1]].test(e.charAt(l))?(Q=A+4+E[A+2],A+=4):(Q=A+4+E[A+2]+E[A+3],A+=4+E[A+2]);break;case 21:Z.push(e.substr(l,E[A+1])),l+=E[A+1],A+=2;break;case 22:Z.push(o[E[A+1]]),l+=o[E[A+1]].length,A+=2;break;case 23:Z.push(r),g===0&&k(o[E[A+1]]),A+=2;break;case 24:c=Z[Z.length-1-E[A+1]],A+=2;break;case 25:c=l,A++;break;case 26:J=E.slice(A+4,A+4+E[A+3]).map(function(ie){return Z[Z.length-1-ie]}),Z.splice(Z.length-E[A+2],E[A+2],o[E[A+1]].apply(null,J)),A+=4+E[A+3];break;case 27:Z.push(O(E[A+1])),A+=2;break;case 28:g++,A++;break;case 29:g--,A++;break;default:throw new Error("Invalid opcode: "+E[A]+".")}if(W.length>0)Q=W.pop(),A=Y.pop();else break}return Z[0]}t.data={};function P(x,E){return[x].concat(E)}if(w=O(i),w!==r&&l===e.length)return w;throw w!==r&&l<e.length&&k(y()),M(p,d<e.length?e.charAt(d):null,d<e.length?_(d,d+1):_(d,d))}const A0=E0;var ct;(function(e){function t(s,i){const o={startRule:i};try{A0(s,o)}catch{o.data=-1}return o.data}e.parse=t;function r(s){const i=e.parse(s,"Name_Addr_Header");return i!==-1?i:void 0}e.nameAddrHeaderParse=r;function n(s){const i=e.parse(s,"SIP_URI");return i!==-1?i:void 0}e.URIParse=n})(ct=ct||(ct={}));var I0={100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"};function Fn(e,t=32){let r="";for(let n=0;n<e;n++){const s=Math.floor(Math.random()*t);r+=s.toString(t)}return r}function vo(e){return I0[e]||""}function mo(){return Fn(10)}function Tr(e){const t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),n=r.length;let s="";for(let i=0;i<n;i++)i!==0&&(s+="-"),s+=r[i].charAt(0).toUpperCase()+r[i].substring(1);return t[s]&&(s=t[s]),s}function li(e){return encodeURIComponent(e).replace(/%[A-F\d]{2}/g,"U").length}var xf=class{constructor(){this.headers={}}addHeader(e,t){const r={raw:t};e=Tr(e),this.headers[e]?this.headers[e].push(r):this.headers[e]=[r]}getHeader(e){const t=this.headers[Tr(e)];if(t){if(t[0])return t[0].raw}else return}getHeaders(e){const t=this.headers[Tr(e)],r=[];if(!t)return[];for(const n of t)r.push(n.raw);return r}hasHeader(e){return!!this.headers[Tr(e)]}parseHeader(e,t=0){if(e=Tr(e),this.headers[e]){if(t>=this.headers[e].length)return}else return;const r=this.headers[e][t],n=r.raw;if(r.parsed)return r.parsed;const s=ct.parse(n,e.replace(/-/g,"_"));if(s===-1){this.headers[e].splice(t,1);return}else return r.parsed=s,s}s(e,t=0){return this.parseHeader(e,t)}setHeader(e,t){this.headers[Tr(e)]=[{raw:t}]}toString(){return this.data}},ms=class extends xf{constructor(){super()}},fn=class extends xf{constructor(){super()}},hl=class ea{constructor(t,r,n,s,i,o,a){this.headers={},this.extraHeaders=[],this.options=ea.getDefaultOptions(),i&&(this.options=Object.assign(Object.assign({},this.options),i),this.options.optionTags&&this.options.optionTags.length&&(this.options.optionTags=this.options.optionTags.slice()),this.options.routeSet&&this.options.routeSet.length&&(this.options.routeSet=this.options.routeSet.slice())),o&&o.length&&(this.extraHeaders=o.slice()),a&&(this.body={body:a.content,contentType:a.contentType}),this.method=t,this.ruri=r.clone(),this.fromURI=n.clone(),this.fromTag=this.options.fromTag?this.options.fromTag:mo(),this.from=ea.makeNameAddrHeader(this.fromURI,this.options.fromDisplayName,this.fromTag),this.toURI=s.clone(),this.toTag=this.options.toTag,this.to=ea.makeNameAddrHeader(this.toURI,this.options.toDisplayName,this.toTag),this.callId=this.options.callId?this.options.callId:this.options.callIdPrefix+Fn(15),this.cseq=this.options.cseq,this.setHeader("route",this.options.routeSet),this.setHeader("via",""),this.setHeader("to",this.to.toString()),this.setHeader("from",this.from.toString()),this.setHeader("cseq",this.cseq+" "+this.method),this.setHeader("call-id",this.callId),this.setHeader("max-forwards","70")}static getDefaultOptions(){return{callId:"",callIdPrefix:"",cseq:1,toDisplayName:"",toTag:"",fromDisplayName:"",fromTag:"",forceRport:!1,hackViaTcp:!1,optionTags:["outbound"],routeSet:[],userAgentString:"sip.js",viaHost:""}}static makeNameAddrHeader(t,r,n){const s={};return n&&(s.tag=n),new sr(t,r,s)}getHeader(t){const r=this.headers[Tr(t)];if(r){if(r[0])return r[0]}else{const n=new RegExp("^\\s*"+t+"\\s*:","i");for(const s of this.extraHeaders)if(n.test(s))return s.substring(s.indexOf(":")+1).trim()}}getHeaders(t){const r=[],n=this.headers[Tr(t)];if(n)for(const s of n)r.push(s);else{const s=new RegExp("^\\s*"+t+"\\s*:","i");for(const i of this.extraHeaders)s.test(i)&&r.push(i.substring(i.indexOf(":")+1).trim())}return r}hasHeader(t){if(this.headers[Tr(t)])return!0;{const r=new RegExp("^\\s*"+t+"\\s*:","i");for(const n of this.extraHeaders)if(r.test(n))return!0}return!1}setHeader(t,r){this.headers[Tr(t)]=r instanceof Array?r:[r]}setViaHeader(t,r){this.options.hackViaTcp&&(r="TCP");let n="SIP/2.0/"+r;n+=" "+this.options.viaHost+";branch="+t,this.options.forceRport&&(n+=";rport"),this.setHeader("via",n),this.branch=t}toString(){let t="";t+=this.method+" "+this.ruri.toRaw()+` SIP/2.0\r
|
|
12
|
+
`,!1),/^[0-9]/,x([["0","9"]],!1,!1),/^[a-zA-Z]/,x([["a","z"],["A","Z"]],!1,!1),/^[0-9a-fA-F]/,x([["0","9"],["a","f"],["A","F"]],!1,!1),/^[\0-\xFF]/,x([["\0","ÿ"]],!1,!1),/^["]/,x(['"'],!1,!1)," ",v(" ",!1)," ",v(" ",!1),/^[a-zA-Z0-9]/,x([["a","z"],["A","Z"],["0","9"]],!1,!1),";",v(";",!1),"/",v("/",!1),"?",v("?",!1),":",v(":",!1),"@",v("@",!1),"&",v("&",!1),"=",v("=",!1),"+",v("+",!1),"$",v("$",!1),",",v(",",!1),"-",v("-",!1),"_",v("_",!1),".",v(".",!1),"!",v("!",!1),"~",v("~",!1),"*",v("*",!1),"'",v("'",!1),"(",v("(",!1),")",v(")",!1),"%",v("%",!1),function(){return" "},function(){return":"},/^[!-~]/,x([["!","~"]],!1,!1),/^[\x80-\uFFFF]/,x([["",""]],!1,!1),/^[\x80-\xBF]/,x([["","¿"]],!1,!1),/^[a-f]/,x([["a","f"]],!1,!1),"`",v("`",!1),"<",v("<",!1),">",v(">",!1),"\\",v("\\",!1),"[",v("[",!1),"]",v("]",!1),"{",v("{",!1),"}",v("}",!1),function(){return"*"},function(){return"/"},function(){return"="},function(){return"("},function(){return")"},function(){return">"},function(){return"<"},function(){return","},function(){return";"},function(){return":"},function(){return'"'},/^[!-']/,x([["!","'"]],!1,!1),/^[*-[]/,x([["*","["]],!1,!1),/^[\]-~]/,x([["]","~"]],!1,!1),function(S){return S},/^[#-[]/,x([["#","["]],!1,!1),/^[\0-\t]/,x([["\0"," "]],!1,!1),/^[\v-\f]/,x([["\v","\f"]],!1,!1),/^[\x0E-\x7F]/,x([["",""]],!1,!1),function(){t=t||{data:{}},t.data.uri=new dn(t.data.scheme,t.data.user,t.data.host,t.data.port),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port},function(){t=t||{data:{}},t.data.uri=new dn(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params,t.startRule==="SIP_URI"&&(t.data=t.data.uri)},"sips",v("sips",!0),"sip",v("sip",!0),function(S){t=t||{data:{}},t.data.scheme=S},function(){t=t||{data:{}},t.data.user=decodeURIComponent(y().slice(0,-1))},function(){t=t||{data:{}},t.data.password=y()},function(){return t=t||{data:{}},t.data.host=y(),t.data.host},function(){return t=t||{data:{}},t.data.host_type="domain",y()},/^[a-zA-Z0-9_\-]/,x([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),/^[a-zA-Z0-9\-]/,x([["a","z"],["A","Z"],["0","9"],"-"],!1,!1),function(){return t=t||{data:{}},t.data.host_type="IPv6",y()},"::",v("::",!1),function(){return t=t||{data:{}},t.data.host_type="IPv6",y()},function(){return t=t||{data:{}},t.data.host_type="IPv4",y()},"25",v("25",!1),/^[0-5]/,x([["0","5"]],!1,!1),"2",v("2",!1),/^[0-4]/,x([["0","4"]],!1,!1),"1",v("1",!1),/^[1-9]/,x([["1","9"]],!1,!1),function(S){return t=t||{data:{}},S=parseInt(S.join("")),t.data.port=S,S},"transport=",v("transport=",!0),"udp",v("udp",!0),"tcp",v("tcp",!0),"sctp",v("sctp",!0),"tls",v("tls",!0),function(S){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.transport=S.toLowerCase()},"user=",v("user=",!0),"phone",v("phone",!0),"ip",v("ip",!0),function(S){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.user=S.toLowerCase()},"method=",v("method=",!0),function(S){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.method=S},"ttl=",v("ttl=",!0),function(S){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.ttl=S},"maddr=",v("maddr=",!0),function(S){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.maddr=S},"lr",v("lr",!0),function(){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.lr=void 0},function(S,E){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),E===null?E=void 0:E=E[1],t.data.uri_params[S.toLowerCase()]=E},function(S,E){S=S.join("").toLowerCase(),E=E.join(""),t=t||{data:{}},t.data.uri_headers||(t.data.uri_headers={}),t.data.uri_headers[S]?t.data.uri_headers[S].push(E):t.data.uri_headers[S]=[E]},function(){t=t||{data:{}},t.startRule==="Refer_To"&&(t.data.uri=new dn(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params)},"//",v("//",!1),function(){t=t||{data:{}},t.data.scheme=y()},v("SIP",!0),function(){t=t||{data:{}},t.data.sip_version=y()},"INVITE",v("INVITE",!1),"ACK",v("ACK",!1),"VXACH",v("VXACH",!1),"OPTIONS",v("OPTIONS",!1),"BYE",v("BYE",!1),"CANCEL",v("CANCEL",!1),"REGISTER",v("REGISTER",!1),"SUBSCRIBE",v("SUBSCRIBE",!1),"NOTIFY",v("NOTIFY",!1),"REFER",v("REFER",!1),"PUBLISH",v("PUBLISH",!1),function(){return t=t||{data:{}},t.data.method=y(),t.data.method},function(S){t=t||{data:{}},t.data.status_code=parseInt(S.join(""))},function(){t=t||{data:{}},t.data.reason_phrase=y()},function(){t=t||{data:{}},t.data=y()},function(){var S,E;for(t=t||{data:{}},E=t.data.multi_header.length,S=0;S<E;S++)if(t.data.multi_header[S].parsed===null){t.data=null;break}t.data!==null?t.data=t.data.multi_header:t.data=-1},function(){var S;t=t||{data:{}},t.data.multi_header||(t.data.multi_header=[]);try{S=new sr(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch{S=null}t.data.multi_header.push({position:l,offset:T().start.offset,parsed:S})},function(S){S=y().trim(),S[0]==='"'&&(S=S.substring(1,S.length-1)),t=t||{data:{}},t.data.displayName=S},"q",v("q",!0),function(S){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.q=S},"expires",v("expires",!0),function(S){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.expires=S},function(S){return parseInt(S.join(""))},"0",v("0",!1),function(){return parseFloat(y())},function(S,E){t=t||{data:{}},t.data.params||(t.data.params={}),E===null?E=void 0:E=E[1],t.data.params[S.toLowerCase()]=E},"render",v("render",!0),"session",v("session",!0),"icon",v("icon",!0),"alert",v("alert",!0),function(){t=t||{data:{}},t.startRule==="Content_Disposition"&&(t.data.type=y().toLowerCase())},"handling",v("handling",!0),"optional",v("optional",!0),"required",v("required",!0),function(S){t=t||{data:{}},t.data=parseInt(S.join(""))},function(){t=t||{data:{}},t.data=y()},"text",v("text",!0),"image",v("image",!0),"audio",v("audio",!0),"video",v("video",!0),"application",v("application",!0),"message",v("message",!0),"multipart",v("multipart",!0),"x-",v("x-",!0),function(S){t=t||{data:{}},t.data.value=parseInt(S.join(""))},function(S){t=t||{data:{}},t.data=S},function(S){t=t||{data:{}},t.data.event=S.toLowerCase()},function(){t=t||{data:{}};var S=t.data.tag;t.data=new sr(t.data.uri,t.data.displayName,t.data.params),S&&t.data.setParam("tag",S)},"tag",v("tag",!0),function(S){t=t||{data:{}},t.data.tag=S},function(S){t=t||{data:{}},t.data=parseInt(S.join(""))},function(S){t=t||{data:{}},t.data=S},function(){t=t||{data:{}},t.data=new sr(t.data.uri,t.data.displayName,t.data.params)},"digest",v("Digest",!0),"realm",v("realm",!0),function(S){t=t||{data:{}},t.data.realm=S},"domain",v("domain",!0),"nonce",v("nonce",!0),function(S){t=t||{data:{}},t.data.nonce=S},"opaque",v("opaque",!0),function(S){t=t||{data:{}},t.data.opaque=S},"stale",v("stale",!0),"true",v("true",!0),function(){t=t||{data:{}},t.data.stale=!0},"false",v("false",!0),function(){t=t||{data:{}},t.data.stale=!1},"algorithm",v("algorithm",!0),"md5",v("MD5",!0),"md5-sess",v("MD5-sess",!0),function(S){t=t||{data:{}},t.data.algorithm=S.toUpperCase()},"qop",v("qop",!0),"auth-int",v("auth-int",!0),"auth",v("auth",!0),function(S){t=t||{data:{}},t.data.qop||(t.data.qop=[]),t.data.qop.push(S.toLowerCase())},function(S){t=t||{data:{}},t.data.value=parseInt(S.join(""))},function(){var S,E;for(t=t||{data:{}},E=t.data.multi_header.length,S=0;S<E;S++)if(t.data.multi_header[S].parsed===null){t.data=null;break}t.data!==null?t.data=t.data.multi_header:t.data=-1},function(){var S;t=t||{data:{}},t.data.multi_header||(t.data.multi_header=[]);try{S=new sr(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch{S=null}t.data.multi_header.push({position:l,offset:T().start.offset,parsed:S})},function(){t=t||{data:{}},t.data=new sr(t.data.uri,t.data.displayName,t.data.params)},function(){t=t||{data:{}},t.data.replaces_from_tag&&t.data.replaces_to_tag||(t.data=-1)},function(){t=t||{data:{}},t.data={call_id:t.data}},"from-tag",v("from-tag",!0),function(S){t=t||{data:{}},t.data.replaces_from_tag=S},"to-tag",v("to-tag",!0),function(S){t=t||{data:{}},t.data.replaces_to_tag=S},"early-only",v("early-only",!0),function(){t=t||{data:{}},t.data.early_only=!0},function(S,E){return E},function(S,E){return O(S,E)},function(S){t=t||{data:{}},t.startRule==="Require"&&(t.data=S||[])},function(S){t=t||{data:{}},t.data.value=parseInt(S.join(""))},"active",v("active",!0),"pending",v("pending",!0),"terminated",v("terminated",!0),function(){t=t||{data:{}},t.data.state=y()},"reason",v("reason",!0),function(S){t=t||{data:{}},typeof S<"u"&&(t.data.reason=S)},function(S){t=t||{data:{}},typeof S<"u"&&(t.data.expires=S)},"retry_after",v("retry_after",!0),function(S){t=t||{data:{}},typeof S<"u"&&(t.data.retry_after=S)},"deactivated",v("deactivated",!0),"probation",v("probation",!0),"rejected",v("rejected",!0),"timeout",v("timeout",!0),"giveup",v("giveup",!0),"noresource",v("noresource",!0),"invariant",v("invariant",!0),function(S){t=t||{data:{}},t.startRule==="Supported"&&(t.data=S||[])},function(){t=t||{data:{}};var S=t.data.tag;t.data=new sr(t.data.uri,t.data.displayName,t.data.params),S&&t.data.setParam("tag",S)},"ttl",v("ttl",!0),function(S){t=t||{data:{}},t.data.ttl=S},"maddr",v("maddr",!0),function(S){t=t||{data:{}},t.data.maddr=S},"received",v("received",!0),function(S){t=t||{data:{}},t.data.received=S},"branch",v("branch",!0),function(S){t=t||{data:{}},t.data.branch=S},"rport",v("rport",!0),function(S){t=t||{data:{}},typeof S<"u"&&(t.data.rport=S.join(""))},function(S){t=t||{data:{}},t.data.protocol=S},v("UDP",!0),v("TCP",!0),v("TLS",!0),v("SCTP",!0),function(S){t=t||{data:{}},t.data.transport=S},function(){t=t||{data:{}},t.data.host=y()},function(S){t=t||{data:{}},t.data.port=parseInt(S.join(""))},function(S){return parseInt(S.join(""))},function(S){t=t||{data:{}},t.startRule==="Session_Expires"&&(t.data.deltaSeconds=S)},"refresher",v("refresher",!1),"uas",v("uas",!1),"uac",v("uac",!1),function(S){t=t||{data:{}},t.startRule==="Session_Expires"&&(t.data.refresher=S)},function(S){t=t||{data:{}},t.startRule==="Min_SE"&&(t.data=S)},"stuns",v("stuns",!0),"stun",v("stun",!0),function(S){t=t||{data:{}},t.data.scheme=S},function(S){t=t||{data:{}},t.data.host=S},"?transport=",v("?transport=",!1),"turns",v("turns",!0),"turn",v("turn",!0),function(S){t=t||{data:{}},t.data.transport=S},function(){t=t||{data:{}},t.data=y()},"Referred-By",v("Referred-By",!1),"b",v("b",!1),"cid",v("cid",!1)],a=[g('2 ""6 7!'),g('4"""5!7#'),g('4$""5!7%'),g(`4&""5!7'`),g(";'.# &;("),g('4(""5!7)'),g('4*""5!7+'),g('2,""6,7-'),g('2.""6.7/'),g('40""5!71'),g('22""6273. &24""6475.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),g(";).# &;,"),g('2F""6F7G.} &2H""6H7I.q &2J""6J7K.e &2L""6L7M.Y &2N""6N7O.M &2P""6P7Q.A &2R""6R7S.5 &2T""6T7U.) &2V""6V7W'),g(`%%2X""6X7Y/5#;#/,$;#/#$+#)(#'#("'#&'#/"!&,)`),g(`%%$;$0#*;$&/,#; /#$+")("'#&'#." &"/=#$;$/�#*;$&&&#/'$8":Z" )("'#&'#`),g(';.." &"'),g(`%$;'.# &;(0)*;'.# &;(&/?#28""6879/0$;//'$8#:[# )(#'#("'#&'#`),g(`%%$;2/�#*;2&&&#/g#$%$;.0#*;.&/,#;2/#$+")("'#&'#0=*%$;.0#*;.&/,#;2/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),g('4\\""5!7].# &;3'),g('4^""5!7_'),g('4`""5!7a'),g(';!.) &4b""5!7c'),g('%$;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),g('%$;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),g(`2T""6T7U.ã &2V""6V7W.× &2f""6f7g.Ë &2h""6h7i.¿ &2:""6:7;.³ &2D""6D7E.§ &22""6273. &28""6879. &2j""6j7k. &;&.} &24""6475.q &2l""6l7m.e &2n""6n7o.Y &26""6677.M &2>""6>7?.A &2p""6p7q.5 &2r""6r7s.) &;'.# &;(`),g('%$;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s/Ĵ#0ı*;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s&&&#/"!&,)'),g(`%;//?#2P""6P7Q/0$;//'$8#:t# )(#'#("'#&'#`),g(`%;//?#24""6475/0$;//'$8#:u# )(#'#("'#&'#`),g(`%;//?#2>""6>7?/0$;//'$8#:v# )(#'#("'#&'#`),g(`%;//?#2T""6T7U/0$;//'$8#:w# )(#'#("'#&'#`),g(`%;//?#2V""6V7W/0$;//'$8#:x# )(#'#("'#&'#`),g(`%2h""6h7i/0#;//'$8":y" )("'#&'#`),g(`%;//6#2f""6f7g/'$8":z" )("'#&'#`),g(`%;//?#2D""6D7E/0$;//'$8#:{# )(#'#("'#&'#`),g(`%;//?#22""6273/0$;//'$8#:|# )(#'#("'#&'#`),g(`%;//?#28""6879/0$;//'$8#:}# )(#'#("'#&'#`),g(`%;//0#;&/'$8":~" )("'#&'#`),g(`%;&/0#;//'$8":~" )("'#&'#`),g(`%;=/T#$;G.) &;K.# &;F0/*;G.) &;K.# &;F&/,$;>/#$+#)(#'#("'#&'#`),g('4""5!7.A &4""5!7.5 &4""5!7.) &;3.# &;.'),g(`%%;//Q#;&/H$$;J.# &;K0)*;J.# &;K&/,$;&/#$+$)($'#(#'#("'#&'#/"!&,)`),g(`%;//]#;&/T$%$;J.# &;K0)*;J.# &;K&/"!&,)/1$;&/($8$:
$!!)($'#(#'#("'#&'#`),g(';..G &2L""6L7M.; &4""5!7./ &4""5!7.# &;3'),g(`%2j""6j7k/J#4""5!7.5 &4""5!7.) &4""5!7/#$+")("'#&'#`),g(`%;N/M#28""6879/>$;O." &"/0$;S/'$8$:$ )($'#(#'#("'#&'#`),g(`%;N/d#28""6879/U$;O." &"/G$;S/>$;_/5$;l." &"/'$8&:& )(&'#(%'#($'#(#'#("'#&'#`),g(`%3""5$7.) &3""5#7/' 8!:!! )`),g(`%;P/]#%28""6879/,#;R/#$+")("'#&'#." &"/6$2:""6:7;/'$8#:# )(#'#("'#&'#`),g("$;+.) &;-.# &;Q/2#0/*;+.) &;-.# &;Q&&&#"),g('2<""6<7=.q &2>""6>7?.e &2@""6@7A.Y &2B""6B7C.M &2D""6D7E.A &22""6273.5 &26""6677.) &24""6475'),g('%$;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E0e*;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E&/& 8!:! )'),g(`%;T/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),g("%;U.) &;\\.# &;X/& 8!:! )"),g(`%$%;V/2#2J""6J7K/#$+")("'#&'#0<*%;V/2#2J""6J7K/#$+")("'#&'#&/D#;W/;$2J""6J7K." &"/'$8#:# )(#'#("'#&'#`),g('$4""5!7/,#0)*4""5!7&&&#'),g(`%4$""5!7%/?#$4""5!70)*4""5!7&/#$+")("'#&'#`),g(`%2l""6l7m/?#;Y/6$2n""6n7o/'$8#:# )(#'#("'#&'#`),g(`%%;Z/³#28""6879/¤$;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+-)(-'#(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ސ &%2""67/¤#;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+,)(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.۹ &%2""67/#;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ٺ &%2""67/t#;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.ؓ &%2""67/\\#;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+&)(&'#(%'#($'#(#'#("'#&'#.ׄ &%2""67/D#;Z/;$28""6879/,$;[/#$+$)($'#(#'#("'#&'#.֍ &%2""67/,#;[/#$+")("'#&'#.ծ &%2""67/,#;Z/#$+")("'#&'#.Տ &%;Z/#2""67/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$++)(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ӈ &%;Z/ª#%28""6879/,#;Z/#$+")("'#&'#." &"/$2""67/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.а &%;Z/¹#%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/k$2""67/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+))()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ί &%;Z/È#%28""6879/,#;Z/#$+")("'#&'#." &"/¡$%28""6879/,#;Z/#$+")("'#&'#." &"/z$%28""6879/,#;Z/#$+")("'#&'#." &"/S$2""67/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.˕ &%;Z/×#%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;[/#$+')(''#(&'#(%'#($'#(#'#("'#&'#.ȑ &%;Z/þ#%28""6879/,#;Z/#$+")("'#&'#." &"/×$%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;Z/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ħ &%;Z/Ĝ#%28""6879/,#;Z/#$+")("'#&'#." &"/õ$%28""6879/,#;Z/#$+")("'#&'#." &"/Î$%28""6879/,#;Z/#$+")("'#&'#." &"/§$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/Y$%28""6879/,#;Z/#$+")("'#&'#." &"/2$2""67/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#/& 8!: ! )`),g(`%;#/M#;#." &"/?$;#." &"/1$;#." &"/#$+$)($'#(#'#("'#&'#`),g(`%;Z/;#28""6879/,$;Z/#$+#)(#'#("'#&'#.# &;\\`),g(`%;]/o#2J""6J7K/\`$;]/W$2J""6J7K/H$;]/?$2J""6J7K/0$;]/'$8':¡' )(''#(&'#(%'#($'#(#'#("'#&'#`),g(`%2¢""6¢7£/2#4¤""5!7¥/#$+")("'#&'#. &%2¦""6¦7§/;#4¨""5!7©/,$;!/#$+#)(#'#("'#&'#.j &%2ª""6ª7«/5#;!/,$;!/#$+#)(#'#("'#&'#.B &%4¬""5!7/,#;!/#$+")("'#&'#.# &;!`),g(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:®!! )`),g(`$%22""6273/,#;\`/#$+")("'#&'#0<*%22""6273/,#;\`/#$+")("'#&'#&`),g(";a.A &;b.; &;c.5 &;d./ &;e.) &;f.# &;g"),g(`%3¯""5*7°/a#3±""5#7².G &3³""5#7´.; &3µ""5$7¶./ &3·""5#7¸.# &;6/($8":¹"! )("'#&'#`),g(`%3º""5%7»/I#3¼""5%7½./ &3¾""5"7¿.# &;6/($8":À"! )("'#&'#`),g(`%3Á""5'7Â/1#;/($8":Ã"! )("'#&'#`),g(`%3Ä""5$7Å/1#;ð/($8":Æ"! )("'#&'#`),g(`%3Ç""5&7È/1#;T/($8":É"! )("'#&'#`),g(`%3Ê""5"7Ë/N#%2>""6>7?/,#;6/#$+")("'#&'#." &"/'$8":Ì" )("'#&'#`),g(`%;h/P#%2>""6>7?/,#;i/#$+")("'#&'#." &"/)$8":Í""! )("'#&'#`),g('%$;j/�#*;j&&&#/"!&,)'),g('%$;j/�#*;j&&&#/"!&,)'),g(";k.) &;+.# &;-"),g('2l""6l7m.e &2n""6n7o.Y &24""6475.M &28""6879.A &2<""6<7=.5 &2@""6@7A.) &2B""6B7C'),g(`%26""6677/n#;m/e$$%2<""6<7=/,#;m/#$+")("'#&'#0<*%2<""6<7=/,#;m/#$+")("'#&'#&/#$+#)(#'#("'#&'#`),g(`%;n/A#2>""6>7?/2$;o/)$8#:Î#"" )(#'#("'#&'#`),g("$;p.) &;+.# &;-/2#0/*;p.) &;+.# &;-&&&#"),g("$;p.) &;+.# &;-0/*;p.) &;+.# &;-&"),g('2l""6l7m.e &2n""6n7o.Y &24""6475.M &26""6677.A &28""6879.5 &2@""6@7A.) &2B""6B7C'),g(";.# &;r"),g(`%;/G#;'/>$;s/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),g(";M.# &;t"),g(`%;/E#28""6879/6$;u.# &;x/'$8#:Ï# )(#'#("'#&'#`),g(`%;v.# &;w/J#%26""6677/,#;/#$+")("'#&'#." &"/#$+")("'#&'#`),g(`%2Ð""6Ð7Ñ/:#;/1$;w." &"/#$+#)(#'#("'#&'#`),g(`%24""6475/,#;{/#$+")("'#&'#`),g(`%;z/3#$;y0#*;y&/#$+")("'#&'#`),g(";*.) &;+.# &;-"),g(';+. &;-. &22""6273.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),g(`%;|/e#$%24""6475/,#;|/#$+")("'#&'#0<*%24""6475/,#;|/#$+")("'#&'#&/#$+")("'#&'#`),g(`%$;~0#*;~&/e#$%22""6273/,#;}/#$+")("'#&'#0<*%22""6273/,#;}/#$+")("'#&'#&/#$+")("'#&'#`),g("$;~0#*;~&"),g(';+.w &;-.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),g(`%%;"/#$;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K0M*;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K&/#$+")("'#&'#/& 8!:Ò! )`),g(";.# &;"),g(`%%;O/2#2:""6:7;/#$+")("'#&'#." &"/,#;S/#$+")("'#&'#." &"`),g('$;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A/#0*;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A&&&#'),g("$;y0#*;y&"),g(`%3""5#7Ó/q#24""6475/b$$;!/�#*;!&&&#/L$2J""6J7K/=$$;!/�#*;!&&&#/'$8%:Ô% )(%'#($'#(#'#("'#&'#`),g('2Õ""6Õ7Ö'),g('2×""6×7Ø'),g('2Ù""6Ù7Ú'),g('2Û""6Û7Ü'),g('2Ý""6Ý7Þ'),g('2ß""6ß7à'),g('2á""6á7â'),g('2ã""6ã7ä'),g('2å""6å7æ'),g('2ç""6ç7è'),g('2é""6é7ê'),g("%;
.Y &;.S &;.M &;.G &;.A &;.; &;.5 &;./ &;.) &;.# &;6/& 8!:ë! )"),g(`%;/G#;'/>$;/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),g("%;/' 8!:ì!! )"),g(`%;!/5#;!/,$;!/#$+#)(#'#("'#&'#`),g("%$;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(0G*;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(&/& 8!:í! )"),g(`%;¶/Y#$%;A/,#;¶/#$+")("'#&'#06*%;A/,#;¶/#$+")("'#&'#&/#$+")("'#&'#`),g(`%;9/N#%2:""6:7;/,#;9/#$+")("'#&'#." &"/'$8":î" )("'#&'#`),g(`%;:.c &%;/Y#$%;A/,#;/#$+")("'#&'#06*%;A/,#;/#$+")("'#&'#&/#$+")("'#&'#/& 8!:ï! )`),g(`%;L.# &;/]#$%;B/,#;/#$+")("'#&'#06*%;B/,#;/#$+")("'#&'#&/'$8":ð" )("'#&'#`),g(`%;." &"/>#;@/5$;M/,$;?/#$+$)($'#(#'#("'#&'#`),g(`%%;6/Y#$%;./,#;6/#$+")("'#&'#06*%;./,#;6/#$+")("'#&'#&/#$+")("'#&'#.# &;H/' 8!:ñ!! )`),g(";.) &;.# &; "),g(`%3ò""5!7ó/:#;</1$;/($8#:ô#! )(#'#("'#&'#`),g(`%3õ""5'7ö/:#;</1$;/($8#:÷#! )(#'#("'#&'#`),g("%$;!/�#*;!&&&#/' 8!:ø!! )"),g(`%2ù""6ù7ú/o#%2J""6J7K/M#;!." &"/?$;!." &"/1$;!." &"/#$+$)($'#(#'#("'#&'#." &"/'$8":û" )("'#&'#`),g(`%;6/J#%;</,#;¡/#$+")("'#&'#." &"/)$8":ü""! )("'#&'#`),g(";6.) &;T.# &;H"),g(`%;£/Y#$%;B/,#;¤/#$+")("'#&'#06*%;B/,#;¤/#$+")("'#&'#&/#$+")("'#&'#`),g(`%3ý""5&7þ.G &3ÿ""5'7Ā.; &3ā""5$7Ă./ &3ă""5%7Ą.# &;6/& 8!:ą! )`),g(";¥.# &; "),g(`%3Ć""5(7ć/M#;</D$3Ĉ""5(7ĉ./ &3Ċ""5(7ċ.# &;6/#$+#)(#'#("'#&'#`),g(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),g("%$;!/�#*;!&&&#/' 8!:Č!! )"),g("%;©/& 8!:č! )"),g(`%;ª/k#;;/b$;¯/Y$$%;B/,#;°/#$+")("'#&'#06*%;B/,#;°/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),g(";«.# &;¬"),g('3Ď""5$7ď.S &3Đ""5%7đ.G &3Ē""5%7ē.; &3Ĕ""5%7ĕ./ &3Ė""5+7ė.# &;'),g(`3Ę""5'7ę./ &3Ě""5)7ě.# &;`),g(";6.# &;®"),g(`%3Ĝ""5"7ĝ/,#;6/#$+")("'#&'#`),g(";.# &;6"),g(`%;6/5#;</,$;±/#$+#)(#'#("'#&'#`),g(";6.# &;H"),g(`%;³/5#;./,$;/#$+#)(#'#("'#&'#`),g("%$;!/�#*;!&&&#/' 8!:Ğ!! )"),g("%;/' 8!:ğ!! )"),g(`%;¶/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ġ"!!)("'#&'#`),g(`%%;7/e#$%2J""6J7K/,#;7/#$+")("'#&'#0<*%2J""6J7K/,#;7/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),g(`%;L.# &;/]#$%;B/,#;¸/#$+")("'#&'#06*%;B/,#;¸/#$+")("'#&'#&/'$8":ġ" )("'#&'#`),g(";¹.# &; "),g(`%3Ģ""5#7ģ/:#;</1$;6/($8#:Ĥ#! )(#'#("'#&'#`),g("%$;!/�#*;!&&&#/' 8!:ĥ!! )"),g("%;/' 8!:Ħ!! )"),g(`%$;0#*;&/x#;@/o$;M/f$;?/]$$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8%:ħ% )(%'#($'#(#'#("'#&'#`),g(";¾"),g(`%3Ĩ""5&7ĩ/k#;./b$;Á/Y$$%;A/,#;Á/#$+")("'#&'#06*%;A/,#;Á/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#.# &;¿`),g(`%;6/k#;./b$;À/Y$$%;A/,#;À/#$+")("'#&'#06*%;A/,#;À/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),g(`%;6/;#;</2$;6.# &;H/#$+#)(#'#("'#&'#`),g(";Â.G &;Ä.A &;Æ.; &;È.5 &;É./ &;Ê.) &;Ë.# &;À"),g(`%3Ī""5%7ī/5#;</,$;Ã/#$+#)(#'#("'#&'#`),g("%;I/' 8!:Ĭ!! )"),g(`%3ĭ""5&7Į/#;</$;D/
$;Å/|$$%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#0C*%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#&/,$;E/#$+&)(&'#(%'#($'#(#'#("'#&'#`),g(";t.# &;w"),g(`%3į""5%7İ/5#;</,$;Ç/#$+#)(#'#("'#&'#`),g("%;I/' 8!:ı!! )"),g(`%3IJ""5&7ij/:#;</1$;I/($8#:Ĵ#! )(#'#("'#&'#`),g(`%3ĵ""5%7Ķ/]#;</T$%3ķ""5$7ĸ/& 8!:Ĺ! ).4 &%3ĺ""5%7Ļ/& 8!:ļ! )/#$+#)(#'#("'#&'#`),g(`%3Ľ""5)7ľ/R#;</I$3Ŀ""5#7ŀ./ &3Ł""5(7ł.# &;6/($8#:Ń#! )(#'#("'#&'#`),g(`%3ń""5#7Ņ/#;</$;D/$%;Ì/e#$%2D""6D7E/,#;Ì/#$+")("'#&'#0<*%2D""6D7E/,#;Ì/#$+")("'#&'#&/#$+")("'#&'#/,$;E/#$+%)(%'#($'#(#'#("'#&'#`),g(`%3ņ""5(7Ň./ &3ň""5$7ʼn.# &;6/' 8!:Ŋ!! )`),g(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),g(`%;Ï/G#;./>$;Ï/5$;./,$;/#$+%)(%'#($'#(#'#("'#&'#`),g("%$;!/�#*;!&&&#/' 8!:ŋ!! )"),g(`%;Ñ/]#$%;A/,#;Ñ/#$+")("'#&'#06*%;A/,#;Ñ/#$+")("'#&'#&/'$8":Ō" )("'#&'#`),g(`%;/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":ō" )("'#&'#`),g(`%;L.O &;.I &%;@." &"/:#;t/1$;?." &"/#$+#)(#'#("'#&'#/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":Ŏ" )("'#&'#`),g(`%;Ô/]#$%;B/,#;Õ/#$+")("'#&'#06*%;B/,#;Õ/#$+")("'#&'#&/'$8":ŏ" )("'#&'#`),g("%;/& 8!:Ő! )"),g(`%3ő""5(7Œ/:#;</1$;6/($8#:œ#! )(#'#("'#&'#.g &%3Ŕ""5&7ŕ/:#;</1$;6/($8#:Ŗ#! )(#'#("'#&'#.: &%3ŗ""5*7Ř/& 8!:ř! ).# &; `),g(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:Ŝ!! )`),g(`%;Ø/Y#$%;A/,#;Ø/#$+")("'#&'#06*%;A/,#;Ø/#$+")("'#&'#&/#$+")("'#&'#`),g(`%;/Y#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/#$+")("'#&'#`),g("%$;!/�#*;!&&&#/' 8!:ŝ!! )"),g(`%;Û/Y#$%;B/,#;Ü/#$+")("'#&'#06*%;B/,#;Ü/#$+")("'#&'#&/#$+")("'#&'#`),g(`%3Ş""5&7ş.; &3Š""5'7š./ &3Ţ""5*7ţ.# &;6/& 8!:Ť! )`),g(`%3ť""5&7Ŧ/:#;</1$;Ý/($8#:ŧ#! )(#'#("'#&'#.} &%3õ""5'7ö/:#;</1$;/($8#:Ũ#! )(#'#("'#&'#.P &%3ũ""5+7Ū/:#;</1$;/($8#:ū#! )(#'#("'#&'#.# &; `),g(`3Ŭ""5+7ŭ.k &3Ů""5)7ů._ &3Ű""5(7ű.S &3Ų""5'7ų.G &3Ŵ""5&7ŵ.; &3Ŷ""5*7ŷ./ &3Ÿ""5)7Ź.# &;6`),g(';1." &"'),g(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:ź!! )`),g(`%;L.# &;/]#$%;B/,#;á/#$+")("'#&'#06*%;B/,#;á/#$+")("'#&'#&/'$8":Ż" )("'#&'#`),g(";¹.# &; "),g(`%;ã/Y#$%;A/,#;ã/#$+")("'#&'#06*%;A/,#;ã/#$+")("'#&'#&/#$+")("'#&'#`),g(`%;ê/k#;./b$;í/Y$$%;B/,#;ä/#$+")("'#&'#06*%;B/,#;ä/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),g(";å.; &;æ.5 &;ç./ &;è.) &;é.# &; "),g(`%3ż""5#7Ž/:#;</1$;ð/($8#:ž#! )(#'#("'#&'#`),g(`%3ſ""5%7ƀ/:#;</1$;T/($8#:Ɓ#! )(#'#("'#&'#`),g(`%3Ƃ""5(7ƃ/F#;</=$;\\.) &;Y.# &;X/($8#:Ƅ#! )(#'#("'#&'#`),g(`%3ƅ""5&7Ɔ/:#;</1$;6/($8#:Ƈ#! )(#'#("'#&'#`),g(`%3ƈ""5%7Ɖ/A#;</8$$;!0#*;!&/($8#:Ɗ#! )(#'#("'#&'#`),g(`%;ë/G#;;/>$;6/5$;;/,$;ì/#$+%)(%'#($'#(#'#("'#&'#`),g(`%3""5#7Ó.# &;6/' 8!:Ƌ!! )`),g(`%3±""5#7ƌ.G &3³""5#7ƍ.; &3·""5#7Ǝ./ &3µ""5$7Ə.# &;6/' 8!:Ɛ!! )`),g(`%;î/D#%;C/,#;ï/#$+")("'#&'#." &"/#$+")("'#&'#`),g("%;U.) &;\\.# &;X/& 8!:Ƒ! )"),g(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:ƒ!! )`),g(`%%;!/?#;!." &"/1$;!." &"/#$+#)(#'#("'#&'#/' 8!:Ɠ!! )`),g(";¾"),g(`%;/^#$%;B/,#;ó/#$+")("'#&'#06*%;B/,#;ó/#$+")("'#&'#&/($8":Ɣ"!!)("'#&'#`),g(";ô.# &; "),g(`%2ƕ""6ƕ7Ɩ/L#;</C$2Ɨ""6Ɨ7Ƙ.) &2ƙ""6ƙ7ƚ/($8#:ƛ#! )(#'#("'#&'#`),g(`%;/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ɯ"!!)("'#&'#`),g(`%;6/5#;0/,$;÷/#$+#)(#'#("'#&'#`),g("$;2.) &;4.# &;.0/*;2.) &;4.# &;.&"),g("$;%0#*;%&"),g(`%;ú/;#28""6879/,$;û/#$+#)(#'#("'#&'#`),g(`%3Ɲ""5%7ƞ.) &3Ɵ""5$7Ơ/' 8!:ơ!! )`),g(`%;ü/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),g("%;\\.) &;X.# &;/' 8!:Ƣ!! )"),g(';".S &;!.M &2F""6F7G.A &2J""6J7K.5 &2H""6H7I.) &2N""6N7O'),g('2L""6L7M. &2B""6B7C. &2<""6<7=.} &2R""6R7S.q &2T""6T7U.e &2V""6V7W.Y &2P""6P7Q.M &2@""6@7A.A &2D""6D7E.5 &22""6273.) &2>""6>7?'),g(`%;Ā/b#28""6879/S$;û/J$%2ƣ""6ƣ7Ƥ/,#;ì/#$+")("'#&'#." &"/#$+$)($'#(#'#("'#&'#`),g(`%3ƥ""5%7Ʀ.) &3Ƨ""5$7ƨ/' 8!:ơ!! )`),g(`%3±""5#7².6 &3³""5#7´.* &$;+0#*;+&/' 8!:Ʃ!! )`),g(`%;Ą/#2F""6F7G/x$;ă/o$2F""6F7G/\`$;ă/W$2F""6F7G/H$;ă/?$2F""6F7G/0$;ą/'$8):ƪ) )()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#`),g(`%;#/>#;#/5$;#/,$;#/#$+$)($'#(#'#("'#&'#`),g(`%;ă/,#;ă/#$+")("'#&'#`),g(`%;ă/5#;ă/,$;ă/#$+#)(#'#("'#&'#`),g(`%;q/T#$;m0#*;m&/D$%; /,#;ø/#$+")("'#&'#." &"/#$+#)(#'#("'#&'#`),g(`%2ƫ""6ƫ7Ƭ.) &2ƭ""6ƭ7Ʈ/w#;0/n$;Ĉ/e$$%;B/2#;ĉ.# &; /#$+")("'#&'#0<*%;B/2#;ĉ.# &; /#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),g(";.# &;L"),g(`%2Ư""6Ư7ư/5#;</,$;Ċ/#$+#)(#'#("'#&'#`),g(`%;D/S#;,/J$2:""6:7;/;$;,.# &;T/,$;E/#$+%)(%'#($'#(#'#("'#&'#`)];let l=0,c=0;const u=[{line:1,column:1}];let d=0,p=[],h=0,m;if(t.startRule!==void 0){if(!(t.startRule in s))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');i=s[t.startRule]}function y(){return e.substring(c,l)}function T(){return _(c,l)}function v(S,E){return{type:"literal",text:S,ignoreCase:E}}function x(S,E,I){return{type:"class",parts:S,inverted:E,ignoreCase:I}}function w(){return{type:"end"}}function b(S){let E=u[S],I;if(E)return E;for(I=S-1;!u[I];)I--;for(E=u[I],E={line:E.line,column:E.column};I<S;)e.charCodeAt(I)===10?(E.line++,E.column=1):E.column++,I++;return u[S]=E,E}function _(S,E){const I=b(S),J=b(E);return{source:n,start:{offset:S,line:I.line,column:I.column},end:{offset:E,line:J.line,column:J.column}}}function A(S){l<d||(l>d&&(d=l,p=[]),p.push(S))}function P(S,E,I){return new Cf(Cf.buildMessage(S,E),S,E,I)}function g(S){return S.split("").map(E=>E.charCodeAt(0)-32)}function D(S){const E=a[S];let I=0;const J=[];let te=E.length;const W=[],ee=[];let G;for(;;){for(;I<te;)switch(E[I]){case 0:ee.push(o[E[I+1]]),I+=2;break;case 1:ee.push(void 0),I++;break;case 2:ee.push(null),I++;break;case 3:ee.push(r),I++;break;case 4:ee.push([]),I++;break;case 5:ee.push(l),I++;break;case 6:ee.pop(),I++;break;case 7:l=ee.pop(),I++;break;case 8:ee.length-=E[I+1],I+=2;break;case 9:ee.splice(-2,1),I++;break;case 10:ee[ee.length-2].push(ee.pop()),I++;break;case 11:ee.push(ee.splice(ee.length-E[I+1],E[I+1])),I+=2;break;case 12:ee.push(e.substring(ee.pop(),l)),I++;break;case 13:W.push(te),J.push(I+3+E[I+1]+E[I+2]),ee[ee.length-1]?(te=I+3+E[I+1],I+=3):(te=I+3+E[I+1]+E[I+2],I+=3+E[I+1]);break;case 14:W.push(te),J.push(I+3+E[I+1]+E[I+2]),ee[ee.length-1]===r?(te=I+3+E[I+1],I+=3):(te=I+3+E[I+1]+E[I+2],I+=3+E[I+1]);break;case 15:W.push(te),J.push(I+3+E[I+1]+E[I+2]),ee[ee.length-1]!==r?(te=I+3+E[I+1],I+=3):(te=I+3+E[I+1]+E[I+2],I+=3+E[I+1]);break;case 16:ee[ee.length-1]!==r?(W.push(te),J.push(I),te=I+2+E[I+1],I+=2):I+=2+E[I+1];break;case 17:W.push(te),J.push(I+3+E[I+1]+E[I+2]),e.length>l?(te=I+3+E[I+1],I+=3):(te=I+3+E[I+1]+E[I+2],I+=3+E[I+1]);break;case 18:W.push(te),J.push(I+4+E[I+2]+E[I+3]),e.substr(l,o[E[I+1]].length)===o[E[I+1]]?(te=I+4+E[I+2],I+=4):(te=I+4+E[I+2]+E[I+3],I+=4+E[I+2]);break;case 19:W.push(te),J.push(I+4+E[I+2]+E[I+3]),e.substr(l,o[E[I+1]].length).toLowerCase()===o[E[I+1]]?(te=I+4+E[I+2],I+=4):(te=I+4+E[I+2]+E[I+3],I+=4+E[I+2]);break;case 20:W.push(te),J.push(I+4+E[I+2]+E[I+3]),o[E[I+1]].test(e.charAt(l))?(te=I+4+E[I+2],I+=4):(te=I+4+E[I+2]+E[I+3],I+=4+E[I+2]);break;case 21:ee.push(e.substr(l,E[I+1])),l+=E[I+1],I+=2;break;case 22:ee.push(o[E[I+1]]),l+=o[E[I+1]].length,I+=2;break;case 23:ee.push(r),h===0&&A(o[E[I+1]]),I+=2;break;case 24:c=ee[ee.length-1-E[I+1]],I+=2;break;case 25:c=l,I++;break;case 26:G=E.slice(I+4,I+4+E[I+3]).map(function(le){return ee[ee.length-1-le]}),ee.splice(ee.length-E[I+2],E[I+2],o[E[I+1]].apply(null,G)),I+=4+E[I+3];break;case 27:ee.push(D(E[I+1])),I+=2;break;case 28:h++,I++;break;case 29:h--,I++;break;default:throw new Error("Invalid opcode: "+E[I]+".")}if(W.length>0)te=W.pop(),I=J.pop();else break}return ee[0]}t.data={};function O(S,E){return[S].concat(E)}if(m=D(i),m!==r&&l===e.length)return m;throw m!==r&&l<e.length&&A(w()),P(p,d<e.length?e.charAt(d):null,d<e.length?_(d,d+1):_(d,d))}const A0=E0;var ct;(function(e){function t(s,i){const o={startRule:i};try{A0(s,o)}catch{o.data=-1}return o.data}e.parse=t;function r(s){const i=e.parse(s,"Name_Addr_Header");return i!==-1?i:void 0}e.nameAddrHeaderParse=r;function n(s){const i=e.parse(s,"SIP_URI");return i!==-1?i:void 0}e.URIParse=n})(ct=ct||(ct={}));var I0={100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"};function Fn(e,t=32){let r="";for(let n=0;n<e;n++){const s=Math.floor(Math.random()*t);r+=s.toString(t)}return r}function vo(e){return I0[e]||""}function mo(){return Fn(10)}function Tr(e){const t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),n=r.length;let s="";for(let i=0;i<n;i++)i!==0&&(s+="-"),s+=r[i].charAt(0).toUpperCase()+r[i].substring(1);return t[s]&&(s=t[s]),s}function li(e){return encodeURIComponent(e).replace(/%[A-F\d]{2}/g,"U").length}var xf=class{constructor(){this.headers={}}addHeader(e,t){const r={raw:t};e=Tr(e),this.headers[e]?this.headers[e].push(r):this.headers[e]=[r]}getHeader(e){const t=this.headers[Tr(e)];if(t){if(t[0])return t[0].raw}else return}getHeaders(e){const t=this.headers[Tr(e)],r=[];if(!t)return[];for(const n of t)r.push(n.raw);return r}hasHeader(e){return!!this.headers[Tr(e)]}parseHeader(e,t=0){if(e=Tr(e),this.headers[e]){if(t>=this.headers[e].length)return}else return;const r=this.headers[e][t],n=r.raw;if(r.parsed)return r.parsed;const s=ct.parse(n,e.replace(/-/g,"_"));if(s===-1){this.headers[e].splice(t,1);return}else return r.parsed=s,s}s(e,t=0){return this.parseHeader(e,t)}setHeader(e,t){this.headers[Tr(e)]=[{raw:t}]}toString(){return this.data}},ms=class extends xf{constructor(){super()}},fn=class extends xf{constructor(){super()}},hl=class ea{constructor(t,r,n,s,i,o,a){this.headers={},this.extraHeaders=[],this.options=ea.getDefaultOptions(),i&&(this.options=Object.assign(Object.assign({},this.options),i),this.options.optionTags&&this.options.optionTags.length&&(this.options.optionTags=this.options.optionTags.slice()),this.options.routeSet&&this.options.routeSet.length&&(this.options.routeSet=this.options.routeSet.slice())),o&&o.length&&(this.extraHeaders=o.slice()),a&&(this.body={body:a.content,contentType:a.contentType}),this.method=t,this.ruri=r.clone(),this.fromURI=n.clone(),this.fromTag=this.options.fromTag?this.options.fromTag:mo(),this.from=ea.makeNameAddrHeader(this.fromURI,this.options.fromDisplayName,this.fromTag),this.toURI=s.clone(),this.toTag=this.options.toTag,this.to=ea.makeNameAddrHeader(this.toURI,this.options.toDisplayName,this.toTag),this.callId=this.options.callId?this.options.callId:this.options.callIdPrefix+Fn(15),this.cseq=this.options.cseq,this.setHeader("route",this.options.routeSet),this.setHeader("via",""),this.setHeader("to",this.to.toString()),this.setHeader("from",this.from.toString()),this.setHeader("cseq",this.cseq+" "+this.method),this.setHeader("call-id",this.callId),this.setHeader("max-forwards","70")}static getDefaultOptions(){return{callId:"",callIdPrefix:"",cseq:1,toDisplayName:"",toTag:"",fromDisplayName:"",fromTag:"",forceRport:!1,hackViaTcp:!1,optionTags:["outbound"],routeSet:[],userAgentString:"sip.js",viaHost:""}}static makeNameAddrHeader(t,r,n){const s={};return n&&(s.tag=n),new sr(t,r,s)}getHeader(t){const r=this.headers[Tr(t)];if(r){if(r[0])return r[0]}else{const n=new RegExp("^\\s*"+t+"\\s*:","i");for(const s of this.extraHeaders)if(n.test(s))return s.substring(s.indexOf(":")+1).trim()}}getHeaders(t){const r=[],n=this.headers[Tr(t)];if(n)for(const s of n)r.push(s);else{const s=new RegExp("^\\s*"+t+"\\s*:","i");for(const i of this.extraHeaders)s.test(i)&&r.push(i.substring(i.indexOf(":")+1).trim())}return r}hasHeader(t){if(this.headers[Tr(t)])return!0;{const r=new RegExp("^\\s*"+t+"\\s*:","i");for(const n of this.extraHeaders)if(r.test(n))return!0}return!1}setHeader(t,r){this.headers[Tr(t)]=r instanceof Array?r:[r]}setViaHeader(t,r){this.options.hackViaTcp&&(r="TCP");let n="SIP/2.0/"+r;n+=" "+this.options.viaHost+";branch="+t,this.options.forceRport&&(n+=";rport"),this.setHeader("via",n),this.branch=t}toString(){let t="";t+=this.method+" "+this.ruri.toRaw()+` SIP/2.0\r
|
|
13
13
|
`;for(const r in this.headers)if(this.headers[r])for(const n of this.headers[r])t+=r+": "+n+`\r
|
|
14
14
|
`;for(const r of this.extraHeaders)t+=r.trim()+`\r
|
|
15
15
|
`;return t+="Supported: "+this.options.optionTags.join(", ")+`\r
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
\r
|
|
24
24
|
`:t+=`Content-Length: 0\r
|
|
25
25
|
\r
|
|
26
|
-
`,t}};function Tf(e){return e==="application/sdp"?"session":"render"}function wo(e){const t=typeof e=="string"?e:e.body,r=typeof e=="string"?"application/sdp":e.contentType;return{contentDisposition:Tf(r),contentType:r,content:t}}function Ef(e){return e&&typeof e.content=="string"&&typeof e.contentType=="string"&&e.contentDisposition===void 0?!0:typeof e.contentDisposition=="string"}function ci(e){let t,r,n;if(e instanceof ms&&e.body){const s=e.parseHeader("Content-Disposition");t=s?s.type:void 0,r=e.parseHeader("Content-Type"),n=e.body}if(e instanceof fn&&e.body){const s=e.parseHeader("Content-Disposition");t=s?s.type:void 0,r=e.parseHeader("Content-Type"),n=e.body}if(e instanceof hl&&e.body)if(t=e.getHeader("Content-Disposition"),r=e.getHeader("Content-Type"),typeof e.body=="string"){if(!r)throw new Error("Header content type header does not equal body content type.");n=e.body}else{if(r&&r!==e.body.contentType)throw new Error("Header content type header does not equal body content type.");r=e.body.contentType,n=e.body.body}if(Ef(e)&&(t=e.contentDisposition,r=e.contentType,n=e.content),!!n){if(r&&!t&&(t=Tf(r)),!t)throw new Error("Content disposition undefined.");if(!r)throw new Error("Content type undefined.");return{contentDisposition:t,contentType:r,content:n}}}var ir;(function(e){e.Initial="Initial",e.Early="Early",e.AckWait="AckWait",e.Confirmed="Confirmed",e.Terminated="Terminated"})(ir=ir||(ir={}));var fe;(function(e){e.Initial="Initial",e.HaveLocalOffer="HaveLocalOffer",e.HaveRemoteOffer="HaveRemoteOffer",e.Stable="Stable",e.Closed="Closed"})(fe=fe||(fe={}));var Wr=500,k0=4e3,gl=5e3;const pt={T1:Wr,T2:k0,T4:gl,TIMER_B:64*Wr,TIMER_D:0*Wr,TIMER_F:64*Wr,TIMER_H:64*Wr,TIMER_I:0*gl,TIMER_J:0*Wr,TIMER_K:0*gl,TIMER_L:64*Wr,TIMER_M:64*Wr,TIMER_N:64*Wr,PROVISIONAL_RESPONSE_INTERVAL:6e4};var pn=class extends Ln{constructor(e){super(e||"Transaction state error.")}},he;(function(e){e.ACK="ACK",e.BYE="BYE",e.CANCEL="CANCEL",e.INFO="INFO",e.INVITE="INVITE",e.MESSAGE="MESSAGE",e.NOTIFY="NOTIFY",e.OPTIONS="OPTIONS",e.REGISTER="REGISTER",e.UPDATE="UPDATE",e.SUBSCRIBE="SUBSCRIBE",e.PUBLISH="PUBLISH",e.REFER="REFER",e.PRACK="PRACK"})(he=he||(he={}));const hn=[he.ACK,he.BYE,he.CANCEL,he.INFO,he.INVITE,he.MESSAGE,he.NOTIFY,he.OPTIONS,he.PRACK,he.REFER,he.REGISTER,he.SUBSCRIBE];var Af=class{constructor(e){this.incomingMessageRequest=e}get request(){return this.incomingMessageRequest.message}accept(e){return this.incomingMessageRequest.accept(e),Promise.resolve()}reject(e){return this.incomingMessageRequest.reject(e),Promise.resolve()}},vl=class{constructor(e){this.incomingNotifyRequest=e}get request(){return this.incomingNotifyRequest.message}accept(e){return this.incomingNotifyRequest.accept(e),Promise.resolve()}reject(e){return this.incomingNotifyRequest.reject(e),Promise.resolve()}},R0=class{constructor(e,t){this.incomingReferRequest=e,this.session=t}get referTo(){const e=this.incomingReferRequest.message.parseHeader("refer-to");if(!(e instanceof sr))throw new Error("Failed to parse Refer-To header.");return e}get referredBy(){return this.incomingReferRequest.message.getHeader("referred-by")}get replaces(){const e=this.referTo.uri.getHeader("replaces");return e instanceof Array?e[0]:e}get request(){return this.incomingReferRequest.message}accept(e={statusCode:202}){return this.incomingReferRequest.accept(e),Promise.resolve()}reject(e){return this.incomingReferRequest.reject(e),Promise.resolve()}makeInviter(e){if(this.inviter)return this.inviter;const t=this.referTo.uri.clone();t.clearHeaders(),e=e||{};const r=(e.extraHeaders||[]).slice(),n=this.replaces;n&&r.push("Replaces: "+decodeURIComponent(n));const s=this.referredBy;return s&&r.push("Referred-By: "+s),e.extraHeaders=r,this.inviter=this.session.userAgent._makeInviter(t,e),this.inviter._referred=this.session,this.session._referral=this.inviter,this.inviter}},U;(function(e){e.Initial="Initial",e.Establishing="Establishing",e.Established="Established",e.Terminating="Terminating",e.Terminated="Terminated"})(U=U||(U={}));var ml=class tg{constructor(t,r={}){this.pendingReinvite=!1,this.pendingReinviteAck=!1,this._state=U.Initial,this.delegate=r.delegate,this._stateEventEmitter=new ai,this._userAgent=t}dispose(){switch(this.logger.log(`Session ${this.id} in state ${this._state} is being disposed`),delete this.userAgent._sessions[this.id],this._sessionDescriptionHandler&&this._sessionDescriptionHandler.close(),this.state){case U.Initial:break;case U.Establishing:break;case U.Established:return new Promise(t=>{this._bye({onAccept:()=>t(),onRedirect:()=>t(),onReject:()=>t()})});case U.Terminating:break;case U.Terminated:break;default:throw new Error("Unknown state.")}return Promise.resolve()}get assertedIdentity(){return this._assertedIdentity}get dialog(){return this._dialog}get id(){return this._id}get replacee(){return this._replacee}get sessionDescriptionHandler(){return this._sessionDescriptionHandler}get sessionDescriptionHandlerFactory(){return this.userAgent.configuration.sessionDescriptionHandlerFactory}get sessionDescriptionHandlerModifiers(){return this._sessionDescriptionHandlerModifiers||[]}set sessionDescriptionHandlerModifiers(t){this._sessionDescriptionHandlerModifiers=t.slice()}get sessionDescriptionHandlerOptions(){return this._sessionDescriptionHandlerOptions||{}}set sessionDescriptionHandlerOptions(t){this._sessionDescriptionHandlerOptions=Object.assign({},t)}get sessionDescriptionHandlerModifiersReInvite(){return this._sessionDescriptionHandlerModifiersReInvite||[]}set sessionDescriptionHandlerModifiersReInvite(t){this._sessionDescriptionHandlerModifiersReInvite=t.slice()}get sessionDescriptionHandlerOptionsReInvite(){return this._sessionDescriptionHandlerOptionsReInvite||{}}set sessionDescriptionHandlerOptionsReInvite(t){this._sessionDescriptionHandlerOptionsReInvite=Object.assign({},t)}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get userAgent(){return this._userAgent}bye(t={}){let r="Session.bye() may only be called if established session.";switch(this.state){case U.Initial:typeof this.cancel=="function"?(r+=" However Inviter.invite() has not yet been called.",r+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(r+=" However Invitation.accept() has not yet been called.",r+=" Perhaps you should have called Invitation.reject()?");break;case U.Establishing:typeof this.cancel=="function"?(r+=" However a dialog does not yet exist.",r+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(r+=" However Invitation.accept() has not yet been called (or not yet resolved).",r+=" Perhaps you should have called Invitation.reject()?");break;case U.Established:{const n=t.requestDelegate,s=this.copyRequestOptions(t.requestOptions);return this._bye(n,s)}case U.Terminating:r+=" However this session is already terminating.",typeof this.cancel=="function"?r+=" Perhaps you have already called Inviter.cancel()?":typeof this.reject=="function"&&(r+=" Perhaps you have already called Session.bye()?");break;case U.Terminated:r+=" However this session is already terminated.";break;default:throw new Error("Unknown state")}return this.logger.error(r),Promise.reject(new Error(`Invalid session state ${this.state}`))}info(t={}){if(this.state!==U.Established)return this.logger.error("Session.info() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const r=t.requestDelegate,n=this.copyRequestOptions(t.requestOptions);return this._info(r,n)}invite(t={}){if(this.logger.log("Session.invite"),this.state!==U.Established)return Promise.reject(new Error(`Invalid session state ${this.state}`));if(this.pendingReinvite)return Promise.reject(new dl("Reinvite in progress. Please wait until complete, then try again."));this.pendingReinvite=!0,t.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiersReInvite=t.sessionDescriptionHandlerModifiers),t.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptionsReInvite=t.sessionDescriptionHandlerOptions);const r={onAccept:i=>{const o=ci(i.message);if(!o){this.logger.error("Received 2xx response to re-INVITE without a session description"),this.ackAndBye(i,400,"Missing session description"),this.stateTransition(U.Terminated),this.pendingReinvite=!1;return}if(t.withoutSdp){const a={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setOfferAndGetAnswer(o,a).then(l=>{i.ack({body:l})}).catch(l=>{this.logger.error("Failed to handle offer in 2xx response to re-INVITE"),this.logger.error(l.message),this.state===U.Terminated?i.ack():(this.ackAndBye(i,488,"Bad Media Description"),this.stateTransition(U.Terminated))}).then(()=>{this.pendingReinvite=!1,t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(i)})}else{const a={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setAnswer(o,a).then(()=>{i.ack()}).catch(l=>{this.logger.error("Failed to handle answer in 2xx response to re-INVITE"),this.logger.error(l.message),this.state!==U.Terminated?(this.ackAndBye(i,488,"Bad Media Description"),this.stateTransition(U.Terminated)):i.ack()}).then(()=>{this.pendingReinvite=!1,t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(i)})}},onProgress:i=>{},onRedirect:i=>{},onReject:i=>{this.logger.warn("Received a non-2xx response to re-INVITE"),this.pendingReinvite=!1,t.withoutSdp?t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(i):this.rollbackOffer().catch(o=>{if(this.logger.error("Failed to rollback offer on non-2xx response to re-INVITE"),this.logger.error(o.message),this.state!==U.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const a=[];a.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:a}),this.stateTransition(U.Terminated)}}).then(()=>{t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(i)})},onTrying:i=>{}},n=t.requestOptions||{};if(n.extraHeaders=(n.extraHeaders||[]).slice(),n.extraHeaders.push("Allow: "+hn.toString()),n.extraHeaders.push("Contact: "+this._contact),t.withoutSdp){if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return Promise.resolve(this.dialog.invite(r,n))}const s={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};return this.getOffer(s).then(i=>{if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return n.body=i,this.dialog.invite(r,n)}).catch(i=>{throw this.logger.error(i.message),this.logger.error("Failed to send re-INVITE"),this.pendingReinvite=!1,i})}message(t={}){if(this.state!==U.Established)return this.logger.error("Session.message() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const r=t.requestDelegate,n=this.copyRequestOptions(t.requestOptions);return this._message(r,n)}refer(t,r={}){if(this.state!==U.Established)return this.logger.error("Session.refer() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));if(t instanceof tg&&!t.dialog)return this.logger.error("Session.refer() may only be called with session which is established. You are perhaps attempting to attended transfer to a target for which there is not dialog yet established. Perhaps you are attempting a 'semi-attended' tansfer? Regardless, this is not supported. The recommended approached is to check to see if the target Session is in the Established state before calling refer(); if the state is not Established you may proceed by falling back using a URI as the target (blind transfer)."),Promise.reject(new Error(`Invalid session state ${this.state}`));const n=r.requestDelegate,s=this.copyRequestOptions(r.requestOptions);return s.extraHeaders=s.extraHeaders?s.extraHeaders.concat(this.referExtraHeaders(this.referToString(t))):this.referExtraHeaders(this.referToString(t)),this._refer(r.onNotify,n,s)}_bye(t,r){if(!this.dialog)return Promise.reject(new Error("Session dialog undefined."));const n=this.dialog;switch(n.sessionState){case ir.Initial:throw new Error(`Invalid dialog state ${n.sessionState}`);case ir.Early:throw new Error(`Invalid dialog state ${n.sessionState}`);case ir.AckWait:return this.stateTransition(U.Terminating),new Promise(s=>{n.delegate={onAck:()=>{const i=n.bye(t,r);return this.stateTransition(U.Terminated),s(i),Promise.resolve()},onAckTimeout:()=>{const i=n.bye(t,r);this.stateTransition(U.Terminated),s(i)}}});case ir.Confirmed:{const s=n.bye(t,r);return this.stateTransition(U.Terminated),Promise.resolve(s)}case ir.Terminated:throw new Error(`Invalid dialog state ${n.sessionState}`);default:throw new Error("Unrecognized state.")}}_info(t,r){return this.dialog?Promise.resolve(this.dialog.info(t,r)):Promise.reject(new Error("Session dialog undefined."))}_message(t,r){return this.dialog?Promise.resolve(this.dialog.message(t,r)):Promise.reject(new Error("Session dialog undefined."))}_refer(t,r,n){return this.dialog?(this.onNotify=t,Promise.resolve(this.dialog.refer(r,n))):Promise.reject(new Error("Session dialog undefined."))}ackAndBye(t,r,n){t.ack();const s=[];r&&s.push("Reason: "+this.getReasonHeaderValue(r,n)),t.session.bye(void 0,{extraHeaders:s})}onAckRequest(t){if(this.logger.log("Session.onAckRequest"),this.state!==U.Established&&this.state!==U.Terminating)return this.logger.error(`ACK received while in state ${this.state}, dropping request`),Promise.resolve();const r=this.dialog;if(!r)throw new Error("Dialog undefined.");const n={sessionDescriptionHandlerOptions:this.pendingReinviteAck?this.sessionDescriptionHandlerOptionsReInvite:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.pendingReinviteAck?this._sessionDescriptionHandlerModifiersReInvite:this._sessionDescriptionHandlerModifiers};if(this.delegate&&this.delegate.onAck){const s=new S0(t);this.delegate.onAck(s)}switch(this.pendingReinviteAck=!1,r.signalingState){case fe.Initial:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(U.Terminated),Promise.resolve()}case fe.Stable:{const s=ci(t.message);return s?s.contentDisposition==="render"?(this._renderbody=s.content,this._rendertype=s.contentType,Promise.resolve()):s.contentDisposition!=="session"?Promise.resolve():this.setAnswer(s,n).catch(i=>{this.logger.error(i.message);const o=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];r.bye(void 0,{extraHeaders:o}),this.stateTransition(U.Terminated)}):Promise.resolve()}case fe.HaveLocalOffer:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(U.Terminated),Promise.resolve()}case fe.HaveRemoteOffer:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(U.Terminated),Promise.resolve()}case fe.Closed:throw new Error(`Invalid signaling state ${r.signalingState}.`);default:throw new Error(`Invalid signaling state ${r.signalingState}.`)}}onByeRequest(t){if(this.logger.log("Session.onByeRequest"),this.state!==U.Established){this.logger.error(`BYE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onBye){const r=new C0(t);this.delegate.onBye(r)}else t.accept();this.stateTransition(U.Terminated)}onInfoRequest(t){if(this.logger.log("Session.onInfoRequest"),this.state!==U.Established){this.logger.error(`INFO received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onInfo){const r=new T0(t);this.delegate.onInfo(r)}else t.accept()}onInviteRequest(t){if(this.logger.log("Session.onInviteRequest"),this.state!==U.Established){this.logger.error(`INVITE received while in state ${this.state}, dropping request`);return}this.pendingReinviteAck=!0;const r=["Contact: "+this._contact];if(t.message.hasHeader("P-Asserted-Identity")){const s=t.message.getHeader("P-Asserted-Identity");if(!s)throw new Error("Header undefined.");this._assertedIdentity=ct.nameAddrHeaderParse(s)}const n={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.generateResponseOfferAnswerInDialog(n).then(s=>{const i=t.accept({statusCode:200,extraHeaders:r,body:s});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,200)}).catch(s=>{if(this.logger.error(s.message),this.logger.error("Failed to handle to re-INVITE request"),!this.dialog)throw new Error("Dialog undefined.");if(this.logger.error(this.dialog.signalingState),this.dialog.signalingState===fe.Stable){const i=t.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,488);return}this.rollbackOffer().then(()=>{const i=t.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,488)}).catch(i=>{this.logger.error(i.message),this.logger.error("Failed to rollback offer on re-INVITE request");const o=t.reject({statusCode:488});if(this.state!==U.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const a=[];a.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:a}),this.stateTransition(U.Terminated)}this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,o.message,488)})})}onMessageRequest(t){if(this.logger.log("Session.onMessageRequest"),this.state!==U.Established){this.logger.error(`MESSAGE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onMessage){const r=new Af(t);this.delegate.onMessage(r)}else t.accept()}onNotifyRequest(t){if(this.logger.log("Session.onNotifyRequest"),this.state!==U.Established){this.logger.error(`NOTIFY received while in state ${this.state}, dropping request`);return}if(this.onNotify){const r=new vl(t);this.onNotify(r);return}if(this.delegate&&this.delegate.onNotify){const r=new vl(t);this.delegate.onNotify(r)}else t.accept()}onPrackRequest(t){if(this.logger.log("Session.onPrackRequest"),this.state!==U.Established){this.logger.error(`PRACK received while in state ${this.state}, dropping request`);return}throw new Error("Unimplemented.")}onReferRequest(t){if(this.logger.log("Session.onReferRequest"),this.state!==U.Established){this.logger.error(`REFER received while in state ${this.state}, dropping request`);return}if(!t.message.hasHeader("refer-to")){this.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting."),t.reject();return}const r=new R0(t,this);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(r):(this.logger.log("No delegate available to handle REFER, automatically accepting and following."),r.accept().then(()=>r.makeInviter(this._referralInviterOptions).invite()).catch(n=>{this.logger.error(n.message)}))}generateResponseOfferAnswer(t,r){if(this.dialog)return this.generateResponseOfferAnswerInDialog(r);const n=ci(t.message);return!n||n.contentDisposition!=="session"?this.getOffer(r):this.setOfferAndGetAnswer(n,r)}generateResponseOfferAnswerInDialog(t){if(!this.dialog)throw new Error("Dialog undefined.");switch(this.dialog.signalingState){case fe.Initial:return this.getOffer(t);case fe.HaveLocalOffer:return Promise.resolve(void 0);case fe.HaveRemoteOffer:if(!this.dialog.offer)throw new Error(`Session offer undefined in signaling state ${this.dialog.signalingState}.`);return this.setOfferAndGetAnswer(this.dialog.offer,t);case fe.Stable:return this.state!==U.Established?Promise.resolve(void 0):this.getOffer(t);case fe.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}getOffer(t){const r=this.setupSessionDescriptionHandler(),n=t.sessionDescriptionHandlerOptions,s=t.sessionDescriptionHandlerModifiers;try{return r.getDescription(n,s).then(i=>wo(i)).catch(i=>{this.logger.error("Session.getOffer: SDH getDescription rejected...");const o=i instanceof Error?i:new Error("Session.getOffer unknown error.");throw this.logger.error(o.message),o})}catch(i){this.logger.error("Session.getOffer: SDH getDescription threw...");const o=i instanceof Error?i:new Error(i);return this.logger.error(o.message),Promise.reject(o)}}rollbackOffer(){const t=this.setupSessionDescriptionHandler();if(t.rollbackDescription===void 0)return Promise.resolve();try{return t.rollbackDescription().catch(r=>{this.logger.error("Session.rollbackOffer: SDH rollbackDescription rejected...");const n=r instanceof Error?r:new Error("Session.rollbackOffer unknown error.");throw this.logger.error(n.message),n})}catch(r){this.logger.error("Session.rollbackOffer: SDH rollbackDescription threw...");const n=r instanceof Error?r:new Error(r);return this.logger.error(n.message),Promise.reject(n)}}setAnswer(t,r){const n=this.setupSessionDescriptionHandler(),s=r.sessionDescriptionHandlerOptions,i=r.sessionDescriptionHandlerModifiers;try{if(!n.hasDescription(t.contentType))return Promise.reject(new ul)}catch(o){this.logger.error("Session.setAnswer: SDH hasDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}try{return n.setDescription(t.content,s,i).catch(o=>{this.logger.error("Session.setAnswer: SDH setDescription rejected...");const a=o instanceof Error?o:new Error("Session.setAnswer unknown error.");throw this.logger.error(a.message),a})}catch(o){this.logger.error("Session.setAnswer: SDH setDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}}setOfferAndGetAnswer(t,r){const n=this.setupSessionDescriptionHandler(),s=r.sessionDescriptionHandlerOptions,i=r.sessionDescriptionHandlerModifiers;try{if(!n.hasDescription(t.contentType))return Promise.reject(new ul)}catch(o){this.logger.error("Session.setOfferAndGetAnswer: SDH hasDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}try{return n.setDescription(t.content,s,i).then(()=>n.getDescription(s,i)).then(o=>wo(o)).catch(o=>{this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription rejected...");const a=o instanceof Error?o:new Error("Session.setOfferAndGetAnswer unknown error.");throw this.logger.error(a.message),a})}catch(o){this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}}setSessionDescriptionHandler(t){if(this._sessionDescriptionHandler)throw new Error("Session description handler defined.");this._sessionDescriptionHandler=t}setupSessionDescriptionHandler(){var t;return this._sessionDescriptionHandler?this._sessionDescriptionHandler:(this._sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions),!((t=this.delegate)===null||t===void 0)&&t.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(this._sessionDescriptionHandler,!1),this._sessionDescriptionHandler)}stateTransition(t){const r=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case U.Initial:t!==U.Establishing&&t!==U.Established&&t!==U.Terminating&&t!==U.Terminated&&r();break;case U.Establishing:t!==U.Established&&t!==U.Terminating&&t!==U.Terminated&&r();break;case U.Established:t!==U.Terminating&&t!==U.Terminated&&r();break;case U.Terminating:t!==U.Terminated&&r();break;case U.Terminated:r();break;default:throw new Error("Unrecognized state.")}this._state=t,this.logger.log(`Session ${this.id} transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),t===U.Terminated&&this.dispose()}copyRequestOptions(t={}){return{extraHeaders:t.extraHeaders?t.extraHeaders.slice():void 0,body:t.body?{contentDisposition:t.body.contentDisposition||"render",contentType:t.body.contentType||"text/plain",content:t.body.content||""}:void 0}}getReasonHeaderValue(t,r){const n=t;let s=vo(t);return!s&&r&&(s=r),"SIP;cause="+n+';text="'+s+'"'}referExtraHeaders(t){const r=[];return r.push("Referred-By: <"+this.userAgent.configuration.uri+">"),r.push("Contact: "+this._contact),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),r.push("Refer-To: "+t),r}referToString(t){let r;if(t instanceof dn)r=t.toString();else{if(!t.dialog)throw new Error("Dialog undefined.");const n=t.remoteIdentity.friendlyName,s=t.dialog.remoteTarget.toString(),i=t.dialog.callId,o=t.dialog.remoteTag,a=t.dialog.localTag;r=`"${n}" <${s}?Replaces=${encodeURIComponent(`${i};to-tag=${o};from-tag=${a}`)}>`}return r}},gr;(function(e){e.Required="Required",e.Supported="Supported",e.Unsupported="Unsupported"})(gr=gr||(gr={}));const $0={"100rel":!0,199:!0,answermode:!0,"early-session":!0,eventlist:!0,explicitsub:!0,"from-change":!0,"geolocation-http":!0,"geolocation-sip":!0,gin:!0,gruu:!0,histinfo:!0,ice:!0,join:!0,"multiple-refer":!0,norefersub:!0,nosub:!0,outbound:!0,path:!0,policy:!0,precondition:!0,pref:!0,privacy:!0,"recipient-list-invite":!0,"recipient-list-message":!0,"recipient-list-subscribe":!0,replaces:!0,"resource-priority":!0,"sdp-anat":!0,"sec-agree":!0,tdialog:!0,timer:!0,uui:!0};var yo=class extends ml{constructor(e,t){super(e),this.incomingInviteRequest=t,this.disposed=!1,this.expiresTimer=void 0,this.isCanceled=!1,this.rel100="none",this.rseq=Math.floor(Math.random()*1e4),this.userNoAnswerTimer=void 0,this.waitingForPrack=!1,this.logger=e.getLogger("sip.Invitation");const r=this.incomingInviteRequest.message,n=r.getHeader("require");n&&n.toLowerCase().includes("100rel")&&(this.rel100="required");const s=r.getHeader("supported");if(s&&s.toLowerCase().includes("100rel")&&(this.rel100="supported"),r.toTag=t.toTag,typeof r.toTag!="string")throw new TypeError("toTag should have been a string.");if(this.userNoAnswerTimer=setTimeout(()=>{t.reject({statusCode:480}),this.stateTransition(U.Terminated)},this.userAgent.configuration.noAnswerTimeout?this.userAgent.configuration.noAnswerTimeout*1e3:6e4),r.hasHeader("expires")){const a=Number(r.getHeader("expires")||0)*1e3;this.expiresTimer=setTimeout(()=>{this.state===U.Initial&&(t.reject({statusCode:487}),this.stateTransition(U.Terminated))},a)}const i=this.request.getHeader("P-Asserted-Identity");i&&(this._assertedIdentity=ct.nameAddrHeaderParse(i)),this._contact=this.userAgent.contact.toString();const o=r.parseHeader("Content-Disposition");o&&o.type==="render"&&(this._renderbody=r.body,this._rendertype=r.getHeader("Content-Type")),this._id=r.callId+r.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.expiresTimer&&(clearTimeout(this.expiresTimer),this.expiresTimer=void 0),this.userNoAnswerTimer&&(clearTimeout(this.userNoAnswerTimer),this.userNoAnswerTimer=void 0),this.prackNeverArrived(),this.state){case U.Initial:return this.reject().then(()=>super.dispose());case U.Establishing:return this.reject().then(()=>super.dispose());case U.Established:return super.dispose();case U.Terminating:return super.dispose();case U.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get autoSendAnInitialProvisionalResponse(){return this.rel100!=="required"&&this.userAgent.configuration.sendInitialProvisionalResponse}get body(){return this.incomingInviteRequest.message.body}get localIdentity(){return this.request.to}get remoteIdentity(){return this.request.from}get request(){return this.incomingInviteRequest.message}accept(e={}){if(this.logger.log("Invitation.accept"),this.state!==U.Initial){const t=new Error(`Invalid session state ${this.state}`);return this.logger.error(t.message),Promise.reject(t)}return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.stateTransition(U.Establishing),this.sendAccept(e).then(({message:t,session:r})=>{r.delegate={onAck:n=>this.onAckRequest(n),onAckTimeout:()=>this.onAckTimeout(),onBye:n=>this.onByeRequest(n),onInfo:n=>this.onInfoRequest(n),onInvite:n=>this.onInviteRequest(n),onMessage:n=>this.onMessageRequest(n),onNotify:n=>this.onNotifyRequest(n),onPrack:n=>this.onPrackRequest(n),onRefer:n=>this.onReferRequest(n)},this._dialog=r,this.stateTransition(U.Established),this._replacee&&this._replacee._bye()}).catch(t=>this.handleResponseError(t))}progress(e={}){if(this.logger.log("Invitation.progress"),this.state!==U.Initial){const r=new Error(`Invalid session state ${this.state}`);return this.logger.error(r.message),Promise.reject(r)}const t=e.statusCode||180;if(t<100||t>199)throw new TypeError("Invalid statusCode: "+t);return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.waitingForPrack?(this.logger.warn("Unexpected call for progress while waiting for prack, ignoring"),Promise.resolve()):e.statusCode===100?this.sendProgressTrying().then(()=>{}).catch(r=>this.handleResponseError(r)):this.rel100!=="required"&&!(this.rel100==="supported"&&e.rel100)&&!(this.rel100==="supported"&&this.userAgent.configuration.sipExtension100rel===gr.Required)?this.sendProgress(e).then(()=>{}).catch(r=>this.handleResponseError(r)):this.sendProgressReliableWaitForPrack(e).then(()=>{}).catch(r=>this.handleResponseError(r))}reject(e={}){if(this.logger.log("Invitation.reject"),this.state!==U.Initial&&this.state!==U.Establishing){const i=new Error(`Invalid session state ${this.state}`);return this.logger.error(i.message),Promise.reject(i)}const t=e.statusCode||480,r=e.reasonPhrase?e.reasonPhrase:vo(t),n=e.extraHeaders||[];if(t<300||t>699)throw new TypeError("Invalid statusCode: "+t);const s=e.body?wo(e.body):void 0;return t<400?this.incomingInviteRequest.redirect([],{statusCode:t,reasonPhrase:r,extraHeaders:n,body:s}):this.incomingInviteRequest.reject({statusCode:t,reasonPhrase:r,extraHeaders:n,body:s}),this.stateTransition(U.Terminated),Promise.resolve()}_onCancel(e){if(this.logger.log("Invitation._onCancel"),this.state!==U.Initial&&this.state!==U.Establishing){this.logger.error(`CANCEL received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onCancel){const t=new x0(e);this.delegate.onCancel(t)}this.isCanceled=!0,this.incomingInviteRequest.reject({statusCode:487}),this.stateTransition(U.Terminated)}handlePrackOfferAnswer(e){if(!this.dialog)throw new Error("Dialog undefined.");const t=ci(e.message);if(!t||t.contentDisposition!=="session")return Promise.resolve(void 0);const r={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers};switch(this.dialog.signalingState){case fe.Initial:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case fe.Stable:return this.setAnswer(t,r).then(()=>{});case fe.HaveLocalOffer:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case fe.HaveRemoteOffer:return this.setOfferAndGetAnswer(t,r);case fe.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}handleResponseError(e){let t=480;if(e instanceof Error?this.logger.error(e.message):this.logger.error(e),e instanceof ul?(this.logger.error("A session description handler occurred while sending response (content type unsupported"),t=415):e instanceof _0?this.logger.error("A session description handler occurred while sending response"):e instanceof fl?this.logger.error("Session ended before response could be formulated and sent (while waiting for PRACK)"):e instanceof pn&&this.logger.error("Session changed state before response could be formulated and sent"),this.state===U.Initial||this.state===U.Establishing)try{this.incomingInviteRequest.reject({statusCode:t}),this.stateTransition(U.Terminated)}catch(r){throw this.logger.error("An error occurred attempting to reject the request while handling another error"),r}if(this.isCanceled){this.logger.warn("An error occurred while attempting to formulate and send a response to an incoming INVITE. However a CANCEL was received and processed while doing so which can (and often does) result in errors occurring as the session terminates in the meantime. Said error is being ignored.");return}throw e}onAckTimeout(){if(this.logger.log("Invitation.onAckTimeout"),!this.dialog)throw new Error("Dialog undefined.");this.logger.log("No ACK received for an extended period of time, terminating session"),this.dialog.bye(),this.stateTransition(U.Terminated)}sendAccept(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.extraHeaders||[];return this.waitingForPrack?this.waitForArrivalOfPrack().then(()=>clearTimeout(this.userNoAnswerTimer)).then(()=>this.generateResponseOfferAnswer(this.incomingInviteRequest,t)).then(n=>this.incomingInviteRequest.accept({statusCode:200,body:n,extraHeaders:r})):(clearTimeout(this.userNoAnswerTimer),this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(n=>this.incomingInviteRequest.accept({statusCode:200,body:n,extraHeaders:r})))}sendProgress(e={}){const t=e.statusCode||180,r=e.reasonPhrase,n=(e.extraHeaders||[]).slice(),s=e.body?wo(e.body):void 0;if(t===183&&!s)return this.sendProgressWithSDP(e);try{const i=this.incomingInviteRequest.progress({statusCode:t,reasonPhrase:r,extraHeaders:n,body:s});return this._dialog=i.session,Promise.resolve(i)}catch(i){return Promise.reject(i)}}sendProgressWithSDP(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.statusCode||183,n=e.reasonPhrase,s=(e.extraHeaders||[]).slice();return this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(i=>this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i})).then(i=>(this._dialog=i.session,i))}sendProgressReliable(e={}){return e.extraHeaders=(e.extraHeaders||[]).slice(),e.extraHeaders.push("Require: 100rel"),e.extraHeaders.push("RSeq: "+Math.floor(Math.random()*1e4)),this.sendProgressWithSDP(e)}sendProgressReliableWaitForPrack(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.statusCode||183,n=e.reasonPhrase,s=(e.extraHeaders||[]).slice();s.push("Require: 100rel"),s.push("RSeq: "+this.rseq++);let i;return new Promise((o,a)=>{this.waitingForPrack=!0,this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(l=>(i=l,this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i}))).then(l=>{this._dialog=l.session;let c,u;l.session.delegate={onPrack:C=>{c=C,clearTimeout(p),clearTimeout(b),this.waitingForPrack&&(this.waitingForPrack=!1,this.handlePrackOfferAnswer(c).then(v=>{try{u=c.accept({statusCode:200,body:v}),this.prackArrived(),o({prackRequest:c,prackResponse:u,progressResponse:l})}catch(S){a(S)}}).catch(v=>a(v)))}};const p=setTimeout(()=>{this.waitingForPrack&&(this.waitingForPrack=!1,this.logger.warn("No PRACK received, rejecting INVITE."),clearTimeout(b),this.reject({statusCode:504}).then(()=>a(new fl)).catch(C=>a(C)))},pt.T1*64),g=()=>{try{this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i})}catch(C){this.waitingForPrack=!1,a(C);return}b=setTimeout(g,w*=2)};let w=pt.T1,b=setTimeout(g,w)}).catch(l=>{this.waitingForPrack=!1,a(l)})})}sendProgressTrying(){try{const e=this.incomingInviteRequest.trying();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}waitForArrivalOfPrack(){if(this.waitingForPrackPromise)throw new Error("Already waiting for PRACK");return this.waitingForPrackPromise=new Promise((e,t)=>{this.waitingForPrackResolve=e,this.waitingForPrackReject=t}),this.waitingForPrackPromise}prackArrived(){this.waitingForPrackResolve&&this.waitingForPrackResolve(),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}prackNeverArrived(){this.waitingForPrackReject&&this.waitingForPrackReject(new fl),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}},wl=class extends ml{constructor(e,t,r={}){super(e,r),this.disposed=!1,this.earlyMedia=!1,this.earlyMediaSessionDescriptionHandlers=new Map,this.isCanceled=!1,this.inviteWithoutSdp=!1,this.logger=e.getLogger("sip.Inviter"),this.earlyMedia=r.earlyMedia!==void 0?r.earlyMedia:this.earlyMedia,this.fromTag=mo(),this.inviteWithoutSdp=r.inviteWithoutSdp!==void 0?r.inviteWithoutSdp:this.inviteWithoutSdp;const n=Object.assign({},r);n.params=Object.assign({},r.params);const s=r.anonymous||!1,i=e.contact.toString({anonymous:s,outbound:s?!e.contact.tempGruu:!e.contact.pubGruu});s&&e.configuration.uri&&(n.params.fromDisplayName="Anonymous",n.params.fromUri="sip:anonymous@anonymous.invalid");let o=e.userAgentCore.configuration.aor;if(n.params.fromUri&&(o=typeof n.params.fromUri=="string"?ct.URIParse(n.params.fromUri):n.params.fromUri),!o)throw new TypeError("Invalid from URI: "+n.params.fromUri);let a=t;if(n.params.toUri&&(a=typeof n.params.toUri=="string"?ct.URIParse(n.params.toUri):n.params.toUri),!a)throw new TypeError("Invalid to URI: "+n.params.toUri);const l=Object.assign({},n.params);l.fromTag=this.fromTag;const c=(n.extraHeaders||[]).slice();s&&e.configuration.uri&&(c.push("P-Preferred-Identity: "+e.configuration.uri.toString()),c.push("Privacy: id")),c.push("Contact: "+i),c.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),e.configuration.sipExtension100rel===gr.Required&&c.push("Require: 100rel"),e.configuration.sipExtensionReplaces===gr.Required&&c.push("Require: replaces"),n.extraHeaders=c,this.outgoingRequestMessage=e.userAgentCore.makeOutgoingRequestMessage(he.INVITE,t,o,a,l,c,void 0),this._contact=i,this._referralInviterOptions=n,this._renderbody=r.renderbody,this._rendertype=r.rendertype,r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),r.sessionDescriptionHandlerModifiersReInvite&&(this.sessionDescriptionHandlerModifiersReInvite=r.sessionDescriptionHandlerModifiersReInvite),r.sessionDescriptionHandlerOptionsReInvite&&(this.sessionDescriptionHandlerOptionsReInvite=r.sessionDescriptionHandlerOptionsReInvite),this._id=this.outgoingRequestMessage.callId+this.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.disposeEarlyMedia(),this.state){case U.Initial:return this.cancel().then(()=>super.dispose());case U.Establishing:return this.cancel().then(()=>super.dispose());case U.Established:return super.dispose();case U.Terminating:return super.dispose();case U.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get body(){return this.outgoingRequestMessage.body}get localIdentity(){return this.outgoingRequestMessage.from}get remoteIdentity(){return this.outgoingRequestMessage.to}get request(){return this.outgoingRequestMessage}cancel(e={}){if(this.logger.log("Inviter.cancel"),this.state!==U.Initial&&this.state!==U.Establishing){const r=new Error(`Invalid session state ${this.state}`);return this.logger.error(r.message),Promise.reject(r)}this.isCanceled=!0,this.stateTransition(U.Terminating);function t(r,n){if(r&&r<200||r>699)throw new TypeError("Invalid statusCode: "+r);if(r){const s=r,i=vo(r)||n;return"SIP;cause="+s+';text="'+i+'"'}}if(this.outgoingInviteRequest){let r;e.statusCode&&e.reasonPhrase&&(r=t(e.statusCode,e.reasonPhrase)),this.outgoingInviteRequest.cancel(r,e)}else this.logger.warn("Canceled session before INVITE was sent"),this.stateTransition(U.Terminated);return Promise.resolve()}invite(e={}){if(this.logger.log("Inviter.invite"),this.state!==U.Initial)return super.invite(e);if(e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),e.withoutSdp||this.inviteWithoutSdp)return this._renderbody&&this._rendertype&&(this.outgoingRequestMessage.body={contentType:this._rendertype,body:this._renderbody}),this.stateTransition(U.Establishing),Promise.resolve(this.sendInvite(e));const t={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.getOffer(t).then(r=>(this.outgoingRequestMessage.body={body:r.content,contentType:r.contentType},this.stateTransition(U.Establishing),this.sendInvite(e))).catch(r=>{throw this.logger.log(r.message),this.state!==U.Terminated&&this.stateTransition(U.Terminated),r})}sendInvite(e={}){return this.outgoingInviteRequest=this.userAgent.userAgentCore.invite(this.outgoingRequestMessage,{onAccept:t=>{if(this.dialog){this.logger.log("Additional confirmed dialog, sending ACK and BYE"),this.ackAndBye(t);return}if(this.isCanceled){this.logger.log("Canceled session accepted, sending ACK and BYE"),this.ackAndBye(t),this.stateTransition(U.Terminated);return}this.notifyReferer(t),this.onAccept(t).then(()=>{this.disposeEarlyMedia()}).catch(()=>{this.disposeEarlyMedia()}).then(()=>{e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(t)})},onProgress:t=>{this.isCanceled||(this.notifyReferer(t),this.onProgress(t).catch(()=>{this.disposeEarlyMedia()}).then(()=>{e.requestDelegate&&e.requestDelegate.onProgress&&e.requestDelegate.onProgress(t)}))},onRedirect:t=>{this.notifyReferer(t),this.onRedirect(t),e.requestDelegate&&e.requestDelegate.onRedirect&&e.requestDelegate.onRedirect(t)},onReject:t=>{this.notifyReferer(t),this.onReject(t),e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(t)},onTrying:t=>{this.notifyReferer(t),this.onTrying(t),e.requestDelegate&&e.requestDelegate.onTrying&&e.requestDelegate.onTrying(t)}}),this.outgoingInviteRequest}disposeEarlyMedia(){this.earlyMediaSessionDescriptionHandlers.forEach(e=>{e.close()}),this.earlyMediaSessionDescriptionHandlers.clear()}notifyReferer(e){if(!this._referred)return;if(!(this._referred instanceof ml))throw new Error("Referred session not instance of session");if(!this._referred.dialog)return;if(!e.message.statusCode)throw new Error("Status code undefined.");if(!e.message.reasonPhrase)throw new Error("Reason phrase undefined.");const t=`SIP/2.0 ${e.message.statusCode} ${e.message.reasonPhrase}`.trim(),r=this._referred.dialog.notify(void 0,{extraHeaders:["Event: refer","Subscription-State: terminated"],body:{contentDisposition:"render",contentType:"message/sipfrag",content:t}});r.delegate={onReject:()=>{this._referred=void 0}}}onAccept(e){if(this.logger.log("Inviter.onAccept"),this.state!==U.Establishing)return this.logger.error(`Accept received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));const t=e.message,r=e.session;switch(t.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=ct.nameAddrHeaderParse(t.getHeader("P-Asserted-Identity"))),r.delegate={onAck:n=>this.onAckRequest(n),onBye:n=>this.onByeRequest(n),onInfo:n=>this.onInfoRequest(n),onInvite:n=>this.onInviteRequest(n),onMessage:n=>this.onMessageRequest(n),onNotify:n=>this.onNotifyRequest(n),onPrack:n=>this.onPrackRequest(n),onRefer:n=>this.onReferRequest(n)},this._dialog=r,r.signalingState){case fe.Initial:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(U.Terminated),Promise.reject(new Error("Bad Media Description"));case fe.HaveLocalOffer:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(U.Terminated),Promise.reject(new Error("Bad Media Description"));case fe.HaveRemoteOffer:{if(!this._dialog.offer)throw new Error(`Session offer undefined in signaling state ${this._dialog.signalingState}.`);const n={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setOfferAndGetAnswer(this._dialog.offer,n).then(s=>{e.ack({body:s}),this.stateTransition(U.Established)}).catch(s=>{throw this.ackAndBye(e,488,"Invalid session description"),this.stateTransition(U.Terminated),s})}case fe.Stable:{if(this.earlyMediaSessionDescriptionHandlers.size>0){const i=this.earlyMediaSessionDescriptionHandlers.get(r.id);if(!i)throw new Error("Session description handler undefined.");return this.setSessionDescriptionHandler(i),this.earlyMediaSessionDescriptionHandlers.delete(r.id),e.ack(),this.stateTransition(U.Established),Promise.resolve()}if(this.earlyMediaDialog){if(this.earlyMediaDialog!==r){this.earlyMedia&&this.logger.error("You have set the 'earlyMedia' option to 'true' which requires that your INVITE requests do not fork and yet this INVITE request did in fact fork. Consequentially and not surprisingly the end point which accepted the INVITE (confirmed dialog) does not match the end point with which early media has been setup (early dialog) and thus this session is unable to proceed. In accordance with the SIP specifications, the SIP servers your end point is connected to determine if an INVITE forks and the forking behavior of those servers cannot be controlled by this library. If you wish to use early media with this library you must configure those servers accordingly. Alternatively you may set the 'earlyMedia' to 'false' which will allow this library to function with any INVITE requests which do fork.");const i=new Error("Early media dialog does not equal confirmed dialog, terminating session");return this.logger.error(i.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(U.Terminated),Promise.reject(i)}return e.ack(),this.stateTransition(U.Established),Promise.resolve()}const n=r.answer;if(!n)throw new Error("Answer is undefined.");const s={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(n,s).then(()=>{let i;this._renderbody&&this._rendertype&&(i={body:{contentDisposition:"render",contentType:this._rendertype,content:this._renderbody}}),e.ack(i),this.stateTransition(U.Established)}).catch(i=>{throw this.logger.error(i.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(U.Terminated),i})}case fe.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onProgress(e){var t;if(this.logger.log("Inviter.onProgress"),this.state!==U.Establishing)return this.logger.error(`Progress received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));if(!this.outgoingInviteRequest)throw new Error("Outgoing INVITE request undefined.");const r=e.message,n=e.session;r.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=ct.nameAddrHeaderParse(r.getHeader("P-Asserted-Identity")));const s=r.getHeader("require"),i=r.getHeader("rseq"),o=!!(s&&s.includes("100rel")&&i&&Number(i)),a=[];switch(o&&a.push("RAck: "+r.getHeader("rseq")+" "+r.getHeader("cseq")),n.signalingState){case fe.Initial:return o&&(this.logger.warn("First reliable provisional response received MUST contain an offer when INVITE does not contain an offer."),e.prack({extraHeaders:a})),Promise.resolve();case fe.HaveLocalOffer:return o&&e.prack({extraHeaders:a}),Promise.resolve();case fe.HaveRemoteOffer:if(!o)return this.logger.warn("Non-reliable provisional response MUST NOT contain an initial offer, discarding response."),Promise.resolve();{const l=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions||{});return!((t=this.delegate)===null||t===void 0)&&t.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(l,!0),this.earlyMediaSessionDescriptionHandlers.set(n.id,l),l.setDescription(r.body,this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers).then(()=>l.getDescription(this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers)).then(c=>{const u={contentDisposition:"session",contentType:c.contentType,content:c.body};e.prack({extraHeaders:a,body:u})}).catch(c=>{throw this.stateTransition(U.Terminated),c})}case fe.Stable:if(o&&e.prack({extraHeaders:a}),this.earlyMedia&&!this.earlyMediaDialog){this.earlyMediaDialog=n;const l=n.answer;if(!l)throw new Error("Answer is undefined.");const c={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(l,c).catch(u=>{throw this.stateTransition(U.Terminated),u})}return Promise.resolve();case fe.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onRedirect(e){if(this.logger.log("Inviter.onRedirect"),this.state!==U.Establishing&&this.state!==U.Terminating){this.logger.error(`Redirect received while in state ${this.state}, dropping response`);return}this.stateTransition(U.Terminated)}onReject(e){if(this.logger.log("Inviter.onReject"),this.state!==U.Establishing&&this.state!==U.Terminating){this.logger.error(`Reject received while in state ${this.state}, dropping response`);return}this.stateTransition(U.Terminated)}onTrying(e){if(this.logger.log("Inviter.onTrying"),this.state!==U.Establishing){this.logger.error(`Trying received while in state ${this.state}, dropping response`);return}}},Je;(function(e){e.Initial="Initial",e.Registered="Registered",e.Unregistered="Unregistered",e.Terminated="Terminated"})(Je=Je||(Je={}));var yl=class Jn{constructor(t,r={}){this.disposed=!1,this._contacts=[],this._retryAfter=void 0,this._state=Je.Initial,this._waiting=!1,this._stateEventEmitter=new ai,this._waitingEventEmitter=new ai,this.userAgent=t;const n=t.configuration.uri.clone();if(n.user=void 0,this.options=Object.assign(Object.assign(Object.assign({},Jn.defaultOptions()),{registrar:n}),Jn.stripUndefinedProperties(r)),this.options.extraContactHeaderParams=(this.options.extraContactHeaderParams||[]).slice(),this.options.extraHeaders=(this.options.extraHeaders||[]).slice(),!this.options.registrar)throw new Error("Registrar undefined.");if(this.options.registrar=this.options.registrar.clone(),this.options.regId&&!this.options.instanceId?this.options.instanceId=this.userAgent.instanceId:!this.options.regId&&this.options.instanceId&&(this.options.regId=1),this.options.instanceId&&ct.parse(this.options.instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");if(this.options.regId&&this.options.regId<0)throw new Error("Invalid regId.");const s=this.options.registrar,i=this.options.params&&this.options.params.fromUri||t.userAgentCore.configuration.aor,o=this.options.params&&this.options.params.toUri||t.configuration.uri,a=this.options.params||{},l=(r.extraHeaders||[]).slice();if(this.request=t.userAgentCore.makeOutgoingRequestMessage(he.REGISTER,s,i,o,a,l,void 0),this.expires=this.options.expires||Jn.defaultExpires,this.expires<0)throw new Error("Invalid expires.");if(this.refreshFrequency=this.options.refreshFrequency||Jn.defaultRefreshFrequency,this.refreshFrequency<50||this.refreshFrequency>99)throw new Error("Invalid refresh frequency. The value represents a percentage of the expiration time and should be between 50 and 99.");this.logger=t.getLogger("sip.Registerer"),this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(c=>{const u=this.options[c];c==="registrar"?this.logger.log("· "+c+": "+u):this.logger.log("· "+c+": "+JSON.stringify(u))})),this.id=this.request.callId+this.request.from.parameters.tag,this.userAgent._registerers[this.id]=this}static defaultOptions(){return{expires:Jn.defaultExpires,extraContactHeaderParams:[],extraHeaders:[],logConfiguration:!0,instanceId:"",params:{},regId:0,registrar:new dn("sip","anonymous","anonymous.invalid"),refreshFrequency:Jn.defaultRefreshFrequency}}static stripUndefinedProperties(t){return Object.keys(t).reduce((r,n)=>(t[n]!==void 0&&(r[n]=t[n]),r),{})}get contacts(){return this._contacts.slice()}get retryAfter(){return this._retryAfter}get state(){return this._state}get stateChange(){return this._stateEventEmitter}dispose(){return this.disposed?Promise.resolve():(this.disposed=!0,this.logger.log(`Registerer ${this.id} in state ${this.state} is being disposed`),delete this.userAgent._registerers[this.id],new Promise(t=>{const r=()=>{if(!this.waiting&&this._state===Je.Registered){this.stateChange.addListener(()=>{this.terminated(),t()},{once:!0}),this.unregister();return}this.terminated(),t()};this.waiting?this.waitingChange.addListener(()=>{r()},{once:!0}):r()}))}register(t={}){if(this.state===Je.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const s=new dl("REGISTER request already in progress, waiting for final response");return Promise.reject(s)}t.requestOptions&&(this.options=Object.assign(Object.assign({},this.options),t.requestOptions));const r=(this.options.extraHeaders||[]).slice();r.push("Contact: "+this.generateContactHeader(this.expires)),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.request.extraHeaders=r,this.waitingToggle(!0);const n=this.userAgent.userAgentCore.register(this.request,{onAccept:s=>{let i;s.message.hasHeader("expires")&&(i=Number(s.message.getHeader("expires"))),this._contacts=s.message.getHeaders("contact");let o=this._contacts.length;if(!o){this.logger.error("No Contact header in response to REGISTER, dropping response."),this.unregistered();return}let a;for(;o--;){if(a=s.message.parseHeader("contact",o),!a)throw new Error("Contact undefined");if(this.userAgent.contact.pubGruu&&Sf(a.uri,this.userAgent.contact.pubGruu)){i=Number(a.getParam("expires"));break}if(this.userAgent.configuration.contactName===""){if(a.uri.user===this.userAgent.contact.uri.user){i=Number(a.getParam("expires"));break}}else if(Sf(a.uri,this.userAgent.contact.uri)){i=Number(a.getParam("expires"));break}a=void 0}if(a===void 0){this.logger.error("No Contact header pointing to us, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(i===void 0){this.logger.error("Contact pointing to us is missing expires parameter, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(a.hasParam("temp-gruu")){const l=a.getParam("temp-gruu");l&&(this.userAgent.contact.tempGruu=ct.URIParse(l.replace(/"/g,"")))}if(a.hasParam("pub-gruu")){const l=a.getParam("pub-gruu");l&&(this.userAgent.contact.pubGruu=ct.URIParse(l.replace(/"/g,"")))}this.registered(i),t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(s),this.waitingToggle(!1)},onProgress:s=>{t.requestDelegate&&t.requestDelegate.onProgress&&t.requestDelegate.onProgress(s)},onRedirect:s=>{this.logger.error("Redirect received. Not supported."),this.unregistered(),t.requestDelegate&&t.requestDelegate.onRedirect&&t.requestDelegate.onRedirect(s),this.waitingToggle(!1)},onReject:s=>{if(s.message.statusCode===423){if(!s.message.hasHeader("min-expires")){this.logger.error("423 response received for REGISTER without Min-Expires, dropping response"),this.unregistered(),this.waitingToggle(!1);return}this.expires=Number(s.message.getHeader("min-expires")),this.waitingToggle(!1),this.register();return}this.logger.warn(`Failed to register, status code ${s.message.statusCode}`);let i=NaN;if(s.message.statusCode===500||s.message.statusCode===503){const o=s.message.getHeader("retry-after");o&&(i=Number.parseInt(o,void 0))}this._retryAfter=isNaN(i)?void 0:i,this.unregistered(),t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(s),this._retryAfter=void 0,this.waitingToggle(!1)},onTrying:s=>{t.requestDelegate&&t.requestDelegate.onTrying&&t.requestDelegate.onTrying(s)}});return Promise.resolve(n)}unregister(t={}){if(this.state===Je.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed&&this.state!==Je.Registered)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const s=new dl("REGISTER request already in progress, waiting for final response");return Promise.reject(s)}this._state!==Je.Registered&&!t.all&&this.logger.warn("Not currently registered, but sending an unregister anyway.");const r=(t.requestOptions&&t.requestOptions.extraHeaders||[]).slice();this.request.extraHeaders=r,t.all?(r.push("Contact: *"),r.push("Expires: 0")):r.push("Contact: "+this.generateContactHeader(0)),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.waitingToggle(!0);const n=this.userAgent.userAgentCore.register(this.request,{onAccept:s=>{this._contacts=s.message.getHeaders("contact"),this.unregistered(),t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(s),this.waitingToggle(!1)},onProgress:s=>{t.requestDelegate&&t.requestDelegate.onProgress&&t.requestDelegate.onProgress(s)},onRedirect:s=>{this.logger.error("Unregister redirected. Not currently supported."),this.unregistered(),t.requestDelegate&&t.requestDelegate.onRedirect&&t.requestDelegate.onRedirect(s),this.waitingToggle(!1)},onReject:s=>{this.logger.error(`Unregister rejected with status code ${s.message.statusCode}`),this.unregistered(),t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(s),this.waitingToggle(!1)},onTrying:s=>{t.requestDelegate&&t.requestDelegate.onTrying&&t.requestDelegate.onTrying(s)}});return Promise.resolve(n)}clearTimers(){this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.registrationExpiredTimer!==void 0&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0)}generateContactHeader(t){let r=this.userAgent.contact.toString({register:!0});return this.options.regId&&this.options.instanceId&&(r+=";reg-id="+this.options.regId,r+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEach(n=>{r+=";"+n}),r+=";expires="+t,r}registered(t){this.clearTimers(),this.registrationTimer=setTimeout(()=>{this.registrationTimer=void 0,this.register()},this.refreshFrequency/100*t*1e3),this.registrationExpiredTimer=setTimeout(()=>{this.logger.warn("Registration expired"),this.unregistered()},t*1e3),this._state!==Je.Registered&&this.stateTransition(Je.Registered)}unregistered(){this.clearTimers(),this._state!==Je.Unregistered&&this.stateTransition(Je.Unregistered)}terminated(){this.clearTimers(),this._state!==Je.Terminated&&this.stateTransition(Je.Terminated)}stateTransition(t){const r=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case Je.Initial:t!==Je.Registered&&t!==Je.Unregistered&&t!==Je.Terminated&&r();break;case Je.Registered:t!==Je.Unregistered&&t!==Je.Terminated&&r();break;case Je.Unregistered:t!==Je.Registered&&t!==Je.Terminated&&r();break;case Je.Terminated:r();break;default:throw new Error("Unrecognized state.")}this._state=t,this.logger.log(`Registration transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),t===Je.Terminated&&this.dispose()}get waiting(){return this._waiting}get waitingChange(){return this._waitingEventEmitter}waitingToggle(t){if(this._waiting===t)throw new Error(`Invalid waiting transition from ${this._waiting} to ${t}`);this._waiting=t,this.logger.log(`Waiting toggled to ${this._waiting}`),this._waitingEventEmitter.emit(this._waiting)}waitingWarning(){let t="An attempt was made to send a REGISTER request while a prior one was still in progress.";t+=" RFC 3261 requires UAs MUST NOT send a new registration until they have received a final response",t+=" from the registrar for the previous one or the previous REGISTER request has timed out.",t+=" Note that if the transport disconnects, you still must wait for the prior request to time out before",t+=" sending a new REGISTER request or alternatively dispose of the current Registerer and create a new Registerer.",this.logger.warn(t)}stateError(){let t=`An attempt was made to send a REGISTER request when the Registerer ${this.state===Je.Terminated?"is in 'Terminated' state":"has been disposed"}.`;t+=" The Registerer transitions to 'Terminated' when Registerer.dispose() is called.",t+=" Perhaps you called UserAgent.stop() which dipsoses of all Registerers?",this.logger.error(t)}};yl.defaultExpires=600,yl.defaultRefreshFrequency=99;var je;(function(e){e.Initial="Initial",e.NotifyWait="NotifyWait",e.Pending="Pending",e.Active="Active",e.Terminated="Terminated"})(je=je||(je={}));var Re;(function(e){e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Disconnected="Disconnected"})(Re=Re||(Re={}));var wt;(function(e){e.Started="Started",e.Stopped="Stopped"})(wt=wt||(wt={}));var gn=class ar{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(t,r=!1){return this.onePassHasher.start().appendStr(t).end(r)}static hashAsciiStr(t,r=!1){return this.onePassHasher.start().appendAsciiStr(t).end(r)}static _hex(t){const r=ar.hexChars,n=ar.hexOut;let s,i,o,a;for(a=0;a<4;a+=1)for(i=a*8,s=t[a],o=0;o<8;o+=2)n[i+1+o]=r.charAt(s&15),s>>>=4,n[i+0+o]=r.charAt(s&15),s>>>=4;return n.join("")}static _md5cycle(t,r){let n=t[0],s=t[1],i=t[2],o=t[3];n+=(s&i|~s&o)+r[0]-680876936|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[1]-389564586|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[2]+606105819|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[3]-1044525330|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[4]-176418897|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[5]+1200080426|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[6]-1473231341|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[7]-45705983|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[8]+1770035416|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[9]-1958414417|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[10]-42063|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[11]-1990404162|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[12]+1804603682|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[13]-40341101|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[14]-1502002290|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[15]+1236535329|0,s=(s<<22|s>>>10)+i|0,n+=(s&o|i&~o)+r[1]-165796510|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[6]-1069501632|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[11]+643717713|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[0]-373897302|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[5]-701558691|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[10]+38016083|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[15]-660478335|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[4]-405537848|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[9]+568446438|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[14]-1019803690|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[3]-187363961|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[8]+1163531501|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[13]-1444681467|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[2]-51403784|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[7]+1735328473|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[12]-1926607734|0,s=(s<<20|s>>>12)+i|0,n+=(s^i^o)+r[5]-378558|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[8]-2022574463|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[11]+1839030562|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[14]-35309556|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[1]-1530992060|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[4]+1272893353|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[7]-155497632|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[10]-1094730640|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[13]+681279174|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[0]-358537222|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[3]-722521979|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[6]+76029189|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[9]-640364487|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[12]-421815835|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[15]+530742520|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[2]-995338651|0,s=(s<<23|s>>>9)+i|0,n+=(i^(s|~o))+r[0]-198630844|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[5]-57434055|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[12]+1700485571|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[10]-1051523|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[1]-2054922799|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[8]+1873313359|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[13]+1309151649|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[4]-145523070|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[2]+718787259|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[9]-343485551|0,s=(s<<21|s>>>11)+i|0,t[0]=n+t[0]|0,t[1]=s+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(ar.stateIdentity),this}appendStr(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o;for(o=0;o<t.length;o+=1){if(i=t.charCodeAt(o),i<128)r[s++]=i;else if(i<2048)r[s++]=(i>>>6)+192,r[s++]=i&63|128;else if(i<55296||i>56319)r[s++]=(i>>>12)+224,r[s++]=i>>>6&63|128,r[s++]=i&63|128;else{if(i=(i-55296)*1024+(t.charCodeAt(++o)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");r[s++]=(i>>>18)+240,r[s++]=i>>>12&63|128,r[s++]=i>>>6&63|128,r[s++]=i&63|128}s>=64&&(this._dataLength+=64,ar._md5cycle(this._state,n),s-=64,n[0]=n[16])}return this._bufferLength=s,this}appendAsciiStr(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o=0;for(;;){for(i=Math.min(t.length-o,64-s);i--;)r[s++]=t.charCodeAt(o++);if(s<64)break;this._dataLength+=64,ar._md5cycle(this._state,n),s=0}return this._bufferLength=s,this}appendByteArray(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o=0;for(;;){for(i=Math.min(t.length-o,64-s);i--;)r[s++]=t[o++];if(s<64)break;this._dataLength+=64,ar._md5cycle(this._state,n),s=0}return this._bufferLength=s,this}getState(){const t=this,r=t._state;return{buffer:String.fromCharCode.apply(null,t._buffer8),buflen:t._bufferLength,length:t._dataLength,state:[r[0],r[1],r[2],r[3]]}}setState(t){const r=t.buffer,n=t.state,s=this._state;let i;for(this._dataLength=t.length,this._bufferLength=t.buflen,s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],i=0;i<r.length;i+=1)this._buffer8[i]=r.charCodeAt(i)}end(t=!1){const r=this._bufferLength,n=this._buffer8,s=this._buffer32,i=(r>>2)+1;let o;if(this._dataLength+=r,n[r]=128,n[r+1]=n[r+2]=n[r+3]=0,s.set(ar.buffer32Identity.subarray(i),i),r>55&&(ar._md5cycle(this._state,s),s.set(ar.buffer32Identity)),o=this._dataLength*8,o<=4294967295)s[14]=o;else{const a=o.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;const l=parseInt(a[2],16),c=parseInt(a[1],16)||0;s[14]=l,s[15]=c}return ar._md5cycle(this._state,s),t?this._state:ar._hex(this._state)}};gn.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),gn.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),gn.hexChars="0123456789abcdef",gn.hexOut=[],gn.onePassHasher=new gn,gn.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592"&&console.error("Md5 self test failed.");function vn(e){return gn.hashStr(e)}var P0=class{constructor(e,t,r,n){this.logger=e.getLogger("sipjs.digestauthentication"),this.username=r,this.password=n,this.ha1=t,this.nc=0,this.ncHex="00000000"}authenticate(e,t,r){if(this.algorithm=t.algorithm,this.realm=t.realm,this.nonce=t.nonce,this.opaque=t.opaque,this.stale=t.stale,this.algorithm){if(this.algorithm!=="MD5")return this.logger.warn("challenge with Digest algorithm different than 'MD5', authentication aborted"),!1}else this.algorithm="MD5";if(!this.realm)return this.logger.warn("challenge without Digest realm, authentication aborted"),!1;if(!this.nonce)return this.logger.warn("challenge without Digest nonce, authentication aborted"),!1;if(t.qop)if(t.qop.indexOf("auth")>-1)this.qop="auth";else if(t.qop.indexOf("auth-int")>-1)this.qop="auth-int";else return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),!1;else this.qop=void 0;return this.method=e.method,this.uri=e.ruri,this.cnonce=Fn(12),this.nc+=1,this.updateNcHex(),this.nc===4294967296&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(r),!0}toString(){const e=[];if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return e.push("algorithm="+this.algorithm),e.push('username="'+this.username+'"'),e.push('realm="'+this.realm+'"'),e.push('nonce="'+this.nonce+'"'),e.push('uri="'+this.uri+'"'),e.push('response="'+this.response+'"'),this.opaque&&e.push('opaque="'+this.opaque+'"'),this.qop&&(e.push("qop="+this.qop),e.push('cnonce="'+this.cnonce+'"'),e.push("nc="+this.ncHex)),"Digest "+e.join(", ")}updateNcHex(){const e=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-e.length)+e}calculateResponse(e){let t,r;t=this.ha1,(t===""||t===void 0)&&(t=vn(this.username+":"+this.realm+":"+this.password)),this.qop==="auth"?(r=vn(this.method+":"+this.uri),this.response=vn(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+r)):this.qop==="auth-int"?(r=vn(this.method+":"+this.uri+":"+vn(e||"")),this.response=vn(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+r)):this.qop===void 0&&(r=vn(this.method+":"+this.uri),this.response=vn(t+":"+this.nonce+":"+r))}},ht;(function(e){e[e.error=0]="error",e[e.warn=1]="warn",e[e.log=2]="log",e[e.debug=3]="debug"})(ht=ht||(ht={}));var If=class{constructor(e,t,r){this.logger=e,this.category=t,this.label=r}error(e){this.genericLog(ht.error,e)}warn(e){this.genericLog(ht.warn,e)}log(e){this.genericLog(ht.log,e)}debug(e){this.genericLog(ht.debug,e)}genericLog(e,t){this.logger.genericLog(e,this.category,this.label,t)}get level(){return this.logger.level}set level(e){this.logger.level=e}},D0=class{constructor(){this.builtinEnabled=!0,this._level=ht.log,this.loggers={},this.logger=this.getLogger("sip:loggerfactory")}get level(){return this._level}set level(e){e>=0&&e<=3?this._level=e:e>3?this._level=3:ht.hasOwnProperty(e)?this._level=e:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(e))}get connector(){return this._connector}set connector(e){e?typeof e=="function"?this._connector=e:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(e)):this._connector=void 0}getLogger(e,t){if(t&&this.level===3)return new If(this,e,t);if(this.loggers[e])return this.loggers[e];{const r=new If(this,e);return this.loggers[e]=r,r}}genericLog(e,t,r,n){this.level>=e&&this.builtinEnabled&&this.print(e,t,r,n),this.connector&&this.connector(ht[e],t,r,n)}print(e,t,r,n){if(typeof n=="string"){const s=[new Date,t];r&&s.push(r),n=s.concat(n).join(" | ")}switch(e){case ht.error:console.error(n);break;case ht.warn:console.warn(n);break;case ht.log:console.log(n);break;case ht.debug:console.debug(n);break;default:break}}},bo;(function(e){function t(s,i){let o=i,a=0,l=0;if(s.substring(o,o+2).match(/(^\r\n)/))return-2;for(;a===0;){if(l=s.indexOf(`\r
|
|
26
|
+
`,t}};function Tf(e){return e==="application/sdp"?"session":"render"}function wo(e){const t=typeof e=="string"?e:e.body,r=typeof e=="string"?"application/sdp":e.contentType;return{contentDisposition:Tf(r),contentType:r,content:t}}function Ef(e){return e&&typeof e.content=="string"&&typeof e.contentType=="string"&&e.contentDisposition===void 0?!0:typeof e.contentDisposition=="string"}function ci(e){let t,r,n;if(e instanceof ms&&e.body){const s=e.parseHeader("Content-Disposition");t=s?s.type:void 0,r=e.parseHeader("Content-Type"),n=e.body}if(e instanceof fn&&e.body){const s=e.parseHeader("Content-Disposition");t=s?s.type:void 0,r=e.parseHeader("Content-Type"),n=e.body}if(e instanceof hl&&e.body)if(t=e.getHeader("Content-Disposition"),r=e.getHeader("Content-Type"),typeof e.body=="string"){if(!r)throw new Error("Header content type header does not equal body content type.");n=e.body}else{if(r&&r!==e.body.contentType)throw new Error("Header content type header does not equal body content type.");r=e.body.contentType,n=e.body.body}if(Ef(e)&&(t=e.contentDisposition,r=e.contentType,n=e.content),!!n){if(r&&!t&&(t=Tf(r)),!t)throw new Error("Content disposition undefined.");if(!r)throw new Error("Content type undefined.");return{contentDisposition:t,contentType:r,content:n}}}var ir;(function(e){e.Initial="Initial",e.Early="Early",e.AckWait="AckWait",e.Confirmed="Confirmed",e.Terminated="Terminated"})(ir=ir||(ir={}));var fe;(function(e){e.Initial="Initial",e.HaveLocalOffer="HaveLocalOffer",e.HaveRemoteOffer="HaveRemoteOffer",e.Stable="Stable",e.Closed="Closed"})(fe=fe||(fe={}));var Wr=500,R0=4e3,gl=5e3;const pt={T1:Wr,T2:R0,T4:gl,TIMER_B:64*Wr,TIMER_D:0*Wr,TIMER_F:64*Wr,TIMER_H:64*Wr,TIMER_I:0*gl,TIMER_J:0*Wr,TIMER_K:0*gl,TIMER_L:64*Wr,TIMER_M:64*Wr,TIMER_N:64*Wr,PROVISIONAL_RESPONSE_INTERVAL:6e4};var pn=class extends Ln{constructor(e){super(e||"Transaction state error.")}},ge;(function(e){e.ACK="ACK",e.BYE="BYE",e.CANCEL="CANCEL",e.INFO="INFO",e.INVITE="INVITE",e.MESSAGE="MESSAGE",e.NOTIFY="NOTIFY",e.OPTIONS="OPTIONS",e.REGISTER="REGISTER",e.UPDATE="UPDATE",e.SUBSCRIBE="SUBSCRIBE",e.PUBLISH="PUBLISH",e.REFER="REFER",e.PRACK="PRACK"})(ge=ge||(ge={}));const hn=[ge.ACK,ge.BYE,ge.CANCEL,ge.INFO,ge.INVITE,ge.MESSAGE,ge.NOTIFY,ge.OPTIONS,ge.PRACK,ge.REFER,ge.REGISTER,ge.SUBSCRIBE];var Af=class{constructor(e){this.incomingMessageRequest=e}get request(){return this.incomingMessageRequest.message}accept(e){return this.incomingMessageRequest.accept(e),Promise.resolve()}reject(e){return this.incomingMessageRequest.reject(e),Promise.resolve()}},vl=class{constructor(e){this.incomingNotifyRequest=e}get request(){return this.incomingNotifyRequest.message}accept(e){return this.incomingNotifyRequest.accept(e),Promise.resolve()}reject(e){return this.incomingNotifyRequest.reject(e),Promise.resolve()}},k0=class{constructor(e,t){this.incomingReferRequest=e,this.session=t}get referTo(){const e=this.incomingReferRequest.message.parseHeader("refer-to");if(!(e instanceof sr))throw new Error("Failed to parse Refer-To header.");return e}get referredBy(){return this.incomingReferRequest.message.getHeader("referred-by")}get replaces(){const e=this.referTo.uri.getHeader("replaces");return e instanceof Array?e[0]:e}get request(){return this.incomingReferRequest.message}accept(e={statusCode:202}){return this.incomingReferRequest.accept(e),Promise.resolve()}reject(e){return this.incomingReferRequest.reject(e),Promise.resolve()}makeInviter(e){if(this.inviter)return this.inviter;const t=this.referTo.uri.clone();t.clearHeaders(),e=e||{};const r=(e.extraHeaders||[]).slice(),n=this.replaces;n&&r.push("Replaces: "+decodeURIComponent(n));const s=this.referredBy;return s&&r.push("Referred-By: "+s),e.extraHeaders=r,this.inviter=this.session.userAgent._makeInviter(t,e),this.inviter._referred=this.session,this.session._referral=this.inviter,this.inviter}},z;(function(e){e.Initial="Initial",e.Establishing="Establishing",e.Established="Established",e.Terminating="Terminating",e.Terminated="Terminated"})(z=z||(z={}));var ml=class tg{constructor(t,r={}){this.pendingReinvite=!1,this.pendingReinviteAck=!1,this._state=z.Initial,this.delegate=r.delegate,this._stateEventEmitter=new ai,this._userAgent=t}dispose(){switch(this.logger.log(`Session ${this.id} in state ${this._state} is being disposed`),delete this.userAgent._sessions[this.id],this._sessionDescriptionHandler&&this._sessionDescriptionHandler.close(),this.state){case z.Initial:break;case z.Establishing:break;case z.Established:return new Promise(t=>{this._bye({onAccept:()=>t(),onRedirect:()=>t(),onReject:()=>t()})});case z.Terminating:break;case z.Terminated:break;default:throw new Error("Unknown state.")}return Promise.resolve()}get assertedIdentity(){return this._assertedIdentity}get dialog(){return this._dialog}get id(){return this._id}get replacee(){return this._replacee}get sessionDescriptionHandler(){return this._sessionDescriptionHandler}get sessionDescriptionHandlerFactory(){return this.userAgent.configuration.sessionDescriptionHandlerFactory}get sessionDescriptionHandlerModifiers(){return this._sessionDescriptionHandlerModifiers||[]}set sessionDescriptionHandlerModifiers(t){this._sessionDescriptionHandlerModifiers=t.slice()}get sessionDescriptionHandlerOptions(){return this._sessionDescriptionHandlerOptions||{}}set sessionDescriptionHandlerOptions(t){this._sessionDescriptionHandlerOptions=Object.assign({},t)}get sessionDescriptionHandlerModifiersReInvite(){return this._sessionDescriptionHandlerModifiersReInvite||[]}set sessionDescriptionHandlerModifiersReInvite(t){this._sessionDescriptionHandlerModifiersReInvite=t.slice()}get sessionDescriptionHandlerOptionsReInvite(){return this._sessionDescriptionHandlerOptionsReInvite||{}}set sessionDescriptionHandlerOptionsReInvite(t){this._sessionDescriptionHandlerOptionsReInvite=Object.assign({},t)}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get userAgent(){return this._userAgent}bye(t={}){let r="Session.bye() may only be called if established session.";switch(this.state){case z.Initial:typeof this.cancel=="function"?(r+=" However Inviter.invite() has not yet been called.",r+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(r+=" However Invitation.accept() has not yet been called.",r+=" Perhaps you should have called Invitation.reject()?");break;case z.Establishing:typeof this.cancel=="function"?(r+=" However a dialog does not yet exist.",r+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(r+=" However Invitation.accept() has not yet been called (or not yet resolved).",r+=" Perhaps you should have called Invitation.reject()?");break;case z.Established:{const n=t.requestDelegate,s=this.copyRequestOptions(t.requestOptions);return this._bye(n,s)}case z.Terminating:r+=" However this session is already terminating.",typeof this.cancel=="function"?r+=" Perhaps you have already called Inviter.cancel()?":typeof this.reject=="function"&&(r+=" Perhaps you have already called Session.bye()?");break;case z.Terminated:r+=" However this session is already terminated.";break;default:throw new Error("Unknown state")}return this.logger.error(r),Promise.reject(new Error(`Invalid session state ${this.state}`))}info(t={}){if(this.state!==z.Established)return this.logger.error("Session.info() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const r=t.requestDelegate,n=this.copyRequestOptions(t.requestOptions);return this._info(r,n)}invite(t={}){if(this.logger.log("Session.invite"),this.state!==z.Established)return Promise.reject(new Error(`Invalid session state ${this.state}`));if(this.pendingReinvite)return Promise.reject(new dl("Reinvite in progress. Please wait until complete, then try again."));this.pendingReinvite=!0,t.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiersReInvite=t.sessionDescriptionHandlerModifiers),t.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptionsReInvite=t.sessionDescriptionHandlerOptions);const r={onAccept:i=>{const o=ci(i.message);if(!o){this.logger.error("Received 2xx response to re-INVITE without a session description"),this.ackAndBye(i,400,"Missing session description"),this.stateTransition(z.Terminated),this.pendingReinvite=!1;return}if(t.withoutSdp){const a={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setOfferAndGetAnswer(o,a).then(l=>{i.ack({body:l})}).catch(l=>{this.logger.error("Failed to handle offer in 2xx response to re-INVITE"),this.logger.error(l.message),this.state===z.Terminated?i.ack():(this.ackAndBye(i,488,"Bad Media Description"),this.stateTransition(z.Terminated))}).then(()=>{this.pendingReinvite=!1,t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(i)})}else{const a={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setAnswer(o,a).then(()=>{i.ack()}).catch(l=>{this.logger.error("Failed to handle answer in 2xx response to re-INVITE"),this.logger.error(l.message),this.state!==z.Terminated?(this.ackAndBye(i,488,"Bad Media Description"),this.stateTransition(z.Terminated)):i.ack()}).then(()=>{this.pendingReinvite=!1,t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(i)})}},onProgress:i=>{},onRedirect:i=>{},onReject:i=>{this.logger.warn("Received a non-2xx response to re-INVITE"),this.pendingReinvite=!1,t.withoutSdp?t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(i):this.rollbackOffer().catch(o=>{if(this.logger.error("Failed to rollback offer on non-2xx response to re-INVITE"),this.logger.error(o.message),this.state!==z.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const a=[];a.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:a}),this.stateTransition(z.Terminated)}}).then(()=>{t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(i)})},onTrying:i=>{}},n=t.requestOptions||{};if(n.extraHeaders=(n.extraHeaders||[]).slice(),n.extraHeaders.push("Allow: "+hn.toString()),n.extraHeaders.push("Contact: "+this._contact),t.withoutSdp){if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return Promise.resolve(this.dialog.invite(r,n))}const s={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};return this.getOffer(s).then(i=>{if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return n.body=i,this.dialog.invite(r,n)}).catch(i=>{throw this.logger.error(i.message),this.logger.error("Failed to send re-INVITE"),this.pendingReinvite=!1,i})}message(t={}){if(this.state!==z.Established)return this.logger.error("Session.message() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const r=t.requestDelegate,n=this.copyRequestOptions(t.requestOptions);return this._message(r,n)}refer(t,r={}){if(this.state!==z.Established)return this.logger.error("Session.refer() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));if(t instanceof tg&&!t.dialog)return this.logger.error("Session.refer() may only be called with session which is established. You are perhaps attempting to attended transfer to a target for which there is not dialog yet established. Perhaps you are attempting a 'semi-attended' tansfer? Regardless, this is not supported. The recommended approached is to check to see if the target Session is in the Established state before calling refer(); if the state is not Established you may proceed by falling back using a URI as the target (blind transfer)."),Promise.reject(new Error(`Invalid session state ${this.state}`));const n=r.requestDelegate,s=this.copyRequestOptions(r.requestOptions);return s.extraHeaders=s.extraHeaders?s.extraHeaders.concat(this.referExtraHeaders(this.referToString(t))):this.referExtraHeaders(this.referToString(t)),this._refer(r.onNotify,n,s)}_bye(t,r){if(!this.dialog)return Promise.reject(new Error("Session dialog undefined."));const n=this.dialog;switch(n.sessionState){case ir.Initial:throw new Error(`Invalid dialog state ${n.sessionState}`);case ir.Early:throw new Error(`Invalid dialog state ${n.sessionState}`);case ir.AckWait:return this.stateTransition(z.Terminating),new Promise(s=>{n.delegate={onAck:()=>{const i=n.bye(t,r);return this.stateTransition(z.Terminated),s(i),Promise.resolve()},onAckTimeout:()=>{const i=n.bye(t,r);this.stateTransition(z.Terminated),s(i)}}});case ir.Confirmed:{const s=n.bye(t,r);return this.stateTransition(z.Terminated),Promise.resolve(s)}case ir.Terminated:throw new Error(`Invalid dialog state ${n.sessionState}`);default:throw new Error("Unrecognized state.")}}_info(t,r){return this.dialog?Promise.resolve(this.dialog.info(t,r)):Promise.reject(new Error("Session dialog undefined."))}_message(t,r){return this.dialog?Promise.resolve(this.dialog.message(t,r)):Promise.reject(new Error("Session dialog undefined."))}_refer(t,r,n){return this.dialog?(this.onNotify=t,Promise.resolve(this.dialog.refer(r,n))):Promise.reject(new Error("Session dialog undefined."))}ackAndBye(t,r,n){t.ack();const s=[];r&&s.push("Reason: "+this.getReasonHeaderValue(r,n)),t.session.bye(void 0,{extraHeaders:s})}onAckRequest(t){if(this.logger.log("Session.onAckRequest"),this.state!==z.Established&&this.state!==z.Terminating)return this.logger.error(`ACK received while in state ${this.state}, dropping request`),Promise.resolve();const r=this.dialog;if(!r)throw new Error("Dialog undefined.");const n={sessionDescriptionHandlerOptions:this.pendingReinviteAck?this.sessionDescriptionHandlerOptionsReInvite:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.pendingReinviteAck?this._sessionDescriptionHandlerModifiersReInvite:this._sessionDescriptionHandlerModifiers};if(this.delegate&&this.delegate.onAck){const s=new S0(t);this.delegate.onAck(s)}switch(this.pendingReinviteAck=!1,r.signalingState){case fe.Initial:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(z.Terminated),Promise.resolve()}case fe.Stable:{const s=ci(t.message);return s?s.contentDisposition==="render"?(this._renderbody=s.content,this._rendertype=s.contentType,Promise.resolve()):s.contentDisposition!=="session"?Promise.resolve():this.setAnswer(s,n).catch(i=>{this.logger.error(i.message);const o=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];r.bye(void 0,{extraHeaders:o}),this.stateTransition(z.Terminated)}):Promise.resolve()}case fe.HaveLocalOffer:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(z.Terminated),Promise.resolve()}case fe.HaveRemoteOffer:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(z.Terminated),Promise.resolve()}case fe.Closed:throw new Error(`Invalid signaling state ${r.signalingState}.`);default:throw new Error(`Invalid signaling state ${r.signalingState}.`)}}onByeRequest(t){if(this.logger.log("Session.onByeRequest"),this.state!==z.Established){this.logger.error(`BYE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onBye){const r=new C0(t);this.delegate.onBye(r)}else t.accept();this.stateTransition(z.Terminated)}onInfoRequest(t){if(this.logger.log("Session.onInfoRequest"),this.state!==z.Established){this.logger.error(`INFO received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onInfo){const r=new T0(t);this.delegate.onInfo(r)}else t.accept()}onInviteRequest(t){if(this.logger.log("Session.onInviteRequest"),this.state!==z.Established){this.logger.error(`INVITE received while in state ${this.state}, dropping request`);return}this.pendingReinviteAck=!0;const r=["Contact: "+this._contact];if(t.message.hasHeader("P-Asserted-Identity")){const s=t.message.getHeader("P-Asserted-Identity");if(!s)throw new Error("Header undefined.");this._assertedIdentity=ct.nameAddrHeaderParse(s)}const n={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.generateResponseOfferAnswerInDialog(n).then(s=>{const i=t.accept({statusCode:200,extraHeaders:r,body:s});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,200)}).catch(s=>{if(this.logger.error(s.message),this.logger.error("Failed to handle to re-INVITE request"),!this.dialog)throw new Error("Dialog undefined.");if(this.logger.error(this.dialog.signalingState),this.dialog.signalingState===fe.Stable){const i=t.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,488);return}this.rollbackOffer().then(()=>{const i=t.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,488)}).catch(i=>{this.logger.error(i.message),this.logger.error("Failed to rollback offer on re-INVITE request");const o=t.reject({statusCode:488});if(this.state!==z.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const a=[];a.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:a}),this.stateTransition(z.Terminated)}this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,o.message,488)})})}onMessageRequest(t){if(this.logger.log("Session.onMessageRequest"),this.state!==z.Established){this.logger.error(`MESSAGE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onMessage){const r=new Af(t);this.delegate.onMessage(r)}else t.accept()}onNotifyRequest(t){if(this.logger.log("Session.onNotifyRequest"),this.state!==z.Established){this.logger.error(`NOTIFY received while in state ${this.state}, dropping request`);return}if(this.onNotify){const r=new vl(t);this.onNotify(r);return}if(this.delegate&&this.delegate.onNotify){const r=new vl(t);this.delegate.onNotify(r)}else t.accept()}onPrackRequest(t){if(this.logger.log("Session.onPrackRequest"),this.state!==z.Established){this.logger.error(`PRACK received while in state ${this.state}, dropping request`);return}throw new Error("Unimplemented.")}onReferRequest(t){if(this.logger.log("Session.onReferRequest"),this.state!==z.Established){this.logger.error(`REFER received while in state ${this.state}, dropping request`);return}if(!t.message.hasHeader("refer-to")){this.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting."),t.reject();return}const r=new k0(t,this);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(r):(this.logger.log("No delegate available to handle REFER, automatically accepting and following."),r.accept().then(()=>r.makeInviter(this._referralInviterOptions).invite()).catch(n=>{this.logger.error(n.message)}))}generateResponseOfferAnswer(t,r){if(this.dialog)return this.generateResponseOfferAnswerInDialog(r);const n=ci(t.message);return!n||n.contentDisposition!=="session"?this.getOffer(r):this.setOfferAndGetAnswer(n,r)}generateResponseOfferAnswerInDialog(t){if(!this.dialog)throw new Error("Dialog undefined.");switch(this.dialog.signalingState){case fe.Initial:return this.getOffer(t);case fe.HaveLocalOffer:return Promise.resolve(void 0);case fe.HaveRemoteOffer:if(!this.dialog.offer)throw new Error(`Session offer undefined in signaling state ${this.dialog.signalingState}.`);return this.setOfferAndGetAnswer(this.dialog.offer,t);case fe.Stable:return this.state!==z.Established?Promise.resolve(void 0):this.getOffer(t);case fe.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}getOffer(t){const r=this.setupSessionDescriptionHandler(),n=t.sessionDescriptionHandlerOptions,s=t.sessionDescriptionHandlerModifiers;try{return r.getDescription(n,s).then(i=>wo(i)).catch(i=>{this.logger.error("Session.getOffer: SDH getDescription rejected...");const o=i instanceof Error?i:new Error("Session.getOffer unknown error.");throw this.logger.error(o.message),o})}catch(i){this.logger.error("Session.getOffer: SDH getDescription threw...");const o=i instanceof Error?i:new Error(i);return this.logger.error(o.message),Promise.reject(o)}}rollbackOffer(){const t=this.setupSessionDescriptionHandler();if(t.rollbackDescription===void 0)return Promise.resolve();try{return t.rollbackDescription().catch(r=>{this.logger.error("Session.rollbackOffer: SDH rollbackDescription rejected...");const n=r instanceof Error?r:new Error("Session.rollbackOffer unknown error.");throw this.logger.error(n.message),n})}catch(r){this.logger.error("Session.rollbackOffer: SDH rollbackDescription threw...");const n=r instanceof Error?r:new Error(r);return this.logger.error(n.message),Promise.reject(n)}}setAnswer(t,r){const n=this.setupSessionDescriptionHandler(),s=r.sessionDescriptionHandlerOptions,i=r.sessionDescriptionHandlerModifiers;try{if(!n.hasDescription(t.contentType))return Promise.reject(new ul)}catch(o){this.logger.error("Session.setAnswer: SDH hasDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}try{return n.setDescription(t.content,s,i).catch(o=>{this.logger.error("Session.setAnswer: SDH setDescription rejected...");const a=o instanceof Error?o:new Error("Session.setAnswer unknown error.");throw this.logger.error(a.message),a})}catch(o){this.logger.error("Session.setAnswer: SDH setDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}}setOfferAndGetAnswer(t,r){const n=this.setupSessionDescriptionHandler(),s=r.sessionDescriptionHandlerOptions,i=r.sessionDescriptionHandlerModifiers;try{if(!n.hasDescription(t.contentType))return Promise.reject(new ul)}catch(o){this.logger.error("Session.setOfferAndGetAnswer: SDH hasDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}try{return n.setDescription(t.content,s,i).then(()=>n.getDescription(s,i)).then(o=>wo(o)).catch(o=>{this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription rejected...");const a=o instanceof Error?o:new Error("Session.setOfferAndGetAnswer unknown error.");throw this.logger.error(a.message),a})}catch(o){this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}}setSessionDescriptionHandler(t){if(this._sessionDescriptionHandler)throw new Error("Session description handler defined.");this._sessionDescriptionHandler=t}setupSessionDescriptionHandler(){var t;return this._sessionDescriptionHandler?this._sessionDescriptionHandler:(this._sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions),!((t=this.delegate)===null||t===void 0)&&t.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(this._sessionDescriptionHandler,!1),this._sessionDescriptionHandler)}stateTransition(t){const r=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case z.Initial:t!==z.Establishing&&t!==z.Established&&t!==z.Terminating&&t!==z.Terminated&&r();break;case z.Establishing:t!==z.Established&&t!==z.Terminating&&t!==z.Terminated&&r();break;case z.Established:t!==z.Terminating&&t!==z.Terminated&&r();break;case z.Terminating:t!==z.Terminated&&r();break;case z.Terminated:r();break;default:throw new Error("Unrecognized state.")}this._state=t,this.logger.log(`Session ${this.id} transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),t===z.Terminated&&this.dispose()}copyRequestOptions(t={}){return{extraHeaders:t.extraHeaders?t.extraHeaders.slice():void 0,body:t.body?{contentDisposition:t.body.contentDisposition||"render",contentType:t.body.contentType||"text/plain",content:t.body.content||""}:void 0}}getReasonHeaderValue(t,r){const n=t;let s=vo(t);return!s&&r&&(s=r),"SIP;cause="+n+';text="'+s+'"'}referExtraHeaders(t){const r=[];return r.push("Referred-By: <"+this.userAgent.configuration.uri+">"),r.push("Contact: "+this._contact),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),r.push("Refer-To: "+t),r}referToString(t){let r;if(t instanceof dn)r=t.toString();else{if(!t.dialog)throw new Error("Dialog undefined.");const n=t.remoteIdentity.friendlyName,s=t.dialog.remoteTarget.toString(),i=t.dialog.callId,o=t.dialog.remoteTag,a=t.dialog.localTag;r=`"${n}" <${s}?Replaces=${encodeURIComponent(`${i};to-tag=${o};from-tag=${a}`)}>`}return r}},gr;(function(e){e.Required="Required",e.Supported="Supported",e.Unsupported="Unsupported"})(gr=gr||(gr={}));const $0={"100rel":!0,199:!0,answermode:!0,"early-session":!0,eventlist:!0,explicitsub:!0,"from-change":!0,"geolocation-http":!0,"geolocation-sip":!0,gin:!0,gruu:!0,histinfo:!0,ice:!0,join:!0,"multiple-refer":!0,norefersub:!0,nosub:!0,outbound:!0,path:!0,policy:!0,precondition:!0,pref:!0,privacy:!0,"recipient-list-invite":!0,"recipient-list-message":!0,"recipient-list-subscribe":!0,replaces:!0,"resource-priority":!0,"sdp-anat":!0,"sec-agree":!0,tdialog:!0,timer:!0,uui:!0};var yo=class extends ml{constructor(e,t){super(e),this.incomingInviteRequest=t,this.disposed=!1,this.expiresTimer=void 0,this.isCanceled=!1,this.rel100="none",this.rseq=Math.floor(Math.random()*1e4),this.userNoAnswerTimer=void 0,this.waitingForPrack=!1,this.logger=e.getLogger("sip.Invitation");const r=this.incomingInviteRequest.message,n=r.getHeader("require");n&&n.toLowerCase().includes("100rel")&&(this.rel100="required");const s=r.getHeader("supported");if(s&&s.toLowerCase().includes("100rel")&&(this.rel100="supported"),r.toTag=t.toTag,typeof r.toTag!="string")throw new TypeError("toTag should have been a string.");if(this.userNoAnswerTimer=setTimeout(()=>{t.reject({statusCode:480}),this.stateTransition(z.Terminated)},this.userAgent.configuration.noAnswerTimeout?this.userAgent.configuration.noAnswerTimeout*1e3:6e4),r.hasHeader("expires")){const a=Number(r.getHeader("expires")||0)*1e3;this.expiresTimer=setTimeout(()=>{this.state===z.Initial&&(t.reject({statusCode:487}),this.stateTransition(z.Terminated))},a)}const i=this.request.getHeader("P-Asserted-Identity");i&&(this._assertedIdentity=ct.nameAddrHeaderParse(i)),this._contact=this.userAgent.contact.toString();const o=r.parseHeader("Content-Disposition");o&&o.type==="render"&&(this._renderbody=r.body,this._rendertype=r.getHeader("Content-Type")),this._id=r.callId+r.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.expiresTimer&&(clearTimeout(this.expiresTimer),this.expiresTimer=void 0),this.userNoAnswerTimer&&(clearTimeout(this.userNoAnswerTimer),this.userNoAnswerTimer=void 0),this.prackNeverArrived(),this.state){case z.Initial:return this.reject().then(()=>super.dispose());case z.Establishing:return this.reject().then(()=>super.dispose());case z.Established:return super.dispose();case z.Terminating:return super.dispose();case z.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get autoSendAnInitialProvisionalResponse(){return this.rel100!=="required"&&this.userAgent.configuration.sendInitialProvisionalResponse}get body(){return this.incomingInviteRequest.message.body}get localIdentity(){return this.request.to}get remoteIdentity(){return this.request.from}get request(){return this.incomingInviteRequest.message}accept(e={}){if(this.logger.log("Invitation.accept"),this.state!==z.Initial){const t=new Error(`Invalid session state ${this.state}`);return this.logger.error(t.message),Promise.reject(t)}return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.stateTransition(z.Establishing),this.sendAccept(e).then(({message:t,session:r})=>{r.delegate={onAck:n=>this.onAckRequest(n),onAckTimeout:()=>this.onAckTimeout(),onBye:n=>this.onByeRequest(n),onInfo:n=>this.onInfoRequest(n),onInvite:n=>this.onInviteRequest(n),onMessage:n=>this.onMessageRequest(n),onNotify:n=>this.onNotifyRequest(n),onPrack:n=>this.onPrackRequest(n),onRefer:n=>this.onReferRequest(n)},this._dialog=r,this.stateTransition(z.Established),this._replacee&&this._replacee._bye()}).catch(t=>this.handleResponseError(t))}progress(e={}){if(this.logger.log("Invitation.progress"),this.state!==z.Initial){const r=new Error(`Invalid session state ${this.state}`);return this.logger.error(r.message),Promise.reject(r)}const t=e.statusCode||180;if(t<100||t>199)throw new TypeError("Invalid statusCode: "+t);return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.waitingForPrack?(this.logger.warn("Unexpected call for progress while waiting for prack, ignoring"),Promise.resolve()):e.statusCode===100?this.sendProgressTrying().then(()=>{}).catch(r=>this.handleResponseError(r)):this.rel100!=="required"&&!(this.rel100==="supported"&&e.rel100)&&!(this.rel100==="supported"&&this.userAgent.configuration.sipExtension100rel===gr.Required)?this.sendProgress(e).then(()=>{}).catch(r=>this.handleResponseError(r)):this.sendProgressReliableWaitForPrack(e).then(()=>{}).catch(r=>this.handleResponseError(r))}reject(e={}){if(this.logger.log("Invitation.reject"),this.state!==z.Initial&&this.state!==z.Establishing){const i=new Error(`Invalid session state ${this.state}`);return this.logger.error(i.message),Promise.reject(i)}const t=e.statusCode||480,r=e.reasonPhrase?e.reasonPhrase:vo(t),n=e.extraHeaders||[];if(t<300||t>699)throw new TypeError("Invalid statusCode: "+t);const s=e.body?wo(e.body):void 0;return t<400?this.incomingInviteRequest.redirect([],{statusCode:t,reasonPhrase:r,extraHeaders:n,body:s}):this.incomingInviteRequest.reject({statusCode:t,reasonPhrase:r,extraHeaders:n,body:s}),this.stateTransition(z.Terminated),Promise.resolve()}_onCancel(e){if(this.logger.log("Invitation._onCancel"),this.state!==z.Initial&&this.state!==z.Establishing){this.logger.error(`CANCEL received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onCancel){const t=new x0(e);this.delegate.onCancel(t)}this.isCanceled=!0,this.incomingInviteRequest.reject({statusCode:487}),this.stateTransition(z.Terminated)}handlePrackOfferAnswer(e){if(!this.dialog)throw new Error("Dialog undefined.");const t=ci(e.message);if(!t||t.contentDisposition!=="session")return Promise.resolve(void 0);const r={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers};switch(this.dialog.signalingState){case fe.Initial:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case fe.Stable:return this.setAnswer(t,r).then(()=>{});case fe.HaveLocalOffer:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case fe.HaveRemoteOffer:return this.setOfferAndGetAnswer(t,r);case fe.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}handleResponseError(e){let t=480;if(e instanceof Error?this.logger.error(e.message):this.logger.error(e),e instanceof ul?(this.logger.error("A session description handler occurred while sending response (content type unsupported"),t=415):e instanceof _0?this.logger.error("A session description handler occurred while sending response"):e instanceof fl?this.logger.error("Session ended before response could be formulated and sent (while waiting for PRACK)"):e instanceof pn&&this.logger.error("Session changed state before response could be formulated and sent"),this.state===z.Initial||this.state===z.Establishing)try{this.incomingInviteRequest.reject({statusCode:t}),this.stateTransition(z.Terminated)}catch(r){throw this.logger.error("An error occurred attempting to reject the request while handling another error"),r}if(this.isCanceled){this.logger.warn("An error occurred while attempting to formulate and send a response to an incoming INVITE. However a CANCEL was received and processed while doing so which can (and often does) result in errors occurring as the session terminates in the meantime. Said error is being ignored.");return}throw e}onAckTimeout(){if(this.logger.log("Invitation.onAckTimeout"),!this.dialog)throw new Error("Dialog undefined.");this.logger.log("No ACK received for an extended period of time, terminating session"),this.dialog.bye(),this.stateTransition(z.Terminated)}sendAccept(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.extraHeaders||[];return this.waitingForPrack?this.waitForArrivalOfPrack().then(()=>clearTimeout(this.userNoAnswerTimer)).then(()=>this.generateResponseOfferAnswer(this.incomingInviteRequest,t)).then(n=>this.incomingInviteRequest.accept({statusCode:200,body:n,extraHeaders:r})):(clearTimeout(this.userNoAnswerTimer),this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(n=>this.incomingInviteRequest.accept({statusCode:200,body:n,extraHeaders:r})))}sendProgress(e={}){const t=e.statusCode||180,r=e.reasonPhrase,n=(e.extraHeaders||[]).slice(),s=e.body?wo(e.body):void 0;if(t===183&&!s)return this.sendProgressWithSDP(e);try{const i=this.incomingInviteRequest.progress({statusCode:t,reasonPhrase:r,extraHeaders:n,body:s});return this._dialog=i.session,Promise.resolve(i)}catch(i){return Promise.reject(i)}}sendProgressWithSDP(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.statusCode||183,n=e.reasonPhrase,s=(e.extraHeaders||[]).slice();return this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(i=>this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i})).then(i=>(this._dialog=i.session,i))}sendProgressReliable(e={}){return e.extraHeaders=(e.extraHeaders||[]).slice(),e.extraHeaders.push("Require: 100rel"),e.extraHeaders.push("RSeq: "+Math.floor(Math.random()*1e4)),this.sendProgressWithSDP(e)}sendProgressReliableWaitForPrack(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.statusCode||183,n=e.reasonPhrase,s=(e.extraHeaders||[]).slice();s.push("Require: 100rel"),s.push("RSeq: "+this.rseq++);let i;return new Promise((o,a)=>{this.waitingForPrack=!0,this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(l=>(i=l,this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i}))).then(l=>{this._dialog=l.session;let c,u;l.session.delegate={onPrack:T=>{c=T,clearTimeout(p),clearTimeout(y),this.waitingForPrack&&(this.waitingForPrack=!1,this.handlePrackOfferAnswer(c).then(v=>{try{u=c.accept({statusCode:200,body:v}),this.prackArrived(),o({prackRequest:c,prackResponse:u,progressResponse:l})}catch(x){a(x)}}).catch(v=>a(v)))}};const p=setTimeout(()=>{this.waitingForPrack&&(this.waitingForPrack=!1,this.logger.warn("No PRACK received, rejecting INVITE."),clearTimeout(y),this.reject({statusCode:504}).then(()=>a(new fl)).catch(T=>a(T)))},pt.T1*64),h=()=>{try{this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i})}catch(T){this.waitingForPrack=!1,a(T);return}y=setTimeout(h,m*=2)};let m=pt.T1,y=setTimeout(h,m)}).catch(l=>{this.waitingForPrack=!1,a(l)})})}sendProgressTrying(){try{const e=this.incomingInviteRequest.trying();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}waitForArrivalOfPrack(){if(this.waitingForPrackPromise)throw new Error("Already waiting for PRACK");return this.waitingForPrackPromise=new Promise((e,t)=>{this.waitingForPrackResolve=e,this.waitingForPrackReject=t}),this.waitingForPrackPromise}prackArrived(){this.waitingForPrackResolve&&this.waitingForPrackResolve(),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}prackNeverArrived(){this.waitingForPrackReject&&this.waitingForPrackReject(new fl),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}},wl=class extends ml{constructor(e,t,r={}){super(e,r),this.disposed=!1,this.earlyMedia=!1,this.earlyMediaSessionDescriptionHandlers=new Map,this.isCanceled=!1,this.inviteWithoutSdp=!1,this.logger=e.getLogger("sip.Inviter"),this.earlyMedia=r.earlyMedia!==void 0?r.earlyMedia:this.earlyMedia,this.fromTag=mo(),this.inviteWithoutSdp=r.inviteWithoutSdp!==void 0?r.inviteWithoutSdp:this.inviteWithoutSdp;const n=Object.assign({},r);n.params=Object.assign({},r.params);const s=r.anonymous||!1,i=e.contact.toString({anonymous:s,outbound:s?!e.contact.tempGruu:!e.contact.pubGruu});s&&e.configuration.uri&&(n.params.fromDisplayName="Anonymous",n.params.fromUri="sip:anonymous@anonymous.invalid");let o=e.userAgentCore.configuration.aor;if(n.params.fromUri&&(o=typeof n.params.fromUri=="string"?ct.URIParse(n.params.fromUri):n.params.fromUri),!o)throw new TypeError("Invalid from URI: "+n.params.fromUri);let a=t;if(n.params.toUri&&(a=typeof n.params.toUri=="string"?ct.URIParse(n.params.toUri):n.params.toUri),!a)throw new TypeError("Invalid to URI: "+n.params.toUri);const l=Object.assign({},n.params);l.fromTag=this.fromTag;const c=(n.extraHeaders||[]).slice();s&&e.configuration.uri&&(c.push("P-Preferred-Identity: "+e.configuration.uri.toString()),c.push("Privacy: id")),c.push("Contact: "+i),c.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),e.configuration.sipExtension100rel===gr.Required&&c.push("Require: 100rel"),e.configuration.sipExtensionReplaces===gr.Required&&c.push("Require: replaces"),n.extraHeaders=c,this.outgoingRequestMessage=e.userAgentCore.makeOutgoingRequestMessage(ge.INVITE,t,o,a,l,c,void 0),this._contact=i,this._referralInviterOptions=n,this._renderbody=r.renderbody,this._rendertype=r.rendertype,r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),r.sessionDescriptionHandlerModifiersReInvite&&(this.sessionDescriptionHandlerModifiersReInvite=r.sessionDescriptionHandlerModifiersReInvite),r.sessionDescriptionHandlerOptionsReInvite&&(this.sessionDescriptionHandlerOptionsReInvite=r.sessionDescriptionHandlerOptionsReInvite),this._id=this.outgoingRequestMessage.callId+this.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.disposeEarlyMedia(),this.state){case z.Initial:return this.cancel().then(()=>super.dispose());case z.Establishing:return this.cancel().then(()=>super.dispose());case z.Established:return super.dispose();case z.Terminating:return super.dispose();case z.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get body(){return this.outgoingRequestMessage.body}get localIdentity(){return this.outgoingRequestMessage.from}get remoteIdentity(){return this.outgoingRequestMessage.to}get request(){return this.outgoingRequestMessage}cancel(e={}){if(this.logger.log("Inviter.cancel"),this.state!==z.Initial&&this.state!==z.Establishing){const r=new Error(`Invalid session state ${this.state}`);return this.logger.error(r.message),Promise.reject(r)}this.isCanceled=!0,this.stateTransition(z.Terminating);function t(r,n){if(r&&r<200||r>699)throw new TypeError("Invalid statusCode: "+r);if(r){const s=r,i=vo(r)||n;return"SIP;cause="+s+';text="'+i+'"'}}if(this.outgoingInviteRequest){let r;e.statusCode&&e.reasonPhrase&&(r=t(e.statusCode,e.reasonPhrase)),this.outgoingInviteRequest.cancel(r,e)}else this.logger.warn("Canceled session before INVITE was sent"),this.stateTransition(z.Terminated);return Promise.resolve()}invite(e={}){if(this.logger.log("Inviter.invite"),this.state!==z.Initial)return super.invite(e);if(e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),e.withoutSdp||this.inviteWithoutSdp)return this._renderbody&&this._rendertype&&(this.outgoingRequestMessage.body={contentType:this._rendertype,body:this._renderbody}),this.stateTransition(z.Establishing),Promise.resolve(this.sendInvite(e));const t={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.getOffer(t).then(r=>(this.outgoingRequestMessage.body={body:r.content,contentType:r.contentType},this.stateTransition(z.Establishing),this.sendInvite(e))).catch(r=>{throw this.logger.log(r.message),this.state!==z.Terminated&&this.stateTransition(z.Terminated),r})}sendInvite(e={}){return this.outgoingInviteRequest=this.userAgent.userAgentCore.invite(this.outgoingRequestMessage,{onAccept:t=>{if(this.dialog){this.logger.log("Additional confirmed dialog, sending ACK and BYE"),this.ackAndBye(t);return}if(this.isCanceled){this.logger.log("Canceled session accepted, sending ACK and BYE"),this.ackAndBye(t),this.stateTransition(z.Terminated);return}this.notifyReferer(t),this.onAccept(t).then(()=>{this.disposeEarlyMedia()}).catch(()=>{this.disposeEarlyMedia()}).then(()=>{e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(t)})},onProgress:t=>{this.isCanceled||(this.notifyReferer(t),this.onProgress(t).catch(()=>{this.disposeEarlyMedia()}).then(()=>{e.requestDelegate&&e.requestDelegate.onProgress&&e.requestDelegate.onProgress(t)}))},onRedirect:t=>{this.notifyReferer(t),this.onRedirect(t),e.requestDelegate&&e.requestDelegate.onRedirect&&e.requestDelegate.onRedirect(t)},onReject:t=>{this.notifyReferer(t),this.onReject(t),e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(t)},onTrying:t=>{this.notifyReferer(t),this.onTrying(t),e.requestDelegate&&e.requestDelegate.onTrying&&e.requestDelegate.onTrying(t)}}),this.outgoingInviteRequest}disposeEarlyMedia(){this.earlyMediaSessionDescriptionHandlers.forEach(e=>{e.close()}),this.earlyMediaSessionDescriptionHandlers.clear()}notifyReferer(e){if(!this._referred)return;if(!(this._referred instanceof ml))throw new Error("Referred session not instance of session");if(!this._referred.dialog)return;if(!e.message.statusCode)throw new Error("Status code undefined.");if(!e.message.reasonPhrase)throw new Error("Reason phrase undefined.");const t=`SIP/2.0 ${e.message.statusCode} ${e.message.reasonPhrase}`.trim(),r=this._referred.dialog.notify(void 0,{extraHeaders:["Event: refer","Subscription-State: terminated"],body:{contentDisposition:"render",contentType:"message/sipfrag",content:t}});r.delegate={onReject:()=>{this._referred=void 0}}}onAccept(e){if(this.logger.log("Inviter.onAccept"),this.state!==z.Establishing)return this.logger.error(`Accept received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));const t=e.message,r=e.session;switch(t.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=ct.nameAddrHeaderParse(t.getHeader("P-Asserted-Identity"))),r.delegate={onAck:n=>this.onAckRequest(n),onBye:n=>this.onByeRequest(n),onInfo:n=>this.onInfoRequest(n),onInvite:n=>this.onInviteRequest(n),onMessage:n=>this.onMessageRequest(n),onNotify:n=>this.onNotifyRequest(n),onPrack:n=>this.onPrackRequest(n),onRefer:n=>this.onReferRequest(n)},this._dialog=r,r.signalingState){case fe.Initial:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(z.Terminated),Promise.reject(new Error("Bad Media Description"));case fe.HaveLocalOffer:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(z.Terminated),Promise.reject(new Error("Bad Media Description"));case fe.HaveRemoteOffer:{if(!this._dialog.offer)throw new Error(`Session offer undefined in signaling state ${this._dialog.signalingState}.`);const n={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setOfferAndGetAnswer(this._dialog.offer,n).then(s=>{e.ack({body:s}),this.stateTransition(z.Established)}).catch(s=>{throw this.ackAndBye(e,488,"Invalid session description"),this.stateTransition(z.Terminated),s})}case fe.Stable:{if(this.earlyMediaSessionDescriptionHandlers.size>0){const i=this.earlyMediaSessionDescriptionHandlers.get(r.id);if(!i)throw new Error("Session description handler undefined.");return this.setSessionDescriptionHandler(i),this.earlyMediaSessionDescriptionHandlers.delete(r.id),e.ack(),this.stateTransition(z.Established),Promise.resolve()}if(this.earlyMediaDialog){if(this.earlyMediaDialog!==r){this.earlyMedia&&this.logger.error("You have set the 'earlyMedia' option to 'true' which requires that your INVITE requests do not fork and yet this INVITE request did in fact fork. Consequentially and not surprisingly the end point which accepted the INVITE (confirmed dialog) does not match the end point with which early media has been setup (early dialog) and thus this session is unable to proceed. In accordance with the SIP specifications, the SIP servers your end point is connected to determine if an INVITE forks and the forking behavior of those servers cannot be controlled by this library. If you wish to use early media with this library you must configure those servers accordingly. Alternatively you may set the 'earlyMedia' to 'false' which will allow this library to function with any INVITE requests which do fork.");const i=new Error("Early media dialog does not equal confirmed dialog, terminating session");return this.logger.error(i.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(z.Terminated),Promise.reject(i)}return e.ack(),this.stateTransition(z.Established),Promise.resolve()}const n=r.answer;if(!n)throw new Error("Answer is undefined.");const s={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(n,s).then(()=>{let i;this._renderbody&&this._rendertype&&(i={body:{contentDisposition:"render",contentType:this._rendertype,content:this._renderbody}}),e.ack(i),this.stateTransition(z.Established)}).catch(i=>{throw this.logger.error(i.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(z.Terminated),i})}case fe.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onProgress(e){var t;if(this.logger.log("Inviter.onProgress"),this.state!==z.Establishing)return this.logger.error(`Progress received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));if(!this.outgoingInviteRequest)throw new Error("Outgoing INVITE request undefined.");const r=e.message,n=e.session;r.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=ct.nameAddrHeaderParse(r.getHeader("P-Asserted-Identity")));const s=r.getHeader("require"),i=r.getHeader("rseq"),o=!!(s&&s.includes("100rel")&&i&&Number(i)),a=[];switch(o&&a.push("RAck: "+r.getHeader("rseq")+" "+r.getHeader("cseq")),n.signalingState){case fe.Initial:return o&&(this.logger.warn("First reliable provisional response received MUST contain an offer when INVITE does not contain an offer."),e.prack({extraHeaders:a})),Promise.resolve();case fe.HaveLocalOffer:return o&&e.prack({extraHeaders:a}),Promise.resolve();case fe.HaveRemoteOffer:if(!o)return this.logger.warn("Non-reliable provisional response MUST NOT contain an initial offer, discarding response."),Promise.resolve();{const l=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions||{});return!((t=this.delegate)===null||t===void 0)&&t.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(l,!0),this.earlyMediaSessionDescriptionHandlers.set(n.id,l),l.setDescription(r.body,this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers).then(()=>l.getDescription(this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers)).then(c=>{const u={contentDisposition:"session",contentType:c.contentType,content:c.body};e.prack({extraHeaders:a,body:u})}).catch(c=>{throw this.stateTransition(z.Terminated),c})}case fe.Stable:if(o&&e.prack({extraHeaders:a}),this.earlyMedia&&!this.earlyMediaDialog){this.earlyMediaDialog=n;const l=n.answer;if(!l)throw new Error("Answer is undefined.");const c={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(l,c).catch(u=>{throw this.stateTransition(z.Terminated),u})}return Promise.resolve();case fe.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onRedirect(e){if(this.logger.log("Inviter.onRedirect"),this.state!==z.Establishing&&this.state!==z.Terminating){this.logger.error(`Redirect received while in state ${this.state}, dropping response`);return}this.stateTransition(z.Terminated)}onReject(e){if(this.logger.log("Inviter.onReject"),this.state!==z.Establishing&&this.state!==z.Terminating){this.logger.error(`Reject received while in state ${this.state}, dropping response`);return}this.stateTransition(z.Terminated)}onTrying(e){if(this.logger.log("Inviter.onTrying"),this.state!==z.Establishing){this.logger.error(`Trying received while in state ${this.state}, dropping response`);return}}},Ge;(function(e){e.Initial="Initial",e.Registered="Registered",e.Unregistered="Unregistered",e.Terminated="Terminated"})(Ge=Ge||(Ge={}));var yl=class Jn{constructor(t,r={}){this.disposed=!1,this._contacts=[],this._retryAfter=void 0,this._state=Ge.Initial,this._waiting=!1,this._stateEventEmitter=new ai,this._waitingEventEmitter=new ai,this.userAgent=t;const n=t.configuration.uri.clone();if(n.user=void 0,this.options=Object.assign(Object.assign(Object.assign({},Jn.defaultOptions()),{registrar:n}),Jn.stripUndefinedProperties(r)),this.options.extraContactHeaderParams=(this.options.extraContactHeaderParams||[]).slice(),this.options.extraHeaders=(this.options.extraHeaders||[]).slice(),!this.options.registrar)throw new Error("Registrar undefined.");if(this.options.registrar=this.options.registrar.clone(),this.options.regId&&!this.options.instanceId?this.options.instanceId=this.userAgent.instanceId:!this.options.regId&&this.options.instanceId&&(this.options.regId=1),this.options.instanceId&&ct.parse(this.options.instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");if(this.options.regId&&this.options.regId<0)throw new Error("Invalid regId.");const s=this.options.registrar,i=this.options.params&&this.options.params.fromUri||t.userAgentCore.configuration.aor,o=this.options.params&&this.options.params.toUri||t.configuration.uri,a=this.options.params||{},l=(r.extraHeaders||[]).slice();if(this.request=t.userAgentCore.makeOutgoingRequestMessage(ge.REGISTER,s,i,o,a,l,void 0),this.expires=this.options.expires||Jn.defaultExpires,this.expires<0)throw new Error("Invalid expires.");if(this.refreshFrequency=this.options.refreshFrequency||Jn.defaultRefreshFrequency,this.refreshFrequency<50||this.refreshFrequency>99)throw new Error("Invalid refresh frequency. The value represents a percentage of the expiration time and should be between 50 and 99.");this.logger=t.getLogger("sip.Registerer"),this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(c=>{const u=this.options[c];c==="registrar"?this.logger.log("· "+c+": "+u):this.logger.log("· "+c+": "+JSON.stringify(u))})),this.id=this.request.callId+this.request.from.parameters.tag,this.userAgent._registerers[this.id]=this}static defaultOptions(){return{expires:Jn.defaultExpires,extraContactHeaderParams:[],extraHeaders:[],logConfiguration:!0,instanceId:"",params:{},regId:0,registrar:new dn("sip","anonymous","anonymous.invalid"),refreshFrequency:Jn.defaultRefreshFrequency}}static stripUndefinedProperties(t){return Object.keys(t).reduce((r,n)=>(t[n]!==void 0&&(r[n]=t[n]),r),{})}get contacts(){return this._contacts.slice()}get retryAfter(){return this._retryAfter}get state(){return this._state}get stateChange(){return this._stateEventEmitter}dispose(){return this.disposed?Promise.resolve():(this.disposed=!0,this.logger.log(`Registerer ${this.id} in state ${this.state} is being disposed`),delete this.userAgent._registerers[this.id],new Promise(t=>{const r=()=>{if(!this.waiting&&this._state===Ge.Registered){this.stateChange.addListener(()=>{this.terminated(),t()},{once:!0}),this.unregister();return}this.terminated(),t()};this.waiting?this.waitingChange.addListener(()=>{r()},{once:!0}):r()}))}register(t={}){if(this.state===Ge.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const s=new dl("REGISTER request already in progress, waiting for final response");return Promise.reject(s)}t.requestOptions&&(this.options=Object.assign(Object.assign({},this.options),t.requestOptions));const r=(this.options.extraHeaders||[]).slice();r.push("Contact: "+this.generateContactHeader(this.expires)),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.request.extraHeaders=r,this.waitingToggle(!0);const n=this.userAgent.userAgentCore.register(this.request,{onAccept:s=>{let i;s.message.hasHeader("expires")&&(i=Number(s.message.getHeader("expires"))),this._contacts=s.message.getHeaders("contact");let o=this._contacts.length;if(!o){this.logger.error("No Contact header in response to REGISTER, dropping response."),this.unregistered();return}let a;for(;o--;){if(a=s.message.parseHeader("contact",o),!a)throw new Error("Contact undefined");if(this.userAgent.contact.pubGruu&&Sf(a.uri,this.userAgent.contact.pubGruu)){i=Number(a.getParam("expires"));break}if(this.userAgent.configuration.contactName===""){if(a.uri.user===this.userAgent.contact.uri.user){i=Number(a.getParam("expires"));break}}else if(Sf(a.uri,this.userAgent.contact.uri)){i=Number(a.getParam("expires"));break}a=void 0}if(a===void 0){this.logger.error("No Contact header pointing to us, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(i===void 0){this.logger.error("Contact pointing to us is missing expires parameter, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(a.hasParam("temp-gruu")){const l=a.getParam("temp-gruu");l&&(this.userAgent.contact.tempGruu=ct.URIParse(l.replace(/"/g,"")))}if(a.hasParam("pub-gruu")){const l=a.getParam("pub-gruu");l&&(this.userAgent.contact.pubGruu=ct.URIParse(l.replace(/"/g,"")))}this.registered(i),t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(s),this.waitingToggle(!1)},onProgress:s=>{t.requestDelegate&&t.requestDelegate.onProgress&&t.requestDelegate.onProgress(s)},onRedirect:s=>{this.logger.error("Redirect received. Not supported."),this.unregistered(),t.requestDelegate&&t.requestDelegate.onRedirect&&t.requestDelegate.onRedirect(s),this.waitingToggle(!1)},onReject:s=>{if(s.message.statusCode===423){if(!s.message.hasHeader("min-expires")){this.logger.error("423 response received for REGISTER without Min-Expires, dropping response"),this.unregistered(),this.waitingToggle(!1);return}this.expires=Number(s.message.getHeader("min-expires")),this.waitingToggle(!1),this.register();return}this.logger.warn(`Failed to register, status code ${s.message.statusCode}`);let i=NaN;if(s.message.statusCode===500||s.message.statusCode===503){const o=s.message.getHeader("retry-after");o&&(i=Number.parseInt(o,void 0))}this._retryAfter=isNaN(i)?void 0:i,this.unregistered(),t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(s),this._retryAfter=void 0,this.waitingToggle(!1)},onTrying:s=>{t.requestDelegate&&t.requestDelegate.onTrying&&t.requestDelegate.onTrying(s)}});return Promise.resolve(n)}unregister(t={}){if(this.state===Ge.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed&&this.state!==Ge.Registered)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const s=new dl("REGISTER request already in progress, waiting for final response");return Promise.reject(s)}this._state!==Ge.Registered&&!t.all&&this.logger.warn("Not currently registered, but sending an unregister anyway.");const r=(t.requestOptions&&t.requestOptions.extraHeaders||[]).slice();this.request.extraHeaders=r,t.all?(r.push("Contact: *"),r.push("Expires: 0")):r.push("Contact: "+this.generateContactHeader(0)),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.waitingToggle(!0);const n=this.userAgent.userAgentCore.register(this.request,{onAccept:s=>{this._contacts=s.message.getHeaders("contact"),this.unregistered(),t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(s),this.waitingToggle(!1)},onProgress:s=>{t.requestDelegate&&t.requestDelegate.onProgress&&t.requestDelegate.onProgress(s)},onRedirect:s=>{this.logger.error("Unregister redirected. Not currently supported."),this.unregistered(),t.requestDelegate&&t.requestDelegate.onRedirect&&t.requestDelegate.onRedirect(s),this.waitingToggle(!1)},onReject:s=>{this.logger.error(`Unregister rejected with status code ${s.message.statusCode}`),this.unregistered(),t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(s),this.waitingToggle(!1)},onTrying:s=>{t.requestDelegate&&t.requestDelegate.onTrying&&t.requestDelegate.onTrying(s)}});return Promise.resolve(n)}clearTimers(){this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.registrationExpiredTimer!==void 0&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0)}generateContactHeader(t){let r=this.userAgent.contact.toString({register:!0});return this.options.regId&&this.options.instanceId&&(r+=";reg-id="+this.options.regId,r+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEach(n=>{r+=";"+n}),r+=";expires="+t,r}registered(t){this.clearTimers(),this.registrationTimer=setTimeout(()=>{this.registrationTimer=void 0,this.register()},this.refreshFrequency/100*t*1e3),this.registrationExpiredTimer=setTimeout(()=>{this.logger.warn("Registration expired"),this.unregistered()},t*1e3),this._state!==Ge.Registered&&this.stateTransition(Ge.Registered)}unregistered(){this.clearTimers(),this._state!==Ge.Unregistered&&this.stateTransition(Ge.Unregistered)}terminated(){this.clearTimers(),this._state!==Ge.Terminated&&this.stateTransition(Ge.Terminated)}stateTransition(t){const r=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case Ge.Initial:t!==Ge.Registered&&t!==Ge.Unregistered&&t!==Ge.Terminated&&r();break;case Ge.Registered:t!==Ge.Unregistered&&t!==Ge.Terminated&&r();break;case Ge.Unregistered:t!==Ge.Registered&&t!==Ge.Terminated&&r();break;case Ge.Terminated:r();break;default:throw new Error("Unrecognized state.")}this._state=t,this.logger.log(`Registration transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),t===Ge.Terminated&&this.dispose()}get waiting(){return this._waiting}get waitingChange(){return this._waitingEventEmitter}waitingToggle(t){if(this._waiting===t)throw new Error(`Invalid waiting transition from ${this._waiting} to ${t}`);this._waiting=t,this.logger.log(`Waiting toggled to ${this._waiting}`),this._waitingEventEmitter.emit(this._waiting)}waitingWarning(){let t="An attempt was made to send a REGISTER request while a prior one was still in progress.";t+=" RFC 3261 requires UAs MUST NOT send a new registration until they have received a final response",t+=" from the registrar for the previous one or the previous REGISTER request has timed out.",t+=" Note that if the transport disconnects, you still must wait for the prior request to time out before",t+=" sending a new REGISTER request or alternatively dispose of the current Registerer and create a new Registerer.",this.logger.warn(t)}stateError(){let t=`An attempt was made to send a REGISTER request when the Registerer ${this.state===Ge.Terminated?"is in 'Terminated' state":"has been disposed"}.`;t+=" The Registerer transitions to 'Terminated' when Registerer.dispose() is called.",t+=" Perhaps you called UserAgent.stop() which dipsoses of all Registerers?",this.logger.error(t)}};yl.defaultExpires=600,yl.defaultRefreshFrequency=99;var Ve;(function(e){e.Initial="Initial",e.NotifyWait="NotifyWait",e.Pending="Pending",e.Active="Active",e.Terminated="Terminated"})(Ve=Ve||(Ve={}));var Ie;(function(e){e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Disconnected="Disconnected"})(Ie=Ie||(Ie={}));var wt;(function(e){e.Started="Started",e.Stopped="Stopped"})(wt=wt||(wt={}));var gn=class ar{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(t,r=!1){return this.onePassHasher.start().appendStr(t).end(r)}static hashAsciiStr(t,r=!1){return this.onePassHasher.start().appendAsciiStr(t).end(r)}static _hex(t){const r=ar.hexChars,n=ar.hexOut;let s,i,o,a;for(a=0;a<4;a+=1)for(i=a*8,s=t[a],o=0;o<8;o+=2)n[i+1+o]=r.charAt(s&15),s>>>=4,n[i+0+o]=r.charAt(s&15),s>>>=4;return n.join("")}static _md5cycle(t,r){let n=t[0],s=t[1],i=t[2],o=t[3];n+=(s&i|~s&o)+r[0]-680876936|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[1]-389564586|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[2]+606105819|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[3]-1044525330|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[4]-176418897|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[5]+1200080426|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[6]-1473231341|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[7]-45705983|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[8]+1770035416|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[9]-1958414417|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[10]-42063|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[11]-1990404162|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[12]+1804603682|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[13]-40341101|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[14]-1502002290|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[15]+1236535329|0,s=(s<<22|s>>>10)+i|0,n+=(s&o|i&~o)+r[1]-165796510|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[6]-1069501632|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[11]+643717713|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[0]-373897302|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[5]-701558691|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[10]+38016083|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[15]-660478335|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[4]-405537848|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[9]+568446438|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[14]-1019803690|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[3]-187363961|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[8]+1163531501|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[13]-1444681467|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[2]-51403784|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[7]+1735328473|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[12]-1926607734|0,s=(s<<20|s>>>12)+i|0,n+=(s^i^o)+r[5]-378558|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[8]-2022574463|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[11]+1839030562|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[14]-35309556|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[1]-1530992060|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[4]+1272893353|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[7]-155497632|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[10]-1094730640|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[13]+681279174|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[0]-358537222|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[3]-722521979|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[6]+76029189|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[9]-640364487|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[12]-421815835|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[15]+530742520|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[2]-995338651|0,s=(s<<23|s>>>9)+i|0,n+=(i^(s|~o))+r[0]-198630844|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[5]-57434055|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[12]+1700485571|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[10]-1051523|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[1]-2054922799|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[8]+1873313359|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[13]+1309151649|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[4]-145523070|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[2]+718787259|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[9]-343485551|0,s=(s<<21|s>>>11)+i|0,t[0]=n+t[0]|0,t[1]=s+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(ar.stateIdentity),this}appendStr(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o;for(o=0;o<t.length;o+=1){if(i=t.charCodeAt(o),i<128)r[s++]=i;else if(i<2048)r[s++]=(i>>>6)+192,r[s++]=i&63|128;else if(i<55296||i>56319)r[s++]=(i>>>12)+224,r[s++]=i>>>6&63|128,r[s++]=i&63|128;else{if(i=(i-55296)*1024+(t.charCodeAt(++o)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");r[s++]=(i>>>18)+240,r[s++]=i>>>12&63|128,r[s++]=i>>>6&63|128,r[s++]=i&63|128}s>=64&&(this._dataLength+=64,ar._md5cycle(this._state,n),s-=64,n[0]=n[16])}return this._bufferLength=s,this}appendAsciiStr(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o=0;for(;;){for(i=Math.min(t.length-o,64-s);i--;)r[s++]=t.charCodeAt(o++);if(s<64)break;this._dataLength+=64,ar._md5cycle(this._state,n),s=0}return this._bufferLength=s,this}appendByteArray(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o=0;for(;;){for(i=Math.min(t.length-o,64-s);i--;)r[s++]=t[o++];if(s<64)break;this._dataLength+=64,ar._md5cycle(this._state,n),s=0}return this._bufferLength=s,this}getState(){const t=this,r=t._state;return{buffer:String.fromCharCode.apply(null,t._buffer8),buflen:t._bufferLength,length:t._dataLength,state:[r[0],r[1],r[2],r[3]]}}setState(t){const r=t.buffer,n=t.state,s=this._state;let i;for(this._dataLength=t.length,this._bufferLength=t.buflen,s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],i=0;i<r.length;i+=1)this._buffer8[i]=r.charCodeAt(i)}end(t=!1){const r=this._bufferLength,n=this._buffer8,s=this._buffer32,i=(r>>2)+1;let o;if(this._dataLength+=r,n[r]=128,n[r+1]=n[r+2]=n[r+3]=0,s.set(ar.buffer32Identity.subarray(i),i),r>55&&(ar._md5cycle(this._state,s),s.set(ar.buffer32Identity)),o=this._dataLength*8,o<=4294967295)s[14]=o;else{const a=o.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;const l=parseInt(a[2],16),c=parseInt(a[1],16)||0;s[14]=l,s[15]=c}return ar._md5cycle(this._state,s),t?this._state:ar._hex(this._state)}};gn.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),gn.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),gn.hexChars="0123456789abcdef",gn.hexOut=[],gn.onePassHasher=new gn,gn.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592"&&console.error("Md5 self test failed.");function vn(e){return gn.hashStr(e)}var P0=class{constructor(e,t,r,n){this.logger=e.getLogger("sipjs.digestauthentication"),this.username=r,this.password=n,this.ha1=t,this.nc=0,this.ncHex="00000000"}authenticate(e,t,r){if(this.algorithm=t.algorithm,this.realm=t.realm,this.nonce=t.nonce,this.opaque=t.opaque,this.stale=t.stale,this.algorithm){if(this.algorithm!=="MD5")return this.logger.warn("challenge with Digest algorithm different than 'MD5', authentication aborted"),!1}else this.algorithm="MD5";if(!this.realm)return this.logger.warn("challenge without Digest realm, authentication aborted"),!1;if(!this.nonce)return this.logger.warn("challenge without Digest nonce, authentication aborted"),!1;if(t.qop)if(t.qop.indexOf("auth")>-1)this.qop="auth";else if(t.qop.indexOf("auth-int")>-1)this.qop="auth-int";else return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),!1;else this.qop=void 0;return this.method=e.method,this.uri=e.ruri,this.cnonce=Fn(12),this.nc+=1,this.updateNcHex(),this.nc===4294967296&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(r),!0}toString(){const e=[];if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return e.push("algorithm="+this.algorithm),e.push('username="'+this.username+'"'),e.push('realm="'+this.realm+'"'),e.push('nonce="'+this.nonce+'"'),e.push('uri="'+this.uri+'"'),e.push('response="'+this.response+'"'),this.opaque&&e.push('opaque="'+this.opaque+'"'),this.qop&&(e.push("qop="+this.qop),e.push('cnonce="'+this.cnonce+'"'),e.push("nc="+this.ncHex)),"Digest "+e.join(", ")}updateNcHex(){const e=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-e.length)+e}calculateResponse(e){let t,r;t=this.ha1,(t===""||t===void 0)&&(t=vn(this.username+":"+this.realm+":"+this.password)),this.qop==="auth"?(r=vn(this.method+":"+this.uri),this.response=vn(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+r)):this.qop==="auth-int"?(r=vn(this.method+":"+this.uri+":"+vn(e||"")),this.response=vn(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+r)):this.qop===void 0&&(r=vn(this.method+":"+this.uri),this.response=vn(t+":"+this.nonce+":"+r))}},ht;(function(e){e[e.error=0]="error",e[e.warn=1]="warn",e[e.log=2]="log",e[e.debug=3]="debug"})(ht=ht||(ht={}));var If=class{constructor(e,t,r){this.logger=e,this.category=t,this.label=r}error(e){this.genericLog(ht.error,e)}warn(e){this.genericLog(ht.warn,e)}log(e){this.genericLog(ht.log,e)}debug(e){this.genericLog(ht.debug,e)}genericLog(e,t){this.logger.genericLog(e,this.category,this.label,t)}get level(){return this.logger.level}set level(e){this.logger.level=e}},D0=class{constructor(){this.builtinEnabled=!0,this._level=ht.log,this.loggers={},this.logger=this.getLogger("sip:loggerfactory")}get level(){return this._level}set level(e){e>=0&&e<=3?this._level=e:e>3?this._level=3:ht.hasOwnProperty(e)?this._level=e:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(e))}get connector(){return this._connector}set connector(e){e?typeof e=="function"?this._connector=e:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(e)):this._connector=void 0}getLogger(e,t){if(t&&this.level===3)return new If(this,e,t);if(this.loggers[e])return this.loggers[e];{const r=new If(this,e);return this.loggers[e]=r,r}}genericLog(e,t,r,n){this.level>=e&&this.builtinEnabled&&this.print(e,t,r,n),this.connector&&this.connector(ht[e],t,r,n)}print(e,t,r,n){if(typeof n=="string"){const s=[new Date,t];r&&s.push(r),n=s.concat(n).join(" | ")}switch(e){case ht.error:console.error(n);break;case ht.warn:console.warn(n);break;case ht.log:console.log(n);break;case ht.debug:console.debug(n);break;default:break}}},bo;(function(e){function t(s,i){let o=i,a=0,l=0;if(s.substring(o,o+2).match(/(^\r\n)/))return-2;for(;a===0;){if(l=s.indexOf(`\r
|
|
27
27
|
`,o),l===-1)return l;!s.substring(l+2,l+4).match(/(^\r\n)/)&&s.charAt(l+2).match(/(^\s+)/)?o=l+2:a=l}return a}e.getHeader=t;function r(s,i,o,a){const l=i.indexOf(":",o),c=i.substring(o,l).trim(),u=i.substring(l+1,a).trim();let d;switch(c.toLowerCase()){case"via":case"v":s.addHeader("via",u),s.getHeaders("via").length===1?(d=s.parseHeader("Via"),d&&(s.via=d,s.viaBranch=d.branch)):d=0;break;case"from":case"f":s.setHeader("from",u),d=s.parseHeader("from"),d&&(s.from=d,s.fromTag=d.getParam("tag"));break;case"to":case"t":s.setHeader("to",u),d=s.parseHeader("to"),d&&(s.to=d,s.toTag=d.getParam("tag"));break;case"record-route":if(d=ct.parse(u,"Record_Route"),d===-1){d=void 0;break}if(!(d instanceof Array)){d=void 0;break}d.forEach(p=>{s.addHeader("record-route",u.substring(p.position,p.offset)),s.headers["Record-Route"][s.getHeaders("record-route").length-1].parsed=p.parsed});break;case"call-id":case"i":s.setHeader("call-id",u),d=s.parseHeader("call-id"),d&&(s.callId=u);break;case"contact":case"m":if(d=ct.parse(u,"Contact"),d===-1){d=void 0;break}if(!(d instanceof Array)){d=void 0;break}d.forEach(p=>{s.addHeader("contact",u.substring(p.position,p.offset)),s.headers.Contact[s.getHeaders("contact").length-1].parsed=p.parsed});break;case"content-length":case"l":s.setHeader("content-length",u),d=s.parseHeader("content-length");break;case"content-type":case"c":s.setHeader("content-type",u),d=s.parseHeader("content-type");break;case"cseq":s.setHeader("cseq",u),d=s.parseHeader("cseq"),d&&(s.cseq=d.value),s instanceof fn&&(s.method=d.method);break;case"max-forwards":s.setHeader("max-forwards",u),d=s.parseHeader("max-forwards");break;case"www-authenticate":s.setHeader("www-authenticate",u),d=s.parseHeader("www-authenticate");break;case"proxy-authenticate":s.setHeader("proxy-authenticate",u),d=s.parseHeader("proxy-authenticate");break;case"refer-to":case"r":s.setHeader("refer-to",u),d=s.parseHeader("refer-to"),d&&(s.referTo=d);break;default:s.addHeader(c.toLowerCase(),u),d=0}return d===void 0?{error:"error parsing header '"+c+"'"}:!0}e.parseHeader=r;function n(s,i){let o=0,a=s.indexOf(`\r
|
|
28
|
-
`);if(a===-1){i.warn("no CRLF found, not a SIP message, discarded");return}const l=s.substring(0,a),c=ct.parse(l,"Request_Response");let u;if(c===-1){i.warn('error parsing first line of SIP message: "'+l+'"');return}else c.status_code?(u=new fn,u.statusCode=c.status_code,u.reasonPhrase=c.reason_phrase):(u=new ms,u.method=c.method,u.ruri=c.uri);u.data=s,o=a+2;let d;for(;;){if(a=t(s,o),a===-2){d=o+2;break}else if(a===-1){i.error("malformed message");return}const p=r(u,s,o,a);if(p&&p!==!0){i.error(p.error);return}o=a+2}return u.hasHeader("content-length")?u.body=s.substr(d,Number(u.getHeader("content-length"))):u.body=s.substring(d),u}e.parseMessage=n})(bo=bo||(bo={}));function
|
|
28
|
+
`);if(a===-1){i.warn("no CRLF found, not a SIP message, discarded");return}const l=s.substring(0,a),c=ct.parse(l,"Request_Response");let u;if(c===-1){i.warn('error parsing first line of SIP message: "'+l+'"');return}else c.status_code?(u=new fn,u.statusCode=c.status_code,u.reasonPhrase=c.reason_phrase):(u=new ms,u.method=c.method,u.ruri=c.uri);u.data=s,o=a+2;let d;for(;;){if(a=t(s,o),a===-2){d=o+2;break}else if(a===-1){i.error("malformed message");return}const p=r(u,s,o,a);if(p&&p!==!0){i.error(p.error);return}o=a+2}return u.hasHeader("content-length")?u.body=s.substr(d,Number(u.getHeader("content-length"))):u.body=s.substring(d),u}e.parseMessage=n})(bo=bo||(bo={}));function Rf(e,t){if(t.statusCode<100||t.statusCode>699)throw new TypeError("Invalid statusCode: "+t.statusCode);const n=t.reasonPhrase?t.reasonPhrase:vo(t.statusCode);let s="SIP/2.0 "+t.statusCode+" "+n+`\r
|
|
29
29
|
`;t.statusCode>=100&&t.statusCode<200,t.statusCode;const i="From: "+e.getHeader("From")+`\r
|
|
30
30
|
`,o="Call-ID: "+e.callId+`\r
|
|
31
31
|
`,a="CSeq: "+e.cseq+" "+e.method+`\r
|
|
32
|
-
`,l=e.getHeaders("via").reduce((
|
|
33
|
-
`,"");let c="To: "+e.getHeader("to");if(t.statusCode>100&&!e.parseHeader("to").hasParam("tag")){let
|
|
32
|
+
`,l=e.getHeaders("via").reduce((h,m)=>h+"Via: "+m+`\r
|
|
33
|
+
`,"");let c="To: "+e.getHeader("to");if(t.statusCode>100&&!e.parseHeader("to").hasParam("tag")){let h=t.toTag;h||(h=mo()),c+=";tag="+h}c+=`\r
|
|
34
34
|
`;let u="";t.supported&&(u="Supported: "+t.supported.join(", ")+`\r
|
|
35
35
|
`);let d="";t.userAgent&&(d="User-Agent: "+t.userAgent+`\r
|
|
36
|
-
`);let p="";return t.extraHeaders&&(p=t.extraHeaders.reduce((
|
|
36
|
+
`);let p="";return t.extraHeaders&&(p=t.extraHeaders.reduce((h,m)=>h+m.trim()+`\r
|
|
37
37
|
`,"")),s+=l,s+=i,s+=c,s+=a,s+=o,s+=u,s+=d,s+=p,t.body?(s+="Content-Type: "+t.body.contentType+`\r
|
|
38
38
|
`,s+="Content-Length: "+li(t.body.content)+`\r
|
|
39
39
|
\r
|
|
40
40
|
`,s+=t.body.content):s+=`Content-Length: 0\r
|
|
41
41
|
\r
|
|
42
|
-
`,{message:s}}var bl=class extends Ln{constructor(e){super(e||"Unspecified transport error.")}},Rf=class{constructor(e,t,r,n,s){this._transport=e,this._user=t,this._id=r,this._state=n,this.listeners=new Array,this.logger=t.loggerFactory.getLogger(s,r),this.logger.debug(`Constructing ${this.typeToString()} with id ${this.id}.`)}dispose(){this.logger.debug(`Destroyed ${this.typeToString()} with id ${this.id}.`)}get id(){return this._id}get kind(){throw new Error("Invalid kind.")}get state(){return this._state}get transport(){return this._transport}addStateChangeListener(e,t){const r=()=>{this.removeStateChangeListener(r),e()};t?.once===!0?this.listeners.push(r):this.listeners.push(e)}notifyStateChangeListeners(){this.listeners.slice().forEach(e=>e())}removeStateChangeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}logTransportError(e,t){this.logger.error(e.message),this.logger.error(`Transport error occurred in ${this.typeToString()} with id ${this.id}.`),this.logger.error(t)}send(e){return this.transport.send(e).catch(t=>{if(t instanceof bl)throw this.onTransportError(t),t;let r;throw t&&typeof t.message=="string"?r=new bl(t.message):r=new bl,this.onTransportError(r),r})}setState(e){this.logger.debug(`State change to "${e}" on ${this.typeToString()} with id ${this.id}.`),this._state=e,this._user.onStateChange&&this._user.onStateChange(e),this.notifyStateChangeListeners()}typeToString(){return"UnknownType"}},$f=class extends Rf{constructor(e,t,r,n,s){super(t,r,e.viaBranch,n,s),this._request=e,this.user=r}get request(){return this._request}},L;(function(e){e.Accepted="Accepted",e.Calling="Calling",e.Completed="Completed",e.Confirmed="Confirmed",e.Proceeding="Proceeding",e.Terminated="Terminated",e.Trying="Trying"})(L=L||(L={}));var qt=class extends $f{constructor(e,t,r){super(e,t,r,L.Proceeding,"sip.transaction.ist")}dispose(){this.stopProgressExtensionTimer(),this.H&&(clearTimeout(this.H),this.H=void 0),this.I&&(clearTimeout(this.I),this.I=void 0),this.L&&(clearTimeout(this.L),this.L=void 0),super.dispose()}get kind(){return"ist"}receiveRequest(e){switch(this.state){case L.Proceeding:if(e.method===he.INVITE){this.lastProvisionalResponse&&this.send(this.lastProvisionalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of provisional response.")});return}break;case L.Accepted:if(e.method===he.INVITE)return;break;case L.Completed:if(e.method===he.INVITE){if(!this.lastFinalResponse)throw new Error("Last final response undefined.");this.send(this.lastFinalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of final response.")});return}if(e.method===he.ACK){this.stateTransition(L.Confirmed);return}break;case L.Confirmed:if(e.method===he.INVITE||e.method===he.ACK)return;break;case L.Terminated:if(e.method===he.INVITE||e.method===he.ACK)return;break;default:throw new Error(`Invalid state ${this.state}`)}const t=`INVITE server transaction received unexpected ${e.method} request while in state ${this.state}.`;this.logger.warn(t)}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);switch(this.state){case L.Proceeding:if(e>=100&&e<=199){this.lastProvisionalResponse=t,e>100&&this.startProgressExtensionTimer(),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 1xx response.")});return}if(e>=200&&e<=299){this.lastFinalResponse=t,this.stateTransition(L.Accepted),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 2xx response.")});return}if(e>=300&&e<=699){this.lastFinalResponse=t,this.stateTransition(L.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send non-2xx final response.")});return}break;case L.Accepted:if(e>=200&&e<=299){this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 2xx response.")});return}break;case L.Completed:break;case L.Confirmed:break;case L.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(r),new Error(r)}retransmitAcceptedResponse(){this.state===L.Accepted&&this.lastFinalResponse&&this.send(this.lastFinalResponse).catch(e=>{this.logTransportError(e,"Failed to send 2xx response.")})}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e)}typeToString(){return"INVITE server transaction"}stateTransition(e){const t=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case L.Proceeding:t();break;case L.Accepted:case L.Completed:this.state!==L.Proceeding&&t();break;case L.Confirmed:this.state!==L.Completed&&t();break;case L.Terminated:this.state!==L.Accepted&&this.state!==L.Completed&&this.state!==L.Confirmed&&t();break;default:t()}this.stopProgressExtensionTimer(),e===L.Accepted&&(this.L=setTimeout(()=>this.timerL(),pt.TIMER_L)),e===L.Completed&&(this.H=setTimeout(()=>this.timerH(),pt.TIMER_H)),e===L.Confirmed&&(this.I=setTimeout(()=>this.timerI(),pt.TIMER_I)),e===L.Terminated&&this.dispose(),this.setState(e)}startProgressExtensionTimer(){this.progressExtensionTimer===void 0&&(this.progressExtensionTimer=setInterval(()=>{if(this.logger.debug(`Progress extension timer expired for INVITE server transaction ${this.id}.`),!this.lastProvisionalResponse)throw new Error("Last provisional response undefined.");this.send(this.lastProvisionalResponse).catch(e=>{this.logTransportError(e,"Failed to send retransmission of provisional response.")})},pt.PROVISIONAL_RESPONSE_INTERVAL))}stopProgressExtensionTimer(){this.progressExtensionTimer!==void 0&&(clearInterval(this.progressExtensionTimer),this.progressExtensionTimer=void 0)}timerG(){}timerH(){this.logger.debug(`Timer H expired for INVITE server transaction ${this.id}.`),this.state===L.Completed&&(this.logger.warn("ACK to negative final response was never received, terminating transaction."),this.stateTransition(L.Terminated))}timerI(){this.logger.debug(`Timer I expired for INVITE server transaction ${this.id}.`),this.stateTransition(L.Terminated)}timerL(){this.logger.debug(`Timer L expired for INVITE server transaction ${this.id}.`),this.state===L.Accepted&&this.stateTransition(L.Terminated)}},Pf=class rg extends Rf{constructor(t,r,n,s,i){super(r,n,rg.makeId(t),s,i),this._request=t,this.user=n,t.setViaHeader(this.id,r.protocol)}static makeId(t){if(t.method==="CANCEL"){if(!t.branch)throw new Error("Outgoing CANCEL request without a branch.");return t.branch}else return"z9hG4bK"+Math.floor(Math.random()*1e7)}get request(){return this._request}onRequestTimeout(){this.user.onRequestTimeout&&this.user.onRequestTimeout()}},Ft=class extends Pf{constructor(e,t,r){super(e,t,r,L.Trying,"sip.transaction.nict"),this.F=setTimeout(()=>this.timerF(),pt.TIMER_F),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send initial outgoing request.")})}dispose(){this.F&&(clearTimeout(this.F),this.F=void 0),this.K&&(clearTimeout(this.K),this.K=void 0),super.dispose()}get kind(){return"nict"}receiveResponse(e){const t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case L.Trying:if(t>=100&&t<=199){this.stateTransition(L.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=699){if(this.stateTransition(L.Completed),t===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case L.Proceeding:if(t>=100&&t<=199&&this.user.receiveResponse)return this.user.receiveResponse(e);if(t>=200&&t<=699){if(this.stateTransition(L.Completed),t===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case L.Completed:return;case L.Terminated:return;default:throw new Error(`Invalid state ${this.state}`)}const r=`Non-INVITE client transaction received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(L.Terminated,!0)}typeToString(){return"non-INVITE client transaction"}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case L.Trying:r();break;case L.Proceeding:this.state!==L.Trying&&r();break;case L.Completed:this.state!==L.Trying&&this.state!==L.Proceeding&&r();break;case L.Terminated:this.state!==L.Trying&&this.state!==L.Proceeding&&this.state!==L.Completed&&(t||r());break;default:r()}e===L.Completed&&(this.F&&(clearTimeout(this.F),this.F=void 0),this.K=setTimeout(()=>this.timerK(),pt.TIMER_K)),e===L.Terminated&&this.dispose(),this.setState(e)}timerF(){this.logger.debug(`Timer F expired for non-INVITE client transaction ${this.id}.`),(this.state===L.Trying||this.state===L.Proceeding)&&(this.onRequestTimeout(),this.stateTransition(L.Terminated))}timerK(){this.state===L.Completed&&this.stateTransition(L.Terminated)}},ws=class{constructor(e,t){this.core=e,this.dialogState=t,this.core.dialogs.set(this.id,this)}static initialDialogStateForUserAgentClient(e,t){const n=t.getHeaders("record-route").reverse(),s=t.parseHeader("contact");if(!s)throw new Error("Contact undefined.");if(!(s instanceof sr))throw new Error("Contact not instance of NameAddrHeader.");const i=s.uri,o=e.cseq,a=void 0,l=e.callId,c=e.fromTag,u=t.toTag;if(!l)throw new Error("Call id undefined.");if(!c)throw new Error("From tag undefined.");if(!u)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");const d=e.from.uri,p=e.to.uri;if(!t.statusCode)throw new Error("Incoming response status code undefined.");const g=t.statusCode<200;return{id:l+c+u,early:g,callId:l,localTag:c,remoteTag:u,localSequenceNumber:o,remoteSequenceNumber:a,localURI:d,remoteURI:p,remoteTarget:i,routeSet:n,secure:!1}}static initialDialogStateForUserAgentServer(e,t,r=!1){const s=e.getHeaders("record-route"),i=e.parseHeader("contact");if(!i)throw new Error("Contact undefined.");if(!(i instanceof sr))throw new Error("Contact not instance of NameAddrHeader.");const o=i.uri,a=e.cseq,l=void 0,c=e.callId,u=t,d=e.fromTag,p=e.from.uri,g=e.to.uri;return{id:c+u+d,early:r,callId:c,localTag:u,remoteTag:d,localSequenceNumber:l,remoteSequenceNumber:a,localURI:g,remoteURI:p,remoteTarget:o,routeSet:s,secure:!1}}dispose(){this.core.dialogs.delete(this.id)}get id(){return this.dialogState.id}get early(){return this.dialogState.early}get callId(){return this.dialogState.callId}get localTag(){return this.dialogState.localTag}get remoteTag(){return this.dialogState.remoteTag}get localSequenceNumber(){return this.dialogState.localSequenceNumber}get remoteSequenceNumber(){return this.dialogState.remoteSequenceNumber}get localURI(){return this.dialogState.localURI}get remoteURI(){return this.dialogState.remoteURI}get remoteTarget(){return this.dialogState.remoteTarget}get routeSet(){return this.dialogState.routeSet}get secure(){return this.dialogState.secure}get userAgentCore(){return this.core}confirm(){this.dialogState.early=!1}receiveRequest(e){if(e.method!==he.ACK){if(this.remoteSequenceNumber){if(e.cseq<=this.remoteSequenceNumber)throw new Error("Out of sequence in dialog request. Did you forget to call sequenceGuard()?");this.dialogState.remoteSequenceNumber=e.cseq}this.remoteSequenceNumber||(this.dialogState.remoteSequenceNumber=e.cseq)}}recomputeRouteSet(e){this.dialogState.routeSet=e.getHeaders("record-route").reverse()}createOutgoingRequestMessage(e,t){const r=this.remoteURI,n=this.remoteTag,s=this.localURI,i=this.localTag,o=this.callId;let a;t&&t.cseq?a=t.cseq:this.dialogState.localSequenceNumber?a=this.dialogState.localSequenceNumber+=1:a=this.dialogState.localSequenceNumber=1;const l=this.remoteTarget,c=this.routeSet,u=t&&t.extraHeaders,d=t&&t.body;return this.userAgentCore.makeOutgoingRequestMessage(e,l,s,r,{callId:o,cseq:a,fromTag:i,toTag:n,routeSet:c},u,d)}incrementLocalSequenceNumber(){if(!this.dialogState.localSequenceNumber)throw new Error("Local sequence number undefined.");this.dialogState.localSequenceNumber+=1}sequenceGuard(e){return e.method===he.ACK?!0:this.remoteSequenceNumber&&e.cseq<=this.remoteSequenceNumber?(this.core.replyStateless(e,{statusCode:500}),!1):!0}},mn=class extends Pf{constructor(e,t,r){super(e,t,r,L.Calling,"sip.transaction.ict"),this.ackRetransmissionCache=new Map,this.B=setTimeout(()=>this.timerB(),pt.TIMER_B),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send initial outgoing request.")})}dispose(){this.B&&(clearTimeout(this.B),this.B=void 0),this.D&&(clearTimeout(this.D),this.D=void 0),this.M&&(clearTimeout(this.M),this.M=void 0),super.dispose()}get kind(){return"ict"}ackResponse(e){const t=e.toTag;if(!t)throw new Error("To tag undefined.");const r="z9hG4bK"+Math.floor(Math.random()*1e7);e.setViaHeader(r,this.transport.protocol),this.ackRetransmissionCache.set(t,e),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send ACK to 2xx response.")})}receiveResponse(e){const t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case L.Calling:if(t>=100&&t<=199){this.stateTransition(L.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=299){this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(L.Accepted),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=300&&t<=699){this.stateTransition(L.Completed),this.ack(e),this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case L.Proceeding:if(t>=100&&t<=199){this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=299){this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(L.Accepted),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=300&&t<=699){this.stateTransition(L.Completed),this.ack(e),this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case L.Accepted:if(t>=200&&t<=299){if(!this.ackRetransmissionCache.has(e.toTag)){this.ackRetransmissionCache.set(e.toTag,void 0),this.user.receiveResponse&&this.user.receiveResponse(e);return}const n=this.ackRetransmissionCache.get(e.toTag);if(n){this.send(n.toString()).catch(s=>{this.logTransportError(s,"Failed to send retransmission of ACK to 2xx response.")});return}return}break;case L.Completed:if(t>=300&&t<=699){this.ack(e);return}break;case L.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`Received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(L.Terminated,!0)}typeToString(){return"INVITE client transaction"}ack(e){const t=this.request.ruri,r=this.request.callId,n=this.request.cseq,s=this.request.getHeader("from"),i=e.getHeader("to"),o=this.request.getHeader("via"),a=this.request.getHeader("route");if(!s)throw new Error("From undefined.");if(!i)throw new Error("To undefined.");if(!o)throw new Error("Via undefined.");let l=`ACK ${t} SIP/2.0\r
|
|
42
|
+
`,{message:s}}var bl=class extends Ln{constructor(e){super(e||"Unspecified transport error.")}},kf=class{constructor(e,t,r,n,s){this._transport=e,this._user=t,this._id=r,this._state=n,this.listeners=new Array,this.logger=t.loggerFactory.getLogger(s,r),this.logger.debug(`Constructing ${this.typeToString()} with id ${this.id}.`)}dispose(){this.logger.debug(`Destroyed ${this.typeToString()} with id ${this.id}.`)}get id(){return this._id}get kind(){throw new Error("Invalid kind.")}get state(){return this._state}get transport(){return this._transport}addStateChangeListener(e,t){const r=()=>{this.removeStateChangeListener(r),e()};t?.once===!0?this.listeners.push(r):this.listeners.push(e)}notifyStateChangeListeners(){this.listeners.slice().forEach(e=>e())}removeStateChangeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}logTransportError(e,t){this.logger.error(e.message),this.logger.error(`Transport error occurred in ${this.typeToString()} with id ${this.id}.`),this.logger.error(t)}send(e){return this.transport.send(e).catch(t=>{if(t instanceof bl)throw this.onTransportError(t),t;let r;throw t&&typeof t.message=="string"?r=new bl(t.message):r=new bl,this.onTransportError(r),r})}setState(e){this.logger.debug(`State change to "${e}" on ${this.typeToString()} with id ${this.id}.`),this._state=e,this._user.onStateChange&&this._user.onStateChange(e),this.notifyStateChangeListeners()}typeToString(){return"UnknownType"}},$f=class extends kf{constructor(e,t,r,n,s){super(t,r,e.viaBranch,n,s),this._request=e,this.user=r}get request(){return this._request}},L;(function(e){e.Accepted="Accepted",e.Calling="Calling",e.Completed="Completed",e.Confirmed="Confirmed",e.Proceeding="Proceeding",e.Terminated="Terminated",e.Trying="Trying"})(L=L||(L={}));var Nt=class extends $f{constructor(e,t,r){super(e,t,r,L.Proceeding,"sip.transaction.ist")}dispose(){this.stopProgressExtensionTimer(),this.H&&(clearTimeout(this.H),this.H=void 0),this.I&&(clearTimeout(this.I),this.I=void 0),this.L&&(clearTimeout(this.L),this.L=void 0),super.dispose()}get kind(){return"ist"}receiveRequest(e){switch(this.state){case L.Proceeding:if(e.method===ge.INVITE){this.lastProvisionalResponse&&this.send(this.lastProvisionalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of provisional response.")});return}break;case L.Accepted:if(e.method===ge.INVITE)return;break;case L.Completed:if(e.method===ge.INVITE){if(!this.lastFinalResponse)throw new Error("Last final response undefined.");this.send(this.lastFinalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of final response.")});return}if(e.method===ge.ACK){this.stateTransition(L.Confirmed);return}break;case L.Confirmed:if(e.method===ge.INVITE||e.method===ge.ACK)return;break;case L.Terminated:if(e.method===ge.INVITE||e.method===ge.ACK)return;break;default:throw new Error(`Invalid state ${this.state}`)}const t=`INVITE server transaction received unexpected ${e.method} request while in state ${this.state}.`;this.logger.warn(t)}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);switch(this.state){case L.Proceeding:if(e>=100&&e<=199){this.lastProvisionalResponse=t,e>100&&this.startProgressExtensionTimer(),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 1xx response.")});return}if(e>=200&&e<=299){this.lastFinalResponse=t,this.stateTransition(L.Accepted),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 2xx response.")});return}if(e>=300&&e<=699){this.lastFinalResponse=t,this.stateTransition(L.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send non-2xx final response.")});return}break;case L.Accepted:if(e>=200&&e<=299){this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 2xx response.")});return}break;case L.Completed:break;case L.Confirmed:break;case L.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(r),new Error(r)}retransmitAcceptedResponse(){this.state===L.Accepted&&this.lastFinalResponse&&this.send(this.lastFinalResponse).catch(e=>{this.logTransportError(e,"Failed to send 2xx response.")})}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e)}typeToString(){return"INVITE server transaction"}stateTransition(e){const t=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case L.Proceeding:t();break;case L.Accepted:case L.Completed:this.state!==L.Proceeding&&t();break;case L.Confirmed:this.state!==L.Completed&&t();break;case L.Terminated:this.state!==L.Accepted&&this.state!==L.Completed&&this.state!==L.Confirmed&&t();break;default:t()}this.stopProgressExtensionTimer(),e===L.Accepted&&(this.L=setTimeout(()=>this.timerL(),pt.TIMER_L)),e===L.Completed&&(this.H=setTimeout(()=>this.timerH(),pt.TIMER_H)),e===L.Confirmed&&(this.I=setTimeout(()=>this.timerI(),pt.TIMER_I)),e===L.Terminated&&this.dispose(),this.setState(e)}startProgressExtensionTimer(){this.progressExtensionTimer===void 0&&(this.progressExtensionTimer=setInterval(()=>{if(this.logger.debug(`Progress extension timer expired for INVITE server transaction ${this.id}.`),!this.lastProvisionalResponse)throw new Error("Last provisional response undefined.");this.send(this.lastProvisionalResponse).catch(e=>{this.logTransportError(e,"Failed to send retransmission of provisional response.")})},pt.PROVISIONAL_RESPONSE_INTERVAL))}stopProgressExtensionTimer(){this.progressExtensionTimer!==void 0&&(clearInterval(this.progressExtensionTimer),this.progressExtensionTimer=void 0)}timerG(){}timerH(){this.logger.debug(`Timer H expired for INVITE server transaction ${this.id}.`),this.state===L.Completed&&(this.logger.warn("ACK to negative final response was never received, terminating transaction."),this.stateTransition(L.Terminated))}timerI(){this.logger.debug(`Timer I expired for INVITE server transaction ${this.id}.`),this.stateTransition(L.Terminated)}timerL(){this.logger.debug(`Timer L expired for INVITE server transaction ${this.id}.`),this.state===L.Accepted&&this.stateTransition(L.Terminated)}},Pf=class rg extends kf{constructor(t,r,n,s,i){super(r,n,rg.makeId(t),s,i),this._request=t,this.user=n,t.setViaHeader(this.id,r.protocol)}static makeId(t){if(t.method==="CANCEL"){if(!t.branch)throw new Error("Outgoing CANCEL request without a branch.");return t.branch}else return"z9hG4bK"+Math.floor(Math.random()*1e7)}get request(){return this._request}onRequestTimeout(){this.user.onRequestTimeout&&this.user.onRequestTimeout()}},Ft=class extends Pf{constructor(e,t,r){super(e,t,r,L.Trying,"sip.transaction.nict"),this.F=setTimeout(()=>this.timerF(),pt.TIMER_F),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send initial outgoing request.")})}dispose(){this.F&&(clearTimeout(this.F),this.F=void 0),this.K&&(clearTimeout(this.K),this.K=void 0),super.dispose()}get kind(){return"nict"}receiveResponse(e){const t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case L.Trying:if(t>=100&&t<=199){this.stateTransition(L.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=699){if(this.stateTransition(L.Completed),t===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case L.Proceeding:if(t>=100&&t<=199&&this.user.receiveResponse)return this.user.receiveResponse(e);if(t>=200&&t<=699){if(this.stateTransition(L.Completed),t===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case L.Completed:return;case L.Terminated:return;default:throw new Error(`Invalid state ${this.state}`)}const r=`Non-INVITE client transaction received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(L.Terminated,!0)}typeToString(){return"non-INVITE client transaction"}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case L.Trying:r();break;case L.Proceeding:this.state!==L.Trying&&r();break;case L.Completed:this.state!==L.Trying&&this.state!==L.Proceeding&&r();break;case L.Terminated:this.state!==L.Trying&&this.state!==L.Proceeding&&this.state!==L.Completed&&(t||r());break;default:r()}e===L.Completed&&(this.F&&(clearTimeout(this.F),this.F=void 0),this.K=setTimeout(()=>this.timerK(),pt.TIMER_K)),e===L.Terminated&&this.dispose(),this.setState(e)}timerF(){this.logger.debug(`Timer F expired for non-INVITE client transaction ${this.id}.`),(this.state===L.Trying||this.state===L.Proceeding)&&(this.onRequestTimeout(),this.stateTransition(L.Terminated))}timerK(){this.state===L.Completed&&this.stateTransition(L.Terminated)}},ws=class{constructor(e,t){this.core=e,this.dialogState=t,this.core.dialogs.set(this.id,this)}static initialDialogStateForUserAgentClient(e,t){const n=t.getHeaders("record-route").reverse(),s=t.parseHeader("contact");if(!s)throw new Error("Contact undefined.");if(!(s instanceof sr))throw new Error("Contact not instance of NameAddrHeader.");const i=s.uri,o=e.cseq,a=void 0,l=e.callId,c=e.fromTag,u=t.toTag;if(!l)throw new Error("Call id undefined.");if(!c)throw new Error("From tag undefined.");if(!u)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");const d=e.from.uri,p=e.to.uri;if(!t.statusCode)throw new Error("Incoming response status code undefined.");const h=t.statusCode<200;return{id:l+c+u,early:h,callId:l,localTag:c,remoteTag:u,localSequenceNumber:o,remoteSequenceNumber:a,localURI:d,remoteURI:p,remoteTarget:i,routeSet:n,secure:!1}}static initialDialogStateForUserAgentServer(e,t,r=!1){const s=e.getHeaders("record-route"),i=e.parseHeader("contact");if(!i)throw new Error("Contact undefined.");if(!(i instanceof sr))throw new Error("Contact not instance of NameAddrHeader.");const o=i.uri,a=e.cseq,l=void 0,c=e.callId,u=t,d=e.fromTag,p=e.from.uri,h=e.to.uri;return{id:c+u+d,early:r,callId:c,localTag:u,remoteTag:d,localSequenceNumber:l,remoteSequenceNumber:a,localURI:h,remoteURI:p,remoteTarget:o,routeSet:s,secure:!1}}dispose(){this.core.dialogs.delete(this.id)}get id(){return this.dialogState.id}get early(){return this.dialogState.early}get callId(){return this.dialogState.callId}get localTag(){return this.dialogState.localTag}get remoteTag(){return this.dialogState.remoteTag}get localSequenceNumber(){return this.dialogState.localSequenceNumber}get remoteSequenceNumber(){return this.dialogState.remoteSequenceNumber}get localURI(){return this.dialogState.localURI}get remoteURI(){return this.dialogState.remoteURI}get remoteTarget(){return this.dialogState.remoteTarget}get routeSet(){return this.dialogState.routeSet}get secure(){return this.dialogState.secure}get userAgentCore(){return this.core}confirm(){this.dialogState.early=!1}receiveRequest(e){if(e.method!==ge.ACK){if(this.remoteSequenceNumber){if(e.cseq<=this.remoteSequenceNumber)throw new Error("Out of sequence in dialog request. Did you forget to call sequenceGuard()?");this.dialogState.remoteSequenceNumber=e.cseq}this.remoteSequenceNumber||(this.dialogState.remoteSequenceNumber=e.cseq)}}recomputeRouteSet(e){this.dialogState.routeSet=e.getHeaders("record-route").reverse()}createOutgoingRequestMessage(e,t){const r=this.remoteURI,n=this.remoteTag,s=this.localURI,i=this.localTag,o=this.callId;let a;t&&t.cseq?a=t.cseq:this.dialogState.localSequenceNumber?a=this.dialogState.localSequenceNumber+=1:a=this.dialogState.localSequenceNumber=1;const l=this.remoteTarget,c=this.routeSet,u=t&&t.extraHeaders,d=t&&t.body;return this.userAgentCore.makeOutgoingRequestMessage(e,l,s,r,{callId:o,cseq:a,fromTag:i,toTag:n,routeSet:c},u,d)}incrementLocalSequenceNumber(){if(!this.dialogState.localSequenceNumber)throw new Error("Local sequence number undefined.");this.dialogState.localSequenceNumber+=1}sequenceGuard(e){return e.method===ge.ACK?!0:this.remoteSequenceNumber&&e.cseq<=this.remoteSequenceNumber?(this.core.replyStateless(e,{statusCode:500}),!1):!0}},mn=class extends Pf{constructor(e,t,r){super(e,t,r,L.Calling,"sip.transaction.ict"),this.ackRetransmissionCache=new Map,this.B=setTimeout(()=>this.timerB(),pt.TIMER_B),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send initial outgoing request.")})}dispose(){this.B&&(clearTimeout(this.B),this.B=void 0),this.D&&(clearTimeout(this.D),this.D=void 0),this.M&&(clearTimeout(this.M),this.M=void 0),super.dispose()}get kind(){return"ict"}ackResponse(e){const t=e.toTag;if(!t)throw new Error("To tag undefined.");const r="z9hG4bK"+Math.floor(Math.random()*1e7);e.setViaHeader(r,this.transport.protocol),this.ackRetransmissionCache.set(t,e),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send ACK to 2xx response.")})}receiveResponse(e){const t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case L.Calling:if(t>=100&&t<=199){this.stateTransition(L.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=299){this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(L.Accepted),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=300&&t<=699){this.stateTransition(L.Completed),this.ack(e),this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case L.Proceeding:if(t>=100&&t<=199){this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=299){this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(L.Accepted),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=300&&t<=699){this.stateTransition(L.Completed),this.ack(e),this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case L.Accepted:if(t>=200&&t<=299){if(!this.ackRetransmissionCache.has(e.toTag)){this.ackRetransmissionCache.set(e.toTag,void 0),this.user.receiveResponse&&this.user.receiveResponse(e);return}const n=this.ackRetransmissionCache.get(e.toTag);if(n){this.send(n.toString()).catch(s=>{this.logTransportError(s,"Failed to send retransmission of ACK to 2xx response.")});return}return}break;case L.Completed:if(t>=300&&t<=699){this.ack(e);return}break;case L.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`Received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(L.Terminated,!0)}typeToString(){return"INVITE client transaction"}ack(e){const t=this.request.ruri,r=this.request.callId,n=this.request.cseq,s=this.request.getHeader("from"),i=e.getHeader("to"),o=this.request.getHeader("via"),a=this.request.getHeader("route");if(!s)throw new Error("From undefined.");if(!i)throw new Error("To undefined.");if(!o)throw new Error("Via undefined.");let l=`ACK ${t} SIP/2.0\r
|
|
43
43
|
`;a&&(l+=`Route: ${a}\r
|
|
44
44
|
`),l+=`Via: ${o}\r
|
|
45
45
|
`,l+=`To: ${i}\r
|
|
@@ -49,31 +49,31 @@
|
|
|
49
49
|
`,l+=`Max-Forwards: 70\r
|
|
50
50
|
`,l+=`Content-Length: 0\r
|
|
51
51
|
\r
|
|
52
|
-
`,this.send(l).catch(c=>{this.logTransportError(c,"Failed to send ACK to non-2xx response.")})}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case L.Calling:r();break;case L.Proceeding:this.state!==L.Calling&&r();break;case L.Accepted:case L.Completed:this.state!==L.Calling&&this.state!==L.Proceeding&&r();break;case L.Terminated:this.state!==L.Calling&&this.state!==L.Accepted&&this.state!==L.Completed&&(t||r());break;default:r()}this.B&&(clearTimeout(this.B),this.B=void 0),L.Proceeding,e===L.Completed&&(this.D=setTimeout(()=>this.timerD(),pt.TIMER_D)),e===L.Accepted&&(this.M=setTimeout(()=>this.timerM(),pt.TIMER_M)),e===L.Terminated&&this.dispose(),this.setState(e)}timerA(){}timerB(){this.logger.debug(`Timer B expired for INVITE client transaction ${this.id}.`),this.state===L.Calling&&(this.onRequestTimeout(),this.stateTransition(L.Terminated))}timerD(){this.logger.debug(`Timer D expired for INVITE client transaction ${this.id}.`),this.state===L.Completed&&this.stateTransition(L.Terminated)}timerM(){this.logger.debug(`Timer M expired for INVITE client transaction ${this.id}.`),this.state===L.Accepted&&this.stateTransition(L.Terminated)}},Vt=class Tc{constructor(t,r,n,s){this.transactionConstructor=t,this.core=r,this.message=n,this.delegate=s,this.challenged=!1,this.stale=!1,this.logger=this.loggerFactory.getLogger("sip.user-agent-client"),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}cancel(t,r={}){if(!this.transaction)throw new Error("Transaction undefined.");if(!this.message.to)throw new Error("To undefined.");if(!this.message.from)throw new Error("From undefined.");const n=this.core.makeOutgoingRequestMessage(he.CANCEL,this.message.ruri,this.message.from.uri,this.message.to.uri,{toTag:this.message.toTag,fromTag:this.message.fromTag,callId:this.message.callId,cseq:this.message.cseq},r.extraHeaders);return n.branch=this.message.branch,this.message.headers.Route&&(n.headers.Route=this.message.headers.Route),t&&n.setHeader("Reason",t),this.transaction.state===L.Proceeding?new Tc(Ft,this.core,n):this.transaction.addStateChangeListener(()=>{this.transaction&&this.transaction.state===L.Proceeding&&new Tc(Ft,this.core,n)},{once:!0}),n}authenticationGuard(t,r){const n=t.statusCode;if(!n)throw new Error("Response status code undefined.");if(n!==401&&n!==407)return!0;let s,i;if(n===401?(s=t.parseHeader("www-authenticate"),i="authorization"):(s=t.parseHeader("proxy-authenticate"),i="proxy-authorization"),!s)return this.logger.warn(n+" with wrong or missing challenge, cannot authenticate"),!0;if(this.challenged&&(this.stale||s.stale!==!0))return this.logger.warn(n+" apparently in authentication loop, cannot authenticate"),!0;if(!this.credentials&&(this.credentials=this.core.configuration.authenticationFactory(),!this.credentials))return this.logger.warn("Unable to obtain credentials, cannot authenticate"),!0;if(!this.credentials.authenticate(this.message,s))return!0;this.challenged=!0,s.stale&&(this.stale=!0);let o=this.message.cseq+=1;return r&&r.localSequenceNumber&&(r.incrementLocalSequenceNumber(),o=this.message.cseq=r.localSequenceNumber),this.message.setHeader("cseq",o+" "+this.message.method),this.message.setHeader(i,this.credentials.toString()),this.init(),!1}onRequestTimeout(){this.logger.warn("User agent client request timed out. Generating internal 408 Request Timeout.");const t=new fn;t.statusCode=408,t.reasonPhrase="Request Timeout",this.receiveResponse(t)}onTransportError(t){this.logger.error(t.message),this.logger.error("User agent client request transport error. Generating internal 503 Service Unavailable.");const r=new fn;r.statusCode=503,r.reasonPhrase="Service Unavailable",this.receiveResponse(r)}receiveResponse(t){if(!this.authenticationGuard(t))return;const r=t.statusCode?t.statusCode.toString():"";if(!r)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(r):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:t});break;case/^1[0-9]{2}$/.test(r):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:t});break;case/^2[0-9]{2}$/.test(r):this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:t});break;case/^3[0-9]{2}$/.test(r):this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:t});break;case/^[4-6][0-9]{2}$/.test(r):this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:t});break;default:throw new Error(`Invalid status code ${r}`)}}init(){const t={loggerFactory:this.loggerFactory,onRequestTimeout:()=>this.onRequestTimeout(),onStateChange:s=>{s===L.Terminated&&(this.core.userAgentClients.delete(n),r===this._transaction&&this.dispose())},onTransportError:s=>this.onTransportError(s),receiveResponse:s=>this.receiveResponse(s)},r=new this.transactionConstructor(this.message,this.core.transport,t);this._transaction=r;const n=r.id+r.request.method;this.core.userAgentClients.set(n,this)}},O0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(he.BYE,r);super(Ft,e.userAgentCore,n,t),e.dispose()}},jt=class extends $f{constructor(e,t,r){super(e,t,r,L.Trying,"sip.transaction.nist")}dispose(){this.J&&(clearTimeout(this.J),this.J=void 0),super.dispose()}get kind(){return"nist"}receiveRequest(e){switch(this.state){case L.Trying:break;case L.Proceeding:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(t=>{this.logTransportError(t,"Failed to send retransmission of provisional response.")});break;case L.Completed:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(t=>{this.logTransportError(t,"Failed to send retransmission of final response.")});break;case L.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);if(e>100&&e<=199)throw new Error("Provisional response other than 100 not allowed.");switch(this.state){case L.Trying:if(this.lastResponse=t,e>=100&&e<200){this.stateTransition(L.Proceeding),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send provisional response.")});return}if(e>=200&&e<=699){this.stateTransition(L.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send final response.")});return}break;case L.Proceeding:if(this.lastResponse=t,e>=200&&e<=699){this.stateTransition(L.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send final response.")});return}break;case L.Completed:return;case L.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`Non-INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(r),new Error(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(L.Terminated,!0)}typeToString(){return"non-INVITE server transaction"}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case L.Trying:r();break;case L.Proceeding:this.state!==L.Trying&&r();break;case L.Completed:this.state!==L.Trying&&this.state!==L.Proceeding&&r();break;case L.Terminated:this.state!==L.Proceeding&&this.state!==L.Completed&&(t||r());break;default:r()}e===L.Completed&&(this.J=setTimeout(()=>this.timerJ(),pt.TIMER_J)),e===L.Terminated&&this.dispose(),this.setState(e)}timerJ(){this.logger.debug(`Timer J expired for NON-INVITE server transaction ${this.id}.`),this.state===L.Completed&&this.stateTransition(L.Terminated)}},Er=class{constructor(e,t,r,n){this.transactionConstructor=e,this.core=t,this.message=r,this.delegate=n,this.logger=this.loggerFactory.getLogger("sip.user-agent-server"),this.toTag=r.toTag?r.toTag:mo(),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}accept(e={statusCode:200}){if(!this.acceptable)throw new pn(`${this.message.method} not acceptable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<200||t>299)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}progress(e={statusCode:180}){if(!this.progressable)throw new pn(`${this.message.method} not progressable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<101||t>199)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}redirect(e,t={statusCode:302}){if(!this.redirectable)throw new pn(`${this.message.method} not redirectable in state ${this.transaction.state}.`);const r=t.statusCode;if(r<300||r>399)throw new TypeError(`Invalid statusCode: ${r}`);const n=new Array;return e.forEach(s=>n.push(`Contact: ${s.toString()}`)),t.extraHeaders=(t.extraHeaders||[]).concat(n),this.reply(t)}reject(e={statusCode:480}){if(!this.rejectable)throw new pn(`${this.message.method} not rejectable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<400||t>699)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}trying(e){if(!this.tryingable)throw new pn(`${this.message.method} not tryingable in state ${this.transaction.state}.`);return this.reply({statusCode:100})}receiveCancel(e){this.delegate&&this.delegate.onCancel&&this.delegate.onCancel(e)}get acceptable(){if(this.transaction instanceof qt)return this.transaction.state===L.Proceeding||this.transaction.state===L.Accepted;if(this.transaction instanceof jt)return this.transaction.state===L.Trying||this.transaction.state===L.Proceeding;throw new Error("Unknown transaction type.")}get progressable(){if(this.transaction instanceof qt)return this.transaction.state===L.Proceeding;if(this.transaction instanceof jt)return!1;throw new Error("Unknown transaction type.")}get redirectable(){if(this.transaction instanceof qt)return this.transaction.state===L.Proceeding;if(this.transaction instanceof jt)return this.transaction.state===L.Trying||this.transaction.state===L.Proceeding;throw new Error("Unknown transaction type.")}get rejectable(){if(this.transaction instanceof qt)return this.transaction.state===L.Proceeding;if(this.transaction instanceof jt)return this.transaction.state===L.Trying||this.transaction.state===L.Proceeding;throw new Error("Unknown transaction type.")}get tryingable(){if(this.transaction instanceof qt)return this.transaction.state===L.Proceeding;if(this.transaction instanceof jt)return this.transaction.state===L.Trying;throw new Error("Unknown transaction type.")}reply(e){!e.toTag&&e.statusCode!==100&&(e.toTag=this.toTag),e.userAgent=e.userAgent||this.core.configuration.userAgentHeaderFieldValue,e.supported=e.supported||this.core.configuration.supportedOptionTagsResponse;const t=kf(this.message,e);return this.transaction.receiveResponse(e.statusCode,t.message),t}init(){const e={loggerFactory:this.loggerFactory,onStateChange:n=>{n===L.Terminated&&(this.core.userAgentServers.delete(r),this.dispose())},onTransportError:n=>{this.logger.error(n.message),this.delegate&&this.delegate.onTransportError?this.delegate.onTransportError(n):this.logger.error("User agent server response transport error.")}},t=new this.transactionConstructor(this.message,this.core.transport,e);this._transaction=t;const r=t.id;this.core.userAgentServers.set(t.id,this)}},H0=class extends Er{constructor(e,t,r){super(jt,e.userAgentCore,t,r)}},M0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(he.INFO,r);super(Ft,e.userAgentCore,n,t)}},q0=class extends Er{constructor(e,t,r){super(jt,e.userAgentCore,t,r)}},Df=class extends Vt{constructor(e,t,r){super(Ft,e,t,r)}},Of=class extends Er{constructor(e,t,r){super(jt,e,t,r)}},N0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(he.NOTIFY,r);super(Ft,e.userAgentCore,n,t)}};function B0(e){return e.userAgentCore!==void 0}var _o=class extends Er{constructor(e,t,r){const n=B0(e)?e.userAgentCore:e;super(jt,n,t,r)}},L0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(he.PRACK,r);super(Ft,e.userAgentCore,n,t),e.signalingStateTransition(n)}},F0=class extends Er{constructor(e,t,r){super(jt,e.userAgentCore,t,r),e.signalingStateTransition(t),this.dialog=e}accept(e={statusCode:200}){return e.body&&this.dialog.signalingStateTransition(e.body),super.accept(e)}},V0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(he.INVITE,r);super(mn,e.userAgentCore,n,t),this.delegate=t,e.signalingStateTransition(n),e.reinviteUserAgentClient=this,this.dialog=e}receiveResponse(e){if(!this.authenticationGuard(e,this.dialog))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});break;case/^1[0-9]{2}$/.test(t):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:this.dialog,prack:r=>{throw new Error("Unimplemented.")}});break;case/^2[0-9]{2}$/.test(t):this.dialog.signalingStateTransition(e),this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:e,session:this.dialog,ack:r=>this.dialog.ack(r)});break;case/^3[0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});break;case/^[4-6][0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});break;default:throw new Error(`Invalid status code ${t}`)}}},j0=class extends Er{constructor(e,t,r){super(qt,e.userAgentCore,t,r),e.reinviteUserAgentServer=this,this.dialog=e}accept(e={statusCode:200}){e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(this.dialog.routeSet.map(s=>`Record-Route: ${s}`));const t=super.accept(e),r=this.dialog,n=Object.assign(Object.assign({},t),{session:r});return e.body&&this.dialog.signalingStateTransition(e.body),this.dialog.reConfirm(),n}progress(e={statusCode:180}){const t=super.progress(e),r=this.dialog,n=Object.assign(Object.assign({},t),{session:r});return e.body&&this.dialog.signalingStateTransition(e.body),n}redirect(e,t={statusCode:302}){throw this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,new Error("Unimplemented.")}reject(e={statusCode:488}){return this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,super.reject(e)}},U0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(he.REFER,r);super(Ft,e.userAgentCore,n,t)}};function z0(e){return e.userAgentCore!==void 0}var Hf=class extends Er{constructor(e,t,r){const n=z0(e)?e.userAgentCore:e;super(jt,n,t,r)}},So=class extends ws{constructor(e,t,r,n){super(t,r),this.initialTransaction=e,this._signalingState=fe.Initial,this.ackWait=!1,this.ackProcessing=!1,this.delegate=n,e instanceof qt&&(this.ackWait=!0),this.early||this.start2xxRetransmissionTimer(),this.signalingStateTransition(e.request),this.logger=t.loggerFactory.getLogger("sip.invite-dialog"),this.logger.log(`INVITE dialog ${this.id} constructed`)}dispose(){super.dispose(),this._signalingState=fe.Closed,this._offer=void 0,this._answer=void 0,this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.logger.log(`INVITE dialog ${this.id} destroyed`)}get sessionState(){return this.early?ir.Early:this.ackWait?ir.AckWait:this._signalingState===fe.Closed?ir.Terminated:ir.Confirmed}get signalingState(){return this._signalingState}get offer(){return this._offer}get answer(){return this._answer}confirm(){this.early&&this.start2xxRetransmissionTimer(),super.confirm()}reConfirm(){this.reinviteUserAgentServer&&this.startReInvite2xxRetransmissionTimer()}ack(e={}){this.logger.log(`INVITE dialog ${this.id} sending ACK request`);let t;if(this.reinviteUserAgentClient){if(!(this.reinviteUserAgentClient.transaction instanceof mn))throw new Error("Transaction not instance of InviteClientTransaction.");t=this.reinviteUserAgentClient.transaction,this.reinviteUserAgentClient=void 0}else{if(!(this.initialTransaction instanceof mn))throw new Error("Initial transaction not instance of InviteClientTransaction.");t=this.initialTransaction}const r=this.createOutgoingRequestMessage(he.ACK,{cseq:t.request.cseq,extraHeaders:e.extraHeaders,body:e.body});return t.ackResponse(r),this.signalingStateTransition(r),{message:r}}bye(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending BYE request`),this.initialTransaction instanceof qt){if(this.early)throw new Error("UAS MUST NOT send a BYE on early dialogs.");if(this.ackWait&&this.initialTransaction.state!==L.Terminated)throw new Error("UAS MUST NOT send a BYE on a confirmed dialog until it has received an ACK for its 2xx response or until the server transaction times out.")}return new O0(this,e,t)}info(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INFO request`),this.early)throw new Error("Dialog not confirmed.");return new M0(this,e,t)}invite(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INVITE request`),this.early)throw new Error("Dialog not confirmed.");if(this.reinviteUserAgentClient)throw new Error("There is an ongoing re-INVITE client transaction.");if(this.reinviteUserAgentServer)throw new Error("There is an ongoing re-INVITE server transaction.");return new V0(this,e,t)}message(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending MESSAGE request`),this.early)throw new Error("Dialog not confirmed.");const r=this.createOutgoingRequestMessage(he.MESSAGE,t);return new Df(this.core,r,e)}notify(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending NOTIFY request`),this.early)throw new Error("Dialog not confirmed.");return new N0(this,e,t)}prack(e,t){return this.logger.log(`INVITE dialog ${this.id} sending PRACK request`),new L0(this,e,t)}refer(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending REFER request`),this.early)throw new Error("Dialog not confirmed.");return new U0(this,e,t)}receiveRequest(e){if(this.logger.log(`INVITE dialog ${this.id} received ${e.method} request`),e.method===he.ACK){if(this.ackWait){if(this.initialTransaction instanceof mn){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}if(this.initialTransaction.request.cseq!==e.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}this.ackWait=!1}else{if(!this.reinviteUserAgentServer){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}if(this.reinviteUserAgentServer.transaction.request.cseq!==e.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}this.reinviteUserAgentServer=void 0}if(this.signalingStateTransition(e),this.delegate&&this.delegate.onAck){const t=this.delegate.onAck({message:e});t instanceof Promise&&(this.ackProcessing=!0,t.then(()=>this.ackProcessing=!1).catch(()=>this.ackProcessing=!1))}return}if(!this.sequenceGuard(e)){this.logger.log(`INVITE dialog ${this.id} rejected out of order ${e.method} request.`);return}if(super.receiveRequest(e),e.method===he.INVITE){const t=()=>{const n=this.ackWait?"waiting for initial ACK":"processing initial ACK";this.logger.warn(`INVITE dialog ${this.id} received re-INVITE while ${n}`);let s="RFC 5407 suggests the following to avoid this race condition... ";s+=" Note: Implementation issues are outside the scope of this document,",s+=" but the following tip is provided for avoiding race conditions of",s+=" this type. The caller can delay sending re-INVITE F6 for some period",s+=" of time (2 seconds, perhaps), after which the caller can reasonably",s+=" assume that its ACK has been received. Implementors can decouple the",s+=" actions of the user (e.g., pressing the hold button) from the actions",s+=" of the protocol (the sending of re-INVITE F6), so that the UA can",s+=" behave like this. In this case, it is the implementor's choice as to",s+=" how long to wait. In most cases, such an implementation may be",s+=" useful to prevent the type of race condition shown in this section.",s+=" This document expresses no preference about whether or not they",s+=" should wait for an ACK to be delivered. After considering the impact",s+=" on user experience, implementors should decide whether or not to wait",s+=" for a while, because the user experience depends on the",s+=" implementation and has no direct bearing on protocol behavior.",this.logger.warn(s)},r=[`Retry-After: ${Math.floor(Math.random()*10)+1}`];if(this.ackProcessing){this.core.replyStateless(e,{statusCode:500,extraHeaders:r}),t();return}if(this.ackWait&&this.signalingState!==fe.Stable){this.core.replyStateless(e,{statusCode:500,extraHeaders:r}),t();return}if(this.reinviteUserAgentServer){this.core.replyStateless(e,{statusCode:500,extraHeaders:r});return}if(this.reinviteUserAgentClient){this.core.replyStateless(e,{statusCode:491});return}}if(e.method===he.INVITE){const t=e.parseHeader("contact");if(!t)throw new Error("Contact undefined.");if(!(t instanceof sr))throw new Error("Contact not instance of NameAddrHeader.");this.dialogState.remoteTarget=t.uri}switch(e.method){case he.BYE:{const t=new H0(this,e);this.delegate&&this.delegate.onBye?this.delegate.onBye(t):t.accept(),this.dispose()}break;case he.INFO:{const t=new q0(this,e);this.delegate&&this.delegate.onInfo?this.delegate.onInfo(t):t.reject({statusCode:469,extraHeaders:["Recv-Info:"]})}break;case he.INVITE:{const t=new j0(this,e);this.signalingStateTransition(e),this.delegate&&this.delegate.onInvite?this.delegate.onInvite(t):t.reject({statusCode:488})}break;case he.MESSAGE:{const t=new Of(this.core,e);this.delegate&&this.delegate.onMessage?this.delegate.onMessage(t):t.accept()}break;case he.NOTIFY:{const t=new _o(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(t):t.accept()}break;case he.PRACK:{const t=new F0(this,e);this.delegate&&this.delegate.onPrack?this.delegate.onPrack(t):t.accept()}break;case he.REFER:{const t=new Hf(this,e);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(t):t.reject()}break;default:this.logger.log(`INVITE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501});break}}reliableSequenceGuard(e){const t=e.statusCode;if(!t)throw new Error("Status code undefined");if(t>100&&t<200){const r=e.getHeader("require"),n=e.getHeader("rseq"),s=r&&r.includes("100rel")&&n?Number(n):void 0;if(s){if(this.rseq&&this.rseq+1!==s)return!1;this.rseq=this.rseq?this.rseq+1:s}}return!0}signalingStateRollback(){(this._signalingState===fe.HaveLocalOffer||this.signalingState===fe.HaveRemoteOffer)&&this._rollbackOffer&&this._rollbackAnswer&&(this._signalingState=fe.Stable,this._offer=this._rollbackOffer,this._answer=this._rollbackAnswer)}signalingStateTransition(e){const t=ci(e);if(!(!t||t.contentDisposition!=="session")){if(this._signalingState===fe.Stable&&(this._rollbackOffer=this._offer,this._rollbackAnswer=this._answer),e instanceof ms)switch(this._signalingState){case fe.Initial:case fe.Stable:this._signalingState=fe.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case fe.HaveLocalOffer:this._signalingState=fe.Stable,this._answer=t;break;case fe.HaveRemoteOffer:break;case fe.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof fn)switch(this._signalingState){case fe.Initial:case fe.Stable:this._signalingState=fe.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case fe.HaveLocalOffer:this._signalingState=fe.Stable,this._answer=t;break;case fe.HaveRemoteOffer:break;case fe.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof hl)switch(this._signalingState){case fe.Initial:case fe.Stable:this._signalingState=fe.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case fe.HaveLocalOffer:break;case fe.HaveRemoteOffer:this._signalingState=fe.Stable,this._answer=t;break;case fe.Closed:break;default:throw new Error("Unexpected signaling state.")}if(Ef(e))switch(this._signalingState){case fe.Initial:case fe.Stable:this._signalingState=fe.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case fe.HaveLocalOffer:break;case fe.HaveRemoteOffer:this._signalingState=fe.Stable,this._answer=t;break;case fe.Closed:break;default:throw new Error("Unexpected signaling state.")}}}start2xxRetransmissionTimer(){if(this.initialTransaction instanceof qt){const e=this.initialTransaction;let t=pt.T1;const r=()=>{if(!this.ackWait){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(t*2,pt.T2),this.invite2xxTimer=setTimeout(r,t)};this.invite2xxTimer=setTimeout(r,t);const n=()=>{e.state===L.Terminated&&(e.removeStateChangeListener(n),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.ackWait&&(this.delegate&&this.delegate.onAckTimeout?this.delegate.onAckTimeout():this.bye()))};e.addStateChangeListener(n)}}startReInvite2xxRetransmissionTimer(){if(this.reinviteUserAgentServer&&this.reinviteUserAgentServer.transaction instanceof qt){const e=this.reinviteUserAgentServer.transaction;let t=pt.T1;const r=()=>{if(!this.reinviteUserAgentServer){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(t*2,pt.T2),this.invite2xxTimer=setTimeout(r,t)};this.invite2xxTimer=setTimeout(r,t);const n=()=>{e.state===L.Terminated&&(e.removeStateChangeListener(n),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.reinviteUserAgentServer)};e.addStateChangeListener(n)}}},K0=class extends Vt{constructor(e,t,r){super(mn,e,t,r),this.confirmedDialogAcks=new Map,this.confirmedDialogs=new Map,this.earlyDialogs=new Map,this.delegate=r}dispose(){this.earlyDialogs.forEach(e=>e.dispose()),this.earlyDialogs.clear(),super.dispose()}onTransportError(e){if(this.transaction.state===L.Calling)return super.onTransportError(e);this.logger.error(e.message),this.logger.error("User agent client request transport error while sending ACK.")}receiveResponse(e){if(!this.authenticationGuard(e))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});return;case/^1[0-9]{2}$/.test(t):{if(!e.toTag){this.logger.warn("Non-100 1xx INVITE response received without a to tag, dropping.");return}if(!e.parseHeader("contact")){this.logger.error("Non-100 1xx INVITE response received without a Contact header field, dropping.");return}const r=ws.initialDialogStateForUserAgentClient(this.message,e);let n=this.earlyDialogs.get(r.id);if(!n){const i=this.transaction;if(!(i instanceof mn))throw new Error("Transaction not instance of InviteClientTransaction.");n=new So(i,this.core,r),this.earlyDialogs.set(n.id,n)}if(!n.reliableSequenceGuard(e)){this.logger.warn("1xx INVITE reliable response received out of order or is a retransmission, dropping.");return}(n.signalingState===fe.Initial||n.signalingState===fe.HaveLocalOffer)&&n.signalingStateTransition(e);const s=n;this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:s,prack:i=>s.prack(void 0,i)})}return;case/^2[0-9]{2}$/.test(t):{if(!e.toTag){this.logger.error("2xx INVITE response received without a to tag, dropping.");return}if(!e.parseHeader("contact")){this.logger.error("2xx INVITE response received without a Contact header field, dropping.");return}const r=ws.initialDialogStateForUserAgentClient(this.message,e);let n=this.confirmedDialogs.get(r.id);if(n){const i=this.confirmedDialogAcks.get(r.id);if(i){const o=this.transaction;if(!(o instanceof mn))throw new Error("Client transaction not instance of InviteClientTransaction.");o.ackResponse(i.message)}return}if(n=this.earlyDialogs.get(r.id),n)n.confirm(),n.recomputeRouteSet(e),this.earlyDialogs.delete(n.id),this.confirmedDialogs.set(n.id,n);else{const i=this.transaction;if(!(i instanceof mn))throw new Error("Transaction not instance of InviteClientTransaction.");n=new So(i,this.core,r),this.confirmedDialogs.set(n.id,n)}(n.signalingState===fe.Initial||n.signalingState===fe.HaveLocalOffer)&&n.signalingStateTransition(e);const s=n;if(this.delegate&&this.delegate.onAccept)this.delegate.onAccept({message:e,session:s,ack:i=>{const o=s.ack(i);return this.confirmedDialogAcks.set(s.id,o),o}});else{const i=s.ack();this.confirmedDialogAcks.set(s.id,i)}}return;case/^3[0-9]{2}$/.test(t):this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});return;case/^[4-6][0-9]{2}$/.test(t):this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});return;default:throw new Error(`Invalid status code ${t}`)}throw new Error(`Executing what should be an unreachable code path receiving ${t} response.`)}},_l=class extends Er{constructor(e,t,r){super(qt,e,t,r),this.core=e}dispose(){this.earlyDialog&&this.earlyDialog.dispose(),super.dispose()}accept(e={statusCode:200}){if(!this.acceptable)throw new pn(`${this.message.method} not acceptable in state ${this.transaction.state}.`);if(!this.confirmedDialog)if(this.earlyDialog)this.earlyDialog.confirm(),this.confirmedDialog=this.earlyDialog,this.earlyDialog=void 0;else{const a=this.transaction;if(!(a instanceof qt))throw new Error("Transaction not instance of InviteClientTransaction.");const l=ws.initialDialogStateForUserAgentServer(this.message,this.toTag);this.confirmedDialog=new So(a,this.core,l)}const t=this.message.getHeaders("record-route").map(a=>`Record-Route: ${a}`),r=`Contact: ${this.core.configuration.contact.toString()}`,n="Allow: "+hn.toString();if(!e.body){if(this.confirmedDialog.signalingState===fe.Stable)e.body=this.confirmedDialog.answer;else if(this.confirmedDialog.signalingState===fe.Initial||this.confirmedDialog.signalingState===fe.HaveRemoteOffer)throw new Error("Response must have a body.")}e.statusCode=e.statusCode||200,e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(n),e.extraHeaders.push(r);const s=super.accept(e),i=this.confirmedDialog,o=Object.assign(Object.assign({},s),{session:i});return e.body&&this.confirmedDialog.signalingState!==fe.Stable&&this.confirmedDialog.signalingStateTransition(e.body),o}progress(e={statusCode:180}){if(!this.progressable)throw new pn(`${this.message.method} not progressable in state ${this.transaction.state}.`);if(!this.earlyDialog){const o=this.transaction;if(!(o instanceof qt))throw new Error("Transaction not instance of InviteClientTransaction.");const a=ws.initialDialogStateForUserAgentServer(this.message,this.toTag,!0);this.earlyDialog=new So(o,this.core,a)}const t=this.message.getHeaders("record-route").map(o=>`Record-Route: ${o}`),r=`Contact: ${this.core.configuration.contact}`;e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(r);const n=super.progress(e),s=this.earlyDialog,i=Object.assign(Object.assign({},n),{session:s});return e.body&&this.earlyDialog.signalingState!==fe.Stable&&this.earlyDialog.signalingStateTransition(e.body),i}redirect(e,t={statusCode:302}){return super.redirect(e,t)}reject(e={statusCode:486}){return super.reject(e)}},W0=class extends Vt{constructor(e,t,r){super(Ft,e,t,r)}},G0=class extends Vt{constructor(e,t,r){super(Ft,e,t,r)}},J0=class extends Er{constructor(e,t,r){super(jt,e,t,r),this.core=e}},Y0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(he.SUBSCRIBE,r);super(Ft,e.userAgentCore,n,t),this.dialog=e}waitNotifyStop(){}receiveResponse(e){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){const t=e.getHeader("Expires");if(!t)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const r=Number(t);this.dialog.subscriptionExpires>r&&(this.dialog.subscriptionExpires=r)}}e.statusCode&&e.statusCode>=400&&e.statusCode<700&&[404,405,410,416,480,481,482,483,484,485,489,501,604].includes(e.statusCode)&&this.dialog.terminate(),super.receiveResponse(e)}},Mf=class extends ws{constructor(e,t,r,n,s,i){super(n,s),this.delegate=i,this._autoRefresh=!1,this._subscriptionEvent=e,this._subscriptionExpires=t,this._subscriptionExpiresInitial=t,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this._subscriptionState=r,this.logger=n.loggerFactory.getLogger("sip.subscribe-dialog"),this.logger.log(`SUBSCRIBE dialog ${this.id} constructed`)}static initialDialogStateForSubscription(e,t){const n=t.getHeaders("record-route"),s=t.parseHeader("contact");if(!s)throw new Error("Contact undefined.");if(!(s instanceof sr))throw new Error("Contact not instance of NameAddrHeader.");const i=s.uri,o=e.cseq,a=void 0,l=e.callId,c=e.fromTag,u=t.fromTag;if(!l)throw new Error("Call id undefined.");if(!c)throw new Error("From tag undefined.");if(!u)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");const d=e.from.uri,p=e.to.uri;return{id:l+c+u,early:!1,callId:l,localTag:c,remoteTag:u,localSequenceNumber:o,remoteSequenceNumber:a,localURI:d,remoteURI:p,remoteTarget:i,routeSet:n,secure:!1}}dispose(){super.dispose(),this.N&&(clearTimeout(this.N),this.N=void 0),this.refreshTimerClear(),this.logger.log(`SUBSCRIBE dialog ${this.id} destroyed`)}get autoRefresh(){return this._autoRefresh}set autoRefresh(e){this._autoRefresh=!0,this.refreshTimerSet()}get subscriptionEvent(){return this._subscriptionEvent}get subscriptionExpires(){const e=Math.floor(Date.now()/1e3)-this._subscriptionExpiresLastSet,t=this._subscriptionExpires-e;return Math.max(t,0)}set subscriptionExpires(e){if(e<0)throw new Error("Expires must be greater than or equal to zero.");if(this._subscriptionExpires=e,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this.autoRefresh){const t=this.subscriptionRefresh;(t===void 0||t>=e)&&this.refreshTimerSet()}}get subscriptionExpiresInitial(){return this._subscriptionExpiresInitial}get subscriptionRefresh(){if(this._subscriptionRefresh===void 0||this._subscriptionRefreshLastSet===void 0)return;const e=Math.floor(Date.now()/1e3)-this._subscriptionRefreshLastSet,t=this._subscriptionRefresh-e;return Math.max(t,0)}get subscriptionState(){return this._subscriptionState}receiveRequest(e){if(this.logger.log(`SUBSCRIBE dialog ${this.id} received ${e.method} request`),!this.sequenceGuard(e)){this.logger.log(`SUBSCRIBE dialog ${this.id} rejected out of order ${e.method} request.`);return}super.receiveRequest(e),e.method===he.NOTIFY?this.onNotify(e):(this.logger.log(`SUBSCRIBE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501}))}refresh(){const e="Allow: "+hn.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: "+this.subscriptionExpiresInitial),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}subscribe(e,t={}){var r;if(this.subscriptionState!==je.Pending&&this.subscriptionState!==je.Active)throw new Error(`Invalid state ${this.subscriptionState}. May only re-subscribe while in state "pending" or "active".`);this.logger.log(`SUBSCRIBE dialog ${this.id} sending SUBSCRIBE request`);const n=new Y0(this,e,t);return this.N&&(clearTimeout(this.N),this.N=void 0),!((r=t.extraHeaders)===null||r===void 0)&&r.includes("Expires: 0")||(this.N=setTimeout(()=>this.timerN(),pt.TIMER_N)),n}terminate(){this.stateTransition(je.Terminated),this.onTerminated()}unsubscribe(){const e="Allow: "+hn.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: 0"),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}onNotify(e){const t=e.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent){this.core.replyStateless(e,{statusCode:489});return}this.N&&(clearTimeout(this.N),this.N=void 0);const r=e.parseHeader("Subscription-State");if(!r||!r.state){this.core.replyStateless(e,{statusCode:489});return}const n=r.state,s=r.expires?Math.max(r.expires,0):void 0;switch(n){case"pending":this.stateTransition(je.Pending,s);break;case"active":this.stateTransition(je.Active,s);break;case"terminated":this.stateTransition(je.Terminated,s);break;default:this.logger.warn("Unrecognized subscription state.");break}const i=new _o(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(i):i.accept()}onRefresh(e){this.delegate&&this.delegate.onRefresh&&this.delegate.onRefresh(e)}onTerminated(){this.delegate&&this.delegate.onTerminated&&this.delegate.onTerminated()}refreshTimerClear(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0)}refreshTimerSet(){if(this.refreshTimerClear(),this.autoRefresh&&this.subscriptionExpires>0){const e=this.subscriptionExpires*900;this._subscriptionRefresh=Math.floor(e/1e3),this._subscriptionRefreshLastSet=Math.floor(Date.now()/1e3),this.refreshTimer=setTimeout(()=>{this.refreshTimer=void 0,this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this.onRefresh(this.refresh())},e)}}stateTransition(e,t){const r=()=>{this.logger.warn(`Invalid subscription state transition from ${this.subscriptionState} to ${e}`)};switch(e){case je.Initial:r();return;case je.NotifyWait:r();return;case je.Pending:if(this.subscriptionState!==je.NotifyWait&&this.subscriptionState!==je.Pending){r();return}break;case je.Active:if(this.subscriptionState!==je.NotifyWait&&this.subscriptionState!==je.Pending&&this.subscriptionState!==je.Active){r();return}break;case je.Terminated:if(this.subscriptionState!==je.NotifyWait&&this.subscriptionState!==je.Pending&&this.subscriptionState!==je.Active){r();return}break;default:r();return}e===je.Pending&&t&&(this.subscriptionExpires=t),e===je.Active&&t&&(this.subscriptionExpires=t),e===je.Terminated&&this.dispose(),this._subscriptionState=e}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE dialog. Timed out waiting for NOTIFY."),this.subscriptionState!==je.Terminated&&(this.stateTransition(je.Terminated),this.onTerminated())}},Z0=class extends Vt{constructor(e,t,r){const n=t.getHeader("Event");if(!n)throw new Error("Event undefined");const s=t.getHeader("Expires");if(!s)throw new Error("Expires undefined");super(Ft,e,t,r),this.delegate=r,this.subscriberId=t.callId+t.fromTag+n,this.subscriptionExpiresRequested=this.subscriptionExpires=Number(s),this.subscriptionEvent=n,this.subscriptionState=je.NotifyWait,this.waitNotifyStart()}dispose(){super.dispose()}onNotify(e){const t=e.message.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent){this.logger.warn("Failed to parse event."),e.reject({statusCode:489});return}const r=e.message.parseHeader("Subscription-State");if(!r||!r.state){this.logger.warn("Failed to parse subscription state."),e.reject({statusCode:489});return}const n=r.state;switch(n){case"pending":break;case"active":break;case"terminated":break;default:this.logger.warn(`Invalid subscription state ${n}`),e.reject({statusCode:489});return}if(n!=="terminated"&&!e.message.parseHeader("contact")){this.logger.warn("Failed to parse contact."),e.reject({statusCode:489});return}if(this.dialog)throw new Error("Dialog already created. This implementation only supports install of single subscriptions.");switch(this.waitNotifyStop(),this.subscriptionExpires=r.expires?Math.min(this.subscriptionExpires,Math.max(r.expires,0)):this.subscriptionExpires,n){case"pending":this.subscriptionState=je.Pending;break;case"active":this.subscriptionState=je.Active;break;case"terminated":this.subscriptionState=je.Terminated;break;default:throw new Error(`Unrecognized state ${n}.`)}if(this.subscriptionState!==je.Terminated){const s=Mf.initialDialogStateForSubscription(this.message,e.message);this.dialog=new Mf(this.subscriptionEvent,this.subscriptionExpires,this.subscriptionState,this.core,s)}if(this.delegate&&this.delegate.onNotify){const s=e,i=this.dialog;this.delegate.onNotify({request:s,subscription:i})}else e.accept()}waitNotifyStart(){this.N||(this.core.subscribers.set(this.subscriberId,this),this.N=setTimeout(()=>this.timerN(),pt.TIMER_N))}waitNotifyStop(){this.N&&(this.core.subscribers.delete(this.subscriberId),clearTimeout(this.N),this.N=void 0)}receiveResponse(e){if(this.authenticationGuard(e)){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){const t=e.getHeader("Expires");if(!t)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const r=Number(t);r>this.subscriptionExpiresRequested&&this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),r<this.subscriptionExpires&&(this.subscriptionExpires=r)}this.dialog&&this.dialog.subscriptionExpires>this.subscriptionExpires&&(this.dialog.subscriptionExpires=this.subscriptionExpires)}e.statusCode&&e.statusCode>=300&&e.statusCode<700&&this.waitNotifyStop(),super.receiveResponse(e)}}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE user agent client. Timed out waiting for NOTIFY."),this.waitNotifyStop(),this.delegate&&this.delegate.onNotifyTimeout&&this.delegate.onNotifyTimeout()}},X0=class extends Er{constructor(e,t,r){super(jt,e,t,r),this.core=e}},qf=["application/sdp","application/dtmf-relay"],Q0=class{constructor(e,t={}){this.userAgentClients=new Map,this.userAgentServers=new Map,this.configuration=e,this.delegate=t,this.dialogs=new Map,this.subscribers=new Map,this.logger=e.loggerFactory.getLogger("sip.user-agent-core")}dispose(){this.reset()}reset(){this.dialogs.forEach(e=>e.dispose()),this.dialogs.clear(),this.subscribers.forEach(e=>e.dispose()),this.subscribers.clear(),this.userAgentClients.forEach(e=>e.dispose()),this.userAgentClients.clear(),this.userAgentServers.forEach(e=>e.dispose()),this.userAgentServers.clear()}get loggerFactory(){return this.configuration.loggerFactory}get transport(){const e=this.configuration.transportAccessor();if(!e)throw new Error("Transport undefined.");return e}invite(e,t){return new K0(this,e,t)}message(e,t){return new Df(this,e,t)}publish(e,t){return new W0(this,e,t)}register(e,t){return new G0(this,e,t)}subscribe(e,t){return new Z0(this,e,t)}request(e,t){return new Vt(Ft,this,e,t)}makeOutgoingRequestMessage(e,t,r,n,s,i,o){const a=this.configuration.sipjsId,l=this.configuration.displayName,c=this.configuration.viaForceRport,u=this.configuration.hackViaTcp,d=this.configuration.supportedOptionTags.slice();e===he.REGISTER&&d.push("path","gruu"),e===he.INVITE&&(this.configuration.contact.pubGruu||this.configuration.contact.tempGruu)&&d.push("gruu");const p={callIdPrefix:a,forceRport:c,fromDisplayName:l,hackViaTcp:u,optionTags:d,routeSet:this.configuration.routeSet,userAgentString:this.configuration.userAgentHeaderFieldValue,viaHost:this.configuration.viaHost};return new hl(e,t,r,n,Object.assign(Object.assign({},p),s),i,o)}receiveIncomingRequestFromTransport(e){this.receiveRequestFromTransport(e)}receiveIncomingResponseFromTransport(e){this.receiveResponseFromTransport(e)}replyStateless(e,t){const r=this.configuration.userAgentHeaderFieldValue,n=this.configuration.supportedOptionTagsResponse;t=Object.assign(Object.assign({},t),{userAgent:r,supported:n});const s=kf(e,t);return this.transport.send(s.message).catch(i=>{i instanceof Error&&this.logger.error(i.message),this.logger.error(`Transport error occurred sending stateless reply to ${e.method} request.`)}),s}receiveRequestFromTransport(e){const t=e.viaBranch,r=this.userAgentServers.get(t);if(e.method===he.ACK&&r&&r.transaction.state===L.Accepted&&r instanceof _l){this.logger.warn(`Discarding out of dialog ACK after 2xx response sent on transaction ${t}.`);return}if(e.method===he.CANCEL){r?(this.replyStateless(e,{statusCode:200}),r.transaction instanceof qt&&r.transaction.state===L.Proceeding&&r instanceof _l&&r.receiveCancel(e)):this.replyStateless(e,{statusCode:481});return}if(r){r.transaction.receiveRequest(e);return}this.receiveRequest(e)}receiveRequest(e){if(!hn.includes(e.method)){const n="Allow: "+hn.toString();this.replyStateless(e,{statusCode:405,extraHeaders:[n]});return}if(!e.ruri)throw new Error("Request-URI undefined.");if(e.ruri.scheme!=="sip"){this.replyStateless(e,{statusCode:416});return}const t=e.ruri,r=n=>!!n&&n.user===t.user;if(!r(this.configuration.aor)&&!(r(this.configuration.contact.uri)||r(this.configuration.contact.pubGruu)||r(this.configuration.contact.tempGruu))){this.logger.warn("Request-URI does not point to us."),e.method!==he.ACK&&this.replyStateless(e,{statusCode:404});return}if(e.method===he.INVITE&&!e.hasHeader("Contact")){this.replyStateless(e,{statusCode:400,reasonPhrase:"Missing Contact Header"});return}if(!e.toTag){const n=e.viaBranch;if(!this.userAgentServers.has(n)&&Array.from(this.userAgentServers.values()).some(s=>s.transaction.request.fromTag===e.fromTag&&s.transaction.request.callId===e.callId&&s.transaction.request.cseq===e.cseq)){this.replyStateless(e,{statusCode:482});return}}e.toTag?this.receiveInsideDialogRequest(e):this.receiveOutsideDialogRequest(e)}receiveInsideDialogRequest(e){if(e.method===he.NOTIFY){const n=e.parseHeader("Event");if(!n||!n.event){this.replyStateless(e,{statusCode:489});return}const s=e.callId+e.toTag+n.event,i=this.subscribers.get(s);if(i){const o=new _o(this,e);i.onNotify(o);return}}const t=e.callId+e.toTag+e.fromTag,r=this.dialogs.get(t);if(r){if(e.method===he.OPTIONS){const n="Allow: "+hn.toString(),s="Accept: "+qf.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[n,s]});return}r.receiveRequest(e);return}e.method!==he.ACK&&this.replyStateless(e,{statusCode:481})}receiveOutsideDialogRequest(e){switch(e.method){case he.ACK:break;case he.BYE:this.replyStateless(e,{statusCode:481});break;case he.CANCEL:throw new Error(`Unexpected out of dialog request method ${e.method}.`);case he.INFO:this.replyStateless(e,{statusCode:405});break;case he.INVITE:{const t=new _l(this,e);this.delegate.onInvite?this.delegate.onInvite(t):t.reject()}break;case he.MESSAGE:{const t=new Of(this,e);this.delegate.onMessage?this.delegate.onMessage(t):t.accept()}break;case he.NOTIFY:{const t=new _o(this,e);this.delegate.onNotify?this.delegate.onNotify(t):t.reject({statusCode:405})}break;case he.OPTIONS:{const t="Allow: "+hn.toString(),r="Accept: "+qf.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[t,r]})}break;case he.REFER:{const t=new Hf(this,e);this.delegate.onRefer?this.delegate.onRefer(t):t.reject({statusCode:405})}break;case he.REGISTER:{const t=new J0(this,e);this.delegate.onRegister?this.delegate.onRegister(t):t.reject({statusCode:405})}break;case he.SUBSCRIBE:{const t=new X0(this,e);this.delegate.onSubscribe?this.delegate.onSubscribe(t):t.reject({statusCode:480})}break;default:throw new Error(`Unexpected out of dialog request method ${e.method}.`)}}receiveResponseFromTransport(e){if(e.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response, dropping");return}const t=e.viaBranch+e.method,r=this.userAgentClients.get(t);r?r.transaction.receiveResponse(e):this.logger.warn(`Discarding unmatched ${e.statusCode} response to ${e.method} ${t}.`)}};function ew(){return e=>!e.audio&&!e.video?Promise.resolve(new MediaStream):navigator.mediaDevices===void 0?Promise.reject(new Error("Media devices not available in insecure contexts.")):navigator.mediaDevices.getUserMedia.call(navigator.mediaDevices,e)}function tw(){return{bundlePolicy:"balanced",certificates:void 0,iceCandidatePoolSize:0,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require"}}var rw=class kn{constructor(t,r,n){t.debug("SessionDescriptionHandler.constructor"),this.logger=t,this.mediaStreamFactory=r,this.sessionDescriptionHandlerConfiguration=n,this._localMediaStream=new MediaStream,this._remoteMediaStream=new MediaStream,this._peerConnection=new RTCPeerConnection(n?.peerConnectionConfiguration),this.initPeerConnectionEventHandlers()}get localMediaStream(){return this._localMediaStream}get remoteMediaStream(){return this._remoteMediaStream}get dataChannel(){return this._dataChannel}get peerConnection(){return this._peerConnection}get peerConnectionDelegate(){return this._peerConnectionDelegate}set peerConnectionDelegate(t){this._peerConnectionDelegate=t}static dispatchAddTrackEvent(t,r){t.dispatchEvent(new MediaStreamTrackEvent("addtrack",{track:r}))}static dispatchRemoveTrackEvent(t,r){t.dispatchEvent(new MediaStreamTrackEvent("removetrack",{track:r}))}close(){this.logger.debug("SessionDescriptionHandler.close"),this._peerConnection!==void 0&&(this._peerConnection.getReceivers().forEach(t=>{t.track&&t.track.stop()}),this._peerConnection.getSenders().forEach(t=>{t.track&&t.track.stop()}),this._dataChannel&&this._dataChannel.close(),this._peerConnection.close(),this._peerConnection=void 0)}enableReceiverTracks(t){const r=this.peerConnection;if(!r)throw new Error("Peer connection closed.");r.getReceivers().forEach(n=>{n.track&&(n.track.enabled=t)})}enableSenderTracks(t){const r=this.peerConnection;if(!r)throw new Error("Peer connection closed.");r.getSenders().forEach(n=>{n.track&&(n.track.enabled=t)})}getDescription(t,r){var n,s;if(this.logger.debug("SessionDescriptionHandler.getDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=t?.onDataChannel;const i=(n=t?.offerOptions)===null||n===void 0?void 0:n.iceRestart,o=t?.iceGatheringTimeout===void 0?(s=this.sessionDescriptionHandlerConfiguration)===null||s===void 0?void 0:s.iceGatheringTimeout:t?.iceGatheringTimeout;return this.getLocalMediaStream(t).then(()=>this.updateDirection(t)).then(()=>this.createDataChannel(t)).then(()=>this.createLocalOfferOrAnswer(t)).then(a=>this.applyModifiers(a,r)).then(a=>this.setLocalSessionDescription(a)).then(()=>this.waitForIceGatheringComplete(i,o)).then(()=>this.getLocalSessionDescription()).then(a=>({body:a.sdp,contentType:"application/sdp"})).catch(a=>{throw this.logger.error("SessionDescriptionHandler.getDescription failed - "+a),a})}hasDescription(t){return this.logger.debug("SessionDescriptionHandler.hasDescription"),t==="application/sdp"}iceGatheringComplete(){this.logger.debug("SessionDescriptionHandler.iceGatheringComplete"),this.iceGatheringCompleteTimeoutId!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - clearing timeout"),clearTimeout(this.iceGatheringCompleteTimeoutId),this.iceGatheringCompleteTimeoutId=void 0),this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - resolving promise"),this.iceGatheringCompleteResolve&&this.iceGatheringCompleteResolve(),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0)}sendDtmf(t,r){if(this.logger.debug("SessionDescriptionHandler.sendDtmf"),this._peerConnection===void 0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - peer connection closed"),!1;const n=this._peerConnection.getSenders();if(n.length===0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no senders"),!1;const s=n[0].dtmf;if(!s)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no DTMF sender"),!1;const i=r?.duration,o=r?.interToneGap;try{s.insertDTMF(t,i,o)}catch(a){return this.logger.error(a.toString()),!1}return this.logger.log("SessionDescriptionHandler.sendDtmf sent via RTP: "+t.toString()),!0}setDescription(t,r,n){if(this.logger.debug("SessionDescriptionHandler.setDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=r?.onDataChannel;const s=this._peerConnection.signalingState==="have-local-offer"?"answer":"offer";return this.getLocalMediaStream(r).then(()=>this.applyModifiers({sdp:t,type:s},n)).then(i=>this.setRemoteSessionDescription(i)).catch(i=>{throw this.logger.error("SessionDescriptionHandler.setDescription failed - "+i),i})}applyModifiers(t,r){return this.logger.debug("SessionDescriptionHandler.applyModifiers"),!r||r.length===0?Promise.resolve(t):r.reduce((n,s)=>n.then(s),Promise.resolve(t)).then(n=>{if(this.logger.debug("SessionDescriptionHandler.applyModifiers - modified sdp"),!n.sdp||!n.type)throw new Error("Invalid SDP.");return{sdp:n.sdp,type:n.type}})}createDataChannel(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));if(t?.dataChannel!==!0||this._dataChannel)return Promise.resolve();switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.createDataChannel - creating data channel");try{return this._dataChannel=this._peerConnection.createDataChannel(t?.dataChannelLabel||"",t?.dataChannelOptions),this.onDataChannel&&this.onDataChannel(this._dataChannel),Promise.resolve()}catch(r){return Promise.reject(r)}case"have-remote-offer":return Promise.resolve();default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}createLocalOfferOrAnswer(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP offer"),this._peerConnection.createOffer(t?.offerOptions);case"have-remote-offer":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP answer"),this._peerConnection.createAnswer(t?.answerOptions);default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}getLocalMediaStream(t){if(this.logger.debug("SessionDescriptionHandler.getLocalMediaStream"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));let r=Object.assign({},t?.constraints);if(this.localMediaStreamConstraints){if(r.audio=r.audio||this.localMediaStreamConstraints.audio,r.video=r.video||this.localMediaStreamConstraints.video,JSON.stringify(this.localMediaStreamConstraints.audio)===JSON.stringify(r.audio)&&JSON.stringify(this.localMediaStreamConstraints.video)===JSON.stringify(r.video))return Promise.resolve()}else r.audio===void 0&&r.video===void 0&&(r={audio:!0});return this.localMediaStreamConstraints=r,this.mediaStreamFactory(r,this,t).then(n=>this.setLocalMediaStream(n))}setLocalMediaStream(t){if(this.logger.debug("SessionDescriptionHandler.setLocalMediaStream"),!this._peerConnection)throw new Error("Peer connection undefined.");const r=this._peerConnection,n=this._localMediaStream,s=[],i=l=>{const c=l.kind;if(c!=="audio"&&c!=="video")throw new Error(`Unknown new track kind ${c}.`);const u=r.getSenders().find(d=>d.track&&d.track.kind===c);u?s.push(new Promise(d=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - replacing sender ${c} track`),d()}).then(()=>u.replaceTrack(l).then(()=>{const d=n.getTracks().find(p=>p.kind===c);d&&(d.stop(),n.removeTrack(d),kn.dispatchRemoveTrackEvent(n,d)),n.addTrack(l),kn.dispatchAddTrackEvent(n,l)}).catch(d=>{throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to replace sender ${c} track`),d}))):s.push(new Promise(d=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - adding sender ${c} track`),d()}).then(()=>{try{r.addTrack(l,n)}catch(d){throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to add sender ${c} track`),d}n.addTrack(l),kn.dispatchAddTrackEvent(n,l)}))},o=t.getAudioTracks();o.length&&i(o[0]);const a=t.getVideoTracks();return a.length&&i(a[0]),s.reduce((l,c)=>l.then(()=>c),Promise.resolve())}getLocalSessionDescription(){if(this.logger.debug("SessionDescriptionHandler.getLocalSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const t=this._peerConnection.localDescription;return t?Promise.resolve(t):Promise.reject(new Error("Failed to get local session description"))}setLocalSessionDescription(t){return this.logger.debug("SessionDescriptionHandler.setLocalSessionDescription"),this._peerConnection===void 0?Promise.reject(new Error("Peer connection closed.")):this._peerConnection.setLocalDescription(t)}setRemoteSessionDescription(t){if(this.logger.debug("SessionDescriptionHandler.setRemoteSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const r=t.sdp;let n;switch(this._peerConnection.signalingState){case"stable":n="offer";break;case"have-local-offer":n="answer";break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return r?this._peerConnection.setRemoteDescription({sdp:r,type:n}):(this.logger.error("SessionDescriptionHandler.setRemoteSessionDescription failed - cannot set null sdp"),Promise.reject(new Error("SDP is undefined")))}setRemoteTrack(t){this.logger.debug("SessionDescriptionHandler.setRemoteTrack");const r=this._remoteMediaStream;r.getTrackById(t.id)?this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - have remote ${t.kind} track`):t.kind==="audio"?(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${t.kind} track`),r.getAudioTracks().forEach(n=>{n.stop(),r.removeTrack(n),kn.dispatchRemoveTrackEvent(r,n)}),r.addTrack(t),kn.dispatchAddTrackEvent(r,t)):t.kind==="video"&&(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${t.kind} track`),r.getVideoTracks().forEach(n=>{n.stop(),r.removeTrack(n),kn.dispatchRemoveTrackEvent(r,n)}),r.addTrack(t),kn.dispatchAddTrackEvent(r,t))}updateDirection(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.updateDirection - setting offer direction");{const r=n=>{switch(n){case"inactive":return t?.hold?"inactive":"recvonly";case"recvonly":return t?.hold?"inactive":"recvonly";case"sendonly":return t?.hold?"sendonly":"sendrecv";case"sendrecv":return t?.hold?"sendonly":"sendrecv";case"stopped":return"stopped";default:throw new Error("Should never happen")}};this._peerConnection.getTransceivers().forEach(n=>{if(n.direction){const s=r(n.direction);n.direction!==s&&(n.direction=s)}})}break;case"have-remote-offer":this.logger.debug("SessionDescriptionHandler.updateDirection - setting answer direction");{const r=(()=>{const s=this._peerConnection.remoteDescription;if(!s)throw new Error("Failed to read remote offer");const i=/a=sendrecv\r\n|a=sendonly\r\n|a=recvonly\r\n|a=inactive\r\n/.exec(s.sdp);if(i)switch(i[0]){case`a=inactive\r
|
|
52
|
+
`,this.send(l).catch(c=>{this.logTransportError(c,"Failed to send ACK to non-2xx response.")})}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case L.Calling:r();break;case L.Proceeding:this.state!==L.Calling&&r();break;case L.Accepted:case L.Completed:this.state!==L.Calling&&this.state!==L.Proceeding&&r();break;case L.Terminated:this.state!==L.Calling&&this.state!==L.Accepted&&this.state!==L.Completed&&(t||r());break;default:r()}this.B&&(clearTimeout(this.B),this.B=void 0),L.Proceeding,e===L.Completed&&(this.D=setTimeout(()=>this.timerD(),pt.TIMER_D)),e===L.Accepted&&(this.M=setTimeout(()=>this.timerM(),pt.TIMER_M)),e===L.Terminated&&this.dispose(),this.setState(e)}timerA(){}timerB(){this.logger.debug(`Timer B expired for INVITE client transaction ${this.id}.`),this.state===L.Calling&&(this.onRequestTimeout(),this.stateTransition(L.Terminated))}timerD(){this.logger.debug(`Timer D expired for INVITE client transaction ${this.id}.`),this.state===L.Completed&&this.stateTransition(L.Terminated)}timerM(){this.logger.debug(`Timer M expired for INVITE client transaction ${this.id}.`),this.state===L.Accepted&&this.stateTransition(L.Terminated)}},Vt=class Tc{constructor(t,r,n,s){this.transactionConstructor=t,this.core=r,this.message=n,this.delegate=s,this.challenged=!1,this.stale=!1,this.logger=this.loggerFactory.getLogger("sip.user-agent-client"),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}cancel(t,r={}){if(!this.transaction)throw new Error("Transaction undefined.");if(!this.message.to)throw new Error("To undefined.");if(!this.message.from)throw new Error("From undefined.");const n=this.core.makeOutgoingRequestMessage(ge.CANCEL,this.message.ruri,this.message.from.uri,this.message.to.uri,{toTag:this.message.toTag,fromTag:this.message.fromTag,callId:this.message.callId,cseq:this.message.cseq},r.extraHeaders);return n.branch=this.message.branch,this.message.headers.Route&&(n.headers.Route=this.message.headers.Route),t&&n.setHeader("Reason",t),this.transaction.state===L.Proceeding?new Tc(Ft,this.core,n):this.transaction.addStateChangeListener(()=>{this.transaction&&this.transaction.state===L.Proceeding&&new Tc(Ft,this.core,n)},{once:!0}),n}authenticationGuard(t,r){const n=t.statusCode;if(!n)throw new Error("Response status code undefined.");if(n!==401&&n!==407)return!0;let s,i;if(n===401?(s=t.parseHeader("www-authenticate"),i="authorization"):(s=t.parseHeader("proxy-authenticate"),i="proxy-authorization"),!s)return this.logger.warn(n+" with wrong or missing challenge, cannot authenticate"),!0;if(this.challenged&&(this.stale||s.stale!==!0))return this.logger.warn(n+" apparently in authentication loop, cannot authenticate"),!0;if(!this.credentials&&(this.credentials=this.core.configuration.authenticationFactory(),!this.credentials))return this.logger.warn("Unable to obtain credentials, cannot authenticate"),!0;if(!this.credentials.authenticate(this.message,s))return!0;this.challenged=!0,s.stale&&(this.stale=!0);let o=this.message.cseq+=1;return r&&r.localSequenceNumber&&(r.incrementLocalSequenceNumber(),o=this.message.cseq=r.localSequenceNumber),this.message.setHeader("cseq",o+" "+this.message.method),this.message.setHeader(i,this.credentials.toString()),this.init(),!1}onRequestTimeout(){this.logger.warn("User agent client request timed out. Generating internal 408 Request Timeout.");const t=new fn;t.statusCode=408,t.reasonPhrase="Request Timeout",this.receiveResponse(t)}onTransportError(t){this.logger.error(t.message),this.logger.error("User agent client request transport error. Generating internal 503 Service Unavailable.");const r=new fn;r.statusCode=503,r.reasonPhrase="Service Unavailable",this.receiveResponse(r)}receiveResponse(t){if(!this.authenticationGuard(t))return;const r=t.statusCode?t.statusCode.toString():"";if(!r)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(r):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:t});break;case/^1[0-9]{2}$/.test(r):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:t});break;case/^2[0-9]{2}$/.test(r):this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:t});break;case/^3[0-9]{2}$/.test(r):this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:t});break;case/^[4-6][0-9]{2}$/.test(r):this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:t});break;default:throw new Error(`Invalid status code ${r}`)}}init(){const t={loggerFactory:this.loggerFactory,onRequestTimeout:()=>this.onRequestTimeout(),onStateChange:s=>{s===L.Terminated&&(this.core.userAgentClients.delete(n),r===this._transaction&&this.dispose())},onTransportError:s=>this.onTransportError(s),receiveResponse:s=>this.receiveResponse(s)},r=new this.transactionConstructor(this.message,this.core.transport,t);this._transaction=r;const n=r.id+r.request.method;this.core.userAgentClients.set(n,this)}},O0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ge.BYE,r);super(Ft,e.userAgentCore,n,t),e.dispose()}},jt=class extends $f{constructor(e,t,r){super(e,t,r,L.Trying,"sip.transaction.nist")}dispose(){this.J&&(clearTimeout(this.J),this.J=void 0),super.dispose()}get kind(){return"nist"}receiveRequest(e){switch(this.state){case L.Trying:break;case L.Proceeding:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(t=>{this.logTransportError(t,"Failed to send retransmission of provisional response.")});break;case L.Completed:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(t=>{this.logTransportError(t,"Failed to send retransmission of final response.")});break;case L.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);if(e>100&&e<=199)throw new Error("Provisional response other than 100 not allowed.");switch(this.state){case L.Trying:if(this.lastResponse=t,e>=100&&e<200){this.stateTransition(L.Proceeding),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send provisional response.")});return}if(e>=200&&e<=699){this.stateTransition(L.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send final response.")});return}break;case L.Proceeding:if(this.lastResponse=t,e>=200&&e<=699){this.stateTransition(L.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send final response.")});return}break;case L.Completed:return;case L.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`Non-INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(r),new Error(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(L.Terminated,!0)}typeToString(){return"non-INVITE server transaction"}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case L.Trying:r();break;case L.Proceeding:this.state!==L.Trying&&r();break;case L.Completed:this.state!==L.Trying&&this.state!==L.Proceeding&&r();break;case L.Terminated:this.state!==L.Proceeding&&this.state!==L.Completed&&(t||r());break;default:r()}e===L.Completed&&(this.J=setTimeout(()=>this.timerJ(),pt.TIMER_J)),e===L.Terminated&&this.dispose(),this.setState(e)}timerJ(){this.logger.debug(`Timer J expired for NON-INVITE server transaction ${this.id}.`),this.state===L.Completed&&this.stateTransition(L.Terminated)}},Er=class{constructor(e,t,r,n){this.transactionConstructor=e,this.core=t,this.message=r,this.delegate=n,this.logger=this.loggerFactory.getLogger("sip.user-agent-server"),this.toTag=r.toTag?r.toTag:mo(),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}accept(e={statusCode:200}){if(!this.acceptable)throw new pn(`${this.message.method} not acceptable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<200||t>299)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}progress(e={statusCode:180}){if(!this.progressable)throw new pn(`${this.message.method} not progressable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<101||t>199)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}redirect(e,t={statusCode:302}){if(!this.redirectable)throw new pn(`${this.message.method} not redirectable in state ${this.transaction.state}.`);const r=t.statusCode;if(r<300||r>399)throw new TypeError(`Invalid statusCode: ${r}`);const n=new Array;return e.forEach(s=>n.push(`Contact: ${s.toString()}`)),t.extraHeaders=(t.extraHeaders||[]).concat(n),this.reply(t)}reject(e={statusCode:480}){if(!this.rejectable)throw new pn(`${this.message.method} not rejectable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<400||t>699)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}trying(e){if(!this.tryingable)throw new pn(`${this.message.method} not tryingable in state ${this.transaction.state}.`);return this.reply({statusCode:100})}receiveCancel(e){this.delegate&&this.delegate.onCancel&&this.delegate.onCancel(e)}get acceptable(){if(this.transaction instanceof Nt)return this.transaction.state===L.Proceeding||this.transaction.state===L.Accepted;if(this.transaction instanceof jt)return this.transaction.state===L.Trying||this.transaction.state===L.Proceeding;throw new Error("Unknown transaction type.")}get progressable(){if(this.transaction instanceof Nt)return this.transaction.state===L.Proceeding;if(this.transaction instanceof jt)return!1;throw new Error("Unknown transaction type.")}get redirectable(){if(this.transaction instanceof Nt)return this.transaction.state===L.Proceeding;if(this.transaction instanceof jt)return this.transaction.state===L.Trying||this.transaction.state===L.Proceeding;throw new Error("Unknown transaction type.")}get rejectable(){if(this.transaction instanceof Nt)return this.transaction.state===L.Proceeding;if(this.transaction instanceof jt)return this.transaction.state===L.Trying||this.transaction.state===L.Proceeding;throw new Error("Unknown transaction type.")}get tryingable(){if(this.transaction instanceof Nt)return this.transaction.state===L.Proceeding;if(this.transaction instanceof jt)return this.transaction.state===L.Trying;throw new Error("Unknown transaction type.")}reply(e){!e.toTag&&e.statusCode!==100&&(e.toTag=this.toTag),e.userAgent=e.userAgent||this.core.configuration.userAgentHeaderFieldValue,e.supported=e.supported||this.core.configuration.supportedOptionTagsResponse;const t=Rf(this.message,e);return this.transaction.receiveResponse(e.statusCode,t.message),t}init(){const e={loggerFactory:this.loggerFactory,onStateChange:n=>{n===L.Terminated&&(this.core.userAgentServers.delete(r),this.dispose())},onTransportError:n=>{this.logger.error(n.message),this.delegate&&this.delegate.onTransportError?this.delegate.onTransportError(n):this.logger.error("User agent server response transport error.")}},t=new this.transactionConstructor(this.message,this.core.transport,e);this._transaction=t;const r=t.id;this.core.userAgentServers.set(t.id,this)}},H0=class extends Er{constructor(e,t,r){super(jt,e.userAgentCore,t,r)}},M0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ge.INFO,r);super(Ft,e.userAgentCore,n,t)}},N0=class extends Er{constructor(e,t,r){super(jt,e.userAgentCore,t,r)}},Df=class extends Vt{constructor(e,t,r){super(Ft,e,t,r)}},Of=class extends Er{constructor(e,t,r){super(jt,e,t,r)}},q0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ge.NOTIFY,r);super(Ft,e.userAgentCore,n,t)}};function B0(e){return e.userAgentCore!==void 0}var _o=class extends Er{constructor(e,t,r){const n=B0(e)?e.userAgentCore:e;super(jt,n,t,r)}},L0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ge.PRACK,r);super(Ft,e.userAgentCore,n,t),e.signalingStateTransition(n)}},F0=class extends Er{constructor(e,t,r){super(jt,e.userAgentCore,t,r),e.signalingStateTransition(t),this.dialog=e}accept(e={statusCode:200}){return e.body&&this.dialog.signalingStateTransition(e.body),super.accept(e)}},V0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ge.INVITE,r);super(mn,e.userAgentCore,n,t),this.delegate=t,e.signalingStateTransition(n),e.reinviteUserAgentClient=this,this.dialog=e}receiveResponse(e){if(!this.authenticationGuard(e,this.dialog))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});break;case/^1[0-9]{2}$/.test(t):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:this.dialog,prack:r=>{throw new Error("Unimplemented.")}});break;case/^2[0-9]{2}$/.test(t):this.dialog.signalingStateTransition(e),this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:e,session:this.dialog,ack:r=>this.dialog.ack(r)});break;case/^3[0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});break;case/^[4-6][0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});break;default:throw new Error(`Invalid status code ${t}`)}}},j0=class extends Er{constructor(e,t,r){super(Nt,e.userAgentCore,t,r),e.reinviteUserAgentServer=this,this.dialog=e}accept(e={statusCode:200}){e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(this.dialog.routeSet.map(s=>`Record-Route: ${s}`));const t=super.accept(e),r=this.dialog,n=Object.assign(Object.assign({},t),{session:r});return e.body&&this.dialog.signalingStateTransition(e.body),this.dialog.reConfirm(),n}progress(e={statusCode:180}){const t=super.progress(e),r=this.dialog,n=Object.assign(Object.assign({},t),{session:r});return e.body&&this.dialog.signalingStateTransition(e.body),n}redirect(e,t={statusCode:302}){throw this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,new Error("Unimplemented.")}reject(e={statusCode:488}){return this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,super.reject(e)}},U0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ge.REFER,r);super(Ft,e.userAgentCore,n,t)}};function z0(e){return e.userAgentCore!==void 0}var Hf=class extends Er{constructor(e,t,r){const n=z0(e)?e.userAgentCore:e;super(jt,n,t,r)}},So=class extends ws{constructor(e,t,r,n){super(t,r),this.initialTransaction=e,this._signalingState=fe.Initial,this.ackWait=!1,this.ackProcessing=!1,this.delegate=n,e instanceof Nt&&(this.ackWait=!0),this.early||this.start2xxRetransmissionTimer(),this.signalingStateTransition(e.request),this.logger=t.loggerFactory.getLogger("sip.invite-dialog"),this.logger.log(`INVITE dialog ${this.id} constructed`)}dispose(){super.dispose(),this._signalingState=fe.Closed,this._offer=void 0,this._answer=void 0,this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.logger.log(`INVITE dialog ${this.id} destroyed`)}get sessionState(){return this.early?ir.Early:this.ackWait?ir.AckWait:this._signalingState===fe.Closed?ir.Terminated:ir.Confirmed}get signalingState(){return this._signalingState}get offer(){return this._offer}get answer(){return this._answer}confirm(){this.early&&this.start2xxRetransmissionTimer(),super.confirm()}reConfirm(){this.reinviteUserAgentServer&&this.startReInvite2xxRetransmissionTimer()}ack(e={}){this.logger.log(`INVITE dialog ${this.id} sending ACK request`);let t;if(this.reinviteUserAgentClient){if(!(this.reinviteUserAgentClient.transaction instanceof mn))throw new Error("Transaction not instance of InviteClientTransaction.");t=this.reinviteUserAgentClient.transaction,this.reinviteUserAgentClient=void 0}else{if(!(this.initialTransaction instanceof mn))throw new Error("Initial transaction not instance of InviteClientTransaction.");t=this.initialTransaction}const r=this.createOutgoingRequestMessage(ge.ACK,{cseq:t.request.cseq,extraHeaders:e.extraHeaders,body:e.body});return t.ackResponse(r),this.signalingStateTransition(r),{message:r}}bye(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending BYE request`),this.initialTransaction instanceof Nt){if(this.early)throw new Error("UAS MUST NOT send a BYE on early dialogs.");if(this.ackWait&&this.initialTransaction.state!==L.Terminated)throw new Error("UAS MUST NOT send a BYE on a confirmed dialog until it has received an ACK for its 2xx response or until the server transaction times out.")}return new O0(this,e,t)}info(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INFO request`),this.early)throw new Error("Dialog not confirmed.");return new M0(this,e,t)}invite(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INVITE request`),this.early)throw new Error("Dialog not confirmed.");if(this.reinviteUserAgentClient)throw new Error("There is an ongoing re-INVITE client transaction.");if(this.reinviteUserAgentServer)throw new Error("There is an ongoing re-INVITE server transaction.");return new V0(this,e,t)}message(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending MESSAGE request`),this.early)throw new Error("Dialog not confirmed.");const r=this.createOutgoingRequestMessage(ge.MESSAGE,t);return new Df(this.core,r,e)}notify(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending NOTIFY request`),this.early)throw new Error("Dialog not confirmed.");return new q0(this,e,t)}prack(e,t){return this.logger.log(`INVITE dialog ${this.id} sending PRACK request`),new L0(this,e,t)}refer(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending REFER request`),this.early)throw new Error("Dialog not confirmed.");return new U0(this,e,t)}receiveRequest(e){if(this.logger.log(`INVITE dialog ${this.id} received ${e.method} request`),e.method===ge.ACK){if(this.ackWait){if(this.initialTransaction instanceof mn){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}if(this.initialTransaction.request.cseq!==e.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}this.ackWait=!1}else{if(!this.reinviteUserAgentServer){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}if(this.reinviteUserAgentServer.transaction.request.cseq!==e.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}this.reinviteUserAgentServer=void 0}if(this.signalingStateTransition(e),this.delegate&&this.delegate.onAck){const t=this.delegate.onAck({message:e});t instanceof Promise&&(this.ackProcessing=!0,t.then(()=>this.ackProcessing=!1).catch(()=>this.ackProcessing=!1))}return}if(!this.sequenceGuard(e)){this.logger.log(`INVITE dialog ${this.id} rejected out of order ${e.method} request.`);return}if(super.receiveRequest(e),e.method===ge.INVITE){const t=()=>{const n=this.ackWait?"waiting for initial ACK":"processing initial ACK";this.logger.warn(`INVITE dialog ${this.id} received re-INVITE while ${n}`);let s="RFC 5407 suggests the following to avoid this race condition... ";s+=" Note: Implementation issues are outside the scope of this document,",s+=" but the following tip is provided for avoiding race conditions of",s+=" this type. The caller can delay sending re-INVITE F6 for some period",s+=" of time (2 seconds, perhaps), after which the caller can reasonably",s+=" assume that its ACK has been received. Implementors can decouple the",s+=" actions of the user (e.g., pressing the hold button) from the actions",s+=" of the protocol (the sending of re-INVITE F6), so that the UA can",s+=" behave like this. In this case, it is the implementor's choice as to",s+=" how long to wait. In most cases, such an implementation may be",s+=" useful to prevent the type of race condition shown in this section.",s+=" This document expresses no preference about whether or not they",s+=" should wait for an ACK to be delivered. After considering the impact",s+=" on user experience, implementors should decide whether or not to wait",s+=" for a while, because the user experience depends on the",s+=" implementation and has no direct bearing on protocol behavior.",this.logger.warn(s)},r=[`Retry-After: ${Math.floor(Math.random()*10)+1}`];if(this.ackProcessing){this.core.replyStateless(e,{statusCode:500,extraHeaders:r}),t();return}if(this.ackWait&&this.signalingState!==fe.Stable){this.core.replyStateless(e,{statusCode:500,extraHeaders:r}),t();return}if(this.reinviteUserAgentServer){this.core.replyStateless(e,{statusCode:500,extraHeaders:r});return}if(this.reinviteUserAgentClient){this.core.replyStateless(e,{statusCode:491});return}}if(e.method===ge.INVITE){const t=e.parseHeader("contact");if(!t)throw new Error("Contact undefined.");if(!(t instanceof sr))throw new Error("Contact not instance of NameAddrHeader.");this.dialogState.remoteTarget=t.uri}switch(e.method){case ge.BYE:{const t=new H0(this,e);this.delegate&&this.delegate.onBye?this.delegate.onBye(t):t.accept(),this.dispose()}break;case ge.INFO:{const t=new N0(this,e);this.delegate&&this.delegate.onInfo?this.delegate.onInfo(t):t.reject({statusCode:469,extraHeaders:["Recv-Info:"]})}break;case ge.INVITE:{const t=new j0(this,e);this.signalingStateTransition(e),this.delegate&&this.delegate.onInvite?this.delegate.onInvite(t):t.reject({statusCode:488})}break;case ge.MESSAGE:{const t=new Of(this.core,e);this.delegate&&this.delegate.onMessage?this.delegate.onMessage(t):t.accept()}break;case ge.NOTIFY:{const t=new _o(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(t):t.accept()}break;case ge.PRACK:{const t=new F0(this,e);this.delegate&&this.delegate.onPrack?this.delegate.onPrack(t):t.accept()}break;case ge.REFER:{const t=new Hf(this,e);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(t):t.reject()}break;default:this.logger.log(`INVITE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501});break}}reliableSequenceGuard(e){const t=e.statusCode;if(!t)throw new Error("Status code undefined");if(t>100&&t<200){const r=e.getHeader("require"),n=e.getHeader("rseq"),s=r&&r.includes("100rel")&&n?Number(n):void 0;if(s){if(this.rseq&&this.rseq+1!==s)return!1;this.rseq=this.rseq?this.rseq+1:s}}return!0}signalingStateRollback(){(this._signalingState===fe.HaveLocalOffer||this.signalingState===fe.HaveRemoteOffer)&&this._rollbackOffer&&this._rollbackAnswer&&(this._signalingState=fe.Stable,this._offer=this._rollbackOffer,this._answer=this._rollbackAnswer)}signalingStateTransition(e){const t=ci(e);if(!(!t||t.contentDisposition!=="session")){if(this._signalingState===fe.Stable&&(this._rollbackOffer=this._offer,this._rollbackAnswer=this._answer),e instanceof ms)switch(this._signalingState){case fe.Initial:case fe.Stable:this._signalingState=fe.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case fe.HaveLocalOffer:this._signalingState=fe.Stable,this._answer=t;break;case fe.HaveRemoteOffer:break;case fe.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof fn)switch(this._signalingState){case fe.Initial:case fe.Stable:this._signalingState=fe.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case fe.HaveLocalOffer:this._signalingState=fe.Stable,this._answer=t;break;case fe.HaveRemoteOffer:break;case fe.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof hl)switch(this._signalingState){case fe.Initial:case fe.Stable:this._signalingState=fe.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case fe.HaveLocalOffer:break;case fe.HaveRemoteOffer:this._signalingState=fe.Stable,this._answer=t;break;case fe.Closed:break;default:throw new Error("Unexpected signaling state.")}if(Ef(e))switch(this._signalingState){case fe.Initial:case fe.Stable:this._signalingState=fe.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case fe.HaveLocalOffer:break;case fe.HaveRemoteOffer:this._signalingState=fe.Stable,this._answer=t;break;case fe.Closed:break;default:throw new Error("Unexpected signaling state.")}}}start2xxRetransmissionTimer(){if(this.initialTransaction instanceof Nt){const e=this.initialTransaction;let t=pt.T1;const r=()=>{if(!this.ackWait){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(t*2,pt.T2),this.invite2xxTimer=setTimeout(r,t)};this.invite2xxTimer=setTimeout(r,t);const n=()=>{e.state===L.Terminated&&(e.removeStateChangeListener(n),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.ackWait&&(this.delegate&&this.delegate.onAckTimeout?this.delegate.onAckTimeout():this.bye()))};e.addStateChangeListener(n)}}startReInvite2xxRetransmissionTimer(){if(this.reinviteUserAgentServer&&this.reinviteUserAgentServer.transaction instanceof Nt){const e=this.reinviteUserAgentServer.transaction;let t=pt.T1;const r=()=>{if(!this.reinviteUserAgentServer){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(t*2,pt.T2),this.invite2xxTimer=setTimeout(r,t)};this.invite2xxTimer=setTimeout(r,t);const n=()=>{e.state===L.Terminated&&(e.removeStateChangeListener(n),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.reinviteUserAgentServer)};e.addStateChangeListener(n)}}},K0=class extends Vt{constructor(e,t,r){super(mn,e,t,r),this.confirmedDialogAcks=new Map,this.confirmedDialogs=new Map,this.earlyDialogs=new Map,this.delegate=r}dispose(){this.earlyDialogs.forEach(e=>e.dispose()),this.earlyDialogs.clear(),super.dispose()}onTransportError(e){if(this.transaction.state===L.Calling)return super.onTransportError(e);this.logger.error(e.message),this.logger.error("User agent client request transport error while sending ACK.")}receiveResponse(e){if(!this.authenticationGuard(e))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});return;case/^1[0-9]{2}$/.test(t):{if(!e.toTag){this.logger.warn("Non-100 1xx INVITE response received without a to tag, dropping.");return}if(!e.parseHeader("contact")){this.logger.error("Non-100 1xx INVITE response received without a Contact header field, dropping.");return}const r=ws.initialDialogStateForUserAgentClient(this.message,e);let n=this.earlyDialogs.get(r.id);if(!n){const i=this.transaction;if(!(i instanceof mn))throw new Error("Transaction not instance of InviteClientTransaction.");n=new So(i,this.core,r),this.earlyDialogs.set(n.id,n)}if(!n.reliableSequenceGuard(e)){this.logger.warn("1xx INVITE reliable response received out of order or is a retransmission, dropping.");return}(n.signalingState===fe.Initial||n.signalingState===fe.HaveLocalOffer)&&n.signalingStateTransition(e);const s=n;this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:s,prack:i=>s.prack(void 0,i)})}return;case/^2[0-9]{2}$/.test(t):{if(!e.toTag){this.logger.error("2xx INVITE response received without a to tag, dropping.");return}if(!e.parseHeader("contact")){this.logger.error("2xx INVITE response received without a Contact header field, dropping.");return}const r=ws.initialDialogStateForUserAgentClient(this.message,e);let n=this.confirmedDialogs.get(r.id);if(n){const i=this.confirmedDialogAcks.get(r.id);if(i){const o=this.transaction;if(!(o instanceof mn))throw new Error("Client transaction not instance of InviteClientTransaction.");o.ackResponse(i.message)}return}if(n=this.earlyDialogs.get(r.id),n)n.confirm(),n.recomputeRouteSet(e),this.earlyDialogs.delete(n.id),this.confirmedDialogs.set(n.id,n);else{const i=this.transaction;if(!(i instanceof mn))throw new Error("Transaction not instance of InviteClientTransaction.");n=new So(i,this.core,r),this.confirmedDialogs.set(n.id,n)}(n.signalingState===fe.Initial||n.signalingState===fe.HaveLocalOffer)&&n.signalingStateTransition(e);const s=n;if(this.delegate&&this.delegate.onAccept)this.delegate.onAccept({message:e,session:s,ack:i=>{const o=s.ack(i);return this.confirmedDialogAcks.set(s.id,o),o}});else{const i=s.ack();this.confirmedDialogAcks.set(s.id,i)}}return;case/^3[0-9]{2}$/.test(t):this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});return;case/^[4-6][0-9]{2}$/.test(t):this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});return;default:throw new Error(`Invalid status code ${t}`)}throw new Error(`Executing what should be an unreachable code path receiving ${t} response.`)}},_l=class extends Er{constructor(e,t,r){super(Nt,e,t,r),this.core=e}dispose(){this.earlyDialog&&this.earlyDialog.dispose(),super.dispose()}accept(e={statusCode:200}){if(!this.acceptable)throw new pn(`${this.message.method} not acceptable in state ${this.transaction.state}.`);if(!this.confirmedDialog)if(this.earlyDialog)this.earlyDialog.confirm(),this.confirmedDialog=this.earlyDialog,this.earlyDialog=void 0;else{const a=this.transaction;if(!(a instanceof Nt))throw new Error("Transaction not instance of InviteClientTransaction.");const l=ws.initialDialogStateForUserAgentServer(this.message,this.toTag);this.confirmedDialog=new So(a,this.core,l)}const t=this.message.getHeaders("record-route").map(a=>`Record-Route: ${a}`),r=`Contact: ${this.core.configuration.contact.toString()}`,n="Allow: "+hn.toString();if(!e.body){if(this.confirmedDialog.signalingState===fe.Stable)e.body=this.confirmedDialog.answer;else if(this.confirmedDialog.signalingState===fe.Initial||this.confirmedDialog.signalingState===fe.HaveRemoteOffer)throw new Error("Response must have a body.")}e.statusCode=e.statusCode||200,e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(n),e.extraHeaders.push(r);const s=super.accept(e),i=this.confirmedDialog,o=Object.assign(Object.assign({},s),{session:i});return e.body&&this.confirmedDialog.signalingState!==fe.Stable&&this.confirmedDialog.signalingStateTransition(e.body),o}progress(e={statusCode:180}){if(!this.progressable)throw new pn(`${this.message.method} not progressable in state ${this.transaction.state}.`);if(!this.earlyDialog){const o=this.transaction;if(!(o instanceof Nt))throw new Error("Transaction not instance of InviteClientTransaction.");const a=ws.initialDialogStateForUserAgentServer(this.message,this.toTag,!0);this.earlyDialog=new So(o,this.core,a)}const t=this.message.getHeaders("record-route").map(o=>`Record-Route: ${o}`),r=`Contact: ${this.core.configuration.contact}`;e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(r);const n=super.progress(e),s=this.earlyDialog,i=Object.assign(Object.assign({},n),{session:s});return e.body&&this.earlyDialog.signalingState!==fe.Stable&&this.earlyDialog.signalingStateTransition(e.body),i}redirect(e,t={statusCode:302}){return super.redirect(e,t)}reject(e={statusCode:486}){return super.reject(e)}},W0=class extends Vt{constructor(e,t,r){super(Ft,e,t,r)}},G0=class extends Vt{constructor(e,t,r){super(Ft,e,t,r)}},J0=class extends Er{constructor(e,t,r){super(jt,e,t,r),this.core=e}},Y0=class extends Vt{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ge.SUBSCRIBE,r);super(Ft,e.userAgentCore,n,t),this.dialog=e}waitNotifyStop(){}receiveResponse(e){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){const t=e.getHeader("Expires");if(!t)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const r=Number(t);this.dialog.subscriptionExpires>r&&(this.dialog.subscriptionExpires=r)}}e.statusCode&&e.statusCode>=400&&e.statusCode<700&&[404,405,410,416,480,481,482,483,484,485,489,501,604].includes(e.statusCode)&&this.dialog.terminate(),super.receiveResponse(e)}},Mf=class extends ws{constructor(e,t,r,n,s,i){super(n,s),this.delegate=i,this._autoRefresh=!1,this._subscriptionEvent=e,this._subscriptionExpires=t,this._subscriptionExpiresInitial=t,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this._subscriptionState=r,this.logger=n.loggerFactory.getLogger("sip.subscribe-dialog"),this.logger.log(`SUBSCRIBE dialog ${this.id} constructed`)}static initialDialogStateForSubscription(e,t){const n=t.getHeaders("record-route"),s=t.parseHeader("contact");if(!s)throw new Error("Contact undefined.");if(!(s instanceof sr))throw new Error("Contact not instance of NameAddrHeader.");const i=s.uri,o=e.cseq,a=void 0,l=e.callId,c=e.fromTag,u=t.fromTag;if(!l)throw new Error("Call id undefined.");if(!c)throw new Error("From tag undefined.");if(!u)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");const d=e.from.uri,p=e.to.uri;return{id:l+c+u,early:!1,callId:l,localTag:c,remoteTag:u,localSequenceNumber:o,remoteSequenceNumber:a,localURI:d,remoteURI:p,remoteTarget:i,routeSet:n,secure:!1}}dispose(){super.dispose(),this.N&&(clearTimeout(this.N),this.N=void 0),this.refreshTimerClear(),this.logger.log(`SUBSCRIBE dialog ${this.id} destroyed`)}get autoRefresh(){return this._autoRefresh}set autoRefresh(e){this._autoRefresh=!0,this.refreshTimerSet()}get subscriptionEvent(){return this._subscriptionEvent}get subscriptionExpires(){const e=Math.floor(Date.now()/1e3)-this._subscriptionExpiresLastSet,t=this._subscriptionExpires-e;return Math.max(t,0)}set subscriptionExpires(e){if(e<0)throw new Error("Expires must be greater than or equal to zero.");if(this._subscriptionExpires=e,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this.autoRefresh){const t=this.subscriptionRefresh;(t===void 0||t>=e)&&this.refreshTimerSet()}}get subscriptionExpiresInitial(){return this._subscriptionExpiresInitial}get subscriptionRefresh(){if(this._subscriptionRefresh===void 0||this._subscriptionRefreshLastSet===void 0)return;const e=Math.floor(Date.now()/1e3)-this._subscriptionRefreshLastSet,t=this._subscriptionRefresh-e;return Math.max(t,0)}get subscriptionState(){return this._subscriptionState}receiveRequest(e){if(this.logger.log(`SUBSCRIBE dialog ${this.id} received ${e.method} request`),!this.sequenceGuard(e)){this.logger.log(`SUBSCRIBE dialog ${this.id} rejected out of order ${e.method} request.`);return}super.receiveRequest(e),e.method===ge.NOTIFY?this.onNotify(e):(this.logger.log(`SUBSCRIBE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501}))}refresh(){const e="Allow: "+hn.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: "+this.subscriptionExpiresInitial),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}subscribe(e,t={}){var r;if(this.subscriptionState!==Ve.Pending&&this.subscriptionState!==Ve.Active)throw new Error(`Invalid state ${this.subscriptionState}. May only re-subscribe while in state "pending" or "active".`);this.logger.log(`SUBSCRIBE dialog ${this.id} sending SUBSCRIBE request`);const n=new Y0(this,e,t);return this.N&&(clearTimeout(this.N),this.N=void 0),!((r=t.extraHeaders)===null||r===void 0)&&r.includes("Expires: 0")||(this.N=setTimeout(()=>this.timerN(),pt.TIMER_N)),n}terminate(){this.stateTransition(Ve.Terminated),this.onTerminated()}unsubscribe(){const e="Allow: "+hn.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: 0"),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}onNotify(e){const t=e.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent){this.core.replyStateless(e,{statusCode:489});return}this.N&&(clearTimeout(this.N),this.N=void 0);const r=e.parseHeader("Subscription-State");if(!r||!r.state){this.core.replyStateless(e,{statusCode:489});return}const n=r.state,s=r.expires?Math.max(r.expires,0):void 0;switch(n){case"pending":this.stateTransition(Ve.Pending,s);break;case"active":this.stateTransition(Ve.Active,s);break;case"terminated":this.stateTransition(Ve.Terminated,s);break;default:this.logger.warn("Unrecognized subscription state.");break}const i=new _o(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(i):i.accept()}onRefresh(e){this.delegate&&this.delegate.onRefresh&&this.delegate.onRefresh(e)}onTerminated(){this.delegate&&this.delegate.onTerminated&&this.delegate.onTerminated()}refreshTimerClear(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0)}refreshTimerSet(){if(this.refreshTimerClear(),this.autoRefresh&&this.subscriptionExpires>0){const e=this.subscriptionExpires*900;this._subscriptionRefresh=Math.floor(e/1e3),this._subscriptionRefreshLastSet=Math.floor(Date.now()/1e3),this.refreshTimer=setTimeout(()=>{this.refreshTimer=void 0,this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this.onRefresh(this.refresh())},e)}}stateTransition(e,t){const r=()=>{this.logger.warn(`Invalid subscription state transition from ${this.subscriptionState} to ${e}`)};switch(e){case Ve.Initial:r();return;case Ve.NotifyWait:r();return;case Ve.Pending:if(this.subscriptionState!==Ve.NotifyWait&&this.subscriptionState!==Ve.Pending){r();return}break;case Ve.Active:if(this.subscriptionState!==Ve.NotifyWait&&this.subscriptionState!==Ve.Pending&&this.subscriptionState!==Ve.Active){r();return}break;case Ve.Terminated:if(this.subscriptionState!==Ve.NotifyWait&&this.subscriptionState!==Ve.Pending&&this.subscriptionState!==Ve.Active){r();return}break;default:r();return}e===Ve.Pending&&t&&(this.subscriptionExpires=t),e===Ve.Active&&t&&(this.subscriptionExpires=t),e===Ve.Terminated&&this.dispose(),this._subscriptionState=e}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE dialog. Timed out waiting for NOTIFY."),this.subscriptionState!==Ve.Terminated&&(this.stateTransition(Ve.Terminated),this.onTerminated())}},Z0=class extends Vt{constructor(e,t,r){const n=t.getHeader("Event");if(!n)throw new Error("Event undefined");const s=t.getHeader("Expires");if(!s)throw new Error("Expires undefined");super(Ft,e,t,r),this.delegate=r,this.subscriberId=t.callId+t.fromTag+n,this.subscriptionExpiresRequested=this.subscriptionExpires=Number(s),this.subscriptionEvent=n,this.subscriptionState=Ve.NotifyWait,this.waitNotifyStart()}dispose(){super.dispose()}onNotify(e){const t=e.message.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent){this.logger.warn("Failed to parse event."),e.reject({statusCode:489});return}const r=e.message.parseHeader("Subscription-State");if(!r||!r.state){this.logger.warn("Failed to parse subscription state."),e.reject({statusCode:489});return}const n=r.state;switch(n){case"pending":break;case"active":break;case"terminated":break;default:this.logger.warn(`Invalid subscription state ${n}`),e.reject({statusCode:489});return}if(n!=="terminated"&&!e.message.parseHeader("contact")){this.logger.warn("Failed to parse contact."),e.reject({statusCode:489});return}if(this.dialog)throw new Error("Dialog already created. This implementation only supports install of single subscriptions.");switch(this.waitNotifyStop(),this.subscriptionExpires=r.expires?Math.min(this.subscriptionExpires,Math.max(r.expires,0)):this.subscriptionExpires,n){case"pending":this.subscriptionState=Ve.Pending;break;case"active":this.subscriptionState=Ve.Active;break;case"terminated":this.subscriptionState=Ve.Terminated;break;default:throw new Error(`Unrecognized state ${n}.`)}if(this.subscriptionState!==Ve.Terminated){const s=Mf.initialDialogStateForSubscription(this.message,e.message);this.dialog=new Mf(this.subscriptionEvent,this.subscriptionExpires,this.subscriptionState,this.core,s)}if(this.delegate&&this.delegate.onNotify){const s=e,i=this.dialog;this.delegate.onNotify({request:s,subscription:i})}else e.accept()}waitNotifyStart(){this.N||(this.core.subscribers.set(this.subscriberId,this),this.N=setTimeout(()=>this.timerN(),pt.TIMER_N))}waitNotifyStop(){this.N&&(this.core.subscribers.delete(this.subscriberId),clearTimeout(this.N),this.N=void 0)}receiveResponse(e){if(this.authenticationGuard(e)){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){const t=e.getHeader("Expires");if(!t)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const r=Number(t);r>this.subscriptionExpiresRequested&&this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),r<this.subscriptionExpires&&(this.subscriptionExpires=r)}this.dialog&&this.dialog.subscriptionExpires>this.subscriptionExpires&&(this.dialog.subscriptionExpires=this.subscriptionExpires)}e.statusCode&&e.statusCode>=300&&e.statusCode<700&&this.waitNotifyStop(),super.receiveResponse(e)}}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE user agent client. Timed out waiting for NOTIFY."),this.waitNotifyStop(),this.delegate&&this.delegate.onNotifyTimeout&&this.delegate.onNotifyTimeout()}},X0=class extends Er{constructor(e,t,r){super(jt,e,t,r),this.core=e}},Nf=["application/sdp","application/dtmf-relay"],Q0=class{constructor(e,t={}){this.userAgentClients=new Map,this.userAgentServers=new Map,this.configuration=e,this.delegate=t,this.dialogs=new Map,this.subscribers=new Map,this.logger=e.loggerFactory.getLogger("sip.user-agent-core")}dispose(){this.reset()}reset(){this.dialogs.forEach(e=>e.dispose()),this.dialogs.clear(),this.subscribers.forEach(e=>e.dispose()),this.subscribers.clear(),this.userAgentClients.forEach(e=>e.dispose()),this.userAgentClients.clear(),this.userAgentServers.forEach(e=>e.dispose()),this.userAgentServers.clear()}get loggerFactory(){return this.configuration.loggerFactory}get transport(){const e=this.configuration.transportAccessor();if(!e)throw new Error("Transport undefined.");return e}invite(e,t){return new K0(this,e,t)}message(e,t){return new Df(this,e,t)}publish(e,t){return new W0(this,e,t)}register(e,t){return new G0(this,e,t)}subscribe(e,t){return new Z0(this,e,t)}request(e,t){return new Vt(Ft,this,e,t)}makeOutgoingRequestMessage(e,t,r,n,s,i,o){const a=this.configuration.sipjsId,l=this.configuration.displayName,c=this.configuration.viaForceRport,u=this.configuration.hackViaTcp,d=this.configuration.supportedOptionTags.slice();e===ge.REGISTER&&d.push("path","gruu"),e===ge.INVITE&&(this.configuration.contact.pubGruu||this.configuration.contact.tempGruu)&&d.push("gruu");const p={callIdPrefix:a,forceRport:c,fromDisplayName:l,hackViaTcp:u,optionTags:d,routeSet:this.configuration.routeSet,userAgentString:this.configuration.userAgentHeaderFieldValue,viaHost:this.configuration.viaHost};return new hl(e,t,r,n,Object.assign(Object.assign({},p),s),i,o)}receiveIncomingRequestFromTransport(e){this.receiveRequestFromTransport(e)}receiveIncomingResponseFromTransport(e){this.receiveResponseFromTransport(e)}replyStateless(e,t){const r=this.configuration.userAgentHeaderFieldValue,n=this.configuration.supportedOptionTagsResponse;t=Object.assign(Object.assign({},t),{userAgent:r,supported:n});const s=Rf(e,t);return this.transport.send(s.message).catch(i=>{i instanceof Error&&this.logger.error(i.message),this.logger.error(`Transport error occurred sending stateless reply to ${e.method} request.`)}),s}receiveRequestFromTransport(e){const t=e.viaBranch,r=this.userAgentServers.get(t);if(e.method===ge.ACK&&r&&r.transaction.state===L.Accepted&&r instanceof _l){this.logger.warn(`Discarding out of dialog ACK after 2xx response sent on transaction ${t}.`);return}if(e.method===ge.CANCEL){r?(this.replyStateless(e,{statusCode:200}),r.transaction instanceof Nt&&r.transaction.state===L.Proceeding&&r instanceof _l&&r.receiveCancel(e)):this.replyStateless(e,{statusCode:481});return}if(r){r.transaction.receiveRequest(e);return}this.receiveRequest(e)}receiveRequest(e){if(!hn.includes(e.method)){const n="Allow: "+hn.toString();this.replyStateless(e,{statusCode:405,extraHeaders:[n]});return}if(!e.ruri)throw new Error("Request-URI undefined.");if(e.ruri.scheme!=="sip"){this.replyStateless(e,{statusCode:416});return}const t=e.ruri,r=n=>!!n&&n.user===t.user;if(!r(this.configuration.aor)&&!(r(this.configuration.contact.uri)||r(this.configuration.contact.pubGruu)||r(this.configuration.contact.tempGruu))){this.logger.warn("Request-URI does not point to us."),e.method!==ge.ACK&&this.replyStateless(e,{statusCode:404});return}if(e.method===ge.INVITE&&!e.hasHeader("Contact")){this.replyStateless(e,{statusCode:400,reasonPhrase:"Missing Contact Header"});return}if(!e.toTag){const n=e.viaBranch;if(!this.userAgentServers.has(n)&&Array.from(this.userAgentServers.values()).some(s=>s.transaction.request.fromTag===e.fromTag&&s.transaction.request.callId===e.callId&&s.transaction.request.cseq===e.cseq)){this.replyStateless(e,{statusCode:482});return}}e.toTag?this.receiveInsideDialogRequest(e):this.receiveOutsideDialogRequest(e)}receiveInsideDialogRequest(e){if(e.method===ge.NOTIFY){const n=e.parseHeader("Event");if(!n||!n.event){this.replyStateless(e,{statusCode:489});return}const s=e.callId+e.toTag+n.event,i=this.subscribers.get(s);if(i){const o=new _o(this,e);i.onNotify(o);return}}const t=e.callId+e.toTag+e.fromTag,r=this.dialogs.get(t);if(r){if(e.method===ge.OPTIONS){const n="Allow: "+hn.toString(),s="Accept: "+Nf.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[n,s]});return}r.receiveRequest(e);return}e.method!==ge.ACK&&this.replyStateless(e,{statusCode:481})}receiveOutsideDialogRequest(e){switch(e.method){case ge.ACK:break;case ge.BYE:this.replyStateless(e,{statusCode:481});break;case ge.CANCEL:throw new Error(`Unexpected out of dialog request method ${e.method}.`);case ge.INFO:this.replyStateless(e,{statusCode:405});break;case ge.INVITE:{const t=new _l(this,e);this.delegate.onInvite?this.delegate.onInvite(t):t.reject()}break;case ge.MESSAGE:{const t=new Of(this,e);this.delegate.onMessage?this.delegate.onMessage(t):t.accept()}break;case ge.NOTIFY:{const t=new _o(this,e);this.delegate.onNotify?this.delegate.onNotify(t):t.reject({statusCode:405})}break;case ge.OPTIONS:{const t="Allow: "+hn.toString(),r="Accept: "+Nf.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[t,r]})}break;case ge.REFER:{const t=new Hf(this,e);this.delegate.onRefer?this.delegate.onRefer(t):t.reject({statusCode:405})}break;case ge.REGISTER:{const t=new J0(this,e);this.delegate.onRegister?this.delegate.onRegister(t):t.reject({statusCode:405})}break;case ge.SUBSCRIBE:{const t=new X0(this,e);this.delegate.onSubscribe?this.delegate.onSubscribe(t):t.reject({statusCode:480})}break;default:throw new Error(`Unexpected out of dialog request method ${e.method}.`)}}receiveResponseFromTransport(e){if(e.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response, dropping");return}const t=e.viaBranch+e.method,r=this.userAgentClients.get(t);r?r.transaction.receiveResponse(e):this.logger.warn(`Discarding unmatched ${e.statusCode} response to ${e.method} ${t}.`)}};function ew(){return e=>!e.audio&&!e.video?Promise.resolve(new MediaStream):navigator.mediaDevices===void 0?Promise.reject(new Error("Media devices not available in insecure contexts.")):navigator.mediaDevices.getUserMedia.call(navigator.mediaDevices,e)}function tw(){return{bundlePolicy:"balanced",certificates:void 0,iceCandidatePoolSize:0,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require"}}var rw=class Rn{constructor(t,r,n){t.debug("SessionDescriptionHandler.constructor"),this.logger=t,this.mediaStreamFactory=r,this.sessionDescriptionHandlerConfiguration=n,this._localMediaStream=new MediaStream,this._remoteMediaStream=new MediaStream,this._peerConnection=new RTCPeerConnection(n?.peerConnectionConfiguration),this.initPeerConnectionEventHandlers()}get localMediaStream(){return this._localMediaStream}get remoteMediaStream(){return this._remoteMediaStream}get dataChannel(){return this._dataChannel}get peerConnection(){return this._peerConnection}get peerConnectionDelegate(){return this._peerConnectionDelegate}set peerConnectionDelegate(t){this._peerConnectionDelegate=t}static dispatchAddTrackEvent(t,r){t.dispatchEvent(new MediaStreamTrackEvent("addtrack",{track:r}))}static dispatchRemoveTrackEvent(t,r){t.dispatchEvent(new MediaStreamTrackEvent("removetrack",{track:r}))}close(){this.logger.debug("SessionDescriptionHandler.close"),this._peerConnection!==void 0&&(this._peerConnection.getReceivers().forEach(t=>{t.track&&t.track.stop()}),this._peerConnection.getSenders().forEach(t=>{t.track&&t.track.stop()}),this._dataChannel&&this._dataChannel.close(),this._peerConnection.close(),this._peerConnection=void 0)}enableReceiverTracks(t){const r=this.peerConnection;if(!r)throw new Error("Peer connection closed.");r.getReceivers().forEach(n=>{n.track&&(n.track.enabled=t)})}enableSenderTracks(t){const r=this.peerConnection;if(!r)throw new Error("Peer connection closed.");r.getSenders().forEach(n=>{n.track&&(n.track.enabled=t)})}getDescription(t,r){var n,s;if(this.logger.debug("SessionDescriptionHandler.getDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=t?.onDataChannel;const i=(n=t?.offerOptions)===null||n===void 0?void 0:n.iceRestart,o=t?.iceGatheringTimeout===void 0?(s=this.sessionDescriptionHandlerConfiguration)===null||s===void 0?void 0:s.iceGatheringTimeout:t?.iceGatheringTimeout;return this.getLocalMediaStream(t).then(()=>this.updateDirection(t)).then(()=>this.createDataChannel(t)).then(()=>this.createLocalOfferOrAnswer(t)).then(a=>this.applyModifiers(a,r)).then(a=>this.setLocalSessionDescription(a)).then(()=>this.waitForIceGatheringComplete(i,o)).then(()=>this.getLocalSessionDescription()).then(a=>({body:a.sdp,contentType:"application/sdp"})).catch(a=>{throw this.logger.error("SessionDescriptionHandler.getDescription failed - "+a),a})}hasDescription(t){return this.logger.debug("SessionDescriptionHandler.hasDescription"),t==="application/sdp"}iceGatheringComplete(){this.logger.debug("SessionDescriptionHandler.iceGatheringComplete"),this.iceGatheringCompleteTimeoutId!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - clearing timeout"),clearTimeout(this.iceGatheringCompleteTimeoutId),this.iceGatheringCompleteTimeoutId=void 0),this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - resolving promise"),this.iceGatheringCompleteResolve&&this.iceGatheringCompleteResolve(),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0)}sendDtmf(t,r){if(this.logger.debug("SessionDescriptionHandler.sendDtmf"),this._peerConnection===void 0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - peer connection closed"),!1;const n=this._peerConnection.getSenders();if(n.length===0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no senders"),!1;const s=n[0].dtmf;if(!s)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no DTMF sender"),!1;const i=r?.duration,o=r?.interToneGap;try{s.insertDTMF(t,i,o)}catch(a){return this.logger.error(a.toString()),!1}return this.logger.log("SessionDescriptionHandler.sendDtmf sent via RTP: "+t.toString()),!0}setDescription(t,r,n){if(this.logger.debug("SessionDescriptionHandler.setDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=r?.onDataChannel;const s=this._peerConnection.signalingState==="have-local-offer"?"answer":"offer";return this.getLocalMediaStream(r).then(()=>this.applyModifiers({sdp:t,type:s},n)).then(i=>this.setRemoteSessionDescription(i)).catch(i=>{throw this.logger.error("SessionDescriptionHandler.setDescription failed - "+i),i})}applyModifiers(t,r){return this.logger.debug("SessionDescriptionHandler.applyModifiers"),!r||r.length===0?Promise.resolve(t):r.reduce((n,s)=>n.then(s),Promise.resolve(t)).then(n=>{if(this.logger.debug("SessionDescriptionHandler.applyModifiers - modified sdp"),!n.sdp||!n.type)throw new Error("Invalid SDP.");return{sdp:n.sdp,type:n.type}})}createDataChannel(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));if(t?.dataChannel!==!0||this._dataChannel)return Promise.resolve();switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.createDataChannel - creating data channel");try{return this._dataChannel=this._peerConnection.createDataChannel(t?.dataChannelLabel||"",t?.dataChannelOptions),this.onDataChannel&&this.onDataChannel(this._dataChannel),Promise.resolve()}catch(r){return Promise.reject(r)}case"have-remote-offer":return Promise.resolve();default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}createLocalOfferOrAnswer(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP offer"),this._peerConnection.createOffer(t?.offerOptions);case"have-remote-offer":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP answer"),this._peerConnection.createAnswer(t?.answerOptions);default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}getLocalMediaStream(t){if(this.logger.debug("SessionDescriptionHandler.getLocalMediaStream"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));let r=Object.assign({},t?.constraints);if(this.localMediaStreamConstraints){if(r.audio=r.audio||this.localMediaStreamConstraints.audio,r.video=r.video||this.localMediaStreamConstraints.video,JSON.stringify(this.localMediaStreamConstraints.audio)===JSON.stringify(r.audio)&&JSON.stringify(this.localMediaStreamConstraints.video)===JSON.stringify(r.video))return Promise.resolve()}else r.audio===void 0&&r.video===void 0&&(r={audio:!0});return this.localMediaStreamConstraints=r,this.mediaStreamFactory(r,this,t).then(n=>this.setLocalMediaStream(n))}setLocalMediaStream(t){if(this.logger.debug("SessionDescriptionHandler.setLocalMediaStream"),!this._peerConnection)throw new Error("Peer connection undefined.");const r=this._peerConnection,n=this._localMediaStream,s=[],i=l=>{const c=l.kind;if(c!=="audio"&&c!=="video")throw new Error(`Unknown new track kind ${c}.`);const u=r.getSenders().find(d=>d.track&&d.track.kind===c);u?s.push(new Promise(d=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - replacing sender ${c} track`),d()}).then(()=>u.replaceTrack(l).then(()=>{const d=n.getTracks().find(p=>p.kind===c);d&&(d.stop(),n.removeTrack(d),Rn.dispatchRemoveTrackEvent(n,d)),n.addTrack(l),Rn.dispatchAddTrackEvent(n,l)}).catch(d=>{throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to replace sender ${c} track`),d}))):s.push(new Promise(d=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - adding sender ${c} track`),d()}).then(()=>{try{r.addTrack(l,n)}catch(d){throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to add sender ${c} track`),d}n.addTrack(l),Rn.dispatchAddTrackEvent(n,l)}))},o=t.getAudioTracks();o.length&&i(o[0]);const a=t.getVideoTracks();return a.length&&i(a[0]),s.reduce((l,c)=>l.then(()=>c),Promise.resolve())}getLocalSessionDescription(){if(this.logger.debug("SessionDescriptionHandler.getLocalSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const t=this._peerConnection.localDescription;return t?Promise.resolve(t):Promise.reject(new Error("Failed to get local session description"))}setLocalSessionDescription(t){return this.logger.debug("SessionDescriptionHandler.setLocalSessionDescription"),this._peerConnection===void 0?Promise.reject(new Error("Peer connection closed.")):this._peerConnection.setLocalDescription(t)}setRemoteSessionDescription(t){if(this.logger.debug("SessionDescriptionHandler.setRemoteSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const r=t.sdp;let n;switch(this._peerConnection.signalingState){case"stable":n="offer";break;case"have-local-offer":n="answer";break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return r?this._peerConnection.setRemoteDescription({sdp:r,type:n}):(this.logger.error("SessionDescriptionHandler.setRemoteSessionDescription failed - cannot set null sdp"),Promise.reject(new Error("SDP is undefined")))}setRemoteTrack(t){this.logger.debug("SessionDescriptionHandler.setRemoteTrack");const r=this._remoteMediaStream;r.getTrackById(t.id)?this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - have remote ${t.kind} track`):t.kind==="audio"?(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${t.kind} track`),r.getAudioTracks().forEach(n=>{n.stop(),r.removeTrack(n),Rn.dispatchRemoveTrackEvent(r,n)}),r.addTrack(t),Rn.dispatchAddTrackEvent(r,t)):t.kind==="video"&&(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${t.kind} track`),r.getVideoTracks().forEach(n=>{n.stop(),r.removeTrack(n),Rn.dispatchRemoveTrackEvent(r,n)}),r.addTrack(t),Rn.dispatchAddTrackEvent(r,t))}updateDirection(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.updateDirection - setting offer direction");{const r=n=>{switch(n){case"inactive":return t?.hold?"inactive":"recvonly";case"recvonly":return t?.hold?"inactive":"recvonly";case"sendonly":return t?.hold?"sendonly":"sendrecv";case"sendrecv":return t?.hold?"sendonly":"sendrecv";case"stopped":return"stopped";default:throw new Error("Should never happen")}};this._peerConnection.getTransceivers().forEach(n=>{if(n.direction){const s=r(n.direction);n.direction!==s&&(n.direction=s)}})}break;case"have-remote-offer":this.logger.debug("SessionDescriptionHandler.updateDirection - setting answer direction");{const r=(()=>{const s=this._peerConnection.remoteDescription;if(!s)throw new Error("Failed to read remote offer");const i=/a=sendrecv\r\n|a=sendonly\r\n|a=recvonly\r\n|a=inactive\r\n/.exec(s.sdp);if(i)switch(i[0]){case`a=inactive\r
|
|
53
53
|
`:return"inactive";case`a=recvonly\r
|
|
54
54
|
`:return"recvonly";case`a=sendonly\r
|
|
55
55
|
`:return"sendonly";case`a=sendrecv\r
|
|
56
|
-
`:return"sendrecv";default:throw new Error("Should never happen")}return"sendrecv"})(),n=(()=>{switch(r){case"inactive":return"inactive";case"recvonly":return"sendonly";case"sendonly":return t?.hold?"inactive":"recvonly";case"sendrecv":return t?.hold?"sendonly":"sendrecv";default:throw new Error("Should never happen")}})();this._peerConnection.getTransceivers().forEach(s=>{s.direction&&s.direction!=="stopped"&&s.direction!==n&&(s.direction=n)})}break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return Promise.resolve()}waitForIceGatheringComplete(t=!1,r=0){return this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete"),this._peerConnection===void 0?Promise.reject("Peer connection closed."):!t&&this._peerConnection.iceGatheringState==="complete"?(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - already complete"),Promise.resolve()):(this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - rejecting prior waiting promise"),this.iceGatheringCompleteReject&&this.iceGatheringCompleteReject(new Error("Promise superseded.")),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0),this.iceGatheringCompletePromise=new Promise((n,s)=>{this.iceGatheringCompleteResolve=n,this.iceGatheringCompleteReject=s,r>0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout in "+r),this.iceGatheringCompleteTimeoutId=setTimeout(()=>{this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout"),this.iceGatheringComplete()},r))}),this.iceGatheringCompletePromise)}initPeerConnectionEventHandlers(){if(this.logger.debug("SessionDescriptionHandler.initPeerConnectionEventHandlers"),!this._peerConnection)throw new Error("Peer connection undefined.");const t=this._peerConnection;t.onconnectionstatechange=r=>{var n;const s=t.connectionState;this.logger.debug(`SessionDescriptionHandler.onconnectionstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onconnectionstatechange&&this._peerConnectionDelegate.onconnectionstatechange(r)},t.ondatachannel=r=>{var n;this.logger.debug("SessionDescriptionHandler.ondatachannel"),this._dataChannel=r.channel,this.onDataChannel&&this.onDataChannel(this._dataChannel),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.ondatachannel&&this._peerConnectionDelegate.ondatachannel(r)},t.onicecandidate=r=>{var n;this.logger.debug("SessionDescriptionHandler.onicecandidate"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicecandidate&&this._peerConnectionDelegate.onicecandidate(r)},t.onicecandidateerror=r=>{var n;this.logger.debug("SessionDescriptionHandler.onicecandidateerror"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicecandidateerror&&this._peerConnectionDelegate.onicecandidateerror(r)},t.oniceconnectionstatechange=r=>{var n;const s=t.iceConnectionState;this.logger.debug(`SessionDescriptionHandler.oniceconnectionstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.oniceconnectionstatechange&&this._peerConnectionDelegate.oniceconnectionstatechange(r)},t.onicegatheringstatechange=r=>{var n;const s=t.iceGatheringState;this.logger.debug(`SessionDescriptionHandler.onicegatheringstatechange ${s}`),s==="complete"&&this.iceGatheringComplete(),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicegatheringstatechange&&this._peerConnectionDelegate.onicegatheringstatechange(r)},t.onnegotiationneeded=r=>{var n;this.logger.debug("SessionDescriptionHandler.onnegotiationneeded"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onnegotiationneeded&&this._peerConnectionDelegate.onnegotiationneeded(r)},t.onsignalingstatechange=r=>{var n;const s=t.signalingState;this.logger.debug(`SessionDescriptionHandler.onsignalingstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onsignalingstatechange&&this._peerConnectionDelegate.onsignalingstatechange(r)},t.ontrack=r=>{var n;const s=r.track.kind,i=r.track.enabled?"enabled":"disabled";this.logger.debug(`SessionDescriptionHandler.ontrack ${s} ${i}`),this.setRemoteTrack(r.track),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.ontrack&&this._peerConnectionDelegate.ontrack(r)}}};function nw(e){return(t,r)=>{e===void 0&&(e=ew());const n={iceGatheringTimeout:r?.iceGatheringTimeout!==void 0?r?.iceGatheringTimeout:5e3,peerConnectionConfiguration:Object.assign(Object.assign({},tw()),r?.peerConnectionConfiguration)};return new rw(t.userAgent.getLogger("sip.SessionDescriptionHandler"),e,n)}}var
|
|
56
|
+
`:return"sendrecv";default:throw new Error("Should never happen")}return"sendrecv"})(),n=(()=>{switch(r){case"inactive":return"inactive";case"recvonly":return"sendonly";case"sendonly":return t?.hold?"inactive":"recvonly";case"sendrecv":return t?.hold?"sendonly":"sendrecv";default:throw new Error("Should never happen")}})();this._peerConnection.getTransceivers().forEach(s=>{s.direction&&s.direction!=="stopped"&&s.direction!==n&&(s.direction=n)})}break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return Promise.resolve()}waitForIceGatheringComplete(t=!1,r=0){return this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete"),this._peerConnection===void 0?Promise.reject("Peer connection closed."):!t&&this._peerConnection.iceGatheringState==="complete"?(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - already complete"),Promise.resolve()):(this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - rejecting prior waiting promise"),this.iceGatheringCompleteReject&&this.iceGatheringCompleteReject(new Error("Promise superseded.")),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0),this.iceGatheringCompletePromise=new Promise((n,s)=>{this.iceGatheringCompleteResolve=n,this.iceGatheringCompleteReject=s,r>0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout in "+r),this.iceGatheringCompleteTimeoutId=setTimeout(()=>{this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout"),this.iceGatheringComplete()},r))}),this.iceGatheringCompletePromise)}initPeerConnectionEventHandlers(){if(this.logger.debug("SessionDescriptionHandler.initPeerConnectionEventHandlers"),!this._peerConnection)throw new Error("Peer connection undefined.");const t=this._peerConnection;t.onconnectionstatechange=r=>{var n;const s=t.connectionState;this.logger.debug(`SessionDescriptionHandler.onconnectionstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onconnectionstatechange&&this._peerConnectionDelegate.onconnectionstatechange(r)},t.ondatachannel=r=>{var n;this.logger.debug("SessionDescriptionHandler.ondatachannel"),this._dataChannel=r.channel,this.onDataChannel&&this.onDataChannel(this._dataChannel),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.ondatachannel&&this._peerConnectionDelegate.ondatachannel(r)},t.onicecandidate=r=>{var n;this.logger.debug("SessionDescriptionHandler.onicecandidate"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicecandidate&&this._peerConnectionDelegate.onicecandidate(r)},t.onicecandidateerror=r=>{var n;this.logger.debug("SessionDescriptionHandler.onicecandidateerror"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicecandidateerror&&this._peerConnectionDelegate.onicecandidateerror(r)},t.oniceconnectionstatechange=r=>{var n;const s=t.iceConnectionState;this.logger.debug(`SessionDescriptionHandler.oniceconnectionstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.oniceconnectionstatechange&&this._peerConnectionDelegate.oniceconnectionstatechange(r)},t.onicegatheringstatechange=r=>{var n;const s=t.iceGatheringState;this.logger.debug(`SessionDescriptionHandler.onicegatheringstatechange ${s}`),s==="complete"&&this.iceGatheringComplete(),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicegatheringstatechange&&this._peerConnectionDelegate.onicegatheringstatechange(r)},t.onnegotiationneeded=r=>{var n;this.logger.debug("SessionDescriptionHandler.onnegotiationneeded"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onnegotiationneeded&&this._peerConnectionDelegate.onnegotiationneeded(r)},t.onsignalingstatechange=r=>{var n;const s=t.signalingState;this.logger.debug(`SessionDescriptionHandler.onsignalingstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onsignalingstatechange&&this._peerConnectionDelegate.onsignalingstatechange(r)},t.ontrack=r=>{var n;const s=r.track.kind,i=r.track.enabled?"enabled":"disabled";this.logger.debug(`SessionDescriptionHandler.ontrack ${s} ${i}`),this.setRemoteTrack(r.track),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.ontrack&&this._peerConnectionDelegate.ontrack(r)}}};function nw(e){return(t,r)=>{e===void 0&&(e=ew());const n={iceGatheringTimeout:r?.iceGatheringTimeout!==void 0?r?.iceGatheringTimeout:5e3,peerConnectionConfiguration:Object.assign(Object.assign({},tw()),r?.peerConnectionConfiguration)};return new rw(t.userAgent.getLogger("sip.SessionDescriptionHandler"),e,n)}}var qf=class ng{constructor(t,r){if(this._state=Ie.Disconnected,this.transitioningState=!1,this._stateEventEmitter=new ai,this.logger=t,r){const i=r,o=i?.wsServers,a=i?.maxReconnectionAttempts;o!==void 0&&this.logger.warn('The transport option "wsServers" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),a!==void 0&&this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),o&&!r.server&&(typeof o=="string"&&(r.server=o),o instanceof Array&&(r.server=o[0]))}this.configuration=Object.assign(Object.assign({},ng.defaultOptions),r);const n=this.configuration.server,s=ct.parse(n,"absoluteURI");if(s===-1)throw this.logger.error(`Invalid WebSocket Server URL "${n}"`),new Error("Invalid WebSocket Server URL");if(!["wss","ws","udp"].includes(s.scheme))throw this.logger.error(`Invalid scheme in WebSocket Server URL "${n}"`),new Error("Invalid scheme in WebSocket Server URL");this._protocol=s.scheme.toUpperCase()}dispose(){return this.disconnect()}get protocol(){return this._protocol}get server(){return this.configuration.server}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get ws(){return this._ws}connect(){return this._connect()}disconnect(){return this._disconnect()}isConnected(){return this.state===Ie.Connected}send(t){return this._send(t)}_connect(){switch(this.logger.log(`Connecting ${this.server}`),this.state){case Ie.Connecting:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(Ie.Connecting));if(!this.connectPromise)throw new Error("Connect promise must be defined.");return this.connectPromise;case Ie.Connected:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(Ie.Connecting));if(this.connectPromise)throw new Error("Connect promise must not be defined.");return Promise.resolve();case Ie.Disconnecting:if(this.connectPromise)throw new Error("Connect promise must not be defined.");try{this.transitionState(Ie.Connecting)}catch(r){if(r instanceof oi)return Promise.reject(r);throw r}break;case Ie.Disconnected:if(this.connectPromise)throw new Error("Connect promise must not be defined.");try{this.transitionState(Ie.Connecting)}catch(r){if(r instanceof oi)return Promise.reject(r);throw r}break;default:throw new Error("Unknown state")}let t;try{t=new WebSocket(this.server,"sip"),t.binaryType="arraybuffer",t.addEventListener("close",r=>this.onWebSocketClose(r,t)),t.addEventListener("error",r=>this.onWebSocketError(r,t)),t.addEventListener("open",r=>this.onWebSocketOpen(r,t)),t.addEventListener("message",r=>this.onWebSocketMessage(r,t)),this._ws=t}catch(r){return this._ws=void 0,this.logger.error("WebSocket construction failed."),this.logger.error(r.toString()),new Promise((n,s)=>{this.connectResolve=n,this.connectReject=s,this.transitionState(Ie.Disconnected,r)})}return this.connectPromise=new Promise((r,n)=>{this.connectResolve=r,this.connectReject=n,this.connectTimeout=setTimeout(()=>{this.logger.warn("Connect timed out. Exceeded time set in configuration.connectionTimeout: "+this.configuration.connectionTimeout+"s."),t.close(1e3)},this.configuration.connectionTimeout*1e3)}),this.connectPromise}_disconnect(){switch(this.logger.log(`Disconnecting ${this.server}`),this.state){case Ie.Connecting:if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");try{this.transitionState(Ie.Disconnecting)}catch(r){if(r instanceof oi)return Promise.reject(r);throw r}break;case Ie.Connected:if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");try{this.transitionState(Ie.Disconnecting)}catch(r){if(r instanceof oi)return Promise.reject(r);throw r}break;case Ie.Disconnecting:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(Ie.Disconnecting));if(!this.disconnectPromise)throw new Error("Disconnect promise must be defined.");return this.disconnectPromise;case Ie.Disconnected:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(Ie.Disconnecting));if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");return Promise.resolve();default:throw new Error("Unknown state")}if(!this._ws)throw new Error("WebSocket must be defined.");const t=this._ws;return this.disconnectPromise=new Promise((r,n)=>{this.disconnectResolve=r,this.disconnectReject=n;try{t.close(1e3)}catch(s){throw this.logger.error("WebSocket close failed."),this.logger.error(s.toString()),s}}),this.disconnectPromise}_send(t){if(this.configuration.traceSip===!0&&this.logger.log(`Sending WebSocket message:
|
|
57
57
|
|
|
58
58
|
`+t+`
|
|
59
|
-
`),this._state!==
|
|
59
|
+
`),this._state!==Ie.Connected)return Promise.reject(new Error("Not connected."));if(!this._ws)throw new Error("WebSocket undefined.");try{this._ws.send(t)}catch(r){return r instanceof Error?Promise.reject(r):Promise.reject(new Error("WebSocket send failed."))}return Promise.resolve()}onWebSocketClose(t,r){if(r!==this._ws)return;const n=`WebSocket closed ${this.server} (code: ${t.code})`,s=this.disconnectPromise?void 0:new Error(n);s&&this.logger.warn("WebSocket closed unexpectedly"),this.logger.log(n),this._ws=void 0,this.transitionState(Ie.Disconnected,s)}onWebSocketError(t,r){r===this._ws&&this.logger.error("WebSocket error occurred.")}onWebSocketMessage(t,r){if(r!==this._ws)return;const n=t.data;let s;if(/^(\r\n)+$/.test(n)){this.clearKeepAliveTimeout(),this.configuration.traceSip===!0&&this.logger.log("Received WebSocket message with CRLF Keep Alive response");return}if(!n){this.logger.warn("Received empty message, discarding...");return}if(typeof n!="string"){try{s=new TextDecoder().decode(new Uint8Array(n))}catch(i){this.logger.error(i.toString()),this.logger.error("Received WebSocket binary message failed to be converted into string, message discarded");return}this.configuration.traceSip===!0&&this.logger.log(`Received WebSocket binary message:
|
|
60
60
|
|
|
61
61
|
`+s+`
|
|
62
62
|
`)}else s=n,this.configuration.traceSip===!0&&this.logger.log(`Received WebSocket text message:
|
|
63
63
|
|
|
64
64
|
`+s+`
|
|
65
|
-
`);if(this.state!==
|
|
65
|
+
`);if(this.state!==Ie.Connected){this.logger.warn("Received message while not connected, discarding...");return}if(this.onMessage)try{this.onMessage(s)}catch(i){throw this.logger.error(i.toString()),this.logger.error("Exception thrown by onMessage callback"),i}}onWebSocketOpen(t,r){r===this._ws&&this._state===Ie.Connecting&&(this.logger.log(`WebSocket opened ${this.server}`),this.transitionState(Ie.Connected))}transitionLoopDetectedError(t){let r="A state transition loop has been detected.";return r+=` An attempt to transition from ${this._state} to ${t} before the prior transition completed.`,r+=" Perhaps you are synchronously calling connect() or disconnect() from a callback or state change handler?",this.logger.error(r),new oi("Loop detected.")}transitionState(t,r){const n=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};if(this.transitioningState)throw this.transitionLoopDetectedError(t);switch(this.transitioningState=!0,this._state){case Ie.Connecting:t!==Ie.Connected&&t!==Ie.Disconnecting&&t!==Ie.Disconnected&&n();break;case Ie.Connected:t!==Ie.Disconnecting&&t!==Ie.Disconnected&&n();break;case Ie.Disconnecting:t!==Ie.Connecting&&t!==Ie.Disconnected&&n();break;case Ie.Disconnected:t!==Ie.Connecting&&n();break;default:throw new Error("Unknown state.")}const s=this._state;this._state=t;const i=this.connectResolve,o=this.connectReject;s===Ie.Connecting&&(this.connectPromise=void 0,this.connectResolve=void 0,this.connectReject=void 0);const a=this.disconnectResolve,l=this.disconnectReject;if(s===Ie.Disconnecting&&(this.disconnectPromise=void 0,this.disconnectResolve=void 0,this.disconnectReject=void 0),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0),this.logger.log(`Transitioned from ${s} to ${this._state}`),this._stateEventEmitter.emit(this._state),t===Ie.Connected&&(this.startSendingKeepAlives(),this.onConnect))try{this.onConnect()}catch(c){throw this.logger.error(c.toString()),this.logger.error("Exception thrown by onConnect callback"),c}if(s===Ie.Connected&&(this.stopSendingKeepAlives(),this.onDisconnect))try{r?this.onDisconnect(r):this.onDisconnect()}catch(c){throw this.logger.error(c.toString()),this.logger.error("Exception thrown by onDisconnect callback"),c}if(s===Ie.Connecting){if(!i)throw new Error("Connect resolve undefined.");if(!o)throw new Error("Connect reject undefined.");t===Ie.Connected?i():o(r||new Error("Connect aborted."))}if(s===Ie.Disconnecting){if(!a)throw new Error("Disconnect resolve undefined.");if(!l)throw new Error("Disconnect reject undefined.");t===Ie.Disconnected?a():l(r||new Error("Disconnect aborted."))}this.transitioningState=!1}clearKeepAliveTimeout(){this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveDebounceTimeout=void 0}sendKeepAlive(){return this.keepAliveDebounceTimeout?Promise.resolve():(this.keepAliveDebounceTimeout=setTimeout(()=>{this.clearKeepAliveTimeout()},this.configuration.keepAliveDebounce*1e3),this.send(`\r
|
|
66
66
|
\r
|
|
67
|
-
`))}startSendingKeepAlives(){const t=r=>{const n=r*.8;return 1e3*(Math.random()*(r-n)+n)};this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(()=>{this.sendKeepAlive(),this.startSendingKeepAlives()},t(this.configuration.keepAliveInterval)))}stopSendingKeepAlives(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0}};Nf.defaultOptions={server:"",connectionTimeout:5,keepAliveInterval:0,keepAliveDebounce:10,traceSip:!0};var wn=class ta{constructor(t={}){if(this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this._state=wt.Stopped,this._stateEventEmitter=new ai,this.delegate=t.delegate,this.options=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ta.defaultOptions()),{sipjsId:Fn(5)}),{uri:new dn("sip","anonymous."+Fn(6),"anonymous.invalid")}),{viaHost:Fn(12)+".invalid"}),ta.stripUndefinedProperties(t)),this.options.hackIpInContact)if(typeof this.options.hackIpInContact=="boolean"&&this.options.hackIpInContact){const n=Math.floor(Math.random()*254+1);this.options.viaHost="192.0.2."+n}else this.options.hackIpInContact&&(this.options.viaHost=this.options.hackIpInContact);switch(this.loggerFactory=new D0,this.logger=this.loggerFactory.getLogger("sip.UserAgent"),this.loggerFactory.builtinEnabled=this.options.logBuiltinEnabled,this.loggerFactory.connector=this.options.logConnector,this.options.logLevel){case"error":this.loggerFactory.level=ht.error;break;case"warn":this.loggerFactory.level=ht.warn;break;case"log":this.loggerFactory.level=ht.log;break;case"debug":this.loggerFactory.level=ht.debug;break;default:break}if(this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(r=>{const n=this.options[r];switch(r){case"uri":case"sessionDescriptionHandlerFactory":this.logger.log("· "+r+": "+n);break;case"authorizationPassword":this.logger.log("· "+r+": NOT SHOWN");break;case"transportConstructor":this.logger.log("· "+r+": "+n.name);break;default:this.logger.log("· "+r+": "+JSON.stringify(n))}})),this.options.transportOptions){const r=this.options.transportOptions,n=r.maxReconnectionAttempts,s=r.reconnectionTimeout;n!==void 0&&this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),s!==void 0&&this.logger.warn('The transport option "reconnectionTimeout" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),t.reconnectionDelay===void 0&&s!==void 0&&(this.options.reconnectionDelay=s),t.reconnectionAttempts===void 0&&n!==void 0&&(this.options.reconnectionAttempts=n)}if(t.reconnectionDelay!==void 0&&this.logger.warn('The user agent option "reconnectionDelay" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),t.reconnectionAttempts!==void 0&&this.logger.warn('The user agent option "reconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),this._transport=new this.options.transportConstructor(this.getLogger("sip.Transport"),this.options.transportOptions),this.initTransportCallbacks(),this._contact=this.initContact(),this._instanceId=this.options.instanceId?this.options.instanceId:ta.newUUID(),ct.parse(this._instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");this._userAgentCore=this.initCore()}static makeURI(t){return ct.URIParse(t)}static defaultOptions(){return{allowLegacyNotifications:!1,authorizationHa1:"",authorizationPassword:"",authorizationUsername:"",delegate:{},contactName:"",contactParams:{transport:"ws"},displayName:"",forceRport:!1,gracefulShutdown:!0,hackAllowUnregisteredOptionTags:!1,hackIpInContact:!1,hackViaTcp:!1,instanceId:"",instanceIdAlwaysAdded:!1,logBuiltinEnabled:!0,logConfiguration:!0,logConnector:()=>{},logLevel:"log",noAnswerTimeout:60,preloadedRouteSet:[],reconnectionAttempts:0,reconnectionDelay:4,sendInitialProvisionalResponse:!0,sessionDescriptionHandlerFactory:nw(),sessionDescriptionHandlerFactoryOptions:{},sipExtension100rel:gr.Unsupported,sipExtensionReplaces:gr.Unsupported,sipExtensionExtraSupported:[],sipjsId:"",transportConstructor:Nf,transportOptions:{},uri:new dn("sip","anonymous","anonymous.invalid"),userAgentString:"SIP.js/"+b0,viaHost:""}}static newUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=Math.floor(Math.random()*16);return(t==="x"?r:r%4+8).toString(16)})}static stripUndefinedProperties(t){return Object.keys(t).reduce((r,n)=>(t[n]!==void 0&&(r[n]=t[n]),r),{})}get configuration(){return this.options}get contact(){return this._contact}get instanceId(){return this._instanceId}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get transport(){return this._transport}get userAgentCore(){return this._userAgentCore}getLogger(t,r){return this.loggerFactory.getLogger(t,r)}getLoggerFactory(){return this.loggerFactory}isConnected(){return this.transport.isConnected()}reconnect(){return this.state===wt.Stopped?Promise.reject(new Error("User agent stopped.")):Promise.resolve().then(()=>this.transport.connect())}start(){return this.state===wt.Started?(this.logger.warn("User agent already started"),Promise.resolve()):(this.logger.log(`Starting ${this.configuration.uri}`),this.transitionState(wt.Started),this.transport.connect())}async stop(){if(this.state===wt.Stopped)return this.logger.warn("User agent already stopped"),Promise.resolve();if(this.logger.log(`Stopping ${this.configuration.uri}`),!this.options.gracefulShutdown)return this.logger.log("Dispose of transport"),this.transport.dispose().catch(a=>{throw this.logger.error(a.message),a}),this.logger.log("Dispose of core"),this.userAgentCore.dispose(),this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this.transitionState(wt.Stopped),Promise.resolve();const t=Object.assign({},this._publishers),r=Object.assign({},this._registerers),n=Object.assign({},this._sessions),s=Object.assign({},this._subscriptions),i=this.transport,o=this.userAgentCore;this.logger.log("Dispose of registerers");for(const a in r)r[a]&&await r[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._registerers[a],l});this.logger.log("Dispose of sessions");for(const a in n)n[a]&&await n[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._sessions[a],l});this.logger.log("Dispose of subscriptions");for(const a in s)s[a]&&await s[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._subscriptions[a],l});this.logger.log("Dispose of publishers");for(const a in t)t[a]&&await t[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._publishers[a],l});this.logger.log("Dispose of transport"),await i.dispose().catch(a=>{throw this.logger.error(a.message),a}),this.logger.log("Dispose of core"),o.dispose(),this.transitionState(wt.Stopped)}_makeInviter(t,r){return new wl(this,t,r)}attemptReconnection(t=1){const r=this.options.reconnectionAttempts,n=this.options.reconnectionDelay;if(t>r){this.logger.log("Maximum reconnection attempts reached");return}this.logger.log(`Reconnection attempt ${t} of ${r} - trying`),setTimeout(()=>{this.reconnect().then(()=>{this.logger.log(`Reconnection attempt ${t} of ${r} - succeeded`)}).catch(s=>{this.logger.error(s.message),this.logger.log(`Reconnection attempt ${t} of ${r} - failed`),this.attemptReconnection(++t)})},t===1?0:n*1e3)}initContact(){const t=this.options.contactName!==""?this.options.contactName:Fn(8),r=this.options.contactParams;return{pubGruu:void 0,tempGruu:void 0,uri:new dn("sip",t,this.options.viaHost,void 0,r),toString:(n={})=>{const s=n.anonymous||!1,i=n.outbound||!1,o=n.register||!1;let a="<";return s?a+=this.contact.tempGruu||`sip:anonymous@anonymous.invalid;transport=${r.transport?r.transport:"ws"}`:o?a+=this.contact.uri:a+=this.contact.pubGruu||this.contact.uri,i&&(a+=";ob"),a+=">",this.options.instanceIdAlwaysAdded&&(a+=';+sip.instance="<urn:uuid:'+this._instanceId+'>"'),a}}}initCore(){let t=[];t.push("outbound"),this.options.sipExtension100rel===gr.Supported&&t.push("100rel"),this.options.sipExtensionReplaces===gr.Supported&&t.push("replaces"),this.options.sipExtensionExtraSupported&&t.push(...this.options.sipExtensionExtraSupported),this.options.hackAllowUnregisteredOptionTags||(t=t.filter(n=>$0[n])),t=Array.from(new Set(t));const r=t.slice();return(this.contact.pubGruu||this.contact.tempGruu)&&r.push("gruu"),new Q0({aor:this.options.uri,contact:this.contact,displayName:this.options.displayName,loggerFactory:this.loggerFactory,hackViaTcp:this.options.hackViaTcp,routeSet:this.options.preloadedRouteSet,supportedOptionTags:t,supportedOptionTagsResponse:r,sipjsId:this.options.sipjsId,userAgentHeaderFieldValue:this.options.userAgentString,viaForceRport:this.options.forceRport,viaHost:this.options.viaHost,authenticationFactory:()=>{const n=this.options.authorizationUsername?this.options.authorizationUsername:this.options.uri.user,s=this.options.authorizationPassword?this.options.authorizationPassword:void 0,i=this.options.authorizationHa1?this.options.authorizationHa1:void 0;return new P0(this.getLoggerFactory(),i,n,s)},transportAccessor:()=>this.transport},{onInvite:n=>{var s;const i=new yo(this,n);if(n.delegate={onCancel:o=>{i._onCancel(o)},onTransportError:o=>{this.logger.error("A transport error has occurred while handling an incoming INVITE request.")}},n.trying(),this.options.sipExtensionReplaces!==gr.Unsupported){const o=n.message.parseHeader("replaces");if(o){const a=o.call_id;if(typeof a!="string")throw new Error("Type of call id is not string");const l=o.replaces_to_tag;if(typeof l!="string")throw new Error("Type of to tag is not string");const c=o.replaces_from_tag;if(typeof c!="string")throw new Error("type of from tag is not string");const u=a+l+c,d=this.userAgentCore.dialogs.get(u);if(!d){i.reject({statusCode:481});return}if(!d.early&&o.early_only===!0){i.reject({statusCode:486});return}const p=this._sessions[a+c]||this._sessions[a+l]||void 0;if(!p)throw new Error("Session does not exist.");i._replacee=p}}if(!((s=this.delegate)===null||s===void 0)&&s.onInvite){if(i.autoSendAnInitialProvisionalResponse){i.progress().then(()=>{var o;if(((o=this.delegate)===null||o===void 0?void 0:o.onInvite)===void 0)throw new Error("onInvite undefined.");this.delegate.onInvite(i)});return}this.delegate.onInvite(i);return}i.reject({statusCode:486})},onMessage:n=>{if(this.delegate&&this.delegate.onMessage){const s=new Af(n);this.delegate.onMessage(s)}else n.accept()},onNotify:n=>{if(this.delegate&&this.delegate.onNotify){const s=new vl(n);this.delegate.onNotify(s)}else this.options.allowLegacyNotifications?n.accept():n.reject({statusCode:481})},onRefer:n=>{this.logger.warn("Received an out of dialog REFER request"),this.delegate&&this.delegate.onReferRequest?this.delegate.onReferRequest(n):n.reject({statusCode:405})},onRegister:n=>{this.logger.warn("Received an out of dialog REGISTER request"),this.delegate&&this.delegate.onRegisterRequest?this.delegate.onRegisterRequest(n):n.reject({statusCode:405})},onSubscribe:n=>{this.logger.warn("Received an out of dialog SUBSCRIBE request"),this.delegate&&this.delegate.onSubscribeRequest?this.delegate.onSubscribeRequest(n):n.reject({statusCode:405})}})}initTransportCallbacks(){this.transport.onConnect=()=>this.onTransportConnect(),this.transport.onDisconnect=t=>this.onTransportDisconnect(t),this.transport.onMessage=t=>this.onTransportMessage(t)}onTransportConnect(){this.state!==wt.Stopped&&this.delegate&&this.delegate.onConnect&&this.delegate.onConnect()}onTransportDisconnect(t){this.state!==wt.Stopped&&(this.delegate&&this.delegate.onDisconnect&&this.delegate.onDisconnect(t),t&&this.options.reconnectionAttempts>0&&this.attemptReconnection())}onTransportMessage(t){const r=bo.parseMessage(t,this.getLogger("sip.Parser"));if(!r){this.logger.warn("Failed to parse incoming message. Dropping.");return}if(this.state===wt.Stopped&&r instanceof ms){this.logger.warn(`Received ${r.method} request while stopped. Dropping.`);return}const n=()=>{for(const s of["from","to","call_id","cseq","via"])if(!r.hasHeader(s))return this.logger.warn(`Missing mandatory header field : ${s}.`),!1;return!0};if(r instanceof ms){if(!n()){this.logger.warn("Request missing mandatory header field. Dropping.");return}if(!r.toTag&&r.callId.substr(0,5)===this.options.sipjsId){this.userAgentCore.replyStateless(r,{statusCode:482});return}const s=li(r.body),i=r.getHeader("content-length");if(i&&s<Number(i)){this.userAgentCore.replyStateless(r,{statusCode:400});return}}if(r instanceof fn){if(!n()){this.logger.warn("Response missing mandatory header field. Dropping.");return}if(r.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response. Dropping.");return}if(r.via.host!==this.options.viaHost||r.via.port!==void 0){this.logger.warn("Via sent-by in the response does not match UA Via host value. Dropping.");return}const s=li(r.body),i=r.getHeader("content-length");if(i&&s<Number(i)){this.logger.warn("Message body length is lower than the value in Content-Length header field. Dropping.");return}}if(r instanceof ms){this.userAgentCore.receiveIncomingRequestFromTransport(r);return}if(r instanceof fn){this.userAgentCore.receiveIncomingResponseFromTransport(r);return}throw new Error("Invalid message type.")}transitionState(t,r){const n=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case wt.Started:t!==wt.Stopped&&n();break;case wt.Stopped:t!==wt.Started&&n();break;default:throw new Error("Unknown state.")}this.logger.log(`Transitioned from ${this._state} to ${t}`),this._state=t,this._stateEventEmitter.emit(this._state)}},gt=new window.AudioContext,sw={1:[697,1209],2:[697,1336],3:[697,1477],A:[697,1633],4:[770,1209],5:[770,1336],6:[770,1477],B:[770,1633],7:[852,1209],8:[852,1336],9:[852,1477],C:[852,1633],"*":[941,1209],0:[941,1336],"#":[941,1477],D:[941,1633]},ui=F(null),di=F(null),fi=F(.5);const Bf=()=>({playDtmf:(o,a=150)=>{gt.state==="suspended"&>.resume();const l=sw[o.toUpperCase()];if(!l)return;const c=gt.createOscillator(),u=gt.createOscillator(),d=gt.createGain();c.frequency.value=l[0],u.frequency.value=l[1],c.type="sine",u.type="sine",d.gain.value=.1*fi.value,c.connect(d),u.connect(d),d.connect(gt.destination),c.start(),u.start(),setTimeout(()=>{c.stop(),u.stop(),c.disconnect(),u.disconnect(),d.disconnect()},a)},startRingtone:()=>{if(ui.value)return;gt.state==="suspended"&>.resume();const o=()=>{const a=gt.currentTime,l=gt.createOscillator(),c=gt.createGain();l.type="sine",l.frequency.setValueAtTime(523.25,a),l.frequency.setValueAtTime(659.25,a+.1),l.frequency.setValueAtTime(783.99,a+.2),c.gain.setValueAtTime(.1*fi.value,a),c.gain.exponentialRampToValueAtTime(.001,a+.5),l.connect(c),c.connect(gt.destination),l.start(a),l.stop(a+.5)};o(),ui.value=window.setInterval(()=>{o(),setTimeout(o,400)},3e3)},stopRingtone:()=>{ui.value&&(clearInterval(ui.value),ui.value=null)},startRingback:()=>{if(di.value)return;gt.state==="suspended"&>.resume();const o=()=>{const a=gt.currentTime,l=gt.createOscillator(),c=gt.createGain();l.type="sine",l.frequency.value=425,c.gain.setValueAtTime(.1*fi.value,a),c.gain.linearRampToValueAtTime(.1*fi.value,a+1),c.gain.linearRampToValueAtTime(0,a+1.1),l.connect(c),c.connect(gt.destination),l.start(a),l.stop(a+1.1)};o(),di.value=window.setInterval(()=>{o()},4e3)},stopRingback:()=>{di.value&&(clearInterval(di.value),di.value=null)},setNotificationVolume:o=>{fi.value=Math.max(0,Math.min(1,o/100))}});function Lf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Lf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ff(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Lf(e))&&(n&&(n+=" "),n+=t);return n}var iw=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},ow=(e,t)=>({classGroupId:e,validator:t}),Vf=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Co="-",jf=[],aw="arbitrary..",lw=e=>{const t=uw(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return cw(o);const a=o.split(Co);return Uf(a,a[0]===""&&a.length>1?1:0,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=n[o],c=r[o];return l?c?iw(c,l):l:c||jf}return r[o]||jf}}},Uf=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],s=r.nextPart.get(n);if(s){const l=Uf(e,t+1,s);if(l)return l}const i=r.validators;if(i===null)return;const o=t===0?e.join(Co):e.slice(t).join(Co),a=i.length;for(let l=0;l<a;l++){const c=i[l];if(c.validator(o))return c.classGroupId}},cw=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?aw+n:void 0})(),uw=e=>{const{theme:t,classGroups:r}=e;return dw(r,t)},dw=(e,t)=>{const r=Vf();for(const n in e){const s=e[n];Sl(s,r,n,t)}return r},Sl=(e,t,r,n)=>{const s=e.length;for(let i=0;i<s;i++){const o=e[i];fw(o,t,r,n)}},fw=(e,t,r,n)=>{if(typeof e=="string"){pw(e,t,r);return}if(typeof e=="function"){hw(e,t,r,n);return}gw(e,t,r,n)},pw=(e,t,r)=>{const n=e===""?t:zf(t,e);n.classGroupId=r},hw=(e,t,r,n)=>{if(vw(e)){Sl(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(ow(r,e))},gw=(e,t,r,n)=>{const s=Object.entries(e),i=s.length;for(let o=0;o<i;o++){const[a,l]=s[o];Sl(l,zf(t,a),r,n)}},zf=(e,t)=>{let r=e;const n=t.split(Co),s=n.length;for(let i=0;i<s;i++){const o=n[i];let a=r.nextPart.get(o);a||(a=Vf(),r.nextPart.set(o,a)),r=a}return r},vw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,mw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const s=(i,o)=>{r[i]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let o=r[i];if(o!==void 0)return o;if((o=n[i])!==void 0)return s(i,o),o},set(i,o){i in r?r[i]=o:s(i,o)}}},Cl="!",Kf=":",ww=[],Wf=(e,t,r,n,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:s}),yw=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=s=>{const i=[];let o=0,a=0,l=0,c;const u=s.length;for(let b=0;b<u;b++){const C=s[b];if(o===0&&a===0){if(C===Kf){i.push(s.slice(l,b)),l=b+1;continue}if(C==="/"){c=b;continue}}C==="["?o++:C==="]"?o--:C==="("?a++:C===")"&&a--}const d=i.length===0?s:s.slice(l);let p=d,g=!1;d.endsWith(Cl)?(p=d.slice(0,-1),g=!0):d.startsWith(Cl)&&(p=d.slice(1),g=!0);const w=c&&c>l?c-l:void 0;return Wf(i,g,p,w)};if(t){const s=t+Kf,i=n;n=o=>o.startsWith(s)?i(o.slice(s.length)):Wf(ww,!1,o,void 0,!0)}if(r){const s=n;n=i=>r({className:i,parseClassName:s})}return n},bw=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let s=[];for(let i=0;i<r.length;i++){const o=r[i],a=o[0]==="[",l=t.has(o);a||l?(s.length>0&&(s.sort(),n.push(...s),s=[]),n.push(o)):s.push(o)}return s.length>0&&(s.sort(),n.push(...s)),n}},_w=e=>({cache:mw(e.cacheSize),parseClassName:yw(e),sortModifiers:bw(e),...lw(e)}),Sw=/\s+/,Cw=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:i}=t,o=[],a=e.trim().split(Sw);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:p,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:b}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let C=!!b,v=n(C?w.substring(0,b):w);if(!v){if(!C){l=u+(l.length>0?" "+l:l);continue}if(v=n(w),!v){l=u+(l.length>0?" "+l:l);continue}C=!1}const S=p.length===0?"":p.length===1?p[0]:i(p).join(":"),y=g?S+Cl:S,m=y+v;if(o.indexOf(m)>-1)continue;o.push(m);const _=s(v,C);for(let k=0;k<_.length;++k){const M=_[k];o.push(y+M)}l=u+(l.length>0?" "+l:l)}return l},xw=(...e)=>{let t=0,r,n,s="";for(;t<e.length;)(r=e[t++])&&(n=Gf(r))&&(s&&(s+=" "),s+=n);return s},Gf=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Gf(e[n]))&&(r&&(r+=" "),r+=t);return r},Tw=(e,...t)=>{let r,n,s,i;const o=l=>(r=_w(t.reduce((c,u)=>u(c),e())),n=r.cache.get,s=r.cache.set,i=a,a(l)),a=l=>{const c=n(l);if(c)return c;const u=Cw(l,r);return s(l,u),u};return i=o,(...l)=>i(xw(...l))},Ew=[],ut=e=>{const t=r=>r[e]||Ew;return t.isThemeGetter=!0,t},Jf=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Aw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Iw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yn=e=>Aw.test(e),De=e=>!!e&&!Number.isNaN(Number(e)),bn=e=>!!e&&Number.isInteger(Number(e)),xl=e=>e.endsWith("%")&&De(e.slice(0,-1)),Gr=e=>Iw.test(e),Zf=()=>!0,Dw=e=>kw.test(e)&&!Rw.test(e),Tl=()=>!1,Ow=e=>$w.test(e),Hw=e=>Pw.test(e),Mw=e=>!we(e)&&!ye(e),qw=e=>_n(e,np,Tl),we=e=>Jf.test(e),Vn=e=>_n(e,sp,Dw),Xf=e=>_n(e,zw,De),Nw=e=>_n(e,op,Zf),Bw=e=>_n(e,ip,Tl),Qf=e=>_n(e,tp,Tl),Lw=e=>_n(e,rp,Hw),xo=e=>_n(e,ap,Ow),ye=e=>Yf.test(e),pi=e=>jn(e,sp),Fw=e=>jn(e,ip),ep=e=>jn(e,tp),Vw=e=>jn(e,np),jw=e=>jn(e,rp),To=e=>jn(e,ap,!0),Uw=e=>jn(e,op,!0),_n=(e,t,r)=>{const n=Jf.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},jn=(e,t,r=!1)=>{const n=Yf.exec(e);return n?n[1]?t(n[1]):r:!1},tp=e=>e==="position"||e==="percentage",rp=e=>e==="image"||e==="url",np=e=>e==="length"||e==="size"||e==="bg-size",sp=e=>e==="length",zw=e=>e==="number",ip=e=>e==="family-name",op=e=>e==="number"||e==="weight",ap=e=>e==="shadow",Kw=()=>{const e=ut("color"),t=ut("font"),r=ut("text"),n=ut("font-weight"),s=ut("tracking"),i=ut("leading"),o=ut("breakpoint"),a=ut("container"),l=ut("spacing"),c=ut("radius"),u=ut("shadow"),d=ut("inset-shadow"),p=ut("text-shadow"),g=ut("drop-shadow"),w=ut("blur"),b=ut("perspective"),C=ut("aspect"),v=ut("ease"),S=ut("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],m=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...m(),ye,we],k=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],h=()=>[ye,we,l],O=()=>[yn,"full","auto",...h()],P=()=>[bn,"none","subgrid",ye,we],x=()=>["auto",{span:["full",bn,ye,we]},bn,ye,we],E=()=>[bn,"auto",ye,we],A=()=>["auto","min","max","fr",ye,we],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...h()],Z=()=>[yn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],J=()=>[yn,"screen","full","dvw","lvw","svw","min","max","fit",...h()],ie=()=>[yn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...h()],K=()=>[e,ye,we],ne=()=>[...m(),ep,Qf,{position:[ye,we]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xe=()=>["auto","cover","contain",Vw,qw,{size:[ye,we]}],Oe=()=>[xl,pi,Vn],_e=()=>["","none","full",c,ye,we],Se=()=>["",De,pi,Vn],z=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[De,xl,ep,Qf],oe=()=>["","none",w,ye,we],ae=()=>["none",De,ye,we],Te=()=>["none",De,ye,we],T=()=>[De,ye,we],I=()=>[yn,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gr],breakpoint:[Gr],color:[Zf],container:[Gr],"drop-shadow":[Gr],ease:["in","out","in-out"],font:[Mw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gr],shadow:[Gr],spacing:["px",De],text:[Gr],"text-shadow":[Gr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yn,we,ye,C]}],container:["container"],columns:[{columns:[De,we,ye,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[bn,"auto",ye,we]}],basis:[{basis:[yn,"full","auto",a,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,yn,"auto","initial","none",we]}],grow:[{grow:["",De,ye,we]}],shrink:[{shrink:["",De,ye,we]}],order:[{order:[bn,"first","last","none",ye,we]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:x()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:x()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pbs:[{pbs:h()}],pbe:[{pbe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mbs:[{mbs:W()}],mbe:[{mbe:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[a,"screen",...Z()]}],"min-w":[{"min-w":[a,"screen","none",...Z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",r,pi,Vn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Uw,Nw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xl,we]}],"font-family":[{font:[Fw,Bw,t]}],"font-features":[{"font-features":[we]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ye,we]}],"line-clamp":[{"line-clamp":[De,"none",ye,Xf]}],leading:[{leading:[i,...h()]}],"list-image":[{"list-image":["none",ye,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",ye,Vn]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[De,"auto",ye,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:xe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bn,ye,we],radial:["",ye,we],conic:[bn,ye,we]},jw,Lw]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:Oe()}],"gradient-via-pos":[{via:Oe()}],"gradient-to-pos":[{to:Oe()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:_e()}],"rounded-s":[{"rounded-s":_e()}],"rounded-e":[{"rounded-e":_e()}],"rounded-t":[{"rounded-t":_e()}],"rounded-r":[{"rounded-r":_e()}],"rounded-b":[{"rounded-b":_e()}],"rounded-l":[{"rounded-l":_e()}],"rounded-ss":[{"rounded-ss":_e()}],"rounded-se":[{"rounded-se":_e()}],"rounded-ee":[{"rounded-ee":_e()}],"rounded-es":[{"rounded-es":_e()}],"rounded-tl":[{"rounded-tl":_e()}],"rounded-tr":[{"rounded-tr":_e()}],"rounded-br":[{"rounded-br":_e()}],"rounded-bl":[{"rounded-bl":_e()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-bs":[{"border-bs":Se()}],"border-w-be":[{"border-be":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,ye,we]}],"outline-w":[{outline:["",De,pi,Vn]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",u,To,xo]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",d,To,xo]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[De,Vn]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",p,To,xo]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[De,ye,we]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[ye,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":m()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:xe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,we]}],filter:[{filter:["","none",ye,we]}],blur:[{blur:oe()}],brightness:[{brightness:[De,ye,we]}],contrast:[{contrast:[De,ye,we]}],"drop-shadow":[{"drop-shadow":["","none",g,To,xo]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",De,ye,we]}],"hue-rotate":[{"hue-rotate":[De,ye,we]}],invert:[{invert:["",De,ye,we]}],saturate:[{saturate:[De,ye,we]}],sepia:[{sepia:["",De,ye,we]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,we]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[De,ye,we]}],"backdrop-contrast":[{"backdrop-contrast":[De,ye,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,ye,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,ye,we]}],"backdrop-invert":[{"backdrop-invert":["",De,ye,we]}],"backdrop-opacity":[{"backdrop-opacity":[De,ye,we]}],"backdrop-saturate":[{"backdrop-saturate":[De,ye,we]}],"backdrop-sepia":[{"backdrop-sepia":["",De,ye,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",ye,we]}],ease:[{ease:["linear","initial",v,ye,we]}],delay:[{delay:[De,ye,we]}],animate:[{animate:["none",S,ye,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ye,we]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:Te()}],"scale-x":[{"scale-x":Te()}],"scale-y":[{"scale-y":Te()}],"scale-z":[{"scale-z":Te()}],"scale-3d":["scale-3d"],skew:[{skew:T()}],"skew-x":[{"skew-x":T()}],"skew-y":[{"skew-y":T()}],transform:[{transform:[ye,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:I()}],"translate-x":[{"translate-x":I()}],"translate-y":[{"translate-y":I()}],"translate-z":[{"translate-z":I()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mbs":[{"scroll-mbs":h()}],"scroll-mbe":[{"scroll-mbe":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pbs":[{"scroll-pbs":h()}],"scroll-pbe":[{"scroll-pbe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,we]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[De,pi,Vn,Xf]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ww=Tw(Kw);const tt=(...e)=>Ww(Ff(e)),lp=(e,t)=>{if(e){const r=El(e);if(r&&cp(r))return r;if(e.trim())return e.trim()}if(t){const r=El(t);if(r&&cp(r))return r;const n=Gw(t);if(n)return n;if(t.trim()&&!t.includes("@"))return t.trim()}return"Unknown"};var El=e=>e.replace(/[^\d+*#]/g,""),cp=e=>/^\+?[\d*#]{2,}$/.test(e),Gw=e=>{let t=e.match(/^([+]?[\d*#]{2,})\s*[-:]/);return t&&t[1]||(t=e.match(/\(([+]?[\d*#]{2,})\)/),t&&t[1])||(t=e.match(/(?:ext\.?|extension)\s*([+]?[\d*#]{2,})/i),t&&t[1])?t[1]:(t=e.match(/([+]?\d{1,3}[-.\s]?\(?\d{1,4}\)?[-.\s]?\d{1,4}[-.\s]?\d{1,9})/),t&&t[1]?El(t[1]):null)};const Jw=e=>{const t=et(null),r=et(null),n=et(new Map),s=new Audio;s.autoplay=!0;const i=et(void 0),o=et(null),a=et(null);let l=null,c=null;const u=V(()=>t.value?.configuration.uri?.user||""),{startRingtone:d,stopRingtone:p,startRingback:g,stopRingback:w,setNotificationVolume:b}=Bf(),C=()=>{e.channels.value.some(z=>z.status==="incoming")?d():p(),e.activeChannel.value?.status==="calling"?g():w()},v=z=>{s.volume=z/100},S=async z=>{typeof s.setSinkId=="function"&&await s.setSinkId(z)},y=z=>{i.value=z},m=(z,se)=>{let G=!1;const oe=z.sessionDescriptionHandler;return oe?.peerConnection&&oe.peerConnection.getSenders().forEach(ae=>{ae.track&&ae.track.kind==="audio"&&(ae.track.enabled=se,G=!0)}),G},_=z=>{let se=!1;return a.value&&a.value.getAudioTracks().forEach(G=>{G.enabled=z,se=!0}),se},k=(z,se)=>{const G=!(se?.isHeld||se?.isMuted),oe=m(z,G),ae=_(G);!oe&&!ae&&console.warn("[SipJs] No audio tracks found to apply channel audio state")},M=async z=>{const se=z.sessionDescriptionHandler?.peerConnection;if(!se)return;const G=se.getSenders().find(oe=>oe.track?.kind==="audio");if(G?.track){G.track.enabled||(G.track.enabled=!0);return}try{const[oe]=(await navigator.mediaDevices.getUserMedia(h(!1))).getAudioTracks();if(!oe)return;const ae=new MediaStream([oe]);a.value=ae;const Te=se.getSenders().find(T=>T.track===null);Te?await Te.replaceTrack(oe):se.addTrack(oe,ae)}catch(oe){console.warn("[SipJs] Failed to recover outbound audio track:",oe)}},h=(z=!1)=>{const se={echoCancellation:{ideal:!0},noiseSuppression:{ideal:!1},autoGainControl:{ideal:!1},channelCount:1};return i.value&&(se.deviceId={exact:i.value}),{audio:se,video:z}},O=async z=>{if(!t.value){try{(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(se=>se.stop())}catch(se){console.error("Microphone permission denied",se);return}try{const se=wn.makeURI(z.uri);if(!se)throw new Error("Invalid URI");t.value=new wn({uri:se,logLevel:"error",transportOptions:{server:z.transportOptions.server},authorizationUsername:z.authorizationUsername,authorizationPassword:z.authorizationPassword,reconnectionDelay:5,reconnectionAttempts:3,delegate:{onConnect:()=>e.setConnected(!0),onDisconnect:()=>e.setConnected(!1),onInvite:G=>E(G)}}),await t.value.start(),r.value=new yl(t.value),await r.value.register(),P()}catch{}}},P=()=>{let z=null,se=Date.now();const G=5e3,oe=(N=1e3)=>{z&&clearTimeout(z),z=setTimeout(async()=>{z=null,await x()},N)},ae=()=>{if(document.visibilityState==="visible"){const N=Date.now()-se;N>G?(console.log(`[SipJs] Device was suspended for ${Math.round(N/1e3)}s, reconnecting...`),oe(1500)):oe(500)}se=Date.now()},Te=()=>{console.log("[SipJs] Network online, reconnecting..."),oe(1e3)},T=()=>{console.log("[SipJs] Network offline"),e.setConnected(!1),z&&(clearTimeout(z),z=null)};let I=null;const B=()=>{I=setInterval(()=>{const N=Date.now(),ce=N-se;ce>3e4&&(console.log(`[SipJs] Heartbeat drift detected (${Math.round(ce/1e3)}s), device may have woken from sleep`),oe(1500)),se=N},1e3)},D=()=>{console.log("[SipJs] Page frozen"),I&&(clearInterval(I),I=null)},q=()=>{console.log("[SipJs] Page resumed"),se=Date.now(),B(),oe(1e3)};document.addEventListener("visibilitychange",ae),window.addEventListener("online",Te),window.addEventListener("offline",T),document.addEventListener("freeze",D),document.addEventListener("resume",q),B()},x=async()=>{if(t.value){if(!navigator.onLine){console.log("[SipJs] Skipping reconnect, device is offline");return}if(n.value.size>0){console.log("[SipJs] Skipping reconnect, active calls in progress");return}try{if(t.value.isConnected()||(console.log("[SipJs] Reconnecting..."),await t.value.reconnect()),r.value&&t.value.isConnected())try{await r.value.register()}catch{}}catch(z){console.error("[SipJs] Reconnection failed:",z)}}},E=z=>{console.log("[SipJs] 📞 Llamada entrante recibida"),console.log("[SipJs] Remote Identity URI:",z.remoteIdentity.uri.toString()),console.log("[SipJs] Remote Identity URI user:",z.remoteIdentity.uri.user),console.log("[SipJs] Remote Identity displayName:",z.remoteIdentity.displayName);const se=e.channels.value.find(Te=>Te.status==="idle");if(!se){console.warn("[SipJs] ⚠️ No hay canales disponibles, rechazando llamada"),z.reject();return}const G=se.id;n.value.set(G,z);const oe=z.body?z.body.includes("m=video"):!1,ae=lp(z.remoteIdentity.uri.user,z.remoteIdentity.displayName);console.log("[SipJs] 📋 Caller number extraído:",ae),console.log("[SipJs] 🎥 Video:",oe?"Sí":"No"),e.updateChannelState(G,{status:"incoming",remoteNumber:ae,remoteDisplayName:z.remoteIdentity.displayName||void 0,hasVideo:oe}),C(),e.setActiveChannelId(G),z.stateChange.addListener(Te=>{switch(Te){case U.Terminated:{const T=e.channels.value.find(B=>B.id===G),I=lp(z.remoteIdentity.uri.user,z.remoteIdentity.displayName);if(T?.status==="connected"){const B=Math.floor((Date.now()-(T.startTime||Date.now()))/1e3);e.addCallLog({number:I,direction:"incoming",status:"answered",startTime:T.startTime||Date.now(),duration:B})}else T?.status==="incoming"&&e.addCallLog({number:I,direction:"incoming",status:"missed",startTime:Date.now(),duration:0});e.updateChannelState(G,{status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,hasVideo:!1,hasEarlyMedia:!1}),n.value.delete(G),e.activeChannelId.value===G&&Se(),C();break}case U.Established:e.updateChannelState(G,{status:"connected",startTime:Date.now()}),e.activeChannelId.value===G&&(_e(z),M(z)),C();break}})},A=async(z,se=!1)=>{if(!t.value)return;const G=e.activeChannelId.value;if(n.value.has(G))return;let oe=wn.makeURI(z);if(!oe&&t.value.configuration.uri){const T=t.value.configuration.uri.host;oe=wn.makeURI(`sip:${z}@${T}`)}if(!oe)return;const ae=new wl(t.value,oe);n.value.set(G,ae),e.updateChannelState(G,{status:"calling",remoteNumber:z,hasVideo:se}),e.setLastDialedNumber(z),C(),ae.stateChange.addListener(T=>{switch(T){case U.Established:e.channels.value.find(I=>I.id===G)?.status!=="connected"&&(e.updateChannelState(G,{status:"connected",startTime:Date.now()}),_e(ae),M(ae),C());break;case U.Terminated:{const I=e.channels.value.find(B=>B.id===G);if(I?.status==="connected"){const B=Math.floor((Date.now()-(I.startTime||Date.now()))/1e3);e.addCallLog({number:z,direction:"outgoing",status:"answered",startTime:I.startTime||Date.now(),duration:B})}else e.addCallLog({number:z,direction:"outgoing",status:"cancelled",startTime:Date.now(),duration:0});e.updateChannelState(G,{status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1}),n.value.delete(G),e.activeChannelId.value===G&&Se(),C();break}}});const Te={sessionDescriptionHandlerOptions:{constraints:h(se)},requestDelegate:{onProgress:T=>{(T.message.statusCode===180||T.message.statusCode===183)&&(T.message.body&&(e.updateChannelState(G,{hasEarlyMedia:!0}),_e(ae)),C())},onAccept:T=>{e.channels.value.find(I=>I.id===G)?.status!=="connected"&&(e.updateChannelState(G,{status:"connected",startTime:Date.now()}),_e(ae),M(ae),C())}}};await ae.invite(Te)},Y=async(z=!1)=>{const se=e.activeChannelId.value,G=n.value.get(se);if(G instanceof yo&&G.state===U.Initial){for(const[ae,Te]of n.value.entries())if(ae!==e.activeChannelId.value&&Te.state===U.Established&&!e.channels.value.find(T=>T.id===ae)?.isHeld)try{await Z(Te,!0),e.updateChannelState(ae,{isHeld:!0})}catch(T){console.error(`[SipJs] Failed to hold channel ${ae}:`,T)}const oe={sessionDescriptionHandlerOptions:{constraints:h(z)}};e.updateChannelState(se,{status:"connected",startTime:Date.now()});try{await G.accept(oe),await M(G),C()}catch(ae){const Te=n.value.get(se);throw Te instanceof yo&&Te.state===U.Initial&&e.updateChannelState(se,{status:"incoming",startTime:void 0}),ae}}},Q=async()=>{const z=n.value.get(e.activeChannelId.value);if(z)switch(z.state){case U.Initial:case U.Establishing:z instanceof wl?await z.cancel():z instanceof yo&&await z.reject();break;case U.Established:await z.bye();break}},W=()=>{const z=n.value.get(e.activeChannelId.value);if(!z)return;const se=!e.isMuted.value;e.setMuted(se),k(z,e.channels.value.find(G=>G.id===e.activeChannelId.value))},Z=async(z,se)=>{const G={sessionDescriptionHandlerOptions:{hold:se}};await z.invite(G)},J=async()=>{const z=n.value.get(e.activeChannelId.value);if(z?.state!==U.Established)return;const se=!e.isHeld.value;try{await Z(z,se),e.setHeld(se),k(z,e.channels.value.find(G=>G.id===e.activeChannelId.value))}catch{}},ie=async z=>{const se=e.activeChannelId.value;if(se===z)return;const G=n.value.get(se),oe=n.value.get(z),ae=e.channels.value.find(T=>T.id===se),Te=e.channels.value.find(T=>T.id===z);if(G&&G.state===U.Established&&!ae?.isHeld)try{await Z(G,!0),e.updateChannelState(se,{isHeld:!0}),k(G,e.channels.value.find(T=>T.id===se))}catch{}if(e.setActiveChannelId(z),C(),oe&&oe.state===U.Established){if(Te?.isHeld)try{await Z(oe,!1),e.updateChannelState(z,{isHeld:!1})}catch{}k(oe,e.channels.value.find(T=>T.id===z)),_e(oe)}else Se()},K=z=>{const se=n.value.get(e.activeChannelId.value);if(se?.state!==U.Established)return;const G={requestOptions:{body:{content:`Signal=${z}\r
|
|
68
|
-
Duration=160`,contentType:"application/dtmf-relay",contentDisposition:"signal"}}};se.info(G)},ne=async z=>{console.log("[SipJs] 🔄 transferCall iniciado"),console.log("[SipJs] Target:",z);const se=e.activeChannelId.value,G=n.value.get(se);if(!G)throw console.error("[SipJs] ❌ No hay sesión activa en el canal",se),new Error("No active session to transfer");if(console.log("[SipJs] Sesión encontrada - Estado:",G.state),console.log("[SipJs] Dialog ID:",G.dialog?.id),console.log("[SipJs] Call ID:",G.dialog?.callId),G.state!==U.Established)throw console.error("[SipJs] ❌ Sesión no establecida. Estado actual:",G.state),new Error(`Cannot transfer call. Call is not established (state: ${G.state})`);let oe=wn.makeURI(z);if(!oe&&t.value?.configuration.uri){const ae=t.value.configuration.uri.host;console.log("[SipJs] Construyendo URI con dominio:",ae),oe=wn.makeURI(`sip:${z}@${ae}`)}if(!oe)throw console.error("[SipJs] ❌ URI de destino inválida:",z),new Error(`Invalid transfer target: ${z}`);console.log("[SipJs] 📤 URI de transferencia:",oe.toString()),console.log("[SipJs] URI scheme:",oe.scheme),console.log("[SipJs] URI user:",oe.user),console.log("[SipJs] URI host:",oe.host);try{console.log("[SipJs] 🚀 Enviando REFER..."),await G.refer(oe,{requestDelegate:{onAccept:ae=>{console.log("[SipJs] ✅ Transfer REFER aceptado por el servidor (202 Accepted)"),console.log("[SipJs] Response:",ae.message)},onReject:ae=>{const Te=ae.message.statusCode;console.error("[SipJs] ❌ Transfer REFER rechazado:",Te),console.error("[SipJs] Response completo:",ae.message)}},onNotify:ae=>{console.log("[SipJs] 📬 NOTIFY recibido para transferencia"),console.log("[SipJs] NOTIFY request:",ae.request),ae.accept();const Te=ae.request.body;if(console.log("[SipJs] NOTIFY body:",Te),Te){const T=Te.match(/SIP\/2\.0\s+(\d{3})(.*)/);if(T&&T[1]){const I=parseInt(T[1],10),B=T[2]?.trim()||"";if(console.log("[SipJs] 📊 Status code:",I),console.log("[SipJs] 📊 Status text:",B),I>=200&&I<300)console.log("[SipJs] ✅ Transferencia exitosa! Terminando sesión..."),setTimeout(()=>{G.bye().catch(D=>{console.warn("[SipJs] Error hanging up after successful transfer:",D)})},500);else if(I>=400){console.error("[SipJs] ❌ Transfer falló con status:",I,B),console.log("[SipJs] 🔄 Manteniendo la sesión activa para el usuario");const D={404:"Número no encontrado",486:"Número ocupado",487:"Transferencia cancelada",503:"Servicio no disponible - el destino puede estar fuera de línea"}[I]||`Error en transferencia (código ${I})`;console.warn("[SipJs] 💬",D)}else I>=100&&I<200&&console.log("[SipJs] 📞 Transferencia en progreso:",I,B)}else console.warn("[SipJs] ⚠️ No se pudo extraer el código de estado del NOTIFY body")}else console.warn("[SipJs] ⚠️ NOTIFY sin body")}}),console.log("[SipJs] ✅ REFER enviado exitosamente (promesa resuelta)")}catch(ae){throw console.error("[SipJs] ❌ Error en transferCall:",ae),console.error("[SipJs] Error type:",ae?.constructor?.name),console.error("[SipJs] Error message:",ae instanceof Error?ae.message:String(ae)),console.error("[SipJs] Error stack:",ae instanceof Error?ae.stack:"N/A"),ae}},de=async z=>{console.log("[SipJs] 🔄 startAttendedTransfer iniciado"),console.log("[SipJs] Target:",z);const se=e.activeChannelId.value,G=n.value.get(se);if(console.log("[SipJs] Canal original:",se),console.log("[SipJs] Sesión original:",G?.state),!G||G.state!==U.Established)throw console.error("[SipJs] ❌ No hay llamada establecida para transferir"),new Error("No established call to transfer");const oe=e.channels.value.find(ae=>ae.status==="idle");if(console.log("[SipJs] Canal de consulta encontrado:",oe?.id),!oe)throw console.error("[SipJs] ❌ No hay canales disponibles para llamada de consulta"),new Error("No available channel for consultation call");try{console.log("[SipJs] 🔇 Poniendo llamada original en hold..."),await Z(G,!0),e.updateChannelState(se,{isHeld:!0}),console.log("[SipJs] ✅ Llamada original en hold")}catch(ae){throw console.error("[SipJs] ❌ Failed to hold original call:",ae),new Error("Failed to put call on hold")}console.log("[SipJs] 🔄 Cambiando al canal de consulta:",oe.id),e.setActiveChannelId(oe.id);try{console.log("[SipJs] 📞 Iniciando llamada de consulta a:",z),await A(z,!1),console.log("[SipJs] ✅ Llamada de consulta iniciada"),e.setTransferInProgress({originalChannelId:se,consultationChannelId:oe.id,targetNumber:z}),console.log("[SipJs] 📋 Transferencia en progreso registrada")}catch(ae){throw console.error("[SipJs] ❌ Failed to start consultation call:",ae),console.log("[SipJs] 🔄 Volviendo al canal original y quitando hold..."),e.setActiveChannelId(se),await Z(G,!1).catch(()=>{}),e.updateChannelState(se,{isHeld:!1}),new Error("Failed to initiate consultation call")}},xe=async()=>{console.log("[SipJs] 🔄 completeAttendedTransfer iniciado");const z=e.transferInProgress.value;if(!z)throw console.error("[SipJs] ❌ No hay transferencia en progreso"),new Error("No transfer in progress");console.log("[SipJs] Estado de transferencia:",z);const se=n.value.get(z.originalChannelId),G=n.value.get(z.consultationChannelId);if(console.log("[SipJs] Sesión original:",se?.state),console.log("[SipJs] Sesión de consulta:",G?.state),!se||!G)throw console.error("[SipJs] ❌ Falta una o ambas sesiones"),new Error("Missing session for transfer");if(G.state!==U.Established)throw console.error("[SipJs] ❌ Llamada de consulta no está establecida. Estado:",G.state),new Error("Consultation call not established");const oe=G.dialog;if(!oe)throw new Error("No dialog available for consultation session");const ae=oe.callId,Te=oe.remoteTag,T=oe.localTag;let I=wn.makeURI(z.targetNumber);if(!I&&t.value?.configuration.uri){const D=t.value.configuration.uri.host;I=wn.makeURI(`sip:${z.targetNumber}@${D}`)}if(!I)throw new Error("Invalid transfer target URI");const B=`${encodeURIComponent(ae)}%3Bto-tag%3D${encodeURIComponent(Te)}%3Bfrom-tag%3D${encodeURIComponent(T)}`;I.setHeader("Replaces",B);try{await se.refer(I,{onNotify:D=>{D.accept();const q=D.request.body,N=typeof q=="string"?q:q&&typeof q=="object"&&"content"in q?q.content:void 0;if(N){const ce=N.match(/SIP\/2\.0\s+(\d+)/);if(ce&&ce[1]){const le=parseInt(ce[1]);le>=200&&le<300?setTimeout(()=>{se.bye().catch(()=>{}),G.bye().catch(()=>{}),e.setTransferInProgress(null)},500):le>=400&&(console.error("[SipJs] Attended transfer failed with status:",le),e.setTransferInProgress(null))}}},requestDelegate:{onAccept:()=>{},onReject:D=>{console.error("[SipJs] Attended transfer REFER rejected:",D.message.statusCode),e.setTransferInProgress(null)}}})}catch(D){throw console.error("[SipJs] Attended transfer failed:",D),D}},Oe=async()=>{const z=e.transferInProgress.value;if(!z)throw new Error("No transfer in progress");console.log("[SipJs] Canceling attended transfer...");const se=n.value.get(z.originalChannelId),G=n.value.get(z.consultationChannelId);if(G)try{await G.bye(),console.log("[SipJs] Consultation call ended")}catch(oe){console.warn("[SipJs] Error ending consultation:",oe)}if(se)try{e.setActiveChannelId(z.originalChannelId),await Z(se,!1),e.updateChannelState(z.originalChannelId,{isHeld:!1}),console.log("[SipJs] Returned to original call")}catch(oe){console.warn("[SipJs] Error resuming original call:",oe)}e.setTransferInProgress(null)},_e=z=>{const se=z.sessionDescriptionHandler;if(!se){console.error("[SipJs] setupRemoteMedia: no sessionDescriptionHandler");return}const G=se.remoteMediaStream;if(!G){console.error("[SipJs] setupRemoteMedia: no remoteMediaStream on SDH");return}if(o.value===G)return;s.pause(),s.srcObject=null,l?.abort(),l=new AbortController,o.value=G,a.value=se.localMediaStream??null;const oe=Te=>{c?.abort(),c=new AbortController;const{signal:T}=c,I=()=>{s.play().catch(B=>{B.name!=="AbortError"&&console.error("[SipJs] play() failed:",B.name,B.message)})};Te.addEventListener("mute",()=>{s.pause()},{signal:T}),Te.addEventListener("unmute",()=>{I()},{signal:T}),Te.muted||I()};G.addEventListener("addtrack",Te=>{Te.track.kind==="audio"&&(s.srcObject=null,s.srcObject=G,oe(Te.track))},{signal:l.signal});const[ae]=G.getTracks();ae&&(s.srcObject=G,oe(ae))},Se=()=>{c?.abort(),c=null,l?.abort(),l=null,s.pause(),s.srcObject=null,o.value=null,a.value=null};return{initUserAgent:O,makeCall:A,answerCall:Y,hangupCall:Q,toggleMute:W,toggleHold:J,sendDTMF:K,transferCall:ne,startAttendedTransfer:de,completeAttendedTransfer:xe,cancelAttendedTransfer:Oe,switchChannel:ie,extension:u,setVolume:v,setNotificationVolume:b,setOutputDevice:S,setInputDevice:y,remoteStream:o,localStream:a}};var up=e=>typeof e=="boolean"?`${e}`:e===0?"0":e;const dp=Ff,Yw=(e,t)=>r=>{var n;if(t?.variants==null)return dp(e,r?.class,r?.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(l=>{const c=r?.[l],u=i?.[l];if(c===null)return null;const d=up(c)||up(u);return s[l][d]}),a=r&&Object.entries(r).reduce((l,c)=>{let[u,d]=c;return d===void 0||(l[u]=d),l},{});return dp(e,o,t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:u,className:d,...p}=c;return Object.entries(p).every(g=>{let[w,b]=g;return Array.isArray(b)?b.includes({...i,...a}[w]):{...i,...a}[w]===b})?[...l,u,d]:l},[]),r?.class,r?.className)};function Zw(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xw(e,t,r){Zw(e,t),t.set(e,r)}function Qw(e,t,r){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function Eo(e,t){return e.get(Qw(e,t))}function fp(e){return typeof e=="string"?`'${e}'`:new ey().serialize(e)}var ey=(function(){var e=new WeakMap;class t{constructor(){Xw(this,e,new Map)}compare(n,s){const i=typeof n,o=typeof s;return i==="string"&&o==="string"?n.localeCompare(s):i==="number"&&o==="number"?n-s:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(s,!0))}serialize(n,s){if(n===null)return"null";switch(typeof n){case"string":return s?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const s=Object.prototype.toString.call(n);if(s!=="[object Object]")return this.serializeBuiltInType(s.length<10?`unknown:${s}`:s.slice(8,-1),n);const i=n.constructor,o=i===Object||i===void 0?"":i.name;if(o!==""&&globalThis[o]===i)return this.serializeBuiltInType(o,n);if(typeof n.toJSON=="function"){const a=n.toJSON();return o+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(o,Object.entries(n))}serializeBuiltInType(n,s){const i=this["$"+n];if(i)return i.call(this,s);if(typeof s?.entries=="function")return this.serializeObjectEntries(n,s.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,s){const i=Array.from(s).sort((a,l)=>this.compare(a[0],l[0]));let o=`${n}{`;for(let a=0;a<i.length;a++){const[l,c]=i[a];o+=`${this.serialize(l,!0)}:${this.serialize(c)}`,a<i.length-1&&(o+=",")}return o+"}"}$object(n){let s=Eo(e,this).get(n);return s===void 0&&(Eo(e,this).set(n,`#${Eo(e,this).size}`),s=this.serializeObject(n),Eo(e,this).set(n,s)),s}$function(n){const s=Function.prototype.toString.call(n);return s.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${s.replace(/\s*\n\s*/g,"")}`}$Array(n){let s="[";for(let i=0;i<n.length;i++)s+=this.serialize(n[i]),i<n.length-1&&(s+=",");return s+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((s,i)=>this.compare(s,i)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const r of["Error","RegExp","URL"])t.prototype["$"+r]=function(n){return`${r}(${n})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+r]=function(n){return`${r}[${n.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])t.prototype["$"+r]=function(n){return`${r}[${n.join("n,")}${n.length>0?"n":""}]`};return t})();function ty(e,t){return e===t||fp(e)===fp(t)}function hi(e,t=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY){return Math.min(r,Math.max(t,e))}function xt(e,t){const r=typeof e=="string"&&!t?`${e}Context`:t,n=Symbol(r);return[o=>{const a=kt(n,o);if(a||a===null)return a;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(as(n,o),o)]}function Ut(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Al(e,t,r){const n=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),n.dispatchEvent(s)}function Il(e){return e==null}function kl(e){return e?e.flatMap(t=>t.type===Be?kl(t.children):[t]):[]}var[Ao,ox]=xt("ConfigProvider");function ry(e,t){var r;const n=et();return Qe(()=>{n.value=e()},{...t,flush:(r=t?.flush)!==null&&r!==void 0?r:"sync"}),_t(n)}function Sn(e,t){return ki()?(la(e,t),!0):!1}function ny(){const e=new Set,t=i=>{e.delete(i)};return{on:i=>{e.add(i);const o=()=>t(i);return Sn(o),{off:o}},off:t,trigger:(...i)=>Promise.all(Array.from(e).map(o=>o(...i))),clear:()=>{e.clear()}}}function sy(e){let t=!1,r;const n=aa(!0);return((...s)=>(t||(r=n.run(()=>e(...s)),t=!0),r))}var Tt=typeof window<"u"&&typeof document<"u",ax=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,iy=e=>typeof e<"u",oy=Object.prototype.toString,ay=e=>oy.call(e)==="[object Object]",Jr=()=>{},Rl=ly();function ly(){var e,t,r;return Tt&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((r=window)===null||r===void 0?void 0:r.navigator.userAgent))}function cy(...e){if(e.length!==1)return ba(...e);const t=e[0];return typeof t=="function"?_t(Ns(()=>({get:t,set:Jr}))):F(t)}function pp(e,t){function r(...n){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(s).catch(i)})}return r}var hp=e=>e();function uy(e,t={}){let r,n,s=Jr;const i=l=>{clearTimeout(l),s(),s=Jr};let o;return l=>{const c=Ce(e),u=Ce(t.maxWait);return r&&i(r),c<=0||u!==void 0&&u<=0?(n&&(i(n),n=void 0),Promise.resolve(l())):new Promise((d,p)=>{s=t.rejectOnCancel?p:d,o=l,u&&!n&&(n=setTimeout(()=>{r&&i(r),n=void 0,d(o())},u)),r=setTimeout(()=>{n&&i(n),n=void 0,d(l())},c)})}}function dy(e=hp,t={}){const{initialState:r="active"}=t,n=cy(r==="active");function s(){n.value=!1}function i(){n.value=!0}return{isActive:_t(n),pause:s,resume:i,eventFilter:(...a)=>{n.value&&e(...a)}}}function $l(e){return Array.isArray(e)?e:[e]}function gp(e){const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))}var fy=/\B([A-Z])/g,lx=gp(e=>e.replace(fy,"-$1").toLowerCase()),py=/-(\w)/g,cx=gp(e=>e.replace(py,(t,r)=>r?r.toUpperCase():""));function vp(e){return e||it()}function hy(e){if(!Tt)return e;let t=0,r,n;const s=()=>{t-=1,n&&t<=0&&(n.stop(),r=void 0,n=void 0)};return((...i)=>(t+=1,n||(n=aa(!0),r=n.run(()=>e(...i))),Sn(s),r))}function gy(e){return Mr(Ge(e)?new Proxy({},{get(t,r,n){return f(Reflect.get(e.value,r,n))},set(t,r,n){return Ge(e.value[r])&&!Ge(n)?e.value[r].value=n:e.value[r]=n,!0},deleteProperty(t,r){return Reflect.deleteProperty(e.value,r)},has(t,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function vy(e){return gy(V(e))}function Nt(e,...t){const r=t.flat(),n=r[0];return vy(()=>Object.fromEntries(typeof n=="function"?Object.entries(St(e)).filter(([s,i])=>!n(Ce(i),s)):Object.entries(St(e)).filter(s=>!r.includes(s[0]))))}function mp(e,t=1e4){return Ns((r,n)=>{let s=Ce(e),i;const o=()=>setTimeout(()=>{s=Ce(e),n()},Ce(t));return Sn(()=>{clearTimeout(i)}),{get(){return r(),s},set(a){s=a,n(),clearTimeout(i),i=o()}}})}function Pl(e,t=200,r={}){return pp(uy(t,r),e)}function my(e,t,r={}){const{eventFilter:n=hp,...s}=r;return ke(e,pp(n,t),s)}function wy(e,t,r={}){const{eventFilter:n,initialState:s="active",...i}=r,{eventFilter:o,pause:a,resume:l,isActive:c}=dy(n,{initialState:s});return{stop:my(e,t,{...i,eventFilter:o}),pause:a,resume:l,isActive:c}}function yy(e,t={}){if(!Ge(e))return St(e);const r=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)r[n]=Ns(()=>({get(){return e.value[n]},set(s){var i;if(!((i=Ce(t.replaceRef))!==null&&i!==void 0)||i)if(Array.isArray(e.value)){const o=[...e.value];o[n]=s,e.value=o}else{const o={...e.value,[n]:s};Object.setPrototypeOf(o,Object.getPrototypeOf(e.value)),e.value=o}else e.value[n]=s}}));return r}function by(e,t){vp(t)&&fs(e,t)}function _y(e,t=!0,r){vp(r)?Ke(e,r):t?e():ft(e)}function Sy(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:s=!1}=r;let i=null;const o=et(!1);function a(){i&&(clearInterval(i),i=null)}function l(){o.value=!1,a()}function c(){const u=Ce(t);u<=0||(o.value=!0,s&&e(),a(),o.value&&(i=setInterval(e,u)))}return n&&Tt&&c(),(Ge(t)||typeof t=="function")&&Sn(ke(t,()=>{o.value&&Tt&&c()})),Sn(l),{isActive:qr(o),pause:l,resume:c}}function wp(e,t,r={}){const{immediate:n=!0,immediateCallback:s=!1}=r,i=et(!1);let o;function a(){o&&(clearTimeout(o),o=void 0)}function l(){i.value=!1,a()}function c(...u){s&&e(),a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=void 0,e(...u)},Ce(t))}return n&&(i.value=!0,Tt&&c()),Sn(l),{isPending:qr(i),start:c,stop:l}}function Cy(e,t,r){return ke(e,t,{...r,immediate:!0})}function xy(e,t,r){return ke(e,t,{...r,once:!0})}var vr=Tt?window:void 0,ux=Tt?window.document:void 0,dx=Tt?window.navigator:void 0,fx=Tt?window.location:void 0;function Bt(e){var t;const r=Ce(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function Pt(...e){const t=(n,s,i,o)=>(n.addEventListener(s,i,o),()=>n.removeEventListener(s,i,o)),r=V(()=>{const n=$l(Ce(e[0])).filter(s=>s!=null);return n.every(s=>typeof s!="string")?n:void 0});return Cy(()=>{var n,s;return[(n=(s=r.value)===null||s===void 0?void 0:s.map(i=>Bt(i)))!==null&&n!==void 0?n:[vr].filter(i=>i!=null),$l(Ce(r.value?e[1]:e[0])),$l(f(r.value?e[2]:e[1])),Ce(r.value?e[3]:e[2])]},([n,s,i,o],a,l)=>{if(!n?.length||!s?.length||!i?.length)return;const c=ay(o)?{...o}:o,u=n.flatMap(d=>s.flatMap(p=>i.map(g=>t(d,p,g,c))));l(()=>{u.forEach(d=>d())})},{flush:"post"})}var yp=!1;function Ty(e,t,r={}){const{window:n=vr,ignore:s=[],capture:i=!0,detectIframe:o=!1,controls:a=!1}=r;if(!n)return a?{stop:Jr,cancel:Jr,trigger:Jr}:Jr;if(Rl&&!yp){yp=!0;const C={passive:!0};Array.from(n.document.body.children).forEach(v=>v.addEventListener("click",Jr,C)),n.document.documentElement.addEventListener("click",Jr,C)}let l=!0;const c=C=>Ce(s).some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(S=>S===C.target||C.composedPath().includes(S));{const S=Bt(v);return S&&(C.target===S||C.composedPath().includes(S))}});function u(C){const v=Ce(C);return v&&v.$.subTree.shapeFlag===16}function d(C,v){const S=Ce(C),y=S.$.subTree&&S.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(m=>m.el===v.target||v.composedPath().includes(m.el))}const p=C=>{const v=Bt(e);if(C.target!=null&&!(!(v instanceof Element)&&u(e)&&d(e,C))&&!(!v||v===C.target||C.composedPath().includes(v))){if("detail"in C&&C.detail===0&&(l=!c(C)),!l){l=!0;return}t(C)}};let g=!1;const w=[Pt(n,"click",C=>{g||(g=!0,setTimeout(()=>{g=!1},0),p(C))},{passive:!0,capture:i}),Pt(n,"pointerdown",C=>{const v=Bt(e);l=!c(C)&&!!(v&&!C.composedPath().includes(v))},{passive:!0}),o&&Pt(n,"blur",C=>{setTimeout(()=>{var v;const S=Bt(e);((v=n.document.activeElement)===null||v===void 0?void 0:v.tagName)==="IFRAME"&&!S?.contains(n.document.activeElement)&&t(C)},0)},{passive:!0})].filter(Boolean),b=()=>w.forEach(C=>C());return a?{stop:b,cancel:()=>{l=!1},trigger:C=>{l=!0,p(C),l=!1}}:b}function Dl(){const e=et(!1),t=it();return t&&Ke(()=>{e.value=!0},t),e}function bp(e){const t=Dl();return V(()=>(t.value,!!e()))}function Ey(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Ay(...e){let t,r,n={};e.length===3?(t=e[0],r=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],n=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=vr,eventName:i="keydown",passive:o=!1,dedupe:a=!1}=n,l=Ey(t);return Pt(s,i,u=>{u.repeat&&Ce(a)||l(u)&&r(u)},o)}function Iy(e){return JSON.parse(JSON.stringify(e))}var Io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ko="__vueuse_ssr_handlers__",ky=Ry();function Ry(){return ko in Io||(Io[ko]=Io[ko]||{}),Io[ko]}function $y(e,t){return ky[e]||t}function Py(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Dy={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},_p="vueuse-storage";function Ro(e,t,r,n={}){var s;const{flush:i="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=vr,eventFilter:p,onError:g=Y=>{console.error(Y)},initOnMounted:w}=n,b=(u?et:F)(typeof t=="function"?t():t),C=V(()=>Ce(e));if(!r)try{r=$y("getDefaultStorage",()=>vr?.localStorage)()}catch(Y){g(Y)}if(!r)return b;const v=Ce(t),S=Py(v),y=(s=n.serializer)!==null&&s!==void 0?s:Dy[S],{pause:m,resume:_}=wy(b,Y=>P(Y),{flush:i,deep:o,eventFilter:p});ke(C,()=>E(),{flush:i});let k=!1;const M=Y=>{w&&!k||E(Y)},h=Y=>{w&&!k||A(Y)};d&&a&&(r instanceof Storage?Pt(d,"storage",M,{passive:!0}):Pt(d,_p,h)),w?_y(()=>{k=!0,E()}):E();function O(Y,Q){if(d){const W={key:C.value,oldValue:Y,newValue:Q,storageArea:r};d.dispatchEvent(r instanceof Storage?new StorageEvent("storage",W):new CustomEvent(_p,{detail:W}))}}function P(Y){try{const Q=r.getItem(C.value);if(Y==null)O(Q,null),r.removeItem(C.value);else{const W=y.write(Y);Q!==W&&(r.setItem(C.value,W),O(Q,W))}}catch(Q){g(Q)}}function x(Y){const Q=Y?Y.newValue:r.getItem(C.value);if(Q==null)return l&&v!=null&&r.setItem(C.value,y.write(v)),v;if(!Y&&c){const W=y.read(Q);return typeof c=="function"?c(W,v):S==="object"&&!Array.isArray(W)?{...v,...W}:W}else return typeof Q!="string"?Q:y.read(Q)}function E(Y){if(!(Y&&Y.storageArea!==r)){if(Y&&Y.key==null){b.value=v;return}if(!(Y&&Y.key!==C.value)){m();try{const Q=y.write(b.value);(Y===void 0||Y?.newValue!==Q)&&(b.value=x(Y))}catch(Q){g(Q)}finally{Y?ft(_):_()}}}}function A(Y){E(Y.detail)}return b}var $o={speed:2,margin:30,direction:"both"};function Oy(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function Hy(e,t={}){var r,n,s,i;const{pointerTypes:o,preventDefault:a,stopPropagation:l,exact:c,onMove:u,onEnd:d,onStart:p,initialValue:g,axis:w="both",draggingElement:b=vr,containerElement:C,handle:v=e,buttons:S=[0],restrictInView:y,autoScroll:m=!1}=t,_=F((r=Ce(g))!==null&&r!==void 0?r:{x:0,y:0}),k=F(),M=ne=>o?o.includes(ne.pointerType):!0,h=ne=>{Ce(a)&&ne.preventDefault(),Ce(l)&&ne.stopPropagation()},O=Ce(m),P=typeof O=="object"?{speed:(n=Ce(O.speed))!==null&&n!==void 0?n:$o.speed,margin:(s=Ce(O.margin))!==null&&s!==void 0?s:$o.margin,direction:(i=O.direction)!==null&&i!==void 0?i:$o.direction}:$o,x=ne=>typeof ne=="number"?[ne,ne]:[ne.x,ne.y],E=(ne,de,xe)=>{const{clientWidth:Oe,clientHeight:_e,scrollLeft:Se,scrollTop:z,scrollWidth:se,scrollHeight:G}=ne,[oe,ae]=x(P.margin),[Te,T]=x(P.speed);let I=0,B=0;(P.direction==="x"||P.direction==="both")&&(xe.x<oe&&Se>0?I=-Te:xe.x+de.width>Oe-oe&&Se<se-Oe&&(I=Te)),(P.direction==="y"||P.direction==="both")&&(xe.y<ae&&z>0?B=-T:xe.y+de.height>_e-ae&&z<G-_e&&(B=T)),(I||B)&&ne.scrollBy({left:I,top:B,behavior:"auto"})};let A=null;const Y=()=>{const ne=Ce(C);ne&&!A&&(A=setInterval(()=>{const de=Ce(e).getBoundingClientRect(),{x:xe,y:Oe}=_.value,_e={x:xe-ne.scrollLeft,y:Oe-ne.scrollTop};_e.x>=0&&_e.y>=0&&(E(ne,de,_e),_e.x+=ne.scrollLeft,_e.y+=ne.scrollTop,_.value=_e)},1e3/60))},Q=()=>{A&&(clearInterval(A),A=null)},W=(ne,de,xe,Oe)=>{const[_e,Se]=typeof xe=="number"?[xe,xe]:[xe.x,xe.y],{clientWidth:z,clientHeight:se}=de;return ne.x<_e||ne.x+Oe.width>z-_e||ne.y<Se||ne.y+Oe.height>se-Se},Z=()=>{if(Ce(t.disabled)||!k.value)return;const ne=Ce(C);if(!ne)return;const de=Ce(e).getBoundingClientRect(),{x:xe,y:Oe}=_.value;W({x:xe-ne.scrollLeft,y:Oe-ne.scrollTop},ne,P.margin,de)?Y():Q()};Ce(m)&&ke(_,Z);const J=ne=>{var de;if(!Ce(S).includes(ne.button)||Ce(t.disabled)||!M(ne)||Ce(c)&&ne.target!==Ce(e))return;const xe=Ce(C),Oe=xe==null||(de=xe.getBoundingClientRect)===null||de===void 0?void 0:de.call(xe),_e=Ce(e).getBoundingClientRect(),Se={x:ne.clientX-(xe?_e.left-Oe.left+(m?0:xe.scrollLeft):_e.left),y:ne.clientY-(xe?_e.top-Oe.top+(m?0:xe.scrollTop):_e.top)};p?.(Se,ne)!==!1&&(k.value=Se,h(ne))},ie=ne=>{if(Ce(t.disabled)||!M(ne)||!k.value)return;const de=Ce(C);de instanceof HTMLElement&&Oy(de);const xe=Ce(e).getBoundingClientRect();let{x:Oe,y:_e}=_.value;if((w==="x"||w==="both")&&(Oe=ne.clientX-k.value.x,de&&(Oe=Math.min(Math.max(0,Oe),de.scrollWidth-xe.width))),(w==="y"||w==="both")&&(_e=ne.clientY-k.value.y,de&&(_e=Math.min(Math.max(0,_e),de.scrollHeight-xe.height))),Ce(m)&&de&&(A===null&&E(de,xe,{x:Oe,y:_e}),Oe+=de.scrollLeft,_e+=de.scrollTop),de&&(y||m)){if(w!=="y"){const Se=Oe-de.scrollLeft;Se<0?Oe=de.scrollLeft:Se>de.clientWidth-xe.width&&(Oe=de.clientWidth-xe.width+de.scrollLeft)}if(w!=="x"){const Se=_e-de.scrollTop;Se<0?_e=de.scrollTop:Se>de.clientHeight-xe.height&&(_e=de.clientHeight-xe.height+de.scrollTop)}}_.value={x:Oe,y:_e},u?.(_.value,ne),h(ne)},K=ne=>{Ce(t.disabled)||!M(ne)||k.value&&(k.value=void 0,m&&Q(),d?.(_.value,ne),h(ne))};if(Tt){const ne=()=>{var de;return{capture:(de=t.capture)!==null&&de!==void 0?de:!0,passive:!Ce(a)}};Pt(v,"pointerdown",J,ne),Pt(b,"pointermove",ie,ne),Pt(b,"pointerup",K,ne)}return{...yy(_),position:_,isDragging:V(()=>!!k.value),style:V(()=>`
|
|
67
|
+
`))}startSendingKeepAlives(){const t=r=>{const n=r*.8;return 1e3*(Math.random()*(r-n)+n)};this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(()=>{this.sendKeepAlive(),this.startSendingKeepAlives()},t(this.configuration.keepAliveInterval)))}stopSendingKeepAlives(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0}};qf.defaultOptions={server:"",connectionTimeout:5,keepAliveInterval:0,keepAliveDebounce:10,traceSip:!0};var wn=class ta{constructor(t={}){if(this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this._state=wt.Stopped,this._stateEventEmitter=new ai,this.delegate=t.delegate,this.options=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ta.defaultOptions()),{sipjsId:Fn(5)}),{uri:new dn("sip","anonymous."+Fn(6),"anonymous.invalid")}),{viaHost:Fn(12)+".invalid"}),ta.stripUndefinedProperties(t)),this.options.hackIpInContact)if(typeof this.options.hackIpInContact=="boolean"&&this.options.hackIpInContact){const n=Math.floor(Math.random()*254+1);this.options.viaHost="192.0.2."+n}else this.options.hackIpInContact&&(this.options.viaHost=this.options.hackIpInContact);switch(this.loggerFactory=new D0,this.logger=this.loggerFactory.getLogger("sip.UserAgent"),this.loggerFactory.builtinEnabled=this.options.logBuiltinEnabled,this.loggerFactory.connector=this.options.logConnector,this.options.logLevel){case"error":this.loggerFactory.level=ht.error;break;case"warn":this.loggerFactory.level=ht.warn;break;case"log":this.loggerFactory.level=ht.log;break;case"debug":this.loggerFactory.level=ht.debug;break;default:break}if(this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(r=>{const n=this.options[r];switch(r){case"uri":case"sessionDescriptionHandlerFactory":this.logger.log("· "+r+": "+n);break;case"authorizationPassword":this.logger.log("· "+r+": NOT SHOWN");break;case"transportConstructor":this.logger.log("· "+r+": "+n.name);break;default:this.logger.log("· "+r+": "+JSON.stringify(n))}})),this.options.transportOptions){const r=this.options.transportOptions,n=r.maxReconnectionAttempts,s=r.reconnectionTimeout;n!==void 0&&this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),s!==void 0&&this.logger.warn('The transport option "reconnectionTimeout" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),t.reconnectionDelay===void 0&&s!==void 0&&(this.options.reconnectionDelay=s),t.reconnectionAttempts===void 0&&n!==void 0&&(this.options.reconnectionAttempts=n)}if(t.reconnectionDelay!==void 0&&this.logger.warn('The user agent option "reconnectionDelay" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),t.reconnectionAttempts!==void 0&&this.logger.warn('The user agent option "reconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),this._transport=new this.options.transportConstructor(this.getLogger("sip.Transport"),this.options.transportOptions),this.initTransportCallbacks(),this._contact=this.initContact(),this._instanceId=this.options.instanceId?this.options.instanceId:ta.newUUID(),ct.parse(this._instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");this._userAgentCore=this.initCore()}static makeURI(t){return ct.URIParse(t)}static defaultOptions(){return{allowLegacyNotifications:!1,authorizationHa1:"",authorizationPassword:"",authorizationUsername:"",delegate:{},contactName:"",contactParams:{transport:"ws"},displayName:"",forceRport:!1,gracefulShutdown:!0,hackAllowUnregisteredOptionTags:!1,hackIpInContact:!1,hackViaTcp:!1,instanceId:"",instanceIdAlwaysAdded:!1,logBuiltinEnabled:!0,logConfiguration:!0,logConnector:()=>{},logLevel:"log",noAnswerTimeout:60,preloadedRouteSet:[],reconnectionAttempts:0,reconnectionDelay:4,sendInitialProvisionalResponse:!0,sessionDescriptionHandlerFactory:nw(),sessionDescriptionHandlerFactoryOptions:{},sipExtension100rel:gr.Unsupported,sipExtensionReplaces:gr.Unsupported,sipExtensionExtraSupported:[],sipjsId:"",transportConstructor:qf,transportOptions:{},uri:new dn("sip","anonymous","anonymous.invalid"),userAgentString:"SIP.js/"+b0,viaHost:""}}static newUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=Math.floor(Math.random()*16);return(t==="x"?r:r%4+8).toString(16)})}static stripUndefinedProperties(t){return Object.keys(t).reduce((r,n)=>(t[n]!==void 0&&(r[n]=t[n]),r),{})}get configuration(){return this.options}get contact(){return this._contact}get instanceId(){return this._instanceId}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get transport(){return this._transport}get userAgentCore(){return this._userAgentCore}getLogger(t,r){return this.loggerFactory.getLogger(t,r)}getLoggerFactory(){return this.loggerFactory}isConnected(){return this.transport.isConnected()}reconnect(){return this.state===wt.Stopped?Promise.reject(new Error("User agent stopped.")):Promise.resolve().then(()=>this.transport.connect())}start(){return this.state===wt.Started?(this.logger.warn("User agent already started"),Promise.resolve()):(this.logger.log(`Starting ${this.configuration.uri}`),this.transitionState(wt.Started),this.transport.connect())}async stop(){if(this.state===wt.Stopped)return this.logger.warn("User agent already stopped"),Promise.resolve();if(this.logger.log(`Stopping ${this.configuration.uri}`),!this.options.gracefulShutdown)return this.logger.log("Dispose of transport"),this.transport.dispose().catch(a=>{throw this.logger.error(a.message),a}),this.logger.log("Dispose of core"),this.userAgentCore.dispose(),this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this.transitionState(wt.Stopped),Promise.resolve();const t=Object.assign({},this._publishers),r=Object.assign({},this._registerers),n=Object.assign({},this._sessions),s=Object.assign({},this._subscriptions),i=this.transport,o=this.userAgentCore;this.logger.log("Dispose of registerers");for(const a in r)r[a]&&await r[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._registerers[a],l});this.logger.log("Dispose of sessions");for(const a in n)n[a]&&await n[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._sessions[a],l});this.logger.log("Dispose of subscriptions");for(const a in s)s[a]&&await s[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._subscriptions[a],l});this.logger.log("Dispose of publishers");for(const a in t)t[a]&&await t[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._publishers[a],l});this.logger.log("Dispose of transport"),await i.dispose().catch(a=>{throw this.logger.error(a.message),a}),this.logger.log("Dispose of core"),o.dispose(),this.transitionState(wt.Stopped)}_makeInviter(t,r){return new wl(this,t,r)}attemptReconnection(t=1){const r=this.options.reconnectionAttempts,n=this.options.reconnectionDelay;if(t>r){this.logger.log("Maximum reconnection attempts reached");return}this.logger.log(`Reconnection attempt ${t} of ${r} - trying`),setTimeout(()=>{this.reconnect().then(()=>{this.logger.log(`Reconnection attempt ${t} of ${r} - succeeded`)}).catch(s=>{this.logger.error(s.message),this.logger.log(`Reconnection attempt ${t} of ${r} - failed`),this.attemptReconnection(++t)})},t===1?0:n*1e3)}initContact(){const t=this.options.contactName!==""?this.options.contactName:Fn(8),r=this.options.contactParams;return{pubGruu:void 0,tempGruu:void 0,uri:new dn("sip",t,this.options.viaHost,void 0,r),toString:(n={})=>{const s=n.anonymous||!1,i=n.outbound||!1,o=n.register||!1;let a="<";return s?a+=this.contact.tempGruu||`sip:anonymous@anonymous.invalid;transport=${r.transport?r.transport:"ws"}`:o?a+=this.contact.uri:a+=this.contact.pubGruu||this.contact.uri,i&&(a+=";ob"),a+=">",this.options.instanceIdAlwaysAdded&&(a+=';+sip.instance="<urn:uuid:'+this._instanceId+'>"'),a}}}initCore(){let t=[];t.push("outbound"),this.options.sipExtension100rel===gr.Supported&&t.push("100rel"),this.options.sipExtensionReplaces===gr.Supported&&t.push("replaces"),this.options.sipExtensionExtraSupported&&t.push(...this.options.sipExtensionExtraSupported),this.options.hackAllowUnregisteredOptionTags||(t=t.filter(n=>$0[n])),t=Array.from(new Set(t));const r=t.slice();return(this.contact.pubGruu||this.contact.tempGruu)&&r.push("gruu"),new Q0({aor:this.options.uri,contact:this.contact,displayName:this.options.displayName,loggerFactory:this.loggerFactory,hackViaTcp:this.options.hackViaTcp,routeSet:this.options.preloadedRouteSet,supportedOptionTags:t,supportedOptionTagsResponse:r,sipjsId:this.options.sipjsId,userAgentHeaderFieldValue:this.options.userAgentString,viaForceRport:this.options.forceRport,viaHost:this.options.viaHost,authenticationFactory:()=>{const n=this.options.authorizationUsername?this.options.authorizationUsername:this.options.uri.user,s=this.options.authorizationPassword?this.options.authorizationPassword:void 0,i=this.options.authorizationHa1?this.options.authorizationHa1:void 0;return new P0(this.getLoggerFactory(),i,n,s)},transportAccessor:()=>this.transport},{onInvite:n=>{var s;const i=new yo(this,n);if(n.delegate={onCancel:o=>{i._onCancel(o)},onTransportError:o=>{this.logger.error("A transport error has occurred while handling an incoming INVITE request.")}},n.trying(),this.options.sipExtensionReplaces!==gr.Unsupported){const o=n.message.parseHeader("replaces");if(o){const a=o.call_id;if(typeof a!="string")throw new Error("Type of call id is not string");const l=o.replaces_to_tag;if(typeof l!="string")throw new Error("Type of to tag is not string");const c=o.replaces_from_tag;if(typeof c!="string")throw new Error("type of from tag is not string");const u=a+l+c,d=this.userAgentCore.dialogs.get(u);if(!d){i.reject({statusCode:481});return}if(!d.early&&o.early_only===!0){i.reject({statusCode:486});return}const p=this._sessions[a+c]||this._sessions[a+l]||void 0;if(!p)throw new Error("Session does not exist.");i._replacee=p}}if(!((s=this.delegate)===null||s===void 0)&&s.onInvite){if(i.autoSendAnInitialProvisionalResponse){i.progress().then(()=>{var o;if(((o=this.delegate)===null||o===void 0?void 0:o.onInvite)===void 0)throw new Error("onInvite undefined.");this.delegate.onInvite(i)});return}this.delegate.onInvite(i);return}i.reject({statusCode:486})},onMessage:n=>{if(this.delegate&&this.delegate.onMessage){const s=new Af(n);this.delegate.onMessage(s)}else n.accept()},onNotify:n=>{if(this.delegate&&this.delegate.onNotify){const s=new vl(n);this.delegate.onNotify(s)}else this.options.allowLegacyNotifications?n.accept():n.reject({statusCode:481})},onRefer:n=>{this.logger.warn("Received an out of dialog REFER request"),this.delegate&&this.delegate.onReferRequest?this.delegate.onReferRequest(n):n.reject({statusCode:405})},onRegister:n=>{this.logger.warn("Received an out of dialog REGISTER request"),this.delegate&&this.delegate.onRegisterRequest?this.delegate.onRegisterRequest(n):n.reject({statusCode:405})},onSubscribe:n=>{this.logger.warn("Received an out of dialog SUBSCRIBE request"),this.delegate&&this.delegate.onSubscribeRequest?this.delegate.onSubscribeRequest(n):n.reject({statusCode:405})}})}initTransportCallbacks(){this.transport.onConnect=()=>this.onTransportConnect(),this.transport.onDisconnect=t=>this.onTransportDisconnect(t),this.transport.onMessage=t=>this.onTransportMessage(t)}onTransportConnect(){this.state!==wt.Stopped&&this.delegate&&this.delegate.onConnect&&this.delegate.onConnect()}onTransportDisconnect(t){this.state!==wt.Stopped&&(this.delegate&&this.delegate.onDisconnect&&this.delegate.onDisconnect(t),t&&this.options.reconnectionAttempts>0&&this.attemptReconnection())}onTransportMessage(t){const r=bo.parseMessage(t,this.getLogger("sip.Parser"));if(!r){this.logger.warn("Failed to parse incoming message. Dropping.");return}if(this.state===wt.Stopped&&r instanceof ms){this.logger.warn(`Received ${r.method} request while stopped. Dropping.`);return}const n=()=>{for(const s of["from","to","call_id","cseq","via"])if(!r.hasHeader(s))return this.logger.warn(`Missing mandatory header field : ${s}.`),!1;return!0};if(r instanceof ms){if(!n()){this.logger.warn("Request missing mandatory header field. Dropping.");return}if(!r.toTag&&r.callId.substr(0,5)===this.options.sipjsId){this.userAgentCore.replyStateless(r,{statusCode:482});return}const s=li(r.body),i=r.getHeader("content-length");if(i&&s<Number(i)){this.userAgentCore.replyStateless(r,{statusCode:400});return}}if(r instanceof fn){if(!n()){this.logger.warn("Response missing mandatory header field. Dropping.");return}if(r.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response. Dropping.");return}if(r.via.host!==this.options.viaHost||r.via.port!==void 0){this.logger.warn("Via sent-by in the response does not match UA Via host value. Dropping.");return}const s=li(r.body),i=r.getHeader("content-length");if(i&&s<Number(i)){this.logger.warn("Message body length is lower than the value in Content-Length header field. Dropping.");return}}if(r instanceof ms){this.userAgentCore.receiveIncomingRequestFromTransport(r);return}if(r instanceof fn){this.userAgentCore.receiveIncomingResponseFromTransport(r);return}throw new Error("Invalid message type.")}transitionState(t,r){const n=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case wt.Started:t!==wt.Stopped&&n();break;case wt.Stopped:t!==wt.Started&&n();break;default:throw new Error("Unknown state.")}this.logger.log(`Transitioned from ${this._state} to ${t}`),this._state=t,this._stateEventEmitter.emit(this._state)}},gt=new window.AudioContext,sw={1:[697,1209],2:[697,1336],3:[697,1477],A:[697,1633],4:[770,1209],5:[770,1336],6:[770,1477],B:[770,1633],7:[852,1209],8:[852,1336],9:[852,1477],C:[852,1633],"*":[941,1209],0:[941,1336],"#":[941,1477],D:[941,1633]},ui=F(null),di=F(null),fi=F(.5);const Bf=()=>({playDtmf:(o,a=150)=>{gt.state==="suspended"&>.resume();const l=sw[o.toUpperCase()];if(!l)return;const c=gt.createOscillator(),u=gt.createOscillator(),d=gt.createGain();c.frequency.value=l[0],u.frequency.value=l[1],c.type="sine",u.type="sine",d.gain.value=.1*fi.value,c.connect(d),u.connect(d),d.connect(gt.destination),c.start(),u.start(),setTimeout(()=>{c.stop(),u.stop(),c.disconnect(),u.disconnect(),d.disconnect()},a)},startRingtone:()=>{if(ui.value)return;gt.state==="suspended"&>.resume();const o=()=>{const a=gt.currentTime,l=gt.createOscillator(),c=gt.createGain();l.type="sine",l.frequency.setValueAtTime(523.25,a),l.frequency.setValueAtTime(659.25,a+.1),l.frequency.setValueAtTime(783.99,a+.2),c.gain.setValueAtTime(.1*fi.value,a),c.gain.exponentialRampToValueAtTime(.001,a+.5),l.connect(c),c.connect(gt.destination),l.start(a),l.stop(a+.5)};o(),ui.value=window.setInterval(()=>{o(),setTimeout(o,400)},3e3)},stopRingtone:()=>{ui.value&&(clearInterval(ui.value),ui.value=null)},startRingback:()=>{if(di.value)return;gt.state==="suspended"&>.resume();const o=()=>{const a=gt.currentTime,l=gt.createOscillator(),c=gt.createGain();l.type="sine",l.frequency.value=425,c.gain.setValueAtTime(.1*fi.value,a),c.gain.linearRampToValueAtTime(.1*fi.value,a+1),c.gain.linearRampToValueAtTime(0,a+1.1),l.connect(c),c.connect(gt.destination),l.start(a),l.stop(a+1.1)};o(),di.value=window.setInterval(()=>{o()},4e3)},stopRingback:()=>{di.value&&(clearInterval(di.value),di.value=null)},setNotificationVolume:o=>{fi.value=Math.max(0,Math.min(1,o/100))}});function Lf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Lf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ff(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Lf(e))&&(n&&(n+=" "),n+=t);return n}var iw=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},ow=(e,t)=>({classGroupId:e,validator:t}),Vf=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Co="-",jf=[],aw="arbitrary..",lw=e=>{const t=uw(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return cw(o);const a=o.split(Co);return Uf(a,a[0]===""&&a.length>1?1:0,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=n[o],c=r[o];return l?c?iw(c,l):l:c||jf}return r[o]||jf}}},Uf=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],s=r.nextPart.get(n);if(s){const l=Uf(e,t+1,s);if(l)return l}const i=r.validators;if(i===null)return;const o=t===0?e.join(Co):e.slice(t).join(Co),a=i.length;for(let l=0;l<a;l++){const c=i[l];if(c.validator(o))return c.classGroupId}},cw=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?aw+n:void 0})(),uw=e=>{const{theme:t,classGroups:r}=e;return dw(r,t)},dw=(e,t)=>{const r=Vf();for(const n in e){const s=e[n];Sl(s,r,n,t)}return r},Sl=(e,t,r,n)=>{const s=e.length;for(let i=0;i<s;i++){const o=e[i];fw(o,t,r,n)}},fw=(e,t,r,n)=>{if(typeof e=="string"){pw(e,t,r);return}if(typeof e=="function"){hw(e,t,r,n);return}gw(e,t,r,n)},pw=(e,t,r)=>{const n=e===""?t:zf(t,e);n.classGroupId=r},hw=(e,t,r,n)=>{if(vw(e)){Sl(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(ow(r,e))},gw=(e,t,r,n)=>{const s=Object.entries(e),i=s.length;for(let o=0;o<i;o++){const[a,l]=s[o];Sl(l,zf(t,a),r,n)}},zf=(e,t)=>{let r=e;const n=t.split(Co),s=n.length;for(let i=0;i<s;i++){const o=n[i];let a=r.nextPart.get(o);a||(a=Vf(),r.nextPart.set(o,a)),r=a}return r},vw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,mw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const s=(i,o)=>{r[i]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let o=r[i];if(o!==void 0)return o;if((o=n[i])!==void 0)return s(i,o),o},set(i,o){i in r?r[i]=o:s(i,o)}}},Cl="!",Kf=":",ww=[],Wf=(e,t,r,n,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:s}),yw=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=s=>{const i=[];let o=0,a=0,l=0,c;const u=s.length;for(let y=0;y<u;y++){const T=s[y];if(o===0&&a===0){if(T===Kf){i.push(s.slice(l,y)),l=y+1;continue}if(T==="/"){c=y;continue}}T==="["?o++:T==="]"?o--:T==="("?a++:T===")"&&a--}const d=i.length===0?s:s.slice(l);let p=d,h=!1;d.endsWith(Cl)?(p=d.slice(0,-1),h=!0):d.startsWith(Cl)&&(p=d.slice(1),h=!0);const m=c&&c>l?c-l:void 0;return Wf(i,h,p,m)};if(t){const s=t+Kf,i=n;n=o=>o.startsWith(s)?i(o.slice(s.length)):Wf(ww,!1,o,void 0,!0)}if(r){const s=n;n=i=>r({className:i,parseClassName:s})}return n},bw=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let s=[];for(let i=0;i<r.length;i++){const o=r[i],a=o[0]==="[",l=t.has(o);a||l?(s.length>0&&(s.sort(),n.push(...s),s=[]),n.push(o)):s.push(o)}return s.length>0&&(s.sort(),n.push(...s)),n}},_w=e=>({cache:mw(e.cacheSize),parseClassName:yw(e),sortModifiers:bw(e),...lw(e)}),Sw=/\s+/,Cw=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:i}=t,o=[],a=e.trim().split(Sw);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:y}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let T=!!y,v=n(T?m.substring(0,y):m);if(!v){if(!T){l=u+(l.length>0?" "+l:l);continue}if(v=n(m),!v){l=u+(l.length>0?" "+l:l);continue}T=!1}const x=p.length===0?"":p.length===1?p[0]:i(p).join(":"),w=h?x+Cl:x,b=w+v;if(o.indexOf(b)>-1)continue;o.push(b);const _=s(v,T);for(let A=0;A<_.length;++A){const P=_[A];o.push(w+P)}l=u+(l.length>0?" "+l:l)}return l},xw=(...e)=>{let t=0,r,n,s="";for(;t<e.length;)(r=e[t++])&&(n=Gf(r))&&(s&&(s+=" "),s+=n);return s},Gf=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Gf(e[n]))&&(r&&(r+=" "),r+=t);return r},Tw=(e,...t)=>{let r,n,s,i;const o=l=>(r=_w(t.reduce((c,u)=>u(c),e())),n=r.cache.get,s=r.cache.set,i=a,a(l)),a=l=>{const c=n(l);if(c)return c;const u=Cw(l,r);return s(l,u),u};return i=o,(...l)=>i(xw(...l))},Ew=[],ut=e=>{const t=r=>r[e]||Ew;return t.isThemeGetter=!0,t},Jf=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Aw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Iw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yn=e=>Aw.test(e),$e=e=>!!e&&!Number.isNaN(Number(e)),bn=e=>!!e&&Number.isInteger(Number(e)),xl=e=>e.endsWith("%")&&$e(e.slice(0,-1)),Gr=e=>Iw.test(e),Zf=()=>!0,Dw=e=>Rw.test(e)&&!kw.test(e),Tl=()=>!1,Ow=e=>$w.test(e),Hw=e=>Pw.test(e),Mw=e=>!we(e)&&!ye(e),Nw=e=>_n(e,np,Tl),we=e=>Jf.test(e),Vn=e=>_n(e,sp,Dw),Xf=e=>_n(e,zw,$e),qw=e=>_n(e,op,Zf),Bw=e=>_n(e,ip,Tl),Qf=e=>_n(e,tp,Tl),Lw=e=>_n(e,rp,Hw),xo=e=>_n(e,ap,Ow),ye=e=>Yf.test(e),pi=e=>jn(e,sp),Fw=e=>jn(e,ip),ep=e=>jn(e,tp),Vw=e=>jn(e,np),jw=e=>jn(e,rp),To=e=>jn(e,ap,!0),Uw=e=>jn(e,op,!0),_n=(e,t,r)=>{const n=Jf.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},jn=(e,t,r=!1)=>{const n=Yf.exec(e);return n?n[1]?t(n[1]):r:!1},tp=e=>e==="position"||e==="percentage",rp=e=>e==="image"||e==="url",np=e=>e==="length"||e==="size"||e==="bg-size",sp=e=>e==="length",zw=e=>e==="number",ip=e=>e==="family-name",op=e=>e==="number"||e==="weight",ap=e=>e==="shadow",Kw=()=>{const e=ut("color"),t=ut("font"),r=ut("text"),n=ut("font-weight"),s=ut("tracking"),i=ut("leading"),o=ut("breakpoint"),a=ut("container"),l=ut("spacing"),c=ut("radius"),u=ut("shadow"),d=ut("inset-shadow"),p=ut("text-shadow"),h=ut("drop-shadow"),m=ut("blur"),y=ut("perspective"),T=ut("aspect"),v=ut("ease"),x=ut("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...b(),ye,we],A=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],g=()=>[ye,we,l],D=()=>[yn,"full","auto",...g()],O=()=>[bn,"none","subgrid",ye,we],S=()=>["auto",{span:["full",bn,ye,we]},bn,ye,we],E=()=>[bn,"auto",ye,we],I=()=>["auto","min","max","fr",ye,we],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...g()],ee=()=>[yn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],G=()=>[yn,"screen","full","dvw","lvw","svw","min","max","fit",...g()],le=()=>[yn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],K=()=>[e,ye,we],oe=()=>[...b(),ep,Qf,{position:[ye,we]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xe=()=>["auto","cover","contain",Vw,Nw,{size:[ye,we]}],De=()=>[xl,pi,Vn],Se=()=>["","none","full",c,ye,we],be=()=>["",$e,pi,Vn],Be=()=>["solid","dashed","dotted","double"],it=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[$e,xl,ep,Qf],ne=()=>["","none",m,ye,we],X=()=>["none",$e,ye,we],ue=()=>["none",$e,ye,we],C=()=>[$e,ye,we],R=()=>[yn,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gr],breakpoint:[Gr],color:[Zf],container:[Gr],"drop-shadow":[Gr],ease:["in","out","in-out"],font:[Mw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gr],shadow:[Gr],spacing:["px",$e],text:[Gr],"text-shadow":[Gr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yn,we,ye,T]}],container:["container"],columns:[{columns:[$e,we,ye,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[bn,"auto",ye,we]}],basis:[{basis:[yn,"full","auto",a,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$e,yn,"auto","initial","none",we]}],grow:[{grow:["",$e,ye,we]}],shrink:[{shrink:["",$e,ye,we]}],order:[{order:[bn,"first","last","none",ye,we]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pbs:[{pbs:g()}],pbe:[{pbe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mbs:[{mbs:W()}],mbe:[{mbe:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[a,"screen",...ee()]}],"min-w":[{"min-w":[a,"screen","none",...ee()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",r,pi,Vn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Uw,qw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xl,we]}],"font-family":[{font:[Fw,Bw,t]}],"font-features":[{"font-features":[we]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ye,we]}],"line-clamp":[{"line-clamp":[$e,"none",ye,Xf]}],leading:[{leading:[i,...g()]}],"list-image":[{"list-image":["none",ye,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Be(),"wavy"]}],"text-decoration-thickness":[{decoration:[$e,"from-font","auto",ye,Vn]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[$e,"auto",ye,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:xe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bn,ye,we],radial:["",ye,we],conic:[bn,ye,we]},jw,Lw]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:De()}],"gradient-via-pos":[{via:De()}],"gradient-to-pos":[{to:De()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:Se()}],"rounded-s":[{"rounded-s":Se()}],"rounded-e":[{"rounded-e":Se()}],"rounded-t":[{"rounded-t":Se()}],"rounded-r":[{"rounded-r":Se()}],"rounded-b":[{"rounded-b":Se()}],"rounded-l":[{"rounded-l":Se()}],"rounded-ss":[{"rounded-ss":Se()}],"rounded-se":[{"rounded-se":Se()}],"rounded-ee":[{"rounded-ee":Se()}],"rounded-es":[{"rounded-es":Se()}],"rounded-tl":[{"rounded-tl":Se()}],"rounded-tr":[{"rounded-tr":Se()}],"rounded-br":[{"rounded-br":Se()}],"rounded-bl":[{"rounded-bl":Se()}],"border-w":[{border:be()}],"border-w-x":[{"border-x":be()}],"border-w-y":[{"border-y":be()}],"border-w-s":[{"border-s":be()}],"border-w-e":[{"border-e":be()}],"border-w-bs":[{"border-bs":be()}],"border-w-be":[{"border-be":be()}],"border-w-t":[{"border-t":be()}],"border-w-r":[{"border-r":be()}],"border-w-b":[{"border-b":be()}],"border-w-l":[{"border-l":be()}],"divide-x":[{"divide-x":be()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":be()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Be(),"hidden","none"]}],"divide-style":[{divide:[...Be(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$e,ye,we]}],"outline-w":[{outline:["",$e,pi,Vn]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",u,To,xo]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",d,To,xo]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:be()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[$e,Vn]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":be()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",p,To,xo]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[$e,ye,we]}],"mix-blend":[{"mix-blend":[...it(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":it()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$e]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[ye,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[$e]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:xe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,we]}],filter:[{filter:["","none",ye,we]}],blur:[{blur:ne()}],brightness:[{brightness:[$e,ye,we]}],contrast:[{contrast:[$e,ye,we]}],"drop-shadow":[{"drop-shadow":["","none",h,To,xo]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",$e,ye,we]}],"hue-rotate":[{"hue-rotate":[$e,ye,we]}],invert:[{invert:["",$e,ye,we]}],saturate:[{saturate:[$e,ye,we]}],sepia:[{sepia:["",$e,ye,we]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,we]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[$e,ye,we]}],"backdrop-contrast":[{"backdrop-contrast":[$e,ye,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$e,ye,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$e,ye,we]}],"backdrop-invert":[{"backdrop-invert":["",$e,ye,we]}],"backdrop-opacity":[{"backdrop-opacity":[$e,ye,we]}],"backdrop-saturate":[{"backdrop-saturate":[$e,ye,we]}],"backdrop-sepia":[{"backdrop-sepia":["",$e,ye,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$e,"initial",ye,we]}],ease:[{ease:["linear","initial",v,ye,we]}],delay:[{delay:[$e,ye,we]}],animate:[{animate:["none",x,ye,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ye,we]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":["scale-3d"],skew:[{skew:C()}],"skew-x":[{"skew-x":C()}],"skew-y":[{"skew-y":C()}],transform:[{transform:[ye,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:R()}],"translate-x":[{"translate-x":R()}],"translate-y":[{"translate-y":R()}],"translate-z":[{"translate-z":R()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mbs":[{"scroll-mbs":g()}],"scroll-mbe":[{"scroll-mbe":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pbs":[{"scroll-pbs":g()}],"scroll-pbe":[{"scroll-pbe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,we]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[$e,pi,Vn,Xf]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ww=Tw(Kw);const et=(...e)=>Ww(Ff(e)),lp=(e,t)=>{if(e){const r=El(e);if(r&&cp(r))return r;if(e.trim())return e.trim()}if(t){const r=El(t);if(r&&cp(r))return r;const n=Gw(t);if(n)return n;if(t.trim()&&!t.includes("@"))return t.trim()}return"Unknown"};var El=e=>e.replace(/[^\d+*#]/g,""),cp=e=>/^\+?[\d*#]{2,}$/.test(e),Gw=e=>{let t=e.match(/^([+]?[\d*#]{2,})\s*[-:]/);return t&&t[1]||(t=e.match(/\(([+]?[\d*#]{2,})\)/),t&&t[1])||(t=e.match(/(?:ext\.?|extension)\s*([+]?[\d*#]{2,})/i),t&&t[1])?t[1]:(t=e.match(/([+]?\d{1,3}[-.\s]?\(?\d{1,4}\)?[-.\s]?\d{1,4}[-.\s]?\d{1,9})/),t&&t[1]?El(t[1]):null)};const Jw=e=>{const t=Qe(null),r=Qe(null),n=Qe(new Map),s=new Audio;s.autoplay=!0;const i=Qe(void 0),o=Qe(null),a=Qe(null);let l=null,c=null;const u=V(()=>t.value?.configuration.uri?.user||""),{startRingtone:d,stopRingtone:p,startRingback:h,stopRingback:m,setNotificationVolume:y}=Bf(),T=()=>{e.channels.value.some(B=>B.status==="incoming")?d():p(),e.activeChannel.value?.status==="calling"?h():m()},v=B=>{s.volume=B/100},x=async B=>{typeof s.setSinkId=="function"&&await s.setSinkId(B)},w=B=>{i.value=B},b=(B,ne)=>{let X=!1;const ue=B.sessionDescriptionHandler;return ue?.peerConnection&&ue.peerConnection.getSenders().forEach(C=>{C.track&&C.track.kind==="audio"&&(C.track.enabled=ne,X=!0)}),X},_=B=>{let ne=!1;return a.value&&a.value.getAudioTracks().forEach(X=>{X.enabled=B,ne=!0}),ne},A=(B,ne)=>{const X=!(ne?.isHeld||ne?.isMuted),ue=b(B,X),C=_(X);!ue&&!C&&console.warn("[SipJs] No audio tracks found to apply channel audio state")},P=B=>{for(const[ne,X]of n.value.entries())if(X===B)return e.channels.value.find(ue=>ue.id===ne)||null;return e.activeChannel.value||null},g=async B=>{const ne=B.sessionDescriptionHandler?.peerConnection;if(!ne)return;const X=P(B),ue=!(X?.isHeld||X?.isMuted),C=ne.getSenders().find(R=>R.track?.kind==="audio");if(C?.track){C.track.enabled=ue;return}try{const[R]=(await navigator.mediaDevices.getUserMedia(D(!1))).getAudioTracks();if(!R)return;R.enabled=ue;const M=new MediaStream([R]);a.value=M;const j=ne.getSenders().find(Y=>Y.track===null);j?await j.replaceTrack(R):ne.addTrack(R,M),A(B,X)}catch(R){console.warn("[SipJs] Failed to recover outbound audio track:",R)}},D=(B=!1)=>{const ne={echoCancellation:{ideal:!0},noiseSuppression:{ideal:!1},autoGainControl:{ideal:!1},channelCount:1};return i.value&&(ne.deviceId={exact:i.value}),{audio:ne,video:B}},O=async B=>{if(!t.value){try{(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(ne=>ne.stop())}catch(ne){console.error("Microphone permission denied",ne);return}try{const ne=wn.makeURI(B.uri);if(!ne)throw new Error("Invalid URI");t.value=new wn({uri:ne,logLevel:"error",transportOptions:{server:B.transportOptions.server},authorizationUsername:B.authorizationUsername,authorizationPassword:B.authorizationPassword,reconnectionDelay:5,reconnectionAttempts:3,delegate:{onConnect:()=>e.setConnected(!0),onDisconnect:()=>e.setConnected(!1),onInvite:X=>I(X)}}),await t.value.start(),r.value=new yl(t.value),await r.value.register(),S()}catch{}}},S=()=>{let B=null,ne=Date.now();const X=5e3,ue=(ae=1e3)=>{B&&clearTimeout(B),B=setTimeout(async()=>{B=null,await E()},ae)},C=()=>{if(document.visibilityState==="visible"){const ae=Date.now()-ne;ae>X?(console.log(`[SipJs] Device was suspended for ${Math.round(ae/1e3)}s, reconnecting...`),ue(1500)):ue(500)}ne=Date.now()},R=()=>{console.log("[SipJs] Network online, reconnecting..."),ue(1e3)},M=()=>{console.log("[SipJs] Network offline"),e.setConnected(!1),B&&(clearTimeout(B),B=null)};let j=null;const Y=()=>{j=setInterval(()=>{const ae=Date.now(),N=ae-ne;N>3e4&&(console.log(`[SipJs] Heartbeat drift detected (${Math.round(N/1e3)}s), device may have woken from sleep`),ue(1500)),ne=ae},1e3)},Z=()=>{console.log("[SipJs] Page frozen"),j&&(clearInterval(j),j=null)},ce=()=>{console.log("[SipJs] Page resumed"),ne=Date.now(),Y(),ue(1e3)};document.addEventListener("visibilitychange",C),window.addEventListener("online",R),window.addEventListener("offline",M),document.addEventListener("freeze",Z),document.addEventListener("resume",ce),Y()},E=async()=>{if(t.value){if(!navigator.onLine){console.log("[SipJs] Skipping reconnect, device is offline");return}if(n.value.size>0){console.log("[SipJs] Skipping reconnect, active calls in progress");return}try{if(t.value.isConnected()||(console.log("[SipJs] Reconnecting..."),await t.value.reconnect()),r.value&&t.value.isConnected())try{await r.value.register()}catch{}}catch(B){console.error("[SipJs] Reconnection failed:",B)}}},I=B=>{console.log("[SipJs] 📞 Llamada entrante recibida"),console.log("[SipJs] Remote Identity URI:",B.remoteIdentity.uri.toString()),console.log("[SipJs] Remote Identity URI user:",B.remoteIdentity.uri.user),console.log("[SipJs] Remote Identity displayName:",B.remoteIdentity.displayName);const ne=e.channels.value.find(R=>R.status==="idle");if(!ne){console.warn("[SipJs] ⚠️ No hay canales disponibles, rechazando llamada"),B.reject();return}const X=ne.id;n.value.set(X,B);const ue=B.body?B.body.includes("m=video"):!1,C=lp(B.remoteIdentity.uri.user,B.remoteIdentity.displayName);console.log("[SipJs] 📋 Caller number extraído:",C),console.log("[SipJs] 🎥 Video:",ue?"Sí":"No"),e.updateChannelState(X,{status:"incoming",remoteNumber:C,remoteDisplayName:B.remoteIdentity.displayName||void 0,hasVideo:ue}),T(),e.setActiveChannelId(X),B.stateChange.addListener(R=>{switch(R){case z.Terminated:{const M=e.channels.value.find(Y=>Y.id===X),j=lp(B.remoteIdentity.uri.user,B.remoteIdentity.displayName);if(M?.status==="connected"){const Y=Math.floor((Date.now()-(M.startTime||Date.now()))/1e3);e.addCallLog({number:j,direction:"incoming",status:"answered",startTime:M.startTime||Date.now(),duration:Y})}else M?.status==="incoming"&&e.addCallLog({number:j,direction:"incoming",status:"missed",startTime:Date.now(),duration:0});e.updateChannelState(X,{status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,hasVideo:!1,hasEarlyMedia:!1}),n.value.delete(X),e.activeChannelId.value===X&&it(),T();break}case z.Established:e.updateChannelState(X,{status:"connected",startTime:Date.now()}),e.activeChannelId.value===X&&(Be(B),g(B)),T();break}})},J=async(B,ne=!1)=>{if(!t.value)return;const X=e.activeChannelId.value;if(n.value.has(X))return;let ue=wn.makeURI(B);if(!ue&&t.value.configuration.uri){const M=t.value.configuration.uri.host;ue=wn.makeURI(`sip:${B}@${M}`)}if(!ue)return;const C=new wl(t.value,ue);n.value.set(X,C),e.updateChannelState(X,{status:"calling",remoteNumber:B,hasVideo:ne}),e.setLastDialedNumber(B),T(),C.stateChange.addListener(M=>{switch(M){case z.Established:e.channels.value.find(j=>j.id===X)?.status!=="connected"&&(e.updateChannelState(X,{status:"connected",startTime:Date.now()}),Be(C),g(C),T());break;case z.Terminated:{const j=e.channels.value.find(Y=>Y.id===X);if(j?.status==="connected"){const Y=Math.floor((Date.now()-(j.startTime||Date.now()))/1e3);e.addCallLog({number:B,direction:"outgoing",status:"answered",startTime:j.startTime||Date.now(),duration:Y})}else e.addCallLog({number:B,direction:"outgoing",status:"cancelled",startTime:Date.now(),duration:0});e.updateChannelState(X,{status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1}),n.value.delete(X),e.activeChannelId.value===X&&it(),T();break}}});const R={sessionDescriptionHandlerOptions:{constraints:D(ne)},requestDelegate:{onProgress:M=>{(M.message.statusCode===180||M.message.statusCode===183)&&(M.message.body&&(e.updateChannelState(X,{hasEarlyMedia:!0}),Be(C)),T())},onAccept:M=>{e.channels.value.find(j=>j.id===X)?.status!=="connected"&&(e.updateChannelState(X,{status:"connected",startTime:Date.now()}),Be(C),g(C),T())}}};await C.invite(R)},te=async(B=!1)=>{const ne=e.activeChannelId.value,X=n.value.get(ne);if(X instanceof yo&&X.state===z.Initial){for(const[C,R]of n.value.entries())if(C!==e.activeChannelId.value&&R.state===z.Established&&!e.channels.value.find(M=>M.id===C)?.isHeld)try{await G(R,!0),e.updateChannelState(C,{isHeld:!0})}catch(M){console.error(`[SipJs] Failed to hold channel ${C}:`,M)}const ue={sessionDescriptionHandlerOptions:{constraints:D(B)}};e.updateChannelState(ne,{status:"connected",startTime:Date.now()});try{await X.accept(ue),await g(X),T()}catch(C){const R=n.value.get(ne);throw R instanceof yo&&R.state===z.Initial&&e.updateChannelState(ne,{status:"incoming",startTime:void 0}),C}}},W=async()=>{const B=n.value.get(e.activeChannelId.value);if(B)switch(B.state){case z.Initial:case z.Establishing:B instanceof wl?await B.cancel():B instanceof yo&&await B.reject();break;case z.Established:await B.bye();break}},ee=()=>{const B=n.value.get(e.activeChannelId.value);if(!B)return;const ne=!e.isMuted.value;e.setMuted(ne),A(B,e.channels.value.find(X=>X.id===e.activeChannelId.value))},G=async(B,ne)=>{const X={sessionDescriptionHandlerOptions:{hold:ne}};await B.invite(X)},le=async()=>{const B=n.value.get(e.activeChannelId.value);if(B?.state!==z.Established)return;const ne=!e.isHeld.value;try{await G(B,ne),e.setHeld(ne),A(B,e.channels.value.find(X=>X.id===e.activeChannelId.value))}catch{}},K=async B=>{const ne=e.activeChannelId.value;if(ne===B)return;const X=n.value.get(ne),ue=n.value.get(B),C=e.channels.value.find(M=>M.id===ne),R=e.channels.value.find(M=>M.id===B);if(X&&X.state===z.Established&&!C?.isHeld)try{await G(X,!0),e.updateChannelState(ne,{isHeld:!0}),A(X,e.channels.value.find(M=>M.id===ne))}catch{}if(e.setActiveChannelId(B),T(),ue&&ue.state===z.Established){if(R?.isHeld)try{await G(ue,!1),e.updateChannelState(B,{isHeld:!1})}catch{}A(ue,e.channels.value.find(M=>M.id===B)),Be(ue)}else it()},oe=B=>{const ne=n.value.get(e.activeChannelId.value);if(ne?.state!==z.Established)return;const X={requestOptions:{body:{content:`Signal=${B}\r
|
|
68
|
+
Duration=160`,contentType:"application/dtmf-relay",contentDisposition:"signal"}}};ne.info(X)},de=(B,ne)=>{const X=e.channels.value.find(ue=>ue.id===B);!X||X.status!=="connected"||(Be(ne),A(ne,X),g(ne),s.play().catch(()=>{}))},xe=async B=>{console.log("[SipJs] 🔄 transferCall iniciado"),console.log("[SipJs] Target:",B);const ne=e.activeChannelId.value,X=n.value.get(ne);if(!X)throw console.error("[SipJs] ❌ No hay sesión activa en el canal",ne),new Error("No active session to transfer");if(console.log("[SipJs] Sesión encontrada - Estado:",X.state),console.log("[SipJs] Dialog ID:",X.dialog?.id),console.log("[SipJs] Call ID:",X.dialog?.callId),X.state!==z.Established)throw console.error("[SipJs] ❌ Sesión no establecida. Estado actual:",X.state),new Error(`Cannot transfer call. Call is not established (state: ${X.state})`);let ue=wn.makeURI(B);if(!ue&&t.value?.configuration.uri){const C=t.value.configuration.uri.host;console.log("[SipJs] Construyendo URI con dominio:",C),ue=wn.makeURI(`sip:${B}@${C}`)}if(!ue)throw console.error("[SipJs] ❌ URI de destino inválida:",B),new Error(`Invalid transfer target: ${B}`);console.log("[SipJs] 📤 URI de transferencia:",ue.toString()),console.log("[SipJs] URI scheme:",ue.scheme),console.log("[SipJs] URI user:",ue.user),console.log("[SipJs] URI host:",ue.host);try{console.log("[SipJs] 🚀 Enviando REFER..."),await X.refer(ue,{requestDelegate:{onAccept:C=>{console.log("[SipJs] ✅ Transfer REFER aceptado por el servidor (202 Accepted)"),console.log("[SipJs] Response:",C.message)},onReject:C=>{const R=C.message.statusCode;console.error("[SipJs] ❌ Transfer REFER rechazado:",R),console.error("[SipJs] Response completo:",C.message),de(ne,X)}},onNotify:C=>{console.log("[SipJs] 📬 NOTIFY recibido para transferencia"),console.log("[SipJs] NOTIFY request:",C.request),C.accept();const R=C.request.body;if(console.log("[SipJs] NOTIFY body:",R),R){const M=R.match(/SIP\/2\.0\s+(\d{3})(.*)/);if(M&&M[1]){const j=parseInt(M[1],10),Y=M[2]?.trim()||"";if(console.log("[SipJs] 📊 Status code:",j),console.log("[SipJs] 📊 Status text:",Y),j>=200&&j<300)console.log("[SipJs] ✅ Transferencia exitosa! Terminando sesión..."),setTimeout(()=>{X.bye().catch(Z=>{console.warn("[SipJs] Error hanging up after successful transfer:",Z)})},500);else if(j>=400){console.error("[SipJs] ❌ Transfer falló con status:",j,Y),console.log("[SipJs] 🔄 Manteniendo la sesión activa para el usuario");const Z={404:"Número no encontrado",486:"Número ocupado",487:"Transferencia cancelada",503:"Servicio no disponible - el destino puede estar fuera de línea"}[j]||`Error en transferencia (código ${j})`;console.warn("[SipJs] 💬",Z),de(ne,X)}else j>=100&&j<200&&console.log("[SipJs] 📞 Transferencia en progreso:",j,Y)}else console.warn("[SipJs] ⚠️ No se pudo extraer el código de estado del NOTIFY body")}else console.warn("[SipJs] ⚠️ NOTIFY sin body")}}),console.log("[SipJs] ✅ REFER enviado exitosamente (promesa resuelta)")}catch(C){throw console.error("[SipJs] ❌ Error en transferCall:",C),console.error("[SipJs] Error type:",C?.constructor?.name),console.error("[SipJs] Error message:",C instanceof Error?C.message:String(C)),console.error("[SipJs] Error stack:",C instanceof Error?C.stack:"N/A"),C}},De=async B=>{console.log("[SipJs] 🔄 startAttendedTransfer iniciado"),console.log("[SipJs] Target:",B);const ne=e.activeChannelId.value,X=n.value.get(ne);if(console.log("[SipJs] Canal original:",ne),console.log("[SipJs] Sesión original:",X?.state),!X||X.state!==z.Established)throw console.error("[SipJs] ❌ No hay llamada establecida para transferir"),new Error("No established call to transfer");const ue=e.channels.value.find(C=>C.status==="idle");if(console.log("[SipJs] Canal de consulta encontrado:",ue?.id),!ue)throw console.error("[SipJs] ❌ No hay canales disponibles para llamada de consulta"),new Error("No available channel for consultation call");try{console.log("[SipJs] 🔇 Poniendo llamada original en hold..."),await G(X,!0),e.updateChannelState(ne,{isHeld:!0}),console.log("[SipJs] ✅ Llamada original en hold")}catch(C){throw console.error("[SipJs] ❌ Failed to hold original call:",C),new Error("Failed to put call on hold")}console.log("[SipJs] 🔄 Cambiando al canal de consulta:",ue.id),e.setActiveChannelId(ue.id);try{console.log("[SipJs] 📞 Iniciando llamada de consulta a:",B),await J(B,!1),console.log("[SipJs] ✅ Llamada de consulta iniciada"),e.setTransferInProgress({originalChannelId:ne,consultationChannelId:ue.id,targetNumber:B}),console.log("[SipJs] 📋 Transferencia en progreso registrada")}catch(C){throw console.error("[SipJs] ❌ Failed to start consultation call:",C),console.log("[SipJs] 🔄 Volviendo al canal original y quitando hold..."),e.setActiveChannelId(ne),await G(X,!1).catch(()=>{}),e.updateChannelState(ne,{isHeld:!1}),new Error("Failed to initiate consultation call")}},Se=async()=>{console.log("[SipJs] 🔄 completeAttendedTransfer iniciado");const B=e.transferInProgress.value;if(!B)throw console.error("[SipJs] ❌ No hay transferencia en progreso"),new Error("No transfer in progress");console.log("[SipJs] Estado de transferencia:",B);const ne=n.value.get(B.originalChannelId),X=n.value.get(B.consultationChannelId);if(console.log("[SipJs] Sesión original:",ne?.state),console.log("[SipJs] Sesión de consulta:",X?.state),!ne||!X)throw console.error("[SipJs] ❌ Falta una o ambas sesiones"),new Error("Missing session for transfer");if(X.state!==z.Established)throw console.error("[SipJs] ❌ Llamada de consulta no está establecida. Estado:",X.state),new Error("Consultation call not established");const ue=X.dialog;if(!ue)throw new Error("No dialog available for consultation session");const C=ue.callId,R=ue.remoteTag,M=ue.localTag;let j=wn.makeURI(B.targetNumber);if(!j&&t.value?.configuration.uri){const Z=t.value.configuration.uri.host;j=wn.makeURI(`sip:${B.targetNumber}@${Z}`)}if(!j)throw new Error("Invalid transfer target URI");const Y=`${encodeURIComponent(C)}%3Bto-tag%3D${encodeURIComponent(R)}%3Bfrom-tag%3D${encodeURIComponent(M)}`;j.setHeader("Replaces",Y);try{await ne.refer(j,{onNotify:Z=>{Z.accept();const ce=Z.request.body,ae=typeof ce=="string"?ce:ce&&typeof ce=="object"&&"content"in ce?ce.content:void 0;if(ae){const N=ae.match(/SIP\/2\.0\s+(\d+)/);if(N&&N[1]){const q=parseInt(N[1]);q>=200&&q<300?setTimeout(()=>{ne.bye().catch(()=>{}),X.bye().catch(()=>{}),e.setTransferInProgress(null)},500):q>=400&&(console.error("[SipJs] Attended transfer failed with status:",q),e.setTransferInProgress(null))}}},requestDelegate:{onAccept:()=>{},onReject:Z=>{console.error("[SipJs] Attended transfer REFER rejected:",Z.message.statusCode),e.setTransferInProgress(null)}}})}catch(Z){throw console.error("[SipJs] Attended transfer failed:",Z),Z}},be=async()=>{const B=e.transferInProgress.value;if(!B)throw new Error("No transfer in progress");console.log("[SipJs] Canceling attended transfer...");const ne=n.value.get(B.originalChannelId),X=n.value.get(B.consultationChannelId);if(X)try{await X.bye(),console.log("[SipJs] Consultation call ended")}catch(ue){console.warn("[SipJs] Error ending consultation:",ue)}if(ne)try{e.setActiveChannelId(B.originalChannelId),await G(ne,!1),e.updateChannelState(B.originalChannelId,{isHeld:!1}),console.log("[SipJs] Returned to original call")}catch(ue){console.warn("[SipJs] Error resuming original call:",ue)}e.setTransferInProgress(null)},Be=B=>{const ne=B.sessionDescriptionHandler;if(!ne){console.error("[SipJs] setupRemoteMedia: no sessionDescriptionHandler");return}const X=ne.remoteMediaStream;if(!X){console.error("[SipJs] setupRemoteMedia: no remoteMediaStream on SDH");return}if(o.value===X)return;s.pause(),s.srcObject=null,l?.abort(),l=new AbortController,o.value=X,a.value=ne.localMediaStream??null,A(B,P(B));const ue=R=>{c?.abort(),c=new AbortController;const{signal:M}=c,j=()=>{s.play().catch(Y=>{Y.name!=="AbortError"&&console.error("[SipJs] play() failed:",Y.name,Y.message)})};R.addEventListener("mute",()=>{s.pause()},{signal:M}),R.addEventListener("unmute",()=>{j()},{signal:M}),R.muted||j()};X.addEventListener("addtrack",R=>{R.track.kind==="audio"&&(s.srcObject=null,s.srcObject=X,ue(R.track))},{signal:l.signal});const[C]=X.getTracks();C&&(s.srcObject=X,ue(C))},it=()=>{c?.abort(),c=null,l?.abort(),l=null,s.pause(),s.srcObject=null,o.value=null,a.value=null};return{initUserAgent:O,makeCall:J,answerCall:te,hangupCall:W,toggleMute:ee,toggleHold:le,sendDTMF:oe,transferCall:xe,startAttendedTransfer:De,completeAttendedTransfer:Se,cancelAttendedTransfer:be,switchChannel:K,extension:u,setVolume:v,setNotificationVolume:y,setOutputDevice:x,setInputDevice:w,remoteStream:o,localStream:a}};var up=e=>typeof e=="boolean"?`${e}`:e===0?"0":e;const dp=Ff,Yw=(e,t)=>r=>{var n;if(t?.variants==null)return dp(e,r?.class,r?.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(l=>{const c=r?.[l],u=i?.[l];if(c===null)return null;const d=up(c)||up(u);return s[l][d]}),a=r&&Object.entries(r).reduce((l,c)=>{let[u,d]=c;return d===void 0||(l[u]=d),l},{});return dp(e,o,t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:u,className:d,...p}=c;return Object.entries(p).every(h=>{let[m,y]=h;return Array.isArray(y)?y.includes({...i,...a}[m]):{...i,...a}[m]===y})?[...l,u,d]:l},[]),r?.class,r?.className)};function Zw(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xw(e,t,r){Zw(e,t),t.set(e,r)}function Qw(e,t,r){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function Eo(e,t){return e.get(Qw(e,t))}function fp(e){return typeof e=="string"?`'${e}'`:new ey().serialize(e)}var ey=(function(){var e=new WeakMap;class t{constructor(){Xw(this,e,new Map)}compare(n,s){const i=typeof n,o=typeof s;return i==="string"&&o==="string"?n.localeCompare(s):i==="number"&&o==="number"?n-s:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(s,!0))}serialize(n,s){if(n===null)return"null";switch(typeof n){case"string":return s?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const s=Object.prototype.toString.call(n);if(s!=="[object Object]")return this.serializeBuiltInType(s.length<10?`unknown:${s}`:s.slice(8,-1),n);const i=n.constructor,o=i===Object||i===void 0?"":i.name;if(o!==""&&globalThis[o]===i)return this.serializeBuiltInType(o,n);if(typeof n.toJSON=="function"){const a=n.toJSON();return o+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(o,Object.entries(n))}serializeBuiltInType(n,s){const i=this["$"+n];if(i)return i.call(this,s);if(typeof s?.entries=="function")return this.serializeObjectEntries(n,s.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,s){const i=Array.from(s).sort((a,l)=>this.compare(a[0],l[0]));let o=`${n}{`;for(let a=0;a<i.length;a++){const[l,c]=i[a];o+=`${this.serialize(l,!0)}:${this.serialize(c)}`,a<i.length-1&&(o+=",")}return o+"}"}$object(n){let s=Eo(e,this).get(n);return s===void 0&&(Eo(e,this).set(n,`#${Eo(e,this).size}`),s=this.serializeObject(n),Eo(e,this).set(n,s)),s}$function(n){const s=Function.prototype.toString.call(n);return s.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${s.replace(/\s*\n\s*/g,"")}`}$Array(n){let s="[";for(let i=0;i<n.length;i++)s+=this.serialize(n[i]),i<n.length-1&&(s+=",");return s+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((s,i)=>this.compare(s,i)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const r of["Error","RegExp","URL"])t.prototype["$"+r]=function(n){return`${r}(${n})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+r]=function(n){return`${r}[${n.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])t.prototype["$"+r]=function(n){return`${r}[${n.join("n,")}${n.length>0?"n":""}]`};return t})();function ty(e,t){return e===t||fp(e)===fp(t)}function hi(e,t=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY){return Math.min(r,Math.max(t,e))}function xt(e,t){const r=typeof e=="string"&&!t?`${e}Context`:t,n=Symbol(r);return[o=>{const a=Rt(n,o);if(a||a===null)return a;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(as(n,o),o)]}function Ut(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Al(e,t,r){const n=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),n.dispatchEvent(s)}function Il(e){return e==null}function Rl(e){return e?e.flatMap(t=>t.type===Ne?Rl(t.children):[t]):[]}var[Ao,ox]=xt("ConfigProvider");function ry(e,t){var r;const n=Qe();return Xe(()=>{n.value=e()},{...t,flush:(r=t?.flush)!==null&&r!==void 0?r:"sync"}),_t(n)}function Sn(e,t){return Ri()?(la(e,t),!0):!1}function ny(){const e=new Set,t=i=>{e.delete(i)};return{on:i=>{e.add(i);const o=()=>t(i);return Sn(o),{off:o}},off:t,trigger:(...i)=>Promise.all(Array.from(e).map(o=>o(...i))),clear:()=>{e.clear()}}}function sy(e){let t=!1,r;const n=aa(!0);return((...s)=>(t||(r=n.run(()=>e(...s)),t=!0),r))}var Tt=typeof window<"u"&&typeof document<"u",ax=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,iy=e=>typeof e<"u",oy=Object.prototype.toString,ay=e=>oy.call(e)==="[object Object]",Jr=()=>{},kl=ly();function ly(){var e,t,r;return Tt&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((r=window)===null||r===void 0?void 0:r.navigator.userAgent))}function cy(...e){if(e.length!==1)return ba(...e);const t=e[0];return typeof t=="function"?_t(qs(()=>({get:t,set:Jr}))):F(t)}function pp(e,t){function r(...n){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(s).catch(i)})}return r}var hp=e=>e();function uy(e,t={}){let r,n,s=Jr;const i=l=>{clearTimeout(l),s(),s=Jr};let o;return l=>{const c=Ce(e),u=Ce(t.maxWait);return r&&i(r),c<=0||u!==void 0&&u<=0?(n&&(i(n),n=void 0),Promise.resolve(l())):new Promise((d,p)=>{s=t.rejectOnCancel?p:d,o=l,u&&!n&&(n=setTimeout(()=>{r&&i(r),n=void 0,d(o())},u)),r=setTimeout(()=>{n&&i(n),n=void 0,d(l())},c)})}}function dy(e=hp,t={}){const{initialState:r="active"}=t,n=cy(r==="active");function s(){n.value=!1}function i(){n.value=!0}return{isActive:_t(n),pause:s,resume:i,eventFilter:(...a)=>{n.value&&e(...a)}}}function $l(e){return Array.isArray(e)?e:[e]}function gp(e){const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))}var fy=/\B([A-Z])/g,lx=gp(e=>e.replace(fy,"-$1").toLowerCase()),py=/-(\w)/g,cx=gp(e=>e.replace(py,(t,r)=>r?r.toUpperCase():""));function vp(e){return e||st()}function hy(e){if(!Tt)return e;let t=0,r,n;const s=()=>{t-=1,n&&t<=0&&(n.stop(),r=void 0,n=void 0)};return((...i)=>(t+=1,n||(n=aa(!0),r=n.run(()=>e(...i))),Sn(s),r))}function gy(e){return Mr(We(e)?new Proxy({},{get(t,r,n){return f(Reflect.get(e.value,r,n))},set(t,r,n){return We(e.value[r])&&!We(n)?e.value[r].value=n:e.value[r]=n,!0},deleteProperty(t,r){return Reflect.deleteProperty(e.value,r)},has(t,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function vy(e){return gy(V(e))}function qt(e,...t){const r=t.flat(),n=r[0];return vy(()=>Object.fromEntries(typeof n=="function"?Object.entries(St(e)).filter(([s,i])=>!n(Ce(i),s)):Object.entries(St(e)).filter(s=>!r.includes(s[0]))))}function mp(e,t=1e4){return qs((r,n)=>{let s=Ce(e),i;const o=()=>setTimeout(()=>{s=Ce(e),n()},Ce(t));return Sn(()=>{clearTimeout(i)}),{get(){return r(),s},set(a){s=a,n(),clearTimeout(i),i=o()}}})}function Pl(e,t=200,r={}){return pp(uy(t,r),e)}function my(e,t,r={}){const{eventFilter:n=hp,...s}=r;return Ae(e,pp(n,t),s)}function wy(e,t,r={}){const{eventFilter:n,initialState:s="active",...i}=r,{eventFilter:o,pause:a,resume:l,isActive:c}=dy(n,{initialState:s});return{stop:my(e,t,{...i,eventFilter:o}),pause:a,resume:l,isActive:c}}function yy(e,t={}){if(!We(e))return St(e);const r=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)r[n]=qs(()=>({get(){return e.value[n]},set(s){var i;if(!((i=Ce(t.replaceRef))!==null&&i!==void 0)||i)if(Array.isArray(e.value)){const o=[...e.value];o[n]=s,e.value=o}else{const o={...e.value,[n]:s};Object.setPrototypeOf(o,Object.getPrototypeOf(e.value)),e.value=o}else e.value[n]=s}}));return r}function by(e,t){vp(t)&&fs(e,t)}function _y(e,t=!0,r){vp(r)?ze(e,r):t?e():ft(e)}function Sy(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:s=!1}=r;let i=null;const o=Qe(!1);function a(){i&&(clearInterval(i),i=null)}function l(){o.value=!1,a()}function c(){const u=Ce(t);u<=0||(o.value=!0,s&&e(),a(),o.value&&(i=setInterval(e,u)))}return n&&Tt&&c(),(We(t)||typeof t=="function")&&Sn(Ae(t,()=>{o.value&&Tt&&c()})),Sn(l),{isActive:Nr(o),pause:l,resume:c}}function wp(e,t,r={}){const{immediate:n=!0,immediateCallback:s=!1}=r,i=Qe(!1);let o;function a(){o&&(clearTimeout(o),o=void 0)}function l(){i.value=!1,a()}function c(...u){s&&e(),a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=void 0,e(...u)},Ce(t))}return n&&(i.value=!0,Tt&&c()),Sn(l),{isPending:Nr(i),start:c,stop:l}}function Cy(e,t,r){return Ae(e,t,{...r,immediate:!0})}function xy(e,t,r){return Ae(e,t,{...r,once:!0})}var vr=Tt?window:void 0,ux=Tt?window.document:void 0,dx=Tt?window.navigator:void 0,fx=Tt?window.location:void 0;function Bt(e){var t;const r=Ce(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function Pt(...e){const t=(n,s,i,o)=>(n.addEventListener(s,i,o),()=>n.removeEventListener(s,i,o)),r=V(()=>{const n=$l(Ce(e[0])).filter(s=>s!=null);return n.every(s=>typeof s!="string")?n:void 0});return Cy(()=>{var n,s;return[(n=(s=r.value)===null||s===void 0?void 0:s.map(i=>Bt(i)))!==null&&n!==void 0?n:[vr].filter(i=>i!=null),$l(Ce(r.value?e[1]:e[0])),$l(f(r.value?e[2]:e[1])),Ce(r.value?e[3]:e[2])]},([n,s,i,o],a,l)=>{if(!n?.length||!s?.length||!i?.length)return;const c=ay(o)?{...o}:o,u=n.flatMap(d=>s.flatMap(p=>i.map(h=>t(d,p,h,c))));l(()=>{u.forEach(d=>d())})},{flush:"post"})}var yp=!1;function Ty(e,t,r={}){const{window:n=vr,ignore:s=[],capture:i=!0,detectIframe:o=!1,controls:a=!1}=r;if(!n)return a?{stop:Jr,cancel:Jr,trigger:Jr}:Jr;if(kl&&!yp){yp=!0;const T={passive:!0};Array.from(n.document.body.children).forEach(v=>v.addEventListener("click",Jr,T)),n.document.documentElement.addEventListener("click",Jr,T)}let l=!0;const c=T=>Ce(s).some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(x=>x===T.target||T.composedPath().includes(x));{const x=Bt(v);return x&&(T.target===x||T.composedPath().includes(x))}});function u(T){const v=Ce(T);return v&&v.$.subTree.shapeFlag===16}function d(T,v){const x=Ce(T),w=x.$.subTree&&x.$.subTree.children;return w==null||!Array.isArray(w)?!1:w.some(b=>b.el===v.target||v.composedPath().includes(b.el))}const p=T=>{const v=Bt(e);if(T.target!=null&&!(!(v instanceof Element)&&u(e)&&d(e,T))&&!(!v||v===T.target||T.composedPath().includes(v))){if("detail"in T&&T.detail===0&&(l=!c(T)),!l){l=!0;return}t(T)}};let h=!1;const m=[Pt(n,"click",T=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(T))},{passive:!0,capture:i}),Pt(n,"pointerdown",T=>{const v=Bt(e);l=!c(T)&&!!(v&&!T.composedPath().includes(v))},{passive:!0}),o&&Pt(n,"blur",T=>{setTimeout(()=>{var v;const x=Bt(e);((v=n.document.activeElement)===null||v===void 0?void 0:v.tagName)==="IFRAME"&&!x?.contains(n.document.activeElement)&&t(T)},0)},{passive:!0})].filter(Boolean),y=()=>m.forEach(T=>T());return a?{stop:y,cancel:()=>{l=!1},trigger:T=>{l=!0,p(T),l=!1}}:y}function Dl(){const e=Qe(!1),t=st();return t&&ze(()=>{e.value=!0},t),e}function bp(e){const t=Dl();return V(()=>(t.value,!!e()))}function Ey(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Ay(...e){let t,r,n={};e.length===3?(t=e[0],r=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],n=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=vr,eventName:i="keydown",passive:o=!1,dedupe:a=!1}=n,l=Ey(t);return Pt(s,i,u=>{u.repeat&&Ce(a)||l(u)&&r(u)},o)}function Iy(e){return JSON.parse(JSON.stringify(e))}var Io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ro="__vueuse_ssr_handlers__",Ry=ky();function ky(){return Ro in Io||(Io[Ro]=Io[Ro]||{}),Io[Ro]}function $y(e,t){return Ry[e]||t}function Py(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Dy={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},_p="vueuse-storage";function ko(e,t,r,n={}){var s;const{flush:i="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=vr,eventFilter:p,onError:h=J=>{console.error(J)},initOnMounted:m}=n,y=(u?Qe:F)(typeof t=="function"?t():t),T=V(()=>Ce(e));if(!r)try{r=$y("getDefaultStorage",()=>vr?.localStorage)()}catch(J){h(J)}if(!r)return y;const v=Ce(t),x=Py(v),w=(s=n.serializer)!==null&&s!==void 0?s:Dy[x],{pause:b,resume:_}=wy(y,J=>O(J),{flush:i,deep:o,eventFilter:p});Ae(T,()=>E(),{flush:i});let A=!1;const P=J=>{m&&!A||E(J)},g=J=>{m&&!A||I(J)};d&&a&&(r instanceof Storage?Pt(d,"storage",P,{passive:!0}):Pt(d,_p,g)),m?_y(()=>{A=!0,E()}):E();function D(J,te){if(d){const W={key:T.value,oldValue:J,newValue:te,storageArea:r};d.dispatchEvent(r instanceof Storage?new StorageEvent("storage",W):new CustomEvent(_p,{detail:W}))}}function O(J){try{const te=r.getItem(T.value);if(J==null)D(te,null),r.removeItem(T.value);else{const W=w.write(J);te!==W&&(r.setItem(T.value,W),D(te,W))}}catch(te){h(te)}}function S(J){const te=J?J.newValue:r.getItem(T.value);if(te==null)return l&&v!=null&&r.setItem(T.value,w.write(v)),v;if(!J&&c){const W=w.read(te);return typeof c=="function"?c(W,v):x==="object"&&!Array.isArray(W)?{...v,...W}:W}else return typeof te!="string"?te:w.read(te)}function E(J){if(!(J&&J.storageArea!==r)){if(J&&J.key==null){y.value=v;return}if(!(J&&J.key!==T.value)){b();try{const te=w.write(y.value);(J===void 0||J?.newValue!==te)&&(y.value=S(J))}catch(te){h(te)}finally{J?ft(_):_()}}}}function I(J){E(J.detail)}return y}var $o={speed:2,margin:30,direction:"both"};function Oy(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function Hy(e,t={}){var r,n,s,i;const{pointerTypes:o,preventDefault:a,stopPropagation:l,exact:c,onMove:u,onEnd:d,onStart:p,initialValue:h,axis:m="both",draggingElement:y=vr,containerElement:T,handle:v=e,buttons:x=[0],restrictInView:w,autoScroll:b=!1}=t,_=F((r=Ce(h))!==null&&r!==void 0?r:{x:0,y:0}),A=F(),P=oe=>o?o.includes(oe.pointerType):!0,g=oe=>{Ce(a)&&oe.preventDefault(),Ce(l)&&oe.stopPropagation()},D=Ce(b),O=typeof D=="object"?{speed:(n=Ce(D.speed))!==null&&n!==void 0?n:$o.speed,margin:(s=Ce(D.margin))!==null&&s!==void 0?s:$o.margin,direction:(i=D.direction)!==null&&i!==void 0?i:$o.direction}:$o,S=oe=>typeof oe=="number"?[oe,oe]:[oe.x,oe.y],E=(oe,de,xe)=>{const{clientWidth:De,clientHeight:Se,scrollLeft:be,scrollTop:Be,scrollWidth:it,scrollHeight:B}=oe,[ne,X]=S(O.margin),[ue,C]=S(O.speed);let R=0,M=0;(O.direction==="x"||O.direction==="both")&&(xe.x<ne&&be>0?R=-ue:xe.x+de.width>De-ne&&be<it-De&&(R=ue)),(O.direction==="y"||O.direction==="both")&&(xe.y<X&&Be>0?M=-C:xe.y+de.height>Se-X&&Be<B-Se&&(M=C)),(R||M)&&oe.scrollBy({left:R,top:M,behavior:"auto"})};let I=null;const J=()=>{const oe=Ce(T);oe&&!I&&(I=setInterval(()=>{const de=Ce(e).getBoundingClientRect(),{x:xe,y:De}=_.value,Se={x:xe-oe.scrollLeft,y:De-oe.scrollTop};Se.x>=0&&Se.y>=0&&(E(oe,de,Se),Se.x+=oe.scrollLeft,Se.y+=oe.scrollTop,_.value=Se)},1e3/60))},te=()=>{I&&(clearInterval(I),I=null)},W=(oe,de,xe,De)=>{const[Se,be]=typeof xe=="number"?[xe,xe]:[xe.x,xe.y],{clientWidth:Be,clientHeight:it}=de;return oe.x<Se||oe.x+De.width>Be-Se||oe.y<be||oe.y+De.height>it-be},ee=()=>{if(Ce(t.disabled)||!A.value)return;const oe=Ce(T);if(!oe)return;const de=Ce(e).getBoundingClientRect(),{x:xe,y:De}=_.value;W({x:xe-oe.scrollLeft,y:De-oe.scrollTop},oe,O.margin,de)?J():te()};Ce(b)&&Ae(_,ee);const G=oe=>{var de;if(!Ce(x).includes(oe.button)||Ce(t.disabled)||!P(oe)||Ce(c)&&oe.target!==Ce(e))return;const xe=Ce(T),De=xe==null||(de=xe.getBoundingClientRect)===null||de===void 0?void 0:de.call(xe),Se=Ce(e).getBoundingClientRect(),be={x:oe.clientX-(xe?Se.left-De.left+(b?0:xe.scrollLeft):Se.left),y:oe.clientY-(xe?Se.top-De.top+(b?0:xe.scrollTop):Se.top)};p?.(be,oe)!==!1&&(A.value=be,g(oe))},le=oe=>{if(Ce(t.disabled)||!P(oe)||!A.value)return;const de=Ce(T);de instanceof HTMLElement&&Oy(de);const xe=Ce(e).getBoundingClientRect();let{x:De,y:Se}=_.value;if((m==="x"||m==="both")&&(De=oe.clientX-A.value.x,de&&(De=Math.min(Math.max(0,De),de.scrollWidth-xe.width))),(m==="y"||m==="both")&&(Se=oe.clientY-A.value.y,de&&(Se=Math.min(Math.max(0,Se),de.scrollHeight-xe.height))),Ce(b)&&de&&(I===null&&E(de,xe,{x:De,y:Se}),De+=de.scrollLeft,Se+=de.scrollTop),de&&(w||b)){if(m!=="y"){const be=De-de.scrollLeft;be<0?De=de.scrollLeft:be>de.clientWidth-xe.width&&(De=de.clientWidth-xe.width+de.scrollLeft)}if(m!=="x"){const be=Se-de.scrollTop;be<0?Se=de.scrollTop:be>de.clientHeight-xe.height&&(Se=de.clientHeight-xe.height+de.scrollTop)}}_.value={x:De,y:Se},u?.(_.value,oe),g(oe)},K=oe=>{Ce(t.disabled)||!P(oe)||A.value&&(A.value=void 0,b&&te(),d?.(_.value,oe),g(oe))};if(Tt){const oe=()=>{var de;return{capture:(de=t.capture)!==null&&de!==void 0?de:!0,passive:!Ce(a)}};Pt(v,"pointerdown",G,oe),Pt(y,"pointermove",le,oe),Pt(y,"pointerup",K,oe)}return{...yy(_),position:_,isDragging:V(()=>!!A.value),style:V(()=>`
|
|
69
69
|
left: ${_.value.x}px;
|
|
70
70
|
top: ${_.value.y}px;
|
|
71
|
-
${
|
|
72
|
-
`)}}function Un(e,t,r={}){const{window:n=vr,...s}=r;let i;const o=bp(()=>n&&"ResizeObserver"in n),a=()=>{i&&(i.disconnect(),i=void 0)},l=ke(V(()=>{const u=Ce(e);return Array.isArray(u)?u.map(d=>Bt(d)):[Bt(u)]}),u=>{if(a(),o.value&&n){i=new ResizeObserver(t);for(const d of u)d&&i.observe(d,s)}},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return Sn(c),{isSupported:o,stop:c}}function My(e={}){const{window:t=vr}=e,r=t?.navigator,n=bp(()=>r&&"connection"in r),s=et(!0),i=et(!1),o=et(void 0),a=et(void 0),l=et(void 0),c=et(void 0),u=et(void 0),d=et(void 0),p=et("unknown"),g=n.value&&r.connection;function w(){r&&(s.value=r.onLine,o.value=s.value?void 0:Date.now(),a.value=s.value?Date.now():void 0,g&&(l.value=g.downlink,c.value=g.downlinkMax,d.value=g.effectiveType,u.value=g.rtt,i.value=g.saveData,p.value=g.type))}const b={passive:!0};return t&&(Pt(t,"offline",()=>{s.value=!1,o.value=Date.now()},b),Pt(t,"online",()=>{s.value=!0,a.value=Date.now()},b)),g&&Pt(g,"change",w,b),w(),{isSupported:n,isOnline:_t(s),saveData:_t(i),offlineAt:_t(o),onlineAt:_t(a),downlink:_t(l),downlinkMax:_t(c),effectiveType:_t(d),rtt:_t(u),type:_t(p)}}var px=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}];function ys(e,t,r,n={}){var s,i;const{clone:o=!1,passive:a=!1,eventName:l,deep:c=!1,defaultValue:u,shouldEmit:d}=n,p=it(),g=r||p?.emit||(p==null||(s=p.$emit)===null||s===void 0?void 0:s.bind(p))||(p==null||(i=p.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(p?.proxy));let w=l;t||(t="modelValue"),w=w||`update:${t.toString()}`;const b=S=>o?typeof o=="function"?o(S):Iy(S):S,C=()=>iy(e[t])?b(e[t]):u,v=S=>{d?d(S)&&g(w,S):g(w,S)};if(a){const S=F(C());let y=!1;return ke(()=>e[t],m=>{y||(y=!0,S.value=b(m),ft(()=>y=!1))}),ke(S,m=>{!y&&(m!==e[t]||c)&&v(m)},{deep:c}),S}else return V({get(){return C()},set(S){v(S)}})}function Ol(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Hl(e,t,r=".",n){if(!Ol(t))return Hl(e,{},r,n);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(n&&n(s,i,o,r)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:Ol(o)&&Ol(s[i])?s[i]=Hl(o,s[i],(r?`${r}.`:"")+i.toString(),n):s[i]=o))}return s}function Ml(e){return(...t)=>t.reduce((r,n)=>Hl(r,n,"",e),{})}var Sp=Ml(),hx=Ml((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0}),gx=Ml((e,t,r)=>{if(Array.isArray(e[t])&&typeof r=="function")return e[t]=r(e[t]),!0}),qy=hy(()=>{const e=F(new Map),t=F(),r=V(()=>{for(const o of e.value.values())if(o)return!0;return!1}),n=Ao({scrollBody:F(!0)});let s=null;const i=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Rl&&s?.(),t.value=void 0};return ke(r,(o,a)=>{if(!Tt)return;if(!o){a&&i();return}t.value===void 0&&(t.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,c={padding:l,margin:0},u=n.scrollBody?.value?typeof n.scrollBody.value=="object"?Sp({padding:n.scrollBody.value.padding===!0?l:n.scrollBody.value.padding,margin:n.scrollBody.value.margin===!0?l:n.scrollBody.value.margin},c):c:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),Rl&&(s=Pt(document,"touchmove",d=>Ny(d),{passive:!1})),ft(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Cp(e){const t=Math.random().toString(36).substring(2,7),r=qy();r.value.set(t,e??!1);const n=V({get:()=>r.value.get(t)??!1,set:s=>r.value.set(t,s)});return by(()=>{r.value.delete(t)}),n}function xp(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const r=e.parentNode;return!(r instanceof Element)||r.tagName==="BODY"?!1:xp(r)}}function Ny(e){const t=e||window.event,r=t.target;return r instanceof Element&&xp(r)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function ql(e){const t=Ao({dir:F("ltr")});return V(()=>e?.value||t.dir?.value||"ltr")}function Po(e){const t=it(),r=t?.type.emits,n={};return r?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),r?.forEach(s=>{n[Qn(lt(s))]=(...i)=>e(s,...i)}),n}var Nl=0;function By(){Qe(e=>{if(!Tt)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Tp()),document.body.insertAdjacentElement("beforeend",t[1]??Tp()),Nl++,e(()=>{Nl===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(r=>r.remove()),Nl--})})}function Tp(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Ep(e){return V(()=>Ce(e)?!!Bt(e)?.closest("form"):!0)}function Ie(){const e=it(),t=F(),r=V(()=>n());Ws(()=>{r.value!==n()&&tu(t)});function n(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Bt(t)}const s=Object.assign({},e.exposed),i={};for(const a in e.props)Object.defineProperty(i,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(s).length>0)for(const a in s)Object.defineProperty(i,a,{enumerable:!0,configurable:!0,get:()=>s[a]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function o(a){if(t.value=a,!!a&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),!(a instanceof Element)&&!Object.prototype.hasOwnProperty.call(a,"$el"))){const l=a.$.exposed,c=Object.assign({},i);for(const u in l)Object.defineProperty(c,u,{enumerable:!0,configurable:!0,get:()=>l[u]});e.exposed=c}}return{forwardRef:o,currentRef:t,currentElement:r}}function Yr(e){const t=it(),r=Object.keys(t?.type.props??{}).reduce((s,i)=>{const o=(t?.type.props[i]).default;return o!==void 0&&(s[i]=o),s},{}),n=ba(e);return V(()=>{const s={},i=t?.vnode.props??{};return Object.keys(i).forEach(o=>{s[lt(o)]=i[o]}),Object.keys({...r,...s}).reduce((o,a)=>(n.value[a]!==void 0&&(o[a]=n.value[a]),o),{})})}function Zr(e,t){const r=Yr(e),n=t?Po(t):{};return V(()=>({...r.value,...n}))}function Ly(e,t){const r=mp(!1,300);Sn(()=>{r.value=!1});const n=F(null),s=ny();function i(){n.value=null,r.value=!1}function o(a,l){const c=a.currentTarget,u={x:a.clientX,y:a.clientY},d=Vy(u,Fy(u,c.getBoundingClientRect()),1),p=jy(l.getBoundingClientRect());n.value=zy([...d,...p]),r.value=!0}return Qe(a=>{if(e.value&&t.value){const l=u=>o(u,t.value),c=u=>o(u,e.value);e.value.addEventListener("pointerleave",l),t.value.addEventListener("pointerleave",c),a(()=>{e.value?.removeEventListener("pointerleave",l),t.value?.removeEventListener("pointerleave",c)})}}),Qe(a=>{if(n.value){const l=c=>{if(!n.value||!(c.target instanceof Element))return;const u=c.target,d={x:c.clientX,y:c.clientY},p=e.value?.contains(u)||t.value?.contains(u),g=!Uy(d,n.value),w=!!u.closest("[data-grace-area-trigger]");p?i():(g||w)&&(i(),s.trigger())};e.value?.ownerDocument.addEventListener("pointermove",l),a(()=>e.value?.ownerDocument.removeEventListener("pointermove",l))}}),{isPointerInTransit:r,onPointerExit:s.on}}function Fy(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Vy(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function jy(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function Uy(e,t){const{x:r,y:n}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i].x,l=t[i].y,c=t[o].x,u=t[o].y;l>n!=u>n&&r<(c-a)*(n-l)/(u-l)+a&&(s=!s)}return s}function zy(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ky(t)}function Ky(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Wy=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},bs=new WeakMap,Do=new WeakMap,Oo={},Bl=0,Ap=function(e){return e&&(e.host||Ap(e.parentNode))},Gy=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ap(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Jy=function(e,t,r,n){var s=Gy(t,Array.isArray(e)?e:[e]);Oo[r]||(Oo[r]=new WeakMap);var i=Oo[r],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(a.has(p))u(p);else try{var g=p.getAttribute(n),w=g!==null&&g!=="false",b=(bs.get(p)||0)+1,C=(i.get(p)||0)+1;bs.set(p,b),i.set(p,C),o.push(p),b===1&&w&&Do.set(p,!0),C===1&&p.setAttribute(r,"true"),w||p.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return u(t),a.clear(),Bl++,function(){o.forEach(function(d){var p=bs.get(d)-1,g=i.get(d)-1;bs.set(d,p),i.set(d,g),p||(Do.has(d)||d.removeAttribute(n),Do.delete(d)),g||d.removeAttribute(r)}),Bl--,Bl||(bs=new WeakMap,bs=new WeakMap,Do=new WeakMap,Oo={})}},Yy=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=t||Wy(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live], script"))),Jy(n,s,r,"aria-hidden")):function(){return null}};function Ip(e){let t;ke(()=>Bt(e),r=>{r?t=Yy(r):t&&t()}),Rt(()=>{t&&t()})}var Zy=0;function _s(e,t="reka"){if(e)return e;let r;return"useId"in g0?r=Tu?.():r=Ao({useId:void 0}).useId?.()??`${++Zy}`,t?`${t}-${r}`:r}function kp(e){const t=F(),r=V(()=>t.value?.width??0),n=V(()=>t.value?.height??0);return Ke(()=>{const s=Bt(e);if(s){t.value={width:s.offsetWidth,height:s.offsetHeight};const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;l=d.inlineSize,c=d.blockSize}else l=s.offsetWidth,c=s.offsetHeight;t.value={width:l,height:c}});return i.observe(s,{box:"border-box"}),()=>i.unobserve(s)}else t.value=void 0}),{width:r,height:n}}function Ll(e,t){const r=F(e);function n(i){return t[r.value][i]??r.value}return{state:r,dispatch:i=>{r.value=n(i)}}}function Rp(e){const t=mp("",1e3);return{search:t,handleTypeaheadSearch:(s,i)=>{if(t.value=t.value+s,e)e(s);else{const o=Ut(),a=i.map(d=>({...d,textValue:d.value?.textValue??d.ref.textContent?.trim()??""})),l=a.find(d=>d.ref===o),c=Qy(a.map(d=>d.textValue),t.value,l?.textValue),u=a.find(d=>d.textValue===c);return u&&u.ref.focus(),u?.ref}},resetTypeahead:()=>{t.value=""}}}function Xy(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Qy(e,t,r){const n=t.length>1&&Array.from(t).every(a=>a===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let i=Xy(e,Math.max(s,0));n.length===1&&(i=i.filter(a=>a!==r));const o=i.find(a=>a.toLowerCase().startsWith(n.toLowerCase()));return o!==r?o:void 0}function eb(e,t){const r=F({}),n=F("none"),s=F(e),i=e.value?"mounted":"unmounted";let o;const a=t.value?.ownerDocument.defaultView??vr,{state:l,dispatch:c}=Ll(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=b=>{if(Tt){const C=new CustomEvent(b,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(C)}};ke(e,async(b,C)=>{const v=C!==b;if(await ft(),v){const S=n.value,y=Ho(t.value);b?(c("MOUNT"),u("enter"),y==="none"&&u("after-enter")):y==="none"||y==="undefined"||r.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):C&&S!==y?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const d=b=>{const C=Ho(t.value),v=C.includes(CSS.escape(b.animationName)),S=l.value==="mounted"?"enter":"leave";if(b.target===t.value&&v&&(u(`after-${S}`),c("ANIMATION_END"),!s.value)){const y=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",o=a?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=y)})}b.target===t.value&&C==="none"&&c("ANIMATION_END")},p=b=>{b.target===t.value&&(n.value=Ho(t.value))},g=ke(t,(b,C)=>{b?(r.value=getComputedStyle(b),b.addEventListener("animationstart",p),b.addEventListener("animationcancel",d),b.addEventListener("animationend",d)):(c("ANIMATION_END"),o!==void 0&&a?.clearTimeout(o),C?.removeEventListener("animationstart",p),C?.removeEventListener("animationcancel",d),C?.removeEventListener("animationend",d))},{immediate:!0}),w=ke(l,()=>{const b=Ho(t.value);n.value=l.value==="mounted"?b:"none"});return Rt(()=>{g(),w()}),{isPresent:V(()=>["mounted","unmountSuspended"].includes(l.value))}}function Ho(e){return e&&getComputedStyle(e).animationName||"none"}var Cn=X({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:r}){const{present:n,forceMount:s}=St(e),i=F(),{isPresent:o}=eb(n,i);r({present:o});let a=t.default({present:o.value});a=kl(a||[]);const l=it();if(a&&a?.length>1){const c=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(u=>` - ${u}`).join(`
|
|
71
|
+
${b?"text-wrap: nowrap;":""}
|
|
72
|
+
`)}}function Un(e,t,r={}){const{window:n=vr,...s}=r;let i;const o=bp(()=>n&&"ResizeObserver"in n),a=()=>{i&&(i.disconnect(),i=void 0)},l=Ae(V(()=>{const u=Ce(e);return Array.isArray(u)?u.map(d=>Bt(d)):[Bt(u)]}),u=>{if(a(),o.value&&n){i=new ResizeObserver(t);for(const d of u)d&&i.observe(d,s)}},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return Sn(c),{isSupported:o,stop:c}}function My(e={}){const{window:t=vr}=e,r=t?.navigator,n=bp(()=>r&&"connection"in r),s=Qe(!0),i=Qe(!1),o=Qe(void 0),a=Qe(void 0),l=Qe(void 0),c=Qe(void 0),u=Qe(void 0),d=Qe(void 0),p=Qe("unknown"),h=n.value&&r.connection;function m(){r&&(s.value=r.onLine,o.value=s.value?void 0:Date.now(),a.value=s.value?Date.now():void 0,h&&(l.value=h.downlink,c.value=h.downlinkMax,d.value=h.effectiveType,u.value=h.rtt,i.value=h.saveData,p.value=h.type))}const y={passive:!0};return t&&(Pt(t,"offline",()=>{s.value=!1,o.value=Date.now()},y),Pt(t,"online",()=>{s.value=!0,a.value=Date.now()},y)),h&&Pt(h,"change",m,y),m(),{isSupported:n,isOnline:_t(s),saveData:_t(i),offlineAt:_t(o),onlineAt:_t(a),downlink:_t(l),downlinkMax:_t(c),effectiveType:_t(d),rtt:_t(u),type:_t(p)}}var px=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}];function ys(e,t,r,n={}){var s,i;const{clone:o=!1,passive:a=!1,eventName:l,deep:c=!1,defaultValue:u,shouldEmit:d}=n,p=st(),h=r||p?.emit||(p==null||(s=p.$emit)===null||s===void 0?void 0:s.bind(p))||(p==null||(i=p.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(p?.proxy));let m=l;t||(t="modelValue"),m=m||`update:${t.toString()}`;const y=x=>o?typeof o=="function"?o(x):Iy(x):x,T=()=>iy(e[t])?y(e[t]):u,v=x=>{d?d(x)&&h(m,x):h(m,x)};if(a){const x=F(T());let w=!1;return Ae(()=>e[t],b=>{w||(w=!0,x.value=y(b),ft(()=>w=!1))}),Ae(x,b=>{!w&&(b!==e[t]||c)&&v(b)},{deep:c}),x}else return V({get(){return T()},set(x){v(x)}})}function Ol(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Hl(e,t,r=".",n){if(!Ol(t))return Hl(e,{},r,n);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(n&&n(s,i,o,r)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:Ol(o)&&Ol(s[i])?s[i]=Hl(o,s[i],(r?`${r}.`:"")+i.toString(),n):s[i]=o))}return s}function Ml(e){return(...t)=>t.reduce((r,n)=>Hl(r,n,"",e),{})}var Sp=Ml(),hx=Ml((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0}),gx=Ml((e,t,r)=>{if(Array.isArray(e[t])&&typeof r=="function")return e[t]=r(e[t]),!0}),Ny=hy(()=>{const e=F(new Map),t=F(),r=V(()=>{for(const o of e.value.values())if(o)return!0;return!1}),n=Ao({scrollBody:F(!0)});let s=null;const i=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",kl&&s?.(),t.value=void 0};return Ae(r,(o,a)=>{if(!Tt)return;if(!o){a&&i();return}t.value===void 0&&(t.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,c={padding:l,margin:0},u=n.scrollBody?.value?typeof n.scrollBody.value=="object"?Sp({padding:n.scrollBody.value.padding===!0?l:n.scrollBody.value.padding,margin:n.scrollBody.value.margin===!0?l:n.scrollBody.value.margin},c):c:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),kl&&(s=Pt(document,"touchmove",d=>qy(d),{passive:!1})),ft(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Cp(e){const t=Math.random().toString(36).substring(2,7),r=Ny();r.value.set(t,e??!1);const n=V({get:()=>r.value.get(t)??!1,set:s=>r.value.set(t,s)});return by(()=>{r.value.delete(t)}),n}function xp(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const r=e.parentNode;return!(r instanceof Element)||r.tagName==="BODY"?!1:xp(r)}}function qy(e){const t=e||window.event,r=t.target;return r instanceof Element&&xp(r)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Nl(e){const t=Ao({dir:F("ltr")});return V(()=>e?.value||t.dir?.value||"ltr")}function Po(e){const t=st(),r=t?.type.emits,n={};return r?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),r?.forEach(s=>{n[Qn(lt(s))]=(...i)=>e(s,...i)}),n}var ql=0;function By(){Xe(e=>{if(!Tt)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Tp()),document.body.insertAdjacentElement("beforeend",t[1]??Tp()),ql++,e(()=>{ql===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(r=>r.remove()),ql--})})}function Tp(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Ep(e){return V(()=>Ce(e)?!!Bt(e)?.closest("form"):!0)}function Ee(){const e=st(),t=F(),r=V(()=>n());Ws(()=>{r.value!==n()&&tu(t)});function n(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Bt(t)}const s=Object.assign({},e.exposed),i={};for(const a in e.props)Object.defineProperty(i,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(s).length>0)for(const a in s)Object.defineProperty(i,a,{enumerable:!0,configurable:!0,get:()=>s[a]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function o(a){if(t.value=a,!!a&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),!(a instanceof Element)&&!Object.prototype.hasOwnProperty.call(a,"$el"))){const l=a.$.exposed,c=Object.assign({},i);for(const u in l)Object.defineProperty(c,u,{enumerable:!0,configurable:!0,get:()=>l[u]});e.exposed=c}}return{forwardRef:o,currentRef:t,currentElement:r}}function Yr(e){const t=st(),r=Object.keys(t?.type.props??{}).reduce((s,i)=>{const o=(t?.type.props[i]).default;return o!==void 0&&(s[i]=o),s},{}),n=ba(e);return V(()=>{const s={},i=t?.vnode.props??{};return Object.keys(i).forEach(o=>{s[lt(o)]=i[o]}),Object.keys({...r,...s}).reduce((o,a)=>(n.value[a]!==void 0&&(o[a]=n.value[a]),o),{})})}function Zr(e,t){const r=Yr(e),n=t?Po(t):{};return V(()=>({...r.value,...n}))}function Ly(e,t){const r=mp(!1,300);Sn(()=>{r.value=!1});const n=F(null),s=ny();function i(){n.value=null,r.value=!1}function o(a,l){const c=a.currentTarget,u={x:a.clientX,y:a.clientY},d=Vy(u,Fy(u,c.getBoundingClientRect()),1),p=jy(l.getBoundingClientRect());n.value=zy([...d,...p]),r.value=!0}return Xe(a=>{if(e.value&&t.value){const l=u=>o(u,t.value),c=u=>o(u,e.value);e.value.addEventListener("pointerleave",l),t.value.addEventListener("pointerleave",c),a(()=>{e.value?.removeEventListener("pointerleave",l),t.value?.removeEventListener("pointerleave",c)})}}),Xe(a=>{if(n.value){const l=c=>{if(!n.value||!(c.target instanceof Element))return;const u=c.target,d={x:c.clientX,y:c.clientY},p=e.value?.contains(u)||t.value?.contains(u),h=!Uy(d,n.value),m=!!u.closest("[data-grace-area-trigger]");p?i():(h||m)&&(i(),s.trigger())};e.value?.ownerDocument.addEventListener("pointermove",l),a(()=>e.value?.ownerDocument.removeEventListener("pointermove",l))}}),{isPointerInTransit:r,onPointerExit:s.on}}function Fy(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Vy(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function jy(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function Uy(e,t){const{x:r,y:n}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i].x,l=t[i].y,c=t[o].x,u=t[o].y;l>n!=u>n&&r<(c-a)*(n-l)/(u-l)+a&&(s=!s)}return s}function zy(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ky(t)}function Ky(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Wy=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},bs=new WeakMap,Do=new WeakMap,Oo={},Bl=0,Ap=function(e){return e&&(e.host||Ap(e.parentNode))},Gy=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ap(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Jy=function(e,t,r,n){var s=Gy(t,Array.isArray(e)?e:[e]);Oo[r]||(Oo[r]=new WeakMap);var i=Oo[r],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(a.has(p))u(p);else try{var h=p.getAttribute(n),m=h!==null&&h!=="false",y=(bs.get(p)||0)+1,T=(i.get(p)||0)+1;bs.set(p,y),i.set(p,T),o.push(p),y===1&&m&&Do.set(p,!0),T===1&&p.setAttribute(r,"true"),m||p.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return u(t),a.clear(),Bl++,function(){o.forEach(function(d){var p=bs.get(d)-1,h=i.get(d)-1;bs.set(d,p),i.set(d,h),p||(Do.has(d)||d.removeAttribute(n),Do.delete(d)),h||d.removeAttribute(r)}),Bl--,Bl||(bs=new WeakMap,bs=new WeakMap,Do=new WeakMap,Oo={})}},Yy=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=t||Wy(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live], script"))),Jy(n,s,r,"aria-hidden")):function(){return null}};function Ip(e){let t;Ae(()=>Bt(e),r=>{r?t=Yy(r):t&&t()}),kt(()=>{t&&t()})}var Zy=0;function _s(e,t="reka"){if(e)return e;let r;return"useId"in g0?r=Tu?.():r=Ao({useId:void 0}).useId?.()??`${++Zy}`,t?`${t}-${r}`:r}function Rp(e){const t=F(),r=V(()=>t.value?.width??0),n=V(()=>t.value?.height??0);return ze(()=>{const s=Bt(e);if(s){t.value={width:s.offsetWidth,height:s.offsetHeight};const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;l=d.inlineSize,c=d.blockSize}else l=s.offsetWidth,c=s.offsetHeight;t.value={width:l,height:c}});return i.observe(s,{box:"border-box"}),()=>i.unobserve(s)}else t.value=void 0}),{width:r,height:n}}function Ll(e,t){const r=F(e);function n(i){return t[r.value][i]??r.value}return{state:r,dispatch:i=>{r.value=n(i)}}}function kp(e){const t=mp("",1e3);return{search:t,handleTypeaheadSearch:(s,i)=>{if(t.value=t.value+s,e)e(s);else{const o=Ut(),a=i.map(d=>({...d,textValue:d.value?.textValue??d.ref.textContent?.trim()??""})),l=a.find(d=>d.ref===o),c=Qy(a.map(d=>d.textValue),t.value,l?.textValue),u=a.find(d=>d.textValue===c);return u&&u.ref.focus(),u?.ref}},resetTypeahead:()=>{t.value=""}}}function Xy(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Qy(e,t,r){const n=t.length>1&&Array.from(t).every(a=>a===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let i=Xy(e,Math.max(s,0));n.length===1&&(i=i.filter(a=>a!==r));const o=i.find(a=>a.toLowerCase().startsWith(n.toLowerCase()));return o!==r?o:void 0}function eb(e,t){const r=F({}),n=F("none"),s=F(e),i=e.value?"mounted":"unmounted";let o;const a=t.value?.ownerDocument.defaultView??vr,{state:l,dispatch:c}=Ll(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=y=>{if(Tt){const T=new CustomEvent(y,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(T)}};Ae(e,async(y,T)=>{const v=T!==y;if(await ft(),v){const x=n.value,w=Ho(t.value);y?(c("MOUNT"),u("enter"),w==="none"&&u("after-enter")):w==="none"||w==="undefined"||r.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):T&&x!==w?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const d=y=>{const T=Ho(t.value),v=T.includes(CSS.escape(y.animationName)),x=l.value==="mounted"?"enter":"leave";if(y.target===t.value&&v&&(u(`after-${x}`),c("ANIMATION_END"),!s.value)){const w=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",o=a?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=w)})}y.target===t.value&&T==="none"&&c("ANIMATION_END")},p=y=>{y.target===t.value&&(n.value=Ho(t.value))},h=Ae(t,(y,T)=>{y?(r.value=getComputedStyle(y),y.addEventListener("animationstart",p),y.addEventListener("animationcancel",d),y.addEventListener("animationend",d)):(c("ANIMATION_END"),o!==void 0&&a?.clearTimeout(o),T?.removeEventListener("animationstart",p),T?.removeEventListener("animationcancel",d),T?.removeEventListener("animationend",d))},{immediate:!0}),m=Ae(l,()=>{const y=Ho(t.value);n.value=l.value==="mounted"?y:"none"});return kt(()=>{h(),m()}),{isPresent:V(()=>["mounted","unmountSuspended"].includes(l.value))}}function Ho(e){return e&&getComputedStyle(e).animationName||"none"}var Cn=Q({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:r}){const{present:n,forceMount:s}=St(e),i=F(),{isPresent:o}=eb(n,i);r({present:o});let a=t.default({present:o.value});a=Rl(a||[]);const l=st();if(a&&a?.length>1){const c=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(u=>` - ${u}`).join(`
|
|
73
73
|
`)].join(`
|
|
74
|
-
`))}return()=>s.value||n.value||o.value?tr(t.default({present:o.value})[0],{ref:c=>{const u=Bt(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?i.value=u.firstElementChild:i.value=u),u}}):null}}),Fl=X({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:r}){return()=>{if(!r.default)return null;const n=kl(r.default()),s=n.findIndex(l=>l.type!==st);if(s===-1)return n;const i=n[s];delete i.props?.ref;const o=i.props?pe(t,i.props):t,a=pr({...i,props:{}},o);return n.length===1?a:(n[s]=a,n)}}}),tb=["area","img","input"],Le=X({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:r}){const n=e.asChild?"template":e.as;return typeof n=="string"&&tb.includes(n)?()=>tr(n,t):n!=="template"?()=>tr(e.as,t,{default:r.default}):()=>tr(Fl,t,{default:r.default})}});function Vl(){const e=F();return{primitiveElement:e,currentElement:V(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Bt(e))}}var[xn,rb]=xt("DialogRoot"),nb=X({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const r=e,n=ys(r,"open",t,{defaultValue:r.defaultOpen,passive:r.open===void 0}),s=F(),i=F(),{modal:o}=St(r);return rb({open:n,modal:o,openModal:()=>{n.value=!0},onOpenChange:a=>{n.value=a},onOpenToggle:()=>{n.value=!n.value},contentId:"",titleId:"",descriptionId:"",triggerElement:s,contentElement:i}),(a,l)=>te(a.$slots,"default",{open:f(n),close:()=>n.value=!1})}}),sb=X({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Ie();const r=xn();return(n,s)=>($(),j(f(Le),pe(t,{type:n.as==="button"?"button":void 0,onClick:s[0]||(s[0]=i=>f(r).onOpenChange(!1))}),{default:R(()=>[te(n.$slots,"default")]),_:3},16,["type"]))}}),ib="dismissableLayer.pointerDownOutside",ob="dismissableLayer.focusOutside";function $p(e,t){const r=t.closest("[data-dismissable-layer]"),n=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(r&&(n===r||s.indexOf(n)<s.indexOf(r)))}function ab(e,t,r=!0){const n=t?.value?.ownerDocument??globalThis?.document,s=F(!1),i=F(()=>{});return Qe(o=>{if(!Tt||!Ce(r))return;const a=async c=>{const u=c.target;if(!(!t?.value||!u)){if($p(t.value,u)){s.value=!1;return}if(c.target&&!s.value){let g=function(){Al(ib,e,p)};var d=g;const p={originalEvent:c};c.pointerType==="touch"?(n.removeEventListener("click",i.value),i.value=g,n.addEventListener("click",i.value,{once:!0})):g()}else n.removeEventListener("click",i.value);s.value=!1}},l=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);o(()=>{window.clearTimeout(l),n.removeEventListener("pointerdown",a),n.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>{Ce(r)&&(s.value=!0)}}}function lb(e,t,r=!0){const n=t?.value?.ownerDocument??globalThis?.document,s=F(!1);return Qe(i=>{if(!Tt||!Ce(r))return;const o=async a=>{if(!t?.value)return;await ft(),await ft();const l=a.target;!t.value||!l||$p(t.value,l)||a.target&&!s.value&&Al(ob,e,{originalEvent:a})};n.addEventListener("focusin",o),i(()=>n.removeEventListener("focusin",o))}),{onFocusCapture:()=>{Ce(r)&&(s.value=!0)},onBlurCapture:()=>{Ce(r)&&(s.value=!1)}}}var or=Mr({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),jl=X({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const r=e,n=t,{forwardRef:s,currentElement:i}=Ie(),o=V(()=>i.value?.ownerDocument??globalThis.document),a=V(()=>or.layersRoot),l=V(()=>i.value?Array.from(a.value).indexOf(i.value):-1),c=V(()=>or.layersWithOutsidePointerEventsDisabled.size>0),u=V(()=>{const g=Array.from(a.value),[w]=[...or.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(w);return l.value>=b}),d=ab(async g=>{const w=[...or.branches].some(b=>b?.contains(g.target));!u.value||w||(n("pointerDownOutside",g),n("interactOutside",g),await ft(),g.defaultPrevented||n("dismiss"))},i),p=lb(g=>{[...or.branches].some(w=>w?.contains(g.target))||(n("focusOutside",g),n("interactOutside",g),g.defaultPrevented||n("dismiss"))},i);return Ay("Escape",g=>{l.value===a.value.size-1&&(n("escapeKeyDown",g),g.defaultPrevented||n("dismiss"))}),Qe(g=>{i.value&&(r.disableOutsidePointerEvents&&(or.layersWithOutsidePointerEventsDisabled.size===0&&(or.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),or.layersWithOutsidePointerEventsDisabled.add(i.value)),a.value.add(i.value),g(()=>{r.disableOutsidePointerEvents&&or.layersWithOutsidePointerEventsDisabled.size===1&&!Il(or.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=or.originalBodyPointerEvents)}))}),Qe(g=>{g(()=>{i.value&&(a.value.delete(i.value),or.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(g,w)=>($(),j(f(Le),{ref:f(s),"as-child":g.asChild,as:g.as,"data-dismissable-layer":"",style:dt({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:f(p).onFocusCapture,onBlurCapture:f(p).onBlurCapture,onPointerdownCapture:f(d).onPointerDownCapture},{default:R(()=>[te(g.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),cb=sy(()=>F([]));function ub(){const e=cb();return{add(t){const r=e.value[0];t!==r&&r?.pause(),e.value=Pp(e.value,t),e.value.unshift(t)},remove(t){e.value=Pp(e.value,t),e.value[0]?.resume()}}}function Pp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}var Ul="focusScope.autoFocusOnMount",zl="focusScope.autoFocusOnUnmount",Dp={bubbles:!1,cancelable:!0};function db(e,{select:t=!1}={}){const r=Ut();for(const n of e)if(Tn(n,{select:t}),Ut()!==r)return!0}function fb(e){const t=Op(e);return[Hp(t,e),Hp(t.reverse(),e)]}function Op(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Hp(e,t){for(const r of e)if(!pb(r,{upTo:t}))return r}function pb(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function hb(e){return e instanceof HTMLInputElement&&"select"in e}function Tn(e,{select:t=!1}={}){if(e&&e.focus){const r=Ut();e.focus({preventScroll:!0}),e!==r&&hb(e)&&t&&e.select()}}var Mp=X({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const r=e,n=t,{currentRef:s,currentElement:i}=Ie(),o=F(null),a=ub(),l=Mr({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Qe(u=>{if(!Tt)return;const d=i.value;if(!r.trapped)return;function p(C){if(l.paused||!d)return;const v=C.target;d.contains(v)?o.value=v:Tn(o.value,{select:!0})}function g(C){if(l.paused||!d)return;const v=C.relatedTarget;v!==null&&(d.contains(v)||Tn(o.value,{select:!0}))}function w(C){d.contains(o.value)||Tn(d)}document.addEventListener("focusin",p),document.addEventListener("focusout",g);const b=new MutationObserver(w);d&&b.observe(d,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),b.disconnect()})}),Qe(async u=>{const d=i.value;if(await ft(),!d)return;a.add(l);const p=Ut();if(!d.contains(p)){const g=new CustomEvent(Ul,Dp);d.addEventListener(Ul,w=>n("mountAutoFocus",w)),d.dispatchEvent(g),g.defaultPrevented||(db(Op(d),{select:!0}),Ut()===p&&Tn(d))}u(()=>{d.removeEventListener(Ul,b=>n("mountAutoFocus",b));const g=new CustomEvent(zl,Dp),w=b=>{n("unmountAutoFocus",b)};d.addEventListener(zl,w),d.dispatchEvent(g),setTimeout(()=>{g.defaultPrevented||Tn(p??document.body,{select:!0}),d.removeEventListener(zl,w),a.remove(l)},0)})});function c(u){if(!r.loop&&!r.trapped||l.paused)return;const d=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,p=Ut();if(d&&p){const g=u.currentTarget,[w,b]=fb(g);w&&b?!u.shiftKey&&p===b?(u.preventDefault(),r.loop&&Tn(w,{select:!0})):u.shiftKey&&p===w&&(u.preventDefault(),r.loop&&Tn(b,{select:!0})):p===g&&u.preventDefault()}}return(u,d)=>($(),j(f(Le),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:c},{default:R(()=>[te(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),qp=["Enter"," "],gb=["ArrowDown","PageUp","Home"],vb=["ArrowUp","PageDown","End"],vx=[...gb,...vb],mx={ltr:[...qp,"ArrowRight"],rtl:[...qp,"ArrowLeft"]};function mb(e){return e?"open":"closed"}function Np(e){const t=Ut();for(const r of e)if(r===t||(r.focus(),Ut()!==t))return}var Bp=X({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=xn(),{forwardRef:i,currentElement:o}=Ie();return s.titleId||(s.titleId=_s(void 0,"reka-dialog-title")),s.descriptionId||(s.descriptionId=_s(void 0,"reka-dialog-description")),Ke(()=>{s.contentElement=o,Ut()!==document.body&&(s.triggerElement.value=Ut())}),(a,l)=>($(),j(f(Mp),{"as-child":"",loop:"",trapped:r.trapFocus,onMountAutoFocus:l[5]||(l[5]=c=>n("openAutoFocus",c)),onUnmountAutoFocus:l[6]||(l[6]=c=>n("closeAutoFocus",c))},{default:R(()=>[H(f(jl),pe({id:f(s).contentId,ref:f(i),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":f(s).descriptionId,"aria-labelledby":f(s).titleId,"data-state":f(mb)(f(s).open.value)},a.$attrs,{onDismiss:l[0]||(l[0]=c=>f(s).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=c=>n("escapeKeyDown",c)),onFocusOutside:l[2]||(l[2]=c=>n("focusOutside",c)),onInteractOutside:l[3]||(l[3]=c=>n("interactOutside",c)),onPointerDownOutside:l[4]||(l[4]=c=>n("pointerDownOutside",c))}),{default:R(()=>[te(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),wb=X({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=xn(),i=Po(n),{forwardRef:o,currentElement:a}=Ie();return Ip(a),(l,c)=>($(),j(Bp,pe({...r,...f(i)},{ref:f(o),"trap-focus":f(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(u.preventDefault(),f(s).triggerElement.value?.focus())}),onPointerDownOutside:c[1]||(c[1]=u=>{const d=u.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0;(d.button===2||p)&&u.preventDefault()}),onFocusOutside:c[2]||(c[2]=u=>{u.preventDefault()})}),{default:R(()=>[te(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),yb=X({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=Po(t);Ie();const s=xn(),i=F(!1),o=F(!1);return(a,l)=>($(),j(Bp,pe({...r,...f(n)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:l[0]||(l[0]=c=>{c.defaultPrevented||(i.value||f(s).triggerElement.value?.focus(),c.preventDefault()),i.value=!1,o.value=!1}),onInteractOutside:l[1]||(l[1]=c=>{c.defaultPrevented||(i.value=!0,c.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const u=c.target;f(s).triggerElement.value?.contains(u)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.value&&c.preventDefault()})}),{default:R(()=>[te(a.$slots,"default")]),_:3},16))}}),bb=X({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=xn(),i=Po(n),{forwardRef:o}=Ie();return(a,l)=>($(),j(f(Cn),{present:a.forceMount||f(s).open.value},{default:R(()=>[f(s).modal.value?($(),j(wb,pe({key:0,ref:f(o)},{...r,...f(i),...a.$attrs}),{default:R(()=>[te(a.$slots,"default")]),_:3},16)):($(),j(yb,pe({key:1,ref:f(o)},{...r,...f(i),...a.$attrs}),{default:R(()=>[te(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),_b=X({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=xn();return Cp(!0),Ie(),(r,n)=>($(),j(f(Le),{as:r.as,"as-child":r.asChild,"data-state":f(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:R(()=>[te(r.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Sb=X({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=xn(),{forwardRef:r}=Ie();return(n,s)=>f(t)?.modal.value?($(),j(f(Cn),{key:0,present:n.forceMount||f(t).open.value},{default:R(()=>[H(_b,pe(n.$attrs,{ref:f(r),as:n.as,"as-child":n.asChild}),{default:R(()=>[te(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):Pe("v-if",!0)}}),Kl=X({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=Dl();return(r,n)=>f(t)||r.forceMount?($(),j(xa,{key:0,to:r.to,disabled:r.disabled,defer:r.defer},[te(r.$slots,"default")],8,["to","disabled","defer"])):Pe("v-if",!0)}}),Cb=X({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>($(),j(f(Kl),cr(er(t)),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),xb=X({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,r=xn();return Ie(),(n,s)=>($(),j(f(Le),pe(t,{id:f(r).titleId}),{default:R(()=>[te(n.$slots,"default")]),_:3},16,["id"]))}}),Lp="data-reka-collection-item";function Xr(e={}){const{key:t="",isProvider:r=!1}=e,n=`${t}CollectionProvider`;let s;r?(s={collectionRef:F(),itemMap:F(new Map)},as(n,s)):s=kt(n);const i=(l=!1)=>{const c=s.collectionRef.value;if(!c)return[];const u=Array.from(c.querySelectorAll(`[${Lp}]`)),d=Array.from(s.itemMap.value.values()).sort((p,g)=>u.indexOf(p.ref)-u.indexOf(g.ref));return l?d:d.filter(p=>p.ref.dataset.disabled!=="")},o=X({name:"CollectionSlot",inheritAttrs:!1,setup(l,{slots:c,attrs:u}){const{primitiveElement:d,currentElement:p}=Vl();return ke(p,()=>{s.collectionRef.value=p.value}),()=>tr(Fl,{ref:d,...u},c)}}),a=X({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(l,{slots:c,attrs:u}){const{primitiveElement:d,currentElement:p}=Vl();return Qe(g=>{if(p.value){const w=wa(p.value);s.itemMap.value.set(w,{ref:p.value,value:l.value}),g(()=>s.itemMap.value.delete(w))}}),()=>tr(Fl,{...u,[Lp]:"",ref:d},c)}});return{getItems:i,reactiveItems:V(()=>Array.from(s.itemMap.value.values())),itemMapSize:V(()=>s.itemMap.value.size),CollectionSlot:o,CollectionItem:a}}var Wl=X({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,r)=>($(),j(f(Le),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:R(()=>[te(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),Fp=X({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:r,currentElement:n}=Vl();return ke(V(()=>t.checked??t.value),(s,i)=>{if(!n.value)return;const o=n.value,a=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(l&&s!==i){const c=new Event("input",{bubbles:!0}),u=new Event("change",{bubbles:!0});l.call(o,s),o.dispatchEvent(c),o.dispatchEvent(u)}}),(s,i)=>($(),j(Wl,pe({ref_key:"primitiveElement",ref:r},{...t,...s.$attrs},{as:"input"}),null,16))}}),Tb=X({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,r=V(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),n=V(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((s,i)=>typeof s=="object"?Object.entries(s).map(([o,a])=>({name:`${t.name}[${i}][${o}]`,value:a})):{name:`${t.name}[${i}]`,value:s}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([s,i])=>({name:`${t.name}[${s}]`,value:i})):[]);return(s,i)=>($(),me(Be,null,[Pe(" We render single input if it's required "),r.value?($(),j(Fp,pe({key:s.name},{...t,...s.$attrs},{name:s.name,value:s.value}),null,16,["name","value"])):($(!0),me(Be,{key:1},Qt(n.value,o=>($(),j(Fp,pe({key:o.name},{ref_for:!0},{...t,...s.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))],2112))}}),[Vp,Eb]=xt("PopperRoot"),jp=X({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=F();return Eb({anchor:t,onAnchorChange:r=>t.value=r}),(r,n)=>te(r.$slots,"default")}}),Up=X({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r,currentElement:n}=Ie(),s=Vp();return Sa(()=>{s.onAnchorChange(t.reference??n.value)}),(i,o)=>($(),j(f(Le),{ref:f(r),as:i.as,"as-child":i.asChild},{default:R(()=>[te(i.$slots,"default")]),_:3},8,["as","as-child"]))}}),Ab={key:0,d:"M0 0L6 6L12 0"},Ib={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"},kb=X({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return Ie(),(r,n)=>($(),j(f(Le),pe(t,{width:r.width,height:r.height,viewBox:r.asChild?void 0:"0 0 12 6",preserveAspectRatio:r.asChild?void 0:"none"}),{default:R(()=>[te(r.$slots,"default",{},()=>[r.rounded?($(),me("path",Ib)):($(),me("path",Ab))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}});function Rb(e){return e!==null}function $b(e){return{name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:s}=t,i=s.arrow?.centerOffset!==0,o=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[l,c]=Gl(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(s.arrow?.x??0)+o/2,p=(s.arrow?.y??0)+a/2;let g="",w="";return l==="bottom"?(g=i?u:`${d}px`,w=`${-a}px`):l==="top"?(g=i?u:`${d}px`,w=`${n.floating.height+a}px`):l==="right"?(g=`${-a}px`,w=i?u:`${p}px`):l==="left"&&(g=`${n.floating.width+a}px`,w=i?u:`${p}px`),{data:{x:g,y:w}}}}}function Gl(e){const[t,r="center"]=e.split("-");return[t,r]}var Pb=["top","right","bottom","left"],En=Math.min,zt=Math.max,Mo=Math.round,qo=Math.floor,Ar=e=>({x:e,y:e}),Db={left:"right",right:"left",bottom:"top",top:"bottom"};function Jl(e,t,r){return zt(e,En(t,r))}function Qr(e,t){return typeof e=="function"?e(t):e}function en(e){return e.split("-")[0]}function Ss(e){return e.split("-")[1]}function Yl(e){return e==="x"?"y":"x"}function Zl(e){return e==="y"?"height":"width"}function Ir(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Xl(e){return Yl(Ir(e))}function Ob(e,t,r){r===void 0&&(r=!1);const n=Ss(e),s=Xl(e),i=Zl(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=No(o)),[o,No(o)]}function Hb(e){const t=No(e);return[Ql(e),t,Ql(t)]}function Ql(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var zp=["left","right"],Kp=["right","left"],Mb=["top","bottom"],qb=["bottom","top"];function Nb(e,t,r){switch(e){case"top":case"bottom":return r?t?Kp:zp:t?zp:Kp;case"left":case"right":return t?Mb:qb;default:return[]}}function Bb(e,t,r,n){const s=Ss(e);let i=Nb(en(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Ql)))),i}function No(e){const t=en(e);return Db[t]+e.slice(t.length)}function Lb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wp(e){return typeof e!="number"?Lb(e):{top:e,right:e,bottom:e,left:e}}function Bo(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Gp(e,t,r){let{reference:n,floating:s}=e;const i=Ir(t),o=Xl(t),a=Zl(o),l=en(t),c=i==="y",u=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2;let g;switch(l){case"top":g={x:u,y:n.y-s.height};break;case"bottom":g={x:u,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:d};break;case"left":g={x:n.x-s.width,y:d};break;default:g={x:n.x,y:n.y}}switch(Ss(t)){case"start":g[o]-=p*(r&&c?-1:1);break;case"end":g[o]+=p*(r&&c?-1:1);break}return g}async function Fb(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Qr(t,e),w=Wp(g),b=a[p?d==="floating"?"reference":"floating":d],C=Bo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v=d==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),y=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},m=Bo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:S,strategy:l}):v);return{top:(C.top-m.top+w.top)/y.y,bottom:(m.bottom-C.bottom+w.bottom)/y.y,left:(C.left-m.left+w.left)/y.x,right:(m.right-C.right+w.right)/y.x}}var Vb=50,jb=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Fb},l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Gp(c,n,l),p=n,g=0;const w={};for(let b=0;b<i.length;b++){const C=i[b];if(!C)continue;const{name:v,fn:S}=C,{x:y,y:m,data:_,reset:k}=await S({x:u,y:d,initialPlacement:n,placement:p,strategy:s,middlewareData:w,rects:c,platform:a,elements:{reference:e,floating:t}});u=y??u,d=m??d,w[v]={...w[v],..._},k&&g<Vb&&(g++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:u,y:d}=Gp(c,p,l)),b=-1)}return{x:u,y:d,placement:p,strategy:s,middlewareData:w}},Ub=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Qr(e,t)||{};if(c==null)return{};const d=Wp(u),p={x:r,y:n},g=Xl(s),w=Zl(g),b=await o.getDimensions(c),C=g==="y",v=C?"top":"left",S=C?"bottom":"right",y=C?"clientHeight":"clientWidth",m=i.reference[w]+i.reference[g]-p[g]-i.floating[w],_=p[g]-i.reference[g],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let M=k?k[y]:0;(!M||!await(o.isElement==null?void 0:o.isElement(k)))&&(M=a.floating[y]||i.floating[w]);const h=m/2-_/2,O=M/2-b[w]/2-1,P=En(d[v],O),x=En(d[S],O),E=P,A=M-b[w]-x,Y=M/2-b[w]/2+h,Q=Jl(E,Y,A),W=!l.arrow&&Ss(s)!=null&&Y!==Q&&i.reference[w]/2-(Y<E?P:x)-b[w]/2<0,Z=W?Y<E?Y-E:Y-A:0;return{[g]:p[g]+Z,data:{[g]:Q,centerOffset:Y-Q-Z,...W&&{alignmentOffset:Z}},reset:W}}}),zb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:b=!0,...C}=Qr(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=en(s),S=Ir(a),y=en(a)===a,m=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=p||(y||!b?[No(a)]:Hb(a)),k=w!=="none";!p&&k&&_.push(...Bb(a,b,w,m));const M=[a,..._],h=await l.detectOverflow(t,C),O=[];let P=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&O.push(h[v]),d){const Y=Ob(s,o,m);O.push(h[Y[0]],h[Y[1]])}if(P=[...P,{placement:s,overflows:O}],!O.every(Y=>Y<=0)){var x,E;const Y=(((x=i.flip)==null?void 0:x.index)||0)+1,Q=M[Y];if(Q&&(!(d==="alignment"&&S!==Ir(Q))||P.every(Z=>Ir(Z.placement)===S?Z.overflows[0]>0:!0)))return{data:{index:Y,overflows:P},reset:{placement:Q}};let W=(E=P.filter(Z=>Z.overflows[0]<=0).sort((Z,J)=>Z.overflows[1]-J.overflows[1])[0])==null?void 0:E.placement;if(!W)switch(g){case"bestFit":{var A;const Z=(A=P.filter(J=>{if(k){const ie=Ir(J.placement);return ie===S||ie==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(ie=>ie>0).reduce((ie,K)=>ie+K,0)]).sort((J,ie)=>J[1]-ie[1])[0])==null?void 0:A[0];Z&&(W=Z);break}case"initialPlacement":W=a;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function Jp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yp(e){return Pb.some(t=>e[t]>=0)}var Kb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:s="referenceHidden",...i}=Qr(e,t);switch(s){case"referenceHidden":{const o=Jp(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Yp(o)}}}case"escaped":{const o=Jp(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:o,escaped:Yp(o)}}}default:return{}}}}},Zp=new Set(["left","top"]);async function Wb(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=en(r),a=Ss(r),l=Ir(r)==="y",c=Zp.has(o)?-1:1,u=i&&l?-1:1,d=Qr(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),l?{x:g*u,y:p*c}:{x:p*c,y:g*u}}var Gb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await Wb(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},Jb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:S,y}=v;return{x:S,y}}},...c}=Qr(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=Ir(en(s)),g=Yl(p);let w=u[g],b=u[p];if(o){const v=g==="y"?"top":"left",S=g==="y"?"bottom":"right",y=w+d[v],m=w-d[S];w=Jl(y,w,m)}if(a){const v=p==="y"?"top":"left",S=p==="y"?"bottom":"right",y=b+d[v],m=b-d[S];b=Jl(y,b,m)}const C=l.fn({...t,[g]:w,[p]:b});return{...C,data:{x:C.x-r,y:C.y-n,enabled:{[g]:o,[p]:a}}}}}},Yb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Qr(e,t),u={x:r,y:n},d=Ir(s),p=Yl(d);let g=u[p],w=u[d];const b=Qr(a,t),C=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const y=p==="y"?"height":"width",m=i.reference[p]-i.floating[y]+C.mainAxis,_=i.reference[p]+i.reference[y]-C.mainAxis;g<m?g=m:g>_&&(g=_)}if(c){var v,S;const y=p==="y"?"width":"height",m=Zp.has(en(s)),_=i.reference[d]-i.floating[y]+(m&&((v=o.offset)==null?void 0:v[d])||0)+(m?0:C.crossAxis),k=i.reference[d]+i.reference[y]+(m?0:((S=o.offset)==null?void 0:S[d])||0)-(m?C.crossAxis:0);w<_?w=_:w>k&&(w=k)}return{[p]:g,[d]:w}}}},Zb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=Qr(e,t),u=await o.detectOverflow(t,c),d=en(s),p=Ss(s),g=Ir(s)==="y",{width:w,height:b}=i.floating;let C,v;d==="top"||d==="bottom"?(C=d,v=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,C=p==="end"?"top":"bottom");const S=b-u.top-u.bottom,y=w-u.left-u.right,m=En(b-u[C],S),_=En(w-u[v],y),k=!t.middlewareData.shift;let M=m,h=_;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(h=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(M=S),k&&!p){const P=zt(u.left,0),x=zt(u.right,0),E=zt(u.top,0),A=zt(u.bottom,0);g?h=w-2*(P!==0||x!==0?P+x:zt(u.left,u.right)):M=b-2*(E!==0||A!==0?E+A:zt(u.top,u.bottom))}await l({...t,availableWidth:h,availableHeight:M});const O=await o.getDimensions(a.floating);return w!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}};function Lo(){return typeof window<"u"}function zn(e){return ec(e)?(e.nodeName||"").toLowerCase():"#document"}function Kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kr(e){var t;return(t=(ec(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ec(e){return Lo()?e instanceof Node||e instanceof Kt(e).Node:!1}function mr(e){return Lo()?e instanceof Element||e instanceof Kt(e).Element:!1}function tn(e){return Lo()?e instanceof HTMLElement||e instanceof Kt(e).HTMLElement:!1}function Xp(e){return!Lo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kt(e).ShadowRoot}function gi(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&s!=="inline"&&s!=="contents"}function Xb(e){return/^(table|td|th)$/.test(zn(e))}function Fo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Qb=/transform|translate|scale|rotate|perspective|filter/,e1=/paint|layout|strict|content/,Kn=e=>!!e&&e!=="none",tc;function rc(e){const t=mr(e)?wr(e):e;return Kn(t.transform)||Kn(t.translate)||Kn(t.scale)||Kn(t.rotate)||Kn(t.perspective)||!nc()&&(Kn(t.backdropFilter)||Kn(t.filter))||Qb.test(t.willChange||"")||e1.test(t.contain||"")}function t1(e){let t=An(e);for(;tn(t)&&!Cs(t);){if(rc(t))return t;if(Fo(t))return null;t=An(t)}return null}function nc(){return tc==null&&(tc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tc}function Cs(e){return/^(html|body|#document)$/.test(zn(e))}function wr(e){return Kt(e).getComputedStyle(e)}function Vo(e){return mr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function An(e){if(zn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xp(e)&&e.host||kr(e);return Xp(t)?t.host:t}function Qp(e){const t=An(e);return Cs(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&gi(t)?t:Qp(t)}function vi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=Qp(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Kt(s);if(i){const a=sc(o);return t.concat(o,o.visualViewport||[],gi(s)?s:[],a&&r?vi(a):[])}else return t.concat(s,vi(s,[],r))}function sc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eh(e){const t=wr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=tn(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=Mo(r)!==i||Mo(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function ic(e){return mr(e)?e:e.contextElement}function xs(e){const t=ic(e);if(!tn(t))return Ar(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=eh(t);let o=(i?Mo(r.width):r.width)/n,a=(i?Mo(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var r1=Ar(0);function th(e){const t=Kt(e);return!nc()||!t.visualViewport?r1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function n1(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Kt(e)?!1:t}function Wn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=ic(e);let o=Ar(1);t&&(n?mr(n)&&(o=xs(n)):o=xs(e));const a=n1(i,r,n)?th(i):Ar(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const p=Kt(i),g=n&&mr(n)?Kt(n):n;let w=p,b=sc(w);for(;b&&n&&g!==w;){const C=xs(b),v=b.getBoundingClientRect(),S=wr(b),y=v.left+(b.clientLeft+parseFloat(S.paddingLeft))*C.x,m=v.top+(b.clientTop+parseFloat(S.paddingTop))*C.y;l*=C.x,c*=C.y,u*=C.x,d*=C.y,l+=y,c+=m,w=Kt(b),b=sc(w)}}return Bo({width:u,height:d,x:l,y:c})}function jo(e,t){const r=Vo(e).scrollLeft;return t?t.left+r:Wn(kr(e)).left+r}function rh(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-jo(e,r),y:r.top+t.scrollTop}}function s1(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=kr(n),a=t?Fo(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Ar(1);const u=Ar(0),d=tn(n);if((d||!d&&!i)&&((zn(n)!=="body"||gi(o))&&(l=Vo(n)),d)){const g=Wn(n);c=xs(n),u.x=g.x+n.clientLeft,u.y=g.y+n.clientTop}const p=o&&!d&&!i?rh(o,l):Ar(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function i1(e){return Array.from(e.getClientRects())}function o1(e){const t=kr(e),r=Vo(e),n=e.ownerDocument.body,s=zt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=zt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+jo(e);const a=-r.scrollTop;return wr(n).direction==="rtl"&&(o+=zt(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}var nh=25;function a1(e,t){const r=Kt(e),n=kr(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=nc();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const c=jo(n);if(c<=0){const u=n.ownerDocument,d=u.body,p=getComputedStyle(d),g=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,w=Math.abs(n.clientWidth-d.clientWidth-g);w<=nh&&(i-=w)}else c<=nh&&(i+=c);return{width:i,height:o,x:a,y:l}}function l1(e,t){const r=Wn(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=tn(e)?xs(e):Ar(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:s*i.x,y:n*i.y}}function sh(e,t,r){let n;if(t==="viewport")n=a1(e,r);else if(t==="document")n=o1(kr(e));else if(mr(t))n=l1(t,r);else{const s=th(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Bo(n)}function ih(e,t){const r=An(e);return r===t||!mr(r)||Cs(r)?!1:wr(r).position==="fixed"||ih(r,t)}function c1(e,t){const r=t.get(e);if(r)return r;let n=vi(e,[],!1).filter(a=>mr(a)&&zn(a)!=="body"),s=null;const i=wr(e).position==="fixed";let o=i?An(e):e;for(;mr(o)&&!Cs(o);){const a=wr(o),l=rc(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&s&&(s.position==="absolute"||s.position==="fixed")||gi(o)&&!l&&ih(e,o))?n=n.filter(c=>c!==o):s=a,o=An(o)}return t.set(e,n),n}function u1(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?Fo(t)?[]:c1(t,this._c):[].concat(r),n],o=sh(t,i[0],s);let a=o.top,l=o.right,c=o.bottom,u=o.left;for(let d=1;d<i.length;d++){const p=sh(t,i[d],s);a=zt(p.top,a),l=En(p.right,l),c=En(p.bottom,c),u=zt(p.left,u)}return{width:l-u,height:c-a,x:u,y:a}}function d1(e){const{width:t,height:r}=eh(e);return{width:t,height:r}}function f1(e,t,r){const n=tn(t),s=kr(t),i=r==="fixed",o=Wn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ar(0);function c(){l.x=jo(s)}if(n||!n&&!i)if((zn(t)!=="body"||gi(s))&&(a=Vo(t)),n){const d=Wn(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else s&&c();i&&!n&&s&&c();const u=s&&!n&&!i?rh(s,a):Ar(0);return{x:o.left+a.scrollLeft-l.x-u.x,y:o.top+a.scrollTop-l.y-u.y,width:o.width,height:o.height}}function oc(e){return wr(e).position==="static"}function oh(e,t){if(!tn(e)||wr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return kr(e)===r&&(r=r.ownerDocument.body),r}function ah(e,t){const r=Kt(e);if(Fo(e))return r;if(!tn(e)){let s=An(e);for(;s&&!Cs(s);){if(mr(s)&&!oc(s))return s;s=An(s)}return r}let n=oh(e,t);for(;n&&Xb(n)&&oc(n);)n=oh(n,t);return n&&Cs(n)&&oc(n)&&!rc(n)?r:n||t1(e)||r}var p1=async function(e){const t=this.getOffsetParent||ah,r=this.getDimensions,n=await r(e.floating);return{reference:f1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function h1(e){return wr(e).direction==="rtl"}var g1={convertOffsetParentRelativeRectToViewportRelativeRect:s1,getDocumentElement:kr,getClippingRect:u1,getOffsetParent:ah,getElementRects:p1,getClientRects:i1,getDimensions:d1,getScale:xs,isElement:mr,isRTL:h1};function lh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function v1(e,t){let r=null,n;const s=kr(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:g}=c;if(a||t(),!p||!g)return;const w=qo(d),b=qo(s.clientWidth-(u+p)),C=qo(s.clientHeight-(d+g)),v=qo(u),S={rootMargin:-w+"px "+-b+"px "+-C+"px "+-v+"px",threshold:zt(0,En(1,l))||1};let y=!0;function m(_){const k=_[0].intersectionRatio;if(k!==l){if(!y)return o();k?o(!1,k):n=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!lh(c,e.getBoundingClientRect())&&o(),y=!1}try{r=new IntersectionObserver(m,{...S,root:s.ownerDocument})}catch{r=new IntersectionObserver(m,S)}r.observe(e)}return o(!0),i}function m1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=ic(e),u=s||i?[...c?vi(c):[],...t?vi(t):[]]:[];u.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const d=c&&a?v1(c,r):null;let p=-1,g=null;o&&(g=new ResizeObserver(v=>{let[S]=v;S&&S.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=g)==null||y.observe(t)})),r()}),c&&!l&&g.observe(c),t&&g.observe(t));let w,b=l?Wn(e):null;l&&C();function C(){const v=Wn(e);b&&!lh(b,v)&&r(),b=v,w=requestAnimationFrame(C)}return r(),()=>{var v;u.forEach(S=>{s&&S.removeEventListener("scroll",r),i&&S.removeEventListener("resize",r)}),d?.(),(v=g)==null||v.disconnect(),g=null,l&&cancelAnimationFrame(w)}}var w1=Gb,y1=Jb,ch=zb,b1=Zb,_1=Kb,S1=Ub,C1=Yb,x1=(e,t,r)=>{const n=new Map,s={platform:g1,...r},i={...s.platform,_c:n};return jb(e,t,{...s,platform:i})};function T1(e){return e!=null&&typeof e=="object"&&"$el"in e}function ac(e){if(T1(e)){const t=e.$el;return ec(t)&&zn(t)==="#comment"?null:t}return e}function Ts(e){return typeof e=="function"?e():f(e)}function E1(e){return{name:"arrow",options:e,fn(t){const r=ac(Ts(e.element));return r==null?{}:S1({element:r,padding:e.padding}).fn(t)}}}function uh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dh(e,t){const r=uh(e);return Math.round(t*r)/r}function A1(e,t,r){r===void 0&&(r={});const n=r.whileElementsMounted,s=V(()=>{var M;return(M=Ts(r.open))!=null?M:!0}),i=V(()=>Ts(r.middleware)),o=V(()=>{var M;return(M=Ts(r.placement))!=null?M:"bottom"}),a=V(()=>{var M;return(M=Ts(r.strategy))!=null?M:"absolute"}),l=V(()=>{var M;return(M=Ts(r.transform))!=null?M:!0}),c=V(()=>ac(e.value)),u=V(()=>ac(t.value)),d=F(0),p=F(0),g=F(a.value),w=F(o.value),b=et({}),C=F(!1),v=V(()=>{const M={position:g.value,left:"0",top:"0"};if(!u.value)return M;const h=dh(u.value,d.value),O=dh(u.value,p.value);return l.value?{...M,transform:"translate("+h+"px, "+O+"px)",...uh(u.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:h+"px",top:O+"px"}});let S;function y(){if(c.value==null||u.value==null)return;const M=s.value;x1(c.value,u.value,{middleware:i.value,placement:o.value,strategy:a.value}).then(h=>{d.value=h.x,p.value=h.y,g.value=h.strategy,w.value=h.placement,b.value=h.middlewareData,C.value=M!==!1})}function m(){typeof S=="function"&&(S(),S=void 0)}function _(){if(m(),n===void 0){y();return}if(c.value!=null&&u.value!=null){S=n(c.value,u.value,y);return}}function k(){s.value||(C.value=!1)}return ke([i,o,a,s],y,{flush:"sync"}),ke([c,u],_,{flush:"sync"}),ke(s,k,{flush:"sync"}),ki()&&la(m),{x:qr(d),y:qr(p),strategy:qr(g),placement:qr(w),middlewareData:qr(b),isPositioned:qr(C),floatingStyles:v,update:y}}var I1={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[k1,R1]=xt("PopperContent"),fh=X({inheritAttrs:!1,__name:"PopperContent",props:Vu({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...I1}),emits:["placed"],setup(e,{emit:t}){const r=e,n=t,s=Vp(),{forwardRef:i,currentElement:o}=Ie(),a=F(),l=F(),{width:c,height:u}=kp(l),d=V(()=>r.side+(r.align!=="center"?`-${r.align}`:"")),p=V(()=>typeof r.collisionPadding=="number"?r.collisionPadding:{top:0,right:0,bottom:0,left:0,...r.collisionPadding}),g=V(()=>Array.isArray(r.collisionBoundary)?r.collisionBoundary:[r.collisionBoundary]),w=V(()=>({padding:p.value,boundary:g.value.filter(Rb),altBoundary:g.value.length>0})),b=V(()=>({mainAxis:r.sideFlip,crossAxis:r.alignFlip})),C=ry(()=>[w1({mainAxis:r.sideOffset+u.value,alignmentAxis:r.alignOffset}),r.prioritizePosition&&r.avoidCollisions&&ch({...w.value,...b.value}),r.avoidCollisions&&y1({mainAxis:!0,crossAxis:!!r.prioritizePosition,limiter:r.sticky==="partial"?C1():void 0,...w.value}),!r.prioritizePosition&&r.avoidCollisions&&ch({...w.value,...b.value}),b1({...w.value,apply:({elements:P,rects:x,availableWidth:E,availableHeight:A})=>{const{width:Y,height:Q}=x.reference,W=P.floating.style;W.setProperty("--reka-popper-available-width",`${E}px`),W.setProperty("--reka-popper-available-height",`${A}px`),W.setProperty("--reka-popper-anchor-width",`${Y}px`),W.setProperty("--reka-popper-anchor-height",`${Q}px`)}}),l.value&&E1({element:l.value,padding:r.arrowPadding}),$b({arrowWidth:c.value,arrowHeight:u.value}),r.hideWhenDetached&&_1({strategy:"referenceHidden",...w.value})]),{floatingStyles:v,placement:S,isPositioned:y,middlewareData:m,update:_}=A1(V(()=>r.reference??s.anchor.value),a,{strategy:r.positionStrategy,placement:d,whileElementsMounted:(...P)=>m1(...P,{layoutShift:!r.disableUpdateOnLayoutShift,animationFrame:r.updatePositionStrategy==="always"}),middleware:C}),k=V(()=>Gl(S.value)[0]),M=V(()=>Gl(S.value)[1]);Sa(()=>{y.value&&n("placed")});const h=V(()=>{const P=m.value.arrow?.centerOffset!==0;return r.hideShiftedArrow&&P}),O=F("");return Qe(()=>{o.value&&(O.value=window.getComputedStyle(o.value).zIndex)}),R1({placedSide:k,onArrowChange:P=>l.value=P,arrowX:V(()=>m.value.arrow?.x??0),arrowY:V(()=>m.value.arrow?.y??0),shouldHideArrow:h}),(P,x)=>($(),me("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",style:dt({...f(v),transform:f(y)?f(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O.value,"--reka-popper-transform-origin":[f(m).transformOrigin?.x,f(m).transformOrigin?.y].join(" "),...f(m).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[H(f(Le),pe({ref:f(i)},P.$attrs,{"as-child":r.asChild,as:P.as,"data-side":k.value,"data-align":M.value,style:{animation:f(y)?void 0:"none"}}),{default:R(()=>[te(P.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),$1={top:"bottom",right:"left",bottom:"top",left:"right"},P1=X({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=Ie(),r=k1(),n=V(()=>$1[r.placedSide.value]);return(s,i)=>($(),me("span",{ref:o=>{f(r).onArrowChange(o)},style:dt({position:"absolute",left:f(r).arrowX?.value?`${f(r).arrowX?.value}px`:void 0,top:f(r).arrowY?.value?`${f(r).arrowY?.value}px`:void 0,[n.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f(r).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f(r).placedSide.value],visibility:f(r).shouldHideArrow.value?"hidden":void 0})},[H(kb,pe(s.$attrs,{ref:f(t),style:{display:"block"},as:s.as,"as-child":s.asChild,rounded:s.rounded,width:s.width,height:s.height}),{default:R(()=>[te(s.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}});function ph(e){const t=Ao({nonce:F()});return V(()=>e?.value||t.nonce?.value)}function D1(e=[],t,r){const n=[...e];return n[r]=t,n.sort((s,i)=>s-i)}function hh(e,t,r){return hi(100/(r-t)*(e-t),0,100)}function O1(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function H1(e,t){if(e.length===1)return 0;const r=e.map(s=>Math.abs(s-t)),n=Math.min(...r);return r.indexOf(n)}function M1(e,t,r){const n=e/2;return(n-lc([0,50],[0,n])(t)*r)*r}function q1(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function N1(e,t){if(t>0){const r=q1(e);return Math.min(...r)>=t}return!0}function lc(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function B1(e){return(String(e).split(".")[1]||"").length}function L1(e,t){const r=10**t;return Math.round(e*r)/r}var gh=["PageUp","PageDown"],vh=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mh={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageUp","ArrowUp","ArrowLeft"]},[wh,yh]=xt(["SliderVertical","SliderHorizontal"]),F1=X({__name:"SliderHorizontal",props:{dir:{type:String,required:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,{max:s,min:i,dir:o,inverted:a}=St(r),{forwardRef:l,currentElement:c}=Ie(),u=Es(),d=F(),p=F(),g=V(()=>o?.value!=="rtl"&&!a.value||o?.value!=="ltr"&&a.value);function w(b,C){const v=p.value||c.value.getBoundingClientRect(),S=[...u.thumbElements.value][u.valueIndexToChangeRef.value],y=u.thumbAlignment.value==="contain"?S.clientWidth:0;!d.value&&!C&&u.thumbAlignment.value==="contain"&&(d.value=b.clientX-S.getBoundingClientRect().left);const m=lc([0,v.width-y],g.value?[i.value,s.value]:[s.value,i.value]);return p.value=v,m(C?b.clientX-v.left-y/2:b.clientX-v.left-(d.value??0))}return yh({startEdge:V(()=>g.value?"left":"right"),endEdge:V(()=>g.value?"right":"left"),direction:V(()=>g.value?1:-1),size:"width"}),(b,C)=>($(),j(bh,{ref:f(l),dir:f(o),"data-orientation":"horizontal",style:dt({"--reka-slider-thumb-transform":!g.value&&f(u).thumbAlignment.value==="overflow"?"translateX(50%)":"translateX(-50%)"}),onSlideStart:C[0]||(C[0]=v=>{n("slideStart",w(v,!0))}),onSlideMove:C[1]||(C[1]=v=>{n("slideMove",w(v))}),onSlideEnd:C[2]||(C[2]=()=>{p.value=void 0,d.value=void 0,n("slideEnd")}),onStepKeyDown:C[3]||(C[3]=v=>{const S=g.value?"from-left":"from-right";n("stepKeyDown",v,f(mh)[S].includes(v.key)?-1:1)}),onEndKeyDown:C[4]||(C[4]=v=>n("endKeyDown",v)),onHomeKeyDown:C[5]||(C[5]=v=>n("homeKeyDown",v))},{default:R(()=>[te(b.$slots,"default")]),_:3},8,["dir","style"]))}}),V1=X({__name:"SliderVertical",props:{min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,{max:s,min:i,inverted:o}=St(r),a=Es(),{forwardRef:l,currentElement:c}=Ie(),u=F(),d=F(),p=V(()=>!o.value);function g(w,b){const C=d.value||c.value.getBoundingClientRect(),v=[...a.thumbElements.value][a.valueIndexToChangeRef.value],S=a.thumbAlignment.value==="contain"?v.clientHeight:0;!u.value&&!b&&a.thumbAlignment.value==="contain"&&(u.value=w.clientY-v.getBoundingClientRect().top);const y=lc([0,C.height-S],p.value?[s.value,i.value]:[i.value,s.value]),m=b?w.clientY-C.top-S/2:w.clientY-C.top-(u.value??0);return d.value=C,y(m)}return yh({startEdge:V(()=>p.value?"bottom":"top"),endEdge:V(()=>p.value?"top":"bottom"),direction:V(()=>p.value?1:-1),size:"height"}),(w,b)=>($(),j(bh,{ref:f(l),"data-orientation":"vertical",style:dt({"--reka-slider-thumb-transform":!p.value&&f(a).thumbAlignment.value==="overflow"?"translateY(-50%)":"translateY(50%)"}),onSlideStart:b[0]||(b[0]=C=>{n("slideStart",g(C,!0))}),onSlideMove:b[1]||(b[1]=C=>{n("slideMove",g(C))}),onSlideEnd:b[2]||(b[2]=()=>{d.value=void 0,u.value=void 0,n("slideEnd")}),onStepKeyDown:b[3]||(b[3]=C=>{const v=p.value?"from-bottom":"from-top";n("stepKeyDown",C,f(mh)[v].includes(C.key)?-1:1)}),onEndKeyDown:b[4]||(b[4]=C=>n("endKeyDown",C)),onHomeKeyDown:b[5]||(b[5]=C=>n("homeKeyDown",C))},{default:R(()=>[te(w.$slots,"default")]),_:3},8,["style"]))}}),[Es,j1]=xt("SliderRoot"),U1=X({inheritAttrs:!1,__name:"SliderRoot",props:{defaultValue:{type:Array,required:!1,default:()=>[0]},modelValue:{type:[Array,null],required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},inverted:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},minStepsBetweenThumbs:{type:Number,required:!1,default:0},thumbAlignment:{type:String,required:!1,default:"contain"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,{min:s,max:i,step:o,minStepsBetweenThumbs:a,orientation:l,disabled:c,thumbAlignment:u,dir:d}=St(r),p=ql(d),{forwardRef:g,currentElement:w}=Ie(),b=Ep(w),{CollectionSlot:C}=Xr({isProvider:!0}),v=ys(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0}),S=V(()=>Array.isArray(v.value)?[...v.value]:[]),y=F(0),m=F(S.value);function _(P){h(P,H1(S.value,P))}function k(P){h(P,y.value)}function M(){const P=m.value[y.value];S.value[y.value]!==P&&n("valueCommit",Ne(S.value))}function h(P,x,{commit:E}={commit:!1}){const A=B1(o.value),Y=hi(L1(Math.round((P-s.value)/o.value)*o.value+s.value,A),s.value,i.value),Q=D1(S.value,Y,x);if(N1(Q,a.value*o.value)){y.value=Q.indexOf(Y);const W=String(Q)!==String(v.value);W&&E&&n("valueCommit",Q),W&&(O.value[y.value]?.focus(),v.value=Q)}}const O=F([]);return j1({modelValue:v,currentModelValue:S,valueIndexToChangeRef:y,thumbElements:O,orientation:l,min:s,max:i,disabled:c,thumbAlignment:u}),(P,x)=>($(),j(f(C),null,{default:R(()=>[($(),j(Gs(f(l)==="horizontal"?F1:V1),pe(P.$attrs,{ref:f(g),"as-child":P.asChild,as:P.as,min:f(s),max:f(i),dir:f(p),inverted:P.inverted,"aria-disabled":f(c),"data-disabled":f(c)?"":void 0,onPointerdown:x[0]||(x[0]=()=>{f(c)||(m.value=S.value)}),onSlideStart:x[1]||(x[1]=E=>!f(c)&&_(E)),onSlideMove:x[2]||(x[2]=E=>!f(c)&&k(E)),onSlideEnd:x[3]||(x[3]=E=>!f(c)&&M()),onHomeKeyDown:x[4]||(x[4]=E=>!f(c)&&h(f(s),0,{commit:!0})),onEndKeyDown:x[5]||(x[5]=E=>!f(c)&&h(f(i),S.value.length-1,{commit:!0})),onStepKeyDown:x[6]||(x[6]=(E,A)=>{if(!f(c)){const Y=f(gh).includes(E.key)||E.shiftKey&&f(vh).includes(E.key)?10:1,Q=y.value,W=S.value[Q];h(W+f(o)*Y*A,Q,{commit:!0})}})}),{default:R(()=>[te(P.$slots,"default",{modelValue:f(v)}),f(b)&&P.name?($(),j(f(Tb),{key:0,type:"number",value:f(v),name:P.name,required:P.required,disabled:f(c),step:f(o)},null,8,["value","name","required","disabled","step"])):Pe("v-if",!0)]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}))}}),bh=X({__name:"SliderImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,s=Es();return(i,o)=>($(),j(f(Le),pe({"data-slider-impl":""},r,{onKeydown:o[0]||(o[0]=a=>{a.key==="Home"?(n("homeKeyDown",a),a.preventDefault()):a.key==="End"?(n("endKeyDown",a),a.preventDefault()):f(gh).concat(f(vh)).includes(a.key)&&(n("stepKeyDown",a),a.preventDefault())}),onPointerdown:o[1]||(o[1]=a=>{const l=a.target;l.setPointerCapture(a.pointerId),a.preventDefault(),f(s).thumbElements.value.includes(l)?l.focus():n("slideStart",a)}),onPointermove:o[2]||(o[2]=a=>{a.target.hasPointerCapture(a.pointerId)&&n("slideMove",a)}),onPointerup:o[3]||(o[3]=a=>{const l=a.target;l.hasPointerCapture(a.pointerId)&&(l.releasePointerCapture(a.pointerId),n("slideEnd",a))})}),{default:R(()=>[te(i.$slots,"default")]),_:3},16))}}),z1=X({__name:"SliderRange",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=Es(),r=wh();Ie();const n=V(()=>t.currentModelValue.value.map(o=>hh(o,t.min.value,t.max.value))),s=V(()=>t.currentModelValue.value.length>1?Math.min(...n.value):0),i=V(()=>100-Math.max(...n.value,0));return(o,a)=>($(),j(f(Le),{"data-disabled":f(t).disabled.value?"":void 0,"data-orientation":f(t).orientation.value,"as-child":o.asChild,as:o.as,style:dt({[f(r).startEdge.value]:`${s.value}%`,[f(r).endEdge.value]:`${i.value}%`})},{default:R(()=>[te(o.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}}),K1=X({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=Es(),n=wh(),{forwardRef:s,currentElement:i}=Ie(),{CollectionItem:o}=Xr(),a=V(()=>r.modelValue?.value?.[t.index]),l=V(()=>a.value===void 0?0:hh(a.value,r.min.value??0,r.max.value??100)),c=V(()=>O1(t.index,r.modelValue?.value?.length??0)),u=kp(i),d=V(()=>u[n.size].value),p=V(()=>r.thumbAlignment.value==="overflow"||!d.value?0:M1(d.value,l.value,n.direction.value)),g=Dl();return Ke(()=>{r.thumbElements.value.push(i.value)}),Rt(()=>{const w=r.thumbElements.value.findIndex(b=>b===i.value)??-1;r.thumbElements.value.splice(w,1)}),(w,b)=>($(),j(f(o),null,{default:R(()=>[H(f(Le),pe(w.$attrs,{ref:f(s),role:"slider",tabindex:f(r).disabled.value?void 0:0,"aria-label":w.$attrs["aria-label"]||c.value,"data-disabled":f(r).disabled.value?"":void 0,"data-orientation":f(r).orientation.value,"aria-valuenow":a.value,"aria-valuemin":f(r).min.value,"aria-valuemax":f(r).max.value,"aria-orientation":f(r).orientation.value,"as-child":w.asChild,as:w.as,style:{transform:"var(--reka-slider-thumb-transform)",position:"absolute",[f(n).startEdge.value]:`calc(${l.value}% + ${p.value}px)`,display:!f(g)&&a.value===void 0?"none":void 0},onFocus:b[0]||(b[0]=()=>{f(r).valueIndexToChangeRef.value=w.index})}),{default:R(()=>[te(w.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),W1=X({__name:"SliderThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{getItems:r}=Xr(),{forwardRef:n,currentElement:s}=Ie(),i=V(()=>s.value?r(!0).findIndex(o=>o.ref===s.value):-1);return(o,a)=>($(),j(K1,pe({ref:f(n)},t,{index:i.value}),{default:R(()=>[te(o.$slots,"default")]),_:3},16,["index"]))}}),G1=X({__name:"SliderTrack",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=Es();return Ie(),(r,n)=>($(),j(f(Le),{"as-child":r.asChild,as:r.as,"data-disabled":f(t).disabled.value?"":void 0,"data-orientation":f(t).orientation.value},{default:R(()=>[te(r.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),J1=X({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return Ie(),(r,n)=>($(),j(f(Le),pe(t,{onMousedown:n[0]||(n[0]=s=>{!s.defaultPrevented&&s.detail>1&&s.preventDefault()})}),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),[Wt,Y1]=xt("ScrollAreaRoot"),Z1=X({__name:"ScrollAreaRoot",props:{type:{type:String,required:!1,default:"hover"},dir:{type:String,required:!1},scrollHideDelay:{type:Number,required:!1,default:600},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const r=e,n=F(0),s=F(0),i=F(),o=F(),a=F(),l=F(),c=F(!1),u=F(!1),{type:d,dir:p,scrollHideDelay:g}=St(r),w=ql(p);function b(){i.value?.scrollTo({top:0})}function C(){i.value?.scrollTo({top:0,left:0})}t({viewport:i,scrollTop:b,scrollTopLeft:C});const{forwardRef:v,currentElement:S}=Ie();return Y1({type:d,dir:w,scrollHideDelay:g,scrollArea:S,viewport:i,onViewportChange:y=>{i.value=y||void 0},content:o,onContentChange:y=>{o.value=y},scrollbarX:a,scrollbarXEnabled:c,scrollbarY:l,scrollbarYEnabled:u,onScrollbarXChange:y=>{a.value=y||void 0},onScrollbarYChange:y=>{l.value=y||void 0},onScrollbarXEnabledChange:y=>{c.value=y},onScrollbarYEnabledChange:y=>{u.value=y},onCornerWidthChange:y=>{n.value=y},onCornerHeightChange:y=>{s.value=y}}),(y,m)=>($(),j(f(Le),{ref:f(v),"as-child":r.asChild,as:y.as,dir:f(w),style:dt({position:"relative","--reka-scroll-area-corner-width":`${n.value}px`,"--reka-scroll-area-corner-height":`${s.value}px`})},{default:R(()=>[te(y.$slots,"default")]),_:3},8,["as-child","as","dir","style"]))}}),X1=X({__name:"ScrollAreaCornerImpl",setup(e){const t=Wt(),r=F(0),n=F(0),s=V(()=>!!r.value&&!!n.value);function i(){const a=t.scrollbarX.value?.offsetHeight||0;t.onCornerHeightChange(a),n.value=a}function o(){const a=t.scrollbarY.value?.offsetWidth||0;t.onCornerWidthChange(a),r.value=a}return Un(t.scrollbarX.value,i),Un(t.scrollbarY.value,o),ke(()=>t.scrollbarX.value,i),ke(()=>t.scrollbarY.value,o),(a,l)=>s.value?($(),j(f(Le),pe({key:0,style:{width:`${r.value}px`,height:`${n.value}px`,position:"absolute",right:f(t).dir.value==="ltr"?0:void 0,left:f(t).dir.value==="rtl"?0:void 0,bottom:0}},a.$parent?.$props),{default:R(()=>[te(a.$slots,"default")]),_:3},16,["style"])):Pe("v-if",!0)}}),Q1=X({__name:"ScrollAreaCorner",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r}=Ie(),n=Wt(),s=V(()=>!!n.scrollbarX.value&&!!n.scrollbarY.value),i=V(()=>n.type.value!=="scroll"&&s.value);return(o,a)=>i.value?($(),j(X1,pe({key:0},t,{ref:f(r)}),{default:R(()=>[te(o.$slots,"default")]),_:3},16)):Pe("v-if",!0)}});function _h(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Uo(e){const t=Sh(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Sh(e,t){const r=e/t;return Number.isNaN(r)?0:r}function e2(e,t=()=>{}){let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function s(){const i={left:e.scrollLeft,top:e.scrollTop},o=r.left!==i.left,a=r.top!==i.top;(o||a)&&t(),r=i,n=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(n)}function Ch(e,t,r="ltr"){const n=Uo(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,o=t.content-t.viewport,a=i-n,l=r==="ltr"?[0,o]:[o*-1,0],c=hi(e,l[0],l[1]);return _h([0,o],[0,a])(c)}function zo(e){return e?Number.parseInt(e,10):0}function t2(e,t,r,n="ltr"){const s=Uo(r),i=s/2,o=t||i,a=s-o,l=r.scrollbar.paddingStart+o,c=r.scrollbar.size-r.scrollbar.paddingEnd-a,u=r.content-r.viewport,d=n==="ltr"?[0,u]:[u*-1,0];return _h([l,c],d)(e)}function xh(e,t){return e>0&&e<t}var r2=X({__name:"ScrollAreaScrollbarX",setup(e){const t=Wt(),r=Ko(),{forwardRef:n,currentElement:s}=Ie();Ke(()=>{s.value&&t.onScrollbarXChange(s.value)});const i=V(()=>r.sizes.value);return(o,a)=>($(),j(Th,{ref:f(n),"is-horizontal":!0,"data-orientation":"horizontal",style:dt({bottom:0,left:f(t).dir.value==="rtl"?"var(--reka-scroll-area-corner-width)":0,right:f(t).dir.value==="ltr"?"var(--reka-scroll-area-corner-width)":0,"--reka-scroll-area-thumb-width":i.value?`${f(Uo)(i.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>f(r).onDragScroll(l.x))},{default:R(()=>[te(o.$slots,"default")]),_:3},8,["style"]))}}),n2=X({__name:"ScrollAreaScrollbarY",setup(e){const t=Wt(),r=Ko(),{forwardRef:n,currentElement:s}=Ie();Ke(()=>{s.value&&t.onScrollbarYChange(s.value)});const i=V(()=>r.sizes.value);return(o,a)=>($(),j(Th,{ref:f(n),"is-horizontal":!1,"data-orientation":"vertical",style:dt({top:0,right:f(t).dir.value==="ltr"?0:void 0,left:f(t).dir.value==="rtl"?0:void 0,bottom:"var(--reka-scroll-area-corner-height)","--reka-scroll-area-thumb-height":i.value?`${f(Uo)(i.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>f(r).onDragScroll(l.y))},{default:R(()=>[te(o.$slots,"default")]),_:3},8,["style"]))}}),cc=X({__name:"ScrollAreaScrollbarAuto",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Wt(),r=mi(),{forwardRef:n}=Ie(),s=F(!1),i=Pl(()=>{if(t.viewport.value){const o=t.viewport.value.offsetWidth<t.viewport.value.scrollWidth,a=t.viewport.value.offsetHeight<t.viewport.value.scrollHeight;s.value=r.isHorizontal.value?o:a}},10);return Ke(()=>i()),Un(t.viewport,i),Un(t.content,i),(o,a)=>($(),j(f(Cn),{present:o.forceMount||s.value},{default:R(()=>[H(uc,pe(o.$attrs,{ref:f(n),"data-state":s.value?"visible":"hidden"}),{default:R(()=>[te(o.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),s2=X({inheritAttrs:!1,__name:"ScrollAreaScrollbarGlimpse",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Wt(),r=mi(),{forwardRef:n}=Ie(),{state:s,dispatch:i}=Ll("hidden",{hidden:{POINTER_ENTER:"glimpse",SCROLL:"scrolling"},glimpse:{HIDE:"hidden",POINTER_LEAVE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"glimpse"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),o=V(()=>s.value!=="hidden");function a(){i("POINTER_ENTER")}function l(){i("POINTER_LEAVE")}const c=Pl(()=>i("SCROLL_END"),100);return Qe(u=>{if(s.value==="glimpse"){const d=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);u(()=>{window.clearTimeout(d)})}}),Qe(u=>{if(s.value==="idle"){const d=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);u(()=>{window.clearTimeout(d)})}}),Qe(u=>{const d=t.viewport.value,p=r.isHorizontal.value?"scrollLeft":"scrollTop";if(d){let g=d[p];const w=()=>{const b=d[p];g!==b&&(i("SCROLL"),c()),g=b};d.addEventListener("scroll",w),u(()=>{d.removeEventListener("scroll",w)})}}),Ke(()=>{const u=t.scrollArea.value;u&&(u.addEventListener("pointerenter",a),u.addEventListener("pointerleave",l))}),Rt(()=>{const u=t.scrollArea.value;u&&(u.removeEventListener("pointerenter",a),u.removeEventListener("pointerleave",l))}),(u,d)=>($(),j(f(Cn),{present:u.forceMount||o.value},{default:R(()=>[H(cc,pe(u.$attrs,{ref:f(n),"data-state":o.value?"visible":"hidden"}),{default:R(()=>[te(u.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),i2=X({inheritAttrs:!1,__name:"ScrollAreaScrollbarHover",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Wt(),{forwardRef:r}=Ie();let n;const s=F(!1);function i(){window.clearTimeout(n),s.value=!0}function o(){n=window.setTimeout(()=>{s.value=!1},t.scrollHideDelay.value)}return Ke(()=>{const a=t.scrollArea.value;a&&(a.addEventListener("pointerenter",i),a.addEventListener("pointerleave",o))}),Rt(()=>{const a=t.scrollArea.value;a&&(window.clearTimeout(n),a.removeEventListener("pointerenter",i),a.removeEventListener("pointerleave",o))}),(a,l)=>($(),j(f(Cn),{present:a.forceMount||s.value},{default:R(()=>[H(cc,pe(a.$attrs,{ref:f(r),"data-state":s.value?"visible":"hidden"}),{default:R(()=>[te(a.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),o2=X({__name:"ScrollAreaScrollbarScroll",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Wt(),r=mi(),{forwardRef:n}=Ie(),{state:s,dispatch:i}=Ll("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),o=V(()=>s.value!=="hidden");Qe(l=>{if(s.value==="idle"){const c=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);l(()=>{window.clearTimeout(c)})}});const a=Pl(()=>i("SCROLL_END"),100);return Qe(l=>{const c=t.viewport.value,u=r.isHorizontal.value?"scrollLeft":"scrollTop";if(c){let d=c[u];const p=()=>{const g=c[u];d!==g&&(i("SCROLL"),a()),d=g};c.addEventListener("scroll",p),l(()=>{c.removeEventListener("scroll",p)})}}),(l,c)=>($(),j(f(Cn),{present:l.forceMount||o.value},{default:R(()=>[H(uc,pe(l.$attrs,{ref:f(n),"data-state":o.value?"visible":"hidden"}),{default:R(()=>[te(l.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),[mi,a2]=xt("ScrollAreaScrollbar"),l2=X({inheritAttrs:!1,__name:"ScrollAreaScrollbar",props:{orientation:{type:String,required:!1,default:"vertical"},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,{forwardRef:r}=Ie(),n=Wt(),s=V(()=>t.orientation==="horizontal");ke(s,()=>{s.value?n.onScrollbarXEnabledChange(!0):n.onScrollbarYEnabledChange(!0)},{immediate:!0}),Rt(()=>{n.onScrollbarXEnabledChange(!1),n.onScrollbarYEnabledChange(!1)});const{orientation:i,forceMount:o,asChild:a,as:l}=St(t);return a2({orientation:i,forceMount:o,isHorizontal:s,as:l,asChild:a}),(c,u)=>f(n).type.value==="hover"?($(),j(i2,pe({key:0},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:R(()=>[te(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="scroll"?($(),j(o2,pe({key:1},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:R(()=>[te(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="glimpse"?($(),j(s2,pe({key:2},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:R(()=>[te(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="auto"?($(),j(cc,pe({key:3},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:R(()=>[te(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="always"?($(),j(uc,pe({key:4},c.$attrs,{ref:f(r),"data-state":"visible"}),{default:R(()=>[te(c.$slots,"default")]),_:3},16)):Pe("v-if",!0)}}),[Ko,c2]=xt("ScrollAreaScrollbarVisible"),uc=X({__name:"ScrollAreaScrollbarVisible",setup(e){const t=Wt(),r=mi(),{forwardRef:n}=Ie(),s=F({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),i=V(()=>{const v=Sh(s.value.viewport,s.value.content);return v>0&&v<1}),o=F(),a=F(0);function l(v,S){if(g.value){const y=t.viewport.value.scrollLeft+v.deltaY;t.viewport.value.scrollLeft=y,xh(y,S)&&v.preventDefault()}else{const y=t.viewport.value.scrollTop+v.deltaY;t.viewport.value.scrollTop=y,xh(y,S)&&v.preventDefault()}}function c(v,S){g.value?a.value=S.x:a.value=S.y}function u(v){a.value=0}function d(v){s.value=v}function p(v,S){return t2(v,a.value,s.value,S)}const g=V(()=>r.isHorizontal.value);function w(v){g.value?t.viewport.value.scrollLeft=p(v,t.dir.value):t.viewport.value.scrollTop=p(v)}function b(){if(g.value){if(t.viewport.value&&o.value){const v=t.viewport.value.scrollLeft,S=Ch(v,s.value,t.dir.value);o.value.style.transform=`translate3d(${S}px, 0, 0)`}}else if(t.viewport.value&&o.value){const v=t.viewport.value.scrollTop,S=Ch(v,s.value);o.value.style.transform=`translate3d(0, ${S}px, 0)`}}function C(v){o.value=v}return c2({sizes:s,hasThumb:i,handleWheelScroll:l,handleThumbDown:c,handleThumbUp:u,handleSizeChange:d,onThumbPositionChange:b,onThumbChange:C,onDragScroll:w}),(v,S)=>g.value?($(),j(r2,pe({key:0},v.$attrs,{ref:f(n)}),{default:R(()=>[te(v.$slots,"default")]),_:3},16)):($(),j(n2,pe({key:1},v.$attrs,{ref:f(n)}),{default:R(()=>[te(v.$slots,"default")]),_:3},16))}}),Th=X({__name:"ScrollAreaScrollbarImpl",props:{isHorizontal:{type:Boolean,required:!0}},emits:["onDragScroll","onWheelScroll","onThumbPointerDown"],setup(e,{emit:t}){const r=e,n=t,s=Wt(),i=Ko(),o=mi(),{forwardRef:a,currentElement:l}=Ie(),c=F(""),u=F();function d(v){u.value&&n("onDragScroll",{x:v.clientX-u.value?.left,y:v.clientY-u.value?.top})}function p(v){v.button===0&&(v.target.setPointerCapture(v.pointerId),u.value=l.value.getBoundingClientRect(),c.value=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",s.viewport&&(s.viewport.value.style.scrollBehavior="auto"),d(v))}function g(v){d(v)}function w(v){const S=v.target;S.hasPointerCapture(v.pointerId)&&S.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=c.value,s.viewport&&(s.viewport.value.style.scrollBehavior=""),u.value=void 0}function b(v){const S=v.target,y=l.value?.contains(S),m=i.sizes.value.content-i.sizes.value.viewport;y&&i.handleWheelScroll(v,m)}Ke(()=>{document.addEventListener("wheel",b,{passive:!1})}),Rt(()=>{document.removeEventListener("wheel",b)});function C(){l.value&&(r.isHorizontal?i.handleSizeChange({content:s.viewport.value?.scrollWidth??0,viewport:s.viewport.value?.offsetWidth??0,scrollbar:{size:l.value.clientWidth??0,paddingStart:zo(getComputedStyle(l.value).paddingLeft),paddingEnd:zo(getComputedStyle(l.value).paddingRight)}}):i.handleSizeChange({content:s.viewport.value?.scrollHeight??0,viewport:s.viewport.value?.offsetHeight??0,scrollbar:{size:l.value?.clientHeight??0,paddingStart:zo(getComputedStyle(l.value).paddingTop),paddingEnd:zo(getComputedStyle(l.value).paddingBottom)}}),i.onThumbPositionChange())}return Un(l,C),Un(s.content,C),(v,S)=>($(),j(f(Le),{ref:f(a),style:{position:"absolute"},"data-scrollbarimpl":"",as:f(o).as.value,"as-child":f(o).asChild.value,onPointerdown:p,onPointermove:g,onPointerup:w},{default:R(()=>[te(v.$slots,"default")]),_:3},8,["as","as-child"]))}}),u2=X({__name:"ScrollAreaThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=Wt(),n=Ko();function s(d){const p=d.target.getBoundingClientRect(),g=d.clientX-p.left,w=d.clientY-p.top;n.handleThumbDown(d,{x:g,y:w})}function i(d){n.handleThumbUp(d)}const{forwardRef:o,currentElement:a}=Ie(),l=F(),c=V(()=>r.viewport.value);function u(){l.value||(l.value=e2(c.value,n.onThumbPositionChange),n.onThumbPositionChange())}return xy(V(()=>n.sizes.value),()=>{n.onThumbChange(a.value),c.value&&(n.onThumbPositionChange(),c.value.addEventListener("scroll",u))}),Rt(()=>{c.value.removeEventListener("scroll",u),r.viewport.value?.removeEventListener("scroll",u)}),(d,p)=>($(),j(f(Le),{ref:f(o),"data-state":f(n).hasThumb?"visible":"hidden",style:{width:"var(--reka-scroll-area-thumb-width)",height:"var(--reka-scroll-area-thumb-height)"},"as-child":t.asChild,as:d.as,onPointerdown:s,onPointerup:i},{default:R(()=>[te(d.$slots,"default")]),_:3},8,["data-state","as-child","as"]))}}),d2=X({inheritAttrs:!1,__name:"ScrollAreaViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const r=e,{nonce:n}=St(r),s=ph(n),i=Wt(),o=F();Ke(()=>{i.onViewportChange(o.value),i.onContentChange(l.value)}),t({viewportElement:o});const{forwardRef:a,currentElement:l}=Ie();return(c,u)=>($(),me(Be,null,[ee("div",pe({ref_key:"viewportElement",ref:o,"data-reka-scroll-area-viewport":"",style:{overflowX:f(i).scrollbarXEnabled.value?"scroll":"hidden",overflowY:f(i).scrollbarYEnabled.value?"scroll":"hidden"}},c.$attrs,{tabindex:0}),[H(f(Le),{ref:f(a),style:dt({minWidth:f(i).scrollbarXEnabled.value?"fit-content":void 0}),"as-child":r.asChild,as:c.as},{default:R(()=>[te(c.$slots,"default")]),_:3},8,["style","as-child","as"])],16),H(f(Le),{as:"style",nonce:f(s)},{default:R(()=>u[0]||(u[0]=[Me(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-reka-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),f2=[" ","Enter","ArrowUp","ArrowDown"],p2=[" ","Enter"],wx=10;function wi(e,t,r){return e===void 0?!1:Array.isArray(e)?e.some(n=>dc(n,t,r)):dc(e,t,r)}function dc(e,t,r){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof r=="function"?r(e,t):typeof r=="string"?e?.[r]===t?.[r]:ty(e,t)}function h2(e){return e==null||e===""||Array.isArray(e)&&e.length===0}var g2={key:0,value:""},[In,Eh]=xt("SelectRoot"),v2=X({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=e,n=t,{required:s,disabled:i,multiple:o,dir:a}=St(r),l=ys(r,"modelValue",n,{defaultValue:r.defaultValue??(o.value?[]:void 0),passive:r.modelValue===void 0,deep:!0}),c=ys(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),u=F(),d=F(),p=F({x:0,y:0}),g=V(()=>o.value&&Array.isArray(l.value)?l.value?.length===0:Il(l.value));Xr({isProvider:!0});const w=ql(a),b=Ep(u),C=F(new Set),v=V(()=>Array.from(C.value).map(m=>m.value).join(";"));function S(m){if(o.value){const _=Array.isArray(l.value)?[...l.value]:[],k=_.findIndex(M=>dc(M,m,r.by));k===-1?_.push(m):_.splice(k,1),l.value=[..._]}else l.value=m}function y(m){return Array.from(C.value).find(_=>wi(m,_.value,r.by))}return Eh({triggerElement:u,onTriggerChange:m=>{u.value=m},valueElement:d,onValueElementChange:m=>{d.value=m},contentId:"",modelValue:l,onValueChange:S,by:r.by,open:c,multiple:o,required:s,onOpenChange:m=>{c.value=m},dir:w,triggerPointerDownPosRef:p,disabled:i,isEmptyModelValue:g,optionsSet:C,onOptionAdd:m=>{const _=y(m.value);_&&C.value.delete(_),C.value.add(m)},onOptionRemove:m=>{const _=y(m.value);_&&C.value.delete(_)}}),(m,_)=>($(),j(f(jp),null,{default:R(()=>[te(m.$slots,"default",{modelValue:f(l),open:f(c)}),f(b)?($(),j(m2,{key:v.value,"aria-hidden":"true",tabindex:"-1",multiple:f(o),required:f(s),name:m.name,autocomplete:m.autocomplete,disabled:f(i),value:f(l)},{default:R(()=>[f(Il)(f(l))?($(),me("option",g2)):Pe("v-if",!0),($(!0),me(Be,null,Qt(Array.from(C.value),k=>($(),me("option",pe({key:k.value??""},{ref_for:!0},k),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):Pe("v-if",!0)]),_:3}))}}),m2=X({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,r=F(),n=In();ke(()=>t.value,(i,o)=>{const a=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==o&&l&&r.value){const c=new Event("change",{bubbles:!0});l.call(r.value,i),r.value.dispatchEvent(c)}});function s(i){n.onValueChange(i.target.value)}return(i,o)=>($(),j(f(Wl),{"as-child":""},{default:R(()=>[ee("select",pe({ref_key:"selectElement",ref:r},t,{onInput:s}),[te(i.$slots,"default")],16)]),_:3}))}}),w2=X({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:10},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Yr(e);return(r,n)=>($(),j(f(fh),pe(f(t),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),y2={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Gn,Ah]=xt("SelectContent"),b2=X({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=In();By(),Cp(r.bodyLock);const{CollectionSlot:i,getItems:o}=Xr(),a=F();Ip(a);const{search:l,handleTypeaheadSearch:c}=Rp(),u=F(),d=F(),p=F(),g=F(!1),w=F(!1),b=F(!1);function C(){d.value&&a.value&&Np([d.value,a.value])}ke(g,()=>{C()});const{onOpenChange:v,triggerPointerDownPosRef:S}=s;Qe(_=>{if(!a.value)return;let k={x:0,y:0};const M=O=>{k={x:Math.abs(Math.round(O.pageX)-(S.value?.x??0)),y:Math.abs(Math.round(O.pageY)-(S.value?.y??0))}},h=O=>{O.pointerType!=="touch"&&(k.x<=10&&k.y<=10?O.preventDefault():a.value?.contains(O.target)||v(!1),document.removeEventListener("pointermove",M),S.value=null)};S.value!==null&&(document.addEventListener("pointermove",M),document.addEventListener("pointerup",h,{capture:!0,once:!0})),_(()=>{document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",h,{capture:!0})})});function y(_){const k=_.ctrlKey||_.altKey||_.metaKey;if(_.key==="Tab"&&_.preventDefault(),!k&&_.key.length===1&&c(_.key,o()),["ArrowUp","ArrowDown","Home","End"].includes(_.key)){let M=[...o().map(h=>h.ref)];if(["ArrowUp","End"].includes(_.key)&&(M=M.slice().reverse()),["ArrowUp","ArrowDown"].includes(_.key)){const h=_.target,O=M.indexOf(h);M=M.slice(O+1)}setTimeout(()=>Np(M)),_.preventDefault()}}const m=Yr(V(()=>r.position==="popper"?r:{}).value);return Ah({content:a,viewport:u,onViewportChange:_=>{u.value=_},itemRefCallback:(_,k,M)=>{const h=!w.value&&!M,O=wi(s.modelValue.value,k,s.by);if(s.multiple.value){if(b.value)return;(O||h)&&(d.value=_,O&&(b.value=!0))}else(O||h)&&(d.value=_);h&&(w.value=!0)},selectedItem:d,selectedItemText:p,onItemLeave:()=>{a.value?.focus()},itemTextRefCallback:(_,k,M)=>{const h=!w.value&&!M;(wi(s.modelValue.value,k,s.by)||h)&&(p.value=_)},focusSelectedItem:C,position:r.position,isPositioned:g,searchRef:l}),(_,k)=>($(),j(f(i),null,{default:R(()=>[H(f(Mp),{"as-child":"",onMountAutoFocus:k[6]||(k[6]=nr(()=>{},["prevent"])),onUnmountAutoFocus:k[7]||(k[7]=M=>{n("closeAutoFocus",M),!M.defaultPrevented&&(f(s).triggerElement.value?.focus({preventScroll:!0}),M.preventDefault())})},{default:R(()=>[H(f(jl),{"as-child":"","disable-outside-pointer-events":_.disableOutsidePointerEvents,onFocusOutside:k[2]||(k[2]=nr(()=>{},["prevent"])),onDismiss:k[3]||(k[3]=M=>f(s).onOpenChange(!1)),onEscapeKeyDown:k[4]||(k[4]=M=>n("escapeKeyDown",M)),onPointerDownOutside:k[5]||(k[5]=M=>n("pointerDownOutside",M))},{default:R(()=>[($(),j(Gs(_.position==="popper"?w2:S2),pe({..._.$attrs,...f(m)},{id:f(s).contentId,ref:M=>{const h=f(Bt)(M);h?.hasAttribute("data-reka-popper-content-wrapper")?a.value=h.firstElementChild:a.value=h},role:"listbox","data-state":f(s).open.value?"open":"closed",dir:f(s).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:k[0]||(k[0]=nr(()=>{},["prevent"])),onPlaced:k[1]||(k[1]=M=>g.value=!0),onKeydown:y}),{default:R(()=>[te(_.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),[fc,_2]=xt("SelectItemAlignedPosition"),S2=X({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const r=e,n=t,{getItems:s}=Xr(),i=In(),o=Gn(),a=F(!1),l=F(!0),c=F(),{forwardRef:u,currentElement:d}=Ie(),{viewport:p,selectedItem:g,selectedItemText:w,focusSelectedItem:b}=o;function C(){if(i.triggerElement.value&&i.valueElement.value&&c.value&&d.value&&p?.value&&g?.value&&w?.value){const y=i.triggerElement.value.getBoundingClientRect(),m=d.value.getBoundingClientRect(),_=i.valueElement.value.getBoundingClientRect(),k=w.value.getBoundingClientRect();if(i.dir.value!=="rtl"){const Se=k.left-m.left,z=_.left-Se,se=y.left-z,G=y.width+se,oe=Math.max(G,m.width),ae=window.innerWidth-10,Te=hi(z,10,Math.max(10,ae-oe));c.value.style.minWidth=`${G}px`,c.value.style.left=`${Te}px`}else{const Se=m.right-k.right,z=window.innerWidth-_.right-Se,se=window.innerWidth-y.right-z,G=y.width+se,oe=Math.max(G,m.width),ae=window.innerWidth-10,Te=hi(z,10,Math.max(10,ae-oe));c.value.style.minWidth=`${G}px`,c.value.style.right=`${Te}px`}const M=s().map(Se=>Se.ref),h=window.innerHeight-20,O=p.value.scrollHeight,P=window.getComputedStyle(d.value),x=Number.parseInt(P.borderTopWidth,10),E=Number.parseInt(P.paddingTop,10),A=Number.parseInt(P.borderBottomWidth,10),Y=Number.parseInt(P.paddingBottom,10),Q=x+E+O+Y+A,W=Math.min(g.value.offsetHeight*5,Q),Z=window.getComputedStyle(p.value),J=Number.parseInt(Z.paddingTop,10),ie=Number.parseInt(Z.paddingBottom,10),K=y.top+y.height/2-10,ne=h-K,de=g.value.offsetHeight/2,xe=g.value.offsetTop+de,Oe=x+E+xe,_e=Q-Oe;if(Oe<=K){const Se=g.value===M[M.length-1];c.value.style.bottom="0px";const z=d.value.clientHeight-p.value.offsetTop-p.value.offsetHeight,se=Oe+Math.max(ne,de+(Se?ie:0)+z+A);c.value.style.height=`${se}px`}else{const Se=g.value===M[0];c.value.style.top="0px";const z=Math.max(K,x+p.value.offsetTop+(Se?J:0)+de)+_e;c.value.style.height=`${z}px`,p.value.scrollTop=Oe-K+p.value.offsetTop}c.value.style.margin="10px 0",c.value.style.minHeight=`${W}px`,c.value.style.maxHeight=`${h}px`,n("placed"),requestAnimationFrame(()=>a.value=!0)}}const v=F("");Ke(async()=>{await ft(),C(),d.value&&(v.value=window.getComputedStyle(d.value).zIndex)});function S(y){y&&l.value===!0&&(C(),b?.(),l.value=!1)}return Un(i.triggerElement,()=>{C()}),_2({contentWrapper:c,shouldExpandOnScrollRef:a,onScrollButtonChange:S}),(y,m)=>($(),me("div",{ref_key:"contentWrapperElement",ref:c,style:dt({display:"flex",flexDirection:"column",position:"fixed",zIndex:v.value})},[H(f(Le),pe({ref:f(u),style:{boxSizing:"border-box",maxHeight:"100%"}},{...y.$attrs,...r}),{default:R(()=>[te(y.$slots,"default")]),_:3},16)],4))}}),C2=X({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return Eh(e.context),Ah(y2),(t,r)=>te(t.$slots,"default")}}),x2={key:1},T2=X({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=Zr(r,t),s=In(),i=F();Ke(()=>{i.value=new DocumentFragment});const o=F(),a=V(()=>r.forceMount||s.open.value),l=F(a.value);return ke(a,()=>{setTimeout(()=>l.value=a.value)}),(c,u)=>a.value||l.value||o.value?.present?($(),j(f(Cn),{key:0,ref_key:"presenceRef",ref:o,present:a.value},{default:R(()=>[H(b2,cr(er({...f(n),...c.$attrs})),{default:R(()=>[te(c.$slots,"default")]),_:3},16)]),_:3},8,["present"])):i.value?($(),me("div",x2,[($(),j(xa,{to:i.value},[H(C2,{context:f(s)},{default:R(()=>[te(c.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):Pe("v-if",!0)}}),[yx,E2]=xt("SelectGroup"),A2=X({__name:"SelectGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=_s(void 0,"reka-select-group");return E2({id:r}),(n,s)=>($(),j(f(Le),pe({role:"group"},t,{"aria-labelledby":f(r)}),{default:R(()=>[te(n.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),I2=X({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,r)=>($(),j(f(Le),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:R(()=>[te(t.$slots,"default",{},()=>[r[0]||(r[0]=Me("▼"))])]),_:3},8,["as","as-child"]))}}),[Ih,k2]=xt("SelectItem"),R2=X({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=t,{disabled:s}=St(r),i=In(),o=Gn(),{forwardRef:a,currentElement:l}=Ie(),{CollectionItem:c}=Xr(),u=V(()=>wi(i.modelValue?.value,r.value,i.by)),d=F(!1),p=F(r.textValue??""),g=_s(void 0,"reka-select-item-text"),w="select.select";async function b(m){m.defaultPrevented||Al(w,C,{originalEvent:m,value:r.value})}async function C(m){await ft(),n("select",m),!m.defaultPrevented&&(s.value||(i.onValueChange(r.value),i.multiple.value||i.onOpenChange(!1)))}async function v(m){await ft(),!m.defaultPrevented&&(s.value?o.onItemLeave?.():m.currentTarget?.focus({preventScroll:!0}))}async function S(m){await ft(),!m.defaultPrevented&&m.currentTarget===Ut()&&o.onItemLeave?.()}async function y(m){await ft(),!m.defaultPrevented&&(o.searchRef?.value!==""&&m.key===" "||(p2.includes(m.key)&&b(m),m.key===" "&&m.preventDefault()))}if(r.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Ke(()=>{l.value&&o.itemRefCallback(l.value,r.value,r.disabled)}),k2({value:r.value,disabled:s,textId:g,isSelected:u,onItemTextChange:m=>{p.value=((p.value||m?.textContent)??"").trim()}}),(m,_)=>($(),j(f(c),{value:{textValue:p.value}},{default:R(()=>[H(f(Le),{ref:f(a),role:"option","aria-labelledby":f(g),"data-highlighted":d.value?"":void 0,"aria-selected":u.value,"data-state":u.value?"checked":"unchecked","aria-disabled":f(s)||void 0,"data-disabled":f(s)?"":void 0,tabindex:f(s)?void 0:-1,as:m.as,"as-child":m.asChild,onFocus:_[0]||(_[0]=k=>d.value=!0),onBlur:_[1]||(_[1]=k=>d.value=!1),onPointerup:b,onPointerdown:_[2]||(_[2]=k=>{k.currentTarget.focus({preventScroll:!0})}),onTouchend:_[3]||(_[3]=nr(()=>{},["prevent","stop"])),onPointermove:v,onPointerleave:S,onKeydown:y},{default:R(()=>[te(m.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),$2=X({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=Ih();return(n,s)=>f(r).isSelected.value?($(),j(f(Le),pe({key:0,"aria-hidden":"true"},t),{default:R(()=>[te(n.$slots,"default")]),_:3},16)):Pe("v-if",!0)}}),P2=X({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=In(),n=Gn(),s=Ih(),{forwardRef:i,currentElement:o}=Ie(),a=V(()=>({value:s.value,disabled:s.disabled.value,textContent:o.value?.textContent??s.value?.toString()??""}));return Ke(()=>{o.value&&(s.onItemTextChange(o.value),n.itemTextRefCallback(o.value,s.value,s.disabled.value),r.onOptionAdd(a.value))}),Rt(()=>{r.onOptionRemove(a.value)}),(l,c)=>($(),j(f(Le),pe({id:f(s).textId,ref:f(i)},{...t,...l.$attrs}),{default:R(()=>[te(l.$slots,"default")]),_:3},16,["id"]))}}),D2=X({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>($(),j(f(Kl),cr(er(t)),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),kh=X({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const r=t,{getItems:n}=Xr(),s=Gn(),i=F(null);function o(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}Qe(()=>{n().map(c=>c.ref).find(c=>c===Ut())?.scrollIntoView({block:"nearest"})});function a(){i.value===null&&(i.value=window.setInterval(()=>{r("autoScroll")},50))}function l(){s.onItemLeave?.(),i.value===null&&(i.value=window.setInterval(()=>{r("autoScroll")},50))}return fs(()=>o()),(c,u)=>($(),j(f(Le),pe({"aria-hidden":"true",style:{flexShrink:0}},c.$parent?.$props,{onPointerdown:a,onPointermove:l,onPointerleave:u[0]||(u[0]=()=>{o()})}),{default:R(()=>[te(c.$slots,"default")]),_:3},16))}}),O2=X({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Gn(),r=t.position==="item-aligned"?fc():void 0,{forwardRef:n,currentElement:s}=Ie(),i=F(!1);return Qe(o=>{if(t.viewport?.value&&t.isPositioned?.value){let c=function(){const u=l.scrollHeight-l.clientHeight;i.value=Math.ceil(l.scrollTop)<u};var a=c;const l=t.viewport.value;c(),l.addEventListener("scroll",c),o(()=>l.removeEventListener("scroll",c))}}),ke(s,()=>{s.value&&r?.onScrollButtonChange(s.value)}),(o,a)=>i.value?($(),j(kh,{key:0,ref:f(n),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:c}=f(t);l?.value&&c?.value&&(l.value.scrollTop=l.value.scrollTop+c.value.offsetHeight)})},{default:R(()=>[te(o.$slots,"default")]),_:3},512)):Pe("v-if",!0)}}),H2=X({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Gn(),r=t.position==="item-aligned"?fc():void 0,{forwardRef:n,currentElement:s}=Ie(),i=F(!1);return Qe(o=>{if(t.viewport?.value&&t.isPositioned?.value){let c=function(){i.value=l.scrollTop>0};var a=c;const l=t.viewport.value;c(),l.addEventListener("scroll",c),o(()=>l.removeEventListener("scroll",c))}}),ke(s,()=>{s.value&&r?.onScrollButtonChange(s.value)}),(o,a)=>i.value?($(),j(kh,{key:0,ref:f(n),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:c}=f(t);l?.value&&c?.value&&(l.value.scrollTop=l.value.scrollTop-c.value.offsetHeight)})},{default:R(()=>[te(o.$slots,"default")]),_:3},512)):Pe("v-if",!0)}}),M2=X({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,r=In(),{forwardRef:n,currentElement:s}=Ie(),i=V(()=>r.disabled?.value||t.disabled);r.contentId||(r.contentId=_s(void 0,"reka-select-content")),Ke(()=>{r.onTriggerChange(s.value)});const{getItems:o}=Xr(),{search:a,handleTypeaheadSearch:l,resetTypeahead:c}=Rp();function u(){i.value||(r.onOpenChange(!0),c())}function d(p){u(),r.triggerPointerDownPosRef.value={x:Math.round(p.pageX),y:Math.round(p.pageY)}}return(p,g)=>($(),j(f(Up),{"as-child":"",reference:p.reference},{default:R(()=>[H(f(Le),{ref:f(n),role:"combobox",type:p.as==="button"?"button":void 0,"aria-controls":f(r).contentId,"aria-expanded":f(r).open.value||!1,"aria-required":f(r).required?.value,"aria-autocomplete":"none",disabled:i.value,dir:f(r)?.dir.value,"data-state":f(r)?.open.value?"open":"closed","data-disabled":i.value?"":void 0,"data-placeholder":f(h2)(f(r).modelValue?.value)?"":void 0,"as-child":p.asChild,as:p.as,onClick:g[0]||(g[0]=w=>{w?.currentTarget?.focus()}),onPointerdown:g[1]||(g[1]=w=>{if(w.pointerType==="touch")return w.preventDefault();const b=w.target;b.hasPointerCapture(w.pointerId)&&b.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&(d(w),w.preventDefault())}),onPointerup:g[2]||(g[2]=nr(w=>{w.pointerType==="touch"&&d(w)},["prevent"])),onKeydown:g[3]||(g[3]=w=>{const b=f(a)!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&b&&w.key===" "||(f(l)(w.key,f(o)()),f(f2).includes(w.key)&&(u(),w.preventDefault()))})},{default:R(()=>[te(p.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]),_:3},8,["reference"]))}}),q2=X({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:r,currentElement:n}=Ie(),s=In();Ke(()=>{s.valueElement=n});const i=V(()=>{let a=[];const l=Array.from(s.optionsSet.value),c=u=>l.find(d=>wi(u,d.value,s.by));return Array.isArray(s.modelValue.value)?a=s.modelValue.value.map(u=>c(u)?.textContent??""):a=[c(s.modelValue.value)?.textContent??""],a.filter(Boolean)}),o=V(()=>i.value.length?i.value.join(", "):t.placeholder);return(a,l)=>($(),j(f(Le),{ref:f(r),as:a.as,"as-child":a.asChild,style:{pointerEvents:"none"},"data-placeholder":i.value.length?void 0:t.placeholder},{default:R(()=>[te(a.$slots,"default",{selectedLabel:i.value,modelValue:f(s).modelValue.value},()=>[Me(He(o.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),N2=X({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:r}=St(t),n=ph(r),s=Gn(),i=s.position==="item-aligned"?fc():void 0,{forwardRef:o,currentElement:a}=Ie();Ke(()=>{s?.onViewportChange(a.value)});const l=F(0);function c(u){const d=u.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:g}=i??{};if(p?.value&&g?.value){const w=Math.abs(l.value-d.scrollTop);if(w>0){const b=window.innerHeight-20,C=Number.parseFloat(g.value.style.minHeight),v=Number.parseFloat(g.value.style.height),S=Math.max(C,v);if(S<b){const y=S+w,m=Math.min(b,y),_=y-m;g.value.style.height=`${m}px`,g.value.style.bottom==="0px"&&(d.scrollTop=_>0?_:0,g.value.style.justifyContent="flex-end")}}}l.value=d.scrollTop}return(u,d)=>($(),me(Be,null,[H(f(Le),pe({ref:f(o),"data-reka-select-viewport":"",role:"presentation"},{...u.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:c}),{default:R(()=>[te(u.$slots,"default")]),_:3},16),H(f(Le),{as:"style",nonce:f(n)},{default:R(()=>d[0]||(d[0]=[Me(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),B2=X({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=["horizontal","vertical"];function n(a){return r.includes(a)}const s=V(()=>n(t.orientation)?t.orientation:"horizontal"),i=V(()=>s.value==="vertical"?t.orientation:void 0),o=V(()=>t.decorative?{role:"none"}:{"aria-orientation":i.value,role:"separator"});return(a,l)=>($(),j(f(Le),pe({as:a.as,"as-child":a.asChild,"data-orientation":s.value},o.value),{default:R(()=>[te(a.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),L2=X({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(r,n)=>($(),j(B2,cr(er(t)),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),F2=X({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return Ie(),(r,n)=>($(),j(f(P1),cr(er(t)),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),[Wo,V2]=xt("TooltipProvider"),j2=X({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){const{delayDuration:t,skipDelayDuration:r,disableHoverableContent:n,disableClosingTrigger:s,ignoreNonKeyboardFocus:i,disabled:o,content:a}=St(e);Ie();const l=F(!0),c=F(!1),{start:u,stop:d}=wp(()=>{l.value=!0},r,{immediate:!1});return V2({isOpenDelayed:l,delayDuration:t,onOpen(){d(),l.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:n,disableClosingTrigger:s,disabled:o,ignoreNonKeyboardFocus:i,content:a}),(p,g)=>te(p.$slots,"default")}}),Rh="tooltip.open",[Go,U2]=xt("TooltipRoot"),z2=X({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const r=e,n=t;Ie();const s=Wo(),i=V(()=>r.disableHoverableContent??s.disableHoverableContent.value),o=V(()=>r.disableClosingTrigger??s.disableClosingTrigger.value),a=V(()=>r.disabled??s.disabled.value),l=V(()=>r.delayDuration??s.delayDuration.value),c=V(()=>r.ignoreNonKeyboardFocus??s.ignoreNonKeyboardFocus.value),u=ys(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0});ke(u,y=>{s.onClose&&(y?(s.onOpen(),document.dispatchEvent(new CustomEvent(Rh))):s.onClose())});const d=F(!1),p=F(),g=V(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:w,stop:b}=wp(()=>{d.value=!0,u.value=!0},l,{immediate:!1});function C(){b(),d.value=!1,u.value=!0}function v(){b(),u.value=!1}function S(){w()}return U2({contentId:"",open:u,stateAttribute:g,trigger:p,onTriggerChange(y){p.value=y},onTriggerEnter(){s.isOpenDelayed.value?S():C()},onTriggerLeave(){i.value?v():b()},onOpen:C,onClose:v,disableHoverableContent:i,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:c}),(y,m)=>($(),j(f(jp),null,{default:R(()=>[te(y.$slots,"default",{open:f(u)})]),_:3}))}}),$h=X({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Go(),i=Wo(),{forwardRef:o,currentElement:a}=Ie(),l=V(()=>r.ariaLabel||a.value?.textContent),c=V(()=>{const{ariaLabel:u,...d}=r;return Sp(d,i.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return Ke(()=>{Pt(window,"scroll",u=>{u.target?.contains(s.trigger.value)&&s.onClose()}),Pt(window,Rh,s.onClose)}),(u,d)=>($(),j(f(jl),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=p=>n("escapeKeyDown",p)),onPointerDownOutside:d[1]||(d[1]=p=>{f(s).disableClosingTrigger.value&&f(s).trigger.value?.contains(p.target)&&p.preventDefault(),n("pointerDownOutside",p)}),onFocusOutside:d[2]||(d[2]=nr(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=p=>f(s).onClose())},{default:R(()=>[H(f(fh),pe({ref:f(o),"data-state":f(s).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:R(()=>[te(u.$slots,"default"),H(f(Wl),{id:f(s).contentId,role:"tooltip"},{default:R(()=>[Me(He(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),K2=X({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const t=Yr(e),{forwardRef:r,currentElement:n}=Ie(),{trigger:s,onClose:i}=Go(),o=Wo(),{isPointerInTransit:a,onPointerExit:l}=Ly(s,n);return o.isPointerInTransitRef=a,l(()=>{i()}),(c,u)=>($(),j($h,pe({ref:f(r)},f(t)),{default:R(()=>[te(c.$slots,"default")]),_:3},16))}}),W2=X({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Go(),i=Zr(r,n),{forwardRef:o}=Ie();return(a,l)=>($(),j(f(Cn),{present:a.forceMount||f(s).open.value},{default:R(()=>[($(),j(Gs(f(s).disableHoverableContent.value?$h:K2),pe({ref:f(o)},f(i)),{default:R(()=>[te(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),G2=X({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>($(),j(f(Kl),cr(er(t)),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),J2=X({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,r=Go(),n=Wo();r.contentId||(r.contentId=_s(void 0,"reka-tooltip-content"));const{forwardRef:s,currentElement:i}=Ie(),o=F(!1),a=F(!1),l=V(()=>r.disabled.value?{}:{click:b,focus:g,pointermove:d,pointerleave:p,pointerdown:u,blur:w});Ke(()=>{r.onTriggerChange(i.value)});function c(){setTimeout(()=>{o.value=!1},1)}function u(){r.open&&!r.disableClosingTrigger.value&&r.onClose(),o.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(C){C.pointerType!=="touch"&&!a.value&&!n.isPointerInTransitRef.value&&(r.onTriggerEnter(),a.value=!0)}function p(){r.onTriggerLeave(),a.value=!1}function g(C){o.value||r.ignoreNonKeyboardFocus.value&&!C.target.matches?.(":focus-visible")||r.onOpen()}function w(){r.onClose()}function b(){r.disableClosingTrigger.value||r.onClose()}return(C,v)=>($(),j(f(Up),{"as-child":"",reference:C.reference},{default:R(()=>[H(f(Le),pe({ref:f(s),"aria-describedby":f(r).open.value?f(r).contentId:void 0,"data-state":f(r).stateAttribute.value,as:C.as,"as-child":t.asChild,"data-grace-area-trigger":""},Lu(l.value)),{default:R(()=>[te(C.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),Y2=X({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(r,n)=>($(),j(f(Le),{"data-slot":"button",as:e.as,"as-child":e.asChild,class:Ye(f(tt)(f(Z2)({variant:e.variant,size:e.size}),t.class))},{default:R(()=>[te(r.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),rt=Y2;const Z2=Yw("wp:inline-flex wp:items-center wp:justify-center wp:gap-2 wp:whitespace-nowrap wp:rounded-md wp:text-sm wp:font-medium wp:transition-all wp:disabled:pointer-events-none wp:disabled:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg:not([class*='size-'])]:size-4 wp:shrink-0 wp:[&_svg]:shrink-0 wp:outline-none wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px] wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",{variants:{variant:{default:"wp:bg-primary wp:text-primary-foreground wp:hover:bg-primary/90",destructive:"wp:bg-destructive wp:text-white wp:hover:bg-destructive/90 wp:focus-visible:ring-destructive/20 wp:dark:focus-visible:ring-destructive/40 wp:dark:bg-destructive/60",outline:"wp:border wp:bg-background wp:shadow-xs wp:hover:bg-accent wp:hover:text-accent-foreground wp:dark:bg-input/30 wp:dark:border-input wp:dark:hover:bg-input/50",secondary:"wp:bg-secondary wp:text-secondary-foreground wp:hover:bg-secondary/80",ghost:"wp:hover:bg-accent wp:hover:text-accent-foreground wp:dark:hover:bg-accent/50",link:"wp:text-primary wp:underline-offset-4 wp:hover:underline"},size:{default:"wp:h-9 wp:px-4 wp:py-2 wp:has-[>svg]:px-3",sm:"wp:h-8 wp:rounded-md wp:gap-1.5 wp:px-3 wp:has-[>svg]:px-2.5",lg:"wp:h-10 wp:rounded-md wp:px-6 wp:has-[>svg]:px-4",icon:"wp:size-9","icon-sm":"wp:size-8","icon-lg":"wp:size-10"}},defaultVariants:{variant:"default",size:"default"}});var X2={class:"webphone-keypad wp:grid wp:grid-cols-3 wp:gap-y-3 wp:gap-x-6 wp:px-4 wp:py-2 wp:mx-auto wp:place-items-center"},Q2=X({__name:"KeyPad",setup(e){const t=kt("webphone"),{sendDTMF:r}=kt("sip"),{playDtmf:n}=Bf(),s=["1","2","3","4","5","6","7","8","9","*","0","#"],i=o=>{n(o),t.callStatus==="connected"?r(o):t.appendKeypad(o)};return(o,a)=>($(),me("div",X2,[($(),me(Be,null,Qt(s,l=>H(f(rt),{key:l,onClick:c=>i(l),variant:"ghost",size:"icon",class:"webphone-keypad__key wp:flex wp:items-center wp:justify-center wp:h-12 wp:w-full wp:rounded-xs wp:text-2xl wp:bg-neutral-100 wp:dark:bg-neutral-700 wp:hover:bg-neutral-200 wp:dark:hover:bg-neutral-600 wp:hover:text-primary wp:dark:hover:text-neutral-100 wp:text-primary wp:dark:text-white wp:transition-all wp:duration-150 wp:active:scale-95 wp:font-light montserrat","data-key":l},{default:R(()=>[Me(He(l),1)]),_:2},1032,["onClick","data-key"])),64))]))}}),pc=Q2;var Ph=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),e_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),t_=e=>{const t=e_(e);return t.charAt(0).toUpperCase()+t.slice(1)},r_=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Dh=e=>e==="";var yi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var n_=({name:e,iconNode:t,absoluteStrokeWidth:r,"absolute-stroke-width":n,strokeWidth:s,"stroke-width":i,size:o=yi.width,color:a=yi.stroke,...l},{slots:c})=>tr("svg",{...yi,...l,width:o,height:o,stroke:a,"stroke-width":Dh(r)||Dh(n)||r===!0||n===!0?Number(s||i||yi["stroke-width"])*24/Number(o):s||i||yi["stroke-width"],class:r_("lucide",l.class,...e?[`lucide-${Ph(t_(e))}-icon`,`lucide-${Ph(e)}`]:["lucide-icon"])},[...t.map(u=>tr(...u)),...c.default?[c.default()]:[]]);var at=(e,t)=>(r,{slots:n,attrs:s})=>tr(n_,{...s,...r,iconNode:t,name:e},n);var Oh=at("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);var Hh=at("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Mh=at("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var s_=at("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var hc=at("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);var i_=at("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);var o_=at("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);var a_=at("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var l_=at("phone-incoming",[["path",{d:"M16 2v6h6",key:"1mfrl5"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var c_=at("phone-missed",[["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var u_=at("phone-outgoing",[["path",{d:"m16 8 6-6",key:"oawc05"}],["path",{d:"M22 8V2h-6",key:"oqy2zc"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var qh=at("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var d_=at("picture-in-picture-2",[["path",{d:"M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4",key:"daa4of"}],["rect",{width:"10",height:"7",x:"12",y:"13",rx:"2",key:"1nb8gs"}]]);var f_=at("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);var p_=at("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var h_=at("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var g_=at("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);var Nh=at("voicemail",[["circle",{cx:"6",cy:"12",r:"4",key:"1ehtga"}],["circle",{cx:"18",cy:"12",r:"4",key:"4vafl8"}],["line",{x1:"6",x2:"18",y1:"16",y2:"16",key:"pmt8us"}]]);var Bh=at("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);var gc=at("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),v_=X({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=ys(r,"modelValue",t,{passive:!0,defaultValue:r.defaultValue});return(s,i)=>ji(($(),me("input",{"onUpdate:modelValue":i[0]||(i[0]=o=>Ge(n)?n.value=o:null),"data-slot":"input",class:Ye(f(tt)("wp:file:text-foreground wp:placeholder:text-muted-foreground wp:selection:bg-primary wp:selection:text-primary-foreground wp:dark:bg-input/30 wp:border-blue-500 wp:h-9 wp:w-full wp:min-w-0 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-1 wp:text-base wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:file:inline-flex wp:file:h-7 wp:file:border-0 wp:file:bg-transparent wp:file:text-sm wp:file:font-medium wp:disabled:pointer-events-none wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:md:text-sm","wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px]","wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",r.class))},null,2)),[[si,f(n)]])}}),bi=v_,m_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"};function w_(e,t){return $(),me("svg",m_,[...t[0]||(t[0]=[Wa('<g clip-path="url(#a)"><path fill="currentColor" d="m1.913 7.003.035.49c0 .605.49 1.095 1.095 1.095.015 0 1.08-.14 1.08-.14a1.1 1.1 0 0 0 1.07-1.07l.075-.655c1.192-.463 2.33-.465 3.47-.005l.072.657c.01.585.485 1.06 1.07 1.07 0 0 1.065.14 1.08.14.605 0 1.095-.49 1.095-1.07l.038-.537c0-.575-.23-1.12-.65-1.54-1.91-1.91-6.973-1.908-8.88 0-.418.417-.65.965-.648 1.562zM10.94 5.94c.285.285.443.653.44 1.015l-.037.538a.39.39 0 0 1-.368.387s-1.057-.137-1.072-.137a.4.4 0 0 1-.388-.388c0-.015-.1-.92-.1-.92a.35.35 0 0 0-.207-.282c-1.43-.64-2.913-.643-4.408-.003a.36.36 0 0 0-.212.288s-.103.907-.103.917a.386.386 0 0 1-.387.388c-.015 0-1.073.137-1.073.137a.395.395 0 0 1-.37-.41l-.035-.49c0-.385.155-.755.44-1.04 1.74-1.74 6.383-1.497 7.88 0"></path></g><circle cx="7" cy="7" r="6.6" stroke="currentColor" stroke-width=".8"></circle><defs><clipPath id="a"><path fill="#fff" d="M7 13 1 7l6-6 6 6z"></path></clipPath></defs>',3)])])}var vc={render:w_},y_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 9 9"};function b_(e,t){return $(),me("svg",y_,[...t[0]||(t[0]=[ee("g",{"clip-path":"url(#a)"},[ee("path",{fill:"currentColor",d:"M0 8.625V6a3.38 3.38 0 0 1 3.375-3.375h1.811V2.03a.75.75 0 0 1 1.28-.53l2.206 2.205a1.125 1.125 0 0 1 0 1.59L6.466 7.5a.75.75 0 0 1-1.28-.53v-.595H3a2.25 2.25 0 0 0-2.25 2.25.375.375 0 0 1-.75 0M5.936 3a.375.375 0 0 1-.375.375H3.375A2.63 2.63 0 0 0 .75 6v.643A3 3 0 0 1 3 5.625h2.561A.375.375 0 0 1 5.936 6v.97l2.205-2.205a.375.375 0 0 0 0-.53L5.936 2.03z"})],-1),ee("defs",null,[ee("clipPath",{id:"a"},[ee("path",{fill:"#fff",d:"M0 0h9v9H0z"})])],-1)])])}var __={render:b_},S_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function C_(e,t){return $(),me("svg",S_,[...t[0]||(t[0]=[Wa('<g clip-path="url(#a)"><path fill="currentColor" d="m13.499 13.495.321-.371a1.095 1.095 0 0 0 0-1.549c-.01-.01-.862-.665-.862-.665a1.1 1.1 0 0 0-1.514 0l-.516.41c-1.17-.516-1.976-1.318-2.457-2.45l.414-.516a1.09 1.09 0 0 0 0-1.513s-.654-.852-.665-.863c-.428-.427-1.12-.427-1.53-.017l-.407.353c-.407.407-.63.955-.63 1.549 0 2.701 3.582 6.279 6.28 6.279.59 0 1.141-.223 1.562-.647zM6.364 7.863c0-.403.148-.774.406-1.029l.407-.354a.39.39 0 0 1 .534-.014s.65.845.661.856a.4.4 0 0 1 0 .548c-.01.01-.58.721-.58.721a.35.35 0 0 0-.053.347c.559 1.463 1.605 2.513 3.115 3.118a.36.36 0 0 0 .354-.053l.72-.576a.386.386 0 0 1 .549 0c.01.01.855.66.855.66a.395.395 0 0 1-.028.552l-.322.372a1.47 1.47 0 0 1-1.046.424c-2.46 0-5.572-3.454-5.572-5.572"></path></g><circle cx="9.899" cy="9.899" r="6.6" stroke="currentColor" stroke-width=".8" transform="rotate(-135 9.9 9.9)"></circle><defs><clipPath id="a"><path fill="#fff" d="M14.143 5.657v8.485H5.658V5.657z"></path></clipPath></defs>',3)])])}var x_={render:C_},T_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"2.8 2.8 14.2 14.2"};function E_(e,t){return $(),me("svg",T_,[...t[0]||(t[0]=[ee("circle",{cx:"9.899",cy:"9.899",r:"6.6",stroke:"currentColor","stroke-width":".8",transform:"rotate(-135 9.9 9.9)"},null,-1),ee("path",{fill:"currentColor",d:"M13.634 8.18a.66.66 0 0 0-.729.094l-.585.591a1.663 1.663 0 0 0-1.653-1.531h-3C6.747 7.334 6 8.08 6 9v2a1.67 1.67 0 0 0 1.667 1.667h3c.876 0 1.589-.683 1.654-1.543l.585.585.036.03a.66.66 0 0 0 .692.063.66.66 0 0 0 .366-.591V8.77a.66.66 0 0 0-.366-.592M10.667 12h-3c-.552 0-1-.449-1-1V9c0-.551.448-1 1-1h3c.551 0 1 .449 1 1v2c0 .551-.449 1-1 1m1.666-1.806v-.396l1-1.01.009 2.413z"},null,-1)])])}var A_={render:E_},I_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function k_(e,t){return $(),me("svg",I_,[...t[0]||(t[0]=[ee("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.076-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.144.223c.192.26.44.468.726.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.75 1.75 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.93 1.93 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.143.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.03-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.797-.008l.07.043c.244.163.445.384.589.645a1.93 1.93 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.74 1.74 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zm-2.03-1.943c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222a1.97 1.97 0 0 0 1.569.803c.292 0 .58-.067.844-.196.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1)])])}var mc={render:k_},R_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function $_(e,t){return $(),me("svg",R_,[...t[0]||(t[0]=[ee("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.74 1.74 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.92 1.92 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.142.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.75 1.75 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.384.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.029-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.964.027.056.047.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.708 14.6c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222c.19.26.44.468.725.607a1.92 1.92 0 0 0 1.688 0c.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1),ee("path",{stroke:"currentColor","stroke-linecap":"round",d:"M2 16.293 16.293 2"},null,-1)])])}var wc={render:$_},P_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"};function D_(e,t){return $(),me("svg",P_,[...t[0]||(t[0]=[ee("path",{fill:"currentColor",d:"M9.75 1H4.5c-.678 0-1.314.302-1.743.828L.513 4.578a2.26 2.26 0 0 0 0 2.844l2.243 2.75A2.24 2.24 0 0 0 4.5 11h5.25C10.99 11 12 9.99 12 8.75v-5.5C12 2.01 10.99 1 9.75 1m1.75 7.75c0 .965-.785 1.75-1.75 1.75H4.5a1.74 1.74 0 0 1-1.356-.644L.901 7.106a1.755 1.755 0 0 1 0-2.212l2.243-2.75A1.74 1.74 0 0 1 4.5 1.499h5.25c.965 0 1.75.785 1.75 1.75zM8.927 4.427 7.354 6l1.573 1.573a.25.25 0 0 1-.354.353L7 6.355 5.427 7.926a.25.25 0 0 1-.354 0 .25.25 0 0 1 0-.353L6.646 6 5.073 4.427a.25.25 0 0 1 .354-.353L7 5.646l1.573-1.572a.25.25 0 0 1 .353.353z"},null,-1)])])}var yc={render:D_},O_=["data-call-status"],H_={key:0,class:"webphone-actions__idle wp:!w-full wp:flex wp:flex-col wp:items-center wp:space-y-2 wp:mb-4"},M_={key:2,class:"webphone-actions__connected wp:w-full wp:flex wp:flex-col wp:items-center wp:gap-3"},q_={class:"webphone-actions__row wp:flex wp:items-center wp:gap-6"},N_={class:"webphone-actions__dialer wp:w-full wp:max-w-80 wp:relative"},B_=["data-visible"],L_={key:3,class:"webphone-actions__calling wp:w-full wp:flex wp:flex-col wp:items-center wp:gap-3"},F_={class:"webphone-actions__dialer wp:w-full wp:max-w-80 wp:relative"},V_=["data-visible"],j_={key:4,class:"webphone-actions__transfer-state wp:absolute wp:inset-x-0 wp:bottom-full wp:mb-2 wp:flex wp:justify-center wp:gap-2"},U_=X({__name:"CallActions",props:{destination:{},isVideo:{type:Boolean}},emits:["transfer","completeTransfer","cancelTransfer"],setup(e,{emit:t}){const r=kt("webphone"),{makeCall:n,hangupCall:s,answerCall:i,toggleMute:o,toggleHold:a}=kt("sip"),l=e,c=t,u=V(()=>!!r.transferInProgress),d=V(()=>l.destination||r.keypadValue||r.lastDialedNumber||""),p=V(()=>!!l.destination||/^[+]?[0-9*#]+$/.test(r.keypadValue)),g=V(()=>p.value||!!r.lastDialedNumber),w=V(()=>!l.isVideo||!p.value?!1:d.value?/^[0-9*#]{1,5}$/.test(d.value):!0),b=async y=>{try{l.destination?await n(l.destination,y):r.keypadValue?await n(r.keypadValue,y):r.lastDialedNumber&&(r.keypadValue=r.lastDialedNumber)}catch(m){if(console.error("Error initiating call:",m),y){let _="No se pudo acceder a la cámara.";const k=m instanceof Error?m.name:String(m);k==="NotReadableError"?_="La cámara parece estar en uso por otra aplicación (ej: Zoom, Meet) o no se puede acceder al hardware.":k==="NotAllowedError"||k==="PermissionDeniedError"?_="Permiso de cámara denegado. Por favor, permita el acceso a la cámara.":k==="NotFoundError"?_="No se detectó ninguna cámara en el sistema.":_+=" "+(m instanceof Error?m.message:String(m)),confirm(`${_}
|
|
74
|
+
`))}return()=>s.value||n.value||o.value?tr(t.default({present:o.value})[0],{ref:c=>{const u=Bt(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?i.value=u.firstElementChild:i.value=u),u}}):null}}),Fl=Q({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:r}){return()=>{if(!r.default)return null;const n=Rl(r.default()),s=n.findIndex(l=>l.type!==nt);if(s===-1)return n;const i=n[s];delete i.props?.ref;const o=i.props?pe(t,i.props):t,a=pr({...i,props:{}},o);return n.length===1?a:(n[s]=a,n)}}}),tb=["area","img","input"],qe=Q({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:r}){const n=e.asChild?"template":e.as;return typeof n=="string"&&tb.includes(n)?()=>tr(n,t):n!=="template"?()=>tr(e.as,t,{default:r.default}):()=>tr(Fl,t,{default:r.default})}});function Vl(){const e=F();return{primitiveElement:e,currentElement:V(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Bt(e))}}var[xn,rb]=xt("DialogRoot"),nb=Q({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const r=e,n=ys(r,"open",t,{defaultValue:r.defaultOpen,passive:r.open===void 0}),s=F(),i=F(),{modal:o}=St(r);return rb({open:n,modal:o,openModal:()=>{n.value=!0},onOpenChange:a=>{n.value=a},onOpenToggle:()=>{n.value=!n.value},contentId:"",titleId:"",descriptionId:"",triggerElement:s,contentElement:i}),(a,l)=>ie(a.$slots,"default",{open:f(n),close:()=>n.value=!1})}}),sb=Q({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Ee();const r=xn();return(n,s)=>($(),U(f(qe),pe(t,{type:n.as==="button"?"button":void 0,onClick:s[0]||(s[0]=i=>f(r).onOpenChange(!1))}),{default:k(()=>[ie(n.$slots,"default")]),_:3},16,["type"]))}}),ib="dismissableLayer.pointerDownOutside",ob="dismissableLayer.focusOutside";function $p(e,t){const r=t.closest("[data-dismissable-layer]"),n=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(r&&(n===r||s.indexOf(n)<s.indexOf(r)))}function ab(e,t,r=!0){const n=t?.value?.ownerDocument??globalThis?.document,s=F(!1),i=F(()=>{});return Xe(o=>{if(!Tt||!Ce(r))return;const a=async c=>{const u=c.target;if(!(!t?.value||!u)){if($p(t.value,u)){s.value=!1;return}if(c.target&&!s.value){let h=function(){Al(ib,e,p)};var d=h;const p={originalEvent:c};c.pointerType==="touch"?(n.removeEventListener("click",i.value),i.value=h,n.addEventListener("click",i.value,{once:!0})):h()}else n.removeEventListener("click",i.value);s.value=!1}},l=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);o(()=>{window.clearTimeout(l),n.removeEventListener("pointerdown",a),n.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>{Ce(r)&&(s.value=!0)}}}function lb(e,t,r=!0){const n=t?.value?.ownerDocument??globalThis?.document,s=F(!1);return Xe(i=>{if(!Tt||!Ce(r))return;const o=async a=>{if(!t?.value)return;await ft(),await ft();const l=a.target;!t.value||!l||$p(t.value,l)||a.target&&!s.value&&Al(ob,e,{originalEvent:a})};n.addEventListener("focusin",o),i(()=>n.removeEventListener("focusin",o))}),{onFocusCapture:()=>{Ce(r)&&(s.value=!0)},onBlurCapture:()=>{Ce(r)&&(s.value=!1)}}}var or=Mr({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),jl=Q({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const r=e,n=t,{forwardRef:s,currentElement:i}=Ee(),o=V(()=>i.value?.ownerDocument??globalThis.document),a=V(()=>or.layersRoot),l=V(()=>i.value?Array.from(a.value).indexOf(i.value):-1),c=V(()=>or.layersWithOutsidePointerEventsDisabled.size>0),u=V(()=>{const h=Array.from(a.value),[m]=[...or.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(m);return l.value>=y}),d=ab(async h=>{const m=[...or.branches].some(y=>y?.contains(h.target));!u.value||m||(n("pointerDownOutside",h),n("interactOutside",h),await ft(),h.defaultPrevented||n("dismiss"))},i),p=lb(h=>{[...or.branches].some(m=>m?.contains(h.target))||(n("focusOutside",h),n("interactOutside",h),h.defaultPrevented||n("dismiss"))},i);return Ay("Escape",h=>{l.value===a.value.size-1&&(n("escapeKeyDown",h),h.defaultPrevented||n("dismiss"))}),Xe(h=>{i.value&&(r.disableOutsidePointerEvents&&(or.layersWithOutsidePointerEventsDisabled.size===0&&(or.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),or.layersWithOutsidePointerEventsDisabled.add(i.value)),a.value.add(i.value),h(()=>{r.disableOutsidePointerEvents&&or.layersWithOutsidePointerEventsDisabled.size===1&&!Il(or.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=or.originalBodyPointerEvents)}))}),Xe(h=>{h(()=>{i.value&&(a.value.delete(i.value),or.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(h,m)=>($(),U(f(qe),{ref:f(s),"as-child":h.asChild,as:h.as,"data-dismissable-layer":"",style:dt({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:f(p).onFocusCapture,onBlurCapture:f(p).onBlurCapture,onPointerdownCapture:f(d).onPointerDownCapture},{default:k(()=>[ie(h.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),cb=sy(()=>F([]));function ub(){const e=cb();return{add(t){const r=e.value[0];t!==r&&r?.pause(),e.value=Pp(e.value,t),e.value.unshift(t)},remove(t){e.value=Pp(e.value,t),e.value[0]?.resume()}}}function Pp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}var Ul="focusScope.autoFocusOnMount",zl="focusScope.autoFocusOnUnmount",Dp={bubbles:!1,cancelable:!0};function db(e,{select:t=!1}={}){const r=Ut();for(const n of e)if(Tn(n,{select:t}),Ut()!==r)return!0}function fb(e){const t=Op(e);return[Hp(t,e),Hp(t.reverse(),e)]}function Op(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Hp(e,t){for(const r of e)if(!pb(r,{upTo:t}))return r}function pb(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function hb(e){return e instanceof HTMLInputElement&&"select"in e}function Tn(e,{select:t=!1}={}){if(e&&e.focus){const r=Ut();e.focus({preventScroll:!0}),e!==r&&hb(e)&&t&&e.select()}}var Mp=Q({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const r=e,n=t,{currentRef:s,currentElement:i}=Ee(),o=F(null),a=ub(),l=Mr({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Xe(u=>{if(!Tt)return;const d=i.value;if(!r.trapped)return;function p(T){if(l.paused||!d)return;const v=T.target;d.contains(v)?o.value=v:Tn(o.value,{select:!0})}function h(T){if(l.paused||!d)return;const v=T.relatedTarget;v!==null&&(d.contains(v)||Tn(o.value,{select:!0}))}function m(T){d.contains(o.value)||Tn(d)}document.addEventListener("focusin",p),document.addEventListener("focusout",h);const y=new MutationObserver(m);d&&y.observe(d,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",h),y.disconnect()})}),Xe(async u=>{const d=i.value;if(await ft(),!d)return;a.add(l);const p=Ut();if(!d.contains(p)){const h=new CustomEvent(Ul,Dp);d.addEventListener(Ul,m=>n("mountAutoFocus",m)),d.dispatchEvent(h),h.defaultPrevented||(db(Op(d),{select:!0}),Ut()===p&&Tn(d))}u(()=>{d.removeEventListener(Ul,y=>n("mountAutoFocus",y));const h=new CustomEvent(zl,Dp),m=y=>{n("unmountAutoFocus",y)};d.addEventListener(zl,m),d.dispatchEvent(h),setTimeout(()=>{h.defaultPrevented||Tn(p??document.body,{select:!0}),d.removeEventListener(zl,m),a.remove(l)},0)})});function c(u){if(!r.loop&&!r.trapped||l.paused)return;const d=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,p=Ut();if(d&&p){const h=u.currentTarget,[m,y]=fb(h);m&&y?!u.shiftKey&&p===y?(u.preventDefault(),r.loop&&Tn(m,{select:!0})):u.shiftKey&&p===m&&(u.preventDefault(),r.loop&&Tn(y,{select:!0})):p===h&&u.preventDefault()}}return(u,d)=>($(),U(f(qe),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:c},{default:k(()=>[ie(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),Np=["Enter"," "],gb=["ArrowDown","PageUp","Home"],vb=["ArrowUp","PageDown","End"],vx=[...gb,...vb],mx={ltr:[...Np,"ArrowRight"],rtl:[...Np,"ArrowLeft"]};function mb(e){return e?"open":"closed"}function qp(e){const t=Ut();for(const r of e)if(r===t||(r.focus(),Ut()!==t))return}var Bp=Q({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=xn(),{forwardRef:i,currentElement:o}=Ee();return s.titleId||(s.titleId=_s(void 0,"reka-dialog-title")),s.descriptionId||(s.descriptionId=_s(void 0,"reka-dialog-description")),ze(()=>{s.contentElement=o,Ut()!==document.body&&(s.triggerElement.value=Ut())}),(a,l)=>($(),U(f(Mp),{"as-child":"",loop:"",trapped:r.trapFocus,onMountAutoFocus:l[5]||(l[5]=c=>n("openAutoFocus",c)),onUnmountAutoFocus:l[6]||(l[6]=c=>n("closeAutoFocus",c))},{default:k(()=>[H(f(jl),pe({id:f(s).contentId,ref:f(i),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":f(s).descriptionId,"aria-labelledby":f(s).titleId,"data-state":f(mb)(f(s).open.value)},a.$attrs,{onDismiss:l[0]||(l[0]=c=>f(s).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=c=>n("escapeKeyDown",c)),onFocusOutside:l[2]||(l[2]=c=>n("focusOutside",c)),onInteractOutside:l[3]||(l[3]=c=>n("interactOutside",c)),onPointerDownOutside:l[4]||(l[4]=c=>n("pointerDownOutside",c))}),{default:k(()=>[ie(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),wb=Q({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=xn(),i=Po(n),{forwardRef:o,currentElement:a}=Ee();return Ip(a),(l,c)=>($(),U(Bp,pe({...r,...f(i)},{ref:f(o),"trap-focus":f(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(u.preventDefault(),f(s).triggerElement.value?.focus())}),onPointerDownOutside:c[1]||(c[1]=u=>{const d=u.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0;(d.button===2||p)&&u.preventDefault()}),onFocusOutside:c[2]||(c[2]=u=>{u.preventDefault()})}),{default:k(()=>[ie(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),yb=Q({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=Po(t);Ee();const s=xn(),i=F(!1),o=F(!1);return(a,l)=>($(),U(Bp,pe({...r,...f(n)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:l[0]||(l[0]=c=>{c.defaultPrevented||(i.value||f(s).triggerElement.value?.focus(),c.preventDefault()),i.value=!1,o.value=!1}),onInteractOutside:l[1]||(l[1]=c=>{c.defaultPrevented||(i.value=!0,c.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const u=c.target;f(s).triggerElement.value?.contains(u)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.value&&c.preventDefault()})}),{default:k(()=>[ie(a.$slots,"default")]),_:3},16))}}),bb=Q({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=xn(),i=Po(n),{forwardRef:o}=Ee();return(a,l)=>($(),U(f(Cn),{present:a.forceMount||f(s).open.value},{default:k(()=>[f(s).modal.value?($(),U(wb,pe({key:0,ref:f(o)},{...r,...f(i),...a.$attrs}),{default:k(()=>[ie(a.$slots,"default")]),_:3},16)):($(),U(yb,pe({key:1,ref:f(o)},{...r,...f(i),...a.$attrs}),{default:k(()=>[ie(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),_b=Q({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=xn();return Cp(!0),Ee(),(r,n)=>($(),U(f(qe),{as:r.as,"as-child":r.asChild,"data-state":f(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:k(()=>[ie(r.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Sb=Q({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=xn(),{forwardRef:r}=Ee();return(n,s)=>f(t)?.modal.value?($(),U(f(Cn),{key:0,present:n.forceMount||f(t).open.value},{default:k(()=>[H(_b,pe(n.$attrs,{ref:f(r),as:n.as,"as-child":n.asChild}),{default:k(()=>[ie(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):ke("v-if",!0)}}),Kl=Q({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=Dl();return(r,n)=>f(t)||r.forceMount?($(),U(xa,{key:0,to:r.to,disabled:r.disabled,defer:r.defer},[ie(r.$slots,"default")],8,["to","disabled","defer"])):ke("v-if",!0)}}),Cb=Q({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>($(),U(f(Kl),cr(er(t)),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),xb=Q({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,r=xn();return Ee(),(n,s)=>($(),U(f(qe),pe(t,{id:f(r).titleId}),{default:k(()=>[ie(n.$slots,"default")]),_:3},16,["id"]))}}),Lp="data-reka-collection-item";function Xr(e={}){const{key:t="",isProvider:r=!1}=e,n=`${t}CollectionProvider`;let s;r?(s={collectionRef:F(),itemMap:F(new Map)},as(n,s)):s=Rt(n);const i=(l=!1)=>{const c=s.collectionRef.value;if(!c)return[];const u=Array.from(c.querySelectorAll(`[${Lp}]`)),d=Array.from(s.itemMap.value.values()).sort((p,h)=>u.indexOf(p.ref)-u.indexOf(h.ref));return l?d:d.filter(p=>p.ref.dataset.disabled!=="")},o=Q({name:"CollectionSlot",inheritAttrs:!1,setup(l,{slots:c,attrs:u}){const{primitiveElement:d,currentElement:p}=Vl();return Ae(p,()=>{s.collectionRef.value=p.value}),()=>tr(Fl,{ref:d,...u},c)}}),a=Q({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(l,{slots:c,attrs:u}){const{primitiveElement:d,currentElement:p}=Vl();return Xe(h=>{if(p.value){const m=wa(p.value);s.itemMap.value.set(m,{ref:p.value,value:l.value}),h(()=>s.itemMap.value.delete(m))}}),()=>tr(Fl,{...u,[Lp]:"",ref:d},c)}});return{getItems:i,reactiveItems:V(()=>Array.from(s.itemMap.value.values())),itemMapSize:V(()=>s.itemMap.value.size),CollectionSlot:o,CollectionItem:a}}var Wl=Q({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,r)=>($(),U(f(qe),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:k(()=>[ie(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),Fp=Q({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:r,currentElement:n}=Vl();return Ae(V(()=>t.checked??t.value),(s,i)=>{if(!n.value)return;const o=n.value,a=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(l&&s!==i){const c=new Event("input",{bubbles:!0}),u=new Event("change",{bubbles:!0});l.call(o,s),o.dispatchEvent(c),o.dispatchEvent(u)}}),(s,i)=>($(),U(Wl,pe({ref_key:"primitiveElement",ref:r},{...t,...s.$attrs},{as:"input"}),null,16))}}),Tb=Q({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,r=V(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),n=V(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((s,i)=>typeof s=="object"?Object.entries(s).map(([o,a])=>({name:`${t.name}[${i}][${o}]`,value:a})):{name:`${t.name}[${i}]`,value:s}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([s,i])=>({name:`${t.name}[${s}]`,value:i})):[]);return(s,i)=>($(),me(Ne,null,[ke(" We render single input if it's required "),r.value?($(),U(Fp,pe({key:s.name},{...t,...s.$attrs},{name:s.name,value:s.value}),null,16,["name","value"])):($(!0),me(Ne,{key:1},Qt(n.value,o=>($(),U(Fp,pe({key:o.name},{ref_for:!0},{...t,...s.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))],2112))}}),[Vp,Eb]=xt("PopperRoot"),jp=Q({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=F();return Eb({anchor:t,onAnchorChange:r=>t.value=r}),(r,n)=>ie(r.$slots,"default")}}),Up=Q({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r,currentElement:n}=Ee(),s=Vp();return Sa(()=>{s.onAnchorChange(t.reference??n.value)}),(i,o)=>($(),U(f(qe),{ref:f(r),as:i.as,"as-child":i.asChild},{default:k(()=>[ie(i.$slots,"default")]),_:3},8,["as","as-child"]))}}),Ab={key:0,d:"M0 0L6 6L12 0"},Ib={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"},Rb=Q({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return Ee(),(r,n)=>($(),U(f(qe),pe(t,{width:r.width,height:r.height,viewBox:r.asChild?void 0:"0 0 12 6",preserveAspectRatio:r.asChild?void 0:"none"}),{default:k(()=>[ie(r.$slots,"default",{},()=>[r.rounded?($(),me("path",Ib)):($(),me("path",Ab))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}});function kb(e){return e!==null}function $b(e){return{name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:s}=t,i=s.arrow?.centerOffset!==0,o=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[l,c]=Gl(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(s.arrow?.x??0)+o/2,p=(s.arrow?.y??0)+a/2;let h="",m="";return l==="bottom"?(h=i?u:`${d}px`,m=`${-a}px`):l==="top"?(h=i?u:`${d}px`,m=`${n.floating.height+a}px`):l==="right"?(h=`${-a}px`,m=i?u:`${p}px`):l==="left"&&(h=`${n.floating.width+a}px`,m=i?u:`${p}px`),{data:{x:h,y:m}}}}}function Gl(e){const[t,r="center"]=e.split("-");return[t,r]}var Pb=["top","right","bottom","left"],En=Math.min,zt=Math.max,Mo=Math.round,No=Math.floor,Ar=e=>({x:e,y:e}),Db={left:"right",right:"left",bottom:"top",top:"bottom"};function Jl(e,t,r){return zt(e,En(t,r))}function Qr(e,t){return typeof e=="function"?e(t):e}function en(e){return e.split("-")[0]}function Ss(e){return e.split("-")[1]}function Yl(e){return e==="x"?"y":"x"}function Zl(e){return e==="y"?"height":"width"}function Ir(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Xl(e){return Yl(Ir(e))}function Ob(e,t,r){r===void 0&&(r=!1);const n=Ss(e),s=Xl(e),i=Zl(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=qo(o)),[o,qo(o)]}function Hb(e){const t=qo(e);return[Ql(e),t,Ql(t)]}function Ql(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var zp=["left","right"],Kp=["right","left"],Mb=["top","bottom"],Nb=["bottom","top"];function qb(e,t,r){switch(e){case"top":case"bottom":return r?t?Kp:zp:t?zp:Kp;case"left":case"right":return t?Mb:Nb;default:return[]}}function Bb(e,t,r,n){const s=Ss(e);let i=qb(en(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Ql)))),i}function qo(e){const t=en(e);return Db[t]+e.slice(t.length)}function Lb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wp(e){return typeof e!="number"?Lb(e):{top:e,right:e,bottom:e,left:e}}function Bo(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Gp(e,t,r){let{reference:n,floating:s}=e;const i=Ir(t),o=Xl(t),a=Zl(o),l=en(t),c=i==="y",u=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2;let h;switch(l){case"top":h={x:u,y:n.y-s.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-s.width,y:d};break;default:h={x:n.x,y:n.y}}switch(Ss(t)){case"start":h[o]-=p*(r&&c?-1:1);break;case"end":h[o]+=p*(r&&c?-1:1);break}return h}async function Fb(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Qr(t,e),m=Wp(h),y=a[p?d==="floating"?"reference":"floating":d],T=Bo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v=d==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},b=Bo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:x,strategy:l}):v);return{top:(T.top-b.top+m.top)/w.y,bottom:(b.bottom-T.bottom+m.bottom)/w.y,left:(T.left-b.left+m.left)/w.x,right:(b.right-T.right+m.right)/w.x}}var Vb=50,jb=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Fb},l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Gp(c,n,l),p=n,h=0;const m={};for(let y=0;y<i.length;y++){const T=i[y];if(!T)continue;const{name:v,fn:x}=T,{x:w,y:b,data:_,reset:A}=await x({x:u,y:d,initialPlacement:n,placement:p,strategy:s,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=w??u,d=b??d,m[v]={...m[v],..._},A&&h<Vb&&(h++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(c=A.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):A.rects),{x:u,y:d}=Gp(c,p,l)),y=-1)}return{x:u,y:d,placement:p,strategy:s,middlewareData:m}},Ub=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Qr(e,t)||{};if(c==null)return{};const d=Wp(u),p={x:r,y:n},h=Xl(s),m=Zl(h),y=await o.getDimensions(c),T=h==="y",v=T?"top":"left",x=T?"bottom":"right",w=T?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[h]-p[h]-i.floating[m],_=p[h]-i.reference[h],A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let P=A?A[w]:0;(!P||!await(o.isElement==null?void 0:o.isElement(A)))&&(P=a.floating[w]||i.floating[m]);const g=b/2-_/2,D=P/2-y[m]/2-1,O=En(d[v],D),S=En(d[x],D),E=O,I=P-y[m]-S,J=P/2-y[m]/2+g,te=Jl(E,J,I),W=!l.arrow&&Ss(s)!=null&&J!==te&&i.reference[m]/2-(J<E?O:S)-y[m]/2<0,ee=W?J<E?J-E:J-I:0;return{[h]:p[h]+ee,data:{[h]:te,centerOffset:J-te-ee,...W&&{alignmentOffset:ee}},reset:W}}}),zb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...T}=Qr(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=en(s),x=Ir(a),w=en(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=p||(w||!y?[qo(a)]:Hb(a)),A=m!=="none";!p&&A&&_.push(...Bb(a,y,m,b));const P=[a,..._],g=await l.detectOverflow(t,T),D=[];let O=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&D.push(g[v]),d){const J=Ob(s,o,b);D.push(g[J[0]],g[J[1]])}if(O=[...O,{placement:s,overflows:D}],!D.every(J=>J<=0)){var S,E;const J=(((S=i.flip)==null?void 0:S.index)||0)+1,te=P[J];if(te&&(!(d==="alignment"&&x!==Ir(te))||O.every(ee=>Ir(ee.placement)===x?ee.overflows[0]>0:!0)))return{data:{index:J,overflows:O},reset:{placement:te}};let W=(E=O.filter(ee=>ee.overflows[0]<=0).sort((ee,G)=>ee.overflows[1]-G.overflows[1])[0])==null?void 0:E.placement;if(!W)switch(h){case"bestFit":{var I;const ee=(I=O.filter(G=>{if(A){const le=Ir(G.placement);return le===x||le==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(le=>le>0).reduce((le,K)=>le+K,0)]).sort((G,le)=>G[1]-le[1])[0])==null?void 0:I[0];ee&&(W=ee);break}case"initialPlacement":W=a;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function Jp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yp(e){return Pb.some(t=>e[t]>=0)}var Kb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:s="referenceHidden",...i}=Qr(e,t);switch(s){case"referenceHidden":{const o=Jp(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Yp(o)}}}case"escaped":{const o=Jp(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:o,escaped:Yp(o)}}}default:return{}}}}},Zp=new Set(["left","top"]);async function Wb(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=en(r),a=Ss(r),l=Ir(r)==="y",c=Zp.has(o)?-1:1,u=i&&l?-1:1,d=Qr(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}var Gb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await Wb(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},Jb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x,y:w}=v;return{x,y:w}}},...c}=Qr(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=Ir(en(s)),h=Yl(p);let m=u[h],y=u[p];if(o){const v=h==="y"?"top":"left",x=h==="y"?"bottom":"right",w=m+d[v],b=m-d[x];m=Jl(w,m,b)}if(a){const v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=y+d[v],b=y-d[x];y=Jl(w,y,b)}const T=l.fn({...t,[h]:m,[p]:y});return{...T,data:{x:T.x-r,y:T.y-n,enabled:{[h]:o,[p]:a}}}}}},Yb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Qr(e,t),u={x:r,y:n},d=Ir(s),p=Yl(d);let h=u[p],m=u[d];const y=Qr(a,t),T=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const w=p==="y"?"height":"width",b=i.reference[p]-i.floating[w]+T.mainAxis,_=i.reference[p]+i.reference[w]-T.mainAxis;h<b?h=b:h>_&&(h=_)}if(c){var v,x;const w=p==="y"?"width":"height",b=Zp.has(en(s)),_=i.reference[d]-i.floating[w]+(b&&((v=o.offset)==null?void 0:v[d])||0)+(b?0:T.crossAxis),A=i.reference[d]+i.reference[w]+(b?0:((x=o.offset)==null?void 0:x[d])||0)-(b?T.crossAxis:0);m<_?m=_:m>A&&(m=A)}return{[p]:h,[d]:m}}}},Zb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=Qr(e,t),u=await o.detectOverflow(t,c),d=en(s),p=Ss(s),h=Ir(s)==="y",{width:m,height:y}=i.floating;let T,v;d==="top"||d==="bottom"?(T=d,v=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,T=p==="end"?"top":"bottom");const x=y-u.top-u.bottom,w=m-u.left-u.right,b=En(y-u[T],x),_=En(m-u[v],w),A=!t.middlewareData.shift;let P=b,g=_;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(g=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=x),A&&!p){const O=zt(u.left,0),S=zt(u.right,0),E=zt(u.top,0),I=zt(u.bottom,0);h?g=m-2*(O!==0||S!==0?O+S:zt(u.left,u.right)):P=y-2*(E!==0||I!==0?E+I:zt(u.top,u.bottom))}await l({...t,availableWidth:g,availableHeight:P});const D=await o.getDimensions(a.floating);return m!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}};function Lo(){return typeof window<"u"}function zn(e){return ec(e)?(e.nodeName||"").toLowerCase():"#document"}function Kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rr(e){var t;return(t=(ec(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ec(e){return Lo()?e instanceof Node||e instanceof Kt(e).Node:!1}function mr(e){return Lo()?e instanceof Element||e instanceof Kt(e).Element:!1}function tn(e){return Lo()?e instanceof HTMLElement||e instanceof Kt(e).HTMLElement:!1}function Xp(e){return!Lo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kt(e).ShadowRoot}function gi(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&s!=="inline"&&s!=="contents"}function Xb(e){return/^(table|td|th)$/.test(zn(e))}function Fo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Qb=/transform|translate|scale|rotate|perspective|filter/,e1=/paint|layout|strict|content/,Kn=e=>!!e&&e!=="none",tc;function rc(e){const t=mr(e)?wr(e):e;return Kn(t.transform)||Kn(t.translate)||Kn(t.scale)||Kn(t.rotate)||Kn(t.perspective)||!nc()&&(Kn(t.backdropFilter)||Kn(t.filter))||Qb.test(t.willChange||"")||e1.test(t.contain||"")}function t1(e){let t=An(e);for(;tn(t)&&!Cs(t);){if(rc(t))return t;if(Fo(t))return null;t=An(t)}return null}function nc(){return tc==null&&(tc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tc}function Cs(e){return/^(html|body|#document)$/.test(zn(e))}function wr(e){return Kt(e).getComputedStyle(e)}function Vo(e){return mr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function An(e){if(zn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xp(e)&&e.host||Rr(e);return Xp(t)?t.host:t}function Qp(e){const t=An(e);return Cs(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&gi(t)?t:Qp(t)}function vi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=Qp(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Kt(s);if(i){const a=sc(o);return t.concat(o,o.visualViewport||[],gi(s)?s:[],a&&r?vi(a):[])}else return t.concat(s,vi(s,[],r))}function sc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eh(e){const t=wr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=tn(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=Mo(r)!==i||Mo(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function ic(e){return mr(e)?e:e.contextElement}function xs(e){const t=ic(e);if(!tn(t))return Ar(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=eh(t);let o=(i?Mo(r.width):r.width)/n,a=(i?Mo(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var r1=Ar(0);function th(e){const t=Kt(e);return!nc()||!t.visualViewport?r1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function n1(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Kt(e)?!1:t}function Wn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=ic(e);let o=Ar(1);t&&(n?mr(n)&&(o=xs(n)):o=xs(e));const a=n1(i,r,n)?th(i):Ar(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const p=Kt(i),h=n&&mr(n)?Kt(n):n;let m=p,y=sc(m);for(;y&&n&&h!==m;){const T=xs(y),v=y.getBoundingClientRect(),x=wr(y),w=v.left+(y.clientLeft+parseFloat(x.paddingLeft))*T.x,b=v.top+(y.clientTop+parseFloat(x.paddingTop))*T.y;l*=T.x,c*=T.y,u*=T.x,d*=T.y,l+=w,c+=b,m=Kt(y),y=sc(m)}}return Bo({width:u,height:d,x:l,y:c})}function jo(e,t){const r=Vo(e).scrollLeft;return t?t.left+r:Wn(Rr(e)).left+r}function rh(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-jo(e,r),y:r.top+t.scrollTop}}function s1(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=Rr(n),a=t?Fo(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Ar(1);const u=Ar(0),d=tn(n);if((d||!d&&!i)&&((zn(n)!=="body"||gi(o))&&(l=Vo(n)),d)){const h=Wn(n);c=xs(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const p=o&&!d&&!i?rh(o,l):Ar(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function i1(e){return Array.from(e.getClientRects())}function o1(e){const t=Rr(e),r=Vo(e),n=e.ownerDocument.body,s=zt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=zt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+jo(e);const a=-r.scrollTop;return wr(n).direction==="rtl"&&(o+=zt(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}var nh=25;function a1(e,t){const r=Kt(e),n=Rr(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=nc();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const c=jo(n);if(c<=0){const u=n.ownerDocument,d=u.body,p=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-h);m<=nh&&(i-=m)}else c<=nh&&(i+=c);return{width:i,height:o,x:a,y:l}}function l1(e,t){const r=Wn(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=tn(e)?xs(e):Ar(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:s*i.x,y:n*i.y}}function sh(e,t,r){let n;if(t==="viewport")n=a1(e,r);else if(t==="document")n=o1(Rr(e));else if(mr(t))n=l1(t,r);else{const s=th(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Bo(n)}function ih(e,t){const r=An(e);return r===t||!mr(r)||Cs(r)?!1:wr(r).position==="fixed"||ih(r,t)}function c1(e,t){const r=t.get(e);if(r)return r;let n=vi(e,[],!1).filter(a=>mr(a)&&zn(a)!=="body"),s=null;const i=wr(e).position==="fixed";let o=i?An(e):e;for(;mr(o)&&!Cs(o);){const a=wr(o),l=rc(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&s&&(s.position==="absolute"||s.position==="fixed")||gi(o)&&!l&&ih(e,o))?n=n.filter(c=>c!==o):s=a,o=An(o)}return t.set(e,n),n}function u1(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?Fo(t)?[]:c1(t,this._c):[].concat(r),n],o=sh(t,i[0],s);let a=o.top,l=o.right,c=o.bottom,u=o.left;for(let d=1;d<i.length;d++){const p=sh(t,i[d],s);a=zt(p.top,a),l=En(p.right,l),c=En(p.bottom,c),u=zt(p.left,u)}return{width:l-u,height:c-a,x:u,y:a}}function d1(e){const{width:t,height:r}=eh(e);return{width:t,height:r}}function f1(e,t,r){const n=tn(t),s=Rr(t),i=r==="fixed",o=Wn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ar(0);function c(){l.x=jo(s)}if(n||!n&&!i)if((zn(t)!=="body"||gi(s))&&(a=Vo(t)),n){const d=Wn(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else s&&c();i&&!n&&s&&c();const u=s&&!n&&!i?rh(s,a):Ar(0);return{x:o.left+a.scrollLeft-l.x-u.x,y:o.top+a.scrollTop-l.y-u.y,width:o.width,height:o.height}}function oc(e){return wr(e).position==="static"}function oh(e,t){if(!tn(e)||wr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Rr(e)===r&&(r=r.ownerDocument.body),r}function ah(e,t){const r=Kt(e);if(Fo(e))return r;if(!tn(e)){let s=An(e);for(;s&&!Cs(s);){if(mr(s)&&!oc(s))return s;s=An(s)}return r}let n=oh(e,t);for(;n&&Xb(n)&&oc(n);)n=oh(n,t);return n&&Cs(n)&&oc(n)&&!rc(n)?r:n||t1(e)||r}var p1=async function(e){const t=this.getOffsetParent||ah,r=this.getDimensions,n=await r(e.floating);return{reference:f1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function h1(e){return wr(e).direction==="rtl"}var g1={convertOffsetParentRelativeRectToViewportRelativeRect:s1,getDocumentElement:Rr,getClippingRect:u1,getOffsetParent:ah,getElementRects:p1,getClientRects:i1,getDimensions:d1,getScale:xs,isElement:mr,isRTL:h1};function lh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function v1(e,t){let r=null,n;const s=Rr(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(a||t(),!p||!h)return;const m=No(d),y=No(s.clientWidth-(u+p)),T=No(s.clientHeight-(d+h)),v=No(u),x={rootMargin:-m+"px "+-y+"px "+-T+"px "+-v+"px",threshold:zt(0,En(1,l))||1};let w=!0;function b(_){const A=_[0].intersectionRatio;if(A!==l){if(!w)return o();A?o(!1,A):n=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!lh(c,e.getBoundingClientRect())&&o(),w=!1}try{r=new IntersectionObserver(b,{...x,root:s.ownerDocument})}catch{r=new IntersectionObserver(b,x)}r.observe(e)}return o(!0),i}function m1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=ic(e),u=s||i?[...c?vi(c):[],...t?vi(t):[]]:[];u.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const d=c&&a?v1(c,r):null;let p=-1,h=null;o&&(h=new ResizeObserver(v=>{let[x]=v;x&&x.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),c&&!l&&h.observe(c),t&&h.observe(t));let m,y=l?Wn(e):null;l&&T();function T(){const v=Wn(e);y&&!lh(y,v)&&r(),y=v,m=requestAnimationFrame(T)}return r(),()=>{var v;u.forEach(x=>{s&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(m)}}var w1=Gb,y1=Jb,ch=zb,b1=Zb,_1=Kb,S1=Ub,C1=Yb,x1=(e,t,r)=>{const n=new Map,s={platform:g1,...r},i={...s.platform,_c:n};return jb(e,t,{...s,platform:i})};function T1(e){return e!=null&&typeof e=="object"&&"$el"in e}function ac(e){if(T1(e)){const t=e.$el;return ec(t)&&zn(t)==="#comment"?null:t}return e}function Ts(e){return typeof e=="function"?e():f(e)}function E1(e){return{name:"arrow",options:e,fn(t){const r=ac(Ts(e.element));return r==null?{}:S1({element:r,padding:e.padding}).fn(t)}}}function uh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dh(e,t){const r=uh(e);return Math.round(t*r)/r}function A1(e,t,r){r===void 0&&(r={});const n=r.whileElementsMounted,s=V(()=>{var P;return(P=Ts(r.open))!=null?P:!0}),i=V(()=>Ts(r.middleware)),o=V(()=>{var P;return(P=Ts(r.placement))!=null?P:"bottom"}),a=V(()=>{var P;return(P=Ts(r.strategy))!=null?P:"absolute"}),l=V(()=>{var P;return(P=Ts(r.transform))!=null?P:!0}),c=V(()=>ac(e.value)),u=V(()=>ac(t.value)),d=F(0),p=F(0),h=F(a.value),m=F(o.value),y=Qe({}),T=F(!1),v=V(()=>{const P={position:h.value,left:"0",top:"0"};if(!u.value)return P;const g=dh(u.value,d.value),D=dh(u.value,p.value);return l.value?{...P,transform:"translate("+g+"px, "+D+"px)",...uh(u.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:g+"px",top:D+"px"}});let x;function w(){if(c.value==null||u.value==null)return;const P=s.value;x1(c.value,u.value,{middleware:i.value,placement:o.value,strategy:a.value}).then(g=>{d.value=g.x,p.value=g.y,h.value=g.strategy,m.value=g.placement,y.value=g.middlewareData,T.value=P!==!1})}function b(){typeof x=="function"&&(x(),x=void 0)}function _(){if(b(),n===void 0){w();return}if(c.value!=null&&u.value!=null){x=n(c.value,u.value,w);return}}function A(){s.value||(T.value=!1)}return Ae([i,o,a,s],w,{flush:"sync"}),Ae([c,u],_,{flush:"sync"}),Ae(s,A,{flush:"sync"}),Ri()&&la(b),{x:Nr(d),y:Nr(p),strategy:Nr(h),placement:Nr(m),middlewareData:Nr(y),isPositioned:Nr(T),floatingStyles:v,update:w}}var I1={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[R1,k1]=xt("PopperContent"),fh=Q({inheritAttrs:!1,__name:"PopperContent",props:Vu({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...I1}),emits:["placed"],setup(e,{emit:t}){const r=e,n=t,s=Vp(),{forwardRef:i,currentElement:o}=Ee(),a=F(),l=F(),{width:c,height:u}=Rp(l),d=V(()=>r.side+(r.align!=="center"?`-${r.align}`:"")),p=V(()=>typeof r.collisionPadding=="number"?r.collisionPadding:{top:0,right:0,bottom:0,left:0,...r.collisionPadding}),h=V(()=>Array.isArray(r.collisionBoundary)?r.collisionBoundary:[r.collisionBoundary]),m=V(()=>({padding:p.value,boundary:h.value.filter(kb),altBoundary:h.value.length>0})),y=V(()=>({mainAxis:r.sideFlip,crossAxis:r.alignFlip})),T=ry(()=>[w1({mainAxis:r.sideOffset+u.value,alignmentAxis:r.alignOffset}),r.prioritizePosition&&r.avoidCollisions&&ch({...m.value,...y.value}),r.avoidCollisions&&y1({mainAxis:!0,crossAxis:!!r.prioritizePosition,limiter:r.sticky==="partial"?C1():void 0,...m.value}),!r.prioritizePosition&&r.avoidCollisions&&ch({...m.value,...y.value}),b1({...m.value,apply:({elements:O,rects:S,availableWidth:E,availableHeight:I})=>{const{width:J,height:te}=S.reference,W=O.floating.style;W.setProperty("--reka-popper-available-width",`${E}px`),W.setProperty("--reka-popper-available-height",`${I}px`),W.setProperty("--reka-popper-anchor-width",`${J}px`),W.setProperty("--reka-popper-anchor-height",`${te}px`)}}),l.value&&E1({element:l.value,padding:r.arrowPadding}),$b({arrowWidth:c.value,arrowHeight:u.value}),r.hideWhenDetached&&_1({strategy:"referenceHidden",...m.value})]),{floatingStyles:v,placement:x,isPositioned:w,middlewareData:b,update:_}=A1(V(()=>r.reference??s.anchor.value),a,{strategy:r.positionStrategy,placement:d,whileElementsMounted:(...O)=>m1(...O,{layoutShift:!r.disableUpdateOnLayoutShift,animationFrame:r.updatePositionStrategy==="always"}),middleware:T}),A=V(()=>Gl(x.value)[0]),P=V(()=>Gl(x.value)[1]);Sa(()=>{w.value&&n("placed")});const g=V(()=>{const O=b.value.arrow?.centerOffset!==0;return r.hideShiftedArrow&&O}),D=F("");return Xe(()=>{o.value&&(D.value=window.getComputedStyle(o.value).zIndex)}),k1({placedSide:A,onArrowChange:O=>l.value=O,arrowX:V(()=>b.value.arrow?.x??0),arrowY:V(()=>b.value.arrow?.y??0),shouldHideArrow:g}),(O,S)=>($(),me("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",style:dt({...f(v),transform:f(w)?f(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:D.value,"--reka-popper-transform-origin":[f(b).transformOrigin?.x,f(b).transformOrigin?.y].join(" "),...f(b).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[H(f(qe),pe({ref:f(i)},O.$attrs,{"as-child":r.asChild,as:O.as,"data-side":A.value,"data-align":P.value,style:{animation:f(w)?void 0:"none"}}),{default:k(()=>[ie(O.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),$1={top:"bottom",right:"left",bottom:"top",left:"right"},P1=Q({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=Ee(),r=R1(),n=V(()=>$1[r.placedSide.value]);return(s,i)=>($(),me("span",{ref:o=>{f(r).onArrowChange(o)},style:dt({position:"absolute",left:f(r).arrowX?.value?`${f(r).arrowX?.value}px`:void 0,top:f(r).arrowY?.value?`${f(r).arrowY?.value}px`:void 0,[n.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f(r).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f(r).placedSide.value],visibility:f(r).shouldHideArrow.value?"hidden":void 0})},[H(Rb,pe(s.$attrs,{ref:f(t),style:{display:"block"},as:s.as,"as-child":s.asChild,rounded:s.rounded,width:s.width,height:s.height}),{default:k(()=>[ie(s.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}});function ph(e){const t=Ao({nonce:F()});return V(()=>e?.value||t.nonce?.value)}function D1(e=[],t,r){const n=[...e];return n[r]=t,n.sort((s,i)=>s-i)}function hh(e,t,r){return hi(100/(r-t)*(e-t),0,100)}function O1(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function H1(e,t){if(e.length===1)return 0;const r=e.map(s=>Math.abs(s-t)),n=Math.min(...r);return r.indexOf(n)}function M1(e,t,r){const n=e/2;return(n-lc([0,50],[0,n])(t)*r)*r}function N1(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function q1(e,t){if(t>0){const r=N1(e);return Math.min(...r)>=t}return!0}function lc(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function B1(e){return(String(e).split(".")[1]||"").length}function L1(e,t){const r=10**t;return Math.round(e*r)/r}var gh=["PageUp","PageDown"],vh=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mh={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageUp","ArrowUp","ArrowLeft"]},[wh,yh]=xt(["SliderVertical","SliderHorizontal"]),F1=Q({__name:"SliderHorizontal",props:{dir:{type:String,required:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,{max:s,min:i,dir:o,inverted:a}=St(r),{forwardRef:l,currentElement:c}=Ee(),u=Es(),d=F(),p=F(),h=V(()=>o?.value!=="rtl"&&!a.value||o?.value!=="ltr"&&a.value);function m(y,T){const v=p.value||c.value.getBoundingClientRect(),x=[...u.thumbElements.value][u.valueIndexToChangeRef.value],w=u.thumbAlignment.value==="contain"?x.clientWidth:0;!d.value&&!T&&u.thumbAlignment.value==="contain"&&(d.value=y.clientX-x.getBoundingClientRect().left);const b=lc([0,v.width-w],h.value?[i.value,s.value]:[s.value,i.value]);return p.value=v,b(T?y.clientX-v.left-w/2:y.clientX-v.left-(d.value??0))}return yh({startEdge:V(()=>h.value?"left":"right"),endEdge:V(()=>h.value?"right":"left"),direction:V(()=>h.value?1:-1),size:"width"}),(y,T)=>($(),U(bh,{ref:f(l),dir:f(o),"data-orientation":"horizontal",style:dt({"--reka-slider-thumb-transform":!h.value&&f(u).thumbAlignment.value==="overflow"?"translateX(50%)":"translateX(-50%)"}),onSlideStart:T[0]||(T[0]=v=>{n("slideStart",m(v,!0))}),onSlideMove:T[1]||(T[1]=v=>{n("slideMove",m(v))}),onSlideEnd:T[2]||(T[2]=()=>{p.value=void 0,d.value=void 0,n("slideEnd")}),onStepKeyDown:T[3]||(T[3]=v=>{const x=h.value?"from-left":"from-right";n("stepKeyDown",v,f(mh)[x].includes(v.key)?-1:1)}),onEndKeyDown:T[4]||(T[4]=v=>n("endKeyDown",v)),onHomeKeyDown:T[5]||(T[5]=v=>n("homeKeyDown",v))},{default:k(()=>[ie(y.$slots,"default")]),_:3},8,["dir","style"]))}}),V1=Q({__name:"SliderVertical",props:{min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,{max:s,min:i,inverted:o}=St(r),a=Es(),{forwardRef:l,currentElement:c}=Ee(),u=F(),d=F(),p=V(()=>!o.value);function h(m,y){const T=d.value||c.value.getBoundingClientRect(),v=[...a.thumbElements.value][a.valueIndexToChangeRef.value],x=a.thumbAlignment.value==="contain"?v.clientHeight:0;!u.value&&!y&&a.thumbAlignment.value==="contain"&&(u.value=m.clientY-v.getBoundingClientRect().top);const w=lc([0,T.height-x],p.value?[s.value,i.value]:[i.value,s.value]),b=y?m.clientY-T.top-x/2:m.clientY-T.top-(u.value??0);return d.value=T,w(b)}return yh({startEdge:V(()=>p.value?"bottom":"top"),endEdge:V(()=>p.value?"top":"bottom"),direction:V(()=>p.value?1:-1),size:"height"}),(m,y)=>($(),U(bh,{ref:f(l),"data-orientation":"vertical",style:dt({"--reka-slider-thumb-transform":!p.value&&f(a).thumbAlignment.value==="overflow"?"translateY(-50%)":"translateY(50%)"}),onSlideStart:y[0]||(y[0]=T=>{n("slideStart",h(T,!0))}),onSlideMove:y[1]||(y[1]=T=>{n("slideMove",h(T))}),onSlideEnd:y[2]||(y[2]=()=>{d.value=void 0,u.value=void 0,n("slideEnd")}),onStepKeyDown:y[3]||(y[3]=T=>{const v=p.value?"from-bottom":"from-top";n("stepKeyDown",T,f(mh)[v].includes(T.key)?-1:1)}),onEndKeyDown:y[4]||(y[4]=T=>n("endKeyDown",T)),onHomeKeyDown:y[5]||(y[5]=T=>n("homeKeyDown",T))},{default:k(()=>[ie(m.$slots,"default")]),_:3},8,["style"]))}}),[Es,j1]=xt("SliderRoot"),U1=Q({inheritAttrs:!1,__name:"SliderRoot",props:{defaultValue:{type:Array,required:!1,default:()=>[0]},modelValue:{type:[Array,null],required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},inverted:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},minStepsBetweenThumbs:{type:Number,required:!1,default:0},thumbAlignment:{type:String,required:!1,default:"contain"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,{min:s,max:i,step:o,minStepsBetweenThumbs:a,orientation:l,disabled:c,thumbAlignment:u,dir:d}=St(r),p=Nl(d),{forwardRef:h,currentElement:m}=Ee(),y=Ep(m),{CollectionSlot:T}=Xr({isProvider:!0}),v=ys(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0}),x=V(()=>Array.isArray(v.value)?[...v.value]:[]),w=F(0),b=F(x.value);function _(O){g(O,H1(x.value,O))}function A(O){g(O,w.value)}function P(){const O=b.value[w.value];x.value[w.value]!==O&&n("valueCommit",Me(x.value))}function g(O,S,{commit:E}={commit:!1}){const I=B1(o.value),J=hi(L1(Math.round((O-s.value)/o.value)*o.value+s.value,I),s.value,i.value),te=D1(x.value,J,S);if(q1(te,a.value*o.value)){w.value=te.indexOf(J);const W=String(te)!==String(v.value);W&&E&&n("valueCommit",te),W&&(D.value[w.value]?.focus(),v.value=te)}}const D=F([]);return j1({modelValue:v,currentModelValue:x,valueIndexToChangeRef:w,thumbElements:D,orientation:l,min:s,max:i,disabled:c,thumbAlignment:u}),(O,S)=>($(),U(f(T),null,{default:k(()=>[($(),U(Gs(f(l)==="horizontal"?F1:V1),pe(O.$attrs,{ref:f(h),"as-child":O.asChild,as:O.as,min:f(s),max:f(i),dir:f(p),inverted:O.inverted,"aria-disabled":f(c),"data-disabled":f(c)?"":void 0,onPointerdown:S[0]||(S[0]=()=>{f(c)||(b.value=x.value)}),onSlideStart:S[1]||(S[1]=E=>!f(c)&&_(E)),onSlideMove:S[2]||(S[2]=E=>!f(c)&&A(E)),onSlideEnd:S[3]||(S[3]=E=>!f(c)&&P()),onHomeKeyDown:S[4]||(S[4]=E=>!f(c)&&g(f(s),0,{commit:!0})),onEndKeyDown:S[5]||(S[5]=E=>!f(c)&&g(f(i),x.value.length-1,{commit:!0})),onStepKeyDown:S[6]||(S[6]=(E,I)=>{if(!f(c)){const J=f(gh).includes(E.key)||E.shiftKey&&f(vh).includes(E.key)?10:1,te=w.value,W=x.value[te];g(W+f(o)*J*I,te,{commit:!0})}})}),{default:k(()=>[ie(O.$slots,"default",{modelValue:f(v)}),f(y)&&O.name?($(),U(f(Tb),{key:0,type:"number",value:f(v),name:O.name,required:O.required,disabled:f(c),step:f(o)},null,8,["value","name","required","disabled","step"])):ke("v-if",!0)]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}))}}),bh=Q({__name:"SliderImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,s=Es();return(i,o)=>($(),U(f(qe),pe({"data-slider-impl":""},r,{onKeydown:o[0]||(o[0]=a=>{a.key==="Home"?(n("homeKeyDown",a),a.preventDefault()):a.key==="End"?(n("endKeyDown",a),a.preventDefault()):f(gh).concat(f(vh)).includes(a.key)&&(n("stepKeyDown",a),a.preventDefault())}),onPointerdown:o[1]||(o[1]=a=>{const l=a.target;l.setPointerCapture(a.pointerId),a.preventDefault(),f(s).thumbElements.value.includes(l)?l.focus():n("slideStart",a)}),onPointermove:o[2]||(o[2]=a=>{a.target.hasPointerCapture(a.pointerId)&&n("slideMove",a)}),onPointerup:o[3]||(o[3]=a=>{const l=a.target;l.hasPointerCapture(a.pointerId)&&(l.releasePointerCapture(a.pointerId),n("slideEnd",a))})}),{default:k(()=>[ie(i.$slots,"default")]),_:3},16))}}),z1=Q({__name:"SliderRange",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=Es(),r=wh();Ee();const n=V(()=>t.currentModelValue.value.map(o=>hh(o,t.min.value,t.max.value))),s=V(()=>t.currentModelValue.value.length>1?Math.min(...n.value):0),i=V(()=>100-Math.max(...n.value,0));return(o,a)=>($(),U(f(qe),{"data-disabled":f(t).disabled.value?"":void 0,"data-orientation":f(t).orientation.value,"as-child":o.asChild,as:o.as,style:dt({[f(r).startEdge.value]:`${s.value}%`,[f(r).endEdge.value]:`${i.value}%`})},{default:k(()=>[ie(o.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}}),K1=Q({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=Es(),n=wh(),{forwardRef:s,currentElement:i}=Ee(),{CollectionItem:o}=Xr(),a=V(()=>r.modelValue?.value?.[t.index]),l=V(()=>a.value===void 0?0:hh(a.value,r.min.value??0,r.max.value??100)),c=V(()=>O1(t.index,r.modelValue?.value?.length??0)),u=Rp(i),d=V(()=>u[n.size].value),p=V(()=>r.thumbAlignment.value==="overflow"||!d.value?0:M1(d.value,l.value,n.direction.value)),h=Dl();return ze(()=>{r.thumbElements.value.push(i.value)}),kt(()=>{const m=r.thumbElements.value.findIndex(y=>y===i.value)??-1;r.thumbElements.value.splice(m,1)}),(m,y)=>($(),U(f(o),null,{default:k(()=>[H(f(qe),pe(m.$attrs,{ref:f(s),role:"slider",tabindex:f(r).disabled.value?void 0:0,"aria-label":m.$attrs["aria-label"]||c.value,"data-disabled":f(r).disabled.value?"":void 0,"data-orientation":f(r).orientation.value,"aria-valuenow":a.value,"aria-valuemin":f(r).min.value,"aria-valuemax":f(r).max.value,"aria-orientation":f(r).orientation.value,"as-child":m.asChild,as:m.as,style:{transform:"var(--reka-slider-thumb-transform)",position:"absolute",[f(n).startEdge.value]:`calc(${l.value}% + ${p.value}px)`,display:!f(h)&&a.value===void 0?"none":void 0},onFocus:y[0]||(y[0]=()=>{f(r).valueIndexToChangeRef.value=m.index})}),{default:k(()=>[ie(m.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),W1=Q({__name:"SliderThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{getItems:r}=Xr(),{forwardRef:n,currentElement:s}=Ee(),i=V(()=>s.value?r(!0).findIndex(o=>o.ref===s.value):-1);return(o,a)=>($(),U(K1,pe({ref:f(n)},t,{index:i.value}),{default:k(()=>[ie(o.$slots,"default")]),_:3},16,["index"]))}}),G1=Q({__name:"SliderTrack",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=Es();return Ee(),(r,n)=>($(),U(f(qe),{"as-child":r.asChild,as:r.as,"data-disabled":f(t).disabled.value?"":void 0,"data-orientation":f(t).orientation.value},{default:k(()=>[ie(r.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),J1=Q({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return Ee(),(r,n)=>($(),U(f(qe),pe(t,{onMousedown:n[0]||(n[0]=s=>{!s.defaultPrevented&&s.detail>1&&s.preventDefault()})}),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),[Wt,Y1]=xt("ScrollAreaRoot"),Z1=Q({__name:"ScrollAreaRoot",props:{type:{type:String,required:!1,default:"hover"},dir:{type:String,required:!1},scrollHideDelay:{type:Number,required:!1,default:600},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const r=e,n=F(0),s=F(0),i=F(),o=F(),a=F(),l=F(),c=F(!1),u=F(!1),{type:d,dir:p,scrollHideDelay:h}=St(r),m=Nl(p);function y(){i.value?.scrollTo({top:0})}function T(){i.value?.scrollTo({top:0,left:0})}t({viewport:i,scrollTop:y,scrollTopLeft:T});const{forwardRef:v,currentElement:x}=Ee();return Y1({type:d,dir:m,scrollHideDelay:h,scrollArea:x,viewport:i,onViewportChange:w=>{i.value=w||void 0},content:o,onContentChange:w=>{o.value=w},scrollbarX:a,scrollbarXEnabled:c,scrollbarY:l,scrollbarYEnabled:u,onScrollbarXChange:w=>{a.value=w||void 0},onScrollbarYChange:w=>{l.value=w||void 0},onScrollbarXEnabledChange:w=>{c.value=w},onScrollbarYEnabledChange:w=>{u.value=w},onCornerWidthChange:w=>{n.value=w},onCornerHeightChange:w=>{s.value=w}}),(w,b)=>($(),U(f(qe),{ref:f(v),"as-child":r.asChild,as:w.as,dir:f(m),style:dt({position:"relative","--reka-scroll-area-corner-width":`${n.value}px`,"--reka-scroll-area-corner-height":`${s.value}px`})},{default:k(()=>[ie(w.$slots,"default")]),_:3},8,["as-child","as","dir","style"]))}}),X1=Q({__name:"ScrollAreaCornerImpl",setup(e){const t=Wt(),r=F(0),n=F(0),s=V(()=>!!r.value&&!!n.value);function i(){const a=t.scrollbarX.value?.offsetHeight||0;t.onCornerHeightChange(a),n.value=a}function o(){const a=t.scrollbarY.value?.offsetWidth||0;t.onCornerWidthChange(a),r.value=a}return Un(t.scrollbarX.value,i),Un(t.scrollbarY.value,o),Ae(()=>t.scrollbarX.value,i),Ae(()=>t.scrollbarY.value,o),(a,l)=>s.value?($(),U(f(qe),pe({key:0,style:{width:`${r.value}px`,height:`${n.value}px`,position:"absolute",right:f(t).dir.value==="ltr"?0:void 0,left:f(t).dir.value==="rtl"?0:void 0,bottom:0}},a.$parent?.$props),{default:k(()=>[ie(a.$slots,"default")]),_:3},16,["style"])):ke("v-if",!0)}}),Q1=Q({__name:"ScrollAreaCorner",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r}=Ee(),n=Wt(),s=V(()=>!!n.scrollbarX.value&&!!n.scrollbarY.value),i=V(()=>n.type.value!=="scroll"&&s.value);return(o,a)=>i.value?($(),U(X1,pe({key:0},t,{ref:f(r)}),{default:k(()=>[ie(o.$slots,"default")]),_:3},16)):ke("v-if",!0)}});function _h(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Uo(e){const t=Sh(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Sh(e,t){const r=e/t;return Number.isNaN(r)?0:r}function e2(e,t=()=>{}){let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function s(){const i={left:e.scrollLeft,top:e.scrollTop},o=r.left!==i.left,a=r.top!==i.top;(o||a)&&t(),r=i,n=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(n)}function Ch(e,t,r="ltr"){const n=Uo(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,o=t.content-t.viewport,a=i-n,l=r==="ltr"?[0,o]:[o*-1,0],c=hi(e,l[0],l[1]);return _h([0,o],[0,a])(c)}function zo(e){return e?Number.parseInt(e,10):0}function t2(e,t,r,n="ltr"){const s=Uo(r),i=s/2,o=t||i,a=s-o,l=r.scrollbar.paddingStart+o,c=r.scrollbar.size-r.scrollbar.paddingEnd-a,u=r.content-r.viewport,d=n==="ltr"?[0,u]:[u*-1,0];return _h([l,c],d)(e)}function xh(e,t){return e>0&&e<t}var r2=Q({__name:"ScrollAreaScrollbarX",setup(e){const t=Wt(),r=Ko(),{forwardRef:n,currentElement:s}=Ee();ze(()=>{s.value&&t.onScrollbarXChange(s.value)});const i=V(()=>r.sizes.value);return(o,a)=>($(),U(Th,{ref:f(n),"is-horizontal":!0,"data-orientation":"horizontal",style:dt({bottom:0,left:f(t).dir.value==="rtl"?"var(--reka-scroll-area-corner-width)":0,right:f(t).dir.value==="ltr"?"var(--reka-scroll-area-corner-width)":0,"--reka-scroll-area-thumb-width":i.value?`${f(Uo)(i.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>f(r).onDragScroll(l.x))},{default:k(()=>[ie(o.$slots,"default")]),_:3},8,["style"]))}}),n2=Q({__name:"ScrollAreaScrollbarY",setup(e){const t=Wt(),r=Ko(),{forwardRef:n,currentElement:s}=Ee();ze(()=>{s.value&&t.onScrollbarYChange(s.value)});const i=V(()=>r.sizes.value);return(o,a)=>($(),U(Th,{ref:f(n),"is-horizontal":!1,"data-orientation":"vertical",style:dt({top:0,right:f(t).dir.value==="ltr"?0:void 0,left:f(t).dir.value==="rtl"?0:void 0,bottom:"var(--reka-scroll-area-corner-height)","--reka-scroll-area-thumb-height":i.value?`${f(Uo)(i.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>f(r).onDragScroll(l.y))},{default:k(()=>[ie(o.$slots,"default")]),_:3},8,["style"]))}}),cc=Q({__name:"ScrollAreaScrollbarAuto",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Wt(),r=mi(),{forwardRef:n}=Ee(),s=F(!1),i=Pl(()=>{if(t.viewport.value){const o=t.viewport.value.offsetWidth<t.viewport.value.scrollWidth,a=t.viewport.value.offsetHeight<t.viewport.value.scrollHeight;s.value=r.isHorizontal.value?o:a}},10);return ze(()=>i()),Un(t.viewport,i),Un(t.content,i),(o,a)=>($(),U(f(Cn),{present:o.forceMount||s.value},{default:k(()=>[H(uc,pe(o.$attrs,{ref:f(n),"data-state":s.value?"visible":"hidden"}),{default:k(()=>[ie(o.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),s2=Q({inheritAttrs:!1,__name:"ScrollAreaScrollbarGlimpse",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Wt(),r=mi(),{forwardRef:n}=Ee(),{state:s,dispatch:i}=Ll("hidden",{hidden:{POINTER_ENTER:"glimpse",SCROLL:"scrolling"},glimpse:{HIDE:"hidden",POINTER_LEAVE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"glimpse"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),o=V(()=>s.value!=="hidden");function a(){i("POINTER_ENTER")}function l(){i("POINTER_LEAVE")}const c=Pl(()=>i("SCROLL_END"),100);return Xe(u=>{if(s.value==="glimpse"){const d=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);u(()=>{window.clearTimeout(d)})}}),Xe(u=>{if(s.value==="idle"){const d=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);u(()=>{window.clearTimeout(d)})}}),Xe(u=>{const d=t.viewport.value,p=r.isHorizontal.value?"scrollLeft":"scrollTop";if(d){let h=d[p];const m=()=>{const y=d[p];h!==y&&(i("SCROLL"),c()),h=y};d.addEventListener("scroll",m),u(()=>{d.removeEventListener("scroll",m)})}}),ze(()=>{const u=t.scrollArea.value;u&&(u.addEventListener("pointerenter",a),u.addEventListener("pointerleave",l))}),kt(()=>{const u=t.scrollArea.value;u&&(u.removeEventListener("pointerenter",a),u.removeEventListener("pointerleave",l))}),(u,d)=>($(),U(f(Cn),{present:u.forceMount||o.value},{default:k(()=>[H(cc,pe(u.$attrs,{ref:f(n),"data-state":o.value?"visible":"hidden"}),{default:k(()=>[ie(u.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),i2=Q({inheritAttrs:!1,__name:"ScrollAreaScrollbarHover",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Wt(),{forwardRef:r}=Ee();let n;const s=F(!1);function i(){window.clearTimeout(n),s.value=!0}function o(){n=window.setTimeout(()=>{s.value=!1},t.scrollHideDelay.value)}return ze(()=>{const a=t.scrollArea.value;a&&(a.addEventListener("pointerenter",i),a.addEventListener("pointerleave",o))}),kt(()=>{const a=t.scrollArea.value;a&&(window.clearTimeout(n),a.removeEventListener("pointerenter",i),a.removeEventListener("pointerleave",o))}),(a,l)=>($(),U(f(Cn),{present:a.forceMount||s.value},{default:k(()=>[H(cc,pe(a.$attrs,{ref:f(r),"data-state":s.value?"visible":"hidden"}),{default:k(()=>[ie(a.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),o2=Q({__name:"ScrollAreaScrollbarScroll",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Wt(),r=mi(),{forwardRef:n}=Ee(),{state:s,dispatch:i}=Ll("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),o=V(()=>s.value!=="hidden");Xe(l=>{if(s.value==="idle"){const c=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);l(()=>{window.clearTimeout(c)})}});const a=Pl(()=>i("SCROLL_END"),100);return Xe(l=>{const c=t.viewport.value,u=r.isHorizontal.value?"scrollLeft":"scrollTop";if(c){let d=c[u];const p=()=>{const h=c[u];d!==h&&(i("SCROLL"),a()),d=h};c.addEventListener("scroll",p),l(()=>{c.removeEventListener("scroll",p)})}}),(l,c)=>($(),U(f(Cn),{present:l.forceMount||o.value},{default:k(()=>[H(uc,pe(l.$attrs,{ref:f(n),"data-state":o.value?"visible":"hidden"}),{default:k(()=>[ie(l.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),[mi,a2]=xt("ScrollAreaScrollbar"),l2=Q({inheritAttrs:!1,__name:"ScrollAreaScrollbar",props:{orientation:{type:String,required:!1,default:"vertical"},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,{forwardRef:r}=Ee(),n=Wt(),s=V(()=>t.orientation==="horizontal");Ae(s,()=>{s.value?n.onScrollbarXEnabledChange(!0):n.onScrollbarYEnabledChange(!0)},{immediate:!0}),kt(()=>{n.onScrollbarXEnabledChange(!1),n.onScrollbarYEnabledChange(!1)});const{orientation:i,forceMount:o,asChild:a,as:l}=St(t);return a2({orientation:i,forceMount:o,isHorizontal:s,as:l,asChild:a}),(c,u)=>f(n).type.value==="hover"?($(),U(i2,pe({key:0},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[ie(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="scroll"?($(),U(o2,pe({key:1},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[ie(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="glimpse"?($(),U(s2,pe({key:2},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[ie(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="auto"?($(),U(cc,pe({key:3},c.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[ie(c.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="always"?($(),U(uc,pe({key:4},c.$attrs,{ref:f(r),"data-state":"visible"}),{default:k(()=>[ie(c.$slots,"default")]),_:3},16)):ke("v-if",!0)}}),[Ko,c2]=xt("ScrollAreaScrollbarVisible"),uc=Q({__name:"ScrollAreaScrollbarVisible",setup(e){const t=Wt(),r=mi(),{forwardRef:n}=Ee(),s=F({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),i=V(()=>{const v=Sh(s.value.viewport,s.value.content);return v>0&&v<1}),o=F(),a=F(0);function l(v,x){if(h.value){const w=t.viewport.value.scrollLeft+v.deltaY;t.viewport.value.scrollLeft=w,xh(w,x)&&v.preventDefault()}else{const w=t.viewport.value.scrollTop+v.deltaY;t.viewport.value.scrollTop=w,xh(w,x)&&v.preventDefault()}}function c(v,x){h.value?a.value=x.x:a.value=x.y}function u(v){a.value=0}function d(v){s.value=v}function p(v,x){return t2(v,a.value,s.value,x)}const h=V(()=>r.isHorizontal.value);function m(v){h.value?t.viewport.value.scrollLeft=p(v,t.dir.value):t.viewport.value.scrollTop=p(v)}function y(){if(h.value){if(t.viewport.value&&o.value){const v=t.viewport.value.scrollLeft,x=Ch(v,s.value,t.dir.value);o.value.style.transform=`translate3d(${x}px, 0, 0)`}}else if(t.viewport.value&&o.value){const v=t.viewport.value.scrollTop,x=Ch(v,s.value);o.value.style.transform=`translate3d(0, ${x}px, 0)`}}function T(v){o.value=v}return c2({sizes:s,hasThumb:i,handleWheelScroll:l,handleThumbDown:c,handleThumbUp:u,handleSizeChange:d,onThumbPositionChange:y,onThumbChange:T,onDragScroll:m}),(v,x)=>h.value?($(),U(r2,pe({key:0},v.$attrs,{ref:f(n)}),{default:k(()=>[ie(v.$slots,"default")]),_:3},16)):($(),U(n2,pe({key:1},v.$attrs,{ref:f(n)}),{default:k(()=>[ie(v.$slots,"default")]),_:3},16))}}),Th=Q({__name:"ScrollAreaScrollbarImpl",props:{isHorizontal:{type:Boolean,required:!0}},emits:["onDragScroll","onWheelScroll","onThumbPointerDown"],setup(e,{emit:t}){const r=e,n=t,s=Wt(),i=Ko(),o=mi(),{forwardRef:a,currentElement:l}=Ee(),c=F(""),u=F();function d(v){u.value&&n("onDragScroll",{x:v.clientX-u.value?.left,y:v.clientY-u.value?.top})}function p(v){v.button===0&&(v.target.setPointerCapture(v.pointerId),u.value=l.value.getBoundingClientRect(),c.value=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",s.viewport&&(s.viewport.value.style.scrollBehavior="auto"),d(v))}function h(v){d(v)}function m(v){const x=v.target;x.hasPointerCapture(v.pointerId)&&x.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=c.value,s.viewport&&(s.viewport.value.style.scrollBehavior=""),u.value=void 0}function y(v){const x=v.target,w=l.value?.contains(x),b=i.sizes.value.content-i.sizes.value.viewport;w&&i.handleWheelScroll(v,b)}ze(()=>{document.addEventListener("wheel",y,{passive:!1})}),kt(()=>{document.removeEventListener("wheel",y)});function T(){l.value&&(r.isHorizontal?i.handleSizeChange({content:s.viewport.value?.scrollWidth??0,viewport:s.viewport.value?.offsetWidth??0,scrollbar:{size:l.value.clientWidth??0,paddingStart:zo(getComputedStyle(l.value).paddingLeft),paddingEnd:zo(getComputedStyle(l.value).paddingRight)}}):i.handleSizeChange({content:s.viewport.value?.scrollHeight??0,viewport:s.viewport.value?.offsetHeight??0,scrollbar:{size:l.value?.clientHeight??0,paddingStart:zo(getComputedStyle(l.value).paddingTop),paddingEnd:zo(getComputedStyle(l.value).paddingBottom)}}),i.onThumbPositionChange())}return Un(l,T),Un(s.content,T),(v,x)=>($(),U(f(qe),{ref:f(a),style:{position:"absolute"},"data-scrollbarimpl":"",as:f(o).as.value,"as-child":f(o).asChild.value,onPointerdown:p,onPointermove:h,onPointerup:m},{default:k(()=>[ie(v.$slots,"default")]),_:3},8,["as","as-child"]))}}),u2=Q({__name:"ScrollAreaThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=Wt(),n=Ko();function s(d){const p=d.target.getBoundingClientRect(),h=d.clientX-p.left,m=d.clientY-p.top;n.handleThumbDown(d,{x:h,y:m})}function i(d){n.handleThumbUp(d)}const{forwardRef:o,currentElement:a}=Ee(),l=F(),c=V(()=>r.viewport.value);function u(){l.value||(l.value=e2(c.value,n.onThumbPositionChange),n.onThumbPositionChange())}return xy(V(()=>n.sizes.value),()=>{n.onThumbChange(a.value),c.value&&(n.onThumbPositionChange(),c.value.addEventListener("scroll",u))}),kt(()=>{c.value.removeEventListener("scroll",u),r.viewport.value?.removeEventListener("scroll",u)}),(d,p)=>($(),U(f(qe),{ref:f(o),"data-state":f(n).hasThumb?"visible":"hidden",style:{width:"var(--reka-scroll-area-thumb-width)",height:"var(--reka-scroll-area-thumb-height)"},"as-child":t.asChild,as:d.as,onPointerdown:s,onPointerup:i},{default:k(()=>[ie(d.$slots,"default")]),_:3},8,["data-state","as-child","as"]))}}),d2=Q({inheritAttrs:!1,__name:"ScrollAreaViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const r=e,{nonce:n}=St(r),s=ph(n),i=Wt(),o=F();ze(()=>{i.onViewportChange(o.value),i.onContentChange(l.value)}),t({viewportElement:o});const{forwardRef:a,currentElement:l}=Ee();return(c,u)=>($(),me(Ne,null,[re("div",pe({ref_key:"viewportElement",ref:o,"data-reka-scroll-area-viewport":"",style:{overflowX:f(i).scrollbarXEnabled.value?"scroll":"hidden",overflowY:f(i).scrollbarYEnabled.value?"scroll":"hidden"}},c.$attrs,{tabindex:0}),[H(f(qe),{ref:f(a),style:dt({minWidth:f(i).scrollbarXEnabled.value?"fit-content":void 0}),"as-child":r.asChild,as:c.as},{default:k(()=>[ie(c.$slots,"default")]),_:3},8,["style","as-child","as"])],16),H(f(qe),{as:"style",nonce:f(s)},{default:k(()=>u[0]||(u[0]=[Oe(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-reka-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),f2=[" ","Enter","ArrowUp","ArrowDown"],p2=[" ","Enter"],wx=10;function wi(e,t,r){return e===void 0?!1:Array.isArray(e)?e.some(n=>dc(n,t,r)):dc(e,t,r)}function dc(e,t,r){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof r=="function"?r(e,t):typeof r=="string"?e?.[r]===t?.[r]:ty(e,t)}function h2(e){return e==null||e===""||Array.isArray(e)&&e.length===0}var g2={key:0,value:""},[In,Eh]=xt("SelectRoot"),v2=Q({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=e,n=t,{required:s,disabled:i,multiple:o,dir:a}=St(r),l=ys(r,"modelValue",n,{defaultValue:r.defaultValue??(o.value?[]:void 0),passive:r.modelValue===void 0,deep:!0}),c=ys(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),u=F(),d=F(),p=F({x:0,y:0}),h=V(()=>o.value&&Array.isArray(l.value)?l.value?.length===0:Il(l.value));Xr({isProvider:!0});const m=Nl(a),y=Ep(u),T=F(new Set),v=V(()=>Array.from(T.value).map(b=>b.value).join(";"));function x(b){if(o.value){const _=Array.isArray(l.value)?[...l.value]:[],A=_.findIndex(P=>dc(P,b,r.by));A===-1?_.push(b):_.splice(A,1),l.value=[..._]}else l.value=b}function w(b){return Array.from(T.value).find(_=>wi(b,_.value,r.by))}return Eh({triggerElement:u,onTriggerChange:b=>{u.value=b},valueElement:d,onValueElementChange:b=>{d.value=b},contentId:"",modelValue:l,onValueChange:x,by:r.by,open:c,multiple:o,required:s,onOpenChange:b=>{c.value=b},dir:m,triggerPointerDownPosRef:p,disabled:i,isEmptyModelValue:h,optionsSet:T,onOptionAdd:b=>{const _=w(b.value);_&&T.value.delete(_),T.value.add(b)},onOptionRemove:b=>{const _=w(b.value);_&&T.value.delete(_)}}),(b,_)=>($(),U(f(jp),null,{default:k(()=>[ie(b.$slots,"default",{modelValue:f(l),open:f(c)}),f(y)?($(),U(m2,{key:v.value,"aria-hidden":"true",tabindex:"-1",multiple:f(o),required:f(s),name:b.name,autocomplete:b.autocomplete,disabled:f(i),value:f(l)},{default:k(()=>[f(Il)(f(l))?($(),me("option",g2)):ke("v-if",!0),($(!0),me(Ne,null,Qt(Array.from(T.value),A=>($(),me("option",pe({key:A.value??""},{ref_for:!0},A),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):ke("v-if",!0)]),_:3}))}}),m2=Q({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,r=F(),n=In();Ae(()=>t.value,(i,o)=>{const a=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==o&&l&&r.value){const c=new Event("change",{bubbles:!0});l.call(r.value,i),r.value.dispatchEvent(c)}});function s(i){n.onValueChange(i.target.value)}return(i,o)=>($(),U(f(Wl),{"as-child":""},{default:k(()=>[re("select",pe({ref_key:"selectElement",ref:r},t,{onInput:s}),[ie(i.$slots,"default")],16)]),_:3}))}}),w2=Q({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:10},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Yr(e);return(r,n)=>($(),U(f(fh),pe(f(t),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),y2={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Gn,Ah]=xt("SelectContent"),b2=Q({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=In();By(),Cp(r.bodyLock);const{CollectionSlot:i,getItems:o}=Xr(),a=F();Ip(a);const{search:l,handleTypeaheadSearch:c}=kp(),u=F(),d=F(),p=F(),h=F(!1),m=F(!1),y=F(!1);function T(){d.value&&a.value&&qp([d.value,a.value])}Ae(h,()=>{T()});const{onOpenChange:v,triggerPointerDownPosRef:x}=s;Xe(_=>{if(!a.value)return;let A={x:0,y:0};const P=D=>{A={x:Math.abs(Math.round(D.pageX)-(x.value?.x??0)),y:Math.abs(Math.round(D.pageY)-(x.value?.y??0))}},g=D=>{D.pointerType!=="touch"&&(A.x<=10&&A.y<=10?D.preventDefault():a.value?.contains(D.target)||v(!1),document.removeEventListener("pointermove",P),x.value=null)};x.value!==null&&(document.addEventListener("pointermove",P),document.addEventListener("pointerup",g,{capture:!0,once:!0})),_(()=>{document.removeEventListener("pointermove",P),document.removeEventListener("pointerup",g,{capture:!0})})});function w(_){const A=_.ctrlKey||_.altKey||_.metaKey;if(_.key==="Tab"&&_.preventDefault(),!A&&_.key.length===1&&c(_.key,o()),["ArrowUp","ArrowDown","Home","End"].includes(_.key)){let P=[...o().map(g=>g.ref)];if(["ArrowUp","End"].includes(_.key)&&(P=P.slice().reverse()),["ArrowUp","ArrowDown"].includes(_.key)){const g=_.target,D=P.indexOf(g);P=P.slice(D+1)}setTimeout(()=>qp(P)),_.preventDefault()}}const b=Yr(V(()=>r.position==="popper"?r:{}).value);return Ah({content:a,viewport:u,onViewportChange:_=>{u.value=_},itemRefCallback:(_,A,P)=>{const g=!m.value&&!P,D=wi(s.modelValue.value,A,s.by);if(s.multiple.value){if(y.value)return;(D||g)&&(d.value=_,D&&(y.value=!0))}else(D||g)&&(d.value=_);g&&(m.value=!0)},selectedItem:d,selectedItemText:p,onItemLeave:()=>{a.value?.focus()},itemTextRefCallback:(_,A,P)=>{const g=!m.value&&!P;(wi(s.modelValue.value,A,s.by)||g)&&(p.value=_)},focusSelectedItem:T,position:r.position,isPositioned:h,searchRef:l}),(_,A)=>($(),U(f(i),null,{default:k(()=>[H(f(Mp),{"as-child":"",onMountAutoFocus:A[6]||(A[6]=nr(()=>{},["prevent"])),onUnmountAutoFocus:A[7]||(A[7]=P=>{n("closeAutoFocus",P),!P.defaultPrevented&&(f(s).triggerElement.value?.focus({preventScroll:!0}),P.preventDefault())})},{default:k(()=>[H(f(jl),{"as-child":"","disable-outside-pointer-events":_.disableOutsidePointerEvents,onFocusOutside:A[2]||(A[2]=nr(()=>{},["prevent"])),onDismiss:A[3]||(A[3]=P=>f(s).onOpenChange(!1)),onEscapeKeyDown:A[4]||(A[4]=P=>n("escapeKeyDown",P)),onPointerDownOutside:A[5]||(A[5]=P=>n("pointerDownOutside",P))},{default:k(()=>[($(),U(Gs(_.position==="popper"?w2:S2),pe({..._.$attrs,...f(b)},{id:f(s).contentId,ref:P=>{const g=f(Bt)(P);g?.hasAttribute("data-reka-popper-content-wrapper")?a.value=g.firstElementChild:a.value=g},role:"listbox","data-state":f(s).open.value?"open":"closed",dir:f(s).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:A[0]||(A[0]=nr(()=>{},["prevent"])),onPlaced:A[1]||(A[1]=P=>h.value=!0),onKeydown:w}),{default:k(()=>[ie(_.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),[fc,_2]=xt("SelectItemAlignedPosition"),S2=Q({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const r=e,n=t,{getItems:s}=Xr(),i=In(),o=Gn(),a=F(!1),l=F(!0),c=F(),{forwardRef:u,currentElement:d}=Ee(),{viewport:p,selectedItem:h,selectedItemText:m,focusSelectedItem:y}=o;function T(){if(i.triggerElement.value&&i.valueElement.value&&c.value&&d.value&&p?.value&&h?.value&&m?.value){const w=i.triggerElement.value.getBoundingClientRect(),b=d.value.getBoundingClientRect(),_=i.valueElement.value.getBoundingClientRect(),A=m.value.getBoundingClientRect();if(i.dir.value!=="rtl"){const be=A.left-b.left,Be=_.left-be,it=w.left-Be,B=w.width+it,ne=Math.max(B,b.width),X=window.innerWidth-10,ue=hi(Be,10,Math.max(10,X-ne));c.value.style.minWidth=`${B}px`,c.value.style.left=`${ue}px`}else{const be=b.right-A.right,Be=window.innerWidth-_.right-be,it=window.innerWidth-w.right-Be,B=w.width+it,ne=Math.max(B,b.width),X=window.innerWidth-10,ue=hi(Be,10,Math.max(10,X-ne));c.value.style.minWidth=`${B}px`,c.value.style.right=`${ue}px`}const P=s().map(be=>be.ref),g=window.innerHeight-20,D=p.value.scrollHeight,O=window.getComputedStyle(d.value),S=Number.parseInt(O.borderTopWidth,10),E=Number.parseInt(O.paddingTop,10),I=Number.parseInt(O.borderBottomWidth,10),J=Number.parseInt(O.paddingBottom,10),te=S+E+D+J+I,W=Math.min(h.value.offsetHeight*5,te),ee=window.getComputedStyle(p.value),G=Number.parseInt(ee.paddingTop,10),le=Number.parseInt(ee.paddingBottom,10),K=w.top+w.height/2-10,oe=g-K,de=h.value.offsetHeight/2,xe=h.value.offsetTop+de,De=S+E+xe,Se=te-De;if(De<=K){const be=h.value===P[P.length-1];c.value.style.bottom="0px";const Be=d.value.clientHeight-p.value.offsetTop-p.value.offsetHeight,it=De+Math.max(oe,de+(be?le:0)+Be+I);c.value.style.height=`${it}px`}else{const be=h.value===P[0];c.value.style.top="0px";const Be=Math.max(K,S+p.value.offsetTop+(be?G:0)+de)+Se;c.value.style.height=`${Be}px`,p.value.scrollTop=De-K+p.value.offsetTop}c.value.style.margin="10px 0",c.value.style.minHeight=`${W}px`,c.value.style.maxHeight=`${g}px`,n("placed"),requestAnimationFrame(()=>a.value=!0)}}const v=F("");ze(async()=>{await ft(),T(),d.value&&(v.value=window.getComputedStyle(d.value).zIndex)});function x(w){w&&l.value===!0&&(T(),y?.(),l.value=!1)}return Un(i.triggerElement,()=>{T()}),_2({contentWrapper:c,shouldExpandOnScrollRef:a,onScrollButtonChange:x}),(w,b)=>($(),me("div",{ref_key:"contentWrapperElement",ref:c,style:dt({display:"flex",flexDirection:"column",position:"fixed",zIndex:v.value})},[H(f(qe),pe({ref:f(u),style:{boxSizing:"border-box",maxHeight:"100%"}},{...w.$attrs,...r}),{default:k(()=>[ie(w.$slots,"default")]),_:3},16)],4))}}),C2=Q({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return Eh(e.context),Ah(y2),(t,r)=>ie(t.$slots,"default")}}),x2={key:1},T2=Q({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=Zr(r,t),s=In(),i=F();ze(()=>{i.value=new DocumentFragment});const o=F(),a=V(()=>r.forceMount||s.open.value),l=F(a.value);return Ae(a,()=>{setTimeout(()=>l.value=a.value)}),(c,u)=>a.value||l.value||o.value?.present?($(),U(f(Cn),{key:0,ref_key:"presenceRef",ref:o,present:a.value},{default:k(()=>[H(b2,cr(er({...f(n),...c.$attrs})),{default:k(()=>[ie(c.$slots,"default")]),_:3},16)]),_:3},8,["present"])):i.value?($(),me("div",x2,[($(),U(xa,{to:i.value},[H(C2,{context:f(s)},{default:k(()=>[ie(c.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):ke("v-if",!0)}}),[yx,E2]=xt("SelectGroup"),A2=Q({__name:"SelectGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=_s(void 0,"reka-select-group");return E2({id:r}),(n,s)=>($(),U(f(qe),pe({role:"group"},t,{"aria-labelledby":f(r)}),{default:k(()=>[ie(n.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),I2=Q({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,r)=>($(),U(f(qe),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:k(()=>[ie(t.$slots,"default",{},()=>[r[0]||(r[0]=Oe("▼"))])]),_:3},8,["as","as-child"]))}}),[Ih,R2]=xt("SelectItem"),k2=Q({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=t,{disabled:s}=St(r),i=In(),o=Gn(),{forwardRef:a,currentElement:l}=Ee(),{CollectionItem:c}=Xr(),u=V(()=>wi(i.modelValue?.value,r.value,i.by)),d=F(!1),p=F(r.textValue??""),h=_s(void 0,"reka-select-item-text"),m="select.select";async function y(b){b.defaultPrevented||Al(m,T,{originalEvent:b,value:r.value})}async function T(b){await ft(),n("select",b),!b.defaultPrevented&&(s.value||(i.onValueChange(r.value),i.multiple.value||i.onOpenChange(!1)))}async function v(b){await ft(),!b.defaultPrevented&&(s.value?o.onItemLeave?.():b.currentTarget?.focus({preventScroll:!0}))}async function x(b){await ft(),!b.defaultPrevented&&b.currentTarget===Ut()&&o.onItemLeave?.()}async function w(b){await ft(),!b.defaultPrevented&&(o.searchRef?.value!==""&&b.key===" "||(p2.includes(b.key)&&y(b),b.key===" "&&b.preventDefault()))}if(r.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return ze(()=>{l.value&&o.itemRefCallback(l.value,r.value,r.disabled)}),R2({value:r.value,disabled:s,textId:h,isSelected:u,onItemTextChange:b=>{p.value=((p.value||b?.textContent)??"").trim()}}),(b,_)=>($(),U(f(c),{value:{textValue:p.value}},{default:k(()=>[H(f(qe),{ref:f(a),role:"option","aria-labelledby":f(h),"data-highlighted":d.value?"":void 0,"aria-selected":u.value,"data-state":u.value?"checked":"unchecked","aria-disabled":f(s)||void 0,"data-disabled":f(s)?"":void 0,tabindex:f(s)?void 0:-1,as:b.as,"as-child":b.asChild,onFocus:_[0]||(_[0]=A=>d.value=!0),onBlur:_[1]||(_[1]=A=>d.value=!1),onPointerup:y,onPointerdown:_[2]||(_[2]=A=>{A.currentTarget.focus({preventScroll:!0})}),onTouchend:_[3]||(_[3]=nr(()=>{},["prevent","stop"])),onPointermove:v,onPointerleave:x,onKeydown:w},{default:k(()=>[ie(b.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),$2=Q({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=Ih();return(n,s)=>f(r).isSelected.value?($(),U(f(qe),pe({key:0,"aria-hidden":"true"},t),{default:k(()=>[ie(n.$slots,"default")]),_:3},16)):ke("v-if",!0)}}),P2=Q({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=In(),n=Gn(),s=Ih(),{forwardRef:i,currentElement:o}=Ee(),a=V(()=>({value:s.value,disabled:s.disabled.value,textContent:o.value?.textContent??s.value?.toString()??""}));return ze(()=>{o.value&&(s.onItemTextChange(o.value),n.itemTextRefCallback(o.value,s.value,s.disabled.value),r.onOptionAdd(a.value))}),kt(()=>{r.onOptionRemove(a.value)}),(l,c)=>($(),U(f(qe),pe({id:f(s).textId,ref:f(i)},{...t,...l.$attrs}),{default:k(()=>[ie(l.$slots,"default")]),_:3},16,["id"]))}}),D2=Q({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>($(),U(f(Kl),cr(er(t)),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),Rh=Q({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const r=t,{getItems:n}=Xr(),s=Gn(),i=F(null);function o(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}Xe(()=>{n().map(c=>c.ref).find(c=>c===Ut())?.scrollIntoView({block:"nearest"})});function a(){i.value===null&&(i.value=window.setInterval(()=>{r("autoScroll")},50))}function l(){s.onItemLeave?.(),i.value===null&&(i.value=window.setInterval(()=>{r("autoScroll")},50))}return fs(()=>o()),(c,u)=>($(),U(f(qe),pe({"aria-hidden":"true",style:{flexShrink:0}},c.$parent?.$props,{onPointerdown:a,onPointermove:l,onPointerleave:u[0]||(u[0]=()=>{o()})}),{default:k(()=>[ie(c.$slots,"default")]),_:3},16))}}),O2=Q({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Gn(),r=t.position==="item-aligned"?fc():void 0,{forwardRef:n,currentElement:s}=Ee(),i=F(!1);return Xe(o=>{if(t.viewport?.value&&t.isPositioned?.value){let c=function(){const u=l.scrollHeight-l.clientHeight;i.value=Math.ceil(l.scrollTop)<u};var a=c;const l=t.viewport.value;c(),l.addEventListener("scroll",c),o(()=>l.removeEventListener("scroll",c))}}),Ae(s,()=>{s.value&&r?.onScrollButtonChange(s.value)}),(o,a)=>i.value?($(),U(Rh,{key:0,ref:f(n),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:c}=f(t);l?.value&&c?.value&&(l.value.scrollTop=l.value.scrollTop+c.value.offsetHeight)})},{default:k(()=>[ie(o.$slots,"default")]),_:3},512)):ke("v-if",!0)}}),H2=Q({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Gn(),r=t.position==="item-aligned"?fc():void 0,{forwardRef:n,currentElement:s}=Ee(),i=F(!1);return Xe(o=>{if(t.viewport?.value&&t.isPositioned?.value){let c=function(){i.value=l.scrollTop>0};var a=c;const l=t.viewport.value;c(),l.addEventListener("scroll",c),o(()=>l.removeEventListener("scroll",c))}}),Ae(s,()=>{s.value&&r?.onScrollButtonChange(s.value)}),(o,a)=>i.value?($(),U(Rh,{key:0,ref:f(n),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:c}=f(t);l?.value&&c?.value&&(l.value.scrollTop=l.value.scrollTop-c.value.offsetHeight)})},{default:k(()=>[ie(o.$slots,"default")]),_:3},512)):ke("v-if",!0)}}),M2=Q({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,r=In(),{forwardRef:n,currentElement:s}=Ee(),i=V(()=>r.disabled?.value||t.disabled);r.contentId||(r.contentId=_s(void 0,"reka-select-content")),ze(()=>{r.onTriggerChange(s.value)});const{getItems:o}=Xr(),{search:a,handleTypeaheadSearch:l,resetTypeahead:c}=kp();function u(){i.value||(r.onOpenChange(!0),c())}function d(p){u(),r.triggerPointerDownPosRef.value={x:Math.round(p.pageX),y:Math.round(p.pageY)}}return(p,h)=>($(),U(f(Up),{"as-child":"",reference:p.reference},{default:k(()=>[H(f(qe),{ref:f(n),role:"combobox",type:p.as==="button"?"button":void 0,"aria-controls":f(r).contentId,"aria-expanded":f(r).open.value||!1,"aria-required":f(r).required?.value,"aria-autocomplete":"none",disabled:i.value,dir:f(r)?.dir.value,"data-state":f(r)?.open.value?"open":"closed","data-disabled":i.value?"":void 0,"data-placeholder":f(h2)(f(r).modelValue?.value)?"":void 0,"as-child":p.asChild,as:p.as,onClick:h[0]||(h[0]=m=>{m?.currentTarget?.focus()}),onPointerdown:h[1]||(h[1]=m=>{if(m.pointerType==="touch")return m.preventDefault();const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(d(m),m.preventDefault())}),onPointerup:h[2]||(h[2]=nr(m=>{m.pointerType==="touch"&&d(m)},["prevent"])),onKeydown:h[3]||(h[3]=m=>{const y=f(a)!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&y&&m.key===" "||(f(l)(m.key,f(o)()),f(f2).includes(m.key)&&(u(),m.preventDefault()))})},{default:k(()=>[ie(p.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]),_:3},8,["reference"]))}}),N2=Q({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:r,currentElement:n}=Ee(),s=In();ze(()=>{s.valueElement=n});const i=V(()=>{let a=[];const l=Array.from(s.optionsSet.value),c=u=>l.find(d=>wi(u,d.value,s.by));return Array.isArray(s.modelValue.value)?a=s.modelValue.value.map(u=>c(u)?.textContent??""):a=[c(s.modelValue.value)?.textContent??""],a.filter(Boolean)}),o=V(()=>i.value.length?i.value.join(", "):t.placeholder);return(a,l)=>($(),U(f(qe),{ref:f(r),as:a.as,"as-child":a.asChild,style:{pointerEvents:"none"},"data-placeholder":i.value.length?void 0:t.placeholder},{default:k(()=>[ie(a.$slots,"default",{selectedLabel:i.value,modelValue:f(s).modelValue.value},()=>[Oe(Pe(o.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),q2=Q({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:r}=St(t),n=ph(r),s=Gn(),i=s.position==="item-aligned"?fc():void 0,{forwardRef:o,currentElement:a}=Ee();ze(()=>{s?.onViewportChange(a.value)});const l=F(0);function c(u){const d=u.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:h}=i??{};if(p?.value&&h?.value){const m=Math.abs(l.value-d.scrollTop);if(m>0){const y=window.innerHeight-20,T=Number.parseFloat(h.value.style.minHeight),v=Number.parseFloat(h.value.style.height),x=Math.max(T,v);if(x<y){const w=x+m,b=Math.min(y,w),_=w-b;h.value.style.height=`${b}px`,h.value.style.bottom==="0px"&&(d.scrollTop=_>0?_:0,h.value.style.justifyContent="flex-end")}}}l.value=d.scrollTop}return(u,d)=>($(),me(Ne,null,[H(f(qe),pe({ref:f(o),"data-reka-select-viewport":"",role:"presentation"},{...u.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:c}),{default:k(()=>[ie(u.$slots,"default")]),_:3},16),H(f(qe),{as:"style",nonce:f(n)},{default:k(()=>d[0]||(d[0]=[Oe(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),B2=Q({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=["horizontal","vertical"];function n(a){return r.includes(a)}const s=V(()=>n(t.orientation)?t.orientation:"horizontal"),i=V(()=>s.value==="vertical"?t.orientation:void 0),o=V(()=>t.decorative?{role:"none"}:{"aria-orientation":i.value,role:"separator"});return(a,l)=>($(),U(f(qe),pe({as:a.as,"as-child":a.asChild,"data-orientation":s.value},o.value),{default:k(()=>[ie(a.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),L2=Q({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(r,n)=>($(),U(B2,cr(er(t)),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),F2=Q({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return Ee(),(r,n)=>($(),U(f(P1),cr(er(t)),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),[Wo,V2]=xt("TooltipProvider"),j2=Q({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){const{delayDuration:t,skipDelayDuration:r,disableHoverableContent:n,disableClosingTrigger:s,ignoreNonKeyboardFocus:i,disabled:o,content:a}=St(e);Ee();const l=F(!0),c=F(!1),{start:u,stop:d}=wp(()=>{l.value=!0},r,{immediate:!1});return V2({isOpenDelayed:l,delayDuration:t,onOpen(){d(),l.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:n,disableClosingTrigger:s,disabled:o,ignoreNonKeyboardFocus:i,content:a}),(p,h)=>ie(p.$slots,"default")}}),kh="tooltip.open",[Go,U2]=xt("TooltipRoot"),z2=Q({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const r=e,n=t;Ee();const s=Wo(),i=V(()=>r.disableHoverableContent??s.disableHoverableContent.value),o=V(()=>r.disableClosingTrigger??s.disableClosingTrigger.value),a=V(()=>r.disabled??s.disabled.value),l=V(()=>r.delayDuration??s.delayDuration.value),c=V(()=>r.ignoreNonKeyboardFocus??s.ignoreNonKeyboardFocus.value),u=ys(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0});Ae(u,w=>{s.onClose&&(w?(s.onOpen(),document.dispatchEvent(new CustomEvent(kh))):s.onClose())});const d=F(!1),p=F(),h=V(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:m,stop:y}=wp(()=>{d.value=!0,u.value=!0},l,{immediate:!1});function T(){y(),d.value=!1,u.value=!0}function v(){y(),u.value=!1}function x(){m()}return U2({contentId:"",open:u,stateAttribute:h,trigger:p,onTriggerChange(w){p.value=w},onTriggerEnter(){s.isOpenDelayed.value?x():T()},onTriggerLeave(){i.value?v():y()},onOpen:T,onClose:v,disableHoverableContent:i,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:c}),(w,b)=>($(),U(f(jp),null,{default:k(()=>[ie(w.$slots,"default",{open:f(u)})]),_:3}))}}),$h=Q({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Go(),i=Wo(),{forwardRef:o,currentElement:a}=Ee(),l=V(()=>r.ariaLabel||a.value?.textContent),c=V(()=>{const{ariaLabel:u,...d}=r;return Sp(d,i.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return ze(()=>{Pt(window,"scroll",u=>{u.target?.contains(s.trigger.value)&&s.onClose()}),Pt(window,kh,s.onClose)}),(u,d)=>($(),U(f(jl),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=p=>n("escapeKeyDown",p)),onPointerDownOutside:d[1]||(d[1]=p=>{f(s).disableClosingTrigger.value&&f(s).trigger.value?.contains(p.target)&&p.preventDefault(),n("pointerDownOutside",p)}),onFocusOutside:d[2]||(d[2]=nr(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=p=>f(s).onClose())},{default:k(()=>[H(f(fh),pe({ref:f(o),"data-state":f(s).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:k(()=>[ie(u.$slots,"default"),H(f(Wl),{id:f(s).contentId,role:"tooltip"},{default:k(()=>[Oe(Pe(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),K2=Q({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const t=Yr(e),{forwardRef:r,currentElement:n}=Ee(),{trigger:s,onClose:i}=Go(),o=Wo(),{isPointerInTransit:a,onPointerExit:l}=Ly(s,n);return o.isPointerInTransitRef=a,l(()=>{i()}),(c,u)=>($(),U($h,pe({ref:f(r)},f(t)),{default:k(()=>[ie(c.$slots,"default")]),_:3},16))}}),W2=Q({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Go(),i=Zr(r,n),{forwardRef:o}=Ee();return(a,l)=>($(),U(f(Cn),{present:a.forceMount||f(s).open.value},{default:k(()=>[($(),U(Gs(f(s).disableHoverableContent.value?$h:K2),pe({ref:f(o)},f(i)),{default:k(()=>[ie(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),G2=Q({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>($(),U(f(Kl),cr(er(t)),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),J2=Q({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,r=Go(),n=Wo();r.contentId||(r.contentId=_s(void 0,"reka-tooltip-content"));const{forwardRef:s,currentElement:i}=Ee(),o=F(!1),a=F(!1),l=V(()=>r.disabled.value?{}:{click:y,focus:h,pointermove:d,pointerleave:p,pointerdown:u,blur:m});ze(()=>{r.onTriggerChange(i.value)});function c(){setTimeout(()=>{o.value=!1},1)}function u(){r.open&&!r.disableClosingTrigger.value&&r.onClose(),o.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(T){T.pointerType!=="touch"&&!a.value&&!n.isPointerInTransitRef.value&&(r.onTriggerEnter(),a.value=!0)}function p(){r.onTriggerLeave(),a.value=!1}function h(T){o.value||r.ignoreNonKeyboardFocus.value&&!T.target.matches?.(":focus-visible")||r.onOpen()}function m(){r.onClose()}function y(){r.disableClosingTrigger.value||r.onClose()}return(T,v)=>($(),U(f(Up),{"as-child":"",reference:T.reference},{default:k(()=>[H(f(qe),pe({ref:f(s),"aria-describedby":f(r).open.value?f(r).contentId:void 0,"data-state":f(r).stateAttribute.value,as:T.as,"as-child":t.asChild,"data-grace-area-trigger":""},Lu(l.value)),{default:k(()=>[ie(T.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),Y2=Q({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(r,n)=>($(),U(f(qe),{"data-slot":"button",as:e.as,"as-child":e.asChild,class:Je(f(et)(f(Z2)({variant:e.variant,size:e.size}),t.class))},{default:k(()=>[ie(r.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),tt=Y2;const Z2=Yw("wp:inline-flex wp:items-center wp:justify-center wp:gap-2 wp:whitespace-nowrap wp:rounded-md wp:text-sm wp:font-medium wp:transition-all wp:disabled:pointer-events-none wp:disabled:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg:not([class*='size-'])]:size-4 wp:shrink-0 wp:[&_svg]:shrink-0 wp:outline-none wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px] wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",{variants:{variant:{default:"wp:bg-primary wp:text-primary-foreground wp:hover:bg-primary/90",destructive:"wp:bg-destructive wp:text-white wp:hover:bg-destructive/90 wp:focus-visible:ring-destructive/20 wp:dark:focus-visible:ring-destructive/40 wp:dark:bg-destructive/60",outline:"wp:border wp:bg-background wp:shadow-xs wp:hover:bg-accent wp:hover:text-accent-foreground wp:dark:bg-input/30 wp:dark:border-input wp:dark:hover:bg-input/50",secondary:"wp:bg-secondary wp:text-secondary-foreground wp:hover:bg-secondary/80",ghost:"wp:hover:bg-accent wp:hover:text-accent-foreground wp:dark:hover:bg-accent/50",link:"wp:text-primary wp:underline-offset-4 wp:hover:underline"},size:{default:"wp:h-9 wp:px-4 wp:py-2 wp:has-[>svg]:px-3",sm:"wp:h-8 wp:rounded-md wp:gap-1.5 wp:px-3 wp:has-[>svg]:px-2.5",lg:"wp:h-10 wp:rounded-md wp:px-6 wp:has-[>svg]:px-4",icon:"wp:size-9","icon-sm":"wp:size-8","icon-lg":"wp:size-10"}},defaultVariants:{variant:"default",size:"default"}});var X2={class:"webphone-keypad wp:grid wp:grid-cols-3 wp:gap-y-3 wp:gap-x-6 wp:px-4 wp:py-2 wp:mx-auto wp:place-items-center"},Q2=Q({__name:"KeyPad",setup(e){const t=Rt("webphone"),{sendDTMF:r}=Rt("sip"),{playDtmf:n}=Bf(),s=["1","2","3","4","5","6","7","8","9","*","0","#"],i=o=>{n(o),t.callStatus==="connected"?r(o):t.appendKeypad(o)};return(o,a)=>($(),me("div",X2,[($(),me(Ne,null,Qt(s,l=>H(f(tt),{key:l,onClick:c=>i(l),variant:"ghost",size:"icon",class:"webphone-keypad__key wp:flex wp:items-center wp:justify-center wp:h-12 wp:w-full wp:rounded-xs wp:text-2xl wp:bg-neutral-100 wp:dark:bg-neutral-700 wp:hover:bg-neutral-200 wp:dark:hover:bg-neutral-600 wp:hover:text-primary wp:dark:hover:text-neutral-100 wp:text-primary wp:dark:text-white wp:transition-all wp:duration-150 wp:active:scale-95 wp:font-light montserrat","data-key":l},{default:k(()=>[Oe(Pe(l),1)]),_:2},1032,["onClick","data-key"])),64))]))}}),pc=Q2;var Ph=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),e_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),t_=e=>{const t=e_(e);return t.charAt(0).toUpperCase()+t.slice(1)},r_=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Dh=e=>e==="";var yi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var n_=({name:e,iconNode:t,absoluteStrokeWidth:r,"absolute-stroke-width":n,strokeWidth:s,"stroke-width":i,size:o=yi.width,color:a=yi.stroke,...l},{slots:c})=>tr("svg",{...yi,...l,width:o,height:o,stroke:a,"stroke-width":Dh(r)||Dh(n)||r===!0||n===!0?Number(s||i||yi["stroke-width"])*24/Number(o):s||i||yi["stroke-width"],class:r_("lucide",l.class,...e?[`lucide-${Ph(t_(e))}-icon`,`lucide-${Ph(e)}`]:["lucide-icon"])},[...t.map(u=>tr(...u)),...c.default?[c.default()]:[]]);var at=(e,t)=>(r,{slots:n,attrs:s})=>tr(n_,{...s,...r,iconNode:t,name:e},n);var Oh=at("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);var Hh=at("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Mh=at("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var s_=at("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var hc=at("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);var i_=at("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);var o_=at("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);var a_=at("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var l_=at("phone-incoming",[["path",{d:"M16 2v6h6",key:"1mfrl5"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var c_=at("phone-missed",[["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var u_=at("phone-outgoing",[["path",{d:"m16 8 6-6",key:"oawc05"}],["path",{d:"M22 8V2h-6",key:"oqy2zc"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var Nh=at("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var d_=at("picture-in-picture-2",[["path",{d:"M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4",key:"daa4of"}],["rect",{width:"10",height:"7",x:"12",y:"13",rx:"2",key:"1nb8gs"}]]);var f_=at("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);var p_=at("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var h_=at("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var g_=at("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);var qh=at("voicemail",[["circle",{cx:"6",cy:"12",r:"4",key:"1ehtga"}],["circle",{cx:"18",cy:"12",r:"4",key:"4vafl8"}],["line",{x1:"6",x2:"18",y1:"16",y2:"16",key:"pmt8us"}]]);var Bh=at("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);var gc=at("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),v_=Q({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=ys(r,"modelValue",t,{passive:!0,defaultValue:r.defaultValue});return(s,i)=>ji(($(),me("input",{"onUpdate:modelValue":i[0]||(i[0]=o=>We(n)?n.value=o:null),"data-slot":"input",class:Je(f(et)("wp:file:text-foreground wp:placeholder:text-muted-foreground wp:selection:bg-primary wp:selection:text-primary-foreground wp:dark:bg-input/30 wp:border-blue-500 wp:h-9 wp:w-full wp:min-w-0 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-1 wp:text-base wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:file:inline-flex wp:file:h-7 wp:file:border-0 wp:file:bg-transparent wp:file:text-sm wp:file:font-medium wp:disabled:pointer-events-none wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:md:text-sm","wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px]","wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",r.class))},null,2)),[[si,f(n)]])}}),bi=v_,m_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"};function w_(e,t){return $(),me("svg",m_,[...t[0]||(t[0]=[Wa('<g clip-path="url(#a)"><path fill="currentColor" d="m1.913 7.003.035.49c0 .605.49 1.095 1.095 1.095.015 0 1.08-.14 1.08-.14a1.1 1.1 0 0 0 1.07-1.07l.075-.655c1.192-.463 2.33-.465 3.47-.005l.072.657c.01.585.485 1.06 1.07 1.07 0 0 1.065.14 1.08.14.605 0 1.095-.49 1.095-1.07l.038-.537c0-.575-.23-1.12-.65-1.54-1.91-1.91-6.973-1.908-8.88 0-.418.417-.65.965-.648 1.562zM10.94 5.94c.285.285.443.653.44 1.015l-.037.538a.39.39 0 0 1-.368.387s-1.057-.137-1.072-.137a.4.4 0 0 1-.388-.388c0-.015-.1-.92-.1-.92a.35.35 0 0 0-.207-.282c-1.43-.64-2.913-.643-4.408-.003a.36.36 0 0 0-.212.288s-.103.907-.103.917a.386.386 0 0 1-.387.388c-.015 0-1.073.137-1.073.137a.395.395 0 0 1-.37-.41l-.035-.49c0-.385.155-.755.44-1.04 1.74-1.74 6.383-1.497 7.88 0"></path></g><circle cx="7" cy="7" r="6.6" stroke="currentColor" stroke-width=".8"></circle><defs><clipPath id="a"><path fill="#fff" d="M7 13 1 7l6-6 6 6z"></path></clipPath></defs>',3)])])}var vc={render:w_},y_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 9 9"};function b_(e,t){return $(),me("svg",y_,[...t[0]||(t[0]=[re("g",{"clip-path":"url(#a)"},[re("path",{fill:"currentColor",d:"M0 8.625V6a3.38 3.38 0 0 1 3.375-3.375h1.811V2.03a.75.75 0 0 1 1.28-.53l2.206 2.205a1.125 1.125 0 0 1 0 1.59L6.466 7.5a.75.75 0 0 1-1.28-.53v-.595H3a2.25 2.25 0 0 0-2.25 2.25.375.375 0 0 1-.75 0M5.936 3a.375.375 0 0 1-.375.375H3.375A2.63 2.63 0 0 0 .75 6v.643A3 3 0 0 1 3 5.625h2.561A.375.375 0 0 1 5.936 6v.97l2.205-2.205a.375.375 0 0 0 0-.53L5.936 2.03z"})],-1),re("defs",null,[re("clipPath",{id:"a"},[re("path",{fill:"#fff",d:"M0 0h9v9H0z"})])],-1)])])}var __={render:b_},S_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function C_(e,t){return $(),me("svg",S_,[...t[0]||(t[0]=[Wa('<g clip-path="url(#a)"><path fill="currentColor" d="m13.499 13.495.321-.371a1.095 1.095 0 0 0 0-1.549c-.01-.01-.862-.665-.862-.665a1.1 1.1 0 0 0-1.514 0l-.516.41c-1.17-.516-1.976-1.318-2.457-2.45l.414-.516a1.09 1.09 0 0 0 0-1.513s-.654-.852-.665-.863c-.428-.427-1.12-.427-1.53-.017l-.407.353c-.407.407-.63.955-.63 1.549 0 2.701 3.582 6.279 6.28 6.279.59 0 1.141-.223 1.562-.647zM6.364 7.863c0-.403.148-.774.406-1.029l.407-.354a.39.39 0 0 1 .534-.014s.65.845.661.856a.4.4 0 0 1 0 .548c-.01.01-.58.721-.58.721a.35.35 0 0 0-.053.347c.559 1.463 1.605 2.513 3.115 3.118a.36.36 0 0 0 .354-.053l.72-.576a.386.386 0 0 1 .549 0c.01.01.855.66.855.66a.395.395 0 0 1-.028.552l-.322.372a1.47 1.47 0 0 1-1.046.424c-2.46 0-5.572-3.454-5.572-5.572"></path></g><circle cx="9.899" cy="9.899" r="6.6" stroke="currentColor" stroke-width=".8" transform="rotate(-135 9.9 9.9)"></circle><defs><clipPath id="a"><path fill="#fff" d="M14.143 5.657v8.485H5.658V5.657z"></path></clipPath></defs>',3)])])}var x_={render:C_},T_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"2.8 2.8 14.2 14.2"};function E_(e,t){return $(),me("svg",T_,[...t[0]||(t[0]=[re("circle",{cx:"9.899",cy:"9.899",r:"6.6",stroke:"currentColor","stroke-width":".8",transform:"rotate(-135 9.9 9.9)"},null,-1),re("path",{fill:"currentColor",d:"M13.634 8.18a.66.66 0 0 0-.729.094l-.585.591a1.663 1.663 0 0 0-1.653-1.531h-3C6.747 7.334 6 8.08 6 9v2a1.67 1.67 0 0 0 1.667 1.667h3c.876 0 1.589-.683 1.654-1.543l.585.585.036.03a.66.66 0 0 0 .692.063.66.66 0 0 0 .366-.591V8.77a.66.66 0 0 0-.366-.592M10.667 12h-3c-.552 0-1-.449-1-1V9c0-.551.448-1 1-1h3c.551 0 1 .449 1 1v2c0 .551-.449 1-1 1m1.666-1.806v-.396l1-1.01.009 2.413z"},null,-1)])])}var A_={render:E_},I_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function R_(e,t){return $(),me("svg",I_,[...t[0]||(t[0]=[re("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.076-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.144.223c.192.26.44.468.726.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.75 1.75 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.93 1.93 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.143.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.03-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.797-.008l.07.043c.244.163.445.384.589.645a1.93 1.93 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.74 1.74 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zm-2.03-1.943c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222a1.97 1.97 0 0 0 1.569.803c.292 0 .58-.067.844-.196.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1)])])}var mc={render:R_},k_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function $_(e,t){return $(),me("svg",k_,[...t[0]||(t[0]=[re("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.74 1.74 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.92 1.92 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.142.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.75 1.75 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.384.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.029-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.964.027.056.047.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.708 14.6c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222c.19.26.44.468.725.607a1.92 1.92 0 0 0 1.688 0c.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1),re("path",{stroke:"currentColor","stroke-linecap":"round",d:"M2 16.293 16.293 2"},null,-1)])])}var wc={render:$_},P_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"};function D_(e,t){return $(),me("svg",P_,[...t[0]||(t[0]=[re("path",{fill:"currentColor",d:"M9.75 1H4.5c-.678 0-1.314.302-1.743.828L.513 4.578a2.26 2.26 0 0 0 0 2.844l2.243 2.75A2.24 2.24 0 0 0 4.5 11h5.25C10.99 11 12 9.99 12 8.75v-5.5C12 2.01 10.99 1 9.75 1m1.75 7.75c0 .965-.785 1.75-1.75 1.75H4.5a1.74 1.74 0 0 1-1.356-.644L.901 7.106a1.755 1.755 0 0 1 0-2.212l2.243-2.75A1.74 1.74 0 0 1 4.5 1.499h5.25c.965 0 1.75.785 1.75 1.75zM8.927 4.427 7.354 6l1.573 1.573a.25.25 0 0 1-.354.353L7 6.355 5.427 7.926a.25.25 0 0 1-.354 0 .25.25 0 0 1 0-.353L6.646 6 5.073 4.427a.25.25 0 0 1 .354-.353L7 5.646l1.573-1.572a.25.25 0 0 1 .353.353z"},null,-1)])])}var yc={render:D_},O_=["data-call-status"],H_={key:0,class:"webphone-actions__idle wp:!w-full wp:flex wp:flex-col wp:items-center wp:space-y-2 wp:mb-4"},M_={key:2,class:"webphone-actions__connected wp:w-full wp:flex wp:flex-col wp:items-center wp:gap-3"},N_={class:"webphone-actions__row wp:flex wp:items-center wp:gap-6"},q_={class:"webphone-actions__dialer wp:w-full wp:max-w-80 wp:relative"},B_=["data-visible"],L_={key:3,class:"webphone-actions__calling wp:w-full wp:flex wp:flex-col wp:items-center wp:gap-3"},F_={class:"webphone-actions__dialer wp:w-full wp:max-w-80 wp:relative"},V_=["data-visible"],j_={key:4,class:"webphone-actions__transfer-state wp:absolute wp:inset-x-0 wp:bottom-full wp:mb-2 wp:flex wp:justify-center wp:gap-2"},U_=Q({__name:"CallActions",props:{destination:{},isVideo:{type:Boolean},onAnswer:{type:Function},onHangup:{type:Function},onReject:{type:Function}},emits:["transfer","completeTransfer","cancelTransfer"],setup(e,{emit:t}){const r=Rt("webphone"),{makeCall:n,hangupCall:s,answerCall:i,toggleMute:o,toggleHold:a}=Rt("sip"),l=e,c=t,u=V(()=>!!r.transferInProgress),d=V(()=>l.destination||r.keypadValue||r.lastDialedNumber||""),p=V(()=>!!l.destination||/^[+]?[0-9*#]+$/.test(r.keypadValue)),h=V(()=>p.value||!!r.lastDialedNumber),m=V(()=>!l.isVideo||!p.value?!1:d.value?/^[0-9*#]{1,5}$/.test(d.value):!0),y=async _=>{try{l.destination?await n(l.destination,_):r.keypadValue?await n(r.keypadValue,_):r.lastDialedNumber&&(r.keypadValue=r.lastDialedNumber)}catch(A){if(console.error("Error initiating call:",A),_){let P="No se pudo acceder a la cámara.";const g=A instanceof Error?A.name:String(A);g==="NotReadableError"?P="La cámara parece estar en uso por otra aplicación (ej: Zoom, Meet) o no se puede acceder al hardware.":g==="NotAllowedError"||g==="PermissionDeniedError"?P="Permiso de cámara denegado. Por favor, permita el acceso a la cámara.":g==="NotFoundError"?P="No se detectó ninguna cámara en el sistema.":P+=" "+(A instanceof Error?A.message:String(A)),confirm(`${P}
|
|
75
75
|
|
|
76
|
-
¿Desea realizar la llamada solo con AUDIO?`)&&b(!1)}else alert("Error al iniciar la llamada: "+(m instanceof Error?m.message:String(m)))}},C=(y=!1)=>{i(y)},v=V(()=>{const y={};return r.channels.forEach(m=>{const _=m.status==="connected"||m.status==="calling"||m.status==="incoming";y[m.id]=_?"wp:text-[var(--color-red)]":"wp:text-[var(--color-avaible)]"}),y}),S=V(()=>v.value[r.activeChannelId]??"wp:text-[var(--p-primary-color)]");return(y,m)=>($(),me("div",{class:"webphone-actions wp:flex wp:justify-center wp:items-center wp:gap-2 wp:px-4 wp:relative wp:mb-4","data-call-status":f(r).callStatus},[f(r).callStatus==="idle"?($(),me("div",H_,[g.value?($(),j(f(rt),{key:0,variant:"default",size:"icon",onClick:m[0]||(m[0]=_=>b(!1)),"aria-label":"Audio Call",class:"webphone-actions__button webphone-actions__button--call wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-[color:var(--p-primary-color)]/80 wp:to-[color:var(--p-primary-color)]/100 wp:hover:from-[color:var(--p-primary-color)]/75 wp:hover:to-[color:var(--p-primary-color)]"},{default:R(()=>[H(f(x_),{class:"webphone-actions__button-icon wp:size-8 wp:text-white"}),m[13]||(m[13]=ee("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Llamar",-1))]),_:1})):Pe("",!0),w.value?($(),j(f(rt),{key:1,variant:"outline",size:"icon",onClick:m[1]||(m[1]=_=>b(!0)),"aria-label":"Video Call",class:"webphone-actions__button webphone-actions__button--video wp:w-full wp:px-4 wp:bg-transparent wp:border wp:border-primary wp:hover:bg-[var(--p-primary-color)]/8"},{default:R(()=>[H(f(A_),{class:Ye(["webphone-actions__button-icon wp:size-6 wp:text-primary",S.value])},null,8,["class"]),m[14]||(m[14]=ee("span",{class:"webphone-actions__button-label wp:w-full wp:text-primary"}," Video llamada a extensiones ",-1))]),_:1})):Pe("",!0)])):Pe("",!0),f(r).callStatus==="incoming"?($(),me(Be,{key:1},[f(r).activeChannel?.hasVideo?($(),j(f(rt),{key:0,variant:"default",size:"icon",onClick:m[2]||(m[2]=_=>C(!0)),class:"webphone-actions__button webphone-actions__button--answer-video wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:bg-transparent wp:hover:bg-[var(--p-primary-color)]/10","aria-label":"Answer Video"},{default:R(()=>[H(f(g_),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-[var(--p-primary-color)]"})]),_:1})):Pe("",!0),H(f(rt),{variant:"default",size:"icon",onClick:m[3]||(m[3]=_=>C(!1)),class:"webphone-actions__button webphone-actions__button--answer wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-status-available wp:hover:bg-status-available/90","aria-label":"Answer"},{default:R(()=>[H(f(qh),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-white"})]),_:1}),H(f(rt),{variant:"destructive",size:"icon",onClick:f(s),"aria-label":"Reject",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--reject wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:R(()=>[H(f(vc),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-white"})]),_:1},8,["onClick"])],64)):Pe("",!0),f(r).callStatus==="connected"?($(),me("div",M_,[ee("div",q_,[H(f(rt),{variant:f(r).isMuted?"destructive":"secondary",size:"icon",onClick:f(o),"aria-label":"Mute",class:"webphone-actions__button webphone-actions__button--mute wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:R(()=>[f(r).isMuted?($(),j(f(i_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-disconnected"})):($(),j(f(o_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),H(f(rt),{variant:(f(r).isHeld,"secondary"),size:"icon",onClick:f(a),"aria-label":"Hold",class:"webphone-actions__button webphone-actions__button--hold wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:R(()=>[f(r).isHeld?($(),j(f(f_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-hold"})):($(),j(f(a_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),u.value?Pe("",!0):($(),j(f(rt),{key:0,variant:"secondary",size:"icon",onClick:m[4]||(m[4]=_=>c("transfer")),"aria-label":"Transfer",class:"webphone-actions__button webphone-actions__button--transfer wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:R(()=>[H(f(__),{class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"})]),_:1}))]),ee("div",N_,[H(f(rt),{variant:"ghost",size:"icon",onClick:m[5]||(m[5]=_=>f(r).toggleKeypad()),"aria-label":f(r).isKeypadVisible?"Ocultar teclado":"Mostrar teclado",class:"webphone-actions__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"},{default:R(()=>[f(r).isKeypadVisible?($(),j(f(wc),{key:0,class:"webphone-actions__keypad-toggle-icon wp:size-6"})):($(),j(f(mc),{key:1,class:"webphone-actions__keypad-toggle-icon wp:size-6"}))]),_:1},8,["aria-label"]),H(f(bi),{modelValue:f(r).keypadValue,"onUpdate:modelValue":m[6]||(m[6]=_=>f(r).keypadValue=_),placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-actions__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),ee("div",{class:"webphone-actions__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:m[7]||(m[7]=nr(_=>f(r).backspaceKeypad(),["stop"]))},[H(f(yc),{class:"webphone-actions__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),ee("div",{class:Ye(["webphone-actions__keypad wp:w-full wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",f(r).isKeypadVisible?"wp:max-h-[300px] wp:opacity-100":"wp:max-h-0 wp:opacity-0"]),"data-visible":f(r).isKeypadVisible?"true":"false"},[H(pc)],10,B_),H(f(rt),{size:"icon",onClick:f(s),"aria-label":"Hangup",class:"webphone-actions__button webphone-actions__button--hangup wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:R(()=>[H(f(vc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),m[15]||(m[15]=ee("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Colgar",-1))]),_:1},8,["onClick"])])):Pe("",!0),f(r).callStatus==="calling"?($(),me("div",L_,[ee("div",F_,[H(f(rt),{variant:"ghost",size:"icon",onClick:m[8]||(m[8]=_=>f(r).toggleKeypad()),"aria-label":f(r).isKeypadVisible?"Ocultar teclado":"Mostrar teclado",class:"webphone-actions__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"},{default:R(()=>[f(r).isKeypadVisible?($(),j(f(wc),{key:0,class:"webphone-actions__keypad-toggle-icon wp:size-6"})):($(),j(f(mc),{key:1,class:"webphone-actions__keypad-toggle-icon wp:size-6"}))]),_:1},8,["aria-label"]),H(f(bi),{modelValue:f(r).keypadValue,"onUpdate:modelValue":m[9]||(m[9]=_=>f(r).keypadValue=_),placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-actions__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),ee("div",{class:"webphone-actions__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:m[10]||(m[10]=nr(_=>f(r).backspaceKeypad(),["stop"]))},[H(f(yc),{class:"webphone-actions__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),ee("div",{class:Ye(["webphone-actions__keypad wp:w-full wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",f(r).isKeypadVisible?"wp:max-h-[300px] wp:opacity-100":"wp:max-h-0 wp:opacity-0"]),"data-visible":f(r).isKeypadVisible?"true":"false"},[H(pc)],10,V_),H(f(rt),{variant:"destructive",size:"lg",onClick:f(s),"aria-label":"Cancel",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--cancel wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:R(()=>[H(f(vc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),m[16]||(m[16]=ee("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Colgar",-1))]),_:1},8,["onClick"])])):Pe("",!0),u.value&&f(r).callStatus==="connected"?($(),me("div",j_,[H(f(rt),{variant:"default",size:"sm",onClick:m[11]||(m[11]=_=>c("completeTransfer")),class:"webphone-actions__button webphone-actions__button--complete-transfer wp:gap-2 wp:bg-status-available wp:hover:bg-status-available/90 wp:text-white"},{default:R(()=>[H(f(Hh),{class:"wp:w-4 wp:h-4"}),m[17]||(m[17]=Me(" Completar Transferencia ",-1))]),_:1}),H(f(rt),{variant:"destructive",size:"sm",onClick:m[12]||(m[12]=_=>c("cancelTransfer")),class:"webphone-actions__button webphone-actions__button--cancel-transfer wp:gap-2"},{default:R(()=>[H(f(gc),{class:"wp:w-4 wp:h-4"}),m[18]||(m[18]=Me(" Cancelar ",-1))]),_:1})])):Pe("",!0)],8,O_))}}),z_=U_,K_=X({__name:"Kbd",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("kbd",{class:Ye(f(tt)("wp:bg-muted wp:text-muted-foreground wp:pointer-events-none wp:inline-flex wp:h-5 wp:w-fit wp:min-w-5 wp:items-center wp:justify-center wp:gap-1 wp:rounded-sm wp:px-1 wp:font-sans wp:text-xs wp:font-medium wp:select-none","wp:[&_svg:not([class*='size-'])]:size-3","wp:[[data-slot=tooltip-content]_&]:bg-background/20 wp:[[data-slot=tooltip-content]_&]:text-background wp:dark:[[data-slot=tooltip-content]_&]:bg-background/10",t.class))},[te(r.$slots,"default")],2))}}),rn=K_,W_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 23"};function G_(e,t){return $(),me("svg",W_,[...t[0]||(t[0]=[ee("path",{stroke:"currentColor","stroke-miterlimit":"22.926","stroke-width":"1.2",d:"m12.317 2.51 15.123-.027c2.609 1.773 1.65 19.836 0 18.746l-15.124.026zM1.593 2.484h1.45V21.29h-1.45c-1.79-2.697-1.79-17.855 0-18.806ZM6.244.25h3.078a1.573 1.573 0 0 1 1.574 1.566v18.902a1.58 1.58 0 0 1-1.574 1.574H6.244a1.58 1.58 0 0 1-1.574-1.576v-18.9A1.573 1.573 0 0 1 6.244.25Z","clip-rule":"evenodd"},null,-1)])])}var bc={render:G_},J_=X({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Zr(e,t);return(n,s)=>($(),j(f(z2),pe({"data-slot":"tooltip"},f(r)),{default:R(i=>[te(n.$slots,"default",cr(er(i)))]),_:3},16))}}),Jo=J_,Y_=X({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Zr(Nt(r,"class"),n);return(i,o)=>($(),j(f(G2),null,{default:R(()=>[H(f(W2),pe({"data-slot":"tooltip-content"},{...f(s),...i.$attrs},{class:f(tt)("wp:bg-foreground wp:text-background wp:animate-in wp:fade-in-0 wp:zoom-in-95 wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=closed]:zoom-out-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:z-50 wp:w-fit wp:rounded-md wp:px-3 wp:py-1.5 wp:text-xs wp:text-balance",r.class)}),{default:R(()=>[te(i.$slots,"default"),H(f(F2),{class:"wp:bg-foreground wp:fill-foreground wp:z-50 wp:size-2.5 wp:translate-y-[calc(-50%_-_2px)] wp:rotate-45 wp:rounded-[2px]"})]),_:3},16,["class"])]),_:3}))}}),Yo=Y_,Z_=X({__name:"TooltipProvider",props:{delayDuration:{default:0},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},content:{}},setup(e){const t=e;return(r,n)=>($(),j(f(j2),cr(er(t)),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),Zo=Z_,X_=X({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),j(f(J2),pe({"data-slot":"tooltip-trigger"},t),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),Xo=X_,Q_=["data-call-status"],eS={class:"webphone-display__connected-status-label wp:flex wp:gap-2 wp:items-center"},tS={class:"webphone-display__duration wp:ibrad wp:font-semibold wp:text-sm"},rS={class:"webphone-display__user-row wp:flex wp:items-center wp:gap-2"},nS={key:2,class:"webphone-display__dialer wp:w-full wp:flex wp:items-center wp:justify-center wp:min-h-10"},sS={class:"webphone-display__dialer-field wp:relative"},iS={class:"webphone-display__suggestions wp:absolute wp:bottom-full wp:left-0 wp:w-full wp:z-50 wp:bg-popover wp:text-popover-foreground wp:shadow-md wp:rounded-md wp:border wp:mb-1 wp:max-h-40 wp:overflow-y-auto"},oS=["onPointerdown"],aS={class:"webphone-display__contact-content wp:flex wp:flex-col wp:min-w-0"},lS={class:"webphone-display__contact-name wp:truncate"},cS={class:"webphone-display__contact-number wp:text-xs wp:text-muted-foreground wp:truncate"},uS={key:3,class:"webphone-display__connected-summary wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2 wp:w-full"},dS={class:"webphone-display__caller wp:flex wp:flex-col wp:items-center wp:gap-1"},fS={class:"webphone-display__caller-name wp:text-md wp:font-bold wp:text-neutral-800 wp:dark:text-white"},pS={key:0,class:"webphone-display__caller-number wp:text-[10px] wp:text-muted-foreground"},hS={key:4,class:"webphone-display__non-idle wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2"},gS={class:"webphone-display__non-idle-row wp:flex wp:items-center wp:gap-4"},vS={class:"webphone-display__non-idle-caller wp:flex wp:flex-col wp:items-center"},mS={class:"webphone-display__non-idle-name wp:text-md wp:font-bold wp:text-neutral-800 wp:dark:text-white"},wS={key:0,class:"webphone-display__non-idle-number wp:text-sm wp:text-muted-foreground"},yS=X({__name:"CallDisplay",props:{allowInput:{type:Boolean,default:!0},isWebCall:{type:Boolean,default:!1},isOnline:{type:Boolean,default:!0},user:{},contacts:{default:()=>[]},channelId:{default:void 0}},setup(e){const t=kt("webphone"),r=kt("sip"),n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",s=e,i=V(()=>s.channelId!==void 0?t.channels.find(h=>h.id===s.channelId):t.activeChannel),o=V(()=>{if(!t.isConnected)return"wp:text-status-disconnected";const h=i.value;return h&&h.status!=="idle"?h.isHeld||h.status==="held"?"wp:text-status-hold":h.status==="incoming"?"wp:text-status-incoming":"wp:text-primary":"wp:text-primary"}),a=F(!1),l=F(null),c=F(null);Ty(l,()=>{a.value=!1});const u=V({get:()=>i.value?.keypadValue||"",set:h=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:h})}}),d=V(()=>/^[+]?[0-9*#]+$/.test(u.value)),p=V(()=>{if(!u.value)return s.contacts.slice(0,10);const h=u.value.toLowerCase(),O=[];for(const P of s.contacts)if((P.name.toLowerCase().includes(h)||P.number.includes(h))&&(O.push(P),O.length>=10))break;return O}),g=h=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:h.number}),a.value=!1},w=()=>{!u.value||!d.value||(a.value=!1,r.makeCall(u.value))};ke(u,()=>{a.value=!0});const b=()=>{u.value&&d.value&&w()},C=()=>{a.value=!1},v=()=>{a.value=!0},S=()=>{setTimeout(()=>{a.value=!1},150)},y=F(Date.now());Sy(()=>{y.value=Date.now()},1e3);const m=V(()=>{const h=i.value?.startTime,O=i.value?.status||"idle";if(!h||O!=="connected")return"00:00:00";const P=Math.floor((y.value-h)/1e3);return P<0?"00:00:00":`${Math.floor(P/3600).toString().padStart(2,"0")}:${Math.floor(P%3600/60).toString().padStart(2,"0")}:${(P%60).toString().padStart(2,"0")}`}),_=V(()=>{if(!s.isOnline)return"Sin internet";if(!t.isConnected)return"Sin conexión";const h=i.value,O=h?.status||"idle";return O==="idle"?"Disponible":O==="calling"?"Llamando...":h?.isHeld?`En espera - ${h.remoteNumber||h.keypadValue||"Unknown"}`:O==="connected"?"Conectado":O.charAt(0).toUpperCase()+O.slice(1)}),k=V(()=>{const h=i.value,O=h?.remoteNumber||h?.keypadValue,P=h?.remoteDisplayName;if(!O)return"Unknown";if(!O)return console.log("[CallDisplay] ⚠️ No hay número"),"Unknown";const x=s.contacts?.find(A=>(console.log("[CallDisplay] Comparando con:",A.name,"-",A.number),A.number===O?(console.log("[CallDisplay] ✅ Coincidencia exacta encontrada:",A.name),!0):O.endsWith(A.number)||A.number.endsWith(O)?(console.log("[CallDisplay] ✅ Coincidencia parcial encontrada:",A.name),!0):!1)),E=x?x.name:P||O;return console.log("[CallDisplay] 📱 Resultado final:",E),E}),M=V(()=>{const h=i.value;return h?.remoteNumber||h?.keypadValue||""});return(h,O)=>($(),me("div",{class:"webphone-display wp:flex wp:flex-col wp:items-center wp:px-4 wp:space-y-6","data-call-status":i.value?.status||"idle"},[(i.value?.status||"idle")==="connected"?($(),me("div",{key:0,class:Ye([o.value,"webphone-display__connected-status wp:w-full wp:flex wp:items-center wp:justify-between wp:gap-2 wp:text-3xl wp:font-light wp:mb-5"])},[ee("div",eS,[H(f(bc),{class:"webphone-display__connected-status-icon wp:w-4 wp:h-4"}),O[3]||(O[3]=ee("span",{class:"webphone-display__connected-status-text wp:text-sm wp:montserrat wp:font-bold"},"En llamada",-1))]),ee("span",tS,He(m.value),1)],2)):Pe("",!0),s.user?($(),me("span",{key:1,class:Ye([o.value,"webphone-display__user wp:font-bold wp:text-lg wp:flex wp:items-center wp:gap-1 wp:transition-colors wp:duration-300"])},[ee("div",rS,[H(f(bc),{class:"webphone-display__user-icon wp:size-6 wp:shrink-0 montserrat"}),Me(" "+He(s.user),1)]),ee("div",{class:Ye(["webphone-display__status-text wp:font-bold wp:tracking-wider wp:text-sm wp:text-[var(--color-primary)] montserrat",o.value])},He(_.value),3)],2)):Pe("",!0),(i.value?.status||"idle")==="idle"&&s.allowInput?($(),me("div",nS,[ee("div",{class:"webphone-display__dialer-container wp:relative wp:w-full wp:max-w-80",ref_key:"containerRef",ref:l},[ee("div",sS,[H(f(Zo),null,{default:R(()=>[H(f(Jo),null,{default:R(()=>[H(f(Xo),{"as-child":""},{default:R(()=>[H(f(rt),{onClick:O[0]||(O[0]=P=>f(t).toggleKeypad()),variant:"ghost",size:"icon",class:Ye(f(tt)("webphone-display__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"))},{default:R(()=>[f(t).isKeypadVisible?($(),j(f(wc),{key:0,class:"webphone-display__keypad-toggle-icon wp:size-6"})):($(),j(f(mc),{key:1,class:"webphone-display__keypad-toggle-icon wp:size-6"}))]),_:1},8,["class"])]),_:1}),H(f(Yo),{class:"wp:flex wp:items-center wp:gap-2"},{default:R(()=>[ee("span",null,He(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),H(f(rn),null,{default:R(()=>[Me(He(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1}),H(f(bi),{ref_key:"inputRef",ref:c,modelValue:u.value,"onUpdate:modelValue":O[1]||(O[1]=P=>u.value=P),onFocus:v,onBlur:S,onKeydown:[ll(b,["enter"]),ll(C,["escape"])],placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-display__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),ee("div",{class:"webphone-display__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:O[2]||(O[2]=nr(P=>f(t).backspaceKeypad(),["stop"]))},[H(f(yc),{class:"webphone-display__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),ji(ee("div",iS,[d.value?($(),me("div",{key:0,class:"webphone-display__suggestion webphone-display__suggestion--raw wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onPointerdown:nr(w,["prevent"])},[H(f(qh),{class:"webphone-display__suggestion-icon wp:w-4 wp:h-4 wp:shrink-0"}),ee("span",null,"Marcar "+He(u.value),1)],32)):Pe("",!0),($(!0),me(Be,null,Qt(p.value,P=>($(),me("div",{key:P.number,class:"webphone-display__suggestion webphone-display__suggestion--contact wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onPointerdown:nr(x=>g(P),["prevent"])},[ee("div",{class:Ye(f(tt)("webphone-display__contact-badge wp:flex wp:items-center wp:justify-center wp:w-6 wp:h-6 wp:rounded-full wp:shrink-0",P.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":P.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":P.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":P.type==="tool"?"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400":"wp:bg-neutral-100 wp:text-neutral-600 wp:dark:bg-neutral-800 wp:dark:text-neutral-400"))},[P.type==="extension"?($(),j(f(Oh),{key:0,class:"wp:w-3 wp:h-3"})):P.type==="contact"?($(),j(f(hc),{key:1,class:"wp:w-3 wp:h-3"})):P.type==="voicemail"?($(),j(f(Nh),{key:2,class:"wp:w-3 wp:h-3"})):P.type==="tool"?($(),j(f(Bh),{key:3,class:"wp:w-3 wp:h-3"})):($(),j(f(hc),{key:4,class:"wp:w-3 wp:h-3"}))],2),ee("div",aS,[ee("span",lS,He(P.name),1),ee("span",cS,He(P.number),1)])],40,oS))),128))],512),[[uo,a.value&&u.value&&(p.value.length>0||d.value)]])],512)])):(i.value?.status||"idle")==="connected"?($(),me("div",uS,[ee("div",dS,[ee("div",fS," En llamada con "+He(k.value),1),k.value!==M.value?($(),me("div",pS,He(M.value),1)):Pe("",!0)])])):(i.value?.status||"idle")!=="idle"?($(),me("div",hS,[ee("div",gS,[ee("div",vS,[ee("div",mS,He(k.value),1),k.value!==M.value?($(),me("div",wS,He(M.value),1)):Pe("",!0)]),H(f(Zo),null,{default:R(()=>[H(f(Jo),null,{default:R(()=>[H(f(Xo),{"as-child":""}),H(f(Yo),{class:"wp:flex wp:items-center wp:gap-2"},{default:R(()=>[ee("span",null,He(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),H(f(rn),null,{default:R(()=>[Me(He(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1})])])):Pe("",!0)],8,Q_))}}),bS=yS,_S=X({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Zr(e,t);return(n,s)=>($(),j(f(nb),pe({"data-slot":"dialog"},f(r)),{default:R(i=>[te(n.$slots,"default",cr(er(i)))]),_:3},16))}}),_c=_S,SS=X({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),j(f(Sb),pe({"data-slot":"dialog-overlay"},f(r),{class:f(tt)("wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:fixed wp:inset-0 wp:z-50 wp:bg-black/80",t.class)}),{default:R(()=>[te(n.$slots,"default")]),_:3},16,["class"]))}}),CS=SS,xS=X({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=Zr(Nt(r,"class"),n);return(i,o)=>($(),j(f(Cb),null,{default:R(()=>[H(CS),H(f(bb),pe({"data-slot":"dialog-content"},{...i.$attrs,...f(s)},{class:f(tt)("wp:bg-background wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:fixed wp:top-[50%] wp:left-[50%] wp:z-50 wp:grid wp:w-full wp:max-w-[calc(100%-2rem)] wp:translate-x-[-50%] wp:translate-y-[-50%] wp:gap-4 wp:rounded-lg wp:border wp:p-6 wp:shadow-lg wp:duration-200 wp:sm:max-w-lg",r.class)}),{default:R(()=>[te(i.$slots,"default"),e.showCloseButton?($(),j(f(sb),{key:0,"data-slot":"dialog-close",class:"wp:ring-offset-background wp:focus:ring-ring wp:data-[state=open]:bg-accent wp:data-[state=open]:text-muted-foreground wp:absolute wp:top-4 wp:right-4 wp:rounded-xs wp:opacity-70 wp:transition-opacity wp:hover:opacity-100 wp:focus:ring-2 wp:focus:ring-offset-2 wp:focus:outline-hidden wp:disabled:pointer-events-none wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4"},{default:R(()=>[H(f(gc)),o[0]||(o[0]=ee("span",{class:"wp:sr-only"},"Close",-1))]),_:1})):Pe("",!0)]),_:3},16,["class"])]),_:3}))}}),Sc=xS,TS=X({__name:"DialogFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("div",{"data-slot":"dialog-footer",class:Ye(f(tt)("wp:flex wp:flex-col-reverse wp:gap-2 wp:sm:flex-row wp:sm:justify-end",t.class))},[te(r.$slots,"default")],2))}}),Lh=TS,ES=X({__name:"DialogHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("div",{"data-slot":"dialog-header",class:Ye(f(tt)("wp:flex wp:flex-col wp:gap-2 wp:text-center wp:sm:text-left",t.class))},[te(r.$slots,"default")],2))}}),Cc=ES,AS=X({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Yr(Nt(t,"class"));return(n,s)=>($(),j(f(xb),pe({"data-slot":"dialog-title"},f(r),{class:f(tt)("wp:text-lg wp:leading-none wp:font-semibold",t.class)}),{default:R(()=>[te(n.$slots,"default")]),_:3},16,["class"]))}}),xc=AS,IS=X({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=Zr(e,t);return(n,s)=>($(),j(f(v2),pe({"data-slot":"select"},f(r)),{default:R(i=>[te(n.$slots,"default",cr(er(i)))]),_:3},16))}}),Fh=IS,kS=X({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Zr(Nt(r,"class"),n);return(i,o)=>($(),j(f(D2),null,{default:R(()=>[H(f(T2),pe({"data-slot":"select-content"},{...i.$attrs,...f(s)},{class:f(tt)("wp:bg-popover wp:text-popover-foreground wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:relative wp:z-50 wp:max-h-(--reka-select-content-available-height) wp:min-w-[8rem] wp:overflow-x-hidden wp:overflow-y-auto wp:rounded-md wp:border wp:shadow-md",e.position==="popper"&&"wp:data-[side=bottom]:translate-y-1 wp:data-[side=left]:-translate-x-1 wp:data-[side=right]:translate-x-1 wp:data-[side=top]:-translate-y-1",r.class)}),{default:R(()=>[H(f(MS)),H(f(N2),{class:Ye(f(tt)("wp:p-1",e.position==="popper"&&"wp:h-[var(--reka-select-trigger-height)] wp:w-full wp:min-w-[var(--reka-select-trigger-width)] wp:scroll-my-1"))},{default:R(()=>[te(i.$slots,"default")]),_:3},8,["class"]),H(f(OS))]),_:3},16,["class"])]),_:3}))}}),Vh=kS,RS=X({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),j(f(A2),pe({"data-slot":"select-group"},t),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),jh=RS,$S={class:"wp:absolute wp:right-2 wp:flex wp:size-3.5 wp:items-center wp:justify-center"},PS=X({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Yr(Nt(t,"class"));return(n,s)=>($(),j(f(R2),pe({"data-slot":"select-item"},f(r),{class:f(tt)("wp:focus:bg-accent wp:focus:text-accent-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:relative wp:flex wp:w-full wp:cursor-default wp:items-center wp:gap-2 wp:rounded-sm wp:py-1.5 wp:pr-8 wp:pl-2 wp:text-sm wp:outline-hidden wp:select-none wp:data-[disabled]:pointer-events-none wp:data-[disabled]:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4 wp:*:[span]:last:flex wp:*:[span]:last:items-center wp:*:[span]:last:gap-2",t.class)}),{default:R(()=>[ee("span",$S,[H(f($2),null,{default:R(()=>[te(n.$slots,"indicator-icon",{},()=>[H(f(Hh),{class:"wp:size-4"})])]),_:3})]),H(f(P2),null,{default:R(()=>[te(n.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),Uh=PS,DS=X({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Yr(Nt(t,"class"));return(n,s)=>($(),j(f(O2),pe({"data-slot":"select-scroll-down-button"},f(r),{class:f(tt)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:R(()=>[te(n.$slots,"default",{},()=>[H(f(Mh),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),OS=DS,HS=X({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Yr(Nt(t,"class"));return(n,s)=>($(),j(f(H2),pe({"data-slot":"select-scroll-up-button"},f(r),{class:f(tt)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:R(()=>[te(n.$slots,"default",{},()=>[H(f(s_),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),MS=HS,qS=X({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},size:{default:"default"}},setup(e){const t=e,r=Yr(Nt(t,"class","size"));return(n,s)=>($(),j(f(M2),pe({"data-slot":"select-trigger","data-size":e.size},f(r),{class:f(tt)("wp:border-input wp:data-[placeholder]:text-muted-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive wp:dark:bg-input/30 wp:dark:hover:bg-input/50 wp:flex wp:w-fit wp:items-center wp:justify-between wp:gap-2 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-2 wp:text-sm wp:whitespace-nowrap wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:data-[size=default]:h-9 wp:data-[size=sm]:h-8 wp:*:data-[slot=select-value]:line-clamp-1 wp:*:data-[slot=select-value]:flex wp:*:data-[slot=select-value]:items-center wp:*:data-[slot=select-value]:gap-2 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4",t.class)}),{default:R(()=>[te(n.$slots,"default"),H(f(I2),{"as-child":""},{default:R(()=>[H(f(Mh),{class:"wp:size-4 wp:opacity-50"})]),_:1})]),_:3},16,["data-size","class"]))}}),zh=qS,NS=X({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),j(f(q2),pe({"data-slot":"select-value"},t),{default:R(()=>[te(r.$slots,"default")]),_:3},16))}}),Kh=NS,BS=X({__name:"Slider",props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,s=Zr(Nt(r,"class"),n);return(i,o)=>($(),j(f(U1),pe({"data-slot":"slider",class:f(tt)("wp:relative wp:flex wp:w-full wp:touch-none wp:items-center wp:select-none wp:data-[disabled]:opacity-50 wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:min-h-44 wp:data-[orientation=vertical]:w-auto wp:data-[orientation=vertical]:flex-col",r.class)},f(s)),{default:R(({modelValue:a})=>[H(f(G1),{"data-slot":"slider-track",class:"wp:bg-muted wp:relative wp:grow wp:overflow-hidden wp:rounded-full wp:data-[orientation=horizontal]:h-1.5 wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-1.5"},{default:R(()=>[H(f(z1),{"data-slot":"slider-range",class:"wp:bg-primary wp:absolute wp:data-[orientation=horizontal]:h-full wp:data-[orientation=vertical]:w-full"})]),_:1}),($(!0),me(Be,null,Qt(a,(l,c)=>($(),j(f(W1),{key:c,"data-slot":"slider-thumb",class:"wp:bg-white wp:border-primary wp:ring-ring/50 wp:block wp:size-4 wp:shrink-0 wp:rounded-full wp:border wp:shadow-sm wp:transition-[color,box-shadow] wp:hover:ring-4 wp:focus-visible:ring-4 wp:focus-visible:outline-hidden wp:disabled:pointer-events-none wp:disabled:opacity-50"}))),128))]),_:1},16,["class"]))}}),Wh=BS,LS=X({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),j(f(J1),pe({"data-slot":"label"},f(r),{class:f(tt)("wp:flex wp:items-center wp:gap-2 wp:text-sm wp:leading-none wp:font-medium wp:select-none wp:group-data-[disabled=true]:pointer-events-none wp:group-data-[disabled=true]:opacity-50 wp:peer-disabled:cursor-not-allowed wp:peer-disabled:opacity-50",t.class)}),{default:R(()=>[te(n.$slots,"default")]),_:3},16,["class"]))}}),As=LS,FS=X({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),j(f(L2),pe({"data-slot":"separator"},f(r),{class:f(tt)("wp:bg-border wp:shrink-0 wp:data-[orientation=horizontal]:h-px wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-px",t.class)}),null,16,["class"]))}}),VS=FS,jS={class:"wp:flex wp:flex-col wp:gap-6 wp:py-4"},US={class:"wp:flex wp:flex-col wp:gap-2"},zS={class:"wp:flex wp:flex-col wp:gap-2"},KS={class:"wp:flex wp:flex-col wp:gap-4"},WS={class:"wp:flex wp:justify-between"},GS={class:"wp:text-sm wp:text-muted-foreground"},JS={class:"wp:flex wp:flex-col wp:gap-4"},YS={class:"wp:flex wp:justify-between"},ZS={class:"wp:text-sm wp:text-muted-foreground"},XS={class:"wp:flex wp:flex-col wp:gap-3"},QS={class:"wp:grid wp:grid-cols-2 wp:gap-2 wp:text-sm"},eC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},tC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},rC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},nC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},sC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},iC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},oC=X({__name:"AudioSettingsDialog",props:{visible:{type:Boolean}},emits:["update:visible"],setup(e,{emit:t}){const r=t,n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",{setVolume:s,setOutputDevice:i,setInputDevice:o,setNotificationVolume:a}=kt("sip"),l=F([]),c=F([]),u=Ro("webphone-input-device",""),d=Ro("webphone-output-device",""),p=Ro("webphone-volume",100),g=Ro("webphone-notification-volume",100),w=async()=>{try{await navigator.mediaDevices.getUserMedia({audio:!0});const m=await navigator.mediaDevices.enumerateDevices();l.value=m.filter(M=>M.kind==="audioinput").map((M,h)=>({deviceId:M.deviceId,label:M.label||`Microphone ${h+1}`})),c.value=m.filter(M=>M.kind==="audiooutput").map((M,h)=>({deviceId:M.deviceId,label:M.label||`Speaker ${h+1}`}));const _=l.value.some(M=>M.deviceId===u.value);(!u.value||!_)&&l.value.length>0&&(u.value=l.value[0]?.deviceId??"");const k=c.value.some(M=>M.deviceId===d.value);(!d.value||!k)&&c.value.length>0&&(d.value=c.value[0]?.deviceId??""),u.value&&o(u.value),d.value&&i(d.value)}catch(m){console.error("Error loading devices",m)}},b=m=>{const _=String(m);u.value=_,o(_)},C=m=>{const _=String(m);d.value=_,i(_)},v=(m,_=35)=>m.length<=_?m:m.substring(0,_)+"...",S=V({get:()=>[p.value],set:m=>{p.value=m[0],s(p.value)}}),y=V({get:()=>[g.value],set:m=>{g.value=m[0],a(g.value)}});return Ke(()=>{w(),s(p.value),a(g.value)}),(m,_)=>e.visible?($(),j(f(_c),{key:0,open:e.visible,"onUpdate:open":_[5]||(_[5]=k=>r("update:visible",k))},{default:R(()=>[H(f(Sc),{class:"wp:sm:max-w-sm"},{default:R(()=>[H(f(Cc),null,{default:R(()=>[H(f(xc),null,{default:R(()=>[..._[6]||(_[6]=[Me("Audio Settings",-1)])]),_:1})]),_:1}),ee("div",jS,[ee("div",US,[H(f(As),null,{default:R(()=>[..._[7]||(_[7]=[Me("Microphone",-1)])]),_:1}),H(f(Fh),{modelValue:f(u),"onUpdate:modelValue":[_[0]||(_[0]=k=>Ge(u)?u.value=k:null),b]},{default:R(()=>[H(f(zh),{class:"wp:w-full"},{default:R(()=>[H(f(Kh),{placeholder:"Select Microphone"})]),_:1}),H(f(Vh),null,{default:R(()=>[H(f(jh),null,{default:R(()=>[($(!0),me(Be,null,Qt(l.value,k=>($(),j(f(Uh),{key:k.deviceId,value:k.deviceId,title:k.label},{default:R(()=>[Me(He(v(k.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),ee("div",zS,[H(f(As),null,{default:R(()=>[..._[8]||(_[8]=[Me("Speaker",-1)])]),_:1}),H(f(Fh),{modelValue:f(d),"onUpdate:modelValue":[_[1]||(_[1]=k=>Ge(d)?d.value=k:null),C]},{default:R(()=>[H(f(zh),{class:"wp:w-full"},{default:R(()=>[H(f(Kh),{placeholder:"Select Speaker"})]),_:1}),H(f(Vh),null,{default:R(()=>[H(f(jh),null,{default:R(()=>[($(!0),me(Be,null,Qt(c.value,k=>($(),j(f(Uh),{key:k.deviceId,value:k.deviceId,title:k.label},{default:R(()=>[Me(He(v(k.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),ee("div",KS,[ee("div",WS,[H(f(As),null,{default:R(()=>[..._[9]||(_[9]=[Me("Media Volume",-1)])]),_:1}),ee("span",GS,He(f(p))+"%",1)]),H(f(Wh),{modelValue:S.value,"onUpdate:modelValue":_[2]||(_[2]=k=>S.value=k),max:100,step:1},null,8,["modelValue"])]),ee("div",JS,[ee("div",YS,[H(f(As),null,{default:R(()=>[..._[10]||(_[10]=[Me("Notification Volume",-1)])]),_:1}),ee("span",ZS,He(f(g))+"%",1)]),H(f(Wh),{modelValue:y.value,"onUpdate:modelValue":_[3]||(_[3]=k=>y.value=k),max:100,step:1},null,8,["modelValue"])]),H(f(VS)),ee("div",XS,[H(f(As),{class:"wp:text-base"},{default:R(()=>[..._[11]||(_[11]=[Me("Atajos de teclado",-1)])]),_:1}),ee("div",QS,[ee("div",eC,[_[12]||(_[12]=ee("span",{class:"wp:text-muted-foreground"},"Historial",-1)),H(f(rn),null,{default:R(()=>[Me(He(f(n))+"H",1)]),_:1})]),ee("div",tC,[_[13]||(_[13]=ee("span",{class:"wp:text-muted-foreground"},"Configuración",-1)),H(f(rn),null,{default:R(()=>[Me(He(f(n))+",",1)]),_:1})]),ee("div",rC,[_[14]||(_[14]=ee("span",{class:"wp:text-muted-foreground"},"Teclado",-1)),H(f(rn),null,{default:R(()=>[Me(He(f(n))+"K",1)]),_:1})]),ee("div",nC,[_[15]||(_[15]=ee("span",{class:"wp:text-muted-foreground"},"Línea 1",-1)),H(f(rn),null,{default:R(()=>[Me(He(f(n))+"1",1)]),_:1})]),ee("div",sC,[_[16]||(_[16]=ee("span",{class:"wp:text-muted-foreground"},"Línea 2",-1)),H(f(rn),null,{default:R(()=>[Me(He(f(n))+"2",1)]),_:1})]),ee("div",iC,[_[17]||(_[17]=ee("span",{class:"wp:text-muted-foreground"},"Línea 3",-1)),H(f(rn),null,{default:R(()=>[Me(He(f(n))+"3",1)]),_:1})])])])]),H(f(Lh),null,{default:R(()=>[H(f(rt),{variant:"secondary",onClick:_[4]||(_[4]=k=>r("update:visible",!1))},{default:R(()=>[..._[18]||(_[18]=[Me("Close",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):Pe("",!0)}}),aC=oC,lC=X({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),j(f(l2),pe({"data-slot":"scroll-area-scrollbar"},f(r),{class:f(tt)("wp:flex wp:touch-none wp:p-px wp:transition-colors wp:select-none",e.orientation==="vertical"&&"wp:h-full wp:w-2.5 wp:border-l wp:border-l-transparent",e.orientation==="horizontal"&&"wp:h-2.5 wp:flex-col wp:border-t wp:border-t-transparent",t.class)}),{default:R(()=>[H(f(u2),{"data-slot":"scroll-area-thumb",class:"wp:bg-border wp:relative wp:flex-1 wp:rounded-full"})]),_:1},16,["class"]))}}),cC=lC,uC=X({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Nt(t,"class");return(n,s)=>($(),j(f(Z1),pe({"data-slot":"scroll-area"},f(r),{class:f(tt)("wp:relative",t.class)}),{default:R(()=>[H(f(d2),{"data-slot":"scroll-area-viewport",class:"wp:focus-visible:ring-ring/50 wp:size-full wp:rounded-[inherit] wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:focus-visible:outline-1"},{default:R(()=>[te(n.$slots,"default")]),_:3}),H(cC),H(f(Q1))]),_:3},16,["class"]))}}),Gh=uC,dC={class:"wp:relative wp:my-2"},fC={class:"wp:flex wp:flex-col wp:gap-2"},pC=["onClick"],hC={class:"wp:flex wp:items-center wp:gap-3"},gC={class:"wp:flex wp:flex-col"},vC={class:"wp:text-sm wp:font-medium"},mC={class:"wp:text-[10px] wp:text-muted-foreground"},wC={class:"wp:flex wp:flex-col wp:items-end"},yC={key:0,class:"wp:text-xs wp:font-mono wp:text-muted-foreground"},bC={class:"wp:text-[10px] wp:text-muted-foreground wp:capitalize"},_C={key:0,class:"wp:text-center wp:text-muted-foreground wp:py-8"},SC={key:1,class:"wp:text-center wp:text-muted-foreground wp:py-8"},CC=X({__name:"CallHistoryDialog",props:{visible:{type:Boolean},contacts:{}},emits:["update:visible","call"],setup(e,{emit:t}){const r=e,n=t,s=kt("webphone"),i=F(""),o=p=>{if(!r.contacts)return p;const g=r.contacts.find(w=>w.number===p);return g?g.name:p},a=V(()=>{if(!i.value)return s.callHistory;const p=i.value.toLowerCase();return s.callHistory.filter(g=>{const w=o(g.number).toLowerCase(),b=g.number.toLowerCase();return w.includes(p)||b.includes(p)})}),l=p=>p===0?"":`${Math.floor(p/60)}:${(p%60).toString().padStart(2,"0")}`,c=p=>p.direction==="incoming"?p.status==="missed"?c_:l_:u_,u=p=>p.status==="missed"?"wp:text-red-500":p.direction==="incoming"?"wp:text-green-500":"wp:text-blue-500",d=p=>{n("update:visible",!1),n("call",p)};return(p,g)=>e.visible?($(),j(f(_c),{key:0,open:e.visible,"onUpdate:open":g[1]||(g[1]=w=>n("update:visible",w))},{default:R(()=>[H(f(Sc),{class:"wp:sm:max-w-sm"},{default:R(()=>[H(f(Cc),null,{default:R(()=>[H(f(xc),null,{default:R(()=>[...g[2]||(g[2]=[Me("Call History",-1)])]),_:1})]),_:1}),ee("div",dC,[H(f(p_),{class:"wp:absolute wp:left-2 wp:top-2.5 wp:h-4 wp:w-4 wp:text-muted-foreground"}),H(f(bi),{modelValue:i.value,"onUpdate:modelValue":g[0]||(g[0]=w=>i.value=w),placeholder:"Search history...",class:"wp:pl-8"},null,8,["modelValue"])]),H(f(Gh),{class:"wp:h-[60vh] wp:pr-4"},{default:R(()=>[ee("div",fC,[($(!0),me(Be,null,Qt(a.value,w=>($(),me("div",{key:w.id,class:"wp:flex wp:items-center wp:justify-between wp:p-2 wp:rounded-lg wp:hover:bg-accent wp:cursor-pointer wp:transition-colors",onClick:b=>d(w.number)},[ee("div",hC,[($(),j(Gs(c(w)),{class:Ye([u(w),"wp:w-4 wp:h-4"])},null,8,["class"])),ee("div",gC,[ee("span",vC,He(o(w.number)),1),ee("span",mC,He(new Date(w.startTime).toLocaleString()),1)])]),ee("div",wC,[w.duration>0?($(),me("span",yC,He(l(w.duration)),1)):Pe("",!0),ee("span",bC,He(w.status),1)])],8,pC))),128)),f(s).callHistory.length===0?($(),me("div",_C," No call history ")):a.value.length===0?($(),me("div",SC," No results found ")):Pe("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):Pe("",!0)}}),xC=CC,TC={class:"wp:grid wp:gap-4 wp:py-4"},EC={class:"wp:grid wp:gap-2 wp:relative"},AC={class:"wp:relative"},IC={key:0,class:"wp:absolute wp:top-full wp:left-0 wp:right-0 wp:mt-1 wp:bg-popover wp:border wp:rounded-md wp:shadow-lg wp:z-50 wp:max-h-60 wp:overflow-auto"},kC={class:"wp:p-1"},RC=["onClick"],$C={class:"wp:flex wp:flex-col wp:min-w-0 wp:flex-1"},PC={class:"wp:font-medium wp:text-sm wp:truncate"},DC={class:"wp:text-xs wp:text-muted-foreground"},OC=X({__name:"TransferDialog",props:{visible:{type:Boolean},contacts:{default:()=>[]}},emits:["update:visible","transfer"],setup(e,{emit:t}){const r=e,n=t,s=F(""),i=F(!1),o=F(null);ke(()=>r.visible,p=>{p&&(s.value="",i.value=!1)}),ke(s,p=>{i.value=p.length>0&&a.value.length>0});const a=V(()=>{if(!s.value)return r.contacts;const p=s.value.toLowerCase();return r.contacts.filter(g=>g.name.toLowerCase().includes(p)||g.number.includes(p))}),l=p=>{s.value=p.number,i.value=!1},c=()=>{s.value="",i.value=!1,o.value?.focus()},u=p=>{const g=s.value.trim();g&&(n("transfer",g,p),n("update:visible",!1),s.value="",i.value=!1)},d=p=>{p.key==="Enter"&&s.value.trim()?(p.preventDefault(),u("blind")):p.key==="Escape"&&(i.value=!1)};return(p,g)=>e.visible?($(),j(f(_c),{key:0,open:e.visible,"onUpdate:open":g[5]||(g[5]=w=>n("update:visible",w))},{default:R(()=>[H(f(Sc),{class:"wp:sm:max-w-md"},{default:R(()=>[H(f(Cc),null,{default:R(()=>[H(f(xc),null,{default:R(()=>[...g[6]||(g[6]=[Me("Transferir Llamada",-1)])]),_:1})]),_:1}),ee("div",TC,[ee("div",EC,[H(f(As),{for:"transfer-input"},{default:R(()=>[...g[7]||(g[7]=[Me("Número o Contacto",-1)])]),_:1}),ee("div",AC,[H(f(bi),{id:"transfer-input",ref_key:"inputRef",ref:o,modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=w=>s.value=w),type:"text",placeholder:"Escribe un número o busca un contacto...",class:"wp:pr-8",onKeydown:d,onFocus:g[1]||(g[1]=w=>i.value=s.value.length>0&&a.value.length>0),autocomplete:"off"},null,8,["modelValue"]),s.value?($(),j(f(rt),{key:0,variant:"ghost",size:"icon",class:"wp:absolute wp:right-0 wp:top-0 wp:h-full wp:w-8 wp:hover:bg-transparent",onClick:c},{default:R(()=>[H(f(gc),{class:"wp:h-4 wp:w-4"})]),_:1})):Pe("",!0)]),i.value&&a.value.length>0?($(),me("div",IC,[H(f(Gh),{class:"wp:max-h-60"},{default:R(()=>[ee("div",kC,[($(!0),me(Be,null,Qt(a.value,w=>($(),me("div",{key:w.number,class:"wp:flex wp:items-center wp:gap-2 wp:p-2 wp:rounded-sm wp:cursor-pointer wp:hover:bg-accent wp:transition-colors",onClick:b=>l(w)},[w.type?($(),me("div",{key:0,class:Ye(f(tt)("wp:flex wp:items-center wp:justify-center wp:w-8 wp:h-8 wp:rounded-full wp:shrink-0",w.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":w.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":w.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400"))},[w.type==="extension"?($(),j(f(Oh),{key:0,class:"wp:w-4 wp:h-4"})):w.type==="contact"?($(),j(f(hc),{key:1,class:"wp:w-4 wp:h-4"})):w.type==="voicemail"?($(),j(f(Nh),{key:2,class:"wp:w-4 wp:h-4"})):($(),j(f(Bh),{key:3,class:"wp:w-4 wp:h-4"}))],2)):Pe("",!0),ee("div",$C,[ee("span",PC,He(w.name),1),ee("span",DC,He(w.number),1)])],8,RC))),128))])]),_:1})])):Pe("",!0),g[8]||(g[8]=ee("p",{class:"wp:text-xs wp:text-muted-foreground"}," Presiona Enter para transferir directamente ",-1))])]),H(f(Lh),{class:"wp:flex-col wp:gap-2 sm:wp:flex-row"},{default:R(()=>[H(f(rt),{variant:"secondary",onClick:g[2]||(g[2]=w=>n("update:visible",!1)),class:"wp:w-full sm:wp:w-auto"},{default:R(()=>[...g[9]||(g[9]=[Me(" Cancelar ",-1)])]),_:1}),H(f(rt),{onClick:g[3]||(g[3]=w=>u("blind")),disabled:!s.value.trim(),variant:"outline",class:"wp:w-full sm:wp:flex-1"},{default:R(()=>[...g[10]||(g[10]=[Me(" Transferencia Ciega ",-1)])]),_:1},8,["disabled"]),H(f(rt),{onClick:g[4]||(g[4]=w=>u("attended")),disabled:!s.value.trim(),class:"wp:w-full sm:wp:flex-1"},{default:R(()=>[...g[11]||(g[11]=[Me(" Con Consulta ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"])):Pe("",!0)}}),HC=OC,MC=X({__name:"DocumentPip",props:{remoteStream:{},localStream:{},hasVideo:{type:Boolean},remoteNumber:{},isConnected:{type:Boolean},callStatus:{},isMuted:{type:Boolean},isHeld:{type:Boolean},destination:{},isVideo:{type:Boolean},active:{type:Boolean},autoOpenOnBlur:{type:Boolean}},emits:["transfer","update:active","hangup","answer","toggleMute","toggleHold"],setup(e,{expose:t,emit:r}){const n=e,s=r,i=F(!1),o=F(!1),a=F(!1),l=F(null),c=F(0),u=F(null);let d=null,p=null;Ke(()=>{i.value="documentPictureInPicture"in window,document.addEventListener("visibilitychange",b),window.addEventListener("blur",C)}),Rt(()=>{document.removeEventListener("visibilitychange",b),window.removeEventListener("blur",C),p&&(clearTimeout(p),p=null),S(),W()});const g=()=>{const J=n.callStatus!=="idle",ie=document.hidden||!document.hasFocus();return n.autoOpenOnBlur!==!1&&J&&i.value&&ie&&!o.value&&!a.value},w=()=>{g()&&(p&&clearTimeout(p),p=setTimeout(()=>{g()&&Q()},120))},b=()=>{w()},C=()=>{w()},v=()=>{u.value||(c.value=0,u.value=setInterval(()=>{c.value++},1e3))},S=()=>{u.value&&(clearInterval(u.value),u.value=null)},y=J=>{const ie=Math.floor(J/60),K=J%60;return`${ie.toString().padStart(2,"0")}:${K.toString().padStart(2,"0")}`};ke(()=>n.callStatus,(J,ie)=>{J==="connected"&&ie!=="connected"?v():J==="idle"&&ie!=="idle"&&(S(),o.value&&W())},{immediate:!0}),ke(()=>n.isConnected,J=>{!J&&o.value&&(S(),W())}),ke(()=>[n.callStatus,n.isMuted,n.isHeld],()=>{l.value&&(x(l.value.document),O(l.value.document))});const m=V(()=>i.value&&n.isConnected),_={phone:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>',phoneOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" transform="rotate(135 12 12)"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',mic:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',micOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="2" x2="22" y1="2" y2="22"/><path d="M18.89 13.23A7.12 7.12 0 0 0 19 12v-2"/><path d="M5 10v2a7 7 0 0 0 12 5"/><path d="M15 9.34V5a3 3 0 0 0-5.68-1.33"/><path d="M9 9v3a3 3 0 0 0 5.12 2.12"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',pause:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="14" y="4" width="4" height="16" rx="1"/><rect x="6" y="4" width="4" height="16" rx="1"/></svg>',play:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3"/></svg>',transfer:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 3 4 4-4 4"/><path d="M20 7H4"/><path d="m8 21-4-4 4-4"/><path d="M4 17h16"/></svg>',video:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'},k=J=>{const ie=J.createElement("style");ie.textContent=`
|
|
76
|
+
¿Desea realizar la llamada solo con AUDIO?`)&&y(!1)}else alert("Error al iniciar la llamada: "+(A instanceof Error?A.message:String(A)))}},T=(_=!1)=>{if(l.onAnswer){l.onAnswer(_);return}i(_)},v=()=>{if(l.onHangup){l.onHangup();return}s()},x=()=>{if(l.onReject){l.onReject();return}s()},w=V(()=>{const _={};return r.channels.forEach(A=>{const P=A.status==="connected"||A.status==="calling"||A.status==="incoming";_[A.id]=P?"wp:text-[var(--color-red)]":"wp:text-[var(--color-avaible)]"}),_}),b=V(()=>w.value[r.activeChannelId]??"wp:text-[var(--p-primary-color)]");return(_,A)=>($(),me("div",{class:"webphone-actions wp:flex wp:justify-center wp:items-center wp:gap-2 wp:px-4 wp:relative wp:mb-4","data-call-status":f(r).callStatus},[f(r).callStatus==="idle"?($(),me("div",H_,[h.value?($(),U(f(tt),{key:0,variant:"default",size:"icon",onClick:A[0]||(A[0]=P=>y(!1)),"aria-label":"Audio Call",class:"webphone-actions__button webphone-actions__button--call wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-[color:var(--p-primary-color)]/80 wp:to-[color:var(--p-primary-color)]/100 wp:hover:from-[color:var(--p-primary-color)]/75 wp:hover:to-[color:var(--p-primary-color)]"},{default:k(()=>[H(f(x_),{class:"webphone-actions__button-icon wp:size-8 wp:text-white"}),A[13]||(A[13]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Llamar",-1))]),_:1})):ke("",!0),m.value?($(),U(f(tt),{key:1,variant:"outline",size:"icon",onClick:A[1]||(A[1]=P=>y(!0)),"aria-label":"Video Call",class:"webphone-actions__button webphone-actions__button--video wp:w-full wp:px-4 wp:bg-transparent wp:border wp:border-primary wp:hover:bg-[var(--p-primary-color)]/8"},{default:k(()=>[H(f(A_),{class:Je(["webphone-actions__button-icon wp:size-6 wp:text-primary",b.value])},null,8,["class"]),A[14]||(A[14]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-primary"}," Video llamada a extensiones ",-1))]),_:1})):ke("",!0)])):ke("",!0),f(r).callStatus==="incoming"?($(),me(Ne,{key:1},[f(r).activeChannel?.hasVideo?($(),U(f(tt),{key:0,variant:"default",size:"icon",onClick:A[2]||(A[2]=P=>T(!0)),class:"webphone-actions__button webphone-actions__button--answer-video wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:bg-transparent wp:hover:bg-[var(--p-primary-color)]/10","aria-label":"Answer Video"},{default:k(()=>[H(f(g_),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-[var(--p-primary-color)]"})]),_:1})):ke("",!0),H(f(tt),{variant:"default",size:"icon",onClick:A[3]||(A[3]=P=>T(!1)),class:"webphone-actions__button webphone-actions__button--answer wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-status-available wp:hover:bg-status-available/90","aria-label":"Answer"},{default:k(()=>[H(f(Nh),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-white"})]),_:1}),H(f(tt),{variant:"destructive",size:"icon",onClick:x,"aria-label":"Reject",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--reject wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:k(()=>[H(f(vc),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-white"})]),_:1})],64)):ke("",!0),f(r).callStatus==="connected"?($(),me("div",M_,[re("div",N_,[H(f(tt),{variant:f(r).isMuted?"destructive":"secondary",size:"icon",onClick:f(o),"aria-label":"Mute",class:"webphone-actions__button webphone-actions__button--mute wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:k(()=>[f(r).isMuted?($(),U(f(i_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-disconnected"})):($(),U(f(o_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),H(f(tt),{variant:(f(r).isHeld,"secondary"),size:"icon",onClick:f(a),"aria-label":"Hold",class:"webphone-actions__button webphone-actions__button--hold wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:k(()=>[f(r).isHeld?($(),U(f(f_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-hold"})):($(),U(f(a_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),u.value?ke("",!0):($(),U(f(tt),{key:0,variant:"secondary",size:"icon",onClick:A[4]||(A[4]=P=>c("transfer")),"aria-label":"Transfer",class:"webphone-actions__button webphone-actions__button--transfer wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:k(()=>[H(f(__),{class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"})]),_:1}))]),re("div",q_,[H(f(tt),{variant:"ghost",size:"icon",onClick:A[5]||(A[5]=P=>f(r).toggleKeypad()),"aria-label":f(r).isKeypadVisible?"Ocultar teclado":"Mostrar teclado",class:"webphone-actions__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"},{default:k(()=>[f(r).isKeypadVisible?($(),U(f(wc),{key:0,class:"webphone-actions__keypad-toggle-icon wp:size-6"})):($(),U(f(mc),{key:1,class:"webphone-actions__keypad-toggle-icon wp:size-6"}))]),_:1},8,["aria-label"]),H(f(bi),{modelValue:f(r).keypadValue,"onUpdate:modelValue":A[6]||(A[6]=P=>f(r).keypadValue=P),placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-actions__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),re("div",{class:"webphone-actions__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:A[7]||(A[7]=nr(P=>f(r).backspaceKeypad(),["stop"]))},[H(f(yc),{class:"webphone-actions__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),re("div",{class:Je(["webphone-actions__keypad wp:w-full wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",f(r).isKeypadVisible?"wp:max-h-[300px] wp:opacity-100":"wp:max-h-0 wp:opacity-0"]),"data-visible":f(r).isKeypadVisible?"true":"false"},[H(pc)],10,B_),H(f(tt),{size:"icon",onClick:v,"aria-label":"Hangup",class:"webphone-actions__button webphone-actions__button--hangup wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:k(()=>[H(f(vc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),A[15]||(A[15]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Colgar",-1))]),_:1})])):ke("",!0),f(r).callStatus==="calling"?($(),me("div",L_,[re("div",F_,[H(f(tt),{variant:"ghost",size:"icon",onClick:A[8]||(A[8]=P=>f(r).toggleKeypad()),"aria-label":f(r).isKeypadVisible?"Ocultar teclado":"Mostrar teclado",class:"webphone-actions__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"},{default:k(()=>[f(r).isKeypadVisible?($(),U(f(wc),{key:0,class:"webphone-actions__keypad-toggle-icon wp:size-6"})):($(),U(f(mc),{key:1,class:"webphone-actions__keypad-toggle-icon wp:size-6"}))]),_:1},8,["aria-label"]),H(f(bi),{modelValue:f(r).keypadValue,"onUpdate:modelValue":A[9]||(A[9]=P=>f(r).keypadValue=P),placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-actions__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),re("div",{class:"webphone-actions__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:A[10]||(A[10]=nr(P=>f(r).backspaceKeypad(),["stop"]))},[H(f(yc),{class:"webphone-actions__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),re("div",{class:Je(["webphone-actions__keypad wp:w-full wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",f(r).isKeypadVisible?"wp:max-h-[300px] wp:opacity-100":"wp:max-h-0 wp:opacity-0"]),"data-visible":f(r).isKeypadVisible?"true":"false"},[H(pc)],10,V_),H(f(tt),{variant:"destructive",size:"lg",onClick:v,"aria-label":"Cancel",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--cancel wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:k(()=>[H(f(vc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),A[16]||(A[16]=re("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Colgar",-1))]),_:1})])):ke("",!0),u.value&&f(r).callStatus==="connected"?($(),me("div",j_,[H(f(tt),{variant:"default",size:"sm",onClick:A[11]||(A[11]=P=>c("completeTransfer")),class:"webphone-actions__button webphone-actions__button--complete-transfer wp:gap-2 wp:bg-status-available wp:hover:bg-status-available/90 wp:text-white"},{default:k(()=>[H(f(Hh),{class:"wp:w-4 wp:h-4"}),A[17]||(A[17]=Oe(" Completar Transferencia ",-1))]),_:1}),H(f(tt),{variant:"destructive",size:"sm",onClick:A[12]||(A[12]=P=>c("cancelTransfer")),class:"webphone-actions__button webphone-actions__button--cancel-transfer wp:gap-2"},{default:k(()=>[H(f(gc),{class:"wp:w-4 wp:h-4"}),A[18]||(A[18]=Oe(" Cancelar ",-1))]),_:1})])):ke("",!0)],8,O_))}}),z_=U_,K_=Q({__name:"Kbd",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("kbd",{class:Je(f(et)("wp:bg-muted wp:text-muted-foreground wp:pointer-events-none wp:inline-flex wp:h-5 wp:w-fit wp:min-w-5 wp:items-center wp:justify-center wp:gap-1 wp:rounded-sm wp:px-1 wp:font-sans wp:text-xs wp:font-medium wp:select-none","wp:[&_svg:not([class*='size-'])]:size-3","wp:[[data-slot=tooltip-content]_&]:bg-background/20 wp:[[data-slot=tooltip-content]_&]:text-background wp:dark:[[data-slot=tooltip-content]_&]:bg-background/10",t.class))},[ie(r.$slots,"default")],2))}}),rn=K_,W_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 23"};function G_(e,t){return $(),me("svg",W_,[...t[0]||(t[0]=[re("path",{stroke:"currentColor","stroke-miterlimit":"22.926","stroke-width":"1.2",d:"m12.317 2.51 15.123-.027c2.609 1.773 1.65 19.836 0 18.746l-15.124.026zM1.593 2.484h1.45V21.29h-1.45c-1.79-2.697-1.79-17.855 0-18.806ZM6.244.25h3.078a1.573 1.573 0 0 1 1.574 1.566v18.902a1.58 1.58 0 0 1-1.574 1.574H6.244a1.58 1.58 0 0 1-1.574-1.576v-18.9A1.573 1.573 0 0 1 6.244.25Z","clip-rule":"evenodd"},null,-1)])])}var bc={render:G_},J_=Q({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Zr(e,t);return(n,s)=>($(),U(f(z2),pe({"data-slot":"tooltip"},f(r)),{default:k(i=>[ie(n.$slots,"default",cr(er(i)))]),_:3},16))}}),Jo=J_,Y_=Q({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Zr(qt(r,"class"),n);return(i,o)=>($(),U(f(G2),null,{default:k(()=>[H(f(W2),pe({"data-slot":"tooltip-content"},{...f(s),...i.$attrs},{class:f(et)("wp:bg-foreground wp:text-background wp:animate-in wp:fade-in-0 wp:zoom-in-95 wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=closed]:zoom-out-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:z-50 wp:w-fit wp:rounded-md wp:px-3 wp:py-1.5 wp:text-xs wp:text-balance",r.class)}),{default:k(()=>[ie(i.$slots,"default"),H(f(F2),{class:"wp:bg-foreground wp:fill-foreground wp:z-50 wp:size-2.5 wp:translate-y-[calc(-50%_-_2px)] wp:rotate-45 wp:rounded-[2px]"})]),_:3},16,["class"])]),_:3}))}}),Yo=Y_,Z_=Q({__name:"TooltipProvider",props:{delayDuration:{default:0},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},content:{}},setup(e){const t=e;return(r,n)=>($(),U(f(j2),cr(er(t)),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),Zo=Z_,X_=Q({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),U(f(J2),pe({"data-slot":"tooltip-trigger"},t),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),Xo=X_,Q_=["data-call-status"],eS={class:"webphone-display__connected-status-label wp:flex wp:gap-2 wp:items-center"},tS={class:"webphone-display__duration wp:ibrad wp:font-semibold wp:text-sm"},rS={class:"webphone-display__user-row wp:flex wp:items-center wp:gap-2"},nS={key:2,class:"webphone-display__dialer wp:w-full wp:flex wp:items-center wp:justify-center wp:min-h-10"},sS={class:"webphone-display__dialer-field wp:relative"},iS={class:"webphone-display__suggestions wp:absolute wp:bottom-full wp:left-0 wp:w-full wp:z-50 wp:bg-popover wp:text-popover-foreground wp:shadow-md wp:rounded-md wp:border wp:mb-1 wp:max-h-40 wp:overflow-y-auto"},oS=["onPointerdown"],aS={class:"webphone-display__contact-content wp:flex wp:flex-col wp:min-w-0"},lS={class:"webphone-display__contact-name wp:truncate"},cS={class:"webphone-display__contact-number wp:text-xs wp:text-muted-foreground wp:truncate"},uS={key:3,class:"webphone-display__connected-summary wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2 wp:w-full"},dS={class:"webphone-display__caller wp:flex wp:flex-col wp:items-center wp:gap-1"},fS={class:"webphone-display__caller-name wp:text-md wp:font-bold wp:text-neutral-800 wp:dark:text-white"},pS={key:0,class:"webphone-display__caller-number wp:text-[10px] wp:text-muted-foreground"},hS={key:4,class:"webphone-display__non-idle wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2"},gS={class:"webphone-display__non-idle-row wp:flex wp:items-center wp:gap-4"},vS={class:"webphone-display__non-idle-caller wp:flex wp:flex-col wp:items-center"},mS={class:"webphone-display__non-idle-name wp:text-md wp:font-bold wp:text-neutral-800 wp:dark:text-white"},wS={key:0,class:"webphone-display__non-idle-number wp:text-sm wp:text-muted-foreground"},yS=Q({__name:"CallDisplay",props:{allowInput:{type:Boolean,default:!0},isWebCall:{type:Boolean,default:!1},isOnline:{type:Boolean,default:!0},user:{},contacts:{default:()=>[]},channelId:{default:void 0}},setup(e){const t=Rt("webphone"),r=Rt("sip"),n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd+":"Ctrl+",s=e,i=V(()=>s.channelId!==void 0?t.channels.find(D=>D.id===s.channelId):t.activeChannel),o=V(()=>{if(!t.isConnected)return"wp:text-status-disconnected";const D=i.value;return D&&D.status!=="idle"?D.isHeld||D.status==="held"?"wp:text-status-hold":D.status==="incoming"?"wp:text-status-incoming":"wp:text-primary":"wp:text-primary"}),a=F(!1),l=F(null),c=F(null);Ty(l,()=>{a.value=!1});const u=V({get:()=>i.value?.keypadValue||"",set:D=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:D})}}),d=V(()=>/^[+]?[0-9*#]+$/.test(u.value)),p=V(()=>{if(!u.value)return s.contacts.slice(0,10);const D=u.value.toLowerCase(),O=[];for(const S of s.contacts)if((S.name.toLowerCase().includes(D)||S.number.includes(D))&&(O.push(S),O.length>=10))break;return O}),h=D=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:D.number}),a.value=!1},m=()=>{!u.value||!d.value||(a.value=!1,r.makeCall(u.value))};Ae(u,()=>{a.value=!0});const y=()=>{u.value&&d.value&&m()},T=()=>{a.value=!1},v=()=>{a.value=!0},x=()=>{setTimeout(()=>{a.value=!1},150)},w=F(Date.now());Sy(()=>{w.value=Date.now()},1e3);const b=V(()=>{const D=i.value?.startTime,O=i.value?.status||"idle";if(!D||O!=="connected")return"00:00:00";const S=Math.floor((w.value-D)/1e3);return S<0?"00:00:00":`${Math.floor(S/3600).toString().padStart(2,"0")}:${Math.floor(S%3600/60).toString().padStart(2,"0")}:${(S%60).toString().padStart(2,"0")}`}),_=V(()=>{if(!s.isOnline)return"Sin internet";if(!t.isConnected)return"Sin conexion";const D=i.value,O=D?.status||"idle";return O==="idle"?"Disponible":O==="calling"?"Llamando...":D?.isHeld?`En espera - ${D.remoteNumber||D.keypadValue||"Unknown"}`:O==="connected"?"Conectado":O.charAt(0).toUpperCase()+O.slice(1)}),A=D=>{if(!D)return"";const O=D.trim(),S=O.startsWith("+"),E=O.replace(/[^\d]/g,"");return S?`+${E}`:E},P=V(()=>{const D=i.value,O=D?.remoteNumber||D?.keypadValue,S=D?.remoteDisplayName;if(!O)return"Unknown";const E=A(O),I=s.contacts?.find(J=>A(J.number)===E);return I?I.name:S||O}),g=V(()=>{const D=i.value;return D?.remoteNumber||D?.keypadValue||""});return(D,O)=>($(),me("div",{class:"webphone-display wp:flex wp:flex-col wp:items-center wp:px-4 wp:space-y-6","data-call-status":i.value?.status||"idle"},[(i.value?.status||"idle")==="connected"?($(),me("div",{key:0,class:Je([o.value,"webphone-display__connected-status wp:w-full wp:flex wp:items-center wp:justify-between wp:gap-2 wp:text-3xl wp:font-light wp:mb-5"])},[re("div",eS,[H(f(bc),{class:"webphone-display__connected-status-icon wp:w-4 wp:h-4"}),O[3]||(O[3]=re("span",{class:"webphone-display__connected-status-text wp:text-sm wp:montserrat wp:font-bold"},"En llamada",-1))]),re("span",tS,Pe(b.value),1)],2)):ke("",!0),s.user?($(),me("span",{key:1,class:Je([o.value,"webphone-display__user wp:font-bold wp:text-lg wp:flex wp:items-center wp:gap-1 wp:transition-colors wp:duration-300"])},[re("div",rS,[H(f(bc),{class:"webphone-display__user-icon wp:size-6 wp:shrink-0 montserrat"}),Oe(" "+Pe(s.user),1)]),re("div",{class:Je(["webphone-display__status-text wp:font-bold wp:tracking-wider wp:text-sm wp:text-[var(--color-primary)] montserrat",o.value])},Pe(_.value),3)],2)):ke("",!0),(i.value?.status||"idle")==="idle"&&s.allowInput?($(),me("div",nS,[re("div",{class:"webphone-display__dialer-container wp:relative wp:w-full wp:max-w-80",ref_key:"containerRef",ref:l},[re("div",sS,[H(f(Zo),null,{default:k(()=>[H(f(Jo),null,{default:k(()=>[H(f(Xo),{"as-child":""},{default:k(()=>[H(f(tt),{onClick:O[0]||(O[0]=S=>f(t).toggleKeypad()),variant:"ghost",size:"icon",class:Je(f(et)("webphone-display__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"))},{default:k(()=>[f(t).isKeypadVisible?($(),U(f(wc),{key:0,class:"webphone-display__keypad-toggle-icon wp:size-6"})):($(),U(f(mc),{key:1,class:"webphone-display__keypad-toggle-icon wp:size-6"}))]),_:1},8,["class"])]),_:1}),H(f(Yo),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[re("span",null,Pe(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),H(f(rn),null,{default:k(()=>[Oe(Pe(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1}),H(f(bi),{ref_key:"inputRef",ref:c,modelValue:u.value,"onUpdate:modelValue":O[1]||(O[1]=S=>u.value=S),onFocus:v,onBlur:x,onKeydown:[ll(y,["enter"]),ll(T,["escape"])],placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-display__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),re("div",{class:"webphone-display__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:O[2]||(O[2]=nr(S=>f(t).backspaceKeypad(),["stop"]))},[H(f(yc),{class:"webphone-display__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),ji(re("div",iS,[d.value?($(),me("div",{key:0,class:"webphone-display__suggestion webphone-display__suggestion--raw wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onPointerdown:nr(m,["prevent"])},[H(f(Nh),{class:"webphone-display__suggestion-icon wp:w-4 wp:h-4 wp:shrink-0"}),re("span",null,"Marcar "+Pe(u.value),1)],32)):ke("",!0),($(!0),me(Ne,null,Qt(p.value,S=>($(),me("div",{key:S.number,class:"webphone-display__suggestion webphone-display__suggestion--contact wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onPointerdown:nr(E=>h(S),["prevent"])},[re("div",{class:Je(f(et)("webphone-display__contact-badge wp:flex wp:items-center wp:justify-center wp:w-6 wp:h-6 wp:rounded-full wp:shrink-0",S.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":S.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":S.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":S.type==="tool"?"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400":"wp:bg-neutral-100 wp:text-neutral-600 wp:dark:bg-neutral-800 wp:dark:text-neutral-400"))},[S.type==="extension"?($(),U(f(Oh),{key:0,class:"wp:w-3 wp:h-3"})):S.type==="contact"?($(),U(f(hc),{key:1,class:"wp:w-3 wp:h-3"})):S.type==="voicemail"?($(),U(f(qh),{key:2,class:"wp:w-3 wp:h-3"})):S.type==="tool"?($(),U(f(Bh),{key:3,class:"wp:w-3 wp:h-3"})):($(),U(f(hc),{key:4,class:"wp:w-3 wp:h-3"}))],2),re("div",aS,[re("span",lS,Pe(S.name),1),re("span",cS,Pe(S.number),1)])],40,oS))),128))],512),[[uo,a.value&&u.value&&(p.value.length>0||d.value)]])],512)])):(i.value?.status||"idle")==="connected"?($(),me("div",uS,[re("div",dS,[re("div",fS," En llamada con "+Pe(P.value),1),P.value!==g.value?($(),me("div",pS,Pe(g.value),1)):ke("",!0)])])):(i.value?.status||"idle")!=="idle"?($(),me("div",hS,[re("div",gS,[re("div",vS,[re("div",mS,Pe(P.value),1),P.value!==g.value?($(),me("div",wS,Pe(g.value),1)):ke("",!0)]),H(f(Zo),null,{default:k(()=>[H(f(Jo),null,{default:k(()=>[H(f(Xo),{"as-child":""}),H(f(Yo),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[re("span",null,Pe(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),H(f(rn),null,{default:k(()=>[Oe(Pe(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1})])])):ke("",!0)],8,Q_))}}),bS=yS,_S=Q({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Zr(e,t);return(n,s)=>($(),U(f(nb),pe({"data-slot":"dialog"},f(r)),{default:k(i=>[ie(n.$slots,"default",cr(er(i)))]),_:3},16))}}),_c=_S,SS=Q({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=qt(t,"class");return(n,s)=>($(),U(f(Sb),pe({"data-slot":"dialog-overlay"},f(r),{class:f(et)("wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:fixed wp:inset-0 wp:z-50 wp:bg-black/80",t.class)}),{default:k(()=>[ie(n.$slots,"default")]),_:3},16,["class"]))}}),CS=SS,xS=Q({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=Zr(qt(r,"class"),n);return(i,o)=>($(),U(f(Cb),null,{default:k(()=>[H(CS),H(f(bb),pe({"data-slot":"dialog-content"},{...i.$attrs,...f(s)},{class:f(et)("wp:bg-background wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:fixed wp:top-[50%] wp:left-[50%] wp:z-50 wp:grid wp:w-full wp:max-w-[calc(100%-2rem)] wp:translate-x-[-50%] wp:translate-y-[-50%] wp:gap-4 wp:rounded-lg wp:border wp:p-6 wp:shadow-lg wp:duration-200 wp:sm:max-w-lg",r.class)}),{default:k(()=>[ie(i.$slots,"default"),e.showCloseButton?($(),U(f(sb),{key:0,"data-slot":"dialog-close",class:"wp:ring-offset-background wp:focus:ring-ring wp:data-[state=open]:bg-accent wp:data-[state=open]:text-muted-foreground wp:absolute wp:top-4 wp:right-4 wp:rounded-xs wp:opacity-70 wp:transition-opacity wp:hover:opacity-100 wp:focus:ring-2 wp:focus:ring-offset-2 wp:focus:outline-hidden wp:disabled:pointer-events-none wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4"},{default:k(()=>[H(f(gc)),o[0]||(o[0]=re("span",{class:"wp:sr-only"},"Close",-1))]),_:1})):ke("",!0)]),_:3},16,["class"])]),_:3}))}}),Sc=xS,TS=Q({__name:"DialogFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("div",{"data-slot":"dialog-footer",class:Je(f(et)("wp:flex wp:flex-col-reverse wp:gap-2 wp:sm:flex-row wp:sm:justify-end",t.class))},[ie(r.$slots,"default")],2))}}),Lh=TS,ES=Q({__name:"DialogHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>($(),me("div",{"data-slot":"dialog-header",class:Je(f(et)("wp:flex wp:flex-col wp:gap-2 wp:text-center wp:sm:text-left",t.class))},[ie(r.$slots,"default")],2))}}),Cc=ES,AS=Q({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Yr(qt(t,"class"));return(n,s)=>($(),U(f(xb),pe({"data-slot":"dialog-title"},f(r),{class:f(et)("wp:text-lg wp:leading-none wp:font-semibold",t.class)}),{default:k(()=>[ie(n.$slots,"default")]),_:3},16,["class"]))}}),xc=AS,IS=Q({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=Zr(e,t);return(n,s)=>($(),U(f(v2),pe({"data-slot":"select"},f(r)),{default:k(i=>[ie(n.$slots,"default",cr(er(i)))]),_:3},16))}}),Fh=IS,RS=Q({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Zr(qt(r,"class"),n);return(i,o)=>($(),U(f(D2),null,{default:k(()=>[H(f(T2),pe({"data-slot":"select-content"},{...i.$attrs,...f(s)},{class:f(et)("wp:bg-popover wp:text-popover-foreground wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:relative wp:z-50 wp:max-h-(--reka-select-content-available-height) wp:min-w-[8rem] wp:overflow-x-hidden wp:overflow-y-auto wp:rounded-md wp:border wp:shadow-md",e.position==="popper"&&"wp:data-[side=bottom]:translate-y-1 wp:data-[side=left]:-translate-x-1 wp:data-[side=right]:translate-x-1 wp:data-[side=top]:-translate-y-1",r.class)}),{default:k(()=>[H(f(MS)),H(f(q2),{class:Je(f(et)("wp:p-1",e.position==="popper"&&"wp:h-[var(--reka-select-trigger-height)] wp:w-full wp:min-w-[var(--reka-select-trigger-width)] wp:scroll-my-1"))},{default:k(()=>[ie(i.$slots,"default")]),_:3},8,["class"]),H(f(OS))]),_:3},16,["class"])]),_:3}))}}),Vh=RS,kS=Q({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),U(f(A2),pe({"data-slot":"select-group"},t),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),jh=kS,$S={class:"wp:absolute wp:right-2 wp:flex wp:size-3.5 wp:items-center wp:justify-center"},PS=Q({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Yr(qt(t,"class"));return(n,s)=>($(),U(f(k2),pe({"data-slot":"select-item"},f(r),{class:f(et)("wp:focus:bg-accent wp:focus:text-accent-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:relative wp:flex wp:w-full wp:cursor-default wp:items-center wp:gap-2 wp:rounded-sm wp:py-1.5 wp:pr-8 wp:pl-2 wp:text-sm wp:outline-hidden wp:select-none wp:data-[disabled]:pointer-events-none wp:data-[disabled]:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4 wp:*:[span]:last:flex wp:*:[span]:last:items-center wp:*:[span]:last:gap-2",t.class)}),{default:k(()=>[re("span",$S,[H(f($2),null,{default:k(()=>[ie(n.$slots,"indicator-icon",{},()=>[H(f(Hh),{class:"wp:size-4"})])]),_:3})]),H(f(P2),null,{default:k(()=>[ie(n.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),Uh=PS,DS=Q({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Yr(qt(t,"class"));return(n,s)=>($(),U(f(O2),pe({"data-slot":"select-scroll-down-button"},f(r),{class:f(et)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:k(()=>[ie(n.$slots,"default",{},()=>[H(f(Mh),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),OS=DS,HS=Q({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=Yr(qt(t,"class"));return(n,s)=>($(),U(f(H2),pe({"data-slot":"select-scroll-up-button"},f(r),{class:f(et)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:k(()=>[ie(n.$slots,"default",{},()=>[H(f(s_),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),MS=HS,NS=Q({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},size:{default:"default"}},setup(e){const t=e,r=Yr(qt(t,"class","size"));return(n,s)=>($(),U(f(M2),pe({"data-slot":"select-trigger","data-size":e.size},f(r),{class:f(et)("wp:border-input wp:data-[placeholder]:text-muted-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive wp:dark:bg-input/30 wp:dark:hover:bg-input/50 wp:flex wp:w-fit wp:items-center wp:justify-between wp:gap-2 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-2 wp:text-sm wp:whitespace-nowrap wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:data-[size=default]:h-9 wp:data-[size=sm]:h-8 wp:*:data-[slot=select-value]:line-clamp-1 wp:*:data-[slot=select-value]:flex wp:*:data-[slot=select-value]:items-center wp:*:data-[slot=select-value]:gap-2 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4",t.class)}),{default:k(()=>[ie(n.$slots,"default"),H(f(I2),{"as-child":""},{default:k(()=>[H(f(Mh),{class:"wp:size-4 wp:opacity-50"})]),_:1})]),_:3},16,["data-size","class"]))}}),zh=NS,qS=Q({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>($(),U(f(N2),pe({"data-slot":"select-value"},t),{default:k(()=>[ie(r.$slots,"default")]),_:3},16))}}),Kh=qS,BS=Q({__name:"Slider",props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,s=Zr(qt(r,"class"),n);return(i,o)=>($(),U(f(U1),pe({"data-slot":"slider",class:f(et)("wp:relative wp:flex wp:w-full wp:touch-none wp:items-center wp:select-none wp:data-[disabled]:opacity-50 wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:min-h-44 wp:data-[orientation=vertical]:w-auto wp:data-[orientation=vertical]:flex-col",r.class)},f(s)),{default:k(({modelValue:a})=>[H(f(G1),{"data-slot":"slider-track",class:"wp:bg-muted wp:relative wp:grow wp:overflow-hidden wp:rounded-full wp:data-[orientation=horizontal]:h-1.5 wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-1.5"},{default:k(()=>[H(f(z1),{"data-slot":"slider-range",class:"wp:bg-primary wp:absolute wp:data-[orientation=horizontal]:h-full wp:data-[orientation=vertical]:w-full"})]),_:1}),($(!0),me(Ne,null,Qt(a,(l,c)=>($(),U(f(W1),{key:c,"data-slot":"slider-thumb",class:"wp:bg-white wp:border-primary wp:ring-ring/50 wp:block wp:size-4 wp:shrink-0 wp:rounded-full wp:border wp:shadow-sm wp:transition-[color,box-shadow] wp:hover:ring-4 wp:focus-visible:ring-4 wp:focus-visible:outline-hidden wp:disabled:pointer-events-none wp:disabled:opacity-50"}))),128))]),_:1},16,["class"]))}}),Wh=BS,LS=Q({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=qt(t,"class");return(n,s)=>($(),U(f(J1),pe({"data-slot":"label"},f(r),{class:f(et)("wp:flex wp:items-center wp:gap-2 wp:text-sm wp:leading-none wp:font-medium wp:select-none wp:group-data-[disabled=true]:pointer-events-none wp:group-data-[disabled=true]:opacity-50 wp:peer-disabled:cursor-not-allowed wp:peer-disabled:opacity-50",t.class)}),{default:k(()=>[ie(n.$slots,"default")]),_:3},16,["class"]))}}),As=LS,FS=Q({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=qt(t,"class");return(n,s)=>($(),U(f(L2),pe({"data-slot":"separator"},f(r),{class:f(et)("wp:bg-border wp:shrink-0 wp:data-[orientation=horizontal]:h-px wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-px",t.class)}),null,16,["class"]))}}),VS=FS,jS={class:"wp:flex wp:flex-col wp:gap-6 wp:py-4"},US={class:"wp:flex wp:flex-col wp:gap-2"},zS={class:"wp:flex wp:flex-col wp:gap-2"},KS={class:"wp:flex wp:flex-col wp:gap-4"},WS={class:"wp:flex wp:justify-between"},GS={class:"wp:text-sm wp:text-muted-foreground"},JS={class:"wp:flex wp:flex-col wp:gap-4"},YS={class:"wp:flex wp:justify-between"},ZS={class:"wp:text-sm wp:text-muted-foreground"},XS={class:"wp:flex wp:flex-col wp:gap-3"},QS={class:"wp:grid wp:grid-cols-2 wp:gap-2 wp:text-sm"},eC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},tC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},rC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},nC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},sC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},iC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},oC=Q({__name:"AudioSettingsDialog",props:{visible:{type:Boolean}},emits:["update:visible"],setup(e,{emit:t}){const r=t,n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",{setVolume:s,setOutputDevice:i,setInputDevice:o,setNotificationVolume:a}=Rt("sip"),l=F([]),c=F([]),u=ko("webphone-input-device",""),d=ko("webphone-output-device",""),p=ko("webphone-volume",100),h=ko("webphone-notification-volume",100),m=async()=>{try{await navigator.mediaDevices.getUserMedia({audio:!0});const b=await navigator.mediaDevices.enumerateDevices();l.value=b.filter(P=>P.kind==="audioinput").map((P,g)=>({deviceId:P.deviceId,label:P.label||`Microphone ${g+1}`})),c.value=b.filter(P=>P.kind==="audiooutput").map((P,g)=>({deviceId:P.deviceId,label:P.label||`Speaker ${g+1}`}));const _=l.value.some(P=>P.deviceId===u.value);(!u.value||!_)&&l.value.length>0&&(u.value=l.value[0]?.deviceId??"");const A=c.value.some(P=>P.deviceId===d.value);(!d.value||!A)&&c.value.length>0&&(d.value=c.value[0]?.deviceId??""),u.value&&o(u.value),d.value&&i(d.value)}catch(b){console.error("Error loading devices",b)}},y=b=>{const _=String(b);u.value=_,o(_)},T=b=>{const _=String(b);d.value=_,i(_)},v=(b,_=35)=>b.length<=_?b:b.substring(0,_)+"...",x=V({get:()=>[p.value],set:b=>{p.value=b[0],s(p.value)}}),w=V({get:()=>[h.value],set:b=>{h.value=b[0],a(h.value)}});return ze(()=>{m(),s(p.value),a(h.value)}),(b,_)=>e.visible?($(),U(f(_c),{key:0,open:e.visible,"onUpdate:open":_[5]||(_[5]=A=>r("update:visible",A))},{default:k(()=>[H(f(Sc),{class:"wp:sm:max-w-sm"},{default:k(()=>[H(f(Cc),null,{default:k(()=>[H(f(xc),null,{default:k(()=>[..._[6]||(_[6]=[Oe("Audio Settings",-1)])]),_:1})]),_:1}),re("div",jS,[re("div",US,[H(f(As),null,{default:k(()=>[..._[7]||(_[7]=[Oe("Microphone",-1)])]),_:1}),H(f(Fh),{modelValue:f(u),"onUpdate:modelValue":[_[0]||(_[0]=A=>We(u)?u.value=A:null),y]},{default:k(()=>[H(f(zh),{class:"wp:w-full"},{default:k(()=>[H(f(Kh),{placeholder:"Select Microphone"})]),_:1}),H(f(Vh),null,{default:k(()=>[H(f(jh),null,{default:k(()=>[($(!0),me(Ne,null,Qt(l.value,A=>($(),U(f(Uh),{key:A.deviceId,value:A.deviceId,title:A.label},{default:k(()=>[Oe(Pe(v(A.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),re("div",zS,[H(f(As),null,{default:k(()=>[..._[8]||(_[8]=[Oe("Speaker",-1)])]),_:1}),H(f(Fh),{modelValue:f(d),"onUpdate:modelValue":[_[1]||(_[1]=A=>We(d)?d.value=A:null),T]},{default:k(()=>[H(f(zh),{class:"wp:w-full"},{default:k(()=>[H(f(Kh),{placeholder:"Select Speaker"})]),_:1}),H(f(Vh),null,{default:k(()=>[H(f(jh),null,{default:k(()=>[($(!0),me(Ne,null,Qt(c.value,A=>($(),U(f(Uh),{key:A.deviceId,value:A.deviceId,title:A.label},{default:k(()=>[Oe(Pe(v(A.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),re("div",KS,[re("div",WS,[H(f(As),null,{default:k(()=>[..._[9]||(_[9]=[Oe("Media Volume",-1)])]),_:1}),re("span",GS,Pe(f(p))+"%",1)]),H(f(Wh),{modelValue:x.value,"onUpdate:modelValue":_[2]||(_[2]=A=>x.value=A),max:100,step:1},null,8,["modelValue"])]),re("div",JS,[re("div",YS,[H(f(As),null,{default:k(()=>[..._[10]||(_[10]=[Oe("Notification Volume",-1)])]),_:1}),re("span",ZS,Pe(f(h))+"%",1)]),H(f(Wh),{modelValue:w.value,"onUpdate:modelValue":_[3]||(_[3]=A=>w.value=A),max:100,step:1},null,8,["modelValue"])]),H(f(VS)),re("div",XS,[H(f(As),{class:"wp:text-base"},{default:k(()=>[..._[11]||(_[11]=[Oe("Atajos de teclado",-1)])]),_:1}),re("div",QS,[re("div",eC,[_[12]||(_[12]=re("span",{class:"wp:text-muted-foreground"},"Historial",-1)),H(f(rn),null,{default:k(()=>[Oe(Pe(f(n))+"H",1)]),_:1})]),re("div",tC,[_[13]||(_[13]=re("span",{class:"wp:text-muted-foreground"},"Configuración",-1)),H(f(rn),null,{default:k(()=>[Oe(Pe(f(n))+",",1)]),_:1})]),re("div",rC,[_[14]||(_[14]=re("span",{class:"wp:text-muted-foreground"},"Teclado",-1)),H(f(rn),null,{default:k(()=>[Oe(Pe(f(n))+"K",1)]),_:1})]),re("div",nC,[_[15]||(_[15]=re("span",{class:"wp:text-muted-foreground"},"Línea 1",-1)),H(f(rn),null,{default:k(()=>[Oe(Pe(f(n))+"1",1)]),_:1})]),re("div",sC,[_[16]||(_[16]=re("span",{class:"wp:text-muted-foreground"},"Línea 2",-1)),H(f(rn),null,{default:k(()=>[Oe(Pe(f(n))+"2",1)]),_:1})]),re("div",iC,[_[17]||(_[17]=re("span",{class:"wp:text-muted-foreground"},"Línea 3",-1)),H(f(rn),null,{default:k(()=>[Oe(Pe(f(n))+"3",1)]),_:1})])])])]),H(f(Lh),null,{default:k(()=>[H(f(tt),{variant:"secondary",onClick:_[4]||(_[4]=A=>r("update:visible",!1))},{default:k(()=>[..._[18]||(_[18]=[Oe("Close",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):ke("",!0)}}),aC=oC,lC=Q({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=qt(t,"class");return(n,s)=>($(),U(f(l2),pe({"data-slot":"scroll-area-scrollbar"},f(r),{class:f(et)("wp:flex wp:touch-none wp:p-px wp:transition-colors wp:select-none",e.orientation==="vertical"&&"wp:h-full wp:w-2.5 wp:border-l wp:border-l-transparent",e.orientation==="horizontal"&&"wp:h-2.5 wp:flex-col wp:border-t wp:border-t-transparent",t.class)}),{default:k(()=>[H(f(u2),{"data-slot":"scroll-area-thumb",class:"wp:bg-border wp:relative wp:flex-1 wp:rounded-full"})]),_:1},16,["class"]))}}),cC=lC,uC=Q({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=qt(t,"class");return(n,s)=>($(),U(f(Z1),pe({"data-slot":"scroll-area"},f(r),{class:f(et)("wp:relative",t.class)}),{default:k(()=>[H(f(d2),{"data-slot":"scroll-area-viewport",class:"wp:focus-visible:ring-ring/50 wp:size-full wp:rounded-[inherit] wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:focus-visible:outline-1"},{default:k(()=>[ie(n.$slots,"default")]),_:3}),H(cC),H(f(Q1))]),_:3},16,["class"]))}}),Gh=uC,dC={class:"wp:relative wp:my-2"},fC={class:"wp:flex wp:flex-col wp:gap-2"},pC=["onClick"],hC={class:"wp:flex wp:items-center wp:gap-3"},gC={class:"wp:flex wp:flex-col"},vC={class:"wp:text-sm wp:font-medium"},mC={class:"wp:text-[10px] wp:text-muted-foreground"},wC={class:"wp:flex wp:flex-col wp:items-end"},yC={key:0,class:"wp:text-xs wp:font-mono wp:text-muted-foreground"},bC={class:"wp:text-[10px] wp:text-muted-foreground wp:capitalize"},_C={key:0,class:"wp:text-center wp:text-muted-foreground wp:py-8"},SC={key:1,class:"wp:text-center wp:text-muted-foreground wp:py-8"},CC=Q({__name:"CallHistoryDialog",props:{visible:{type:Boolean},contacts:{}},emits:["update:visible","call"],setup(e,{emit:t}){const r=e,n=t,s=Rt("webphone"),i=F(""),o=p=>{if(!r.contacts)return p;const h=r.contacts.find(m=>m.number===p);return h?h.name:p},a=V(()=>{if(!i.value)return s.callHistory;const p=i.value.toLowerCase();return s.callHistory.filter(h=>{const m=o(h.number).toLowerCase(),y=h.number.toLowerCase();return m.includes(p)||y.includes(p)})}),l=p=>p===0?"":`${Math.floor(p/60)}:${(p%60).toString().padStart(2,"0")}`,c=p=>p.direction==="incoming"?p.status==="missed"?c_:l_:u_,u=p=>p.status==="missed"?"wp:text-red-500":p.direction==="incoming"?"wp:text-green-500":"wp:text-blue-500",d=p=>{n("update:visible",!1),n("call",p)};return(p,h)=>e.visible?($(),U(f(_c),{key:0,open:e.visible,"onUpdate:open":h[1]||(h[1]=m=>n("update:visible",m))},{default:k(()=>[H(f(Sc),{class:"wp:sm:max-w-sm"},{default:k(()=>[H(f(Cc),null,{default:k(()=>[H(f(xc),null,{default:k(()=>[...h[2]||(h[2]=[Oe("Call History",-1)])]),_:1})]),_:1}),re("div",dC,[H(f(p_),{class:"wp:absolute wp:left-2 wp:top-2.5 wp:h-4 wp:w-4 wp:text-muted-foreground"}),H(f(bi),{modelValue:i.value,"onUpdate:modelValue":h[0]||(h[0]=m=>i.value=m),placeholder:"Search history...",class:"wp:pl-8"},null,8,["modelValue"])]),H(f(Gh),{class:"wp:h-[60vh] wp:pr-4"},{default:k(()=>[re("div",fC,[($(!0),me(Ne,null,Qt(a.value,m=>($(),me("div",{key:m.id,class:"wp:flex wp:items-center wp:justify-between wp:p-2 wp:rounded-lg wp:hover:bg-accent wp:cursor-pointer wp:transition-colors",onClick:y=>d(m.number)},[re("div",hC,[($(),U(Gs(c(m)),{class:Je([u(m),"wp:w-4 wp:h-4"])},null,8,["class"])),re("div",gC,[re("span",vC,Pe(o(m.number)),1),re("span",mC,Pe(new Date(m.startTime).toLocaleString()),1)])]),re("div",wC,[m.duration>0?($(),me("span",yC,Pe(l(m.duration)),1)):ke("",!0),re("span",bC,Pe(m.status),1)])],8,pC))),128)),f(s).callHistory.length===0?($(),me("div",_C," No call history ")):a.value.length===0?($(),me("div",SC," No results found ")):ke("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):ke("",!0)}}),xC=CC,TC={class:"wp:grid wp:gap-4 wp:py-4"},EC={class:"wp:grid wp:gap-2 wp:relative"},AC={class:"wp:relative"},IC={key:0,class:"wp:absolute wp:top-full wp:left-0 wp:right-0 wp:mt-1 wp:bg-popover wp:border wp:rounded-md wp:shadow-lg wp:z-50 wp:max-h-60 wp:overflow-auto"},RC={class:"wp:p-1"},kC=["onClick"],$C={class:"wp:flex wp:flex-col wp:min-w-0 wp:flex-1"},PC={class:"wp:font-medium wp:text-sm wp:truncate"},DC={class:"wp:text-xs wp:text-muted-foreground"},OC=Q({__name:"TransferDialog",props:{visible:{type:Boolean},contacts:{default:()=>[]}},emits:["update:visible","transfer"],setup(e,{emit:t}){const r=e,n=t,s=F(""),i=F(!1),o=F(null);Ae(()=>r.visible,p=>{p&&(s.value="",i.value=!1)}),Ae(s,p=>{i.value=p.length>0&&a.value.length>0});const a=V(()=>{if(!s.value)return r.contacts;const p=s.value.toLowerCase();return r.contacts.filter(h=>h.name.toLowerCase().includes(p)||h.number.includes(p))}),l=p=>{s.value=p.number,i.value=!1},c=()=>{s.value="",i.value=!1,o.value?.focus()},u=p=>{const h=s.value.trim();h&&(n("transfer",h,p),n("update:visible",!1),s.value="",i.value=!1)},d=p=>{p.key==="Enter"&&s.value.trim()?(p.preventDefault(),u("blind")):p.key==="Escape"&&(i.value=!1)};return(p,h)=>e.visible?($(),U(f(_c),{key:0,open:e.visible,"onUpdate:open":h[5]||(h[5]=m=>n("update:visible",m))},{default:k(()=>[H(f(Sc),{class:"wp:sm:max-w-md"},{default:k(()=>[H(f(Cc),null,{default:k(()=>[H(f(xc),null,{default:k(()=>[...h[6]||(h[6]=[Oe("Transferir Llamada",-1)])]),_:1})]),_:1}),re("div",TC,[re("div",EC,[H(f(As),{for:"transfer-input"},{default:k(()=>[...h[7]||(h[7]=[Oe("Número o Contacto",-1)])]),_:1}),re("div",AC,[H(f(bi),{id:"transfer-input",ref_key:"inputRef",ref:o,modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=m=>s.value=m),type:"text",placeholder:"Escribe un número o busca un contacto...",class:"wp:pr-8",onKeydown:d,onFocus:h[1]||(h[1]=m=>i.value=s.value.length>0&&a.value.length>0),autocomplete:"off"},null,8,["modelValue"]),s.value?($(),U(f(tt),{key:0,variant:"ghost",size:"icon",class:"wp:absolute wp:right-0 wp:top-0 wp:h-full wp:w-8 wp:hover:bg-transparent",onClick:c},{default:k(()=>[H(f(gc),{class:"wp:h-4 wp:w-4"})]),_:1})):ke("",!0)]),i.value&&a.value.length>0?($(),me("div",IC,[H(f(Gh),{class:"wp:max-h-60"},{default:k(()=>[re("div",RC,[($(!0),me(Ne,null,Qt(a.value,m=>($(),me("div",{key:m.number,class:"wp:flex wp:items-center wp:gap-2 wp:p-2 wp:rounded-sm wp:cursor-pointer wp:hover:bg-accent wp:transition-colors",onClick:y=>l(m)},[m.type?($(),me("div",{key:0,class:Je(f(et)("wp:flex wp:items-center wp:justify-center wp:w-8 wp:h-8 wp:rounded-full wp:shrink-0",m.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":m.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":m.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400"))},[m.type==="extension"?($(),U(f(Oh),{key:0,class:"wp:w-4 wp:h-4"})):m.type==="contact"?($(),U(f(hc),{key:1,class:"wp:w-4 wp:h-4"})):m.type==="voicemail"?($(),U(f(qh),{key:2,class:"wp:w-4 wp:h-4"})):($(),U(f(Bh),{key:3,class:"wp:w-4 wp:h-4"}))],2)):ke("",!0),re("div",$C,[re("span",PC,Pe(m.name),1),re("span",DC,Pe(m.number),1)])],8,kC))),128))])]),_:1})])):ke("",!0),h[8]||(h[8]=re("p",{class:"wp:text-xs wp:text-muted-foreground"}," Presiona Enter para transferir directamente ",-1))])]),H(f(Lh),{class:"wp:flex-col wp:gap-2 sm:wp:flex-row"},{default:k(()=>[H(f(tt),{variant:"secondary",onClick:h[2]||(h[2]=m=>n("update:visible",!1)),class:"wp:w-full sm:wp:w-auto"},{default:k(()=>[...h[9]||(h[9]=[Oe(" Cancelar ",-1)])]),_:1}),H(f(tt),{onClick:h[3]||(h[3]=m=>u("blind")),disabled:!s.value.trim(),variant:"outline",class:"wp:w-full sm:wp:flex-1"},{default:k(()=>[...h[10]||(h[10]=[Oe(" Transferencia Ciega ",-1)])]),_:1},8,["disabled"]),H(f(tt),{onClick:h[4]||(h[4]=m=>u("attended")),disabled:!s.value.trim(),class:"wp:w-full sm:wp:flex-1"},{default:k(()=>[...h[11]||(h[11]=[Oe(" Con Consulta ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"])):ke("",!0)}}),HC=OC,MC=Q({__name:"DocumentPip",props:{remoteStream:{},localStream:{},hasVideo:{type:Boolean},remoteNumber:{},isConnected:{type:Boolean},callStatus:{},isMuted:{type:Boolean},isHeld:{type:Boolean},destination:{},isVideo:{type:Boolean},active:{type:Boolean},autoOpenOnBlur:{type:Boolean}},emits:["transfer","update:active","hangup","answer","toggleMute","toggleHold"],setup(e,{expose:t,emit:r}){const n=e,s=r,i=F(!1),o=F(!1),a=F(!1),l=F(null),c=F(0),u=F(null);let d=null,p=null;ze(()=>{i.value="documentPictureInPicture"in window,document.addEventListener("visibilitychange",y),window.addEventListener("blur",T)}),kt(()=>{document.removeEventListener("visibilitychange",y),window.removeEventListener("blur",T),p&&(clearTimeout(p),p=null),x(),W()});const h=()=>{const G=n.callStatus!=="idle",le=document.hidden||!document.hasFocus();return n.autoOpenOnBlur!==!1&&G&&i.value&&le&&!o.value&&!a.value},m=()=>{h()&&(p&&clearTimeout(p),p=setTimeout(()=>{h()&&te()},120))},y=()=>{m()},T=()=>{m()},v=()=>{u.value||(c.value=0,u.value=setInterval(()=>{c.value++},1e3))},x=()=>{u.value&&(clearInterval(u.value),u.value=null)},w=G=>{const le=Math.floor(G/60),K=G%60;return`${le.toString().padStart(2,"0")}:${K.toString().padStart(2,"0")}`};Ae(()=>n.callStatus,(G,le)=>{G==="connected"&&le!=="connected"?v():G==="idle"&&le!=="idle"&&(x(),o.value&&W())},{immediate:!0}),Ae(()=>n.isConnected,G=>{!G&&o.value&&(x(),W())}),Ae(()=>[n.callStatus,n.isMuted,n.isHeld],()=>{l.value&&(S(l.value.document),D(l.value.document))});const b=V(()=>i.value&&n.isConnected),_={phone:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>',phoneOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" transform="rotate(135 12 12)"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',mic:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',micOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="2" x2="22" y1="2" y2="22"/><path d="M18.89 13.23A7.12 7.12 0 0 0 19 12v-2"/><path d="M5 10v2a7 7 0 0 0 12 5"/><path d="M15 9.34V5a3 3 0 0 0-5.68-1.33"/><path d="M9 9v3a3 3 0 0 0 5.12 2.12"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',pause:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="14" y="4" width="4" height="16" rx="1"/><rect x="6" y="4" width="4" height="16" rx="1"/></svg>',play:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3"/></svg>',transfer:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 3 4 4-4 4"/><path d="M20 7H4"/><path d="m8 21-4-4 4-4"/><path d="M4 17h16"/></svg>',video:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'},A=G=>{const le=G.createElement("style");le.textContent=`
|
|
77
77
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
78
78
|
|
|
79
79
|
body {
|
|
@@ -279,7 +279,7 @@ Duration=160`,contentType:"application/dtmf-relay",contentDisposition:"signal"}}
|
|
|
279
279
|
0%, 100% { opacity: 1; }
|
|
280
280
|
50% { opacity: 0.7; }
|
|
281
281
|
}
|
|
282
|
-
`,
|
|
282
|
+
`,G.head.appendChild(le)},P=()=>{switch(n.callStatus){case"calling":return"Llamando...";case"incoming":return"Entrante";case"connected":return n.isHeld?"En espera":"En llamada";case"held":return"En espera";default:return""}},g=()=>{switch(n.callStatus){case"calling":return"pip-status-calling";case"incoming":return"pip-status-incoming";case"connected":return n.isHeld?"pip-status-held":"pip-status-connected";case"held":return"pip-status-held";default:return""}},D=G=>{const le=G.querySelector(".pip-status-text");le&&(le.textContent=P(),le.className=`pip-status-text ${g()}`)},O=G=>{const le=G.createElement("div");return le.className="pip-wrapper",n.hasVideo?le.innerHTML=`
|
|
283
283
|
<div class="pip-video-area">
|
|
284
284
|
<video id="pip-remote-video" autoplay playsinline></video>
|
|
285
285
|
<div class="pip-local-container">
|
|
@@ -287,15 +287,15 @@ Duration=160`,contentType:"application/dtmf-relay",contentDisposition:"signal"}}
|
|
|
287
287
|
</div>
|
|
288
288
|
<div class="pip-overlay">
|
|
289
289
|
<span class="pip-name">${n.remoteNumber||"Llamada"}</span>
|
|
290
|
-
<span id="pip-timer" class="pip-timer">${
|
|
290
|
+
<span id="pip-timer" class="pip-timer">${w(c.value)}</span>
|
|
291
291
|
</div>
|
|
292
292
|
</div>
|
|
293
293
|
<div class="pip-actions" id="pip-actions"></div>
|
|
294
|
-
`:
|
|
294
|
+
`:le.innerHTML=`
|
|
295
295
|
<div class="pip-audio-area">
|
|
296
296
|
<div class="pip-caller-name">${n.remoteNumber||"Llamada"}</div>
|
|
297
|
-
<div class="pip-status-text ${
|
|
298
|
-
<div class="pip-duration" id="pip-timer">${
|
|
297
|
+
<div class="pip-status-text ${g()}">${P()}</div>
|
|
298
|
+
<div class="pip-duration" id="pip-timer">${w(c.value)}</div>
|
|
299
299
|
</div>
|
|
300
300
|
<div class="pip-actions" id="pip-actions"></div>
|
|
301
|
-
`,ie},x=J=>{const ie=J.getElementById("pip-actions");if(ie){if(ie.innerHTML="",n.callStatus==="incoming"){if(n.hasVideo){const de=J.createElement("button");de.className="pip-btn pip-btn-video",de.title="Contestar con Video",de.innerHTML=_.video,de.onclick=()=>s("answer",!0),ie.appendChild(de)}const K=J.createElement("button");K.className="pip-btn pip-btn-answer",K.title="Contestar",K.innerHTML=_.phone,K.onclick=()=>s("answer",!1),ie.appendChild(K);const ne=J.createElement("button");ne.className="pip-btn pip-btn-hangup",ne.title="Rechazar",ne.innerHTML=_.phoneOff,ne.onclick=()=>{s("hangup"),W()},ie.appendChild(ne)}else if(n.callStatus==="connected"){const K=J.createElement("button");K.className=`pip-btn pip-btn-mute ${n.isMuted?"active":""}`,K.title=n.isMuted?"Activar micrófono":"Silenciar",K.innerHTML=n.isMuted?_.micOff:_.mic,K.onclick=()=>s("toggleMute"),ie.appendChild(K);const ne=J.createElement("button");ne.className=`pip-btn pip-btn-hold ${n.isHeld?"active":""}`,ne.title=n.isHeld?"Reanudar":"Pausar",ne.innerHTML=n.isHeld?_.play:_.pause,ne.onclick=()=>s("toggleHold"),ie.appendChild(ne);const de=J.createElement("button");de.className="pip-btn pip-btn-transfer",de.title="Transferir",de.innerHTML=_.transfer,de.onclick=()=>s("transfer"),ie.appendChild(de);const xe=J.createElement("button");xe.className="pip-btn pip-btn-hangup",xe.title="Colgar",xe.innerHTML=_.phoneOff,xe.onclick=()=>{s("hangup"),W()},ie.appendChild(xe)}else if(n.callStatus==="calling"){const K=J.createElement("button");K.className="pip-btn pip-btn-hangup",K.title="Cancelar",K.innerHTML=_.phoneOff,K.onclick=()=>{s("hangup"),W()},ie.appendChild(K)}}},E=J=>{setTimeout(()=>{const ie=J.getElementById("pip-remote-video"),K=J.getElementById("pip-local-video");ie&&n.remoteStream&&(ie.srcObject=n.remoteStream,ie.play().catch(()=>{})),K&&n.localStream&&(K.srcObject=n.localStream,K.play().catch(()=>{}))},50)},A=J=>{const ie=J.getElementById("pip-timer");ie&&(d=setInterval(()=>{ie.textContent=y(c.value)},1e3))},Y=()=>{d&&(clearInterval(d),d=null)},Q=async()=>{if(!(!i.value||o.value||a.value)){a.value=!0;try{const J=n.hasVideo?340:280,ie=n.hasVideo?280:200,K=await window.documentPictureInPicture.requestWindow({width:J,height:ie,preferInitialWindowPlacement:!0});l.value=K,o.value=!0,s("update:active",!0),k(K.document);const ne=P(K.document);K.document.body.appendChild(ne),n.hasVideo&&E(K.document),x(K.document),A(K.document),K.addEventListener("pagehide",()=>{Y(),o.value=!1,l.value=null,s("update:active",!1)})}catch(J){console.error("[DocumentPip] Error:",J)}finally{a.value=!1}}},W=()=>{Y(),l.value&&(l.value.close(),l.value=null,o.value=!1,s("update:active",!1))};return t({open:Q,close:W,toggle:()=>{o.value?W():Q()},isActive:o,isSupported:i,canUsePip:m}),(J,ie)=>te(J.$slots,"default")}}),qC=MC,NC=["data-mode","data-call-status","data-network-status"],BC={key:0,class:"webphone__video-area wp:relative wp:w-full wp:aspect-video wp:bg-black"},LC={class:"webphone__video-local-frame wp:absolute wp:bottom-2 wp:right-2 wp:w-24 wp:aspect-video wp:bg-neutral-800 wp:rounded wp:overflow-hidden wp:border wp:border-white/20 wp:shadow-lg"},FC={class:"webphone__body wp:flex wp:flex-col wp:gap-1 wp:space-y-2"},VC={key:0,class:"webphone__channel-switcher-wrap wp:flex wp:flex-col wp:items-center wp:justify-center wp:py-3 wp:px-4 wp:gap-2"},jC={role:"radiogroup","aria-label":"Canales",class:"webphone__channel-switcher wp:w-full wp:max-w-[330px] wp:flex wp:items-center wp:justify-between wp:gap-1"},UC={class:"wp:flex wp:gap-1"},zC=["aria-checked","disabled","title","data-channel-id","data-state","data-call-state","onClick"],KC={class:"webphone__display wp:py-1"},WC=["data-visible"],GC={key:1,class:"webphone__offline-overlay wp:absolute wp:inset-0 wp:z-40 wp:flex wp:items-center wp:justify-center wp:bg-white/70 wp:dark:bg-neutral-900/70 wp:backdrop-blur-[1px] wp:px-6 wp:text-center"},JC={key:2,class:"webphone__footer wp:flex wp:flex-col wp:items-center wp:p-2 wp:gap-0"},YC=X({__name:"WebPhone",props:{host:{},wsUrl:{},extension:{},password:{},to:{},mode:{default:"call"},logo:{},contacts:{default:()=>[]},position:{default:()=>({})},enablePictureInPicture:{type:Boolean,default:!0}},setup(e){const t=new Map,r=e,n=V(()=>{if(r.wsUrl)return r.wsUrl;if(r.host)return`wss://${r.host}/ws`}),s=V(()=>!n.value||!r.extension?"":`${n.value}::${r.extension}`),i=s.value?t.get(s.value):void 0,o=y0({server:n.value,extension:r.extension,initialConnected:i}),a=Mr(o),l=Jw(o),{initUserAgent:c,switchChannel:u,remoteStream:d,localStream:p}=l;as("webphone",a),as("sip",l),Qe(()=>{r.mode==="webcall"&&(r.to||console.error('WebPhone: "to" prop is required when mode is "webcall"'),r.logo||console.error('WebPhone: "logo" prop is required when mode is "webcall"'))});const g=F(!1),w=F(!1),b=F(!1),C=F(null),v=F(null),S=F(null),y=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",m=V(()=>r.mode==="webcall"),_=F(0),k=D=>!!D&&D.getVideoTracks().length>0;ke(()=>a.callStatus,D=>{if(D==="idle"&&!a.isKeypadVisible){a.toggleKeypad();return}D!=="idle"&&a.isKeypadVisible&&a.toggleKeypad()});const M=V(()=>a.channels.find(D=>D.id===a.activeChannelId)??null),h=V(()=>(_.value,!!M.value?.hasVideo||k(d.value)||k(p.value))),{isOnline:O}=My(),P=V(()=>!O.value),x=F(null),E=F(!1),A=V(()=>r.enablePictureInPicture),Y=()=>{A.value&&x.value?.toggle()},Q=async(D,q)=>{try{q==="blind"?await l.transferCall(D):await l.startAttendedTransfer(D)}catch(N){console.error("[WebPhone] Transfer error:",N),alert(N instanceof Error?N.message:"Transfer failed. Please try again.")}},W=async()=>{try{await l.completeAttendedTransfer()}catch(D){console.error("[WebPhone] Complete transfer error:",D),alert(D instanceof Error?D.message:"Failed to complete transfer.")}},Z=async()=>{try{await l.cancelAttendedTransfer()}catch(D){console.error("[WebPhone] Cancel transfer error:",D),alert(D instanceof Error?D.message:"Failed to cancel transfer.")}},J=D=>{a.keypadValue=D,l.makeCall(D)},ie=D=>{l.answerCall(D)},K=()=>{if(!A.value)return!1;const D=a.callStatus!=="idle",q=document.hidden||!document.hasFocus();return D&&q&&!E.value},ne=()=>{window.setTimeout(()=>{K()&&x.value?.open()},150)};Qe(()=>{v.value&&(E.value||!d.value?v.value.srcObject=null:v.value.srcObject=d.value),S.value&&(E.value||!p.value?S.value.srcObject=null:S.value.srcObject=p.value)});const de=D=>{if(!D||typeof D.addEventListener!="function"||typeof D.removeEventListener!="function")return()=>{};const q=()=>{_.value+=1};return D.addEventListener("addtrack",q),D.addEventListener("removetrack",q),()=>{D.removeEventListener("addtrack",q),D.removeEventListener("removetrack",q)}};ke(d,(D,q,N)=>{_.value+=1,N(de(D))},{immediate:!0}),ke(p,(D,q,N)=>{_.value+=1,N(de(D))},{immediate:!0});const xe=["button","a","input","textarea","select","label","video",'[role="button"]','[role="radio"]',"[data-no-drag]"].join(", "),Oe=()=>{const D=window.innerWidth<640,q=window.innerWidth<1024;let N=360;return D?N=window.innerWidth*.9:q&&(N=340),{x:Math.max(0,(window.innerWidth-N)/2),y:D?30:80}},{x:_e,y:Se,style:z}=Hy(C,{initialValue:V(()=>{const D=Oe();return{x:r.position.x??D.x,y:r.position.y??D.y}}).value,preventDefault:!0,onStart:(D,q)=>{const N=q.target;if(N instanceof HTMLElement&&N.closest(xe))return!1}});ke(()=>r.position,D=>{const q=Oe();_e.value=D.x??q.x,Se.value=D.y??q.y},{deep:!0});const se=[{label:"Canal 1",value:0},{label:"Canal 2",value:1},{label:"Canal 3",value:2}],G=F(!1),oe=V({get:()=>a.activeChannelId.toString(),set:async D=>{if(!P.value&&D&&!G.value){G.value=!0;try{await u(parseInt(D))}finally{G.value=!1}}}}),ae=D=>{const q=a.channels.find(N=>N.id===D);return q?q.status==="connected"||q.status==="calling"||q.status==="incoming":!1},Te=D=>{P.value||(oe.value=D.toString())},T=D=>{if(!P.value&&((D.metaKey||D.ctrlKey)&&D.key.toLowerCase()==="h"&&(D.preventDefault(),w.value=!0),(D.metaKey||D.ctrlKey)&&D.key===","&&(D.preventDefault(),g.value=!0),(D.metaKey||D.ctrlKey)&&D.key.toLowerCase()==="k"&&(D.preventDefault(),a.toggleKeypad()),(D.metaKey||D.ctrlKey)&&["1","2","3"].includes(D.key))){D.preventDefault();const q=parseInt(D.key)-1;G.value||(G.value=!0,u(q).finally(()=>{G.value=!1}))}};ke(()=>a.callStatus,()=>{K()&&ne()}),ke(()=>a.isConnected,D=>{s.value&&t.set(s.value,D)},{immediate:!0}),ke(A,D=>{!D&&E.value&&x.value?.close()});const I=F(!1),B=async()=>{I.value||P.value||!r.host||!r.extension||!r.password||(await c({uri:`sip:${r.extension}@${r.host}`,transportOptions:{server:n.value},authorizationUsername:r.extension,authorizationPassword:r.password}),l.extension.value&&(I.value=!0,r.mode==="webcall"&&r.to&&l.makeCall(r.to)))};return Ke(async()=>{window.addEventListener("keydown",T),document.addEventListener("visibilitychange",ne),window.addEventListener("blur",ne),window.addEventListener("pagehide",ne),!(r.mode==="webcall"&&(!r.to||!r.logo))&&await B()}),ke(()=>O.value,async D=>{D&&await B()}),Rt(()=>{window.removeEventListener("keydown",T),document.removeEventListener("visibilitychange",ne),window.removeEventListener("blur",ne),window.removeEventListener("pagehide",ne)}),(D,q)=>($(),me(Be,null,[ee("div",{ref_key:"phoneRef",ref:C,style:dt(f(z)),class:Ye(["webphone webphone-container wp:bg-white wp:dark:bg-neutral-800 wp:rounded-2xl wp:shadow-sm wp:inset-shadow-2xs wp:w-[min(92vw,330px)] wp:fixed wp:z-50 wp:select-none wp:[&_button]:cursor-pointer wp:**:[[role=button]]:cursor-pointer",P.value?"wp:opacity-70":""]),"data-mode":r.mode,"data-call-status":a.callStatus,"data-network-status":P.value?"offline":"online"},[h.value&&!E.value?($(),me("div",BC,[ee("video",{ref_key:"remoteVideoRef",ref:v,autoplay:"",playsinline:"",class:"webphone__video-remote wp:w-full wp:h-full wp:object-cover"},null,512),ee("div",LC,[ee("video",{ref_key:"localVideoRef",ref:S,autoplay:"",playsinline:"",muted:"",class:"webphone__video-local wp:w-full wp:h-full wp:object-cover"},null,512)])])):Pe("",!0),ee("div",FC,[m.value?Pe("",!0):($(),me("div",VC,[ee("div",jC,[ee("div",UC,[($(),me(Be,null,Qt(se,N=>ee("button",{key:N.value,type:"button",role:"radio","aria-checked":oe.value===N.value.toString(),disabled:P.value,title:`${N.label} (${f(y)}${N.value+1})`,class:Ye(["webphone__channel-button wp:flex wp:items-center wp:gap-1 wp:px-2 wp:py-2 wp:rounded-lg wp:transition-colors wp:duration-200 wp:outline-none wp:focus-visible:ring-2 wp:focus-visible:ring-[var(--p-primary-color)] wp:focus-visible:ring-offset-2 wp:focus-visible:ring-offset-white wp:dark:focus-visible:ring-offset-neutral-900",ae(N.value)?"wp:bg-[var(--color-red)]/12 hover:wp:bg-[var(--color-red)]/18":oe.value===N.value.toString()?"wp:bg-[var(--p-primary-color)]/12":"wp:hover:bg-neutral-100 wp:dark:hover:bg-neutral-800/80"]),"data-channel-id":N.value,"data-state":oe.value===N.value.toString()?"active":"idle","data-call-state":ae(N.value)?"busy":"available",onClick:ce=>Te(N.value)},[H(f(bc),{class:Ye(["webphone__channel-icon wp:size-3 wp:shrink-0",ae(N.value)?"wp:text-[var(--color-red)]":oe.value===N.value.toString()?"wp:text-[var(--p-primary-color)]":"wp:text-neutral-400"]),"stroke-width":1.8},null,8,["class"]),ee("span",{class:Ye(["webphone__channel-label wp:text-[12px] wp:leading-none ibrand",ae(N.value)?"wp:text-[var(--color-red)]":oe.value===N.value.toString()?"wp:text-[var(--p-primary-color)]":"wp:text-neutral-500 wp:dark:text-neutral-400"])},He(N.label),3)],10,zC)),64))]),H(f(Zo),null,{default:R(()=>[H(f(Jo),null,{default:R(()=>[H(f(Xo),{"as-child":""},{default:R(()=>[H(f(rt),{variant:"ghost",size:"icon",class:Ye(["wp:h-8 wp:w-8 wp:rounded-full",E.value?"wp:text-primary":""]),title:"Picture-in-Picture",onClick:Y},{default:R(()=>[H(f(d_),{class:"wp:w-4 wp:h-4 wp:text-[var(--color-settings)]"})]),_:1},8,["class"])]),_:1}),H(f(Yo),{class:"wp:flex wp:items-center wp:gap-2"},{default:R(()=>[...q[10]||(q[10]=[ee("span",null,"Picture-in-Picture",-1)])]),_:1})]),_:1})]),_:1}),H(f(Zo),null,{default:R(()=>[H(f(Jo),null,{default:R(()=>[H(f(Xo),{"as-child":""},{default:R(()=>[H(f(rt),{variant:"ghost",size:"icon",class:"wp:h-8 wp:w-8 wp:rounded-full",onClick:q[0]||(q[0]=N=>g.value=!0)},{default:R(()=>[H(f(h_),{class:"wp:w-4 wp:h-4 wp:text-[var(--color-settings)]"})]),_:1})]),_:1}),H(f(Yo),{class:"wp:flex wp:items-center wp:gap-2"},{default:R(()=>[q[11]||(q[11]=ee("span",null,"Configuración",-1)),H(f(rn),null,{default:R(()=>[Me(He(f(y))+",",1)]),_:1})]),_:1})]),_:1})]),_:1})])])),ee("div",KC,[($(!0),me(Be,null,Qt(a.channels,N=>ji(($(),j(bS,{key:N.id,"channel-id":N.id,"allow-input":!m.value,"is-web-call":m.value,"is-online":f(O),contacts:r.contacts,user:r.extension},null,8,["channel-id","allow-input","is-web-call","is-online","contacts","user"])),[[uo,N.id===a.activeChannelId]])),128))]),ee("div",{class:Ye(["webphone__keypad wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",a.isKeypadVisible&&a.callStatus==="idle"?"wp:max-h-[300px] wp:opacity-100 wp:pb-0":"wp:max-h-0 wp:opacity-0 wp:pb-0"]),"data-visible":a.isKeypadVisible&&a.callStatus==="idle"?"true":"false"},[H(pc)],10,WC),H(z_,{class:"webphone__actions",style:dt(P.value?"pointer-events: none;":void 0),destination:m.value?r.to:void 0,"is-video":r.mode==="video",onTransfer:q[1]||(q[1]=N=>b.value=!0),onCompleteTransfer:W,onCancelTransfer:Z},null,8,["style","destination","is-video"])]),P.value?($(),me("div",GC,[...q[12]||(q[12]=[ee("span",{class:"wp:text-sm wp:font-semibold wp:text-status-disconnected"},"Sin internet",-1)])])):Pe("",!0),m.value?($(),me("div",JC,[...q[13]||(q[13]=[ee("div",{class:"webphone__footer-label wp:text-[10px] wp:text-primary"},"Powered By",-1),ee("div",{class:"webphone__footer-content wp:flex wp:items-center wp:gap-2"},[ee("a",{href:"https://www.nebula123.com",target:"_blank",class:"webphone__footer-link wp:text-[10px] wp:text-primary wp:hover:underline"}," www.nebula123.com ")],-1)])])):Pe("",!0)],14,NC),H(aC,{visible:g.value,"onUpdate:visible":q[2]||(q[2]=N=>g.value=N)},null,8,["visible"]),H(xC,{visible:w.value,"onUpdate:visible":q[3]||(q[3]=N=>w.value=N),contacts:r.contacts,onCall:J},null,8,["visible","contacts"]),H(HC,{visible:b.value,"onUpdate:visible":q[4]||(q[4]=N=>b.value=N),contacts:r.contacts,onTransfer:Q},null,8,["visible","contacts"]),H(qC,{ref_key:"documentPipRef",ref:x,active:E.value,"onUpdate:active":q[5]||(q[5]=N=>E.value=N),"auto-open-on-blur":A.value,"is-connected":a.isConnected,"remote-number":a.remoteNumber,"has-video":h.value??!1,"remote-stream":f(d),"local-stream":f(p),destination:m.value?r.to:void 0,"is-video":r.mode==="video","call-status":a.callStatus,"is-muted":a.isMuted,"is-held":a.isHeld,onTransfer:q[6]||(q[6]=N=>b.value=!0),onHangup:q[7]||(q[7]=N=>f(l).hangupCall()),onAnswer:ie,onToggleMute:q[8]||(q[8]=N=>f(l).toggleMute()),onToggleHold:q[9]||(q[9]=N=>f(l).toggleHold())},null,8,["active","auto-open-on-blur","is-connected","remote-number","has-video","remote-stream","local-stream","destination","is-video","call-status","is-muted","is-held"])],64))}}),ZC=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},XC=ZC(YC,[["__scopeId","data-v-83878280"]]),QC=il({props:{host:String,wsUrl:String,extension:String,password:String,to:String,mode:{type:String,default:"call"},logo:String,contacts:{type:[String,Array],default:()=>[]}},setup(e){return()=>{let t=e.contacts;if(typeof e.contacts=="string")try{t=JSON.parse(e.contacts)}catch{t=[]}return tr(XC,{...e,contacts:t})}}},{shadowRoot:!1});customElements.define("web-phone",QC)})();
|
|
301
|
+
`,le},S=G=>{const le=G.getElementById("pip-actions");if(le){if(le.innerHTML="",n.callStatus==="incoming"){if(n.hasVideo){const de=G.createElement("button");de.className="pip-btn pip-btn-video",de.title="Contestar con Video",de.innerHTML=_.video,de.onclick=()=>s("answer",!0),le.appendChild(de)}const K=G.createElement("button");K.className="pip-btn pip-btn-answer",K.title="Contestar",K.innerHTML=_.phone,K.onclick=()=>s("answer",!1),le.appendChild(K);const oe=G.createElement("button");oe.className="pip-btn pip-btn-hangup",oe.title="Rechazar",oe.innerHTML=_.phoneOff,oe.onclick=()=>{s("hangup"),W()},le.appendChild(oe)}else if(n.callStatus==="connected"){const K=G.createElement("button");K.className=`pip-btn pip-btn-mute ${n.isMuted?"active":""}`,K.title=n.isMuted?"Activar micrófono":"Silenciar",K.innerHTML=n.isMuted?_.micOff:_.mic,K.onclick=()=>s("toggleMute"),le.appendChild(K);const oe=G.createElement("button");oe.className=`pip-btn pip-btn-hold ${n.isHeld?"active":""}`,oe.title=n.isHeld?"Reanudar":"Pausar",oe.innerHTML=n.isHeld?_.play:_.pause,oe.onclick=()=>s("toggleHold"),le.appendChild(oe);const de=G.createElement("button");de.className="pip-btn pip-btn-transfer",de.title="Transferir",de.innerHTML=_.transfer,de.onclick=()=>s("transfer"),le.appendChild(de);const xe=G.createElement("button");xe.className="pip-btn pip-btn-hangup",xe.title="Colgar",xe.innerHTML=_.phoneOff,xe.onclick=()=>{s("hangup"),W()},le.appendChild(xe)}else if(n.callStatus==="calling"){const K=G.createElement("button");K.className="pip-btn pip-btn-hangup",K.title="Cancelar",K.innerHTML=_.phoneOff,K.onclick=()=>{s("hangup"),W()},le.appendChild(K)}}},E=G=>{setTimeout(()=>{const le=G.getElementById("pip-remote-video"),K=G.getElementById("pip-local-video");le&&n.remoteStream&&(le.srcObject=n.remoteStream,le.play().catch(()=>{})),K&&n.localStream&&(K.srcObject=n.localStream,K.play().catch(()=>{}))},50)},I=G=>{const le=G.getElementById("pip-timer");le&&(d=setInterval(()=>{le.textContent=w(c.value)},1e3))},J=()=>{d&&(clearInterval(d),d=null)},te=async()=>{if(!(!i.value||o.value||a.value)){a.value=!0;try{const G=n.hasVideo?340:280,le=n.hasVideo?280:200,K=await window.documentPictureInPicture.requestWindow({width:G,height:le,preferInitialWindowPlacement:!0});l.value=K,o.value=!0,s("update:active",!0),A(K.document);const oe=O(K.document);K.document.body.appendChild(oe),n.hasVideo&&E(K.document),S(K.document),I(K.document),K.addEventListener("pagehide",()=>{J(),o.value=!1,l.value=null,s("update:active",!1)})}catch(G){console.error("[DocumentPip] Error:",G)}finally{a.value=!1}}},W=()=>{J(),l.value&&(l.value.close(),l.value=null,o.value=!1,s("update:active",!1))};return t({open:te,close:W,toggle:()=>{o.value?W():te()},isActive:o,isSupported:i,canUsePip:b}),(G,le)=>ie(G.$slots,"default")}}),NC=MC,qC=["data-mode","data-call-status","data-network-status"],BC={key:0,class:"webphone__video-area wp:relative wp:w-full wp:aspect-video wp:bg-black"},LC={class:"webphone__video-local-frame wp:absolute wp:bottom-2 wp:right-2 wp:w-24 wp:aspect-video wp:bg-neutral-800 wp:rounded wp:overflow-hidden wp:border wp:border-white/20 wp:shadow-lg"},FC={class:"webphone__body wp:flex wp:flex-col wp:gap-1 wp:space-y-2"},VC={key:0,class:"webphone__channel-switcher-wrap wp:flex wp:flex-col wp:items-center wp:justify-center wp:py-3 wp:px-4 wp:gap-2"},jC={role:"radiogroup","aria-label":"Canales",class:"webphone__channel-switcher wp:w-full wp:max-w-[330px] wp:flex wp:items-center wp:justify-between wp:gap-1"},UC={class:"wp:flex wp:gap-1"},zC=["aria-checked","disabled","title","data-channel-id","data-state","data-call-state","onClick"],KC={class:"webphone__display wp:py-1"},WC=["data-visible"],GC={key:1,class:"webphone__offline-overlay wp:absolute wp:inset-0 wp:z-40 wp:flex wp:items-center wp:justify-center wp:bg-white/70 wp:dark:bg-neutral-900/70 wp:backdrop-blur-[1px] wp:px-6 wp:text-center"},JC={key:2,class:"webphone__footer wp:flex wp:flex-col wp:items-center wp:p-2 wp:gap-0"},YC=Q({__name:"WebPhone",props:{host:{},wsUrl:{},extension:{},password:{},to:{},mode:{default:"call"},logo:{},contacts:{default:()=>[]},position:{default:()=>({})},enablePictureInPicture:{type:Boolean,default:!0},onAnswer:{},onHangup:{},onReject:{}},setup(e){const t=new Map,r=e,n=V(()=>{if(r.wsUrl)return r.wsUrl;if(r.host)return`wss://${r.host}/ws`}),s=V(()=>!n.value||!r.extension?"":`${n.value}::${r.extension}`),i=s.value?t.get(s.value):void 0,o=y0({server:n.value,extension:r.extension,initialConnected:i}),a=Mr(o),l=Jw(o),{initUserAgent:c,switchChannel:u,remoteStream:d,localStream:p}=l;as("webphone",a),as("sip",l),Xe(()=>{r.mode==="webcall"&&(r.to||console.error('WebPhone: "to" prop is required when mode is "webcall"'),r.logo||console.error('WebPhone: "logo" prop is required when mode is "webcall"'))});const h=F(!1),m=F(!1),y=F(!1),T=F(null),v=F(null),x=F(null),w=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",b=V(()=>r.mode==="webcall"),_=F(0),A=N=>!!N&&N.getVideoTracks().length>0;Ae(()=>a.callStatus,N=>{if(N==="idle"&&!a.isKeypadVisible){a.toggleKeypad();return}N!=="idle"&&a.isKeypadVisible&&a.toggleKeypad()});const P=V(()=>a.channels.find(N=>N.id===a.activeChannelId)??null),g=N=>{if(!N)return"";const q=N.trim(),se=q.startsWith("+"),he=q.replace(/[^\d]/g,"");return se?`+${he}`:he},D=V(()=>{const N=P.value?.remoteNumber||a.remoteNumber,q=g(N);return r.contacts.find(se=>g(se.number)===q)?.name||N||"Llamada"}),O=V(()=>(_.value,!!P.value?.hasVideo||A(d.value)||A(p.value))),{isOnline:S}=My(),E=V(()=>!S.value),I=F(null),J=F(!1),te=V(()=>r.enablePictureInPicture),W=()=>{te.value&&I.value?.toggle()},ee=async(N,q)=>{try{q==="blind"?await l.transferCall(N):await l.startAttendedTransfer(N)}catch(se){console.error("[WebPhone] Transfer error:",se),alert(se instanceof Error?se.message:"Transfer failed. Please try again.")}},G=async()=>{try{await l.completeAttendedTransfer()}catch(N){console.error("[WebPhone] Complete transfer error:",N),alert(N instanceof Error?N.message:"Failed to complete transfer.")}},le=async()=>{try{await l.cancelAttendedTransfer()}catch(N){console.error("[WebPhone] Cancel transfer error:",N),alert(N instanceof Error?N.message:"Failed to cancel transfer.")}},K=N=>{a.keypadValue=N,l.makeCall(N)},oe=N=>{if(r.onAnswer){r.onAnswer(N);return}l.answerCall(N)},de=()=>{if(r.onHangup){r.onHangup();return}l.hangupCall()},xe=()=>{if(r.onReject){r.onReject();return}l.hangupCall()},De=()=>{y.value=!0,I.value?.close(),window.focus()},Se=()=>{if(!te.value)return!1;const N=a.callStatus!=="idle",q=document.hidden||!document.hasFocus();return N&&q&&!J.value},be=()=>{window.setTimeout(()=>{Se()&&I.value?.open()},150)};Xe(()=>{v.value&&(J.value||!d.value?v.value.srcObject=null:v.value.srcObject=d.value),x.value&&(J.value||!p.value?x.value.srcObject=null:x.value.srcObject=p.value)});const Be=N=>{if(!N||typeof N.addEventListener!="function"||typeof N.removeEventListener!="function")return()=>{};const q=()=>{_.value+=1};return N.addEventListener("addtrack",q),N.addEventListener("removetrack",q),()=>{N.removeEventListener("addtrack",q),N.removeEventListener("removetrack",q)}};Ae(d,(N,q,se)=>{_.value+=1,se(Be(N))},{immediate:!0}),Ae(p,(N,q,se)=>{_.value+=1,se(Be(N))},{immediate:!0});const it=["button","a","input","textarea","select","label","video",'[role="button"]','[role="radio"]',"[data-no-drag]"].join(", "),B=()=>{const N=window.innerWidth<640,q=window.innerWidth<1024;let se=360;return N?se=window.innerWidth*.9:q&&(se=340),{x:Math.max(0,(window.innerWidth-se)/2),y:N?30:80}},{x:ne,y:X,style:ue}=Hy(T,{initialValue:V(()=>{const N=B();return{x:r.position.x??N.x,y:r.position.y??N.y}}).value,preventDefault:!0,onStart:(N,q)=>{const se=q.target;if(se instanceof HTMLElement&&se.closest(it))return!1}});Ae(()=>r.position,N=>{const q=B();ne.value=N.x??q.x,X.value=N.y??q.y},{deep:!0});const C=[{label:"Canal 1",value:0},{label:"Canal 2",value:1},{label:"Canal 3",value:2}],R=F(!1),M=V({get:()=>a.activeChannelId.toString(),set:async N=>{if(!E.value&&N&&!R.value){R.value=!0;try{await u(parseInt(N))}finally{R.value=!1}}}}),j=N=>{const q=a.channels.find(se=>se.id===N);return q?q.status==="connected"||q.status==="calling"||q.status==="incoming":!1},Y=N=>{E.value||(M.value=N.toString())},Z=N=>{if(!E.value&&((N.metaKey||N.ctrlKey)&&N.key.toLowerCase()==="h"&&(N.preventDefault(),m.value=!0),(N.metaKey||N.ctrlKey)&&N.key===","&&(N.preventDefault(),h.value=!0),(N.metaKey||N.ctrlKey)&&N.key.toLowerCase()==="k"&&(N.preventDefault(),a.toggleKeypad()),(N.metaKey||N.ctrlKey)&&["1","2","3"].includes(N.key))){N.preventDefault();const q=parseInt(N.key)-1;R.value||(R.value=!0,u(q).finally(()=>{R.value=!1}))}};Ae(()=>a.callStatus,()=>{Se()&&be()}),Ae(()=>a.isConnected,N=>{s.value&&t.set(s.value,N)},{immediate:!0}),Ae(te,N=>{!N&&J.value&&I.value?.close()});const ce=F(!1),ae=async()=>{ce.value||E.value||!r.host||!r.extension||!r.password||(await c({uri:`sip:${r.extension}@${r.host}`,transportOptions:{server:n.value},authorizationUsername:r.extension,authorizationPassword:r.password}),l.extension.value&&(ce.value=!0,r.mode==="webcall"&&r.to&&l.makeCall(r.to)))};return ze(async()=>{window.addEventListener("keydown",Z),document.addEventListener("visibilitychange",be),window.addEventListener("blur",be),window.addEventListener("pagehide",be),!(r.mode==="webcall"&&(!r.to||!r.logo))&&await ae()}),Ae(()=>S.value,async N=>{N&&await ae()}),kt(()=>{window.removeEventListener("keydown",Z),document.removeEventListener("visibilitychange",be),window.removeEventListener("blur",be),window.removeEventListener("pagehide",be)}),(N,q)=>($(),me(Ne,null,[re("div",{ref_key:"phoneRef",ref:T,style:dt(f(ue)),class:Je(["webphone webphone-container wp:bg-white wp:dark:bg-neutral-800 wp:rounded-2xl wp:shadow-sm wp:inset-shadow-2xs wp:w-[min(92vw,330px)] wp:fixed wp:z-50 wp:select-none wp:[&_button]:cursor-pointer wp:**:[[role=button]]:cursor-pointer",E.value?"wp:opacity-70":""]),"data-mode":r.mode,"data-call-status":a.callStatus,"data-network-status":E.value?"offline":"online"},[O.value&&!J.value?($(),me("div",BC,[re("video",{ref_key:"remoteVideoRef",ref:v,autoplay:"",playsinline:"",class:"webphone__video-remote wp:w-full wp:h-full wp:object-cover"},null,512),re("div",LC,[re("video",{ref_key:"localVideoRef",ref:x,autoplay:"",playsinline:"",muted:"",class:"webphone__video-local wp:w-full wp:h-full wp:object-cover"},null,512)])])):ke("",!0),re("div",FC,[b.value?ke("",!0):($(),me("div",VC,[re("div",jC,[re("div",UC,[($(),me(Ne,null,Qt(C,se=>re("button",{key:se.value,type:"button",role:"radio","aria-checked":M.value===se.value.toString(),disabled:E.value,title:`${se.label} (${f(w)}${se.value+1})`,class:Je(["webphone__channel-button wp:flex wp:items-center wp:gap-1 wp:px-2 wp:py-2 wp:rounded-lg wp:transition-colors wp:duration-200 wp:outline-none wp:focus-visible:ring-2 wp:focus-visible:ring-[var(--p-primary-color)] wp:focus-visible:ring-offset-2 wp:focus-visible:ring-offset-white wp:dark:focus-visible:ring-offset-neutral-900",j(se.value)?"wp:bg-[var(--color-red)]/12 hover:wp:bg-[var(--color-red)]/18":M.value===se.value.toString()?"wp:bg-[var(--p-primary-color)]/12":"wp:hover:bg-neutral-100 wp:dark:hover:bg-neutral-800/80"]),"data-channel-id":se.value,"data-state":M.value===se.value.toString()?"active":"idle","data-call-state":j(se.value)?"busy":"available",onClick:he=>Y(se.value)},[H(f(bc),{class:Je(["webphone__channel-icon wp:size-3 wp:shrink-0",j(se.value)?"wp:text-[var(--color-red)]":M.value===se.value.toString()?"wp:text-[var(--p-primary-color)]":"wp:text-neutral-400"]),"stroke-width":1.8},null,8,["class"]),re("span",{class:Je(["webphone__channel-label wp:text-[12px] wp:leading-none ibrand",j(se.value)?"wp:text-[var(--color-red)]":M.value===se.value.toString()?"wp:text-[var(--p-primary-color)]":"wp:text-neutral-500 wp:dark:text-neutral-400"])},Pe(se.label),3)],10,zC)),64))]),H(f(Zo),null,{default:k(()=>[H(f(Jo),null,{default:k(()=>[H(f(Xo),{"as-child":""},{default:k(()=>[H(f(tt),{variant:"ghost",size:"icon",class:Je(["wp:h-8 wp:w-8 wp:rounded-full",J.value?"wp:text-primary":""]),title:"Picture-in-Picture",onClick:W},{default:k(()=>[H(f(d_),{class:"wp:w-4 wp:h-4 wp:text-[var(--color-settings)]"})]),_:1},8,["class"])]),_:1}),H(f(Yo),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[...q[8]||(q[8]=[re("span",null,"Picture-in-Picture",-1)])]),_:1})]),_:1})]),_:1}),H(f(Zo),null,{default:k(()=>[H(f(Jo),null,{default:k(()=>[H(f(Xo),{"as-child":""},{default:k(()=>[H(f(tt),{variant:"ghost",size:"icon",class:"wp:h-8 wp:w-8 wp:rounded-full",onClick:q[0]||(q[0]=se=>h.value=!0)},{default:k(()=>[H(f(h_),{class:"wp:w-4 wp:h-4 wp:text-[var(--color-settings)]"})]),_:1})]),_:1}),H(f(Yo),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[q[9]||(q[9]=re("span",null,"Configuración",-1)),H(f(rn),null,{default:k(()=>[Oe(Pe(f(w))+",",1)]),_:1})]),_:1})]),_:1})]),_:1})])])),re("div",KC,[($(!0),me(Ne,null,Qt(a.channels,se=>ji(($(),U(bS,{key:se.id,"channel-id":se.id,"allow-input":!b.value,"is-web-call":b.value,"is-online":f(S),contacts:r.contacts,user:r.extension},null,8,["channel-id","allow-input","is-web-call","is-online","contacts","user"])),[[uo,se.id===a.activeChannelId]])),128))]),re("div",{class:Je(["webphone__keypad wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",a.isKeypadVisible&&a.callStatus==="idle"?"wp:max-h-[300px] wp:opacity-100 wp:pb-0":"wp:max-h-0 wp:opacity-0 wp:pb-0"]),"data-visible":a.isKeypadVisible&&a.callStatus==="idle"?"true":"false"},[H(pc)],10,WC),H(z_,{class:"webphone__actions",style:dt(E.value?"pointer-events: none;":void 0),destination:b.value?r.to:void 0,"is-video":r.mode==="video","on-answer":r.onAnswer,"on-hangup":r.onHangup,"on-reject":r.onReject,onTransfer:q[1]||(q[1]=se=>y.value=!0),onCompleteTransfer:G,onCancelTransfer:le},null,8,["style","destination","is-video","on-answer","on-hangup","on-reject"])]),E.value?($(),me("div",GC,[...q[10]||(q[10]=[re("span",{class:"wp:text-sm wp:font-semibold wp:text-status-disconnected"},"Sin internet",-1)])])):ke("",!0),b.value?($(),me("div",JC,[...q[11]||(q[11]=[re("div",{class:"webphone__footer-label wp:text-[10px] wp:text-primary"},"Powered By",-1),re("div",{class:"webphone__footer-content wp:flex wp:items-center wp:gap-2"},[re("a",{href:"https://www.nebula123.com",target:"_blank",class:"webphone__footer-link wp:text-[10px] wp:text-primary wp:hover:underline"}," www.nebula123.com ")],-1)])])):ke("",!0)],14,qC),H(aC,{visible:h.value,"onUpdate:visible":q[2]||(q[2]=se=>h.value=se)},null,8,["visible"]),H(xC,{visible:m.value,"onUpdate:visible":q[3]||(q[3]=se=>m.value=se),contacts:r.contacts,onCall:K},null,8,["visible","contacts"]),H(HC,{visible:y.value,"onUpdate:visible":q[4]||(q[4]=se=>y.value=se),contacts:r.contacts,onTransfer:ee},null,8,["visible","contacts"]),H(NC,{ref_key:"documentPipRef",ref:I,active:J.value,"onUpdate:active":q[5]||(q[5]=se=>J.value=se),"auto-open-on-blur":te.value,"is-connected":a.isConnected,"remote-number":a.remoteNumber,"caller-name":D.value,"has-video":O.value??!1,"remote-stream":f(d),"local-stream":f(p),destination:b.value?r.to:void 0,"is-video":r.mode==="video","call-status":a.callStatus,"is-muted":a.isMuted,"is-held":a.isHeld,onTransfer:De,onTransferRequest:ee,onHangup:de,onReject:xe,onAnswer:oe,onToggleMute:q[6]||(q[6]=se=>f(l).toggleMute()),onToggleHold:q[7]||(q[7]=se=>f(l).toggleHold())},null,8,["active","auto-open-on-blur","is-connected","remote-number","caller-name","has-video","remote-stream","local-stream","destination","is-video","call-status","is-muted","is-held"])],64))}}),ZC=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},XC=ZC(YC,[["__scopeId","data-v-91172c21"]]),QC=il({props:{host:String,wsUrl:String,extension:String,password:String,to:String,mode:{type:String,default:"call"},logo:String,contacts:{type:[String,Array],default:()=>[]},enablePictureInPicture:{type:Boolean,default:!0},onAnswer:Function,onHangup:Function,onReject:Function},setup(e){return()=>{let t=e.contacts;if(typeof e.contacts=="string")try{t=JSON.parse(e.contacts)}catch{t=[]}return tr(XC,{...e,contacts:t})}}},{shadowRoot:!1});customElements.define("web-phone",QC)})();
|