@iai-lib/any-chat-widget 0.1.0-alpha.29 → 0.1.0-alpha.31
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/dist/any-chat-widget.es.js +72 -64
- package/dist/any-chat-widget.umd.js +18 -17
- package/package.json +3 -3
|
@@ -789,28 +789,28 @@ const rs = (i, e, t) => {
|
|
|
789
789
|
l[g] = Ue(s[c], r[g]), vt(i, s[p], s[c]), c--, g++;
|
|
790
790
|
else if (d === void 0 && (d = rs(a, g, O), u = rs(o, p, c)), d.has(o[p]))
|
|
791
791
|
if (d.has(o[c])) {
|
|
792
|
-
const
|
|
792
|
+
const D = u.get(a[g]), J = D !== void 0 ? s[D] : null;
|
|
793
793
|
if (J === null) {
|
|
794
794
|
const Ce = vt(i, s[p]);
|
|
795
795
|
Ue(Ce, r[g]), l[g] = Ce;
|
|
796
796
|
} else
|
|
797
|
-
l[g] = Ue(J, r[g]), vt(i, s[p], J), s[
|
|
797
|
+
l[g] = Ue(J, r[g]), vt(i, s[p], J), s[D] = null;
|
|
798
798
|
g++;
|
|
799
799
|
} else
|
|
800
800
|
ei(s[c]), c--;
|
|
801
801
|
else
|
|
802
802
|
ei(s[p]), p++;
|
|
803
803
|
for (; g <= O; ) {
|
|
804
|
-
const
|
|
805
|
-
Ue(
|
|
804
|
+
const D = vt(i, l[O + 1]);
|
|
805
|
+
Ue(D, r[g]), l[g++] = D;
|
|
806
806
|
}
|
|
807
807
|
for (; p <= c; ) {
|
|
808
|
-
const
|
|
809
|
-
|
|
808
|
+
const D = s[p++];
|
|
809
|
+
D !== null && ei(D);
|
|
810
810
|
}
|
|
811
811
|
return this.ut = a, Nr(i, l), fe;
|
|
812
812
|
}
|
|
813
|
-
}), Se = nt`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: \"\"}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-8{bottom:2rem}.left-0{left:0}.left-8{left:2rem}.right-0{right:0}.right-8{right:2rem}.top-0{top:0}.z-50{z-index:50}.m-0{margin:0}.m-0\\.5{margin:.125rem}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-top:auto;margin-bottom:auto}.mb-1{margin-bottom:.25rem}.mb-\\[-8px\\]{margin-bottom:-8px}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.mr-2{margin-right:.5rem}.mr-20{margin-right:5rem}.mt-4{margin-top:1rem}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-0{height:0px}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-3\\/5{height:60%}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-20{max-height:5rem}.max-h-\\[90vh\\]{max-height:90vh}.w-0{width:0px}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-3\\/5{width:60%}.w-5{width:1.25rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\\[90vw\\]{max-width:90vw}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-x-8{border-left-width:8px;border-right-width:8px}.border-t-8{border-top-width:8px}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-x-transparent{border-left-color:transparent;border-right-color:transparent}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-0{padding-left:0;padding-right:0}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-8{padding-bottom:2rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-semibold{font-weight:600}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:host{font-size:16px;line-height:1.2;color:#000;text-align:left;--iai-chat-i-primary-color: var(--iai-chat-primary-color, #0B64F4);--iai-chat-i-text-color: var(--iai-chat-text-color, #FFF);--iai-chat-i-header-bg: var(--iai-chat-header-background-color, var(--iai-chat-i-primary-color));--iai-chat-i-header-fg: var(--iai-chat-header-text-color, var(--iai-chat-i-text-color));--iai-chat-i-button-bg: var(--iai-chat-button-background-color, var(--iai-chat-i-primary-color));--iai-chat-i-button-fg: var(--iai-chat-button-text-color, var(--iai-chat-i-text-color));--iai-chat-i-message-user-bg: var(--iai-chat-messages-user-background-color, var(--iai-chat-i-primary-color));--iai-chat-i-message-user-fg: var(--iai-chat-messages-user-text-color, var(--iai-chat-i-text-color));--iai-chat-i-message-assistant-bg: var(--iai-chat-messages-assistant-background-color, #6B7280);--iai-chat-i-message-assistant-fg: var(--iai-chat-messages-assistant-text-color, var(--iai-chat-i-text-color));--iai-chat-i-ocb-bg: var(--iai-chat-open-chat-button-background-color, var(--iai-chat-i-primary-color));--iai-chat-i-ocb-fg: var(--iai-chat-open-chat-button-icon-color, var(--iai-chat-i-text-color));--iai-chat-i-iframe-modal-header-bg: var(--iai-chat-iframe-modal-background-color, var(--iai-chat-i-primary-color));--iai-chat-i-iframe-modal-header-fg: var(--iai-chat-iframe-modal-text-color, var(--iai-chat-i-text-color))}input{background-color:#fff}h1{font-size:1.5em}h2{font-size:1.17em}h3{font-size:1em}ol,ul{display:flex;flex-direction:column;padding:0;margin-left:20px;gap:8px}ol{list-style-type:decimal}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\\:bg-gray-200:disabled{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width: 768px){.md\\:bottom-8{bottom:2rem}.md\\:left-8{left:2rem}.md\\:right-8{right:2rem}.md\\:flex{display:flex}.md\\:h-\\[500px\\]{height:500px}.md\\:h-fit{height:-moz-fit-content;height:fit-content}.md\\:w-\\[350px\\]{width:350px}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:p-0{padding:0}.md\\:px-0{padding-left:0;padding-right:0}.md\\:pb-0{padding-bottom:0}}`;
|
|
813
|
+
}), Se = nt`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: \"\"}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-8{bottom:2rem}.left-0{left:0}.left-8{left:2rem}.right-0{right:0}.right-8{right:2rem}.top-0{top:0}.z-50{z-index:50}.m-0{margin:0}.m-0\\.5{margin:.125rem}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-top:auto;margin-bottom:auto}.mb-1{margin-bottom:.25rem}.mb-\\[-8px\\]{margin-bottom:-8px}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.mr-2{margin-right:.5rem}.mr-20{margin-right:5rem}.mt-4{margin-top:1rem}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-0{height:0px}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-3\\/5{height:60%}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-20{max-height:5rem}.max-h-\\[90vh\\]{max-height:90vh}.w-0{width:0px}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-3\\/5{width:60%}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-9{width:2.25rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\\[90vw\\]{max-width:90vw}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-x-8{border-left-width:8px;border-right-width:8px}.border-t-8{border-top-width:8px}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-x-transparent{border-left-color:transparent;border-right-color:transparent}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-0{padding-left:0;padding-right:0}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-8{padding-bottom:2rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-semibold{font-weight:600}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:host{font-size:16px;line-height:1.2;color:#000;text-align:left;--iai-chat-i-primary-color: var(--iai-chat-primary-color, #0B64F4);--iai-chat-i-text-color: var(--iai-chat-text-color, #FFF);--iai-chat-i-header-bg: var(--iai-chat-header-background-color, var(--iai-chat-i-primary-color));--iai-chat-i-header-fg: var(--iai-chat-header-text-color, var(--iai-chat-i-text-color));--iai-chat-i-button-bg: var(--iai-chat-button-background-color, var(--iai-chat-i-primary-color));--iai-chat-i-button-fg: var(--iai-chat-button-text-color, var(--iai-chat-i-text-color));--iai-chat-i-message-user-bg: var(--iai-chat-messages-user-background-color, var(--iai-chat-i-primary-color));--iai-chat-i-message-user-fg: var(--iai-chat-messages-user-text-color, var(--iai-chat-i-text-color));--iai-chat-i-message-assistant-bg: var(--iai-chat-messages-assistant-background-color, #6B7280);--iai-chat-i-message-assistant-fg: var(--iai-chat-messages-assistant-text-color, var(--iai-chat-i-text-color));--iai-chat-i-ocb-bg: var(--iai-chat-open-chat-button-background-color, var(--iai-chat-i-primary-color));--iai-chat-i-ocb-fg: var(--iai-chat-open-chat-button-icon-color, var(--iai-chat-i-text-color));--iai-chat-i-iframe-modal-header-bg: var(--iai-chat-iframe-modal-background-color, var(--iai-chat-i-primary-color));--iai-chat-i-iframe-modal-header-fg: var(--iai-chat-iframe-modal-text-color, var(--iai-chat-i-text-color))}input{background-color:#fff}h1{font-size:1.5em}h2{font-size:1.17em}h3{font-size:1em}ol,ul{display:flex;flex-direction:column;padding:0;margin-left:20px;gap:8px}ol{list-style-type:decimal}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\\:bg-gray-200:disabled{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width: 768px){.md\\:bottom-8{bottom:2rem}.md\\:left-8{left:2rem}.md\\:right-8{right:2rem}.md\\:flex{display:flex}.md\\:h-\\[500px\\]{height:500px}.md\\:h-fit{height:-moz-fit-content;height:fit-content}.md\\:w-\\[350px\\]{width:350px}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:p-0{padding:0}.md\\:px-0{padding-left:0;padding-right:0}.md\\:pb-0{padding-bottom:0}}`;
|
|
814
814
|
var jr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, Rn = (i, e, t, n) => {
|
|
815
815
|
for (var s = n > 1 ? void 0 : n ? zr(e, t) : e, r = i.length - 1, a; r >= 0; r--)
|
|
816
816
|
(a = i[r]) && (s = (n ? a(e, t, s) : a(s)) || s);
|
|
@@ -1091,8 +1091,8 @@ var vi = {};
|
|
|
1091
1091
|
}
|
|
1092
1092
|
function t(o, l, d, u) {
|
|
1093
1093
|
var p = { timer: void 0, lastArgs: [] }, c = function() {
|
|
1094
|
-
for (var g = this, O = [],
|
|
1095
|
-
O[
|
|
1094
|
+
for (var g = this, O = [], D = 0; D < arguments.length; D++)
|
|
1095
|
+
O[D] = arguments[D];
|
|
1096
1096
|
p.lastArgs = O, p.timer ? clearTimeout(p.timer) : l && d.apply(this, p.lastArgs), p.timer = setTimeout(function() {
|
|
1097
1097
|
l || d.apply(g, p.lastArgs), p.timer = void 0;
|
|
1098
1098
|
}, o);
|
|
@@ -4467,14 +4467,14 @@ let ie = class extends ne {
|
|
|
4467
4467
|
<div class="flex-grow"></div>
|
|
4468
4468
|
|
|
4469
4469
|
<button
|
|
4470
|
-
class="mr-2 h-6"
|
|
4470
|
+
class="mr-2 h-6 w-6"
|
|
4471
4471
|
@click="${this.resetChat}"
|
|
4472
4472
|
>
|
|
4473
4473
|
${no}
|
|
4474
4474
|
</button>
|
|
4475
4475
|
|
|
4476
4476
|
${Re(n, () => z`
|
|
4477
|
-
<button class="mr-2 h-6" @click="${this.closeChat}">
|
|
4477
|
+
<button class="mr-2 h-6 w-6" @click="${this.closeChat}">
|
|
4478
4478
|
${Ht}
|
|
4479
4479
|
</button>
|
|
4480
4480
|
`)}
|
|
@@ -4512,7 +4512,7 @@ let ie = class extends ne {
|
|
|
4512
4512
|
></textarea>
|
|
4513
4513
|
<button
|
|
4514
4514
|
type="submit"
|
|
4515
|
-
class="button rounded-lg p-2 disabled:opacity-50 h-9"
|
|
4515
|
+
class="button rounded-lg p-2 disabled:opacity-50 h-9 w-9"
|
|
4516
4516
|
.disabled="${this.isSubmitDisabled}"
|
|
4517
4517
|
>
|
|
4518
4518
|
${to}
|
|
@@ -4744,7 +4744,7 @@ var Bs = { exports: {} };
|
|
|
4744
4744
|
return !0;
|
|
4745
4745
|
}
|
|
4746
4746
|
});
|
|
4747
|
-
function
|
|
4747
|
+
function D() {
|
|
4748
4748
|
return window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
|
|
4749
4749
|
}
|
|
4750
4750
|
function J(h, v, M) {
|
|
@@ -4789,9 +4789,9 @@ var Bs = { exports: {} };
|
|
|
4789
4789
|
Z("Height"), Z("Width"), Pi(b, j, "init");
|
|
4790
4790
|
}
|
|
4791
4791
|
function M() {
|
|
4792
|
-
var b = ae.slice(l).split(":"), C = b[1] ? parseInt(b[1], 10) : 0,
|
|
4792
|
+
var b = ae.slice(l).split(":"), C = b[1] ? parseInt(b[1], 10) : 0, H = c[b[0]] && c[b[0]].iframe, B = getComputedStyle(H);
|
|
4793
4793
|
return {
|
|
4794
|
-
iframe:
|
|
4794
|
+
iframe: H,
|
|
4795
4795
|
id: b[0],
|
|
4796
4796
|
height: C + _(B) + R(B),
|
|
4797
4797
|
width: b[2],
|
|
@@ -4801,18 +4801,18 @@ var Bs = { exports: {} };
|
|
|
4801
4801
|
function _(b) {
|
|
4802
4802
|
if (b.boxSizing !== "border-box")
|
|
4803
4803
|
return 0;
|
|
4804
|
-
var C = b.paddingTop ? parseInt(b.paddingTop, 10) : 0,
|
|
4805
|
-
return C +
|
|
4804
|
+
var C = b.paddingTop ? parseInt(b.paddingTop, 10) : 0, H = b.paddingBottom ? parseInt(b.paddingBottom, 10) : 0;
|
|
4805
|
+
return C + H;
|
|
4806
4806
|
}
|
|
4807
4807
|
function R(b) {
|
|
4808
4808
|
if (b.boxSizing !== "border-box")
|
|
4809
4809
|
return 0;
|
|
4810
|
-
var C = b.borderTopWidth ? parseInt(b.borderTopWidth, 10) : 0,
|
|
4811
|
-
return C +
|
|
4810
|
+
var C = b.borderTopWidth ? parseInt(b.borderTopWidth, 10) : 0, H = b.borderBottomWidth ? parseInt(b.borderBottomWidth, 10) : 0;
|
|
4811
|
+
return C + H;
|
|
4812
4812
|
}
|
|
4813
4813
|
function Z(b) {
|
|
4814
|
-
var C = Number(c[E]["max" + b]),
|
|
4815
|
-
N(E, "Checking " + B + " is in range " +
|
|
4814
|
+
var C = Number(c[E]["max" + b]), H = Number(c[E]["min" + b]), B = b.toLowerCase(), Q = Number(j[B]);
|
|
4815
|
+
N(E, "Checking " + B + " is in range " + H + "-" + C), Q < H && (Q = H, N(E, "Set " + B + " to min value")), Q > C && (Q = C, N(E, "Set " + B + " to max value")), j[B] = "" + Q;
|
|
4816
4816
|
}
|
|
4817
4817
|
function pe() {
|
|
4818
4818
|
function b() {
|
|
@@ -4820,9 +4820,9 @@ var Bs = { exports: {} };
|
|
|
4820
4820
|
var X = 0, xe = !1;
|
|
4821
4821
|
for (N(
|
|
4822
4822
|
E,
|
|
4823
|
-
"Checking connection is from allowed list of origins: " +
|
|
4824
|
-
); X <
|
|
4825
|
-
if (
|
|
4823
|
+
"Checking connection is from allowed list of origins: " + H
|
|
4824
|
+
); X < H.length; X++)
|
|
4825
|
+
if (H[X] === C) {
|
|
4826
4826
|
xe = !0;
|
|
4827
4827
|
break;
|
|
4828
4828
|
}
|
|
@@ -4832,10 +4832,10 @@ var Bs = { exports: {} };
|
|
|
4832
4832
|
var X = c[E] && c[E].remoteHost;
|
|
4833
4833
|
return N(E, "Checking connection is from: " + X), C === X;
|
|
4834
4834
|
}
|
|
4835
|
-
return
|
|
4835
|
+
return H.constructor === Array ? B() : Q();
|
|
4836
4836
|
}
|
|
4837
|
-
var C = h.origin,
|
|
4838
|
-
if (
|
|
4837
|
+
var C = h.origin, H = c[E] && c[E].checkOrigin;
|
|
4838
|
+
if (H && "" + C != "null" && !b())
|
|
4839
4839
|
throw new Error(
|
|
4840
4840
|
"Unexpected message received from: " + C + " for " + j.iframe.id + ". Message was: " + h.data + ". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains."
|
|
4841
4841
|
);
|
|
@@ -4884,10 +4884,10 @@ var Bs = { exports: {} };
|
|
|
4884
4884
|
});
|
|
4885
4885
|
}
|
|
4886
4886
|
function Xt(b, C) {
|
|
4887
|
-
function
|
|
4887
|
+
function H() {
|
|
4888
4888
|
he("Send Page Info", "pageInfo:" + Wn(), b, C);
|
|
4889
4889
|
}
|
|
4890
|
-
cr(
|
|
4890
|
+
cr(H, 32, C);
|
|
4891
4891
|
}
|
|
4892
4892
|
function Fn() {
|
|
4893
4893
|
function b(Q, X) {
|
|
@@ -4901,11 +4901,11 @@ var Bs = { exports: {} };
|
|
|
4901
4901
|
function C() {
|
|
4902
4902
|
b("Remove ", Ce);
|
|
4903
4903
|
}
|
|
4904
|
-
function
|
|
4904
|
+
function H() {
|
|
4905
4905
|
b("Add ", J);
|
|
4906
4906
|
}
|
|
4907
4907
|
var B = E;
|
|
4908
|
-
|
|
4908
|
+
H(), c[B] && (c[B].stopPageInfo = C);
|
|
4909
4909
|
}
|
|
4910
4910
|
function Vn() {
|
|
4911
4911
|
c[E] && c[E].stopPageInfo && (c[E].stopPageInfo(), delete c[E].stopPageInfo);
|
|
@@ -4925,7 +4925,7 @@ var Bs = { exports: {} };
|
|
|
4925
4925
|
function C() {
|
|
4926
4926
|
d = X, K(), N(E, "--");
|
|
4927
4927
|
}
|
|
4928
|
-
function
|
|
4928
|
+
function H() {
|
|
4929
4929
|
return {
|
|
4930
4930
|
x: Number(j.width) + Q.x,
|
|
4931
4931
|
y: Number(j.height) + Q.y
|
|
@@ -4940,7 +4940,7 @@ var Bs = { exports: {} };
|
|
|
4940
4940
|
"Unable to scroll to requested position, window.parentIFrame not found"
|
|
4941
4941
|
);
|
|
4942
4942
|
}
|
|
4943
|
-
var Q = b ? k(j.iframe) : { x: 0, y: 0 }, X =
|
|
4943
|
+
var Q = b ? k(j.iframe) : { x: 0, y: 0 }, X = H();
|
|
4944
4944
|
N(
|
|
4945
4945
|
E,
|
|
4946
4946
|
"Reposition requested from iFrame (offset x:" + Q.x + " y:" + Q.y + ")"
|
|
@@ -4960,22 +4960,22 @@ var Bs = { exports: {} };
|
|
|
4960
4960
|
y: xe.y
|
|
4961
4961
|
}, K(), N(E, "--");
|
|
4962
4962
|
}
|
|
4963
|
-
function
|
|
4963
|
+
function H() {
|
|
4964
4964
|
window.parentIFrame ? window.parentIFrame.moveToAnchor(B) : N(
|
|
4965
4965
|
E,
|
|
4966
4966
|
"In page link #" + B + " not found and window.parentIFrame not found"
|
|
4967
4967
|
);
|
|
4968
4968
|
}
|
|
4969
4969
|
var B = b.split("#")[1] || "", Q = decodeURIComponent(B), X = document.getElementById(Q) || document.getElementsByName(Q)[0];
|
|
4970
|
-
X ? C() : window.top === window.self ? N(E, "In page link #" + B + " not found") :
|
|
4970
|
+
X ? C() : window.top === window.self ? N(E, "In page link #" + B + " not found") : H();
|
|
4971
4971
|
}
|
|
4972
4972
|
function re(b) {
|
|
4973
4973
|
var C = {};
|
|
4974
4974
|
if (Number(j.width) === 0 && Number(j.height) === 0) {
|
|
4975
|
-
var
|
|
4975
|
+
var H = we(9).split(":");
|
|
4976
4976
|
C = {
|
|
4977
|
-
x:
|
|
4978
|
-
y:
|
|
4977
|
+
x: H[1],
|
|
4978
|
+
y: H[0]
|
|
4979
4979
|
};
|
|
4980
4980
|
} else
|
|
4981
4981
|
C = {
|
|
@@ -5289,7 +5289,7 @@ var Bs = { exports: {} };
|
|
|
5289
5289
|
});
|
|
5290
5290
|
}
|
|
5291
5291
|
}
|
|
5292
|
-
var re =
|
|
5292
|
+
var re = D();
|
|
5293
5293
|
re && Y(re), J(h, "load", K), he("init", $, h, e, !0);
|
|
5294
5294
|
}
|
|
5295
5295
|
function Ae($) {
|
|
@@ -5373,7 +5373,7 @@ var Bs = { exports: {} };
|
|
|
5373
5373
|
}, pe = new _(v);
|
|
5374
5374
|
pe.observe(R, Z);
|
|
5375
5375
|
}
|
|
5376
|
-
var _ =
|
|
5376
|
+
var _ = D();
|
|
5377
5377
|
_ && M();
|
|
5378
5378
|
}
|
|
5379
5379
|
function ur(h) {
|
|
@@ -5646,7 +5646,7 @@ function fo(i) {
|
|
|
5646
5646
|
return i.replace(go, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
|
|
5647
5647
|
}
|
|
5648
5648
|
const yo = /(^|[^\[])\^/g;
|
|
5649
|
-
function
|
|
5649
|
+
function U(i, e) {
|
|
5650
5650
|
let t = typeof i == "string" ? i : i.source;
|
|
5651
5651
|
e = e || "";
|
|
5652
5652
|
const n = {
|
|
@@ -5879,11 +5879,11 @@ class _n {
|
|
|
5879
5879
|
}
|
|
5880
5880
|
}
|
|
5881
5881
|
r.loose || (d ? r.loose = !0 : /\n *\n *$/.test(o) && (d = !0));
|
|
5882
|
-
let
|
|
5883
|
-
this.options.gfm && (
|
|
5882
|
+
let D = null, J;
|
|
5883
|
+
this.options.gfm && (D = /^\[[ xX]\] /.exec(l), D && (J = D[0] !== "[ ] ", l = l.replace(/^\[[ xX]\] +/, ""))), r.items.push({
|
|
5884
5884
|
type: "list_item",
|
|
5885
5885
|
raw: o,
|
|
5886
|
-
task: !!
|
|
5886
|
+
task: !!D,
|
|
5887
5887
|
checked: J,
|
|
5888
5888
|
loose: !1,
|
|
5889
5889
|
text: l,
|
|
@@ -6182,7 +6182,7 @@ class _n {
|
|
|
6182
6182
|
}
|
|
6183
6183
|
}
|
|
6184
6184
|
}
|
|
6185
|
-
const wo = /^(?: *(?:\n|$))+/, xo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, _o = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, qt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ko = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ks = /(?:[*+-]|\d{1,9}[.)])/, Js =
|
|
6185
|
+
const wo = /^(?: *(?:\n|$))+/, xo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, _o = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, qt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ko = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ks = /(?:[*+-]|\d{1,9}[.)])/, Js = U(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Ks).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), _i = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, $o = /^[^\n]+/, ki = /(?!\s*\])(?:\\.|[^\[\]\\])+/, To = U(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", ki).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Eo = U(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ks).getRegex(), jn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", $i = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, So = U("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", $i).replace("tag", jn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Qs = U(_i).replace("hr", qt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", jn).getRegex(), Co = U(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Qs).getRegex(), Ti = {
|
|
6186
6186
|
blockquote: Co,
|
|
6187
6187
|
code: xo,
|
|
6188
6188
|
def: To,
|
|
@@ -6196,21 +6196,21 @@ const wo = /^(?: *(?:\n|$))+/, xo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, _o =
|
|
|
6196
6196
|
paragraph: Qs,
|
|
6197
6197
|
table: kt,
|
|
6198
6198
|
text: $o
|
|
6199
|
-
}, ys =
|
|
6199
|
+
}, ys = U("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", qt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", jn).getRegex(), Ao = {
|
|
6200
6200
|
...Ti,
|
|
6201
6201
|
table: ys,
|
|
6202
|
-
paragraph:
|
|
6202
|
+
paragraph: U(_i).replace("hr", qt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ys).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", jn).getRegex()
|
|
6203
6203
|
}, Io = {
|
|
6204
6204
|
...Ti,
|
|
6205
|
-
html:
|
|
6205
|
+
html: U(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", $i).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
6206
6206
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
6207
6207
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
6208
6208
|
fences: kt,
|
|
6209
6209
|
// fences not supported
|
|
6210
6210
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
6211
|
-
paragraph:
|
|
6211
|
+
paragraph: U(_i).replace("hr", qt).replace("heading", ` *#{1,6} *[^
|
|
6212
6212
|
]`).replace("lheading", Js).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
6213
|
-
}, Ys = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Oo = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Gs = /^( {2,}|\\)\n(?!\s*$)/, Mo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Kt = "\\p{P}\\p{S}", Ro =
|
|
6213
|
+
}, Ys = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Oo = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Gs = /^( {2,}|\\)\n(?!\s*$)/, Mo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Kt = "\\p{P}\\p{S}", Ro = U(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Kt).getRegex(), No = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, Po = U(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Kt).getRegex(), jo = U("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Kt).getRegex(), zo = U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Kt).getRegex(), Zo = U(/\\([punct])/, "gu").replace(/punct/g, Kt).getRegex(), Lo = U(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Do = U($i).replace("(?:-->|$)", "-->").getRegex(), Uo = U("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Do).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), kn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ho = U(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", kn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Xs = U(/^!?\[(label)\]\[(ref)\]/).replace("label", kn).replace("ref", ki).getRegex(), er = U(/^!?\[(ref)\](?:\[\])?/).replace("ref", ki).getRegex(), Bo = U("reflink|nolink(?!\\()", "g").replace("reflink", Xs).replace("nolink", er).getRegex(), Ei = {
|
|
6214
6214
|
_backpedal: kt,
|
|
6215
6215
|
// only used for GFM url
|
|
6216
6216
|
anyPunctuation: Zo,
|
|
@@ -6233,19 +6233,19 @@ const wo = /^(?: *(?:\n|$))+/, xo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, _o =
|
|
|
6233
6233
|
url: kt
|
|
6234
6234
|
}, Wo = {
|
|
6235
6235
|
...Ei,
|
|
6236
|
-
link:
|
|
6237
|
-
reflink:
|
|
6236
|
+
link: U(/^!?\[(label)\]\((.*?)\)/).replace("label", kn).getRegex(),
|
|
6237
|
+
reflink: U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", kn).getRegex()
|
|
6238
6238
|
}, li = {
|
|
6239
6239
|
...Ei,
|
|
6240
|
-
escape:
|
|
6241
|
-
url:
|
|
6240
|
+
escape: U(Ys).replace("])", "~|])").getRegex(),
|
|
6241
|
+
url: U(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
6242
6242
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
6243
6243
|
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
|
|
6244
6244
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
6245
6245
|
}, Fo = {
|
|
6246
6246
|
...li,
|
|
6247
|
-
br:
|
|
6248
|
-
text:
|
|
6247
|
+
br: U(Gs).replace("{2,}", "*").getRegex(),
|
|
6248
|
+
text: U(li.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
6249
6249
|
}, nn = {
|
|
6250
6250
|
normal: Ti,
|
|
6251
6251
|
gfm: Ao,
|
|
@@ -6678,15 +6678,15 @@ class ge {
|
|
|
6678
6678
|
let u = "";
|
|
6679
6679
|
for (let p = 0; p < a.items.length; p++) {
|
|
6680
6680
|
const c = a.items[p], g = c.checked, O = c.task;
|
|
6681
|
-
let
|
|
6681
|
+
let D = "";
|
|
6682
6682
|
if (c.task) {
|
|
6683
6683
|
const J = this.renderer.checkbox(!!g);
|
|
6684
6684
|
d ? c.tokens.length > 0 && c.tokens[0].type === "paragraph" ? (c.tokens[0].text = J + " " + c.tokens[0].text, c.tokens[0].tokens && c.tokens[0].tokens.length > 0 && c.tokens[0].tokens[0].type === "text" && (c.tokens[0].tokens[0].text = J + " " + c.tokens[0].tokens[0].text)) : c.tokens.unshift({
|
|
6685
6685
|
type: "text",
|
|
6686
6686
|
text: J + " "
|
|
6687
|
-
}) :
|
|
6687
|
+
}) : D += J + " ";
|
|
6688
6688
|
}
|
|
6689
|
-
|
|
6689
|
+
D += this.parse(c.tokens, d), u += this.renderer.listitem(D, O, !!g);
|
|
6690
6690
|
}
|
|
6691
6691
|
n += this.renderer.list(u, o, l);
|
|
6692
6692
|
continue;
|
|
@@ -7286,7 +7286,13 @@ function al(i) {
|
|
|
7286
7286
|
}, l = async ({ detail: p }) => {
|
|
7287
7287
|
if (p.type !== "tourScheduled")
|
|
7288
7288
|
return;
|
|
7289
|
-
const {
|
|
7289
|
+
const {
|
|
7290
|
+
tourType: c,
|
|
7291
|
+
tourDate: g,
|
|
7292
|
+
tourTime: O,
|
|
7293
|
+
// prospectName,
|
|
7294
|
+
guestCardId: D
|
|
7295
|
+
} = p;
|
|
7290
7296
|
o(), s.addMessage({
|
|
7291
7297
|
role: "system",
|
|
7292
7298
|
content: "Your tour has been scheduled!"
|
|
@@ -7294,7 +7300,8 @@ function al(i) {
|
|
|
7294
7300
|
status: "scheduled",
|
|
7295
7301
|
tourType: c,
|
|
7296
7302
|
tourDate: g,
|
|
7297
|
-
tourTime: O
|
|
7303
|
+
tourTime: O,
|
|
7304
|
+
guestCardId: D
|
|
7298
7305
|
}, !0);
|
|
7299
7306
|
}, d = async () => {
|
|
7300
7307
|
o(), s.addMessage({
|
|
@@ -7611,8 +7618,8 @@ async function pl({
|
|
|
7611
7618
|
contentHtmlTemplate: n`
|
|
7612
7619
|
<style>
|
|
7613
7620
|
.btn {
|
|
7614
|
-
background-color:
|
|
7615
|
-
color:
|
|
7621
|
+
background-color: var(--iai-chat-i-message-user-bg);
|
|
7622
|
+
color: var(--iai-chat-i-message-user-fg);
|
|
7616
7623
|
border: none;
|
|
7617
7624
|
padding: 10px 20px;
|
|
7618
7625
|
text-align: center;
|
|
@@ -7625,7 +7632,8 @@ async function pl({
|
|
|
7625
7632
|
}
|
|
7626
7633
|
|
|
7627
7634
|
.btn-no {
|
|
7628
|
-
background-color:
|
|
7635
|
+
background-color: var(--iai-chat-i-message-assistant-bg);
|
|
7636
|
+
color: var(--iai-chat-i-message-assistant-fg);
|
|
7629
7637
|
}
|
|
7630
7638
|
</style>
|
|
7631
7639
|
<div class="my-4">
|